Gary V. Vaughan wrote:
> Untested:
> 
> m4_define([gt__NEED_NGETTEXT_FU],
> [shell code to execute after expansion of AM_GNU_GETTEXT,
>   whenever AM_GETTEXT_NEED_NGETTEXT is present somewhere])
> 
> AC_DEFUN([AM_GNU_GETTEXT],
> [
> ...current contents of AM_GNU_GETTEXT definition...
> 
> dnl make sure gt__NEED_NGETTEXT_FU is always expanded in the
> dnl presence of AM_GETTEXT_NEED_NGETTEXT:
> AC_PROVIDE_IFELSE([AM_GETTEXT_NEED_NGETTEXT],
>          [gt__NEED_NGETTEXT_FU],
>    [m4_define([AM_GETTEXT_NEED_NGETTEXT],
>      [defn([AM_GETTEXT_NEED_NGETTEXT])
>      gt__NEED_NGETTEXT_FU
>    ])dnl
> ])# AM_GNU_GETTEXT

Thanks for the idea. With this one can have some shell code be executed
after the last invocation of any of the two given macros. But what I'm
looking for is even more: make it known at the beginning of the first
macro that an invocation of the second macro is coming later.

Bruno


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

Reply via email to