From 209d09f52363b261b900cf042934ae1e81e2caa7 Mon Sep 17 00:00:00 2001 From: Julian Ospald <hasufell@posteo.de> Date: Tue, 16 Apr 2024 14:41:58 +0800 Subject: [PATCH] Allow non-absolute values for bootstrap GHC variable Fixes #24682 --- configure.ac | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/configure.ac b/configure.ac index f03dd9c326d2..8e499a98bbe0 100644 --- a/configure.ac +++ b/configure.ac @@ -97,11 +97,11 @@ dnl use either is considered a Feature. dnl ** What command to use to compile compiler sources ? dnl -------------------------------------------------------------- -AC_ARG_VAR(GHC,[Use as the full path to GHC. [default=autodetect]]) -AC_PATH_PROG([GHC], [ghc]) +AC_ARG_VAR(GHC,[Use as the bootstrap GHC. [default=autodetect]]) +AC_CHECK_PROG([GHC], [ghc], [ghc]) AC_ARG_WITH([ghc], - AS_HELP_STRING([--with-ghc=PATH], [Use PATH as the full path to ghc (obsolete, use GHC=PATH instead) [default=autodetect]]), - AC_MSG_ERROR([--with-ghc=$withval is obsolete (use './configure GHC=$withval' or 'GHC=$withval ./configure' instead)])) + AS_HELP_STRING([--with-ghc=PATH], [Use PATH as the bootstrap ghc (obsolete, use GHC=PATH instead) [default=autodetect]]), + AC_MSG_ERROR([--with-ghc=$withval is obsolete (use './configure GHC=$withval' instead)])) AC_SUBST(WithGhc,$GHC) AC_ARG_ENABLE(bootstrap-with-devel-snapshot, -- GitLab