From 970e71db99c9d4e0b801647ed155df0da21f49e0 Mon Sep 17 00:00:00 2001 From: simonmar Date: Thu, 15 Feb 2001 12:38:35 +0000 Subject: [PATCH] [project @ 2001-02-15 12:38:35 by simonmar] re-order the WithHc and WithGhc tests: now if you specify --with-ghc=, then WithHc also gets if you don't set it explicitly. Previously it got whatever ghc was in the PATH, which would fail if there wasn't a ghc in the PATH at all. --- configure.in | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/configure.in b/configure.in index da73e86..dbfe119 100644 --- a/configure.in +++ b/configure.in @@ -355,15 +355,6 @@ if test "$GHC" = ""; then AC_PATH_PROG(GHC,ghc) fi -AC_ARG_WITH(hc, -[ --with-hc= - Use a command different from 'ghc' to compile generic Haskell code. -], -[WithHc="$withval"], -[WithHc=$GHC] -) -AC_SUBST(WithHc) - AC_ARG_WITH(ghc, [ --with-ghc= Use a command different from 'ghc' to compile GHC-specific Haskell code @@ -374,6 +365,15 @@ AC_ARG_WITH(ghc, ) AC_SUBST(WithGhc) +AC_ARG_WITH(hc, +[ --with-hc= + Use a command different from 'ghc' to compile generic Haskell code. +], +[WithHc="$withval"], +[WithHc=$WithGhc] +) +AC_SUBST(WithHc) + if test "$WithGhc" != ""; then FPTOOLS_GHC_VERSION([GhcVersion], [GhcMajVersion], [GhcMinVersion], [GhcPatchLevel])dnl AC_SUBST(GhcVersion)dnl -- 1.7.10.4