summaryrefslogtreecommitdiffstats
path: root/unix/tcl.m4
diff options
context:
space:
mode:
authorhobbs <hobbs>2002-09-02 23:39:57 (GMT)
committerhobbs <hobbs>2002-09-02 23:39:57 (GMT)
commit895ffdfb298831e3f22128342c0205c5e3e7190e (patch)
tree270fe58784b2ad4c44cb2d3d14bba2c089321d71 /unix/tcl.m4
parentb532e9030fc637f2c240f82dc62d5d4c9ef7b761 (diff)
downloadtcl-895ffdfb298831e3f22128342c0205c5e3e7190e.zip
tcl-895ffdfb298831e3f22128342c0205c5e3e7190e.tar.gz
tcl-895ffdfb298831e3f22128342c0205c5e3e7190e.tar.bz2
* unix/configure:
* unix/tcl.m4: added 64-bit gcc compilation support on HP-11. [Patch #601051] (martin)
Diffstat (limited to 'unix/tcl.m4')
-rw-r--r--unix/tcl.m419
1 files changed, 17 insertions, 2 deletions
diff --git a/unix/tcl.m4 b/unix/tcl.m4
index e8ffd50..fd47e68 100644
--- a/unix/tcl.m4
+++ b/unix/tcl.m4
@@ -960,11 +960,26 @@ dnl AC_CHECK_TOOL(AR, ar, :)
LD_LIBRARY_PATH_VAR="SHLIB_PATH"
fi
+ # Users may want PA-RISC 1.1/2.0 portable code - needs HP cc
+ #EXTRA_CFLAGS="+DAportable"
+
# Check to enable 64-bit flags for compiler/linker
if test "$do64bit" = "yes" ; then
if test "$GCC" = "yes" ; then
- AC_MSG_WARN("64bit mode not supported with GCC on $system")
- else
+ hpux_arch='`gcc -dumpmachine`'
+ case $hpux_arch in
+ hppa64*)
+ # 64-bit gcc in use. Fix flags for GNU ld.
+ do64bit_ok=yes
+ SHLIB_LD="gcc -shared"
+ SHLIB_LD_LIBS=""
+ LD_SEARCH_FLAGS=''
+ ;;
+ *)
+ AC_MSG_WARN("64bit mode not supported with GCC on $system")
+ ;;
+ esac
+ else
do64bit_ok=yes
EXTRA_CFLAGS="+DA2.0W"
LDFLAGS="+DA2.0W $LDFLAGS"