X-Git-Url: http://sjero.net/git/?p=wget;a=blobdiff_plain;f=m4%2Fcodeset.m4;fp=m4%2Fcodeset.m4;h=413217bd4a5f9ebb295528989c6e4e906c9438eb;hp=0000000000000000000000000000000000000000;hb=3419874b2109f62cf21d63c87e45ae6d819fc243;hpb=f5a5cfad4901ad4bafb29b9f1221c02c47a03ffa diff --git a/m4/codeset.m4 b/m4/codeset.m4 new file mode 100644 index 00000000..413217bd --- /dev/null +++ b/m4/codeset.m4 @@ -0,0 +1,21 @@ +# codeset.m4 serial 4 (gettext-0.18) +dnl Copyright (C) 2000-2002, 2006, 2008, 2009 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl From Bruno Haible. + +AC_DEFUN([AM_LANGINFO_CODESET], +[ + AC_CACHE_CHECK([for nl_langinfo and CODESET], [am_cv_langinfo_codeset], + [AC_TRY_LINK([#include ], + [char* cs = nl_langinfo(CODESET); return !cs;], + [am_cv_langinfo_codeset=yes], + [am_cv_langinfo_codeset=no]) + ]) + if test $am_cv_langinfo_codeset = yes; then + AC_DEFINE([HAVE_LANGINFO_CODESET], [1], + [Define if you have and nl_langinfo(CODESET).]) + fi +])