diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2011-05-11 15:23:01 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2011-05-11 15:23:01 (GMT) |
commit | 835d8447316d92abfefeb0434f0438567b84f218 (patch) | |
tree | 2a85371878eb56ed38e1b54c68a1a9b3ad919ed1 /win/tcl.m4 | |
parent | 52c5ec6c788e89bbec00c3ec1e87cba1b04ea66f (diff) | |
download | tcl-835d8447316d92abfefeb0434f0438567b84f218.zip tcl-835d8447316d92abfefeb0434f0438567b84f218.tar.gz tcl-835d8447316d92abfefeb0434f0438567b84f218.tar.bz2 |
If your compiler already defines _WIN64, assume --enable-64bit
Diffstat (limited to 'win/tcl.m4')
-rw-r--r-- | win/tcl.m4 | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -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 |