diff options
author | hobbs <hobbs@noemail.net> | 2002-10-19 02:10:40 (GMT) |
---|---|---|
committer | hobbs <hobbs@noemail.net> | 2002-10-19 02:10:40 (GMT) |
commit | 6293235df3c4ac38cf2ebee8fa7364ddf3c63ec9 (patch) | |
tree | 8fba4e851cee6737538ef2923d9e00fa4c688c68 /win/tcl.m4 | |
parent | 66291f4440d36c403b0ebda16cc91823c511fb91 (diff) | |
download | tk-6293235df3c4ac38cf2ebee8fa7364ddf3c63ec9.zip tk-6293235df3c4ac38cf2ebee8fa7364ddf3c63ec9.tar.gz tk-6293235df3c4ac38cf2ebee8fa7364ddf3c63ec9.tar.bz2 |
* win/configure: Regen.
* win/tcl.m4 (SC_CONFIG_CFLAGS): Check for bug in Cygwin version
of windres and work around that case by passing a POSIX path
instead of a Windows native path. One can't always pass a POSIX
path because the mingw native toolchain accepts only Windows
native paths. (dejong)
FossilOrigin-Name: 02559aa04454bbe8280cb87da0e8190acf5fc28f
Diffstat (limited to 'win/tcl.m4')
-rw-r--r-- | win/tcl.m4 | 25 |
1 files changed, 25 insertions, 0 deletions
@@ -379,6 +379,31 @@ AC_DEFUN(SC_CONFIG_CFLAGS, [ AC_CHECK_PROG(CYGPATH, cygpath, cygpath -w, echo) + # Check for a bug in gcc's windres that causes the + # compile to fail when a Windows native path is + # passed into windres. The mingw toolchain requires + # Windows native paths while Cygwin should work + # with both. Avoid the bug by passing a POSIX + # path when using the Cygwin toolchain. + + if test "$GCC" = "yes" && test "$CYGPATH" != "echo" ; then + conftest=/tmp/conftest.rc + echo "STRINGTABLE BEGIN" > $conftest + echo "101 \"name\"" >> $conftest + echo "END" >> $conftest + + AC_MSG_CHECKING([for Windows native path bug in windres]) + cyg_conftest=`$CYGPATH $conftest` + if AC_TRY_COMMAND($RC -o conftest.res.o $cyg_conftest) ; then + AC_MSG_RESULT([no]) + else + AC_MSG_RESULT([yes]) + CYGPATH=echo + fi + conftest= + cyg_conftest= + fi + if test "$CYGPATH" = "echo" || test "$ac_cv_cygwin" = "yes"; then DEPARG='"$<"' else |