From: Stefano Lattarini Date: Fri, 23 Nov 2012 09:37:19 +0000 (+0100) Subject: tests: avoid a failure due to m4 builtin 'sinclude' in package name X-Git-Tag: v1.12b~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6d1fe29e2c844fe3d50267af02ae69e687fd5e37;p=thirdparty%2Fautomake.git tests: avoid a failure due to m4 builtin 'sinclude' in package name Even with Autoconf 2.69, AC_INIT is not very robust when to package names that contain some selected m4 builtins; for example: $ echo 'AC_INIT([sinclude], [1.0])' | autoconf -o/dev/null - stdin:1: warning: file `' included several times $ echo 'AC_INIT([dnl], [1.0])' | autoconf -o/dev/null - /usr/bin/m4:stdin:1: excess arguments to builtin `m4_define' ignored autom4te: /usr/bin/m4 failed with exit status: 1 Reference: * t/aclocal-m4-sinclude.sh (configure.ac): Use 'm4sinclude' as package name in the AC_INIT invocation, to avoid tickling the just-described bug. Signed-off-by: Stefano Lattarini --- diff --git a/t/aclocal-m4-sinclude.sh b/t/aclocal-m4-sinclude.sh index cb4c8f695..e7e7e962f 100755 --- a/t/aclocal-m4-sinclude.sh +++ b/t/aclocal-m4-sinclude.sh @@ -18,8 +18,11 @@ . test-init.sh -cat >> configure.ac << 'END' +cat > configure.ac << 'END' +AC_INIT([m4sinclude], [1.0]) +AM_INIT_AUTOMAKE m4_include([somefile.m4]) +AC_CONFIG_FILES([Makefile]) AC_OUTPUT END