]> Savannah Git Hosting - gnulib/maint-tools.git/blob
0e8d989736fc84ccb5418cbc02f3c91d34a85b6b
[gnulib/maint-tools.git] /
1 # DO NOT EDIT! GENERATED AUTOMATICALLY!
2 # Copyright (C) 2002-2024 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 gettext-runtime/libasprintf/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:
47   # Code from module alloca-opt:
48   # Code from module assert-h:
49   # Code from module attribute:
50   # Code from module errno:
51   # Code from module extensions:
52   # Code from module extern-inline:
53   # Code from module float:
54   # Code from module free-posix:
55   # Code from module gen-header:
56   # Code from module include_next:
57   # Code from module inttypes-incomplete:
58   # Code from module limits-h:
59   # Code from module manywarnings:
60   # Code from module mbszero:
61   # Code from module memchr:
62   # Code from module multiarch:
63   # Code from module size_max:
64   # Code from module snippet/_Noreturn:
65   # Code from module snippet/arg-nonnull:
66   # Code from module snippet/c++defs:
67   # Code from module snippet/warn-on-use:
68   # Code from module ssize_t:
69   # Code from module stddef:
70   # Code from module stdint:
71   # Code from module stdio:
72   gl_STDIO_H_EARLY
73   # Code from module stdlib:
74   # Code from module string:
75   # Code from module sys_types:
76   # Code from module unistd:
77   # Code from module vasnprintf:
78   # Code from module warnings:
79   # Code from module wchar:
80   # Code from module xsize:
81 ])
82
83 # This macro should be invoked from gettext-runtime/libasprintf/configure.ac, in the section
84 # "Check for header files, types and library functions".
85 AC_DEFUN([gl_INIT],
86 [
87   AC_CONFIG_LIBOBJ_DIR([gnulib-lib])
88   AM_CONDITIONAL([GL_COND_LIBTOOL], [true])
89   gl_cond_libtool=true
90   gl_m4_base='gnulib-m4'
91   m4_pushdef([AC_LIBOBJ], m4_defn([gl_LIBOBJ]))
92   m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gl_REPLACE_FUNCS]))
93   m4_pushdef([AC_LIBSOURCES], m4_defn([gl_LIBSOURCES]))
94   m4_pushdef([gl_LIBSOURCES_LIST], [])
95   m4_pushdef([gl_LIBSOURCES_DIR], [])
96   m4_pushdef([GL_MACRO_PREFIX], [gl])
97   m4_pushdef([GL_MODULE_INDICATOR_PREFIX], [GL])
98   gl_COMMON
99   gl_source_base='gnulib-lib'
100   gl_source_base_prefix=
101 changequote(,)dnl
102 LTALLOCA=`echo "$ALLOCA" | sed -e 's/\.[^.]* /.lo /g;s/\.[^.]*$/.lo/'`
103 changequote([, ])dnl
104 AC_SUBST([LTALLOCA])
105   gl_FUNC_ALLOCA
106   gl_CONDITIONAL_HEADER([alloca.h])
107   AC_PROG_MKDIR_P
108   gl_ASSERT_H
109   gl_CONDITIONAL_HEADER([assert.h])
110   AC_PROG_MKDIR_P
111   gl_HEADER_ERRNO_H
112   gl_CONDITIONAL_HEADER([errno.h])
113   AC_PROG_MKDIR_P
114   AC_REQUIRE([gl_EXTERN_INLINE])
115   gl_FLOAT_H
116   gl_CONDITIONAL_HEADER([float.h])
117   AC_PROG_MKDIR_P
118   gl_CONDITIONAL([GL_COND_OBJ_FLOAT], [test $REPLACE_FLOAT_LDBL = 1])
119   gl_CONDITIONAL([GL_COND_OBJ_ITOLD], [test $REPLACE_ITOLD = 1])
120   gl_FUNC_FREE
121   gl_CONDITIONAL([GL_COND_OBJ_FREE], [test $REPLACE_FREE = 1])
122   AM_COND_IF([GL_COND_OBJ_FREE], [
123     gl_PREREQ_FREE
124   ])
125   gl_STDLIB_MODULE_INDICATOR([free-posix])
126   gl_INTTYPES_INCOMPLETE
127   gl_INTTYPES_H_REQUIRE_DEFAULTS
128   AC_PROG_MKDIR_P
129   gl_LIMITS_H
130   gl_CONDITIONAL_HEADER([limits.h])
131   AC_PROG_MKDIR_P
132   AC_REQUIRE([AC_TYPE_MBSTATE_T])
133   gl_MBSTATE_T_BROKEN
134   gl_MUSL_LIBC
135   gl_WCHAR_MODULE_INDICATOR([mbszero])
136   gl_FUNC_MEMCHR
137   gl_CONDITIONAL([GL_COND_OBJ_MEMCHR], [test $REPLACE_MEMCHR = 1])
138   AM_COND_IF([GL_COND_OBJ_MEMCHR], [
139     gl_PREREQ_MEMCHR
140   ])
141   gl_STRING_MODULE_INDICATOR([memchr])
142   gl_MULTIARCH
143   gl_SIZE_MAX
144   gt_TYPE_SSIZE_T
145   gl_STDDEF_H
146   gl_STDDEF_H_REQUIRE_DEFAULTS
147   gl_CONDITIONAL_HEADER([stddef.h])
148   AC_PROG_MKDIR_P
149   gl_STDINT_H
150   gl_CONDITIONAL_HEADER([stdint.h])
151   dnl Because of gl_REPLACE_LIMITS_H:
152   gl_CONDITIONAL_HEADER([limits.h])
153   AC_PROG_MKDIR_P
154   gl_STDIO_H
155   gl_STDIO_H_REQUIRE_DEFAULTS
156   AC_PROG_MKDIR_P
157   gl_CONDITIONAL([GL_COND_OBJ_STDIO_READ], [test $REPLACE_STDIO_READ_FUNCS = 1])
158   gl_CONDITIONAL([GL_COND_OBJ_STDIO_WRITE], [test $REPLACE_STDIO_WRITE_FUNCS = 1])
159   dnl No need to create extra modules for these functions. Everyone who uses
160   dnl <stdio.h> likely needs them.
161   gl_STDIO_MODULE_INDICATOR([fscanf])
162   gl_MODULE_INDICATOR([fscanf])
163   gl_STDIO_MODULE_INDICATOR([scanf])
164   gl_MODULE_INDICATOR([scanf])
165   gl_STDIO_MODULE_INDICATOR([fgetc])
166   gl_STDIO_MODULE_INDICATOR([getc])
167   gl_STDIO_MODULE_INDICATOR([getchar])
168   gl_STDIO_MODULE_INDICATOR([fgets])
169   gl_STDIO_MODULE_INDICATOR([fread])
170   dnl No need to create extra modules for these functions. Everyone who uses
171   dnl <stdio.h> likely needs them.
172   gl_STDIO_MODULE_INDICATOR([fprintf])
173   gl_STDIO_MODULE_INDICATOR([printf])
174   gl_STDIO_MODULE_INDICATOR([vfprintf])
175   gl_STDIO_MODULE_INDICATOR([vprintf])
176   gl_STDIO_MODULE_INDICATOR([fputc])
177   gl_STDIO_MODULE_INDICATOR([putc])
178   gl_STDIO_MODULE_INDICATOR([putchar])
179   gl_STDIO_MODULE_INDICATOR([fputs])
180   gl_STDIO_MODULE_INDICATOR([puts])
181   gl_STDIO_MODULE_INDICATOR([fwrite])
182   gl_STDLIB_H
183   gl_STDLIB_H_REQUIRE_DEFAULTS
184   AC_PROG_MKDIR_P
185   gl_STRING_H
186   gl_STRING_H_REQUIRE_DEFAULTS
187   AC_PROG_MKDIR_P
188   gl_SYS_TYPES_H
189   gl_SYS_TYPES_H_REQUIRE_DEFAULTS
190   AC_PROG_MKDIR_P
191   gl_UNISTD_H
192   gl_UNISTD_H_REQUIRE_DEFAULTS
193   AC_PROG_MKDIR_P
194   AC_REQUIRE([AC_C_RESTRICT])
195   gl_FUNC_VASNPRINTF
196   gl_WCHAR_H
197   gl_WCHAR_H_REQUIRE_DEFAULTS
198   AC_PROG_MKDIR_P
199   gl_XSIZE
200   # End of code from modules
201   m4_ifval(gl_LIBSOURCES_LIST, [
202     m4_syscmd([test ! -d ]m4_defn([gl_LIBSOURCES_DIR])[ ||
203       for gl_file in ]gl_LIBSOURCES_LIST[ ; do
204         if test ! -r ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file ; then
205           echo "missing file ]m4_defn([gl_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([GL_MODULE_INDICATOR_PREFIX])
213   m4_popdef([GL_MACRO_PREFIX])
214   m4_popdef([gl_LIBSOURCES_DIR])
215   m4_popdef([gl_LIBSOURCES_LIST])
216   m4_popdef([AC_LIBSOURCES])
217   m4_popdef([AC_REPLACE_FUNCS])
218   m4_popdef([AC_LIBOBJ])
219   AC_CONFIG_COMMANDS_PRE([
220     gl_libobjs=
221     gl_ltlibobjs=
222     gl_libobjdeps=
223     if test -n "$gl_LIBOBJS"; then
224       # Remove the extension.
225 changequote(,)dnl
226       sed_drop_objext='s/\.o$//;s/\.obj$//'
227       sed_dirname1='s,//*,/,g'
228       sed_dirname2='s,\(.\)/$,\1,'
229       sed_dirname3='s,^[^/]*$,.,'
230       sed_dirname4='s,\(.\)/[^/]*$,\1,'
231       sed_basename1='s,.*/,,'
232 changequote([, ])dnl
233       for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
234         gl_libobjs="$gl_libobjs $i.$ac_objext"
235         gl_ltlibobjs="$gl_ltlibobjs $i.lo"
236         i_dir=`echo "$i" | sed -e "$sed_dirname1" -e "$sed_dirname2" -e "$sed_dirname3" -e "$sed_dirname4"`
237         i_base=`echo "$i" | sed -e "$sed_basename1"`
238         gl_libobjdeps="$gl_libobjdeps $i_dir/\$(DEPDIR)/$i_base.Plo"
239       done
240     fi
241     AC_SUBST([gl_LIBOBJS], [$gl_libobjs])
242     AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs])
243     AC_SUBST([gl_LIBOBJDEPS], [$gl_libobjdeps])
244   ])
245   gltests_libdeps=
246   gltests_ltlibdeps=
247   m4_pushdef([AC_LIBOBJ], m4_defn([gltests_LIBOBJ]))
248   m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gltests_REPLACE_FUNCS]))
249   m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES]))
250   m4_pushdef([gltests_LIBSOURCES_LIST], [])
251   m4_pushdef([gltests_LIBSOURCES_DIR], [])
252   m4_pushdef([GL_MACRO_PREFIX], [gltests])
253   m4_pushdef([GL_MODULE_INDICATOR_PREFIX], [GL])
254   gl_COMMON
255   gl_source_base='tests'
256   gl_source_base_prefix=
257 changequote(,)dnl
258   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
259 changequote([, ])dnl
260   AC_SUBST([gltests_WITNESS])
261   gl_module_indicator_condition=$gltests_WITNESS
262   m4_pushdef([gl_MODULE_INDICATOR_CONDITION], [$gl_module_indicator_condition])
263   m4_popdef([gl_MODULE_INDICATOR_CONDITION])
264   m4_ifval(gltests_LIBSOURCES_LIST, [
265     m4_syscmd([test ! -d ]m4_defn([gltests_LIBSOURCES_DIR])[ ||
266       for gl_file in ]gltests_LIBSOURCES_LIST[ ; do
267         if test ! -r ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file ; then
268           echo "missing file ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file" >&2
269           exit 1
270         fi
271       done])dnl
272       m4_if(m4_sysval, [0], [],
273         [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
274   ])
275   m4_popdef([GL_MODULE_INDICATOR_PREFIX])
276   m4_popdef([GL_MACRO_PREFIX])
277   m4_popdef([gltests_LIBSOURCES_DIR])
278   m4_popdef([gltests_LIBSOURCES_LIST])
279   m4_popdef([AC_LIBSOURCES])
280   m4_popdef([AC_REPLACE_FUNCS])
281   m4_popdef([AC_LIBOBJ])
282   AC_CONFIG_COMMANDS_PRE([
283     gltests_libobjs=
284     gltests_ltlibobjs=
285     gltests_libobjdeps=
286     if test -n "$gltests_LIBOBJS"; then
287       # Remove the extension.
288 changequote(,)dnl
289       sed_drop_objext='s/\.o$//;s/\.obj$//'
290       sed_dirname1='s,//*,/,g'
291       sed_dirname2='s,\(.\)/$,\1,'
292       sed_dirname3='s,^[^/]*$,.,'
293       sed_dirname4='s,\(.\)/[^/]*$,\1,'
294       sed_basename1='s,.*/,,'
295 changequote([, ])dnl
296       for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
297         gltests_libobjs="$gltests_libobjs $i.$ac_objext"
298         gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
299         i_dir=`echo "$i" | sed -e "$sed_dirname1" -e "$sed_dirname2" -e "$sed_dirname3" -e "$sed_dirname4"`
300         i_base=`echo "$i" | sed -e "$sed_basename1"`
301         gltests_libobjdeps="$gltests_libobjdeps $i_dir/\$(DEPDIR)/$i_base.Plo"
302       done
303     fi
304     AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs])
305     AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs])
306     AC_SUBST([gltests_LIBOBJDEPS], [$gltests_libobjdeps])
307   ])
308   AC_REQUIRE([gl_CC_GNULIB_WARNINGS])
309 ])
310
311 # Like AC_LIBOBJ, except that the module name goes
312 # into gl_LIBOBJS instead of into LIBOBJS.
313 AC_DEFUN([gl_LIBOBJ], [
314   AS_LITERAL_IF([$1], [gl_LIBSOURCES([$1.c])])dnl
315   gl_LIBOBJS="$gl_LIBOBJS $1.$ac_objext"
316 ])
317
318 # Like AC_REPLACE_FUNCS, except that the module name goes
319 # into gl_LIBOBJS instead of into LIBOBJS.
320 AC_DEFUN([gl_REPLACE_FUNCS], [
321   m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
322   AC_CHECK_FUNCS([$1], , [gl_LIBOBJ($ac_func)])
323 ])
324
325 # Like AC_LIBSOURCES, except the directory where the source file is
326 # expected is derived from the gnulib-tool parameterization,
327 # and alloca is special cased (for the alloca-opt module).
328 # We could also entirely rely on EXTRA_lib..._SOURCES.
329 AC_DEFUN([gl_LIBSOURCES], [
330   m4_foreach([_gl_NAME], [$1], [
331     m4_if(_gl_NAME, [alloca.c], [], [
332       m4_define([gl_LIBSOURCES_DIR], [gnulib-lib])
333       m4_append([gl_LIBSOURCES_LIST], _gl_NAME, [ ])
334     ])
335   ])
336 ])
337
338 # Like AC_LIBOBJ, except that the module name goes
339 # into gltests_LIBOBJS instead of into LIBOBJS.
340 AC_DEFUN([gltests_LIBOBJ], [
341   AS_LITERAL_IF([$1], [gltests_LIBSOURCES([$1.c])])dnl
342   gltests_LIBOBJS="$gltests_LIBOBJS $1.$ac_objext"
343 ])
344
345 # Like AC_REPLACE_FUNCS, except that the module name goes
346 # into gltests_LIBOBJS instead of into LIBOBJS.
347 AC_DEFUN([gltests_REPLACE_FUNCS], [
348   m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
349   AC_CHECK_FUNCS([$1], , [gltests_LIBOBJ($ac_func)])
350 ])
351
352 # Like AC_LIBSOURCES, except the directory where the source file is
353 # expected is derived from the gnulib-tool parameterization,
354 # and alloca is special cased (for the alloca-opt module).
355 # We could also entirely rely on EXTRA_lib..._SOURCES.
356 AC_DEFUN([gltests_LIBSOURCES], [
357   m4_foreach([_gl_NAME], [$1], [
358     m4_if(_gl_NAME, [alloca.c], [], [
359       m4_define([gltests_LIBSOURCES_DIR], [tests])
360       m4_append([gltests_LIBSOURCES_LIST], _gl_NAME, [ ])
361     ])
362   ])
363 ])
364
365 # This macro records the list of files which have been installed by
366 # gnulib-tool and may be removed by future gnulib-tool invocations.
367 AC_DEFUN([gl_FILE_LIST], [
368   lib/_Noreturn.h
369   lib/alloca.c
370   lib/alloca.in.h
371   lib/arg-nonnull.h
372   lib/asnprintf.c
373   lib/assert.in.h
374   lib/attribute.h
375   lib/c++defs.h
376   lib/errno.in.h
377   lib/float+.h
378   lib/float.c
379   lib/float.in.h
380   lib/free.c
381   lib/inttypes.in.h
382   lib/itold.c
383   lib/limits.in.h
384   lib/mbszero.c
385   lib/memchr.c
386   lib/memchr.valgrind
387   lib/printf-args.c
388   lib/printf-args.h
389   lib/printf-parse.c
390   lib/printf-parse.h
391   lib/size_max.h
392   lib/stddef.in.h
393   lib/stdint.in.h
394   lib/stdio-read.c
395   lib/stdio-write.c
396   lib/stdio.in.h
397   lib/stdlib.in.h
398   lib/string.in.h
399   lib/sys_types.in.h
400   lib/unistd.c
401   lib/unistd.in.h
402   lib/vasnprintf.c
403   lib/vasnprintf.h
404   lib/verify.h
405   lib/warn-on-use.h
406   lib/wchar.in.h
407   lib/xsize.c
408   lib/xsize.h
409   m4/00gnulib.m4
410   m4/absolute-header.m4
411   m4/alloca.m4
412   m4/assert_h.m4
413   m4/codeset.m4
414   m4/errno_h.m4
415   m4/exponentd.m4
416   m4/extensions.m4
417   m4/extern-inline.m4
418   m4/float_h.m4
419   m4/free.m4
420   m4/gnulib-common.m4
421   m4/include_next.m4
422   m4/intmax_t.m4
423   m4/inttypes.m4
424   m4/inttypes_h.m4
425   m4/limits-h.m4
426   m4/locale-fr.m4
427   m4/locale-ja.m4
428   m4/locale-zh.m4
429   m4/manywarnings-c++.m4
430   m4/manywarnings.m4
431   m4/math_h.m4
432   m4/mbrtowc.m4
433   m4/mbstate_t.m4
434   m4/memchr.m4
435   m4/mmap-anon.m4
436   m4/multiarch.m4
437   m4/musl.m4
438   m4/off_t.m4
439   m4/pid_t.m4
440   m4/printf.m4
441   m4/size_max.m4
442   m4/ssize_t.m4
443   m4/stddef_h.m4
444   m4/stdint.m4
445   m4/stdint_h.m4
446   m4/stdio_h.m4
447   m4/stdlib_h.m4
448   m4/string_h.m4
449   m4/sys_types_h.m4
450   m4/unistd_h.m4
451   m4/vasnprintf.m4
452   m4/warn-on-use.m4
453   m4/warnings.m4
454   m4/wchar_h.m4
455   m4/wchar_t.m4
456   m4/wint_t.m4
457   m4/xsize.m4
458   m4/zzgnulib.m4
459 ])