xref: /freebsd/contrib/ntp/sntp/libevent/aclocal.m4 (revision a466cc55)
1*a466cc55SCy Schubert# generated automatically by aclocal 1.16.5 -*- Autoconf -*-
22b15cb3dSCy Schubert
3*a466cc55SCy Schubert# Copyright (C) 1996-2021 Free Software Foundation, Inc.
4276da39aSCy Schubert
52b15cb3dSCy Schubert# This file is free software; the Free Software Foundation
62b15cb3dSCy Schubert# gives unlimited permission to copy and/or distribute it,
72b15cb3dSCy Schubert# with or without modifications, as long as this notice is preserved.
82b15cb3dSCy Schubert
92b15cb3dSCy Schubert# This program is distributed in the hope that it will be useful,
102b15cb3dSCy Schubert# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
112b15cb3dSCy Schubert# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
122b15cb3dSCy Schubert# PARTICULAR PURPOSE.
132b15cb3dSCy Schubert
14276da39aSCy Schubertm4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
152b15cb3dSCy Schubertm4_ifndef([AC_AUTOCONF_VERSION],
162b15cb3dSCy Schubert  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
17*a466cc55SCy Schubertm4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.71],,
18*a466cc55SCy Schubert[m4_warning([this file was generated for autoconf 2.71.
192b15cb3dSCy SchubertYou have another version of autoconf.  It may work, but is not guaranteed to.
202b15cb3dSCy SchubertIf you have problems, you may need to regenerate the build system entirely.
21276da39aSCy SchubertTo do so, use the procedure documented by the package, typically 'autoreconf'.])])
222b15cb3dSCy Schubert
23*a466cc55SCy Schubert# Copyright (C) 2002-2021 Free Software Foundation, Inc.
242b15cb3dSCy Schubert#
252b15cb3dSCy Schubert# This file is free software; the Free Software Foundation
262b15cb3dSCy Schubert# gives unlimited permission to copy and/or distribute it,
272b15cb3dSCy Schubert# with or without modifications, as long as this notice is preserved.
282b15cb3dSCy Schubert
292b15cb3dSCy Schubert# AM_AUTOMAKE_VERSION(VERSION)
302b15cb3dSCy Schubert# ----------------------------
312b15cb3dSCy Schubert# Automake X.Y traces this macro to ensure aclocal.m4 has been
322b15cb3dSCy Schubert# generated from the m4 files accompanying Automake X.Y.
332b15cb3dSCy Schubert# (This private macro should not be called outside this file.)
342b15cb3dSCy SchubertAC_DEFUN([AM_AUTOMAKE_VERSION],
35*a466cc55SCy Schubert[am__api_version='1.16'
362b15cb3dSCy Schubertdnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
372b15cb3dSCy Schubertdnl require some minimum version.  Point them to the right macro.
38*a466cc55SCy Schubertm4_if([$1], [1.16.5], [],
392b15cb3dSCy Schubert      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
402b15cb3dSCy Schubert])
412b15cb3dSCy Schubert
422b15cb3dSCy Schubert# _AM_AUTOCONF_VERSION(VERSION)
432b15cb3dSCy Schubert# -----------------------------
442b15cb3dSCy Schubert# aclocal traces this macro to find the Autoconf version.
452b15cb3dSCy Schubert# This is a private macro too.  Using m4_define simplifies
462b15cb3dSCy Schubert# the logic in aclocal, which can simply ignore this definition.
472b15cb3dSCy Schubertm4_define([_AM_AUTOCONF_VERSION], [])
482b15cb3dSCy Schubert
492b15cb3dSCy Schubert# AM_SET_CURRENT_AUTOMAKE_VERSION
502b15cb3dSCy Schubert# -------------------------------
512b15cb3dSCy Schubert# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
522b15cb3dSCy Schubert# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
532b15cb3dSCy SchubertAC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
54*a466cc55SCy Schubert[AM_AUTOMAKE_VERSION([1.16.5])dnl
552b15cb3dSCy Schubertm4_ifndef([AC_AUTOCONF_VERSION],
562b15cb3dSCy Schubert  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
572b15cb3dSCy Schubert_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
582b15cb3dSCy Schubert
592b15cb3dSCy Schubert# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
602b15cb3dSCy Schubert
61*a466cc55SCy Schubert# Copyright (C) 2001-2021 Free Software Foundation, Inc.
622b15cb3dSCy Schubert#
632b15cb3dSCy Schubert# This file is free software; the Free Software Foundation
642b15cb3dSCy Schubert# gives unlimited permission to copy and/or distribute it,
652b15cb3dSCy Schubert# with or without modifications, as long as this notice is preserved.
662b15cb3dSCy Schubert
672b15cb3dSCy Schubert# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
68276da39aSCy Schubert# $ac_aux_dir to '$srcdir/foo'.  In other projects, it is set to
69276da39aSCy Schubert# '$srcdir', '$srcdir/..', or '$srcdir/../..'.
702b15cb3dSCy Schubert#
712b15cb3dSCy Schubert# Of course, Automake must honor this variable whenever it calls a
722b15cb3dSCy Schubert# tool from the auxiliary directory.  The problem is that $srcdir (and
732b15cb3dSCy Schubert# therefore $ac_aux_dir as well) can be either absolute or relative,
742b15cb3dSCy Schubert# depending on how configure is run.  This is pretty annoying, since
752b15cb3dSCy Schubert# it makes $ac_aux_dir quite unusable in subdirectories: in the top
762b15cb3dSCy Schubert# source directory, any form will work fine, but in subdirectories a
772b15cb3dSCy Schubert# relative path needs to be adjusted first.
782b15cb3dSCy Schubert#
792b15cb3dSCy Schubert# $ac_aux_dir/missing
802b15cb3dSCy Schubert#    fails when called from a subdirectory if $ac_aux_dir is relative
812b15cb3dSCy Schubert# $top_srcdir/$ac_aux_dir/missing
822b15cb3dSCy Schubert#    fails if $ac_aux_dir is absolute,
832b15cb3dSCy Schubert#    fails when called from a subdirectory in a VPATH build with
842b15cb3dSCy Schubert#          a relative $ac_aux_dir
852b15cb3dSCy Schubert#
862b15cb3dSCy Schubert# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
872b15cb3dSCy Schubert# are both prefixed by $srcdir.  In an in-source build this is usually
88276da39aSCy Schubert# harmless because $srcdir is '.', but things will broke when you
892b15cb3dSCy Schubert# start a VPATH build or use an absolute $srcdir.
902b15cb3dSCy Schubert#
912b15cb3dSCy Schubert# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
922b15cb3dSCy Schubert# iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
932b15cb3dSCy Schubert#   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
942b15cb3dSCy Schubert# and then we would define $MISSING as
952b15cb3dSCy Schubert#   MISSING="\${SHELL} $am_aux_dir/missing"
962b15cb3dSCy Schubert# This will work as long as MISSING is not called from configure, because
972b15cb3dSCy Schubert# unfortunately $(top_srcdir) has no meaning in configure.
982b15cb3dSCy Schubert# However there are other variables, like CC, which are often used in
992b15cb3dSCy Schubert# configure, and could therefore not use this "fixed" $ac_aux_dir.
1002b15cb3dSCy Schubert#
1012b15cb3dSCy Schubert# Another solution, used here, is to always expand $ac_aux_dir to an
1022b15cb3dSCy Schubert# absolute PATH.  The drawback is that using absolute paths prevent a
1032b15cb3dSCy Schubert# configured tree to be moved without reconfiguration.
1042b15cb3dSCy Schubert
1052b15cb3dSCy SchubertAC_DEFUN([AM_AUX_DIR_EXPAND],
106276da39aSCy Schubert[AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
107276da39aSCy Schubert# Expand $ac_aux_dir to an absolute path.
108276da39aSCy Schubertam_aux_dir=`cd "$ac_aux_dir" && pwd`
1092b15cb3dSCy Schubert])
1102b15cb3dSCy Schubert
1112b15cb3dSCy Schubert# AM_CONDITIONAL                                            -*- Autoconf -*-
1122b15cb3dSCy Schubert
113*a466cc55SCy Schubert# Copyright (C) 1997-2021 Free Software Foundation, Inc.
1142b15cb3dSCy Schubert#
1152b15cb3dSCy Schubert# This file is free software; the Free Software Foundation
1162b15cb3dSCy Schubert# gives unlimited permission to copy and/or distribute it,
1172b15cb3dSCy Schubert# with or without modifications, as long as this notice is preserved.
1182b15cb3dSCy Schubert
1192b15cb3dSCy Schubert# AM_CONDITIONAL(NAME, SHELL-CONDITION)
1202b15cb3dSCy Schubert# -------------------------------------
1212b15cb3dSCy Schubert# Define a conditional.
1222b15cb3dSCy SchubertAC_DEFUN([AM_CONDITIONAL],
123276da39aSCy Schubert[AC_PREREQ([2.52])dnl
124276da39aSCy Schubert m4_if([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
1252b15cb3dSCy Schubert       [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
1262b15cb3dSCy SchubertAC_SUBST([$1_TRUE])dnl
1272b15cb3dSCy SchubertAC_SUBST([$1_FALSE])dnl
1282b15cb3dSCy Schubert_AM_SUBST_NOTMAKE([$1_TRUE])dnl
1292b15cb3dSCy Schubert_AM_SUBST_NOTMAKE([$1_FALSE])dnl
1302b15cb3dSCy Schubertm4_define([_AM_COND_VALUE_$1], [$2])dnl
1312b15cb3dSCy Schubertif $2; then
1322b15cb3dSCy Schubert  $1_TRUE=
1332b15cb3dSCy Schubert  $1_FALSE='#'
1342b15cb3dSCy Schubertelse
1352b15cb3dSCy Schubert  $1_TRUE='#'
1362b15cb3dSCy Schubert  $1_FALSE=
1372b15cb3dSCy Schubertfi
1382b15cb3dSCy SchubertAC_CONFIG_COMMANDS_PRE(
1392b15cb3dSCy Schubert[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
1402b15cb3dSCy Schubert  AC_MSG_ERROR([[conditional "$1" was never defined.
1412b15cb3dSCy SchubertUsually this means the macro was only invoked conditionally.]])
1422b15cb3dSCy Schubertfi])])
1432b15cb3dSCy Schubert
144*a466cc55SCy Schubert# Copyright (C) 1999-2021 Free Software Foundation, Inc.
1452b15cb3dSCy Schubert#
1462b15cb3dSCy Schubert# This file is free software; the Free Software Foundation
1472b15cb3dSCy Schubert# gives unlimited permission to copy and/or distribute it,
1482b15cb3dSCy Schubert# with or without modifications, as long as this notice is preserved.
1492b15cb3dSCy Schubert
1502b15cb3dSCy Schubert
151276da39aSCy Schubert# There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
1522b15cb3dSCy Schubert# written in clear, in which case automake, when reading aclocal.m4,
1532b15cb3dSCy Schubert# will think it sees a *use*, and therefore will trigger all it's
1542b15cb3dSCy Schubert# C support machinery.  Also note that it means that autoscan, seeing
1552b15cb3dSCy Schubert# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
1562b15cb3dSCy Schubert
1572b15cb3dSCy Schubert
1582b15cb3dSCy Schubert# _AM_DEPENDENCIES(NAME)
1592b15cb3dSCy Schubert# ----------------------
1602b15cb3dSCy Schubert# See how the compiler implements dependency checking.
161276da39aSCy Schubert# NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
1622b15cb3dSCy Schubert# We try a few techniques and use that to set a single cache variable.
1632b15cb3dSCy Schubert#
1642b15cb3dSCy Schubert# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
1652b15cb3dSCy Schubert# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
1662b15cb3dSCy Schubert# dependency, and given that the user is not expected to run this macro,
1672b15cb3dSCy Schubert# just rely on AC_PROG_CC.
1682b15cb3dSCy SchubertAC_DEFUN([_AM_DEPENDENCIES],
1692b15cb3dSCy Schubert[AC_REQUIRE([AM_SET_DEPDIR])dnl
1702b15cb3dSCy SchubertAC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
1712b15cb3dSCy SchubertAC_REQUIRE([AM_MAKE_INCLUDE])dnl
1722b15cb3dSCy SchubertAC_REQUIRE([AM_DEP_TRACK])dnl
1732b15cb3dSCy Schubert
174276da39aSCy Schubertm4_if([$1], [CC],   [depcc="$CC"   am_compiler_list=],
175276da39aSCy Schubert      [$1], [CXX],  [depcc="$CXX"  am_compiler_list=],
176276da39aSCy Schubert      [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
177276da39aSCy Schubert      [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
178276da39aSCy Schubert      [$1], [UPC],  [depcc="$UPC"  am_compiler_list=],
179276da39aSCy Schubert      [$1], [GCJ],  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
1802b15cb3dSCy Schubert                    [depcc="$$1"   am_compiler_list=])
1812b15cb3dSCy Schubert
1822b15cb3dSCy SchubertAC_CACHE_CHECK([dependency style of $depcc],
1832b15cb3dSCy Schubert               [am_cv_$1_dependencies_compiler_type],
1842b15cb3dSCy Schubert[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
1852b15cb3dSCy Schubert  # We make a subdir and do the tests there.  Otherwise we can end up
1862b15cb3dSCy Schubert  # making bogus files that we don't know about and never remove.  For
1872b15cb3dSCy Schubert  # instance it was reported that on HP-UX the gcc test will end up
188276da39aSCy Schubert  # making a dummy file named 'D' -- because '-MD' means "put the output
189276da39aSCy Schubert  # in D".
190276da39aSCy Schubert  rm -rf conftest.dir
1912b15cb3dSCy Schubert  mkdir conftest.dir
1922b15cb3dSCy Schubert  # Copy depcomp to subdir because otherwise we won't find it if we're
1932b15cb3dSCy Schubert  # using a relative directory.
1942b15cb3dSCy Schubert  cp "$am_depcomp" conftest.dir
1952b15cb3dSCy Schubert  cd conftest.dir
1962b15cb3dSCy Schubert  # We will build objects and dependencies in a subdirectory because
1972b15cb3dSCy Schubert  # it helps to detect inapplicable dependency modes.  For instance
1982b15cb3dSCy Schubert  # both Tru64's cc and ICC support -MD to output dependencies as a
1992b15cb3dSCy Schubert  # side effect of compilation, but ICC will put the dependencies in
2002b15cb3dSCy Schubert  # the current directory while Tru64 will put them in the object
2012b15cb3dSCy Schubert  # directory.
2022b15cb3dSCy Schubert  mkdir sub
2032b15cb3dSCy Schubert
2042b15cb3dSCy Schubert  am_cv_$1_dependencies_compiler_type=none
2052b15cb3dSCy Schubert  if test "$am_compiler_list" = ""; then
2062b15cb3dSCy Schubert     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
2072b15cb3dSCy Schubert  fi
2082b15cb3dSCy Schubert  am__universal=false
2092b15cb3dSCy Schubert  m4_case([$1], [CC],
2102b15cb3dSCy Schubert    [case " $depcc " in #(
2112b15cb3dSCy Schubert     *\ -arch\ *\ -arch\ *) am__universal=true ;;
2122b15cb3dSCy Schubert     esac],
2132b15cb3dSCy Schubert    [CXX],
2142b15cb3dSCy Schubert    [case " $depcc " in #(
2152b15cb3dSCy Schubert     *\ -arch\ *\ -arch\ *) am__universal=true ;;
2162b15cb3dSCy Schubert     esac])
2172b15cb3dSCy Schubert
2182b15cb3dSCy Schubert  for depmode in $am_compiler_list; do
2192b15cb3dSCy Schubert    # Setup a source with many dependencies, because some compilers
2202b15cb3dSCy Schubert    # like to wrap large dependency lists on column 80 (with \), and
2212b15cb3dSCy Schubert    # we should not choose a depcomp mode which is confused by this.
2222b15cb3dSCy Schubert    #
2232b15cb3dSCy Schubert    # We need to recreate these files for each test, as the compiler may
2242b15cb3dSCy Schubert    # overwrite some of them when testing with obscure command lines.
2252b15cb3dSCy Schubert    # This happens at least with the AIX C compiler.
2262b15cb3dSCy Schubert    : > sub/conftest.c
2272b15cb3dSCy Schubert    for i in 1 2 3 4 5 6; do
2282b15cb3dSCy Schubert      echo '#include "conftst'$i'.h"' >> sub/conftest.c
229276da39aSCy Schubert      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
230276da39aSCy Schubert      # Solaris 10 /bin/sh.
231276da39aSCy Schubert      echo '/* dummy */' > sub/conftst$i.h
2322b15cb3dSCy Schubert    done
2332b15cb3dSCy Schubert    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2342b15cb3dSCy Schubert
235276da39aSCy Schubert    # We check with '-c' and '-o' for the sake of the "dashmstdout"
2362b15cb3dSCy Schubert    # mode.  It turns out that the SunPro C++ compiler does not properly
237276da39aSCy Schubert    # handle '-M -o', and we need to detect this.  Also, some Intel
238276da39aSCy Schubert    # versions had trouble with output in subdirs.
2392b15cb3dSCy Schubert    am__obj=sub/conftest.${OBJEXT-o}
2402b15cb3dSCy Schubert    am__minus_obj="-o $am__obj"
2412b15cb3dSCy Schubert    case $depmode in
2422b15cb3dSCy Schubert    gcc)
2432b15cb3dSCy Schubert      # This depmode causes a compiler race in universal mode.
2442b15cb3dSCy Schubert      test "$am__universal" = false || continue
2452b15cb3dSCy Schubert      ;;
2462b15cb3dSCy Schubert    nosideeffect)
247276da39aSCy Schubert      # After this tag, mechanisms are not by side-effect, so they'll
248276da39aSCy Schubert      # only be used when explicitly requested.
2492b15cb3dSCy Schubert      if test "x$enable_dependency_tracking" = xyes; then
2502b15cb3dSCy Schubert	continue
2512b15cb3dSCy Schubert      else
2522b15cb3dSCy Schubert	break
2532b15cb3dSCy Schubert      fi
2542b15cb3dSCy Schubert      ;;
255276da39aSCy Schubert    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
256276da39aSCy Schubert      # This compiler won't grok '-c -o', but also, the minuso test has
2572b15cb3dSCy Schubert      # not run yet.  These depmodes are late enough in the game, and
2582b15cb3dSCy Schubert      # so weak that their functioning should not be impacted.
2592b15cb3dSCy Schubert      am__obj=conftest.${OBJEXT-o}
2602b15cb3dSCy Schubert      am__minus_obj=
2612b15cb3dSCy Schubert      ;;
2622b15cb3dSCy Schubert    none) break ;;
2632b15cb3dSCy Schubert    esac
2642b15cb3dSCy Schubert    if depmode=$depmode \
2652b15cb3dSCy Schubert       source=sub/conftest.c object=$am__obj \
2662b15cb3dSCy Schubert       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2672b15cb3dSCy Schubert       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
2682b15cb3dSCy Schubert         >/dev/null 2>conftest.err &&
2692b15cb3dSCy Schubert       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
2702b15cb3dSCy Schubert       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2712b15cb3dSCy Schubert       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
2722b15cb3dSCy Schubert       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2732b15cb3dSCy Schubert      # icc doesn't choke on unknown options, it will just issue warnings
2742b15cb3dSCy Schubert      # or remarks (even with -Werror).  So we grep stderr for any message
2752b15cb3dSCy Schubert      # that says an option was ignored or not supported.
2762b15cb3dSCy Schubert      # When given -MP, icc 7.0 and 7.1 complain thusly:
2772b15cb3dSCy Schubert      #   icc: Command line warning: ignoring option '-M'; no argument required
2782b15cb3dSCy Schubert      # The diagnosis changed in icc 8.0:
2792b15cb3dSCy Schubert      #   icc: Command line remark: option '-MP' not supported
2802b15cb3dSCy Schubert      if (grep 'ignoring option' conftest.err ||
2812b15cb3dSCy Schubert          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2822b15cb3dSCy Schubert        am_cv_$1_dependencies_compiler_type=$depmode
2832b15cb3dSCy Schubert        break
2842b15cb3dSCy Schubert      fi
2852b15cb3dSCy Schubert    fi
2862b15cb3dSCy Schubert  done
2872b15cb3dSCy Schubert
2882b15cb3dSCy Schubert  cd ..
2892b15cb3dSCy Schubert  rm -rf conftest.dir
2902b15cb3dSCy Schubertelse
2912b15cb3dSCy Schubert  am_cv_$1_dependencies_compiler_type=none
2922b15cb3dSCy Schubertfi
2932b15cb3dSCy Schubert])
2942b15cb3dSCy SchubertAC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
2952b15cb3dSCy SchubertAM_CONDITIONAL([am__fastdep$1], [
2962b15cb3dSCy Schubert  test "x$enable_dependency_tracking" != xno \
2972b15cb3dSCy Schubert  && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
2982b15cb3dSCy Schubert])
2992b15cb3dSCy Schubert
3002b15cb3dSCy Schubert
3012b15cb3dSCy Schubert# AM_SET_DEPDIR
3022b15cb3dSCy Schubert# -------------
3032b15cb3dSCy Schubert# Choose a directory name for dependency files.
304276da39aSCy Schubert# This macro is AC_REQUIREd in _AM_DEPENDENCIES.
3052b15cb3dSCy SchubertAC_DEFUN([AM_SET_DEPDIR],
3062b15cb3dSCy Schubert[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
3072b15cb3dSCy SchubertAC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
3082b15cb3dSCy Schubert])
3092b15cb3dSCy Schubert
3102b15cb3dSCy Schubert
3112b15cb3dSCy Schubert# AM_DEP_TRACK
3122b15cb3dSCy Schubert# ------------
3132b15cb3dSCy SchubertAC_DEFUN([AM_DEP_TRACK],
314276da39aSCy Schubert[AC_ARG_ENABLE([dependency-tracking], [dnl
315276da39aSCy SchubertAS_HELP_STRING(
316276da39aSCy Schubert  [--enable-dependency-tracking],
317276da39aSCy Schubert  [do not reject slow dependency extractors])
318276da39aSCy SchubertAS_HELP_STRING(
319276da39aSCy Schubert  [--disable-dependency-tracking],
320276da39aSCy Schubert  [speeds up one-time build])])
3212b15cb3dSCy Schubertif test "x$enable_dependency_tracking" != xno; then
3222b15cb3dSCy Schubert  am_depcomp="$ac_aux_dir/depcomp"
3232b15cb3dSCy Schubert  AMDEPBACKSLASH='\'
324276da39aSCy Schubert  am__nodep='_no'
3252b15cb3dSCy Schubertfi
3262b15cb3dSCy SchubertAM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
3272b15cb3dSCy SchubertAC_SUBST([AMDEPBACKSLASH])dnl
3282b15cb3dSCy Schubert_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
329276da39aSCy SchubertAC_SUBST([am__nodep])dnl
330276da39aSCy Schubert_AM_SUBST_NOTMAKE([am__nodep])dnl
3312b15cb3dSCy Schubert])
3322b15cb3dSCy Schubert
3332b15cb3dSCy Schubert# Generate code to set up dependency tracking.              -*- Autoconf -*-
3342b15cb3dSCy Schubert
335*a466cc55SCy Schubert# Copyright (C) 1999-2021 Free Software Foundation, Inc.
3362b15cb3dSCy Schubert#
3372b15cb3dSCy Schubert# This file is free software; the Free Software Foundation
3382b15cb3dSCy Schubert# gives unlimited permission to copy and/or distribute it,
3392b15cb3dSCy Schubert# with or without modifications, as long as this notice is preserved.
3402b15cb3dSCy Schubert
3412b15cb3dSCy Schubert# _AM_OUTPUT_DEPENDENCY_COMMANDS
3422b15cb3dSCy Schubert# ------------------------------
3432b15cb3dSCy SchubertAC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
3442b15cb3dSCy Schubert[{
345276da39aSCy Schubert  # Older Autoconf quotes --file arguments for eval, but not when files
3462b15cb3dSCy Schubert  # are listed without --file.  Let's play safe and only enable the eval
3472b15cb3dSCy Schubert  # if we detect the quoting.
348*a466cc55SCy Schubert  # TODO: see whether this extra hack can be removed once we start
349*a466cc55SCy Schubert  # requiring Autoconf 2.70 or later.
350*a466cc55SCy Schubert  AS_CASE([$CONFIG_FILES],
351*a466cc55SCy Schubert          [*\'*], [eval set x "$CONFIG_FILES"],
352*a466cc55SCy Schubert          [*], [set x $CONFIG_FILES])
3532b15cb3dSCy Schubert  shift
354*a466cc55SCy Schubert  # Used to flag and report bootstrapping failures.
355*a466cc55SCy Schubert  am_rc=0
356*a466cc55SCy Schubert  for am_mf
3572b15cb3dSCy Schubert  do
3582b15cb3dSCy Schubert    # Strip MF so we end up with the name of the file.
359*a466cc55SCy Schubert    am_mf=`AS_ECHO(["$am_mf"]) | sed -e 's/:.*$//'`
360*a466cc55SCy Schubert    # Check whether this is an Automake generated Makefile which includes
361*a466cc55SCy Schubert    # dependency-tracking related rules and includes.
362*a466cc55SCy Schubert    # Grep'ing the whole file directly is not great: AIX grep has a line
3632b15cb3dSCy Schubert    # limit of 2048, but all sed's we know have understand at least 4000.
364*a466cc55SCy Schubert    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
365*a466cc55SCy Schubert      || continue
366*a466cc55SCy Schubert    am_dirpart=`AS_DIRNAME(["$am_mf"])`
367*a466cc55SCy Schubert    am_filepart=`AS_BASENAME(["$am_mf"])`
368*a466cc55SCy Schubert    AM_RUN_LOG([cd "$am_dirpart" \
369*a466cc55SCy Schubert      && sed -e '/# am--include-marker/d' "$am_filepart" \
370*a466cc55SCy Schubert        | $MAKE -f - am--depfiles]) || am_rc=$?
371*a466cc55SCy Schubert  done
372*a466cc55SCy Schubert  if test $am_rc -ne 0; then
373*a466cc55SCy Schubert    AC_MSG_FAILURE([Something went wrong bootstrapping makefile fragments
374*a466cc55SCy Schubert    for automatic dependency tracking.  If GNU make was not used, consider
375*a466cc55SCy Schubert    re-running the configure script with MAKE="gmake" (or whatever is
376*a466cc55SCy Schubert    necessary).  You can also try re-running configure with the
377*a466cc55SCy Schubert    '--disable-dependency-tracking' option to at least be able to build
378*a466cc55SCy Schubert    the package (albeit without support for automatic dependency tracking).])
3792b15cb3dSCy Schubert  fi
380*a466cc55SCy Schubert  AS_UNSET([am_dirpart])
381*a466cc55SCy Schubert  AS_UNSET([am_filepart])
382*a466cc55SCy Schubert  AS_UNSET([am_mf])
383*a466cc55SCy Schubert  AS_UNSET([am_rc])
384*a466cc55SCy Schubert  rm -f conftest-deps.mk
3852b15cb3dSCy Schubert}
3862b15cb3dSCy Schubert])# _AM_OUTPUT_DEPENDENCY_COMMANDS
3872b15cb3dSCy Schubert
3882b15cb3dSCy Schubert
3892b15cb3dSCy Schubert# AM_OUTPUT_DEPENDENCY_COMMANDS
3902b15cb3dSCy Schubert# -----------------------------
3912b15cb3dSCy Schubert# This macro should only be invoked once -- use via AC_REQUIRE.
3922b15cb3dSCy Schubert#
393*a466cc55SCy Schubert# This code is only required when automatic dependency tracking is enabled.
394*a466cc55SCy Schubert# This creates each '.Po' and '.Plo' makefile fragment that we'll need in
395*a466cc55SCy Schubert# order to bootstrap the dependency handling code.
3962b15cb3dSCy SchubertAC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
3972b15cb3dSCy Schubert[AC_CONFIG_COMMANDS([depfiles],
3982b15cb3dSCy Schubert     [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
399*a466cc55SCy Schubert     [AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"])])
4002b15cb3dSCy Schubert
4012b15cb3dSCy Schubert# Do all the work for Automake.                             -*- Autoconf -*-
4022b15cb3dSCy Schubert
403*a466cc55SCy Schubert# Copyright (C) 1996-2021 Free Software Foundation, Inc.
4042b15cb3dSCy Schubert#
4052b15cb3dSCy Schubert# This file is free software; the Free Software Foundation
4062b15cb3dSCy Schubert# gives unlimited permission to copy and/or distribute it,
4072b15cb3dSCy Schubert# with or without modifications, as long as this notice is preserved.
4082b15cb3dSCy Schubert
4092b15cb3dSCy Schubert# This macro actually does too much.  Some checks are only needed if
4102b15cb3dSCy Schubert# your package does certain things.  But this isn't really a big deal.
4112b15cb3dSCy Schubert
412276da39aSCy Schubertdnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
413276da39aSCy Schubertm4_define([AC_PROG_CC],
414276da39aSCy Schubertm4_defn([AC_PROG_CC])
415276da39aSCy Schubert[_AM_PROG_CC_C_O
416276da39aSCy Schubert])
417276da39aSCy Schubert
4182b15cb3dSCy Schubert# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
4192b15cb3dSCy Schubert# AM_INIT_AUTOMAKE([OPTIONS])
4202b15cb3dSCy Schubert# -----------------------------------------------
4212b15cb3dSCy Schubert# The call with PACKAGE and VERSION arguments is the old style
4222b15cb3dSCy Schubert# call (pre autoconf-2.50), which is being phased out.  PACKAGE
4232b15cb3dSCy Schubert# and VERSION should now be passed to AC_INIT and removed from
4242b15cb3dSCy Schubert# the call to AM_INIT_AUTOMAKE.
4252b15cb3dSCy Schubert# We support both call styles for the transition.  After
4262b15cb3dSCy Schubert# the next Automake release, Autoconf can make the AC_INIT
4272b15cb3dSCy Schubert# arguments mandatory, and then we can depend on a new Autoconf
4282b15cb3dSCy Schubert# release and drop the old call support.
4292b15cb3dSCy SchubertAC_DEFUN([AM_INIT_AUTOMAKE],
430276da39aSCy Schubert[AC_PREREQ([2.65])dnl
431*a466cc55SCy Schubertm4_ifdef([_$0_ALREADY_INIT],
432*a466cc55SCy Schubert  [m4_fatal([$0 expanded multiple times
433*a466cc55SCy Schubert]m4_defn([_$0_ALREADY_INIT]))],
434*a466cc55SCy Schubert  [m4_define([_$0_ALREADY_INIT], m4_expansion_stack)])dnl
4352b15cb3dSCy Schubertdnl Autoconf wants to disallow AM_ names.  We explicitly allow
4362b15cb3dSCy Schubertdnl the ones we care about.
4372b15cb3dSCy Schubertm4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
4382b15cb3dSCy SchubertAC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
4392b15cb3dSCy SchubertAC_REQUIRE([AC_PROG_INSTALL])dnl
4402b15cb3dSCy Schubertif test "`cd $srcdir && pwd`" != "`pwd`"; then
4412b15cb3dSCy Schubert  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4422b15cb3dSCy Schubert  # is not polluted with repeated "-I."
4432b15cb3dSCy Schubert  AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
4442b15cb3dSCy Schubert  # test to see if srcdir already configured
4452b15cb3dSCy Schubert  if test -f $srcdir/config.status; then
4462b15cb3dSCy Schubert    AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
4472b15cb3dSCy Schubert  fi
4482b15cb3dSCy Schubertfi
4492b15cb3dSCy Schubert
4502b15cb3dSCy Schubert# test whether we have cygpath
4512b15cb3dSCy Schubertif test -z "$CYGPATH_W"; then
4522b15cb3dSCy Schubert  if (cygpath --version) >/dev/null 2>/dev/null; then
4532b15cb3dSCy Schubert    CYGPATH_W='cygpath -w'
4542b15cb3dSCy Schubert  else
4552b15cb3dSCy Schubert    CYGPATH_W=echo
4562b15cb3dSCy Schubert  fi
4572b15cb3dSCy Schubertfi
4582b15cb3dSCy SchubertAC_SUBST([CYGPATH_W])
4592b15cb3dSCy Schubert
4602b15cb3dSCy Schubert# Define the identity of the package.
4612b15cb3dSCy Schubertdnl Distinguish between old-style and new-style calls.
4622b15cb3dSCy Schubertm4_ifval([$2],
463276da39aSCy Schubert[AC_DIAGNOSE([obsolete],
464276da39aSCy Schubert             [$0: two- and three-arguments forms are deprecated.])
465276da39aSCy Schubertm4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
4662b15cb3dSCy Schubert AC_SUBST([PACKAGE], [$1])dnl
4672b15cb3dSCy Schubert AC_SUBST([VERSION], [$2])],
4682b15cb3dSCy Schubert[_AM_SET_OPTIONS([$1])dnl
4692b15cb3dSCy Schubertdnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
470276da39aSCy Schubertm4_if(
471*a466cc55SCy Schubert  m4_ifset([AC_PACKAGE_NAME], [ok]):m4_ifset([AC_PACKAGE_VERSION], [ok]),
472276da39aSCy Schubert  [ok:ok],,
4732b15cb3dSCy Schubert  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
4742b15cb3dSCy Schubert AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
4752b15cb3dSCy Schubert AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
4762b15cb3dSCy Schubert
4772b15cb3dSCy Schubert_AM_IF_OPTION([no-define],,
478276da39aSCy Schubert[AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
479276da39aSCy Schubert AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
4802b15cb3dSCy Schubert
4812b15cb3dSCy Schubert# Some tools Automake needs.
4822b15cb3dSCy SchubertAC_REQUIRE([AM_SANITY_CHECK])dnl
4832b15cb3dSCy SchubertAC_REQUIRE([AC_ARG_PROGRAM])dnl
484276da39aSCy SchubertAM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
485276da39aSCy SchubertAM_MISSING_PROG([AUTOCONF], [autoconf])
486276da39aSCy SchubertAM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
487276da39aSCy SchubertAM_MISSING_PROG([AUTOHEADER], [autoheader])
488276da39aSCy SchubertAM_MISSING_PROG([MAKEINFO], [makeinfo])
4892b15cb3dSCy SchubertAC_REQUIRE([AM_PROG_INSTALL_SH])dnl
4902b15cb3dSCy SchubertAC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
491276da39aSCy SchubertAC_REQUIRE([AC_PROG_MKDIR_P])dnl
492276da39aSCy Schubert# For better backward compatibility.  To be removed once Automake 1.9.x
493276da39aSCy Schubert# dies out for good.  For more background, see:
494*a466cc55SCy Schubert# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
495*a466cc55SCy Schubert# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
496276da39aSCy SchubertAC_SUBST([mkdir_p], ['$(MKDIR_P)'])
497276da39aSCy Schubert# We need awk for the "check" target (and possibly the TAP driver).  The
498276da39aSCy Schubert# system "awk" is bad on some platforms.
4992b15cb3dSCy SchubertAC_REQUIRE([AC_PROG_AWK])dnl
5002b15cb3dSCy SchubertAC_REQUIRE([AC_PROG_MAKE_SET])dnl
5012b15cb3dSCy SchubertAC_REQUIRE([AM_SET_LEADING_DOT])dnl
5022b15cb3dSCy Schubert_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
5032b15cb3dSCy Schubert	      [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
5042b15cb3dSCy Schubert			     [_AM_PROG_TAR([v7])])])
5052b15cb3dSCy Schubert_AM_IF_OPTION([no-dependencies],,
5062b15cb3dSCy Schubert[AC_PROVIDE_IFELSE([AC_PROG_CC],
507276da39aSCy Schubert		  [_AM_DEPENDENCIES([CC])],
508276da39aSCy Schubert		  [m4_define([AC_PROG_CC],
509276da39aSCy Schubert			     m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
5102b15cb3dSCy SchubertAC_PROVIDE_IFELSE([AC_PROG_CXX],
511276da39aSCy Schubert		  [_AM_DEPENDENCIES([CXX])],
512276da39aSCy Schubert		  [m4_define([AC_PROG_CXX],
513276da39aSCy Schubert			     m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
5142b15cb3dSCy SchubertAC_PROVIDE_IFELSE([AC_PROG_OBJC],
515276da39aSCy Schubert		  [_AM_DEPENDENCIES([OBJC])],
516276da39aSCy Schubert		  [m4_define([AC_PROG_OBJC],
517276da39aSCy Schubert			     m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
518276da39aSCy SchubertAC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
519276da39aSCy Schubert		  [_AM_DEPENDENCIES([OBJCXX])],
520276da39aSCy Schubert		  [m4_define([AC_PROG_OBJCXX],
521276da39aSCy Schubert			     m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
5222b15cb3dSCy Schubert])
523*a466cc55SCy Schubert# Variables for tags utilities; see am/tags.am
524*a466cc55SCy Schubertif test -z "$CTAGS"; then
525*a466cc55SCy Schubert  CTAGS=ctags
526*a466cc55SCy Schubertfi
527*a466cc55SCy SchubertAC_SUBST([CTAGS])
528*a466cc55SCy Schubertif test -z "$ETAGS"; then
529*a466cc55SCy Schubert  ETAGS=etags
530*a466cc55SCy Schubertfi
531*a466cc55SCy SchubertAC_SUBST([ETAGS])
532*a466cc55SCy Schubertif test -z "$CSCOPE"; then
533*a466cc55SCy Schubert  CSCOPE=cscope
534*a466cc55SCy Schubertfi
535*a466cc55SCy SchubertAC_SUBST([CSCOPE])
536*a466cc55SCy Schubert
537276da39aSCy SchubertAC_REQUIRE([AM_SILENT_RULES])dnl
538276da39aSCy Schubertdnl The testsuite driver may need to know about EXEEXT, so add the
539276da39aSCy Schubertdnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This
540276da39aSCy Schubertdnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
5412b15cb3dSCy SchubertAC_CONFIG_COMMANDS_PRE(dnl
5422b15cb3dSCy Schubert[m4_provide_if([_AM_COMPILER_EXEEXT],
5432b15cb3dSCy Schubert  [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
544276da39aSCy Schubert
545276da39aSCy Schubert# POSIX will say in a future version that running "rm -f" with no argument
546276da39aSCy Schubert# is OK; and we want to be able to make that assumption in our Makefile
547276da39aSCy Schubert# recipes.  So use an aggressive probe to check that the usage we want is
548276da39aSCy Schubert# actually supported "in the wild" to an acceptable degree.
549276da39aSCy Schubert# See automake bug#10828.
550276da39aSCy Schubert# To make any issue more visible, cause the running configure to be aborted
551276da39aSCy Schubert# by default if the 'rm' program in use doesn't match our expectations; the
552276da39aSCy Schubert# user can still override this though.
553276da39aSCy Schubertif rm -f && rm -fr && rm -rf; then : OK; else
554276da39aSCy Schubert  cat >&2 <<'END'
555276da39aSCy SchubertOops!
556276da39aSCy Schubert
557276da39aSCy SchubertYour 'rm' program seems unable to run without file operands specified
558276da39aSCy Schuberton the command line, even when the '-f' option is present.  This is contrary
559276da39aSCy Schubertto the behaviour of most rm programs out there, and not conforming with
560276da39aSCy Schubertthe upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
561276da39aSCy Schubert
562276da39aSCy SchubertPlease tell bug-automake@gnu.org about your system, including the value
563276da39aSCy Schubertof your $PATH and any error possibly output before this message.  This
564276da39aSCy Schubertcan help us improve future automake versions.
565276da39aSCy Schubert
566276da39aSCy SchubertEND
567276da39aSCy Schubert  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
568276da39aSCy Schubert    echo 'Configuration will proceed anyway, since you have set the' >&2
569276da39aSCy Schubert    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
570276da39aSCy Schubert    echo >&2
571276da39aSCy Schubert  else
572276da39aSCy Schubert    cat >&2 <<'END'
573276da39aSCy SchubertAborting the configuration process, to ensure you take notice of the issue.
574276da39aSCy Schubert
575276da39aSCy SchubertYou can download and install GNU coreutils to get an 'rm' implementation
576*a466cc55SCy Schubertthat behaves properly: <https://www.gnu.org/software/coreutils/>.
577276da39aSCy Schubert
578276da39aSCy SchubertIf you want to complete the configuration process using your problematic
579276da39aSCy Schubert'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
580276da39aSCy Schubertto "yes", and re-run configure.
581276da39aSCy Schubert
582276da39aSCy SchubertEND
583276da39aSCy Schubert    AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
584276da39aSCy Schubert  fi
585276da39aSCy Schubertfi
586276da39aSCy Schubertdnl The trailing newline in this macro's definition is deliberate, for
587276da39aSCy Schubertdnl backward compatibility and to allow trailing 'dnl'-style comments
588276da39aSCy Schubertdnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841.
5892b15cb3dSCy Schubert])
5902b15cb3dSCy Schubert
591276da39aSCy Schubertdnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
5922b15cb3dSCy Schubertdnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
5932b15cb3dSCy Schubertdnl mangled by Autoconf and run in a shell conditional statement.
5942b15cb3dSCy Schubertm4_define([_AC_COMPILER_EXEEXT],
5952b15cb3dSCy Schubertm4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
5962b15cb3dSCy Schubert
5972b15cb3dSCy Schubert# When config.status generates a header, we must update the stamp-h file.
5982b15cb3dSCy Schubert# This file resides in the same directory as the config header
5992b15cb3dSCy Schubert# that is generated.  The stamp files are numbered to have different names.
6002b15cb3dSCy Schubert
6012b15cb3dSCy Schubert# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
6022b15cb3dSCy Schubert# loop where config.status creates the headers, so we can generate
6032b15cb3dSCy Schubert# our stamp files there.
6042b15cb3dSCy SchubertAC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
6052b15cb3dSCy Schubert[# Compute $1's index in $config_headers.
6062b15cb3dSCy Schubert_am_arg=$1
6072b15cb3dSCy Schubert_am_stamp_count=1
6082b15cb3dSCy Schubertfor _am_header in $config_headers :; do
6092b15cb3dSCy Schubert  case $_am_header in
6102b15cb3dSCy Schubert    $_am_arg | $_am_arg:* )
6112b15cb3dSCy Schubert      break ;;
6122b15cb3dSCy Schubert    * )
6132b15cb3dSCy Schubert      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
6142b15cb3dSCy Schubert  esac
6152b15cb3dSCy Schubertdone
6162b15cb3dSCy Schubertecho "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
6172b15cb3dSCy Schubert
618*a466cc55SCy Schubert# Copyright (C) 2001-2021 Free Software Foundation, Inc.
6192b15cb3dSCy Schubert#
6202b15cb3dSCy Schubert# This file is free software; the Free Software Foundation
6212b15cb3dSCy Schubert# gives unlimited permission to copy and/or distribute it,
6222b15cb3dSCy Schubert# with or without modifications, as long as this notice is preserved.
6232b15cb3dSCy Schubert
6242b15cb3dSCy Schubert# AM_PROG_INSTALL_SH
6252b15cb3dSCy Schubert# ------------------
6262b15cb3dSCy Schubert# Define $install_sh.
6272b15cb3dSCy SchubertAC_DEFUN([AM_PROG_INSTALL_SH],
6282b15cb3dSCy Schubert[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
629276da39aSCy Schubertif test x"${install_sh+set}" != xset; then
6302b15cb3dSCy Schubert  case $am_aux_dir in
6312b15cb3dSCy Schubert  *\ * | *\	*)
6322b15cb3dSCy Schubert    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
6332b15cb3dSCy Schubert  *)
6342b15cb3dSCy Schubert    install_sh="\${SHELL} $am_aux_dir/install-sh"
6352b15cb3dSCy Schubert  esac
6362b15cb3dSCy Schubertfi
637276da39aSCy SchubertAC_SUBST([install_sh])])
6382b15cb3dSCy Schubert
639*a466cc55SCy Schubert# Copyright (C) 2003-2021 Free Software Foundation, Inc.
6402b15cb3dSCy Schubert#
6412b15cb3dSCy Schubert# This file is free software; the Free Software Foundation
6422b15cb3dSCy Schubert# gives unlimited permission to copy and/or distribute it,
6432b15cb3dSCy Schubert# with or without modifications, as long as this notice is preserved.
6442b15cb3dSCy Schubert
6452b15cb3dSCy Schubert# Check whether the underlying file-system supports filenames
6462b15cb3dSCy Schubert# with a leading dot.  For instance MS-DOS doesn't.
6472b15cb3dSCy SchubertAC_DEFUN([AM_SET_LEADING_DOT],
6482b15cb3dSCy Schubert[rm -rf .tst 2>/dev/null
6492b15cb3dSCy Schubertmkdir .tst 2>/dev/null
6502b15cb3dSCy Schubertif test -d .tst; then
6512b15cb3dSCy Schubert  am__leading_dot=.
6522b15cb3dSCy Schubertelse
6532b15cb3dSCy Schubert  am__leading_dot=_
6542b15cb3dSCy Schubertfi
6552b15cb3dSCy Schubertrmdir .tst 2>/dev/null
6562b15cb3dSCy SchubertAC_SUBST([am__leading_dot])])
6572b15cb3dSCy Schubert
6582b15cb3dSCy Schubert# Check to see how 'make' treats includes.	            -*- Autoconf -*-
6592b15cb3dSCy Schubert
660*a466cc55SCy Schubert# Copyright (C) 2001-2021 Free Software Foundation, Inc.
6612b15cb3dSCy Schubert#
6622b15cb3dSCy Schubert# This file is free software; the Free Software Foundation
6632b15cb3dSCy Schubert# gives unlimited permission to copy and/or distribute it,
6642b15cb3dSCy Schubert# with or without modifications, as long as this notice is preserved.
6652b15cb3dSCy Schubert
6662b15cb3dSCy Schubert# AM_MAKE_INCLUDE()
6672b15cb3dSCy Schubert# -----------------
668*a466cc55SCy Schubert# Check whether make has an 'include' directive that can support all
669*a466cc55SCy Schubert# the idioms we need for our automatic dependency tracking code.
6702b15cb3dSCy SchubertAC_DEFUN([AM_MAKE_INCLUDE],
671*a466cc55SCy Schubert[AC_MSG_CHECKING([whether ${MAKE-make} supports the include directive])
672*a466cc55SCy Schubertcat > confinc.mk << 'END'
6732b15cb3dSCy Schubertam__doit:
674*a466cc55SCy Schubert	@echo this is the am__doit target >confinc.out
6752b15cb3dSCy Schubert.PHONY: am__doit
6762b15cb3dSCy SchubertEND
6772b15cb3dSCy Schubertam__include="#"
6782b15cb3dSCy Schubertam__quote=
679*a466cc55SCy Schubert# BSD make does it like this.
680*a466cc55SCy Schubertecho '.include "confinc.mk" # ignored' > confmf.BSD
681*a466cc55SCy Schubert# Other make implementations (GNU, Solaris 10, AIX) do it like this.
682*a466cc55SCy Schubertecho 'include confinc.mk # ignored' > confmf.GNU
683*a466cc55SCy Schubert_am_result=no
684*a466cc55SCy Schubertfor s in GNU BSD; do
685*a466cc55SCy Schubert  AM_RUN_LOG([${MAKE-make} -f confmf.$s && cat confinc.out])
686*a466cc55SCy Schubert  AS_CASE([$?:`cat confinc.out 2>/dev/null`],
687*a466cc55SCy Schubert      ['0:this is the am__doit target'],
688*a466cc55SCy Schubert      [AS_CASE([$s],
689*a466cc55SCy Schubert          [BSD], [am__include='.include' am__quote='"'],
690*a466cc55SCy Schubert          [am__include='include' am__quote=''])])
691*a466cc55SCy Schubert  if test "$am__include" != "#"; then
692*a466cc55SCy Schubert    _am_result="yes ($s style)"
693*a466cc55SCy Schubert    break
6942b15cb3dSCy Schubert  fi
695*a466cc55SCy Schubertdone
696*a466cc55SCy Schubertrm -f confinc.* confmf.*
697*a466cc55SCy SchubertAC_MSG_RESULT([${_am_result}])
698*a466cc55SCy SchubertAC_SUBST([am__include])])
699*a466cc55SCy SchubertAC_SUBST([am__quote])])
7002b15cb3dSCy Schubert
7012b15cb3dSCy Schubert# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
7022b15cb3dSCy Schubert
703*a466cc55SCy Schubert# Copyright (C) 1997-2021 Free Software Foundation, Inc.
7042b15cb3dSCy Schubert#
7052b15cb3dSCy Schubert# This file is free software; the Free Software Foundation
7062b15cb3dSCy Schubert# gives unlimited permission to copy and/or distribute it,
7072b15cb3dSCy Schubert# with or without modifications, as long as this notice is preserved.
7082b15cb3dSCy Schubert
7092b15cb3dSCy Schubert# AM_MISSING_PROG(NAME, PROGRAM)
7102b15cb3dSCy Schubert# ------------------------------
7112b15cb3dSCy SchubertAC_DEFUN([AM_MISSING_PROG],
7122b15cb3dSCy Schubert[AC_REQUIRE([AM_MISSING_HAS_RUN])
7132b15cb3dSCy Schubert$1=${$1-"${am_missing_run}$2"}
7142b15cb3dSCy SchubertAC_SUBST($1)])
7152b15cb3dSCy Schubert
7162b15cb3dSCy Schubert# AM_MISSING_HAS_RUN
7172b15cb3dSCy Schubert# ------------------
718276da39aSCy Schubert# Define MISSING if not defined so far and test if it is modern enough.
719276da39aSCy Schubert# If it is, set am_missing_run to use it, otherwise, to nothing.
7202b15cb3dSCy SchubertAC_DEFUN([AM_MISSING_HAS_RUN],
7212b15cb3dSCy Schubert[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
7222b15cb3dSCy SchubertAC_REQUIRE_AUX_FILE([missing])dnl
7232b15cb3dSCy Schubertif test x"${MISSING+set}" != xset; then
724*a466cc55SCy Schubert  MISSING="\${SHELL} '$am_aux_dir/missing'"
7252b15cb3dSCy Schubertfi
7262b15cb3dSCy Schubert# Use eval to expand $SHELL
727276da39aSCy Schubertif eval "$MISSING --is-lightweight"; then
728276da39aSCy Schubert  am_missing_run="$MISSING "
7292b15cb3dSCy Schubertelse
7302b15cb3dSCy Schubert  am_missing_run=
731276da39aSCy Schubert  AC_MSG_WARN(['missing' script is too old or missing])
7322b15cb3dSCy Schubertfi
7332b15cb3dSCy Schubert])
7342b15cb3dSCy Schubert
7352b15cb3dSCy Schubert# Helper functions for option handling.                     -*- Autoconf -*-
7362b15cb3dSCy Schubert
737*a466cc55SCy Schubert# Copyright (C) 2001-2021 Free Software Foundation, Inc.
7382b15cb3dSCy Schubert#
7392b15cb3dSCy Schubert# This file is free software; the Free Software Foundation
7402b15cb3dSCy Schubert# gives unlimited permission to copy and/or distribute it,
7412b15cb3dSCy Schubert# with or without modifications, as long as this notice is preserved.
7422b15cb3dSCy Schubert
7432b15cb3dSCy Schubert# _AM_MANGLE_OPTION(NAME)
7442b15cb3dSCy Schubert# -----------------------
7452b15cb3dSCy SchubertAC_DEFUN([_AM_MANGLE_OPTION],
7462b15cb3dSCy Schubert[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
7472b15cb3dSCy Schubert
7482b15cb3dSCy Schubert# _AM_SET_OPTION(NAME)
749276da39aSCy Schubert# --------------------
7502b15cb3dSCy Schubert# Set option NAME.  Presently that only means defining a flag for this option.
7512b15cb3dSCy SchubertAC_DEFUN([_AM_SET_OPTION],
752276da39aSCy Schubert[m4_define(_AM_MANGLE_OPTION([$1]), [1])])
7532b15cb3dSCy Schubert
7542b15cb3dSCy Schubert# _AM_SET_OPTIONS(OPTIONS)
755276da39aSCy Schubert# ------------------------
7562b15cb3dSCy Schubert# OPTIONS is a space-separated list of Automake options.
7572b15cb3dSCy SchubertAC_DEFUN([_AM_SET_OPTIONS],
7582b15cb3dSCy Schubert[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
7592b15cb3dSCy Schubert
7602b15cb3dSCy Schubert# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
7612b15cb3dSCy Schubert# -------------------------------------------
7622b15cb3dSCy Schubert# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
7632b15cb3dSCy SchubertAC_DEFUN([_AM_IF_OPTION],
7642b15cb3dSCy Schubert[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
7652b15cb3dSCy Schubert
766*a466cc55SCy Schubert# Copyright (C) 1999-2021 Free Software Foundation, Inc.
7672b15cb3dSCy Schubert#
7682b15cb3dSCy Schubert# This file is free software; the Free Software Foundation
7692b15cb3dSCy Schubert# gives unlimited permission to copy and/or distribute it,
7702b15cb3dSCy Schubert# with or without modifications, as long as this notice is preserved.
7712b15cb3dSCy Schubert
772276da39aSCy Schubert# _AM_PROG_CC_C_O
773276da39aSCy Schubert# ---------------
774276da39aSCy Schubert# Like AC_PROG_CC_C_O, but changed for automake.  We rewrite AC_PROG_CC
775276da39aSCy Schubert# to automatically call this.
776276da39aSCy SchubertAC_DEFUN([_AM_PROG_CC_C_O],
777276da39aSCy Schubert[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
778276da39aSCy SchubertAC_REQUIRE_AUX_FILE([compile])dnl
779276da39aSCy SchubertAC_LANG_PUSH([C])dnl
780276da39aSCy SchubertAC_CACHE_CHECK(
781276da39aSCy Schubert  [whether $CC understands -c and -o together],
782276da39aSCy Schubert  [am_cv_prog_cc_c_o],
783276da39aSCy Schubert  [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
784276da39aSCy Schubert  # Make sure it works both with $CC and with simple cc.
785276da39aSCy Schubert  # Following AC_PROG_CC_C_O, we do the test twice because some
786276da39aSCy Schubert  # compilers refuse to overwrite an existing .o file with -o,
787276da39aSCy Schubert  # though they will create one.
788276da39aSCy Schubert  am_cv_prog_cc_c_o=yes
789276da39aSCy Schubert  for am_i in 1 2; do
790276da39aSCy Schubert    if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
791276da39aSCy Schubert         && test -f conftest2.$ac_objext; then
792276da39aSCy Schubert      : OK
793276da39aSCy Schubert    else
794276da39aSCy Schubert      am_cv_prog_cc_c_o=no
795276da39aSCy Schubert      break
796276da39aSCy Schubert    fi
797276da39aSCy Schubert  done
798276da39aSCy Schubert  rm -f core conftest*
799276da39aSCy Schubert  unset am_i])
800276da39aSCy Schubertif test "$am_cv_prog_cc_c_o" != yes; then
801276da39aSCy Schubert   # Losing compiler, so override with the script.
802276da39aSCy Schubert   # FIXME: It is wrong to rewrite CC.
803276da39aSCy Schubert   # But if we don't then we get into trouble of one sort or another.
804276da39aSCy Schubert   # A longer-term fix would be to have automake use am__CC in this case,
805276da39aSCy Schubert   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
806276da39aSCy Schubert   CC="$am_aux_dir/compile $CC"
807276da39aSCy Schubertfi
808276da39aSCy SchubertAC_LANG_POP([C])])
809276da39aSCy Schubert
810276da39aSCy Schubert# For backward compatibility.
811276da39aSCy SchubertAC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
812276da39aSCy Schubert
813*a466cc55SCy Schubert# Copyright (C) 2001-2021 Free Software Foundation, Inc.
814276da39aSCy Schubert#
815276da39aSCy Schubert# This file is free software; the Free Software Foundation
816276da39aSCy Schubert# gives unlimited permission to copy and/or distribute it,
817276da39aSCy Schubert# with or without modifications, as long as this notice is preserved.
818276da39aSCy Schubert
819276da39aSCy Schubert# AM_RUN_LOG(COMMAND)
820276da39aSCy Schubert# -------------------
821276da39aSCy Schubert# Run COMMAND, save the exit status in ac_status, and log it.
822276da39aSCy Schubert# (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
823276da39aSCy SchubertAC_DEFUN([AM_RUN_LOG],
824276da39aSCy Schubert[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
825276da39aSCy Schubert   ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
826276da39aSCy Schubert   ac_status=$?
827276da39aSCy Schubert   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
828276da39aSCy Schubert   (exit $ac_status); }])
829276da39aSCy Schubert
830276da39aSCy Schubert# Check to make sure that the build environment is sane.    -*- Autoconf -*-
831276da39aSCy Schubert
832*a466cc55SCy Schubert# Copyright (C) 1996-2021 Free Software Foundation, Inc.
833276da39aSCy Schubert#
834276da39aSCy Schubert# This file is free software; the Free Software Foundation
835276da39aSCy Schubert# gives unlimited permission to copy and/or distribute it,
836276da39aSCy Schubert# with or without modifications, as long as this notice is preserved.
8372b15cb3dSCy Schubert
8382b15cb3dSCy Schubert# AM_SANITY_CHECK
8392b15cb3dSCy Schubert# ---------------
8402b15cb3dSCy SchubertAC_DEFUN([AM_SANITY_CHECK],
8412b15cb3dSCy Schubert[AC_MSG_CHECKING([whether build environment is sane])
8422b15cb3dSCy Schubert# Reject unsafe characters in $srcdir or the absolute working directory
8432b15cb3dSCy Schubert# name.  Accept space and tab only in the latter.
8442b15cb3dSCy Schubertam_lf='
8452b15cb3dSCy Schubert'
8462b15cb3dSCy Schubertcase `pwd` in
8472b15cb3dSCy Schubert  *[[\\\"\#\$\&\'\`$am_lf]]*)
8482b15cb3dSCy Schubert    AC_MSG_ERROR([unsafe absolute working directory name]);;
8492b15cb3dSCy Schubertesac
8502b15cb3dSCy Schubertcase $srcdir in
8512b15cb3dSCy Schubert  *[[\\\"\#\$\&\'\`$am_lf\ \	]]*)
852276da39aSCy Schubert    AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
8532b15cb3dSCy Schubertesac
8542b15cb3dSCy Schubert
855276da39aSCy Schubert# Do 'set' in a subshell so we don't clobber the current shell's
8562b15cb3dSCy Schubert# arguments.  Must try -L first in case configure is actually a
8572b15cb3dSCy Schubert# symlink; some systems play weird games with the mod time of symlinks
8582b15cb3dSCy Schubert# (eg FreeBSD returns the mod time of the symlink's containing
8592b15cb3dSCy Schubert# directory).
8602b15cb3dSCy Schubertif (
861276da39aSCy Schubert   am_has_slept=no
862276da39aSCy Schubert   for am_try in 1 2; do
863276da39aSCy Schubert     echo "timestamp, slept: $am_has_slept" > conftest.file
8642b15cb3dSCy Schubert     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
8652b15cb3dSCy Schubert     if test "$[*]" = "X"; then
8662b15cb3dSCy Schubert	# -L didn't work.
8672b15cb3dSCy Schubert	set X `ls -t "$srcdir/configure" conftest.file`
8682b15cb3dSCy Schubert     fi
8692b15cb3dSCy Schubert     if test "$[*]" != "X $srcdir/configure conftest.file" \
8702b15cb3dSCy Schubert	&& test "$[*]" != "X conftest.file $srcdir/configure"; then
8712b15cb3dSCy Schubert
8722b15cb3dSCy Schubert	# If neither matched, then we have a broken ls.  This can happen
8732b15cb3dSCy Schubert	# if, for instance, CONFIG_SHELL is bash and it inherits a
8742b15cb3dSCy Schubert	# broken ls alias from the environment.  This has actually
8752b15cb3dSCy Schubert	# happened.  Such a system could not be considered "sane".
8762b15cb3dSCy Schubert	AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
8772b15cb3dSCy Schubert  alias in your environment])
8782b15cb3dSCy Schubert     fi
879276da39aSCy Schubert     if test "$[2]" = conftest.file || test $am_try -eq 2; then
880276da39aSCy Schubert       break
881276da39aSCy Schubert     fi
882276da39aSCy Schubert     # Just in case.
883276da39aSCy Schubert     sleep 1
884276da39aSCy Schubert     am_has_slept=yes
885276da39aSCy Schubert   done
8862b15cb3dSCy Schubert   test "$[2]" = conftest.file
8872b15cb3dSCy Schubert   )
8882b15cb3dSCy Schubertthen
8892b15cb3dSCy Schubert   # Ok.
8902b15cb3dSCy Schubert   :
8912b15cb3dSCy Schubertelse
8922b15cb3dSCy Schubert   AC_MSG_ERROR([newly created file is older than distributed files!
8932b15cb3dSCy SchubertCheck your system clock])
8942b15cb3dSCy Schubertfi
895276da39aSCy SchubertAC_MSG_RESULT([yes])
896276da39aSCy Schubert# If we didn't sleep, we still need to ensure time stamps of config.status and
897276da39aSCy Schubert# generated files are strictly newer.
898276da39aSCy Schubertam_sleep_pid=
899276da39aSCy Schubertif grep 'slept: no' conftest.file >/dev/null 2>&1; then
900276da39aSCy Schubert  ( sleep 1 ) &
901276da39aSCy Schubert  am_sleep_pid=$!
902276da39aSCy Schubertfi
903276da39aSCy SchubertAC_CONFIG_COMMANDS_PRE(
904276da39aSCy Schubert  [AC_MSG_CHECKING([that generated files are newer than configure])
905276da39aSCy Schubert   if test -n "$am_sleep_pid"; then
906276da39aSCy Schubert     # Hide warnings about reused PIDs.
907276da39aSCy Schubert     wait $am_sleep_pid 2>/dev/null
908276da39aSCy Schubert   fi
909276da39aSCy Schubert   AC_MSG_RESULT([done])])
910276da39aSCy Schubertrm -f conftest.file
911276da39aSCy Schubert])
9122b15cb3dSCy Schubert
913*a466cc55SCy Schubert# Copyright (C) 2009-2021 Free Software Foundation, Inc.
9142b15cb3dSCy Schubert#
9152b15cb3dSCy Schubert# This file is free software; the Free Software Foundation
9162b15cb3dSCy Schubert# gives unlimited permission to copy and/or distribute it,
9172b15cb3dSCy Schubert# with or without modifications, as long as this notice is preserved.
9182b15cb3dSCy Schubert
9192b15cb3dSCy Schubert# AM_SILENT_RULES([DEFAULT])
9202b15cb3dSCy Schubert# --------------------------
9212b15cb3dSCy Schubert# Enable less verbose build rules; with the default set to DEFAULT
922276da39aSCy Schubert# ("yes" being less verbose, "no" or empty being verbose).
9232b15cb3dSCy SchubertAC_DEFUN([AM_SILENT_RULES],
924276da39aSCy Schubert[AC_ARG_ENABLE([silent-rules], [dnl
925276da39aSCy SchubertAS_HELP_STRING(
926276da39aSCy Schubert  [--enable-silent-rules],
927276da39aSCy Schubert  [less verbose build output (undo: "make V=1")])
928276da39aSCy SchubertAS_HELP_STRING(
929276da39aSCy Schubert  [--disable-silent-rules],
930276da39aSCy Schubert  [verbose build output (undo: "make V=0")])dnl
931276da39aSCy Schubert])
932276da39aSCy Schubertcase $enable_silent_rules in @%:@ (((
9332b15cb3dSCy Schubert  yes) AM_DEFAULT_VERBOSITY=0;;
9342b15cb3dSCy Schubert   no) AM_DEFAULT_VERBOSITY=1;;
9352b15cb3dSCy Schubert    *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
9362b15cb3dSCy Schubertesac
937276da39aSCy Schubertdnl
938276da39aSCy Schubertdnl A few 'make' implementations (e.g., NonStop OS and NextStep)
939276da39aSCy Schubertdnl do not support nested variable expansions.
940276da39aSCy Schubertdnl See automake bug#9928 and bug#10237.
941276da39aSCy Schubertam_make=${MAKE-make}
942276da39aSCy SchubertAC_CACHE_CHECK([whether $am_make supports nested variables],
943276da39aSCy Schubert   [am_cv_make_support_nested_variables],
944276da39aSCy Schubert   [if AS_ECHO([['TRUE=$(BAR$(V))
945276da39aSCy SchubertBAR0=false
946276da39aSCy SchubertBAR1=true
947276da39aSCy SchubertV=1
948276da39aSCy Schubertam__doit:
949276da39aSCy Schubert	@$(TRUE)
950276da39aSCy Schubert.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
951276da39aSCy Schubert  am_cv_make_support_nested_variables=yes
952276da39aSCy Schubertelse
953276da39aSCy Schubert  am_cv_make_support_nested_variables=no
954276da39aSCy Schubertfi])
955276da39aSCy Schubertif test $am_cv_make_support_nested_variables = yes; then
956276da39aSCy Schubert  dnl Using '$V' instead of '$(V)' breaks IRIX make.
957276da39aSCy Schubert  AM_V='$(V)'
958276da39aSCy Schubert  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
959276da39aSCy Schubertelse
960276da39aSCy Schubert  AM_V=$AM_DEFAULT_VERBOSITY
961276da39aSCy Schubert  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
962276da39aSCy Schubertfi
963276da39aSCy SchubertAC_SUBST([AM_V])dnl
964276da39aSCy SchubertAM_SUBST_NOTMAKE([AM_V])dnl
965276da39aSCy SchubertAC_SUBST([AM_DEFAULT_V])dnl
966276da39aSCy SchubertAM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
9672b15cb3dSCy SchubertAC_SUBST([AM_DEFAULT_VERBOSITY])dnl
9682b15cb3dSCy SchubertAM_BACKSLASH='\'
9692b15cb3dSCy SchubertAC_SUBST([AM_BACKSLASH])dnl
9702b15cb3dSCy Schubert_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
9712b15cb3dSCy Schubert])
9722b15cb3dSCy Schubert
973*a466cc55SCy Schubert# Copyright (C) 2001-2021 Free Software Foundation, Inc.
9742b15cb3dSCy Schubert#
9752b15cb3dSCy Schubert# This file is free software; the Free Software Foundation
9762b15cb3dSCy Schubert# gives unlimited permission to copy and/or distribute it,
9772b15cb3dSCy Schubert# with or without modifications, as long as this notice is preserved.
9782b15cb3dSCy Schubert
9792b15cb3dSCy Schubert# AM_PROG_INSTALL_STRIP
9802b15cb3dSCy Schubert# ---------------------
981276da39aSCy Schubert# One issue with vendor 'install' (even GNU) is that you can't
9822b15cb3dSCy Schubert# specify the program used to strip binaries.  This is especially
9832b15cb3dSCy Schubert# annoying in cross-compiling environments, where the build's strip
9842b15cb3dSCy Schubert# is unlikely to handle the host's binaries.
9852b15cb3dSCy Schubert# Fortunately install-sh will honor a STRIPPROG variable, so we
986276da39aSCy Schubert# always use install-sh in "make install-strip", and initialize
9872b15cb3dSCy Schubert# STRIPPROG with the value of the STRIP variable (set by the user).
9882b15cb3dSCy SchubertAC_DEFUN([AM_PROG_INSTALL_STRIP],
9892b15cb3dSCy Schubert[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
990276da39aSCy Schubert# Installed binaries are usually stripped using 'strip' when the user
991276da39aSCy Schubert# run "make install-strip".  However 'strip' might not be the right
9922b15cb3dSCy Schubert# tool to use in cross-compilation environments, therefore Automake
993276da39aSCy Schubert# will honor the 'STRIP' environment variable to overrule this program.
994276da39aSCy Schubertdnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
9952b15cb3dSCy Schubertif test "$cross_compiling" != no; then
9962b15cb3dSCy Schubert  AC_CHECK_TOOL([STRIP], [strip], :)
9972b15cb3dSCy Schubertfi
9982b15cb3dSCy SchubertINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
9992b15cb3dSCy SchubertAC_SUBST([INSTALL_STRIP_PROGRAM])])
10002b15cb3dSCy Schubert
1001*a466cc55SCy Schubert# Copyright (C) 2006-2021 Free Software Foundation, Inc.
10022b15cb3dSCy Schubert#
10032b15cb3dSCy Schubert# This file is free software; the Free Software Foundation
10042b15cb3dSCy Schubert# gives unlimited permission to copy and/or distribute it,
10052b15cb3dSCy Schubert# with or without modifications, as long as this notice is preserved.
10062b15cb3dSCy Schubert
10072b15cb3dSCy Schubert# _AM_SUBST_NOTMAKE(VARIABLE)
10082b15cb3dSCy Schubert# ---------------------------
10092b15cb3dSCy Schubert# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
10102b15cb3dSCy Schubert# This macro is traced by Automake.
10112b15cb3dSCy SchubertAC_DEFUN([_AM_SUBST_NOTMAKE])
10122b15cb3dSCy Schubert
10132b15cb3dSCy Schubert# AM_SUBST_NOTMAKE(VARIABLE)
1014276da39aSCy Schubert# --------------------------
10152b15cb3dSCy Schubert# Public sister of _AM_SUBST_NOTMAKE.
10162b15cb3dSCy SchubertAC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
10172b15cb3dSCy Schubert
10182b15cb3dSCy Schubert# Check how to create a tarball.                            -*- Autoconf -*-
10192b15cb3dSCy Schubert
1020*a466cc55SCy Schubert# Copyright (C) 2004-2021 Free Software Foundation, Inc.
10212b15cb3dSCy Schubert#
10222b15cb3dSCy Schubert# This file is free software; the Free Software Foundation
10232b15cb3dSCy Schubert# gives unlimited permission to copy and/or distribute it,
10242b15cb3dSCy Schubert# with or without modifications, as long as this notice is preserved.
10252b15cb3dSCy Schubert
10262b15cb3dSCy Schubert# _AM_PROG_TAR(FORMAT)
10272b15cb3dSCy Schubert# --------------------
10282b15cb3dSCy Schubert# Check how to create a tarball in format FORMAT.
1029276da39aSCy Schubert# FORMAT should be one of 'v7', 'ustar', or 'pax'.
10302b15cb3dSCy Schubert#
10312b15cb3dSCy Schubert# Substitute a variable $(am__tar) that is a command
10322b15cb3dSCy Schubert# writing to stdout a FORMAT-tarball containing the directory
10332b15cb3dSCy Schubert# $tardir.
10342b15cb3dSCy Schubert#     tardir=directory && $(am__tar) > result.tar
10352b15cb3dSCy Schubert#
10362b15cb3dSCy Schubert# Substitute a variable $(am__untar) that extract such
10372b15cb3dSCy Schubert# a tarball read from stdin.
10382b15cb3dSCy Schubert#     $(am__untar) < result.tar
1039276da39aSCy Schubert#
10402b15cb3dSCy SchubertAC_DEFUN([_AM_PROG_TAR],
1041276da39aSCy Schubert[# Always define AMTAR for backward compatibility.  Yes, it's still used
1042276da39aSCy Schubert# in the wild :-(  We should find a proper way to deprecate it ...
1043276da39aSCy SchubertAC_SUBST([AMTAR], ['$${TAR-tar}'])
1044276da39aSCy Schubert
1045276da39aSCy Schubert# We'll loop over all known methods to create a tar archive until one works.
10462b15cb3dSCy Schubert_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
1047276da39aSCy Schubert
1048276da39aSCy Schubertm4_if([$1], [v7],
1049276da39aSCy Schubert  [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
1050276da39aSCy Schubert
1051276da39aSCy Schubert  [m4_case([$1],
1052276da39aSCy Schubert    [ustar],
1053276da39aSCy Schubert     [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
1054276da39aSCy Schubert      # There is notably a 21 bits limit for the UID and the GID.  In fact,
1055276da39aSCy Schubert      # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
1056276da39aSCy Schubert      # and bug#13588).
1057276da39aSCy Schubert      am_max_uid=2097151 # 2^21 - 1
1058276da39aSCy Schubert      am_max_gid=$am_max_uid
1059276da39aSCy Schubert      # The $UID and $GID variables are not portable, so we need to resort
1060276da39aSCy Schubert      # to the POSIX-mandated id(1) utility.  Errors in the 'id' calls
1061276da39aSCy Schubert      # below are definitely unexpected, so allow the users to see them
1062276da39aSCy Schubert      # (that is, avoid stderr redirection).
1063276da39aSCy Schubert      am_uid=`id -u || echo unknown`
1064276da39aSCy Schubert      am_gid=`id -g || echo unknown`
1065276da39aSCy Schubert      AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
1066276da39aSCy Schubert      if test $am_uid -le $am_max_uid; then
1067276da39aSCy Schubert         AC_MSG_RESULT([yes])
1068276da39aSCy Schubert      else
1069276da39aSCy Schubert         AC_MSG_RESULT([no])
1070276da39aSCy Schubert         _am_tools=none
1071276da39aSCy Schubert      fi
1072276da39aSCy Schubert      AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
1073276da39aSCy Schubert      if test $am_gid -le $am_max_gid; then
1074276da39aSCy Schubert         AC_MSG_RESULT([yes])
1075276da39aSCy Schubert      else
1076276da39aSCy Schubert        AC_MSG_RESULT([no])
1077276da39aSCy Schubert        _am_tools=none
1078276da39aSCy Schubert      fi],
1079276da39aSCy Schubert
1080276da39aSCy Schubert  [pax],
1081276da39aSCy Schubert    [],
1082276da39aSCy Schubert
1083276da39aSCy Schubert  [m4_fatal([Unknown tar format])])
1084276da39aSCy Schubert
1085276da39aSCy Schubert  AC_MSG_CHECKING([how to create a $1 tar archive])
1086276da39aSCy Schubert
1087276da39aSCy Schubert  # Go ahead even if we have the value already cached.  We do so because we
1088276da39aSCy Schubert  # need to set the values for the 'am__tar' and 'am__untar' variables.
10892b15cb3dSCy Schubert  _am_tools=${am_cv_prog_tar_$1-$_am_tools}
1090276da39aSCy Schubert
1091276da39aSCy Schubert  for _am_tool in $_am_tools; do
10922b15cb3dSCy Schubert    case $_am_tool in
10932b15cb3dSCy Schubert    gnutar)
1094276da39aSCy Schubert      for _am_tar in tar gnutar gtar; do
10952b15cb3dSCy Schubert        AM_RUN_LOG([$_am_tar --version]) && break
10962b15cb3dSCy Schubert      done
10972b15cb3dSCy Schubert      am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
10982b15cb3dSCy Schubert      am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
10992b15cb3dSCy Schubert      am__untar="$_am_tar -xf -"
11002b15cb3dSCy Schubert      ;;
11012b15cb3dSCy Schubert    plaintar)
11022b15cb3dSCy Schubert      # Must skip GNU tar: if it does not support --format= it doesn't create
11032b15cb3dSCy Schubert      # ustar tarball either.
11042b15cb3dSCy Schubert      (tar --version) >/dev/null 2>&1 && continue
11052b15cb3dSCy Schubert      am__tar='tar chf - "$$tardir"'
11062b15cb3dSCy Schubert      am__tar_='tar chf - "$tardir"'
11072b15cb3dSCy Schubert      am__untar='tar xf -'
11082b15cb3dSCy Schubert      ;;
11092b15cb3dSCy Schubert    pax)
11102b15cb3dSCy Schubert      am__tar='pax -L -x $1 -w "$$tardir"'
11112b15cb3dSCy Schubert      am__tar_='pax -L -x $1 -w "$tardir"'
11122b15cb3dSCy Schubert      am__untar='pax -r'
11132b15cb3dSCy Schubert      ;;
11142b15cb3dSCy Schubert    cpio)
11152b15cb3dSCy Schubert      am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
11162b15cb3dSCy Schubert      am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
11172b15cb3dSCy Schubert      am__untar='cpio -i -H $1 -d'
11182b15cb3dSCy Schubert      ;;
11192b15cb3dSCy Schubert    none)
11202b15cb3dSCy Schubert      am__tar=false
11212b15cb3dSCy Schubert      am__tar_=false
11222b15cb3dSCy Schubert      am__untar=false
11232b15cb3dSCy Schubert      ;;
11242b15cb3dSCy Schubert    esac
11252b15cb3dSCy Schubert
11262b15cb3dSCy Schubert    # If the value was cached, stop now.  We just wanted to have am__tar
11272b15cb3dSCy Schubert    # and am__untar set.
11282b15cb3dSCy Schubert    test -n "${am_cv_prog_tar_$1}" && break
11292b15cb3dSCy Schubert
1130276da39aSCy Schubert    # tar/untar a dummy directory, and stop if the command works.
11312b15cb3dSCy Schubert    rm -rf conftest.dir
11322b15cb3dSCy Schubert    mkdir conftest.dir
11332b15cb3dSCy Schubert    echo GrepMe > conftest.dir/file
11342b15cb3dSCy Schubert    AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
11352b15cb3dSCy Schubert    rm -rf conftest.dir
11362b15cb3dSCy Schubert    if test -s conftest.tar; then
11372b15cb3dSCy Schubert      AM_RUN_LOG([$am__untar <conftest.tar])
1138276da39aSCy Schubert      AM_RUN_LOG([cat conftest.dir/file])
11392b15cb3dSCy Schubert      grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
11402b15cb3dSCy Schubert    fi
11412b15cb3dSCy Schubert  done
11422b15cb3dSCy Schubert  rm -rf conftest.dir
11432b15cb3dSCy Schubert
11442b15cb3dSCy Schubert  AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
11452b15cb3dSCy Schubert  AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1146276da39aSCy Schubert
11472b15cb3dSCy SchubertAC_SUBST([am__tar])
11482b15cb3dSCy SchubertAC_SUBST([am__untar])
11492b15cb3dSCy Schubert]) # _AM_PROG_TAR
11502b15cb3dSCy Schubert
11512b15cb3dSCy Schubertm4_include([m4/ac_backport_259_ssizet.m4])
1152a25439b6SCy Schubertm4_include([m4/acx_pthread.m4])
1153*a466cc55SCy Schubertm4_include([m4/ax_check_funcs_ex.m4])
1154*a466cc55SCy Schubertm4_include([m4/ax_prog_doxygen.m4])
11552b15cb3dSCy Schubertm4_include([m4/libevent_openssl.m4])
11562b15cb3dSCy Schubertm4_include([m4/libtool.m4])
11572b15cb3dSCy Schubertm4_include([m4/ltoptions.m4])
11582b15cb3dSCy Schubertm4_include([m4/ltsugar.m4])
11592b15cb3dSCy Schubertm4_include([m4/ltversion.m4])
11602b15cb3dSCy Schubertm4_include([m4/lt~obsolete.m4])
11612b15cb3dSCy Schubertm4_include([m4/ntp_pkg_config.m4])
1162