1 # -*- buffer-read-only: t -*- vi: set ro:
2 # DO NOT EDIT! GENERATED AUTOMATICALLY!
3 # DO NOT EDIT! GENERATED AUTOMATICALLY!
4 # Copyright (C) 2002-2010 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([gl_USE_SYSTEM_EXTENSIONS])
31 AC_REQUIRE([AC_FUNC_FSEEKO])
32 AC_REQUIRE([gl_FP_IEEE])
33 AC_REQUIRE([AC_FUNC_FSEEKO])
34 AC_REQUIRE([AC_FUNC_FSEEKO])
37 # This macro should be invoked from ./configure.ac, in the section
38 # "Check for header files, types and library functions".
41 AM_CONDITIONAL([GL_COND_LIBTOOL], [false])
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], [])
55 gl_STDLIB_MODULE_INDICATOR([calloc-posix])
58 gl_UNISTD_MODULE_INDICATOR([chown])
61 gl_UNISTD_MODULE_INDICATOR([close])
63 gl_MODULE_INDICATOR([close-stream])
66 gl_CHECK_TYPE_STRUCT_DIRENT_D_INO
69 gl_DIRENT_MODULE_INDICATOR([dirfd])
73 gl_UNISTD_MODULE_INDICATOR([dup2])
76 m4_ifdef([AM_XGETTEXT_OPTION],
77 [AM_][XGETTEXT_OPTION([--flag=error:3:c-format])
78 AM_][XGETTEXT_OPTION([--flag=error_at_line:5:c-format])])
81 gl_UNISTD_MODULE_INDICATOR([fchdir])
83 gl_STDIO_MODULE_INDICATOR([fclose])
85 gl_FCNTL_MODULE_INDICATOR([fcntl])
88 gl_MODULE_INDICATOR([fcntl-safer])
90 gl_DIRENT_MODULE_INDICATOR([fdopendir])
92 gl_STDIO_MODULE_INDICATOR([fflush])
96 gl_STDIO_MODULE_INDICATOR([fprintf-posix])
98 gl_STDIO_MODULE_INDICATOR([fpurge])
100 gl_FUNC_FREXP_NO_LIBM
101 gl_MATH_MODULE_INDICATOR([frexp])
102 gl_FUNC_FREXPL_NO_LIBM
103 gl_MATH_MODULE_INDICATOR([frexpl])
105 gl_STDIO_MODULE_INDICATOR([fseeko])
107 gl_STDIO_MODULE_INDICATOR([ftello])
109 gl_UNISTD_MODULE_INDICATOR([getcwd])
111 gl_MODULE_INDICATOR([getopt-gnu])
114 AC_SUBST([LTLIBINTL])
118 # Autoconf 2.61a.99 and earlier don't support linking a file only
119 # in VPATH builds. But since GNUmakefile is for maintainer use
120 # only, it does not matter if we skip the link with older autoconf.
121 # Automake 1.10.1 and earlier try to remove GNUmakefile in non-VPATH
122 # builds, so use a shell variable to bypass this.
123 GNUmakefile=GNUmakefile
124 m4_if(m4_version_compare([2.61a.100],
125 m4_defn([m4_PACKAGE_VERSION])), [1], [],
126 [AC_CONFIG_LINKS([$GNUmakefile:$GNUmakefile], [],
127 [GNUmakefile=$GNUmakefile])])
128 AC_REQUIRE([AC_C_INLINE])
130 gl_FUNC_ISNAND_NO_LIBM
131 gl_FUNC_ISNANF_NO_LIBM
132 gl_FUNC_ISNANL_NO_LIBM
134 gl_UNISTD_MODULE_INDICATOR([lchown])
136 LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(top_builddir)/$gl_source_base\""
137 AC_SUBST([LOCALCHARSET_TESTS_ENVIRONMENT])
139 gl_UNISTD_MODULE_INDICATOR([lseek])
141 gl_SYS_STAT_MODULE_INDICATOR([lstat])
143 AC_DEFINE([GNULIB_MALLOC_GNU], 1, [Define to indicate the 'malloc' module.])
145 gl_STDLIB_MODULE_INDICATOR([malloc-posix])
148 gl_WCHAR_MODULE_INDICATOR([mbrtowc])
150 gl_WCHAR_MODULE_INDICATOR([mbsinit])
152 gl_STRING_MODULE_INDICATOR([memchr])
154 gl_STRING_MODULE_INDICATOR([mempcpy])
156 gl_STRING_MODULE_INDICATOR([memrchr])
160 gl_MODULE_INDICATOR([open])
161 gl_FCNTL_MODULE_INDICATOR([open])
164 gl_STRING_MODULE_INDICATOR([perror])
166 gl_FUNC_PRINTF_FREXPL
168 gl_STDIO_MODULE_INDICATOR([printf-posix])
169 m4_divert_text([INIT_PREPARE], [gl_printf_safe=yes])
172 AC_DEFINE([GNULIB_REALLOC_GNU], 1, [Define to indicate the 'realloc' module.])
173 gl_FUNC_REALLOC_POSIX
174 gl_STDLIB_MODULE_INDICATOR([realloc-posix])
176 gl_UNISTD_MODULE_INDICATOR([rmdir])
179 gl_MATH_MODULE_INDICATOR([signbit])
182 gl_SYS_STAT_MODULE_INDICATOR([stat])
191 gl_STRING_MODULE_INDICATOR([strdup])
193 gl_STRING_MODULE_INDICATOR([strerror])
204 gl_UNISTD_MODULE_INDICATOR([unlink])
207 gl_FUNC_VFPRINTF_POSIX
208 gl_STDIO_MODULE_INDICATOR([vfprintf-posix])
209 AC_SUBST([WARN_CFLAGS])
216 m4_ifval(gl_LIBSOURCES_LIST, [
217 m4_syscmd([test ! -d ]m4_defn([gl_LIBSOURCES_DIR])[ ||
218 for gl_file in ]gl_LIBSOURCES_LIST[ ; do
219 if test ! -r ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file ; then
220 echo "missing file ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file" >&2
224 m4_if(m4_sysval, [0], [],
225 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
227 m4_popdef([gl_LIBSOURCES_DIR])
228 m4_popdef([gl_LIBSOURCES_LIST])
229 m4_popdef([AC_LIBSOURCES])
230 m4_popdef([AC_REPLACE_FUNCS])
231 m4_popdef([AC_LIBOBJ])
232 AC_CONFIG_COMMANDS_PRE([
235 if test -n "$gl_LIBOBJS"; then
236 # Remove the extension.
237 sed_drop_objext='s/\.o$//;s/\.obj$//'
238 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
239 gl_libobjs="$gl_libobjs $i.$ac_objext"
240 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
243 AC_SUBST([gl_LIBOBJS], [$gl_libobjs])
244 AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs])
248 m4_pushdef([AC_LIBOBJ], m4_defn([gltests_LIBOBJ]))
249 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gltests_REPLACE_FUNCS]))
250 m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES]))
251 m4_pushdef([gltests_LIBSOURCES_LIST], [])
252 m4_pushdef([gltests_LIBSOURCES_DIR], [])
254 gl_source_base='tests'
255 m4_ifval(gltests_LIBSOURCES_LIST, [
256 m4_syscmd([test ! -d ]m4_defn([gltests_LIBSOURCES_DIR])[ ||
257 for gl_file in ]gltests_LIBSOURCES_LIST[ ; do
258 if test ! -r ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file ; then
259 echo "missing file ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file" >&2
263 m4_if(m4_sysval, [0], [],
264 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
266 m4_popdef([gltests_LIBSOURCES_DIR])
267 m4_popdef([gltests_LIBSOURCES_LIST])
268 m4_popdef([AC_LIBSOURCES])
269 m4_popdef([AC_REPLACE_FUNCS])
270 m4_popdef([AC_LIBOBJ])
271 AC_CONFIG_COMMANDS_PRE([
274 if test -n "$gltests_LIBOBJS"; then
275 # Remove the extension.
276 sed_drop_objext='s/\.o$//;s/\.obj$//'
277 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
278 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
279 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
282 AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs])
283 AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs])
285 LIBGZIP_LIBDEPS="$gl_libdeps"
286 AC_SUBST([LIBGZIP_LIBDEPS])
287 LIBGZIP_LTLIBDEPS="$gl_ltlibdeps"
288 AC_SUBST([LIBGZIP_LTLIBDEPS])
291 # Like AC_LIBOBJ, except that the module name goes
292 # into gl_LIBOBJS instead of into LIBOBJS.
293 AC_DEFUN([gl_LIBOBJ], [
294 AS_LITERAL_IF([$1], [gl_LIBSOURCES([$1.c])])dnl
295 gl_LIBOBJS="$gl_LIBOBJS $1.$ac_objext"
298 # Like AC_REPLACE_FUNCS, except that the module name goes
299 # into gl_LIBOBJS instead of into LIBOBJS.
300 AC_DEFUN([gl_REPLACE_FUNCS], [
301 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
302 AC_CHECK_FUNCS([$1], , [gl_LIBOBJ($ac_func)])
305 # Like AC_LIBSOURCES, except the directory where the source file is
306 # expected is derived from the gnulib-tool parameterization,
307 # and alloca is special cased (for the alloca-opt module).
308 # We could also entirely rely on EXTRA_lib..._SOURCES.
309 AC_DEFUN([gl_LIBSOURCES], [
310 m4_foreach([_gl_NAME], [$1], [
311 m4_if(_gl_NAME, [alloca.c], [], [
312 m4_define([gl_LIBSOURCES_DIR], [lib])
313 m4_append([gl_LIBSOURCES_LIST], _gl_NAME, [ ])
318 # Like AC_LIBOBJ, except that the module name goes
319 # into gltests_LIBOBJS instead of into LIBOBJS.
320 AC_DEFUN([gltests_LIBOBJ], [
321 AS_LITERAL_IF([$1], [gltests_LIBSOURCES([$1.c])])dnl
322 gltests_LIBOBJS="$gltests_LIBOBJS $1.$ac_objext"
325 # Like AC_REPLACE_FUNCS, except that the module name goes
326 # into gltests_LIBOBJS instead of into LIBOBJS.
327 AC_DEFUN([gltests_REPLACE_FUNCS], [
328 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
329 AC_CHECK_FUNCS([$1], , [gltests_LIBOBJ($ac_func)])
332 # Like AC_LIBSOURCES, except the directory where the source file is
333 # expected is derived from the gnulib-tool parameterization,
334 # and alloca is special cased (for the alloca-opt module).
335 # We could also entirely rely on EXTRA_lib..._SOURCES.
336 AC_DEFUN([gltests_LIBSOURCES], [
337 m4_foreach([_gl_NAME], [$1], [
338 m4_if(_gl_NAME, [alloca.c], [], [
339 m4_define([gltests_LIBSOURCES_DIR], [tests])
340 m4_append([gltests_LIBSOURCES_LIST], _gl_NAME, [ ])
345 # This macro records the list of files which have been installed by
346 # gnulib-tool and may be removed by future gnulib-tool invocations.
347 AC_DEFUN([gl_FILE_LIST], [
348 build-aux/announce-gen
349 build-aux/arg-nonnull.h
351 build-aux/git-version-gen
352 build-aux/gitlog-to-changelog
353 build-aux/gnu-web-doc-update
355 build-aux/link-warning.h
356 build-aux/update-copyright
357 build-aux/useless-if-before-free
358 build-aux/vc-list-files
359 build-aux/warn-on-use.h
540 m4/double-slash-root.m4
567 m4/getcwd-abort-bug.m4
568 m4/getcwd-path-max.m4
611 m4/printf-posix-rpl.m4