diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2018-03-12 22:07:39 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2018-03-12 22:07:39 +0200 |
commit | ed1faa79b624518172ffe51c0bd098d142e15db1 (patch) | |
tree | e3302d79857fb85196ba91da0159d4d0f4f41d7c /extension/m4/codeset.m4 | |
parent | 2851796ba5a630da07559169df261afa094ee0d9 (diff) | |
parent | e795ffe30a78eaf86ca14e7639695be41020b2f6 (diff) | |
download | egawk-ed1faa79b624518172ffe51c0bd098d142e15db1.tar.gz egawk-ed1faa79b624518172ffe51c0bd098d142e15db1.tar.bz2 egawk-ed1faa79b624518172ffe51c0bd098d142e15db1.zip |
Merge branch 'master' into feature/fix-comments
Diffstat (limited to 'extension/m4/codeset.m4')
-rw-r--r-- | extension/m4/codeset.m4 | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/extension/m4/codeset.m4 b/extension/m4/codeset.m4 new file mode 100644 index 00000000..d7de8d67 --- /dev/null +++ b/extension/m4/codeset.m4 @@ -0,0 +1,23 @@ +# codeset.m4 serial 5 (gettext-0.18.2) +dnl Copyright (C) 2000-2002, 2006, 2008-2014 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_LINK_IFELSE( + [AC_LANG_PROGRAM( + [[#include <langinfo.h>]], + [[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 <langinfo.h> and nl_langinfo(CODESET).]) + fi +]) |