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 btowc:
43
# Code from module c-ctype:
44
# Code from module c-strcase:
45
# Code from module c-strcaseeq:
46
# Code from module close:
47
# Code from module configmake:
48
# Code from module dirname:
49
# Code from module dirname-lgpl:
50
# Code from module dosname:
51
# Code from module double-slash-root:
52
# Code from module dup2:
53
# Code from module errno:
54
# Code from module error:
55
# Code from module exitfail:
56
# Code from module extensions:
57
AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
58
# Code from module fcntl:
59
# Code from module fcntl-h:
60
# Code from module fd-hook:
61
# Code from module float:
62
# Code from module getdelim:
63
# Code from module getdtablesize:
64
# Code from module getline:
65
# Code from module getopt-gnu:
66
# Code from module getopt-posix:
67
# Code from module gettext:
68
# Code from module gettext-h:
69
# Code from module gettimeofday:
70
# Code from module havelib:
71
# Code from module include_next:
72
# Code from module inline:
73
# Code from module intprops:
74
# Code from module langinfo:
75
# Code from module largefile:
76
AC_REQUIRE([AC_SYS_LARGEFILE])
77
# Code from module localcharset:
78
# Code from module locale:
79
# Code from module localeconv:
80
# Code from module lstat:
81
# Code from module malloc-gnu:
82
# Code from module malloc-posix:
83
# Code from module mbrtowc:
84
# Code from module mbsinit:
85
# Code from module mbtowc:
86
# Code from module memchr:
87
# Code from module minmax:
88
# Code from module msvc-inval:
89
# Code from module msvc-nothrow:
90
# Code from module multiarch:
91
# Code from module nl_langinfo:
92
# Code from module nocrash:
93
# Code from module pathmax:
94
# Code from module progname:
95
# Code from module quote:
96
# Code from module quotearg:
97
# Code from module quotearg-simple:
98
# Code from module realloc-gnu:
99
# Code from module realloc-posix:
100
# Code from module regex:
101
# Code from module rpmatch:
102
# Code from module signal:
103
# Code from module signal-h:
104
# Code from module size_max:
105
# Code from module snippet/_Noreturn:
106
# Code from module snippet/arg-nonnull:
107
# Code from module snippet/c++defs:
108
# Code from module snippet/warn-on-use:
109
# Code from module ssize_t:
110
# Code from module stat:
111
# Code from module stdarg:
112
dnl Some compilers (e.g., AIX 5.3 cc) need to be in c99 mode
113
dnl for the builtin va_copy to work. With Autoconf 2.60 or later,
114
dnl gl_PROG_CC_C99 arranges for this. With older Autoconf gl_PROG_CC_C99
115
dnl shouldn't hurt, though installers are on their own to set c99 mode.
117
# Code from module stdbool:
118
# Code from module stddef:
119
# Code from module stdint:
120
# Code from module stdio:
121
# Code from module stdlib:
122
# Code from module strcase:
123
# Code from module strdup-posix:
124
# Code from module streq:
125
# Code from module strerror:
126
# Code from module strerror-override:
127
# Code from module string:
128
# Code from module strings:
129
# Code from module strndup:
130
# Code from module strnlen:
131
# Code from module sys_stat:
132
# Code from module sys_time:
133
# Code from module sys_types:
134
# Code from module time:
135
# Code from module unistd:
136
# Code from module vasnprintf:
137
# Code from module vasprintf:
138
# Code from module verify:
139
# Code from module version-etc:
140
# Code from module wchar:
141
# Code from module wcrtomb:
142
# Code from module wctype-h:
143
# Code from module xalloc:
144
# Code from module xalloc-die:
145
# Code from module xalloc-oversized:
146
# Code from module xsize:
147
# Code from module xstrndup:
148
# Code from module xvasprintf:
149
# Code from module yesno:
152
# This macro should be invoked from ./configure.ac, in the section
153
# "Check for header files, types and library functions".
156
AM_CONDITIONAL([GL_COND_LIBTOOL], [false])
157
gl_cond_libtool=false
160
gl_m4_base='gnulib-m4'
161
m4_pushdef([AC_LIBOBJ], m4_defn([gl_LIBOBJ]))
162
m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gl_REPLACE_FUNCS]))
163
m4_pushdef([AC_LIBSOURCES], m4_defn([gl_LIBSOURCES]))
164
m4_pushdef([gl_LIBSOURCES_LIST], [])
165
m4_pushdef([gl_LIBSOURCES_DIR], [])
167
gl_source_base='gnulib-lib'
170
if test $HAVE_BTOWC = 0 || test $REPLACE_BTOWC = 1; then
174
gl_WCHAR_MODULE_INDICATOR([btowc])
176
if test $REPLACE_CLOSE = 1; then
179
gl_UNISTD_MODULE_INDICATOR([close])
182
gl_MODULE_INDICATOR([dirname])
186
if test $HAVE_DUP2 = 0 || test $REPLACE_DUP2 = 1; then
190
gl_UNISTD_MODULE_INDICATOR([dup2])
193
if test $ac_cv_lib_error_at_line = no; then
197
m4_ifdef([AM_XGETTEXT_OPTION],
198
[AM_][XGETTEXT_OPTION([--flag=error:3:c-format])
199
AM_][XGETTEXT_OPTION([--flag=error_at_line:5:c-format])])
201
if test $HAVE_FCNTL = 0 || test $REPLACE_FCNTL = 1; then
204
gl_FCNTL_MODULE_INDICATOR([fcntl])
207
if test $REPLACE_FLOAT_LDBL = 1; then
210
if test $REPLACE_ITOLD = 1; then
214
if test $HAVE_GETDELIM = 0 || test $REPLACE_GETDELIM = 1; then
215
AC_LIBOBJ([getdelim])
218
gl_STDIO_MODULE_INDICATOR([getdelim])
219
gl_FUNC_GETDTABLESIZE
220
if test $HAVE_GETDTABLESIZE = 0; then
221
AC_LIBOBJ([getdtablesize])
222
gl_PREREQ_GETDTABLESIZE
224
gl_UNISTD_MODULE_INDICATOR([getdtablesize])
226
if test $REPLACE_GETLINE = 1; then
230
gl_STDIO_MODULE_INDICATOR([getline])
232
if test $REPLACE_GETOPT = 1; then
236
dnl Arrange for unistd.h to include getopt.h.
237
GNULIB_GL_UNISTD_H_GETOPT=1
239
AC_SUBST([GNULIB_GL_UNISTD_H_GETOPT])
240
gl_MODULE_INDICATOR_FOR_TESTS([getopt-gnu])
242
if test $REPLACE_GETOPT = 1; then
246
dnl Arrange for unistd.h to include getopt.h.
247
GNULIB_GL_UNISTD_H_GETOPT=1
249
AC_SUBST([GNULIB_GL_UNISTD_H_GETOPT])
250
dnl you must add AM_GNU_GETTEXT([external]) or similar to configure.ac.
251
AM_GNU_GETTEXT_VERSION([0.18.1])
253
AC_SUBST([LTLIBINTL])
255
if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
256
AC_LIBOBJ([gettimeofday])
257
gl_PREREQ_GETTIMEOFDAY
259
gl_SYS_TIME_MODULE_INDICATOR([gettimeofday])
262
AC_REQUIRE([gl_LARGEFILE])
264
LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\""
265
AC_SUBST([LOCALCHARSET_TESTS_ENVIRONMENT])
268
if test $REPLACE_LOCALECONV = 1; then
269
AC_LIBOBJ([localeconv])
272
gl_LOCALE_MODULE_INDICATOR([localeconv])
274
if test $REPLACE_LSTAT = 1; then
278
gl_SYS_STAT_MODULE_INDICATOR([lstat])
280
if test $REPLACE_MALLOC = 1; then
283
gl_MODULE_INDICATOR([malloc-gnu])
285
if test $REPLACE_MALLOC = 1; then
288
gl_STDLIB_MODULE_INDICATOR([malloc-posix])
290
if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
294
gl_WCHAR_MODULE_INDICATOR([mbrtowc])
296
if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
300
gl_WCHAR_MODULE_INDICATOR([mbsinit])
302
if test $REPLACE_MBTOWC = 1; then
306
gl_STDLIB_MODULE_INDICATOR([mbtowc])
308
if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
312
gl_STRING_MODULE_INDICATOR([memchr])
315
if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
316
AC_LIBOBJ([msvc-inval])
319
if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
320
AC_LIBOBJ([msvc-nothrow])
324
if test $HAVE_NL_LANGINFO = 0 || test $REPLACE_NL_LANGINFO = 1; then
325
AC_LIBOBJ([nl_langinfo])
327
gl_LANGINFO_MODULE_INDICATOR([nl_langinfo])
329
AC_CHECK_DECLS([program_invocation_name], [], [], [#include <errno.h>])
330
AC_CHECK_DECLS([program_invocation_short_name], [], [], [#include <errno.h>])
334
if test $REPLACE_REALLOC = 1; then
337
gl_MODULE_INDICATOR([realloc-gnu])
338
gl_FUNC_REALLOC_POSIX
339
if test $REPLACE_REALLOC = 1; then
342
gl_STDLIB_MODULE_INDICATOR([realloc-posix])
344
if test $ac_use_included_regex = yes; then
349
if test $HAVE_RPMATCH = 0; then
353
gl_STDLIB_MODULE_INDICATOR([rpmatch])
358
if test $REPLACE_STAT = 1; then
362
gl_SYS_STAT_MODULE_INDICATOR([stat])
370
if test $HAVE_STRCASECMP = 0; then
371
AC_LIBOBJ([strcasecmp])
374
if test $HAVE_STRNCASECMP = 0; then
375
AC_LIBOBJ([strncasecmp])
376
gl_PREREQ_STRNCASECMP
379
if test $ac_cv_func_strdup = no || test $REPLACE_STRDUP = 1; then
383
gl_STRING_MODULE_INDICATOR([strdup])
385
if test $REPLACE_STRERROR = 1; then
386
AC_LIBOBJ([strerror])
388
gl_MODULE_INDICATOR([strerror])
389
gl_STRING_MODULE_INDICATOR([strerror])
390
AC_REQUIRE([gl_HEADER_ERRNO_H])
391
AC_REQUIRE([gl_FUNC_STRERROR_0])
392
if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then
393
AC_LIBOBJ([strerror-override])
394
gl_PREREQ_SYS_H_WINSOCK2
399
if test $HAVE_STRNDUP = 0 || test $REPLACE_STRNDUP = 1; then
402
gl_STRING_MODULE_INDICATOR([strndup])
404
if test $HAVE_DECL_STRNLEN = 0 || test $REPLACE_STRNLEN = 1; then
408
gl_STRING_MODULE_INDICATOR([strnlen])
419
gl_STDIO_MODULE_INDICATOR([vasprintf])
420
m4_ifdef([AM_XGETTEXT_OPTION],
421
[AM_][XGETTEXT_OPTION([--flag=asprintf:2:c-format])
422
AM_][XGETTEXT_OPTION([--flag=vasprintf:2:c-format])])
426
if test $HAVE_WCRTOMB = 0 || test $REPLACE_WCRTOMB = 1; then
430
gl_WCHAR_MODULE_INDICATOR([wcrtomb])
436
m4_ifdef([AM_XGETTEXT_OPTION],
437
[AM_][XGETTEXT_OPTION([--flag=xasprintf:1:c-format])])
439
# End of code from modules
440
m4_ifval(gl_LIBSOURCES_LIST, [
441
m4_syscmd([test ! -d ]m4_defn([gl_LIBSOURCES_DIR])[ ||
442
for gl_file in ]gl_LIBSOURCES_LIST[ ; do
443
if test ! -r ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file ; then
444
echo "missing file ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file" >&2
448
m4_if(m4_sysval, [0], [],
449
[AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
451
m4_popdef([gl_LIBSOURCES_DIR])
452
m4_popdef([gl_LIBSOURCES_LIST])
453
m4_popdef([AC_LIBSOURCES])
454
m4_popdef([AC_REPLACE_FUNCS])
455
m4_popdef([AC_LIBOBJ])
456
AC_CONFIG_COMMANDS_PRE([
459
if test -n "$gl_LIBOBJS"; then
460
# Remove the extension.
461
sed_drop_objext='s/\.o$//;s/\.obj$//'
462
for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
463
gl_libobjs="$gl_libobjs $i.$ac_objext"
464
gl_ltlibobjs="$gl_ltlibobjs $i.lo"
467
AC_SUBST([gl_LIBOBJS], [$gl_libobjs])
468
AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs])
472
m4_pushdef([AC_LIBOBJ], m4_defn([gltests_LIBOBJ]))
473
m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gltests_REPLACE_FUNCS]))
474
m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES]))
475
m4_pushdef([gltests_LIBSOURCES_LIST], [])
476
m4_pushdef([gltests_LIBSOURCES_DIR], [])
478
gl_source_base='tests'
480
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
482
AC_SUBST([gltests_WITNESS])
483
gl_module_indicator_condition=$gltests_WITNESS
484
m4_pushdef([gl_MODULE_INDICATOR_CONDITION], [$gl_module_indicator_condition])
485
m4_popdef([gl_MODULE_INDICATOR_CONDITION])
486
m4_ifval(gltests_LIBSOURCES_LIST, [
487
m4_syscmd([test ! -d ]m4_defn([gltests_LIBSOURCES_DIR])[ ||
488
for gl_file in ]gltests_LIBSOURCES_LIST[ ; do
489
if test ! -r ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file ; then
490
echo "missing file ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file" >&2
494
m4_if(m4_sysval, [0], [],
495
[AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
497
m4_popdef([gltests_LIBSOURCES_DIR])
498
m4_popdef([gltests_LIBSOURCES_LIST])
499
m4_popdef([AC_LIBSOURCES])
500
m4_popdef([AC_REPLACE_FUNCS])
501
m4_popdef([AC_LIBOBJ])
502
AC_CONFIG_COMMANDS_PRE([
505
if test -n "$gltests_LIBOBJS"; then
506
# Remove the extension.
507
sed_drop_objext='s/\.o$//;s/\.obj$//'
508
for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
509
gltests_libobjs="$gltests_libobjs $i.$ac_objext"
510
gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
513
AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs])
514
AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs])
516
LIBGNU_LIBDEPS="$gl_libdeps"
517
AC_SUBST([LIBGNU_LIBDEPS])
518
LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
519
AC_SUBST([LIBGNU_LTLIBDEPS])
522
# Like AC_LIBOBJ, except that the module name goes
523
# into gl_LIBOBJS instead of into LIBOBJS.
524
AC_DEFUN([gl_LIBOBJ], [
525
AS_LITERAL_IF([$1], [gl_LIBSOURCES([$1.c])])dnl
526
gl_LIBOBJS="$gl_LIBOBJS $1.$ac_objext"
529
# Like AC_REPLACE_FUNCS, except that the module name goes
530
# into gl_LIBOBJS instead of into LIBOBJS.
531
AC_DEFUN([gl_REPLACE_FUNCS], [
532
m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
533
AC_CHECK_FUNCS([$1], , [gl_LIBOBJ($ac_func)])
536
# Like AC_LIBSOURCES, except the directory where the source file is
537
# expected is derived from the gnulib-tool parameterization,
538
# and alloca is special cased (for the alloca-opt module).
539
# We could also entirely rely on EXTRA_lib..._SOURCES.
540
AC_DEFUN([gl_LIBSOURCES], [
541
m4_foreach([_gl_NAME], [$1], [
542
m4_if(_gl_NAME, [alloca.c], [], [
543
m4_define([gl_LIBSOURCES_DIR], [gnulib-lib])
544
m4_append([gl_LIBSOURCES_LIST], _gl_NAME, [ ])
549
# Like AC_LIBOBJ, except that the module name goes
550
# into gltests_LIBOBJS instead of into LIBOBJS.
551
AC_DEFUN([gltests_LIBOBJ], [
552
AS_LITERAL_IF([$1], [gltests_LIBSOURCES([$1.c])])dnl
553
gltests_LIBOBJS="$gltests_LIBOBJS $1.$ac_objext"
556
# Like AC_REPLACE_FUNCS, except that the module name goes
557
# into gltests_LIBOBJS instead of into LIBOBJS.
558
AC_DEFUN([gltests_REPLACE_FUNCS], [
559
m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
560
AC_CHECK_FUNCS([$1], , [gltests_LIBOBJ($ac_func)])
563
# Like AC_LIBSOURCES, except the directory where the source file is
564
# expected is derived from the gnulib-tool parameterization,
565
# and alloca is special cased (for the alloca-opt module).
566
# We could also entirely rely on EXTRA_lib..._SOURCES.
567
AC_DEFUN([gltests_LIBSOURCES], [
568
m4_foreach([_gl_NAME], [$1], [
569
m4_if(_gl_NAME, [alloca.c], [], [
570
m4_define([gltests_LIBSOURCES_DIR], [tests])
571
m4_append([gltests_LIBSOURCES_LIST], _gl_NAME, [ ])
576
# This macro records the list of files which have been installed by
577
# gnulib-tool and may be removed by future gnulib-tool invocations.
578
AC_DEFUN([gl_FILE_LIST], [
579
build-aux/config.rpath
580
build-aux/snippet/_Noreturn.h
581
build-aux/snippet/arg-nonnull.h
582
build-aux/snippet/c++defs.h
583
build-aux/snippet/warn-on-use.h
677
lib/strerror-override.c
678
lib/strerror-override.h
701
lib/xalloc-oversized.h
719
m4/double-slash-root.m4