Blame SOURCES/libsodium-1.0.18/aclocal.m4

rdobuilder 775784
# generated automatically by aclocal 1.16.1 -*- Autoconf -*-
rdobuilder 775784
rdobuilder 775784
# Copyright (C) 1996-2018 Free Software Foundation, Inc.
rdobuilder 775784
rdobuilder 775784
# This file is free software; the Free Software Foundation
rdobuilder 775784
# gives unlimited permission to copy and/or distribute it,
rdobuilder 775784
# with or without modifications, as long as this notice is preserved.
rdobuilder 775784
rdobuilder 775784
# This program is distributed in the hope that it will be useful,
rdobuilder 775784
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
rdobuilder 775784
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
rdobuilder 775784
# PARTICULAR PURPOSE.
rdobuilder 775784
rdobuilder 775784
m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
rdobuilder 775784
m4_ifndef([AC_AUTOCONF_VERSION],
rdobuilder 775784
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
rdobuilder 775784
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
rdobuilder 775784
[m4_warning([this file was generated for autoconf 2.69.
rdobuilder 775784
You have another version of autoconf.  It may work, but is not guaranteed to.
rdobuilder 775784
If you have problems, you may need to regenerate the build system entirely.
rdobuilder 775784
To do so, use the procedure documented by the package, typically 'autoreconf'.])])
rdobuilder 775784
rdobuilder 775784
# Copyright (C) 2002-2018 Free Software Foundation, Inc.
rdobuilder 775784
#
rdobuilder 775784
# This file is free software; the Free Software Foundation
rdobuilder 775784
# gives unlimited permission to copy and/or distribute it,
rdobuilder 775784
# with or without modifications, as long as this notice is preserved.
rdobuilder 775784
rdobuilder 775784
# AM_AUTOMAKE_VERSION(VERSION)
rdobuilder 775784
# ----------------------------
rdobuilder 775784
# Automake X.Y traces this macro to ensure aclocal.m4 has been
rdobuilder 775784
# generated from the m4 files accompanying Automake X.Y.
rdobuilder 775784
# (This private macro should not be called outside this file.)
rdobuilder 775784
AC_DEFUN([AM_AUTOMAKE_VERSION],
rdobuilder 775784
[am__api_version='1.16'
rdobuilder 775784
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
rdobuilder 775784
dnl require some minimum version.  Point them to the right macro.
rdobuilder 775784
m4_if([$1], [1.16.1], [],
rdobuilder 775784
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
rdobuilder 775784
])
rdobuilder 775784
rdobuilder 775784
# _AM_AUTOCONF_VERSION(VERSION)
rdobuilder 775784
# -----------------------------
rdobuilder 775784
# aclocal traces this macro to find the Autoconf version.
rdobuilder 775784
# This is a private macro too.  Using m4_define simplifies
rdobuilder 775784
# the logic in aclocal, which can simply ignore this definition.
rdobuilder 775784
m4_define([_AM_AUTOCONF_VERSION], [])
rdobuilder 775784
rdobuilder 775784
# AM_SET_CURRENT_AUTOMAKE_VERSION
rdobuilder 775784
# -------------------------------
rdobuilder 775784
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
rdobuilder 775784
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
rdobuilder 775784
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
rdobuilder 775784
[AM_AUTOMAKE_VERSION([1.16.1])dnl
rdobuilder 775784
m4_ifndef([AC_AUTOCONF_VERSION],
rdobuilder 775784
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
rdobuilder 775784
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
rdobuilder 775784
rdobuilder 775784
# Figure out how to run the assembler.                      -*- Autoconf -*-
rdobuilder 775784
rdobuilder 775784
# Copyright (C) 2001-2018 Free Software Foundation, Inc.
rdobuilder 775784
#
rdobuilder 775784
# This file is free software; the Free Software Foundation
rdobuilder 775784
# gives unlimited permission to copy and/or distribute it,
rdobuilder 775784
# with or without modifications, as long as this notice is preserved.
rdobuilder 775784
rdobuilder 775784
# AM_PROG_AS
rdobuilder 775784
# ----------
rdobuilder 775784
AC_DEFUN([AM_PROG_AS],
rdobuilder 775784
[# By default we simply use the C compiler to build assembly code.
rdobuilder 775784
AC_REQUIRE([AC_PROG_CC])
rdobuilder 775784
test "${CCAS+set}" = set || CCAS=$CC
rdobuilder 775784
test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
rdobuilder 775784
AC_ARG_VAR([CCAS],      [assembler compiler command (defaults to CC)])
rdobuilder 775784
AC_ARG_VAR([CCASFLAGS], [assembler compiler flags (defaults to CFLAGS)])
rdobuilder 775784
_AM_IF_OPTION([no-dependencies],, [_AM_DEPENDENCIES([CCAS])])dnl
rdobuilder 775784
])
rdobuilder 775784
rdobuilder 775784
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
rdobuilder 775784
rdobuilder 775784
# Copyright (C) 2001-2018 Free Software Foundation, Inc.
rdobuilder 775784
#
rdobuilder 775784
# This file is free software; the Free Software Foundation
rdobuilder 775784
# gives unlimited permission to copy and/or distribute it,
rdobuilder 775784
# with or without modifications, as long as this notice is preserved.
rdobuilder 775784
rdobuilder 775784
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
rdobuilder 775784
# $ac_aux_dir to '$srcdir/foo'.  In other projects, it is set to
rdobuilder 775784
# '$srcdir', '$srcdir/..', or '$srcdir/../..'.
rdobuilder 775784
#
rdobuilder 775784
# Of course, Automake must honor this variable whenever it calls a
rdobuilder 775784
# tool from the auxiliary directory.  The problem is that $srcdir (and
rdobuilder 775784
# therefore $ac_aux_dir as well) can be either absolute or relative,
rdobuilder 775784
# depending on how configure is run.  This is pretty annoying, since
rdobuilder 775784
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
rdobuilder 775784
# source directory, any form will work fine, but in subdirectories a
rdobuilder 775784
# relative path needs to be adjusted first.
rdobuilder 775784
#
rdobuilder 775784
# $ac_aux_dir/missing
rdobuilder 775784
#    fails when called from a subdirectory if $ac_aux_dir is relative
rdobuilder 775784
# $top_srcdir/$ac_aux_dir/missing
rdobuilder 775784
#    fails if $ac_aux_dir is absolute,
rdobuilder 775784
#    fails when called from a subdirectory in a VPATH build with
rdobuilder 775784
#          a relative $ac_aux_dir
rdobuilder 775784
#
rdobuilder 775784
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
rdobuilder 775784
# are both prefixed by $srcdir.  In an in-source build this is usually
rdobuilder 775784
# harmless because $srcdir is '.', but things will broke when you
rdobuilder 775784
# start a VPATH build or use an absolute $srcdir.
rdobuilder 775784
#
rdobuilder 775784
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
rdobuilder 775784
# iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
rdobuilder 775784
#   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
rdobuilder 775784
# and then we would define $MISSING as
rdobuilder 775784
#   MISSING="\${SHELL} $am_aux_dir/missing"
rdobuilder 775784
# This will work as long as MISSING is not called from configure, because
rdobuilder 775784
# unfortunately $(top_srcdir) has no meaning in configure.
rdobuilder 775784
# However there are other variables, like CC, which are often used in
rdobuilder 775784
# configure, and could therefore not use this "fixed" $ac_aux_dir.
rdobuilder 775784
#
rdobuilder 775784
# Another solution, used here, is to always expand $ac_aux_dir to an
rdobuilder 775784
# absolute PATH.  The drawback is that using absolute paths prevent a
rdobuilder 775784
# configured tree to be moved without reconfiguration.
rdobuilder 775784
rdobuilder 775784
AC_DEFUN([AM_AUX_DIR_EXPAND],
rdobuilder 775784
[AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
rdobuilder 775784
# Expand $ac_aux_dir to an absolute path.
rdobuilder 775784
am_aux_dir=`cd "$ac_aux_dir" && pwd`
rdobuilder 775784
])
rdobuilder 775784
rdobuilder 775784
# AM_CONDITIONAL                                            -*- Autoconf -*-
rdobuilder 775784
rdobuilder 775784
# Copyright (C) 1997-2018 Free Software Foundation, Inc.
rdobuilder 775784
#
rdobuilder 775784
# This file is free software; the Free Software Foundation
rdobuilder 775784
# gives unlimited permission to copy and/or distribute it,
rdobuilder 775784
# with or without modifications, as long as this notice is preserved.
rdobuilder 775784
rdobuilder 775784
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
rdobuilder 775784
# -------------------------------------
rdobuilder 775784
# Define a conditional.
rdobuilder 775784
AC_DEFUN([AM_CONDITIONAL],
rdobuilder 775784
[AC_PREREQ([2.52])dnl
rdobuilder 775784
 m4_if([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
rdobuilder 775784
       [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
rdobuilder 775784
AC_SUBST([$1_TRUE])dnl
rdobuilder 775784
AC_SUBST([$1_FALSE])dnl
rdobuilder 775784
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
rdobuilder 775784
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
rdobuilder 775784
m4_define([_AM_COND_VALUE_$1], [$2])dnl
rdobuilder 775784
if $2; then
rdobuilder 775784
  $1_TRUE=
rdobuilder 775784
  $1_FALSE='#'
rdobuilder 775784
else
rdobuilder 775784
  $1_TRUE='#'
rdobuilder 775784
  $1_FALSE=
rdobuilder 775784
fi
rdobuilder 775784
AC_CONFIG_COMMANDS_PRE(
rdobuilder 775784
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
rdobuilder 775784
  AC_MSG_ERROR([[conditional "$1" was never defined.
rdobuilder 775784
Usually this means the macro was only invoked conditionally.]])
rdobuilder 775784
fi])])
rdobuilder 775784
rdobuilder 775784
# Copyright (C) 1999-2018 Free Software Foundation, Inc.
rdobuilder 775784
#
rdobuilder 775784
# This file is free software; the Free Software Foundation
rdobuilder 775784
# gives unlimited permission to copy and/or distribute it,
rdobuilder 775784
# with or without modifications, as long as this notice is preserved.
rdobuilder 775784
rdobuilder 775784
rdobuilder 775784
# There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
rdobuilder 775784
# written in clear, in which case automake, when reading aclocal.m4,
rdobuilder 775784
# will think it sees a *use*, and therefore will trigger all it's
rdobuilder 775784
# C support machinery.  Also note that it means that autoscan, seeing
rdobuilder 775784
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
rdobuilder 775784
rdobuilder 775784
rdobuilder 775784
# _AM_DEPENDENCIES(NAME)
rdobuilder 775784
# ----------------------
rdobuilder 775784
# See how the compiler implements dependency checking.
rdobuilder 775784
# NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
rdobuilder 775784
# We try a few techniques and use that to set a single cache variable.
rdobuilder 775784
#
rdobuilder 775784
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
rdobuilder 775784
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
rdobuilder 775784
# dependency, and given that the user is not expected to run this macro,
rdobuilder 775784
# just rely on AC_PROG_CC.
rdobuilder 775784
AC_DEFUN([_AM_DEPENDENCIES],
rdobuilder 775784
[AC_REQUIRE([AM_SET_DEPDIR])dnl
rdobuilder 775784
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
rdobuilder 775784
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
rdobuilder 775784
AC_REQUIRE([AM_DEP_TRACK])dnl
rdobuilder 775784
rdobuilder 775784
m4_if([$1], [CC],   [depcc="$CC"   am_compiler_list=],
rdobuilder 775784
      [$1], [CXX],  [depcc="$CXX"  am_compiler_list=],
rdobuilder 775784
      [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
rdobuilder 775784
      [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
rdobuilder 775784
      [$1], [UPC],  [depcc="$UPC"  am_compiler_list=],
rdobuilder 775784
      [$1], [GCJ],  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
rdobuilder 775784
                    [depcc="$$1"   am_compiler_list=])
rdobuilder 775784
rdobuilder 775784
AC_CACHE_CHECK([dependency style of $depcc],
rdobuilder 775784
               [am_cv_$1_dependencies_compiler_type],
rdobuilder 775784
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
rdobuilder 775784
  # We make a subdir and do the tests there.  Otherwise we can end up
rdobuilder 775784
  # making bogus files that we don't know about and never remove.  For
rdobuilder 775784
  # instance it was reported that on HP-UX the gcc test will end up
rdobuilder 775784
  # making a dummy file named 'D' -- because '-MD' means "put the output
rdobuilder 775784
  # in D".
rdobuilder 775784
  rm -rf conftest.dir
rdobuilder 775784
  mkdir conftest.dir
rdobuilder 775784
  # Copy depcomp to subdir because otherwise we won't find it if we're
rdobuilder 775784
  # using a relative directory.
rdobuilder 775784
  cp "$am_depcomp" conftest.dir
rdobuilder 775784
  cd conftest.dir
rdobuilder 775784
  # We will build objects and dependencies in a subdirectory because
rdobuilder 775784
  # it helps to detect inapplicable dependency modes.  For instance
rdobuilder 775784
  # both Tru64's cc and ICC support -MD to output dependencies as a
rdobuilder 775784
  # side effect of compilation, but ICC will put the dependencies in
rdobuilder 775784
  # the current directory while Tru64 will put them in the object
rdobuilder 775784
  # directory.
rdobuilder 775784
  mkdir sub
rdobuilder 775784
rdobuilder 775784
  am_cv_$1_dependencies_compiler_type=none
rdobuilder 775784
  if test "$am_compiler_list" = ""; then
rdobuilder 775784
     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
rdobuilder 775784
  fi
rdobuilder 775784
  am__universal=false
rdobuilder 775784
  m4_case([$1], [CC],
rdobuilder 775784
    [case " $depcc " in #(
rdobuilder 775784
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
rdobuilder 775784
     esac],
rdobuilder 775784
    [CXX],
rdobuilder 775784
    [case " $depcc " in #(
rdobuilder 775784
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
rdobuilder 775784
     esac])
rdobuilder 775784
rdobuilder 775784
  for depmode in $am_compiler_list; do
rdobuilder 775784
    # Setup a source with many dependencies, because some compilers
rdobuilder 775784
    # like to wrap large dependency lists on column 80 (with \), and
rdobuilder 775784
    # we should not choose a depcomp mode which is confused by this.
rdobuilder 775784
    #
rdobuilder 775784
    # We need to recreate these files for each test, as the compiler may
rdobuilder 775784
    # overwrite some of them when testing with obscure command lines.
rdobuilder 775784
    # This happens at least with the AIX C compiler.
rdobuilder 775784
    : > sub/conftest.c
rdobuilder 775784
    for i in 1 2 3 4 5 6; do
rdobuilder 775784
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
rdobuilder 775784
      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
rdobuilder 775784
      # Solaris 10 /bin/sh.
rdobuilder 775784
      echo '/* dummy */' > sub/conftst$i.h
rdobuilder 775784
    done
rdobuilder 775784
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
rdobuilder 775784
rdobuilder 775784
    # We check with '-c' and '-o' for the sake of the "dashmstdout"
rdobuilder 775784
    # mode.  It turns out that the SunPro C++ compiler does not properly
rdobuilder 775784
    # handle '-M -o', and we need to detect this.  Also, some Intel
rdobuilder 775784
    # versions had trouble with output in subdirs.
rdobuilder 775784
    am__obj=sub/conftest.${OBJEXT-o}
rdobuilder 775784
    am__minus_obj="-o $am__obj"
rdobuilder 775784
    case $depmode in
rdobuilder 775784
    gcc)
rdobuilder 775784
      # This depmode causes a compiler race in universal mode.
rdobuilder 775784
      test "$am__universal" = false || continue
rdobuilder 775784
      ;;
rdobuilder 775784
    nosideeffect)
rdobuilder 775784
      # After this tag, mechanisms are not by side-effect, so they'll
rdobuilder 775784
      # only be used when explicitly requested.
rdobuilder 775784
      if test "x$enable_dependency_tracking" = xyes; then
rdobuilder 775784
	continue
rdobuilder 775784
      else
rdobuilder 775784
	break
rdobuilder 775784
      fi
rdobuilder 775784
      ;;
rdobuilder 775784
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
rdobuilder 775784
      # This compiler won't grok '-c -o', but also, the minuso test has
rdobuilder 775784
      # not run yet.  These depmodes are late enough in the game, and
rdobuilder 775784
      # so weak that their functioning should not be impacted.
rdobuilder 775784
      am__obj=conftest.${OBJEXT-o}
rdobuilder 775784
      am__minus_obj=
rdobuilder 775784
      ;;
rdobuilder 775784
    none) break ;;
rdobuilder 775784
    esac
rdobuilder 775784
    if depmode=$depmode \
rdobuilder 775784
       source=sub/conftest.c object=$am__obj \
rdobuilder 775784
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
rdobuilder 775784
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
rdobuilder 775784
         >/dev/null 2>conftest.err &&
rdobuilder 775784
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
rdobuilder 775784
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
rdobuilder 775784
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
rdobuilder 775784
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
rdobuilder 775784
      # icc doesn't choke on unknown options, it will just issue warnings
rdobuilder 775784
      # or remarks (even with -Werror).  So we grep stderr for any message
rdobuilder 775784
      # that says an option was ignored or not supported.
rdobuilder 775784
      # When given -MP, icc 7.0 and 7.1 complain thusly:
rdobuilder 775784
      #   icc: Command line warning: ignoring option '-M'; no argument required
rdobuilder 775784
      # The diagnosis changed in icc 8.0:
rdobuilder 775784
      #   icc: Command line remark: option '-MP' not supported
rdobuilder 775784
      if (grep 'ignoring option' conftest.err ||
rdobuilder 775784
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
rdobuilder 775784
        am_cv_$1_dependencies_compiler_type=$depmode
rdobuilder 775784
        break
rdobuilder 775784
      fi
rdobuilder 775784
    fi
rdobuilder 775784
  done
rdobuilder 775784
rdobuilder 775784
  cd ..
rdobuilder 775784
  rm -rf conftest.dir
rdobuilder 775784
else
rdobuilder 775784
  am_cv_$1_dependencies_compiler_type=none
rdobuilder 775784
fi
rdobuilder 775784
])
rdobuilder 775784
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
rdobuilder 775784
AM_CONDITIONAL([am__fastdep$1], [
rdobuilder 775784
  test "x$enable_dependency_tracking" != xno \
rdobuilder 775784
  && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
rdobuilder 775784
])
rdobuilder 775784
rdobuilder 775784
rdobuilder 775784
# AM_SET_DEPDIR
rdobuilder 775784
# -------------
rdobuilder 775784
# Choose a directory name for dependency files.
rdobuilder 775784
# This macro is AC_REQUIREd in _AM_DEPENDENCIES.
rdobuilder 775784
AC_DEFUN([AM_SET_DEPDIR],
rdobuilder 775784
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
rdobuilder 775784
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
rdobuilder 775784
])
rdobuilder 775784
rdobuilder 775784
rdobuilder 775784
# AM_DEP_TRACK
rdobuilder 775784
# ------------
rdobuilder 775784
AC_DEFUN([AM_DEP_TRACK],
rdobuilder 775784
[AC_ARG_ENABLE([dependency-tracking], [dnl
rdobuilder 775784
AS_HELP_STRING(
rdobuilder 775784
  [--enable-dependency-tracking],
rdobuilder 775784
  [do not reject slow dependency extractors])
rdobuilder 775784
AS_HELP_STRING(
rdobuilder 775784
  [--disable-dependency-tracking],
rdobuilder 775784
  [speeds up one-time build])])
rdobuilder 775784
if test "x$enable_dependency_tracking" != xno; then
rdobuilder 775784
  am_depcomp="$ac_aux_dir/depcomp"
rdobuilder 775784
  AMDEPBACKSLASH='\'
rdobuilder 775784
  am__nodep='_no'
rdobuilder 775784
fi
rdobuilder 775784
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
rdobuilder 775784
AC_SUBST([AMDEPBACKSLASH])dnl
rdobuilder 775784
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
rdobuilder 775784
AC_SUBST([am__nodep])dnl
rdobuilder 775784
_AM_SUBST_NOTMAKE([am__nodep])dnl
rdobuilder 775784
])
rdobuilder 775784
rdobuilder 775784
# Generate code to set up dependency tracking.              -*- Autoconf -*-
rdobuilder 775784
rdobuilder 775784
# Copyright (C) 1999-2018 Free Software Foundation, Inc.
rdobuilder 775784
#
rdobuilder 775784
# This file is free software; the Free Software Foundation
rdobuilder 775784
# gives unlimited permission to copy and/or distribute it,
rdobuilder 775784
# with or without modifications, as long as this notice is preserved.
rdobuilder 775784
rdobuilder 775784
# _AM_OUTPUT_DEPENDENCY_COMMANDS
rdobuilder 775784
# ------------------------------
rdobuilder 775784
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
rdobuilder 775784
[{
rdobuilder 775784
  # Older Autoconf quotes --file arguments for eval, but not when files
rdobuilder 775784
  # are listed without --file.  Let's play safe and only enable the eval
rdobuilder 775784
  # if we detect the quoting.
rdobuilder 775784
  # TODO: see whether this extra hack can be removed once we start
rdobuilder 775784
  # requiring Autoconf 2.70 or later.
rdobuilder 775784
  AS_CASE([$CONFIG_FILES],
rdobuilder 775784
          [*\'*], [eval set x "$CONFIG_FILES"],
rdobuilder 775784
          [*], [set x $CONFIG_FILES])
rdobuilder 775784
  shift
rdobuilder 775784
  # Used to flag and report bootstrapping failures.
rdobuilder 775784
  am_rc=0
rdobuilder 775784
  for am_mf
rdobuilder 775784
  do
rdobuilder 775784
    # Strip MF so we end up with the name of the file.
rdobuilder 775784
    am_mf=`AS_ECHO(["$am_mf"]) | sed -e 's/:.*$//'`
rdobuilder 775784
    # Check whether this is an Automake generated Makefile which includes
rdobuilder 775784
    # dependency-tracking related rules and includes.
rdobuilder 775784
    # Grep'ing the whole file directly is not great: AIX grep has a line
rdobuilder 775784
    # limit of 2048, but all sed's we know have understand at least 4000.
rdobuilder 775784
    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
rdobuilder 775784
      || continue
rdobuilder 775784
    am_dirpart=`AS_DIRNAME(["$am_mf"])`
rdobuilder 775784
    am_filepart=`AS_BASENAME(["$am_mf"])`
rdobuilder 775784
    AM_RUN_LOG([cd "$am_dirpart" \
rdobuilder 775784
      && sed -e '/# am--include-marker/d' "$am_filepart" \
rdobuilder 775784
        | $MAKE -f - am--depfiles]) || am_rc=$?
rdobuilder 775784
  done
rdobuilder 775784
  if test $am_rc -ne 0; then
rdobuilder 775784
    AC_MSG_FAILURE([Something went wrong bootstrapping makefile fragments
rdobuilder 775784
    for automatic dependency tracking.  Try re-running configure with the
rdobuilder 775784
    '--disable-dependency-tracking' option to at least be able to build
rdobuilder 775784
    the package (albeit without support for automatic dependency tracking).])
rdobuilder 775784
  fi
rdobuilder 775784
  AS_UNSET([am_dirpart])
rdobuilder 775784
  AS_UNSET([am_filepart])
rdobuilder 775784
  AS_UNSET([am_mf])
rdobuilder 775784
  AS_UNSET([am_rc])
rdobuilder 775784
  rm -f conftest-deps.mk
rdobuilder 775784
}
rdobuilder 775784
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
rdobuilder 775784
rdobuilder 775784
rdobuilder 775784
# AM_OUTPUT_DEPENDENCY_COMMANDS
rdobuilder 775784
# -----------------------------
rdobuilder 775784
# This macro should only be invoked once -- use via AC_REQUIRE.
rdobuilder 775784
#
rdobuilder 775784
# This code is only required when automatic dependency tracking is enabled.
rdobuilder 775784
# This creates each '.Po' and '.Plo' makefile fragment that we'll need in
rdobuilder 775784
# order to bootstrap the dependency handling code.
rdobuilder 775784
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
rdobuilder 775784
[AC_CONFIG_COMMANDS([depfiles],
rdobuilder 775784
     [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
rdobuilder 775784
     [AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"])])
rdobuilder 775784
rdobuilder 775784
# Do all the work for Automake.                             -*- Autoconf -*-
rdobuilder 775784
rdobuilder 775784
# Copyright (C) 1996-2018 Free Software Foundation, Inc.
rdobuilder 775784
#
rdobuilder 775784
# This file is free software; the Free Software Foundation
rdobuilder 775784
# gives unlimited permission to copy and/or distribute it,
rdobuilder 775784
# with or without modifications, as long as this notice is preserved.
rdobuilder 775784
rdobuilder 775784
# This macro actually does too much.  Some checks are only needed if
rdobuilder 775784
# your package does certain things.  But this isn't really a big deal.
rdobuilder 775784
rdobuilder 775784
dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
rdobuilder 775784
m4_define([AC_PROG_CC],
rdobuilder 775784
m4_defn([AC_PROG_CC])
rdobuilder 775784
[_AM_PROG_CC_C_O
rdobuilder 775784
])
rdobuilder 775784
rdobuilder 775784
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
rdobuilder 775784
# AM_INIT_AUTOMAKE([OPTIONS])
rdobuilder 775784
# -----------------------------------------------
rdobuilder 775784
# The call with PACKAGE and VERSION arguments is the old style
rdobuilder 775784
# call (pre autoconf-2.50), which is being phased out.  PACKAGE
rdobuilder 775784
# and VERSION should now be passed to AC_INIT and removed from
rdobuilder 775784
# the call to AM_INIT_AUTOMAKE.
rdobuilder 775784
# We support both call styles for the transition.  After
rdobuilder 775784
# the next Automake release, Autoconf can make the AC_INIT
rdobuilder 775784
# arguments mandatory, and then we can depend on a new Autoconf
rdobuilder 775784
# release and drop the old call support.
rdobuilder 775784
AC_DEFUN([AM_INIT_AUTOMAKE],
rdobuilder 775784
[AC_PREREQ([2.65])dnl
rdobuilder 775784
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
rdobuilder 775784
dnl the ones we care about.
rdobuilder 775784
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
rdobuilder 775784
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
rdobuilder 775784
AC_REQUIRE([AC_PROG_INSTALL])dnl
rdobuilder 775784
if test "`cd $srcdir && pwd`" != "`pwd`"; then
rdobuilder 775784
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
rdobuilder 775784
  # is not polluted with repeated "-I."
rdobuilder 775784
  AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
rdobuilder 775784
  # test to see if srcdir already configured
rdobuilder 775784
  if test -f $srcdir/config.status; then
rdobuilder 775784
    AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
rdobuilder 775784
  fi
rdobuilder 775784
fi
rdobuilder 775784
rdobuilder 775784
# test whether we have cygpath
rdobuilder 775784
if test -z "$CYGPATH_W"; then
rdobuilder 775784
  if (cygpath --version) >/dev/null 2>/dev/null; then
rdobuilder 775784
    CYGPATH_W='cygpath -w'
rdobuilder 775784
  else
rdobuilder 775784
    CYGPATH_W=echo
rdobuilder 775784
  fi
rdobuilder 775784
fi
rdobuilder 775784
AC_SUBST([CYGPATH_W])
rdobuilder 775784
rdobuilder 775784
# Define the identity of the package.
rdobuilder 775784
dnl Distinguish between old-style and new-style calls.
rdobuilder 775784
m4_ifval([$2],
rdobuilder 775784
[AC_DIAGNOSE([obsolete],
rdobuilder 775784
             [$0: two- and three-arguments forms are deprecated.])
rdobuilder 775784
m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
rdobuilder 775784
 AC_SUBST([PACKAGE], [$1])dnl
rdobuilder 775784
 AC_SUBST([VERSION], [$2])],
rdobuilder 775784
[_AM_SET_OPTIONS([$1])dnl
rdobuilder 775784
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
rdobuilder 775784
m4_if(
rdobuilder 775784
  m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
rdobuilder 775784
  [ok:ok],,
rdobuilder 775784
  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
rdobuilder 775784
 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
rdobuilder 775784
 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
rdobuilder 775784
rdobuilder 775784
_AM_IF_OPTION([no-define],,
rdobuilder 775784
[AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
rdobuilder 775784
 AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
rdobuilder 775784
rdobuilder 775784
# Some tools Automake needs.
rdobuilder 775784
AC_REQUIRE([AM_SANITY_CHECK])dnl
rdobuilder 775784
AC_REQUIRE([AC_ARG_PROGRAM])dnl
rdobuilder 775784
AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
rdobuilder 775784
AM_MISSING_PROG([AUTOCONF], [autoconf])
rdobuilder 775784
AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
rdobuilder 775784
AM_MISSING_PROG([AUTOHEADER], [autoheader])
rdobuilder 775784
AM_MISSING_PROG([MAKEINFO], [makeinfo])
rdobuilder 775784
AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
rdobuilder 775784
AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
rdobuilder 775784
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
rdobuilder 775784
# For better backward compatibility.  To be removed once Automake 1.9.x
rdobuilder 775784
# dies out for good.  For more background, see:
rdobuilder 775784
# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
rdobuilder 775784
# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
rdobuilder 775784
AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
rdobuilder 775784
# We need awk for the "check" target (and possibly the TAP driver).  The
rdobuilder 775784
# system "awk" is bad on some platforms.
rdobuilder 775784
AC_REQUIRE([AC_PROG_AWK])dnl
rdobuilder 775784
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
rdobuilder 775784
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
rdobuilder 775784
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
rdobuilder 775784
	      [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
rdobuilder 775784
			     [_AM_PROG_TAR([v7])])])
rdobuilder 775784
_AM_IF_OPTION([no-dependencies],,
rdobuilder 775784
[AC_PROVIDE_IFELSE([AC_PROG_CC],
rdobuilder 775784
		  [_AM_DEPENDENCIES([CC])],
rdobuilder 775784
		  [m4_define([AC_PROG_CC],
rdobuilder 775784
			     m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
rdobuilder 775784
AC_PROVIDE_IFELSE([AC_PROG_CXX],
rdobuilder 775784
		  [_AM_DEPENDENCIES([CXX])],
rdobuilder 775784
		  [m4_define([AC_PROG_CXX],
rdobuilder 775784
			     m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
rdobuilder 775784
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
rdobuilder 775784
		  [_AM_DEPENDENCIES([OBJC])],
rdobuilder 775784
		  [m4_define([AC_PROG_OBJC],
rdobuilder 775784
			     m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
rdobuilder 775784
AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
rdobuilder 775784
		  [_AM_DEPENDENCIES([OBJCXX])],
rdobuilder 775784
		  [m4_define([AC_PROG_OBJCXX],
rdobuilder 775784
			     m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
rdobuilder 775784
])
rdobuilder 775784
AC_REQUIRE([AM_SILENT_RULES])dnl
rdobuilder 775784
dnl The testsuite driver may need to know about EXEEXT, so add the
rdobuilder 775784
dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This
rdobuilder 775784
dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
rdobuilder 775784
AC_CONFIG_COMMANDS_PRE(dnl
rdobuilder 775784
[m4_provide_if([_AM_COMPILER_EXEEXT],
rdobuilder 775784
  [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
rdobuilder 775784
rdobuilder 775784
# POSIX will say in a future version that running "rm -f" with no argument
rdobuilder 775784
# is OK; and we want to be able to make that assumption in our Makefile
rdobuilder 775784
# recipes.  So use an aggressive probe to check that the usage we want is
rdobuilder 775784
# actually supported "in the wild" to an acceptable degree.
rdobuilder 775784
# See automake bug#10828.
rdobuilder 775784
# To make any issue more visible, cause the running configure to be aborted
rdobuilder 775784
# by default if the 'rm' program in use doesn't match our expectations; the
rdobuilder 775784
# user can still override this though.
rdobuilder 775784
if rm -f && rm -fr && rm -rf; then : OK; else
rdobuilder 775784
  cat >&2 <<'END'
rdobuilder 775784
Oops!
rdobuilder 775784
rdobuilder 775784
Your 'rm' program seems unable to run without file operands specified
rdobuilder 775784
on the command line, even when the '-f' option is present.  This is contrary
rdobuilder 775784
to the behaviour of most rm programs out there, and not conforming with
rdobuilder 775784
the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
rdobuilder 775784
rdobuilder 775784
Please tell bug-automake@gnu.org about your system, including the value
rdobuilder 775784
of your $PATH and any error possibly output before this message.  This
rdobuilder 775784
can help us improve future automake versions.
rdobuilder 775784
rdobuilder 775784
END
rdobuilder 775784
  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
rdobuilder 775784
    echo 'Configuration will proceed anyway, since you have set the' >&2
rdobuilder 775784
    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
rdobuilder 775784
    echo >&2
rdobuilder 775784
  else
rdobuilder 775784
    cat >&2 <<'END'
rdobuilder 775784
Aborting the configuration process, to ensure you take notice of the issue.
rdobuilder 775784
rdobuilder 775784
You can download and install GNU coreutils to get an 'rm' implementation
rdobuilder 775784
that behaves properly: <https://www.gnu.org/software/coreutils/>.
rdobuilder 775784
rdobuilder 775784
If you want to complete the configuration process using your problematic
rdobuilder 775784
'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
rdobuilder 775784
to "yes", and re-run configure.
rdobuilder 775784
rdobuilder 775784
END
rdobuilder 775784
    AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
rdobuilder 775784
  fi
rdobuilder 775784
fi
rdobuilder 775784
dnl The trailing newline in this macro's definition is deliberate, for
rdobuilder 775784
dnl backward compatibility and to allow trailing 'dnl'-style comments
rdobuilder 775784
dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841.
rdobuilder 775784
])
rdobuilder 775784
rdobuilder 775784
dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
rdobuilder 775784
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
rdobuilder 775784
dnl mangled by Autoconf and run in a shell conditional statement.
rdobuilder 775784
m4_define([_AC_COMPILER_EXEEXT],
rdobuilder 775784
m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
rdobuilder 775784
rdobuilder 775784
# When config.status generates a header, we must update the stamp-h file.
rdobuilder 775784
# This file resides in the same directory as the config header
rdobuilder 775784
# that is generated.  The stamp files are numbered to have different names.
rdobuilder 775784
rdobuilder 775784
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
rdobuilder 775784
# loop where config.status creates the headers, so we can generate
rdobuilder 775784
# our stamp files there.
rdobuilder 775784
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
rdobuilder 775784
[# Compute $1's index in $config_headers.
rdobuilder 775784
_am_arg=$1
rdobuilder 775784
_am_stamp_count=1
rdobuilder 775784
for _am_header in $config_headers :; do
rdobuilder 775784
  case $_am_header in
rdobuilder 775784
    $_am_arg | $_am_arg:* )
rdobuilder 775784
      break ;;
rdobuilder 775784
    * )
rdobuilder 775784
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
rdobuilder 775784
  esac
rdobuilder 775784
done
rdobuilder 775784
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
rdobuilder 775784
rdobuilder 775784
# Copyright (C) 2001-2018 Free Software Foundation, Inc.
rdobuilder 775784
#
rdobuilder 775784
# This file is free software; the Free Software Foundation
rdobuilder 775784
# gives unlimited permission to copy and/or distribute it,
rdobuilder 775784
# with or without modifications, as long as this notice is preserved.
rdobuilder 775784
rdobuilder 775784
# AM_PROG_INSTALL_SH
rdobuilder 775784
# ------------------
rdobuilder 775784
# Define $install_sh.
rdobuilder 775784
AC_DEFUN([AM_PROG_INSTALL_SH],
rdobuilder 775784
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
rdobuilder 775784
if test x"${install_sh+set}" != xset; then
rdobuilder 775784
  case $am_aux_dir in
rdobuilder 775784
  *\ * | *\	*)
rdobuilder 775784
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
rdobuilder 775784
  *)
rdobuilder 775784
    install_sh="\${SHELL} $am_aux_dir/install-sh"
rdobuilder 775784
  esac
rdobuilder 775784
fi
rdobuilder 775784
AC_SUBST([install_sh])])
rdobuilder 775784
rdobuilder 775784
# Copyright (C) 2003-2018 Free Software Foundation, Inc.
rdobuilder 775784
#
rdobuilder 775784
# This file is free software; the Free Software Foundation
rdobuilder 775784
# gives unlimited permission to copy and/or distribute it,
rdobuilder 775784
# with or without modifications, as long as this notice is preserved.
rdobuilder 775784
rdobuilder 775784
# Check whether the underlying file-system supports filenames
rdobuilder 775784
# with a leading dot.  For instance MS-DOS doesn't.
rdobuilder 775784
AC_DEFUN([AM_SET_LEADING_DOT],
rdobuilder 775784
[rm -rf .tst 2>/dev/null
rdobuilder 775784
mkdir .tst 2>/dev/null
rdobuilder 775784
if test -d .tst; then
rdobuilder 775784
  am__leading_dot=.
rdobuilder 775784
else
rdobuilder 775784
  am__leading_dot=_
rdobuilder 775784
fi
rdobuilder 775784
rmdir .tst 2>/dev/null
rdobuilder 775784
AC_SUBST([am__leading_dot])])
rdobuilder 775784
rdobuilder 775784
# Add --enable-maintainer-mode option to configure.         -*- Autoconf -*-
rdobuilder 775784
# From Jim Meyering
rdobuilder 775784
rdobuilder 775784
# Copyright (C) 1996-2018 Free Software Foundation, Inc.
rdobuilder 775784
#
rdobuilder 775784
# This file is free software; the Free Software Foundation
rdobuilder 775784
# gives unlimited permission to copy and/or distribute it,
rdobuilder 775784
# with or without modifications, as long as this notice is preserved.
rdobuilder 775784
rdobuilder 775784
# AM_MAINTAINER_MODE([DEFAULT-MODE])
rdobuilder 775784
# ----------------------------------
rdobuilder 775784
# Control maintainer-specific portions of Makefiles.
rdobuilder 775784
# Default is to disable them, unless 'enable' is passed literally.
rdobuilder 775784
# For symmetry, 'disable' may be passed as well.  Anyway, the user
rdobuilder 775784
# can override the default with the --enable/--disable switch.
rdobuilder 775784
AC_DEFUN([AM_MAINTAINER_MODE],
rdobuilder 775784
[m4_case(m4_default([$1], [disable]),
rdobuilder 775784
       [enable], [m4_define([am_maintainer_other], [disable])],
rdobuilder 775784
       [disable], [m4_define([am_maintainer_other], [enable])],
rdobuilder 775784
       [m4_define([am_maintainer_other], [enable])
rdobuilder 775784
        m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
rdobuilder 775784
AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
rdobuilder 775784
  dnl maintainer-mode's default is 'disable' unless 'enable' is passed
rdobuilder 775784
  AC_ARG_ENABLE([maintainer-mode],
rdobuilder 775784
    [AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode],
rdobuilder 775784
      am_maintainer_other[ make rules and dependencies not useful
rdobuilder 775784
      (and sometimes confusing) to the casual installer])],
rdobuilder 775784
    [USE_MAINTAINER_MODE=$enableval],
rdobuilder 775784
    [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
rdobuilder 775784
  AC_MSG_RESULT([$USE_MAINTAINER_MODE])
rdobuilder 775784
  AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
rdobuilder 775784
  MAINT=$MAINTAINER_MODE_TRUE
rdobuilder 775784
  AC_SUBST([MAINT])dnl
rdobuilder 775784
]
rdobuilder 775784
)
rdobuilder 775784
rdobuilder 775784
# Check to see how 'make' treats includes.	            -*- Autoconf -*-
rdobuilder 775784
rdobuilder 775784
# Copyright (C) 2001-2018 Free Software Foundation, Inc.
rdobuilder 775784
#
rdobuilder 775784
# This file is free software; the Free Software Foundation
rdobuilder 775784
# gives unlimited permission to copy and/or distribute it,
rdobuilder 775784
# with or without modifications, as long as this notice is preserved.
rdobuilder 775784
rdobuilder 775784
# AM_MAKE_INCLUDE()
rdobuilder 775784
# -----------------
rdobuilder 775784
# Check whether make has an 'include' directive that can support all
rdobuilder 775784
# the idioms we need for our automatic dependency tracking code.
rdobuilder 775784
AC_DEFUN([AM_MAKE_INCLUDE],
rdobuilder 775784
[AC_MSG_CHECKING([whether ${MAKE-make} supports the include directive])
rdobuilder 775784
cat > confinc.mk << 'END'
rdobuilder 775784
am__doit:
rdobuilder 775784
	@echo this is the am__doit target >confinc.out
rdobuilder 775784
.PHONY: am__doit
rdobuilder 775784
END
rdobuilder 775784
am__include="#"
rdobuilder 775784
am__quote=
rdobuilder 775784
# BSD make does it like this.
rdobuilder 775784
echo '.include "confinc.mk" # ignored' > confmf.BSD
rdobuilder 775784
# Other make implementations (GNU, Solaris 10, AIX) do it like this.
rdobuilder 775784
echo 'include confinc.mk # ignored' > confmf.GNU
rdobuilder 775784
_am_result=no
rdobuilder 775784
for s in GNU BSD; do
rdobuilder 775784
  AM_RUN_LOG([${MAKE-make} -f confmf.$s && cat confinc.out])
rdobuilder 775784
  AS_CASE([$?:`cat confinc.out 2>/dev/null`],
rdobuilder 775784
      ['0:this is the am__doit target'],
rdobuilder 775784
      [AS_CASE([$s],
rdobuilder 775784
          [BSD], [am__include='.include' am__quote='"'],
rdobuilder 775784
          [am__include='include' am__quote=''])])
rdobuilder 775784
  if test "$am__include" != "#"; then
rdobuilder 775784
    _am_result="yes ($s style)"
rdobuilder 775784
    break
rdobuilder 775784
  fi
rdobuilder 775784
done
rdobuilder 775784
rm -f confinc.* confmf.*
rdobuilder 775784
AC_MSG_RESULT([${_am_result}])
rdobuilder 775784
AC_SUBST([am__include])])
rdobuilder 775784
AC_SUBST([am__quote])])
rdobuilder 775784
rdobuilder 775784
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
rdobuilder 775784
rdobuilder 775784
# Copyright (C) 1997-2018 Free Software Foundation, Inc.
rdobuilder 775784
#
rdobuilder 775784
# This file is free software; the Free Software Foundation
rdobuilder 775784
# gives unlimited permission to copy and/or distribute it,
rdobuilder 775784
# with or without modifications, as long as this notice is preserved.
rdobuilder 775784
rdobuilder 775784
# AM_MISSING_PROG(NAME, PROGRAM)
rdobuilder 775784
# ------------------------------
rdobuilder 775784
AC_DEFUN([AM_MISSING_PROG],
rdobuilder 775784
[AC_REQUIRE([AM_MISSING_HAS_RUN])
rdobuilder 775784
$1=${$1-"${am_missing_run}$2"}
rdobuilder 775784
AC_SUBST($1)])
rdobuilder 775784
rdobuilder 775784
# AM_MISSING_HAS_RUN
rdobuilder 775784
# ------------------
rdobuilder 775784
# Define MISSING if not defined so far and test if it is modern enough.
rdobuilder 775784
# If it is, set am_missing_run to use it, otherwise, to nothing.
rdobuilder 775784
AC_DEFUN([AM_MISSING_HAS_RUN],
rdobuilder 775784
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
rdobuilder 775784
AC_REQUIRE_AUX_FILE([missing])dnl
rdobuilder 775784
if test x"${MISSING+set}" != xset; then
rdobuilder 775784
  case $am_aux_dir in
rdobuilder 775784
  *\ * | *\	*)
rdobuilder 775784
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
rdobuilder 775784
  *)
rdobuilder 775784
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
rdobuilder 775784
  esac
rdobuilder 775784
fi
rdobuilder 775784
# Use eval to expand $SHELL
rdobuilder 775784
if eval "$MISSING --is-lightweight"; then
rdobuilder 775784
  am_missing_run="$MISSING "
rdobuilder 775784
else
rdobuilder 775784
  am_missing_run=
rdobuilder 775784
  AC_MSG_WARN(['missing' script is too old or missing])
rdobuilder 775784
fi
rdobuilder 775784
])
rdobuilder 775784
rdobuilder 775784
# Helper functions for option handling.                     -*- Autoconf -*-
rdobuilder 775784
rdobuilder 775784
# Copyright (C) 2001-2018 Free Software Foundation, Inc.
rdobuilder 775784
#
rdobuilder 775784
# This file is free software; the Free Software Foundation
rdobuilder 775784
# gives unlimited permission to copy and/or distribute it,
rdobuilder 775784
# with or without modifications, as long as this notice is preserved.
rdobuilder 775784
rdobuilder 775784
# _AM_MANGLE_OPTION(NAME)
rdobuilder 775784
# -----------------------
rdobuilder 775784
AC_DEFUN([_AM_MANGLE_OPTION],
rdobuilder 775784
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
rdobuilder 775784
rdobuilder 775784
# _AM_SET_OPTION(NAME)
rdobuilder 775784
# --------------------
rdobuilder 775784
# Set option NAME.  Presently that only means defining a flag for this option.
rdobuilder 775784
AC_DEFUN([_AM_SET_OPTION],
rdobuilder 775784
[m4_define(_AM_MANGLE_OPTION([$1]), [1])])
rdobuilder 775784
rdobuilder 775784
# _AM_SET_OPTIONS(OPTIONS)
rdobuilder 775784
# ------------------------
rdobuilder 775784
# OPTIONS is a space-separated list of Automake options.
rdobuilder 775784
AC_DEFUN([_AM_SET_OPTIONS],
rdobuilder 775784
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
rdobuilder 775784
rdobuilder 775784
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
rdobuilder 775784
# -------------------------------------------
rdobuilder 775784
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
rdobuilder 775784
AC_DEFUN([_AM_IF_OPTION],
rdobuilder 775784
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
rdobuilder 775784
rdobuilder 775784
# Copyright (C) 1999-2018 Free Software Foundation, Inc.
rdobuilder 775784
#
rdobuilder 775784
# This file is free software; the Free Software Foundation
rdobuilder 775784
# gives unlimited permission to copy and/or distribute it,
rdobuilder 775784
# with or without modifications, as long as this notice is preserved.
rdobuilder 775784
rdobuilder 775784
# _AM_PROG_CC_C_O
rdobuilder 775784
# ---------------
rdobuilder 775784
# Like AC_PROG_CC_C_O, but changed for automake.  We rewrite AC_PROG_CC
rdobuilder 775784
# to automatically call this.
rdobuilder 775784
AC_DEFUN([_AM_PROG_CC_C_O],
rdobuilder 775784
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
rdobuilder 775784
AC_REQUIRE_AUX_FILE([compile])dnl
rdobuilder 775784
AC_LANG_PUSH([C])dnl
rdobuilder 775784
AC_CACHE_CHECK(
rdobuilder 775784
  [whether $CC understands -c and -o together],
rdobuilder 775784
  [am_cv_prog_cc_c_o],
rdobuilder 775784
  [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
rdobuilder 775784
  # Make sure it works both with $CC and with simple cc.
rdobuilder 775784
  # Following AC_PROG_CC_C_O, we do the test twice because some
rdobuilder 775784
  # compilers refuse to overwrite an existing .o file with -o,
rdobuilder 775784
  # though they will create one.
rdobuilder 775784
  am_cv_prog_cc_c_o=yes
rdobuilder 775784
  for am_i in 1 2; do
rdobuilder 775784
    if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
rdobuilder 775784
         && test -f conftest2.$ac_objext; then
rdobuilder 775784
      : OK
rdobuilder 775784
    else
rdobuilder 775784
      am_cv_prog_cc_c_o=no
rdobuilder 775784
      break
rdobuilder 775784
    fi
rdobuilder 775784
  done
rdobuilder 775784
  rm -f core conftest*
rdobuilder 775784
  unset am_i])
rdobuilder 775784
if test "$am_cv_prog_cc_c_o" != yes; then
rdobuilder 775784
   # Losing compiler, so override with the script.
rdobuilder 775784
   # FIXME: It is wrong to rewrite CC.
rdobuilder 775784
   # But if we don't then we get into trouble of one sort or another.
rdobuilder 775784
   # A longer-term fix would be to have automake use am__CC in this case,
rdobuilder 775784
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
rdobuilder 775784
   CC="$am_aux_dir/compile $CC"
rdobuilder 775784
fi
rdobuilder 775784
AC_LANG_POP([C])])
rdobuilder 775784
rdobuilder 775784
# For backward compatibility.
rdobuilder 775784
AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
rdobuilder 775784
rdobuilder 775784
# Copyright (C) 2001-2018 Free Software Foundation, Inc.
rdobuilder 775784
#
rdobuilder 775784
# This file is free software; the Free Software Foundation
rdobuilder 775784
# gives unlimited permission to copy and/or distribute it,
rdobuilder 775784
# with or without modifications, as long as this notice is preserved.
rdobuilder 775784
rdobuilder 775784
# AM_RUN_LOG(COMMAND)
rdobuilder 775784
# -------------------
rdobuilder 775784
# Run COMMAND, save the exit status in ac_status, and log it.
rdobuilder 775784
# (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
rdobuilder 775784
AC_DEFUN([AM_RUN_LOG],
rdobuilder 775784
[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
rdobuilder 775784
   ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
rdobuilder 775784
   ac_status=$?
rdobuilder 775784
   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
rdobuilder 775784
   (exit $ac_status); }])
rdobuilder 775784
rdobuilder 775784
# Check to make sure that the build environment is sane.    -*- Autoconf -*-
rdobuilder 775784
rdobuilder 775784
# Copyright (C) 1996-2018 Free Software Foundation, Inc.
rdobuilder 775784
#
rdobuilder 775784
# This file is free software; the Free Software Foundation
rdobuilder 775784
# gives unlimited permission to copy and/or distribute it,
rdobuilder 775784
# with or without modifications, as long as this notice is preserved.
rdobuilder 775784
rdobuilder 775784
# AM_SANITY_CHECK
rdobuilder 775784
# ---------------
rdobuilder 775784
AC_DEFUN([AM_SANITY_CHECK],
rdobuilder 775784
[AC_MSG_CHECKING([whether build environment is sane])
rdobuilder 775784
# Reject unsafe characters in $srcdir or the absolute working directory
rdobuilder 775784
# name.  Accept space and tab only in the latter.
rdobuilder 775784
am_lf='
rdobuilder 775784
'
rdobuilder 775784
case `pwd` in
rdobuilder 775784
  *[[\\\"\#\$\&\'\`$am_lf]]*)
rdobuilder 775784
    AC_MSG_ERROR([unsafe absolute working directory name]);;
rdobuilder 775784
esac
rdobuilder 775784
case $srcdir in
rdobuilder 775784
  *[[\\\"\#\$\&\'\`$am_lf\ \	]]*)
rdobuilder 775784
    AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
rdobuilder 775784
esac
rdobuilder 775784
rdobuilder 775784
# Do 'set' in a subshell so we don't clobber the current shell's
rdobuilder 775784
# arguments.  Must try -L first in case configure is actually a
rdobuilder 775784
# symlink; some systems play weird games with the mod time of symlinks
rdobuilder 775784
# (eg FreeBSD returns the mod time of the symlink's containing
rdobuilder 775784
# directory).
rdobuilder 775784
if (
rdobuilder 775784
   am_has_slept=no
rdobuilder 775784
   for am_try in 1 2; do
rdobuilder 775784
     echo "timestamp, slept: $am_has_slept" > conftest.file
rdobuilder 775784
     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
rdobuilder 775784
     if test "$[*]" = "X"; then
rdobuilder 775784
	# -L didn't work.
rdobuilder 775784
	set X `ls -t "$srcdir/configure" conftest.file`
rdobuilder 775784
     fi
rdobuilder 775784
     if test "$[*]" != "X $srcdir/configure conftest.file" \
rdobuilder 775784
	&& test "$[*]" != "X conftest.file $srcdir/configure"; then
rdobuilder 775784
rdobuilder 775784
	# If neither matched, then we have a broken ls.  This can happen
rdobuilder 775784
	# if, for instance, CONFIG_SHELL is bash and it inherits a
rdobuilder 775784
	# broken ls alias from the environment.  This has actually
rdobuilder 775784
	# happened.  Such a system could not be considered "sane".
rdobuilder 775784
	AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
rdobuilder 775784
  alias in your environment])
rdobuilder 775784
     fi
rdobuilder 775784
     if test "$[2]" = conftest.file || test $am_try -eq 2; then
rdobuilder 775784
       break
rdobuilder 775784
     fi
rdobuilder 775784
     # Just in case.
rdobuilder 775784
     sleep 1
rdobuilder 775784
     am_has_slept=yes
rdobuilder 775784
   done
rdobuilder 775784
   test "$[2]" = conftest.file
rdobuilder 775784
   )
rdobuilder 775784
then
rdobuilder 775784
   # Ok.
rdobuilder 775784
   :
rdobuilder 775784
else
rdobuilder 775784
   AC_MSG_ERROR([newly created file is older than distributed files!
rdobuilder 775784
Check your system clock])
rdobuilder 775784
fi
rdobuilder 775784
AC_MSG_RESULT([yes])
rdobuilder 775784
# If we didn't sleep, we still need to ensure time stamps of config.status and
rdobuilder 775784
# generated files are strictly newer.
rdobuilder 775784
am_sleep_pid=
rdobuilder 775784
if grep 'slept: no' conftest.file >/dev/null 2>&1; then
rdobuilder 775784
  ( sleep 1 ) &
rdobuilder 775784
  am_sleep_pid=$!
rdobuilder 775784
fi
rdobuilder 775784
AC_CONFIG_COMMANDS_PRE(
rdobuilder 775784
  [AC_MSG_CHECKING([that generated files are newer than configure])
rdobuilder 775784
   if test -n "$am_sleep_pid"; then
rdobuilder 775784
     # Hide warnings about reused PIDs.
rdobuilder 775784
     wait $am_sleep_pid 2>/dev/null
rdobuilder 775784
   fi
rdobuilder 775784
   AC_MSG_RESULT([done])])
rdobuilder 775784
rm -f conftest.file
rdobuilder 775784
])
rdobuilder 775784
rdobuilder 775784
# Copyright (C) 2009-2018 Free Software Foundation, Inc.
rdobuilder 775784
#
rdobuilder 775784
# This file is free software; the Free Software Foundation
rdobuilder 775784
# gives unlimited permission to copy and/or distribute it,
rdobuilder 775784
# with or without modifications, as long as this notice is preserved.
rdobuilder 775784
rdobuilder 775784
# AM_SILENT_RULES([DEFAULT])
rdobuilder 775784
# --------------------------
rdobuilder 775784
# Enable less verbose build rules; with the default set to DEFAULT
rdobuilder 775784
# ("yes" being less verbose, "no" or empty being verbose).
rdobuilder 775784
AC_DEFUN([AM_SILENT_RULES],
rdobuilder 775784
[AC_ARG_ENABLE([silent-rules], [dnl
rdobuilder 775784
AS_HELP_STRING(
rdobuilder 775784
  [--enable-silent-rules],
rdobuilder 775784
  [less verbose build output (undo: "make V=1")])
rdobuilder 775784
AS_HELP_STRING(
rdobuilder 775784
  [--disable-silent-rules],
rdobuilder 775784
  [verbose build output (undo: "make V=0")])dnl
rdobuilder 775784
])
rdobuilder 775784
case $enable_silent_rules in @%:@ (((
rdobuilder 775784
  yes) AM_DEFAULT_VERBOSITY=0;;
rdobuilder 775784
   no) AM_DEFAULT_VERBOSITY=1;;
rdobuilder 775784
    *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
rdobuilder 775784
esac
rdobuilder 775784
dnl
rdobuilder 775784
dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
rdobuilder 775784
dnl do not support nested variable expansions.
rdobuilder 775784
dnl See automake bug#9928 and bug#10237.
rdobuilder 775784
am_make=${MAKE-make}
rdobuilder 775784
AC_CACHE_CHECK([whether $am_make supports nested variables],
rdobuilder 775784
   [am_cv_make_support_nested_variables],
rdobuilder 775784
   [if AS_ECHO([['TRUE=$(BAR$(V))
rdobuilder 775784
BAR0=false
rdobuilder 775784
BAR1=true
rdobuilder 775784
V=1
rdobuilder 775784
am__doit:
rdobuilder 775784
	@$(TRUE)
rdobuilder 775784
.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
rdobuilder 775784
  am_cv_make_support_nested_variables=yes
rdobuilder 775784
else
rdobuilder 775784
  am_cv_make_support_nested_variables=no
rdobuilder 775784
fi])
rdobuilder 775784
if test $am_cv_make_support_nested_variables = yes; then
rdobuilder 775784
  dnl Using '$V' instead of '$(V)' breaks IRIX make.
rdobuilder 775784
  AM_V='$(V)'
rdobuilder 775784
  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
rdobuilder 775784
else
rdobuilder 775784
  AM_V=$AM_DEFAULT_VERBOSITY
rdobuilder 775784
  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
rdobuilder 775784
fi
rdobuilder 775784
AC_SUBST([AM_V])dnl
rdobuilder 775784
AM_SUBST_NOTMAKE([AM_V])dnl
rdobuilder 775784
AC_SUBST([AM_DEFAULT_V])dnl
rdobuilder 775784
AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
rdobuilder 775784
AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
rdobuilder 775784
AM_BACKSLASH='\'
rdobuilder 775784
AC_SUBST([AM_BACKSLASH])dnl
rdobuilder 775784
_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
rdobuilder 775784
])
rdobuilder 775784
rdobuilder 775784
# Copyright (C) 2001-2018 Free Software Foundation, Inc.
rdobuilder 775784
#
rdobuilder 775784
# This file is free software; the Free Software Foundation
rdobuilder 775784
# gives unlimited permission to copy and/or distribute it,
rdobuilder 775784
# with or without modifications, as long as this notice is preserved.
rdobuilder 775784
rdobuilder 775784
# AM_PROG_INSTALL_STRIP
rdobuilder 775784
# ---------------------
rdobuilder 775784
# One issue with vendor 'install' (even GNU) is that you can't
rdobuilder 775784
# specify the program used to strip binaries.  This is especially
rdobuilder 775784
# annoying in cross-compiling environments, where the build's strip
rdobuilder 775784
# is unlikely to handle the host's binaries.
rdobuilder 775784
# Fortunately install-sh will honor a STRIPPROG variable, so we
rdobuilder 775784
# always use install-sh in "make install-strip", and initialize
rdobuilder 775784
# STRIPPROG with the value of the STRIP variable (set by the user).
rdobuilder 775784
AC_DEFUN([AM_PROG_INSTALL_STRIP],
rdobuilder 775784
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
rdobuilder 775784
# Installed binaries are usually stripped using 'strip' when the user
rdobuilder 775784
# run "make install-strip".  However 'strip' might not be the right
rdobuilder 775784
# tool to use in cross-compilation environments, therefore Automake
rdobuilder 775784
# will honor the 'STRIP' environment variable to overrule this program.
rdobuilder 775784
dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
rdobuilder 775784
if test "$cross_compiling" != no; then
rdobuilder 775784
  AC_CHECK_TOOL([STRIP], [strip], :)
rdobuilder 775784
fi
rdobuilder 775784
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
rdobuilder 775784
AC_SUBST([INSTALL_STRIP_PROGRAM])])
rdobuilder 775784
rdobuilder 775784
# Copyright (C) 2006-2018 Free Software Foundation, Inc.
rdobuilder 775784
#
rdobuilder 775784
# This file is free software; the Free Software Foundation
rdobuilder 775784
# gives unlimited permission to copy and/or distribute it,
rdobuilder 775784
# with or without modifications, as long as this notice is preserved.
rdobuilder 775784
rdobuilder 775784
# _AM_SUBST_NOTMAKE(VARIABLE)
rdobuilder 775784
# ---------------------------
rdobuilder 775784
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
rdobuilder 775784
# This macro is traced by Automake.
rdobuilder 775784
AC_DEFUN([_AM_SUBST_NOTMAKE])
rdobuilder 775784
rdobuilder 775784
# AM_SUBST_NOTMAKE(VARIABLE)
rdobuilder 775784
# --------------------------
rdobuilder 775784
# Public sister of _AM_SUBST_NOTMAKE.
rdobuilder 775784
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
rdobuilder 775784
rdobuilder 775784
# Check how to create a tarball.                            -*- Autoconf -*-
rdobuilder 775784
rdobuilder 775784
# Copyright (C) 2004-2018 Free Software Foundation, Inc.
rdobuilder 775784
#
rdobuilder 775784
# This file is free software; the Free Software Foundation
rdobuilder 775784
# gives unlimited permission to copy and/or distribute it,
rdobuilder 775784
# with or without modifications, as long as this notice is preserved.
rdobuilder 775784
rdobuilder 775784
# _AM_PROG_TAR(FORMAT)
rdobuilder 775784
# --------------------
rdobuilder 775784
# Check how to create a tarball in format FORMAT.
rdobuilder 775784
# FORMAT should be one of 'v7', 'ustar', or 'pax'.
rdobuilder 775784
#
rdobuilder 775784
# Substitute a variable $(am__tar) that is a command
rdobuilder 775784
# writing to stdout a FORMAT-tarball containing the directory
rdobuilder 775784
# $tardir.
rdobuilder 775784
#     tardir=directory && $(am__tar) > result.tar
rdobuilder 775784
#
rdobuilder 775784
# Substitute a variable $(am__untar) that extract such
rdobuilder 775784
# a tarball read from stdin.
rdobuilder 775784
#     $(am__untar) < result.tar
rdobuilder 775784
#
rdobuilder 775784
AC_DEFUN([_AM_PROG_TAR],
rdobuilder 775784
[# Always define AMTAR for backward compatibility.  Yes, it's still used
rdobuilder 775784
# in the wild :-(  We should find a proper way to deprecate it ...
rdobuilder 775784
AC_SUBST([AMTAR], ['$${TAR-tar}'])
rdobuilder 775784
rdobuilder 775784
# We'll loop over all known methods to create a tar archive until one works.
rdobuilder 775784
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
rdobuilder 775784
rdobuilder 775784
m4_if([$1], [v7],
rdobuilder 775784
  [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
rdobuilder 775784
rdobuilder 775784
  [m4_case([$1],
rdobuilder 775784
    [ustar],
rdobuilder 775784
     [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
rdobuilder 775784
      # There is notably a 21 bits limit for the UID and the GID.  In fact,
rdobuilder 775784
      # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
rdobuilder 775784
      # and bug#13588).
rdobuilder 775784
      am_max_uid=2097151 # 2^21 - 1
rdobuilder 775784
      am_max_gid=$am_max_uid
rdobuilder 775784
      # The $UID and $GID variables are not portable, so we need to resort
rdobuilder 775784
      # to the POSIX-mandated id(1) utility.  Errors in the 'id' calls
rdobuilder 775784
      # below are definitely unexpected, so allow the users to see them
rdobuilder 775784
      # (that is, avoid stderr redirection).
rdobuilder 775784
      am_uid=`id -u || echo unknown`
rdobuilder 775784
      am_gid=`id -g || echo unknown`
rdobuilder 775784
      AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
rdobuilder 775784
      if test $am_uid -le $am_max_uid; then
rdobuilder 775784
         AC_MSG_RESULT([yes])
rdobuilder 775784
      else
rdobuilder 775784
         AC_MSG_RESULT([no])
rdobuilder 775784
         _am_tools=none
rdobuilder 775784
      fi
rdobuilder 775784
      AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
rdobuilder 775784
      if test $am_gid -le $am_max_gid; then
rdobuilder 775784
         AC_MSG_RESULT([yes])
rdobuilder 775784
      else
rdobuilder 775784
        AC_MSG_RESULT([no])
rdobuilder 775784
        _am_tools=none
rdobuilder 775784
      fi],
rdobuilder 775784
rdobuilder 775784
  [pax],
rdobuilder 775784
    [],
rdobuilder 775784
rdobuilder 775784
  [m4_fatal([Unknown tar format])])
rdobuilder 775784
rdobuilder 775784
  AC_MSG_CHECKING([how to create a $1 tar archive])
rdobuilder 775784
rdobuilder 775784
  # Go ahead even if we have the value already cached.  We do so because we
rdobuilder 775784
  # need to set the values for the 'am__tar' and 'am__untar' variables.
rdobuilder 775784
  _am_tools=${am_cv_prog_tar_$1-$_am_tools}
rdobuilder 775784
rdobuilder 775784
  for _am_tool in $_am_tools; do
rdobuilder 775784
    case $_am_tool in
rdobuilder 775784
    gnutar)
rdobuilder 775784
      for _am_tar in tar gnutar gtar; do
rdobuilder 775784
        AM_RUN_LOG([$_am_tar --version]) && break
rdobuilder 775784
      done
rdobuilder 775784
      am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
rdobuilder 775784
      am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
rdobuilder 775784
      am__untar="$_am_tar -xf -"
rdobuilder 775784
      ;;
rdobuilder 775784
    plaintar)
rdobuilder 775784
      # Must skip GNU tar: if it does not support --format= it doesn't create
rdobuilder 775784
      # ustar tarball either.
rdobuilder 775784
      (tar --version) >/dev/null 2>&1 && continue
rdobuilder 775784
      am__tar='tar chf - "$$tardir"'
rdobuilder 775784
      am__tar_='tar chf - "$tardir"'
rdobuilder 775784
      am__untar='tar xf -'
rdobuilder 775784
      ;;
rdobuilder 775784
    pax)
rdobuilder 775784
      am__tar='pax -L -x $1 -w "$$tardir"'
rdobuilder 775784
      am__tar_='pax -L -x $1 -w "$tardir"'
rdobuilder 775784
      am__untar='pax -r'
rdobuilder 775784
      ;;
rdobuilder 775784
    cpio)
rdobuilder 775784
      am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
rdobuilder 775784
      am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
rdobuilder 775784
      am__untar='cpio -i -H $1 -d'
rdobuilder 775784
      ;;
rdobuilder 775784
    none)
rdobuilder 775784
      am__tar=false
rdobuilder 775784
      am__tar_=false
rdobuilder 775784
      am__untar=false
rdobuilder 775784
      ;;
rdobuilder 775784
    esac
rdobuilder 775784
rdobuilder 775784
    # If the value was cached, stop now.  We just wanted to have am__tar
rdobuilder 775784
    # and am__untar set.
rdobuilder 775784
    test -n "${am_cv_prog_tar_$1}" && break
rdobuilder 775784
rdobuilder 775784
    # tar/untar a dummy directory, and stop if the command works.
rdobuilder 775784
    rm -rf conftest.dir
rdobuilder 775784
    mkdir conftest.dir
rdobuilder 775784
    echo GrepMe > conftest.dir/file
rdobuilder 775784
    AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
rdobuilder 775784
    rm -rf conftest.dir
rdobuilder 775784
    if test -s conftest.tar; then
rdobuilder 775784
      AM_RUN_LOG([$am__untar 
rdobuilder 775784
      AM_RUN_LOG([cat conftest.dir/file])
rdobuilder 775784
      grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
rdobuilder 775784
    fi
rdobuilder 775784
  done
rdobuilder 775784
  rm -rf conftest.dir
rdobuilder 775784
rdobuilder 775784
  AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
rdobuilder 775784
  AC_MSG_RESULT([$am_cv_prog_tar_$1])])
rdobuilder 775784
rdobuilder 775784
AC_SUBST([am__tar])
rdobuilder 775784
AC_SUBST([am__untar])
rdobuilder 775784
]) # _AM_PROG_TAR
rdobuilder 775784
rdobuilder 775784
m4_include([m4/ax_check_catchable_abrt.m4])
rdobuilder 775784
m4_include([m4/ax_check_catchable_segv.m4])
rdobuilder 775784
m4_include([m4/ax_check_compile_flag.m4])
rdobuilder 775784
m4_include([m4/ax_check_define.m4])
rdobuilder 775784
m4_include([m4/ax_check_link_flag.m4])
rdobuilder 775784
m4_include([m4/ax_pthread.m4])
rdobuilder 775784
m4_include([m4/ax_tls.m4])
rdobuilder 775784
m4_include([m4/ax_valgrind_check.m4])
rdobuilder 775784
m4_include([m4/ld-output-def.m4])
rdobuilder 775784
m4_include([m4/libtool.m4])
rdobuilder 775784
m4_include([m4/ltoptions.m4])
rdobuilder 775784
m4_include([m4/ltsugar.m4])
rdobuilder 775784
m4_include([m4/ltversion.m4])
rdobuilder 775784
m4_include([m4/lt~obsolete.m4])