From 74ed845eea44d4e9561969825674c34da5415b8c Mon Sep 17 00:00:00 2001
From: simonm <unknown>
Date: Wed, 10 Sep 1997 09:51:04 +0000
Subject: [PATCH] [project @ 1997-09-10 09:51:04 by simonm] minor mod to the
 happy configuration.

---
 configure.in | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/configure.in b/configure.in
index 034f7fb559f2..e62814778059 100644
--- a/configure.in
+++ b/configure.in
@@ -388,11 +388,14 @@ AC_SUBST(CompressSuffix)
 dnl ** check for installed happy binary + version
 #
 AC_HAPPY
-if expr $HappyVersion \< "1.3" >/dev/null; then
+
+if test x"$HappyCmd" != x; then
+   if expr $HappyVersion \< "1.3" >/dev/null; then
 	echo "   Happy Version 1.3 or later is required to compile GHC."
 	echo "   Using the Happy sources in the tree.";
 	HappyCmd=""
-fi;
+   fi
+fi
 
 #
 #
-- 
GitLab