~ubuntu-branches/ubuntu/trusty/gettext/trusty

« back to all changes in this revision

Viewing changes to m4/lcmessage.m4

  • Committer: Bazaar Package Importer
  • Author(s): Santiago Vila
  • Date: 2002-04-10 13:17:42 UTC
  • Revision ID: james.westby@ubuntu.com-20020410131742-npf89tsaygdolprj
Tags: upstream-0.10.40
ImportĀ upstreamĀ versionĀ 0.10.40

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Check whether LC_MESSAGES is available in <locale.h>.
 
2
# Ulrich Drepper <drepper@cygnus.com>, 1995.
 
3
#
 
4
# This file can be copied and used freely without restrictions.  It can
 
5
# be used in projects which are not available under the GNU General Public
 
6
# License or the GNU Library General Public License but which still want
 
7
# to provide support for the GNU gettext functionality.
 
8
# Please note that the actual code of the GNU gettext library is covered
 
9
# by the GNU Library General Public License, and the rest of the GNU
 
10
# gettext package package is covered by the GNU General Public License.
 
11
# They are *not* in the public domain.
 
12
 
 
13
# serial 2
 
14
 
 
15
AC_DEFUN([AM_LC_MESSAGES],
 
16
  [if test $ac_cv_header_locale_h = yes; then
 
17
    AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES,
 
18
      [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
 
19
       am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)])
 
20
    if test $am_cv_val_LC_MESSAGES = yes; then
 
21
      AC_DEFINE(HAVE_LC_MESSAGES, 1,
 
22
        [Define if your <locale.h> file defines LC_MESSAGES.])
 
23
    fi
 
24
  fi])