1 # DO NOT EDIT! GENERATED AUTOMATICALLY!
2 # Copyright (C) 2002-2011 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 that use version control, this file can be treated like
19 # This macro should be invoked from ./configure.in, in the section
20 # "Checks for programs", right after AC_PROG_CC, and certainly before
21 # any checks for libraries, header files, types and library functions.
24 m4_pattern_forbid([^gl_[A-Z]])dnl the gnulib macro namespace
25 m4_pattern_allow([^gl_ES$])dnl a valid locale name
26 m4_pattern_allow([^gl_LIBOBJS$])dnl a variable
27 m4_pattern_allow([^gl_LTLIBOBJS$])dnl a variable
28 AC_REQUIRE([AC_PROG_RANLIB])
29 # Code from module arg-nonnull:
30 # Code from module c++defs:
31 # Code from module careadlinkat:
32 # Code from module crypto/md5:
33 # Code from module dosname:
34 # Code from module dtoastr:
35 # Code from module extensions:
36 AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
37 # Code from module filemode:
38 # Code from module getloadavg:
39 # Code from module getopt-gnu:
40 # Code from module getopt-posix:
41 # Code from module gettext-h:
42 # Code from module ignore-value:
43 # Code from module include_next:
44 # Code from module intprops:
45 # Code from module lstat:
46 # Code from module mktime:
47 # Code from module multiarch:
48 # Code from module readlink:
49 # Code from module socklen:
50 # Code from module ssize_t:
51 # Code from module stat:
52 # Code from module stdbool:
53 # Code from module stddef:
54 # Code from module stdint:
55 # Code from module stdio:
56 # Code from module stdlib:
57 # Code from module strftime:
58 # Code from module symlink:
59 # Code from module sys_stat:
60 # Code from module time:
61 # Code from module time_r:
62 # Code from module unistd:
63 # Code from module warn-on-use:
66 # This macro should be invoked from ./configure.in, in the section
67 # "Check for header files, types and library functions".
70 AM_CONDITIONAL([GL_COND_LIBTOOL], [false])
75 m4_pushdef([AC_LIBOBJ], m4_defn([gl_LIBOBJ]))
76 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gl_REPLACE_FUNCS]))
77 m4_pushdef([AC_LIBSOURCES], m4_defn([gl_LIBSOURCES]))
78 m4_pushdef([gl_LIBSOURCES_LIST], [])
79 m4_pushdef([gl_LIBSOURCES_DIR], [])
82 # Code from module arg-nonnull:
83 # Code from module c++defs:
84 # Code from module careadlinkat:
85 AC_CHECK_FUNCS_ONCE([readlinkat])
86 # Code from module crypto/md5:
88 # Code from module dosname:
89 # Code from module dtoastr:
90 AC_REQUIRE([gl_C99_STRTOLD])
91 # Code from module extensions:
92 # Code from module filemode:
94 # Code from module getloadavg:
95 gl_GETLOADAVG([$gl_source_base])
96 gl_STDLIB_MODULE_INDICATOR([getloadavg])
97 # Code from module getopt-gnu:
99 gl_MODULE_INDICATOR_FOR_TESTS([getopt-gnu])
100 # Code from module getopt-posix:
102 # Code from module gettext-h:
104 AC_SUBST([LTLIBINTL])
105 # Code from module ignore-value:
106 AC_REQUIRE([AC_C_INLINE])
107 # Code from module include_next:
108 # Code from module intprops:
109 # Code from module lstat:
111 gl_SYS_STAT_MODULE_INDICATOR([lstat])
112 # Code from module mktime:
114 gl_TIME_MODULE_INDICATOR([mktime])
115 # Code from module multiarch:
117 # Code from module readlink:
119 gl_UNISTD_MODULE_INDICATOR([readlink])
120 # Code from module socklen:
122 # Code from module ssize_t:
124 # Code from module stat:
126 gl_SYS_STAT_MODULE_INDICATOR([stat])
127 # Code from module stdbool:
129 # Code from module stddef:
131 # Code from module stdint:
133 # Code from module stdio:
135 # Code from module stdlib:
137 # Code from module strftime:
139 # Code from module symlink:
141 gl_UNISTD_MODULE_INDICATOR([symlink])
142 # Code from module sys_stat:
145 # Code from module time:
147 # Code from module time_r:
149 gl_TIME_MODULE_INDICATOR([time_r])
150 # Code from module unistd:
152 # Code from module warn-on-use:
153 # End of code from modules
154 m4_ifval(gl_LIBSOURCES_LIST, [
155 m4_syscmd([test ! -d ]m4_defn([gl_LIBSOURCES_DIR])[ ||
156 for gl_file in ]gl_LIBSOURCES_LIST[ ; do
157 if test ! -r ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file ; then
158 echo "missing file ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file" >&2
162 m4_if(m4_sysval, [0], [],
163 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
165 m4_popdef([gl_LIBSOURCES_DIR])
166 m4_popdef([gl_LIBSOURCES_LIST])
167 m4_popdef([AC_LIBSOURCES])
168 m4_popdef([AC_REPLACE_FUNCS])
169 m4_popdef([AC_LIBOBJ])
170 AC_CONFIG_COMMANDS_PRE([
173 if test -n "$gl_LIBOBJS"; then
174 # Remove the extension.
175 sed_drop_objext='s/\.o$//;s/\.obj$//'
176 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
177 gl_libobjs="$gl_libobjs $i.$ac_objext"
178 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
181 AC_SUBST([gl_LIBOBJS], [$gl_libobjs])
182 AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs])
186 m4_pushdef([AC_LIBOBJ], m4_defn([gltests_LIBOBJ]))
187 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gltests_REPLACE_FUNCS]))
188 m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES]))
189 m4_pushdef([gltests_LIBSOURCES_LIST], [])
190 m4_pushdef([gltests_LIBSOURCES_DIR], [])
192 gl_source_base='tests'
194 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
196 AC_SUBST([gltests_WITNESS])
197 gl_module_indicator_condition=$gltests_WITNESS
198 m4_pushdef([gl_MODULE_INDICATOR_CONDITION], [$gl_module_indicator_condition])
199 m4_popdef([gl_MODULE_INDICATOR_CONDITION])
200 m4_ifval(gltests_LIBSOURCES_LIST, [
201 m4_syscmd([test ! -d ]m4_defn([gltests_LIBSOURCES_DIR])[ ||
202 for gl_file in ]gltests_LIBSOURCES_LIST[ ; do
203 if test ! -r ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file ; then
204 echo "missing file ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file" >&2
208 m4_if(m4_sysval, [0], [],
209 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
211 m4_popdef([gltests_LIBSOURCES_DIR])
212 m4_popdef([gltests_LIBSOURCES_LIST])
213 m4_popdef([AC_LIBSOURCES])
214 m4_popdef([AC_REPLACE_FUNCS])
215 m4_popdef([AC_LIBOBJ])
216 AC_CONFIG_COMMANDS_PRE([
219 if test -n "$gltests_LIBOBJS"; then
220 # Remove the extension.
221 sed_drop_objext='s/\.o$//;s/\.obj$//'
222 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
223 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
224 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
227 AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs])
228 AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs])
230 LIBGNU_LIBDEPS="$gl_libdeps"
231 AC_SUBST([LIBGNU_LIBDEPS])
232 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
233 AC_SUBST([LIBGNU_LTLIBDEPS])
236 # Like AC_LIBOBJ, except that the module name goes
237 # into gl_LIBOBJS instead of into LIBOBJS.
238 AC_DEFUN([gl_LIBOBJ], [
239 AS_LITERAL_IF([$1], [gl_LIBSOURCES([$1.c])])dnl
240 gl_LIBOBJS="$gl_LIBOBJS $1.$ac_objext"
243 # Like AC_REPLACE_FUNCS, except that the module name goes
244 # into gl_LIBOBJS instead of into LIBOBJS.
245 AC_DEFUN([gl_REPLACE_FUNCS], [
246 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
247 AC_CHECK_FUNCS([$1], , [gl_LIBOBJ($ac_func)])
250 # Like AC_LIBSOURCES, except the directory where the source file is
251 # expected is derived from the gnulib-tool parameterization,
252 # and alloca is special cased (for the alloca-opt module).
253 # We could also entirely rely on EXTRA_lib..._SOURCES.
254 AC_DEFUN([gl_LIBSOURCES], [
255 m4_foreach([_gl_NAME], [$1], [
256 m4_if(_gl_NAME, [alloca.c], [], [
257 m4_define([gl_LIBSOURCES_DIR], [lib])
258 m4_append([gl_LIBSOURCES_LIST], _gl_NAME, [ ])
263 # Like AC_LIBOBJ, except that the module name goes
264 # into gltests_LIBOBJS instead of into LIBOBJS.
265 AC_DEFUN([gltests_LIBOBJ], [
266 AS_LITERAL_IF([$1], [gltests_LIBSOURCES([$1.c])])dnl
267 gltests_LIBOBJS="$gltests_LIBOBJS $1.$ac_objext"
270 # Like AC_REPLACE_FUNCS, except that the module name goes
271 # into gltests_LIBOBJS instead of into LIBOBJS.
272 AC_DEFUN([gltests_REPLACE_FUNCS], [
273 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
274 AC_CHECK_FUNCS([$1], , [gltests_LIBOBJ($ac_func)])
277 # Like AC_LIBSOURCES, except the directory where the source file is
278 # expected is derived from the gnulib-tool parameterization,
279 # and alloca is special cased (for the alloca-opt module).
280 # We could also entirely rely on EXTRA_lib..._SOURCES.
281 AC_DEFUN([gltests_LIBSOURCES], [
282 m4_foreach([_gl_NAME], [$1], [
283 m4_if(_gl_NAME, [alloca.c], [], [
284 m4_define([gltests_LIBSOURCES_DIR], [tests])
285 m4_append([gltests_LIBSOURCES_LIST], _gl_NAME, [ ])
290 # This macro records the list of files which have been installed by
291 # gnulib-tool and may be removed by future gnulib-tool invocations.
292 AC_DEFUN([gl_FILE_LIST], [
293 build-aux/arg-nonnull.h
295 build-aux/warn-on-use.h
316 lib/mktime-internal.h