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