From: Paul Eggert Date: Tue, 3 Dec 2002 08:30:12 +0000 (+0000) Subject: (at_flatten): rewritten to avoid M4 problem when X-Git-Tag: AUTOCONF-2.57~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=689196647bc8477279de73b7c3952805fceed71d;p=thirdparty%2Fautoconf.git (at_flatten): rewritten to avoid M4 problem when \(.*\) match is too long and there is something more to be checked. This also undoes the previous patch. --- diff --git a/bin/autom4te.in b/bin/autom4te.in index 4de290778..fbec2e41e 100644 --- a/bin/autom4te.in +++ b/bin/autom4te.in @@ -941,9 +941,10 @@ sub handle_traces ($$%) # Note that the second pattern is `newline, tab or space'. Don't lose # the tab! define([at_flatten], - [at_patsubst(at_patsubst(at_patsubst([[[$1]]], [\\\n]), - [[\n\t ]+], [ ]), - [^ *\(.*[^ ]\)? *], [[\1]])]) + [at_patsubst(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($@))])