1# DO NOT EDIT! GENERATED AUTOMATICALLY! 2# Copyright (C) 2002-2011 Free Software Foundation, Inc. 3# 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. 9# 10# Generated by gnulib-tool. 11# 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 16# other built files. 17 18 19# This macro should be invoked from ./configure.ac, 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. 22AC_DEFUN([gl_EARLY], 23[ 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 AC_REQUIRE([AM_PROG_CC_C_O]) 30 # Code from module alloca-opt: 31 # Code from module allocator: 32 # Code from module areadlink: 33 # Code from module binary-io: 34 # Code from module canonicalize-lgpl: 35 # Code from module careadlinkat: 36 # Code from module dosname: 37 # Code from module double-slash-root: 38 # Code from module environ: 39 # Code from module errno: 40 # Code from module error: 41 # Code from module extensions: 42 AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) 43 # Code from module fcntl-h: 44 # Code from module gettext: 45 # Code from module gettext-h: 46 # Code from module havelib: 47 # Code from module include_next: 48 # Code from module intprops: 49 # Code from module largefile: 50 # Code from module libiconv-misc: 51 # Code from module lstat: 52 # Code from module malloca: 53 # Code from module mbstate: 54 # Code from module memmove: 55 # Code from module multiarch: 56 # Code from module nocrash: 57 # Code from module pathmax: 58 # Code from module progname: 59 # Code from module read: 60 # Code from module readlink: 61 # Code from module relocatable-prog: 62 # Code from module relocatable-prog-wrapper: 63 # Code from module safe-read: 64 # Code from module signal: 65 # Code from module sigpipe: 66 # Code from module sigprocmask: 67 # Code from module snippet/_Noreturn: 68 # Code from module snippet/arg-nonnull: 69 # Code from module snippet/c++defs: 70 # Code from module snippet/warn-on-use: 71 # Code from module ssize_t: 72 # Code from module stat: 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 streq: 79 # Code from module strerror: 80 # Code from module strerror-override: 81 # Code from module string: 82 # Code from module sys_stat: 83 # Code from module time: 84 # Code from module unistd: 85 # Code from module unitypes: 86 # Code from module uniwidth/base: 87 # Code from module uniwidth/width: 88 # Code from module unlocked-io: 89 # Code from module verify: 90 # Code from module xalloc: 91 # Code from module xreadlink: 92]) 93 94# This macro should be invoked from ./configure.ac, in the section 95# "Check for header files, types and library functions". 96AC_DEFUN([gl_INIT], 97[ 98 AM_CONDITIONAL([GL_COND_LIBTOOL], [false]) 99 gl_cond_libtool=false 100 gl_libdeps= 101 gl_ltlibdeps= 102 gl_m4_base='srcm4' 103 m4_pushdef([AC_LIBOBJ], m4_defn([gl_LIBOBJ])) 104 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gl_REPLACE_FUNCS])) 105 m4_pushdef([AC_LIBSOURCES], m4_defn([gl_LIBSOURCES])) 106 m4_pushdef([gl_LIBSOURCES_LIST], []) 107 m4_pushdef([gl_LIBSOURCES_DIR], []) 108 gl_COMMON 109 gl_source_base='srclib' 110gl_FUNC_ALLOCA 111gl_CANONICALIZE_LGPL 112if test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1; then 113 AC_LIBOBJ([canonicalize-lgpl]) 114fi 115gl_MODULE_INDICATOR([canonicalize-lgpl]) 116gl_STDLIB_MODULE_INDICATOR([canonicalize_file_name]) 117gl_STDLIB_MODULE_INDICATOR([realpath]) 118AC_CHECK_FUNCS_ONCE([readlinkat]) 119gl_DOUBLE_SLASH_ROOT 120gl_ENVIRON 121gl_UNISTD_MODULE_INDICATOR([environ]) 122gl_HEADER_ERRNO_H 123gl_ERROR 124if test $ac_cv_lib_error_at_line = no; then 125 AC_LIBOBJ([error]) 126 gl_PREREQ_ERROR 127fi 128m4_ifdef([AM_XGETTEXT_OPTION], 129 [AM_][XGETTEXT_OPTION([--flag=error:3:c-format]) 130 AM_][XGETTEXT_OPTION([--flag=error_at_line:5:c-format])]) 131gl_FCNTL_H 132dnl you must add AM_GNU_GETTEXT([external]) or similar to configure.ac. 133AM_GNU_GETTEXT_VERSION([0.18.1]) 134AC_SUBST([LIBINTL]) 135AC_SUBST([LTLIBINTL]) 136gl_FUNC_LSTAT 137if test $REPLACE_LSTAT = 1; then 138 AC_LIBOBJ([lstat]) 139 gl_PREREQ_LSTAT 140fi 141gl_SYS_STAT_MODULE_INDICATOR([lstat]) 142gl_MALLOCA 143AC_TYPE_MBSTATE_T 144gl_FUNC_MEMMOVE 145if test $ac_cv_func_memmove = no; then 146 AC_LIBOBJ([memmove]) 147 gl_PREREQ_MEMMOVE 148fi 149gl_MULTIARCH 150gl_PATHMAX 151AC_CHECK_DECLS([program_invocation_name], [], [], [#include <errno.h>]) 152AC_CHECK_DECLS([program_invocation_short_name], [], [], [#include <errno.h>]) 153gl_FUNC_READ 154if test $REPLACE_READ = 1; then 155 AC_LIBOBJ([read]) 156fi 157gl_UNISTD_MODULE_INDICATOR([read]) 158gl_FUNC_READLINK 159if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then 160 AC_LIBOBJ([readlink]) 161 gl_PREREQ_READLINK 162fi 163gl_UNISTD_MODULE_INDICATOR([readlink]) 164gl_RELOCATABLE([$gl_source_base]) 165if test $RELOCATABLE = yes; then 166 AC_LIBOBJ([progreloc]) 167fi 168gl_FUNC_READLINK_SEPARATE 169gl_CANONICALIZE_LGPL_SEPARATE 170gl_MALLOCA 171gl_RELOCATABLE_LIBRARY 172gl_FUNC_SETENV_SEPARATE 173gl_PREREQ_SAFE_READ 174gl_SIGNAL_H 175gl_SIGNAL_SIGPIPE 176dnl Define the C macro GNULIB_SIGPIPE to 1. 177gl_MODULE_INDICATOR([sigpipe]) 178dnl Define the substituted variable GNULIB_SIGNAL_H_SIGPIPE to 1. 179AC_REQUIRE([gl_SIGNAL_H_DEFAULTS]) 180GNULIB_SIGNAL_H_SIGPIPE=1 181dnl Define the substituted variable GNULIB_STDIO_H_SIGPIPE to 1. 182AC_REQUIRE([gl_STDIO_H_DEFAULTS]) 183AC_REQUIRE([gl_ASM_SYMBOL_PREFIX]) 184GNULIB_STDIO_H_SIGPIPE=1 185dnl Define the substituted variable GNULIB_UNISTD_H_SIGPIPE to 1. 186AC_REQUIRE([gl_UNISTD_H_DEFAULTS]) 187GNULIB_UNISTD_H_SIGPIPE=1 188gl_SIGNALBLOCKING 189if test $HAVE_POSIX_SIGNALBLOCKING = 0; then 190 AC_LIBOBJ([sigprocmask]) 191 gl_PREREQ_SIGPROCMASK 192fi 193gl_SIGNAL_MODULE_INDICATOR([sigprocmask]) 194gt_TYPE_SSIZE_T 195gl_FUNC_STAT 196if test $REPLACE_STAT = 1; then 197 AC_LIBOBJ([stat]) 198 gl_PREREQ_STAT 199fi 200gl_SYS_STAT_MODULE_INDICATOR([stat]) 201AM_STDBOOL_H 202gl_STDDEF_H 203gl_STDINT_H 204gl_STDIO_H 205gl_STDLIB_H 206gl_FUNC_STRERROR 207if test $REPLACE_STRERROR = 1; then 208 AC_LIBOBJ([strerror]) 209fi 210gl_MODULE_INDICATOR([strerror]) 211gl_STRING_MODULE_INDICATOR([strerror]) 212AC_REQUIRE([gl_HEADER_ERRNO_H]) 213AC_REQUIRE([gl_FUNC_STRERROR_0]) 214if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then 215 AC_LIBOBJ([strerror-override]) 216 gl_PREREQ_SYS_H_WINSOCK2 217fi 218gl_HEADER_STRING_H 219gl_HEADER_SYS_STAT_H 220AC_PROG_MKDIR_P 221gl_HEADER_TIME_H 222gl_UNISTD_H 223gl_LIBUNISTRING_LIBHEADER([0.9], [unitypes.h]) 224gl_LIBUNISTRING_LIBHEADER([0.9], [uniwidth.h]) 225gl_LIBUNISTRING_MODULE([0.9.4], [uniwidth/width]) 226gl_FUNC_GLIBC_UNLOCKED_IO 227 # End of code from modules 228 m4_ifval(gl_LIBSOURCES_LIST, [ 229 m4_syscmd([test ! -d ]m4_defn([gl_LIBSOURCES_DIR])[ || 230 for gl_file in ]gl_LIBSOURCES_LIST[ ; do 231 if test ! -r ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file ; then 232 echo "missing file ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file" >&2 233 exit 1 234 fi 235 done])dnl 236 m4_if(m4_sysval, [0], [], 237 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])]) 238 ]) 239 m4_popdef([gl_LIBSOURCES_DIR]) 240 m4_popdef([gl_LIBSOURCES_LIST]) 241 m4_popdef([AC_LIBSOURCES]) 242 m4_popdef([AC_REPLACE_FUNCS]) 243 m4_popdef([AC_LIBOBJ]) 244 AC_CONFIG_COMMANDS_PRE([ 245 gl_libobjs= 246 gl_ltlibobjs= 247 if test -n "$gl_LIBOBJS"; then 248 # Remove the extension. 249 sed_drop_objext='s/\.o$//;s/\.obj$//' 250 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do 251 gl_libobjs="$gl_libobjs $i.$ac_objext" 252 gl_ltlibobjs="$gl_ltlibobjs $i.lo" 253 done 254 fi 255 AC_SUBST([gl_LIBOBJS], [$gl_libobjs]) 256 AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs]) 257 ]) 258 gltests_libdeps= 259 gltests_ltlibdeps= 260 m4_pushdef([AC_LIBOBJ], m4_defn([gltests_LIBOBJ])) 261 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gltests_REPLACE_FUNCS])) 262 m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES])) 263 m4_pushdef([gltests_LIBSOURCES_LIST], []) 264 m4_pushdef([gltests_LIBSOURCES_DIR], []) 265 gl_COMMON 266 gl_source_base='tests' 267changequote(,)dnl 268 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 269changequote([, ])dnl 270 AC_SUBST([gltests_WITNESS]) 271 gl_module_indicator_condition=$gltests_WITNESS 272 m4_pushdef([gl_MODULE_INDICATOR_CONDITION], [$gl_module_indicator_condition]) 273 m4_popdef([gl_MODULE_INDICATOR_CONDITION]) 274 m4_ifval(gltests_LIBSOURCES_LIST, [ 275 m4_syscmd([test ! -d ]m4_defn([gltests_LIBSOURCES_DIR])[ || 276 for gl_file in ]gltests_LIBSOURCES_LIST[ ; do 277 if test ! -r ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file ; then 278 echo "missing file ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file" >&2 279 exit 1 280 fi 281 done])dnl 282 m4_if(m4_sysval, [0], [], 283 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])]) 284 ]) 285 m4_popdef([gltests_LIBSOURCES_DIR]) 286 m4_popdef([gltests_LIBSOURCES_LIST]) 287 m4_popdef([AC_LIBSOURCES]) 288 m4_popdef([AC_REPLACE_FUNCS]) 289 m4_popdef([AC_LIBOBJ]) 290 AC_CONFIG_COMMANDS_PRE([ 291 gltests_libobjs= 292 gltests_ltlibobjs= 293 if test -n "$gltests_LIBOBJS"; then 294 # Remove the extension. 295 sed_drop_objext='s/\.o$//;s/\.obj$//' 296 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do 297 gltests_libobjs="$gltests_libobjs $i.$ac_objext" 298 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo" 299 done 300 fi 301 AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs]) 302 AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs]) 303 ]) 304 LIBICRT_LIBDEPS="$gl_libdeps" 305 AC_SUBST([LIBICRT_LIBDEPS]) 306 LIBICRT_LTLIBDEPS="$gl_ltlibdeps" 307 AC_SUBST([LIBICRT_LTLIBDEPS]) 308]) 309 310# Like AC_LIBOBJ, except that the module name goes 311# into gl_LIBOBJS instead of into LIBOBJS. 312AC_DEFUN([gl_LIBOBJ], [ 313 AS_LITERAL_IF([$1], [gl_LIBSOURCES([$1.c])])dnl 314 gl_LIBOBJS="$gl_LIBOBJS $1.$ac_objext" 315]) 316 317# Like AC_REPLACE_FUNCS, except that the module name goes 318# into gl_LIBOBJS instead of into LIBOBJS. 319AC_DEFUN([gl_REPLACE_FUNCS], [ 320 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl 321 AC_CHECK_FUNCS([$1], , [gl_LIBOBJ($ac_func)]) 322]) 323 324# Like AC_LIBSOURCES, except the directory where the source file is 325# expected is derived from the gnulib-tool parameterization, 326# and alloca is special cased (for the alloca-opt module). 327# We could also entirely rely on EXTRA_lib..._SOURCES. 328AC_DEFUN([gl_LIBSOURCES], [ 329 m4_foreach([_gl_NAME], [$1], [ 330 m4_if(_gl_NAME, [alloca.c], [], [ 331 m4_define([gl_LIBSOURCES_DIR], [srclib]) 332 m4_append([gl_LIBSOURCES_LIST], _gl_NAME, [ ]) 333 ]) 334 ]) 335]) 336 337# Like AC_LIBOBJ, except that the module name goes 338# into gltests_LIBOBJS instead of into LIBOBJS. 339AC_DEFUN([gltests_LIBOBJ], [ 340 AS_LITERAL_IF([$1], [gltests_LIBSOURCES([$1.c])])dnl 341 gltests_LIBOBJS="$gltests_LIBOBJS $1.$ac_objext" 342]) 343 344# Like AC_REPLACE_FUNCS, except that the module name goes 345# into gltests_LIBOBJS instead of into LIBOBJS. 346AC_DEFUN([gltests_REPLACE_FUNCS], [ 347 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl 348 AC_CHECK_FUNCS([$1], , [gltests_LIBOBJ($ac_func)]) 349]) 350 351# Like AC_LIBSOURCES, except the directory where the source file is 352# expected is derived from the gnulib-tool parameterization, 353# and alloca is special cased (for the alloca-opt module). 354# We could also entirely rely on EXTRA_lib..._SOURCES. 355AC_DEFUN([gltests_LIBSOURCES], [ 356 m4_foreach([_gl_NAME], [$1], [ 357 m4_if(_gl_NAME, [alloca.c], [], [ 358 m4_define([gltests_LIBSOURCES_DIR], [tests]) 359 m4_append([gltests_LIBSOURCES_LIST], _gl_NAME, [ ]) 360 ]) 361 ]) 362]) 363 364# This macro records the list of files which have been installed by 365# gnulib-tool and may be removed by future gnulib-tool invocations. 366AC_DEFUN([gl_FILE_LIST], [ 367 build-aux/config.libpath 368 build-aux/config.rpath 369 build-aux/install-reloc 370 build-aux/reloc-ldflags 371 build-aux/snippet/_Noreturn.h 372 build-aux/snippet/arg-nonnull.h 373 build-aux/snippet/c++defs.h 374 build-aux/snippet/warn-on-use.h 375 doc/relocatable.texi 376 lib/alloca.in.h 377 lib/allocator.c 378 lib/allocator.h 379 lib/areadlink.c 380 lib/areadlink.h 381 lib/binary-io.h 382 lib/c-ctype.c 383 lib/c-ctype.h 384 lib/canonicalize-lgpl.c 385 lib/careadlinkat.c 386 lib/careadlinkat.h 387 lib/dosname.h 388 lib/errno.in.h 389 lib/error.c 390 lib/error.h 391 lib/fcntl.in.h 392 lib/gettext.h 393 lib/intprops.h 394 lib/localcharset.h 395 lib/lstat.c 396 lib/malloca.c 397 lib/malloca.h 398 lib/malloca.valgrind 399 lib/memmove.c 400 lib/pathmax.h 401 lib/progname.c 402 lib/progname.h 403 lib/progreloc.c 404 lib/read.c 405 lib/readlink.c 406 lib/relocatable.c 407 lib/relocatable.h 408 lib/relocwrapper.c 409 lib/safe-read.c 410 lib/safe-read.h 411 lib/setenv.c 412 lib/signal.in.h 413 lib/sigprocmask.c 414 lib/stat.c 415 lib/stdbool.in.h 416 lib/stddef.in.h 417 lib/stdint.in.h 418 lib/stdio-write.c 419 lib/stdio.in.h 420 lib/stdlib.in.h 421 lib/streq.h 422 lib/strerror-override.c 423 lib/strerror-override.h 424 lib/strerror.c 425 lib/string.in.h 426 lib/sys_stat.in.h 427 lib/time.in.h 428 lib/unistd.in.h 429 lib/unitypes.in.h 430 lib/uniwidth.in.h 431 lib/uniwidth/cjk.h 432 lib/uniwidth/width.c 433 lib/unlocked-io.h 434 lib/verify.h 435 lib/xalloc.h 436 lib/xmalloc.c 437 lib/xreadlink.c 438 lib/xreadlink.h 439 lib/xstrdup.c 440 m4/00gnulib.m4 441 m4/alloca.m4 442 m4/asm-underscore.m4 443 m4/canonicalize.m4 444 m4/codeset.m4 445 m4/double-slash-root.m4 446 m4/eealloc.m4 447 m4/environ.m4 448 m4/errno_h.m4 449 m4/error.m4 450 m4/extensions.m4 451 m4/fcntl-o.m4 452 m4/fcntl_h.m4 453 m4/gettext.m4 454 m4/glibc2.m4 455 m4/glibc21.m4 456 m4/gnulib-common.m4 457 m4/iconv.m4 458 m4/include_next.m4 459 m4/intdiv0.m4 460 m4/intl.m4 461 m4/intldir.m4 462 m4/intlmacosx.m4 463 m4/intmax.m4 464 m4/inttypes-pri.m4 465 m4/inttypes_h.m4 466 m4/largefile.m4 467 m4/lcmessage.m4 468 m4/lib-ld.m4 469 m4/lib-link.m4 470 m4/lib-prefix.m4 471 m4/libunistring-base.m4 472 m4/lock.m4 473 m4/longlong.m4 474 m4/lstat.m4 475 m4/malloca.m4 476 m4/mbstate_t.m4 477 m4/memmove.m4 478 m4/multiarch.m4 479 m4/nls.m4 480 m4/nocrash.m4 481 m4/pathmax.m4 482 m4/po.m4 483 m4/printf-posix.m4 484 m4/progtest.m4 485 m4/read.m4 486 m4/readlink.m4 487 m4/relocatable-lib.m4 488 m4/relocatable.m4 489 m4/safe-read.m4 490 m4/setenv.m4 491 m4/signal_h.m4 492 m4/signalblocking.m4 493 m4/sigpipe.m4 494 m4/size_max.m4 495 m4/ssize_t.m4 496 m4/stat.m4 497 m4/stdbool.m4 498 m4/stddef_h.m4 499 m4/stdint.m4 500 m4/stdint_h.m4 501 m4/stdio_h.m4 502 m4/stdlib_h.m4 503 m4/strerror.m4 504 m4/string_h.m4 505 m4/sys_socket_h.m4 506 m4/sys_stat_h.m4 507 m4/threadlib.m4 508 m4/time_h.m4 509 m4/uintmax_t.m4 510 m4/unistd_h.m4 511 m4/unlocked-io.m4 512 m4/visibility.m4 513 m4/warn-on-use.m4 514 m4/wchar_t.m4 515 m4/wint_t.m4 516 m4/xsize.m4 517]) 518