From: Ian Lynagh Date: Thu, 3 Jul 2008 13:26:14 +0000 (+0000) Subject: Shove the GHC path through cygpath -m X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=commitdiff_plain;h=5ed560ba64842f909a26a000f9eaa965b80f696e Shove the GHC path through cygpath -m --- diff --git a/configure.ac b/configure.ac index f22ffbe..8645834 100644 --- a/configure.ac +++ b/configure.ac @@ -644,6 +644,14 @@ AC_ARG_WITH([ghc], AC_PATH_PROG([GHC], [ghc]) fi WithGhc="$GHC"]) +# GHC is passed to Cabal, so we need a native path +if test "x$HostPlatform" = "xi386-unknown-mingw32" && \ + test "${OSTYPE}" != "msys" && \ + test "${WithGhc}" != "" +then + # Canonicalise to :/path/to/ghc + WithGhc=`cygpath -m ${WithGhc}` +fi AC_SUBST([WithGhc]) AC_ARG_WITH(hc,