New upstream version 1.8
[debian/gzip] / m4 / gnulib-comp.m4
1 # DO NOT EDIT! GENERATED AUTOMATICALLY!
2 # Copyright (C) 2002-2016 Free Software Foundation, Inc.
3 #
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.
8 #
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.
13 #
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/>.
16 #
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.
21 #
22 # Generated by gnulib-tool.
23 #
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
28 # other built files.
29
30
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.
34 AC_DEFUN([gl_EARLY],
35 [
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
41   # Pre-early section.
42   AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
43   AC_REQUIRE([gl_PROG_AR_RANLIB])
44
45   AC_REQUIRE([AM_PROG_CC_C_O])
46   # Code from module absolute-header:
47   # Code from module alloca-opt:
48   # Code from module announce-gen:
49   # Code from module assure:
50   # Code from module at-internal:
51   # Code from module calloc:
52   # Code from module calloc-gnu:
53   # Code from module calloc-posix:
54   # Code from module chdir:
55   # Code from module chdir-long:
56   # Code from module clock-time:
57   # Code from module cloexec:
58   # Code from module close:
59   # Code from module closedir:
60   # Code from module dirent:
61   # Code from module dirent-safer:
62   # Code from module dirfd:
63   # Code from module dirname-lgpl:
64   # Code from module do-release-commit-and-tag:
65   # Code from module dosname:
66   # Code from module double-slash-root:
67   # Code from module dup:
68   # Code from module dup2:
69   # Code from module errno:
70   # Code from module error:
71   # Code from module exitfail:
72   # Code from module extensions:
73   # Code from module extern-inline:
74   # Code from module fchdir:
75   # Code from module fclose:
76   # Code from module fcntl:
77   # Code from module fcntl-h:
78   # Code from module fcntl-safer:
79   # Code from module fd-hook:
80   # Code from module fdatasync:
81   # Code from module fdl:
82   # Code from module fdopendir:
83   # Code from module fflush:
84   AC_REQUIRE([AC_FUNC_FSEEKO])
85   # Code from module filename:
86   # Code from module filenamecat-lgpl:
87   # Code from module float:
88   # Code from module fpieee:
89   AC_REQUIRE([gl_FP_IEEE])
90   # Code from module fprintf-posix:
91   # Code from module fpucw:
92   # Code from module fpurge:
93   # Code from module freading:
94   # Code from module frexp-nolibm:
95   # Code from module frexpl-nolibm:
96   # Code from module fseek:
97   # Code from module fseeko:
98   AC_REQUIRE([AC_FUNC_FSEEKO])
99   # Code from module fseterr:
100   # Code from module fstat:
101   # Code from module fstatat:
102   # Code from module fsync:
103   # Code from module ftell:
104   # Code from module ftello:
105   AC_REQUIRE([AC_FUNC_FSEEKO])
106   # Code from module gendocs:
107   # Code from module getcwd-lgpl:
108   # Code from module getdtablesize:
109   # Code from module getopt-gnu:
110   # Code from module getopt-posix:
111   # Code from module gettext-h:
112   # Code from module gettime:
113   # Code from module gettimeofday:
114   # Code from module git-version-gen:
115   # Code from module gitlog-to-changelog:
116   # Code from module gnu-make:
117   # Code from module gnu-web-doc-update:
118   # Code from module gnumakefile:
119   # Code from module gnupload:
120   # Code from module havelib:
121   # Code from module ignore-value:
122   # Code from module include_next:
123   # Code from module intprops:
124   # Code from module isnand-nolibm:
125   # Code from module isnanf-nolibm:
126   # Code from module isnanl-nolibm:
127   # Code from module largefile:
128   AC_REQUIRE([AC_SYS_LARGEFILE])
129   # Code from module lib-ignore:
130   # Code from module lock:
131   # Code from module lseek:
132   # Code from module lstat:
133   # Code from module maintainer-makefile:
134   # Code from module malloc-gnu:
135   # Code from module malloc-posix:
136   # Code from module manywarnings:
137   # Code from module math:
138   # Code from module memchr:
139   # Code from module mempcpy:
140   # Code from module memrchr:
141   # Code from module msvc-inval:
142   # Code from module msvc-nothrow:
143   # Code from module multiarch:
144   # Code from module nocrash:
145   # Code from module open:
146   # Code from module openat:
147   # Code from module openat-die:
148   # Code from module openat-h:
149   # Code from module openat-safer:
150   # Code from module opendir:
151   # Code from module pathmax:
152   # Code from module perror:
153   # Code from module printf-frexp:
154   # Code from module printf-frexpl:
155   # Code from module printf-posix:
156   # Code from module printf-safe:
157   # Code from module readdir:
158   # Code from module readme-release:
159   # Code from module realloc-gnu:
160   # Code from module realloc-posix:
161   # Code from module rmdir:
162   # Code from module save-cwd:
163   # Code from module savedir:
164   # Code from module signbit:
165   # Code from module size_max:
166   # Code from module snippet/_Noreturn:
167   # Code from module snippet/arg-nonnull:
168   # Code from module snippet/c++defs:
169   # Code from module snippet/unused-parameter:
170   # Code from module snippet/warn-on-use:
171   # Code from module ssize_t:
172   # Code from module stat:
173   # Code from module stat-time:
174   # Code from module statat:
175   # Code from module stdbool:
176   # Code from module stddef:
177   # Code from module stdint:
178   # Code from module stdio:
179   # Code from module stdlib:
180   # Code from module stpcpy:
181   # Code from module strdup-posix:
182   # Code from module strerror:
183   # Code from module strerror-override:
184   # Code from module strerror_r-posix:
185   # Code from module string:
186   # Code from module sys_stat:
187   # Code from module sys_time:
188   # Code from module sys_types:
189   # Code from module threadlib:
190   gl_THREADLIB_EARLY
191   # Code from module time:
192   # Code from module timespec:
193   # Code from module unistd:
194   # Code from module unistd-safer:
195   # Code from module unlink:
196   # Code from module unlinkat:
197   # Code from module update-copyright:
198   # Code from module useless-if-before-free:
199   # Code from module utimens:
200   # Code from module vasnprintf:
201   # Code from module vc-list-files:
202   # Code from module verify:
203   # Code from module vfprintf-posix:
204   # Code from module warnings:
205   # Code from module wchar:
206   # Code from module xalloc:
207   # Code from module xalloc-die:
208   # Code from module xalloc-oversized:
209   # Code from module xsize:
210   # Code from module yesno:
211 ])
212
213 # This macro should be invoked from ./configure.ac, in the section
214 # "Check for header files, types and library functions".
215 AC_DEFUN([gl_INIT],
216 [
217   AM_CONDITIONAL([GL_COND_LIBTOOL], [false])
218   gl_cond_libtool=false
219   gl_libdeps=
220   gl_ltlibdeps=
221   gl_m4_base='m4'
222   m4_pushdef([AC_LIBOBJ], m4_defn([gl_LIBOBJ]))
223   m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gl_REPLACE_FUNCS]))
224   m4_pushdef([AC_LIBSOURCES], m4_defn([gl_LIBSOURCES]))
225   m4_pushdef([gl_LIBSOURCES_LIST], [])
226   m4_pushdef([gl_LIBSOURCES_DIR], [])
227   gl_COMMON
228   gl_source_base='lib'
229   gl_FUNC_ALLOCA
230   AC_LIBOBJ([openat-proc])
231   gl_FUNC_CALLOC_GNU
232   if test $REPLACE_CALLOC = 1; then
233     AC_LIBOBJ([calloc])
234   fi
235   gl_MODULE_INDICATOR([calloc-gnu])
236   gl_FUNC_CALLOC_POSIX
237   if test $REPLACE_CALLOC = 1; then
238     AC_LIBOBJ([calloc])
239   fi
240   gl_STDLIB_MODULE_INDICATOR([calloc-posix])
241   gl_UNISTD_MODULE_INDICATOR([chdir])
242   gl_FUNC_CHDIR_LONG
243   if test $gl_cv_have_arbitrary_file_name_length_limit = yes; then
244     AC_LIBOBJ([chdir-long])
245     gl_PREREQ_CHDIR_LONG
246   fi
247   gl_CLOCK_TIME
248   gl_MODULE_INDICATOR_FOR_TESTS([cloexec])
249   gl_FUNC_CLOSE
250   if test $REPLACE_CLOSE = 1; then
251     AC_LIBOBJ([close])
252   fi
253   gl_UNISTD_MODULE_INDICATOR([close])
254   gl_FUNC_CLOSEDIR
255   if test $HAVE_CLOSEDIR = 0 || test $REPLACE_CLOSEDIR = 1; then
256     AC_LIBOBJ([closedir])
257   fi
258   gl_DIRENT_MODULE_INDICATOR([closedir])
259   gl_DIRENT_H
260   gl_DIRENT_SAFER
261   gl_MODULE_INDICATOR([dirent-safer])
262   gl_FUNC_DIRFD
263   if test $ac_cv_func_dirfd = no && test $gl_cv_func_dirfd_macro = no \
264      || test $REPLACE_DIRFD = 1; then
265     AC_LIBOBJ([dirfd])
266     gl_PREREQ_DIRFD
267   fi
268   gl_DIRENT_MODULE_INDICATOR([dirfd])
269   gl_DIRNAME_LGPL
270   gl_DOUBLE_SLASH_ROOT
271   gl_FUNC_DUP
272   if test $REPLACE_DUP = 1; then
273     AC_LIBOBJ([dup])
274     gl_PREREQ_DUP
275   fi
276   gl_UNISTD_MODULE_INDICATOR([dup])
277   gl_FUNC_DUP2
278   if test $HAVE_DUP2 = 0 || test $REPLACE_DUP2 = 1; then
279     AC_LIBOBJ([dup2])
280     gl_PREREQ_DUP2
281   fi
282   gl_UNISTD_MODULE_INDICATOR([dup2])
283   gl_HEADER_ERRNO_H
284   gl_ERROR
285   if test $ac_cv_lib_error_at_line = no; then
286     AC_LIBOBJ([error])
287     gl_PREREQ_ERROR
288   fi
289   m4_ifdef([AM_XGETTEXT_OPTION],
290     [AM_][XGETTEXT_OPTION([--flag=error:3:c-format])
291      AM_][XGETTEXT_OPTION([--flag=error_at_line:5:c-format])])
292   AC_REQUIRE([gl_EXTERN_INLINE])
293   gl_FUNC_FCHDIR
294   gl_UNISTD_MODULE_INDICATOR([fchdir])
295   gl_FUNC_FCLOSE
296   if test $REPLACE_FCLOSE = 1; then
297     AC_LIBOBJ([fclose])
298   fi
299   gl_STDIO_MODULE_INDICATOR([fclose])
300   gl_FUNC_FCNTL
301   if test $HAVE_FCNTL = 0 || test $REPLACE_FCNTL = 1; then
302     AC_LIBOBJ([fcntl])
303   fi
304   gl_FCNTL_MODULE_INDICATOR([fcntl])
305   gl_FCNTL_H
306   gl_FCNTL_SAFER
307   gl_MODULE_INDICATOR([fcntl-safer])
308   gl_FUNC_FDATASYNC
309   if test $HAVE_FDATASYNC = 0; then
310     AC_LIBOBJ([fdatasync])
311   fi
312   gl_UNISTD_MODULE_INDICATOR([fdatasync])
313   gl_FUNC_FDOPENDIR
314   if test $HAVE_FDOPENDIR = 0 || test $REPLACE_FDOPENDIR = 1; then
315     AC_LIBOBJ([fdopendir])
316   fi
317   gl_DIRENT_MODULE_INDICATOR([fdopendir])
318   gl_MODULE_INDICATOR([fdopendir])
319   gl_FUNC_FFLUSH
320   if test $REPLACE_FFLUSH = 1; then
321     AC_LIBOBJ([fflush])
322     gl_PREREQ_FFLUSH
323   fi
324   gl_MODULE_INDICATOR([fflush])
325   gl_STDIO_MODULE_INDICATOR([fflush])
326   gl_FILE_NAME_CONCAT_LGPL
327   gl_FLOAT_H
328   if test $REPLACE_FLOAT_LDBL = 1; then
329     AC_LIBOBJ([float])
330   fi
331   if test $REPLACE_ITOLD = 1; then
332     AC_LIBOBJ([itold])
333   fi
334   gl_FUNC_FPRINTF_POSIX
335   gl_STDIO_MODULE_INDICATOR([fprintf-posix])
336   gl_FUNC_FPURGE
337   if test $HAVE_FPURGE = 0 || test $REPLACE_FPURGE = 1; then
338     AC_LIBOBJ([fpurge])
339   fi
340   gl_STDIO_MODULE_INDICATOR([fpurge])
341   gl_FUNC_FREADING
342   gl_FUNC_FREXP_NO_LIBM
343   if test $gl_func_frexp_no_libm != yes; then
344     AC_LIBOBJ([frexp])
345   fi
346   gl_MATH_MODULE_INDICATOR([frexp])
347   gl_FUNC_FREXPL_NO_LIBM
348   if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl_no_libm = no; then
349     AC_LIBOBJ([frexpl])
350   fi
351   gl_MATH_MODULE_INDICATOR([frexpl])
352   gl_FUNC_FSEEK
353   if test $REPLACE_FSEEK = 1; then
354     AC_LIBOBJ([fseek])
355   fi
356   gl_STDIO_MODULE_INDICATOR([fseek])
357   gl_FUNC_FSEEKO
358   if test $HAVE_FSEEKO = 0 || test $REPLACE_FSEEKO = 1; then
359     AC_LIBOBJ([fseeko])
360     gl_PREREQ_FSEEKO
361   fi
362   gl_STDIO_MODULE_INDICATOR([fseeko])
363   gl_FUNC_FSETERR
364   if test $ac_cv_func___fseterr = no; then
365     AC_LIBOBJ([fseterr])
366   fi
367   gl_FUNC_FSTAT
368   if test $REPLACE_FSTAT = 1; then
369     AC_LIBOBJ([fstat])
370     gl_PREREQ_FSTAT
371   fi
372   gl_SYS_STAT_MODULE_INDICATOR([fstat])
373   gl_FUNC_FSTATAT
374   if test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1; then
375     AC_LIBOBJ([fstatat])
376   fi
377   gl_SYS_STAT_MODULE_INDICATOR([fstatat])
378   gl_FUNC_FSYNC
379   if test $HAVE_FSYNC = 0; then
380     AC_LIBOBJ([fsync])
381     gl_PREREQ_FSYNC
382   fi
383   gl_UNISTD_MODULE_INDICATOR([fsync])
384   gl_FUNC_FTELL
385   if test $REPLACE_FTELL = 1; then
386     AC_LIBOBJ([ftell])
387   fi
388   gl_STDIO_MODULE_INDICATOR([ftell])
389   gl_FUNC_FTELLO
390   if test $HAVE_FTELLO = 0 || test $REPLACE_FTELLO = 1; then
391     AC_LIBOBJ([ftello])
392     gl_PREREQ_FTELLO
393   fi
394   gl_STDIO_MODULE_INDICATOR([ftello])
395   gl_FUNC_GETCWD_LGPL
396   if test $REPLACE_GETCWD = 1; then
397     AC_LIBOBJ([getcwd-lgpl])
398   fi
399   gl_UNISTD_MODULE_INDICATOR([getcwd])
400   gl_FUNC_GETDTABLESIZE
401   if test $HAVE_GETDTABLESIZE = 0 || test $REPLACE_GETDTABLESIZE = 1; then
402     AC_LIBOBJ([getdtablesize])
403     gl_PREREQ_GETDTABLESIZE
404   fi
405   gl_UNISTD_MODULE_INDICATOR([getdtablesize])
406   gl_FUNC_GETOPT_GNU
407   if test $REPLACE_GETOPT = 1; then
408     AC_LIBOBJ([getopt])
409     AC_LIBOBJ([getopt1])
410     gl_PREREQ_GETOPT
411     dnl Arrange for unistd.h to include getopt.h.
412     GNULIB_GL_UNISTD_H_GETOPT=1
413   fi
414   AC_SUBST([GNULIB_GL_UNISTD_H_GETOPT])
415   gl_MODULE_INDICATOR_FOR_TESTS([getopt-gnu])
416   gl_FUNC_GETOPT_POSIX
417   if test $REPLACE_GETOPT = 1; then
418     AC_LIBOBJ([getopt])
419     AC_LIBOBJ([getopt1])
420     gl_PREREQ_GETOPT
421     dnl Arrange for unistd.h to include getopt.h.
422     GNULIB_GL_UNISTD_H_GETOPT=1
423   fi
424   AC_SUBST([GNULIB_GL_UNISTD_H_GETOPT])
425   AC_SUBST([LIBINTL])
426   AC_SUBST([LTLIBINTL])
427   gl_GETTIME
428   gl_FUNC_GETTIMEOFDAY
429   if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
430     AC_LIBOBJ([gettimeofday])
431     gl_PREREQ_GETTIMEOFDAY
432   fi
433   gl_SYS_TIME_MODULE_INDICATOR([gettimeofday])
434   gl_GNU_MAKE
435   # Autoconf 2.61a.99 and earlier don't support linking a file only
436   # in VPATH builds.  But since GNUmakefile is for maintainer use
437   # only, it does not matter if we skip the link with older autoconf.
438   # Automake 1.10.1 and earlier try to remove GNUmakefile in non-VPATH
439   # builds, so use a shell variable to bypass this.
440   GNUmakefile=GNUmakefile
441   m4_if(m4_version_compare([2.61a.100],
442           m4_defn([m4_PACKAGE_VERSION])), [1], [],
443         [AC_CONFIG_LINKS([$GNUmakefile:$GNUmakefile], [],
444           [GNUmakefile=$GNUmakefile])])
445   gl_FUNC_ISNAND_NO_LIBM
446   if test $gl_func_isnand_no_libm != yes; then
447     AC_LIBOBJ([isnand])
448     gl_PREREQ_ISNAND
449   fi
450   gl_FUNC_ISNANF_NO_LIBM
451   if test $gl_func_isnanf_no_libm != yes; then
452     AC_LIBOBJ([isnanf])
453     gl_PREREQ_ISNANF
454   fi
455   gl_FUNC_ISNANL_NO_LIBM
456   if test $gl_func_isnanl_no_libm != yes; then
457     AC_LIBOBJ([isnanl])
458     gl_PREREQ_ISNANL
459   fi
460   AC_REQUIRE([gl_LARGEFILE])
461   gl_IGNORE_UNUSED_LIBRARIES
462   gl_LOCK
463   gl_MODULE_INDICATOR([lock])
464   gl_FUNC_LSEEK
465   if test $REPLACE_LSEEK = 1; then
466     AC_LIBOBJ([lseek])
467   fi
468   gl_UNISTD_MODULE_INDICATOR([lseek])
469   gl_FUNC_LSTAT
470   if test $REPLACE_LSTAT = 1; then
471     AC_LIBOBJ([lstat])
472     gl_PREREQ_LSTAT
473   fi
474   gl_SYS_STAT_MODULE_INDICATOR([lstat])
475   AC_CONFIG_COMMANDS_PRE([m4_ifdef([AH_HEADER],
476     [AC_SUBST([CONFIG_INCLUDE], m4_defn([AH_HEADER]))])])
477   AC_REQUIRE([AC_PROG_SED])
478   gl_FUNC_MALLOC_GNU
479   if test $REPLACE_MALLOC = 1; then
480     AC_LIBOBJ([malloc])
481   fi
482   gl_MODULE_INDICATOR([malloc-gnu])
483   gl_FUNC_MALLOC_POSIX
484   if test $REPLACE_MALLOC = 1; then
485     AC_LIBOBJ([malloc])
486   fi
487   gl_STDLIB_MODULE_INDICATOR([malloc-posix])
488   gl_MATH_H
489   gl_FUNC_MEMCHR
490   if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
491     AC_LIBOBJ([memchr])
492     gl_PREREQ_MEMCHR
493   fi
494   gl_STRING_MODULE_INDICATOR([memchr])
495   gl_FUNC_MEMPCPY
496   if test $HAVE_MEMPCPY = 0; then
497     AC_LIBOBJ([mempcpy])
498     gl_PREREQ_MEMPCPY
499   fi
500   gl_STRING_MODULE_INDICATOR([mempcpy])
501   gl_FUNC_MEMRCHR
502   if test $ac_cv_func_memrchr = no; then
503     AC_LIBOBJ([memrchr])
504     gl_PREREQ_MEMRCHR
505   fi
506   gl_STRING_MODULE_INDICATOR([memrchr])
507   AC_REQUIRE([gl_MSVC_INVAL])
508   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
509     AC_LIBOBJ([msvc-inval])
510   fi
511   AC_REQUIRE([gl_MSVC_NOTHROW])
512   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
513     AC_LIBOBJ([msvc-nothrow])
514   fi
515   gl_MULTIARCH
516   gl_FUNC_OPEN
517   if test $REPLACE_OPEN = 1; then
518     AC_LIBOBJ([open])
519     gl_PREREQ_OPEN
520   fi
521   gl_FCNTL_MODULE_INDICATOR([open])
522   gl_FUNC_OPENAT
523   if test $HAVE_OPENAT = 0 || test $REPLACE_OPENAT = 1; then
524     AC_LIBOBJ([openat])
525     gl_PREREQ_OPENAT
526   fi
527   gl_MODULE_INDICATOR([openat]) dnl for lib/getcwd.c
528   gl_FCNTL_MODULE_INDICATOR([openat])
529   gl_OPENAT_SAFER
530   gl_MODULE_INDICATOR([openat-safer])
531   gl_FUNC_OPENDIR
532   if test $HAVE_OPENDIR = 0 || test $REPLACE_OPENDIR = 1; then
533     AC_LIBOBJ([opendir])
534   fi
535   gl_DIRENT_MODULE_INDICATOR([opendir])
536   gl_PATHMAX
537   gl_FUNC_PERROR
538   if test $REPLACE_PERROR = 1; then
539     AC_LIBOBJ([perror])
540   fi
541   gl_STRING_MODULE_INDICATOR([perror])
542   gl_FUNC_PRINTF_FREXP
543   gl_FUNC_PRINTF_FREXPL
544   gl_FUNC_PRINTF_POSIX
545   gl_STDIO_MODULE_INDICATOR([printf-posix])
546   m4_divert_text([INIT_PREPARE], [gl_printf_safe=yes])
547   gl_FUNC_READDIR
548   if test $HAVE_READDIR = 0; then
549     AC_LIBOBJ([readdir])
550   fi
551   gl_DIRENT_MODULE_INDICATOR([readdir])
552   gl_FUNC_REALLOC_GNU
553   if test $REPLACE_REALLOC = 1; then
554     AC_LIBOBJ([realloc])
555   fi
556   gl_MODULE_INDICATOR([realloc-gnu])
557   gl_FUNC_REALLOC_POSIX
558   if test $REPLACE_REALLOC = 1; then
559     AC_LIBOBJ([realloc])
560   fi
561   gl_STDLIB_MODULE_INDICATOR([realloc-posix])
562   gl_FUNC_RMDIR
563   if test $REPLACE_RMDIR = 1; then
564     AC_LIBOBJ([rmdir])
565   fi
566   gl_UNISTD_MODULE_INDICATOR([rmdir])
567   gl_SAVE_CWD
568   gl_SAVEDIR
569   gl_SIGNBIT
570   if test $REPLACE_SIGNBIT = 1; then
571     AC_LIBOBJ([signbitf])
572     AC_LIBOBJ([signbitd])
573     AC_LIBOBJ([signbitl])
574   fi
575   gl_MATH_MODULE_INDICATOR([signbit])
576   gl_SIZE_MAX
577   gt_TYPE_SSIZE_T
578   gl_FUNC_STAT
579   if test $REPLACE_STAT = 1; then
580     AC_LIBOBJ([stat])
581     gl_PREREQ_STAT
582   fi
583   gl_SYS_STAT_MODULE_INDICATOR([stat])
584   gl_STAT_TIME
585   gl_STAT_BIRTHTIME
586   gl_MODULE_INDICATOR([statat]) dnl for lib/openat.h
587   AM_STDBOOL_H
588   gl_STDDEF_H
589   gl_STDINT_H
590   gl_STDIO_H
591   gl_STDLIB_H
592   gl_FUNC_STPCPY
593   if test $HAVE_STPCPY = 0; then
594     AC_LIBOBJ([stpcpy])
595     gl_PREREQ_STPCPY
596   fi
597   gl_STRING_MODULE_INDICATOR([stpcpy])
598   gl_FUNC_STRDUP_POSIX
599   if test $ac_cv_func_strdup = no || test $REPLACE_STRDUP = 1; then
600     AC_LIBOBJ([strdup])
601     gl_PREREQ_STRDUP
602   fi
603   gl_STRING_MODULE_INDICATOR([strdup])
604   gl_FUNC_STRERROR
605   if test $REPLACE_STRERROR = 1; then
606     AC_LIBOBJ([strerror])
607   fi
608   gl_MODULE_INDICATOR([strerror])
609   gl_STRING_MODULE_INDICATOR([strerror])
610   AC_REQUIRE([gl_HEADER_ERRNO_H])
611   AC_REQUIRE([gl_FUNC_STRERROR_0])
612   if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then
613     AC_LIBOBJ([strerror-override])
614     gl_PREREQ_SYS_H_WINSOCK2
615   fi
616   gl_FUNC_STRERROR_R
617   if test $HAVE_DECL_STRERROR_R = 0 || test $REPLACE_STRERROR_R = 1; then
618     AC_LIBOBJ([strerror_r])
619     gl_PREREQ_STRERROR_R
620   fi
621   gl_STRING_MODULE_INDICATOR([strerror_r])
622   gl_HEADER_STRING_H
623   gl_HEADER_SYS_STAT_H
624   AC_PROG_MKDIR_P
625   gl_HEADER_SYS_TIME_H
626   AC_PROG_MKDIR_P
627   gl_SYS_TYPES_H
628   AC_PROG_MKDIR_P
629   gl_THREADLIB
630   gl_HEADER_TIME_H
631   gl_TIMESPEC
632   gl_UNISTD_H
633   gl_UNISTD_SAFER
634   gl_FUNC_UNLINK
635   if test $REPLACE_UNLINK = 1; then
636     AC_LIBOBJ([unlink])
637   fi
638   gl_UNISTD_MODULE_INDICATOR([unlink])
639   gl_FUNC_UNLINKAT
640   if test $HAVE_UNLINKAT = 0 || test $REPLACE_UNLINKAT = 1; then
641     AC_LIBOBJ([unlinkat])
642   fi
643   gl_UNISTD_MODULE_INDICATOR([unlinkat])
644   gl_UTIMENS
645   gl_FUNC_VASNPRINTF
646   gl_FUNC_VFPRINTF_POSIX
647   gl_STDIO_MODULE_INDICATOR([vfprintf-posix])
648   gl_WCHAR_H
649   gl_XALLOC
650   gl_XSIZE
651   gl_YESNO
652   # End of code from modules
653   m4_ifval(gl_LIBSOURCES_LIST, [
654     m4_syscmd([test ! -d ]m4_defn([gl_LIBSOURCES_DIR])[ ||
655       for gl_file in ]gl_LIBSOURCES_LIST[ ; do
656         if test ! -r ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file ; then
657           echo "missing file ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file" >&2
658           exit 1
659         fi
660       done])dnl
661       m4_if(m4_sysval, [0], [],
662         [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
663   ])
664   m4_popdef([gl_LIBSOURCES_DIR])
665   m4_popdef([gl_LIBSOURCES_LIST])
666   m4_popdef([AC_LIBSOURCES])
667   m4_popdef([AC_REPLACE_FUNCS])
668   m4_popdef([AC_LIBOBJ])
669   AC_CONFIG_COMMANDS_PRE([
670     gl_libobjs=
671     gl_ltlibobjs=
672     if test -n "$gl_LIBOBJS"; then
673       # Remove the extension.
674       sed_drop_objext='s/\.o$//;s/\.obj$//'
675       for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
676         gl_libobjs="$gl_libobjs $i.$ac_objext"
677         gl_ltlibobjs="$gl_ltlibobjs $i.lo"
678       done
679     fi
680     AC_SUBST([gl_LIBOBJS], [$gl_libobjs])
681     AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs])
682   ])
683   gltests_libdeps=
684   gltests_ltlibdeps=
685   m4_pushdef([AC_LIBOBJ], m4_defn([gltests_LIBOBJ]))
686   m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gltests_REPLACE_FUNCS]))
687   m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES]))
688   m4_pushdef([gltests_LIBSOURCES_LIST], [])
689   m4_pushdef([gltests_LIBSOURCES_DIR], [])
690   gl_COMMON
691   gl_source_base='tests'
692 changequote(,)dnl
693   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
694 changequote([, ])dnl
695   AC_SUBST([gltests_WITNESS])
696   gl_module_indicator_condition=$gltests_WITNESS
697   m4_pushdef([gl_MODULE_INDICATOR_CONDITION], [$gl_module_indicator_condition])
698   m4_popdef([gl_MODULE_INDICATOR_CONDITION])
699   m4_ifval(gltests_LIBSOURCES_LIST, [
700     m4_syscmd([test ! -d ]m4_defn([gltests_LIBSOURCES_DIR])[ ||
701       for gl_file in ]gltests_LIBSOURCES_LIST[ ; do
702         if test ! -r ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file ; then
703           echo "missing file ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file" >&2
704           exit 1
705         fi
706       done])dnl
707       m4_if(m4_sysval, [0], [],
708         [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
709   ])
710   m4_popdef([gltests_LIBSOURCES_DIR])
711   m4_popdef([gltests_LIBSOURCES_LIST])
712   m4_popdef([AC_LIBSOURCES])
713   m4_popdef([AC_REPLACE_FUNCS])
714   m4_popdef([AC_LIBOBJ])
715   AC_CONFIG_COMMANDS_PRE([
716     gltests_libobjs=
717     gltests_ltlibobjs=
718     if test -n "$gltests_LIBOBJS"; then
719       # Remove the extension.
720       sed_drop_objext='s/\.o$//;s/\.obj$//'
721       for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
722         gltests_libobjs="$gltests_libobjs $i.$ac_objext"
723         gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
724       done
725     fi
726     AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs])
727     AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs])
728   ])
729   LIBGZIP_LIBDEPS="$gl_libdeps"
730   AC_SUBST([LIBGZIP_LIBDEPS])
731   LIBGZIP_LTLIBDEPS="$gl_ltlibdeps"
732   AC_SUBST([LIBGZIP_LTLIBDEPS])
733 ])
734
735 # Like AC_LIBOBJ, except that the module name goes
736 # into gl_LIBOBJS instead of into LIBOBJS.
737 AC_DEFUN([gl_LIBOBJ], [
738   AS_LITERAL_IF([$1], [gl_LIBSOURCES([$1.c])])dnl
739   gl_LIBOBJS="$gl_LIBOBJS $1.$ac_objext"
740 ])
741
742 # Like AC_REPLACE_FUNCS, except that the module name goes
743 # into gl_LIBOBJS instead of into LIBOBJS.
744 AC_DEFUN([gl_REPLACE_FUNCS], [
745   m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
746   AC_CHECK_FUNCS([$1], , [gl_LIBOBJ($ac_func)])
747 ])
748
749 # Like AC_LIBSOURCES, except the directory where the source file is
750 # expected is derived from the gnulib-tool parameterization,
751 # and alloca is special cased (for the alloca-opt module).
752 # We could also entirely rely on EXTRA_lib..._SOURCES.
753 AC_DEFUN([gl_LIBSOURCES], [
754   m4_foreach([_gl_NAME], [$1], [
755     m4_if(_gl_NAME, [alloca.c], [], [
756       m4_define([gl_LIBSOURCES_DIR], [lib])
757       m4_append([gl_LIBSOURCES_LIST], _gl_NAME, [ ])
758     ])
759   ])
760 ])
761
762 # Like AC_LIBOBJ, except that the module name goes
763 # into gltests_LIBOBJS instead of into LIBOBJS.
764 AC_DEFUN([gltests_LIBOBJ], [
765   AS_LITERAL_IF([$1], [gltests_LIBSOURCES([$1.c])])dnl
766   gltests_LIBOBJS="$gltests_LIBOBJS $1.$ac_objext"
767 ])
768
769 # Like AC_REPLACE_FUNCS, except that the module name goes
770 # into gltests_LIBOBJS instead of into LIBOBJS.
771 AC_DEFUN([gltests_REPLACE_FUNCS], [
772   m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
773   AC_CHECK_FUNCS([$1], , [gltests_LIBOBJ($ac_func)])
774 ])
775
776 # Like AC_LIBSOURCES, except the directory where the source file is
777 # expected is derived from the gnulib-tool parameterization,
778 # and alloca is special cased (for the alloca-opt module).
779 # We could also entirely rely on EXTRA_lib..._SOURCES.
780 AC_DEFUN([gltests_LIBSOURCES], [
781   m4_foreach([_gl_NAME], [$1], [
782     m4_if(_gl_NAME, [alloca.c], [], [
783       m4_define([gltests_LIBSOURCES_DIR], [tests])
784       m4_append([gltests_LIBSOURCES_LIST], _gl_NAME, [ ])
785     ])
786   ])
787 ])
788
789 # This macro records the list of files which have been installed by
790 # gnulib-tool and may be removed by future gnulib-tool invocations.
791 AC_DEFUN([gl_FILE_LIST], [
792   build-aux/announce-gen
793   build-aux/config.rpath
794   build-aux/do-release-commit-and-tag
795   build-aux/gendocs.sh
796   build-aux/git-version-gen
797   build-aux/gitlog-to-changelog
798   build-aux/gnu-web-doc-update
799   build-aux/gnupload
800   build-aux/snippet/_Noreturn.h
801   build-aux/snippet/arg-nonnull.h
802   build-aux/snippet/c++defs.h
803   build-aux/snippet/unused-parameter.h
804   build-aux/snippet/warn-on-use.h
805   build-aux/update-copyright
806   build-aux/useless-if-before-free
807   build-aux/vc-list-files
808   doc/fdl.texi
809   doc/gendocs_template
810   doc/gendocs_template_min
811   lib/alloca.in.h
812   lib/asnprintf.c
813   lib/assure.h
814   lib/at-func.c
815   lib/basename-lgpl.c
816   lib/calloc.c
817   lib/chdir-long.c
818   lib/chdir-long.h
819   lib/cloexec.c
820   lib/cloexec.h
821   lib/close.c
822   lib/closedir.c
823   lib/creat-safer.c
824   lib/dirent--.h
825   lib/dirent-private.h
826   lib/dirent-safer.h
827   lib/dirent.in.h
828   lib/dirfd.c
829   lib/dirname-lgpl.c
830   lib/dirname.h
831   lib/dosname.h
832   lib/dup-safer.c
833   lib/dup.c
834   lib/dup2.c
835   lib/errno.in.h
836   lib/error.c
837   lib/error.h
838   lib/exitfail.c
839   lib/exitfail.h
840   lib/fchdir.c
841   lib/fclose.c
842   lib/fcntl--.h
843   lib/fcntl-safer.h
844   lib/fcntl.c
845   lib/fcntl.in.h
846   lib/fd-hook.c
847   lib/fd-hook.h
848   lib/fd-safer.c
849   lib/fdatasync.c
850   lib/fdopendir.c
851   lib/fflush.c
852   lib/filename.h
853   lib/filenamecat-lgpl.c
854   lib/filenamecat.h
855   lib/float+.h
856   lib/float.c
857   lib/float.in.h
858   lib/fprintf.c
859   lib/fpucw.h
860   lib/fpurge.c
861   lib/freading.c
862   lib/freading.h
863   lib/frexp.c
864   lib/frexpl.c
865   lib/fseek.c
866   lib/fseeko.c
867   lib/fseterr.c
868   lib/fseterr.h
869   lib/fstat.c
870   lib/fstatat.c
871   lib/fsync.c
872   lib/ftell.c
873   lib/ftello.c
874   lib/getcwd-lgpl.c
875   lib/getdtablesize.c
876   lib/getopt.c
877   lib/getopt.in.h
878   lib/getopt1.c
879   lib/getopt_int.h
880   lib/gettext.h
881   lib/gettime.c
882   lib/gettimeofday.c
883   lib/glthread/lock.c
884   lib/glthread/lock.h
885   lib/glthread/threadlib.c
886   lib/ignore-value.h
887   lib/intprops.h
888   lib/isnan.c
889   lib/isnand-nolibm.h
890   lib/isnand.c
891   lib/isnanf-nolibm.h
892   lib/isnanf.c
893   lib/isnanl-nolibm.h
894   lib/isnanl.c
895   lib/itold.c
896   lib/lseek.c
897   lib/lstat.c
898   lib/malloc.c
899   lib/math.c
900   lib/math.in.h
901   lib/memchr.c
902   lib/memchr.valgrind
903   lib/mempcpy.c
904   lib/memrchr.c
905   lib/msvc-inval.c
906   lib/msvc-inval.h
907   lib/msvc-nothrow.c
908   lib/msvc-nothrow.h
909   lib/open-safer.c
910   lib/open.c
911   lib/openat-die.c
912   lib/openat-priv.h
913   lib/openat-proc.c
914   lib/openat-safer.c
915   lib/openat.c
916   lib/openat.h
917   lib/opendir-safer.c
918   lib/opendir.c
919   lib/pathmax.h
920   lib/perror.c
921   lib/pipe-safer.c
922   lib/printf-args.c
923   lib/printf-args.h
924   lib/printf-frexp.c
925   lib/printf-frexp.h
926   lib/printf-frexpl.c
927   lib/printf-frexpl.h
928   lib/printf-parse.c
929   lib/printf-parse.h
930   lib/printf.c
931   lib/readdir.c
932   lib/realloc.c
933   lib/rmdir.c
934   lib/save-cwd.c
935   lib/save-cwd.h
936   lib/savedir.c
937   lib/savedir.h
938   lib/signbitd.c
939   lib/signbitf.c
940   lib/signbitl.c
941   lib/size_max.h
942   lib/stat-time.c
943   lib/stat-time.h
944   lib/stat.c
945   lib/statat.c
946   lib/stdbool.in.h
947   lib/stddef.in.h
948   lib/stdint.in.h
949   lib/stdio-impl.h
950   lib/stdio.in.h
951   lib/stdlib.in.h
952   lib/stpcpy.c
953   lib/strdup.c
954   lib/strerror-override.c
955   lib/strerror-override.h
956   lib/strerror.c
957   lib/strerror_r.c
958   lib/string.in.h
959   lib/stripslash.c
960   lib/sys_stat.in.h
961   lib/sys_time.in.h
962   lib/sys_types.in.h
963   lib/time.in.h
964   lib/timespec.c
965   lib/timespec.h
966   lib/unistd--.h
967   lib/unistd-safer.h
968   lib/unistd.c
969   lib/unistd.in.h
970   lib/unlink.c
971   lib/unlinkat.c
972   lib/utimens.c
973   lib/utimens.h
974   lib/vasnprintf.c
975   lib/vasnprintf.h
976   lib/verify.h
977   lib/vfprintf.c
978   lib/wchar.in.h
979   lib/xalloc-die.c
980   lib/xalloc-oversized.h
981   lib/xalloc.h
982   lib/xmalloc.c
983   lib/xsize.c
984   lib/xsize.h
985   lib/yesno.c
986   lib/yesno.h
987   m4/00gnulib.m4
988   m4/absolute-header.m4
989   m4/alloca.m4
990   m4/asm-underscore.m4
991   m4/calloc.m4
992   m4/chdir-long.m4
993   m4/clock_time.m4
994   m4/close.m4
995   m4/closedir.m4
996   m4/dirent-safer.m4
997   m4/dirent_h.m4
998   m4/dirfd.m4
999   m4/dirname.m4
1000   m4/double-slash-root.m4
1001   m4/dup.m4
1002   m4/dup2.m4
1003   m4/errno_h.m4
1004   m4/error.m4
1005   m4/exponentd.m4
1006   m4/exponentf.m4
1007   m4/exponentl.m4
1008   m4/extensions.m4
1009   m4/extern-inline.m4
1010   m4/fchdir.m4
1011   m4/fclose.m4
1012   m4/fcntl-o.m4
1013   m4/fcntl-safer.m4
1014   m4/fcntl.m4
1015   m4/fcntl_h.m4
1016   m4/fdatasync.m4
1017   m4/fdopendir.m4
1018   m4/fflush.m4
1019   m4/filenamecat.m4
1020   m4/float_h.m4
1021   m4/fpieee.m4
1022   m4/fprintf-posix.m4
1023   m4/fpurge.m4
1024   m4/freading.m4
1025   m4/frexp.m4
1026   m4/frexpl.m4
1027   m4/fseek.m4
1028   m4/fseeko.m4
1029   m4/fseterr.m4
1030   m4/fstat.m4
1031   m4/fstatat.m4
1032   m4/fsync.m4
1033   m4/ftell.m4
1034   m4/ftello.m4
1035   m4/getcwd.m4
1036   m4/getdtablesize.m4
1037   m4/getopt.m4
1038   m4/gettime.m4
1039   m4/gettimeofday.m4
1040   m4/gnu-make.m4
1041   m4/gnulib-common.m4
1042   m4/include_next.m4
1043   m4/intmax_t.m4
1044   m4/inttypes_h.m4
1045   m4/isnand.m4
1046   m4/isnanf.m4
1047   m4/isnanl.m4
1048   m4/largefile.m4
1049   m4/ldexpl.m4
1050   m4/lib-ignore.m4
1051   m4/lib-ld.m4
1052   m4/lib-link.m4
1053   m4/lib-prefix.m4
1054   m4/lock.m4
1055   m4/longlong.m4
1056   m4/lseek.m4
1057   m4/lstat.m4
1058   m4/malloc.m4
1059   m4/manywarnings.m4
1060   m4/math_h.m4
1061   m4/memchr.m4
1062   m4/mempcpy.m4
1063   m4/memrchr.m4
1064   m4/mmap-anon.m4
1065   m4/mode_t.m4
1066   m4/msvc-inval.m4
1067   m4/msvc-nothrow.m4
1068   m4/multiarch.m4
1069   m4/nocrash.m4
1070   m4/off_t.m4
1071   m4/open.m4
1072   m4/openat.m4
1073   m4/opendir.m4
1074   m4/pathmax.m4
1075   m4/perror.m4
1076   m4/printf-frexp.m4
1077   m4/printf-frexpl.m4
1078   m4/printf-posix-rpl.m4
1079   m4/printf.m4
1080   m4/readdir.m4
1081   m4/realloc.m4
1082   m4/rmdir.m4
1083   m4/save-cwd.m4
1084   m4/savedir.m4
1085   m4/signbit.m4
1086   m4/size_max.m4
1087   m4/ssize_t.m4
1088   m4/stat-time.m4
1089   m4/stat.m4
1090   m4/stdbool.m4
1091   m4/stddef_h.m4
1092   m4/stdint.m4
1093   m4/stdint_h.m4
1094   m4/stdio_h.m4
1095   m4/stdlib_h.m4
1096   m4/stpcpy.m4
1097   m4/strdup.m4
1098   m4/strerror.m4
1099   m4/strerror_r.m4
1100   m4/string_h.m4
1101   m4/sys_socket_h.m4
1102   m4/sys_stat_h.m4
1103   m4/sys_time_h.m4
1104   m4/sys_types_h.m4
1105   m4/threadlib.m4
1106   m4/time_h.m4
1107   m4/timespec.m4
1108   m4/unistd-safer.m4
1109   m4/unistd_h.m4
1110   m4/unlink.m4
1111   m4/unlinkat.m4
1112   m4/utimbuf.m4
1113   m4/utimens.m4
1114   m4/utimes.m4
1115   m4/vasnprintf.m4
1116   m4/vfprintf-posix.m4
1117   m4/warn-on-use.m4
1118   m4/warnings.m4
1119   m4/wchar_h.m4
1120   m4/wchar_t.m4
1121   m4/wint_t.m4
1122   m4/xalloc.m4
1123   m4/xsize.m4
1124   m4/yesno.m4
1125   top/GNUmakefile
1126   top/README-release
1127   top/maint.mk
1128 ])