]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* tests/tagtrace.test: Allow `$AUTOCONF' to contain arguments.
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Thu, 27 Oct 2005 13:17:05 +0000 (13:17 +0000)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Thu, 27 Oct 2005 13:17:05 +0000 (13:17 +0000)
Skip if the running `autoconf' version is older than the one
used to bootstrap Libtool.

ChangeLog
tests/tagtrace.test

index 5bf09add8da426e65938a9577462ad2b56921d7c..6610ca48b4ac5764b057726b5cdf2875bc3570a2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2005-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+       * 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  <ebb9@byu.net>,
            Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
index 38366a9657879e10e83372636af98d3509a9c251..087c47888f4891d9d9818eae604b163129a049ee 100755 (executable)
 
 : ${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"