annotate m4/vasnprintf.m4 @ 445:7899511b2102 3.0

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