"Fossies" - the Fresh Open Source Software Archive

Member "klavaro-3.13/aclocal.m4" (6 Jun 2021, 65840 Bytes) of package /linux/privat/klavaro-3.13.tar.bz2:


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": 3.12_vs_3.13.

    1 # generated automatically by aclocal 1.16.3 -*- Autoconf -*-
    2 
    3 # Copyright (C) 1996-2020 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.69],,
   18 [m4_warning([this file was generated for autoconf 2.69.
   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 
   24 dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
   25 # serial 42 IT_PROG_INTLTOOL
   26 AC_DEFUN([IT_PROG_INTLTOOL], [
   27 AC_PREREQ([2.50])dnl
   28 AC_REQUIRE([AM_NLS])dnl
   29 
   30 case "$am__api_version" in
   31     1.[01234])
   32 	AC_MSG_ERROR([Automake 1.5 or newer is required to use intltool])
   33     ;;
   34     *)
   35     ;;
   36 esac
   37 
   38 INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
   39 INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
   40 INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
   41 if test -n "$1"; then
   42     AC_MSG_CHECKING([for intltool >= $1])
   43     AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found])
   44     test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
   45 	AC_MSG_ERROR([Your intltool is too old.  You need intltool $1 or later.])
   46 fi
   47 
   48 AC_PATH_PROG(INTLTOOL_UPDATE, [intltool-update])
   49 AC_PATH_PROG(INTLTOOL_MERGE, [intltool-merge])
   50 AC_PATH_PROG(INTLTOOL_EXTRACT, [intltool-extract])
   51 if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
   52     AC_MSG_ERROR([The intltool scripts were not found. Please install intltool.])
   53 fi
   54 
   55 if test -z "$AM_DEFAULT_VERBOSITY"; then
   56   AM_DEFAULT_VERBOSITY=1
   57 fi
   58 AC_SUBST([AM_DEFAULT_VERBOSITY])
   59 
   60 INTLTOOL_V_MERGE='$(INTLTOOL__v_MERGE_$(V))'
   61 INTLTOOL__v_MERGE_='$(INTLTOOL__v_MERGE_$(AM_DEFAULT_VERBOSITY))'
   62 INTLTOOL__v_MERGE_0='@echo "  ITMRG " [$]@;'
   63 AC_SUBST(INTLTOOL_V_MERGE)
   64 AC_SUBST(INTLTOOL__v_MERGE_)
   65 AC_SUBST(INTLTOOL__v_MERGE_0)
   66 
   67 INTLTOOL_V_MERGE_OPTIONS='$(intltool__v_merge_options_$(V))'
   68 intltool__v_merge_options_='$(intltool__v_merge_options_$(AM_DEFAULT_VERBOSITY))'
   69 intltool__v_merge_options_0='-q'
   70 AC_SUBST(INTLTOOL_V_MERGE_OPTIONS)
   71 AC_SUBST(intltool__v_merge_options_)
   72 AC_SUBST(intltool__v_merge_options_0)
   73 
   74   INTLTOOL_DESKTOP_RULE='%.desktop:   %.desktop.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
   75 INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
   76      INTLTOOL_KEYS_RULE='%.keys:      %.keys.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
   77      INTLTOOL_PROP_RULE='%.prop:      %.prop.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
   78       INTLTOOL_OAF_RULE='%.oaf:       %.oaf.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -p $(top_srcdir)/po $< [$]@'
   79      INTLTOOL_PONG_RULE='%.pong:      %.pong.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
   80    INTLTOOL_SERVER_RULE='%.server:    %.server.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
   81     INTLTOOL_SHEET_RULE='%.sheet:     %.sheet.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
   82 INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
   83        INTLTOOL_UI_RULE='%.ui:        %.ui.in        $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
   84       INTLTOOL_XML_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
   85 if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge 5000; then
   86       INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u --no-translations $< [$]@'
   87 else
   88       INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)_it_tmp_dir=tmp.intltool.[$][$]RANDOM && mkdir [$][$]_it_tmp_dir && LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u [$][$]_it_tmp_dir $< [$]@ && rmdir [$][$]_it_tmp_dir'
   89 fi
   90       INTLTOOL_XAM_RULE='%.xam:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
   91       INTLTOOL_KBD_RULE='%.kbd:       %.kbd.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
   92     INTLTOOL_CAVES_RULE='%.caves:     %.caves.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
   93   INTLTOOL_SCHEMAS_RULE='%.schemas:   %.schemas.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
   94     INTLTOOL_THEME_RULE='%.theme:     %.theme.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
   95     INTLTOOL_SERVICE_RULE='%.service: %.service.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
   96    INTLTOOL_POLICY_RULE='%.policy:    %.policy.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
   97 
   98 _IT_SUBST(INTLTOOL_DESKTOP_RULE)
   99 _IT_SUBST(INTLTOOL_DIRECTORY_RULE)
  100 _IT_SUBST(INTLTOOL_KEYS_RULE)
  101 _IT_SUBST(INTLTOOL_PROP_RULE)
  102 _IT_SUBST(INTLTOOL_OAF_RULE)
  103 _IT_SUBST(INTLTOOL_PONG_RULE)
  104 _IT_SUBST(INTLTOOL_SERVER_RULE)
  105 _IT_SUBST(INTLTOOL_SHEET_RULE)
  106 _IT_SUBST(INTLTOOL_SOUNDLIST_RULE)
  107 _IT_SUBST(INTLTOOL_UI_RULE)
  108 _IT_SUBST(INTLTOOL_XAM_RULE)
  109 _IT_SUBST(INTLTOOL_KBD_RULE)
  110 _IT_SUBST(INTLTOOL_XML_RULE)
  111 _IT_SUBST(INTLTOOL_XML_NOMERGE_RULE)
  112 _IT_SUBST(INTLTOOL_CAVES_RULE)
  113 _IT_SUBST(INTLTOOL_SCHEMAS_RULE)
  114 _IT_SUBST(INTLTOOL_THEME_RULE)
  115 _IT_SUBST(INTLTOOL_SERVICE_RULE)
  116 _IT_SUBST(INTLTOOL_POLICY_RULE)
  117 
  118 # Check the gettext tools to make sure they are GNU
  119 AC_PATH_PROG(XGETTEXT, xgettext)
  120 AC_PATH_PROG(MSGMERGE, msgmerge)
  121 AC_PATH_PROG(MSGFMT, msgfmt)
  122 AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
  123 if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
  124     AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
  125 fi
  126 xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
  127 mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
  128 mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
  129 if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
  130     AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
  131 fi
  132 
  133 AC_PATH_PROG(INTLTOOL_PERL, perl)
  134 if test -z "$INTLTOOL_PERL"; then
  135    AC_MSG_ERROR([perl not found])
  136 fi
  137 AC_MSG_CHECKING([for perl >= 5.8.1])
  138 $INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
  139 if test $? -ne 0; then
  140    AC_MSG_ERROR([perl 5.8.1 is required for intltool])
  141 else
  142    IT_PERL_VERSION=`$INTLTOOL_PERL -e "printf '%vd', $^V"`
  143    AC_MSG_RESULT([$IT_PERL_VERSION])
  144 fi
  145 if test "x$2" != "xno-xml"; then
  146    AC_MSG_CHECKING([for XML::Parser])
  147    if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
  148        AC_MSG_RESULT([ok])
  149    else
  150        AC_MSG_ERROR([XML::Parser perl module is required for intltool])
  151    fi
  152 fi
  153 
  154 # Substitute ALL_LINGUAS so we can use it in po/Makefile
  155 AC_SUBST(ALL_LINGUAS)
  156 
  157 IT_PO_SUBDIR([po])
  158 
  159 ])
  160 
  161 
  162 # IT_PO_SUBDIR(DIRNAME)
  163 # ---------------------
  164 # All po subdirs have to be declared with this macro; the subdir "po" is
  165 # declared by IT_PROG_INTLTOOL.
  166 #
  167 AC_DEFUN([IT_PO_SUBDIR],
  168 [AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS.
  169 dnl
  170 dnl The following CONFIG_COMMANDS should be executed at the very end
  171 dnl of config.status.
  172 AC_CONFIG_COMMANDS_PRE([
  173   AC_CONFIG_COMMANDS([$1/stamp-it], [
  174     if [ ! grep "^# INTLTOOL_MAKEFILE$" "$1/Makefile.in" > /dev/null ]; then
  175        AC_MSG_ERROR([$1/Makefile.in.in was not created by intltoolize.])
  176     fi
  177     rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp"
  178     >"$1/stamp-it.tmp"
  179     [sed '/^#/d
  180 	 s/^[[].*] *//
  181 	 /^[ 	]*$/d
  182 	'"s|^|	$ac_top_srcdir/|" \
  183       "$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES"
  184     ]
  185     [sed '/^POTFILES =/,/[^\\]$/ {
  186 		/^POTFILES =/!d
  187 		r $1/POTFILES
  188 	  }
  189 	 ' "$1/Makefile.in" >"$1/Makefile"]
  190     rm -f "$1/Makefile.tmp"
  191     mv "$1/stamp-it.tmp" "$1/stamp-it"
  192   ])
  193 ])dnl
  194 ])
  195 
  196 # _IT_SUBST(VARIABLE)
  197 # -------------------
  198 # Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST
  199 #
  200 AC_DEFUN([_IT_SUBST],
  201 [
  202 AC_SUBST([$1])
  203 m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])])
  204 ]
  205 )
  206 
  207 # deprecated macros
  208 AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL])
  209 # A hint is needed for aclocal from Automake <= 1.9.4:
  210 # AC_DEFUN([AC_PROG_INTLTOOL], ...)
  211 
  212 
  213 # nls.m4 serial 6 (gettext-0.20.2)
  214 dnl Copyright (C) 1995-2003, 2005-2006, 2008-2014, 2016, 2019-2020 Free
  215 dnl Software Foundation, Inc.
  216 dnl This file is free software; the Free Software Foundation
  217 dnl gives unlimited permission to copy and/or distribute it,
  218 dnl with or without modifications, as long as this notice is preserved.
  219 dnl
  220 dnl This file can be used in projects which are not available under
  221 dnl the GNU General Public License or the GNU Lesser General Public
  222 dnl License but which still want to provide support for the GNU gettext
  223 dnl functionality.
  224 dnl Please note that the actual code of the GNU gettext library is covered
  225 dnl by the GNU Lesser General Public License, and the rest of the GNU
  226 dnl gettext package is covered by the GNU General Public License.
  227 dnl They are *not* in the public domain.
  228 
  229 dnl Authors:
  230 dnl   Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
  231 dnl   Bruno Haible <haible@clisp.cons.org>, 2000-2003.
  232 
  233 AC_PREREQ([2.50])
  234 
  235 AC_DEFUN([AM_NLS],
  236 [
  237   AC_MSG_CHECKING([whether NLS is requested])
  238   dnl Default is enabled NLS
  239   AC_ARG_ENABLE([nls],
  240     [  --disable-nls           do not use Native Language Support],
  241     USE_NLS=$enableval, USE_NLS=yes)
  242   AC_MSG_RESULT([$USE_NLS])
  243   AC_SUBST([USE_NLS])
  244 ])
  245 
  246 # pkg.m4 - Macros to locate and utilise pkg-config.   -*- Autoconf -*-
  247 # serial 12 (pkg-config-0.29.2)
  248 
  249 dnl Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
  250 dnl Copyright © 2012-2015 Dan Nicholson <dbn.lists@gmail.com>
  251 dnl
  252 dnl This program is free software; you can redistribute it and/or modify
  253 dnl it under the terms of the GNU General Public License as published by
  254 dnl the Free Software Foundation; either version 2 of the License, or
  255 dnl (at your option) any later version.
  256 dnl
  257 dnl This program is distributed in the hope that it will be useful, but
  258 dnl WITHOUT ANY WARRANTY; without even the implied warranty of
  259 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  260 dnl General Public License for more details.
  261 dnl
  262 dnl You should have received a copy of the GNU General Public License
  263 dnl along with this program; if not, write to the Free Software
  264 dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  265 dnl 02111-1307, USA.
  266 dnl
  267 dnl As a special exception to the GNU General Public License, if you
  268 dnl distribute this file as part of a program that contains a
  269 dnl configuration script generated by Autoconf, you may include it under
  270 dnl the same distribution terms that you use for the rest of that
  271 dnl program.
  272 
  273 dnl PKG_PREREQ(MIN-VERSION)
  274 dnl -----------------------
  275 dnl Since: 0.29
  276 dnl
  277 dnl Verify that the version of the pkg-config macros are at least
  278 dnl MIN-VERSION. Unlike PKG_PROG_PKG_CONFIG, which checks the user's
  279 dnl installed version of pkg-config, this checks the developer's version
  280 dnl of pkg.m4 when generating configure.
  281 dnl
  282 dnl To ensure that this macro is defined, also add:
  283 dnl m4_ifndef([PKG_PREREQ],
  284 dnl     [m4_fatal([must install pkg-config 0.29 or later before running autoconf/autogen])])
  285 dnl
  286 dnl See the "Since" comment for each macro you use to see what version
  287 dnl of the macros you require.
  288 m4_defun([PKG_PREREQ],
  289 [m4_define([PKG_MACROS_VERSION], [0.29.2])
  290 m4_if(m4_version_compare(PKG_MACROS_VERSION, [$1]), -1,
  291     [m4_fatal([pkg.m4 version $1 or higher is required but ]PKG_MACROS_VERSION[ found])])
  292 ])dnl PKG_PREREQ
  293 
  294 dnl PKG_PROG_PKG_CONFIG([MIN-VERSION])
  295 dnl ----------------------------------
  296 dnl Since: 0.16
  297 dnl
  298 dnl Search for the pkg-config tool and set the PKG_CONFIG variable to
  299 dnl first found in the path. Checks that the version of pkg-config found
  300 dnl is at least MIN-VERSION. If MIN-VERSION is not specified, 0.9.0 is
  301 dnl used since that's the first version where most current features of
  302 dnl pkg-config existed.
  303 AC_DEFUN([PKG_PROG_PKG_CONFIG],
  304 [m4_pattern_forbid([^_?PKG_[A-Z_]+$])
  305 m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$])
  306 m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$])
  307 AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
  308 AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
  309 AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
  310 
  311 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  312 	AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
  313 fi
  314 if test -n "$PKG_CONFIG"; then
  315 	_pkg_min_version=m4_default([$1], [0.9.0])
  316 	AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
  317 	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  318 		AC_MSG_RESULT([yes])
  319 	else
  320 		AC_MSG_RESULT([no])
  321 		PKG_CONFIG=""
  322 	fi
  323 fi[]dnl
  324 ])dnl PKG_PROG_PKG_CONFIG
  325 
  326 dnl PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
  327 dnl -------------------------------------------------------------------
  328 dnl Since: 0.18
  329 dnl
  330 dnl Check to see whether a particular set of modules exists. Similar to
  331 dnl PKG_CHECK_MODULES(), but does not set variables or print errors.
  332 dnl
  333 dnl Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
  334 dnl only at the first occurence in configure.ac, so if the first place
  335 dnl it's called might be skipped (such as if it is within an "if", you
  336 dnl have to call PKG_CHECK_EXISTS manually
  337 AC_DEFUN([PKG_CHECK_EXISTS],
  338 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
  339 if test -n "$PKG_CONFIG" && \
  340     AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
  341   m4_default([$2], [:])
  342 m4_ifvaln([$3], [else
  343   $3])dnl
  344 fi])
  345 
  346 dnl _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
  347 dnl ---------------------------------------------
  348 dnl Internal wrapper calling pkg-config via PKG_CONFIG and setting
  349 dnl pkg_failed based on the result.
  350 m4_define([_PKG_CONFIG],
  351 [if test -n "$$1"; then
  352     pkg_cv_[]$1="$$1"
  353  elif test -n "$PKG_CONFIG"; then
  354     PKG_CHECK_EXISTS([$3],
  355                      [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`
  356 		      test "x$?" != "x0" && pkg_failed=yes ],
  357 		     [pkg_failed=yes])
  358  else
  359     pkg_failed=untried
  360 fi[]dnl
  361 ])dnl _PKG_CONFIG
  362 
  363 dnl _PKG_SHORT_ERRORS_SUPPORTED
  364 dnl ---------------------------
  365 dnl Internal check to see if pkg-config supports short errors.
  366 AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
  367 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])
  368 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  369         _pkg_short_errors_supported=yes
  370 else
  371         _pkg_short_errors_supported=no
  372 fi[]dnl
  373 ])dnl _PKG_SHORT_ERRORS_SUPPORTED
  374 
  375 
  376 dnl PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
  377 dnl   [ACTION-IF-NOT-FOUND])
  378 dnl --------------------------------------------------------------
  379 dnl Since: 0.4.0
  380 dnl
  381 dnl Note that if there is a possibility the first call to
  382 dnl PKG_CHECK_MODULES might not happen, you should be sure to include an
  383 dnl explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
  384 AC_DEFUN([PKG_CHECK_MODULES],
  385 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
  386 AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
  387 AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
  388 
  389 pkg_failed=no
  390 AC_MSG_CHECKING([for $2])
  391 
  392 _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
  393 _PKG_CONFIG([$1][_LIBS], [libs], [$2])
  394 
  395 m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
  396 and $1[]_LIBS to avoid the need to call pkg-config.
  397 See the pkg-config man page for more details.])
  398 
  399 if test $pkg_failed = yes; then
  400         AC_MSG_RESULT([no])
  401         _PKG_SHORT_ERRORS_SUPPORTED
  402         if test $_pkg_short_errors_supported = yes; then
  403 	        $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1`
  404         else
  405 	        $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
  406         fi
  407 	# Put the nasty error message in config.log where it belongs
  408 	echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
  409 
  410 	m4_default([$4], [AC_MSG_ERROR(
  411 [Package requirements ($2) were not met:
  412 
  413 $$1_PKG_ERRORS
  414 
  415 Consider adjusting the PKG_CONFIG_PATH environment variable if you
  416 installed software in a non-standard prefix.
  417 
  418 _PKG_TEXT])[]dnl
  419         ])
  420 elif test $pkg_failed = untried; then
  421         AC_MSG_RESULT([no])
  422 	m4_default([$4], [AC_MSG_FAILURE(
  423 [The pkg-config script could not be found or is too old.  Make sure it
  424 is in your PATH or set the PKG_CONFIG environment variable to the full
  425 path to pkg-config.
  426 
  427 _PKG_TEXT
  428 
  429 To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl
  430         ])
  431 else
  432 	$1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
  433 	$1[]_LIBS=$pkg_cv_[]$1[]_LIBS
  434         AC_MSG_RESULT([yes])
  435 	$3
  436 fi[]dnl
  437 ])dnl PKG_CHECK_MODULES
  438 
  439 
  440 dnl PKG_CHECK_MODULES_STATIC(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
  441 dnl   [ACTION-IF-NOT-FOUND])
  442 dnl ---------------------------------------------------------------------
  443 dnl Since: 0.29
  444 dnl
  445 dnl Checks for existence of MODULES and gathers its build flags with
  446 dnl static libraries enabled. Sets VARIABLE-PREFIX_CFLAGS from --cflags
  447 dnl and VARIABLE-PREFIX_LIBS from --libs.
  448 dnl
  449 dnl Note that if there is a possibility the first call to
  450 dnl PKG_CHECK_MODULES_STATIC might not happen, you should be sure to
  451 dnl include an explicit call to PKG_PROG_PKG_CONFIG in your
  452 dnl configure.ac.
  453 AC_DEFUN([PKG_CHECK_MODULES_STATIC],
  454 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
  455 _save_PKG_CONFIG=$PKG_CONFIG
  456 PKG_CONFIG="$PKG_CONFIG --static"
  457 PKG_CHECK_MODULES($@)
  458 PKG_CONFIG=$_save_PKG_CONFIG[]dnl
  459 ])dnl PKG_CHECK_MODULES_STATIC
  460 
  461 
  462 dnl PKG_INSTALLDIR([DIRECTORY])
  463 dnl -------------------------
  464 dnl Since: 0.27
  465 dnl
  466 dnl Substitutes the variable pkgconfigdir as the location where a module
  467 dnl should install pkg-config .pc files. By default the directory is
  468 dnl $libdir/pkgconfig, but the default can be changed by passing
  469 dnl DIRECTORY. The user can override through the --with-pkgconfigdir
  470 dnl parameter.
  471 AC_DEFUN([PKG_INSTALLDIR],
  472 [m4_pushdef([pkg_default], [m4_default([$1], ['${libdir}/pkgconfig'])])
  473 m4_pushdef([pkg_description],
  474     [pkg-config installation directory @<:@]pkg_default[@:>@])
  475 AC_ARG_WITH([pkgconfigdir],
  476     [AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],,
  477     [with_pkgconfigdir=]pkg_default)
  478 AC_SUBST([pkgconfigdir], [$with_pkgconfigdir])
  479 m4_popdef([pkg_default])
  480 m4_popdef([pkg_description])
  481 ])dnl PKG_INSTALLDIR
  482 
  483 
  484 dnl PKG_NOARCH_INSTALLDIR([DIRECTORY])
  485 dnl --------------------------------
  486 dnl Since: 0.27
  487 dnl
  488 dnl Substitutes the variable noarch_pkgconfigdir as the location where a
  489 dnl module should install arch-independent pkg-config .pc files. By
  490 dnl default the directory is $datadir/pkgconfig, but the default can be
  491 dnl changed by passing DIRECTORY. The user can override through the
  492 dnl --with-noarch-pkgconfigdir parameter.
  493 AC_DEFUN([PKG_NOARCH_INSTALLDIR],
  494 [m4_pushdef([pkg_default], [m4_default([$1], ['${datadir}/pkgconfig'])])
  495 m4_pushdef([pkg_description],
  496     [pkg-config arch-independent installation directory @<:@]pkg_default[@:>@])
  497 AC_ARG_WITH([noarch-pkgconfigdir],
  498     [AS_HELP_STRING([--with-noarch-pkgconfigdir], pkg_description)],,
  499     [with_noarch_pkgconfigdir=]pkg_default)
  500 AC_SUBST([noarch_pkgconfigdir], [$with_noarch_pkgconfigdir])
  501 m4_popdef([pkg_default])
  502 m4_popdef([pkg_description])
  503 ])dnl PKG_NOARCH_INSTALLDIR
  504 
  505 
  506 dnl PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE,
  507 dnl [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
  508 dnl -------------------------------------------
  509 dnl Since: 0.28
  510 dnl
  511 dnl Retrieves the value of the pkg-config variable for the given module.
  512 AC_DEFUN([PKG_CHECK_VAR],
  513 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
  514 AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl
  515 
  516 _PKG_CONFIG([$1], [variable="][$3]["], [$2])
  517 AS_VAR_COPY([$1], [pkg_cv_][$1])
  518 
  519 AS_VAR_IF([$1], [""], [$5], [$4])dnl
  520 ])dnl PKG_CHECK_VAR
  521 
  522 # Copyright (C) 2002-2020 Free Software Foundation, Inc.
  523 #
  524 # This file is free software; the Free Software Foundation
  525 # gives unlimited permission to copy and/or distribute it,
  526 # with or without modifications, as long as this notice is preserved.
  527 
  528 # AM_AUTOMAKE_VERSION(VERSION)
  529 # ----------------------------
  530 # Automake X.Y traces this macro to ensure aclocal.m4 has been
  531 # generated from the m4 files accompanying Automake X.Y.
  532 # (This private macro should not be called outside this file.)
  533 AC_DEFUN([AM_AUTOMAKE_VERSION],
  534 [am__api_version='1.16'
  535 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
  536 dnl require some minimum version.  Point them to the right macro.
  537 m4_if([$1], [1.16.3], [],
  538       [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
  539 ])
  540 
  541 # _AM_AUTOCONF_VERSION(VERSION)
  542 # -----------------------------
  543 # aclocal traces this macro to find the Autoconf version.
  544 # This is a private macro too.  Using m4_define simplifies
  545 # the logic in aclocal, which can simply ignore this definition.
  546 m4_define([_AM_AUTOCONF_VERSION], [])
  547 
  548 # AM_SET_CURRENT_AUTOMAKE_VERSION
  549 # -------------------------------
  550 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
  551 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
  552 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
  553 [AM_AUTOMAKE_VERSION([1.16.3])dnl
  554 m4_ifndef([AC_AUTOCONF_VERSION],
  555   [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  556 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
  557 
  558 # Copyright (C) 2011-2020 Free Software Foundation, Inc.
  559 #
  560 # This file is free software; the Free Software Foundation
  561 # gives unlimited permission to copy and/or distribute it,
  562 # with or without modifications, as long as this notice is preserved.
  563 
  564 # AM_PROG_AR([ACT-IF-FAIL])
  565 # -------------------------
  566 # Try to determine the archiver interface, and trigger the ar-lib wrapper
  567 # if it is needed.  If the detection of archiver interface fails, run
  568 # ACT-IF-FAIL (default is to abort configure with a proper error message).
  569 AC_DEFUN([AM_PROG_AR],
  570 [AC_BEFORE([$0], [LT_INIT])dnl
  571 AC_BEFORE([$0], [AC_PROG_LIBTOOL])dnl
  572 AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  573 AC_REQUIRE_AUX_FILE([ar-lib])dnl
  574 AC_CHECK_TOOLS([AR], [ar lib "link -lib"], [false])
  575 : ${AR=ar}
  576 
  577 AC_CACHE_CHECK([the archiver ($AR) interface], [am_cv_ar_interface],
  578   [AC_LANG_PUSH([C])
  579    am_cv_ar_interface=ar
  580    AC_COMPILE_IFELSE([AC_LANG_SOURCE([[int some_variable = 0;]])],
  581      [am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&AS_MESSAGE_LOG_FD'
  582       AC_TRY_EVAL([am_ar_try])
  583       if test "$ac_status" -eq 0; then
  584         am_cv_ar_interface=ar
  585       else
  586         am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&AS_MESSAGE_LOG_FD'
  587         AC_TRY_EVAL([am_ar_try])
  588         if test "$ac_status" -eq 0; then
  589           am_cv_ar_interface=lib
  590         else
  591           am_cv_ar_interface=unknown
  592         fi
  593       fi
  594       rm -f conftest.lib libconftest.a
  595      ])
  596    AC_LANG_POP([C])])
  597 
  598 case $am_cv_ar_interface in
  599 ar)
  600   ;;
  601 lib)
  602   # Microsoft lib, so override with the ar-lib wrapper script.
  603   # FIXME: It is wrong to rewrite AR.
  604   # But if we don't then we get into trouble of one sort or another.
  605   # A longer-term fix would be to have automake use am__AR in this case,
  606   # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
  607   # similar.
  608   AR="$am_aux_dir/ar-lib $AR"
  609   ;;
  610 unknown)
  611   m4_default([$1],
  612              [AC_MSG_ERROR([could not determine $AR interface])])
  613   ;;
  614 esac
  615 AC_SUBST([AR])dnl
  616 ])
  617 
  618 # AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
  619 
  620 # Copyright (C) 2001-2020 Free Software Foundation, Inc.
  621 #
  622 # This file is free software; the Free Software Foundation
  623 # gives unlimited permission to copy and/or distribute it,
  624 # with or without modifications, as long as this notice is preserved.
  625 
  626 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
  627 # $ac_aux_dir to '$srcdir/foo'.  In other projects, it is set to
  628 # '$srcdir', '$srcdir/..', or '$srcdir/../..'.
  629 #
  630 # Of course, Automake must honor this variable whenever it calls a
  631 # tool from the auxiliary directory.  The problem is that $srcdir (and
  632 # therefore $ac_aux_dir as well) can be either absolute or relative,
  633 # depending on how configure is run.  This is pretty annoying, since
  634 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
  635 # source directory, any form will work fine, but in subdirectories a
  636 # relative path needs to be adjusted first.
  637 #
  638 # $ac_aux_dir/missing
  639 #    fails when called from a subdirectory if $ac_aux_dir is relative
  640 # $top_srcdir/$ac_aux_dir/missing
  641 #    fails if $ac_aux_dir is absolute,
  642 #    fails when called from a subdirectory in a VPATH build with
  643 #          a relative $ac_aux_dir
  644 #
  645 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
  646 # are both prefixed by $srcdir.  In an in-source build this is usually
  647 # harmless because $srcdir is '.', but things will broke when you
  648 # start a VPATH build or use an absolute $srcdir.
  649 #
  650 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
  651 # iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
  652 #   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
  653 # and then we would define $MISSING as
  654 #   MISSING="\${SHELL} $am_aux_dir/missing"
  655 # This will work as long as MISSING is not called from configure, because
  656 # unfortunately $(top_srcdir) has no meaning in configure.
  657 # However there are other variables, like CC, which are often used in
  658 # configure, and could therefore not use this "fixed" $ac_aux_dir.
  659 #
  660 # Another solution, used here, is to always expand $ac_aux_dir to an
  661 # absolute PATH.  The drawback is that using absolute paths prevent a
  662 # configured tree to be moved without reconfiguration.
  663 
  664 AC_DEFUN([AM_AUX_DIR_EXPAND],
  665 [AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
  666 # Expand $ac_aux_dir to an absolute path.
  667 am_aux_dir=`cd "$ac_aux_dir" && pwd`
  668 ])
  669 
  670 # AM_CONDITIONAL                                            -*- Autoconf -*-
  671 
  672 # Copyright (C) 1997-2020 Free Software Foundation, Inc.
  673 #
  674 # This file is free software; the Free Software Foundation
  675 # gives unlimited permission to copy and/or distribute it,
  676 # with or without modifications, as long as this notice is preserved.
  677 
  678 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
  679 # -------------------------------------
  680 # Define a conditional.
  681 AC_DEFUN([AM_CONDITIONAL],
  682 [AC_PREREQ([2.52])dnl
  683  m4_if([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
  684        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
  685 AC_SUBST([$1_TRUE])dnl
  686 AC_SUBST([$1_FALSE])dnl
  687 _AM_SUBST_NOTMAKE([$1_TRUE])dnl
  688 _AM_SUBST_NOTMAKE([$1_FALSE])dnl
  689 m4_define([_AM_COND_VALUE_$1], [$2])dnl
  690 if $2; then
  691   $1_TRUE=
  692   $1_FALSE='#'
  693 else
  694   $1_TRUE='#'
  695   $1_FALSE=
  696 fi
  697 AC_CONFIG_COMMANDS_PRE(
  698 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
  699   AC_MSG_ERROR([[conditional "$1" was never defined.
  700 Usually this means the macro was only invoked conditionally.]])
  701 fi])])
  702 
  703 # Copyright (C) 1999-2020 Free Software Foundation, Inc.
  704 #
  705 # This file is free software; the Free Software Foundation
  706 # gives unlimited permission to copy and/or distribute it,
  707 # with or without modifications, as long as this notice is preserved.
  708 
  709 
  710 # There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
  711 # written in clear, in which case automake, when reading aclocal.m4,
  712 # will think it sees a *use*, and therefore will trigger all it's
  713 # C support machinery.  Also note that it means that autoscan, seeing
  714 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
  715 
  716 
  717 # _AM_DEPENDENCIES(NAME)
  718 # ----------------------
  719 # See how the compiler implements dependency checking.
  720 # NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
  721 # We try a few techniques and use that to set a single cache variable.
  722 #
  723 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
  724 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
  725 # dependency, and given that the user is not expected to run this macro,
  726 # just rely on AC_PROG_CC.
  727 AC_DEFUN([_AM_DEPENDENCIES],
  728 [AC_REQUIRE([AM_SET_DEPDIR])dnl
  729 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
  730 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
  731 AC_REQUIRE([AM_DEP_TRACK])dnl
  732 
  733 m4_if([$1], [CC],   [depcc="$CC"   am_compiler_list=],
  734       [$1], [CXX],  [depcc="$CXX"  am_compiler_list=],
  735       [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
  736       [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
  737       [$1], [UPC],  [depcc="$UPC"  am_compiler_list=],
  738       [$1], [GCJ],  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
  739                     [depcc="$$1"   am_compiler_list=])
  740 
  741 AC_CACHE_CHECK([dependency style of $depcc],
  742                [am_cv_$1_dependencies_compiler_type],
  743 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  744   # We make a subdir and do the tests there.  Otherwise we can end up
  745   # making bogus files that we don't know about and never remove.  For
  746   # instance it was reported that on HP-UX the gcc test will end up
  747   # making a dummy file named 'D' -- because '-MD' means "put the output
  748   # in D".
  749   rm -rf conftest.dir
  750   mkdir conftest.dir
  751   # Copy depcomp to subdir because otherwise we won't find it if we're
  752   # using a relative directory.
  753   cp "$am_depcomp" conftest.dir
  754   cd conftest.dir
  755   # We will build objects and dependencies in a subdirectory because
  756   # it helps to detect inapplicable dependency modes.  For instance
  757   # both Tru64's cc and ICC support -MD to output dependencies as a
  758   # side effect of compilation, but ICC will put the dependencies in
  759   # the current directory while Tru64 will put them in the object
  760   # directory.
  761   mkdir sub
  762 
  763   am_cv_$1_dependencies_compiler_type=none
  764   if test "$am_compiler_list" = ""; then
  765      am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
  766   fi
  767   am__universal=false
  768   m4_case([$1], [CC],
  769     [case " $depcc " in #(
  770      *\ -arch\ *\ -arch\ *) am__universal=true ;;
  771      esac],
  772     [CXX],
  773     [case " $depcc " in #(
  774      *\ -arch\ *\ -arch\ *) am__universal=true ;;
  775      esac])
  776 
  777   for depmode in $am_compiler_list; do
  778     # Setup a source with many dependencies, because some compilers
  779     # like to wrap large dependency lists on column 80 (with \), and
  780     # we should not choose a depcomp mode which is confused by this.
  781     #
  782     # We need to recreate these files for each test, as the compiler may
  783     # overwrite some of them when testing with obscure command lines.
  784     # This happens at least with the AIX C compiler.
  785     : > sub/conftest.c
  786     for i in 1 2 3 4 5 6; do
  787       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  788       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  789       # Solaris 10 /bin/sh.
  790       echo '/* dummy */' > sub/conftst$i.h
  791     done
  792     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  793 
  794     # We check with '-c' and '-o' for the sake of the "dashmstdout"
  795     # mode.  It turns out that the SunPro C++ compiler does not properly
  796     # handle '-M -o', and we need to detect this.  Also, some Intel
  797     # versions had trouble with output in subdirs.
  798     am__obj=sub/conftest.${OBJEXT-o}
  799     am__minus_obj="-o $am__obj"
  800     case $depmode in
  801     gcc)
  802       # This depmode causes a compiler race in universal mode.
  803       test "$am__universal" = false || continue
  804       ;;
  805     nosideeffect)
  806       # After this tag, mechanisms are not by side-effect, so they'll
  807       # only be used when explicitly requested.
  808       if test "x$enable_dependency_tracking" = xyes; then
  809 	continue
  810       else
  811 	break
  812       fi
  813       ;;
  814     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  815       # This compiler won't grok '-c -o', but also, the minuso test has
  816       # not run yet.  These depmodes are late enough in the game, and
  817       # so weak that their functioning should not be impacted.
  818       am__obj=conftest.${OBJEXT-o}
  819       am__minus_obj=
  820       ;;
  821     none) break ;;
  822     esac
  823     if depmode=$depmode \
  824        source=sub/conftest.c object=$am__obj \
  825        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  826        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  827          >/dev/null 2>conftest.err &&
  828        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  829        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  830        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  831        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  832       # icc doesn't choke on unknown options, it will just issue warnings
  833       # or remarks (even with -Werror).  So we grep stderr for any message
  834       # that says an option was ignored or not supported.
  835       # When given -MP, icc 7.0 and 7.1 complain thusly:
  836       #   icc: Command line warning: ignoring option '-M'; no argument required
  837       # The diagnosis changed in icc 8.0:
  838       #   icc: Command line remark: option '-MP' not supported
  839       if (grep 'ignoring option' conftest.err ||
  840           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  841         am_cv_$1_dependencies_compiler_type=$depmode
  842         break
  843       fi
  844     fi
  845   done
  846 
  847   cd ..
  848   rm -rf conftest.dir
  849 else
  850   am_cv_$1_dependencies_compiler_type=none
  851 fi
  852 ])
  853 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
  854 AM_CONDITIONAL([am__fastdep$1], [
  855   test "x$enable_dependency_tracking" != xno \
  856   && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
  857 ])
  858 
  859 
  860 # AM_SET_DEPDIR
  861 # -------------
  862 # Choose a directory name for dependency files.
  863 # This macro is AC_REQUIREd in _AM_DEPENDENCIES.
  864 AC_DEFUN([AM_SET_DEPDIR],
  865 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  866 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
  867 ])
  868 
  869 
  870 # AM_DEP_TRACK
  871 # ------------
  872 AC_DEFUN([AM_DEP_TRACK],
  873 [AC_ARG_ENABLE([dependency-tracking], [dnl
  874 AS_HELP_STRING(
  875   [--enable-dependency-tracking],
  876   [do not reject slow dependency extractors])
  877 AS_HELP_STRING(
  878   [--disable-dependency-tracking],
  879   [speeds up one-time build])])
  880 if test "x$enable_dependency_tracking" != xno; then
  881   am_depcomp="$ac_aux_dir/depcomp"
  882   AMDEPBACKSLASH='\'
  883   am__nodep='_no'
  884 fi
  885 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
  886 AC_SUBST([AMDEPBACKSLASH])dnl
  887 _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
  888 AC_SUBST([am__nodep])dnl
  889 _AM_SUBST_NOTMAKE([am__nodep])dnl
  890 ])
  891 
  892 # Generate code to set up dependency tracking.              -*- Autoconf -*-
  893 
  894 # Copyright (C) 1999-2020 Free Software Foundation, Inc.
  895 #
  896 # This file is free software; the Free Software Foundation
  897 # gives unlimited permission to copy and/or distribute it,
  898 # with or without modifications, as long as this notice is preserved.
  899 
  900 # _AM_OUTPUT_DEPENDENCY_COMMANDS
  901 # ------------------------------
  902 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
  903 [{
  904   # Older Autoconf quotes --file arguments for eval, but not when files
  905   # are listed without --file.  Let's play safe and only enable the eval
  906   # if we detect the quoting.
  907   # TODO: see whether this extra hack can be removed once we start
  908   # requiring Autoconf 2.70 or later.
  909   AS_CASE([$CONFIG_FILES],
  910           [*\'*], [eval set x "$CONFIG_FILES"],
  911           [*], [set x $CONFIG_FILES])
  912   shift
  913   # Used to flag and report bootstrapping failures.
  914   am_rc=0
  915   for am_mf
  916   do
  917     # Strip MF so we end up with the name of the file.
  918     am_mf=`AS_ECHO(["$am_mf"]) | sed -e 's/:.*$//'`
  919     # Check whether this is an Automake generated Makefile which includes
  920     # dependency-tracking related rules and includes.
  921     # Grep'ing the whole file directly is not great: AIX grep has a line
  922     # limit of 2048, but all sed's we know have understand at least 4000.
  923     sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
  924       || continue
  925     am_dirpart=`AS_DIRNAME(["$am_mf"])`
  926     am_filepart=`AS_BASENAME(["$am_mf"])`
  927     AM_RUN_LOG([cd "$am_dirpart" \
  928       && sed -e '/# am--include-marker/d' "$am_filepart" \
  929         | $MAKE -f - am--depfiles]) || am_rc=$?
  930   done
  931   if test $am_rc -ne 0; then
  932     AC_MSG_FAILURE([Something went wrong bootstrapping makefile fragments
  933     for automatic dependency tracking.  If GNU make was not used, consider
  934     re-running the configure script with MAKE="gmake" (or whatever is
  935     necessary).  You can also try re-running configure with the
  936     '--disable-dependency-tracking' option to at least be able to build
  937     the package (albeit without support for automatic dependency tracking).])
  938   fi
  939   AS_UNSET([am_dirpart])
  940   AS_UNSET([am_filepart])
  941   AS_UNSET([am_mf])
  942   AS_UNSET([am_rc])
  943   rm -f conftest-deps.mk
  944 }
  945 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
  946 
  947 
  948 # AM_OUTPUT_DEPENDENCY_COMMANDS
  949 # -----------------------------
  950 # This macro should only be invoked once -- use via AC_REQUIRE.
  951 #
  952 # This code is only required when automatic dependency tracking is enabled.
  953 # This creates each '.Po' and '.Plo' makefile fragment that we'll need in
  954 # order to bootstrap the dependency handling code.
  955 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
  956 [AC_CONFIG_COMMANDS([depfiles],
  957      [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
  958      [AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"])])
  959 
  960 # Do all the work for Automake.                             -*- Autoconf -*-
  961 
  962 # Copyright (C) 1996-2020 Free Software Foundation, Inc.
  963 #
  964 # This file is free software; the Free Software Foundation
  965 # gives unlimited permission to copy and/or distribute it,
  966 # with or without modifications, as long as this notice is preserved.
  967 
  968 # This macro actually does too much.  Some checks are only needed if
  969 # your package does certain things.  But this isn't really a big deal.
  970 
  971 dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
  972 m4_define([AC_PROG_CC],
  973 m4_defn([AC_PROG_CC])
  974 [_AM_PROG_CC_C_O
  975 ])
  976 
  977 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
  978 # AM_INIT_AUTOMAKE([OPTIONS])
  979 # -----------------------------------------------
  980 # The call with PACKAGE and VERSION arguments is the old style
  981 # call (pre autoconf-2.50), which is being phased out.  PACKAGE
  982 # and VERSION should now be passed to AC_INIT and removed from
  983 # the call to AM_INIT_AUTOMAKE.
  984 # We support both call styles for the transition.  After
  985 # the next Automake release, Autoconf can make the AC_INIT
  986 # arguments mandatory, and then we can depend on a new Autoconf
  987 # release and drop the old call support.
  988 AC_DEFUN([AM_INIT_AUTOMAKE],
  989 [AC_PREREQ([2.65])dnl
  990 dnl Autoconf wants to disallow AM_ names.  We explicitly allow
  991 dnl the ones we care about.
  992 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
  993 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
  994 AC_REQUIRE([AC_PROG_INSTALL])dnl
  995 if test "`cd $srcdir && pwd`" != "`pwd`"; then
  996   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  997   # is not polluted with repeated "-I."
  998   AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
  999   # test to see if srcdir already configured
 1000   if test -f $srcdir/config.status; then
 1001     AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
 1002   fi
 1003 fi
 1004 
 1005 # test whether we have cygpath
 1006 if test -z "$CYGPATH_W"; then
 1007   if (cygpath --version) >/dev/null 2>/dev/null; then
 1008     CYGPATH_W='cygpath -w'
 1009   else
 1010     CYGPATH_W=echo
 1011   fi
 1012 fi
 1013 AC_SUBST([CYGPATH_W])
 1014 
 1015 # Define the identity of the package.
 1016 dnl Distinguish between old-style and new-style calls.
 1017 m4_ifval([$2],
 1018 [AC_DIAGNOSE([obsolete],
 1019              [$0: two- and three-arguments forms are deprecated.])
 1020 m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
 1021  AC_SUBST([PACKAGE], [$1])dnl
 1022  AC_SUBST([VERSION], [$2])],
 1023 [_AM_SET_OPTIONS([$1])dnl
 1024 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
 1025 m4_if(
 1026   m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
 1027   [ok:ok],,
 1028   [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
 1029  AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
 1030  AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
 1031 
 1032 _AM_IF_OPTION([no-define],,
 1033 [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
 1034  AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
 1035 
 1036 # Some tools Automake needs.
 1037 AC_REQUIRE([AM_SANITY_CHECK])dnl
 1038 AC_REQUIRE([AC_ARG_PROGRAM])dnl
 1039 AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
 1040 AM_MISSING_PROG([AUTOCONF], [autoconf])
 1041 AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
 1042 AM_MISSING_PROG([AUTOHEADER], [autoheader])
 1043 AM_MISSING_PROG([MAKEINFO], [makeinfo])
 1044 AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
 1045 AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
 1046 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
 1047 # For better backward compatibility.  To be removed once Automake 1.9.x
 1048 # dies out for good.  For more background, see:
 1049 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
 1050 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
 1051 AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
 1052 # We need awk for the "check" target (and possibly the TAP driver).  The
 1053 # system "awk" is bad on some platforms.
 1054 AC_REQUIRE([AC_PROG_AWK])dnl
 1055 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
 1056 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
 1057 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
 1058 	      [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
 1059 			     [_AM_PROG_TAR([v7])])])
 1060 _AM_IF_OPTION([no-dependencies],,
 1061 [AC_PROVIDE_IFELSE([AC_PROG_CC],
 1062 		  [_AM_DEPENDENCIES([CC])],
 1063 		  [m4_define([AC_PROG_CC],
 1064 			     m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
 1065 AC_PROVIDE_IFELSE([AC_PROG_CXX],
 1066 		  [_AM_DEPENDENCIES([CXX])],
 1067 		  [m4_define([AC_PROG_CXX],
 1068 			     m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
 1069 AC_PROVIDE_IFELSE([AC_PROG_OBJC],
 1070 		  [_AM_DEPENDENCIES([OBJC])],
 1071 		  [m4_define([AC_PROG_OBJC],
 1072 			     m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
 1073 AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
 1074 		  [_AM_DEPENDENCIES([OBJCXX])],
 1075 		  [m4_define([AC_PROG_OBJCXX],
 1076 			     m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
 1077 ])
 1078 AC_REQUIRE([AM_SILENT_RULES])dnl
 1079 dnl The testsuite driver may need to know about EXEEXT, so add the
 1080 dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This
 1081 dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
 1082 AC_CONFIG_COMMANDS_PRE(dnl
 1083 [m4_provide_if([_AM_COMPILER_EXEEXT],
 1084   [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
 1085 
 1086 # POSIX will say in a future version that running "rm -f" with no argument
 1087 # is OK; and we want to be able to make that assumption in our Makefile
 1088 # recipes.  So use an aggressive probe to check that the usage we want is
 1089 # actually supported "in the wild" to an acceptable degree.
 1090 # See automake bug#10828.
 1091 # To make any issue more visible, cause the running configure to be aborted
 1092 # by default if the 'rm' program in use doesn't match our expectations; the
 1093 # user can still override this though.
 1094 if rm -f && rm -fr && rm -rf; then : OK; else
 1095   cat >&2 <<'END'
 1096 Oops!
 1097 
 1098 Your 'rm' program seems unable to run without file operands specified
 1099 on the command line, even when the '-f' option is present.  This is contrary
 1100 to the behaviour of most rm programs out there, and not conforming with
 1101 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
 1102 
 1103 Please tell bug-automake@gnu.org about your system, including the value
 1104 of your $PATH and any error possibly output before this message.  This
 1105 can help us improve future automake versions.
 1106 
 1107 END
 1108   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
 1109     echo 'Configuration will proceed anyway, since you have set the' >&2
 1110     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
 1111     echo >&2
 1112   else
 1113     cat >&2 <<'END'
 1114 Aborting the configuration process, to ensure you take notice of the issue.
 1115 
 1116 You can download and install GNU coreutils to get an 'rm' implementation
 1117 that behaves properly: <https://www.gnu.org/software/coreutils/>.
 1118 
 1119 If you want to complete the configuration process using your problematic
 1120 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
 1121 to "yes", and re-run configure.
 1122 
 1123 END
 1124     AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
 1125   fi
 1126 fi
 1127 dnl The trailing newline in this macro's definition is deliberate, for
 1128 dnl backward compatibility and to allow trailing 'dnl'-style comments
 1129 dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841.
 1130 ])
 1131 
 1132 dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
 1133 dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
 1134 dnl mangled by Autoconf and run in a shell conditional statement.
 1135 m4_define([_AC_COMPILER_EXEEXT],
 1136 m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
 1137 
 1138 # When config.status generates a header, we must update the stamp-h file.
 1139 # This file resides in the same directory as the config header
 1140 # that is generated.  The stamp files are numbered to have different names.
 1141 
 1142 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
 1143 # loop where config.status creates the headers, so we can generate
 1144 # our stamp files there.
 1145 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
 1146 [# Compute $1's index in $config_headers.
 1147 _am_arg=$1
 1148 _am_stamp_count=1
 1149 for _am_header in $config_headers :; do
 1150   case $_am_header in
 1151     $_am_arg | $_am_arg:* )
 1152       break ;;
 1153     * )
 1154       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 1155   esac
 1156 done
 1157 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
 1158 
 1159 # Copyright (C) 2001-2020 Free Software Foundation, Inc.
 1160 #
 1161 # This file is free software; the Free Software Foundation
 1162 # gives unlimited permission to copy and/or distribute it,
 1163 # with or without modifications, as long as this notice is preserved.
 1164 
 1165 # AM_PROG_INSTALL_SH
 1166 # ------------------
 1167 # Define $install_sh.
 1168 AC_DEFUN([AM_PROG_INSTALL_SH],
 1169 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 1170 if test x"${install_sh+set}" != xset; then
 1171   case $am_aux_dir in
 1172   *\ * | *\	*)
 1173     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
 1174   *)
 1175     install_sh="\${SHELL} $am_aux_dir/install-sh"
 1176   esac
 1177 fi
 1178 AC_SUBST([install_sh])])
 1179 
 1180 # Copyright (C) 2003-2020 Free Software Foundation, Inc.
 1181 #
 1182 # This file is free software; the Free Software Foundation
 1183 # gives unlimited permission to copy and/or distribute it,
 1184 # with or without modifications, as long as this notice is preserved.
 1185 
 1186 # Check whether the underlying file-system supports filenames
 1187 # with a leading dot.  For instance MS-DOS doesn't.
 1188 AC_DEFUN([AM_SET_LEADING_DOT],
 1189 [rm -rf .tst 2>/dev/null
 1190 mkdir .tst 2>/dev/null
 1191 if test -d .tst; then
 1192   am__leading_dot=.
 1193 else
 1194   am__leading_dot=_
 1195 fi
 1196 rmdir .tst 2>/dev/null
 1197 AC_SUBST([am__leading_dot])])
 1198 
 1199 # Check to see how 'make' treats includes.	            -*- Autoconf -*-
 1200 
 1201 # Copyright (C) 2001-2020 Free Software Foundation, Inc.
 1202 #
 1203 # This file is free software; the Free Software Foundation
 1204 # gives unlimited permission to copy and/or distribute it,
 1205 # with or without modifications, as long as this notice is preserved.
 1206 
 1207 # AM_MAKE_INCLUDE()
 1208 # -----------------
 1209 # Check whether make has an 'include' directive that can support all
 1210 # the idioms we need for our automatic dependency tracking code.
 1211 AC_DEFUN([AM_MAKE_INCLUDE],
 1212 [AC_MSG_CHECKING([whether ${MAKE-make} supports the include directive])
 1213 cat > confinc.mk << 'END'
 1214 am__doit:
 1215 	@echo this is the am__doit target >confinc.out
 1216 .PHONY: am__doit
 1217 END
 1218 am__include="#"
 1219 am__quote=
 1220 # BSD make does it like this.
 1221 echo '.include "confinc.mk" # ignored' > confmf.BSD
 1222 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
 1223 echo 'include confinc.mk # ignored' > confmf.GNU
 1224 _am_result=no
 1225 for s in GNU BSD; do
 1226   AM_RUN_LOG([${MAKE-make} -f confmf.$s && cat confinc.out])
 1227   AS_CASE([$?:`cat confinc.out 2>/dev/null`],
 1228       ['0:this is the am__doit target'],
 1229       [AS_CASE([$s],
 1230           [BSD], [am__include='.include' am__quote='"'],
 1231           [am__include='include' am__quote=''])])
 1232   if test "$am__include" != "#"; then
 1233     _am_result="yes ($s style)"
 1234     break
 1235   fi
 1236 done
 1237 rm -f confinc.* confmf.*
 1238 AC_MSG_RESULT([${_am_result}])
 1239 AC_SUBST([am__include])])
 1240 AC_SUBST([am__quote])])
 1241 
 1242 # Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
 1243 
 1244 # Copyright (C) 1997-2020 Free Software Foundation, Inc.
 1245 #
 1246 # This file is free software; the Free Software Foundation
 1247 # gives unlimited permission to copy and/or distribute it,
 1248 # with or without modifications, as long as this notice is preserved.
 1249 
 1250 # AM_MISSING_PROG(NAME, PROGRAM)
 1251 # ------------------------------
 1252 AC_DEFUN([AM_MISSING_PROG],
 1253 [AC_REQUIRE([AM_MISSING_HAS_RUN])
 1254 $1=${$1-"${am_missing_run}$2"}
 1255 AC_SUBST($1)])
 1256 
 1257 # AM_MISSING_HAS_RUN
 1258 # ------------------
 1259 # Define MISSING if not defined so far and test if it is modern enough.
 1260 # If it is, set am_missing_run to use it, otherwise, to nothing.
 1261 AC_DEFUN([AM_MISSING_HAS_RUN],
 1262 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 1263 AC_REQUIRE_AUX_FILE([missing])dnl
 1264 if test x"${MISSING+set}" != xset; then
 1265   MISSING="\${SHELL} '$am_aux_dir/missing'"
 1266 fi
 1267 # Use eval to expand $SHELL
 1268 if eval "$MISSING --is-lightweight"; then
 1269   am_missing_run="$MISSING "
 1270 else
 1271   am_missing_run=
 1272   AC_MSG_WARN(['missing' script is too old or missing])
 1273 fi
 1274 ])
 1275 
 1276 # Helper functions for option handling.                     -*- Autoconf -*-
 1277 
 1278 # Copyright (C) 2001-2020 Free Software Foundation, Inc.
 1279 #
 1280 # This file is free software; the Free Software Foundation
 1281 # gives unlimited permission to copy and/or distribute it,
 1282 # with or without modifications, as long as this notice is preserved.
 1283 
 1284 # _AM_MANGLE_OPTION(NAME)
 1285 # -----------------------
 1286 AC_DEFUN([_AM_MANGLE_OPTION],
 1287 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
 1288 
 1289 # _AM_SET_OPTION(NAME)
 1290 # --------------------
 1291 # Set option NAME.  Presently that only means defining a flag for this option.
 1292 AC_DEFUN([_AM_SET_OPTION],
 1293 [m4_define(_AM_MANGLE_OPTION([$1]), [1])])
 1294 
 1295 # _AM_SET_OPTIONS(OPTIONS)
 1296 # ------------------------
 1297 # OPTIONS is a space-separated list of Automake options.
 1298 AC_DEFUN([_AM_SET_OPTIONS],
 1299 [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
 1300 
 1301 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
 1302 # -------------------------------------------
 1303 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
 1304 AC_DEFUN([_AM_IF_OPTION],
 1305 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
 1306 
 1307 # Copyright (C) 1999-2020 Free Software Foundation, Inc.
 1308 #
 1309 # This file is free software; the Free Software Foundation
 1310 # gives unlimited permission to copy and/or distribute it,
 1311 # with or without modifications, as long as this notice is preserved.
 1312 
 1313 # _AM_PROG_CC_C_O
 1314 # ---------------
 1315 # Like AC_PROG_CC_C_O, but changed for automake.  We rewrite AC_PROG_CC
 1316 # to automatically call this.
 1317 AC_DEFUN([_AM_PROG_CC_C_O],
 1318 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 1319 AC_REQUIRE_AUX_FILE([compile])dnl
 1320 AC_LANG_PUSH([C])dnl
 1321 AC_CACHE_CHECK(
 1322   [whether $CC understands -c and -o together],
 1323   [am_cv_prog_cc_c_o],
 1324   [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
 1325   # Make sure it works both with $CC and with simple cc.
 1326   # Following AC_PROG_CC_C_O, we do the test twice because some
 1327   # compilers refuse to overwrite an existing .o file with -o,
 1328   # though they will create one.
 1329   am_cv_prog_cc_c_o=yes
 1330   for am_i in 1 2; do
 1331     if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
 1332          && test -f conftest2.$ac_objext; then
 1333       : OK
 1334     else
 1335       am_cv_prog_cc_c_o=no
 1336       break
 1337     fi
 1338   done
 1339   rm -f core conftest*
 1340   unset am_i])
 1341 if test "$am_cv_prog_cc_c_o" != yes; then
 1342    # Losing compiler, so override with the script.
 1343    # FIXME: It is wrong to rewrite CC.
 1344    # But if we don't then we get into trouble of one sort or another.
 1345    # A longer-term fix would be to have automake use am__CC in this case,
 1346    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
 1347    CC="$am_aux_dir/compile $CC"
 1348 fi
 1349 AC_LANG_POP([C])])
 1350 
 1351 # For backward compatibility.
 1352 AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
 1353 
 1354 # Copyright (C) 2001-2020 Free Software Foundation, Inc.
 1355 #
 1356 # This file is free software; the Free Software Foundation
 1357 # gives unlimited permission to copy and/or distribute it,
 1358 # with or without modifications, as long as this notice is preserved.
 1359 
 1360 # AM_RUN_LOG(COMMAND)
 1361 # -------------------
 1362 # Run COMMAND, save the exit status in ac_status, and log it.
 1363 # (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
 1364 AC_DEFUN([AM_RUN_LOG],
 1365 [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
 1366    ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
 1367    ac_status=$?
 1368    echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
 1369    (exit $ac_status); }])
 1370 
 1371 # Check to make sure that the build environment is sane.    -*- Autoconf -*-
 1372 
 1373 # Copyright (C) 1996-2020 Free Software Foundation, Inc.
 1374 #
 1375 # This file is free software; the Free Software Foundation
 1376 # gives unlimited permission to copy and/or distribute it,
 1377 # with or without modifications, as long as this notice is preserved.
 1378 
 1379 # AM_SANITY_CHECK
 1380 # ---------------
 1381 AC_DEFUN([AM_SANITY_CHECK],
 1382 [AC_MSG_CHECKING([whether build environment is sane])
 1383 # Reject unsafe characters in $srcdir or the absolute working directory
 1384 # name.  Accept space and tab only in the latter.
 1385 am_lf='
 1386 '
 1387 case `pwd` in
 1388   *[[\\\"\#\$\&\'\`$am_lf]]*)
 1389     AC_MSG_ERROR([unsafe absolute working directory name]);;
 1390 esac
 1391 case $srcdir in
 1392   *[[\\\"\#\$\&\'\`$am_lf\ \	]]*)
 1393     AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
 1394 esac
 1395 
 1396 # Do 'set' in a subshell so we don't clobber the current shell's
 1397 # arguments.  Must try -L first in case configure is actually a
 1398 # symlink; some systems play weird games with the mod time of symlinks
 1399 # (eg FreeBSD returns the mod time of the symlink's containing
 1400 # directory).
 1401 if (
 1402    am_has_slept=no
 1403    for am_try in 1 2; do
 1404      echo "timestamp, slept: $am_has_slept" > conftest.file
 1405      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
 1406      if test "$[*]" = "X"; then
 1407 	# -L didn't work.
 1408 	set X `ls -t "$srcdir/configure" conftest.file`
 1409      fi
 1410      if test "$[*]" != "X $srcdir/configure conftest.file" \
 1411 	&& test "$[*]" != "X conftest.file $srcdir/configure"; then
 1412 
 1413 	# If neither matched, then we have a broken ls.  This can happen
 1414 	# if, for instance, CONFIG_SHELL is bash and it inherits a
 1415 	# broken ls alias from the environment.  This has actually
 1416 	# happened.  Such a system could not be considered "sane".
 1417 	AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
 1418   alias in your environment])
 1419      fi
 1420      if test "$[2]" = conftest.file || test $am_try -eq 2; then
 1421        break
 1422      fi
 1423      # Just in case.
 1424      sleep 1
 1425      am_has_slept=yes
 1426    done
 1427    test "$[2]" = conftest.file
 1428    )
 1429 then
 1430    # Ok.
 1431    :
 1432 else
 1433    AC_MSG_ERROR([newly created file is older than distributed files!
 1434 Check your system clock])
 1435 fi
 1436 AC_MSG_RESULT([yes])
 1437 # If we didn't sleep, we still need to ensure time stamps of config.status and
 1438 # generated files are strictly newer.
 1439 am_sleep_pid=
 1440 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
 1441   ( sleep 1 ) &
 1442   am_sleep_pid=$!
 1443 fi
 1444 AC_CONFIG_COMMANDS_PRE(
 1445   [AC_MSG_CHECKING([that generated files are newer than configure])
 1446    if test -n "$am_sleep_pid"; then
 1447      # Hide warnings about reused PIDs.
 1448      wait $am_sleep_pid 2>/dev/null
 1449    fi
 1450    AC_MSG_RESULT([done])])
 1451 rm -f conftest.file
 1452 ])
 1453 
 1454 # Copyright (C) 2009-2020 Free Software Foundation, Inc.
 1455 #
 1456 # This file is free software; the Free Software Foundation
 1457 # gives unlimited permission to copy and/or distribute it,
 1458 # with or without modifications, as long as this notice is preserved.
 1459 
 1460 # AM_SILENT_RULES([DEFAULT])
 1461 # --------------------------
 1462 # Enable less verbose build rules; with the default set to DEFAULT
 1463 # ("yes" being less verbose, "no" or empty being verbose).
 1464 AC_DEFUN([AM_SILENT_RULES],
 1465 [AC_ARG_ENABLE([silent-rules], [dnl
 1466 AS_HELP_STRING(
 1467   [--enable-silent-rules],
 1468   [less verbose build output (undo: "make V=1")])
 1469 AS_HELP_STRING(
 1470   [--disable-silent-rules],
 1471   [verbose build output (undo: "make V=0")])dnl
 1472 ])
 1473 case $enable_silent_rules in @%:@ (((
 1474   yes) AM_DEFAULT_VERBOSITY=0;;
 1475    no) AM_DEFAULT_VERBOSITY=1;;
 1476     *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
 1477 esac
 1478 dnl
 1479 dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
 1480 dnl do not support nested variable expansions.
 1481 dnl See automake bug#9928 and bug#10237.
 1482 am_make=${MAKE-make}
 1483 AC_CACHE_CHECK([whether $am_make supports nested variables],
 1484    [am_cv_make_support_nested_variables],
 1485    [if AS_ECHO([['TRUE=$(BAR$(V))
 1486 BAR0=false
 1487 BAR1=true
 1488 V=1
 1489 am__doit:
 1490 	@$(TRUE)
 1491 .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
 1492   am_cv_make_support_nested_variables=yes
 1493 else
 1494   am_cv_make_support_nested_variables=no
 1495 fi])
 1496 if test $am_cv_make_support_nested_variables = yes; then
 1497   dnl Using '$V' instead of '$(V)' breaks IRIX make.
 1498   AM_V='$(V)'
 1499   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
 1500 else
 1501   AM_V=$AM_DEFAULT_VERBOSITY
 1502   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
 1503 fi
 1504 AC_SUBST([AM_V])dnl
 1505 AM_SUBST_NOTMAKE([AM_V])dnl
 1506 AC_SUBST([AM_DEFAULT_V])dnl
 1507 AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
 1508 AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
 1509 AM_BACKSLASH='\'
 1510 AC_SUBST([AM_BACKSLASH])dnl
 1511 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
 1512 ])
 1513 
 1514 # Copyright (C) 2001-2020 Free Software Foundation, Inc.
 1515 #
 1516 # This file is free software; the Free Software Foundation
 1517 # gives unlimited permission to copy and/or distribute it,
 1518 # with or without modifications, as long as this notice is preserved.
 1519 
 1520 # AM_PROG_INSTALL_STRIP
 1521 # ---------------------
 1522 # One issue with vendor 'install' (even GNU) is that you can't
 1523 # specify the program used to strip binaries.  This is especially
 1524 # annoying in cross-compiling environments, where the build's strip
 1525 # is unlikely to handle the host's binaries.
 1526 # Fortunately install-sh will honor a STRIPPROG variable, so we
 1527 # always use install-sh in "make install-strip", and initialize
 1528 # STRIPPROG with the value of the STRIP variable (set by the user).
 1529 AC_DEFUN([AM_PROG_INSTALL_STRIP],
 1530 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
 1531 # Installed binaries are usually stripped using 'strip' when the user
 1532 # run "make install-strip".  However 'strip' might not be the right
 1533 # tool to use in cross-compilation environments, therefore Automake
 1534 # will honor the 'STRIP' environment variable to overrule this program.
 1535 dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
 1536 if test "$cross_compiling" != no; then
 1537   AC_CHECK_TOOL([STRIP], [strip], :)
 1538 fi
 1539 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
 1540 AC_SUBST([INSTALL_STRIP_PROGRAM])])
 1541 
 1542 # Copyright (C) 2006-2020 Free Software Foundation, Inc.
 1543 #
 1544 # This file is free software; the Free Software Foundation
 1545 # gives unlimited permission to copy and/or distribute it,
 1546 # with or without modifications, as long as this notice is preserved.
 1547 
 1548 # _AM_SUBST_NOTMAKE(VARIABLE)
 1549 # ---------------------------
 1550 # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
 1551 # This macro is traced by Automake.
 1552 AC_DEFUN([_AM_SUBST_NOTMAKE])
 1553 
 1554 # AM_SUBST_NOTMAKE(VARIABLE)
 1555 # --------------------------
 1556 # Public sister of _AM_SUBST_NOTMAKE.
 1557 AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
 1558 
 1559 # Check how to create a tarball.                            -*- Autoconf -*-
 1560 
 1561 # Copyright (C) 2004-2020 Free Software Foundation, Inc.
 1562 #
 1563 # This file is free software; the Free Software Foundation
 1564 # gives unlimited permission to copy and/or distribute it,
 1565 # with or without modifications, as long as this notice is preserved.
 1566 
 1567 # _AM_PROG_TAR(FORMAT)
 1568 # --------------------
 1569 # Check how to create a tarball in format FORMAT.
 1570 # FORMAT should be one of 'v7', 'ustar', or 'pax'.
 1571 #
 1572 # Substitute a variable $(am__tar) that is a command
 1573 # writing to stdout a FORMAT-tarball containing the directory
 1574 # $tardir.
 1575 #     tardir=directory && $(am__tar) > result.tar
 1576 #
 1577 # Substitute a variable $(am__untar) that extract such
 1578 # a tarball read from stdin.
 1579 #     $(am__untar) < result.tar
 1580 #
 1581 AC_DEFUN([_AM_PROG_TAR],
 1582 [# Always define AMTAR for backward compatibility.  Yes, it's still used
 1583 # in the wild :-(  We should find a proper way to deprecate it ...
 1584 AC_SUBST([AMTAR], ['$${TAR-tar}'])
 1585 
 1586 # We'll loop over all known methods to create a tar archive until one works.
 1587 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
 1588 
 1589 m4_if([$1], [v7],
 1590   [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
 1591 
 1592   [m4_case([$1],
 1593     [ustar],
 1594      [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
 1595       # There is notably a 21 bits limit for the UID and the GID.  In fact,
 1596       # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
 1597       # and bug#13588).
 1598       am_max_uid=2097151 # 2^21 - 1
 1599       am_max_gid=$am_max_uid
 1600       # The $UID and $GID variables are not portable, so we need to resort
 1601       # to the POSIX-mandated id(1) utility.  Errors in the 'id' calls
 1602       # below are definitely unexpected, so allow the users to see them
 1603       # (that is, avoid stderr redirection).
 1604       am_uid=`id -u || echo unknown`
 1605       am_gid=`id -g || echo unknown`
 1606       AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
 1607       if test $am_uid -le $am_max_uid; then
 1608          AC_MSG_RESULT([yes])
 1609       else
 1610          AC_MSG_RESULT([no])
 1611          _am_tools=none
 1612       fi
 1613       AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
 1614       if test $am_gid -le $am_max_gid; then
 1615          AC_MSG_RESULT([yes])
 1616       else
 1617         AC_MSG_RESULT([no])
 1618         _am_tools=none
 1619       fi],
 1620 
 1621   [pax],
 1622     [],
 1623 
 1624   [m4_fatal([Unknown tar format])])
 1625 
 1626   AC_MSG_CHECKING([how to create a $1 tar archive])
 1627 
 1628   # Go ahead even if we have the value already cached.  We do so because we
 1629   # need to set the values for the 'am__tar' and 'am__untar' variables.
 1630   _am_tools=${am_cv_prog_tar_$1-$_am_tools}
 1631 
 1632   for _am_tool in $_am_tools; do
 1633     case $_am_tool in
 1634     gnutar)
 1635       for _am_tar in tar gnutar gtar; do
 1636         AM_RUN_LOG([$_am_tar --version]) && break
 1637       done
 1638       am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
 1639       am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
 1640       am__untar="$_am_tar -xf -"
 1641       ;;
 1642     plaintar)
 1643       # Must skip GNU tar: if it does not support --format= it doesn't create
 1644       # ustar tarball either.
 1645       (tar --version) >/dev/null 2>&1 && continue
 1646       am__tar='tar chf - "$$tardir"'
 1647       am__tar_='tar chf - "$tardir"'
 1648       am__untar='tar xf -'
 1649       ;;
 1650     pax)
 1651       am__tar='pax -L -x $1 -w "$$tardir"'
 1652       am__tar_='pax -L -x $1 -w "$tardir"'
 1653       am__untar='pax -r'
 1654       ;;
 1655     cpio)
 1656       am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
 1657       am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
 1658       am__untar='cpio -i -H $1 -d'
 1659       ;;
 1660     none)
 1661       am__tar=false
 1662       am__tar_=false
 1663       am__untar=false
 1664       ;;
 1665     esac
 1666 
 1667     # If the value was cached, stop now.  We just wanted to have am__tar
 1668     # and am__untar set.
 1669     test -n "${am_cv_prog_tar_$1}" && break
 1670 
 1671     # tar/untar a dummy directory, and stop if the command works.
 1672     rm -rf conftest.dir
 1673     mkdir conftest.dir
 1674     echo GrepMe > conftest.dir/file
 1675     AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
 1676     rm -rf conftest.dir
 1677     if test -s conftest.tar; then
 1678       AM_RUN_LOG([$am__untar <conftest.tar])
 1679       AM_RUN_LOG([cat conftest.dir/file])
 1680       grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
 1681     fi
 1682   done
 1683   rm -rf conftest.dir
 1684 
 1685   AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
 1686   AC_MSG_RESULT([$am_cv_prog_tar_$1])])
 1687 
 1688 AC_SUBST([am__tar])
 1689 AC_SUBST([am__untar])
 1690 ]) # _AM_PROG_TAR
 1691 
 1692 m4_include([m4/libtool.m4])
 1693 m4_include([m4/ltoptions.m4])
 1694 m4_include([m4/ltsugar.m4])
 1695 m4_include([m4/ltversion.m4])
 1696 m4_include([m4/lt~obsolete.m4])