annotate m4/vasnprintf.m4 @ 423:079d43b6967b 3.0-beta2 3.0-beta2

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