diff options
author | Kristian Schuster <116557017+KriSchu@users.noreply.github.com> | 2023-02-19 22:49:18 (GMT) |
---|---|---|
committer | Kristian Schuster <116557017+KriSchu@users.noreply.github.com> | 2023-02-19 22:49:18 (GMT) |
commit | a0d42777217296c0a7bdb1e1be8d8f6de1b24dd7 (patch) | |
tree | 8effe94c57b2f9796ba36090b07551baa8f1e1cb /gl/m4/btowc.m4 | |
parent | ca3d59cd6918c9e2739e783b721d4c1122640fd3 (diff) | |
parent | c07206f2ccc2356aa74bc6813a94c2190017d44e (diff) | |
download | monitoring-plugins-a0d42777217296c0a7bdb1e1be8d8f6de1b24dd7.tar.gz |
Merge remote-tracking branch 'origin/master' into feature_check_disk_add_ignore_missing_option
Diffstat (limited to 'gl/m4/btowc.m4')
-rw-r--r-- | gl/m4/btowc.m4 | 33 |
1 files changed, 11 insertions, 22 deletions
diff --git a/gl/m4/btowc.m4 b/gl/m4/btowc.m4 index 978a06e..77218a7 100644 --- a/gl/m4/btowc.m4 +++ b/gl/m4/btowc.m4 | |||
@@ -1,5 +1,5 @@ | |||
1 | # btowc.m4 serial 10 | 1 | # btowc.m4 serial 12 |
2 | dnl Copyright (C) 2008-2013 Free Software Foundation, Inc. | 2 | dnl Copyright (C) 2008-2023 Free Software Foundation, Inc. |
3 | dnl This file is free software; the Free Software Foundation | 3 | dnl This file is free software; the Free Software Foundation |
4 | dnl gives unlimited permission to copy and/or distribute it, | 4 | dnl gives unlimited permission to copy and/or distribute it, |
5 | dnl with or without modifications, as long as this notice is preserved. | 5 | dnl with or without modifications, as long as this notice is preserved. |
@@ -10,7 +10,7 @@ AC_DEFUN([gl_FUNC_BTOWC], | |||
10 | 10 | ||
11 | dnl Check whether <wchar.h> is usable at all, first. Otherwise the test | 11 | dnl Check whether <wchar.h> is usable at all, first. Otherwise the test |
12 | dnl program below may lead to an endless loop. See | 12 | dnl program below may lead to an endless loop. See |
13 | dnl <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42440>. | 13 | dnl <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=42440>. |
14 | AC_REQUIRE([gl_WCHAR_H_INLINE_OK]) | 14 | AC_REQUIRE([gl_WCHAR_H_INLINE_OK]) |
15 | 15 | ||
16 | AC_CHECK_FUNCS_ONCE([btowc]) | 16 | AC_CHECK_FUNCS_ONCE([btowc]) |
@@ -28,14 +28,6 @@ AC_DEFUN([gl_FUNC_BTOWC], | |||
28 | [ | 28 | [ |
29 | AC_RUN_IFELSE( | 29 | AC_RUN_IFELSE( |
30 | [AC_LANG_SOURCE([[ | 30 | [AC_LANG_SOURCE([[ |
31 | #include <string.h> | ||
32 | /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before | ||
33 | <wchar.h>. | ||
34 | BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be | ||
35 | included before <wchar.h>. */ | ||
36 | #include <stddef.h> | ||
37 | #include <stdio.h> | ||
38 | #include <time.h> | ||
39 | #include <wchar.h> | 31 | #include <wchar.h> |
40 | int main () | 32 | int main () |
41 | { | 33 | { |
@@ -50,6 +42,8 @@ changequote(,)dnl | |||
50 | case "$host_os" in | 42 | case "$host_os" in |
51 | # Guess no on Cygwin. | 43 | # Guess no on Cygwin. |
52 | cygwin*) gl_cv_func_btowc_nul="guessing no" ;; | 44 | cygwin*) gl_cv_func_btowc_nul="guessing no" ;; |
45 | # Guess yes on native Windows. | ||
46 | mingw*) gl_cv_func_btowc_nul="guessing yes" ;; | ||
53 | # Guess yes otherwise. | 47 | # Guess yes otherwise. |
54 | *) gl_cv_func_btowc_nul="guessing yes" ;; | 48 | *) gl_cv_func_btowc_nul="guessing yes" ;; |
55 | esac | 49 | esac |
@@ -65,24 +59,19 @@ changequote([,])dnl | |||
65 | dnl is present. | 59 | dnl is present. |
66 | changequote(,)dnl | 60 | changequote(,)dnl |
67 | case "$host_os" in | 61 | case "$host_os" in |
68 | # Guess no on IRIX. | 62 | # Guess no on IRIX. |
69 | irix*) gl_cv_func_btowc_eof="guessing no" ;; | 63 | irix*) gl_cv_func_btowc_eof="guessing no" ;; |
70 | # Guess yes otherwise. | 64 | # Guess yes on native Windows. |
71 | *) gl_cv_func_btowc_eof="guessing yes" ;; | 65 | mingw*) gl_cv_func_btowc_eof="guessing yes" ;; |
66 | # Guess yes otherwise. | ||
67 | *) gl_cv_func_btowc_eof="guessing yes" ;; | ||
72 | esac | 68 | esac |
73 | changequote([,])dnl | 69 | changequote([,])dnl |
74 | if test $LOCALE_FR != none; then | 70 | if test $LOCALE_FR != none; then |
75 | AC_RUN_IFELSE( | 71 | AC_RUN_IFELSE( |
76 | [AC_LANG_SOURCE([[ | 72 | [AC_LANG_SOURCE([[ |
77 | #include <locale.h> | 73 | #include <locale.h> |
78 | #include <string.h> | ||
79 | /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before | ||
80 | <wchar.h>. | ||
81 | BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be | ||
82 | included before <wchar.h>. */ | ||
83 | #include <stddef.h> | ||
84 | #include <stdio.h> | 74 | #include <stdio.h> |
85 | #include <time.h> | ||
86 | #include <wchar.h> | 75 | #include <wchar.h> |
87 | int main () | 76 | int main () |
88 | { | 77 | { |