diff options
author | nijtmans <nijtmans> | 2010-01-22 14:17:53 (GMT) |
---|---|---|
committer | nijtmans <nijtmans> | 2010-01-22 14:17:53 (GMT) |
commit | 3998cf77ee9513d59f553516618187a6bccb697f (patch) | |
tree | 000910596afd8ed4fc7d62d3df7ec8d8b277d252 /win/tcl.m4 | |
parent | 027efdef074cb8c116b5f9c888ad445ea692f654 (diff) | |
download | tk-3998cf77ee9513d59f553516618187a6bccb697f.zip tk-3998cf77ee9513d59f553516618187a6bccb697f.tar.gz tk-3998cf77ee9513d59f553516618187a6bccb697f.tar.bz2 |
fix more gcc warnings: missing initializer
Eliminate use of __argc and __argv for CYGWIN
Make cygwin configuration error into
a warning: CYGWIN compilation works
although there still are test failures.
Diffstat (limited to 'win/tcl.m4')
-rw-r--r-- | win/tcl.m4 | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -432,6 +432,22 @@ AC_DEFUN([SC_CONFIG_CFLAGS], [ cyg_conftest= fi + AC_CACHE_CHECK(for Cygwin version of gcc, + ac_cv_cygwin, + AC_TRY_COMPILE([ + #ifdef __CYGWIN__ + #error cygwin + #endif + ], + [], + ac_cv_cygwin=no, + ac_cv_cygwin=yes) + ) + if test "$ac_cv_cygwin" = "yes" ; then + AC_MSG_WARN([Compiling under Cygwin is not currently supported. +If you are not sure you want this, see the README +file for information about building with Mingw.]) + fi if test "$CYGPATH" = "echo" || test "$ac_cv_cygwin" = "yes"; then DEPARG='"$<"' else |