From ea78cd04ded208a5833916d701d4471d2faae5cb Mon Sep 17 00:00:00 2001
From: simonmar <unknown>
Date: Wed, 10 Apr 2002 09:41:16 +0000
Subject: [PATCH] [project @ 2002-04-10 09:41:16 by simonmar] Currently
 configure falls over if $srcdir/ghc exists and Happy >= 1.9 can't be found. 
 For a source distribution this is too paranoid, because we ship the
 Happy-generated .hs files with the sources.  Now we ignore a missing Happy if
 ghc/compiler/parser/Parser.hs exists, which should be a reasonable heuristic.

---
 aclocal.m4 | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/aclocal.m4 b/aclocal.m4
index 84daf870db5b..3a79ef864283 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -1,4 +1,4 @@
-dnl $Id: aclocal.m4,v 1.98 2002/03/12 09:23:01 simonmar Exp $
+dnl $Id: aclocal.m4,v 1.99 2002/04/10 09:41:16 simonmar Exp $
 dnl 
 dnl Extra autoconf macros for the Glasgow fptools
 dnl
@@ -214,7 +214,7 @@ else
 fi;
 changequote([, ])dnl
 ])
-if test -d $srcdir/ghc; then
+if test -d $srcdir/ghc -a ! -f $srcdir/ghc/compiler/parser/Parser.hs; then
   FPTOOLS_PROG_CHECK_VERSION([$fptools_cv_happy_version],-lt,[1.9],
   [AC_MSG_ERROR([Happy version 1.9 or later is required to compile GHC.])])dnl
 fi
-- 
GitLab