3 HC bootstrapping has bitrotted further. The original ./configure tries
4 to use stage-0 GHC even when --enable-hc-boot is given.
7 --- configure.orig 2011-03-26 18:10:47.000000000 +0000
9 @@ -3626,6 +3626,8 @@ checkArch "$TargetArch"
10 checkVendor "$TargetVendor"
13 +if test "${WithGhc}" != ""
15 # Verify that the installed (bootstrap) GHC is capable of generating
16 # code for the requested build platform.
17 if test "$build" != "$bootstrap_target"
18 @@ -3635,7 +3637,7 @@ then
19 echo " Desired build platform : $BuildPlatform"
27 @@ -3757,6 +3759,8 @@ fi
29 # This uses GHC, so put it after the "GHC is required" check above:
31 +if ! test -x "utils/ghc-pwd/dist-boot/ghc-pwd"
33 { $as_echo "$as_me:${as_lineno-$LINENO}: Building in-tree ghc-pwd" >&5
34 $as_echo "$as_me: Building in-tree ghc-pwd" >&6;}
35 rm -rf utils/ghc-pwd/dist-boot
36 @@ -3765,6 +3769,7 @@ $as_echo "$as_me: Building in-tree ghc-p
38 as_fn_error "Building ghc-pwd failed" "$LINENO" 5
42 GHC_PWD=utils/ghc-pwd/dist-boot/ghc-pwd
44 @@ -6255,7 +6260,7 @@ fi
47 if test -n "$DtraceCmd"; then
48 - if test "x$TargetOS_CPP-$TargetVendor_CPP" == "xdarwin-apple" -o "x$TargetOS_CPP-$TargetVendor_CPP" == "xsolaris2-unknown"; then
49 + if test "x$TargetOS_CPP-$TargetVendor_CPP" = "xdarwin-apple" -o "x$TargetOS_CPP-$TargetVendor_CPP" = "xsolaris2-unknown"; then
53 @@ -6581,6 +6586,7 @@ $as_echo "$as_me: WARNING: cannot find h
57 +if test "$BootingFromHc" = "NO"; then
58 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ghc-pkg matching $WithGhc" >&5
59 $as_echo_n "checking for ghc-pkg matching $WithGhc... " >&6; }
60 if test "${fp_cv_matching_ghc_pkg+set}" = set; then :
61 @@ -6602,6 +6608,7 @@ fi
62 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fp_cv_matching_ghc_pkg" >&5
63 $as_echo "$fp_cv_matching_ghc_pkg" >&6; }
64 GhcPkgCmd=$fp_cv_matching_ghc_pkg