cb13d81f41738f357d2311558ffbde017d2ffb94
[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_HEADER_ARPA_INET
49 AC_PROG_MKDIR_P
50 gl_BYTESWAP
51 gl_CANONICALIZE_LGPL
52 gl_MODULE_INDICATOR([canonicalize-lgpl])
53 gl_STDLIB_MODULE_INDICATOR([canonicalize_file_name])
54 gl_STDLIB_MODULE_INDICATOR([realpath])
55 gl_ENVIRON
56 gl_UNISTD_MODULE_INDICATOR([environ])
57 gl_HEADER_ERRNO_H
58 gl_FLOAT_H
59 gl_FUNC_FLOCK
60 gl_HEADER_SYS_FILE_MODULE_INDICATOR([flock])
61 gl_FUNC_GETPAGESIZE
62 gl_UNISTD_MODULE_INDICATOR([getpagesize])
63 AM_ICONV
64 gl_ICONV_H
65 gl_FUNC_ICONV_OPEN
66 gl_FUNC_ICONV_OPEN_UTF
67 gl_INET_NTOP
68 gl_ARPA_INET_MODULE_INDICATOR([inet_ntop])
69 gl_INET_PTON
70 gl_ARPA_INET_MODULE_INDICATOR([inet_pton])
71 gl_INLINE
72 gl_LD_VERSION_SCRIPT
73 gl_VISIBILITY
74 gl_LIBUNISTRING
75 gl_LOCALCHARSET
76 LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(top_builddir)/$gl_source_base\""
77 AC_SUBST([LOCALCHARSET_TESTS_ENVIRONMENT])
78 gl_FUNC_LSTAT
79 gl_SYS_STAT_MODULE_INDICATOR([lstat])
80 gl_FUNC_MALLOC_POSIX
81 gl_STDLIB_MODULE_INDICATOR([malloc-posix])
82 gl_MALLOCA
83 gl_FUNC_MBRLEN
84 gl_WCHAR_MODULE_INDICATOR([mbrlen])
85 gl_FUNC_MBRTOWC
86 gl_WCHAR_MODULE_INDICATOR([mbrtowc])
87 gl_FUNC_MBSINIT
88 gl_WCHAR_MODULE_INDICATOR([mbsinit])
89 gl_FUNC_MEMCHR
90 gl_STRING_MODULE_INDICATOR([memchr])
91 gl_MULTIARCH
92 gl_HEADER_NETINET_IN
93 AC_PROG_MKDIR_P
94 gl_PATHMAX
95 gl_FUNC_PUTENV
96 gl_STDLIB_MODULE_INDICATOR([putenv])
97 gl_FUNC_READLINK
98 gl_UNISTD_MODULE_INDICATOR([readlink])
99 gl_SAFE_READ
100 gl_SAFE_WRITE
101 gl_SIZE_MAX
102 gl_TYPE_SOCKLEN_T
103 gt_TYPE_SSIZE_T
104 gl_FUNC_STAT
105 gl_SYS_STAT_MODULE_INDICATOR([stat])
106 AM_STDBOOL_H
107 gl_STDDEF_H
108 gl_STDINT_H
109 gl_STDIO_H
110 gl_STDLIB_H
111 gl_STRCASE
112 gl_FUNC_GNU_STRFTIME
113 if test $gl_cond_libtool = false; then
114 gl_ltlibdeps="$gl_ltlibdeps $LTLIBICONV"
115 gl_libdeps="$gl_libdeps $LIBICONV"
116 fi
117 gl_HEADER_STRING_H
118 gl_HEADER_STRINGS_H
119 gl_HEADER_SYS_FILE_H
120 AC_PROG_MKDIR_P
121 gl_HEADER_SYS_SOCKET
122 AC_PROG_MKDIR_P
123 gl_HEADER_SYS_STAT_H
124 AC_PROG_MKDIR_P
125 gl_HEADER_TIME_H
126 gl_TIME_R
127 gl_UNISTD_H
128 gl_MODULE_INDICATOR([unistr/u8-mbtouc])
129 gl_MODULE_INDICATOR([unistr/u8-mbtouc-unsafe])
130 gl_MODULE_INDICATOR([unistr/u8-mbtoucr])
131 gl_MODULE_INDICATOR([unistr/u8-uctomb])
132 gl_FUNC_VASNPRINTF
133 gl_FUNC_VSNPRINTF
134 gl_STDIO_MODULE_INDICATOR([vsnprintf])
135 gl_WCHAR_H
136 gl_FUNC_WRITE
137 gl_UNISTD_MODULE_INDICATOR([write])
138 gl_XSIZE
139 m4_ifval(gl_LIBSOURCES_LIST, [
140 m4_syscmd([test ! -d ]m4_defn([gl_LIBSOURCES_DIR])[ ||
141 for gl_file in ]gl_LIBSOURCES_LIST[ ; do
142 if test ! -r ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file ; then
143 echo "missing file ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file" >&2
144 exit 1
145 fi
146 done])dnl
147 m4_if(m4_sysval, [0], [],
148 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
149 ])
150 m4_popdef([gl_LIBSOURCES_DIR])
151 m4_popdef([gl_LIBSOURCES_LIST])
152 m4_popdef([AC_LIBSOURCES])
153 m4_popdef([AC_REPLACE_FUNCS])
154 m4_popdef([AC_LIBOBJ])
155 AC_CONFIG_COMMANDS_PRE([
156 gl_libobjs=
157 gl_ltlibobjs=
158 if test -n "$gl_LIBOBJS"; then
159 # Remove the extension.
160 sed_drop_objext='s/\.o$//;s/\.obj$//'
161 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
162 gl_libobjs="$gl_libobjs $i.$ac_objext"
163 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
164 done
165 fi
166 AC_SUBST([gl_LIBOBJS], [$gl_libobjs])
167 AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs])
168 ])
169 gltests_libdeps=
170 gltests_ltlibdeps=
171 m4_pushdef([AC_LIBOBJ], m4_defn([gltests_LIBOBJ]))
172 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gltests_REPLACE_FUNCS]))
173 m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES]))
174 m4_pushdef([gltests_LIBSOURCES_LIST], [])
175 m4_pushdef([gltests_LIBSOURCES_DIR], [])
176 gl_COMMON
177 gl_source_base='tests'
178 m4_ifval(gltests_LIBSOURCES_LIST, [
179 m4_syscmd([test ! -d ]m4_defn([gltests_LIBSOURCES_DIR])[ ||
180 for gl_file in ]gltests_LIBSOURCES_LIST[ ; do
181 if test ! -r ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file ; then
182 echo "missing file ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file" >&2
183 exit 1
184 fi
185 done])dnl
186 m4_if(m4_sysval, [0], [],
187 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
188 ])
189 m4_popdef([gltests_LIBSOURCES_DIR])
190 m4_popdef([gltests_LIBSOURCES_LIST])
191 m4_popdef([AC_LIBSOURCES])
192 m4_popdef([AC_REPLACE_FUNCS])
193 m4_popdef([AC_LIBOBJ])
194 AC_CONFIG_COMMANDS_PRE([
195 gltests_libobjs=
196 gltests_ltlibobjs=
197 if test -n "$gltests_LIBOBJS"; then
198 # Remove the extension.
199 sed_drop_objext='s/\.o$//;s/\.obj$//'
200 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
201 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
202 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
203 done
204 fi
205 AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs])
206 AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs])
207 ])
208 ])
209
210 # Like AC_LIBOBJ, except that the module name goes
211 # into gl_LIBOBJS instead of into LIBOBJS.
212 AC_DEFUN([gl_LIBOBJ], [
213 AS_LITERAL_IF([$1], [gl_LIBSOURCES([$1.c])])dnl
214 gl_LIBOBJS="$gl_LIBOBJS $1.$ac_objext"
215 ])
216
217 # Like AC_REPLACE_FUNCS, except that the module name goes
218 # into gl_LIBOBJS instead of into LIBOBJS.
219 AC_DEFUN([gl_REPLACE_FUNCS], [
220 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
221 AC_CHECK_FUNCS([$1], , [gl_LIBOBJ($ac_func)])
222 ])
223
224 # Like AC_LIBSOURCES, except the directory where the source file is
225 # expected is derived from the gnulib-tool parameterization,
226 # and alloca is special cased (for the alloca-opt module).
227 # We could also entirely rely on EXTRA_lib..._SOURCES.
228 AC_DEFUN([gl_LIBSOURCES], [
229 m4_foreach([_gl_NAME], [$1], [
230 m4_if(_gl_NAME, [alloca.c], [], [
231 m4_define([gl_LIBSOURCES_DIR], [lib])
232 m4_append([gl_LIBSOURCES_LIST], _gl_NAME, [ ])
233 ])
234 ])
235 ])
236
237 # Like AC_LIBOBJ, except that the module name goes
238 # into gltests_LIBOBJS instead of into LIBOBJS.
239 AC_DEFUN([gltests_LIBOBJ], [
240 AS_LITERAL_IF([$1], [gltests_LIBSOURCES([$1.c])])dnl
241 gltests_LIBOBJS="$gltests_LIBOBJS $1.$ac_objext"
242 ])
243
244 # Like AC_REPLACE_FUNCS, except that the module name goes
245 # into gltests_LIBOBJS instead of into LIBOBJS.
246 AC_DEFUN([gltests_REPLACE_FUNCS], [
247 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
248 AC_CHECK_FUNCS([$1], , [gltests_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([gltests_LIBSOURCES], [
256 m4_foreach([_gl_NAME], [$1], [
257 m4_if(_gl_NAME, [alloca.c], [], [
258 m4_define([gltests_LIBSOURCES_DIR], [tests])
259 m4_append([gltests_LIBSOURCES_LIST], _gl_NAME, [ ])
260 ])
261 ])
262 ])
263
264 # This macro records the list of files which have been installed by
265 # gnulib-tool and may be removed by future gnulib-tool invocations.
266 AC_DEFUN([gl_FILE_LIST], [
267 build-aux/config.rpath
268 build-aux/link-warning.h
269 lib/alignof.h
270 lib/alloca.in.h
271 lib/arpa_inet.in.h
272 lib/asnprintf.c
273 lib/byteswap.in.h
274 lib/c-ctype.c
275 lib/c-ctype.h
276 lib/c-strcase.h
277 lib/c-strcasecmp.c
278 lib/c-strcaseeq.h
279 lib/c-strncasecmp.c
280 lib/canonicalize-lgpl.c
281 lib/config.charset
282 lib/errno.in.h
283 lib/float+.h
284 lib/float.in.h
285 lib/flock.c
286 lib/full-read.c
287 lib/full-read.h
288 lib/full-write.c
289 lib/full-write.h
290 lib/getpagesize.c
291 lib/iconv.c
292 lib/iconv.in.h
293 lib/iconv_close.c
294 lib/iconv_open-aix.gperf
295 lib/iconv_open-hpux.gperf
296 lib/iconv_open-irix.gperf
297 lib/iconv_open-osf.gperf
298 lib/iconv_open-solaris.gperf
299 lib/iconv_open.c
300 lib/iconveh.h
301 lib/inet_ntop.c
302 lib/inet_pton.c
303 lib/localcharset.c
304 lib/localcharset.h
305 lib/lstat.c
306 lib/malloc.c
307 lib/malloca.c
308 lib/malloca.h
309 lib/malloca.valgrind
310 lib/mbrlen.c
311 lib/mbrtowc.c
312 lib/mbsinit.c
313 lib/memchr.c
314 lib/memchr.valgrind
315 lib/netinet_in.in.h
316 lib/pathmax.h
317 lib/printf-args.c
318 lib/printf-args.h
319 lib/printf-parse.c
320 lib/printf-parse.h
321 lib/putenv.c
322 lib/readlink.c
323 lib/ref-add.sin
324 lib/ref-del.sin
325 lib/safe-read.c
326 lib/safe-read.h
327 lib/safe-write.c
328 lib/safe-write.h
329 lib/size_max.h
330 lib/stat.c
331 lib/stdbool.in.h
332 lib/stddef.in.h
333 lib/stdint.in.h
334 lib/stdio-write.c
335 lib/stdio.in.h
336 lib/stdlib.in.h
337 lib/strcasecmp.c
338 lib/streq.h
339 lib/strftime.c
340 lib/strftime.h
341 lib/striconveh.c
342 lib/striconveh.h
343 lib/string.in.h
344 lib/strings.in.h
345 lib/strncasecmp.c
346 lib/sys_file.in.h
347 lib/sys_socket.in.h
348 lib/sys_stat.in.h
349 lib/time.in.h
350 lib/time_r.c
351 lib/unistd.in.h
352 lib/unistr.h
353 lib/unistr/u8-mbtouc-aux.c
354 lib/unistr/u8-mbtouc-unsafe-aux.c
355 lib/unistr/u8-mbtouc-unsafe.c
356 lib/unistr/u8-mbtouc.c
357 lib/unistr/u8-mbtoucr.c
358 lib/unistr/u8-prev.c
359 lib/unistr/u8-uctomb-aux.c
360 lib/unistr/u8-uctomb.c
361 lib/unitypes.h
362 lib/vasnprintf.c
363 lib/vasnprintf.h
364 lib/verify.h
365 lib/vsnprintf.c
366 lib/wchar.in.h
367 lib/write.c
368 lib/xsize.h
369 m4/00gnulib.m4
370 m4/alloca.m4
371 m4/arpa_inet_h.m4
372 m4/autobuild.m4
373 m4/byteswap.m4
374 m4/canonicalize.m4
375 m4/codeset.m4
376 m4/dos.m4
377 m4/double-slash-root.m4
378 m4/eealloc.m4
379 m4/environ.m4
380 m4/errno_h.m4
381 m4/extensions.m4
382 m4/fcntl_h.m4
383 m4/float_h.m4
384 m4/flock.m4
385 m4/fpieee.m4
386 m4/getpagesize.m4
387 m4/glibc21.m4
388 m4/gnulib-common.m4
389 m4/iconv.m4
390 m4/iconv_h.m4
391 m4/iconv_open.m4
392 m4/include_next.m4
393 m4/inet_ntop.m4
394 m4/inet_pton.m4
395 m4/inline.m4
396 m4/intmax_t.m4
397 m4/inttypes_h.m4
398 m4/ld-version-script.m4
399 m4/lib-ld.m4
400 m4/lib-link.m4
401 m4/lib-prefix.m4
402 m4/libunistring.m4
403 m4/localcharset.m4
404 m4/locale-fr.m4
405 m4/locale-ja.m4
406 m4/locale-zh.m4
407 m4/longlong.m4
408 m4/lstat.m4
409 m4/malloc.m4
410 m4/malloca.m4
411 m4/mbrlen.m4
412 m4/mbrtowc.m4
413 m4/mbsinit.m4
414 m4/mbstate_t.m4
415 m4/memchr.m4
416 m4/mmap-anon.m4
417 m4/multiarch.m4
418 m4/netinet_in_h.m4
419 m4/pathmax.m4
420 m4/printf.m4
421 m4/putenv.m4
422 m4/readlink.m4
423 m4/safe-read.m4
424 m4/safe-write.m4
425 m4/size_max.m4
426 m4/socklen.m4
427 m4/sockpfaf.m4
428 m4/ssize_t.m4
429 m4/stat.m4
430 m4/stdbool.m4
431 m4/stddef_h.m4
432 m4/stdint.m4
433 m4/stdint_h.m4
434 m4/stdio_h.m4
435 m4/stdlib_h.m4
436 m4/strcase.m4
437 m4/strftime.m4
438 m4/string_h.m4
439 m4/strings_h.m4
440 m4/sys_file_h.m4
441 m4/sys_socket_h.m4
442 m4/sys_stat_h.m4
443 m4/time_h.m4
444 m4/time_r.m4
445 m4/tm_gmtoff.m4
446 m4/unistd_h.m4
447 m4/vasnprintf.m4
448 m4/visibility.m4
449 m4/vsnprintf.m4
450 m4/wchar.m4
451 m4/wchar_t.m4
452 m4/wint_t.m4
453 m4/write.m4
454 m4/xsize.m4
455 ])