Debian Codegraph @

m4/lcmessage.m4

raw
1 # lcmessage.m4
2 # serial 8
3 dnl Copyright (C) 1995-2002, 2004-2005, 2008-2014, 2016, 2019-2025 Free
4 dnl Software Foundation, Inc.
5 dnl This file is free software; the Free Software Foundation
6 dnl gives unlimited permission to copy and/or distribute it,
7 dnl with or without modifications, as long as this notice is preserved.
8 dnl This file is offered as-is, without any warranty.
9 dnl
10 dnl This file can be used in projects which are not available under
11 dnl the GNU General Public License or the GNU Lesser General Public
12 dnl License but which still want to provide support for the GNU gettext
13 dnl functionality.
14 dnl Please note that the actual code of the GNU gettext library is covered
15 dnl by the GNU Lesser General Public License, and the rest of the GNU
16 dnl gettext package is covered by the GNU General Public License.
17 dnl They are *not* in the public domain.
18
19 dnl Authors:
20 dnl Ulrich Drepper <[email protected]>, 1995.
21
22 # Check whether LC_MESSAGES is available in <locale.h>.
23
24 AC_DEFUN([gt_LC_MESSAGES],
25 [
26 AC_CACHE_CHECK([for LC_MESSAGES], [gt_cv_val_LC_MESSAGES],
27 [AC_LINK_IFELSE(
28 [AC_LANG_PROGRAM(
29 [[#include <locale.h>]],
30 [[return LC_MESSAGES]])],
31 [gt_cv_val_LC_MESSAGES=yes],
32 [gt_cv_val_LC_MESSAGES=no])])
33 if test $gt_cv_val_LC_MESSAGES = yes; then
34 AC_DEFINE([HAVE_LC_MESSAGES], [1],
35 [Define if your <locale.h> file defines LC_MESSAGES.])
36 fi
37 ])