summaryrefslogtreecommitdiffstats
path: root/unix/tcl.m4
diff options
context:
space:
mode:
authorhobbs <hobbs>2002-02-08 09:33:44 (GMT)
committerhobbs <hobbs>2002-02-08 09:33:44 (GMT)
commit1d15b8b984d5b351208466e23c385018fae2033b (patch)
treea38ab60878f5df122610692245f85ba1a3d93cc0 /unix/tcl.m4
parent0cc0da11ade0c01bfb84c79316082347a1308ea8 (diff)
downloadtcl-1d15b8b984d5b351208466e23c385018fae2033b.zip
tcl-1d15b8b984d5b351208466e23c385018fae2033b.tar.gz
tcl-1d15b8b984d5b351208466e23c385018fae2033b.tar.bz2
* unix/configure:
* unix/tcl.m4: added -pthread for FreeBSD to EXTRA_CFLAGS and LDFLAGS. Also triggered nodots only for FreeBSD-3. Added AC_DEFINE(_POSIX_PTHREAD_SEMANTICS) for Solaris.
Diffstat (limited to 'unix/tcl.m4')
-rw-r--r--unix/tcl.m420
1 files changed, 14 insertions, 6 deletions
diff --git a/unix/tcl.m4 b/unix/tcl.m4
index 77a55a9..638c21c 100644
--- a/unix/tcl.m4
+++ b/unix/tcl.m4
@@ -1003,12 +1003,18 @@ dnl AC_CHECK_TOOL(AR, ar, :)
DL_LIBS=""
LDFLAGS="-export-dynamic"
LD_SEARCH_FLAGS=""
-
- # FreeBSD doesn't handle version numbers with dots.
-
- UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a'
- SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so'
- TCL_LIB_VERSIONS_OK=nodots
+ if test "${TCL_THREADS}" = "1" ; then
+ EXTRA_CFLAGS="-pthread"
+ LDFLAGS="$LDFLAGS -pthread"
+ fi
+ case $system in
+ FreeBSD-3.*)
+ # FreeBSD-3 doesn't handle version numbers with dots.
+ UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a'
+ SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so'
+ TCL_LIB_VERSIONS_OK=nodots
+ ;;
+ esac
;;
Rhapsody-*|Darwin-*)
SHLIB_CFLAGS="-fno-common"
@@ -1163,6 +1169,7 @@ dnl AC_CHECK_TOOL(AR, ar, :)
# won't define thread-safe library routines.
AC_DEFINE(_REENTRANT)
+ AC_DEFINE(_POSIX_PTHREAD_SEMANTICS)
SHLIB_CFLAGS="-KPIC"
SHLIB_LD="/usr/ccs/bin/ld -G -z text"
@@ -1187,6 +1194,7 @@ dnl AC_CHECK_TOOL(AR, ar, :)
# won't define thread-safe library routines.
AC_DEFINE(_REENTRANT)
+ AC_DEFINE(_POSIX_PTHREAD_SEMANTICS)
SHLIB_CFLAGS="-KPIC"
SHLIB_LD="/usr/ccs/bin/ld -G -z text"