summaryrefslogtreecommitdiffstats
path: root/unix
diff options
context:
space:
mode:
authorhobbs <hobbs>1999-11-10 02:52:41 (GMT)
committerhobbs <hobbs>1999-11-10 02:52:41 (GMT)
commit04cff1ae61aba403e854b7e583552b004155ac49 (patch)
tree3b84c551d9a8aad8b3e66d0c7e3b266edf453b51 /unix
parente9ba4a78e358c252bf41bcb41c1c881ff77b30c4 (diff)
downloadtcl-04cff1ae61aba403e854b7e583552b004155ac49.zip
tcl-04cff1ae61aba403e854b7e583552b004155ac49.tar.gz
tcl-04cff1ae61aba403e854b7e583552b004155ac49.tar.bz2
* unix/tcl.m4: added recognition of pthreads library for AIX
Diffstat (limited to 'unix')
-rw-r--r--unix/tcl.m410
1 files changed, 8 insertions, 2 deletions
diff --git a/unix/tcl.m4 b/unix/tcl.m4
index 40cb6eb..d7fdbe1 100644
--- a/unix/tcl.m4
+++ b/unix/tcl.m4
@@ -366,8 +366,14 @@ AC_DEFUN(SC_ENABLE_THREADS, [
# The space is needed
THREADS_LIBS=" -lpthread"
else
- TCL_THREADS=0
- AC_MSG_WARN("Don t know how to find pthread lib on your system - you must disable thread support or edit the LIBS in the Makefile...")
+ AC_CHECK_LIB(pthreads,pthread_mutex_init,tcl_ok=yes,tcl_ok=no)
+ if test "$tcl_ok" = "yes"; then
+ # The space is needed
+ THREADS_LIBS=" -lpthreads"
+ else
+ TCL_THREADS=0
+ AC_MSG_WARN("Don t know how to find pthread lib on your system - you must disable thread support or edit the LIBS in the Makefile...")
+ fi
fi
else
TCL_THREADS=0