[project @ 2001-09-18 08:53:01 by simonmar]
authorsimonmar <unknown>
Tue, 18 Sep 2001 08:53:01 +0000 (08:53 +0000)
committersimonmar <unknown>
Tue, 18 Sep 2001 08:53:01 +0000 (08:53 +0000)
Don't check for an installed GHC if the user said --with-ghc=... or
GHC=... ./configure.

configure.in

index f0376d9..d5427d4 100644 (file)
@@ -346,17 +346,19 @@ dnl use either is considered a Feature.
 
 dnl ** What command to use to compile compiler sources ?
 dnl --------------------------------------------------------------
-if test "$GHC" = ""; then
-  AC_PATH_PROG(GHC,ghc)
-fi
 
 AC_ARG_WITH(ghc,
 [  --with-ghc=<haskell compiler>
         Use a command different from 'ghc' to compile GHC-specific Haskell code
            (including GHC itself).
 ],
-[WithGhc="$withval"],
-[WithGhc=$GHC]
+[ WithGhc="$withval" ],
+[ 
+  if test "$GHC" = ""; then
+    AC_PATH_PROG(GHC,ghc)
+  fi
+  WithGhc=$GHC
+]
 )
 AC_SUBST(WithGhc)