summaryrefslogtreecommitdiff
path: root/legacy/eina/m4/efl_threads.m4
diff options
context:
space:
mode:
authorCedric BAIL <cedric.bail@free.fr>2011-05-02 13:40:28 +0000
committerCedric BAIL <cedric.bail@free.fr>2011-05-02 13:40:28 +0000
commit691da73b845c81ad6f11f1e5a4ba65ef47f56eaf (patch)
tree6fe5bcd2e0cfc598b3abde54df83a66b79e68b07 /legacy/eina/m4/efl_threads.m4
parent2e0bb38935f012782e9693eff25dc4557bd7cd5f (diff)
eina: add back threads on/off support.
NOTE: only use it if you know what you are doing ! SVN revision: 59123
Diffstat (limited to '')
-rw-r--r--legacy/eina/m4/efl_threads.m413
1 files changed, 13 insertions, 0 deletions
diff --git a/legacy/eina/m4/efl_threads.m4 b/legacy/eina/m4/efl_threads.m4
index 33d15a3..a761d51 100644
--- a/legacy/eina/m4/efl_threads.m4
+++ b/legacy/eina/m4/efl_threads.m4
@@ -134,6 +134,19 @@ fi
134AC_SUBST(EFL_PTHREAD_CFLAGS) 134AC_SUBST(EFL_PTHREAD_CFLAGS)
135AC_SUBST(EFL_PTHREAD_LIBS) 135AC_SUBST(EFL_PTHREAD_LIBS)
136 136
137_efl_enable_on_off_threads="no"
138AC_ARG_ENABLE([on-off-threads],
139 [AC_HELP_STRING([--enable-on-off-threads], [only turn this on if you know what you are doing, and don't complain if the world freeze])],
140 [_efl_enable_on_off_threads="${enableval}"])
141
142have_on_off_threads="no"
143if test "x${_efl_enable_on_off_threads}" = "xyes"; then
144 have_on_off_threads="yes"
145 AC_DEFINE([EFL_ON_OFF_THREADS], [1], [make it possible to disable all locks])
146fi
147AC_MSG_CHECKING([whether to turn on/off threads lock on demand])
148AC_MSG_RESULT([${_efl_enable_on_off_threads}])
149
137_efl_enable_debug_threads="no" 150_efl_enable_debug_threads="no"
138AC_ARG_ENABLE([debug-threads], 151AC_ARG_ENABLE([debug-threads],
139 [AC_HELP_STRING([--enable-debug-threads], [disable assert when you forgot to call eina_threads_init])], 152 [AC_HELP_STRING([--enable-debug-threads], [disable assert when you forgot to call eina_threads_init])],