1 # -*- buffer-read-only: t -*- vi: set ro:
2 # DO NOT EDIT! GENERATED AUTOMATICALLY!
3 # DO NOT EDIT! GENERATED AUTOMATICALLY!
4 # Copyright (C) 2002-2008 Free Software Foundation, Inc.
6 # This file is free software, distributed under the terms of the GNU
7 # General Public License. As a special exception to the GNU General
8 # Public License, this file may be distributed as part of a program
9 # that contains a configuration script generated by Autoconf, under
10 # the same distribution terms as the rest of that program.
12 # Generated by gnulib-tool.
14 # This file represents the compiled summary of the specification in
15 # gnulib-cache.m4. It lists the computed macro invocations that need
16 # to be invoked from configure.ac.
17 # In projects using CVS, this file can be treated like other built files.
20 # This macro should be invoked from ./configure.ac, in the section
21 # "Checks for programs", right after AC_PROG_CC, and certainly before
22 # any checks for libraries, header files, types and library functions.
25 m4_pattern_forbid([^gl_[A-Z]])dnl the gnulib macro namespace
26 m4_pattern_allow([^gl_ES$])dnl a valid locale name
27 m4_pattern_allow([^gl_LIBOBJS$])dnl a variable
28 m4_pattern_allow([^gl_LTLIBOBJS$])dnl a variable
29 AC_REQUIRE([AC_PROG_RANLIB])
30 AC_REQUIRE([AM_PROG_CC_C_O])
31 AC_REQUIRE([AC_GNU_SOURCE])
32 AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
33 AC_REQUIRE([AC_FUNC_FSEEKO])
34 dnl Some compilers (e.g., AIX 5.3 cc) need to be in c99 mode
35 dnl for the builtin va_copy to work. With Autoconf 2.60 or later,
36 dnl AC_PROG_CC_STDC arranges for this. With older Autoconf AC_PROG_CC_STDC
37 dnl shouldn't hurt, though installers are on their own to set c99 mode.
38 AC_REQUIRE([AC_PROG_CC_STDC])
41 # This macro should be invoked from ./configure.ac, in the section
42 # "Check for header files, types and library functions".
45 AM_CONDITIONAL([GL_COND_LIBTOOL], [false])
49 m4_pushdef([AC_LIBOBJ], m4_defn([gl_LIBOBJ]))
50 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gl_REPLACE_FUNCS]))
51 m4_pushdef([AC_LIBSOURCES], m4_defn([gl_LIBSOURCES]))
52 m4_pushdef([gl_LIBSOURCES_LIST], [])
53 m4_pushdef([gl_LIBSOURCES_DIR], [])
55 gl_source_base='.#bootmp/lib'
59 m4_ifdef([AM_XGETTEXT_OPTION],
60 [AM_XGETTEXT_OPTION([--flag=argp_error:2:c-format])
61 AM_XGETTEXT_OPTION([--flag=argp_failure:4:c-format])])
64 gl_MODULE_INDICATOR([canonicalize-lgpl])
67 gl_UNISTD_MODULE_INDICATOR([chown])
70 gl_UNISTD_MODULE_INDICATOR([close])
72 gl_MODULE_INDICATOR([close-stream])
74 gl_CHECK_TYPE_STRUCT_DIRENT_D_INO
77 gl_DIRENT_MODULE_INDICATOR([dirfd])
81 gl_UNISTD_MODULE_INDICATOR([dup2])
83 gl_UNISTD_MODULE_INDICATOR([environ])
86 m4_ifdef([AM_XGETTEXT_OPTION],
87 [AM_XGETTEXT_OPTION([--flag=error:3:c-format])
88 AM_XGETTEXT_OPTION([--flag=error_at_line:5:c-format])])
92 gl_UNISTD_MODULE_INDICATOR([fchdir])
94 gl_STDIO_MODULE_INDICATOR([fclose])
97 gl_MODULE_INDICATOR([fcntl-safer])
100 # No macro. You should also use one of fnmatch-posix or fnmatch-gnu.
104 gl_STDIO_MODULE_INDICATOR([fseeko])
106 gl_UNISTD_MODULE_INDICATOR([ftruncate])
108 gl_UNISTD_MODULE_INDICATOR([getcwd])
111 gl_STDIO_MODULE_INDICATOR([getdelim])
113 gl_STDIO_MODULE_INDICATOR([getline])
116 gl_UNISTD_MODULE_INDICATOR([getpagesize])
117 dnl you must add AM_GNU_GETTEXT([external]) or similar to configure.ac.
118 AM_GNU_GETTEXT_VERSION([0.17])
120 AC_SUBST([LTLIBINTL])
129 gl_UNISTD_MODULE_INDICATOR([lchown])
131 LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(top_builddir)/$gl_source_base\""
132 AC_SUBST([LOCALCHARSET_TESTS_ENVIRONMENT])
134 gl_UNISTD_MODULE_INDICATOR([lseek])
136 gl_SYS_STAT_MODULE_INDICATOR([lstat])
138 AC_DEFINE([GNULIB_MALLOC_GNU], 1, [Define to indicate the 'malloc' module.])
140 gl_STDLIB_MODULE_INDICATOR([malloc-posix])
144 gl_STRING_MODULE_INDICATOR([mbscasecmp])
148 gl_STRING_MODULE_INDICATOR([mempcpy])
150 gl_STRING_MODULE_INDICATOR([memrchr])
153 gl_STDLIB_MODULE_INDICATOR([mkdtemp])
157 dnl Note: AC_FUNC_OBSTACK does AC_LIBSOURCES([obstack.h, obstack.c]).
159 gl_MODULE_INDICATOR([open])
160 gl_FCNTL_MODULE_INDICATOR([open])
166 gl_STRING_MODULE_INDICATOR([rawmemchr])
168 gl_UNISTD_MODULE_INDICATOR([readlink])
169 gl_FUNC_REALLOC_POSIX
170 gl_STDLIB_MODULE_INDICATOR([realloc-posix])
174 gl_STDLIB_MODULE_INDICATOR([rpmatch])
180 gl_STDLIB_MODULE_INDICATOR([setenv])
182 gl_UNISTD_MODULE_INDICATOR([sleep])
184 gl_STDIO_MODULE_INDICATOR([snprintf])
194 gl_STRING_MODULE_INDICATOR([stpcpy])
197 gl_STRING_MODULE_INDICATOR([strchrnul])
199 gl_STRING_MODULE_INDICATOR([strdup])
201 gl_STRING_MODULE_INDICATOR([strerror])
205 gl_STRING_MODULE_INDICATOR([strndup])
207 gl_STRING_MODULE_INDICATOR([strnlen])
209 gl_INTTYPES_MODULE_INDICATOR([strtoimax])
212 gl_STDLIB_MODULE_INDICATOR([strtoll])
215 gl_STDLIB_MODULE_INDICATOR([strtoull])
217 gl_INTTYPES_MODULE_INDICATOR([strtoumax])
230 gl_FUNC_GLIBC_UNLOCKED_IO
232 gl_STDLIB_MODULE_INDICATOR([unsetenv])
237 gl_STDIO_MODULE_INDICATOR([vsnprintf])
241 gl_WCHAR_MODULE_INDICATOR([wcwidth])
243 gl_UNISTD_MODULE_INDICATOR([write])
249 m4_ifval(gl_LIBSOURCES_LIST, [
250 m4_syscmd([test ! -d ]m4_defn([gl_LIBSOURCES_DIR])[ ||
251 for gl_file in ]gl_LIBSOURCES_LIST[ ; do
252 if test ! -r ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file ; then
253 echo "missing file ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file" >&2
257 m4_if(m4_sysval, [0], [],
258 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
260 m4_popdef([gl_LIBSOURCES_DIR])
261 m4_popdef([gl_LIBSOURCES_LIST])
262 m4_popdef([AC_LIBSOURCES])
263 m4_popdef([AC_REPLACE_FUNCS])
264 m4_popdef([AC_LIBOBJ])
265 AC_CONFIG_COMMANDS_PRE([
268 if test -n "$gl_LIBOBJS"; then
269 # Remove the extension.
270 sed_drop_objext='s/\.o$//;s/\.obj$//'
271 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
272 gl_libobjs="$gl_libobjs $i.$ac_objext"
273 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
276 AC_SUBST([gl_LIBOBJS], [$gl_libobjs])
277 AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs])
281 m4_pushdef([AC_LIBOBJ], m4_defn([gltests_LIBOBJ]))
282 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gltests_REPLACE_FUNCS]))
283 m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES]))
284 m4_pushdef([gltests_LIBSOURCES_LIST], [])
285 m4_pushdef([gltests_LIBSOURCES_DIR], [])
287 gl_source_base='.#bootmp/tests'
288 m4_ifval(gltests_LIBSOURCES_LIST, [
289 m4_syscmd([test ! -d ]m4_defn([gltests_LIBSOURCES_DIR])[ ||
290 for gl_file in ]gltests_LIBSOURCES_LIST[ ; do
291 if test ! -r ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file ; then
292 echo "missing file ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file" >&2
296 m4_if(m4_sysval, [0], [],
297 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
299 m4_popdef([gltests_LIBSOURCES_DIR])
300 m4_popdef([gltests_LIBSOURCES_LIST])
301 m4_popdef([AC_LIBSOURCES])
302 m4_popdef([AC_REPLACE_FUNCS])
303 m4_popdef([AC_LIBOBJ])
304 AC_CONFIG_COMMANDS_PRE([
307 if test -n "$gltests_LIBOBJS"; then
308 # Remove the extension.
309 sed_drop_objext='s/\.o$//;s/\.obj$//'
310 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
311 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
312 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
315 AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs])
316 AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs])
318 LIBTAR_LIBDEPS="$gl_libdeps"
319 AC_SUBST([LIBTAR_LIBDEPS])
320 LIBTAR_LTLIBDEPS="$gl_ltlibdeps"
321 AC_SUBST([LIBTAR_LTLIBDEPS])
324 # Like AC_LIBOBJ, except that the module name goes
325 # into gl_LIBOBJS instead of into LIBOBJS.
326 AC_DEFUN([gl_LIBOBJ], [
327 AS_LITERAL_IF([$1], [gl_LIBSOURCES([$1.c])])dnl
328 gl_LIBOBJS="$gl_LIBOBJS $1.$ac_objext"
331 # Like AC_REPLACE_FUNCS, except that the module name goes
332 # into gl_LIBOBJS instead of into LIBOBJS.
333 AC_DEFUN([gl_REPLACE_FUNCS], [
334 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
335 AC_CHECK_FUNCS([$1], , [gl_LIBOBJ($ac_func)])
338 # Like AC_LIBSOURCES, except the directory where the source file is
339 # expected is derived from the gnulib-tool parameterization,
340 # and alloca is special cased (for the alloca-opt module).
341 # We could also entirely rely on EXTRA_lib..._SOURCES.
342 AC_DEFUN([gl_LIBSOURCES], [
343 m4_foreach([_gl_NAME], [$1], [
344 m4_if(_gl_NAME, [alloca.c], [], [
345 m4_define([gl_LIBSOURCES_DIR], [.#bootmp/lib])
346 m4_append([gl_LIBSOURCES_LIST], _gl_NAME, [ ])
351 # Like AC_LIBOBJ, except that the module name goes
352 # into gltests_LIBOBJS instead of into LIBOBJS.
353 AC_DEFUN([gltests_LIBOBJ], [
354 AS_LITERAL_IF([$1], [gltests_LIBSOURCES([$1.c])])dnl
355 gltests_LIBOBJS="$gltests_LIBOBJS $1.$ac_objext"
358 # Like AC_REPLACE_FUNCS, except that the module name goes
359 # into gltests_LIBOBJS instead of into LIBOBJS.
360 AC_DEFUN([gltests_REPLACE_FUNCS], [
361 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
362 AC_CHECK_FUNCS([$1], , [gltests_LIBOBJ($ac_func)])
365 # Like AC_LIBSOURCES, except the directory where the source file is
366 # expected is derived from the gnulib-tool parameterization,
367 # and alloca is special cased (for the alloca-opt module).
368 # We could also entirely rely on EXTRA_lib..._SOURCES.
369 AC_DEFUN([gltests_LIBSOURCES], [
370 m4_foreach([_gl_NAME], [$1], [
371 m4_if(_gl_NAME, [alloca.c], [], [
372 m4_define([gltests_LIBSOURCES_DIR], [.#bootmp/tests])
373 m4_append([gltests_LIBSOURCES_LIST], _gl_NAME, [ ])
378 # This macro records the list of files which have been installed by
379 # gnulib-tool and may be removed by future gnulib-tool invocations.
380 AC_DEFUN([gl_FILE_LIST], [
381 build-aux/config.rpath
382 build-aux/link-warning.h
408 lib/canonicalize-lgpl.c
520 lib/rawmemchr.valgrind
557 lib/strchrnul.valgrind
602 lib/version-etc-fsf.c
628 m4/canonicalize-lgpl.m4
641 m4/double-slash-root.m4
660 m4/getcwd-abort-bug.m4
661 m4/getcwd-path-max.m4