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.ac, 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 alignof:
30 # Code from module alloca:
31 # Code from module alloca-opt:
32 # Code from module alloca-opt-tests:
33 # Code from module arg-nonnull:
34 # Code from module binary-io:
35 # Code from module binary-io-tests:
36 # Code from module byteswap:
37 # Code from module byteswap-tests:
38 # Code from module c++defs:
39 # Code from module c-ctype:
40 # Code from module c-ctype-tests:
41 # Code from module clock-time:
42 # Code from module crypto/hmac-md5:
43 # Code from module crypto/hmac-md5-tests:
44 # Code from module crypto/md5:
45 # Code from module crypto/md5-tests:
46 # Code from module errno:
47 # Code from module errno-tests:
48 # Code from module error:
49 # Code from module extensions:
50 AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
51 # Code from module fcntl-h:
52 # Code from module fcntl-h-tests:
53 # Code from module fd-hook:
54 # Code from module float:
55 # Code from module fseeko:
56 AC_REQUIRE([AC_FUNC_FSEEKO])
57 # Code from module fseeko-tests:
58 # Code from module ftello:
59 AC_REQUIRE([AC_FUNC_FSEEKO])
60 # Code from module ftello-tests:
61 # Code from module func:
62 # Code from module func-tests:
63 # Code from module getdelim:
64 # Code from module getdelim-tests:
65 # Code from module getline:
66 # Code from module getline-tests:
67 # Code from module getpagesize:
68 # Code from module getpass:
69 # Code from module gettext:
70 # Code from module gettext-h:
71 # Code from module gettime:
72 # Code from module gettimeofday:
73 # Code from module gettimeofday-tests:
74 # Code from module havelib:
75 # Code from module include_next:
76 # Code from module intprops:
77 # Code from module intprops-tests:
78 # Code from module inttypes:
79 # Code from module inttypes-incomplete:
80 # Code from module inttypes-tests:
81 # Code from module lib-msvc-compat:
82 # Code from module lib-symbol-versions:
83 # Code from module lseek:
84 # Code from module malloc-posix:
85 # Code from module manywarnings:
86 # Code from module memchr:
87 # Code from module memchr-tests:
88 # Code from module memmem-simple:
89 # Code from module memxor:
90 # Code from module minmax:
91 # Code from module multiarch:
92 # Code from module netdb:
93 # Code from module netdb-tests:
94 # Code from module netinet_in:
95 # Code from module netinet_in-tests:
96 # Code from module progname:
97 # Code from module read-file:
98 # Code from module read-file-tests:
99 # Code from module realloc-posix:
100 # Code from module size_max:
101 # Code from module snprintf:
102 # Code from module snprintf-tests:
103 # Code from module socketlib:
104 # Code from module sockets:
105 # Code from module sockets-tests:
106 # Code from module socklen:
107 # Code from module stdarg:
108 dnl Some compilers (e.g., AIX 5.3 cc) need to be in c99 mode
109 dnl for the builtin va_copy to work. With Autoconf 2.60 or later,
110 dnl AC_PROG_CC_STDC arranges for this. With older Autoconf AC_PROG_CC_STDC
111 dnl shouldn't hurt, though installers are on their own to set c99 mode.
112 AC_REQUIRE([AC_PROG_CC_STDC])
113 # Code from module stdbool:
114 # Code from module stdbool-tests:
115 # Code from module stddef:
116 # Code from module stddef-tests:
117 # Code from module stdint:
118 # Code from module stdint-tests:
119 # Code from module stdio:
120 # Code from module stdio-tests:
121 # Code from module stdlib:
122 # Code from module stdlib-tests:
123 # Code from module strcase:
124 # Code from module strdup-posix:
125 # Code from module strerror:
126 # Code from module strerror-tests:
127 # Code from module string:
128 # Code from module string-tests:
129 # Code from module strings:
130 # Code from module strings-tests:
131 # Code from module strverscmp:
132 # Code from module strverscmp-tests:
133 # Code from module sys_socket:
134 # Code from module sys_socket-tests:
135 # Code from module sys_stat:
136 # Code from module sys_stat-tests:
137 # Code from module sys_time:
138 # Code from module sys_time-tests:
139 # Code from module sys_uio:
140 # Code from module sys_uio-tests:
141 # Code from module time:
142 # Code from module time-tests:
143 # Code from module time_r:
144 # Code from module timespec:
145 # Code from module u64:
146 # Code from module u64-tests:
147 # Code from module unistd:
148 # Code from module unistd-tests:
149 # Code from module valgrind-tests:
150 # Code from module vasnprintf:
151 # Code from module vasnprintf-tests:
152 # Code from module vasprintf:
153 # Code from module vasprintf-tests:
154 # Code from module verify:
155 # Code from module verify-tests:
156 # Code from module version-etc:
157 # Code from module version-etc-fsf:
158 # Code from module version-etc-tests:
159 # Code from module vsnprintf:
160 # Code from module vsnprintf-tests:
161 # Code from module warn-on-use:
162 # Code from module warnings:
163 # Code from module wchar:
164 # Code from module wchar-tests:
165 # Code from module xsize:
168 # This macro should be invoked from ./configure.ac, in the section
169 # "Check for header files, types and library functions".
172 AM_CONDITIONAL([GL_COND_LIBTOOL], [true])
175 m4_pushdef([AC_LIBOBJ], m4_defn([gl_LIBOBJ]))
176 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gl_REPLACE_FUNCS]))
177 m4_pushdef([AC_LIBSOURCES], m4_defn([gl_LIBSOURCES]))
178 m4_pushdef([gl_LIBSOURCES_LIST], [])
179 m4_pushdef([gl_LIBSOURCES_DIR], [])
183 LTALLOCA=`echo "$ALLOCA" | sed -e 's/\.[^.]* /.lo /g;s/\.[^.]*$/.lo/'`
193 m4_ifdef([AM_XGETTEXT_OPTION],
194 [AM_][XGETTEXT_OPTION([--flag=error:3:c-format])
195 AM_][XGETTEXT_OPTION([--flag=error_at_line:5:c-format])])
198 gl_STDIO_MODULE_INDICATOR([fseeko])
200 gl_STDIO_MODULE_INDICATOR([ftello])
203 gl_STDIO_MODULE_INDICATOR([getdelim])
205 gl_STDIO_MODULE_INDICATOR([getline])
207 dnl you must add AM_GNU_GETTEXT([external]) or similar to configure.ac.
208 AM_GNU_GETTEXT_VERSION([0.18.1])
210 AC_SUBST([LTLIBINTL])
213 gl_SYS_TIME_MODULE_INDICATOR([gettimeofday])
217 gl_UNISTD_MODULE_INDICATOR([lseek])
219 gl_STDLIB_MODULE_INDICATOR([malloc-posix])
221 gl_STRING_MODULE_INDICATOR([memchr])
222 gl_FUNC_MEMMEM_SIMPLE
223 gl_STRING_MODULE_INDICATOR([memmem])
230 AC_CHECK_DECLS([program_invocation_name], [], [], [#include <errno.h>])
231 AC_CHECK_DECLS([program_invocation_short_name], [], [], [#include <errno.h>])
233 gl_FUNC_REALLOC_POSIX
234 gl_STDLIB_MODULE_INDICATOR([realloc-posix])
237 gl_STDIO_MODULE_INDICATOR([snprintf])
238 gl_MODULE_INDICATOR([snprintf])
250 gl_STRING_MODULE_INDICATOR([strdup])
252 gl_STRING_MODULE_INDICATOR([strerror])
256 gl_STRING_MODULE_INDICATOR([strverscmp])
267 gl_TIME_MODULE_INDICATOR([time_r])
269 AC_REQUIRE([AC_C_INLINE])
274 gl_STDIO_MODULE_INDICATOR([vasprintf])
275 m4_ifdef([AM_XGETTEXT_OPTION],
276 [AM_][XGETTEXT_OPTION([--flag=asprintf:2:c-format])
277 AM_][XGETTEXT_OPTION([--flag=vasprintf:2:c-format])])
280 gl_STDIO_MODULE_INDICATOR([vsnprintf])
281 AC_SUBST([WARN_CFLAGS])
284 # End of code from modules
285 m4_ifval(gl_LIBSOURCES_LIST, [
286 m4_syscmd([test ! -d ]m4_defn([gl_LIBSOURCES_DIR])[ ||
287 for gl_file in ]gl_LIBSOURCES_LIST[ ; do
288 if test ! -r ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file ; then
289 echo "missing file ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file" >&2
293 m4_if(m4_sysval, [0], [],
294 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
296 m4_popdef([gl_LIBSOURCES_DIR])
297 m4_popdef([gl_LIBSOURCES_LIST])
298 m4_popdef([AC_LIBSOURCES])
299 m4_popdef([AC_REPLACE_FUNCS])
300 m4_popdef([AC_LIBOBJ])
301 AC_CONFIG_COMMANDS_PRE([
304 if test -n "$gl_LIBOBJS"; then
305 # Remove the extension.
306 sed_drop_objext='s/\.o$//;s/\.obj$//'
307 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
308 gl_libobjs="$gl_libobjs $i.$ac_objext"
309 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
312 AC_SUBST([gl_LIBOBJS], [$gl_libobjs])
313 AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs])
317 m4_pushdef([AC_LIBOBJ], m4_defn([gltests_LIBOBJ]))
318 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gltests_REPLACE_FUNCS]))
319 m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES]))
320 m4_pushdef([gltests_LIBSOURCES_LIST], [])
321 m4_pushdef([gltests_LIBSOURCES_DIR], [])
323 gl_source_base='gl/tests'
325 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
327 AC_SUBST([gltests_WITNESS])
328 gl_module_indicator_condition=$gltests_WITNESS
329 m4_pushdef([gl_MODULE_INDICATOR_CONDITION], [$gl_module_indicator_condition])
334 gl_UNISTD_MODULE_INDICATOR([getpagesize])
336 gl_INTTYPES_INCOMPLETE
337 dnl Check for prerequisites for memory fence checks.
339 AC_CHECK_HEADERS_ONCE([sys/mman.h])
340 AC_CHECK_FUNCS_ONCE([mprotect])
343 AC_CHECK_FUNCS_ONCE([shutdown])
345 m4_popdef([gl_MODULE_INDICATOR_CONDITION])
346 m4_ifval(gltests_LIBSOURCES_LIST, [
347 m4_syscmd([test ! -d ]m4_defn([gltests_LIBSOURCES_DIR])[ ||
348 for gl_file in ]gltests_LIBSOURCES_LIST[ ; do
349 if test ! -r ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file ; then
350 echo "missing file ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file" >&2
354 m4_if(m4_sysval, [0], [],
355 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
357 m4_popdef([gltests_LIBSOURCES_DIR])
358 m4_popdef([gltests_LIBSOURCES_LIST])
359 m4_popdef([AC_LIBSOURCES])
360 m4_popdef([AC_REPLACE_FUNCS])
361 m4_popdef([AC_LIBOBJ])
362 AC_CONFIG_COMMANDS_PRE([
365 if test -n "$gltests_LIBOBJS"; then
366 # Remove the extension.
367 sed_drop_objext='s/\.o$//;s/\.obj$//'
368 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
369 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
370 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
373 AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs])
374 AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs])
376 LIBTESTS_LIBDEPS="$gltests_libdeps"
377 AC_SUBST([LIBTESTS_LIBDEPS])
380 # Like AC_LIBOBJ, except that the module name goes
381 # into gl_LIBOBJS instead of into LIBOBJS.
382 AC_DEFUN([gl_LIBOBJ], [
383 AS_LITERAL_IF([$1], [gl_LIBSOURCES([$1.c])])dnl
384 gl_LIBOBJS="$gl_LIBOBJS $1.$ac_objext"
387 # Like AC_REPLACE_FUNCS, except that the module name goes
388 # into gl_LIBOBJS instead of into LIBOBJS.
389 AC_DEFUN([gl_REPLACE_FUNCS], [
390 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
391 AC_CHECK_FUNCS([$1], , [gl_LIBOBJ($ac_func)])
394 # Like AC_LIBSOURCES, except the directory where the source file is
395 # expected is derived from the gnulib-tool parameterization,
396 # and alloca is special cased (for the alloca-opt module).
397 # We could also entirely rely on EXTRA_lib..._SOURCES.
398 AC_DEFUN([gl_LIBSOURCES], [
399 m4_foreach([_gl_NAME], [$1], [
400 m4_if(_gl_NAME, [alloca.c], [], [
401 m4_define([gl_LIBSOURCES_DIR], [gl])
402 m4_append([gl_LIBSOURCES_LIST], _gl_NAME, [ ])
407 # Like AC_LIBOBJ, except that the module name goes
408 # into gltests_LIBOBJS instead of into LIBOBJS.
409 AC_DEFUN([gltests_LIBOBJ], [
410 AS_LITERAL_IF([$1], [gltests_LIBSOURCES([$1.c])])dnl
411 gltests_LIBOBJS="$gltests_LIBOBJS $1.$ac_objext"
414 # Like AC_REPLACE_FUNCS, except that the module name goes
415 # into gltests_LIBOBJS instead of into LIBOBJS.
416 AC_DEFUN([gltests_REPLACE_FUNCS], [
417 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
418 AC_CHECK_FUNCS([$1], , [gltests_LIBOBJ($ac_func)])
421 # Like AC_LIBSOURCES, except the directory where the source file is
422 # expected is derived from the gnulib-tool parameterization,
423 # and alloca is special cased (for the alloca-opt module).
424 # We could also entirely rely on EXTRA_lib..._SOURCES.
425 AC_DEFUN([gltests_LIBSOURCES], [
426 m4_foreach([_gl_NAME], [$1], [
427 m4_if(_gl_NAME, [alloca.c], [], [
428 m4_define([gltests_LIBSOURCES_DIR], [gl/tests])
429 m4_append([gltests_LIBSOURCES_LIST], _gl_NAME, [ ])
434 # This macro records the list of files which have been installed by
435 # gnulib-tool and may be removed by future gnulib-tool invocations.
436 AC_DEFUN([gl_FILE_LIST], [
437 build-aux/arg-nonnull.h
439 build-aux/config.rpath
440 build-aux/warn-on-use.h
521 lib/version-etc-fsf.c
566 m4/ld-version-script.m4
636 tests/test-alloca-opt.c
637 tests/test-binary-io.c
638 tests/test-binary-io.sh
639 tests/test-byteswap.c
645 tests/test-fseeko2.sh
648 tests/test-ftello2.sh
651 tests/test-getdelim.c
653 tests/test-gettimeofday.c
654 tests/test-hmac-md5.c
655 tests/test-intprops.c
656 tests/test-inttypes.c
660 tests/test-netinet_in.c
661 tests/test-read-file.c
662 tests/test-snprintf.c
669 tests/test-strerror.c
672 tests/test-strverscmp.c
673 tests/test-sys_socket.c
674 tests/test-sys_stat.c
675 tests/test-sys_time.c
677 tests/test-sys_wait.h
681 tests/test-vasnprintf.c
682 tests/test-vasprintf.c
685 tests/test-version-etc.c
686 tests/test-version-etc.sh
687 tests/test-vsnprintf.c
690 tests=lib/binary-io.h
693 tests=lib/getpagesize.c
694 tests=lib/inttypes.in.h