Debian Codegraph @

m4/codeset.m4

raw
1 # codeset.m4
2 # serial 5 (gettext-0.18.2)
3 dnl Copyright (C) 2000-2002, 2006, 2008-2014, 2016, 2019-2024 Free Software
4 dnl 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
10 dnl From Bruno Haible.
11
12 AC_DEFUN([AM_LANGINFO_CODESET],
13 [
14 AC_CACHE_CHECK([for nl_langinfo and CODESET], [am_cv_langinfo_codeset],
15 [AC_LINK_IFELSE(
16 [AC_LANG_PROGRAM(
17 [[#include <langinfo.h>]],
18 [[char* cs = nl_langinfo(CODESET); return !cs;]])],
19 [am_cv_langinfo_codeset=yes],
20 [am_cv_langinfo_codeset=no])
21 ])
22 if test $am_cv_langinfo_codeset = yes; then
23 AC_DEFINE([HAVE_LANGINFO_CODESET], [1],
24 [Define if you have <langinfo.h> and nl_langinfo(CODESET).])
25 fi
26 ])