Merge branch 'boehm-demers-weiser-gc' into bdw-gc-static-alloc
[bpt/guile.git] / m4 / gnulib-comp.m4
1 # DO NOT EDIT! GENERATED AUTOMATICALLY!
2 # Copyright (C) 2002-2009 Free Software Foundation, Inc.
3 #
4 # This file is free software, distributed under the terms of the GNU
5 # General Public License. As a special exception to the GNU General
6 # Public License, this file may be distributed as part of a program
7 # that contains a configuration script generated by Autoconf, under
8 # the same distribution terms as the rest of that program.
9 #
10 # Generated by gnulib-tool.
11 #
12 # This file represents the compiled summary of the specification in
13 # gnulib-cache.m4. It lists the computed macro invocations that need
14 # to be invoked from configure.ac.
15 # In projects using CVS, this file can be treated like other built files.
16
17
18 # This macro should be invoked from ./configure.ac, in the section
19 # "Checks for programs", right after AC_PROG_CC, and certainly before
20 # any checks for libraries, header files, types and library functions.
21 AC_DEFUN([gl_EARLY],
22 [
23 m4_pattern_forbid([^gl_[A-Z]])dnl the gnulib macro namespace
24 m4_pattern_allow([^gl_ES$])dnl a valid locale name
25 m4_pattern_allow([^gl_LIBOBJS$])dnl a variable
26 m4_pattern_allow([^gl_LTLIBOBJS$])dnl a variable
27 AC_REQUIRE([AC_PROG_RANLIB])
28 AC_REQUIRE([AM_PROG_CC_C_O])
29 AB_INIT
30 AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
31 AC_REQUIRE([gl_FP_IEEE])
32 ])
33
34 # This macro should be invoked from ./configure.ac, in the section
35 # "Check for header files, types and library functions".
36 AC_DEFUN([gl_INIT],
37 [
38 AM_CONDITIONAL([GL_COND_LIBTOOL], [true])
39 gl_cond_libtool=true
40 m4_pushdef([AC_LIBOBJ], m4_defn([gl_LIBOBJ]))
41 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gl_REPLACE_FUNCS]))
42 m4_pushdef([AC_LIBSOURCES], m4_defn([gl_LIBSOURCES]))
43 m4_pushdef([gl_LIBSOURCES_LIST], [])
44 m4_pushdef([gl_LIBSOURCES_DIR], [])
45 gl_COMMON
46 gl_source_base='lib'
47 gl_FUNC_ALLOCA
48 gl_BYTESWAP
49 gl_CANONICALIZE_LGPL
50 gl_MODULE_INDICATOR([canonicalize-lgpl])
51 gl_ENVIRON
52 gl_UNISTD_MODULE_INDICATOR([environ])
53 gl_HEADER_ERRNO_H
54 gl_FLOAT_H
55 gl_FUNC_FLOCK
56 gl_HEADER_SYS_FILE_MODULE_INDICATOR([flock])
57 gl_FUNC_GETPAGESIZE
58 gl_UNISTD_MODULE_INDICATOR([getpagesize])
59 AM_ICONV
60 gl_ICONV_H
61 gl_FUNC_ICONV_OPEN
62 gl_FUNC_ICONV_OPEN_UTF
63 gl_INLINE
64 gl_LD_VERSION_SCRIPT
65 gl_VISIBILITY
66 gl_LIBUNISTRING
67 gl_LOCALCHARSET
68 LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(top_builddir)/$gl_source_base\""
69 AC_SUBST([LOCALCHARSET_TESTS_ENVIRONMENT])
70 gl_FUNC_MALLOC_POSIX
71 gl_STDLIB_MODULE_INDICATOR([malloc-posix])
72 gl_MALLOCA
73 gl_FUNC_MBRLEN
74 gl_WCHAR_MODULE_INDICATOR([mbrlen])
75 gl_FUNC_MBRTOWC
76 gl_WCHAR_MODULE_INDICATOR([mbrtowc])
77 gl_FUNC_MBSINIT
78 gl_WCHAR_MODULE_INDICATOR([mbsinit])
79 gl_FUNC_MEMCHR
80 gl_STRING_MODULE_INDICATOR([memchr])
81 gl_MULTIARCH
82 gl_PATHMAX
83 gl_FUNC_PUTENV
84 gl_STDLIB_MODULE_INDICATOR([putenv])
85 gl_FUNC_READLINK
86 gl_UNISTD_MODULE_INDICATOR([readlink])
87 gl_SAFE_READ
88 gl_SAFE_WRITE
89 gl_SIZE_MAX
90 gt_TYPE_SSIZE_T
91 AM_STDBOOL_H
92 gl_STDINT_H
93 gl_STDIO_H
94 gl_STDLIB_H
95 gl_STRCASE
96 gl_FUNC_GNU_STRFTIME
97 if test $gl_cond_libtool = false; then
98 gl_ltlibdeps="$gl_ltlibdeps $LTLIBICONV"
99 gl_libdeps="$gl_libdeps $LIBICONV"
100 fi
101 gl_HEADER_STRING_H
102 gl_HEADER_STRINGS_H
103 gl_HEADER_SYS_FILE_H
104 AC_PROG_MKDIR_P
105 gl_HEADER_TIME_H
106 gl_TIME_R
107 gl_UNISTD_H
108 gl_MODULE_INDICATOR([unistr/u8-mbtouc])
109 gl_MODULE_INDICATOR([unistr/u8-mbtouc-unsafe])
110 gl_MODULE_INDICATOR([unistr/u8-mbtoucr])
111 gl_MODULE_INDICATOR([unistr/u8-uctomb])
112 gl_FUNC_VASNPRINTF
113 gl_FUNC_VSNPRINTF
114 gl_STDIO_MODULE_INDICATOR([vsnprintf])
115 gl_WCHAR_H
116 gl_FUNC_WRITE
117 gl_UNISTD_MODULE_INDICATOR([write])
118 gl_XSIZE
119 m4_ifval(gl_LIBSOURCES_LIST, [
120 m4_syscmd([test ! -d ]m4_defn([gl_LIBSOURCES_DIR])[ ||
121 for gl_file in ]gl_LIBSOURCES_LIST[ ; do
122 if test ! -r ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file ; then
123 echo "missing file ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file" >&2
124 exit 1
125 fi
126 done])dnl
127 m4_if(m4_sysval, [0], [],
128 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
129 ])
130 m4_popdef([gl_LIBSOURCES_DIR])
131 m4_popdef([gl_LIBSOURCES_LIST])
132 m4_popdef([AC_LIBSOURCES])
133 m4_popdef([AC_REPLACE_FUNCS])
134 m4_popdef([AC_LIBOBJ])
135 AC_CONFIG_COMMANDS_PRE([
136 gl_libobjs=
137 gl_ltlibobjs=
138 if test -n "$gl_LIBOBJS"; then
139 # Remove the extension.
140 sed_drop_objext='s/\.o$//;s/\.obj$//'
141 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
142 gl_libobjs="$gl_libobjs $i.$ac_objext"
143 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
144 done
145 fi
146 AC_SUBST([gl_LIBOBJS], [$gl_libobjs])
147 AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs])
148 ])
149 gltests_libdeps=
150 gltests_ltlibdeps=
151 m4_pushdef([AC_LIBOBJ], m4_defn([gltests_LIBOBJ]))
152 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gltests_REPLACE_FUNCS]))
153 m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES]))
154 m4_pushdef([gltests_LIBSOURCES_LIST], [])
155 m4_pushdef([gltests_LIBSOURCES_DIR], [])
156 gl_COMMON
157 gl_source_base='tests'
158 m4_ifval(gltests_LIBSOURCES_LIST, [
159 m4_syscmd([test ! -d ]m4_defn([gltests_LIBSOURCES_DIR])[ ||
160 for gl_file in ]gltests_LIBSOURCES_LIST[ ; do
161 if test ! -r ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file ; then
162 echo "missing file ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file" >&2
163 exit 1
164 fi
165 done])dnl
166 m4_if(m4_sysval, [0], [],
167 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
168 ])
169 m4_popdef([gltests_LIBSOURCES_DIR])
170 m4_popdef([gltests_LIBSOURCES_LIST])
171 m4_popdef([AC_LIBSOURCES])
172 m4_popdef([AC_REPLACE_FUNCS])
173 m4_popdef([AC_LIBOBJ])
174 AC_CONFIG_COMMANDS_PRE([
175 gltests_libobjs=
176 gltests_ltlibobjs=
177 if test -n "$gltests_LIBOBJS"; then
178 # Remove the extension.
179 sed_drop_objext='s/\.o$//;s/\.obj$//'
180 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
181 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
182 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
183 done
184 fi
185 AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs])
186 AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs])
187 ])
188 ])
189
190 # Like AC_LIBOBJ, except that the module name goes
191 # into gl_LIBOBJS instead of into LIBOBJS.
192 AC_DEFUN([gl_LIBOBJ], [
193 AS_LITERAL_IF([$1], [gl_LIBSOURCES([$1.c])])dnl
194 gl_LIBOBJS="$gl_LIBOBJS $1.$ac_objext"
195 ])
196
197 # Like AC_REPLACE_FUNCS, except that the module name goes
198 # into gl_LIBOBJS instead of into LIBOBJS.
199 AC_DEFUN([gl_REPLACE_FUNCS], [
200 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
201 AC_CHECK_FUNCS([$1], , [gl_LIBOBJ($ac_func)])
202 ])
203
204 # Like AC_LIBSOURCES, except the directory where the source file is
205 # expected is derived from the gnulib-tool parameterization,
206 # and alloca is special cased (for the alloca-opt module).
207 # We could also entirely rely on EXTRA_lib..._SOURCES.
208 AC_DEFUN([gl_LIBSOURCES], [
209 m4_foreach([_gl_NAME], [$1], [
210 m4_if(_gl_NAME, [alloca.c], [], [
211 m4_define([gl_LIBSOURCES_DIR], [lib])
212 m4_append([gl_LIBSOURCES_LIST], _gl_NAME, [ ])
213 ])
214 ])
215 ])
216
217 # Like AC_LIBOBJ, except that the module name goes
218 # into gltests_LIBOBJS instead of into LIBOBJS.
219 AC_DEFUN([gltests_LIBOBJ], [
220 AS_LITERAL_IF([$1], [gltests_LIBSOURCES([$1.c])])dnl
221 gltests_LIBOBJS="$gltests_LIBOBJS $1.$ac_objext"
222 ])
223
224 # Like AC_REPLACE_FUNCS, except that the module name goes
225 # into gltests_LIBOBJS instead of into LIBOBJS.
226 AC_DEFUN([gltests_REPLACE_FUNCS], [
227 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
228 AC_CHECK_FUNCS([$1], , [gltests_LIBOBJ($ac_func)])
229 ])
230
231 # Like AC_LIBSOURCES, except the directory where the source file is
232 # expected is derived from the gnulib-tool parameterization,
233 # and alloca is special cased (for the alloca-opt module).
234 # We could also entirely rely on EXTRA_lib..._SOURCES.
235 AC_DEFUN([gltests_LIBSOURCES], [
236 m4_foreach([_gl_NAME], [$1], [
237 m4_if(_gl_NAME, [alloca.c], [], [
238 m4_define([gltests_LIBSOURCES_DIR], [tests])
239 m4_append([gltests_LIBSOURCES_LIST], _gl_NAME, [ ])
240 ])
241 ])
242 ])
243
244 # This macro records the list of files which have been installed by
245 # gnulib-tool and may be removed by future gnulib-tool invocations.
246 AC_DEFUN([gl_FILE_LIST], [
247 build-aux/config.rpath
248 build-aux/link-warning.h
249 lib/alloca.in.h
250 lib/asnprintf.c
251 lib/byteswap.in.h
252 lib/c-ctype.c
253 lib/c-ctype.h
254 lib/c-strcase.h
255 lib/c-strcasecmp.c
256 lib/c-strcaseeq.h
257 lib/c-strncasecmp.c
258 lib/canonicalize-lgpl.c
259 lib/canonicalize.h
260 lib/config.charset
261 lib/errno.in.h
262 lib/float+.h
263 lib/float.in.h
264 lib/flock.c
265 lib/full-read.c
266 lib/full-read.h
267 lib/full-write.c
268 lib/full-write.h
269 lib/getpagesize.c
270 lib/iconv.c
271 lib/iconv.in.h
272 lib/iconv_close.c
273 lib/iconv_open-aix.gperf
274 lib/iconv_open-hpux.gperf
275 lib/iconv_open-irix.gperf
276 lib/iconv_open-osf.gperf
277 lib/iconv_open.c
278 lib/iconveh.h
279 lib/localcharset.c
280 lib/localcharset.h
281 lib/malloc.c
282 lib/malloca.c
283 lib/malloca.h
284 lib/malloca.valgrind
285 lib/mbrlen.c
286 lib/mbrtowc.c
287 lib/mbsinit.c
288 lib/memchr.c
289 lib/memchr.valgrind
290 lib/pathmax.h
291 lib/printf-args.c
292 lib/printf-args.h
293 lib/printf-parse.c
294 lib/printf-parse.h
295 lib/putenv.c
296 lib/readlink.c
297 lib/ref-add.sin
298 lib/ref-del.sin
299 lib/safe-read.c
300 lib/safe-read.h
301 lib/safe-write.c
302 lib/safe-write.h
303 lib/size_max.h
304 lib/stdbool.in.h
305 lib/stdint.in.h
306 lib/stdio-write.c
307 lib/stdio.in.h
308 lib/stdlib.in.h
309 lib/strcasecmp.c
310 lib/streq.h
311 lib/strftime.c
312 lib/strftime.h
313 lib/striconveh.c
314 lib/striconveh.h
315 lib/string.in.h
316 lib/strings.in.h
317 lib/strncasecmp.c
318 lib/sys_file.in.h
319 lib/time.in.h
320 lib/time_r.c
321 lib/unistd.in.h
322 lib/unistr.h
323 lib/unistr/u8-mbtouc-aux.c
324 lib/unistr/u8-mbtouc-unsafe-aux.c
325 lib/unistr/u8-mbtouc-unsafe.c
326 lib/unistr/u8-mbtouc.c
327 lib/unistr/u8-mbtoucr.c
328 lib/unistr/u8-prev.c
329 lib/unistr/u8-uctomb-aux.c
330 lib/unistr/u8-uctomb.c
331 lib/unitypes.h
332 lib/vasnprintf.c
333 lib/vasnprintf.h
334 lib/verify.h
335 lib/vsnprintf.c
336 lib/wchar.in.h
337 lib/write.c
338 lib/xsize.h
339 m4/00gnulib.m4
340 m4/alloca.m4
341 m4/autobuild.m4
342 m4/byteswap.m4
343 m4/canonicalize-lgpl.m4
344 m4/codeset.m4
345 m4/eealloc.m4
346 m4/environ.m4
347 m4/errno_h.m4
348 m4/extensions.m4
349 m4/float_h.m4
350 m4/flock.m4
351 m4/fpieee.m4
352 m4/getpagesize.m4
353 m4/glibc21.m4
354 m4/gnulib-common.m4
355 m4/iconv.m4
356 m4/iconv_h.m4
357 m4/iconv_open.m4
358 m4/include_next.m4
359 m4/inline.m4
360 m4/intmax_t.m4
361 m4/inttypes_h.m4
362 m4/ld-version-script.m4
363 m4/lib-ld.m4
364 m4/lib-link.m4
365 m4/lib-prefix.m4
366 m4/libunistring.m4
367 m4/localcharset.m4
368 m4/locale-fr.m4
369 m4/locale-ja.m4
370 m4/locale-zh.m4
371 m4/longlong.m4
372 m4/malloc.m4
373 m4/malloca.m4
374 m4/mbrlen.m4
375 m4/mbrtowc.m4
376 m4/mbsinit.m4
377 m4/mbstate_t.m4
378 m4/memchr.m4
379 m4/mmap-anon.m4
380 m4/multiarch.m4
381 m4/pathmax.m4
382 m4/printf.m4
383 m4/putenv.m4
384 m4/readlink.m4
385 m4/safe-read.m4
386 m4/safe-write.m4
387 m4/size_max.m4
388 m4/ssize_t.m4
389 m4/stdbool.m4
390 m4/stdint.m4
391 m4/stdint_h.m4
392 m4/stdio_h.m4
393 m4/stdlib_h.m4
394 m4/strcase.m4
395 m4/strftime.m4
396 m4/string_h.m4
397 m4/strings_h.m4
398 m4/sys_file_h.m4
399 m4/time_h.m4
400 m4/time_r.m4
401 m4/tm_gmtoff.m4
402 m4/unistd_h.m4
403 m4/vasnprintf.m4
404 m4/visibility.m4
405 m4/vsnprintf.m4
406 m4/wchar.m4
407 m4/wchar_t.m4
408 m4/wint_t.m4
409 m4/write.m4
410 m4/xsize.m4
411 ])