diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2012-03-28 12:01:37 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2012-03-28 12:01:37 (GMT) |
commit | 11af87a052c1c88211a77a6c6260704507f3ba30 (patch) | |
tree | 06a5dc9220c3320b89616c738c4cb6efb4616520 /unix/tcl.m4 | |
parent | e242d86ae4e4ed1cb616f03b70bbf00d851678d2 (diff) | |
download | tcl-11af87a052c1c88211a77a6c6260704507f3ba30.zip tcl-11af87a052c1c88211a77a6c6260704507f3ba30.tar.gz tcl-11af87a052c1c88211a77a6c6260704507f3ba30.tar.bz2 |
extra checks whether we are really dealing with cygwin or not
Diffstat (limited to 'unix/tcl.m4')
-rw-r--r-- | unix/tcl.m4 | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/unix/tcl.m4 b/unix/tcl.m4 index c248686..1ce375a 100644 --- a/unix/tcl.m4 +++ b/unix/tcl.m4 @@ -1212,6 +1212,19 @@ dnl AC_CHECK_TOOL(AR, ar) CC_SEARCH_FLAGS="" LD_SEARCH_FLAGS="" TCL_SHLIB_LD_EXTRAS='-Wl,--out-implib,$[@].a' + 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" = "no"; then + AC_MSG_ERROR([${CC} is not a cygwin compiler.]) + fi ;; dgux*) SHLIB_CFLAGS="-K PIC" |