gettext.m4: xgettest detection is bogus

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

gettext.m4: xgettest detection is bogus

Jan-Benedict Glaw
Hi!

In gettext.m4 there's a test for "xgettext". Once it is found, it's
also checked to be the GNU version. If it is not, the local xgettext
is not considered useful and -lintl is dropped from $(LIBS).

Building on a Solaris 8 system, this would result in link errors
(because of missing -lintl). Also, if ggettext is pkg-get'ted, the
gxgettext program isn't considered by gettext.m4. Of course you'd
supply it with something like

XGETTEXT=/opt/csw/bin/gxgettext ..././src/binutils/configure

and also call "make" with XGETTEXT set (maybe some components are
configured late...), but that's not really nice:-)


Since I'm not really a m4 expert, maybe somebody else could fix the
gettext.m4 macros to do one of these:

        - Also check for gxgettext
        - Don't drop -lintl from $(LIBS), even if internationalized
          program is not all _that_ international afterwards
        - Drop -lintl and disable NLS completely.

Thanks, JBG

--
Jan-Benedict Glaw       [hidden email]    . +49-172-7608481             _ O _
"Eine Freie Meinung in  einem Freien Kopf    | Gegen Zensur | Gegen Krieg  _ _ O
 für einen Freien Staat voll Freier Bürger"  | im Internet! |   im Irak!   O O O
ret = do_actions((curr | FREE_SPEECH) & ~(NEW_COPYRIGHT_LAW | DRM | TCPA));

signature.asc (196 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: gettext.m4: xgettest detection is bogus

Daniel Jacobowitz-2
On Fri, Dec 30, 2005 at 03:14:32PM +0100, Jan-Benedict Glaw wrote:

> Hi!
>
> In gettext.m4 there's a test for "xgettext". Once it is found, it's
> also checked to be the GNU version. If it is not, the local xgettext
> is not considered useful and -lintl is dropped from $(LIBS).
>
> Building on a Solaris 8 system, this would result in link errors
> (because of missing -lintl). Also, if ggettext is pkg-get'ted, the
> gxgettext program isn't considered by gettext.m4. Of course you'd
> supply it with something like

If you have a chance, could you check if the new intl gets this right?
(HEAD, not 2.17 branch).

--
Daniel Jacobowitz
CodeSourcery
Reply | Threaded
Open this post in threaded view
|

Re: gettext.m4: xgettest detection is bogus

Jan-Benedict Glaw
On Fri, 2006-06-09 17:08:48 -0400, Daniel Jacobowitz <[hidden email]> wrote:

> On Fri, Dec 30, 2005 at 03:14:32PM +0100, Jan-Benedict Glaw wrote:
> > In gettext.m4 there's a test for "xgettext". Once it is found, it's
> > also checked to be the GNU version. If it is not, the local xgettext
> > is not considered useful and -lintl is dropped from $(LIBS).
> >
> > Building on a Solaris 8 system, this would result in link errors
> > (because of missing -lintl). Also, if ggettext is pkg-get'ted, the
> > gxgettext program isn't considered by gettext.m4. Of course you'd
> > supply it with something like
>
> If you have a chance, could you check if the new intl gets this right?
> (HEAD, not 2.17 branch).
Sure; I'm just at updating the sources and will compile the stuff once
the update has finished. Though it'll take some time on this box.

MfG, JBG

--
Jan-Benedict Glaw       [hidden email]    . +49-172-7608481             _ O _
"Eine Freie Meinung in  einem Freien Kopf    | Gegen Zensur | Gegen Krieg  _ _ O
 für einen Freien Staat voll Freier Bürger"  | im Internet! |   im Irak!   O O O
ret = do_actions((curr | FREE_SPEECH) & ~(NEW_COPYRIGHT_LAW | DRM | TCPA));

signature.asc (196 bytes) Download Attachment