[patch] HAVE_LC_MESSAGES for natSystem.cc

Andreas Tobler toa@pop.agri.ch
Thu Jan 10 13:33:00 GMT 2002



Tom Tromey wrote:
> 
> >>>>> "Andreas" == Andreas Tobler <toa@pop.agri.ch> writes:
> 
> Andreas> this patch makes it possible to check whether a system has
> Andreas> LC_MESSAGES defined or not.  On darwin this isn't the case,
> Andreas> so I check in natSystem.cc if not HAVE_LC_MESSAGES and then
> Andreas> define LC_MESSAGES with a ?number?.
> 
> We can't arbitrarily define LC_MESSAGES like that.

Well, I know, here I'm not sure, it was mainly a satisfaction for compiling.
> 
> Here's the patch I came up with.
> Unfortunately this will have the effect of assuming the en_US locale
> on Darwin.  Any better suggestions?

In the mean time I tried your suggestion with acinclude.m4, it succeeds
as well.
We must have crossed our postings, although yours is dated by 5:18AM
(the previous one)

Will check asap!

Andreas


> ===================================================================
> RCS file: /cvs/gcc/gcc/libjava/configure.in,v
> retrieving revision 1.104
> diff -u -r1.104 configure.in
> --- configure.in 2002/01/06 21:38:14 1.104
> +++ configure.in 2002/01/10 19:12:58
> @@ -450,6 +450,7 @@
>       AC_DEFINE(HAVE_PROC_SELF_EXE)])
> 
>     AM_ICONV
> +   AM_LC_MESSAGES
>     AC_STRUCT_TIMEZONE

By luck I set mine at the same position, I got thinking when you told me
to place it in the right section.....



More information about the Java-patches mailing list