<URL: http://bugs.freeciv.org/Ticket/Display.html?id=39550 >

 AM_GLIB_GNU_GETTEXT does not provide --disable-nls. Attached patch
adds it to our own configure.ac.
 Not tested in any system where gettext is not available at all.


 - ML

diff -Nurd -X.diff_ignore freeciv/configure.ac freeciv/configure.ac
--- freeciv/configure.ac	2007-08-09 11:35:00.000000000 +0300
+++ freeciv/configure.ac	2007-08-12 21:04:43.000000000 +0300
@@ -190,14 +190,23 @@
 dnl I18n support
 ALL_LINGUAS="ar cs ca da de el en_GB es et fa fi fr he hu it ja lt nl nb 
 no pl pt pt_BR ro ru sv uk zh_CN"
-AM_GLIB_GNU_GETTEXT
 
-dnl AM_GLIB_GNU_GETTEXT doesn't have all features we want
-dnl or they don't behave correctly.
-dnl Old gettext binaries don't understand plurals. (ngettext, msgid_plural)
-dnl and there are some problems with missing ngettext.
+AC_ARG_ENABLE([nls],
+[  --disable-nls        do not use add localization support],
+[case "${enableval}" in
+  yes) USE_NLS=yes ;;
+  no)  USE_NLS=no ;;
+  *)   AC_MSG_ERROR([bad value ${enableval} for --disable-nls]) ;;
+esac], [USE_NLS=yes])
 
-if test "$USE_NLS" = "yes"; then
+if test "$USE_NLS" = "yes" ; then
+  AM_GLIB_GNU_GETTEXT
+
+  dnl AM_GLIB_GNU_GETTEXT doesn't have all features we want
+  dnl or they don't behave correctly.
+  dnl Old gettext binaries don't understand plurals. (ngettext, msgid_plural)
+  dnl and there are some problems with missing ngettext.
+  dnl Is that ngettext part still true? AM_GLIB_GNU_GETTEXT does check for it
 
   have_working_ngettext=0
   AC_CHECK_LIB(c, ngettext,
_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to