summaryrefslogtreecommitdiffstats
path: root/unix/tcl.m4
diff options
context:
space:
mode:
authordas <das>2002-06-06 17:37:54 (GMT)
committerdas <das>2002-06-06 17:37:54 (GMT)
commit7710d5c62d5217f563468a0e595c9f71240f351b (patch)
treed8383cffd57ba9b2bb95730e80227456889d0387 /unix/tcl.m4
parenta119012d510f0e38f924f4c957718b8fd98dee41 (diff)
downloadtcl-7710d5c62d5217f563468a0e595c9f71240f351b.zip
tcl-7710d5c62d5217f563468a0e595c9f71240f351b.tar.gz
tcl-7710d5c62d5217f563468a0e595c9f71240f351b.tar.bz2
* unix/tclUnixThrd.c (TclpReaddir, TclpLocaltime, TclpGmtime):
added mutex wrapped calls to readdir, localtime & gmtime in case their thread-safe *_r counterparts are not available. * unix/tcl.m4: added configure check for readdir_r * unix/tcl.m4 (Darwin): set TCL_DEFAULT_ENCODING to utf-8 on MacOSX (where posix file apis expect utf-8, not iso8859-1). * unix/configure: regen * unix/Makefile.in: set DYLD_LIBRARY_PATH in parallel to LD_LIBRARY_PATH for MacOSX dynamic linker. * generic/tclEnv.c (TclSetEnv): fix env var setting on MacOSX (adapted from patch #524352 by jkbonfield).
Diffstat (limited to 'unix/tcl.m4')
-rw-r--r--unix/tcl.m45
1 files changed, 3 insertions, 2 deletions
diff --git a/unix/tcl.m4 b/unix/tcl.m4
index 0ece801..9e70daf 100644
--- a/unix/tcl.m4
+++ b/unix/tcl.m4
@@ -407,6 +407,7 @@ AC_DEFUN(SC_ENABLE_THREADS, [
# 'pthread_attr_setstacksize' ?
AC_CHECK_FUNCS(pthread_attr_setstacksize)
+ AC_CHECK_FUNCS(readdir_r)
else
TCL_THREADS=0
AC_MSG_RESULT([no (default)])
@@ -1046,8 +1047,8 @@ dnl AC_CHECK_TOOL(AR, ar, :)
DL_LIBS=""
LDFLAGS="-prebind"
LD_SEARCH_FLAGS=""
- CFLAGS_OPTIMIZE="-O3"
- EXTRA_CFLAGS="-arch ppc -pipe"
+ CFLAGS_OPTIMIZE="-O2"
+ EXTRA_CFLAGS='-DTCL_DEFAULT_ENCODING=\"utf-8\"'
;;
NEXTSTEP-*)
SHLIB_CFLAGS=""