Ignore:
Timestamp:
09/17/16 18:59:54 (8 years ago)
Author:
tbretz
Message:
Upadted the build system from a current Ubuntu 16.04 -- let's see if it works on older systems as well.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/aclocal.m4

    r17177 r18603  
    1 # generated automatically by aclocal 1.11.3 -*- Autoconf -*-
    2 
    3 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
    4 # 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation,
    5 # Inc.
     1# generated automatically by aclocal 1.15 -*- Autoconf -*-
     2
     3# Copyright (C) 1996-2014 Free Software Foundation, Inc.
     4
    65# This file is free software; the Free Software Foundation
    76# gives unlimited permission to copy and/or distribute it,
     
    1312# PARTICULAR PURPOSE.
    1413
     14m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
    1515m4_ifndef([AC_AUTOCONF_VERSION],
    1616  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
    17 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.68],,
    18 [m4_warning([this file was generated for autoconf 2.68.
     17m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
     18[m4_warning([this file was generated for autoconf 2.69.
    1919You have another version of autoconf.  It may work, but is not guaranteed to.
    2020If you have problems, you may need to regenerate the build system entirely.
    21 To do so, use the procedure documented by the package, typically `autoreconf'.])])
     21To do so, use the procedure documented by the package, typically 'autoreconf'.])])
    2222
    2323# ===========================================================================
     
    5353#   warranty.
    5454
    55 #serial 13
     55#serial 16
    5656
    5757AC_DEFUN([AX_BOOST_ASIO],
     
    105105                        AC_DEFINE(HAVE_BOOST_ASIO,,[define if the Boost::ASIO library is available])
    106106                        BN=boost_system
     107                        BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/@<:@^\/@:>@*//'`
    107108            if test "x$ax_boost_user_asio_lib" = "x"; then
    108                                 for ax_lib in $BN $BN-$CC $BN-$CC-mt $BN-$CC-mt-s $BN-$CC-s \
    109                               lib$BN lib$BN-$CC lib$BN-$CC-mt lib$BN-$CC-mt-s lib$BN-$CC-s \
    110                               $BN-mgw $BN-mgw $BN-mgw-mt $BN-mgw-mt-s $BN-mgw-s ; do
     109                                for ax_lib in `ls $BOOSTLIBDIR/libboost_system*.so* $BOOSTLIBDIR/libboost_system*.dylib* $BOOSTLIBDIR/libboost_system*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_system.*\)\.so.*$;\1;' -e 's;^lib\(boost_system.*\)\.dylib.*$;\1;' -e 's;^lib\(boost_system.*\)\.a.*$;\1;' ` ; do
    111110                                    AC_CHECK_LIB($ax_lib, main, [BOOST_ASIO_LIB="-l$ax_lib" AC_SUBST(BOOST_ASIO_LIB) link_thread="yes" break],
    112111                                 [link_thread="no"])
     
    168167#   warranty.
    169168
    170 #serial 20
     169#serial 26
    171170
    172171AC_DEFUN([AX_BOOST_BASE],
     
    226225    libsubdirs="lib"
    227226    ax_arch=`uname -m`
    228     if test $ax_arch = x86_64 -o $ax_arch = ppc64 -o $ax_arch = s390x -o $ax_arch = sparc64; then
    229         libsubdirs="lib64 lib lib64"
    230     fi
     227    case $ax_arch in
     228      x86_64)
     229        libsubdirs="lib64 libx32 lib lib64"
     230        ;;
     231      ppc64|s390x|sparc64|aarch64|ppc64le)
     232        libsubdirs="lib64 lib lib64 ppc64le"
     233        ;;
     234    esac
     235
     236    dnl allow for real multi-arch paths e.g. /usr/lib/x86_64-linux-gnu. Give
     237    dnl them priority over the other paths since, if libs are found there, they
     238    dnl are almost assuredly the ones desired.
     239    AC_REQUIRE([AC_CANONICAL_HOST])
     240    libsubdirs="lib/${host_cpu}-${host_os} $libsubdirs"
     241
     242    case ${host_cpu} in
     243      i?86)
     244        libsubdirs="lib/i386-${host_os} $libsubdirs"
     245        ;;
     246    esac
    231247
    232248    dnl first we check the system location for boost libraries
     
    291307    dnl built and installed without the --layout=system option or for a staged(not installed) version
    292308    if test "x$succeeded" != "xyes"; then
     309        CPPFLAGS="$CPPFLAGS_SAVED"
     310        LDFLAGS="$LDFLAGS_SAVED"
     311        BOOST_CPPFLAGS=
     312        BOOST_LDFLAGS=
    293313        _version=0
    294314        if test "$ac_boost_path" != ""; then
     
    303323                    BOOST_CPPFLAGS="-I$ac_boost_path/include/boost-$VERSION_UNDERSCORE"
    304324                done
     325                dnl if nothing found search for layout used in Windows distributions
     326                if test -z "$BOOST_CPPFLAGS"; then
     327                    if test -d "$ac_boost_path/boost" && test -r "$ac_boost_path/boost"; then
     328                        BOOST_CPPFLAGS="-I$ac_boost_path"
     329                    fi
     330                fi
    305331            fi
    306332        else
     
    424450#   warranty.
    425451
    426 #serial 19
     452#serial 21
    427453
    428454AC_DEFUN([AX_BOOST_DATE_TIME],
     
    470496            BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/@<:@^\/@:>@*//'`
    471497            if test "x$ax_boost_user_date_time_lib" = "x"; then
    472                 for libextension in `ls $BOOSTLIBDIR/libboost_date_time*.so* $BOOSTLIBDIR/libboost_date_time*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_date_time.*\)\.so.*$;\1;' -e 's;^lib\(boost_date_time.*\)\.a*$;\1;'` ; do
     498                for libextension in `ls $BOOSTLIBDIR/libboost_date_time*.so* $BOOSTLIBDIR/libboost_date_time*.dylib* $BOOSTLIBDIR/libboost_date_time*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_date_time.*\)\.so.*$;\1;' -e 's;^lib\(boost_date_time.*\)\.dylib.*$;\1;' -e 's;^lib\(boost_date_time.*\)\.a*$;\1;'` ; do
    473499                     ax_lib=${libextension}
    474500                                    AC_CHECK_LIB($ax_lib, exit,
     
    477503                                done
    478504                if test "x$link_date_time" != "xyes"; then
    479                 for libextension in `ls $BOOSTLIBDIR/boost_date_time*.{dll,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_date_time.*\)\.dll.*$;\1;' -e 's;^\(boost_date_time.*\)\.a*$;\1;'` ; do
     505                for libextension in `ls $BOOSTLIBDIR/boost_date_time*.dll* $BOOSTLIBDIR/boost_date_time*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_date_time.*\)\.dll.*$;\1;' -e 's;^\(boost_date_time.*\)\.a.*$;\1;'` ; do
    480506                     ax_lib=${libextension}
    481507                                    AC_CHECK_LIB($ax_lib, exit,
     
    539565#   warranty.
    540566
    541 #serial 22
     567#serial 26
    542568
    543569AC_DEFUN([AX_BOOST_FILESYSTEM],
     
    589615            BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/@<:@^\/@:>@*//'`
    590616            if test "x$ax_boost_user_filesystem_lib" = "x"; then
    591                 for libextension in `ls $BOOSTLIBDIR/libboost_filesystem*.so* $BOOSTLIBDIR/libboost_filesystem*.dylib* $BOOSTLIBDIR/libboost_filesystem*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_filesystem.*\)\.so.*$;\1;' -e 's;^lib\(boost_filesystem.*\)\.a*$;\1;' -e 's;^lib\(boost_filesystem.*\)\.dylib$;\1;'` ; do
     617                for libextension in `ls -r $BOOSTLIBDIR/libboost_filesystem* 2>/dev/null | sed 's,.*/lib,,' | sed 's,\..*,,'` ; do
    592618                     ax_lib=${libextension}
    593619                                    AC_CHECK_LIB($ax_lib, exit,
     
    596622                                done
    597623                if test "x$link_filesystem" != "xyes"; then
    598                 for libextension in `ls $BOOSTLIBDIR/boost_filesystem*.{dll,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_filesystem.*\)\.dll.*$;\1;' -e 's;^\(boost_filesystem.*\)\.a*$;\1;'` ; do
     624                for libextension in `ls -r $BOOSTLIBDIR/boost_filesystem* 2>/dev/null | sed 's,.*/,,' | sed -e 's,\..*,,'` ; do
    599625                     ax_lib=${libextension}
    600626                                    AC_CHECK_LIB($ax_lib, exit,
     
    656682#   warranty.
    657683
    658 #serial 20
     684#serial 24
    659685
    660686AC_DEFUN([AX_BOOST_PROGRAM_OPTIONS],
     
    690716                                           ax_cv_boost_program_options,
    691717                                           [AC_LANG_PUSH(C++)
    692                                 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[@%:@include <boost/program_options.hpp>
     718                                AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[@%:@include <boost/program_options/errors.hpp>
    693719                                                          ]],
    694                                   [[boost::program_options::options_description generic("Generic options");
     720                                  [[boost::program_options::error err("Error message");
    695721                                   return 0;]])],
    696722                           ax_cv_boost_program_options=yes, ax_cv_boost_program_options=no)
     
    701727                  BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/@<:@^\/@:>@*//'`
    702728                if test "x$ax_boost_user_program_options_lib" = "x"; then
    703                 for libextension in `ls $BOOSTLIBDIR/libboost_program_options*.so* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_program_options.*\)\.so.*$;\1;'` `ls $BOOSTLIBDIR/libboost_program_options*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_program_options.*\)\.a*$;\1;'` ; do
     729                for libextension in `ls $BOOSTLIBDIR/libboost_program_options*.so* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_program_options.*\)\.so.*$;\1;'` `ls $BOOSTLIBDIR/libboost_program_options*.dylib* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_program_options.*\)\.dylib.*$;\1;'` `ls $BOOSTLIBDIR/libboost_program_options*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_program_options.*\)\.a.*$;\1;'` ; do
    704730                     ax_lib=${libextension}
    705731                                    AC_CHECK_LIB($ax_lib, exit,
     
    708734                                done
    709735                if test "x$link_program_options" != "xyes"; then
    710                 for libextension in `ls $BOOSTLIBDIR/boost_program_options*.dll* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_program_options.*\)\.dll.*$;\1;'` `ls $BOOSTLIBDIR/boost_program_options*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_program_options.*\)\.a*$;\1;'` ; do
     736                for libextension in `ls $BOOSTLIBDIR/boost_program_options*.dll* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_program_options.*\)\.dll.*$;\1;'` `ls $BOOSTLIBDIR/boost_program_options*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_program_options.*\)\.a.*$;\1;'` ; do
    711737                     ax_lib=${libextension}
    712738                                    AC_CHECK_LIB($ax_lib, exit,
     
    766792#   warranty.
    767793
    768 #serial 20
     794#serial 22
    769795
    770796AC_DEFUN([AX_BOOST_REGEX],
     
    811837            BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/@<:@^\/@:>@*//'`
    812838            if test "x$ax_boost_user_regex_lib" = "x"; then
    813                 for libextension in `ls $BOOSTLIBDIR/libboost_regex*.so* $BOOSTLIBDIR/libboost_regex*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_regex.*\)\.so.*$;\1;' -e 's;^lib\(boost_regex.*\)\.a*$;\1;'` ; do
     839                for libextension in `ls $BOOSTLIBDIR/libboost_regex*.so* $BOOSTLIBDIR/libboost_regex*.dylib* $BOOSTLIBDIR/libboost_regex*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_regex.*\)\.so.*$;\1;' -e 's;^lib\(boost_regex.*\)\.dylib.*;\1;' -e 's;^lib\(boost_regex.*\)\.a.*$;\1;'` ; do
    814840                     ax_lib=${libextension}
    815841                                    AC_CHECK_LIB($ax_lib, exit,
     
    818844                                done
    819845                if test "x$link_regex" != "xyes"; then
    820                 for libextension in `ls $BOOSTLIBDIR/boost_regex*.{dll,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_regex.*\)\.dll.*$;\1;' -e 's;^\(boost_regex.*\)\.a*$;\1;'` ; do
     846                for libextension in `ls $BOOSTLIBDIR/boost_regex*.dll* $BOOSTLIBDIR/boost_regex*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_regex.*\)\.dll.*$;\1;' -e 's;^\(boost_regex.*\)\.a.*$;\1;'` ; do
    821847                     ax_lib=${libextension}
    822848                                    AC_CHECK_LIB($ax_lib, exit,
     
    879905#   warranty.
    880906
    881 #serial 14
     907#serial 17
    882908
    883909AC_DEFUN([AX_BOOST_SYSTEM],
     
    931957                        LDFLAGS_SAVE=$LDFLAGS
    932958            if test "x$ax_boost_user_system_lib" = "x"; then
    933                 for libextension in `ls $BOOSTLIBDIR/libboost_system*.so* $BOOSTLIBDIR/libboost_system*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_system.*\)\.so.*$;\1;' -e 's;^lib\(boost_system.*\)\.a*$;\1;'` ; do
     959                for libextension in `ls -r $BOOSTLIBDIR/libboost_system* 2>/dev/null | sed 's,.*/lib,,' | sed 's,\..*,,'` ; do
    934960                     ax_lib=${libextension}
    935961                                    AC_CHECK_LIB($ax_lib, exit,
     
    938964                                done
    939965                if test "x$link_system" != "xyes"; then
    940                 for libextension in `ls $BOOSTLIBDIR/boost_system*.{dll,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_system.*\)\.dll.*$;\1;' -e 's;^\(boost_system.*\)\.a*$;\1;'` ; do
     966                for libextension in `ls -r $BOOSTLIBDIR/boost_system* 2>/dev/null | sed 's,.*/,,' | sed -e 's,\..*,,'` ; do
    941967                     ax_lib=${libextension}
    942968                                    AC_CHECK_LIB($ax_lib, exit,
     
    9991025#   warranty.
    10001026
    1001 #serial 23
     1027#serial 27
    10021028
    10031029AC_DEFUN([AX_BOOST_THREAD],
     
    10731099                        esac
    10741100            if test "x$ax_boost_user_thread_lib" = "x"; then
    1075                 for libextension in `ls $BOOSTLIBDIR/libboost_thread*.so* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_thread.*\)\.so.*$;\1;'` `ls $BOOSTLIBDIR/libboost_thread*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_thread.*\)\.a*$;\1;'`; do
     1101                for libextension in `ls -r $BOOSTLIBDIR/libboost_thread* 2>/dev/null | sed 's,.*/lib,,' | sed 's,\..*,,'`; do
    10761102                     ax_lib=${libextension}
    10771103                                    AC_CHECK_LIB($ax_lib, exit,
     
    10801106                                done
    10811107                if test "x$link_thread" != "xyes"; then
    1082                 for libextension in `ls $BOOSTLIBDIR/boost_thread*.dll* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_thread.*\)\.dll.*$;\1;'` `ls $BOOSTLIBDIR/boost_thread*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_thread.*\)\.a*$;\1;'` ; do
     1108                for libextension in `ls -r $BOOSTLIBDIR/boost_thread* 2>/dev/null | sed 's,.*/,,' | sed 's,\..*,,'`; do
    10831109                     ax_lib=${libextension}
    10841110                                    AC_CHECK_LIB($ax_lib, exit,
     
    13461372#         rm -rf @DX_DOCDIR@
    13471373#         $(DX_ENV) $(DX_DOXYGEN) $(srcdir)/$(DX_CONFIG)
     1374#         echo Timestamp >$@
    13481375#
    13491376#     DX_CLEANFILES = \
     
    13731400#   warranty.
    13741401
    1375 #serial 12
     1402#serial 13
    13761403
    13771404
     
    17251752#   exception to the GPL to apply to your modified version as well.
    17261753
    1727 #serial 16
     1754#serial 21
    17281755
    17291756AU_ALIAS([ACX_PTHREAD], [AX_PTHREAD])
     
    17461773        LIBS="$PTHREAD_LIBS $LIBS"
    17471774        AC_MSG_CHECKING([for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS])
    1748         AC_TRY_LINK_FUNC(pthread_join, ax_pthread_ok=yes)
    1749         AC_MSG_RESULT($ax_pthread_ok)
     1775        AC_TRY_LINK_FUNC([pthread_join], [ax_pthread_ok=yes])
     1776        AC_MSG_RESULT([$ax_pthread_ok])
    17501777        if test x"$ax_pthread_ok" = xno; then
    17511778                PTHREAD_LIBS=""
     
    17881815# pthread-config: use pthread-config program (for GNU Pth library)
    17891816
    1790 case "${host_cpu}-${host_os}" in
    1791         *solaris*)
     1817case ${host_os} in
     1818        solaris*)
    17921819
    17931820        # On Solaris (at least, for some versions), libc contains stubbed
     
    18021829        ;;
    18031830
    1804         *-darwin*)
     1831        darwin*)
    18051832        ax_pthread_flags="-pthread $ax_pthread_flags"
    18061833        ;;
    18071834esac
     1835
     1836# Clang doesn't consider unrecognized options an error unless we specify
     1837# -Werror. We throw in some extra Clang-specific options to ensure that
     1838# this doesn't happen for GCC, which also accepts -Werror.
     1839
     1840AC_MSG_CHECKING([if compiler needs -Werror to reject unknown flags])
     1841save_CFLAGS="$CFLAGS"
     1842ax_pthread_extra_flags="-Werror"
     1843CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument"
     1844AC_COMPILE_IFELSE([AC_LANG_PROGRAM([int foo(void);],[foo()])],
     1845                  [AC_MSG_RESULT([yes])],
     1846                  [ax_pthread_extra_flags=
     1847                   AC_MSG_RESULT([no])])
     1848CFLAGS="$save_CFLAGS"
    18081849
    18091850if test x"$ax_pthread_ok" = xno; then
     
    18211862
    18221863                pthread-config)
    1823                 AC_CHECK_PROG(ax_pthread_config, pthread-config, yes, no)
     1864                AC_CHECK_PROG([ax_pthread_config], [pthread-config], [yes], [no])
    18241865                if test x"$ax_pthread_config" = xno; then continue; fi
    18251866                PTHREAD_CFLAGS="`pthread-config --cflags`"
     
    18361877        save_CFLAGS="$CFLAGS"
    18371878        LIBS="$PTHREAD_LIBS $LIBS"
    1838         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
     1879        CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
    18391880
    18401881        # Check for various functions.  We must include pthread.h,
     
    18621903        CFLAGS="$save_CFLAGS"
    18631904
    1864         AC_MSG_RESULT($ax_pthread_ok)
     1905        AC_MSG_RESULT([$ax_pthread_ok])
    18651906        if test "x$ax_pthread_ok" = xyes; then
    18661907                break;
     
    18881929                [])
    18891930        done
    1890         AC_MSG_RESULT($attr_name)
     1931        AC_MSG_RESULT([$attr_name])
    18911932        if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
    1892             AC_DEFINE_UNQUOTED(PTHREAD_CREATE_JOINABLE, $attr_name,
     1933            AC_DEFINE_UNQUOTED([PTHREAD_CREATE_JOINABLE], [$attr_name],
    18931934                               [Define to necessary symbol if this constant
    18941935                                uses a non-standard name on your system.])
     
    18971938        AC_MSG_CHECKING([if more special flags are required for pthreads])
    18981939        flag=no
    1899         case "${host_cpu}-${host_os}" in
    1900             *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
    1901             *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
     1940        case ${host_os} in
     1941            aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
     1942            osf* | hpux*) flag="-D_REENTRANT";;
     1943            solaris*)
     1944            if test "$GCC" = "yes"; then
     1945                flag="-D_REENTRANT"
     1946            else
     1947                # TODO: What about Clang on Solaris?
     1948                flag="-mt -D_REENTRANT"
     1949            fi
     1950            ;;
    19021951        esac
    1903         AC_MSG_RESULT(${flag})
     1952        AC_MSG_RESULT([$flag])
    19041953        if test "x$flag" != xno; then
    19051954            PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
     
    19071956
    19081957        AC_CACHE_CHECK([for PTHREAD_PRIO_INHERIT],
    1909             ax_cv_PTHREAD_PRIO_INHERIT, [
    1910                 AC_LINK_IFELSE([
    1911                     AC_LANG_PROGRAM([[#include <pthread.h>]], [[int i = PTHREAD_PRIO_INHERIT;]])],
     1958            [ax_cv_PTHREAD_PRIO_INHERIT], [
     1959                AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <pthread.h>]],
     1960                                                [[int i = PTHREAD_PRIO_INHERIT;]])],
    19121961                    [ax_cv_PTHREAD_PRIO_INHERIT=yes],
    19131962                    [ax_cv_PTHREAD_PRIO_INHERIT=no])
    19141963            ])
    19151964        AS_IF([test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"],
    1916             AC_DEFINE([HAVE_PTHREAD_PRIO_INHERIT], 1, [Have PTHREAD_PRIO_INHERIT.]))
     1965            [AC_DEFINE([HAVE_PTHREAD_PRIO_INHERIT], [1], [Have PTHREAD_PRIO_INHERIT.])])
    19171966
    19181967        LIBS="$save_LIBS"
    19191968        CFLAGS="$save_CFLAGS"
    19201969
    1921         # More AIX lossage: must compile with xlc_r or cc_r
    1922         if test x"$GCC" != xyes; then
    1923           AC_CHECK_PROGS(PTHREAD_CC, xlc_r cc_r, ${CC})
    1924         else
    1925           PTHREAD_CC=$CC
     1970        # More AIX lossage: compile with *_r variant
     1971        if test "x$GCC" != xyes; then
     1972            case $host_os in
     1973                aix*)
     1974                AS_CASE(["x/$CC"],
     1975                  [x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6],
     1976                  [#handle absolute path differently from PATH based program lookup
     1977                   AS_CASE(["x$CC"],
     1978                     [x/*],
     1979                     [AS_IF([AS_EXECUTABLE_P([${CC}_r])],[PTHREAD_CC="${CC}_r"])],
     1980                     [AC_CHECK_PROGS([PTHREAD_CC],[${CC}_r],[$CC])])])
     1981                ;;
     1982            esac
    19261983        fi
    1927 else
    1928         PTHREAD_CC="$CC"
    19291984fi
    19301985
    1931 AC_SUBST(PTHREAD_LIBS)
    1932 AC_SUBST(PTHREAD_CFLAGS)
    1933 AC_SUBST(PTHREAD_CC)
     1986test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
     1987
     1988AC_SUBST([PTHREAD_LIBS])
     1989AC_SUBST([PTHREAD_CFLAGS])
     1990AC_SUBST([PTHREAD_CC])
    19341991
    19351992# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
    19361993if test x"$ax_pthread_ok" = xyes; then
    1937         ifelse([$1],,AC_DEFINE(HAVE_PTHREAD,1,[Define if you have POSIX threads libraries and header files.]),[$1])
     1994        ifelse([$1],,[AC_DEFINE([HAVE_PTHREAD],[1],[Define if you have POSIX threads libraries and header files.])],[$1])
    19381995        :
    19391996else
     
    19442001])dnl AX_PTHREAD
    19452002
    1946 # pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
    1947 # serial 1 (pkg-config-0.24)
    1948 #
    1949 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
    1950 #
    1951 # This program is free software; you can redistribute it and/or modify
    1952 # it under the terms of the GNU General Public License as published by
    1953 # the Free Software Foundation; either version 2 of the License, or
    1954 # (at your option) any later version.
    1955 #
    1956 # This program is distributed in the hope that it will be useful, but
    1957 # WITHOUT ANY WARRANTY; without even the implied warranty of
    1958 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    1959 # General Public License for more details.
    1960 #
    1961 # You should have received a copy of the GNU General Public License
    1962 # along with this program; if not, write to the Free Software
    1963 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
    1964 #
    1965 # As a special exception to the GNU General Public License, if you
    1966 # distribute this file as part of a program that contains a
    1967 # configuration script generated by Autoconf, you may include it under
    1968 # the same distribution terms that you use for the rest of that program.
    1969 
    1970 # PKG_PROG_PKG_CONFIG([MIN-VERSION])
    1971 # ----------------------------------
     2003dnl pkg.m4 - Macros to locate and utilise pkg-config.   -*- Autoconf -*-
     2004dnl serial 11 (pkg-config-0.29.1)
     2005dnl
     2006dnl Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
     2007dnl Copyright © 2012-2015 Dan Nicholson <dbn.lists@gmail.com>
     2008dnl
     2009dnl This program is free software; you can redistribute it and/or modify
     2010dnl it under the terms of the GNU General Public License as published by
     2011dnl the Free Software Foundation; either version 2 of the License, or
     2012dnl (at your option) any later version.
     2013dnl
     2014dnl This program is distributed in the hope that it will be useful, but
     2015dnl WITHOUT ANY WARRANTY; without even the implied warranty of
     2016dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
     2017dnl General Public License for more details.
     2018dnl
     2019dnl You should have received a copy of the GNU General Public License
     2020dnl along with this program; if not, write to the Free Software
     2021dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
     2022dnl 02111-1307, USA.
     2023dnl
     2024dnl As a special exception to the GNU General Public License, if you
     2025dnl distribute this file as part of a program that contains a
     2026dnl configuration script generated by Autoconf, you may include it under
     2027dnl the same distribution terms that you use for the rest of that
     2028dnl program.
     2029
     2030dnl PKG_PREREQ(MIN-VERSION)
     2031dnl -----------------------
     2032dnl Since: 0.29
     2033dnl
     2034dnl Verify that the version of the pkg-config macros are at least
     2035dnl MIN-VERSION. Unlike PKG_PROG_PKG_CONFIG, which checks the user's
     2036dnl installed version of pkg-config, this checks the developer's version
     2037dnl of pkg.m4 when generating configure.
     2038dnl
     2039dnl To ensure that this macro is defined, also add:
     2040dnl m4_ifndef([PKG_PREREQ],
     2041dnl     [m4_fatal([must install pkg-config 0.29 or later before running autoconf/autogen])])
     2042dnl
     2043dnl See the "Since" comment for each macro you use to see what version
     2044dnl of the macros you require.
     2045m4_defun([PKG_PREREQ],
     2046[m4_define([PKG_MACROS_VERSION], [0.29.1])
     2047m4_if(m4_version_compare(PKG_MACROS_VERSION, [$1]), -1,
     2048    [m4_fatal([pkg.m4 version $1 or higher is required but ]PKG_MACROS_VERSION[ found])])
     2049])dnl PKG_PREREQ
     2050
     2051dnl PKG_PROG_PKG_CONFIG([MIN-VERSION])
     2052dnl ----------------------------------
     2053dnl Since: 0.16
     2054dnl
     2055dnl Search for the pkg-config tool and set the PKG_CONFIG variable to
     2056dnl first found in the path. Checks that the version of pkg-config found
     2057dnl is at least MIN-VERSION. If MIN-VERSION is not specified, 0.9.0 is
     2058dnl used since that's the first version where most current features of
     2059dnl pkg-config existed.
    19722060AC_DEFUN([PKG_PROG_PKG_CONFIG],
    19732061[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
     
    19912079        fi
    19922080fi[]dnl
    1993 ])# PKG_PROG_PKG_CONFIG
    1994 
    1995 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
    1996 #
    1997 # Check to see whether a particular set of modules exists.  Similar
    1998 # to PKG_CHECK_MODULES(), but does not set variables or print errors.
    1999 #
    2000 # Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
    2001 # only at the first occurence in configure.ac, so if the first place
    2002 # it's called might be skipped (such as if it is within an "if", you
    2003 # have to call PKG_CHECK_EXISTS manually
    2004 # --------------------------------------------------------------
     2081])dnl PKG_PROG_PKG_CONFIG
     2082
     2083dnl PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
     2084dnl -------------------------------------------------------------------
     2085dnl Since: 0.18
     2086dnl
     2087dnl Check to see whether a particular set of modules exists. Similar to
     2088dnl PKG_CHECK_MODULES(), but does not set variables or print errors.
     2089dnl
     2090dnl Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
     2091dnl only at the first occurence in configure.ac, so if the first place
     2092dnl it's called might be skipped (such as if it is within an "if", you
     2093dnl have to call PKG_CHECK_EXISTS manually
    20052094AC_DEFUN([PKG_CHECK_EXISTS],
    20062095[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
     
    20122101fi])
    20132102
    2014 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
    2015 # ---------------------------------------------
     2103dnl _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
     2104dnl ---------------------------------------------
     2105dnl Internal wrapper calling pkg-config via PKG_CONFIG and setting
     2106dnl pkg_failed based on the result.
    20162107m4_define([_PKG_CONFIG],
    20172108[if test -n "$$1"; then
     
    20252116    pkg_failed=untried
    20262117fi[]dnl
    2027 ])# _PKG_CONFIG
    2028 
    2029 # _PKG_SHORT_ERRORS_SUPPORTED
    2030 # -----------------------------
     2118])dnl _PKG_CONFIG
     2119
     2120dnl _PKG_SHORT_ERRORS_SUPPORTED
     2121dnl ---------------------------
     2122dnl Internal check to see if pkg-config supports short errors.
    20312123AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
    20322124[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
     
    20362128        _pkg_short_errors_supported=no
    20372129fi[]dnl
    2038 ])# _PKG_SHORT_ERRORS_SUPPORTED
    2039 
    2040 
    2041 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
    2042 # [ACTION-IF-NOT-FOUND])
    2043 #
    2044 #
    2045 # Note that if there is a possibility the first call to
    2046 # PKG_CHECK_MODULES might not happen, you should be sure to include an
    2047 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
    2048 #
    2049 #
    2050 # --------------------------------------------------------------
     2130])dnl _PKG_SHORT_ERRORS_SUPPORTED
     2131
     2132
     2133dnl PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
     2134dnl   [ACTION-IF-NOT-FOUND])
     2135dnl --------------------------------------------------------------
     2136dnl Since: 0.4.0
     2137dnl
     2138dnl Note that if there is a possibility the first call to
     2139dnl PKG_CHECK_MODULES might not happen, you should be sure to include an
     2140dnl explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
    20512141AC_DEFUN([PKG_CHECK_MODULES],
    20522142[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
     
    21022192        $3
    21032193fi[]dnl
    2104 ])# PKG_CHECK_MODULES
    2105 
    2106 # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008, 2011 Free Software
    2107 # Foundation, Inc.
     2194])dnl PKG_CHECK_MODULES
     2195
     2196
     2197dnl PKG_CHECK_MODULES_STATIC(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
     2198dnl   [ACTION-IF-NOT-FOUND])
     2199dnl ---------------------------------------------------------------------
     2200dnl Since: 0.29
     2201dnl
     2202dnl Checks for existence of MODULES and gathers its build flags with
     2203dnl static libraries enabled. Sets VARIABLE-PREFIX_CFLAGS from --cflags
     2204dnl and VARIABLE-PREFIX_LIBS from --libs.
     2205dnl
     2206dnl Note that if there is a possibility the first call to
     2207dnl PKG_CHECK_MODULES_STATIC might not happen, you should be sure to
     2208dnl include an explicit call to PKG_PROG_PKG_CONFIG in your
     2209dnl configure.ac.
     2210AC_DEFUN([PKG_CHECK_MODULES_STATIC],
     2211[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
     2212_save_PKG_CONFIG=$PKG_CONFIG
     2213PKG_CONFIG="$PKG_CONFIG --static"
     2214PKG_CHECK_MODULES($@)
     2215PKG_CONFIG=$_save_PKG_CONFIG[]dnl
     2216])dnl PKG_CHECK_MODULES_STATIC
     2217
     2218
     2219dnl PKG_INSTALLDIR([DIRECTORY])
     2220dnl -------------------------
     2221dnl Since: 0.27
     2222dnl
     2223dnl Substitutes the variable pkgconfigdir as the location where a module
     2224dnl should install pkg-config .pc files. By default the directory is
     2225dnl $libdir/pkgconfig, but the default can be changed by passing
     2226dnl DIRECTORY. The user can override through the --with-pkgconfigdir
     2227dnl parameter.
     2228AC_DEFUN([PKG_INSTALLDIR],
     2229[m4_pushdef([pkg_default], [m4_default([$1], ['${libdir}/pkgconfig'])])
     2230m4_pushdef([pkg_description],
     2231    [pkg-config installation directory @<:@]pkg_default[@:>@])
     2232AC_ARG_WITH([pkgconfigdir],
     2233    [AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],,
     2234    [with_pkgconfigdir=]pkg_default)
     2235AC_SUBST([pkgconfigdir], [$with_pkgconfigdir])
     2236m4_popdef([pkg_default])
     2237m4_popdef([pkg_description])
     2238])dnl PKG_INSTALLDIR
     2239
     2240
     2241dnl PKG_NOARCH_INSTALLDIR([DIRECTORY])
     2242dnl --------------------------------
     2243dnl Since: 0.27
     2244dnl
     2245dnl Substitutes the variable noarch_pkgconfigdir as the location where a
     2246dnl module should install arch-independent pkg-config .pc files. By
     2247dnl default the directory is $datadir/pkgconfig, but the default can be
     2248dnl changed by passing DIRECTORY. The user can override through the
     2249dnl --with-noarch-pkgconfigdir parameter.
     2250AC_DEFUN([PKG_NOARCH_INSTALLDIR],
     2251[m4_pushdef([pkg_default], [m4_default([$1], ['${datadir}/pkgconfig'])])
     2252m4_pushdef([pkg_description],
     2253    [pkg-config arch-independent installation directory @<:@]pkg_default[@:>@])
     2254AC_ARG_WITH([noarch-pkgconfigdir],
     2255    [AS_HELP_STRING([--with-noarch-pkgconfigdir], pkg_description)],,
     2256    [with_noarch_pkgconfigdir=]pkg_default)
     2257AC_SUBST([noarch_pkgconfigdir], [$with_noarch_pkgconfigdir])
     2258m4_popdef([pkg_default])
     2259m4_popdef([pkg_description])
     2260])dnl PKG_NOARCH_INSTALLDIR
     2261
     2262
     2263dnl PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE,
     2264dnl [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
     2265dnl -------------------------------------------
     2266dnl Since: 0.28
     2267dnl
     2268dnl Retrieves the value of the pkg-config variable for the given module.
     2269AC_DEFUN([PKG_CHECK_VAR],
     2270[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
     2271AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl
     2272
     2273_PKG_CONFIG([$1], [variable="][$3]["], [$2])
     2274AS_VAR_COPY([$1], [pkg_cv_][$1])
     2275
     2276AS_VAR_IF([$1], [""], [$5], [$4])dnl
     2277])dnl PKG_CHECK_VAR
     2278
     2279# Copyright (C) 2002-2014 Free Software Foundation, Inc.
    21082280#
    21092281# This file is free software; the Free Software Foundation
    21102282# gives unlimited permission to copy and/or distribute it,
    21112283# with or without modifications, as long as this notice is preserved.
    2112 
    2113 # serial 1
    21142284
    21152285# AM_AUTOMAKE_VERSION(VERSION)
     
    21192289# (This private macro should not be called outside this file.)
    21202290AC_DEFUN([AM_AUTOMAKE_VERSION],
    2121 [am__api_version='1.11'
     2291[am__api_version='1.15'
    21222292dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
    21232293dnl require some minimum version.  Point them to the right macro.
    2124 m4_if([$1], [1.11.3], [],
     2294m4_if([$1], [1.15], [],
    21252295      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
    21262296])
     
    21382308# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
    21392309AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
    2140 [AM_AUTOMAKE_VERSION([1.11.3])dnl
     2310[AM_AUTOMAKE_VERSION([1.15])dnl
    21412311m4_ifndef([AC_AUTOCONF_VERSION],
    21422312  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
    21432313_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
    21442314
    2145 # AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
    2146 
    2147 # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
     2315# Copyright (C) 2011-2014 Free Software Foundation, Inc.
    21482316#
    21492317# This file is free software; the Free Software Foundation
     
    21512319# with or without modifications, as long as this notice is preserved.
    21522320
    2153 # serial 1
     2321# AM_PROG_AR([ACT-IF-FAIL])
     2322# -------------------------
     2323# Try to determine the archiver interface, and trigger the ar-lib wrapper
     2324# if it is needed.  If the detection of archiver interface fails, run
     2325# ACT-IF-FAIL (default is to abort configure with a proper error message).
     2326AC_DEFUN([AM_PROG_AR],
     2327[AC_BEFORE([$0], [LT_INIT])dnl
     2328AC_BEFORE([$0], [AC_PROG_LIBTOOL])dnl
     2329AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
     2330AC_REQUIRE_AUX_FILE([ar-lib])dnl
     2331AC_CHECK_TOOLS([AR], [ar lib "link -lib"], [false])
     2332: ${AR=ar}
     2333
     2334AC_CACHE_CHECK([the archiver ($AR) interface], [am_cv_ar_interface],
     2335  [AC_LANG_PUSH([C])
     2336   am_cv_ar_interface=ar
     2337   AC_COMPILE_IFELSE([AC_LANG_SOURCE([[int some_variable = 0;]])],
     2338     [am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&AS_MESSAGE_LOG_FD'
     2339      AC_TRY_EVAL([am_ar_try])
     2340      if test "$ac_status" -eq 0; then
     2341        am_cv_ar_interface=ar
     2342      else
     2343        am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&AS_MESSAGE_LOG_FD'
     2344        AC_TRY_EVAL([am_ar_try])
     2345        if test "$ac_status" -eq 0; then
     2346          am_cv_ar_interface=lib
     2347        else
     2348          am_cv_ar_interface=unknown
     2349        fi
     2350      fi
     2351      rm -f conftest.lib libconftest.a
     2352     ])
     2353   AC_LANG_POP([C])])
     2354
     2355case $am_cv_ar_interface in
     2356ar)
     2357  ;;
     2358lib)
     2359  # Microsoft lib, so override with the ar-lib wrapper script.
     2360  # FIXME: It is wrong to rewrite AR.
     2361  # But if we don't then we get into trouble of one sort or another.
     2362  # A longer-term fix would be to have automake use am__AR in this case,
     2363  # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
     2364  # similar.
     2365  AR="$am_aux_dir/ar-lib $AR"
     2366  ;;
     2367unknown)
     2368  m4_default([$1],
     2369             [AC_MSG_ERROR([could not determine $AR interface])])
     2370  ;;
     2371esac
     2372AC_SUBST([AR])dnl
     2373])
     2374
     2375# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
     2376
     2377# Copyright (C) 2001-2014 Free Software Foundation, Inc.
     2378#
     2379# This file is free software; the Free Software Foundation
     2380# gives unlimited permission to copy and/or distribute it,
     2381# with or without modifications, as long as this notice is preserved.
    21542382
    21552383# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
    2156 # $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
    2157 # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
     2384# $ac_aux_dir to '$srcdir/foo'.  In other projects, it is set to
     2385# '$srcdir', '$srcdir/..', or '$srcdir/../..'.
    21582386#
    21592387# Of course, Automake must honor this variable whenever it calls a
     
    21742402# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
    21752403# are both prefixed by $srcdir.  In an in-source build this is usually
    2176 # harmless because $srcdir is `.', but things will broke when you
     2404# harmless because $srcdir is '.', but things will broke when you
    21772405# start a VPATH build or use an absolute $srcdir.
    21782406#
     
    21922420
    21932421AC_DEFUN([AM_AUX_DIR_EXPAND],
    2194 [dnl Rely on autoconf to set up CDPATH properly.
    2195 AC_PREREQ([2.50])dnl
    2196 # expand $ac_aux_dir to an absolute path
    2197 am_aux_dir=`cd $ac_aux_dir && pwd`
     2422[AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
     2423# Expand $ac_aux_dir to an absolute path.
     2424am_aux_dir=`cd "$ac_aux_dir" && pwd`
    21982425])
    21992426
    22002427# AM_COND_IF                                            -*- Autoconf -*-
    22012428
    2202 # Copyright (C) 2008, 2010 Free Software Foundation, Inc.
     2429# Copyright (C) 2008-2014 Free Software Foundation, Inc.
    22032430#
    22042431# This file is free software; the Free Software Foundation
    22052432# gives unlimited permission to copy and/or distribute it,
    22062433# with or without modifications, as long as this notice is preserved.
    2207 
    2208 # serial 3
    22092434
    22102435# _AM_COND_IF
     
    22162441m4_define([_AM_COND_ELSE])
    22172442m4_define([_AM_COND_ENDIF])
    2218 
    22192443
    22202444# AM_COND_IF(COND, [IF-TRUE], [IF-FALSE])
     
    22402464# AM_CONDITIONAL                                            -*- Autoconf -*-
    22412465
    2242 # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
    2243 # Free Software Foundation, Inc.
     2466# Copyright (C) 1997-2014 Free Software Foundation, Inc.
    22442467#
    22452468# This file is free software; the Free Software Foundation
    22462469# gives unlimited permission to copy and/or distribute it,
    22472470# with or without modifications, as long as this notice is preserved.
    2248 
    2249 # serial 9
    22502471
    22512472# AM_CONDITIONAL(NAME, SHELL-CONDITION)
     
    22532474# Define a conditional.
    22542475AC_DEFUN([AM_CONDITIONAL],
    2255 [AC_PREREQ(2.52)dnl
    2256  ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
    2257         [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
     2476[AC_PREREQ([2.52])dnl
     2477 m4_if([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
     2478       [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
    22582479AC_SUBST([$1_TRUE])dnl
    22592480AC_SUBST([$1_FALSE])dnl
     
    22742495fi])])
    22752496
    2276 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009,
    2277 # 2010, 2011 Free Software Foundation, Inc.
     2497# Copyright (C) 1999-2014 Free Software Foundation, Inc.
    22782498#
    22792499# This file is free software; the Free Software Foundation
     
    22812501# with or without modifications, as long as this notice is preserved.
    22822502
    2283 # serial 12
    2284 
    2285 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
     2503
     2504# There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
    22862505# written in clear, in which case automake, when reading aclocal.m4,
    22872506# will think it sees a *use*, and therefore will trigger all it's
     
    22932512# ----------------------
    22942513# See how the compiler implements dependency checking.
    2295 # NAME is "CC", "CXX", "GCJ", or "OBJC".
     2514# NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
    22962515# We try a few techniques and use that to set a single cache variable.
    22972516#
     
    23062525AC_REQUIRE([AM_DEP_TRACK])dnl
    23072526
    2308 ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
    2309        [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
    2310        [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
    2311        [$1], UPC,  [depcc="$UPC"  am_compiler_list=],
    2312        [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
    2313                    [depcc="$$1"   am_compiler_list=])
     2527m4_if([$1], [CC],   [depcc="$CC"   am_compiler_list=],
     2528      [$1], [CXX],  [depcc="$CXX"  am_compiler_list=],
     2529      [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
     2530      [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
     2531      [$1], [UPC],  [depcc="$UPC"  am_compiler_list=],
     2532      [$1], [GCJ],  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
     2533                    [depcc="$$1"   am_compiler_list=])
    23142534
    23152535AC_CACHE_CHECK([dependency style of $depcc],
     
    23192539  # making bogus files that we don't know about and never remove.  For
    23202540  # instance it was reported that on HP-UX the gcc test will end up
    2321   # making a dummy file named `D' -- because `-MD' means `put the output
    2322   # in D'.
     2541  # making a dummy file named 'D' -- because '-MD' means "put the output
     2542  # in D".
    23232543  rm -rf conftest.dir
    23242544  mkdir conftest.dir
     
    23602580    for i in 1 2 3 4 5 6; do
    23612581      echo '#include "conftst'$i'.h"' >> sub/conftest.c
    2362       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
    2363       # Solaris 8's {/usr,}/bin/sh.
    2364       touch sub/conftst$i.h
     2582      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
     2583      # Solaris 10 /bin/sh.
     2584      echo '/* dummy */' > sub/conftst$i.h
    23652585    done
    23662586    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
    23672587
    2368     # We check with `-c' and `-o' for the sake of the "dashmstdout"
     2588    # We check with '-c' and '-o' for the sake of the "dashmstdout"
    23692589    # mode.  It turns out that the SunPro C++ compiler does not properly
    2370     # handle `-M -o', and we need to detect this.  Also, some Intel
    2371     # versions had trouble with output in subdirs
     2590    # handle '-M -o', and we need to detect this.  Also, some Intel
     2591    # versions had trouble with output in subdirs.
    23722592    am__obj=sub/conftest.${OBJEXT-o}
    23732593    am__minus_obj="-o $am__obj"
     
    23782598      ;;
    23792599    nosideeffect)
    2380       # after this tag, mechanisms are not by side-effect, so they'll
    2381       # only be used when explicitly requested
     2600      # After this tag, mechanisms are not by side-effect, so they'll
     2601      # only be used when explicitly requested.
    23822602      if test "x$enable_dependency_tracking" = xyes; then
    23832603        continue
     
    23872607      ;;
    23882608    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
    2389       # This compiler won't grok `-c -o', but also, the minuso test has
     2609      # This compiler won't grok '-c -o', but also, the minuso test has
    23902610      # not run yet.  These depmodes are late enough in the game, and
    23912611      # so weak that their functioning should not be impacted.
     
    24352655# -------------
    24362656# Choose a directory name for dependency files.
    2437 # This macro is AC_REQUIREd in _AM_DEPENDENCIES
     2657# This macro is AC_REQUIREd in _AM_DEPENDENCIES.
    24382658AC_DEFUN([AM_SET_DEPDIR],
    24392659[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
     
    24452665# ------------
    24462666AC_DEFUN([AM_DEP_TRACK],
    2447 [AC_ARG_ENABLE(dependency-tracking,
    2448 [  --disable-dependency-tracking  speeds up one-time build
    2449   --enable-dependency-tracking   do not reject slow dependency extractors])
     2667[AC_ARG_ENABLE([dependency-tracking], [dnl
     2668AS_HELP_STRING(
     2669  [--enable-dependency-tracking],
     2670  [do not reject slow dependency extractors])
     2671AS_HELP_STRING(
     2672  [--disable-dependency-tracking],
     2673  [speeds up one-time build])])
    24502674if test "x$enable_dependency_tracking" != xno; then
    24512675  am_depcomp="$ac_aux_dir/depcomp"
     
    24622686# Generate code to set up dependency tracking.              -*- Autoconf -*-
    24632687
    2464 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
    2465 # Free Software Foundation, Inc.
     2688# Copyright (C) 1999-2014 Free Software Foundation, Inc.
    24662689#
    24672690# This file is free software; the Free Software Foundation
     
    24692692# with or without modifications, as long as this notice is preserved.
    24702693
    2471 #serial 5
    24722694
    24732695# _AM_OUTPUT_DEPENDENCY_COMMANDS
     
    24752697AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
    24762698[{
    2477   # Autoconf 2.62 quotes --file arguments for eval, but not when files
     2699  # Older Autoconf quotes --file arguments for eval, but not when files
    24782700  # are listed without --file.  Let's play safe and only enable the eval
    24792701  # if we detect the quoting.
     
    24882710    mf=`echo "$mf" | sed -e 's/:.*$//'`
    24892711    # Check whether this is an Automake generated Makefile or not.
    2490     # We used to match only the files named `Makefile.in', but
     2712    # We used to match only the files named 'Makefile.in', but
    24912713    # some people rename them; so instead we look at the file content.
    24922714    # Grep'ing the first line is not enough: some people post-process
     
    25002722    fi
    25012723    # Extract the definition of DEPDIR, am__include, and am__quote
    2502     # from the Makefile without running `make'.
     2724    # from the Makefile without running 'make'.
    25032725    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
    25042726    test -z "$DEPDIR" && continue
    25052727    am__include=`sed -n 's/^am__include = //p' < "$mf"`
    2506     test -z "am__include" && continue
     2728    test -z "$am__include" && continue
    25072729    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
    2508     # When using ansi2knr, U may be empty or an underscore; expand it
    2509     U=`sed -n 's/^U = //p' < "$mf"`
    25102730    # Find all dependency output files, they are included files with
    25112731    # $(DEPDIR) in their names.  We invoke sed twice because it is the
     
    25142734    for file in `sed -n "
    25152735      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
    2516          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
     2736         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
    25172737      # Make sure the directory exists.
    25182738      test -f "$dirpart/$file" && continue
     
    25322752#
    25332753# This code is only required when automatic dependency tracking
    2534 # is enabled.  FIXME.  This creates each `.P' file that we will
     2754# is enabled.  FIXME.  This creates each '.P' file that we will
    25352755# need in order to bootstrap the dependency handling code.
    25362756AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
     
    25422762# Do all the work for Automake.                             -*- Autoconf -*-
    25432763
    2544 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
    2545 # 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
     2764# Copyright (C) 1996-2014 Free Software Foundation, Inc.
    25462765#
    25472766# This file is free software; the Free Software Foundation
     
    25492768# with or without modifications, as long as this notice is preserved.
    25502769
    2551 # serial 16
    2552 
    25532770# This macro actually does too much.  Some checks are only needed if
    25542771# your package does certain things.  But this isn't really a big deal.
     2772
     2773dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
     2774m4_define([AC_PROG_CC],
     2775m4_defn([AC_PROG_CC])
     2776[_AM_PROG_CC_C_O
     2777])
    25552778
    25562779# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
     
    25662789# release and drop the old call support.
    25672790AC_DEFUN([AM_INIT_AUTOMAKE],
    2568 [AC_PREREQ([2.62])dnl
     2791[AC_PREREQ([2.65])dnl
    25692792dnl Autoconf wants to disallow AM_ names.  We explicitly allow
    25702793dnl the ones we care about.
     
    25952818dnl Distinguish between old-style and new-style calls.
    25962819m4_ifval([$2],
    2597 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
     2820[AC_DIAGNOSE([obsolete],
     2821             [$0: two- and three-arguments forms are deprecated.])
     2822m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
    25982823 AC_SUBST([PACKAGE], [$1])dnl
    25992824 AC_SUBST([VERSION], [$2])],
    26002825[_AM_SET_OPTIONS([$1])dnl
    26012826dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
    2602 m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
     2827m4_if(
     2828  m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
     2829  [ok:ok],,
    26032830  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
    26042831 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
     
    26062833
    26072834_AM_IF_OPTION([no-define],,
    2608 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
    2609  AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
     2835[AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
     2836 AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
    26102837
    26112838# Some tools Automake needs.
    26122839AC_REQUIRE([AM_SANITY_CHECK])dnl
    26132840AC_REQUIRE([AC_ARG_PROGRAM])dnl
    2614 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
    2615 AM_MISSING_PROG(AUTOCONF, autoconf)
    2616 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
    2617 AM_MISSING_PROG(AUTOHEADER, autoheader)
    2618 AM_MISSING_PROG(MAKEINFO, makeinfo)
     2841AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
     2842AM_MISSING_PROG([AUTOCONF], [autoconf])
     2843AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
     2844AM_MISSING_PROG([AUTOHEADER], [autoheader])
     2845AM_MISSING_PROG([MAKEINFO], [makeinfo])
    26192846AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
    26202847AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
    2621 AC_REQUIRE([AM_PROG_MKDIR_P])dnl
    2622 # We need awk for the "check" target.  The system "awk" is bad on
    2623 # some platforms.
     2848AC_REQUIRE([AC_PROG_MKDIR_P])dnl
     2849# For better backward compatibility.  To be removed once Automake 1.9.x
     2850# dies out for good.  For more background, see:
     2851# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
     2852# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
     2853AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
     2854# We need awk for the "check" target (and possibly the TAP driver).  The
     2855# system "awk" is bad on some platforms.
    26242856AC_REQUIRE([AC_PROG_AWK])dnl
    26252857AC_REQUIRE([AC_PROG_MAKE_SET])dnl
     
    26302862_AM_IF_OPTION([no-dependencies],,
    26312863[AC_PROVIDE_IFELSE([AC_PROG_CC],
    2632                   [_AM_DEPENDENCIES(CC)],
    2633                   [define([AC_PROG_CC],
    2634                           defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
     2864                  [_AM_DEPENDENCIES([CC])],
     2865                  [m4_define([AC_PROG_CC],
     2866                             m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
    26352867AC_PROVIDE_IFELSE([AC_PROG_CXX],
    2636                   [_AM_DEPENDENCIES(CXX)],
    2637                   [define([AC_PROG_CXX],
    2638                           defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
     2868                  [_AM_DEPENDENCIES([CXX])],
     2869                  [m4_define([AC_PROG_CXX],
     2870                             m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
    26392871AC_PROVIDE_IFELSE([AC_PROG_OBJC],
    2640                   [_AM_DEPENDENCIES(OBJC)],
    2641                   [define([AC_PROG_OBJC],
    2642                           defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
     2872                  [_AM_DEPENDENCIES([OBJC])],
     2873                  [m4_define([AC_PROG_OBJC],
     2874                             m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
     2875AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
     2876                  [_AM_DEPENDENCIES([OBJCXX])],
     2877                  [m4_define([AC_PROG_OBJCXX],
     2878                             m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
    26432879])
    2644 _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
    2645 dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
    2646 dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This macro
    2647 dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
     2880AC_REQUIRE([AM_SILENT_RULES])dnl
     2881dnl The testsuite driver may need to know about EXEEXT, so add the
     2882dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This
     2883dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
    26482884AC_CONFIG_COMMANDS_PRE(dnl
    26492885[m4_provide_if([_AM_COMPILER_EXEEXT],
    26502886  [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
     2887
     2888# POSIX will say in a future version that running "rm -f" with no argument
     2889# is OK; and we want to be able to make that assumption in our Makefile
     2890# recipes.  So use an aggressive probe to check that the usage we want is
     2891# actually supported "in the wild" to an acceptable degree.
     2892# See automake bug#10828.
     2893# To make any issue more visible, cause the running configure to be aborted
     2894# by default if the 'rm' program in use doesn't match our expectations; the
     2895# user can still override this though.
     2896if rm -f && rm -fr && rm -rf; then : OK; else
     2897  cat >&2 <<'END'
     2898Oops!
     2899
     2900Your 'rm' program seems unable to run without file operands specified
     2901on the command line, even when the '-f' option is present.  This is contrary
     2902to the behaviour of most rm programs out there, and not conforming with
     2903the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
     2904
     2905Please tell bug-automake@gnu.org about your system, including the value
     2906of your $PATH and any error possibly output before this message.  This
     2907can help us improve future automake versions.
     2908
     2909END
     2910  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
     2911    echo 'Configuration will proceed anyway, since you have set the' >&2
     2912    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
     2913    echo >&2
     2914  else
     2915    cat >&2 <<'END'
     2916Aborting the configuration process, to ensure you take notice of the issue.
     2917
     2918You can download and install GNU coreutils to get an 'rm' implementation
     2919that behaves properly: <http://www.gnu.org/software/coreutils/>.
     2920
     2921If you want to complete the configuration process using your problematic
     2922'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
     2923to "yes", and re-run configure.
     2924
     2925END
     2926    AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
     2927  fi
     2928fi
     2929dnl The trailing newline in this macro's definition is deliberate, for
     2930dnl backward compatibility and to allow trailing 'dnl'-style comments
     2931dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841.
    26512932])
    26522933
    2653 dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
     2934dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
    26542935dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
    26552936dnl mangled by Autoconf and run in a shell conditional statement.
    26562937m4_define([_AC_COMPILER_EXEEXT],
    26572938m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
    2658 
    26592939
    26602940# When config.status generates a header, we must update the stamp-h file.
     
    26792959echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
    26802960
    2681 # Copyright (C) 2001, 2003, 2005, 2008, 2011 Free Software Foundation,
    2682 # Inc.
     2961# Copyright (C) 2001-2014 Free Software Foundation, Inc.
    26832962#
    26842963# This file is free software; the Free Software Foundation
    26852964# gives unlimited permission to copy and/or distribute it,
    26862965# with or without modifications, as long as this notice is preserved.
    2687 
    2688 # serial 1
    26892966
    26902967# AM_PROG_INSTALL_SH
     
    26932970AC_DEFUN([AM_PROG_INSTALL_SH],
    26942971[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
    2695 if test x"${install_sh}" != xset; then
     2972if test x"${install_sh+set}" != xset; then
    26962973  case $am_aux_dir in
    26972974  *\ * | *\     *)
     
    27012978  esac
    27022979fi
    2703 AC_SUBST(install_sh)])
    2704 
    2705 # Copyright (C) 2003, 2005 Free Software Foundation, Inc.
     2980AC_SUBST([install_sh])])
     2981
     2982# Copyright (C) 2003-2014 Free Software Foundation, Inc.
    27062983#
    27072984# This file is free software; the Free Software Foundation
    27082985# gives unlimited permission to copy and/or distribute it,
    27092986# with or without modifications, as long as this notice is preserved.
    2710 
    2711 # serial 2
    27122987
    27132988# Check whether the underlying file-system supports filenames
     
    27263001# Check to see how 'make' treats includes.                  -*- Autoconf -*-
    27273002
    2728 # Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
     3003# Copyright (C) 2001-2014 Free Software Foundation, Inc.
    27293004#
    27303005# This file is free software; the Free Software Foundation
    27313006# gives unlimited permission to copy and/or distribute it,
    27323007# with or without modifications, as long as this notice is preserved.
    2733 
    2734 # serial 4
    27353008
    27363009# AM_MAKE_INCLUDE()
     
    27513024# First try GNU make style include.
    27523025echo "include confinc" > confmf
    2753 # Ignore all kinds of additional output from `make'.
     3026# Ignore all kinds of additional output from 'make'.
    27543027case `$am_make -s -f confmf 2> /dev/null` in #(
    27553028*the\ am__doit\ target*)
     
    27763049])
    27773050
    2778 # Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005, 2008
    2779 # Free Software Foundation, Inc.
     3051# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
     3052
     3053# Copyright (C) 1997-2014 Free Software Foundation, Inc.
    27803054#
    27813055# This file is free software; the Free Software Foundation
    27823056# gives unlimited permission to copy and/or distribute it,
    27833057# with or without modifications, as long as this notice is preserved.
    2784 
    2785 # serial 6
    2786 
    2787 # AM_PROG_CC_C_O
    2788 # --------------
    2789 # Like AC_PROG_CC_C_O, but changed for automake.
    2790 AC_DEFUN([AM_PROG_CC_C_O],
    2791 [AC_REQUIRE([AC_PROG_CC_C_O])dnl
    2792 AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
    2793 AC_REQUIRE_AUX_FILE([compile])dnl
    2794 # FIXME: we rely on the cache variable name because
    2795 # there is no other way.
    2796 set dummy $CC
    2797 am_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
    2798 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
    2799 if test "$am_t" != yes; then
    2800    # Losing compiler, so override with the script.
    2801    # FIXME: It is wrong to rewrite CC.
    2802    # But if we don't then we get into trouble of one sort or another.
    2803    # A longer-term fix would be to have automake use am__CC in this case,
    2804    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
    2805    CC="$am_aux_dir/compile $CC"
    2806 fi
    2807 dnl Make sure AC_PROG_CC is never called again, or it will override our
    2808 dnl setting of CC.
    2809 m4_define([AC_PROG_CC],
    2810           [m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])])
    2811 ])
    2812 
    2813 # Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
    2814 
    2815 # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
    2816 # Free Software Foundation, Inc.
    2817 #
    2818 # This file is free software; the Free Software Foundation
    2819 # gives unlimited permission to copy and/or distribute it,
    2820 # with or without modifications, as long as this notice is preserved.
    2821 
    2822 # serial 6
    28233058
    28243059# AM_MISSING_PROG(NAME, PROGRAM)
     
    28293064AC_SUBST($1)])
    28303065
    2831 
    28323066# AM_MISSING_HAS_RUN
    28333067# ------------------
    2834 # Define MISSING if not defined so far and test if it supports --run.
    2835 # If it does, set am_missing_run to use it, otherwise, to nothing.
     3068# Define MISSING if not defined so far and test if it is modern enough.
     3069# If it is, set am_missing_run to use it, otherwise, to nothing.
    28363070AC_DEFUN([AM_MISSING_HAS_RUN],
    28373071[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
     
    28463080fi
    28473081# Use eval to expand $SHELL
    2848 if eval "$MISSING --run true"; then
    2849   am_missing_run="$MISSING --run "
     3082if eval "$MISSING --is-lightweight"; then
     3083  am_missing_run="$MISSING "
    28503084else
    28513085  am_missing_run=
    2852   AC_MSG_WARN([`missing' script is too old or missing])
     3086  AC_MSG_WARN(['missing' script is too old or missing])
    28533087fi
    28543088])
    28553089
    2856 # Copyright (C) 2003, 2004, 2005, 2006, 2011 Free Software Foundation,
    2857 # Inc.
     3090# Helper functions for option handling.                     -*- Autoconf -*-
     3091
     3092# Copyright (C) 2001-2014 Free Software Foundation, Inc.
    28583093#
    28593094# This file is free software; the Free Software Foundation
    28603095# gives unlimited permission to copy and/or distribute it,
    28613096# with or without modifications, as long as this notice is preserved.
    2862 
    2863 # serial 1
    2864 
    2865 # AM_PROG_MKDIR_P
    2866 # ---------------
    2867 # Check for `mkdir -p'.
    2868 AC_DEFUN([AM_PROG_MKDIR_P],
    2869 [AC_PREREQ([2.60])dnl
    2870 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
    2871 dnl Automake 1.8 to 1.9.6 used to define mkdir_p.  We now use MKDIR_P,
    2872 dnl while keeping a definition of mkdir_p for backward compatibility.
    2873 dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
    2874 dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
    2875 dnl Makefile.ins that do not define MKDIR_P, so we do our own
    2876 dnl adjustment using top_builddir (which is defined more often than
    2877 dnl MKDIR_P).
    2878 AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
    2879 case $mkdir_p in
    2880   [[\\/$]]* | ?:[[\\/]]*) ;;
    2881   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
    2882 esac
    2883 ])
    2884 
    2885 # Helper functions for option handling.                     -*- Autoconf -*-
    2886 
    2887 # Copyright (C) 2001, 2002, 2003, 2005, 2008, 2010 Free Software
    2888 # Foundation, Inc.
    2889 #
    2890 # This file is free software; the Free Software Foundation
    2891 # gives unlimited permission to copy and/or distribute it,
    2892 # with or without modifications, as long as this notice is preserved.
    2893 
    2894 # serial 5
    28953097
    28963098# _AM_MANGLE_OPTION(NAME)
     
    29033105# Set option NAME.  Presently that only means defining a flag for this option.
    29043106AC_DEFUN([_AM_SET_OPTION],
    2905 [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
     3107[m4_define(_AM_MANGLE_OPTION([$1]), [1])])
    29063108
    29073109# _AM_SET_OPTIONS(OPTIONS)
     
    29173119[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
    29183120
    2919 # Check to make sure that the build environment is sane.    -*- Autoconf -*-
    2920 
    2921 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
    2922 # Free Software Foundation, Inc.
     3121# Copyright (C) 1999-2014 Free Software Foundation, Inc.
    29233122#
    29243123# This file is free software; the Free Software Foundation
     
    29263125# with or without modifications, as long as this notice is preserved.
    29273126
    2928 # serial 5
     3127# _AM_PROG_CC_C_O
     3128# ---------------
     3129# Like AC_PROG_CC_C_O, but changed for automake.  We rewrite AC_PROG_CC
     3130# to automatically call this.
     3131AC_DEFUN([_AM_PROG_CC_C_O],
     3132[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
     3133AC_REQUIRE_AUX_FILE([compile])dnl
     3134AC_LANG_PUSH([C])dnl
     3135AC_CACHE_CHECK(
     3136  [whether $CC understands -c and -o together],
     3137  [am_cv_prog_cc_c_o],
     3138  [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
     3139  # Make sure it works both with $CC and with simple cc.
     3140  # Following AC_PROG_CC_C_O, we do the test twice because some
     3141  # compilers refuse to overwrite an existing .o file with -o,
     3142  # though they will create one.
     3143  am_cv_prog_cc_c_o=yes
     3144  for am_i in 1 2; do
     3145    if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
     3146         && test -f conftest2.$ac_objext; then
     3147      : OK
     3148    else
     3149      am_cv_prog_cc_c_o=no
     3150      break
     3151    fi
     3152  done
     3153  rm -f core conftest*
     3154  unset am_i])
     3155if test "$am_cv_prog_cc_c_o" != yes; then
     3156   # Losing compiler, so override with the script.
     3157   # FIXME: It is wrong to rewrite CC.
     3158   # But if we don't then we get into trouble of one sort or another.
     3159   # A longer-term fix would be to have automake use am__CC in this case,
     3160   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
     3161   CC="$am_aux_dir/compile $CC"
     3162fi
     3163AC_LANG_POP([C])])
     3164
     3165# For backward compatibility.
     3166AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
     3167
     3168# Copyright (C) 2001-2014 Free Software Foundation, Inc.
     3169#
     3170# This file is free software; the Free Software Foundation
     3171# gives unlimited permission to copy and/or distribute it,
     3172# with or without modifications, as long as this notice is preserved.
     3173
     3174# AM_RUN_LOG(COMMAND)
     3175# -------------------
     3176# Run COMMAND, save the exit status in ac_status, and log it.
     3177# (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
     3178AC_DEFUN([AM_RUN_LOG],
     3179[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
     3180   ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
     3181   ac_status=$?
     3182   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
     3183   (exit $ac_status); }])
     3184
     3185# Check to make sure that the build environment is sane.    -*- Autoconf -*-
     3186
     3187# Copyright (C) 1996-2014 Free Software Foundation, Inc.
     3188#
     3189# This file is free software; the Free Software Foundation
     3190# gives unlimited permission to copy and/or distribute it,
     3191# with or without modifications, as long as this notice is preserved.
    29293192
    29303193# AM_SANITY_CHECK
     
    29323195AC_DEFUN([AM_SANITY_CHECK],
    29333196[AC_MSG_CHECKING([whether build environment is sane])
    2934 # Just in case
    2935 sleep 1
    2936 echo timestamp > conftest.file
    29373197# Reject unsafe characters in $srcdir or the absolute working directory
    29383198# name.  Accept space and tab only in the latter.
     
    29453205case $srcdir in
    29463206  *[[\\\"\#\$\&\'\`$am_lf\ \    ]]*)
    2947     AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
     3207    AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
    29483208esac
    29493209
    2950 # Do `set' in a subshell so we don't clobber the current shell's
     3210# Do 'set' in a subshell so we don't clobber the current shell's
    29513211# arguments.  Must try -L first in case configure is actually a
    29523212# symlink; some systems play weird games with the mod time of symlinks
     
    29543214# directory).
    29553215if (
    2956    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
    2957    if test "$[*]" = "X"; then
    2958       # -L didn't work.
    2959       set X `ls -t "$srcdir/configure" conftest.file`
    2960    fi
    2961    rm -f conftest.file
    2962    if test "$[*]" != "X $srcdir/configure conftest.file" \
    2963       && test "$[*]" != "X conftest.file $srcdir/configure"; then
    2964 
    2965       # If neither matched, then we have a broken ls.  This can happen
    2966       # if, for instance, CONFIG_SHELL is bash and it inherits a
    2967       # broken ls alias from the environment.  This has actually
    2968       # happened.  Such a system could not be considered "sane".
    2969       AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
    2970 alias in your environment])
    2971    fi
    2972 
     3216   am_has_slept=no
     3217   for am_try in 1 2; do
     3218     echo "timestamp, slept: $am_has_slept" > conftest.file
     3219     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
     3220     if test "$[*]" = "X"; then
     3221        # -L didn't work.
     3222        set X `ls -t "$srcdir/configure" conftest.file`
     3223     fi
     3224     if test "$[*]" != "X $srcdir/configure conftest.file" \
     3225        && test "$[*]" != "X conftest.file $srcdir/configure"; then
     3226
     3227        # If neither matched, then we have a broken ls.  This can happen
     3228        # if, for instance, CONFIG_SHELL is bash and it inherits a
     3229        # broken ls alias from the environment.  This has actually
     3230        # happened.  Such a system could not be considered "sane".
     3231        AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
     3232  alias in your environment])
     3233     fi
     3234     if test "$[2]" = conftest.file || test $am_try -eq 2; then
     3235       break
     3236     fi
     3237     # Just in case.
     3238     sleep 1
     3239     am_has_slept=yes
     3240   done
    29733241   test "$[2]" = conftest.file
    29743242   )
     
    29803248Check your system clock])
    29813249fi
    2982 AC_MSG_RESULT(yes)])
    2983 
    2984 # Copyright (C) 2009, 2011  Free Software Foundation, Inc.
     3250AC_MSG_RESULT([yes])
     3251# If we didn't sleep, we still need to ensure time stamps of config.status and
     3252# generated files are strictly newer.
     3253am_sleep_pid=
     3254if grep 'slept: no' conftest.file >/dev/null 2>&1; then
     3255  ( sleep 1 ) &
     3256  am_sleep_pid=$!
     3257fi
     3258AC_CONFIG_COMMANDS_PRE(
     3259  [AC_MSG_CHECKING([that generated files are newer than configure])
     3260   if test -n "$am_sleep_pid"; then
     3261     # Hide warnings about reused PIDs.
     3262     wait $am_sleep_pid 2>/dev/null
     3263   fi
     3264   AC_MSG_RESULT([done])])
     3265rm -f conftest.file
     3266])
     3267
     3268# Copyright (C) 2009-2014 Free Software Foundation, Inc.
    29853269#
    29863270# This file is free software; the Free Software Foundation
     
    29883272# with or without modifications, as long as this notice is preserved.
    29893273
    2990 # serial 2
    2991 
    29923274# AM_SILENT_RULES([DEFAULT])
    29933275# --------------------------
    29943276# Enable less verbose build rules; with the default set to DEFAULT
    2995 # (`yes' being less verbose, `no' or empty being verbose).
     3277# ("yes" being less verbose, "no" or empty being verbose).
    29963278AC_DEFUN([AM_SILENT_RULES],
    2997 [AC_ARG_ENABLE([silent-rules],
    2998 [  --enable-silent-rules          less verbose build output (undo: `make V=1')
    2999   --disable-silent-rules         verbose build output (undo: `make V=0')])
    3000 case $enable_silent_rules in
    3001 yes) AM_DEFAULT_VERBOSITY=0;;
    3002 no)  AM_DEFAULT_VERBOSITY=1;;
    3003 *)   AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
     3279[AC_ARG_ENABLE([silent-rules], [dnl
     3280AS_HELP_STRING(
     3281  [--enable-silent-rules],
     3282  [less verbose build output (undo: "make V=1")])
     3283AS_HELP_STRING(
     3284  [--disable-silent-rules],
     3285  [verbose build output (undo: "make V=0")])dnl
     3286])
     3287case $enable_silent_rules in @%:@ (((
     3288  yes) AM_DEFAULT_VERBOSITY=0;;
     3289   no) AM_DEFAULT_VERBOSITY=1;;
     3290    *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
    30043291esac
    30053292dnl
    3006 dnl A few `make' implementations (e.g., NonStop OS and NextStep)
     3293dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
    30073294dnl do not support nested variable expansions.
    30083295dnl See automake bug#9928 and bug#10237.
     
    30223309fi])
    30233310if test $am_cv_make_support_nested_variables = yes; then
    3024   dnl Using `$V' instead of `$(V)' breaks IRIX make.
     3311  dnl Using '$V' instead of '$(V)' breaks IRIX make.
    30253312  AM_V='$(V)'
    30263313  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
     
    30393326])
    30403327
    3041 # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
     3328# Copyright (C) 2001-2014 Free Software Foundation, Inc.
    30423329#
    30433330# This file is free software; the Free Software Foundation
     
    30453332# with or without modifications, as long as this notice is preserved.
    30463333
    3047 # serial 1
    3048 
    30493334# AM_PROG_INSTALL_STRIP
    30503335# ---------------------
    3051 # One issue with vendor `install' (even GNU) is that you can't
     3336# One issue with vendor 'install' (even GNU) is that you can't
    30523337# specify the program used to strip binaries.  This is especially
    30533338# annoying in cross-compiling environments, where the build's strip
    30543339# is unlikely to handle the host's binaries.
    30553340# Fortunately install-sh will honor a STRIPPROG variable, so we
    3056 # always use install-sh in `make install-strip', and initialize
     3341# always use install-sh in "make install-strip", and initialize
    30573342# STRIPPROG with the value of the STRIP variable (set by the user).
    30583343AC_DEFUN([AM_PROG_INSTALL_STRIP],
    30593344[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
    3060 # Installed binaries are usually stripped using `strip' when the user
    3061 # run `make install-strip'.  However `strip' might not be the right
     3345# Installed binaries are usually stripped using 'strip' when the user
     3346# run "make install-strip".  However 'strip' might not be the right
    30623347# tool to use in cross-compilation environments, therefore Automake
    3063 # will honor the `STRIP' environment variable to overrule this program.
    3064 dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
     3348# will honor the 'STRIP' environment variable to overrule this program.
     3349dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
    30653350if test "$cross_compiling" != no; then
    30663351  AC_CHECK_TOOL([STRIP], [strip], :)
     
    30693354AC_SUBST([INSTALL_STRIP_PROGRAM])])
    30703355
    3071 # Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc.
     3356# Copyright (C) 2006-2014 Free Software Foundation, Inc.
    30723357#
    30733358# This file is free software; the Free Software Foundation
    30743359# gives unlimited permission to copy and/or distribute it,
    30753360# with or without modifications, as long as this notice is preserved.
    3076 
    3077 # serial 3
    30783361
    30793362# _AM_SUBST_NOTMAKE(VARIABLE)
     
    30903373# Check how to create a tarball.                            -*- Autoconf -*-
    30913374
    3092 # Copyright (C) 2004, 2005, 2012 Free Software Foundation, Inc.
     3375# Copyright (C) 2004-2014 Free Software Foundation, Inc.
    30933376#
    30943377# This file is free software; the Free Software Foundation
     
    30963379# with or without modifications, as long as this notice is preserved.
    30973380
    3098 # serial 2
    3099 
    31003381# _AM_PROG_TAR(FORMAT)
    31013382# --------------------
    31023383# Check how to create a tarball in format FORMAT.
    3103 # FORMAT should be one of `v7', `ustar', or `pax'.
     3384# FORMAT should be one of 'v7', 'ustar', or 'pax'.
    31043385#
    31053386# Substitute a variable $(am__tar) that is a command
     
    31113392# a tarball read from stdin.
    31123393#     $(am__untar) < result.tar
     3394#
    31133395AC_DEFUN([_AM_PROG_TAR],
    31143396[# Always define AMTAR for backward compatibility.  Yes, it's still used
    31153397# in the wild :-(  We should find a proper way to deprecate it ...
    31163398AC_SUBST([AMTAR], ['$${TAR-tar}'])
     3399
     3400# We'll loop over all known methods to create a tar archive until one works.
     3401_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
     3402
    31173403m4_if([$1], [v7],
    3118      [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
    3119      [m4_case([$1], [ustar],, [pax],,
    3120               [m4_fatal([Unknown tar format])])
    3121 AC_MSG_CHECKING([how to create a $1 tar archive])
    3122 # Loop over all known methods to create a tar archive until one works.
    3123 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
    3124 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
    3125 # Do not fold the above two line into one, because Tru64 sh and
    3126 # Solaris sh will not grok spaces in the rhs of `-'.
    3127 for _am_tool in $_am_tools
    3128 do
    3129   case $_am_tool in
    3130   gnutar)
    3131     for _am_tar in tar gnutar gtar;
    3132     do
    3133       AM_RUN_LOG([$_am_tar --version]) && break
    3134     done
    3135     am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
    3136     am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
    3137     am__untar="$_am_tar -xf -"
    3138     ;;
    3139   plaintar)
    3140     # Must skip GNU tar: if it does not support --format= it doesn't create
    3141     # ustar tarball either.
    3142     (tar --version) >/dev/null 2>&1 && continue
    3143     am__tar='tar chf - "$$tardir"'
    3144     am__tar_='tar chf - "$tardir"'
    3145     am__untar='tar xf -'
    3146     ;;
    3147   pax)
    3148     am__tar='pax -L -x $1 -w "$$tardir"'
    3149     am__tar_='pax -L -x $1 -w "$tardir"'
    3150     am__untar='pax -r'
    3151     ;;
    3152   cpio)
    3153     am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
    3154     am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
    3155     am__untar='cpio -i -H $1 -d'
    3156     ;;
    3157   none)
    3158     am__tar=false
    3159     am__tar_=false
    3160     am__untar=false
    3161     ;;
    3162   esac
    3163 
    3164   # If the value was cached, stop now.  We just wanted to have am__tar
    3165   # and am__untar set.
    3166   test -n "${am_cv_prog_tar_$1}" && break
    3167 
    3168   # tar/untar a dummy directory, and stop if the command works
     3404  [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
     3405
     3406  [m4_case([$1],
     3407    [ustar],
     3408     [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
     3409      # There is notably a 21 bits limit for the UID and the GID.  In fact,
     3410      # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
     3411      # and bug#13588).
     3412      am_max_uid=2097151 # 2^21 - 1
     3413      am_max_gid=$am_max_uid
     3414      # The $UID and $GID variables are not portable, so we need to resort
     3415      # to the POSIX-mandated id(1) utility.  Errors in the 'id' calls
     3416      # below are definitely unexpected, so allow the users to see them
     3417      # (that is, avoid stderr redirection).
     3418      am_uid=`id -u || echo unknown`
     3419      am_gid=`id -g || echo unknown`
     3420      AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
     3421      if test $am_uid -le $am_max_uid; then
     3422         AC_MSG_RESULT([yes])
     3423      else
     3424         AC_MSG_RESULT([no])
     3425         _am_tools=none
     3426      fi
     3427      AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
     3428      if test $am_gid -le $am_max_gid; then
     3429         AC_MSG_RESULT([yes])
     3430      else
     3431        AC_MSG_RESULT([no])
     3432        _am_tools=none
     3433      fi],
     3434
     3435  [pax],
     3436    [],
     3437
     3438  [m4_fatal([Unknown tar format])])
     3439
     3440  AC_MSG_CHECKING([how to create a $1 tar archive])
     3441
     3442  # Go ahead even if we have the value already cached.  We do so because we
     3443  # need to set the values for the 'am__tar' and 'am__untar' variables.
     3444  _am_tools=${am_cv_prog_tar_$1-$_am_tools}
     3445
     3446  for _am_tool in $_am_tools; do
     3447    case $_am_tool in
     3448    gnutar)
     3449      for _am_tar in tar gnutar gtar; do
     3450        AM_RUN_LOG([$_am_tar --version]) && break
     3451      done
     3452      am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
     3453      am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
     3454      am__untar="$_am_tar -xf -"
     3455      ;;
     3456    plaintar)
     3457      # Must skip GNU tar: if it does not support --format= it doesn't create
     3458      # ustar tarball either.
     3459      (tar --version) >/dev/null 2>&1 && continue
     3460      am__tar='tar chf - "$$tardir"'
     3461      am__tar_='tar chf - "$tardir"'
     3462      am__untar='tar xf -'
     3463      ;;
     3464    pax)
     3465      am__tar='pax -L -x $1 -w "$$tardir"'
     3466      am__tar_='pax -L -x $1 -w "$tardir"'
     3467      am__untar='pax -r'
     3468      ;;
     3469    cpio)
     3470      am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
     3471      am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
     3472      am__untar='cpio -i -H $1 -d'
     3473      ;;
     3474    none)
     3475      am__tar=false
     3476      am__tar_=false
     3477      am__untar=false
     3478      ;;
     3479    esac
     3480
     3481    # If the value was cached, stop now.  We just wanted to have am__tar
     3482    # and am__untar set.
     3483    test -n "${am_cv_prog_tar_$1}" && break
     3484
     3485    # tar/untar a dummy directory, and stop if the command works.
     3486    rm -rf conftest.dir
     3487    mkdir conftest.dir
     3488    echo GrepMe > conftest.dir/file
     3489    AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
     3490    rm -rf conftest.dir
     3491    if test -s conftest.tar; then
     3492      AM_RUN_LOG([$am__untar <conftest.tar])
     3493      AM_RUN_LOG([cat conftest.dir/file])
     3494      grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
     3495    fi
     3496  done
    31693497  rm -rf conftest.dir
    3170   mkdir conftest.dir
    3171   echo GrepMe > conftest.dir/file
    3172   AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
    3173   rm -rf conftest.dir
    3174   if test -s conftest.tar; then
    3175     AM_RUN_LOG([$am__untar <conftest.tar])
    3176     grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
    3177   fi
    3178 done
    3179 rm -rf conftest.dir
    3180 
    3181 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
    3182 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
     3498
     3499  AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
     3500  AC_MSG_RESULT([$am_cv_prog_tar_$1])])
     3501
    31833502AC_SUBST([am__tar])
    31843503AC_SUBST([am__untar])
Note: See TracChangeset for help on using the changeset viewer.