138032Speter# codeset.m4 serial AM1 (gettext-0.10.40) 238032Speterdnl Copyright (C) 2000-2002 Free Software Foundation, Inc. 3261363Sgshapirodnl This file is free software; the Free Software Foundation 464562Sgshapirodnl gives unlimited permission to copy and/or distribute it, 538032Speterdnl with or without modifications, as long as this notice is preserved. 638032Speter 738032Speterdnl From Bruno Haible. 838032Speter 938032SpeterAC_DEFUN([AM_LANGINFO_CODESET], 1038032Speter[ 1138032Speter AC_CACHE_CHECK([for nl_langinfo and CODESET], am_cv_langinfo_codeset, 1238032Speter [AC_TRY_LINK([#include <langinfo.h>], 1338032Speter [char* cs = nl_langinfo(CODESET);], 1438032Speter am_cv_langinfo_codeset=yes, 1538032Speter am_cv_langinfo_codeset=no) 1638032Speter ]) 1738032Speter if test $am_cv_langinfo_codeset = yes; then 1864562Sgshapiro AC_DEFINE(HAVE_LANGINFO_CODESET, 1, 1938032Speter [Define if you have <langinfo.h> and nl_langinfo(CODESET).]) 2090792Sgshapiro fi 2138032Speter]) 2238032Speter