From 60f17244763bbad904dece042e3b8d9adc38b506 Mon Sep 17 00:00:00 2001 From: Ralf Wildenhues Date: Thu, 27 Oct 2005 13:17:05 +0000 Subject: [PATCH] * tests/tagtrace.test: Allow `$AUTOCONF' to contain arguments. Skip if the running `autoconf' version is older than the one used to bootstrap Libtool. --- ChangeLog | 6 ++++++ tests/tagtrace.test | 10 ++++++++-- 2 files changed, 14 insertions(+), 2 deletions(-) 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" -- 2.47.3