diff options
author | Bruno Haible <bruno@clisp.org> | 2009-12-11 20:09:02 +0100 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2009-12-11 20:09:02 +0100 |
commit | fdf6b0ba132b0f8cfacf2ad5d31e366757c7ac34 (patch) | |
tree | f3575884b4434e87e1f0d1bb55170ab5875be46d /m4 | |
parent | 6da2fb7a5a1e8a32ccd2f735834713a3bc8c4275 (diff) | |
download | gnulib-fdf6b0ba132b0f8cfacf2ad5d31e366757c7ac34.tar.gz |
New module 'nl_langinfo'.
Diffstat (limited to 'm4')
-rw-r--r-- | m4/nl_langinfo.m4 | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/m4/nl_langinfo.m4 b/m4/nl_langinfo.m4 new file mode 100644 index 0000000000..2855d0f7f6 --- /dev/null +++ b/m4/nl_langinfo.m4 @@ -0,0 +1,29 @@ +# nl_langinfo.m4 serial 1 +dnl Copyright (C) 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. + +AC_DEFUN([gl_FUNC_NL_LANGINFO], +[ + AC_REQUIRE([gl_LANGINFO_H_DEFAULTS]) + AC_REQUIRE([gl_LANGINFO_H]) + if test $HAVE_LANGINFO_H = 1; then + AC_CHECK_FUNCS_ONCE([nl_langinfo]) + else + ac_cv_func_nl_langinfo=no + fi + if test $ac_cv_func_nl_langinfo = yes; then + if test $HAVE_LANGINFO_CODESET = 1 && test $HAVE_LANGINFO_ERA = 1; then + : + else + REPLACE_NL_LANGINFO=1 + AC_DEFINE([REPLACE_NL_LANGINFO], [1], + [Define if nl_langinfo exists but is overridden by gnulib.]) + AC_LIBOBJ([nl_langinfo]) + fi + else + HAVE_NL_LANGINFO=0 + AC_LIBOBJ([nl_langinfo]) + fi +]) |