autoconf-patches
[Top][All Lists]
Advanced

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

Re: Patch: Too many files in AC_OUTPUT cause M4 error


From: Paul Eggert
Subject: Re: Patch: Too many files in AC_OUTPUT cause M4 error
Date: Mon, 2 Dec 2002 22:54:48 -0800 (PST)

> From: Martin Frydl <address@hidden>
> Date: Fri, 22 Nov 2002 19:03:52 +0100

> I've created a patch which is aware of M4 problem and separates the
> task into two expressions - first removes the terminating space,
> then strips the leading one and puts brackets around.

Thanks for the detailed bug report, and for the patch.
I installed the following patch instead; it's a bit more conservative.

2002-12-02  Paul Eggert  <address@hidden>

        * bin/autom4te.in (handle_traces): [^ *\(.*\) *$] ->
        [^ *\(.*[^ ]\)? *].  The old regular expression was obviously wrong,
        and it blunders into a GNU m4 bug as noted by Martin Frydl in
        <http://mail.gnu.org/pipermail/autoconf/2002-November/014524.html>.

Index: autom4te.in
===================================================================
RCS file: /cvsroot/autoconf/autoconf/bin/autom4te.in,v
retrieving revision 1.77
retrieving revision 1.78
diff -p -u -r1.77 -r1.78
--- autom4te.in 31 Oct 2002 08:37:20 -0000      1.77
+++ autom4te.in 3 Dec 2002 06:51:15 -0000       1.78
@@ -943,7 +943,7 @@ sub handle_traces ($$%)
   define([at_flatten],
   [at_patsubst(at_patsubst(at_patsubst([[[$1]]], [\\\n]),
                            [[\n\t ]+], [ ]),
-               [^ *\(.*\) *$], [[\1]])])
+               [^ *\(.*[^ ]\)? *], [[\1]])])
 
   define([at_args],    [at_shift(at_shift(at_shift(at_shift(at_shift($@)))))])
   define([at_at],      [_$0([$1], at_args($@))])




reply via email to

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