1# generated automatically by aclocal 1.14.1 -*- Autoconf -*- 2 3# Copyright (C) 1996-2013 Free Software Foundation, Inc. 4 5# This file is free software; the Free Software Foundation 6# gives unlimited permission to copy and/or distribute it, 7# with or without modifications, as long as this notice is preserved. 8 9# This program is distributed in the hope that it will be useful, 10# but WITHOUT ANY WARRANTY, to the extent permitted by law; without 11# even the implied warranty of MERCHANTABILITY or FITNESS FOR A 12# PARTICULAR PURPOSE. 13 14m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])]) 15m4_ifndef([AC_AUTOCONF_VERSION], 16 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl 17m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],, 18[m4_warning([this file was generated for autoconf 2.69. 19You have another version of autoconf. It may work, but is not guaranteed to. 20If you have problems, you may need to regenerate the build system entirely. 21To do so, use the procedure documented by the package, typically 'autoreconf'.])]) 22 23dnl 'extern inline' a la ISO C99. 24 25dnl Copyright 2012-2014 Free Software Foundation, Inc. 26dnl This file is free software; the Free Software Foundation 27dnl gives unlimited permission to copy and/or distribute it, 28dnl with or without modifications, as long as this notice is preserved. 29 30AC_DEFUN([gl_EXTERN_INLINE], 31[ 32 AH_VERBATIM([extern_inline], 33[/* Please see the Gnulib manual for how to use these macros. 34 35 Suppress extern inline with HP-UX cc, as it appears to be broken; see 36 <http://lists.gnu.org/archive/html/bug-texinfo/2013-02/msg00030.html>. 37 38 Suppress extern inline with Sun C in standards-conformance mode, as it 39 mishandles inline functions that call each other. E.g., for 'inline void f 40 (void) { } inline void g (void) { f (); }', c99 incorrectly complains 41 'reference to static identifier "f" in extern inline function'. 42 This bug was observed with Sun C 5.12 SunOS_i386 2011/11/16. 43 44 Suppress extern inline (with or without __attribute__ ((__gnu_inline__))) 45 on configurations that mistakenly use 'static inline' to implement 46 functions or macros in standard C headers like <ctype.h>. For example, 47 if isdigit is mistakenly implemented via a static inline function, 48 a program containing an extern inline function that calls isdigit 49 may not work since the C standard prohibits extern inline functions 50 from calling static functions. This bug is known to occur on: 51 52 OS X 10.8 and earlier; see: 53 http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00023.html 54 55 DragonFly; see 56 http://muscles.dragonflybsd.org/bulk/bleeding-edge-potential/latest-per-pkg/ah-tty-0.3.12.log 57 58 FreeBSD; see: 59 http://lists.gnu.org/archive/html/bug-gnulib/2014-07/msg00104.html 60 61 OS X 10.9 has a macro __header_inline indicating the bug is fixed for C and 62 for clang but remains for g++; see <http://trac.macports.org/ticket/41033>. 63 Assume DragonFly and FreeBSD will be similar. */ 64#if (((defined __APPLE__ && defined __MACH__) \ 65 || defined __DragonFly__ || defined __FreeBSD__) \ 66 && (defined __header_inline \ 67 ? (defined __cplusplus && defined __GNUC_STDC_INLINE__ \ 68 && ! defined __clang__) \ 69 : ((! defined _DONT_USE_CTYPE_INLINE_ \ 70 && (defined __GNUC__ || defined __cplusplus)) \ 71 || (defined _FORTIFY_SOURCE && 0 < _FORTIFY_SOURCE \ 72 && defined __GNUC__ && ! defined __cplusplus)))) 73# define _GL_EXTERN_INLINE_STDHEADER_BUG 74#endif 75#if ((__GNUC__ \ 76 ? defined __GNUC_STDC_INLINE__ && __GNUC_STDC_INLINE__ \ 77 : (199901L <= __STDC_VERSION__ \ 78 && !defined __HP_cc \ 79 && !(defined __SUNPRO_C && __STDC__))) \ 80 && !defined _GL_EXTERN_INLINE_STDHEADER_BUG) 81# define _GL_INLINE inline 82# define _GL_EXTERN_INLINE extern inline 83# define _GL_EXTERN_INLINE_IN_USE 84#elif (2 < __GNUC__ + (7 <= __GNUC_MINOR__) && !defined __STRICT_ANSI__ \ 85 && !defined _GL_EXTERN_INLINE_STDHEADER_BUG) 86# if defined __GNUC_GNU_INLINE__ && __GNUC_GNU_INLINE__ 87 /* __gnu_inline__ suppresses a GCC 4.2 diagnostic. */ 88# define _GL_INLINE extern inline __attribute__ ((__gnu_inline__)) 89# else 90# define _GL_INLINE extern inline 91# endif 92# define _GL_EXTERN_INLINE extern 93# define _GL_EXTERN_INLINE_IN_USE 94#else 95# define _GL_INLINE static _GL_UNUSED 96# define _GL_EXTERN_INLINE static _GL_UNUSED 97#endif 98 99#if 4 < __GNUC__ + (6 <= __GNUC_MINOR__) 100# if defined __GNUC_STDC_INLINE__ && __GNUC_STDC_INLINE__ 101# define _GL_INLINE_HEADER_CONST_PRAGMA 102# else 103# define _GL_INLINE_HEADER_CONST_PRAGMA \ 104 _Pragma ("GCC diagnostic ignored \"-Wsuggest-attribute=const\"") 105# endif 106 /* Suppress GCC's bogus "no previous prototype for 'FOO'" 107 and "no previous declaration for 'FOO'" diagnostics, 108 when FOO is an inline function in the header; see 109 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54113>. */ 110# define _GL_INLINE_HEADER_BEGIN \ 111 _Pragma ("GCC diagnostic push") \ 112 _Pragma ("GCC diagnostic ignored \"-Wmissing-prototypes\"") \ 113 _Pragma ("GCC diagnostic ignored \"-Wmissing-declarations\"") \ 114 _GL_INLINE_HEADER_CONST_PRAGMA 115# define _GL_INLINE_HEADER_END \ 116 _Pragma ("GCC diagnostic pop") 117#else 118# define _GL_INLINE_HEADER_BEGIN 119# define _GL_INLINE_HEADER_END 120#endif]) 121]) 122 123# Copyright (C) 2002-2013 Free Software Foundation, Inc. 124# 125# This file is free software; the Free Software Foundation 126# gives unlimited permission to copy and/or distribute it, 127# with or without modifications, as long as this notice is preserved. 128 129# AM_AUTOMAKE_VERSION(VERSION) 130# ---------------------------- 131# Automake X.Y traces this macro to ensure aclocal.m4 has been 132# generated from the m4 files accompanying Automake X.Y. 133# (This private macro should not be called outside this file.) 134AC_DEFUN([AM_AUTOMAKE_VERSION], 135[am__api_version='1.14' 136dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to 137dnl require some minimum version. Point them to the right macro. 138m4_if([$1], [1.14.1], [], 139 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl 140]) 141 142# _AM_AUTOCONF_VERSION(VERSION) 143# ----------------------------- 144# aclocal traces this macro to find the Autoconf version. 145# This is a private macro too. Using m4_define simplifies 146# the logic in aclocal, which can simply ignore this definition. 147m4_define([_AM_AUTOCONF_VERSION], []) 148 149# AM_SET_CURRENT_AUTOMAKE_VERSION 150# ------------------------------- 151# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. 152# This function is AC_REQUIREd by AM_INIT_AUTOMAKE. 153AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], 154[AM_AUTOMAKE_VERSION([1.14.1])dnl 155m4_ifndef([AC_AUTOCONF_VERSION], 156 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl 157_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) 158 159# Figure out how to run the assembler. -*- Autoconf -*- 160 161# Copyright (C) 2001-2013 Free Software Foundation, Inc. 162# 163# This file is free software; the Free Software Foundation 164# gives unlimited permission to copy and/or distribute it, 165# with or without modifications, as long as this notice is preserved. 166 167# AM_PROG_AS 168# ---------- 169AC_DEFUN([AM_PROG_AS], 170[# By default we simply use the C compiler to build assembly code. 171AC_REQUIRE([AC_PROG_CC]) 172test "${CCAS+set}" = set || CCAS=$CC 173test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS 174AC_ARG_VAR([CCAS], [assembler compiler command (defaults to CC)]) 175AC_ARG_VAR([CCASFLAGS], [assembler compiler flags (defaults to CFLAGS)]) 176_AM_IF_OPTION([no-dependencies],, [_AM_DEPENDENCIES([CCAS])])dnl 177]) 178 179# AM_AUX_DIR_EXPAND -*- Autoconf -*- 180 181# Copyright (C) 2001-2013 Free Software Foundation, Inc. 182# 183# This file is free software; the Free Software Foundation 184# gives unlimited permission to copy and/or distribute it, 185# with or without modifications, as long as this notice is preserved. 186 187# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets 188# $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to 189# '$srcdir', '$srcdir/..', or '$srcdir/../..'. 190# 191# Of course, Automake must honor this variable whenever it calls a 192# tool from the auxiliary directory. The problem is that $srcdir (and 193# therefore $ac_aux_dir as well) can be either absolute or relative, 194# depending on how configure is run. This is pretty annoying, since 195# it makes $ac_aux_dir quite unusable in subdirectories: in the top 196# source directory, any form will work fine, but in subdirectories a 197# relative path needs to be adjusted first. 198# 199# $ac_aux_dir/missing 200# fails when called from a subdirectory if $ac_aux_dir is relative 201# $top_srcdir/$ac_aux_dir/missing 202# fails if $ac_aux_dir is absolute, 203# fails when called from a subdirectory in a VPATH build with 204# a relative $ac_aux_dir 205# 206# The reason of the latter failure is that $top_srcdir and $ac_aux_dir 207# are both prefixed by $srcdir. In an in-source build this is usually 208# harmless because $srcdir is '.', but things will broke when you 209# start a VPATH build or use an absolute $srcdir. 210# 211# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, 212# iff we strip the leading $srcdir from $ac_aux_dir. That would be: 213# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` 214# and then we would define $MISSING as 215# MISSING="\${SHELL} $am_aux_dir/missing" 216# This will work as long as MISSING is not called from configure, because 217# unfortunately $(top_srcdir) has no meaning in configure. 218# However there are other variables, like CC, which are often used in 219# configure, and could therefore not use this "fixed" $ac_aux_dir. 220# 221# Another solution, used here, is to always expand $ac_aux_dir to an 222# absolute PATH. The drawback is that using absolute paths prevent a 223# configured tree to be moved without reconfiguration. 224 225AC_DEFUN([AM_AUX_DIR_EXPAND], 226[AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl 227# Expand $ac_aux_dir to an absolute path. 228am_aux_dir=`cd "$ac_aux_dir" && pwd` 229]) 230 231# AM_CONDITIONAL -*- Autoconf -*- 232 233# Copyright (C) 1997-2013 Free Software Foundation, Inc. 234# 235# This file is free software; the Free Software Foundation 236# gives unlimited permission to copy and/or distribute it, 237# with or without modifications, as long as this notice is preserved. 238 239# AM_CONDITIONAL(NAME, SHELL-CONDITION) 240# ------------------------------------- 241# Define a conditional. 242AC_DEFUN([AM_CONDITIONAL], 243[AC_PREREQ([2.52])dnl 244 m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], 245 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl 246AC_SUBST([$1_TRUE])dnl 247AC_SUBST([$1_FALSE])dnl 248_AM_SUBST_NOTMAKE([$1_TRUE])dnl 249_AM_SUBST_NOTMAKE([$1_FALSE])dnl 250m4_define([_AM_COND_VALUE_$1], [$2])dnl 251if $2; then 252 $1_TRUE= 253 $1_FALSE='#' 254else 255 $1_TRUE='#' 256 $1_FALSE= 257fi 258AC_CONFIG_COMMANDS_PRE( 259[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then 260 AC_MSG_ERROR([[conditional "$1" was never defined. 261Usually this means the macro was only invoked conditionally.]]) 262fi])]) 263 264# Copyright (C) 1999-2013 Free Software Foundation, Inc. 265# 266# This file is free software; the Free Software Foundation 267# gives unlimited permission to copy and/or distribute it, 268# with or without modifications, as long as this notice is preserved. 269 270 271# There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be 272# written in clear, in which case automake, when reading aclocal.m4, 273# will think it sees a *use*, and therefore will trigger all it's 274# C support machinery. Also note that it means that autoscan, seeing 275# CC etc. in the Makefile, will ask for an AC_PROG_CC use... 276 277 278# _AM_DEPENDENCIES(NAME) 279# ---------------------- 280# See how the compiler implements dependency checking. 281# NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC". 282# We try a few techniques and use that to set a single cache variable. 283# 284# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was 285# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular 286# dependency, and given that the user is not expected to run this macro, 287# just rely on AC_PROG_CC. 288AC_DEFUN([_AM_DEPENDENCIES], 289[AC_REQUIRE([AM_SET_DEPDIR])dnl 290AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl 291AC_REQUIRE([AM_MAKE_INCLUDE])dnl 292AC_REQUIRE([AM_DEP_TRACK])dnl 293 294m4_if([$1], [CC], [depcc="$CC" am_compiler_list=], 295 [$1], [CXX], [depcc="$CXX" am_compiler_list=], 296 [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'], 297 [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'], 298 [$1], [UPC], [depcc="$UPC" am_compiler_list=], 299 [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'], 300 [depcc="$$1" am_compiler_list=]) 301 302AC_CACHE_CHECK([dependency style of $depcc], 303 [am_cv_$1_dependencies_compiler_type], 304[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 305 # We make a subdir and do the tests there. Otherwise we can end up 306 # making bogus files that we don't know about and never remove. For 307 # instance it was reported that on HP-UX the gcc test will end up 308 # making a dummy file named 'D' -- because '-MD' means "put the output 309 # in D". 310 rm -rf conftest.dir 311 mkdir conftest.dir 312 # Copy depcomp to subdir because otherwise we won't find it if we're 313 # using a relative directory. 314 cp "$am_depcomp" conftest.dir 315 cd conftest.dir 316 # We will build objects and dependencies in a subdirectory because 317 # it helps to detect inapplicable dependency modes. For instance 318 # both Tru64's cc and ICC support -MD to output dependencies as a 319 # side effect of compilation, but ICC will put the dependencies in 320 # the current directory while Tru64 will put them in the object 321 # directory. 322 mkdir sub 323 324 am_cv_$1_dependencies_compiler_type=none 325 if test "$am_compiler_list" = ""; then 326 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` 327 fi 328 am__universal=false 329 m4_case([$1], [CC], 330 [case " $depcc " in #( 331 *\ -arch\ *\ -arch\ *) am__universal=true ;; 332 esac], 333 [CXX], 334 [case " $depcc " in #( 335 *\ -arch\ *\ -arch\ *) am__universal=true ;; 336 esac]) 337 338 for depmode in $am_compiler_list; do 339 # Setup a source with many dependencies, because some compilers 340 # like to wrap large dependency lists on column 80 (with \), and 341 # we should not choose a depcomp mode which is confused by this. 342 # 343 # We need to recreate these files for each test, as the compiler may 344 # overwrite some of them when testing with obscure command lines. 345 # This happens at least with the AIX C compiler. 346 : > sub/conftest.c 347 for i in 1 2 3 4 5 6; do 348 echo '#include "conftst'$i'.h"' >> sub/conftest.c 349 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 350 # Solaris 10 /bin/sh. 351 echo '/* dummy */' > sub/conftst$i.h 352 done 353 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 354 355 # We check with '-c' and '-o' for the sake of the "dashmstdout" 356 # mode. It turns out that the SunPro C++ compiler does not properly 357 # handle '-M -o', and we need to detect this. Also, some Intel 358 # versions had trouble with output in subdirs. 359 am__obj=sub/conftest.${OBJEXT-o} 360 am__minus_obj="-o $am__obj" 361 case $depmode in 362 gcc) 363 # This depmode causes a compiler race in universal mode. 364 test "$am__universal" = false || continue 365 ;; 366 nosideeffect) 367 # After this tag, mechanisms are not by side-effect, so they'll 368 # only be used when explicitly requested. 369 if test "x$enable_dependency_tracking" = xyes; then 370 continue 371 else 372 break 373 fi 374 ;; 375 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 376 # This compiler won't grok '-c -o', but also, the minuso test has 377 # not run yet. These depmodes are late enough in the game, and 378 # so weak that their functioning should not be impacted. 379 am__obj=conftest.${OBJEXT-o} 380 am__minus_obj= 381 ;; 382 none) break ;; 383 esac 384 if depmode=$depmode \ 385 source=sub/conftest.c object=$am__obj \ 386 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 387 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 388 >/dev/null 2>conftest.err && 389 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 390 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 391 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 392 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 393 # icc doesn't choke on unknown options, it will just issue warnings 394 # or remarks (even with -Werror). So we grep stderr for any message 395 # that says an option was ignored or not supported. 396 # When given -MP, icc 7.0 and 7.1 complain thusly: 397 # icc: Command line warning: ignoring option '-M'; no argument required 398 # The diagnosis changed in icc 8.0: 399 # icc: Command line remark: option '-MP' not supported 400 if (grep 'ignoring option' conftest.err || 401 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 402 am_cv_$1_dependencies_compiler_type=$depmode 403 break 404 fi 405 fi 406 done 407 408 cd .. 409 rm -rf conftest.dir 410else 411 am_cv_$1_dependencies_compiler_type=none 412fi 413]) 414AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) 415AM_CONDITIONAL([am__fastdep$1], [ 416 test "x$enable_dependency_tracking" != xno \ 417 && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) 418]) 419 420 421# AM_SET_DEPDIR 422# ------------- 423# Choose a directory name for dependency files. 424# This macro is AC_REQUIREd in _AM_DEPENDENCIES. 425AC_DEFUN([AM_SET_DEPDIR], 426[AC_REQUIRE([AM_SET_LEADING_DOT])dnl 427AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl 428]) 429 430 431# AM_DEP_TRACK 432# ------------ 433AC_DEFUN([AM_DEP_TRACK], 434[AC_ARG_ENABLE([dependency-tracking], [dnl 435AS_HELP_STRING( 436 [--enable-dependency-tracking], 437 [do not reject slow dependency extractors]) 438AS_HELP_STRING( 439 [--disable-dependency-tracking], 440 [speeds up one-time build])]) 441if test "x$enable_dependency_tracking" != xno; then 442 am_depcomp="$ac_aux_dir/depcomp" 443 AMDEPBACKSLASH='\' 444 am__nodep='_no' 445fi 446AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) 447AC_SUBST([AMDEPBACKSLASH])dnl 448_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl 449AC_SUBST([am__nodep])dnl 450_AM_SUBST_NOTMAKE([am__nodep])dnl 451]) 452 453# Generate code to set up dependency tracking. -*- Autoconf -*- 454 455# Copyright (C) 1999-2013 Free Software Foundation, Inc. 456# 457# This file is free software; the Free Software Foundation 458# gives unlimited permission to copy and/or distribute it, 459# with or without modifications, as long as this notice is preserved. 460 461 462# _AM_OUTPUT_DEPENDENCY_COMMANDS 463# ------------------------------ 464AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], 465[{ 466 # Older Autoconf quotes --file arguments for eval, but not when files 467 # are listed without --file. Let's play safe and only enable the eval 468 # if we detect the quoting. 469 case $CONFIG_FILES in 470 *\'*) eval set x "$CONFIG_FILES" ;; 471 *) set x $CONFIG_FILES ;; 472 esac 473 shift 474 for mf 475 do 476 # Strip MF so we end up with the name of the file. 477 mf=`echo "$mf" | sed -e 's/:.*$//'` 478 # Check whether this is an Automake generated Makefile or not. 479 # We used to match only the files named 'Makefile.in', but 480 # some people rename them; so instead we look at the file content. 481 # Grep'ing the first line is not enough: some people post-process 482 # each Makefile.in and add a new line on top of each file to say so. 483 # Grep'ing the whole file is not good either: AIX grep has a line 484 # limit of 2048, but all sed's we know have understand at least 4000. 485 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 486 dirpart=`AS_DIRNAME("$mf")` 487 else 488 continue 489 fi 490 # Extract the definition of DEPDIR, am__include, and am__quote 491 # from the Makefile without running 'make'. 492 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 493 test -z "$DEPDIR" && continue 494 am__include=`sed -n 's/^am__include = //p' < "$mf"` 495 test -z "$am__include" && continue 496 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 497 # Find all dependency output files, they are included files with 498 # $(DEPDIR) in their names. We invoke sed twice because it is the 499 # simplest approach to changing $(DEPDIR) to its actual value in the 500 # expansion. 501 for file in `sed -n " 502 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 503 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 504 # Make sure the directory exists. 505 test -f "$dirpart/$file" && continue 506 fdir=`AS_DIRNAME(["$file"])` 507 AS_MKDIR_P([$dirpart/$fdir]) 508 # echo "creating $dirpart/$file" 509 echo '# dummy' > "$dirpart/$file" 510 done 511 done 512} 513])# _AM_OUTPUT_DEPENDENCY_COMMANDS 514 515 516# AM_OUTPUT_DEPENDENCY_COMMANDS 517# ----------------------------- 518# This macro should only be invoked once -- use via AC_REQUIRE. 519# 520# This code is only required when automatic dependency tracking 521# is enabled. FIXME. This creates each '.P' file that we will 522# need in order to bootstrap the dependency handling code. 523AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], 524[AC_CONFIG_COMMANDS([depfiles], 525 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], 526 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) 527]) 528 529# Do all the work for Automake. -*- Autoconf -*- 530 531# Copyright (C) 1996-2013 Free Software Foundation, Inc. 532# 533# This file is free software; the Free Software Foundation 534# gives unlimited permission to copy and/or distribute it, 535# with or without modifications, as long as this notice is preserved. 536 537# This macro actually does too much. Some checks are only needed if 538# your package does certain things. But this isn't really a big deal. 539 540dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O. 541m4_define([AC_PROG_CC], 542m4_defn([AC_PROG_CC]) 543[_AM_PROG_CC_C_O 544]) 545 546# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) 547# AM_INIT_AUTOMAKE([OPTIONS]) 548# ----------------------------------------------- 549# The call with PACKAGE and VERSION arguments is the old style 550# call (pre autoconf-2.50), which is being phased out. PACKAGE 551# and VERSION should now be passed to AC_INIT and removed from 552# the call to AM_INIT_AUTOMAKE. 553# We support both call styles for the transition. After 554# the next Automake release, Autoconf can make the AC_INIT 555# arguments mandatory, and then we can depend on a new Autoconf 556# release and drop the old call support. 557AC_DEFUN([AM_INIT_AUTOMAKE], 558[AC_PREREQ([2.65])dnl 559dnl Autoconf wants to disallow AM_ names. We explicitly allow 560dnl the ones we care about. 561m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl 562AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl 563AC_REQUIRE([AC_PROG_INSTALL])dnl 564if test "`cd $srcdir && pwd`" != "`pwd`"; then 565 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 566 # is not polluted with repeated "-I." 567 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl 568 # test to see if srcdir already configured 569 if test -f $srcdir/config.status; then 570 AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) 571 fi 572fi 573 574# test whether we have cygpath 575if test -z "$CYGPATH_W"; then 576 if (cygpath --version) >/dev/null 2>/dev/null; then 577 CYGPATH_W='cygpath -w' 578 else 579 CYGPATH_W=echo 580 fi 581fi 582AC_SUBST([CYGPATH_W]) 583 584# Define the identity of the package. 585dnl Distinguish between old-style and new-style calls. 586m4_ifval([$2], 587[AC_DIAGNOSE([obsolete], 588 [$0: two- and three-arguments forms are deprecated.]) 589m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl 590 AC_SUBST([PACKAGE], [$1])dnl 591 AC_SUBST([VERSION], [$2])], 592[_AM_SET_OPTIONS([$1])dnl 593dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. 594m4_if( 595 m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]), 596 [ok:ok],, 597 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl 598 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl 599 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl 600 601_AM_IF_OPTION([no-define],, 602[AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package]) 603 AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl 604 605# Some tools Automake needs. 606AC_REQUIRE([AM_SANITY_CHECK])dnl 607AC_REQUIRE([AC_ARG_PROGRAM])dnl 608AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}]) 609AM_MISSING_PROG([AUTOCONF], [autoconf]) 610AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}]) 611AM_MISSING_PROG([AUTOHEADER], [autoheader]) 612AM_MISSING_PROG([MAKEINFO], [makeinfo]) 613AC_REQUIRE([AM_PROG_INSTALL_SH])dnl 614AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl 615AC_REQUIRE([AC_PROG_MKDIR_P])dnl 616# For better backward compatibility. To be removed once Automake 1.9.x 617# dies out for good. For more background, see: 618# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 619# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 620AC_SUBST([mkdir_p], ['$(MKDIR_P)']) 621# We need awk for the "check" target. The system "awk" is bad on 622# some platforms. 623AC_REQUIRE([AC_PROG_AWK])dnl 624AC_REQUIRE([AC_PROG_MAKE_SET])dnl 625AC_REQUIRE([AM_SET_LEADING_DOT])dnl 626_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], 627 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], 628 [_AM_PROG_TAR([v7])])]) 629_AM_IF_OPTION([no-dependencies],, 630[AC_PROVIDE_IFELSE([AC_PROG_CC], 631 [_AM_DEPENDENCIES([CC])], 632 [m4_define([AC_PROG_CC], 633 m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl 634AC_PROVIDE_IFELSE([AC_PROG_CXX], 635 [_AM_DEPENDENCIES([CXX])], 636 [m4_define([AC_PROG_CXX], 637 m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl 638AC_PROVIDE_IFELSE([AC_PROG_OBJC], 639 [_AM_DEPENDENCIES([OBJC])], 640 [m4_define([AC_PROG_OBJC], 641 m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl 642AC_PROVIDE_IFELSE([AC_PROG_OBJCXX], 643 [_AM_DEPENDENCIES([OBJCXX])], 644 [m4_define([AC_PROG_OBJCXX], 645 m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl 646]) 647AC_REQUIRE([AM_SILENT_RULES])dnl 648dnl The testsuite driver may need to know about EXEEXT, so add the 649dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This 650dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below. 651AC_CONFIG_COMMANDS_PRE(dnl 652[m4_provide_if([_AM_COMPILER_EXEEXT], 653 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl 654 655# POSIX will say in a future version that running "rm -f" with no argument 656# is OK; and we want to be able to make that assumption in our Makefile 657# recipes. So use an aggressive probe to check that the usage we want is 658# actually supported "in the wild" to an acceptable degree. 659# See automake bug#10828. 660# To make any issue more visible, cause the running configure to be aborted 661# by default if the 'rm' program in use doesn't match our expectations; the 662# user can still override this though. 663if rm -f && rm -fr && rm -rf; then : OK; else 664 cat >&2 <<'END' 665Oops! 666 667Your 'rm' program seems unable to run without file operands specified 668on the command line, even when the '-f' option is present. This is contrary 669to the behaviour of most rm programs out there, and not conforming with 670the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 671 672Please tell bug-automake@gnu.org about your system, including the value 673of your $PATH and any error possibly output before this message. This 674can help us improve future automake versions. 675 676END 677 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 678 echo 'Configuration will proceed anyway, since you have set the' >&2 679 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 680 echo >&2 681 else 682 cat >&2 <<'END' 683Aborting the configuration process, to ensure you take notice of the issue. 684 685You can download and install GNU coreutils to get an 'rm' implementation 686that behaves properly: <http://www.gnu.org/software/coreutils/>. 687 688If you want to complete the configuration process using your problematic 689'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 690to "yes", and re-run configure. 691 692END 693 AC_MSG_ERROR([Your 'rm' program is bad, sorry.]) 694 fi 695fi 696]) 697 698dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not 699dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further 700dnl mangled by Autoconf and run in a shell conditional statement. 701m4_define([_AC_COMPILER_EXEEXT], 702m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) 703 704# When config.status generates a header, we must update the stamp-h file. 705# This file resides in the same directory as the config header 706# that is generated. The stamp files are numbered to have different names. 707 708# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the 709# loop where config.status creates the headers, so we can generate 710# our stamp files there. 711AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], 712[# Compute $1's index in $config_headers. 713_am_arg=$1 714_am_stamp_count=1 715for _am_header in $config_headers :; do 716 case $_am_header in 717 $_am_arg | $_am_arg:* ) 718 break ;; 719 * ) 720 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 721 esac 722done 723echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) 724 725# Copyright (C) 2001-2013 Free Software Foundation, Inc. 726# 727# This file is free software; the Free Software Foundation 728# gives unlimited permission to copy and/or distribute it, 729# with or without modifications, as long as this notice is preserved. 730 731# AM_PROG_INSTALL_SH 732# ------------------ 733# Define $install_sh. 734AC_DEFUN([AM_PROG_INSTALL_SH], 735[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 736if test x"${install_sh}" != xset; then 737 case $am_aux_dir in 738 *\ * | *\ *) 739 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 740 *) 741 install_sh="\${SHELL} $am_aux_dir/install-sh" 742 esac 743fi 744AC_SUBST([install_sh])]) 745 746# Copyright (C) 2003-2013 Free Software Foundation, Inc. 747# 748# This file is free software; the Free Software Foundation 749# gives unlimited permission to copy and/or distribute it, 750# with or without modifications, as long as this notice is preserved. 751 752# Check whether the underlying file-system supports filenames 753# with a leading dot. For instance MS-DOS doesn't. 754AC_DEFUN([AM_SET_LEADING_DOT], 755[rm -rf .tst 2>/dev/null 756mkdir .tst 2>/dev/null 757if test -d .tst; then 758 am__leading_dot=. 759else 760 am__leading_dot=_ 761fi 762rmdir .tst 2>/dev/null 763AC_SUBST([am__leading_dot])]) 764 765# Add --enable-maintainer-mode option to configure. -*- Autoconf -*- 766# From Jim Meyering 767 768# Copyright (C) 1996-2013 Free Software Foundation, Inc. 769# 770# This file is free software; the Free Software Foundation 771# gives unlimited permission to copy and/or distribute it, 772# with or without modifications, as long as this notice is preserved. 773 774# AM_MAINTAINER_MODE([DEFAULT-MODE]) 775# ---------------------------------- 776# Control maintainer-specific portions of Makefiles. 777# Default is to disable them, unless 'enable' is passed literally. 778# For symmetry, 'disable' may be passed as well. Anyway, the user 779# can override the default with the --enable/--disable switch. 780AC_DEFUN([AM_MAINTAINER_MODE], 781[m4_case(m4_default([$1], [disable]), 782 [enable], [m4_define([am_maintainer_other], [disable])], 783 [disable], [m4_define([am_maintainer_other], [enable])], 784 [m4_define([am_maintainer_other], [enable]) 785 m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])]) 786AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) 787 dnl maintainer-mode's default is 'disable' unless 'enable' is passed 788 AC_ARG_ENABLE([maintainer-mode], 789 [AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode], 790 am_maintainer_other[ make rules and dependencies not useful 791 (and sometimes confusing) to the casual installer])], 792 [USE_MAINTAINER_MODE=$enableval], 793 [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes])) 794 AC_MSG_RESULT([$USE_MAINTAINER_MODE]) 795 AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes]) 796 MAINT=$MAINTAINER_MODE_TRUE 797 AC_SUBST([MAINT])dnl 798] 799) 800 801# Check to see how 'make' treats includes. -*- Autoconf -*- 802 803# Copyright (C) 2001-2013 Free Software Foundation, Inc. 804# 805# This file is free software; the Free Software Foundation 806# gives unlimited permission to copy and/or distribute it, 807# with or without modifications, as long as this notice is preserved. 808 809# AM_MAKE_INCLUDE() 810# ----------------- 811# Check to see how make treats includes. 812AC_DEFUN([AM_MAKE_INCLUDE], 813[am_make=${MAKE-make} 814cat > confinc << 'END' 815am__doit: 816 @echo this is the am__doit target 817.PHONY: am__doit 818END 819# If we don't find an include directive, just comment out the code. 820AC_MSG_CHECKING([for style of include used by $am_make]) 821am__include="#" 822am__quote= 823_am_result=none 824# First try GNU make style include. 825echo "include confinc" > confmf 826# Ignore all kinds of additional output from 'make'. 827case `$am_make -s -f confmf 2> /dev/null` in #( 828*the\ am__doit\ target*) 829 am__include=include 830 am__quote= 831 _am_result=GNU 832 ;; 833esac 834# Now try BSD make style include. 835if test "$am__include" = "#"; then 836 echo '.include "confinc"' > confmf 837 case `$am_make -s -f confmf 2> /dev/null` in #( 838 *the\ am__doit\ target*) 839 am__include=.include 840 am__quote="\"" 841 _am_result=BSD 842 ;; 843 esac 844fi 845AC_SUBST([am__include]) 846AC_SUBST([am__quote]) 847AC_MSG_RESULT([$_am_result]) 848rm -f confinc confmf 849]) 850 851# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- 852 853# Copyright (C) 1997-2013 Free Software Foundation, Inc. 854# 855# This file is free software; the Free Software Foundation 856# gives unlimited permission to copy and/or distribute it, 857# with or without modifications, as long as this notice is preserved. 858 859# AM_MISSING_PROG(NAME, PROGRAM) 860# ------------------------------ 861AC_DEFUN([AM_MISSING_PROG], 862[AC_REQUIRE([AM_MISSING_HAS_RUN]) 863$1=${$1-"${am_missing_run}$2"} 864AC_SUBST($1)]) 865 866# AM_MISSING_HAS_RUN 867# ------------------ 868# Define MISSING if not defined so far and test if it is modern enough. 869# If it is, set am_missing_run to use it, otherwise, to nothing. 870AC_DEFUN([AM_MISSING_HAS_RUN], 871[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 872AC_REQUIRE_AUX_FILE([missing])dnl 873if test x"${MISSING+set}" != xset; then 874 case $am_aux_dir in 875 *\ * | *\ *) 876 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 877 *) 878 MISSING="\${SHELL} $am_aux_dir/missing" ;; 879 esac 880fi 881# Use eval to expand $SHELL 882if eval "$MISSING --is-lightweight"; then 883 am_missing_run="$MISSING " 884else 885 am_missing_run= 886 AC_MSG_WARN(['missing' script is too old or missing]) 887fi 888]) 889 890# Helper functions for option handling. -*- Autoconf -*- 891 892# Copyright (C) 2001-2013 Free Software Foundation, Inc. 893# 894# This file is free software; the Free Software Foundation 895# gives unlimited permission to copy and/or distribute it, 896# with or without modifications, as long as this notice is preserved. 897 898# _AM_MANGLE_OPTION(NAME) 899# ----------------------- 900AC_DEFUN([_AM_MANGLE_OPTION], 901[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) 902 903# _AM_SET_OPTION(NAME) 904# -------------------- 905# Set option NAME. Presently that only means defining a flag for this option. 906AC_DEFUN([_AM_SET_OPTION], 907[m4_define(_AM_MANGLE_OPTION([$1]), [1])]) 908 909# _AM_SET_OPTIONS(OPTIONS) 910# ------------------------ 911# OPTIONS is a space-separated list of Automake options. 912AC_DEFUN([_AM_SET_OPTIONS], 913[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) 914 915# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) 916# ------------------------------------------- 917# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. 918AC_DEFUN([_AM_IF_OPTION], 919[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) 920 921# Copyright (C) 1999-2013 Free Software Foundation, Inc. 922# 923# This file is free software; the Free Software Foundation 924# gives unlimited permission to copy and/or distribute it, 925# with or without modifications, as long as this notice is preserved. 926 927# _AM_PROG_CC_C_O 928# --------------- 929# Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC 930# to automatically call this. 931AC_DEFUN([_AM_PROG_CC_C_O], 932[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 933AC_REQUIRE_AUX_FILE([compile])dnl 934AC_LANG_PUSH([C])dnl 935AC_CACHE_CHECK( 936 [whether $CC understands -c and -o together], 937 [am_cv_prog_cc_c_o], 938 [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])]) 939 # Make sure it works both with $CC and with simple cc. 940 # Following AC_PROG_CC_C_O, we do the test twice because some 941 # compilers refuse to overwrite an existing .o file with -o, 942 # though they will create one. 943 am_cv_prog_cc_c_o=yes 944 for am_i in 1 2; do 945 if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \ 946 && test -f conftest2.$ac_objext; then 947 : OK 948 else 949 am_cv_prog_cc_c_o=no 950 break 951 fi 952 done 953 rm -f core conftest* 954 unset am_i]) 955if test "$am_cv_prog_cc_c_o" != yes; then 956 # Losing compiler, so override with the script. 957 # FIXME: It is wrong to rewrite CC. 958 # But if we don't then we get into trouble of one sort or another. 959 # A longer-term fix would be to have automake use am__CC in this case, 960 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 961 CC="$am_aux_dir/compile $CC" 962fi 963AC_LANG_POP([C])]) 964 965# For backward compatibility. 966AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])]) 967 968# Copyright (C) 2001-2013 Free Software Foundation, Inc. 969# 970# This file is free software; the Free Software Foundation 971# gives unlimited permission to copy and/or distribute it, 972# with or without modifications, as long as this notice is preserved. 973 974# AM_RUN_LOG(COMMAND) 975# ------------------- 976# Run COMMAND, save the exit status in ac_status, and log it. 977# (This has been adapted from Autoconf's _AC_RUN_LOG macro.) 978AC_DEFUN([AM_RUN_LOG], 979[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD 980 ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD 981 ac_status=$? 982 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 983 (exit $ac_status); }]) 984 985# Check to make sure that the build environment is sane. -*- Autoconf -*- 986 987# Copyright (C) 1996-2013 Free Software Foundation, Inc. 988# 989# This file is free software; the Free Software Foundation 990# gives unlimited permission to copy and/or distribute it, 991# with or without modifications, as long as this notice is preserved. 992 993# AM_SANITY_CHECK 994# --------------- 995AC_DEFUN([AM_SANITY_CHECK], 996[AC_MSG_CHECKING([whether build environment is sane]) 997# Reject unsafe characters in $srcdir or the absolute working directory 998# name. Accept space and tab only in the latter. 999am_lf=' 1000' 1001case `pwd` in 1002 *[[\\\"\#\$\&\'\`$am_lf]]*) 1003 AC_MSG_ERROR([unsafe absolute working directory name]);; 1004esac 1005case $srcdir in 1006 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) 1007 AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);; 1008esac 1009 1010# Do 'set' in a subshell so we don't clobber the current shell's 1011# arguments. Must try -L first in case configure is actually a 1012# symlink; some systems play weird games with the mod time of symlinks 1013# (eg FreeBSD returns the mod time of the symlink's containing 1014# directory). 1015if ( 1016 am_has_slept=no 1017 for am_try in 1 2; do 1018 echo "timestamp, slept: $am_has_slept" > conftest.file 1019 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 1020 if test "$[*]" = "X"; then 1021 # -L didn't work. 1022 set X `ls -t "$srcdir/configure" conftest.file` 1023 fi 1024 if test "$[*]" != "X $srcdir/configure conftest.file" \ 1025 && test "$[*]" != "X conftest.file $srcdir/configure"; then 1026 1027 # If neither matched, then we have a broken ls. This can happen 1028 # if, for instance, CONFIG_SHELL is bash and it inherits a 1029 # broken ls alias from the environment. This has actually 1030 # happened. Such a system could not be considered "sane". 1031 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken 1032 alias in your environment]) 1033 fi 1034 if test "$[2]" = conftest.file || test $am_try -eq 2; then 1035 break 1036 fi 1037 # Just in case. 1038 sleep 1 1039 am_has_slept=yes 1040 done 1041 test "$[2]" = conftest.file 1042 ) 1043then 1044 # Ok. 1045 : 1046else 1047 AC_MSG_ERROR([newly created file is older than distributed files! 1048Check your system clock]) 1049fi 1050AC_MSG_RESULT([yes]) 1051# If we didn't sleep, we still need to ensure time stamps of config.status and 1052# generated files are strictly newer. 1053am_sleep_pid= 1054if grep 'slept: no' conftest.file >/dev/null 2>&1; then 1055 ( sleep 1 ) & 1056 am_sleep_pid=$! 1057fi 1058AC_CONFIG_COMMANDS_PRE( 1059 [AC_MSG_CHECKING([that generated files are newer than configure]) 1060 if test -n "$am_sleep_pid"; then 1061 # Hide warnings about reused PIDs. 1062 wait $am_sleep_pid 2>/dev/null 1063 fi 1064 AC_MSG_RESULT([done])]) 1065rm -f conftest.file 1066]) 1067 1068# Copyright (C) 2009-2013 Free Software Foundation, Inc. 1069# 1070# This file is free software; the Free Software Foundation 1071# gives unlimited permission to copy and/or distribute it, 1072# with or without modifications, as long as this notice is preserved. 1073 1074# AM_SILENT_RULES([DEFAULT]) 1075# -------------------------- 1076# Enable less verbose build rules; with the default set to DEFAULT 1077# ("yes" being less verbose, "no" or empty being verbose). 1078AC_DEFUN([AM_SILENT_RULES], 1079[AC_ARG_ENABLE([silent-rules], [dnl 1080AS_HELP_STRING( 1081 [--enable-silent-rules], 1082 [less verbose build output (undo: "make V=1")]) 1083AS_HELP_STRING( 1084 [--disable-silent-rules], 1085 [verbose build output (undo: "make V=0")])dnl 1086]) 1087case $enable_silent_rules in @%:@ ((( 1088 yes) AM_DEFAULT_VERBOSITY=0;; 1089 no) AM_DEFAULT_VERBOSITY=1;; 1090 *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);; 1091esac 1092dnl 1093dnl A few 'make' implementations (e.g., NonStop OS and NextStep) 1094dnl do not support nested variable expansions. 1095dnl See automake bug#9928 and bug#10237. 1096am_make=${MAKE-make} 1097AC_CACHE_CHECK([whether $am_make supports nested variables], 1098 [am_cv_make_support_nested_variables], 1099 [if AS_ECHO([['TRUE=$(BAR$(V)) 1100BAR0=false 1101BAR1=true 1102V=1 1103am__doit: 1104 @$(TRUE) 1105.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then 1106 am_cv_make_support_nested_variables=yes 1107else 1108 am_cv_make_support_nested_variables=no 1109fi]) 1110if test $am_cv_make_support_nested_variables = yes; then 1111 dnl Using '$V' instead of '$(V)' breaks IRIX make. 1112 AM_V='$(V)' 1113 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 1114else 1115 AM_V=$AM_DEFAULT_VERBOSITY 1116 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 1117fi 1118AC_SUBST([AM_V])dnl 1119AM_SUBST_NOTMAKE([AM_V])dnl 1120AC_SUBST([AM_DEFAULT_V])dnl 1121AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl 1122AC_SUBST([AM_DEFAULT_VERBOSITY])dnl 1123AM_BACKSLASH='\' 1124AC_SUBST([AM_BACKSLASH])dnl 1125_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl 1126]) 1127 1128# Copyright (C) 2001-2013 Free Software Foundation, Inc. 1129# 1130# This file is free software; the Free Software Foundation 1131# gives unlimited permission to copy and/or distribute it, 1132# with or without modifications, as long as this notice is preserved. 1133 1134# AM_PROG_INSTALL_STRIP 1135# --------------------- 1136# One issue with vendor 'install' (even GNU) is that you can't 1137# specify the program used to strip binaries. This is especially 1138# annoying in cross-compiling environments, where the build's strip 1139# is unlikely to handle the host's binaries. 1140# Fortunately install-sh will honor a STRIPPROG variable, so we 1141# always use install-sh in "make install-strip", and initialize 1142# STRIPPROG with the value of the STRIP variable (set by the user). 1143AC_DEFUN([AM_PROG_INSTALL_STRIP], 1144[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl 1145# Installed binaries are usually stripped using 'strip' when the user 1146# run "make install-strip". However 'strip' might not be the right 1147# tool to use in cross-compilation environments, therefore Automake 1148# will honor the 'STRIP' environment variable to overrule this program. 1149dnl Don't test for $cross_compiling = yes, because it might be 'maybe'. 1150if test "$cross_compiling" != no; then 1151 AC_CHECK_TOOL([STRIP], [strip], :) 1152fi 1153INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 1154AC_SUBST([INSTALL_STRIP_PROGRAM])]) 1155 1156# Copyright (C) 2006-2013 Free Software Foundation, Inc. 1157# 1158# This file is free software; the Free Software Foundation 1159# gives unlimited permission to copy and/or distribute it, 1160# with or without modifications, as long as this notice is preserved. 1161 1162# _AM_SUBST_NOTMAKE(VARIABLE) 1163# --------------------------- 1164# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. 1165# This macro is traced by Automake. 1166AC_DEFUN([_AM_SUBST_NOTMAKE]) 1167 1168# AM_SUBST_NOTMAKE(VARIABLE) 1169# -------------------------- 1170# Public sister of _AM_SUBST_NOTMAKE. 1171AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) 1172 1173# Check how to create a tarball. -*- Autoconf -*- 1174 1175# Copyright (C) 2004-2013 Free Software Foundation, Inc. 1176# 1177# This file is free software; the Free Software Foundation 1178# gives unlimited permission to copy and/or distribute it, 1179# with or without modifications, as long as this notice is preserved. 1180 1181# _AM_PROG_TAR(FORMAT) 1182# -------------------- 1183# Check how to create a tarball in format FORMAT. 1184# FORMAT should be one of 'v7', 'ustar', or 'pax'. 1185# 1186# Substitute a variable $(am__tar) that is a command 1187# writing to stdout a FORMAT-tarball containing the directory 1188# $tardir. 1189# tardir=directory && $(am__tar) > result.tar 1190# 1191# Substitute a variable $(am__untar) that extract such 1192# a tarball read from stdin. 1193# $(am__untar) < result.tar 1194# 1195AC_DEFUN([_AM_PROG_TAR], 1196[# Always define AMTAR for backward compatibility. Yes, it's still used 1197# in the wild :-( We should find a proper way to deprecate it ... 1198AC_SUBST([AMTAR], ['$${TAR-tar}']) 1199 1200# We'll loop over all known methods to create a tar archive until one works. 1201_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' 1202 1203m4_if([$1], [v7], 1204 [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'], 1205 1206 [m4_case([$1], 1207 [ustar], 1208 [# The POSIX 1988 'ustar' format is defined with fixed-size fields. 1209 # There is notably a 21 bits limit for the UID and the GID. In fact, 1210 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 1211 # and bug#13588). 1212 am_max_uid=2097151 # 2^21 - 1 1213 am_max_gid=$am_max_uid 1214 # The $UID and $GID variables are not portable, so we need to resort 1215 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls 1216 # below are definitely unexpected, so allow the users to see them 1217 # (that is, avoid stderr redirection). 1218 am_uid=`id -u || echo unknown` 1219 am_gid=`id -g || echo unknown` 1220 AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format]) 1221 if test $am_uid -le $am_max_uid; then 1222 AC_MSG_RESULT([yes]) 1223 else 1224 AC_MSG_RESULT([no]) 1225 _am_tools=none 1226 fi 1227 AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format]) 1228 if test $am_gid -le $am_max_gid; then 1229 AC_MSG_RESULT([yes]) 1230 else 1231 AC_MSG_RESULT([no]) 1232 _am_tools=none 1233 fi], 1234 1235 [pax], 1236 [], 1237 1238 [m4_fatal([Unknown tar format])]) 1239 1240 AC_MSG_CHECKING([how to create a $1 tar archive]) 1241 1242 # Go ahead even if we have the value already cached. We do so because we 1243 # need to set the values for the 'am__tar' and 'am__untar' variables. 1244 _am_tools=${am_cv_prog_tar_$1-$_am_tools} 1245 1246 for _am_tool in $_am_tools; do 1247 case $_am_tool in 1248 gnutar) 1249 for _am_tar in tar gnutar gtar; do 1250 AM_RUN_LOG([$_am_tar --version]) && break 1251 done 1252 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' 1253 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' 1254 am__untar="$_am_tar -xf -" 1255 ;; 1256 plaintar) 1257 # Must skip GNU tar: if it does not support --format= it doesn't create 1258 # ustar tarball either. 1259 (tar --version) >/dev/null 2>&1 && continue 1260 am__tar='tar chf - "$$tardir"' 1261 am__tar_='tar chf - "$tardir"' 1262 am__untar='tar xf -' 1263 ;; 1264 pax) 1265 am__tar='pax -L -x $1 -w "$$tardir"' 1266 am__tar_='pax -L -x $1 -w "$tardir"' 1267 am__untar='pax -r' 1268 ;; 1269 cpio) 1270 am__tar='find "$$tardir" -print | cpio -o -H $1 -L' 1271 am__tar_='find "$tardir" -print | cpio -o -H $1 -L' 1272 am__untar='cpio -i -H $1 -d' 1273 ;; 1274 none) 1275 am__tar=false 1276 am__tar_=false 1277 am__untar=false 1278 ;; 1279 esac 1280 1281 # If the value was cached, stop now. We just wanted to have am__tar 1282 # and am__untar set. 1283 test -n "${am_cv_prog_tar_$1}" && break 1284 1285 # tar/untar a dummy directory, and stop if the command works. 1286 rm -rf conftest.dir 1287 mkdir conftest.dir 1288 echo GrepMe > conftest.dir/file 1289 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) 1290 rm -rf conftest.dir 1291 if test -s conftest.tar; then 1292 AM_RUN_LOG([$am__untar <conftest.tar]) 1293 AM_RUN_LOG([cat conftest.dir/file]) 1294 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 1295 fi 1296 done 1297 rm -rf conftest.dir 1298 1299 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) 1300 AC_MSG_RESULT([$am_cv_prog_tar_$1])]) 1301 1302AC_SUBST([am__tar]) 1303AC_SUBST([am__untar]) 1304]) # _AM_PROG_TAR 1305 1306m4_include([m4/autobuild.m4]) 1307m4_include([m4/codeset.m4]) 1308m4_include([m4/estream.m4]) 1309m4_include([m4/fcntl-o.m4]) 1310m4_include([m4/gettext.m4]) 1311m4_include([m4/glibc2.m4]) 1312m4_include([m4/glibc21.m4]) 1313m4_include([m4/iconv.m4]) 1314m4_include([m4/intdiv0.m4]) 1315m4_include([m4/intl.m4]) 1316m4_include([m4/intlmacosx.m4]) 1317m4_include([m4/intmax.m4]) 1318m4_include([m4/inttypes-pri.m4]) 1319m4_include([m4/inttypes_h.m4]) 1320m4_include([m4/isc-posix.m4]) 1321m4_include([m4/lcmessage.m4]) 1322m4_include([m4/ldap.m4]) 1323m4_include([m4/lib-ld.m4]) 1324m4_include([m4/lib-link.m4]) 1325m4_include([m4/lib-prefix.m4]) 1326m4_include([m4/libcurl.m4]) 1327m4_include([m4/libusb.m4]) 1328m4_include([m4/lock.m4]) 1329m4_include([m4/longlong.m4]) 1330m4_include([m4/nls.m4]) 1331m4_include([m4/noexecstack.m4]) 1332m4_include([m4/po.m4]) 1333m4_include([m4/printf-posix.m4]) 1334m4_include([m4/progtest.m4]) 1335m4_include([m4/readline.m4]) 1336m4_include([m4/size_max.m4]) 1337m4_include([m4/stdint_h.m4]) 1338m4_include([m4/tar-ustar.m4]) 1339m4_include([m4/threadlib.m4]) 1340m4_include([m4/uintmax_t.m4]) 1341m4_include([m4/ulonglong.m4]) 1342m4_include([m4/visibility.m4]) 1343m4_include([m4/wchar_t.m4]) 1344m4_include([m4/wint_t.m4]) 1345m4_include([m4/xsize.m4]) 1346m4_include([acinclude.m4]) 1347