Eric Blake wrote:
> It is not possible to know what macros will be invoked later in the file.
>  But with diversions, it is possible for macros invoked later to emit
> shell code that will be invoked earlier, by making sure that
> gt__NEED_NGETTEXT_FU expands to shell code in a lower diversion number
> than AM_GNU_GETTEXT.  That way, AM_GNU_GETTEXT can emit shell code that
> depends on the value of a shell variable, where the shell variable is
> guaranteed to be set (either to a default if gt__NEED_NGETTEXT_FU is never
> called, or to a non-default by gt__NEED_NGETTEXT_FU) in an earlier diversion.

Thanks. Do you have an example of such use of diversions in autoconf
macros but outside autoconf itself? What is the range of allowed diversion
numbers?

Bruno


_______________________________________________
Bug-coreutils mailing list
Bug-coreutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to