File indexing completed on 2024-12-22 04:04:15

0001 # generated automatically by aclocal 1.16.1 -*- Autoconf -*-
0002 
0003 # Copyright (C) 1996-2018 Free Software Foundation, Inc.
0004 
0005 # This file is free software; the Free Software Foundation
0006 # gives unlimited permission to copy and/or distribute it,
0007 # with or without modifications, as long as this notice is preserved.
0008 
0009 # This program is distributed in the hope that it will be useful,
0010 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
0011 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
0012 # PARTICULAR PURPOSE.
0013 
0014 m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
0015 m4_ifndef([AC_AUTOCONF_VERSION],
0016   [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
0017 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
0018 [m4_warning([this file was generated for autoconf 2.69.
0019 You have another version of autoconf.  It may work, but is not guaranteed to.
0020 If you have problems, you may need to regenerate the build system entirely.
0021 To do so, use the procedure documented by the package, typically 'autoreconf'.])])
0022 
0023 # Copyright (C) 2002-2018 Free Software Foundation, Inc.
0024 #
0025 # This file is free software; the Free Software Foundation
0026 # gives unlimited permission to copy and/or distribute it,
0027 # with or without modifications, as long as this notice is preserved.
0028 
0029 # AM_AUTOMAKE_VERSION(VERSION)
0030 # ----------------------------
0031 # Automake X.Y traces this macro to ensure aclocal.m4 has been
0032 # generated from the m4 files accompanying Automake X.Y.
0033 # (This private macro should not be called outside this file.)
0034 AC_DEFUN([AM_AUTOMAKE_VERSION],
0035 [am__api_version='1.16'
0036 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
0037 dnl require some minimum version.  Point them to the right macro.
0038 m4_if([$1], [1.16.1], [],
0039       [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
0040 ])
0041 
0042 # _AM_AUTOCONF_VERSION(VERSION)
0043 # -----------------------------
0044 # aclocal traces this macro to find the Autoconf version.
0045 # This is a private macro too.  Using m4_define simplifies
0046 # the logic in aclocal, which can simply ignore this definition.
0047 m4_define([_AM_AUTOCONF_VERSION], [])
0048 
0049 # AM_SET_CURRENT_AUTOMAKE_VERSION
0050 # -------------------------------
0051 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
0052 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
0053 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
0054 [AM_AUTOMAKE_VERSION([1.16.1])dnl
0055 m4_ifndef([AC_AUTOCONF_VERSION],
0056   [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
0057 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
0058 
0059 # AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
0060 
0061 # Copyright (C) 2001-2018 Free Software Foundation, Inc.
0062 #
0063 # This file is free software; the Free Software Foundation
0064 # gives unlimited permission to copy and/or distribute it,
0065 # with or without modifications, as long as this notice is preserved.
0066 
0067 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
0068 # $ac_aux_dir to '$srcdir/foo'.  In other projects, it is set to
0069 # '$srcdir', '$srcdir/..', or '$srcdir/../..'.
0070 #
0071 # Of course, Automake must honor this variable whenever it calls a
0072 # tool from the auxiliary directory.  The problem is that $srcdir (and
0073 # therefore $ac_aux_dir as well) can be either absolute or relative,
0074 # depending on how configure is run.  This is pretty annoying, since
0075 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
0076 # source directory, any form will work fine, but in subdirectories a
0077 # relative path needs to be adjusted first.
0078 #
0079 # $ac_aux_dir/missing
0080 #    fails when called from a subdirectory if $ac_aux_dir is relative
0081 # $top_srcdir/$ac_aux_dir/missing
0082 #    fails if $ac_aux_dir is absolute,
0083 #    fails when called from a subdirectory in a VPATH build with
0084 #          a relative $ac_aux_dir
0085 #
0086 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
0087 # are both prefixed by $srcdir.  In an in-source build this is usually
0088 # harmless because $srcdir is '.', but things will broke when you
0089 # start a VPATH build or use an absolute $srcdir.
0090 #
0091 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
0092 # iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
0093 #   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
0094 # and then we would define $MISSING as
0095 #   MISSING="\${SHELL} $am_aux_dir/missing"
0096 # This will work as long as MISSING is not called from configure, because
0097 # unfortunately $(top_srcdir) has no meaning in configure.
0098 # However there are other variables, like CC, which are often used in
0099 # configure, and could therefore not use this "fixed" $ac_aux_dir.
0100 #
0101 # Another solution, used here, is to always expand $ac_aux_dir to an
0102 # absolute PATH.  The drawback is that using absolute paths prevent a
0103 # configured tree to be moved without reconfiguration.
0104 
0105 AC_DEFUN([AM_AUX_DIR_EXPAND],
0106 [AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
0107 # Expand $ac_aux_dir to an absolute path.
0108 am_aux_dir=`cd "$ac_aux_dir" && pwd`
0109 ])
0110 
0111 # AM_CONDITIONAL                                            -*- Autoconf -*-
0112 
0113 # Copyright (C) 1997-2018 Free Software Foundation, Inc.
0114 #
0115 # This file is free software; the Free Software Foundation
0116 # gives unlimited permission to copy and/or distribute it,
0117 # with or without modifications, as long as this notice is preserved.
0118 
0119 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
0120 # -------------------------------------
0121 # Define a conditional.
0122 AC_DEFUN([AM_CONDITIONAL],
0123 [AC_PREREQ([2.52])dnl
0124  m4_if([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
0125        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
0126 AC_SUBST([$1_TRUE])dnl
0127 AC_SUBST([$1_FALSE])dnl
0128 _AM_SUBST_NOTMAKE([$1_TRUE])dnl
0129 _AM_SUBST_NOTMAKE([$1_FALSE])dnl
0130 m4_define([_AM_COND_VALUE_$1], [$2])dnl
0131 if $2; then
0132   $1_TRUE=
0133   $1_FALSE='#'
0134 else
0135   $1_TRUE='#'
0136   $1_FALSE=
0137 fi
0138 AC_CONFIG_COMMANDS_PRE(
0139 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
0140   AC_MSG_ERROR([[conditional "$1" was never defined.
0141 Usually this means the macro was only invoked conditionally.]])
0142 fi])])
0143 
0144 # Copyright (C) 1999-2018 Free Software Foundation, Inc.
0145 #
0146 # This file is free software; the Free Software Foundation
0147 # gives unlimited permission to copy and/or distribute it,
0148 # with or without modifications, as long as this notice is preserved.
0149 
0150 
0151 # There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
0152 # written in clear, in which case automake, when reading aclocal.m4,
0153 # will think it sees a *use*, and therefore will trigger all it's
0154 # C support machinery.  Also note that it means that autoscan, seeing
0155 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
0156 
0157 
0158 # _AM_DEPENDENCIES(NAME)
0159 # ----------------------
0160 # See how the compiler implements dependency checking.
0161 # NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
0162 # We try a few techniques and use that to set a single cache variable.
0163 #
0164 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
0165 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
0166 # dependency, and given that the user is not expected to run this macro,
0167 # just rely on AC_PROG_CC.
0168 AC_DEFUN([_AM_DEPENDENCIES],
0169 [AC_REQUIRE([AM_SET_DEPDIR])dnl
0170 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
0171 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
0172 AC_REQUIRE([AM_DEP_TRACK])dnl
0173 
0174 m4_if([$1], [CC],   [depcc="$CC"   am_compiler_list=],
0175       [$1], [CXX],  [depcc="$CXX"  am_compiler_list=],
0176       [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
0177       [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
0178       [$1], [UPC],  [depcc="$UPC"  am_compiler_list=],
0179       [$1], [GCJ],  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
0180                     [depcc="$$1"   am_compiler_list=])
0181 
0182 AC_CACHE_CHECK([dependency style of $depcc],
0183                [am_cv_$1_dependencies_compiler_type],
0184 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
0185   # We make a subdir and do the tests there.  Otherwise we can end up
0186   # making bogus files that we don't know about and never remove.  For
0187   # instance it was reported that on HP-UX the gcc test will end up
0188   # making a dummy file named 'D' -- because '-MD' means "put the output
0189   # in D".
0190   rm -rf conftest.dir
0191   mkdir conftest.dir
0192   # Copy depcomp to subdir because otherwise we won't find it if we're
0193   # using a relative directory.
0194   cp "$am_depcomp" conftest.dir
0195   cd conftest.dir
0196   # We will build objects and dependencies in a subdirectory because
0197   # it helps to detect inapplicable dependency modes.  For instance
0198   # both Tru64's cc and ICC support -MD to output dependencies as a
0199   # side effect of compilation, but ICC will put the dependencies in
0200   # the current directory while Tru64 will put them in the object
0201   # directory.
0202   mkdir sub
0203 
0204   am_cv_$1_dependencies_compiler_type=none
0205   if test "$am_compiler_list" = ""; then
0206      am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
0207   fi
0208   am__universal=false
0209   m4_case([$1], [CC],
0210     [case " $depcc " in #(
0211      *\ -arch\ *\ -arch\ *) am__universal=true ;;
0212      esac],
0213     [CXX],
0214     [case " $depcc " in #(
0215      *\ -arch\ *\ -arch\ *) am__universal=true ;;
0216      esac])
0217 
0218   for depmode in $am_compiler_list; do
0219     # Setup a source with many dependencies, because some compilers
0220     # like to wrap large dependency lists on column 80 (with \), and
0221     # we should not choose a depcomp mode which is confused by this.
0222     #
0223     # We need to recreate these files for each test, as the compiler may
0224     # overwrite some of them when testing with obscure command lines.
0225     # This happens at least with the AIX C compiler.
0226     : > sub/conftest.c
0227     for i in 1 2 3 4 5 6; do
0228       echo '#include "conftst'$i'.h"' >> sub/conftest.c
0229       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
0230       # Solaris 10 /bin/sh.
0231       echo '/* dummy */' > sub/conftst$i.h
0232     done
0233     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
0234 
0235     # We check with '-c' and '-o' for the sake of the "dashmstdout"
0236     # mode.  It turns out that the SunPro C++ compiler does not properly
0237     # handle '-M -o', and we need to detect this.  Also, some Intel
0238     # versions had trouble with output in subdirs.
0239     am__obj=sub/conftest.${OBJEXT-o}
0240     am__minus_obj="-o $am__obj"
0241     case $depmode in
0242     gcc)
0243       # This depmode causes a compiler race in universal mode.
0244       test "$am__universal" = false || continue
0245       ;;
0246     nosideeffect)
0247       # After this tag, mechanisms are not by side-effect, so they'll
0248       # only be used when explicitly requested.
0249       if test "x$enable_dependency_tracking" = xyes; then
0250         continue
0251       else
0252         break
0253       fi
0254       ;;
0255     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
0256       # This compiler won't grok '-c -o', but also, the minuso test has
0257       # not run yet.  These depmodes are late enough in the game, and
0258       # so weak that their functioning should not be impacted.
0259       am__obj=conftest.${OBJEXT-o}
0260       am__minus_obj=
0261       ;;
0262     none) break ;;
0263     esac
0264     if depmode=$depmode \
0265        source=sub/conftest.c object=$am__obj \
0266        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
0267        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
0268          >/dev/null 2>conftest.err &&
0269        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
0270        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
0271        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
0272        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
0273       # icc doesn't choke on unknown options, it will just issue warnings
0274       # or remarks (even with -Werror).  So we grep stderr for any message
0275       # that says an option was ignored or not supported.
0276       # When given -MP, icc 7.0 and 7.1 complain thusly:
0277       #   icc: Command line warning: ignoring option '-M'; no argument required
0278       # The diagnosis changed in icc 8.0:
0279       #   icc: Command line remark: option '-MP' not supported
0280       if (grep 'ignoring option' conftest.err ||
0281           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
0282         am_cv_$1_dependencies_compiler_type=$depmode
0283         break
0284       fi
0285     fi
0286   done
0287 
0288   cd ..
0289   rm -rf conftest.dir
0290 else
0291   am_cv_$1_dependencies_compiler_type=none
0292 fi
0293 ])
0294 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
0295 AM_CONDITIONAL([am__fastdep$1], [
0296   test "x$enable_dependency_tracking" != xno \
0297   && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
0298 ])
0299 
0300 
0301 # AM_SET_DEPDIR
0302 # -------------
0303 # Choose a directory name for dependency files.
0304 # This macro is AC_REQUIREd in _AM_DEPENDENCIES.
0305 AC_DEFUN([AM_SET_DEPDIR],
0306 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
0307 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
0308 ])
0309 
0310 
0311 # AM_DEP_TRACK
0312 # ------------
0313 AC_DEFUN([AM_DEP_TRACK],
0314 [AC_ARG_ENABLE([dependency-tracking], [dnl
0315 AS_HELP_STRING(
0316   [--enable-dependency-tracking],
0317   [do not reject slow dependency extractors])
0318 AS_HELP_STRING(
0319   [--disable-dependency-tracking],
0320   [speeds up one-time build])])
0321 if test "x$enable_dependency_tracking" != xno; then
0322   am_depcomp="$ac_aux_dir/depcomp"
0323   AMDEPBACKSLASH='\'
0324   am__nodep='_no'
0325 fi
0326 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
0327 AC_SUBST([AMDEPBACKSLASH])dnl
0328 _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
0329 AC_SUBST([am__nodep])dnl
0330 _AM_SUBST_NOTMAKE([am__nodep])dnl
0331 ])
0332 
0333 # Generate code to set up dependency tracking.              -*- Autoconf -*-
0334 
0335 # Copyright (C) 1999-2018 Free Software Foundation, Inc.
0336 #
0337 # This file is free software; the Free Software Foundation
0338 # gives unlimited permission to copy and/or distribute it,
0339 # with or without modifications, as long as this notice is preserved.
0340 
0341 # _AM_OUTPUT_DEPENDENCY_COMMANDS
0342 # ------------------------------
0343 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
0344 [{
0345   # Older Autoconf quotes --file arguments for eval, but not when files
0346   # are listed without --file.  Let's play safe and only enable the eval
0347   # if we detect the quoting.
0348   # TODO: see whether this extra hack can be removed once we start
0349   # requiring Autoconf 2.70 or later.
0350   AS_CASE([$CONFIG_FILES],
0351           [*\'*], [eval set x "$CONFIG_FILES"],
0352           [*], [set x $CONFIG_FILES])
0353   shift
0354   # Used to flag and report bootstrapping failures.
0355   am_rc=0
0356   for am_mf
0357   do
0358     # Strip MF so we end up with the name of the file.
0359     am_mf=`AS_ECHO(["$am_mf"]) | sed -e 's/:.*$//'`
0360     # Check whether this is an Automake generated Makefile which includes
0361     # dependency-tracking related rules and includes.
0362     # Grep'ing the whole file directly is not great: AIX grep has a line
0363     # limit of 2048, but all sed's we know have understand at least 4000.
0364     sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
0365       || continue
0366     am_dirpart=`AS_DIRNAME(["$am_mf"])`
0367     am_filepart=`AS_BASENAME(["$am_mf"])`
0368     AM_RUN_LOG([cd "$am_dirpart" \
0369       && sed -e '/# am--include-marker/d' "$am_filepart" \
0370         | $MAKE -f - am--depfiles]) || am_rc=$?
0371   done
0372   if test $am_rc -ne 0; then
0373     AC_MSG_FAILURE([Something went wrong bootstrapping makefile fragments
0374     for automatic dependency tracking.  Try re-running configure with the
0375     '--disable-dependency-tracking' option to at least be able to build
0376     the package (albeit without support for automatic dependency tracking).])
0377   fi
0378   AS_UNSET([am_dirpart])
0379   AS_UNSET([am_filepart])
0380   AS_UNSET([am_mf])
0381   AS_UNSET([am_rc])
0382   rm -f conftest-deps.mk
0383 }
0384 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
0385 
0386 
0387 # AM_OUTPUT_DEPENDENCY_COMMANDS
0388 # -----------------------------
0389 # This macro should only be invoked once -- use via AC_REQUIRE.
0390 #
0391 # This code is only required when automatic dependency tracking is enabled.
0392 # This creates each '.Po' and '.Plo' makefile fragment that we'll need in
0393 # order to bootstrap the dependency handling code.
0394 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
0395 [AC_CONFIG_COMMANDS([depfiles],
0396      [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
0397      [AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"])])
0398 
0399 # Do all the work for Automake.                             -*- Autoconf -*-
0400 
0401 # Copyright (C) 1996-2018 Free Software Foundation, Inc.
0402 #
0403 # This file is free software; the Free Software Foundation
0404 # gives unlimited permission to copy and/or distribute it,
0405 # with or without modifications, as long as this notice is preserved.
0406 
0407 # This macro actually does too much.  Some checks are only needed if
0408 # your package does certain things.  But this isn't really a big deal.
0409 
0410 dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
0411 m4_define([AC_PROG_CC],
0412 m4_defn([AC_PROG_CC])
0413 [_AM_PROG_CC_C_O
0414 ])
0415 
0416 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
0417 # AM_INIT_AUTOMAKE([OPTIONS])
0418 # -----------------------------------------------
0419 # The call with PACKAGE and VERSION arguments is the old style
0420 # call (pre autoconf-2.50), which is being phased out.  PACKAGE
0421 # and VERSION should now be passed to AC_INIT and removed from
0422 # the call to AM_INIT_AUTOMAKE.
0423 # We support both call styles for the transition.  After
0424 # the next Automake release, Autoconf can make the AC_INIT
0425 # arguments mandatory, and then we can depend on a new Autoconf
0426 # release and drop the old call support.
0427 AC_DEFUN([AM_INIT_AUTOMAKE],
0428 [AC_PREREQ([2.65])dnl
0429 dnl Autoconf wants to disallow AM_ names.  We explicitly allow
0430 dnl the ones we care about.
0431 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
0432 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
0433 AC_REQUIRE([AC_PROG_INSTALL])dnl
0434 if test "`cd $srcdir && pwd`" != "`pwd`"; then
0435   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
0436   # is not polluted with repeated "-I."
0437   AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
0438   # test to see if srcdir already configured
0439   if test -f $srcdir/config.status; then
0440     AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
0441   fi
0442 fi
0443 
0444 # test whether we have cygpath
0445 if test -z "$CYGPATH_W"; then
0446   if (cygpath --version) >/dev/null 2>/dev/null; then
0447     CYGPATH_W='cygpath -w'
0448   else
0449     CYGPATH_W=echo
0450   fi
0451 fi
0452 AC_SUBST([CYGPATH_W])
0453 
0454 # Define the identity of the package.
0455 dnl Distinguish between old-style and new-style calls.
0456 m4_ifval([$2],
0457 [AC_DIAGNOSE([obsolete],
0458              [$0: two- and three-arguments forms are deprecated.])
0459 m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
0460  AC_SUBST([PACKAGE], [$1])dnl
0461  AC_SUBST([VERSION], [$2])],
0462 [_AM_SET_OPTIONS([$1])dnl
0463 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
0464 m4_if(
0465   m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
0466   [ok:ok],,
0467   [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
0468  AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
0469  AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
0470 
0471 _AM_IF_OPTION([no-define],,
0472 [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
0473  AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
0474 
0475 # Some tools Automake needs.
0476 AC_REQUIRE([AM_SANITY_CHECK])dnl
0477 AC_REQUIRE([AC_ARG_PROGRAM])dnl
0478 AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
0479 AM_MISSING_PROG([AUTOCONF], [autoconf])
0480 AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
0481 AM_MISSING_PROG([AUTOHEADER], [autoheader])
0482 AM_MISSING_PROG([MAKEINFO], [makeinfo])
0483 AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
0484 AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
0485 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
0486 # For better backward compatibility.  To be removed once Automake 1.9.x
0487 # dies out for good.  For more background, see:
0488 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
0489 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
0490 AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
0491 # We need awk for the "check" target (and possibly the TAP driver).  The
0492 # system "awk" is bad on some platforms.
0493 AC_REQUIRE([AC_PROG_AWK])dnl
0494 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
0495 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
0496 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
0497               [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
0498                              [_AM_PROG_TAR([v7])])])
0499 _AM_IF_OPTION([no-dependencies],,
0500 [AC_PROVIDE_IFELSE([AC_PROG_CC],
0501                   [_AM_DEPENDENCIES([CC])],
0502                   [m4_define([AC_PROG_CC],
0503                              m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
0504 AC_PROVIDE_IFELSE([AC_PROG_CXX],
0505                   [_AM_DEPENDENCIES([CXX])],
0506                   [m4_define([AC_PROG_CXX],
0507                              m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
0508 AC_PROVIDE_IFELSE([AC_PROG_OBJC],
0509                   [_AM_DEPENDENCIES([OBJC])],
0510                   [m4_define([AC_PROG_OBJC],
0511                              m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
0512 AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
0513                   [_AM_DEPENDENCIES([OBJCXX])],
0514                   [m4_define([AC_PROG_OBJCXX],
0515                              m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
0516 ])
0517 AC_REQUIRE([AM_SILENT_RULES])dnl
0518 dnl The testsuite driver may need to know about EXEEXT, so add the
0519 dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This
0520 dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
0521 AC_CONFIG_COMMANDS_PRE(dnl
0522 [m4_provide_if([_AM_COMPILER_EXEEXT],
0523   [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
0524 
0525 # POSIX will say in a future version that running "rm -f" with no argument
0526 # is OK; and we want to be able to make that assumption in our Makefile
0527 # recipes.  So use an aggressive probe to check that the usage we want is
0528 # actually supported "in the wild" to an acceptable degree.
0529 # See automake bug#10828.
0530 # To make any issue more visible, cause the running configure to be aborted
0531 # by default if the 'rm' program in use doesn't match our expectations; the
0532 # user can still override this though.
0533 if rm -f && rm -fr && rm -rf; then : OK; else
0534   cat >&2 <<'END'
0535 Oops!
0536 
0537 Your 'rm' program seems unable to run without file operands specified
0538 on the command line, even when the '-f' option is present.  This is contrary
0539 to the behaviour of most rm programs out there, and not conforming with
0540 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
0541 
0542 Please tell bug-automake@gnu.org about your system, including the value
0543 of your $PATH and any error possibly output before this message.  This
0544 can help us improve future automake versions.
0545 
0546 END
0547   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
0548     echo 'Configuration will proceed anyway, since you have set the' >&2
0549     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
0550     echo >&2
0551   else
0552     cat >&2 <<'END'
0553 Aborting the configuration process, to ensure you take notice of the issue.
0554 
0555 You can download and install GNU coreutils to get an 'rm' implementation
0556 that behaves properly: <https://www.gnu.org/software/coreutils/>.
0557 
0558 If you want to complete the configuration process using your problematic
0559 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
0560 to "yes", and re-run configure.
0561 
0562 END
0563     AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
0564   fi
0565 fi
0566 dnl The trailing newline in this macro's definition is deliberate, for
0567 dnl backward compatibility and to allow trailing 'dnl'-style comments
0568 dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841.
0569 ])
0570 
0571 dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
0572 dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
0573 dnl mangled by Autoconf and run in a shell conditional statement.
0574 m4_define([_AC_COMPILER_EXEEXT],
0575 m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
0576 
0577 # When config.status generates a header, we must update the stamp-h file.
0578 # This file resides in the same directory as the config header
0579 # that is generated.  The stamp files are numbered to have different names.
0580 
0581 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
0582 # loop where config.status creates the headers, so we can generate
0583 # our stamp files there.
0584 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
0585 [# Compute $1's index in $config_headers.
0586 _am_arg=$1
0587 _am_stamp_count=1
0588 for _am_header in $config_headers :; do
0589   case $_am_header in
0590     $_am_arg | $_am_arg:* )
0591       break ;;
0592     * )
0593       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
0594   esac
0595 done
0596 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
0597 
0598 # Copyright (C) 2001-2018 Free Software Foundation, Inc.
0599 #
0600 # This file is free software; the Free Software Foundation
0601 # gives unlimited permission to copy and/or distribute it,
0602 # with or without modifications, as long as this notice is preserved.
0603 
0604 # AM_PROG_INSTALL_SH
0605 # ------------------
0606 # Define $install_sh.
0607 AC_DEFUN([AM_PROG_INSTALL_SH],
0608 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
0609 if test x"${install_sh+set}" != xset; then
0610   case $am_aux_dir in
0611   *\ * | *\     *)
0612     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
0613   *)
0614     install_sh="\${SHELL} $am_aux_dir/install-sh"
0615   esac
0616 fi
0617 AC_SUBST([install_sh])])
0618 
0619 # Copyright (C) 2003-2018 Free Software Foundation, Inc.
0620 #
0621 # This file is free software; the Free Software Foundation
0622 # gives unlimited permission to copy and/or distribute it,
0623 # with or without modifications, as long as this notice is preserved.
0624 
0625 # Check whether the underlying file-system supports filenames
0626 # with a leading dot.  For instance MS-DOS doesn't.
0627 AC_DEFUN([AM_SET_LEADING_DOT],
0628 [rm -rf .tst 2>/dev/null
0629 mkdir .tst 2>/dev/null
0630 if test -d .tst; then
0631   am__leading_dot=.
0632 else
0633   am__leading_dot=_
0634 fi
0635 rmdir .tst 2>/dev/null
0636 AC_SUBST([am__leading_dot])])
0637 
0638 # Check to see how 'make' treats includes.                  -*- Autoconf -*-
0639 
0640 # Copyright (C) 2001-2018 Free Software Foundation, Inc.
0641 #
0642 # This file is free software; the Free Software Foundation
0643 # gives unlimited permission to copy and/or distribute it,
0644 # with or without modifications, as long as this notice is preserved.
0645 
0646 # AM_MAKE_INCLUDE()
0647 # -----------------
0648 # Check whether make has an 'include' directive that can support all
0649 # the idioms we need for our automatic dependency tracking code.
0650 AC_DEFUN([AM_MAKE_INCLUDE],
0651 [AC_MSG_CHECKING([whether ${MAKE-make} supports the include directive])
0652 cat > confinc.mk << 'END'
0653 am__doit:
0654         @echo this is the am__doit target >confinc.out
0655 .PHONY: am__doit
0656 END
0657 am__include="#"
0658 am__quote=
0659 # BSD make does it like this.
0660 echo '.include "confinc.mk" # ignored' > confmf.BSD
0661 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
0662 echo 'include confinc.mk # ignored' > confmf.GNU
0663 _am_result=no
0664 for s in GNU BSD; do
0665   AM_RUN_LOG([${MAKE-make} -f confmf.$s && cat confinc.out])
0666   AS_CASE([$?:`cat confinc.out 2>/dev/null`],
0667       ['0:this is the am__doit target'],
0668       [AS_CASE([$s],
0669           [BSD], [am__include='.include' am__quote='"'],
0670           [am__include='include' am__quote=''])])
0671   if test "$am__include" != "#"; then
0672     _am_result="yes ($s style)"
0673     break
0674   fi
0675 done
0676 rm -f confinc.* confmf.*
0677 AC_MSG_RESULT([${_am_result}])
0678 AC_SUBST([am__include])])
0679 AC_SUBST([am__quote])])
0680 
0681 # Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
0682 
0683 # Copyright (C) 1997-2018 Free Software Foundation, Inc.
0684 #
0685 # This file is free software; the Free Software Foundation
0686 # gives unlimited permission to copy and/or distribute it,
0687 # with or without modifications, as long as this notice is preserved.
0688 
0689 # AM_MISSING_PROG(NAME, PROGRAM)
0690 # ------------------------------
0691 AC_DEFUN([AM_MISSING_PROG],
0692 [AC_REQUIRE([AM_MISSING_HAS_RUN])
0693 $1=${$1-"${am_missing_run}$2"}
0694 AC_SUBST($1)])
0695 
0696 # AM_MISSING_HAS_RUN
0697 # ------------------
0698 # Define MISSING if not defined so far and test if it is modern enough.
0699 # If it is, set am_missing_run to use it, otherwise, to nothing.
0700 AC_DEFUN([AM_MISSING_HAS_RUN],
0701 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
0702 AC_REQUIRE_AUX_FILE([missing])dnl
0703 if test x"${MISSING+set}" != xset; then
0704   case $am_aux_dir in
0705   *\ * | *\     *)
0706     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
0707   *)
0708     MISSING="\${SHELL} $am_aux_dir/missing" ;;
0709   esac
0710 fi
0711 # Use eval to expand $SHELL
0712 if eval "$MISSING --is-lightweight"; then
0713   am_missing_run="$MISSING "
0714 else
0715   am_missing_run=
0716   AC_MSG_WARN(['missing' script is too old or missing])
0717 fi
0718 ])
0719 
0720 # Helper functions for option handling.                     -*- Autoconf -*-
0721 
0722 # Copyright (C) 2001-2018 Free Software Foundation, Inc.
0723 #
0724 # This file is free software; the Free Software Foundation
0725 # gives unlimited permission to copy and/or distribute it,
0726 # with or without modifications, as long as this notice is preserved.
0727 
0728 # _AM_MANGLE_OPTION(NAME)
0729 # -----------------------
0730 AC_DEFUN([_AM_MANGLE_OPTION],
0731 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
0732 
0733 # _AM_SET_OPTION(NAME)
0734 # --------------------
0735 # Set option NAME.  Presently that only means defining a flag for this option.
0736 AC_DEFUN([_AM_SET_OPTION],
0737 [m4_define(_AM_MANGLE_OPTION([$1]), [1])])
0738 
0739 # _AM_SET_OPTIONS(OPTIONS)
0740 # ------------------------
0741 # OPTIONS is a space-separated list of Automake options.
0742 AC_DEFUN([_AM_SET_OPTIONS],
0743 [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
0744 
0745 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
0746 # -------------------------------------------
0747 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
0748 AC_DEFUN([_AM_IF_OPTION],
0749 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
0750 
0751 # Copyright (C) 1999-2018 Free Software Foundation, Inc.
0752 #
0753 # This file is free software; the Free Software Foundation
0754 # gives unlimited permission to copy and/or distribute it,
0755 # with or without modifications, as long as this notice is preserved.
0756 
0757 # _AM_PROG_CC_C_O
0758 # ---------------
0759 # Like AC_PROG_CC_C_O, but changed for automake.  We rewrite AC_PROG_CC
0760 # to automatically call this.
0761 AC_DEFUN([_AM_PROG_CC_C_O],
0762 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
0763 AC_REQUIRE_AUX_FILE([compile])dnl
0764 AC_LANG_PUSH([C])dnl
0765 AC_CACHE_CHECK(
0766   [whether $CC understands -c and -o together],
0767   [am_cv_prog_cc_c_o],
0768   [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
0769   # Make sure it works both with $CC and with simple cc.
0770   # Following AC_PROG_CC_C_O, we do the test twice because some
0771   # compilers refuse to overwrite an existing .o file with -o,
0772   # though they will create one.
0773   am_cv_prog_cc_c_o=yes
0774   for am_i in 1 2; do
0775     if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
0776          && test -f conftest2.$ac_objext; then
0777       : OK
0778     else
0779       am_cv_prog_cc_c_o=no
0780       break
0781     fi
0782   done
0783   rm -f core conftest*
0784   unset am_i])
0785 if test "$am_cv_prog_cc_c_o" != yes; then
0786    # Losing compiler, so override with the script.
0787    # FIXME: It is wrong to rewrite CC.
0788    # But if we don't then we get into trouble of one sort or another.
0789    # A longer-term fix would be to have automake use am__CC in this case,
0790    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
0791    CC="$am_aux_dir/compile $CC"
0792 fi
0793 AC_LANG_POP([C])])
0794 
0795 # For backward compatibility.
0796 AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
0797 
0798 # Copyright (C) 2001-2018 Free Software Foundation, Inc.
0799 #
0800 # This file is free software; the Free Software Foundation
0801 # gives unlimited permission to copy and/or distribute it,
0802 # with or without modifications, as long as this notice is preserved.
0803 
0804 # AM_RUN_LOG(COMMAND)
0805 # -------------------
0806 # Run COMMAND, save the exit status in ac_status, and log it.
0807 # (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
0808 AC_DEFUN([AM_RUN_LOG],
0809 [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
0810    ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
0811    ac_status=$?
0812    echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
0813    (exit $ac_status); }])
0814 
0815 # Check to make sure that the build environment is sane.    -*- Autoconf -*-
0816 
0817 # Copyright (C) 1996-2018 Free Software Foundation, Inc.
0818 #
0819 # This file is free software; the Free Software Foundation
0820 # gives unlimited permission to copy and/or distribute it,
0821 # with or without modifications, as long as this notice is preserved.
0822 
0823 # AM_SANITY_CHECK
0824 # ---------------
0825 AC_DEFUN([AM_SANITY_CHECK],
0826 [AC_MSG_CHECKING([whether build environment is sane])
0827 # Reject unsafe characters in $srcdir or the absolute working directory
0828 # name.  Accept space and tab only in the latter.
0829 am_lf='
0830 '
0831 case `pwd` in
0832   *[[\\\"\#\$\&\'\`$am_lf]]*)
0833     AC_MSG_ERROR([unsafe absolute working directory name]);;
0834 esac
0835 case $srcdir in
0836   *[[\\\"\#\$\&\'\`$am_lf\ \    ]]*)
0837     AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
0838 esac
0839 
0840 # Do 'set' in a subshell so we don't clobber the current shell's
0841 # arguments.  Must try -L first in case configure is actually a
0842 # symlink; some systems play weird games with the mod time of symlinks
0843 # (eg FreeBSD returns the mod time of the symlink's containing
0844 # directory).
0845 if (
0846    am_has_slept=no
0847    for am_try in 1 2; do
0848      echo "timestamp, slept: $am_has_slept" > conftest.file
0849      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
0850      if test "$[*]" = "X"; then
0851         # -L didn't work.
0852         set X `ls -t "$srcdir/configure" conftest.file`
0853      fi
0854      if test "$[*]" != "X $srcdir/configure conftest.file" \
0855         && test "$[*]" != "X conftest.file $srcdir/configure"; then
0856 
0857         # If neither matched, then we have a broken ls.  This can happen
0858         # if, for instance, CONFIG_SHELL is bash and it inherits a
0859         # broken ls alias from the environment.  This has actually
0860         # happened.  Such a system could not be considered "sane".
0861         AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
0862   alias in your environment])
0863      fi
0864      if test "$[2]" = conftest.file || test $am_try -eq 2; then
0865        break
0866      fi
0867      # Just in case.
0868      sleep 1
0869      am_has_slept=yes
0870    done
0871    test "$[2]" = conftest.file
0872    )
0873 then
0874    # Ok.
0875    :
0876 else
0877    AC_MSG_ERROR([newly created file is older than distributed files!
0878 Check your system clock])
0879 fi
0880 AC_MSG_RESULT([yes])
0881 # If we didn't sleep, we still need to ensure time stamps of config.status and
0882 # generated files are strictly newer.
0883 am_sleep_pid=
0884 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
0885   ( sleep 1 ) &
0886   am_sleep_pid=$!
0887 fi
0888 AC_CONFIG_COMMANDS_PRE(
0889   [AC_MSG_CHECKING([that generated files are newer than configure])
0890    if test -n "$am_sleep_pid"; then
0891      # Hide warnings about reused PIDs.
0892      wait $am_sleep_pid 2>/dev/null
0893    fi
0894    AC_MSG_RESULT([done])])
0895 rm -f conftest.file
0896 ])
0897 
0898 # Copyright (C) 2009-2018 Free Software Foundation, Inc.
0899 #
0900 # This file is free software; the Free Software Foundation
0901 # gives unlimited permission to copy and/or distribute it,
0902 # with or without modifications, as long as this notice is preserved.
0903 
0904 # AM_SILENT_RULES([DEFAULT])
0905 # --------------------------
0906 # Enable less verbose build rules; with the default set to DEFAULT
0907 # ("yes" being less verbose, "no" or empty being verbose).
0908 AC_DEFUN([AM_SILENT_RULES],
0909 [AC_ARG_ENABLE([silent-rules], [dnl
0910 AS_HELP_STRING(
0911   [--enable-silent-rules],
0912   [less verbose build output (undo: "make V=1")])
0913 AS_HELP_STRING(
0914   [--disable-silent-rules],
0915   [verbose build output (undo: "make V=0")])dnl
0916 ])
0917 case $enable_silent_rules in @%:@ (((
0918   yes) AM_DEFAULT_VERBOSITY=0;;
0919    no) AM_DEFAULT_VERBOSITY=1;;
0920     *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
0921 esac
0922 dnl
0923 dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
0924 dnl do not support nested variable expansions.
0925 dnl See automake bug#9928 and bug#10237.
0926 am_make=${MAKE-make}
0927 AC_CACHE_CHECK([whether $am_make supports nested variables],
0928    [am_cv_make_support_nested_variables],
0929    [if AS_ECHO([['TRUE=$(BAR$(V))
0930 BAR0=false
0931 BAR1=true
0932 V=1
0933 am__doit:
0934         @$(TRUE)
0935 .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
0936   am_cv_make_support_nested_variables=yes
0937 else
0938   am_cv_make_support_nested_variables=no
0939 fi])
0940 if test $am_cv_make_support_nested_variables = yes; then
0941   dnl Using '$V' instead of '$(V)' breaks IRIX make.
0942   AM_V='$(V)'
0943   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
0944 else
0945   AM_V=$AM_DEFAULT_VERBOSITY
0946   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
0947 fi
0948 AC_SUBST([AM_V])dnl
0949 AM_SUBST_NOTMAKE([AM_V])dnl
0950 AC_SUBST([AM_DEFAULT_V])dnl
0951 AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
0952 AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
0953 AM_BACKSLASH='\'
0954 AC_SUBST([AM_BACKSLASH])dnl
0955 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
0956 ])
0957 
0958 # Copyright (C) 2001-2018 Free Software Foundation, Inc.
0959 #
0960 # This file is free software; the Free Software Foundation
0961 # gives unlimited permission to copy and/or distribute it,
0962 # with or without modifications, as long as this notice is preserved.
0963 
0964 # AM_PROG_INSTALL_STRIP
0965 # ---------------------
0966 # One issue with vendor 'install' (even GNU) is that you can't
0967 # specify the program used to strip binaries.  This is especially
0968 # annoying in cross-compiling environments, where the build's strip
0969 # is unlikely to handle the host's binaries.
0970 # Fortunately install-sh will honor a STRIPPROG variable, so we
0971 # always use install-sh in "make install-strip", and initialize
0972 # STRIPPROG with the value of the STRIP variable (set by the user).
0973 AC_DEFUN([AM_PROG_INSTALL_STRIP],
0974 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
0975 # Installed binaries are usually stripped using 'strip' when the user
0976 # run "make install-strip".  However 'strip' might not be the right
0977 # tool to use in cross-compilation environments, therefore Automake
0978 # will honor the 'STRIP' environment variable to overrule this program.
0979 dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
0980 if test "$cross_compiling" != no; then
0981   AC_CHECK_TOOL([STRIP], [strip], :)
0982 fi
0983 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
0984 AC_SUBST([INSTALL_STRIP_PROGRAM])])
0985 
0986 # Copyright (C) 2006-2018 Free Software Foundation, Inc.
0987 #
0988 # This file is free software; the Free Software Foundation
0989 # gives unlimited permission to copy and/or distribute it,
0990 # with or without modifications, as long as this notice is preserved.
0991 
0992 # _AM_SUBST_NOTMAKE(VARIABLE)
0993 # ---------------------------
0994 # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
0995 # This macro is traced by Automake.
0996 AC_DEFUN([_AM_SUBST_NOTMAKE])
0997 
0998 # AM_SUBST_NOTMAKE(VARIABLE)
0999 # --------------------------
1000 # Public sister of _AM_SUBST_NOTMAKE.
1001 AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
1002 
1003 # Check how to create a tarball.                            -*- Autoconf -*-
1004 
1005 # Copyright (C) 2004-2018 Free Software Foundation, Inc.
1006 #
1007 # This file is free software; the Free Software Foundation
1008 # gives unlimited permission to copy and/or distribute it,
1009 # with or without modifications, as long as this notice is preserved.
1010 
1011 # _AM_PROG_TAR(FORMAT)
1012 # --------------------
1013 # Check how to create a tarball in format FORMAT.
1014 # FORMAT should be one of 'v7', 'ustar', or 'pax'.
1015 #
1016 # Substitute a variable $(am__tar) that is a command
1017 # writing to stdout a FORMAT-tarball containing the directory
1018 # $tardir.
1019 #     tardir=directory && $(am__tar) > result.tar
1020 #
1021 # Substitute a variable $(am__untar) that extract such
1022 # a tarball read from stdin.
1023 #     $(am__untar) < result.tar
1024 #
1025 AC_DEFUN([_AM_PROG_TAR],
1026 [# Always define AMTAR for backward compatibility.  Yes, it's still used
1027 # in the wild :-(  We should find a proper way to deprecate it ...
1028 AC_SUBST([AMTAR], ['$${TAR-tar}'])
1029 
1030 # We'll loop over all known methods to create a tar archive until one works.
1031 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
1032 
1033 m4_if([$1], [v7],
1034   [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
1035 
1036   [m4_case([$1],
1037     [ustar],
1038      [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
1039       # There is notably a 21 bits limit for the UID and the GID.  In fact,
1040       # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
1041       # and bug#13588).
1042       am_max_uid=2097151 # 2^21 - 1
1043       am_max_gid=$am_max_uid
1044       # The $UID and $GID variables are not portable, so we need to resort
1045       # to the POSIX-mandated id(1) utility.  Errors in the 'id' calls
1046       # below are definitely unexpected, so allow the users to see them
1047       # (that is, avoid stderr redirection).
1048       am_uid=`id -u || echo unknown`
1049       am_gid=`id -g || echo unknown`
1050       AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
1051       if test $am_uid -le $am_max_uid; then
1052          AC_MSG_RESULT([yes])
1053       else
1054          AC_MSG_RESULT([no])
1055          _am_tools=none
1056       fi
1057       AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
1058       if test $am_gid -le $am_max_gid; then
1059          AC_MSG_RESULT([yes])
1060       else
1061         AC_MSG_RESULT([no])
1062         _am_tools=none
1063       fi],
1064 
1065   [pax],
1066     [],
1067 
1068   [m4_fatal([Unknown tar format])])
1069 
1070   AC_MSG_CHECKING([how to create a $1 tar archive])
1071 
1072   # Go ahead even if we have the value already cached.  We do so because we
1073   # need to set the values for the 'am__tar' and 'am__untar' variables.
1074   _am_tools=${am_cv_prog_tar_$1-$_am_tools}
1075 
1076   for _am_tool in $_am_tools; do
1077     case $_am_tool in
1078     gnutar)
1079       for _am_tar in tar gnutar gtar; do
1080         AM_RUN_LOG([$_am_tar --version]) && break
1081       done
1082       am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
1083       am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
1084       am__untar="$_am_tar -xf -"
1085       ;;
1086     plaintar)
1087       # Must skip GNU tar: if it does not support --format= it doesn't create
1088       # ustar tarball either.
1089       (tar --version) >/dev/null 2>&1 && continue
1090       am__tar='tar chf - "$$tardir"'
1091       am__tar_='tar chf - "$tardir"'
1092       am__untar='tar xf -'
1093       ;;
1094     pax)
1095       am__tar='pax -L -x $1 -w "$$tardir"'
1096       am__tar_='pax -L -x $1 -w "$tardir"'
1097       am__untar='pax -r'
1098       ;;
1099     cpio)
1100       am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
1101       am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
1102       am__untar='cpio -i -H $1 -d'
1103       ;;
1104     none)
1105       am__tar=false
1106       am__tar_=false
1107       am__untar=false
1108       ;;
1109     esac
1110 
1111     # If the value was cached, stop now.  We just wanted to have am__tar
1112     # and am__untar set.
1113     test -n "${am_cv_prog_tar_$1}" && break
1114 
1115     # tar/untar a dummy directory, and stop if the command works.
1116     rm -rf conftest.dir
1117     mkdir conftest.dir
1118     echo GrepMe > conftest.dir/file
1119     AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1120     rm -rf conftest.dir
1121     if test -s conftest.tar; then
1122       AM_RUN_LOG([$am__untar <conftest.tar])
1123       AM_RUN_LOG([cat conftest.dir/file])
1124       grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1125     fi
1126   done
1127   rm -rf conftest.dir
1128 
1129   AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1130   AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1131 
1132 AC_SUBST([am__tar])
1133 AC_SUBST([am__untar])
1134 ]) # _AM_PROG_TAR
1135 
1136 m4_include([m4/libtool.m4])
1137 m4_include([m4/ltoptions.m4])
1138 m4_include([m4/ltsugar.m4])
1139 m4_include([m4/ltversion.m4])
1140 m4_include([m4/lt~obsolete.m4])