From 16b14f9ce5205c5c6f9b5fee972819efd7e30e4b Mon Sep 17 00:00:00 2001 From: Gustavo Sverzut Barbieri Date: Wed, 10 Oct 2012 20:40:34 +0000 Subject: [PATCH] efl: remove option to debug threads, now enabled based on build profile. If --with-profile=dev, we enable threads debug. SVN revision: 77806 --- configure.ac | 5 ++--- m4/efl_threads.m4 | 13 ------------- 2 files changed, 2 insertions(+), 16 deletions(-) diff --git a/configure.ac b/configure.ac index 16326505a2..5c5c8aecb0 100644 --- a/configure.ac +++ b/configure.ac @@ -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)" diff --git a/m4/efl_threads.m4 b/m4/efl_threads.m4 index b789874c0a..90a5f8ac47 100644 --- a/m4/efl_threads.m4 +++ b/m4/efl_threads.m4 @@ -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.])])])