Blame aclocal.m4

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