8810
8817
m4_popdef([pkg_description])
8811
8818
]) dnl PKG_NOARCH_INSTALLDIR
8813
# Copyright (C) 2002-2012 Free Software Foundation, Inc.
8821
# PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE,
8822
# [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
8823
# -------------------------------------------
8824
# Retrieves the value of the pkg-config variable for the given module.
8825
AC_DEFUN([PKG_CHECK_VAR],
8826
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
8827
AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl
8829
_PKG_CONFIG([$1], [variable="][$3]["], [$2])
8830
AS_VAR_COPY([$1], [pkg_cv_][$1])
8832
AS_VAR_IF([$1], [""], [$5], [$4])dnl
8835
# Copyright (C) 2002-2013 Free Software Foundation, Inc.
8815
8837
# This file is free software; the Free Software Foundation
8816
8838
# gives unlimited permission to copy and/or distribute it,
8817
8839
# with or without modifications, as long as this notice is preserved.
8821
8841
# AM_AUTOMAKE_VERSION(VERSION)
8822
8842
# ----------------------------
8823
8843
# Automake X.Y traces this macro to ensure aclocal.m4 has been
8824
8844
# generated from the m4 files accompanying Automake X.Y.
8825
8845
# (This private macro should not be called outside this file.)
8826
8846
AC_DEFUN([AM_AUTOMAKE_VERSION],
8827
[am__api_version='1.12'
8847
[am__api_version='1.13'
8828
8848
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
8829
8849
dnl require some minimum version. Point them to the right macro.
8830
m4_if([$1], [1.12.2], [],
8850
m4_if([$1], [1.13.4], [],
8831
8851
[AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
8843
8863
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
8844
8864
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
8845
8865
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
8846
[AM_AUTOMAKE_VERSION([1.12.2])dnl
8866
[AM_AUTOMAKE_VERSION([1.13.4])dnl
8847
8867
m4_ifndef([AC_AUTOCONF_VERSION],
8848
8868
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
8849
8869
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
8851
8871
# AM_AUX_DIR_EXPAND -*- Autoconf -*-
8853
# Copyright (C) 2001-2012 Free Software Foundation, Inc.
8873
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
8855
8875
# This file is free software; the Free Software Foundation
8856
8876
# gives unlimited permission to copy and/or distribute it,
8857
8877
# with or without modifications, as long as this notice is preserved.
8861
8879
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
8862
8880
# $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to
8863
8881
# '$srcdir', '$srcdir/..', or '$srcdir/../..'.
9315
9326
[_AM_DEPENDENCIES([OBJC])],
9316
9327
[m4_define([AC_PROG_OBJC],
9317
9328
m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
9318
dnl Support for Objective C++ was only introduced in Autoconf 2.65,
9319
dnl but we still cater to Autoconf 2.62.
9320
m4_ifdef([AC_PROG_OBJCXX],
9321
[AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
9329
AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
9322
9330
[_AM_DEPENDENCIES([OBJCXX])],
9323
9331
[m4_define([AC_PROG_OBJCXX],
9324
m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])])dnl
9332
m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
9326
_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
9327
dnl The 'parallel-tests' driver may need to know about EXEEXT, so add the
9328
dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
9329
dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
9334
AC_REQUIRE([AM_SILENT_RULES])dnl
9335
dnl The testsuite driver may need to know about EXEEXT, so add the
9336
dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This
9337
dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
9330
9338
AC_CONFIG_COMMANDS_PRE(dnl
9331
9339
[m4_provide_if([_AM_COMPILER_EXEEXT],
9332
9340
[AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
9616
9611
rm -f conftest.file
9619
# Copyright (C) 2001-2012 Free Software Foundation, Inc.
9621
# This file is free software; the Free Software Foundation
9622
# gives unlimited permission to copy and/or distribute it,
9623
# with or without modifications, as long as this notice is preserved.
9614
# Copyright (C) 2009-2013 Free Software Foundation, Inc.
9616
# This file is free software; the Free Software Foundation
9617
# gives unlimited permission to copy and/or distribute it,
9618
# with or without modifications, as long as this notice is preserved.
9620
# AM_SILENT_RULES([DEFAULT])
9621
# --------------------------
9622
# Enable less verbose build rules; with the default set to DEFAULT
9623
# ("yes" being less verbose, "no" or empty being verbose).
9624
AC_DEFUN([AM_SILENT_RULES],
9625
[AC_ARG_ENABLE([silent-rules], [dnl
9627
[--enable-silent-rules],
9628
[less verbose build output (undo: "make V=1")])
9630
[--disable-silent-rules],
9631
[verbose build output (undo: "make V=0")])dnl
9633
case $enable_silent_rules in @%:@ (((
9634
yes) AM_DEFAULT_VERBOSITY=0;;
9635
no) AM_DEFAULT_VERBOSITY=1;;
9636
*) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
9639
dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
9640
dnl do not support nested variable expansions.
9641
dnl See automake bug#9928 and bug#10237.
9642
am_make=${MAKE-make}
9643
AC_CACHE_CHECK([whether $am_make supports nested variables],
9644
[am_cv_make_support_nested_variables],
9645
[if AS_ECHO([['TRUE=$(BAR$(V))
9651
.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
9652
am_cv_make_support_nested_variables=yes
9654
am_cv_make_support_nested_variables=no
9656
if test $am_cv_make_support_nested_variables = yes; then
9657
dnl Using '$V' instead of '$(V)' breaks IRIX make.
9659
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
9661
AM_V=$AM_DEFAULT_VERBOSITY
9662
AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
9665
AM_SUBST_NOTMAKE([AM_V])dnl
9666
AC_SUBST([AM_DEFAULT_V])dnl
9667
AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
9668
AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
9670
AC_SUBST([AM_BACKSLASH])dnl
9671
_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
9674
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
9676
# This file is free software; the Free Software Foundation
9677
# gives unlimited permission to copy and/or distribute it,
9678
# with or without modifications, as long as this notice is preserved.
9627
9680
# AM_PROG_INSTALL_STRIP
9628
9681
# ---------------------
9688
9737
# Substitute a variable $(am__untar) that extract such
9689
9738
# a tarball read from stdin.
9690
9739
# $(am__untar) < result.tar
9691
9741
AC_DEFUN([_AM_PROG_TAR],
9692
9742
[# Always define AMTAR for backward compatibility. Yes, it's still used
9693
9743
# in the wild :-( We should find a proper way to deprecate it ...
9694
9744
AC_SUBST([AMTAR], ['$${TAR-tar}'])
9746
# We'll loop over all known methods to create a tar archive until one works.
9747
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
9695
9749
m4_if([$1], [v7],
9696
[am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
9697
[m4_case([$1], [ustar],, [pax],,
9698
[m4_fatal([Unknown tar format])])
9699
AC_MSG_CHECKING([how to create a $1 tar archive])
9700
# Loop over all known methods to create a tar archive until one works.
9701
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
9702
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
9703
# Do not fold the above two line into one, because Tru64 sh and
9704
# Solaris sh will not grok spaces in the rhs of '-'.
9705
for _am_tool in $_am_tools
9709
for _am_tar in tar gnutar gtar;
9711
AM_RUN_LOG([$_am_tar --version]) && break
9713
am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
9714
am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
9715
am__untar="$_am_tar -xf -"
9718
# Must skip GNU tar: if it does not support --format= it doesn't create
9719
# ustar tarball either.
9720
(tar --version) >/dev/null 2>&1 && continue
9721
am__tar='tar chf - "$$tardir"'
9722
am__tar_='tar chf - "$tardir"'
9723
am__untar='tar xf -'
9726
am__tar='pax -L -x $1 -w "$$tardir"'
9727
am__tar_='pax -L -x $1 -w "$tardir"'
9731
am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
9732
am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
9733
am__untar='cpio -i -H $1 -d'
9742
# If the value was cached, stop now. We just wanted to have am__tar
9743
# and am__untar set.
9744
test -n "${am_cv_prog_tar_$1}" && break
9746
# tar/untar a dummy directory, and stop if the command works
9749
echo GrepMe > conftest.dir/file
9750
AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
9752
if test -s conftest.tar; then
9753
AM_RUN_LOG([$am__untar <conftest.tar])
9754
grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
9759
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
9760
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
9750
[am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
9754
[# The POSIX 1988 'ustar' format is defined with fixed-size fields.
9755
# There is notably a 21 bits limit for the UID and the GID. In fact,
9756
# the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
9758
am_max_uid=2097151 # 2^21 - 1
9759
am_max_gid=$am_max_uid
9760
# The $UID and $GID variables are not portable, so we need to resort
9761
# to the POSIX-mandated id(1) utility. Errors in the 'id' calls
9762
# below are definitely unexpected, so allow the users to see them
9763
# (that is, avoid stderr redirection).
9764
am_uid=`id -u || echo unknown`
9765
am_gid=`id -g || echo unknown`
9766
AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
9767
if test $am_uid -le $am_max_uid; then
9768
AC_MSG_RESULT([yes])
9773
AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
9774
if test $am_gid -le $am_max_gid; then
9775
AC_MSG_RESULT([yes])
9784
[m4_fatal([Unknown tar format])])
9786
AC_MSG_CHECKING([how to create a $1 tar archive])
9788
# Go ahead even if we have the value already cached. We do so because we
9789
# need to set the values for the 'am__tar' and 'am__untar' variables.
9790
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
9792
for _am_tool in $_am_tools; do
9795
for _am_tar in tar gnutar gtar; do
9796
AM_RUN_LOG([$_am_tar --version]) && break
9798
am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
9799
am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
9800
am__untar="$_am_tar -xf -"
9803
# Must skip GNU tar: if it does not support --format= it doesn't create
9804
# ustar tarball either.
9805
(tar --version) >/dev/null 2>&1 && continue
9806
am__tar='tar chf - "$$tardir"'
9807
am__tar_='tar chf - "$tardir"'
9808
am__untar='tar xf -'
9811
am__tar='pax -L -x $1 -w "$$tardir"'
9812
am__tar_='pax -L -x $1 -w "$tardir"'
9816
am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
9817
am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
9818
am__untar='cpio -i -H $1 -d'
9827
# If the value was cached, stop now. We just wanted to have am__tar
9828
# and am__untar set.
9829
test -n "${am_cv_prog_tar_$1}" && break
9831
# tar/untar a dummy directory, and stop if the command works.
9834
echo GrepMe > conftest.dir/file
9835
AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
9837
if test -s conftest.tar; then
9838
AM_RUN_LOG([$am__untar <conftest.tar])
9839
AM_RUN_LOG([cat conftest.dir/file])
9840
grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
9845
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
9846
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
9761
9848
AC_SUBST([am__tar])
9762
9849
AC_SUBST([am__untar])
9763
9850
]) # _AM_PROG_TAR