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 alignof:
29 # Code from module alloca-opt:
30 # Code from module alloca-opt-tests:
31 # Code from module arg-nonnull:
32 # Code from module byteswap:
33 # Code from module byteswap-tests:
34 # Code from module c++defs:
35 # Code from module c-ctype:
36 # Code from module c-ctype-tests:
37 # Code from module close-hook:
38 # Code from module errno:
39 # Code from module errno-tests:
40 # Code from module extensions:
41 AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
42 # Code from module float:
43 # Code from module fseeko:
44 AC_REQUIRE([AC_FUNC_FSEEKO])
45 # Code from module fseeko-tests:
46 # Code from module func:
47 # Code from module func-tests:
48 # Code from module gettext:
49 # Code from module gettext-h:
50 # Code from module havelib:
51 # Code from module include_next:
52 # Code from module intprops:
53 # Code from module lib-msvc-compat:
54 # Code from module lib-symbol-versions:
55 # Code from module lseek:
56 # Code from module memchr:
57 # Code from module memchr-tests:
58 # Code from module memmem-simple:
59 # Code from module minmax:
60 # Code from module multiarch:
61 # Code from module netdb:
62 # Code from module netdb-tests:
63 # Code from module read-file:
64 # Code from module read-file-tests:
65 # Code from module realloc-posix:
66 # Code from module size_max:
67 # Code from module snprintf:
68 # Code from module snprintf-tests:
69 # Code from module sockets:
70 # Code from module sockets-tests:
71 # Code from module socklen:
72 # Code from module stdbool:
73 # Code from module stdbool-tests:
74 # Code from module stddef:
75 # Code from module stddef-tests:
76 # Code from module stdint:
77 # Code from module stdint-tests:
78 # Code from module stdio:
79 # Code from module stdio-tests:
80 # Code from module stdlib:
81 # Code from module stdlib-tests:
82 # Code from module strcase:
83 # Code from module string:
84 # Code from module string-tests:
85 # Code from module strings:
86 # Code from module strings-tests:
87 # Code from module strverscmp:
88 # Code from module strverscmp-tests:
89 # Code from module sys_socket:
90 # Code from module sys_socket-tests:
91 # Code from module sys_stat:
92 # Code from module sys_stat-tests:
93 # Code from module time:
94 # Code from module time-tests:
95 # Code from module time_r:
96 # Code from module unistd:
97 # Code from module unistd-tests:
98 # Code from module vasnprintf:
99 # Code from module vasnprintf-tests:
100 # Code from module vasprintf:
101 # Code from module vasprintf-tests:
102 # Code from module verify:
103 # Code from module vsnprintf:
104 # Code from module vsnprintf-tests:
105 # Code from module warn-on-use:
106 # Code from module wchar:
107 # Code from module wchar-tests:
108 # Code from module xsize:
111 # This macro should be invoked from ./configure.ac, in the section
112 # "Check for header files, types and library functions".
115 AM_CONDITIONAL([GL_COND_LIBTOOL], [true])
117 m4_pushdef([AC_LIBOBJ], m4_defn([lgl_LIBOBJ]))
118 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([lgl_REPLACE_FUNCS]))
119 m4_pushdef([AC_LIBSOURCES], m4_defn([lgl_LIBSOURCES]))
120 m4_pushdef([lgl_LIBSOURCES_LIST], [])
121 m4_pushdef([lgl_LIBSOURCES_DIR], [])
124 # Code from module alignof:
125 # Code from module alloca-opt:
127 # Code from module arg-nonnull:
128 # Code from module byteswap:
130 # Code from module c++defs:
131 # Code from module c-ctype:
132 # Code from module close-hook:
133 # Code from module errno:
135 # Code from module extensions:
136 # Code from module float:
138 # Code from module fseeko:
140 gl_STDIO_MODULE_INDICATOR([fseeko])
141 # Code from module func:
143 # Code from module gettext:
144 dnl you must add AM_GNU_GETTEXT([external]) or similar to configure.ac.
145 AM_GNU_GETTEXT_VERSION([0.17])
146 # Code from module gettext-h:
148 AC_SUBST([LTLIBINTL])
149 # Code from module havelib:
150 # Code from module include_next:
151 # Code from module lib-msvc-compat:
153 # Code from module lib-symbol-versions:
155 # Code from module lseek:
157 gl_UNISTD_MODULE_INDICATOR([lseek])
158 # Code from module memchr:
160 gl_STRING_MODULE_INDICATOR([memchr])
161 # Code from module memmem-simple:
162 gl_FUNC_MEMMEM_SIMPLE
163 gl_STRING_MODULE_INDICATOR([memmem])
164 # Code from module minmax:
166 # Code from module multiarch:
168 # Code from module netdb:
170 # Code from module read-file:
172 # Code from module realloc-posix:
173 gl_FUNC_REALLOC_POSIX
174 gl_STDLIB_MODULE_INDICATOR([realloc-posix])
175 # Code from module size_max:
177 # Code from module snprintf:
179 gl_STDIO_MODULE_INDICATOR([snprintf])
180 # Code from module sockets:
182 # Code from module socklen:
184 # Code from module stdbool:
186 # Code from module stddef:
188 # Code from module stdint:
190 # Code from module stdio:
192 # Code from module stdlib:
194 # Code from module strcase:
196 # Code from module string:
198 # Code from module strings:
200 # Code from module strverscmp:
202 gl_STRING_MODULE_INDICATOR([strverscmp])
203 # Code from module sys_socket:
206 # Code from module sys_stat:
209 # Code from module time:
211 # Code from module time_r:
213 gl_TIME_MODULE_INDICATOR([time_r])
214 # Code from module unistd:
216 # Code from module vasnprintf:
218 # Code from module vasprintf:
220 gl_STDIO_MODULE_INDICATOR([vasprintf])
221 m4_ifdef([AM_XGETTEXT_OPTION],
222 [AM_][XGETTEXT_OPTION([--flag=asprintf:2:c-format])
223 AM_][XGETTEXT_OPTION([--flag=vasprintf:2:c-format])])
224 # Code from module vsnprintf:
226 gl_STDIO_MODULE_INDICATOR([vsnprintf])
227 # Code from module warn-on-use:
228 # Code from module wchar:
230 # Code from module xsize:
232 # End of code from modules
233 m4_ifval(lgl_LIBSOURCES_LIST, [
234 m4_syscmd([test ! -d ]m4_defn([lgl_LIBSOURCES_DIR])[ ||
235 for gl_file in ]lgl_LIBSOURCES_LIST[ ; do
236 if test ! -r ]m4_defn([lgl_LIBSOURCES_DIR])[/$gl_file ; then
237 echo "missing file ]m4_defn([lgl_LIBSOURCES_DIR])[/$gl_file" >&2
241 m4_if(m4_sysval, [0], [],
242 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
244 m4_popdef([lgl_LIBSOURCES_DIR])
245 m4_popdef([lgl_LIBSOURCES_LIST])
246 m4_popdef([AC_LIBSOURCES])
247 m4_popdef([AC_REPLACE_FUNCS])
248 m4_popdef([AC_LIBOBJ])
249 AC_CONFIG_COMMANDS_PRE([
252 if test -n "$lgl_LIBOBJS"; then
253 # Remove the extension.
254 sed_drop_objext='s/\.o$//;s/\.obj$//'
255 for i in `for i in $lgl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
256 lgl_libobjs="$lgl_libobjs $i.$ac_objext"
257 lgl_ltlibobjs="$lgl_ltlibobjs $i.lo"
260 AC_SUBST([lgl_LIBOBJS], [$lgl_libobjs])
261 AC_SUBST([lgl_LTLIBOBJS], [$lgl_ltlibobjs])
265 m4_pushdef([AC_LIBOBJ], m4_defn([lgltests_LIBOBJ]))
266 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([lgltests_REPLACE_FUNCS]))
267 m4_pushdef([AC_LIBSOURCES], m4_defn([lgltests_LIBSOURCES]))
268 m4_pushdef([lgltests_LIBSOURCES_LIST], [])
269 m4_pushdef([lgltests_LIBSOURCES_DIR], [])
271 gl_source_base='gl/tests'
273 lgltests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS
275 AC_SUBST([lgltests_WITNESS])
276 gl_module_indicator_condition=$lgltests_WITNESS
277 m4_pushdef([gl_MODULE_INDICATOR_CONDITION], [$gl_module_indicator_condition])
281 AC_CHECK_FUNCS_ONCE([shutdown])
282 m4_popdef([gl_MODULE_INDICATOR_CONDITION])
283 m4_ifval(lgltests_LIBSOURCES_LIST, [
284 m4_syscmd([test ! -d ]m4_defn([lgltests_LIBSOURCES_DIR])[ ||
285 for gl_file in ]lgltests_LIBSOURCES_LIST[ ; do
286 if test ! -r ]m4_defn([lgltests_LIBSOURCES_DIR])[/$gl_file ; then
287 echo "missing file ]m4_defn([lgltests_LIBSOURCES_DIR])[/$gl_file" >&2
291 m4_if(m4_sysval, [0], [],
292 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
294 m4_popdef([lgltests_LIBSOURCES_DIR])
295 m4_popdef([lgltests_LIBSOURCES_LIST])
296 m4_popdef([AC_LIBSOURCES])
297 m4_popdef([AC_REPLACE_FUNCS])
298 m4_popdef([AC_LIBOBJ])
299 AC_CONFIG_COMMANDS_PRE([
302 if test -n "$lgltests_LIBOBJS"; then
303 # Remove the extension.
304 sed_drop_objext='s/\.o$//;s/\.obj$//'
305 for i in `for i in $lgltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
306 lgltests_libobjs="$lgltests_libobjs $i.$ac_objext"
307 lgltests_ltlibobjs="$lgltests_ltlibobjs $i.lo"
310 AC_SUBST([lgltests_LIBOBJS], [$lgltests_libobjs])
311 AC_SUBST([lgltests_LTLIBOBJS], [$lgltests_ltlibobjs])
313 LIBTESTS_LIBDEPS="$gltests_libdeps"
314 AC_SUBST([LIBTESTS_LIBDEPS])
317 # Like AC_LIBOBJ, except that the module name goes
318 # into lgl_LIBOBJS instead of into LIBOBJS.
319 AC_DEFUN([lgl_LIBOBJ], [
320 AS_LITERAL_IF([$1], [lgl_LIBSOURCES([$1.c])])dnl
321 lgl_LIBOBJS="$lgl_LIBOBJS $1.$ac_objext"
324 # Like AC_REPLACE_FUNCS, except that the module name goes
325 # into lgl_LIBOBJS instead of into LIBOBJS.
326 AC_DEFUN([lgl_REPLACE_FUNCS], [
327 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
328 AC_CHECK_FUNCS([$1], , [lgl_LIBOBJ($ac_func)])
331 # Like AC_LIBSOURCES, except the directory where the source file is
332 # expected is derived from the gnulib-tool parameterization,
333 # and alloca is special cased (for the alloca-opt module).
334 # We could also entirely rely on EXTRA_lib..._SOURCES.
335 AC_DEFUN([lgl_LIBSOURCES], [
336 m4_foreach([_gl_NAME], [$1], [
337 m4_if(_gl_NAME, [alloca.c], [], [
338 m4_define([lgl_LIBSOURCES_DIR], [gl])
339 m4_append([lgl_LIBSOURCES_LIST], _gl_NAME, [ ])
344 # Like AC_LIBOBJ, except that the module name goes
345 # into lgltests_LIBOBJS instead of into LIBOBJS.
346 AC_DEFUN([lgltests_LIBOBJ], [
347 AS_LITERAL_IF([$1], [lgltests_LIBSOURCES([$1.c])])dnl
348 lgltests_LIBOBJS="$lgltests_LIBOBJS $1.$ac_objext"
351 # Like AC_REPLACE_FUNCS, except that the module name goes
352 # into lgltests_LIBOBJS instead of into LIBOBJS.
353 AC_DEFUN([lgltests_REPLACE_FUNCS], [
354 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
355 AC_CHECK_FUNCS([$1], , [lgltests_LIBOBJ($ac_func)])
358 # Like AC_LIBSOURCES, except the directory where the source file is
359 # expected is derived from the gnulib-tool parameterization,
360 # and alloca is special cased (for the alloca-opt module).
361 # We could also entirely rely on EXTRA_lib..._SOURCES.
362 AC_DEFUN([lgltests_LIBSOURCES], [
363 m4_foreach([_gl_NAME], [$1], [
364 m4_if(_gl_NAME, [alloca.c], [], [
365 m4_define([lgltests_LIBSOURCES_DIR], [gl/tests])
366 m4_append([lgltests_LIBSOURCES_LIST], _gl_NAME, [ ])
371 # This macro records the list of files which have been installed by
372 # gnulib-tool and may be removed by future gnulib-tool invocations.
373 AC_DEFUN([lgl_FILE_LIST], [
374 build-aux/arg-nonnull.h
376 build-aux/config.rpath
377 build-aux/warn-on-use.h
459 m4/ld-version-script.m4
514 tests/test-alloca-opt.c
515 tests/test-byteswap.c
520 tests/test-fseeko2.sh
524 tests/test-read-file.c
525 tests/test-snprintf.c
534 tests/test-strverscmp.c
535 tests/test-sys_socket.c
536 tests/test-sys_stat.c
539 tests/test-vasnprintf.c
540 tests/test-vasprintf.c
541 tests/test-vsnprintf.c