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:
42 # Code from module alloca-opt:
43 # Code from module configmake:
44 # Code from module dirent:
45 # Code from module dirfd:
46 # Code from module dosname:
47 # Code from module errno:
48 # Code from module extensions:
49 AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
50 # Code from module extern-inline:
51 # Code from module float:
52 # Code from module fnmatch:
53 # Code from module fnmatch-gnu:
54 # Code from module fpieee:
55 AC_REQUIRE([gl_FP_IEEE])
56 # Code from module fpucw:
57 # Code from module frexp:
58 # Code from module frexpl:
59 # Code from module include_next:
60 # Code from module inttypes:
61 # Code from module inttypes-incomplete:
62 # Code from module isnand-nolibm:
63 # Code from module isnanl-nolibm:
64 # Code from module largefile:
65 AC_REQUIRE([AC_SYS_LARGEFILE])
66 # Code from module localcharset:
67 # Code from module lstat:
68 # Code from module math:
69 # Code from module mbrtowc:
70 # Code from module mbsinit:
71 # Code from module mbsrtowcs:
72 # Code from module memchr:
73 # Code from module memmem:
74 # Code from module memmem-simple:
75 # Code from module multiarch:
76 # Code from module pathmax:
77 # Code from module readlink:
78 # Code from module snippet/arg-nonnull:
79 # Code from module snippet/c++defs:
80 # Code from module snippet/warn-on-use:
81 # Code from module ssize_t:
82 # Code from module stat:
83 # Code from module stdbool:
84 # Code from module stddef:
85 # Code from module stdint:
86 # Code from module streq:
87 # Code from module string:
88 # Code from module strnlen1:
89 # Code from module strstr:
90 # Code from module strstr-simple:
91 # Code from module sys_stat:
92 # Code from module sys_types:
93 # Code from module time:
94 # Code from module unistd:
95 # Code from module update-copyright:
96 # Code from module verify:
97 # Code from module wchar:
98 # Code from module wctype-h:
101 # This macro should be invoked from ./configure.ac, in the section
102 # "Check for header files, types and library functions".
105 AM_CONDITIONAL([GL_COND_LIBTOOL], [false])
106 gl_cond_libtool=false
109 gl_m4_base='import/m4'
110 m4_pushdef([AC_LIBOBJ], m4_defn([gl_LIBOBJ]))
111 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gl_REPLACE_FUNCS]))
112 m4_pushdef([AC_LIBSOURCES], m4_defn([gl_LIBSOURCES]))
113 m4_pushdef([gl_LIBSOURCES_LIST], [])
114 m4_pushdef([gl_LIBSOURCES_DIR], [])
116 gl_source_base='import'
121 if test $ac_cv_func_dirfd = no && test $gl_cv_func_dirfd_macro = no; then
125 gl_DIRENT_MODULE_INDICATOR([dirfd])
127 AC_REQUIRE([gl_EXTERN_INLINE])
129 if test $REPLACE_FLOAT_LDBL = 1; then
132 if test $REPLACE_ITOLD = 1; then
135 gl_FUNC_FNMATCH_POSIX
136 if test -n "$FNMATCH_H"; then
141 if test -n "$FNMATCH_H"; then
146 if test $gl_func_frexp != yes; then
149 gl_MATH_MODULE_INDICATOR([frexp])
151 if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl = no; then
154 gl_MATH_MODULE_INDICATOR([frexpl])
156 gl_INTTYPES_INCOMPLETE
157 gl_FUNC_ISNAND_NO_LIBM
158 if test $gl_func_isnand_no_libm != yes; then
162 gl_FUNC_ISNANL_NO_LIBM
163 if test $gl_func_isnanl_no_libm != yes; then
167 AC_REQUIRE([gl_LARGEFILE])
169 LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\""
170 AC_SUBST([LOCALCHARSET_TESTS_ENVIRONMENT])
172 if test $REPLACE_LSTAT = 1; then
176 gl_SYS_STAT_MODULE_INDICATOR([lstat])
179 if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
183 gl_WCHAR_MODULE_INDICATOR([mbrtowc])
185 if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
189 gl_WCHAR_MODULE_INDICATOR([mbsinit])
191 if test $HAVE_MBSRTOWCS = 0 || test $REPLACE_MBSRTOWCS = 1; then
192 AC_LIBOBJ([mbsrtowcs])
193 AC_LIBOBJ([mbsrtowcs-state])
196 gl_WCHAR_MODULE_INDICATOR([mbsrtowcs])
198 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
202 gl_STRING_MODULE_INDICATOR([memchr])
204 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
207 gl_FUNC_MEMMEM_SIMPLE
208 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
211 gl_STRING_MODULE_INDICATOR([memmem])
215 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
216 AC_LIBOBJ([readlink])
219 gl_UNISTD_MODULE_INDICATOR([readlink])
222 if test $REPLACE_STAT = 1; then
226 gl_SYS_STAT_MODULE_INDICATOR([stat])
232 if test $REPLACE_STRSTR = 1; then
235 gl_FUNC_STRSTR_SIMPLE
236 if test $REPLACE_STRSTR = 1; then
239 gl_STRING_MODULE_INDICATOR([strstr])
248 # End of code from modules
249 m4_ifval(gl_LIBSOURCES_LIST, [
250 m4_syscmd([test ! -d ]m4_defn([gl_LIBSOURCES_DIR])[ ||
251 for gl_file in ]gl_LIBSOURCES_LIST[ ; do
252 if test ! -r ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file ; then
253 echo "missing file ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file" >&2
257 m4_if(m4_sysval, [0], [],
258 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
260 m4_popdef([gl_LIBSOURCES_DIR])
261 m4_popdef([gl_LIBSOURCES_LIST])
262 m4_popdef([AC_LIBSOURCES])
263 m4_popdef([AC_REPLACE_FUNCS])
264 m4_popdef([AC_LIBOBJ])
265 AC_CONFIG_COMMANDS_PRE([
268 if test -n "$gl_LIBOBJS"; then
269 # Remove the extension.
270 sed_drop_objext='s/\.o$//;s/\.obj$//'
271 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
272 gl_libobjs="$gl_libobjs $i.$ac_objext"
273 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
276 AC_SUBST([gl_LIBOBJS], [$gl_libobjs])
277 AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs])
281 m4_pushdef([AC_LIBOBJ], m4_defn([gltests_LIBOBJ]))
282 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gltests_REPLACE_FUNCS]))
283 m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES]))
284 m4_pushdef([gltests_LIBSOURCES_LIST], [])
285 m4_pushdef([gltests_LIBSOURCES_DIR], [])
287 gl_source_base='tests'
289 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
291 AC_SUBST([gltests_WITNESS])
292 gl_module_indicator_condition=$gltests_WITNESS
293 m4_pushdef([gl_MODULE_INDICATOR_CONDITION], [$gl_module_indicator_condition])
294 m4_popdef([gl_MODULE_INDICATOR_CONDITION])
295 m4_ifval(gltests_LIBSOURCES_LIST, [
296 m4_syscmd([test ! -d ]m4_defn([gltests_LIBSOURCES_DIR])[ ||
297 for gl_file in ]gltests_LIBSOURCES_LIST[ ; do
298 if test ! -r ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file ; then
299 echo "missing file ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file" >&2
303 m4_if(m4_sysval, [0], [],
304 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
306 m4_popdef([gltests_LIBSOURCES_DIR])
307 m4_popdef([gltests_LIBSOURCES_LIST])
308 m4_popdef([AC_LIBSOURCES])
309 m4_popdef([AC_REPLACE_FUNCS])
310 m4_popdef([AC_LIBOBJ])
311 AC_CONFIG_COMMANDS_PRE([
314 if test -n "$gltests_LIBOBJS"; then
315 # Remove the extension.
316 sed_drop_objext='s/\.o$//;s/\.obj$//'
317 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
318 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
319 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
322 AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs])
323 AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs])
325 LIBGNU_LIBDEPS="$gl_libdeps"
326 AC_SUBST([LIBGNU_LIBDEPS])
327 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
328 AC_SUBST([LIBGNU_LTLIBDEPS])
331 # Like AC_LIBOBJ, except that the module name goes
332 # into gl_LIBOBJS instead of into LIBOBJS.
333 AC_DEFUN([gl_LIBOBJ], [
334 AS_LITERAL_IF([$1], [gl_LIBSOURCES([$1.c])])dnl
335 gl_LIBOBJS="$gl_LIBOBJS $1.$ac_objext"
338 # Like AC_REPLACE_FUNCS, except that the module name goes
339 # into gl_LIBOBJS instead of into LIBOBJS.
340 AC_DEFUN([gl_REPLACE_FUNCS], [
341 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
342 AC_CHECK_FUNCS([$1], , [gl_LIBOBJ($ac_func)])
345 # Like AC_LIBSOURCES, except the directory where the source file is
346 # expected is derived from the gnulib-tool parameterization,
347 # and alloca is special cased (for the alloca-opt module).
348 # We could also entirely rely on EXTRA_lib..._SOURCES.
349 AC_DEFUN([gl_LIBSOURCES], [
350 m4_foreach([_gl_NAME], [$1], [
351 m4_if(_gl_NAME, [alloca.c], [], [
352 m4_define([gl_LIBSOURCES_DIR], [import])
353 m4_append([gl_LIBSOURCES_LIST], _gl_NAME, [ ])
358 # Like AC_LIBOBJ, except that the module name goes
359 # into gltests_LIBOBJS instead of into LIBOBJS.
360 AC_DEFUN([gltests_LIBOBJ], [
361 AS_LITERAL_IF([$1], [gltests_LIBSOURCES([$1.c])])dnl
362 gltests_LIBOBJS="$gltests_LIBOBJS $1.$ac_objext"
365 # Like AC_REPLACE_FUNCS, except that the module name goes
366 # into gltests_LIBOBJS instead of into LIBOBJS.
367 AC_DEFUN([gltests_REPLACE_FUNCS], [
368 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
369 AC_CHECK_FUNCS([$1], , [gltests_LIBOBJ($ac_func)])
372 # Like AC_LIBSOURCES, except the directory where the source file is
373 # expected is derived from the gnulib-tool parameterization,
374 # and alloca is special cased (for the alloca-opt module).
375 # We could also entirely rely on EXTRA_lib..._SOURCES.
376 AC_DEFUN([gltests_LIBSOURCES], [
377 m4_foreach([_gl_NAME], [$1], [
378 m4_if(_gl_NAME, [alloca.c], [], [
379 m4_define([gltests_LIBSOURCES_DIR], [tests])
380 m4_append([gltests_LIBSOURCES_LIST], _gl_NAME, [ ])
385 # This macro records the list of files which have been installed by
386 # gnulib-tool and may be removed by future gnulib-tool invocations.
387 AC_DEFUN([gl_FILE_LIST], [
388 build-aux/snippet/arg-nonnull.h
389 build-aux/snippet/c++defs.h
390 build-aux/snippet/warn-on-use.h
391 build-aux/update-copyright
423 lib/mbsrtowcs-state.c