X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=aclocal.m4;h=0a6d27b1046acbe88a8a3b363a0885af30395c70;hb=d0ea71ec5000050ec22487029a9fcf6da76ee422;hp=eca417a455550d0fb53c95a8fa2272211fffc11d;hpb=519457cfd49b063f85e9595357e233feb5f0a7af;p=ghc-hetmet.git diff --git a/aclocal.m4 b/aclocal.m4 index eca417a..0a6d27b 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -611,11 +611,15 @@ echo foo > conftest.txt $fp_prog_find conftest.txt -print > conftest.out 2>&1 if grep '^conftest.txt$' conftest.out > /dev/null 2>&1 ; then # OK, looks like a real "find". - if which cygpath 1> /dev/null 2> /dev/null - then - fp_prog_find=`cygpath --mixed "$fp_prog_find"` - AC_MSG_NOTICE([Converted to "$fp_prog_find"]) - fi + case $HostPlatform in + *mingw32) + if test x${OSTYPE} != xmsys + then + fp_prog_find="`cygpath --mixed ${fp_prog_find}`" + AC_MSG_NOTICE([normalized find command to $fp_prog_find]) + fi ;; + *) ;; + esac FindCmd="$fp_prog_find" else # Found a poor WinDoze version of "find", ignore it.