summaryrefslogtreecommitdiffstats
path: root/win/tcl.m4
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2012-03-29 22:37:16 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2012-03-29 22:37:16 (GMT)
commit49df110769eec89b42d4f354d37bc4762b2d07de (patch)
treed5ed3780d35b0dc2f139324b15f628989538d461 /win/tcl.m4
parentb49d75097e2cde7a428f48f2049fe0cb54ecf2bf (diff)
downloadtk-49df110769eec89b42d4f354d37bc4762b2d07de.zip
tk-49df110769eec89b42d4f354d37bc4762b2d07de.tar.gz
tk-49df110769eec89b42d4f354d37bc4762b2d07de.tar.bz2
Only check for cygwin with $GCC
Diffstat (limited to 'win/tcl.m4')
-rw-r--r--win/tcl.m49
1 files changed, 6 insertions, 3 deletions
diff --git a/win/tcl.m4 b/win/tcl.m4
index e06b1e0..752f022 100644
--- a/win/tcl.m4
+++ b/win/tcl.m4
@@ -408,7 +408,9 @@ AC_DEFUN([SC_CONFIG_CFLAGS], [
# which requires x86|amd64|ia64.
MACHINE="X86"
- AC_CACHE_CHECK(for cross-compile version of gcc,
+ if test "$GCC" = "yes"; then
+
+ AC_CACHE_CHECK(for cross-compile version of gcc,
ac_cv_cross,
AC_TRY_COMPILE([
#ifdef __WIN32__
@@ -417,9 +419,9 @@ AC_DEFUN([SC_CONFIG_CFLAGS], [
], [],
ac_cv_cross=yes,
ac_cv_cross=no)
- )
+ )
- if test "$ac_cv_cross" = "yes"; then
+ if test "$ac_cv_cross" = "yes"; then
case "$do64bit" in
amd64|x64|yes)
CC="x86_64-w64-mingw32-gcc"
@@ -436,6 +438,7 @@ AC_DEFUN([SC_CONFIG_CFLAGS], [
RC="i686-w64-mingw32-windres"
;;
esac
+ fi
fi
# Check for a bug in gcc's windres that causes the