1218822Sdim# generated automatically by aclocal 1.9.6 -*- Autoconf -*- 238889Sjdp 3218822Sdim# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 4218822Sdim# 2005 Free Software Foundation, Inc. 5130561Sobrien# This file is free software; the Free Software Foundation 6130561Sobrien# gives unlimited permission to copy and/or distribute it, 7130561Sobrien# with or without modifications, as long as this notice is preserved. 838889Sjdp 9130561Sobrien# This program is distributed in the hope that it will be useful, 10130561Sobrien# but WITHOUT ANY WARRANTY, to the extent permitted by law; without 11130561Sobrien# even the implied warranty of MERCHANTABILITY or FITNESS FOR A 12130561Sobrien# PARTICULAR PURPOSE. 1338889Sjdp 14218822Sdim# Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc. 15218822Sdim# 16218822Sdim# This file is free software; the Free Software Foundation 17218822Sdim# gives unlimited permission to copy and/or distribute it, 18218822Sdim# with or without modifications, as long as this notice is preserved. 19130561Sobrien 20130561Sobrien# AM_AUTOMAKE_VERSION(VERSION) 21130561Sobrien# ---------------------------- 22130561Sobrien# Automake X.Y traces this macro to ensure aclocal.m4 has been 23130561Sobrien# generated from the m4 files accompanying Automake X.Y. 24218822SdimAC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"]) 25130561Sobrien 26130561Sobrien# AM_SET_CURRENT_AUTOMAKE_VERSION 27130561Sobrien# ------------------------------- 28130561Sobrien# Call AM_AUTOMAKE_VERSION so it can be traced. 29130561Sobrien# This function is AC_REQUIREd by AC_INIT_AUTOMAKE. 30130561SobrienAC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], 31218822Sdim [AM_AUTOMAKE_VERSION([1.9.6])]) 32130561Sobrien 33218822Sdim# AM_AUX_DIR_EXPAND -*- Autoconf -*- 34130561Sobrien 35218822Sdim# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. 36218822Sdim# 37218822Sdim# This file is free software; the Free Software Foundation 38218822Sdim# gives unlimited permission to copy and/or distribute it, 39218822Sdim# with or without modifications, as long as this notice is preserved. 40130561Sobrien 41130561Sobrien# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets 42130561Sobrien# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to 43130561Sobrien# `$srcdir', `$srcdir/..', or `$srcdir/../..'. 44130561Sobrien# 45130561Sobrien# Of course, Automake must honor this variable whenever it calls a 46130561Sobrien# tool from the auxiliary directory. The problem is that $srcdir (and 47130561Sobrien# therefore $ac_aux_dir as well) can be either absolute or relative, 48130561Sobrien# depending on how configure is run. This is pretty annoying, since 49130561Sobrien# it makes $ac_aux_dir quite unusable in subdirectories: in the top 50130561Sobrien# source directory, any form will work fine, but in subdirectories a 51130561Sobrien# relative path needs to be adjusted first. 52130561Sobrien# 53130561Sobrien# $ac_aux_dir/missing 54130561Sobrien# fails when called from a subdirectory if $ac_aux_dir is relative 55130561Sobrien# $top_srcdir/$ac_aux_dir/missing 56130561Sobrien# fails if $ac_aux_dir is absolute, 57130561Sobrien# fails when called from a subdirectory in a VPATH build with 58130561Sobrien# a relative $ac_aux_dir 59130561Sobrien# 60130561Sobrien# The reason of the latter failure is that $top_srcdir and $ac_aux_dir 61130561Sobrien# are both prefixed by $srcdir. In an in-source build this is usually 62130561Sobrien# harmless because $srcdir is `.', but things will broke when you 63130561Sobrien# start a VPATH build or use an absolute $srcdir. 64130561Sobrien# 65130561Sobrien# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, 66130561Sobrien# iff we strip the leading $srcdir from $ac_aux_dir. That would be: 67130561Sobrien# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` 68130561Sobrien# and then we would define $MISSING as 69130561Sobrien# MISSING="\${SHELL} $am_aux_dir/missing" 70130561Sobrien# This will work as long as MISSING is not called from configure, because 71130561Sobrien# unfortunately $(top_srcdir) has no meaning in configure. 72130561Sobrien# However there are other variables, like CC, which are often used in 73130561Sobrien# configure, and could therefore not use this "fixed" $ac_aux_dir. 74130561Sobrien# 75130561Sobrien# Another solution, used here, is to always expand $ac_aux_dir to an 76130561Sobrien# absolute PATH. The drawback is that using absolute paths prevent a 77130561Sobrien# configured tree to be moved without reconfiguration. 78130561Sobrien 79130561SobrienAC_DEFUN([AM_AUX_DIR_EXPAND], 80130561Sobrien[dnl Rely on autoconf to set up CDPATH properly. 81130561SobrienAC_PREREQ([2.50])dnl 82130561Sobrien# expand $ac_aux_dir to an absolute path 83130561Sobrienam_aux_dir=`cd $ac_aux_dir && pwd` 84130561Sobrien]) 85130561Sobrien 86218822Sdim# AM_CONDITIONAL -*- Autoconf -*- 87130561Sobrien 88218822Sdim# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005 89218822Sdim# Free Software Foundation, Inc. 90218822Sdim# 91218822Sdim# This file is free software; the Free Software Foundation 92218822Sdim# gives unlimited permission to copy and/or distribute it, 93218822Sdim# with or without modifications, as long as this notice is preserved. 94130561Sobrien 95218822Sdim# serial 7 96130561Sobrien 97130561Sobrien# AM_CONDITIONAL(NAME, SHELL-CONDITION) 98130561Sobrien# ------------------------------------- 99130561Sobrien# Define a conditional. 100130561SobrienAC_DEFUN([AM_CONDITIONAL], 101130561Sobrien[AC_PREREQ(2.52)dnl 102130561Sobrien ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], 103130561Sobrien [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl 104130561SobrienAC_SUBST([$1_TRUE]) 105130561SobrienAC_SUBST([$1_FALSE]) 106130561Sobrienif $2; then 107130561Sobrien $1_TRUE= 108130561Sobrien $1_FALSE='#' 109130561Sobrienelse 110130561Sobrien $1_TRUE='#' 111130561Sobrien $1_FALSE= 11260484Sobrienfi 113130561SobrienAC_CONFIG_COMMANDS_PRE( 114130561Sobrien[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then 115218822Sdim AC_MSG_ERROR([[conditional "$1" was never defined. 116218822SdimUsually this means the macro was only invoked conditionally.]]) 117130561Sobrienfi])]) 11838889Sjdp 119130561Sobrien 120218822Sdim# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005 121130561Sobrien# Free Software Foundation, Inc. 122218822Sdim# 123218822Sdim# This file is free software; the Free Software Foundation 124218822Sdim# gives unlimited permission to copy and/or distribute it, 125218822Sdim# with or without modifications, as long as this notice is preserved. 126130561Sobrien 127218822Sdim# serial 8 128130561Sobrien 129130561Sobrien# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be 130130561Sobrien# written in clear, in which case automake, when reading aclocal.m4, 131130561Sobrien# will think it sees a *use*, and therefore will trigger all it's 132130561Sobrien# C support machinery. Also note that it means that autoscan, seeing 133130561Sobrien# CC etc. in the Makefile, will ask for an AC_PROG_CC use... 134130561Sobrien 135130561Sobrien 136130561Sobrien# _AM_DEPENDENCIES(NAME) 137130561Sobrien# ---------------------- 138130561Sobrien# See how the compiler implements dependency checking. 139130561Sobrien# NAME is "CC", "CXX", "GCJ", or "OBJC". 140130561Sobrien# We try a few techniques and use that to set a single cache variable. 141130561Sobrien# 142130561Sobrien# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was 143130561Sobrien# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular 144130561Sobrien# dependency, and given that the user is not expected to run this macro, 145130561Sobrien# just rely on AC_PROG_CC. 146130561SobrienAC_DEFUN([_AM_DEPENDENCIES], 147130561Sobrien[AC_REQUIRE([AM_SET_DEPDIR])dnl 148130561SobrienAC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl 149130561SobrienAC_REQUIRE([AM_MAKE_INCLUDE])dnl 150130561SobrienAC_REQUIRE([AM_DEP_TRACK])dnl 151130561Sobrien 152130561Sobrienifelse([$1], CC, [depcc="$CC" am_compiler_list=], 153130561Sobrien [$1], CXX, [depcc="$CXX" am_compiler_list=], 154130561Sobrien [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], 155130561Sobrien [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], 156130561Sobrien [depcc="$$1" am_compiler_list=]) 157130561Sobrien 158130561SobrienAC_CACHE_CHECK([dependency style of $depcc], 159130561Sobrien [am_cv_$1_dependencies_compiler_type], 160130561Sobrien[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 161130561Sobrien # We make a subdir and do the tests there. Otherwise we can end up 162130561Sobrien # making bogus files that we don't know about and never remove. For 163130561Sobrien # instance it was reported that on HP-UX the gcc test will end up 164130561Sobrien # making a dummy file named `D' -- because `-MD' means `put the output 165130561Sobrien # in D'. 166130561Sobrien mkdir conftest.dir 167130561Sobrien # Copy depcomp to subdir because otherwise we won't find it if we're 168130561Sobrien # using a relative directory. 169130561Sobrien cp "$am_depcomp" conftest.dir 170130561Sobrien cd conftest.dir 171130561Sobrien # We will build objects and dependencies in a subdirectory because 172130561Sobrien # it helps to detect inapplicable dependency modes. For instance 173130561Sobrien # both Tru64's cc and ICC support -MD to output dependencies as a 174130561Sobrien # side effect of compilation, but ICC will put the dependencies in 175130561Sobrien # the current directory while Tru64 will put them in the object 176130561Sobrien # directory. 177130561Sobrien mkdir sub 178130561Sobrien 179130561Sobrien am_cv_$1_dependencies_compiler_type=none 180130561Sobrien if test "$am_compiler_list" = ""; then 181130561Sobrien am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` 182130561Sobrien fi 183130561Sobrien for depmode in $am_compiler_list; do 184130561Sobrien # Setup a source with many dependencies, because some compilers 185130561Sobrien # like to wrap large dependency lists on column 80 (with \), and 186130561Sobrien # we should not choose a depcomp mode which is confused by this. 187130561Sobrien # 188130561Sobrien # We need to recreate these files for each test, as the compiler may 189130561Sobrien # overwrite some of them when testing with obscure command lines. 190130561Sobrien # This happens at least with the AIX C compiler. 191130561Sobrien : > sub/conftest.c 192130561Sobrien for i in 1 2 3 4 5 6; do 193130561Sobrien echo '#include "conftst'$i'.h"' >> sub/conftest.c 194130561Sobrien # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 195130561Sobrien # Solaris 8's {/usr,}/bin/sh. 196130561Sobrien touch sub/conftst$i.h 197130561Sobrien done 198130561Sobrien echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 199130561Sobrien 200130561Sobrien case $depmode in 201130561Sobrien nosideeffect) 202130561Sobrien # after this tag, mechanisms are not by side-effect, so they'll 203130561Sobrien # only be used when explicitly requested 204130561Sobrien if test "x$enable_dependency_tracking" = xyes; then 205130561Sobrien continue 206130561Sobrien else 207130561Sobrien break 208130561Sobrien fi 209130561Sobrien ;; 210130561Sobrien none) break ;; 211130561Sobrien esac 212130561Sobrien # We check with `-c' and `-o' for the sake of the "dashmstdout" 213130561Sobrien # mode. It turns out that the SunPro C++ compiler does not properly 214130561Sobrien # handle `-M -o', and we need to detect this. 215130561Sobrien if depmode=$depmode \ 216130561Sobrien source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 217130561Sobrien depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 218130561Sobrien $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 219130561Sobrien >/dev/null 2>conftest.err && 220130561Sobrien grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 221130561Sobrien grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 222130561Sobrien ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 223130561Sobrien # icc doesn't choke on unknown options, it will just issue warnings 224130561Sobrien # or remarks (even with -Werror). So we grep stderr for any message 225130561Sobrien # that says an option was ignored or not supported. 226130561Sobrien # When given -MP, icc 7.0 and 7.1 complain thusly: 227130561Sobrien # icc: Command line warning: ignoring option '-M'; no argument required 228130561Sobrien # The diagnosis changed in icc 8.0: 229130561Sobrien # icc: Command line remark: option '-MP' not supported 230130561Sobrien if (grep 'ignoring option' conftest.err || 231130561Sobrien grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 232130561Sobrien am_cv_$1_dependencies_compiler_type=$depmode 233130561Sobrien break 234130561Sobrien fi 235130561Sobrien fi 236130561Sobrien done 237130561Sobrien 238130561Sobrien cd .. 239130561Sobrien rm -rf conftest.dir 240130561Sobrienelse 241130561Sobrien am_cv_$1_dependencies_compiler_type=none 242130561Sobrienfi 24377298Sobrien]) 244130561SobrienAC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) 245130561SobrienAM_CONDITIONAL([am__fastdep$1], [ 246130561Sobrien test "x$enable_dependency_tracking" != xno \ 247130561Sobrien && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) 248130561Sobrien]) 24977298Sobrien 250130561Sobrien 251130561Sobrien# AM_SET_DEPDIR 252130561Sobrien# ------------- 253130561Sobrien# Choose a directory name for dependency files. 254130561Sobrien# This macro is AC_REQUIREd in _AM_DEPENDENCIES 255130561SobrienAC_DEFUN([AM_SET_DEPDIR], 256130561Sobrien[AC_REQUIRE([AM_SET_LEADING_DOT])dnl 257130561SobrienAC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl 25877298Sobrien]) 25977298Sobrien 26038889Sjdp 261130561Sobrien# AM_DEP_TRACK 262130561Sobrien# ------------ 263130561SobrienAC_DEFUN([AM_DEP_TRACK], 264130561Sobrien[AC_ARG_ENABLE(dependency-tracking, 265130561Sobrien[ --disable-dependency-tracking speeds up one-time build 266130561Sobrien --enable-dependency-tracking do not reject slow dependency extractors]) 267130561Sobrienif test "x$enable_dependency_tracking" != xno; then 268130561Sobrien am_depcomp="$ac_aux_dir/depcomp" 269130561Sobrien AMDEPBACKSLASH='\' 270130561Sobrienfi 271130561SobrienAM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) 272130561SobrienAC_SUBST([AMDEPBACKSLASH]) 273130561Sobrien]) 27438889Sjdp 275218822Sdim# Generate code to set up dependency tracking. -*- Autoconf -*- 27638889Sjdp 277218822Sdim# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005 278218822Sdim# Free Software Foundation, Inc. 279218822Sdim# 280218822Sdim# This file is free software; the Free Software Foundation 281218822Sdim# gives unlimited permission to copy and/or distribute it, 282218822Sdim# with or without modifications, as long as this notice is preserved. 283130561Sobrien 284218822Sdim#serial 3 285130561Sobrien 286130561Sobrien# _AM_OUTPUT_DEPENDENCY_COMMANDS 287130561Sobrien# ------------------------------ 288130561SobrienAC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], 289130561Sobrien[for mf in $CONFIG_FILES; do 290130561Sobrien # Strip MF so we end up with the name of the file. 291130561Sobrien mf=`echo "$mf" | sed -e 's/:.*$//'` 292130561Sobrien # Check whether this is an Automake generated Makefile or not. 293130561Sobrien # We used to match only the files named `Makefile.in', but 294130561Sobrien # some people rename them; so instead we look at the file content. 295130561Sobrien # Grep'ing the first line is not enough: some people post-process 296130561Sobrien # each Makefile.in and add a new line on top of each file to say so. 297130561Sobrien # So let's grep whole file. 298130561Sobrien if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 299130561Sobrien dirpart=`AS_DIRNAME("$mf")` 300130561Sobrien else 301130561Sobrien continue 302130561Sobrien fi 303218822Sdim # Extract the definition of DEPDIR, am__include, and am__quote 304218822Sdim # from the Makefile without running `make'. 305130561Sobrien DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 306130561Sobrien test -z "$DEPDIR" && continue 307218822Sdim am__include=`sed -n 's/^am__include = //p' < "$mf"` 308218822Sdim test -z "am__include" && continue 309218822Sdim am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 310130561Sobrien # When using ansi2knr, U may be empty or an underscore; expand it 311130561Sobrien U=`sed -n 's/^U = //p' < "$mf"` 312218822Sdim # Find all dependency output files, they are included files with 313218822Sdim # $(DEPDIR) in their names. We invoke sed twice because it is the 314218822Sdim # simplest approach to changing $(DEPDIR) to its actual value in the 315218822Sdim # expansion. 316218822Sdim for file in `sed -n " 317218822Sdim s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 318130561Sobrien sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 319130561Sobrien # Make sure the directory exists. 320130561Sobrien test -f "$dirpart/$file" && continue 321130561Sobrien fdir=`AS_DIRNAME(["$file"])` 322130561Sobrien AS_MKDIR_P([$dirpart/$fdir]) 323130561Sobrien # echo "creating $dirpart/$file" 324130561Sobrien echo '# dummy' > "$dirpart/$file" 325130561Sobrien done 326130561Sobriendone 327130561Sobrien])# _AM_OUTPUT_DEPENDENCY_COMMANDS 328130561Sobrien 329130561Sobrien 330130561Sobrien# AM_OUTPUT_DEPENDENCY_COMMANDS 331130561Sobrien# ----------------------------- 332130561Sobrien# This macro should only be invoked once -- use via AC_REQUIRE. 333130561Sobrien# 334130561Sobrien# This code is only required when automatic dependency tracking 335130561Sobrien# is enabled. FIXME. This creates each `.P' file that we will 336130561Sobrien# need in order to bootstrap the dependency handling code. 337130561SobrienAC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], 338130561Sobrien[AC_CONFIG_COMMANDS([depfiles], 339130561Sobrien [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], 340130561Sobrien [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) 341130561Sobrien]) 342130561Sobrien 343218822Sdim# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 344218822Sdim# Free Software Foundation, Inc. 345218822Sdim# 346218822Sdim# This file is free software; the Free Software Foundation 347218822Sdim# gives unlimited permission to copy and/or distribute it, 348218822Sdim# with or without modifications, as long as this notice is preserved. 349130561Sobrien 350218822Sdim# serial 8 351130561Sobrien 352130561Sobrien# AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS. 353130561SobrienAU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)]) 354130561Sobrien 355218822Sdim# Do all the work for Automake. -*- Autoconf -*- 356130561Sobrien 357218822Sdim# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 358130561Sobrien# Free Software Foundation, Inc. 359218822Sdim# 360218822Sdim# This file is free software; the Free Software Foundation 361218822Sdim# gives unlimited permission to copy and/or distribute it, 362218822Sdim# with or without modifications, as long as this notice is preserved. 363130561Sobrien 364218822Sdim# serial 12 365130561Sobrien 366218822Sdim# This macro actually does too much. Some checks are only needed if 367218822Sdim# your package does certain things. But this isn't really a big deal. 368130561Sobrien 369130561Sobrien# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) 370130561Sobrien# AM_INIT_AUTOMAKE([OPTIONS]) 371130561Sobrien# ----------------------------------------------- 372130561Sobrien# The call with PACKAGE and VERSION arguments is the old style 373130561Sobrien# call (pre autoconf-2.50), which is being phased out. PACKAGE 374130561Sobrien# and VERSION should now be passed to AC_INIT and removed from 375130561Sobrien# the call to AM_INIT_AUTOMAKE. 376130561Sobrien# We support both call styles for the transition. After 377130561Sobrien# the next Automake release, Autoconf can make the AC_INIT 378130561Sobrien# arguments mandatory, and then we can depend on a new Autoconf 379130561Sobrien# release and drop the old call support. 38094536SobrienAC_DEFUN([AM_INIT_AUTOMAKE], 381130561Sobrien[AC_PREREQ([2.58])dnl 382130561Sobriendnl Autoconf wants to disallow AM_ names. We explicitly allow 383130561Sobriendnl the ones we care about. 384130561Sobrienm4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl 385130561SobrienAC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl 386130561SobrienAC_REQUIRE([AC_PROG_INSTALL])dnl 387130561Sobrien# test to see if srcdir already configured 388130561Sobrienif test "`cd $srcdir && pwd`" != "`pwd`" && 389130561Sobrien test -f $srcdir/config.status; then 39038889Sjdp AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) 39138889Sjdpfi 39238889Sjdp 393130561Sobrien# test whether we have cygpath 394130561Sobrienif test -z "$CYGPATH_W"; then 395130561Sobrien if (cygpath --version) >/dev/null 2>/dev/null; then 396130561Sobrien CYGPATH_W='cygpath -w' 397130561Sobrien else 398130561Sobrien CYGPATH_W=echo 399130561Sobrien fi 400130561Sobrienfi 401130561SobrienAC_SUBST([CYGPATH_W]) 402130561Sobrien 403130561Sobrien# Define the identity of the package. 404130561Sobriendnl Distinguish between old-style and new-style calls. 405130561Sobrienm4_ifval([$2], 406130561Sobrien[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl 407130561Sobrien AC_SUBST([PACKAGE], [$1])dnl 408130561Sobrien AC_SUBST([VERSION], [$2])], 409130561Sobrien[_AM_SET_OPTIONS([$1])dnl 410130561Sobrien AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl 411130561Sobrien AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl 412130561Sobrien 413130561Sobrien_AM_IF_OPTION([no-define],, 414130561Sobrien[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) 415130561Sobrien AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl 416130561Sobrien 417130561Sobrien# Some tools Automake needs. 418130561SobrienAC_REQUIRE([AM_SANITY_CHECK])dnl 419130561SobrienAC_REQUIRE([AC_ARG_PROGRAM])dnl 420130561SobrienAM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) 421130561SobrienAM_MISSING_PROG(AUTOCONF, autoconf) 422130561SobrienAM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) 423130561SobrienAM_MISSING_PROG(AUTOHEADER, autoheader) 424130561SobrienAM_MISSING_PROG(MAKEINFO, makeinfo) 425130561SobrienAM_PROG_INSTALL_SH 426130561SobrienAM_PROG_INSTALL_STRIP 427130561SobrienAC_REQUIRE([AM_PROG_MKDIR_P])dnl 428130561Sobrien# We need awk for the "check" target. The system "awk" is bad on 429130561Sobrien# some platforms. 430130561SobrienAC_REQUIRE([AC_PROG_AWK])dnl 431130561SobrienAC_REQUIRE([AC_PROG_MAKE_SET])dnl 432130561SobrienAC_REQUIRE([AM_SET_LEADING_DOT])dnl 433218822Sdim_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], 434218822Sdim [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], 435218822Sdim [_AM_PROG_TAR([v7])])]) 436130561Sobrien_AM_IF_OPTION([no-dependencies],, 437130561Sobrien[AC_PROVIDE_IFELSE([AC_PROG_CC], 438130561Sobrien [_AM_DEPENDENCIES(CC)], 439130561Sobrien [define([AC_PROG_CC], 440130561Sobrien defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl 441130561SobrienAC_PROVIDE_IFELSE([AC_PROG_CXX], 442130561Sobrien [_AM_DEPENDENCIES(CXX)], 443130561Sobrien [define([AC_PROG_CXX], 444130561Sobrien defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl 445130561Sobrien]) 446130561Sobrien]) 447130561Sobrien 448130561Sobrien 449130561Sobrien# When config.status generates a header, we must update the stamp-h file. 450130561Sobrien# This file resides in the same directory as the config header 451130561Sobrien# that is generated. The stamp files are numbered to have different names. 452130561Sobrien 453130561Sobrien# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the 454130561Sobrien# loop where config.status creates the headers, so we can generate 455130561Sobrien# our stamp files there. 456130561SobrienAC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], 457130561Sobrien[# Compute $1's index in $config_headers. 458130561Sobrien_am_stamp_count=1 459130561Sobrienfor _am_header in $config_headers :; do 460130561Sobrien case $_am_header in 461130561Sobrien $1 | $1:* ) 462130561Sobrien break ;; 463130561Sobrien * ) 464130561Sobrien _am_stamp_count=`expr $_am_stamp_count + 1` ;; 465130561Sobrien esac 466130561Sobriendone 467130561Sobrienecho "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count]) 468130561Sobrien 469218822Sdim# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. 470218822Sdim# 471218822Sdim# This file is free software; the Free Software Foundation 472218822Sdim# gives unlimited permission to copy and/or distribute it, 473218822Sdim# with or without modifications, as long as this notice is preserved. 474218822Sdim 475130561Sobrien# AM_PROG_INSTALL_SH 476130561Sobrien# ------------------ 477130561Sobrien# Define $install_sh. 478130561SobrienAC_DEFUN([AM_PROG_INSTALL_SH], 479130561Sobrien[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 480130561Sobrieninstall_sh=${install_sh-"$am_aux_dir/install-sh"} 481130561SobrienAC_SUBST(install_sh)]) 482130561Sobrien 483218822Sdim# Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2005 484130561Sobrien# Free Software Foundation, Inc. 485218822Sdim# 486218822Sdim# This file is free software; the Free Software Foundation 487218822Sdim# gives unlimited permission to copy and/or distribute it, 488218822Sdim# with or without modifications, as long as this notice is preserved. 489130561Sobrien 490218822Sdim# serial 5 491130561Sobrien 492130561Sobrien# AM_PROG_LEX 493130561Sobrien# ----------- 494130561Sobrien# Autoconf leaves LEX=: if lex or flex can't be found. Change that to a 495130561Sobrien# "missing" invocation, for better error output. 496130561SobrienAC_DEFUN([AM_PROG_LEX], 497130561Sobrien[AC_PREREQ(2.50)dnl 498130561SobrienAC_REQUIRE([AM_MISSING_HAS_RUN])dnl 499130561SobrienAC_REQUIRE([AC_PROG_LEX])dnl 500130561Sobrienif test "$LEX" = :; then 501130561Sobrien LEX=${am_missing_run}flex 502130561Sobrienfi]) 503130561Sobrien 504218822Sdim# Add --enable-maintainer-mode option to configure. -*- Autoconf -*- 505130561Sobrien# From Jim Meyering 506130561Sobrien 507218822Sdim# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005 508130561Sobrien# Free Software Foundation, Inc. 509218822Sdim# 510218822Sdim# This file is free software; the Free Software Foundation 511218822Sdim# gives unlimited permission to copy and/or distribute it, 512218822Sdim# with or without modifications, as long as this notice is preserved. 513130561Sobrien 514218822Sdim# serial 4 515130561Sobrien 516130561SobrienAC_DEFUN([AM_MAINTAINER_MODE], 517130561Sobrien[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) 518130561Sobrien dnl maintainer-mode is disabled by default 519130561Sobrien AC_ARG_ENABLE(maintainer-mode, 520130561Sobrien[ --enable-maintainer-mode enable make rules and dependencies not useful 521130561Sobrien (and sometimes confusing) to the casual installer], 522130561Sobrien USE_MAINTAINER_MODE=$enableval, 523130561Sobrien USE_MAINTAINER_MODE=no) 524130561Sobrien AC_MSG_RESULT([$USE_MAINTAINER_MODE]) 525130561Sobrien AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes]) 526130561Sobrien MAINT=$MAINTAINER_MODE_TRUE 527130561Sobrien AC_SUBST(MAINT)dnl 528130561Sobrien] 529130561Sobrien) 530130561Sobrien 531130561SobrienAU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE]) 532130561Sobrien 533218822Sdim# Check to see how 'make' treats includes. -*- Autoconf -*- 534130561Sobrien 535218822Sdim# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. 536218822Sdim# 537218822Sdim# This file is free software; the Free Software Foundation 538218822Sdim# gives unlimited permission to copy and/or distribute it, 539218822Sdim# with or without modifications, as long as this notice is preserved. 540130561Sobrien 541218822Sdim# serial 3 542130561Sobrien 543130561Sobrien# AM_MAKE_INCLUDE() 544130561Sobrien# ----------------- 545130561Sobrien# Check to see how make treats includes. 546130561SobrienAC_DEFUN([AM_MAKE_INCLUDE], 547130561Sobrien[am_make=${MAKE-make} 548130561Sobriencat > confinc << 'END' 549130561Sobrienam__doit: 550130561Sobrien @echo done 551130561Sobrien.PHONY: am__doit 552130561SobrienEND 553130561Sobrien# If we don't find an include directive, just comment out the code. 554130561SobrienAC_MSG_CHECKING([for style of include used by $am_make]) 555130561Sobrienam__include="#" 556130561Sobrienam__quote= 557130561Sobrien_am_result=none 558130561Sobrien# First try GNU make style include. 559130561Sobrienecho "include confinc" > confmf 560130561Sobrien# We grep out `Entering directory' and `Leaving directory' 561130561Sobrien# messages which can occur if `w' ends up in MAKEFLAGS. 562130561Sobrien# In particular we don't look at `^make:' because GNU make might 563130561Sobrien# be invoked under some other name (usually "gmake"), in which 564130561Sobrien# case it prints its new name instead of `make'. 565130561Sobrienif test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 566130561Sobrien am__include=include 567130561Sobrien am__quote= 568130561Sobrien _am_result=GNU 569130561Sobrienfi 570130561Sobrien# Now try BSD make style include. 571130561Sobrienif test "$am__include" = "#"; then 572130561Sobrien echo '.include "confinc"' > confmf 573130561Sobrien if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 574130561Sobrien am__include=.include 575130561Sobrien am__quote="\"" 576130561Sobrien _am_result=BSD 577130561Sobrien fi 578130561Sobrienfi 579130561SobrienAC_SUBST([am__include]) 580130561SobrienAC_SUBST([am__quote]) 581130561SobrienAC_MSG_RESULT([$_am_result]) 582130561Sobrienrm -f confinc confmf 583130561Sobrien]) 584130561Sobrien 585218822Sdim# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- 586130561Sobrien 587218822Sdim# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005 588218822Sdim# Free Software Foundation, Inc. 589218822Sdim# 590218822Sdim# This file is free software; the Free Software Foundation 591218822Sdim# gives unlimited permission to copy and/or distribute it, 592218822Sdim# with or without modifications, as long as this notice is preserved. 593130561Sobrien 594218822Sdim# serial 4 595130561Sobrien 596130561Sobrien# AM_MISSING_PROG(NAME, PROGRAM) 597130561Sobrien# ------------------------------ 598130561SobrienAC_DEFUN([AM_MISSING_PROG], 599130561Sobrien[AC_REQUIRE([AM_MISSING_HAS_RUN]) 600130561Sobrien$1=${$1-"${am_missing_run}$2"} 601130561SobrienAC_SUBST($1)]) 602130561Sobrien 603130561Sobrien 604130561Sobrien# AM_MISSING_HAS_RUN 605130561Sobrien# ------------------ 606130561Sobrien# Define MISSING if not defined so far and test if it supports --run. 607130561Sobrien# If it does, set am_missing_run to use it, otherwise, to nothing. 608130561SobrienAC_DEFUN([AM_MISSING_HAS_RUN], 609130561Sobrien[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 610130561Sobrientest x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 611130561Sobrien# Use eval to expand $SHELL 612130561Sobrienif eval "$MISSING --run true"; then 613130561Sobrien am_missing_run="$MISSING --run " 614130561Sobrienelse 615130561Sobrien am_missing_run= 616130561Sobrien AC_MSG_WARN([`missing' script is too old or missing]) 617130561Sobrienfi 618130561Sobrien]) 619130561Sobrien 620218822Sdim# Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc. 621218822Sdim# 622218822Sdim# This file is free software; the Free Software Foundation 623218822Sdim# gives unlimited permission to copy and/or distribute it, 624218822Sdim# with or without modifications, as long as this notice is preserved. 625218822Sdim 626130561Sobrien# AM_PROG_MKDIR_P 627130561Sobrien# --------------- 628130561Sobrien# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise. 629218822Sdim# 630130561Sobrien# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories 631130561Sobrien# created by `make install' are always world readable, even if the 632130561Sobrien# installer happens to have an overly restrictive umask (e.g. 077). 633130561Sobrien# This was a mistake. There are at least two reasons why we must not 634130561Sobrien# use `-m 0755': 635130561Sobrien# - it causes special bits like SGID to be ignored, 636130561Sobrien# - it may be too restrictive (some setups expect 775 directories). 63738889Sjdp# 638130561Sobrien# Do not use -m 0755 and let people choose whatever they expect by 639130561Sobrien# setting umask. 640130561Sobrien# 641130561Sobrien# We cannot accept any implementation of `mkdir' that recognizes `-p'. 642130561Sobrien# Some implementations (such as Solaris 8's) are not thread-safe: if a 643130561Sobrien# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c' 644130561Sobrien# concurrently, both version can detect that a/ is missing, but only 645130561Sobrien# one can create it and the other will error out. Consequently we 646130561Sobrien# restrict ourselves to GNU make (using the --version option ensures 647130561Sobrien# this.) 648130561SobrienAC_DEFUN([AM_PROG_MKDIR_P], 649130561Sobrien[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then 650218822Sdim # We used to keeping the `.' as first argument, in order to 651218822Sdim # allow $(mkdir_p) to be used without argument. As in 652130561Sobrien # $(mkdir_p) $(somedir) 653218822Sdim # where $(somedir) is conditionally defined. However this is wrong 654218822Sdim # for two reasons: 655218822Sdim # 1. if the package is installed by a user who cannot write `.' 656218822Sdim # make install will fail, 657218822Sdim # 2. the above comment should most certainly read 658218822Sdim # $(mkdir_p) $(DESTDIR)$(somedir) 659218822Sdim # so it does not work when $(somedir) is undefined and 660218822Sdim # $(DESTDIR) is not. 661218822Sdim # To support the latter case, we have to write 662218822Sdim # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), 663218822Sdim # so the `.' trick is pointless. 664218822Sdim mkdir_p='mkdir -p --' 665130561Sobrienelse 666130561Sobrien # On NextStep and OpenStep, the `mkdir' command does not 667130561Sobrien # recognize any option. It will interpret all options as 668130561Sobrien # directories to create, and then abort because `.' already 669130561Sobrien # exists. 670130561Sobrien for d in ./-p ./--version; 671130561Sobrien do 672130561Sobrien test -d $d && rmdir $d 673130561Sobrien done 674130561Sobrien # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. 675130561Sobrien if test -f "$ac_aux_dir/mkinstalldirs"; then 676130561Sobrien mkdir_p='$(mkinstalldirs)' 677130561Sobrien else 678130561Sobrien mkdir_p='$(install_sh) -d' 679130561Sobrien fi 680130561Sobrienfi 681130561SobrienAC_SUBST([mkdir_p])]) 682130561Sobrien 683218822Sdim# Helper functions for option handling. -*- Autoconf -*- 684130561Sobrien 685218822Sdim# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. 686218822Sdim# 687218822Sdim# This file is free software; the Free Software Foundation 688218822Sdim# gives unlimited permission to copy and/or distribute it, 689218822Sdim# with or without modifications, as long as this notice is preserved. 690130561Sobrien 691218822Sdim# serial 3 692130561Sobrien 693130561Sobrien# _AM_MANGLE_OPTION(NAME) 694130561Sobrien# ----------------------- 695130561SobrienAC_DEFUN([_AM_MANGLE_OPTION], 696130561Sobrien[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) 697130561Sobrien 698130561Sobrien# _AM_SET_OPTION(NAME) 699130561Sobrien# ------------------------------ 700130561Sobrien# Set option NAME. Presently that only means defining a flag for this option. 701130561SobrienAC_DEFUN([_AM_SET_OPTION], 702130561Sobrien[m4_define(_AM_MANGLE_OPTION([$1]), 1)]) 703130561Sobrien 704130561Sobrien# _AM_SET_OPTIONS(OPTIONS) 705130561Sobrien# ---------------------------------- 706130561Sobrien# OPTIONS is a space-separated list of Automake options. 707130561SobrienAC_DEFUN([_AM_SET_OPTIONS], 708130561Sobrien[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) 709130561Sobrien 710130561Sobrien# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) 711130561Sobrien# ------------------------------------------- 712130561Sobrien# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. 713130561SobrienAC_DEFUN([_AM_IF_OPTION], 714130561Sobrien[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) 715130561Sobrien 716218822Sdim# Check to make sure that the build environment is sane. -*- Autoconf -*- 717218822Sdim 718218822Sdim# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 719218822Sdim# Free Software Foundation, Inc. 720130561Sobrien# 721218822Sdim# This file is free software; the Free Software Foundation 722218822Sdim# gives unlimited permission to copy and/or distribute it, 723218822Sdim# with or without modifications, as long as this notice is preserved. 72438889Sjdp 725218822Sdim# serial 4 726130561Sobrien 727130561Sobrien# AM_SANITY_CHECK 728130561Sobrien# --------------- 72994536SobrienAC_DEFUN([AM_SANITY_CHECK], 73038889Sjdp[AC_MSG_CHECKING([whether build environment is sane]) 73138889Sjdp# Just in case 73238889Sjdpsleep 1 733130561Sobrienecho timestamp > conftest.file 73438889Sjdp# Do `set' in a subshell so we don't clobber the current shell's 73538889Sjdp# arguments. Must try -L first in case configure is actually a 73638889Sjdp# symlink; some systems play weird games with the mod time of symlinks 73738889Sjdp# (eg FreeBSD returns the mod time of the symlink's containing 73838889Sjdp# directory). 73938889Sjdpif ( 740130561Sobrien set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 741130561Sobrien if test "$[*]" = "X"; then 74238889Sjdp # -L didn't work. 743130561Sobrien set X `ls -t $srcdir/configure conftest.file` 74438889Sjdp fi 745130561Sobrien rm -f conftest.file 746130561Sobrien if test "$[*]" != "X $srcdir/configure conftest.file" \ 747130561Sobrien && test "$[*]" != "X conftest.file $srcdir/configure"; then 74838889Sjdp 74938889Sjdp # If neither matched, then we have a broken ls. This can happen 75038889Sjdp # if, for instance, CONFIG_SHELL is bash and it inherits a 75138889Sjdp # broken ls alias from the environment. This has actually 75238889Sjdp # happened. Such a system could not be considered "sane". 75338889Sjdp AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken 75438889Sjdpalias in your environment]) 75538889Sjdp fi 75638889Sjdp 757130561Sobrien test "$[2]" = conftest.file 75838889Sjdp ) 75938889Sjdpthen 76038889Sjdp # Ok. 76138889Sjdp : 76238889Sjdpelse 76338889Sjdp AC_MSG_ERROR([newly created file is older than distributed files! 76438889SjdpCheck your system clock]) 76538889Sjdpfi 76638889SjdpAC_MSG_RESULT(yes)]) 76738889Sjdp 768218822Sdim# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. 769218822Sdim# 770218822Sdim# This file is free software; the Free Software Foundation 771218822Sdim# gives unlimited permission to copy and/or distribute it, 772218822Sdim# with or without modifications, as long as this notice is preserved. 773218822Sdim 774130561Sobrien# AM_PROG_INSTALL_STRIP 775218822Sdim# --------------------- 776130561Sobrien# One issue with vendor `install' (even GNU) is that you can't 777130561Sobrien# specify the program used to strip binaries. This is especially 778130561Sobrien# annoying in cross-compiling environments, where the build's strip 779130561Sobrien# is unlikely to handle the host's binaries. 780130561Sobrien# Fortunately install-sh will honor a STRIPPROG variable, so we 781130561Sobrien# always use install-sh in `make install-strip', and initialize 782130561Sobrien# STRIPPROG with the value of the STRIP variable (set by the user). 783130561SobrienAC_DEFUN([AM_PROG_INSTALL_STRIP], 784130561Sobrien[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl 785130561Sobrien# Installed binaries are usually stripped using `strip' when the user 786130561Sobrien# run `make install-strip'. However `strip' might not be the right 787130561Sobrien# tool to use in cross-compilation environments, therefore Automake 788130561Sobrien# will honor the `STRIP' environment variable to overrule this program. 789130561Sobriendnl Don't test for $cross_compiling = yes, because it might be `maybe'. 790130561Sobrienif test "$cross_compiling" != no; then 791130561Sobrien AC_CHECK_TOOL([STRIP], [strip], :) 792130561Sobrienfi 793130561SobrienINSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 794130561SobrienAC_SUBST([INSTALL_STRIP_PROGRAM])]) 79538889Sjdp 796218822Sdim# Check how to create a tarball. -*- Autoconf -*- 797218822Sdim 798218822Sdim# Copyright (C) 2004, 2005 Free Software Foundation, Inc. 799218822Sdim# 800218822Sdim# This file is free software; the Free Software Foundation 801218822Sdim# gives unlimited permission to copy and/or distribute it, 802218822Sdim# with or without modifications, as long as this notice is preserved. 803218822Sdim 804218822Sdim# serial 2 805218822Sdim 806218822Sdim# _AM_PROG_TAR(FORMAT) 807218822Sdim# -------------------- 808218822Sdim# Check how to create a tarball in format FORMAT. 809218822Sdim# FORMAT should be one of `v7', `ustar', or `pax'. 810218822Sdim# 811218822Sdim# Substitute a variable $(am__tar) that is a command 812218822Sdim# writing to stdout a FORMAT-tarball containing the directory 813218822Sdim# $tardir. 814218822Sdim# tardir=directory && $(am__tar) > result.tar 815218822Sdim# 816218822Sdim# Substitute a variable $(am__untar) that extract such 817218822Sdim# a tarball read from stdin. 818218822Sdim# $(am__untar) < result.tar 819218822SdimAC_DEFUN([_AM_PROG_TAR], 820218822Sdim[# Always define AMTAR for backward compatibility. 821218822SdimAM_MISSING_PROG([AMTAR], [tar]) 822218822Sdimm4_if([$1], [v7], 823218822Sdim [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], 824218822Sdim [m4_case([$1], [ustar],, [pax],, 825218822Sdim [m4_fatal([Unknown tar format])]) 826218822SdimAC_MSG_CHECKING([how to create a $1 tar archive]) 827218822Sdim# Loop over all known methods to create a tar archive until one works. 828218822Sdim_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' 829218822Sdim_am_tools=${am_cv_prog_tar_$1-$_am_tools} 830218822Sdim# Do not fold the above two line into one, because Tru64 sh and 831218822Sdim# Solaris sh will not grok spaces in the rhs of `-'. 832218822Sdimfor _am_tool in $_am_tools 833218822Sdimdo 834218822Sdim case $_am_tool in 835218822Sdim gnutar) 836218822Sdim for _am_tar in tar gnutar gtar; 837218822Sdim do 838218822Sdim AM_RUN_LOG([$_am_tar --version]) && break 839218822Sdim done 840218822Sdim am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' 841218822Sdim am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' 842218822Sdim am__untar="$_am_tar -xf -" 843218822Sdim ;; 844218822Sdim plaintar) 845218822Sdim # Must skip GNU tar: if it does not support --format= it doesn't create 846218822Sdim # ustar tarball either. 847218822Sdim (tar --version) >/dev/null 2>&1 && continue 848218822Sdim am__tar='tar chf - "$$tardir"' 849218822Sdim am__tar_='tar chf - "$tardir"' 850218822Sdim am__untar='tar xf -' 851218822Sdim ;; 852218822Sdim pax) 853218822Sdim am__tar='pax -L -x $1 -w "$$tardir"' 854218822Sdim am__tar_='pax -L -x $1 -w "$tardir"' 855218822Sdim am__untar='pax -r' 856218822Sdim ;; 857218822Sdim cpio) 858218822Sdim am__tar='find "$$tardir" -print | cpio -o -H $1 -L' 859218822Sdim am__tar_='find "$tardir" -print | cpio -o -H $1 -L' 860218822Sdim am__untar='cpio -i -H $1 -d' 861218822Sdim ;; 862218822Sdim none) 863218822Sdim am__tar=false 864218822Sdim am__tar_=false 865218822Sdim am__untar=false 866218822Sdim ;; 867218822Sdim esac 868218822Sdim 869218822Sdim # If the value was cached, stop now. We just wanted to have am__tar 870218822Sdim # and am__untar set. 871218822Sdim test -n "${am_cv_prog_tar_$1}" && break 872218822Sdim 873218822Sdim # tar/untar a dummy directory, and stop if the command works 874218822Sdim rm -rf conftest.dir 875218822Sdim mkdir conftest.dir 876218822Sdim echo GrepMe > conftest.dir/file 877218822Sdim AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) 878218822Sdim rm -rf conftest.dir 879218822Sdim if test -s conftest.tar; then 880218822Sdim AM_RUN_LOG([$am__untar <conftest.tar]) 881218822Sdim grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 882218822Sdim fi 883218822Sdimdone 884218822Sdimrm -rf conftest.dir 885218822Sdim 886218822SdimAC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) 887218822SdimAC_MSG_RESULT([$am_cv_prog_tar_$1])]) 888218822SdimAC_SUBST([am__tar]) 889218822SdimAC_SUBST([am__untar]) 890218822Sdim]) # _AM_PROG_TAR 891218822Sdim 892218822Sdimm4_include([../bfd/acinclude.m4]) 893218822Sdimm4_include([../bfd/warning.m4]) 894218822Sdimm4_include([../config/depstand.m4]) 895218822Sdimm4_include([../config/gettext-sister.m4]) 896218822Sdimm4_include([../config/lead-dot.m4]) 897218822Sdimm4_include([../config/nls.m4]) 898218822Sdimm4_include([../config/po.m4]) 899218822Sdimm4_include([../config/progtest.m4]) 900218822Sdimm4_include([../libtool.m4]) 901218822Sdimm4_include([../ltoptions.m4]) 902218822Sdimm4_include([../ltsugar.m4]) 903218822Sdimm4_include([../ltversion.m4]) 904130561Sobrienm4_include([acinclude.m4]) 905