summaryrefslogtreecommitdiffstats
path: root/unix/tcl.m4
diff options
context:
space:
mode:
authormdejong <mdejong>2003-02-19 00:30:37 (GMT)
committermdejong <mdejong>2003-02-19 00:30:37 (GMT)
commitd5ac0ec459ba1712e7cea8124cc52e25f88f7185 (patch)
tree3b6e24b0206b8a93adea119a6a00ac07d57e4ded /unix/tcl.m4
parent2b8975d8a5d0bdd34a74b2a375fd2945df3cb6e7 (diff)
downloadtcl-d5ac0ec459ba1712e7cea8124cc52e25f88f7185.zip
tcl-d5ac0ec459ba1712e7cea8124cc52e25f88f7185.tar.gz
tcl-d5ac0ec459ba1712e7cea8124cc52e25f88f7185.tar.bz2
* unix/configure: Regen.
* unix/tcl.m4 (SC_ENABLE_THREADS): Make sure -lpthread gets passed on the link line when checking for the pthread_attr_setstacksize symbol.
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 083c4e8..b24349f 100644
--- a/unix/tcl.m4
+++ b/unix/tcl.m4
@@ -450,7 +450,10 @@ AC_DEFUN(SC_ENABLE_THREADS, [
# Does the pthread-implementation provide
# 'pthread_attr_setstacksize' ?
+ ac_saved_libs=$LIBS
+ LIBS="$LIBS $THREADS_LIBS"
AC_CHECK_FUNCS(pthread_attr_setstacksize)
+ LIBS=$ac_saved_libs
AC_CHECK_FUNCS(readdir_r)
else
TCL_THREADS=0