Commit | Line | Data |
---|---|---|
103dc4d4 | 1 | # DO NOT EDIT! GENERATED AUTOMATICALLY! |
61cd9dc9 | 2 | # Copyright (C) 2002-2010 Free Software Foundation, Inc. |
103dc4d4 LC |
3 | # |
4 | # This file is free software, distributed under the terms of the GNU | |
5 | # General Public License. As a special exception to the GNU General | |
6 | # Public License, this file may be distributed as part of a program | |
7 | # that contains a configuration script generated by Autoconf, under | |
8 | # the same distribution terms as the rest of that program. | |
9 | # | |
10 | # Generated by gnulib-tool. | |
11 | # | |
12 | # This file represents the compiled summary of the specification in | |
13 | # gnulib-cache.m4. It lists the computed macro invocations that need | |
14 | # to be invoked from configure.ac. | |
2e65b52f LC |
15 | # In projects that use version control, this file can be treated like |
16 | # other built files. | |
103dc4d4 LC |
17 | |
18 | ||
25361e4b | 19 | # This macro should be invoked from ./configure.ac, in the section |
103dc4d4 LC |
20 | # "Checks for programs", right after AC_PROG_CC, and certainly before |
21 | # any checks for libraries, header files, types and library functions. | |
22 | AC_DEFUN([gl_EARLY], | |
23 | [ | |
24 | m4_pattern_forbid([^gl_[A-Z]])dnl the gnulib macro namespace | |
25 | m4_pattern_allow([^gl_ES$])dnl a valid locale name | |
26 | m4_pattern_allow([^gl_LIBOBJS$])dnl a variable | |
27 | m4_pattern_allow([^gl_LTLIBOBJS$])dnl a variable | |
28 | AC_REQUIRE([AC_PROG_RANLIB]) | |
24d56127 | 29 | AC_REQUIRE([AM_PROG_CC_C_O]) |
f4c79b3c LC |
30 | # Code from module alignof: |
31 | # Code from module alloca-opt: | |
32 | # Code from module announce-gen: | |
33 | # Code from module arg-nonnull: | |
34 | # Code from module arpa_inet: | |
35 | # Code from module autobuild: | |
ac47b09a | 36 | AB_INIT |
f4c79b3c LC |
37 | # Code from module byteswap: |
38 | # Code from module c++defs: | |
39 | # Code from module c-ctype: | |
40 | # Code from module c-strcase: | |
41 | # Code from module c-strcaseeq: | |
42 | # Code from module canonicalize-lgpl: | |
0f00f2c3 | 43 | # Code from module close-hook: |
f4c79b3c LC |
44 | # Code from module configmake: |
45 | # Code from module duplocale: | |
46 | # Code from module environ: | |
47 | # Code from module errno: | |
48 | # Code from module extensions: | |
103dc4d4 | 49 | AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) |
f4c79b3c LC |
50 | # Code from module float: |
51 | # Code from module flock: | |
52 | # Code from module fpieee: | |
f240aacb | 53 | AC_REQUIRE([gl_FP_IEEE]) |
f4c79b3c LC |
54 | # Code from module full-read: |
55 | # Code from module full-write: | |
56 | # Code from module func: | |
57 | # Code from module gendocs: | |
58 | # Code from module getaddrinfo: | |
59 | # Code from module gettext-h: | |
5ad8e59f | 60 | # Code from module git-version-gen: |
f4c79b3c LC |
61 | # Code from module gitlog-to-changelog: |
62 | # Code from module gnu-web-doc-update: | |
63 | # Code from module gnumakefile: | |
64 | # Code from module gnupload: | |
65 | # Code from module gperf: | |
66 | # Code from module havelib: | |
67 | # Code from module hostent: | |
68 | # Code from module iconv: | |
69 | # Code from module iconv-h: | |
70 | # Code from module iconv_open: | |
71 | # Code from module iconv_open-utf: | |
72 | # Code from module include_next: | |
73 | # Code from module inet_ntop: | |
74 | # Code from module inet_pton: | |
75 | # Code from module inline: | |
2e65b52f LC |
76 | # Code from module isinf: |
77 | # Code from module isnan: | |
78 | # Code from module isnand: | |
79 | # Code from module isnanf: | |
80 | # Code from module isnanl: | |
f4c79b3c LC |
81 | # Code from module lib-symbol-versions: |
82 | # Code from module lib-symbol-visibility: | |
83 | # Code from module libunistring: | |
84 | # Code from module localcharset: | |
85 | # Code from module locale: | |
86 | # Code from module lstat: | |
87 | # Code from module maintainer-makefile: | |
88 | # Code from module malloc-posix: | |
89 | # Code from module malloca: | |
2e65b52f | 90 | # Code from module math: |
f4c79b3c LC |
91 | # Code from module mbrlen: |
92 | # Code from module mbrtowc: | |
93 | # Code from module mbsinit: | |
94 | # Code from module memchr: | |
95 | # Code from module multiarch: | |
96 | # Code from module netdb: | |
97 | # Code from module netinet_in: | |
0f00f2c3 | 98 | # Code from module nproc: |
f4c79b3c LC |
99 | # Code from module pathmax: |
100 | # Code from module putenv: | |
101 | # Code from module readlink: | |
102 | # Code from module safe-read: | |
103 | # Code from module safe-write: | |
104 | # Code from module servent: | |
105 | # Code from module size_max: | |
106 | # Code from module snprintf: | |
0f00f2c3 LC |
107 | # Code from module socketlib: |
108 | # Code from module sockets: | |
f4c79b3c LC |
109 | # Code from module socklen: |
110 | # Code from module ssize_t: | |
111 | # Code from module stat: | |
9157d901 | 112 | # Code from module stat-time: |
f4c79b3c | 113 | # Code from module stdarg: |
4f02b98d LC |
114 | dnl Some compilers (e.g., AIX 5.3 cc) need to be in c99 mode |
115 | dnl for the builtin va_copy to work. With Autoconf 2.60 or later, | |
116 | dnl AC_PROG_CC_STDC arranges for this. With older Autoconf AC_PROG_CC_STDC | |
117 | dnl shouldn't hurt, though installers are on their own to set c99 mode. | |
118 | AC_REQUIRE([AC_PROG_CC_STDC]) | |
f4c79b3c LC |
119 | # Code from module stdbool: |
120 | # Code from module stddef: | |
121 | # Code from module stdint: | |
122 | # Code from module stdio: | |
123 | # Code from module stdlib: | |
124 | # Code from module strcase: | |
125 | # Code from module streq: | |
126 | # Code from module strftime: | |
127 | # Code from module striconveh: | |
128 | # Code from module string: | |
129 | # Code from module strings: | |
130 | # Code from module sys_file: | |
131 | # Code from module sys_socket: | |
132 | # Code from module sys_stat: | |
133 | # Code from module time: | |
134 | # Code from module time_r: | |
135 | # Code from module unistd: | |
136 | # Code from module unistr/base: | |
137 | # Code from module unistr/u8-mbtouc: | |
138 | # Code from module unistr/u8-mbtouc-unsafe: | |
139 | # Code from module unistr/u8-mbtoucr: | |
140 | # Code from module unistr/u8-prev: | |
141 | # Code from module unistr/u8-uctomb: | |
142 | # Code from module unitypes: | |
143 | # Code from module unused-parameter: | |
144 | # Code from module useless-if-before-free: | |
145 | # Code from module vasnprintf: | |
146 | # Code from module vc-list-files: | |
147 | # Code from module verify: | |
148 | # Code from module version-etc: | |
149 | # Code from module version-etc-fsf: | |
150 | # Code from module vsnprintf: | |
151 | # Code from module warn-on-use: | |
152 | # Code from module warnings: | |
153 | # Code from module wchar: | |
154 | # Code from module write: | |
155 | # Code from module xsize: | |
103dc4d4 LC |
156 | ]) |
157 | ||
25361e4b | 158 | # This macro should be invoked from ./configure.ac, in the section |
103dc4d4 LC |
159 | # "Check for header files, types and library functions". |
160 | AC_DEFUN([gl_INIT], | |
161 | [ | |
162 | AM_CONDITIONAL([GL_COND_LIBTOOL], [true]) | |
163 | gl_cond_libtool=true | |
a927b6c1 | 164 | gl_m4_base='m4' |
103dc4d4 LC |
165 | m4_pushdef([AC_LIBOBJ], m4_defn([gl_LIBOBJ])) |
166 | m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gl_REPLACE_FUNCS])) | |
167 | m4_pushdef([AC_LIBSOURCES], m4_defn([gl_LIBSOURCES])) | |
168 | m4_pushdef([gl_LIBSOURCES_LIST], []) | |
169 | m4_pushdef([gl_LIBSOURCES_DIR], []) | |
170 | gl_COMMON | |
171 | gl_source_base='lib' | |
f4c79b3c LC |
172 | # Code from module alignof: |
173 | # Code from module alloca-opt: | |
103dc4d4 | 174 | gl_FUNC_ALLOCA |
f4c79b3c LC |
175 | # Code from module announce-gen: |
176 | # Code from module arg-nonnull: | |
177 | # Code from module arpa_inet: | |
8912421c LC |
178 | gl_HEADER_ARPA_INET |
179 | AC_PROG_MKDIR_P | |
f4c79b3c LC |
180 | # Code from module autobuild: |
181 | # Code from module byteswap: | |
24d56127 | 182 | gl_BYTESWAP |
f4c79b3c LC |
183 | # Code from module c++defs: |
184 | # Code from module c-ctype: | |
185 | # Code from module c-strcase: | |
186 | # Code from module c-strcaseeq: | |
187 | # Code from module canonicalize-lgpl: | |
ffca4c22 AW |
188 | gl_CANONICALIZE_LGPL |
189 | gl_MODULE_INDICATOR([canonicalize-lgpl]) | |
8912421c LC |
190 | gl_STDLIB_MODULE_INDICATOR([canonicalize_file_name]) |
191 | gl_STDLIB_MODULE_INDICATOR([realpath]) | |
0f00f2c3 | 192 | # Code from module close-hook: |
f4c79b3c | 193 | # Code from module configmake: |
ab4d62ad | 194 | gl_CONFIGMAKE_PREP |
f4c79b3c | 195 | # Code from module duplocale: |
c3b16a5d LC |
196 | gl_FUNC_DUPLOCALE |
197 | gl_LOCALE_MODULE_INDICATOR([duplocale]) | |
f4c79b3c | 198 | # Code from module environ: |
b579617b AW |
199 | gl_ENVIRON |
200 | gl_UNISTD_MODULE_INDICATOR([environ]) | |
f4c79b3c | 201 | # Code from module errno: |
c4b681fd | 202 | gl_HEADER_ERRNO_H |
f4c79b3c LC |
203 | # Code from module extensions: |
204 | # Code from module float: | |
c4b681fd | 205 | gl_FLOAT_H |
f4c79b3c | 206 | # Code from module flock: |
f240aacb LC |
207 | gl_FUNC_FLOCK |
208 | gl_HEADER_SYS_FILE_MODULE_INDICATOR([flock]) | |
f4c79b3c LC |
209 | # Code from module fpieee: |
210 | # Code from module full-read: | |
211 | # Code from module full-write: | |
212 | # Code from module func: | |
213 | gl_FUNC | |
214 | # Code from module gendocs: | |
215 | # Code from module getaddrinfo: | |
61cd9dc9 LC |
216 | gl_GETADDRINFO |
217 | gl_NETDB_MODULE_INDICATOR([getaddrinfo]) | |
f4c79b3c | 218 | # Code from module gettext-h: |
4f02b98d LC |
219 | AC_SUBST([LIBINTL]) |
220 | AC_SUBST([LTLIBINTL]) | |
5ad8e59f | 221 | # Code from module git-version-gen: |
f4c79b3c LC |
222 | # Code from module gitlog-to-changelog: |
223 | # Code from module gnu-web-doc-update: | |
224 | # Code from module gnumakefile: | |
c84bdaf6 LC |
225 | # Autoconf 2.61a.99 and earlier don't support linking a file only |
226 | # in VPATH builds. But since GNUmakefile is for maintainer use | |
227 | # only, it does not matter if we skip the link with older autoconf. | |
228 | # Automake 1.10.1 and earlier try to remove GNUmakefile in non-VPATH | |
229 | # builds, so use a shell variable to bypass this. | |
230 | GNUmakefile=GNUmakefile | |
231 | m4_if(m4_version_compare([2.61a.100], | |
232 | m4_defn([m4_PACKAGE_VERSION])), [1], [], | |
233 | [AC_CONFIG_LINKS([$GNUmakefile:$GNUmakefile], [], | |
234 | [GNUmakefile=$GNUmakefile])]) | |
f4c79b3c LC |
235 | # Code from module gnupload: |
236 | # Code from module gperf: | |
237 | # Code from module havelib: | |
238 | # Code from module hostent: | |
61cd9dc9 | 239 | gl_HOSTENT |
f4c79b3c | 240 | # Code from module iconv: |
24d56127 | 241 | AM_ICONV |
ab4d62ad LC |
242 | m4_ifdef([gl_ICONV_MODULE_INDICATOR], |
243 | [gl_ICONV_MODULE_INDICATOR([iconv])]) | |
f4c79b3c | 244 | # Code from module iconv-h: |
24d56127 | 245 | gl_ICONV_H |
f4c79b3c | 246 | # Code from module iconv_open: |
24d56127 | 247 | gl_FUNC_ICONV_OPEN |
f4c79b3c | 248 | # Code from module iconv_open-utf: |
24d56127 | 249 | gl_FUNC_ICONV_OPEN_UTF |
f4c79b3c LC |
250 | # Code from module include_next: |
251 | # Code from module inet_ntop: | |
a927b6c1 | 252 | gl_FUNC_INET_NTOP |
8912421c | 253 | gl_ARPA_INET_MODULE_INDICATOR([inet_ntop]) |
f4c79b3c | 254 | # Code from module inet_pton: |
a927b6c1 | 255 | gl_FUNC_INET_PTON |
8912421c | 256 | gl_ARPA_INET_MODULE_INDICATOR([inet_pton]) |
f4c79b3c | 257 | # Code from module inline: |
d7014610 | 258 | gl_INLINE |
2e65b52f LC |
259 | # Code from module isinf: |
260 | gl_ISINF | |
261 | gl_MATH_MODULE_INDICATOR([isinf]) | |
262 | # Code from module isnan: | |
263 | gl_ISNAN | |
264 | gl_MATH_MODULE_INDICATOR([isnan]) | |
265 | # Code from module isnand: | |
266 | gl_FUNC_ISNAND | |
267 | gl_MATH_MODULE_INDICATOR([isnand]) | |
268 | # Code from module isnanf: | |
269 | gl_FUNC_ISNANF | |
270 | gl_MATH_MODULE_INDICATOR([isnanf]) | |
271 | # Code from module isnanl: | |
272 | gl_FUNC_ISNANL | |
273 | gl_MATH_MODULE_INDICATOR([isnanl]) | |
f4c79b3c | 274 | # Code from module lib-symbol-versions: |
25361e4b | 275 | gl_LD_VERSION_SCRIPT |
f4c79b3c | 276 | # Code from module lib-symbol-visibility: |
d9a9e182 | 277 | gl_VISIBILITY |
f4c79b3c | 278 | # Code from module libunistring: |
24d56127 | 279 | gl_LIBUNISTRING |
f4c79b3c | 280 | # Code from module localcharset: |
4a462e35 NJ |
281 | gl_LOCALCHARSET |
282 | LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(top_builddir)/$gl_source_base\"" | |
283 | AC_SUBST([LOCALCHARSET_TESTS_ENVIRONMENT]) | |
f4c79b3c | 284 | # Code from module locale: |
414e4441 | 285 | gl_LOCALE_H |
f4c79b3c | 286 | # Code from module lstat: |
8912421c LC |
287 | gl_FUNC_LSTAT |
288 | gl_SYS_STAT_MODULE_INDICATOR([lstat]) | |
f4c79b3c | 289 | # Code from module maintainer-makefile: |
61cd9dc9 LC |
290 | AC_CONFIG_COMMANDS_PRE([m4_ifdef([AH_HEADER], |
291 | [AC_SUBST([CONFIG_INCLUDE], m4_defn([AH_HEADER]))])]) | |
f4c79b3c | 292 | # Code from module malloc-posix: |
f240aacb LC |
293 | gl_FUNC_MALLOC_POSIX |
294 | gl_STDLIB_MODULE_INDICATOR([malloc-posix]) | |
f4c79b3c | 295 | # Code from module malloca: |
ffca4c22 | 296 | gl_MALLOCA |
2e65b52f LC |
297 | # Code from module math: |
298 | gl_MATH_H | |
f4c79b3c | 299 | # Code from module mbrlen: |
4a462e35 NJ |
300 | gl_FUNC_MBRLEN |
301 | gl_WCHAR_MODULE_INDICATOR([mbrlen]) | |
f4c79b3c | 302 | # Code from module mbrtowc: |
4a462e35 NJ |
303 | gl_FUNC_MBRTOWC |
304 | gl_WCHAR_MODULE_INDICATOR([mbrtowc]) | |
f4c79b3c | 305 | # Code from module mbsinit: |
4a462e35 NJ |
306 | gl_FUNC_MBSINIT |
307 | gl_WCHAR_MODULE_INDICATOR([mbsinit]) | |
f4c79b3c | 308 | # Code from module memchr: |
c4b681fd LC |
309 | gl_FUNC_MEMCHR |
310 | gl_STRING_MODULE_INDICATOR([memchr]) | |
f4c79b3c | 311 | # Code from module multiarch: |
f240aacb | 312 | gl_MULTIARCH |
f4c79b3c | 313 | # Code from module netdb: |
61cd9dc9 | 314 | gl_HEADER_NETDB |
f4c79b3c | 315 | # Code from module netinet_in: |
8912421c LC |
316 | gl_HEADER_NETINET_IN |
317 | AC_PROG_MKDIR_P | |
0f00f2c3 LC |
318 | # Code from module nproc: |
319 | gl_NPROC | |
f4c79b3c | 320 | # Code from module pathmax: |
ffca4c22 | 321 | gl_PATHMAX |
f4c79b3c | 322 | # Code from module putenv: |
f240aacb LC |
323 | gl_FUNC_PUTENV |
324 | gl_STDLIB_MODULE_INDICATOR([putenv]) | |
f4c79b3c | 325 | # Code from module readlink: |
ffca4c22 AW |
326 | gl_FUNC_READLINK |
327 | gl_UNISTD_MODULE_INDICATOR([readlink]) | |
f4c79b3c | 328 | # Code from module safe-read: |
9b36a80c | 329 | gl_SAFE_READ |
f4c79b3c | 330 | # Code from module safe-write: |
9b36a80c | 331 | gl_SAFE_WRITE |
f4c79b3c | 332 | # Code from module servent: |
61cd9dc9 | 333 | gl_SERVENT |
f4c79b3c | 334 | # Code from module size_max: |
c4b681fd | 335 | gl_SIZE_MAX |
f4c79b3c | 336 | # Code from module snprintf: |
61cd9dc9 LC |
337 | gl_FUNC_SNPRINTF |
338 | gl_STDIO_MODULE_INDICATOR([snprintf]) | |
0f00f2c3 LC |
339 | # Code from module socketlib: |
340 | gl_SOCKETLIB | |
341 | # Code from module sockets: | |
342 | gl_SOCKETS | |
f4c79b3c | 343 | # Code from module socklen: |
8912421c | 344 | gl_TYPE_SOCKLEN_T |
f4c79b3c | 345 | # Code from module ssize_t: |
9b36a80c | 346 | gt_TYPE_SSIZE_T |
f4c79b3c | 347 | # Code from module stat: |
8912421c LC |
348 | gl_FUNC_STAT |
349 | gl_SYS_STAT_MODULE_INDICATOR([stat]) | |
9157d901 LC |
350 | # Code from module stat-time: |
351 | gl_STAT_TIME | |
352 | gl_STAT_BIRTHTIME | |
f4c79b3c | 353 | # Code from module stdarg: |
4f02b98d | 354 | gl_STDARG_H |
f4c79b3c | 355 | # Code from module stdbool: |
e65fc94b | 356 | AM_STDBOOL_H |
f4c79b3c | 357 | # Code from module stddef: |
8912421c | 358 | gl_STDDEF_H |
f4c79b3c | 359 | # Code from module stdint: |
f240aacb | 360 | gl_STDINT_H |
f4c79b3c | 361 | # Code from module stdio: |
c4b681fd | 362 | gl_STDIO_H |
f4c79b3c | 363 | # Code from module stdlib: |
f240aacb | 364 | gl_STDLIB_H |
f4c79b3c | 365 | # Code from module strcase: |
103dc4d4 | 366 | gl_STRCASE |
f4c79b3c LC |
367 | # Code from module streq: |
368 | # Code from module strftime: | |
e65fc94b | 369 | gl_FUNC_GNU_STRFTIME |
f4c79b3c | 370 | # Code from module striconveh: |
24d56127 LC |
371 | if test $gl_cond_libtool = false; then |
372 | gl_ltlibdeps="$gl_ltlibdeps $LTLIBICONV" | |
373 | gl_libdeps="$gl_libdeps $LIBICONV" | |
374 | fi | |
f4c79b3c | 375 | # Code from module string: |
24d56127 | 376 | gl_HEADER_STRING_H |
f4c79b3c | 377 | # Code from module strings: |
103dc4d4 | 378 | gl_HEADER_STRINGS_H |
f4c79b3c | 379 | # Code from module sys_file: |
f240aacb LC |
380 | gl_HEADER_SYS_FILE_H |
381 | AC_PROG_MKDIR_P | |
f4c79b3c | 382 | # Code from module sys_socket: |
8912421c LC |
383 | gl_HEADER_SYS_SOCKET |
384 | AC_PROG_MKDIR_P | |
f4c79b3c | 385 | # Code from module sys_stat: |
8912421c LC |
386 | gl_HEADER_SYS_STAT_H |
387 | AC_PROG_MKDIR_P | |
f4c79b3c | 388 | # Code from module time: |
e65fc94b | 389 | gl_HEADER_TIME_H |
f4c79b3c | 390 | # Code from module time_r: |
e65fc94b | 391 | gl_TIME_R |
f4c79b3c LC |
392 | gl_TIME_MODULE_INDICATOR([time_r]) |
393 | # Code from module unistd: | |
9b36a80c | 394 | gl_UNISTD_H |
f4c79b3c | 395 | # Code from module unistr/base: |
a927b6c1 | 396 | gl_LIBUNISTRING_LIBHEADER([0.9.2], [unistr.h]) |
f4c79b3c | 397 | # Code from module unistr/u8-mbtouc: |
24d56127 | 398 | gl_MODULE_INDICATOR([unistr/u8-mbtouc]) |
0f00f2c3 | 399 | gl_LIBUNISTRING_MODULE([0.9.4], [unistr/u8-mbtouc]) |
f4c79b3c | 400 | # Code from module unistr/u8-mbtouc-unsafe: |
24d56127 | 401 | gl_MODULE_INDICATOR([unistr/u8-mbtouc-unsafe]) |
0f00f2c3 | 402 | gl_LIBUNISTRING_MODULE([0.9.4], [unistr/u8-mbtouc-unsafe]) |
f4c79b3c | 403 | # Code from module unistr/u8-mbtoucr: |
24d56127 | 404 | gl_MODULE_INDICATOR([unistr/u8-mbtoucr]) |
6f32e5c7 | 405 | gl_LIBUNISTRING_MODULE([0.9], [unistr/u8-mbtoucr]) |
f4c79b3c | 406 | # Code from module unistr/u8-prev: |
6f32e5c7 | 407 | gl_LIBUNISTRING_MODULE([0.9], [unistr/u8-prev]) |
f4c79b3c | 408 | # Code from module unistr/u8-uctomb: |
24d56127 | 409 | gl_MODULE_INDICATOR([unistr/u8-uctomb]) |
6f32e5c7 | 410 | gl_LIBUNISTRING_MODULE([0.9], [unistr/u8-uctomb]) |
f4c79b3c | 411 | # Code from module unitypes: |
a927b6c1 | 412 | gl_LIBUNISTRING_LIBHEADER([0.9], [unitypes.h]) |
f4c79b3c LC |
413 | # Code from module unused-parameter: |
414 | # Code from module useless-if-before-free: | |
415 | # Code from module vasnprintf: | |
c4b681fd | 416 | gl_FUNC_VASNPRINTF |
f4c79b3c LC |
417 | # Code from module vc-list-files: |
418 | # Code from module verify: | |
419 | # Code from module version-etc: | |
4f02b98d | 420 | gl_VERSION_ETC |
f4c79b3c LC |
421 | # Code from module version-etc-fsf: |
422 | # Code from module vsnprintf: | |
c4b681fd LC |
423 | gl_FUNC_VSNPRINTF |
424 | gl_STDIO_MODULE_INDICATOR([vsnprintf]) | |
f4c79b3c LC |
425 | # Code from module warn-on-use: |
426 | # Code from module warnings: | |
f29ded4b | 427 | AC_SUBST([WARN_CFLAGS]) |
f4c79b3c | 428 | # Code from module wchar: |
e65fc94b | 429 | gl_WCHAR_H |
f4c79b3c | 430 | # Code from module write: |
9b36a80c LC |
431 | gl_FUNC_WRITE |
432 | gl_UNISTD_MODULE_INDICATOR([write]) | |
f4c79b3c | 433 | # Code from module xsize: |
c4b681fd | 434 | gl_XSIZE |
f4c79b3c | 435 | # End of code from modules |
103dc4d4 LC |
436 | m4_ifval(gl_LIBSOURCES_LIST, [ |
437 | m4_syscmd([test ! -d ]m4_defn([gl_LIBSOURCES_DIR])[ || | |
438 | for gl_file in ]gl_LIBSOURCES_LIST[ ; do | |
439 | if test ! -r ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file ; then | |
440 | echo "missing file ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file" >&2 | |
441 | exit 1 | |
442 | fi | |
443 | done])dnl | |
444 | m4_if(m4_sysval, [0], [], | |
445 | [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])]) | |
446 | ]) | |
447 | m4_popdef([gl_LIBSOURCES_DIR]) | |
448 | m4_popdef([gl_LIBSOURCES_LIST]) | |
449 | m4_popdef([AC_LIBSOURCES]) | |
450 | m4_popdef([AC_REPLACE_FUNCS]) | |
451 | m4_popdef([AC_LIBOBJ]) | |
452 | AC_CONFIG_COMMANDS_PRE([ | |
453 | gl_libobjs= | |
454 | gl_ltlibobjs= | |
455 | if test -n "$gl_LIBOBJS"; then | |
456 | # Remove the extension. | |
457 | sed_drop_objext='s/\.o$//;s/\.obj$//' | |
1cd4fffc | 458 | for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do |
103dc4d4 LC |
459 | gl_libobjs="$gl_libobjs $i.$ac_objext" |
460 | gl_ltlibobjs="$gl_ltlibobjs $i.lo" | |
461 | done | |
462 | fi | |
463 | AC_SUBST([gl_LIBOBJS], [$gl_libobjs]) | |
464 | AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs]) | |
465 | ]) | |
466 | gltests_libdeps= | |
467 | gltests_ltlibdeps= | |
468 | m4_pushdef([AC_LIBOBJ], m4_defn([gltests_LIBOBJ])) | |
469 | m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gltests_REPLACE_FUNCS])) | |
470 | m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES])) | |
471 | m4_pushdef([gltests_LIBSOURCES_LIST], []) | |
472 | m4_pushdef([gltests_LIBSOURCES_DIR], []) | |
473 | gl_COMMON | |
474 | gl_source_base='tests' | |
a927b6c1 LC |
475 | changequote(,)dnl |
476 | gltests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS | |
477 | changequote([, ])dnl | |
478 | AC_SUBST([gltests_WITNESS]) | |
479 | gl_module_indicator_condition=$gltests_WITNESS | |
480 | m4_pushdef([gl_MODULE_INDICATOR_CONDITION], [$gl_module_indicator_condition]) | |
481 | m4_popdef([gl_MODULE_INDICATOR_CONDITION]) | |
103dc4d4 LC |
482 | m4_ifval(gltests_LIBSOURCES_LIST, [ |
483 | m4_syscmd([test ! -d ]m4_defn([gltests_LIBSOURCES_DIR])[ || | |
484 | for gl_file in ]gltests_LIBSOURCES_LIST[ ; do | |
485 | if test ! -r ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file ; then | |
486 | echo "missing file ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file" >&2 | |
487 | exit 1 | |
488 | fi | |
489 | done])dnl | |
490 | m4_if(m4_sysval, [0], [], | |
491 | [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])]) | |
492 | ]) | |
493 | m4_popdef([gltests_LIBSOURCES_DIR]) | |
494 | m4_popdef([gltests_LIBSOURCES_LIST]) | |
495 | m4_popdef([AC_LIBSOURCES]) | |
496 | m4_popdef([AC_REPLACE_FUNCS]) | |
497 | m4_popdef([AC_LIBOBJ]) | |
498 | AC_CONFIG_COMMANDS_PRE([ | |
499 | gltests_libobjs= | |
500 | gltests_ltlibobjs= | |
501 | if test -n "$gltests_LIBOBJS"; then | |
502 | # Remove the extension. | |
503 | sed_drop_objext='s/\.o$//;s/\.obj$//' | |
1cd4fffc | 504 | for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do |
103dc4d4 LC |
505 | gltests_libobjs="$gltests_libobjs $i.$ac_objext" |
506 | gltests_ltlibobjs="$gltests_ltlibobjs $i.lo" | |
507 | done | |
508 | fi | |
509 | AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs]) | |
510 | AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs]) | |
511 | ]) | |
512 | ]) | |
513 | ||
514 | # Like AC_LIBOBJ, except that the module name goes | |
515 | # into gl_LIBOBJS instead of into LIBOBJS. | |
516 | AC_DEFUN([gl_LIBOBJ], [ | |
517 | AS_LITERAL_IF([$1], [gl_LIBSOURCES([$1.c])])dnl | |
518 | gl_LIBOBJS="$gl_LIBOBJS $1.$ac_objext" | |
519 | ]) | |
520 | ||
521 | # Like AC_REPLACE_FUNCS, except that the module name goes | |
522 | # into gl_LIBOBJS instead of into LIBOBJS. | |
523 | AC_DEFUN([gl_REPLACE_FUNCS], [ | |
524 | m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl | |
525 | AC_CHECK_FUNCS([$1], , [gl_LIBOBJ($ac_func)]) | |
526 | ]) | |
527 | ||
528 | # Like AC_LIBSOURCES, except the directory where the source file is | |
529 | # expected is derived from the gnulib-tool parameterization, | |
530 | # and alloca is special cased (for the alloca-opt module). | |
531 | # We could also entirely rely on EXTRA_lib..._SOURCES. | |
532 | AC_DEFUN([gl_LIBSOURCES], [ | |
533 | m4_foreach([_gl_NAME], [$1], [ | |
534 | m4_if(_gl_NAME, [alloca.c], [], [ | |
535 | m4_define([gl_LIBSOURCES_DIR], [lib]) | |
536 | m4_append([gl_LIBSOURCES_LIST], _gl_NAME, [ ]) | |
537 | ]) | |
538 | ]) | |
539 | ]) | |
540 | ||
541 | # Like AC_LIBOBJ, except that the module name goes | |
542 | # into gltests_LIBOBJS instead of into LIBOBJS. | |
543 | AC_DEFUN([gltests_LIBOBJ], [ | |
544 | AS_LITERAL_IF([$1], [gltests_LIBSOURCES([$1.c])])dnl | |
545 | gltests_LIBOBJS="$gltests_LIBOBJS $1.$ac_objext" | |
546 | ]) | |
547 | ||
548 | # Like AC_REPLACE_FUNCS, except that the module name goes | |
549 | # into gltests_LIBOBJS instead of into LIBOBJS. | |
550 | AC_DEFUN([gltests_REPLACE_FUNCS], [ | |
551 | m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl | |
552 | AC_CHECK_FUNCS([$1], , [gltests_LIBOBJ($ac_func)]) | |
553 | ]) | |
554 | ||
555 | # Like AC_LIBSOURCES, except the directory where the source file is | |
556 | # expected is derived from the gnulib-tool parameterization, | |
557 | # and alloca is special cased (for the alloca-opt module). | |
558 | # We could also entirely rely on EXTRA_lib..._SOURCES. | |
559 | AC_DEFUN([gltests_LIBSOURCES], [ | |
560 | m4_foreach([_gl_NAME], [$1], [ | |
561 | m4_if(_gl_NAME, [alloca.c], [], [ | |
562 | m4_define([gltests_LIBSOURCES_DIR], [tests]) | |
563 | m4_append([gltests_LIBSOURCES_LIST], _gl_NAME, [ ]) | |
564 | ]) | |
565 | ]) | |
566 | ]) | |
567 | ||
568 | # This macro records the list of files which have been installed by | |
569 | # gnulib-tool and may be removed by future gnulib-tool invocations. | |
570 | AC_DEFUN([gl_FILE_LIST], [ | |
c84bdaf6 | 571 | build-aux/announce-gen |
1cd4fffc | 572 | build-aux/arg-nonnull.h |
f4c79b3c | 573 | build-aux/c++defs.h |
24d56127 | 574 | build-aux/config.rpath |
c84bdaf6 | 575 | build-aux/gendocs.sh |
5ad8e59f | 576 | build-aux/git-version-gen |
c84bdaf6 LC |
577 | build-aux/gitlog-to-changelog |
578 | build-aux/gnu-web-doc-update | |
579 | build-aux/gnupload | |
61cd9dc9 | 580 | build-aux/unused-parameter.h |
c84bdaf6 LC |
581 | build-aux/useless-if-before-free |
582 | build-aux/vc-list-files | |
61cd9dc9 | 583 | build-aux/warn-on-use.h |
c84bdaf6 | 584 | doc/gendocs_template |
8912421c | 585 | lib/alignof.h |
103dc4d4 | 586 | lib/alloca.in.h |
8912421c | 587 | lib/arpa_inet.in.h |
c4b681fd | 588 | lib/asnprintf.c |
24d56127 LC |
589 | lib/byteswap.in.h |
590 | lib/c-ctype.c | |
591 | lib/c-ctype.h | |
592 | lib/c-strcase.h | |
593 | lib/c-strcasecmp.c | |
594 | lib/c-strcaseeq.h | |
595 | lib/c-strncasecmp.c | |
ffca4c22 | 596 | lib/canonicalize-lgpl.c |
0f00f2c3 LC |
597 | lib/close-hook.c |
598 | lib/close-hook.h | |
4a462e35 | 599 | lib/config.charset |
c3b16a5d | 600 | lib/duplocale.c |
c4b681fd LC |
601 | lib/errno.in.h |
602 | lib/float+.h | |
603 | lib/float.in.h | |
f240aacb | 604 | lib/flock.c |
9b36a80c LC |
605 | lib/full-read.c |
606 | lib/full-read.h | |
607 | lib/full-write.c | |
608 | lib/full-write.h | |
61cd9dc9 LC |
609 | lib/gai_strerror.c |
610 | lib/getaddrinfo.c | |
4f02b98d | 611 | lib/gettext.h |
24d56127 LC |
612 | lib/iconv.c |
613 | lib/iconv.in.h | |
614 | lib/iconv_close.c | |
615 | lib/iconv_open-aix.gperf | |
616 | lib/iconv_open-hpux.gperf | |
617 | lib/iconv_open-irix.gperf | |
618 | lib/iconv_open-osf.gperf | |
8912421c | 619 | lib/iconv_open-solaris.gperf |
24d56127 LC |
620 | lib/iconv_open.c |
621 | lib/iconveh.h | |
8912421c LC |
622 | lib/inet_ntop.c |
623 | lib/inet_pton.c | |
2e65b52f LC |
624 | lib/isinf.c |
625 | lib/isnan.c | |
626 | lib/isnand.c | |
627 | lib/isnanf.c | |
628 | lib/isnanl.c | |
a927b6c1 | 629 | lib/libunistring.valgrind |
4a462e35 NJ |
630 | lib/localcharset.c |
631 | lib/localcharset.h | |
414e4441 | 632 | lib/locale.in.h |
8912421c | 633 | lib/lstat.c |
f240aacb | 634 | lib/malloc.c |
ffca4c22 AW |
635 | lib/malloca.c |
636 | lib/malloca.h | |
637 | lib/malloca.valgrind | |
2e65b52f | 638 | lib/math.in.h |
4a462e35 NJ |
639 | lib/mbrlen.c |
640 | lib/mbrtowc.c | |
641 | lib/mbsinit.c | |
c4b681fd LC |
642 | lib/memchr.c |
643 | lib/memchr.valgrind | |
61cd9dc9 | 644 | lib/netdb.in.h |
8912421c | 645 | lib/netinet_in.in.h |
0f00f2c3 LC |
646 | lib/nproc.c |
647 | lib/nproc.h | |
ffca4c22 | 648 | lib/pathmax.h |
c4b681fd LC |
649 | lib/printf-args.c |
650 | lib/printf-args.h | |
651 | lib/printf-parse.c | |
652 | lib/printf-parse.h | |
f240aacb | 653 | lib/putenv.c |
ffca4c22 | 654 | lib/readlink.c |
4a462e35 NJ |
655 | lib/ref-add.sin |
656 | lib/ref-del.sin | |
9b36a80c LC |
657 | lib/safe-read.c |
658 | lib/safe-read.h | |
659 | lib/safe-write.c | |
660 | lib/safe-write.h | |
c4b681fd | 661 | lib/size_max.h |
61cd9dc9 | 662 | lib/snprintf.c |
0f00f2c3 LC |
663 | lib/sockets.c |
664 | lib/sockets.h | |
9157d901 | 665 | lib/stat-time.h |
8912421c | 666 | lib/stat.c |
4f02b98d | 667 | lib/stdarg.in.h |
e65fc94b | 668 | lib/stdbool.in.h |
8912421c | 669 | lib/stddef.in.h |
f240aacb | 670 | lib/stdint.in.h |
c4b681fd LC |
671 | lib/stdio-write.c |
672 | lib/stdio.in.h | |
f240aacb | 673 | lib/stdlib.in.h |
103dc4d4 | 674 | lib/strcasecmp.c |
4a462e35 | 675 | lib/streq.h |
e65fc94b LC |
676 | lib/strftime.c |
677 | lib/strftime.h | |
24d56127 LC |
678 | lib/striconveh.c |
679 | lib/striconveh.h | |
680 | lib/string.in.h | |
103dc4d4 LC |
681 | lib/strings.in.h |
682 | lib/strncasecmp.c | |
f240aacb | 683 | lib/sys_file.in.h |
8912421c LC |
684 | lib/sys_socket.in.h |
685 | lib/sys_stat.in.h | |
e65fc94b LC |
686 | lib/time.in.h |
687 | lib/time_r.c | |
9b36a80c | 688 | lib/unistd.in.h |
a927b6c1 | 689 | lib/unistr.in.h |
24d56127 LC |
690 | lib/unistr/u8-mbtouc-aux.c |
691 | lib/unistr/u8-mbtouc-unsafe-aux.c | |
692 | lib/unistr/u8-mbtouc-unsafe.c | |
693 | lib/unistr/u8-mbtouc.c | |
694 | lib/unistr/u8-mbtoucr.c | |
695 | lib/unistr/u8-prev.c | |
696 | lib/unistr/u8-uctomb-aux.c | |
697 | lib/unistr/u8-uctomb.c | |
a927b6c1 | 698 | lib/unitypes.in.h |
c4b681fd LC |
699 | lib/vasnprintf.c |
700 | lib/vasnprintf.h | |
d7014610 | 701 | lib/verify.h |
4f02b98d LC |
702 | lib/version-etc-fsf.c |
703 | lib/version-etc.c | |
704 | lib/version-etc.h | |
c4b681fd | 705 | lib/vsnprintf.c |
0f00f2c3 | 706 | lib/w32sock.h |
e65fc94b | 707 | lib/wchar.in.h |
9b36a80c | 708 | lib/write.c |
c4b681fd | 709 | lib/xsize.h |
f240aacb | 710 | m4/00gnulib.m4 |
a927b6c1 | 711 | m4/absolute-header.m4 |
103dc4d4 | 712 | m4/alloca.m4 |
8912421c | 713 | m4/arpa_inet_h.m4 |
a927b6c1 | 714 | m4/asm-underscore.m4 |
ac47b09a | 715 | m4/autobuild.m4 |
24d56127 | 716 | m4/byteswap.m4 |
8912421c | 717 | m4/canonicalize.m4 |
2e65b52f | 718 | m4/check-math-lib.m4 |
4a462e35 | 719 | m4/codeset.m4 |
ab4d62ad | 720 | m4/configmake.m4 |
8912421c LC |
721 | m4/dos.m4 |
722 | m4/double-slash-root.m4 | |
c3b16a5d | 723 | m4/duplocale.m4 |
ffca4c22 | 724 | m4/eealloc.m4 |
b579617b | 725 | m4/environ.m4 |
c4b681fd | 726 | m4/errno_h.m4 |
2e65b52f LC |
727 | m4/exponentd.m4 |
728 | m4/exponentf.m4 | |
729 | m4/exponentl.m4 | |
103dc4d4 | 730 | m4/extensions.m4 |
61cd9dc9 | 731 | m4/fcntl-o.m4 |
c4b681fd | 732 | m4/float_h.m4 |
f240aacb LC |
733 | m4/flock.m4 |
734 | m4/fpieee.m4 | |
f4c79b3c | 735 | m4/func.m4 |
61cd9dc9 | 736 | m4/getaddrinfo.m4 |
4a462e35 | 737 | m4/glibc21.m4 |
103dc4d4 | 738 | m4/gnulib-common.m4 |
61cd9dc9 | 739 | m4/hostent.m4 |
24d56127 LC |
740 | m4/iconv.m4 |
741 | m4/iconv_h.m4 | |
742 | m4/iconv_open.m4 | |
103dc4d4 | 743 | m4/include_next.m4 |
8912421c LC |
744 | m4/inet_ntop.m4 |
745 | m4/inet_pton.m4 | |
d7014610 | 746 | m4/inline.m4 |
c4b681fd LC |
747 | m4/intmax_t.m4 |
748 | m4/inttypes_h.m4 | |
2e65b52f LC |
749 | m4/isinf.m4 |
750 | m4/isnan.m4 | |
751 | m4/isnand.m4 | |
752 | m4/isnanf.m4 | |
753 | m4/isnanl.m4 | |
25361e4b | 754 | m4/ld-version-script.m4 |
24d56127 LC |
755 | m4/lib-ld.m4 |
756 | m4/lib-link.m4 | |
757 | m4/lib-prefix.m4 | |
a927b6c1 | 758 | m4/libunistring-base.m4 |
24d56127 | 759 | m4/libunistring.m4 |
4a462e35 NJ |
760 | m4/localcharset.m4 |
761 | m4/locale-fr.m4 | |
762 | m4/locale-ja.m4 | |
763 | m4/locale-zh.m4 | |
414e4441 | 764 | m4/locale_h.m4 |
f240aacb | 765 | m4/longlong.m4 |
8912421c | 766 | m4/lstat.m4 |
f240aacb | 767 | m4/malloc.m4 |
ffca4c22 | 768 | m4/malloca.m4 |
2e65b52f | 769 | m4/math_h.m4 |
4a462e35 NJ |
770 | m4/mbrlen.m4 |
771 | m4/mbrtowc.m4 | |
772 | m4/mbsinit.m4 | |
e65fc94b | 773 | m4/mbstate_t.m4 |
c4b681fd LC |
774 | m4/memchr.m4 |
775 | m4/mmap-anon.m4 | |
f240aacb | 776 | m4/multiarch.m4 |
61cd9dc9 | 777 | m4/netdb_h.m4 |
8912421c | 778 | m4/netinet_in_h.m4 |
0f00f2c3 | 779 | m4/nproc.m4 |
ffca4c22 | 780 | m4/pathmax.m4 |
c4b681fd | 781 | m4/printf.m4 |
f240aacb | 782 | m4/putenv.m4 |
ffca4c22 | 783 | m4/readlink.m4 |
9b36a80c LC |
784 | m4/safe-read.m4 |
785 | m4/safe-write.m4 | |
61cd9dc9 | 786 | m4/servent.m4 |
c4b681fd | 787 | m4/size_max.m4 |
61cd9dc9 | 788 | m4/snprintf.m4 |
0f00f2c3 LC |
789 | m4/socketlib.m4 |
790 | m4/sockets.m4 | |
8912421c LC |
791 | m4/socklen.m4 |
792 | m4/sockpfaf.m4 | |
9b36a80c | 793 | m4/ssize_t.m4 |
9157d901 | 794 | m4/stat-time.m4 |
8912421c | 795 | m4/stat.m4 |
4f02b98d | 796 | m4/stdarg.m4 |
e65fc94b | 797 | m4/stdbool.m4 |
8912421c | 798 | m4/stddef_h.m4 |
f240aacb | 799 | m4/stdint.m4 |
c4b681fd LC |
800 | m4/stdint_h.m4 |
801 | m4/stdio_h.m4 | |
f240aacb | 802 | m4/stdlib_h.m4 |
103dc4d4 | 803 | m4/strcase.m4 |
e65fc94b | 804 | m4/strftime.m4 |
24d56127 | 805 | m4/string_h.m4 |
103dc4d4 | 806 | m4/strings_h.m4 |
f240aacb | 807 | m4/sys_file_h.m4 |
8912421c LC |
808 | m4/sys_socket_h.m4 |
809 | m4/sys_stat_h.m4 | |
e65fc94b LC |
810 | m4/time_h.m4 |
811 | m4/time_r.m4 | |
812 | m4/tm_gmtoff.m4 | |
9b36a80c | 813 | m4/unistd_h.m4 |
c4b681fd | 814 | m4/vasnprintf.m4 |
4f02b98d | 815 | m4/version-etc.m4 |
d9a9e182 | 816 | m4/visibility.m4 |
c4b681fd | 817 | m4/vsnprintf.m4 |
61cd9dc9 | 818 | m4/warn-on-use.m4 |
f29ded4b | 819 | m4/warnings.m4 |
f4c79b3c | 820 | m4/wchar_h.m4 |
c4b681fd | 821 | m4/wchar_t.m4 |
aa7a939c | 822 | m4/wint_t.m4 |
9b36a80c | 823 | m4/write.m4 |
c4b681fd | 824 | m4/xsize.m4 |
c84bdaf6 LC |
825 | top/GNUmakefile |
826 | top/maint.mk | |
103dc4d4 | 827 | ]) |