diff options
Diffstat (limited to 'contrib/tcl/unix/configure.in')
-rwxr-xr-x | contrib/tcl/unix/configure.in | 42 |
1 files changed, 31 insertions, 11 deletions
diff --git a/contrib/tcl/unix/configure.in b/contrib/tcl/unix/configure.in index e57218c..408c4f9 100755 --- a/contrib/tcl/unix/configure.in +++ b/contrib/tcl/unix/configure.in @@ -2,7 +2,7 @@ dnl This file is an input file used by the GNU "autoconf" program to dnl generate the file "configure", which is run during Tcl installation dnl to configure the system for the local environment. AC_INIT(../generic/tcl.h) -# SCCS: @(#) configure.in 1.102 96/04/17 10:46:25 +# SCCS: @(#) configure.in 1.107 96/07/30 08:38:37 TCL_VERSION=7.5 TCL_MAJOR_VERSION=7 @@ -449,7 +449,7 @@ AC_CHECK_FUNC(gethostbyname, , AC_CHECK_LIB(nsl, main, [LIBS="$LIBS -lnsl"])) # LD_SEARCH_FLAGS-Flags to pass to ld, such as "-R /usr/local/tcl/lib", # that tell the run-time dynamic linker where to look # for shared libraries such as libtcl.so. Depends on -# the variable LIB_INSTALL_DIR in the Makefile. +# the variable LIB_RUNTIME_DIR in the Makefile. # MAKE_LIB - Command to execute to build the Tcl library; # differs depending on whether or not Tcl is being # compiled as a shared library. @@ -541,11 +541,21 @@ case $system in DL_OBJS="tclLoadDl.o tclLoadAix.o" DL_LIBS="-lld" LD_FLAGS="" - LD_SEARCH_FLAGS='-L${LIB_INSTALL_DIR}' + LD_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' AC_DEFINE(NO_DLFCN_H) AIX=yes TCL_SHARED_LIB_SUFFIX='${VERSION}.a' ;; + BSD/OS-2.1*) + SHLIB_CFLAGS="" + SHLIB_LD="ld -r" + SHLIB_LD_FLAGS="" + SHLIB_SUFFIX=".so" + DL_OBJS="tclLoadDl.o" + DL_LIBS="-ldl" + LD_FLAGS="" + LD_SEARCH_FLAGS="" + ;; HP-UX-*.08.*|HP-UX-*.09.*|HP-UX-*.10.*) SHLIB_CFLAGS="+z" SHLIB_LD="ld -b" @@ -554,7 +564,7 @@ case $system in DL_OBJS="tclLoadShl.o" DL_LIBS="-ldld" LD_FLAGS="-Wl,-E" - LD_SEARCH_FLAGS='-Wl,+b,${LIB_INSTALL_DIR}:.' + LD_SEARCH_FLAGS='-Wl,+b,${LIB_RUNTIME_DIR}:.' ;; IRIX-4.*) SHLIB_CFLAGS="-G 0" @@ -566,7 +576,7 @@ case $system in LD_FLAGS="-Wl,-D,08000000" LD_SEARCH_FLAGS="" ;; - IRIX-5.*) + IRIX-5.*|IRIX-6.*) SHLIB_CFLAGS="" SHLIB_LD="ld -shared -rdata_shared" SHLIB_LD_LIBS="" @@ -574,7 +584,17 @@ case $system in DL_OBJS="tclLoadDl.o" DL_LIBS="" LD_FLAGS="" - LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_INSTALL_DIR}' + LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' + ;; + IRIX64-6.*) + SHLIB_CFLAGS="" + SHLIB_LD="ld -32 -shared -rdata_shared -rpath /usr/local/lib" + SHLIB_LD_LIBS="" + SHLIB_SUFFIX=".so" + DL_OBJS="tclLoadDl.o" + DL_LIBS="" + LD_FLAGS="" + LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' ;; Linux*) SHLIB_CFLAGS="-fPIC" @@ -686,7 +706,7 @@ case $system in DL_OBJS="tclLoadDl.o" DL_LIBS="" LD_FLAGS="" - LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_INSTALL_DIR}' + LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' ;; RISCos-*) SHLIB_CFLAGS="-G 0" @@ -729,7 +749,7 @@ case $system in DL_OBJS="tclLoadDl.o" DL_LIBS="-ldl" LD_FLAGS="" - LD_SEARCH_FLAGS='-L${LIB_INSTALL_DIR}' + LD_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' # SunOS can't handle version numbers with dots in them in library # specs, like -ltcl7.5, so use -ltcl75 instead. Also, it @@ -741,14 +761,14 @@ case $system in TCL_LIB_VERSIONS_OK=nodots ;; SunOS-5*) - SHLIB_CFLAGS="-K PIC" + SHLIB_CFLAGS="-KPIC" SHLIB_LD="/usr/ccs/bin/ld -G -z text" SHLIB_LD_LIBS='${LIBS}' SHLIB_SUFFIX=".so" DL_OBJS="tclLoadDl.o" DL_LIBS="-ldl" LD_FLAGS="" - LD_SEARCH_FLAGS='-R ${LIB_INSTALL_DIR}' + LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' ;; ULTRIX-4.*) SHLIB_CFLAGS="-G 0" @@ -761,7 +781,7 @@ case $system in LD_SEARCH_FLAGS="" ;; UNIX_SV*) - SHLIB_CFLAGS="-K PIC" + SHLIB_CFLAGS="-KPIC" SHLIB_LD="cc -G" SHLIB_LD_LIBS="" SHLIB_SUFFIX=".so" |