1 # DO NOT EDIT! GENERATED AUTOMATICALLY!
2 # Copyright (C) 2002-2013 Free Software Foundation, Inc.
4 # This file is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 3 of the License, or
7 # (at your option) any later version.
9 # This file is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
14 # You should have received a copy of the GNU General Public License
15 # along with this file. If not, see <http://www.gnu.org/licenses/>.
17 # As a special exception to the GNU General Public License,
18 # this file may be distributed as part of a program that
19 # contains a configuration script generated by Autoconf, under
20 # the same distribution terms as the rest of that program.
22 # Generated by gnulib-tool.
24 # This file represents the compiled summary of the specification in
25 # gnulib-cache.m4. It lists the computed macro invocations that need
26 # to be invoked from configure.ac.
27 # In projects that use version control, this file can be treated like
31 # This macro should be invoked from ./configure.ac, in the section
32 # "Checks for programs", right after AC_PROG_CC, and certainly before
33 # any checks for libraries, header files, types and library functions.
36 m4_pattern_forbid([^gl_[A-Z]])dnl the gnulib macro namespace
37 m4_pattern_allow([^gl_ES$])dnl a valid locale name
38 m4_pattern_allow([^gl_LIBOBJS$])dnl a variable
39 m4_pattern_allow([^gl_LTLIBOBJS$])dnl a variable
40 AC_REQUIRE([gl_PROG_AR_RANLIB])
41 AC_REQUIRE([AM_PROG_CC_C_O])
42 # Code from module alloca:
43 # Code from module alloca-opt:
44 # Code from module alloca-opt-tests:
45 # Code from module allocator:
46 # Code from module announce-gen:
47 # Code from module areadlink:
48 # Code from module areadlink-tests:
49 # Code from module argmatch:
50 # Code from module argmatch-tests:
51 # Code from module binary-io:
52 # Code from module binary-io-tests:
53 # Code from module bitrotate:
54 # Code from module bitrotate-tests:
55 # Code from module btowc:
56 # Code from module btowc-tests:
57 # Code from module c-ctype:
58 # Code from module c-ctype-tests:
59 # Code from module c-stack:
60 # Code from module c-stack-tests:
61 # Code from module c-strcase:
62 # Code from module c-strcase-tests:
63 # Code from module c-strcaseeq:
64 # Code from module careadlinkat:
65 # Code from module clock-time:
66 # Code from module close:
67 # Code from module close-tests:
68 # Code from module config-h:
69 # Code from module configmake:
70 # Code from module diffseq:
71 # Code from module dirname:
72 # Code from module dirname-lgpl:
73 # Code from module dirname-tests:
74 # Code from module do-release-commit-and-tag:
75 # Code from module dosname:
76 # Code from module double-slash-root:
77 # Code from module dup2:
78 # Code from module dup2-tests:
79 # Code from module environ:
80 # Code from module environ-tests:
81 # Code from module errno:
82 # Code from module errno-tests:
83 # Code from module error:
84 # Code from module exclude:
85 # Code from module exclude-tests:
86 # Code from module exitfail:
87 # Code from module extensions:
88 AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
89 # Code from module extern-inline:
90 # Code from module fcntl:
91 # Code from module fcntl-h:
92 # Code from module fcntl-h-tests:
93 # Code from module fcntl-tests:
94 # Code from module fd-hook:
95 # Code from module fdl:
96 # Code from module fdopen:
97 # Code from module fdopen-tests:
98 # Code from module fgetc-tests:
99 # Code from module file-type:
100 # Code from module filenamecat:
101 # Code from module filenamecat-lgpl:
102 # Code from module filenamecat-tests:
103 # Code from module float:
104 # Code from module float-tests:
105 # Code from module fnmatch:
106 # Code from module fnmatch-gnu:
107 # Code from module fnmatch-tests:
108 # Code from module fpieee:
109 AC_REQUIRE([gl_FP_IEEE])
110 # Code from module fpucw:
111 # Code from module fputc-tests:
112 # Code from module fread-tests:
113 # Code from module freopen:
114 # Code from module freopen-safer:
115 # Code from module freopen-safer-tests:
116 # Code from module freopen-tests:
117 # Code from module fstat:
118 # Code from module fstat-tests:
119 # Code from module fwrite-tests:
120 # Code from module gendocs:
121 # Code from module getcwd-lgpl:
122 # Code from module getcwd-lgpl-tests:
123 # Code from module getdtablesize:
124 # Code from module getdtablesize-tests:
125 # Code from module getopt:
126 # Code from module getopt-gnu:
127 # Code from module getopt-posix:
128 # Code from module getopt-posix-tests:
129 # Code from module getpagesize:
130 # Code from module gettext-h:
131 # Code from module gettime:
132 # Code from module gettimeofday:
133 # Code from module gettimeofday-tests:
134 # Code from module git-version-gen:
135 # Code from module gitlog-to-changelog:
136 # Code from module gnu-make:
137 # Code from module gnu-web-doc-update:
138 # Code from module gnumakefile:
139 # Code from module gnupload:
140 # Code from module gperf:
141 # Code from module hard-locale:
142 # Code from module hash:
143 # Code from module hash-pjw:
144 # Code from module hash-tests:
145 # Code from module havelib:
146 # Code from module iconv:
147 # Code from module iconv-h:
148 # Code from module iconv-h-tests:
149 # Code from module iconv-tests:
150 # Code from module iconv_open:
151 # Code from module ignore-value:
152 # Code from module ignore-value-tests:
153 # Code from module include_next:
154 # Code from module inline:
155 # Code from module intprops:
156 # Code from module intprops-tests:
157 # Code from module inttostr:
158 # Code from module inttostr-tests:
159 # Code from module inttypes:
160 # Code from module inttypes-incomplete:
161 # Code from module inttypes-tests:
162 # Code from module iswblank:
163 # Code from module iswblank-tests:
164 # Code from module langinfo:
165 # Code from module langinfo-tests:
166 # Code from module largefile:
167 AC_REQUIRE([AC_SYS_LARGEFILE])
168 # Code from module libsigsegv:
169 # Code from module localcharset:
170 # Code from module locale:
171 # Code from module locale-tests:
172 # Code from module localeconv:
173 # Code from module localeconv-tests:
174 # Code from module lstat:
175 # Code from module lstat-tests:
176 # Code from module maintainer-makefile:
177 # Code from module malloc-gnu:
178 # Code from module malloc-gnu-tests:
179 # Code from module malloc-posix:
180 # Code from module malloca:
181 # Code from module malloca-tests:
182 # Code from module manywarnings:
183 # Code from module mbchar:
184 # Code from module mbiter:
185 # Code from module mbrtowc:
186 # Code from module mbrtowc-tests:
187 # Code from module mbscasecmp:
188 # Code from module mbscasecmp-tests:
189 # Code from module mbsinit:
190 # Code from module mbsinit-tests:
191 # Code from module mbslen:
192 # Code from module mbsrtowcs:
193 # Code from module mbsrtowcs-tests:
194 # Code from module mbsstr:
195 # Code from module mbsstr-tests:
196 # Code from module mbtowc:
197 # Code from module mbuiter:
198 # Code from module memchr:
199 # Code from module memchr-tests:
200 # Code from module mkstemp:
201 # Code from module mktime:
202 # Code from module msvc-inval:
203 # Code from module msvc-nothrow:
204 # Code from module multiarch:
205 # Code from module nl_langinfo:
206 # Code from module nl_langinfo-tests:
207 # Code from module nocrash:
208 # Code from module open:
209 # Code from module open-tests:
210 # Code from module pathmax:
211 # Code from module pathmax-tests:
212 # Code from module progname:
213 # Code from module propername:
214 # Code from module putenv:
215 # Code from module quote:
216 # Code from module quotearg:
217 # Code from module quotearg-simple:
218 # Code from module quotearg-simple-tests:
219 # Code from module raise:
220 # Code from module raise-tests:
221 # Code from module readlink:
222 # Code from module readlink-tests:
223 # Code from module readme-release:
224 # Code from module regex:
225 # Code from module regex-tests:
226 # Code from module same-inode:
227 # Code from module secure_getenv:
228 # Code from module setenv:
229 # Code from module setenv-tests:
230 # Code from module setlocale:
231 # Code from module setlocale-tests:
232 # Code from module sh-quote:
233 # Code from module sh-quote-tests:
234 # Code from module sigaction:
235 # Code from module sigaction-tests:
236 # Code from module signal:
237 # Code from module signal-h:
238 # Code from module signal-h-tests:
239 # Code from module sigprocmask:
240 # Code from module sigprocmask-tests:
241 # Code from module size_max:
242 # Code from module sleep:
243 # Code from module sleep-tests:
244 # Code from module snippet/_Noreturn:
245 # Code from module snippet/arg-nonnull:
246 # Code from module snippet/c++defs:
247 # Code from module snippet/unused-parameter:
248 # Code from module snippet/warn-on-use:
249 # Code from module snprintf:
250 # Code from module snprintf-tests:
251 # Code from module ssize_t:
252 # Code from module stat:
253 # Code from module stat-macros:
254 # Code from module stat-tests:
255 # Code from module stat-time:
256 # Code from module stat-time-tests:
257 # Code from module stdarg:
258 dnl Some compilers (e.g., AIX 5.3 cc) need to be in c99 mode
259 dnl for the builtin va_copy to work. With Autoconf 2.60 or later,
260 dnl gl_PROG_CC_C99 arranges for this. With older Autoconf gl_PROG_CC_C99
261 dnl shouldn't hurt, though installers are on their own to set c99 mode.
263 # Code from module stdbool:
264 # Code from module stdbool-tests:
265 # Code from module stddef:
266 # Code from module stddef-tests:
267 # Code from module stdint:
268 # Code from module stdint-tests:
269 # Code from module stdio:
270 # Code from module stdio-tests:
271 # Code from module stdlib:
272 # Code from module stdlib-tests:
273 # Code from module strcase:
274 # Code from module streq:
275 # Code from module strerror:
276 # Code from module strerror-override:
277 # Code from module strerror-tests:
278 # Code from module strftime:
279 # Code from module strftime-tests:
280 # Code from module striconv:
281 # Code from module striconv-tests:
282 # Code from module string:
283 # Code from module string-tests:
284 # Code from module strings:
285 # Code from module strings-tests:
286 # Code from module strndup:
287 # Code from module strnlen:
288 # Code from module strnlen-tests:
289 # Code from module strnlen1:
290 # Code from module strptime:
291 # Code from module strtoull:
292 # Code from module strtoull-tests:
293 # Code from module strtoumax:
294 # Code from module strtoumax-tests:
295 # Code from module symlink:
296 # Code from module symlink-tests:
297 # Code from module sys_stat:
298 # Code from module sys_stat-tests:
299 # Code from module sys_time:
300 # Code from module sys_time-tests:
301 # Code from module sys_types:
302 # Code from module sys_types-tests:
303 # Code from module sys_wait:
304 # Code from module sys_wait-tests:
305 # Code from module system-quote:
306 # Code from module tempname:
307 # Code from module test-framework-sh:
308 # Code from module test-framework-sh-tests:
309 # Code from module time:
310 # Code from module time-tests:
311 # Code from module time_r:
312 # Code from module timespec:
313 # Code from module trim:
314 # Code from module unistd:
315 # Code from module unistd-tests:
316 # Code from module unistr/base:
317 # Code from module unistr/u8-mbtoucr:
318 # Code from module unistr/u8-mbtoucr-tests:
319 # Code from module unistr/u8-uctomb:
320 # Code from module unistr/u8-uctomb-tests:
321 # Code from module unitypes:
322 # Code from module uniwidth/base:
323 # Code from module uniwidth/width:
324 # Code from module uniwidth/width-tests:
325 # Code from module unlocked-io:
326 # Code from module unsetenv:
327 # Code from module unsetenv-tests:
328 # Code from module update-copyright:
329 # Code from module update-copyright-tests:
330 # Code from module useless-if-before-free:
331 # Code from module usleep:
332 # Code from module usleep-tests:
333 # Code from module vararrays:
334 # Code from module vasnprintf:
335 # Code from module vasnprintf-tests:
336 # Code from module vasprintf:
337 # Code from module vasprintf-tests:
338 # Code from module vc-list-files:
339 # Code from module vc-list-files-tests:
340 # Code from module verify:
341 # Code from module verify-tests:
342 # Code from module version-etc:
343 # Code from module version-etc-fsf:
344 # Code from module version-etc-tests:
345 # Code from module warnings:
346 # Code from module wchar:
347 # Code from module wchar-tests:
348 # Code from module wcrtomb:
349 # Code from module wcrtomb-tests:
350 # Code from module wctob:
351 # Code from module wctomb:
352 # Code from module wctype-h:
353 # Code from module wctype-h-tests:
354 # Code from module wcwidth:
355 # Code from module wcwidth-tests:
356 # Code from module xalloc:
357 # Code from module xalloc-die:
358 # Code from module xalloc-die-tests:
359 # Code from module xalloc-oversized:
360 # Code from module xfreopen:
361 # Code from module xreadlink:
362 # Code from module xsize:
363 # Code from module xstriconv:
364 # Code from module xstrndup:
365 # Code from module xstrtol:
366 # Code from module xstrtol-tests:
367 # Code from module xstrtoumax:
368 # Code from module xstrtoumax-tests:
369 # Code from module xvasprintf:
370 # Code from module xvasprintf-tests:
373 # This macro should be invoked from ./configure.ac, in the section
374 # "Check for header files, types and library functions".
377 AM_CONDITIONAL([GL_COND_LIBTOOL], [false])
378 gl_cond_libtool=false
382 m4_pushdef([AC_LIBOBJ], m4_defn([gl_LIBOBJ]))
383 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gl_REPLACE_FUNCS]))
384 m4_pushdef([AC_LIBSOURCES], m4_defn([gl_LIBSOURCES]))
385 m4_pushdef([gl_LIBSOURCES_LIST], [])
386 m4_pushdef([gl_LIBSOURCES_DIR], [])
391 if test $HAVE_BTOWC = 0 || test $REPLACE_BTOWC = 1; then
395 gl_WCHAR_MODULE_INDICATOR([btowc])
397 AC_CHECK_FUNCS_ONCE([readlinkat])
400 if test $REPLACE_CLOSE = 1; then
403 gl_UNISTD_MODULE_INDICATOR([close])
407 gl_MODULE_INDICATOR([dirname])
411 if test $HAVE_DUP2 = 0 || test $REPLACE_DUP2 = 1; then
415 gl_UNISTD_MODULE_INDICATOR([dup2])
418 if test $ac_cv_lib_error_at_line = no; then
422 m4_ifdef([AM_XGETTEXT_OPTION],
423 [AM_][XGETTEXT_OPTION([--flag=error:3:c-format])
424 AM_][XGETTEXT_OPTION([--flag=error_at_line:5:c-format])])
425 AC_REQUIRE([gl_EXTERN_INLINE])
427 if test $HAVE_FCNTL = 0 || test $REPLACE_FCNTL = 1; then
430 gl_FCNTL_MODULE_INDICATOR([fcntl])
433 gl_MODULE_INDICATOR([filenamecat])
434 gl_FILE_NAME_CONCAT_LGPL
436 if test $REPLACE_FLOAT_LDBL = 1; then
439 if test $REPLACE_ITOLD = 1; then
442 gl_FUNC_FNMATCH_POSIX
443 if test -n "$FNMATCH_H"; then
448 if test -n "$FNMATCH_H"; then
453 if test $REPLACE_FREOPEN = 1; then
457 gl_STDIO_MODULE_INDICATOR([freopen])
458 gl_MODULE_INDICATOR([freopen-safer])
460 if test $REPLACE_FSTAT = 1; then
464 gl_SYS_STAT_MODULE_INDICATOR([fstat])
465 gl_FUNC_GETDTABLESIZE
466 if test $HAVE_GETDTABLESIZE = 0; then
467 AC_LIBOBJ([getdtablesize])
468 gl_PREREQ_GETDTABLESIZE
470 gl_UNISTD_MODULE_INDICATOR([getdtablesize])
472 if test $REPLACE_GETOPT = 1; then
476 dnl Arrange for unistd.h to include getopt.h.
477 GNULIB_GL_UNISTD_H_GETOPT=1
479 AC_SUBST([GNULIB_GL_UNISTD_H_GETOPT])
480 gl_MODULE_INDICATOR_FOR_TESTS([getopt-gnu])
482 if test $REPLACE_GETOPT = 1; then
486 dnl Arrange for unistd.h to include getopt.h.
487 GNULIB_GL_UNISTD_H_GETOPT=1
489 AC_SUBST([GNULIB_GL_UNISTD_H_GETOPT])
491 AC_SUBST([LTLIBINTL])
494 if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
495 AC_LIBOBJ([gettimeofday])
496 gl_PREREQ_GETTIMEOFDAY
498 gl_SYS_TIME_MODULE_INDICATOR([gettimeofday])
500 # Autoconf 2.61a.99 and earlier don't support linking a file only
501 # in VPATH builds. But since GNUmakefile is for maintainer use
502 # only, it does not matter if we skip the link with older autoconf.
503 # Automake 1.10.1 and earlier try to remove GNUmakefile in non-VPATH
504 # builds, so use a shell variable to bypass this.
505 GNUmakefile=GNUmakefile
506 m4_if(m4_version_compare([2.61a.100],
507 m4_defn([m4_PACKAGE_VERSION])), [1], [],
508 [AC_CONFIG_LINKS([$GNUmakefile:$GNUmakefile], [],
509 [GNUmakefile=$GNUmakefile])])
512 m4_ifdef([gl_ICONV_MODULE_INDICATOR],
513 [gl_ICONV_MODULE_INDICATOR([iconv])])
516 if test $REPLACE_ICONV_OPEN = 1; then
517 AC_LIBOBJ([iconv_open])
519 if test $REPLACE_ICONV = 1; then
521 AC_LIBOBJ([iconv_close])
526 gl_INTTYPES_INCOMPLETE
528 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
531 if test $HAVE_ISWBLANK = 0 || test $REPLACE_ISWBLANK = 1; then
532 AC_LIBOBJ([iswblank])
535 gl_WCTYPE_MODULE_INDICATOR([iswblank])
537 AC_REQUIRE([gl_LARGEFILE])
540 LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\""
541 AC_SUBST([LOCALCHARSET_TESTS_ENVIRONMENT])
544 if test $REPLACE_LOCALECONV = 1; then
545 AC_LIBOBJ([localeconv])
548 gl_LOCALE_MODULE_INDICATOR([localeconv])
550 if test $REPLACE_LSTAT = 1; then
554 gl_SYS_STAT_MODULE_INDICATOR([lstat])
555 AC_CONFIG_COMMANDS_PRE([m4_ifdef([AH_HEADER],
556 [AC_SUBST([CONFIG_INCLUDE], m4_defn([AH_HEADER]))])])
558 if test $REPLACE_MALLOC = 1; then
561 gl_MODULE_INDICATOR([malloc-gnu])
563 if test $REPLACE_MALLOC = 1; then
566 gl_STDLIB_MODULE_INDICATOR([malloc-posix])
571 if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
575 gl_WCHAR_MODULE_INDICATOR([mbrtowc])
576 gl_STRING_MODULE_INDICATOR([mbscasecmp])
578 if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
582 gl_WCHAR_MODULE_INDICATOR([mbsinit])
584 gl_STRING_MODULE_INDICATOR([mbslen])
586 if test $HAVE_MBSRTOWCS = 0 || test $REPLACE_MBSRTOWCS = 1; then
587 AC_LIBOBJ([mbsrtowcs])
588 AC_LIBOBJ([mbsrtowcs-state])
591 gl_WCHAR_MODULE_INDICATOR([mbsrtowcs])
592 gl_STRING_MODULE_INDICATOR([mbsstr])
594 if test $REPLACE_MBTOWC = 1; then
598 gl_STDLIB_MODULE_INDICATOR([mbtowc])
601 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
605 gl_STRING_MODULE_INDICATOR([memchr])
607 if test $HAVE_MKSTEMP = 0 || test $REPLACE_MKSTEMP = 1; then
611 gl_STDLIB_MODULE_INDICATOR([mkstemp])
613 if test $REPLACE_MKTIME = 1; then
617 gl_TIME_MODULE_INDICATOR([mktime])
619 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
620 AC_LIBOBJ([msvc-inval])
623 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
624 AC_LIBOBJ([msvc-nothrow])
628 if test $HAVE_NL_LANGINFO = 0 || test $REPLACE_NL_LANGINFO = 1; then
629 AC_LIBOBJ([nl_langinfo])
631 gl_LANGINFO_MODULE_INDICATOR([nl_langinfo])
633 if test $REPLACE_OPEN = 1; then
637 gl_FCNTL_MODULE_INDICATOR([open])
639 AC_CHECK_DECLS([program_invocation_name], [], [], [#include <errno.h>])
640 AC_CHECK_DECLS([program_invocation_short_name], [], [], [#include <errno.h>])
641 m4_ifdef([AM_XGETTEXT_OPTION],
642 [AM_][XGETTEXT_OPTION([--keyword='proper_name:1,\"This is a proper name. See the gettext manual, section Names.\"'])
643 AM_][XGETTEXT_OPTION([--keyword='proper_name_utf8:1,\"This is a proper name. See the gettext manual, section Names.\"'])])
647 if test $HAVE_RAISE = 0 || test $REPLACE_RAISE = 1; then
651 gl_SIGNAL_MODULE_INDICATOR([raise])
653 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
654 AC_LIBOBJ([readlink])
657 gl_UNISTD_MODULE_INDICATOR([readlink])
659 if test $ac_use_included_regex = yes; then
663 gl_FUNC_SECURE_GETENV
664 if test $HAVE_SECURE_GETENV = 0; then
665 AC_LIBOBJ([secure_getenv])
666 gl_PREREQ_SECURE_GETENV
668 gl_STDLIB_MODULE_INDICATOR([secure_getenv])
670 if test $HAVE_SIGACTION = 0; then
671 AC_LIBOBJ([sigaction])
674 gl_SIGNAL_MODULE_INDICATOR([sigaction])
677 if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
678 AC_LIBOBJ([sigprocmask])
679 gl_PREREQ_SIGPROCMASK
681 gl_SIGNAL_MODULE_INDICATOR([sigprocmask])
685 if test $REPLACE_STAT = 1; then
689 gl_SYS_STAT_MODULE_INDICATOR([stat])
699 if test $HAVE_STRCASECMP = 0; then
700 AC_LIBOBJ([strcasecmp])
703 if test $HAVE_STRNCASECMP = 0; then
704 AC_LIBOBJ([strncasecmp])
705 gl_PREREQ_STRNCASECMP
708 if test $REPLACE_STRERROR = 1; then
709 AC_LIBOBJ([strerror])
711 gl_MODULE_INDICATOR([strerror])
712 gl_STRING_MODULE_INDICATOR([strerror])
713 AC_REQUIRE([gl_HEADER_ERRNO_H])
714 AC_REQUIRE([gl_FUNC_STRERROR_0])
715 if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then
716 AC_LIBOBJ([strerror-override])
717 gl_PREREQ_SYS_H_WINSOCK2
720 if test $gl_cond_libtool = false; then
721 gl_ltlibdeps="$gl_ltlibdeps $LTLIBICONV"
722 gl_libdeps="$gl_libdeps $LIBICONV"
727 if test $HAVE_STRNDUP = 0 || test $REPLACE_STRNDUP = 1; then
730 gl_STRING_MODULE_INDICATOR([strndup])
732 if test $HAVE_DECL_STRNLEN = 0 || test $REPLACE_STRNLEN = 1; then
736 gl_STRING_MODULE_INDICATOR([strnlen])
738 if test $HAVE_STRPTIME = 0; then
739 AC_LIBOBJ([strptime])
742 gl_TIME_MODULE_INDICATOR([strptime])
744 if test $HAVE_STRTOULL = 0; then
745 AC_LIBOBJ([strtoull])
748 gl_STDLIB_MODULE_INDICATOR([strtoull])
750 if test $ac_cv_func_strtoumax = no; then
751 AC_LIBOBJ([strtoumax])
754 gl_INTTYPES_MODULE_INDICATOR([strtoumax])
766 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
770 gl_TIME_MODULE_INDICATOR([time_r])
773 gl_LIBUNISTRING_LIBHEADER([0.9.2], [unistr.h])
774 gl_MODULE_INDICATOR([unistr/u8-mbtoucr])
775 gl_LIBUNISTRING_MODULE([0.9], [unistr/u8-mbtoucr])
776 gl_MODULE_INDICATOR([unistr/u8-uctomb])
777 gl_LIBUNISTRING_MODULE([0.9], [unistr/u8-uctomb])
778 gl_LIBUNISTRING_LIBHEADER([0.9], [unitypes.h])
779 gl_LIBUNISTRING_LIBHEADER([0.9], [uniwidth.h])
780 gl_LIBUNISTRING_MODULE([0.9.4], [uniwidth/width])
781 gl_FUNC_GLIBC_UNLOCKED_IO
785 gl_STDIO_MODULE_INDICATOR([vasprintf])
786 m4_ifdef([AM_XGETTEXT_OPTION],
787 [AM_][XGETTEXT_OPTION([--flag=asprintf:2:c-format])
788 AM_][XGETTEXT_OPTION([--flag=vasprintf:2:c-format])])
792 if test $HAVE_WCRTOMB = 0 || test $REPLACE_WCRTOMB = 1; then
796 gl_WCHAR_MODULE_INDICATOR([wcrtomb])
799 if test $HAVE_WCWIDTH = 0 || test $REPLACE_WCWIDTH = 1; then
802 gl_WCHAR_MODULE_INDICATOR([wcwidth])
808 m4_ifdef([AM_XGETTEXT_OPTION],
809 [AM_][XGETTEXT_OPTION([--flag=xasprintf:1:c-format])])
810 # End of code from modules
811 m4_ifval(gl_LIBSOURCES_LIST, [
812 m4_syscmd([test ! -d ]m4_defn([gl_LIBSOURCES_DIR])[ ||
813 for gl_file in ]gl_LIBSOURCES_LIST[ ; do
814 if test ! -r ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file ; then
815 echo "missing file ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file" >&2
819 m4_if(m4_sysval, [0], [],
820 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
822 m4_popdef([gl_LIBSOURCES_DIR])
823 m4_popdef([gl_LIBSOURCES_LIST])
824 m4_popdef([AC_LIBSOURCES])
825 m4_popdef([AC_REPLACE_FUNCS])
826 m4_popdef([AC_LIBOBJ])
827 AC_CONFIG_COMMANDS_PRE([
830 if test -n "$gl_LIBOBJS"; then
831 # Remove the extension.
832 sed_drop_objext='s/\.o$//;s/\.obj$//'
833 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
834 gl_libobjs="$gl_libobjs $i.$ac_objext"
835 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
838 AC_SUBST([gl_LIBOBJS], [$gl_libobjs])
839 AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs])
843 m4_pushdef([AC_LIBOBJ], m4_defn([gltests_LIBOBJ]))
844 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gltests_REPLACE_FUNCS]))
845 m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES]))
846 m4_pushdef([gltests_LIBSOURCES_LIST], [])
847 m4_pushdef([gltests_LIBSOURCES_DIR], [])
849 gl_source_base='gnulib-tests'
851 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
853 AC_SUBST([gltests_WITNESS])
854 gl_module_indicator_condition=$gltests_WITNESS
855 m4_pushdef([gl_MODULE_INDICATOR_CONDITION], [$gl_module_indicator_condition])
861 gl_UNISTD_MODULE_INDICATOR([environ])
863 if test $REPLACE_FDOPEN = 1; then
867 gl_STDIO_MODULE_INDICATOR([fdopen])
869 if test $REPLACE_GETCWD = 1; then
870 AC_LIBOBJ([getcwd-lgpl])
872 gl_UNISTD_MODULE_INDICATOR([getcwd])
874 if test $REPLACE_GETPAGESIZE = 1; then
875 AC_LIBOBJ([getpagesize])
877 gl_UNISTD_MODULE_INDICATOR([getpagesize])
878 AC_CHECK_FUNCS_ONCE([newlocale])
891 dnl Check for prerequisites for memory fence checks.
893 AC_CHECK_HEADERS_ONCE([sys/mman.h])
894 AC_CHECK_FUNCS_ONCE([mprotect])
898 if test $REPLACE_PUTENV = 1; then
902 gl_STDLIB_MODULE_INDICATOR([putenv])
904 if test $HAVE_SETENV = 0 || test $REPLACE_SETENV = 1; then
907 gl_STDLIB_MODULE_INDICATOR([setenv])
909 if test $REPLACE_SETLOCALE = 1; then
910 AC_LIBOBJ([setlocale])
913 gl_LOCALE_MODULE_INDICATOR([setlocale])
919 if test $HAVE_SLEEP = 0 || test $REPLACE_SLEEP = 1; then
922 gl_UNISTD_MODULE_INDICATOR([sleep])
923 AC_CHECK_DECLS_ONCE([alarm])
925 gl_STDIO_MODULE_INDICATOR([snprintf])
926 gl_MODULE_INDICATOR([snprintf])
927 AC_REQUIRE([gt_TYPE_WCHAR_T])
928 AC_REQUIRE([gt_TYPE_WINT_T])
929 dnl Check for prerequisites for memory fence checks.
931 AC_CHECK_HEADERS_ONCE([sys/mman.h])
932 AC_CHECK_FUNCS_ONCE([mprotect])
934 if test $HAVE_SYMLINK = 0 || test $REPLACE_SYMLINK = 1; then
937 gl_UNISTD_MODULE_INDICATOR([symlink])
939 if test $HAVE_UNSETENV = 0 || test $REPLACE_UNSETENV = 1; then
940 AC_LIBOBJ([unsetenv])
943 gl_STDLIB_MODULE_INDICATOR([unsetenv])
944 abs_aux_dir=`cd "$ac_aux_dir"; pwd`
945 AC_SUBST([abs_aux_dir])
947 if test $HAVE_USLEEP = 0 || test $REPLACE_USLEEP = 1; then
950 gl_UNISTD_MODULE_INDICATOR([usleep])
951 abs_aux_dir=`cd "$ac_aux_dir"; pwd`
952 AC_SUBST([abs_aux_dir])
958 if test $HAVE_WCTOB = 0 || test $REPLACE_WCTOB = 1; then
962 gl_WCHAR_MODULE_INDICATOR([wctob])
964 if test $REPLACE_WCTOMB = 1; then
968 gl_STDLIB_MODULE_INDICATOR([wctomb])
969 m4_popdef([gl_MODULE_INDICATOR_CONDITION])
970 m4_ifval(gltests_LIBSOURCES_LIST, [
971 m4_syscmd([test ! -d ]m4_defn([gltests_LIBSOURCES_DIR])[ ||
972 for gl_file in ]gltests_LIBSOURCES_LIST[ ; do
973 if test ! -r ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file ; then
974 echo "missing file ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file" >&2
978 m4_if(m4_sysval, [0], [],
979 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
981 m4_popdef([gltests_LIBSOURCES_DIR])
982 m4_popdef([gltests_LIBSOURCES_LIST])
983 m4_popdef([AC_LIBSOURCES])
984 m4_popdef([AC_REPLACE_FUNCS])
985 m4_popdef([AC_LIBOBJ])
986 AC_CONFIG_COMMANDS_PRE([
989 if test -n "$gltests_LIBOBJS"; then
990 # Remove the extension.
991 sed_drop_objext='s/\.o$//;s/\.obj$//'
992 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
993 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
994 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
997 AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs])
998 AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs])
1000 LIBDIFFUTILS_LIBDEPS="$gl_libdeps"
1001 AC_SUBST([LIBDIFFUTILS_LIBDEPS])
1002 LIBDIFFUTILS_LTLIBDEPS="$gl_ltlibdeps"
1003 AC_SUBST([LIBDIFFUTILS_LTLIBDEPS])
1004 LIBTESTS_LIBDEPS="$gltests_libdeps"
1005 AC_SUBST([LIBTESTS_LIBDEPS])
1008 # Like AC_LIBOBJ, except that the module name goes
1009 # into gl_LIBOBJS instead of into LIBOBJS.
1010 AC_DEFUN([gl_LIBOBJ], [
1011 AS_LITERAL_IF([$1], [gl_LIBSOURCES([$1.c])])dnl
1012 gl_LIBOBJS="$gl_LIBOBJS $1.$ac_objext"
1015 # Like AC_REPLACE_FUNCS, except that the module name goes
1016 # into gl_LIBOBJS instead of into LIBOBJS.
1017 AC_DEFUN([gl_REPLACE_FUNCS], [
1018 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
1019 AC_CHECK_FUNCS([$1], , [gl_LIBOBJ($ac_func)])
1022 # Like AC_LIBSOURCES, except the directory where the source file is
1023 # expected is derived from the gnulib-tool parameterization,
1024 # and alloca is special cased (for the alloca-opt module).
1025 # We could also entirely rely on EXTRA_lib..._SOURCES.
1026 AC_DEFUN([gl_LIBSOURCES], [
1027 m4_foreach([_gl_NAME], [$1], [
1028 m4_if(_gl_NAME, [alloca.c], [], [
1029 m4_define([gl_LIBSOURCES_DIR], [lib])
1030 m4_append([gl_LIBSOURCES_LIST], _gl_NAME, [ ])
1035 # Like AC_LIBOBJ, except that the module name goes
1036 # into gltests_LIBOBJS instead of into LIBOBJS.
1037 AC_DEFUN([gltests_LIBOBJ], [
1038 AS_LITERAL_IF([$1], [gltests_LIBSOURCES([$1.c])])dnl
1039 gltests_LIBOBJS="$gltests_LIBOBJS $1.$ac_objext"
1042 # Like AC_REPLACE_FUNCS, except that the module name goes
1043 # into gltests_LIBOBJS instead of into LIBOBJS.
1044 AC_DEFUN([gltests_REPLACE_FUNCS], [
1045 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
1046 AC_CHECK_FUNCS([$1], , [gltests_LIBOBJ($ac_func)])
1049 # Like AC_LIBSOURCES, except the directory where the source file is
1050 # expected is derived from the gnulib-tool parameterization,
1051 # and alloca is special cased (for the alloca-opt module).
1052 # We could also entirely rely on EXTRA_lib..._SOURCES.
1053 AC_DEFUN([gltests_LIBSOURCES], [
1054 m4_foreach([_gl_NAME], [$1], [
1055 m4_if(_gl_NAME, [alloca.c], [], [
1056 m4_define([gltests_LIBSOURCES_DIR], [gnulib-tests])
1057 m4_append([gltests_LIBSOURCES_LIST], _gl_NAME, [ ])
1062 # This macro records the list of files which have been installed by
1063 # gnulib-tool and may be removed by future gnulib-tool invocations.
1064 AC_DEFUN([gl_FILE_LIST], [
1065 build-aux/announce-gen
1066 build-aux/config.rpath
1067 build-aux/do-release-commit-and-tag
1068 build-aux/gendocs.sh
1069 build-aux/git-version-gen
1070 build-aux/gitlog-to-changelog
1071 build-aux/gnu-web-doc-update
1073 build-aux/snippet/_Noreturn.h
1074 build-aux/snippet/arg-nonnull.h
1075 build-aux/snippet/c++defs.h
1076 build-aux/snippet/unused-parameter.h
1077 build-aux/snippet/warn-on-use.h
1078 build-aux/update-copyright
1079 build-aux/useless-if-before-free
1080 build-aux/vc-list-files
1082 doc/gendocs_template
1130 lib/filenamecat-lgpl.c
1157 lib/iconv_open-aix.gperf
1158 lib/iconv_open-hpux.gperf
1159 lib/iconv_open-irix.gperf
1160 lib/iconv_open-osf.gperf
1161 lib/iconv_open-solaris.gperf
1180 lib/malloca.valgrind
1189 lib/mbsrtowcs-impl.h
1190 lib/mbsrtowcs-state.c
1200 lib/mktime-internal.h
1228 lib/regex_internal.c
1229 lib/regex_internal.h
1255 lib/strerror-override.c
1256 lib/strerror-override.h
1295 lib/unistr/u8-mbtoucr.c
1296 lib/unistr/u8-uctomb-aux.c
1297 lib/unistr/u8-uctomb.c
1301 lib/uniwidth/width.c
1307 lib/version-etc-fsf.c
1316 lib/xalloc-oversized.h
1347 m4/double-slash-root.m4
1393 m4/libunistring-base.m4
1440 m4/signalblocking.m4
1500 tests/test-alloca-opt.c
1501 tests/test-areadlink.c
1502 tests/test-areadlink.h
1503 tests/test-argmatch.c
1504 tests/test-binary-io.c
1505 tests/test-binary-io.sh
1506 tests/test-bitrotate.c
1508 tests/test-btowc1.sh
1509 tests/test-btowc2.sh
1510 tests/test-c-ctype.c
1511 tests/test-c-stack.c
1512 tests/test-c-stack.sh
1513 tests/test-c-stack2.sh
1514 tests/test-c-strcase.sh
1515 tests/test-c-strcasecmp.c
1516 tests/test-c-strncasecmp.c
1518 tests/test-dirname.c
1520 tests/test-environ.c
1522 tests/test-exclude.c
1523 tests/test-exclude1.sh
1524 tests/test-exclude2.sh
1525 tests/test-exclude3.sh
1526 tests/test-exclude4.sh
1527 tests/test-exclude5.sh
1528 tests/test-exclude6.sh
1529 tests/test-exclude7.sh
1530 tests/test-exclude8.sh
1531 tests/test-fcntl-h.c
1535 tests/test-filenamecat.c
1537 tests/test-fnmatch.c
1540 tests/test-freopen-safer.c
1541 tests/test-freopen.c
1544 tests/test-getcwd-lgpl.c
1545 tests/test-getdtablesize.c
1548 tests/test-getopt_long.h
1549 tests/test-gettimeofday.c
1551 tests/test-iconv-h.c
1553 tests/test-ignore-value.c
1555 tests/test-intprops.c
1556 tests/test-inttostr.c
1557 tests/test-inttypes.c
1558 tests/test-iswblank.c
1559 tests/test-langinfo.c
1561 tests/test-localeconv.c
1564 tests/test-malloc-gnu.c
1565 tests/test-malloca.c
1566 tests/test-mbrtowc-w32-1.sh
1567 tests/test-mbrtowc-w32-2.sh
1568 tests/test-mbrtowc-w32-3.sh
1569 tests/test-mbrtowc-w32-4.sh
1570 tests/test-mbrtowc-w32-5.sh
1571 tests/test-mbrtowc-w32.c
1572 tests/test-mbrtowc.c
1573 tests/test-mbrtowc1.sh
1574 tests/test-mbrtowc2.sh
1575 tests/test-mbrtowc3.sh
1576 tests/test-mbrtowc4.sh
1577 tests/test-mbscasecmp.c
1578 tests/test-mbscasecmp.sh
1579 tests/test-mbsinit.c
1580 tests/test-mbsinit.sh
1581 tests/test-mbsrtowcs.c
1582 tests/test-mbsrtowcs1.sh
1583 tests/test-mbsrtowcs2.sh
1584 tests/test-mbsrtowcs3.sh
1585 tests/test-mbsrtowcs4.sh
1586 tests/test-mbsstr1.c
1587 tests/test-mbsstr2.c
1588 tests/test-mbsstr2.sh
1589 tests/test-mbsstr3.c
1590 tests/test-mbsstr3.sh
1592 tests/test-nl_langinfo.c
1593 tests/test-nl_langinfo.sh
1596 tests/test-pathmax.c
1597 tests/test-quotearg-simple.c
1598 tests/test-quotearg.h
1600 tests/test-readlink.c
1601 tests/test-readlink.h
1604 tests/test-setlocale1.c
1605 tests/test-setlocale1.sh
1606 tests/test-setlocale2.c
1607 tests/test-setlocale2.sh
1608 tests/test-sh-quote.c
1609 tests/test-sigaction.c
1610 tests/test-signal-h.c
1611 tests/test-sigprocmask.c
1613 tests/test-snprintf.c
1614 tests/test-stat-time.c
1617 tests/test-stdbool.c
1622 tests/test-strerror.c
1623 tests/test-strftime.c
1624 tests/test-striconv.c
1626 tests/test-strings.c
1627 tests/test-strnlen.c
1628 tests/test-strtoull.c
1629 tests/test-strtoumax.c
1630 tests/test-symlink.c
1631 tests/test-symlink.h
1632 tests/test-sys_stat.c
1633 tests/test-sys_time.c
1634 tests/test-sys_types.c
1635 tests/test-sys_wait.c
1636 tests/test-sys_wait.h
1639 tests/test-unsetenv.c
1640 tests/test-update-copyright.sh
1642 tests/test-vasnprintf.c
1643 tests/test-vasprintf.c
1644 tests/test-vc-list-files-cvs.sh
1645 tests/test-vc-list-files-git.sh
1647 tests/test-verify.sh
1648 tests/test-version-etc.c
1649 tests/test-version-etc.sh
1651 tests/test-wcrtomb-w32-1.sh
1652 tests/test-wcrtomb-w32-2.sh
1653 tests/test-wcrtomb-w32-3.sh
1654 tests/test-wcrtomb-w32-4.sh
1655 tests/test-wcrtomb-w32-5.sh
1656 tests/test-wcrtomb-w32.c
1657 tests/test-wcrtomb.c
1658 tests/test-wcrtomb.sh
1659 tests/test-wctype-h.c
1660 tests/test-wcwidth.c
1661 tests/test-xalloc-die.c
1662 tests/test-xalloc-die.sh
1663 tests/test-xstrtol.c
1664 tests/test-xstrtol.sh
1665 tests/test-xstrtoul.c
1666 tests/test-xstrtoumax.c
1667 tests/test-xstrtoumax.sh
1668 tests/test-xvasprintf.c
1669 tests/unistr/test-u8-mbtoucr.c
1670 tests/unistr/test-u8-uctomb.c
1671 tests/uniwidth/test-uc_width.c
1672 tests/uniwidth/test-uc_width2.c
1673 tests/uniwidth/test-uc_width2.sh
1674 tests/zerosize-ptr.h
1675 tests=lib/argmatch.c
1676 tests=lib/argmatch.h
1679 tests=lib/getcwd-lgpl.c
1680 tests=lib/getpagesize.c
1681 tests=lib/hash-pjw.c
1682 tests=lib/hash-pjw.h
1684 tests=lib/same-inode.h
1686 tests=lib/setlocale.c
1688 tests=lib/snprintf.c
1690 tests=lib/unsetenv.c
1693 tests=lib/wctomb-impl.h