Evas: Move the HAVE_TESTS define to the m4 macro.
authortasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 11 Jul 2011 14:39:53 +0000 (14:39 +0000)
committertasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 11 Jul 2011 14:39:53 +0000 (14:39 +0000)
Thanks to vtorri for the spanking.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@61245 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

configure.ac
m4/efl_tests.m4

index a08b631..5bfa6e9 100644 (file)
@@ -1680,9 +1680,6 @@ AM_CONDITIONAL([BUILD_EXAMPLES], [test "x${build_examples}" = "xyes"])
 ## Unit tests, coverage
 
 EFL_CHECK_TESTS([enable_tests="yes"], [enable_tests="no"])
-if test "x$enable_tests" = "xyes" ; then
-   AC_DEFINE(HAVE_TESTS, 1, [Set to 1 if we enabled unit testing.])
-fi
 
 EFL_CHECK_COVERAGE([${enable_tests}], [enable_coverage="yes"], [enable_coverage="no"])
 EVAS_CFLAGS="${EVAS_CFLAGS} ${EFL_COVERAGE_CFLAGS}"
index 3a4dfe2..f044323 100644 (file)
@@ -34,6 +34,9 @@ if test "x${_efl_enable_tests}" = "xyes" ; then
       [dummy="yes"],
       [_efl_enable_tests="no"])
 fi
+if test "x${_efl_enable_tests}" = "xyes" ; then
+   AC_DEFINE(HAVE_TESTS, 1, [Set to 1 if we enabled unit testing.])
+fi
 
 AM_CONDITIONAL(EFL_ENABLE_TESTS, test "x${_efl_enable_tests}" = "xyes")