Hi! When using MSVC on MSYS, there is nothing that prevents depmode=cpp from being used. It works fine. depmode=msvisualcpp doesn't work as it assumes that cygpath can be used.
So, here's a tiny patch to make it work for me. I'm not subscribed, please CC me. Cheers, Peter
diff --git a/ChangeLog b/ChangeLog index 2463967..05af8a4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2009-01-27 Peter Rosin <[email protected]> (tiny change) + + Make depmode=cpp work with Microsoft Visual C++ on MSYS. + * m4/depend.m4 (_AM_DEPENDENCIES): depmode=cpp outputs paths + with double backslashes (instead of single slashes) on MSYS. + Adjust greps to recognize this. + 2009-01-23 Eric Blake <[email protected]> Use no-arg macros via AC_REQUIRE for consistency. diff --git a/m4/depend.m4 b/m4/depend.m4 index fd09373..2255db1 100644 --- a/m4/depend.m4 +++ b/m4/depend.m4 @@ -100,9 +100,9 @@ AC_CACHE_CHECK([dependency style of $depcc], depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ >/dev/null 2>conftest.err && - grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && - grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && + grep sub[/\\][\\]*conftst1.h sub/conftest.Po > /dev/null 2>&1 && + grep sub[/\\][\\]*conftst6.h sub/conftest.Po > /dev/null 2>&1 && + grep sub[/\\][\\]*conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message
