|
|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
# generated automatically by aclocal 1.16.2 -*- Autoconf -*-
|
|
|
|
|
# generated automatically by aclocal 1.18.1 -*- Autoconf -*-
|
|
|
|
|
|
|
|
|
|
# Copyright (C) 1996-2020 Free Software Foundation, Inc.
|
|
|
|
|
# Copyright (C) 1996-2025 Free Software Foundation, Inc.
|
|
|
|
|
|
|
|
|
|
# This file is free software; the Free Software Foundation
|
|
|
|
|
# gives unlimited permission to copy and/or distribute it,
|
|
|
|
|
@ -14,14 +14,14 @@
|
|
|
|
|
m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
|
|
|
|
|
m4_ifndef([AC_AUTOCONF_VERSION],
|
|
|
|
|
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
|
|
|
|
|
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
|
|
|
|
|
[m4_warning([this file was generated for autoconf 2.69.
|
|
|
|
|
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.72],,
|
|
|
|
|
[m4_warning([this file was generated for autoconf 2.72.
|
|
|
|
|
You have another version of autoconf. It may work, but is not guaranteed to.
|
|
|
|
|
If you have problems, you may need to regenerate the build system entirely.
|
|
|
|
|
To do so, use the procedure documented by the package, typically 'autoreconf'.])])
|
|
|
|
|
|
|
|
|
|
# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
|
|
|
|
|
# serial 12 (pkg-config-0.29.2)
|
|
|
|
|
# pkg.m4 - Macros to locate and use pkg-config. -*- Autoconf -*-
|
|
|
|
|
# serial 13 (pkgconf)
|
|
|
|
|
|
|
|
|
|
dnl Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
|
|
|
|
|
dnl Copyright © 2012-2015 Dan Nicholson <dbn.lists@gmail.com>
|
|
|
|
|
@ -37,9 +37,7 @@ dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
|
dnl General Public License for more details.
|
|
|
|
|
dnl
|
|
|
|
|
dnl You should have received a copy of the GNU General Public License
|
|
|
|
|
dnl along with this program; if not, write to the Free Software
|
|
|
|
|
dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
|
|
|
|
|
dnl 02111-1307, USA.
|
|
|
|
|
dnl along with this program; if not, see <https://www.gnu.org/licenses/>.
|
|
|
|
|
dnl
|
|
|
|
|
dnl As a special exception to the GNU General Public License, if you
|
|
|
|
|
dnl distribute this file as part of a program that contains a
|
|
|
|
|
@ -68,8 +66,8 @@ m4_if(m4_version_compare(PKG_MACROS_VERSION, [$1]), -1,
|
|
|
|
|
[m4_fatal([pkg.m4 version $1 or higher is required but ]PKG_MACROS_VERSION[ found])])
|
|
|
|
|
])dnl PKG_PREREQ
|
|
|
|
|
|
|
|
|
|
dnl PKG_PROG_PKG_CONFIG([MIN-VERSION])
|
|
|
|
|
dnl ----------------------------------
|
|
|
|
|
dnl PKG_PROG_PKG_CONFIG([MIN-VERSION], [ACTION-IF-NOT-FOUND])
|
|
|
|
|
dnl ---------------------------------------------------------
|
|
|
|
|
dnl Since: 0.16
|
|
|
|
|
dnl
|
|
|
|
|
dnl Search for the pkg-config tool and set the PKG_CONFIG variable to
|
|
|
|
|
@ -77,6 +75,12 @@ dnl first found in the path. Checks that the version of pkg-config found
|
|
|
|
|
dnl is at least MIN-VERSION. If MIN-VERSION is not specified, 0.9.0 is
|
|
|
|
|
dnl used since that's the first version where most current features of
|
|
|
|
|
dnl pkg-config existed.
|
|
|
|
|
dnl
|
|
|
|
|
dnl If pkg-config is not found or older than specified, it will result
|
|
|
|
|
dnl in an empty PKG_CONFIG variable. To avoid widespread issues with
|
|
|
|
|
dnl scripts not checking it, ACTION-IF-NOT-FOUND defaults to aborting.
|
|
|
|
|
dnl You can specify [PKG_CONFIG=false] as an action instead, which would
|
|
|
|
|
dnl result in pkg-config tests failing, but no bogus error messages.
|
|
|
|
|
AC_DEFUN([PKG_PROG_PKG_CONFIG],
|
|
|
|
|
[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
|
|
|
|
|
m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$])
|
|
|
|
|
@ -97,6 +101,9 @@ if test -n "$PKG_CONFIG"; then
|
|
|
|
|
AC_MSG_RESULT([no])
|
|
|
|
|
PKG_CONFIG=""
|
|
|
|
|
fi
|
|
|
|
|
fi
|
|
|
|
|
if test -z "$PKG_CONFIG"; then
|
|
|
|
|
m4_default([$2], [AC_MSG_ERROR([pkg-config not found])])
|
|
|
|
|
fi[]dnl
|
|
|
|
|
])dnl PKG_PROG_PKG_CONFIG
|
|
|
|
|
|
|
|
|
|
@ -108,7 +115,7 @@ dnl Check to see whether a particular set of modules exists. Similar to
|
|
|
|
|
dnl PKG_CHECK_MODULES(), but does not set variables or print errors.
|
|
|
|
|
dnl
|
|
|
|
|
dnl Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
|
|
|
|
|
dnl only at the first occurence in configure.ac, so if the first place
|
|
|
|
|
dnl only at the first occurrence in configure.ac, so if the first place
|
|
|
|
|
dnl it's called might be skipped (such as if it is within an "if", you
|
|
|
|
|
dnl have to call PKG_CHECK_EXISTS manually
|
|
|
|
|
AC_DEFUN([PKG_CHECK_EXISTS],
|
|
|
|
|
@ -177,14 +184,14 @@ if test $pkg_failed = yes; then
|
|
|
|
|
AC_MSG_RESULT([no])
|
|
|
|
|
_PKG_SHORT_ERRORS_SUPPORTED
|
|
|
|
|
if test $_pkg_short_errors_supported = yes; then
|
|
|
|
|
$1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1`
|
|
|
|
|
$1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1`
|
|
|
|
|
else
|
|
|
|
|
$1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
|
|
|
|
|
$1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
|
|
|
|
|
fi
|
|
|
|
|
# Put the nasty error message in config.log where it belongs
|
|
|
|
|
echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
|
|
|
|
|
# Put the nasty error message in config.log where it belongs
|
|
|
|
|
echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
|
|
|
|
|
|
|
|
|
|
m4_default([$4], [AC_MSG_ERROR(
|
|
|
|
|
m4_default([$4], [AC_MSG_ERROR(
|
|
|
|
|
[Package requirements ($2) were not met:
|
|
|
|
|
|
|
|
|
|
$$1_PKG_ERRORS
|
|
|
|
|
@ -196,7 +203,7 @@ _PKG_TEXT])[]dnl
|
|
|
|
|
])
|
|
|
|
|
elif test $pkg_failed = untried; then
|
|
|
|
|
AC_MSG_RESULT([no])
|
|
|
|
|
m4_default([$4], [AC_MSG_FAILURE(
|
|
|
|
|
m4_default([$4], [AC_MSG_FAILURE(
|
|
|
|
|
[The pkg-config script could not be found or is too old. Make sure it
|
|
|
|
|
is in your PATH or set the PKG_CONFIG environment variable to the full
|
|
|
|
|
path to pkg-config.
|
|
|
|
|
@ -206,10 +213,10 @@ _PKG_TEXT
|
|
|
|
|
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl
|
|
|
|
|
])
|
|
|
|
|
else
|
|
|
|
|
$1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
|
|
|
|
|
$1[]_LIBS=$pkg_cv_[]$1[]_LIBS
|
|
|
|
|
$1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
|
|
|
|
|
$1[]_LIBS=$pkg_cv_[]$1[]_LIBS
|
|
|
|
|
AC_MSG_RESULT([yes])
|
|
|
|
|
$3
|
|
|
|
|
$3
|
|
|
|
|
fi[]dnl
|
|
|
|
|
])dnl PKG_CHECK_MODULES
|
|
|
|
|
|
|
|
|
|
@ -296,7 +303,75 @@ AS_VAR_COPY([$1], [pkg_cv_][$1])
|
|
|
|
|
AS_VAR_IF([$1], [""], [$5], [$4])dnl
|
|
|
|
|
])dnl PKG_CHECK_VAR
|
|
|
|
|
|
|
|
|
|
# Copyright (C) 2002-2020 Free Software Foundation, Inc.
|
|
|
|
|
dnl PKG_WITH_MODULES(VARIABLE-PREFIX, MODULES,
|
|
|
|
|
dnl [ACTION-IF-FOUND],[ACTION-IF-NOT-FOUND],
|
|
|
|
|
dnl [DESCRIPTION], [DEFAULT])
|
|
|
|
|
dnl ------------------------------------------
|
|
|
|
|
dnl
|
|
|
|
|
dnl Prepare a "--with-" configure option using the lowercase
|
|
|
|
|
dnl [VARIABLE-PREFIX] name, merging the behaviour of AC_ARG_WITH and
|
|
|
|
|
dnl PKG_CHECK_MODULES in a single macro.
|
|
|
|
|
AC_DEFUN([PKG_WITH_MODULES],
|
|
|
|
|
[
|
|
|
|
|
m4_pushdef([with_arg], m4_tolower([$1]))
|
|
|
|
|
|
|
|
|
|
m4_pushdef([description],
|
|
|
|
|
[m4_default([$5], [build with ]with_arg[ support])])
|
|
|
|
|
|
|
|
|
|
m4_pushdef([def_arg], [m4_default([$6], [auto])])
|
|
|
|
|
m4_pushdef([def_action_if_found], [AS_TR_SH([with_]with_arg)=yes])
|
|
|
|
|
m4_pushdef([def_action_if_not_found], [AS_TR_SH([with_]with_arg)=no])
|
|
|
|
|
|
|
|
|
|
m4_case(def_arg,
|
|
|
|
|
[yes],[m4_pushdef([with_without], [--without-]with_arg)],
|
|
|
|
|
[m4_pushdef([with_without],[--with-]with_arg)])
|
|
|
|
|
|
|
|
|
|
AC_ARG_WITH(with_arg,
|
|
|
|
|
AS_HELP_STRING(with_without, description[ @<:@default=]def_arg[@:>@]),,
|
|
|
|
|
[AS_TR_SH([with_]with_arg)=def_arg])
|
|
|
|
|
|
|
|
|
|
AS_CASE([$AS_TR_SH([with_]with_arg)],
|
|
|
|
|
[yes],[PKG_CHECK_MODULES([$1],[$2],$3,$4)],
|
|
|
|
|
[auto],[PKG_CHECK_MODULES([$1],[$2],
|
|
|
|
|
[m4_n([def_action_if_found]) $3],
|
|
|
|
|
[m4_n([def_action_if_not_found]) $4])])
|
|
|
|
|
|
|
|
|
|
m4_popdef([with_arg])
|
|
|
|
|
m4_popdef([description])
|
|
|
|
|
m4_popdef([def_arg])
|
|
|
|
|
|
|
|
|
|
])dnl PKG_WITH_MODULES
|
|
|
|
|
|
|
|
|
|
dnl PKG_HAVE_WITH_MODULES(VARIABLE-PREFIX, MODULES,
|
|
|
|
|
dnl [DESCRIPTION], [DEFAULT])
|
|
|
|
|
dnl -----------------------------------------------
|
|
|
|
|
dnl
|
|
|
|
|
dnl Convenience macro to trigger AM_CONDITIONAL after PKG_WITH_MODULES
|
|
|
|
|
dnl check._[VARIABLE-PREFIX] is exported as make variable.
|
|
|
|
|
AC_DEFUN([PKG_HAVE_WITH_MODULES],
|
|
|
|
|
[
|
|
|
|
|
PKG_WITH_MODULES([$1],[$2],,,[$3],[$4])
|
|
|
|
|
|
|
|
|
|
AM_CONDITIONAL([HAVE_][$1],
|
|
|
|
|
[test "$AS_TR_SH([with_]m4_tolower([$1]))" = "yes"])
|
|
|
|
|
])dnl PKG_HAVE_WITH_MODULES
|
|
|
|
|
|
|
|
|
|
dnl PKG_HAVE_DEFINE_WITH_MODULES(VARIABLE-PREFIX, MODULES,
|
|
|
|
|
dnl [DESCRIPTION], [DEFAULT])
|
|
|
|
|
dnl ------------------------------------------------------
|
|
|
|
|
dnl
|
|
|
|
|
dnl Convenience macro to run AM_CONDITIONAL and AC_DEFINE after
|
|
|
|
|
dnl PKG_WITH_MODULES check. HAVE_[VARIABLE-PREFIX] is exported as make
|
|
|
|
|
dnl and preprocessor variable.
|
|
|
|
|
AC_DEFUN([PKG_HAVE_DEFINE_WITH_MODULES],
|
|
|
|
|
[
|
|
|
|
|
PKG_HAVE_WITH_MODULES([$1],[$2],[$3],[$4])
|
|
|
|
|
|
|
|
|
|
AS_IF([test "$AS_TR_SH([with_]m4_tolower([$1]))" = "yes"],
|
|
|
|
|
[AC_DEFINE([HAVE_][$1], 1, [Enable ]m4_tolower([$1])[ support])])
|
|
|
|
|
])dnl PKG_HAVE_DEFINE_WITH_MODULES
|
|
|
|
|
|
|
|
|
|
# Copyright (C) 2002-2025 Free Software Foundation, Inc.
|
|
|
|
|
#
|
|
|
|
|
# This file is free software; the Free Software Foundation
|
|
|
|
|
# gives unlimited permission to copy and/or distribute it,
|
|
|
|
|
@ -308,10 +383,10 @@ AS_VAR_IF([$1], [""], [$5], [$4])dnl
|
|
|
|
|
# generated from the m4 files accompanying Automake X.Y.
|
|
|
|
|
# (This private macro should not be called outside this file.)
|
|
|
|
|
AC_DEFUN([AM_AUTOMAKE_VERSION],
|
|
|
|
|
[am__api_version='1.16'
|
|
|
|
|
[am__api_version='1.18'
|
|
|
|
|
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
|
|
|
|
|
dnl require some minimum version. Point them to the right macro.
|
|
|
|
|
m4_if([$1], [1.16.2], [],
|
|
|
|
|
m4_if([$1], [1.18.1], [],
|
|
|
|
|
[AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
|
|
|
|
|
])
|
|
|
|
|
|
|
|
|
|
@ -327,14 +402,14 @@ m4_define([_AM_AUTOCONF_VERSION], [])
|
|
|
|
|
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
|
|
|
|
|
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
|
|
|
|
|
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
|
|
|
|
|
[AM_AUTOMAKE_VERSION([1.16.2])dnl
|
|
|
|
|
[AM_AUTOMAKE_VERSION([1.18.1])dnl
|
|
|
|
|
m4_ifndef([AC_AUTOCONF_VERSION],
|
|
|
|
|
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
|
|
|
|
|
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
|
|
|
|
|
|
|
|
|
|
# AM_AUX_DIR_EXPAND -*- Autoconf -*-
|
|
|
|
|
|
|
|
|
|
# Copyright (C) 2001-2020 Free Software Foundation, Inc.
|
|
|
|
|
# Copyright (C) 2001-2025 Free Software Foundation, Inc.
|
|
|
|
|
#
|
|
|
|
|
# This file is free software; the Free Software Foundation
|
|
|
|
|
# gives unlimited permission to copy and/or distribute it,
|
|
|
|
|
@ -386,7 +461,7 @@ am_aux_dir=`cd "$ac_aux_dir" && pwd`
|
|
|
|
|
|
|
|
|
|
# AM_CONDITIONAL -*- Autoconf -*-
|
|
|
|
|
|
|
|
|
|
# Copyright (C) 1997-2020 Free Software Foundation, Inc.
|
|
|
|
|
# Copyright (C) 1997-2025 Free Software Foundation, Inc.
|
|
|
|
|
#
|
|
|
|
|
# This file is free software; the Free Software Foundation
|
|
|
|
|
# gives unlimited permission to copy and/or distribute it,
|
|
|
|
|
@ -417,7 +492,7 @@ AC_CONFIG_COMMANDS_PRE(
|
|
|
|
|
Usually this means the macro was only invoked conditionally.]])
|
|
|
|
|
fi])])
|
|
|
|
|
|
|
|
|
|
# Copyright (C) 1999-2020 Free Software Foundation, Inc.
|
|
|
|
|
# Copyright (C) 1999-2025 Free Software Foundation, Inc.
|
|
|
|
|
#
|
|
|
|
|
# This file is free software; the Free Software Foundation
|
|
|
|
|
# gives unlimited permission to copy and/or distribute it,
|
|
|
|
|
@ -549,7 +624,7 @@ AC_CACHE_CHECK([dependency style of $depcc],
|
|
|
|
|
# icc doesn't choke on unknown options, it will just issue warnings
|
|
|
|
|
# or remarks (even with -Werror). So we grep stderr for any message
|
|
|
|
|
# that says an option was ignored or not supported.
|
|
|
|
|
# When given -MP, icc 7.0 and 7.1 complain thusly:
|
|
|
|
|
# When given -MP, icc 7.0 and 7.1 complain thus:
|
|
|
|
|
# icc: Command line warning: ignoring option '-M'; no argument required
|
|
|
|
|
# The diagnosis changed in icc 8.0:
|
|
|
|
|
# icc: Command line remark: option '-MP' not supported
|
|
|
|
|
@ -608,7 +683,7 @@ _AM_SUBST_NOTMAKE([am__nodep])dnl
|
|
|
|
|
|
|
|
|
|
# Generate code to set up dependency tracking. -*- Autoconf -*-
|
|
|
|
|
|
|
|
|
|
# Copyright (C) 1999-2020 Free Software Foundation, Inc.
|
|
|
|
|
# Copyright (C) 1999-2025 Free Software Foundation, Inc.
|
|
|
|
|
#
|
|
|
|
|
# This file is free software; the Free Software Foundation
|
|
|
|
|
# gives unlimited permission to copy and/or distribute it,
|
|
|
|
|
@ -676,7 +751,7 @@ AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
|
|
|
|
|
|
|
|
|
|
# Do all the work for Automake. -*- Autoconf -*-
|
|
|
|
|
|
|
|
|
|
# Copyright (C) 1996-2020 Free Software Foundation, Inc.
|
|
|
|
|
# Copyright (C) 1996-2025 Free Software Foundation, Inc.
|
|
|
|
|
#
|
|
|
|
|
# This file is free software; the Free Software Foundation
|
|
|
|
|
# gives unlimited permission to copy and/or distribute it,
|
|
|
|
|
@ -704,6 +779,10 @@ m4_defn([AC_PROG_CC])
|
|
|
|
|
# release and drop the old call support.
|
|
|
|
|
AC_DEFUN([AM_INIT_AUTOMAKE],
|
|
|
|
|
[AC_PREREQ([2.65])dnl
|
|
|
|
|
m4_ifdef([_$0_ALREADY_INIT],
|
|
|
|
|
[m4_fatal([$0 expanded multiple times
|
|
|
|
|
]m4_defn([_$0_ALREADY_INIT]))],
|
|
|
|
|
[m4_define([_$0_ALREADY_INIT], m4_expansion_stack)])dnl
|
|
|
|
|
dnl Autoconf wants to disallow AM_ names. We explicitly allow
|
|
|
|
|
dnl the ones we care about.
|
|
|
|
|
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
|
|
|
|
|
@ -740,7 +819,7 @@ m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
|
|
|
|
|
[_AM_SET_OPTIONS([$1])dnl
|
|
|
|
|
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
|
|
|
|
|
m4_if(
|
|
|
|
|
m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
|
|
|
|
|
m4_ifset([AC_PACKAGE_NAME], [ok]):m4_ifset([AC_PACKAGE_VERSION], [ok]),
|
|
|
|
|
[ok:ok],,
|
|
|
|
|
[m4_fatal([AC_INIT should be called with package and version arguments])])dnl
|
|
|
|
|
AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
|
|
|
|
|
@ -772,8 +851,9 @@ AC_REQUIRE([AC_PROG_AWK])dnl
|
|
|
|
|
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
|
|
|
|
|
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
|
|
|
|
|
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
|
|
|
|
|
[_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
|
|
|
|
|
[_AM_PROG_TAR([v7])])])
|
|
|
|
|
[_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
|
|
|
|
|
[_AM_IF_OPTION([tar-v7], [_AM_PROG_TAR([v7])],
|
|
|
|
|
[_AM_PROG_TAR([ustar])])])])
|
|
|
|
|
_AM_IF_OPTION([no-dependencies],,
|
|
|
|
|
[AC_PROVIDE_IFELSE([AC_PROG_CC],
|
|
|
|
|
[_AM_DEPENDENCIES([CC])],
|
|
|
|
|
@ -792,7 +872,21 @@ AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
|
|
|
|
|
[m4_define([AC_PROG_OBJCXX],
|
|
|
|
|
m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
|
|
|
|
|
])
|
|
|
|
|
AC_REQUIRE([AM_SILENT_RULES])dnl
|
|
|
|
|
# Variables for tags utilities; see am/tags.am
|
|
|
|
|
if test -z "$CTAGS"; then
|
|
|
|
|
CTAGS=ctags
|
|
|
|
|
fi
|
|
|
|
|
AC_SUBST([CTAGS])
|
|
|
|
|
if test -z "$ETAGS"; then
|
|
|
|
|
ETAGS=etags
|
|
|
|
|
fi
|
|
|
|
|
AC_SUBST([ETAGS])
|
|
|
|
|
if test -z "$CSCOPE"; then
|
|
|
|
|
CSCOPE=cscope
|
|
|
|
|
fi
|
|
|
|
|
AC_SUBST([CSCOPE])
|
|
|
|
|
|
|
|
|
|
AC_REQUIRE([_AM_SILENT_RULES])dnl
|
|
|
|
|
dnl The testsuite driver may need to know about EXEEXT, so add the
|
|
|
|
|
dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This
|
|
|
|
|
dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
|
|
|
|
|
@ -800,47 +894,9 @@ AC_CONFIG_COMMANDS_PRE(dnl
|
|
|
|
|
[m4_provide_if([_AM_COMPILER_EXEEXT],
|
|
|
|
|
[AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
|
|
|
|
|
|
|
|
|
|
# POSIX will say in a future version that running "rm -f" with no argument
|
|
|
|
|
# is OK; and we want to be able to make that assumption in our Makefile
|
|
|
|
|
# recipes. So use an aggressive probe to check that the usage we want is
|
|
|
|
|
# actually supported "in the wild" to an acceptable degree.
|
|
|
|
|
# See automake bug#10828.
|
|
|
|
|
# To make any issue more visible, cause the running configure to be aborted
|
|
|
|
|
# by default if the 'rm' program in use doesn't match our expectations; the
|
|
|
|
|
# user can still override this though.
|
|
|
|
|
if rm -f && rm -fr && rm -rf; then : OK; else
|
|
|
|
|
cat >&2 <<'END'
|
|
|
|
|
Oops!
|
|
|
|
|
AC_REQUIRE([_AM_PROG_RM_F])
|
|
|
|
|
AC_REQUIRE([_AM_PROG_XARGS_N])
|
|
|
|
|
|
|
|
|
|
Your 'rm' program seems unable to run without file operands specified
|
|
|
|
|
on the command line, even when the '-f' option is present. This is contrary
|
|
|
|
|
to the behaviour of most rm programs out there, and not conforming with
|
|
|
|
|
the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
|
|
|
|
|
|
|
|
|
|
Please tell bug-automake@gnu.org about your system, including the value
|
|
|
|
|
of your $PATH and any error possibly output before this message. This
|
|
|
|
|
can help us improve future automake versions.
|
|
|
|
|
|
|
|
|
|
END
|
|
|
|
|
if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
|
|
|
|
|
echo 'Configuration will proceed anyway, since you have set the' >&2
|
|
|
|
|
echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
|
|
|
|
|
echo >&2
|
|
|
|
|
else
|
|
|
|
|
cat >&2 <<'END'
|
|
|
|
|
Aborting the configuration process, to ensure you take notice of the issue.
|
|
|
|
|
|
|
|
|
|
You can download and install GNU coreutils to get an 'rm' implementation
|
|
|
|
|
that behaves properly: <https://www.gnu.org/software/coreutils/>.
|
|
|
|
|
|
|
|
|
|
If you want to complete the configuration process using your problematic
|
|
|
|
|
'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
|
|
|
|
|
to "yes", and re-run configure.
|
|
|
|
|
|
|
|
|
|
END
|
|
|
|
|
AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
|
|
|
|
|
fi
|
|
|
|
|
fi
|
|
|
|
|
dnl The trailing newline in this macro's definition is deliberate, for
|
|
|
|
|
dnl backward compatibility and to allow trailing 'dnl'-style comments
|
|
|
|
|
dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841.
|
|
|
|
|
@ -873,7 +929,7 @@ for _am_header in $config_headers :; do
|
|
|
|
|
done
|
|
|
|
|
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
|
|
|
|
|
|
|
|
|
|
# Copyright (C) 2001-2020 Free Software Foundation, Inc.
|
|
|
|
|
# Copyright (C) 2001-2025 Free Software Foundation, Inc.
|
|
|
|
|
#
|
|
|
|
|
# This file is free software; the Free Software Foundation
|
|
|
|
|
# gives unlimited permission to copy and/or distribute it,
|
|
|
|
|
@ -894,7 +950,7 @@ if test x"${install_sh+set}" != xset; then
|
|
|
|
|
fi
|
|
|
|
|
AC_SUBST([install_sh])])
|
|
|
|
|
|
|
|
|
|
# Copyright (C) 2003-2020 Free Software Foundation, Inc.
|
|
|
|
|
# Copyright (C) 2003-2025 Free Software Foundation, Inc.
|
|
|
|
|
#
|
|
|
|
|
# This file is free software; the Free Software Foundation
|
|
|
|
|
# gives unlimited permission to copy and/or distribute it,
|
|
|
|
|
@ -915,7 +971,7 @@ AC_SUBST([am__leading_dot])])
|
|
|
|
|
|
|
|
|
|
# Check to see how 'make' treats includes. -*- Autoconf -*-
|
|
|
|
|
|
|
|
|
|
# Copyright (C) 2001-2020 Free Software Foundation, Inc.
|
|
|
|
|
# Copyright (C) 2001-2025 Free Software Foundation, Inc.
|
|
|
|
|
#
|
|
|
|
|
# This file is free software; the Free Software Foundation
|
|
|
|
|
# gives unlimited permission to copy and/or distribute it,
|
|
|
|
|
@ -958,7 +1014,7 @@ AC_SUBST([am__quote])])
|
|
|
|
|
|
|
|
|
|
# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
|
|
|
|
|
|
|
|
|
|
# Copyright (C) 1997-2020 Free Software Foundation, Inc.
|
|
|
|
|
# Copyright (C) 1997-2025 Free Software Foundation, Inc.
|
|
|
|
|
#
|
|
|
|
|
# This file is free software; the Free Software Foundation
|
|
|
|
|
# gives unlimited permission to copy and/or distribute it,
|
|
|
|
|
@ -979,12 +1035,7 @@ AC_DEFUN([AM_MISSING_HAS_RUN],
|
|
|
|
|
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
|
|
|
|
|
AC_REQUIRE_AUX_FILE([missing])dnl
|
|
|
|
|
if test x"${MISSING+set}" != xset; then
|
|
|
|
|
case $am_aux_dir in
|
|
|
|
|
*\ * | *\ *)
|
|
|
|
|
MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
|
|
|
|
|
*)
|
|
|
|
|
MISSING="\${SHELL} $am_aux_dir/missing" ;;
|
|
|
|
|
esac
|
|
|
|
|
MISSING="\${SHELL} '$am_aux_dir/missing'"
|
|
|
|
|
fi
|
|
|
|
|
# Use eval to expand $SHELL
|
|
|
|
|
if eval "$MISSING --is-lightweight"; then
|
|
|
|
|
@ -997,7 +1048,7 @@ fi
|
|
|
|
|
|
|
|
|
|
# Helper functions for option handling. -*- Autoconf -*-
|
|
|
|
|
|
|
|
|
|
# Copyright (C) 2001-2020 Free Software Foundation, Inc.
|
|
|
|
|
# Copyright (C) 2001-2025 Free Software Foundation, Inc.
|
|
|
|
|
#
|
|
|
|
|
# This file is free software; the Free Software Foundation
|
|
|
|
|
# gives unlimited permission to copy and/or distribute it,
|
|
|
|
|
@ -1026,7 +1077,7 @@ AC_DEFUN([_AM_SET_OPTIONS],
|
|
|
|
|
AC_DEFUN([_AM_IF_OPTION],
|
|
|
|
|
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
|
|
|
|
|
|
|
|
|
|
# Copyright (C) 1999-2020 Free Software Foundation, Inc.
|
|
|
|
|
# Copyright (C) 1999-2025 Free Software Foundation, Inc.
|
|
|
|
|
#
|
|
|
|
|
# This file is free software; the Free Software Foundation
|
|
|
|
|
# gives unlimited permission to copy and/or distribute it,
|
|
|
|
|
@ -1058,7 +1109,10 @@ AC_CACHE_CHECK(
|
|
|
|
|
break
|
|
|
|
|
fi
|
|
|
|
|
done
|
|
|
|
|
rm -f core conftest*
|
|
|
|
|
# aligned with autoconf, so not including core; see bug#72225.
|
|
|
|
|
rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.$ac_objext \
|
|
|
|
|
conftest.dSYM conftest1.$ac_ext conftest1.$ac_objext conftest1.dSYM \
|
|
|
|
|
conftest2.$ac_ext conftest2.$ac_objext conftest2.dSYM
|
|
|
|
|
unset am_i])
|
|
|
|
|
if test "$am_cv_prog_cc_c_o" != yes; then
|
|
|
|
|
# Losing compiler, so override with the script.
|
|
|
|
|
@ -1073,7 +1127,23 @@ AC_LANG_POP([C])])
|
|
|
|
|
# For backward compatibility.
|
|
|
|
|
AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
|
|
|
|
|
|
|
|
|
|
# Copyright (C) 2001-2020 Free Software Foundation, Inc.
|
|
|
|
|
# Copyright (C) 2022-2025 Free Software Foundation, Inc.
|
|
|
|
|
#
|
|
|
|
|
# This file is free software; the Free Software Foundation
|
|
|
|
|
# gives unlimited permission to copy and/or distribute it,
|
|
|
|
|
# with or without modifications, as long as this notice is preserved.
|
|
|
|
|
|
|
|
|
|
# _AM_PROG_RM_F
|
|
|
|
|
# ---------------
|
|
|
|
|
# Check whether 'rm -f' without any arguments works.
|
|
|
|
|
# https://bugs.gnu.org/10828
|
|
|
|
|
AC_DEFUN([_AM_PROG_RM_F],
|
|
|
|
|
[am__rm_f_notfound=
|
|
|
|
|
AS_IF([(rm -f && rm -fr && rm -rf) 2>/dev/null], [], [am__rm_f_notfound='""'])
|
|
|
|
|
AC_SUBST(am__rm_f_notfound)
|
|
|
|
|
])
|
|
|
|
|
|
|
|
|
|
# Copyright (C) 2001-2025 Free Software Foundation, Inc.
|
|
|
|
|
#
|
|
|
|
|
# This file is free software; the Free Software Foundation
|
|
|
|
|
# gives unlimited permission to copy and/or distribute it,
|
|
|
|
|
@ -1092,26 +1162,181 @@ AC_DEFUN([AM_RUN_LOG],
|
|
|
|
|
|
|
|
|
|
# Check to make sure that the build environment is sane. -*- Autoconf -*-
|
|
|
|
|
|
|
|
|
|
# Copyright (C) 1996-2020 Free Software Foundation, Inc.
|
|
|
|
|
# Copyright (C) 1996-2025 Free Software Foundation, Inc.
|
|
|
|
|
#
|
|
|
|
|
# This file is free software; the Free Software Foundation
|
|
|
|
|
# gives unlimited permission to copy and/or distribute it,
|
|
|
|
|
# with or without modifications, as long as this notice is preserved.
|
|
|
|
|
|
|
|
|
|
# _AM_SLEEP_FRACTIONAL_SECONDS
|
|
|
|
|
# ----------------------------
|
|
|
|
|
AC_DEFUN([_AM_SLEEP_FRACTIONAL_SECONDS], [dnl
|
|
|
|
|
AC_CACHE_CHECK([whether sleep supports fractional seconds],
|
|
|
|
|
am_cv_sleep_fractional_seconds, [dnl
|
|
|
|
|
AS_IF([sleep 0.001 2>/dev/null], [am_cv_sleep_fractional_seconds=yes],
|
|
|
|
|
[am_cv_sleep_fractional_seconds=no])
|
|
|
|
|
])])
|
|
|
|
|
|
|
|
|
|
# _AM_FILESYSTEM_TIMESTAMP_RESOLUTION
|
|
|
|
|
# -----------------------------------
|
|
|
|
|
# Determine the filesystem's resolution for file modification
|
|
|
|
|
# timestamps. The coarsest we know of is FAT, with a resolution
|
|
|
|
|
# of only two seconds, even with the most recent "exFAT" extensions.
|
|
|
|
|
# The finest (e.g. ext4 with large inodes, XFS, ZFS) is one
|
|
|
|
|
# nanosecond, matching clock_gettime. However, it is probably not
|
|
|
|
|
# possible to delay execution of a shell script for less than one
|
|
|
|
|
# millisecond, due to process creation overhead and scheduling
|
|
|
|
|
# granularity, so we don't check for anything finer than that. (See below.)
|
|
|
|
|
AC_DEFUN([_AM_FILESYSTEM_TIMESTAMP_RESOLUTION], [dnl
|
|
|
|
|
AC_REQUIRE([_AM_SLEEP_FRACTIONAL_SECONDS])
|
|
|
|
|
AC_CACHE_CHECK([filesystem timestamp resolution],
|
|
|
|
|
am_cv_filesystem_timestamp_resolution, [dnl
|
|
|
|
|
# Default to the worst case.
|
|
|
|
|
am_cv_filesystem_timestamp_resolution=2
|
|
|
|
|
|
|
|
|
|
# Only try to go finer than 1 sec if sleep can do it.
|
|
|
|
|
# Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
|
|
|
|
|
# - 1 sec is not much of a win compared to 2 sec, and
|
|
|
|
|
# - it takes 2 seconds to perform the test whether 1 sec works.
|
|
|
|
|
#
|
|
|
|
|
# Instead, just use the default 2s on platforms that have 1s resolution,
|
|
|
|
|
# accept the extra 1s delay when using $sleep in the Automake tests, in
|
|
|
|
|
# exchange for not incurring the 2s delay for running the test for all
|
|
|
|
|
# packages.
|
|
|
|
|
#
|
|
|
|
|
am_try_resolutions=
|
|
|
|
|
if test "$am_cv_sleep_fractional_seconds" = yes; then
|
|
|
|
|
# Even a millisecond often causes a bunch of false positives,
|
|
|
|
|
# so just try a hundredth of a second. The time saved between .001 and
|
|
|
|
|
# .01 is not terribly consequential.
|
|
|
|
|
am_try_resolutions="0.01 0.1 $am_try_resolutions"
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
# In order to catch current-generation FAT out, we must *modify* files
|
|
|
|
|
# that already exist; the *creation* timestamp is finer. Use names
|
|
|
|
|
# that make ls -t sort them differently when they have equal
|
|
|
|
|
# timestamps than when they have distinct timestamps, keeping
|
|
|
|
|
# in mind that ls -t prints the *newest* file first.
|
|
|
|
|
rm -f conftest.ts?
|
|
|
|
|
: > conftest.ts1
|
|
|
|
|
: > conftest.ts2
|
|
|
|
|
: > conftest.ts3
|
|
|
|
|
|
|
|
|
|
# Make sure ls -t actually works. Do 'set' in a subshell so we don't
|
|
|
|
|
# clobber the current shell's arguments. (Outer-level square brackets
|
|
|
|
|
# are removed by m4; they're present so that m4 does not expand
|
|
|
|
|
# <dollar><star>; be careful, easy to get confused.)
|
|
|
|
|
if (
|
|
|
|
|
set X `[ls -t conftest.ts[12]]` &&
|
|
|
|
|
{
|
|
|
|
|
test "$[]*" != "X conftest.ts1 conftest.ts2" ||
|
|
|
|
|
test "$[]*" != "X conftest.ts2 conftest.ts1";
|
|
|
|
|
}
|
|
|
|
|
); then :; else
|
|
|
|
|
# If neither matched, then we have a broken ls. This can happen
|
|
|
|
|
# if, for instance, CONFIG_SHELL is bash and it inherits a
|
|
|
|
|
# broken ls alias from the environment. This has actually
|
|
|
|
|
# happened. Such a system could not be considered "sane".
|
|
|
|
|
_AS_ECHO_UNQUOTED(
|
|
|
|
|
["Bad output from ls -t: \"`[ls -t conftest.ts[12]]`\""],
|
|
|
|
|
[AS_MESSAGE_LOG_FD])
|
|
|
|
|
AC_MSG_FAILURE([ls -t produces unexpected output.
|
|
|
|
|
Make sure there is not a broken ls alias in your environment.])
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
for am_try_res in $am_try_resolutions; do
|
|
|
|
|
# Any one fine-grained sleep might happen to cross the boundary
|
|
|
|
|
# between two values of a coarser actual resolution, but if we do
|
|
|
|
|
# two fine-grained sleeps in a row, at least one of them will fall
|
|
|
|
|
# entirely within a coarse interval.
|
|
|
|
|
echo alpha > conftest.ts1
|
|
|
|
|
sleep $am_try_res
|
|
|
|
|
echo beta > conftest.ts2
|
|
|
|
|
sleep $am_try_res
|
|
|
|
|
echo gamma > conftest.ts3
|
|
|
|
|
|
|
|
|
|
# We assume that 'ls -t' will make use of high-resolution
|
|
|
|
|
# timestamps if the operating system supports them at all.
|
|
|
|
|
if (set X `ls -t conftest.ts?` &&
|
|
|
|
|
test "$[]2" = conftest.ts3 &&
|
|
|
|
|
test "$[]3" = conftest.ts2 &&
|
|
|
|
|
test "$[]4" = conftest.ts1); then
|
|
|
|
|
#
|
|
|
|
|
# Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
|
|
|
|
|
# because we don't need to test make.
|
|
|
|
|
make_ok=true
|
|
|
|
|
if test $am_try_res != 1; then
|
|
|
|
|
# But if we've succeeded so far with a subsecond resolution, we
|
|
|
|
|
# have one more thing to check: make. It can happen that
|
|
|
|
|
# everything else supports the subsecond mtimes, but make doesn't;
|
|
|
|
|
# notably on macOS, which ships make 3.81 from 2006 (the last one
|
|
|
|
|
# released under GPLv2). https://bugs.gnu.org/68808
|
|
|
|
|
#
|
|
|
|
|
# We test $MAKE if it is defined in the environment, else "make".
|
|
|
|
|
# It might get overridden later, but our hope is that in practice
|
|
|
|
|
# it does not matter: it is the system "make" which is (by far)
|
|
|
|
|
# the most likely to be broken, whereas if the user overrides it,
|
|
|
|
|
# probably they did so with a better, or at least not worse, make.
|
|
|
|
|
# https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
|
|
|
|
|
#
|
|
|
|
|
# Create a Makefile (real tab character here):
|
|
|
|
|
rm -f conftest.mk
|
|
|
|
|
echo 'conftest.ts1: conftest.ts2' >conftest.mk
|
|
|
|
|
echo ' touch conftest.ts2' >>conftest.mk
|
|
|
|
|
#
|
|
|
|
|
# Now, running
|
|
|
|
|
# touch conftest.ts1; touch conftest.ts2; make
|
|
|
|
|
# should touch ts1 because ts2 is newer. This could happen by luck,
|
|
|
|
|
# but most often, it will fail if make's support is insufficient. So
|
|
|
|
|
# test for several consecutive successes.
|
|
|
|
|
#
|
|
|
|
|
# (We reuse conftest.ts[12] because we still want to modify existing
|
|
|
|
|
# files, not create new ones, per above.)
|
|
|
|
|
n=0
|
|
|
|
|
make=${MAKE-make}
|
|
|
|
|
until test $n -eq 3; do
|
|
|
|
|
echo one > conftest.ts1
|
|
|
|
|
sleep $am_try_res
|
|
|
|
|
echo two > conftest.ts2 # ts2 should now be newer than ts1
|
|
|
|
|
if $make -f conftest.mk | grep 'up to date' >/dev/null; then
|
|
|
|
|
make_ok=false
|
|
|
|
|
break # out of $n loop
|
|
|
|
|
fi
|
|
|
|
|
n=`expr $n + 1`
|
|
|
|
|
done
|
|
|
|
|
fi
|
|
|
|
|
#
|
|
|
|
|
if $make_ok; then
|
|
|
|
|
# Everything we know to check worked out, so call this resolution good.
|
|
|
|
|
am_cv_filesystem_timestamp_resolution=$am_try_res
|
|
|
|
|
break # out of $am_try_res loop
|
|
|
|
|
fi
|
|
|
|
|
# Otherwise, we'll go on to check the next resolution.
|
|
|
|
|
fi
|
|
|
|
|
done
|
|
|
|
|
rm -f conftest.ts?
|
|
|
|
|
# (end _am_filesystem_timestamp_resolution)
|
|
|
|
|
])])
|
|
|
|
|
|
|
|
|
|
# AM_SANITY_CHECK
|
|
|
|
|
# ---------------
|
|
|
|
|
AC_DEFUN([AM_SANITY_CHECK],
|
|
|
|
|
[AC_MSG_CHECKING([whether build environment is sane])
|
|
|
|
|
[AC_REQUIRE([_AM_FILESYSTEM_TIMESTAMP_RESOLUTION])
|
|
|
|
|
# This check should not be cached, as it may vary across builds of
|
|
|
|
|
# different projects.
|
|
|
|
|
AC_MSG_CHECKING([whether build environment is sane])
|
|
|
|
|
# Reject unsafe characters in $srcdir or the absolute working directory
|
|
|
|
|
# name. Accept space and tab only in the latter.
|
|
|
|
|
am_lf='
|
|
|
|
|
'
|
|
|
|
|
case `pwd` in
|
|
|
|
|
*[[\\\"\#\$\&\'\`$am_lf]]*)
|
|
|
|
|
AC_MSG_RESULT([no])
|
|
|
|
|
AC_MSG_ERROR([unsafe absolute working directory name]);;
|
|
|
|
|
esac
|
|
|
|
|
case $srcdir in
|
|
|
|
|
*[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
|
|
|
|
|
AC_MSG_RESULT([no])
|
|
|
|
|
AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
|
|
|
|
|
esac
|
|
|
|
|
|
|
|
|
|
@ -1120,49 +1345,40 @@ esac
|
|
|
|
|
# symlink; some systems play weird games with the mod time of symlinks
|
|
|
|
|
# (eg FreeBSD returns the mod time of the symlink's containing
|
|
|
|
|
# directory).
|
|
|
|
|
if (
|
|
|
|
|
am_has_slept=no
|
|
|
|
|
for am_try in 1 2; do
|
|
|
|
|
echo "timestamp, slept: $am_has_slept" > conftest.file
|
|
|
|
|
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
|
|
|
|
|
if test "$[*]" = "X"; then
|
|
|
|
|
# -L didn't work.
|
|
|
|
|
set X `ls -t "$srcdir/configure" conftest.file`
|
|
|
|
|
fi
|
|
|
|
|
if test "$[*]" != "X $srcdir/configure conftest.file" \
|
|
|
|
|
&& test "$[*]" != "X conftest.file $srcdir/configure"; then
|
|
|
|
|
am_build_env_is_sane=no
|
|
|
|
|
am_has_slept=no
|
|
|
|
|
rm -f conftest.file
|
|
|
|
|
for am_try in 1 2; do
|
|
|
|
|
echo "timestamp, slept: $am_has_slept" > conftest.file
|
|
|
|
|
if (
|
|
|
|
|
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
|
|
|
|
|
if test "$[]*" = "X"; then
|
|
|
|
|
# -L didn't work.
|
|
|
|
|
set X `ls -t "$srcdir/configure" conftest.file`
|
|
|
|
|
fi
|
|
|
|
|
test "$[]2" = conftest.file
|
|
|
|
|
); then
|
|
|
|
|
am_build_env_is_sane=yes
|
|
|
|
|
break
|
|
|
|
|
fi
|
|
|
|
|
# Just in case.
|
|
|
|
|
sleep "$am_cv_filesystem_timestamp_resolution"
|
|
|
|
|
am_has_slept=yes
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
# If neither matched, then we have a broken ls. This can happen
|
|
|
|
|
# if, for instance, CONFIG_SHELL is bash and it inherits a
|
|
|
|
|
# broken ls alias from the environment. This has actually
|
|
|
|
|
# happened. Such a system could not be considered "sane".
|
|
|
|
|
AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
|
|
|
|
|
alias in your environment])
|
|
|
|
|
fi
|
|
|
|
|
if test "$[2]" = conftest.file || test $am_try -eq 2; then
|
|
|
|
|
break
|
|
|
|
|
fi
|
|
|
|
|
# Just in case.
|
|
|
|
|
sleep 1
|
|
|
|
|
am_has_slept=yes
|
|
|
|
|
done
|
|
|
|
|
test "$[2]" = conftest.file
|
|
|
|
|
)
|
|
|
|
|
then
|
|
|
|
|
# Ok.
|
|
|
|
|
:
|
|
|
|
|
else
|
|
|
|
|
AC_MSG_ERROR([newly created file is older than distributed files!
|
|
|
|
|
AC_MSG_RESULT([$am_build_env_is_sane])
|
|
|
|
|
if test "$am_build_env_is_sane" = no; then
|
|
|
|
|
AC_MSG_ERROR([newly created file is older than distributed files!
|
|
|
|
|
Check your system clock])
|
|
|
|
|
fi
|
|
|
|
|
AC_MSG_RESULT([yes])
|
|
|
|
|
|
|
|
|
|
# If we didn't sleep, we still need to ensure time stamps of config.status and
|
|
|
|
|
# generated files are strictly newer.
|
|
|
|
|
am_sleep_pid=
|
|
|
|
|
if grep 'slept: no' conftest.file >/dev/null 2>&1; then
|
|
|
|
|
( sleep 1 ) &
|
|
|
|
|
AS_IF([test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1],, [dnl
|
|
|
|
|
( sleep "$am_cv_filesystem_timestamp_resolution" ) &
|
|
|
|
|
am_sleep_pid=$!
|
|
|
|
|
fi
|
|
|
|
|
])
|
|
|
|
|
AC_CONFIG_COMMANDS_PRE(
|
|
|
|
|
[AC_MSG_CHECKING([that generated files are newer than configure])
|
|
|
|
|
if test -n "$am_sleep_pid"; then
|
|
|
|
|
@ -1173,18 +1389,18 @@ AC_CONFIG_COMMANDS_PRE(
|
|
|
|
|
rm -f conftest.file
|
|
|
|
|
])
|
|
|
|
|
|
|
|
|
|
# Copyright (C) 2009-2020 Free Software Foundation, Inc.
|
|
|
|
|
# Copyright (C) 2009-2025 Free Software Foundation, Inc.
|
|
|
|
|
#
|
|
|
|
|
# This file is free software; the Free Software Foundation
|
|
|
|
|
# gives unlimited permission to copy and/or distribute it,
|
|
|
|
|
# with or without modifications, as long as this notice is preserved.
|
|
|
|
|
|
|
|
|
|
# AM_SILENT_RULES([DEFAULT])
|
|
|
|
|
# --------------------------
|
|
|
|
|
# Enable less verbose build rules; with the default set to DEFAULT
|
|
|
|
|
# ("yes" being less verbose, "no" or empty being verbose).
|
|
|
|
|
AC_DEFUN([AM_SILENT_RULES],
|
|
|
|
|
[AC_ARG_ENABLE([silent-rules], [dnl
|
|
|
|
|
# _AM_SILENT_RULES
|
|
|
|
|
# ----------------
|
|
|
|
|
# Enable less verbose build rules support.
|
|
|
|
|
AC_DEFUN([_AM_SILENT_RULES],
|
|
|
|
|
[AM_DEFAULT_VERBOSITY=1
|
|
|
|
|
AC_ARG_ENABLE([silent-rules], [dnl
|
|
|
|
|
AS_HELP_STRING(
|
|
|
|
|
[--enable-silent-rules],
|
|
|
|
|
[less verbose build output (undo: "make V=1")])
|
|
|
|
|
@ -1192,11 +1408,6 @@ AS_HELP_STRING(
|
|
|
|
|
[--disable-silent-rules],
|
|
|
|
|
[verbose build output (undo: "make V=0")])dnl
|
|
|
|
|
])
|
|
|
|
|
case $enable_silent_rules in @%:@ (((
|
|
|
|
|
yes) AM_DEFAULT_VERBOSITY=0;;
|
|
|
|
|
no) AM_DEFAULT_VERBOSITY=1;;
|
|
|
|
|
*) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
|
|
|
|
|
esac
|
|
|
|
|
dnl
|
|
|
|
|
dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
|
|
|
|
|
dnl do not support nested variable expansions.
|
|
|
|
|
@ -1215,14 +1426,6 @@ am__doit:
|
|
|
|
|
else
|
|
|
|
|
am_cv_make_support_nested_variables=no
|
|
|
|
|
fi])
|
|
|
|
|
if test $am_cv_make_support_nested_variables = yes; then
|
|
|
|
|
dnl Using '$V' instead of '$(V)' breaks IRIX make.
|
|
|
|
|
AM_V='$(V)'
|
|
|
|
|
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
|
|
|
|
|
else
|
|
|
|
|
AM_V=$AM_DEFAULT_VERBOSITY
|
|
|
|
|
AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
|
|
|
|
|
fi
|
|
|
|
|
AC_SUBST([AM_V])dnl
|
|
|
|
|
AM_SUBST_NOTMAKE([AM_V])dnl
|
|
|
|
|
AC_SUBST([AM_DEFAULT_V])dnl
|
|
|
|
|
@ -1231,9 +1434,37 @@ AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
|
|
|
|
|
AM_BACKSLASH='\'
|
|
|
|
|
AC_SUBST([AM_BACKSLASH])dnl
|
|
|
|
|
_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
|
|
|
|
|
dnl Delay evaluation of AM_DEFAULT_VERBOSITY to the end to allow multiple calls
|
|
|
|
|
dnl to AM_SILENT_RULES to change the default value.
|
|
|
|
|
AC_CONFIG_COMMANDS_PRE([dnl
|
|
|
|
|
case $enable_silent_rules in @%:@ (((
|
|
|
|
|
yes) AM_DEFAULT_VERBOSITY=0;;
|
|
|
|
|
no) AM_DEFAULT_VERBOSITY=1;;
|
|
|
|
|
esac
|
|
|
|
|
if test $am_cv_make_support_nested_variables = yes; then
|
|
|
|
|
dnl Using '$V' instead of '$(V)' breaks IRIX make.
|
|
|
|
|
AM_V='$(V)'
|
|
|
|
|
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
|
|
|
|
|
else
|
|
|
|
|
AM_V=$AM_DEFAULT_VERBOSITY
|
|
|
|
|
AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
|
|
|
|
|
fi
|
|
|
|
|
])dnl
|
|
|
|
|
])
|
|
|
|
|
|
|
|
|
|
# Copyright (C) 2001-2020 Free Software Foundation, Inc.
|
|
|
|
|
# AM_SILENT_RULES([DEFAULT])
|
|
|
|
|
# --------------------------
|
|
|
|
|
# Set the default verbosity level to DEFAULT ("yes" being less verbose, "no" or
|
|
|
|
|
# empty being verbose).
|
|
|
|
|
AC_DEFUN([AM_SILENT_RULES],
|
|
|
|
|
[AC_REQUIRE([_AM_SILENT_RULES])
|
|
|
|
|
AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1])m4_newline
|
|
|
|
|
dnl We intentionally force a newline after the assignment, since a) nothing
|
|
|
|
|
dnl good can come of more text following, and b) that was the behavior
|
|
|
|
|
dnl before 1.17. See https://bugs.gnu.org/72267.
|
|
|
|
|
])
|
|
|
|
|
|
|
|
|
|
# Copyright (C) 2001-2025 Free Software Foundation, Inc.
|
|
|
|
|
#
|
|
|
|
|
# This file is free software; the Free Software Foundation
|
|
|
|
|
# gives unlimited permission to copy and/or distribute it,
|
|
|
|
|
@ -1261,7 +1492,7 @@ fi
|
|
|
|
|
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
|
|
|
|
|
AC_SUBST([INSTALL_STRIP_PROGRAM])])
|
|
|
|
|
|
|
|
|
|
# Copyright (C) 2006-2020 Free Software Foundation, Inc.
|
|
|
|
|
# Copyright (C) 2006-2025 Free Software Foundation, Inc.
|
|
|
|
|
#
|
|
|
|
|
# This file is free software; the Free Software Foundation
|
|
|
|
|
# gives unlimited permission to copy and/or distribute it,
|
|
|
|
|
@ -1280,7 +1511,7 @@ AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
|
|
|
|
|
|
|
|
|
|
# Check how to create a tarball. -*- Autoconf -*-
|
|
|
|
|
|
|
|
|
|
# Copyright (C) 2004-2020 Free Software Foundation, Inc.
|
|
|
|
|
# Copyright (C) 2004-2025 Free Software Foundation, Inc.
|
|
|
|
|
#
|
|
|
|
|
# This file is free software; the Free Software Foundation
|
|
|
|
|
# gives unlimited permission to copy and/or distribute it,
|
|
|
|
|
@ -1326,15 +1557,19 @@ m4_if([$1], [v7],
|
|
|
|
|
am_uid=`id -u || echo unknown`
|
|
|
|
|
am_gid=`id -g || echo unknown`
|
|
|
|
|
AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
|
|
|
|
|
if test $am_uid -le $am_max_uid; then
|
|
|
|
|
AC_MSG_RESULT([yes])
|
|
|
|
|
if test x$am_uid = xunknown; then
|
|
|
|
|
AC_MSG_WARN([ancient id detected; assuming current UID is ok, but dist-ustar might not work])
|
|
|
|
|
elif test $am_uid -le $am_max_uid; then
|
|
|
|
|
AC_MSG_RESULT([yes])
|
|
|
|
|
else
|
|
|
|
|
AC_MSG_RESULT([no])
|
|
|
|
|
_am_tools=none
|
|
|
|
|
AC_MSG_RESULT([no])
|
|
|
|
|
_am_tools=none
|
|
|
|
|
fi
|
|
|
|
|
AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
|
|
|
|
|
if test $am_gid -le $am_max_gid; then
|
|
|
|
|
AC_MSG_RESULT([yes])
|
|
|
|
|
if test x$gm_gid = xunknown; then
|
|
|
|
|
AC_MSG_WARN([ancient id detected; assuming current GID is ok, but dist-ustar might not work])
|
|
|
|
|
elif test $am_gid -le $am_max_gid; then
|
|
|
|
|
AC_MSG_RESULT([yes])
|
|
|
|
|
else
|
|
|
|
|
AC_MSG_RESULT([no])
|
|
|
|
|
_am_tools=none
|
|
|
|
|
@ -1411,6 +1646,26 @@ AC_SUBST([am__tar])
|
|
|
|
|
AC_SUBST([am__untar])
|
|
|
|
|
]) # _AM_PROG_TAR
|
|
|
|
|
|
|
|
|
|
# Copyright (C) 2022-2025 Free Software Foundation, Inc.
|
|
|
|
|
#
|
|
|
|
|
# This file is free software; the Free Software Foundation
|
|
|
|
|
# gives unlimited permission to copy and/or distribute it,
|
|
|
|
|
# with or without modifications, as long as this notice is preserved.
|
|
|
|
|
|
|
|
|
|
# _AM_PROG_XARGS_N
|
|
|
|
|
# ----------------
|
|
|
|
|
# Check whether 'xargs -n' works. It should work everywhere, so the fallback
|
|
|
|
|
# is not optimized at all as we never expect to use it.
|
|
|
|
|
AC_DEFUN([_AM_PROG_XARGS_N],
|
|
|
|
|
[AC_CACHE_CHECK([xargs -n works], am_cv_xargs_n_works, [dnl
|
|
|
|
|
AS_IF([test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
|
|
|
|
|
3"], [am_cv_xargs_n_works=yes], [am_cv_xargs_n_works=no])])
|
|
|
|
|
AS_IF([test "$am_cv_xargs_n_works" = yes], [am__xargs_n='xargs -n'], [dnl
|
|
|
|
|
am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "$@" "$am__xargs_n_arg"; done; }'
|
|
|
|
|
])dnl
|
|
|
|
|
AC_SUBST(am__xargs_n)
|
|
|
|
|
])
|
|
|
|
|
|
|
|
|
|
m4_include([m4/ax_cflags_gcc_option.m4])
|
|
|
|
|
m4_include([m4/ax_pthread.m4])
|
|
|
|
|
m4_include([m4/ld-version-script.m4])
|
|
|
|
|
|