michael@0: # codeset.m4 serial AM1 (gettext-0.10.40) michael@0: dnl Copyright (C) 2000-2002 Free Software Foundation, Inc. michael@0: dnl This file is free software, distributed under the terms of the GNU michael@0: dnl General Public License. As a special exception to the GNU General michael@0: dnl Public License, this file may be distributed as part of a program michael@0: dnl that contains a configuration script generated by Autoconf, under michael@0: dnl the same distribution terms as the rest of that program. michael@0: michael@0: dnl From Bruno Haible. michael@0: michael@0: AC_DEFUN([AM_LANGINFO_CODESET], michael@0: [ michael@0: AC_CACHE_CHECK([for nl_langinfo and CODESET], am_cv_langinfo_codeset, michael@0: [AC_TRY_LINK([#include ], michael@0: [char* cs = nl_langinfo(CODESET);], michael@0: am_cv_langinfo_codeset=yes, michael@0: am_cv_langinfo_codeset=no) michael@0: ]) michael@0: if test $am_cv_langinfo_codeset = yes; then michael@0: AC_DEFINE(HAVE_LANGINFO_CODESET, 1, michael@0: [Define if you have and nl_langinfo(CODESET).]) michael@0: HAVE_LANGINFO_CODESET=1 michael@0: fi michael@0: ])