From: Ralf Wildenhues Date: Thu, 27 Oct 2005 13:17:05 +0000 (+0000) Subject: * tests/tagtrace.test: Allow `$AUTOCONF' to contain arguments. X-Git-Tag: release-2-1b~446 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=60f17244763bbad904dece042e3b8d9adc38b506;p=thirdparty%2Flibtool.git * tests/tagtrace.test: Allow `$AUTOCONF' to contain arguments. Skip if the running `autoconf' version is older than the one used to bootstrap Libtool. --- diff --git a/ChangeLog b/ChangeLog index 5bf09add8..6610ca48b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2005-10-27 Ralf Wildenhues + + * tests/tagtrace.test: Allow `$AUTOCONF' to contain arguments. + Skip if the running `autoconf' version is older than the one + used to bootstrap Libtool. + 2005-10-26 Eric Blake , Ralf Wildenhues diff --git a/tests/tagtrace.test b/tests/tagtrace.test index 38366a965..087c47888 100755 --- a/tests/tagtrace.test +++ b/tests/tagtrace.test @@ -25,18 +25,24 @@ : ${fnord=$srcdir/fnord$$} -"$AUTOCONF" --version > /dev/null 2>&1 || func_skip "This test requires GNU Autoconf" +$AUTOCONF --version > /dev/null 2>&1 || func_skip "This test requires GNU Autoconf" if touch $fnord; then rm $fnord else func_skip "This test requires write access to the source tree" fi +if ( cd "$srcdir" && $AUTOCONF --trace 'LT_SUPPORTED_TAG:$1' ) 2>&1 >/dev/null | + grep "Autoconf version .*is required" >/dev/null; then + func_error "This test requires an Autoconf version at least as new" + func_skip "as the one that was used to bootstrap Libtool" +fi + # Abort as soon as something fails. set -e # Retrieve the list of tags supported by our main libtool script. -traced_tags=`cd "$srcdir" && "$AUTOCONF" --trace 'LT_SUPPORTED_TAG:$1'` +traced_tags=`cd "$srcdir" && $AUTOCONF --trace 'LT_SUPPORTED_TAG:$1'` test -n "$traced_tags"