libtool/libltdl/m4
Gary V. Vaughan 0da7d80909 Add func_append_quoted and do inline func_append substitutions.
* libtool/config/ltmain.m4sh: Replace all occurrences of
`foo="$foo bar"' with func_append. No decorator comment was
added since /func_append [a-zA-Z0-9_]* "/ is already an
excellent match regexp, and additional comments would only
complicate things.
(func_append_quoted): New function that quotes a value with
func_quote_for_eval before appending it.  To avoid quoting the
whitespace in the passed value, a single whitespace is added
automatically.  Changed callers where possible.
* libtool/m4/libtool.m4 (_LT_PROG_XSI_SHELLFNS): Perform a
`+=' implementation substitution for func_append_quoted.  More
importantly, systematically replace matching func_append calls
with inline `+=' when supported (for maximum speed), and
longhand `foo="$foo bar"' otherwise to avoid the function
overhead.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
2010-06-28 13:48:51 +07:00
..
.cvsignore * config/.cvsignore, m4/.cvsignore: Moved from here... 2005-08-22 22:36:13 +00:00
.gitignore Add .gitignore files. 2008-04-16 21:31:03 +02:00
argz.m4 Resynchronize argz whitespace changes from gnulib. 2008-05-20 06:27:28 -06:00
libtool.m4 Add func_append_quoted and do inline func_append substitutions. 2010-06-28 13:48:51 +07:00
lt~obsolete.m4 Prepare for next release candidate. 2010-05-21 04:24:18 +07:00
ltdl.m4 Prepare for next release candidate. 2010-05-21 04:24:18 +07:00
ltoptions.m4 Prepare for next release candidate. 2010-05-21 04:24:18 +07:00
ltsugar.m4 Speed up bootstrap by improving lt_combine. 2008-05-17 09:44:52 -06:00
ltversion.in * HACKING (Licensing Rules): Explain the various license texts 2007-03-25 12:12:44 +00:00