1 # DO NOT EDIT! GENERATED AUTOMATICALLY!
2 # Copyright (C) 2002-2009 Free Software Foundation, Inc.
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.
10 # Generated by gnulib-tool.
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.
18 # This macro should be invoked from ./configure.in, 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.
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 AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
30 AC_REQUIRE([AC_FUNC_FSEEKO])
31 AC_REQUIRE([AC_FUNC_FSEEKO])
35 # This macro should be invoked from ./configure.in, in the section
36 # "Check for header files, types and library functions".
39 AM_CONDITIONAL([GL_COND_LIBTOOL], [true])
41 m4_pushdef([AC_LIBOBJ], m4_defn([gl_LIBOBJ]))
42 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gl_REPLACE_FUNCS]))
43 m4_pushdef([AC_LIBSOURCES], m4_defn([gl_LIBSOURCES]))
44 m4_pushdef([gl_LIBSOURCES_LIST], [])
45 m4_pushdef([gl_LIBSOURCES_DIR], [])
47 gl_source_base='gnulib'
49 LTALLOCA=`echo "$ALLOCA" | sed 's/\.[^.]* /.lo /g;s/\.[^.]*$/.lo/'`
57 gl_WCHAR_MODULE_INDICATOR([btowc])
58 AC_REQUIRE([gl_HEADER_ERRNO_H])
61 gl_STDIO_MODULE_INDICATOR([fseeko])
64 gl_STDIO_MODULE_INDICATOR([ftello])
66 gl_UNISTD_MODULE_INDICATOR([ftruncate])
68 gl_NETDB_MODULE_INDICATOR([getaddrinfo])
75 gl_ARPA_INET_MODULE_INDICATOR([inet_ntop])
77 LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(top_builddir)/$gl_source_base\""
78 AC_SUBST([LOCALCHARSET_TESTS_ENVIRONMENT])
81 gl_UNISTD_MODULE_INDICATOR([lseek])
83 gl_SYS_STAT_MODULE_INDICATOR([lstat])
85 AC_DEFINE([GNULIB_MALLOC_GNU], 1, [Define to indicate the 'malloc' module.])
87 gl_STDLIB_MODULE_INDICATOR([malloc-posix])
89 gl_WCHAR_MODULE_INDICATOR([mbrtowc])
91 gl_WCHAR_MODULE_INDICATOR([mbsinit])
93 gl_STDLIB_MODULE_INDICATOR([mkdtemp])
94 AC_REQUIRE([gl_MULTIARCH])
105 gl_STDIO_MODULE_INDICATOR([snprintf])
113 gl_MODULE_INDICATOR([sys_socket])
126 gl_WCHAR_MODULE_INDICATOR([wcrtomb])
129 gl_UNISTD_MODULE_INDICATOR([write])
131 m4_ifval(gl_LIBSOURCES_LIST, [
132 m4_syscmd([test ! -d ]m4_defn([gl_LIBSOURCES_DIR])[ ||
133 for gl_file in ]gl_LIBSOURCES_LIST[ ; do
134 if test ! -r ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file ; then
135 echo "missing file ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file" >&2
139 m4_if(m4_sysval, [0], [],
140 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
142 m4_popdef([gl_LIBSOURCES_DIR])
143 m4_popdef([gl_LIBSOURCES_LIST])
144 m4_popdef([AC_LIBSOURCES])
145 m4_popdef([AC_REPLACE_FUNCS])
146 m4_popdef([AC_LIBOBJ])
147 AC_CONFIG_COMMANDS_PRE([
150 if test -n "$gl_LIBOBJS"; then
151 # Remove the extension.
152 sed_drop_objext='s/\.o$//;s/\.obj$//'
153 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
154 gl_libobjs="$gl_libobjs $i.$ac_objext"
155 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
158 AC_SUBST([gl_LIBOBJS], [$gl_libobjs])
159 AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs])
163 m4_pushdef([AC_LIBOBJ], m4_defn([gltests_LIBOBJ]))
164 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gltests_REPLACE_FUNCS]))
165 m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES]))
166 m4_pushdef([gltests_LIBSOURCES_LIST], [])
167 m4_pushdef([gltests_LIBSOURCES_DIR], [])
169 gl_source_base='tests'
170 m4_ifval(gltests_LIBSOURCES_LIST, [
171 m4_syscmd([test ! -d ]m4_defn([gltests_LIBSOURCES_DIR])[ ||
172 for gl_file in ]gltests_LIBSOURCES_LIST[ ; do
173 if test ! -r ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file ; then
174 echo "missing file ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file" >&2
178 m4_if(m4_sysval, [0], [],
179 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
181 m4_popdef([gltests_LIBSOURCES_DIR])
182 m4_popdef([gltests_LIBSOURCES_LIST])
183 m4_popdef([AC_LIBSOURCES])
184 m4_popdef([AC_REPLACE_FUNCS])
185 m4_popdef([AC_LIBOBJ])
186 AC_CONFIG_COMMANDS_PRE([
189 if test -n "$gltests_LIBOBJS"; then
190 # Remove the extension.
191 sed_drop_objext='s/\.o$//;s/\.obj$//'
192 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
193 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
194 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
197 AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs])
198 AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs])
202 # Like AC_LIBOBJ, except that the module name goes
203 # into gl_LIBOBJS instead of into LIBOBJS.
204 AC_DEFUN([gl_LIBOBJ], [
205 AS_LITERAL_IF([$1], [gl_LIBSOURCES([$1.c])])dnl
206 gl_LIBOBJS="$gl_LIBOBJS $1.$ac_objext"
209 # Like AC_REPLACE_FUNCS, except that the module name goes
210 # into gl_LIBOBJS instead of into LIBOBJS.
211 AC_DEFUN([gl_REPLACE_FUNCS], [
212 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
213 AC_CHECK_FUNCS([$1], , [gl_LIBOBJ($ac_func)])
216 # Like AC_LIBSOURCES, except the directory where the source file is
217 # expected is derived from the gnulib-tool parameterization,
218 # and alloca is special cased (for the alloca-opt module).
219 # We could also entirely rely on EXTRA_lib..._SOURCES.
220 AC_DEFUN([gl_LIBSOURCES], [
221 m4_foreach([_gl_NAME], [$1], [
222 m4_if(_gl_NAME, [alloca.c], [], [
223 m4_define([gl_LIBSOURCES_DIR], [gnulib])
224 m4_append([gl_LIBSOURCES_LIST], _gl_NAME, [ ])
229 # Like AC_LIBOBJ, except that the module name goes
230 # into gltests_LIBOBJS instead of into LIBOBJS.
231 AC_DEFUN([gltests_LIBOBJ], [
232 AS_LITERAL_IF([$1], [gltests_LIBSOURCES([$1.c])])dnl
233 gltests_LIBOBJS="$gltests_LIBOBJS $1.$ac_objext"
236 # Like AC_REPLACE_FUNCS, except that the module name goes
237 # into gltests_LIBOBJS instead of into LIBOBJS.
238 AC_DEFUN([gltests_REPLACE_FUNCS], [
239 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
240 AC_CHECK_FUNCS([$1], , [gltests_LIBOBJ($ac_func)])
243 # Like AC_LIBSOURCES, except the directory where the source file is
244 # expected is derived from the gnulib-tool parameterization,
245 # and alloca is special cased (for the alloca-opt module).
246 # We could also entirely rely on EXTRA_lib..._SOURCES.
247 AC_DEFUN([gltests_LIBSOURCES], [
248 m4_foreach([_gl_NAME], [$1], [
249 m4_if(_gl_NAME, [alloca.c], [], [
250 m4_define([gltests_LIBSOURCES_DIR], [tests])
251 m4_append([gltests_LIBSOURCES_LIST], _gl_NAME, [ ])
256 # This macro records the list of files which have been installed by
257 # gnulib-tool and may be removed by future gnulib-tool invocations.
258 AC_DEFUN([gl_FILE_LIST], [
259 build-aux/config.rpath
260 build-aux/link-warning.h
291 lib/glthread/threadlib.c