Debian Codegraph @

gnulib/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
9 dnl From Bruno Haible.
10
11 AC_DEFUN([AM_LANGINFO_CODESET],
12 [
13 AC_CACHE_CHECK([for nl_langinfo and CODESET], [am_cv_langinfo_codeset],
14 [AC_LINK_IFELSE(
15 [AC_LANG_PROGRAM(
16 [[#include <langinfo.h>]],
17 [[char* cs = nl_langinfo(CODESET); return !cs;]])],
18 [am_cv_langinfo_codeset=yes],
19 [am_cv_langinfo_codeset=no])
20 ])
21 if test $am_cv_langinfo_codeset = yes; then
22 AC_DEFINE([HAVE_LANGINFO_CODESET], [1],
23 [Define if you have <langinfo.h> and nl_langinfo(CODESET).])
24 fi
25 ])