1*600f14f4SXin Li# codeset.m4 serial 5 (gettext-0.18.2) 2*600f14f4SXin Lidnl Copyright (C) 2000-2002, 2006, 2008-2012 Free Software Foundation, Inc. 3*600f14f4SXin Lidnl This file is free software; the Free Software Foundation 4*600f14f4SXin Lidnl gives unlimited permission to copy and/or distribute it, 5*600f14f4SXin Lidnl with or without modifications, as long as this notice is preserved. 6*600f14f4SXin Li 7*600f14f4SXin Lidnl From Bruno Haible. 8*600f14f4SXin Li 9*600f14f4SXin LiAC_DEFUN([AM_LANGINFO_CODESET], 10*600f14f4SXin Li[ 11*600f14f4SXin Li AC_CACHE_CHECK([for nl_langinfo and CODESET], [am_cv_langinfo_codeset], 12*600f14f4SXin Li [AC_LINK_IFELSE( 13*600f14f4SXin Li [AC_LANG_PROGRAM( 14*600f14f4SXin Li [[#include <langinfo.h>]], 15*600f14f4SXin Li [[char* cs = nl_langinfo(CODESET); return !cs;]])], 16*600f14f4SXin Li [am_cv_langinfo_codeset=yes], 17*600f14f4SXin Li [am_cv_langinfo_codeset=no]) 18*600f14f4SXin Li ]) 19*600f14f4SXin Li if test $am_cv_langinfo_codeset = yes; then 20*600f14f4SXin Li AC_DEFINE([HAVE_LANGINFO_CODESET], [1], 21*600f14f4SXin Li [Define if you have <langinfo.h> and nl_langinfo(CODESET).]) 22*600f14f4SXin Li fi 23*600f14f4SXin Li]) 24