]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
Use complete configure.ac’s in testsuite.
authorZack Weinberg <zackw@panix.com>
Wed, 7 Oct 2020 13:19:06 +0000 (09:19 -0400)
committerZack Weinberg <zackw@panix.com>
Wed, 7 Oct 2020 13:19:06 +0000 (09:19 -0400)
Autoconf 2.70 will issue warnings if it encounters a configure.ac that doesn’t
call both AC_INIT and AC_OUTPUT.

Automake already issues warnings if it encounters a configure.ac that uses an
AM_ macro but doesn’t call AM_INIT_AUTOMAKE or AC_CONFIG_FILES([Makefile]).

In two places, the testsuite was tripping these warnings, leading to spurious
failures with Autoconf 2.70 betas.

* t/aminit-moreargs-deprecation.sh: Add AC_OUTPUT to test configure.ac.
* t/mkdirp-deprecation.sh: Use a complete test configure.ac, not a stub
  containing only a use of AM_PROG_MKDIR_P.

t/aminit-moreargs-deprecation.sh
t/mkdirp-deprecation.sh

index c3d49d502490ded025d793c2ca3a4b5091f9458f..ec9efe098ea65c63305ffdb545400a5e8e9b0583 100644 (file)
@@ -25,6 +25,7 @@ cat > configure.ac <<'END'
 AC_INIT([Makefile.am])
 AM_INIT_AUTOMAKE([twoargs], [1.0])
 AC_CONFIG_FILES([Makefile])
+AC_OUTPUT
 END
 
 $ACLOCAL
index 337ae301f6f29c718a5c64fd2d3cb55381ef2c6f..a356bf1f1939767178aafb1acc1b17046294b48b 100644 (file)
 
 . test-init.sh
 
-echo AM_PROG_MKDIR_P >> configure.ac
+cat > configure.ac <<'END'
+AC_INIT([test], [1.0])
+AM_INIT_AUTOMAKE
+AM_PROG_MKDIR_P
+AC_CONFIG_FILES([Makefile])
+AC_OUTPUT
+END
+
 : > Makefile.am
 
 grep_err ()
 {
-  loc='^configure.ac:4:'
+  loc='^configure.ac:3:'
   grep "$loc.*AM_PROG_MKDIR_P.*deprecated" stderr
   grep "$loc.* use .*AC_PROG_MKDIR_P" stderr
   grep "$loc.* use '\$(MKDIR_P)' instead of '\$(mkdir_p)'.*Makefile" stderr