diff options
author | hobbs <hobbs> | 2000-10-31 01:14:40 (GMT) |
---|---|---|
committer | hobbs <hobbs> | 2000-10-31 01:14:40 (GMT) |
commit | d1a2c62053e75ccd9c2444c81fcdec319914091a (patch) | |
tree | 274f6fb46befb1eaef46b6d3282b9aedd2b40008 /unix | |
parent | 17a70c4d3562bee0b8d439f57cb48abb9537c86f (diff) | |
download | tk-d1a2c62053e75ccd9c2444c81fcdec319914091a.zip tk-d1a2c62053e75ccd9c2444c81fcdec319914091a.tar.gz tk-d1a2c62053e75ccd9c2444c81fcdec319914091a.tar.bz2 |
unix/tcl.m4: added support for AIX-5.
Diffstat (limited to 'unix')
-rw-r--r-- | unix/tcl.m4 | 28 |
1 files changed, 27 insertions, 1 deletions
diff --git a/unix/tcl.m4 b/unix/tcl.m4 index 7981282..6c3d59f 100644 --- a/unix/tcl.m4 +++ b/unix/tcl.m4 @@ -586,6 +586,32 @@ AC_DEFUN(SC_CONFIG_CFLAGS, [ TCL_EXP_FILE="" STLIB_LD="ar cr" case $system in + AIX-5*) + if test "${TCL_THREADS}" = "1" -a "$using_gcc" = "no" ; then + # AIX requires the _r compiler when gcc isn't being used + if test "${CC}" != "cc_r" ; then + CC=${CC}_r + fi + AC_MSG_RESULT(Using $CC for compiling with threads) + fi + # AIX-5 uses ELF style dynamic libraries + SHLIB_CFLAGS="" + SHLIB_LD="/usr/ccs/bin/ld -G -z text" + + # Note: need the LIBS below, otherwise Tk won't find Tcl's + # symbols when dynamically loaded into tclsh. + + SHLIB_LD_LIBS='${LIBS}' + SHLIB_SUFFIX=".so" + DL_OBJS="tclLoadDl.o" + DL_LIBS="-ldl" + LDFLAGS="" + if test "$using_gcc" = "yes" ; then + LD_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' + else + LD_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR} -R${LIB_RUNTIME_DIR}' + fi + ;; AIX-4.[[2-9]]) if test "${TCL_THREADS}" = "1" -a "$using_gcc" = "no" ; then # AIX requires the _r compiler when gcc isn't being used @@ -1134,7 +1160,7 @@ AC_DEFUN(SC_CONFIG_CFLAGS, [ if test "$DL_OBJS" != "tclLoadNone.o" ; then if test "$using_gcc" = "yes" ; then case $system in - AIX-*) + AIX-[[1-4]]*) ;; BSD/OS*) ;; |