This is the mail archive of the automake@gnu.org mailing list for the automake project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


[M-F-T: autoconf-patches@gnu.org]

>>> "Martin" == Martin Frydl <martin@systinet.com> writes:

[...]

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

[...]

 Martin> +  [at_patsubst(at_patsubst(at_patsubst(at_patsubst([[[[$1]]]], [\\\n]),
 Martin> +                                       [[\n\t ]+], [ ]),
 Martin> +                           [ *\(.\)$],[\1]),
 Martin> +               [^ *\(.*\)], [[\1]])])

This doesn't seem to do what you want.  `[ *\(.\)$],[\1]' will leave the
last trailing space, or strip non trailing whitespaces.

How about something like

[at_patsubst(at_patsubst(at_patsubst(at_patsubst([[[[$1]]]], [\\\n]),
                                     [[\n\t ]+], [ ]),
                         [ *$]),
             [^ *\(.*\)], [[\1]])])

-- 
Alexandre Duret-Lutz




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]