From 6964b15728810aae76f1148e8e17c76c95c661c1 Mon Sep 17 00:00:00 2001 From: Vincent Torri Date: Sun, 1 Jul 2012 13:34:52 +0000 Subject: Eet: fix CFLAGS value when --enable-assert is used SVN revision: 73113 --- m4/efl_tests.m4 | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'm4') diff --git a/m4/efl_tests.m4 b/m4/efl_tests.m4 index edd57f2..d8554e1 100644 --- a/m4/efl_tests.m4 +++ b/m4/efl_tests.m4 @@ -44,17 +44,17 @@ if test "x${_efl_enable_tests}" = "xyes" ; then m4_defn([UPEFL])[]_CFLAGS="${m4_defn([UPEFL])[]_CFLAGS} -fprofile-arcs -ftest-coverage" m4_defn([UPEFL])[]_LIBS="${m4_defn([UPEFL])[]_LIBS} -lgcov" # remove any optimisation flag and force debug symbols - m4_defn([UPEFL])[]_CFLAGS="${m4_defn([UPEFL])[]_CFLAGS} -g -O0 -DDEBUG" + if test "x${prefer_assert}" = "xno"; then + m4_defn([UPEFL])[]_CFLAGS="${m4_defn([UPEFL])[]_CFLAGS} -DNDEBUG" + else + m4_defn([UPEFL])[]_CFLAGS="${m4_defn([UPEFL])[]_CFLAGS} -g -O0 -DDEBUG" + fi efl_enable_coverage="yes" else AC_MSG_WARN([lcov is not found, disable profiling instrumentation]) fi fi -dnl Substitution -AC_SUBST(EFL_COVERAGE_CFLAGS) -AC_SUBST(EFL_COVERAGE_LIBS) - AM_CONDITIONAL(EFL_ENABLE_TESTS, test "x${_efl_enable_tests}" = "xyes") AS_IF([test "x$_efl_enable_tests" = "xyes"], [$2], [$3]) -- cgit v1.2.1