summaryrefslogtreecommitdiffstats
path: root/unix/tcl.m4
diff options
context:
space:
mode:
authorhobbs <hobbs>2001-08-07 00:45:18 (GMT)
committerhobbs <hobbs>2001-08-07 00:45:18 (GMT)
commite7b06be22c5631e265bf357563de6c907aceb35d (patch)
tree38caef5d2b2fbe7ddf259f885d6fa5a7651445a1 /unix/tcl.m4
parent0a8df6def60dce83647c460a0773c78d255f58f4 (diff)
downloadtcl-e7b06be22c5631e265bf357563de6c907aceb35d.zip
tcl-e7b06be22c5631e265bf357563de6c907aceb35d.tar.gz
tcl-e7b06be22c5631e265bf357563de6c907aceb35d.tar.bz2
added GNU (HURD) configuration target. (brinkmann)
Diffstat (limited to 'unix/tcl.m4')
-rw-r--r--unix/tcl.m423
1 files changed, 23 insertions, 0 deletions
diff --git a/unix/tcl.m4 b/unix/tcl.m4
index 2e2d6f8..3f53267 100644
--- a/unix/tcl.m4
+++ b/unix/tcl.m4
@@ -807,6 +807,29 @@ dnl AC_CHECK_TOOL(AR, ar, :)
EXTRA_CFLAGS="-mieee"
fi
;;
+ GNU*)
+ SHLIB_CFLAGS="-fPIC"
+ SHLIB_LD_LIBS='${LIBS}'
+ SHLIB_SUFFIX=".so"
+
+ if test "$have_dl" = yes; then
+ SHLIB_LD="${CC} -shared"
+ DL_OBJS=""
+ DL_LIBS="-ldl"
+ LDFLAGS="-rdynamic"
+ LD_SEARCH_FLAGS=""
+ else
+ AC_CHECK_HEADER(dld.h, [
+ SHLIB_LD="ld -shared"
+ DL_OBJS=""
+ DL_LIBS="-ldld"
+ LDFLAGS=""
+ LD_SEARCH_FLAGS=""])
+ fi
+ if test "`uname -m`" = "alpha" ; then
+ EXTRA_CFLAGS="-mieee"
+ fi
+ ;;
MP-RAS-02*)
SHLIB_CFLAGS="-K PIC"
SHLIB_LD="cc -G"