diff options
author | Ian Lynagh <igloo@earth.li> | 2008-07-05 16:21:54 +0000 |
---|---|---|
committer | Ian Lynagh <igloo@earth.li> | 2008-07-05 16:21:54 +0000 |
commit | beabed20fb6b72eb79fcf315b1793ff8da415653 (patch) | |
tree | 344e755b94244c6d9a13044a2a783a6ddf2e37a0 /aclocal.m4 | |
parent | 9a17dfd7f10952762cd8aff1ef4dbd0ae6daec37 (diff) | |
download | haskell-beabed20fb6b72eb79fcf315b1793ff8da415653.tar.gz |
On cygwin, convert Haddock's path to a native path
Diffstat (limited to 'aclocal.m4')
-rw-r--r-- | aclocal.m4 | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/aclocal.m4 b/aclocal.m4 index f0ad4cf4c3..df7db2c3de 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -297,6 +297,15 @@ dnl Darn, I forgot to make Haddock print out its version number when dnl invoked with -v. We could try generating some HTML and grepping dnl through that to find the version number, but I think we'll make dnl do without it for now. +# Haddock is passed to Cabal, so we need a native path +if test "x$HostPlatform" = "xi386-unknown-mingw32" && \ + test "${OSTYPE}" != "msys" && \ + test "${HaddockCmd}" != "" +then + # Canonicalise to <drive>:/path/to/gcc + HaddockCmd=`cygpath -m ${HaddockCmd}` + AC_MSG_NOTICE([normalized haddock command to $HaddockCmd]) +fi ]) dnl |