From: Stefano Lattarini Date: Sat, 21 Jul 2012 15:31:11 +0000 (+0200) Subject: tests: use configure.ac, not configure.in, with aclocal/automake involved X-Git-Tag: v2.69b~219 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e56b990931eebf49c7b67d38259f2c4d0fbacc6f;p=thirdparty%2Fautoconf.git tests: use configure.ac, not configure.in, with aclocal/automake involved Do so because future automake and aclocal versions (starting from 1.13) drop support for 'configure.in' as the name of the Autoconf input file. Without this patch, the Autoconf testsuite experiences some spurious failures when run with the development version of aclocal and automake installed early enough in $PATH. * tests/torture.at: Rename 'configure.in' to 'configure.ac' throughout. Remove an obsolete comment about backward-compatibility. Helped-by: Jim Meyering Signed-off-by: Stefano Lattarini --- diff --git a/tests/torture.at b/tests/torture.at index 9923305c..771c1f19 100644 --- a/tests/torture.at +++ b/tests/torture.at @@ -1444,10 +1444,7 @@ export CONFIG_SITE # The contents of `inner/', and `inner/innermost/'. AS_MKDIR_P([inner/innermost]) -# We have to use configure.in, not configure.ac, if we still want to -# be compatible with Automake 1.4: aclocal (run by autoreconf) would -# die because it can't find configure.in. -AT_DATA([inner/configure.in], +AT_DATA([inner/configure.ac], [[AC_INIT(GNU Inner, 1.0) AC_CONFIG_SRCDIR([innermost/config.in]) AC_ARG_VAR([INNER], [an inner variable]) @@ -1470,7 +1467,7 @@ prefix=@prefix@ AT_DATA([install-sh], []) # nonexistent is allowed not to exist. -AT_DATA([configure.in], +AT_DATA([configure.ac], [[AC_INIT(GNU Outer, 1.0) AC_ARG_VAR([OUTER], [an outer variable]) if false; then @@ -1544,12 +1541,12 @@ AT_CHECK([cd builddir && ../configure $configure_options --config-cache], AT_CHECK([grep 'loading .*\.\./config.cache' stdout], [], [ignore]) # Make sure we can run autoreconf on a subdirectory -rm -f configure configure.in +rm -f configure configure.ac AT_CHECK([autoreconf inner], [], [], [ignore]) # Make sure we can pass a configure.ac name -AT_CHECK([cd inner && autoreconf configure.in], [], [], [ignore]) -AT_CHECK([autoreconf inner/configure.in], [], [], [ignore]) +AT_CHECK([cd inner && autoreconf configure.ac], [], [], [ignore]) +AT_CHECK([autoreconf inner/configure.ac], [], [], [ignore]) AT_CLEANUP @@ -1567,7 +1564,7 @@ AT_CHECK([aclocal --version || exit 77], [], [ignore], [ignore]) # The contents of `.' AT_DATA([install-sh], []) -AT_DATA([configure.in], +AT_DATA([configure.ac], [[AC_INIT(GNU Outer, 1.0) AC_ARG_VAR([OUTER], [an outer variable]) AC_CONFIG_SUBDIRS([ @@ -1581,14 +1578,14 @@ AC_OUTPUT AS_MKDIR_P([inner/innermost]) AS_MKDIR_P([inner2]) -AT_DATA([inner/configure.in], +AT_DATA([inner/configure.ac], [[AC_INIT(GNU Inner, 1.0) AC_ARG_VAR([INNER], [an inner variable]) AC_CONFIG_SUBDIRS(innermost) AC_OUTPUT ]]) -AT_DATA([inner/innermost/configure.in], +AT_DATA([inner/innermost/configure.ac], [[AC_INIT(GNU Innermost, 1.0) AC_ARG_VAR([INNERMOST], [an innermost variable]) AC_CONFIG_HEADERS(config.h:config.hin) @@ -1599,7 +1596,7 @@ fi AC_OUTPUT ]]) -AT_DATA([inner2/configure.in], +AT_DATA([inner2/configure.ac], [[AC_INIT(GNU Inner 2, 1.0) AC_ARG_VAR([INNER2], [an inner2 variable]) AC_OUTPUT @@ -1702,7 +1699,7 @@ AT_KEYWORDS([autoreconf]) AT_CHECK([aclocal --version || exit 77], [], [ignore], [ignore]) AT_DATA([install-sh], []) -AT_DATA([configure.in], +AT_DATA([configure.ac], [[AC_INIT(GNU Outer, 1.0) AC_CONFIG_SUBDIRS([inner]) AC_OUTPUT @@ -1741,7 +1738,7 @@ AT_SETUP([Non-literal AC_CONFIG_SUBDIRS]) AT_KEYWORDS([autoreconf]) AT_DATA([install-sh], []) -AT_DATA([configure.in], +AT_DATA([configure.ac], [[AC_INIT(GNU Outer, 1.0) my_subdirs= @@ -1816,7 +1813,7 @@ AT_KEYWORDS([autoreconf]) AT_CHECK([automake --version || exit 77], [], [stdout], [ignore]) AT_CHECK([[grep '[1-9]\.[0-9]' stdout || exit 77]], [], [ignore]) -AT_DATA([configure.in], +AT_DATA([configure.ac], [[AC_INIT(GNU foo, 1.0) AM_INIT_AUTOMAKE AC_CONFIG_FILES([HeeHee])