about summary refs log tree commit diff
path: root/configure.in
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2000-03-09 21:48:28 +0000
committerRoland McGrath <roland@gnu.org>2000-03-09 21:48:28 +0000
commit2fd5d0297c335c74a86b9160286cb6dc7eee440b (patch)
tree9f3b9e74a484ec6c733c2476fcc5d152b1b6b309 /configure.in
parent93773779e35a9652bb7576db68b412ab14a8faa2 (diff)
downloadglibc-2fd5d0297c335c74a86b9160286cb6dc7eee440b.tar.gz
glibc-2fd5d0297c335c74a86b9160286cb6dc7eee440b.tar.xz
glibc-2fd5d0297c335c74a86b9160286cb6dc7eee440b.zip
2000-03-09 Roland McGrath <roland@baalperazim.frob.com>
	* 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.
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in13
1 files changed, 4 insertions, 9 deletions
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