"Fossies" - the Fresh Open Source Software Archive

Member "zfs-2.1.5/aclocal.m4" (22 Jun 2022, 66084 Bytes) of package /linux/misc/zfs-2.1.5.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "aclocal.m4": 2.1.4_vs_2.1.5.

    1 # generated automatically by aclocal 1.16.5 -*- Autoconf -*-
    2 
    3 # Copyright (C) 1996-2021 Free Software Foundation, Inc.
    4 
    5 # This file is free software; the Free Software Foundation
    6 # gives unlimited permission to copy and/or distribute it,
    7 # with or without modifications, as long as this notice is preserved.
    8 
    9 # This program is distributed in the hope that it will be useful,
   10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
   11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
   12 # PARTICULAR PURPOSE.
   13 
   14 m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
   15 m4_ifndef([AC_AUTOCONF_VERSION],
   16   [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
   17 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.71],,
   18 [m4_warning([this file was generated for autoconf 2.71.
   19 You have another version of autoconf.  It may work, but is not guaranteed to.
   20 If 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'.])])
   22 
   23 # Copyright (C) 2002-2021 Free Software Foundation, Inc.
   24 #
   25 # This file is free software; the Free Software Foundation
   26 # gives unlimited permission to copy and/or distribute it,
   27 # with or without modifications, as long as this notice is preserved.
   28 
   29 # AM_AUTOMAKE_VERSION(VERSION)
   30 # ----------------------------
   31 # Automake X.Y traces this macro to ensure aclocal.m4 has been
   32 # generated from the m4 files accompanying Automake X.Y.
   33 # (This private macro should not be called outside this file.)
   34 AC_DEFUN([AM_AUTOMAKE_VERSION],
   35 [am__api_version='1.16'
   36 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
   37 dnl require some minimum version.  Point them to the right macro.
   38 m4_if([$1], [1.16.5], [],
   39       [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
   40 ])
   41 
   42 # _AM_AUTOCONF_VERSION(VERSION)
   43 # -----------------------------
   44 # aclocal traces this macro to find the Autoconf version.
   45 # This is a private macro too.  Using m4_define simplifies
   46 # the logic in aclocal, which can simply ignore this definition.
   47 m4_define([_AM_AUTOCONF_VERSION], [])
   48 
   49 # AM_SET_CURRENT_AUTOMAKE_VERSION
   50 # -------------------------------
   51 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
   52 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
   53 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
   54 [AM_AUTOMAKE_VERSION([1.16.5])dnl
   55 m4_ifndef([AC_AUTOCONF_VERSION],
   56   [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
   57 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
   58 
   59 # Figure out how to run the assembler.                      -*- Autoconf -*-
   60 
   61 # Copyright (C) 2001-2021 Free Software Foundation, Inc.
   62 #
   63 # This file is free software; the Free Software Foundation
   64 # gives unlimited permission to copy and/or distribute it,
   65 # with or without modifications, as long as this notice is preserved.
   66 
   67 # AM_PROG_AS
   68 # ----------
   69 AC_DEFUN([AM_PROG_AS],
   70 [# By default we simply use the C compiler to build assembly code.
   71 AC_REQUIRE([AC_PROG_CC])
   72 test "${CCAS+set}" = set || CCAS=$CC
   73 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
   74 AC_ARG_VAR([CCAS],      [assembler compiler command (defaults to CC)])
   75 AC_ARG_VAR([CCASFLAGS], [assembler compiler flags (defaults to CFLAGS)])
   76 _AM_IF_OPTION([no-dependencies],, [_AM_DEPENDENCIES([CCAS])])dnl
   77 ])
   78 
   79 # AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
   80 
   81 # Copyright (C) 2001-2021 Free Software Foundation, Inc.
   82 #
   83 # This file is free software; the Free Software Foundation
   84 # gives unlimited permission to copy and/or distribute it,
   85 # with or without modifications, as long as this notice is preserved.
   86 
   87 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
   88 # $ac_aux_dir to '$srcdir/foo'.  In other projects, it is set to
   89 # '$srcdir', '$srcdir/..', or '$srcdir/../..'.
   90 #
   91 # Of course, Automake must honor this variable whenever it calls a
   92 # tool from the auxiliary directory.  The problem is that $srcdir (and
   93 # therefore $ac_aux_dir as well) can be either absolute or relative,
   94 # depending on how configure is run.  This is pretty annoying, since
   95 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
   96 # source directory, any form will work fine, but in subdirectories a
   97 # relative path needs to be adjusted first.
   98 #
   99 # $ac_aux_dir/missing
  100 #    fails when called from a subdirectory if $ac_aux_dir is relative
  101 # $top_srcdir/$ac_aux_dir/missing
  102 #    fails if $ac_aux_dir is absolute,
  103 #    fails when called from a subdirectory in a VPATH build with
  104 #          a relative $ac_aux_dir
  105 #
  106 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
  107 # are both prefixed by $srcdir.  In an in-source build this is usually
  108 # harmless because $srcdir is '.', but things will broke when you
  109 # start a VPATH build or use an absolute $srcdir.
  110 #
  111 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
  112 # iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
  113 #   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
  114 # and then we would define $MISSING as
  115 #   MISSING="\${SHELL} $am_aux_dir/missing"
  116 # This will work as long as MISSING is not called from configure, because
  117 # unfortunately $(top_srcdir) has no meaning in configure.
  118 # However there are other variables, like CC, which are often used in
  119 # configure, and could therefore not use this "fixed" $ac_aux_dir.
  120 #
  121 # Another solution, used here, is to always expand $ac_aux_dir to an
  122 # absolute PATH.  The drawback is that using absolute paths prevent a
  123 # configured tree to be moved without reconfiguration.
  124 
  125 AC_DEFUN([AM_AUX_DIR_EXPAND],
  126 [AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
  127 # Expand $ac_aux_dir to an absolute path.
  128 am_aux_dir=`cd "$ac_aux_dir" && pwd`
  129 ])
  130 
  131 # AM_COND_IF                                            -*- Autoconf -*-
  132 
  133 # Copyright (C) 2008-2021 Free Software Foundation, Inc.
  134 #
  135 # This file is free software; the Free Software Foundation
  136 # gives unlimited permission to copy and/or distribute it,
  137 # with or without modifications, as long as this notice is preserved.
  138 
  139 # _AM_COND_IF
  140 # _AM_COND_ELSE
  141 # _AM_COND_ENDIF
  142 # --------------
  143 # These macros are only used for tracing.
  144 m4_define([_AM_COND_IF])
  145 m4_define([_AM_COND_ELSE])
  146 m4_define([_AM_COND_ENDIF])
  147 
  148 # AM_COND_IF(COND, [IF-TRUE], [IF-FALSE])
  149 # ---------------------------------------
  150 # If the shell condition COND is true, execute IF-TRUE, otherwise execute
  151 # IF-FALSE.  Allow automake to learn about conditional instantiating macros
  152 # (the AC_CONFIG_FOOS).
  153 AC_DEFUN([AM_COND_IF],
  154 [m4_ifndef([_AM_COND_VALUE_$1],
  155 	   [m4_fatal([$0: no such condition "$1"])])dnl
  156 _AM_COND_IF([$1])dnl
  157 if test -z "$$1_TRUE"; then :
  158   m4_n([$2])[]dnl
  159 m4_ifval([$3],
  160 [_AM_COND_ELSE([$1])dnl
  161 else
  162   $3
  163 ])dnl
  164 _AM_COND_ENDIF([$1])dnl
  165 fi[]dnl
  166 ])
  167 
  168 # AM_CONDITIONAL                                            -*- Autoconf -*-
  169 
  170 # Copyright (C) 1997-2021 Free Software Foundation, Inc.
  171 #
  172 # This file is free software; the Free Software Foundation
  173 # gives unlimited permission to copy and/or distribute it,
  174 # with or without modifications, as long as this notice is preserved.
  175 
  176 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
  177 # -------------------------------------
  178 # Define a conditional.
  179 AC_DEFUN([AM_CONDITIONAL],
  180 [AC_PREREQ([2.52])dnl
  181  m4_if([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
  182        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
  183 AC_SUBST([$1_TRUE])dnl
  184 AC_SUBST([$1_FALSE])dnl
  185 _AM_SUBST_NOTMAKE([$1_TRUE])dnl
  186 _AM_SUBST_NOTMAKE([$1_FALSE])dnl
  187 m4_define([_AM_COND_VALUE_$1], [$2])dnl
  188 if $2; then
  189   $1_TRUE=
  190   $1_FALSE='#'
  191 else
  192   $1_TRUE='#'
  193   $1_FALSE=
  194 fi
  195 AC_CONFIG_COMMANDS_PRE(
  196 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
  197   AC_MSG_ERROR([[conditional "$1" was never defined.
  198 Usually this means the macro was only invoked conditionally.]])
  199 fi])])
  200 
  201 # Copyright (C) 1999-2021 Free Software Foundation, Inc.
  202 #
  203 # This file is free software; the Free Software Foundation
  204 # gives unlimited permission to copy and/or distribute it,
  205 # with or without modifications, as long as this notice is preserved.
  206 
  207 
  208 # There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
  209 # written in clear, in which case automake, when reading aclocal.m4,
  210 # will think it sees a *use*, and therefore will trigger all it's
  211 # C support machinery.  Also note that it means that autoscan, seeing
  212 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
  213 
  214 
  215 # _AM_DEPENDENCIES(NAME)
  216 # ----------------------
  217 # See how the compiler implements dependency checking.
  218 # NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
  219 # We try a few techniques and use that to set a single cache variable.
  220 #
  221 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
  222 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
  223 # dependency, and given that the user is not expected to run this macro,
  224 # just rely on AC_PROG_CC.
  225 AC_DEFUN([_AM_DEPENDENCIES],
  226 [AC_REQUIRE([AM_SET_DEPDIR])dnl
  227 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
  228 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
  229 AC_REQUIRE([AM_DEP_TRACK])dnl
  230 
  231 m4_if([$1], [CC],   [depcc="$CC"   am_compiler_list=],
  232       [$1], [CXX],  [depcc="$CXX"  am_compiler_list=],
  233       [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
  234       [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
  235       [$1], [UPC],  [depcc="$UPC"  am_compiler_list=],
  236       [$1], [GCJ],  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
  237                     [depcc="$$1"   am_compiler_list=])
  238 
  239 AC_CACHE_CHECK([dependency style of $depcc],
  240                [am_cv_$1_dependencies_compiler_type],
  241 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  242   # We make a subdir and do the tests there.  Otherwise we can end up
  243   # making bogus files that we don't know about and never remove.  For
  244   # instance it was reported that on HP-UX the gcc test will end up
  245   # making a dummy file named 'D' -- because '-MD' means "put the output
  246   # in D".
  247   rm -rf conftest.dir
  248   mkdir conftest.dir
  249   # Copy depcomp to subdir because otherwise we won't find it if we're
  250   # using a relative directory.
  251   cp "$am_depcomp" conftest.dir
  252   cd conftest.dir
  253   # We will build objects and dependencies in a subdirectory because
  254   # it helps to detect inapplicable dependency modes.  For instance
  255   # both Tru64's cc and ICC support -MD to output dependencies as a
  256   # side effect of compilation, but ICC will put the dependencies in
  257   # the current directory while Tru64 will put them in the object
  258   # directory.
  259   mkdir sub
  260 
  261   am_cv_$1_dependencies_compiler_type=none
  262   if test "$am_compiler_list" = ""; then
  263      am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
  264   fi
  265   am__universal=false
  266   m4_case([$1], [CC],
  267     [case " $depcc " in #(
  268      *\ -arch\ *\ -arch\ *) am__universal=true ;;
  269      esac],
  270     [CXX],
  271     [case " $depcc " in #(
  272      *\ -arch\ *\ -arch\ *) am__universal=true ;;
  273      esac])
  274 
  275   for depmode in $am_compiler_list; do
  276     # Setup a source with many dependencies, because some compilers
  277     # like to wrap large dependency lists on column 80 (with \), and
  278     # we should not choose a depcomp mode which is confused by this.
  279     #
  280     # We need to recreate these files for each test, as the compiler may
  281     # overwrite some of them when testing with obscure command lines.
  282     # This happens at least with the AIX C compiler.
  283     : > sub/conftest.c
  284     for i in 1 2 3 4 5 6; do
  285       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  286       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  287       # Solaris 10 /bin/sh.
  288       echo '/* dummy */' > sub/conftst$i.h
  289     done
  290     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  291 
  292     # We check with '-c' and '-o' for the sake of the "dashmstdout"
  293     # mode.  It turns out that the SunPro C++ compiler does not properly
  294     # handle '-M -o', and we need to detect this.  Also, some Intel
  295     # versions had trouble with output in subdirs.
  296     am__obj=sub/conftest.${OBJEXT-o}
  297     am__minus_obj="-o $am__obj"
  298     case $depmode in
  299     gcc)
  300       # This depmode causes a compiler race in universal mode.
  301       test "$am__universal" = false || continue
  302       ;;
  303     nosideeffect)
  304       # After this tag, mechanisms are not by side-effect, so they'll
  305       # only be used when explicitly requested.
  306       if test "x$enable_dependency_tracking" = xyes; then
  307 	continue
  308       else
  309 	break
  310       fi
  311       ;;
  312     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  313       # This compiler won't grok '-c -o', but also, the minuso test has
  314       # not run yet.  These depmodes are late enough in the game, and
  315       # so weak that their functioning should not be impacted.
  316       am__obj=conftest.${OBJEXT-o}
  317       am__minus_obj=
  318       ;;
  319     none) break ;;
  320     esac
  321     if depmode=$depmode \
  322        source=sub/conftest.c object=$am__obj \
  323        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  324        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  325          >/dev/null 2>conftest.err &&
  326        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  327        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  328        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  329        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  330       # icc doesn't choke on unknown options, it will just issue warnings
  331       # or remarks (even with -Werror).  So we grep stderr for any message
  332       # that says an option was ignored or not supported.
  333       # When given -MP, icc 7.0 and 7.1 complain thusly:
  334       #   icc: Command line warning: ignoring option '-M'; no argument required
  335       # The diagnosis changed in icc 8.0:
  336       #   icc: Command line remark: option '-MP' not supported
  337       if (grep 'ignoring option' conftest.err ||
  338           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  339         am_cv_$1_dependencies_compiler_type=$depmode
  340         break
  341       fi
  342     fi
  343   done
  344 
  345   cd ..
  346   rm -rf conftest.dir
  347 else
  348   am_cv_$1_dependencies_compiler_type=none
  349 fi
  350 ])
  351 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
  352 AM_CONDITIONAL([am__fastdep$1], [
  353   test "x$enable_dependency_tracking" != xno \
  354   && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
  355 ])
  356 
  357 
  358 # AM_SET_DEPDIR
  359 # -------------
  360 # Choose a directory name for dependency files.
  361 # This macro is AC_REQUIREd in _AM_DEPENDENCIES.
  362 AC_DEFUN([AM_SET_DEPDIR],
  363 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  364 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
  365 ])
  366 
  367 
  368 # AM_DEP_TRACK
  369 # ------------
  370 AC_DEFUN([AM_DEP_TRACK],
  371 [AC_ARG_ENABLE([dependency-tracking], [dnl
  372 AS_HELP_STRING(
  373   [--enable-dependency-tracking],
  374   [do not reject slow dependency extractors])
  375 AS_HELP_STRING(
  376   [--disable-dependency-tracking],
  377   [speeds up one-time build])])
  378 if test "x$enable_dependency_tracking" != xno; then
  379   am_depcomp="$ac_aux_dir/depcomp"
  380   AMDEPBACKSLASH='\'
  381   am__nodep='_no'
  382 fi
  383 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
  384 AC_SUBST([AMDEPBACKSLASH])dnl
  385 _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
  386 AC_SUBST([am__nodep])dnl
  387 _AM_SUBST_NOTMAKE([am__nodep])dnl
  388 ])
  389 
  390 # Generate code to set up dependency tracking.              -*- Autoconf -*-
  391 
  392 # Copyright (C) 1999-2021 Free Software Foundation, Inc.
  393 #
  394 # This file is free software; the Free Software Foundation
  395 # gives unlimited permission to copy and/or distribute it,
  396 # with or without modifications, as long as this notice is preserved.
  397 
  398 # _AM_OUTPUT_DEPENDENCY_COMMANDS
  399 # ------------------------------
  400 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
  401 [{
  402   # Older Autoconf quotes --file arguments for eval, but not when files
  403   # are listed without --file.  Let's play safe and only enable the eval
  404   # if we detect the quoting.
  405   # TODO: see whether this extra hack can be removed once we start
  406   # requiring Autoconf 2.70 or later.
  407   AS_CASE([$CONFIG_FILES],
  408           [*\'*], [eval set x "$CONFIG_FILES"],
  409           [*], [set x $CONFIG_FILES])
  410   shift
  411   # Used to flag and report bootstrapping failures.
  412   am_rc=0
  413   for am_mf
  414   do
  415     # Strip MF so we end up with the name of the file.
  416     am_mf=`AS_ECHO(["$am_mf"]) | sed -e 's/:.*$//'`
  417     # Check whether this is an Automake generated Makefile which includes
  418     # dependency-tracking related rules and includes.
  419     # Grep'ing the whole file directly is not great: AIX grep has a line
  420     # limit of 2048, but all sed's we know have understand at least 4000.
  421     sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
  422       || continue
  423     am_dirpart=`AS_DIRNAME(["$am_mf"])`
  424     am_filepart=`AS_BASENAME(["$am_mf"])`
  425     AM_RUN_LOG([cd "$am_dirpart" \
  426       && sed -e '/# am--include-marker/d' "$am_filepart" \
  427         | $MAKE -f - am--depfiles]) || am_rc=$?
  428   done
  429   if test $am_rc -ne 0; then
  430     AC_MSG_FAILURE([Something went wrong bootstrapping makefile fragments
  431     for automatic dependency tracking.  If GNU make was not used, consider
  432     re-running the configure script with MAKE="gmake" (or whatever is
  433     necessary).  You can also try re-running configure with the
  434     '--disable-dependency-tracking' option to at least be able to build
  435     the package (albeit without support for automatic dependency tracking).])
  436   fi
  437   AS_UNSET([am_dirpart])
  438   AS_UNSET([am_filepart])
  439   AS_UNSET([am_mf])
  440   AS_UNSET([am_rc])
  441   rm -f conftest-deps.mk
  442 }
  443 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
  444 
  445 
  446 # AM_OUTPUT_DEPENDENCY_COMMANDS
  447 # -----------------------------
  448 # This macro should only be invoked once -- use via AC_REQUIRE.
  449 #
  450 # This code is only required when automatic dependency tracking is enabled.
  451 # This creates each '.Po' and '.Plo' makefile fragment that we'll need in
  452 # order to bootstrap the dependency handling code.
  453 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
  454 [AC_CONFIG_COMMANDS([depfiles],
  455      [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
  456      [AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"])])
  457 
  458 # Do all the work for Automake.                             -*- Autoconf -*-
  459 
  460 # Copyright (C) 1996-2021 Free Software Foundation, Inc.
  461 #
  462 # This file is free software; the Free Software Foundation
  463 # gives unlimited permission to copy and/or distribute it,
  464 # with or without modifications, as long as this notice is preserved.
  465 
  466 # This macro actually does too much.  Some checks are only needed if
  467 # your package does certain things.  But this isn't really a big deal.
  468 
  469 dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
  470 m4_define([AC_PROG_CC],
  471 m4_defn([AC_PROG_CC])
  472 [_AM_PROG_CC_C_O
  473 ])
  474 
  475 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
  476 # AM_INIT_AUTOMAKE([OPTIONS])
  477 # -----------------------------------------------
  478 # The call with PACKAGE and VERSION arguments is the old style
  479 # call (pre autoconf-2.50), which is being phased out.  PACKAGE
  480 # and VERSION should now be passed to AC_INIT and removed from
  481 # the call to AM_INIT_AUTOMAKE.
  482 # We support both call styles for the transition.  After
  483 # the next Automake release, Autoconf can make the AC_INIT
  484 # arguments mandatory, and then we can depend on a new Autoconf
  485 # release and drop the old call support.
  486 AC_DEFUN([AM_INIT_AUTOMAKE],
  487 [AC_PREREQ([2.65])dnl
  488 m4_ifdef([_$0_ALREADY_INIT],
  489   [m4_fatal([$0 expanded multiple times
  490 ]m4_defn([_$0_ALREADY_INIT]))],
  491   [m4_define([_$0_ALREADY_INIT], m4_expansion_stack)])dnl
  492 dnl Autoconf wants to disallow AM_ names.  We explicitly allow
  493 dnl the ones we care about.
  494 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
  495 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
  496 AC_REQUIRE([AC_PROG_INSTALL])dnl
  497 if test "`cd $srcdir && pwd`" != "`pwd`"; then
  498   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  499   # is not polluted with repeated "-I."
  500   AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
  501   # test to see if srcdir already configured
  502   if test -f $srcdir/config.status; then
  503     AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
  504   fi
  505 fi
  506 
  507 # test whether we have cygpath
  508 if test -z "$CYGPATH_W"; then
  509   if (cygpath --version) >/dev/null 2>/dev/null; then
  510     CYGPATH_W='cygpath -w'
  511   else
  512     CYGPATH_W=echo
  513   fi
  514 fi
  515 AC_SUBST([CYGPATH_W])
  516 
  517 # Define the identity of the package.
  518 dnl Distinguish between old-style and new-style calls.
  519 m4_ifval([$2],
  520 [AC_DIAGNOSE([obsolete],
  521              [$0: two- and three-arguments forms are deprecated.])
  522 m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
  523  AC_SUBST([PACKAGE], [$1])dnl
  524  AC_SUBST([VERSION], [$2])],
  525 [_AM_SET_OPTIONS([$1])dnl
  526 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
  527 m4_if(
  528   m4_ifset([AC_PACKAGE_NAME], [ok]):m4_ifset([AC_PACKAGE_VERSION], [ok]),
  529   [ok:ok],,
  530   [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
  531  AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
  532  AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
  533 
  534 _AM_IF_OPTION([no-define],,
  535 [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
  536  AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
  537 
  538 # Some tools Automake needs.
  539 AC_REQUIRE([AM_SANITY_CHECK])dnl
  540 AC_REQUIRE([AC_ARG_PROGRAM])dnl
  541 AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
  542 AM_MISSING_PROG([AUTOCONF], [autoconf])
  543 AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
  544 AM_MISSING_PROG([AUTOHEADER], [autoheader])
  545 AM_MISSING_PROG([MAKEINFO], [makeinfo])
  546 AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  547 AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
  548 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
  549 # For better backward compatibility.  To be removed once Automake 1.9.x
  550 # dies out for good.  For more background, see:
  551 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  552 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  553 AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
  554 # We need awk for the "check" target (and possibly the TAP driver).  The
  555 # system "awk" is bad on some platforms.
  556 AC_REQUIRE([AC_PROG_AWK])dnl
  557 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
  558 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  559 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
  560 	      [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
  561 			     [_AM_PROG_TAR([v7])])])
  562 _AM_IF_OPTION([no-dependencies],,
  563 [AC_PROVIDE_IFELSE([AC_PROG_CC],
  564 		  [_AM_DEPENDENCIES([CC])],
  565 		  [m4_define([AC_PROG_CC],
  566 			     m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
  567 AC_PROVIDE_IFELSE([AC_PROG_CXX],
  568 		  [_AM_DEPENDENCIES([CXX])],
  569 		  [m4_define([AC_PROG_CXX],
  570 			     m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
  571 AC_PROVIDE_IFELSE([AC_PROG_OBJC],
  572 		  [_AM_DEPENDENCIES([OBJC])],
  573 		  [m4_define([AC_PROG_OBJC],
  574 			     m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
  575 AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
  576 		  [_AM_DEPENDENCIES([OBJCXX])],
  577 		  [m4_define([AC_PROG_OBJCXX],
  578 			     m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
  579 ])
  580 # Variables for tags utilities; see am/tags.am
  581 if test -z "$CTAGS"; then
  582   CTAGS=ctags
  583 fi
  584 AC_SUBST([CTAGS])
  585 if test -z "$ETAGS"; then
  586   ETAGS=etags
  587 fi
  588 AC_SUBST([ETAGS])
  589 if test -z "$CSCOPE"; then
  590   CSCOPE=cscope
  591 fi
  592 AC_SUBST([CSCOPE])
  593 
  594 AC_REQUIRE([AM_SILENT_RULES])dnl
  595 dnl The testsuite driver may need to know about EXEEXT, so add the
  596 dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This
  597 dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
  598 AC_CONFIG_COMMANDS_PRE(dnl
  599 [m4_provide_if([_AM_COMPILER_EXEEXT],
  600   [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
  601 
  602 # POSIX will say in a future version that running "rm -f" with no argument
  603 # is OK; and we want to be able to make that assumption in our Makefile
  604 # recipes.  So use an aggressive probe to check that the usage we want is
  605 # actually supported "in the wild" to an acceptable degree.
  606 # See automake bug#10828.
  607 # To make any issue more visible, cause the running configure to be aborted
  608 # by default if the 'rm' program in use doesn't match our expectations; the
  609 # user can still override this though.
  610 if rm -f && rm -fr && rm -rf; then : OK; else
  611   cat >&2 <<'END'
  612 Oops!
  613 
  614 Your 'rm' program seems unable to run without file operands specified
  615 on the command line, even when the '-f' option is present.  This is contrary
  616 to the behaviour of most rm programs out there, and not conforming with
  617 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  618 
  619 Please tell bug-automake@gnu.org about your system, including the value
  620 of your $PATH and any error possibly output before this message.  This
  621 can help us improve future automake versions.
  622 
  623 END
  624   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  625     echo 'Configuration will proceed anyway, since you have set the' >&2
  626     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  627     echo >&2
  628   else
  629     cat >&2 <<'END'
  630 Aborting the configuration process, to ensure you take notice of the issue.
  631 
  632 You can download and install GNU coreutils to get an 'rm' implementation
  633 that behaves properly: <https://www.gnu.org/software/coreutils/>.
  634 
  635 If you want to complete the configuration process using your problematic
  636 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  637 to "yes", and re-run configure.
  638 
  639 END
  640     AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
  641   fi
  642 fi
  643 dnl The trailing newline in this macro's definition is deliberate, for
  644 dnl backward compatibility and to allow trailing 'dnl'-style comments
  645 dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841.
  646 ])
  647 
  648 dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
  649 dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
  650 dnl mangled by Autoconf and run in a shell conditional statement.
  651 m4_define([_AC_COMPILER_EXEEXT],
  652 m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
  653 
  654 # When config.status generates a header, we must update the stamp-h file.
  655 # This file resides in the same directory as the config header
  656 # that is generated.  The stamp files are numbered to have different names.
  657 
  658 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
  659 # loop where config.status creates the headers, so we can generate
  660 # our stamp files there.
  661 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
  662 [# Compute $1's index in $config_headers.
  663 _am_arg=$1
  664 _am_stamp_count=1
  665 for _am_header in $config_headers :; do
  666   case $_am_header in
  667     $_am_arg | $_am_arg:* )
  668       break ;;
  669     * )
  670       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  671   esac
  672 done
  673 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
  674 
  675 # Copyright (C) 2001-2021 Free Software Foundation, Inc.
  676 #
  677 # This file is free software; the Free Software Foundation
  678 # gives unlimited permission to copy and/or distribute it,
  679 # with or without modifications, as long as this notice is preserved.
  680 
  681 # AM_PROG_INSTALL_SH
  682 # ------------------
  683 # Define $install_sh.
  684 AC_DEFUN([AM_PROG_INSTALL_SH],
  685 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  686 if test x"${install_sh+set}" != xset; then
  687   case $am_aux_dir in
  688   *\ * | *\	*)
  689     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  690   *)
  691     install_sh="\${SHELL} $am_aux_dir/install-sh"
  692   esac
  693 fi
  694 AC_SUBST([install_sh])])
  695 
  696 # Copyright (C) 2003-2021 Free Software Foundation, Inc.
  697 #
  698 # This file is free software; the Free Software Foundation
  699 # gives unlimited permission to copy and/or distribute it,
  700 # with or without modifications, as long as this notice is preserved.
  701 
  702 # Check whether the underlying file-system supports filenames
  703 # with a leading dot.  For instance MS-DOS doesn't.
  704 AC_DEFUN([AM_SET_LEADING_DOT],
  705 [rm -rf .tst 2>/dev/null
  706 mkdir .tst 2>/dev/null
  707 if test -d .tst; then
  708   am__leading_dot=.
  709 else
  710   am__leading_dot=_
  711 fi
  712 rmdir .tst 2>/dev/null
  713 AC_SUBST([am__leading_dot])])
  714 
  715 # Add --enable-maintainer-mode option to configure.         -*- Autoconf -*-
  716 # From Jim Meyering
  717 
  718 # Copyright (C) 1996-2021 Free Software Foundation, Inc.
  719 #
  720 # This file is free software; the Free Software Foundation
  721 # gives unlimited permission to copy and/or distribute it,
  722 # with or without modifications, as long as this notice is preserved.
  723 
  724 # AM_MAINTAINER_MODE([DEFAULT-MODE])
  725 # ----------------------------------
  726 # Control maintainer-specific portions of Makefiles.
  727 # Default is to disable them, unless 'enable' is passed literally.
  728 # For symmetry, 'disable' may be passed as well.  Anyway, the user
  729 # can override the default with the --enable/--disable switch.
  730 AC_DEFUN([AM_MAINTAINER_MODE],
  731 [m4_case(m4_default([$1], [disable]),
  732        [enable], [m4_define([am_maintainer_other], [disable])],
  733        [disable], [m4_define([am_maintainer_other], [enable])],
  734        [m4_define([am_maintainer_other], [enable])
  735         m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
  736 AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
  737   dnl maintainer-mode's default is 'disable' unless 'enable' is passed
  738   AC_ARG_ENABLE([maintainer-mode],
  739     [AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode],
  740       am_maintainer_other[ make rules and dependencies not useful
  741       (and sometimes confusing) to the casual installer])],
  742     [USE_MAINTAINER_MODE=$enableval],
  743     [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
  744   AC_MSG_RESULT([$USE_MAINTAINER_MODE])
  745   AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
  746   MAINT=$MAINTAINER_MODE_TRUE
  747   AC_SUBST([MAINT])dnl
  748 ]
  749 )
  750 
  751 # Check to see how 'make' treats includes.	            -*- Autoconf -*-
  752 
  753 # Copyright (C) 2001-2021 Free Software Foundation, Inc.
  754 #
  755 # This file is free software; the Free Software Foundation
  756 # gives unlimited permission to copy and/or distribute it,
  757 # with or without modifications, as long as this notice is preserved.
  758 
  759 # AM_MAKE_INCLUDE()
  760 # -----------------
  761 # Check whether make has an 'include' directive that can support all
  762 # the idioms we need for our automatic dependency tracking code.
  763 AC_DEFUN([AM_MAKE_INCLUDE],
  764 [AC_MSG_CHECKING([whether ${MAKE-make} supports the include directive])
  765 cat > confinc.mk << 'END'
  766 am__doit:
  767 	@echo this is the am__doit target >confinc.out
  768 .PHONY: am__doit
  769 END
  770 am__include="#"
  771 am__quote=
  772 # BSD make does it like this.
  773 echo '.include "confinc.mk" # ignored' > confmf.BSD
  774 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
  775 echo 'include confinc.mk # ignored' > confmf.GNU
  776 _am_result=no
  777 for s in GNU BSD; do
  778   AM_RUN_LOG([${MAKE-make} -f confmf.$s && cat confinc.out])
  779   AS_CASE([$?:`cat confinc.out 2>/dev/null`],
  780       ['0:this is the am__doit target'],
  781       [AS_CASE([$s],
  782           [BSD], [am__include='.include' am__quote='"'],
  783           [am__include='include' am__quote=''])])
  784   if test "$am__include" != "#"; then
  785     _am_result="yes ($s style)"
  786     break
  787   fi
  788 done
  789 rm -f confinc.* confmf.*
  790 AC_MSG_RESULT([${_am_result}])
  791 AC_SUBST([am__include])])
  792 AC_SUBST([am__quote])])
  793 
  794 # Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
  795 
  796 # Copyright (C) 1997-2021 Free Software Foundation, Inc.
  797 #
  798 # This file is free software; the Free Software Foundation
  799 # gives unlimited permission to copy and/or distribute it,
  800 # with or without modifications, as long as this notice is preserved.
  801 
  802 # AM_MISSING_PROG(NAME, PROGRAM)
  803 # ------------------------------
  804 AC_DEFUN([AM_MISSING_PROG],
  805 [AC_REQUIRE([AM_MISSING_HAS_RUN])
  806 $1=${$1-"${am_missing_run}$2"}
  807 AC_SUBST($1)])
  808 
  809 # AM_MISSING_HAS_RUN
  810 # ------------------
  811 # Define MISSING if not defined so far and test if it is modern enough.
  812 # If it is, set am_missing_run to use it, otherwise, to nothing.
  813 AC_DEFUN([AM_MISSING_HAS_RUN],
  814 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  815 AC_REQUIRE_AUX_FILE([missing])dnl
  816 if test x"${MISSING+set}" != xset; then
  817   MISSING="\${SHELL} '$am_aux_dir/missing'"
  818 fi
  819 # Use eval to expand $SHELL
  820 if eval "$MISSING --is-lightweight"; then
  821   am_missing_run="$MISSING "
  822 else
  823   am_missing_run=
  824   AC_MSG_WARN(['missing' script is too old or missing])
  825 fi
  826 ])
  827 
  828 # Helper functions for option handling.                     -*- Autoconf -*-
  829 
  830 # Copyright (C) 2001-2021 Free Software Foundation, Inc.
  831 #
  832 # This file is free software; the Free Software Foundation
  833 # gives unlimited permission to copy and/or distribute it,
  834 # with or without modifications, as long as this notice is preserved.
  835 
  836 # _AM_MANGLE_OPTION(NAME)
  837 # -----------------------
  838 AC_DEFUN([_AM_MANGLE_OPTION],
  839 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
  840 
  841 # _AM_SET_OPTION(NAME)
  842 # --------------------
  843 # Set option NAME.  Presently that only means defining a flag for this option.
  844 AC_DEFUN([_AM_SET_OPTION],
  845 [m4_define(_AM_MANGLE_OPTION([$1]), [1])])
  846 
  847 # _AM_SET_OPTIONS(OPTIONS)
  848 # ------------------------
  849 # OPTIONS is a space-separated list of Automake options.
  850 AC_DEFUN([_AM_SET_OPTIONS],
  851 [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
  852 
  853 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
  854 # -------------------------------------------
  855 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  856 AC_DEFUN([_AM_IF_OPTION],
  857 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
  858 
  859 # Copyright (C) 1999-2021 Free Software Foundation, Inc.
  860 #
  861 # This file is free software; the Free Software Foundation
  862 # gives unlimited permission to copy and/or distribute it,
  863 # with or without modifications, as long as this notice is preserved.
  864 
  865 # _AM_PROG_CC_C_O
  866 # ---------------
  867 # Like AC_PROG_CC_C_O, but changed for automake.  We rewrite AC_PROG_CC
  868 # to automatically call this.
  869 AC_DEFUN([_AM_PROG_CC_C_O],
  870 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  871 AC_REQUIRE_AUX_FILE([compile])dnl
  872 AC_LANG_PUSH([C])dnl
  873 AC_CACHE_CHECK(
  874   [whether $CC understands -c and -o together],
  875   [am_cv_prog_cc_c_o],
  876   [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
  877   # Make sure it works both with $CC and with simple cc.
  878   # Following AC_PROG_CC_C_O, we do the test twice because some
  879   # compilers refuse to overwrite an existing .o file with -o,
  880   # though they will create one.
  881   am_cv_prog_cc_c_o=yes
  882   for am_i in 1 2; do
  883     if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
  884          && test -f conftest2.$ac_objext; then
  885       : OK
  886     else
  887       am_cv_prog_cc_c_o=no
  888       break
  889     fi
  890   done
  891   rm -f core conftest*
  892   unset am_i])
  893 if test "$am_cv_prog_cc_c_o" != yes; then
  894    # Losing compiler, so override with the script.
  895    # FIXME: It is wrong to rewrite CC.
  896    # But if we don't then we get into trouble of one sort or another.
  897    # A longer-term fix would be to have automake use am__CC in this case,
  898    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  899    CC="$am_aux_dir/compile $CC"
  900 fi
  901 AC_LANG_POP([C])])
  902 
  903 # For backward compatibility.
  904 AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
  905 
  906 # Copyright (C) 1999-2021 Free Software Foundation, Inc.
  907 #
  908 # This file is free software; the Free Software Foundation
  909 # gives unlimited permission to copy and/or distribute it,
  910 # with or without modifications, as long as this notice is preserved.
  911 
  912 
  913 # AM_PATH_PYTHON([MINIMUM-VERSION], [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
  914 # ---------------------------------------------------------------------------
  915 # Adds support for distributing Python modules and packages.  To
  916 # install modules, copy them to $(pythondir), using the python_PYTHON
  917 # automake variable.  To install a package with the same name as the
  918 # automake package, install to $(pkgpythondir), or use the
  919 # pkgpython_PYTHON automake variable.
  920 #
  921 # The variables $(pyexecdir) and $(pkgpyexecdir) are provided as
  922 # locations to install python extension modules (shared libraries).
  923 # Another macro is required to find the appropriate flags to compile
  924 # extension modules.
  925 #
  926 # If your package is configured with a different prefix to python,
  927 # users will have to add the install directory to the PYTHONPATH
  928 # environment variable, or create a .pth file (see the python
  929 # documentation for details).
  930 #
  931 # If the MINIMUM-VERSION argument is passed, AM_PATH_PYTHON will
  932 # cause an error if the version of python installed on the system
  933 # doesn't meet the requirement.  MINIMUM-VERSION should consist of
  934 # numbers and dots only.
  935 AC_DEFUN([AM_PATH_PYTHON],
  936  [
  937   dnl Find a Python interpreter.  Python versions prior to 2.0 are not
  938   dnl supported. (2.0 was released on October 16, 2000).
  939   m4_define_default([_AM_PYTHON_INTERPRETER_LIST],
  940 [python python2 python3 dnl
  941  python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 dnl
  942  python3.2 python3.1 python3.0 dnl
  943  python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 dnl
  944  python2.0])
  945 
  946   AC_ARG_VAR([PYTHON], [the Python interpreter])
  947 
  948   m4_if([$1],[],[
  949     dnl No version check is needed.
  950     # Find any Python interpreter.
  951     if test -z "$PYTHON"; then
  952       AC_PATH_PROGS([PYTHON], _AM_PYTHON_INTERPRETER_LIST, :)
  953     fi
  954     am_display_PYTHON=python
  955   ], [
  956     dnl A version check is needed.
  957     if test -n "$PYTHON"; then
  958       # If the user set $PYTHON, use it and don't search something else.
  959       AC_MSG_CHECKING([whether $PYTHON version is >= $1])
  960       AM_PYTHON_CHECK_VERSION([$PYTHON], [$1],
  961 			      [AC_MSG_RESULT([yes])],
  962 			      [AC_MSG_RESULT([no])
  963 			       AC_MSG_ERROR([Python interpreter is too old])])
  964       am_display_PYTHON=$PYTHON
  965     else
  966       # Otherwise, try each interpreter until we find one that satisfies
  967       # VERSION.
  968       AC_CACHE_CHECK([for a Python interpreter with version >= $1],
  969 	[am_cv_pathless_PYTHON],[
  970 	for am_cv_pathless_PYTHON in _AM_PYTHON_INTERPRETER_LIST none; do
  971 	  test "$am_cv_pathless_PYTHON" = none && break
  972 	  AM_PYTHON_CHECK_VERSION([$am_cv_pathless_PYTHON], [$1], [break])
  973 	done])
  974       # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
  975       if test "$am_cv_pathless_PYTHON" = none; then
  976 	PYTHON=:
  977       else
  978         AC_PATH_PROG([PYTHON], [$am_cv_pathless_PYTHON])
  979       fi
  980       am_display_PYTHON=$am_cv_pathless_PYTHON
  981     fi
  982   ])
  983 
  984   if test "$PYTHON" = :; then
  985     dnl Run any user-specified action, or abort.
  986     m4_default([$3], [AC_MSG_ERROR([no suitable Python interpreter found])])
  987   else
  988 
  989   dnl Query Python for its version number.  Although site.py simply uses
  990   dnl sys.version[:3], printing that failed with Python 3.10, since the
  991   dnl trailing zero was eliminated. So now we output just the major
  992   dnl and minor version numbers, as numbers. Apparently the tertiary
  993   dnl version is not of interest.
  994   dnl
  995   AC_CACHE_CHECK([for $am_display_PYTHON version], [am_cv_python_version],
  996     [am_cv_python_version=`$PYTHON -c "import sys; print ('%u.%u' % sys.version_info[[:2]])"`])
  997   AC_SUBST([PYTHON_VERSION], [$am_cv_python_version])
  998 
  999   dnl At times, e.g., when building shared libraries, you may want
 1000   dnl to know which OS platform Python thinks this is.
 1001   dnl
 1002   AC_CACHE_CHECK([for $am_display_PYTHON platform], [am_cv_python_platform],
 1003     [am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`])
 1004   AC_SUBST([PYTHON_PLATFORM], [$am_cv_python_platform])
 1005 
 1006   dnl emacs-page
 1007   dnl If --with-python-sys-prefix is given, use the values of sys.prefix
 1008   dnl and sys.exec_prefix for the corresponding values of PYTHON_PREFIX
 1009   dnl and PYTHON_EXEC_PREFIX. Otherwise, use the GNU ${prefix} and
 1010   dnl ${exec_prefix} variables.
 1011   dnl
 1012   dnl The two are made distinct variables so they can be overridden if
 1013   dnl need be, although general consensus is that you shouldn't need
 1014   dnl this separation.
 1015   dnl
 1016   dnl Also allow directly setting the prefixes via configure options,
 1017   dnl overriding any default.
 1018   dnl
 1019   if test "x$prefix" = xNONE; then
 1020     am__usable_prefix=$ac_default_prefix
 1021   else
 1022     am__usable_prefix=$prefix
 1023   fi
 1024 
 1025   # Allow user to request using sys.* values from Python,
 1026   # instead of the GNU $prefix values.
 1027   AC_ARG_WITH([python-sys-prefix],
 1028   [AS_HELP_STRING([--with-python-sys-prefix],
 1029                   [use Python's sys.prefix and sys.exec_prefix values])],
 1030   [am_use_python_sys=:],
 1031   [am_use_python_sys=false])
 1032 
 1033   # Allow user to override whatever the default Python prefix is.
 1034   AC_ARG_WITH([python_prefix],
 1035   [AS_HELP_STRING([--with-python_prefix],
 1036                   [override the default PYTHON_PREFIX])],
 1037   [am_python_prefix_subst=$withval
 1038    am_cv_python_prefix=$withval
 1039    AC_MSG_CHECKING([for explicit $am_display_PYTHON prefix])
 1040    AC_MSG_RESULT([$am_cv_python_prefix])],
 1041   [
 1042    if $am_use_python_sys; then
 1043      # using python sys.prefix value, not GNU
 1044      AC_CACHE_CHECK([for python default $am_display_PYTHON prefix],
 1045      [am_cv_python_prefix],
 1046      [am_cv_python_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.prefix)"`])
 1047 
 1048      dnl If sys.prefix is a subdir of $prefix, replace the literal value of
 1049      dnl $prefix with a variable reference so it can be overridden.
 1050      case $am_cv_python_prefix in
 1051      $am__usable_prefix*)
 1052        am__strip_prefix=`echo "$am__usable_prefix" | sed 's|.|.|g'`
 1053        am_python_prefix_subst=`echo "$am_cv_python_prefix" | sed "s,^$am__strip_prefix,\\${prefix},"`
 1054        ;;
 1055      *)
 1056        am_python_prefix_subst=$am_cv_python_prefix
 1057        ;;
 1058      esac
 1059    else # using GNU prefix value, not python sys.prefix
 1060      am_python_prefix_subst='${prefix}'
 1061      am_python_prefix=$am_python_prefix_subst
 1062      AC_MSG_CHECKING([for GNU default $am_display_PYTHON prefix])
 1063      AC_MSG_RESULT([$am_python_prefix])
 1064    fi])
 1065   # Substituting python_prefix_subst value.
 1066   AC_SUBST([PYTHON_PREFIX], [$am_python_prefix_subst])
 1067 
 1068   # emacs-page Now do it all over again for Python exec_prefix, but with yet
 1069   # another conditional: fall back to regular prefix if that was specified.
 1070   AC_ARG_WITH([python_exec_prefix],
 1071   [AS_HELP_STRING([--with-python_exec_prefix],
 1072                   [override the default PYTHON_EXEC_PREFIX])],
 1073   [am_python_exec_prefix_subst=$withval
 1074    am_cv_python_exec_prefix=$withval
 1075    AC_MSG_CHECKING([for explicit $am_display_PYTHON exec_prefix])
 1076    AC_MSG_RESULT([$am_cv_python_exec_prefix])],
 1077   [
 1078    # no explicit --with-python_exec_prefix, but if
 1079    # --with-python_prefix was given, use its value for python_exec_prefix too.
 1080    AS_IF([test -n "$with_python_prefix"],
 1081    [am_python_exec_prefix_subst=$with_python_prefix
 1082     am_cv_python_exec_prefix=$with_python_prefix
 1083     AC_MSG_CHECKING([for python_prefix-given $am_display_PYTHON exec_prefix])
 1084     AC_MSG_RESULT([$am_cv_python_exec_prefix])],
 1085    [
 1086     # Set am__usable_exec_prefix whether using GNU or Python values,
 1087     # since we use that variable for pyexecdir.
 1088     if test "x$exec_prefix" = xNONE; then
 1089       am__usable_exec_prefix=$am__usable_prefix
 1090     else
 1091       am__usable_exec_prefix=$exec_prefix
 1092     fi
 1093     #
 1094     if $am_use_python_sys; then # using python sys.exec_prefix, not GNU
 1095       AC_CACHE_CHECK([for python default $am_display_PYTHON exec_prefix],
 1096       [am_cv_python_exec_prefix],
 1097       [am_cv_python_exec_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.exec_prefix)"`])
 1098       dnl If sys.exec_prefix is a subdir of $exec_prefix, replace the
 1099       dnl literal value of $exec_prefix with a variable reference so it can
 1100       dnl be overridden.
 1101       case $am_cv_python_exec_prefix in
 1102       $am__usable_exec_prefix*)
 1103         am__strip_prefix=`echo "$am__usable_exec_prefix" | sed 's|.|.|g'`
 1104         am_python_exec_prefix_subst=`echo "$am_cv_python_exec_prefix" | sed "s,^$am__strip_prefix,\\${exec_prefix},"`
 1105         ;;
 1106       *)
 1107         am_python_exec_prefix_subst=$am_cv_python_exec_prefix
 1108         ;;
 1109      esac
 1110    else # using GNU $exec_prefix, not python sys.exec_prefix
 1111      am_python_exec_prefix_subst='${exec_prefix}'
 1112      am_python_exec_prefix=$am_python_exec_prefix_subst
 1113      AC_MSG_CHECKING([for GNU default $am_display_PYTHON exec_prefix])
 1114      AC_MSG_RESULT([$am_python_exec_prefix])
 1115    fi])])
 1116   # Substituting python_exec_prefix_subst.
 1117   AC_SUBST([PYTHON_EXEC_PREFIX], [$am_python_exec_prefix_subst])
 1118 
 1119   # Factor out some code duplication into this shell variable.
 1120   am_python_setup_sysconfig="\
 1121 import sys
 1122 # Prefer sysconfig over distutils.sysconfig, for better compatibility
 1123 # with python 3.x.  See automake bug#10227.
 1124 try:
 1125     import sysconfig
 1126 except ImportError:
 1127     can_use_sysconfig = 0
 1128 else:
 1129     can_use_sysconfig = 1
 1130 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
 1131 # <https://github.com/pypa/virtualenv/issues/118>
 1132 try:
 1133     from platform import python_implementation
 1134     if python_implementation() == 'CPython' and sys.version[[:3]] == '2.7':
 1135         can_use_sysconfig = 0
 1136 except ImportError:
 1137     pass"
 1138 
 1139   dnl emacs-page Set up 4 directories:
 1140 
 1141   dnl 1. pythondir: where to install python scripts.  This is the
 1142   dnl    site-packages directory, not the python standard library
 1143   dnl    directory like in previous automake betas.  This behavior
 1144   dnl    is more consistent with lispdir.m4 for example.
 1145   dnl Query distutils for this directory.
 1146   dnl
 1147   AC_CACHE_CHECK([for $am_display_PYTHON script directory (pythondir)],
 1148   [am_cv_python_pythondir],
 1149   [if test "x$am_cv_python_prefix" = x; then
 1150      am_py_prefix=$am__usable_prefix
 1151    else
 1152      am_py_prefix=$am_cv_python_prefix
 1153    fi
 1154    am_cv_python_pythondir=`$PYTHON -c "
 1155 $am_python_setup_sysconfig
 1156 if can_use_sysconfig:
 1157   sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
 1158 else:
 1159   from distutils import sysconfig
 1160   sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
 1161 sys.stdout.write(sitedir)"`
 1162    #
 1163    case $am_cv_python_pythondir in
 1164    $am_py_prefix*)
 1165      am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
 1166      am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,\\${PYTHON_PREFIX},"`
 1167      ;;
 1168    *)
 1169      case $am_py_prefix in
 1170        /usr|/System*) ;;
 1171        *) am_cv_python_pythondir="\${PYTHON_PREFIX}/lib/python$PYTHON_VERSION/site-packages"
 1172           ;;
 1173      esac
 1174      ;;
 1175    esac
 1176   ])
 1177   AC_SUBST([pythondir], [$am_cv_python_pythondir])
 1178 
 1179   dnl 2. pkgpythondir: $PACKAGE directory under pythondir.  Was
 1180   dnl    PYTHON_SITE_PACKAGE in previous betas, but this naming is
 1181   dnl    more consistent with the rest of automake.
 1182   dnl
 1183   AC_SUBST([pkgpythondir], [\${pythondir}/$PACKAGE])
 1184 
 1185   dnl 3. pyexecdir: directory for installing python extension modules
 1186   dnl    (shared libraries).
 1187   dnl Query distutils for this directory.
 1188   dnl
 1189   AC_CACHE_CHECK([for $am_display_PYTHON extension module directory (pyexecdir)],
 1190   [am_cv_python_pyexecdir],
 1191   [if test "x$am_cv_python_exec_prefix" = x; then
 1192      am_py_exec_prefix=$am__usable_exec_prefix
 1193    else
 1194      am_py_exec_prefix=$am_cv_python_exec_prefix
 1195    fi
 1196    am_cv_python_pyexecdir=`$PYTHON -c "
 1197 $am_python_setup_sysconfig
 1198 if can_use_sysconfig:
 1199   sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_exec_prefix'})
 1200 else:
 1201   from distutils import sysconfig
 1202   sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_exec_prefix')
 1203 sys.stdout.write(sitedir)"`
 1204    #
 1205    case $am_cv_python_pyexecdir in
 1206    $am_py_exec_prefix*)
 1207      am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
 1208      am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,\\${PYTHON_EXEC_PREFIX},"`
 1209      ;;
 1210    *)
 1211      case $am_py_exec_prefix in
 1212        /usr|/System*) ;;
 1213        *) am_cv_python_pyexecdir="\${PYTHON_EXEC_PREFIX}/lib/python$PYTHON_VERSION/site-packages"
 1214           ;;
 1215      esac
 1216      ;;
 1217    esac
 1218   ])
 1219   AC_SUBST([pyexecdir], [$am_cv_python_pyexecdir])
 1220 
 1221   dnl 4. pkgpyexecdir: $(pyexecdir)/$(PACKAGE)
 1222   dnl
 1223   AC_SUBST([pkgpyexecdir], [\${pyexecdir}/$PACKAGE])
 1224 
 1225   dnl Run any user-specified action.
 1226   $2
 1227   fi
 1228 ])
 1229 
 1230 
 1231 # AM_PYTHON_CHECK_VERSION(PROG, VERSION, [ACTION-IF-TRUE], [ACTION-IF-FALSE])
 1232 # ---------------------------------------------------------------------------
 1233 # Run ACTION-IF-TRUE if the Python interpreter PROG has version >= VERSION.
 1234 # Run ACTION-IF-FALSE otherwise.
 1235 # This test uses sys.hexversion instead of the string equivalent (first
 1236 # word of sys.version), in order to cope with versions such as 2.2c1.
 1237 # This supports Python 2.0 or higher. (2.0 was released on October 16, 2000).
 1238 AC_DEFUN([AM_PYTHON_CHECK_VERSION],
 1239  [prog="import sys
 1240 # split strings by '.' and convert to numeric.  Append some zeros
 1241 # because we need at least 4 digits for the hex conversion.
 1242 # map returns an iterator in Python 3.0 and a list in 2.x
 1243 minver = list(map(int, '$2'.split('.'))) + [[0, 0, 0]]
 1244 minverhex = 0
 1245 # xrange is not present in Python 3.0 and range returns an iterator
 1246 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[[i]]
 1247 sys.exit(sys.hexversion < minverhex)"
 1248   AS_IF([AM_RUN_LOG([$1 -c "$prog"])], [$3], [$4])])
 1249 
 1250 # Copyright (C) 2001-2021 Free Software Foundation, Inc.
 1251 #
 1252 # This file is free software; the Free Software Foundation
 1253 # gives unlimited permission to copy and/or distribute it,
 1254 # with or without modifications, as long as this notice is preserved.
 1255 
 1256 # AM_RUN_LOG(COMMAND)
 1257 # -------------------
 1258 # Run COMMAND, save the exit status in ac_status, and log it.
 1259 # (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
 1260 AC_DEFUN([AM_RUN_LOG],
 1261 [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
 1262    ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
 1263    ac_status=$?
 1264    echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
 1265    (exit $ac_status); }])
 1266 
 1267 # Check to make sure that the build environment is sane.    -*- Autoconf -*-
 1268 
 1269 # Copyright (C) 1996-2021 Free Software Foundation, Inc.
 1270 #
 1271 # This file is free software; the Free Software Foundation
 1272 # gives unlimited permission to copy and/or distribute it,
 1273 # with or without modifications, as long as this notice is preserved.
 1274 
 1275 # AM_SANITY_CHECK
 1276 # ---------------
 1277 AC_DEFUN([AM_SANITY_CHECK],
 1278 [AC_MSG_CHECKING([whether build environment is sane])
 1279 # Reject unsafe characters in $srcdir or the absolute working directory
 1280 # name.  Accept space and tab only in the latter.
 1281 am_lf='
 1282 '
 1283 case `pwd` in
 1284   *[[\\\"\#\$\&\'\`$am_lf]]*)
 1285     AC_MSG_ERROR([unsafe absolute working directory name]);;
 1286 esac
 1287 case $srcdir in
 1288   *[[\\\"\#\$\&\'\`$am_lf\ \	]]*)
 1289     AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
 1290 esac
 1291 
 1292 # Do 'set' in a subshell so we don't clobber the current shell's
 1293 # arguments.  Must try -L first in case configure is actually a
 1294 # symlink; some systems play weird games with the mod time of symlinks
 1295 # (eg FreeBSD returns the mod time of the symlink's containing
 1296 # directory).
 1297 if (
 1298    am_has_slept=no
 1299    for am_try in 1 2; do
 1300      echo "timestamp, slept: $am_has_slept" > conftest.file
 1301      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
 1302      if test "$[*]" = "X"; then
 1303 	# -L didn't work.
 1304 	set X `ls -t "$srcdir/configure" conftest.file`
 1305      fi
 1306      if test "$[*]" != "X $srcdir/configure conftest.file" \
 1307 	&& test "$[*]" != "X conftest.file $srcdir/configure"; then
 1308 
 1309 	# If neither matched, then we have a broken ls.  This can happen
 1310 	# if, for instance, CONFIG_SHELL is bash and it inherits a
 1311 	# broken ls alias from the environment.  This has actually
 1312 	# happened.  Such a system could not be considered "sane".
 1313 	AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
 1314   alias in your environment])
 1315      fi
 1316      if test "$[2]" = conftest.file || test $am_try -eq 2; then
 1317        break
 1318      fi
 1319      # Just in case.
 1320      sleep 1
 1321      am_has_slept=yes
 1322    done
 1323    test "$[2]" = conftest.file
 1324    )
 1325 then
 1326    # Ok.
 1327    :
 1328 else
 1329    AC_MSG_ERROR([newly created file is older than distributed files!
 1330 Check your system clock])
 1331 fi
 1332 AC_MSG_RESULT([yes])
 1333 # If we didn't sleep, we still need to ensure time stamps of config.status and
 1334 # generated files are strictly newer.
 1335 am_sleep_pid=
 1336 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
 1337   ( sleep 1 ) &
 1338   am_sleep_pid=$!
 1339 fi
 1340 AC_CONFIG_COMMANDS_PRE(
 1341   [AC_MSG_CHECKING([that generated files are newer than configure])
 1342    if test -n "$am_sleep_pid"; then
 1343      # Hide warnings about reused PIDs.
 1344      wait $am_sleep_pid 2>/dev/null
 1345    fi
 1346    AC_MSG_RESULT([done])])
 1347 rm -f conftest.file
 1348 ])
 1349 
 1350 # Copyright (C) 2009-2021 Free Software Foundation, Inc.
 1351 #
 1352 # This file is free software; the Free Software Foundation
 1353 # gives unlimited permission to copy and/or distribute it,
 1354 # with or without modifications, as long as this notice is preserved.
 1355 
 1356 # AM_SILENT_RULES([DEFAULT])
 1357 # --------------------------
 1358 # Enable less verbose build rules; with the default set to DEFAULT
 1359 # ("yes" being less verbose, "no" or empty being verbose).
 1360 AC_DEFUN([AM_SILENT_RULES],
 1361 [AC_ARG_ENABLE([silent-rules], [dnl
 1362 AS_HELP_STRING(
 1363   [--enable-silent-rules],
 1364   [less verbose build output (undo: "make V=1")])
 1365 AS_HELP_STRING(
 1366   [--disable-silent-rules],
 1367   [verbose build output (undo: "make V=0")])dnl
 1368 ])
 1369 case $enable_silent_rules in @%:@ (((
 1370   yes) AM_DEFAULT_VERBOSITY=0;;
 1371    no) AM_DEFAULT_VERBOSITY=1;;
 1372     *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
 1373 esac
 1374 dnl
 1375 dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
 1376 dnl do not support nested variable expansions.
 1377 dnl See automake bug#9928 and bug#10237.
 1378 am_make=${MAKE-make}
 1379 AC_CACHE_CHECK([whether $am_make supports nested variables],
 1380    [am_cv_make_support_nested_variables],
 1381    [if AS_ECHO([['TRUE=$(BAR$(V))
 1382 BAR0=false
 1383 BAR1=true
 1384 V=1
 1385 am__doit:
 1386 	@$(TRUE)
 1387 .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
 1388   am_cv_make_support_nested_variables=yes
 1389 else
 1390   am_cv_make_support_nested_variables=no
 1391 fi])
 1392 if test $am_cv_make_support_nested_variables = yes; then
 1393   dnl Using '$V' instead of '$(V)' breaks IRIX make.
 1394   AM_V='$(V)'
 1395   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
 1396 else
 1397   AM_V=$AM_DEFAULT_VERBOSITY
 1398   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
 1399 fi
 1400 AC_SUBST([AM_V])dnl
 1401 AM_SUBST_NOTMAKE([AM_V])dnl
 1402 AC_SUBST([AM_DEFAULT_V])dnl
 1403 AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
 1404 AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
 1405 AM_BACKSLASH='\'
 1406 AC_SUBST([AM_BACKSLASH])dnl
 1407 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
 1408 ])
 1409 
 1410 # Copyright (C) 2001-2021 Free Software Foundation, Inc.
 1411 #
 1412 # This file is free software; the Free Software Foundation
 1413 # gives unlimited permission to copy and/or distribute it,
 1414 # with or without modifications, as long as this notice is preserved.
 1415 
 1416 # AM_PROG_INSTALL_STRIP
 1417 # ---------------------
 1418 # One issue with vendor 'install' (even GNU) is that you can't
 1419 # specify the program used to strip binaries.  This is especially
 1420 # annoying in cross-compiling environments, where the build's strip
 1421 # is unlikely to handle the host's binaries.
 1422 # Fortunately install-sh will honor a STRIPPROG variable, so we
 1423 # always use install-sh in "make install-strip", and initialize
 1424 # STRIPPROG with the value of the STRIP variable (set by the user).
 1425 AC_DEFUN([AM_PROG_INSTALL_STRIP],
 1426 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
 1427 # Installed binaries are usually stripped using 'strip' when the user
 1428 # run "make install-strip".  However 'strip' might not be the right
 1429 # tool to use in cross-compilation environments, therefore Automake
 1430 # will honor the 'STRIP' environment variable to overrule this program.
 1431 dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
 1432 if test "$cross_compiling" != no; then
 1433   AC_CHECK_TOOL([STRIP], [strip], :)
 1434 fi
 1435 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
 1436 AC_SUBST([INSTALL_STRIP_PROGRAM])])
 1437 
 1438 # Copyright (C) 2006-2021 Free Software Foundation, Inc.
 1439 #
 1440 # This file is free software; the Free Software Foundation
 1441 # gives unlimited permission to copy and/or distribute it,
 1442 # with or without modifications, as long as this notice is preserved.
 1443 
 1444 # _AM_SUBST_NOTMAKE(VARIABLE)
 1445 # ---------------------------
 1446 # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
 1447 # This macro is traced by Automake.
 1448 AC_DEFUN([_AM_SUBST_NOTMAKE])
 1449 
 1450 # AM_SUBST_NOTMAKE(VARIABLE)
 1451 # --------------------------
 1452 # Public sister of _AM_SUBST_NOTMAKE.
 1453 AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
 1454 
 1455 # Check how to create a tarball.                            -*- Autoconf -*-
 1456 
 1457 # Copyright (C) 2004-2021 Free Software Foundation, Inc.
 1458 #
 1459 # This file is free software; the Free Software Foundation
 1460 # gives unlimited permission to copy and/or distribute it,
 1461 # with or without modifications, as long as this notice is preserved.
 1462 
 1463 # _AM_PROG_TAR(FORMAT)
 1464 # --------------------
 1465 # Check how to create a tarball in format FORMAT.
 1466 # FORMAT should be one of 'v7', 'ustar', or 'pax'.
 1467 #
 1468 # Substitute a variable $(am__tar) that is a command
 1469 # writing to stdout a FORMAT-tarball containing the directory
 1470 # $tardir.
 1471 #     tardir=directory && $(am__tar) > result.tar
 1472 #
 1473 # Substitute a variable $(am__untar) that extract such
 1474 # a tarball read from stdin.
 1475 #     $(am__untar) < result.tar
 1476 #
 1477 AC_DEFUN([_AM_PROG_TAR],
 1478 [# Always define AMTAR for backward compatibility.  Yes, it's still used
 1479 # in the wild :-(  We should find a proper way to deprecate it ...
 1480 AC_SUBST([AMTAR], ['$${TAR-tar}'])
 1481 
 1482 # We'll loop over all known methods to create a tar archive until one works.
 1483 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
 1484 
 1485 m4_if([$1], [v7],
 1486   [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
 1487 
 1488   [m4_case([$1],
 1489     [ustar],
 1490      [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
 1491       # There is notably a 21 bits limit for the UID and the GID.  In fact,
 1492       # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
 1493       # and bug#13588).
 1494       am_max_uid=2097151 # 2^21 - 1
 1495       am_max_gid=$am_max_uid
 1496       # The $UID and $GID variables are not portable, so we need to resort
 1497       # to the POSIX-mandated id(1) utility.  Errors in the 'id' calls
 1498       # below are definitely unexpected, so allow the users to see them
 1499       # (that is, avoid stderr redirection).
 1500       am_uid=`id -u || echo unknown`
 1501       am_gid=`id -g || echo unknown`
 1502       AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
 1503       if test $am_uid -le $am_max_uid; then
 1504          AC_MSG_RESULT([yes])
 1505       else
 1506          AC_MSG_RESULT([no])
 1507          _am_tools=none
 1508       fi
 1509       AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
 1510       if test $am_gid -le $am_max_gid; then
 1511          AC_MSG_RESULT([yes])
 1512       else
 1513         AC_MSG_RESULT([no])
 1514         _am_tools=none
 1515       fi],
 1516 
 1517   [pax],
 1518     [],
 1519 
 1520   [m4_fatal([Unknown tar format])])
 1521 
 1522   AC_MSG_CHECKING([how to create a $1 tar archive])
 1523 
 1524   # Go ahead even if we have the value already cached.  We do so because we
 1525   # need to set the values for the 'am__tar' and 'am__untar' variables.
 1526   _am_tools=${am_cv_prog_tar_$1-$_am_tools}
 1527 
 1528   for _am_tool in $_am_tools; do
 1529     case $_am_tool in
 1530     gnutar)
 1531       for _am_tar in tar gnutar gtar; do
 1532         AM_RUN_LOG([$_am_tar --version]) && break
 1533       done
 1534       am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
 1535       am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
 1536       am__untar="$_am_tar -xf -"
 1537       ;;
 1538     plaintar)
 1539       # Must skip GNU tar: if it does not support --format= it doesn't create
 1540       # ustar tarball either.
 1541       (tar --version) >/dev/null 2>&1 && continue
 1542       am__tar='tar chf - "$$tardir"'
 1543       am__tar_='tar chf - "$tardir"'
 1544       am__untar='tar xf -'
 1545       ;;
 1546     pax)
 1547       am__tar='pax -L -x $1 -w "$$tardir"'
 1548       am__tar_='pax -L -x $1 -w "$tardir"'
 1549       am__untar='pax -r'
 1550       ;;
 1551     cpio)
 1552       am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
 1553       am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
 1554       am__untar='cpio -i -H $1 -d'
 1555       ;;
 1556     none)
 1557       am__tar=false
 1558       am__tar_=false
 1559       am__untar=false
 1560       ;;
 1561     esac
 1562 
 1563     # If the value was cached, stop now.  We just wanted to have am__tar
 1564     # and am__untar set.
 1565     test -n "${am_cv_prog_tar_$1}" && break
 1566 
 1567     # tar/untar a dummy directory, and stop if the command works.
 1568     rm -rf conftest.dir
 1569     mkdir conftest.dir
 1570     echo GrepMe > conftest.dir/file
 1571     AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
 1572     rm -rf conftest.dir
 1573     if test -s conftest.tar; then
 1574       AM_RUN_LOG([$am__untar <conftest.tar])
 1575       AM_RUN_LOG([cat conftest.dir/file])
 1576       grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
 1577     fi
 1578   done
 1579   rm -rf conftest.dir
 1580 
 1581   AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
 1582   AC_MSG_RESULT([$am_cv_prog_tar_$1])])
 1583 
 1584 AC_SUBST([am__tar])
 1585 AC_SUBST([am__untar])
 1586 ]) # _AM_PROG_TAR
 1587 
 1588 m4_include([config/always-arch.m4])
 1589 m4_include([config/always-compiler-options.m4])
 1590 m4_include([config/always-cppcheck.m4])
 1591 m4_include([config/always-python.m4])
 1592 m4_include([config/always-pyzfs.m4])
 1593 m4_include([config/always-sed.m4])
 1594 m4_include([config/always-shellcheck.m4])
 1595 m4_include([config/always-system.m4])
 1596 m4_include([config/ax_code_coverage.m4])
 1597 m4_include([config/ax_count_cpus.m4])
 1598 m4_include([config/ax_python_devel.m4])
 1599 m4_include([config/ax_restore_flags.m4])
 1600 m4_include([config/ax_save_flags.m4])
 1601 m4_include([config/find_system_library.m4])
 1602 m4_include([config/gettext.m4])
 1603 m4_include([config/host-cpu-c-abi.m4])
 1604 m4_include([config/iconv.m4])
 1605 m4_include([config/intlmacosx.m4])
 1606 m4_include([config/kernel-access-ok-type.m4])
 1607 m4_include([config/kernel-acl.m4])
 1608 m4_include([config/kernel-add-disk.m4])
 1609 m4_include([config/kernel-aio-fsync.m4])
 1610 m4_include([config/kernel-automount.m4])
 1611 m4_include([config/kernel-bdi.m4])
 1612 m4_include([config/kernel-bio.m4])
 1613 m4_include([config/kernel-bio_max_segs.m4])
 1614 m4_include([config/kernel-blk-queue.m4])
 1615 m4_include([config/kernel-blkdev.m4])
 1616 m4_include([config/kernel-block-device-operations.m4])
 1617 m4_include([config/kernel-clear-inode.m4])
 1618 m4_include([config/kernel-commit-metadata.m4])
 1619 m4_include([config/kernel-config-defined.m4])
 1620 m4_include([config/kernel-copy-from-user-inatomic.m4])
 1621 m4_include([config/kernel-current-time.m4])
 1622 m4_include([config/kernel-declare-event-class.m4])
 1623 m4_include([config/kernel-dentry-operations.m4])
 1624 m4_include([config/kernel-dirty-inode.m4])
 1625 m4_include([config/kernel-discard-granularity.m4])
 1626 m4_include([config/kernel-encode-fh-inode.m4])
 1627 m4_include([config/kernel-evict-inode.m4])
 1628 m4_include([config/kernel-fallocate.m4])
 1629 m4_include([config/kernel-file-dentry.m4])
 1630 m4_include([config/kernel-file-inode.m4])
 1631 m4_include([config/kernel-fmode-t.m4])
 1632 m4_include([config/kernel-follow-down-one.m4])
 1633 m4_include([config/kernel-fpu.m4])
 1634 m4_include([config/kernel-fst-mount.m4])
 1635 m4_include([config/kernel-fsync.m4])
 1636 m4_include([config/kernel-generic_fillattr.m4])
 1637 m4_include([config/kernel-generic_io_acct.m4])
 1638 m4_include([config/kernel-generic_readlink.m4])
 1639 m4_include([config/kernel-genhd-flags.m4])
 1640 m4_include([config/kernel-get-disk-ro.m4])
 1641 m4_include([config/kernel-get-link.m4])
 1642 m4_include([config/kernel-global_page_state.m4])
 1643 m4_include([config/kernel-group-info.m4])
 1644 m4_include([config/kernel-hotplug.m4])
 1645 m4_include([config/kernel-in-compat-syscall.m4])
 1646 m4_include([config/kernel-inode-create.m4])
 1647 m4_include([config/kernel-inode-getattr.m4])
 1648 m4_include([config/kernel-inode-lock.m4])
 1649 m4_include([config/kernel-inode-lookup.m4])
 1650 m4_include([config/kernel-inode-set-flags.m4])
 1651 m4_include([config/kernel-inode-set-iversion.m4])
 1652 m4_include([config/kernel-inode-times.m4])
 1653 m4_include([config/kernel-insert-inode-locked.m4])
 1654 m4_include([config/kernel-is_owner_or_cap.m4])
 1655 m4_include([config/kernel-kmap-atomic-args.m4])
 1656 m4_include([config/kernel-kmem-cache.m4])
 1657 m4_include([config/kernel-kmem.m4])
 1658 m4_include([config/kernel-kstrtoul.m4])
 1659 m4_include([config/kernel-kthread.m4])
 1660 m4_include([config/kernel-ktime.m4])
 1661 m4_include([config/kernel-kuid-helpers.m4])
 1662 m4_include([config/kernel-kuidgid.m4])
 1663 m4_include([config/kernel-lseek-execute.m4])
 1664 m4_include([config/kernel-make-request-fn.m4])
 1665 m4_include([config/kernel-misc-minor.m4])
 1666 m4_include([config/kernel-mkdir.m4])
 1667 m4_include([config/kernel-mknod.m4])
 1668 m4_include([config/kernel-mod-param.m4])
 1669 m4_include([config/kernel-objtool.m4])
 1670 m4_include([config/kernel-pagemap-folio_wait_bit.m4])
 1671 m4_include([config/kernel-pde-data.m4])
 1672 m4_include([config/kernel-percpu.m4])
 1673 m4_include([config/kernel-proc-operations.m4])
 1674 m4_include([config/kernel-put-link.m4])
 1675 m4_include([config/kernel-readpages.m4])
 1676 m4_include([config/kernel-rename.m4])
 1677 m4_include([config/kernel-revalidate-disk-size.m4])
 1678 m4_include([config/kernel-rw.m4])
 1679 m4_include([config/kernel-rwsem.m4])
 1680 m4_include([config/kernel-sched.m4])
 1681 m4_include([config/kernel-security-inode-init.m4])
 1682 m4_include([config/kernel-set-nlink.m4])
 1683 m4_include([config/kernel-setattr-prepare.m4])
 1684 m4_include([config/kernel-sget-args.m4])
 1685 m4_include([config/kernel-show-options.m4])
 1686 m4_include([config/kernel-shrink.m4])
 1687 m4_include([config/kernel-siginfo.m4])
 1688 m4_include([config/kernel-signal-stop.m4])
 1689 m4_include([config/kernel-special-state.m4])
 1690 m4_include([config/kernel-stdarg.m4])
 1691 m4_include([config/kernel-super-userns.m4])
 1692 m4_include([config/kernel-symlink.m4])
 1693 m4_include([config/kernel-sysfs.m4])
 1694 m4_include([config/kernel-timer.m4])
 1695 m4_include([config/kernel-tmpfile.m4])
 1696 m4_include([config/kernel-totalhigh_pages.m4])
 1697 m4_include([config/kernel-totalram-pages-func.m4])
 1698 m4_include([config/kernel-truncate-setsize.m4])
 1699 m4_include([config/kernel-userns-capabilities.m4])
 1700 m4_include([config/kernel-usleep_range.m4])
 1701 m4_include([config/kernel-vfs-direct_IO.m4])
 1702 m4_include([config/kernel-vfs-filemap_dirty_folio.m4])
 1703 m4_include([config/kernel-vfs-fsync.m4])
 1704 m4_include([config/kernel-vfs-getattr.m4])
 1705 m4_include([config/kernel-vfs-iov_iter.m4])
 1706 m4_include([config/kernel-vfs-iterate.m4])
 1707 m4_include([config/kernel-vfs-read_folio.m4])
 1708 m4_include([config/kernel-vfs-rw-iterate.m4])
 1709 m4_include([config/kernel-vfs-set_page_dirty.m4])
 1710 m4_include([config/kernel-wait.m4])
 1711 m4_include([config/kernel-xattr-handler.m4])
 1712 m4_include([config/kernel-zero_page.m4])
 1713 m4_include([config/kernel-zlib.m4])
 1714 m4_include([config/kernel.m4])
 1715 m4_include([config/lib-ld.m4])
 1716 m4_include([config/lib-link.m4])
 1717 m4_include([config/lib-prefix.m4])
 1718 m4_include([config/libtool.m4])
 1719 m4_include([config/ltoptions.m4])
 1720 m4_include([config/ltsugar.m4])
 1721 m4_include([config/ltversion.m4])
 1722 m4_include([config/lt~obsolete.m4])
 1723 m4_include([config/mount-helper.m4])
 1724 m4_include([config/nls.m4])
 1725 m4_include([config/pkg.m4])
 1726 m4_include([config/po.m4])
 1727 m4_include([config/progtest.m4])
 1728 m4_include([config/toolchain-simd.m4])
 1729 m4_include([config/user-clock_gettime.m4])
 1730 m4_include([config/user-dracut.m4])
 1731 m4_include([config/user-gettext.m4])
 1732 m4_include([config/user-libaio.m4])
 1733 m4_include([config/user-libatomic.m4])
 1734 m4_include([config/user-libblkid.m4])
 1735 m4_include([config/user-libcrypto.m4])
 1736 m4_include([config/user-libexec.m4])
 1737 m4_include([config/user-libfetch.m4])
 1738 m4_include([config/user-libtirpc.m4])
 1739 m4_include([config/user-libudev.m4])
 1740 m4_include([config/user-libuuid.m4])
 1741 m4_include([config/user-makedev.m4])
 1742 m4_include([config/user-pam.m4])
 1743 m4_include([config/user-runstatedir.m4])
 1744 m4_include([config/user-systemd.m4])
 1745 m4_include([config/user-sysvinit.m4])
 1746 m4_include([config/user-udev.m4])
 1747 m4_include([config/user-zlib.m4])
 1748 m4_include([config/user.m4])
 1749 m4_include([config/zfs-build.m4])
 1750 m4_include([config/zfs-meta.m4])