summaryrefslogtreecommitdiff
path: root/aclocal.m4
diff options
context:
space:
mode:
authorsimonmar <unknown>2005-01-18 11:31:03 +0000
committersimonmar <unknown>2005-01-18 11:31:03 +0000
commit43d5a248f604acf6ad4d743ed7c002580c44aa8f (patch)
tree44e05150a2be07a8fecefd3eba29e3a015191740 /aclocal.m4
parentbe92500d77001d3e8bb133e2b6d0b6fa06462db1 (diff)
downloadhaskell-43d5a248f604acf6ad4d743ed7c002580c44aa8f.tar.gz
[project @ 2005-01-18 11:31:03 by simonmar]
Try again: Complain if --enable-src-tree-{happy,alex,haddock} is given, but the relevant sources don't exist.
Diffstat (limited to 'aclocal.m4')
-rw-r--r--aclocal.m424
1 files changed, 21 insertions, 3 deletions
diff --git a/aclocal.m4 b/aclocal.m4
index 3a8aa2e6e9..1a45e4f30f 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -248,9 +248,15 @@ AC_DEFUN(FPTOOLS_HAPPY,
[
if test -d $srcdir/happy; then
SrcTreeHappyCmd=$hardtop/happy/src/happy-inplace
+else
+ SrcTreeHappyCmd=""
fi
if test x"$UseSrcTreeHappy" = xYES; then
- HappyCmd=$SrcTreeHappyCmd
+ if test x"$SrcTreeHappyCmd" != x; then
+ HappyCmd=$SrcTreeHappyCmd
+ else
+ AC_MSG_ERROR([--enable-src-tree-happy given, but happy not found in source tree])
+ fi
else
AC_PATH_PROG(HappyCmd,happy,$SrcTreeHappyCmd)
fi
@@ -282,9 +288,15 @@ AC_DEFUN(FPTOOLS_HADDOCK,
[
if test -d $srcdir/haddock; then
SrcTreeHaddockCmd=$hardtop/haddock/src/haddock-inplace
+else
+ SrcTreeHaddockCmd=""
fi
if test x"$UseSrcTreeHaddock" = xYES; then
- HaddockCmd=$SrcTreeHaddockCmd
+ if test x"$SrcTreeHaddockCmd" != x; then
+ HaddockCmd=$SrcTreeHaddockCmd
+ else
+ AC_MSG_ERROR([--enable-src-tree-haddock given, but haddock not found in source tree])
+ fi
else
AC_PATH_PROG(HaddockCmd,haddock,$SrcTreeHaddockCmd)
fi
@@ -303,9 +315,15 @@ AC_DEFUN(FPTOOLS_ALEX,
[
if test -d $srcdir/alex; then
SrcTreeAlexCmd=$hardtop/alex/src/alex-inplace
+else
+ SrcTreeAlexCmd=""
fi
if test x"$UseSrcTreeAlex" = xYES; then
- AlexCmd=$SrcTreeAlexCmd
+ if test x"$SrcTreeAlexCmd" != x; then
+ AlexCmd=$SrcTreeAlexCmd
+ else
+ AC_MSG_ERROR([--enable-src-tree-alex given, but alex not found in source tree])
+ fi
else
AC_PATH_PROG(AlexCmd,alex,$SrcTreeAlexCmd)
fi