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