summaryrefslogtreecommitdiffstats
path: root/m4/codeset.m4
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>2001-06-07 20:03:57 +0000
committerThomas Roessler <roessler@does-not-exist.org>2001-06-07 20:03:57 +0000
commitd2e15883dc65eb4e9c3843c2bbc9f03b5d311231 (patch)
tree6c22a429d2902614b89464d2597605ec4b1dbd69 /m4/codeset.m4
parent95774fdad2ed5d88bc0fd50736f277ccdbb30f12 (diff)
More from the gettext munster patch from E.G.E.
Diffstat (limited to 'm4/codeset.m4')
-rw-r--r--m4/codeset.m417
1 files changed, 17 insertions, 0 deletions
diff --git a/m4/codeset.m4 b/m4/codeset.m4
new file mode 100644
index 00000000..1669694f
--- /dev/null
+++ b/m4/codeset.m4
@@ -0,0 +1,17 @@
+#serial AM1
+
+dnl From Bruno Haible.
+
+AC_DEFUN([MUTT_AM_LANGINFO_CODESET],
+[
+ AC_CACHE_CHECK([for nl_langinfo and CODESET], am_cv_langinfo_codeset,
+ [AC_TRY_LINK([#include <langinfo.h>],
+ [char* cs = nl_langinfo(CODESET);],
+ 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 <langinfo.h> and nl_langinfo(CODESET).])
+ fi
+])