From 80ef50731cbe8f79fb21344b55189d40c7799abc Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Mon, 4 Mar 2002 12:14:37 +0000 Subject: [PATCH] Fix a bug occurring in external mode when no libintl is installed at all. --- m4/ChangeLog | 6 ++++++ m4/gettext.m4 | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/m4/ChangeLog b/m4/ChangeLog index ea6d71c21..a7df09907 100644 --- a/m4/ChangeLog +++ b/m4/ChangeLog @@ -1,3 +1,9 @@ +2002-03-02 Bruno Haible + + * gettext.m4 (AM_GNU_GETTEXT): Set LIBINTL and LTLIBINTL to empty if + no preinstalled GNU gettext was found. + Reported by Paul Eggert. + 2002-02-10 Bruno Haible * gettext.m4 (AM_GNU_GETTEXT): Don't prevent installation of libintl diff --git a/m4/gettext.m4 b/m4/gettext.m4 index eb860f444..22a3019ec 100644 --- a/m4/gettext.m4 +++ b/m4/gettext.m4 @@ -182,6 +182,11 @@ return (int) gettext ("")]ifelse([$2], [need-ngettext], [ + (int) ngettext ("", || { test "$gt_cv_func_gnugettext_libintl" = "yes" \ && test "$PACKAGE" != gettext; }; then gt_use_preinstalled_gnugettext=yes + else + dnl Reset the values set by searching libintl. + LIBINTL= + LTLIBINTL= + INCINTL= fi ifelse(gt_included_intl, yes, [ -- 2.47.2