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