summaryrefslogtreecommitdiffstats
path: root/win/tcl.m4
diff options
context:
space:
mode:
authornijtmans@users.sourceforge.net <jan.nijtmans>2012-04-06 22:38:13 (GMT)
committernijtmans@users.sourceforge.net <jan.nijtmans>2012-04-06 22:38:13 (GMT)
commit3e1657600c1acb436c173fe63c2f9da54e990677 (patch)
treed9ad95326825a71a929d3ee9fc22ddda9e7e02f8 /win/tcl.m4
parentc5b258463eb0a01a4e69a095d8ec7ba850d0f80d (diff)
parent00e5f8f528b154629994e035e2be09e018cc3cae (diff)
downloadtk-3e1657600c1acb436c173fe63c2f9da54e990677.zip
tk-3e1657600c1acb436c173fe63c2f9da54e990677.tar.gz
tk-3e1657600c1acb436c173fe63c2f9da54e990677.tar.bz2
some more cygwin compatibility improvements
format tk.decls like tcl8.5/8.6
Diffstat (limited to 'win/tcl.m4')
-rw-r--r--win/tcl.m420
1 files changed, 12 insertions, 8 deletions
diff --git a/win/tcl.m4 b/win/tcl.m4
index 9a5fa7b..4dbc1ce 100644
--- a/win/tcl.m4
+++ b/win/tcl.m4
@@ -34,7 +34,11 @@ AC_DEFUN([SC_PATH_TCLCONFIG], [
AC_MSG_ERROR(Tcl directory $TCL_BIN_DIR does not exist)
fi
if test ! -f $TCL_BIN_DIR/tclConfig.sh; then
- AC_MSG_ERROR(There is no tclConfig.sh in $TCL_BIN_DIR: perhaps you did not specify the Tcl *build* directory (not the toplevel Tcl directory) or you forgot to configure Tcl?)
+ if test ! -f $TCL_BIN_DIR/../unix/tclConfig.sh; then
+ AC_MSG_ERROR(There is no tclConfig.sh in $TCL_BIN_DIR: perhaps you did not specify the Tcl *build* directory (not the toplevel Tcl directory) or you forgot to configure Tcl?)
+ fi
+ TCL_BIN_DIR=`cd ${TCL_BIN_DIR}/../unix; pwd`
+ CFLAGS="$CFLAGS -mwin32"
fi
AC_MSG_RESULT($TCL_BIN_DIR/tclConfig.sh)
])
@@ -416,12 +420,12 @@ AC_DEFUN([SC_CONFIG_CFLAGS], [
AC_CACHE_CHECK(for cross-compile version of gcc,
ac_cv_cross,
AC_TRY_COMPILE([
- #ifdef __WIN32__
+ #ifndef __WIN32__
#error cross-compiler
#endif
], [],
- ac_cv_cross=yes,
- ac_cv_cross=no)
+ ac_cv_cross=no,
+ ac_cv_cross=yes)
)
if test "$ac_cv_cross" = "yes"; then
@@ -593,12 +597,12 @@ AC_DEFUN([SC_CONFIG_CFLAGS], [
;;
*)
AC_TRY_COMPILE([
- #ifdef _WIN64
- #error 64-bit
+ #ifndef _WIN64
+ #error 32-bit
#endif
], [],
- tcl_win_64bit=no,
- tcl_win_64bit=yes
+ tcl_win_64bit=yes,
+ tcl_win_64bit=no
)
if test "$tcl_win_64bit" = "yes" ; then
do64bit=amd64