From: Bruno Haible Date: Mon, 15 Aug 2005 10:38:00 +0000 (+0000) Subject: Include locale.h, for LC_MESSAGES to be defined. X-Git-Tag: v0.15~430 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=46cd0e98ad2e43c6ef6f0e4eae58cd1b273357c2;p=thirdparty%2Fgettext.git Include locale.h, for LC_MESSAGES to be defined. --- diff --git a/gettext-runtime/m4/ChangeLog b/gettext-runtime/m4/ChangeLog index 128dedf3f..2ebf32715 100644 --- a/gettext-runtime/m4/ChangeLog +++ b/gettext-runtime/m4/ChangeLog @@ -1,3 +1,7 @@ +2005-08-15 Bruno Haible + + * gettext.m4 (AM_INTL_SUBDIR): Fix test for NL_LOCALE_NAME macro. + 2005-07-28 Stepan Kasal * gettext.m4 (AM_GNU_GETTEXT): Don't use changequote, add pairs of diff --git a/gettext-runtime/m4/gettext.m4 b/gettext-runtime/m4/gettext.m4 index 9ab4bcfa5..756c0bd4e 100644 --- a/gettext-runtime/m4/gettext.m4 +++ b/gettext-runtime/m4/gettext.m4 @@ -443,7 +443,8 @@ __fsetlocking]) dnl glibc >= 2.4 has a NL_LOCALE_NAME macro when _GNU_SOURCE is defined, dnl and a _NL_LOCALE_NAME macro always. AC_CACHE_CHECK([for NL_LOCALE_NAME macro], gt_cv_nl_locale_name, - [AC_TRY_LINK([#include ], + [AC_TRY_LINK([#include +#include ], [char* cs = nl_langinfo(_NL_LOCALE_NAME(LC_MESSAGES));], gt_cv_nl_locale_name=yes, gt_cv_nl_locale_name=no)