1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/build/autoconf/codeset.m4 Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,24 @@ 1.4 +# codeset.m4 serial AM1 (gettext-0.10.40) 1.5 +dnl Copyright (C) 2000-2002 Free Software Foundation, Inc. 1.6 +dnl This file is free software, distributed under the terms of the GNU 1.7 +dnl General Public License. As a special exception to the GNU General 1.8 +dnl Public License, this file may be distributed as part of a program 1.9 +dnl that contains a configuration script generated by Autoconf, under 1.10 +dnl the same distribution terms as the rest of that program. 1.11 + 1.12 +dnl From Bruno Haible. 1.13 + 1.14 +AC_DEFUN([AM_LANGINFO_CODESET], 1.15 +[ 1.16 + AC_CACHE_CHECK([for nl_langinfo and CODESET], am_cv_langinfo_codeset, 1.17 + [AC_TRY_LINK([#include <langinfo.h>], 1.18 + [char* cs = nl_langinfo(CODESET);], 1.19 + am_cv_langinfo_codeset=yes, 1.20 + am_cv_langinfo_codeset=no) 1.21 + ]) 1.22 + if test $am_cv_langinfo_codeset = yes; then 1.23 + AC_DEFINE(HAVE_LANGINFO_CODESET, 1, 1.24 + [Define if you have <langinfo.h> and nl_langinfo(CODESET).]) 1.25 + HAVE_LANGINFO_CODESET=1 1.26 + fi 1.27 +])