]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
* configure.in: Test for Autoconf >= 2.52.
authorAlexandre Duret-Lutz <adl@gnu.org>
Wed, 26 Dec 2001 08:22:06 +0000 (08:22 +0000)
committerAlexandre Duret-Lutz <adl@gnu.org>
Wed, 26 Dec 2001 08:22:06 +0000 (08:22 +0000)
* tests/defs (needs_autoconf, has_autoconf): Delete definition.
* tests/ansi3.test, tests/ansi5.test, tests/ccnoco.test,
tests/cond4.test, tests/cond9.test, tests/cond16.test,
tests/cond18.test, tests/cond19.test, tests/cond20.test,
tests/confsub.test, tests/depcomp2.test, tests/depdist.test,
tests/depend2.test, tests/dirname.test, tests/distname.test,
tests/extra5.test, tests/install2.test, tests/lex3.test,
tests/make.test, tests/nobase.test, tests/pr9.test,
tests/pr87.test, tests/stamph2.test, tests/subdir5.test,
tests/subdirbuiltsources.test, tests/subobj3.test,
tests/subobj5.test, tests/subobj6.test, tests/substref.test,
tests/target-cflags.test, tests/yacc4.test, tests/yacc7.test,
tests/yaccvpath.test: Do not use $needs_autoconf.

39 files changed:
ChangeLog
Makefile.in
aclocal.m4
configure
configure.in
tests/ansi3.test
tests/ansi5.test
tests/ccnoco.test
tests/cond16.test
tests/cond18.test
tests/cond19.test
tests/cond20.test
tests/cond4.test
tests/cond9.test
tests/confsub.test
tests/defs
tests/depcomp2.test
tests/depdist.test
tests/depend2.test
tests/dirname.test
tests/distname.test
tests/extra5.test
tests/install2.test
tests/lex3.test
tests/make.test
tests/nobase.test
tests/pr87.test
tests/pr9.test
tests/stamph2.test
tests/subdir5.test
tests/subdirbuiltsources.test
tests/subobj3.test
tests/subobj5.test
tests/subobj6.test
tests/substref.test
tests/target-cflags.test
tests/yacc4.test
tests/yacc7.test
tests/yaccvpath.test

index 5b020410bbd27d7498c3e4b522c00fc7e4b5a6ae..e3859e64b5f3319ec74d9ff8df64ee7686dabde0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,20 @@
+2001-12-26  Alexandre Duret-Lutz  <duret_g@epita.fr>
+
+       * configure.in: Test for Autoconf >= 2.52.
+       * tests/defs (needs_autoconf, has_autoconf): Delete definition.
+       * tests/ansi3.test, tests/ansi5.test, tests/ccnoco.test,
+       tests/cond4.test, tests/cond9.test, tests/cond16.test,
+       tests/cond18.test, tests/cond19.test, tests/cond20.test,
+       tests/confsub.test, tests/depcomp2.test, tests/depdist.test,
+       tests/depend2.test, tests/dirname.test, tests/distname.test,
+       tests/extra5.test, tests/install2.test, tests/lex3.test,
+       tests/make.test, tests/nobase.test, tests/pr9.test,
+       tests/pr87.test, tests/stamph2.test, tests/subdir5.test,
+       tests/subdirbuiltsources.test, tests/subobj3.test,
+       tests/subobj5.test, tests/subobj6.test, tests/substref.test,
+       tests/target-cflags.test, tests/yacc4.test, tests/yacc7.test,
+       tests/yaccvpath.test: Do not use $needs_autoconf.
+
 2001-12-14  Alexandre Duret-Lutz  <duret_g@epita.fr>
 
        * configure.in: Bump version to 1.5c.
index 939f5c235e3e3b982e3d6bda1a656b5f741486cf..a18b88216f6d825f06f1534255188362d47c4046 100644 (file)
@@ -1,4 +1,4 @@
-# Makefile.in generated by automake 1.5b from Makefile.am.
+# Makefile.in generated by automake 1.5c from Makefile.am.
 # @configure_input@
 
 # Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
