[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gnulib and gettextize

From: Ralf Wildenhues
Subject: Re: gnulib and gettextize
Date: Tue, 29 Aug 2006 17:22:24 +0200
User-agent: Mutt/1.5.12 (2006-08-10)

* Paul Eggert wrote on Tue, Aug 29, 2006 at 04:34:01PM CEST:
> Bruno Haible <address@hidden> writes:
> >
> > Question to the autoconf experts: Is it possible to write a macro
> > AM_GETTEXT_NEED_NGETTEXT such that whenever a user writes
> > or
> > the AM_GNU_GETTEXT macro "knows" that a AM_GETTEXT_NEED_NGETTEXT invocation
> > exists elsewhere? So, a kind of "backward propagation"?
> Nothing comes to me off the top of my head.  I suppose the actual work
> could be "deferred to the end" but I'm sort of waving my hands here.

CVS Libtool has an example usage of the documented Autoconf macro
AC_CONFIG_COMMANDS_PRE in libltdl/m4/ltdl.m4:LTDL_INIT.  The part in
there will be expanded shortly before the config.status generation code.

Be warned to not delay more than necessary to this late: in general,
users' files assume that after your macro invocation, its
results are available for further processing, say, in order to fix an
intermediate bug of your package in some situation, or to facilitate
improvement.  (And you would need to adjust your documentation, of

If at all possible, it's better to stick to AC_BEFORE or AC_REQUIRE
and not use anything else.

Another possible, but undocumented way is to divert text to early in the
configure script in the manner that (the Autoconf implementation of)
AC_CHECK_FUNCS_ONCE does.  Don't do this if you expect your macro to
work with more than one fixed Autoconf version, and if you do, don't
put anything other than simple variable initializations there.

Ralf, putting up warning signs against future indemnification ;-)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]