.
--- tcl.m4 Fri Oct 19 18:24:15 2001
+++ tcl.m4.new Wed Aug 21 21:51:08 2002
@@ -748,7 +748,19 @@
fi
if test "$do64bit" = "yes" ; then
if test "$GCC" = "yes" ; then
- AC_MSG_WARN("64bit mode not supported with GCC on $system")
+ 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"