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:
beabed2
)
On cygwin, convert happy's path to a native path
author
Ian Lynagh
<igloo@earth.li>
Sat, 5 Jul 2008 16:31:13 +0000
(16:31 +0000)
committer
Ian Lynagh
<igloo@earth.li>
Sat, 5 Jul 2008 16:31:13 +0000
(16:31 +0000)
aclocal.m4
patch
|
blob
|
history
diff --git
a/aclocal.m4
b/aclocal.m4
index
df7db2c
..
8593b89
100644
(file)
--- a/
aclocal.m4
+++ b/
aclocal.m4
@@
-268,6
+268,16
@@
dnl for a happy source tree and point the build system at that instead.
dnl
AC_DEFUN([FPTOOLS_HAPPY],
[AC_PATH_PROG(HappyCmd,happy,)
dnl
AC_DEFUN([FPTOOLS_HAPPY],
[AC_PATH_PROG(HappyCmd,happy,)
+# Happy is passed to Cabal, so we need a native path
+if test "x$HostPlatform" = "xi386-unknown-mingw32" && \
+ test "${OSTYPE}" != "msys" && \
+ test "${HappyCmd}" != ""
+then
+ # Canonicalise to <drive>:/path/to/gcc
+ HappyCmd=`cygpath -m ${HappyCmd}`
+ AC_MSG_NOTICE([normalized happy command to $HappyCmd])
+fi
+
AC_CACHE_CHECK([for version of happy], fptools_cv_happy_version,
changequote(, )dnl
[if test x"$HappyCmd" != x; then
AC_CACHE_CHECK([for version of happy], fptools_cv_happy_version,
changequote(, )dnl
[if test x"$HappyCmd" != x; then