summaryrefslogtreecommitdiffstats
path: root/unix/tcl.m4
diff options
context:
space:
mode:
authorhobbs <hobbs>2000-01-26 03:38:00 (GMT)
committerhobbs <hobbs>2000-01-26 03:38:00 (GMT)
commit83cc84e37ef119daa5e1134aec6ce159a68799cb (patch)
tree7087a400bb34006a2c5188e0d6b93db5b2d703a8 /unix/tcl.m4
parent3eb5dfa1d24599dedc834f002282d654e757b552 (diff)
downloadtcl-83cc84e37ef119daa5e1134aec6ce159a68799cb.zip
tcl-83cc84e37ef119daa5e1134aec6ce159a68799cb.tar.gz
tcl-83cc84e37ef119daa5e1134aec6ce159a68799cb.tar.bz2
* unix/tcl.m4: modified EXTRA_CFLAGS to add -DHAVE_TZSET for
OSF1-V* and ULTRIX-4.* when not using gcc. Also added higher min stack size for OSF1-V* when building with threads. [Bug: 4063] * unix/tclUnixChan.c (CreateSocketAddress): changed comparison with -1 to 0xFFFFFFFF, to ensure 32 bit comparison even on 64 bit systems. [Bug: 3878]
Diffstat (limited to 'unix/tcl.m4')
-rw-r--r--unix/tcl.m415
1 files changed, 11 insertions, 4 deletions
diff --git a/unix/tcl.m4 b/unix/tcl.m4
index fc65913..d268471 100644
--- a/unix/tcl.m4
+++ b/unix/tcl.m4
@@ -768,8 +768,6 @@ AC_DEFUN(SC_CONFIG_CFLAGS, [
DL_OBJS="tclLoadDl.o"
DL_LIBS=""
LDFLAGS=""
- LD_SEARCH_FLAGS=""
- SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1.0'
LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
AC_MSG_CHECKING(for ELF)
AC_EGREP_CPP(yes, [
@@ -857,15 +855,21 @@ AC_DEFUN(SC_CONFIG_CFLAGS, [
DL_LIBS=""
LDFLAGS=""
LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
+ if test "$using_gcc" = "no" ; then
+ EXTRA_CFLAGS="-DHAVE_TZSET -std1"
+ fi
# see pthread_intro(3) for pthread support on osf1, k.furukawa
if test "${TCL_THREADS}" = "1" ; then
+ EXTRA_CFLAGS="${EXTRA_CFLAGS} -DTCL_THREAD_STACK_MIN=PTHREAD_STACK_MIN*64"
if test "$using_gcc" = "no" ; then
- EXTRA_CFLAGS="-std1 -pthread"
+ EXTRA_CFLAGS="${EXTRA_CFLAGS} -pthread"
LDFLAGS="-pthread"
+ THREADS_LIBS=""
else
- THREADS_LIBS=" -lpthread -lmach -lexc -lc"
+ THREADS_LIBS=" -lpthread -lmach -lexc"
fi
fi
+
;;
RISCos-*)
SHLIB_CFLAGS="-G 0"
@@ -981,6 +985,9 @@ AC_DEFUN(SC_CONFIG_CFLAGS, [
DL_LIBS=""
LDFLAGS="-Wl,-D,08000000"
LD_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
+ if test "$using_gcc" = "no" ; then
+ EXTRA_CFLAGS="-DHAVE_TZSET -std1"
+ fi
;;
UNIX_SV* | UnixWare-5*)
SHLIB_CFLAGS="-KPIC"