Blame aclocal.m4

Packit 78284e
# generated automatically by aclocal 1.15 -*- Autoconf -*-
Packit 78284e
Packit 78284e
# Copyright (C) 1996-2014 Free Software Foundation, Inc.
Packit 78284e
Packit 78284e
# This file is free software; the Free Software Foundation
Packit 78284e
# gives unlimited permission to copy and/or distribute it,
Packit 78284e
# with or without modifications, as long as this notice is preserved.
Packit 78284e
Packit 78284e
# This program is distributed in the hope that it will be useful,
Packit 78284e
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
Packit 78284e
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
Packit 78284e
# PARTICULAR PURPOSE.
Packit 78284e
Packit 78284e
m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
Packit 78284e
m4_ifndef([AC_AUTOCONF_VERSION],
Packit 78284e
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
Packit 78284e
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
Packit 78284e
[m4_warning([this file was generated for autoconf 2.69.
Packit 78284e
You have another version of autoconf.  It may work, but is not guaranteed to.
Packit 78284e
If you have problems, you may need to regenerate the build system entirely.
Packit 78284e
To do so, use the procedure documented by the package, typically 'autoreconf'.])])
Packit 78284e
Packit 78284e
dnl pkg.m4 - Macros to locate and utilise pkg-config.   -*- Autoconf -*-
Packit 78284e
dnl serial 11 (pkg-config-0.29.1)
Packit 78284e
dnl
Packit 78284e
dnl Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
Packit 78284e
dnl Copyright © 2012-2015 Dan Nicholson <dbn.lists@gmail.com>
Packit 78284e
dnl
Packit 78284e
dnl This program is free software; you can redistribute it and/or modify
Packit 78284e
dnl it under the terms of the GNU General Public License as published by
Packit 78284e
dnl the Free Software Foundation; either version 2 of the License, or
Packit 78284e
dnl (at your option) any later version.
Packit 78284e
dnl
Packit 78284e
dnl This program is distributed in the hope that it will be useful, but
Packit 78284e
dnl WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 78284e
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Packit 78284e
dnl General Public License for more details.
Packit 78284e
dnl
Packit 78284e
dnl You should have received a copy of the GNU General Public License
Packit 78284e
dnl along with this program; if not, write to the Free Software
Packit 78284e
dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
Packit 78284e
dnl 02111-1307, USA.
Packit 78284e
dnl
Packit 78284e
dnl As a special exception to the GNU General Public License, if you
Packit 78284e
dnl distribute this file as part of a program that contains a
Packit 78284e
dnl configuration script generated by Autoconf, you may include it under
Packit 78284e
dnl the same distribution terms that you use for the rest of that
Packit 78284e
dnl program.
Packit 78284e
Packit 78284e
dnl PKG_PREREQ(MIN-VERSION)
Packit 78284e
dnl -----------------------
Packit 78284e
dnl Since: 0.29
Packit 78284e
dnl
Packit 78284e
dnl Verify that the version of the pkg-config macros are at least
Packit 78284e
dnl MIN-VERSION. Unlike PKG_PROG_PKG_CONFIG, which checks the user's
Packit 78284e
dnl installed version of pkg-config, this checks the developer's version
Packit 78284e
dnl of pkg.m4 when generating configure.
Packit 78284e
dnl
Packit 78284e
dnl To ensure that this macro is defined, also add:
Packit 78284e
dnl m4_ifndef([PKG_PREREQ],
Packit 78284e
dnl     [m4_fatal([must install pkg-config 0.29 or later before running autoconf/autogen])])
Packit 78284e
dnl
Packit 78284e
dnl See the "Since" comment for each macro you use to see what version
Packit 78284e
dnl of the macros you require.
Packit 78284e
m4_defun([PKG_PREREQ],
Packit 78284e
[m4_define([PKG_MACROS_VERSION], [0.29.1])
Packit 78284e
m4_if(m4_version_compare(PKG_MACROS_VERSION, [$1]), -1,
Packit 78284e
    [m4_fatal([pkg.m4 version $1 or higher is required but ]PKG_MACROS_VERSION[ found])])
Packit 78284e
])dnl PKG_PREREQ
Packit 78284e
Packit 78284e
dnl PKG_PROG_PKG_CONFIG([MIN-VERSION])
Packit 78284e
dnl ----------------------------------
Packit 78284e
dnl Since: 0.16
Packit 78284e
dnl
Packit 78284e
dnl Search for the pkg-config tool and set the PKG_CONFIG variable to
Packit 78284e
dnl first found in the path. Checks that the version of pkg-config found
Packit 78284e
dnl is at least MIN-VERSION. If MIN-VERSION is not specified, 0.9.0 is
Packit 78284e
dnl used since that's the first version where most current features of
Packit 78284e
dnl pkg-config existed.
Packit 78284e
AC_DEFUN([PKG_PROG_PKG_CONFIG],
Packit 78284e
[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
Packit 78284e
m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$])
Packit 78284e
m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$])
Packit 78284e
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
Packit 78284e
AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
Packit 78284e
AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
Packit 78284e
Packit 78284e
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
Packit 78284e
	AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
Packit 78284e
fi
Packit 78284e
if test -n "$PKG_CONFIG"; then
Packit 78284e
	_pkg_min_version=m4_default([$1], [0.9.0])
Packit 78284e
	AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
Packit 78284e
	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
Packit 78284e
		AC_MSG_RESULT([yes])
Packit 78284e
	else
Packit 78284e
		AC_MSG_RESULT([no])
Packit 78284e
		PKG_CONFIG=""
Packit 78284e
	fi
