Blame aclocal.m4

Packit Service 9646c7
# generated automatically by aclocal 1.11.1 -*- Autoconf -*-
Packit Service 9646c7
Packit Service 9646c7
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
Packit Service 9646c7
# 2005, 2006, 2007, 2008, 2009  Free Software Foundation, Inc.
Packit Service 9646c7
# This file is free software; the Free Software Foundation
Packit Service 9646c7
# gives unlimited permission to copy and/or distribute it,
Packit Service 9646c7
# with or without modifications, as long as this notice is preserved.
Packit Service 9646c7
Packit Service 9646c7
# This program is distributed in the hope that it will be useful,
Packit Service 9646c7
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
Packit Service 9646c7
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
Packit Service 9646c7
# PARTICULAR PURPOSE.
Packit Service 9646c7
Packit Service 9646c7
m4_ifndef([AC_AUTOCONF_VERSION],
Packit Service 9646c7
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
Packit Service 9646c7
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
Packit Service 9646c7
[m4_warning([this file was generated for autoconf 2.69.
Packit Service 9646c7
You have another version of autoconf.  It may work, but is not guaranteed to.
Packit Service 9646c7
If you have problems, you may need to regenerate the build system entirely.
Packit Service 9646c7
To do so, use the procedure documented by the package, typically `autoreconf'.])])
Packit Service 9646c7
Packit Service 9646c7
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
Packit Service 9646c7
#
Packit Service 9646c7
# This file is free software; the Free Software Foundation
Packit Service 9646c7
# gives unlimited permission to copy and/or distribute it,
Packit Service 9646c7
# with or without modifications, as long as this notice is preserved.
Packit Service 9646c7
Packit Service 9646c7
# AM_AUTOMAKE_VERSION(VERSION)
Packit Service 9646c7
# ----------------------------
Packit Service 9646c7
# Automake X.Y traces this macro to ensure aclocal.m4 has been
Packit Service 9646c7
# generated from the m4 files accompanying Automake X.Y.
Packit Service 9646c7
# (This private macro should not be called outside this file.)
Packit Service 9646c7
AC_DEFUN([AM_AUTOMAKE_VERSION],
Packit Service 9646c7
[am__api_version='1.11'
Packit Service 9646c7
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
Packit Service 9646c7
dnl require some minimum version.  Point them to the right macro.
Packit Service 9646c7
m4_if([$1], [1.11.1], [],
Packit Service 9646c7
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
Packit Service 9646c7
])
Packit Service 9646c7
Packit Service 9646c7
# _AM_AUTOCONF_VERSION(VERSION)
Packit Service 9646c7
# -----------------------------
Packit Service 9646c7
# aclocal traces this macro to find the Autoconf version.
Packit Service 9646c7
# This is a private macro too.  Using m4_define simplifies
Packit Service 9646c7
# the logic in aclocal, which can simply ignore this definition.
Packit Service 9646c7
m4_define([_AM_AUTOCONF_VERSION], [])
Packit Service 9646c7
Packit Service 9646c7
# AM_SET_CURRENT_AUTOMAKE_VERSION
Packit Service 9646c7
# -------------------------------
Packit Service 9646c7
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
Packit Service 9646c7
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
Packit Service 9646c7
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
Packit Service 9646c7
[AM_AUTOMAKE_VERSION([1.11.1])dnl
Packit Service 9646c7
m4_ifndef([AC_AUTOCONF_VERSION],
Packit Service 9646c7
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
Packit Service 9646c7
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
Packit Service 9646c7
Packit Service 9646c7
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
Packit Service 9646c7
Packit Service 9646c7
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
Packit Service 9646c7
#
Packit Service 9646c7
# This file is free software; the Free Software Foundation
Packit Service 9646c7
# gives unlimited permission to copy and/or distribute it,
Packit Service 9646c7
# with or without modifications, as long as this notice is preserved.
Packit Service 9646c7
Packit Service 9646c7
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
Packit Service 9646c7
# $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
Packit Service 9646c7
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
Packit Service 9646c7
#
Packit Service 9646c7
# Of course, Automake must honor this variable whenever it calls a
Packit Service 9646c7
# tool from the auxiliary directory.  The problem is that $srcdir (and
Packit Service 9646c7
# therefore $ac_aux_dir as well) can be either absolute or relative,
Packit Service 9646c7
# depending on how configure is run.  This is pretty annoying, since
Packit Service 9646c7
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
Packit Service 9646c7
# source directory, any form will work fine, but in subdirectories a
Packit Service 9646c7
# relative path needs to be adjusted first.
Packit Service 9646c7
#
Packit Service 9646c7
# $ac_aux_dir/missing
Packit Service 9646c7
#    fails when called from a subdirectory if $ac_aux_dir is relative
Packit Service 9646c7
# $top_srcdir/$ac_aux_dir/missing
Packit Service 9646c7
#    fails if $ac_aux_dir is absolute,
Packit Service 9646c7
#    fails when called from a subdirectory in a VPATH build with
Packit Service 9646c7
#          a relative $ac_aux_dir
Packit Service 9646c7
#
Packit Service 9646c7
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
Packit Service 9646c7
# are both prefixed by $srcdir.  In an in-source build this is usually
Packit Service 9646c7
# harmless because $srcdir is `.', but things will broke when you
Packit Service 9646c7
# start a VPATH build or use an absolute $srcdir.
Packit Service 9646c7
#
Packit Service 9646c7
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
Packit Service 9646c7
# iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
Packit Service 9646c7
#   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
Packit Service 9646c7
# and then we would define $MISSING as
Packit Service 9646c7
#   MISSING="\${SHELL} $am_aux_dir/missing"
Packit Service 9646c7
# This will work as long as MISSING is not called from configure, because
Packit Service 9646c7
# unfortunately $(top_srcdir) has no meaning in configure.
Packit Service 9646c7
# However there are other variables, like CC, which are often used in
Packit Service 9646c7
# configure, and could therefore not use this "fixed" $ac_aux_dir.
Packit Service 9646c7
#
Packit Service 9646c7
# Another solution, used here, is to always expand $ac_aux_dir to an
Packit Service 9646c7
# absolute PATH.  The drawback is that using absolute paths prevent a
Packit Service 9646c7
# configured tree to be moved without reconfiguration.
Packit Service 9646c7
Packit Service 9646c7
AC_DEFUN([AM_AUX_DIR_EXPAND],
Packit Service 9646c7
[dnl Rely on autoconf to set up CDPATH properly.
Packit Service 9646c7
AC_PREREQ([2.50])dnl
Packit Service 9646c7
# expand $ac_aux_dir to an absolute path
Packit Service 9646c7
am_aux_dir=`cd $ac_aux_dir && pwd`
Packit Service 9646c7
])
Packit Service 9646c7
Packit Service 9646c7
# AM_CONDITIONAL                                            -*- Autoconf -*-
Packit Service 9646c7
Packit Service 9646c7
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
Packit Service 9646c7
# Free Software Foundation, Inc.
Packit Service 9646c7
#
Packit Service 9646c7
# This file is free software; the Free Software Foundation
Packit Service 9646c7
# gives unlimited permission to copy and/or distribute it,
Packit Service 9646c7
# with or without modifications, as long as this notice is preserved.
Packit Service 9646c7
Packit Service 9646c7
# serial 9
Packit Service 9646c7
Packit Service 9646c7
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
Packit Service 9646c7
# -------------------------------------
Packit Service 9646c7
# Define a conditional.
Packit Service 9646c7
AC_DEFUN([AM_CONDITIONAL],
Packit Service 9646c7
[AC_PREREQ(2.52)dnl
Packit Service 9646c7
 ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
Packit Service 9646c7
	[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
Packit Service 9646c7
AC_SUBST([$1_TRUE])dnl
Packit Service 9646c7
AC_SUBST([$1_FALSE])dnl
Packit Service 9646c7
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
Packit Service 9646c7
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
Packit Service 9646c7
m4_define([_AM_COND_VALUE_$1], [$2])dnl
Packit Service 9646c7
if $2; then
Packit Service 9646c7
  $1_TRUE=
Packit Service 9646c7
  $1_FALSE='#'
Packit Service 9646c7
else
Packit Service 9646c7
  $1_TRUE='#'
Packit Service 9646c7
  $1_FALSE=
Packit Service 9646c7
fi
Packit Service 9646c7
AC_CONFIG_COMMANDS_PRE(
Packit Service 9646c7
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
Packit Service 9646c7
  AC_MSG_ERROR([[conditional "$1" was never defined.
Packit Service 9646c7
Usually this means the macro was only invoked conditionally.]])
Packit Service 9646c7
fi])])
Packit Service 9646c7
Packit Service 9646c7
# Do all the work for Automake.                             -*- Autoconf -*-
Packit Service 9646c7
Packit Service 9646c7
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
Packit Service 9646c7
# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
Packit Service 9646c7
#
Packit Service 9646c7
# This file is free software; the Free Software Foundation
Packit Service 9646c7
# gives unlimited permission to copy and/or distribute it,
Packit Service 9646c7
# with or without modifications, as long as this notice is preserved.
Packit Service 9646c7
Packit Service 9646c7
# serial 16
Packit Service 9646c7
Packit Service 9646c7
# This macro actually does too much.  Some checks are only needed if
Packit Service 9646c7
# your package does certain things.  But this isn't really a big deal.
Packit Service 9646c7
Packit Service 9646c7
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
Packit Service 9646c7
# AM_INIT_AUTOMAKE([OPTIONS])
Packit Service 9646c7
# -----------------------------------------------
Packit Service 9646c7
# The call with PACKAGE and VERSION arguments is the old style
Packit Service 9646c7
# call (pre autoconf-2.50), which is being phased out.  PACKAGE
Packit Service 9646c7
# and VERSION should now be passed to AC_INIT and removed from
Packit Service 9646c7
# the call to AM_INIT_AUTOMAKE.
Packit Service 9646c7
# We support both call styles for the transition.  After
Packit Service 9646c7
# the next Automake release, Autoconf can make the AC_INIT
Packit Service 9646c7
# arguments mandatory, and then we can depend on a new Autoconf
Packit Service 9646c7
# release and drop the old call support.
Packit Service 9646c7
AC_DEFUN([AM_INIT_AUTOMAKE],
Packit Service 9646c7
[AC_PREREQ([2.62])dnl
Packit Service 9646c7
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
Packit Service 9646c7
dnl the ones we care about.
Packit Service 9646c7
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
Packit Service 9646c7
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
Packit Service 9646c7
AC_REQUIRE([AC_PROG_INSTALL])dnl
Packit Service 9646c7
if test "`cd $srcdir && pwd`" != "`pwd`"; then
Packit Service 9646c7
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
Packit Service 9646c7
  # is not polluted with repeated "-I."
Packit Service 9646c7
  AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
Packit Service 9646c7
  # test to see if srcdir already configured
Packit Service 9646c7
  if test -f $srcdir/config.status; then
Packit Service 9646c7
    AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
Packit Service 9646c7
  fi
Packit Service 9646c7
fi
Packit Service 9646c7
Packit Service 9646c7
# test whether we have cygpath
Packit Service 9646c7
if test -z "$CYGPATH_W"; then
Packit Service 9646c7
  if (cygpath --version) >/dev/null 2>/dev/null; then
Packit Service 9646c7
    CYGPATH_W='cygpath -w'
Packit Service 9646c7
  else
Packit Service 9646c7
    CYGPATH_W=echo
Packit Service 9646c7
  fi
Packit Service 9646c7
fi
Packit Service 9646c7
AC_SUBST([CYGPATH_W])
Packit Service 9646c7
Packit Service 9646c7
# Define the identity of the package.
Packit Service 9646c7
dnl Distinguish between old-style and new-style calls.
Packit Service 9646c7
m4_ifval([$2],
Packit Service 9646c7
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
Packit Service 9646c7
 AC_SUBST([PACKAGE], [$1])dnl
Packit Service 9646c7
 AC_SUBST([VERSION], [$2])],
Packit Service 9646c7
[_AM_SET_OPTIONS([$1])dnl
Packit Service 9646c7
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
Packit Service 9646c7
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
Packit Service 9646c7
  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
Packit Service 9646c7
 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
Packit Service 9646c7
 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
Packit Service 9646c7
Packit Service 9646c7
_AM_IF_OPTION([no-define],,
Packit Service 9646c7
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
Packit Service 9646c7
 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
Packit Service 9646c7
Packit Service 9646c7
# Some tools Automake needs.
Packit Service 9646c7
AC_REQUIRE([AM_SANITY_CHECK])dnl
Packit Service 9646c7
AC_REQUIRE([AC_ARG_PROGRAM])dnl
Packit Service 9646c7
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
Packit Service 9646c7
AM_MISSING_PROG(AUTOCONF, autoconf)
Packit Service 9646c7
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
Packit Service 9646c7
AM_MISSING_PROG(AUTOHEADER, autoheader)
Packit Service 9646c7
AM_MISSING_PROG(MAKEINFO, makeinfo)
Packit Service 9646c7
AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
Packit Service 9646c7
AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
Packit Service 9646c7
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
Packit Service 9646c7
# We need awk for the "check" target.  The system "awk" is bad on
Packit Service 9646c7
# some platforms.
Packit Service 9646c7
AC_REQUIRE([AC_PROG_AWK])dnl
Packit Service 9646c7
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
Packit Service 9646c7
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
Packit Service 9646c7
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
Packit Service 9646c7
	      [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
Packit Service 9646c7
			     [_AM_PROG_TAR([v7])])])
Packit Service 9646c7
_AM_IF_OPTION([no-dependencies],,
Packit Service 9646c7
[AC_PROVIDE_IFELSE([AC_PROG_CC],
Packit Service 9646c7
		  [_AM_DEPENDENCIES(CC)],
Packit Service 9646c7
		  [define([AC_PROG_CC],
Packit Service 9646c7
			  defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
Packit Service 9646c7
AC_PROVIDE_IFELSE([AC_PROG_CXX],
Packit Service 9646c7
		  [_AM_DEPENDENCIES(CXX)],
Packit Service 9646c7
		  [define([AC_PROG_CXX],
Packit Service 9646c7
			  defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
Packit Service 9646c7
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
Packit Service 9646c7
		  [_AM_DEPENDENCIES(OBJC)],
Packit Service 9646c7
		  [define([AC_PROG_OBJC],
Packit Service 9646c7
			  defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
Packit Service 9646c7
])
Packit Service 9646c7
_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
Packit Service 9646c7
dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
Packit Service 9646c7
dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This macro
Packit Service 9646c7
dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
Packit Service 9646c7
AC_CONFIG_COMMANDS_PRE(dnl
Packit Service 9646c7
[m4_provide_if([_AM_COMPILER_EXEEXT],
Packit Service 9646c7
  [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
Packit Service 9646c7
])
Packit Service 9646c7
Packit Service 9646c7
dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
Packit Service 9646c7
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
Packit Service 9646c7
dnl mangled by Autoconf and run in a shell conditional statement.
Packit Service 9646c7
m4_define([_AC_COMPILER_EXEEXT],
Packit Service 9646c7
m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
Packit Service 9646c7
Packit Service 9646c7
Packit Service 9646c7
# When config.status generates a header, we must update the stamp-h file.
Packit Service 9646c7
# This file resides in the same directory as the config header
Packit Service 9646c7
# that is generated.  The stamp files are numbered to have different names.
Packit Service 9646c7
Packit Service 9646c7
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
Packit Service 9646c7
# loop where config.status creates the headers, so we can generate
Packit Service 9646c7
# our stamp files there.
Packit Service 9646c7
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
Packit Service 9646c7
[# Compute $1's index in $config_headers.
Packit Service 9646c7
_am_arg=$1
Packit Service 9646c7
_am_stamp_count=1
Packit Service 9646c7
for _am_header in $config_headers :; do
Packit Service 9646c7
  case $_am_header in
Packit Service 9646c7
    $_am_arg | $_am_arg:* )
Packit Service 9646c7
      break ;;
Packit Service 9646c7
    * )
Packit Service 9646c7
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
Packit Service 9646c7
  esac
Packit Service 9646c7
done
Packit Service 9646c7
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
Packit Service 9646c7
Packit Service 9646c7
# Copyright (C) 2001, 2003, 2005, 2008  Free Software Foundation, Inc.
Packit Service 9646c7
#
Packit Service 9646c7
# This file is free software; the Free Software Foundation
Packit Service 9646c7
# gives unlimited permission to copy and/or distribute it,
Packit Service 9646c7
# with or without modifications, as long as this notice is preserved.
Packit Service 9646c7
Packit Service 9646c7
# AM_PROG_INSTALL_SH
Packit Service 9646c7
# ------------------
Packit Service 9646c7
# Define $install_sh.
Packit Service 9646c7
AC_DEFUN([AM_PROG_INSTALL_SH],
Packit Service 9646c7
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
Packit Service 9646c7
if test x"${install_sh}" != xset; then
Packit Service 9646c7
  case $am_aux_dir in
Packit Service 9646c7
  *\ * | *\	*)
Packit Service 9646c7
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
Packit Service 9646c7
  *)
Packit Service 9646c7
    install_sh="\${SHELL} $am_aux_dir/install-sh"
Packit Service 9646c7
  esac
Packit Service 9646c7
fi
Packit Service 9646c7
AC_SUBST(install_sh)])
Packit Service 9646c7
Packit Service 9646c7
# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
Packit Service 9646c7
#
Packit Service 9646c7
# This file is free software; the Free Software Foundation
Packit Service 9646c7
# gives unlimited permission to copy and/or distribute it,
Packit Service 9646c7
# with or without modifications, as long as this notice is preserved.
Packit Service 9646c7
Packit Service 9646c7
# serial 2
Packit Service 9646c7
Packit Service 9646c7
# Check whether the underlying file-system supports filenames
Packit Service 9646c7
# with a leading dot.  For instance MS-DOS doesn't.
Packit Service 9646c7
AC_DEFUN([AM_SET_LEADING_DOT],
Packit Service 9646c7
[rm -rf .tst 2>/dev/null
Packit Service 9646c7
mkdir .tst 2>/dev/null
Packit Service 9646c7
if test -d .tst; then
Packit Service 9646c7
  am__leading_dot=.
Packit Service 9646c7
else
Packit Service 9646c7
  am__leading_dot=_
Packit Service 9646c7
fi
Packit Service 9646c7
rmdir .tst 2>/dev/null
Packit Service 9646c7
AC_SUBST([am__leading_dot])])
Packit Service 9646c7
Packit Service 9646c7
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
Packit Service 9646c7
# 2006  Free Software Foundation, Inc.
Packit Service 9646c7
#
Packit Service 9646c7
# This file is free software; the Free Software Foundation
Packit Service 9646c7
# gives unlimited permission to copy and/or distribute it,
Packit Service 9646c7
# with or without modifications, as long as this notice is preserved.
Packit Service 9646c7
Packit Service 9646c7
# serial 10
Packit Service 9646c7
Packit Service 9646c7
# AM_PATH_LISPDIR
Packit Service 9646c7
# ---------------
Packit Service 9646c7
AC_DEFUN([AM_PATH_LISPDIR],
Packit Service 9646c7
[AC_PREREQ([2.60])dnl
Packit Service 9646c7
 # If set to t, that means we are running in a shell under Emacs.
Packit Service 9646c7
 # If you have an Emacs named "t", then use the full path.
Packit Service 9646c7
 test x"$EMACS" = xt && EMACS=
Packit Service 9646c7
 AC_CHECK_PROGS([EMACS], [emacs xemacs], [no])
Packit Service 9646c7
 AC_ARG_VAR([EMACS], [the Emacs editor command])
Packit Service 9646c7
 AC_ARG_VAR([EMACSLOADPATH], [the Emacs library search path])
Packit Service 9646c7
 AC_ARG_WITH([lispdir],
Packit Service 9646c7
 [  --with-lispdir          override the default lisp directory],
Packit Service 9646c7
 [ lispdir="$withval"
Packit Service 9646c7
   AC_MSG_CHECKING([where .elc files should go])
Packit Service 9646c7
   AC_MSG_RESULT([$lispdir])],
Packit Service 9646c7
 [
Packit Service 9646c7
 AC_CACHE_CHECK([where .elc files should go], [am_cv_lispdir], [
Packit Service 9646c7
   if test $EMACS != "no"; then
Packit Service 9646c7
     if test x${lispdir+set} != xset; then
Packit Service 9646c7
  # If $EMACS isn't GNU Emacs or XEmacs, this can blow up pretty badly
Packit Service 9646c7
  # Some emacsen will start up in interactive mode, requiring C-x C-c to exit,
Packit Service 9646c7
  #  which is non-obvious for non-emacs users.
Packit Service 9646c7
  # Redirecting /dev/null should help a bit; pity we can't detect "broken"
Packit Service 9646c7
  #  emacsen earlier and avoid running this altogether.
Packit Service 9646c7
  AC_RUN_LOG([$EMACS -batch -q -eval '(while load-path (princ (concat (car load-path) "\n")) (setq load-path (cdr load-path)))' </dev/null >conftest.out])
Packit Service 9646c7
	am_cv_lispdir=`sed -n \
Packit Service 9646c7
       -e 's,/$,,' \
Packit Service 9646c7
       -e '/.*\/lib\/x*emacs\/site-lisp$/{s,.*/lib/\(x*emacs/site-lisp\)$,${libdir}/\1,;p;q;}' \
Packit Service 9646c7
       -e '/.*\/share\/x*emacs\/site-lisp$/{s,.*/share/\(x*emacs/site-lisp\),${datarootdir}/\1,;p;q;}' \
Packit Service 9646c7
       conftest.out`
Packit Service 9646c7
       rm conftest.out
Packit Service 9646c7
     fi
Packit Service 9646c7
   fi
Packit Service 9646c7
   test -z "$am_cv_lispdir" && am_cv_lispdir='${datadir}/emacs/site-lisp'
Packit Service 9646c7
  ])
Packit Service 9646c7
  lispdir="$am_cv_lispdir"
Packit Service 9646c7
])
Packit Service 9646c7
AC_SUBST([lispdir])
Packit Service 9646c7
])# AM_PATH_LISPDIR
Packit Service 9646c7
Packit Service 9646c7
AU_DEFUN([ud_PATH_LISPDIR], [AM_PATH_LISPDIR])
Packit Service 9646c7
Packit Service 9646c7
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
Packit Service 9646c7
Packit Service 9646c7
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
Packit Service 9646c7
# Free Software Foundation, Inc.
Packit Service 9646c7
#
Packit Service 9646c7
# This file is free software; the Free Software Foundation
Packit Service 9646c7
# gives unlimited permission to copy and/or distribute it,
Packit Service 9646c7
# with or without modifications, as long as this notice is preserved.
Packit Service 9646c7
Packit Service 9646c7
# serial 6
Packit Service 9646c7
Packit Service 9646c7
# AM_MISSING_PROG(NAME, PROGRAM)
Packit Service 9646c7
# ------------------------------
Packit Service 9646c7
AC_DEFUN([AM_MISSING_PROG],
Packit Service 9646c7
[AC_REQUIRE([AM_MISSING_HAS_RUN])
Packit Service 9646c7
$1=${$1-"${am_missing_run}$2"}
Packit Service 9646c7
AC_SUBST($1)])
Packit Service 9646c7
Packit Service 9646c7
Packit Service 9646c7
# AM_MISSING_HAS_RUN
Packit Service 9646c7
# ------------------
Packit Service 9646c7
# Define MISSING if not defined so far and test if it supports --run.
Packit Service 9646c7
# If it does, set am_missing_run to use it, otherwise, to nothing.
Packit Service 9646c7
AC_DEFUN([AM_MISSING_HAS_RUN],
Packit Service 9646c7
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
Packit Service 9646c7
AC_REQUIRE_AUX_FILE([missing])dnl
Packit Service 9646c7
if test x"${MISSING+set}" != xset; then
Packit Service 9646c7
  case $am_aux_dir in
Packit Service 9646c7
  *\ * | *\	*)
Packit Service 9646c7
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
Packit Service 9646c7
  *)
Packit Service 9646c7
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
Packit Service 9646c7
  esac
Packit Service 9646c7
fi
Packit Service 9646c7
# Use eval to expand $SHELL
Packit Service 9646c7
if eval "$MISSING --run true"; then
Packit Service 9646c7
  am_missing_run="$MISSING --run "
Packit Service 9646c7
else
Packit Service 9646c7
  am_missing_run=
Packit Service 9646c7
  AC_MSG_WARN([`missing' script is too old or missing])
Packit Service 9646c7
fi
Packit Service 9646c7
])
Packit Service 9646c7
Packit Service 9646c7
# Copyright (C) 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
Packit Service 9646c7
#
Packit Service 9646c7
# This file is free software; the Free Software Foundation
Packit Service 9646c7
# gives unlimited permission to copy and/or distribute it,
Packit Service 9646c7
# with or without modifications, as long as this notice is preserved.
Packit Service 9646c7
Packit Service 9646c7
# AM_PROG_MKDIR_P
Packit Service 9646c7
# ---------------
Packit Service 9646c7
# Check for `mkdir -p'.
Packit Service 9646c7
AC_DEFUN([AM_PROG_MKDIR_P],
Packit Service 9646c7
[AC_PREREQ([2.60])dnl
Packit Service 9646c7
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
Packit Service 9646c7
dnl Automake 1.8 to 1.9.6 used to define mkdir_p.  We now use MKDIR_P,
Packit Service 9646c7
dnl while keeping a definition of mkdir_p for backward compatibility.
Packit Service 9646c7
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
Packit Service 9646c7
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
Packit Service 9646c7
dnl Makefile.ins that do not define MKDIR_P, so we do our own
Packit Service 9646c7
dnl adjustment using top_builddir (which is defined more often than
Packit Service 9646c7
dnl MKDIR_P).
Packit Service 9646c7
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
Packit Service 9646c7
case $mkdir_p in
Packit Service 9646c7
  [[\\/$]]* | ?:[[\\/]]*) ;;
Packit Service 9646c7
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
Packit Service 9646c7
esac
Packit Service 9646c7
])
Packit Service 9646c7
Packit Service 9646c7
# Helper functions for option handling.                     -*- Autoconf -*-
Packit Service 9646c7
Packit Service 9646c7
# Copyright (C) 2001, 2002, 2003, 2005, 2008  Free Software Foundation, Inc.
Packit Service 9646c7
#
Packit Service 9646c7
# This file is free software; the Free Software Foundation
Packit Service 9646c7
# gives unlimited permission to copy and/or distribute it,
Packit Service 9646c7
# with or without modifications, as long as this notice is preserved.
Packit Service 9646c7
Packit Service 9646c7
# serial 4
Packit Service 9646c7
Packit Service 9646c7
# _AM_MANGLE_OPTION(NAME)
Packit Service 9646c7
# -----------------------
Packit Service 9646c7
AC_DEFUN([_AM_MANGLE_OPTION],
Packit Service 9646c7
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
Packit Service 9646c7
Packit Service 9646c7
# _AM_SET_OPTION(NAME)
Packit Service 9646c7
# ------------------------------
Packit Service 9646c7
# Set option NAME.  Presently that only means defining a flag for this option.
Packit Service 9646c7
AC_DEFUN([_AM_SET_OPTION],
Packit Service 9646c7
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
Packit Service 9646c7
Packit Service 9646c7
# _AM_SET_OPTIONS(OPTIONS)
Packit Service 9646c7
# ----------------------------------
Packit Service 9646c7
# OPTIONS is a space-separated list of Automake options.
Packit Service 9646c7
AC_DEFUN([_AM_SET_OPTIONS],
Packit Service 9646c7
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
Packit Service 9646c7
Packit Service 9646c7
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
Packit Service 9646c7
# -------------------------------------------
Packit Service 9646c7
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
Packit Service 9646c7
AC_DEFUN([_AM_IF_OPTION],
Packit Service 9646c7
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
Packit Service 9646c7
Packit Service 9646c7
# Check to make sure that the build environment is sane.    -*- Autoconf -*-
Packit Service 9646c7
Packit Service 9646c7
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
Packit Service 9646c7
# Free Software Foundation, Inc.
Packit Service 9646c7
#
Packit Service 9646c7
# This file is free software; the Free Software Foundation
Packit Service 9646c7
# gives unlimited permission to copy and/or distribute it,
Packit Service 9646c7
# with or without modifications, as long as this notice is preserved.
Packit Service 9646c7
Packit Service 9646c7
# serial 5
Packit Service 9646c7
Packit Service 9646c7
# AM_SANITY_CHECK
Packit Service 9646c7
# ---------------
Packit Service 9646c7
AC_DEFUN([AM_SANITY_CHECK],
Packit Service 9646c7
[AC_MSG_CHECKING([whether build environment is sane])
Packit Service 9646c7
# Just in case
Packit Service 9646c7
sleep 1
Packit Service 9646c7
echo timestamp > conftest.file
Packit Service 9646c7
# Reject unsafe characters in $srcdir or the absolute working directory
Packit Service 9646c7
# name.  Accept space and tab only in the latter.
Packit Service 9646c7
am_lf='
Packit Service 9646c7
'
Packit Service 9646c7
case `pwd` in
Packit Service 9646c7
  *[[\\\"\#\$\&\'\`$am_lf]]*)
Packit Service 9646c7
    AC_MSG_ERROR([unsafe absolute working directory name]);;
Packit Service 9646c7
esac
Packit Service 9646c7
case $srcdir in
Packit Service 9646c7
  *[[\\\"\#\$\&\'\`$am_lf\ \	]]*)
Packit Service 9646c7
    AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
Packit Service 9646c7
esac
Packit Service 9646c7
Packit Service 9646c7
# Do `set' in a subshell so we don't clobber the current shell's
Packit Service 9646c7
# arguments.  Must try -L first in case configure is actually a
Packit Service 9646c7
# symlink; some systems play weird games with the mod time of symlinks
Packit Service 9646c7
# (eg FreeBSD returns the mod time of the symlink's containing
Packit Service 9646c7
# directory).
Packit Service 9646c7
if (
Packit Service 9646c7
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
Packit Service 9646c7
   if test "$[*]" = "X"; then
Packit Service 9646c7
      # -L didn't work.
Packit Service 9646c7
      set X `ls -t "$srcdir/configure" conftest.file`
Packit Service 9646c7
   fi
Packit Service 9646c7
   rm -f conftest.file
Packit Service 9646c7
   if test "$[*]" != "X $srcdir/configure conftest.file" \
Packit Service 9646c7
      && test "$[*]" != "X conftest.file $srcdir/configure"; then
Packit Service 9646c7
Packit Service 9646c7
      # If neither matched, then we have a broken ls.  This can happen
Packit Service 9646c7
      # if, for instance, CONFIG_SHELL is bash and it inherits a
Packit Service 9646c7
      # broken ls alias from the environment.  This has actually
Packit Service 9646c7
      # happened.  Such a system could not be considered "sane".
Packit Service 9646c7
      AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
Packit Service 9646c7
alias in your environment])
Packit Service 9646c7
   fi
Packit Service 9646c7
Packit Service 9646c7
   test "$[2]" = conftest.file
Packit Service 9646c7
   )
Packit Service 9646c7
then
Packit Service 9646c7
   # Ok.
Packit Service 9646c7
   :
Packit Service 9646c7
else
Packit Service 9646c7
   AC_MSG_ERROR([newly created file is older than distributed files!
Packit Service 9646c7
Check your system clock])
Packit Service 9646c7
fi
Packit Service 9646c7
AC_MSG_RESULT(yes)])
Packit Service 9646c7
Packit Service 9646c7
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
Packit Service 9646c7
#
Packit Service 9646c7
# This file is free software; the Free Software Foundation
Packit Service 9646c7
# gives unlimited permission to copy and/or distribute it,
Packit Service 9646c7
# with or without modifications, as long as this notice is preserved.
Packit Service 9646c7
Packit Service 9646c7
# AM_PROG_INSTALL_STRIP
Packit Service 9646c7
# ---------------------
Packit Service 9646c7
# One issue with vendor `install' (even GNU) is that you can't
Packit Service 9646c7
# specify the program used to strip binaries.  This is especially
Packit Service 9646c7
# annoying in cross-compiling environments, where the build's strip
Packit Service 9646c7
# is unlikely to handle the host's binaries.
Packit Service 9646c7
# Fortunately install-sh will honor a STRIPPROG variable, so we
Packit Service 9646c7
# always use install-sh in `make install-strip', and initialize
Packit Service 9646c7
# STRIPPROG with the value of the STRIP variable (set by the user).
Packit Service 9646c7
AC_DEFUN([AM_PROG_INSTALL_STRIP],
Packit Service 9646c7
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
Packit Service 9646c7
# Installed binaries are usually stripped using `strip' when the user
Packit Service 9646c7
# run `make install-strip'.  However `strip' might not be the right
Packit Service 9646c7
# tool to use in cross-compilation environments, therefore Automake
Packit Service 9646c7
# will honor the `STRIP' environment variable to overrule this program.
Packit Service 9646c7
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
Packit Service 9646c7
if test "$cross_compiling" != no; then
Packit Service 9646c7
  AC_CHECK_TOOL([STRIP], [strip], :)
Packit Service 9646c7
fi
Packit Service 9646c7
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
Packit Service 9646c7
AC_SUBST([INSTALL_STRIP_PROGRAM])])
Packit Service 9646c7
Packit Service 9646c7
# Copyright (C) 2006, 2008  Free Software Foundation, Inc.
Packit Service 9646c7
#
Packit Service 9646c7
# This file is free software; the Free Software Foundation
Packit Service 9646c7
# gives unlimited permission to copy and/or distribute it,
Packit Service 9646c7
# with or without modifications, as long as this notice is preserved.
Packit Service 9646c7
Packit Service 9646c7
# serial 2
Packit Service 9646c7
Packit Service 9646c7
# _AM_SUBST_NOTMAKE(VARIABLE)
Packit Service 9646c7
# ---------------------------
Packit Service 9646c7
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
Packit Service 9646c7
# This macro is traced by Automake.
Packit Service 9646c7
AC_DEFUN([_AM_SUBST_NOTMAKE])
Packit Service 9646c7
Packit Service 9646c7
# AM_SUBST_NOTMAKE(VARIABLE)
Packit Service 9646c7
# ---------------------------
Packit Service 9646c7
# Public sister of _AM_SUBST_NOTMAKE.
Packit Service 9646c7
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
Packit Service 9646c7
Packit Service 9646c7
# Check how to create a tarball.                            -*- Autoconf -*-
Packit Service 9646c7
Packit Service 9646c7
# Copyright (C) 2004, 2005  Free Software Foundation, Inc.
Packit Service 9646c7
#
Packit Service 9646c7
# This file is free software; the Free Software Foundation
Packit Service 9646c7
# gives unlimited permission to copy and/or distribute it,
Packit Service 9646c7
# with or without modifications, as long as this notice is preserved.
Packit Service 9646c7
Packit Service 9646c7
# serial 2
Packit Service 9646c7
Packit Service 9646c7
# _AM_PROG_TAR(FORMAT)
Packit Service 9646c7
# --------------------
Packit Service 9646c7
# Check how to create a tarball in format FORMAT.
Packit Service 9646c7
# FORMAT should be one of `v7', `ustar', or `pax'.
Packit Service 9646c7
#
Packit Service 9646c7
# Substitute a variable $(am__tar) that is a command
Packit Service 9646c7
# writing to stdout a FORMAT-tarball containing the directory
Packit Service 9646c7
# $tardir.
Packit Service 9646c7
#     tardir=directory && $(am__tar) > result.tar
Packit Service 9646c7
#
Packit Service 9646c7
# Substitute a variable $(am__untar) that extract such
Packit Service 9646c7
# a tarball read from stdin.
Packit Service 9646c7
#     $(am__untar) < result.tar
Packit Service 9646c7
AC_DEFUN([_AM_PROG_TAR],
Packit Service 9646c7
[# Always define AMTAR for backward compatibility.
Packit Service 9646c7
AM_MISSING_PROG([AMTAR], [tar])
Packit Service 9646c7
m4_if([$1], [v7],
Packit Service 9646c7
     [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
Packit Service 9646c7
     [m4_case([$1], [ustar],, [pax],,
Packit Service 9646c7
              [m4_fatal([Unknown tar format])])
Packit Service 9646c7
AC_MSG_CHECKING([how to create a $1 tar archive])
Packit Service 9646c7
# Loop over all known methods to create a tar archive until one works.
Packit Service 9646c7
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
Packit Service 9646c7
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
Packit Service 9646c7
# Do not fold the above two line into one, because Tru64 sh and
Packit Service 9646c7
# Solaris sh will not grok spaces in the rhs of `-'.
Packit Service 9646c7
for _am_tool in $_am_tools
Packit Service 9646c7
do
Packit Service 9646c7
  case $_am_tool in
Packit Service 9646c7
  gnutar)
Packit Service 9646c7
    for _am_tar in tar gnutar gtar;
Packit Service 9646c7
    do
Packit Service 9646c7
      AM_RUN_LOG([$_am_tar --version]) && break
Packit Service 9646c7
    done
Packit Service 9646c7
    am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
Packit Service 9646c7
    am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
Packit Service 9646c7
    am__untar="$_am_tar -xf -"
Packit Service 9646c7
    ;;
Packit Service 9646c7
  plaintar)
Packit Service 9646c7
    # Must skip GNU tar: if it does not support --format= it doesn't create
Packit Service 9646c7
    # ustar tarball either.
Packit Service 9646c7
    (tar --version) >/dev/null 2>&1 && continue
Packit Service 9646c7
    am__tar='tar chf - "$$tardir"'
Packit Service 9646c7
    am__tar_='tar chf - "$tardir"'
Packit Service 9646c7
    am__untar='tar xf -'
Packit Service 9646c7
    ;;
Packit Service 9646c7
  pax)
Packit Service 9646c7
    am__tar='pax -L -x $1 -w "$$tardir"'
Packit Service 9646c7
    am__tar_='pax -L -x $1 -w "$tardir"'
Packit Service 9646c7
    am__untar='pax -r'
Packit Service 9646c7
    ;;
Packit Service 9646c7
  cpio)
Packit Service 9646c7
    am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
Packit Service 9646c7
    am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
Packit Service 9646c7
    am__untar='cpio -i -H $1 -d'
Packit Service 9646c7
    ;;
Packit Service 9646c7
  none)
Packit Service 9646c7
    am__tar=false
Packit Service 9646c7
    am__tar_=false
Packit Service 9646c7
    am__untar=false
Packit Service 9646c7
    ;;
Packit Service 9646c7
  esac
Packit Service 9646c7
Packit Service 9646c7
  # If the value was cached, stop now.  We just wanted to have am__tar
Packit Service 9646c7
  # and am__untar set.
Packit Service 9646c7
  test -n "${am_cv_prog_tar_$1}" && break
Packit Service 9646c7
Packit Service 9646c7
  # tar/untar a dummy directory, and stop if the command works
Packit Service 9646c7
  rm -rf conftest.dir
Packit Service 9646c7
  mkdir conftest.dir
Packit Service 9646c7
  echo GrepMe > conftest.dir/file
Packit Service 9646c7
  AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
Packit Service 9646c7
  rm -rf conftest.dir
Packit Service 9646c7
  if test -s conftest.tar; then
Packit Service 9646c7
    AM_RUN_LOG([$am__untar 
Packit Service 9646c7
    grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
Packit Service 9646c7
  fi
Packit Service 9646c7
done
Packit Service 9646c7
rm -rf conftest.dir
Packit Service 9646c7
Packit Service 9646c7
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
Packit Service 9646c7
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
Packit Service 9646c7
AC_SUBST([am__tar])
Packit Service 9646c7
AC_SUBST([am__untar])
Packit Service 9646c7
]) # _AM_PROG_TAR
Packit Service 9646c7
Packit Service 9646c7
m4_include([m4/autobuild.m4])
Packit Service 9646c7
m4_include([m4/m4.m4])
Packit Service 9646c7
m4_include([m4/make-case.m4])