1 # DO NOT EDIT! GENERATED AUTOMATICALLY!
2 # Copyright (C) 2002-2016 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
42 AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
43 AC_REQUIRE([gl_PROG_AR_RANLIB])
45 # Code from module absolute-header:
46 # Code from module alloca:
47 # Code from module alloca-opt:
48 # Code from module canonicalize-lgpl:
49 # Code from module chdir:
50 # Code from module configmake:
51 # Code from module dirent:
52 # Code from module dirfd:
53 # Code from module dirname-lgpl:
54 # Code from module dosname:
55 # Code from module double-slash-root:
56 # Code from module environ:
57 # Code from module errno:
58 # Code from module extensions:
59 # Code from module extern-inline:
60 # Code from module flexmember:
61 # Code from module float:
62 # Code from module fnmatch:
63 # Code from module fnmatch-gnu:
64 # Code from module fpieee:
65 AC_REQUIRE([gl_FP_IEEE])
66 # Code from module fpucw:
67 # Code from module frexp:
68 # Code from module frexpl:
69 # Code from module gettimeofday:
70 # Code from module hard-locale:
71 # Code from module include_next:
72 # Code from module inttypes:
73 # Code from module inttypes-incomplete:
74 # Code from module isnand-nolibm:
75 # Code from module isnanl-nolibm:
76 # Code from module largefile:
77 AC_REQUIRE([AC_SYS_LARGEFILE])
78 # Code from module limits-h:
79 # Code from module localcharset:
80 # Code from module lstat:
81 # Code from module malloc-posix:
82 # Code from module malloca:
83 # Code from module math:
84 # Code from module mbrtowc:
85 # Code from module mbsinit:
86 # Code from module mbsrtowcs:
87 # Code from module memchr:
88 # Code from module memmem:
89 # Code from module memmem-simple:
90 # Code from module multiarch:
91 # Code from module nocrash:
92 # Code from module pathmax:
93 # Code from module rawmemchr:
94 # Code from module readlink:
95 # Code from module rename:
96 # Code from module rmdir:
97 # Code from module same-inode:
98 # Code from module setenv:
99 # Code from module signal-h:
100 # Code from module snippet/_Noreturn:
101 # Code from module snippet/arg-nonnull:
102 # Code from module snippet/c++defs:
103 # Code from module snippet/warn-on-use:
104 # Code from module ssize_t:
105 # Code from module stat:
106 # Code from module stdbool:
107 # Code from module stddef:
108 # Code from module stdint:
109 # Code from module stdio:
110 # Code from module stdlib:
111 # Code from module strchrnul:
112 # Code from module streq:
113 # Code from module string:
114 # Code from module strnlen1:
115 # Code from module strstr:
116 # Code from module strstr-simple:
117 # Code from module strtok_r:
118 # Code from module sys_stat:
119 # Code from module sys_time:
120 # Code from module sys_types:
121 # Code from module time:
122 # Code from module unistd:
123 # Code from module unsetenv:
124 # Code from module update-copyright:
125 # Code from module verify:
126 # Code from module wchar:
127 # Code from module wctype-h:
130 # This macro should be invoked from ./configure.ac, in the section
131 # "Check for header files, types and library functions".
134 AM_CONDITIONAL([GL_COND_LIBTOOL], [false])
135 gl_cond_libtool=false
138 gl_m4_base='import/m4'
139 m4_pushdef([AC_LIBOBJ], m4_defn([gl_LIBOBJ]))
140 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gl_REPLACE_FUNCS]))
141 m4_pushdef([AC_LIBSOURCES], m4_defn([gl_LIBSOURCES]))
142 m4_pushdef([gl_LIBSOURCES_LIST], [])
143 m4_pushdef([gl_LIBSOURCES_DIR], [])
145 gl_source_base='import'
148 if test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1; then
149 AC_LIBOBJ([canonicalize-lgpl])
151 gl_MODULE_INDICATOR([canonicalize-lgpl])
152 gl_STDLIB_MODULE_INDICATOR([canonicalize_file_name])
153 gl_STDLIB_MODULE_INDICATOR([realpath])
154 gl_UNISTD_MODULE_INDICATOR([chdir])
158 if test $ac_cv_func_dirfd = no && test $gl_cv_func_dirfd_macro = no \
159 || test $REPLACE_DIRFD = 1; then
163 gl_DIRENT_MODULE_INDICATOR([dirfd])
167 gl_UNISTD_MODULE_INDICATOR([environ])
169 AC_REQUIRE([gl_EXTERN_INLINE])
170 AC_C_FLEXIBLE_ARRAY_MEMBER
172 if test $REPLACE_FLOAT_LDBL = 1; then
175 if test $REPLACE_ITOLD = 1; then
178 gl_FUNC_FNMATCH_POSIX
179 if test -n "$FNMATCH_H"; then
184 if test -n "$FNMATCH_H"; then
189 if test $gl_func_frexp != yes; then
192 gl_MATH_MODULE_INDICATOR([frexp])
194 if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl = no; then
197 gl_MATH_MODULE_INDICATOR([frexpl])
199 if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
200 AC_LIBOBJ([gettimeofday])
201 gl_PREREQ_GETTIMEOFDAY
203 gl_SYS_TIME_MODULE_INDICATOR([gettimeofday])
206 gl_INTTYPES_INCOMPLETE
207 gl_FUNC_ISNAND_NO_LIBM
208 if test $gl_func_isnand_no_libm != yes; then
212 gl_FUNC_ISNANL_NO_LIBM
213 if test $gl_func_isnanl_no_libm != yes; then
217 AC_REQUIRE([gl_LARGEFILE])
220 LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\""
221 AC_SUBST([LOCALCHARSET_TESTS_ENVIRONMENT])
223 if test $REPLACE_LSTAT = 1; then
227 gl_SYS_STAT_MODULE_INDICATOR([lstat])
229 if test $REPLACE_MALLOC = 1; then
232 gl_STDLIB_MODULE_INDICATOR([malloc-posix])
236 if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
240 gl_WCHAR_MODULE_INDICATOR([mbrtowc])
242 if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
246 gl_WCHAR_MODULE_INDICATOR([mbsinit])
248 if test $HAVE_MBSRTOWCS = 0 || test $REPLACE_MBSRTOWCS = 1; then
249 AC_LIBOBJ([mbsrtowcs])
250 AC_LIBOBJ([mbsrtowcs-state])
253 gl_WCHAR_MODULE_INDICATOR([mbsrtowcs])
255 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
259 gl_STRING_MODULE_INDICATOR([memchr])
261 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
264 gl_FUNC_MEMMEM_SIMPLE
265 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
268 gl_STRING_MODULE_INDICATOR([memmem])
272 if test $HAVE_RAWMEMCHR = 0; then
273 AC_LIBOBJ([rawmemchr])
276 gl_STRING_MODULE_INDICATOR([rawmemchr])
278 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
279 AC_LIBOBJ([readlink])
282 gl_UNISTD_MODULE_INDICATOR([readlink])
284 if test $REPLACE_RENAME = 1; then
287 gl_STDIO_MODULE_INDICATOR([rename])
289 if test $REPLACE_RMDIR = 1; then
292 gl_UNISTD_MODULE_INDICATOR([rmdir])
294 if test $HAVE_SETENV = 0 || test $REPLACE_SETENV = 1; then
297 gl_STDLIB_MODULE_INDICATOR([setenv])
301 if test $REPLACE_STAT = 1; then
305 gl_SYS_STAT_MODULE_INDICATOR([stat])
312 if test $HAVE_STRCHRNUL = 0 || test $REPLACE_STRCHRNUL = 1; then
313 AC_LIBOBJ([strchrnul])
316 gl_STRING_MODULE_INDICATOR([strchrnul])
319 if test $REPLACE_STRSTR = 1; then
322 gl_FUNC_STRSTR_SIMPLE
323 if test $REPLACE_STRSTR = 1; then
326 gl_STRING_MODULE_INDICATOR([strstr])
328 if test $HAVE_STRTOK_R = 0 || test $REPLACE_STRTOK_R = 1; then
329 AC_LIBOBJ([strtok_r])
332 gl_STRING_MODULE_INDICATOR([strtok_r])
342 if test $HAVE_UNSETENV = 0 || test $REPLACE_UNSETENV = 1; then
343 AC_LIBOBJ([unsetenv])
346 gl_STDLIB_MODULE_INDICATOR([unsetenv])
349 # End of code from modules
350 m4_ifval(gl_LIBSOURCES_LIST, [
351 m4_syscmd([test ! -d ]m4_defn([gl_LIBSOURCES_DIR])[ ||
352 for gl_file in ]gl_LIBSOURCES_LIST[ ; do
353 if test ! -r ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file ; then
354 echo "missing file ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file" >&2
358 m4_if(m4_sysval, [0], [],
359 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
361 m4_popdef([gl_LIBSOURCES_DIR])
362 m4_popdef([gl_LIBSOURCES_LIST])
363 m4_popdef([AC_LIBSOURCES])
364 m4_popdef([AC_REPLACE_FUNCS])
365 m4_popdef([AC_LIBOBJ])
366 AC_CONFIG_COMMANDS_PRE([
369 if test -n "$gl_LIBOBJS"; then
370 # Remove the extension.
371 sed_drop_objext='s/\.o$//;s/\.obj$//'
372 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
373 gl_libobjs="$gl_libobjs $i.$ac_objext"
374 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
377 AC_SUBST([gl_LIBOBJS], [$gl_libobjs])
378 AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs])
382 m4_pushdef([AC_LIBOBJ], m4_defn([gltests_LIBOBJ]))
383 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gltests_REPLACE_FUNCS]))
384 m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES]))
385 m4_pushdef([gltests_LIBSOURCES_LIST], [])
386 m4_pushdef([gltests_LIBSOURCES_DIR], [])
388 gl_source_base='tests'
390 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
392 AC_SUBST([gltests_WITNESS])
393 gl_module_indicator_condition=$gltests_WITNESS
394 m4_pushdef([gl_MODULE_INDICATOR_CONDITION], [$gl_module_indicator_condition])
395 m4_popdef([gl_MODULE_INDICATOR_CONDITION])
396 m4_ifval(gltests_LIBSOURCES_LIST, [
397 m4_syscmd([test ! -d ]m4_defn([gltests_LIBSOURCES_DIR])[ ||
398 for gl_file in ]gltests_LIBSOURCES_LIST[ ; do
399 if test ! -r ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file ; then
400 echo "missing file ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file" >&2
404 m4_if(m4_sysval, [0], [],
405 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
407 m4_popdef([gltests_LIBSOURCES_DIR])
408 m4_popdef([gltests_LIBSOURCES_LIST])
409 m4_popdef([AC_LIBSOURCES])
410 m4_popdef([AC_REPLACE_FUNCS])
411 m4_popdef([AC_LIBOBJ])
412 AC_CONFIG_COMMANDS_PRE([
415 if test -n "$gltests_LIBOBJS"; then
416 # Remove the extension.
417 sed_drop_objext='s/\.o$//;s/\.obj$//'
418 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
419 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
420 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
423 AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs])
424 AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs])
426 LIBGNU_LIBDEPS="$gl_libdeps"
427 AC_SUBST([LIBGNU_LIBDEPS])
428 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
429 AC_SUBST([LIBGNU_LTLIBDEPS])
432 # Like AC_LIBOBJ, except that the module name goes
433 # into gl_LIBOBJS instead of into LIBOBJS.
434 AC_DEFUN([gl_LIBOBJ], [
435 AS_LITERAL_IF([$1], [gl_LIBSOURCES([$1.c])])dnl
436 gl_LIBOBJS="$gl_LIBOBJS $1.$ac_objext"
439 # Like AC_REPLACE_FUNCS, except that the module name goes
440 # into gl_LIBOBJS instead of into LIBOBJS.
441 AC_DEFUN([gl_REPLACE_FUNCS], [
442 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
443 AC_CHECK_FUNCS([$1], , [gl_LIBOBJ($ac_func)])
446 # Like AC_LIBSOURCES, except the directory where the source file is
447 # expected is derived from the gnulib-tool parameterization,
448 # and alloca is special cased (for the alloca-opt module).
449 # We could also entirely rely on EXTRA_lib..._SOURCES.
450 AC_DEFUN([gl_LIBSOURCES], [
451 m4_foreach([_gl_NAME], [$1], [
452 m4_if(_gl_NAME, [alloca.c], [], [
453 m4_define([gl_LIBSOURCES_DIR], [import])
454 m4_append([gl_LIBSOURCES_LIST], _gl_NAME, [ ])
459 # Like AC_LIBOBJ, except that the module name goes
460 # into gltests_LIBOBJS instead of into LIBOBJS.
461 AC_DEFUN([gltests_LIBOBJ], [
462 AS_LITERAL_IF([$1], [gltests_LIBSOURCES([$1.c])])dnl
463 gltests_LIBOBJS="$gltests_LIBOBJS $1.$ac_objext"
466 # Like AC_REPLACE_FUNCS, except that the module name goes
467 # into gltests_LIBOBJS instead of into LIBOBJS.
468 AC_DEFUN([gltests_REPLACE_FUNCS], [
469 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
470 AC_CHECK_FUNCS([$1], , [gltests_LIBOBJ($ac_func)])
473 # Like AC_LIBSOURCES, except the directory where the source file is
474 # expected is derived from the gnulib-tool parameterization,
475 # and alloca is special cased (for the alloca-opt module).
476 # We could also entirely rely on EXTRA_lib..._SOURCES.
477 AC_DEFUN([gltests_LIBSOURCES], [
478 m4_foreach([_gl_NAME], [$1], [
479 m4_if(_gl_NAME, [alloca.c], [], [
480 m4_define([gltests_LIBSOURCES_DIR], [tests])
481 m4_append([gltests_LIBSOURCES_LIST], _gl_NAME, [ ])
486 # This macro records the list of files which have been installed by
487 # gnulib-tool and may be removed by future gnulib-tool invocations.
488 AC_DEFUN([gl_FILE_LIST], [
489 build-aux/snippet/_Noreturn.h
490 build-aux/snippet/arg-nonnull.h
491 build-aux/snippet/c++defs.h
492 build-aux/snippet/warn-on-use.h
493 build-aux/update-copyright
497 lib/canonicalize-lgpl.c
538 lib/mbsrtowcs-state.c
545 lib/rawmemchr.valgrind
562 lib/strchrnul.valgrind
582 m4/absolute-header.m4
590 m4/double-slash-root.m4