1*a376eb32SXin Li# generated automatically by aclocal 1.11.6 -*- Autoconf -*- 2*a376eb32SXin Li 3*a376eb32SXin Li# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 4*a376eb32SXin Li# 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, 5*a376eb32SXin Li# Inc. 6*a376eb32SXin Li# This file is free software; the Free Software Foundation 7*a376eb32SXin Li# gives unlimited permission to copy and/or distribute it, 8*a376eb32SXin Li# with or without modifications, as long as this notice is preserved. 9*a376eb32SXin Li 10*a376eb32SXin Li# This program is distributed in the hope that it will be useful, 11*a376eb32SXin Li# but WITHOUT ANY WARRANTY, to the extent permitted by law; without 12*a376eb32SXin Li# even the implied warranty of MERCHANTABILITY or FITNESS FOR A 13*a376eb32SXin Li# PARTICULAR PURPOSE. 14*a376eb32SXin Li 15*a376eb32SXin Lim4_ifndef([AC_AUTOCONF_VERSION], 16*a376eb32SXin Li [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl 17*a376eb32SXin Lim4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],, 18*a376eb32SXin Li[m4_warning([this file was generated for autoconf 2.69. 19*a376eb32SXin LiYou have another version of autoconf. It may work, but is not guaranteed to. 20*a376eb32SXin LiIf you have problems, you may need to regenerate the build system entirely. 21*a376eb32SXin LiTo do so, use the procedure documented by the package, typically `autoreconf'.])]) 22*a376eb32SXin Li 23*a376eb32SXin Li# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008, 2011 Free Software 24*a376eb32SXin Li# Foundation, Inc. 25*a376eb32SXin Li# 26*a376eb32SXin Li# This file is free software; the Free Software Foundation 27*a376eb32SXin Li# gives unlimited permission to copy and/or distribute it, 28*a376eb32SXin Li# with or without modifications, as long as this notice is preserved. 29*a376eb32SXin Li 30*a376eb32SXin Li# serial 1 31*a376eb32SXin Li 32*a376eb32SXin Li# AM_AUTOMAKE_VERSION(VERSION) 33*a376eb32SXin Li# ---------------------------- 34*a376eb32SXin Li# Automake X.Y traces this macro to ensure aclocal.m4 has been 35*a376eb32SXin Li# generated from the m4 files accompanying Automake X.Y. 36*a376eb32SXin Li# (This private macro should not be called outside this file.) 37*a376eb32SXin LiAC_DEFUN([AM_AUTOMAKE_VERSION], 38*a376eb32SXin Li[am__api_version='1.11' 39*a376eb32SXin Lidnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to 40*a376eb32SXin Lidnl require some minimum version. Point them to the right macro. 41*a376eb32SXin Lim4_if([$1], [1.11.6], [], 42*a376eb32SXin Li [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl 43*a376eb32SXin Li]) 44*a376eb32SXin Li 45*a376eb32SXin Li# _AM_AUTOCONF_VERSION(VERSION) 46*a376eb32SXin Li# ----------------------------- 47*a376eb32SXin Li# aclocal traces this macro to find the Autoconf version. 48*a376eb32SXin Li# This is a private macro too. Using m4_define simplifies 49*a376eb32SXin Li# the logic in aclocal, which can simply ignore this definition. 50*a376eb32SXin Lim4_define([_AM_AUTOCONF_VERSION], []) 51*a376eb32SXin Li 52*a376eb32SXin Li# AM_SET_CURRENT_AUTOMAKE_VERSION 53*a376eb32SXin Li# ------------------------------- 54*a376eb32SXin Li# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. 55*a376eb32SXin Li# This function is AC_REQUIREd by AM_INIT_AUTOMAKE. 56*a376eb32SXin LiAC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], 57*a376eb32SXin Li[AM_AUTOMAKE_VERSION([1.11.6])dnl 58*a376eb32SXin Lim4_ifndef([AC_AUTOCONF_VERSION], 59*a376eb32SXin Li [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl 60*a376eb32SXin Li_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) 61*a376eb32SXin Li 62*a376eb32SXin Li# AM_AUX_DIR_EXPAND -*- Autoconf -*- 63*a376eb32SXin Li 64*a376eb32SXin Li# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc. 65*a376eb32SXin Li# 66*a376eb32SXin Li# This file is free software; the Free Software Foundation 67*a376eb32SXin Li# gives unlimited permission to copy and/or distribute it, 68*a376eb32SXin Li# with or without modifications, as long as this notice is preserved. 69*a376eb32SXin Li 70*a376eb32SXin Li# serial 1 71*a376eb32SXin Li 72*a376eb32SXin Li# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets 73*a376eb32SXin Li# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to 74*a376eb32SXin Li# `$srcdir', `$srcdir/..', or `$srcdir/../..'. 75*a376eb32SXin Li# 76*a376eb32SXin Li# Of course, Automake must honor this variable whenever it calls a 77*a376eb32SXin Li# tool from the auxiliary directory. The problem is that $srcdir (and 78*a376eb32SXin Li# therefore $ac_aux_dir as well) can be either absolute or relative, 79*a376eb32SXin Li# depending on how configure is run. This is pretty annoying, since 80*a376eb32SXin Li# it makes $ac_aux_dir quite unusable in subdirectories: in the top 81*a376eb32SXin Li# source directory, any form will work fine, but in subdirectories a 82*a376eb32SXin Li# relative path needs to be adjusted first. 83*a376eb32SXin Li# 84*a376eb32SXin Li# $ac_aux_dir/missing 85*a376eb32SXin Li# fails when called from a subdirectory if $ac_aux_dir is relative 86*a376eb32SXin Li# $top_srcdir/$ac_aux_dir/missing 87*a376eb32SXin Li# fails if $ac_aux_dir is absolute, 88*a376eb32SXin Li# fails when called from a subdirectory in a VPATH build with 89*a376eb32SXin Li# a relative $ac_aux_dir 90*a376eb32SXin Li# 91*a376eb32SXin Li# The reason of the latter failure is that $top_srcdir and $ac_aux_dir 92*a376eb32SXin Li# are both prefixed by $srcdir. In an in-source build this is usually 93*a376eb32SXin Li# harmless because $srcdir is `.', but things will broke when you 94*a376eb32SXin Li# start a VPATH build or use an absolute $srcdir. 95*a376eb32SXin Li# 96*a376eb32SXin Li# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, 97*a376eb32SXin Li# iff we strip the leading $srcdir from $ac_aux_dir. That would be: 98*a376eb32SXin Li# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` 99*a376eb32SXin Li# and then we would define $MISSING as 100*a376eb32SXin Li# MISSING="\${SHELL} $am_aux_dir/missing" 101*a376eb32SXin Li# This will work as long as MISSING is not called from configure, because 102*a376eb32SXin Li# unfortunately $(top_srcdir) has no meaning in configure. 103*a376eb32SXin Li# However there are other variables, like CC, which are often used in 104*a376eb32SXin Li# configure, and could therefore not use this "fixed" $ac_aux_dir. 105*a376eb32SXin Li# 106*a376eb32SXin Li# Another solution, used here, is to always expand $ac_aux_dir to an 107*a376eb32SXin Li# absolute PATH. The drawback is that using absolute paths prevent a 108*a376eb32SXin Li# configured tree to be moved without reconfiguration. 109*a376eb32SXin Li 110*a376eb32SXin LiAC_DEFUN([AM_AUX_DIR_EXPAND], 111*a376eb32SXin Li[dnl Rely on autoconf to set up CDPATH properly. 112*a376eb32SXin LiAC_PREREQ([2.50])dnl 113*a376eb32SXin Li# expand $ac_aux_dir to an absolute path 114*a376eb32SXin Liam_aux_dir=`cd $ac_aux_dir && pwd` 115*a376eb32SXin Li]) 116*a376eb32SXin Li 117*a376eb32SXin Li# AM_CONDITIONAL -*- Autoconf -*- 118*a376eb32SXin Li 119*a376eb32SXin Li# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008 120*a376eb32SXin Li# Free Software Foundation, Inc. 121*a376eb32SXin Li# 122*a376eb32SXin Li# This file is free software; the Free Software Foundation 123*a376eb32SXin Li# gives unlimited permission to copy and/or distribute it, 124*a376eb32SXin Li# with or without modifications, as long as this notice is preserved. 125*a376eb32SXin Li 126*a376eb32SXin Li# serial 9 127*a376eb32SXin Li 128*a376eb32SXin Li# AM_CONDITIONAL(NAME, SHELL-CONDITION) 129*a376eb32SXin Li# ------------------------------------- 130*a376eb32SXin Li# Define a conditional. 131*a376eb32SXin LiAC_DEFUN([AM_CONDITIONAL], 132*a376eb32SXin Li[AC_PREREQ(2.52)dnl 133*a376eb32SXin Li ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], 134*a376eb32SXin Li [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl 135*a376eb32SXin LiAC_SUBST([$1_TRUE])dnl 136*a376eb32SXin LiAC_SUBST([$1_FALSE])dnl 137*a376eb32SXin Li_AM_SUBST_NOTMAKE([$1_TRUE])dnl 138*a376eb32SXin Li_AM_SUBST_NOTMAKE([$1_FALSE])dnl 139*a376eb32SXin Lim4_define([_AM_COND_VALUE_$1], [$2])dnl 140*a376eb32SXin Liif $2; then 141*a376eb32SXin Li $1_TRUE= 142*a376eb32SXin Li $1_FALSE='#' 143*a376eb32SXin Lielse 144*a376eb32SXin Li $1_TRUE='#' 145*a376eb32SXin Li $1_FALSE= 146*a376eb32SXin Lifi 147*a376eb32SXin LiAC_CONFIG_COMMANDS_PRE( 148*a376eb32SXin Li[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then 149*a376eb32SXin Li AC_MSG_ERROR([[conditional "$1" was never defined. 150*a376eb32SXin LiUsually this means the macro was only invoked conditionally.]]) 151*a376eb32SXin Lifi])]) 152*a376eb32SXin Li 153*a376eb32SXin Li# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009, 154*a376eb32SXin Li# 2010, 2011 Free Software Foundation, Inc. 155*a376eb32SXin Li# 156*a376eb32SXin Li# This file is free software; the Free Software Foundation 157*a376eb32SXin Li# gives unlimited permission to copy and/or distribute it, 158*a376eb32SXin Li# with or without modifications, as long as this notice is preserved. 159*a376eb32SXin Li 160*a376eb32SXin Li# serial 12 161*a376eb32SXin Li 162*a376eb32SXin Li# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be 163*a376eb32SXin Li# written in clear, in which case automake, when reading aclocal.m4, 164*a376eb32SXin Li# will think it sees a *use*, and therefore will trigger all it's 165*a376eb32SXin Li# C support machinery. Also note that it means that autoscan, seeing 166*a376eb32SXin Li# CC etc. in the Makefile, will ask for an AC_PROG_CC use... 167*a376eb32SXin Li 168*a376eb32SXin Li 169*a376eb32SXin Li# _AM_DEPENDENCIES(NAME) 170*a376eb32SXin Li# ---------------------- 171*a376eb32SXin Li# See how the compiler implements dependency checking. 172*a376eb32SXin Li# NAME is "CC", "CXX", "GCJ", or "OBJC". 173*a376eb32SXin Li# We try a few techniques and use that to set a single cache variable. 174*a376eb32SXin Li# 175*a376eb32SXin Li# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was 176*a376eb32SXin Li# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular 177*a376eb32SXin Li# dependency, and given that the user is not expected to run this macro, 178*a376eb32SXin Li# just rely on AC_PROG_CC. 179*a376eb32SXin LiAC_DEFUN([_AM_DEPENDENCIES], 180*a376eb32SXin Li[AC_REQUIRE([AM_SET_DEPDIR])dnl 181*a376eb32SXin LiAC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl 182*a376eb32SXin LiAC_REQUIRE([AM_MAKE_INCLUDE])dnl 183*a376eb32SXin LiAC_REQUIRE([AM_DEP_TRACK])dnl 184*a376eb32SXin Li 185*a376eb32SXin Liifelse([$1], CC, [depcc="$CC" am_compiler_list=], 186*a376eb32SXin Li [$1], CXX, [depcc="$CXX" am_compiler_list=], 187*a376eb32SXin Li [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], 188*a376eb32SXin Li [$1], UPC, [depcc="$UPC" am_compiler_list=], 189*a376eb32SXin Li [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], 190*a376eb32SXin Li [depcc="$$1" am_compiler_list=]) 191*a376eb32SXin Li 192*a376eb32SXin LiAC_CACHE_CHECK([dependency style of $depcc], 193*a376eb32SXin Li [am_cv_$1_dependencies_compiler_type], 194*a376eb32SXin Li[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 195*a376eb32SXin Li # We make a subdir and do the tests there. Otherwise we can end up 196*a376eb32SXin Li # making bogus files that we don't know about and never remove. For 197*a376eb32SXin Li # instance it was reported that on HP-UX the gcc test will end up 198*a376eb32SXin Li # making a dummy file named `D' -- because `-MD' means `put the output 199*a376eb32SXin Li # in D'. 200*a376eb32SXin Li rm -rf conftest.dir 201*a376eb32SXin Li mkdir conftest.dir 202*a376eb32SXin Li # Copy depcomp to subdir because otherwise we won't find it if we're 203*a376eb32SXin Li # using a relative directory. 204*a376eb32SXin Li cp "$am_depcomp" conftest.dir 205*a376eb32SXin Li cd conftest.dir 206*a376eb32SXin Li # We will build objects and dependencies in a subdirectory because 207*a376eb32SXin Li # it helps to detect inapplicable dependency modes. For instance 208*a376eb32SXin Li # both Tru64's cc and ICC support -MD to output dependencies as a 209*a376eb32SXin Li # side effect of compilation, but ICC will put the dependencies in 210*a376eb32SXin Li # the current directory while Tru64 will put them in the object 211*a376eb32SXin Li # directory. 212*a376eb32SXin Li mkdir sub 213*a376eb32SXin Li 214*a376eb32SXin Li am_cv_$1_dependencies_compiler_type=none 215*a376eb32SXin Li if test "$am_compiler_list" = ""; then 216*a376eb32SXin Li am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` 217*a376eb32SXin Li fi 218*a376eb32SXin Li am__universal=false 219*a376eb32SXin Li m4_case([$1], [CC], 220*a376eb32SXin Li [case " $depcc " in #( 221*a376eb32SXin Li *\ -arch\ *\ -arch\ *) am__universal=true ;; 222*a376eb32SXin Li esac], 223*a376eb32SXin Li [CXX], 224*a376eb32SXin Li [case " $depcc " in #( 225*a376eb32SXin Li *\ -arch\ *\ -arch\ *) am__universal=true ;; 226*a376eb32SXin Li esac]) 227*a376eb32SXin Li 228*a376eb32SXin Li for depmode in $am_compiler_list; do 229*a376eb32SXin Li # Setup a source with many dependencies, because some compilers 230*a376eb32SXin Li # like to wrap large dependency lists on column 80 (with \), and 231*a376eb32SXin Li # we should not choose a depcomp mode which is confused by this. 232*a376eb32SXin Li # 233*a376eb32SXin Li # We need to recreate these files for each test, as the compiler may 234*a376eb32SXin Li # overwrite some of them when testing with obscure command lines. 235*a376eb32SXin Li # This happens at least with the AIX C compiler. 236*a376eb32SXin Li : > sub/conftest.c 237*a376eb32SXin Li for i in 1 2 3 4 5 6; do 238*a376eb32SXin Li echo '#include "conftst'$i'.h"' >> sub/conftest.c 239*a376eb32SXin Li # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 240*a376eb32SXin Li # Solaris 8's {/usr,}/bin/sh. 241*a376eb32SXin Li touch sub/conftst$i.h 242*a376eb32SXin Li done 243*a376eb32SXin Li echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 244*a376eb32SXin Li 245*a376eb32SXin Li # We check with `-c' and `-o' for the sake of the "dashmstdout" 246*a376eb32SXin Li # mode. It turns out that the SunPro C++ compiler does not properly 247*a376eb32SXin Li # handle `-M -o', and we need to detect this. Also, some Intel 248*a376eb32SXin Li # versions had trouble with output in subdirs 249*a376eb32SXin Li am__obj=sub/conftest.${OBJEXT-o} 250*a376eb32SXin Li am__minus_obj="-o $am__obj" 251*a376eb32SXin Li case $depmode in 252*a376eb32SXin Li gcc) 253*a376eb32SXin Li # This depmode causes a compiler race in universal mode. 254*a376eb32SXin Li test "$am__universal" = false || continue 255*a376eb32SXin Li ;; 256*a376eb32SXin Li nosideeffect) 257*a376eb32SXin Li # after this tag, mechanisms are not by side-effect, so they'll 258*a376eb32SXin Li # only be used when explicitly requested 259*a376eb32SXin Li if test "x$enable_dependency_tracking" = xyes; then 260*a376eb32SXin Li continue 261*a376eb32SXin Li else 262*a376eb32SXin Li break 263*a376eb32SXin Li fi 264*a376eb32SXin Li ;; 265*a376eb32SXin Li msvc7 | msvc7msys | msvisualcpp | msvcmsys) 266*a376eb32SXin Li # This compiler won't grok `-c -o', but also, the minuso test has 267*a376eb32SXin Li # not run yet. These depmodes are late enough in the game, and 268*a376eb32SXin Li # so weak that their functioning should not be impacted. 269*a376eb32SXin Li am__obj=conftest.${OBJEXT-o} 270*a376eb32SXin Li am__minus_obj= 271*a376eb32SXin Li ;; 272*a376eb32SXin Li none) break ;; 273*a376eb32SXin Li esac 274*a376eb32SXin Li if depmode=$depmode \ 275*a376eb32SXin Li source=sub/conftest.c object=$am__obj \ 276*a376eb32SXin Li depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 277*a376eb32SXin Li $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 278*a376eb32SXin Li >/dev/null 2>conftest.err && 279*a376eb32SXin Li grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 280*a376eb32SXin Li grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 281*a376eb32SXin Li grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 282*a376eb32SXin Li ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 283*a376eb32SXin Li # icc doesn't choke on unknown options, it will just issue warnings 284*a376eb32SXin Li # or remarks (even with -Werror). So we grep stderr for any message 285*a376eb32SXin Li # that says an option was ignored or not supported. 286*a376eb32SXin Li # When given -MP, icc 7.0 and 7.1 complain thusly: 287*a376eb32SXin Li # icc: Command line warning: ignoring option '-M'; no argument required 288*a376eb32SXin Li # The diagnosis changed in icc 8.0: 289*a376eb32SXin Li # icc: Command line remark: option '-MP' not supported 290*a376eb32SXin Li if (grep 'ignoring option' conftest.err || 291*a376eb32SXin Li grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 292*a376eb32SXin Li am_cv_$1_dependencies_compiler_type=$depmode 293*a376eb32SXin Li break 294*a376eb32SXin Li fi 295*a376eb32SXin Li fi 296*a376eb32SXin Li done 297*a376eb32SXin Li 298*a376eb32SXin Li cd .. 299*a376eb32SXin Li rm -rf conftest.dir 300*a376eb32SXin Lielse 301*a376eb32SXin Li am_cv_$1_dependencies_compiler_type=none 302*a376eb32SXin Lifi 303*a376eb32SXin Li]) 304*a376eb32SXin LiAC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) 305*a376eb32SXin LiAM_CONDITIONAL([am__fastdep$1], [ 306*a376eb32SXin Li test "x$enable_dependency_tracking" != xno \ 307*a376eb32SXin Li && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) 308*a376eb32SXin Li]) 309*a376eb32SXin Li 310*a376eb32SXin Li 311*a376eb32SXin Li# AM_SET_DEPDIR 312*a376eb32SXin Li# ------------- 313*a376eb32SXin Li# Choose a directory name for dependency files. 314*a376eb32SXin Li# This macro is AC_REQUIREd in _AM_DEPENDENCIES 315*a376eb32SXin LiAC_DEFUN([AM_SET_DEPDIR], 316*a376eb32SXin Li[AC_REQUIRE([AM_SET_LEADING_DOT])dnl 317*a376eb32SXin LiAC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl 318*a376eb32SXin Li]) 319*a376eb32SXin Li 320*a376eb32SXin Li 321*a376eb32SXin Li# AM_DEP_TRACK 322*a376eb32SXin Li# ------------ 323*a376eb32SXin LiAC_DEFUN([AM_DEP_TRACK], 324*a376eb32SXin Li[AC_ARG_ENABLE(dependency-tracking, 325*a376eb32SXin Li[ --disable-dependency-tracking speeds up one-time build 326*a376eb32SXin Li --enable-dependency-tracking do not reject slow dependency extractors]) 327*a376eb32SXin Liif test "x$enable_dependency_tracking" != xno; then 328*a376eb32SXin Li am_depcomp="$ac_aux_dir/depcomp" 329*a376eb32SXin Li AMDEPBACKSLASH='\' 330*a376eb32SXin Li am__nodep='_no' 331*a376eb32SXin Lifi 332*a376eb32SXin LiAM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) 333*a376eb32SXin LiAC_SUBST([AMDEPBACKSLASH])dnl 334*a376eb32SXin Li_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl 335*a376eb32SXin LiAC_SUBST([am__nodep])dnl 336*a376eb32SXin Li_AM_SUBST_NOTMAKE([am__nodep])dnl 337*a376eb32SXin Li]) 338*a376eb32SXin Li 339*a376eb32SXin Li# Generate code to set up dependency tracking. -*- Autoconf -*- 340*a376eb32SXin Li 341*a376eb32SXin Li# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008 342*a376eb32SXin Li# Free Software Foundation, Inc. 343*a376eb32SXin Li# 344*a376eb32SXin Li# This file is free software; the Free Software Foundation 345*a376eb32SXin Li# gives unlimited permission to copy and/or distribute it, 346*a376eb32SXin Li# with or without modifications, as long as this notice is preserved. 347*a376eb32SXin Li 348*a376eb32SXin Li#serial 5 349*a376eb32SXin Li 350*a376eb32SXin Li# _AM_OUTPUT_DEPENDENCY_COMMANDS 351*a376eb32SXin Li# ------------------------------ 352*a376eb32SXin LiAC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], 353*a376eb32SXin Li[{ 354*a376eb32SXin Li # Autoconf 2.62 quotes --file arguments for eval, but not when files 355*a376eb32SXin Li # are listed without --file. Let's play safe and only enable the eval 356*a376eb32SXin Li # if we detect the quoting. 357*a376eb32SXin Li case $CONFIG_FILES in 358*a376eb32SXin Li *\'*) eval set x "$CONFIG_FILES" ;; 359*a376eb32SXin Li *) set x $CONFIG_FILES ;; 360*a376eb32SXin Li esac 361*a376eb32SXin Li shift 362*a376eb32SXin Li for mf 363*a376eb32SXin Li do 364*a376eb32SXin Li # Strip MF so we end up with the name of the file. 365*a376eb32SXin Li mf=`echo "$mf" | sed -e 's/:.*$//'` 366*a376eb32SXin Li # Check whether this is an Automake generated Makefile or not. 367*a376eb32SXin Li # We used to match only the files named `Makefile.in', but 368*a376eb32SXin Li # some people rename them; so instead we look at the file content. 369*a376eb32SXin Li # Grep'ing the first line is not enough: some people post-process 370*a376eb32SXin Li # each Makefile.in and add a new line on top of each file to say so. 371*a376eb32SXin Li # Grep'ing the whole file is not good either: AIX grep has a line 372*a376eb32SXin Li # limit of 2048, but all sed's we know have understand at least 4000. 373*a376eb32SXin Li if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 374*a376eb32SXin Li dirpart=`AS_DIRNAME("$mf")` 375*a376eb32SXin Li else 376*a376eb32SXin Li continue 377*a376eb32SXin Li fi 378*a376eb32SXin Li # Extract the definition of DEPDIR, am__include, and am__quote 379*a376eb32SXin Li # from the Makefile without running `make'. 380*a376eb32SXin Li DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 381*a376eb32SXin Li test -z "$DEPDIR" && continue 382*a376eb32SXin Li am__include=`sed -n 's/^am__include = //p' < "$mf"` 383*a376eb32SXin Li test -z "am__include" && continue 384*a376eb32SXin Li am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 385*a376eb32SXin Li # When using ansi2knr, U may be empty or an underscore; expand it 386*a376eb32SXin Li U=`sed -n 's/^U = //p' < "$mf"` 387*a376eb32SXin Li # Find all dependency output files, they are included files with 388*a376eb32SXin Li # $(DEPDIR) in their names. We invoke sed twice because it is the 389*a376eb32SXin Li # simplest approach to changing $(DEPDIR) to its actual value in the 390*a376eb32SXin Li # expansion. 391*a376eb32SXin Li for file in `sed -n " 392*a376eb32SXin Li s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 393*a376eb32SXin Li sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 394*a376eb32SXin Li # Make sure the directory exists. 395*a376eb32SXin Li test -f "$dirpart/$file" && continue 396*a376eb32SXin Li fdir=`AS_DIRNAME(["$file"])` 397*a376eb32SXin Li AS_MKDIR_P([$dirpart/$fdir]) 398*a376eb32SXin Li # echo "creating $dirpart/$file" 399*a376eb32SXin Li echo '# dummy' > "$dirpart/$file" 400*a376eb32SXin Li done 401*a376eb32SXin Li done 402*a376eb32SXin Li} 403*a376eb32SXin Li])# _AM_OUTPUT_DEPENDENCY_COMMANDS 404*a376eb32SXin Li 405*a376eb32SXin Li 406*a376eb32SXin Li# AM_OUTPUT_DEPENDENCY_COMMANDS 407*a376eb32SXin Li# ----------------------------- 408*a376eb32SXin Li# This macro should only be invoked once -- use via AC_REQUIRE. 409*a376eb32SXin Li# 410*a376eb32SXin Li# This code is only required when automatic dependency tracking 411*a376eb32SXin Li# is enabled. FIXME. This creates each `.P' file that we will 412*a376eb32SXin Li# need in order to bootstrap the dependency handling code. 413*a376eb32SXin LiAC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], 414*a376eb32SXin Li[AC_CONFIG_COMMANDS([depfiles], 415*a376eb32SXin Li [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], 416*a376eb32SXin Li [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) 417*a376eb32SXin Li]) 418*a376eb32SXin Li 419*a376eb32SXin Li# Do all the work for Automake. -*- Autoconf -*- 420*a376eb32SXin Li 421*a376eb32SXin Li# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 422*a376eb32SXin Li# 2005, 2006, 2008, 2009 Free Software Foundation, Inc. 423*a376eb32SXin Li# 424*a376eb32SXin Li# This file is free software; the Free Software Foundation 425*a376eb32SXin Li# gives unlimited permission to copy and/or distribute it, 426*a376eb32SXin Li# with or without modifications, as long as this notice is preserved. 427*a376eb32SXin Li 428*a376eb32SXin Li# serial 16 429*a376eb32SXin Li 430*a376eb32SXin Li# This macro actually does too much. Some checks are only needed if 431*a376eb32SXin Li# your package does certain things. But this isn't really a big deal. 432*a376eb32SXin Li 433*a376eb32SXin Li# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) 434*a376eb32SXin Li# AM_INIT_AUTOMAKE([OPTIONS]) 435*a376eb32SXin Li# ----------------------------------------------- 436*a376eb32SXin Li# The call with PACKAGE and VERSION arguments is the old style 437*a376eb32SXin Li# call (pre autoconf-2.50), which is being phased out. PACKAGE 438*a376eb32SXin Li# and VERSION should now be passed to AC_INIT and removed from 439*a376eb32SXin Li# the call to AM_INIT_AUTOMAKE. 440*a376eb32SXin Li# We support both call styles for the transition. After 441*a376eb32SXin Li# the next Automake release, Autoconf can make the AC_INIT 442*a376eb32SXin Li# arguments mandatory, and then we can depend on a new Autoconf 443*a376eb32SXin Li# release and drop the old call support. 444*a376eb32SXin LiAC_DEFUN([AM_INIT_AUTOMAKE], 445*a376eb32SXin Li[AC_PREREQ([2.62])dnl 446*a376eb32SXin Lidnl Autoconf wants to disallow AM_ names. We explicitly allow 447*a376eb32SXin Lidnl the ones we care about. 448*a376eb32SXin Lim4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl 449*a376eb32SXin LiAC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl 450*a376eb32SXin LiAC_REQUIRE([AC_PROG_INSTALL])dnl 451*a376eb32SXin Liif test "`cd $srcdir && pwd`" != "`pwd`"; then 452*a376eb32SXin Li # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 453*a376eb32SXin Li # is not polluted with repeated "-I." 454*a376eb32SXin Li AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl 455*a376eb32SXin Li # test to see if srcdir already configured 456*a376eb32SXin Li if test -f $srcdir/config.status; then 457*a376eb32SXin Li AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) 458*a376eb32SXin Li fi 459*a376eb32SXin Lifi 460*a376eb32SXin Li 461*a376eb32SXin Li# test whether we have cygpath 462*a376eb32SXin Liif test -z "$CYGPATH_W"; then 463*a376eb32SXin Li if (cygpath --version) >/dev/null 2>/dev/null; then 464*a376eb32SXin Li CYGPATH_W='cygpath -w' 465*a376eb32SXin Li else 466*a376eb32SXin Li CYGPATH_W=echo 467*a376eb32SXin Li fi 468*a376eb32SXin Lifi 469*a376eb32SXin LiAC_SUBST([CYGPATH_W]) 470*a376eb32SXin Li 471*a376eb32SXin Li# Define the identity of the package. 472*a376eb32SXin Lidnl Distinguish between old-style and new-style calls. 473*a376eb32SXin Lim4_ifval([$2], 474*a376eb32SXin Li[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl 475*a376eb32SXin Li AC_SUBST([PACKAGE], [$1])dnl 476*a376eb32SXin Li AC_SUBST([VERSION], [$2])], 477*a376eb32SXin Li[_AM_SET_OPTIONS([$1])dnl 478*a376eb32SXin Lidnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. 479*a376eb32SXin Lim4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,, 480*a376eb32SXin Li [m4_fatal([AC_INIT should be called with package and version arguments])])dnl 481*a376eb32SXin Li AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl 482*a376eb32SXin Li AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl 483*a376eb32SXin Li 484*a376eb32SXin Li_AM_IF_OPTION([no-define],, 485*a376eb32SXin Li[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) 486*a376eb32SXin Li AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl 487*a376eb32SXin Li 488*a376eb32SXin Li# Some tools Automake needs. 489*a376eb32SXin LiAC_REQUIRE([AM_SANITY_CHECK])dnl 490*a376eb32SXin LiAC_REQUIRE([AC_ARG_PROGRAM])dnl 491*a376eb32SXin LiAM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) 492*a376eb32SXin LiAM_MISSING_PROG(AUTOCONF, autoconf) 493*a376eb32SXin LiAM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) 494*a376eb32SXin LiAM_MISSING_PROG(AUTOHEADER, autoheader) 495*a376eb32SXin LiAM_MISSING_PROG(MAKEINFO, makeinfo) 496*a376eb32SXin LiAC_REQUIRE([AM_PROG_INSTALL_SH])dnl 497*a376eb32SXin LiAC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl 498*a376eb32SXin LiAC_REQUIRE([AM_PROG_MKDIR_P])dnl 499*a376eb32SXin Li# We need awk for the "check" target. The system "awk" is bad on 500*a376eb32SXin Li# some platforms. 501*a376eb32SXin LiAC_REQUIRE([AC_PROG_AWK])dnl 502*a376eb32SXin LiAC_REQUIRE([AC_PROG_MAKE_SET])dnl 503*a376eb32SXin LiAC_REQUIRE([AM_SET_LEADING_DOT])dnl 504*a376eb32SXin Li_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], 505*a376eb32SXin Li [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], 506*a376eb32SXin Li [_AM_PROG_TAR([v7])])]) 507*a376eb32SXin Li_AM_IF_OPTION([no-dependencies],, 508*a376eb32SXin Li[AC_PROVIDE_IFELSE([AC_PROG_CC], 509*a376eb32SXin Li [_AM_DEPENDENCIES(CC)], 510*a376eb32SXin Li [define([AC_PROG_CC], 511*a376eb32SXin Li defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl 512*a376eb32SXin LiAC_PROVIDE_IFELSE([AC_PROG_CXX], 513*a376eb32SXin Li [_AM_DEPENDENCIES(CXX)], 514*a376eb32SXin Li [define([AC_PROG_CXX], 515*a376eb32SXin Li defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl 516*a376eb32SXin LiAC_PROVIDE_IFELSE([AC_PROG_OBJC], 517*a376eb32SXin Li [_AM_DEPENDENCIES(OBJC)], 518*a376eb32SXin Li [define([AC_PROG_OBJC], 519*a376eb32SXin Li defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl 520*a376eb32SXin Li]) 521*a376eb32SXin Li_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl 522*a376eb32SXin Lidnl The `parallel-tests' driver may need to know about EXEEXT, so add the 523*a376eb32SXin Lidnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro 524*a376eb32SXin Lidnl is hooked onto _AC_COMPILER_EXEEXT early, see below. 525*a376eb32SXin LiAC_CONFIG_COMMANDS_PRE(dnl 526*a376eb32SXin Li[m4_provide_if([_AM_COMPILER_EXEEXT], 527*a376eb32SXin Li [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl 528*a376eb32SXin Li]) 529*a376eb32SXin Li 530*a376eb32SXin Lidnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not 531*a376eb32SXin Lidnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further 532*a376eb32SXin Lidnl mangled by Autoconf and run in a shell conditional statement. 533*a376eb32SXin Lim4_define([_AC_COMPILER_EXEEXT], 534*a376eb32SXin Lim4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) 535*a376eb32SXin Li 536*a376eb32SXin Li 537*a376eb32SXin Li# When config.status generates a header, we must update the stamp-h file. 538*a376eb32SXin Li# This file resides in the same directory as the config header 539*a376eb32SXin Li# that is generated. The stamp files are numbered to have different names. 540*a376eb32SXin Li 541*a376eb32SXin Li# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the 542*a376eb32SXin Li# loop where config.status creates the headers, so we can generate 543*a376eb32SXin Li# our stamp files there. 544*a376eb32SXin LiAC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], 545*a376eb32SXin Li[# Compute $1's index in $config_headers. 546*a376eb32SXin Li_am_arg=$1 547*a376eb32SXin Li_am_stamp_count=1 548*a376eb32SXin Lifor _am_header in $config_headers :; do 549*a376eb32SXin Li case $_am_header in 550*a376eb32SXin Li $_am_arg | $_am_arg:* ) 551*a376eb32SXin Li break ;; 552*a376eb32SXin Li * ) 553*a376eb32SXin Li _am_stamp_count=`expr $_am_stamp_count + 1` ;; 554*a376eb32SXin Li esac 555*a376eb32SXin Lidone 556*a376eb32SXin Liecho "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) 557*a376eb32SXin Li 558*a376eb32SXin Li# Copyright (C) 2001, 2003, 2005, 2008, 2011 Free Software Foundation, 559*a376eb32SXin Li# Inc. 560*a376eb32SXin Li# 561*a376eb32SXin Li# This file is free software; the Free Software Foundation 562*a376eb32SXin Li# gives unlimited permission to copy and/or distribute it, 563*a376eb32SXin Li# with or without modifications, as long as this notice is preserved. 564*a376eb32SXin Li 565*a376eb32SXin Li# serial 1 566*a376eb32SXin Li 567*a376eb32SXin Li# AM_PROG_INSTALL_SH 568*a376eb32SXin Li# ------------------ 569*a376eb32SXin Li# Define $install_sh. 570*a376eb32SXin LiAC_DEFUN([AM_PROG_INSTALL_SH], 571*a376eb32SXin Li[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 572*a376eb32SXin Liif test x"${install_sh}" != xset; then 573*a376eb32SXin Li case $am_aux_dir in 574*a376eb32SXin Li *\ * | *\ *) 575*a376eb32SXin Li install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 576*a376eb32SXin Li *) 577*a376eb32SXin Li install_sh="\${SHELL} $am_aux_dir/install-sh" 578*a376eb32SXin Li esac 579*a376eb32SXin Lifi 580*a376eb32SXin LiAC_SUBST(install_sh)]) 581*a376eb32SXin Li 582*a376eb32SXin Li# Copyright (C) 2003, 2005 Free Software Foundation, Inc. 583*a376eb32SXin Li# 584*a376eb32SXin Li# This file is free software; the Free Software Foundation 585*a376eb32SXin Li# gives unlimited permission to copy and/or distribute it, 586*a376eb32SXin Li# with or without modifications, as long as this notice is preserved. 587*a376eb32SXin Li 588*a376eb32SXin Li# serial 2 589*a376eb32SXin Li 590*a376eb32SXin Li# Check whether the underlying file-system supports filenames 591*a376eb32SXin Li# with a leading dot. For instance MS-DOS doesn't. 592*a376eb32SXin LiAC_DEFUN([AM_SET_LEADING_DOT], 593*a376eb32SXin Li[rm -rf .tst 2>/dev/null 594*a376eb32SXin Limkdir .tst 2>/dev/null 595*a376eb32SXin Liif test -d .tst; then 596*a376eb32SXin Li am__leading_dot=. 597*a376eb32SXin Lielse 598*a376eb32SXin Li am__leading_dot=_ 599*a376eb32SXin Lifi 600*a376eb32SXin Lirmdir .tst 2>/dev/null 601*a376eb32SXin LiAC_SUBST([am__leading_dot])]) 602*a376eb32SXin Li 603*a376eb32SXin Li# Check to see how 'make' treats includes. -*- Autoconf -*- 604*a376eb32SXin Li 605*a376eb32SXin Li# Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc. 606*a376eb32SXin Li# 607*a376eb32SXin Li# This file is free software; the Free Software Foundation 608*a376eb32SXin Li# gives unlimited permission to copy and/or distribute it, 609*a376eb32SXin Li# with or without modifications, as long as this notice is preserved. 610*a376eb32SXin Li 611*a376eb32SXin Li# serial 4 612*a376eb32SXin Li 613*a376eb32SXin Li# AM_MAKE_INCLUDE() 614*a376eb32SXin Li# ----------------- 615*a376eb32SXin Li# Check to see how make treats includes. 616*a376eb32SXin LiAC_DEFUN([AM_MAKE_INCLUDE], 617*a376eb32SXin Li[am_make=${MAKE-make} 618*a376eb32SXin Licat > confinc << 'END' 619*a376eb32SXin Liam__doit: 620*a376eb32SXin Li @echo this is the am__doit target 621*a376eb32SXin Li.PHONY: am__doit 622*a376eb32SXin LiEND 623*a376eb32SXin Li# If we don't find an include directive, just comment out the code. 624*a376eb32SXin LiAC_MSG_CHECKING([for style of include used by $am_make]) 625*a376eb32SXin Liam__include="#" 626*a376eb32SXin Liam__quote= 627*a376eb32SXin Li_am_result=none 628*a376eb32SXin Li# First try GNU make style include. 629*a376eb32SXin Liecho "include confinc" > confmf 630*a376eb32SXin Li# Ignore all kinds of additional output from `make'. 631*a376eb32SXin Licase `$am_make -s -f confmf 2> /dev/null` in #( 632*a376eb32SXin Li*the\ am__doit\ target*) 633*a376eb32SXin Li am__include=include 634*a376eb32SXin Li am__quote= 635*a376eb32SXin Li _am_result=GNU 636*a376eb32SXin Li ;; 637*a376eb32SXin Liesac 638*a376eb32SXin Li# Now try BSD make style include. 639*a376eb32SXin Liif test "$am__include" = "#"; then 640*a376eb32SXin Li echo '.include "confinc"' > confmf 641*a376eb32SXin Li case `$am_make -s -f confmf 2> /dev/null` in #( 642*a376eb32SXin Li *the\ am__doit\ target*) 643*a376eb32SXin Li am__include=.include 644*a376eb32SXin Li am__quote="\"" 645*a376eb32SXin Li _am_result=BSD 646*a376eb32SXin Li ;; 647*a376eb32SXin Li esac 648*a376eb32SXin Lifi 649*a376eb32SXin LiAC_SUBST([am__include]) 650*a376eb32SXin LiAC_SUBST([am__quote]) 651*a376eb32SXin LiAC_MSG_RESULT([$_am_result]) 652*a376eb32SXin Lirm -f confinc confmf 653*a376eb32SXin Li]) 654*a376eb32SXin Li 655*a376eb32SXin Li# Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005, 2008 656*a376eb32SXin Li# Free Software Foundation, Inc. 657*a376eb32SXin Li# 658*a376eb32SXin Li# This file is free software; the Free Software Foundation 659*a376eb32SXin Li# gives unlimited permission to copy and/or distribute it, 660*a376eb32SXin Li# with or without modifications, as long as this notice is preserved. 661*a376eb32SXin Li 662*a376eb32SXin Li# serial 6 663*a376eb32SXin Li 664*a376eb32SXin Li# AM_PROG_CC_C_O 665*a376eb32SXin Li# -------------- 666*a376eb32SXin Li# Like AC_PROG_CC_C_O, but changed for automake. 667*a376eb32SXin LiAC_DEFUN([AM_PROG_CC_C_O], 668*a376eb32SXin Li[AC_REQUIRE([AC_PROG_CC_C_O])dnl 669*a376eb32SXin LiAC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 670*a376eb32SXin LiAC_REQUIRE_AUX_FILE([compile])dnl 671*a376eb32SXin Li# FIXME: we rely on the cache variable name because 672*a376eb32SXin Li# there is no other way. 673*a376eb32SXin Liset dummy $CC 674*a376eb32SXin Liam_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']` 675*a376eb32SXin Lieval am_t=\$ac_cv_prog_cc_${am_cc}_c_o 676*a376eb32SXin Liif test "$am_t" != yes; then 677*a376eb32SXin Li # Losing compiler, so override with the script. 678*a376eb32SXin Li # FIXME: It is wrong to rewrite CC. 679*a376eb32SXin Li # But if we don't then we get into trouble of one sort or another. 680*a376eb32SXin Li # A longer-term fix would be to have automake use am__CC in this case, 681*a376eb32SXin Li # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 682*a376eb32SXin Li CC="$am_aux_dir/compile $CC" 683*a376eb32SXin Lifi 684*a376eb32SXin Lidnl Make sure AC_PROG_CC is never called again, or it will override our 685*a376eb32SXin Lidnl setting of CC. 686*a376eb32SXin Lim4_define([AC_PROG_CC], 687*a376eb32SXin Li [m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])]) 688*a376eb32SXin Li]) 689*a376eb32SXin Li 690*a376eb32SXin Li# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- 691*a376eb32SXin Li 692*a376eb32SXin Li# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008 693*a376eb32SXin Li# Free Software Foundation, Inc. 694*a376eb32SXin Li# 695*a376eb32SXin Li# This file is free software; the Free Software Foundation 696*a376eb32SXin Li# gives unlimited permission to copy and/or distribute it, 697*a376eb32SXin Li# with or without modifications, as long as this notice is preserved. 698*a376eb32SXin Li 699*a376eb32SXin Li# serial 6 700*a376eb32SXin Li 701*a376eb32SXin Li# AM_MISSING_PROG(NAME, PROGRAM) 702*a376eb32SXin Li# ------------------------------ 703*a376eb32SXin LiAC_DEFUN([AM_MISSING_PROG], 704*a376eb32SXin Li[AC_REQUIRE([AM_MISSING_HAS_RUN]) 705*a376eb32SXin Li$1=${$1-"${am_missing_run}$2"} 706*a376eb32SXin LiAC_SUBST($1)]) 707*a376eb32SXin Li 708*a376eb32SXin Li 709*a376eb32SXin Li# AM_MISSING_HAS_RUN 710*a376eb32SXin Li# ------------------ 711*a376eb32SXin Li# Define MISSING if not defined so far and test if it supports --run. 712*a376eb32SXin Li# If it does, set am_missing_run to use it, otherwise, to nothing. 713*a376eb32SXin LiAC_DEFUN([AM_MISSING_HAS_RUN], 714*a376eb32SXin Li[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 715*a376eb32SXin LiAC_REQUIRE_AUX_FILE([missing])dnl 716*a376eb32SXin Liif test x"${MISSING+set}" != xset; then 717*a376eb32SXin Li case $am_aux_dir in 718*a376eb32SXin Li *\ * | *\ *) 719*a376eb32SXin Li MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 720*a376eb32SXin Li *) 721*a376eb32SXin Li MISSING="\${SHELL} $am_aux_dir/missing" ;; 722*a376eb32SXin Li esac 723*a376eb32SXin Lifi 724*a376eb32SXin Li# Use eval to expand $SHELL 725*a376eb32SXin Liif eval "$MISSING --run true"; then 726*a376eb32SXin Li am_missing_run="$MISSING --run " 727*a376eb32SXin Lielse 728*a376eb32SXin Li am_missing_run= 729*a376eb32SXin Li AC_MSG_WARN([`missing' script is too old or missing]) 730*a376eb32SXin Lifi 731*a376eb32SXin Li]) 732*a376eb32SXin Li 733*a376eb32SXin Li# Copyright (C) 2003, 2004, 2005, 2006, 2011 Free Software Foundation, 734*a376eb32SXin Li# Inc. 735*a376eb32SXin Li# 736*a376eb32SXin Li# This file is free software; the Free Software Foundation 737*a376eb32SXin Li# gives unlimited permission to copy and/or distribute it, 738*a376eb32SXin Li# with or without modifications, as long as this notice is preserved. 739*a376eb32SXin Li 740*a376eb32SXin Li# serial 1 741*a376eb32SXin Li 742*a376eb32SXin Li# AM_PROG_MKDIR_P 743*a376eb32SXin Li# --------------- 744*a376eb32SXin Li# Check for `mkdir -p'. 745*a376eb32SXin LiAC_DEFUN([AM_PROG_MKDIR_P], 746*a376eb32SXin Li[AC_PREREQ([2.60])dnl 747*a376eb32SXin LiAC_REQUIRE([AC_PROG_MKDIR_P])dnl 748*a376eb32SXin Lidnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, 749*a376eb32SXin Lidnl while keeping a definition of mkdir_p for backward compatibility. 750*a376eb32SXin Lidnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. 751*a376eb32SXin Lidnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of 752*a376eb32SXin Lidnl Makefile.ins that do not define MKDIR_P, so we do our own 753*a376eb32SXin Lidnl adjustment using top_builddir (which is defined more often than 754*a376eb32SXin Lidnl MKDIR_P). 755*a376eb32SXin LiAC_SUBST([mkdir_p], ["$MKDIR_P"])dnl 756*a376eb32SXin Licase $mkdir_p in 757*a376eb32SXin Li [[\\/$]]* | ?:[[\\/]]*) ;; 758*a376eb32SXin Li */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 759*a376eb32SXin Liesac 760*a376eb32SXin Li]) 761*a376eb32SXin Li 762*a376eb32SXin Li# Helper functions for option handling. -*- Autoconf -*- 763*a376eb32SXin Li 764*a376eb32SXin Li# Copyright (C) 2001, 2002, 2003, 2005, 2008, 2010 Free Software 765*a376eb32SXin Li# Foundation, Inc. 766*a376eb32SXin Li# 767*a376eb32SXin Li# This file is free software; the Free Software Foundation 768*a376eb32SXin Li# gives unlimited permission to copy and/or distribute it, 769*a376eb32SXin Li# with or without modifications, as long as this notice is preserved. 770*a376eb32SXin Li 771*a376eb32SXin Li# serial 5 772*a376eb32SXin Li 773*a376eb32SXin Li# _AM_MANGLE_OPTION(NAME) 774*a376eb32SXin Li# ----------------------- 775*a376eb32SXin LiAC_DEFUN([_AM_MANGLE_OPTION], 776*a376eb32SXin Li[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) 777*a376eb32SXin Li 778*a376eb32SXin Li# _AM_SET_OPTION(NAME) 779*a376eb32SXin Li# -------------------- 780*a376eb32SXin Li# Set option NAME. Presently that only means defining a flag for this option. 781*a376eb32SXin LiAC_DEFUN([_AM_SET_OPTION], 782*a376eb32SXin Li[m4_define(_AM_MANGLE_OPTION([$1]), 1)]) 783*a376eb32SXin Li 784*a376eb32SXin Li# _AM_SET_OPTIONS(OPTIONS) 785*a376eb32SXin Li# ------------------------ 786*a376eb32SXin Li# OPTIONS is a space-separated list of Automake options. 787*a376eb32SXin LiAC_DEFUN([_AM_SET_OPTIONS], 788*a376eb32SXin Li[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) 789*a376eb32SXin Li 790*a376eb32SXin Li# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) 791*a376eb32SXin Li# ------------------------------------------- 792*a376eb32SXin Li# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. 793*a376eb32SXin LiAC_DEFUN([_AM_IF_OPTION], 794*a376eb32SXin Li[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) 795*a376eb32SXin Li 796*a376eb32SXin Li# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc. 797*a376eb32SXin Li# 798*a376eb32SXin Li# This file is free software; the Free Software Foundation 799*a376eb32SXin Li# gives unlimited permission to copy and/or distribute it, 800*a376eb32SXin Li# with or without modifications, as long as this notice is preserved. 801*a376eb32SXin Li 802*a376eb32SXin Li# serial 1 803*a376eb32SXin Li 804*a376eb32SXin Li# AM_RUN_LOG(COMMAND) 805*a376eb32SXin Li# ------------------- 806*a376eb32SXin Li# Run COMMAND, save the exit status in ac_status, and log it. 807*a376eb32SXin Li# (This has been adapted from Autoconf's _AC_RUN_LOG macro.) 808*a376eb32SXin LiAC_DEFUN([AM_RUN_LOG], 809*a376eb32SXin Li[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD 810*a376eb32SXin Li ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD 811*a376eb32SXin Li ac_status=$? 812*a376eb32SXin Li echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 813*a376eb32SXin Li (exit $ac_status); }]) 814*a376eb32SXin Li 815*a376eb32SXin Li# Check to make sure that the build environment is sane. -*- Autoconf -*- 816*a376eb32SXin Li 817*a376eb32SXin Li# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008 818*a376eb32SXin Li# Free Software Foundation, Inc. 819*a376eb32SXin Li# 820*a376eb32SXin Li# This file is free software; the Free Software Foundation 821*a376eb32SXin Li# gives unlimited permission to copy and/or distribute it, 822*a376eb32SXin Li# with or without modifications, as long as this notice is preserved. 823*a376eb32SXin Li 824*a376eb32SXin Li# serial 5 825*a376eb32SXin Li 826*a376eb32SXin Li# AM_SANITY_CHECK 827*a376eb32SXin Li# --------------- 828*a376eb32SXin LiAC_DEFUN([AM_SANITY_CHECK], 829*a376eb32SXin Li[AC_MSG_CHECKING([whether build environment is sane]) 830*a376eb32SXin Li# Just in case 831*a376eb32SXin Lisleep 1 832*a376eb32SXin Liecho timestamp > conftest.file 833*a376eb32SXin Li# Reject unsafe characters in $srcdir or the absolute working directory 834*a376eb32SXin Li# name. Accept space and tab only in the latter. 835*a376eb32SXin Liam_lf=' 836*a376eb32SXin Li' 837*a376eb32SXin Licase `pwd` in 838*a376eb32SXin Li *[[\\\"\#\$\&\'\`$am_lf]]*) 839*a376eb32SXin Li AC_MSG_ERROR([unsafe absolute working directory name]);; 840*a376eb32SXin Liesac 841*a376eb32SXin Licase $srcdir in 842*a376eb32SXin Li *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) 843*a376eb32SXin Li AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);; 844*a376eb32SXin Liesac 845*a376eb32SXin Li 846*a376eb32SXin Li# Do `set' in a subshell so we don't clobber the current shell's 847*a376eb32SXin Li# arguments. Must try -L first in case configure is actually a 848*a376eb32SXin Li# symlink; some systems play weird games with the mod time of symlinks 849*a376eb32SXin Li# (eg FreeBSD returns the mod time of the symlink's containing 850*a376eb32SXin Li# directory). 851*a376eb32SXin Liif ( 852*a376eb32SXin Li set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 853*a376eb32SXin Li if test "$[*]" = "X"; then 854*a376eb32SXin Li # -L didn't work. 855*a376eb32SXin Li set X `ls -t "$srcdir/configure" conftest.file` 856*a376eb32SXin Li fi 857*a376eb32SXin Li rm -f conftest.file 858*a376eb32SXin Li if test "$[*]" != "X $srcdir/configure conftest.file" \ 859*a376eb32SXin Li && test "$[*]" != "X conftest.file $srcdir/configure"; then 860*a376eb32SXin Li 861*a376eb32SXin Li # If neither matched, then we have a broken ls. This can happen 862*a376eb32SXin Li # if, for instance, CONFIG_SHELL is bash and it inherits a 863*a376eb32SXin Li # broken ls alias from the environment. This has actually 864*a376eb32SXin Li # happened. Such a system could not be considered "sane". 865*a376eb32SXin Li AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken 866*a376eb32SXin Lialias in your environment]) 867*a376eb32SXin Li fi 868*a376eb32SXin Li 869*a376eb32SXin Li test "$[2]" = conftest.file 870*a376eb32SXin Li ) 871*a376eb32SXin Lithen 872*a376eb32SXin Li # Ok. 873*a376eb32SXin Li : 874*a376eb32SXin Lielse 875*a376eb32SXin Li AC_MSG_ERROR([newly created file is older than distributed files! 876*a376eb32SXin LiCheck your system clock]) 877*a376eb32SXin Lifi 878*a376eb32SXin LiAC_MSG_RESULT(yes)]) 879*a376eb32SXin Li 880*a376eb32SXin Li# Copyright (C) 2009, 2011 Free Software Foundation, Inc. 881*a376eb32SXin Li# 882*a376eb32SXin Li# This file is free software; the Free Software Foundation 883*a376eb32SXin Li# gives unlimited permission to copy and/or distribute it, 884*a376eb32SXin Li# with or without modifications, as long as this notice is preserved. 885*a376eb32SXin Li 886*a376eb32SXin Li# serial 2 887*a376eb32SXin Li 888*a376eb32SXin Li# AM_SILENT_RULES([DEFAULT]) 889*a376eb32SXin Li# -------------------------- 890*a376eb32SXin Li# Enable less verbose build rules; with the default set to DEFAULT 891*a376eb32SXin Li# (`yes' being less verbose, `no' or empty being verbose). 892*a376eb32SXin LiAC_DEFUN([AM_SILENT_RULES], 893*a376eb32SXin Li[AC_ARG_ENABLE([silent-rules], 894*a376eb32SXin Li[ --enable-silent-rules less verbose build output (undo: `make V=1') 895*a376eb32SXin Li --disable-silent-rules verbose build output (undo: `make V=0')]) 896*a376eb32SXin Licase $enable_silent_rules in 897*a376eb32SXin Liyes) AM_DEFAULT_VERBOSITY=0;; 898*a376eb32SXin Lino) AM_DEFAULT_VERBOSITY=1;; 899*a376eb32SXin Li*) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);; 900*a376eb32SXin Liesac 901*a376eb32SXin Lidnl 902*a376eb32SXin Lidnl A few `make' implementations (e.g., NonStop OS and NextStep) 903*a376eb32SXin Lidnl do not support nested variable expansions. 904*a376eb32SXin Lidnl See automake bug#9928 and bug#10237. 905*a376eb32SXin Liam_make=${MAKE-make} 906*a376eb32SXin LiAC_CACHE_CHECK([whether $am_make supports nested variables], 907*a376eb32SXin Li [am_cv_make_support_nested_variables], 908*a376eb32SXin Li [if AS_ECHO([['TRUE=$(BAR$(V)) 909*a376eb32SXin LiBAR0=false 910*a376eb32SXin LiBAR1=true 911*a376eb32SXin LiV=1 912*a376eb32SXin Liam__doit: 913*a376eb32SXin Li @$(TRUE) 914*a376eb32SXin Li.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then 915*a376eb32SXin Li am_cv_make_support_nested_variables=yes 916*a376eb32SXin Lielse 917*a376eb32SXin Li am_cv_make_support_nested_variables=no 918*a376eb32SXin Lifi]) 919*a376eb32SXin Liif test $am_cv_make_support_nested_variables = yes; then 920*a376eb32SXin Li dnl Using `$V' instead of `$(V)' breaks IRIX make. 921*a376eb32SXin Li AM_V='$(V)' 922*a376eb32SXin Li AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 923*a376eb32SXin Lielse 924*a376eb32SXin Li AM_V=$AM_DEFAULT_VERBOSITY 925*a376eb32SXin Li AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 926*a376eb32SXin Lifi 927*a376eb32SXin LiAC_SUBST([AM_V])dnl 928*a376eb32SXin LiAM_SUBST_NOTMAKE([AM_V])dnl 929*a376eb32SXin LiAC_SUBST([AM_DEFAULT_V])dnl 930*a376eb32SXin LiAM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl 931*a376eb32SXin LiAC_SUBST([AM_DEFAULT_VERBOSITY])dnl 932*a376eb32SXin LiAM_BACKSLASH='\' 933*a376eb32SXin LiAC_SUBST([AM_BACKSLASH])dnl 934*a376eb32SXin Li_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl 935*a376eb32SXin Li]) 936*a376eb32SXin Li 937*a376eb32SXin Li# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc. 938*a376eb32SXin Li# 939*a376eb32SXin Li# This file is free software; the Free Software Foundation 940*a376eb32SXin Li# gives unlimited permission to copy and/or distribute it, 941*a376eb32SXin Li# with or without modifications, as long as this notice is preserved. 942*a376eb32SXin Li 943*a376eb32SXin Li# serial 1 944*a376eb32SXin Li 945*a376eb32SXin Li# AM_PROG_INSTALL_STRIP 946*a376eb32SXin Li# --------------------- 947*a376eb32SXin Li# One issue with vendor `install' (even GNU) is that you can't 948*a376eb32SXin Li# specify the program used to strip binaries. This is especially 949*a376eb32SXin Li# annoying in cross-compiling environments, where the build's strip 950*a376eb32SXin Li# is unlikely to handle the host's binaries. 951*a376eb32SXin Li# Fortunately install-sh will honor a STRIPPROG variable, so we 952*a376eb32SXin Li# always use install-sh in `make install-strip', and initialize 953*a376eb32SXin Li# STRIPPROG with the value of the STRIP variable (set by the user). 954*a376eb32SXin LiAC_DEFUN([AM_PROG_INSTALL_STRIP], 955*a376eb32SXin Li[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl 956*a376eb32SXin Li# Installed binaries are usually stripped using `strip' when the user 957*a376eb32SXin Li# run `make install-strip'. However `strip' might not be the right 958*a376eb32SXin Li# tool to use in cross-compilation environments, therefore Automake 959*a376eb32SXin Li# will honor the `STRIP' environment variable to overrule this program. 960*a376eb32SXin Lidnl Don't test for $cross_compiling = yes, because it might be `maybe'. 961*a376eb32SXin Liif test "$cross_compiling" != no; then 962*a376eb32SXin Li AC_CHECK_TOOL([STRIP], [strip], :) 963*a376eb32SXin Lifi 964*a376eb32SXin LiINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 965*a376eb32SXin LiAC_SUBST([INSTALL_STRIP_PROGRAM])]) 966*a376eb32SXin Li 967*a376eb32SXin Li# Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc. 968*a376eb32SXin Li# 969*a376eb32SXin Li# This file is free software; the Free Software Foundation 970*a376eb32SXin Li# gives unlimited permission to copy and/or distribute it, 971*a376eb32SXin Li# with or without modifications, as long as this notice is preserved. 972*a376eb32SXin Li 973*a376eb32SXin Li# serial 3 974*a376eb32SXin Li 975*a376eb32SXin Li# _AM_SUBST_NOTMAKE(VARIABLE) 976*a376eb32SXin Li# --------------------------- 977*a376eb32SXin Li# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. 978*a376eb32SXin Li# This macro is traced by Automake. 979*a376eb32SXin LiAC_DEFUN([_AM_SUBST_NOTMAKE]) 980*a376eb32SXin Li 981*a376eb32SXin Li# AM_SUBST_NOTMAKE(VARIABLE) 982*a376eb32SXin Li# -------------------------- 983*a376eb32SXin Li# Public sister of _AM_SUBST_NOTMAKE. 984*a376eb32SXin LiAC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) 985*a376eb32SXin Li 986*a376eb32SXin Li# Check how to create a tarball. -*- Autoconf -*- 987*a376eb32SXin Li 988*a376eb32SXin Li# Copyright (C) 2004, 2005, 2012 Free Software Foundation, Inc. 989*a376eb32SXin Li# 990*a376eb32SXin Li# This file is free software; the Free Software Foundation 991*a376eb32SXin Li# gives unlimited permission to copy and/or distribute it, 992*a376eb32SXin Li# with or without modifications, as long as this notice is preserved. 993*a376eb32SXin Li 994*a376eb32SXin Li# serial 2 995*a376eb32SXin Li 996*a376eb32SXin Li# _AM_PROG_TAR(FORMAT) 997*a376eb32SXin Li# -------------------- 998*a376eb32SXin Li# Check how to create a tarball in format FORMAT. 999*a376eb32SXin Li# FORMAT should be one of `v7', `ustar', or `pax'. 1000*a376eb32SXin Li# 1001*a376eb32SXin Li# Substitute a variable $(am__tar) that is a command 1002*a376eb32SXin Li# writing to stdout a FORMAT-tarball containing the directory 1003*a376eb32SXin Li# $tardir. 1004*a376eb32SXin Li# tardir=directory && $(am__tar) > result.tar 1005*a376eb32SXin Li# 1006*a376eb32SXin Li# Substitute a variable $(am__untar) that extract such 1007*a376eb32SXin Li# a tarball read from stdin. 1008*a376eb32SXin Li# $(am__untar) < result.tar 1009*a376eb32SXin LiAC_DEFUN([_AM_PROG_TAR], 1010*a376eb32SXin Li[# Always define AMTAR for backward compatibility. Yes, it's still used 1011*a376eb32SXin Li# in the wild :-( We should find a proper way to deprecate it ... 1012*a376eb32SXin LiAC_SUBST([AMTAR], ['$${TAR-tar}']) 1013*a376eb32SXin Lim4_if([$1], [v7], 1014*a376eb32SXin Li [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'], 1015*a376eb32SXin Li [m4_case([$1], [ustar],, [pax],, 1016*a376eb32SXin Li [m4_fatal([Unknown tar format])]) 1017*a376eb32SXin LiAC_MSG_CHECKING([how to create a $1 tar archive]) 1018*a376eb32SXin Li# Loop over all known methods to create a tar archive until one works. 1019*a376eb32SXin Li_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' 1020*a376eb32SXin Li_am_tools=${am_cv_prog_tar_$1-$_am_tools} 1021*a376eb32SXin Li# Do not fold the above two line into one, because Tru64 sh and 1022*a376eb32SXin Li# Solaris sh will not grok spaces in the rhs of `-'. 1023*a376eb32SXin Lifor _am_tool in $_am_tools 1024*a376eb32SXin Lido 1025*a376eb32SXin Li case $_am_tool in 1026*a376eb32SXin Li gnutar) 1027*a376eb32SXin Li for _am_tar in tar gnutar gtar; 1028*a376eb32SXin Li do 1029*a376eb32SXin Li AM_RUN_LOG([$_am_tar --version]) && break 1030*a376eb32SXin Li done 1031*a376eb32SXin Li am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' 1032*a376eb32SXin Li am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' 1033*a376eb32SXin Li am__untar="$_am_tar -xf -" 1034*a376eb32SXin Li ;; 1035*a376eb32SXin Li plaintar) 1036*a376eb32SXin Li # Must skip GNU tar: if it does not support --format= it doesn't create 1037*a376eb32SXin Li # ustar tarball either. 1038*a376eb32SXin Li (tar --version) >/dev/null 2>&1 && continue 1039*a376eb32SXin Li am__tar='tar chf - "$$tardir"' 1040*a376eb32SXin Li am__tar_='tar chf - "$tardir"' 1041*a376eb32SXin Li am__untar='tar xf -' 1042*a376eb32SXin Li ;; 1043*a376eb32SXin Li pax) 1044*a376eb32SXin Li am__tar='pax -L -x $1 -w "$$tardir"' 1045*a376eb32SXin Li am__tar_='pax -L -x $1 -w "$tardir"' 1046*a376eb32SXin Li am__untar='pax -r' 1047*a376eb32SXin Li ;; 1048*a376eb32SXin Li cpio) 1049*a376eb32SXin Li am__tar='find "$$tardir" -print | cpio -o -H $1 -L' 1050*a376eb32SXin Li am__tar_='find "$tardir" -print | cpio -o -H $1 -L' 1051*a376eb32SXin Li am__untar='cpio -i -H $1 -d' 1052*a376eb32SXin Li ;; 1053*a376eb32SXin Li none) 1054*a376eb32SXin Li am__tar=false 1055*a376eb32SXin Li am__tar_=false 1056*a376eb32SXin Li am__untar=false 1057*a376eb32SXin Li ;; 1058*a376eb32SXin Li esac 1059*a376eb32SXin Li 1060*a376eb32SXin Li # If the value was cached, stop now. We just wanted to have am__tar 1061*a376eb32SXin Li # and am__untar set. 1062*a376eb32SXin Li test -n "${am_cv_prog_tar_$1}" && break 1063*a376eb32SXin Li 1064*a376eb32SXin Li # tar/untar a dummy directory, and stop if the command works 1065*a376eb32SXin Li rm -rf conftest.dir 1066*a376eb32SXin Li mkdir conftest.dir 1067*a376eb32SXin Li echo GrepMe > conftest.dir/file 1068*a376eb32SXin Li AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) 1069*a376eb32SXin Li rm -rf conftest.dir 1070*a376eb32SXin Li if test -s conftest.tar; then 1071*a376eb32SXin Li AM_RUN_LOG([$am__untar <conftest.tar]) 1072*a376eb32SXin Li grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 1073*a376eb32SXin Li fi 1074*a376eb32SXin Lidone 1075*a376eb32SXin Lirm -rf conftest.dir 1076*a376eb32SXin Li 1077*a376eb32SXin LiAC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) 1078*a376eb32SXin LiAC_MSG_RESULT([$am_cv_prog_tar_$1])]) 1079*a376eb32SXin LiAC_SUBST([am__tar]) 1080*a376eb32SXin LiAC_SUBST([am__untar]) 1081*a376eb32SXin Li]) # _AM_PROG_TAR 1082*a376eb32SXin Li 1083*a376eb32SXin Lim4_include([m4/libtool.m4]) 1084*a376eb32SXin Lim4_include([m4/ltoptions.m4]) 1085*a376eb32SXin Lim4_include([m4/ltsugar.m4]) 1086*a376eb32SXin Lim4_include([m4/ltversion.m4]) 1087*a376eb32SXin Lim4_include([m4/lt~obsolete.m4]) 1088