summaryrefslogtreecommitdiffstats
path: root/m4
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2002-02-12 12:42:04 +0000
committerBruno Haible <bruno@clisp.org>2009-06-22 01:21:13 +0200
commit80987801f412a42b1acbbf3ea2fe55b7f16c2d66 (patch)
treef3530368dd065ca69d2d401fdceeafd926bd20e0 /m4
parent39d198221915c7fe690070d406b26e1ef75c97d7 (diff)
downloadexternal_gettext-80987801f412a42b1acbbf3ea2fe55b7f16c2d66.zip
external_gettext-80987801f412a42b1acbbf3ea2fe55b7f16c2d66.tar.gz
external_gettext-80987801f412a42b1acbbf3ea2fe55b7f16c2d66.tar.bz2
Tweak for NetBSD. These idiots have a nonfunctional gettext implementation
in libc but define _nl_msg_cat_cntr.
Diffstat (limited to 'm4')
-rw-r--r--m4/ChangeLog5
-rw-r--r--m4/gettext.m47
2 files changed, 9 insertions, 3 deletions
diff --git a/m4/ChangeLog b/m4/ChangeLog
index 38c0695..ea6d71c 100644
--- a/m4/ChangeLog
+++ b/m4/ChangeLog
@@ -1,3 +1,8 @@
+2002-02-10 Bruno Haible <bruno@clisp.org>
+
+ * gettext.m4 (AM_GNU_GETTEXT): Don't prevent installation of libintl
+ on NetBSD.
+
2002-02-06 Bruno Haible <bruno@clisp.org>
* libtool.m4: Upgrade from libtool-1.4 to libtool-1.4.2.
diff --git a/m4/gettext.m4 b/m4/gettext.m4
index 30ea489..84caa47 100644
--- a/m4/gettext.m4
+++ b/m4/gettext.m4
@@ -1,4 +1,4 @@
-# gettext.m4 serial 12 (gettext-0.11)
+# gettext.m4 serial 13 (gettext-0.11.1)
dnl Copyright (C) 1995-2002 Free Software Foundation, Inc.
dnl This file is free software, distributed under the terms of the GNU
dnl General Public License. As a special exception to the GNU General
@@ -116,9 +116,10 @@ AC_DEFUN([AM_GNU_GETTEXT],
AC_CACHE_CHECK([for GNU gettext in libc], gt_cv_func_gnugettext_libc,
[AC_TRY_LINK([#include <libintl.h>
-extern int _nl_msg_cat_cntr;],
+extern int _nl_msg_cat_cntr;
+extern int *_nl_domain_bindings;],
[bindtextdomain ("", "");
-return (int) gettext ("")]ifelse([$2], [need-ngettext], [ + (int) ngettext ("", "", 0)], [])[ + _nl_msg_cat_cntr],
+return (int) gettext ("")]ifelse([$2], [need-ngettext], [ + (int) ngettext ("", "", 0)], [])[ + _nl_msg_cat_cntr + *_nl_domain_bindings],
gt_cv_func_gnugettext_libc=yes,
gt_cv_func_gnugettext_libc=no)])