Packit 78284e
fi[]dnl
Packit 78284e
])dnl PKG_PROG_PKG_CONFIG
Packit 78284e
Packit 78284e
dnl PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
Packit 78284e
dnl -------------------------------------------------------------------
Packit 78284e
dnl Since: 0.18
Packit 78284e
dnl
Packit 78284e
dnl Check to see whether a particular set of modules exists. Similar to
Packit 78284e
dnl PKG_CHECK_MODULES(), but does not set variables or print errors.
Packit 78284e
dnl
Packit 78284e
dnl Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
Packit 78284e
dnl only at the first occurence in configure.ac, so if the first place
Packit 78284e
dnl it's called might be skipped (such as if it is within an "if", you
Packit 78284e
dnl have to call PKG_CHECK_EXISTS manually
Packit 78284e
AC_DEFUN([PKG_CHECK_EXISTS],
Packit 78284e
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
Packit 78284e
if test -n "$PKG_CONFIG" && \
Packit 78284e
    AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
Packit 78284e
  m4_default([$2], [:])
Packit 78284e
m4_ifvaln([$3], [else
Packit 78284e
  $3])dnl
Packit 78284e
fi])
Packit 78284e
Packit 78284e
dnl _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
Packit 78284e
dnl ---------------------------------------------
Packit 78284e
dnl Internal wrapper calling pkg-config via PKG_CONFIG and setting
Packit 78284e
dnl pkg_failed based on the result.
Packit 78284e
m4_define([_PKG_CONFIG],
Packit 78284e
[if test -n "$$1"; then
Packit 78284e
    pkg_cv_[]$1="$$1"
Packit 78284e
 elif test -n "$PKG_CONFIG"; then
Packit 78284e
    PKG_CHECK_EXISTS([$3],
Packit 78284e
                     [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`
Packit 78284e
		      test "x$?" != "x0" && pkg_failed=yes ],
Packit 78284e
		     [pkg_failed=yes])
Packit 78284e
 else
Packit 78284e
    pkg_failed=untried
Packit 78284e
fi[]dnl
Packit 78284e
])dnl _PKG_CONFIG
Packit 78284e
Packit 78284e
dnl _PKG_SHORT_ERRORS_SUPPORTED
Packit 78284e
dnl ---------------------------
Packit 78284e
dnl Internal check to see if pkg-config supports short errors.
Packit 78284e
AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
Packit 78284e
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
Packit 78284e
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
Packit 78284e
        _pkg_short_errors_supported=yes
Packit 78284e
else
Packit 78284e
        _pkg_short_errors_supported=no
Packit 78284e
fi[]dnl
Packit 78284e
])dnl _PKG_SHORT_ERRORS_SUPPORTED
Packit 78284e
Packit 78284e
Packit 78284e
dnl PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
Packit 78284e
dnl   [ACTION-IF-NOT-FOUND])
Packit 78284e
dnl --------------------------------------------------------------
Packit 78284e
dnl Since: 0.4.0
Packit 78284e
dnl
Packit 78284e
dnl Note that if there is a possibility the first call to
Packit 78284e
dnl PKG_CHECK_MODULES might not happen, you should be sure to include an
Packit 78284e
dnl explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
Packit 78284e
AC_DEFUN([PKG_CHECK_MODULES],
Packit 78284e
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
Packit 78284e
AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
Packit 78284e
AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
Packit 78284e
Packit 78284e
pkg_failed=no
Packit 78284e
AC_MSG_CHECKING([for $1])
Packit 78284e
Packit 78284e
_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
Packit 78284e
_PKG_CONFIG([$1][_LIBS], [libs], [$2])
Packit 78284e
Packit 78284e
m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
Packit 78284e
and $1[]_LIBS to avoid the need to call pkg-config.
Packit 78284e
See the pkg-config man page for more details.])
Packit 78284e
Packit 78284e
if test $pkg_failed = yes; then
Packit 78284e
   	AC_MSG_RESULT([no])
Packit 78284e
        _PKG_SHORT_ERRORS_SUPPORTED
Packit 78284e
        if test $_pkg_short_errors_supported = yes; then
Packit 78284e
	        $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1`
Packit 78284e
        else 
Packit 78284e
	        $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
Packit 78284e
        fi
Packit 78284e
	# Put the nasty error message in config.log where it belongs
Packit 78284e
	echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
Packit 78284e
Packit 78284e
	m4_default([$4], [AC_MSG_ERROR(
Packit 78284e
[Package requirements ($2) were not met:
Packit 78284e
Packit 78284e
$$1_PKG_ERRORS
Packit 78284e
Packit 78284e
Consider adjusting the PKG_CONFIG_PATH environment variable if you
Packit 78284e
installed software in a non-standard prefix.
Packit 78284e
Packit 78284e
_PKG_TEXT])[]dnl
Packit 78284e
        ])
Packit 78284e
elif test $pkg_failed = untried; then
Packit 78284e
     	AC_MSG_RESULT([no])
Packit 78284e
	m4_default([$4], [AC_MSG_FAILURE(
Packit 78284e
[The pkg-config script could not be found or is too old.  Make sure it
Packit 78284e
is in your PATH or set the PKG_CONFIG environment variable to the full
Packit 78284e
path to pkg-config.
Packit 78284e
Packit 78284e
_PKG_TEXT
Packit 78284e
Packit 78284e
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl
Packit 78284e
        ])
Packit 78284e
else
Packit 78284e
	$1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
Packit 78284e
	$1[]_LIBS=$pkg_cv_[]$1[]_LIBS
Packit 78284e
        AC_MSG_RESULT([yes])
Packit 78284e
	$3
Packit 78284e
fi[]dnl
Packit 78284e
])dnl PKG_CHECK_MODULES
Packit 78284e
Packit 78284e
Packit 78284e
dnl PKG_CHECK_MODULES_STATIC(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
Packit 78284e
dnl   [ACTION-IF-NOT-FOUND])
Packit 78284e
dnl ---------------------------------------------------------------------
Packit 78284e
dnl Since: 0.29
Packit 78284e
dnl
Packit 78284e
dnl Checks for existence of MODULES and gathers its build flags with
Packit 78284e
dnl static libraries enabled. Sets VARIABLE-PREFIX_CFLAGS from --cflags
Packit 78284e
dnl and VARIABLE-PREFIX_LIBS from --libs.
Packit 78284e
dnl
Packit 78284e
dnl Note that if there is a possibility the first call to
Packit 78284e
dnl PKG_CHECK_MODULES_STATIC might not happen, you should be sure to
Packit 78284e
dnl include an explicit call to PKG_PROG_PKG_CONFIG in your
Packit 78284e
dnl configure.ac.
Packit 78284e
AC_DEFUN([PKG_CHECK_MODULES_STATIC],
Packit 78284e
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
Packit 78284e
_save_PKG_CONFIG=$PKG_CONFIG
Packit 78284e
PKG_CONFIG="$PKG_CONFIG --static"
Packit 78284e
PKG_CHECK_MODULES($@)
Packit 78284e
PKG_CONFIG=$_save_PKG_CONFIG[]dnl
Packit 78284e
])dnl PKG_CHECK_MODULES_STATIC
Packit 78284e
Packit 78284e
Packit 78284e
dnl PKG_INSTALLDIR([DIRECTORY])
Packit 78284e
dnl -------------------------
Packit 78284e
dnl Since: 0.27
Packit 78284e
dnl
Packit 78284e
dnl Substitutes the variable pkgconfigdir as the location where a module
Packit 78284e
dnl should install pkg-config .pc files. By default the directory is
Packit 78284e
dnl $libdir/pkgconfig, but the default can be changed by passing
Packit 78284e
dnl DIRECTORY. The user can override through the --with-pkgconfigdir
Packit 78284e
dnl parameter.
Packit 78284e
AC_DEFUN([PKG_INSTALLDIR],
Packit 78284e
[m4_pushdef([pkg_default], [m4_default([$1], ['${libdir}/pkgconfig'])])
Packit 78284e
m4_pushdef([pkg_description],
Packit 78284e
    [pkg-config installation directory @<:@]pkg_default[@:>@])
Packit 78284e
AC_ARG_WITH([pkgconfigdir],
Packit 78284e
    [AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],,
Packit 78284e
    [with_pkgconfigdir=]pkg_default)
Packit 78284e
AC_SUBST([pkgconfigdir], [$with_pkgconfigdir])
Packit 78284e
m4_popdef([pkg_default])
Packit 78284e
m4_popdef([pkg_description])
Packit 78284e
])dnl PKG_INSTALLDIR
Packit 78284e
Packit 78284e
Packit 78284e
dnl PKG_NOARCH_INSTALLDIR([DIRECTORY])
Packit 78284e
dnl --------------------------------
Packit 78284e
dnl Since: 0.27
Packit 78284e
dnl
Packit 78284e
dnl Substitutes the variable noarch_pkgconfigdir as the location where a
Packit 78284e
dnl module should install arch-independent pkg-config .pc files. By
Packit 78284e
dnl default the directory is $datadir/pkgconfig, but the default can be
Packit 78284e
dnl changed by passing DIRECTORY. The user can override through the
Packit 78284e
dnl --with-noarch-pkgconfigdir parameter.
Packit 78284e
AC_DEFUN([PKG_NOARCH_INSTALLDIR],
Packit 78284e
[m4_pushdef([pkg_default], [m4_default([$1], ['${datadir}/pkgconfig'])])
Packit 78284e
m4_pushdef([pkg_description],
Packit 78284e
    [pkg-config arch-independent installation directory @<:@]pkg_default[@:>@])
Packit 78284e
AC_ARG_WITH([noarch-pkgconfigdir],
Packit 78284e
    [AS_HELP_STRING([--with-noarch-pkgconfigdir], pkg_description)],,
Packit 78284e
    [with_noarch_pkgconfigdir=]pkg_default)
Packit 78284e
AC_SUBST([noarch_pkgconfigdir], [$with_noarch_pkgconfigdir])
Packit 78284e
m4_popdef([pkg_default])
Packit 78284e
m4_popdef([pkg_description])
Packit 78284e
])dnl PKG_NOARCH_INSTALLDIR
Packit 78284e
Packit 78284e
Packit 78284e
dnl PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE,
Packit 78284e
dnl [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
Packit 78284e
dnl -------------------------------------------
Packit 78284e
dnl Since: 0.28
Packit 78284e
dnl
Packit 78284e
dnl Retrieves the value of the pkg-config variable for the given module.
Packit 78284e
AC_DEFUN([PKG_CHECK_VAR],
Packit 78284e
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
Packit 78284e
AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl
Packit 78284e
Packit 78284e
_PKG_CONFIG([$1], [variable="][$3]["], [$2])
Packit 78284e
AS_VAR_COPY([$1], [pkg_cv_][$1])
Packit 78284e
Packit 78284e
AS_VAR_IF([$1], [""], [$5], [$4])dnl
Packit 78284e
])dnl PKG_CHECK_VAR
Packit 78284e
Packit 78284e
# ===========================================================================
Packit 78284e
#   http://www.gnu.org/software/autoconf-archive/ax_cxx_compile_stdcxx.html
Packit 78284e
# ===========================================================================
Packit 78284e
#
Packit 78284e
# SYNOPSIS
Packit 78284e
#
Packit 78284e
#   MM_AX_CXX_COMPILE_STDCXX(VERSION, [ext|noext], [mandatory|optional])
Packit 78284e
#
Packit 78284e
# DESCRIPTION
Packit 78284e
#
Packit 78284e
#   Check for baseline language coverage in the compiler for the specified
Packit 78284e
#   version of the C++ standard.  If necessary, add switches to CXXFLAGS to
Packit 78284e
#   enable support.  VERSION may be '11' (for the C++11 standard) or '14'
Packit 78284e
#   (for the C++14 standard).
Packit 78284e
#
Packit 78284e
#   The second argument, if specified, indicates whether you insist on an
Packit 78284e
#   extended mode (e.g. -std=gnu++11) or a strict conformance mode (e.g.
Packit 78284e
#   -std=c++11).  If neither is specified, you get whatever works, with
Packit 78284e
#   preference for an extended mode.
Packit 78284e
#
Packit 78284e
#   The third argument, if specified 'mandatory' or if left unspecified,
Packit 78284e
#   indicates that baseline support for the specified C++ standard is
Packit 78284e
#   required and that the macro should error out if no mode with that
Packit 78284e
#   support is found.  If specified 'optional', then configuration proceeds
Packit 78284e
#   regardless, after defining HAVE_CXX${VERSION} if and only if a
Packit 78284e
#   supporting mode is found.
Packit 78284e
#
Packit 78284e
# LICENSE
Packit 78284e
#
Packit 78284e
#   Copyright (c) 2008 Benjamin Kosnik <bkoz@redhat.com>
Packit 78284e
#   Copyright (c) 2012 Zack Weinberg <zackw@panix.com>
Packit 78284e
#   Copyright (c) 2013 Roy Stogner <roystgnr@ices.utexas.edu>
Packit 78284e
#   Copyright (c) 2014, 2015 Google Inc.; contributed by Alexey Sokolov <sokolov@google.com>
Packit 78284e
#   Copyright (c) 2015 Paul Norman <penorman@mac.com>
Packit 78284e
#   Copyright (c) 2015 Moritz Klammler <moritz@klammler.eu>
Packit 78284e
#
Packit 78284e
#   Copying and distribution of this file, with or without modification, are
Packit 78284e
#   permitted in any medium without royalty provided the copyright notice
Packit 78284e
#   and this notice are preserved.  This file is offered as-is, without any
Packit 78284e
#   warranty.
Packit 78284e
Packit 78284e
# Copied from ax_cxx_compile_stdcxx.m4 and added MM_ prefix to avoid
Packit 78284e
# possible conflict with AX_CXX_COMPILE_STDCXX in other modules.
Packit 78284e
Packit 78284e
#serial 1
Packit 78284e
Packit 78284e
dnl  This macro is based on the code from the MM_AX_CXX_COMPILE_STDCXX_11 macro
Packit 78284e
dnl  (serial version number 13).
Packit 78284e
Packit 78284e
AC_DEFUN([MM_AX_CXX_COMPILE_STDCXX], [dnl
Packit 78284e
  m4_if([$1], [11], [],
Packit 78284e
        [$1], [14], [],
Packit 78284e
        [$1], [17], [m4_fatal([support for C++17 not yet implemented in MM_AX_CXX_COMPILE_STDCXX])],
Packit 78284e
        [m4_fatal([invalid first argument `$1' to MM_AX_CXX_COMPILE_STDCXX])])dnl
Packit 78284e
  m4_if([$2], [], [],
Packit 78284e
        [$2], [ext], [],
Packit 78284e
        [$2], [noext], [],
Packit 78284e
        [m4_fatal([invalid second argument `$2' to MM_AX_CXX_COMPILE_STDCXX])])dnl
Packit 78284e
  m4_if([$3], [], [ax_cxx_compile_cxx$1_required=true],
Packit 78284e
        [$3], [mandatory], [ax_cxx_compile_cxx$1_required=true],
Packit 78284e
        [$3], [optional], [ax_cxx_compile_cxx$1_required=false],
Packit 78284e
        [m4_fatal([invalid third argument `$3' to MM_AX_CXX_COMPILE_STDCXX])])
Packit 78284e
  AC_LANG_PUSH([C++])dnl
Packit 78284e
  ac_success=no
Packit 78284e
  AC_CACHE_CHECK(whether $CXX supports C++$1 features by default,
Packit 78284e
  ax_cv_cxx_compile_cxx$1,
Packit 78284e
  [AC_COMPILE_IFELSE([AC_LANG_SOURCE([_MM_AX_CXX_COMPILE_STDCXX_testbody_$1])],
Packit 78284e
    [ax_cv_cxx_compile_cxx$1=yes],
Packit 78284e
    [ax_cv_cxx_compile_cxx$1=no])])
Packit 78284e
  if test x$ax_cv_cxx_compile_cxx$1 = xyes; then
Packit 78284e
    ac_success=yes
Packit 78284e
  fi
Packit 78284e
Packit 78284e
  m4_if([$2], [noext], [], [dnl
Packit 78284e
  if test x$ac_success = xno; then
Packit 78284e
    for switch in -std=gnu++$1 -std=gnu++0x; do
Packit 78284e
      cachevar=AS_TR_SH([ax_cv_cxx_compile_cxx$1_$switch])
Packit 78284e
      AC_CACHE_CHECK(whether $CXX supports C++$1 features with $switch,
Packit 78284e
                     $cachevar,
Packit 78284e
        [ac_save_CXXFLAGS="$CXXFLAGS"
Packit 78284e
         CXXFLAGS="$CXXFLAGS $switch"
Packit 78284e
         AC_COMPILE_IFELSE([AC_LANG_SOURCE([_MM_AX_CXX_COMPILE_STDCXX_testbody_$1])],
Packit 78284e
          [eval $cachevar=yes],
Packit 78284e
          [eval $cachevar=no])
Packit 78284e
         CXXFLAGS="$ac_save_CXXFLAGS"])
Packit 78284e
      if eval test x\$$cachevar = xyes; then
Packit 78284e
        CXXFLAGS="$CXXFLAGS $switch"
Packit 78284e
        ac_success=yes
Packit 78284e
        break
Packit 78284e
      fi
Packit 78284e
    done
Packit 78284e
  fi])
Packit 78284e
Packit 78284e
  m4_if([$2], [ext], [], [dnl
Packit 78284e
  if test x$ac_success = xno; then
Packit 78284e
    dnl HP's aCC needs +std=c++11 according to:
Packit 78284e
    dnl http://h21007.www2.hp.com/portal/download/files/unprot/aCxx/PDF_Release_Notes/769149-001.pdf
Packit 78284e
    dnl Cray's crayCC needs "-h std=c++11"
Packit 78284e
    for switch in -std=c++$1 -std=c++0x +std=c++$1 "-h std=c++$1"; do
Packit 78284e
      cachevar=AS_TR_SH([ax_cv_cxx_compile_cxx$1_$switch])
Packit 78284e
      AC_CACHE_CHECK(whether $CXX supports C++$1 features with $switch,
Packit 78284e
                     $cachevar,
Packit 78284e
        [ac_save_CXXFLAGS="$CXXFLAGS"
Packit 78284e
         CXXFLAGS="$CXXFLAGS $switch"
Packit 78284e
         AC_COMPILE_IFELSE([AC_LANG_SOURCE([_MM_AX_CXX_COMPILE_STDCXX_testbody_$1])],
Packit 78284e
          [eval $cachevar=yes],
Packit 78284e
          [eval $cachevar=no])
Packit 78284e
         CXXFLAGS="$ac_save_CXXFLAGS"])
Packit 78284e
      if eval test x\$$cachevar = xyes; then
Packit 78284e
        CXXFLAGS="$CXXFLAGS $switch"
Packit 78284e
        ac_success=yes
Packit 78284e
        break
Packit 78284e
      fi
Packit 78284e
    done
Packit 78284e
  fi])
Packit 78284e
  AC_LANG_POP([C++])
Packit 78284e
  if test x$ax_cxx_compile_cxx$1_required = xtrue; then
Packit 78284e
    if test x$ac_success = xno; then
Packit 78284e
      AC_MSG_ERROR([*** A compiler with support for C++$1 language features is required.])
Packit 78284e
    fi
Packit 78284e
  else
Packit 78284e
    if test x$ac_success = xno; then
Packit 78284e
      HAVE_CXX$1=0
Packit 78284e
      AC_MSG_NOTICE([No compiler with C++$1 support was found])
Packit 78284e
    else
Packit 78284e
      HAVE_CXX$1=1
Packit 78284e
      AC_DEFINE(HAVE_CXX$1,1,
Packit 78284e
                [define if the compiler supports basic C++$1 syntax])
Packit 78284e
    fi
Packit 78284e
Packit 78284e
    AC_SUBST(HAVE_CXX$1)
Packit 78284e
  fi
Packit 78284e
])
Packit 78284e
Packit 78284e
Packit 78284e
dnl  Test body for checking C++11 support
Packit 78284e
Packit 78284e
m4_define([_MM_AX_CXX_COMPILE_STDCXX_testbody_11],
Packit 78284e
  _MM_AX_CXX_COMPILE_STDCXX_testbody_new_in_11
Packit 78284e
)
Packit 78284e
Packit 78284e
Packit 78284e
dnl  Test body for checking C++14 support
Packit 78284e
Packit 78284e
m4_define([_MM_AX_CXX_COMPILE_STDCXX_testbody_14],
Packit 78284e
  _MM_AX_CXX_COMPILE_STDCXX_testbody_new_in_11
Packit 78284e
  _MM_AX_CXX_COMPILE_STDCXX_testbody_new_in_14
Packit 78284e
)
Packit 78284e
Packit 78284e
Packit 78284e
dnl  Tests for new features in C++11
Packit 78284e
Packit 78284e
m4_define([_MM_AX_CXX_COMPILE_STDCXX_testbody_new_in_11], [[
Packit 78284e
Packit 78284e
// If the compiler admits that it is not ready for C++11, why torture it?
Packit 78284e
// Hopefully, this will speed up the test.
Packit 78284e
Packit 78284e
#ifndef __cplusplus
Packit 78284e
Packit 78284e
#error "This is not a C++ compiler"
Packit 78284e
Packit 78284e
#elif __cplusplus < 201103L
Packit 78284e
Packit 78284e
#error "This is not a C++11 compiler"
Packit 78284e
Packit 78284e
#else
Packit 78284e
Packit 78284e
namespace cxx11
Packit 78284e
{
Packit 78284e
Packit 78284e
  namespace test_static_assert
Packit 78284e
  {
Packit 78284e
Packit 78284e
    template <typename T>
Packit 78284e
    struct check
Packit 78284e
    {
Packit 78284e
      static_assert(sizeof(int) <= sizeof(T), "not big enough");
Packit 78284e
    };
Packit 78284e
Packit 78284e
  }
Packit 78284e
Packit 78284e
  namespace test_final_override
Packit 78284e
  {
Packit 78284e
Packit 78284e
    struct Base
Packit 78284e
    {
Packit 78284e
      virtual void f() {}
Packit 78284e
    };
Packit 78284e
Packit 78284e
    struct Derived : public Base
Packit 78284e
    {
Packit 78284e
      virtual void f() override {}
Packit 78284e
    };
Packit 78284e
Packit 78284e
  }
Packit 78284e
Packit 78284e
  namespace test_double_right_angle_brackets
Packit 78284e
  {
Packit 78284e
Packit 78284e
    template < typename T >
Packit 78284e
    struct check {};
Packit 78284e
Packit 78284e
    typedef check<void> single_type;
Packit 78284e
    typedef check<check<void>> double_type;
Packit 78284e
    typedef check<check<check<void>>> triple_type;
Packit 78284e
    typedef check<check<check<check<void>>>> quadruple_type;
Packit 78284e
Packit 78284e
  }
Packit 78284e
Packit 78284e
  namespace test_decltype
Packit 78284e
  {
Packit 78284e
Packit 78284e
    int
Packit 78284e
    f()
Packit 78284e
    {
Packit 78284e
      int a = 1;
Packit 78284e
      decltype(a) b = 2;
Packit 78284e
      return a + b;
Packit 78284e
    }
Packit 78284e
Packit 78284e
  }
Packit 78284e
Packit 78284e
  namespace test_type_deduction
Packit 78284e
  {
Packit 78284e
Packit 78284e
    template < typename T1, typename T2 >
Packit 78284e
    struct is_same
Packit 78284e
    {
Packit 78284e
      static const bool value = false;
Packit 78284e
    };
Packit 78284e
Packit 78284e
    template < typename T >
Packit 78284e
    struct is_same<T, T>
Packit 78284e
    {
Packit 78284e
      static const bool value = true;
Packit 78284e
    };
Packit 78284e
Packit 78284e
    template < typename T1, typename T2 >
Packit 78284e
    auto
Packit 78284e
    add(T1 a1, T2 a2) -> decltype(a1 + a2)
Packit 78284e
    {
Packit 78284e
      return a1 + a2;
Packit 78284e
    }
Packit 78284e
Packit 78284e
    int
Packit 78284e
    test(const int c, volatile int v)
Packit 78284e
    {
Packit 78284e
      static_assert(is_same<int, decltype(0)>::value == true, "");
Packit 78284e
      static_assert(is_same<int, decltype(c)>::value == false, "");
Packit 78284e
      static_assert(is_same<int, decltype(v)>::value == false, "");
Packit 78284e
      auto ac = c;
Packit 78284e
      auto av = v;
Packit 78284e
      auto sumi = ac + av + 'x';
Packit 78284e
      auto sumf = ac + av + 1.0;
Packit 78284e
      static_assert(is_same<int, decltype(ac)>::value == true, "");
Packit 78284e
      static_assert(is_same<int, decltype(av)>::value == true, "");
Packit 78284e
      static_assert(is_same<int, decltype(sumi)>::value == true, "");
Packit 78284e
      static_assert(is_same<int, decltype(sumf)>::value == false, "");
Packit 78284e
      static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
Packit 78284e
      return (sumf > 0.0) ? sumi : add(c, v);
Packit 78284e
    }
Packit 78284e
Packit 78284e
  }
Packit 78284e
Packit 78284e
  namespace test_noexcept
Packit 78284e
  {
Packit 78284e
Packit 78284e
    int f() { return 0; }
Packit 78284e
    int g() noexcept { return 0; }
Packit 78284e
Packit 78284e
    static_assert(noexcept(f()) == false, "");
Packit 78284e
    static_assert(noexcept(g()) == true, "");
Packit 78284e
Packit 78284e
  }
Packit 78284e
Packit 78284e
  namespace test_constexpr
Packit 78284e
  {
Packit 78284e
Packit 78284e
    template < typename CharT >
Packit 78284e
    unsigned long constexpr
Packit 78284e
    strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
Packit 78284e
    {
Packit 78284e
      return *s ? strlen_c_r(s + 1, acc + 1) : acc;
Packit 78284e
    }
Packit 78284e
Packit 78284e
    template < typename CharT >
Packit 78284e
    unsigned long constexpr
Packit 78284e
    strlen_c(const CharT *const s) noexcept
Packit 78284e
    {
Packit 78284e
      return strlen_c_r(s, 0UL);
Packit 78284e
    }
Packit 78284e
Packit 78284e
    static_assert(strlen_c("") == 0UL, "");
Packit 78284e
    static_assert(strlen_c("1") == 1UL, "");
Packit 78284e
    static_assert(strlen_c("example") == 7UL, "");
Packit 78284e
    static_assert(strlen_c("another\0example") == 7UL, "");
Packit 78284e
Packit 78284e
  }
Packit 78284e
Packit 78284e
  namespace test_rvalue_references
Packit 78284e
  {
Packit 78284e
Packit 78284e
    template < int N >
Packit 78284e
    struct answer
Packit 78284e
    {
Packit 78284e
      static constexpr int value = N;
Packit 78284e
    };
Packit 78284e
Packit 78284e
    answer<1> f(int&)       { return answer<1>(); }
Packit 78284e
    answer<2> f(const int&) { return answer<2>(); }
Packit 78284e
    answer<3> f(int&&)      { return answer<3>(); }
Packit 78284e
Packit 78284e
    void
Packit 78284e
    test()
Packit 78284e
    {
Packit 78284e
      int i = 0;
Packit 78284e
      const int c = 0;
Packit 78284e
      static_assert(decltype(f(i))::value == 1, "");
Packit 78284e
      static_assert(decltype(f(c))::value == 2, "");
Packit 78284e
      static_assert(decltype(f(0))::value == 3, "");
Packit 78284e
    }
Packit 78284e
Packit 78284e
  }
Packit 78284e
Packit 78284e
  namespace test_uniform_initialization
Packit 78284e
  {
Packit 78284e
Packit 78284e
    struct test
Packit 78284e
    {
Packit 78284e
      static const int zero {};
Packit 78284e
      static const int one {1};
Packit 78284e
    };
Packit 78284e
Packit 78284e
    static_assert(test::zero == 0, "");
Packit 78284e
    static_assert(test::one == 1, "");
Packit 78284e
Packit 78284e
  }
Packit 78284e
Packit 78284e
  namespace test_lambdas
Packit 78284e
  {
Packit 78284e
Packit 78284e
    void
Packit 78284e
    test1()
Packit 78284e
    {
Packit 78284e
      auto lambda1 = [](){};
Packit 78284e
      auto lambda2 = lambda1;
Packit 78284e
      lambda1();
Packit 78284e
      lambda2();
Packit 78284e
    }
Packit 78284e
Packit 78284e
    int
Packit 78284e
    test2()
Packit 78284e
    {
Packit 78284e
      auto a = [](int i, int j){ return i + j; }(1, 2);
Packit 78284e
      auto b = []() -> int { return '0'; }();
Packit 78284e
      auto c = [=](){ return a + b; }();
Packit 78284e
      auto d = [&](){ return c; }();
Packit 78284e
      auto e = [a, &b](int x) mutable {
Packit 78284e
        const auto identity = [](int y){ return y; };
Packit 78284e
        for (auto i = 0; i < a; ++i)
Packit 78284e
          a += b--;
Packit 78284e
        return x + identity(a + b);
Packit 78284e
      }(0);
Packit 78284e
      return a + b + c + d + e;
Packit 78284e
    }
Packit 78284e
Packit 78284e
    int
Packit 78284e
    test3()
Packit 78284e
    {
Packit 78284e
      const auto nullary = [](){ return 0; };
Packit 78284e
      const auto unary = [](int x){ return x; };
Packit 78284e
      using nullary_t = decltype(nullary);
Packit 78284e
      using unary_t = decltype(unary);
Packit 78284e
      const auto higher1st = [](nullary_t f){ return f(); };
Packit 78284e
      const auto higher2nd = [unary](nullary_t f1){
Packit 78284e
        return [unary, f1](unary_t f2){ return f2(unary(f1())); };
Packit 78284e
      };
Packit 78284e
      return higher1st(nullary) + higher2nd(nullary)(unary);
Packit 78284e
    }
Packit 78284e
Packit 78284e
  }
Packit 78284e
Packit 78284e
  namespace test_variadic_templates
Packit 78284e
  {
Packit 78284e
Packit 78284e
    template <int...>
Packit 78284e
    struct sum;
Packit 78284e
Packit 78284e
    template <int N0, int... N1toN>
Packit 78284e
    struct sum<N0, N1toN...>
Packit 78284e
    {
Packit 78284e
      static constexpr auto value = N0 + sum<N1toN...>::value;
Packit 78284e
    };
Packit 78284e
Packit 78284e
    template <>
Packit 78284e
    struct sum<>
Packit 78284e
    {
Packit 78284e
      static constexpr auto value = 0;
Packit 78284e
    };
Packit 78284e
Packit 78284e
    static_assert(sum<>::value == 0, "");
Packit 78284e
    static_assert(sum<1>::value == 1, "");
Packit 78284e
    static_assert(sum<23>::value == 23, "");
Packit 78284e
    static_assert(sum<1, 2>::value == 3, "");
Packit 78284e
    static_assert(sum<5, 5, 11>::value == 21, "");
Packit 78284e
    static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
Packit 78284e
Packit 78284e
  }
Packit 78284e
Packit 78284e
  // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
Packit 78284e
  // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
Packit 78284e
  // because of this.
Packit 78284e
  namespace test_template_alias_sfinae
Packit 78284e
  {
Packit 78284e
Packit 78284e
    struct foo {};
Packit 78284e
Packit 78284e
    template<typename T>
Packit 78284e
    using member = typename T::member_type;
Packit 78284e
Packit 78284e
    template<typename T>
Packit 78284e
    void func(...) {}
Packit 78284e
Packit 78284e
    template<typename T>
Packit 78284e
    void func(member<T>*) {}
Packit 78284e
Packit 78284e
    void test();
Packit 78284e
Packit 78284e
    void test() { func<foo>(0); }
Packit 78284e
Packit 78284e
  }
Packit 78284e
Packit 78284e
}  // namespace cxx11
Packit 78284e
Packit 78284e
#endif  // __cplusplus >= 201103L
Packit 78284e
Packit 78284e
]])
Packit 78284e
Packit 78284e
Packit 78284e
dnl  Tests for new features in C++14
Packit 78284e
Packit 78284e
m4_define([_MM_AX_CXX_COMPILE_STDCXX_testbody_new_in_14], [[
Packit 78284e
Packit 78284e
// If the compiler admits that it is not ready for C++14, why torture it?
Packit 78284e
// Hopefully, this will speed up the test.
Packit 78284e
Packit 78284e
#ifndef __cplusplus
Packit 78284e
Packit 78284e
#error "This is not a C++ compiler"
Packit 78284e
Packit 78284e
#elif __cplusplus < 201402L
Packit 78284e
Packit 78284e
#error "This is not a C++14 compiler"
Packit 78284e
Packit 78284e
#else
Packit 78284e
Packit 78284e
namespace cxx14
Packit 78284e
{
Packit 78284e
Packit 78284e
  namespace test_polymorphic_lambdas
Packit 78284e
  {
Packit 78284e
Packit 78284e
    int
Packit 78284e
    test()
Packit 78284e
    {
Packit 78284e
      const auto lambda = [](auto&&... args){
Packit 78284e
        const auto istiny = [](auto x){
Packit 78284e
          return (sizeof(x) == 1UL) ? 1 : 0;
Packit 78284e
        };
Packit 78284e
        const int aretiny[] = { istiny(args)... };
Packit 78284e
        return aretiny[0];
Packit 78284e
      };
Packit 78284e
      return lambda(1, 1L, 1.0f, '1');
Packit 78284e
    }
Packit 78284e
Packit 78284e
  }
Packit 78284e
Packit 78284e
  namespace test_binary_literals
Packit 78284e
  {
Packit 78284e
Packit 78284e
    constexpr auto ivii = 0b0000000000101010;
Packit 78284e
    static_assert(ivii == 42, "wrong value");
Packit 78284e
Packit 78284e
  }
Packit 78284e
Packit 78284e
  namespace test_generalized_constexpr
Packit 78284e
  {
Packit 78284e
Packit 78284e
    template < typename CharT >
Packit 78284e
    constexpr unsigned long
Packit 78284e
    strlen_c(const CharT *const s) noexcept
Packit 78284e
    {
Packit 78284e
      auto length = 0UL;
Packit 78284e
      for (auto p = s; *p; ++p)
Packit 78284e
        ++length;
Packit 78284e
      return length;
Packit 78284e
    }
Packit 78284e
Packit 78284e
    static_assert(strlen_c("") == 0UL, "");
Packit 78284e
    static_assert(strlen_c("x") == 1UL, "");
Packit 78284e
    static_assert(strlen_c("test") == 4UL, "");
Packit 78284e
    static_assert(strlen_c("another\0test") == 7UL, "");
Packit 78284e
Packit 78284e
  }
Packit 78284e
Packit 78284e
  namespace test_lambda_init_capture
Packit 78284e
  {
Packit 78284e
Packit 78284e
    int
Packit 78284e
    test()
Packit 78284e
    {
Packit 78284e
      auto x = 0;
Packit 78284e
      const auto lambda1 = [a = x](int b){ return a + b; };
Packit 78284e
      const auto lambda2 = [a = lambda1(x)](){ return a; };
Packit 78284e
      return lambda2();
Packit 78284e
    }
Packit 78284e
Packit 78284e
  }
Packit 78284e
Packit 78284e
  namespace test_digit_seperators
Packit 78284e
  {
Packit 78284e
Packit 78284e
    constexpr auto ten_million = 100'000'000;
Packit 78284e
    static_assert(ten_million == 100000000, "");
Packit 78284e
Packit 78284e
  }
Packit 78284e
Packit 78284e
  namespace test_return_type_deduction
Packit 78284e
  {
Packit 78284e
Packit 78284e
    auto f(int& x) { return x; }
Packit 78284e
    decltype(auto) g(int& x) { return x; }
Packit 78284e
Packit 78284e
    template < typename T1, typename T2 >
Packit 78284e
    struct is_same
Packit 78284e
    {
Packit 78284e
      static constexpr auto value = false;
Packit 78284e
    };
Packit 78284e
Packit 78284e
    template < typename T >
Packit 78284e
    struct is_same<T, T>
Packit 78284e
    {
Packit 78284e
      static constexpr auto value = true;
Packit 78284e
    };
Packit 78284e
Packit 78284e
    int
Packit 78284e
    test()
Packit 78284e
    {
Packit 78284e
      auto x = 0;
Packit 78284e
      static_assert(is_same<int, decltype(f(x))>::value, "");
Packit 78284e
      static_assert(is_same<int&, decltype(g(x))>::value, "");
Packit 78284e
      return x;
Packit 78284e
    }
Packit 78284e
Packit 78284e
  }
Packit 78284e
Packit 78284e
}  // namespace cxx14
Packit 78284e
Packit 78284e
#endif  // __cplusplus >= 201402L
Packit 78284e
Packit 78284e
]])
Packit 78284e
Packit 78284e
Packit 78284e
#serial 20090814
Packit 78284e
Packit 78284e
AC_DEFUN([_MM_PRE_INIT], [m4_pattern_forbid([^_?MM_])])
Packit 78284e
Packit 78284e
m4_define([_MM_PREREQ],
Packit 78284e
[dnl
Packit 78284e
m4_if(m4_quote(m4_version_compare([$2], [$3])), [-1],
Packit 78284e
      [m4_fatal([$4 requires $1 $3 (version $2 is installed)])])[]dnl
Packit 78284e
])
Packit 78284e
Packit 78284e
AC_DEFUN([MM_PREREQ],
Packit 78284e
[dnl
Packit 78284e
m4_assert([$# >= 1])[]dnl
Packit 78284e
AC_REQUIRE([_MM_PRE_INIT])[]dnl
Packit 78284e
_MM_PREREQ([mm-common], [0.9.10], [$1], m4_defn([AC_PACKAGE_NAME]))[]dnl
Packit 78284e
])
Packit 78284e
Packit 78284e
Packit 78284e
#serial 20091224
Packit 78284e
Packit 78284e
m4_define([_MM_PROG_GCC_VISIBILITY_CHECK],
Packit 78284e
[dnl
Packit 78284e
AC_PROVIDE([$0])[]dnl
Packit 78284e
AC_CACHE_CHECK([for GCC symbol visibility options],
Packit 78284e
               [mm_cv_gcc_visibility_cxxflags],
Packit 78284e
[dnl
Packit 78284e
mm_save_CXXFLAGS=$CXXFLAGS
Packit 78284e
CXXFLAGS="$CXXFLAGS -fvisibility=hidden -fvisibility-inlines-hidden"
Packit 78284e
dnl
Packit 78284e
AC_LINK_IFELSE([AC_LANG_PROGRAM([[
Packit 78284e
#pragma GCC visibility push(default)
Packit 78284e
namespace Mm { void __attribute__((__visibility__("hidden"))) mmfunc(); }
Packit 78284e
void Mm::mmfunc() {}
Packit 78284e
#pragma GCC visibility pop
Packit 78284e
]], [[Mm::mmfunc();]])],
Packit 78284e
[mm_cv_gcc_visibility_cxxflags='-fvisibility=hidden -fvisibility-inlines-hidden'],
Packit 78284e
[mm_cv_gcc_visibility_cxxflags=none])
Packit 78284e
dnl
Packit 78284e
CXXFLAGS=$mm_save_CXXFLAGS])[]dnl
Packit 78284e
])
Packit 78284e
Packit 78284e
AC_DEFUN([MM_PROG_GCC_VISIBILITY],
Packit 78284e
[dnl
Packit 78284e
m4_assert([$# >= 1])[]dnl
Packit 78284e
AC_LANG_ASSERT([C++])[]dnl
Packit 78284e
AC_REQUIRE([_MM_PRE_INIT])[]dnl
Packit 78284e
AC_REQUIRE([_MM_PROG_GCC_VISIBILITY_CHECK])[]dnl
Packit 78284e
AS_IF([test "x$mm_cv_gcc_visibility_cxxflags" != xnone],
Packit 78284e
      [$1=$mm_cv_gcc_visibility_cxxflags], [$1=])
Packit 78284e
AC_SUBST([$1])[]dnl
Packit 78284e
])
Packit 78284e
Packit 78284e
m4_define([_MM_ARG_DISABLE_DEPRECATED_API_OPTION],
Packit 78284e
[dnl
Packit 78284e
AC_PROVIDE([$0])[]dnl
Packit 78284e
AC_ARG_ENABLE([deprecated-api],
Packit 78284e
              [AS_HELP_STRING([--disable-deprecated-api],
Packit 78284e
                              [omit deprecated API from the library])],
Packit 78284e
              [mm_enable_deprecated_api=$enableval],
Packit 78284e
              [mm_enable_deprecated_api=yes])[]dnl
Packit 78284e
AS_IF([test "x$mm_enable_deprecated_api" = xno],
Packit 78284e
      [AC_MSG_WARN([[Deprecated API will not be built, breaking compatibility.
Packit 78284e
Do not use this option for distribution packages.]])],
Packit 78284e
      [AC_MSG_NOTICE([[Deprecated API will be built, for backwards-compatibility.]])])
Packit 78284e
AM_CONDITIONAL([DISABLE_DEPRECATED_API], [test "x$mm_enable_deprecated_api" = xno])[]dnl
Packit 78284e
])
Packit 78284e
Packit 78284e
m4_define([_MM_ARG_DISABLE_DEPRECATED_API_DEFINE],
Packit 78284e
[m4_foreach_w([mm_prefix], [$1],
Packit 78284e
[AC_DEFINE(m4_defn([mm_prefix])[_DISABLE_DEPRECATED], [1],
Packit 78284e
           [Define to omit deprecated API from the library.])
Packit 78284e
])])
Packit 78284e
Packit 78284e
AC_DEFUN([MM_ARG_DISABLE_DEPRECATED_API],
Packit 78284e
[dnl
Packit 78284e
AC_REQUIRE([_MM_PRE_INIT])[]dnl
Packit 78284e
AC_REQUIRE([_MM_ARG_DISABLE_DEPRECATED_API_OPTION])[]dnl
Packit 78284e
AS_IF([test "x$mm_enable_deprecated_api" = xno],
Packit 78284e
      [_MM_ARG_DISABLE_DEPRECATED_API_DEFINE(
Packit 78284e
        m4_ifval([$1], [[$1]], [AS_TR_CPP(m4_defn([AC_PACKAGE_TARNAME]))]))])[]dnl
Packit 78284e
])
Packit 78284e
Packit 78284e
Packit 78284e
#serial 20110327
Packit 78284e
Packit 78284e
m4_define([_MM_CONFIG_DOCTOOL_DIR],
Packit 78284e
[dnl
Packit 78284e
AC_PROVIDE([$0])[]dnl
Packit 78284e
AC_REQUIRE([PKG_PROG_PKG_CONFIG])[]dnl
Packit 78284e
dnl
Packit 78284e
AC_MSG_CHECKING([location of documentation utilities])
Packit 78284e
AS_IF([test "x$MMDOCTOOLDIR" = x],
Packit 78284e
[
Packit 78284e
  MMDOCTOOLDIR=`$PKG_CONFIG --variable=doctooldir mm-common-util 2>&AS_MESSAGE_LOG_FD`
Packit 78284e
  AS_IF([test "[$]?" -ne 0],
Packit 78284e
        [AC_MSG_ERROR([[not found
Packit 78284e
The required module mm-common-util could not be found on this system.  If you
Packit 78284e
are running a binary distribution and the mm-common package is installed,
Packit 78284e
make sure that any separate development package for mm-common is installed
Packit 78284e
as well.  If you built mm-common yourself, it may be necessary to adjust
Packit 78284e
the PKG_CONFIG_PATH environment variable for pkg-config to find it.
Packit 78284e
]])])
Packit 78284e
])
Packit 78284e
AC_MSG_RESULT([$MMDOCTOOLDIR])[]dnl
Packit 78284e
])
Packit 78284e
Packit 78284e
AC_DEFUN([MM_CONFIG_DOCTOOL_DIR],
Packit 78284e
[dnl
Packit 78284e
AC_REQUIRE([_MM_PRE_INIT])[]dnl
Packit 78284e
AC_REQUIRE([MM_CHECK_GNU_MAKE])[]dnl
Packit 78284e
m4_ifval([$1], [MMDOCTOOLDIR='[$]{top_srcdir}/$1'], [AC_REQUIRE([_MM_CONFIG_DOCTOOL_DIR])])
Packit 78284e
AM_CONDITIONAL([DIST_DOCTOOLS], [test 'x$1' != 'x'])dnl
Packit 78284e
AC_SUBST([MMDOCTOOLDIR])[]dnl
Packit 78284e
])
Packit 78284e
Packit 78284e
m4_define([_MM_ARG_ENABLE_DOCUMENTATION],
Packit 78284e
[dnl
Packit 78284e
AC_PROVIDE([$0])[]dnl
Packit 78284e
dnl
Packit 78284e
AC_ARG_VAR([DOT], [path to dot utility])[]dnl
Packit 78284e
AC_ARG_VAR([DOXYGEN], [path to Doxygen utility])[]dnl
Packit 78284e
AC_ARG_VAR([XSLTPROC], [path to xsltproc utility])[]dnl
Packit 78284e
dnl
Packit 78284e
AC_PATH_PROG([DOT], [dot], [dot])
Packit 78284e
AC_PATH_PROG([DOXYGEN], [doxygen], [doxygen])
Packit 78284e
AC_PATH_PROG([XSLTPROC], [xsltproc], [xsltproc])
Packit 78284e
dnl
Packit 78284e
AC_ARG_ENABLE([documentation],
Packit 78284e
              [AS_HELP_STRING([--disable-documentation],
Packit 78284e
                              [do not build or install the documentation])],
Packit 78284e
              [ENABLE_DOCUMENTATION=$enableval],
Packit 78284e
              [ENABLE_DOCUMENTATION=auto])
Packit 78284e
AS_IF([test "x$ENABLE_DOCUMENTATION" != xno],
Packit 78284e
[
Packit 78284e
  mm_err=
Packit 78284e
  AS_IF([test "x$MMDOCTOOLDIR" = x], [mm_err='dnl
Packit 78284e
The mm-common-util module is available, but the installation of mm-common on this
Packit 78284e
machine is missing the shared documentation utilities of the GNOME C++
Packit 78284e
bindings.  It may be necessary to upgrade to a more recent release of
Packit 78284e
mm-common in order to build '$PACKAGE_NAME' and install the documentation.'],
Packit 78284e
        [test "x$PERL" = xperl], [mm_err='Perl is required for installing the documentation.'],
Packit 78284e
        [test "x$USE_MAINTAINER_MODE" != xno],
Packit 78284e
  [
Packit 78284e
    test "x$DOT" != xdot || mm_err=' dot'
Packit 78284e
    test "x$DOXYGEN" != xdoxygen || mm_err="$mm_err doxygen"
Packit 78284e
    test "x$XSLTPROC" != xxsltproc || mm_err="$mm_err xsltproc"
Packit 78284e
    test -z "$mm_err" || mm_err='The documentation cannot be generated because
Packit 78284e
not all of the required tools are available:'$mm_err
Packit 78284e
  ])
Packit 78284e
  AS_IF([test -z "$mm_err"], [ENABLE_DOCUMENTATION=yes],
Packit 78284e
        [test "x$ENABLE_DOCUMENTATION" = xyes], [AC_MSG_FAILURE([[$mm_err]])],
Packit 78284e
        [ENABLE_DOCUMENTATION=no; AC_MSG_WARN([[$mm_err]])])
Packit 78284e
])
Packit 78284e
AM_CONDITIONAL([ENABLE_DOCUMENTATION], [test "x$ENABLE_DOCUMENTATION" = xyes])
Packit 78284e
AC_SUBST([DOXYGEN_TAGFILES], [[]])
Packit 78284e
AC_SUBST([DOCINSTALL_FLAGS], [[]])[]dnl
Packit 78284e
])
Packit 78284e
Packit 78284e
AC_DEFUN([MM_ARG_ENABLE_DOCUMENTATION],
Packit 78284e
[dnl
Packit 78284e
AC_BEFORE([$0], [MM_ARG_WITH_TAGFILE_DOC])[]dnl
Packit 78284e
AC_REQUIRE([_MM_PRE_INIT])[]dnl
Packit 78284e
AC_REQUIRE([MM_CONFIG_DOCTOOL_DIR])[]dnl
Packit 78284e
AC_REQUIRE([MM_PATH_PERL])[]dnl
Packit 78284e
AC_REQUIRE([_MM_ARG_ENABLE_DOCUMENTATION])[]dnl
Packit 78284e
])
Packit 78284e
Packit 78284e
m4_define([_MM_TR_URI],
Packit 78284e
[dnl
Packit 78284e
[`expr "X$1" : 'X\(.*[^\\/]\)[\\/]*' 2>&]AS_MESSAGE_LOG_FD[ |]dnl
Packit 78284e
[ sed 's|[\\]|/|g;s| |%20|g;s|^/|file:///|;s|^.:/|file:///&|' 2>&]AS_MESSAGE_LOG_FD[`]dnl
Packit 78284e
])
Packit 78284e
Packit 78284e
m4_define([_MM_ARG_WITH_TAGFILE_DOC],
Packit 78284e
[dnl
Packit 78284e
  AC_MSG_CHECKING([for $1 documentation])
Packit 78284e
  AC_ARG_WITH([$1-doc],
Packit 78284e
              [AS_HELP_STRING([[--with-$1-doc=[TAGFILE@]HTMLREFDIR]],
Packit 78284e
                              [Link to external $1 documentation]m4_ifval([$4], [[ [auto]]]))],
Packit 78284e
  [
Packit 78284e
    mm_htmlrefdir=`[expr "X@$withval" : '.*@\(.*\)' 2>&]AS_MESSAGE_LOG_FD`
Packit 78284e
    mm_tagname=`[expr "X/$withval" : '[^@]*[\\/]\([^\\/@]*\)@' 2>&]AS_MESSAGE_LOG_FD`
Packit 78284e
    mm_tagpath=`[expr "X$withval" : 'X\([^@]*\)@' 2>&]AS_MESSAGE_LOG_FD`
Packit 78284e
    test "x$mm_tagname" != x || mm_tagname="$3"
Packit 78284e
    test "x$mm_tagpath" != x || mm_tagpath=$mm_tagname[]dnl
Packit 78284e
  ], [
Packit 78284e
    mm_htmlrefdir=
Packit 78284e
    mm_tagname="$3"
Packit 78284e
    mm_tagpath=$mm_tagname[]dnl
Packit 78284e
  ])
Packit 78284e
  # Prepend working direcory if the tag file path starts with ./ or ../
Packit 78284e
  AS_CASE([$mm_tagpath], [[.[\\/]*|..[\\/]*]], [mm_tagpath=`pwd`/$mm_tagpath])
Packit 78284e
Packit 78284e
m4_ifval([$4], [dnl
Packit 78284e
  # If no local directory was specified, get the default from the .pc file
Packit 78284e
  AS_IF([test "x$mm_htmlrefdir" = x],
Packit 78284e
  [
Packit 78284e
    mm_htmlrefdir=`$PKG_CONFIG --variable=htmlrefdir "$4" 2>&AS_MESSAGE_LOG_FD`dnl
Packit 78284e
  ])
Packit 78284e
  # If the user specified a Web URL, allow it to override the public location
Packit 78284e
  AS_CASE([$mm_htmlrefdir], [[http://*|https://*]], [mm_htmlrefpub=$mm_htmlrefdir],
Packit 78284e
  [
Packit 78284e
    mm_htmlrefpub=`$PKG_CONFIG --variable=htmlrefpub "$4" 2>&AS_MESSAGE_LOG_FD`
Packit 78284e
    test "x$mm_htmlrefpub" != x || mm_htmlrefpub=$mm_htmlrefdir
Packit 78284e
    test "x$mm_htmlrefdir" != x || mm_htmlrefdir=$mm_htmlrefpub
Packit 78284e
  ])
Packit 78284e
  # The user-supplied tag-file name takes precedence if it includes the path
Packit 78284e
  AS_CASE([$mm_tagpath], [[*[\\/]*]],,
Packit 78284e
  [
Packit 78284e
    mm_doxytagfile=`$PKG_CONFIG --variable=doxytagfile "$4" 2>&AS_MESSAGE_LOG_FD`
Packit 78284e
    test "x$mm_doxytagfile" = x || mm_tagpath=$mm_doxytagfile
Packit 78284e
  ])
Packit 78284e
  # Remove trailing slashes and translate to URI
Packit 78284e
  mm_htmlrefpub=_MM_TR_URI([$mm_htmlrefpub])
Packit 78284e
])[]dnl
Packit 78284e
  mm_htmlrefdir=_MM_TR_URI([$mm_htmlrefdir])
Packit 78284e
Packit 78284e
  AC_MSG_RESULT([$mm_tagpath@$mm_htmlrefdir])
Packit 78284e
Packit 78284e
  AS_IF([test "x$USE_MAINTAINER_MODE" != xno && test ! -f "$mm_tagpath"],
Packit 78284e
        [AC_MSG_WARN([Doxygen tag file $3 not found])])
Packit 78284e
  AS_IF([test "x$mm_htmlrefdir" = x],
Packit 78284e
        [AC_MSG_WARN([Location of external $1 documentation not set])],
Packit 78284e
        [AS_IF([test "x$DOCINSTALL_FLAGS" = x],
Packit 78284e
               [DOCINSTALL_FLAGS="-l '$mm_tagname@$mm_htmlrefdir/'"],
Packit 78284e
               [DOCINSTALL_FLAGS="$DOCINSTALL_FLAGS -l '$mm_tagname@$mm_htmlrefdir/'"])])
Packit 78284e
Packit 78284e
  AS_IF([test "x$mm_$2" = x], [mm_val=$mm_tagpath], [mm_val="$mm_tagpath=$mm_$2"])
Packit 78284e
  AS_IF([test "x$DOXYGEN_TAGFILES" = x],
Packit 78284e
        [DOXYGEN_TAGFILES=[\]"$mm_val[\]"],
Packit 78284e
        [DOXYGEN_TAGFILES="$DOXYGEN_TAGFILES "[\]"$mm_val[\]"])[]dnl
Packit 78284e
])
Packit 78284e
Packit 78284e
AC_DEFUN([MM_ARG_WITH_TAGFILE_DOC],
Packit 78284e
[dnl
Packit 78284e
m4_assert([$# >= 1])[]dnl
Packit 78284e
m4_ifval([$2], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])])[]dnl
Packit 78284e
AC_REQUIRE([MM_CONFIG_DOCTOOL_DIR])[]dnl
Packit 78284e
AC_REQUIRE([_MM_ARG_ENABLE_DOCUMENTATION])[]dnl
Packit 78284e
dnl
Packit 78284e
AS_IF([test "x$ENABLE_DOCUMENTATION" != xno],
Packit 78284e
      [_MM_ARG_WITH_TAGFILE_DOC(m4_quote(m4_bpatsubst([$1], [[+]*\([-+][0123456789]\|[._]\).*$])),
Packit 78284e
                                [htmlref]m4_ifval([$2], [[pub]], [[dir]]), [$1], [$2])])[]dnl
Packit 78284e
])
Packit 78284e
Packit 78284e
Packit 78284e
#serial 20091228
Packit 78284e
Packit 78284e
m4_define([_MM_INIT_MODULE_VERSION],
Packit 78284e
[dnl
Packit 78284e
m4_ifval([$3],
Packit 78284e
[AC_SUBST([$2][_MAJOR_VERSION], [$3])
Packit 78284e
AC_DEFINE([$2][_MAJOR_VERSION], [$3], [Major version number of $1.])
Packit 78284e
])[]dnl
Packit 78284e
m4_ifval([$4],
Packit 78284e
[AC_SUBST([$2][_MINOR_VERSION], [$4])
Packit 78284e
AC_DEFINE([$2][_MINOR_VERSION], [$4], [Minor version number of $1.])
Packit 78284e
])[]dnl
Packit 78284e
m4_ifval([$5],
Packit 78284e
[AC_SUBST([$2][_MICRO_VERSION], [$5])
Packit 78284e
AC_DEFINE([$2][_MICRO_VERSION], [$5], [Micro version number of $1.])
Packit 78284e
])[]dnl
Packit 78284e
])
Packit 78284e
Packit 78284e
m4_define([_MM_INIT_MODULE_SUBST],
Packit 78284e
[dnl
Packit 78284e
AC_SUBST([$5][_MODULE_NAME], ['$1'])
Packit 78284e
AC_SUBST([$5][_VERSION], ['$2'])
Packit 78284e
m4_ifval([$4],
Packit 78284e
[AC_SUBST([$5][_API_VERSION], ['$4'])
Packit 78284e
])[]dnl
Packit 78284e
_MM_INIT_MODULE_VERSION([$3], [$5], m4_bpatsubst([$2], [[^0123456789]+], [,]))[]dnl
Packit 78284e
])
Packit 78284e
Packit 78284e
m4_define([_MM_INIT_MODULE_BASENAME],
Packit 78284e
          [_MM_INIT_MODULE_SUBST([$1], [$2], [$3], [$4],
Packit 78284e
                                 m4_quote(AS_TR_CPP(m4_quote(m4_translit([$3], [+], [X])))))])
Packit 78284e
Packit 78284e
AC_DEFUN([MM_INIT_MODULE],
Packit 78284e
[dnl
Packit 78284e
m4_assert([$# >= 1])[]dnl
Packit 78284e
AC_REQUIRE([_MM_PRE_INIT])[]dnl
Packit 78284e
AC_REQUIRE([MM_CHECK_GNU_MAKE])[]dnl
Packit 78284e
_MM_INIT_MODULE_BASENAME([$1],
Packit 78284e
                 m4_quote(m4_ifval([$2], [$2], m4_defn([AC_PACKAGE_VERSION]))),
Packit 78284e
                 m4_quote(m4_bpatsubst([$1], [[-.0123456789]+$])),
Packit 78284e
                 m4_quote(m4_bregexp([$1], [-?\([.0123456789]+\)$], [\1])))[]dnl
Packit 78284e
])
Packit 78284e
Packit 78284e
Packit 78284e
#serial 20090822
Packit 78284e
Packit 78284e
m4_define([_MM_CHECK_GNU_MAKE],
Packit 78284e
[dnl
Packit 78284e
AC_PROVIDE([$0])[]dnl
Packit 78284e
AC_MSG_CHECKING([whether [$]{MAKE-make} supports GNU make features])
Packit 78284e
cat >conftest.make <<'_MMEOF'
Packit 78284e
override reverse = [$](2)[$](subst ,, )[$](1)
Packit 78284e
override result := [$](word 2,[$](call reverse,success,failure))
Packit 78284e
all: ; test '[$](result)' = success
Packit 78284e
.PHONY: all
Packit 78284e
_MMEOF
Packit 78284e
AS_IF([[$]{MAKE-make} -f conftest.make >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD],
Packit 78284e
      [mm_gnu_make=yes], [mm_gnu_make=no])
Packit 78284e
rm -f conftest.make
Packit 78284e
AC_MSG_RESULT([$mm_gnu_make])
Packit 78284e
AS_IF([test "x$mm_gnu_make" != xyes],
Packit 78284e
      [AC_MSG_FAILURE([[The GNU make program is required to build $PACKAGE_NAME.]])])[]dnl
Packit 78284e
])
Packit 78284e
Packit 78284e
AC_DEFUN([MM_CHECK_GNU_MAKE],
Packit 78284e
[dnl
Packit 78284e
AC_REQUIRE([_MM_PRE_INIT])[]dnl
Packit 78284e
AC_REQUIRE([_MM_CHECK_GNU_MAKE])[]dnl
Packit 78284e
])
Packit 78284e
Packit 78284e
m4_define([_MM_PATH_PERL],
Packit 78284e
[dnl
Packit 78284e
AC_PROVIDE([$0])[]dnl
Packit 78284e
AC_ARG_VAR([PERL], [path to Perl interpreter])[]dnl
Packit 78284e
AC_PATH_PROG([PERL], [perl], [perl])[]dnl
Packit 78284e
])
Packit 78284e
Packit 78284e
AC_DEFUN([MM_PATH_PERL],
Packit 78284e
[dnl
Packit 78284e
AC_REQUIRE([_MM_PRE_INIT])[]dnl
Packit 78284e
AC_REQUIRE([_MM_PATH_PERL])[]dnl
Packit 78284e
])
Packit 78284e
Packit 78284e
m4_define([_MM_CHECK_PERL],
Packit 78284e
[dnl
Packit 78284e
AS_IF([$PERL -e "require v$1; exit 0;" >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD],
Packit 78284e
      [$2], m4_ifval([$2$3], [[$3]],
Packit 78284e
            [[AC_MSG_FAILURE([[At least Perl ]$1[ is required to build $PACKAGE_NAME.]])]]))[]dnl
Packit 78284e
])
Packit 78284e
Packit 78284e
AC_DEFUN([MM_CHECK_PERL],
Packit 78284e
[dnl
Packit 78284e
AC_REQUIRE([_MM_PRE_INIT])[]dnl
Packit 78284e
AC_REQUIRE([_MM_PATH_PERL])[]dnl
Packit 78284e
_MM_CHECK_PERL(m4_ifval([$1], [[$1]], [[5.6.0]]), [$2], [$3])[]dnl
Packit 78284e
])
Packit 78284e
Packit 78284e
AC_DEFUN([MM_PKG_CONFIG_SUBST],
Packit 78284e
[dnl
Packit 78284e
m4_assert([$# >= 2])[]dnl
Packit 78284e
AC_REQUIRE([_MM_PRE_INIT])[]dnl
Packit 78284e
AC_REQUIRE([PKG_PROG_PKG_CONFIG])[]dnl
Packit 78284e
AC_MSG_CHECKING([for $1])
Packit 78284e
dnl
Packit 78284e
AS_IF([test -z "[$]{$1+set}"],
Packit 78284e
      [$1=`$PKG_CONFIG $2 2>&AS_MESSAGE_LOG_FD`
Packit 78284e
       AS_IF([test "[$]?" -eq 0], [$3], [$4])])
Packit 78284e
dnl
Packit 78284e
AC_MSG_RESULT([[$]$1])
Packit 78284e
AC_SUBST([$1])[]dnl
Packit 78284e
])
Packit 78284e
Packit 78284e
Packit 78284e
#serial 20091103
Packit 78284e
Packit 78284e
m4_define([_MM_ARG_ENABLE_WARNINGS_OPTION],
Packit 78284e
[dnl
Packit 78284e
AC_PROVIDE([$0])[]dnl
Packit 78284e
AC_ARG_ENABLE([warnings],
Packit 78284e
              [AS_HELP_STRING([[--enable-warnings[=min|max|fatal|no]]],
Packit 78284e
                              [set compiler pedantry level [default=min]])],
Packit 78284e
              [mm_enable_warnings=$enableval],
Packit 78284e
              [mm_enable_warnings=min])[]dnl
Packit 78284e
])
Packit 78284e
Packit 78284e
AC_DEFUN([MM_ARG_ENABLE_WARNINGS],
Packit 78284e
[dnl
Packit 78284e
m4_assert([$# >= 3])[]dnl
Packit 78284e
AC_REQUIRE([_MM_PRE_INIT])[]dnl
Packit 78284e
AC_REQUIRE([_MM_ARG_ENABLE_WARNINGS_OPTION])[]dnl
Packit 78284e
dnl
Packit 78284e
AS_CASE([$ac_compile],
Packit 78284e
        [[*'$CXXFLAGS '*]], [mm_lang='C++' mm_cc=$CXX mm_conftest="conftest.[$]{ac_ext-cc}"],
Packit 78284e
        [[*'$CFLAGS '*]],   [mm_lang=C mm_cc=$CC mm_conftest="conftest.[$]{ac_ext-c}"],
Packit 78284e
        [AC_MSG_ERROR([[current language is neither C nor C++]])])
Packit 78284e
dnl
Packit 78284e
AC_MSG_CHECKING([which $mm_lang compiler warning flags to use])
Packit 78284e
m4_ifval([$4], [mm_deprecation_flags=
Packit 78284e
])mm_tested_flags=
Packit 78284e
dnl
Packit 78284e
AS_CASE([$mm_enable_warnings],
Packit 78284e
        [no],    [mm_warning_flags=],
Packit 78284e
        [max],   [mm_warning_flags="$3"],
Packit 78284e
        [fatal], [mm_warning_flags="$3 -Werror"[]m4_ifval([$4], [
Packit 78284e
         for mm_prefix in $4
Packit 78284e
         do
Packit 78284e
           mm_deprecation_flags="$mm_deprecation_flags-D[$]{mm_prefix}_DISABLE_DEPRECATED "
Packit 78284e
         done])],
Packit 78284e
        [mm_warning_flags="$2"])
Packit 78284e
dnl
Packit 78284e
AS_IF([test "x$mm_warning_flags" != x],
Packit 78284e
[
Packit 78284e
  # Keep in mind that the dummy source must be devoid of any
Packit 78284e
  # problems that might cause diagnostics.
Packit 78284e
  AC_LANG_CONFTEST([AC_LANG_SOURCE([[
Packit 78284e
int main(int argc, char** argv) { return !argv ? 0 : argc; }
Packit 78284e
]])])
Packit 78284e
  for mm_flag in $mm_warning_flags
Packit 78284e
  do
Packit 78284e
    # Test whether the compiler accepts the flag.  Look at standard output,
Packit 78284e
    # since GCC only shows a warning message if an option is not supported.
Packit 78284e
    mm_cc_out=`$mm_cc $mm_tested_flags $mm_flag -c "$mm_conftest" 2>&1 || echo failed`
Packit 78284e
    rm -f "conftest.[$]{OBJEXT-o}"
Packit 78284e
Packit 78284e
    AS_IF([test "x$mm_cc_out" = x],
Packit 78284e
          [AS_IF([test "x$mm_tested_flags" = x],
Packit 78284e
                 [mm_tested_flags=$mm_flag],
Packit 78284e
                 [mm_tested_flags="$mm_tested_flags $mm_flag"])],
Packit 78284e
[cat <<_MMEOF >&AS_MESSAGE_LOG_FD
Packit 78284e
$mm_cc: $mm_cc_out
Packit 78284e
_MMEOF
Packit 78284e
])
Packit 78284e
  done
Packit 78284e
  rm -f "$mm_conftest"
Packit 78284e
])
Packit 78284e
mm_all_flags=m4_ifval([$4], [$mm_deprecation_flags])$mm_tested_flags
Packit 78284e
AC_SUBST([$1], [$mm_all_flags])
Packit 78284e
dnl
Packit 78284e
test "x$mm_all_flags" != x || mm_all_flags=none
Packit 78284e
AC_MSG_RESULT([$mm_all_flags])[]dnl
Packit 78284e
])
Packit 78284e
Packit 78284e
# Copyright (C) 2002-2014 Free Software Foundation, Inc.
Packit 78284e
#
Packit 78284e
# This file is free software; the Free Software Foundation
Packit 78284e
# gives unlimited permission to copy and/or distribute it,
Packit 78284e
# with or without modifications, as long as this notice is preserved.
Packit 78284e
Packit 78284e
# AM_AUTOMAKE_VERSION(VERSION)
Packit 78284e
# ----------------------------
Packit 78284e
# Automake X.Y traces this macro to ensure aclocal.m4 has been
Packit 78284e
# generated from the m4 files accompanying Automake X.Y.
Packit 78284e
# (This private macro should not be called outside this file.)
Packit 78284e
AC_DEFUN([AM_AUTOMAKE_VERSION],
Packit 78284e
[am__api_version='1.15'
Packit 78284e
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
Packit 78284e
dnl require some minimum version.  Point them to the right macro.
Packit 78284e
m4_if([$1], [1.15], [],
Packit 78284e
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
Packit 78284e
])
Packit 78284e
Packit 78284e
# _AM_AUTOCONF_VERSION(VERSION)
Packit 78284e
# -----------------------------
Packit 78284e
# aclocal traces this macro to find the Autoconf version.
Packit 78284e
# This is a private macro too.  Using m4_define simplifies
Packit 78284e
# the logic in aclocal, which can simply ignore this definition.
Packit 78284e
m4_define([_AM_AUTOCONF_VERSION], [])
Packit 78284e
Packit 78284e
# AM_SET_CURRENT_AUTOMAKE_VERSION
Packit 78284e
# -------------------------------
Packit 78284e
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
Packit 78284e
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
Packit 78284e
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
Packit 78284e
[AM_AUTOMAKE_VERSION([1.15])dnl
Packit 78284e
m4_ifndef([AC_AUTOCONF_VERSION],
Packit 78284e
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
Packit 78284e
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
Packit 78284e
Packit 78284e
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
Packit 78284e
Packit 78284e
# Copyright (C) 2001-2014 Free Software Foundation, Inc.
Packit 78284e
#
Packit 78284e
# This file is free software; the Free Software Foundation
Packit 78284e
# gives unlimited permission to copy and/or distribute it,
Packit 78284e
# with or without modifications, as long as this notice is preserved.
Packit 78284e
Packit 78284e
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
Packit 78284e
# $ac_aux_dir to '$srcdir/foo'.  In other projects, it is set to
Packit 78284e
# '$srcdir', '$srcdir/..', or '$srcdir/../..'.
Packit 78284e
#
Packit 78284e
# Of course, Automake must honor this variable whenever it calls a
Packit 78284e
# tool from the auxiliary directory.  The problem is that $srcdir (and
Packit 78284e
# therefore $ac_aux_dir as well) can be either absolute or relative,
Packit 78284e
# depending on how configure is run.  This is pretty annoying, since
Packit 78284e
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
Packit 78284e
# source directory, any form will work fine, but in subdirectories a
Packit 78284e
# relative path needs to be adjusted first.
Packit 78284e
#
Packit 78284e
# $ac_aux_dir/missing
Packit 78284e
#    fails when called from a subdirectory if $ac_aux_dir is relative
Packit 78284e
# $top_srcdir/$ac_aux_dir/missing
Packit 78284e
#    fails if $ac_aux_dir is absolute,
Packit 78284e
#    fails when called from a subdirectory in a VPATH build with
Packit 78284e
#          a relative $ac_aux_dir
Packit 78284e
#
Packit 78284e
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
Packit 78284e
# are both prefixed by $srcdir.  In an in-source build this is usually
Packit 78284e
# harmless because $srcdir is '.', but things will broke when you
Packit 78284e
# start a VPATH build or use an absolute $srcdir.
Packit 78284e
#
Packit 78284e
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
Packit 78284e
# iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
Packit 78284e
#   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
Packit 78284e
# and then we would define $MISSING as
Packit 78284e
#   MISSING="\${SHELL} $am_aux_dir/missing"
Packit 78284e
# This will work as long as MISSING is not called from configure, because
Packit 78284e
# unfortunately $(top_srcdir) has no meaning in configure.
Packit 78284e
# However there are other variables, like CC, which are often used in
Packit 78284e
# configure, and could therefore not use this "fixed" $ac_aux_dir.
Packit 78284e
#
Packit 78284e
# Another solution, used here, is to always expand $ac_aux_dir to an
Packit 78284e
# absolute PATH.  The drawback is that using absolute paths prevent a
Packit 78284e
# configured tree to be moved without reconfiguration.
Packit 78284e
Packit 78284e
AC_DEFUN([AM_AUX_DIR_EXPAND],
Packit 78284e
[AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
Packit 78284e
# Expand $ac_aux_dir to an absolute path.
Packit 78284e
am_aux_dir=`cd "$ac_aux_dir" && pwd`
Packit 78284e
])
Packit 78284e
Packit 78284e
# AM_CONDITIONAL                                            -*- Autoconf -*-
Packit 78284e
Packit 78284e
# Copyright (C) 1997-2014 Free Software Foundation, Inc.
Packit 78284e
#
Packit 78284e
# This file is free software; the Free Software Foundation
Packit 78284e
# gives unlimited permission to copy and/or distribute it,
Packit 78284e
# with or without modifications, as long as this notice is preserved.
Packit 78284e
Packit 78284e
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
Packit 78284e
# -------------------------------------
Packit 78284e
# Define a conditional.
Packit 78284e
AC_DEFUN([AM_CONDITIONAL],
Packit 78284e
[AC_PREREQ([2.52])dnl
Packit 78284e
 m4_if([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
Packit 78284e
       [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
Packit 78284e
AC_SUBST([$1_TRUE])dnl
Packit 78284e
AC_SUBST([$1_FALSE])dnl
Packit 78284e
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
Packit 78284e
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
Packit 78284e
m4_define([_AM_COND_VALUE_$1], [$2])dnl
Packit 78284e
if $2; then
Packit 78284e
  $1_TRUE=
Packit 78284e
  $1_FALSE='#'
Packit 78284e
else
Packit 78284e
  $1_TRUE='#'
Packit 78284e
  $1_FALSE=
Packit 78284e
fi
Packit 78284e
AC_CONFIG_COMMANDS_PRE(
Packit 78284e
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
Packit 78284e
  AC_MSG_ERROR([[conditional "$1" was never defined.
Packit 78284e
Usually this means the macro was only invoked conditionally.]])
Packit 78284e
fi])])
Packit 78284e
Packit 78284e
# Copyright (C) 1999-2014 Free Software Foundation, Inc.
Packit 78284e
#
Packit 78284e
# This file is free software; the Free Software Foundation
Packit 78284e
# gives unlimited permission to copy and/or distribute it,
Packit 78284e
# with or without modifications, as long as this notice is preserved.
Packit 78284e
Packit 78284e
Packit 78284e
# There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
Packit 78284e
# written in clear, in which case automake, when reading aclocal.m4,
Packit 78284e
# will think it sees a *use*, and therefore will trigger all it's
Packit 78284e
# C support machinery.  Also note that it means that autoscan, seeing
Packit 78284e
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
Packit 78284e
Packit 78284e
Packit 78284e
# _AM_DEPENDENCIES(NAME)
Packit 78284e
# ----------------------
Packit 78284e
# See how the compiler implements dependency checking.
Packit 78284e
# NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
Packit 78284e
# We try a few techniques and use that to set a single cache variable.
Packit 78284e
#
Packit 78284e
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
Packit 78284e
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
Packit 78284e
# dependency, and given that the user is not expected to run this macro,
Packit 78284e
# just rely on AC_PROG_CC.
Packit 78284e
AC_DEFUN([_AM_DEPENDENCIES],
Packit 78284e
[AC_REQUIRE([AM_SET_DEPDIR])dnl
Packit 78284e
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
Packit 78284e
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
Packit 78284e
AC_REQUIRE([AM_DEP_TRACK])dnl
Packit 78284e
Packit 78284e
m4_if([$1], [CC],   [depcc="$CC"   am_compiler_list=],
Packit 78284e
      [$1], [CXX],  [depcc="$CXX"  am_compiler_list=],
Packit 78284e
      [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
Packit 78284e
      [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
Packit 78284e
      [$1], [UPC],  [depcc="$UPC"  am_compiler_list=],
Packit 78284e
      [$1], [GCJ],  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
Packit 78284e
                    [depcc="$$1"   am_compiler_list=])
Packit 78284e
Packit 78284e
AC_CACHE_CHECK([dependency style of $depcc],
Packit 78284e
               [am_cv_$1_dependencies_compiler_type],
Packit 78284e
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
Packit 78284e
  # We make a subdir and do the tests there.  Otherwise we can end up
Packit 78284e
  # making bogus files that we don't know about and never remove.  For
Packit 78284e
  # instance it was reported that on HP-UX the gcc test will end up
Packit 78284e
  # making a dummy file named 'D' -- because '-MD' means "put the output
Packit 78284e
  # in D".
Packit 78284e
  rm -rf conftest.dir
Packit 78284e
  mkdir conftest.dir
Packit 78284e
  # Copy depcomp to subdir because otherwise we won't find it if we're
Packit 78284e
  # using a relative directory.
Packit 78284e
  cp "$am_depcomp" conftest.dir
Packit 78284e
  cd conftest.dir
Packit 78284e
  # We will build objects and dependencies in a subdirectory because
Packit 78284e
  # it helps to detect inapplicable dependency modes.  For instance
Packit 78284e
  # both Tru64's cc and ICC support -MD to output dependencies as a
Packit 78284e
  # side effect of compilation, but ICC will put the dependencies in
Packit 78284e
  # the current directory while Tru64 will put them in the object
Packit 78284e
  # directory.
Packit 78284e
  mkdir sub
Packit 78284e
Packit 78284e
  am_cv_$1_dependencies_compiler_type=none
Packit 78284e
  if test "$am_compiler_list" = ""; then
Packit 78284e
     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
Packit 78284e
  fi
Packit 78284e
  am__universal=false
Packit 78284e
  m4_case([$1], [CC],
Packit 78284e
    [case " $depcc " in #(
Packit 78284e
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
Packit 78284e
     esac],
Packit 78284e
    [CXX],
Packit 78284e
    [case " $depcc " in #(
Packit 78284e
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
Packit 78284e
     esac])
Packit 78284e
Packit 78284e
  for depmode in $am_compiler_list; do
Packit 78284e
    # Setup a source with many dependencies, because some compilers
Packit 78284e
    # like to wrap large dependency lists on column 80 (with \), and
Packit 78284e
    # we should not choose a depcomp mode which is confused by this.
Packit 78284e
    #
Packit 78284e
    # We need to recreate these files for each test, as the compiler may
Packit 78284e
    # overwrite some of them when testing with obscure command lines.
Packit 78284e
    # This happens at least with the AIX C compiler.
Packit 78284e
    : > sub/conftest.c
Packit 78284e
    for i in 1 2 3 4 5 6; do
Packit 78284e
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
Packit 78284e
      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
Packit 78284e
      # Solaris 10 /bin/sh.
Packit 78284e
      echo '/* dummy */' > sub/conftst$i.h
Packit 78284e
    done
Packit 78284e
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
Packit 78284e
Packit 78284e
    # We check with '-c' and '-o' for the sake of the "dashmstdout"
Packit 78284e
    # mode.  It turns out that the SunPro C++ compiler does not properly
Packit 78284e
    # handle '-M -o', and we need to detect this.  Also, some Intel
Packit 78284e
    # versions had trouble with output in subdirs.
Packit 78284e
    am__obj=sub/conftest.${OBJEXT-o}
Packit 78284e
    am__minus_obj="-o $am__obj"
Packit 78284e
    case $depmode in
Packit 78284e
    gcc)
Packit 78284e
      # This depmode causes a compiler race in universal mode.
Packit 78284e
      test "$am__universal" = false || continue
Packit 78284e
      ;;
Packit 78284e
    nosideeffect)
Packit 78284e
      # After this tag, mechanisms are not by side-effect, so they'll
Packit 78284e
      # only be used when explicitly requested.
Packit 78284e
      if test "x$enable_dependency_tracking" = xyes; then
Packit 78284e
	continue
Packit 78284e
      else
Packit 78284e
	break
Packit 78284e
      fi
Packit 78284e
      ;;
Packit 78284e
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
Packit 78284e
      # This compiler won't grok '-c -o', but also, the minuso test has
Packit 78284e
      # not run yet.  These depmodes are late enough in the game, and
Packit 78284e
      # so weak that their functioning should not be impacted.
Packit 78284e
      am__obj=conftest.${OBJEXT-o}
Packit 78284e
      am__minus_obj=
Packit 78284e
      ;;
Packit 78284e
    none) break ;;
Packit 78284e
    esac
Packit 78284e
    if depmode=$depmode \
Packit 78284e
       source=sub/conftest.c object=$am__obj \
Packit 78284e
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
Packit 78284e
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
Packit 78284e
         >/dev/null 2>conftest.err &&
Packit 78284e
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
Packit 78284e
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
Packit 78284e
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
Packit 78284e
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
Packit 78284e
      # icc doesn't choke on unknown options, it will just issue warnings
Packit 78284e
      # or remarks (even with -Werror).  So we grep stderr for any message
Packit 78284e
      # that says an option was ignored or not supported.
Packit 78284e
      # When given -MP, icc 7.0 and 7.1 complain thusly:
Packit 78284e
      #   icc: Command line warning: ignoring option '-M'; no argument required
Packit 78284e
      # The diagnosis changed in icc 8.0:
Packit 78284e
      #   icc: Command line remark: option '-MP' not supported
Packit 78284e
      if (grep 'ignoring option' conftest.err ||
Packit 78284e
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
Packit 78284e
        am_cv_$1_dependencies_compiler_type=$depmode
Packit 78284e
        break
Packit 78284e
      fi
Packit 78284e
    fi
Packit 78284e
  done
Packit 78284e
Packit 78284e
  cd ..
Packit 78284e
  rm -rf conftest.dir
Packit 78284e
else
Packit 78284e
  am_cv_$1_dependencies_compiler_type=none
Packit 78284e
fi
Packit 78284e
])
Packit 78284e
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
Packit 78284e
AM_CONDITIONAL([am__fastdep$1], [
Packit 78284e
  test "x$enable_dependency_tracking" != xno \
Packit 78284e
  && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
Packit 78284e
])
Packit 78284e
Packit 78284e
Packit 78284e
# AM_SET_DEPDIR
Packit 78284e
# -------------
Packit 78284e
# Choose a directory name for dependency files.
Packit 78284e
# This macro is AC_REQUIREd in _AM_DEPENDENCIES.
Packit 78284e
AC_DEFUN([AM_SET_DEPDIR],
Packit 78284e
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
Packit 78284e
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
Packit 78284e
])
Packit 78284e
Packit 78284e
Packit 78284e
# AM_DEP_TRACK
Packit 78284e
# ------------
Packit 78284e
AC_DEFUN([AM_DEP_TRACK],
Packit 78284e
[AC_ARG_ENABLE([dependency-tracking], [dnl
Packit 78284e
AS_HELP_STRING(
Packit 78284e
  [--enable-dependency-tracking],
Packit 78284e
  [do not reject slow dependency extractors])
Packit 78284e
AS_HELP_STRING(
Packit 78284e
  [--disable-dependency-tracking],
Packit 78284e
  [speeds up one-time build])])
Packit 78284e
if test "x$enable_dependency_tracking" != xno; then
Packit 78284e
  am_depcomp="$ac_aux_dir/depcomp"
Packit 78284e
  AMDEPBACKSLASH='\'
Packit 78284e
  am__nodep='_no'
Packit 78284e
fi
Packit 78284e
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
Packit 78284e
AC_SUBST([AMDEPBACKSLASH])dnl
Packit 78284e
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
Packit 78284e
AC_SUBST([am__nodep])dnl
Packit 78284e
_AM_SUBST_NOTMAKE([am__nodep])dnl
Packit 78284e
])
Packit 78284e
Packit 78284e
# Generate code to set up dependency tracking.              -*- Autoconf -*-
Packit 78284e
Packit 78284e
# Copyright (C) 1999-2014 Free Software Foundation, Inc.
Packit 78284e
#
Packit 78284e
# This file is free software; the Free Software Foundation
Packit 78284e
# gives unlimited permission to copy and/or distribute it,
Packit 78284e
# with or without modifications, as long as this notice is preserved.
Packit 78284e
Packit 78284e
Packit 78284e
# _AM_OUTPUT_DEPENDENCY_COMMANDS
Packit 78284e
# ------------------------------
Packit 78284e
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
Packit 78284e
[{
Packit 78284e
  # Older Autoconf quotes --file arguments for eval, but not when files
Packit 78284e
  # are listed without --file.  Let's play safe and only enable the eval
Packit 78284e
  # if we detect the quoting.
Packit 78284e
  case $CONFIG_FILES in
Packit 78284e
  *\'*) eval set x "$CONFIG_FILES" ;;
Packit 78284e
  *)   set x $CONFIG_FILES ;;
Packit 78284e
  esac
Packit 78284e
  shift
Packit 78284e
  for mf
Packit 78284e
  do
Packit 78284e
    # Strip MF so we end up with the name of the file.
Packit 78284e
    mf=`echo "$mf" | sed -e 's/:.*$//'`
Packit 78284e
    # Check whether this is an Automake generated Makefile or not.
Packit 78284e
    # We used to match only the files named 'Makefile.in', but
Packit 78284e
    # some people rename them; so instead we look at the file content.
Packit 78284e
    # Grep'ing the first line is not enough: some people post-process
Packit 78284e
    # each Makefile.in and add a new line on top of each file to say so.
Packit 78284e
    # Grep'ing the whole file is not good either: AIX grep has a line
Packit 78284e
    # limit of 2048, but all sed's we know have understand at least 4000.
Packit 78284e
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
Packit 78284e
      dirpart=`AS_DIRNAME("$mf")`
Packit 78284e
    else
Packit 78284e
      continue
Packit 78284e
    fi
Packit 78284e
    # Extract the definition of DEPDIR, am__include, and am__quote
Packit 78284e
    # from the Makefile without running 'make'.
Packit 78284e
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
Packit 78284e
    test -z "$DEPDIR" && continue
Packit 78284e
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
Packit 78284e
    test -z "$am__include" && continue
Packit 78284e
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
Packit 78284e
    # Find all dependency output files, they are included files with
Packit 78284e
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
Packit 78284e
    # simplest approach to changing $(DEPDIR) to its actual value in the
Packit 78284e
    # expansion.
Packit 78284e
    for file in `sed -n "
Packit 78284e
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
Packit 78284e
	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
Packit 78284e
      # Make sure the directory exists.
Packit 78284e
      test -f "$dirpart/$file" && continue
Packit 78284e
      fdir=`AS_DIRNAME(["$file"])`
Packit 78284e
      AS_MKDIR_P([$dirpart/$fdir])
Packit 78284e
      # echo "creating $dirpart/$file"
Packit 78284e
      echo '# dummy' > "$dirpart/$file"
Packit 78284e
    done
Packit 78284e
  done
Packit 78284e
}
Packit 78284e
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
Packit 78284e
Packit 78284e
Packit 78284e
# AM_OUTPUT_DEPENDENCY_COMMANDS
Packit 78284e
# -----------------------------
Packit 78284e
# This macro should only be invoked once -- use via AC_REQUIRE.
Packit 78284e
#
Packit 78284e
# This code is only required when automatic dependency tracking
Packit 78284e
# is enabled.  FIXME.  This creates each '.P' file that we will
Packit 78284e
# need in order to bootstrap the dependency handling code.
Packit 78284e
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
Packit 78284e
[AC_CONFIG_COMMANDS([depfiles],
Packit 78284e
     [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
Packit 78284e
     [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
Packit 78284e
])
Packit 78284e
Packit 78284e
# Do all the work for Automake.                             -*- Autoconf -*-
Packit 78284e
Packit 78284e
# Copyright (C) 1996-2014 Free Software Foundation, Inc.
Packit 78284e
#
Packit 78284e
# This file is free software; the Free Software Foundation
Packit 78284e
# gives unlimited permission to copy and/or distribute it,
Packit 78284e
# with or without modifications, as long as this notice is preserved.
Packit 78284e
Packit 78284e
# This macro actually does too much.  Some checks are only needed if
Packit 78284e
# your package does certain things.  But this isn't really a big deal.
Packit 78284e
Packit 78284e
dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
Packit 78284e
m4_define([AC_PROG_CC],
Packit 78284e
m4_defn([AC_PROG_CC])
Packit 78284e
[_AM_PROG_CC_C_O
Packit 78284e
])
Packit 78284e
Packit 78284e
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
Packit 78284e
# AM_INIT_AUTOMAKE([OPTIONS])
Packit 78284e
# -----------------------------------------------
Packit 78284e
# The call with PACKAGE and VERSION arguments is the old style
Packit 78284e
# call (pre autoconf-2.50), which is being phased out.  PACKAGE
Packit 78284e
# and VERSION should now be passed to AC_INIT and removed from
Packit 78284e
# the call to AM_INIT_AUTOMAKE.
Packit 78284e
# We support both call styles for the transition.  After
Packit 78284e
# the next Automake release, Autoconf can make the AC_INIT
Packit 78284e
# arguments mandatory, and then we can depend on a new Autoconf
Packit 78284e
# release and drop the old call support.
Packit 78284e
AC_DEFUN([AM_INIT_AUTOMAKE],
Packit 78284e
[AC_PREREQ([2.65])dnl
Packit 78284e
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
Packit 78284e
dnl the ones we care about.
Packit 78284e
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
Packit 78284e
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
Packit 78284e
AC_REQUIRE([AC_PROG_INSTALL])dnl
Packit 78284e
if test "`cd $srcdir && pwd`" != "`pwd`"; then
Packit 78284e
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
Packit 78284e
  # is not polluted with repeated "-I."
Packit 78284e
  AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
Packit 78284e
  # test to see if srcdir already configured
Packit 78284e
  if test -f $srcdir/config.status; then
Packit 78284e
    AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
Packit 78284e
  fi
Packit 78284e
fi
Packit 78284e
Packit 78284e
# test whether we have cygpath
Packit 78284e
if test -z "$CYGPATH_W"; then
Packit 78284e
  if (cygpath --version) >/dev/null 2>/dev/null; then
Packit 78284e
    CYGPATH_W='cygpath -w'
Packit 78284e
  else
Packit 78284e
    CYGPATH_W=echo
Packit 78284e
  fi
Packit 78284e
fi
Packit 78284e
AC_SUBST([CYGPATH_W])
Packit 78284e
Packit 78284e
# Define the identity of the package.
Packit 78284e
dnl Distinguish between old-style and new-style calls.
Packit 78284e
m4_ifval([$2],
Packit 78284e
[AC_DIAGNOSE([obsolete],
Packit 78284e
             [$0: two- and three-arguments forms are deprecated.])
Packit 78284e
m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
Packit 78284e
 AC_SUBST([PACKAGE], [$1])dnl
Packit 78284e
 AC_SUBST([VERSION], [$2])],
Packit 78284e
[_AM_SET_OPTIONS([$1])dnl
Packit 78284e
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
Packit 78284e
m4_if(
Packit 78284e
  m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
Packit 78284e
  [ok:ok],,
Packit 78284e
  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
Packit 78284e
 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
Packit 78284e
 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
Packit 78284e
Packit 78284e
_AM_IF_OPTION([no-define],,
Packit 78284e
[AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
Packit 78284e
 AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
Packit 78284e
Packit 78284e
# Some tools Automake needs.
Packit 78284e
AC_REQUIRE([AM_SANITY_CHECK])dnl
Packit 78284e
AC_REQUIRE([AC_ARG_PROGRAM])dnl
Packit 78284e
AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
Packit 78284e
AM_MISSING_PROG([AUTOCONF], [autoconf])
Packit 78284e
AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
Packit 78284e
AM_MISSING_PROG([AUTOHEADER], [autoheader])
Packit 78284e
AM_MISSING_PROG([MAKEINFO], [makeinfo])
Packit 78284e
AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
Packit 78284e
AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
Packit 78284e
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
Packit 78284e
# For better backward compatibility.  To be removed once Automake 1.9.x
Packit 78284e
# dies out for good.  For more background, see:
Packit 78284e
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
Packit 78284e
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
Packit 78284e
AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
Packit 78284e
# We need awk for the "check" target (and possibly the TAP driver).  The
Packit 78284e
# system "awk" is bad on some platforms.
Packit 78284e
AC_REQUIRE([AC_PROG_AWK])dnl
Packit 78284e
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
Packit 78284e
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
Packit 78284e
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
Packit 78284e
	      [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
Packit 78284e
			     [_AM_PROG_TAR([v7])])])
Packit 78284e
_AM_IF_OPTION([no-dependencies],,
Packit 78284e
[AC_PROVIDE_IFELSE([AC_PROG_CC],
Packit 78284e
		  [_AM_DEPENDENCIES([CC])],
Packit 78284e
		  [m4_define([AC_PROG_CC],
Packit 78284e
			     m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
Packit 78284e
AC_PROVIDE_IFELSE([AC_PROG_CXX],
Packit 78284e
		  [_AM_DEPENDENCIES([CXX])],
Packit 78284e
		  [m4_define([AC_PROG_CXX],
Packit 78284e
			     m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
Packit 78284e
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
Packit 78284e
		  [_AM_DEPENDENCIES([OBJC])],
Packit 78284e
		  [m4_define([AC_PROG_OBJC],
Packit 78284e
			     m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
Packit 78284e
AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
Packit 78284e
		  [_AM_DEPENDENCIES([OBJCXX])],
Packit 78284e
		  [m4_define([AC_PROG_OBJCXX],
Packit 78284e
			     m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
Packit 78284e
])
Packit 78284e
AC_REQUIRE([AM_SILENT_RULES])dnl
Packit 78284e
dnl The testsuite driver may need to know about EXEEXT, so add the
Packit 78284e
dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This
Packit 78284e
dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
Packit 78284e
AC_CONFIG_COMMANDS_PRE(dnl
Packit 78284e
[m4_provide_if([_AM_COMPILER_EXEEXT],
Packit 78284e
  [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
Packit 78284e
Packit 78284e
# POSIX will say in a future version that running "rm -f" with no argument
Packit 78284e
# is OK; and we want to be able to make that assumption in our Makefile
Packit 78284e
# recipes.  So use an aggressive probe to check that the usage we want is
Packit 78284e
# actually supported "in the wild" to an acceptable degree.
Packit 78284e
# See automake bug#10828.
Packit 78284e
# To make any issue more visible, cause the running configure to be aborted
Packit 78284e
# by default if the 'rm' program in use doesn't match our expectations; the
Packit 78284e
# user can still override this though.
Packit 78284e
if rm -f && rm -fr && rm -rf; then : OK; else
Packit 78284e
  cat >&2 <<'END'
Packit 78284e
Oops!
Packit 78284e
Packit 78284e
Your 'rm' program seems unable to run without file operands specified
Packit 78284e
on the command line, even when the '-f' option is present.  This is contrary
Packit 78284e
to the behaviour of most rm programs out there, and not conforming with
Packit 78284e
the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
Packit 78284e
Packit 78284e
Please tell bug-automake@gnu.org about your system, including the value
Packit 78284e
of your $PATH and any error possibly output before this message.  This
Packit 78284e
can help us improve future automake versions.
Packit 78284e
Packit 78284e
END
Packit 78284e
  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
Packit 78284e
    echo 'Configuration will proceed anyway, since you have set the' >&2
Packit 78284e
    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
Packit 78284e
    echo >&2
Packit 78284e
  else
Packit 78284e
    cat >&2 <<'END'
Packit 78284e
Aborting the configuration process, to ensure you take notice of the issue.
Packit 78284e
Packit 78284e
You can download and install GNU coreutils to get an 'rm' implementation
Packit 78284e
that behaves properly: <http://www.gnu.org/software/coreutils/>.
Packit 78284e
Packit 78284e
If you want to complete the configuration process using your problematic
Packit 78284e
'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
Packit 78284e
to "yes", and re-run configure.
Packit 78284e
Packit 78284e
END
Packit 78284e
    AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
Packit 78284e
  fi
Packit 78284e
fi
Packit 78284e
dnl The trailing newline in this macro's definition is deliberate, for
Packit 78284e
dnl backward compatibility and to allow trailing 'dnl'-style comments
Packit 78284e
dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841.
Packit 78284e
])
Packit 78284e
Packit 78284e
dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
Packit 78284e
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
Packit 78284e
dnl mangled by Autoconf and run in a shell conditional statement.
Packit 78284e
m4_define([_AC_COMPILER_EXEEXT],
Packit 78284e
m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
Packit 78284e
Packit 78284e
# When config.status generates a header, we must update the stamp-h file.
Packit 78284e
# This file resides in the same directory as the config header
Packit 78284e
# that is generated.  The stamp files are numbered to have different names.
Packit 78284e
Packit 78284e
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
Packit 78284e
# loop where config.status creates the headers, so we can generate
Packit 78284e
# our stamp files there.
Packit 78284e
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
Packit 78284e
[# Compute $1's index in $config_headers.
Packit 78284e
_am_arg=$1
Packit 78284e
_am_stamp_count=1
Packit 78284e
for _am_header in $config_headers :; do
Packit 78284e
  case $_am_header in
Packit 78284e
    $_am_arg | $_am_arg:* )
Packit 78284e
      break ;;
Packit 78284e
    * )
Packit 78284e
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
Packit 78284e
  esac
Packit 78284e
done
Packit 78284e
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
Packit 78284e
Packit 78284e
# Copyright (C) 2001-2014 Free Software Foundation, Inc.
Packit 78284e
#
Packit 78284e
# This file is free software; the Free Software Foundation
Packit 78284e
# gives unlimited permission to copy and/or distribute it,
Packit 78284e
# with or without modifications, as long as this notice is preserved.
Packit 78284e
Packit 78284e
# AM_PROG_INSTALL_SH
Packit 78284e
# ------------------
Packit 78284e
# Define $install_sh.
Packit 78284e
AC_DEFUN([AM_PROG_INSTALL_SH],
Packit 78284e
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
Packit 78284e
if test x"${install_sh+set}" != xset; then
Packit 78284e
  case $am_aux_dir in
Packit 78284e
  *\ * | *\	*)
Packit 78284e
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
Packit 78284e
  *)
Packit 78284e
    install_sh="\${SHELL} $am_aux_dir/install-sh"
Packit 78284e
  esac
Packit 78284e
fi
Packit 78284e
AC_SUBST([install_sh])])
Packit 78284e
Packit 78284e
# Copyright (C) 2003-2014 Free Software Foundation, Inc.
Packit 78284e
#
Packit 78284e
# This file is free software; the Free Software Foundation
Packit 78284e
# gives unlimited permission to copy and/or distribute it,
Packit 78284e
# with or without modifications, as long as this notice is preserved.
Packit 78284e
Packit 78284e
# Check whether the underlying file-system supports filenames
Packit 78284e
# with a leading dot.  For instance MS-DOS doesn't.
Packit 78284e
AC_DEFUN([AM_SET_LEADING_DOT],
Packit 78284e
[rm -rf .tst 2>/dev/null
Packit 78284e
mkdir .tst 2>/dev/null
Packit 78284e
if test -d .tst; then
Packit 78284e
  am__leading_dot=.
Packit 78284e
else
Packit 78284e
  am__leading_dot=_
Packit 78284e
fi
Packit 78284e
rmdir .tst 2>/dev/null
Packit 78284e
AC_SUBST([am__leading_dot])])
Packit 78284e
Packit 78284e
# Add --enable-maintainer-mode option to configure.         -*- Autoconf -*-
Packit 78284e
# From Jim Meyering
Packit 78284e
Packit 78284e
# Copyright (C) 1996-2014 Free Software Foundation, Inc.
Packit 78284e
#
Packit 78284e
# This file is free software; the Free Software Foundation
Packit 78284e
# gives unlimited permission to copy and/or distribute it,
Packit 78284e
# with or without modifications, as long as this notice is preserved.
Packit 78284e
Packit 78284e
# AM_MAINTAINER_MODE([DEFAULT-MODE])
Packit 78284e
# ----------------------------------
Packit 78284e
# Control maintainer-specific portions of Makefiles.
Packit 78284e
# Default is to disable them, unless 'enable' is passed literally.
Packit 78284e
# For symmetry, 'disable' may be passed as well.  Anyway, the user
Packit 78284e
# can override the default with the --enable/--disable switch.
Packit 78284e
AC_DEFUN([AM_MAINTAINER_MODE],
Packit 78284e
[m4_case(m4_default([$1], [disable]),
Packit 78284e
       [enable], [m4_define([am_maintainer_other], [disable])],
Packit 78284e
       [disable], [m4_define([am_maintainer_other], [enable])],
Packit 78284e
       [m4_define([am_maintainer_other], [enable])
Packit 78284e
        m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
Packit 78284e
AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
Packit 78284e
  dnl maintainer-mode's default is 'disable' unless 'enable' is passed
Packit 78284e
  AC_ARG_ENABLE([maintainer-mode],
Packit 78284e
    [AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode],
Packit 78284e
      am_maintainer_other[ make rules and dependencies not useful
Packit 78284e
      (and sometimes confusing) to the casual installer])],
Packit 78284e
    [USE_MAINTAINER_MODE=$enableval],
Packit 78284e
    [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
Packit 78284e
  AC_MSG_RESULT([$USE_MAINTAINER_MODE])
Packit 78284e
  AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
Packit 78284e
  MAINT=$MAINTAINER_MODE_TRUE
Packit 78284e
  AC_SUBST([MAINT])dnl
Packit 78284e
]
Packit 78284e
)
Packit 78284e
Packit 78284e
# Check to see how 'make' treats includes.	            -*- Autoconf -*-
Packit 78284e
Packit 78284e
# Copyright (C) 2001-2014 Free Software Foundation, Inc.
Packit 78284e
#
Packit 78284e
# This file is free software; the Free Software Foundation
Packit 78284e
# gives unlimited permission to copy and/or distribute it,
Packit 78284e
# with or without modifications, as long as this notice is preserved.
Packit 78284e
Packit 78284e
# AM_MAKE_INCLUDE()
Packit 78284e
# -----------------
Packit 78284e
# Check to see how make treats includes.
Packit 78284e
AC_DEFUN([AM_MAKE_INCLUDE],
Packit 78284e
[am_make=${MAKE-make}
Packit 78284e
cat > confinc << 'END'
Packit 78284e
am__doit:
Packit 78284e
	@echo this is the am__doit target
Packit 78284e
.PHONY: am__doit
Packit 78284e
END
Packit 78284e
# If we don't find an include directive, just comment out the code.
Packit 78284e
AC_MSG_CHECKING([for style of include used by $am_make])
Packit 78284e
am__include="#"
Packit 78284e
am__quote=
Packit 78284e
_am_result=none
Packit 78284e
# First try GNU make style include.
Packit 78284e
echo "include confinc" > confmf
Packit 78284e
# Ignore all kinds of additional output from 'make'.
Packit 78284e
case `$am_make -s -f confmf 2> /dev/null` in #(
Packit 78284e
*the\ am__doit\ target*)
Packit 78284e
  am__include=include
Packit 78284e
  am__quote=
Packit 78284e
  _am_result=GNU
Packit 78284e
  ;;
Packit 78284e
esac
Packit 78284e
# Now try BSD make style include.
Packit 78284e
if test "$am__include" = "#"; then
Packit 78284e
   echo '.include "confinc"' > confmf
Packit 78284e
   case `$am_make -s -f confmf 2> /dev/null` in #(
Packit 78284e
   *the\ am__doit\ target*)
Packit 78284e
     am__include=.include
Packit 78284e
     am__quote="\""
Packit 78284e
     _am_result=BSD
Packit 78284e
     ;;
Packit 78284e
   esac
Packit 78284e
fi
Packit 78284e
AC_SUBST([am__include])
Packit 78284e
AC_SUBST([am__quote])
Packit 78284e
AC_MSG_RESULT([$_am_result])
Packit 78284e
rm -f confinc confmf
Packit 78284e
])
Packit 78284e
Packit 78284e
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
Packit 78284e
Packit 78284e
# Copyright (C) 1997-2014 Free Software Foundation, Inc.
Packit 78284e
#
Packit 78284e
# This file is free software; the Free Software Foundation
Packit 78284e
# gives unlimited permission to copy and/or distribute it,
Packit 78284e
# with or without modifications, as long as this notice is preserved.
Packit 78284e
Packit 78284e
# AM_MISSING_PROG(NAME, PROGRAM)
Packit 78284e
# ------------------------------
Packit 78284e
AC_DEFUN([AM_MISSING_PROG],
Packit 78284e
[AC_REQUIRE([AM_MISSING_HAS_RUN])
Packit 78284e
$1=${$1-"${am_missing_run}$2"}
Packit 78284e
AC_SUBST($1)])
Packit 78284e
Packit 78284e
# AM_MISSING_HAS_RUN
Packit 78284e
# ------------------
Packit 78284e
# Define MISSING if not defined so far and test if it is modern enough.
Packit 78284e
# If it is, set am_missing_run to use it, otherwise, to nothing.
Packit 78284e
AC_DEFUN([AM_MISSING_HAS_RUN],
Packit 78284e
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
Packit 78284e
AC_REQUIRE_AUX_FILE([missing])dnl
Packit 78284e
if test x"${MISSING+set}" != xset; then
Packit 78284e
  case $am_aux_dir in
Packit 78284e
  *\ * | *\	*)
Packit 78284e
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
Packit 78284e
  *)
Packit 78284e
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
Packit 78284e
  esac
Packit 78284e
fi
Packit 78284e
# Use eval to expand $SHELL
Packit 78284e
if eval "$MISSING --is-lightweight"; then
Packit 78284e
  am_missing_run="$MISSING "
Packit 78284e
else
Packit 78284e
  am_missing_run=
Packit 78284e
  AC_MSG_WARN(['missing' script is too old or missing])
Packit 78284e
fi
Packit 78284e
])
Packit 78284e
Packit 78284e
# Helper functions for option handling.                     -*- Autoconf -*-
Packit 78284e
Packit 78284e
# Copyright (C) 2001-2014 Free Software Foundation, Inc.
Packit 78284e
#
Packit 78284e
# This file is free software; the Free Software Foundation
Packit 78284e
# gives unlimited permission to copy and/or distribute it,
Packit 78284e
# with or without modifications, as long as this notice is preserved.
Packit 78284e
Packit 78284e
# _AM_MANGLE_OPTION(NAME)
Packit 78284e
# -----------------------
Packit 78284e
AC_DEFUN([_AM_MANGLE_OPTION],
Packit 78284e
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
Packit 78284e
Packit 78284e
# _AM_SET_OPTION(NAME)
Packit 78284e
# --------------------
Packit 78284e
# Set option NAME.  Presently that only means defining a flag for this option.
Packit 78284e
AC_DEFUN([_AM_SET_OPTION],
Packit 78284e
[m4_define(_AM_MANGLE_OPTION([$1]), [1])])
Packit 78284e
Packit 78284e
# _AM_SET_OPTIONS(OPTIONS)
Packit 78284e
# ------------------------
Packit 78284e
# OPTIONS is a space-separated list of Automake options.
Packit 78284e
AC_DEFUN([_AM_SET_OPTIONS],
Packit 78284e
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
Packit 78284e
Packit 78284e
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
Packit 78284e
# -------------------------------------------
Packit 78284e
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
Packit 78284e
AC_DEFUN([_AM_IF_OPTION],
Packit 78284e
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
Packit 78284e
Packit 78284e
# Copyright (C) 1999-2014 Free Software Foundation, Inc.
Packit 78284e
#
Packit 78284e
# This file is free software; the Free Software Foundation
Packit 78284e
# gives unlimited permission to copy and/or distribute it,
Packit 78284e
# with or without modifications, as long as this notice is preserved.
Packit 78284e
Packit 78284e
# _AM_PROG_CC_C_O
Packit 78284e
# ---------------
Packit 78284e
# Like AC_PROG_CC_C_O, but changed for automake.  We rewrite AC_PROG_CC
Packit 78284e
# to automatically call this.
Packit 78284e
AC_DEFUN([_AM_PROG_CC_C_O],
Packit 78284e
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
Packit 78284e
AC_REQUIRE_AUX_FILE([compile])dnl
Packit 78284e
AC_LANG_PUSH([C])dnl
Packit 78284e
AC_CACHE_CHECK(
Packit 78284e
  [whether $CC understands -c and -o together],
Packit 78284e
  [am_cv_prog_cc_c_o],
Packit 78284e
  [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
Packit 78284e
  # Make sure it works both with $CC and with simple cc.
Packit 78284e
  # Following AC_PROG_CC_C_O, we do the test twice because some
Packit 78284e
  # compilers refuse to overwrite an existing .o file with -o,
Packit 78284e
  # though they will create one.
Packit 78284e
  am_cv_prog_cc_c_o=yes
Packit 78284e
  for am_i in 1 2; do
Packit 78284e
    if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
Packit 78284e
         && test -f conftest2.$ac_objext; then
Packit 78284e
      : OK
Packit 78284e
    else
Packit 78284e
      am_cv_prog_cc_c_o=no
Packit 78284e
      break
Packit 78284e
    fi
Packit 78284e
  done
Packit 78284e
  rm -f core conftest*
Packit 78284e
  unset am_i])
Packit 78284e
if test "$am_cv_prog_cc_c_o" != yes; then
Packit 78284e
   # Losing compiler, so override with the script.
Packit 78284e
   # FIXME: It is wrong to rewrite CC.
Packit 78284e
   # But if we don't then we get into trouble of one sort or another.
Packit 78284e
   # A longer-term fix would be to have automake use am__CC in this case,
Packit 78284e
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
Packit 78284e
   CC="$am_aux_dir/compile $CC"
Packit 78284e
fi
Packit 78284e
AC_LANG_POP([C])])
Packit 78284e
Packit 78284e
# For backward compatibility.
Packit 78284e
AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
Packit 78284e
Packit 78284e
# Copyright (C) 2001-2014 Free Software Foundation, Inc.
Packit 78284e
#
Packit 78284e
# This file is free software; the Free Software Foundation
Packit 78284e
# gives unlimited permission to copy and/or distribute it,
Packit 78284e
# with or without modifications, as long as this notice is preserved.
Packit 78284e
Packit 78284e
# AM_RUN_LOG(COMMAND)
Packit 78284e
# -------------------
Packit 78284e
# Run COMMAND, save the exit status in ac_status, and log it.
Packit 78284e
# (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
Packit 78284e
AC_DEFUN([AM_RUN_LOG],
Packit 78284e
[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
Packit 78284e
   ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
Packit 78284e
   ac_status=$?
Packit 78284e
   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
Packit 78284e
   (exit $ac_status); }])
Packit 78284e
Packit 78284e
# Check to make sure that the build environment is sane.    -*- Autoconf -*-
Packit 78284e
Packit 78284e
# Copyright (C) 1996-2014 Free Software Foundation, Inc.
Packit 78284e
#
Packit 78284e
# This file is free software; the Free Software Foundation
Packit 78284e
# gives unlimited permission to copy and/or distribute it,
Packit 78284e
# with or without modifications, as long as this notice is preserved.
Packit 78284e
Packit 78284e
# AM_SANITY_CHECK
Packit 78284e
# ---------------
Packit 78284e
AC_DEFUN([AM_SANITY_CHECK],
Packit 78284e
[AC_MSG_CHECKING([whether build environment is sane])
Packit 78284e
# Reject unsafe characters in $srcdir or the absolute working directory
Packit 78284e
# name.  Accept space and tab only in the latter.
Packit 78284e
am_lf='
Packit 78284e
'
Packit 78284e
case `pwd` in
Packit 78284e
  *[[\\\"\#\$\&\'\`$am_lf]]*)
Packit 78284e
    AC_MSG_ERROR([unsafe absolute working directory name]);;
Packit 78284e
esac
Packit 78284e
case $srcdir in
Packit 78284e
  *[[\\\"\#\$\&\'\`$am_lf\ \	]]*)
Packit 78284e
    AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
Packit 78284e
esac
Packit 78284e
Packit 78284e
# Do 'set' in a subshell so we don't clobber the current shell's
Packit 78284e
# arguments.  Must try -L first in case configure is actually a
Packit 78284e
# symlink; some systems play weird games with the mod time of symlinks
Packit 78284e
# (eg FreeBSD returns the mod time of the symlink's containing
Packit 78284e
# directory).
Packit 78284e
if (
Packit 78284e
   am_has_slept=no
Packit 78284e
   for am_try in 1 2; do
Packit 78284e
     echo "timestamp, slept: $am_has_slept" > conftest.file
Packit 78284e
     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
Packit 78284e
     if test "$[*]" = "X"; then
Packit 78284e
	# -L didn't work.
Packit 78284e
	set X `ls -t "$srcdir/configure" conftest.file`
Packit 78284e
     fi
Packit 78284e
     if test "$[*]" != "X $srcdir/configure conftest.file" \
Packit 78284e
	&& test "$[*]" != "X conftest.file $srcdir/configure"; then
Packit 78284e
Packit 78284e
	# If neither matched, then we have a broken ls.  This can happen
Packit 78284e
	# if, for instance, CONFIG_SHELL is bash and it inherits a
Packit 78284e
	# broken ls alias from the environment.  This has actually
Packit 78284e
	# happened.  Such a system could not be considered "sane".
Packit 78284e
	AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
Packit 78284e
  alias in your environment])
Packit 78284e
     fi
Packit 78284e
     if test "$[2]" = conftest.file || test $am_try -eq 2; then
Packit 78284e
       break
Packit 78284e
     fi
Packit 78284e
     # Just in case.
Packit 78284e
     sleep 1
Packit 78284e
     am_has_slept=yes
Packit 78284e
   done
Packit 78284e
   test "$[2]" = conftest.file
Packit 78284e
   )
Packit 78284e
then
Packit 78284e
   # Ok.
Packit 78284e
   :
Packit 78284e
else
Packit 78284e
   AC_MSG_ERROR([newly created file is older than distributed files!
Packit 78284e
Check your system clock])
Packit 78284e
fi
Packit 78284e
AC_MSG_RESULT([yes])
Packit 78284e
# If we didn't sleep, we still need to ensure time stamps of config.status and
Packit 78284e
# generated files are strictly newer.
Packit 78284e
am_sleep_pid=
Packit 78284e
if grep 'slept: no' conftest.file >/dev/null 2>&1; then
Packit 78284e
  ( sleep 1 ) &
Packit 78284e
  am_sleep_pid=$!
Packit 78284e
fi
Packit 78284e
AC_CONFIG_COMMANDS_PRE(
Packit 78284e
  [AC_MSG_CHECKING([that generated files are newer than configure])
Packit 78284e
   if test -n "$am_sleep_pid"; then
Packit 78284e
     # Hide warnings about reused PIDs.
Packit 78284e
     wait $am_sleep_pid 2>/dev/null
Packit 78284e
   fi
Packit 78284e
   AC_MSG_RESULT([done])])
Packit 78284e
rm -f conftest.file
Packit 78284e
])
Packit 78284e
Packit 78284e
# Copyright (C) 2009-2014 Free Software Foundation, Inc.
Packit 78284e
#
Packit 78284e
# This file is free software; the Free Software Foundation
Packit 78284e
# gives unlimited permission to copy and/or distribute it,
Packit 78284e
# with or without modifications, as long as this notice is preserved.
Packit 78284e
Packit 78284e
# AM_SILENT_RULES([DEFAULT])
Packit 78284e
# --------------------------
Packit 78284e
# Enable less verbose build rules; with the default set to DEFAULT
Packit 78284e
# ("yes" being less verbose, "no" or empty being verbose).
Packit 78284e
AC_DEFUN([AM_SILENT_RULES],
Packit 78284e
[AC_ARG_ENABLE([silent-rules], [dnl
Packit 78284e
AS_HELP_STRING(
Packit 78284e
  [--enable-silent-rules],
Packit 78284e
  [less verbose build output (undo: "make V=1")])
Packit 78284e
AS_HELP_STRING(
Packit 78284e
  [--disable-silent-rules],
Packit 78284e
  [verbose build output (undo: "make V=0")])dnl
Packit 78284e
])
Packit 78284e
case $enable_silent_rules in @%:@ (((
Packit 78284e
  yes) AM_DEFAULT_VERBOSITY=0;;
Packit 78284e
   no) AM_DEFAULT_VERBOSITY=1;;
Packit 78284e
    *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
Packit 78284e
esac
Packit 78284e
dnl
Packit 78284e
dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
Packit 78284e
dnl do not support nested variable expansions.
Packit 78284e
dnl See automake bug#9928 and bug#10237.
Packit 78284e
am_make=${MAKE-make}
Packit 78284e
AC_CACHE_CHECK([whether $am_make supports nested variables],
Packit 78284e
   [am_cv_make_support_nested_variables],
Packit 78284e
   [if AS_ECHO([['TRUE=$(BAR$(V))
Packit 78284e
BAR0=false
Packit 78284e
BAR1=true
Packit 78284e
V=1
Packit 78284e
am__doit:
Packit 78284e
	@$(TRUE)
Packit 78284e
.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
Packit 78284e
  am_cv_make_support_nested_variables=yes
Packit 78284e
else
Packit 78284e
  am_cv_make_support_nested_variables=no
Packit 78284e
fi])
Packit 78284e
if test $am_cv_make_support_nested_variables = yes; then
Packit 78284e
  dnl Using '$V' instead of '$(V)' breaks IRIX make.
Packit 78284e
  AM_V='$(V)'
Packit 78284e
  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
Packit 78284e
else
Packit 78284e
  AM_V=$AM_DEFAULT_VERBOSITY
Packit 78284e
  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
Packit 78284e
fi
Packit 78284e
AC_SUBST([AM_V])dnl
Packit 78284e
AM_SUBST_NOTMAKE([AM_V])dnl
Packit 78284e
AC_SUBST([AM_DEFAULT_V])dnl
Packit 78284e
AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
Packit 78284e
AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
Packit 78284e
AM_BACKSLASH='\'
Packit 78284e
AC_SUBST([AM_BACKSLASH])dnl
Packit 78284e
_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
Packit 78284e
])
Packit 78284e
Packit 78284e
# Copyright (C) 2001-2014 Free Software Foundation, Inc.
Packit 78284e
#
Packit 78284e
# This file is free software; the Free Software Foundation
Packit 78284e
# gives unlimited permission to copy and/or distribute it,
Packit 78284e
# with or without modifications, as long as this notice is preserved.
Packit 78284e
Packit 78284e
# AM_PROG_INSTALL_STRIP
Packit 78284e
# ---------------------
Packit 78284e
# One issue with vendor 'install' (even GNU) is that you can't
Packit 78284e
# specify the program used to strip binaries.  This is especially
Packit 78284e
# annoying in cross-compiling environments, where the build's strip
Packit 78284e
# is unlikely to handle the host's binaries.
Packit 78284e
# Fortunately install-sh will honor a STRIPPROG variable, so we
Packit 78284e
# always use install-sh in "make install-strip", and initialize
Packit 78284e
# STRIPPROG with the value of the STRIP variable (set by the user).
Packit 78284e
AC_DEFUN([AM_PROG_INSTALL_STRIP],
Packit 78284e
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
Packit 78284e
# Installed binaries are usually stripped using 'strip' when the user
Packit 78284e
# run "make install-strip".  However 'strip' might not be the right
Packit 78284e
# tool to use in cross-compilation environments, therefore Automake
Packit 78284e
# will honor the 'STRIP' environment variable to overrule this program.
Packit 78284e
dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
Packit 78284e
if test "$cross_compiling" != no; then
Packit 78284e
  AC_CHECK_TOOL([STRIP], [strip], :)
Packit 78284e
fi
Packit 78284e
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
Packit 78284e
AC_SUBST([INSTALL_STRIP_PROGRAM])])
Packit 78284e
Packit 78284e
# Copyright (C) 2006-2014 Free Software Foundation, Inc.
Packit 78284e
#
Packit 78284e
# This file is free software; the Free Software Foundation
Packit 78284e
# gives unlimited permission to copy and/or distribute it,
Packit 78284e
# with or without modifications, as long as this notice is preserved.
Packit 78284e
Packit 78284e
# _AM_SUBST_NOTMAKE(VARIABLE)
Packit 78284e
# ---------------------------
Packit 78284e
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
Packit 78284e
# This macro is traced by Automake.
Packit 78284e
AC_DEFUN([_AM_SUBST_NOTMAKE])
Packit 78284e
Packit 78284e
# AM_SUBST_NOTMAKE(VARIABLE)
Packit 78284e
# --------------------------
Packit 78284e
# Public sister of _AM_SUBST_NOTMAKE.
Packit 78284e
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
Packit 78284e
Packit 78284e
# Check how to create a tarball.                            -*- Autoconf -*-
Packit 78284e
Packit 78284e
# Copyright (C) 2004-2014 Free Software Foundation, Inc.
Packit 78284e
#
Packit 78284e
# This file is free software; the Free Software Foundation
Packit 78284e
# gives unlimited permission to copy and/or distribute it,
Packit 78284e
# with or without modifications, as long as this notice is preserved.
Packit 78284e
Packit 78284e
# _AM_PROG_TAR(FORMAT)
Packit 78284e
# --------------------
Packit 78284e
# Check how to create a tarball in format FORMAT.
Packit 78284e
# FORMAT should be one of 'v7', 'ustar', or 'pax'.
Packit 78284e
#
Packit 78284e
# Substitute a variable $(am__tar) that is a command
Packit 78284e
# writing to stdout a FORMAT-tarball containing the directory
Packit 78284e
# $tardir.
Packit 78284e
#     tardir=directory && $(am__tar) > result.tar
Packit 78284e
#
Packit 78284e
# Substitute a variable $(am__untar) that extract such
Packit 78284e
# a tarball read from stdin.
Packit 78284e
#     $(am__untar) < result.tar
Packit 78284e
#
Packit 78284e
AC_DEFUN([_AM_PROG_TAR],
Packit 78284e
[# Always define AMTAR for backward compatibility.  Yes, it's still used
Packit 78284e
# in the wild :-(  We should find a proper way to deprecate it ...
Packit 78284e
AC_SUBST([AMTAR], ['$${TAR-tar}'])
Packit 78284e
Packit 78284e
# We'll loop over all known methods to create a tar archive until one works.
Packit 78284e
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
Packit 78284e
Packit 78284e
m4_if([$1], [v7],
Packit 78284e
  [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
Packit 78284e
Packit 78284e
  [m4_case([$1],
Packit 78284e
    [ustar],
Packit 78284e
     [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
Packit 78284e
      # There is notably a 21 bits limit for the UID and the GID.  In fact,
Packit 78284e
      # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
Packit 78284e
      # and bug#13588).
Packit 78284e
      am_max_uid=2097151 # 2^21 - 1
Packit 78284e
      am_max_gid=$am_max_uid
Packit 78284e
      # The $UID and $GID variables are not portable, so we need to resort
Packit 78284e
      # to the POSIX-mandated id(1) utility.  Errors in the 'id' calls
Packit 78284e
      # below are definitely unexpected, so allow the users to see them
Packit 78284e
      # (that is, avoid stderr redirection).
Packit 78284e
      am_uid=`id -u || echo unknown`
Packit 78284e
      am_gid=`id -g || echo unknown`
Packit 78284e
      AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
Packit 78284e
      if test $am_uid -le $am_max_uid; then
Packit 78284e
         AC_MSG_RESULT([yes])
Packit 78284e
      else
Packit 78284e
         AC_MSG_RESULT([no])
Packit 78284e
         _am_tools=none
Packit 78284e
      fi
Packit 78284e
      AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
Packit 78284e
      if test $am_gid -le $am_max_gid; then
Packit 78284e
         AC_MSG_RESULT([yes])
Packit 78284e
      else
Packit 78284e
        AC_MSG_RESULT([no])
Packit 78284e
        _am_tools=none
Packit 78284e
      fi],
Packit 78284e
Packit 78284e
  [pax],
Packit 78284e
    [],
Packit 78284e
Packit 78284e
  [m4_fatal([Unknown tar format])])
Packit 78284e
Packit 78284e
  AC_MSG_CHECKING([how to create a $1 tar archive])
Packit 78284e
Packit 78284e
  # Go ahead even if we have the value already cached.  We do so because we
Packit 78284e
  # need to set the values for the 'am__tar' and 'am__untar' variables.
Packit 78284e
  _am_tools=${am_cv_prog_tar_$1-$_am_tools}
Packit 78284e
Packit 78284e
  for _am_tool in $_am_tools; do
Packit 78284e
    case $_am_tool in
Packit 78284e
    gnutar)
Packit 78284e
      for _am_tar in tar gnutar gtar; do
Packit 78284e
        AM_RUN_LOG([$_am_tar --version]) && break
Packit 78284e
      done
Packit 78284e
      am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
Packit 78284e
      am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
Packit 78284e
      am__untar="$_am_tar -xf -"
Packit 78284e
      ;;
Packit 78284e
    plaintar)
Packit 78284e
      # Must skip GNU tar: if it does not support --format= it doesn't create
Packit 78284e
      # ustar tarball either.
Packit 78284e
      (tar --version) >/dev/null 2>&1 && continue
Packit 78284e
      am__tar='tar chf - "$$tardir"'
Packit 78284e
      am__tar_='tar chf - "$tardir"'
Packit 78284e
      am__untar='tar xf -'
Packit 78284e
      ;;
Packit 78284e
    pax)
Packit 78284e
      am__tar='pax -L -x $1 -w "$$tardir"'
Packit 78284e
      am__tar_='pax -L -x $1 -w "$tardir"'
Packit 78284e
      am__untar='pax -r'
Packit 78284e
      ;;
Packit 78284e
    cpio)
Packit 78284e
      am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
Packit 78284e
      am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
Packit 78284e
      am__untar='cpio -i -H $1 -d'
Packit 78284e
      ;;
Packit 78284e
    none)
Packit 78284e
      am__tar=false
Packit 78284e
      am__tar_=false
Packit 78284e
      am__untar=false
Packit 78284e
      ;;
Packit 78284e
    esac
Packit 78284e
Packit 78284e
    # If the value was cached, stop now.  We just wanted to have am__tar
Packit 78284e
    # and am__untar set.
Packit 78284e
    test -n "${am_cv_prog_tar_$1}" && break
Packit 78284e
Packit 78284e
    # tar/untar a dummy directory, and stop if the command works.
Packit 78284e
    rm -rf conftest.dir
Packit 78284e
    mkdir conftest.dir
Packit 78284e
    echo GrepMe > conftest.dir/file
Packit 78284e
    AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
Packit 78284e
    rm -rf conftest.dir
Packit 78284e
    if test -s conftest.tar; then
Packit 78284e
      AM_RUN_LOG([$am__untar 
Packit 78284e
      AM_RUN_LOG([cat conftest.dir/file])
Packit 78284e
      grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
Packit 78284e
    fi
Packit 78284e
  done
Packit 78284e
  rm -rf conftest.dir
Packit 78284e
Packit 78284e
  AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
Packit 78284e
  AC_MSG_RESULT([$am_cv_prog_tar_$1])])
Packit 78284e
Packit 78284e
AC_SUBST([am__tar])
Packit 78284e
AC_SUBST([am__untar])
Packit 78284e
]) # _AM_PROG_TAR
Packit 78284e
Packit 78284e
m4_include([build/libtool.m4])
Packit 78284e
m4_include([build/ltoptions.m4])
Packit 78284e
m4_include([build/ltsugar.m4])
Packit 78284e
m4_include([build/ltversion.m4])
Packit 78284e
m4_include([build/lt~obsolete.m4])