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.in, 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([gl_PROG_AR_RANLIB])
29 # Code from module alloca-opt:
30 # Code from module allocator:
31 # Code from module careadlinkat:
32 # Code from module crypto/md5:
33 # Code from module crypto/sha1:
34 # Code from module crypto/sha256:
35 # Code from module crypto/sha512:
36 # Code from module dosname:
37 # Code from module dtoastr:
38 # Code from module dup2:
39 # Code from module extensions:
40 AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
41 # Code from module filemode:
42 # Code from module getloadavg:
43 # Code from module getopt-gnu:
44 # Code from module getopt-posix:
45 # Code from module gettext-h:
46 # Code from module ignore-value:
47 # Code from module include_next:
48 # Code from module intprops:
49 # Code from module inttypes-incomplete:
50 # Code from module largefile:
51 AC_REQUIRE([AC_SYS_LARGEFILE])
52 # Code from module lstat:
53 # Code from module mktime:
54 # Code from module multiarch:
55 # Code from module nocrash:
56 # Code from module pthread_sigmask:
57 # Code from module readlink:
58 # Code from module signal:
59 # Code from module sigprocmask:
60 # Code from module snippet/_Noreturn:
61 # Code from module snippet/arg-nonnull:
62 # Code from module snippet/c++defs:
63 # Code from module snippet/warn-on-use:
64 # Code from module socklen:
65 # Code from module ssize_t:
66 # Code from module stat:
67 # Code from module stdarg:
68 dnl Some compilers (e.g., AIX 5.3 cc) need to be in c99 mode
69 dnl for the builtin va_copy to work. With Autoconf 2.60 or later,
70 dnl AC_PROG_CC_STDC arranges for this. With older Autoconf AC_PROG_CC_STDC
71 dnl shouldn't hurt, though installers are on their own to set c99 mode.
72 AC_REQUIRE([AC_PROG_CC_STDC])
73 # Code from module stdbool:
74 # Code from module stddef:
75 # Code from module stdint:
76 # Code from module stdio:
77 # Code from module stdlib:
78 # Code from module strftime:
79 # Code from module strtoimax:
80 # Code from module strtoll:
81 # Code from module strtoull:
82 # Code from module strtoumax:
83 # Code from module symlink:
84 # Code from module sys_stat:
85 # Code from module time:
86 # Code from module time_r:
87 # Code from module u64:
88 # Code from module unistd:
89 # Code from module verify:
92 # This macro should be invoked from ./configure.in, in the section
93 # "Check for header files, types and library functions".
96 AM_CONDITIONAL([GL_COND_LIBTOOL], [false])
101 m4_pushdef([AC_LIBOBJ], m4_defn([gl_LIBOBJ]))
102 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gl_REPLACE_FUNCS]))
103 m4_pushdef([AC_LIBSOURCES], m4_defn([gl_LIBSOURCES]))
104 m4_pushdef([gl_LIBSOURCES_LIST], [])
105 m4_pushdef([gl_LIBSOURCES_DIR], [])
109 AC_CHECK_FUNCS_ONCE([readlinkat])
114 AC_REQUIRE([gl_C99_STRTOLD])
116 if test $HAVE_DUP2 = 0 || test $REPLACE_DUP2 = 1; then
119 gl_UNISTD_MODULE_INDICATOR([dup2])
122 if test $HAVE_GETLOADAVG = 0; then
123 AC_LIBOBJ([getloadavg])
126 gl_STDLIB_MODULE_INDICATOR([getloadavg])
128 if test $REPLACE_GETOPT = 1; then
133 gl_MODULE_INDICATOR_FOR_TESTS([getopt-gnu])
135 if test $REPLACE_GETOPT = 1; then
140 AC_REQUIRE([AC_C_INLINE])
141 gl_INTTYPES_INCOMPLETE
143 if test $REPLACE_LSTAT = 1; then
147 gl_SYS_STAT_MODULE_INDICATOR([lstat])
149 if test $REPLACE_MKTIME = 1; then
153 gl_TIME_MODULE_INDICATOR([mktime])
155 gl_FUNC_PTHREAD_SIGMASK
156 if test $HAVE_PTHREAD_SIGMASK = 0 || test $REPLACE_PTHREAD_SIGMASK = 1; then
157 AC_LIBOBJ([pthread_sigmask])
158 gl_PREREQ_PTHREAD_SIGMASK
160 gl_SIGNAL_MODULE_INDICATOR([pthread_sigmask])
162 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
163 AC_LIBOBJ([readlink])
166 gl_UNISTD_MODULE_INDICATOR([readlink])
178 if test $ac_cv_func_strtoimax = no; then
179 AC_LIBOBJ([strtoimax])
182 gl_INTTYPES_MODULE_INDICATOR([strtoimax])
184 if test $ac_cv_func_strtoumax = no; then
185 AC_LIBOBJ([strtoumax])
188 gl_INTTYPES_MODULE_INDICATOR([strtoumax])
190 if test $HAVE_SYMLINK = 0 || test $REPLACE_SYMLINK = 1; then
193 gl_UNISTD_MODULE_INDICATOR([symlink])
198 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
202 gl_TIME_MODULE_INDICATOR([time_r])
203 AC_REQUIRE([AC_C_INLINE])
205 gl_gnulib_enabled_dosname=false
206 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=false
207 gl_gnulib_enabled_sigprocmask=false
208 gl_gnulib_enabled_stat=false
209 gl_gnulib_enabled_strtoll=false
210 gl_gnulib_enabled_strtoull=false
211 gl_gnulib_enabled_verify=false
212 func_gl_gnulib_m4code_dosname ()
214 if ! $gl_gnulib_enabled_dosname; then
215 gl_gnulib_enabled_dosname=true
218 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36 ()
220 if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
222 AC_SUBST([LTLIBINTL])
223 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=true
226 func_gl_gnulib_m4code_sigprocmask ()
228 if ! $gl_gnulib_enabled_sigprocmask; then
230 if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
231 AC_LIBOBJ([sigprocmask])
232 gl_PREREQ_SIGPROCMASK
234 gl_SIGNAL_MODULE_INDICATOR([sigprocmask])
235 gl_gnulib_enabled_sigprocmask=true
238 func_gl_gnulib_m4code_stat ()
240 if ! $gl_gnulib_enabled_stat; then
242 if test $REPLACE_STAT = 1; then
246 gl_SYS_STAT_MODULE_INDICATOR([stat])
247 gl_gnulib_enabled_stat=true
249 func_gl_gnulib_m4code_dosname
252 func_gl_gnulib_m4code_verify
256 func_gl_gnulib_m4code_strtoll ()
258 if ! $gl_gnulib_enabled_strtoll; then
260 if test $HAVE_STRTOLL = 0; then
264 gl_STDLIB_MODULE_INDICATOR([strtoll])
265 gl_gnulib_enabled_strtoll=true
268 func_gl_gnulib_m4code_strtoull ()
270 if ! $gl_gnulib_enabled_strtoull; then
272 if test $HAVE_STRTOULL = 0; then
273 AC_LIBOBJ([strtoull])
276 gl_STDLIB_MODULE_INDICATOR([strtoull])
277 gl_gnulib_enabled_strtoull=true
280 func_gl_gnulib_m4code_verify ()
282 if ! $gl_gnulib_enabled_verify; then
283 gl_gnulib_enabled_verify=true
286 if test $REPLACE_GETOPT = 1; then
287 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
289 if test $REPLACE_LSTAT = 1; then
290 func_gl_gnulib_m4code_dosname
292 if test $REPLACE_LSTAT = 1; then
293 func_gl_gnulib_m4code_stat
295 if test $HAVE_PTHREAD_SIGMASK = 0 || test $REPLACE_PTHREAD_SIGMASK = 1; then
296 func_gl_gnulib_m4code_sigprocmask
298 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
299 func_gl_gnulib_m4code_stat
301 if test $ac_cv_func_strtoimax = no; then
302 func_gl_gnulib_m4code_verify
304 if test $ac_cv_func_strtoimax = no && test $ac_cv_type_long_long_int = yes; then
305 func_gl_gnulib_m4code_strtoll
307 if test $ac_cv_func_strtoumax = no; then
308 func_gl_gnulib_m4code_verify
310 if test $ac_cv_func_strtoumax = no && test $ac_cv_type_unsigned_long_long_int = yes; then
311 func_gl_gnulib_m4code_strtoull
313 m4_pattern_allow([^gl_GNULIB_ENABLED_])
314 AM_CONDITIONAL([gl_GNULIB_ENABLED_dosname], [$gl_gnulib_enabled_dosname])
315 AM_CONDITIONAL([gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36], [$gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36])
316 AM_CONDITIONAL([gl_GNULIB_ENABLED_sigprocmask], [$gl_gnulib_enabled_sigprocmask])
317 AM_CONDITIONAL([gl_GNULIB_ENABLED_stat], [$gl_gnulib_enabled_stat])
318 AM_CONDITIONAL([gl_GNULIB_ENABLED_strtoll], [$gl_gnulib_enabled_strtoll])
319 AM_CONDITIONAL([gl_GNULIB_ENABLED_strtoull], [$gl_gnulib_enabled_strtoull])
320 AM_CONDITIONAL([gl_GNULIB_ENABLED_verify], [$gl_gnulib_enabled_verify])
321 # End of code from modules
322 m4_ifval(gl_LIBSOURCES_LIST, [
323 m4_syscmd([test ! -d ]m4_defn([gl_LIBSOURCES_DIR])[ ||
324 for gl_file in ]gl_LIBSOURCES_LIST[ ; do
325 if test ! -r ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file ; then
326 echo "missing file ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file" >&2
330 m4_if(m4_sysval, [0], [],
331 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
333 m4_popdef([gl_LIBSOURCES_DIR])
334 m4_popdef([gl_LIBSOURCES_LIST])
335 m4_popdef([AC_LIBSOURCES])
336 m4_popdef([AC_REPLACE_FUNCS])
337 m4_popdef([AC_LIBOBJ])
338 AC_CONFIG_COMMANDS_PRE([
341 if test -n "$gl_LIBOBJS"; then
342 # Remove the extension.
343 sed_drop_objext='s/\.o$//;s/\.obj$//'
344 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
345 gl_libobjs="$gl_libobjs $i.$ac_objext"
346 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
349 AC_SUBST([gl_LIBOBJS], [$gl_libobjs])
350 AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs])
354 m4_pushdef([AC_LIBOBJ], m4_defn([gltests_LIBOBJ]))
355 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gltests_REPLACE_FUNCS]))
356 m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES]))
357 m4_pushdef([gltests_LIBSOURCES_LIST], [])
358 m4_pushdef([gltests_LIBSOURCES_DIR], [])
360 gl_source_base='tests'
362 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
364 AC_SUBST([gltests_WITNESS])
365 gl_module_indicator_condition=$gltests_WITNESS
366 m4_pushdef([gl_MODULE_INDICATOR_CONDITION], [$gl_module_indicator_condition])
367 m4_pattern_allow([^gl_GNULIB_ENABLED_])
368 m4_popdef([gl_MODULE_INDICATOR_CONDITION])
369 m4_ifval(gltests_LIBSOURCES_LIST, [
370 m4_syscmd([test ! -d ]m4_defn([gltests_LIBSOURCES_DIR])[ ||
371 for gl_file in ]gltests_LIBSOURCES_LIST[ ; do
372 if test ! -r ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file ; then
373 echo "missing file ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file" >&2
377 m4_if(m4_sysval, [0], [],
378 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
380 m4_popdef([gltests_LIBSOURCES_DIR])
381 m4_popdef([gltests_LIBSOURCES_LIST])
382 m4_popdef([AC_LIBSOURCES])
383 m4_popdef([AC_REPLACE_FUNCS])
384 m4_popdef([AC_LIBOBJ])
385 AC_CONFIG_COMMANDS_PRE([
388 if test -n "$gltests_LIBOBJS"; then
389 # Remove the extension.
390 sed_drop_objext='s/\.o$//;s/\.obj$//'
391 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
392 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
393 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
396 AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs])
397 AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs])
399 LIBGNU_LIBDEPS="$gl_libdeps"
400 AC_SUBST([LIBGNU_LIBDEPS])
401 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
402 AC_SUBST([LIBGNU_LTLIBDEPS])
405 # Like AC_LIBOBJ, except that the module name goes
406 # into gl_LIBOBJS instead of into LIBOBJS.
407 AC_DEFUN([gl_LIBOBJ], [
408 AS_LITERAL_IF([$1], [gl_LIBSOURCES([$1.c])])dnl
409 gl_LIBOBJS="$gl_LIBOBJS $1.$ac_objext"
412 # Like AC_REPLACE_FUNCS, except that the module name goes
413 # into gl_LIBOBJS instead of into LIBOBJS.
414 AC_DEFUN([gl_REPLACE_FUNCS], [
415 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
416 AC_CHECK_FUNCS([$1], , [gl_LIBOBJ($ac_func)])
419 # Like AC_LIBSOURCES, except the directory where the source file is
420 # expected is derived from the gnulib-tool parameterization,
421 # and alloca is special cased (for the alloca-opt module).
422 # We could also entirely rely on EXTRA_lib..._SOURCES.
423 AC_DEFUN([gl_LIBSOURCES], [
424 m4_foreach([_gl_NAME], [$1], [
425 m4_if(_gl_NAME, [alloca.c], [], [
426 m4_define([gl_LIBSOURCES_DIR], [lib])
427 m4_append([gl_LIBSOURCES_LIST], _gl_NAME, [ ])
432 # Like AC_LIBOBJ, except that the module name goes
433 # into gltests_LIBOBJS instead of into LIBOBJS.
434 AC_DEFUN([gltests_LIBOBJ], [
435 AS_LITERAL_IF([$1], [gltests_LIBSOURCES([$1.c])])dnl
436 gltests_LIBOBJS="$gltests_LIBOBJS $1.$ac_objext"
439 # Like AC_REPLACE_FUNCS, except that the module name goes
440 # into gltests_LIBOBJS instead of into LIBOBJS.
441 AC_DEFUN([gltests_REPLACE_FUNCS], [
442 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
443 AC_CHECK_FUNCS([$1], , [gltests_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([gltests_LIBSOURCES], [
451 m4_foreach([_gl_NAME], [$1], [
452 m4_if(_gl_NAME, [alloca.c], [], [
453 m4_define([gltests_LIBSOURCES_DIR], [tests])
454 m4_append([gltests_LIBSOURCES_LIST], _gl_NAME, [ ])
459 # This macro records the list of files which have been installed by
460 # gnulib-tool and may be removed by future gnulib-tool invocations.
461 AC_DEFUN([gl_FILE_LIST], [
462 build-aux/snippet/_Noreturn.h
463 build-aux/snippet/arg-nonnull.h
464 build-aux/snippet/c++defs.h
465 build-aux/snippet/warn-on-use.h
490 lib/mktime-internal.h
492 lib/pthread_sigmask.c
542 m4/pthread_sigmask.m4