diff options
author | Thomas Guyot-Sionnest <dermoth@aei.ca> | 2009-01-15 04:22:57 -0500 |
---|---|---|
committer | Thomas Guyot-Sionnest <dermoth@aei.ca> | 2009-01-15 05:19:08 -0500 |
commit | 71cdb52799220f8d9052643baf1d3e9836a9c755 (patch) | |
tree | 27aee97a35d9ab51f0d8f64a46690bd41a5f8c1b /gl/m4/vasnprintf.m4 | |
parent | f7afa46586645e50498d8b2d0c67884f014dc3a4 (diff) | |
download | monitoring-plugins-71cdb52799220f8d9052643baf1d3e9836a9c755.tar.gz |
Sync with gnulib
Diffstat (limited to 'gl/m4/vasnprintf.m4')
-rw-r--r-- | gl/m4/vasnprintf.m4 | 37 |
1 files changed, 18 insertions, 19 deletions
diff --git a/gl/m4/vasnprintf.m4 b/gl/m4/vasnprintf.m4 index c4d3f4fa..9e839d2b 100644 --- a/gl/m4/vasnprintf.m4 +++ b/gl/m4/vasnprintf.m4 | |||
@@ -1,12 +1,11 @@ | |||
1 | # vasnprintf.m4 serial 24 | 1 | # vasnprintf.m4 serial 26 |
2 | dnl Copyright (C) 2002-2004, 2006-2008 Free Software Foundation, Inc. | 2 | dnl Copyright (C) 2002-2004, 2006-2009 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. |
6 | 6 | ||
7 | AC_DEFUN([gl_FUNC_VASNPRINTF], | 7 | AC_DEFUN([gl_FUNC_VASNPRINTF], |
8 | [ | 8 | [ |
9 | AC_REQUIRE([gl_EOVERFLOW]) | ||
10 | AC_CHECK_FUNCS_ONCE([vasnprintf]) | 9 | AC_CHECK_FUNCS_ONCE([vasnprintf]) |
11 | if test $ac_cv_func_vasnprintf = no; then | 10 | if test $ac_cv_func_vasnprintf = no; then |
12 | gl_REPLACE_VASNPRINTF | 11 | gl_REPLACE_VASNPRINTF |
@@ -21,7 +20,7 @@ AC_DEFUN([gl_REPLACE_VASNPRINTF], | |||
21 | AC_LIBOBJ([printf-parse]) | 20 | AC_LIBOBJ([printf-parse]) |
22 | AC_LIBOBJ([asnprintf]) | 21 | AC_LIBOBJ([asnprintf]) |
23 | if test $ac_cv_func_vasnprintf = yes; then | 22 | if test $ac_cv_func_vasnprintf = yes; then |
24 | AC_DEFINE([REPLACE_VASNPRINTF], 1, | 23 | AC_DEFINE([REPLACE_VASNPRINTF], [1], |
25 | [Define if vasnprintf exists but is overridden by gnulib.]) | 24 | [Define if vasnprintf exists but is overridden by gnulib.]) |
26 | fi | 25 | fi |
27 | gl_PREREQ_PRINTF_ARGS | 26 | gl_PREREQ_PRINTF_ARGS |
@@ -59,7 +58,7 @@ AC_DEFUN([gl_PREREQ_VASNPRINTF], | |||
59 | AC_REQUIRE([AC_TYPE_LONG_LONG_INT]) | 58 | AC_REQUIRE([AC_TYPE_LONG_LONG_INT]) |
60 | AC_REQUIRE([gt_TYPE_WCHAR_T]) | 59 | AC_REQUIRE([gt_TYPE_WCHAR_T]) |
61 | AC_REQUIRE([gt_TYPE_WINT_T]) | 60 | AC_REQUIRE([gt_TYPE_WINT_T]) |
62 | AC_CHECK_FUNCS(snprintf wcslen) | 61 | AC_CHECK_FUNCS([snprintf wcslen]) |
63 | dnl Use the _snprintf function only if it is declared (because on NetBSD it | 62 | dnl Use the _snprintf function only if it is declared (because on NetBSD it |
64 | dnl is defined as a weak alias of snprintf; we prefer to use the latter). | 63 | dnl is defined as a weak alias of snprintf; we prefer to use the latter). |
65 | AC_CHECK_DECLS([_snprintf], , , [#include <stdio.h>]) | 64 | AC_CHECK_DECLS([_snprintf], , , [#include <stdio.h>]) |
@@ -74,7 +73,7 @@ AC_DEFUN([gl_PREREQ_VASNPRINTF_LONG_DOUBLE], | |||
74 | *yes) | 73 | *yes) |
75 | ;; | 74 | ;; |
76 | *) | 75 | *) |
77 | AC_DEFINE([NEED_PRINTF_LONG_DOUBLE], 1, | 76 | AC_DEFINE([NEED_PRINTF_LONG_DOUBLE], [1], |
78 | [Define if the vasnprintf implementation needs special code for | 77 | [Define if the vasnprintf implementation needs special code for |
79 | 'long double' arguments.]) | 78 | 'long double' arguments.]) |
80 | ;; | 79 | ;; |
@@ -90,7 +89,7 @@ AC_DEFUN([gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE], | |||
90 | *yes) | 89 | *yes) |
91 | ;; | 90 | ;; |
92 | *) | 91 | *) |
93 | AC_DEFINE([NEED_PRINTF_INFINITE_DOUBLE], 1, | 92 | AC_DEFINE([NEED_PRINTF_INFINITE_DOUBLE], [1], |
94 | [Define if the vasnprintf implementation needs special code for | 93 | [Define if the vasnprintf implementation needs special code for |
95 | infinite 'double' arguments.]) | 94 | infinite 'double' arguments.]) |
96 | ;; | 95 | ;; |
@@ -111,7 +110,7 @@ AC_DEFUN([gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE], | |||
111 | *yes) | 110 | *yes) |
112 | ;; | 111 | ;; |
113 | *) | 112 | *) |
114 | AC_DEFINE([NEED_PRINTF_INFINITE_LONG_DOUBLE], 1, | 113 | AC_DEFINE([NEED_PRINTF_INFINITE_LONG_DOUBLE], [1], |
115 | [Define if the vasnprintf implementation needs special code for | 114 | [Define if the vasnprintf implementation needs special code for |
116 | infinite 'long double' arguments.]) | 115 | infinite 'long double' arguments.]) |
117 | ;; | 116 | ;; |
@@ -128,7 +127,7 @@ AC_DEFUN([gl_PREREQ_VASNPRINTF_DIRECTIVE_A], | |||
128 | *yes) | 127 | *yes) |
129 | ;; | 128 | ;; |
130 | *) | 129 | *) |
131 | AC_DEFINE([NEED_PRINTF_DIRECTIVE_A], 1, | 130 | AC_DEFINE([NEED_PRINTF_DIRECTIVE_A], [1], |
132 | [Define if the vasnprintf implementation needs special code for | 131 | [Define if the vasnprintf implementation needs special code for |
133 | the 'a' and 'A' directives.]) | 132 | the 'a' and 'A' directives.]) |
134 | AC_CHECK_FUNCS([nl_langinfo]) | 133 | AC_CHECK_FUNCS([nl_langinfo]) |
@@ -144,7 +143,7 @@ AC_DEFUN([gl_PREREQ_VASNPRINTF_DIRECTIVE_F], | |||
144 | *yes) | 143 | *yes) |
145 | ;; | 144 | ;; |
146 | *) | 145 | *) |
147 | AC_DEFINE([NEED_PRINTF_DIRECTIVE_F], 1, | 146 | AC_DEFINE([NEED_PRINTF_DIRECTIVE_F], [1], |
148 | [Define if the vasnprintf implementation needs special code for | 147 | [Define if the vasnprintf implementation needs special code for |
149 | the 'F' directive.]) | 148 | the 'F' directive.]) |
150 | ;; | 149 | ;; |
@@ -159,7 +158,7 @@ AC_DEFUN([gl_PREREQ_VASNPRINTF_FLAG_GROUPING], | |||
159 | *yes) | 158 | *yes) |
160 | ;; | 159 | ;; |
161 | *) | 160 | *) |
162 | AC_DEFINE([NEED_PRINTF_FLAG_GROUPING], 1, | 161 | AC_DEFINE([NEED_PRINTF_FLAG_GROUPING], [1], |
163 | [Define if the vasnprintf implementation needs special code for the | 162 | [Define if the vasnprintf implementation needs special code for the |
164 | ' flag.]) | 163 | ' flag.]) |
165 | ;; | 164 | ;; |
@@ -174,7 +173,7 @@ AC_DEFUN([gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST], | |||
174 | *yes) | 173 | *yes) |
175 | ;; | 174 | ;; |
176 | *) | 175 | *) |
177 | AC_DEFINE([NEED_PRINTF_FLAG_LEFTADJUST], 1, | 176 | AC_DEFINE([NEED_PRINTF_FLAG_LEFTADJUST], [1], |
178 | [Define if the vasnprintf implementation needs special code for the | 177 | [Define if the vasnprintf implementation needs special code for the |
179 | '-' flag.]) | 178 | '-' flag.]) |
180 | ;; | 179 | ;; |
@@ -189,7 +188,7 @@ AC_DEFUN([gl_PREREQ_VASNPRINTF_FLAG_ZERO], | |||
189 | *yes) | 188 | *yes) |
190 | ;; | 189 | ;; |
191 | *) | 190 | *) |
192 | AC_DEFINE([NEED_PRINTF_FLAG_ZERO], 1, | 191 | AC_DEFINE([NEED_PRINTF_FLAG_ZERO], [1], |
193 | [Define if the vasnprintf implementation needs special code for the | 192 | [Define if the vasnprintf implementation needs special code for the |
194 | 0 flag.]) | 193 | 0 flag.]) |
195 | ;; | 194 | ;; |
@@ -204,13 +203,13 @@ AC_DEFUN([gl_PREREQ_VASNPRINTF_PRECISION], | |||
204 | *yes) | 203 | *yes) |
205 | ;; | 204 | ;; |
206 | *) | 205 | *) |
207 | AC_DEFINE([NEED_PRINTF_UNBOUNDED_PRECISION], 1, | 206 | AC_DEFINE([NEED_PRINTF_UNBOUNDED_PRECISION], [1], |
208 | [Define if the vasnprintf implementation needs special code for | 207 | [Define if the vasnprintf implementation needs special code for |
209 | supporting large precisions without arbitrary bounds.]) | 208 | supporting large precisions without arbitrary bounds.]) |
210 | AC_DEFINE([NEED_PRINTF_DOUBLE], 1, | 209 | AC_DEFINE([NEED_PRINTF_DOUBLE], [1], |
211 | [Define if the vasnprintf implementation needs special code for | 210 | [Define if the vasnprintf implementation needs special code for |
212 | 'double' arguments.]) | 211 | 'double' arguments.]) |
213 | AC_DEFINE([NEED_PRINTF_LONG_DOUBLE], 1, | 212 | AC_DEFINE([NEED_PRINTF_LONG_DOUBLE], [1], |
214 | [Define if the vasnprintf implementation needs special code for | 213 | [Define if the vasnprintf implementation needs special code for |
215 | 'long double' arguments.]) | 214 | 'long double' arguments.]) |
216 | ;; | 215 | ;; |
@@ -226,13 +225,13 @@ AC_DEFUN([gl_PREREQ_VASNPRINTF_ENOMEM], | |||
226 | *yes) | 225 | *yes) |
227 | ;; | 226 | ;; |
228 | *) | 227 | *) |
229 | AC_DEFINE([NEED_PRINTF_ENOMEM], 1, | 228 | AC_DEFINE([NEED_PRINTF_ENOMEM], [1], |
230 | [Define if the vasnprintf implementation needs special code for | 229 | [Define if the vasnprintf implementation needs special code for |
231 | surviving out-of-memory conditions.]) | 230 | surviving out-of-memory conditions.]) |
232 | AC_DEFINE([NEED_PRINTF_DOUBLE], 1, | 231 | AC_DEFINE([NEED_PRINTF_DOUBLE], [1], |
233 | [Define if the vasnprintf implementation needs special code for | 232 | [Define if the vasnprintf implementation needs special code for |
234 | 'double' arguments.]) | 233 | 'double' arguments.]) |
235 | AC_DEFINE([NEED_PRINTF_LONG_DOUBLE], 1, | 234 | AC_DEFINE([NEED_PRINTF_LONG_DOUBLE], [1], |
236 | [Define if the vasnprintf implementation needs special code for | 235 | [Define if the vasnprintf implementation needs special code for |
237 | 'long double' arguments.]) | 236 | 'long double' arguments.]) |
238 | ;; | 237 | ;; |