]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Let the GNU gettext package install its libintl when a GNU libintl is
authorBruno Haible <bruno@clisp.org>
Mon, 7 May 2001 13:23:40 +0000 (13:23 +0000)
committerBruno Haible <bruno@clisp.org>
Sun, 28 Jun 2009 14:35:48 +0000 (16:35 +0200)
already preinstalled.

m4/ChangeLog
m4/gettext.m4

index 3106b48de4c19d80817c8f47d407742f05da029f..7a19b95d9366d65f0ed3ab3042e2a8082cef201e 100644 (file)
@@ -1,3 +1,8 @@
+2001-05-04  Bruno Haible  <haible@clisp.cons.org>
+
+       * gettext.m4 (AM_WITH_NLS): Let the GNU gettext package install its
+       libintl when a GNU libintl is already preinstalled.
+
 2001-04-30  Bruno Haible  <haible@clisp.cons.org>
 
        * gettext.m4 (AM_GNU_GETTEXT): Also check for the getegid, geteuid,
index c91dac992903c9661f97a228906c85be62f07fbb..a9fce69b5d1b1433f7c34c7474d06e77b33fde00 100644 (file)
@@ -94,8 +94,13 @@ return (int) gettext ("")]ifelse([$2], need-ngettext, [ + (int) ngettext ("", ""
                LIBS="$gt_save_LIBS"])
           fi
 
+          dnl If an already present or preinstalled GNU gettext() is found,
+          dnl use it.  But if this macro is used in GNU gettext, and GNU
+          dnl gettext is already preinstalled in libintl, we update this
+          dnl libintl.  (Cf. the install rule in intl/Makefile.in.)
           if test "$gt_cv_func_gnugettext_libc" = "yes" \
-             || test "$gt_cv_func_gnugettext_libintl" = "yes"; then
+             || { test "$gt_cv_func_gnugettext_libintl" = "yes" \
+                  && test "$PACKAGE" != gettext; }; then
             AC_DEFINE(HAVE_GETTEXT, 1,
                [Define if the GNU gettext() function is already present or preinstalled.])
             AC_CHECK_FUNCS(dcgettext)