Imported Upstream version 3.8
[platform/upstream/diffutils.git] / m4 / gnulib-comp.m4
1 # DO NOT EDIT! GENERATED AUTOMATICALLY!
2 # Copyright (C) 2002-2021 Free Software Foundation, Inc.
3 #
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.
8 #
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.
13 #
14 # You should have received a copy of the GNU General Public License
15 # along with this file.  If not, see <https://www.gnu.org/licenses/>.
16 #
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.
21 #
22 # Generated by gnulib-tool.
23 #
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
28 # other built files.
29
30
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.
34 AC_DEFUN([gl_EARLY],
35 [
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
41   # Pre-early section.
42   AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
43   AC_REQUIRE([gl_PROG_AR_RANLIB])
44
45   AC_REQUIRE([AM_PROG_CC_C_O])
46   # Code from module absolute-header:
47   # Code from module accept:
48   # Code from module accept-tests:
49   # Code from module alloca:
50   # Code from module alloca-opt:
51   # Code from module alloca-opt-tests:
52   # Code from module allocator:
53   # Code from module announce-gen:
54   # Code from module areadlink:
55   # Code from module areadlink-tests:
56   # Code from module argmatch:
57   # Code from module argmatch-tests:
58   # Code from module arpa_inet:
59   # Code from module arpa_inet-tests:
60   # Code from module assure:
61   # Code from module atoll:
62   # Code from module attribute:
63   # Code from module basename-lgpl:
64   # Code from module binary-io:
65   # Code from module binary-io-tests:
66   # Code from module bind:
67   # Code from module bind-tests:
68   # Code from module bitrotate:
69   # Code from module bitrotate-tests:
70   # Code from module btowc:
71   # Code from module btowc-tests:
72   # Code from module builtin-expect:
73   # Code from module c-ctype:
74   # Code from module c-ctype-tests:
75   # Code from module c-stack:
76   # Code from module c-stack-tests:
77   # Code from module c-strcase:
78   # Code from module c-strcase-tests:
79   # Code from module c-strcaseeq:
80   # Code from module c99:
81   # Code from module calloc-gnu:
82   # Code from module calloc-gnu-tests:
83   # Code from module calloc-posix:
84   # Code from module careadlinkat:
85   # Code from module clock-time:
86   # Code from module cloexec:
87   # Code from module cloexec-tests:
88   # Code from module close:
89   # Code from module close-tests:
90   # Code from module config-h:
91   # Code from module connect:
92   # Code from module connect-tests:
93   # Code from module ctype:
94   # Code from module ctype-tests:
95   # Code from module diffseq:
96   # Code from module dirname:
97   # Code from module dirname-lgpl:
98   # Code from module dirname-tests:
99   # Code from module do-release-commit-and-tag:
100   # Code from module double-slash-root:
101   # Code from module dtotimespec:
102   # Code from module dup2:
103   # Code from module dup2-tests:
104   # Code from module dynarray:
105   # Code from module dynarray-tests:
106   # Code from module environ:
107   # Code from module environ-tests:
108   # Code from module errno:
109   # Code from module errno-tests:
110   # Code from module error:
111   # Code from module exclude:
112   # Code from module exclude-tests:
113   # Code from module exitfail:
114   # Code from module extensions:
115   # Code from module extern-inline:
116   # Code from module fcntl:
117   # Code from module fcntl-h:
118   # Code from module fcntl-h-tests:
119   # Code from module fcntl-tests:
120   # Code from module fd-hook:
121   # Code from module fdl:
122   # Code from module fdopen:
123   # Code from module fdopen-tests:
124   # Code from module fgetc-tests:
125   # Code from module file-type:
126   # Code from module filename:
127   # Code from module filenamecat:
128   # Code from module filenamecat-lgpl:
129   # Code from module filenamecat-tests:
130   # Code from module flexmember:
131   # Code from module float:
132   # Code from module float-tests:
133   # Code from module fnmatch:
134   # Code from module fnmatch-gnu:
135   # Code from module fnmatch-h:
136   # Code from module fnmatch-h-tests:
137   # Code from module fnmatch-tests:
138   # Code from module fopen:
139   # Code from module fopen-gnu:
140   # Code from module fopen-gnu-tests:
141   # Code from module fopen-tests:
142   # Code from module fpieee:
143   AC_REQUIRE([gl_FP_IEEE])
144   # Code from module fpucw:
145   # Code from module fputc-tests:
146   # Code from module fread-tests:
147   # Code from module free-posix:
148   # Code from module free-posix-tests:
149   # Code from module freopen:
150   # Code from module freopen-tests:
151   # Code from module fstat:
152   # Code from module fstat-tests:
153   # Code from module ftruncate:
154   # Code from module ftruncate-tests:
155   # Code from module fwrite-tests:
156   # Code from module gendocs:
157   # Code from module getcwd-lgpl:
158   # Code from module getcwd-lgpl-tests:
159   # Code from module getdtablesize:
160   # Code from module getdtablesize-tests:
161   # Code from module getopt-gnu:
162   # Code from module getopt-gnu-tests:
163   # Code from module getopt-posix:
164   # Code from module getopt-posix-tests:
165   # Code from module getpagesize:
166   # Code from module getprogname:
167   # Code from module getprogname-tests:
168   # Code from module getrandom:
169   # Code from module getrandom-tests:
170   # Code from module gettext-h:
171   # Code from module gettime:
172   # Code from module gettimeofday:
173   # Code from module gettimeofday-tests:
174   # Code from module git-version-gen:
175   # Code from module gitlog-to-changelog:
176   # Code from module gnu-make:
177   # Code from module gnu-web-doc-update:
178   # Code from module gnumakefile:
179   # Code from module gnupload:
180   # Code from module gperf:
181   # Code from module hard-locale:
182   # Code from module hard-locale-tests:
183   # Code from module hash:
184   # Code from module hash-pjw:
185   # Code from module hash-tests:
186   # Code from module havelib:
187   # Code from module host-cpu-c-abi:
188   # Code from module ialloc:
189   # Code from module iconv:
190   # Code from module iconv-h:
191   # Code from module iconv-h-tests:
192   # Code from module iconv-tests:
193   # Code from module iconv_open:
194   # Code from module idx:
195   # Code from module ignore-value:
196   # Code from module ignore-value-tests:
197   # Code from module include_next:
198   # Code from module inet_pton:
199   # Code from module inet_pton-tests:
200   # Code from module inline:
201   # Code from module intprops:
202   # Code from module intprops-tests:
203   # Code from module inttostr:
204   # Code from module inttostr-tests:
205   # Code from module inttypes:
206   # Code from module inttypes-incomplete:
207   # Code from module inttypes-tests:
208   # Code from module ioctl:
209   # Code from module ioctl-tests:
210   # Code from module isblank:
211   # Code from module isblank-tests:
212   # Code from module iswblank:
213   # Code from module iswblank-tests:
214   # Code from module iswdigit:
215   # Code from module iswdigit-tests:
216   # Code from module iswxdigit:
217   # Code from module iswxdigit-tests:
218   # Code from module langinfo:
219   # Code from module langinfo-tests:
220   # Code from module largefile:
221   AC_REQUIRE([AC_SYS_LARGEFILE])
222   AC_REQUIRE([gl_YEAR2038_EARLY])
223   # Code from module libc-config:
224   # Code from module limits-h:
225   # Code from module limits-h-tests:
226   # Code from module listen:
227   # Code from module listen-tests:
228   # Code from module localcharset:
229   # Code from module localcharset-tests:
230   # Code from module locale:
231   # Code from module locale-tests:
232   # Code from module localeconv:
233   # Code from module localeconv-tests:
234   # Code from module lock:
235   # Code from module lstat:
236   # Code from module lstat-tests:
237   # Code from module maintainer-makefile:
238   # Code from module malloc-gnu:
239   # Code from module malloc-gnu-tests:
240   # Code from module malloc-posix:
241   # Code from module malloca:
242   # Code from module malloca-tests:
243   # Code from module manywarnings:
244   # Code from module mbchar:
245   # Code from module mbiter:
246   # Code from module mbrtowc:
247   # Code from module mbrtowc-tests:
248   # Code from module mbscasecmp:
249   # Code from module mbscasecmp-tests:
250   # Code from module mbsinit:
251   # Code from module mbsinit-tests:
252   # Code from module mbslen:
253   # Code from module mbsrtowcs:
254   # Code from module mbsrtowcs-tests:
255   # Code from module mbsstr:
256   # Code from module mbsstr-tests:
257   # Code from module mbtowc:
258   # Code from module mbuiter:
259   # Code from module memchr:
260   # Code from module memchr-tests:
261   # Code from module mempcpy:
262   # Code from module minmax:
263   # Code from module mkdir:
264   # Code from module mkdir-tests:
265   # Code from module mkstemp:
266   # Code from module mktime:
267   # Code from module mktime-internal:
268   # Code from module msvc-inval:
269   # Code from module msvc-nothrow:
270   # Code from module multiarch:
271   # Code from module nanosleep:
272   # Code from module nanosleep-tests:
273   # Code from module netinet_in:
274   # Code from module netinet_in-tests:
275   # Code from module nl_langinfo:
276   # Code from module nl_langinfo-tests:
277   # Code from module nocrash:
278   # Code from module nstrftime:
279   # Code from module nstrftime-tests:
280   # Code from module open:
281   # Code from module open-tests:
282   # Code from module pathmax:
283   # Code from module pathmax-tests:
284   # Code from module perror:
285   # Code from module perror-tests:
286   # Code from module pipe-posix:
287   # Code from module pipe-posix-tests:
288   # Code from module progname:
289   # Code from module propername:
290   # Code from module pthread-h:
291   gl_ANYTHREADLIB_EARLY
292   # Code from module pthread-h-tests:
293   # Code from module pthread-thread:
294   # Code from module pthread-thread-tests:
295   # Code from module pthread_sigmask:
296   # Code from module pthread_sigmask-tests:
297   # Code from module putenv:
298   # Code from module quote:
299   # Code from module quotearg:
300   # Code from module quotearg-simple:
301   # Code from module quotearg-simple-tests:
302   # Code from module raise:
303   # Code from module raise-tests:
304   # Code from module rawmemchr:
305   # Code from module rawmemchr-tests:
306   # Code from module readlink:
307   # Code from module readlink-tests:
308   # Code from module readme-release:
309   # Code from module realloc-gnu:
310   # Code from module realloc-gnu-tests:
311   # Code from module realloc-posix:
312   # Code from module reallocarray:
313   # Code from module reallocarray-tests:
314   # Code from module regex:
315   # Code from module regex-tests:
316   # Code from module same-inode:
317   # Code from module sched:
318   # Code from module sched-tests:
319   # Code from module select:
320   # Code from module select-tests:
321   # Code from module setenv:
322   # Code from module setenv-tests:
323   # Code from module setlocale-null:
324   # Code from module setlocale-null-tests:
325   # Code from module setsockopt:
326   # Code from module setsockopt-tests:
327   # Code from module sh-quote:
328   # Code from module sh-quote-tests:
329   # Code from module sigaction:
330   # Code from module sigaction-tests:
331   # Code from module signal:
332   # Code from module signal-h:
333   # Code from module signal-h-tests:
334   # Code from module sigprocmask:
335   # Code from module sigprocmask-tests:
336   # Code from module sigsegv:
337   # Code from module sigsegv-tests:
338   # Code from module size_max:
339   # Code from module sleep:
340   # Code from module sleep-tests:
341   # Code from module snippet/_Noreturn:
342   # Code from module snippet/arg-nonnull:
343   # Code from module snippet/c++defs:
344   # Code from module snippet/warn-on-use:
345   # Code from module snprintf:
346   # Code from module snprintf-tests:
347   # Code from module socket:
348   # Code from module socketlib:
349   # Code from module sockets:
350   # Code from module sockets-tests:
351   # Code from module socklen:
352   # Code from module ssize_t:
353   # Code from module stat:
354   # Code from module stat-macros:
355   # Code from module stat-tests:
356   # Code from module stat-time:
357   # Code from module stat-time-tests:
358   # Code from module std-gnu11:
359   # Code from module stdalign:
360   # Code from module stdalign-tests:
361   # Code from module stdarg:
362   dnl Some compilers (e.g., AIX 5.3 cc) need to be in c99 mode
363   dnl for the builtin va_copy to work.  gl_PROG_CC_C99 arranges for this.
364   gl_PROG_CC_C99
365   # Code from module stdarg-tests:
366   # Code from module stdbool:
367   # Code from module stdbool-tests:
368   # Code from module stddef:
369   # Code from module stddef-tests:
370   # Code from module stdint:
371   # Code from module stdint-tests:
372   # Code from module stdio:
373   # Code from module stdio-tests:
374   # Code from module stdlib:
375   # Code from module stdlib-tests:
376   # Code from module stdopen:
377   # Code from module strcase:
378   # Code from module streq:
379   # Code from module strerror:
380   # Code from module strerror-override:
381   # Code from module strerror-tests:
382   # Code from module strerror_r-posix:
383   # Code from module strerror_r-posix-tests:
384   # Code from module striconv:
385   # Code from module striconv-tests:
386   # Code from module string:
387   # Code from module string-tests:
388   # Code from module strings:
389   # Code from module strings-tests:
390   # Code from module strnlen:
391   # Code from module strnlen-tests:
392   # Code from module strnlen1:
393   # Code from module strptime:
394   # Code from module strtoimax:
395   # Code from module strtoimax-tests:
396   # Code from module strtoll:
397   # Code from module strtoll-tests:
398   # Code from module symlink:
399   # Code from module symlink-tests:
400   # Code from module sys_ioctl:
401   # Code from module sys_ioctl-tests:
402   # Code from module sys_random:
403   # Code from module sys_random-tests:
404   # Code from module sys_select:
405   # Code from module sys_select-tests:
406   # Code from module sys_socket:
407   # Code from module sys_socket-tests:
408   # Code from module sys_stat:
409   # Code from module sys_stat-tests:
410   # Code from module sys_time:
411   # Code from module sys_time-tests:
412   # Code from module sys_types:
413   # Code from module sys_types-tests:
414   # Code from module sys_uio:
415   # Code from module sys_uio-tests:
416   # Code from module sys_wait:
417   # Code from module sys_wait-tests:
418   # Code from module system-quote:
419   # Code from module tempname:
420   # Code from module test-framework-sh:
421   # Code from module test-framework-sh-tests:
422   # Code from module thread:
423   # Code from module thread-tests:
424   # Code from module threadlib:
425   gl_THREADLIB_EARLY
426   # Code from module time:
427   # Code from module time-tests:
428   # Code from module time_r:
429   # Code from module time_rz:
430   # Code from module timegm:
431   # Code from module timespec:
432   # Code from module timespec-add:
433   # Code from module timespec-sub:
434   # Code from module timespec-tests:
435   # Code from module trim:
436   # Code from module tzset:
437   # Code from module unistd:
438   # Code from module unistd-tests:
439   # Code from module unistr/base:
440   # Code from module unistr/u8-mbtoucr:
441   # Code from module unistr/u8-mbtoucr-tests:
442   # Code from module unistr/u8-uctomb:
443   # Code from module unistr/u8-uctomb-tests:
444   # Code from module unitypes:
445   # Code from module uniwidth/base:
446   # Code from module uniwidth/width:
447   # Code from module uniwidth/width-tests:
448   # Code from module unlocked-io:
449   # Code from module unlocked-io-internal:
450   # Code from module unsetenv:
451   # Code from module unsetenv-tests:
452   # Code from module update-copyright:
453   # Code from module update-copyright-tests:
454   # Code from module useless-if-before-free:
455   # Code from module vasnprintf:
456   # Code from module vasnprintf-tests:
457   # Code from module vasprintf:
458   # Code from module vasprintf-tests:
459   # Code from module vc-list-files:
460   # Code from module vc-list-files-tests:
461   # Code from module verify:
462   # Code from module verify-tests:
463   # Code from module version-etc:
464   # Code from module version-etc-fsf:
465   # Code from module version-etc-tests:
466   # Code from module warnings:
467   # Code from module wchar:
468   # Code from module wchar-tests:
469   # Code from module wcrtomb:
470   # Code from module wcrtomb-tests:
471   # Code from module wctob:
472   # Code from module wctomb:
473   # Code from module wctype-h:
474   # Code from module wctype-h-tests:
475   # Code from module wcwidth:
476   # Code from module wcwidth-tests:
477   # Code from module windows-mutex:
478   # Code from module windows-once:
479   # Code from module windows-recmutex:
480   # Code from module windows-rwlock:
481   # Code from module windows-thread:
482   # Code from module windows-tls:
483   # Code from module wmemchr:
484   # Code from module wmempcpy:
485   # Code from module xalloc:
486   # Code from module xalloc-die:
487   # Code from module xalloc-die-tests:
488   # Code from module xalloc-oversized:
489   # Code from module xfreopen:
490   # Code from module xmalloca:
491   # Code from module xreadlink:
492   # Code from module xsize:
493   # Code from module xstdopen:
494   # Code from module xstdopen-tests:
495   # Code from module xstriconv:
496   # Code from module xstrtoimax:
497   # Code from module xstrtoimax-tests:
498   # Code from module xstrtol:
499   # Code from module xstrtol-error:
500   # Code from module xstrtol-tests:
501   # Code from module xvasprintf:
502   # Code from module xvasprintf-tests:
503 ])
504
505 # This macro should be invoked from ./configure.ac, in the section
506 # "Check for header files, types and library functions".
507 AC_DEFUN([gl_INIT],
508 [
509   AM_CONDITIONAL([GL_COND_LIBTOOL], [false])
510   gl_cond_libtool=false
511   gl_libdeps=
512   gl_ltlibdeps=
513   gl_m4_base='m4'
514   m4_pushdef([AC_LIBOBJ], m4_defn([gl_LIBOBJ]))
515   m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gl_REPLACE_FUNCS]))
516   m4_pushdef([AC_LIBSOURCES], m4_defn([gl_LIBSOURCES]))
517   m4_pushdef([gl_LIBSOURCES_LIST], [])
518   m4_pushdef([gl_LIBSOURCES_DIR], [])
519   m4_pushdef([GL_MACRO_PREFIX], [gl])
520   m4_pushdef([GL_MODULE_INDICATOR_PREFIX], [GL])
521   gl_COMMON
522   gl_source_base='lib'
523   gl_FUNC_ALLOCA
524   gl_FUNC_BTOWC
525   if test $HAVE_BTOWC = 0 || test $REPLACE_BTOWC = 1; then
526     AC_LIBOBJ([btowc])
527     gl_PREREQ_BTOWC
528   fi
529   gl_WCHAR_MODULE_INDICATOR([btowc])
530   gl___BUILTIN_EXPECT
531   gl_C_STACK
532   gl_FUNC_CALLOC_GNU
533   if test $REPLACE_CALLOC = 1; then
534     AC_LIBOBJ([calloc])
535   fi
536   gl_FUNC_CALLOC_POSIX
537   if test $REPLACE_CALLOC = 1; then
538     AC_LIBOBJ([calloc])
539   fi
540   gl_STDLIB_MODULE_INDICATOR([calloc-posix])
541   AC_REQUIRE([AC_C_RESTRICT])
542   AC_CHECK_FUNCS_ONCE([readlinkat])
543   gl_CLOCK_TIME
544   gl_MODULE_INDICATOR_FOR_TESTS([cloexec])
545   gl_FUNC_CLOSE
546   if test $REPLACE_CLOSE = 1; then
547     AC_LIBOBJ([close])
548   fi
549   gl_UNISTD_MODULE_INDICATOR([close])
550   gl_CONFIG_H
551   gl_CTYPE_H
552   gl_CTYPE_H_REQUIRE_DEFAULTS
553   gl_MODULE_INDICATOR([dirname])
554   gl_DOUBLE_SLASH_ROOT
555   gl_FUNC_DUP2
556   if test $REPLACE_DUP2 = 1; then
557     AC_LIBOBJ([dup2])
558     gl_PREREQ_DUP2
559   fi
560   gl_UNISTD_MODULE_INDICATOR([dup2])
561   AC_PROG_MKDIR_P
562   gl_ENVIRON
563   gl_UNISTD_MODULE_INDICATOR([environ])
564   gl_HEADER_ERRNO_H
565   gl_ERROR
566   if test $ac_cv_lib_error_at_line = no; then
567     AC_LIBOBJ([error])
568     gl_PREREQ_ERROR
569   fi
570   m4_ifdef([AM_XGETTEXT_OPTION],
571     [AM_][XGETTEXT_OPTION([--flag=error:3:c-format])
572      AM_][XGETTEXT_OPTION([--flag=error_at_line:5:c-format])])
573   AC_REQUIRE([gl_EXTERN_INLINE])
574   gl_FUNC_FCNTL
575   if test $HAVE_FCNTL = 0 || test $REPLACE_FCNTL = 1; then
576     AC_LIBOBJ([fcntl])
577   fi
578   gl_FCNTL_MODULE_INDICATOR([fcntl])
579   gl_FCNTL_H
580   gl_FCNTL_H_REQUIRE_DEFAULTS
581   gl_FILE_NAME_CONCAT
582   gl_MODULE_INDICATOR([filenamecat])
583   gl_FILE_NAME_CONCAT_LGPL
584   AC_C_FLEXIBLE_ARRAY_MEMBER
585   gl_FLOAT_H
586   if test $REPLACE_FLOAT_LDBL = 1; then
587     AC_LIBOBJ([float])
588   fi
589   if test $REPLACE_ITOLD = 1; then
590     AC_LIBOBJ([itold])
591   fi
592   gl_FUNC_FNMATCH_POSIX
593   if test $HAVE_FNMATCH = 0 || test $REPLACE_FNMATCH = 1; then
594     AC_LIBOBJ([fnmatch])
595     gl_PREREQ_FNMATCH
596   fi
597   gl_FNMATCH_MODULE_INDICATOR([fnmatch])
598   gl_FUNC_FNMATCH_GNU
599   if test $HAVE_FNMATCH = 0 || test $REPLACE_FNMATCH = 1; then
600     AC_LIBOBJ([fnmatch])
601     gl_PREREQ_FNMATCH
602   fi
603   gl_MODULE_INDICATOR([fnmatch-gnu])
604   gl_FNMATCH_H
605   gl_FNMATCH_H_REQUIRE_DEFAULTS
606   gl_FUNC_FOPEN
607   if test $REPLACE_FOPEN = 1; then
608     AC_LIBOBJ([fopen])
609     gl_PREREQ_FOPEN
610   fi
611   gl_STDIO_MODULE_INDICATOR([fopen])
612   gl_FUNC_FOPEN_GNU
613   if test $REPLACE_FOPEN = 1; then
614     AC_LIBOBJ([fopen])
615     gl_PREREQ_FOPEN
616   fi
617   gl_MODULE_INDICATOR([fopen-gnu])
618   gl_FUNC_FREE
619   if test $REPLACE_FREE = 1; then
620     AC_LIBOBJ([free])
621     gl_PREREQ_FREE
622   fi
623   gl_STDLIB_MODULE_INDICATOR([free-posix])
624   gl_FUNC_FREOPEN
625   if test $REPLACE_FREOPEN = 1; then
626     AC_LIBOBJ([freopen])
627     gl_PREREQ_FREOPEN
628   fi
629   gl_STDIO_MODULE_INDICATOR([freopen])
630   gl_FUNC_FSTAT
631   if test $REPLACE_FSTAT = 1; then
632     AC_LIBOBJ([fstat])
633     case "$host_os" in
634       mingw*)
635         AC_LIBOBJ([stat-w32])
636         ;;
637     esac
638     gl_PREREQ_FSTAT
639   fi
640   gl_SYS_STAT_MODULE_INDICATOR([fstat])
641   gl_FUNC_GETDTABLESIZE
642   if test $HAVE_GETDTABLESIZE = 0 || test $REPLACE_GETDTABLESIZE = 1; then
643     AC_LIBOBJ([getdtablesize])
644     gl_PREREQ_GETDTABLESIZE
645   fi
646   gl_UNISTD_MODULE_INDICATOR([getdtablesize])
647   gl_FUNC_GETOPT_GNU
648   dnl Because of the way gl_FUNC_GETOPT_GNU is implemented (the gl_getopt_required
649   dnl mechanism), there is no need to do any AC_LIBOBJ or AC_SUBST here; they are
650   dnl done in the getopt-posix module.
651   gl_FUNC_GETOPT_POSIX
652   if test $REPLACE_GETOPT = 1; then
653     AC_LIBOBJ([getopt])
654     AC_LIBOBJ([getopt1])
655     dnl Define the substituted variable GNULIB_UNISTD_H_GETOPT to 1.
656     gl_UNISTD_H_REQUIRE_DEFAULTS
657     gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_UNISTD_H_GETOPT], [1])
658   fi
659   gl_UNISTD_MODULE_INDICATOR([getopt-posix])
660   gl_FUNC_GETPAGESIZE
661   if test $REPLACE_GETPAGESIZE = 1; then
662     AC_LIBOBJ([getpagesize])
663   fi
664   gl_UNISTD_MODULE_INDICATOR([getpagesize])
665   gl_FUNC_GETPROGNAME
666   AC_REQUIRE([AC_CANONICAL_HOST])
667   gl_FUNC_GETRANDOM
668   if test $HAVE_GETRANDOM = 0 || test $REPLACE_GETRANDOM = 1; then
669     AC_LIBOBJ([getrandom])
670   fi
671   gl_SYS_RANDOM_MODULE_INDICATOR([getrandom])
672   AC_SUBST([LIBINTL])
673   AC_SUBST([LTLIBINTL])
674   gl_GETTIME
675   gl_FUNC_GETTIMEOFDAY
676   if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
677     AC_LIBOBJ([gettimeofday])
678     gl_PREREQ_GETTIMEOFDAY
679   fi
680   gl_SYS_TIME_MODULE_INDICATOR([gettimeofday])
681   gl_GNU_MAKE
682   # Autoconf 2.61a.99 and earlier don't support linking a file only
683   # in VPATH builds.  But since GNUmakefile is for maintainer use
684   # only, it does not matter if we skip the link with older autoconf.
685   # Automake 1.10.1 and earlier try to remove GNUmakefile in non-VPATH
686   # builds, so use a shell variable to bypass this.
687   GNUmakefile=GNUmakefile
688   m4_if(m4_version_compare([2.61a.100],
689           m4_defn([m4_PACKAGE_VERSION])), [1], [],
690         [AC_CONFIG_LINKS([$GNUmakefile:$GNUmakefile], [],
691           [GNUmakefile=$GNUmakefile])])
692   AC_REQUIRE([gl_FUNC_SETLOCALE_NULL])
693   LIB_HARD_LOCALE="$LIB_SETLOCALE_NULL"
694   AC_SUBST([LIB_HARD_LOCALE])
695   AC_DEFUN([gl_HAVE_MODULE_HAVELIB])
696   AC_REQUIRE([gl_HOST_CPU_C_ABI])
697   AM_ICONV
698   m4_ifdef([gl_ICONV_MODULE_INDICATOR],
699     [gl_ICONV_MODULE_INDICATOR([iconv])])
700   gl_ICONV_H
701   gl_ICONV_H_REQUIRE_DEFAULTS
702   gl_FUNC_ICONV_OPEN
703   if test $REPLACE_ICONV_OPEN = 1; then
704     AC_LIBOBJ([iconv_open])
705   fi
706   if test $REPLACE_ICONV = 1; then
707     AC_LIBOBJ([iconv])
708     AC_LIBOBJ([iconv_close])
709   fi
710   gl_INLINE
711   gl_INTTOSTR
712   gl_INTTYPES_H
713   gl_INTTYPES_INCOMPLETE
714   gl_INTTYPES_H_REQUIRE_DEFAULTS
715   gl_FUNC_ISBLANK
716   if test $HAVE_ISBLANK = 0; then
717     AC_LIBOBJ([isblank])
718   fi
719   gl_MODULE_INDICATOR([isblank])
720   gl_CTYPE_MODULE_INDICATOR([isblank])
721   gl_FUNC_ISWBLANK
722   if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
723     :
724   else
725     if test $HAVE_ISWBLANK = 0 || test $REPLACE_ISWBLANK = 1; then
726       AC_LIBOBJ([iswblank])
727     fi
728   fi
729   gl_WCTYPE_MODULE_INDICATOR([iswblank])
730   gl_FUNC_ISWDIGIT
731   if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
732     :
733   else
734     if test $REPLACE_ISWDIGIT = 1; then
735       AC_LIBOBJ([iswdigit])
736     fi
737   fi
738   gl_WCTYPE_MODULE_INDICATOR([iswdigit])
739   gl_FUNC_ISWXDIGIT
740   if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
741     :
742   else
743     if test $REPLACE_ISWXDIGIT = 1; then
744       AC_LIBOBJ([iswxdigit])
745     fi
746   fi
747   gl_WCTYPE_MODULE_INDICATOR([iswxdigit])
748   gl_LANGINFO_H
749   gl_LANGINFO_H_REQUIRE_DEFAULTS
750   AC_REQUIRE([gl_LARGEFILE])
751   gl___INLINE
752   gl_LIMITS_H
753   gl_LOCALCHARSET
754   dnl For backward compatibility. Some packages still use this.
755   LOCALCHARSET_TESTS_ENVIRONMENT=
756   AC_SUBST([LOCALCHARSET_TESTS_ENVIRONMENT])
757   gl_LOCALE_H
758   gl_LOCALE_H_REQUIRE_DEFAULTS
759   gl_FUNC_LOCALECONV
760   if test $REPLACE_LOCALECONV = 1; then
761     AC_LIBOBJ([localeconv])
762     gl_PREREQ_LOCALECONV
763   fi
764   gl_LOCALE_MODULE_INDICATOR([localeconv])
765   gl_LOCK
766   gl_MODULE_INDICATOR([lock])
767   gl_FUNC_LSTAT
768   if test $REPLACE_LSTAT = 1; then
769     AC_LIBOBJ([lstat])
770     gl_PREREQ_LSTAT
771   fi
772   gl_SYS_STAT_MODULE_INDICATOR([lstat])
773   AC_CONFIG_COMMANDS_PRE([m4_ifdef([AH_HEADER],
774     [AC_SUBST([CONFIG_INCLUDE], m4_defn([AH_HEADER]))])])
775   AC_REQUIRE([AC_PROG_SED])
776   AC_REQUIRE([AC_PROG_GREP])
777   gl_FUNC_MALLOC_GNU
778   if test $REPLACE_MALLOC = 1; then
779     AC_LIBOBJ([malloc])
780   fi
781   AC_REQUIRE([gl_FUNC_MALLOC_POSIX])
782   if test $REPLACE_MALLOC = 1; then
783     AC_LIBOBJ([malloc])
784   fi
785   gl_STDLIB_MODULE_INDICATOR([malloc-posix])
786   gl_MALLOCA
787   gl_MBCHAR
788   gl_MBITER
789   gl_FUNC_MBRTOWC
790   if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
791     AC_LIBOBJ([mbrtowc])
792     if test $REPLACE_MBSTATE_T = 1; then
793       AC_LIBOBJ([lc-charset-dispatch])
794       AC_LIBOBJ([mbtowc-lock])
795       gl_PREREQ_MBTOWC_LOCK
796     fi
797     gl_PREREQ_MBRTOWC
798   fi
799   gl_WCHAR_MODULE_INDICATOR([mbrtowc])
800   gl_STRING_MODULE_INDICATOR([mbscasecmp])
801   gl_FUNC_MBSINIT
802   if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
803     AC_LIBOBJ([mbsinit])
804     gl_PREREQ_MBSINIT
805   fi
806   gl_WCHAR_MODULE_INDICATOR([mbsinit])
807   gl_FUNC_MBSLEN
808   gl_STRING_MODULE_INDICATOR([mbslen])
809   gl_FUNC_MBSRTOWCS
810   if test $HAVE_MBSRTOWCS = 0 || test $REPLACE_MBSRTOWCS = 1; then
811     AC_LIBOBJ([mbsrtowcs])
812     AC_LIBOBJ([mbsrtowcs-state])
813     gl_PREREQ_MBSRTOWCS
814   fi
815   gl_WCHAR_MODULE_INDICATOR([mbsrtowcs])
816   gl_STRING_MODULE_INDICATOR([mbsstr])
817   gl_FUNC_MBTOWC
818   if test $HAVE_MBTOWC = 0 || test $REPLACE_MBTOWC = 1; then
819     AC_LIBOBJ([mbtowc])
820     gl_PREREQ_MBTOWC
821   fi
822   gl_STDLIB_MODULE_INDICATOR([mbtowc])
823   gl_MBITER
824   gl_FUNC_MEMCHR
825   if test $REPLACE_MEMCHR = 1; then
826     AC_LIBOBJ([memchr])
827     gl_PREREQ_MEMCHR
828   fi
829   gl_STRING_MODULE_INDICATOR([memchr])
830   gl_FUNC_MEMPCPY
831   if test $HAVE_MEMPCPY = 0; then
832     AC_LIBOBJ([mempcpy])
833     gl_PREREQ_MEMPCPY
834   fi
835   gl_STRING_MODULE_INDICATOR([mempcpy])
836   gl_MINMAX
837   gl_FUNC_MKDIR
838   if test $REPLACE_MKDIR = 1; then
839     AC_LIBOBJ([mkdir])
840   fi
841   gl_SYS_STAT_MODULE_INDICATOR([mkdir])
842   gl_FUNC_MKSTEMP
843   if test $HAVE_MKSTEMP = 0 || test $REPLACE_MKSTEMP = 1; then
844     AC_LIBOBJ([mkstemp])
845     gl_PREREQ_MKSTEMP
846   fi
847   gl_STDLIB_MODULE_INDICATOR([mkstemp])
848   gl_FUNC_MKTIME
849   if test $REPLACE_MKTIME = 1; then
850     AC_LIBOBJ([mktime])
851     gl_PREREQ_MKTIME
852   fi
853   gl_TIME_MODULE_INDICATOR([mktime])
854   gl_FUNC_MKTIME_INTERNAL
855   if test $WANT_MKTIME_INTERNAL = 1; then
856     AC_LIBOBJ([mktime])
857     gl_PREREQ_MKTIME
858   fi
859   AC_REQUIRE([gl_MSVC_INVAL])
860   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
861     AC_LIBOBJ([msvc-inval])
862   fi
863   AC_REQUIRE([gl_MSVC_NOTHROW])
864   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
865     AC_LIBOBJ([msvc-nothrow])
866   fi
867   gl_MODULE_INDICATOR([msvc-nothrow])
868   gl_MULTIARCH
869   gl_FUNC_NL_LANGINFO
870   if test $HAVE_NL_LANGINFO = 0 || test $REPLACE_NL_LANGINFO = 1; then
871     AC_LIBOBJ([nl_langinfo])
872   fi
873   if test $REPLACE_NL_LANGINFO = 1 && test $NL_LANGINFO_MTSAFE = 0; then
874     AC_LIBOBJ([nl_langinfo-lock])
875     gl_PREREQ_NL_LANGINFO_LOCK
876   fi
877   gl_LANGINFO_MODULE_INDICATOR([nl_langinfo])
878   gl_FUNC_GNU_STRFTIME
879   gl_FUNC_OPEN
880   if test $REPLACE_OPEN = 1; then
881     AC_LIBOBJ([open])
882     gl_PREREQ_OPEN
883   fi
884   gl_FCNTL_MODULE_INDICATOR([open])
885   gl_PATHMAX
886   AC_CHECK_DECLS([program_invocation_name], [], [], [#include <errno.h>])
887   AC_CHECK_DECLS([program_invocation_short_name], [], [], [#include <errno.h>])
888   m4_ifdef([AM_XGETTEXT_OPTION],
889     [AM_][XGETTEXT_OPTION([--keyword='proper_name:1,\"This is a proper name. See the gettext manual, section Names.\"'])
890      AM_][XGETTEXT_OPTION([--keyword='proper_name_utf8:1,\"This is a proper name. See the gettext manual, section Names.\"'])])
891   gl_QUOTE
892   gl_QUOTEARG
893   gl_FUNC_RAISE
894   if test $HAVE_RAISE = 0 || test $REPLACE_RAISE = 1; then
895     AC_LIBOBJ([raise])
896     gl_PREREQ_RAISE
897   fi
898   gl_SIGNAL_MODULE_INDICATOR([raise])
899   gl_FUNC_RAWMEMCHR
900   if test $HAVE_RAWMEMCHR = 0; then
901     AC_LIBOBJ([rawmemchr])
902     gl_PREREQ_RAWMEMCHR
903   fi
904   gl_STRING_MODULE_INDICATOR([rawmemchr])
905   gl_FUNC_READLINK
906   if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
907     AC_LIBOBJ([readlink])
908     gl_PREREQ_READLINK
909   fi
910   gl_UNISTD_MODULE_INDICATOR([readlink])
911   gl_FUNC_REALLOC_GNU
912   if test $REPLACE_REALLOC = 1; then
913     AC_LIBOBJ([realloc])
914   fi
915   gl_FUNC_REALLOC_POSIX
916   if test $REPLACE_REALLOC = 1; then
917     AC_LIBOBJ([realloc])
918   fi
919   gl_STDLIB_MODULE_INDICATOR([realloc-posix])
920   gl_FUNC_REALLOCARRAY
921   if test $HAVE_REALLOCARRAY = 0 || test $REPLACE_REALLOCARRAY = 1; then
922     AC_LIBOBJ([reallocarray])
923     gl_PREREQ_REALLOCARRAY
924   fi
925   gl_MODULE_INDICATOR([reallocarray])
926   gl_STDLIB_MODULE_INDICATOR([reallocarray])
927   gl_REGEX
928   if test $ac_use_included_regex = yes; then
929     AC_LIBOBJ([regex])
930     gl_PREREQ_REGEX
931   fi
932   gl_FUNC_SETENV
933   if test $HAVE_SETENV = 0 || test $REPLACE_SETENV = 1; then
934     AC_LIBOBJ([setenv])
935   fi
936   gl_STDLIB_MODULE_INDICATOR([setenv])
937   gl_FUNC_SETLOCALE_NULL
938   if test $SETLOCALE_NULL_ALL_MTSAFE = 0 || test $SETLOCALE_NULL_ONE_MTSAFE = 0; then
939     AC_LIBOBJ([setlocale-lock])
940     gl_PREREQ_SETLOCALE_LOCK
941   fi
942   gl_LOCALE_MODULE_INDICATOR([setlocale_null])
943   AC_REQUIRE([AC_C_RESTRICT])
944   gl_SIGNAL_H
945   gl_SIGNAL_H_REQUIRE_DEFAULTS
946   AC_ARG_WITH([libsigsegv],
947     [AS_HELP_STRING([--with-libsigsegv],
948        [use the GNU libsigsegv library, when present, instead of the gnulib module 'sigsegv'])])
949   SIGSEGV_H=sigsegv.h
950   if test "$with_libsigsegv" = yes; then
951     gl_LIBSIGSEGV
952     if test "$gl_cv_lib_sigsegv" = yes; then
953       SIGSEGV_H=
954     fi
955   fi
956   AC_SUBST([SIGSEGV_H])
957   AM_CONDITIONAL([GL_GENERATE_SIGSEGV_H], [test -n "$SIGSEGV_H"])
958   if test -n "$SIGSEGV_H"; then
959     dnl Persuade glibc <sys/ucontext.h> to declare macros designating register
960     dnl indices: REG_RSP on x86_64, REG_ESP on i386.
961     dnl Persuade Solaris OpenIndiana <ucontext.h> to include <sys/regset.h>,
962     dnl which declares macros designating register indices, such as ESP on i386.
963     dnl Persuade Solaris OpenIndiana <unistd.h> to declare mincore().
964     AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
965     AC_REQUIRE([AC_CANONICAL_HOST])
966     case "$host_os" in
967       solaris2.11)
968         AC_DEFINE([SOLARIS11], [1], [Define on Solaris 11 and its derivates.])
969         ;;
970     esac
971     gl_FUNC_MMAP_ANON
972     dnl Stack direction.
973     SV_STACK_DIRECTION
974     dnl Catching stack overflow requires an alternate signal stack.
975     dnl The old "install a guard page" trick would be unreliable, because
976     dnl we don't know where exactly to place the guard page.
977     SV_SIGALTSTACK
978     AC_CHECK_FUNCS_ONCE([getrlimit])
979   fi
980   gl_SIZE_MAX
981   gt_TYPE_SSIZE_T
982   gl_FUNC_STAT
983   if test $REPLACE_STAT = 1; then
984     AC_LIBOBJ([stat])
985     case "$host_os" in
986       mingw*)
987         AC_LIBOBJ([stat-w32])
988         ;;
989     esac
990     gl_PREREQ_STAT
991   fi
992   gl_SYS_STAT_MODULE_INDICATOR([stat])
993   gl_STAT_TIME
994   gl_STAT_BIRTHTIME
995   gl_STDALIGN_H
996   gl_STDARG_H
997   AM_STDBOOL_H
998   gl_STDDEF_H
999   gl_STDDEF_H_REQUIRE_DEFAULTS
1000   gl_STDINT_H
1001   gl_STDIO_H
1002   gl_STDIO_H_REQUIRE_DEFAULTS
1003   dnl No need to create extra modules for these functions. Everyone who uses
1004   dnl <stdio.h> likely needs them.
1005   gl_STDIO_MODULE_INDICATOR([fscanf])
1006   gl_MODULE_INDICATOR([fscanf])
1007   gl_STDIO_MODULE_INDICATOR([scanf])
1008   gl_MODULE_INDICATOR([scanf])
1009   gl_STDIO_MODULE_INDICATOR([fgetc])
1010   gl_STDIO_MODULE_INDICATOR([getc])
1011   gl_STDIO_MODULE_INDICATOR([getchar])
1012   gl_STDIO_MODULE_INDICATOR([fgets])
1013   gl_STDIO_MODULE_INDICATOR([fread])
1014   dnl No need to create extra modules for these functions. Everyone who uses
1015   dnl <stdio.h> likely needs them.
1016   gl_STDIO_MODULE_INDICATOR([fprintf])
1017   gl_STDIO_MODULE_INDICATOR([printf])
1018   gl_STDIO_MODULE_INDICATOR([vfprintf])
1019   gl_STDIO_MODULE_INDICATOR([vprintf])
1020   gl_STDIO_MODULE_INDICATOR([fputc])
1021   gl_STDIO_MODULE_INDICATOR([putc])
1022   gl_STDIO_MODULE_INDICATOR([putchar])
1023   gl_STDIO_MODULE_INDICATOR([fputs])
1024   gl_STDIO_MODULE_INDICATOR([puts])
1025   gl_STDIO_MODULE_INDICATOR([fwrite])
1026   gl_STDLIB_H
1027   gl_STDLIB_H_REQUIRE_DEFAULTS
1028   gl_STRCASE
1029   if test $HAVE_STRCASECMP = 0; then
1030     AC_LIBOBJ([strcasecmp])
1031     gl_PREREQ_STRCASECMP
1032   fi
1033   if test $HAVE_STRNCASECMP = 0; then
1034     AC_LIBOBJ([strncasecmp])
1035     gl_PREREQ_STRNCASECMP
1036   fi
1037   gl_FUNC_STRERROR
1038   if test $REPLACE_STRERROR = 1; then
1039     AC_LIBOBJ([strerror])
1040   fi
1041   gl_MODULE_INDICATOR([strerror])
1042   gl_STRING_MODULE_INDICATOR([strerror])
1043   AC_REQUIRE([gl_HEADER_ERRNO_H])
1044   AC_REQUIRE([gl_FUNC_STRERROR_0])
1045   if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then
1046     AC_LIBOBJ([strerror-override])
1047     gl_PREREQ_SYS_H_WINSOCK2
1048   fi
1049   if test $gl_cond_libtool = false; then
1050     gl_ltlibdeps="$gl_ltlibdeps $LTLIBICONV"
1051     gl_libdeps="$gl_libdeps $LIBICONV"
1052   fi
1053   gl_STRING_H
1054   gl_STRING_H_REQUIRE_DEFAULTS
1055   gl_STRINGS_H
1056   gl_STRINGS_H_REQUIRE_DEFAULTS
1057   gl_FUNC_STRNLEN
1058   if test $HAVE_DECL_STRNLEN = 0 || test $REPLACE_STRNLEN = 1; then
1059     AC_LIBOBJ([strnlen])
1060     gl_PREREQ_STRNLEN
1061   fi
1062   gl_STRING_MODULE_INDICATOR([strnlen])
1063   gl_FUNC_STRPTIME
1064   if test $HAVE_STRPTIME = 0; then
1065     AC_LIBOBJ([strptime])
1066     gl_PREREQ_STRPTIME
1067   fi
1068   gl_TIME_MODULE_INDICATOR([strptime])
1069   gl_FUNC_STRTOIMAX
1070   if test $HAVE_DECL_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; then
1071     AC_LIBOBJ([strtoimax])
1072     gl_PREREQ_STRTOIMAX
1073   fi
1074   gl_INTTYPES_MODULE_INDICATOR([strtoimax])
1075   gl_FUNC_STRTOLL
1076   if test $HAVE_STRTOLL = 0 || test $REPLACE_STRTOLL = 1; then
1077     AC_LIBOBJ([strtoll])
1078     gl_PREREQ_STRTOLL
1079   fi
1080   gl_STDLIB_MODULE_INDICATOR([strtoll])
1081   gl_SYS_RANDOM_H
1082   gl_SYS_RANDOM_H_REQUIRE_DEFAULTS
1083   AC_PROG_MKDIR_P
1084   gl_SYS_STAT_H
1085   gl_SYS_STAT_H_REQUIRE_DEFAULTS
1086   AC_PROG_MKDIR_P
1087   gl_SYS_TIME_H
1088   gl_SYS_TIME_H_REQUIRE_DEFAULTS
1089   AC_PROG_MKDIR_P
1090   gl_SYS_TYPES_H
1091   gl_SYS_TYPES_H_REQUIRE_DEFAULTS
1092   AC_PROG_MKDIR_P
1093   gl_SYS_WAIT_H
1094   gl_SYS_WAIT_H_REQUIRE_DEFAULTS
1095   AC_PROG_MKDIR_P
1096   AC_REQUIRE([AC_C_RESTRICT])
1097   gl_FUNC_GEN_TEMPNAME
1098   gl_MODULE_INDICATOR([tempname])
1099   AC_REQUIRE([gl_THREADLIB])
1100   gl_TIME_H
1101   gl_TIME_H_REQUIRE_DEFAULTS
1102   gl_TIME_R
1103   if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
1104     AC_LIBOBJ([time_r])
1105     gl_PREREQ_TIME_R
1106   fi
1107   gl_TIME_MODULE_INDICATOR([time_r])
1108   gl_TIME_RZ
1109   if test $HAVE_TIMEZONE_T = 0; then
1110     AC_LIBOBJ([time_rz])
1111   fi
1112   gl_TIME_MODULE_INDICATOR([time_rz])
1113   gl_FUNC_TIMEGM
1114   if test $HAVE_TIMEGM = 0 || test $REPLACE_TIMEGM = 1; then
1115     AC_LIBOBJ([timegm])
1116     gl_PREREQ_TIMEGM
1117   fi
1118   gl_TIME_MODULE_INDICATOR([timegm])
1119   gl_TIMESPEC
1120   gl_FUNC_TZSET
1121   if test $REPLACE_TZSET = 1; then
1122     AC_LIBOBJ([tzset])
1123   fi
1124   gl_TIME_MODULE_INDICATOR([tzset])
1125   gl_UNISTD_H
1126   gl_UNISTD_H_REQUIRE_DEFAULTS
1127   gl_LIBUNISTRING_LIBHEADER([0.9.11], [unistr.h])
1128   gl_MODULE_INDICATOR([unistr/u8-mbtoucr])
1129   gl_LIBUNISTRING_MODULE([0.9], [unistr/u8-mbtoucr])
1130   gl_MODULE_INDICATOR([unistr/u8-uctomb])
1131   gl_LIBUNISTRING_MODULE([0.9], [unistr/u8-uctomb])
1132   gl_LIBUNISTRING_LIBHEADER([0.9.11], [unitypes.h])
1133   AH_VERBATIM([unitypes_restrict], [
1134   /* This definition is a duplicate of the one in unitypes.h.
1135      It is here so that we can cope with an older version of unitypes.h
1136      that does not contain this definition and that is pre-installed among
1137      the public header files.  */
1138   # if defined __restrict \
1139        || 2 < __GNUC__ + (95 <= __GNUC_MINOR__) \
1140        || __clang_major__ >= 3
1141   #  define _UC_RESTRICT __restrict
1142   # elif 199901L <= __STDC_VERSION__ || defined restrict
1143   #  define _UC_RESTRICT restrict
1144   # else
1145   #  define _UC_RESTRICT
1146   # endif
1147   ])
1148   gl_LIBUNISTRING_LIBHEADER([0.9.11], [uniwidth.h])
1149   gl_LIBUNISTRING_MODULE([0.9.8], [uniwidth/width])
1150   AC_DEFINE([GNULIB_STDIO_SINGLE_THREAD], [1],
1151     [Define to 1 if you want the FILE stream functions getc, putc, etc.
1152      to use unlocked I/O if available, throughout the package.
1153      Unlocked I/O can improve performance, sometimes dramatically.
1154      But unlocked I/O is safe only in single-threaded programs,
1155      as well as in multithreaded programs for which you can guarantee that
1156      every FILE stream, including stdin, stdout, stderr, is used only
1157      in a single thread.])
1158   AC_DEFINE([USE_UNLOCKED_IO], [GNULIB_STDIO_SINGLE_THREAD],
1159     [An alias of GNULIB_STDIO_SINGLE_THREAD.])
1160   gl_FUNC_GLIBC_UNLOCKED_IO
1161   gl_FUNC_UNSETENV
1162   if test $HAVE_UNSETENV = 0 || test $REPLACE_UNSETENV = 1; then
1163     AC_LIBOBJ([unsetenv])
1164     gl_PREREQ_UNSETENV
1165   fi
1166   gl_STDLIB_MODULE_INDICATOR([unsetenv])
1167   AC_REQUIRE([AC_C_RESTRICT])
1168   gl_FUNC_VASNPRINTF
1169   gl_FUNC_VASPRINTF
1170   gl_STDIO_MODULE_INDICATOR([vasprintf])
1171   m4_ifdef([AM_XGETTEXT_OPTION],
1172     [AM_][XGETTEXT_OPTION([--flag=asprintf:2:c-format])
1173      AM_][XGETTEXT_OPTION([--flag=vasprintf:2:c-format])])
1174   gl_VERSION_ETC
1175   gl_WCHAR_H
1176   gl_WCHAR_H_REQUIRE_DEFAULTS
1177   gl_FUNC_WCRTOMB
1178   if test $HAVE_WCRTOMB = 0 || test $REPLACE_WCRTOMB = 1; then
1179     AC_LIBOBJ([wcrtomb])
1180     gl_PREREQ_WCRTOMB
1181   fi
1182   gl_WCHAR_MODULE_INDICATOR([wcrtomb])
1183   gl_WCTYPE_H
1184   gl_WCTYPE_H_REQUIRE_DEFAULTS
1185   gl_FUNC_WCWIDTH
1186   if test $HAVE_WCWIDTH = 0 || test $REPLACE_WCWIDTH = 1; then
1187     AC_LIBOBJ([wcwidth])
1188     gl_PREREQ_WCWIDTH
1189   fi
1190   gl_WCHAR_MODULE_INDICATOR([wcwidth])
1191   AC_REQUIRE([AC_CANONICAL_HOST])
1192   case "$host_os" in
1193     mingw*)
1194       AC_LIBOBJ([windows-mutex])
1195       ;;
1196   esac
1197   AC_REQUIRE([AC_CANONICAL_HOST])
1198   case "$host_os" in
1199     mingw*)
1200       AC_LIBOBJ([windows-once])
1201       ;;
1202   esac
1203   AC_REQUIRE([AC_CANONICAL_HOST])
1204   case "$host_os" in
1205     mingw*)
1206       AC_LIBOBJ([windows-recmutex])
1207       ;;
1208   esac
1209   AC_REQUIRE([AC_CANONICAL_HOST])
1210   case "$host_os" in
1211     mingw*)
1212       AC_LIBOBJ([windows-rwlock])
1213       ;;
1214   esac
1215   gl_FUNC_WMEMCHR
1216   if test $HAVE_WMEMCHR = 0; then
1217     AC_LIBOBJ([wmemchr])
1218   fi
1219   gl_WCHAR_MODULE_INDICATOR([wmemchr])
1220   gl_FUNC_WMEMPCPY
1221   if test $HAVE_WMEMPCPY = 0; then
1222     AC_LIBOBJ([wmempcpy])
1223   fi
1224   gl_WCHAR_MODULE_INDICATOR([wmempcpy])
1225   gl_XALLOC
1226   gl_MODULE_INDICATOR([xalloc])
1227   gl_MODULE_INDICATOR([xalloc-die])
1228   gl_XSIZE
1229   gl_XSTRTOL
1230   gl_XVASPRINTF
1231   m4_ifdef([AM_XGETTEXT_OPTION],
1232     [AM_][XGETTEXT_OPTION([--flag=xasprintf:1:c-format])])
1233   # End of code from modules
1234   m4_ifval(gl_LIBSOURCES_LIST, [
1235     m4_syscmd([test ! -d ]m4_defn([gl_LIBSOURCES_DIR])[ ||
1236       for gl_file in ]gl_LIBSOURCES_LIST[ ; do
1237         if test ! -r ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file ; then
1238           echo "missing file ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file" >&2
1239           exit 1
1240         fi
1241       done])dnl
1242       m4_if(m4_sysval, [0], [],
1243         [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
1244   ])
1245   m4_popdef([GL_MODULE_INDICATOR_PREFIX])
1246   m4_popdef([GL_MACRO_PREFIX])
1247   m4_popdef([gl_LIBSOURCES_DIR])
1248   m4_popdef([gl_LIBSOURCES_LIST])
1249   m4_popdef([AC_LIBSOURCES])
1250   m4_popdef([AC_REPLACE_FUNCS])
1251   m4_popdef([AC_LIBOBJ])
1252   AC_CONFIG_COMMANDS_PRE([
1253     gl_libobjs=
1254     gl_ltlibobjs=
1255     if test -n "$gl_LIBOBJS"; then
1256       # Remove the extension.
1257       sed_drop_objext='s/\.o$//;s/\.obj$//'
1258       for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
1259         gl_libobjs="$gl_libobjs $i.$ac_objext"
1260         gl_ltlibobjs="$gl_ltlibobjs $i.lo"
1261       done
1262     fi
1263     AC_SUBST([gl_LIBOBJS], [$gl_libobjs])
1264     AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs])
1265   ])
1266   gltests_libdeps=
1267   gltests_ltlibdeps=
1268   m4_pushdef([AC_LIBOBJ], m4_defn([gltests_LIBOBJ]))
1269   m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gltests_REPLACE_FUNCS]))
1270   m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES]))
1271   m4_pushdef([gltests_LIBSOURCES_LIST], [])
1272   m4_pushdef([gltests_LIBSOURCES_DIR], [])
1273   m4_pushdef([GL_MACRO_PREFIX], [gltests])
1274   m4_pushdef([GL_MODULE_INDICATOR_PREFIX], [GL])
1275   gl_COMMON
1276   AC_REQUIRE([gl_CC_ALLOW_WARNINGS])
1277   AC_REQUIRE([gl_CXX_ALLOW_WARNINGS])
1278   gl_source_base='gnulib-tests'
1279 changequote(,)dnl
1280   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
1281 changequote([, ])dnl
1282   AC_SUBST([gltests_WITNESS])
1283   gl_module_indicator_condition=$gltests_WITNESS
1284   m4_pushdef([gl_MODULE_INDICATOR_CONDITION], [$gl_module_indicator_condition])
1285   AC_REQUIRE([gl_SYS_SOCKET_H])
1286   if test "$ac_cv_header_winsock2_h" = yes; then
1287     AC_LIBOBJ([accept])
1288   fi
1289   gl_SYS_SOCKET_MODULE_INDICATOR([accept])
1290   gl_ARPA_INET_H
1291   gl_ARPA_INET_H_REQUIRE_DEFAULTS
1292   AC_PROG_MKDIR_P
1293   gl_FUNC_ATOLL
1294   if test $HAVE_ATOLL = 0; then
1295     AC_LIBOBJ([atoll])
1296     gl_PREREQ_ATOLL
1297   fi
1298   gl_STDLIB_MODULE_INDICATOR([atoll])
1299   AC_REQUIRE([gl_SYS_SOCKET_H])
1300   if test "$ac_cv_header_winsock2_h" = yes; then
1301     AC_LIBOBJ([bind])
1302   fi
1303   gl_SYS_SOCKET_MODULE_INDICATOR([bind])
1304   gt_LOCALE_FR
1305   gt_LOCALE_FR_UTF8
1306   gt_LOCALE_FR
1307   gt_LOCALE_TR_UTF8
1308   AC_REQUIRE([gl_SYS_SOCKET_H])
1309   if test "$ac_cv_header_winsock2_h" = yes; then
1310     AC_LIBOBJ([connect])
1311   fi
1312   gl_SYS_SOCKET_MODULE_INDICATOR([connect])
1313   gl_FUNC_FDOPEN
1314   if test $REPLACE_FDOPEN = 1; then
1315     AC_LIBOBJ([fdopen])
1316     gl_PREREQ_FDOPEN
1317   fi
1318   gl_STDIO_MODULE_INDICATOR([fdopen])
1319   gl_FUNC_FTRUNCATE
1320   if test $HAVE_FTRUNCATE = 0 || test $REPLACE_FTRUNCATE = 1; then
1321     AC_LIBOBJ([ftruncate])
1322     gl_PREREQ_FTRUNCATE
1323   fi
1324   gl_UNISTD_MODULE_INDICATOR([ftruncate])
1325   gl_FUNC_GETCWD_LGPL
1326   if test $REPLACE_GETCWD = 1; then
1327     AC_LIBOBJ([getcwd-lgpl])
1328   fi
1329   gl_UNISTD_MODULE_INDICATOR([getcwd])
1330   gl_MUSL_LIBC
1331   dnl Distinguish OpenBSD >= 6.2 from OpenBSD < 6.2.
1332   AC_CHECK_FUNCS_ONCE([duplocale])
1333   gl_FUNC_INET_PTON
1334   if test $HAVE_INET_PTON = 0 || test $REPLACE_INET_PTON = 1; then
1335     AC_LIBOBJ([inet_pton])
1336     gl_PREREQ_INET_PTON
1337   fi
1338   gl_ARPA_INET_MODULE_INDICATOR([inet_pton])
1339   AC_C_BIGENDIAN
1340   gl_FUNC_IOCTL
1341   if test $HAVE_IOCTL = 0 || test $REPLACE_IOCTL = 1; then
1342     AC_LIBOBJ([ioctl])
1343   fi
1344   gl_SYS_IOCTL_MODULE_INDICATOR([ioctl])
1345   gt_LOCALE_FR
1346   gt_LOCALE_FR_UTF8
1347   gt_LOCALE_JA
1348   gt_LOCALE_ZH_CN
1349   gt_LOCALE_FR
1350   gt_LOCALE_FR_UTF8
1351   gt_LOCALE_JA
1352   gt_LOCALE_ZH_CN
1353   AC_REQUIRE([gl_SYS_SOCKET_H])
1354   if test "$ac_cv_header_winsock2_h" = yes; then
1355     AC_LIBOBJ([listen])
1356   fi
1357   gl_SYS_SOCKET_MODULE_INDICATOR([listen])
1358   AC_CHECK_FUNCS_ONCE([newlocale])
1359   gt_LOCALE_FR
1360   gt_LOCALE_FR_UTF8
1361   gt_LOCALE_JA
1362   gt_LOCALE_ZH_CN
1363   gt_LOCALE_TR_UTF8
1364   gt_LOCALE_FR_UTF8
1365   gt_LOCALE_FR
1366   gt_LOCALE_FR_UTF8
1367   gt_LOCALE_JA
1368   gt_LOCALE_ZH_CN
1369   gt_LOCALE_FR_UTF8
1370   gt_LOCALE_ZH_CN
1371   dnl Check for prerequisites for memory fence checks.
1372   gl_FUNC_MMAP_ANON
1373   AC_CHECK_HEADERS_ONCE([sys/mman.h])
1374   AC_CHECK_FUNCS_ONCE([mprotect])
1375   gl_FUNC_NANOSLEEP
1376   if test $HAVE_NANOSLEEP = 0 || test $REPLACE_NANOSLEEP = 1; then
1377     AC_LIBOBJ([nanosleep])
1378     gl_PREREQ_NANOSLEEP
1379   fi
1380   gl_TIME_MODULE_INDICATOR([nanosleep])
1381   AC_CHECK_DECLS_ONCE([alarm])
1382   gl_HEADER_NETINET_IN
1383   AC_PROG_MKDIR_P
1384   gt_LOCALE_FR
1385   gt_LOCALE_FR_UTF8
1386   gl_FUNC_PERROR
1387   if test $REPLACE_PERROR = 1; then
1388     AC_LIBOBJ([perror])
1389   fi
1390   gl_STRING_MODULE_INDICATOR([perror])
1391   gl_FUNC_PIPE
1392   if test $HAVE_PIPE = 0; then
1393     AC_LIBOBJ([pipe])
1394   fi
1395   gl_UNISTD_MODULE_INDICATOR([pipe])
1396   gl_PTHREAD_H
1397   gl_PTHREAD_H_REQUIRE_DEFAULTS
1398   gl_PTHREAD_THREAD
1399   if test $HAVE_PTHREAD_CREATE = 0 || test $REPLACE_PTHREAD_CREATE = 1; then
1400     AC_LIBOBJ([pthread-thread])
1401   fi
1402   gl_PTHREAD_MODULE_INDICATOR([pthread-thread])
1403   gl_FUNC_PTHREAD_SIGMASK
1404   if test $HAVE_PTHREAD_SIGMASK = 0 || test $REPLACE_PTHREAD_SIGMASK = 1; then
1405     AC_LIBOBJ([pthread_sigmask])
1406     gl_PREREQ_PTHREAD_SIGMASK
1407   fi
1408   gl_SIGNAL_MODULE_INDICATOR([pthread_sigmask])
1409   gl_FUNC_PUTENV
1410   if test $REPLACE_PUTENV = 1; then
1411     AC_LIBOBJ([putenv])
1412     gl_PREREQ_PUTENV
1413   fi
1414   gl_STDLIB_MODULE_INDICATOR([putenv])
1415   dnl Check for prerequisites for memory fence checks.
1416   dnl FIXME: zerosize-ptr.h requires these: make a module for it
1417   gl_FUNC_MMAP_ANON
1418   AC_CHECK_HEADERS_ONCE([sys/mman.h])
1419   AC_CHECK_FUNCS_ONCE([mprotect])
1420   dnl Check for prerequisites for memory fence checks.
1421   gl_FUNC_MMAP_ANON
1422   AC_CHECK_HEADERS_ONCE([sys/mman.h])
1423   AC_CHECK_FUNCS_ONCE([mprotect])
1424   gl_SCHED_H
1425   gl_SCHED_H_REQUIRE_DEFAULTS
1426   gl_FUNC_SELECT
1427   if test $REPLACE_SELECT = 1; then
1428     AC_LIBOBJ([select])
1429   fi
1430   gl_SYS_SELECT_MODULE_INDICATOR([select])
1431   AC_CHECK_HEADERS_ONCE([sys/wait.h])
1432   AC_REQUIRE([gl_SYS_SOCKET_H])
1433   if test "$ac_cv_header_winsock2_h" = yes; then
1434     AC_LIBOBJ([setsockopt])
1435   fi
1436   gl_SYS_SOCKET_MODULE_INDICATOR([setsockopt])
1437   gl_SIGACTION
1438   if test $HAVE_SIGACTION = 0; then
1439     AC_LIBOBJ([sigaction])
1440     gl_PREREQ_SIGACTION
1441   fi
1442   gl_SIGNAL_MODULE_INDICATOR([sigaction])
1443   gl_SIGNALBLOCKING
1444   if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
1445     AC_LIBOBJ([sigprocmask])
1446     gl_PREREQ_SIGPROCMASK
1447   fi
1448   gl_SIGNAL_MODULE_INDICATOR([sigprocmask])
1449   AC_CHECK_FUNCS_ONCE([setrlimit])
1450   gl_FUNC_MMAP_ANON
1451   gl_FUNC_SLEEP
1452   if test $HAVE_SLEEP = 0 || test $REPLACE_SLEEP = 1; then
1453     AC_LIBOBJ([sleep])
1454   fi
1455   gl_UNISTD_MODULE_INDICATOR([sleep])
1456   AC_CHECK_DECLS_ONCE([alarm])
1457   gl_FUNC_SNPRINTF
1458   gl_STDIO_MODULE_INDICATOR([snprintf])
1459   gl_MODULE_INDICATOR([snprintf])
1460   AC_REQUIRE([gl_SYS_SOCKET_H])
1461   if test "$ac_cv_header_winsock2_h" = yes; then
1462     AC_LIBOBJ([socket])
1463   fi
1464   # When this module is used, sockets may actually occur as file descriptors,
1465   # hence it is worth warning if the modules 'close' and 'ioctl' are not used.
1466   m4_ifdef([gl_UNISTD_H_DEFAULTS], [gl_UNISTD_H_REQUIRE_DEFAULTS])
1467   m4_ifdef([gl_SYS_IOCTL_H_DEFAULTS], [gl_SYS_IOCTL_H_REQUIRE_DEFAULTS])
1468   AC_REQUIRE([gl_PREREQ_SYS_H_WINSOCK2])
1469   if test "$ac_cv_header_winsock2_h" = yes; then
1470     UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=1
1471     SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=1
1472   fi
1473   gl_SYS_SOCKET_MODULE_INDICATOR([socket])
1474   AC_REQUIRE([gl_SOCKETLIB])
1475   AC_REQUIRE([gl_SOCKETS])
1476   gl_TYPE_SOCKLEN_T
1477   AC_REQUIRE([gt_TYPE_WCHAR_T])
1478   AC_REQUIRE([gt_TYPE_WINT_T])
1479   gl_FUNC_STRERROR_R
1480   if test $HAVE_DECL_STRERROR_R = 0 || test $REPLACE_STRERROR_R = 1; then
1481     AC_LIBOBJ([strerror_r])
1482     gl_PREREQ_STRERROR_R
1483   fi
1484   gl_STRING_MODULE_INDICATOR([strerror_r])
1485   dnl For the modules argp, error.
1486   gl_MODULE_INDICATOR([strerror_r-posix])
1487   dnl Check for prerequisites for memory fence checks.
1488   gl_FUNC_MMAP_ANON
1489   AC_CHECK_HEADERS_ONCE([sys/mman.h])
1490   AC_CHECK_FUNCS_ONCE([mprotect])
1491   gl_FUNC_SYMLINK
1492   if test $HAVE_SYMLINK = 0 || test $REPLACE_SYMLINK = 1; then
1493     AC_LIBOBJ([symlink])
1494   fi
1495   gl_UNISTD_MODULE_INDICATOR([symlink])
1496   gl_SYS_IOCTL_H
1497   gl_SYS_IOCTL_H_REQUIRE_DEFAULTS
1498   AC_PROG_MKDIR_P
1499   gl_SYS_SELECT_H
1500   gl_SYS_SELECT_H_REQUIRE_DEFAULTS
1501   AC_PROG_MKDIR_P
1502   gl_SYS_SOCKET_H
1503   gl_SYS_SOCKET_H_REQUIRE_DEFAULTS
1504   AC_PROG_MKDIR_P
1505   AC_CHECK_FUNCS_ONCE([shutdown])
1506   gl_SYS_UIO_H
1507   gl_SYS_UIO_H_REQUIRE_DEFAULTS
1508   AC_PROG_MKDIR_P
1509   gl_THREAD
1510   abs_aux_dir=`cd "$ac_aux_dir"; pwd`
1511   AC_SUBST([abs_aux_dir])
1512   abs_aux_dir=`cd "$ac_aux_dir"; pwd`
1513   AC_SUBST([abs_aux_dir])
1514   gt_LOCALE_FR
1515   gt_LOCALE_FR_UTF8
1516   gt_LOCALE_JA
1517   gt_LOCALE_ZH_CN
1518   gl_FUNC_WCTOB
1519   if test $HAVE_WCTOB = 0 || test $REPLACE_WCTOB = 1; then
1520     AC_LIBOBJ([wctob])
1521     gl_PREREQ_WCTOB
1522   fi
1523   gl_WCHAR_MODULE_INDICATOR([wctob])
1524   gl_FUNC_WCTOMB
1525   if test $REPLACE_WCTOMB = 1; then
1526     AC_LIBOBJ([wctomb])
1527     gl_PREREQ_WCTOMB
1528   fi
1529   gl_STDLIB_MODULE_INDICATOR([wctomb])
1530   AC_REQUIRE([AC_CANONICAL_HOST])
1531   case "$host_os" in
1532     mingw*)
1533       AC_LIBOBJ([windows-thread])
1534       ;;
1535   esac
1536   AC_REQUIRE([AC_CANONICAL_HOST])
1537   case "$host_os" in
1538     mingw*)
1539       AC_LIBOBJ([windows-tls])
1540       ;;
1541   esac
1542   m4_popdef([gl_MODULE_INDICATOR_CONDITION])
1543   m4_ifval(gltests_LIBSOURCES_LIST, [
1544     m4_syscmd([test ! -d ]m4_defn([gltests_LIBSOURCES_DIR])[ ||
1545       for gl_file in ]gltests_LIBSOURCES_LIST[ ; do
1546         if test ! -r ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file ; then
1547           echo "missing file ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file" >&2
1548           exit 1
1549         fi
1550       done])dnl
1551       m4_if(m4_sysval, [0], [],
1552         [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
1553   ])
1554   m4_popdef([GL_MODULE_INDICATOR_PREFIX])
1555   m4_popdef([GL_MACRO_PREFIX])
1556   m4_popdef([gltests_LIBSOURCES_DIR])
1557   m4_popdef([gltests_LIBSOURCES_LIST])
1558   m4_popdef([AC_LIBSOURCES])
1559   m4_popdef([AC_REPLACE_FUNCS])
1560   m4_popdef([AC_LIBOBJ])
1561   AC_CONFIG_COMMANDS_PRE([
1562     gltests_libobjs=
1563     gltests_ltlibobjs=
1564     if test -n "$gltests_LIBOBJS"; then
1565       # Remove the extension.
1566       sed_drop_objext='s/\.o$//;s/\.obj$//'
1567       for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
1568         gltests_libobjs="$gltests_libobjs $i.$ac_objext"
1569         gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
1570       done
1571     fi
1572     AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs])
1573     AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs])
1574   ])
1575   LIBDIFFUTILS_LIBDEPS="$gl_libdeps"
1576   AC_SUBST([LIBDIFFUTILS_LIBDEPS])
1577   LIBDIFFUTILS_LTLIBDEPS="$gl_ltlibdeps"
1578   AC_SUBST([LIBDIFFUTILS_LTLIBDEPS])
1579   LIBTESTS_LIBDEPS="$gltests_libdeps"
1580   AC_SUBST([LIBTESTS_LIBDEPS])
1581 ])
1582
1583 # Like AC_LIBOBJ, except that the module name goes
1584 # into gl_LIBOBJS instead of into LIBOBJS.
1585 AC_DEFUN([gl_LIBOBJ], [
1586   AS_LITERAL_IF([$1], [gl_LIBSOURCES([$1.c])])dnl
1587   gl_LIBOBJS="$gl_LIBOBJS $1.$ac_objext"
1588 ])
1589
1590 # Like AC_REPLACE_FUNCS, except that the module name goes
1591 # into gl_LIBOBJS instead of into LIBOBJS.
1592 AC_DEFUN([gl_REPLACE_FUNCS], [
1593   m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
1594   AC_CHECK_FUNCS([$1], , [gl_LIBOBJ($ac_func)])
1595 ])
1596
1597 # Like AC_LIBSOURCES, except the directory where the source file is
1598 # expected is derived from the gnulib-tool parameterization,
1599 # and alloca is special cased (for the alloca-opt module).
1600 # We could also entirely rely on EXTRA_lib..._SOURCES.
1601 AC_DEFUN([gl_LIBSOURCES], [
1602   m4_foreach([_gl_NAME], [$1], [
1603     m4_if(_gl_NAME, [alloca.c], [], [
1604       m4_define([gl_LIBSOURCES_DIR], [lib])
1605       m4_append([gl_LIBSOURCES_LIST], _gl_NAME, [ ])
1606     ])
1607   ])
1608 ])
1609
1610 # Like AC_LIBOBJ, except that the module name goes
1611 # into gltests_LIBOBJS instead of into LIBOBJS.
1612 AC_DEFUN([gltests_LIBOBJ], [
1613   AS_LITERAL_IF([$1], [gltests_LIBSOURCES([$1.c])])dnl
1614   gltests_LIBOBJS="$gltests_LIBOBJS $1.$ac_objext"
1615 ])
1616
1617 # Like AC_REPLACE_FUNCS, except that the module name goes
1618 # into gltests_LIBOBJS instead of into LIBOBJS.
1619 AC_DEFUN([gltests_REPLACE_FUNCS], [
1620   m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
1621   AC_CHECK_FUNCS([$1], , [gltests_LIBOBJ($ac_func)])
1622 ])
1623
1624 # Like AC_LIBSOURCES, except the directory where the source file is
1625 # expected is derived from the gnulib-tool parameterization,
1626 # and alloca is special cased (for the alloca-opt module).
1627 # We could also entirely rely on EXTRA_lib..._SOURCES.
1628 AC_DEFUN([gltests_LIBSOURCES], [
1629   m4_foreach([_gl_NAME], [$1], [
1630     m4_if(_gl_NAME, [alloca.c], [], [
1631       m4_define([gltests_LIBSOURCES_DIR], [gnulib-tests])
1632       m4_append([gltests_LIBSOURCES_LIST], _gl_NAME, [ ])
1633     ])
1634   ])
1635 ])
1636
1637 # This macro records the list of files which have been installed by
1638 # gnulib-tool and may be removed by future gnulib-tool invocations.
1639 AC_DEFUN([gl_FILE_LIST], [
1640   build-aux/announce-gen
1641   build-aux/config.rpath
1642   build-aux/do-release-commit-and-tag
1643   build-aux/gendocs.sh
1644   build-aux/git-version-gen
1645   build-aux/gitlog-to-changelog
1646   build-aux/gnu-web-doc-update
1647   build-aux/gnupload
1648   build-aux/update-copyright
1649   build-aux/useless-if-before-free
1650   build-aux/vc-list-files
1651   doc/fdl.texi
1652   doc/gendocs_template
1653   doc/gendocs_template_min
1654   lib/_Noreturn.h
1655   lib/alloca.in.h
1656   lib/allocator.c
1657   lib/allocator.h
1658   lib/anytostr.c
1659   lib/areadlink.c
1660   lib/areadlink.h
1661   lib/arg-nonnull.h
1662   lib/argmatch.c
1663   lib/argmatch.h
1664   lib/asnprintf.c
1665   lib/asprintf.c
1666   lib/assure.h
1667   lib/attribute.h
1668   lib/basename-lgpl.c
1669   lib/basename-lgpl.h
1670   lib/basename.c
1671   lib/binary-io.c
1672   lib/binary-io.h
1673   lib/bitrotate.c
1674   lib/bitrotate.h
1675   lib/btowc.c
1676   lib/c++defs.h
1677   lib/c-ctype.c
1678   lib/c-ctype.h
1679   lib/c-stack.c
1680   lib/c-stack.h
1681   lib/c-strcase.h
1682   lib/c-strcasecmp.c
1683   lib/c-strcaseeq.h
1684   lib/c-strncasecmp.c
1685   lib/calloc.c
1686   lib/careadlinkat.c
1687   lib/careadlinkat.h
1688   lib/cdefs.h
1689   lib/cloexec.c
1690   lib/cloexec.h
1691   lib/close.c
1692   lib/ctype.in.h
1693   lib/diffseq.h
1694   lib/dirname-lgpl.c
1695   lib/dirname.c
1696   lib/dirname.h
1697   lib/dup2.c
1698   lib/dynarray.h
1699   lib/errno.in.h
1700   lib/error.c
1701   lib/error.h
1702   lib/exclude.c
1703   lib/exclude.h
1704   lib/exitfail.c
1705   lib/exitfail.h
1706   lib/fcntl.c
1707   lib/fcntl.in.h
1708   lib/fd-hook.c
1709   lib/fd-hook.h
1710   lib/file-type.c
1711   lib/file-type.h
1712   lib/filename.h
1713   lib/filenamecat-lgpl.c
1714   lib/filenamecat.c
1715   lib/filenamecat.h
1716   lib/flexmember.h
1717   lib/float+.h
1718   lib/float.c
1719   lib/float.in.h
1720   lib/fnmatch.c
1721   lib/fnmatch.in.h
1722   lib/fnmatch_loop.c
1723   lib/fopen.c
1724   lib/free.c
1725   lib/freopen.c
1726   lib/fstat.c
1727   lib/getdtablesize.c
1728   lib/getopt-cdefs.in.h
1729   lib/getopt-core.h
1730   lib/getopt-ext.h
1731   lib/getopt-pfx-core.h
1732   lib/getopt-pfx-ext.h
1733   lib/getopt.c
1734   lib/getopt.in.h
1735   lib/getopt1.c
1736   lib/getopt_int.h
1737   lib/getpagesize.c
1738   lib/getprogname.c
1739   lib/getprogname.h
1740   lib/getrandom.c
1741   lib/gettext.h
1742   lib/gettime.c
1743   lib/gettimeofday.c
1744   lib/glthread/lock.c
1745   lib/glthread/lock.h
1746   lib/glthread/threadlib.c
1747   lib/hard-locale.c
1748   lib/hard-locale.h
1749   lib/hash.c
1750   lib/hash.h
1751   lib/ialloc.c
1752   lib/ialloc.h
1753   lib/iconv.c
1754   lib/iconv.in.h
1755   lib/iconv_close.c
1756   lib/iconv_open-aix.gperf
1757   lib/iconv_open-hpux.gperf
1758   lib/iconv_open-irix.gperf
1759   lib/iconv_open-osf.gperf
1760   lib/iconv_open-solaris.gperf
1761   lib/iconv_open-zos.gperf
1762   lib/iconv_open.c
1763   lib/idx.h
1764   lib/ignore-value.h
1765   lib/imaxtostr.c
1766   lib/intprops.h
1767   lib/inttostr.c
1768   lib/inttostr.h
1769   lib/inttypes.in.h
1770   lib/isblank.c
1771   lib/iswblank.c
1772   lib/iswdigit.c
1773   lib/iswxdigit.c
1774   lib/itold.c
1775   lib/langinfo.in.h
1776   lib/lc-charset-dispatch.c
1777   lib/lc-charset-dispatch.h
1778   lib/libc-config.h
1779   lib/limits.in.h
1780   lib/localcharset.c
1781   lib/localcharset.h
1782   lib/locale.in.h
1783   lib/localeconv.c
1784   lib/lstat.c
1785   lib/malloc.c
1786   lib/malloc/dynarray-skeleton.c
1787   lib/malloc/dynarray.h
1788   lib/malloc/dynarray_at_failure.c
1789   lib/malloc/dynarray_emplace_enlarge.c
1790   lib/malloc/dynarray_finalize.c
1791   lib/malloc/dynarray_resize.c
1792   lib/malloc/dynarray_resize_clear.c
1793   lib/malloca.c
1794   lib/malloca.h
1795   lib/mbchar.c
1796   lib/mbchar.h
1797   lib/mbiter.c
1798   lib/mbiter.h
1799   lib/mbrtowc-impl-utf8.h
1800   lib/mbrtowc-impl.h
1801   lib/mbrtowc.c
1802   lib/mbscasecmp.c
1803   lib/mbsinit.c
1804   lib/mbslen.c
1805   lib/mbsrtowcs-impl.h
1806   lib/mbsrtowcs-state.c
1807   lib/mbsrtowcs.c
1808   lib/mbsstr.c
1809   lib/mbtowc-impl.h
1810   lib/mbtowc-lock.c
1811   lib/mbtowc-lock.h
1812   lib/mbtowc.c
1813   lib/mbuiter.c
1814   lib/mbuiter.h
1815   lib/memchr.c
1816   lib/memchr.valgrind
1817   lib/mempcpy.c
1818   lib/minmax.h
1819   lib/mkdir.c
1820   lib/mkstemp.c
1821   lib/mktime-internal.h
1822   lib/mktime.c
1823   lib/msvc-inval.c
1824   lib/msvc-inval.h
1825   lib/msvc-nothrow.c
1826   lib/msvc-nothrow.h
1827   lib/nl_langinfo-lock.c
1828   lib/nl_langinfo.c
1829   lib/nstrftime.c
1830   lib/offtostr.c
1831   lib/open.c
1832   lib/pathmax.h
1833   lib/printf-args.c
1834   lib/printf-args.h
1835   lib/printf-parse.c
1836   lib/printf-parse.h
1837   lib/progname.c
1838   lib/progname.h
1839   lib/propername.c
1840   lib/propername.h
1841   lib/quote.h
1842   lib/quotearg.c
1843   lib/quotearg.h
1844   lib/raise.c
1845   lib/rawmemchr.c
1846   lib/rawmemchr.valgrind
1847   lib/readlink.c
1848   lib/realloc.c
1849   lib/reallocarray.c
1850   lib/regcomp.c
1851   lib/regex.c
1852   lib/regex.h
1853   lib/regex_internal.c
1854   lib/regex_internal.h
1855   lib/regexec.c
1856   lib/setenv.c
1857   lib/setlocale-lock.c
1858   lib/setlocale_null.c
1859   lib/setlocale_null.h
1860   lib/sh-quote.c
1861   lib/sh-quote.h
1862   lib/signal.in.h
1863   lib/sigsegv.c
1864   lib/sigsegv.in.h
1865   lib/size_max.h
1866   lib/stackvma.c
1867   lib/stackvma.h
1868   lib/stat-macros.h
1869   lib/stat-time.c
1870   lib/stat-time.h
1871   lib/stat-w32.c
1872   lib/stat-w32.h
1873   lib/stat.c
1874   lib/stdalign.in.h
1875   lib/stdarg.in.h
1876   lib/stdbool.in.h
1877   lib/stddef.in.h
1878   lib/stdint.in.h
1879   lib/stdio.in.h
1880   lib/stdlib.in.h
1881   lib/stdopen.c
1882   lib/stdopen.h
1883   lib/str-kmp.h
1884   lib/strcasecmp.c
1885   lib/streq.h
1886   lib/strerror-override.c
1887   lib/strerror-override.h
1888   lib/strerror.c
1889   lib/strftime.h
1890   lib/striconv.c
1891   lib/striconv.h
1892   lib/string.in.h
1893   lib/strings.in.h
1894   lib/stripslash.c
1895   lib/strncasecmp.c
1896   lib/strnlen.c
1897   lib/strnlen1.c
1898   lib/strnlen1.h
1899   lib/strptime.c
1900   lib/strtoimax.c
1901   lib/strtol.c
1902   lib/strtoll.c
1903   lib/sys_random.in.h
1904   lib/sys_stat.in.h
1905   lib/sys_time.in.h
1906   lib/sys_types.in.h
1907   lib/sys_wait.in.h
1908   lib/system-quote.c
1909   lib/system-quote.h
1910   lib/tempname.c
1911   lib/tempname.h
1912   lib/time-internal.h
1913   lib/time.in.h
1914   lib/time_r.c
1915   lib/time_rz.c
1916   lib/timegm.c
1917   lib/timespec.c
1918   lib/timespec.h
1919   lib/trim.c
1920   lib/trim.h
1921   lib/tzset.c
1922   lib/uinttostr.c
1923   lib/umaxtostr.c
1924   lib/unistd.c
1925   lib/unistd.in.h
1926   lib/unistr.in.h
1927   lib/unistr/u8-mbtoucr.c
1928   lib/unistr/u8-uctomb-aux.c
1929   lib/unistr/u8-uctomb.c
1930   lib/unitypes.in.h
1931   lib/uniwidth.in.h
1932   lib/uniwidth/cjk.h
1933   lib/uniwidth/width.c
1934   lib/unlocked-io.h
1935   lib/unsetenv.c
1936   lib/vasnprintf.c
1937   lib/vasnprintf.h
1938   lib/vasprintf.c
1939   lib/verify.h
1940   lib/version-etc-fsf.c
1941   lib/version-etc.c
1942   lib/version-etc.h
1943   lib/warn-on-use.h
1944   lib/wchar.in.h
1945   lib/wcrtomb.c
1946   lib/wctype-h.c
1947   lib/wctype.in.h
1948   lib/wcwidth.c
1949   lib/windows-initguard.h
1950   lib/windows-mutex.c
1951   lib/windows-mutex.h
1952   lib/windows-once.c
1953   lib/windows-once.h
1954   lib/windows-recmutex.c
1955   lib/windows-recmutex.h
1956   lib/windows-rwlock.c
1957   lib/windows-rwlock.h
1958   lib/wmemchr-impl.h
1959   lib/wmemchr.c
1960   lib/wmempcpy.c
1961   lib/xalloc-die.c
1962   lib/xalloc-oversized.h
1963   lib/xalloc.h
1964   lib/xasprintf.c
1965   lib/xfreopen.c
1966   lib/xfreopen.h
1967   lib/xmalloc.c
1968   lib/xmalloca.c
1969   lib/xmalloca.h
1970   lib/xreadlink.c
1971   lib/xreadlink.h
1972   lib/xsize.c
1973   lib/xsize.h
1974   lib/xstdopen.c
1975   lib/xstdopen.h
1976   lib/xstriconv.c
1977   lib/xstriconv.h
1978   lib/xstrtoimax.c
1979   lib/xstrtol.c
1980   lib/xstrtol.h
1981   lib/xstrtoul.c
1982   lib/xvasprintf.c
1983   lib/xvasprintf.h
1984   m4/00gnulib.m4
1985   m4/__inline.m4
1986   m4/absolute-header.m4
1987   m4/alloca.m4
1988   m4/arpa_inet_h.m4
1989   m4/asm-underscore.m4
1990   m4/atoll.m4
1991   m4/btowc.m4
1992   m4/builtin-expect.m4
1993   m4/c-stack.m4
1994   m4/calloc.m4
1995   m4/clock_time.m4
1996   m4/close.m4
1997   m4/codeset.m4
1998   m4/config-h.m4
1999   m4/ctype_h.m4
2000   m4/double-slash-root.m4
2001   m4/dup2.m4
2002   m4/eealloc.m4
2003   m4/environ.m4
2004   m4/errno_h.m4
2005   m4/error.m4
2006   m4/exponentd.m4
2007   m4/extensions.m4
2008   m4/extern-inline.m4
2009   m4/fcntl-o.m4
2010   m4/fcntl.m4
2011   m4/fcntl_h.m4
2012   m4/fdopen.m4
2013   m4/filenamecat.m4
2014   m4/flexmember.m4
2015   m4/float_h.m4
2016   m4/fnmatch.m4
2017   m4/fnmatch_h.m4
2018   m4/fopen.m4
2019   m4/fpieee.m4
2020   m4/free.m4
2021   m4/freopen.m4
2022   m4/fstat.m4
2023   m4/ftruncate.m4
2024   m4/getcwd.m4
2025   m4/getdtablesize.m4
2026   m4/getopt.m4
2027   m4/getpagesize.m4
2028   m4/getprogname.m4
2029   m4/getrandom.m4
2030   m4/gettime.m4
2031   m4/gettimeofday.m4
2032   m4/gnu-make.m4
2033   m4/gnulib-common.m4
2034   m4/host-cpu-c-abi.m4
2035   m4/iconv.m4
2036   m4/iconv_h.m4
2037   m4/iconv_open.m4
2038   m4/include_next.m4
2039   m4/inet_pton.m4
2040   m4/inline.m4
2041   m4/intmax_t.m4
2042   m4/inttostr.m4
2043   m4/inttypes.m4
2044   m4/inttypes_h.m4
2045   m4/ioctl.m4
2046   m4/isblank.m4
2047   m4/iswblank.m4
2048   m4/iswdigit.m4
2049   m4/iswxdigit.m4
2050   m4/langinfo_h.m4
2051   m4/largefile.m4
2052   m4/lib-ld.m4
2053   m4/lib-link.m4
2054   m4/lib-prefix.m4
2055   m4/libsigsegv.m4
2056   m4/libunistring-base.m4
2057   m4/limits-h.m4
2058   m4/localcharset.m4
2059   m4/locale-fr.m4
2060   m4/locale-ja.m4
2061   m4/locale-tr.m4
2062   m4/locale-zh.m4
2063   m4/locale_h.m4
2064   m4/localeconv.m4
2065   m4/lock.m4
2066   m4/lstat.m4
2067   m4/malloc.m4
2068   m4/malloca.m4
2069   m4/manywarnings-c++.m4
2070   m4/manywarnings.m4
2071   m4/math_h.m4
2072   m4/mbchar.m4
2073   m4/mbiter.m4
2074   m4/mbrtowc.m4
2075   m4/mbsinit.m4
2076   m4/mbslen.m4
2077   m4/mbsrtowcs.m4
2078   m4/mbstate_t.m4
2079   m4/mbtowc.m4
2080   m4/memchr.m4
2081   m4/mempcpy.m4
2082   m4/minmax.m4
2083   m4/mkdir.m4
2084   m4/mkstemp.m4
2085   m4/mktime.m4
2086   m4/mmap-anon.m4
2087   m4/mode_t.m4
2088   m4/msvc-inval.m4
2089   m4/msvc-nothrow.m4
2090   m4/multiarch.m4
2091   m4/musl.m4
2092   m4/nanosleep.m4
2093   m4/netinet_in_h.m4
2094   m4/nl_langinfo.m4
2095   m4/nocrash.m4
2096   m4/nstrftime.m4
2097   m4/off_t.m4
2098   m4/open-cloexec.m4
2099   m4/open-slash.m4
2100   m4/open.m4
2101   m4/pathmax.m4
2102   m4/perror.m4
2103   m4/pid_t.m4
2104   m4/pipe.m4
2105   m4/printf.m4
2106   m4/pthread-thread.m4
2107   m4/pthread_h.m4
2108   m4/pthread_rwlock_rdlock.m4
2109   m4/pthread_sigmask.m4
2110   m4/putenv.m4
2111   m4/quote.m4
2112   m4/quotearg.m4
2113   m4/raise.m4
2114   m4/rawmemchr.m4
2115   m4/readlink.m4
2116   m4/realloc.m4
2117   m4/reallocarray.m4
2118   m4/regex.m4
2119   m4/sched_h.m4
2120   m4/select.m4
2121   m4/setenv.m4
2122   m4/setlocale_null.m4
2123   m4/sigaction.m4
2124   m4/sigaltstack.m4
2125   m4/signal_h.m4
2126   m4/signalblocking.m4
2127   m4/size_max.m4
2128   m4/sleep.m4
2129   m4/snprintf.m4
2130   m4/socketlib.m4
2131   m4/sockets.m4
2132   m4/socklen.m4
2133   m4/sockpfaf.m4
2134   m4/ssize_t.m4
2135   m4/stack-direction.m4
2136   m4/stat-time.m4
2137   m4/stat.m4
2138   m4/std-gnu11.m4
2139   m4/stdalign.m4
2140   m4/stdarg.m4
2141   m4/stdbool.m4
2142   m4/stddef_h.m4
2143   m4/stdint.m4
2144   m4/stdint_h.m4
2145   m4/stdio_h.m4
2146   m4/stdlib_h.m4
2147   m4/strcase.m4
2148   m4/strerror.m4
2149   m4/strerror_r.m4
2150   m4/string_h.m4
2151   m4/strings_h.m4
2152   m4/strnlen.m4
2153   m4/strptime.m4
2154   m4/strtoimax.m4
2155   m4/strtoll.m4
2156   m4/symlink.m4
2157   m4/sys_ioctl_h.m4
2158   m4/sys_random_h.m4
2159   m4/sys_select_h.m4
2160   m4/sys_socket_h.m4
2161   m4/sys_stat_h.m4
2162   m4/sys_time_h.m4
2163   m4/sys_types_h.m4
2164   m4/sys_uio_h.m4
2165   m4/sys_wait_h.m4
2166   m4/tempname.m4
2167   m4/thread.m4
2168   m4/threadlib.m4
2169   m4/time_h.m4
2170   m4/time_r.m4
2171   m4/time_rz.m4
2172   m4/timegm.m4
2173   m4/timespec.m4
2174   m4/tm_gmtoff.m4
2175   m4/tzset.m4
2176   m4/unistd_h.m4
2177   m4/unlocked-io.m4
2178   m4/vasnprintf.m4
2179   m4/vasprintf.m4
2180   m4/version-etc.m4
2181   m4/visibility.m4
2182   m4/warn-on-use.m4
2183   m4/warnings.m4
2184   m4/wchar_h.m4
2185   m4/wchar_t.m4
2186   m4/wcrtomb.m4
2187   m4/wctob.m4
2188   m4/wctomb.m4
2189   m4/wctype_h.m4
2190   m4/wcwidth.m4
2191   m4/wint_t.m4
2192   m4/wmemchr.m4
2193   m4/wmempcpy.m4
2194   m4/xalloc.m4
2195   m4/xsize.m4
2196   m4/xstrtol.m4
2197   m4/xvasprintf.m4
2198   m4/year2038.m4
2199   m4/zzgnulib.m4
2200   tests/altstack-util.h
2201   tests/init.sh
2202   tests/locale.c
2203   tests/macros.h
2204   tests/mmap-anon-util.h
2205   tests/nap.h
2206   tests/signature.h
2207   tests/test-accept.c
2208   tests/test-alloca-opt.c
2209   tests/test-areadlink.c
2210   tests/test-areadlink.h
2211   tests/test-argmatch.c
2212   tests/test-arpa_inet.c
2213   tests/test-binary-io.c
2214   tests/test-binary-io.sh
2215   tests/test-bind.c
2216   tests/test-bitrotate.c
2217   tests/test-btowc.c
2218   tests/test-btowc1.sh
2219   tests/test-btowc2.sh
2220   tests/test-c-ctype.c
2221   tests/test-c-stack.c
2222   tests/test-c-stack.sh
2223   tests/test-c-stack2.sh
2224   tests/test-c-strcase.sh
2225   tests/test-c-strcasecmp.c
2226   tests/test-c-strncasecmp.c
2227   tests/test-calloc-gnu.c
2228   tests/test-cloexec.c
2229   tests/test-close.c
2230   tests/test-connect.c
2231   tests/test-ctype.c
2232   tests/test-dirname.c
2233   tests/test-dup2.c
2234   tests/test-dynarray.c
2235   tests/test-environ.c
2236   tests/test-errno.c
2237   tests/test-exclude.c
2238   tests/test-exclude1.sh
2239   tests/test-exclude2.sh
2240   tests/test-exclude3.sh
2241   tests/test-exclude4.sh
2242   tests/test-exclude5.sh
2243   tests/test-exclude6.sh
2244   tests/test-exclude7.sh
2245   tests/test-exclude8.sh
2246   tests/test-fcntl-h.c
2247   tests/test-fcntl.c
2248   tests/test-fdopen.c
2249   tests/test-fgetc.c
2250   tests/test-filenamecat.c
2251   tests/test-float.c
2252   tests/test-fnmatch-h.c
2253   tests/test-fnmatch.c
2254   tests/test-fopen-gnu.c
2255   tests/test-fopen.c
2256   tests/test-fopen.h
2257   tests/test-fputc.c
2258   tests/test-fread.c
2259   tests/test-free.c
2260   tests/test-freopen.c
2261   tests/test-fstat.c
2262   tests/test-ftruncate.c
2263   tests/test-ftruncate.sh
2264   tests/test-fwrite.c
2265   tests/test-getcwd-lgpl.c
2266   tests/test-getdtablesize.c
2267   tests/test-getopt-gnu.c
2268   tests/test-getopt-main.h
2269   tests/test-getopt-posix.c
2270   tests/test-getopt.h
2271   tests/test-getopt_long.h
2272   tests/test-getprogname.c
2273   tests/test-getrandom.c
2274   tests/test-gettimeofday.c
2275   tests/test-hard-locale.c
2276   tests/test-hash.c
2277   tests/test-iconv-h.c
2278   tests/test-iconv.c
2279   tests/test-ignore-value.c
2280   tests/test-inet_pton.c
2281   tests/test-init.sh
2282   tests/test-intprops.c
2283   tests/test-inttostr.c
2284   tests/test-inttypes.c
2285   tests/test-ioctl.c
2286   tests/test-isblank.c
2287   tests/test-iswblank.c
2288   tests/test-iswdigit.c
2289   tests/test-iswdigit.sh
2290   tests/test-iswxdigit.c
2291   tests/test-iswxdigit.sh
2292   tests/test-langinfo.c
2293   tests/test-limits-h.c
2294   tests/test-listen.c
2295   tests/test-localcharset.c
2296   tests/test-locale.c
2297   tests/test-localeconv.c
2298   tests/test-lstat.c
2299   tests/test-lstat.h
2300   tests/test-malloc-gnu.c
2301   tests/test-malloca.c
2302   tests/test-mbrtowc-w32-1.sh
2303   tests/test-mbrtowc-w32-2.sh
2304   tests/test-mbrtowc-w32-3.sh
2305   tests/test-mbrtowc-w32-4.sh
2306   tests/test-mbrtowc-w32-5.sh
2307   tests/test-mbrtowc-w32-6.sh
2308   tests/test-mbrtowc-w32-7.sh
2309   tests/test-mbrtowc-w32.c
2310   tests/test-mbrtowc.c
2311   tests/test-mbrtowc1.sh
2312   tests/test-mbrtowc2.sh
2313   tests/test-mbrtowc3.sh
2314   tests/test-mbrtowc4.sh
2315   tests/test-mbrtowc5.sh
2316   tests/test-mbscasecmp.c
2317   tests/test-mbscasecmp.sh
2318   tests/test-mbsinit.c
2319   tests/test-mbsinit.sh
2320   tests/test-mbsrtowcs.c
2321   tests/test-mbsrtowcs1.sh
2322   tests/test-mbsrtowcs2.sh
2323   tests/test-mbsrtowcs3.sh
2324   tests/test-mbsrtowcs4.sh
2325   tests/test-mbsstr1.c
2326   tests/test-mbsstr2.c
2327   tests/test-mbsstr2.sh
2328   tests/test-mbsstr3.c
2329   tests/test-mbsstr3.sh
2330   tests/test-memchr.c
2331   tests/test-mkdir.c
2332   tests/test-mkdir.h
2333   tests/test-nanosleep.c
2334   tests/test-netinet_in.c
2335   tests/test-nl_langinfo-mt.c
2336   tests/test-nl_langinfo.c
2337   tests/test-nl_langinfo.sh
2338   tests/test-nstrftime.c
2339   tests/test-open.c
2340   tests/test-open.h
2341   tests/test-pathmax.c
2342   tests/test-perror.c
2343   tests/test-perror.sh
2344   tests/test-perror2.c
2345   tests/test-pipe.c
2346   tests/test-pthread-thread.c
2347   tests/test-pthread.c
2348   tests/test-pthread_sigmask1.c
2349   tests/test-pthread_sigmask2.c
2350   tests/test-quotearg-simple.c
2351   tests/test-quotearg.h
2352   tests/test-raise.c
2353   tests/test-rawmemchr.c
2354   tests/test-readlink.c
2355   tests/test-readlink.h
2356   tests/test-realloc-gnu.c
2357   tests/test-reallocarray.c
2358   tests/test-regex.c
2359   tests/test-sched.c
2360   tests/test-select-fd.c
2361   tests/test-select-in.sh
2362   tests/test-select-out.sh
2363   tests/test-select-stdin.c
2364   tests/test-select.c
2365   tests/test-select.h
2366   tests/test-setenv.c
2367   tests/test-setlocale_null-mt-all.c
2368   tests/test-setlocale_null-mt-one.c
2369   tests/test-setlocale_null.c
2370   tests/test-setsockopt.c
2371   tests/test-sh-quote.c
2372   tests/test-sigaction.c
2373   tests/test-signal-h.c
2374   tests/test-sigprocmask.c
2375   tests/test-sigsegv-catch-segv1.c
2376   tests/test-sigsegv-catch-segv2.c
2377   tests/test-sigsegv-catch-stackoverflow1.c
2378   tests/test-sigsegv-catch-stackoverflow2.c
2379   tests/test-sleep.c
2380   tests/test-snprintf.c
2381   tests/test-sockets.c
2382   tests/test-stat-time.c
2383   tests/test-stat.c
2384   tests/test-stat.h
2385   tests/test-stdalign.c
2386   tests/test-stdbool.c
2387   tests/test-stddef.c
2388   tests/test-stdint.c
2389   tests/test-stdio.c
2390   tests/test-stdlib.c
2391   tests/test-strerror.c
2392   tests/test-strerror_r.c
2393   tests/test-striconv.c
2394   tests/test-string.c
2395   tests/test-strings.c
2396   tests/test-strnlen.c
2397   tests/test-strtoimax.c
2398   tests/test-strtoll.c
2399   tests/test-symlink.c
2400   tests/test-symlink.h
2401   tests/test-sys_ioctl.c
2402   tests/test-sys_random.c
2403   tests/test-sys_select.c
2404   tests/test-sys_socket.c
2405   tests/test-sys_stat.c
2406   tests/test-sys_time.c
2407   tests/test-sys_types.c
2408   tests/test-sys_uio.c
2409   tests/test-sys_wait.c
2410   tests/test-sys_wait.h
2411   tests/test-thread_create.c
2412   tests/test-thread_self.c
2413   tests/test-time.c
2414   tests/test-timespec.c
2415   tests/test-unistd.c
2416   tests/test-unsetenv.c
2417   tests/test-update-copyright.sh
2418   tests/test-vasnprintf.c
2419   tests/test-vasprintf.c
2420   tests/test-vc-list-files-cvs.sh
2421   tests/test-vc-list-files-git.sh
2422   tests/test-verify-try.c
2423   tests/test-verify.c
2424   tests/test-verify.sh
2425   tests/test-version-etc.c
2426   tests/test-version-etc.sh
2427   tests/test-wchar.c
2428   tests/test-wcrtomb-w32-1.sh
2429   tests/test-wcrtomb-w32-2.sh
2430   tests/test-wcrtomb-w32-3.sh
2431   tests/test-wcrtomb-w32-4.sh
2432   tests/test-wcrtomb-w32-5.sh
2433   tests/test-wcrtomb-w32-6.sh
2434   tests/test-wcrtomb-w32-7.sh
2435   tests/test-wcrtomb-w32.c
2436   tests/test-wcrtomb.c
2437   tests/test-wcrtomb.sh
2438   tests/test-wctype-h.c
2439   tests/test-wcwidth.c
2440   tests/test-xalloc-die.c
2441   tests/test-xalloc-die.sh
2442   tests/test-xstdopen.c
2443   tests/test-xstdopen.sh
2444   tests/test-xstrtoimax.c
2445   tests/test-xstrtoimax.sh
2446   tests/test-xstrtol.c
2447   tests/test-xstrtol.sh
2448   tests/test-xstrtoul.c
2449   tests/test-xvasprintf.c
2450   tests/unistr/test-u8-mbtoucr.c
2451   tests/unistr/test-u8-uctomb.c
2452   tests/uniwidth/test-uc_width.c
2453   tests/uniwidth/test-uc_width2.c
2454   tests/uniwidth/test-uc_width2.sh
2455   tests/zerosize-ptr.h
2456   tests=lib/_Noreturn.h
2457   tests=lib/accept.c
2458   tests=lib/alloca.c
2459   tests=lib/arg-nonnull.h
2460   tests=lib/arpa_inet.in.h
2461   tests=lib/atoll.c
2462   tests=lib/bind.c
2463   tests=lib/c++defs.h
2464   tests=lib/connect.c
2465   tests=lib/dtotimespec.c
2466   tests=lib/fdopen.c
2467   tests=lib/fpucw.h
2468   tests=lib/ftruncate.c
2469   tests=lib/getcwd-lgpl.c
2470   tests=lib/glthread/thread.c
2471   tests=lib/glthread/thread.h
2472   tests=lib/hash-pjw.c
2473   tests=lib/hash-pjw.h
2474   tests=lib/inet_pton.c
2475   tests=lib/ioctl.c
2476   tests=lib/listen.c
2477   tests=lib/nanosleep.c
2478   tests=lib/netinet_in.in.h
2479   tests=lib/perror.c
2480   tests=lib/pipe.c
2481   tests=lib/pthread-thread.c
2482   tests=lib/pthread.in.h
2483   tests=lib/pthread_sigmask.c
2484   tests=lib/putenv.c
2485   tests=lib/same-inode.h
2486   tests=lib/sched.in.h
2487   tests=lib/select.c
2488   tests=lib/setsockopt.c
2489   tests=lib/sig-handler.c
2490   tests=lib/sig-handler.h
2491   tests=lib/sigaction.c
2492   tests=lib/sigprocmask.c
2493   tests=lib/sleep.c
2494   tests=lib/snprintf.c
2495   tests=lib/socket.c
2496   tests=lib/sockets.c
2497   tests=lib/sockets.h
2498   tests=lib/strerror_r.c
2499   tests=lib/symlink.c
2500   tests=lib/sys_ioctl.in.h
2501   tests=lib/sys_select.in.h
2502   tests=lib/sys_socket.c
2503   tests=lib/sys_socket.in.h
2504   tests=lib/sys_uio.in.h
2505   tests=lib/timespec-add.c
2506   tests=lib/timespec-sub.c
2507   tests=lib/w32sock.h
2508   tests=lib/warn-on-use.h
2509   tests=lib/wctob.c
2510   tests=lib/wctomb-impl.h
2511   tests=lib/wctomb.c
2512   tests=lib/windows-thread.c
2513   tests=lib/windows-thread.h
2514   tests=lib/windows-tls.c
2515   tests=lib/windows-tls.h
2516   tests=lib/xstrtol-error.c
2517   tests=lib/xstrtol-error.h
2518   top/GNUmakefile
2519   top/README-release
2520   top/maint.mk
2521 ])