Debian Codegraph @

m4/gnulib-comp.m4

raw
1 # DO NOT EDIT! GENERATED AUTOMATICALLY!
2 # Copyright (C) 2002-2020 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 <https://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 # Code from module absolute-header:
46 # Code from module alloca-opt:
47 # Code from module attribute:
48 # Code from module c99:
49 # Code from module close:
50 # Code from module errno:
51 # Code from module extensions:
52 # Code from module extern-inline:
53 # Code from module fd-hook:
54 # Code from module fdl:
55 # Code from module float:
56 # Code from module gendocs:
57 # Code from module gpl-3.0:
58 # Code from module include_next:
59 # Code from module inttypes-incomplete:
60 # Code from module limits-h:
61 # Code from module malloc-posix:
62 # Code from module memchr:
63 # Code from module msvc-inval:
64 # Code from module multiarch:
65 # Code from module size_max:
66 # Code from module snippet/_Noreturn:
67 # Code from module snippet/arg-nonnull:
68 # Code from module snippet/c++defs:
69 # Code from module snippet/warn-on-use:
70 # Code from module snprintf:
71 # Code from module ssize_t:
72 # Code from module std-gnu11:
73 # Code from module stdbool:
74 # Code from module stddef:
75 # Code from module stdint:
76 # Code from module stdio:
77 # Code from module stdlib:
78 # Code from module string:
79 # Code from module sys_types:
80 # Code from module unistd:
81 # Code from module vasnprintf:
82 # Code from module verify:
83 # Code from module wchar:
84 # Code from module xsize:
85 ])
86
87 # This macro should be invoked from ./configure.ac, in the section
88 # "Check for header files, types and library functions".
89 AC_DEFUN([gl_INIT],
90 [
91 AM_CONDITIONAL([GL_COND_LIBTOOL], [false])
92 gl_cond_libtool=false
93 gl_libdeps=
94 gl_ltlibdeps=
95 gl_m4_base='m4'
96 m4_pushdef([AC_LIBOBJ], m4_defn([gl_LIBOBJ]))
97 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gl_REPLACE_FUNCS]))
98 m4_pushdef([AC_LIBSOURCES], m4_defn([gl_LIBSOURCES]))
99 m4_pushdef([gl_LIBSOURCES_LIST], [])
100 m4_pushdef([gl_LIBSOURCES_DIR], [])
101 gl_COMMON
102 gl_source_base='lib'
103 gl_FUNC_ALLOCA
104 gl_FUNC_CLOSE
105 if test $REPLACE_CLOSE = 1; then
106 AC_LIBOBJ([close])
107 fi
108 gl_UNISTD_MODULE_INDICATOR([close])
109 gl_HEADER_ERRNO_H
110 AC_REQUIRE([gl_EXTERN_INLINE])
111 gl_FLOAT_H
112 if test $REPLACE_FLOAT_LDBL = 1; then
113 AC_LIBOBJ([float])
114 fi
115 if test $REPLACE_ITOLD = 1; then
116 AC_LIBOBJ([itold])
117 fi
118 gl_INTTYPES_INCOMPLETE
119 gl_LIMITS_H
120 gl_FUNC_MALLOC_POSIX
121 if test $REPLACE_MALLOC = 1; then
122 AC_LIBOBJ([malloc])
123 fi
124 gl_STDLIB_MODULE_INDICATOR([malloc-posix])
125 gl_FUNC_MEMCHR
126 if test $REPLACE_MEMCHR = 1; then
127 AC_LIBOBJ([memchr])
128 gl_PREREQ_MEMCHR
129 fi
130 gl_STRING_MODULE_INDICATOR([memchr])
131 AC_REQUIRE([gl_MSVC_INVAL])
132 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
133 AC_LIBOBJ([msvc-inval])
134 fi
135 gl_MULTIARCH
136 gl_SIZE_MAX
137 gl_FUNC_SNPRINTF
138 gl_STDIO_MODULE_INDICATOR([snprintf])
139 gl_MODULE_INDICATOR([snprintf])
140 gt_TYPE_SSIZE_T
141 AM_STDBOOL_H
142 gl_STDDEF_H
143 gl_STDINT_H
144 gl_STDIO_H
145 gl_STDLIB_H
146 gl_HEADER_STRING_H
147 gl_SYS_TYPES_H
148 AC_PROG_MKDIR_P
149 gl_UNISTD_H
150 AC_REQUIRE([AC_C_RESTRICT])
151 gl_FUNC_VASNPRINTF
152 gl_WCHAR_H
153 gl_XSIZE
154 # End of code from modules
155 m4_ifval(gl_LIBSOURCES_LIST, [
156 m4_syscmd([test ! -d ]m4_defn([gl_LIBSOURCES_DIR])[ ||
157 for gl_file in ]gl_LIBSOURCES_LIST[ ; do
158 if test ! -r ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file ; then
159 echo "missing file ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file" >&2
160 exit 1
161 fi
162 done])dnl
163 m4_if(m4_sysval, [0], [],
164 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
165 ])
166 m4_popdef([gl_LIBSOURCES_DIR])
167 m4_popdef([gl_LIBSOURCES_LIST])
168 m4_popdef([AC_LIBSOURCES])
169 m4_popdef([AC_REPLACE_FUNCS])
170 m4_popdef([AC_LIBOBJ])
171 AC_CONFIG_COMMANDS_PRE([
172 gl_libobjs=
173 gl_ltlibobjs=
174 if test -n "$gl_LIBOBJS"; then
175 # Remove the extension.
176 sed_drop_objext='s/\.o$//;s/\.obj$//'
177 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
178 gl_libobjs="$gl_libobjs $i.$ac_objext"
179 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
180 done
181 fi
182 AC_SUBST([gl_LIBOBJS], [$gl_libobjs])
183 AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs])
184 ])
185 gltests_libdeps=
186 gltests_ltlibdeps=
187 m4_pushdef([AC_LIBOBJ], m4_defn([gltests_LIBOBJ]))
188 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gltests_REPLACE_FUNCS]))
189 m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES]))
190 m4_pushdef([gltests_LIBSOURCES_LIST], [])
191 m4_pushdef([gltests_LIBSOURCES_DIR], [])
192 gl_COMMON
193 gl_source_base='tests'
194 changequote(,)dnl
195 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
196 changequote([, ])dnl
197 AC_SUBST([gltests_WITNESS])
198 gl_module_indicator_condition=$gltests_WITNESS
199 m4_pushdef([gl_MODULE_INDICATOR_CONDITION], [$gl_module_indicator_condition])
200 m4_popdef([gl_MODULE_INDICATOR_CONDITION])
201 m4_ifval(gltests_LIBSOURCES_LIST, [
202 m4_syscmd([test ! -d ]m4_defn([gltests_LIBSOURCES_DIR])[ ||
203 for gl_file in ]gltests_LIBSOURCES_LIST[ ; do
204 if test ! -r ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file ; then
205 echo "missing file ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file" >&2
206 exit 1
207 fi
208 done])dnl
209 m4_if(m4_sysval, [0], [],
210 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
211 ])
212 m4_popdef([gltests_LIBSOURCES_DIR])
213 m4_popdef([gltests_LIBSOURCES_LIST])
214 m4_popdef([AC_LIBSOURCES])
215 m4_popdef([AC_REPLACE_FUNCS])
216 m4_popdef([AC_LIBOBJ])
217 AC_CONFIG_COMMANDS_PRE([
218 gltests_libobjs=
219 gltests_ltlibobjs=
220 if test -n "$gltests_LIBOBJS"; then
221 # Remove the extension.
222 sed_drop_objext='s/\.o$//;s/\.obj$//'
223 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
224 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
225 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
226 done
227 fi
228 AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs])
229 AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs])
230 ])
231 LIBGNU_LIBDEPS="$gl_libdeps"
232 AC_SUBST([LIBGNU_LIBDEPS])
233 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
234 AC_SUBST([LIBGNU_LTLIBDEPS])
235 ])
236
237 # Like AC_LIBOBJ, except that the module name goes
238 # into gl_LIBOBJS instead of into LIBOBJS.
239 AC_DEFUN([gl_LIBOBJ], [
240 AS_LITERAL_IF([$1], [gl_LIBSOURCES([$1.c])])dnl
241 gl_LIBOBJS="$gl_LIBOBJS $1.$ac_objext"
242 ])
243
244 # Like AC_REPLACE_FUNCS, except that the module name goes
245 # into gl_LIBOBJS instead of into LIBOBJS.
246 AC_DEFUN([gl_REPLACE_FUNCS], [
247 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
248 AC_CHECK_FUNCS([$1], , [gl_LIBOBJ($ac_func)])
249 ])
250
251 # Like AC_LIBSOURCES, except the directory where the source file is
252 # expected is derived from the gnulib-tool parameterization,
253 # and alloca is special cased (for the alloca-opt module).
254 # We could also entirely rely on EXTRA_lib..._SOURCES.
255 AC_DEFUN([gl_LIBSOURCES], [
256 m4_foreach([_gl_NAME], [$1], [
257 m4_if(_gl_NAME, [alloca.c], [], [
258 m4_define([gl_LIBSOURCES_DIR], [lib])
259 m4_append([gl_LIBSOURCES_LIST], _gl_NAME, [ ])
260 ])
261 ])
262 ])
263
264 # Like AC_LIBOBJ, except that the module name goes
265 # into gltests_LIBOBJS instead of into LIBOBJS.
266 AC_DEFUN([gltests_LIBOBJ], [
267 AS_LITERAL_IF([$1], [gltests_LIBSOURCES([$1.c])])dnl
268 gltests_LIBOBJS="$gltests_LIBOBJS $1.$ac_objext"
269 ])
270
271 # Like AC_REPLACE_FUNCS, except that the module name goes
272 # into gltests_LIBOBJS instead of into LIBOBJS.
273 AC_DEFUN([gltests_REPLACE_FUNCS], [
274 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
275 AC_CHECK_FUNCS([$1], , [gltests_LIBOBJ($ac_func)])
276 ])
277
278 # Like AC_LIBSOURCES, except the directory where the source file is
279 # expected is derived from the gnulib-tool parameterization,
280 # and alloca is special cased (for the alloca-opt module).
281 # We could also entirely rely on EXTRA_lib..._SOURCES.
282 AC_DEFUN([gltests_LIBSOURCES], [
283 m4_foreach([_gl_NAME], [$1], [
284 m4_if(_gl_NAME, [alloca.c], [], [
285 m4_define([gltests_LIBSOURCES_DIR], [tests])
286 m4_append([gltests_LIBSOURCES_LIST], _gl_NAME, [ ])
287 ])
288 ])
289 ])
290
291 # This macro records the list of files which have been installed by
292 # gnulib-tool and may be removed by future gnulib-tool invocations.
293 AC_DEFUN([gl_FILE_LIST], [
294 build-aux/gendocs.sh
295 doc/fdl.texi
296 doc/gendocs_template
297 doc/gendocs_template_min
298 doc/gpl-3.0.texi
299 lib/_Noreturn.h
300 lib/alloca.in.h
301 lib/arg-nonnull.h
302 lib/asnprintf.c
303 lib/attribute.h
304 lib/c++defs.h
305 lib/close.c
306 lib/errno.in.h
307 lib/fd-hook.c
308 lib/fd-hook.h
309 lib/float+.h
310 lib/float.c
311 lib/float.in.h
312 lib/inttypes.in.h
313 lib/itold.c
314 lib/limits.in.h
315 lib/malloc.c
316 lib/memchr.c
317 lib/memchr.valgrind
318 lib/msvc-inval.c
319 lib/msvc-inval.h
320 lib/printf-args.c
321 lib/printf-args.h
322 lib/printf-parse.c
323 lib/printf-parse.h
324 lib/size_max.h
325 lib/snprintf.c
326 lib/stdbool.in.h
327 lib/stddef.in.h
328 lib/stdint.in.h
329 lib/stdio.in.h
330 lib/stdlib.in.h
331 lib/string.in.h
332 lib/sys_types.in.h
333 lib/unistd.c
334 lib/unistd.in.h
335 lib/vasnprintf.c
336 lib/vasnprintf.h
337 lib/verify.h
338 lib/warn-on-use.h
339 lib/wchar.in.h
340 lib/xsize.c
341 lib/xsize.h
342 m4/00gnulib.m4
343 m4/absolute-header.m4
344 m4/alloca.m4
345 m4/close.m4
346 m4/errno_h.m4
347 m4/exponentd.m4
348 m4/extensions.m4
349 m4/extern-inline.m4
350 m4/float_h.m4
351 m4/gnulib-common.m4
352 m4/include_next.m4
353 m4/intmax_t.m4
354 m4/inttypes.m4
355 m4/inttypes_h.m4
356 m4/limits-h.m4
357 m4/malloc.m4
358 m4/math_h.m4
359 m4/memchr.m4
360 m4/mmap-anon.m4
361 m4/msvc-inval.m4
362 m4/multiarch.m4
363 m4/off_t.m4
364 m4/pid_t.m4
365 m4/printf.m4
366 m4/size_max.m4
367 m4/snprintf.m4
368 m4/ssize_t.m4
369 m4/std-gnu11.m4
370 m4/stdbool.m4
371 m4/stddef_h.m4
372 m4/stdint.m4
373 m4/stdint_h.m4
374 m4/stdio_h.m4
375 m4/stdlib_h.m4
376 m4/string_h.m4
377 m4/sys_types_h.m4
378 m4/unistd_h.m4
379 m4/vasnprintf.m4
380 m4/warn-on-use.m4
381 m4/wchar_h.m4
382 m4/wchar_t.m4
383 m4/wint_t.m4
384 m4/xsize.m4
385 m4/zzgnulib.m4
386 ])