2009-04-13 Eric Blake <ebb9@byu.net>
+ Add cross-reference to new macros.
+ * doc/autoconf.texi (Text processing Macros) <m4_normalize>
+ <m4_strip>: Reference the new m4_ifblank.
+ Suggested by Mike Frysinger.
+
Make AS_IF, AS_CASE, and AS_FOR more robust to blank arguments.
* lib/m4sugar/m4sh.m4 (_AS_CASE, _AS_CASE_DEFAULT, AS_FOR, _AS_IF)
(_AS_IF_ELSE, AS_IF): Avoid syntax error on blank argument,
Remove leading and trailing spaces and tabs, sequences of
backslash-then-newline, and replace multiple spaces, tabs, and newlines
with a single space. This is a combination of @code{m4_flatten} and
-@code{m4_strip}.
+@code{m4_strip}. To determine if @var{string} consists only of bytes
+that would be removed by @code{m4_normalize}, you can use
+@code{m4_ifblank}.
@end defmac
@defmac m4_re_escape (@var{string})
reduced to a single space, then leading and trailing spaces are removed.
The result is still a quoted string. Note that this does not interfere
with newlines; if you want newlines stripped as well, consider
-@code{m4_flatten}, or do it all at once with @code{m4_normalize}.
+@code{m4_flatten}, or do it all at once with @code{m4_normalize}. To
+quickly test if @var{string} has only whitespace, use @code{m4_ifblank}.
@end defmac
@defmac m4_text_box (@var{message}, @dvar{frame, -})