Blame aclocal.m4

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