]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Don't set ENABLE_NLS when GNU gettext is not available.
authorBruno Haible <bruno@clisp.org>
Thu, 3 Jan 2002 11:43:38 +0000 (11:43 +0000)
committerBruno Haible <bruno@clisp.org>
Sun, 21 Jun 2009 22:31:30 +0000 (00:31 +0200)
m4/ChangeLog
m4/gettext.m4

index dba7d91c5c073dc96cf3920d5abc21afc6ec23b2..b58b6a2ee8756ed01c831dbdf760bdf488f7725c 100644 (file)
@@ -1,3 +1,9 @@
+2002-01-03  Bruno Haible  <bruno@clisp.org>
+
+       * gettext.m4 (AM_GNU_GETTEXT): If no intl directory exists and GNU
+       gettext was not found in libc or preinstalled libintl, don't define
+       ENABLE_NLS.
+
 2001-12-12  Bruno Haible  <bruno@clisp.org>
 
        * gettext.m4 (AM_PO_SUBDIRS): Reject xgettext versions that don't
index cfc89705a39977ba7d7ca11afcaa86930443b012..327f0ba0c3b803802c451e2ba6347505e2c1278b 100644 (file)
@@ -1,6 +1,6 @@
 # Macro to add for using GNU gettext.
 # Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
-# Bruno Haible <haible@clisp.cons.org>, 2000-2001.
+# Bruno Haible <haible@clisp.cons.org>, 2000-2002.
 #
 # This file can be copied and used freely without restrictions.  It can
 # be used in projects which are not available under the GNU General Public
@@ -84,9 +84,6 @@ AC_DEFUN([AM_GNU_GETTEXT],
 
   dnl If we use NLS figure out what method
   if test "$USE_NLS" = "yes"; then
-    AC_DEFINE(ENABLE_NLS, 1,
-      [Define to 1 if translation of program messages to the user's native language
-   is requested.])
     gt_use_preinstalled_gnugettext=no
     ifelse(gt_included_intl, yes, [
       AC_MSG_CHECKING([whether included gettext is requested])
@@ -175,6 +172,13 @@ return (int) gettext ("")]ifelse([$2], [need-ngettext], [ + (int) ngettext ("",
       fi
     ])
 
+    if test "$gt_use_preinstalled_gnugettext" = "yes" \
+       || test "$nls_cv_use_gnu_gettext" = "yes"; then
+      AC_DEFINE(ENABLE_NLS, 1,
+        [Define to 1 if translation of program messages to the user's native language
+   is requested.])
+    fi
+
     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
       if test "$gt_cv_func_gnugettext_libintl" = "yes"; then
         AC_MSG_CHECKING([how to link with libintl])