index aa2ba692b6891f099bf07eb3652f1fc7fa401131..631051890638b6265652984d297bfbe44d7f71ee 100644 (file)
@@ -644,3 +644,31 @@ else
   $1_FALSE=
 fi])
 
+# Copyright 2001 Free Software Foundation, Inc.             -*- Autoconf -*-
+
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
+# 02111-1307, USA.
+
+# AM_RUN_LOG(COMMAND)
+# -------------------
+# Run COMMAND, save the exit status in ac_status, and log it.
+# (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
+AC_DEFUN([AM_RUN_LOG],
+[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
+   ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
+   ac_status=$?
+   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
+   (exit $ac_status); }])
+
index 915605cef1c8b012988195d4180e9ed387e80c4a..d2322e16bd103b34c03a573e0140e356ddf4a03b 100755 (executable)
--- a/configure
+++ b/configure
@@ -1260,6 +1260,18 @@ echo "$as_me: error: perl 5.005 or better is required" >&2;}
    { (exit 1); exit 1; }; }
 }
 
+echo 'AC''_PREREQ(2.52)' > conftest.ac
+{ echo "$as_me:$LINENO: eval $AUTOCONF -o /dev/null conftest.ac" >&5
+   (eval $AUTOCONF -o /dev/null conftest.ac) >&5 2>&5
+   ac_status=$?
+   echo "$as_me:$LINENO: \$? = $ac_status" >&5
+   (exit $ac_status); } || {
+   { { echo "$as_me:1269: error: Autoconf 2.52 or better is required" >&5
+echo "$as_me: error: Autoconf 2.52 or better is required" >&2;}
+   { (exit 1); exit 1; }; }
+}
+rm conftest.ac
+
 ac_config_files="$ac_config_files automake"
 
 ac_config_files="$ac_config_files aclocal"
@@ -1374,7 +1386,7 @@ rm -f confdef2opt.sed
 : ${CONFIG_STATUS=./config.status}
 ac_clean_files_save=$ac_clean_files
 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
-{ echo "$as_me:1377: creating $CONFIG_STATUS" >&5
+{ echo "$as_me:1389: creating $CONFIG_STATUS" >&5
 echo "$as_me: creating $CONFIG_STATUS" >&6;}
 cat >$CONFIG_STATUS <<_ACEOF
 #! $SHELL
@@ -1542,7 +1554,7 @@ cat >>$CONFIG_STATUS <<\EOF
     echo "$ac_cs_version"; exit 0 ;;
   --he | --h)
     # Conflict between --help and --header
