X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=configure.ac;h=afe7a05b169a2fc5cce684997ce76fc156336203;hb=33fe71479b74a25ec28bd8f487f00a81b1e22a7f;hp=d176e2c9be652c82871e19a30b7b10fea68c8d52;hpb=5d30f835fb94ab6056829723d623f05b689ada4a;p=ghc-hetmet.git diff --git a/configure.ac b/configure.ac index d176e2c..afe7a05 100644 --- a/configure.ac +++ b/configure.ac @@ -346,6 +346,16 @@ checkArch "$TargetArch" checkVendor "$TargetVendor" checkOS "$TargetOS" +# Verify that the installed (bootstrap) GHC is capable of generating +# code for the requested build platform. +if test "$build" != "$bootstrap_target" +then + echo "This GHC (${WithGhc}) does not generate code for the build platform" + echo " GHC target platform : $bootstrap_target" + echo " Desired build platform : $BuildPlatform" + exit 1 +fi + AC_SUBST(BuildPlatform) AC_SUBST(HostPlatform) AC_SUBST(TargetPlatform)