1N/A# generated automatically by aclocal 1.9.4 -*- Autoconf -*-
1N/A
1N/A# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
1N/A# Free Software Foundation, Inc.
1N/A# This file is free software; the Free Software Foundation
1N/A# gives unlimited permission to copy and/or distribute it,
1N/A# with or without modifications, as long as this notice is preserved.
1N/A
1N/A# This program is distributed in the hope that it will be useful,
1N/A# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
1N/A# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
1N/A# PARTICULAR PURPOSE.
1N/A
1N/A# -*- Autoconf -*-
1N/A# Copyright (C) 2002, 2003 Free Software Foundation, Inc.
1N/A# Generated from amversion.in; do not edit by hand.
1N/A
1N/A# This program is free software; you can redistribute it and/or modify
1N/A# it under the terms of the GNU General Public License as published by
1N/A# the Free Software Foundation; either version 2, or (at your option)
1N/A# any later version.
1N/A
1N/A# This program is distributed in the hope that it will be useful,
1N/A# but WITHOUT ANY WARRANTY; without even the implied warranty of
1N/A# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1N/A# GNU General Public License for more details.
1N/A
1N/A# You should have received a copy of the GNU General Public License
1N/A# along with this program; if not, write to the Free Software
1N/A# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1N/A
1N/A# AM_AUTOMAKE_VERSION(VERSION)
1N/A# ----------------------------
1N/A# Automake X.Y traces this macro to ensure aclocal.m4 has been
1N/A# generated from the m4 files accompanying Automake X.Y.
1N/AAC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
1N/A
1N/A# AM_SET_CURRENT_AUTOMAKE_VERSION
1N/A# -------------------------------
1N/A# Call AM_AUTOMAKE_VERSION so it can be traced.
1N/A# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
1N/AAC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
1N/A [AM_AUTOMAKE_VERSION([1.9.4])])
1N/A
1N/A# AM_AUX_DIR_EXPAND
1N/A
1N/A# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
1N/A
1N/A# This program is free software; you can redistribute it and/or modify
1N/A# it under the terms of the GNU General Public License as published by
1N/A# the Free Software Foundation; either version 2, or (at your option)
1N/A# any later version.
1N/A
1N/A# This program is distributed in the hope that it will be useful,
1N/A# but WITHOUT ANY WARRANTY; without even the implied warranty of
1N/A# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1N/A# GNU General Public License for more details.
1N/A
1N/A# You should have received a copy of the GNU General Public License
1N/A# along with this program; if not, write to the Free Software
1N/A# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1N/A# 02111-1307, USA.
1N/A
1N/A# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
1N/A# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
1N/A# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
1N/A#
1N/A# Of course, Automake must honor this variable whenever it calls a
1N/A# tool from the auxiliary directory. The problem is that $srcdir (and
1N/A# therefore $ac_aux_dir as well) can be either absolute or relative,
1N/A# depending on how configure is run. This is pretty annoying, since
1N/A# it makes $ac_aux_dir quite unusable in subdirectories: in the top
1N/A# source directory, any form will work fine, but in subdirectories a
1N/A# relative path needs to be adjusted first.
1N/A#
1N/A# $ac_aux_dir/missing
1N/A# fails when called from a subdirectory if $ac_aux_dir is relative
1N/A# $top_srcdir/$ac_aux_dir/missing
1N/A# fails if $ac_aux_dir is absolute,
1N/A# fails when called from a subdirectory in a VPATH build with
1N/A# a relative $ac_aux_dir
1N/A#
1N/A# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
1N/A# are both prefixed by $srcdir. In an in-source build this is usually
1N/A# harmless because $srcdir is `.', but things will broke when you
1N/A# start a VPATH build or use an absolute $srcdir.
1N/A#
1N/A# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
1N/A# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
1N/A# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
1N/A# and then we would define $MISSING as
1N/A# MISSING="\${SHELL} $am_aux_dir/missing"
1N/A# This will work as long as MISSING is not called from configure, because
1N/A# unfortunately $(top_srcdir) has no meaning in configure.
1N/A# However there are other variables, like CC, which are often used in
1N/A# configure, and could therefore not use this "fixed" $ac_aux_dir.
1N/A#
1N/A# Another solution, used here, is to always expand $ac_aux_dir to an
1N/A# absolute PATH. The drawback is that using absolute paths prevent a
1N/A# configured tree to be moved without reconfiguration.
1N/A
1N/AAC_DEFUN([AM_AUX_DIR_EXPAND],
1N/A[dnl Rely on autoconf to set up CDPATH properly.
1N/AAC_PREREQ([2.50])dnl
1N/A# expand $ac_aux_dir to an absolute path
1N/Aam_aux_dir=`cd $ac_aux_dir && pwd`
1N/A])
1N/A
1N/A# AM_CONDITIONAL -*- Autoconf -*-
1N/A
1N/A# Copyright (C) 1997, 2000, 2001, 2003, 2004 Free Software Foundation, Inc.
1N/A
1N/A# This program is free software; you can redistribute it and/or modify
1N/A# it under the terms of the GNU General Public License as published by
1N/A# the Free Software Foundation; either version 2, or (at your option)
1N/A# any later version.
1N/A
1N/A# This program is distributed in the hope that it will be useful,
1N/A# but WITHOUT ANY WARRANTY; without even the implied warranty of
1N/A# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1N/A# GNU General Public License for more details.
1N/A
1N/A# You should have received a copy of the GNU General Public License
1N/A# along with this program; if not, write to the Free Software
1N/A# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1N/A# 02111-1307, USA.
1N/A
1N/A# serial 6
1N/A
1N/A# AM_CONDITIONAL(NAME, SHELL-CONDITION)
1N/A# -------------------------------------
1N/A# Define a conditional.
1N/AAC_DEFUN([AM_CONDITIONAL],
1N/A[AC_PREREQ(2.52)dnl
1N/A ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
1N/A [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
1N/AAC_SUBST([$1_TRUE])
1N/AAC_SUBST([$1_FALSE])
1N/Aif $2; then
1N/A $1_TRUE=
1N/A $1_FALSE='#'
1N/Aelse
1N/A $1_TRUE='#'
1N/A $1_FALSE=
1N/Afi
1N/AAC_CONFIG_COMMANDS_PRE(
1N/A[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
1N/A AC_MSG_ERROR([[conditional "$1" was never defined.
1N/AUsually this means the macro was only invoked conditionally.]])
1N/Afi])])
1N/A
1N/A# serial 7 -*- Autoconf -*-
1N/A
1N/A# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004
1N/A# Free Software Foundation, Inc.
1N/A
1N/A# This program is free software; you can redistribute it and/or modify
1N/A# it under the terms of the GNU General Public License as published by
1N/A# the Free Software Foundation; either version 2, or (at your option)
1N/A# any later version.
1N/A
1N/A# This program is distributed in the hope that it will be useful,
1N/A# but WITHOUT ANY WARRANTY; without even the implied warranty of
1N/A# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1N/A# GNU General Public License for more details.
1N/A
1N/A# You should have received a copy of the GNU General Public License
1N/A# along with this program; if not, write to the Free Software
1N/A# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1N/A# 02111-1307, USA.
1N/A
1N/A
1N/A# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
1N/A# written in clear, in which case automake, when reading aclocal.m4,
1N/A# will think it sees a *use*, and therefore will trigger all it's
1N/A# C support machinery. Also note that it means that autoscan, seeing
1N/A# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
1N/A
1N/A
1N/A
1N/A# _AM_DEPENDENCIES(NAME)
1N/A# ----------------------
1N/A# See how the compiler implements dependency checking.
1N/A# NAME is "CC", "CXX", "GCJ", or "OBJC".
1N/A# We try a few techniques and use that to set a single cache variable.
1N/A#
1N/A# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
1N/A# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
1N/A# dependency, and given that the user is not expected to run this macro,
1N/A# just rely on AC_PROG_CC.
1N/AAC_DEFUN([_AM_DEPENDENCIES],
1N/A[AC_REQUIRE([AM_SET_DEPDIR])dnl
1N/AAC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
1N/AAC_REQUIRE([AM_MAKE_INCLUDE])dnl
1N/AAC_REQUIRE([AM_DEP_TRACK])dnl
1N/A
1N/Aifelse([$1], CC, [depcc="$CC" am_compiler_list=],
1N/A [$1], CXX, [depcc="$CXX" am_compiler_list=],
1N/A [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
1N/A [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
1N/A [depcc="$$1" am_compiler_list=])
1N/A
1N/AAC_CACHE_CHECK([dependency style of $depcc],
1N/A [am_cv_$1_dependencies_compiler_type],
1N/A[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
1N/A # We make a subdir and do the tests there. Otherwise we can end up
1N/A # making bogus files that we don't know about and never remove. For
1N/A # instance it was reported that on HP-UX the gcc test will end up
1N/A # making a dummy file named `D' -- because `-MD' means `put the output
1N/A # in D'.
1N/A mkdir conftest.dir
1N/A # Copy depcomp to subdir because otherwise we won't find it if we're
1N/A # using a relative directory.
1N/A cp "$am_depcomp" conftest.dir
1N/A cd conftest.dir
1N/A # We will build objects and dependencies in a subdirectory because
1N/A # it helps to detect inapplicable dependency modes. For instance
1N/A # both Tru64's cc and ICC support -MD to output dependencies as a
1N/A # side effect of compilation, but ICC will put the dependencies in
1N/A # the current directory while Tru64 will put them in the object
1N/A # directory.
1N/A mkdir sub
1N/A
1N/A am_cv_$1_dependencies_compiler_type=none
1N/A if test "$am_compiler_list" = ""; then
1N/A am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
1N/A fi
1N/A for depmode in $am_compiler_list; do
1N/A # Setup a source with many dependencies, because some compilers
1N/A # like to wrap large dependency lists on column 80 (with \), and
1N/A # we should not choose a depcomp mode which is confused by this.
1N/A #
1N/A # We need to recreate these files for each test, as the compiler may
1N/A # overwrite some of them when testing with obscure command lines.
1N/A # This happens at least with the AIX C compiler.
1N/A : > sub/conftest.c
1N/A for i in 1 2 3 4 5 6; do
1N/A echo '#include "conftst'$i'.h"' >> sub/conftest.c
1N/A # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
1N/A # Solaris 8's {/usr,}/bin/sh.
1N/A touch sub/conftst$i.h
1N/A done
1N/A echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1N/A
1N/A case $depmode in
1N/A nosideeffect)
1N/A # after this tag, mechanisms are not by side-effect, so they'll
1N/A # only be used when explicitly requested
1N/A if test "x$enable_dependency_tracking" = xyes; then
1N/A continue
1N/A else
1N/A break
1N/A fi
1N/A ;;
1N/A none) break ;;
1N/A esac
1N/A # We check with `-c' and `-o' for the sake of the "dashmstdout"
1N/A # mode. It turns out that the SunPro C++ compiler does not properly
1N/A # handle `-M -o', and we need to detect this.
1N/A if depmode=$depmode \
1N/A source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
1N/A depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
1N/A $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
1N/A >/dev/null 2>conftest.err &&
1N/A grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
1N/A grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
1N/A ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1N/A # icc doesn't choke on unknown options, it will just issue warnings
1N/A # or remarks (even with -Werror). So we grep stderr for any message
1N/A # that says an option was ignored or not supported.
1N/A # When given -MP, icc 7.0 and 7.1 complain thusly:
1N/A # icc: Command line warning: ignoring option '-M'; no argument required
1N/A # The diagnosis changed in icc 8.0:
1N/A # icc: Command line remark: option '-MP' not supported
1N/A if (grep 'ignoring option' conftest.err ||
1N/A grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
1N/A am_cv_$1_dependencies_compiler_type=$depmode
1N/A break
1N/A fi
1N/A fi
1N/A done
1N/A
1N/A cd ..
1N/A rm -rf conftest.dir
1N/Aelse
1N/A am_cv_$1_dependencies_compiler_type=none
1N/Afi
1N/A])
1N/AAC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
1N/AAM_CONDITIONAL([am__fastdep$1], [
1N/A test "x$enable_dependency_tracking" != xno \
1N/A && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
1N/A])
1N/A
1N/A
1N/A# AM_SET_DEPDIR
1N/A# -------------
1N/A# Choose a directory name for dependency files.
1N/A# This macro is AC_REQUIREd in _AM_DEPENDENCIES
1N/AAC_DEFUN([AM_SET_DEPDIR],
1N/A[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
1N/AAC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
1N/A])
1N/A
1N/A
1N/A# AM_DEP_TRACK
1N/A# ------------
1N/AAC_DEFUN([AM_DEP_TRACK],
1N/A[AC_ARG_ENABLE(dependency-tracking,
1N/A[ --disable-dependency-tracking speeds up one-time build
1N/A --enable-dependency-tracking do not reject slow dependency extractors])
1N/Aif test "x$enable_dependency_tracking" != xno; then
1N/A am_depcomp="$ac_aux_dir/depcomp"
1N/A AMDEPBACKSLASH='\'
1N/Afi
1N/AAM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
1N/AAC_SUBST([AMDEPBACKSLASH])
1N/A])
1N/A
1N/A# Generate code to set up dependency tracking. -*- Autoconf -*-
1N/A
1N/A# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004
1N/A# Free Software Foundation, Inc.
1N/A
1N/A# This program is free software; you can redistribute it and/or modify
1N/A# it under the terms of the GNU General Public License as published by
1N/A# the Free Software Foundation; either version 2, or (at your option)
1N/A# any later version.
1N/A
1N/A# This program is distributed in the hope that it will be useful,
1N/A# but WITHOUT ANY WARRANTY; without even the implied warranty of
1N/A# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1N/A# GNU General Public License for more details.
1N/A
1N/A# You should have received a copy of the GNU General Public License
1N/A# along with this program; if not, write to the Free Software
1N/A# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1N/A# 02111-1307, USA.
1N/A
1N/A#serial 2
1N/A
1N/A# _AM_OUTPUT_DEPENDENCY_COMMANDS
1N/A# ------------------------------
1N/AAC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
1N/A[for mf in $CONFIG_FILES; do
1N/A # Strip MF so we end up with the name of the file.
1N/A mf=`echo "$mf" | sed -e 's/:.*$//'`
1N/A # Check whether this is an Automake generated Makefile or not.
1N/A # We used to match only the files named `Makefile.in', but
1N/A # some people rename them; so instead we look at the file content.
1N/A # Grep'ing the first line is not enough: some people post-process
1N/A # each Makefile.in and add a new line on top of each file to say so.
1N/A # So let's grep whole file.
1N/A if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
1N/A dirpart=`AS_DIRNAME("$mf")`
1N/A else
1N/A continue
1N/A fi
1N/A # Extract the definition of DEPDIR, am__include, and am__quote
1N/A # from the Makefile without running `make'.
1N/A DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
1N/A test -z "$DEPDIR" && continue
1N/A am__include=`sed -n 's/^am__include = //p' < "$mf"`
1N/A test -z "am__include" && continue
1N/A am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
1N/A # When using ansi2knr, U may be empty or an underscore; expand it
1N/A U=`sed -n 's/^U = //p' < "$mf"`
1N/A # Find all dependency output files, they are included files with
1N/A # $(DEPDIR) in their names. We invoke sed twice because it is the
1N/A # simplest approach to changing $(DEPDIR) to its actual value in the
1N/A # expansion.
1N/A for file in `sed -n "
1N/A s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
1N/A sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
1N/A # Make sure the directory exists.
1N/A test -f "$dirpart/$file" && continue
1N/A fdir=`AS_DIRNAME(["$file"])`
1N/A AS_MKDIR_P([$dirpart/$fdir])
1N/A # echo "creating $dirpart/$file"
1N/A echo '# dummy' > "$dirpart/$file"
1N/A done
1N/Adone
1N/A])# _AM_OUTPUT_DEPENDENCY_COMMANDS
1N/A
1N/A
1N/A# AM_OUTPUT_DEPENDENCY_COMMANDS
1N/A# -----------------------------
1N/A# This macro should only be invoked once -- use via AC_REQUIRE.
1N/A#
1N/A# This code is only required when automatic dependency tracking
1N/A# is enabled. FIXME. This creates each `.P' file that we will
1N/A# need in order to bootstrap the dependency handling code.
1N/AAC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
1N/A[AC_CONFIG_COMMANDS([depfiles],
1N/A [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
1N/A [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
1N/A])
1N/A
1N/A# Do all the work for Automake. -*- Autoconf -*-
1N/A
1N/A# This macro actually does too much some checks are only needed if
1N/A# your package does certain things. But this isn't really a big deal.
1N/A
1N/A# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
1N/A# Free Software Foundation, Inc.
1N/A
1N/A# This program is free software; you can redistribute it and/or modify
1N/A# it under the terms of the GNU General Public License as published by
1N/A# the Free Software Foundation; either version 2, or (at your option)
1N/A# any later version.
1N/A
1N/A# This program is distributed in the hope that it will be useful,
1N/A# but WITHOUT ANY WARRANTY; without even the implied warranty of
1N/A# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1N/A# GNU General Public License for more details.
1N/A
1N/A# You should have received a copy of the GNU General Public License
1N/A# along with this program; if not, write to the Free Software
1N/A# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1N/A# 02111-1307, USA.
1N/A
1N/A# serial 11
1N/A
1N/A# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
1N/A# AM_INIT_AUTOMAKE([OPTIONS])
1N/A# -----------------------------------------------
1N/A# The call with PACKAGE and VERSION arguments is the old style
1N/A# call (pre autoconf-2.50), which is being phased out. PACKAGE
1N/A# and VERSION should now be passed to AC_INIT and removed from
1N/A# the call to AM_INIT_AUTOMAKE.
1N/A# We support both call styles for the transition. After
1N/A# the next Automake release, Autoconf can make the AC_INIT
1N/A# arguments mandatory, and then we can depend on a new Autoconf
1N/A# release and drop the old call support.
1N/AAC_DEFUN([AM_INIT_AUTOMAKE],
1N/A[AC_PREREQ([2.58])dnl
1N/Adnl Autoconf wants to disallow AM_ names. We explicitly allow
1N/Adnl the ones we care about.
1N/Am4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
1N/AAC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
1N/AAC_REQUIRE([AC_PROG_INSTALL])dnl
1N/A# test to see if srcdir already configured
1N/Aif test "`cd $srcdir && pwd`" != "`pwd`" &&
1N/A test -f $srcdir/config.status; then
1N/A AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
1N/Afi
1N/A
1N/A# test whether we have cygpath
1N/Aif test -z "$CYGPATH_W"; then
1N/A if (cygpath --version) >/dev/null 2>/dev/null; then
1N/A CYGPATH_W='cygpath -w'
1N/A else
1N/A CYGPATH_W=echo
1N/A fi
1N/Afi
1N/AAC_SUBST([CYGPATH_W])
1N/A
1N/A# Define the identity of the package.
1N/Adnl Distinguish between old-style and new-style calls.
1N/Am4_ifval([$2],
1N/A[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
1N/A AC_SUBST([PACKAGE], [$1])dnl
1N/A AC_SUBST([VERSION], [$2])],
1N/A[_AM_SET_OPTIONS([$1])dnl
1N/A AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
1N/A AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
1N/A
1N/A_AM_IF_OPTION([no-define],,
1N/A[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
1N/A AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
1N/A
1N/A# Some tools Automake needs.
1N/AAC_REQUIRE([AM_SANITY_CHECK])dnl
1N/AAC_REQUIRE([AC_ARG_PROGRAM])dnl
1N/AAM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
1N/AAM_MISSING_PROG(AUTOCONF, autoconf)
1N/AAM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
1N/AAM_MISSING_PROG(AUTOHEADER, autoheader)
1N/AAM_MISSING_PROG(MAKEINFO, makeinfo)
1N/AAM_PROG_INSTALL_SH
1N/AAM_PROG_INSTALL_STRIP
1N/AAC_REQUIRE([AM_PROG_MKDIR_P])dnl
1N/A# We need awk for the "check" target. The system "awk" is bad on
1N/A# some platforms.
1N/AAC_REQUIRE([AC_PROG_AWK])dnl
1N/AAC_REQUIRE([AC_PROG_MAKE_SET])dnl
1N/AAC_REQUIRE([AM_SET_LEADING_DOT])dnl
1N/A_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
1N/A [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
1N/A [_AM_PROG_TAR([v7])])])
1N/A_AM_IF_OPTION([no-dependencies],,
1N/A[AC_PROVIDE_IFELSE([AC_PROG_CC],
1N/A [_AM_DEPENDENCIES(CC)],
1N/A [define([AC_PROG_CC],
1N/A defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
1N/AAC_PROVIDE_IFELSE([AC_PROG_CXX],
1N/A [_AM_DEPENDENCIES(CXX)],
1N/A [define([AC_PROG_CXX],
1N/A defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
1N/A])
1N/A])
1N/A
1N/A
1N/A# When config.status generates a header, we must update the stamp-h file.
1N/A# This file resides in the same directory as the config header
1N/A# that is generated. The stamp files are numbered to have different names.
1N/A
1N/A# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
1N/A# loop where config.status creates the headers, so we can generate
1N/A# our stamp files there.
1N/AAC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
1N/A[# Compute $1's index in $config_headers.
1N/A_am_stamp_count=1
1N/Afor _am_header in $config_headers :; do
1N/A case $_am_header in
1N/A $1 | $1:* )
1N/A break ;;
1N/A * )
1N/A _am_stamp_count=`expr $_am_stamp_count + 1` ;;
1N/A esac
1N/Adone
1N/Aecho "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
1N/A
1N/A# AM_PROG_INSTALL_SH
1N/A# ------------------
1N/A# Define $install_sh.
1N/A
1N/A# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
1N/A
1N/A# This program is free software; you can redistribute it and/or modify
1N/A# it under the terms of the GNU General Public License as published by
1N/A# the Free Software Foundation; either version 2, or (at your option)
1N/A# any later version.
1N/A
1N/A# This program is distributed in the hope that it will be useful,
1N/A# but WITHOUT ANY WARRANTY; without even the implied warranty of
1N/A# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1N/A# GNU General Public License for more details.
1N/A
1N/A# You should have received a copy of the GNU General Public License
1N/A# along with this program; if not, write to the Free Software
1N/A# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1N/A# 02111-1307, USA.
1N/A
1N/AAC_DEFUN([AM_PROG_INSTALL_SH],
1N/A[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1N/Ainstall_sh=${install_sh-"$am_aux_dir/install-sh"}
1N/AAC_SUBST(install_sh)])
1N/A
1N/A# -*- Autoconf -*-
1N/A# Copyright (C) 2003 Free Software Foundation, Inc.
1N/A
1N/A# This program is free software; you can redistribute it and/or modify
1N/A# it under the terms of the GNU General Public License as published by
1N/A# the Free Software Foundation; either version 2, or (at your option)
1N/A# any later version.
1N/A
1N/A# This program is distributed in the hope that it will be useful,
1N/A# but WITHOUT ANY WARRANTY; without even the implied warranty of
1N/A# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1N/A# GNU General Public License for more details.
1N/A
1N/A# You should have received a copy of the GNU General Public License
1N/A# along with this program; if not, write to the Free Software
1N/A# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1N/A# 02111-1307, USA.
1N/A
1N/A# serial 1
1N/A
1N/A# Check whether the underlying file-system supports filenames
1N/A# with a leading dot. For instance MS-DOS doesn't.
1N/AAC_DEFUN([AM_SET_LEADING_DOT],
1N/A[rm -rf .tst 2>/dev/null
1N/Amkdir .tst 2>/dev/null
1N/Aif test -d .tst; then
1N/A am__leading_dot=.
1N/Aelse
1N/A am__leading_dot=_
1N/Afi
1N/Armdir .tst 2>/dev/null
1N/AAC_SUBST([am__leading_dot])])
1N/A
1N/A# Add --enable-maintainer-mode option to configure.
1N/A# From Jim Meyering
1N/A
1N/A# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004
1N/A# Free Software Foundation, Inc.
1N/A
1N/A# This program is free software; you can redistribute it and/or modify
1N/A# it under the terms of the GNU General Public License as published by
1N/A# the Free Software Foundation; either version 2, or (at your option)
1N/A# any later version.
1N/A
1N/A# This program is distributed in the hope that it will be useful,
1N/A# but WITHOUT ANY WARRANTY; without even the implied warranty of
1N/A# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1N/A# GNU General Public License for more details.
1N/A
1N/A# You should have received a copy of the GNU General Public License
1N/A# along with this program; if not, write to the Free Software
1N/A# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1N/A# 02111-1307, USA.
1N/A
1N/A# serial 3
1N/A
1N/AAC_DEFUN([AM_MAINTAINER_MODE],
1N/A[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
1N/A dnl maintainer-mode is disabled by default
1N/A AC_ARG_ENABLE(maintainer-mode,
1N/A[ --enable-maintainer-mode enable make rules and dependencies not useful
1N/A (and sometimes confusing) to the casual installer],
1N/A USE_MAINTAINER_MODE=$enableval,
1N/A USE_MAINTAINER_MODE=no)
1N/A AC_MSG_RESULT([$USE_MAINTAINER_MODE])
1N/A AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
1N/A MAINT=$MAINTAINER_MODE_TRUE
1N/A AC_SUBST(MAINT)dnl
1N/A]
1N/A)
1N/A
1N/AAU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
1N/A
1N/A# Check to see how 'make' treats includes. -*- Autoconf -*-
1N/A
1N/A# Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
1N/A
1N/A# This program is free software; you can redistribute it and/or modify
1N/A# it under the terms of the GNU General Public License as published by
1N/A# the Free Software Foundation; either version 2, or (at your option)
1N/A# any later version.
1N/A
1N/A# This program is distributed in the hope that it will be useful,
1N/A# but WITHOUT ANY WARRANTY; without even the implied warranty of
1N/A# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1N/A# GNU General Public License for more details.
1N/A
1N/A# You should have received a copy of the GNU General Public License
1N/A# along with this program; if not, write to the Free Software
1N/A# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1N/A# 02111-1307, USA.
1N/A
1N/A# serial 2
1N/A
1N/A# AM_MAKE_INCLUDE()
1N/A# -----------------
1N/A# Check to see how make treats includes.
1N/AAC_DEFUN([AM_MAKE_INCLUDE],
1N/A[am_make=${MAKE-make}
1N/Acat > confinc << 'END'
1N/Aam__doit:
1N/A @echo done
1N/A.PHONY: am__doit
1N/AEND
1N/A# If we don't find an include directive, just comment out the code.
1N/AAC_MSG_CHECKING([for style of include used by $am_make])
1N/Aam__include="#"
1N/Aam__quote=
1N/A_am_result=none
1N/A# First try GNU make style include.
1N/Aecho "include confinc" > confmf
1N/A# We grep out `Entering directory' and `Leaving directory'
1N/A# messages which can occur if `w' ends up in MAKEFLAGS.
1N/A# In particular we don't look at `^make:' because GNU make might
1N/A# be invoked under some other name (usually "gmake"), in which
1N/A# case it prints its new name instead of `make'.
1N/Aif test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
1N/A am__include=include
1N/A am__quote=
1N/A _am_result=GNU
1N/Afi
1N/A# Now try BSD make style include.
1N/Aif test "$am__include" = "#"; then
1N/A echo '.include "confinc"' > confmf
1N/A if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
1N/A am__include=.include
1N/A am__quote="\""
1N/A _am_result=BSD
1N/A fi
1N/Afi
1N/AAC_SUBST([am__include])
1N/AAC_SUBST([am__quote])
1N/AAC_MSG_RESULT([$_am_result])
1N/Arm -f confinc confmf
1N/A])
1N/A
1N/A# -*- Autoconf -*-
1N/A
1N/A
1N/A# Copyright (C) 1997, 1999, 2000, 2001, 2003 Free Software Foundation, Inc.
1N/A
1N/A# This program is free software; you can redistribute it and/or modify
1N/A# it under the terms of the GNU General Public License as published by
1N/A# the Free Software Foundation; either version 2, or (at your option)
1N/A# any later version.
1N/A
1N/A# This program is distributed in the hope that it will be useful,
1N/A# but WITHOUT ANY WARRANTY; without even the implied warranty of
1N/A# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1N/A# GNU General Public License for more details.
1N/A
1N/A# You should have received a copy of the GNU General Public License
1N/A# along with this program; if not, write to the Free Software
1N/A# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1N/A# 02111-1307, USA.
1N/A
1N/A# serial 3
1N/A
1N/A# AM_MISSING_PROG(NAME, PROGRAM)
1N/A# ------------------------------
1N/AAC_DEFUN([AM_MISSING_PROG],
1N/A[AC_REQUIRE([AM_MISSING_HAS_RUN])
1N/A$1=${$1-"${am_missing_run}$2"}
1N/AAC_SUBST($1)])
1N/A
1N/A
1N/A# AM_MISSING_HAS_RUN
1N/A# ------------------
1N/A# Define MISSING if not defined so far and test if it supports --run.
1N/A# If it does, set am_missing_run to use it, otherwise, to nothing.
1N/AAC_DEFUN([AM_MISSING_HAS_RUN],
1N/A[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1N/Atest x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1N/A# Use eval to expand $SHELL
1N/Aif eval "$MISSING --run true"; then
1N/A am_missing_run="$MISSING --run "
1N/Aelse
1N/A am_missing_run=
1N/A AC_MSG_WARN([`missing' script is too old or missing])
1N/Afi
1N/A])
1N/A
1N/A# AM_PROG_MKDIR_P
1N/A# ---------------
1N/A# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
1N/A
1N/A# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
1N/A
1N/A# This program is free software; you can redistribute it and/or modify
1N/A# it under the terms of the GNU General Public License as published by
1N/A# the Free Software Foundation; either version 2, or (at your option)
1N/A# any later version.
1N/A
1N/A# This program is distributed in the hope that it will be useful,
1N/A# but WITHOUT ANY WARRANTY; without even the implied warranty of
1N/A# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1N/A# GNU General Public License for more details.
1N/A
1N/A# You should have received a copy of the GNU General Public License
1N/A# along with this program; if not, write to the Free Software
1N/A# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1N/A# 02111-1307, USA.
1N/A
1N/A# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
1N/A# created by `make install' are always world readable, even if the
1N/A# installer happens to have an overly restrictive umask (e.g. 077).
1N/A# This was a mistake. There are at least two reasons why we must not
1N/A# use `-m 0755':
1N/A# - it causes special bits like SGID to be ignored,
1N/A# - it may be too restrictive (some setups expect 775 directories).
1N/A#
1N/A# Do not use -m 0755 and let people choose whatever they expect by
1N/A# setting umask.
1N/A#
1N/A# We cannot accept any implementation of `mkdir' that recognizes `-p'.
1N/A# Some implementations (such as Solaris 8's) are not thread-safe: if a
1N/A# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
1N/A# concurrently, both version can detect that a/ is missing, but only
1N/A# one can create it and the other will error out. Consequently we
1N/A# restrict ourselves to GNU make (using the --version option ensures
1N/A# this.)
1N/AAC_DEFUN([AM_PROG_MKDIR_P],
1N/A[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1N/A # We used to keeping the `.' as first argument, in order to
1N/A # allow $(mkdir_p) to be used without argument. As in
1N/A # $(mkdir_p) $(somedir)
1N/A # where $(somedir) is conditionally defined. However this is wrong
1N/A # for two reasons:
1N/A # 1. if the package is installed by a user who cannot write `.'
1N/A # make install will fail,
1N/A # 2. the above comment should most certainly read
1N/A # $(mkdir_p) $(DESTDIR)$(somedir)
1N/A # so it does not work when $(somedir) is undefined and
1N/A # $(DESTDIR) is not.
1N/A # To support the latter case, we have to write
1N/A # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1N/A # so the `.' trick is pointless.
1N/A mkdir_p='mkdir -p --'
1N/Aelse
1N/A # On NextStep and OpenStep, the `mkdir' command does not
1N/A # recognize any option. It will interpret all options as
1N/A # directories to create, and then abort because `.' already
1N/A # exists.
1N/A for d in ./-p ./--version;
1N/A do
1N/A test -d $d && rmdir $d
1N/A done
1N/A # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1N/A if test -f "$ac_aux_dir/mkinstalldirs"; then
1N/A mkdir_p='$(mkinstalldirs)'
1N/A else
1N/A mkdir_p='$(install_sh) -d'
1N/A fi
1N/Afi
1N/AAC_SUBST([mkdir_p])])
1N/A
1N/A# Helper functions for option handling. -*- Autoconf -*-
1N/A
1N/A# Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
1N/A
1N/A# This program is free software; you can redistribute it and/or modify
1N/A# it under the terms of the GNU General Public License as published by
1N/A# the Free Software Foundation; either version 2, or (at your option)
1N/A# any later version.
1N/A
1N/A# This program is distributed in the hope that it will be useful,
1N/A# but WITHOUT ANY WARRANTY; without even the implied warranty of
1N/A# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1N/A# GNU General Public License for more details.
1N/A
1N/A# You should have received a copy of the GNU General Public License
1N/A# along with this program; if not, write to the Free Software
1N/A# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1N/A# 02111-1307, USA.
1N/A
1N/A# serial 2
1N/A
1N/A# _AM_MANGLE_OPTION(NAME)
1N/A# -----------------------
1N/AAC_DEFUN([_AM_MANGLE_OPTION],
1N/A[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
1N/A
1N/A# _AM_SET_OPTION(NAME)
1N/A# ------------------------------
1N/A# Set option NAME. Presently that only means defining a flag for this option.
1N/AAC_DEFUN([_AM_SET_OPTION],
1N/A[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
1N/A
1N/A# _AM_SET_OPTIONS(OPTIONS)
1N/A# ----------------------------------
1N/A# OPTIONS is a space-separated list of Automake options.
1N/AAC_DEFUN([_AM_SET_OPTIONS],
1N/A[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
1N/A
1N/A# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
1N/A# -------------------------------------------
1N/A# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
1N/AAC_DEFUN([_AM_IF_OPTION],
1N/A[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
1N/A
1N/A#
1N/A# Check to make sure that the build environment is sane.
1N/A#
1N/A
1N/A# Copyright (C) 1996, 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
1N/A
1N/A# This program is free software; you can redistribute it and/or modify
1N/A# it under the terms of the GNU General Public License as published by
1N/A# the Free Software Foundation; either version 2, or (at your option)
1N/A# any later version.
1N/A
1N/A# This program is distributed in the hope that it will be useful,
1N/A# but WITHOUT ANY WARRANTY; without even the implied warranty of
1N/A# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1N/A# GNU General Public License for more details.
1N/A
1N/A# You should have received a copy of the GNU General Public License
1N/A# along with this program; if not, write to the Free Software
1N/A# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1N/A# 02111-1307, USA.
1N/A
1N/A# serial 3
1N/A
1N/A# AM_SANITY_CHECK
1N/A# ---------------
1N/AAC_DEFUN([AM_SANITY_CHECK],
1N/A[AC_MSG_CHECKING([whether build environment is sane])
1N/A# Just in case
1N/Asleep 1
1N/Aecho timestamp > conftest.file
1N/A# Do `set' in a subshell so we don't clobber the current shell's
1N/A# arguments. Must try -L first in case configure is actually a
1N/A# symlink; some systems play weird games with the mod time of symlinks
1N/A# (eg FreeBSD returns the mod time of the symlink's containing
1N/A# directory).
1N/Aif (
1N/A set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1N/A if test "$[*]" = "X"; then
1N/A # -L didn't work.
1N/A set X `ls -t $srcdir/configure conftest.file`
1N/A fi
1N/A rm -f conftest.file
1N/A if test "$[*]" != "X $srcdir/configure conftest.file" \
1N/A && test "$[*]" != "X conftest.file $srcdir/configure"; then
1N/A
1N/A # If neither matched, then we have a broken ls. This can happen
1N/A # if, for instance, CONFIG_SHELL is bash and it inherits a
1N/A # broken ls alias from the environment. This has actually
1N/A # happened. Such a system could not be considered "sane".
1N/A AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
1N/Aalias in your environment])
1N/A fi
1N/A
1N/A test "$[2]" = conftest.file
1N/A )
1N/Athen
1N/A # Ok.
1N/A :
1N/Aelse
1N/A AC_MSG_ERROR([newly created file is older than distributed files!
1N/ACheck your system clock])
1N/Afi
1N/AAC_MSG_RESULT(yes)])
1N/A
1N/A# AM_PROG_INSTALL_STRIP
1N/A
1N/A# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
1N/A
1N/A# This program is free software; you can redistribute it and/or modify
1N/A# it under the terms of the GNU General Public License as published by
1N/A# the Free Software Foundation; either version 2, or (at your option)
1N/A# any later version.
1N/A
1N/A# This program is distributed in the hope that it will be useful,
1N/A# but WITHOUT ANY WARRANTY; without even the implied warranty of
1N/A# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1N/A# GNU General Public License for more details.
1N/A
1N/A# You should have received a copy of the GNU General Public License
1N/A# along with this program; if not, write to the Free Software
1N/A# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1N/A# 02111-1307, USA.
1N/A
1N/A# One issue with vendor `install' (even GNU) is that you can't
1N/A# specify the program used to strip binaries. This is especially
1N/A# annoying in cross-compiling environments, where the build's strip
1N/A# is unlikely to handle the host's binaries.
1N/A# Fortunately install-sh will honor a STRIPPROG variable, so we
1N/A# always use install-sh in `make install-strip', and initialize
1N/A# STRIPPROG with the value of the STRIP variable (set by the user).
1N/AAC_DEFUN([AM_PROG_INSTALL_STRIP],
1N/A[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
1N/A# Installed binaries are usually stripped using `strip' when the user
1N/A# run `make install-strip'. However `strip' might not be the right
1N/A# tool to use in cross-compilation environments, therefore Automake
1N/A# will honor the `STRIP' environment variable to overrule this program.
1N/Adnl Don't test for $cross_compiling = yes, because it might be `maybe'.
1N/Aif test "$cross_compiling" != no; then
1N/A AC_CHECK_TOOL([STRIP], [strip], :)
1N/Afi
1N/AINSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1N/AAC_SUBST([INSTALL_STRIP_PROGRAM])])
1N/A
1N/A# Check how to create a tarball. -*- Autoconf -*-
1N/A
1N/A# Copyright (C) 2004 Free Software Foundation, Inc.
1N/A
1N/A# This program is free software; you can redistribute it and/or modify
1N/A# it under the terms of the GNU General Public License as published by
1N/A# the Free Software Foundation; either version 2, or (at your option)
1N/A# any later version.
1N/A
1N/A# This program is distributed in the hope that it will be useful,
1N/A# but WITHOUT ANY WARRANTY; without even the implied warranty of
1N/A# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1N/A# GNU General Public License for more details.
1N/A
1N/A# You should have received a copy of the GNU General Public License
1N/A# along with this program; if not, write to the Free Software
1N/A# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1N/A# 02111-1307, USA.
1N/A
1N/A# serial 1
1N/A
1N/A
1N/A# _AM_PROG_TAR(FORMAT)
1N/A# --------------------
1N/A# Check how to create a tarball in format FORMAT.
1N/A# FORMAT should be one of `v7', `ustar', or `pax'.
1N/A#
1N/A# Substitute a variable $(am__tar) that is a command
1N/A# writing to stdout a FORMAT-tarball containing the directory
1N/A# $tardir.
1N/A# tardir=directory && $(am__tar) > result.tar
1N/A#
1N/A# Substitute a variable $(am__untar) that extract such
1N/A# a tarball read from stdin.
1N/A# $(am__untar) < result.tar
1N/AAC_DEFUN([_AM_PROG_TAR],
1N/A[# Always define AMTAR for backward compatibility.
1N/AAM_MISSING_PROG([AMTAR], [tar])
1N/Am4_if([$1], [v7],
1N/A [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
1N/A [m4_case([$1], [ustar],, [pax],,
1N/A [m4_fatal([Unknown tar format])])
1N/AAC_MSG_CHECKING([how to create a $1 tar archive])
1N/A# Loop over all known methods to create a tar archive until one works.
1N/A_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
1N/A_am_tools=${am_cv_prog_tar_$1-$_am_tools}
1N/A# Do not fold the above two line into one, because Tru64 sh and
1N/A# Solaris sh will not grok spaces in the rhs of `-'.
1N/Afor _am_tool in $_am_tools
1N/Ado
1N/A case $_am_tool in
1N/A gnutar)
1N/A for _am_tar in tar gnutar gtar;
1N/A do
1N/A AM_RUN_LOG([$_am_tar --version]) && break
1N/A done
1N/A am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
1N/A am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
1N/A am__untar="$_am_tar -xf -"
1N/A ;;
1N/A plaintar)
1N/A # Must skip GNU tar: if it does not support --format= it doesn't create
1N/A # ustar tarball either.
1N/A (tar --version) >/dev/null 2>&1 && continue
1N/A am__tar='tar chf - "$$tardir"'
1N/A am__tar_='tar chf - "$tardir"'
1N/A am__untar='tar xf -'
1N/A ;;
1N/A pax)
1N/A am__tar='pax -L -x $1 -w "$$tardir"'
1N/A am__tar_='pax -L -x $1 -w "$tardir"'
1N/A am__untar='pax -r'
1N/A ;;
1N/A cpio)
1N/A am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
1N/A am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
1N/A am__untar='cpio -i -H $1 -d'
1N/A ;;
1N/A none)
1N/A am__tar=false
1N/A am__tar_=false
1N/A am__untar=false
1N/A ;;
1N/A esac
1N/A
1N/A # If the value was cached, stop now. We just wanted to have am__tar
1N/A # and am__untar set.
1N/A test -n "${am_cv_prog_tar_$1}" && break
1N/A
1N/A # tar/untar a dummy directory, and stop if the command works
1N/A rm -rf conftest.dir
1N/A mkdir conftest.dir
1N/A echo GrepMe > conftest.dir/file
1N/A AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1N/A rm -rf conftest.dir
1N/A if test -s conftest.tar; then
1N/A AM_RUN_LOG([$am__untar <conftest.tar])
1N/A grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1N/A fi
1N/Adone
1N/Arm -rf conftest.dir
1N/A
1N/AAC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1N/AAC_MSG_RESULT([$am_cv_prog_tar_$1])])
1N/AAC_SUBST([am__tar])
1N/AAC_SUBST([am__untar])
1N/A]) # _AM_PROG_TAR
1N/A
1N/Am4_include([acinclude.m4])