blob: ffd4008b8252a44bbbba1c30e167da2cc2a2a8c9 [file] [log] [blame]
Jordi Mallach1f1022f2002-08-21 18:19:53 +00001# lcmessage.m4 serial 3 (gettext-0.11.3)
Jordi Mallachbd338652002-06-03 12:32:28 +00002dnl Copyright (C) 1995-2002 Free Software Foundation, Inc.
3dnl This file is free software, distributed under the terms of the GNU
4dnl General Public License. As a special exception to the GNU General
5dnl Public License, this file may be distributed as part of a program
6dnl that contains a configuration script generated by Autoconf, under
7dnl the same distribution terms as the rest of that program.
8dnl
9dnl This file can can be used in projects which are not available under
10dnl the GNU General Public License or the GNU Library General Public
11dnl License but which still want to provide support for the GNU gettext
12dnl functionality.
13dnl Please note that the actual code of the GNU gettext library is covered
14dnl by the GNU Library General Public License, and the rest of the GNU
15dnl gettext package package is covered by the GNU General Public License.
16dnl They are *not* in the public domain.
17
18dnl Authors:
19dnl Ulrich Drepper <drepper@cygnus.com>, 1995.
20
Chris Allegrettaef8f98d2001-07-19 12:24:17 +000021# Check whether LC_MESSAGES is available in <locale.h>.
Chris Allegrettaef8f98d2001-07-19 12:24:17 +000022
Jordi Mallachbd338652002-06-03 12:32:28 +000023AC_DEFUN([AM_LC_MESSAGES],
Jordi Mallach1f1022f2002-08-21 18:19:53 +000024[
25 AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES,
26 [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
Chris Allegrettaef8f98d2001-07-19 12:24:17 +000027 am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)])
Jordi Mallach1f1022f2002-08-21 18:19:53 +000028 if test $am_cv_val_LC_MESSAGES = yes; then
29 AC_DEFINE(HAVE_LC_MESSAGES, 1,
30 [Define if your <locale.h> file defines LC_MESSAGES.])
31 fi
32])