Imported Upstream version 1.3.14
[debian/gzip] / m4 / gnulib-comp.m4
1 # -*- buffer-read-only: t -*- vi: set ro:
2 # DO NOT EDIT! GENERATED AUTOMATICALLY!
3 # DO NOT EDIT! GENERATED AUTOMATICALLY!
4 # Copyright (C) 2002-2009 Free Software Foundation, Inc.
5 #
6 # This file is free software, distributed under the terms of the GNU
7 # General Public License.  As a special exception to the GNU General
8 # Public License, this file may be distributed as part of a program
9 # that contains a configuration script generated by Autoconf, under
10 # the same distribution terms as the rest of that program.
11 #
12 # Generated by gnulib-tool.
13 #
14 # This file represents the compiled summary of the specification in
15 # gnulib-cache.m4. It lists the computed macro invocations that need
16 # to be invoked from configure.ac.
17 # In projects using CVS, this file can be treated like other built files.
18
19
20 # This macro should be invoked from ./configure.ac, in the section
21 # "Checks for programs", right after AC_PROG_CC, and certainly before
22 # any checks for libraries, header files, types and library functions.
23 AC_DEFUN([gl_EARLY],
24 [
25   m4_pattern_forbid([^gl_[A-Z]])dnl the gnulib macro namespace
26   m4_pattern_allow([^gl_ES$])dnl a valid locale name
27   m4_pattern_allow([^gl_LIBOBJS$])dnl a variable
28   m4_pattern_allow([^gl_LTLIBOBJS$])dnl a variable
29   AC_REQUIRE([AC_PROG_RANLIB])
30   AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
31   AC_REQUIRE([AC_FUNC_FSEEKO])
32   AC_REQUIRE([gl_FP_IEEE])
33   AC_REQUIRE([AC_FUNC_FSEEKO])
34   AC_REQUIRE([AC_FUNC_FSEEKO])
35 ])
36
37 # This macro should be invoked from ./configure.ac, in the section
38 # "Check for header files, types and library functions".
39 AC_DEFUN([gl_INIT],
40 [
41   AM_CONDITIONAL([GL_COND_LIBTOOL], [false])
42   gl_cond_libtool=false
43   gl_libdeps=
44   gl_ltlibdeps=
45   m4_pushdef([AC_LIBOBJ], m4_defn([gl_LIBOBJ]))
46   m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gl_REPLACE_FUNCS]))
47   m4_pushdef([AC_LIBSOURCES], m4_defn([gl_LIBSOURCES]))
48   m4_pushdef([gl_LIBSOURCES_LIST], [])
49   m4_pushdef([gl_LIBSOURCES_DIR], [])
50   gl_COMMON
51   gl_source_base='lib'
52   gl_FUNC_ALLOCA
53   AC_FUNC_CALLOC
54   gl_FUNC_CALLOC_POSIX
55   gl_STDLIB_MODULE_INDICATOR([calloc-posix])
56   gl_CLOCK_TIME
57   gl_FUNC_CLOSE
58   gl_UNISTD_MODULE_INDICATOR([close])
59   gl_CLOSE_STREAM
60   gl_MODULE_INDICATOR([close-stream])
61   gl_CLOSEIN
62   gl_CLOSEOUT
63   gl_FUNC_DUP2
64   gl_UNISTD_MODULE_INDICATOR([dup2])
65   gl_HEADER_ERRNO_H
66   gl_ERROR
67   m4_ifdef([AM_XGETTEXT_OPTION],
68     [AM_][XGETTEXT_OPTION([--flag=error:3:c-format])
69      AM_][XGETTEXT_OPTION([--flag=error_at_line:5:c-format])])
70   gl_EXITFAIL
71   gl_FUNC_FCLOSE
72   gl_STDIO_MODULE_INDICATOR([fclose])
73   gl_FCNTL_H
74   gl_FCNTL_SAFER
75   gl_MODULE_INDICATOR([fcntl-safer])
76   gl_FUNC_FFLUSH
77   gl_STDIO_MODULE_INDICATOR([fflush])
78   gl_FLOAT_H
79   gl_FUNC_FPENDING
80   gl_FUNC_FPRINTF_POSIX
81   gl_STDIO_MODULE_INDICATOR([fprintf-posix])
82   gl_FUNC_FPURGE
83   gl_STDIO_MODULE_INDICATOR([fpurge])
84   gl_FUNC_FREADING
85   gl_FUNC_FREXP_NO_LIBM
86   gl_MATH_MODULE_INDICATOR([frexp])
87   gl_FUNC_FREXPL_NO_LIBM
88   gl_MATH_MODULE_INDICATOR([frexpl])
89   gl_FUNC_FSEEKO
90   gl_STDIO_MODULE_INDICATOR([fseeko])
91   gl_FUNC_FTELLO
92   gl_STDIO_MODULE_INDICATOR([ftello])
93   gl_FUNC_GETOPT_GNU
94   gl_MODULE_INDICATOR([getopt-gnu])
95   gl_FUNC_GETOPT_POSIX
96   gl_FUNC_GETPAGESIZE
97   gl_UNISTD_MODULE_INDICATOR([getpagesize])
98   AC_SUBST([LIBINTL])
99   AC_SUBST([LTLIBINTL])
100   gl_GETTIME
101   gl_FUNC_GETTIMEOFDAY
102   gl_GNU_MAKE
103   # Autoconf 2.61a.99 and earlier don't support linking a file only
104   # in VPATH builds.  But since GNUmakefile is for maintainer use
105   # only, it does not matter if we skip the link with older autoconf.
106   # Automake 1.10.1 and earlier try to remove GNUmakefile in non-VPATH
107   # builds, so use a shell variable to bypass this.
108   GNUmakefile=GNUmakefile
109   m4_if(m4_version_compare([2.61a.100],
110         m4_defn([m4_PACKAGE_VERSION])), [1], [],
111         [AC_CONFIG_LINKS([$GNUmakefile:$GNUmakefile], [],
112         [GNUmakefile=$GNUmakefile])])
113   gl_INLINE
114   gl_FUNC_ISNAND_NO_LIBM
115   gl_FUNC_ISNANF_NO_LIBM
116   gl_FUNC_ISNANL_NO_LIBM
117   gl_LOCALCHARSET
118   LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(top_builddir)/$gl_source_base\""
119   AC_SUBST([LOCALCHARSET_TESTS_ENVIRONMENT])
120   gl_FUNC_LSEEK
121   gl_UNISTD_MODULE_INDICATOR([lseek])
122   gl_FUNC_LSTAT
123   gl_SYS_STAT_MODULE_INDICATOR([lstat])
124   AC_FUNC_MALLOC
125   AC_DEFINE([GNULIB_MALLOC_GNU], 1, [Define to indicate the 'malloc' module.])
126   gl_FUNC_MALLOC_POSIX
127   gl_STDLIB_MODULE_INDICATOR([malloc-posix])
128   gl_MATH_H
129   gl_FUNC_MBRTOWC
130   gl_WCHAR_MODULE_INDICATOR([mbrtowc])
131   gl_FUNC_MBSINIT
132   gl_WCHAR_MODULE_INDICATOR([mbsinit])
133   gl_FUNC_MEMCHR
134   gl_STRING_MODULE_INDICATOR([memchr])
135   gl_MULTIARCH
136   gl_FUNC_OPEN
137   gl_MODULE_INDICATOR([open])
138   gl_FCNTL_MODULE_INDICATOR([open])
139   gl_FUNC_PERROR
140   gl_STRING_MODULE_INDICATOR([perror])
141   gl_FUNC_PRINTF_FREXP
142   gl_FUNC_PRINTF_FREXPL
143   gl_FUNC_PRINTF_POSIX
144   gl_STDIO_MODULE_INDICATOR([printf-posix])
145   m4_divert_text([INIT_PREPARE], [gl_printf_safe=yes])
146   gl_QUOTEARG
147   AC_FUNC_REALLOC
148   AC_DEFINE([GNULIB_REALLOC_GNU], 1, [Define to indicate the 'realloc' module.])
149   gl_FUNC_REALLOC_POSIX
150   gl_STDLIB_MODULE_INDICATOR([realloc-posix])
151   gl_SIGNBIT
152   gl_MATH_MODULE_INDICATOR([signbit])
153   gl_SIZE_MAX
154   gl_FUNC_STAT
155   gl_SYS_STAT_MODULE_INDICATOR([stat])
156   gl_STAT_TIME
157   gl_STAT_BIRTHTIME
158   AM_STDBOOL_H
159   gl_STDDEF_H
160   gl_STDINT_H
161   gl_STDIO_H
162   gl_STDLIB_H
163   gl_FUNC_STRERROR
164   gl_STRING_MODULE_INDICATOR([strerror])
165   gl_HEADER_STRING_H
166   gl_HEADER_SYS_STAT_H
167   AC_PROG_MKDIR_P
168   gl_HEADER_SYS_TIME_H
169   AC_PROG_MKDIR_P
170   gl_HEADER_TIME_H
171   gl_TIMESPEC
172   gl_UNISTD_H
173   gl_UNISTD_SAFER
174   gl_MODULE_INDICATOR([unistd-safer])
175   gl_UTIMENS
176   gl_FUNC_VASNPRINTF
177   gl_FUNC_VFPRINTF_POSIX
178   gl_STDIO_MODULE_INDICATOR([vfprintf-posix])
179   gl_WCHAR_H
180   gl_WCTYPE_H
181   gl_XALLOC
182   gl_XSIZE
183   gl_YESNO
184   m4_ifval(gl_LIBSOURCES_LIST, [
185     m4_syscmd([test ! -d ]m4_defn([gl_LIBSOURCES_DIR])[ ||
186       for gl_file in ]gl_LIBSOURCES_LIST[ ; do
187         if test ! -r ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file ; then
188           echo "missing file ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file" >&2
189           exit 1
190         fi
191       done])dnl
192       m4_if(m4_sysval, [0], [],
193         [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
194   ])
195   m4_popdef([gl_LIBSOURCES_DIR])
196   m4_popdef([gl_LIBSOURCES_LIST])
197   m4_popdef([AC_LIBSOURCES])
198   m4_popdef([AC_REPLACE_FUNCS])
199   m4_popdef([AC_LIBOBJ])
200   AC_CONFIG_COMMANDS_PRE([
201     gl_libobjs=
202     gl_ltlibobjs=
203     if test -n "$gl_LIBOBJS"; then
204       # Remove the extension.
205       sed_drop_objext='s/\.o$//;s/\.obj$//'
206       for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
207         gl_libobjs="$gl_libobjs $i.$ac_objext"
208         gl_ltlibobjs="$gl_ltlibobjs $i.lo"
209       done
210     fi
211     AC_SUBST([gl_LIBOBJS], [$gl_libobjs])
212     AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs])
213   ])
214   gltests_libdeps=
215   gltests_ltlibdeps=
216   m4_pushdef([AC_LIBOBJ], m4_defn([gltests_LIBOBJ]))
217   m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gltests_REPLACE_FUNCS]))
218   m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES]))
219   m4_pushdef([gltests_LIBSOURCES_LIST], [])
220   m4_pushdef([gltests_LIBSOURCES_DIR], [])
221   gl_COMMON
222   gl_source_base='tests'
223   m4_ifval(gltests_LIBSOURCES_LIST, [
224     m4_syscmd([test ! -d ]m4_defn([gltests_LIBSOURCES_DIR])[ ||
225       for gl_file in ]gltests_LIBSOURCES_LIST[ ; do
226         if test ! -r ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file ; then
227           echo "missing file ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file" >&2
228           exit 1
229         fi
230       done])dnl
231       m4_if(m4_sysval, [0], [],
232         [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
233   ])
234   m4_popdef([gltests_LIBSOURCES_DIR])
235   m4_popdef([gltests_LIBSOURCES_LIST])
236   m4_popdef([AC_LIBSOURCES])
237   m4_popdef([AC_REPLACE_FUNCS])
238   m4_popdef([AC_LIBOBJ])
239   AC_CONFIG_COMMANDS_PRE([
240     gltests_libobjs=
241     gltests_ltlibobjs=
242     if test -n "$gltests_LIBOBJS"; then
243       # Remove the extension.
244       sed_drop_objext='s/\.o$//;s/\.obj$//'
245       for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
246         gltests_libobjs="$gltests_libobjs $i.$ac_objext"
247         gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
248       done
249     fi
250     AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs])
251     AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs])
252   ])
253   LIBGZIP_LIBDEPS="$gl_libdeps"
254   AC_SUBST([LIBGZIP_LIBDEPS])
255   LIBGZIP_LTLIBDEPS="$gl_ltlibdeps"
256   AC_SUBST([LIBGZIP_LTLIBDEPS])
257 ])
258
259 # Like AC_LIBOBJ, except that the module name goes
260 # into gl_LIBOBJS instead of into LIBOBJS.
261 AC_DEFUN([gl_LIBOBJ], [
262   AS_LITERAL_IF([$1], [gl_LIBSOURCES([$1.c])])dnl
263   gl_LIBOBJS="$gl_LIBOBJS $1.$ac_objext"
264 ])
265
266 # Like AC_REPLACE_FUNCS, except that the module name goes
267 # into gl_LIBOBJS instead of into LIBOBJS.
268 AC_DEFUN([gl_REPLACE_FUNCS], [
269   m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
270   AC_CHECK_FUNCS([$1], , [gl_LIBOBJ($ac_func)])
271 ])
272
273 # Like AC_LIBSOURCES, except the directory where the source file is
274 # expected is derived from the gnulib-tool parameterization,
275 # and alloca is special cased (for the alloca-opt module).
276 # We could also entirely rely on EXTRA_lib..._SOURCES.
277 AC_DEFUN([gl_LIBSOURCES], [
278   m4_foreach([_gl_NAME], [$1], [
279     m4_if(_gl_NAME, [alloca.c], [], [
280       m4_define([gl_LIBSOURCES_DIR], [lib])
281       m4_append([gl_LIBSOURCES_LIST], _gl_NAME, [ ])
282     ])
283   ])
284 ])
285
286 # Like AC_LIBOBJ, except that the module name goes
287 # into gltests_LIBOBJS instead of into LIBOBJS.
288 AC_DEFUN([gltests_LIBOBJ], [
289   AS_LITERAL_IF([$1], [gltests_LIBSOURCES([$1.c])])dnl
290   gltests_LIBOBJS="$gltests_LIBOBJS $1.$ac_objext"
291 ])
292
293 # Like AC_REPLACE_FUNCS, except that the module name goes
294 # into gltests_LIBOBJS instead of into LIBOBJS.
295 AC_DEFUN([gltests_REPLACE_FUNCS], [
296   m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
297   AC_CHECK_FUNCS([$1], , [gltests_LIBOBJ($ac_func)])
298 ])
299
300 # Like AC_LIBSOURCES, except the directory where the source file is
301 # expected is derived from the gnulib-tool parameterization,
302 # and alloca is special cased (for the alloca-opt module).
303 # We could also entirely rely on EXTRA_lib..._SOURCES.
304 AC_DEFUN([gltests_LIBSOURCES], [
305   m4_foreach([_gl_NAME], [$1], [
306     m4_if(_gl_NAME, [alloca.c], [], [
307       m4_define([gltests_LIBSOURCES_DIR], [tests])
308       m4_append([gltests_LIBSOURCES_LIST], _gl_NAME, [ ])
309     ])
310   ])
311 ])
312
313 # This macro records the list of files which have been installed by
314 # gnulib-tool and may be removed by future gnulib-tool invocations.
315 AC_DEFUN([gl_FILE_LIST], [
316   build-aux/announce-gen
317   build-aux/gendocs.sh
318   build-aux/git-version-gen
319   build-aux/gitlog-to-changelog
320   build-aux/gnu-web-doc-update
321   build-aux/gnupload
322   build-aux/link-warning.h
323   build-aux/update-copyright
324   build-aux/useless-if-before-free
325   build-aux/vc-list-files
326   doc/fdl.texi
327   doc/gendocs_template
328   lib/alloca.in.h
329   lib/asnprintf.c
330   lib/calloc.c
331   lib/close-hook.c
332   lib/close-hook.h
333   lib/close-stream.c
334   lib/close-stream.h
335   lib/close.c
336   lib/closein.c
337   lib/closein.h
338   lib/closeout.c
339   lib/closeout.h
340   lib/config.charset
341   lib/creat-safer.c
342   lib/dup-safer.c
343   lib/dup2.c
344   lib/errno.in.h
345   lib/error.c
346   lib/error.h
347   lib/exitfail.c
348   lib/exitfail.h
349   lib/fclose.c
350   lib/fcntl--.h
351   lib/fcntl-safer.h
352   lib/fcntl.in.h
353   lib/fd-safer.c
354   lib/fflush.c
355   lib/float+.h
356   lib/float.in.h
357   lib/fpending.c
358   lib/fpending.h
359   lib/fprintf.c
360   lib/fpucw.h
361   lib/fpurge.c
362   lib/freadahead.c
363   lib/freadahead.h
364   lib/freading.c
365   lib/freading.h
366   lib/frexp.c
367   lib/frexpl.c
368   lib/fseeko.c
369   lib/fseterr.c
370   lib/fseterr.h
371   lib/ftello.c
372   lib/getopt.c
373   lib/getopt.in.h
374   lib/getopt1.c
375   lib/getopt_int.h
376   lib/getpagesize.c
377   lib/gettext.h
378   lib/gettime.c
379   lib/gettimeofday.c
380   lib/intprops.h
381   lib/isnan.c
382   lib/isnand-nolibm.h
383   lib/isnand.c
384   lib/isnanf-nolibm.h
385   lib/isnanf.c
386   lib/isnanl-nolibm.h
387   lib/isnanl.c
388   lib/localcharset.c
389   lib/localcharset.h
390   lib/lseek.c
391   lib/lstat.c
392   lib/malloc.c
393   lib/math.in.h
394   lib/mbrtowc.c
395   lib/mbsinit.c
396   lib/memchr.c
397   lib/memchr.valgrind
398   lib/open-safer.c
399   lib/open.c
400   lib/perror.c
401   lib/pipe-safer.c
402   lib/printf-args.c
403   lib/printf-args.h
404   lib/printf-frexp.c
405   lib/printf-frexp.h
406   lib/printf-frexpl.c
407   lib/printf-frexpl.h
408   lib/printf-parse.c
409   lib/printf-parse.h
410   lib/printf.c
411   lib/quotearg.c
412   lib/quotearg.h
413   lib/realloc.c
414   lib/ref-add.sin
415   lib/ref-del.sin
416   lib/signbitd.c
417   lib/signbitf.c
418   lib/signbitl.c
419   lib/size_max.h
420   lib/stat-time.h
421   lib/stat.c
422   lib/stdbool.in.h
423   lib/stddef.in.h
424   lib/stdint.in.h
425   lib/stdio-impl.h
426   lib/stdio-write.c
427   lib/stdio.in.h
428   lib/stdlib.in.h
429   lib/streq.h
430   lib/strerror.c
431   lib/string.in.h
432   lib/sys_stat.in.h
433   lib/sys_time.in.h
434   lib/time.in.h
435   lib/timespec.h
436   lib/unistd--.h
437   lib/unistd-safer.h
438   lib/unistd.in.h
439   lib/utimens.c
440   lib/utimens.h
441   lib/vasnprintf.c
442   lib/vasnprintf.h
443   lib/verify.h
444   lib/vfprintf.c
445   lib/wchar.in.h
446   lib/wctype.in.h
447   lib/xalloc-die.c
448   lib/xalloc.h
449   lib/xmalloc.c
450   lib/xsize.h
451   lib/yesno.c
452   lib/yesno.h
453   m4/00gnulib.m4
454   m4/alloca.m4
455   m4/calloc.m4
456   m4/clock_time.m4
457   m4/close-stream.m4
458   m4/close.m4
459   m4/closein.m4
460   m4/closeout.m4
461   m4/codeset.m4
462   m4/dos.m4
463   m4/dup2.m4
464   m4/errno_h.m4
465   m4/error.m4
466   m4/exitfail.m4
467   m4/exponentd.m4
468   m4/exponentf.m4
469   m4/exponentl.m4
470   m4/extensions.m4
471   m4/fclose.m4
472   m4/fcntl-safer.m4
473   m4/fcntl_h.m4
474   m4/fflush.m4
475   m4/float_h.m4
476   m4/fpending.m4
477   m4/fpieee.m4
478   m4/fprintf-posix.m4
479   m4/fpurge.m4
480   m4/freading.m4
481   m4/frexp.m4
482   m4/frexpl.m4
483   m4/fseeko.m4
484   m4/ftello.m4
485   m4/getopt.m4
486   m4/getpagesize.m4
487   m4/gettime.m4
488   m4/gettimeofday.m4
489   m4/glibc21.m4
490   m4/gnu-make.m4
491   m4/gnulib-common.m4
492   m4/include_next.m4
493   m4/inline.m4
494   m4/intmax_t.m4
495   m4/inttypes_h.m4
496   m4/isnand.m4
497   m4/isnanf.m4
498   m4/isnanl.m4
499   m4/ldexpl.m4
500   m4/localcharset.m4
501   m4/locale-fr.m4
502   m4/locale-ja.m4
503   m4/locale-zh.m4
504   m4/longlong.m4
505   m4/lseek.m4
506   m4/lstat.m4
507   m4/malloc.m4
508   m4/math_h.m4
509   m4/mbrtowc.m4
510   m4/mbsinit.m4
511   m4/mbstate_t.m4
512   m4/memchr.m4
513   m4/mmap-anon.m4
514   m4/mode_t.m4
515   m4/multiarch.m4
516   m4/nocrash.m4
517   m4/open.m4
518   m4/perror.m4
519   m4/printf-frexp.m4
520   m4/printf-frexpl.m4
521   m4/printf-posix-rpl.m4
522   m4/printf.m4
523   m4/quotearg.m4
524   m4/realloc.m4
525   m4/signbit.m4
526   m4/size_max.m4
527   m4/stat-time.m4
528   m4/stat.m4
529   m4/stdbool.m4
530   m4/stddef_h.m4
531   m4/stdint.m4
532   m4/stdint_h.m4
533   m4/stdio_h.m4
534   m4/stdlib_h.m4
535   m4/strerror.m4
536   m4/string_h.m4
537   m4/sys_stat_h.m4
538   m4/sys_time_h.m4
539   m4/time_h.m4
540   m4/timespec.m4
541   m4/unistd-safer.m4
542   m4/unistd_h.m4
543   m4/utimbuf.m4
544   m4/utimens.m4
545   m4/utimes.m4
546   m4/vasnprintf.m4
547   m4/vfprintf-posix.m4
548   m4/wchar.m4
549   m4/wchar_t.m4
550   m4/wctype.m4
551   m4/wint_t.m4
552   m4/xalloc.m4
553   m4/xsize.m4
554   m4/yesno.m4
555   top/GNUmakefile
556   top/maint.mk
557 ])