1 # DO NOT EDIT! GENERATED AUTOMATICALLY!
2 # Copyright (C) 2002-2010 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.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.
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 # Code from module arg-nonnull:
29 # Code from module c++defs:
30 # Code from module extensions:
31 AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
32 # Code from module include_next:
33 # Code from module memchr:
34 # Code from module memmem:
35 # Code from module memmem-simple:
36 # Code from module multiarch:
37 # Code from module stddef:
38 # Code from module stdint:
39 # Code from module string:
40 # Code from module warn-on-use:
41 # Code from module wchar:
44 # This macro should be invoked from ./configure.ac, in the section
45 # "Check for header files, types and library functions".
48 AM_CONDITIONAL([GL_COND_LIBTOOL], [false])
52 gl_m4_base='gnulib/m4'
53 m4_pushdef([AC_LIBOBJ], m4_defn([gl_LIBOBJ]))
54 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gl_REPLACE_FUNCS]))
55 m4_pushdef([AC_LIBSOURCES], m4_defn([gl_LIBSOURCES]))
56 m4_pushdef([gl_LIBSOURCES_LIST], [])
57 m4_pushdef([gl_LIBSOURCES_DIR], [])
59 gl_source_base='gnulib'
60 # Code from module arg-nonnull:
61 # Code from module c++defs:
62 # Code from module extensions:
63 # Code from module include_next:
64 # Code from module memchr:
66 gl_STRING_MODULE_INDICATOR([memchr])
67 # Code from module memmem:
69 # Code from module memmem-simple:
71 gl_STRING_MODULE_INDICATOR([memmem])
72 # Code from module multiarch:
74 # Code from module stddef:
76 # Code from module stdint:
78 # Code from module string:
80 # Code from module warn-on-use:
81 # Code from module wchar:
83 # Code from module dummy:
84 # End of code from modules
85 m4_ifval(gl_LIBSOURCES_LIST, [
86 m4_syscmd([test ! -d ]m4_defn([gl_LIBSOURCES_DIR])[ ||
87 for gl_file in ]gl_LIBSOURCES_LIST[ ; do
88 if test ! -r ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file ; then
89 echo "missing file ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file" >&2
93 m4_if(m4_sysval, [0], [],
94 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
96 m4_popdef([gl_LIBSOURCES_DIR])
97 m4_popdef([gl_LIBSOURCES_LIST])
98 m4_popdef([AC_LIBSOURCES])
99 m4_popdef([AC_REPLACE_FUNCS])
100 m4_popdef([AC_LIBOBJ])
101 AC_CONFIG_COMMANDS_PRE([
104 if test -n "$gl_LIBOBJS"; then
105 # Remove the extension.
106 sed_drop_objext='s/\.o$//;s/\.obj$//'
107 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
108 gl_libobjs="$gl_libobjs $i.$ac_objext"
109 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
112 AC_SUBST([gl_LIBOBJS], [$gl_libobjs])
113 AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs])
117 m4_pushdef([AC_LIBOBJ], m4_defn([gltests_LIBOBJ]))
118 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gltests_REPLACE_FUNCS]))
119 m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES]))
120 m4_pushdef([gltests_LIBSOURCES_LIST], [])
121 m4_pushdef([gltests_LIBSOURCES_DIR], [])
123 gl_source_base='tests'
125 gltests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS
127 AC_SUBST([gltests_WITNESS])
128 gl_module_indicator_condition=$gltests_WITNESS
129 m4_pushdef([gl_MODULE_INDICATOR_CONDITION], [$gl_module_indicator_condition])
130 m4_popdef([gl_MODULE_INDICATOR_CONDITION])
131 m4_ifval(gltests_LIBSOURCES_LIST, [
132 m4_syscmd([test ! -d ]m4_defn([gltests_LIBSOURCES_DIR])[ ||
133 for gl_file in ]gltests_LIBSOURCES_LIST[ ; do
134 if test ! -r ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file ; then
135 echo "missing file ]m4_defn([gltests_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([gltests_LIBSOURCES_DIR])
143 m4_popdef([gltests_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 "$gltests_LIBOBJS"; then
151 # Remove the extension.
152 sed_drop_objext='s/\.o$//;s/\.obj$//'
153 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
154 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
155 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
158 AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs])
159 AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs])
161 LIBGNU_LIBDEPS="$gl_libdeps"
162 AC_SUBST([LIBGNU_LIBDEPS])
163 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
164 AC_SUBST([LIBGNU_LTLIBDEPS])
167 # Like AC_LIBOBJ, except that the module name goes
168 # into gl_LIBOBJS instead of into LIBOBJS.
169 AC_DEFUN([gl_LIBOBJ], [
170 AS_LITERAL_IF([$1], [gl_LIBSOURCES([$1.c])])dnl
171 gl_LIBOBJS="$gl_LIBOBJS $1.$ac_objext"
174 # Like AC_REPLACE_FUNCS, except that the module name goes
175 # into gl_LIBOBJS instead of into LIBOBJS.
176 AC_DEFUN([gl_REPLACE_FUNCS], [
177 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
178 AC_CHECK_FUNCS([$1], , [gl_LIBOBJ($ac_func)])
181 # Like AC_LIBSOURCES, except the directory where the source file is
182 # expected is derived from the gnulib-tool parameterization,
183 # and alloca is special cased (for the alloca-opt module).
184 # We could also entirely rely on EXTRA_lib..._SOURCES.
185 AC_DEFUN([gl_LIBSOURCES], [
186 m4_foreach([_gl_NAME], [$1], [
187 m4_if(_gl_NAME, [alloca.c], [], [
188 m4_define([gl_LIBSOURCES_DIR], [gnulib])
189 m4_append([gl_LIBSOURCES_LIST], _gl_NAME, [ ])
194 # Like AC_LIBOBJ, except that the module name goes
195 # into gltests_LIBOBJS instead of into LIBOBJS.
196 AC_DEFUN([gltests_LIBOBJ], [
197 AS_LITERAL_IF([$1], [gltests_LIBSOURCES([$1.c])])dnl
198 gltests_LIBOBJS="$gltests_LIBOBJS $1.$ac_objext"
201 # Like AC_REPLACE_FUNCS, except that the module name goes
202 # into gltests_LIBOBJS instead of into LIBOBJS.
203 AC_DEFUN([gltests_REPLACE_FUNCS], [
204 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
205 AC_CHECK_FUNCS([$1], , [gltests_LIBOBJ($ac_func)])
208 # Like AC_LIBSOURCES, except the directory where the source file is
209 # expected is derived from the gnulib-tool parameterization,
210 # and alloca is special cased (for the alloca-opt module).
211 # We could also entirely rely on EXTRA_lib..._SOURCES.
212 AC_DEFUN([gltests_LIBSOURCES], [
213 m4_foreach([_gl_NAME], [$1], [
214 m4_if(_gl_NAME, [alloca.c], [], [
215 m4_define([gltests_LIBSOURCES_DIR], [tests])
216 m4_append([gltests_LIBSOURCES_LIST], _gl_NAME, [ ])
221 # This macro records the list of files which have been installed by
222 # gnulib-tool and may be removed by future gnulib-tool invocations.
223 AC_DEFUN([gl_FILE_LIST], [
224 build-aux/arg-nonnull.h
226 build-aux/warn-on-use.h