Blame aclocal.m4

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