Blame aclocal.m4

rpm-build 50f7d6
# generated automatically by aclocal 1.15 -*- Autoconf -*-
rpm-build 50f7d6
rpm-build 50f7d6
# Copyright (C) 1996-2014 Free Software Foundation, Inc.
rpm-build 50f7d6
rpm-build 50f7d6
# This file is free software; the Free Software Foundation
rpm-build 50f7d6
# gives unlimited permission to copy and/or distribute it,
rpm-build 50f7d6
# with or without modifications, as long as this notice is preserved.
rpm-build 50f7d6
rpm-build 50f7d6
# This program is distributed in the hope that it will be useful,
rpm-build 50f7d6
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
rpm-build 50f7d6
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
rpm-build 50f7d6
# PARTICULAR PURPOSE.
rpm-build 50f7d6
rpm-build 50f7d6
m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
rpm-build 50f7d6
m4_ifndef([AC_AUTOCONF_VERSION],
rpm-build 50f7d6
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
rpm-build 50f7d6
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
rpm-build 50f7d6
[m4_warning([this file was generated for autoconf 2.69.
rpm-build 50f7d6
You have another version of autoconf.  It may work, but is not guaranteed to.
rpm-build 50f7d6
If you have problems, you may need to regenerate the build system entirely.
rpm-build 50f7d6
To do so, use the procedure documented by the package, typically 'autoreconf'.])])
rpm-build 50f7d6
rpm-build 50f7d6
# Copyright (C) 2002-2014 Free Software Foundation, Inc.
rpm-build 50f7d6
#
rpm-build 50f7d6
# This file is free software; the Free Software Foundation
rpm-build 50f7d6
# gives unlimited permission to copy and/or distribute it,
rpm-build 50f7d6
# with or without modifications, as long as this notice is preserved.
rpm-build 50f7d6
rpm-build 50f7d6
# AM_AUTOMAKE_VERSION(VERSION)
rpm-build 50f7d6
# ----------------------------
rpm-build 50f7d6
# Automake X.Y traces this macro to ensure aclocal.m4 has been
rpm-build 50f7d6
# generated from the m4 files accompanying Automake X.Y.
rpm-build 50f7d6
# (This private macro should not be called outside this file.)
rpm-build 50f7d6
AC_DEFUN([AM_AUTOMAKE_VERSION],
rpm-build 50f7d6
[am__api_version='1.15'
rpm-build 50f7d6
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
rpm-build 50f7d6
dnl require some minimum version.  Point them to the right macro.
rpm-build 50f7d6
m4_if([$1], [1.15], [],
rpm-build 50f7d6
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
rpm-build 50f7d6
])
rpm-build 50f7d6
rpm-build 50f7d6
# _AM_AUTOCONF_VERSION(VERSION)
rpm-build 50f7d6
# -----------------------------
rpm-build 50f7d6
# aclocal traces this macro to find the Autoconf version.
rpm-build 50f7d6
# This is a private macro too.  Using m4_define simplifies
rpm-build 50f7d6
# the logic in aclocal, which can simply ignore this definition.
rpm-build 50f7d6
m4_define([_AM_AUTOCONF_VERSION], [])
rpm-build 50f7d6
rpm-build 50f7d6
# AM_SET_CURRENT_AUTOMAKE_VERSION
rpm-build 50f7d6
# -------------------------------
rpm-build 50f7d6
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
rpm-build 50f7d6
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
rpm-build 50f7d6
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
rpm-build 50f7d6
[AM_AUTOMAKE_VERSION([1.15])dnl
rpm-build 50f7d6
m4_ifndef([AC_AUTOCONF_VERSION],
rpm-build 50f7d6
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
rpm-build 50f7d6
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
rpm-build 50f7d6
rpm-build 50f7d6
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
rpm-build 50f7d6
rpm-build 50f7d6
# Copyright (C) 2001-2014 Free Software Foundation, Inc.
rpm-build 50f7d6
#
rpm-build 50f7d6
# This file is free software; the Free Software Foundation
rpm-build 50f7d6
# gives unlimited permission to copy and/or distribute it,
rpm-build 50f7d6
# with or without modifications, as long as this notice is preserved.
rpm-build 50f7d6
rpm-build 50f7d6
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
rpm-build 50f7d6
# $ac_aux_dir to '$srcdir/foo'.  In other projects, it is set to
rpm-build 50f7d6
# '$srcdir', '$srcdir/..', or '$srcdir/../..'.
rpm-build 50f7d6
#
rpm-build 50f7d6
# Of course, Automake must honor this variable whenever it calls a
rpm-build 50f7d6
# tool from the auxiliary directory.  The problem is that $srcdir (and
rpm-build 50f7d6
# therefore $ac_aux_dir as well) can be either absolute or relative,
rpm-build 50f7d6
# depending on how configure is run.  This is pretty annoying, since
rpm-build 50f7d6
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
rpm-build 50f7d6
# source directory, any form will work fine, but in subdirectories a
rpm-build 50f7d6
# relative path needs to be adjusted first.
rpm-build 50f7d6
#
rpm-build 50f7d6
# $ac_aux_dir/missing
rpm-build 50f7d6
#    fails when called from a subdirectory if $ac_aux_dir is relative
rpm-build 50f7d6
# $top_srcdir/$ac_aux_dir/missing
rpm-build 50f7d6
#    fails if $ac_aux_dir is absolute,
rpm-build 50f7d6
#    fails when called from a subdirectory in a VPATH build with
rpm-build 50f7d6
#          a relative $ac_aux_dir
rpm-build 50f7d6
#
rpm-build 50f7d6
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
rpm-build 50f7d6
# are both prefixed by $srcdir.  In an in-source build this is usually
rpm-build 50f7d6
# harmless because $srcdir is '.', but things will broke when you
rpm-build 50f7d6
# start a VPATH build or use an absolute $srcdir.
rpm-build 50f7d6
#
rpm-build 50f7d6
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
rpm-build 50f7d6
# iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
rpm-build 50f7d6
#   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
rpm-build 50f7d6
# and then we would define $MISSING as
rpm-build 50f7d6
#   MISSING="\${SHELL} $am_aux_dir/missing"
rpm-build 50f7d6
# This will work as long as MISSING is not called from configure, because
rpm-build 50f7d6
# unfortunately $(top_srcdir) has no meaning in configure.
rpm-build 50f7d6
# However there are other variables, like CC, which are often used in
rpm-build 50f7d6
# configure, and could therefore not use this "fixed" $ac_aux_dir.
rpm-build 50f7d6
#
rpm-build 50f7d6
# Another solution, used here, is to always expand $ac_aux_dir to an
rpm-build 50f7d6
# absolute PATH.  The drawback is that using absolute paths prevent a
rpm-build 50f7d6
# configured tree to be moved without reconfiguration.
rpm-build 50f7d6
rpm-build 50f7d6
AC_DEFUN([AM_AUX_DIR_EXPAND],
rpm-build 50f7d6
[AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
rpm-build 50f7d6
# Expand $ac_aux_dir to an absolute path.
rpm-build 50f7d6
am_aux_dir=`cd "$ac_aux_dir" && pwd`
rpm-build 50f7d6
])
rpm-build 50f7d6
rpm-build 50f7d6
# Do all the work for Automake.                             -*- Autoconf -*-
rpm-build 50f7d6
rpm-build 50f7d6
# Copyright (C) 1996-2014 Free Software Foundation, Inc.
rpm-build 50f7d6
#
rpm-build 50f7d6
# This file is free software; the Free Software Foundation
rpm-build 50f7d6
# gives unlimited permission to copy and/or distribute it,
rpm-build 50f7d6
# with or without modifications, as long as this notice is preserved.
rpm-build 50f7d6
rpm-build 50f7d6
# This macro actually does too much.  Some checks are only needed if
rpm-build 50f7d6
# your package does certain things.  But this isn't really a big deal.
rpm-build 50f7d6
rpm-build 50f7d6
dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
rpm-build 50f7d6
m4_define([AC_PROG_CC],
rpm-build 50f7d6
m4_defn([AC_PROG_CC])
rpm-build 50f7d6
[_AM_PROG_CC_C_O
rpm-build 50f7d6
])
rpm-build 50f7d6
rpm-build 50f7d6
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
rpm-build 50f7d6
# AM_INIT_AUTOMAKE([OPTIONS])
rpm-build 50f7d6
# -----------------------------------------------
rpm-build 50f7d6
# The call with PACKAGE and VERSION arguments is the old style
rpm-build 50f7d6
# call (pre autoconf-2.50), which is being phased out.  PACKAGE
rpm-build 50f7d6
# and VERSION should now be passed to AC_INIT and removed from
rpm-build 50f7d6
# the call to AM_INIT_AUTOMAKE.
rpm-build 50f7d6
# We support both call styles for the transition.  After
rpm-build 50f7d6
# the next Automake release, Autoconf can make the AC_INIT
rpm-build 50f7d6
# arguments mandatory, and then we can depend on a new Autoconf
rpm-build 50f7d6
# release and drop the old call support.
rpm-build 50f7d6
AC_DEFUN([AM_INIT_AUTOMAKE],
rpm-build 50f7d6
[AC_PREREQ([2.65])dnl
rpm-build 50f7d6
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
rpm-build 50f7d6
dnl the ones we care about.
rpm-build 50f7d6
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
rpm-build 50f7d6
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
rpm-build 50f7d6
AC_REQUIRE([AC_PROG_INSTALL])dnl
rpm-build 50f7d6
if test "`cd $srcdir && pwd`" != "`pwd`"; then
rpm-build 50f7d6
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
rpm-build 50f7d6
  # is not polluted with repeated "-I."
rpm-build 50f7d6
  AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
rpm-build 50f7d6
  # test to see if srcdir already configured
rpm-build 50f7d6
  if test -f $srcdir/config.status; then
rpm-build 50f7d6
    AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
rpm-build 50f7d6
  fi
rpm-build 50f7d6
fi
rpm-build 50f7d6
rpm-build 50f7d6
# test whether we have cygpath
rpm-build 50f7d6
if test -z "$CYGPATH_W"; then
rpm-build 50f7d6
  if (cygpath --version) >/dev/null 2>/dev/null; then
rpm-build 50f7d6
    CYGPATH_W='cygpath -w'
rpm-build 50f7d6
  else
rpm-build 50f7d6
    CYGPATH_W=echo
rpm-build 50f7d6
  fi
rpm-build 50f7d6
fi
rpm-build 50f7d6
AC_SUBST([CYGPATH_W])
rpm-build 50f7d6
rpm-build 50f7d6
# Define the identity of the package.
rpm-build 50f7d6
dnl Distinguish between old-style and new-style calls.
rpm-build 50f7d6
m4_ifval([$2],
rpm-build 50f7d6
[AC_DIAGNOSE([obsolete],
rpm-build 50f7d6
             [$0: two- and three-arguments forms are deprecated.])
rpm-build 50f7d6
m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
rpm-build 50f7d6
 AC_SUBST([PACKAGE], [$1])dnl
rpm-build 50f7d6
 AC_SUBST([VERSION], [$2])],
rpm-build 50f7d6
[_AM_SET_OPTIONS([$1])dnl
rpm-build 50f7d6
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
rpm-build 50f7d6
m4_if(
rpm-build 50f7d6
  m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
rpm-build 50f7d6
  [ok:ok],,
rpm-build 50f7d6
  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
rpm-build 50f7d6
 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
rpm-build 50f7d6
 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
rpm-build 50f7d6
rpm-build 50f7d6
_AM_IF_OPTION([no-define],,
rpm-build 50f7d6
[AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
rpm-build 50f7d6
 AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
rpm-build 50f7d6
rpm-build 50f7d6
# Some tools Automake needs.
rpm-build 50f7d6
AC_REQUIRE([AM_SANITY_CHECK])dnl
rpm-build 50f7d6
AC_REQUIRE([AC_ARG_PROGRAM])dnl
rpm-build 50f7d6
AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
rpm-build 50f7d6
AM_MISSING_PROG([AUTOCONF], [autoconf])
rpm-build 50f7d6
AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
rpm-build 50f7d6
AM_MISSING_PROG([AUTOHEADER], [autoheader])
rpm-build 50f7d6
AM_MISSING_PROG([MAKEINFO], [makeinfo])
rpm-build 50f7d6
AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
rpm-build 50f7d6
AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
rpm-build 50f7d6
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
rpm-build 50f7d6
# For better backward compatibility.  To be removed once Automake 1.9.x
rpm-build 50f7d6
# dies out for good.  For more background, see:
rpm-build 50f7d6
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
rpm-build 50f7d6
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
rpm-build 50f7d6
AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
rpm-build 50f7d6
# We need awk for the "check" target (and possibly the TAP driver).  The
rpm-build 50f7d6
# system "awk" is bad on some platforms.
rpm-build 50f7d6
AC_REQUIRE([AC_PROG_AWK])dnl
rpm-build 50f7d6
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
rpm-build 50f7d6
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
rpm-build 50f7d6
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
rpm-build 50f7d6
	      [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
rpm-build 50f7d6
			     [_AM_PROG_TAR([v7])])])
rpm-build 50f7d6
_AM_IF_OPTION([no-dependencies],,
rpm-build 50f7d6
[AC_PROVIDE_IFELSE([AC_PROG_CC],
rpm-build 50f7d6
		  [_AM_DEPENDENCIES([CC])],
rpm-build 50f7d6
		  [m4_define([AC_PROG_CC],
rpm-build 50f7d6
			     m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
rpm-build 50f7d6
AC_PROVIDE_IFELSE([AC_PROG_CXX],
rpm-build 50f7d6
		  [_AM_DEPENDENCIES([CXX])],
rpm-build 50f7d6
		  [m4_define([AC_PROG_CXX],
rpm-build 50f7d6
			     m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
rpm-build 50f7d6
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
rpm-build 50f7d6
		  [_AM_DEPENDENCIES([OBJC])],
rpm-build 50f7d6
		  [m4_define([AC_PROG_OBJC],
rpm-build 50f7d6
			     m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
rpm-build 50f7d6
AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
rpm-build 50f7d6
		  [_AM_DEPENDENCIES([OBJCXX])],
rpm-build 50f7d6
		  [m4_define([AC_PROG_OBJCXX],
rpm-build 50f7d6
			     m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
rpm-build 50f7d6
])
rpm-build 50f7d6
AC_REQUIRE([AM_SILENT_RULES])dnl
rpm-build 50f7d6
dnl The testsuite driver may need to know about EXEEXT, so add the
rpm-build 50f7d6
dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This
rpm-build 50f7d6
dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
rpm-build 50f7d6
AC_CONFIG_COMMANDS_PRE(dnl
rpm-build 50f7d6
[m4_provide_if([_AM_COMPILER_EXEEXT],
rpm-build 50f7d6
  [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
rpm-build 50f7d6
rpm-build 50f7d6
# POSIX will say in a future version that running "rm -f" with no argument
rpm-build 50f7d6
# is OK; and we want to be able to make that assumption in our Makefile
rpm-build 50f7d6
# recipes.  So use an aggressive probe to check that the usage we want is
rpm-build 50f7d6
# actually supported "in the wild" to an acceptable degree.
rpm-build 50f7d6
# See automake bug#10828.
rpm-build 50f7d6
# To make any issue more visible, cause the running configure to be aborted
rpm-build 50f7d6
# by default if the 'rm' program in use doesn't match our expectations; the
rpm-build 50f7d6
# user can still override this though.
rpm-build 50f7d6
if rm -f && rm -fr && rm -rf; then : OK; else
rpm-build 50f7d6
  cat >&2 <<'END'
rpm-build 50f7d6
Oops!
rpm-build 50f7d6
rpm-build 50f7d6
Your 'rm' program seems unable to run without file operands specified
rpm-build 50f7d6
on the command line, even when the '-f' option is present.  This is contrary
rpm-build 50f7d6
to the behaviour of most rm programs out there, and not conforming with
rpm-build 50f7d6
the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
rpm-build 50f7d6
rpm-build 50f7d6
Please tell bug-automake@gnu.org about your system, including the value
rpm-build 50f7d6
of your $PATH and any error possibly output before this message.  This
rpm-build 50f7d6
can help us improve future automake versions.
rpm-build 50f7d6
rpm-build 50f7d6
END
rpm-build 50f7d6
  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
rpm-build 50f7d6
    echo 'Configuration will proceed anyway, since you have set the' >&2
rpm-build 50f7d6
    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
rpm-build 50f7d6
    echo >&2
rpm-build 50f7d6
  else
rpm-build 50f7d6
    cat >&2 <<'END'
rpm-build 50f7d6
Aborting the configuration process, to ensure you take notice of the issue.
rpm-build 50f7d6
rpm-build 50f7d6
You can download and install GNU coreutils to get an 'rm' implementation
rpm-build 50f7d6
that behaves properly: <http://www.gnu.org/software/coreutils/>.
rpm-build 50f7d6
rpm-build 50f7d6
If you want to complete the configuration process using your problematic
rpm-build 50f7d6
'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
rpm-build 50f7d6
to "yes", and re-run configure.
rpm-build 50f7d6
rpm-build 50f7d6
END
rpm-build 50f7d6
    AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
rpm-build 50f7d6
  fi
rpm-build 50f7d6
fi
rpm-build 50f7d6
dnl The trailing newline in this macro's definition is deliberate, for
rpm-build 50f7d6
dnl backward compatibility and to allow trailing 'dnl'-style comments
rpm-build 50f7d6
dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841.
rpm-build 50f7d6
])
rpm-build 50f7d6
rpm-build 50f7d6
dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
rpm-build 50f7d6
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
rpm-build 50f7d6
dnl mangled by Autoconf and run in a shell conditional statement.
rpm-build 50f7d6
m4_define([_AC_COMPILER_EXEEXT],
rpm-build 50f7d6
m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
rpm-build 50f7d6
rpm-build 50f7d6
# When config.status generates a header, we must update the stamp-h file.
rpm-build 50f7d6
# This file resides in the same directory as the config header
rpm-build 50f7d6
# that is generated.  The stamp files are numbered to have different names.
rpm-build 50f7d6
rpm-build 50f7d6
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
rpm-build 50f7d6
# loop where config.status creates the headers, so we can generate
rpm-build 50f7d6
# our stamp files there.
rpm-build 50f7d6
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
rpm-build 50f7d6
[# Compute $1's index in $config_headers.
rpm-build 50f7d6
_am_arg=$1
rpm-build 50f7d6
_am_stamp_count=1
rpm-build 50f7d6
for _am_header in $config_headers :; do
rpm-build 50f7d6
  case $_am_header in
rpm-build 50f7d6
    $_am_arg | $_am_arg:* )
rpm-build 50f7d6
      break ;;
rpm-build 50f7d6
    * )
rpm-build 50f7d6
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
rpm-build 50f7d6
  esac
rpm-build 50f7d6
done
rpm-build 50f7d6
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
rpm-build 50f7d6
rpm-build 50f7d6
# Copyright (C) 2001-2014 Free Software Foundation, Inc.
rpm-build 50f7d6
#
rpm-build 50f7d6
# This file is free software; the Free Software Foundation
rpm-build 50f7d6
# gives unlimited permission to copy and/or distribute it,
rpm-build 50f7d6
# with or without modifications, as long as this notice is preserved.
rpm-build 50f7d6
rpm-build 50f7d6
# AM_PROG_INSTALL_SH
rpm-build 50f7d6
# ------------------
rpm-build 50f7d6
# Define $install_sh.
rpm-build 50f7d6
AC_DEFUN([AM_PROG_INSTALL_SH],
rpm-build 50f7d6
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
rpm-build 50f7d6
if test x"${install_sh+set}" != xset; then
rpm-build 50f7d6
  case $am_aux_dir in
rpm-build 50f7d6
  *\ * | *\	*)
rpm-build 50f7d6
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
rpm-build 50f7d6
  *)
rpm-build 50f7d6
    install_sh="\${SHELL} $am_aux_dir/install-sh"
rpm-build 50f7d6
  esac
rpm-build 50f7d6
fi
rpm-build 50f7d6
AC_SUBST([install_sh])])
rpm-build 50f7d6
rpm-build 50f7d6
# Copyright (C) 2003-2014 Free Software Foundation, Inc.
rpm-build 50f7d6
#
rpm-build 50f7d6
# This file is free software; the Free Software Foundation
rpm-build 50f7d6
# gives unlimited permission to copy and/or distribute it,
rpm-build 50f7d6
# with or without modifications, as long as this notice is preserved.
rpm-build 50f7d6
rpm-build 50f7d6
# Check whether the underlying file-system supports filenames
rpm-build 50f7d6
# with a leading dot.  For instance MS-DOS doesn't.
rpm-build 50f7d6
AC_DEFUN([AM_SET_LEADING_DOT],
rpm-build 50f7d6
[rm -rf .tst 2>/dev/null
rpm-build 50f7d6
mkdir .tst 2>/dev/null
rpm-build 50f7d6
if test -d .tst; then
rpm-build 50f7d6
  am__leading_dot=.
rpm-build 50f7d6
else
rpm-build 50f7d6
  am__leading_dot=_
rpm-build 50f7d6
fi
rpm-build 50f7d6
rmdir .tst 2>/dev/null
rpm-build 50f7d6
AC_SUBST([am__leading_dot])])
rpm-build 50f7d6
rpm-build 50f7d6
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
rpm-build 50f7d6
rpm-build 50f7d6
# Copyright (C) 1997-2014 Free Software Foundation, Inc.
rpm-build 50f7d6
#
rpm-build 50f7d6
# This file is free software; the Free Software Foundation
rpm-build 50f7d6
# gives unlimited permission to copy and/or distribute it,
rpm-build 50f7d6
# with or without modifications, as long as this notice is preserved.
rpm-build 50f7d6
rpm-build 50f7d6
# AM_MISSING_PROG(NAME, PROGRAM)
rpm-build 50f7d6
# ------------------------------
rpm-build 50f7d6
AC_DEFUN([AM_MISSING_PROG],
rpm-build 50f7d6
[AC_REQUIRE([AM_MISSING_HAS_RUN])
rpm-build 50f7d6
$1=${$1-"${am_missing_run}$2"}
rpm-build 50f7d6
AC_SUBST($1)])
rpm-build 50f7d6
rpm-build 50f7d6
# AM_MISSING_HAS_RUN
rpm-build 50f7d6
# ------------------
rpm-build 50f7d6
# Define MISSING if not defined so far and test if it is modern enough.
rpm-build 50f7d6
# If it is, set am_missing_run to use it, otherwise, to nothing.
rpm-build 50f7d6
AC_DEFUN([AM_MISSING_HAS_RUN],
rpm-build 50f7d6
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
rpm-build 50f7d6
AC_REQUIRE_AUX_FILE([missing])dnl
rpm-build 50f7d6
if test x"${MISSING+set}" != xset; then
rpm-build 50f7d6
  case $am_aux_dir in
rpm-build 50f7d6
  *\ * | *\	*)
rpm-build 50f7d6
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
rpm-build 50f7d6
  *)
rpm-build 50f7d6
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
rpm-build 50f7d6
  esac
rpm-build 50f7d6
fi
rpm-build 50f7d6
# Use eval to expand $SHELL
rpm-build 50f7d6
if eval "$MISSING --is-lightweight"; then
rpm-build 50f7d6
  am_missing_run="$MISSING "
rpm-build 50f7d6
else
rpm-build 50f7d6
  am_missing_run=
rpm-build 50f7d6
  AC_MSG_WARN(['missing' script is too old or missing])
rpm-build 50f7d6
fi
rpm-build 50f7d6
])
rpm-build 50f7d6
rpm-build 50f7d6
# Helper functions for option handling.                     -*- Autoconf -*-
rpm-build 50f7d6
rpm-build 50f7d6
# Copyright (C) 2001-2014 Free Software Foundation, Inc.
rpm-build 50f7d6
#
rpm-build 50f7d6
# This file is free software; the Free Software Foundation
rpm-build 50f7d6
# gives unlimited permission to copy and/or distribute it,
rpm-build 50f7d6
# with or without modifications, as long as this notice is preserved.
rpm-build 50f7d6
rpm-build 50f7d6
# _AM_MANGLE_OPTION(NAME)
rpm-build 50f7d6
# -----------------------
rpm-build 50f7d6
AC_DEFUN([_AM_MANGLE_OPTION],
rpm-build 50f7d6
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
rpm-build 50f7d6
rpm-build 50f7d6
# _AM_SET_OPTION(NAME)
rpm-build 50f7d6
# --------------------
rpm-build 50f7d6
# Set option NAME.  Presently that only means defining a flag for this option.
rpm-build 50f7d6
AC_DEFUN([_AM_SET_OPTION],
rpm-build 50f7d6
[m4_define(_AM_MANGLE_OPTION([$1]), [1])])
rpm-build 50f7d6
rpm-build 50f7d6
# _AM_SET_OPTIONS(OPTIONS)
rpm-build 50f7d6
# ------------------------
rpm-build 50f7d6
# OPTIONS is a space-separated list of Automake options.
rpm-build 50f7d6
AC_DEFUN([_AM_SET_OPTIONS],
rpm-build 50f7d6
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
rpm-build 50f7d6
rpm-build 50f7d6
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
rpm-build 50f7d6
# -------------------------------------------
rpm-build 50f7d6
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
rpm-build 50f7d6
AC_DEFUN([_AM_IF_OPTION],
rpm-build 50f7d6
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
rpm-build 50f7d6
rpm-build 50f7d6
# Check to make sure that the build environment is sane.    -*- Autoconf -*-
rpm-build 50f7d6
rpm-build 50f7d6
# Copyright (C) 1996-2014 Free Software Foundation, Inc.
rpm-build 50f7d6
#
rpm-build 50f7d6
# This file is free software; the Free Software Foundation
rpm-build 50f7d6
# gives unlimited permission to copy and/or distribute it,
rpm-build 50f7d6
# with or without modifications, as long as this notice is preserved.
rpm-build 50f7d6
rpm-build 50f7d6
# AM_SANITY_CHECK
rpm-build 50f7d6
# ---------------
rpm-build 50f7d6
AC_DEFUN([AM_SANITY_CHECK],
rpm-build 50f7d6
[AC_MSG_CHECKING([whether build environment is sane])
rpm-build 50f7d6
# Reject unsafe characters in $srcdir or the absolute working directory
rpm-build 50f7d6
# name.  Accept space and tab only in the latter.
rpm-build 50f7d6
am_lf='
rpm-build 50f7d6
'
rpm-build 50f7d6
case `pwd` in
rpm-build 50f7d6
  *[[\\\"\#\$\&\'\`$am_lf]]*)
rpm-build 50f7d6
    AC_MSG_ERROR([unsafe absolute working directory name]);;
rpm-build 50f7d6
esac
rpm-build 50f7d6
case $srcdir in
rpm-build 50f7d6
  *[[\\\"\#\$\&\'\`$am_lf\ \	]]*)
rpm-build 50f7d6
    AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
rpm-build 50f7d6
esac
rpm-build 50f7d6
rpm-build 50f7d6
# Do 'set' in a subshell so we don't clobber the current shell's
rpm-build 50f7d6
# arguments.  Must try -L first in case configure is actually a
rpm-build 50f7d6
# symlink; some systems play weird games with the mod time of symlinks
rpm-build 50f7d6
# (eg FreeBSD returns the mod time of the symlink's containing
rpm-build 50f7d6
# directory).
rpm-build 50f7d6
if (
rpm-build 50f7d6
   am_has_slept=no
rpm-build 50f7d6
   for am_try in 1 2; do
rpm-build 50f7d6
     echo "timestamp, slept: $am_has_slept" > conftest.file
rpm-build 50f7d6
     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
rpm-build 50f7d6
     if test "$[*]" = "X"; then
rpm-build 50f7d6
	# -L didn't work.
rpm-build 50f7d6
	set X `ls -t "$srcdir/configure" conftest.file`
rpm-build 50f7d6
     fi
rpm-build 50f7d6
     if test "$[*]" != "X $srcdir/configure conftest.file" \
rpm-build 50f7d6
	&& test "$[*]" != "X conftest.file $srcdir/configure"; then
rpm-build 50f7d6
rpm-build 50f7d6
	# If neither matched, then we have a broken ls.  This can happen
rpm-build 50f7d6
	# if, for instance, CONFIG_SHELL is bash and it inherits a
rpm-build 50f7d6
	# broken ls alias from the environment.  This has actually
rpm-build 50f7d6
	# happened.  Such a system could not be considered "sane".
rpm-build 50f7d6
	AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
rpm-build 50f7d6
  alias in your environment])
rpm-build 50f7d6
     fi
rpm-build 50f7d6
     if test "$[2]" = conftest.file || test $am_try -eq 2; then
rpm-build 50f7d6
       break
rpm-build 50f7d6
     fi
rpm-build 50f7d6
     # Just in case.
rpm-build 50f7d6
     sleep 1
rpm-build 50f7d6
     am_has_slept=yes
rpm-build 50f7d6
   done
rpm-build 50f7d6
   test "$[2]" = conftest.file
rpm-build 50f7d6
   )
rpm-build 50f7d6
then
rpm-build 50f7d6
   # Ok.
rpm-build 50f7d6
   :
rpm-build 50f7d6
else
rpm-build 50f7d6
   AC_MSG_ERROR([newly created file is older than distributed files!
rpm-build 50f7d6
Check your system clock])
rpm-build 50f7d6
fi
rpm-build 50f7d6
AC_MSG_RESULT([yes])
rpm-build 50f7d6
# If we didn't sleep, we still need to ensure time stamps of config.status and
rpm-build 50f7d6
# generated files are strictly newer.
rpm-build 50f7d6
am_sleep_pid=
rpm-build 50f7d6
if grep 'slept: no' conftest.file >/dev/null 2>&1; then
rpm-build 50f7d6
  ( sleep 1 ) &
rpm-build 50f7d6
  am_sleep_pid=$!
rpm-build 50f7d6
fi
rpm-build 50f7d6
AC_CONFIG_COMMANDS_PRE(
rpm-build 50f7d6
  [AC_MSG_CHECKING([that generated files are newer than configure])
rpm-build 50f7d6
   if test -n "$am_sleep_pid"; then
rpm-build 50f7d6
     # Hide warnings about reused PIDs.
rpm-build 50f7d6
     wait $am_sleep_pid 2>/dev/null
rpm-build 50f7d6
   fi
rpm-build 50f7d6
   AC_MSG_RESULT([done])])
rpm-build 50f7d6
rm -f conftest.file
rpm-build 50f7d6
])
rpm-build 50f7d6
rpm-build 50f7d6
# Copyright (C) 2009-2014 Free Software Foundation, Inc.
rpm-build 50f7d6
#
rpm-build 50f7d6
# This file is free software; the Free Software Foundation
rpm-build 50f7d6
# gives unlimited permission to copy and/or distribute it,
rpm-build 50f7d6
# with or without modifications, as long as this notice is preserved.
rpm-build 50f7d6
rpm-build 50f7d6
# AM_SILENT_RULES([DEFAULT])
rpm-build 50f7d6
# --------------------------
rpm-build 50f7d6
# Enable less verbose build rules; with the default set to DEFAULT
rpm-build 50f7d6
# ("yes" being less verbose, "no" or empty being verbose).
rpm-build 50f7d6
AC_DEFUN([AM_SILENT_RULES],
rpm-build 50f7d6
[AC_ARG_ENABLE([silent-rules], [dnl
rpm-build 50f7d6
AS_HELP_STRING(
rpm-build 50f7d6
  [--enable-silent-rules],
rpm-build 50f7d6
  [less verbose build output (undo: "make V=1")])
rpm-build 50f7d6
AS_HELP_STRING(
rpm-build 50f7d6
  [--disable-silent-rules],
rpm-build 50f7d6
  [verbose build output (undo: "make V=0")])dnl
rpm-build 50f7d6
])
rpm-build 50f7d6
case $enable_silent_rules in @%:@ (((
rpm-build 50f7d6
  yes) AM_DEFAULT_VERBOSITY=0;;
rpm-build 50f7d6
   no) AM_DEFAULT_VERBOSITY=1;;
rpm-build 50f7d6
    *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
rpm-build 50f7d6
esac
rpm-build 50f7d6
dnl
rpm-build 50f7d6
dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
rpm-build 50f7d6
dnl do not support nested variable expansions.
rpm-build 50f7d6
dnl See automake bug#9928 and bug#10237.
rpm-build 50f7d6
am_make=${MAKE-make}
rpm-build 50f7d6
AC_CACHE_CHECK([whether $am_make supports nested variables],
rpm-build 50f7d6
   [am_cv_make_support_nested_variables],
rpm-build 50f7d6
   [if AS_ECHO([['TRUE=$(BAR$(V))
rpm-build 50f7d6
BAR0=false
rpm-build 50f7d6
BAR1=true
rpm-build 50f7d6
V=1
rpm-build 50f7d6
am__doit:
rpm-build 50f7d6
	@$(TRUE)
rpm-build 50f7d6
.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
rpm-build 50f7d6
  am_cv_make_support_nested_variables=yes
rpm-build 50f7d6
else
rpm-build 50f7d6
  am_cv_make_support_nested_variables=no
rpm-build 50f7d6
fi])
rpm-build 50f7d6
if test $am_cv_make_support_nested_variables = yes; then
rpm-build 50f7d6
  dnl Using '$V' instead of '$(V)' breaks IRIX make.
rpm-build 50f7d6
  AM_V='$(V)'
rpm-build 50f7d6
  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
rpm-build 50f7d6
else
rpm-build 50f7d6
  AM_V=$AM_DEFAULT_VERBOSITY
rpm-build 50f7d6
  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
rpm-build 50f7d6
fi
rpm-build 50f7d6
AC_SUBST([AM_V])dnl
rpm-build 50f7d6
AM_SUBST_NOTMAKE([AM_V])dnl
rpm-build 50f7d6
AC_SUBST([AM_DEFAULT_V])dnl
rpm-build 50f7d6
AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
rpm-build 50f7d6
AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
rpm-build 50f7d6
AM_BACKSLASH='\'
rpm-build 50f7d6
AC_SUBST([AM_BACKSLASH])dnl
rpm-build 50f7d6
_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
rpm-build 50f7d6
])
rpm-build 50f7d6
rpm-build 50f7d6
# Copyright (C) 2001-2014 Free Software Foundation, Inc.
rpm-build 50f7d6
#
rpm-build 50f7d6
# This file is free software; the Free Software Foundation
rpm-build 50f7d6
# gives unlimited permission to copy and/or distribute it,
rpm-build 50f7d6
# with or without modifications, as long as this notice is preserved.
rpm-build 50f7d6
rpm-build 50f7d6
# AM_PROG_INSTALL_STRIP
rpm-build 50f7d6
# ---------------------
rpm-build 50f7d6
# One issue with vendor 'install' (even GNU) is that you can't
rpm-build 50f7d6
# specify the program used to strip binaries.  This is especially
rpm-build 50f7d6
# annoying in cross-compiling environments, where the build's strip
rpm-build 50f7d6
# is unlikely to handle the host's binaries.
rpm-build 50f7d6
# Fortunately install-sh will honor a STRIPPROG variable, so we
rpm-build 50f7d6
# always use install-sh in "make install-strip", and initialize
rpm-build 50f7d6
# STRIPPROG with the value of the STRIP variable (set by the user).
rpm-build 50f7d6
AC_DEFUN([AM_PROG_INSTALL_STRIP],
rpm-build 50f7d6
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
rpm-build 50f7d6
# Installed binaries are usually stripped using 'strip' when the user
rpm-build 50f7d6
# run "make install-strip".  However 'strip' might not be the right
rpm-build 50f7d6
# tool to use in cross-compilation environments, therefore Automake
rpm-build 50f7d6
# will honor the 'STRIP' environment variable to overrule this program.
rpm-build 50f7d6
dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
rpm-build 50f7d6
if test "$cross_compiling" != no; then
rpm-build 50f7d6
  AC_CHECK_TOOL([STRIP], [strip], :)
rpm-build 50f7d6
fi
rpm-build 50f7d6
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
rpm-build 50f7d6
AC_SUBST([INSTALL_STRIP_PROGRAM])])
rpm-build 50f7d6
rpm-build 50f7d6
# Copyright (C) 2006-2014 Free Software Foundation, Inc.
rpm-build 50f7d6
#
rpm-build 50f7d6
# This file is free software; the Free Software Foundation
rpm-build 50f7d6
# gives unlimited permission to copy and/or distribute it,
rpm-build 50f7d6
# with or without modifications, as long as this notice is preserved.
rpm-build 50f7d6
rpm-build 50f7d6
# _AM_SUBST_NOTMAKE(VARIABLE)
rpm-build 50f7d6
# ---------------------------
rpm-build 50f7d6
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
rpm-build 50f7d6
# This macro is traced by Automake.
rpm-build 50f7d6
AC_DEFUN([_AM_SUBST_NOTMAKE])
rpm-build 50f7d6
rpm-build 50f7d6
# AM_SUBST_NOTMAKE(VARIABLE)
rpm-build 50f7d6
# --------------------------
rpm-build 50f7d6
# Public sister of _AM_SUBST_NOTMAKE.
rpm-build 50f7d6
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
rpm-build 50f7d6
rpm-build 50f7d6
# Check how to create a tarball.                            -*- Autoconf -*-
rpm-build 50f7d6
rpm-build 50f7d6
# Copyright (C) 2004-2014 Free Software Foundation, Inc.
rpm-build 50f7d6
#
rpm-build 50f7d6
# This file is free software; the Free Software Foundation
rpm-build 50f7d6
# gives unlimited permission to copy and/or distribute it,
rpm-build 50f7d6
# with or without modifications, as long as this notice is preserved.
rpm-build 50f7d6
rpm-build 50f7d6
# _AM_PROG_TAR(FORMAT)
rpm-build 50f7d6
# --------------------
rpm-build 50f7d6
# Check how to create a tarball in format FORMAT.
rpm-build 50f7d6
# FORMAT should be one of 'v7', 'ustar', or 'pax'.
rpm-build 50f7d6
#
rpm-build 50f7d6
# Substitute a variable $(am__tar) that is a command
rpm-build 50f7d6
# writing to stdout a FORMAT-tarball containing the directory
rpm-build 50f7d6
# $tardir.
rpm-build 50f7d6
#     tardir=directory && $(am__tar) > result.tar
rpm-build 50f7d6
#
rpm-build 50f7d6
# Substitute a variable $(am__untar) that extract such
rpm-build 50f7d6
# a tarball read from stdin.
rpm-build 50f7d6
#     $(am__untar) < result.tar
rpm-build 50f7d6
#
rpm-build 50f7d6
AC_DEFUN([_AM_PROG_TAR],
rpm-build 50f7d6
[# Always define AMTAR for backward compatibility.  Yes, it's still used
rpm-build 50f7d6
# in the wild :-(  We should find a proper way to deprecate it ...
rpm-build 50f7d6
AC_SUBST([AMTAR], ['$${TAR-tar}'])
rpm-build 50f7d6
rpm-build 50f7d6
# We'll loop over all known methods to create a tar archive until one works.
rpm-build 50f7d6
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
rpm-build 50f7d6
rpm-build 50f7d6
m4_if([$1], [v7],
rpm-build 50f7d6
  [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
rpm-build 50f7d6
rpm-build 50f7d6
  [m4_case([$1],
rpm-build 50f7d6
    [ustar],
rpm-build 50f7d6
     [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
rpm-build 50f7d6
      # There is notably a 21 bits limit for the UID and the GID.  In fact,
rpm-build 50f7d6
      # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
rpm-build 50f7d6
      # and bug#13588).
rpm-build 50f7d6
      am_max_uid=2097151 # 2^21 - 1
rpm-build 50f7d6
      am_max_gid=$am_max_uid
rpm-build 50f7d6
      # The $UID and $GID variables are not portable, so we need to resort
rpm-build 50f7d6
      # to the POSIX-mandated id(1) utility.  Errors in the 'id' calls
rpm-build 50f7d6
      # below are definitely unexpected, so allow the users to see them
rpm-build 50f7d6
      # (that is, avoid stderr redirection).
rpm-build 50f7d6
      am_uid=`id -u || echo unknown`
rpm-build 50f7d6
      am_gid=`id -g || echo unknown`
rpm-build 50f7d6
      AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
rpm-build 50f7d6
      if test $am_uid -le $am_max_uid; then
rpm-build 50f7d6
         AC_MSG_RESULT([yes])
rpm-build 50f7d6
      else
rpm-build 50f7d6
         AC_MSG_RESULT([no])
rpm-build 50f7d6
         _am_tools=none
rpm-build 50f7d6
      fi
rpm-build 50f7d6
      AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
rpm-build 50f7d6
      if test $am_gid -le $am_max_gid; then
rpm-build 50f7d6
         AC_MSG_RESULT([yes])
rpm-build 50f7d6
      else
rpm-build 50f7d6
        AC_MSG_RESULT([no])
rpm-build 50f7d6
        _am_tools=none
rpm-build 50f7d6
      fi],
rpm-build 50f7d6
rpm-build 50f7d6
  [pax],
rpm-build 50f7d6
    [],
rpm-build 50f7d6
rpm-build 50f7d6
  [m4_fatal([Unknown tar format])])
rpm-build 50f7d6
rpm-build 50f7d6
  AC_MSG_CHECKING([how to create a $1 tar archive])
rpm-build 50f7d6
rpm-build 50f7d6
  # Go ahead even if we have the value already cached.  We do so because we
rpm-build 50f7d6
  # need to set the values for the 'am__tar' and 'am__untar' variables.
rpm-build 50f7d6
  _am_tools=${am_cv_prog_tar_$1-$_am_tools}
rpm-build 50f7d6
rpm-build 50f7d6
  for _am_tool in $_am_tools; do
rpm-build 50f7d6
    case $_am_tool in
rpm-build 50f7d6
    gnutar)
rpm-build 50f7d6
      for _am_tar in tar gnutar gtar; do
rpm-build 50f7d6
        AM_RUN_LOG([$_am_tar --version]) && break
rpm-build 50f7d6
      done
rpm-build 50f7d6
      am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
rpm-build 50f7d6
      am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
rpm-build 50f7d6
      am__untar="$_am_tar -xf -"
rpm-build 50f7d6
      ;;
rpm-build 50f7d6
    plaintar)
rpm-build 50f7d6
      # Must skip GNU tar: if it does not support --format= it doesn't create
rpm-build 50f7d6
      # ustar tarball either.
rpm-build 50f7d6
      (tar --version) >/dev/null 2>&1 && continue
rpm-build 50f7d6
      am__tar='tar chf - "$$tardir"'
rpm-build 50f7d6
      am__tar_='tar chf - "$tardir"'
rpm-build 50f7d6
      am__untar='tar xf -'
rpm-build 50f7d6
      ;;
rpm-build 50f7d6
    pax)
rpm-build 50f7d6
      am__tar='pax -L -x $1 -w "$$tardir"'
rpm-build 50f7d6
      am__tar_='pax -L -x $1 -w "$tardir"'
rpm-build 50f7d6
      am__untar='pax -r'
rpm-build 50f7d6
      ;;
rpm-build 50f7d6
    cpio)
rpm-build 50f7d6
      am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
rpm-build 50f7d6
      am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
rpm-build 50f7d6
      am__untar='cpio -i -H $1 -d'
rpm-build 50f7d6
      ;;
rpm-build 50f7d6
    none)
rpm-build 50f7d6
      am__tar=false
rpm-build 50f7d6
      am__tar_=false
rpm-build 50f7d6
      am__untar=false
rpm-build 50f7d6
      ;;
rpm-build 50f7d6
    esac
rpm-build 50f7d6
rpm-build 50f7d6
    # If the value was cached, stop now.  We just wanted to have am__tar
rpm-build 50f7d6
    # and am__untar set.
rpm-build 50f7d6
    test -n "${am_cv_prog_tar_$1}" && break
rpm-build 50f7d6
rpm-build 50f7d6
    # tar/untar a dummy directory, and stop if the command works.
rpm-build 50f7d6
    rm -rf conftest.dir
rpm-build 50f7d6
    mkdir conftest.dir
rpm-build 50f7d6
    echo GrepMe > conftest.dir/file
rpm-build 50f7d6
    AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
rpm-build 50f7d6
    rm -rf conftest.dir
rpm-build 50f7d6
    if test -s conftest.tar; then
rpm-build 50f7d6
      AM_RUN_LOG([$am__untar 
rpm-build 50f7d6
      AM_RUN_LOG([cat conftest.dir/file])
rpm-build 50f7d6
      grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
rpm-build 50f7d6
    fi
rpm-build 50f7d6
  done
rpm-build 50f7d6
  rm -rf conftest.dir
rpm-build 50f7d6
rpm-build 50f7d6
  AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
rpm-build 50f7d6
  AC_MSG_RESULT([$am_cv_prog_tar_$1])])
rpm-build 50f7d6
rpm-build 50f7d6
AC_SUBST([am__tar])
rpm-build 50f7d6
AC_SUBST([am__untar])
rpm-build 50f7d6
]) # _AM_PROG_TAR
rpm-build 50f7d6