From: Akim Demaille Date: Sat, 23 Jun 2001 14:01:29 +0000 (+0000) Subject: * tests/foreign.at (Libtool): Reject prehistoric versions. X-Git-Tag: AUTOCONF-2.50a~14 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=23e9b138593e86d003bfb451d6d0b246944e1175;p=thirdparty%2Fautoconf.git * tests/foreign.at (Libtool): Reject prehistoric versions. --- diff --git a/ChangeLog b/ChangeLog index 19e69df68..53b08b944 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2001-06-23 Akim Demaille + + * tests/foreign.at (Libtool): Reject prehistoric versions. + 2001-06-23 Akim Demaille * aclang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Try to be robust to diff --git a/tests/foreign.at b/tests/foreign.at index 082b602d9..335946ac2 100644 --- a/tests/foreign.at +++ b/tests/foreign.at @@ -12,7 +12,13 @@ AT_SETUP([[Libtool]]) AT_CHECK([libtoolize --version || exit 77], ignore, ignore, ignore) # CVS Autoconf probably does not work with too old Libtools. -AT_CHECK([[libtoolize --version | egrep '1\.3(\.[0-4])?$' && exit 77]], +AT_CHECK([[ +case `libtoolize --version | + sed -n '/^.* \([0-9][0-9.a-z]*\)$/{s//\1/;p;q;}'` in + *" "0.* ) exit 77;; + *" "1.[012]* ) exit 77;; + *" "1.3.[01234]* ) exit 77;; +esac]], ignore, ignore, ignore) # FIXME: Once Libtool `configure.ac' aware, change this.