From 2fd5d0297c335c74a86b9160286cb6dc7eee440b Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Thu, 9 Mar 2000 21:48:28 +0000 Subject: 2000-03-09 Roland McGrath * configure.in (PERL, INSTALL_INFO): Don't AC_SUBST these, since AC_PATH_PROG already does it for us. (PERL): Rewrite check added in 2000-02-29 change for syntactic correctness and sh portability. I replaced the broken check with a more sensible implementation of the apparently intended semantics, which might still be questionable. Using expr causes a non-numeric value for `perl -V:apiversion` to be accepted, refusing to use only a perl that reports a number less than 5; on my system, perl (5.004_04) -V:apiversion produces UNKNOWN. * configure: Regenerated. --- configure.in | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'configure.in') diff --git a/configure.in b/configure.in index ffa7d82bab..dbffa1f1bc 100644 --- a/configure.in +++ b/configure.in @@ -630,17 +630,12 @@ AC_SUBST(libc_cv_have_ksh) AC_PROG_AWK AC_PATH_PROG(PERL, perl, no) -if [ -n "$PERL" ] ; then - eval $($PERL -V:apiversion) - if expr $apiversion \< "5" ; then - PERL=no - fi - unset apiversion -fi -AC_SUBST(PERL) +if test "$PERL" != no && + (eval `$PERL -V:apiversion`; test `expr "$apiversion" \< 5` -ne 0); then + PERL=no +fi AC_PATH_PROG(INSTALL_INFO, install-info, no, $PATH:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin) -AC_SUBST(INSTALL_INFO) if test "$INSTALL_INFO" != "no"; then AC_CACHE_CHECK(for old Debian install-info, libc_cv_old_debian_install_info, [mkdir conftest.d -- cgit 1.4.1