summaryrefslogtreecommitdiffstats
path: root/gl/m4/nl_langinfo.m4
diff options
context:
space:
mode:
authorLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2026-03-26 12:53:53 +0100
committerGitHub <noreply@github.com>2026-03-26 12:53:53 +0100
commit13e14a6bfd9f29cbfeab0c5161d2a994f97532e7 (patch)
tree3aa7186fe092e42783dc7e981dc39a74ea61c466 /gl/m4/nl_langinfo.m4
parent9d8503f90ef25b2cecd324dc118e441f40233ea8 (diff)
downloadmonitoring-plugins-13e14a6bfd9f29cbfeab0c5161d2a994f97532e7.tar.gz
Update/gnulib 2026 03 (#2247)HEADmaster
* Sync with the 202601-stable Gnulib code (4a3650d887) * Ignore more deps stuff in gnulib * Remove autogenerated gnulib files * Ignore more gnulib generated headers
Diffstat (limited to 'gl/m4/nl_langinfo.m4')
-rw-r--r--gl/m4/nl_langinfo.m431
1 files changed, 2 insertions, 29 deletions
diff --git a/gl/m4/nl_langinfo.m4 b/gl/m4/nl_langinfo.m4
index 9b1e0f32..a3ec57f7 100644
--- a/gl/m4/nl_langinfo.m4
+++ b/gl/m4/nl_langinfo.m4
@@ -1,6 +1,6 @@
1# nl_langinfo.m4 1# nl_langinfo.m4
2# serial 12.1 2# serial 14
3dnl Copyright (C) 2009-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2009-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
@@ -16,31 +16,6 @@ AC_DEFUN([gl_FUNC_NL_LANGINFO],
16 AC_REQUIRE([gl_PTHREADLIB]) 16 AC_REQUIRE([gl_PTHREADLIB])
17 AC_CHECK_HEADERS_ONCE([threads.h]) 17 AC_CHECK_HEADERS_ONCE([threads.h])
18 if test $ac_cv_func_nl_langinfo = yes; then 18 if test $ac_cv_func_nl_langinfo = yes; then
19 # On Irix 6.5, YESEXPR is defined, but nl_langinfo(YESEXPR) is broken.
20 AC_CACHE_CHECK([whether YESEXPR works],
21 [gl_cv_func_nl_langinfo_yesexpr_works],
22 [AC_RUN_IFELSE(
23 [AC_LANG_PROGRAM([[#include <langinfo.h>
24]], [[return !*nl_langinfo(YESEXPR);
25]])],
26 [gl_cv_func_nl_langinfo_yesexpr_works=yes],
27 [gl_cv_func_nl_langinfo_yesexpr_works=no],
28 [
29 case "$host_os" in
30 # Guess no on irix systems.
31 irix*) gl_cv_func_nl_langinfo_yesexpr_works="guessing no";;
32 # Guess yes elsewhere.
33 *) gl_cv_func_nl_langinfo_yesexpr_works="guessing yes";;
34 esac
35 ])
36 ])
37 case $gl_cv_func_nl_langinfo_yesexpr_works in
38 *yes) FUNC_NL_LANGINFO_YESEXPR_WORKS=1 ;;
39 *) FUNC_NL_LANGINFO_YESEXPR_WORKS=0 ;;
40 esac
41 AC_DEFINE_UNQUOTED([FUNC_NL_LANGINFO_YESEXPR_WORKS],
42 [$FUNC_NL_LANGINFO_YESEXPR_WORKS],
43 [Define to 1 if nl_langinfo (YESEXPR) returns a non-empty string.])
44 # On macOS 26, Solaris 10, and Solaris 11.3, nl_langinfo is not 19 # On macOS 26, Solaris 10, and Solaris 11.3, nl_langinfo is not
45 # multithread-safe. 20 # multithread-safe.
46 case "$host_os" in 21 case "$host_os" in
@@ -50,11 +25,9 @@ AC_DEFUN([gl_FUNC_NL_LANGINFO],
50 AC_DEFINE_UNQUOTED([NL_LANGINFO_MTSAFE], [$NL_LANGINFO_MTSAFE], 25 AC_DEFINE_UNQUOTED([NL_LANGINFO_MTSAFE], [$NL_LANGINFO_MTSAFE],
51 [Define to 1 if nl_langinfo is multithread-safe.]) 26 [Define to 1 if nl_langinfo is multithread-safe.])
52 if test $HAVE_LANGINFO_CODESET = 1 \ 27 if test $HAVE_LANGINFO_CODESET = 1 \
53 && test $HAVE_LANGINFO_T_FMT_AMPM = 1 \
54 && test $HAVE_LANGINFO_ALTMON = 1 \ 28 && test $HAVE_LANGINFO_ALTMON = 1 \
55 && test $HAVE_LANGINFO_ABALTMON = 1 \ 29 && test $HAVE_LANGINFO_ABALTMON = 1 \
56 && test $HAVE_LANGINFO_ERA = 1 \ 30 && test $HAVE_LANGINFO_ERA = 1 \
57 && test $FUNC_NL_LANGINFO_YESEXPR_WORKS = 1 \
58 && test $NL_LANGINFO_MTSAFE = 1; then 31 && test $NL_LANGINFO_MTSAFE = 1; then
59 : 32 :
60 else 33 else