annotate m4/vasnprintf.m4 @ 285:9010796c6253 2.3 2.3.1

Generated manual for distribution
author lost
date Fri, 24 Apr 2009 22:36:09 +0000
parents 2cb097e760a5
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
283
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
1 # vasnprintf.m4 serial 25
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
2 dnl Copyright (C) 2002-2004, 2006-2008 Free Software Foundation, Inc.
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
3 dnl This file is free software; the Free Software Foundation
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
4 dnl gives unlimited permission to copy and/or distribute it,
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
5 dnl with or without modifications, as long as this notice is preserved.
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
6
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
7 AC_DEFUN([gl_FUNC_VASNPRINTF],
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
8 [
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
9 AC_CHECK_FUNCS_ONCE([vasnprintf])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
10 if test $ac_cv_func_vasnprintf = no; then
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
11 gl_REPLACE_VASNPRINTF
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
12 fi
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
13 ])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
14
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
15 AC_DEFUN([gl_REPLACE_VASNPRINTF],
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
16 [
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
17 AC_CHECK_FUNCS_ONCE([vasnprintf])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
18 AC_LIBOBJ([vasnprintf])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
19 AC_LIBOBJ([printf-args])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
20 AC_LIBOBJ([printf-parse])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
21 AC_LIBOBJ([asnprintf])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
22 if test $ac_cv_func_vasnprintf = yes; then
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
23 AC_DEFINE([REPLACE_VASNPRINTF], 1,
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
24 [Define if vasnprintf exists but is overridden by gnulib.])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
25 fi
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
26 gl_PREREQ_PRINTF_ARGS
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
27 gl_PREREQ_PRINTF_PARSE
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
28 gl_PREREQ_VASNPRINTF
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
29 gl_PREREQ_ASNPRINTF
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
30 ])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
31
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
32 # Prequisites of lib/printf-args.h, lib/printf-args.c.
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
33 AC_DEFUN([gl_PREREQ_PRINTF_ARGS],
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
34 [
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
35 AC_REQUIRE([AC_TYPE_LONG_LONG_INT])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
36 AC_REQUIRE([gt_TYPE_WCHAR_T])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
37 AC_REQUIRE([gt_TYPE_WINT_T])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
38 ])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
39
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
40 # Prequisites of lib/printf-parse.h, lib/printf-parse.c.
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
41 AC_DEFUN([gl_PREREQ_PRINTF_PARSE],
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
42 [
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
43 AC_REQUIRE([AC_TYPE_LONG_LONG_INT])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
44 AC_REQUIRE([gt_TYPE_WCHAR_T])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
45 AC_REQUIRE([gt_TYPE_WINT_T])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
46 AC_REQUIRE([AC_TYPE_SIZE_T])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
47 AC_CHECK_TYPE([ptrdiff_t], ,
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
48 [AC_DEFINE([ptrdiff_t], [long],
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
49 [Define as the type of the result of subtracting two pointers, if the system doesn't define it.])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
50 ])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
51 AC_REQUIRE([gt_AC_TYPE_INTMAX_T])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
52 ])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
53
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
54 # Prerequisites of lib/vasnprintf.c.
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
55 AC_DEFUN([gl_PREREQ_VASNPRINTF],
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
56 [
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
57 AC_REQUIRE([AC_FUNC_ALLOCA])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
58 AC_REQUIRE([AC_TYPE_LONG_LONG_INT])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
59 AC_REQUIRE([gt_TYPE_WCHAR_T])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
60 AC_REQUIRE([gt_TYPE_WINT_T])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
61 AC_CHECK_FUNCS(snprintf wcslen)
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
62 dnl Use the _snprintf function only if it is declared (because on NetBSD it
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
63 dnl is defined as a weak alias of snprintf; we prefer to use the latter).
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
64 AC_CHECK_DECLS([_snprintf], , , [#include <stdio.h>])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
65 ])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
66
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
67 # Extra prerequisites of lib/vasnprintf.c for supporting 'long double'
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
68 # arguments.
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
69 AC_DEFUN([gl_PREREQ_VASNPRINTF_LONG_DOUBLE],
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
70 [
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
71 AC_REQUIRE([gl_PRINTF_LONG_DOUBLE])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
72 case "$gl_cv_func_printf_long_double" in
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
73 *yes)
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
74 ;;
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
75 *)
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
76 AC_DEFINE([NEED_PRINTF_LONG_DOUBLE], 1,
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
77 [Define if the vasnprintf implementation needs special code for
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
78 'long double' arguments.])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
79 ;;
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
80 esac
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
81 ])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
82
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
83 # Extra prerequisites of lib/vasnprintf.c for supporting infinite 'double'
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
84 # arguments.
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
85 AC_DEFUN([gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE],
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
86 [
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
87 AC_REQUIRE([gl_PRINTF_INFINITE])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
88 case "$gl_cv_func_printf_infinite" in
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
89 *yes)
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
90 ;;
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
91 *)
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
92 AC_DEFINE([NEED_PRINTF_INFINITE_DOUBLE], 1,
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
93 [Define if the vasnprintf implementation needs special code for
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
94 infinite 'double' arguments.])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
95 ;;
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
96 esac
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
97 ])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
98
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
99 # Extra prerequisites of lib/vasnprintf.c for supporting infinite 'long double'
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
100 # arguments.
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
101 AC_DEFUN([gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE],
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
102 [
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
103 AC_REQUIRE([gl_PRINTF_INFINITE_LONG_DOUBLE])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
104 dnl There is no need to set NEED_PRINTF_INFINITE_LONG_DOUBLE if
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
105 dnl NEED_PRINTF_LONG_DOUBLE is already set.
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
106 AC_REQUIRE([gl_PREREQ_VASNPRINTF_LONG_DOUBLE])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
107 case "$gl_cv_func_printf_long_double" in
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
108 *yes)
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
109 case "$gl_cv_func_printf_infinite_long_double" in
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
110 *yes)
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
111 ;;
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
112 *)
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
113 AC_DEFINE([NEED_PRINTF_INFINITE_LONG_DOUBLE], 1,
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
114 [Define if the vasnprintf implementation needs special code for
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
115 infinite 'long double' arguments.])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
116 ;;
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
117 esac
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
118 ;;
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
119 esac
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
120 ])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
121
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
122 # Extra prerequisites of lib/vasnprintf.c for supporting the 'a' directive.
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
123 AC_DEFUN([gl_PREREQ_VASNPRINTF_DIRECTIVE_A],
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
124 [
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
125 AC_REQUIRE([gl_PRINTF_DIRECTIVE_A])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
126 case "$gl_cv_func_printf_directive_a" in
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
127 *yes)
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
128 ;;
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
129 *)
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
130 AC_DEFINE([NEED_PRINTF_DIRECTIVE_A], 1,
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
131 [Define if the vasnprintf implementation needs special code for
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
132 the 'a' and 'A' directives.])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
133 AC_CHECK_FUNCS([nl_langinfo])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
134 ;;
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
135 esac
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
136 ])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
137
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
138 # Extra prerequisites of lib/vasnprintf.c for supporting the 'F' directive.
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
139 AC_DEFUN([gl_PREREQ_VASNPRINTF_DIRECTIVE_F],
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
140 [
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
141 AC_REQUIRE([gl_PRINTF_DIRECTIVE_F])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
142 case "$gl_cv_func_printf_directive_f" in
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
143 *yes)
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
144 ;;
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
145 *)
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
146 AC_DEFINE([NEED_PRINTF_DIRECTIVE_F], 1,
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
147 [Define if the vasnprintf implementation needs special code for
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
148 the 'F' directive.])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
149 ;;
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
150 esac
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
151 ])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
152
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
153 # Extra prerequisites of lib/vasnprintf.c for supporting the ' flag.
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
154 AC_DEFUN([gl_PREREQ_VASNPRINTF_FLAG_GROUPING],
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
155 [
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
156 AC_REQUIRE([gl_PRINTF_FLAG_GROUPING])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
157 case "$gl_cv_func_printf_flag_grouping" in
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
158 *yes)
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
159 ;;
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
160 *)
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
161 AC_DEFINE([NEED_PRINTF_FLAG_GROUPING], 1,
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
162 [Define if the vasnprintf implementation needs special code for the
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
163 ' flag.])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
164 ;;
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
165 esac
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
166 ])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
167
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
168 # Extra prerequisites of lib/vasnprintf.c for supporting the '-' flag.
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
169 AC_DEFUN([gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST],
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
170 [
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
171 AC_REQUIRE([gl_PRINTF_FLAG_LEFTADJUST])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
172 case "$gl_cv_func_printf_flag_leftadjust" in
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
173 *yes)
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
174 ;;
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
175 *)
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
176 AC_DEFINE([NEED_PRINTF_FLAG_LEFTADJUST], 1,
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
177 [Define if the vasnprintf implementation needs special code for the
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
178 '-' flag.])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
179 ;;
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
180 esac
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
181 ])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
182
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
183 # Extra prerequisites of lib/vasnprintf.c for supporting the 0 flag.
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
184 AC_DEFUN([gl_PREREQ_VASNPRINTF_FLAG_ZERO],
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
185 [
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
186 AC_REQUIRE([gl_PRINTF_FLAG_ZERO])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
187 case "$gl_cv_func_printf_flag_zero" in
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
188 *yes)
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
189 ;;
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
190 *)
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
191 AC_DEFINE([NEED_PRINTF_FLAG_ZERO], 1,
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
192 [Define if the vasnprintf implementation needs special code for the
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
193 0 flag.])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
194 ;;
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
195 esac
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
196 ])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
197
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
198 # Extra prerequisites of lib/vasnprintf.c for supporting large precisions.
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
199 AC_DEFUN([gl_PREREQ_VASNPRINTF_PRECISION],
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
200 [
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
201 AC_REQUIRE([gl_PRINTF_PRECISION])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
202 case "$gl_cv_func_printf_precision" in
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
203 *yes)
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
204 ;;
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
205 *)
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
206 AC_DEFINE([NEED_PRINTF_UNBOUNDED_PRECISION], 1,
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
207 [Define if the vasnprintf implementation needs special code for
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
208 supporting large precisions without arbitrary bounds.])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
209 AC_DEFINE([NEED_PRINTF_DOUBLE], 1,
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
210 [Define if the vasnprintf implementation needs special code for
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
211 'double' arguments.])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
212 AC_DEFINE([NEED_PRINTF_LONG_DOUBLE], 1,
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
213 [Define if the vasnprintf implementation needs special code for
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
214 'long double' arguments.])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
215 ;;
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
216 esac
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
217 ])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
218
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
219 # Extra prerequisites of lib/vasnprintf.c for surviving out-of-memory
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
220 # conditions.
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
221 AC_DEFUN([gl_PREREQ_VASNPRINTF_ENOMEM],
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
222 [
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
223 AC_REQUIRE([gl_PRINTF_ENOMEM])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
224 case "$gl_cv_func_printf_enomem" in
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
225 *yes)
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
226 ;;
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
227 *)
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
228 AC_DEFINE([NEED_PRINTF_ENOMEM], 1,
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
229 [Define if the vasnprintf implementation needs special code for
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
230 surviving out-of-memory conditions.])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
231 AC_DEFINE([NEED_PRINTF_DOUBLE], 1,
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
232 [Define if the vasnprintf implementation needs special code for
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
233 'double' arguments.])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
234 AC_DEFINE([NEED_PRINTF_LONG_DOUBLE], 1,
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
235 [Define if the vasnprintf implementation needs special code for
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
236 'long double' arguments.])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
237 ;;
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
238 esac
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
239 ])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
240
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
241 # Prerequisites of lib/vasnprintf.c including all extras for POSIX compliance.
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
242 AC_DEFUN([gl_PREREQ_VASNPRINTF_WITH_EXTRAS],
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
243 [
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
244 AC_REQUIRE([gl_PREREQ_VASNPRINTF])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
245 gl_PREREQ_VASNPRINTF_LONG_DOUBLE
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
246 gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
247 gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
248 gl_PREREQ_VASNPRINTF_DIRECTIVE_A
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
249 gl_PREREQ_VASNPRINTF_DIRECTIVE_F
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
250 gl_PREREQ_VASNPRINTF_FLAG_GROUPING
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
251 gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
252 gl_PREREQ_VASNPRINTF_FLAG_ZERO
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
253 gl_PREREQ_VASNPRINTF_PRECISION
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
254 gl_PREREQ_VASNPRINTF_ENOMEM
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
255 ])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
256
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
257 # Prerequisites of lib/asnprintf.c.
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
258 AC_DEFUN([gl_PREREQ_ASNPRINTF],
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
259 [
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
260 ])