This is the mail archive of the
mailing list for the GCC project.
Re: Why is ENABLE_NLS always defined?
On Tue, Oct 16, 2001 at 05:51:21PM -0700, Ziemowit Laski wrote:
> On Tuesday, October 16, 2001, at 05:49 , H . J . Lu wrote:
> >The current gcc will enable NLS by default. It does check if
> ><libintl.h> exists. However, it still defines ENABLE_NLS even
> >though it knows <libintl.h> doesn't exist. That is on IRIX 6.5.
> >I had to add --disable-nls. It doesn't happen with gcc on Oct. 5.
> Ah! Darwin has the same problem (I also have to --disable-nls now).
--enable-nls is supposed to substitute our own gettext library if
there isn't one in libc. However, our own gettext library uses a
different header name from <libintl.h> to avoid clashes, and the glue
header (intl.h) doesn't know that.
This should be fixed in the patch I sent last week: