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([AC_PROG_RANLIB])
29 # Code from module alloca-opt:
30 # Code from module allocator:
31 # Code from module arg-nonnull:
32 # Code from module c++defs:
33 # Code from module careadlinkat:
34 # Code from module crypto/md5:
35 # Code from module crypto/sha1:
36 # Code from module crypto/sha256:
37 # Code from module crypto/sha512:
38 # Code from module dosname:
39 # Code from module dtoastr:
40 # Code from module dup2:
41 # Code from module extensions:
42 AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
43 # Code from module filemode:
44 # Code from module getloadavg:
45 # Code from module getopt-gnu:
46 # Code from module getopt-posix:
47 # Code from module gettext-h:
48 # Code from module ignore-value:
49 # Code from module include_next:
50 # Code from module intprops:
51 # Code from module inttypes-incomplete:
52 # Code from module lstat:
53 # Code from module mktime:
54 # Code from module multiarch:
55 # Code from module pthread_sigmask:
56 # Code from module readlink:
57 # Code from module signal:
58 # Code from module sigprocmask:
59 # Code from module socklen:
60 # Code from module ssize_t:
61 # Code from module stat:
62 # Code from module stdarg:
63 dnl Some compilers (e.g., AIX 5.3 cc) need to be in c99 mode
64 dnl for the builtin va_copy to work. With Autoconf 2.60 or later,
65 dnl AC_PROG_CC_STDC arranges for this. With older Autoconf AC_PROG_CC_STDC
66 dnl shouldn't hurt, though installers are on their own to set c99 mode.
67 AC_REQUIRE([AC_PROG_CC_STDC])
68 # Code from module stdbool:
69 # Code from module stddef:
70 # Code from module stdint:
71 # Code from module stdio:
72 # Code from module stdlib:
73 # Code from module strftime:
74 # Code from module strtoimax:
75 # Code from module strtoll:
76 # Code from module strtoull:
77 # Code from module strtoumax:
78 # Code from module symlink:
79 # Code from module sys_stat:
80 # Code from module time:
81 # Code from module time_r:
82 # Code from module u64:
83 # Code from module unistd:
84 # Code from module verify:
85 # Code from module warn-on-use:
88 # This macro should be invoked from ./configure.in, in the section
89 # "Check for header files, types and library functions".
92 AM_CONDITIONAL([GL_COND_LIBTOOL], [false])
97 m4_pushdef([AC_LIBOBJ], m4_defn([gl_LIBOBJ]))
98 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gl_REPLACE_FUNCS]))
99 m4_pushdef([AC_LIBSOURCES], m4_defn([gl_LIBSOURCES]))
100 m4_pushdef([gl_LIBSOURCES_LIST], [])
101 m4_pushdef([gl_LIBSOURCES_DIR], [])
105 AC_CHECK_FUNCS_ONCE([readlinkat])
110 AC_REQUIRE([gl_C99_STRTOLD])
112 gl_UNISTD_MODULE_INDICATOR([dup2])
115 if test $HAVE_GETLOADAVG = 0; then
116 AC_LIBOBJ([getloadavg])
119 gl_STDLIB_MODULE_INDICATOR([getloadavg])
121 if test $REPLACE_GETOPT = 1; then
126 gl_MODULE_INDICATOR_FOR_TESTS([getopt-gnu])
128 if test $REPLACE_GETOPT = 1; then
133 AC_REQUIRE([AC_C_INLINE])
134 gl_INTTYPES_INCOMPLETE
136 if test $REPLACE_LSTAT = 1; then
140 gl_SYS_STAT_MODULE_INDICATOR([lstat])
142 if test $REPLACE_MKTIME = 1; then
146 gl_TIME_MODULE_INDICATOR([mktime])
148 gl_FUNC_PTHREAD_SIGMASK
149 if test $HAVE_PTHREAD_SIGMASK = 0 || test $REPLACE_PTHREAD_SIGMASK = 1; then
150 AC_LIBOBJ([pthread_sigmask])
152 gl_SIGNAL_MODULE_INDICATOR([pthread_sigmask])
154 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
155 AC_LIBOBJ([readlink])
158 gl_UNISTD_MODULE_INDICATOR([readlink])
170 if test "$ac_cv_have_decl_strtoimax" != yes && test $ac_cv_func_strtoimax = no; then
171 AC_LIBOBJ([strtoimax])
174 gl_INTTYPES_MODULE_INDICATOR([strtoimax])
176 if test "$ac_cv_have_decl_strtoumax" != yes && test $ac_cv_func_strtoumax = no; then
177 AC_LIBOBJ([strtoumax])
180 gl_INTTYPES_MODULE_INDICATOR([strtoumax])
182 if test $HAVE_SYMLINK = 0 || test $REPLACE_SYMLINK = 1; then
185 gl_UNISTD_MODULE_INDICATOR([symlink])
190 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
194 gl_TIME_MODULE_INDICATOR([time_r])
195 AC_REQUIRE([AC_C_INLINE])
197 gl_gnulib_enabled_dosname=false
198 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=false
199 gl_gnulib_enabled_sigprocmask=false
200 gl_gnulib_enabled_stat=false
201 gl_gnulib_enabled_strtoll=false
202 gl_gnulib_enabled_strtoull=false
203 gl_gnulib_enabled_verify=false
204 func_gl_gnulib_m4code_dosname ()
206 if ! $gl_gnulib_enabled_dosname; then
207 gl_gnulib_enabled_dosname=true
210 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36 ()
212 if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
214 AC_SUBST([LTLIBINTL])
215 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=true
218 func_gl_gnulib_m4code_sigprocmask ()
220 if ! $gl_gnulib_enabled_sigprocmask; then
222 if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
223 AC_LIBOBJ([sigprocmask])
224 gl_PREREQ_SIGPROCMASK
226 gl_SIGNAL_MODULE_INDICATOR([sigprocmask])
227 gl_gnulib_enabled_sigprocmask=true
230 func_gl_gnulib_m4code_stat ()
232 if ! $gl_gnulib_enabled_stat; then
234 if test $REPLACE_STAT = 1; then
238 gl_SYS_STAT_MODULE_INDICATOR([stat])
239 gl_gnulib_enabled_stat=true
241 func_gl_gnulib_m4code_dosname
244 func_gl_gnulib_m4code_verify
248 func_gl_gnulib_m4code_strtoll ()
250 if ! $gl_gnulib_enabled_strtoll; then
252 if test $HAVE_STRTOLL = 0; then
256 gl_STDLIB_MODULE_INDICATOR([strtoll])
257 gl_gnulib_enabled_strtoll=true
260 func_gl_gnulib_m4code_strtoull ()
262 if ! $gl_gnulib_enabled_strtoull; then
264 if test $HAVE_STRTOULL = 0; then
265 AC_LIBOBJ([strtoull])
268 gl_STDLIB_MODULE_INDICATOR([strtoull])
269 gl_gnulib_enabled_strtoull=true
272 func_gl_gnulib_m4code_verify ()
274 if ! $gl_gnulib_enabled_verify; then
275 gl_gnulib_enabled_verify=true
278 if test $REPLACE_GETOPT = 1; then
279 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
281 if test $REPLACE_LSTAT = 1; then
282 func_gl_gnulib_m4code_dosname
284 if test $REPLACE_LSTAT = 1; then
285 func_gl_gnulib_m4code_stat
287 if test $HAVE_PTHREAD_SIGMASK = 0 || test $REPLACE_PTHREAD_SIGMASK = 1; then
288 func_gl_gnulib_m4code_sigprocmask
290 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
291 func_gl_gnulib_m4code_stat
293 if test "$ac_cv_have_decl_strtoimax" != yes && test $ac_cv_func_strtoimax = no; then
294 func_gl_gnulib_m4code_verify
296 if test "$ac_cv_have_decl_strtoimax" != yes && test $ac_cv_func_strtoimax = no && test $ac_cv_type_long_long_int = yes; then
297 func_gl_gnulib_m4code_strtoll
299 if test "$ac_cv_have_decl_strtoumax" != yes && test $ac_cv_func_strtoumax = no; then
300 func_gl_gnulib_m4code_verify
302 if test "$ac_cv_have_decl_strtoumax" != yes && test $ac_cv_func_strtoumax = no && test $ac_cv_type_unsigned_long_long_int = yes; then
303 func_gl_gnulib_m4code_strtoull
305 m4_pattern_allow([^gl_GNULIB_ENABLED_])
306 AM_CONDITIONAL([gl_GNULIB_ENABLED_dosname], [$gl_gnulib_enabled_dosname])
307 AM_CONDITIONAL([gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36], [$gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36])
308 AM_CONDITIONAL([gl_GNULIB_ENABLED_sigprocmask], [$gl_gnulib_enabled_sigprocmask])
309 AM_CONDITIONAL([gl_GNULIB_ENABLED_stat], [$gl_gnulib_enabled_stat])
310 AM_CONDITIONAL([gl_GNULIB_ENABLED_strtoll], [$gl_gnulib_enabled_strtoll])
311 AM_CONDITIONAL([gl_GNULIB_ENABLED_strtoull], [$gl_gnulib_enabled_strtoull])
312 AM_CONDITIONAL([gl_GNULIB_ENABLED_verify], [$gl_gnulib_enabled_verify])
313 # End of code from modules
314 m4_ifval(gl_LIBSOURCES_LIST, [
315 m4_syscmd([test ! -d ]m4_defn([gl_LIBSOURCES_DIR])[ ||
316 for gl_file in ]gl_LIBSOURCES_LIST[ ; do
317 if test ! -r ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file ; then
318 echo "missing file ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file" >&2
322 m4_if(m4_sysval, [0], [],
323 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
325 m4_popdef([gl_LIBSOURCES_DIR])
326 m4_popdef([gl_LIBSOURCES_LIST])
327 m4_popdef([AC_LIBSOURCES])
328 m4_popdef([AC_REPLACE_FUNCS])
329 m4_popdef([AC_LIBOBJ])
330 AC_CONFIG_COMMANDS_PRE([
333 if test -n "$gl_LIBOBJS"; then
334 # Remove the extension.
335 sed_drop_objext='s/\.o$//;s/\.obj$//'
336 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
337 gl_libobjs="$gl_libobjs $i.$ac_objext"
338 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
341 AC_SUBST([gl_LIBOBJS], [$gl_libobjs])
342 AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs])
346 m4_pushdef([AC_LIBOBJ], m4_defn([gltests_LIBOBJ]))
347 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gltests_REPLACE_FUNCS]))
348 m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES]))
349 m4_pushdef([gltests_LIBSOURCES_LIST], [])
350 m4_pushdef([gltests_LIBSOURCES_DIR], [])
352 gl_source_base='tests'
354 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
356 AC_SUBST([gltests_WITNESS])
357 gl_module_indicator_condition=$gltests_WITNESS
358 m4_pushdef([gl_MODULE_INDICATOR_CONDITION], [$gl_module_indicator_condition])
359 m4_pattern_allow([^gl_GNULIB_ENABLED_])
360 m4_popdef([gl_MODULE_INDICATOR_CONDITION])
361 m4_ifval(gltests_LIBSOURCES_LIST, [
362 m4_syscmd([test ! -d ]m4_defn([gltests_LIBSOURCES_DIR])[ ||
363 for gl_file in ]gltests_LIBSOURCES_LIST[ ; do
364 if test ! -r ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file ; then
365 echo "missing file ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file" >&2
369 m4_if(m4_sysval, [0], [],
370 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
372 m4_popdef([gltests_LIBSOURCES_DIR])
373 m4_popdef([gltests_LIBSOURCES_LIST])
374 m4_popdef([AC_LIBSOURCES])
375 m4_popdef([AC_REPLACE_FUNCS])
376 m4_popdef([AC_LIBOBJ])
377 AC_CONFIG_COMMANDS_PRE([
380 if test -n "$gltests_LIBOBJS"; then
381 # Remove the extension.
382 sed_drop_objext='s/\.o$//;s/\.obj$//'
383 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
384 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
385 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
388 AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs])
389 AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs])
391 LIBGNU_LIBDEPS="$gl_libdeps"
392 AC_SUBST([LIBGNU_LIBDEPS])
393 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
394 AC_SUBST([LIBGNU_LTLIBDEPS])
397 # Like AC_LIBOBJ, except that the module name goes
398 # into gl_LIBOBJS instead of into LIBOBJS.
399 AC_DEFUN([gl_LIBOBJ], [
400 AS_LITERAL_IF([$1], [gl_LIBSOURCES([$1.c])])dnl
401 gl_LIBOBJS="$gl_LIBOBJS $1.$ac_objext"
404 # Like AC_REPLACE_FUNCS, except that the module name goes
405 # into gl_LIBOBJS instead of into LIBOBJS.
406 AC_DEFUN([gl_REPLACE_FUNCS], [
407 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
408 AC_CHECK_FUNCS([$1], , [gl_LIBOBJ($ac_func)])
411 # Like AC_LIBSOURCES, except the directory where the source file is
412 # expected is derived from the gnulib-tool parameterization,
413 # and alloca is special cased (for the alloca-opt module).
414 # We could also entirely rely on EXTRA_lib..._SOURCES.
415 AC_DEFUN([gl_LIBSOURCES], [
416 m4_foreach([_gl_NAME], [$1], [
417 m4_if(_gl_NAME, [alloca.c], [], [
418 m4_define([gl_LIBSOURCES_DIR], [lib])
419 m4_append([gl_LIBSOURCES_LIST], _gl_NAME, [ ])
424 # Like AC_LIBOBJ, except that the module name goes
425 # into gltests_LIBOBJS instead of into LIBOBJS.
426 AC_DEFUN([gltests_LIBOBJ], [
427 AS_LITERAL_IF([$1], [gltests_LIBSOURCES([$1.c])])dnl
428 gltests_LIBOBJS="$gltests_LIBOBJS $1.$ac_objext"
431 # Like AC_REPLACE_FUNCS, except that the module name goes
432 # into gltests_LIBOBJS instead of into LIBOBJS.
433 AC_DEFUN([gltests_REPLACE_FUNCS], [
434 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
435 AC_CHECK_FUNCS([$1], , [gltests_LIBOBJ($ac_func)])
438 # Like AC_LIBSOURCES, except the directory where the source file is
439 # expected is derived from the gnulib-tool parameterization,
440 # and alloca is special cased (for the alloca-opt module).
441 # We could also entirely rely on EXTRA_lib..._SOURCES.
442 AC_DEFUN([gltests_LIBSOURCES], [
443 m4_foreach([_gl_NAME], [$1], [
444 m4_if(_gl_NAME, [alloca.c], [], [
445 m4_define([gltests_LIBSOURCES_DIR], [tests])
446 m4_append([gltests_LIBSOURCES_LIST], _gl_NAME, [ ])
451 # This macro records the list of files which have been installed by
452 # gnulib-tool and may be removed by future gnulib-tool invocations.
453 AC_DEFUN([gl_FILE_LIST], [
454 build-aux/arg-nonnull.h
456 build-aux/warn-on-use.h
481 lib/mktime-internal.h
483 lib/pthread_sigmask.c
531 m4/pthread_sigmask.m4