bug-gnu-utils
[Top][All Lists]
Advanced

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

Re: GNU gettext 0.10.40 does not repect AM_CONFIG_HEADER


From: Roger Leigh
Subject: Re: GNU gettext 0.10.40 does not repect AM_CONFIG_HEADER
Date: 01 May 2002 13:46:47 +0100
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

Bruno Haible <address@hidden> writes:

> Roger Leigh writes:
> > If I put
> > 
> > AM_CONFIG_HEADER(include/config.h)
> > 
> > in configure.ac, gettext will not honour this in intl/Makefile.am.  It
> > assumes that config.h will be in the root of the source tree.
> > 
> > I'm not sure how best to fix this.
> 
> You can either create a subdirectory containing nothing but a
> config.h.in, Makefile.am, intl/ and po/, and a trivial configure.in.
> 
> Or use AM_GNU_GETTEXT with the 'external' option (requires
> gettext-0.11.2 instead of 0.10.40).

I think I'll try this option first.

> > I AC_SUBST(INCLUDES) in my
> > configure.ac and this is automatically used by automake in my
> > Makefiles.  gettext won't use that though.  Possibly gettextize could
> > check this and modify intl/Makefile.am accordingly?
> 
> That's too hairy. It would be best if the intl/ subdirectory would use
> its own separate config.h.in, but unfortunately this doesn't work with
> autoconf older than 2.50.

Sorry, that wasn't very well written.  I meant, would it be possible
to check for AM_CONFIG_HEADER or AC_CONFIG_HEADER?

Another possibility is if AM_INIT_AUTOMAKE is present in configure.ac,
you could install a Makefile.am instead of Makefile.in.  This would
integrate in a nicer way with the build, and allow this sort of
customisation without any effort on your behalf.

If you think this would be worthwhile, I am willing to implement it.

Regards,
Roger

-- 
Roger Leigh
                ** Registration Number: 151826, http://counter.li.org **
                Need Epson Stylus Utilities? http://gimp-print.sourceforge.net/
                GPG Public Key: 0x25BFB848 available on public keyservers



reply via email to

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