Blame aclocal.m4

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