[project @ 2003-02-17 11:18:45 by simonmar]
authorsimonmar <unknown>
Mon, 17 Feb 2003 11:18:45 +0000 (11:18 +0000)
committersimonmar <unknown>
Mon, 17 Feb 2003 11:18:45 +0000 (11:18 +0000)
Emit an error if we're trying to build GHC from source without GHC installed.

configure.in

index 86e3a98..cb45623 100644 (file)
@@ -468,6 +468,10 @@ AC_MSG_ERROR([--enable-hc-boot-unregisterised requires --enable-hc-boot.])
 fi;
 fi;
 
+dnl ** Must have GHC to build GHC, unless --enable-hc-boot is on
+if test "$BootingFromHc" = "NO" -a "$WithGhc" = "" -a -d "$srcdir/ghc"; then
+AC_MSG_ERROR([GHC is required unless bootstrapping from .hc files.])
+fi;
 
 dnl ** Enable multi-thread friendly RTS?
 dnl --------------------------------------------------------------