Provide better short-circuiting operation.
commit4e9078ba0b9a919ee35a1ff8b6bd8c764362f33e
authorEric Blake <ebb9@byu.net>
Thu, 4 Oct 2007 18:29:45 +0000 (4 12:29 -0600)
committerEric Blake <ebb9@byu.net>
Fri, 5 Oct 2007 17:25:20 +0000 (5 11:25 -0600)
tree5fd1024c185c63881c166d0f039a6301d938fca3
parent2152c1e75fa9e3022faa01f7b550dba84c4b7ebe
Provide better short-circuiting operation.

* lib/m4sugar/m4sugar.m4 (m4_cond, m4_newline): New macros.
(m4_text_wrap): Use it.  Also avoid useless m4_for.
* lib/m4sugar/m4sh.m4 (_AS_QUOTE_IFELSE, AS_LITERAL_IF): Use
new macro.
(_AS_IDENTIFIER_IF): Likewise, and fix bug when $1 is [,].
* lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): Use new macros
to avoid regexps.
* doc/autoconf.texi (Redefined M4 Macros): Expand m4_if
documentation.  Sort m4_mkstemp, m4_undefine.  Move m4_ifndef...
(Conditional constructs): ...here, to new section.  Also document
m4_cond, m4_ifval, m4_n, m4_ifvaln, m4_ifset, m4_case, m4_bmatch,
m4_bpatsubsts, and m4_default.
(Looping constructs): Document m4_shiftn, m4_shift2, m4_shift3,
m4_do.

Signed-off-by: Eric Blake <ebb9@byu.net>
ChangeLog
doc/autoconf.texi
lib/autotest/general.m4
lib/m4sugar/m4sh.m4
lib/m4sugar/m4sugar.m4