1 # DO NOT EDIT! GENERATED AUTOMATICALLY!
2 # Copyright (C) 2002-2012 Free Software Foundation, Inc.
4 # This file is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 3 of the License, or
7 # (at your option) any later version.
9 # This file is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
14 # You should have received a copy of the GNU General Public License
15 # along with this file. If not, see <http://www.gnu.org/licenses/>.
17 # As a special exception to the GNU General Public License,
18 # this file may be distributed as part of a program that
19 # contains a configuration script generated by Autoconf, under
20 # the same distribution terms as the rest of that program.
22 # Generated by gnulib-tool.
24 # This file represents the compiled summary of the specification in
25 # gnulib-cache.m4. It lists the computed macro invocations that need
26 # to be invoked from configure.ac.
27 # In projects that use version control, this file can be treated like
31 # This macro should be invoked from ./configure.ac, in the section
32 # "Checks for programs", right after AC_PROG_CC, and certainly before
33 # any checks for libraries, header files, types and library functions.
36 m4_pattern_forbid([^gl_[A-Z]])dnl the gnulib macro namespace
37 m4_pattern_allow([^gl_ES$])dnl a valid locale name
38 m4_pattern_allow([^gl_LIBOBJS$])dnl a variable
39 m4_pattern_allow([^gl_LTLIBOBJS$])dnl a variable
40 AC_REQUIRE([gl_PROG_AR_RANLIB])
41 AC_REQUIRE([AM_PROG_CC_C_O])
42 # Code from module accept:
43 # Code from module accept-tests:
44 # Code from module alloca:
45 # Code from module alloca-opt:
46 # Code from module alloca-opt-tests:
47 # Code from module alphasort:
48 # Code from module argp:
49 # Code from module argp-tests:
50 # Code from module arpa_inet:
51 # Code from module arpa_inet-tests:
52 # Code from module base64:
53 # Code from module base64-tests:
54 # Code from module binary-io:
55 # Code from module binary-io-tests:
56 # Code from module bind:
57 # Code from module bind-tests:
58 # Code from module byteswap:
59 # Code from module byteswap-tests:
60 # Code from module c-ctype:
61 # Code from module c-ctype-tests:
62 # Code from module clock-time:
63 # Code from module close:
64 # Code from module close-tests:
65 # Code from module closedir:
66 # Code from module connect:
67 # Code from module connect-tests:
68 # Code from module dirent:
69 # Code from module dirent-tests:
70 # Code from module dirname-lgpl:
71 # Code from module dosname:
72 # Code from module double-slash-root:
73 # Code from module dup2:
74 # Code from module dup2-tests:
75 # Code from module environ:
76 # Code from module environ-tests:
77 # Code from module errno:
78 # Code from module errno-tests:
79 # Code from module error:
80 # Code from module extensions:
81 AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
82 # Code from module extern-inline:
83 # Code from module fcntl-h:
84 # Code from module fcntl-h-tests:
85 # Code from module fd-hook:
86 # Code from module fdopen:
87 # Code from module fdopen-tests:
88 # Code from module fgetc-tests:
89 # Code from module filename:
90 # Code from module float:
91 # Code from module float-tests:
92 # Code from module fpieee:
93 AC_REQUIRE([gl_FP_IEEE])
94 # Code from module fpucw:
95 # Code from module fputc-tests:
96 # Code from module fread-tests:
97 # Code from module frexp-nolibm:
98 # Code from module frexp-nolibm-tests:
99 # Code from module frexpl-nolibm:
100 # Code from module frexpl-nolibm-tests:
101 # Code from module fseek:
102 # Code from module fseek-tests:
103 # Code from module fseeko:
104 AC_REQUIRE([AC_FUNC_FSEEKO])
105 # Code from module fseeko-tests:
106 # Code from module fseterr:
107 # Code from module fseterr-tests:
108 # Code from module fstat:
109 # Code from module fstat-tests:
110 # Code from module ftell:
111 # Code from module ftell-tests:
112 # Code from module ftello:
113 AC_REQUIRE([AC_FUNC_FSEEKO])
114 # Code from module ftello-tests:
115 # Code from module ftruncate:
116 # Code from module ftruncate-tests:
117 # Code from module func:
118 # Code from module func-tests:
119 # Code from module fwrite-tests:
120 # Code from module gendocs:
121 # Code from module getaddrinfo:
122 # Code from module getaddrinfo-tests:
123 # Code from module getcwd-lgpl:
124 # Code from module getcwd-lgpl-tests:
125 # Code from module getdelim:
126 # Code from module getdelim-tests:
127 # Code from module getline:
128 # Code from module getline-tests:
129 # Code from module getopt-gnu:
130 # Code from module getopt-posix:
131 # Code from module getopt-posix-tests:
132 # Code from module getpagesize:
133 # Code from module getpass:
134 # Code from module getpeername:
135 # Code from module getpeername-tests:
136 # Code from module getsubopt:
137 # Code from module gettext:
138 # Code from module gettext-h:
139 # Code from module gettime:
140 # Code from module gettimeofday:
141 # Code from module gettimeofday-tests:
142 # Code from module gnumakefile:
143 # Code from module hash-pjw-bare:
144 # Code from module havelib:
145 # Code from module hostent:
146 # Code from module iconv:
147 # Code from module iconv-tests:
148 # Code from module ignore-value:
149 # Code from module ignore-value-tests:
150 # Code from module include_next:
151 # Code from module inet_ntop:
152 # Code from module inet_ntop-tests:
153 # Code from module inet_pton:
154 # Code from module inet_pton-tests:
155 # Code from module intprops:
156 # Code from module intprops-tests:
157 # Code from module inttypes:
158 # Code from module inttypes-incomplete:
159 # Code from module inttypes-tests:
160 # Code from module ioctl:
161 # Code from module ioctl-tests:
162 # Code from module isnand-nolibm:
163 # Code from module isnand-nolibm-tests:
164 # Code from module isnanf-nolibm:
165 # Code from module isnanf-nolibm-tests:
166 # Code from module isnanl-nolibm:
167 # Code from module isnanl-nolibm-tests:
168 # Code from module largefile:
169 AC_REQUIRE([AC_SYS_LARGEFILE])
170 # Code from module lib-msvc-compat:
171 # Code from module lib-symbol-versions:
172 # Code from module listen:
173 # Code from module listen-tests:
174 # Code from module lock:
175 # Code from module lseek:
176 # Code from module lstat:
177 # Code from module lstat-tests:
178 # Code from module maintainer-makefile:
179 # Code from module malloc-gnu:
180 # Code from module malloc-gnu-tests:
181 # Code from module malloc-posix:
182 # Code from module malloca:
183 # Code from module malloca-tests:
184 # Code from module manywarnings:
185 # Code from module math:
186 # Code from module math-tests:
187 # Code from module memchr:
188 # Code from module memchr-tests:
189 # Code from module memmem-simple:
190 # Code from module mempcpy:
191 # Code from module minmax:
192 # Code from module msvc-inval:
193 # Code from module msvc-nothrow:
194 # Code from module multiarch:
195 # Code from module netdb:
196 # Code from module netdb-tests:
197 # Code from module netinet_in:
198 # Code from module netinet_in-tests:
199 # Code from module nocrash:
200 # Code from module open:
201 # Code from module open-tests:
202 # Code from module opendir:
203 # Code from module pathmax:
204 # Code from module pathmax-tests:
205 # Code from module perror:
206 # Code from module perror-tests:
207 # Code from module pipe-posix:
208 # Code from module pipe-posix-tests:
209 # Code from module pmccabe2html:
210 # Code from module printf-frexp:
211 # Code from module printf-frexp-tests:
212 # Code from module printf-frexpl:
213 # Code from module printf-frexpl-tests:
214 # Code from module printf-safe:
215 # Code from module progname:
216 # Code from module putenv:
217 # Code from module rawmemchr:
218 # Code from module rawmemchr-tests:
219 # Code from module read-file:
220 # Code from module read-file-tests:
221 # Code from module readdir:
222 # Code from module realloc-posix:
223 # Code from module recv:
224 # Code from module recv-tests:
225 # Code from module recvfrom:
226 # Code from module recvfrom-tests:
227 # Code from module same-inode:
228 # Code from module scandir:
229 # Code from module select:
230 # Code from module select-tests:
231 # Code from module send:
232 # Code from module send-tests:
233 # Code from module sendto:
234 # Code from module sendto-tests:
235 # Code from module servent:
236 # Code from module setenv:
237 # Code from module setenv-tests:
238 # Code from module setsockopt:
239 # Code from module setsockopt-tests:
240 # Code from module shutdown:
241 # Code from module shutdown-tests:
242 # Code from module signal-h:
243 # Code from module signal-h-tests:
244 # Code from module signbit:
245 # Code from module signbit-tests:
246 # Code from module size_max:
247 # Code from module sleep:
248 # Code from module sleep-tests:
249 # Code from module snippet/_Noreturn:
250 # Code from module snippet/arg-nonnull:
251 # Code from module snippet/c++defs:
252 # Code from module snippet/warn-on-use:
253 # Code from module snprintf:
254 # Code from module snprintf-tests:
255 # Code from module socket:
256 # Code from module socketlib:
257 # Code from module sockets:
258 # Code from module sockets-tests:
259 # Code from module socklen:
260 # Code from module ssize_t:
261 # Code from module stat:
262 # Code from module stat-tests:
263 # Code from module stdalign:
264 # Code from module stdalign-tests:
265 # Code from module stdarg:
266 dnl Some compilers (e.g., AIX 5.3 cc) need to be in c99 mode
267 dnl for the builtin va_copy to work. With Autoconf 2.60 or later,
268 dnl gl_PROG_CC_C99 arranges for this. With older Autoconf gl_PROG_CC_C99
269 dnl shouldn't hurt, though installers are on their own to set c99 mode.
271 # Code from module stdbool:
272 # Code from module stdbool-tests:
273 # Code from module stddef:
274 # Code from module stddef-tests:
275 # Code from module stdint:
276 # Code from module stdint-tests:
277 # Code from module stdio:
278 # Code from module stdio-tests:
279 # Code from module stdlib:
280 # Code from module stdlib-tests:
281 # Code from module strcase:
282 # Code from module strchrnul:
283 # Code from module strchrnul-tests:
284 # Code from module strdup-posix:
285 # Code from module strerror:
286 # Code from module strerror-override:
287 # Code from module strerror-tests:
288 # Code from module strerror_r-posix:
289 # Code from module strerror_r-posix-tests:
290 # Code from module string:
291 # Code from module string-tests:
292 # Code from module strings:
293 # Code from module strings-tests:
294 # Code from module strndup:
295 # Code from module strnlen:
296 # Code from module strnlen-tests:
297 # Code from module strtok_r:
298 # Code from module strverscmp:
299 # Code from module strverscmp-tests:
300 # Code from module symlink:
301 # Code from module symlink-tests:
302 # Code from module sys_ioctl:
303 # Code from module sys_ioctl-tests:
304 # Code from module sys_select:
305 # Code from module sys_select-tests:
306 # Code from module sys_socket:
307 # Code from module sys_socket-tests:
308 # Code from module sys_stat:
309 # Code from module sys_stat-tests:
310 # Code from module sys_time:
311 # Code from module sys_time-tests:
312 # Code from module sys_types:
313 # Code from module sys_types-tests:
314 # Code from module sys_uio:
315 # Code from module sys_uio-tests:
316 # Code from module sysexits:
317 # Code from module sysexits-tests:
318 # Code from module test-framework-sh:
319 # Code from module test-framework-sh-tests:
320 # Code from module threadlib:
322 # Code from module time:
323 # Code from module time-tests:
324 # Code from module time_r:
325 # Code from module timer-time:
326 # Code from module timespec:
327 # Code from module u64:
328 # Code from module u64-tests:
329 # Code from module unistd:
330 # Code from module unistd-tests:
331 # Code from module unsetenv:
332 # Code from module unsetenv-tests:
333 # Code from module useless-if-before-free:
334 # Code from module valgrind-tests:
335 # Code from module vasnprintf:
336 # Code from module vasnprintf-tests:
337 # Code from module vasprintf:
338 # Code from module vasprintf-tests:
339 # Code from module vc-list-files:
340 # Code from module vc-list-files-tests:
341 # Code from module verify:
342 # Code from module verify-tests:
343 # Code from module version-etc:
344 # Code from module version-etc-fsf:
345 # Code from module version-etc-tests:
346 # Code from module vfprintf-posix:
347 # Code from module vfprintf-posix-tests:
348 # Code from module vprintf-posix:
349 # Code from module vprintf-posix-tests:
350 # Code from module vsnprintf:
351 # Code from module vsnprintf-tests:
352 # Code from module warnings:
353 # Code from module wchar:
354 # Code from module wchar-tests:
355 # Code from module xsize:
358 # This macro should be invoked from ./configure.ac, in the section
359 # "Check for header files, types and library functions".
362 AM_CONDITIONAL([GL_COND_LIBTOOL], [true])
365 m4_pushdef([AC_LIBOBJ], m4_defn([gl_LIBOBJ]))
366 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gl_REPLACE_FUNCS]))
367 m4_pushdef([AC_LIBSOURCES], m4_defn([gl_LIBSOURCES]))
368 m4_pushdef([gl_LIBSOURCES_LIST], [])
369 m4_pushdef([gl_LIBSOURCES_DIR], [])
372 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
373 if test "$ac_cv_header_winsock2_h" = yes; then
376 gl_SYS_SOCKET_MODULE_INDICATOR([accept])
378 LTALLOCA=`echo "$ALLOCA" | sed -e 's/\.[^.]* /.lo /g;s/\.[^.]*$/.lo/'`
383 if test $HAVE_ALPHASORT = 0; then
384 AC_LIBOBJ([alphasort])
387 gl_DIRENT_MODULE_INDICATOR([alphasort])
389 m4_ifdef([AM_XGETTEXT_OPTION],
390 [AM_][XGETTEXT_OPTION([--flag=argp_error:2:c-format])
391 AM_][XGETTEXT_OPTION([--flag=argp_failure:4:c-format])])
395 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
396 if test "$ac_cv_header_winsock2_h" = yes; then
399 gl_SYS_SOCKET_MODULE_INDICATOR([bind])
403 if test $REPLACE_CLOSE = 1; then
406 gl_UNISTD_MODULE_INDICATOR([close])
408 if test $HAVE_CLOSEDIR = 0 || test $REPLACE_CLOSEDIR = 1; then
409 AC_LIBOBJ([closedir])
411 gl_DIRENT_MODULE_INDICATOR([closedir])
412 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
413 if test "$ac_cv_header_winsock2_h" = yes; then
416 gl_SYS_SOCKET_MODULE_INDICATOR([connect])
421 if test $HAVE_DUP2 = 0 || test $REPLACE_DUP2 = 1; then
425 gl_UNISTD_MODULE_INDICATOR([dup2])
428 if test $ac_cv_lib_error_at_line = no; then
432 m4_ifdef([AM_XGETTEXT_OPTION],
433 [AM_][XGETTEXT_OPTION([--flag=error:3:c-format])
434 AM_][XGETTEXT_OPTION([--flag=error_at_line:5:c-format])])
435 AC_REQUIRE([gl_EXTERN_INLINE])
437 if test $REPLACE_FLOAT_LDBL = 1; then
440 if test $REPLACE_ITOLD = 1; then
443 gl_FUNC_FREXP_NO_LIBM
444 if test $gl_func_frexp_no_libm != yes; then
447 gl_MATH_MODULE_INDICATOR([frexp])
448 gl_FUNC_FREXPL_NO_LIBM
449 if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl_no_libm = no; then
452 gl_MATH_MODULE_INDICATOR([frexpl])
454 if test $REPLACE_FSEEK = 1; then
457 gl_STDIO_MODULE_INDICATOR([fseek])
459 if test $HAVE_FSEEKO = 0 || test $REPLACE_FSEEKO = 1; then
463 gl_STDIO_MODULE_INDICATOR([fseeko])
465 if test $ac_cv_func___fseterr = no; then
469 if test $REPLACE_FSTAT = 1; then
473 gl_SYS_STAT_MODULE_INDICATOR([fstat])
475 if test $REPLACE_FTELL = 1; then
478 gl_STDIO_MODULE_INDICATOR([ftell])
480 if test $HAVE_FTELLO = 0 || test $REPLACE_FTELLO = 1; then
484 gl_STDIO_MODULE_INDICATOR([ftello])
487 if test $HAVE_GETADDRINFO = 0; then
488 AC_LIBOBJ([getaddrinfo])
490 if test $HAVE_DECL_GAI_STRERROR = 0 || test $REPLACE_GAI_STRERROR = 1; then
491 AC_LIBOBJ([gai_strerror])
493 gl_NETDB_MODULE_INDICATOR([getaddrinfo])
495 if test $HAVE_GETDELIM = 0 || test $REPLACE_GETDELIM = 1; then
496 AC_LIBOBJ([getdelim])
499 gl_STDIO_MODULE_INDICATOR([getdelim])
501 if test $REPLACE_GETLINE = 1; then
505 gl_STDIO_MODULE_INDICATOR([getline])
507 if test $REPLACE_GETOPT = 1; then
511 dnl Arrange for unistd.h to include getopt.h.
512 GNULIB_GL_UNISTD_H_GETOPT=1
514 AC_SUBST([GNULIB_GL_UNISTD_H_GETOPT])
515 gl_MODULE_INDICATOR_FOR_TESTS([getopt-gnu])
517 if test $REPLACE_GETOPT = 1; then
521 dnl Arrange for unistd.h to include getopt.h.
522 GNULIB_GL_UNISTD_H_GETOPT=1
524 AC_SUBST([GNULIB_GL_UNISTD_H_GETOPT])
526 if test $HAVE_GETPASS = 0; then
530 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
531 if test "$ac_cv_header_winsock2_h" = yes; then
532 AC_LIBOBJ([getpeername])
534 gl_SYS_SOCKET_MODULE_INDICATOR([getpeername])
536 if test $HAVE_GETSUBOPT = 0; then
537 AC_LIBOBJ([getsubopt])
540 gl_STDLIB_MODULE_INDICATOR([getsubopt])
541 dnl you must add AM_GNU_GETTEXT([external]) or similar to configure.ac.
542 AM_GNU_GETTEXT_VERSION([0.18.1])
544 AC_SUBST([LTLIBINTL])
547 if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
548 AC_LIBOBJ([gettimeofday])
549 gl_PREREQ_GETTIMEOFDAY
551 gl_SYS_TIME_MODULE_INDICATOR([gettimeofday])
552 # Autoconf 2.61a.99 and earlier don't support linking a file only
553 # in VPATH builds. But since GNUmakefile is for maintainer use
554 # only, it does not matter if we skip the link with older autoconf.
555 # Automake 1.10.1 and earlier try to remove GNUmakefile in non-VPATH
556 # builds, so use a shell variable to bypass this.
557 GNUmakefile=GNUmakefile
558 m4_if(m4_version_compare([2.61a.100],
559 m4_defn([m4_PACKAGE_VERSION])), [1], [],
560 [AC_CONFIG_LINKS([$GNUmakefile:$GNUmakefile], [],
561 [GNUmakefile=$GNUmakefile])])
564 m4_ifdef([gl_ICONV_MODULE_INDICATOR],
565 [gl_ICONV_MODULE_INDICATOR([iconv])])
567 if test $HAVE_INET_NTOP = 0 || test $REPLACE_INET_NTOP = 1; then
568 AC_LIBOBJ([inet_ntop])
571 gl_ARPA_INET_MODULE_INDICATOR([inet_ntop])
573 if test $HAVE_INET_PTON = 0 || test $REPLACE_INET_NTOP = 1; then
574 AC_LIBOBJ([inet_pton])
577 gl_ARPA_INET_MODULE_INDICATOR([inet_pton])
578 gl_FUNC_ISNAND_NO_LIBM
579 if test $gl_func_isnand_no_libm != yes; then
583 gl_FUNC_ISNANF_NO_LIBM
584 if test $gl_func_isnanf_no_libm != yes; then
588 gl_FUNC_ISNANL_NO_LIBM
589 if test $gl_func_isnanl_no_libm != yes; then
593 AC_REQUIRE([gl_LARGEFILE])
596 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
597 if test "$ac_cv_header_winsock2_h" = yes; then
600 gl_SYS_SOCKET_MODULE_INDICATOR([listen])
602 if test $REPLACE_LSEEK = 1; then
605 gl_UNISTD_MODULE_INDICATOR([lseek])
606 AC_CONFIG_COMMANDS_PRE([m4_ifdef([AH_HEADER],
607 [AC_SUBST([CONFIG_INCLUDE], m4_defn([AH_HEADER]))])])
609 if test $REPLACE_MALLOC = 1; then
612 gl_MODULE_INDICATOR([malloc-gnu])
614 if test $REPLACE_MALLOC = 1; then
617 gl_STDLIB_MODULE_INDICATOR([malloc-posix])
620 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
624 gl_STRING_MODULE_INDICATOR([memchr])
625 gl_FUNC_MEMMEM_SIMPLE
626 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
629 gl_STRING_MODULE_INDICATOR([memmem])
631 if test $HAVE_MEMPCPY = 0; then
635 gl_STRING_MODULE_INDICATOR([mempcpy])
638 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
639 AC_LIBOBJ([msvc-inval])
642 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
643 AC_LIBOBJ([msvc-nothrow])
650 if test $HAVE_OPENDIR = 0 || test $REPLACE_OPENDIR = 1; then
653 gl_DIRENT_MODULE_INDICATOR([opendir])
654 AC_PATH_PROG([PMCCABE], [pmccabe], [false])
656 gl_FUNC_PRINTF_FREXPL
657 m4_divert_text([INIT_PREPARE], [gl_printf_safe=yes])
658 AC_CHECK_DECLS([program_invocation_name], [], [], [#include <errno.h>])
659 AC_CHECK_DECLS([program_invocation_short_name], [], [], [#include <errno.h>])
661 if test $HAVE_RAWMEMCHR = 0; then
662 AC_LIBOBJ([rawmemchr])
665 gl_STRING_MODULE_INDICATOR([rawmemchr])
668 if test $HAVE_READDIR = 0; then
671 gl_DIRENT_MODULE_INDICATOR([readdir])
672 gl_FUNC_REALLOC_POSIX
673 if test $REPLACE_REALLOC = 1; then
676 gl_STDLIB_MODULE_INDICATOR([realloc-posix])
677 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
678 if test "$ac_cv_header_winsock2_h" = yes; then
681 gl_SYS_SOCKET_MODULE_INDICATOR([recv])
682 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
683 if test "$ac_cv_header_winsock2_h" = yes; then
684 AC_LIBOBJ([recvfrom])
686 gl_SYS_SOCKET_MODULE_INDICATOR([recvfrom])
688 if test $HAVE_SCANDIR = 0; then
692 gl_DIRENT_MODULE_INDICATOR([scandir])
694 if test $REPLACE_SELECT = 1; then
697 gl_SYS_SELECT_MODULE_INDICATOR([select])
698 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
699 if test "$ac_cv_header_winsock2_h" = yes; then
702 gl_SYS_SOCKET_MODULE_INDICATOR([send])
703 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
704 if test "$ac_cv_header_winsock2_h" = yes; then
707 gl_SYS_SOCKET_MODULE_INDICATOR([sendto])
709 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
710 if test "$ac_cv_header_winsock2_h" = yes; then
711 AC_LIBOBJ([setsockopt])
713 gl_SYS_SOCKET_MODULE_INDICATOR([setsockopt])
714 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
715 if test "$ac_cv_header_winsock2_h" = yes; then
716 AC_LIBOBJ([shutdown])
718 gl_SYS_SOCKET_MODULE_INDICATOR([shutdown])
721 if test $REPLACE_SIGNBIT = 1; then
722 AC_LIBOBJ([signbitf])
723 AC_LIBOBJ([signbitd])
724 AC_LIBOBJ([signbitl])
726 gl_MATH_MODULE_INDICATOR([signbit])
729 if test $HAVE_SLEEP = 0 || test $REPLACE_SLEEP = 1; then
732 gl_UNISTD_MODULE_INDICATOR([sleep])
734 gl_STDIO_MODULE_INDICATOR([snprintf])
735 gl_MODULE_INDICATOR([snprintf])
736 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
737 if test "$ac_cv_header_winsock2_h" = yes; then
740 # When this module is used, sockets may actually occur as file descriptors,
741 # hence it is worth warning if the modules 'close' and 'ioctl' are not used.
742 m4_ifdef([gl_UNISTD_H_DEFAULTS], [AC_REQUIRE([gl_UNISTD_H_DEFAULTS])])
743 m4_ifdef([gl_SYS_IOCTL_H_DEFAULTS], [AC_REQUIRE([gl_SYS_IOCTL_H_DEFAULTS])])
744 AC_REQUIRE([gl_PREREQ_SYS_H_WINSOCK2])
745 if test "$ac_cv_header_winsock2_h" = yes; then
746 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=1
747 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=1
749 gl_SYS_SOCKET_MODULE_INDICATOR([socket])
762 if test $HAVE_STRCASECMP = 0; then
763 AC_LIBOBJ([strcasecmp])
766 if test $HAVE_STRNCASECMP = 0; then
767 AC_LIBOBJ([strncasecmp])
768 gl_PREREQ_STRNCASECMP
771 if test $HAVE_STRCHRNUL = 0 || test $REPLACE_STRCHRNUL = 1; then
772 AC_LIBOBJ([strchrnul])
775 gl_STRING_MODULE_INDICATOR([strchrnul])
777 if test $ac_cv_func_strdup = no || test $REPLACE_STRDUP = 1; then
781 gl_STRING_MODULE_INDICATOR([strdup])
783 if test $REPLACE_STRERROR = 1; then
784 AC_LIBOBJ([strerror])
786 gl_MODULE_INDICATOR([strerror])
787 gl_STRING_MODULE_INDICATOR([strerror])
788 AC_REQUIRE([gl_HEADER_ERRNO_H])
789 AC_REQUIRE([gl_FUNC_STRERROR_0])
790 if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then
791 AC_LIBOBJ([strerror-override])
792 gl_PREREQ_SYS_H_WINSOCK2
797 if test $HAVE_STRNDUP = 0 || test $REPLACE_STRNDUP = 1; then
800 gl_STRING_MODULE_INDICATOR([strndup])
802 if test $HAVE_DECL_STRNLEN = 0 || test $REPLACE_STRNLEN = 1; then
806 gl_STRING_MODULE_INDICATOR([strnlen])
808 if test $HAVE_STRTOK_R = 0 || test $REPLACE_STRTOK_R = 1; then
809 AC_LIBOBJ([strtok_r])
812 gl_STRING_MODULE_INDICATOR([strtok_r])
814 if test $HAVE_STRVERSCMP = 0; then
815 AC_LIBOBJ([strverscmp])
818 gl_STRING_MODULE_INDICATOR([strverscmp])
835 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
839 gl_TIME_MODULE_INDICATOR([time_r])
846 gl_STDIO_MODULE_INDICATOR([vasprintf])
847 m4_ifdef([AM_XGETTEXT_OPTION],
848 [AM_][XGETTEXT_OPTION([--flag=asprintf:2:c-format])
849 AM_][XGETTEXT_OPTION([--flag=vasprintf:2:c-format])])
851 gl_FUNC_VFPRINTF_POSIX
852 gl_STDIO_MODULE_INDICATOR([vfprintf-posix])
853 gl_FUNC_VPRINTF_POSIX
854 gl_STDIO_MODULE_INDICATOR([vprintf-posix])
856 gl_STDIO_MODULE_INDICATOR([vsnprintf])
859 # End of code from modules
860 m4_ifval(gl_LIBSOURCES_LIST, [
861 m4_syscmd([test ! -d ]m4_defn([gl_LIBSOURCES_DIR])[ ||
862 for gl_file in ]gl_LIBSOURCES_LIST[ ; do
863 if test ! -r ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file ; then
864 echo "missing file ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file" >&2
868 m4_if(m4_sysval, [0], [],
869 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
871 m4_popdef([gl_LIBSOURCES_DIR])
872 m4_popdef([gl_LIBSOURCES_LIST])
873 m4_popdef([AC_LIBSOURCES])
874 m4_popdef([AC_REPLACE_FUNCS])
875 m4_popdef([AC_LIBOBJ])
876 AC_CONFIG_COMMANDS_PRE([
879 if test -n "$gl_LIBOBJS"; then
880 # Remove the extension.
881 sed_drop_objext='s/\.o$//;s/\.obj$//'
882 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
883 gl_libobjs="$gl_libobjs $i.$ac_objext"
884 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
887 AC_SUBST([gl_LIBOBJS], [$gl_libobjs])
888 AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs])
892 m4_pushdef([AC_LIBOBJ], m4_defn([gltests_LIBOBJ]))
893 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gltests_REPLACE_FUNCS]))
894 m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES]))
895 m4_pushdef([gltests_LIBSOURCES_LIST], [])
896 m4_pushdef([gltests_LIBSOURCES_DIR], [])
898 gl_source_base='gl/tests'
900 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
902 AC_SUBST([gltests_WITNESS])
903 gl_module_indicator_condition=$gltests_WITNESS
904 m4_pushdef([gl_MODULE_INDICATOR_CONDITION], [$gl_module_indicator_condition])
906 gl_UNISTD_MODULE_INDICATOR([environ])
909 if test $REPLACE_FDOPEN = 1; then
913 gl_STDIO_MODULE_INDICATOR([fdopen])
919 if test $HAVE_FTRUNCATE = 0 || test $REPLACE_FTRUNCATE = 1; then
920 AC_LIBOBJ([ftruncate])
923 gl_UNISTD_MODULE_INDICATOR([ftruncate])
925 if test $REPLACE_GETCWD = 1; then
926 AC_LIBOBJ([getcwd-lgpl])
928 gl_UNISTD_MODULE_INDICATOR([getcwd])
930 if test $REPLACE_GETPAGESIZE = 1; then
931 AC_LIBOBJ([getpagesize])
933 gl_UNISTD_MODULE_INDICATOR([getpagesize])
937 gl_INTTYPES_INCOMPLETE
939 if test $HAVE_IOCTL = 0 || test $REPLACE_IOCTL = 1; then
942 gl_SYS_IOCTL_MODULE_INDICATOR([ioctl])
943 gl_DOUBLE_EXPONENT_LOCATION
944 gl_FLOAT_EXPONENT_LOCATION
945 gl_LONG_DOUBLE_EXPONENT_LOCATION
946 AC_REQUIRE([gl_LONG_DOUBLE_VS_DOUBLE])
949 if test $REPLACE_LSTAT = 1; then
953 gl_SYS_STAT_MODULE_INDICATOR([lstat])
955 dnl Check for prerequisites for memory fence checks.
957 AC_CHECK_HEADERS_ONCE([sys/mman.h])
958 AC_CHECK_FUNCS_ONCE([mprotect])
960 if test $REPLACE_OPEN = 1; then
964 gl_FCNTL_MODULE_INDICATOR([open])
967 if test $REPLACE_PERROR = 1; then
970 gl_STRING_MODULE_INDICATOR([perror])
972 if test $HAVE_PIPE = 0; then
975 gl_UNISTD_MODULE_INDICATOR([pipe])
977 if test $REPLACE_PUTENV = 1; then
980 gl_STDLIB_MODULE_INDICATOR([putenv])
981 dnl Check for prerequisites for memory fence checks.
983 AC_CHECK_HEADERS_ONCE([sys/mman.h])
984 AC_CHECK_FUNCS_ONCE([mprotect])
985 AC_CHECK_HEADERS_ONCE([sys/wait.h])
987 if test $HAVE_SETENV = 0 || test $REPLACE_SETENV = 1; then
990 gl_STDLIB_MODULE_INDICATOR([setenv])
991 AC_REQUIRE([gl_FLOAT_EXPONENT_LOCATION])
992 AC_REQUIRE([gl_DOUBLE_EXPONENT_LOCATION])
993 AC_REQUIRE([gl_LONG_DOUBLE_EXPONENT_LOCATION])
994 AC_CHECK_DECLS_ONCE([alarm])
996 if test $REPLACE_STAT = 1; then
1000 gl_SYS_STAT_MODULE_INDICATOR([stat])
1004 if test $HAVE_DECL_STRERROR_R = 0 || test $REPLACE_STRERROR_R = 1; then
1005 AC_LIBOBJ([strerror_r])
1006 gl_PREREQ_STRERROR_R
1008 gl_STRING_MODULE_INDICATOR([strerror_r])
1009 dnl Check for prerequisites for memory fence checks.
1011 AC_CHECK_HEADERS_ONCE([sys/mman.h])
1012 AC_CHECK_FUNCS_ONCE([mprotect])
1014 if test $HAVE_SYMLINK = 0 || test $REPLACE_SYMLINK = 1; then
1015 AC_LIBOBJ([symlink])
1017 gl_UNISTD_MODULE_INDICATOR([symlink])
1020 AC_CHECK_FUNCS_ONCE([shutdown])
1022 if test $HAVE_UNSETENV = 0 || test $REPLACE_UNSETENV = 1; then
1023 AC_LIBOBJ([unsetenv])
1026 gl_STDLIB_MODULE_INDICATOR([unsetenv])
1028 abs_aux_dir=`cd "$ac_aux_dir"; pwd`
1029 AC_SUBST([abs_aux_dir])
1030 m4_popdef([gl_MODULE_INDICATOR_CONDITION])
1031 m4_ifval(gltests_LIBSOURCES_LIST, [
1032 m4_syscmd([test ! -d ]m4_defn([gltests_LIBSOURCES_DIR])[ ||
1033 for gl_file in ]gltests_LIBSOURCES_LIST[ ; do
1034 if test ! -r ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file ; then
1035 echo "missing file ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file" >&2
1039 m4_if(m4_sysval, [0], [],
1040 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
1042 m4_popdef([gltests_LIBSOURCES_DIR])
1043 m4_popdef([gltests_LIBSOURCES_LIST])
1044 m4_popdef([AC_LIBSOURCES])
1045 m4_popdef([AC_REPLACE_FUNCS])
1046 m4_popdef([AC_LIBOBJ])
1047 AC_CONFIG_COMMANDS_PRE([
1050 if test -n "$gltests_LIBOBJS"; then
1051 # Remove the extension.
1052 sed_drop_objext='s/\.o$//;s/\.obj$//'
1053 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
1054 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
1055 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
1058 AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs])
1059 AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs])
1061 LIBTESTS_LIBDEPS="$gltests_libdeps"
1062 AC_SUBST([LIBTESTS_LIBDEPS])
1065 # Like AC_LIBOBJ, except that the module name goes
1066 # into gl_LIBOBJS instead of into LIBOBJS.
1067 AC_DEFUN([gl_LIBOBJ], [
1068 AS_LITERAL_IF([$1], [gl_LIBSOURCES([$1.c])])dnl
1069 gl_LIBOBJS="$gl_LIBOBJS $1.$ac_objext"
1072 # Like AC_REPLACE_FUNCS, except that the module name goes
1073 # into gl_LIBOBJS instead of into LIBOBJS.
1074 AC_DEFUN([gl_REPLACE_FUNCS], [
1075 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
1076 AC_CHECK_FUNCS([$1], , [gl_LIBOBJ($ac_func)])
1079 # Like AC_LIBSOURCES, except the directory where the source file is
1080 # expected is derived from the gnulib-tool parameterization,
1081 # and alloca is special cased (for the alloca-opt module).
1082 # We could also entirely rely on EXTRA_lib..._SOURCES.
1083 AC_DEFUN([gl_LIBSOURCES], [
1084 m4_foreach([_gl_NAME], [$1], [
1085 m4_if(_gl_NAME, [alloca.c], [], [
1086 m4_define([gl_LIBSOURCES_DIR], [gl])
1087 m4_append([gl_LIBSOURCES_LIST], _gl_NAME, [ ])
1092 # Like AC_LIBOBJ, except that the module name goes
1093 # into gltests_LIBOBJS instead of into LIBOBJS.
1094 AC_DEFUN([gltests_LIBOBJ], [
1095 AS_LITERAL_IF([$1], [gltests_LIBSOURCES([$1.c])])dnl
1096 gltests_LIBOBJS="$gltests_LIBOBJS $1.$ac_objext"
1099 # Like AC_REPLACE_FUNCS, except that the module name goes
1100 # into gltests_LIBOBJS instead of into LIBOBJS.
1101 AC_DEFUN([gltests_REPLACE_FUNCS], [
1102 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
1103 AC_CHECK_FUNCS([$1], , [gltests_LIBOBJ($ac_func)])
1106 # Like AC_LIBSOURCES, except the directory where the source file is
1107 # expected is derived from the gnulib-tool parameterization,
1108 # and alloca is special cased (for the alloca-opt module).
1109 # We could also entirely rely on EXTRA_lib..._SOURCES.
1110 AC_DEFUN([gltests_LIBSOURCES], [
1111 m4_foreach([_gl_NAME], [$1], [
1112 m4_if(_gl_NAME, [alloca.c], [], [
1113 m4_define([gltests_LIBSOURCES_DIR], [gl/tests])
1114 m4_append([gltests_LIBSOURCES_LIST], _gl_NAME, [ ])
1119 # This macro records the list of files which have been installed by
1120 # gnulib-tool and may be removed by future gnulib-tool invocations.
1121 AC_DEFUN([gl_FILE_LIST], [
1122 build-aux/config.rpath
1123 build-aux/gendocs.sh
1124 build-aux/pmccabe.css
1125 build-aux/pmccabe2html
1126 build-aux/snippet/_Noreturn.h
1127 build-aux/snippet/arg-nonnull.h
1128 build-aux/snippet/c++defs.h
1129 build-aux/snippet/warn-on-use.h
1130 build-aux/useless-if-before-free
1131 build-aux/vc-list-files
1132 doc/gendocs_template
1139 lib/argp-fmtstream.c
1140 lib/argp-fmtstream.h
1163 lib/dirent-private.h
1203 lib/glthread/threadlib.c
1244 lib/rawmemchr.valgrind
1278 lib/strchrnul.valgrind
1280 lib/strerror-override.c
1281 lib/strerror-override.h
1309 lib/version-etc-fsf.c
1332 m4/double-slash-root.m4
1393 m4/ld-version-script.m4
1487 m4/valgrind-tests.m4
1491 m4/vfprintf-posix.m4
1510 tests/test-alloca-opt.c
1511 tests/test-argp-2.sh
1513 tests/test-arpa_inet.c
1515 tests/test-binary-io.c
1516 tests/test-binary-io.sh
1518 tests/test-byteswap.c
1519 tests/test-c-ctype.c
1521 tests/test-connect.c
1524 tests/test-environ.c
1526 tests/test-fcntl-h.c
1530 tests/test-fprintf-posix.h
1538 tests/test-fseek2.sh
1540 tests/test-fseeko.sh
1541 tests/test-fseeko2.sh
1542 tests/test-fseeko3.c
1543 tests/test-fseeko3.sh
1544 tests/test-fseeko4.c
1545 tests/test-fseeko4.sh
1546 tests/test-fseterr.c
1550 tests/test-ftell2.sh
1553 tests/test-ftello.sh
1554 tests/test-ftello2.sh
1555 tests/test-ftello3.c
1556 tests/test-ftello4.c
1557 tests/test-ftello4.sh
1558 tests/test-ftruncate.c
1559 tests/test-ftruncate.sh
1562 tests/test-getaddrinfo.c
1563 tests/test-getcwd-lgpl.c
1564 tests/test-getdelim.c
1565 tests/test-getline.c
1568 tests/test-getopt_long.h
1569 tests/test-getpeername.c
1570 tests/test-gettimeofday.c
1572 tests/test-ignore-value.c
1573 tests/test-inet_ntop.c
1574 tests/test-inet_pton.c
1576 tests/test-intprops.c
1577 tests/test-inttypes.c
1579 tests/test-isnand-nolibm.c
1581 tests/test-isnanf-nolibm.c
1583 tests/test-isnanl-nolibm.c
1588 tests/test-malloc-gnu.c
1589 tests/test-malloca.c
1593 tests/test-netinet_in.c
1596 tests/test-pathmax.c
1598 tests/test-perror.sh
1599 tests/test-perror2.c
1601 tests/test-printf-frexp.c
1602 tests/test-printf-frexpl.c
1603 tests/test-printf-posix.h
1604 tests/test-printf-posix.output
1605 tests/test-rawmemchr.c
1606 tests/test-read-file.c
1608 tests/test-recvfrom.c
1609 tests/test-select-fd.c
1610 tests/test-select-in.sh
1611 tests/test-select-out.sh
1612 tests/test-select-stdin.c
1618 tests/test-setsockopt.c
1619 tests/test-shutdown.c
1620 tests/test-signal-h.c
1621 tests/test-signbit.c
1623 tests/test-snprintf.c
1624 tests/test-sockets.c
1627 tests/test-stdalign.c
1628 tests/test-stdbool.c
1633 tests/test-strchrnul.c
1634 tests/test-strerror.c
1635 tests/test-strerror_r.c
1637 tests/test-strings.c
1638 tests/test-strnlen.c
1639 tests/test-strverscmp.c
1640 tests/test-symlink.c
1641 tests/test-symlink.h
1642 tests/test-sys_ioctl.c
1643 tests/test-sys_select.c
1644 tests/test-sys_socket.c
1645 tests/test-sys_stat.c
1646 tests/test-sys_time.c
1647 tests/test-sys_types.c
1648 tests/test-sys_uio.c
1649 tests/test-sys_wait.h
1650 tests/test-sysexits.c
1654 tests/test-unsetenv.c
1655 tests/test-vasnprintf.c
1656 tests/test-vasprintf.c
1657 tests/test-vc-list-files-cvs.sh
1658 tests/test-vc-list-files-git.sh
1660 tests/test-verify.sh
1661 tests/test-version-etc.c
1662 tests/test-version-etc.sh
1663 tests/test-vfprintf-posix.c
1664 tests/test-vfprintf-posix.sh
1665 tests/test-vprintf-posix.c
1666 tests/test-vprintf-posix.sh
1667 tests/test-vsnprintf.c
1669 tests/zerosize-ptr.h
1670 tests=lib/binary-io.c
1671 tests=lib/binary-io.h
1672 tests=lib/fcntl.in.h
1674 tests=lib/ftruncate.c
1675 tests=lib/getcwd-lgpl.c
1676 tests=lib/getpagesize.c
1677 tests=lib/glthread/lock.c
1678 tests=lib/glthread/lock.h
1679 tests=lib/ignore-value.h
1680 tests=lib/inttypes.in.h
1685 tests=lib/malloca.valgrind
1691 tests=lib/same-inode.h
1694 tests=lib/strerror_r.c
1696 tests=lib/sys_ioctl.in.h
1697 tests=lib/unsetenv.c