Author: cazfi
Date: Sun Jul  6 23:25:44 2014
New Revision: 25404

URL: http://svn.gna.org/viewcvs/freeciv?rev=25404&view=rev
Log:
Add "-lintl" to UTILITY_LIBS when we notice that we need it.

See bug #22266

Modified:
    branches/S2_4/configure.ac

Modified: branches/S2_4/configure.ac
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_4/configure.ac?rev=25404&r1=25403&r2=25404&view=diff
==============================================================================
--- branches/S2_4/configure.ac  (original)
+++ branches/S2_4/configure.ac  Sun Jul  6 23:25:44 2014
@@ -461,9 +461,10 @@
      FC_CHECK_NGETTEXT_RUNTIME(,have_working_ngettext=1,)],)
 
   if test "$have_working_ngettext" = "0"; then
-    AC_CHECK_LIB(intl, ngettext,
-      [AC_MSG_CHECKING(whether libintl's ngettext works at runtime)
-       FC_CHECK_NGETTEXT_RUNTIME("-lintl",have_working_ngettext=1,)],)
+    AC_CHECK_LIB([intl], [ngettext],
+      [AC_MSG_CHECKING([whether libintl's ngettext works at runtime])
+       FC_CHECK_NGETTEXT_RUNTIME(["-lintl"],[have_working_ngettext=1
+UTILITY_LIBS="${UTILITY_LIBS} -lintl"],)],)
   fi
 
   if test "$have_working_ngettext" = "0"; then


_______________________________________________
Freeciv-commits mailing list
Freeciv-commits@gna.org
https://mail.gna.org/listinfo/freeciv-commits

Reply via email to