1 # -*- buffer-read-only: t -*- vi: set ro:
2 # DO NOT EDIT! GENERATED AUTOMATICALLY!
3 # DO NOT EDIT! GENERATED AUTOMATICALLY!
4 # Copyright (C) 2002-2009 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([close])
60 gl_MODULE_INDICATOR([close-stream])
64 gl_UNISTD_MODULE_INDICATOR([dup2])
67 m4_ifdef([AM_XGETTEXT_OPTION],
68 [AM_][XGETTEXT_OPTION([--flag=error:3:c-format])
69 AM_][XGETTEXT_OPTION([--flag=error_at_line:5:c-format])])
72 gl_STDIO_MODULE_INDICATOR([fclose])
75 gl_MODULE_INDICATOR([fcntl-safer])
77 gl_STDIO_MODULE_INDICATOR([fflush])
81 gl_STDIO_MODULE_INDICATOR([fprintf-posix])
83 gl_STDIO_MODULE_INDICATOR([fpurge])
86 gl_MATH_MODULE_INDICATOR([frexp])
87 gl_FUNC_FREXPL_NO_LIBM
88 gl_MATH_MODULE_INDICATOR([frexpl])
90 gl_STDIO_MODULE_INDICATOR([fseeko])
92 gl_STDIO_MODULE_INDICATOR([ftello])
94 gl_MODULE_INDICATOR([getopt-gnu])
97 gl_UNISTD_MODULE_INDICATOR([getpagesize])
103 # Autoconf 2.61a.99 and earlier don't support linking a file only
104 # in VPATH builds. But since GNUmakefile is for maintainer use
105 # only, it does not matter if we skip the link with older autoconf.
106 # Automake 1.10.1 and earlier try to remove GNUmakefile in non-VPATH
107 # builds, so use a shell variable to bypass this.
108 GNUmakefile=GNUmakefile
109 m4_if(m4_version_compare([2.61a.100],
110 m4_defn([m4_PACKAGE_VERSION])), [1], [],
111 [AC_CONFIG_LINKS([$GNUmakefile:$GNUmakefile], [],
112 [GNUmakefile=$GNUmakefile])])
114 gl_FUNC_ISNAND_NO_LIBM
115 gl_FUNC_ISNANF_NO_LIBM
116 gl_FUNC_ISNANL_NO_LIBM
118 LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(top_builddir)/$gl_source_base\""
119 AC_SUBST([LOCALCHARSET_TESTS_ENVIRONMENT])
121 gl_UNISTD_MODULE_INDICATOR([lseek])
123 gl_SYS_STAT_MODULE_INDICATOR([lstat])
125 AC_DEFINE([GNULIB_MALLOC_GNU], 1, [Define to indicate the 'malloc' module.])
127 gl_STDLIB_MODULE_INDICATOR([malloc-posix])
130 gl_WCHAR_MODULE_INDICATOR([mbrtowc])
132 gl_WCHAR_MODULE_INDICATOR([mbsinit])
134 gl_STRING_MODULE_INDICATOR([memchr])
137 gl_MODULE_INDICATOR([open])
138 gl_FCNTL_MODULE_INDICATOR([open])
140 gl_STRING_MODULE_INDICATOR([perror])
142 gl_FUNC_PRINTF_FREXPL
144 gl_STDIO_MODULE_INDICATOR([printf-posix])
145 m4_divert_text([INIT_PREPARE], [gl_printf_safe=yes])
148 AC_DEFINE([GNULIB_REALLOC_GNU], 1, [Define to indicate the 'realloc' module.])
149 gl_FUNC_REALLOC_POSIX
150 gl_STDLIB_MODULE_INDICATOR([realloc-posix])
152 gl_MATH_MODULE_INDICATOR([signbit])
155 gl_SYS_STAT_MODULE_INDICATOR([stat])
164 gl_STRING_MODULE_INDICATOR([strerror])
174 gl_MODULE_INDICATOR([unistd-safer])
177 gl_FUNC_VFPRINTF_POSIX
178 gl_STDIO_MODULE_INDICATOR([vfprintf-posix])
184 m4_ifval(gl_LIBSOURCES_LIST, [
185 m4_syscmd([test ! -d ]m4_defn([gl_LIBSOURCES_DIR])[ ||
186 for gl_file in ]gl_LIBSOURCES_LIST[ ; do
187 if test ! -r ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file ; then
188 echo "missing file ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file" >&2
192 m4_if(m4_sysval, [0], [],
193 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
195 m4_popdef([gl_LIBSOURCES_DIR])
196 m4_popdef([gl_LIBSOURCES_LIST])
197 m4_popdef([AC_LIBSOURCES])
198 m4_popdef([AC_REPLACE_FUNCS])
199 m4_popdef([AC_LIBOBJ])
200 AC_CONFIG_COMMANDS_PRE([
203 if test -n "$gl_LIBOBJS"; then
204 # Remove the extension.
205 sed_drop_objext='s/\.o$//;s/\.obj$//'
206 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
207 gl_libobjs="$gl_libobjs $i.$ac_objext"
208 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
211 AC_SUBST([gl_LIBOBJS], [$gl_libobjs])
212 AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs])
216 m4_pushdef([AC_LIBOBJ], m4_defn([gltests_LIBOBJ]))
217 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gltests_REPLACE_FUNCS]))
218 m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES]))
219 m4_pushdef([gltests_LIBSOURCES_LIST], [])
220 m4_pushdef([gltests_LIBSOURCES_DIR], [])
222 gl_source_base='tests'
223 m4_ifval(gltests_LIBSOURCES_LIST, [
224 m4_syscmd([test ! -d ]m4_defn([gltests_LIBSOURCES_DIR])[ ||
225 for gl_file in ]gltests_LIBSOURCES_LIST[ ; do
226 if test ! -r ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file ; then
227 echo "missing file ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file" >&2
231 m4_if(m4_sysval, [0], [],
232 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
234 m4_popdef([gltests_LIBSOURCES_DIR])
235 m4_popdef([gltests_LIBSOURCES_LIST])
236 m4_popdef([AC_LIBSOURCES])
237 m4_popdef([AC_REPLACE_FUNCS])
238 m4_popdef([AC_LIBOBJ])
239 AC_CONFIG_COMMANDS_PRE([
242 if test -n "$gltests_LIBOBJS"; then
243 # Remove the extension.
244 sed_drop_objext='s/\.o$//;s/\.obj$//'
245 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
246 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
247 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
250 AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs])
251 AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs])
253 LIBGZIP_LIBDEPS="$gl_libdeps"
254 AC_SUBST([LIBGZIP_LIBDEPS])
255 LIBGZIP_LTLIBDEPS="$gl_ltlibdeps"
256 AC_SUBST([LIBGZIP_LTLIBDEPS])
259 # Like AC_LIBOBJ, except that the module name goes
260 # into gl_LIBOBJS instead of into LIBOBJS.
261 AC_DEFUN([gl_LIBOBJ], [
262 AS_LITERAL_IF([$1], [gl_LIBSOURCES([$1.c])])dnl
263 gl_LIBOBJS="$gl_LIBOBJS $1.$ac_objext"
266 # Like AC_REPLACE_FUNCS, except that the module name goes
267 # into gl_LIBOBJS instead of into LIBOBJS.
268 AC_DEFUN([gl_REPLACE_FUNCS], [
269 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
270 AC_CHECK_FUNCS([$1], , [gl_LIBOBJ($ac_func)])
273 # Like AC_LIBSOURCES, except the directory where the source file is
274 # expected is derived from the gnulib-tool parameterization,
275 # and alloca is special cased (for the alloca-opt module).
276 # We could also entirely rely on EXTRA_lib..._SOURCES.
277 AC_DEFUN([gl_LIBSOURCES], [
278 m4_foreach([_gl_NAME], [$1], [
279 m4_if(_gl_NAME, [alloca.c], [], [
280 m4_define([gl_LIBSOURCES_DIR], [lib])
281 m4_append([gl_LIBSOURCES_LIST], _gl_NAME, [ ])
286 # Like AC_LIBOBJ, except that the module name goes
287 # into gltests_LIBOBJS instead of into LIBOBJS.
288 AC_DEFUN([gltests_LIBOBJ], [
289 AS_LITERAL_IF([$1], [gltests_LIBSOURCES([$1.c])])dnl
290 gltests_LIBOBJS="$gltests_LIBOBJS $1.$ac_objext"
293 # Like AC_REPLACE_FUNCS, except that the module name goes
294 # into gltests_LIBOBJS instead of into LIBOBJS.
295 AC_DEFUN([gltests_REPLACE_FUNCS], [
296 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
297 AC_CHECK_FUNCS([$1], , [gltests_LIBOBJ($ac_func)])
300 # Like AC_LIBSOURCES, except the directory where the source file is
301 # expected is derived from the gnulib-tool parameterization,
302 # and alloca is special cased (for the alloca-opt module).
303 # We could also entirely rely on EXTRA_lib..._SOURCES.
304 AC_DEFUN([gltests_LIBSOURCES], [
305 m4_foreach([_gl_NAME], [$1], [
306 m4_if(_gl_NAME, [alloca.c], [], [
307 m4_define([gltests_LIBSOURCES_DIR], [tests])
308 m4_append([gltests_LIBSOURCES_LIST], _gl_NAME, [ ])
313 # This macro records the list of files which have been installed by
314 # gnulib-tool and may be removed by future gnulib-tool invocations.
315 AC_DEFUN([gl_FILE_LIST], [
316 build-aux/announce-gen
318 build-aux/git-version-gen
319 build-aux/gitlog-to-changelog
320 build-aux/gnu-web-doc-update
322 build-aux/link-warning.h
323 build-aux/update-copyright
324 build-aux/useless-if-before-free
325 build-aux/vc-list-files
521 m4/printf-posix-rpl.m4