summaryrefslogtreecommitdiffstats
path: root/win/tcl.m4
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2011-05-11 15:23:01 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2011-05-11 15:23:01 (GMT)
commit94dd1ca2a8d38460f2a48f2afb37eb7466271e9d (patch)
tree2a85371878eb56ed38e1b54c68a1a9b3ad919ed1 /win/tcl.m4
parente0c861ca985ab6274e1a07512f125eadcd609317 (diff)
downloadtcl-94dd1ca2a8d38460f2a48f2afb37eb7466271e9d.zip
tcl-94dd1ca2a8d38460f2a48f2afb37eb7466271e9d.tar.gz
tcl-94dd1ca2a8d38460f2a48f2afb37eb7466271e9d.tar.bz2
If your compiler already defines _WIN64, assume --enable-64bit
Diffstat (limited to 'win/tcl.m4')
-rw-r--r--win/tcl.m415
1 files changed, 15 insertions, 0 deletions
diff --git a/win/tcl.m4 b/win/tcl.m4
index a766b7c..26a7036 100644
--- a/win/tcl.m4
+++ b/win/tcl.m4
@@ -553,6 +553,21 @@ AC_DEFUN([SC_CONFIG_CFLAGS], [
MACHINE="IA64"
AC_MSG_RESULT([ Using 64-bit $MACHINE mode])
;;
+ *)
+ AC_TRY_COMPILE([
+ #ifdef _WIN64
+ #error 64-bit
+ #endif
+ ], [],
+ tcl_win_64bit=no,
+ tcl_win_64bit=yes
+ )
+ if test "$tcl_win_64bit" = "yes" ; then
+ do64bit=amd64
+ MACHINE="AMD64"
+ AC_MSG_RESULT([ Using 64-bit $MACHINE mode])
+ fi
+ ;;
esac
else
if test "${SHARED_BUILD}" = "0" ; then