summaryrefslogtreecommitdiffstats
path: root/unix/tcl.m4
diff options
context:
space:
mode:
Diffstat (limited to 'unix/tcl.m4')
-rw-r--r--unix/tcl.m43
1 files changed, 3 insertions, 0 deletions
diff --git a/unix/tcl.m4 b/unix/tcl.m4
index 4acbed0..6d650ea 100644
--- a/unix/tcl.m4
+++ b/unix/tcl.m4
@@ -696,6 +696,9 @@ AC_DEFUN([SC_ENABLE_THREADS], [
AC_MSG_RESULT([no])
fi
+ # TIP #509.
+ AC_CHECK_DECLS([PTHREAD_MUTEX_RECURSIVE],tcl_ok=yes,tcl_ok=no, [[#include <pthread.h>]])
+
AC_SUBST(TCL_THREADS)
])