1 # DO NOT EDIT! GENERATED AUTOMATICALLY!
2 # Copyright (C) 2002-2021 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 <https://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
42 AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
43 AC_REQUIRE([gl_PROG_AR_RANLIB])
45 AC_REQUIRE([AM_PROG_CC_C_O])
46 # Code from module absolute-header:
47 # Code from module alloca:
48 # Code from module alloca-opt:
49 # Code from module arpa_inet:
50 # Code from module assure:
51 # Code from module at-internal:
52 # Code from module attribute:
53 # Code from module basename-lgpl:
54 # Code from module btowc:
55 # Code from module builtin-expect:
56 # Code from module c99:
57 # Code from module canonicalize-lgpl:
58 # Code from module chdir:
59 # Code from module chdir-long:
60 # Code from module chown:
61 # Code from module clock-time:
62 # Code from module cloexec:
63 # Code from module close:
64 # Code from module closedir:
65 # Code from module count-one-bits:
66 # Code from module ctype:
67 # Code from module d-ino:
68 # Code from module d-type:
69 # Code from module dirent:
70 # Code from module dirfd:
71 # Code from module dirname-lgpl:
72 # Code from module double-slash-root:
73 # Code from module dup:
74 # Code from module dup2:
75 # Code from module eloop-threshold:
76 # Code from module environ:
77 # Code from module errno:
78 # Code from module error:
79 # Code from module exitfail:
80 # Code from module extensions:
81 # Code from module extern-inline:
82 # Code from module fchdir:
83 # Code from module fcntl:
84 # Code from module fcntl-h:
85 # Code from module fd-hook:
86 # Code from module fd-safer-flag:
87 # Code from module fdopendir:
88 # Code from module ffs:
89 # Code from module filename:
90 # Code from module filenamecat-lgpl:
91 # Code from module flexmember:
92 # Code from module float:
93 # Code from module fnmatch:
94 # Code from module fnmatch-gnu:
95 # Code from module fnmatch-h:
96 # Code from module fpieee:
97 AC_REQUIRE([gl_FP_IEEE])
98 # Code from module fpucw:
99 # Code from module free-posix:
100 # Code from module frexp:
101 # Code from module frexpl:
102 # Code from module fstat:
103 # Code from module fstatat:
104 # Code from module gendocs:
105 # Code from module getcwd:
106 # Code from module getcwd-lgpl:
107 # Code from module getdelim:
108 # Code from module getdtablesize:
109 # Code from module getline:
110 # Code from module getlogin_r:
111 # Code from module getprogname:
112 # Code from module getrandom:
113 # Code from module gettext-h:
114 # Code from module gettimeofday:
115 # Code from module gitlog-to-changelog:
116 # Code from module glob:
117 # Code from module glob-h:
118 # Code from module hard-locale:
119 # Code from module idx:
120 # Code from module include_next:
121 # Code from module inet_ntop:
122 # Code from module intprops:
123 # Code from module inttypes:
124 # Code from module inttypes-incomplete:
125 # Code from module isblank:
126 # Code from module isnand-nolibm:
127 # Code from module isnanl-nolibm:
128 # Code from module largefile:
129 AC_REQUIRE([AC_SYS_LARGEFILE])
130 # Code from module libc-config:
131 # Code from module limits-h:
132 # Code from module localcharset:
133 # Code from module locale:
134 # Code from module lock:
135 # Code from module lstat:
136 # Code from module malloc-posix:
137 # Code from module malloca:
138 # Code from module math:
139 # Code from module mbrtowc:
140 # Code from module mbsinit:
141 # Code from module mbsrtowcs:
142 # Code from module mbtowc:
143 # Code from module memchr:
144 # Code from module memmem:
145 # Code from module memmem-simple:
146 # Code from module mempcpy:
147 # Code from module memrchr:
148 # Code from module minmax:
149 # Code from module mkdir:
150 # Code from module mkdtemp:
151 # Code from module mkostemp:
152 # Code from module msvc-inval:
153 # Code from module msvc-nothrow:
154 # Code from module multiarch:
155 # Code from module netinet_in:
156 # Code from module nocrash:
157 # Code from module open:
158 # Code from module openat:
159 # Code from module openat-die:
160 # Code from module openat-h:
161 # Code from module opendir:
162 # Code from module pathmax:
163 # Code from module pipe-posix:
164 # Code from module rawmemchr:
165 # Code from module readdir:
166 # Code from module readlink:
167 # Code from module realloc-posix:
168 # Code from module rename:
169 # Code from module rewinddir:
170 # Code from module rmdir:
171 # Code from module same-inode:
172 # Code from module save-cwd:
173 # Code from module scratch_buffer:
174 # Code from module setenv:
175 # Code from module setlocale-null:
176 # Code from module signal-h:
177 # Code from module snippet/_Noreturn:
178 # Code from module snippet/arg-nonnull:
179 # Code from module snippet/c++defs:
180 # Code from module snippet/warn-on-use:
181 # Code from module socklen:
182 # Code from module ssize_t:
183 # Code from module stat:
184 # Code from module stat-time:
185 # Code from module std-gnu11:
186 # Code from module stdalign:
187 # Code from module stdbool:
188 # Code from module stddef:
189 # Code from module stdint:
190 # Code from module stdio:
191 # Code from module stdlib:
192 # Code from module strchrnul:
193 # Code from module strdup-posix:
194 # Code from module streq:
195 # Code from module strerror:
196 # Code from module strerror-override:
197 # Code from module strerror_r-posix:
198 # Code from module string:
199 # Code from module strings:
200 # Code from module strnlen:
201 # Code from module strnlen1:
202 # Code from module strstr:
203 # Code from module strstr-simple:
204 # Code from module strtok_r:
205 # Code from module sys_random:
206 # Code from module sys_socket:
207 # Code from module sys_stat:
208 # Code from module sys_time:
209 # Code from module sys_types:
210 # Code from module sys_uio:
211 # Code from module tempname:
212 # Code from module threadlib:
214 # Code from module time:
215 # Code from module time_r:
216 # Code from module unistd:
217 # Code from module unistd-safer:
218 # Code from module unsetenv:
219 # Code from module update-copyright:
220 # Code from module verify:
221 # Code from module wchar:
222 # Code from module wctype-h:
223 # Code from module windows-mutex:
224 # Code from module windows-once:
225 # Code from module windows-recmutex:
226 # Code from module windows-rwlock:
227 # Code from module wmemchr:
228 # Code from module wmempcpy:
229 # Code from module xalloc-oversized:
232 # This macro should be invoked from ./configure.ac, in the section
233 # "Check for header files, types and library functions".
236 AM_CONDITIONAL([GL_COND_LIBTOOL], [false])
237 gl_cond_libtool=false
240 gl_m4_base='import/m4'
241 m4_pushdef([AC_LIBOBJ], m4_defn([gl_LIBOBJ]))
242 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gl_REPLACE_FUNCS]))
243 m4_pushdef([AC_LIBSOURCES], m4_defn([gl_LIBSOURCES]))
244 m4_pushdef([gl_LIBSOURCES_LIST], [])
245 m4_pushdef([gl_LIBSOURCES_DIR], [])
247 gl_source_base='import'
251 AC_REQUIRE([AC_CANONICAL_HOST])
253 if test $HAVE_BTOWC = 0 || test $REPLACE_BTOWC = 1; then
257 gl_WCHAR_MODULE_INDICATOR([btowc])
260 if test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1; then
261 AC_LIBOBJ([canonicalize-lgpl])
263 gl_MODULE_INDICATOR([canonicalize-lgpl])
264 gl_STDLIB_MODULE_INDICATOR([canonicalize_file_name])
265 gl_STDLIB_MODULE_INDICATOR([realpath])
266 gl_UNISTD_MODULE_INDICATOR([chdir])
268 if test $gl_cv_have_unlimited_file_name_length = no; then
269 AC_LIBOBJ([chdir-long])
273 if test $HAVE_CHOWN = 0 || test $REPLACE_CHOWN = 1; then
276 if test $REPLACE_CHOWN = 1 && test $ac_cv_func_fchown = no; then
277 AC_LIBOBJ([fchown-stub])
279 gl_UNISTD_MODULE_INDICATOR([chown])
281 gl_MODULE_INDICATOR_FOR_TESTS([cloexec])
283 if test $REPLACE_CLOSE = 1; then
286 gl_UNISTD_MODULE_INDICATOR([close])
288 if test $HAVE_CLOSEDIR = 0 || test $REPLACE_CLOSEDIR = 1; then
289 AC_LIBOBJ([closedir])
291 gl_DIRENT_MODULE_INDICATOR([closedir])
293 gl_CHECK_TYPE_STRUCT_DIRENT_D_INO
294 gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE
297 if test $ac_cv_func_dirfd = no && test $gl_cv_func_dirfd_macro = no \
298 || test $REPLACE_DIRFD = 1; then
302 gl_DIRENT_MODULE_INDICATOR([dirfd])
305 if test $REPLACE_DUP = 1; then
309 gl_UNISTD_MODULE_INDICATOR([dup])
311 if test $REPLACE_DUP2 = 1; then
315 gl_UNISTD_MODULE_INDICATOR([dup2])
317 gl_UNISTD_MODULE_INDICATOR([environ])
320 if test $ac_cv_lib_error_at_line = no; then
324 m4_ifdef([AM_XGETTEXT_OPTION],
325 [AM_][XGETTEXT_OPTION([--flag=error:3:c-format])
326 AM_][XGETTEXT_OPTION([--flag=error_at_line:5:c-format])])
327 AC_REQUIRE([gl_EXTERN_INLINE])
329 gl_UNISTD_MODULE_INDICATOR([fchdir])
331 if test $HAVE_FCNTL = 0 || test $REPLACE_FCNTL = 1; then
334 gl_FCNTL_MODULE_INDICATOR([fcntl])
336 gl_MODULE_INDICATOR([fd-safer-flag])
338 if test $HAVE_FDOPENDIR = 0 || test $REPLACE_FDOPENDIR = 1; then
339 AC_LIBOBJ([fdopendir])
341 gl_DIRENT_MODULE_INDICATOR([fdopendir])
342 gl_MODULE_INDICATOR([fdopendir])
344 if test $HAVE_FFS = 0; then
347 gl_STRINGS_MODULE_INDICATOR([ffs])
348 gl_FILE_NAME_CONCAT_LGPL
349 AC_C_FLEXIBLE_ARRAY_MEMBER
351 if test $REPLACE_FLOAT_LDBL = 1; then
354 if test $REPLACE_ITOLD = 1; then
357 gl_FUNC_FNMATCH_POSIX
358 if test $HAVE_FNMATCH = 0 || test $REPLACE_FNMATCH = 1; then
362 gl_FNMATCH_MODULE_INDICATOR([fnmatch])
364 if test $HAVE_FNMATCH = 0 || test $REPLACE_FNMATCH = 1; then
368 gl_MODULE_INDICATOR([fnmatch-gnu])
371 if test $REPLACE_FREE = 1; then
375 gl_STDLIB_MODULE_INDICATOR([free-posix])
376 AC_REQUIRE([gl_FUNC_FREXP])
377 if test $gl_func_frexp != yes; then
380 gl_MATH_MODULE_INDICATOR([frexp])
381 AC_REQUIRE([gl_FUNC_FREXPL])
382 if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl = no; then
385 gl_MATH_MODULE_INDICATOR([frexpl])
387 if test $REPLACE_FSTAT = 1; then
391 AC_LIBOBJ([stat-w32])
396 gl_SYS_STAT_MODULE_INDICATOR([fstat])
398 if test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1; then
401 gl_SYS_STAT_MODULE_INDICATOR([fstatat])
403 if test $REPLACE_GETCWD = 1; then
407 gl_MODULE_INDICATOR([getcwd])
408 gl_UNISTD_MODULE_INDICATOR([getcwd])
410 if test $REPLACE_GETCWD = 1; then
411 AC_LIBOBJ([getcwd-lgpl])
413 gl_UNISTD_MODULE_INDICATOR([getcwd])
415 if test $HAVE_GETDELIM = 0 || test $REPLACE_GETDELIM = 1; then
416 AC_LIBOBJ([getdelim])
419 gl_STDIO_MODULE_INDICATOR([getdelim])
420 gl_FUNC_GETDTABLESIZE
421 if test $HAVE_GETDTABLESIZE = 0 || test $REPLACE_GETDTABLESIZE = 1; then
422 AC_LIBOBJ([getdtablesize])
423 gl_PREREQ_GETDTABLESIZE
425 gl_UNISTD_MODULE_INDICATOR([getdtablesize])
427 if test $REPLACE_GETLINE = 1; then
431 gl_STDIO_MODULE_INDICATOR([getline])
433 if test $HAVE_GETLOGIN_R = 0 || test $REPLACE_GETLOGIN_R = 1; then
434 AC_LIBOBJ([getlogin_r])
437 gl_UNISTD_MODULE_INDICATOR([getlogin_r])
438 AC_REQUIRE([gl_LIB_GETLOGIN])
440 AC_REQUIRE([AC_CANONICAL_HOST])
442 if test $HAVE_GETRANDOM = 0 || test $REPLACE_GETRANDOM = 1; then
443 AC_LIBOBJ([getrandom])
445 gl_SYS_RANDOM_MODULE_INDICATOR([getrandom])
447 AC_SUBST([LTLIBINTL])
449 if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
450 AC_LIBOBJ([gettimeofday])
451 gl_PREREQ_GETTIMEOFDAY
453 gl_SYS_TIME_MODULE_INDICATOR([gettimeofday])
455 if test $HAVE_GLOB = 0 || test $REPLACE_GLOB = 1; then
457 AC_LIBOBJ([globfree])
460 if test $HAVE_GLOB_PATTERN_P = 0 || test $REPLACE_GLOB_PATTERN_P = 1; then
461 AC_LIBOBJ([glob_pattern_p])
463 gl_GLOB_MODULE_INDICATOR([glob])
465 AC_REQUIRE([gl_FUNC_SETLOCALE_NULL])
466 LIB_HARD_LOCALE="$LIB_SETLOCALE_NULL"
467 AC_SUBST([LIB_HARD_LOCALE])
469 if test $HAVE_INET_NTOP = 0 || test $REPLACE_INET_NTOP = 1; then
470 AC_LIBOBJ([inet_ntop])
473 gl_ARPA_INET_MODULE_INDICATOR([inet_ntop])
475 gl_INTTYPES_INCOMPLETE
477 if test $HAVE_ISBLANK = 0; then
480 gl_MODULE_INDICATOR([isblank])
481 gl_CTYPE_MODULE_INDICATOR([isblank])
482 gl_FUNC_ISNAND_NO_LIBM
483 if test $gl_func_isnand_no_libm != yes; then
487 gl_FUNC_ISNANL_NO_LIBM
488 if test $gl_func_isnanl_no_libm != yes; then
492 AC_REQUIRE([gl_LARGEFILE])
496 dnl For backward compatibility. Some packages still use this.
497 LOCALCHARSET_TESTS_ENVIRONMENT=
498 AC_SUBST([LOCALCHARSET_TESTS_ENVIRONMENT])
501 gl_MODULE_INDICATOR([lock])
503 if test $REPLACE_LSTAT = 1; then
507 gl_SYS_STAT_MODULE_INDICATOR([lstat])
509 if test $REPLACE_MALLOC = 1; then
512 gl_STDLIB_MODULE_INDICATOR([malloc-posix])
516 if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
518 if test $REPLACE_MBSTATE_T = 1; then
519 AC_LIBOBJ([lc-charset-dispatch])
520 AC_LIBOBJ([mbtowc-lock])
521 gl_PREREQ_MBTOWC_LOCK
525 gl_WCHAR_MODULE_INDICATOR([mbrtowc])
527 if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
531 gl_WCHAR_MODULE_INDICATOR([mbsinit])
533 if test $HAVE_MBSRTOWCS = 0 || test $REPLACE_MBSRTOWCS = 1; then
534 AC_LIBOBJ([mbsrtowcs])
535 AC_LIBOBJ([mbsrtowcs-state])
538 gl_WCHAR_MODULE_INDICATOR([mbsrtowcs])
540 if test $HAVE_MBTOWC = 0 || test $REPLACE_MBTOWC = 1; then
544 gl_STDLIB_MODULE_INDICATOR([mbtowc])
546 if test $REPLACE_MEMCHR = 1; then
550 gl_STRING_MODULE_INDICATOR([memchr])
552 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
555 gl_FUNC_MEMMEM_SIMPLE
556 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
559 gl_STRING_MODULE_INDICATOR([memmem])
561 if test $HAVE_MEMPCPY = 0; then
565 gl_STRING_MODULE_INDICATOR([mempcpy])
567 if test $ac_cv_func_memrchr = no; then
571 gl_STRING_MODULE_INDICATOR([memrchr])
574 if test $REPLACE_MKDIR = 1; then
577 gl_SYS_STAT_MODULE_INDICATOR([mkdir])
579 if test $HAVE_MKDTEMP = 0; then
583 gl_STDLIB_MODULE_INDICATOR([mkdtemp])
585 if test $HAVE_MKOSTEMP = 0; then
586 AC_LIBOBJ([mkostemp])
589 gl_MODULE_INDICATOR([mkostemp])
590 gl_STDLIB_MODULE_INDICATOR([mkostemp])
591 AC_REQUIRE([gl_MSVC_INVAL])
592 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
593 AC_LIBOBJ([msvc-inval])
595 AC_REQUIRE([gl_MSVC_NOTHROW])
596 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
597 AC_LIBOBJ([msvc-nothrow])
599 gl_MODULE_INDICATOR([msvc-nothrow])
604 if test $REPLACE_OPEN = 1; then
608 gl_FCNTL_MODULE_INDICATOR([open])
610 if test $HAVE_OPENAT = 0 || test $REPLACE_OPENAT = 1; then
614 gl_MODULE_INDICATOR([openat]) dnl for lib/getcwd.c
615 gl_FCNTL_MODULE_INDICATOR([openat])
617 if test $HAVE_OPENDIR = 0 || test $REPLACE_OPENDIR = 1; then
620 gl_DIRENT_MODULE_INDICATOR([opendir])
623 if test $HAVE_PIPE = 0; then
626 gl_UNISTD_MODULE_INDICATOR([pipe])
628 if test $HAVE_RAWMEMCHR = 0; then
629 AC_LIBOBJ([rawmemchr])
632 gl_STRING_MODULE_INDICATOR([rawmemchr])
634 if test $HAVE_READDIR = 0; then
637 gl_DIRENT_MODULE_INDICATOR([readdir])
639 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
640 AC_LIBOBJ([readlink])
643 gl_UNISTD_MODULE_INDICATOR([readlink])
644 gl_FUNC_REALLOC_POSIX
645 if test $REPLACE_REALLOC = 1; then
648 gl_STDLIB_MODULE_INDICATOR([realloc-posix])
650 if test $REPLACE_RENAME = 1; then
653 gl_STDIO_MODULE_INDICATOR([rename])
655 if test $HAVE_REWINDDIR = 0; then
656 AC_LIBOBJ([rewinddir])
658 gl_DIRENT_MODULE_INDICATOR([rewinddir])
660 if test $REPLACE_RMDIR = 1; then
663 gl_UNISTD_MODULE_INDICATOR([rmdir])
666 if test $HAVE_SETENV = 0 || test $REPLACE_SETENV = 1; then
669 gl_STDLIB_MODULE_INDICATOR([setenv])
670 gl_FUNC_SETLOCALE_NULL
671 if test $SETLOCALE_NULL_ALL_MTSAFE = 0 || test $SETLOCALE_NULL_ONE_MTSAFE = 0; then
672 AC_LIBOBJ([setlocale-lock])
673 gl_PREREQ_SETLOCALE_LOCK
675 gl_LOCALE_MODULE_INDICATOR([setlocale_null])
680 if test $REPLACE_STAT = 1; then
684 AC_LIBOBJ([stat-w32])
689 gl_SYS_STAT_MODULE_INDICATOR([stat])
699 if test $HAVE_STRCHRNUL = 0 || test $REPLACE_STRCHRNUL = 1; then
700 AC_LIBOBJ([strchrnul])
703 gl_STRING_MODULE_INDICATOR([strchrnul])
705 if test $REPLACE_STRDUP = 1; then
709 gl_STRING_MODULE_INDICATOR([strdup])
711 if test $REPLACE_STRERROR = 1; then
712 AC_LIBOBJ([strerror])
714 gl_MODULE_INDICATOR([strerror])
715 gl_STRING_MODULE_INDICATOR([strerror])
716 AC_REQUIRE([gl_HEADER_ERRNO_H])
717 AC_REQUIRE([gl_FUNC_STRERROR_0])
718 if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then
719 AC_LIBOBJ([strerror-override])
720 gl_PREREQ_SYS_H_WINSOCK2
723 if test $HAVE_DECL_STRERROR_R = 0 || test $REPLACE_STRERROR_R = 1; then
724 AC_LIBOBJ([strerror_r])
727 gl_STRING_MODULE_INDICATOR([strerror_r])
728 dnl For the modules argp, error.
729 gl_MODULE_INDICATOR([strerror_r-posix])
733 if test $HAVE_DECL_STRNLEN = 0 || test $REPLACE_STRNLEN = 1; then
737 gl_STRING_MODULE_INDICATOR([strnlen])
739 if test $REPLACE_STRSTR = 1; then
742 gl_FUNC_STRSTR_SIMPLE
743 if test $REPLACE_STRSTR = 1; then
746 gl_STRING_MODULE_INDICATOR([strstr])
748 if test $HAVE_STRTOK_R = 0 || test $REPLACE_STRTOK_R = 1; then
749 AC_LIBOBJ([strtok_r])
752 gl_STRING_MODULE_INDICATOR([strtok_r])
755 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
766 gl_MODULE_INDICATOR([tempname])
767 AC_REQUIRE([gl_THREADLIB])
770 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
774 gl_TIME_MODULE_INDICATOR([time_r])
778 if test $HAVE_UNSETENV = 0 || test $REPLACE_UNSETENV = 1; then
779 AC_LIBOBJ([unsetenv])
782 gl_STDLIB_MODULE_INDICATOR([unsetenv])
785 AC_REQUIRE([AC_CANONICAL_HOST])
788 AC_LIBOBJ([windows-mutex])
791 AC_REQUIRE([AC_CANONICAL_HOST])
794 AC_LIBOBJ([windows-once])
797 AC_REQUIRE([AC_CANONICAL_HOST])
800 AC_LIBOBJ([windows-recmutex])
803 AC_REQUIRE([AC_CANONICAL_HOST])
806 AC_LIBOBJ([windows-rwlock])
810 if test $HAVE_WMEMCHR = 0; then
813 gl_WCHAR_MODULE_INDICATOR([wmemchr])
815 if test $HAVE_WMEMPCPY = 0; then
816 AC_LIBOBJ([wmempcpy])
818 gl_WCHAR_MODULE_INDICATOR([wmempcpy])
819 # End of code from modules
820 m4_ifval(gl_LIBSOURCES_LIST, [
821 m4_syscmd([test ! -d ]m4_defn([gl_LIBSOURCES_DIR])[ ||
822 for gl_file in ]gl_LIBSOURCES_LIST[ ; do
823 if test ! -r ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file ; then
824 echo "missing file ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file" >&2
828 m4_if(m4_sysval, [0], [],
829 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
831 m4_popdef([gl_LIBSOURCES_DIR])
832 m4_popdef([gl_LIBSOURCES_LIST])
833 m4_popdef([AC_LIBSOURCES])
834 m4_popdef([AC_REPLACE_FUNCS])
835 m4_popdef([AC_LIBOBJ])
836 AC_CONFIG_COMMANDS_PRE([
839 if test -n "$gl_LIBOBJS"; then
840 # Remove the extension.
841 sed_drop_objext='s/\.o$//;s/\.obj$//'
842 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
843 gl_libobjs="$gl_libobjs $i.$ac_objext"
844 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
847 AC_SUBST([gl_LIBOBJS], [$gl_libobjs])
848 AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs])
852 m4_pushdef([AC_LIBOBJ], m4_defn([gltests_LIBOBJ]))
853 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gltests_REPLACE_FUNCS]))
854 m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES]))
855 m4_pushdef([gltests_LIBSOURCES_LIST], [])
856 m4_pushdef([gltests_LIBSOURCES_DIR], [])
858 gl_source_base='tests'
860 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
862 AC_SUBST([gltests_WITNESS])
863 gl_module_indicator_condition=$gltests_WITNESS
864 m4_pushdef([gl_MODULE_INDICATOR_CONDITION], [$gl_module_indicator_condition])
865 m4_popdef([gl_MODULE_INDICATOR_CONDITION])
866 m4_ifval(gltests_LIBSOURCES_LIST, [
867 m4_syscmd([test ! -d ]m4_defn([gltests_LIBSOURCES_DIR])[ ||
868 for gl_file in ]gltests_LIBSOURCES_LIST[ ; do
869 if test ! -r ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file ; then
870 echo "missing file ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file" >&2
874 m4_if(m4_sysval, [0], [],
875 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
877 m4_popdef([gltests_LIBSOURCES_DIR])
878 m4_popdef([gltests_LIBSOURCES_LIST])
879 m4_popdef([AC_LIBSOURCES])
880 m4_popdef([AC_REPLACE_FUNCS])
881 m4_popdef([AC_LIBOBJ])
882 AC_CONFIG_COMMANDS_PRE([
885 if test -n "$gltests_LIBOBJS"; then
886 # Remove the extension.
887 sed_drop_objext='s/\.o$//;s/\.obj$//'
888 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
889 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
890 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
893 AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs])
894 AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs])
896 LIBGNU_LIBDEPS="$gl_libdeps"
897 AC_SUBST([LIBGNU_LIBDEPS])
898 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
899 AC_SUBST([LIBGNU_LTLIBDEPS])
902 # Like AC_LIBOBJ, except that the module name goes
903 # into gl_LIBOBJS instead of into LIBOBJS.
904 AC_DEFUN([gl_LIBOBJ], [
905 AS_LITERAL_IF([$1], [gl_LIBSOURCES([$1.c])])dnl
906 gl_LIBOBJS="$gl_LIBOBJS $1.$ac_objext"
909 # Like AC_REPLACE_FUNCS, except that the module name goes
910 # into gl_LIBOBJS instead of into LIBOBJS.
911 AC_DEFUN([gl_REPLACE_FUNCS], [
912 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
913 AC_CHECK_FUNCS([$1], , [gl_LIBOBJ($ac_func)])
916 # Like AC_LIBSOURCES, except the directory where the source file is
917 # expected is derived from the gnulib-tool parameterization,
918 # and alloca is special cased (for the alloca-opt module).
919 # We could also entirely rely on EXTRA_lib..._SOURCES.
920 AC_DEFUN([gl_LIBSOURCES], [
921 m4_foreach([_gl_NAME], [$1], [
922 m4_if(_gl_NAME, [alloca.c], [], [
923 m4_define([gl_LIBSOURCES_DIR], [import])
924 m4_append([gl_LIBSOURCES_LIST], _gl_NAME, [ ])
929 # Like AC_LIBOBJ, except that the module name goes
930 # into gltests_LIBOBJS instead of into LIBOBJS.
931 AC_DEFUN([gltests_LIBOBJ], [
932 AS_LITERAL_IF([$1], [gltests_LIBSOURCES([$1.c])])dnl
933 gltests_LIBOBJS="$gltests_LIBOBJS $1.$ac_objext"
936 # Like AC_REPLACE_FUNCS, except that the module name goes
937 # into gltests_LIBOBJS instead of into LIBOBJS.
938 AC_DEFUN([gltests_REPLACE_FUNCS], [
939 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
940 AC_CHECK_FUNCS([$1], , [gltests_LIBOBJ($ac_func)])
943 # Like AC_LIBSOURCES, except the directory where the source file is
944 # expected is derived from the gnulib-tool parameterization,
945 # and alloca is special cased (for the alloca-opt module).
946 # We could also entirely rely on EXTRA_lib..._SOURCES.
947 AC_DEFUN([gltests_LIBSOURCES], [
948 m4_foreach([_gl_NAME], [$1], [
949 m4_if(_gl_NAME, [alloca.c], [], [
950 m4_define([gltests_LIBSOURCES_DIR], [tests])
951 m4_append([gltests_LIBSOURCES_LIST], _gl_NAME, [ ])
956 # This macro records the list of files which have been installed by
957 # gnulib-tool and may be removed by future gnulib-tool invocations.
958 AC_DEFUN([gl_FILE_LIST], [
960 build-aux/gitlog-to-changelog
961 build-aux/update-copyright
963 doc/gendocs_template_min
976 lib/canonicalize-lgpl.c
997 lib/eloop-threshold.h
1014 lib/filenamecat-lgpl.c
1044 lib/glob_pattern_p.c
1048 lib/glthread/threadlib.c
1062 lib/lc-charset-dispatch.c
1063 lib/lc-charset-dispatch.h
1071 lib/malloc/scratch_buffer.h
1072 lib/malloc/scratch_buffer_dupfree.c
1073 lib/malloc/scratch_buffer_grow.c
1074 lib/malloc/scratch_buffer_grow_preserve.c
1075 lib/malloc/scratch_buffer_set_array_size.c
1080 lib/mbrtowc-impl-utf8.h
1084 lib/mbsrtowcs-impl.h
1085 lib/mbsrtowcs-state.c
1116 lib/rawmemchr.valgrind
1126 lib/scratch_buffer.h
1128 lib/setlocale-lock.c
1129 lib/setlocale_null.c
1130 lib/setlocale_null.h
1145 lib/strchrnul.valgrind
1148 lib/strerror-override.c
1149 lib/strerror-override.h
1181 lib/windows-initguard.h
1186 lib/windows-recmutex.c
1187 lib/windows-recmutex.h
1188 lib/windows-rwlock.c
1189 lib/windows-rwlock.h
1193 lib/xalloc-oversized.h
1196 m4/absolute-header.m4
1200 m4/builtin-expect.m4
1213 m4/double-slash-root.m4
1241 m4/getcwd-abort-bug.m4
1242 m4/getcwd-path-max.m4
1303 m4/pthread_rwlock_rdlock.m4
1313 m4/setlocale_null.m4