1# generated automatically by aclocal 1.14 -*- 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 23# Copyright (C) 2002-2013 Free Software Foundation, Inc. 24# 25# This file is free software; the Free Software Foundation 26# gives unlimited permission to copy and/or distribute it, 27# with or without modifications, as long as this notice is preserved. 28 29# AM_AUTOMAKE_VERSION(VERSION) 30# ---------------------------- 31# Automake X.Y traces this macro to ensure aclocal.m4 has been 32# generated from the m4 files accompanying Automake X.Y. 33# (This private macro should not be called outside this file.) 34AC_DEFUN([AM_AUTOMAKE_VERSION], 35[am__api_version='1.14' 36dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to 37dnl require some minimum version. Point them to the right macro. 38m4_if([$1], [1.14], [], 39 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl 40]) 41 42# _AM_AUTOCONF_VERSION(VERSION) 43# ----------------------------- 44# aclocal traces this macro to find the Autoconf version. 45# This is a private macro too. Using m4_define simplifies 46# the logic in aclocal, which can simply ignore this definition. 47m4_define([_AM_AUTOCONF_VERSION], []) 48 49# AM_SET_CURRENT_AUTOMAKE_VERSION 50# ------------------------------- 51# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. 52# This function is AC_REQUIREd by AM_INIT_AUTOMAKE. 53AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], 54[AM_AUTOMAKE_VERSION([1.14])dnl 55m4_ifndef([AC_AUTOCONF_VERSION], 56 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl 57_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) 58 59# AM_AUX_DIR_EXPAND -*- Autoconf -*- 60 61# Copyright (C) 2001-2013 Free Software Foundation, Inc. 62# 63# This file is free software; the Free Software Foundation 64# gives unlimited permission to copy and/or distribute it, 65# with or without modifications, as long as this notice is preserved. 66 67# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets 68# $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to 69# '$srcdir', '$srcdir/..', or '$srcdir/../..'. 70# 71# Of course, Automake must honor this variable whenever it calls a 72# tool from the auxiliary directory. The problem is that $srcdir (and 73# therefore $ac_aux_dir as well) can be either absolute or relative, 74# depending on how configure is run. This is pretty annoying, since 75# it makes $ac_aux_dir quite unusable in subdirectories: in the top 76# source directory, any form will work fine, but in subdirectories a 77# relative path needs to be adjusted first. 78# 79# $ac_aux_dir/missing 80# fails when called from a subdirectory if $ac_aux_dir is relative 81# $top_srcdir/$ac_aux_dir/missing 82# fails if $ac_aux_dir is absolute, 83# fails when called from a subdirectory in a VPATH build with 84# a relative $ac_aux_dir 85# 86# The reason of the latter failure is that $top_srcdir and $ac_aux_dir 87# are both prefixed by $srcdir. In an in-source build this is usually 88# harmless because $srcdir is '.', but things will broke when you 89# start a VPATH build or use an absolute $srcdir. 90# 91# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, 92# iff we strip the leading $srcdir from $ac_aux_dir. That would be: 93# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` 94# and then we would define $MISSING as 95# MISSING="\${SHELL} $am_aux_dir/missing" 96# This will work as long as MISSING is not called from configure, because 97# unfortunately $(top_srcdir) has no meaning in configure. 98# However there are other variables, like CC, which are often used in 99# configure, and could therefore not use this "fixed" $ac_aux_dir. 100# 101# Another solution, used here, is to always expand $ac_aux_dir to an 102# absolute PATH. The drawback is that using absolute paths prevent a 103# configured tree to be moved without reconfiguration. 104 105AC_DEFUN([AM_AUX_DIR_EXPAND], 106[dnl Rely on autoconf to set up CDPATH properly. 107AC_PREREQ([2.50])dnl 108# expand $ac_aux_dir to an absolute path 109am_aux_dir=`cd $ac_aux_dir && pwd` 110]) 111 112# AM_CONDITIONAL -*- Autoconf -*- 113 114# Copyright (C) 1997-2013 Free Software Foundation, Inc. 115# 116# This file is free software; the Free Software Foundation 117# gives unlimited permission to copy and/or distribute it, 118# with or without modifications, as long as this notice is preserved. 119 120# AM_CONDITIONAL(NAME, SHELL-CONDITION) 121# ------------------------------------- 122# Define a conditional. 123AC_DEFUN([AM_CONDITIONAL], 124[AC_PREREQ([2.52])dnl 125 m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], 126 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl 127AC_SUBST([$1_TRUE])dnl 128AC_SUBST([$1_FALSE])dnl 129_AM_SUBST_NOTMAKE([$1_TRUE])dnl 130_AM_SUBST_NOTMAKE([$1_FALSE])dnl 131m4_define([_AM_COND_VALUE_$1], [$2])dnl 132if $2; then 133 $1_TRUE= 134 $1_FALSE='#' 135else 136 $1_TRUE='#' 137 $1_FALSE= 138fi 139AC_CONFIG_COMMANDS_PRE( 140[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then 141 AC_MSG_ERROR([[conditional "$1" was never defined. 142Usually this means the macro was only invoked conditionally.]]) 143fi])]) 144 145# Do all the work for Automake. -*- Autoconf -*- 146 147# Copyright (C) 1996-2013 Free Software Foundation, Inc. 148# 149# This file is free software; the Free Software Foundation 150# gives unlimited permission to copy and/or distribute it, 151# with or without modifications, as long as this notice is preserved. 152 153# This macro actually does too much. Some checks are only needed if 154# your package does certain things. But this isn't really a big deal. 155 156dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O. 157m4_define([AC_PROG_CC], 158m4_defn([AC_PROG_CC]) 159[_AM_PROG_CC_C_O 160]) 161 162# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) 163# AM_INIT_AUTOMAKE([OPTIONS]) 164# ----------------------------------------------- 165# The call with PACKAGE and VERSION arguments is the old style 166# call (pre autoconf-2.50), which is being phased out. PACKAGE 167# and VERSION should now be passed to AC_INIT and removed from 168# the call to AM_INIT_AUTOMAKE. 169# We support both call styles for the transition. After 170# the next Automake release, Autoconf can make the AC_INIT 171# arguments mandatory, and then we can depend on a new Autoconf 172# release and drop the old call support. 173AC_DEFUN([AM_INIT_AUTOMAKE], 174[AC_PREREQ([2.65])dnl 175dnl Autoconf wants to disallow AM_ names. We explicitly allow 176dnl the ones we care about. 177m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl 178AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl 179AC_REQUIRE([AC_PROG_INSTALL])dnl 180if test "`cd $srcdir && pwd`" != "`pwd`"; then 181 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 182 # is not polluted with repeated "-I." 183 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl 184 # test to see if srcdir already configured 185 if test -f $srcdir/config.status; then 186 AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) 187 fi 188fi 189 190# test whether we have cygpath 191if test -z "$CYGPATH_W"; then 192 if (cygpath --version) >/dev/null 2>/dev/null; then 193 CYGPATH_W='cygpath -w' 194 else 195 CYGPATH_W=echo 196 fi 197fi 198AC_SUBST([CYGPATH_W]) 199 200# Define the identity of the package. 201dnl Distinguish between old-style and new-style calls. 202m4_ifval([$2], 203[AC_DIAGNOSE([obsolete], 204 [$0: two- and three-arguments forms are deprecated.]) 205m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl 206 AC_SUBST([PACKAGE], [$1])dnl 207 AC_SUBST([VERSION], [$2])], 208[_AM_SET_OPTIONS([$1])dnl 209dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. 210m4_if( 211 m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]), 212 [ok:ok],, 213 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl 214 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl 215 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl 216 217_AM_IF_OPTION([no-define],, 218[AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package]) 219 AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl 220 221# Some tools Automake needs. 222AC_REQUIRE([AM_SANITY_CHECK])dnl 223AC_REQUIRE([AC_ARG_PROGRAM])dnl 224AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}]) 225AM_MISSING_PROG([AUTOCONF], [autoconf]) 226AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}]) 227AM_MISSING_PROG([AUTOHEADER], [autoheader]) 228AM_MISSING_PROG([MAKEINFO], [makeinfo]) 229AC_REQUIRE([AM_PROG_INSTALL_SH])dnl 230AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl 231AC_REQUIRE([AC_PROG_MKDIR_P])dnl 232# For better backward compatibility. To be removed once Automake 1.9.x 233# dies out for good. For more background, see: 234# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 235# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 236AC_SUBST([mkdir_p], ['$(MKDIR_P)']) 237# We need awk for the "check" target. The system "awk" is bad on 238# some platforms. 239AC_REQUIRE([AC_PROG_AWK])dnl 240AC_REQUIRE([AC_PROG_MAKE_SET])dnl 241AC_REQUIRE([AM_SET_LEADING_DOT])dnl 242_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], 243 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], 244 [_AM_PROG_TAR([v7])])]) 245_AM_IF_OPTION([no-dependencies],, 246[AC_PROVIDE_IFELSE([AC_PROG_CC], 247 [_AM_DEPENDENCIES([CC])], 248 [m4_define([AC_PROG_CC], 249 m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl 250AC_PROVIDE_IFELSE([AC_PROG_CXX], 251 [_AM_DEPENDENCIES([CXX])], 252 [m4_define([AC_PROG_CXX], 253 m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl 254AC_PROVIDE_IFELSE([AC_PROG_OBJC], 255 [_AM_DEPENDENCIES([OBJC])], 256 [m4_define([AC_PROG_OBJC], 257 m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl 258AC_PROVIDE_IFELSE([AC_PROG_OBJCXX], 259 [_AM_DEPENDENCIES([OBJCXX])], 260 [m4_define([AC_PROG_OBJCXX], 261 m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl 262]) 263AC_REQUIRE([AM_SILENT_RULES])dnl 264dnl The testsuite driver may need to know about EXEEXT, so add the 265dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This 266dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below. 267AC_CONFIG_COMMANDS_PRE(dnl 268[m4_provide_if([_AM_COMPILER_EXEEXT], 269 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl 270 271# POSIX will say in a future version that running "rm -f" with no argument 272# is OK; and we want to be able to make that assumption in our Makefile 273# recipes. So use an aggressive probe to check that the usage we want is 274# actually supported "in the wild" to an acceptable degree. 275# See automake bug#10828. 276# To make any issue more visible, cause the running configure to be aborted 277# by default if the 'rm' program in use doesn't match our expectations; the 278# user can still override this though. 279if rm -f && rm -fr && rm -rf; then : OK; else 280 cat >&2 <<'END' 281Oops! 282 283Your 'rm' program seems unable to run without file operands specified 284on the command line, even when the '-f' option is present. This is contrary 285to the behaviour of most rm programs out there, and not conforming with 286the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 287 288Please tell bug-automake@gnu.org about your system, including the value 289of your $PATH and any error possibly output before this message. This 290can help us improve future automake versions. 291 292END 293 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 294 echo 'Configuration will proceed anyway, since you have set the' >&2 295 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 296 echo >&2 297 else 298 cat >&2 <<'END' 299Aborting the configuration process, to ensure you take notice of the issue. 300 301You can download and install GNU coreutils to get an 'rm' implementation 302that behaves properly: <http://www.gnu.org/software/coreutils/>. 303 304If you want to complete the configuration process using your problematic 305'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 306to "yes", and re-run configure. 307 308END 309 AC_MSG_ERROR([Your 'rm' program is bad, sorry.]) 310 fi 311fi]) 312 313dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not 314dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further 315dnl mangled by Autoconf and run in a shell conditional statement. 316m4_define([_AC_COMPILER_EXEEXT], 317m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) 318 319# When config.status generates a header, we must update the stamp-h file. 320# This file resides in the same directory as the config header 321# that is generated. The stamp files are numbered to have different names. 322 323# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the 324# loop where config.status creates the headers, so we can generate 325# our stamp files there. 326AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], 327[# Compute $1's index in $config_headers. 328_am_arg=$1 329_am_stamp_count=1 330for _am_header in $config_headers :; do 331 case $_am_header in 332 $_am_arg | $_am_arg:* ) 333 break ;; 334 * ) 335 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 336 esac 337done 338echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) 339 340# Copyright (C) 2001-2013 Free Software Foundation, Inc. 341# 342# This file is free software; the Free Software Foundation 343# gives unlimited permission to copy and/or distribute it, 344# with or without modifications, as long as this notice is preserved. 345 346# AM_PROG_INSTALL_SH 347# ------------------ 348# Define $install_sh. 349AC_DEFUN([AM_PROG_INSTALL_SH], 350[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 351if test x"${install_sh}" != xset; then 352 case $am_aux_dir in 353 *\ * | *\ *) 354 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 355 *) 356 install_sh="\${SHELL} $am_aux_dir/install-sh" 357 esac 358fi 359AC_SUBST([install_sh])]) 360 361# Copyright (C) 2003-2013 Free Software Foundation, Inc. 362# 363# This file is free software; the Free Software Foundation 364# gives unlimited permission to copy and/or distribute it, 365# with or without modifications, as long as this notice is preserved. 366 367# Check whether the underlying file-system supports filenames 368# with a leading dot. For instance MS-DOS doesn't. 369AC_DEFUN([AM_SET_LEADING_DOT], 370[rm -rf .tst 2>/dev/null 371mkdir .tst 2>/dev/null 372if test -d .tst; then 373 am__leading_dot=. 374else 375 am__leading_dot=_ 376fi 377rmdir .tst 2>/dev/null 378AC_SUBST([am__leading_dot])]) 379 380# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- 381 382# Copyright (C) 1997-2013 Free Software Foundation, Inc. 383# 384# This file is free software; the Free Software Foundation 385# gives unlimited permission to copy and/or distribute it, 386# with or without modifications, as long as this notice is preserved. 387 388# AM_MISSING_PROG(NAME, PROGRAM) 389# ------------------------------ 390AC_DEFUN([AM_MISSING_PROG], 391[AC_REQUIRE([AM_MISSING_HAS_RUN]) 392$1=${$1-"${am_missing_run}$2"} 393AC_SUBST($1)]) 394 395# AM_MISSING_HAS_RUN 396# ------------------ 397# Define MISSING if not defined so far and test if it is modern enough. 398# If it is, set am_missing_run to use it, otherwise, to nothing. 399AC_DEFUN([AM_MISSING_HAS_RUN], 400[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 401AC_REQUIRE_AUX_FILE([missing])dnl 402if test x"${MISSING+set}" != xset; then 403 case $am_aux_dir in 404 *\ * | *\ *) 405 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 406 *) 407 MISSING="\${SHELL} $am_aux_dir/missing" ;; 408 esac 409fi 410# Use eval to expand $SHELL 411if eval "$MISSING --is-lightweight"; then 412 am_missing_run="$MISSING " 413else 414 am_missing_run= 415 AC_MSG_WARN(['missing' script is too old or missing]) 416fi 417]) 418 419# Helper functions for option handling. -*- Autoconf -*- 420 421# Copyright (C) 2001-2013 Free Software Foundation, Inc. 422# 423# This file is free software; the Free Software Foundation 424# gives unlimited permission to copy and/or distribute it, 425# with or without modifications, as long as this notice is preserved. 426 427# _AM_MANGLE_OPTION(NAME) 428# ----------------------- 429AC_DEFUN([_AM_MANGLE_OPTION], 430[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) 431 432# _AM_SET_OPTION(NAME) 433# -------------------- 434# Set option NAME. Presently that only means defining a flag for this option. 435AC_DEFUN([_AM_SET_OPTION], 436[m4_define(_AM_MANGLE_OPTION([$1]), [1])]) 437 438# _AM_SET_OPTIONS(OPTIONS) 439# ------------------------ 440# OPTIONS is a space-separated list of Automake options. 441AC_DEFUN([_AM_SET_OPTIONS], 442[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) 443 444# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) 445# ------------------------------------------- 446# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. 447AC_DEFUN([_AM_IF_OPTION], 448[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) 449 450# Copyright (C) 1999-2013 Free Software Foundation, Inc. 451# 452# This file is free software; the Free Software Foundation 453# gives unlimited permission to copy and/or distribute it, 454# with or without modifications, as long as this notice is preserved. 455 456# _AM_PROG_CC_C_O 457# --------------- 458# Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC 459# to automatically call this. 460AC_DEFUN([_AM_PROG_CC_C_O], 461[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 462AC_REQUIRE_AUX_FILE([compile])dnl 463AC_LANG_PUSH([C])dnl 464AC_CACHE_CHECK( 465 [whether $CC understands -c and -o together], 466 [am_cv_prog_cc_c_o], 467 [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])]) 468 # Make sure it works both with $CC and with simple cc. 469 # Following AC_PROG_CC_C_O, we do the test twice because some 470 # compilers refuse to overwrite an existing .o file with -o, 471 # though they will create one. 472 am_cv_prog_cc_c_o=yes 473 for am_i in 1 2; do 474 if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \ 475 && test -f conftest2.$ac_objext; then 476 : OK 477 else 478 am_cv_prog_cc_c_o=no 479 break 480 fi 481 done 482 rm -f core conftest* 483 unset am_i]) 484if test "$am_cv_prog_cc_c_o" != yes; then 485 # Losing compiler, so override with the script. 486 # FIXME: It is wrong to rewrite CC. 487 # But if we don't then we get into trouble of one sort or another. 488 # A longer-term fix would be to have automake use am__CC in this case, 489 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 490 CC="$am_aux_dir/compile $CC" 491fi 492AC_LANG_POP([C])]) 493 494# For backward compatibility. 495AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])]) 496 497# Copyright (C) 2001-2013 Free Software Foundation, Inc. 498# 499# This file is free software; the Free Software Foundation 500# gives unlimited permission to copy and/or distribute it, 501# with or without modifications, as long as this notice is preserved. 502 503# AM_RUN_LOG(COMMAND) 504# ------------------- 505# Run COMMAND, save the exit status in ac_status, and log it. 506# (This has been adapted from Autoconf's _AC_RUN_LOG macro.) 507AC_DEFUN([AM_RUN_LOG], 508[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD 509 ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD 510 ac_status=$? 511 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 512 (exit $ac_status); }]) 513 514# Check to make sure that the build environment is sane. -*- Autoconf -*- 515 516# Copyright (C) 1996-2013 Free Software Foundation, Inc. 517# 518# This file is free software; the Free Software Foundation 519# gives unlimited permission to copy and/or distribute it, 520# with or without modifications, as long as this notice is preserved. 521 522# AM_SANITY_CHECK 523# --------------- 524AC_DEFUN([AM_SANITY_CHECK], 525[AC_MSG_CHECKING([whether build environment is sane]) 526# Reject unsafe characters in $srcdir or the absolute working directory 527# name. Accept space and tab only in the latter. 528am_lf=' 529' 530case `pwd` in 531 *[[\\\"\#\$\&\'\`$am_lf]]*) 532 AC_MSG_ERROR([unsafe absolute working directory name]);; 533esac 534case $srcdir in 535 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) 536 AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);; 537esac 538 539# Do 'set' in a subshell so we don't clobber the current shell's 540# arguments. Must try -L first in case configure is actually a 541# symlink; some systems play weird games with the mod time of symlinks 542# (eg FreeBSD returns the mod time of the symlink's containing 543# directory). 544if ( 545 am_has_slept=no 546 for am_try in 1 2; do 547 echo "timestamp, slept: $am_has_slept" > conftest.file 548 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 549 if test "$[*]" = "X"; then 550 # -L didn't work. 551 set X `ls -t "$srcdir/configure" conftest.file` 552 fi 553 if test "$[*]" != "X $srcdir/configure conftest.file" \ 554 && test "$[*]" != "X conftest.file $srcdir/configure"; then 555 556 # If neither matched, then we have a broken ls. This can happen 557 # if, for instance, CONFIG_SHELL is bash and it inherits a 558 # broken ls alias from the environment. This has actually 559 # happened. Such a system could not be considered "sane". 560 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken 561 alias in your environment]) 562 fi 563 if test "$[2]" = conftest.file || test $am_try -eq 2; then 564 break 565 fi 566 # Just in case. 567 sleep 1 568 am_has_slept=yes 569 done 570 test "$[2]" = conftest.file 571 ) 572then 573 # Ok. 574 : 575else 576 AC_MSG_ERROR([newly created file is older than distributed files! 577Check your system clock]) 578fi 579AC_MSG_RESULT([yes]) 580# If we didn't sleep, we still need to ensure time stamps of config.status and 581# generated files are strictly newer. 582am_sleep_pid= 583if grep 'slept: no' conftest.file >/dev/null 2>&1; then 584 ( sleep 1 ) & 585 am_sleep_pid=$! 586fi 587AC_CONFIG_COMMANDS_PRE( 588 [AC_MSG_CHECKING([that generated files are newer than configure]) 589 if test -n "$am_sleep_pid"; then 590 # Hide warnings about reused PIDs. 591 wait $am_sleep_pid 2>/dev/null 592 fi 593 AC_MSG_RESULT([done])]) 594rm -f conftest.file 595]) 596 597# Copyright (C) 2009-2013 Free Software Foundation, Inc. 598# 599# This file is free software; the Free Software Foundation 600# gives unlimited permission to copy and/or distribute it, 601# with or without modifications, as long as this notice is preserved. 602 603# AM_SILENT_RULES([DEFAULT]) 604# -------------------------- 605# Enable less verbose build rules; with the default set to DEFAULT 606# ("yes" being less verbose, "no" or empty being verbose). 607AC_DEFUN([AM_SILENT_RULES], 608[AC_ARG_ENABLE([silent-rules], [dnl 609AS_HELP_STRING( 610 [--enable-silent-rules], 611 [less verbose build output (undo: "make V=1")]) 612AS_HELP_STRING( 613 [--disable-silent-rules], 614 [verbose build output (undo: "make V=0")])dnl 615]) 616case $enable_silent_rules in @%:@ ((( 617 yes) AM_DEFAULT_VERBOSITY=0;; 618 no) AM_DEFAULT_VERBOSITY=1;; 619 *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);; 620esac 621dnl 622dnl A few 'make' implementations (e.g., NonStop OS and NextStep) 623dnl do not support nested variable expansions. 624dnl See automake bug#9928 and bug#10237. 625am_make=${MAKE-make} 626AC_CACHE_CHECK([whether $am_make supports nested variables], 627 [am_cv_make_support_nested_variables], 628 [if AS_ECHO([['TRUE=$(BAR$(V)) 629BAR0=false 630BAR1=true 631V=1 632am__doit: 633 @$(TRUE) 634.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then 635 am_cv_make_support_nested_variables=yes 636else 637 am_cv_make_support_nested_variables=no 638fi]) 639if test $am_cv_make_support_nested_variables = yes; then 640 dnl Using '$V' instead of '$(V)' breaks IRIX make. 641 AM_V='$(V)' 642 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 643else 644 AM_V=$AM_DEFAULT_VERBOSITY 645 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 646fi 647AC_SUBST([AM_V])dnl 648AM_SUBST_NOTMAKE([AM_V])dnl 649AC_SUBST([AM_DEFAULT_V])dnl 650AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl 651AC_SUBST([AM_DEFAULT_VERBOSITY])dnl 652AM_BACKSLASH='\' 653AC_SUBST([AM_BACKSLASH])dnl 654_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl 655]) 656 657# Copyright (C) 2001-2013 Free Software Foundation, Inc. 658# 659# This file is free software; the Free Software Foundation 660# gives unlimited permission to copy and/or distribute it, 661# with or without modifications, as long as this notice is preserved. 662 663# AM_PROG_INSTALL_STRIP 664# --------------------- 665# One issue with vendor 'install' (even GNU) is that you can't 666# specify the program used to strip binaries. This is especially 667# annoying in cross-compiling environments, where the build's strip 668# is unlikely to handle the host's binaries. 669# Fortunately install-sh will honor a STRIPPROG variable, so we 670# always use install-sh in "make install-strip", and initialize 671# STRIPPROG with the value of the STRIP variable (set by the user). 672AC_DEFUN([AM_PROG_INSTALL_STRIP], 673[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl 674# Installed binaries are usually stripped using 'strip' when the user 675# run "make install-strip". However 'strip' might not be the right 676# tool to use in cross-compilation environments, therefore Automake 677# will honor the 'STRIP' environment variable to overrule this program. 678dnl Don't test for $cross_compiling = yes, because it might be 'maybe'. 679if test "$cross_compiling" != no; then 680 AC_CHECK_TOOL([STRIP], [strip], :) 681fi 682INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 683AC_SUBST([INSTALL_STRIP_PROGRAM])]) 684 685# Copyright (C) 2006-2013 Free Software Foundation, Inc. 686# 687# This file is free software; the Free Software Foundation 688# gives unlimited permission to copy and/or distribute it, 689# with or without modifications, as long as this notice is preserved. 690 691# _AM_SUBST_NOTMAKE(VARIABLE) 692# --------------------------- 693# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. 694# This macro is traced by Automake. 695AC_DEFUN([_AM_SUBST_NOTMAKE]) 696 697# AM_SUBST_NOTMAKE(VARIABLE) 698# -------------------------- 699# Public sister of _AM_SUBST_NOTMAKE. 700AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) 701 702# Check how to create a tarball. -*- Autoconf -*- 703 704# Copyright (C) 2004-2013 Free Software Foundation, Inc. 705# 706# This file is free software; the Free Software Foundation 707# gives unlimited permission to copy and/or distribute it, 708# with or without modifications, as long as this notice is preserved. 709 710# _AM_PROG_TAR(FORMAT) 711# -------------------- 712# Check how to create a tarball in format FORMAT. 713# FORMAT should be one of 'v7', 'ustar', or 'pax'. 714# 715# Substitute a variable $(am__tar) that is a command 716# writing to stdout a FORMAT-tarball containing the directory 717# $tardir. 718# tardir=directory && $(am__tar) > result.tar 719# 720# Substitute a variable $(am__untar) that extract such 721# a tarball read from stdin. 722# $(am__untar) < result.tar 723# 724AC_DEFUN([_AM_PROG_TAR], 725[# Always define AMTAR for backward compatibility. Yes, it's still used 726# in the wild :-( We should find a proper way to deprecate it ... 727AC_SUBST([AMTAR], ['$${TAR-tar}']) 728 729# We'll loop over all known methods to create a tar archive until one works. 730_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' 731 732m4_if([$1], [v7], 733 [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'], 734 735 [m4_case([$1], 736 [ustar], 737 [# The POSIX 1988 'ustar' format is defined with fixed-size fields. 738 # There is notably a 21 bits limit for the UID and the GID. In fact, 739 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 740 # and bug#13588). 741 am_max_uid=2097151 # 2^21 - 1 742 am_max_gid=$am_max_uid 743 # The $UID and $GID variables are not portable, so we need to resort 744 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls 745 # below are definitely unexpected, so allow the users to see them 746 # (that is, avoid stderr redirection). 747 am_uid=`id -u || echo unknown` 748 am_gid=`id -g || echo unknown` 749 AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format]) 750 if test $am_uid -le $am_max_uid; then 751 AC_MSG_RESULT([yes]) 752 else 753 AC_MSG_RESULT([no]) 754 _am_tools=none 755 fi 756 AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format]) 757 if test $am_gid -le $am_max_gid; then 758 AC_MSG_RESULT([yes]) 759 else 760 AC_MSG_RESULT([no]) 761 _am_tools=none 762 fi], 763 764 [pax], 765 [], 766 767 [m4_fatal([Unknown tar format])]) 768 769 AC_MSG_CHECKING([how to create a $1 tar archive]) 770 771 # Go ahead even if we have the value already cached. We do so because we 772 # need to set the values for the 'am__tar' and 'am__untar' variables. 773 _am_tools=${am_cv_prog_tar_$1-$_am_tools} 774 775 for _am_tool in $_am_tools; do 776 case $_am_tool in 777 gnutar) 778 for _am_tar in tar gnutar gtar; do 779 AM_RUN_LOG([$_am_tar --version]) && break 780 done 781 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' 782 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' 783 am__untar="$_am_tar -xf -" 784 ;; 785 plaintar) 786 # Must skip GNU tar: if it does not support --format= it doesn't create 787 # ustar tarball either. 788 (tar --version) >/dev/null 2>&1 && continue 789 am__tar='tar chf - "$$tardir"' 790 am__tar_='tar chf - "$tardir"' 791 am__untar='tar xf -' 792 ;; 793 pax) 794 am__tar='pax -L -x $1 -w "$$tardir"' 795 am__tar_='pax -L -x $1 -w "$tardir"' 796 am__untar='pax -r' 797 ;; 798 cpio) 799 am__tar='find "$$tardir" -print | cpio -o -H $1 -L' 800 am__tar_='find "$tardir" -print | cpio -o -H $1 -L' 801 am__untar='cpio -i -H $1 -d' 802 ;; 803 none) 804 am__tar=false 805 am__tar_=false 806 am__untar=false 807 ;; 808 esac 809 810 # If the value was cached, stop now. We just wanted to have am__tar 811 # and am__untar set. 812 test -n "${am_cv_prog_tar_$1}" && break 813 814 # tar/untar a dummy directory, and stop if the command works. 815 rm -rf conftest.dir 816 mkdir conftest.dir 817 echo GrepMe > conftest.dir/file 818 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) 819 rm -rf conftest.dir 820 if test -s conftest.tar; then 821 AM_RUN_LOG([$am__untar <conftest.tar]) 822 AM_RUN_LOG([cat conftest.dir/file]) 823 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 824 fi 825 done 826 rm -rf conftest.dir 827 828 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) 829 AC_MSG_RESULT([$am_cv_prog_tar_$1])]) 830 831AC_SUBST([am__tar]) 832AC_SUBST([am__untar]) 833]) # _AM_PROG_TAR 834 835m4_include([acinclude.m4]) 836