aboutsummaryrefslogtreecommitdiff
path: root/tclconfig/tcl.m4
diff options
context:
space:
mode:
Diffstat (limited to 'tclconfig/tcl.m4')
-rw-r--r--tclconfig/tcl.m412
1 files changed, 12 insertions, 0 deletions
diff --git a/tclconfig/tcl.m4 b/tclconfig/tcl.m4
index 1038544..33f09d1 100644
--- a/tclconfig/tcl.m4
+++ b/tclconfig/tcl.m4
@@ -1456,6 +1456,18 @@ dnl AC_CHECK_TOOL(AR, ar)
if test "`uname -m`" = "alpha" ; then
CFLAGS="$CFLAGS -mieee"
fi
+ if test $do64bit = yes; then
+ AC_CACHE_CHECK([if compiler accepts -m64 flag], tcl_cv_cc_m64, [
+ hold_cflags=$CFLAGS
+ CFLAGS="$CFLAGS -m64"
+ AC_TRY_LINK(,, tcl_cv_cc_m64=yes, tcl_cv_cc_m64=no)
+ CFLAGS=$hold_cflags])
+ if test $tcl_cv_cc_m64 = yes; then
+ CFLAGS="$CFLAGS -m64"
+ do64bit_ok=yes
+ fi
+ fi
+
# The combo of gcc + glibc has a bug related
# to inlining of functions like strtod(). The