1 # DO NOT EDIT! GENERATED AUTOMATICALLY!
2 # Copyright (C) 2002-2010 Free Software Foundation, Inc.
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.
10 # Generated by gnulib-tool.
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.
15 # In projects using CVS, this file can be treated like other built files.
18 # This macro should be invoked from ./configure.ac, in the section
19 # "Checks for programs", right after AC_PROG_CC, and certainly before
20 # any checks for libraries, header files, types and library functions.
23 m4_pattern_forbid([^gl_[A-Z]])dnl the gnulib macro namespace
24 m4_pattern_allow([^gl_ES$])dnl a valid locale name
25 m4_pattern_allow([^gl_LIBOBJS$])dnl a variable
26 m4_pattern_allow([^gl_LTLIBOBJS$])dnl a variable
27 AC_REQUIRE([AC_PROG_RANLIB])
28 # Code from module accept:
29 # Code from module alignof:
30 # Code from module alignof-tests:
31 # Code from module alloca:
32 # Code from module alloca-opt:
33 # Code from module alloca-opt-tests:
34 # Code from module arg-nonnull:
35 # Code from module arpa_inet:
36 # Code from module arpa_inet-tests:
37 # Code from module autobuild:
39 # Code from module bind:
40 # Code from module c++defs:
41 # Code from module c-ctype:
42 # Code from module c-ctype-tests:
43 # Code from module clock-time:
44 # Code from module close:
45 # Code from module close-hook:
46 # Code from module connect:
47 # Code from module errno:
48 # Code from module errno-tests:
49 # Code from module error:
50 # Code from module extensions:
51 AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
52 # Code from module fclose:
53 # Code from module fdl-1.3:
54 # Code from module float:
55 # Code from module fseeko:
56 AC_REQUIRE([AC_FUNC_FSEEKO])
57 # Code from module fseeko-tests:
58 # Code from module gendocs:
59 # Code from module getaddrinfo:
60 # Code from module getaddrinfo-tests:
61 # Code from module getdelim:
62 # Code from module getdelim-tests:
63 # Code from module getline:
64 # Code from module getline-tests:
65 # Code from module getpass-gnu:
66 # Code from module gettext-h:
67 # Code from module gettime:
68 # Code from module gettimeofday:
69 # Code from module gettimeofday-tests:
70 # Code from module gnumakefile:
71 # Code from module gnupload:
72 # Code from module gpl-3.0:
73 # Code from module havelib:
74 # Code from module hostent:
75 # Code from module include_next:
76 # Code from module inet_ntop:
77 # Code from module inet_ntop-tests:
78 # Code from module inet_pton:
79 # Code from module inet_pton-tests:
80 # Code from module intprops:
81 # Code from module ioctl:
82 # Code from module lgpl-2.1:
83 # Code from module listen:
84 # Code from module lseek:
85 # Code from module lseek-tests:
86 # Code from module maintainer-makefile:
87 # Code from module manywarnings:
88 # Code from module memchr:
89 # Code from module memchr-tests:
90 # Code from module minmax:
91 # Code from module multiarch:
92 # Code from module netdb:
93 # Code from module netdb-tests:
94 # Code from module netinet_in:
95 # Code from module netinet_in-tests:
96 # Code from module perror:
97 # Code from module perror-tests:
98 # Code from module pmccabe2html:
99 # Code from module progname:
100 # Code from module read-file:
101 # Code from module read-file-tests:
102 # Code from module readline:
103 # Code from module realloc-posix:
104 # Code from module recv:
105 # Code from module select:
106 # Code from module select-tests:
107 # Code from module send:
108 # Code from module servent:
109 # Code from module setsockopt:
110 # Code from module shutdown:
111 # Code from module size_max:
112 # Code from module snprintf:
113 # Code from module snprintf-tests:
114 # Code from module socket:
115 # Code from module sockets:
116 # Code from module sockets-tests:
117 # Code from module socklen:
118 # Code from module stdarg:
119 dnl Some compilers (e.g., AIX 5.3 cc) need to be in c99 mode
120 dnl for the builtin va_copy to work. With Autoconf 2.60 or later,
121 dnl AC_PROG_CC_STDC arranges for this. With older Autoconf AC_PROG_CC_STDC
122 dnl shouldn't hurt, though installers are on their own to set c99 mode.
123 AC_REQUIRE([AC_PROG_CC_STDC])
124 # Code from module stdbool:
125 # Code from module stdbool-tests:
126 # Code from module stddef:
127 # Code from module stddef-tests:
128 # Code from module stdint:
129 # Code from module stdint-tests:
130 # Code from module stdio:
131 # Code from module stdio-tests:
132 # Code from module stdlib:
133 # Code from module stdlib-tests:
134 # Code from module strerror:
135 # Code from module strerror-tests:
136 # Code from module string:
137 # Code from module string-tests:
138 # Code from module sys_ioctl:
139 # Code from module sys_ioctl-tests:
140 # Code from module sys_select:
141 # Code from module sys_select-tests:
142 # Code from module sys_socket:
143 # Code from module sys_socket-tests:
144 # Code from module sys_stat:
145 # Code from module sys_stat-tests:
146 # Code from module sys_time:
147 # Code from module sys_time-tests:
148 # Code from module time:
149 # Code from module time-tests:
150 # Code from module timespec:
151 # Code from module unistd:
152 # Code from module unistd-tests:
153 # Code from module update-copyright:
154 # Code from module update-copyright-tests:
155 # Code from module useless-if-before-free:
156 # Code from module vasnprintf:
157 # Code from module vasnprintf-tests:
158 # Code from module vc-list-files:
159 # Code from module vc-list-files-tests:
160 # Code from module verify:
161 # Code from module version-etc:
162 # Code from module version-etc-fsf:
163 # Code from module version-etc-tests:
164 # Code from module warn-on-use:
165 # Code from module warnings:
166 # Code from module wchar:
167 # Code from module wchar-tests:
168 # Code from module xsize:
171 # This macro should be invoked from ./configure.ac, in the section
172 # "Check for header files, types and library functions".
175 AM_CONDITIONAL([GL_COND_LIBTOOL], [true])
178 m4_pushdef([AC_LIBOBJ], m4_defn([gl_LIBOBJ]))
179 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gl_REPLACE_FUNCS]))
180 m4_pushdef([AC_LIBSOURCES], m4_defn([gl_LIBSOURCES]))
181 m4_pushdef([gl_LIBSOURCES_LIST], [])
182 m4_pushdef([gl_LIBSOURCES_DIR], [])
185 # Code from module accept:
186 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
187 if test "$ac_cv_header_winsock2_h" = yes; then
190 gl_SYS_SOCKET_MODULE_INDICATOR([accept])
191 # Code from module alignof:
192 # Code from module alloca:
194 LTALLOCA=`echo "$ALLOCA" | sed -e 's/\.[^.]* /.lo /g;s/\.[^.]*$/.lo/'`
197 # Code from module alloca-opt:
199 # Code from module arg-nonnull:
200 # Code from module arpa_inet:
203 # Code from module autobuild:
204 # Code from module bind:
205 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
206 if test "$ac_cv_header_winsock2_h" = yes; then
209 gl_SYS_SOCKET_MODULE_INDICATOR([bind])
210 # Code from module c++defs:
211 # Code from module c-ctype:
212 # Code from module clock-time:
214 # Code from module close:
216 gl_UNISTD_MODULE_INDICATOR([close])
217 # Code from module close-hook:
218 # Code from module connect:
219 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
220 if test "$ac_cv_header_winsock2_h" = yes; then
223 gl_SYS_SOCKET_MODULE_INDICATOR([connect])
224 # Code from module errno:
226 # Code from module error:
228 m4_ifdef([AM_XGETTEXT_OPTION],
229 [AM_][XGETTEXT_OPTION([--flag=error:3:c-format])
230 AM_][XGETTEXT_OPTION([--flag=error_at_line:5:c-format])])
231 # Code from module extensions:
232 # Code from module fclose:
234 gl_STDIO_MODULE_INDICATOR([fclose])
235 # Code from module fdl-1.3:
236 # Code from module float:
238 # Code from module fseeko:
240 gl_STDIO_MODULE_INDICATOR([fseeko])
241 # Code from module gendocs:
242 # Code from module getaddrinfo:
244 gl_NETDB_MODULE_INDICATOR([getaddrinfo])
245 # Code from module getdelim:
247 gl_STDIO_MODULE_INDICATOR([getdelim])
248 # Code from module getline:
250 gl_STDIO_MODULE_INDICATOR([getline])
251 # Code from module getpass-gnu:
253 # Code from module gettext-h:
255 AC_SUBST([LTLIBINTL])
256 # Code from module gettime:
258 # Code from module gettimeofday:
260 gl_SYS_TIME_MODULE_INDICATOR([gettimeofday])
261 # Code from module gnumakefile:
262 # Autoconf 2.61a.99 and earlier don't support linking a file only
263 # in VPATH builds. But since GNUmakefile is for maintainer use
264 # only, it does not matter if we skip the link with older autoconf.
265 # Automake 1.10.1 and earlier try to remove GNUmakefile in non-VPATH
266 # builds, so use a shell variable to bypass this.
267 GNUmakefile=GNUmakefile
268 m4_if(m4_version_compare([2.61a.100],
269 m4_defn([m4_PACKAGE_VERSION])), [1], [],
270 [AC_CONFIG_LINKS([$GNUmakefile:$GNUmakefile], [],
271 [GNUmakefile=$GNUmakefile])])
272 # Code from module gnupload:
273 # Code from module gpl-3.0:
274 # Code from module havelib:
275 # Code from module hostent:
277 # Code from module include_next:
278 # Code from module inet_ntop:
280 gl_ARPA_INET_MODULE_INDICATOR([inet_ntop])
281 # Code from module inet_pton:
283 gl_ARPA_INET_MODULE_INDICATOR([inet_pton])
284 # Code from module intprops:
285 # Code from module lgpl-2.1:
286 # Code from module listen:
287 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
288 if test "$ac_cv_header_winsock2_h" = yes; then
291 gl_SYS_SOCKET_MODULE_INDICATOR([listen])
292 # Code from module lseek:
294 gl_UNISTD_MODULE_INDICATOR([lseek])
295 # Code from module maintainer-makefile:
296 AC_CONFIG_COMMANDS_PRE([m4_ifdef([AH_HEADER],
297 [AC_SUBST([CONFIG_INCLUDE], m4_defn([AH_HEADER]))])])
298 # Code from module manywarnings:
299 # Code from module memchr:
301 gl_STRING_MODULE_INDICATOR([memchr])
302 # Code from module minmax:
304 # Code from module multiarch:
306 # Code from module netdb:
308 # Code from module netinet_in:
311 # Code from module perror:
313 gl_STRING_MODULE_INDICATOR([perror])
314 # Code from module pmccabe2html:
315 AC_PATH_PROG([PMCCABE], [pmccabe], [false])
316 # Code from module progname:
317 AC_CHECK_DECLS([program_invocation_name], [], [], [#include <errno.h>])
318 AC_CHECK_DECLS([program_invocation_short_name], [], [], [#include <errno.h>])
319 # Code from module read-file:
321 # Code from module readline:
323 # Code from module realloc-posix:
324 gl_FUNC_REALLOC_POSIX
325 gl_STDLIB_MODULE_INDICATOR([realloc-posix])
326 # Code from module recv:
327 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
328 if test "$ac_cv_header_winsock2_h" = yes; then
331 gl_SYS_SOCKET_MODULE_INDICATOR([recv])
332 # Code from module select:
334 gl_SYS_SELECT_MODULE_INDICATOR([select])
335 # Code from module send:
336 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
337 if test "$ac_cv_header_winsock2_h" = yes; then
340 gl_SYS_SOCKET_MODULE_INDICATOR([send])
341 # Code from module servent:
343 # Code from module setsockopt:
344 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
345 if test "$ac_cv_header_winsock2_h" = yes; then
346 AC_LIBOBJ([setsockopt])
348 gl_SYS_SOCKET_MODULE_INDICATOR([setsockopt])
349 # Code from module shutdown:
350 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
351 if test "$ac_cv_header_winsock2_h" = yes; then
352 AC_LIBOBJ([shutdown])
354 gl_SYS_SOCKET_MODULE_INDICATOR([shutdown])
355 # Code from module size_max:
357 # Code from module snprintf:
359 gl_STDIO_MODULE_INDICATOR([snprintf])
360 # Code from module socket:
361 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
362 if test "$ac_cv_header_winsock2_h" = yes; then
365 # When this module is used, sockets may actually occur as file descriptors,
366 # hence it is worth warning if the modules 'close' and 'ioctl' are not used.
367 m4_ifdef([gl_UNISTD_H_DEFAULTS], [AC_REQUIRE([gl_UNISTD_H_DEFAULTS])])
368 m4_ifdef([gl_SYS_IOCTL_H_DEFAULTS], [AC_REQUIRE([gl_SYS_IOCTL_H_DEFAULTS])])
369 AC_REQUIRE([gl_PREREQ_SYS_H_WINSOCK2])
370 if test "$ac_cv_header_winsock2_h" = yes; then
371 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=1
372 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=1
374 gl_SYS_SOCKET_MODULE_INDICATOR([socket])
375 # Code from module sockets:
377 # Code from module socklen:
379 # Code from module stdarg:
381 # Code from module stdbool:
383 # Code from module stddef:
385 # Code from module stdint:
387 # Code from module stdio:
389 # Code from module stdlib:
391 # Code from module strerror:
393 gl_STRING_MODULE_INDICATOR([strerror])
394 # Code from module string:
396 # Code from module sys_select:
399 # Code from module sys_socket:
402 # Code from module sys_stat:
405 # Code from module sys_time:
408 # Code from module time:
410 # Code from module timespec:
412 # Code from module unistd:
414 # Code from module update-copyright:
415 # Code from module useless-if-before-free:
416 # Code from module vasnprintf:
418 # Code from module vc-list-files:
419 # Code from module version-etc:
421 # Code from module version-etc-fsf:
422 # Code from module warn-on-use:
423 # Code from module warnings:
424 AC_SUBST([WARN_CFLAGS])
425 # Code from module wchar:
427 # Code from module xsize:
429 # End of code from modules
430 m4_ifval(gl_LIBSOURCES_LIST, [
431 m4_syscmd([test ! -d ]m4_defn([gl_LIBSOURCES_DIR])[ ||
432 for gl_file in ]gl_LIBSOURCES_LIST[ ; do
433 if test ! -r ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file ; then
434 echo "missing file ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file" >&2
438 m4_if(m4_sysval, [0], [],
439 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
441 m4_popdef([gl_LIBSOURCES_DIR])
442 m4_popdef([gl_LIBSOURCES_LIST])
443 m4_popdef([AC_LIBSOURCES])
444 m4_popdef([AC_REPLACE_FUNCS])
445 m4_popdef([AC_LIBOBJ])
446 AC_CONFIG_COMMANDS_PRE([
449 if test -n "$gl_LIBOBJS"; then
450 # Remove the extension.
451 sed_drop_objext='s/\.o$//;s/\.obj$//'
452 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
453 gl_libobjs="$gl_libobjs $i.$ac_objext"
454 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
457 AC_SUBST([gl_LIBOBJS], [$gl_libobjs])
458 AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs])
462 m4_pushdef([AC_LIBOBJ], m4_defn([gltests_LIBOBJ]))
463 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gltests_REPLACE_FUNCS]))
464 m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES]))
465 m4_pushdef([gltests_LIBSOURCES_LIST], [])
466 m4_pushdef([gltests_LIBSOURCES_DIR], [])
468 gl_source_base='gl/tests'
470 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
472 AC_SUBST([gltests_WITNESS])
473 gl_module_indicator_condition=$gltests_WITNESS
474 m4_pushdef([gl_MODULE_INDICATOR_CONDITION], [$gl_module_indicator_condition])
479 gl_SYS_IOCTL_MODULE_INDICATOR([ioctl])
480 AC_CHECK_HEADERS_ONCE([unistd.h sys/wait.h])
485 AC_CHECK_FUNCS_ONCE([shutdown])
486 abs_aux_dir=`cd "$ac_aux_dir"; pwd`
487 AC_SUBST([abs_aux_dir])
488 abs_aux_dir=`cd "$ac_aux_dir"; pwd`
489 AC_SUBST([abs_aux_dir])
490 m4_popdef([gl_MODULE_INDICATOR_CONDITION])
491 m4_ifval(gltests_LIBSOURCES_LIST, [
492 m4_syscmd([test ! -d ]m4_defn([gltests_LIBSOURCES_DIR])[ ||
493 for gl_file in ]gltests_LIBSOURCES_LIST[ ; do
494 if test ! -r ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file ; then
495 echo "missing file ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file" >&2
499 m4_if(m4_sysval, [0], [],
500 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
502 m4_popdef([gltests_LIBSOURCES_DIR])
503 m4_popdef([gltests_LIBSOURCES_LIST])
504 m4_popdef([AC_LIBSOURCES])
505 m4_popdef([AC_REPLACE_FUNCS])
506 m4_popdef([AC_LIBOBJ])
507 AC_CONFIG_COMMANDS_PRE([
510 if test -n "$gltests_LIBOBJS"; then
511 # Remove the extension.
512 sed_drop_objext='s/\.o$//;s/\.obj$//'
513 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
514 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
515 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
518 AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs])
519 AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs])
521 LIBTESTS_LIBDEPS="$gltests_libdeps"
522 AC_SUBST([LIBTESTS_LIBDEPS])
525 # Like AC_LIBOBJ, except that the module name goes
526 # into gl_LIBOBJS instead of into LIBOBJS.
527 AC_DEFUN([gl_LIBOBJ], [
528 AS_LITERAL_IF([$1], [gl_LIBSOURCES([$1.c])])dnl
529 gl_LIBOBJS="$gl_LIBOBJS $1.$ac_objext"
532 # Like AC_REPLACE_FUNCS, except that the module name goes
533 # into gl_LIBOBJS instead of into LIBOBJS.
534 AC_DEFUN([gl_REPLACE_FUNCS], [
535 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
536 AC_CHECK_FUNCS([$1], , [gl_LIBOBJ($ac_func)])
539 # Like AC_LIBSOURCES, except the directory where the source file is
540 # expected is derived from the gnulib-tool parameterization,
541 # and alloca is special cased (for the alloca-opt module).
542 # We could also entirely rely on EXTRA_lib..._SOURCES.
543 AC_DEFUN([gl_LIBSOURCES], [
544 m4_foreach([_gl_NAME], [$1], [
545 m4_if(_gl_NAME, [alloca.c], [], [
546 m4_define([gl_LIBSOURCES_DIR], [gl])
547 m4_append([gl_LIBSOURCES_LIST], _gl_NAME, [ ])
552 # Like AC_LIBOBJ, except that the module name goes
553 # into gltests_LIBOBJS instead of into LIBOBJS.
554 AC_DEFUN([gltests_LIBOBJ], [
555 AS_LITERAL_IF([$1], [gltests_LIBSOURCES([$1.c])])dnl
556 gltests_LIBOBJS="$gltests_LIBOBJS $1.$ac_objext"
559 # Like AC_REPLACE_FUNCS, except that the module name goes
560 # into gltests_LIBOBJS instead of into LIBOBJS.
561 AC_DEFUN([gltests_REPLACE_FUNCS], [
562 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
563 AC_CHECK_FUNCS([$1], , [gltests_LIBOBJ($ac_func)])
566 # Like AC_LIBSOURCES, except the directory where the source file is
567 # expected is derived from the gnulib-tool parameterization,
568 # and alloca is special cased (for the alloca-opt module).
569 # We could also entirely rely on EXTRA_lib..._SOURCES.
570 AC_DEFUN([gltests_LIBSOURCES], [
571 m4_foreach([_gl_NAME], [$1], [
572 m4_if(_gl_NAME, [alloca.c], [], [
573 m4_define([gltests_LIBSOURCES_DIR], [gl/tests])
574 m4_append([gltests_LIBSOURCES_LIST], _gl_NAME, [ ])
579 # This macro records the list of files which have been installed by
580 # gnulib-tool and may be removed by future gnulib-tool invocations.
581 AC_DEFUN([gl_FILE_LIST], [
582 build-aux/arg-nonnull.h
584 build-aux/config.rpath
587 build-aux/pmccabe.css
588 build-aux/pmccabe2html
589 build-aux/update-copyright
590 build-aux/useless-if-before-free
591 build-aux/vc-list-files
592 build-aux/warn-on-use.h
677 lib/version-etc-fsf.c
763 tests/test-alloca-opt.c
764 tests/test-arpa_inet.c
769 tests/test-fseeko2.sh
770 tests/test-getaddrinfo.c
771 tests/test-getdelim.c
773 tests/test-gettimeofday.c
774 tests/test-inet_ntop.c
775 tests/test-inet_pton.c
780 tests/test-netinet_in.c
783 tests/test-read-file.c
784 tests/test-select-fd.c
785 tests/test-select-in.sh
786 tests/test-select-out.sh
787 tests/test-select-stdin.c
789 tests/test-snprintf.c
796 tests/test-strerror.c
798 tests/test-sys_ioctl.c
799 tests/test-sys_select.c
800 tests/test-sys_socket.c
801 tests/test-sys_stat.c
802 tests/test-sys_time.c
805 tests/test-update-copyright.sh
806 tests/test-vasnprintf.c
807 tests/test-vc-list-files-cvs.sh
808 tests/test-vc-list-files-git.sh
809 tests/test-version-etc.c
810 tests/test-version-etc.sh
815 tests=lib/sys_ioctl.in.h