1193326Sed# generated automatically by aclocal 1.11.6 -*- Autoconf -*- 2193326Sed 3193326Sed# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 4193326Sed# 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, 5193326Sed# Inc. 6193326Sed# This file is free software; the Free Software Foundation 7193326Sed# gives unlimited permission to copy and/or distribute it, 8193326Sed# with or without modifications, as long as this notice is preserved. 9193326Sed 10193326Sed# This program is distributed in the hope that it will be useful, 11193326Sed# but WITHOUT ANY WARRANTY, to the extent permitted by law; without 12193326Sed# even the implied warranty of MERCHANTABILITY or FITNESS FOR A 13193326Sed# PARTICULAR PURPOSE. 14193326Sed 15193326Sedm4_ifndef([AC_AUTOCONF_VERSION], 16193326Sed [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl 17193326Sedm4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.64],, 18193326Sed[m4_warning([this file was generated for autoconf 2.64. 19193326SedYou have another version of autoconf. It may work, but is not guaranteed to. 20193326SedIf you have problems, you may need to regenerate the build system entirely. 21193326SedTo do so, use the procedure documented by the package, typically `autoreconf'.])]) 22193326Sed 23193326Sed# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008, 2011 Free Software 24193326Sed# Foundation, Inc. 25193326Sed# 26193326Sed# This file is free software; the Free Software Foundation 27193326Sed# gives unlimited permission to copy and/or distribute it, 28193326Sed# with or without modifications, as long as this notice is preserved. 29193326Sed 30193326Sed# serial 1 31193326Sed 32193326Sed# AM_AUTOMAKE_VERSION(VERSION) 33193326Sed# ---------------------------- 34193326Sed# Automake X.Y traces this macro to ensure aclocal.m4 has been 35193326Sed# generated from the m4 files accompanying Automake X.Y. 36193326Sed# (This private macro should not be called outside this file.) 37193326SedAC_DEFUN([AM_AUTOMAKE_VERSION], 38193326Sed[am__api_version='1.11' 39193326Seddnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to 40193326Seddnl require some minimum version. Point them to the right macro. 41193326Sedm4_if([$1], [1.11.6], [], 42193326Sed [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl 43193326Sed]) 44193326Sed 45193326Sed# _AM_AUTOCONF_VERSION(VERSION) 46193326Sed# ----------------------------- 47193326Sed# aclocal traces this macro to find the Autoconf version. 48193326Sed# This is a private macro too. Using m4_define simplifies 49193326Sed# the logic in aclocal, which can simply ignore this definition. 50193326Sedm4_define([_AM_AUTOCONF_VERSION], []) 51193326Sed 52193326Sed# AM_SET_CURRENT_AUTOMAKE_VERSION 53193326Sed# ------------------------------- 54193326Sed# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. 55193326Sed# This function is AC_REQUIREd by AM_INIT_AUTOMAKE. 56193326SedAC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], 57193326Sed[AM_AUTOMAKE_VERSION([1.11.6])dnl 58193326Sedm4_ifndef([AC_AUTOCONF_VERSION], 59193326Sed [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl 60193326Sed_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) 61193326Sed 62193326Sed# Figure out how to run the assembler. -*- Autoconf -*- 63193326Sed 64193326Sed# Copyright (C) 2001, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 65193326Sed# 66193326Sed# This file is free software; the Free Software Foundation 67193326Sed# gives unlimited permission to copy and/or distribute it, 68193326Sed# with or without modifications, as long as this notice is preserved. 69193326Sed 70193326Sed# serial 5 71193326Sed 72193326Sed# AM_PROG_AS 73193326Sed# ---------- 74193326SedAC_DEFUN([AM_PROG_AS], 75193326Sed[# By default we simply use the C compiler to build assembly code. 76193326SedAC_REQUIRE([AC_PROG_CC]) 77193326Sedtest "${CCAS+set}" = set || CCAS=$CC 78193326Sedtest "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS 79193326SedAC_ARG_VAR([CCAS], [assembler compiler command (defaults to CC)]) 80193326SedAC_ARG_VAR([CCASFLAGS], [assembler compiler flags (defaults to CFLAGS)]) 81193326Sed_AM_IF_OPTION([no-dependencies],, [_AM_DEPENDENCIES([CCAS])])dnl 82193326Sed]) 83193326Sed 84193326Sed# AM_AUX_DIR_EXPAND -*- Autoconf -*- 85193326Sed 86193326Sed# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc. 87193326Sed# 88193326Sed# This file is free software; the Free Software Foundation 89193326Sed# gives unlimited permission to copy and/or distribute it, 90193326Sed# with or without modifications, as long as this notice is preserved. 91193326Sed 92193326Sed# serial 1 93193326Sed 94193326Sed# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets 95193326Sed# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to 96193326Sed# `$srcdir', `$srcdir/..', or `$srcdir/../..'. 97193326Sed# 98193326Sed# Of course, Automake must honor this variable whenever it calls a 99193326Sed# tool from the auxiliary directory. The problem is that $srcdir (and 100193326Sed# therefore $ac_aux_dir as well) can be either absolute or relative, 101193326Sed# depending on how configure is run. This is pretty annoying, since 102193326Sed# it makes $ac_aux_dir quite unusable in subdirectories: in the top 103193326Sed# source directory, any form will work fine, but in subdirectories a 104193326Sed# relative path needs to be adjusted first. 105193326Sed# 106193326Sed# $ac_aux_dir/missing 107193326Sed# fails when called from a subdirectory if $ac_aux_dir is relative 108193326Sed# $top_srcdir/$ac_aux_dir/missing 109193326Sed# fails if $ac_aux_dir is absolute, 110193326Sed# fails when called from a subdirectory in a VPATH build with 111193326Sed# a relative $ac_aux_dir 112193326Sed# 113193326Sed# The reason of the latter failure is that $top_srcdir and $ac_aux_dir 114193326Sed# are both prefixed by $srcdir. In an in-source build this is usually 115193326Sed# harmless because $srcdir is `.', but things will broke when you 116193326Sed# start a VPATH build or use an absolute $srcdir. 117193326Sed# 118193326Sed# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, 119193326Sed# iff we strip the leading $srcdir from $ac_aux_dir. That would be: 120193326Sed# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` 121193326Sed# and then we would define $MISSING as 122193326Sed# MISSING="\${SHELL} $am_aux_dir/missing" 123193326Sed# This will work as long as MISSING is not called from configure, because 124193326Sed# unfortunately $(top_srcdir) has no meaning in configure. 125193326Sed# However there are other variables, like CC, which are often used in 126193326Sed# configure, and could therefore not use this "fixed" $ac_aux_dir. 127193326Sed# 128193326Sed# Another solution, used here, is to always expand $ac_aux_dir to an 129193326Sed# absolute PATH. The drawback is that using absolute paths prevent a 130193326Sed# configured tree to be moved without reconfiguration. 131193326Sed 132193326SedAC_DEFUN([AM_AUX_DIR_EXPAND], 133193326Sed[dnl Rely on autoconf to set up CDPATH properly. 134193326SedAC_PREREQ([2.50])dnl 135193326Sed# expand $ac_aux_dir to an absolute path 136193326Sedam_aux_dir=`cd $ac_aux_dir && pwd` 137193326Sed]) 138193326Sed 139193326Sed# AM_CONDITIONAL -*- Autoconf -*- 140193326Sed 141193326Sed# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008 142193326Sed# Free Software Foundation, Inc. 143193326Sed# 144193326Sed# This file is free software; the Free Software Foundation 145193326Sed# gives unlimited permission to copy and/or distribute it, 146193326Sed# with or without modifications, as long as this notice is preserved. 147193326Sed 148193326Sed# serial 9 149193326Sed 150193326Sed# AM_CONDITIONAL(NAME, SHELL-CONDITION) 151193326Sed# ------------------------------------- 152193326Sed# Define a conditional. 153193326SedAC_DEFUN([AM_CONDITIONAL], 154193326Sed[AC_PREREQ(2.52)dnl 155193326Sed ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], 156193326Sed [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl 157193326SedAC_SUBST([$1_TRUE])dnl 158193326SedAC_SUBST([$1_FALSE])dnl 159193326Sed_AM_SUBST_NOTMAKE([$1_TRUE])dnl 160193326Sed_AM_SUBST_NOTMAKE([$1_FALSE])dnl 161193326Sedm4_define([_AM_COND_VALUE_$1], [$2])dnl 162193326Sedif $2; then 163193326Sed $1_TRUE= 164193326Sed $1_FALSE='#' 165193326Sedelse 166193326Sed $1_TRUE='#' 167193326Sed $1_FALSE= 168193326Sedfi 169193326SedAC_CONFIG_COMMANDS_PRE( 170193326Sed[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then 171193326Sed AC_MSG_ERROR([[conditional "$1" was never defined. 172193326SedUsually this means the macro was only invoked conditionally.]]) 173193326Sedfi])]) 174193326Sed 175193326Sed# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009, 176193326Sed# 2010, 2011 Free Software Foundation, Inc. 177193326Sed# 178193326Sed# This file is free software; the Free Software Foundation 179193326Sed# gives unlimited permission to copy and/or distribute it, 180193326Sed# with or without modifications, as long as this notice is preserved. 181193326Sed 182193326Sed# serial 12 183193326Sed 184193326Sed# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be 185193326Sed# written in clear, in which case automake, when reading aclocal.m4, 186193326Sed# will think it sees a *use*, and therefore will trigger all it's 187193326Sed# C support machinery. Also note that it means that autoscan, seeing 188193326Sed# CC etc. in the Makefile, will ask for an AC_PROG_CC use... 189193326Sed 190193326Sed 191193326Sed# _AM_DEPENDENCIES(NAME) 192193326Sed# ---------------------- 193193326Sed# See how the compiler implements dependency checking. 194193326Sed# NAME is "CC", "CXX", "GCJ", or "OBJC". 195193326Sed# We try a few techniques and use that to set a single cache variable. 196193326Sed# 197193326Sed# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was 198193326Sed# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular 199193326Sed# dependency, and given that the user is not expected to run this macro, 200193326Sed# just rely on AC_PROG_CC. 201193326SedAC_DEFUN([_AM_DEPENDENCIES], 202193326Sed[AC_REQUIRE([AM_SET_DEPDIR])dnl 203193326SedAC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl 204193326SedAC_REQUIRE([AM_MAKE_INCLUDE])dnl 205193326SedAC_REQUIRE([AM_DEP_TRACK])dnl 206193326Sed 207193326Sedifelse([$1], CC, [depcc="$CC" am_compiler_list=], 208193326Sed [$1], CXX, [depcc="$CXX" am_compiler_list=], 209193326Sed [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], 210193326Sed [$1], UPC, [depcc="$UPC" am_compiler_list=], 211193326Sed [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], 212193326Sed [depcc="$$1" am_compiler_list=]) 213193326Sed 214193326SedAC_CACHE_CHECK([dependency style of $depcc], 215193326Sed [am_cv_$1_dependencies_compiler_type], 216193326Sed[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 217193326Sed # We make a subdir and do the tests there. Otherwise we can end up 218193326Sed # making bogus files that we don't know about and never remove. For 219193326Sed # instance it was reported that on HP-UX the gcc test will end up 220193326Sed # making a dummy file named `D' -- because `-MD' means `put the output 221193326Sed # in D'. 222193326Sed rm -rf conftest.dir 223193326Sed mkdir conftest.dir 224193326Sed # Copy depcomp to subdir because otherwise we won't find it if we're 225193326Sed # using a relative directory. 226193326Sed cp "$am_depcomp" conftest.dir 227193326Sed cd conftest.dir 228193326Sed # We will build objects and dependencies in a subdirectory because 229193326Sed # it helps to detect inapplicable dependency modes. For instance 230193326Sed # both Tru64's cc and ICC support -MD to output dependencies as a 231193326Sed # side effect of compilation, but ICC will put the dependencies in 232193326Sed # the current directory while Tru64 will put them in the object 233193326Sed # directory. 234193326Sed mkdir sub 235193326Sed 236193326Sed am_cv_$1_dependencies_compiler_type=none 237193326Sed if test "$am_compiler_list" = ""; then 238193326Sed am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` 239193326Sed fi 240193326Sed am__universal=false 241193326Sed m4_case([$1], [CC], 242193326Sed [case " $depcc " in #( 243193326Sed *\ -arch\ *\ -arch\ *) am__universal=true ;; 244193326Sed esac], 245193326Sed [CXX], 246193326Sed [case " $depcc " in #( 247193326Sed *\ -arch\ *\ -arch\ *) am__universal=true ;; 248193326Sed esac]) 249193326Sed 250193326Sed for depmode in $am_compiler_list; do 251193326Sed # Setup a source with many dependencies, because some compilers 252193326Sed # like to wrap large dependency lists on column 80 (with \), and 253193326Sed # we should not choose a depcomp mode which is confused by this. 254193326Sed # 255193326Sed # We need to recreate these files for each test, as the compiler may 256193326Sed # overwrite some of them when testing with obscure command lines. 257193326Sed # This happens at least with the AIX C compiler. 258193326Sed : > sub/conftest.c 259193326Sed for i in 1 2 3 4 5 6; do 260193326Sed echo '#include "conftst'$i'.h"' >> sub/conftest.c 261193326Sed # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 262193326Sed # Solaris 8's {/usr,}/bin/sh. 263193326Sed touch sub/conftst$i.h 264193326Sed done 265193326Sed echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 266193326Sed 267193326Sed # We check with `-c' and `-o' for the sake of the "dashmstdout" 268193326Sed # mode. It turns out that the SunPro C++ compiler does not properly 269193326Sed # handle `-M -o', and we need to detect this. Also, some Intel 270193326Sed # versions had trouble with output in subdirs 271193326Sed am__obj=sub/conftest.${OBJEXT-o} 272193326Sed am__minus_obj="-o $am__obj" 273193326Sed case $depmode in 274193326Sed gcc) 275193326Sed # This depmode causes a compiler race in universal mode. 276193326Sed test "$am__universal" = false || continue 277193326Sed ;; 278193326Sed nosideeffect) 279193326Sed # after this tag, mechanisms are not by side-effect, so they'll 280193326Sed # only be used when explicitly requested 281193326Sed if test "x$enable_dependency_tracking" = xyes; then 282193326Sed continue 283193326Sed else 284193326Sed break 285193326Sed fi 286193326Sed ;; 287193326Sed msvc7 | msvc7msys | msvisualcpp | msvcmsys) 288193326Sed # This compiler won't grok `-c -o', but also, the minuso test has 289193326Sed # not run yet. These depmodes are late enough in the game, and 290193326Sed # so weak that their functioning should not be impacted. 291193326Sed am__obj=conftest.${OBJEXT-o} 292193326Sed am__minus_obj= 293193326Sed ;; 294193326Sed none) break ;; 295193326Sed esac 296193326Sed if depmode=$depmode \ 297193326Sed source=sub/conftest.c object=$am__obj \ 298193326Sed depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 299193326Sed $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 300193326Sed >/dev/null 2>conftest.err && 301193326Sed grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 302193326Sed grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 303193326Sed grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 304193326Sed ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 305193326Sed # icc doesn't choke on unknown options, it will just issue warnings 306193326Sed # or remarks (even with -Werror). So we grep stderr for any message 307193326Sed # that says an option was ignored or not supported. 308193326Sed # When given -MP, icc 7.0 and 7.1 complain thusly: 309193326Sed # icc: Command line warning: ignoring option '-M'; no argument required 310193326Sed # The diagnosis changed in icc 8.0: 311193326Sed # icc: Command line remark: option '-MP' not supported 312193326Sed if (grep 'ignoring option' conftest.err || 313193326Sed grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 314193326Sed am_cv_$1_dependencies_compiler_type=$depmode 315193326Sed break 316193326Sed fi 317193326Sed fi 318193326Sed done 319193326Sed 320193326Sed cd .. 321193326Sed rm -rf conftest.dir 322193326Sedelse 323193326Sed am_cv_$1_dependencies_compiler_type=none 324193326Sedfi 325193326Sed]) 326193326SedAC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) 327193326SedAM_CONDITIONAL([am__fastdep$1], [ 328193326Sed test "x$enable_dependency_tracking" != xno \ 329193326Sed && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) 330193326Sed]) 331193326Sed 332193326Sed 333193326Sed# AM_SET_DEPDIR 334193326Sed# ------------- 335193326Sed# Choose a directory name for dependency files. 336193326Sed# This macro is AC_REQUIREd in _AM_DEPENDENCIES 337193326SedAC_DEFUN([AM_SET_DEPDIR], 338193326Sed[AC_REQUIRE([AM_SET_LEADING_DOT])dnl 339193326SedAC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl 340193326Sed]) 341193326Sed 342193326Sed 343193326Sed# AM_DEP_TRACK 344193326Sed# ------------ 345193326SedAC_DEFUN([AM_DEP_TRACK], 346193326Sed[AC_ARG_ENABLE(dependency-tracking, 347193326Sed[ --disable-dependency-tracking speeds up one-time build 348193326Sed --enable-dependency-tracking do not reject slow dependency extractors]) 349193326Sedif test "x$enable_dependency_tracking" != xno; then 350193326Sed am_depcomp="$ac_aux_dir/depcomp" 351193326Sed AMDEPBACKSLASH='\' 352193326Sed am__nodep='_no' 353193326Sedfi 354193326SedAM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) 355193326SedAC_SUBST([AMDEPBACKSLASH])dnl 356193326Sed_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl 357193326SedAC_SUBST([am__nodep])dnl 358193326Sed_AM_SUBST_NOTMAKE([am__nodep])dnl 359193326Sed]) 360193326Sed 361193326Sed# Generate code to set up dependency tracking. -*- Autoconf -*- 362193326Sed 363193326Sed# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008 364193326Sed# Free Software Foundation, Inc. 365193326Sed# 366193326Sed# This file is free software; the Free Software Foundation 367193326Sed# gives unlimited permission to copy and/or distribute it, 368193326Sed# with or without modifications, as long as this notice is preserved. 369193326Sed 370193326Sed#serial 5 371193326Sed 372193326Sed# _AM_OUTPUT_DEPENDENCY_COMMANDS 373193326Sed# ------------------------------ 374193326SedAC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], 375193326Sed[{ 376193326Sed # Autoconf 2.62 quotes --file arguments for eval, but not when files 377193326Sed # are listed without --file. Let's play safe and only enable the eval 378193326Sed # if we detect the quoting. 379193326Sed case $CONFIG_FILES in 380193326Sed *\'*) eval set x "$CONFIG_FILES" ;; 381193326Sed *) set x $CONFIG_FILES ;; 382193326Sed esac 383193326Sed shift 384193326Sed for mf 385193326Sed do 386193326Sed # Strip MF so we end up with the name of the file. 387193326Sed mf=`echo "$mf" | sed -e 's/:.*$//'` 388193326Sed # Check whether this is an Automake generated Makefile or not. 389193326Sed # We used to match only the files named `Makefile.in', but 390193326Sed # some people rename them; so instead we look at the file content. 391193326Sed # Grep'ing the first line is not enough: some people post-process 392193326Sed # each Makefile.in and add a new line on top of each file to say so. 393193326Sed # Grep'ing the whole file is not good either: AIX grep has a line 394193326Sed # limit of 2048, but all sed's we know have understand at least 4000. 395193326Sed if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 396193326Sed dirpart=`AS_DIRNAME("$mf")` 397193326Sed else 398193326Sed continue 399193326Sed fi 400193326Sed # Extract the definition of DEPDIR, am__include, and am__quote 401193326Sed # from the Makefile without running `make'. 402193326Sed DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 403193326Sed test -z "$DEPDIR" && continue 404193326Sed am__include=`sed -n 's/^am__include = //p' < "$mf"` 405193326Sed test -z "am__include" && continue 406193326Sed am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 407193326Sed # When using ansi2knr, U may be empty or an underscore; expand it 408193326Sed U=`sed -n 's/^U = //p' < "$mf"` 409193326Sed # Find all dependency output files, they are included files with 410193326Sed # $(DEPDIR) in their names. We invoke sed twice because it is the 411193326Sed # simplest approach to changing $(DEPDIR) to its actual value in the 412193326Sed # expansion. 413193326Sed for file in `sed -n " 414193326Sed s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 415193326Sed sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 416193326Sed # Make sure the directory exists. 417193326Sed test -f "$dirpart/$file" && continue 418193326Sed fdir=`AS_DIRNAME(["$file"])` 419193326Sed AS_MKDIR_P([$dirpart/$fdir]) 420193326Sed # echo "creating $dirpart/$file" 421193326Sed echo '# dummy' > "$dirpart/$file" 422193326Sed done 423193326Sed done 424193326Sed} 425193326Sed])# _AM_OUTPUT_DEPENDENCY_COMMANDS 426193326Sed 427193326Sed 428193326Sed# AM_OUTPUT_DEPENDENCY_COMMANDS 429193326Sed# ----------------------------- 430193326Sed# This macro should only be invoked once -- use via AC_REQUIRE. 431193326Sed# 432193326Sed# This code is only required when automatic dependency tracking 433193326Sed# is enabled. FIXME. This creates each `.P' file that we will 434193326Sed# need in order to bootstrap the dependency handling code. 435193326SedAC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], 436193326Sed[AC_CONFIG_COMMANDS([depfiles], 437193326Sed [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], 438193326Sed [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) 439193326Sed]) 440193326Sed 441193326Sed# Do all the work for Automake. -*- Autoconf -*- 442193326Sed 443193326Sed# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 444193326Sed# 2005, 2006, 2008, 2009 Free Software Foundation, Inc. 445193326Sed# 446193326Sed# This file is free software; the Free Software Foundation 447193326Sed# gives unlimited permission to copy and/or distribute it, 448193326Sed# with or without modifications, as long as this notice is preserved. 449193326Sed 450193326Sed# serial 16 451193326Sed 452193326Sed# This macro actually does too much. Some checks are only needed if 453193326Sed# your package does certain things. But this isn't really a big deal. 454193326Sed 455193326Sed# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) 456193326Sed# AM_INIT_AUTOMAKE([OPTIONS]) 457193326Sed# ----------------------------------------------- 458193326Sed# The call with PACKAGE and VERSION arguments is the old style 459193326Sed# call (pre autoconf-2.50), which is being phased out. PACKAGE 460193326Sed# and VERSION should now be passed to AC_INIT and removed from 461193326Sed# the call to AM_INIT_AUTOMAKE. 462193326Sed# We support both call styles for the transition. After 463193326Sed# the next Automake release, Autoconf can make the AC_INIT 464193326Sed# arguments mandatory, and then we can depend on a new Autoconf 465193326Sed# release and drop the old call support. 466193326SedAC_DEFUN([AM_INIT_AUTOMAKE], 467193326Sed[AC_PREREQ([2.62])dnl 468193326Seddnl Autoconf wants to disallow AM_ names. We explicitly allow 469193326Seddnl the ones we care about. 470193326Sedm4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl 471193326SedAC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl 472193326SedAC_REQUIRE([AC_PROG_INSTALL])dnl 473193326Sedif test "`cd $srcdir && pwd`" != "`pwd`"; then 474193326Sed # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 475193326Sed # is not polluted with repeated "-I." 476193326Sed AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl 477193326Sed # test to see if srcdir already configured 478193326Sed if test -f $srcdir/config.status; then 479193326Sed AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) 480193326Sed fi 481193326Sedfi 482193326Sed 483193326Sed# test whether we have cygpath 484193326Sedif test -z "$CYGPATH_W"; then 485193326Sed if (cygpath --version) >/dev/null 2>/dev/null; then 486193326Sed CYGPATH_W='cygpath -w' 487193326Sed else 488193326Sed CYGPATH_W=echo 489193326Sed fi 490193326Sedfi 491193326SedAC_SUBST([CYGPATH_W]) 492193326Sed 493193326Sed# Define the identity of the package. 494193326Seddnl Distinguish between old-style and new-style calls. 495m4_ifval([$2], 496[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl 497 AC_SUBST([PACKAGE], [$1])dnl 498 AC_SUBST([VERSION], [$2])], 499[_AM_SET_OPTIONS([$1])dnl 500dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. 501m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,, 502 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl 503 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl 504 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl 505 506_AM_IF_OPTION([no-define],, 507[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) 508 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl 509 510# Some tools Automake needs. 511AC_REQUIRE([AM_SANITY_CHECK])dnl 512AC_REQUIRE([AC_ARG_PROGRAM])dnl 513AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) 514AM_MISSING_PROG(AUTOCONF, autoconf) 515AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) 516AM_MISSING_PROG(AUTOHEADER, autoheader) 517AM_MISSING_PROG(MAKEINFO, makeinfo) 518AC_REQUIRE([AM_PROG_INSTALL_SH])dnl 519AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl 520AC_REQUIRE([AM_PROG_MKDIR_P])dnl 521# We need awk for the "check" target. The system "awk" is bad on 522# some platforms. 523AC_REQUIRE([AC_PROG_AWK])dnl 524AC_REQUIRE([AC_PROG_MAKE_SET])dnl 525AC_REQUIRE([AM_SET_LEADING_DOT])dnl 526_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], 527 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], 528 [_AM_PROG_TAR([v7])])]) 529_AM_IF_OPTION([no-dependencies],, 530[AC_PROVIDE_IFELSE([AC_PROG_CC], 531 [_AM_DEPENDENCIES(CC)], 532 [define([AC_PROG_CC], 533 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl 534AC_PROVIDE_IFELSE([AC_PROG_CXX], 535 [_AM_DEPENDENCIES(CXX)], 536 [define([AC_PROG_CXX], 537 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl 538AC_PROVIDE_IFELSE([AC_PROG_OBJC], 539 [_AM_DEPENDENCIES(OBJC)], 540 [define([AC_PROG_OBJC], 541 defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl 542]) 543_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl 544dnl The `parallel-tests' driver may need to know about EXEEXT, so add the 545dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro 546dnl is hooked onto _AC_COMPILER_EXEEXT early, see below. 547AC_CONFIG_COMMANDS_PRE(dnl 548[m4_provide_if([_AM_COMPILER_EXEEXT], 549 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl 550]) 551 552dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not 553dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further 554dnl mangled by Autoconf and run in a shell conditional statement. 555m4_define([_AC_COMPILER_EXEEXT], 556m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) 557 558 559# When config.status generates a header, we must update the stamp-h file. 560# This file resides in the same directory as the config header 561# that is generated. The stamp files are numbered to have different names. 562 563# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the 564# loop where config.status creates the headers, so we can generate 565# our stamp files there. 566AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], 567[# Compute $1's index in $config_headers. 568_am_arg=$1 569_am_stamp_count=1 570for _am_header in $config_headers :; do 571 case $_am_header in 572 $_am_arg | $_am_arg:* ) 573 break ;; 574 * ) 575 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 576 esac 577done 578echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) 579 580# Copyright (C) 2001, 2003, 2005, 2008, 2011 Free Software Foundation, 581# Inc. 582# 583# This file is free software; the Free Software Foundation 584# gives unlimited permission to copy and/or distribute it, 585# with or without modifications, as long as this notice is preserved. 586 587# serial 1 588 589# AM_PROG_INSTALL_SH 590# ------------------ 591# Define $install_sh. 592AC_DEFUN([AM_PROG_INSTALL_SH], 593[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 594if test x"${install_sh}" != xset; then 595 case $am_aux_dir in 596 *\ * | *\ *) 597 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 598 *) 599 install_sh="\${SHELL} $am_aux_dir/install-sh" 600 esac 601fi 602AC_SUBST(install_sh)]) 603 604# Add --enable-maintainer-mode option to configure. -*- Autoconf -*- 605# From Jim Meyering 606 607# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008, 608# 2011 Free Software Foundation, Inc. 609# 610# This file is free software; the Free Software Foundation 611# gives unlimited permission to copy and/or distribute it, 612# with or without modifications, as long as this notice is preserved. 613 614# serial 5 615 616# AM_MAINTAINER_MODE([DEFAULT-MODE]) 617# ---------------------------------- 618# Control maintainer-specific portions of Makefiles. 619# Default is to disable them, unless `enable' is passed literally. 620# For symmetry, `disable' may be passed as well. Anyway, the user 621# can override the default with the --enable/--disable switch. 622AC_DEFUN([AM_MAINTAINER_MODE], 623[m4_case(m4_default([$1], [disable]), 624 [enable], [m4_define([am_maintainer_other], [disable])], 625 [disable], [m4_define([am_maintainer_other], [enable])], 626 [m4_define([am_maintainer_other], [enable]) 627 m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])]) 628AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) 629 dnl maintainer-mode's default is 'disable' unless 'enable' is passed 630 AC_ARG_ENABLE([maintainer-mode], 631[ --][am_maintainer_other][-maintainer-mode am_maintainer_other make rules and dependencies not useful 632 (and sometimes confusing) to the casual installer], 633 [USE_MAINTAINER_MODE=$enableval], 634 [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes])) 635 AC_MSG_RESULT([$USE_MAINTAINER_MODE]) 636 AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes]) 637 MAINT=$MAINTAINER_MODE_TRUE 638 AC_SUBST([MAINT])dnl 639] 640) 641 642AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE]) 643 644# Check to see how 'make' treats includes. -*- Autoconf -*- 645 646# Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc. 647# 648# This file is free software; the Free Software Foundation 649# gives unlimited permission to copy and/or distribute it, 650# with or without modifications, as long as this notice is preserved. 651 652# serial 4 653 654# AM_MAKE_INCLUDE() 655# ----------------- 656# Check to see how make treats includes. 657AC_DEFUN([AM_MAKE_INCLUDE], 658[am_make=${MAKE-make} 659cat > confinc << 'END' 660am__doit: 661 @echo this is the am__doit target 662.PHONY: am__doit 663END 664# If we don't find an include directive, just comment out the code. 665AC_MSG_CHECKING([for style of include used by $am_make]) 666am__include="#" 667am__quote= 668_am_result=none 669# First try GNU make style include. 670echo "include confinc" > confmf 671# Ignore all kinds of additional output from `make'. 672case `$am_make -s -f confmf 2> /dev/null` in #( 673*the\ am__doit\ target*) 674 am__include=include 675 am__quote= 676 _am_result=GNU 677 ;; 678esac 679# Now try BSD make style include. 680if test "$am__include" = "#"; then 681 echo '.include "confinc"' > confmf 682 case `$am_make -s -f confmf 2> /dev/null` in #( 683 *the\ am__doit\ target*) 684 am__include=.include 685 am__quote="\"" 686 _am_result=BSD 687 ;; 688 esac 689fi 690AC_SUBST([am__include]) 691AC_SUBST([am__quote]) 692AC_MSG_RESULT([$_am_result]) 693rm -f confinc confmf 694]) 695 696# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- 697 698# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008 699# Free Software Foundation, Inc. 700# 701# This file is free software; the Free Software Foundation 702# gives unlimited permission to copy and/or distribute it, 703# with or without modifications, as long as this notice is preserved. 704 705# serial 6 706 707# AM_MISSING_PROG(NAME, PROGRAM) 708# ------------------------------ 709AC_DEFUN([AM_MISSING_PROG], 710[AC_REQUIRE([AM_MISSING_HAS_RUN]) 711$1=${$1-"${am_missing_run}$2"} 712AC_SUBST($1)]) 713 714 715# AM_MISSING_HAS_RUN 716# ------------------ 717# Define MISSING if not defined so far and test if it supports --run. 718# If it does, set am_missing_run to use it, otherwise, to nothing. 719AC_DEFUN([AM_MISSING_HAS_RUN], 720[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 721AC_REQUIRE_AUX_FILE([missing])dnl 722if test x"${MISSING+set}" != xset; then 723 case $am_aux_dir in 724 *\ * | *\ *) 725 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 726 *) 727 MISSING="\${SHELL} $am_aux_dir/missing" ;; 728 esac 729fi 730# Use eval to expand $SHELL 731if eval "$MISSING --run true"; then 732 am_missing_run="$MISSING --run " 733else 734 am_missing_run= 735 AC_MSG_WARN([`missing' script is too old or missing]) 736fi 737]) 738 739# Copyright (C) 2003, 2004, 2005, 2006, 2011 Free Software Foundation, 740# Inc. 741# 742# This file is free software; the Free Software Foundation 743# gives unlimited permission to copy and/or distribute it, 744# with or without modifications, as long as this notice is preserved. 745 746# serial 1 747 748# AM_PROG_MKDIR_P 749# --------------- 750# Check for `mkdir -p'. 751AC_DEFUN([AM_PROG_MKDIR_P], 752[AC_PREREQ([2.60])dnl 753AC_REQUIRE([AC_PROG_MKDIR_P])dnl 754dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, 755dnl while keeping a definition of mkdir_p for backward compatibility. 756dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. 757dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of 758dnl Makefile.ins that do not define MKDIR_P, so we do our own 759dnl adjustment using top_builddir (which is defined more often than 760dnl MKDIR_P). 761AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl 762case $mkdir_p in 763 [[\\/$]]* | ?:[[\\/]]*) ;; 764 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 765esac 766]) 767 768# Helper functions for option handling. -*- Autoconf -*- 769 770# Copyright (C) 2001, 2002, 2003, 2005, 2008, 2010 Free Software 771# Foundation, Inc. 772# 773# This file is free software; the Free Software Foundation 774# gives unlimited permission to copy and/or distribute it, 775# with or without modifications, as long as this notice is preserved. 776 777# serial 5 778 779# _AM_MANGLE_OPTION(NAME) 780# ----------------------- 781AC_DEFUN([_AM_MANGLE_OPTION], 782[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) 783 784# _AM_SET_OPTION(NAME) 785# -------------------- 786# Set option NAME. Presently that only means defining a flag for this option. 787AC_DEFUN([_AM_SET_OPTION], 788[m4_define(_AM_MANGLE_OPTION([$1]), 1)]) 789 790# _AM_SET_OPTIONS(OPTIONS) 791# ------------------------ 792# OPTIONS is a space-separated list of Automake options. 793AC_DEFUN([_AM_SET_OPTIONS], 794[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) 795 796# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) 797# ------------------------------------------- 798# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. 799AC_DEFUN([_AM_IF_OPTION], 800[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) 801 802# Check to make sure that the build environment is sane. -*- Autoconf -*- 803 804# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008 805# Free Software Foundation, Inc. 806# 807# This file is free software; the Free Software Foundation 808# gives unlimited permission to copy and/or distribute it, 809# with or without modifications, as long as this notice is preserved. 810 811# serial 5 812 813# AM_SANITY_CHECK 814# --------------- 815AC_DEFUN([AM_SANITY_CHECK], 816[AC_MSG_CHECKING([whether build environment is sane]) 817# Just in case 818sleep 1 819echo timestamp > conftest.file 820# Reject unsafe characters in $srcdir or the absolute working directory 821# name. Accept space and tab only in the latter. 822am_lf=' 823' 824case `pwd` in 825 *[[\\\"\#\$\&\'\`$am_lf]]*) 826 AC_MSG_ERROR([unsafe absolute working directory name]);; 827esac 828case $srcdir in 829 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) 830 AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);; 831esac 832 833# Do `set' in a subshell so we don't clobber the current shell's 834# arguments. Must try -L first in case configure is actually a 835# symlink; some systems play weird games with the mod time of symlinks 836# (eg FreeBSD returns the mod time of the symlink's containing 837# directory). 838if ( 839 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 840 if test "$[*]" = "X"; then 841 # -L didn't work. 842 set X `ls -t "$srcdir/configure" conftest.file` 843 fi 844 rm -f conftest.file 845 if test "$[*]" != "X $srcdir/configure conftest.file" \ 846 && test "$[*]" != "X conftest.file $srcdir/configure"; then 847 848 # If neither matched, then we have a broken ls. This can happen 849 # if, for instance, CONFIG_SHELL is bash and it inherits a 850 # broken ls alias from the environment. This has actually 851 # happened. Such a system could not be considered "sane". 852 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken 853alias in your environment]) 854 fi 855 856 test "$[2]" = conftest.file 857 ) 858then 859 # Ok. 860 : 861else 862 AC_MSG_ERROR([newly created file is older than distributed files! 863Check your system clock]) 864fi 865AC_MSG_RESULT(yes)]) 866 867# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc. 868# 869# This file is free software; the Free Software Foundation 870# gives unlimited permission to copy and/or distribute it, 871# with or without modifications, as long as this notice is preserved. 872 873# serial 1 874 875# AM_PROG_INSTALL_STRIP 876# --------------------- 877# One issue with vendor `install' (even GNU) is that you can't 878# specify the program used to strip binaries. This is especially 879# annoying in cross-compiling environments, where the build's strip 880# is unlikely to handle the host's binaries. 881# Fortunately install-sh will honor a STRIPPROG variable, so we 882# always use install-sh in `make install-strip', and initialize 883# STRIPPROG with the value of the STRIP variable (set by the user). 884AC_DEFUN([AM_PROG_INSTALL_STRIP], 885[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl 886# Installed binaries are usually stripped using `strip' when the user 887# run `make install-strip'. However `strip' might not be the right 888# tool to use in cross-compilation environments, therefore Automake 889# will honor the `STRIP' environment variable to overrule this program. 890dnl Don't test for $cross_compiling = yes, because it might be `maybe'. 891if test "$cross_compiling" != no; then 892 AC_CHECK_TOOL([STRIP], [strip], :) 893fi 894INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 895AC_SUBST([INSTALL_STRIP_PROGRAM])]) 896 897# Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc. 898# 899# This file is free software; the Free Software Foundation 900# gives unlimited permission to copy and/or distribute it, 901# with or without modifications, as long as this notice is preserved. 902 903# serial 3 904 905# _AM_SUBST_NOTMAKE(VARIABLE) 906# --------------------------- 907# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. 908# This macro is traced by Automake. 909AC_DEFUN([_AM_SUBST_NOTMAKE]) 910 911# AM_SUBST_NOTMAKE(VARIABLE) 912# -------------------------- 913# Public sister of _AM_SUBST_NOTMAKE. 914AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) 915 916# Check how to create a tarball. -*- Autoconf -*- 917 918# Copyright (C) 2004, 2005, 2012 Free Software Foundation, Inc. 919# 920# This file is free software; the Free Software Foundation 921# gives unlimited permission to copy and/or distribute it, 922# with or without modifications, as long as this notice is preserved. 923 924# serial 2 925 926# _AM_PROG_TAR(FORMAT) 927# -------------------- 928# Check how to create a tarball in format FORMAT. 929# FORMAT should be one of `v7', `ustar', or `pax'. 930# 931# Substitute a variable $(am__tar) that is a command 932# writing to stdout a FORMAT-tarball containing the directory 933# $tardir. 934# tardir=directory && $(am__tar) > result.tar 935# 936# Substitute a variable $(am__untar) that extract such 937# a tarball read from stdin. 938# $(am__untar) < result.tar 939AC_DEFUN([_AM_PROG_TAR], 940[# Always define AMTAR for backward compatibility. Yes, it's still used 941# in the wild :-( We should find a proper way to deprecate it ... 942AC_SUBST([AMTAR], ['$${TAR-tar}']) 943m4_if([$1], [v7], 944 [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'], 945 [m4_case([$1], [ustar],, [pax],, 946 [m4_fatal([Unknown tar format])]) 947AC_MSG_CHECKING([how to create a $1 tar archive]) 948# Loop over all known methods to create a tar archive until one works. 949_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' 950_am_tools=${am_cv_prog_tar_$1-$_am_tools} 951# Do not fold the above two line into one, because Tru64 sh and 952# Solaris sh will not grok spaces in the rhs of `-'. 953for _am_tool in $_am_tools 954do 955 case $_am_tool in 956 gnutar) 957 for _am_tar in tar gnutar gtar; 958 do 959 AM_RUN_LOG([$_am_tar --version]) && break 960 done 961 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' 962 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' 963 am__untar="$_am_tar -xf -" 964 ;; 965 plaintar) 966 # Must skip GNU tar: if it does not support --format= it doesn't create 967 # ustar tarball either. 968 (tar --version) >/dev/null 2>&1 && continue 969 am__tar='tar chf - "$$tardir"' 970 am__tar_='tar chf - "$tardir"' 971 am__untar='tar xf -' 972 ;; 973 pax) 974 am__tar='pax -L -x $1 -w "$$tardir"' 975 am__tar_='pax -L -x $1 -w "$tardir"' 976 am__untar='pax -r' 977 ;; 978 cpio) 979 am__tar='find "$$tardir" -print | cpio -o -H $1 -L' 980 am__tar_='find "$tardir" -print | cpio -o -H $1 -L' 981 am__untar='cpio -i -H $1 -d' 982 ;; 983 none) 984 am__tar=false 985 am__tar_=false 986 am__untar=false 987 ;; 988 esac 989 990 # If the value was cached, stop now. We just wanted to have am__tar 991 # and am__untar set. 992 test -n "${am_cv_prog_tar_$1}" && break 993 994 # tar/untar a dummy directory, and stop if the command works 995 rm -rf conftest.dir 996 mkdir conftest.dir 997 echo GrepMe > conftest.dir/file 998 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) 999 rm -rf conftest.dir 1000 if test -s conftest.tar; then 1001 AM_RUN_LOG([$am__untar <conftest.tar]) 1002 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 1003 fi 1004done 1005rm -rf conftest.dir 1006 1007AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) 1008AC_MSG_RESULT([$am_cv_prog_tar_$1])]) 1009AC_SUBST([am__tar]) 1010AC_SUBST([am__untar]) 1011]) # _AM_PROG_TAR 1012 1013m4_include([../config/acx.m4]) 1014m4_include([../config/depstand.m4]) 1015m4_include([../config/lead-dot.m4]) 1016m4_include([../config/lthostflags.m4]) 1017m4_include([../config/multi.m4]) 1018m4_include([../config/override.m4]) 1019m4_include([../config/stdint.m4]) 1020m4_include([../ltoptions.m4]) 1021m4_include([../ltsugar.m4]) 1022m4_include([../ltversion.m4]) 1023m4_include([../lt~obsolete.m4]) 1024m4_include([acinclude.m4]) 1025