efl: remove option to debug threads, now enabled based on build profile.

If --with-profile=dev, we enable threads debug.



SVN revision: 77806
This commit is contained in:
Gustavo Sverzut Barbieri 2012-10-10 20:40:34 +00:00
parent 1337582286
commit 16b14f9ce5
2 changed files with 2 additions and 16 deletions

View File

@ -539,11 +539,11 @@ EFL_CHECK_THREADS
EINA_CONFIGURE_HAVE_THREADS="#define EINA_HAVE_THREADS"
AC_SUBST(EINA_CONFIGURE_HAVE_THREADS)
if test "x${efl_have_debug_threads}" = "xyes"; then
if test "$build_profile" = "dev"; then
EINA_CONFIGURE_HAVE_DEBUG_THREADS="#define EINA_HAVE_DEBUG_THREADS"
AC_DEFINE([EFL_DEBUG_THREADS], [1], [Assert when forgot to call eina_threads_init])
fi
AC_SUBST(EINA_CONFIGURE_HAVE_DEBUG_THREADS)
AM_CONDITIONAL([EINA_DEBUG_THREADS], [test "x${efl_have_debug_threads}" = "xyes"])
### Modules
EINA_CHECK_MODULE([chained-pool], [static], [chained pool])
@ -866,7 +866,6 @@ echo
echo " Thread Support.......: ${efl_have_threads}"
if test "${efl_have_threads}" = "POSIX" ; then
echo " spinlock...........: ${efl_have_posix_threads_spinlock}"
echo " debug usage........: ${efl_have_debug_threads}"
fi
echo
echo "Compilation............: make (or gmake)"

View File

@ -117,19 +117,6 @@ if test "x${efl_have_posix_threads_spinlock}" = "xyes" ; then
AC_DEFINE([EFL_HAVE_POSIX_THREADS_SPINLOCK], [1], [Define to mention that POSIX threads spinlocks are supported])
fi
dnl Check debug threads
_efl_enable_debug_threads="no"
AC_ARG_ENABLE([debug-threads],
[AC_HELP_STRING([--enable-debug-threads], [disable assert when you forgot to call eina_threads_init])],
[_efl_enable_debug_threads="${enableval}"])
efl_have_debug_threads="no"
if test "x${_efl_have_posix_threads}" = "xyes" && test "x${_efl_enable_debug_threads}" = "xyes"; then
efl_have_debug_threads="yes"
AC_DEFINE([EFL_DEBUG_THREADS], [1], [Assert when forgot to call eina_threads_init])
fi
AS_IF([test "x$_efl_have_posix_threads" = "xyes" || test "x$_efl_have_win32_threads" = "xyes"],
[$1],
[m4_if([$2], [$2], [AC_MSG_ERROR([Threads are required.])])])