Re: Duplicate definition of LOCALEDIR - Mailing list pgsql-hackers

From Martijn van Oosterhout
Subject Re: Duplicate definition of LOCALEDIR
Date
Msg-id 20060522123904.GD24404@svana.org
Whole thread Raw
In response to Duplicate definition of LOCALEDIR  (Peter Eisentraut <peter_e@gmx.net>)
Responses Re: Duplicate definition of LOCALEDIR  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Mon, May 22, 2006 at 12:17:33PM +0200, Peter Eisentraut wrote:
> LOCALEDIR is defined in
>
> src/port/pg_config_paths.h
> src/include/pg_config.h
>
> but one of them should be enough.  (May be dependent on --enable-nls.)  Which
> one should be removed?

I'd suggest the version in pg_config. Both are ultimatly generated by
configure, but LOCALEDIR is the only directory definition that appears
in pg_config.h.

The fix is simple: remove the AC_DEFINE_UNQUOTED(LOCALEDIR, ...) from
programs/config.h. localedir is still defined.

The odd thing is that there are two paths defined, $localedir and
$exp_localedir, which are not the same and pg_config.h gets one and
pg_config_paths.h gets the other.

Have a nice day,
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.

pgsql-hackers by date:

Previous
From: Hannu Krosing
Date:
Subject: Re: [OT] MySQL is bad, but THIS bad?
Next
From: Tom Lane
Date:
Subject: Re: SSL certificate info on SQL level and HSM support for libpq