1 # DO NOT EDIT! GENERATED AUTOMATICALLY!
2 # Copyright (C) 2002-2012 Free Software Foundation, Inc.
4 # This file is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 3 of the License, or
7 # (at your option) any later version.
9 # This file is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
14 # You should have received a copy of the GNU General Public License
15 # along with this file. If not, see <http://www.gnu.org/licenses/>.
17 # As a special exception to the GNU General Public License,
18 # this file may be distributed as part of a program that
19 # contains a configuration script generated by Autoconf, under
20 # the same distribution terms as the rest of that program.
22 # Generated by gnulib-tool.
24 # This file represents the compiled summary of the specification in
25 # gnulib-cache.m4. It lists the computed macro invocations that need
26 # to be invoked from configure.ac.
27 # In projects that use version control, this file can be treated like
31 # This macro should be invoked from ./configure.ac, in the section
32 # "Checks for programs", right after AC_PROG_CC, and certainly before
33 # any checks for libraries, header files, types and library functions.
36 m4_pattern_forbid([^gl_[A-Z]])dnl the gnulib macro namespace
37 m4_pattern_allow([^gl_ES$])dnl a valid locale name
38 m4_pattern_allow([^gl_LIBOBJS$])dnl a variable
39 m4_pattern_allow([^gl_LTLIBOBJS$])dnl a variable
40 AC_REQUIRE([gl_PROG_AR_RANLIB])
41 # Code from module alloca-opt:
42 # Code from module alloca-opt-tests:
43 # Code from module binary-io:
44 # Code from module binary-io-tests:
45 # Code from module byteswap:
46 # Code from module byteswap-tests:
47 # Code from module c-ctype:
48 # Code from module c-ctype-tests:
49 # Code from module errno:
50 # Code from module errno-tests:
51 # Code from module extensions:
52 AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
53 # Code from module fcntl-h:
54 # Code from module fcntl-h-tests:
55 # Code from module fd-hook:
56 # Code from module fdopen:
57 # Code from module fdopen-tests:
58 # Code from module fgetc-tests:
59 # Code from module float:
60 # Code from module float-tests:
61 # Code from module fpieee:
62 AC_REQUIRE([gl_FP_IEEE])
63 # Code from module fpucw:
64 # Code from module fputc-tests:
65 # Code from module fread-tests:
66 # Code from module fseek:
67 # Code from module fseek-tests:
68 # Code from module fseeko:
69 AC_REQUIRE([AC_FUNC_FSEEKO])
70 # Code from module fseeko-tests:
71 # Code from module fstat:
72 # Code from module fstat-tests:
73 # Code from module ftell:
74 # Code from module ftell-tests:
75 # Code from module ftello:
76 AC_REQUIRE([AC_FUNC_FSEEKO])
77 # Code from module ftello-tests:
78 # Code from module func:
79 # Code from module func-tests:
80 # Code from module fwrite-tests:
81 # Code from module getpagesize:
82 # Code from module gettext:
83 # Code from module gettext-h:
84 # Code from module havelib:
85 # Code from module include_next:
86 # Code from module intprops:
87 # Code from module intprops-tests:
88 # Code from module inttypes:
89 # Code from module inttypes-incomplete:
90 # Code from module inttypes-tests:
91 # Code from module largefile:
92 AC_REQUIRE([AC_SYS_LARGEFILE])
93 # Code from module lib-msvc-compat:
94 # Code from module lib-symbol-versions:
95 # Code from module lseek:
96 # Code from module malloc-posix:
97 # Code from module memchr:
98 # Code from module memchr-tests:
99 # Code from module memmem-simple:
100 # Code from module minmax:
101 # Code from module msvc-inval:
102 # Code from module msvc-nothrow:
103 # Code from module multiarch:
104 # Code from module netdb:
105 # Code from module netdb-tests:
106 # Code from module read-file:
107 # Code from module read-file-tests:
108 # Code from module realloc-posix:
109 # Code from module size_max:
110 # Code from module snippet/_Noreturn:
111 # Code from module snippet/arg-nonnull:
112 # Code from module snippet/c++defs:
113 # Code from module snippet/warn-on-use:
114 # Code from module snprintf:
115 # Code from module snprintf-tests:
116 # Code from module socketlib:
117 # Code from module sockets:
118 # Code from module sockets-tests:
119 # Code from module socklen:
120 # Code from module ssize_t:
121 # Code from module stdalign:
122 # Code from module stdalign-tests:
123 # Code from module stdbool:
124 # Code from module stdbool-tests:
125 # Code from module stddef:
126 # Code from module stddef-tests:
127 # Code from module stdint:
128 # Code from module stdint-tests:
129 # Code from module stdio:
130 # Code from module stdio-tests:
131 # Code from module stdlib:
132 # Code from module stdlib-tests:
133 # Code from module strcase:
134 # Code from module string:
135 # Code from module string-tests:
136 # Code from module strings:
137 # Code from module strings-tests:
138 # Code from module strverscmp:
139 # Code from module strverscmp-tests:
140 # Code from module sys_socket:
141 # Code from module sys_socket-tests:
142 # Code from module sys_stat:
143 # Code from module sys_stat-tests:
144 # Code from module sys_types:
145 # Code from module sys_types-tests:
146 # Code from module sys_uio:
147 # Code from module sys_uio-tests:
148 # Code from module test-framework-sh:
149 # Code from module test-framework-sh-tests:
150 # Code from module time:
151 # Code from module time-tests:
152 # Code from module time_r:
153 # Code from module unistd:
154 # Code from module unistd-tests:
155 # Code from module vasnprintf:
156 # Code from module vasnprintf-tests:
157 # Code from module vasprintf:
158 # Code from module vasprintf-tests:
159 # Code from module verify:
160 # Code from module verify-tests:
161 # Code from module vsnprintf:
162 # Code from module vsnprintf-tests:
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([lgl_LIBOBJ]))
176 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([lgl_REPLACE_FUNCS]))
177 m4_pushdef([AC_LIBSOURCES], m4_defn([lgl_LIBSOURCES]))
178 m4_pushdef([lgl_LIBSOURCES_LIST], [])
179 m4_pushdef([lgl_LIBSOURCES_DIR], [])
186 if test $REPLACE_FLOAT_LDBL = 1; then
189 if test $REPLACE_ITOLD = 1; then
193 if test $REPLACE_FSEEK = 1; then
196 gl_STDIO_MODULE_INDICATOR([fseek])
198 if test $HAVE_FSEEKO = 0 || test $REPLACE_FSEEKO = 1; then
201 gl_STDIO_MODULE_INDICATOR([fseeko])
203 if test $REPLACE_FSTAT = 1; then
207 gl_SYS_STAT_MODULE_INDICATOR([fstat])
209 if test $REPLACE_FTELL = 1; then
212 gl_STDIO_MODULE_INDICATOR([ftell])
214 if test $HAVE_FTELLO = 0 || test $REPLACE_FTELLO = 1; then
217 gl_STDIO_MODULE_INDICATOR([ftello])
219 dnl you must add AM_GNU_GETTEXT([external]) or similar to configure.ac.
220 AM_GNU_GETTEXT_VERSION([0.18.1])
222 AC_SUBST([LTLIBINTL])
226 if test $REPLACE_LSEEK = 1; then
229 gl_UNISTD_MODULE_INDICATOR([lseek])
231 if test $REPLACE_MALLOC = 1; then
234 gl_STDLIB_MODULE_INDICATOR([malloc-posix])
236 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
240 gl_STRING_MODULE_INDICATOR([memchr])
241 gl_FUNC_MEMMEM_SIMPLE
242 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
245 gl_STRING_MODULE_INDICATOR([memmem])
248 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
249 AC_LIBOBJ([msvc-inval])
252 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
253 AC_LIBOBJ([msvc-nothrow])
258 gl_FUNC_REALLOC_POSIX
259 if test $REPLACE_REALLOC = 1; then
262 gl_STDLIB_MODULE_INDICATOR([realloc-posix])
265 gl_STDIO_MODULE_INDICATOR([snprintf])
266 gl_MODULE_INDICATOR([snprintf])
278 if test $HAVE_STRCASECMP = 0; then
279 AC_LIBOBJ([strcasecmp])
282 if test $HAVE_STRNCASECMP = 0; then
283 AC_LIBOBJ([strncasecmp])
284 gl_PREREQ_STRNCASECMP
289 if test $HAVE_STRVERSCMP = 0; then
290 AC_LIBOBJ([strverscmp])
293 gl_STRING_MODULE_INDICATOR([strverscmp])
304 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
308 gl_TIME_MODULE_INDICATOR([time_r])
312 gl_STDIO_MODULE_INDICATOR([vasprintf])
313 m4_ifdef([AM_XGETTEXT_OPTION],
314 [AM_][XGETTEXT_OPTION([--flag=asprintf:2:c-format])
315 AM_][XGETTEXT_OPTION([--flag=vasprintf:2:c-format])])
317 gl_STDIO_MODULE_INDICATOR([vsnprintf])
320 # End of code from modules
321 m4_ifval(lgl_LIBSOURCES_LIST, [
322 m4_syscmd([test ! -d ]m4_defn([lgl_LIBSOURCES_DIR])[ ||
323 for gl_file in ]lgl_LIBSOURCES_LIST[ ; do
324 if test ! -r ]m4_defn([lgl_LIBSOURCES_DIR])[/$gl_file ; then
325 echo "missing file ]m4_defn([lgl_LIBSOURCES_DIR])[/$gl_file" >&2
329 m4_if(m4_sysval, [0], [],
330 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
332 m4_popdef([lgl_LIBSOURCES_DIR])
333 m4_popdef([lgl_LIBSOURCES_LIST])
334 m4_popdef([AC_LIBSOURCES])
335 m4_popdef([AC_REPLACE_FUNCS])
336 m4_popdef([AC_LIBOBJ])
337 AC_CONFIG_COMMANDS_PRE([
340 if test -n "$lgl_LIBOBJS"; then
341 # Remove the extension.
342 sed_drop_objext='s/\.o$//;s/\.obj$//'
343 for i in `for i in $lgl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
344 lgl_libobjs="$lgl_libobjs $i.$ac_objext"
345 lgl_ltlibobjs="$lgl_ltlibobjs $i.lo"
348 AC_SUBST([lgl_LIBOBJS], [$lgl_libobjs])
349 AC_SUBST([lgl_LTLIBOBJS], [$lgl_ltlibobjs])
353 m4_pushdef([AC_LIBOBJ], m4_defn([lgltests_LIBOBJ]))
354 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([lgltests_REPLACE_FUNCS]))
355 m4_pushdef([AC_LIBSOURCES], m4_defn([lgltests_LIBSOURCES]))
356 m4_pushdef([lgltests_LIBSOURCES_LIST], [])
357 m4_pushdef([lgltests_LIBSOURCES_DIR], [])
359 gl_source_base='gl/tests'
361 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
363 AC_SUBST([lgltests_WITNESS])
364 gl_module_indicator_condition=$lgltests_WITNESS
365 m4_pushdef([gl_MODULE_INDICATOR_CONDITION], [$gl_module_indicator_condition])
368 if test $REPLACE_FDOPEN = 1; then
372 gl_STDIO_MODULE_INDICATOR([fdopen])
378 if test $REPLACE_GETPAGESIZE = 1; then
379 AC_LIBOBJ([getpagesize])
381 gl_UNISTD_MODULE_INDICATOR([getpagesize])
383 gl_INTTYPES_INCOMPLETE
384 dnl Check for prerequisites for memory fence checks.
386 AC_CHECK_HEADERS_ONCE([sys/mman.h])
387 AC_CHECK_FUNCS_ONCE([mprotect])
390 AC_CHECK_FUNCS_ONCE([shutdown])
391 m4_popdef([gl_MODULE_INDICATOR_CONDITION])
392 m4_ifval(lgltests_LIBSOURCES_LIST, [
393 m4_syscmd([test ! -d ]m4_defn([lgltests_LIBSOURCES_DIR])[ ||
394 for gl_file in ]lgltests_LIBSOURCES_LIST[ ; do
395 if test ! -r ]m4_defn([lgltests_LIBSOURCES_DIR])[/$gl_file ; then
396 echo "missing file ]m4_defn([lgltests_LIBSOURCES_DIR])[/$gl_file" >&2
400 m4_if(m4_sysval, [0], [],
401 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
403 m4_popdef([lgltests_LIBSOURCES_DIR])
404 m4_popdef([lgltests_LIBSOURCES_LIST])
405 m4_popdef([AC_LIBSOURCES])
406 m4_popdef([AC_REPLACE_FUNCS])
407 m4_popdef([AC_LIBOBJ])
408 AC_CONFIG_COMMANDS_PRE([
411 if test -n "$lgltests_LIBOBJS"; then
412 # Remove the extension.
413 sed_drop_objext='s/\.o$//;s/\.obj$//'
414 for i in `for i in $lgltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
415 lgltests_libobjs="$lgltests_libobjs $i.$ac_objext"
416 lgltests_ltlibobjs="$lgltests_ltlibobjs $i.lo"
419 AC_SUBST([lgltests_LIBOBJS], [$lgltests_libobjs])
420 AC_SUBST([lgltests_LTLIBOBJS], [$lgltests_ltlibobjs])
422 LIBTESTS_LIBDEPS="$gltests_libdeps"
423 AC_SUBST([LIBTESTS_LIBDEPS])
426 # Like AC_LIBOBJ, except that the module name goes
427 # into lgl_LIBOBJS instead of into LIBOBJS.
428 AC_DEFUN([lgl_LIBOBJ], [
429 AS_LITERAL_IF([$1], [lgl_LIBSOURCES([$1.c])])dnl
430 lgl_LIBOBJS="$lgl_LIBOBJS $1.$ac_objext"
433 # Like AC_REPLACE_FUNCS, except that the module name goes
434 # into lgl_LIBOBJS instead of into LIBOBJS.
435 AC_DEFUN([lgl_REPLACE_FUNCS], [
436 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
437 AC_CHECK_FUNCS([$1], , [lgl_LIBOBJ($ac_func)])
440 # Like AC_LIBSOURCES, except the directory where the source file is
441 # expected is derived from the gnulib-tool parameterization,
442 # and alloca is special cased (for the alloca-opt module).
443 # We could also entirely rely on EXTRA_lib..._SOURCES.
444 AC_DEFUN([lgl_LIBSOURCES], [
445 m4_foreach([_gl_NAME], [$1], [
446 m4_if(_gl_NAME, [alloca.c], [], [
447 m4_define([lgl_LIBSOURCES_DIR], [gl])
448 m4_append([lgl_LIBSOURCES_LIST], _gl_NAME, [ ])
453 # Like AC_LIBOBJ, except that the module name goes
454 # into lgltests_LIBOBJS instead of into LIBOBJS.
455 AC_DEFUN([lgltests_LIBOBJ], [
456 AS_LITERAL_IF([$1], [lgltests_LIBSOURCES([$1.c])])dnl
457 lgltests_LIBOBJS="$lgltests_LIBOBJS $1.$ac_objext"
460 # Like AC_REPLACE_FUNCS, except that the module name goes
461 # into lgltests_LIBOBJS instead of into LIBOBJS.
462 AC_DEFUN([lgltests_REPLACE_FUNCS], [
463 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
464 AC_CHECK_FUNCS([$1], , [lgltests_LIBOBJ($ac_func)])
467 # Like AC_LIBSOURCES, except the directory where the source file is
468 # expected is derived from the gnulib-tool parameterization,
469 # and alloca is special cased (for the alloca-opt module).
470 # We could also entirely rely on EXTRA_lib..._SOURCES.
471 AC_DEFUN([lgltests_LIBSOURCES], [
472 m4_foreach([_gl_NAME], [$1], [
473 m4_if(_gl_NAME, [alloca.c], [], [
474 m4_define([lgltests_LIBSOURCES_DIR], [gl/tests])
475 m4_append([lgltests_LIBSOURCES_LIST], _gl_NAME, [ ])
480 # This macro records the list of files which have been installed by
481 # gnulib-tool and may be removed by future gnulib-tool invocations.
482 AC_DEFUN([lgl_FILE_LIST], [
483 build-aux/config.rpath
484 build-aux/snippet/_Noreturn.h
485 build-aux/snippet/arg-nonnull.h
486 build-aux/snippet/c++defs.h
487 build-aux/snippet/warn-on-use.h
594 m4/ld-version-script.m4
658 tests/test-alloca-opt.c
659 tests/test-binary-io.c
660 tests/test-binary-io.sh
661 tests/test-byteswap.c
675 tests/test-fseeko2.sh
677 tests/test-fseeko3.sh
679 tests/test-fseeko4.sh
687 tests/test-ftello2.sh
690 tests/test-ftello4.sh
694 tests/test-intprops.c
695 tests/test-inttypes.c
698 tests/test-read-file.c
699 tests/test-snprintf.c
701 tests/test-stdalign.c
709 tests/test-strverscmp.c
710 tests/test-sys_socket.c
711 tests/test-sys_stat.c
712 tests/test-sys_types.c
714 tests/test-sys_wait.h
717 tests/test-vasnprintf.c
718 tests/test-vasprintf.c
721 tests/test-vsnprintf.c
724 tests=lib/binary-io.h
729 tests=lib/getpagesize.c
731 tests=lib/inttypes.in.h