8848
8856
# ----------------------------
8849
8857
# Automake X.Y traces this macro to ensure aclocal.m4 has been
8850
8858
# generated from the m4 files accompanying Automake X.Y.
8851
AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
8859
# (This private macro should not be called outside this file.)
8860
AC_DEFUN([AM_AUTOMAKE_VERSION],
8861
[am__api_version='1.10'
8862
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
8863
dnl require some minimum version. Point them to the right macro.
8864
m4_if([$1], [1.10.2], [],
8865
[AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
8868
# _AM_AUTOCONF_VERSION(VERSION)
8869
# -----------------------------
8870
# aclocal traces this macro to find the Autoconf version.
8871
# This is a private macro too. Using m4_define simplifies
8872
# the logic in aclocal, which can simply ignore this definition.
8873
m4_define([_AM_AUTOCONF_VERSION], [])
8853
8875
# AM_SET_CURRENT_AUTOMAKE_VERSION
8854
8876
# -------------------------------
8855
# Call AM_AUTOMAKE_VERSION so it can be traced.
8856
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
8877
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
8878
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
8857
8879
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
8858
[AM_AUTOMAKE_VERSION([1.9.6])])
8880
[AM_AUTOMAKE_VERSION([1.10.2])dnl
8881
m4_ifndef([AC_AUTOCONF_VERSION],
8882
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
8883
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
8860
8885
# AM_AUX_DIR_EXPAND -*- Autoconf -*-
8943
8970
Usually this means the macro was only invoked conditionally.]])
8947
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
8973
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
8948
8974
# Free Software Foundation, Inc.
8950
8976
# This file is free software; the Free Software Foundation
8951
8977
# gives unlimited permission to copy and/or distribute it,
8952
8978
# with or without modifications, as long as this notice is preserved.
8956
8982
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
8957
8983
# written in clear, in which case automake, when reading aclocal.m4,
9096
9124
AMDEPBACKSLASH='\'
9098
9126
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
9099
AC_SUBST([AMDEPBACKSLASH])
9127
AC_SUBST([AMDEPBACKSLASH])dnl
9128
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
9102
9131
# Generate code to set up dependency tracking. -*- Autoconf -*-
9104
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
9133
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
9105
9134
# Free Software Foundation, Inc.
9107
9136
# This file is free software; the Free Software Foundation
9108
9137
# gives unlimited permission to copy and/or distribute it,
9109
9138
# with or without modifications, as long as this notice is preserved.
9113
9142
# _AM_OUTPUT_DEPENDENCY_COMMANDS
9114
9143
# ------------------------------
9115
9144
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
9116
[for mf in $CONFIG_FILES; do
9117
# Strip MF so we end up with the name of the file.
9118
mf=`echo "$mf" | sed -e 's/:.*$//'`
9119
# Check whether this is an Automake generated Makefile or not.
9120
# We used to match only the files named `Makefile.in', but
9121
# some people rename them; so instead we look at the file content.
9122
# Grep'ing the first line is not enough: some people post-process
9123
# each Makefile.in and add a new line on top of each file to say so.
9124
# So let's grep whole file.
9125
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
9126
dirpart=`AS_DIRNAME("$mf")`
9130
# Extract the definition of DEPDIR, am__include, and am__quote
9131
# from the Makefile without running `make'.
9132
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9133
test -z "$DEPDIR" && continue
9134
am__include=`sed -n 's/^am__include = //p' < "$mf"`
9135
test -z "am__include" && continue
9136
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
9137
# When using ansi2knr, U may be empty or an underscore; expand it
9138
U=`sed -n 's/^U = //p' < "$mf"`
9139
# Find all dependency output files, they are included files with
9140
# $(DEPDIR) in their names. We invoke sed twice because it is the
9141
# simplest approach to changing $(DEPDIR) to its actual value in the
9143
for file in `sed -n "
9144
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9145
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9146
# Make sure the directory exists.
9147
test -f "$dirpart/$file" && continue
9148
fdir=`AS_DIRNAME(["$file"])`
9149
AS_MKDIR_P([$dirpart/$fdir])
9150
# echo "creating $dirpart/$file"
9151
echo '# dummy' > "$dirpart/$file"
9146
# Autoconf 2.62 quotes --file arguments for eval, but not when files
9147
# are listed without --file. Let's play safe and only enable the eval
9148
# if we detect the quoting.
9149
case $CONFIG_FILES in
9150
*\'*) eval set x "$CONFIG_FILES" ;;
9151
*) set x $CONFIG_FILES ;;
9156
# Strip MF so we end up with the name of the file.
9157
mf=`echo "$mf" | sed -e 's/:.*$//'`
9158
# Check whether this is an Automake generated Makefile or not.
9159
# We used to match only the files named `Makefile.in', but
9160
# some people rename them; so instead we look at the file content.
9161
# Grep'ing the first line is not enough: some people post-process
9162
# each Makefile.in and add a new line on top of each file to say so.
9163
# Grep'ing the whole file is not good either: AIX grep has a line
9164
# limit of 2048, but all sed's we know have understand at least 4000.
9165
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
9166
dirpart=`AS_DIRNAME("$mf")`
9170
# Extract the definition of DEPDIR, am__include, and am__quote
9171
# from the Makefile without running `make'.
9172
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9173
test -z "$DEPDIR" && continue
9174
am__include=`sed -n 's/^am__include = //p' < "$mf"`
9175
test -z "am__include" && continue
9176
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
9177
# When using ansi2knr, U may be empty or an underscore; expand it
9178
U=`sed -n 's/^U = //p' < "$mf"`
9179
# Find all dependency output files, they are included files with
9180
# $(DEPDIR) in their names. We invoke sed twice because it is the
9181
# simplest approach to changing $(DEPDIR) to its actual value in the
9183
for file in `sed -n "
9184
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9185
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9186
# Make sure the directory exists.
9187
test -f "$dirpart/$file" && continue
9188
fdir=`AS_DIRNAME(["$file"])`
9189
AS_MKDIR_P([$dirpart/$fdir])
9190
# echo "creating $dirpart/$file"
9191
echo '# dummy' > "$dirpart/$file"
9154
9195
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
9182
9223
# Do all the work for Automake. -*- Autoconf -*-
9184
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
9185
# Free Software Foundation, Inc.
9225
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
9226
# 2005, 2006, 2008 Free Software Foundation, Inc.
9187
9228
# This file is free software; the Free Software Foundation
9188
9229
# gives unlimited permission to copy and/or distribute it,
9189
9230
# with or without modifications, as long as this notice is preserved.
9193
9234
# This macro actually does too much. Some checks are only needed if
9194
9235
# your package does certain things. But this isn't really a big deal.
9205
9246
# arguments mandatory, and then we can depend on a new Autoconf
9206
9247
# release and drop the old call support.
9207
9248
AC_DEFUN([AM_INIT_AUTOMAKE],
9208
[AC_PREREQ([2.58])dnl
9249
[AC_PREREQ([2.60])dnl
9209
9250
dnl Autoconf wants to disallow AM_ names. We explicitly allow
9210
9251
dnl the ones we care about.
9211
9252
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
9212
9253
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
9213
9254
AC_REQUIRE([AC_PROG_INSTALL])dnl
9214
# test to see if srcdir already configured
9215
if test "`cd $srcdir && pwd`" != "`pwd`" &&
9216
test -f $srcdir/config.status; then
9217
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
9255
if test "`cd $srcdir && pwd`" != "`pwd`"; then
9256
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
9257
# is not polluted with repeated "-I."
9258
AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
9259
# test to see if srcdir already configured
9260
if test -f $srcdir/config.status; then
9261
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
9220
9265
# test whether we have cygpath
9453
9507
# AM_PROG_MKDIR_P
9454
9508
# ---------------
9455
# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
9457
# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
9458
# created by `make install' are always world readable, even if the
9459
# installer happens to have an overly restrictive umask (e.g. 077).
9460
# This was a mistake. There are at least two reasons why we must not
9462
# - it causes special bits like SGID to be ignored,
9463
# - it may be too restrictive (some setups expect 775 directories).
9465
# Do not use -m 0755 and let people choose whatever they expect by
9468
# We cannot accept any implementation of `mkdir' that recognizes `-p'.
9469
# Some implementations (such as Solaris 8's) are not thread-safe: if a
9470
# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
9471
# concurrently, both version can detect that a/ is missing, but only
9472
# one can create it and the other will error out. Consequently we
9473
# restrict ourselves to GNU make (using the --version option ensures
9509
# Check for `mkdir -p'.
9475
9510
AC_DEFUN([AM_PROG_MKDIR_P],
9476
[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
9477
# We used to keeping the `.' as first argument, in order to
9478
# allow $(mkdir_p) to be used without argument. As in
9479
# $(mkdir_p) $(somedir)
9480
# where $(somedir) is conditionally defined. However this is wrong
9482
# 1. if the package is installed by a user who cannot write `.'
9483
# make install will fail,
9484
# 2. the above comment should most certainly read
9485
# $(mkdir_p) $(DESTDIR)$(somedir)
9486
# so it does not work when $(somedir) is undefined and
9487
# $(DESTDIR) is not.
9488
# To support the latter case, we have to write
9489
# test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
9490
# so the `.' trick is pointless.
9491
mkdir_p='mkdir -p --'
9493
# On NextStep and OpenStep, the `mkdir' command does not
9494
# recognize any option. It will interpret all options as
9495
# directories to create, and then abort because `.' already
9497
for d in ./-p ./--version;
9499
test -d $d && rmdir $d
9501
# $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
9502
if test -f "$ac_aux_dir/mkinstalldirs"; then
9503
mkdir_p='$(mkinstalldirs)'
9505
mkdir_p='$(install_sh) -d'
9508
AC_SUBST([mkdir_p])])
9511
[AC_PREREQ([2.60])dnl
9512
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
9513
dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
9514
dnl while keeping a definition of mkdir_p for backward compatibility.
9515
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
9516
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
9517
dnl Makefile.ins that do not define MKDIR_P, so we do our own
9518
dnl adjustment using top_builddir (which is defined more often than
9520
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
9522
[[\\/$]]* | ?:[[\\/]]*) ;;
9523
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
9510
9527
# Helper functions for option handling. -*- Autoconf -*-
9512
# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
9529
# Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc.
9514
9531
# This file is free software; the Free Software Foundation
9515
9532
# gives unlimited permission to copy and/or distribute it,
9516
9533
# with or without modifications, as long as this notice is preserved.
9520
9537
# _AM_MANGLE_OPTION(NAME)
9521
9538
# -----------------------
9617
9634
if test "$cross_compiling" != no; then
9618
9635
AC_CHECK_TOOL([STRIP], [strip], :)
9620
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
9637
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
9621
9638
AC_SUBST([INSTALL_STRIP_PROGRAM])])
9640
# Copyright (C) 2006 Free Software Foundation, Inc.
9642
# This file is free software; the Free Software Foundation
9643
# gives unlimited permission to copy and/or distribute it,
9644
# with or without modifications, as long as this notice is preserved.
9646
# _AM_SUBST_NOTMAKE(VARIABLE)
9647
# ---------------------------
9648
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
9649
# This macro is traced by Automake.
9650
AC_DEFUN([_AM_SUBST_NOTMAKE])
9623
9652
# Check how to create a tarball. -*- Autoconf -*-
9625
9654
# Copyright (C) 2004, 2005 Free Software Foundation, Inc.