X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=configure.in;h=d5427d4d963f823d4be6a4487f0328073f3167fc;hb=1a8d01f99c116ea79fa765afc8f8f6129c5b270d;hp=f0376d9f3638f07a22aa16150b6f54cdd4868121;hpb=018a827a59413719ff73cf296d3f3f943b71a3b3;p=ghc-hetmet.git diff --git a/configure.in b/configure.in index f0376d9..d5427d4 100644 --- a/configure.in +++ b/configure.in @@ -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= 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)