automake-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[FYI] {master} tests: avoid a failure due to m4 builtin 'sinclude' in pa


From: Stefano Lattarini
Subject: [FYI] {master} tests: avoid a failure due to m4 builtin 'sinclude' in package name
Date: Fri, 23 Nov 2012 11:23:28 +0100

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:
<http://lists.gnu.org/archive/html/bug-autoconf/2012-11/msg00005.html>

* 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 <address@hidden>
---
 t/aclocal-m4-sinclude.sh | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/t/aclocal-m4-sinclude.sh b/t/aclocal-m4-sinclude.sh
index cb4c8f6..e7e7e96 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
 
-- 
1.8.0.209.gf3828dc




reply via email to

[Prev in Thread] Current Thread [Next in Thread]