summaryrefslogtreecommitdiffstats
path: root/unix/tcl.m4
diff options
context:
space:
mode:
authorhobbs <hobbs>2001-09-20 17:04:34 (GMT)
committerhobbs <hobbs>2001-09-20 17:04:34 (GMT)
commit95d97a9e17119f2b179ff039e4bc6f3c95970180 (patch)
tree6c158fde885693b35dbdc91e5c5c77be4c4bbcda /unix/tcl.m4
parent110401686eaf4723c9aaf9907f36fcbc0a2f4155 (diff)
downloadtk-95d97a9e17119f2b179ff039e4bc6f3c95970180.zip
tk-95d97a9e17119f2b179ff039e4bc6f3c95970180.tar.gz
tk-95d97a9e17119f2b179ff039e4bc6f3c95970180.tar.bz2
* unix/configure: regen'ed
* unix/tcl.m4: added --enable-64bit support for HP-11 with the 64-bit kernel.
Diffstat (limited to 'unix/tcl.m4')
-rw-r--r--unix/tcl.m436
1 files changed, 35 insertions, 1 deletions
diff --git a/unix/tcl.m4 b/unix/tcl.m4
index da67764..0fafaf3 100644
--- a/unix/tcl.m4
+++ b/unix/tcl.m4
@@ -700,7 +700,29 @@ dnl AC_CHECK_TOOL(AR, ar, :)
LDFLAGS=""
LD_SEARCH_FLAGS=""
;;
- HP-UX-*.08.*|HP-UX-*.09.*|HP-UX-*.10.*|HP-UX-*.11.*)
+ HP-UX-*.11.*)
+ SHLIB_SUFFIX=".sl"
+ AC_CHECK_LIB(dld, shl_load, tcl_ok=yes, tcl_ok=no)
+ if test "$tcl_ok" = yes; then
+ SHLIB_CFLAGS="+z"
+ SHLIB_LD="ld -b"
+ SHLIB_LD_LIBS=""
+ DL_OBJS="tclLoadShl.o"
+ DL_LIBS="-ldld"
+ LDFLAGS="-Wl,-E"
+ LD_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.'
+ fi
+ if test "$do64bit" = "yes" ; then
+ if test "$GCC" = "yes" ; then
+ AC_MSG_WARN("64bit mode not supported with GCC on $system")
+ else
+ do64bit_ok=yes
+ EXTRA_CFLAGS="+DA2.0W"
+ LDFLAGS="+DA2.0W $LDFLAGS"
+ fi
+ fi
+ ;;
+ HP-UX-*.08.*|HP-UX-*.09.*|HP-UX-*.10.*)
SHLIB_SUFFIX=".sl"
AC_CHECK_LIB(dld, shl_load, tcl_ok=yes, tcl_ok=no)
if test "$tcl_ok" = yes; then
@@ -797,6 +819,18 @@ dnl AC_CHECK_TOOL(AR, ar, :)
if test "`uname -m`" = "alpha" ; then
EXTRA_CFLAGS="-mieee"
fi
+
+ # The combo of gcc + glibc has a bug related
+ # to inlining of functions like strtod(). The
+ # -fno-builtin flag should address this problem
+ # but it does not work. The -fno-inline flag
+ # is kind of overkill but it works.
+ # Disable inlining only when one of the
+ # files in compat/*.c is being linked in.
+ if test x"${LIBOBJS}" != x ; then
+ EXTRA_CFLAGS="${EXTRA_CFLAGS} -fno-inline"
+ fi
+
;;
GNU*)
SHLIB_CFLAGS="-fPIC"