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

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

Problem with gettext on Solaris


From: Brian Cameron
Subject: Problem with gettext on Solaris
Date: Fri, 26 Aug 2005 00:20:19 -0500
User-agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:1.7) Gecko/20041221


The AM_GNU_GETTEXT macro fails on Solaris even though Solaris has been made
compatible with GNU gettext.  AM_GNU_GETTEXT always wants to build the
gettext sources included with various modules.  So at Sun, we have been
working around this by using AM_GLIB_GNU_GETTEXT which has a special test
for Solaris making things work.  It would probably be better if this could
also be fixed in AM_GNU_GETTEXT.

AM_GLIB_GNU_GETTEXT has the following special test-case to recognize
that allows it to work:

          AC_TRY_LINK(, [extern int _nl_msg_cat_cntr;
                         return _nl_msg_cat_cntr],
            [CATOBJEXT=.gmo
             DATADIRNAME=share],
            [case $host in
            *-*-solaris*)
            dnl On Solaris, if bind_textdomain_codeset is in libc,
            dnl GNU format message catalog is always supported,
            dnl since both are added to the libc all together.
            dnl Hence, we'd like to go with DATADIRNAME=share and
            dnl and CATOBJEXT=.gmo in this case.
            AC_CHECK_FUNC(bind_textdomain_codeset,
              [CATOBJEXT=.gmo
               DATADIRNAME=share],
              [CATOBJEXT=.mo
               DATADIRNAME=lib])
            ;;
            *)
            CATOBJEXT=.mo
            DATADIRNAME=lib
            ;;
            esac])

Would it be possible to get similar logic included in the AM_GNU_GETTEXT
macro?  I'm hoping it will be obvious to those working on gettext how
to integrate this into the AM_GNU_GETTEXT macro, but I would be able to
dig into this further if that would help.  I'd also be happy to test any
changes to make sure they work.

Thanks.

Brian




reply via email to

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