From: Bruno Haible Date: Fri, 14 Jun 2002 12:13:59 +0000 (+0000) Subject: Make it possible to use AM_LC_MESSAGES outside gettext.m4. X-Git-Tag: v0.11.3~30 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3768f3221d90086799d55c139da64e7a9dcc0f99;p=thirdparty%2Fgettext.git Make it possible to use AM_LC_MESSAGES outside gettext.m4. --- diff --git a/m4/ChangeLog b/m4/ChangeLog index 9a40fd506..1339dc3bb 100644 --- a/m4/ChangeLog +++ b/m4/ChangeLog @@ -1,3 +1,8 @@ +2002-06-12 Bruno Haible + + * lcmessage.m4 (AM_LC_MESSAGES): Don't test ac_cv_header_locale_h here. + * gettext.m4 (AM_INTL_SUBDIR): Test it here. + 2002-06-07 Bruno Haible * intdiv0.m4: New file. diff --git a/m4/gettext.m4 b/m4/gettext.m4 index 146cef2f8..1c95d979b 100644 --- a/m4/gettext.m4 +++ b/m4/gettext.m4 @@ -504,7 +504,9 @@ strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next]) AM_ICONV AM_LANGINFO_CODESET - AM_LC_MESSAGES + if test $ac_cv_header_locale_h = yes; then + AM_LC_MESSAGES + fi dnl intl/plural.c is generated from intl/plural.y. It requires bison, dnl because plural.y uses bison specific features. It requires at least diff --git a/m4/lcmessage.m4 b/m4/lcmessage.m4 index ffbf915f1..ffd4008b8 100644 --- a/m4/lcmessage.m4 +++ b/m4/lcmessage.m4 @@ -1,4 +1,4 @@ -# lcmessage.m4 serial 2 (gettext-0.10.40) +# lcmessage.m4 serial 3 (gettext-0.11.3) 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 @@ -21,12 +21,12 @@ dnl Ulrich Drepper , 1995. # Check whether LC_MESSAGES is available in . AC_DEFUN([AM_LC_MESSAGES], - [if test $ac_cv_header_locale_h = yes; then - AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES, - [AC_TRY_LINK([#include ], [return LC_MESSAGES], +[ + AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES, + [AC_TRY_LINK([#include ], [return LC_MESSAGES], am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)]) - if test $am_cv_val_LC_MESSAGES = yes; then - AC_DEFINE(HAVE_LC_MESSAGES, 1, - [Define if your file defines LC_MESSAGES.]) - fi - fi]) + if test $am_cv_val_LC_MESSAGES = yes; then + AC_DEFINE(HAVE_LC_MESSAGES, 1, + [Define if your file defines LC_MESSAGES.]) + fi +])