From: sof Date: Thu, 13 Dec 2001 09:23:23 +0000 (+0000) Subject: [project @ 2001-12-13 09:23:22 by sof] X-Git-Tag: Approximately_9120_patches~393 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=4acdf213cbd6cf84b9b2b07c596a044b8b64a7f1;p=ghc-hetmet.git [project @ 2001-12-13 09:23:22 by sof] new option, --enable-src-tree-happy, which forces the use of happy/src/happy-inplace as HAPPY --- diff --git a/aclocal.m4 b/aclocal.m4 index 4e3ff09..b38227f 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -1,4 +1,4 @@ -dnl $Id: aclocal.m4,v 1.89 2001/12/10 01:21:17 sebc Exp $ +dnl $Id: aclocal.m4,v 1.90 2001/12/13 09:23:23 sof Exp $ dnl dnl Extra autoconf macros for the Glasgow fptools dnl @@ -197,7 +197,11 @@ AC_DEFUN(FPTOOLS_HAPPY, if test -d $srcdir/happy; then SrcTreeHappyCmd=$hardtop/happy/src/happy-inplace fi -AC_PATH_PROG(HappyCmd,happy,$SrcTreeHappyCmd) +if test x"$UseSrcTreeHappy" = xYES; then + HappyCmd=$SrcTreeHappyCmd +else + AC_PATH_PROG(HappyCmd,happy,$SrcTreeHappyCmd) +fi AC_CACHE_CHECK([for version of happy], fptools_cv_happy_version, changequote(, )dnl [if test x"$HappyCmd" = x"$SrcTreeHappyCmd"; then diff --git a/configure.in b/configure.in index 0e24d30..0f124a6 100644 --- a/configure.in +++ b/configure.in @@ -629,6 +629,13 @@ fi AC_SUBST(CompressCmd) AC_SUBST(CompressSuffix) +AC_ARG_ENABLE(src-tree-happy, +[ --enable-src-tree-happy + Build and use source tree (fptools/happy) version of happy. +], +[UseSrcTreeHappy=YES], +[UseSrcTreeHappy=NO] +) dnl ** check for installed happy binary + version dnl (don't do it if we're booting from .hc files though.) if test "$BootingFromHc" = "NO"; then