1 # DO NOT EDIT! GENERATED AUTOMATICALLY!
2 # Copyright (C) 2002-2014 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 absolute-header:
43 # Code from module accept:
44 # Code from module accept-tests:
45 # Code from module alloca:
46 # Code from module alloca-opt:
47 # Code from module alloca-opt-tests:
48 # Code from module allocator:
49 # Code from module areadlink:
50 # Code from module areadlink-tests:
51 # Code from module areadlink-with-size:
52 # Code from module areadlink-with-size-tests:
53 # Code from module areadlinkat:
54 # Code from module areadlinkat-tests:
55 # Code from module argmatch:
56 # Code from module argmatch-tests:
57 # Code from module arpa_inet:
58 # Code from module arpa_inet-tests:
59 # Code from module assert:
60 # Code from module at-internal:
61 # Code from module binary-io:
62 # Code from module binary-io-tests:
63 # Code from module bind:
64 # Code from module bind-tests:
65 # Code from module bitrotate:
66 # Code from module bitrotate-tests:
67 # Code from module btowc:
68 # Code from module btowc-tests:
69 # Code from module byteswap:
70 # Code from module byteswap-tests:
71 # Code from module c-ctype:
72 # Code from module c-ctype-tests:
73 # Code from module c-strcase:
74 # Code from module c-strcase-tests:
75 # Code from module c-strcaseeq:
76 # Code from module c-strcasestr:
77 # Code from module c-strcasestr-tests:
78 # Code from module c-strstr:
79 # Code from module c-strstr-tests:
80 # Code from module canonicalize:
81 # Code from module canonicalize-tests:
82 # Code from module careadlinkat:
83 # Code from module chdir:
84 # Code from module chdir-long:
85 # Code from module chdir-tests:
86 # Code from module clock-time:
87 # Code from module cloexec:
88 # Code from module cloexec-tests:
89 # Code from module close:
90 # Code from module close-stream:
91 # Code from module close-tests:
92 # Code from module closedir:
93 # Code from module closein:
94 # Code from module closein-tests:
95 # Code from module closeout:
96 # Code from module configmake:
97 # Code from module connect:
98 # Code from module connect-tests:
99 # Code from module ctype:
100 # Code from module ctype-tests:
101 # Code from module cycle-check:
102 # Code from module d-ino:
103 # Code from module d-type:
104 # Code from module dev-ino:
105 # Code from module dirent:
106 # Code from module dirent-safer:
107 # Code from module dirent-safer-tests:
108 # Code from module dirent-tests:
109 # Code from module dirfd:
110 # Code from module dirname:
111 # Code from module dirname-lgpl:
112 # Code from module dirname-tests:
113 # Code from module dosname:
114 # Code from module double-slash-root:
115 # Code from module dup:
116 # Code from module dup-tests:
117 # Code from module dup2:
118 # Code from module dup2-tests:
119 # Code from module environ:
120 # Code from module environ-tests:
121 # Code from module errno:
122 # Code from module errno-tests:
123 # Code from module error:
124 # Code from module euidaccess:
125 # Code from module exitfail:
126 # Code from module extensions:
127 AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
128 # Code from module extern-inline:
129 # Code from module faccessat:
130 # Code from module faccessat-tests:
131 # Code from module fchdir:
132 # Code from module fchdir-tests:
133 # Code from module fcntl:
134 # Code from module fcntl-h:
135 # Code from module fcntl-h-tests:
136 # Code from module fcntl-safer:
137 # Code from module fcntl-safer-tests:
138 # Code from module fcntl-tests:
139 # Code from module fd-hook:
140 # Code from module fd-safer-flag:
141 # Code from module fdl:
142 # Code from module fdopen:
143 # Code from module fdopen-tests:
144 # Code from module fdopendir:
145 # Code from module fdopendir-tests:
146 # Code from module fflush:
147 AC_REQUIRE([AC_FUNC_FSEEKO])
148 # Code from module fflush-tests:
149 # Code from module fgetc-tests:
150 # Code from module file-set:
151 # Code from module fileblocks:
152 # Code from module filemode:
153 # Code from module filename:
154 # Code from module filenamecat-lgpl:
155 # Code from module flexmember:
156 # Code from module float:
157 # Code from module float-tests:
158 # Code from module fnmatch:
159 # Code from module fnmatch-gnu:
160 # Code from module fnmatch-tests:
161 # Code from module fopen:
162 # Code from module fopen-safer:
163 # Code from module fopen-safer-tests:
164 # Code from module fopen-tests:
165 # Code from module fpending:
166 # Code from module fpending-tests:
167 # Code from module fpieee:
168 AC_REQUIRE([gl_FP_IEEE])
169 # Code from module fpucw:
170 # Code from module fpurge:
171 # Code from module fpurge-tests:
172 # Code from module fputc-tests:
173 # Code from module fread-tests:
174 # Code from module freadahead:
175 # Code from module freadahead-tests:
176 # Code from module freading:
177 # Code from module freading-tests:
178 # Code from module fseek:
179 # Code from module fseek-tests:
180 # Code from module fseeko:
181 AC_REQUIRE([AC_FUNC_FSEEKO])
182 # Code from module fseeko-tests:
183 # Code from module fstat:
184 # Code from module fstat-tests:
185 # Code from module fstatat:
186 # Code from module fstatat-tests:
187 # Code from module ftell:
188 # Code from module ftell-tests:
189 # Code from module ftello:
190 AC_REQUIRE([AC_FUNC_FSEEKO])
191 # Code from module ftello-tests:
192 # Code from module ftruncate:
193 # Code from module ftruncate-tests:
194 # Code from module fts:
195 # Code from module fwrite-tests:
196 # Code from module getcwd:
197 # Code from module getcwd-lgpl:
198 # Code from module getcwd-lgpl-tests:
199 # Code from module getcwd-tests:
200 # Code from module getdelim:
201 # Code from module getdelim-tests:
202 # Code from module getdtablesize:
203 # Code from module getdtablesize-tests:
204 # Code from module getgroups:
205 # Code from module getgroups-tests:
206 # Code from module gethostname:
207 # Code from module gethostname-tests:
208 # Code from module getline:
209 # Code from module getline-tests:
210 # Code from module getopt-gnu:
211 # Code from module getopt-posix:
212 # Code from module getopt-posix-tests:
213 # Code from module getpagesize:
214 # Code from module gettext:
215 # Code from module gettext-h:
216 # Code from module gettime:
217 # Code from module gettimeofday:
218 # Code from module gettimeofday-tests:
219 # Code from module gnumakefile:
220 # Code from module gpl-3.0:
221 # Code from module group-member:
222 # Code from module hash:
223 # Code from module hash-pjw:
224 # Code from module hash-tests:
225 # Code from module hash-triple:
226 # Code from module havelib:
227 # Code from module human:
228 # Code from module i-ring:
229 # Code from module i-ring-tests:
230 # Code from module idcache:
231 # Code from module ignore-value:
232 # Code from module ignore-value-tests:
233 # Code from module include_next:
234 # Code from module inet_pton:
235 # Code from module inet_pton-tests:
236 # Code from module inline:
237 # Code from module intprops:
238 # Code from module intprops-tests:
239 # Code from module inttostr:
240 # Code from module inttostr-tests:
241 # Code from module inttypes:
242 # Code from module inttypes-incomplete:
243 # Code from module inttypes-tests:
244 # Code from module ioctl:
245 # Code from module ioctl-tests:
246 # Code from module isblank:
247 # Code from module isblank-tests:
248 # Code from module isfinite:
249 # Code from module isfinite-tests:
250 # Code from module isinf:
251 # Code from module isinf-tests:
252 # Code from module isnand-nolibm:
253 # Code from module isnand-nolibm-tests:
254 # Code from module isnanf-nolibm:
255 # Code from module isnanf-nolibm-tests:
256 # Code from module isnanl-nolibm:
257 # Code from module isnanl-nolibm-tests:
258 # Code from module iswblank:
259 # Code from module iswblank-tests:
260 # Code from module langinfo:
261 # Code from module langinfo-tests:
262 # Code from module largefile:
263 AC_REQUIRE([AC_SYS_LARGEFILE])
264 # Code from module listen:
265 # Code from module listen-tests:
266 # Code from module localcharset:
267 # Code from module locale:
268 # Code from module locale-tests:
269 # Code from module localeconv:
270 # Code from module localeconv-tests:
271 # Code from module localename:
272 # Code from module localename-tests:
273 # Code from module lock:
274 # Code from module lock-tests:
275 # Code from module lseek:
276 # Code from module lseek-tests:
277 # Code from module lstat:
278 # Code from module lstat-tests:
279 # Code from module maintainer-makefile:
280 # Code from module malloc:
281 # Code from module malloc-gnu:
282 # Code from module malloc-gnu-tests:
283 # Code from module malloc-posix:
284 # Code from module malloca:
285 # Code from module malloca-tests:
286 # Code from module manywarnings:
287 # Code from module math:
288 # Code from module math-tests:
289 # Code from module mbchar:
290 # Code from module mbrtowc:
291 # Code from module mbrtowc-tests:
292 # Code from module mbscasestr:
293 # Code from module mbscasestr-tests:
294 # Code from module mbsinit:
295 # Code from module mbsinit-tests:
296 # Code from module mbslen:
297 # Code from module mbsrtowcs:
298 # Code from module mbsrtowcs-tests:
299 # Code from module mbsstr:
300 # Code from module mbsstr-tests:
301 # Code from module mbtowc:
302 # Code from module mbuiter:
303 # Code from module memchr:
304 # Code from module memchr-tests:
305 # Code from module mempcpy:
306 # Code from module memrchr:
307 # Code from module memrchr-tests:
308 # Code from module mktime:
309 # Code from module modechange:
310 # Code from module modf:
311 # Code from module modf-tests:
312 # Code from module mountlist:
313 # Code from module msvc-inval:
314 # Code from module msvc-nothrow:
315 # Code from module multiarch:
316 # Code from module nanosleep:
317 # Code from module nanosleep-tests:
318 # Code from module netinet_in:
319 # Code from module netinet_in-tests:
320 # Code from module nl_langinfo:
321 # Code from module nl_langinfo-tests:
322 # Code from module nocrash:
323 # Code from module open:
324 # Code from module open-tests:
325 # Code from module openat:
326 # Code from module openat-die:
327 # Code from module openat-h:
328 # Code from module openat-safer:
329 # Code from module openat-safer-tests:
330 # Code from module openat-tests:
331 # Code from module opendir:
332 # Code from module parse-datetime:
333 # Code from module parse-datetime-tests:
334 # Code from module pathmax:
335 # Code from module pathmax-tests:
336 # Code from module perror:
337 # Code from module perror-tests:
338 # Code from module pipe-posix:
339 # Code from module pipe-posix-tests:
340 # Code from module priv-set:
341 # Code from module priv-set-tests:
342 # Code from module progname:
343 # Code from module putenv:
344 # Code from module quote:
345 # Code from module quotearg:
346 # Code from module quotearg-simple:
347 # Code from module quotearg-simple-tests:
348 # Code from module raise:
349 # Code from module raise-tests:
350 # Code from module read:
351 # Code from module read-tests:
352 # Code from module readdir:
353 # Code from module readlink:
354 # Code from module readlink-tests:
355 # Code from module readlinkat:
356 # Code from module readlinkat-tests:
357 # Code from module realloc:
358 # Code from module realloc-gnu:
359 # Code from module realloc-gnu-tests:
360 # Code from module realloc-posix:
361 # Code from module regex:
362 # Code from module regex-tests:
363 # Code from module rewinddir:
364 # Code from module rmdir:
365 # Code from module rmdir-tests:
366 # Code from module root-uid:
367 # Code from module rpmatch:
368 # Code from module safe-read:
369 # Code from module same:
370 # Code from module same-inode:
371 # Code from module save-cwd:
372 # Code from module savedir:
373 # Code from module select:
374 # Code from module select-tests:
375 # Code from module selinux-at:
376 # Code from module selinux-h:
377 # Code from module setenv:
378 # Code from module setenv-tests:
379 # Code from module setlocale:
380 # Code from module setlocale-tests:
381 # Code from module setsockopt:
382 # Code from module setsockopt-tests:
383 # Code from module sigaction:
384 # Code from module sigaction-tests:
385 # Code from module signal-h:
386 # Code from module signal-h-tests:
387 # Code from module sigprocmask:
388 # Code from module sigprocmask-tests:
389 # Code from module size_max:
390 # Code from module sleep:
391 # Code from module sleep-tests:
392 # Code from module snippet/_Noreturn:
393 # Code from module snippet/arg-nonnull:
394 # Code from module snippet/c++defs:
395 # Code from module snippet/unused-parameter:
396 # Code from module snippet/warn-on-use:
397 # Code from module snprintf:
398 # Code from module snprintf-tests:
399 # Code from module socket:
400 # Code from module socketlib:
401 # Code from module sockets:
402 # Code from module sockets-tests:
403 # Code from module socklen:
404 # Code from module ssize_t:
405 # Code from module stat:
406 # Code from module stat-macros:
407 # Code from module stat-size:
408 # Code from module stat-tests:
409 # Code from module stat-time:
410 # Code from module stat-time-tests:
411 # Code from module statat:
412 # Code from module statat-tests:
413 # Code from module stdalign:
414 # Code from module stdalign-tests:
415 # Code from module stdarg:
416 dnl Some compilers (e.g., AIX 5.3 cc) need to be in c99 mode
417 dnl for the builtin va_copy to work. With Autoconf 2.60 or later,
418 dnl gl_PROG_CC_C99 arranges for this. With older Autoconf gl_PROG_CC_C99
419 dnl shouldn't hurt, though installers are on their own to set c99 mode.
421 # Code from module stdbool:
422 # Code from module stdbool-tests:
423 # Code from module stddef:
424 # Code from module stddef-tests:
425 # Code from module stdint:
426 # Code from module stdint-tests:
427 # Code from module stdio:
428 # Code from module stdio-tests:
429 # Code from module stdlib:
430 # Code from module stdlib-tests:
431 # Code from module stpcpy:
432 # Code from module strcase:
433 # Code from module strcasestr:
434 # Code from module strcasestr-simple:
435 # Code from module strcasestr-tests:
436 # Code from module strdup-posix:
437 # Code from module streq:
438 # Code from module strerror:
439 # Code from module strerror-override:
440 # Code from module strerror-tests:
441 # Code from module strerror_r-posix:
442 # Code from module strerror_r-posix-tests:
443 # Code from module strftime:
444 # Code from module strftime-tests:
445 # Code from module string:
446 # Code from module string-tests:
447 # Code from module strings:
448 # Code from module strings-tests:
449 # Code from module strndup:
450 # Code from module strnlen:
451 # Code from module strnlen-tests:
452 # Code from module strnlen1:
453 # Code from module strstr:
454 # Code from module strstr-simple:
455 # Code from module strstr-tests:
456 # Code from module strtol:
457 # Code from module strtol-tests:
458 # Code from module strtoul:
459 # Code from module strtoul-tests:
460 # Code from module strtoull:
461 # Code from module strtoull-tests:
462 # Code from module strtoumax:
463 # Code from module strtoumax-tests:
464 # Code from module symlink:
465 # Code from module symlink-tests:
466 # Code from module symlinkat:
467 # Code from module symlinkat-tests:
468 # Code from module sys_ioctl:
469 # Code from module sys_ioctl-tests:
470 # Code from module sys_select:
471 # Code from module sys_select-tests:
472 # Code from module sys_socket:
473 # Code from module sys_socket-tests:
474 # Code from module sys_stat:
475 # Code from module sys_stat-tests:
476 # Code from module sys_time:
477 # Code from module sys_time-tests:
478 # Code from module sys_types:
479 # Code from module sys_types-tests:
480 # Code from module sys_uio:
481 # Code from module sys_uio-tests:
482 # Code from module sys_utsname:
483 # Code from module sys_utsname-tests:
484 # Code from module sys_wait:
485 # Code from module sys_wait-tests:
486 # Code from module test-framework-sh:
487 # Code from module test-framework-sh-tests:
488 # Code from module thread:
489 # Code from module thread-tests:
490 # Code from module threadlib:
492 # Code from module time:
493 # Code from module time-tests:
494 # Code from module time_r:
495 # Code from module timespec:
496 # Code from module trunc:
497 # Code from module trunc-tests:
498 # Code from module uname:
499 # Code from module uname-tests:
500 # Code from module unistd:
501 # Code from module unistd-safer:
502 # Code from module unistd-safer-tests:
503 # Code from module unistd-tests:
504 # Code from module unitypes:
505 # Code from module uniwidth/base:
506 # Code from module uniwidth/width:
507 # Code from module uniwidth/width-tests:
508 # Code from module unlink:
509 # Code from module unlink-tests:
510 # Code from module unlinkat:
511 # Code from module unlinkat-tests:
512 # Code from module unlinkdir:
513 # Code from module unsetenv:
514 # Code from module unsetenv-tests:
515 # Code from module update-copyright:
516 # Code from module update-copyright-tests:
517 # Code from module useless-if-before-free:
518 # Code from module vasnprintf:
519 # Code from module vasnprintf-tests:
520 # Code from module vc-list-files:
521 # Code from module vc-list-files-tests:
522 # Code from module verify:
523 # Code from module verify-tests:
524 # Code from module version-etc:
525 # Code from module version-etc-fsf:
526 # Code from module version-etc-tests:
527 # Code from module warnings:
528 # Code from module wchar:
529 # Code from module wchar-tests:
530 # Code from module wcrtomb:
531 # Code from module wcrtomb-tests:
532 # Code from module wctob:
533 # Code from module wctomb:
534 # Code from module wctype-h:
535 # Code from module wctype-h-tests:
536 # Code from module wcwidth:
537 # Code from module wcwidth-tests:
538 # Code from module xalloc:
539 # Code from module xalloc-die:
540 # Code from module xalloc-die-tests:
541 # Code from module xalloc-oversized:
542 # Code from module xgetcwd:
543 # Code from module xsize:
544 # Code from module xstrndup:
545 # Code from module xstrtod:
546 # Code from module xstrtol:
547 # Code from module xstrtol-tests:
548 # Code from module xstrtoumax:
549 # Code from module xstrtoumax-tests:
550 # Code from module yesno:
551 # Code from module yesno-tests:
552 # Code from module yield:
555 # This macro should be invoked from ./configure.ac, in the section
556 # "Check for header files, types and library functions".
559 AM_CONDITIONAL([GL_COND_LIBTOOL], [false])
560 gl_cond_libtool=false
564 m4_pushdef([AC_LIBOBJ], m4_defn([gl_LIBOBJ]))
565 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gl_REPLACE_FUNCS]))
566 m4_pushdef([AC_LIBSOURCES], m4_defn([gl_LIBSOURCES]))
567 m4_pushdef([gl_LIBSOURCES_LIST], [])
568 m4_pushdef([gl_LIBSOURCES_DIR], [])
570 gl_source_base='gl/lib'
572 gl_MODULE_INDICATOR([areadlinkat])
574 AC_LIBOBJ([openat-proc])
576 if test $HAVE_BTOWC = 0 || test $REPLACE_BTOWC = 1; then
580 gl_WCHAR_MODULE_INDICATOR([btowc])
582 gl_FUNC_CANONICALIZE_FILENAME_MODE
583 gl_MODULE_INDICATOR([canonicalize])
584 gl_MODULE_INDICATOR_FOR_TESTS([canonicalize])
585 gl_STDLIB_MODULE_INDICATOR([canonicalize_file_name])
586 AC_CHECK_FUNCS_ONCE([readlinkat])
587 gl_UNISTD_MODULE_INDICATOR([chdir])
589 if test $gl_cv_have_arbitrary_file_name_length_limit = yes; then
590 AC_LIBOBJ([chdir-long])
594 gl_MODULE_INDICATOR_FOR_TESTS([cloexec])
596 if test $REPLACE_CLOSE = 1; then
599 gl_UNISTD_MODULE_INDICATOR([close])
601 gl_MODULE_INDICATOR([close-stream])
603 if test $HAVE_CLOSEDIR = 0 || test $REPLACE_CLOSEDIR = 1; then
604 AC_LIBOBJ([closedir])
606 gl_DIRENT_MODULE_INDICATOR([closedir])
612 gl_CHECK_TYPE_STRUCT_DIRENT_D_INO
613 gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE
616 gl_MODULE_INDICATOR([dirent-safer])
618 if test $ac_cv_func_dirfd = no && test $gl_cv_func_dirfd_macro = no; then
622 gl_DIRENT_MODULE_INDICATOR([dirfd])
624 gl_MODULE_INDICATOR([dirname])
628 if test $REPLACE_DUP = 1; then
632 gl_UNISTD_MODULE_INDICATOR([dup])
634 if test $HAVE_DUP2 = 0 || test $REPLACE_DUP2 = 1; then
638 gl_UNISTD_MODULE_INDICATOR([dup2])
640 gl_UNISTD_MODULE_INDICATOR([environ])
643 if test $ac_cv_lib_error_at_line = no; then
647 m4_ifdef([AM_XGETTEXT_OPTION],
648 [AM_][XGETTEXT_OPTION([--flag=error:3:c-format])
649 AM_][XGETTEXT_OPTION([--flag=error_at_line:5:c-format])])
651 if test $HAVE_EUIDACCESS = 0; then
652 AC_LIBOBJ([euidaccess])
655 gl_UNISTD_MODULE_INDICATOR([euidaccess])
656 AC_REQUIRE([gl_EXTERN_INLINE])
658 if test $HAVE_FACCESSAT = 0; then
659 AC_LIBOBJ([faccessat])
662 gl_MODULE_INDICATOR([faccessat])
663 gl_UNISTD_MODULE_INDICATOR([faccessat])
665 gl_UNISTD_MODULE_INDICATOR([fchdir])
667 if test $HAVE_FCNTL = 0 || test $REPLACE_FCNTL = 1; then
670 gl_FCNTL_MODULE_INDICATOR([fcntl])
673 gl_MODULE_INDICATOR([fcntl-safer])
675 if test $HAVE_FDOPENDIR = 0 || test $REPLACE_FDOPENDIR = 1; then
676 AC_LIBOBJ([fdopendir])
678 gl_DIRENT_MODULE_INDICATOR([fdopendir])
679 gl_MODULE_INDICATOR([fdopendir])
681 if test $REPLACE_FFLUSH = 1; then
685 gl_MODULE_INDICATOR([fflush])
686 gl_STDIO_MODULE_INDICATOR([fflush])
688 if test $ac_cv_member_struct_stat_st_blocks = no; then
689 AC_LIBOBJ([fileblocks])
693 gl_FILE_NAME_CONCAT_LGPL
694 AC_C_FLEXIBLE_ARRAY_MEMBER
696 if test $REPLACE_FLOAT_LDBL = 1; then
699 if test $REPLACE_ITOLD = 1; then
702 gl_FUNC_FNMATCH_POSIX
703 if test -n "$FNMATCH_H"; then
708 if test -n "$FNMATCH_H"; then
713 if test $REPLACE_FOPEN = 1; then
717 gl_STDIO_MODULE_INDICATOR([fopen])
718 gl_MODULE_INDICATOR([fopen-safer])
720 if test $gl_cv_func___fpending = no; then
721 AC_LIBOBJ([fpending])
725 if test $HAVE_FPURGE = 0 || test $REPLACE_FPURGE = 1; then
728 gl_STDIO_MODULE_INDICATOR([fpurge])
730 if test $ac_cv_func___freadahead = no; then
731 AC_LIBOBJ([freadahead])
735 if test $REPLACE_FSEEK = 1; then
738 gl_STDIO_MODULE_INDICATOR([fseek])
740 if test $HAVE_FSEEKO = 0 || test $REPLACE_FSEEKO = 1; then
744 gl_STDIO_MODULE_INDICATOR([fseeko])
746 if test $REPLACE_FSTAT = 1; then
750 gl_SYS_STAT_MODULE_INDICATOR([fstat])
752 if test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1; then
755 gl_SYS_STAT_MODULE_INDICATOR([fstatat])
757 if test $REPLACE_FTELL = 1; then
760 gl_STDIO_MODULE_INDICATOR([ftell])
762 if test $HAVE_FTELLO = 0 || test $REPLACE_FTELLO = 1; then
766 gl_STDIO_MODULE_INDICATOR([ftello])
768 dnl Use this version of fts unconditionally, since the GNU libc and
769 dnl NetBSD versions have bugs and/or unnecessary limitations.
772 if test $REPLACE_GETCWD = 1; then
776 gl_MODULE_INDICATOR([getcwd])
777 gl_UNISTD_MODULE_INDICATOR([getcwd])
779 if test $REPLACE_GETCWD = 1; then
780 AC_LIBOBJ([getcwd-lgpl])
782 gl_UNISTD_MODULE_INDICATOR([getcwd])
784 if test $HAVE_GETDELIM = 0 || test $REPLACE_GETDELIM = 1; then
785 AC_LIBOBJ([getdelim])
788 gl_STDIO_MODULE_INDICATOR([getdelim])
789 gl_FUNC_GETDTABLESIZE
790 if test $HAVE_GETDTABLESIZE = 0 || test $REPLACE_GETDTABLESIZE = 1; then
791 AC_LIBOBJ([getdtablesize])
792 gl_PREREQ_GETDTABLESIZE
794 gl_UNISTD_MODULE_INDICATOR([getdtablesize])
796 if test $HAVE_GETGROUPS = 0 || test $REPLACE_GETGROUPS = 1; then
797 AC_LIBOBJ([getgroups])
799 gl_UNISTD_MODULE_INDICATOR([getgroups])
801 if test $HAVE_GETHOSTNAME = 0; then
802 AC_LIBOBJ([gethostname])
803 gl_PREREQ_GETHOSTNAME
805 gl_UNISTD_MODULE_INDICATOR([gethostname])
807 if test $REPLACE_GETLINE = 1; then
811 gl_STDIO_MODULE_INDICATOR([getline])
813 if test $REPLACE_GETOPT = 1; then
817 dnl Arrange for unistd.h to include getopt.h.
818 GNULIB_GL_UNISTD_H_GETOPT=1
820 AC_SUBST([GNULIB_GL_UNISTD_H_GETOPT])
821 gl_MODULE_INDICATOR_FOR_TESTS([getopt-gnu])
823 if test $REPLACE_GETOPT = 1; then
827 dnl Arrange for unistd.h to include getopt.h.
828 GNULIB_GL_UNISTD_H_GETOPT=1
830 AC_SUBST([GNULIB_GL_UNISTD_H_GETOPT])
831 dnl you must add AM_GNU_GETTEXT([external]) or similar to configure.ac.
832 AM_GNU_GETTEXT_VERSION([0.18.1])
834 AC_SUBST([LTLIBINTL])
837 if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
838 AC_LIBOBJ([gettimeofday])
839 gl_PREREQ_GETTIMEOFDAY
841 gl_SYS_TIME_MODULE_INDICATOR([gettimeofday])
842 # Autoconf 2.61a.99 and earlier don't support linking a file only
843 # in VPATH builds. But since GNUmakefile is for maintainer use
844 # only, it does not matter if we skip the link with older autoconf.
845 # Automake 1.10.1 and earlier try to remove GNUmakefile in non-VPATH
846 # builds, so use a shell variable to bypass this.
847 GNUmakefile=GNUmakefile
848 m4_if(m4_version_compare([2.61a.100],
849 m4_defn([m4_PACKAGE_VERSION])), [1], [],
850 [AC_CONFIG_LINKS([$GNUmakefile:$GNUmakefile], [],
851 [GNUmakefile=$GNUmakefile])])
853 if test $HAVE_GROUP_MEMBER = 0; then
854 AC_LIBOBJ([group-member])
855 gl_PREREQ_GROUP_MEMBER
857 gl_UNISTD_MODULE_INDICATOR([group-member])
863 gl_INTTYPES_INCOMPLETE
865 if test $HAVE_ISBLANK = 0; then
868 gl_CTYPE_MODULE_INDICATOR([isblank])
870 if test $REPLACE_ISFINITE = 1; then
871 AC_LIBOBJ([isfinite])
873 gl_MATH_MODULE_INDICATOR([isfinite])
875 if test $REPLACE_ISINF = 1; then
878 gl_MATH_MODULE_INDICATOR([isinf])
879 gl_FUNC_ISNAND_NO_LIBM
880 if test $gl_func_isnand_no_libm != yes; then
884 gl_FUNC_ISNANF_NO_LIBM
885 if test $gl_func_isnanf_no_libm != yes; then
889 gl_FUNC_ISNANL_NO_LIBM
890 if test $gl_func_isnanl_no_libm != yes; then
895 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
898 if test $HAVE_ISWBLANK = 0 || test $REPLACE_ISWBLANK = 1; then
899 AC_LIBOBJ([iswblank])
902 gl_WCTYPE_MODULE_INDICATOR([iswblank])
904 AC_REQUIRE([gl_LARGEFILE])
906 LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\""
907 AC_SUBST([LOCALCHARSET_TESTS_ENVIRONMENT])
910 if test $REPLACE_LOCALECONV = 1; then
911 AC_LIBOBJ([localeconv])
914 gl_LOCALE_MODULE_INDICATOR([localeconv])
916 gl_MODULE_INDICATOR([lock])
918 if test $REPLACE_LSEEK = 1; then
921 gl_UNISTD_MODULE_INDICATOR([lseek])
923 if test $REPLACE_LSTAT = 1; then
927 gl_SYS_STAT_MODULE_INDICATOR([lstat])
928 AC_CONFIG_COMMANDS_PRE([m4_ifdef([AH_HEADER],
929 [AC_SUBST([CONFIG_INCLUDE], m4_defn([AH_HEADER]))])])
930 AC_REQUIRE([AC_PROG_SED])
932 if test $REPLACE_MALLOC = 1; then
935 gl_MODULE_INDICATOR([malloc-gnu])
937 if test $REPLACE_MALLOC = 1; then
940 gl_STDLIB_MODULE_INDICATOR([malloc-posix])
945 if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
949 gl_WCHAR_MODULE_INDICATOR([mbrtowc])
950 gl_STRING_MODULE_INDICATOR([mbscasestr])
952 if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
956 gl_WCHAR_MODULE_INDICATOR([mbsinit])
958 gl_STRING_MODULE_INDICATOR([mbslen])
960 if test $HAVE_MBSRTOWCS = 0 || test $REPLACE_MBSRTOWCS = 1; then
961 AC_LIBOBJ([mbsrtowcs])
962 AC_LIBOBJ([mbsrtowcs-state])
965 gl_WCHAR_MODULE_INDICATOR([mbsrtowcs])
966 gl_STRING_MODULE_INDICATOR([mbsstr])
968 if test $REPLACE_MBTOWC = 1; then
972 gl_STDLIB_MODULE_INDICATOR([mbtowc])
975 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
979 gl_STRING_MODULE_INDICATOR([memchr])
981 if test $HAVE_MEMPCPY = 0; then
985 gl_STRING_MODULE_INDICATOR([mempcpy])
987 if test $ac_cv_func_memrchr = no; then
991 gl_STRING_MODULE_INDICATOR([memrchr])
993 if test $REPLACE_MKTIME = 1; then
997 gl_TIME_MODULE_INDICATOR([mktime])
1000 if test $REPLACE_MODF = 1; then
1003 gl_MATH_MODULE_INDICATOR([modf])
1005 if test $gl_cv_list_mounted_fs = yes; then
1006 AC_LIBOBJ([mountlist])
1007 gl_PREREQ_MOUNTLIST_EXTRA
1010 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
1011 AC_LIBOBJ([msvc-inval])
1014 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
1015 AC_LIBOBJ([msvc-nothrow])
1019 if test $HAVE_NL_LANGINFO = 0 || test $REPLACE_NL_LANGINFO = 1; then
1020 AC_LIBOBJ([nl_langinfo])
1022 gl_LANGINFO_MODULE_INDICATOR([nl_langinfo])
1024 if test $REPLACE_OPEN = 1; then
1028 gl_FCNTL_MODULE_INDICATOR([open])
1030 if test $HAVE_OPENAT = 0 || test $REPLACE_OPENAT = 1; then
1034 gl_MODULE_INDICATOR([openat]) dnl for lib/getcwd.c
1035 gl_FCNTL_MODULE_INDICATOR([openat])
1037 gl_MODULE_INDICATOR([openat-safer])
1039 if test $HAVE_OPENDIR = 0 || test $REPLACE_OPENDIR = 1; then
1040 AC_LIBOBJ([opendir])
1042 gl_DIRENT_MODULE_INDICATOR([opendir])
1046 if test $REPLACE_PERROR = 1; then
1049 gl_STRING_MODULE_INDICATOR([perror])
1050 AC_CHECK_DECLS([program_invocation_name], [], [], [#include <errno.h>])
1051 AC_CHECK_DECLS([program_invocation_short_name], [], [], [#include <errno.h>])
1055 if test $REPLACE_READ = 1; then
1059 gl_UNISTD_MODULE_INDICATOR([read])
1061 if test $HAVE_READDIR = 0; then
1062 AC_LIBOBJ([readdir])
1064 gl_DIRENT_MODULE_INDICATOR([readdir])
1066 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
1067 AC_LIBOBJ([readlink])
1070 gl_UNISTD_MODULE_INDICATOR([readlink])
1072 if test $HAVE_READLINKAT = 0; then
1073 AC_LIBOBJ([readlinkat])
1075 gl_UNISTD_MODULE_INDICATOR([readlinkat])
1077 if test $REPLACE_REALLOC = 1; then
1078 AC_LIBOBJ([realloc])
1080 gl_MODULE_INDICATOR([realloc-gnu])
1081 gl_FUNC_REALLOC_POSIX
1082 if test $REPLACE_REALLOC = 1; then
1083 AC_LIBOBJ([realloc])
1085 gl_STDLIB_MODULE_INDICATOR([realloc-posix])
1087 if test $ac_use_included_regex = yes; then
1092 if test $HAVE_REWINDDIR = 0; then
1093 AC_LIBOBJ([rewinddir])
1095 gl_DIRENT_MODULE_INDICATOR([rewinddir])
1097 if test $REPLACE_RMDIR = 1; then
1100 gl_UNISTD_MODULE_INDICATOR([rmdir])
1102 if test $HAVE_RPMATCH = 0; then
1103 AC_LIBOBJ([rpmatch])
1106 gl_STDLIB_MODULE_INDICATOR([rpmatch])
1111 AC_CHECK_HEADERS([selinux/flask.h])
1112 AC_LIBOBJ([selinux-at])
1113 gl_HEADERS_SELINUX_SELINUX_H
1114 gl_HEADERS_SELINUX_CONTEXT_H
1115 if test "$with_selinux" != no && test "$ac_cv_header_selinux_selinux_h" = yes; then
1116 AC_LIBOBJ([getfilecon])
1119 if test $HAVE_SETENV = 0 || test $REPLACE_SETENV = 1; then
1122 gl_STDLIB_MODULE_INDICATOR([setenv])
1125 gl_STDIO_MODULE_INDICATOR([snprintf])
1126 gl_MODULE_INDICATOR([snprintf])
1132 if test $REPLACE_STAT = 1; then
1136 gl_SYS_STAT_MODULE_INDICATOR([stat])
1140 gl_MODULE_INDICATOR([statat]) dnl for lib/openat.h
1149 if test $HAVE_STPCPY = 0; then
1153 gl_STRING_MODULE_INDICATOR([stpcpy])
1155 if test $HAVE_STRCASECMP = 0; then
1156 AC_LIBOBJ([strcasecmp])
1157 gl_PREREQ_STRCASECMP
1159 if test $HAVE_STRNCASECMP = 0; then
1160 AC_LIBOBJ([strncasecmp])
1161 gl_PREREQ_STRNCASECMP
1164 if test $HAVE_STRCASESTR = 0 || test $REPLACE_STRCASESTR = 1; then
1165 AC_LIBOBJ([strcasestr])
1166 gl_PREREQ_STRCASESTR
1168 gl_FUNC_STRCASESTR_SIMPLE
1169 if test $HAVE_STRCASESTR = 0 || test $REPLACE_STRCASESTR = 1; then
1170 AC_LIBOBJ([strcasestr])
1171 gl_PREREQ_STRCASESTR
1173 gl_STRING_MODULE_INDICATOR([strcasestr])
1174 gl_FUNC_STRDUP_POSIX
1175 if test $ac_cv_func_strdup = no || test $REPLACE_STRDUP = 1; then
1179 gl_STRING_MODULE_INDICATOR([strdup])
1181 if test $REPLACE_STRERROR = 1; then
1182 AC_LIBOBJ([strerror])
1184 gl_MODULE_INDICATOR([strerror])
1185 gl_STRING_MODULE_INDICATOR([strerror])
1186 AC_REQUIRE([gl_HEADER_ERRNO_H])
1187 AC_REQUIRE([gl_FUNC_STRERROR_0])
1188 if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then
1189 AC_LIBOBJ([strerror-override])
1190 gl_PREREQ_SYS_H_WINSOCK2
1193 if test $HAVE_DECL_STRERROR_R = 0 || test $REPLACE_STRERROR_R = 1; then
1194 AC_LIBOBJ([strerror_r])
1195 gl_PREREQ_STRERROR_R
1197 gl_STRING_MODULE_INDICATOR([strerror_r])
1198 gl_FUNC_GNU_STRFTIME
1202 if test $HAVE_STRNDUP = 0 || test $REPLACE_STRNDUP = 1; then
1203 AC_LIBOBJ([strndup])
1205 gl_STRING_MODULE_INDICATOR([strndup])
1207 if test $HAVE_DECL_STRNLEN = 0 || test $REPLACE_STRNLEN = 1; then
1208 AC_LIBOBJ([strnlen])
1211 gl_STRING_MODULE_INDICATOR([strnlen])
1213 if test $REPLACE_STRSTR = 1; then
1216 gl_FUNC_STRSTR_SIMPLE
1217 if test $REPLACE_STRSTR = 1; then
1220 gl_STRING_MODULE_INDICATOR([strstr])
1222 if test $ac_cv_func_strtol = no; then
1226 if test $ac_cv_func_strtoul = no; then
1227 AC_LIBOBJ([strtoul])
1230 if test $HAVE_STRTOULL = 0; then
1231 AC_LIBOBJ([strtoull])
1234 gl_STDLIB_MODULE_INDICATOR([strtoull])
1236 if test $HAVE_DECL_STRTOUMAX = 0 || test $REPLACE_STRTOUMAX = 1; then
1237 AC_LIBOBJ([strtoumax])
1240 gl_INTTYPES_MODULE_INDICATOR([strtoumax])
1241 gl_HEADER_SYS_SOCKET
1243 gl_HEADER_SYS_STAT_H
1245 gl_HEADER_SYS_TIME_H
1258 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
1262 gl_TIME_MODULE_INDICATOR([time_r])
1265 if test $HAVE_DECL_TRUNC = 0 || test $REPLACE_TRUNC = 1; then
1268 gl_MATH_MODULE_INDICATOR([trunc])
1270 if test $HAVE_UNAME = 0; then
1274 gl_SYS_UTSNAME_MODULE_INDICATOR([uname])
1277 gl_LIBUNISTRING_LIBHEADER([0.9], [unitypes.h])
1278 gl_LIBUNISTRING_LIBHEADER([0.9], [uniwidth.h])
1279 gl_LIBUNISTRING_MODULE([0.9.4], [uniwidth/width])
1281 if test $REPLACE_UNLINK = 1; then
1284 gl_UNISTD_MODULE_INDICATOR([unlink])
1286 if test $HAVE_UNLINKAT = 0 || test $REPLACE_UNLINKAT = 1; then
1287 AC_LIBOBJ([unlinkat])
1289 gl_UNISTD_MODULE_INDICATOR([unlinkat])
1291 if test $HAVE_UNSETENV = 0 || test $REPLACE_UNSETENV = 1; then
1292 AC_LIBOBJ([unsetenv])
1295 gl_STDLIB_MODULE_INDICATOR([unsetenv])
1300 if test $HAVE_WCRTOMB = 0 || test $REPLACE_WCRTOMB = 1; then
1301 AC_LIBOBJ([wcrtomb])
1304 gl_WCHAR_MODULE_INDICATOR([wcrtomb])
1307 if test $HAVE_WCWIDTH = 0 || test $REPLACE_WCWIDTH = 1; then
1308 AC_LIBOBJ([wcwidth])
1310 gl_WCHAR_MODULE_INDICATOR([wcwidth])
1318 # End of code from modules
1319 m4_ifval(gl_LIBSOURCES_LIST, [
1320 m4_syscmd([test ! -d ]m4_defn([gl_LIBSOURCES_DIR])[ ||
1321 for gl_file in ]gl_LIBSOURCES_LIST[ ; do
1322 if test ! -r ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file ; then
1323 echo "missing file ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file" >&2
1327 m4_if(m4_sysval, [0], [],
1328 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
1330 m4_popdef([gl_LIBSOURCES_DIR])
1331 m4_popdef([gl_LIBSOURCES_LIST])
1332 m4_popdef([AC_LIBSOURCES])
1333 m4_popdef([AC_REPLACE_FUNCS])
1334 m4_popdef([AC_LIBOBJ])
1335 AC_CONFIG_COMMANDS_PRE([
1338 if test -n "$gl_LIBOBJS"; then
1339 # Remove the extension.
1340 sed_drop_objext='s/\.o$//;s/\.obj$//'
1341 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
1342 gl_libobjs="$gl_libobjs $i.$ac_objext"
1343 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
1346 AC_SUBST([gl_LIBOBJS], [$gl_libobjs])
1347 AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs])
1351 m4_pushdef([AC_LIBOBJ], m4_defn([gltests_LIBOBJ]))
1352 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gltests_REPLACE_FUNCS]))
1353 m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES]))
1354 m4_pushdef([gltests_LIBSOURCES_LIST], [])
1355 m4_pushdef([gltests_LIBSOURCES_DIR], [])
1357 gl_source_base='tests'
1359 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
1360 changequote([, ])dnl
1361 AC_SUBST([gltests_WITNESS])
1362 gl_module_indicator_condition=$gltests_WITNESS
1363 m4_pushdef([gl_MODULE_INDICATOR_CONDITION], [$gl_module_indicator_condition])
1364 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
1365 if test "$ac_cv_header_winsock2_h" = yes; then
1368 gl_SYS_SOCKET_MODULE_INDICATOR([accept])
1371 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
1372 if test "$ac_cv_header_winsock2_h" = yes; then
1375 gl_SYS_SOCKET_MODULE_INDICATOR([bind])
1380 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
1381 if test "$ac_cv_header_winsock2_h" = yes; then
1382 AC_LIBOBJ([connect])
1384 gl_SYS_SOCKET_MODULE_INDICATOR([connect])
1385 gl_MODULE_INDICATOR([fd-safer-flag])
1387 if test $REPLACE_FDOPEN = 1; then
1391 gl_STDIO_MODULE_INDICATOR([fdopen])
1392 gl_FUNC_UNGETC_WORKS
1393 gl_FUNC_UNGETC_WORKS
1394 gl_FUNC_UNGETC_WORKS
1395 gl_FUNC_UNGETC_WORKS
1397 if test $HAVE_FTRUNCATE = 0 || test $REPLACE_FTRUNCATE = 1; then
1398 AC_LIBOBJ([ftruncate])
1401 gl_UNISTD_MODULE_INDICATOR([ftruncate])
1403 if test $REPLACE_GETPAGESIZE = 1; then
1404 AC_LIBOBJ([getpagesize])
1406 gl_UNISTD_MODULE_INDICATOR([getpagesize])
1408 if test $HAVE_INET_PTON = 0 || test $REPLACE_INET_NTOP = 1; then
1409 AC_LIBOBJ([inet_pton])
1412 gl_ARPA_INET_MODULE_INDICATOR([inet_pton])
1416 if test $HAVE_IOCTL = 0 || test $REPLACE_IOCTL = 1; then
1419 gl_SYS_IOCTL_MODULE_INDICATOR([ioctl])
1420 gl_FLOAT_EXPONENT_LOCATION
1421 gl_DOUBLE_EXPONENT_LOCATION
1422 gl_LONG_DOUBLE_EXPONENT_LOCATION
1423 AC_REQUIRE([gl_LONG_DOUBLE_VS_DOUBLE])
1424 gl_FLOAT_EXPONENT_LOCATION
1425 gl_DOUBLE_EXPONENT_LOCATION
1426 gl_LONG_DOUBLE_EXPONENT_LOCATION
1427 AC_REQUIRE([gl_LONG_DOUBLE_VS_DOUBLE])
1428 gl_DOUBLE_EXPONENT_LOCATION
1429 gl_FLOAT_EXPONENT_LOCATION
1430 gl_LONG_DOUBLE_EXPONENT_LOCATION
1431 AC_REQUIRE([gl_LONG_DOUBLE_VS_DOUBLE])
1432 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
1433 if test "$ac_cv_header_winsock2_h" = yes; then
1436 gl_SYS_SOCKET_MODULE_INDICATOR([listen])
1437 AC_CHECK_FUNCS_ONCE([newlocale])
1439 AC_CHECK_FUNCS_ONCE([newlocale])
1454 dnl Check for prerequisites for memory fence checks.
1456 AC_CHECK_HEADERS_ONCE([sys/mman.h])
1457 AC_CHECK_FUNCS_ONCE([mprotect])
1459 AC_CHECK_HEADERS_ONCE([sys/mman.h])
1460 AC_CHECK_FUNCS_ONCE([mprotect])
1462 if test $HAVE_NANOSLEEP = 0 || test $REPLACE_NANOSLEEP = 1; then
1463 AC_LIBOBJ([nanosleep])
1466 gl_TIME_MODULE_INDICATOR([nanosleep])
1467 AC_CHECK_DECLS_ONCE([alarm])
1468 gl_HEADER_NETINET_IN
1473 if test $HAVE_PIPE = 0; then
1476 gl_UNISTD_MODULE_INDICATOR([pipe])
1479 if test $REPLACE_PUTENV = 1; then
1483 gl_STDLIB_MODULE_INDICATOR([putenv])
1484 dnl Check for prerequisites for memory fence checks.
1485 dnl FIXME: zerosize-ptr.h requires these: make a module for it
1487 AC_CHECK_HEADERS_ONCE([sys/mman.h])
1488 AC_CHECK_FUNCS_ONCE([mprotect])
1490 if test $HAVE_RAISE = 0 || test $REPLACE_RAISE = 1; then
1494 gl_SIGNAL_MODULE_INDICATOR([raise])
1496 if test $REPLACE_SELECT = 1; then
1499 gl_SYS_SELECT_MODULE_INDICATOR([select])
1500 AC_CHECK_HEADERS_ONCE([sys/wait.h])
1502 if test $REPLACE_SETLOCALE = 1; then
1503 AC_LIBOBJ([setlocale])
1506 gl_LOCALE_MODULE_INDICATOR([setlocale])
1511 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
1512 if test "$ac_cv_header_winsock2_h" = yes; then
1513 AC_LIBOBJ([setsockopt])
1515 gl_SYS_SOCKET_MODULE_INDICATOR([setsockopt])
1517 if test $HAVE_SIGACTION = 0; then
1518 AC_LIBOBJ([sigaction])
1521 gl_SIGNAL_MODULE_INDICATOR([sigaction])
1524 if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
1525 AC_LIBOBJ([sigprocmask])
1526 gl_PREREQ_SIGPROCMASK
1528 gl_SIGNAL_MODULE_INDICATOR([sigprocmask])
1530 if test $HAVE_SLEEP = 0 || test $REPLACE_SLEEP = 1; then
1533 gl_UNISTD_MODULE_INDICATOR([sleep])
1534 AC_CHECK_DECLS_ONCE([alarm])
1535 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
1536 if test "$ac_cv_header_winsock2_h" = yes; then
1539 # When this module is used, sockets may actually occur as file descriptors,
1540 # hence it is worth warning if the modules 'close' and 'ioctl' are not used.
1541 m4_ifdef([gl_UNISTD_H_DEFAULTS], [AC_REQUIRE([gl_UNISTD_H_DEFAULTS])])
1542 m4_ifdef([gl_SYS_IOCTL_H_DEFAULTS], [AC_REQUIRE([gl_SYS_IOCTL_H_DEFAULTS])])
1543 AC_REQUIRE([gl_PREREQ_SYS_H_WINSOCK2])
1544 if test "$ac_cv_header_winsock2_h" = yes; then
1545 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=1
1546 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=1
1548 gl_SYS_SOCKET_MODULE_INDICATOR([socket])
1549 AC_REQUIRE([gt_TYPE_WCHAR_T])
1550 AC_REQUIRE([gt_TYPE_WINT_T])
1551 AC_CHECK_DECLS_ONCE([alarm])
1552 dnl Check for prerequisites for memory fence checks.
1554 AC_CHECK_HEADERS_ONCE([sys/mman.h])
1555 AC_CHECK_FUNCS_ONCE([mprotect])
1556 AC_CHECK_DECLS_ONCE([alarm])
1558 AC_CHECK_HEADERS_ONCE([sys/mman.h])
1559 AC_CHECK_FUNCS_ONCE([mprotect])
1561 if test $HAVE_SYMLINK = 0 || test $REPLACE_SYMLINK = 1; then
1562 AC_LIBOBJ([symlink])
1564 gl_UNISTD_MODULE_INDICATOR([symlink])
1566 if test $HAVE_SYMLINKAT = 0; then
1567 AC_LIBOBJ([symlinkat])
1569 gl_UNISTD_MODULE_INDICATOR([symlinkat])
1572 gl_HEADER_SYS_SELECT
1574 AC_CHECK_FUNCS_ONCE([shutdown])
1577 abs_aux_dir=`cd "$ac_aux_dir"; pwd`
1578 AC_SUBST([abs_aux_dir])
1579 abs_aux_dir=`cd "$ac_aux_dir"; pwd`
1580 AC_SUBST([abs_aux_dir])
1586 if test $HAVE_WCTOB = 0 || test $REPLACE_WCTOB = 1; then
1590 gl_WCHAR_MODULE_INDICATOR([wctob])
1592 if test $REPLACE_WCTOMB = 1; then
1596 gl_STDLIB_MODULE_INDICATOR([wctomb])
1598 m4_popdef([gl_MODULE_INDICATOR_CONDITION])
1599 m4_ifval(gltests_LIBSOURCES_LIST, [
1600 m4_syscmd([test ! -d ]m4_defn([gltests_LIBSOURCES_DIR])[ ||
1601 for gl_file in ]gltests_LIBSOURCES_LIST[ ; do
1602 if test ! -r ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file ; then
1603 echo "missing file ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file" >&2
1607 m4_if(m4_sysval, [0], [],
1608 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
1610 m4_popdef([gltests_LIBSOURCES_DIR])
1611 m4_popdef([gltests_LIBSOURCES_LIST])
1612 m4_popdef([AC_LIBSOURCES])
1613 m4_popdef([AC_REPLACE_FUNCS])
1614 m4_popdef([AC_LIBOBJ])
1615 AC_CONFIG_COMMANDS_PRE([
1618 if test -n "$gltests_LIBOBJS"; then
1619 # Remove the extension.
1620 sed_drop_objext='s/\.o$//;s/\.obj$//'
1621 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
1622 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
1623 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
1626 AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs])
1627 AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs])
1629 LIBGNULIB_LIBDEPS="$gl_libdeps"
1630 AC_SUBST([LIBGNULIB_LIBDEPS])
1631 LIBGNULIB_LTLIBDEPS="$gl_ltlibdeps"
1632 AC_SUBST([LIBGNULIB_LTLIBDEPS])
1633 LIBTESTS_LIBDEPS="$gltests_libdeps"
1634 AC_SUBST([LIBTESTS_LIBDEPS])
1637 # Like AC_LIBOBJ, except that the module name goes
1638 # into gl_LIBOBJS instead of into LIBOBJS.
1639 AC_DEFUN([gl_LIBOBJ], [
1640 AS_LITERAL_IF([$1], [gl_LIBSOURCES([$1.c])])dnl
1641 gl_LIBOBJS="$gl_LIBOBJS $1.$ac_objext"
1644 # Like AC_REPLACE_FUNCS, except that the module name goes
1645 # into gl_LIBOBJS instead of into LIBOBJS.
1646 AC_DEFUN([gl_REPLACE_FUNCS], [
1647 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
1648 AC_CHECK_FUNCS([$1], , [gl_LIBOBJ($ac_func)])
1651 # Like AC_LIBSOURCES, except the directory where the source file is
1652 # expected is derived from the gnulib-tool parameterization,
1653 # and alloca is special cased (for the alloca-opt module).
1654 # We could also entirely rely on EXTRA_lib..._SOURCES.
1655 AC_DEFUN([gl_LIBSOURCES], [
1656 m4_foreach([_gl_NAME], [$1], [
1657 m4_if(_gl_NAME, [alloca.c], [], [
1658 m4_define([gl_LIBSOURCES_DIR], [gl/lib])
1659 m4_append([gl_LIBSOURCES_LIST], _gl_NAME, [ ])
1664 # Like AC_LIBOBJ, except that the module name goes
1665 # into gltests_LIBOBJS instead of into LIBOBJS.
1666 AC_DEFUN([gltests_LIBOBJ], [
1667 AS_LITERAL_IF([$1], [gltests_LIBSOURCES([$1.c])])dnl
1668 gltests_LIBOBJS="$gltests_LIBOBJS $1.$ac_objext"
1671 # Like AC_REPLACE_FUNCS, except that the module name goes
1672 # into gltests_LIBOBJS instead of into LIBOBJS.
1673 AC_DEFUN([gltests_REPLACE_FUNCS], [
1674 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
1675 AC_CHECK_FUNCS([$1], , [gltests_LIBOBJ($ac_func)])
1678 # Like AC_LIBSOURCES, except the directory where the source file is
1679 # expected is derived from the gnulib-tool parameterization,
1680 # and alloca is special cased (for the alloca-opt module).
1681 # We could also entirely rely on EXTRA_lib..._SOURCES.
1682 AC_DEFUN([gltests_LIBSOURCES], [
1683 m4_foreach([_gl_NAME], [$1], [
1684 m4_if(_gl_NAME, [alloca.c], [], [
1685 m4_define([gltests_LIBSOURCES_DIR], [tests])
1686 m4_append([gltests_LIBSOURCES_LIST], _gl_NAME, [ ])
1691 # This macro records the list of files which have been installed by
1692 # gnulib-tool and may be removed by future gnulib-tool invocations.
1693 AC_DEFUN([gl_FILE_LIST], [
1694 build-aux/config.rpath
1695 build-aux/snippet/_Noreturn.h
1696 build-aux/snippet/arg-nonnull.h
1697 build-aux/snippet/c++defs.h
1698 build-aux/snippet/unused-parameter.h
1699 build-aux/snippet/warn-on-use.h
1700 build-aux/update-copyright
1701 build-aux/useless-if-before-free
1702 build-aux/vc-list-files
1705 doc/parse-datetime.texi
1710 lib/areadlink-with-size.c
1757 lib/dirent-private.h
1791 lib/filenamecat-lgpl.c
1834 lib/glthread/threadlib.c
1872 lib/malloca.valgrind
1881 lib/mbsrtowcs-impl.h
1882 lib/mbsrtowcs-state.c
1893 lib/mktime-internal.h
1915 lib/parse-datetime.h
1916 lib/parse-datetime.y
1939 lib/regex_internal.c
1940 lib/regex_internal.h
1989 lib/strerror-override.c
1990 lib/strerror-override.h
2015 lib/sys_utsname.in.h
2030 lib/uniwidth/width.c
2037 lib/version-etc-fsf.c
2047 lib/xalloc-oversized.h
2066 m4/absolute-header.m4
2075 m4/check-math-lib.m4
2092 m4/double-slash-root.m4
2135 m4/getcwd-abort-bug.m4
2136 m4/getcwd-path-max.m4
2183 m4/libunistring-base.m4
2232 m4/parse-datetime.m4
2259 m4/selinux-context-h.m4
2260 m4/selinux-selinux-h.m4
2265 m4/signalblocking.m4
2358 tests/test-alloca-opt.c
2359 tests/test-areadlink-with-size.c
2360 tests/test-areadlink.c
2361 tests/test-areadlink.h
2362 tests/test-areadlinkat.c
2363 tests/test-argmatch.c
2364 tests/test-arpa_inet.c
2365 tests/test-binary-io.c
2366 tests/test-binary-io.sh
2368 tests/test-bitrotate.c
2370 tests/test-btowc1.sh
2371 tests/test-btowc2.sh
2372 tests/test-byteswap.c
2373 tests/test-c-ctype.c
2374 tests/test-c-strcase.sh
2375 tests/test-c-strcasecmp.c
2376 tests/test-c-strcasestr.c
2377 tests/test-c-strncasecmp.c
2378 tests/test-c-strstr.c
2379 tests/test-canonicalize.c
2381 tests/test-cloexec.c
2383 tests/test-closein.c
2384 tests/test-closein.sh
2385 tests/test-connect.c
2387 tests/test-dirent-safer.c
2389 tests/test-dirname.c
2390 tests/test-dup-safer.c
2393 tests/test-environ.c
2395 tests/test-faccessat.c
2397 tests/test-fcntl-h.c
2398 tests/test-fcntl-safer.c
2401 tests/test-fdopendir.c
2403 tests/test-fflush2.c
2404 tests/test-fflush2.sh
2407 tests/test-fnmatch.c
2408 tests/test-fopen-safer.c
2411 tests/test-fpending.c
2412 tests/test-fpending.sh
2416 tests/test-freadahead.c
2417 tests/test-freadahead.sh
2418 tests/test-freading.c
2421 tests/test-fseek2.sh
2423 tests/test-fseeko.sh
2424 tests/test-fseeko2.sh
2425 tests/test-fseeko3.c
2426 tests/test-fseeko3.sh
2427 tests/test-fseeko4.c
2428 tests/test-fseeko4.sh
2430 tests/test-fstatat.c
2433 tests/test-ftell2.sh
2436 tests/test-ftello.sh
2437 tests/test-ftello2.sh
2438 tests/test-ftello3.c
2439 tests/test-ftello4.c
2440 tests/test-ftello4.sh
2441 tests/test-ftruncate.c
2442 tests/test-ftruncate.sh
2444 tests/test-getcwd-lgpl.c
2446 tests/test-getcwd.sh
2447 tests/test-getdelim.c
2448 tests/test-getdtablesize.c
2449 tests/test-getgroups.c
2450 tests/test-gethostname.c
2451 tests/test-getline.c
2454 tests/test-getopt_long.h
2455 tests/test-gettimeofday.c
2458 tests/test-ignore-value.c
2459 tests/test-inet_pton.c
2461 tests/test-intprops.c
2462 tests/test-inttostr.c
2463 tests/test-inttypes.c
2465 tests/test-isblank.c
2466 tests/test-isfinite.c
2468 tests/test-isnand-nolibm.c
2470 tests/test-isnanf-nolibm.c
2472 tests/test-isnanl-nolibm.c
2474 tests/test-iswblank.c
2475 tests/test-langinfo.c
2478 tests/test-localeconv.c
2479 tests/test-localename.c
2485 tests/test-malloc-gnu.c
2486 tests/test-malloca.c
2488 tests/test-mbrtowc-w32-1.sh
2489 tests/test-mbrtowc-w32-2.sh
2490 tests/test-mbrtowc-w32-3.sh
2491 tests/test-mbrtowc-w32-4.sh
2492 tests/test-mbrtowc-w32-5.sh
2493 tests/test-mbrtowc-w32.c
2494 tests/test-mbrtowc.c
2495 tests/test-mbrtowc1.sh
2496 tests/test-mbrtowc2.sh
2497 tests/test-mbrtowc3.sh
2498 tests/test-mbrtowc4.sh
2499 tests/test-mbscasestr1.c
2500 tests/test-mbscasestr2.c
2501 tests/test-mbscasestr2.sh
2502 tests/test-mbscasestr3.c
2503 tests/test-mbscasestr3.sh
2504 tests/test-mbscasestr4.c
2505 tests/test-mbscasestr4.sh
2506 tests/test-mbsinit.c
2507 tests/test-mbsinit.sh
2508 tests/test-mbsrtowcs.c
2509 tests/test-mbsrtowcs1.sh
2510 tests/test-mbsrtowcs2.sh
2511 tests/test-mbsrtowcs3.sh
2512 tests/test-mbsrtowcs4.sh
2513 tests/test-mbsstr1.c
2514 tests/test-mbsstr2.c
2515 tests/test-mbsstr2.sh
2516 tests/test-mbsstr3.c
2517 tests/test-mbsstr3.sh
2519 tests/test-memrchr.c
2522 tests/test-nanosleep.c
2523 tests/test-netinet_in.c
2524 tests/test-nl_langinfo.c
2525 tests/test-nl_langinfo.sh
2528 tests/test-openat-safer.c
2530 tests/test-parse-datetime.c
2531 tests/test-pathmax.c
2533 tests/test-perror.sh
2534 tests/test-perror2.c
2536 tests/test-priv-set.c
2537 tests/test-quotearg-simple.c
2538 tests/test-quotearg.h
2541 tests/test-readlink.c
2542 tests/test-readlink.h
2543 tests/test-readlinkat.c
2544 tests/test-realloc-gnu.c
2548 tests/test-select-fd.c
2549 tests/test-select-in.sh
2550 tests/test-select-out.sh
2551 tests/test-select-stdin.c
2555 tests/test-setlocale1.c
2556 tests/test-setlocale1.sh
2557 tests/test-setlocale2.c
2558 tests/test-setlocale2.sh
2559 tests/test-setsockopt.c
2560 tests/test-sigaction.c
2561 tests/test-signal-h.c
2562 tests/test-sigprocmask.c
2564 tests/test-snprintf.c
2565 tests/test-sockets.c
2566 tests/test-stat-time.c
2570 tests/test-stdalign.c
2571 tests/test-stdbool.c
2576 tests/test-strcasestr.c
2577 tests/test-strerror.c
2578 tests/test-strerror_r.c
2579 tests/test-strftime.c
2581 tests/test-strings.c
2582 tests/test-strnlen.c
2585 tests/test-strtoul.c
2586 tests/test-strtoull.c
2587 tests/test-strtoumax.c
2588 tests/test-symlink.c
2589 tests/test-symlink.h
2590 tests/test-symlinkat.c
2591 tests/test-sys_ioctl.c
2592 tests/test-sys_select.c
2593 tests/test-sys_socket.c
2594 tests/test-sys_stat.c
2595 tests/test-sys_time.c
2596 tests/test-sys_types.c
2597 tests/test-sys_uio.c
2598 tests/test-sys_utsname.c
2599 tests/test-sys_wait.c
2600 tests/test-sys_wait.h
2601 tests/test-thread_create.c
2602 tests/test-thread_self.c
2610 tests/test-unlinkat.c
2611 tests/test-unsetenv.c
2612 tests/test-update-copyright.sh
2613 tests/test-vasnprintf.c
2614 tests/test-vc-list-files-cvs.sh
2615 tests/test-vc-list-files-git.sh
2617 tests/test-verify.sh
2618 tests/test-version-etc.c
2619 tests/test-version-etc.sh
2621 tests/test-wcrtomb-w32-1.sh
2622 tests/test-wcrtomb-w32-2.sh
2623 tests/test-wcrtomb-w32-3.sh
2624 tests/test-wcrtomb-w32-4.sh
2625 tests/test-wcrtomb-w32-5.sh
2626 tests/test-wcrtomb-w32.c
2627 tests/test-wcrtomb.c
2628 tests/test-wcrtomb.sh
2629 tests/test-wctype-h.c
2630 tests/test-wcwidth.c
2631 tests/test-xalloc-die.c
2632 tests/test-xalloc-die.sh
2633 tests/test-xstrtol.c
2634 tests/test-xstrtol.sh
2635 tests/test-xstrtoul.c
2636 tests/test-xstrtoumax.c
2637 tests/test-xstrtoumax.sh
2640 tests/uniwidth/test-uc_width.c
2641 tests/uniwidth/test-uc_width2.c
2642 tests/uniwidth/test-uc_width2.sh
2643 tests/zerosize-ptr.h
2645 tests=lib/anytostr.c
2646 tests=lib/arpa_inet.in.h
2648 tests=lib/binary-io.c
2649 tests=lib/binary-io.h
2652 tests=lib/dup-safer-flag.c
2653 tests=lib/fd-safer-flag.c
2656 tests=lib/ftruncate.c
2657 tests=lib/getpagesize.c
2658 tests=lib/glthread/thread.c
2659 tests=lib/glthread/thread.h
2660 tests=lib/glthread/yield.h
2661 tests=lib/ignore-value.h
2662 tests=lib/imaxtostr.c
2663 tests=lib/inet_pton.c
2664 tests=lib/inttostr.c
2665 tests=lib/inttostr.h
2668 tests=lib/localename.c
2669 tests=lib/localename.h
2670 tests=lib/nanosleep.c
2671 tests=lib/netinet_in.in.h
2672 tests=lib/offtostr.c
2674 tests=lib/priv-set.c
2675 tests=lib/priv-set.h
2679 tests=lib/setlocale.c
2680 tests=lib/setsockopt.c
2681 tests=lib/sig-handler.c
2682 tests=lib/sig-handler.h
2683 tests=lib/sigaction.c
2684 tests=lib/signal.in.h
2685 tests=lib/sigprocmask.c
2689 tests=lib/symlinkat.c
2690 tests=lib/sys_ioctl.in.h
2691 tests=lib/sys_select.in.h
2692 tests=lib/uinttostr.c
2693 tests=lib/umaxtostr.c
2694 tests=lib/unlinkdir.c
2695 tests=lib/unlinkdir.h
2698 tests=lib/wctomb-impl.h