9336
9348
# Check to see whether a particular set of modules exists. Similar
9337
9349
# to PKG_CHECK_MODULES(), but does not set variables or print errors.
9340
# Similar to PKG_CHECK_MODULES, make sure that the first instance of
9341
# this or PKG_CHECK_MODULES is called, or make sure to call
9342
# PKG_CHECK_EXISTS manually
9351
# Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
9352
# only at the first occurence in configure.ac, so if the first place
9353
# it's called might be skipped (such as if it is within an "if", you
9354
# have to call PKG_CHECK_EXISTS manually
9343
9355
# --------------------------------------------------------------
9344
9356
AC_DEFUN([PKG_CHECK_EXISTS],
9345
9357
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
9346
9358
if test -n "$PKG_CONFIG" && \
9347
9359
AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
9348
m4_ifval([$2], [$2], [:])
9360
m4_default([$2], [:])
9349
9361
m4_ifvaln([$3], [else
9354
9365
# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
9355
9366
# ---------------------------------------------
9356
9367
m4_define([_PKG_CONFIG],
9357
[if test -n "$PKG_CONFIG"; then
9358
if test -n "$$1"; then
9361
PKG_CHECK_EXISTS([$3],
9362
[pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
9368
[if test -n "$$1"; then
9370
elif test -n "$PKG_CONFIG"; then
9371
PKG_CHECK_EXISTS([$3],
9372
[pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`
9373
test "x$?" != "x0" && pkg_failed=yes ],
9368
9378
])# _PKG_CONFIG
9422
9433
Consider adjusting the PKG_CONFIG_PATH environment variable if you
9423
9434
installed software in a non-standard prefix.
9427
[AC_MSG_RESULT([no])
9429
9438
elif test $pkg_failed = untried; then
9430
ifelse([$4], , [AC_MSG_FAILURE(dnl
9440
m4_default([$4], [AC_MSG_FAILURE(
9431
9441
[The pkg-config script could not be found or is too old. Make sure it
9432
9442
is in your PATH or set the PKG_CONFIG environment variable to the full
9433
9443
path to pkg-config.
9437
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.])],
9447
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl
9440
9450
$1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
9441
9451
$1[]_LIBS=$pkg_cv_[]$1[]_LIBS
9442
9452
AC_MSG_RESULT([yes])
9443
ifelse([$3], , :, [$3])
9445
9455
])# PKG_CHECK_MODULES
9447
# Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc.
9458
# PKG_INSTALLDIR(DIRECTORY)
9459
# -------------------------
9460
# Substitutes the variable pkgconfigdir as the location where a module
9461
# should install pkg-config .pc files. By default the directory is
9462
# $libdir/pkgconfig, but the default can be changed by passing
9463
# DIRECTORY. The user can override through the --with-pkgconfigdir
9465
AC_DEFUN([PKG_INSTALLDIR],
9466
[m4_pushdef([pkg_default], [m4_default([$1], ['${libdir}/pkgconfig'])])
9467
m4_pushdef([pkg_description],
9468
[pkg-config installation directory @<:@]pkg_default[@:>@])
9469
AC_ARG_WITH([pkgconfigdir],
9470
[AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],,
9471
[with_pkgconfigdir=]pkg_default)
9472
AC_SUBST([pkgconfigdir], [$with_pkgconfigdir])
9473
m4_popdef([pkg_default])
9474
m4_popdef([pkg_description])
9475
]) dnl PKG_INSTALLDIR
9478
# PKG_NOARCH_INSTALLDIR(DIRECTORY)
9479
# -------------------------
9480
# Substitutes the variable noarch_pkgconfigdir as the location where a
9481
# module should install arch-independent pkg-config .pc files. By
9482
# default the directory is $datadir/pkgconfig, but the default can be
9483
# changed by passing DIRECTORY. The user can override through the
9484
# --with-noarch-pkgconfigdir parameter.
9485
AC_DEFUN([PKG_NOARCH_INSTALLDIR],
9486
[m4_pushdef([pkg_default], [m4_default([$1], ['${datadir}/pkgconfig'])])
9487
m4_pushdef([pkg_description],
9488
[pkg-config arch-independent installation directory @<:@]pkg_default[@:>@])
9489
AC_ARG_WITH([noarch-pkgconfigdir],
9490
[AS_HELP_STRING([--with-noarch-pkgconfigdir], pkg_description)],,
9491
[with_noarch_pkgconfigdir=]pkg_default)
9492
AC_SUBST([noarch_pkgconfigdir], [$with_noarch_pkgconfigdir])
9493
m4_popdef([pkg_default])
9494
m4_popdef([pkg_description])
9495
]) dnl PKG_NOARCH_INSTALLDIR
9497
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008, 2011 Free Software
9449
9500
# This file is free software; the Free Software Foundation
9450
9501
# gives unlimited permission to copy and/or distribute it,
9451
9502
# with or without modifications, as long as this notice is preserved.
9453
9506
# AM_AUTOMAKE_VERSION(VERSION)
9454
9507
# ----------------------------
9455
9508
# Automake X.Y traces this macro to ensure aclocal.m4 has been
9456
9509
# generated from the m4 files accompanying Automake X.Y.
9457
AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
9510
# (This private macro should not be called outside this file.)
9511
AC_DEFUN([AM_AUTOMAKE_VERSION],
9512
[am__api_version='1.11'
9513
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
9514
dnl require some minimum version. Point them to the right macro.
9515
m4_if([$1], [1.11.6], [],
9516
[AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
9519
# _AM_AUTOCONF_VERSION(VERSION)
9520
# -----------------------------
9521
# aclocal traces this macro to find the Autoconf version.
9522
# This is a private macro too. Using m4_define simplifies
9523
# the logic in aclocal, which can simply ignore this definition.
9524
m4_define([_AM_AUTOCONF_VERSION], [])
9459
9526
# AM_SET_CURRENT_AUTOMAKE_VERSION
9460
9527
# -------------------------------
9461
# Call AM_AUTOMAKE_VERSION so it can be traced.
9462
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
9528
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
9529
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
9463
9530
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
9464
[AM_AUTOMAKE_VERSION([1.9.6])])
9531
[AM_AUTOMAKE_VERSION([1.11.6])dnl
9532
m4_ifndef([AC_AUTOCONF_VERSION],
9533
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
9534
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
9466
9536
# AM_AUX_DIR_EXPAND -*- Autoconf -*-
9468
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
9538
# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
9470
9540
# This file is free software; the Free Software Foundation
9471
9541
# gives unlimited permission to copy and/or distribute it,
9472
9542
# with or without modifications, as long as this notice is preserved.
9474
9546
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
9475
9547
# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
9476
9548
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
9549
9624
Usually this means the macro was only invoked conditionally.]])
9553
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
9554
# Free Software Foundation, Inc.
9627
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009,
9628
# 2010, 2011 Free Software Foundation, Inc.
9556
9630
# This file is free software; the Free Software Foundation
9557
9631
# gives unlimited permission to copy and/or distribute it,
9558
9632
# with or without modifications, as long as this notice is preserved.
9562
9636
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
9563
9637
# written in clear, in which case automake, when reading aclocal.m4,
9739
msvc7 | msvc7msys | msvisualcpp | msvcmsys)
9740
# This compiler won't grok `-c -o', but also, the minuso test has
9741
# not run yet. These depmodes are late enough in the game, and
9742
# so weak that their functioning should not be impacted.
9743
am__obj=conftest.${OBJEXT-o}
9645
# We check with `-c' and `-o' for the sake of the "dashmstdout"
9646
# mode. It turns out that the SunPro C++ compiler does not properly
9647
# handle `-M -o', and we need to detect this.
9648
9748
if depmode=$depmode \
9649
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9749
source=sub/conftest.c object=$am__obj \
9650
9750
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9651
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
9751
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
9652
9752
>/dev/null 2>conftest.err &&
9753
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
9653
9754
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
9654
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
9755
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
9655
9756
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
9656
9757
# icc doesn't choke on unknown options, it will just issue warnings
9657
9758
# or remarks (even with -Werror). So we grep stderr for any message
9700
9801
if test "x$enable_dependency_tracking" != xno; then
9701
9802
am_depcomp="$ac_aux_dir/depcomp"
9702
9803
AMDEPBACKSLASH='\'
9704
9806
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
9705
AC_SUBST([AMDEPBACKSLASH])
9807
AC_SUBST([AMDEPBACKSLASH])dnl
9808
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
9809
AC_SUBST([am__nodep])dnl
9810
_AM_SUBST_NOTMAKE([am__nodep])dnl
9708
9813
# Generate code to set up dependency tracking. -*- Autoconf -*-
9710
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
9815
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
9711
9816
# Free Software Foundation, Inc.
9713
9818
# This file is free software; the Free Software Foundation
9714
9819
# gives unlimited permission to copy and/or distribute it,
9715
9820
# with or without modifications, as long as this notice is preserved.
9719
9824
# _AM_OUTPUT_DEPENDENCY_COMMANDS
9720
9825
# ------------------------------
9721
9826
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
9722
[for mf in $CONFIG_FILES; do
9723
# Strip MF so we end up with the name of the file.
9724
mf=`echo "$mf" | sed -e 's/:.*$//'`
9725
# Check whether this is an Automake generated Makefile or not.
9726
# We used to match only the files named `Makefile.in', but
9727
# some people rename them; so instead we look at the file content.
9728
# Grep'ing the first line is not enough: some people post-process
9729
# each Makefile.in and add a new line on top of each file to say so.
9730
# So let's grep whole file.
9731
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
9732
dirpart=`AS_DIRNAME("$mf")`
9736
# Extract the definition of DEPDIR, am__include, and am__quote
9737
# from the Makefile without running `make'.
9738
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9739
test -z "$DEPDIR" && continue
9740
am__include=`sed -n 's/^am__include = //p' < "$mf"`
9741
test -z "am__include" && continue
9742
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
9743
# When using ansi2knr, U may be empty or an underscore; expand it
9744
U=`sed -n 's/^U = //p' < "$mf"`
9745
# Find all dependency output files, they are included files with
9746
# $(DEPDIR) in their names. We invoke sed twice because it is the
9747
# simplest approach to changing $(DEPDIR) to its actual value in the
9749
for file in `sed -n "
9750
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9751
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9752
# Make sure the directory exists.
9753
test -f "$dirpart/$file" && continue
9754
fdir=`AS_DIRNAME(["$file"])`
9755
AS_MKDIR_P([$dirpart/$fdir])
9756
# echo "creating $dirpart/$file"
9757
echo '# dummy' > "$dirpart/$file"
9828
# Autoconf 2.62 quotes --file arguments for eval, but not when files
9829
# are listed without --file. Let's play safe and only enable the eval
9830
# if we detect the quoting.
9831
case $CONFIG_FILES in
9832
*\'*) eval set x "$CONFIG_FILES" ;;
9833
*) set x $CONFIG_FILES ;;
9838
# Strip MF so we end up with the name of the file.
9839
mf=`echo "$mf" | sed -e 's/:.*$//'`
9840
# Check whether this is an Automake generated Makefile or not.
9841
# We used to match only the files named `Makefile.in', but
9842
# some people rename them; so instead we look at the file content.
9843
# Grep'ing the first line is not enough: some people post-process
9844
# each Makefile.in and add a new line on top of each file to say so.
9845
# Grep'ing the whole file is not good either: AIX grep has a line
9846
# limit of 2048, but all sed's we know have understand at least 4000.
9847
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
9848
dirpart=`AS_DIRNAME("$mf")`
9852
# Extract the definition of DEPDIR, am__include, and am__quote
9853
# from the Makefile without running `make'.
9854
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9855
test -z "$DEPDIR" && continue
9856
am__include=`sed -n 's/^am__include = //p' < "$mf"`
9857
test -z "am__include" && continue
9858
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
9859
# When using ansi2knr, U may be empty or an underscore; expand it
9860
U=`sed -n 's/^U = //p' < "$mf"`
9861
# Find all dependency output files, they are included files with
9862
# $(DEPDIR) in their names. We invoke sed twice because it is the
9863
# simplest approach to changing $(DEPDIR) to its actual value in the
9865
for file in `sed -n "
9866
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9867
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9868
# Make sure the directory exists.
9869
test -f "$dirpart/$file" && continue
9870
fdir=`AS_DIRNAME(["$file"])`
9871
AS_MKDIR_P([$dirpart/$fdir])
9872
# echo "creating $dirpart/$file"
9873
echo '# dummy' > "$dirpart/$file"
9760
9877
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
9788
9905
# Do all the work for Automake. -*- Autoconf -*-
9790
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
9791
# Free Software Foundation, Inc.
9907
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
9908
# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
9793
9910
# This file is free software; the Free Software Foundation
9794
9911
# gives unlimited permission to copy and/or distribute it,
9795
9912
# with or without modifications, as long as this notice is preserved.
9799
9916
# This macro actually does too much. Some checks are only needed if
9800
9917
# your package does certain things. But this isn't really a big deal.
9811
9928
# arguments mandatory, and then we can depend on a new Autoconf
9812
9929
# release and drop the old call support.
9813
9930
AC_DEFUN([AM_INIT_AUTOMAKE],
9814
[AC_PREREQ([2.58])dnl
9931
[AC_PREREQ([2.62])dnl
9815
9932
dnl Autoconf wants to disallow AM_ names. We explicitly allow
9816
9933
dnl the ones we care about.
9817
9934
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
9818
9935
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
9819
9936
AC_REQUIRE([AC_PROG_INSTALL])dnl
9820
# test to see if srcdir already configured
9821
if test "`cd $srcdir && pwd`" != "`pwd`" &&
9822
test -f $srcdir/config.status; then
9823
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
9937
if test "`cd $srcdir && pwd`" != "`pwd`"; then
9938
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
9939
# is not polluted with repeated "-I."
9940
AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
9941
# test to see if srcdir already configured
9942
if test -f $srcdir/config.status; then
9943
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
9826
9947
# test whether we have cygpath
9864
9988
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
9865
9989
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
9866
9990
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
9867
[_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
9868
[_AM_PROG_TAR([v7])])])
9991
[_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
9992
[_AM_PROG_TAR([v7])])])
9869
9993
_AM_IF_OPTION([no-dependencies],,
9870
9994
[AC_PROVIDE_IFELSE([AC_PROG_CC],
9871
[_AM_DEPENDENCIES(CC)],
9872
[define([AC_PROG_CC],
9873
defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
9995
[_AM_DEPENDENCIES(CC)],
9996
[define([AC_PROG_CC],
9997
defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
9874
9998
AC_PROVIDE_IFELSE([AC_PROG_CXX],
9875
[_AM_DEPENDENCIES(CXX)],
9876
[define([AC_PROG_CXX],
9877
defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
9999
[_AM_DEPENDENCIES(CXX)],
10000
[define([AC_PROG_CXX],
10001
defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
10002
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
10003
[_AM_DEPENDENCIES(OBJC)],
10004
[define([AC_PROG_OBJC],
10005
defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
10007
_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
10008
dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
10009
dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
10010
dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
10011
AC_CONFIG_COMMANDS_PRE(dnl
10012
[m4_provide_if([_AM_COMPILER_EXEEXT],
10013
[AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
10016
dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
10017
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
10018
dnl mangled by Autoconf and run in a shell conditional statement.
10019
m4_define([_AC_COMPILER_EXEEXT],
10020
m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
9882
10023
# When config.status generates a header, we must update the stamp-h file.
9888
10029
# our stamp files there.
9889
10030
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
9890
10031
[# Compute $1's index in $config_headers.
9891
10033
_am_stamp_count=1
9892
10034
for _am_header in $config_headers :; do
9893
10035
case $_am_header in
10036
$_am_arg | $_am_arg:* )
9897
10039
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
9900
echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
10042
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
9902
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
10044
# Copyright (C) 2001, 2003, 2005, 2008, 2011 Free Software Foundation,
9904
10047
# This file is free software; the Free Software Foundation
9905
10048
# gives unlimited permission to copy and/or distribute it,
9906
10049
# with or without modifications, as long as this notice is preserved.
9908
10053
# AM_PROG_INSTALL_SH
9909
10054
# ------------------
9910
10055
# Define $install_sh.
9911
10056
AC_DEFUN([AM_PROG_INSTALL_SH],
9912
10057
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
9913
install_sh=${install_sh-"$am_aux_dir/install-sh"}
10058
if test x"${install_sh}" != xset; then
10059
case $am_aux_dir in
10061
install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
10063
install_sh="\${SHELL} $am_aux_dir/install-sh"
9914
10066
AC_SUBST(install_sh)])
9916
10068
# Copyright (C) 2003, 2005 Free Software Foundation, Inc.
9937
10089
# Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
9938
10090
# From Jim Meyering
9940
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005
9941
# Free Software Foundation, Inc.
10092
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008,
10093
# 2011 Free Software Foundation, Inc.
9943
10095
# This file is free software; the Free Software Foundation
9944
10096
# gives unlimited permission to copy and/or distribute it,
9945
10097
# with or without modifications, as long as this notice is preserved.
10101
# AM_MAINTAINER_MODE([DEFAULT-MODE])
10102
# ----------------------------------
10103
# Control maintainer-specific portions of Makefiles.
10104
# Default is to disable them, unless `enable' is passed literally.
10105
# For symmetry, `disable' may be passed as well. Anyway, the user
10106
# can override the default with the --enable/--disable switch.
9949
10107
AC_DEFUN([AM_MAINTAINER_MODE],
9950
[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
9951
dnl maintainer-mode is disabled by default
9952
AC_ARG_ENABLE(maintainer-mode,
9953
[ --enable-maintainer-mode enable make rules and dependencies not useful
10108
[m4_case(m4_default([$1], [disable]),
10109
[enable], [m4_define([am_maintainer_other], [disable])],
10110
[disable], [m4_define([am_maintainer_other], [enable])],
10111
[m4_define([am_maintainer_other], [enable])
10112
m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
10113
AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
10114
dnl maintainer-mode's default is 'disable' unless 'enable' is passed
10115
AC_ARG_ENABLE([maintainer-mode],
10116
[ --][am_maintainer_other][-maintainer-mode am_maintainer_other make rules and dependencies not useful
9954
10117
(and sometimes confusing) to the casual installer],
9955
USE_MAINTAINER_MODE=$enableval,
9956
USE_MAINTAINER_MODE=no)
10118
[USE_MAINTAINER_MODE=$enableval],
10119
[USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
9957
10120
AC_MSG_RESULT([$USE_MAINTAINER_MODE])
9958
AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
10121
AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
9959
10122
MAINT=$MAINTAINER_MODE_TRUE
10123
AC_SUBST([MAINT])dnl
10053
# Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
10224
# Copyright (C) 2003, 2004, 2005, 2006, 2011 Free Software Foundation,
10055
10227
# This file is free software; the Free Software Foundation
10056
10228
# gives unlimited permission to copy and/or distribute it,
10057
10229
# with or without modifications, as long as this notice is preserved.
10059
10233
# AM_PROG_MKDIR_P
10060
10234
# ---------------
10061
# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
10063
# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
10064
# created by `make install' are always world readable, even if the
10065
# installer happens to have an overly restrictive umask (e.g. 077).
10066
# This was a mistake. There are at least two reasons why we must not
10068
# - it causes special bits like SGID to be ignored,
10069
# - it may be too restrictive (some setups expect 775 directories).
10071
# Do not use -m 0755 and let people choose whatever they expect by
10074
# We cannot accept any implementation of `mkdir' that recognizes `-p'.
10075
# Some implementations (such as Solaris 8's) are not thread-safe: if a
10076
# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
10077
# concurrently, both version can detect that a/ is missing, but only
10078
# one can create it and the other will error out. Consequently we
10079
# restrict ourselves to GNU make (using the --version option ensures
10235
# Check for `mkdir -p'.
10081
10236
AC_DEFUN([AM_PROG_MKDIR_P],
10082
[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
10083
# We used to keeping the `.' as first argument, in order to
10084
# allow $(mkdir_p) to be used without argument. As in
10085
# $(mkdir_p) $(somedir)
10086
# where $(somedir) is conditionally defined. However this is wrong
10088
# 1. if the package is installed by a user who cannot write `.'
10089
# make install will fail,
10090
# 2. the above comment should most certainly read
10091
# $(mkdir_p) $(DESTDIR)$(somedir)
10092
# so it does not work when $(somedir) is undefined and
10093
# $(DESTDIR) is not.
10094
# To support the latter case, we have to write
10095
# test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
10096
# so the `.' trick is pointless.
10097
mkdir_p='mkdir -p --'
10099
# On NextStep and OpenStep, the `mkdir' command does not
10100
# recognize any option. It will interpret all options as
10101
# directories to create, and then abort because `.' already
10103
for d in ./-p ./--version;
10105
test -d $d && rmdir $d
10107
# $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
10108
if test -f "$ac_aux_dir/mkinstalldirs"; then
10109
mkdir_p='$(mkinstalldirs)'
10111
mkdir_p='$(SHELL) $(install_sh) -d'
10114
AC_SUBST([mkdir_p])])
10237
[AC_PREREQ([2.60])dnl
10238
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
10239
dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
10240
dnl while keeping a definition of mkdir_p for backward compatibility.
10241
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
10242
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
10243
dnl Makefile.ins that do not define MKDIR_P, so we do our own
10244
dnl adjustment using top_builddir (which is defined more often than
10246
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
10248
[[\\/$]]* | ?:[[\\/]]*) ;;
10249
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
10116
10253
# Helper functions for option handling. -*- Autoconf -*-
10118
# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
10255
# Copyright (C) 2001, 2002, 2003, 2005, 2008, 2010 Free Software
10120
10258
# This file is free software; the Free Software Foundation
10121
10259
# gives unlimited permission to copy and/or distribute it,
10122
10260
# with or without modifications, as long as this notice is preserved.
10126
10264
# _AM_MANGLE_OPTION(NAME)
10127
10265
# -----------------------
10146
10284
AC_DEFUN([_AM_IF_OPTION],
10147
10285
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
10149
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
10151
# This file is free software; the Free Software Foundation
10152
# gives unlimited permission to copy and/or distribute it,
10153
# with or without modifications, as long as this notice is preserved.
10287
# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
10289
# This file is free software; the Free Software Foundation
10290
# gives unlimited permission to copy and/or distribute it,
10291
# with or without modifications, as long as this notice is preserved.
10295
# AM_RUN_LOG(COMMAND)
10296
# -------------------
10297
# Run COMMAND, save the exit status in ac_status, and log it.
10298
# (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
10299
AC_DEFUN([AM_RUN_LOG],
10300
[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
10301
($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
10303
echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
10304
(exit $ac_status); }])
10306
# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
10308
# This file is free software; the Free Software Foundation
10309
# gives unlimited permission to copy and/or distribute it,
10310
# with or without modifications, as long as this notice is preserved.
10155
10314
# AM_PROG_INSTALL_STRIP
10156
10315
# ---------------------
10171
10330
if test "$cross_compiling" != no; then
10172
10331
AC_CHECK_TOOL([STRIP], [strip], :)
10174
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
10333
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
10175
10334
AC_SUBST([INSTALL_STRIP_PROGRAM])])
10336
# Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc.
10338
# This file is free software; the Free Software Foundation
10339
# gives unlimited permission to copy and/or distribute it,
10340
# with or without modifications, as long as this notice is preserved.
10344
# _AM_SUBST_NOTMAKE(VARIABLE)
10345
# ---------------------------
10346
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
10347
# This macro is traced by Automake.
10348
AC_DEFUN([_AM_SUBST_NOTMAKE])
10350
# AM_SUBST_NOTMAKE(VARIABLE)
10351
# --------------------------
10352
# Public sister of _AM_SUBST_NOTMAKE.
10353
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
10177
10355
# Check how to create a tarball. -*- Autoconf -*-
10179
# Copyright (C) 2004, 2005 Free Software Foundation, Inc.
10357
# Copyright (C) 2004, 2005, 2012 Free Software Foundation, Inc.
10181
10359
# This file is free software; the Free Software Foundation
10182
10360
# gives unlimited permission to copy and/or distribute it,