summaryrefslogtreecommitdiff
path: root/m4/simpleops_mutex.m4
diff options
context:
space:
mode:
Diffstat (limited to 'm4/simpleops_mutex.m4')
-rw-r--r--m4/simpleops_mutex.m410
1 files changed, 10 insertions, 0 deletions
diff --git a/m4/simpleops_mutex.m4 b/m4/simpleops_mutex.m4
new file mode 100644
index 0000000..2236ab5
--- /dev/null
+++ b/m4/simpleops_mutex.m4
@@ -0,0 +1,10 @@
+AC_DEFUN([SIMPLEOPS_CHECK_MUTEX],
+[dnl
+ AC_ARG_ENABLE([mutex],
+ [AS_HELP_STRING([--disable-mutex], [disable mutex operations])],
+ [AC_DEFINE(DISABLE_MUTEX, 1, [Define to 1 to disable mutex operations.])]
+ )
+
+ AX_PTHREAD()
+ AC_CHECK_HEADERS([Locker.h])
+])