1 # DO NOT EDIT! GENERATED AUTOMATICALLY!
2 # Copyright (C) 2002-2016 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
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 alignof:
48 # Code from module alignof-tests:
49 # Code from module alloca-opt:
50 # Code from module alloca-opt-tests:
51 # Code from module announce-gen:
52 # Code from module ansi-c++-opt:
53 # Code from module array-list:
54 # Code from module array-list-tests:
55 # Code from module array-oset:
56 # Code from module array-oset-tests:
57 # Code from module assert:
58 # Code from module autobuild:
60 # Code from module avltree-oset:
61 # Code from module avltree-oset-tests:
62 # Code from module binary-io:
63 # Code from module binary-io-tests:
64 # Code from module btowc:
65 # Code from module btowc-tests:
66 # Code from module builtin-expect:
67 # Code from module c-ctype:
68 # Code from module c-ctype-tests:
69 # Code from module c-stack:
70 # Code from module c-stack-tests:
71 # Code from module c-strcase:
72 # Code from module c-strcase-tests:
73 # Code from module c-strcaseeq:
74 # Code from module canonicalize-lgpl:
75 # Code from module canonicalize-lgpl-tests:
76 # Code from module chdir:
77 # Code from module chdir-tests:
78 # Code from module clean-temp:
79 # Code from module cloexec:
80 # Code from module cloexec-tests:
81 # Code from module close:
82 # Code from module close-stream:
83 # Code from module close-tests:
84 # Code from module closedir:
85 # Code from module closein:
86 # Code from module closein-tests:
87 # Code from module closeout:
88 # Code from module config-h:
89 # Code from module configmake:
90 # Code from module ctype:
91 # Code from module ctype-tests:
92 # Code from module dirent:
93 # Code from module dirent-c++-tests:
94 # Code from module dirent-tests:
95 # Code from module dirfd:
96 # Code from module dirname:
97 # Code from module dirname-lgpl:
98 # Code from module dirname-tests:
99 # Code from module do-release-commit-and-tag:
100 # Code from module dosname:
101 # Code from module double-slash-root:
102 # Code from module dup:
103 # Code from module dup-tests:
104 # Code from module dup2:
105 # Code from module dup2-tests:
106 # Code from module environ:
107 # Code from module environ-tests:
108 # Code from module errno:
109 # Code from module errno-tests:
110 # Code from module error:
111 # Code from module execute:
112 # Code from module exitfail:
113 # Code from module extensions:
114 # Code from module extern-inline:
115 # Code from module fatal-signal:
116 # Code from module fclose:
117 # Code from module fclose-tests:
118 # Code from module fcntl:
119 # Code from module fcntl-h:
120 # Code from module fcntl-h-c++-tests:
121 # Code from module fcntl-h-tests:
122 # Code from module fcntl-tests:
123 # Code from module fd-hook:
124 # Code from module fd-safer-flag:
125 # Code from module fdl-1.3:
126 # Code from module fdopen:
127 # Code from module fdopen-tests:
128 # Code from module fflush:
129 AC_REQUIRE([AC_FUNC_FSEEKO])
130 # Code from module fflush-tests:
131 # Code from module fgetc-tests:
132 # Code from module filename:
133 # Code from module filenamecat:
134 # Code from module filenamecat-lgpl:
135 # Code from module filenamecat-tests:
136 # Code from module flexmember:
137 # Code from module float:
138 # Code from module float-tests:
139 # Code from module fopen:
140 # Code from module fopen-safer:
141 # Code from module fopen-safer-tests:
142 # Code from module fopen-tests:
143 # Code from module fpending:
144 # Code from module fpending-tests:
145 # Code from module fpieee:
146 AC_REQUIRE([gl_FP_IEEE])
147 # Code from module fpucw:
148 # Code from module fpurge:
149 # Code from module fpurge-tests:
150 # Code from module fputc-tests:
151 # Code from module fread-tests:
152 # Code from module freadahead:
153 # Code from module freadahead-tests:
154 # Code from module freading:
155 # Code from module freading-tests:
156 # Code from module frexp-nolibm:
157 # Code from module frexp-nolibm-tests:
158 # Code from module frexpl-nolibm:
159 # Code from module frexpl-nolibm-tests:
160 # Code from module fseek:
161 # Code from module fseek-tests:
162 # Code from module fseeko:
163 AC_REQUIRE([AC_FUNC_FSEEKO])
164 # Code from module fseeko-tests:
165 # Code from module fstat:
166 # Code from module fstat-tests:
167 # Code from module ftell:
168 # Code from module ftell-tests:
169 # Code from module ftello:
170 AC_REQUIRE([AC_FUNC_FSEEKO])
171 # Code from module ftello-tests:
172 # Code from module fwrite-tests:
173 # Code from module gendocs:
174 # Code from module getcwd-lgpl:
175 # Code from module getcwd-lgpl-tests:
176 # Code from module getdtablesize:
177 # Code from module getdtablesize-tests:
178 # Code from module getopt-gnu:
179 # Code from module getopt-gnu-tests:
180 # Code from module getopt-posix:
181 # Code from module getopt-posix-tests:
182 # Code from module getpagesize:
183 # Code from module getprogname:
184 # Code from module getprogname-tests:
185 # Code from module gettext-h:
186 # Code from module gettimeofday:
187 # Code from module gettimeofday-tests:
188 # Code from module git-version-gen:
189 # Code from module gitlog-to-changelog:
190 # Code from module gnu-web-doc-update:
191 # Code from module gnumakefile:
192 # Code from module gnupload:
193 # Code from module gpl-3.0:
194 # Code from module hard-locale:
195 # Code from module havelib:
196 # Code from module ignore-value:
197 # Code from module ignore-value-tests:
198 # Code from module include_next:
199 # Code from module intprops:
200 # Code from module intprops-tests:
201 # Code from module inttypes:
202 # Code from module inttypes-incomplete:
203 # Code from module inttypes-tests:
204 # Code from module isblank:
205 # Code from module isblank-tests:
206 # Code from module isnand-nolibm:
207 # Code from module isnand-nolibm-tests:
208 # Code from module isnanf-nolibm:
209 # Code from module isnanf-nolibm-tests:
210 # Code from module isnanl-nolibm:
211 # Code from module isnanl-nolibm-tests:
212 # Code from module langinfo:
213 # Code from module langinfo-c++-tests:
214 # Code from module langinfo-tests:
215 # Code from module largefile:
216 AC_REQUIRE([AC_SYS_LARGEFILE])
217 # Code from module libsigsegv:
218 # Code from module limits-h:
219 # Code from module limits-h-tests:
220 # Code from module link:
221 # Code from module link-tests:
222 # Code from module linkedhash-list:
223 # Code from module linkedhash-list-tests:
224 # Code from module list:
225 # Code from module localcharset:
226 # Code from module locale:
227 # Code from module locale-c++-tests:
228 # Code from module locale-tests:
229 # Code from module localeconv:
230 # Code from module localeconv-tests:
231 # Code from module localename:
232 # Code from module localename-tests:
233 # Code from module lock:
234 # Code from module lseek:
235 # Code from module lseek-tests:
236 # Code from module lstat:
237 # Code from module lstat-tests:
238 # Code from module maintainer-makefile:
239 # Code from module malloc-posix:
240 # Code from module malloca:
241 # Code from module malloca-tests:
242 # Code from module manywarnings:
243 # Code from module math:
244 # Code from module math-c++-tests:
245 # Code from module math-tests:
246 # Code from module mbrtowc:
247 # Code from module mbrtowc-tests:
248 # Code from module mbsinit:
249 # Code from module mbsinit-tests:
250 # Code from module mbtowc:
251 # Code from module memchr:
252 # Code from module memchr-tests:
253 # Code from module memchr2:
254 # Code from module memchr2-tests:
255 # Code from module minmax:
256 # Code from module mkdtemp:
257 # Code from module mkstemp:
258 # Code from module msvc-inval:
259 # Code from module msvc-nothrow:
260 # Code from module multiarch:
261 # Code from module nl_langinfo:
262 # Code from module nl_langinfo-tests:
263 # Code from module nocrash:
264 # Code from module obstack:
265 # Code from module open:
266 # Code from module open-tests:
267 # Code from module opendir:
268 # Code from module oset:
269 # Code from module pathmax:
270 # Code from module pathmax-tests:
271 # Code from module pipe2:
272 # Code from module pipe2-safer:
273 # Code from module pipe2-tests:
274 # Code from module posix_spawn-internal:
275 # Code from module posix_spawn_file_actions_addclose:
276 # Code from module posix_spawn_file_actions_addclose-tests:
277 # Code from module posix_spawn_file_actions_adddup2:
278 # Code from module posix_spawn_file_actions_adddup2-tests:
279 # Code from module posix_spawn_file_actions_addopen:
280 # Code from module posix_spawn_file_actions_addopen-tests:
281 # Code from module posix_spawn_file_actions_destroy:
282 # Code from module posix_spawn_file_actions_init:
283 # Code from module posix_spawnattr_destroy:
284 # Code from module posix_spawnattr_init:
285 # Code from module posix_spawnattr_setflags:
286 # Code from module posix_spawnattr_setsigmask:
287 # Code from module posix_spawnp:
288 # Code from module posix_spawnp-tests:
289 # Code from module printf-frexp:
290 # Code from module printf-frexp-tests:
291 # Code from module printf-frexpl:
292 # Code from module printf-frexpl-tests:
293 # Code from module printf-safe:
294 # Code from module progname:
295 # Code from module putenv:
296 # Code from module quotearg:
297 # Code from module quotearg-simple:
298 # Code from module quotearg-simple-tests:
299 # Code from module raise:
300 # Code from module raise-tests:
301 # Code from module rawmemchr:
302 # Code from module rawmemchr-tests:
303 # Code from module readdir:
304 # Code from module readlink:
305 # Code from module readlink-tests:
306 # Code from module regex:
307 # Code from module regex-tests:
308 # Code from module rename:
309 # Code from module rename-tests:
310 # Code from module rmdir:
311 # Code from module rmdir-tests:
312 # Code from module same-inode:
313 # Code from module sched:
314 # Code from module sched-tests:
315 # Code from module secure_getenv:
316 # Code from module setenv:
317 # Code from module setenv-tests:
318 # Code from module setlocale:
319 # Code from module setlocale-tests:
320 # Code from module sigaction:
321 # Code from module sigaction-tests:
322 # Code from module signal-h:
323 # Code from module signal-h-c++-tests:
324 # Code from module signal-h-tests:
325 # Code from module signbit:
326 # Code from module signbit-tests:
327 # Code from module sigpipe:
328 # Code from module sigpipe-tests:
329 # Code from module sigprocmask:
330 # Code from module sigprocmask-tests:
331 # Code from module size_max:
332 # Code from module sleep:
333 # Code from module sleep-tests:
334 # Code from module snippet/_Noreturn:
335 # Code from module snippet/arg-nonnull:
336 # Code from module snippet/c++defs:
337 # Code from module snippet/unused-parameter:
338 # Code from module snippet/warn-on-use:
339 # Code from module snprintf:
340 # Code from module snprintf-tests:
341 # Code from module spawn:
342 # Code from module spawn-c++-tests:
343 # Code from module spawn-pipe:
344 # Code from module spawn-pipe-tests:
345 # Code from module spawn-tests:
346 # Code from module ssize_t:
347 # Code from module stat:
348 # Code from module stat-tests:
349 # Code from module stdalign:
350 # Code from module stdalign-tests:
351 # Code from module stdarg:
352 dnl Some compilers (e.g., AIX 5.3 cc) need to be in c99 mode
353 dnl for the builtin va_copy to work. With Autoconf 2.60 or later,
354 dnl gl_PROG_CC_C99 arranges for this. With older Autoconf gl_PROG_CC_C99
355 dnl shouldn't hurt, though installers are on their own to set c99 mode.
357 # Code from module stdbool:
358 # Code from module stdbool-tests:
359 # Code from module stddef:
360 # Code from module stddef-tests:
361 # Code from module stdint:
362 # Code from module stdint-tests:
363 # Code from module stdio:
364 # Code from module stdio-c++-tests:
365 # Code from module stdio-tests:
366 # Code from module stdlib:
367 # Code from module stdlib-c++-tests:
368 # Code from module stdlib-safer:
369 # Code from module stdlib-tests:
370 # Code from module strchrnul:
371 # Code from module strchrnul-tests:
372 # Code from module strdup-posix:
373 # Code from module streq:
374 # Code from module strerror:
375 # Code from module strerror-override:
376 # Code from module strerror-tests:
377 # Code from module string:
378 # Code from module string-c++-tests:
379 # Code from module string-tests:
380 # Code from module strndup:
381 # Code from module strnlen:
382 # Code from module strnlen-tests:
383 # Code from module strsignal:
384 # Code from module strsignal-tests:
385 # Code from module strstr:
386 # Code from module strstr-simple:
387 # Code from module strstr-tests:
388 # Code from module strtod:
389 # Code from module strtod-tests:
390 # Code from module symlink:
391 # Code from module symlink-tests:
392 # Code from module sys_stat:
393 # Code from module sys_stat-c++-tests:
394 # Code from module sys_stat-tests:
395 # Code from module sys_time:
396 # Code from module sys_time-c++-tests:
397 # Code from module sys_time-tests:
398 # Code from module sys_types:
399 # Code from module sys_types-c++-tests:
400 # Code from module sys_types-tests:
401 # Code from module sys_wait:
402 # Code from module sys_wait-c++-tests:
403 # Code from module sys_wait-tests:
404 # Code from module tempname:
405 # Code from module test-framework-sh:
406 # Code from module test-framework-sh-tests:
407 # Code from module threadlib:
409 # Code from module time:
410 # Code from module time-c++-tests:
411 # Code from module time-tests:
412 # Code from module tls:
413 # Code from module tmpdir:
414 # Code from module unistd:
415 # Code from module unistd-c++-tests:
416 # Code from module unistd-safer:
417 # Code from module unistd-safer-tests:
418 # Code from module unistd-tests:
419 # Code from module unlocked-io:
420 # Code from module unsetenv:
421 # Code from module unsetenv-tests:
422 # Code from module update-copyright:
423 # Code from module update-copyright-tests:
424 # Code from module useless-if-before-free:
425 # Code from module vasnprintf:
426 # Code from module vasnprintf-tests:
427 # Code from module vasprintf:
428 # Code from module vasprintf-posix:
429 # Code from module vasprintf-posix-tests:
430 # Code from module vasprintf-tests:
431 # Code from module vc-list-files:
432 # Code from module vc-list-files-tests:
433 # Code from module verify:
434 # Code from module verify-tests:
435 # Code from module verror:
436 # Code from module version-etc:
437 # Code from module version-etc-fsf:
438 # Code from module version-etc-tests:
439 # Code from module wait-process:
440 # Code from module waitpid:
441 # Code from module warnings:
442 # Code from module wchar:
443 # Code from module wchar-c++-tests:
444 # Code from module wchar-tests:
445 # Code from module wcrtomb:
446 # Code from module wcrtomb-tests:
447 # Code from module wctob:
448 # Code from module wctomb:
449 # Code from module wctype-h:
450 # Code from module wctype-h-c++-tests:
451 # Code from module wctype-h-tests:
452 # Code from module write:
453 # Code from module write-tests:
454 # Code from module xalloc:
455 # Code from module xalloc-die:
456 # Code from module xalloc-die-tests:
457 # Code from module xalloc-oversized:
458 # Code from module xlist:
459 # Code from module xmalloca:
460 # Code from module xoset:
461 # Code from module xprintf:
462 # Code from module xsize:
463 # Code from module xstrndup:
464 # Code from module xvasprintf:
465 # Code from module xvasprintf-posix:
466 # Code from module xvasprintf-tests:
469 # This macro should be invoked from ./configure.ac, in the section
470 # "Check for header files, types and library functions".
473 AM_CONDITIONAL([GL_COND_LIBTOOL], [false])
474 gl_cond_libtool=false
478 m4_pushdef([AC_LIBOBJ], m4_defn([M4_LIBOBJ]))
479 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([M4_REPLACE_FUNCS]))
480 m4_pushdef([AC_LIBSOURCES], m4_defn([M4_LIBSOURCES]))
481 m4_pushdef([M4_LIBSOURCES_LIST], [])
482 m4_pushdef([M4_LIBSOURCES_DIR], [])
488 if test $HAVE_BTOWC = 0 || test $REPLACE_BTOWC = 1; then
492 gl_WCHAR_MODULE_INDICATOR([btowc])
496 if test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1; then
497 AC_LIBOBJ([canonicalize-lgpl])
499 gl_MODULE_INDICATOR([canonicalize-lgpl])
500 gl_STDLIB_MODULE_INDICATOR([canonicalize_file_name])
501 gl_STDLIB_MODULE_INDICATOR([realpath])
502 gl_UNISTD_MODULE_INDICATOR([chdir])
503 AC_DEFINE([SIGNAL_SAFE_LIST], [1], [Define if lists must be signal-safe.])
504 gl_MODULE_INDICATOR_FOR_TESTS([cloexec])
506 if test $REPLACE_CLOSE = 1; then
509 gl_UNISTD_MODULE_INDICATOR([close])
511 gl_MODULE_INDICATOR([close-stream])
517 gl_MODULE_INDICATOR([dirname])
521 if test $HAVE_DUP2 = 0 || test $REPLACE_DUP2 = 1; then
525 gl_UNISTD_MODULE_INDICATOR([dup2])
527 gl_UNISTD_MODULE_INDICATOR([environ])
530 if test $ac_cv_lib_error_at_line = no; then
534 m4_ifdef([AM_XGETTEXT_OPTION],
535 [AM_][XGETTEXT_OPTION([--flag=error:3:c-format])
536 AM_][XGETTEXT_OPTION([--flag=error_at_line:5:c-format])])
538 AC_REQUIRE([gl_EXTERN_INLINE])
541 if test $REPLACE_FCLOSE = 1; then
544 gl_STDIO_MODULE_INDICATOR([fclose])
546 if test $HAVE_FCNTL = 0 || test $REPLACE_FCNTL = 1; then
549 gl_FCNTL_MODULE_INDICATOR([fcntl])
551 gl_MODULE_INDICATOR([fd-safer-flag])
553 if test $REPLACE_FFLUSH = 1; then
557 gl_MODULE_INDICATOR([fflush])
558 gl_STDIO_MODULE_INDICATOR([fflush])
560 gl_MODULE_INDICATOR([filenamecat])
561 gl_FILE_NAME_CONCAT_LGPL
563 if test $REPLACE_FLOAT_LDBL = 1; then
566 if test $REPLACE_ITOLD = 1; then
570 if test $REPLACE_FOPEN = 1; then
574 gl_STDIO_MODULE_INDICATOR([fopen])
575 gl_MODULE_INDICATOR([fopen-safer])
577 if test $gl_cv_func___fpending = no; then
578 AC_LIBOBJ([fpending])
581 if test $HAVE_FPURGE = 0 || test $REPLACE_FPURGE = 1; then
584 gl_STDIO_MODULE_INDICATOR([fpurge])
586 if test $ac_cv_func___freadahead = no; then
587 AC_LIBOBJ([freadahead])
590 gl_FUNC_FREXP_NO_LIBM
591 if test $gl_func_frexp_no_libm != yes; then
594 gl_MATH_MODULE_INDICATOR([frexp])
595 gl_FUNC_FREXPL_NO_LIBM
596 if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl_no_libm = no; then
599 gl_MATH_MODULE_INDICATOR([frexpl])
601 if test $REPLACE_FSEEK = 1; then
604 gl_STDIO_MODULE_INDICATOR([fseek])
606 if test $HAVE_FSEEKO = 0 || test $REPLACE_FSEEKO = 1; then
610 gl_STDIO_MODULE_INDICATOR([fseeko])
612 if test $REPLACE_FSTAT = 1; then
616 gl_SYS_STAT_MODULE_INDICATOR([fstat])
618 if test $REPLACE_FTELL = 1; then
621 gl_STDIO_MODULE_INDICATOR([ftell])
623 if test $HAVE_FTELLO = 0 || test $REPLACE_FTELLO = 1; then
627 gl_STDIO_MODULE_INDICATOR([ftello])
628 gl_FUNC_GETDTABLESIZE
629 if test $HAVE_GETDTABLESIZE = 0 || test $REPLACE_GETDTABLESIZE = 1; then
630 AC_LIBOBJ([getdtablesize])
631 gl_PREREQ_GETDTABLESIZE
633 gl_UNISTD_MODULE_INDICATOR([getdtablesize])
635 if test $REPLACE_GETOPT = 1; then
639 dnl Arrange for unistd.h to include getopt.h.
640 GNULIB_GL_M4_UNISTD_H_GETOPT=1
642 AC_SUBST([GNULIB_GL_M4_UNISTD_H_GETOPT])
644 if test $REPLACE_GETOPT = 1; then
648 dnl Arrange for unistd.h to include getopt.h.
649 GNULIB_GL_M4_UNISTD_H_GETOPT=1
651 AC_SUBST([GNULIB_GL_M4_UNISTD_H_GETOPT])
654 AC_SUBST([LTLIBINTL])
656 if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
657 AC_LIBOBJ([gettimeofday])
658 gl_PREREQ_GETTIMEOFDAY
660 gl_SYS_TIME_MODULE_INDICATOR([gettimeofday])
661 # Autoconf 2.61a.99 and earlier don't support linking a file only
662 # in VPATH builds. But since GNUmakefile is for maintainer use
663 # only, it does not matter if we skip the link with older autoconf.
664 # Automake 1.10.1 and earlier try to remove GNUmakefile in non-VPATH
665 # builds, so use a shell variable to bypass this.
666 GNUmakefile=GNUmakefile
667 m4_if(m4_version_compare([2.61a.100],
668 m4_defn([m4_PACKAGE_VERSION])), [1], [],
669 [AC_CONFIG_LINKS([$GNUmakefile:$GNUmakefile], [],
670 [GNUmakefile=$GNUmakefile])])
672 gl_FUNC_ISNAND_NO_LIBM
673 if test $gl_func_isnand_no_libm != yes; then
677 gl_FUNC_ISNANF_NO_LIBM
678 if test $gl_func_isnanf_no_libm != yes; then
682 gl_FUNC_ISNANL_NO_LIBM
683 if test $gl_func_isnanl_no_libm != yes; then
688 AC_REQUIRE([gl_LARGEFILE])
692 LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\""
693 AC_SUBST([LOCALCHARSET_TESTS_ENVIRONMENT])
696 if test $REPLACE_LOCALECONV = 1; then
697 AC_LIBOBJ([localeconv])
700 gl_LOCALE_MODULE_INDICATOR([localeconv])
702 gl_MODULE_INDICATOR([lock])
704 if test $REPLACE_LSEEK = 1; then
707 gl_UNISTD_MODULE_INDICATOR([lseek])
709 if test $REPLACE_LSTAT = 1; then
713 gl_SYS_STAT_MODULE_INDICATOR([lstat])
714 AC_CONFIG_COMMANDS_PRE([m4_ifdef([AH_HEADER],
715 [AC_SUBST([CONFIG_INCLUDE], m4_defn([AH_HEADER]))])])
716 AC_REQUIRE([AC_PROG_SED])
718 if test $REPLACE_MALLOC = 1; then
721 gl_STDLIB_MODULE_INDICATOR([malloc-posix])
725 if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
729 gl_WCHAR_MODULE_INDICATOR([mbrtowc])
731 if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
735 gl_WCHAR_MODULE_INDICATOR([mbsinit])
737 if test $REPLACE_MBTOWC = 1; then
741 gl_STDLIB_MODULE_INDICATOR([mbtowc])
743 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
747 gl_STRING_MODULE_INDICATOR([memchr])
750 if test $HAVE_MKDTEMP = 0; then
754 gl_STDLIB_MODULE_INDICATOR([mkdtemp])
756 if test $HAVE_MKSTEMP = 0 || test $REPLACE_MKSTEMP = 1; then
760 gl_STDLIB_MODULE_INDICATOR([mkstemp])
761 AC_REQUIRE([gl_MSVC_INVAL])
762 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
763 AC_LIBOBJ([msvc-inval])
765 AC_REQUIRE([gl_MSVC_NOTHROW])
766 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
767 AC_LIBOBJ([msvc-nothrow])
771 if test $HAVE_NL_LANGINFO = 0 || test $REPLACE_NL_LANGINFO = 1; then
772 AC_LIBOBJ([nl_langinfo])
774 gl_LANGINFO_MODULE_INDICATOR([nl_langinfo])
776 dnl Note: AC_FUNC_OBSTACK does AC_LIBSOURCES([obstack.h, obstack.c]).
778 if test $REPLACE_OPEN = 1; then
782 gl_FCNTL_MODULE_INDICATOR([open])
785 gl_UNISTD_MODULE_INDICATOR([pipe2])
786 gl_MODULE_INDICATOR([pipe2-safer])
787 gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE
788 if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE = 1; then
789 AC_LIBOBJ([spawn_faction_addclose])
791 gl_SPAWN_MODULE_INDICATOR([posix_spawn_file_actions_addclose])
792 gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2
793 if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2 = 1; then
794 AC_LIBOBJ([spawn_faction_adddup2])
796 gl_SPAWN_MODULE_INDICATOR([posix_spawn_file_actions_adddup2])
797 gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN
798 if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN = 1; then
799 AC_LIBOBJ([spawn_faction_addopen])
801 gl_SPAWN_MODULE_INDICATOR([posix_spawn_file_actions_addopen])
803 if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1; then
804 AC_LIBOBJ([spawn_faction_destroy])
806 gl_SPAWN_MODULE_INDICATOR([posix_spawn_file_actions_destroy])
808 if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1; then
809 AC_LIBOBJ([spawn_faction_init])
811 gl_SPAWN_MODULE_INDICATOR([posix_spawn_file_actions_init])
813 if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1; then
814 AC_LIBOBJ([spawnattr_destroy])
816 gl_SPAWN_MODULE_INDICATOR([posix_spawnattr_destroy])
818 if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1; then
819 AC_LIBOBJ([spawnattr_init])
821 gl_SPAWN_MODULE_INDICATOR([posix_spawnattr_init])
823 if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1; then
824 AC_LIBOBJ([spawnattr_setflags])
826 gl_SPAWN_MODULE_INDICATOR([posix_spawnattr_setflags])
828 if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1; then
829 AC_LIBOBJ([spawnattr_setsigmask])
831 gl_SPAWN_MODULE_INDICATOR([posix_spawnattr_setsigmask])
833 if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1; then
836 gl_PREREQ_POSIX_SPAWN_INTERNAL
838 gl_SPAWN_MODULE_INDICATOR([posix_spawnp])
840 gl_FUNC_PRINTF_FREXPL
841 m4_divert_text([INIT_PREPARE], [gl_printf_safe=yes])
842 AC_CHECK_DECLS([program_invocation_name], [], [], [#include <errno.h>])
843 AC_CHECK_DECLS([program_invocation_short_name], [], [], [#include <errno.h>])
846 if test $HAVE_RAISE = 0 || test $REPLACE_RAISE = 1; then
850 gl_SIGNAL_MODULE_INDICATOR([raise])
852 if test $HAVE_RAWMEMCHR = 0; then
853 AC_LIBOBJ([rawmemchr])
856 gl_STRING_MODULE_INDICATOR([rawmemchr])
858 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
859 AC_LIBOBJ([readlink])
862 gl_UNISTD_MODULE_INDICATOR([readlink])
864 if test $ac_use_included_regex = yes; then
869 if test $REPLACE_RENAME = 1; then
872 gl_STDIO_MODULE_INDICATOR([rename])
874 if test $REPLACE_RMDIR = 1; then
877 gl_UNISTD_MODULE_INDICATOR([rmdir])
879 gl_FUNC_SECURE_GETENV
880 if test $HAVE_SECURE_GETENV = 0; then
881 AC_LIBOBJ([secure_getenv])
882 gl_PREREQ_SECURE_GETENV
884 gl_STDLIB_MODULE_INDICATOR([secure_getenv])
886 if test $HAVE_SIGACTION = 0; then
887 AC_LIBOBJ([sigaction])
890 gl_SIGNAL_MODULE_INDICATOR([sigaction])
893 if test $REPLACE_SIGNBIT = 1; then
894 AC_LIBOBJ([signbitf])
895 AC_LIBOBJ([signbitd])
896 AC_LIBOBJ([signbitl])
898 gl_MATH_MODULE_INDICATOR([signbit])
900 dnl Define the C macro GNULIB_SIGPIPE to 1.
901 gl_MODULE_INDICATOR([sigpipe])
902 dnl Define the substituted variable GNULIB_SIGNAL_H_SIGPIPE to 1.
903 AC_REQUIRE([gl_SIGNAL_H_DEFAULTS])
904 GNULIB_SIGNAL_H_SIGPIPE=1
905 dnl Define the substituted variable GNULIB_STDIO_H_SIGPIPE to 1.
906 AC_REQUIRE([gl_STDIO_H_DEFAULTS])
907 AC_REQUIRE([gl_ASM_SYMBOL_PREFIX])
908 GNULIB_STDIO_H_SIGPIPE=1
909 dnl Define the substituted variable GNULIB_UNISTD_H_SIGPIPE to 1.
910 AC_REQUIRE([gl_UNISTD_H_DEFAULTS])
911 GNULIB_UNISTD_H_SIGPIPE=1
913 if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
914 AC_LIBOBJ([sigprocmask])
915 gl_PREREQ_SIGPROCMASK
917 gl_SIGNAL_MODULE_INDICATOR([sigprocmask])
920 gl_STDIO_MODULE_INDICATOR([snprintf])
921 gl_MODULE_INDICATOR([snprintf])
926 if test $REPLACE_STAT = 1; then
930 gl_SYS_STAT_MODULE_INDICATOR([stat])
938 if test $HAVE_STRCHRNUL = 0 || test $REPLACE_STRCHRNUL = 1; then
939 AC_LIBOBJ([strchrnul])
942 gl_STRING_MODULE_INDICATOR([strchrnul])
944 if test $REPLACE_STRERROR = 1; then
945 AC_LIBOBJ([strerror])
947 gl_MODULE_INDICATOR([strerror])
948 gl_STRING_MODULE_INDICATOR([strerror])
949 AC_REQUIRE([gl_HEADER_ERRNO_H])
950 AC_REQUIRE([gl_FUNC_STRERROR_0])
951 if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then
952 AC_LIBOBJ([strerror-override])
953 gl_PREREQ_SYS_H_WINSOCK2
957 if test $HAVE_STRNDUP = 0 || test $REPLACE_STRNDUP = 1; then
960 gl_STRING_MODULE_INDICATOR([strndup])
962 if test $HAVE_DECL_STRNLEN = 0 || test $REPLACE_STRNLEN = 1; then
966 gl_STRING_MODULE_INDICATOR([strnlen])
968 if test $HAVE_STRSIGNAL = 0 || test $REPLACE_STRSIGNAL = 1; then
969 AC_LIBOBJ([strsignal])
972 gl_STRING_MODULE_INDICATOR([strsignal])
974 if test $REPLACE_STRSTR = 1; then
977 gl_FUNC_STRSTR_SIMPLE
978 if test $REPLACE_STRSTR = 1; then
981 gl_STRING_MODULE_INDICATOR([strstr])
983 if test $HAVE_STRTOD = 0 || test $REPLACE_STRTOD = 1; then
987 gl_STDLIB_MODULE_INDICATOR([strtod])
1003 gl_FUNC_GLIBC_UNLOCKED_IO
1006 gl_STDIO_MODULE_INDICATOR([vasprintf])
1007 m4_ifdef([AM_XGETTEXT_OPTION],
1008 [AM_][XGETTEXT_OPTION([--flag=asprintf:2:c-format])
1009 AM_][XGETTEXT_OPTION([--flag=vasprintf:2:c-format])])
1010 gl_FUNC_VASPRINTF_POSIX
1011 m4_ifdef([AM_XGETTEXT_OPTION],
1012 [AM_][XGETTEXT_OPTION([--flag=verror:3:c-format])
1013 AM_][XGETTEXT_OPTION([--flag=verror_at_line:5:c-format])])
1017 if test $HAVE_WAITPID = 0; then
1018 AC_LIBOBJ([waitpid])
1020 gl_SYS_WAIT_MODULE_INDICATOR([waitpid])
1023 if test $HAVE_WCRTOMB = 0 || test $REPLACE_WCRTOMB = 1; then
1024 AC_LIBOBJ([wcrtomb])
1027 gl_WCHAR_MODULE_INDICATOR([wcrtomb])
1030 m4_ifdef([AM_XGETTEXT_OPTION],
1031 [AM_][XGETTEXT_OPTION([--flag=xprintf:1:c-format])
1032 AM_][XGETTEXT_OPTION([--flag=xvprintf:1:c-format])
1033 AM_][XGETTEXT_OPTION([--flag=xfprintf:2:c-format])
1034 AM_][XGETTEXT_OPTION([--flag=xvfprintf:2:c-format])])
1038 m4_ifdef([AM_XGETTEXT_OPTION],
1039 [AM_][XGETTEXT_OPTION([--flag=xasprintf:1:c-format])])
1040 # End of code from modules
1041 m4_ifval(M4_LIBSOURCES_LIST, [
1042 m4_syscmd([test ! -d ]m4_defn([M4_LIBSOURCES_DIR])[ ||
1043 for gl_file in ]M4_LIBSOURCES_LIST[ ; do
1044 if test ! -r ]m4_defn([M4_LIBSOURCES_DIR])[/$gl_file ; then
1045 echo "missing file ]m4_defn([M4_LIBSOURCES_DIR])[/$gl_file" >&2
1049 m4_if(m4_sysval, [0], [],
1050 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
1052 m4_popdef([M4_LIBSOURCES_DIR])
1053 m4_popdef([M4_LIBSOURCES_LIST])
1054 m4_popdef([AC_LIBSOURCES])
1055 m4_popdef([AC_REPLACE_FUNCS])
1056 m4_popdef([AC_LIBOBJ])
1057 AC_CONFIG_COMMANDS_PRE([
1060 if test -n "$M4_LIBOBJS"; then
1061 # Remove the extension.
1062 sed_drop_objext='s/\.o$//;s/\.obj$//'
1063 for i in `for i in $M4_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
1064 M4_libobjs="$M4_libobjs $i.$ac_objext"
1065 M4_ltlibobjs="$M4_ltlibobjs $i.lo"
1068 AC_SUBST([M4_LIBOBJS], [$M4_libobjs])
1069 AC_SUBST([M4_LTLIBOBJS], [$M4_ltlibobjs])
1073 m4_pushdef([AC_LIBOBJ], m4_defn([M4tests_LIBOBJ]))
1074 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([M4tests_REPLACE_FUNCS]))
1075 m4_pushdef([AC_LIBSOURCES], m4_defn([M4tests_LIBSOURCES]))
1076 m4_pushdef([M4tests_LIBSOURCES_LIST], [])
1077 m4_pushdef([M4tests_LIBSOURCES_DIR], [])
1079 gl_source_base='tests'
1081 M4tests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS
1082 changequote([, ])dnl
1083 AC_SUBST([M4tests_WITNESS])
1084 gl_module_indicator_condition=$M4tests_WITNESS
1085 m4_pushdef([gl_MODULE_INDICATOR_CONDITION], [$gl_module_indicator_condition])
1086 gl_PROG_ANSI_CXX([CXX], [ANSICXX])
1092 if test $HAVE_CLOSEDIR = 0 || test $REPLACE_CLOSEDIR = 1; then
1093 AC_LIBOBJ([closedir])
1095 gl_DIRENT_MODULE_INDICATOR([closedir])
1099 if test $ac_cv_func_dirfd = no && test $gl_cv_func_dirfd_macro = no \
1100 || test $REPLACE_DIRFD = 1; then
1104 gl_DIRENT_MODULE_INDICATOR([dirfd])
1106 if test $REPLACE_DUP = 1; then
1110 gl_UNISTD_MODULE_INDICATOR([dup])
1112 if test $REPLACE_FDOPEN = 1; then
1116 gl_STDIO_MODULE_INDICATOR([fdopen])
1117 AC_C_FLEXIBLE_ARRAY_MEMBER
1118 gl_FUNC_UNGETC_WORKS
1119 gl_FUNC_UNGETC_WORKS
1120 gl_FUNC_UNGETC_WORKS
1121 gl_FUNC_UNGETC_WORKS
1123 if test $REPLACE_GETCWD = 1; then
1124 AC_LIBOBJ([getcwd-lgpl])
1126 gl_UNISTD_MODULE_INDICATOR([getcwd])
1128 if test $REPLACE_GETPAGESIZE = 1; then
1129 AC_LIBOBJ([getpagesize])
1131 gl_UNISTD_MODULE_INDICATOR([getpagesize])
1133 gl_INTTYPES_INCOMPLETE
1135 if test $HAVE_ISBLANK = 0; then
1136 AC_LIBOBJ([isblank])
1138 gl_CTYPE_MODULE_INDICATOR([isblank])
1139 gl_DOUBLE_EXPONENT_LOCATION
1140 gl_FLOAT_EXPONENT_LOCATION
1141 gl_LONG_DOUBLE_EXPONENT_LOCATION
1142 AC_REQUIRE([gl_LONG_DOUBLE_VS_DOUBLE])
1144 if test $HAVE_LINK = 0 || test $REPLACE_LINK = 1; then
1147 gl_UNISTD_MODULE_INDICATOR([link])
1148 AC_CHECK_FUNCS_ONCE([newlocale])
1150 AC_CHECK_FUNCS_ONCE([newlocale])
1156 dnl Check for prerequisites for memory fence checks.
1158 AC_CHECK_HEADERS_ONCE([sys/mman.h])
1159 AC_CHECK_FUNCS_ONCE([mprotect])
1161 AC_CHECK_HEADERS_ONCE([sys/mman.h])
1162 AC_CHECK_FUNCS_ONCE([mprotect])
1166 if test $HAVE_OPENDIR = 0 || test $REPLACE_OPENDIR = 1; then
1167 AC_LIBOBJ([opendir])
1169 gl_DIRENT_MODULE_INDICATOR([opendir])
1170 AC_EGREP_CPP([notposix], [[
1171 #if defined _MSC_VER || defined __MINGW32__
1175 [posix_spawn_ported=no],
1176 [posix_spawn_ported=yes])
1177 AM_CONDITIONAL([POSIX_SPAWN_PORTED], [test $posix_spawn_ported = yes])
1179 if test $REPLACE_PUTENV = 1; then
1183 gl_STDLIB_MODULE_INDICATOR([putenv])
1184 dnl Check for prerequisites for memory fence checks.
1185 dnl FIXME: zerosize-ptr.h requires these: make a module for it
1187 AC_CHECK_HEADERS_ONCE([sys/mman.h])
1188 AC_CHECK_FUNCS_ONCE([mprotect])
1189 dnl Check for prerequisites for memory fence checks.
1191 AC_CHECK_HEADERS_ONCE([sys/mman.h])
1192 AC_CHECK_FUNCS_ONCE([mprotect])
1194 if test $HAVE_READDIR = 0; then
1195 AC_LIBOBJ([readdir])
1197 gl_DIRENT_MODULE_INDICATOR([readdir])
1199 if test $HAVE_SETENV = 0 || test $REPLACE_SETENV = 1; then
1202 gl_STDLIB_MODULE_INDICATOR([setenv])
1204 if test $REPLACE_SETLOCALE = 1; then
1205 AC_LIBOBJ([setlocale])
1208 gl_LOCALE_MODULE_INDICATOR([setlocale])
1213 AC_REQUIRE([gl_FLOAT_EXPONENT_LOCATION])
1214 AC_REQUIRE([gl_DOUBLE_EXPONENT_LOCATION])
1215 AC_REQUIRE([gl_LONG_DOUBLE_EXPONENT_LOCATION])
1217 if test $HAVE_SLEEP = 0 || test $REPLACE_SLEEP = 1; then
1220 gl_UNISTD_MODULE_INDICATOR([sleep])
1221 AC_CHECK_DECLS_ONCE([alarm])
1223 AC_REQUIRE([gt_TYPE_WCHAR_T])
1224 AC_REQUIRE([gt_TYPE_WINT_T])
1225 gl_FUNC_STRDUP_POSIX
1226 if test $ac_cv_func_strdup = no || test $REPLACE_STRDUP = 1; then
1230 gl_STRING_MODULE_INDICATOR([strdup])
1231 dnl Check for prerequisites for memory fence checks.
1233 AC_CHECK_HEADERS_ONCE([sys/mman.h])
1234 AC_CHECK_FUNCS_ONCE([mprotect])
1235 AC_CHECK_DECLS_ONCE([alarm])
1237 AC_CHECK_HEADERS_ONCE([sys/mman.h])
1238 AC_CHECK_FUNCS_ONCE([mprotect])
1240 if test $HAVE_SYMLINK = 0 || test $REPLACE_SYMLINK = 1; then
1241 AC_LIBOBJ([symlink])
1243 gl_UNISTD_MODULE_INDICATOR([symlink])
1245 if test $HAVE_UNSETENV = 0 || test $REPLACE_UNSETENV = 1; then
1246 AC_LIBOBJ([unsetenv])
1249 gl_STDLIB_MODULE_INDICATOR([unsetenv])
1250 abs_aux_dir=`cd "$ac_aux_dir"; pwd`
1251 AC_SUBST([abs_aux_dir])
1252 AC_REQUIRE([gl_LONG_DOUBLE_VS_DOUBLE])
1253 abs_aux_dir=`cd "$ac_aux_dir"; pwd`
1254 AC_SUBST([abs_aux_dir])
1260 if test $HAVE_WCTOB = 0 || test $REPLACE_WCTOB = 1; then
1264 gl_WCHAR_MODULE_INDICATOR([wctob])
1266 if test $REPLACE_WCTOMB = 1; then
1270 gl_STDLIB_MODULE_INDICATOR([wctomb])
1272 if test $REPLACE_WRITE = 1; then
1276 gl_UNISTD_MODULE_INDICATOR([write])
1277 m4_popdef([gl_MODULE_INDICATOR_CONDITION])
1278 m4_ifval(M4tests_LIBSOURCES_LIST, [
1279 m4_syscmd([test ! -d ]m4_defn([M4tests_LIBSOURCES_DIR])[ ||
1280 for gl_file in ]M4tests_LIBSOURCES_LIST[ ; do
1281 if test ! -r ]m4_defn([M4tests_LIBSOURCES_DIR])[/$gl_file ; then
1282 echo "missing file ]m4_defn([M4tests_LIBSOURCES_DIR])[/$gl_file" >&2
1286 m4_if(m4_sysval, [0], [],
1287 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
1289 m4_popdef([M4tests_LIBSOURCES_DIR])
1290 m4_popdef([M4tests_LIBSOURCES_LIST])
1291 m4_popdef([AC_LIBSOURCES])
1292 m4_popdef([AC_REPLACE_FUNCS])
1293 m4_popdef([AC_LIBOBJ])
1294 AC_CONFIG_COMMANDS_PRE([
1297 if test -n "$M4tests_LIBOBJS"; then
1298 # Remove the extension.
1299 sed_drop_objext='s/\.o$//;s/\.obj$//'
1300 for i in `for i in $M4tests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
1301 M4tests_libobjs="$M4tests_libobjs $i.$ac_objext"
1302 M4tests_ltlibobjs="$M4tests_ltlibobjs $i.lo"
1305 AC_SUBST([M4tests_LIBOBJS], [$M4tests_libobjs])
1306 AC_SUBST([M4tests_LTLIBOBJS], [$M4tests_ltlibobjs])
1308 LIBM4_LIBDEPS="$gl_libdeps"
1309 AC_SUBST([LIBM4_LIBDEPS])
1310 LIBM4_LTLIBDEPS="$gl_ltlibdeps"
1311 AC_SUBST([LIBM4_LTLIBDEPS])
1312 LIBTESTS_LIBDEPS="$gltests_libdeps"
1313 AC_SUBST([LIBTESTS_LIBDEPS])
1316 # Like AC_LIBOBJ, except that the module name goes
1317 # into M4_LIBOBJS instead of into LIBOBJS.
1318 AC_DEFUN([M4_LIBOBJ], [
1319 AS_LITERAL_IF([$1], [M4_LIBSOURCES([$1.c])])dnl
1320 M4_LIBOBJS="$M4_LIBOBJS $1.$ac_objext"
1323 # Like AC_REPLACE_FUNCS, except that the module name goes
1324 # into M4_LIBOBJS instead of into LIBOBJS.
1325 AC_DEFUN([M4_REPLACE_FUNCS], [
1326 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
1327 AC_CHECK_FUNCS([$1], , [M4_LIBOBJ($ac_func)])
1330 # Like AC_LIBSOURCES, except the directory where the source file is
1331 # expected is derived from the gnulib-tool parameterization,
1332 # and alloca is special cased (for the alloca-opt module).
1333 # We could also entirely rely on EXTRA_lib..._SOURCES.
1334 AC_DEFUN([M4_LIBSOURCES], [
1335 m4_foreach([_gl_NAME], [$1], [
1336 m4_if(_gl_NAME, [alloca.c], [], [
1337 m4_define([M4_LIBSOURCES_DIR], [lib])
1338 m4_append([M4_LIBSOURCES_LIST], _gl_NAME, [ ])
1343 # Like AC_LIBOBJ, except that the module name goes
1344 # into M4tests_LIBOBJS instead of into LIBOBJS.
1345 AC_DEFUN([M4tests_LIBOBJ], [
1346 AS_LITERAL_IF([$1], [M4tests_LIBSOURCES([$1.c])])dnl
1347 M4tests_LIBOBJS="$M4tests_LIBOBJS $1.$ac_objext"
1350 # Like AC_REPLACE_FUNCS, except that the module name goes
1351 # into M4tests_LIBOBJS instead of into LIBOBJS.
1352 AC_DEFUN([M4tests_REPLACE_FUNCS], [
1353 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
1354 AC_CHECK_FUNCS([$1], , [M4tests_LIBOBJ($ac_func)])
1357 # Like AC_LIBSOURCES, except the directory where the source file is
1358 # expected is derived from the gnulib-tool parameterization,
1359 # and alloca is special cased (for the alloca-opt module).
1360 # We could also entirely rely on EXTRA_lib..._SOURCES.
1361 AC_DEFUN([M4tests_LIBSOURCES], [
1362 m4_foreach([_gl_NAME], [$1], [
1363 m4_if(_gl_NAME, [alloca.c], [], [
1364 m4_define([M4tests_LIBSOURCES_DIR], [tests])
1365 m4_append([M4tests_LIBSOURCES_LIST], _gl_NAME, [ ])
1370 # This macro records the list of files which have been installed by
1371 # gnulib-tool and may be removed by future gnulib-tool invocations.
1372 AC_DEFUN([M4_FILE_LIST], [
1373 build-aux/announce-gen
1374 build-aux/config.rpath
1375 build-aux/do-release-commit-and-tag
1376 build-aux/gendocs.sh
1377 build-aux/git-version-gen
1378 build-aux/gitlog-to-changelog
1379 build-aux/gnu-web-doc-update
1381 build-aux/snippet/_Noreturn.h
1382 build-aux/snippet/arg-nonnull.h
1383 build-aux/snippet/c++defs.h
1384 build-aux/snippet/unused-parameter.h
1385 build-aux/snippet/warn-on-use.h
1386 build-aux/update-copyright
1387 build-aux/useless-if-before-free
1388 build-aux/vc-list-files
1390 doc/gendocs_template
1391 doc/gendocs_template_min
1410 lib/canonicalize-lgpl.c
1427 lib/dup-safer-flag.c
1447 lib/filenamecat-lgpl.c
1479 lib/gl_anyhash_list1.h
1480 lib/gl_anyhash_list2.h
1481 lib/gl_anylinked_list1.h
1482 lib/gl_anylinked_list2.h
1483 lib/gl_anytree_oset.h
1484 lib/gl_avltree_oset.c
1485 lib/gl_avltree_oset.h
1486 lib/gl_linkedhash_list.c
1487 lib/gl_linkedhash_list.h
1498 lib/glthread/threadlib.c
1524 lib/malloca.valgrind
1535 lib/memchr2.valgrind
1567 lib/rawmemchr.valgrind
1574 lib/regex_internal.c
1575 lib/regex_internal.h
1596 lib/spawn_faction_addclose.c
1597 lib/spawn_faction_adddup2.c
1598 lib/spawn_faction_addopen.c
1599 lib/spawn_faction_destroy.c
1600 lib/spawn_faction_init.c
1602 lib/spawnattr_destroy.c
1603 lib/spawnattr_init.c
1604 lib/spawnattr_setflags.c
1605 lib/spawnattr_setsigmask.c
1623 lib/strchrnul.valgrind
1625 lib/strerror-override.c
1626 lib/strerror-override.h
1655 lib/version-etc-fsf.c
1667 lib/xalloc-oversized.h
1682 m4/absolute-header.m4
1685 m4/asm-underscore.m4
1689 m4/builtin-expect.m4
1704 m4/double-slash-root.m4
1827 m4/signalblocking.m4
1870 m4/vasprintf-posix.m4
1897 tests/test-alignof.c
1898 tests/test-alloca-opt.c
1899 tests/test-array_list.c
1900 tests/test-array_oset.c
1901 tests/test-avltree_oset.c
1902 tests/test-binary-io.c
1903 tests/test-binary-io.sh
1905 tests/test-btowc1.sh
1906 tests/test-btowc2.sh
1907 tests/test-c-ctype.c
1908 tests/test-c-stack.c
1909 tests/test-c-stack.sh
1910 tests/test-c-stack2.sh
1911 tests/test-c-strcase.sh
1912 tests/test-c-strcasecmp.c
1913 tests/test-c-strncasecmp.c
1914 tests/test-canonicalize-lgpl.c
1916 tests/test-cloexec.c
1918 tests/test-closein.c
1919 tests/test-closein.sh
1921 tests/test-dirent-c++.cc
1923 tests/test-dirname.c
1924 tests/test-dup-safer.c
1927 tests/test-environ.c
1930 tests/test-fcntl-h-c++.cc
1931 tests/test-fcntl-h.c
1935 tests/test-fflush2.c
1936 tests/test-fflush2.sh
1938 tests/test-filenamecat.c
1940 tests/test-fopen-safer.c
1943 tests/test-fpending.c
1944 tests/test-fpending.sh
1948 tests/test-freadahead.c
1949 tests/test-freadahead.sh
1950 tests/test-freading.c
1956 tests/test-fseek2.sh
1958 tests/test-fseeko.sh
1959 tests/test-fseeko2.sh
1960 tests/test-fseeko3.c
1961 tests/test-fseeko3.sh
1962 tests/test-fseeko4.c
1963 tests/test-fseeko4.sh
1967 tests/test-ftell2.sh
1970 tests/test-ftello.sh
1971 tests/test-ftello2.sh
1972 tests/test-ftello3.c
1973 tests/test-ftello4.c
1974 tests/test-ftello4.sh
1976 tests/test-getcwd-lgpl.c
1977 tests/test-getdtablesize.c
1978 tests/test-getopt-gnu.c
1979 tests/test-getopt-main.h
1980 tests/test-getopt-posix.c
1982 tests/test-getopt_long.h
1983 tests/test-getprogname.c
1984 tests/test-gettimeofday.c
1985 tests/test-ignore-value.c
1987 tests/test-intprops.c
1988 tests/test-inttypes.c
1989 tests/test-isblank.c
1990 tests/test-isnand-nolibm.c
1992 tests/test-isnanf-nolibm.c
1994 tests/test-isnanl-nolibm.c
1996 tests/test-langinfo-c++.cc
1997 tests/test-langinfo.c
1998 tests/test-limits-h.c
2001 tests/test-linkedhash_list.c
2002 tests/test-locale-c++.cc
2003 tests/test-locale-c++2.cc
2005 tests/test-localeconv.c
2006 tests/test-localename.c
2011 tests/test-malloca.c
2012 tests/test-math-c++.cc
2013 tests/test-math-c++2.cc
2015 tests/test-mbrtowc-w32-1.sh
2016 tests/test-mbrtowc-w32-2.sh
2017 tests/test-mbrtowc-w32-3.sh
2018 tests/test-mbrtowc-w32-4.sh
2019 tests/test-mbrtowc-w32-5.sh
2020 tests/test-mbrtowc-w32.c
2021 tests/test-mbrtowc.c
2022 tests/test-mbrtowc1.sh
2023 tests/test-mbrtowc2.sh
2024 tests/test-mbrtowc3.sh
2025 tests/test-mbrtowc4.sh
2026 tests/test-mbrtowc5.sh
2027 tests/test-mbsinit.c
2028 tests/test-mbsinit.sh
2030 tests/test-memchr2.c
2031 tests/test-nl_langinfo.c
2032 tests/test-nl_langinfo.sh
2035 tests/test-pathmax.c
2037 tests/test-posix_spawn1.c
2038 tests/test-posix_spawn1.in.sh
2039 tests/test-posix_spawn2.c
2040 tests/test-posix_spawn2.in.sh
2041 tests/test-posix_spawn_file_actions_addclose.c
2042 tests/test-posix_spawn_file_actions_adddup2.c
2043 tests/test-posix_spawn_file_actions_addopen.c
2044 tests/test-printf-frexp.c
2045 tests/test-printf-frexpl.c
2046 tests/test-quotearg-simple.c
2047 tests/test-quotearg.h
2049 tests/test-rawmemchr.c
2050 tests/test-readlink.c
2051 tests/test-readlink.h
2059 tests/test-setlocale1.c
2060 tests/test-setlocale1.sh
2061 tests/test-setlocale2.c
2062 tests/test-setlocale2.sh
2063 tests/test-sigaction.c
2064 tests/test-signal-h-c++.cc
2065 tests/test-signal-h-c++2.cc
2066 tests/test-signal-h.c
2067 tests/test-signbit.c
2068 tests/test-sigpipe.c
2069 tests/test-sigpipe.sh
2070 tests/test-sigprocmask.c
2072 tests/test-snprintf.c
2073 tests/test-spawn-c++.cc
2074 tests/test-spawn-pipe-child.c
2075 tests/test-spawn-pipe-main.c
2076 tests/test-spawn-pipe.sh
2080 tests/test-stdalign.c
2081 tests/test-stdbool.c
2084 tests/test-stdio-c++.cc
2085 tests/test-stdio-c++2.cc
2087 tests/test-stdlib-c++.cc
2088 tests/test-stdlib-c++2.cc
2090 tests/test-strchrnul.c
2091 tests/test-strerror.c
2092 tests/test-string-c++.cc
2093 tests/test-string-c++2.cc
2095 tests/test-strnlen.c
2096 tests/test-strsignal.c
2099 tests/test-symlink.c
2100 tests/test-symlink.h
2101 tests/test-sys_stat-c++.cc
2102 tests/test-sys_stat.c
2103 tests/test-sys_time-c++.cc
2104 tests/test-sys_time.c
2105 tests/test-sys_types-c++.cc
2106 tests/test-sys_types.c
2107 tests/test-sys_wait-c++.cc
2108 tests/test-sys_wait.c
2109 tests/test-sys_wait.h
2110 tests/test-time-c++.cc
2111 tests/test-time-c++2.cc
2113 tests/test-unistd-c++.cc
2115 tests/test-unsetenv.c
2116 tests/test-update-copyright.sh
2117 tests/test-vasnprintf.c
2118 tests/test-vasprintf-posix.c
2119 tests/test-vasprintf.c
2120 tests/test-vc-list-files-cvs.sh
2121 tests/test-vc-list-files-git.sh
2123 tests/test-verify.sh
2124 tests/test-version-etc.c
2125 tests/test-version-etc.sh
2126 tests/test-wchar-c++.cc
2128 tests/test-wcrtomb-w32-1.sh
2129 tests/test-wcrtomb-w32-2.sh
2130 tests/test-wcrtomb-w32-3.sh
2131 tests/test-wcrtomb-w32-4.sh
2132 tests/test-wcrtomb-w32-5.sh
2133 tests/test-wcrtomb-w32.c
2134 tests/test-wcrtomb.c
2135 tests/test-wcrtomb.sh
2136 tests/test-wctype-h-c++.cc
2137 tests/test-wctype-h.c
2139 tests/test-xalloc-die.c
2140 tests/test-xalloc-die.sh
2141 tests/test-xvasprintf.c
2142 tests/zerosize-ptr.h
2143 tests=lib/closedir.c
2144 tests=lib/ctype.in.h
2145 tests=lib/dirent-private.h
2146 tests=lib/dirent.in.h
2150 tests=lib/filename.h
2151 tests=lib/flexmember.h
2152 tests=lib/getcwd-lgpl.c
2153 tests=lib/getpagesize.c
2154 tests=lib/gl_array_list.c
2155 tests=lib/gl_array_list.h
2156 tests=lib/gl_array_oset.c
2157 tests=lib/gl_array_oset.h
2158 tests=lib/inttypes.in.h
2161 tests=lib/localename.c
2162 tests=lib/localename.h
2167 tests=lib/setlocale.c
2169 tests=lib/stdalign.in.h
2172 tests=lib/unsetenv.c
2174 tests=lib/wctomb-impl.h