1 1.1 christos # codeset.m4 serial AM1 (gettext-0.10.40) 2 1.1 christos dnl Copyright (C) 2000-2002 Free Software Foundation, Inc. 3 1.1 christos dnl This file is free software, distributed under the terms of the GNU 4 1.1 christos dnl General Public License. As a special exception to the GNU General 5 1.1 christos dnl Public License, this file may be distributed as part of a program 6 1.1 christos dnl that contains a configuration script generated by Autoconf, under 7 1.1 christos dnl the same distribution terms as the rest of that program. 8 1.1 christos 9 1.1 christos dnl From Bruno Haible. 10 1.1 christos 11 1.1 christos AC_DEFUN([AM_LANGINFO_CODESET], 12 1.1 christos [ 13 1.1 christos AC_CACHE_CHECK([for nl_langinfo and CODESET], am_cv_langinfo_codeset, 14 1.1 christos [AC_TRY_LINK([#include <langinfo.h>], 15 1.1 christos [char* cs = nl_langinfo(CODESET);], 16 1.1 christos am_cv_langinfo_codeset=yes, 17 1.1 christos am_cv_langinfo_codeset=no) 18 1.1 christos ]) 19 1.1 christos if test $am_cv_langinfo_codeset = yes; then 20 1.1 christos AC_DEFINE(HAVE_LANGINFO_CODESET, 1, 21 1.1 christos [Define if you have <langinfo.h> and nl_langinfo(CODESET).]) 22 1.1 christos fi 23 1.1 christos ]) 24