summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorrrt <unknown>2000-05-09 10:43:45 +0000
committerrrt <unknown>2000-05-09 10:43:45 +0000
commitdfc021e7860e3aec71f750b8c943a476112cfd0f (patch)
treefa4240ec55cb7a8e3be36a7ae66f6725fc96d4f1 /configure.in
parent272a1670d92ee0c09e0ccebb1bfe6560ec6ffbf3 (diff)
downloadhaskell-dfc021e7860e3aec71f750b8c943a476112cfd0f.tar.gz
[project @ 2000-05-09 10:43:45 by rrt]
Changed Perl test so that it simply allows vv5 & 6 and disallows any other; also hardwire path to perl to /bin/perl under Windows, to avoid clashing with other weird Perls that may be on the path.
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in30
1 files changed, 21 insertions, 9 deletions
diff --git a/configure.in b/configure.in
index 42415b530a..898a920e55 100644
--- a/configure.in
+++ b/configure.in
@@ -407,15 +407,27 @@ dnl --------------------------------------------------------------
dnl ** does #! work?
AC_SYS_INTERPRETER()
-dnl ** look for `perl', but watch out for version 4.035
-AC_PATH_PROG(PerlCmd,perl)
-if test -z "$PerlCmd"; then
- echo "You must install perl before you can continue"
- echo "Perhaps it is already installed, but not in your PATH?"
- exit 1
-else
-FPTOOLS_CHECK_PERL_VERSION
-fi
+dnl ** look for `perl', but only in /bin on Windows
+case $HostOS_CPP in
+cygwin32|mingw32)
+ AC_CHECK_PROG(PerlCmd,perl,/bin/perl,,/bin)
+ if test -z "$PerlCmd"; then
+ echo "You must install the version of Perl shipped with GHC"
+ echo "(or a compatible one) in /bin."
+ exit 1
+ fi
+ ;;
+*)
+ AC_PATH_PROG(PerlCmd,perl)
+ if test -z "$PerlCmd"; then
+ echo "You must install perl before you can continue"
+ echo "Perhaps it is already installed, but not in your PATH?"
+ exit 1
+ else
+ FPTOOLS_CHECK_PERL_VERSION
+ fi
+ ;;
+esac
dnl ** does #! path/to/perl work? (sometimes it's too long...)
FPTOOLS_SHEBANG_PERL