projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
9a17dfd
)
On cygwin, convert Haddock's path to a native path
author
Ian Lynagh
<igloo@earth.li>
Sat, 5 Jul 2008 16:21:54 +0000
(16:21 +0000)
committer
Ian Lynagh
<igloo@earth.li>
Sat, 5 Jul 2008 16:21:54 +0000
(16:21 +0000)
aclocal.m4
patch
|
blob
|
history
diff --git
a/aclocal.m4
b/aclocal.m4
index
f0ad4cf
..
df7db2c
100644
(file)
--- 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.
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
])
dnl