1 # -*- buffer-read-only: t -*- vi: set ro:
2 # DO NOT EDIT! GENERATED AUTOMATICALLY!
3 # DO NOT EDIT! GENERATED AUTOMATICALLY!
4 # Copyright (C) 2002-2014 Free Software Foundation, Inc.
6 # This file is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 3 of the License, or
9 # (at your option) any later version.
11 # This file is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
16 # You should have received a copy of the GNU General Public License
17 # along with this file. If not, see <http://www.gnu.org/licenses/>.
19 # As a special exception to the GNU General Public License,
20 # this file may be distributed as part of a program that
21 # contains a configuration script generated by Autoconf, under
22 # the same distribution terms as the rest of that program.
24 # Generated by gnulib-tool.
26 # This file represents the compiled summary of the specification in
27 # gnulib-cache.m4. It lists the computed macro invocations that need
28 # to be invoked from configure.ac.
29 # In projects that use version control, this file can be treated like
33 # This macro should be invoked from ./configure.ac, in the section
34 # "Checks for programs", right after AC_PROG_CC, and certainly before
35 # any checks for libraries, header files, types and library functions.
38 m4_pattern_forbid([^gl_[A-Z]])dnl the gnulib macro namespace
39 m4_pattern_allow([^gl_ES$])dnl a valid locale name
40 m4_pattern_allow([^gl_LIBOBJS$])dnl a variable
41 m4_pattern_allow([^gl_LTLIBOBJS$])dnl a variable
42 AC_REQUIRE([gl_PROG_AR_RANLIB])
43 AC_REQUIRE([AM_PROG_CC_C_O])
44 # Code from module absolute-header:
45 # Code from module acl:
46 # Code from module alloca:
47 # Code from module alloca-opt:
48 # Code from module allocator:
49 # Code from module areadlink:
50 # Code from module areadlinkat:
51 # Code from module argmatch:
52 # Code from module argp:
53 # Code from module argp-version-etc:
54 # Code from module at-internal:
55 # Code from module backupfile:
56 # Code from module bitrotate:
57 # Code from module btowc:
58 # Code from module c-ctype:
59 # Code from module c-strcase:
60 # Code from module c-strcaseeq:
61 # Code from module canonicalize-lgpl:
62 # Code from module careadlinkat:
63 # Code from module chdir:
64 # Code from module chdir-long:
65 # Code from module chown:
66 # Code from module clock-time:
67 # Code from module cloexec:
68 # Code from module close:
69 # Code from module close-stream:
70 # Code from module closedir:
71 # Code from module closeout:
72 # Code from module configmake:
73 # Code from module d-ino:
74 # Code from module dirent:
75 # Code from module dirent-safer:
76 # Code from module dirfd:
77 # Code from module dirname:
78 # Code from module dirname-lgpl:
79 # Code from module dosname:
80 # Code from module double-slash-root:
81 # Code from module dup:
82 # Code from module dup2:
83 # Code from module environ:
84 # Code from module errno:
85 # Code from module error:
86 # Code from module euidaccess:
87 # Code from module exclude:
88 # Code from module exitfail:
89 # Code from module extensions:
90 AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
91 # Code from module extern-inline:
92 # Code from module faccessat:
93 # Code from module fchdir:
94 # Code from module fchmodat:
95 # Code from module fchownat:
96 # Code from module fcntl:
97 # Code from module fcntl-h:
98 # Code from module fd-hook:
99 # Code from module fdopendir:
100 # Code from module fdutimensat:
101 # Code from module fileblocks:
102 # Code from module filename:
103 # Code from module filenamecat-lgpl:
104 # Code from module float:
105 # Code from module fnmatch:
106 # Code from module fnmatch-gnu:
107 # Code from module fpending:
108 # Code from module fprintftime:
109 # Code from module fseek:
110 # Code from module fseeko:
111 AC_REQUIRE([AC_FUNC_FSEEKO])
112 # Code from module fstat:
113 # Code from module fstatat:
114 # Code from module full-write:
115 # Code from module futimens:
116 # Code from module getcwd:
117 # Code from module getcwd-lgpl:
118 # Code from module getdelim:
119 # Code from module getdtablesize:
120 # Code from module getgroups:
121 # Code from module getline:
122 # Code from module getopt-gnu:
123 # Code from module getopt-posix:
124 # Code from module getpagesize:
125 # Code from module gettext:
126 # Code from module gettext-h:
127 # Code from module gettime:
128 # Code from module gettimeofday:
129 # Code from module gitlog-to-changelog:
130 # Code from module group-member:
131 # Code from module hash:
132 # Code from module havelib:
133 # Code from module human:
134 # Code from module include_next:
135 # Code from module intprops:
136 # Code from module inttostr:
137 # Code from module inttypes:
138 # Code from module inttypes-incomplete:
139 # Code from module isatty:
140 # Code from module iswblank:
141 # Code from module langinfo:
142 # Code from module largefile:
143 AC_REQUIRE([AC_SYS_LARGEFILE])
144 # Code from module lchown:
145 # Code from module link:
146 # Code from module link-follow:
147 # Code from module linkat:
148 # Code from module localcharset:
149 # Code from module locale:
150 # Code from module localeconv:
151 # Code from module lseek:
152 # Code from module lstat:
153 # Code from module malloc-gnu:
154 # Code from module malloc-posix:
155 # Code from module malloca:
156 # Code from module manywarnings:
157 # Code from module mbchar:
158 # Code from module mbrtowc:
159 # Code from module mbscasecmp:
160 # Code from module mbsinit:
161 # Code from module mbsrtowcs:
162 # Code from module mbtowc:
163 # Code from module mbuiter:
164 # Code from module memchr:
165 # Code from module mempcpy:
166 # Code from module memrchr:
167 # Code from module mkdir:
168 # Code from module mkdirat:
169 # Code from module mkdtemp:
170 # Code from module mkfifo:
171 # Code from module mkfifoat:
172 # Code from module mknod:
173 # Code from module mktime:
174 # Code from module modechange:
175 # Code from module msvc-inval:
176 # Code from module msvc-nothrow:
177 # Code from module multiarch:
178 # Code from module nl_langinfo:
179 # Code from module nocrash:
180 # Code from module obstack:
181 # Code from module open:
182 # Code from module openat:
183 # Code from module openat-die:
184 # Code from module openat-h:
185 # Code from module opendir:
186 # Code from module parse-datetime:
187 # Code from module pathmax:
188 # Code from module posix_openpt:
189 # Code from module priv-set:
190 # Code from module progname:
191 # Code from module ptsname:
192 # Code from module ptsname_r:
193 # Code from module qacl:
194 # Code from module quote:
195 # Code from module quotearg:
196 # Code from module quotearg-simple:
197 # Code from module raise:
198 # Code from module rawmemchr:
199 # Code from module read:
200 # Code from module readdir:
201 # Code from module readlink:
202 # Code from module readlinkat:
203 # Code from module realloc-posix:
204 # Code from module regex:
205 # Code from module rename:
206 # Code from module renameat:
207 # Code from module rewinddir:
208 # Code from module rmdir:
209 # Code from module root-uid:
210 # Code from module rpmatch:
211 # Code from module safe-read:
212 # Code from module safe-write:
213 # Code from module same-inode:
214 # Code from module save-cwd:
215 # Code from module savedir:
216 # Code from module secure_getenv:
217 # Code from module selinux-at:
218 # Code from module selinux-h:
219 # Code from module setenv:
220 # Code from module signal-h:
221 # Code from module size_max:
222 # Code from module sleep:
223 # Code from module snippet/_Noreturn:
224 # Code from module snippet/arg-nonnull:
225 # Code from module snippet/c++defs:
226 # Code from module snippet/unused-parameter:
227 # Code from module snippet/warn-on-use:
228 # Code from module snprintf:
229 # Code from module ssize_t:
230 # Code from module stat:
231 # Code from module stat-macros:
232 # Code from module stat-time:
233 # Code from module statat:
234 # Code from module stdalign:
235 # Code from module stdarg:
236 dnl Some compilers (e.g., AIX 5.3 cc) need to be in c99 mode
237 dnl for the builtin va_copy to work. With Autoconf 2.60 or later,
238 dnl gl_PROG_CC_C99 arranges for this. With older Autoconf gl_PROG_CC_C99
239 dnl shouldn't hurt, though installers are on their own to set c99 mode.
241 # Code from module stdbool:
242 # Code from module stddef:
243 # Code from module stdint:
244 # Code from module stdio:
245 # Code from module stdlib:
246 # Code from module stpcpy:
247 # Code from module strcase:
248 # Code from module strchrnul:
249 # Code from module strdup-posix:
250 # Code from module streq:
251 # Code from module strerror:
252 # Code from module strerror-override:
253 # Code from module strftime:
254 # Code from module string:
255 # Code from module strings:
256 # Code from module strndup:
257 # Code from module strnlen:
258 # Code from module strnlen1:
259 # Code from module strtoimax:
260 # Code from module strtol:
261 # Code from module strtoll:
262 # Code from module strtoul:
263 # Code from module strtoull:
264 # Code from module strtoumax:
265 # Code from module symlink:
266 # Code from module symlinkat:
267 # Code from module sys_stat:
268 # Code from module sys_time:
269 # Code from module sys_types:
270 # Code from module sysexits:
271 # Code from module tempname:
272 # Code from module time:
273 # Code from module time_r:
274 # Code from module timespec:
275 # Code from module ttyname_r:
276 # Code from module unistd:
277 # Code from module unistd-safer:
278 # Code from module unitypes:
279 # Code from module uniwidth/base:
280 # Code from module uniwidth/width:
281 # Code from module unlink:
282 # Code from module unlinkat:
283 # Code from module unlinkdir:
284 # Code from module unlocked-io:
285 # Code from module unlockpt:
286 # Code from module unsetenv:
287 # Code from module utimens:
288 # Code from module utimensat:
289 # Code from module vasnprintf:
290 # Code from module vasprintf:
291 # Code from module verify:
292 # Code from module version-etc:
293 # Code from module version-etc-fsf:
294 # Code from module vsnprintf:
295 # Code from module warnings:
296 # Code from module wchar:
297 # Code from module wcrtomb:
298 # Code from module wctype-h:
299 # Code from module wcwidth:
300 # Code from module write:
301 # Code from module xalloc:
302 # Code from module xalloc-die:
303 # Code from module xalloc-oversized:
304 # Code from module xgetcwd:
305 # Code from module xsize:
306 # Code from module xstrndup:
307 # Code from module xstrtol:
308 # Code from module xstrtoumax:
309 # Code from module xvasprintf:
312 # This macro should be invoked from ./configure.ac, in the section
313 # "Check for header files, types and library functions".
316 AM_CONDITIONAL([GL_COND_LIBTOOL], [false])
317 gl_cond_libtool=false
321 m4_pushdef([AC_LIBOBJ], m4_defn([gl_LIBOBJ]))
322 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gl_REPLACE_FUNCS]))
323 m4_pushdef([AC_LIBSOURCES], m4_defn([gl_LIBSOURCES]))
324 m4_pushdef([gl_LIBSOURCES_LIST], [])
325 m4_pushdef([gl_LIBSOURCES_DIR], [])
329 gl_MODULE_INDICATOR([areadlinkat])
331 m4_ifdef([AM_XGETTEXT_OPTION],
332 [AM_][XGETTEXT_OPTION([--flag=argp_error:2:c-format])
333 AM_][XGETTEXT_OPTION([--flag=argp_failure:4:c-format])])
334 AC_LIBOBJ([openat-proc])
337 if test $HAVE_BTOWC = 0 || test $REPLACE_BTOWC = 1; then
341 gl_WCHAR_MODULE_INDICATOR([btowc])
343 if test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1; then
344 AC_LIBOBJ([canonicalize-lgpl])
346 gl_MODULE_INDICATOR([canonicalize-lgpl])
347 gl_STDLIB_MODULE_INDICATOR([canonicalize_file_name])
348 gl_STDLIB_MODULE_INDICATOR([realpath])
349 AC_CHECK_FUNCS_ONCE([readlinkat])
350 gl_UNISTD_MODULE_INDICATOR([chdir])
352 if test $gl_cv_have_arbitrary_file_name_length_limit = yes; then
353 AC_LIBOBJ([chdir-long])
357 if test $HAVE_CHOWN = 0 || test $REPLACE_CHOWN = 1; then
360 if test $REPLACE_CHOWN = 1 && test $ac_cv_func_fchown = no; then
361 AC_LIBOBJ([fchown-stub])
363 gl_UNISTD_MODULE_INDICATOR([chown])
365 gl_MODULE_INDICATOR_FOR_TESTS([cloexec])
367 if test $REPLACE_CLOSE = 1; then
370 gl_UNISTD_MODULE_INDICATOR([close])
372 gl_MODULE_INDICATOR([close-stream])
374 if test $HAVE_CLOSEDIR = 0 || test $REPLACE_CLOSEDIR = 1; then
375 AC_LIBOBJ([closedir])
377 gl_DIRENT_MODULE_INDICATOR([closedir])
380 gl_CHECK_TYPE_STRUCT_DIRENT_D_INO
383 gl_MODULE_INDICATOR([dirent-safer])
385 if test $ac_cv_func_dirfd = no && test $gl_cv_func_dirfd_macro = no; then
389 gl_DIRENT_MODULE_INDICATOR([dirfd])
391 gl_MODULE_INDICATOR([dirname])
395 if test $REPLACE_DUP = 1; then
399 gl_UNISTD_MODULE_INDICATOR([dup])
401 if test $HAVE_DUP2 = 0 || test $REPLACE_DUP2 = 1; then
405 gl_UNISTD_MODULE_INDICATOR([dup2])
407 gl_UNISTD_MODULE_INDICATOR([environ])
410 if test $ac_cv_lib_error_at_line = no; then
414 m4_ifdef([AM_XGETTEXT_OPTION],
415 [AM_][XGETTEXT_OPTION([--flag=error:3:c-format])
416 AM_][XGETTEXT_OPTION([--flag=error_at_line:5:c-format])])
418 if test $HAVE_EUIDACCESS = 0; then
419 AC_LIBOBJ([euidaccess])
422 gl_UNISTD_MODULE_INDICATOR([euidaccess])
423 AC_REQUIRE([gl_EXTERN_INLINE])
425 if test $HAVE_FACCESSAT = 0; then
426 AC_LIBOBJ([faccessat])
429 gl_MODULE_INDICATOR([faccessat])
430 gl_UNISTD_MODULE_INDICATOR([faccessat])
432 gl_UNISTD_MODULE_INDICATOR([fchdir])
434 if test $HAVE_FCHMODAT = 0; then
435 AC_LIBOBJ([fchmodat])
437 gl_MODULE_INDICATOR([fchmodat]) dnl for lib/openat.h
438 gl_SYS_STAT_MODULE_INDICATOR([fchmodat])
440 if test $HAVE_FCHOWNAT = 0 || test $REPLACE_FCHOWNAT = 1; then
441 AC_LIBOBJ([fchownat])
443 gl_MODULE_INDICATOR([fchownat]) dnl for lib/openat.h
444 gl_UNISTD_MODULE_INDICATOR([fchownat])
446 if test $HAVE_FCNTL = 0 || test $REPLACE_FCNTL = 1; then
449 gl_FCNTL_MODULE_INDICATOR([fcntl])
452 if test $HAVE_FDOPENDIR = 0 || test $REPLACE_FDOPENDIR = 1; then
453 AC_LIBOBJ([fdopendir])
455 gl_DIRENT_MODULE_INDICATOR([fdopendir])
456 gl_MODULE_INDICATOR([fdopendir])
457 gl_MODULE_INDICATOR([fdutimensat])
459 if test $ac_cv_member_struct_stat_st_blocks = no; then
460 AC_LIBOBJ([fileblocks])
463 gl_FILE_NAME_CONCAT_LGPL
465 if test $REPLACE_FLOAT_LDBL = 1; then
468 if test $REPLACE_ITOLD = 1; then
471 gl_FUNC_FNMATCH_POSIX
472 if test -n "$FNMATCH_H"; then
477 if test -n "$FNMATCH_H"; then
482 if test $gl_cv_func___fpending = no; then
483 AC_LIBOBJ([fpending])
487 if test $REPLACE_FSEEK = 1; then
490 gl_STDIO_MODULE_INDICATOR([fseek])
492 if test $HAVE_FSEEKO = 0 || test $REPLACE_FSEEKO = 1; then
496 gl_STDIO_MODULE_INDICATOR([fseeko])
498 if test $REPLACE_FSTAT = 1; then
502 gl_SYS_STAT_MODULE_INDICATOR([fstat])
504 if test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1; then
507 gl_SYS_STAT_MODULE_INDICATOR([fstatat])
509 if test $HAVE_FUTIMENS = 0 || test $REPLACE_FUTIMENS = 1; then
510 AC_LIBOBJ([futimens])
512 gl_SYS_STAT_MODULE_INDICATOR([futimens])
514 if test $REPLACE_GETCWD = 1; then
518 gl_MODULE_INDICATOR([getcwd])
519 gl_UNISTD_MODULE_INDICATOR([getcwd])
521 if test $REPLACE_GETCWD = 1; then
522 AC_LIBOBJ([getcwd-lgpl])
524 gl_UNISTD_MODULE_INDICATOR([getcwd])
526 if test $HAVE_GETDELIM = 0 || test $REPLACE_GETDELIM = 1; then
527 AC_LIBOBJ([getdelim])
530 gl_STDIO_MODULE_INDICATOR([getdelim])
531 gl_FUNC_GETDTABLESIZE
532 if test $HAVE_GETDTABLESIZE = 0 || test $REPLACE_GETDTABLESIZE = 1; then
533 AC_LIBOBJ([getdtablesize])
534 gl_PREREQ_GETDTABLESIZE
536 gl_UNISTD_MODULE_INDICATOR([getdtablesize])
538 if test $HAVE_GETGROUPS = 0 || test $REPLACE_GETGROUPS = 1; then
539 AC_LIBOBJ([getgroups])
541 gl_UNISTD_MODULE_INDICATOR([getgroups])
543 if test $REPLACE_GETLINE = 1; then
547 gl_STDIO_MODULE_INDICATOR([getline])
549 if test $REPLACE_GETOPT = 1; then
553 dnl Arrange for unistd.h to include getopt.h.
554 GNULIB_GL_UNISTD_H_GETOPT=1
556 AC_SUBST([GNULIB_GL_UNISTD_H_GETOPT])
557 gl_MODULE_INDICATOR_FOR_TESTS([getopt-gnu])
559 if test $REPLACE_GETOPT = 1; then
563 dnl Arrange for unistd.h to include getopt.h.
564 GNULIB_GL_UNISTD_H_GETOPT=1
566 AC_SUBST([GNULIB_GL_UNISTD_H_GETOPT])
568 if test $REPLACE_GETPAGESIZE = 1; then
569 AC_LIBOBJ([getpagesize])
571 gl_UNISTD_MODULE_INDICATOR([getpagesize])
572 dnl you must add AM_GNU_GETTEXT([external]) or similar to configure.ac.
573 AM_GNU_GETTEXT_VERSION([0.18.1])
575 AC_SUBST([LTLIBINTL])
578 if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
579 AC_LIBOBJ([gettimeofday])
580 gl_PREREQ_GETTIMEOFDAY
582 gl_SYS_TIME_MODULE_INDICATOR([gettimeofday])
584 if test $HAVE_GROUP_MEMBER = 0; then
585 AC_LIBOBJ([group-member])
586 gl_PREREQ_GROUP_MEMBER
588 gl_UNISTD_MODULE_INDICATOR([group-member])
592 gl_INTTYPES_INCOMPLETE
594 if test $REPLACE_ISATTY = 1; then
598 gl_UNISTD_MODULE_INDICATOR([isatty])
600 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
603 if test $HAVE_ISWBLANK = 0 || test $REPLACE_ISWBLANK = 1; then
604 AC_LIBOBJ([iswblank])
607 gl_WCTYPE_MODULE_INDICATOR([iswblank])
609 AC_REQUIRE([gl_LARGEFILE])
611 if test $HAVE_LCHOWN = 0 || test $REPLACE_LCHOWN = 1; then
614 gl_UNISTD_MODULE_INDICATOR([lchown])
616 if test $HAVE_LINK = 0 || test $REPLACE_LINK = 1; then
619 gl_UNISTD_MODULE_INDICATOR([link])
620 gl_FUNC_LINK_FOLLOWS_SYMLINK
622 if test $HAVE_LINKAT = 0 || test $REPLACE_LINKAT = 1; then
625 if test $HAVE_LINKAT = 0; then
626 AC_LIBOBJ([at-func2])
628 gl_UNISTD_MODULE_INDICATOR([linkat])
630 LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\""
631 AC_SUBST([LOCALCHARSET_TESTS_ENVIRONMENT])
634 if test $REPLACE_LOCALECONV = 1; then
635 AC_LIBOBJ([localeconv])
638 gl_LOCALE_MODULE_INDICATOR([localeconv])
640 if test $REPLACE_LSEEK = 1; then
643 gl_UNISTD_MODULE_INDICATOR([lseek])
645 if test $REPLACE_LSTAT = 1; then
649 gl_SYS_STAT_MODULE_INDICATOR([lstat])
651 if test $REPLACE_MALLOC = 1; then
654 gl_MODULE_INDICATOR([malloc-gnu])
656 if test $REPLACE_MALLOC = 1; then
659 gl_STDLIB_MODULE_INDICATOR([malloc-posix])
663 if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
667 gl_WCHAR_MODULE_INDICATOR([mbrtowc])
668 gl_STRING_MODULE_INDICATOR([mbscasecmp])
670 if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
674 gl_WCHAR_MODULE_INDICATOR([mbsinit])
676 if test $HAVE_MBSRTOWCS = 0 || test $REPLACE_MBSRTOWCS = 1; then
677 AC_LIBOBJ([mbsrtowcs])
678 AC_LIBOBJ([mbsrtowcs-state])
681 gl_WCHAR_MODULE_INDICATOR([mbsrtowcs])
683 if test $REPLACE_MBTOWC = 1; then
687 gl_STDLIB_MODULE_INDICATOR([mbtowc])
690 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
694 gl_STRING_MODULE_INDICATOR([memchr])
696 if test $HAVE_MEMPCPY = 0; then
700 gl_STRING_MODULE_INDICATOR([mempcpy])
702 if test $ac_cv_func_memrchr = no; then
706 gl_STRING_MODULE_INDICATOR([memrchr])
708 if test $REPLACE_MKDIR = 1; then
712 if test $HAVE_MKDIRAT = 0; then
716 gl_SYS_STAT_MODULE_INDICATOR([mkdirat])
718 if test $HAVE_MKDTEMP = 0; then
722 gl_STDLIB_MODULE_INDICATOR([mkdtemp])
724 if test $HAVE_MKFIFO = 0 || test $REPLACE_MKFIFO = 1; then
727 gl_UNISTD_MODULE_INDICATOR([mkfifo])
729 if test $HAVE_MKFIFOAT = 0; then
730 AC_LIBOBJ([mkfifoat])
732 if test $HAVE_MKNODAT = 0; then
735 gl_SYS_STAT_MODULE_INDICATOR([mkfifoat])
736 gl_SYS_STAT_MODULE_INDICATOR([mknodat])
738 if test $HAVE_MKNOD = 0 || test $REPLACE_MKNOD = 1; then
741 gl_UNISTD_MODULE_INDICATOR([mknod])
743 if test $REPLACE_MKTIME = 1; then
747 gl_TIME_MODULE_INDICATOR([mktime])
750 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
751 AC_LIBOBJ([msvc-inval])
754 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
755 AC_LIBOBJ([msvc-nothrow])
759 if test $HAVE_NL_LANGINFO = 0 || test $REPLACE_NL_LANGINFO = 1; then
760 AC_LIBOBJ([nl_langinfo])
762 gl_LANGINFO_MODULE_INDICATOR([nl_langinfo])
764 dnl Note: AC_FUNC_OBSTACK does AC_LIBSOURCES([obstack.h, obstack.c]).
766 if test $REPLACE_OPEN = 1; then
770 gl_FCNTL_MODULE_INDICATOR([open])
772 if test $HAVE_OPENAT = 0 || test $REPLACE_OPENAT = 1; then
776 gl_MODULE_INDICATOR([openat]) dnl for lib/getcwd.c
777 gl_FCNTL_MODULE_INDICATOR([openat])
779 if test $HAVE_OPENDIR = 0 || test $REPLACE_OPENDIR = 1; then
782 gl_DIRENT_MODULE_INDICATOR([opendir])
786 if test $HAVE_POSIX_OPENPT = 0; then
787 AC_LIBOBJ([posix_openpt])
789 gl_STDLIB_MODULE_INDICATOR([posix_openpt])
791 AC_CHECK_DECLS([program_invocation_name], [], [], [#include <errno.h>])
792 AC_CHECK_DECLS([program_invocation_short_name], [], [], [#include <errno.h>])
794 if test $HAVE_PTSNAME = 0 || test $REPLACE_PTSNAME = 1; then
798 gl_STDLIB_MODULE_INDICATOR([ptsname])
800 if test $HAVE_PTSNAME_R = 0 || test $REPLACE_PTSNAME_R = 1; then
801 AC_LIBOBJ([ptsname_r])
804 gl_STDLIB_MODULE_INDICATOR([ptsname_r])
809 if test $HAVE_RAISE = 0 || test $REPLACE_RAISE = 1; then
813 gl_SIGNAL_MODULE_INDICATOR([raise])
815 if test $HAVE_RAWMEMCHR = 0; then
816 AC_LIBOBJ([rawmemchr])
819 gl_STRING_MODULE_INDICATOR([rawmemchr])
821 if test $REPLACE_READ = 1; then
825 gl_UNISTD_MODULE_INDICATOR([read])
827 if test $HAVE_READDIR = 0; then
830 gl_DIRENT_MODULE_INDICATOR([readdir])
832 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
833 AC_LIBOBJ([readlink])
836 gl_UNISTD_MODULE_INDICATOR([readlink])
838 if test $HAVE_READLINKAT = 0; then
839 AC_LIBOBJ([readlinkat])
841 gl_UNISTD_MODULE_INDICATOR([readlinkat])
842 gl_FUNC_REALLOC_POSIX
843 if test $REPLACE_REALLOC = 1; then
846 gl_STDLIB_MODULE_INDICATOR([realloc-posix])
848 if test $ac_use_included_regex = yes; then
853 if test $REPLACE_RENAME = 1; then
856 gl_STDIO_MODULE_INDICATOR([rename])
858 if test $HAVE_RENAMEAT = 0 || test $REPLACE_RENAMEAT = 1; then
859 AC_LIBOBJ([renameat])
861 if test $HAVE_RENAMEAT = 0; then
862 AC_LIBOBJ([at-func2])
864 gl_STDIO_MODULE_INDICATOR([renameat])
866 if test $HAVE_REWINDDIR = 0; then
867 AC_LIBOBJ([rewinddir])
869 gl_DIRENT_MODULE_INDICATOR([rewinddir])
871 if test $REPLACE_RMDIR = 1; then
874 gl_UNISTD_MODULE_INDICATOR([rmdir])
876 if test $HAVE_RPMATCH = 0; then
880 gl_STDLIB_MODULE_INDICATOR([rpmatch])
885 gl_FUNC_SECURE_GETENV
886 if test $HAVE_SECURE_GETENV = 0; then
887 AC_LIBOBJ([secure_getenv])
888 gl_PREREQ_SECURE_GETENV
890 gl_STDLIB_MODULE_INDICATOR([secure_getenv])
891 AC_CHECK_HEADERS([selinux/flask.h])
892 AC_LIBOBJ([selinux-at])
893 gl_HEADERS_SELINUX_SELINUX_H
894 gl_HEADERS_SELINUX_CONTEXT_H
895 if test "$with_selinux" != no && test "$ac_cv_header_selinux_selinux_h" = yes; then
896 AC_LIBOBJ([getfilecon])
899 if test $HAVE_SETENV = 0 || test $REPLACE_SETENV = 1; then
902 gl_STDLIB_MODULE_INDICATOR([setenv])
906 if test $HAVE_SLEEP = 0 || test $REPLACE_SLEEP = 1; then
909 gl_UNISTD_MODULE_INDICATOR([sleep])
911 gl_STDIO_MODULE_INDICATOR([snprintf])
912 gl_MODULE_INDICATOR([snprintf])
915 if test $REPLACE_STAT = 1; then
919 gl_SYS_STAT_MODULE_INDICATOR([stat])
922 gl_MODULE_INDICATOR([statat]) dnl for lib/openat.h
931 if test $HAVE_STPCPY = 0; then
935 gl_STRING_MODULE_INDICATOR([stpcpy])
937 if test $HAVE_STRCASECMP = 0; then
938 AC_LIBOBJ([strcasecmp])
941 if test $HAVE_STRNCASECMP = 0; then
942 AC_LIBOBJ([strncasecmp])
943 gl_PREREQ_STRNCASECMP
946 if test $HAVE_STRCHRNUL = 0 || test $REPLACE_STRCHRNUL = 1; then
947 AC_LIBOBJ([strchrnul])
950 gl_STRING_MODULE_INDICATOR([strchrnul])
952 if test $ac_cv_func_strdup = no || test $REPLACE_STRDUP = 1; then
956 gl_STRING_MODULE_INDICATOR([strdup])
958 if test $REPLACE_STRERROR = 1; then
959 AC_LIBOBJ([strerror])
961 gl_MODULE_INDICATOR([strerror])
962 gl_STRING_MODULE_INDICATOR([strerror])
963 AC_REQUIRE([gl_HEADER_ERRNO_H])
964 AC_REQUIRE([gl_FUNC_STRERROR_0])
965 if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then
966 AC_LIBOBJ([strerror-override])
967 gl_PREREQ_SYS_H_WINSOCK2
973 if test $HAVE_STRNDUP = 0 || test $REPLACE_STRNDUP = 1; then
976 gl_STRING_MODULE_INDICATOR([strndup])
978 if test $HAVE_DECL_STRNLEN = 0 || test $REPLACE_STRNLEN = 1; then
982 gl_STRING_MODULE_INDICATOR([strnlen])
984 if test $HAVE_DECL_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; then
985 AC_LIBOBJ([strtoimax])
988 gl_INTTYPES_MODULE_INDICATOR([strtoimax])
990 if test $ac_cv_func_strtol = no; then
994 if test $HAVE_STRTOLL = 0; then
998 gl_STDLIB_MODULE_INDICATOR([strtoll])
1000 if test $ac_cv_func_strtoul = no; then
1001 AC_LIBOBJ([strtoul])
1004 if test $HAVE_STRTOULL = 0; then
1005 AC_LIBOBJ([strtoull])
1008 gl_STDLIB_MODULE_INDICATOR([strtoull])
1010 if test $HAVE_DECL_STRTOUMAX = 0 || test $REPLACE_STRTOUMAX = 1; then
1011 AC_LIBOBJ([strtoumax])
1014 gl_INTTYPES_MODULE_INDICATOR([strtoumax])
1016 if test $HAVE_SYMLINK = 0 || test $REPLACE_SYMLINK = 1; then
1017 AC_LIBOBJ([symlink])
1019 gl_UNISTD_MODULE_INDICATOR([symlink])
1021 if test $HAVE_SYMLINKAT = 0; then
1022 AC_LIBOBJ([symlinkat])
1024 gl_UNISTD_MODULE_INDICATOR([symlinkat])
1025 gl_HEADER_SYS_STAT_H
1027 gl_HEADER_SYS_TIME_H
1032 gl_FUNC_GEN_TEMPNAME
1035 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
1039 gl_TIME_MODULE_INDICATOR([time_r])
1042 if test $HAVE_TTYNAME_R = 0 || test $REPLACE_TTYNAME_R = 1; then
1043 AC_LIBOBJ([ttyname_r])
1046 gl_UNISTD_MODULE_INDICATOR([ttyname_r])
1049 gl_LIBUNISTRING_LIBHEADER([0.9], [unitypes.h])
1050 gl_LIBUNISTRING_LIBHEADER([0.9], [uniwidth.h])
1051 gl_LIBUNISTRING_MODULE([0.9.4], [uniwidth/width])
1053 if test $REPLACE_UNLINK = 1; then
1056 gl_UNISTD_MODULE_INDICATOR([unlink])
1058 if test $HAVE_UNLINKAT = 0 || test $REPLACE_UNLINKAT = 1; then
1059 AC_LIBOBJ([unlinkat])
1061 gl_UNISTD_MODULE_INDICATOR([unlinkat])
1063 gl_FUNC_GLIBC_UNLOCKED_IO
1065 if test $HAVE_UNLOCKPT = 0; then
1066 AC_LIBOBJ([unlockpt])
1069 gl_STDLIB_MODULE_INDICATOR([unlockpt])
1071 if test $HAVE_UNSETENV = 0 || test $REPLACE_UNSETENV = 1; then
1072 AC_LIBOBJ([unsetenv])
1075 gl_STDLIB_MODULE_INDICATOR([unsetenv])
1078 if test $HAVE_UTIMENSAT = 0 || test $REPLACE_UTIMENSAT = 1; then
1079 AC_LIBOBJ([utimensat])
1081 gl_SYS_STAT_MODULE_INDICATOR([utimensat])
1084 gl_STDIO_MODULE_INDICATOR([vasprintf])
1085 m4_ifdef([AM_XGETTEXT_OPTION],
1086 [AM_][XGETTEXT_OPTION([--flag=asprintf:2:c-format])
1087 AM_][XGETTEXT_OPTION([--flag=vasprintf:2:c-format])])
1090 gl_STDIO_MODULE_INDICATOR([vsnprintf])
1093 if test $HAVE_WCRTOMB = 0 || test $REPLACE_WCRTOMB = 1; then
1094 AC_LIBOBJ([wcrtomb])
1097 gl_WCHAR_MODULE_INDICATOR([wcrtomb])
1100 if test $HAVE_WCWIDTH = 0 || test $REPLACE_WCWIDTH = 1; then
1101 AC_LIBOBJ([wcwidth])
1103 gl_WCHAR_MODULE_INDICATOR([wcwidth])
1105 if test $REPLACE_WRITE = 1; then
1109 gl_UNISTD_MODULE_INDICATOR([write])
1116 m4_ifdef([AM_XGETTEXT_OPTION],
1117 [AM_][XGETTEXT_OPTION([--flag=xasprintf:1:c-format])])
1118 # End of code from modules
1119 m4_ifval(gl_LIBSOURCES_LIST, [
1120 m4_syscmd([test ! -d ]m4_defn([gl_LIBSOURCES_DIR])[ ||
1121 for gl_file in ]gl_LIBSOURCES_LIST[ ; do
1122 if test ! -r ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file ; then
1123 echo "missing file ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file" >&2
1127 m4_if(m4_sysval, [0], [],
1128 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
1130 m4_popdef([gl_LIBSOURCES_DIR])
1131 m4_popdef([gl_LIBSOURCES_LIST])
1132 m4_popdef([AC_LIBSOURCES])
1133 m4_popdef([AC_REPLACE_FUNCS])
1134 m4_popdef([AC_LIBOBJ])
1135 AC_CONFIG_COMMANDS_PRE([
1138 if test -n "$gl_LIBOBJS"; then
1139 # Remove the extension.
1140 sed_drop_objext='s/\.o$//;s/\.obj$//'
1141 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
1142 gl_libobjs="$gl_libobjs $i.$ac_objext"
1143 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
1146 AC_SUBST([gl_LIBOBJS], [$gl_libobjs])
1147 AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs])
1151 m4_pushdef([AC_LIBOBJ], m4_defn([gltests_LIBOBJ]))
1152 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gltests_REPLACE_FUNCS]))
1153 m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES]))
1154 m4_pushdef([gltests_LIBSOURCES_LIST], [])
1155 m4_pushdef([gltests_LIBSOURCES_DIR], [])
1157 gl_source_base='tests'
1159 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
1160 changequote([, ])dnl
1161 AC_SUBST([gltests_WITNESS])
1162 gl_module_indicator_condition=$gltests_WITNESS
1163 m4_pushdef([gl_MODULE_INDICATOR_CONDITION], [$gl_module_indicator_condition])
1164 m4_popdef([gl_MODULE_INDICATOR_CONDITION])
1165 m4_ifval(gltests_LIBSOURCES_LIST, [
1166 m4_syscmd([test ! -d ]m4_defn([gltests_LIBSOURCES_DIR])[ ||
1167 for gl_file in ]gltests_LIBSOURCES_LIST[ ; do
1168 if test ! -r ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file ; then
1169 echo "missing file ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file" >&2
1173 m4_if(m4_sysval, [0], [],
1174 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
1176 m4_popdef([gltests_LIBSOURCES_DIR])
1177 m4_popdef([gltests_LIBSOURCES_LIST])
1178 m4_popdef([AC_LIBSOURCES])
1179 m4_popdef([AC_REPLACE_FUNCS])
1180 m4_popdef([AC_LIBOBJ])
1181 AC_CONFIG_COMMANDS_PRE([
1184 if test -n "$gltests_LIBOBJS"; then
1185 # Remove the extension.
1186 sed_drop_objext='s/\.o$//;s/\.obj$//'
1187 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
1188 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
1189 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
1192 AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs])
1193 AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs])
1195 LIBGNU_LIBDEPS="$gl_libdeps"
1196 AC_SUBST([LIBGNU_LIBDEPS])
1197 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
1198 AC_SUBST([LIBGNU_LTLIBDEPS])
1201 # Like AC_LIBOBJ, except that the module name goes
1202 # into gl_LIBOBJS instead of into LIBOBJS.
1203 AC_DEFUN([gl_LIBOBJ], [
1204 AS_LITERAL_IF([$1], [gl_LIBSOURCES([$1.c])])dnl
1205 gl_LIBOBJS="$gl_LIBOBJS $1.$ac_objext"
1208 # Like AC_REPLACE_FUNCS, except that the module name goes
1209 # into gl_LIBOBJS instead of into LIBOBJS.
1210 AC_DEFUN([gl_REPLACE_FUNCS], [
1211 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
1212 AC_CHECK_FUNCS([$1], , [gl_LIBOBJ($ac_func)])
1215 # Like AC_LIBSOURCES, except the directory where the source file is
1216 # expected is derived from the gnulib-tool parameterization,
1217 # and alloca is special cased (for the alloca-opt module).
1218 # We could also entirely rely on EXTRA_lib..._SOURCES.
1219 AC_DEFUN([gl_LIBSOURCES], [
1220 m4_foreach([_gl_NAME], [$1], [
1221 m4_if(_gl_NAME, [alloca.c], [], [
1222 m4_define([gl_LIBSOURCES_DIR], [gnu])
1223 m4_append([gl_LIBSOURCES_LIST], _gl_NAME, [ ])
1228 # Like AC_LIBOBJ, except that the module name goes
1229 # into gltests_LIBOBJS instead of into LIBOBJS.
1230 AC_DEFUN([gltests_LIBOBJ], [
1231 AS_LITERAL_IF([$1], [gltests_LIBSOURCES([$1.c])])dnl
1232 gltests_LIBOBJS="$gltests_LIBOBJS $1.$ac_objext"
1235 # Like AC_REPLACE_FUNCS, except that the module name goes
1236 # into gltests_LIBOBJS instead of into LIBOBJS.
1237 AC_DEFUN([gltests_REPLACE_FUNCS], [
1238 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
1239 AC_CHECK_FUNCS([$1], , [gltests_LIBOBJ($ac_func)])
1242 # Like AC_LIBSOURCES, except the directory where the source file is
1243 # expected is derived from the gnulib-tool parameterization,
1244 # and alloca is special cased (for the alloca-opt module).
1245 # We could also entirely rely on EXTRA_lib..._SOURCES.
1246 AC_DEFUN([gltests_LIBSOURCES], [
1247 m4_foreach([_gl_NAME], [$1], [
1248 m4_if(_gl_NAME, [alloca.c], [], [
1249 m4_define([gltests_LIBSOURCES_DIR], [tests])
1250 m4_append([gltests_LIBSOURCES_LIST], _gl_NAME, [ ])
1255 # This macro records the list of files which have been installed by
1256 # gnulib-tool and may be removed by future gnulib-tool invocations.
1257 AC_DEFUN([gl_FILE_LIST], [
1258 build-aux/config.rpath
1259 build-aux/git-log-fix
1260 build-aux/gitlog-to-changelog
1261 build-aux/snippet/_Noreturn.h
1262 build-aux/snippet/arg-nonnull.h
1263 build-aux/snippet/c++defs.h
1264 build-aux/snippet/unused-parameter.h
1265 build-aux/snippet/warn-on-use.h
1266 doc/parse-datetime.texi
1267 lib/acl-errno-valid.c
1283 lib/argp-fmtstream.c
1284 lib/argp-fmtstream.h
1292 lib/argp-version-etc.c
1293 lib/argp-version-etc.h
1313 lib/canonicalize-lgpl.c
1332 lib/dirent-private.h
1366 lib/filenamecat-lgpl.c
1426 lib/malloca.valgrind
1432 lib/mbsrtowcs-impl.h
1433 lib/mbsrtowcs-state.c
1450 lib/mktime-internal.h
1470 lib/parse-datetime.h
1471 lib/parse-datetime.y
1492 lib/rawmemchr.valgrind
1503 lib/regex_internal.c
1504 lib/regex_internal.h
1550 lib/strchrnul.valgrind
1553 lib/strerror-override.c
1554 lib/strerror-override.h
1594 lib/uniwidth/width.c
1609 lib/version-etc-fsf.c
1620 lib/xalloc-oversized.h
1638 m4/absolute-header.m4
1660 m4/double-slash-root.m4
1689 m4/getcwd-abort-bug.m4
1690 m4/getcwd-path-max.m4
1727 m4/libunistring-base.m4
1775 m4/parse-datetime.m4
1805 m4/selinux-context-h.m4
1806 m4/selinux-selinux-h.m4