Complete.Org: Mailing Lists: Archives: freeciv-dev: March 2000:
[Freeciv-Dev] Re: -lintl missing on civserver link (PR#268)
Home

[Freeciv-Dev] Re: -lintl missing on civserver link (PR#268)

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Piotr.Sulecki@xxxxxxxxxxxxx
Cc: freeciv-dev@xxxxxxxxxxx, bugs@xxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] Re: -lintl missing on civserver link (PR#268)
From: David Pfitzner <dwp@xxxxxxxxxxxxxx>
Date: Sun, 12 Mar 2000 18:33:35 +1100 (EST)

On Tue, 07 Mar 2000, Piotr Sulecki <Piotr.Sulecki@xxxxxxxxxxxxx> wrote:

> David Pfitzner wrote:
> > 
> > [...] We really need someone who has a system
> > where this happens who also knows enough about autoconf etc
> > to work out a solution...  :-/   (Or a close collaboration
> > between someone with such a system and someone who knows
> > autoconf...)
> 
> Well, I have an easy access to such a system at work (in fact,
> I'm the root here), but I know more or less nothing about
> autoconf. I'm open for close collaboration, however. Anybody
> up to the challenge?
> 
> My system is an HP/UX 10.20 with GNU development environment.

Ok, attached is a patch you could try.  Apply this, then
re-run configure.  Though I'm rather unsure if this is a
correct or appropriate way to fix this problem.

> > Its curious that the client works, since the configuration
> > stuff (at least for gettext) is basically the same for both
> > the server and client.  Could you perhaps send copies of
> > server/Makefile and client/Makefile produced by configure?
> 
> As soon as I recreate them. I had to remove the source because
> of disk space needs ;-) and because --with-included-gettext
> works for me.

Ok, I'd still be interested in this (without attached patch,
maybe with too, depending how it goes).

> (Except that both clients dump core: the GTK one
> if the game is not yet started, and the xaw one when I enter
> the city display. I'll look into this a bit deeper and report.)

Hmm, strange.

Regards,
-- David
diff -u -r --exclude-from exclude freeciv-cvs/configure fc-adv/configure
--- freeciv-cvs/configure       Wed Feb 23 22:09:06 2000
+++ fc-adv/configure    Fri Feb 25 22:57:33 2000
@@ -3399,6 +3399,10 @@
        < $srcdir/po/POTFILES.in > po/POTFILES
   
 
+if test "$gt_cv_func_gettext_libintl" = "yes"; then
+    LIBS="-lintl  $LIBS"
+fi
+
 
         LOCALEDIR='${prefix}/${DATADIRNAME}/locale'
         LOCALEDIR=`(
diff -u -r --exclude-from exclude freeciv-cvs/configure.in fc-adv/configure.in
--- freeciv-cvs/configure.in    Wed Feb 23 22:09:06 2000
+++ fc-adv/configure.in Fri Feb 25 22:57:18 2000
@@ -136,6 +136,12 @@
 ALL_LINGUAS="de en_GB es fr hu no pl pt pt_BR ru"
 AM_GNU_GETTEXT
 
+dnl Why doesn't AM_GNU_GETTEXT set LIBS appropriately 
+dnl when -lintl is required??
+if test "$gt_cv_func_gettext_libintl" = "yes"; then
+    LIBS="-lintl  $LIBS"
+fi
+
 dnl DATADIRNAME is generated by AM_GNU_GETTEXT; 
 dnl note this has to match the path installed by po/Makefile
 FC_EXPAND_DIR(LOCALEDIR, '${prefix}/${DATADIRNAME}/locale')

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