From: Stepan Kasal Date: Mon, 3 Jan 2005 23:32:35 +0000 (+0000) Subject: * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Add a comment about nesting. X-Git-Tag: AUTOCONF-2.59c~505 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=dcc0cb5d67b39808db95fc1890c018f425d8f4ee;p=thirdparty%2Fautoconf.git * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Add a comment about nesting. --- diff --git a/ChangeLog b/ChangeLog index 14f232366..4fa08b45c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2005-01-03 Stepan Kasal + + * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Add a comment about nesting. + 2005-01-03 Stepan Kasal A cleanup of the diversion support in m4sugar. diff --git a/lib/m4sugar/m4sh.m4 b/lib/m4sugar/m4sh.m4 index 05532560a..bc63d8262 100644 --- a/lib/m4sugar/m4sh.m4 +++ b/lib/m4sugar/m4sh.m4 @@ -131,6 +131,11 @@ m4_copy([_m4_divert(M4SH-INIT)], [_m4_divert(NOTICE)]) # bar1=`echo $bar` # bar2=`echo $bar` # +# Due to the simple implementation, all the AS_REQUIRE calls have to be at +# the very beginning of the macro body, or the AS_REQUIREs may not be nested. +# More exactly, if a macro doesn't have all AS_REQUIREs at its beginning, +# it may not be AS_REQUIREd. +# m4_define([AS_REQUIRE], [m4_provide_if([$1], [], [m4_divert_text([M4SH-INIT], [m4_default([$2], [$1])])])])