1.1 --- a/aclocal.m4 Thu Jan 10 08:28:37 2008 +0000
1.2 +++ b/aclocal.m4 Sun Oct 19 05:09:31 2008 +0000
1.4 -# generated automatically by aclocal 1.7.9 -*- Autoconf -*-
1.5 +# generated automatically by aclocal 1.9.6 -*- Autoconf -*-
1.7 -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002
1.8 -# Free Software Foundation, Inc.
1.9 +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
1.10 +# 2005 Free Software Foundation, Inc.
1.11 # This file is free software; the Free Software Foundation
1.12 # gives unlimited permission to copy and/or distribute it,
1.13 # with or without modifications, as long as this notice is preserved.
1.14 @@ -11,1191 +11,6 @@
1.15 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
1.16 # PARTICULAR PURPOSE.
1.18 -# Do all the work for Automake. -*- Autoconf -*-
1.20 -# This macro actually does too much some checks are only needed if
1.21 -# your package does certain things. But this isn't really a big deal.
1.23 -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
1.24 -# Free Software Foundation, Inc.
1.26 -# This program is free software; you can redistribute it and/or modify
1.27 -# it under the terms of the GNU General Public License as published by
1.28 -# the Free Software Foundation; either version 2, or (at your option)
1.29 -# any later version.
1.31 -# This program is distributed in the hope that it will be useful,
1.32 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
1.33 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1.34 -# GNU General Public License for more details.
1.36 -# You should have received a copy of the GNU General Public License
1.37 -# along with this program; if not, write to the Free Software
1.38 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1.45 -# Autoconf 2.50 wants to disallow AM_ names. We explicitly allow
1.46 -# the ones we care about.
1.47 -m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
1.49 -# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
1.50 -# AM_INIT_AUTOMAKE([OPTIONS])
1.51 -# -----------------------------------------------
1.52 -# The call with PACKAGE and VERSION arguments is the old style
1.53 -# call (pre autoconf-2.50), which is being phased out. PACKAGE
1.54 -# and VERSION should now be passed to AC_INIT and removed from
1.55 -# the call to AM_INIT_AUTOMAKE.
1.56 -# We support both call styles for the transition. After
1.57 -# the next Automake release, Autoconf can make the AC_INIT
1.58 -# arguments mandatory, and then we can depend on a new Autoconf
1.59 -# release and drop the old call support.
1.60 -AC_DEFUN([AM_INIT_AUTOMAKE],
1.61 -[AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
1.62 - AC_REQUIRE([AC_PROG_INSTALL])dnl
1.63 -# test to see if srcdir already configured
1.64 -if test "`cd $srcdir && pwd`" != "`pwd`" &&
1.65 - test -f $srcdir/config.status; then
1.66 - AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
1.69 -# test whether we have cygpath
1.70 -if test -z "$CYGPATH_W"; then
1.71 - if (cygpath --version) >/dev/null 2>/dev/null; then
1.72 - CYGPATH_W='cygpath -w'
1.77 -AC_SUBST([CYGPATH_W])
1.79 -# Define the identity of the package.
1.80 -dnl Distinguish between old-style and new-style calls.
1.82 -[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
1.83 - AC_SUBST([PACKAGE], [$1])dnl
1.84 - AC_SUBST([VERSION], [$2])],
1.85 -[_AM_SET_OPTIONS([$1])dnl
1.86 - AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
1.87 - AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
1.89 -_AM_IF_OPTION([no-define],,
1.90 -[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
1.91 - AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
1.93 -# Some tools Automake needs.
1.94 -AC_REQUIRE([AM_SANITY_CHECK])dnl
1.95 -AC_REQUIRE([AC_ARG_PROGRAM])dnl
1.96 -AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
1.97 -AM_MISSING_PROG(AUTOCONF, autoconf)
1.98 -AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
1.99 -AM_MISSING_PROG(AUTOHEADER, autoheader)
1.100 -AM_MISSING_PROG(MAKEINFO, makeinfo)
1.101 -AM_MISSING_PROG(AMTAR, tar)
1.102 -AM_PROG_INSTALL_SH
1.103 -AM_PROG_INSTALL_STRIP
1.104 -# We need awk for the "check" target. The system "awk" is bad on
1.106 -AC_REQUIRE([AC_PROG_AWK])dnl
1.107 -AC_REQUIRE([AC_PROG_MAKE_SET])dnl
1.108 -AC_REQUIRE([AM_SET_LEADING_DOT])dnl
1.110 -_AM_IF_OPTION([no-dependencies],,
1.111 -[AC_PROVIDE_IFELSE([AC_PROG_CC],
1.112 - [_AM_DEPENDENCIES(CC)],
1.113 - [define([AC_PROG_CC],
1.114 - defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
1.115 -AC_PROVIDE_IFELSE([AC_PROG_CXX],
1.116 - [_AM_DEPENDENCIES(CXX)],
1.117 - [define([AC_PROG_CXX],
1.118 - defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
1.123 -# When config.status generates a header, we must update the stamp-h file.
1.124 -# This file resides in the same directory as the config header
1.125 -# that is generated. The stamp files are numbered to have different names.
1.127 -# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
1.128 -# loop where config.status creates the headers, so we can generate
1.129 -# our stamp files there.
1.130 -AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
1.131 -[# Compute $1's index in $config_headers.
1.133 -for _am_header in $config_headers :; do
1.134 - case $_am_header in
1.138 - _am_stamp_count=`expr $_am_stamp_count + 1` ;;
1.141 -echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
1.143 -# Copyright 2002 Free Software Foundation, Inc.
1.145 -# This program is free software; you can redistribute it and/or modify
1.146 -# it under the terms of the GNU General Public License as published by
1.147 -# the Free Software Foundation; either version 2, or (at your option)
1.148 -# any later version.
1.150 -# This program is distributed in the hope that it will be useful,
1.151 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
1.152 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1.153 -# GNU General Public License for more details.
1.155 -# You should have received a copy of the GNU General Public License
1.156 -# along with this program; if not, write to the Free Software
1.157 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1.159 -# AM_AUTOMAKE_VERSION(VERSION)
1.160 -# ----------------------------
1.161 -# Automake X.Y traces this macro to ensure aclocal.m4 has been
1.162 -# generated from the m4 files accompanying Automake X.Y.
1.163 -AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.7"])
1.165 -# AM_SET_CURRENT_AUTOMAKE_VERSION
1.166 -# -------------------------------
1.167 -# Call AM_AUTOMAKE_VERSION so it can be traced.
1.168 -# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
1.169 -AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
1.170 - [AM_AUTOMAKE_VERSION([1.7.9])])
1.172 -# Helper functions for option handling. -*- Autoconf -*-
1.174 -# Copyright 2001, 2002 Free Software Foundation, Inc.
1.176 -# This program is free software; you can redistribute it and/or modify
1.177 -# it under the terms of the GNU General Public License as published by
1.178 -# the Free Software Foundation; either version 2, or (at your option)
1.179 -# any later version.
1.181 -# This program is distributed in the hope that it will be useful,
1.182 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
1.183 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1.184 -# GNU General Public License for more details.
1.186 -# You should have received a copy of the GNU General Public License
1.187 -# along with this program; if not, write to the Free Software
1.188 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1.189 -# 02111-1307, USA.
1.193 -# _AM_MANGLE_OPTION(NAME)
1.194 -# -----------------------
1.195 -AC_DEFUN([_AM_MANGLE_OPTION],
1.196 -[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
1.198 -# _AM_SET_OPTION(NAME)
1.199 -# ------------------------------
1.200 -# Set option NAME. Presently that only means defining a flag for this option.
1.201 -AC_DEFUN([_AM_SET_OPTION],
1.202 -[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
1.204 -# _AM_SET_OPTIONS(OPTIONS)
1.205 -# ----------------------------------
1.206 -# OPTIONS is a space-separated list of Automake options.
1.207 -AC_DEFUN([_AM_SET_OPTIONS],
1.208 -[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
1.210 -# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
1.211 -# -------------------------------------------
1.212 -# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
1.213 -AC_DEFUN([_AM_IF_OPTION],
1.214 -[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
1.217 -# Check to make sure that the build environment is sane.
1.220 -# Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
1.222 -# This program is free software; you can redistribute it and/or modify
1.223 -# it under the terms of the GNU General Public License as published by
1.224 -# the Free Software Foundation; either version 2, or (at your option)
1.225 -# any later version.
1.227 -# This program is distributed in the hope that it will be useful,
1.228 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
1.229 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1.230 -# GNU General Public License for more details.
1.232 -# You should have received a copy of the GNU General Public License
1.233 -# along with this program; if not, write to the Free Software
1.234 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1.235 -# 02111-1307, USA.
1.241 -AC_DEFUN([AM_SANITY_CHECK],
1.242 -[AC_MSG_CHECKING([whether build environment is sane])
1.245 -echo timestamp > conftest.file
1.246 -# Do `set' in a subshell so we don't clobber the current shell's
1.247 -# arguments. Must try -L first in case configure is actually a
1.248 -# symlink; some systems play weird games with the mod time of symlinks
1.249 -# (eg FreeBSD returns the mod time of the symlink's containing
1.252 - set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1.253 - if test "$[*]" = "X"; then
1.254 - # -L didn't work.
1.255 - set X `ls -t $srcdir/configure conftest.file`
1.257 - rm -f conftest.file
1.258 - if test "$[*]" != "X $srcdir/configure conftest.file" \
1.259 - && test "$[*]" != "X conftest.file $srcdir/configure"; then
1.261 - # If neither matched, then we have a broken ls. This can happen
1.262 - # if, for instance, CONFIG_SHELL is bash and it inherits a
1.263 - # broken ls alias from the environment. This has actually
1.264 - # happened. Such a system could not be considered "sane".
1.265 - AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
1.266 -alias in your environment])
1.269 - test "$[2]" = conftest.file
1.275 - AC_MSG_ERROR([newly created file is older than distributed files!
1.276 -Check your system clock])
1.278 -AC_MSG_RESULT(yes)])
1.280 -# -*- Autoconf -*-
1.283 -# Copyright 1997, 1999, 2000, 2001 Free Software Foundation, Inc.
1.285 -# This program is free software; you can redistribute it and/or modify
1.286 -# it under the terms of the GNU General Public License as published by
1.287 -# the Free Software Foundation; either version 2, or (at your option)
1.288 -# any later version.
1.290 -# This program is distributed in the hope that it will be useful,
1.291 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
1.292 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1.293 -# GNU General Public License for more details.
1.295 -# You should have received a copy of the GNU General Public License
1.296 -# along with this program; if not, write to the Free Software
1.297 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1.298 -# 02111-1307, USA.
1.302 -# AM_MISSING_PROG(NAME, PROGRAM)
1.303 -# ------------------------------
1.304 -AC_DEFUN([AM_MISSING_PROG],
1.305 -[AC_REQUIRE([AM_MISSING_HAS_RUN])
1.306 -$1=${$1-"${am_missing_run}$2"}
1.310 -# AM_MISSING_HAS_RUN
1.311 -# ------------------
1.312 -# Define MISSING if not defined so far and test if it supports --run.
1.313 -# If it does, set am_missing_run to use it, otherwise, to nothing.
1.314 -AC_DEFUN([AM_MISSING_HAS_RUN],
1.315 -[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1.316 -test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1.317 -# Use eval to expand $SHELL
1.318 -if eval "$MISSING --run true"; then
1.319 - am_missing_run="$MISSING --run "
1.322 - AC_MSG_WARN([`missing' script is too old or missing])
1.326 -# AM_AUX_DIR_EXPAND
1.328 -# Copyright 2001 Free Software Foundation, Inc.
1.330 -# This program is free software; you can redistribute it and/or modify
1.331 -# it under the terms of the GNU General Public License as published by
1.332 -# the Free Software Foundation; either version 2, or (at your option)
1.333 -# any later version.
1.335 -# This program is distributed in the hope that it will be useful,
1.336 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
1.337 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1.338 -# GNU General Public License for more details.
1.340 -# You should have received a copy of the GNU General Public License
1.341 -# along with this program; if not, write to the Free Software
1.342 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1.343 -# 02111-1307, USA.
1.345 -# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
1.346 -# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
1.347 -# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
1.349 -# Of course, Automake must honor this variable whenever it calls a
1.350 -# tool from the auxiliary directory. The problem is that $srcdir (and
1.351 -# therefore $ac_aux_dir as well) can be either absolute or relative,
1.352 -# depending on how configure is run. This is pretty annoying, since
1.353 -# it makes $ac_aux_dir quite unusable in subdirectories: in the top
1.354 -# source directory, any form will work fine, but in subdirectories a
1.355 -# relative path needs to be adjusted first.
1.357 -# $ac_aux_dir/missing
1.358 -# fails when called from a subdirectory if $ac_aux_dir is relative
1.359 -# $top_srcdir/$ac_aux_dir/missing
1.360 -# fails if $ac_aux_dir is absolute,
1.361 -# fails when called from a subdirectory in a VPATH build with
1.362 -# a relative $ac_aux_dir
1.364 -# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
1.365 -# are both prefixed by $srcdir. In an in-source build this is usually
1.366 -# harmless because $srcdir is `.', but things will broke when you
1.367 -# start a VPATH build or use an absolute $srcdir.
1.369 -# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
1.370 -# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
1.371 -# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
1.372 -# and then we would define $MISSING as
1.373 -# MISSING="\${SHELL} $am_aux_dir/missing"
1.374 -# This will work as long as MISSING is not called from configure, because
1.375 -# unfortunately $(top_srcdir) has no meaning in configure.
1.376 -# However there are other variables, like CC, which are often used in
1.377 -# configure, and could therefore not use this "fixed" $ac_aux_dir.
1.379 -# Another solution, used here, is to always expand $ac_aux_dir to an
1.380 -# absolute PATH. The drawback is that using absolute paths prevent a
1.381 -# configured tree to be moved without reconfiguration.
1.383 -# Rely on autoconf to set up CDPATH properly.
1.386 -AC_DEFUN([AM_AUX_DIR_EXPAND], [
1.387 -# expand $ac_aux_dir to an absolute path
1.388 -am_aux_dir=`cd $ac_aux_dir && pwd`
1.391 -# AM_PROG_INSTALL_SH
1.392 -# ------------------
1.393 -# Define $install_sh.
1.395 -# Copyright 2001 Free Software Foundation, Inc.
1.397 -# This program is free software; you can redistribute it and/or modify
1.398 -# it under the terms of the GNU General Public License as published by
1.399 -# the Free Software Foundation; either version 2, or (at your option)
1.400 -# any later version.
1.402 -# This program is distributed in the hope that it will be useful,
1.403 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
1.404 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1.405 -# GNU General Public License for more details.
1.407 -# You should have received a copy of the GNU General Public License
1.408 -# along with this program; if not, write to the Free Software
1.409 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1.410 -# 02111-1307, USA.
1.412 -AC_DEFUN([AM_PROG_INSTALL_SH],
1.413 -[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1.414 -install_sh=${install_sh-"$am_aux_dir/install-sh"}
1.415 -AC_SUBST(install_sh)])
1.417 -# AM_PROG_INSTALL_STRIP
1.419 -# Copyright 2001 Free Software Foundation, Inc.
1.421 -# This program is free software; you can redistribute it and/or modify
1.422 -# it under the terms of the GNU General Public License as published by
1.423 -# the Free Software Foundation; either version 2, or (at your option)
1.424 -# any later version.
1.426 -# This program is distributed in the hope that it will be useful,
1.427 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
1.428 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1.429 -# GNU General Public License for more details.
1.431 -# You should have received a copy of the GNU General Public License
1.432 -# along with this program; if not, write to the Free Software
1.433 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1.434 -# 02111-1307, USA.
1.436 -# One issue with vendor `install' (even GNU) is that you can't
1.437 -# specify the program used to strip binaries. This is especially
1.438 -# annoying in cross-compiling environments, where the build's strip
1.439 -# is unlikely to handle the host's binaries.
1.440 -# Fortunately install-sh will honor a STRIPPROG variable, so we
1.441 -# always use install-sh in `make install-strip', and initialize
1.442 -# STRIPPROG with the value of the STRIP variable (set by the user).
1.443 -AC_DEFUN([AM_PROG_INSTALL_STRIP],
1.444 -[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
1.445 -# Installed binaries are usually stripped using `strip' when the user
1.446 -# run `make install-strip'. However `strip' might not be the right
1.447 -# tool to use in cross-compilation environments, therefore Automake
1.448 -# will honor the `STRIP' environment variable to overrule this program.
1.449 -dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
1.450 -if test "$cross_compiling" != no; then
1.451 - AC_CHECK_TOOL([STRIP], [strip], :)
1.453 -INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1.454 -AC_SUBST([INSTALL_STRIP_PROGRAM])])
1.456 -# -*- Autoconf -*-
1.457 -# Copyright (C) 2003 Free Software Foundation, Inc.
1.459 -# This program is free software; you can redistribute it and/or modify
1.460 -# it under the terms of the GNU General Public License as published by
1.461 -# the Free Software Foundation; either version 2, or (at your option)
1.462 -# any later version.
1.464 -# This program is distributed in the hope that it will be useful,
1.465 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
1.466 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1.467 -# GNU General Public License for more details.
1.469 -# You should have received a copy of the GNU General Public License
1.470 -# along with this program; if not, write to the Free Software
1.471 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1.472 -# 02111-1307, USA.
1.476 -# Check whether the underlying file-system supports filenames
1.477 -# with a leading dot. For instance MS-DOS doesn't.
1.478 -AC_DEFUN([AM_SET_LEADING_DOT],
1.479 -[rm -rf .tst 2>/dev/null
1.480 -mkdir .tst 2>/dev/null
1.481 -if test -d .tst; then
1.482 - am__leading_dot=.
1.484 - am__leading_dot=_
1.486 -rmdir .tst 2>/dev/null
1.487 -AC_SUBST([am__leading_dot])])
1.489 -# serial 5 -*- Autoconf -*-
1.491 -# Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
1.493 -# This program is free software; you can redistribute it and/or modify
1.494 -# it under the terms of the GNU General Public License as published by
1.495 -# the Free Software Foundation; either version 2, or (at your option)
1.496 -# any later version.
1.498 -# This program is distributed in the hope that it will be useful,
1.499 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
1.500 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1.501 -# GNU General Public License for more details.
1.503 -# You should have received a copy of the GNU General Public License
1.504 -# along with this program; if not, write to the Free Software
1.505 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1.506 -# 02111-1307, USA.
1.509 -# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
1.510 -# written in clear, in which case automake, when reading aclocal.m4,
1.511 -# will think it sees a *use*, and therefore will trigger all it's
1.512 -# C support machinery. Also note that it means that autoscan, seeing
1.513 -# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
1.517 -# _AM_DEPENDENCIES(NAME)
1.518 -# ----------------------
1.519 -# See how the compiler implements dependency checking.
1.520 -# NAME is "CC", "CXX", "GCJ", or "OBJC".
1.521 -# We try a few techniques and use that to set a single cache variable.
1.523 -# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
1.524 -# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
1.525 -# dependency, and given that the user is not expected to run this macro,
1.526 -# just rely on AC_PROG_CC.
1.527 -AC_DEFUN([_AM_DEPENDENCIES],
1.528 -[AC_REQUIRE([AM_SET_DEPDIR])dnl
1.529 -AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
1.530 -AC_REQUIRE([AM_MAKE_INCLUDE])dnl
1.531 -AC_REQUIRE([AM_DEP_TRACK])dnl
1.533 -ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
1.534 - [$1], CXX, [depcc="$CXX" am_compiler_list=],
1.535 - [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
1.536 - [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
1.537 - [depcc="$$1" am_compiler_list=])
1.539 -AC_CACHE_CHECK([dependency style of $depcc],
1.540 - [am_cv_$1_dependencies_compiler_type],
1.541 -[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
1.542 - # We make a subdir and do the tests there. Otherwise we can end up
1.543 - # making bogus files that we don't know about and never remove. For
1.544 - # instance it was reported that on HP-UX the gcc test will end up
1.545 - # making a dummy file named `D' -- because `-MD' means `put the output
1.547 - mkdir conftest.dir
1.548 - # Copy depcomp to subdir because otherwise we won't find it if we're
1.549 - # using a relative directory.
1.550 - cp "$am_depcomp" conftest.dir
1.552 - # We will build objects and dependencies in a subdirectory because
1.553 - # it helps to detect inapplicable dependency modes. For instance
1.554 - # both Tru64's cc and ICC support -MD to output dependencies as a
1.555 - # side effect of compilation, but ICC will put the dependencies in
1.556 - # the current directory while Tru64 will put them in the object
1.560 - am_cv_$1_dependencies_compiler_type=none
1.561 - if test "$am_compiler_list" = ""; then
1.562 - am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
1.564 - for depmode in $am_compiler_list; do
1.565 - # Setup a source with many dependencies, because some compilers
1.566 - # like to wrap large dependency lists on column 80 (with \), and
1.567 - # we should not choose a depcomp mode which is confused by this.
1.569 - # We need to recreate these files for each test, as the compiler may
1.570 - # overwrite some of them when testing with obscure command lines.
1.571 - # This happens at least with the AIX C compiler.
1.572 - : > sub/conftest.c
1.573 - for i in 1 2 3 4 5 6; do
1.574 - echo '#include "conftst'$i'.h"' >> sub/conftest.c
1.575 - : > sub/conftst$i.h
1.577 - echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.581 - # after this tag, mechanisms are not by side-effect, so they'll
1.582 - # only be used when explicitly requested
1.583 - if test "x$enable_dependency_tracking" = xyes; then
1.591 - # We check with `-c' and `-o' for the sake of the "dashmstdout"
1.592 - # mode. It turns out that the SunPro C++ compiler does not properly
1.593 - # handle `-M -o', and we need to detect this.
1.594 - if depmode=$depmode \
1.595 - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
1.596 - depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
1.597 - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
1.598 - >/dev/null 2>conftest.err &&
1.599 - grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
1.600 - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
1.601 - ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1.602 - # icc doesn't choke on unknown options, it will just issue warnings
1.603 - # (even with -Werror). So we grep stderr for any message
1.604 - # that says an option was ignored.
1.605 - if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
1.606 - am_cv_$1_dependencies_compiler_type=$depmode
1.613 - rm -rf conftest.dir
1.615 - am_cv_$1_dependencies_compiler_type=none
1.618 -AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
1.619 -AM_CONDITIONAL([am__fastdep$1], [
1.620 - test "x$enable_dependency_tracking" != xno \
1.621 - && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
1.627 -# Choose a directory name for dependency files.
1.628 -# This macro is AC_REQUIREd in _AM_DEPENDENCIES
1.629 -AC_DEFUN([AM_SET_DEPDIR],
1.630 -[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
1.631 -AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
1.637 -AC_DEFUN([AM_DEP_TRACK],
1.638 -[AC_ARG_ENABLE(dependency-tracking,
1.639 -[ --disable-dependency-tracking Speeds up one-time builds
1.640 - --enable-dependency-tracking Do not reject slow dependency extractors])
1.641 -if test "x$enable_dependency_tracking" != xno; then
1.642 - am_depcomp="$ac_aux_dir/depcomp"
1.643 - AMDEPBACKSLASH='\'
1.645 -AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
1.646 -AC_SUBST([AMDEPBACKSLASH])
1.649 -# Generate code to set up dependency tracking. -*- Autoconf -*-
1.651 -# Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
1.653 -# This program is free software; you can redistribute it and/or modify
1.654 -# it under the terms of the GNU General Public License as published by
1.655 -# the Free Software Foundation; either version 2, or (at your option)
1.656 -# any later version.
1.658 -# This program is distributed in the hope that it will be useful,
1.659 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
1.660 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1.661 -# GNU General Public License for more details.
1.663 -# You should have received a copy of the GNU General Public License
1.664 -# along with this program; if not, write to the Free Software
1.665 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1.666 -# 02111-1307, USA.
1.670 -# _AM_OUTPUT_DEPENDENCY_COMMANDS
1.671 -# ------------------------------
1.672 -AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
1.673 -[for mf in $CONFIG_FILES; do
1.674 - # Strip MF so we end up with the name of the file.
1.675 - mf=`echo "$mf" | sed -e 's/:.*$//'`
1.676 - # Check whether this is an Automake generated Makefile or not.
1.677 - # We used to match only the files named `Makefile.in', but
1.678 - # some people rename them; so instead we look at the file content.
1.679 - # Grep'ing the first line is not enough: some people post-process
1.680 - # each Makefile.in and add a new line on top of each file to say so.
1.681 - # So let's grep whole file.
1.682 - if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
1.683 - dirpart=`AS_DIRNAME("$mf")`
1.687 - grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue
1.688 - # Extract the definition of DEP_FILES from the Makefile without
1.689 - # running `make'.
1.690 - DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
1.691 - test -z "$DEPDIR" && continue
1.692 - # When using ansi2knr, U may be empty or an underscore; expand it
1.693 - U=`sed -n -e '/^U = / s///p' < "$mf"`
1.694 - test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
1.695 - # We invoke sed twice because it is the simplest approach to
1.696 - # changing $(DEPDIR) to its actual value in the expansion.
1.697 - for file in `sed -n -e '
1.698 - /^DEP_FILES = .*\\\\$/ {
1.699 - s/^DEP_FILES = //
1.707 - /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
1.708 - sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
1.709 - # Make sure the directory exists.
1.710 - test -f "$dirpart/$file" && continue
1.711 - fdir=`AS_DIRNAME(["$file"])`
1.712 - AS_MKDIR_P([$dirpart/$fdir])
1.713 - # echo "creating $dirpart/$file"
1.714 - echo '# dummy' > "$dirpart/$file"
1.717 -])# _AM_OUTPUT_DEPENDENCY_COMMANDS
1.720 -# AM_OUTPUT_DEPENDENCY_COMMANDS
1.721 -# -----------------------------
1.722 -# This macro should only be invoked once -- use via AC_REQUIRE.
1.724 -# This code is only required when automatic dependency tracking
1.725 -# is enabled. FIXME. This creates each `.P' file that we will
1.726 -# need in order to bootstrap the dependency handling code.
1.727 -AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
1.728 -[AC_CONFIG_COMMANDS([depfiles],
1.729 - [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
1.730 - [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
1.733 -# Check to see how 'make' treats includes. -*- Autoconf -*-
1.735 -# Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
1.737 -# This program is free software; you can redistribute it and/or modify
1.738 -# it under the terms of the GNU General Public License as published by
1.739 -# the Free Software Foundation; either version 2, or (at your option)
1.740 -# any later version.
1.742 -# This program is distributed in the hope that it will be useful,
1.743 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
1.744 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1.745 -# GNU General Public License for more details.
1.747 -# You should have received a copy of the GNU General Public License
1.748 -# along with this program; if not, write to the Free Software
1.749 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1.750 -# 02111-1307, USA.
1.754 -# AM_MAKE_INCLUDE()
1.755 -# -----------------
1.756 -# Check to see how make treats includes.
1.757 -AC_DEFUN([AM_MAKE_INCLUDE],
1.758 -[am_make=${MAKE-make}
1.759 -cat > confinc << 'END'
1.764 -# If we don't find an include directive, just comment out the code.
1.765 -AC_MSG_CHECKING([for style of include used by $am_make])
1.769 -# First try GNU make style include.
1.770 -echo "include confinc" > confmf
1.771 -# We grep out `Entering directory' and `Leaving directory'
1.772 -# messages which can occur if `w' ends up in MAKEFLAGS.
1.773 -# In particular we don't look at `^make:' because GNU make might
1.774 -# be invoked under some other name (usually "gmake"), in which
1.775 -# case it prints its new name instead of `make'.
1.776 -if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
1.777 - am__include=include
1.781 -# Now try BSD make style include.
1.782 -if test "$am__include" = "#"; then
1.783 - echo '.include "confinc"' > confmf
1.784 - if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
1.785 - am__include=.include
1.790 -AC_SUBST([am__include])
1.791 -AC_SUBST([am__quote])
1.792 -AC_MSG_RESULT([$_am_result])
1.793 -rm -f confinc confmf
1.796 -# AM_CONDITIONAL -*- Autoconf -*-
1.798 -# Copyright 1997, 2000, 2001 Free Software Foundation, Inc.
1.800 -# This program is free software; you can redistribute it and/or modify
1.801 -# it under the terms of the GNU General Public License as published by
1.802 -# the Free Software Foundation; either version 2, or (at your option)
1.803 -# any later version.
1.805 -# This program is distributed in the hope that it will be useful,
1.806 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
1.807 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1.808 -# GNU General Public License for more details.
1.810 -# You should have received a copy of the GNU General Public License
1.811 -# along with this program; if not, write to the Free Software
1.812 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1.813 -# 02111-1307, USA.
1.819 -# AM_CONDITIONAL(NAME, SHELL-CONDITION)
1.820 -# -------------------------------------
1.821 -# Define a conditional.
1.822 -AC_DEFUN([AM_CONDITIONAL],
1.823 -[ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
1.824 - [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
1.825 -AC_SUBST([$1_TRUE])
1.826 -AC_SUBST([$1_FALSE])
1.834 -AC_CONFIG_COMMANDS_PRE(
1.835 -[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
1.836 - AC_MSG_ERROR([conditional "$1" was never defined.
1.837 -Usually this means the macro was only invoked conditionally.])
1.840 -# Add --enable-maintainer-mode option to configure.
1.841 -# From Jim Meyering
1.843 -# Copyright 1996, 1998, 2000, 2001, 2002 Free Software Foundation, Inc.
1.845 -# This program is free software; you can redistribute it and/or modify
1.846 -# it under the terms of the GNU General Public License as published by
1.847 -# the Free Software Foundation; either version 2, or (at your option)
1.848 -# any later version.
1.850 -# This program is distributed in the hope that it will be useful,
1.851 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
1.852 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1.853 -# GNU General Public License for more details.
1.855 -# You should have received a copy of the GNU General Public License
1.856 -# along with this program; if not, write to the Free Software
1.857 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1.858 -# 02111-1307, USA.
1.862 -AC_DEFUN([AM_MAINTAINER_MODE],
1.863 -[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
1.864 - dnl maintainer-mode is disabled by default
1.865 - AC_ARG_ENABLE(maintainer-mode,
1.866 -[ --enable-maintainer-mode enable make rules and dependencies not useful
1.867 - (and sometimes confusing) to the casual installer],
1.868 - USE_MAINTAINER_MODE=$enableval,
1.869 - USE_MAINTAINER_MODE=no)
1.870 - AC_MSG_RESULT([$USE_MAINTAINER_MODE])
1.871 - AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
1.872 - MAINT=$MAINTAINER_MODE_TRUE
1.873 - AC_SUBST(MAINT)dnl
1.877 -AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
1.879 -# Like AC_CONFIG_HEADER, but automatically create stamp file. -*- Autoconf -*-
1.881 -# Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
1.883 -# This program is free software; you can redistribute it and/or modify
1.884 -# it under the terms of the GNU General Public License as published by
1.885 -# the Free Software Foundation; either version 2, or (at your option)
1.886 -# any later version.
1.888 -# This program is distributed in the hope that it will be useful,
1.889 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
1.890 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1.891 -# GNU General Public License for more details.
1.893 -# You should have received a copy of the GNU General Public License
1.894 -# along with this program; if not, write to the Free Software
1.895 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1.896 -# 02111-1307, USA.
1.902 -# AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
1.903 -AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
1.906 -# Copyright 1996, 1997, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
1.908 -# This program is free software; you can redistribute it and/or modify
1.909 -# it under the terms of the GNU General Public License as published by
1.910 -# the Free Software Foundation; either version 2, or (at your option)
1.911 -# any later version.
1.913 -# This program is distributed in the hope that it will be useful,
1.914 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
1.915 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1.916 -# GNU General Public License for more details.
1.918 -# You should have received a copy of the GNU General Public License
1.919 -# along with this program; if not, write to the Free Software
1.920 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1.921 -# 02111-1307, USA.
1.925 -# @defmac AC_PROG_CC_STDC
1.926 -# @maindex PROG_CC_STDC
1.928 -# If the C compiler in not in ANSI C mode by default, try to add an option
1.929 -# to output variable @code{CC} to make it so. This macro tries various
1.930 -# options that select ANSI C on some system or another. It considers the
1.931 -# compiler to be in ANSI C mode if it handles function prototypes correctly.
1.933 -# If you use this macro, you should check after calling it whether the C
1.934 -# compiler has been set to accept ANSI C; if not, the shell variable
1.935 -# @code{am_cv_prog_cc_stdc} is set to @samp{no}. If you wrote your source
1.936 -# code in ANSI C, you can make an un-ANSIfied copy of it by using the
1.937 -# program @code{ansi2knr}, which comes with Ghostscript.
1.940 -AC_DEFUN([AM_PROG_CC_STDC],
1.941 -[AC_REQUIRE([AC_PROG_CC])
1.942 -AC_BEFORE([$0], [AC_C_INLINE])
1.943 -AC_BEFORE([$0], [AC_C_CONST])
1.944 -dnl Force this before AC_PROG_CPP. Some cpp's, eg on HPUX, require
1.945 -dnl a magic option to avoid problems with ANSI preprocessor commands
1.947 -dnl FIXME: can't do this because then AC_AIX won't work due to a
1.948 -dnl circular dependency.
1.949 -dnl AC_BEFORE([$0], [AC_PROG_CPP])
1.950 -AC_MSG_CHECKING([for ${CC-cc} option to accept ANSI C])
1.951 -AC_CACHE_VAL(am_cv_prog_cc_stdc,
1.952 -[am_cv_prog_cc_stdc=no
1.954 -# Don't try gcc -ansi; that turns off useful extensions and
1.955 -# breaks some systems' header files.
1.956 -# AIX -qlanglvl=ansi
1.957 -# Ultrix and OSF/1 -std1
1.958 -# HP-UX 10.20 and later -Ae
1.959 -# HP-UX older versions -Aa -D_HPUX_SOURCE
1.960 -# SVR4 -Xc -D__EXTENSIONS__
1.961 -for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1.963 - CC="$ac_save_CC $ac_arg"
1.965 -[#include <stdarg.h>
1.966 -#include <stdio.h>
1.967 -#include <sys/types.h>
1.968 -#include <sys/stat.h>
1.969 -/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1.970 -struct buf { int x; };
1.971 -FILE * (*rcsopen) (struct buf *, struct stat *, int);
1.972 -static char *e (p, i)
1.978 -static char *f (char * (*g) (char **, int), char **p, ...)
1.983 - s = g (p, va_arg (v,int));
1.987 -int test (int i, double x);
1.988 -struct s1 {int (*f) (int a);};
1.989 -struct s2 {int (*f) (double a);};
1.990 -int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1.994 -return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1.996 -[am_cv_prog_cc_stdc="$ac_arg"; break])
1.1000 -if test -z "$am_cv_prog_cc_stdc"; then
1.1001 - AC_MSG_RESULT([none needed])
1.1003 - AC_MSG_RESULT([$am_cv_prog_cc_stdc])
1.1005 -case "x$am_cv_prog_cc_stdc" in
1.1007 - *) CC="$CC $am_cv_prog_cc_stdc" ;;
1.1011 -AU_DEFUN([fp_PROG_CC_STDC], [AM_PROG_CC_STDC])
1.1013 -# Figure out how to run the assembler. -*- Autoconf -*-
1.1017 -# Copyright 2001 Free Software Foundation, Inc.
1.1019 -# This program is free software; you can redistribute it and/or modify
1.1020 -# it under the terms of the GNU General Public License as published by
1.1021 -# the Free Software Foundation; either version 2, or (at your option)
1.1024 -# This program is distributed in the hope that it will be useful,
1.1025 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
1.1026 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1.1027 -# GNU General Public License for more details.
1.1029 -# You should have received a copy of the GNU General Public License
1.1030 -# along with this program; if not, write to the Free Software
1.1031 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1.1036 -AC_DEFUN([AM_PROG_AS],
1.1037 -[# By default we simply use the C compiler to build assembly code.
1.1038 -AC_REQUIRE([AC_PROG_CC])
1.1040 -# Set ASFLAGS if not already set.
1.1041 -: ${CCASFLAGS='$(CFLAGS)'}
1.1045 -# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
1.1047 -# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
1.1049 -# This program is free software; you can redistribute it and/or modify
1.1050 -# it under the terms of the GNU General Public License as published by
1.1051 -# the Free Software Foundation; either version 2 of the License, or
1.1052 -# (at your option) any later version.
1.1054 -# This program is distributed in the hope that it will be useful, but
1.1055 -# WITHOUT ANY WARRANTY; without even the implied warranty of
1.1056 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1.1057 -# General Public License for more details.
1.1059 -# You should have received a copy of the GNU General Public License
1.1060 -# along with this program; if not, write to the Free Software
1.1061 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
1.1063 -# As a special exception to the GNU General Public License, if you
1.1064 -# distribute this file as part of a program that contains a
1.1065 -# configuration script generated by Autoconf, you may include it under
1.1066 -# the same distribution terms that you use for the rest of that program.
1.1068 -# PKG_PROG_PKG_CONFIG([MIN-VERSION])
1.1069 -# ----------------------------------
1.1070 -AC_DEFUN([PKG_PROG_PKG_CONFIG],
1.1071 -[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
1.1072 -m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
1.1073 -AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl
1.1074 -if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
1.1075 - AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
1.1077 -if test -n "$PKG_CONFIG"; then
1.1078 - _pkg_min_version=m4_default([$1], [0.9.0])
1.1079 - AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
1.1080 - if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
1.1088 -])# PKG_PROG_PKG_CONFIG
1.1090 -# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
1.1092 -# Check to see whether a particular set of modules exists. Similar
1.1093 -# to PKG_CHECK_MODULES(), but does not set variables or print errors.
1.1096 -# Similar to PKG_CHECK_MODULES, make sure that the first instance of
1.1097 -# this or PKG_CHECK_MODULES is called, or make sure to call
1.1098 -# PKG_CHECK_EXISTS manually
1.1099 -# --------------------------------------------------------------
1.1100 -AC_DEFUN([PKG_CHECK_EXISTS],
1.1101 -[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
1.1102 -if test -n "$PKG_CONFIG" && \
1.1103 - AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
1.1104 - m4_ifval([$2], [$2], [:])
1.1110 -# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
1.1111 -# ---------------------------------------------
1.1112 -m4_define([_PKG_CONFIG],
1.1113 -[if test -n "$PKG_CONFIG"; then
1.1114 - if test -n "$$1"; then
1.1117 - PKG_CHECK_EXISTS([$3],
1.1118 - [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
1.1126 -# _PKG_SHORT_ERRORS_SUPPORTED
1.1127 -# -----------------------------
1.1128 -AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
1.1129 -[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
1.1130 -if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
1.1131 - _pkg_short_errors_supported=yes
1.1133 - _pkg_short_errors_supported=no
1.1135 -])# _PKG_SHORT_ERRORS_SUPPORTED
1.1138 -# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
1.1139 -# [ACTION-IF-NOT-FOUND])
1.1142 -# Note that if there is a possibility the first call to
1.1143 -# PKG_CHECK_MODULES might not happen, you should be sure to include an
1.1144 -# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
1.1147 -# --------------------------------------------------------------
1.1148 -AC_DEFUN([PKG_CHECK_MODULES],
1.1149 -[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
1.1150 -AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
1.1151 -AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
1.1154 -AC_MSG_CHECKING([for $1])
1.1156 -_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
1.1157 -_PKG_CONFIG([$1][_LIBS], [libs], [$2])
1.1159 -m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
1.1160 -and $1[]_LIBS to avoid the need to call pkg-config.
1.1161 -See the pkg-config man page for more details.])
1.1163 -if test $pkg_failed = yes; then
1.1164 - _PKG_SHORT_ERRORS_SUPPORTED
1.1165 - if test $_pkg_short_errors_supported = yes; then
1.1166 - $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$2"`
1.1168 - $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
1.1170 - # Put the nasty error message in config.log where it belongs
1.1171 - echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
1.1173 - ifelse([$4], , [AC_MSG_ERROR(dnl
1.1174 -[Package requirements ($2) were not met:
1.1178 -Consider adjusting the PKG_CONFIG_PATH environment variable if you
1.1179 -installed software in a non-standard prefix.
1.1185 -elif test $pkg_failed = untried; then
1.1186 - ifelse([$4], , [AC_MSG_FAILURE(dnl
1.1187 -[The pkg-config script could not be found or is too old. Make sure it
1.1188 -is in your PATH or set the PKG_CONFIG environment variable to the full
1.1193 -To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.])],
1.1196 - $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
1.1197 - $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
1.1199 - ifelse([$3], , :, [$3])
1.1203 # Copyright (C) 1995-2002 Free Software Foundation, Inc.
1.1204 # Copyright (C) 2001-2003,2004 Red Hat, Inc.
1.1207 AC_CHECK_FUNCS(dcgettext)
1.1209 AC_MSG_CHECKING([if msgfmt accepts -c])
1.1210 - GLIB_RUN_PROG([$MSGFMT -c -o /dev/null],[
1.1211 + GLIB_RUN_PROG([msgfmt -c -o /dev/null],[
1.1214 "Content-Type: text/plain; charset=UTF-8\n"
1.1215 @@ -1630,3 +445,1108 @@
1.1219 +# isc-posix.m4 serial 2 (gettext-0.11.2)
1.1220 +dnl Copyright (C) 1995-2002 Free Software Foundation, Inc.
1.1221 +dnl This file is free software; the Free Software Foundation
1.1222 +dnl gives unlimited permission to copy and/or distribute it,
1.1223 +dnl with or without modifications, as long as this notice is preserved.
1.1225 +# This file is not needed with autoconf-2.53 and newer. Remove it in 2005.
1.1227 +# This test replaces the one in autoconf.
1.1228 +# Currently this macro should have the same name as the autoconf macro
1.1229 +# because gettext's gettext.m4 (distributed in the automake package)
1.1230 +# still uses it. Otherwise, the use in gettext.m4 makes autoheader
1.1231 +# give these diagnostics:
1.1232 +# configure.in:556: AC_TRY_COMPILE was called before AC_ISC_POSIX
1.1233 +# configure.in:556: AC_TRY_RUN was called before AC_ISC_POSIX
1.1235 +undefine([AC_ISC_POSIX])
1.1237 +AC_DEFUN([AC_ISC_POSIX],
1.1239 + dnl This test replaces the obsolescent AC_ISC_POSIX kludge.
1.1240 + AC_CHECK_LIB(cposix, strerror, [LIBS="$LIBS -lcposix"])
1.1244 +# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
1.1246 +# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
1.1248 +# This program is free software; you can redistribute it and/or modify
1.1249 +# it under the terms of the GNU General Public License as published by
1.1250 +# the Free Software Foundation; either version 2 of the License, or
1.1251 +# (at your option) any later version.
1.1253 +# This program is distributed in the hope that it will be useful, but
1.1254 +# WITHOUT ANY WARRANTY; without even the implied warranty of
1.1255 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1.1256 +# General Public License for more details.
1.1258 +# You should have received a copy of the GNU General Public License
1.1259 +# along with this program; if not, write to the Free Software
1.1260 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
1.1262 +# As a special exception to the GNU General Public License, if you
1.1263 +# distribute this file as part of a program that contains a
1.1264 +# configuration script generated by Autoconf, you may include it under
1.1265 +# the same distribution terms that you use for the rest of that program.
1.1267 +# PKG_PROG_PKG_CONFIG([MIN-VERSION])
1.1268 +# ----------------------------------
1.1269 +AC_DEFUN([PKG_PROG_PKG_CONFIG],
1.1270 +[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
1.1271 +m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
1.1272 +AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl
1.1273 +if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
1.1274 + AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
1.1276 +if test -n "$PKG_CONFIG"; then
1.1277 + _pkg_min_version=m4_default([$1], [0.9.0])
1.1278 + AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
1.1279 + if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
1.1287 +])# PKG_PROG_PKG_CONFIG
1.1289 +# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
1.1291 +# Check to see whether a particular set of modules exists. Similar
1.1292 +# to PKG_CHECK_MODULES(), but does not set variables or print errors.
1.1295 +# Similar to PKG_CHECK_MODULES, make sure that the first instance of
1.1296 +# this or PKG_CHECK_MODULES is called, or make sure to call
1.1297 +# PKG_CHECK_EXISTS manually
1.1298 +# --------------------------------------------------------------
1.1299 +AC_DEFUN([PKG_CHECK_EXISTS],
1.1300 +[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
1.1301 +if test -n "$PKG_CONFIG" && \
1.1302 + AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
1.1303 + m4_ifval([$2], [$2], [:])
1.1309 +# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
1.1310 +# ---------------------------------------------
1.1311 +m4_define([_PKG_CONFIG],
1.1312 +[if test -n "$PKG_CONFIG"; then
1.1313 + if test -n "$$1"; then
1.1316 + PKG_CHECK_EXISTS([$3],
1.1317 + [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
1.1325 +# _PKG_SHORT_ERRORS_SUPPORTED
1.1326 +# -----------------------------
1.1327 +AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
1.1328 +[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
1.1329 +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
1.1330 + _pkg_short_errors_supported=yes
1.1332 + _pkg_short_errors_supported=no
1.1334 +])# _PKG_SHORT_ERRORS_SUPPORTED
1.1337 +# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
1.1338 +# [ACTION-IF-NOT-FOUND])
1.1341 +# Note that if there is a possibility the first call to
1.1342 +# PKG_CHECK_MODULES might not happen, you should be sure to include an
1.1343 +# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
1.1346 +# --------------------------------------------------------------
1.1347 +AC_DEFUN([PKG_CHECK_MODULES],
1.1348 +[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
1.1349 +AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
1.1350 +AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
1.1353 +AC_MSG_CHECKING([for $1])
1.1355 +_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
1.1356 +_PKG_CONFIG([$1][_LIBS], [libs], [$2])
1.1358 +m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
1.1359 +and $1[]_LIBS to avoid the need to call pkg-config.
1.1360 +See the pkg-config man page for more details.])
1.1362 +if test $pkg_failed = yes; then
1.1363 + _PKG_SHORT_ERRORS_SUPPORTED
1.1364 + if test $_pkg_short_errors_supported = yes; then
1.1365 + $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$2"`
1.1367 + $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
1.1369 + # Put the nasty error message in config.log where it belongs
1.1370 + echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
1.1372 + ifelse([$4], , [AC_MSG_ERROR(dnl
1.1373 +[Package requirements ($2) were not met:
1.1377 +Consider adjusting the PKG_CONFIG_PATH environment variable if you
1.1378 +installed software in a non-standard prefix.
1.1384 +elif test $pkg_failed = untried; then
1.1385 + ifelse([$4], , [AC_MSG_FAILURE(dnl
1.1386 +[The pkg-config script could not be found or is too old. Make sure it
1.1387 +is in your PATH or set the PKG_CONFIG environment variable to the full
1.1392 +To get pkg-config, see <http://pkg-config.freedesktop.org/>.])],
1.1395 + $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
1.1396 + $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
1.1398 + ifelse([$3], , :, [$3])
1.1402 +# Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc.
1.1404 +# This file is free software; the Free Software Foundation
1.1405 +# gives unlimited permission to copy and/or distribute it,
1.1406 +# with or without modifications, as long as this notice is preserved.
1.1408 +# AM_AUTOMAKE_VERSION(VERSION)
1.1409 +# ----------------------------
1.1410 +# Automake X.Y traces this macro to ensure aclocal.m4 has been
1.1411 +# generated from the m4 files accompanying Automake X.Y.
1.1412 +AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
1.1414 +# AM_SET_CURRENT_AUTOMAKE_VERSION
1.1415 +# -------------------------------
1.1416 +# Call AM_AUTOMAKE_VERSION so it can be traced.
1.1417 +# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
1.1418 +AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
1.1419 + [AM_AUTOMAKE_VERSION([1.9.6])])
1.1421 +# Figure out how to run the assembler. -*- Autoconf -*-
1.1423 +# Copyright (C) 2001, 2003, 2004, 2005 Free Software Foundation, Inc.
1.1425 +# This file is free software; the Free Software Foundation
1.1426 +# gives unlimited permission to copy and/or distribute it,
1.1427 +# with or without modifications, as long as this notice is preserved.
1.1433 +AC_DEFUN([AM_PROG_AS],
1.1434 +[# By default we simply use the C compiler to build assembly code.
1.1435 +AC_REQUIRE([AC_PROG_CC])
1.1436 +test "${CCAS+set}" = set || CCAS=$CC
1.1437 +test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
1.1438 +AC_ARG_VAR([CCAS], [assembler compiler command (defaults to CC)])
1.1439 +AC_ARG_VAR([CCASFLAGS], [assembler compiler flags (defaults to CFLAGS)])
1.1442 +# AM_AUX_DIR_EXPAND -*- Autoconf -*-
1.1444 +# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
1.1446 +# This file is free software; the Free Software Foundation
1.1447 +# gives unlimited permission to copy and/or distribute it,
1.1448 +# with or without modifications, as long as this notice is preserved.
1.1450 +# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
1.1451 +# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
1.1452 +# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
1.1454 +# Of course, Automake must honor this variable whenever it calls a
1.1455 +# tool from the auxiliary directory. The problem is that $srcdir (and
1.1456 +# therefore $ac_aux_dir as well) can be either absolute or relative,
1.1457 +# depending on how configure is run. This is pretty annoying, since
1.1458 +# it makes $ac_aux_dir quite unusable in subdirectories: in the top
1.1459 +# source directory, any form will work fine, but in subdirectories a
1.1460 +# relative path needs to be adjusted first.
1.1463 +# fails when called from a subdirectory if $ac_aux_dir is relative
1.1464 +# $top_srcdir/$ac_aux_dir/missing
1.1465 +# fails if $ac_aux_dir is absolute,
1.1466 +# fails when called from a subdirectory in a VPATH build with
1.1467 +# a relative $ac_aux_dir
1.1469 +# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
1.1470 +# are both prefixed by $srcdir. In an in-source build this is usually
1.1471 +# harmless because $srcdir is `.', but things will broke when you
1.1472 +# start a VPATH build or use an absolute $srcdir.
1.1474 +# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
1.1475 +# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
1.1476 +# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
1.1477 +# and then we would define $MISSING as
1.1478 +# MISSING="\${SHELL} $am_aux_dir/missing"
1.1479 +# This will work as long as MISSING is not called from configure, because
1.1480 +# unfortunately $(top_srcdir) has no meaning in configure.
1.1481 +# However there are other variables, like CC, which are often used in
1.1482 +# configure, and could therefore not use this "fixed" $ac_aux_dir.
1.1484 +# Another solution, used here, is to always expand $ac_aux_dir to an
1.1485 +# absolute PATH. The drawback is that using absolute paths prevent a
1.1486 +# configured tree to be moved without reconfiguration.
1.1488 +AC_DEFUN([AM_AUX_DIR_EXPAND],
1.1489 +[dnl Rely on autoconf to set up CDPATH properly.
1.1491 +# expand $ac_aux_dir to an absolute path
1.1492 +am_aux_dir=`cd $ac_aux_dir && pwd`
1.1496 +# Copyright (C) 1996, 1997, 1999, 2000, 2001, 2002, 2003, 2005
1.1497 +# Free Software Foundation, Inc.
1.1499 +# This file is free software; the Free Software Foundation
1.1500 +# gives unlimited permission to copy and/or distribute it,
1.1501 +# with or without modifications, as long as this notice is preserved.
1.1505 +# This was merged into AC_PROG_CC in Autoconf.
1.1507 +AU_DEFUN([AM_PROG_CC_STDC],
1.1509 +AC_DIAGNOSE([obsolete], [$0:
1.1510 + your code should no longer depend upon `am_cv_prog_cc_stdc', but upon
1.1511 + `ac_cv_prog_cc_stdc'. Remove this warning and the assignment when
1.1512 + you adjust the code. You can also remove the above call to
1.1513 + AC_PROG_CC if you already called it elsewhere.])
1.1514 +am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
1.1516 +AU_DEFUN([fp_PROG_CC_STDC])
1.1518 +# AM_CONDITIONAL -*- Autoconf -*-
1.1520 +# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
1.1521 +# Free Software Foundation, Inc.
1.1523 +# This file is free software; the Free Software Foundation
1.1524 +# gives unlimited permission to copy and/or distribute it,
1.1525 +# with or without modifications, as long as this notice is preserved.
1.1529 +# AM_CONDITIONAL(NAME, SHELL-CONDITION)
1.1530 +# -------------------------------------
1.1531 +# Define a conditional.
1.1532 +AC_DEFUN([AM_CONDITIONAL],
1.1534 + ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
1.1535 + [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
1.1545 +AC_CONFIG_COMMANDS_PRE(
1.1546 +[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
1.1547 + AC_MSG_ERROR([[conditional "$1" was never defined.
1.1548 +Usually this means the macro was only invoked conditionally.]])
1.1552 +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
1.1553 +# Free Software Foundation, Inc.
1.1555 +# This file is free software; the Free Software Foundation
1.1556 +# gives unlimited permission to copy and/or distribute it,
1.1557 +# with or without modifications, as long as this notice is preserved.
1.1561 +# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
1.1562 +# written in clear, in which case automake, when reading aclocal.m4,
1.1563 +# will think it sees a *use*, and therefore will trigger all it's
1.1564 +# C support machinery. Also note that it means that autoscan, seeing
1.1565 +# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
1.1568 +# _AM_DEPENDENCIES(NAME)
1.1569 +# ----------------------
1.1570 +# See how the compiler implements dependency checking.
1.1571 +# NAME is "CC", "CXX", "GCJ", or "OBJC".
1.1572 +# We try a few techniques and use that to set a single cache variable.
1.1574 +# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
1.1575 +# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
1.1576 +# dependency, and given that the user is not expected to run this macro,
1.1577 +# just rely on AC_PROG_CC.
1.1578 +AC_DEFUN([_AM_DEPENDENCIES],
1.1579 +[AC_REQUIRE([AM_SET_DEPDIR])dnl
1.1580 +AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
1.1581 +AC_REQUIRE([AM_MAKE_INCLUDE])dnl
1.1582 +AC_REQUIRE([AM_DEP_TRACK])dnl
1.1584 +ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
1.1585 + [$1], CXX, [depcc="$CXX" am_compiler_list=],
1.1586 + [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
1.1587 + [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
1.1588 + [depcc="$$1" am_compiler_list=])
1.1590 +AC_CACHE_CHECK([dependency style of $depcc],
1.1591 + [am_cv_$1_dependencies_compiler_type],
1.1592 +[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
1.1593 + # We make a subdir and do the tests there. Otherwise we can end up
1.1594 + # making bogus files that we don't know about and never remove. For
1.1595 + # instance it was reported that on HP-UX the gcc test will end up
1.1596 + # making a dummy file named `D' -- because `-MD' means `put the output
1.1599 + # Copy depcomp to subdir because otherwise we won't find it if we're
1.1600 + # using a relative directory.
1.1601 + cp "$am_depcomp" conftest.dir
1.1603 + # We will build objects and dependencies in a subdirectory because
1.1604 + # it helps to detect inapplicable dependency modes. For instance
1.1605 + # both Tru64's cc and ICC support -MD to output dependencies as a
1.1606 + # side effect of compilation, but ICC will put the dependencies in
1.1607 + # the current directory while Tru64 will put them in the object
1.1611 + am_cv_$1_dependencies_compiler_type=none
1.1612 + if test "$am_compiler_list" = ""; then
1.1613 + am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
1.1615 + for depmode in $am_compiler_list; do
1.1616 + # Setup a source with many dependencies, because some compilers
1.1617 + # like to wrap large dependency lists on column 80 (with \), and
1.1618 + # we should not choose a depcomp mode which is confused by this.
1.1620 + # We need to recreate these files for each test, as the compiler may
1.1621 + # overwrite some of them when testing with obscure command lines.
1.1622 + # This happens at least with the AIX C compiler.
1.1624 + for i in 1 2 3 4 5 6; do
1.1625 + echo '#include "conftst'$i'.h"' >> sub/conftest.c
1.1626 + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
1.1627 + # Solaris 8's {/usr,}/bin/sh.
1.1628 + touch sub/conftst$i.h
1.1630 + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.1634 + # after this tag, mechanisms are not by side-effect, so they'll
1.1635 + # only be used when explicitly requested
1.1636 + if test "x$enable_dependency_tracking" = xyes; then
1.1644 + # We check with `-c' and `-o' for the sake of the "dashmstdout"
1.1645 + # mode. It turns out that the SunPro C++ compiler does not properly
1.1646 + # handle `-M -o', and we need to detect this.
1.1647 + if depmode=$depmode \
1.1648 + source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
1.1649 + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
1.1650 + $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
1.1651 + >/dev/null 2>conftest.err &&
1.1652 + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
1.1653 + grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
1.1654 + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1.1655 + # icc doesn't choke on unknown options, it will just issue warnings
1.1656 + # or remarks (even with -Werror). So we grep stderr for any message
1.1657 + # that says an option was ignored or not supported.
1.1658 + # When given -MP, icc 7.0 and 7.1 complain thusly:
1.1659 + # icc: Command line warning: ignoring option '-M'; no argument required
1.1660 + # The diagnosis changed in icc 8.0:
1.1661 + # icc: Command line remark: option '-MP' not supported
1.1662 + if (grep 'ignoring option' conftest.err ||
1.1663 + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
1.1664 + am_cv_$1_dependencies_compiler_type=$depmode
1.1673 + am_cv_$1_dependencies_compiler_type=none
1.1676 +AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
1.1677 +AM_CONDITIONAL([am__fastdep$1], [
1.1678 + test "x$enable_dependency_tracking" != xno \
1.1679 + && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
1.1685 +# Choose a directory name for dependency files.
1.1686 +# This macro is AC_REQUIREd in _AM_DEPENDENCIES
1.1687 +AC_DEFUN([AM_SET_DEPDIR],
1.1688 +[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
1.1689 +AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
1.1695 +AC_DEFUN([AM_DEP_TRACK],
1.1696 +[AC_ARG_ENABLE(dependency-tracking,
1.1697 +[ --disable-dependency-tracking speeds up one-time build
1.1698 + --enable-dependency-tracking do not reject slow dependency extractors])
1.1699 +if test "x$enable_dependency_tracking" != xno; then
1.1700 + am_depcomp="$ac_aux_dir/depcomp"
1.1703 +AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
1.1704 +AC_SUBST([AMDEPBACKSLASH])
1.1707 +# Generate code to set up dependency tracking. -*- Autoconf -*-
1.1709 +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
1.1710 +# Free Software Foundation, Inc.
1.1712 +# This file is free software; the Free Software Foundation
1.1713 +# gives unlimited permission to copy and/or distribute it,
1.1714 +# with or without modifications, as long as this notice is preserved.
1.1718 +# _AM_OUTPUT_DEPENDENCY_COMMANDS
1.1719 +# ------------------------------
1.1720 +AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
1.1721 +[for mf in $CONFIG_FILES; do
1.1722 + # Strip MF so we end up with the name of the file.
1.1723 + mf=`echo "$mf" | sed -e 's/:.*$//'`
1.1724 + # Check whether this is an Automake generated Makefile or not.
1.1725 + # We used to match only the files named `Makefile.in', but
1.1726 + # some people rename them; so instead we look at the file content.
1.1727 + # Grep'ing the first line is not enough: some people post-process
1.1728 + # each Makefile.in and add a new line on top of each file to say so.
1.1729 + # So let's grep whole file.
1.1730 + if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
1.1731 + dirpart=`AS_DIRNAME("$mf")`
1.1735 + # Extract the definition of DEPDIR, am__include, and am__quote
1.1736 + # from the Makefile without running `make'.
1.1737 + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
1.1738 + test -z "$DEPDIR" && continue
1.1739 + am__include=`sed -n 's/^am__include = //p' < "$mf"`
1.1740 + test -z "am__include" && continue
1.1741 + am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
1.1742 + # When using ansi2knr, U may be empty or an underscore; expand it
1.1743 + U=`sed -n 's/^U = //p' < "$mf"`
1.1744 + # Find all dependency output files, they are included files with
1.1745 + # $(DEPDIR) in their names. We invoke sed twice because it is the
1.1746 + # simplest approach to changing $(DEPDIR) to its actual value in the
1.1748 + for file in `sed -n "
1.1749 + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
1.1750 + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
1.1751 + # Make sure the directory exists.
1.1752 + test -f "$dirpart/$file" && continue
1.1753 + fdir=`AS_DIRNAME(["$file"])`
1.1754 + AS_MKDIR_P([$dirpart/$fdir])
1.1755 + # echo "creating $dirpart/$file"
1.1756 + echo '# dummy' > "$dirpart/$file"
1.1759 +])# _AM_OUTPUT_DEPENDENCY_COMMANDS
1.1762 +# AM_OUTPUT_DEPENDENCY_COMMANDS
1.1763 +# -----------------------------
1.1764 +# This macro should only be invoked once -- use via AC_REQUIRE.
1.1766 +# This code is only required when automatic dependency tracking
1.1767 +# is enabled. FIXME. This creates each `.P' file that we will
1.1768 +# need in order to bootstrap the dependency handling code.
1.1769 +AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
1.1770 +[AC_CONFIG_COMMANDS([depfiles],
1.1771 + [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
1.1772 + [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
1.1775 +# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
1.1776 +# Free Software Foundation, Inc.
1.1778 +# This file is free software; the Free Software Foundation
1.1779 +# gives unlimited permission to copy and/or distribute it,
1.1780 +# with or without modifications, as long as this notice is preserved.
1.1784 +# AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
1.1785 +AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
1.1787 +# Do all the work for Automake. -*- Autoconf -*-
1.1789 +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
1.1790 +# Free Software Foundation, Inc.
1.1792 +# This file is free software; the Free Software Foundation
1.1793 +# gives unlimited permission to copy and/or distribute it,
1.1794 +# with or without modifications, as long as this notice is preserved.
1.1798 +# This macro actually does too much. Some checks are only needed if
1.1799 +# your package does certain things. But this isn't really a big deal.
1.1801 +# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
1.1802 +# AM_INIT_AUTOMAKE([OPTIONS])
1.1803 +# -----------------------------------------------
1.1804 +# The call with PACKAGE and VERSION arguments is the old style
1.1805 +# call (pre autoconf-2.50), which is being phased out. PACKAGE
1.1806 +# and VERSION should now be passed to AC_INIT and removed from
1.1807 +# the call to AM_INIT_AUTOMAKE.
1.1808 +# We support both call styles for the transition. After
1.1809 +# the next Automake release, Autoconf can make the AC_INIT
1.1810 +# arguments mandatory, and then we can depend on a new Autoconf
1.1811 +# release and drop the old call support.
1.1812 +AC_DEFUN([AM_INIT_AUTOMAKE],
1.1814 +dnl Autoconf wants to disallow AM_ names. We explicitly allow
1.1815 +dnl the ones we care about.
1.1816 +m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
1.1817 +AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
1.1818 +AC_REQUIRE([AC_PROG_INSTALL])dnl
1.1819 +# test to see if srcdir already configured
1.1820 +if test "`cd $srcdir && pwd`" != "`pwd`" &&
1.1821 + test -f $srcdir/config.status; then
1.1822 + AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
1.1825 +# test whether we have cygpath
1.1826 +if test -z "$CYGPATH_W"; then
1.1827 + if (cygpath --version) >/dev/null 2>/dev/null; then
1.1828 + CYGPATH_W='cygpath -w'
1.1835 +# Define the identity of the package.
1.1836 +dnl Distinguish between old-style and new-style calls.
1.1838 +[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
1.1839 + AC_SUBST([PACKAGE], [$1])dnl
1.1840 + AC_SUBST([VERSION], [$2])],
1.1841 +[_AM_SET_OPTIONS([$1])dnl
1.1842 + AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
1.1843 + AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
1.1845 +_AM_IF_OPTION([no-define],,
1.1846 +[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
1.1847 + AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
1.1849 +# Some tools Automake needs.
1.1850 +AC_REQUIRE([AM_SANITY_CHECK])dnl
1.1851 +AC_REQUIRE([AC_ARG_PROGRAM])dnl
1.1852 +AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
1.1853 +AM_MISSING_PROG(AUTOCONF, autoconf)
1.1854 +AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
1.1855 +AM_MISSING_PROG(AUTOHEADER, autoheader)
1.1856 +AM_MISSING_PROG(MAKEINFO, makeinfo)
1.1859 +AC_REQUIRE([AM_PROG_MKDIR_P])dnl
1.1860 +# We need awk for the "check" target. The system "awk" is bad on
1.1862 +AC_REQUIRE([AC_PROG_AWK])dnl
1.1863 +AC_REQUIRE([AC_PROG_MAKE_SET])dnl
1.1864 +AC_REQUIRE([AM_SET_LEADING_DOT])dnl
1.1865 +_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
1.1866 + [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
1.1867 + [_AM_PROG_TAR([v7])])])
1.1868 +_AM_IF_OPTION([no-dependencies],,
1.1869 +[AC_PROVIDE_IFELSE([AC_PROG_CC],
1.1870 + [_AM_DEPENDENCIES(CC)],
1.1871 + [define([AC_PROG_CC],
1.1872 + defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
1.1873 +AC_PROVIDE_IFELSE([AC_PROG_CXX],
1.1874 + [_AM_DEPENDENCIES(CXX)],
1.1875 + [define([AC_PROG_CXX],
1.1876 + defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
1.1881 +# When config.status generates a header, we must update the stamp-h file.
1.1882 +# This file resides in the same directory as the config header
1.1883 +# that is generated. The stamp files are numbered to have different names.
1.1885 +# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
1.1886 +# loop where config.status creates the headers, so we can generate
1.1887 +# our stamp files there.
1.1888 +AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
1.1889 +[# Compute $1's index in $config_headers.
1.1891 +for _am_header in $config_headers :; do
1.1896 + _am_stamp_count=`expr $_am_stamp_count + 1` ;;
1.1899 +echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
1.1901 +# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
1.1903 +# This file is free software; the Free Software Foundation
1.1904 +# gives unlimited permission to copy and/or distribute it,
1.1905 +# with or without modifications, as long as this notice is preserved.
1.1910 +AC_DEFUN([AM_PROG_INSTALL_SH],
1.1911 +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1.1912 +install_sh=${install_sh-"$am_aux_dir/install-sh"}
1.1913 +AC_SUBST(install_sh)])
1.1915 +# Copyright (C) 2003, 2005 Free Software Foundation, Inc.
1.1917 +# This file is free software; the Free Software Foundation
1.1918 +# gives unlimited permission to copy and/or distribute it,
1.1919 +# with or without modifications, as long as this notice is preserved.
1.1923 +# Check whether the underlying file-system supports filenames
1.1924 +# with a leading dot. For instance MS-DOS doesn't.
1.1925 +AC_DEFUN([AM_SET_LEADING_DOT],
1.1926 +[rm -rf .tst 2>/dev/null
1.1927 +mkdir .tst 2>/dev/null
1.1933 +rmdir .tst 2>/dev/null
1.1934 +AC_SUBST([am__leading_dot])])
1.1936 +# Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
1.1939 +# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005
1.1940 +# Free Software Foundation, Inc.
1.1942 +# This file is free software; the Free Software Foundation
1.1943 +# gives unlimited permission to copy and/or distribute it,
1.1944 +# with or without modifications, as long as this notice is preserved.
1.1948 +AC_DEFUN([AM_MAINTAINER_MODE],
1.1949 +[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
1.1950 + dnl maintainer-mode is disabled by default
1.1951 + AC_ARG_ENABLE(maintainer-mode,
1.1952 +[ --enable-maintainer-mode enable make rules and dependencies not useful
1.1953 + (and sometimes confusing) to the casual installer],
1.1954 + USE_MAINTAINER_MODE=$enableval,
1.1955 + USE_MAINTAINER_MODE=no)
1.1956 + AC_MSG_RESULT([$USE_MAINTAINER_MODE])
1.1957 + AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
1.1958 + MAINT=$MAINTAINER_MODE_TRUE
1.1963 +AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
1.1965 +# Check to see how 'make' treats includes. -*- Autoconf -*-
1.1967 +# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
1.1969 +# This file is free software; the Free Software Foundation
1.1970 +# gives unlimited permission to copy and/or distribute it,
1.1971 +# with or without modifications, as long as this notice is preserved.
1.1977 +# Check to see how make treats includes.
1.1978 +AC_DEFUN([AM_MAKE_INCLUDE],
1.1980 +cat > confinc << 'END'
1.1985 +# If we don't find an include directive, just comment out the code.
1.1986 +AC_MSG_CHECKING([for style of include used by $am_make])
1.1990 +# First try GNU make style include.
1.1991 +echo "include confinc" > confmf
1.1992 +# We grep out `Entering directory' and `Leaving directory'
1.1993 +# messages which can occur if `w' ends up in MAKEFLAGS.
1.1994 +# In particular we don't look at `^make:' because GNU make might
1.1995 +# be invoked under some other name (usually "gmake"), in which
1.1996 +# case it prints its new name instead of `make'.
1.1997 +if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
1.2002 +# Now try BSD make style include.
1.2003 +if test "$am__include" = "#"; then
1.2004 + echo '.include "confinc"' > confmf
1.2005 + if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
1.2011 +AC_SUBST([am__include])
1.2013 +AC_MSG_RESULT([$_am_result])
1.2017 +# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
1.2019 +# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
1.2020 +# Free Software Foundation, Inc.
1.2022 +# This file is free software; the Free Software Foundation
1.2023 +# gives unlimited permission to copy and/or distribute it,
1.2024 +# with or without modifications, as long as this notice is preserved.
1.2028 +# AM_MISSING_PROG(NAME, PROGRAM)
1.2029 +# ------------------------------
1.2030 +AC_DEFUN([AM_MISSING_PROG],
1.2031 +[AC_REQUIRE([AM_MISSING_HAS_RUN])
1.2032 +$1=${$1-"${am_missing_run}$2"}
1.2038 +# Define MISSING if not defined so far and test if it supports --run.
1.2039 +# If it does, set am_missing_run to use it, otherwise, to nothing.
1.2040 +AC_DEFUN([AM_MISSING_HAS_RUN],
1.2041 +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1.2042 +test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1.2043 +# Use eval to expand $SHELL
1.2044 +if eval "$MISSING --run true"; then
1.2045 + am_missing_run="$MISSING --run "
1.2048 + AC_MSG_WARN([`missing' script is too old or missing])
1.2052 +# Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
1.2054 +# This file is free software; the Free Software Foundation
1.2055 +# gives unlimited permission to copy and/or distribute it,
1.2056 +# with or without modifications, as long as this notice is preserved.
1.2060 +# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
1.2062 +# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
1.2063 +# created by `make install' are always world readable, even if the
1.2064 +# installer happens to have an overly restrictive umask (e.g. 077).
1.2065 +# This was a mistake. There are at least two reasons why we must not
1.2067 +# - it causes special bits like SGID to be ignored,
1.2068 +# - it may be too restrictive (some setups expect 775 directories).
1.2070 +# Do not use -m 0755 and let people choose whatever they expect by
1.2073 +# We cannot accept any implementation of `mkdir' that recognizes `-p'.
1.2074 +# Some implementations (such as Solaris 8's) are not thread-safe: if a
1.2075 +# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
1.2076 +# concurrently, both version can detect that a/ is missing, but only
1.2077 +# one can create it and the other will error out. Consequently we
1.2078 +# restrict ourselves to GNU make (using the --version option ensures
1.2080 +AC_DEFUN([AM_PROG_MKDIR_P],
1.2081 +[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1.2082 + # We used to keeping the `.' as first argument, in order to
1.2083 + # allow $(mkdir_p) to be used without argument. As in
1.2084 + # $(mkdir_p) $(somedir)
1.2085 + # where $(somedir) is conditionally defined. However this is wrong
1.2087 + # 1. if the package is installed by a user who cannot write `.'
1.2088 + # make install will fail,
1.2089 + # 2. the above comment should most certainly read
1.2090 + # $(mkdir_p) $(DESTDIR)$(somedir)
1.2091 + # so it does not work when $(somedir) is undefined and
1.2093 + # To support the latter case, we have to write
1.2094 + # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1.2095 + # so the `.' trick is pointless.
1.2096 + mkdir_p='mkdir -p --'
1.2098 + # On NextStep and OpenStep, the `mkdir' command does not
1.2099 + # recognize any option. It will interpret all options as
1.2100 + # directories to create, and then abort because `.' already
1.2102 + for d in ./-p ./--version;
1.2104 + test -d $d && rmdir $d
1.2106 + # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1.2107 + if test -f "$ac_aux_dir/mkinstalldirs"; then
1.2108 + mkdir_p='$(mkinstalldirs)'
1.2110 + mkdir_p='$(install_sh) -d'
1.2115 +# Helper functions for option handling. -*- Autoconf -*-
1.2117 +# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
1.2119 +# This file is free software; the Free Software Foundation
1.2120 +# gives unlimited permission to copy and/or distribute it,
1.2121 +# with or without modifications, as long as this notice is preserved.
1.2125 +# _AM_MANGLE_OPTION(NAME)
1.2126 +# -----------------------
1.2127 +AC_DEFUN([_AM_MANGLE_OPTION],
1.2128 +[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
1.2130 +# _AM_SET_OPTION(NAME)
1.2131 +# ------------------------------
1.2132 +# Set option NAME. Presently that only means defining a flag for this option.
1.2133 +AC_DEFUN([_AM_SET_OPTION],
1.2134 +[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
1.2136 +# _AM_SET_OPTIONS(OPTIONS)
1.2137 +# ----------------------------------
1.2138 +# OPTIONS is a space-separated list of Automake options.
1.2139 +AC_DEFUN([_AM_SET_OPTIONS],
1.2140 +[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
1.2142 +# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
1.2143 +# -------------------------------------------
1.2144 +# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
1.2145 +AC_DEFUN([_AM_IF_OPTION],
1.2146 +[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
1.2148 +# Check to make sure that the build environment is sane. -*- Autoconf -*-
1.2150 +# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
1.2151 +# Free Software Foundation, Inc.
1.2153 +# This file is free software; the Free Software Foundation
1.2154 +# gives unlimited permission to copy and/or distribute it,
1.2155 +# with or without modifications, as long as this notice is preserved.
1.2161 +AC_DEFUN([AM_SANITY_CHECK],
1.2162 +[AC_MSG_CHECKING([whether build environment is sane])
1.2165 +echo timestamp > conftest.file
1.2166 +# Do `set' in a subshell so we don't clobber the current shell's
1.2167 +# arguments. Must try -L first in case configure is actually a
1.2168 +# symlink; some systems play weird games with the mod time of symlinks
1.2169 +# (eg FreeBSD returns the mod time of the symlink's containing
1.2172 + set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1.2173 + if test "$[*]" = "X"; then
1.2175 + set X `ls -t $srcdir/configure conftest.file`
1.2178 + if test "$[*]" != "X $srcdir/configure conftest.file" \
1.2179 + && test "$[*]" != "X conftest.file $srcdir/configure"; then
1.2181 + # If neither matched, then we have a broken ls. This can happen
1.2182 + # if, for instance, CONFIG_SHELL is bash and it inherits a
1.2183 + # broken ls alias from the environment. This has actually
1.2184 + # happened. Such a system could not be considered "sane".
1.2185 + AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
1.2186 +alias in your environment])
1.2189 + test "$[2]" = conftest.file
1.2195 + AC_MSG_ERROR([newly created file is older than distributed files!
1.2196 +Check your system clock])
1.2200 +# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
1.2202 +# This file is free software; the Free Software Foundation
1.2203 +# gives unlimited permission to copy and/or distribute it,
1.2204 +# with or without modifications, as long as this notice is preserved.
1.2206 +# AM_PROG_INSTALL_STRIP
1.2207 +# ---------------------
1.2208 +# One issue with vendor `install' (even GNU) is that you can't
1.2209 +# specify the program used to strip binaries. This is especially
1.2210 +# annoying in cross-compiling environments, where the build's strip
1.2211 +# is unlikely to handle the host's binaries.
1.2212 +# Fortunately install-sh will honor a STRIPPROG variable, so we
1.2213 +# always use install-sh in `make install-strip', and initialize
1.2214 +# STRIPPROG with the value of the STRIP variable (set by the user).
1.2215 +AC_DEFUN([AM_PROG_INSTALL_STRIP],
1.2216 +[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
1.2217 +# Installed binaries are usually stripped using `strip' when the user
1.2218 +# run `make install-strip'. However `strip' might not be the right
1.2219 +# tool to use in cross-compilation environments, therefore Automake
1.2220 +# will honor the `STRIP' environment variable to overrule this program.
1.2221 +dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
1.2222 +if test "$cross_compiling" != no; then
1.2223 + AC_CHECK_TOOL([STRIP], [strip], :)
1.2225 +INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1.2226 +AC_SUBST([INSTALL_STRIP_PROGRAM])])
1.2228 +# Check how to create a tarball. -*- Autoconf -*-
1.2230 +# Copyright (C) 2004, 2005 Free Software Foundation, Inc.
1.2232 +# This file is free software; the Free Software Foundation
1.2233 +# gives unlimited permission to copy and/or distribute it,
1.2234 +# with or without modifications, as long as this notice is preserved.
1.2238 +# _AM_PROG_TAR(FORMAT)
1.2239 +# --------------------
1.2240 +# Check how to create a tarball in format FORMAT.
1.2241 +# FORMAT should be one of `v7', `ustar', or `pax'.
1.2243 +# Substitute a variable $(am__tar) that is a command
1.2244 +# writing to stdout a FORMAT-tarball containing the directory
1.2246 +# tardir=directory && $(am__tar) > result.tar
1.2248 +# Substitute a variable $(am__untar) that extract such
1.2249 +# a tarball read from stdin.
1.2250 +# $(am__untar) < result.tar
1.2251 +AC_DEFUN([_AM_PROG_TAR],
1.2252 +[# Always define AMTAR for backward compatibility.
1.2253 +AM_MISSING_PROG([AMTAR], [tar])
1.2255 + [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
1.2256 + [m4_case([$1], [ustar],, [pax],,
1.2257 + [m4_fatal([Unknown tar format])])
1.2258 +AC_MSG_CHECKING([how to create a $1 tar archive])
1.2259 +# Loop over all known methods to create a tar archive until one works.
1.2260 +_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
1.2261 +_am_tools=${am_cv_prog_tar_$1-$_am_tools}
1.2262 +# Do not fold the above two line into one, because Tru64 sh and
1.2263 +# Solaris sh will not grok spaces in the rhs of `-'.
1.2264 +for _am_tool in $_am_tools
1.2268 + for _am_tar in tar gnutar gtar;
1.2270 + AM_RUN_LOG([$_am_tar --version]) && break
1.2272 + am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
1.2273 + am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
1.2274 + am__untar="$_am_tar -xf -"
1.2277 + # Must skip GNU tar: if it does not support --format= it doesn't create
1.2278 + # ustar tarball either.
1.2279 + (tar --version) >/dev/null 2>&1 && continue
1.2280 + am__tar='tar chf - "$$tardir"'
1.2281 + am__tar_='tar chf - "$tardir"'
1.2285 + am__tar='pax -L -x $1 -w "$$tardir"'
1.2286 + am__tar_='pax -L -x $1 -w "$tardir"'
1.2290 + am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
1.2291 + am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
1.2292 + am__untar='cpio -i -H $1 -d'
1.2301 + # If the value was cached, stop now. We just wanted to have am__tar
1.2303 + test -n "${am_cv_prog_tar_$1}" && break
1.2305 + # tar/untar a dummy directory, and stop if the command works
1.2308 + echo GrepMe > conftest.dir/file
1.2309 + AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1.2311 + if test -s conftest.tar; then
1.2312 + AM_RUN_LOG([$am__untar <conftest.tar])
1.2313 + grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1.2318 +AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1.2319 +AC_MSG_RESULT([$am_cv_prog_tar_$1])])