1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-07-02 14:57:08 +02:00
Files
coreutils/m4/codeset.m4
T

22 lines
745 B
Plaintext
Raw Normal View History

2002-02-16 14:58:48 +00:00
# codeset.m4 serial AM1 (gettext-0.10.40)
dnl Copyright (C) 2000-2002 Free Software Foundation, Inc.
2005-01-22 06:25:53 +00:00
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
2000-03-04 12:22:14 +00:00
dnl From Bruno Haible.
2001-08-04 16:55:36 +00:00
AC_DEFUN([AM_LANGINFO_CODESET],
2000-03-04 12:22:14 +00:00
[
2001-08-04 16:55:36 +00:00
AC_CACHE_CHECK([for nl_langinfo and CODESET], am_cv_langinfo_codeset,
2000-03-04 12:22:14 +00:00
[AC_TRY_LINK([#include <langinfo.h>],
[char* cs = nl_langinfo(CODESET);],
2001-08-04 16:55:36 +00:00
am_cv_langinfo_codeset=yes,
am_cv_langinfo_codeset=no)
2000-03-04 12:22:14 +00:00
])
2001-08-04 16:55:36 +00:00
if test $am_cv_langinfo_codeset = yes; then
2000-03-04 12:22:14 +00:00
AC_DEFINE(HAVE_LANGINFO_CODESET, 1,
[Define if you have <langinfo.h> and nl_langinfo(CODESET).])
fi
])