Evas: Move the HAVE_TESTS define to the m4 macro.

Thanks to vtorri for the spanking.

SVN revision: 61245
This commit is contained in:
Tom Hacohen 2011-07-11 14:39:53 +00:00
parent a425de556c
commit 6d082b5da7
2 changed files with 3 additions and 3 deletions

View 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}"

View 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")