diff options
Diffstat (limited to 'gl/m4/nl_langinfo.m4')
| -rw-r--r-- | gl/m4/nl_langinfo.m4 | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/gl/m4/nl_langinfo.m4 b/gl/m4/nl_langinfo.m4 index f38f11bb..9b1e0f32 100644 --- a/gl/m4/nl_langinfo.m4 +++ b/gl/m4/nl_langinfo.m4 | |||
| @@ -1,9 +1,10 @@ | |||
| 1 | # nl_langinfo.m4 | 1 | # nl_langinfo.m4 |
| 2 | # serial 11 | 2 | # serial 12.1 |
| 3 | dnl Copyright (C) 2009-2024 Free Software Foundation, Inc. | 3 | dnl Copyright (C) 2009-2025 Free Software Foundation, Inc. |
| 4 | dnl This file is free software; the Free Software Foundation | 4 | dnl This file is free software; the Free Software Foundation |
| 5 | dnl gives unlimited permission to copy and/or distribute it, | 5 | dnl gives unlimited permission to copy and/or distribute it, |
| 6 | dnl with or without modifications, as long as this notice is preserved. | 6 | dnl with or without modifications, as long as this notice is preserved. |
| 7 | dnl This file is offered as-is, without any warranty. | ||
| 7 | 8 | ||
| 8 | AC_DEFUN([gl_FUNC_NL_LANGINFO], | 9 | AC_DEFUN([gl_FUNC_NL_LANGINFO], |
| 9 | [ | 10 | [ |
| @@ -40,16 +41,18 @@ AC_DEFUN([gl_FUNC_NL_LANGINFO], | |||
| 40 | AC_DEFINE_UNQUOTED([FUNC_NL_LANGINFO_YESEXPR_WORKS], | 41 | AC_DEFINE_UNQUOTED([FUNC_NL_LANGINFO_YESEXPR_WORKS], |
| 41 | [$FUNC_NL_LANGINFO_YESEXPR_WORKS], | 42 | [$FUNC_NL_LANGINFO_YESEXPR_WORKS], |
| 42 | [Define to 1 if nl_langinfo (YESEXPR) returns a non-empty string.]) | 43 | [Define to 1 if nl_langinfo (YESEXPR) returns a non-empty string.]) |
| 43 | # On Solaris 10 and Solaris 11.3, nl_langinfo is not multithread-safe. | 44 | # On macOS 26, Solaris 10, and Solaris 11.3, nl_langinfo is not |
| 45 | # multithread-safe. | ||
| 44 | case "$host_os" in | 46 | case "$host_os" in |
| 45 | solaris*) NL_LANGINFO_MTSAFE=0 ;; | 47 | darwin* | solaris*) NL_LANGINFO_MTSAFE=0 ;; |
| 46 | *) NL_LANGINFO_MTSAFE=1 ;; | 48 | *) NL_LANGINFO_MTSAFE=1 ;; |
| 47 | esac | 49 | esac |
| 48 | AC_DEFINE_UNQUOTED([NL_LANGINFO_MTSAFE], [$NL_LANGINFO_MTSAFE], | 50 | AC_DEFINE_UNQUOTED([NL_LANGINFO_MTSAFE], [$NL_LANGINFO_MTSAFE], |
| 49 | [Define to 1 if nl_langinfo is multithread-safe.]) | 51 | [Define to 1 if nl_langinfo is multithread-safe.]) |
| 50 | if test $HAVE_LANGINFO_CODESET = 1 \ | 52 | if test $HAVE_LANGINFO_CODESET = 1 \ |
| 51 | && test $HAVE_LANGINFO_T_FMT_AMPM = 1 \ | 53 | && test $HAVE_LANGINFO_T_FMT_AMPM = 1 \ |
| 52 | && test $HAVE_LANGINFO_ALTMON = 1 \ | 54 | && test $HAVE_LANGINFO_ALTMON = 1 \ |
| 55 | && test $HAVE_LANGINFO_ABALTMON = 1 \ | ||
| 53 | && test $HAVE_LANGINFO_ERA = 1 \ | 56 | && test $HAVE_LANGINFO_ERA = 1 \ |
| 54 | && test $FUNC_NL_LANGINFO_YESEXPR_WORKS = 1 \ | 57 | && test $FUNC_NL_LANGINFO_YESEXPR_WORKS = 1 \ |
| 55 | && test $NL_LANGINFO_MTSAFE = 1; then | 58 | && test $NL_LANGINFO_MTSAFE = 1; then |