-    { { echo "$as_me:1545: error: ambiguous option: $1
+    { { echo "$as_me:1557: error: ambiguous option: $1
 Try \`$0 --help' for more information." >&5
 echo "$as_me: error: ambiguous option: $1
 Try \`$0 --help' for more information." >&2;}
@@ -1561,7 +1573,7 @@ Try \`$0 --help' for more information." >&2;}
     ac_need_defaults=false;;
 
   # This is an error.
-  -*) { { echo "$as_me:1564: error: unrecognized option: $1
+  -*) { { echo "$as_me:1576: error: unrecognized option: $1
 Try \`$0 --help' for more information." >&5
 echo "$as_me: error: unrecognized option: $1
 Try \`$0 --help' for more information." >&2;}
@@ -1604,7 +1616,7 @@ do
   "lib/am/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/am/Makefile" ;;
   "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
   "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
-  *) { { echo "$as_me:1607: error: invalid argument: $ac_config_target" >&5
+  *) { { echo "$as_me:1619: error: invalid argument: $ac_config_target" >&5
 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
    { (exit 1); exit 1; }; };;
   esac
@@ -1818,7 +1830,7 @@ done; }
   esac
 
   if test x"$ac_file" != x-; then
-    { echo "$as_me:1821: creating $ac_file" >&5
+    { echo "$as_me:1833: creating $ac_file" >&5
 echo "$as_me: creating $ac_file" >&6;}
     rm -f "$ac_file"
   fi
@@ -1836,7 +1848,7 @@ echo "$as_me: creating $ac_file" >&6;}
       -) echo $tmp/stdin ;;
       [\\/$]*)
          # Absolute (can't be DOS-style, as IFS=:)
-         test -f "$f" || { { echo "$as_me:1839: error: cannot find input file: $f" >&5
+         test -f "$f" || { { echo "$as_me:1851: error: cannot find input file: $f" >&5
 echo "$as_me: error: cannot find input file: $f" >&2;}
    { (exit 1); exit 1; }; }
          echo $f;;
@@ -1849,7 +1861,7 @@ echo "$as_me: error: cannot find input file: $f" >&2;}
            echo $srcdir/$f
          else
            # /dev/null tree
-           { { echo "$as_me:1852: error: cannot find input file: $f" >&5
+           { { echo "$as_me:1864: error: cannot find input file: $f" >&5
 echo "$as_me: error: cannot find input file: $f" >&2;}
    { (exit 1); exit 1; }; }
          fi;;
index c8e43929a1bc5a7d9a1e7b254ec6f2c2bcc81c10..5366186490f69e8f0f4faada1a1c6e0967841ea1 100644 (file)
@@ -39,6 +39,12 @@ $PERL -e 'require 5.005;' || {
    AC_MSG_ERROR([perl 5.005 or better is required])
 }
 
+echo 'AC''_PREREQ(2.52)' > conftest.ac
+AM_RUN_LOG([eval $AUTOCONF -o /dev/null conftest.ac]) || {
+   AC_MSG_ERROR([Autoconf 2.52 or better is required])
+}
+rm conftest.ac
+
 AC_CONFIG_FILES([automake], [chmod +x automake])
 AC_CONFIG_FILES([aclocal], [chmod +x aclocal])
 
index 46e40d468ac1afeb116315ad871d4a9f8d4e73c0..cb0662046462a19e0b1e5e48b334cd55e9748505 100755 (executable)
@@ -28,9 +28,6 @@ main (int argc, char *argv[])
 }
 END
 
-# Fail gracefully if no autoconf.
-$needs_autoconf
-
 # Likewise for gcc.
 (gcc -v) > /dev/null 2>&1 || exit 77
 
index 1e0d0824d0892004cd20f854b10c32931e9ef703..f4c88e21abc90ac8697ebdf4ec2b84e4bb3a416e 100755 (executable)
@@ -48,8 +48,6 @@ main (int argc, char *argv[])
 }
 END
 
-$needs_autoconf
-
 (gcc -v) > /dev/null 2>&1 || exit 77
 
 set -e
index 08bdaea9356d354566479579f72a41b3bc02f399..ef0cfc633a0c30e6789a7065f7e5aebdae828040 100755 (executable)
@@ -39,7 +39,6 @@ int main ()
 }
 END
 
-$needs_autoconf
 gcc -v || exit 77
 
 cat > Mycomp << 'END'
index 20be630dc3c429b4345e02153c4d5ac1bc668a13..43e4a68dd6ef1d12266be46838ea1f23ec6c9523 100755 (executable)
@@ -32,7 +32,6 @@ echorule:
 
 END
 
-$needs_autoconf
 (gcc -v) > /dev/null 2>&1 || exit 77
 
 # Ignore user CFLAGS.
index 9d5496b3c23a0a69a761c95dede02ab9588ae683..fe1e9a74faf01e5ff297e257dcdb7032f0189af8 100755 (executable)
@@ -38,7 +38,6 @@ echorule:
 bin_PROGRAMS = helldl
 END
 
-$needs_autoconf
 (gcc -v) > /dev/null 2>&1 || exit 77
 
 # Ignore user CFLAGS.
index fb86c141cf96df16deadb3fc6a4d2524157f4370..95826fc72c4624a09797408739e091d1c3636c2a 100755 (executable)
@@ -40,7 +40,6 @@ echorule:
 bin_PROGRAMS = helldl
 END
 
-$needs_autoconf
 (gcc -v) > /dev/null 2>&1 || exit 77
 
 # Ignore user CFLAGS.
index 6c17c11577d4699013ac21da010bfed37c0e92b9..ed5b901f4c2415f1761ede1b8b20a74f8d6e0cf4 100755 (executable)
@@ -28,8 +28,6 @@ helldl_SOURCES = $(var2)
 bin_PROGRAMS = helldl
 END
 
-$needs_autoconf
-
 set -e
 
 $ACLOCAL
index c7cf043c568ed04eabf4ee9182db171c4f9c856d..7b99288afe6946bd9d6bae463ced5eb78e062a0d 100755 (executable)
@@ -30,8 +30,6 @@ echo-objects:
        @echo $(targ_OBJECTS)
 END
 
-$needs_autoconf
-
 $ACLOCAL || exit 1
 $AUTOMAKE || exit 1
 
index aeca07a9b447dcd99860ce9f61041eef10eaeec5..80636bca10184a7eca7ce63aa7600048eb8cffce 100755 (executable)
@@ -22,8 +22,6 @@ echo-something:
        echo '$(this)'
 END
 
-$needs_autoconf
-
 $ACLOCAL \
   && $AUTOCONF \
   && $AUTOMAKE -a \
index 28ec3e3fef5dd4f69cc669ba677014f2fa9b0637..4796965d840016736113638be99b7ca1c6bc683a 100755 (executable)
@@ -5,9 +5,6 @@
 
 . $srcdir/defs || exit 1
 
-# Fail gracefully if no autoconf.
-$needs_autoconf
-
 cat > configure.in << 'END'
 AC_INIT
 AM_INIT_AUTOMAKE(nonesuch, nonesuch)
index 4dc6e2f52886b0443768e0aae27b927373cfe1a8..3694490fb83fbb4614777be908559f9c78728d2f 100644 (file)
@@ -82,13 +82,6 @@ fi
 
 # User can set which tools from Autoconf to use.
 test -z "$AUTOCONF" && AUTOCONF=autoconf
-if ($AUTOCONF --version) >/dev/null 2>&1; then
-  has_autoconf=:
-  needs_autoconf=:
-else
-  has_autoconf=false
-  needs_autoconf='exit 77'
-fi
 
 
 echo "=== Running test $0"
index e9771b639515c4cb9d2d62b77a31cd56ef6d0ea3..04c53e79f4a885ff903e9a20c9ea92b17bf6fe94 100755 (executable)
@@ -26,9 +26,6 @@ END
 
 : > subdir/foo.c
 
-# Fail gracefully if no autoconf.
-$needs_autoconf
-
 # Likewise for gcc.
 (gcc -v) > /dev/null 2>&1 || exit 77
 
index 85f1b7b6d7cfc5493cc8ad025ae22940a252ff32..b658d8bf127d8c3937441eb741a73edfc7714ba0 100755 (executable)
@@ -5,9 +5,6 @@
 
 . $srcdir/defs || exit 1
 
-# Fail gracefully if no autoconf.
-$needs_autoconf
-
 rm -f configure.in
 
 mkdir config
index 1cae3eaa6161b04bc7ce837d390eb4da92637656..41d547d1ffd7a37f28e94952e1ff0b697bde495d 100755 (executable)
@@ -31,9 +31,6 @@ main (int argc, char *argv[])
 }
 END
 
-# Fail gracefully if no autoconf.
-$needs_autoconf
-
 # Likewise for gcc.
 (gcc -v) > /dev/null 2>&1 || exit 77
 
index 79712926357e39c51067cc112fce268e2d26a40f..3f21d4ec7c1cf203770e704c7f827320cc59143d 100755 (executable)
@@ -15,9 +15,6 @@ echo "6 /                      = _AM_DIRNAME([/])"
 echo "7 /file                  = _AM_DIRNAME([/file])"
 END
 
-# Fail gracefully if no autoconf.
-$needs_autoconf
-
 $ACLOCAL || exit 1
 # fail gracefully if autoconf didn't support support our regexps anyhow
 $AUTOCONF || exit 77
index 350d58ff86e8fe11f0b33258c6ff7955baa0f2b7..3b3b27fa09a6eca4a55b07997c0f3917277bbc86 100755 (executable)
@@ -22,8 +22,6 @@ END
 
 set -e
 
-$needs_autoconf
-
 $ACLOCAL
 $AUTOCONF
 $AUTOMAKE --include-deps --copy --add-missing
index aa8468108951c7e19b41fa5db752f71555c99fd1..58f7b99e3222353db48aba43a8cefda557f3117a 100755 (executable)
@@ -5,9 +5,6 @@
 
 . $srcdir/defs || exit 1
 
-# Fail gracefully if no autoconf.
-$needs_autoconf
-
 echo AC_OUTPUT >> configure.in
 
 cat > Makefile.am << 'END'
index 1d5d60824d31511178d5bf14c823d455182f6321..82ada88ac6e808f3934a6dbf7e5b8475d4ad5210 100755 (executable)
@@ -17,9 +17,6 @@ cat > Makefile.am << 'END'
 SUBDIRS = .
 END
 
-# Fail gracefully if no autoconf.
-$needs_autoconf
-
 # Likewise for gzip.
 (gzip --version) > /dev/null 2>&1 || exit 77
 
index f5af31629b8ad1c4399f29f0b4e74ad0ca15df9d..9133b4a923e39c910928d3cad871c7675fec646d 100755 (executable)
@@ -5,9 +5,6 @@
 
 . $srcdir/defs || exit 1
 
-# Fail gracefully if no autoconf.
-$needs_autoconf
-
 # Likewise for GNU Make (we need VPATH support for `make distcheck').
 $needs_gnu_make
 
index 23037f749b857a2c6f523ef88fa936b3eaa87143..6cd372d9727d08b20be2e213d1add528134ddeb6 100755 (executable)
@@ -14,7 +14,6 @@ END
 
 : > Makefile.am
 
-$needs_autoconf
 $needs_gnu_make
 
 set -e
index caf1a2c02e3e30feef426b4bc1ec160ddaf813b6..888f340d47a62f62e0bcce76127991a865396953 100755 (executable)
@@ -3,9 +3,6 @@
 
 . $srcdir/defs || exit 1
 
-# Fail gracefully if no autoconf.
-$needs_autoconf
-
 cat >> configure.in <<'EOF'
 AC_OUTPUT
 EOF
index accf5e13167d703d40d6729b895d4b9760b25d12..07a2c97fe494e4f1553373078d90062a7f8e2a6e 100755 (executable)
@@ -26,9 +26,6 @@ AC_PROG_CC
 AC_OUTPUT(Makefile `echo $subdirs | sed 's|\([a-z][a-z]*\)|\1/Makefile|g'`)
 EOF
 
-# Fail gracefully if no autoconf.
-$needs_autoconf
-
 # Likewise for gcc.
 (gcc -v) > /dev/null 2>&1 || exit 77
 
index d143fc37562c69b360bd0b8d4f44c9459d265f96..afc4551869bdfe3ca3e41f8de26eea5c70e66431 100755 (executable)
@@ -15,9 +15,6 @@ END
 
 mkdir support
 
-# Fail gracefully if no autoconf.
-$needs_autoconf
-
 # Likewise for gzip.
 (gzip --version) > /dev/null 2>&1 || exit 77
 
index f46b4ef8554ac2b0056c6ab9c64551564d11653e..f25e68314e3f515bed82355be17cb136e914bd3c 100755 (executable)
@@ -3,9 +3,6 @@
 # Make sure stamp-h* files are created where we expect
 . $srcdir/defs || exit 1
 
-# Fail gracefully if no autoconf.
-$needs_autoconf
-
 cat > configure.in << END
 AC_INIT(Makefile.am)
 AM_INIT_AUTOMAKE($me, 1.0)
index 9e7b571d21839774ec94ac87441bb9f7988588d6..df7d69f6f3d8a15a80880e159a6c6e3aaa387cc3 100755 (executable)
@@ -29,8 +29,6 @@ END
 
 set -e
 
-$needs_autoconf
-
 $ACLOCAL
 $AUTOCONF
 $AUTOMAKE --include-deps --copy --add-missing
index 742fd0fd22f9b7ccefa3d9628587ad78ffd53c9b..d86d5fc56a6feaf6443d59f87c3acc98856f243f 100755 (executable)
@@ -6,9 +6,6 @@
 
 . $srcdir/defs || exit 1
 
-# Fail gracefully if no autoconf.
-$needs_autoconf
-
 set -e
 
 mkdir lib
index 5113e8b371005399214fec8e67163661fa128120..97b7f6a25d0dfd88af2f5be5dad508cca58f2f8a 100755 (executable)
@@ -32,9 +32,6 @@ main (int argc, char *argv[])
 }
 END
 
-# Fail gracefully if no autoconf.
-$needs_autoconf
-
 # Likewise for gcc.
 (gcc -v) > /dev/null 2>&1 || exit 77
 
index e2303a381f082b3196f237b3d9200c4d583234ab..301c3033596b3ff441e41d02568af548550387fd 100755 (executable)
@@ -24,8 +24,6 @@ mkdir generic
 
 set -e
 
-$needs_autoconf
-
 $ACLOCAL
 $AUTOCONF
 $AUTOMAKE --include-deps --copy --add-missing
index 1044d80b94770ca612bc65c27cc855a580f81d29..f9423e22395c43411671c0775529c7818e285622 100755 (executable)
@@ -34,8 +34,6 @@ END
 
 set -e
 
-$needs_autoconf
-
 $ACLOCAL
 $AUTOCONF
 $AUTOMAKE --include-deps --copy --add-missing
index 1c022f9af1d7d3b309c4ac0f50f04f89948a1d90..8dc7bca7291f94fa997100ba73315821ff188155 100755 (executable)
@@ -30,7 +30,6 @@ echorule:
 bin_PROGRAMS = helldl
 END
 
-$needs_autoconf
 (gcc -v) > /dev/null 2>&1 || exit 77
 
 # Ignore user CFLAGS.
index 06643b8204fa624eecba7be2b5352dbcd44b55bc..f2e525663545293b31719ad943bc5e613bd8ed2c 100755 (executable)
@@ -37,9 +37,6 @@ int main(void)
 #endif
 END
 
-# Fail gracefully if no autoconf.
-$needs_autoconf
-
 # Likewise for gcc.
 (gcc -v) > /dev/null 2>&1 || exit 77
 
index 1c9345e0206230b7b1cb53d5f359476f9bc74fde..95daef1a769c5528fb0b6ff2c498b9d4963f596a 100755 (executable)
@@ -4,8 +4,6 @@
 
 . $srcdir/defs || exit 1
 
-# Fail gracefully if no autoconf.
-$needs_autoconf
 # Likewise for some other tools.
 (gcc -v) > /dev/null 2>&1 || exit 77
 (bison -V) > /dev/null 2>&1 || exit 77
index 3c9a6f386b7a1fcaa2d1c84062be539db0bf35e2..2989697a208740db70bb6e4fefe9500f73c08e2d 100755 (executable)
@@ -6,7 +6,6 @@
 . $srcdir/defs || exit 1
 
 $needs_gnu_make
-$needs_autoconf
 
 cat > configure.in << 'END'
 AC_INIT
index 04041fec155bf6712dee50262a24946746ff22c8..df3f6b2a2a1e42aba3efb70ac7e334e3dc10aadf 100755 (executable)
@@ -8,8 +8,6 @@
 
 . $srcdir/defs || exit 1
 
-# Fail gracefully if no autoconf.
-$needs_autoconf
 # Likewise for some other tools.
 (gcc -v) > /dev/null 2>&1 || exit 77
 (bison -V) > /dev/null 2>&1 || exit 77