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-opt:
43 # Code from module alloca-opt-tests:
44 # Code from module announce-gen:
45 # Code from module ansi-c++-opt:
46 # Code from module array-list:
47 # Code from module array-list-tests:
48 # Code from module array-oset:
49 # Code from module array-oset-tests:
50 # Code from module assert:
51 # Code from module autobuild:
53 # Code from module avltree-oset:
54 # Code from module avltree-oset-tests:
55 # Code from module binary-io:
56 # Code from module binary-io-tests:
57 # Code from module btowc:
58 # Code from module btowc-tests:
59 # Code from module c-ctype:
60 # Code from module c-ctype-tests:
61 # Code from module c-stack:
62 # Code from module c-stack-tests:
63 # Code from module c-strcase:
64 # Code from module c-strcase-tests:
65 # Code from module c-strcaseeq:
66 # Code from module canonicalize-lgpl:
67 # Code from module canonicalize-lgpl-tests:
68 # Code from module chdir:
69 # Code from module chdir-tests:
70 # Code from module clean-temp:
71 # Code from module cloexec:
72 # Code from module cloexec-tests:
73 # Code from module close:
74 # Code from module close-stream:
75 # Code from module close-tests:
76 # Code from module closedir:
77 # Code from module closein:
78 # Code from module closein-tests:
79 # Code from module closeout:
80 # Code from module config-h:
81 # Code from module configmake:
82 # Code from module dirent:
83 # Code from module dirent-c++-tests:
84 # Code from module dirent-tests:
85 # Code from module dirname:
86 # Code from module dirname-lgpl:
87 # Code from module dirname-tests:
88 # Code from module dosname:
89 # Code from module double-slash-root:
90 # Code from module dup:
91 # Code from module dup-tests:
92 # Code from module dup2:
93 # Code from module dup2-tests:
94 # Code from module environ:
95 # Code from module environ-tests:
96 # Code from module errno:
97 # Code from module errno-tests:
98 # Code from module error:
99 # Code from module execute:
100 # Code from module exitfail:
101 # Code from module extensions:
102 AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
103 # Code from module extern-inline:
104 # Code from module fatal-signal:
105 # Code from module fclose:
106 # Code from module fclose-tests:
107 # Code from module fcntl:
108 # Code from module fcntl-h:
109 # Code from module fcntl-h-c++-tests:
110 # Code from module fcntl-h-tests:
111 # Code from module fcntl-tests:
112 # Code from module fd-hook:
113 # Code from module fd-safer-flag:
114 # Code from module fdl-1.3:
115 # Code from module fdopen:
116 # Code from module fdopen-tests:
117 # Code from module fflush:
118 AC_REQUIRE([AC_FUNC_FSEEKO])
119 # Code from module fflush-tests:
120 # Code from module fgetc-tests:
121 # Code from module filename:
122 # Code from module filenamecat:
123 # Code from module filenamecat-lgpl:
124 # Code from module filenamecat-tests:
125 # Code from module float:
126 # Code from module float-tests:
127 # Code from module fopen:
128 # Code from module fopen-safer:
129 # Code from module fopen-safer-tests:
130 # Code from module fopen-tests:
131 # Code from module fpending:
132 # Code from module fpending-tests:
133 # Code from module fpieee:
134 AC_REQUIRE([gl_FP_IEEE])
135 # Code from module fpucw:
136 # Code from module fpurge:
137 # Code from module fpurge-tests:
138 # Code from module fputc-tests:
139 # Code from module fread-tests:
140 # Code from module freadahead:
141 # Code from module freadahead-tests:
142 # Code from module freading:
143 # Code from module freading-tests:
144 # Code from module frexp-nolibm:
145 # Code from module frexp-nolibm-tests:
146 # Code from module frexpl-nolibm:
147 # Code from module frexpl-nolibm-tests:
148 # Code from module fseek:
149 # Code from module fseek-tests:
150 # Code from module fseeko:
151 AC_REQUIRE([AC_FUNC_FSEEKO])
152 # Code from module fseeko-tests:
153 # Code from module fstat:
154 # Code from module fstat-tests:
155 # Code from module ftell:
156 # Code from module ftell-tests:
157 # Code from module ftello:
158 AC_REQUIRE([AC_FUNC_FSEEKO])
159 # Code from module ftello-tests:
160 # Code from module fwrite-tests:
161 # Code from module gendocs:
162 # Code from module getcwd-lgpl:
163 # Code from module getcwd-lgpl-tests:
164 # Code from module getdtablesize:
165 # Code from module getdtablesize-tests:
166 # Code from module getopt-gnu:
167 # Code from module getopt-posix:
168 # Code from module getopt-posix-tests:
169 # Code from module getpagesize:
170 # Code from module gettext-h:
171 # Code from module gettimeofday:
172 # Code from module gettimeofday-tests:
173 # Code from module git-version-gen:
174 # Code from module gnu-web-doc-update:
175 # Code from module gnumakefile:
176 # Code from module gnupload:
177 # Code from module gpl-3.0:
178 # Code from module havelib:
179 # Code from module ignore-value:
180 # Code from module ignore-value-tests:
181 # Code from module include_next:
182 # Code from module intprops:
183 # Code from module intprops-tests:
184 # Code from module inttypes:
185 # Code from module inttypes-incomplete:
186 # Code from module inttypes-tests:
187 # Code from module isnand-nolibm:
188 # Code from module isnand-nolibm-tests:
189 # Code from module isnanf-nolibm:
190 # Code from module isnanf-nolibm-tests:
191 # Code from module isnanl-nolibm:
192 # Code from module isnanl-nolibm-tests:
193 # Code from module langinfo:
194 # Code from module langinfo-c++-tests:
195 # Code from module langinfo-tests:
196 # Code from module largefile:
197 AC_REQUIRE([AC_SYS_LARGEFILE])
198 # Code from module libsigsegv:
199 # Code from module link:
200 # Code from module link-tests:
201 # Code from module linkedhash-list:
202 # Code from module linkedhash-list-tests:
203 # Code from module list:
204 # Code from module localcharset:
205 # Code from module locale:
206 # Code from module locale-c++-tests:
207 # Code from module locale-tests:
208 # Code from module localeconv:
209 # Code from module localeconv-tests:
210 # Code from module localename:
211 # Code from module localename-tests:
212 # Code from module lock:
213 # Code from module lseek:
214 # Code from module lseek-tests:
215 # Code from module lstat:
216 # Code from module lstat-tests:
217 # Code from module maintainer-makefile:
218 # Code from module malloc-gnu:
219 # Code from module malloc-gnu-tests:
220 # Code from module malloc-posix:
221 # Code from module malloca:
222 # Code from module malloca-tests:
223 # Code from module manywarnings:
224 # Code from module math:
225 # Code from module math-c++-tests:
226 # Code from module math-tests:
227 # Code from module mbrtowc:
228 # Code from module mbrtowc-tests:
229 # Code from module mbsinit:
230 # Code from module mbsinit-tests:
231 # Code from module mbtowc:
232 # Code from module memchr:
233 # Code from module memchr-tests:
234 # Code from module memchr2:
235 # Code from module memchr2-tests:
236 # Code from module mkdtemp:
237 # Code from module mkstemp:
238 # Code from module msvc-inval:
239 # Code from module msvc-nothrow:
240 # Code from module multiarch:
241 # Code from module nl_langinfo:
242 # Code from module nl_langinfo-tests:
243 # Code from module nocrash:
244 # Code from module obstack:
245 # Code from module open:
246 # Code from module open-tests:
247 # Code from module opendir:
248 # Code from module oset:
249 # Code from module pathmax:
250 # Code from module pathmax-tests:
251 # Code from module pipe2:
252 # Code from module pipe2-safer:
253 # Code from module pipe2-tests:
254 # Code from module posix_spawn-internal:
255 # Code from module posix_spawn_file_actions_addclose:
256 # Code from module posix_spawn_file_actions_addclose-tests:
257 # Code from module posix_spawn_file_actions_adddup2:
258 # Code from module posix_spawn_file_actions_adddup2-tests:
259 # Code from module posix_spawn_file_actions_addopen:
260 # Code from module posix_spawn_file_actions_addopen-tests:
261 # Code from module posix_spawn_file_actions_destroy:
262 # Code from module posix_spawn_file_actions_init:
263 # Code from module posix_spawnattr_destroy:
264 # Code from module posix_spawnattr_init:
265 # Code from module posix_spawnattr_setflags:
266 # Code from module posix_spawnattr_setsigmask:
267 # Code from module posix_spawnp:
268 # Code from module posix_spawnp-tests:
269 # Code from module printf-frexp:
270 # Code from module printf-frexp-tests:
271 # Code from module printf-frexpl:
272 # Code from module printf-frexpl-tests:
273 # Code from module printf-safe:
274 # Code from module progname:
275 # Code from module putenv:
276 # Code from module quotearg:
277 # Code from module quotearg-simple:
278 # Code from module quotearg-simple-tests:
279 # Code from module raise:
280 # Code from module raise-tests:
281 # Code from module rawmemchr:
282 # Code from module rawmemchr-tests:
283 # Code from module readdir:
284 # Code from module readlink:
285 # Code from module readlink-tests:
286 # Code from module regex:
287 # Code from module regex-tests:
288 # Code from module rename:
289 # Code from module rename-tests:
290 # Code from module rmdir:
291 # Code from module rmdir-tests:
292 # Code from module same-inode:
293 # Code from module sched:
294 # Code from module sched-tests:
295 # Code from module secure_getenv:
296 # Code from module setenv:
297 # Code from module setenv-tests:
298 # Code from module setlocale:
299 # Code from module setlocale-tests:
300 # Code from module sigaction:
301 # Code from module sigaction-tests:
302 # Code from module signal-h:
303 # Code from module signal-h-c++-tests:
304 # Code from module signal-h-tests:
305 # Code from module signbit:
306 # Code from module signbit-tests:
307 # Code from module sigpipe:
308 # Code from module sigpipe-tests:
309 # Code from module sigprocmask:
310 # Code from module sigprocmask-tests:
311 # Code from module size_max:
312 # Code from module sleep:
313 # Code from module sleep-tests:
314 # Code from module snippet/_Noreturn:
315 # Code from module snippet/arg-nonnull:
316 # Code from module snippet/c++defs:
317 # Code from module snippet/unused-parameter:
318 # Code from module snippet/warn-on-use:
319 # Code from module snprintf:
320 # Code from module snprintf-tests:
321 # Code from module spawn:
322 # Code from module spawn-c++-tests:
323 # Code from module spawn-pipe:
324 # Code from module spawn-pipe-tests:
325 # Code from module spawn-tests:
326 # Code from module ssize_t:
327 # Code from module stat:
328 # Code from module stat-tests:
329 # Code from module stdarg:
330 dnl Some compilers (e.g., AIX 5.3 cc) need to be in c99 mode
331 dnl for the builtin va_copy to work. With Autoconf 2.60 or later,
332 dnl gl_PROG_CC_C99 arranges for this. With older Autoconf gl_PROG_CC_C99
333 dnl shouldn't hurt, though installers are on their own to set c99 mode.
335 # Code from module stdbool:
336 # Code from module stdbool-tests:
337 # Code from module stddef:
338 # Code from module stddef-tests:
339 # Code from module stdint:
340 # Code from module stdint-tests:
341 # Code from module stdio:
342 # Code from module stdio-c++-tests:
343 # Code from module stdio-tests:
344 # Code from module stdlib:
345 # Code from module stdlib-c++-tests:
346 # Code from module stdlib-safer:
347 # Code from module stdlib-tests:
348 # Code from module strchrnul:
349 # Code from module strchrnul-tests:
350 # Code from module strdup-posix:
351 # Code from module streq:
352 # Code from module strerror:
353 # Code from module strerror-override:
354 # Code from module strerror-tests:
355 # Code from module string:
356 # Code from module string-c++-tests:
357 # Code from module string-tests:
358 # Code from module strndup:
359 # Code from module strnlen:
360 # Code from module strnlen-tests:
361 # Code from module strsignal:
362 # Code from module strsignal-tests:
363 # Code from module strstr:
364 # Code from module strstr-simple:
365 # Code from module strstr-tests:
366 # Code from module strtod:
367 # Code from module strtod-tests:
368 # Code from module symlink:
369 # Code from module symlink-tests:
370 # Code from module sys_stat:
371 # Code from module sys_stat-c++-tests:
372 # Code from module sys_stat-tests:
373 # Code from module sys_time:
374 # Code from module sys_time-c++-tests:
375 # Code from module sys_time-tests:
376 # Code from module sys_types:
377 # Code from module sys_types-c++-tests:
378 # Code from module sys_types-tests:
379 # Code from module sys_wait:
380 # Code from module sys_wait-c++-tests:
381 # Code from module sys_wait-tests:
382 # Code from module tempname:
383 # Code from module test-framework-sh:
384 # Code from module test-framework-sh-tests:
385 # Code from module threadlib:
387 # Code from module time:
388 # Code from module time-c++-tests:
389 # Code from module time-tests:
390 # Code from module tls:
391 # Code from module tmpdir:
392 # Code from module unistd:
393 # Code from module unistd-c++-tests:
394 # Code from module unistd-safer:
395 # Code from module unistd-safer-tests:
396 # Code from module unistd-tests:
397 # Code from module unlocked-io:
398 # Code from module unsetenv:
399 # Code from module unsetenv-tests:
400 # Code from module update-copyright:
401 # Code from module update-copyright-tests:
402 # Code from module useless-if-before-free:
403 # Code from module vasnprintf:
404 # Code from module vasnprintf-tests:
405 # Code from module vasprintf:
406 # Code from module vasprintf-posix:
407 # Code from module vasprintf-posix-tests:
408 # Code from module vasprintf-tests:
409 # Code from module vc-list-files:
410 # Code from module vc-list-files-tests:
411 # Code from module verify:
412 # Code from module verify-tests:
413 # Code from module verror:
414 # Code from module version-etc:
415 # Code from module version-etc-fsf:
416 # Code from module version-etc-tests:
417 # Code from module wait-process:
418 # Code from module waitpid:
419 # Code from module warnings:
420 # Code from module wchar:
421 # Code from module wchar-c++-tests:
422 # Code from module wchar-tests:
423 # Code from module wcrtomb:
424 # Code from module wcrtomb-tests:
425 # Code from module wctob:
426 # Code from module wctomb:
427 # Code from module wctype-h:
428 # Code from module wctype-h-c++-tests:
429 # Code from module wctype-h-tests:
430 # Code from module write:
431 # Code from module write-tests:
432 # Code from module xalloc:
433 # Code from module xalloc-die:
434 # Code from module xalloc-die-tests:
435 # Code from module xalloc-oversized:
436 # Code from module xlist:
437 # Code from module xmalloca:
438 # Code from module xoset:
439 # Code from module xprintf:
440 # Code from module xsize:
441 # Code from module xstrndup:
442 # Code from module xvasprintf:
443 # Code from module xvasprintf-posix:
444 # Code from module xvasprintf-tests:
447 # This macro should be invoked from ./configure.ac, in the section
448 # "Check for header files, types and library functions".
451 AM_CONDITIONAL([GL_COND_LIBTOOL], [false])
452 gl_cond_libtool=false
456 m4_pushdef([AC_LIBOBJ], m4_defn([M4_LIBOBJ]))
457 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([M4_REPLACE_FUNCS]))
458 m4_pushdef([AC_LIBSOURCES], m4_defn([M4_LIBSOURCES]))
459 m4_pushdef([M4_LIBSOURCES_LIST], [])
460 m4_pushdef([M4_LIBSOURCES_DIR], [])
466 if test $HAVE_BTOWC = 0 || test $REPLACE_BTOWC = 1; then
470 gl_WCHAR_MODULE_INDICATOR([btowc])
473 if test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1; then
474 AC_LIBOBJ([canonicalize-lgpl])
476 gl_MODULE_INDICATOR([canonicalize-lgpl])
477 gl_STDLIB_MODULE_INDICATOR([canonicalize_file_name])
478 gl_STDLIB_MODULE_INDICATOR([realpath])
479 gl_UNISTD_MODULE_INDICATOR([chdir])
480 AC_DEFINE([SIGNAL_SAFE_LIST], [1], [Define if lists must be signal-safe.])
481 gl_MODULE_INDICATOR_FOR_TESTS([cloexec])
483 if test $REPLACE_CLOSE = 1; then
486 gl_UNISTD_MODULE_INDICATOR([close])
488 gl_MODULE_INDICATOR([close-stream])
494 gl_MODULE_INDICATOR([dirname])
498 if test $HAVE_DUP2 = 0 || test $REPLACE_DUP2 = 1; then
502 gl_UNISTD_MODULE_INDICATOR([dup2])
504 gl_UNISTD_MODULE_INDICATOR([environ])
507 if test $ac_cv_lib_error_at_line = no; then
511 m4_ifdef([AM_XGETTEXT_OPTION],
512 [AM_][XGETTEXT_OPTION([--flag=error:3:c-format])
513 AM_][XGETTEXT_OPTION([--flag=error_at_line:5:c-format])])
515 AC_REQUIRE([gl_EXTERN_INLINE])
518 if test $REPLACE_FCLOSE = 1; then
521 gl_STDIO_MODULE_INDICATOR([fclose])
523 if test $HAVE_FCNTL = 0 || test $REPLACE_FCNTL = 1; then
526 gl_FCNTL_MODULE_INDICATOR([fcntl])
528 gl_MODULE_INDICATOR([fd-safer-flag])
530 if test $REPLACE_FFLUSH = 1; then
534 gl_MODULE_INDICATOR([fflush])
535 gl_STDIO_MODULE_INDICATOR([fflush])
537 gl_MODULE_INDICATOR([filenamecat])
538 gl_FILE_NAME_CONCAT_LGPL
540 if test $REPLACE_FLOAT_LDBL = 1; then
543 if test $REPLACE_ITOLD = 1; then
547 if test $REPLACE_FOPEN = 1; then
551 gl_STDIO_MODULE_INDICATOR([fopen])
552 gl_MODULE_INDICATOR([fopen-safer])
554 if test $gl_cv_func___fpending = no; then
555 AC_LIBOBJ([fpending])
559 if test $HAVE_FPURGE = 0 || test $REPLACE_FPURGE = 1; then
562 gl_STDIO_MODULE_INDICATOR([fpurge])
564 if test $ac_cv_func___freadahead = no; then
565 AC_LIBOBJ([freadahead])
568 gl_FUNC_FREXP_NO_LIBM
569 if test $gl_func_frexp_no_libm != yes; then
572 gl_MATH_MODULE_INDICATOR([frexp])
573 gl_FUNC_FREXPL_NO_LIBM
574 if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl_no_libm = no; then
577 gl_MATH_MODULE_INDICATOR([frexpl])
579 if test $REPLACE_FSEEK = 1; then
582 gl_STDIO_MODULE_INDICATOR([fseek])
584 if test $HAVE_FSEEKO = 0 || test $REPLACE_FSEEKO = 1; then
588 gl_STDIO_MODULE_INDICATOR([fseeko])
590 if test $REPLACE_FSTAT = 1; then
594 gl_SYS_STAT_MODULE_INDICATOR([fstat])
596 if test $REPLACE_FTELL = 1; then
599 gl_STDIO_MODULE_INDICATOR([ftell])
601 if test $HAVE_FTELLO = 0 || test $REPLACE_FTELLO = 1; then
605 gl_STDIO_MODULE_INDICATOR([ftello])
606 gl_FUNC_GETDTABLESIZE
607 if test $HAVE_GETDTABLESIZE = 0; then
608 AC_LIBOBJ([getdtablesize])
609 gl_PREREQ_GETDTABLESIZE
611 gl_UNISTD_MODULE_INDICATOR([getdtablesize])
613 if test $REPLACE_GETOPT = 1; then
617 dnl Arrange for unistd.h to include getopt.h.
618 GNULIB_GL_M4_UNISTD_H_GETOPT=1
620 AC_SUBST([GNULIB_GL_M4_UNISTD_H_GETOPT])
621 gl_MODULE_INDICATOR_FOR_TESTS([getopt-gnu])
623 if test $REPLACE_GETOPT = 1; then
627 dnl Arrange for unistd.h to include getopt.h.
628 GNULIB_GL_M4_UNISTD_H_GETOPT=1
630 AC_SUBST([GNULIB_GL_M4_UNISTD_H_GETOPT])
632 AC_SUBST([LTLIBINTL])
634 if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
635 AC_LIBOBJ([gettimeofday])
636 gl_PREREQ_GETTIMEOFDAY
638 gl_SYS_TIME_MODULE_INDICATOR([gettimeofday])
639 # Autoconf 2.61a.99 and earlier don't support linking a file only
640 # in VPATH builds. But since GNUmakefile is for maintainer use
641 # only, it does not matter if we skip the link with older autoconf.
642 # Automake 1.10.1 and earlier try to remove GNUmakefile in non-VPATH
643 # builds, so use a shell variable to bypass this.
644 GNUmakefile=GNUmakefile
645 m4_if(m4_version_compare([2.61a.100],
646 m4_defn([m4_PACKAGE_VERSION])), [1], [],
647 [AC_CONFIG_LINKS([$GNUmakefile:$GNUmakefile], [],
648 [GNUmakefile=$GNUmakefile])])
649 gl_FUNC_ISNAND_NO_LIBM
650 if test $gl_func_isnand_no_libm != yes; then
654 gl_FUNC_ISNANF_NO_LIBM
655 if test $gl_func_isnanf_no_libm != yes; then
659 gl_FUNC_ISNANL_NO_LIBM
660 if test $gl_func_isnanl_no_libm != yes; then
665 AC_REQUIRE([gl_LARGEFILE])
668 LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\""
669 AC_SUBST([LOCALCHARSET_TESTS_ENVIRONMENT])
672 if test $REPLACE_LOCALECONV = 1; then
673 AC_LIBOBJ([localeconv])
676 gl_LOCALE_MODULE_INDICATOR([localeconv])
678 gl_MODULE_INDICATOR([lock])
680 if test $REPLACE_LSEEK = 1; then
683 gl_UNISTD_MODULE_INDICATOR([lseek])
685 if test $REPLACE_LSTAT = 1; then
689 gl_SYS_STAT_MODULE_INDICATOR([lstat])
690 AC_CONFIG_COMMANDS_PRE([m4_ifdef([AH_HEADER],
691 [AC_SUBST([CONFIG_INCLUDE], m4_defn([AH_HEADER]))])])
693 if test $REPLACE_MALLOC = 1; then
696 gl_MODULE_INDICATOR([malloc-gnu])
698 if test $REPLACE_MALLOC = 1; then
701 gl_STDLIB_MODULE_INDICATOR([malloc-posix])
705 if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
709 gl_WCHAR_MODULE_INDICATOR([mbrtowc])
711 if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
715 gl_WCHAR_MODULE_INDICATOR([mbsinit])
717 if test $REPLACE_MBTOWC = 1; then
721 gl_STDLIB_MODULE_INDICATOR([mbtowc])
723 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
727 gl_STRING_MODULE_INDICATOR([memchr])
729 if test $HAVE_MKDTEMP = 0; then
733 gl_STDLIB_MODULE_INDICATOR([mkdtemp])
735 if test $HAVE_MKSTEMP = 0 || test $REPLACE_MKSTEMP = 1; then
739 gl_STDLIB_MODULE_INDICATOR([mkstemp])
741 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
742 AC_LIBOBJ([msvc-inval])
745 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
746 AC_LIBOBJ([msvc-nothrow])
750 if test $HAVE_NL_LANGINFO = 0 || test $REPLACE_NL_LANGINFO = 1; then
751 AC_LIBOBJ([nl_langinfo])
753 gl_LANGINFO_MODULE_INDICATOR([nl_langinfo])
755 dnl Note: AC_FUNC_OBSTACK does AC_LIBSOURCES([obstack.h, obstack.c]).
757 if test $REPLACE_OPEN = 1; then
761 gl_FCNTL_MODULE_INDICATOR([open])
764 gl_UNISTD_MODULE_INDICATOR([pipe2])
765 gl_MODULE_INDICATOR([pipe2-safer])
766 gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE
767 if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE = 1; then
768 AC_LIBOBJ([spawn_faction_addclose])
770 gl_SPAWN_MODULE_INDICATOR([posix_spawn_file_actions_addclose])
771 gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2
772 if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2 = 1; then
773 AC_LIBOBJ([spawn_faction_adddup2])
775 gl_SPAWN_MODULE_INDICATOR([posix_spawn_file_actions_adddup2])
776 gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN
777 if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN = 1; then
778 AC_LIBOBJ([spawn_faction_addopen])
780 gl_SPAWN_MODULE_INDICATOR([posix_spawn_file_actions_addopen])
782 if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1; then
783 AC_LIBOBJ([spawn_faction_destroy])
785 gl_SPAWN_MODULE_INDICATOR([posix_spawn_file_actions_destroy])
787 if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1; then
788 AC_LIBOBJ([spawn_faction_init])
790 gl_SPAWN_MODULE_INDICATOR([posix_spawn_file_actions_init])
792 if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1; then
793 AC_LIBOBJ([spawnattr_destroy])
795 gl_SPAWN_MODULE_INDICATOR([posix_spawnattr_destroy])
797 if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1; then
798 AC_LIBOBJ([spawnattr_init])
800 gl_SPAWN_MODULE_INDICATOR([posix_spawnattr_init])
802 if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1; then
803 AC_LIBOBJ([spawnattr_setflags])
805 gl_SPAWN_MODULE_INDICATOR([posix_spawnattr_setflags])
807 if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1; then
808 AC_LIBOBJ([spawnattr_setsigmask])
810 gl_SPAWN_MODULE_INDICATOR([posix_spawnattr_setsigmask])
812 if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1; then
815 gl_PREREQ_POSIX_SPAWN_INTERNAL
817 gl_SPAWN_MODULE_INDICATOR([posix_spawnp])
819 gl_FUNC_PRINTF_FREXPL
820 m4_divert_text([INIT_PREPARE], [gl_printf_safe=yes])
821 AC_CHECK_DECLS([program_invocation_name], [], [], [#include <errno.h>])
822 AC_CHECK_DECLS([program_invocation_short_name], [], [], [#include <errno.h>])
825 if test $HAVE_RAISE = 0 || test $REPLACE_RAISE = 1; then
829 gl_SIGNAL_MODULE_INDICATOR([raise])
831 if test $HAVE_RAWMEMCHR = 0; then
832 AC_LIBOBJ([rawmemchr])
835 gl_STRING_MODULE_INDICATOR([rawmemchr])
837 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
838 AC_LIBOBJ([readlink])
841 gl_UNISTD_MODULE_INDICATOR([readlink])
843 if test $ac_use_included_regex = yes; then
848 if test $REPLACE_RENAME = 1; then
851 gl_STDIO_MODULE_INDICATOR([rename])
853 if test $REPLACE_RMDIR = 1; then
856 gl_UNISTD_MODULE_INDICATOR([rmdir])
858 gl_FUNC_SECURE_GETENV
859 if test $HAVE_SECURE_GETENV = 0; then
860 AC_LIBOBJ([secure_getenv])
861 gl_PREREQ_SECURE_GETENV
863 gl_STDLIB_MODULE_INDICATOR([secure_getenv])
865 if test $HAVE_SIGACTION = 0; then
866 AC_LIBOBJ([sigaction])
869 gl_SIGNAL_MODULE_INDICATOR([sigaction])
872 if test $REPLACE_SIGNBIT = 1; then
873 AC_LIBOBJ([signbitf])
874 AC_LIBOBJ([signbitd])
875 AC_LIBOBJ([signbitl])
877 gl_MATH_MODULE_INDICATOR([signbit])
879 dnl Define the C macro GNULIB_SIGPIPE to 1.
880 gl_MODULE_INDICATOR([sigpipe])
881 dnl Define the substituted variable GNULIB_SIGNAL_H_SIGPIPE to 1.
882 AC_REQUIRE([gl_SIGNAL_H_DEFAULTS])
883 GNULIB_SIGNAL_H_SIGPIPE=1
884 dnl Define the substituted variable GNULIB_STDIO_H_SIGPIPE to 1.
885 AC_REQUIRE([gl_STDIO_H_DEFAULTS])
886 AC_REQUIRE([gl_ASM_SYMBOL_PREFIX])
887 GNULIB_STDIO_H_SIGPIPE=1
888 dnl Define the substituted variable GNULIB_UNISTD_H_SIGPIPE to 1.
889 AC_REQUIRE([gl_UNISTD_H_DEFAULTS])
890 GNULIB_UNISTD_H_SIGPIPE=1
892 if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
893 AC_LIBOBJ([sigprocmask])
894 gl_PREREQ_SIGPROCMASK
896 gl_SIGNAL_MODULE_INDICATOR([sigprocmask])
899 gl_STDIO_MODULE_INDICATOR([snprintf])
900 gl_MODULE_INDICATOR([snprintf])
905 if test $REPLACE_STAT = 1; then
909 gl_SYS_STAT_MODULE_INDICATOR([stat])
917 if test $HAVE_STRCHRNUL = 0 || test $REPLACE_STRCHRNUL = 1; then
918 AC_LIBOBJ([strchrnul])
921 gl_STRING_MODULE_INDICATOR([strchrnul])
923 if test $REPLACE_STRERROR = 1; then
924 AC_LIBOBJ([strerror])
926 gl_MODULE_INDICATOR([strerror])
927 gl_STRING_MODULE_INDICATOR([strerror])
928 AC_REQUIRE([gl_HEADER_ERRNO_H])
929 AC_REQUIRE([gl_FUNC_STRERROR_0])
930 if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then
931 AC_LIBOBJ([strerror-override])
932 gl_PREREQ_SYS_H_WINSOCK2
936 if test $HAVE_STRNDUP = 0 || test $REPLACE_STRNDUP = 1; then
939 gl_STRING_MODULE_INDICATOR([strndup])
941 if test $HAVE_DECL_STRNLEN = 0 || test $REPLACE_STRNLEN = 1; then
945 gl_STRING_MODULE_INDICATOR([strnlen])
947 if test $HAVE_STRSIGNAL = 0 || test $REPLACE_STRSIGNAL = 1; then
948 AC_LIBOBJ([strsignal])
951 gl_STRING_MODULE_INDICATOR([strsignal])
953 if test $REPLACE_STRSTR = 1; then
956 gl_FUNC_STRSTR_SIMPLE
957 if test $REPLACE_STRSTR = 1; then
960 gl_STRING_MODULE_INDICATOR([strstr])
962 if test $HAVE_STRTOD = 0 || test $REPLACE_STRTOD = 1; then
966 gl_STDLIB_MODULE_INDICATOR([strtod])
982 gl_FUNC_GLIBC_UNLOCKED_IO
985 gl_STDIO_MODULE_INDICATOR([vasprintf])
986 m4_ifdef([AM_XGETTEXT_OPTION],
987 [AM_][XGETTEXT_OPTION([--flag=asprintf:2:c-format])
988 AM_][XGETTEXT_OPTION([--flag=vasprintf:2:c-format])])
989 gl_FUNC_VASPRINTF_POSIX
990 m4_ifdef([AM_XGETTEXT_OPTION],
991 [AM_][XGETTEXT_OPTION([--flag=verror:3:c-format])
992 AM_][XGETTEXT_OPTION([--flag=verror_at_line:5:c-format])])
996 if test $HAVE_WAITPID = 0; then
999 gl_SYS_WAIT_MODULE_INDICATOR([waitpid])
1002 if test $HAVE_WCRTOMB = 0 || test $REPLACE_WCRTOMB = 1; then
1003 AC_LIBOBJ([wcrtomb])
1006 gl_WCHAR_MODULE_INDICATOR([wcrtomb])
1009 m4_ifdef([AM_XGETTEXT_OPTION],
1010 [AM_][XGETTEXT_OPTION([--flag=xprintf:1:c-format])
1011 AM_][XGETTEXT_OPTION([--flag=xvprintf:1:c-format])
1012 AM_][XGETTEXT_OPTION([--flag=xfprintf:2:c-format])
1013 AM_][XGETTEXT_OPTION([--flag=xvfprintf:2:c-format])])
1017 m4_ifdef([AM_XGETTEXT_OPTION],
1018 [AM_][XGETTEXT_OPTION([--flag=xasprintf:1:c-format])])
1019 # End of code from modules
1020 m4_ifval(M4_LIBSOURCES_LIST, [
1021 m4_syscmd([test ! -d ]m4_defn([M4_LIBSOURCES_DIR])[ ||
1022 for gl_file in ]M4_LIBSOURCES_LIST[ ; do
1023 if test ! -r ]m4_defn([M4_LIBSOURCES_DIR])[/$gl_file ; then
1024 echo "missing file ]m4_defn([M4_LIBSOURCES_DIR])[/$gl_file" >&2
1028 m4_if(m4_sysval, [0], [],
1029 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
1031 m4_popdef([M4_LIBSOURCES_DIR])
1032 m4_popdef([M4_LIBSOURCES_LIST])
1033 m4_popdef([AC_LIBSOURCES])
1034 m4_popdef([AC_REPLACE_FUNCS])
1035 m4_popdef([AC_LIBOBJ])
1036 AC_CONFIG_COMMANDS_PRE([
1039 if test -n "$M4_LIBOBJS"; then
1040 # Remove the extension.
1041 sed_drop_objext='s/\.o$//;s/\.obj$//'
1042 for i in `for i in $M4_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
1043 M4_libobjs="$M4_libobjs $i.$ac_objext"
1044 M4_ltlibobjs="$M4_ltlibobjs $i.lo"
1047 AC_SUBST([M4_LIBOBJS], [$M4_libobjs])
1048 AC_SUBST([M4_LTLIBOBJS], [$M4_ltlibobjs])
1052 m4_pushdef([AC_LIBOBJ], m4_defn([M4tests_LIBOBJ]))
1053 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([M4tests_REPLACE_FUNCS]))
1054 m4_pushdef([AC_LIBSOURCES], m4_defn([M4tests_LIBSOURCES]))
1055 m4_pushdef([M4tests_LIBSOURCES_LIST], [])
1056 m4_pushdef([M4tests_LIBSOURCES_DIR], [])
1058 gl_source_base='tests'
1060 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
1061 changequote([, ])dnl
1062 AC_SUBST([M4tests_WITNESS])
1063 gl_module_indicator_condition=$M4tests_WITNESS
1064 m4_pushdef([gl_MODULE_INDICATOR_CONDITION], [$gl_module_indicator_condition])
1065 gl_PROG_ANSI_CXX([CXX], [ANSICXX])
1071 if test $HAVE_CLOSEDIR = 0 || test $REPLACE_CLOSEDIR = 1; then
1072 AC_LIBOBJ([closedir])
1074 gl_DIRENT_MODULE_INDICATOR([closedir])
1077 if test $REPLACE_DUP = 1; then
1081 gl_UNISTD_MODULE_INDICATOR([dup])
1083 if test $REPLACE_FDOPEN = 1; then
1087 gl_STDIO_MODULE_INDICATOR([fdopen])
1088 gl_FUNC_UNGETC_WORKS
1089 gl_FUNC_UNGETC_WORKS
1090 gl_FUNC_UNGETC_WORKS
1091 gl_FUNC_UNGETC_WORKS
1093 if test $REPLACE_GETCWD = 1; then
1094 AC_LIBOBJ([getcwd-lgpl])
1096 gl_UNISTD_MODULE_INDICATOR([getcwd])
1098 if test $REPLACE_GETPAGESIZE = 1; then
1099 AC_LIBOBJ([getpagesize])
1101 gl_UNISTD_MODULE_INDICATOR([getpagesize])
1103 gl_INTTYPES_INCOMPLETE
1104 gl_DOUBLE_EXPONENT_LOCATION
1105 gl_FLOAT_EXPONENT_LOCATION
1106 gl_LONG_DOUBLE_EXPONENT_LOCATION
1107 AC_REQUIRE([gl_LONG_DOUBLE_VS_DOUBLE])
1109 if test $HAVE_LINK = 0 || test $REPLACE_LINK = 1; then
1112 gl_UNISTD_MODULE_INDICATOR([link])
1113 AC_CHECK_FUNCS_ONCE([newlocale])
1115 AC_CHECK_FUNCS_ONCE([newlocale])
1121 dnl Check for prerequisites for memory fence checks.
1123 AC_CHECK_HEADERS_ONCE([sys/mman.h])
1124 AC_CHECK_FUNCS_ONCE([mprotect])
1126 AC_CHECK_HEADERS_ONCE([sys/mman.h])
1127 AC_CHECK_FUNCS_ONCE([mprotect])
1131 if test $HAVE_OPENDIR = 0 || test $REPLACE_OPENDIR = 1; then
1132 AC_LIBOBJ([opendir])
1134 gl_DIRENT_MODULE_INDICATOR([opendir])
1135 AC_EGREP_CPP([notposix], [[
1136 #if defined _MSC_VER || defined __MINGW32__
1140 [posix_spawn_ported=no],
1141 [posix_spawn_ported=yes])
1142 AM_CONDITIONAL([POSIX_SPAWN_PORTED], [test $posix_spawn_ported = yes])
1144 if test $REPLACE_PUTENV = 1; then
1148 gl_STDLIB_MODULE_INDICATOR([putenv])
1149 dnl Check for prerequisites for memory fence checks.
1150 dnl FIXME: zerosize-ptr.h requires these: make a module for it
1152 AC_CHECK_HEADERS_ONCE([sys/mman.h])
1153 AC_CHECK_FUNCS_ONCE([mprotect])
1154 dnl Check for prerequisites for memory fence checks.
1156 AC_CHECK_HEADERS_ONCE([sys/mman.h])
1157 AC_CHECK_FUNCS_ONCE([mprotect])
1159 if test $HAVE_READDIR = 0; then
1160 AC_LIBOBJ([readdir])
1162 gl_DIRENT_MODULE_INDICATOR([readdir])
1164 if test $HAVE_SETENV = 0 || test $REPLACE_SETENV = 1; then
1167 gl_STDLIB_MODULE_INDICATOR([setenv])
1169 if test $REPLACE_SETLOCALE = 1; then
1170 AC_LIBOBJ([setlocale])
1173 gl_LOCALE_MODULE_INDICATOR([setlocale])
1178 AC_REQUIRE([gl_FLOAT_EXPONENT_LOCATION])
1179 AC_REQUIRE([gl_DOUBLE_EXPONENT_LOCATION])
1180 AC_REQUIRE([gl_LONG_DOUBLE_EXPONENT_LOCATION])
1182 if test $HAVE_SLEEP = 0 || test $REPLACE_SLEEP = 1; then
1185 gl_UNISTD_MODULE_INDICATOR([sleep])
1186 AC_CHECK_DECLS_ONCE([alarm])
1187 AC_REQUIRE([gt_TYPE_WCHAR_T])
1188 AC_REQUIRE([gt_TYPE_WINT_T])
1189 gl_FUNC_STRDUP_POSIX
1190 if test $ac_cv_func_strdup = no || test $REPLACE_STRDUP = 1; then
1194 gl_STRING_MODULE_INDICATOR([strdup])
1195 dnl Check for prerequisites for memory fence checks.
1197 AC_CHECK_HEADERS_ONCE([sys/mman.h])
1198 AC_CHECK_FUNCS_ONCE([mprotect])
1199 AC_CHECK_DECLS_ONCE([alarm])
1201 AC_CHECK_HEADERS_ONCE([sys/mman.h])
1202 AC_CHECK_FUNCS_ONCE([mprotect])
1204 if test $HAVE_SYMLINK = 0 || test $REPLACE_SYMLINK = 1; then
1205 AC_LIBOBJ([symlink])
1207 gl_UNISTD_MODULE_INDICATOR([symlink])
1209 if test $HAVE_UNSETENV = 0 || test $REPLACE_UNSETENV = 1; then
1210 AC_LIBOBJ([unsetenv])
1213 gl_STDLIB_MODULE_INDICATOR([unsetenv])
1214 abs_aux_dir=`cd "$ac_aux_dir"; pwd`
1215 AC_SUBST([abs_aux_dir])
1216 AC_REQUIRE([gl_LONG_DOUBLE_VS_DOUBLE])
1217 abs_aux_dir=`cd "$ac_aux_dir"; pwd`
1218 AC_SUBST([abs_aux_dir])
1224 if test $HAVE_WCTOB = 0 || test $REPLACE_WCTOB = 1; then
1228 gl_WCHAR_MODULE_INDICATOR([wctob])
1230 if test $REPLACE_WCTOMB = 1; then
1234 gl_STDLIB_MODULE_INDICATOR([wctomb])
1236 if test $REPLACE_WRITE = 1; then
1240 gl_UNISTD_MODULE_INDICATOR([write])
1241 m4_popdef([gl_MODULE_INDICATOR_CONDITION])
1242 m4_ifval(M4tests_LIBSOURCES_LIST, [
1243 m4_syscmd([test ! -d ]m4_defn([M4tests_LIBSOURCES_DIR])[ ||
1244 for gl_file in ]M4tests_LIBSOURCES_LIST[ ; do
1245 if test ! -r ]m4_defn([M4tests_LIBSOURCES_DIR])[/$gl_file ; then
1246 echo "missing file ]m4_defn([M4tests_LIBSOURCES_DIR])[/$gl_file" >&2
1250 m4_if(m4_sysval, [0], [],
1251 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
1253 m4_popdef([M4tests_LIBSOURCES_DIR])
1254 m4_popdef([M4tests_LIBSOURCES_LIST])
1255 m4_popdef([AC_LIBSOURCES])
1256 m4_popdef([AC_REPLACE_FUNCS])
1257 m4_popdef([AC_LIBOBJ])
1258 AC_CONFIG_COMMANDS_PRE([
1261 if test -n "$M4tests_LIBOBJS"; then
1262 # Remove the extension.
1263 sed_drop_objext='s/\.o$//;s/\.obj$//'
1264 for i in `for i in $M4tests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
1265 M4tests_libobjs="$M4tests_libobjs $i.$ac_objext"
1266 M4tests_ltlibobjs="$M4tests_ltlibobjs $i.lo"
1269 AC_SUBST([M4tests_LIBOBJS], [$M4tests_libobjs])
1270 AC_SUBST([M4tests_LTLIBOBJS], [$M4tests_ltlibobjs])
1272 LIBM4_LIBDEPS="$gl_libdeps"
1273 AC_SUBST([LIBM4_LIBDEPS])
1274 LIBM4_LTLIBDEPS="$gl_ltlibdeps"
1275 AC_SUBST([LIBM4_LTLIBDEPS])
1276 LIBTESTS_LIBDEPS="$gltests_libdeps"
1277 AC_SUBST([LIBTESTS_LIBDEPS])
1280 # Like AC_LIBOBJ, except that the module name goes
1281 # into M4_LIBOBJS instead of into LIBOBJS.
1282 AC_DEFUN([M4_LIBOBJ], [
1283 AS_LITERAL_IF([$1], [M4_LIBSOURCES([$1.c])])dnl
1284 M4_LIBOBJS="$M4_LIBOBJS $1.$ac_objext"
1287 # Like AC_REPLACE_FUNCS, except that the module name goes
1288 # into M4_LIBOBJS instead of into LIBOBJS.
1289 AC_DEFUN([M4_REPLACE_FUNCS], [
1290 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
1291 AC_CHECK_FUNCS([$1], , [M4_LIBOBJ($ac_func)])
1294 # Like AC_LIBSOURCES, except the directory where the source file is
1295 # expected is derived from the gnulib-tool parameterization,
1296 # and alloca is special cased (for the alloca-opt module).
1297 # We could also entirely rely on EXTRA_lib..._SOURCES.
1298 AC_DEFUN([M4_LIBSOURCES], [
1299 m4_foreach([_gl_NAME], [$1], [
1300 m4_if(_gl_NAME, [alloca.c], [], [
1301 m4_define([M4_LIBSOURCES_DIR], [lib])
1302 m4_append([M4_LIBSOURCES_LIST], _gl_NAME, [ ])
1307 # Like AC_LIBOBJ, except that the module name goes
1308 # into M4tests_LIBOBJS instead of into LIBOBJS.
1309 AC_DEFUN([M4tests_LIBOBJ], [
1310 AS_LITERAL_IF([$1], [M4tests_LIBSOURCES([$1.c])])dnl
1311 M4tests_LIBOBJS="$M4tests_LIBOBJS $1.$ac_objext"
1314 # Like AC_REPLACE_FUNCS, except that the module name goes
1315 # into M4tests_LIBOBJS instead of into LIBOBJS.
1316 AC_DEFUN([M4tests_REPLACE_FUNCS], [
1317 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
1318 AC_CHECK_FUNCS([$1], , [M4tests_LIBOBJ($ac_func)])
1321 # Like AC_LIBSOURCES, except the directory where the source file is
1322 # expected is derived from the gnulib-tool parameterization,
1323 # and alloca is special cased (for the alloca-opt module).
1324 # We could also entirely rely on EXTRA_lib..._SOURCES.
1325 AC_DEFUN([M4tests_LIBSOURCES], [
1326 m4_foreach([_gl_NAME], [$1], [
1327 m4_if(_gl_NAME, [alloca.c], [], [
1328 m4_define([M4tests_LIBSOURCES_DIR], [tests])
1329 m4_append([M4tests_LIBSOURCES_LIST], _gl_NAME, [ ])
1334 # This macro records the list of files which have been installed by
1335 # gnulib-tool and may be removed by future gnulib-tool invocations.
1336 AC_DEFUN([M4_FILE_LIST], [
1337 build-aux/announce-gen
1338 build-aux/config.rpath
1339 build-aux/gendocs.sh
1340 build-aux/git-version-gen
1341 build-aux/gnu-web-doc-update
1343 build-aux/snippet/_Noreturn.h
1344 build-aux/snippet/arg-nonnull.h
1345 build-aux/snippet/c++defs.h
1346 build-aux/snippet/unused-parameter.h
1347 build-aux/snippet/warn-on-use.h
1348 build-aux/update-copyright
1349 build-aux/useless-if-before-free
1350 build-aux/vc-list-files
1352 doc/gendocs_template
1370 lib/canonicalize-lgpl.c
1387 lib/dup-safer-flag.c
1407 lib/filenamecat-lgpl.c
1437 lib/gl_anyhash_list1.h
1438 lib/gl_anyhash_list2.h
1439 lib/gl_anylinked_list1.h
1440 lib/gl_anylinked_list2.h
1441 lib/gl_anytree_oset.h
1442 lib/gl_avltree_oset.c
1443 lib/gl_avltree_oset.h
1444 lib/gl_linkedhash_list.c
1445 lib/gl_linkedhash_list.h
1456 lib/glthread/threadlib.c
1479 lib/malloca.valgrind
1490 lib/memchr2.valgrind
1521 lib/rawmemchr.valgrind
1528 lib/regex_internal.c
1529 lib/regex_internal.h
1550 lib/spawn_faction_addclose.c
1551 lib/spawn_faction_adddup2.c
1552 lib/spawn_faction_addopen.c
1553 lib/spawn_faction_destroy.c
1554 lib/spawn_faction_init.c
1556 lib/spawnattr_destroy.c
1557 lib/spawnattr_init.c
1558 lib/spawnattr_setflags.c
1559 lib/spawnattr_setsigmask.c
1577 lib/strchrnul.valgrind
1579 lib/strerror-override.c
1580 lib/strerror-override.h
1609 lib/version-etc-fsf.c
1621 lib/xalloc-oversized.h
1638 m4/asm-underscore.m4
1654 m4/double-slash-root.m4
1770 m4/signalblocking.m4
1812 m4/vasprintf-posix.m4
1839 tests/test-alloca-opt.c
1840 tests/test-array_list.c
1841 tests/test-array_oset.c
1842 tests/test-avltree_oset.c
1843 tests/test-binary-io.c
1844 tests/test-binary-io.sh
1846 tests/test-btowc1.sh
1847 tests/test-btowc2.sh
1848 tests/test-c-ctype.c
1849 tests/test-c-stack.c
1850 tests/test-c-stack.sh
1851 tests/test-c-stack2.sh
1852 tests/test-c-strcase.sh
1853 tests/test-c-strcasecmp.c
1854 tests/test-c-strncasecmp.c
1855 tests/test-canonicalize-lgpl.c
1857 tests/test-cloexec.c
1859 tests/test-closein.c
1860 tests/test-closein.sh
1861 tests/test-dirent-c++.cc
1863 tests/test-dirname.c
1864 tests/test-dup-safer.c
1867 tests/test-environ.c
1870 tests/test-fcntl-h-c++.cc
1871 tests/test-fcntl-h.c
1875 tests/test-fflush2.c
1876 tests/test-fflush2.sh
1878 tests/test-filenamecat.c
1880 tests/test-fopen-safer.c
1883 tests/test-fpending.c
1884 tests/test-fpending.sh
1888 tests/test-freadahead.c
1889 tests/test-freadahead.sh
1890 tests/test-freading.c
1896 tests/test-fseek2.sh
1898 tests/test-fseeko.sh
1899 tests/test-fseeko2.sh
1900 tests/test-fseeko3.c
1901 tests/test-fseeko3.sh
1902 tests/test-fseeko4.c
1903 tests/test-fseeko4.sh
1907 tests/test-ftell2.sh
1910 tests/test-ftello.sh
1911 tests/test-ftello2.sh
1912 tests/test-ftello3.c
1913 tests/test-ftello4.c
1914 tests/test-ftello4.sh
1916 tests/test-getcwd-lgpl.c
1917 tests/test-getdtablesize.c
1920 tests/test-getopt_long.h
1921 tests/test-gettimeofday.c
1922 tests/test-ignore-value.c
1924 tests/test-intprops.c
1925 tests/test-inttypes.c
1926 tests/test-isnand-nolibm.c
1928 tests/test-isnanf-nolibm.c
1930 tests/test-isnanl-nolibm.c
1932 tests/test-langinfo-c++.cc
1933 tests/test-langinfo.c
1936 tests/test-linkedhash_list.c
1937 tests/test-locale-c++.cc
1938 tests/test-locale-c++2.cc
1940 tests/test-localeconv.c
1941 tests/test-localename.c
1946 tests/test-malloc-gnu.c
1947 tests/test-malloca.c
1948 tests/test-math-c++.cc
1949 tests/test-math-c++2.cc
1951 tests/test-mbrtowc-w32-1.sh
1952 tests/test-mbrtowc-w32-2.sh
1953 tests/test-mbrtowc-w32-3.sh
1954 tests/test-mbrtowc-w32-4.sh
1955 tests/test-mbrtowc-w32-5.sh
1956 tests/test-mbrtowc-w32.c
1957 tests/test-mbrtowc.c
1958 tests/test-mbrtowc1.sh
1959 tests/test-mbrtowc2.sh
1960 tests/test-mbrtowc3.sh
1961 tests/test-mbrtowc4.sh
1962 tests/test-mbsinit.c
1963 tests/test-mbsinit.sh
1965 tests/test-memchr2.c
1966 tests/test-nl_langinfo.c
1967 tests/test-nl_langinfo.sh
1970 tests/test-pathmax.c
1972 tests/test-posix_spawn1.c
1973 tests/test-posix_spawn1.in.sh
1974 tests/test-posix_spawn2.c
1975 tests/test-posix_spawn2.in.sh
1976 tests/test-posix_spawn_file_actions_addclose.c
1977 tests/test-posix_spawn_file_actions_adddup2.c
1978 tests/test-posix_spawn_file_actions_addopen.c
1979 tests/test-printf-frexp.c
1980 tests/test-printf-frexpl.c
1981 tests/test-quotearg-simple.c
1982 tests/test-quotearg.h
1984 tests/test-rawmemchr.c
1985 tests/test-readlink.c
1986 tests/test-readlink.h
1994 tests/test-setlocale1.c
1995 tests/test-setlocale1.sh
1996 tests/test-setlocale2.c
1997 tests/test-setlocale2.sh
1998 tests/test-sigaction.c
1999 tests/test-signal-h-c++.cc
2000 tests/test-signal-h-c++2.cc
2001 tests/test-signal-h.c
2002 tests/test-signbit.c
2003 tests/test-sigpipe.c
2004 tests/test-sigpipe.sh
2005 tests/test-sigprocmask.c
2007 tests/test-snprintf.c
2008 tests/test-spawn-c++.cc
2009 tests/test-spawn-pipe-child.c
2010 tests/test-spawn-pipe-main.c
2011 tests/test-spawn-pipe.sh
2015 tests/test-stdbool.c
2018 tests/test-stdio-c++.cc
2019 tests/test-stdio-c++2.cc
2021 tests/test-stdlib-c++.cc
2022 tests/test-stdlib-c++2.cc
2024 tests/test-strchrnul.c
2025 tests/test-strerror.c
2026 tests/test-string-c++.cc
2027 tests/test-string-c++2.cc
2029 tests/test-strnlen.c
2030 tests/test-strsignal.c
2033 tests/test-symlink.c
2034 tests/test-symlink.h
2035 tests/test-sys_stat-c++.cc
2036 tests/test-sys_stat.c
2037 tests/test-sys_time-c++.cc
2038 tests/test-sys_time.c
2039 tests/test-sys_types-c++.cc
2040 tests/test-sys_types.c
2041 tests/test-sys_wait-c++.cc
2042 tests/test-sys_wait.c
2043 tests/test-sys_wait.h
2044 tests/test-time-c++.cc
2045 tests/test-time-c++2.cc
2047 tests/test-unistd-c++.cc
2049 tests/test-unsetenv.c
2050 tests/test-update-copyright.sh
2051 tests/test-vasnprintf.c
2052 tests/test-vasprintf-posix.c
2053 tests/test-vasprintf.c
2054 tests/test-vc-list-files-cvs.sh
2055 tests/test-vc-list-files-git.sh
2057 tests/test-verify.sh
2058 tests/test-version-etc.c
2059 tests/test-version-etc.sh
2060 tests/test-wchar-c++.cc
2062 tests/test-wcrtomb-w32-1.sh
2063 tests/test-wcrtomb-w32-2.sh
2064 tests/test-wcrtomb-w32-3.sh
2065 tests/test-wcrtomb-w32-4.sh
2066 tests/test-wcrtomb-w32-5.sh
2067 tests/test-wcrtomb-w32.c
2068 tests/test-wcrtomb.c
2069 tests/test-wcrtomb.sh
2070 tests/test-wctype-h-c++.cc
2071 tests/test-wctype-h.c
2073 tests/test-xalloc-die.c
2074 tests/test-xalloc-die.sh
2075 tests/test-xvasprintf.c
2076 tests/zerosize-ptr.h
2077 tests=lib/closedir.c
2078 tests=lib/dirent-private.h
2079 tests=lib/dirent.in.h
2082 tests=lib/filename.h
2083 tests=lib/getcwd-lgpl.c
2084 tests=lib/getpagesize.c
2085 tests=lib/gl_array_list.c
2086 tests=lib/gl_array_list.h
2087 tests=lib/gl_array_oset.c
2088 tests=lib/gl_array_oset.h
2089 tests=lib/inttypes.in.h
2091 tests=lib/localename.c
2092 tests=lib/localename.h
2097 tests=lib/setlocale.c
2101 tests=lib/unsetenv.c
2103 tests=lib/wctomb-impl.h