1 # generated automatically by aclocal 1.16.1 -*- Autoconf -*-
3 # Copyright (C) 1996-2018 Free Software Foundation, Inc.
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.
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
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'.])])
23 dnl -*- mode: autoconf -*-
24 dnl Copyright 2009 Johan Dahlin
26 dnl This file is free software; the author(s) gives unlimited
27 dnl permission to copy and/or distribute it, with or without
28 dnl modifications, as long as this notice is preserved.
33 m4_define([_GOBJECT_INTROSPECTION_CHECK_INTERNAL],
35 AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first
36 AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first
37 AC_BEFORE([LT_INIT],[$0])dnl setup libtool first
39 dnl enable/disable introspection
40 m4_if([$2], [require],
42 enable_introspection=yes
44 AC_ARG_ENABLE(introspection,
45 AS_HELP_STRING([--enable-introspection[=@<:@no/auto/yes@:>@]],
46 [Enable introspection for this build]),,
47 [enable_introspection=auto])
50 AC_MSG_CHECKING([for gobject-introspection])
52 dnl presence/version checking
53 AS_CASE([$enable_introspection],
55 found_introspection="no (disabled, use --enable-introspection to enable)"
58 PKG_CHECK_EXISTS([gobject-introspection-1.0],,
59 AC_MSG_ERROR([gobject-introspection-1.0 is not installed]))
60 PKG_CHECK_EXISTS([gobject-introspection-1.0 >= $1],
61 found_introspection=yes,
62 AC_MSG_ERROR([You need to have gobject-introspection >= $1 installed to build AC_PACKAGE_NAME]))
65 PKG_CHECK_EXISTS([gobject-introspection-1.0 >= $1], found_introspection=yes, found_introspection=no)
66 dnl Canonicalize enable_introspection
67 enable_introspection=$found_introspection
70 AC_MSG_ERROR([invalid argument passed to --enable-introspection, should be one of @<:@no/auto/yes@:>@])
73 AC_MSG_RESULT([$found_introspection])
75 INTROSPECTION_SCANNER=
76 INTROSPECTION_COMPILER=
77 INTROSPECTION_GENERATE=
79 INTROSPECTION_TYPELIBDIR=
80 if test "x$found_introspection" = "xyes"; then
81 INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
82 INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
83 INTROSPECTION_GENERATE=`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0`
84 INTROSPECTION_GIRDIR=`$PKG_CONFIG --variable=girdir gobject-introspection-1.0`
85 INTROSPECTION_TYPELIBDIR="$($PKG_CONFIG --variable=typelibdir gobject-introspection-1.0)"
86 INTROSPECTION_CFLAGS=`$PKG_CONFIG --cflags gobject-introspection-1.0`
87 INTROSPECTION_LIBS=`$PKG_CONFIG --libs gobject-introspection-1.0`
88 INTROSPECTION_MAKEFILE=`$PKG_CONFIG --variable=datadir gobject-introspection-1.0`/gobject-introspection-1.0/Makefile.introspection
90 AC_SUBST(INTROSPECTION_SCANNER)
91 AC_SUBST(INTROSPECTION_COMPILER)
92 AC_SUBST(INTROSPECTION_GENERATE)
93 AC_SUBST(INTROSPECTION_GIRDIR)
94 AC_SUBST(INTROSPECTION_TYPELIBDIR)
95 AC_SUBST(INTROSPECTION_CFLAGS)
96 AC_SUBST(INTROSPECTION_LIBS)
97 AC_SUBST(INTROSPECTION_MAKEFILE)
99 AM_CONDITIONAL(HAVE_INTROSPECTION, test "x$found_introspection" = "xyes")
104 dnl GOBJECT_INTROSPECTION_CHECK([minimum-g-i-version])
106 AC_DEFUN([GOBJECT_INTROSPECTION_CHECK],
108 _GOBJECT_INTROSPECTION_CHECK_INTERNAL([$1])
112 dnl GOBJECT_INTROSPECTION_REQUIRE([minimum-g-i-version])
115 AC_DEFUN([GOBJECT_INTROSPECTION_REQUIRE],
117 _GOBJECT_INTROSPECTION_CHECK_INTERNAL([$1], [require])
120 # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
121 # serial 11 (pkg-config-0.29.1)
123 dnl Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
124 dnl Copyright © 2012-2015 Dan Nicholson <dbn.lists@gmail.com>
126 dnl This program is free software; you can redistribute it and/or modify
127 dnl it under the terms of the GNU General Public License as published by
128 dnl the Free Software Foundation; either version 2 of the License, or
129 dnl (at your option) any later version.
131 dnl This program is distributed in the hope that it will be useful, but
132 dnl WITHOUT ANY WARRANTY; without even the implied warranty of
133 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
134 dnl General Public License for more details.
136 dnl You should have received a copy of the GNU General Public License
137 dnl along with this program; if not, write to the Free Software
138 dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
141 dnl As a special exception to the GNU General Public License, if you
142 dnl distribute this file as part of a program that contains a
143 dnl configuration script generated by Autoconf, you may include it under
144 dnl the same distribution terms that you use for the rest of that
147 dnl PKG_PREREQ(MIN-VERSION)
148 dnl -----------------------
151 dnl Verify that the version of the pkg-config macros are at least
152 dnl MIN-VERSION. Unlike PKG_PROG_PKG_CONFIG, which checks the user's
153 dnl installed version of pkg-config, this checks the developer's version
154 dnl of pkg.m4 when generating configure.
156 dnl To ensure that this macro is defined, also add:
157 dnl m4_ifndef([PKG_PREREQ],
158 dnl [m4_fatal([must install pkg-config 0.29 or later before running autoconf/autogen])])
160 dnl See the "Since" comment for each macro you use to see what version
161 dnl of the macros you require.
162 m4_defun([PKG_PREREQ],
163 [m4_define([PKG_MACROS_VERSION], [0.29.1])
164 m4_if(m4_version_compare(PKG_MACROS_VERSION, [$1]), -1,
165 [m4_fatal([pkg.m4 version $1 or higher is required but ]PKG_MACROS_VERSION[ found])])
168 dnl PKG_PROG_PKG_CONFIG([MIN-VERSION])
169 dnl ----------------------------------
172 dnl Search for the pkg-config tool and set the PKG_CONFIG variable to
173 dnl first found in the path. Checks that the version of pkg-config found
174 dnl is at least MIN-VERSION. If MIN-VERSION is not specified, 0.9.0 is
175 dnl used since that's the first version where most current features of
176 dnl pkg-config existed.
177 AC_DEFUN([PKG_PROG_PKG_CONFIG],
178 [m4_pattern_forbid([^_?PKG_[A-Z_]+$])
179 m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$])
180 m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$])
181 AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
182 AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
183 AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
185 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
186 AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
188 if test -n "$PKG_CONFIG"; then
189 _pkg_min_version=m4_default([$1], [0.9.0])
190 AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
191 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
198 ])dnl PKG_PROG_PKG_CONFIG
200 dnl PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
201 dnl -------------------------------------------------------------------
204 dnl Check to see whether a particular set of modules exists. Similar to
205 dnl PKG_CHECK_MODULES(), but does not set variables or print errors.
207 dnl Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
208 dnl only at the first occurence in configure.ac, so if the first place
209 dnl it's called might be skipped (such as if it is within an "if", you
210 dnl have to call PKG_CHECK_EXISTS manually
211 AC_DEFUN([PKG_CHECK_EXISTS],
212 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
213 if test -n "$PKG_CONFIG" && \
214 AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
215 m4_default([$2], [:])
216 m4_ifvaln([$3], [else
220 dnl _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
221 dnl ---------------------------------------------
222 dnl Internal wrapper calling pkg-config via PKG_CONFIG and setting
223 dnl pkg_failed based on the result.
224 m4_define([_PKG_CONFIG],
225 [if test -n "$$1"; then
227 elif test -n "$PKG_CONFIG"; then
228 PKG_CHECK_EXISTS([$3],
229 [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`
230 test "x$?" != "x0" && pkg_failed=yes ],
237 dnl _PKG_SHORT_ERRORS_SUPPORTED
238 dnl ---------------------------
239 dnl Internal check to see if pkg-config supports short errors.
240 AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
241 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])
242 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
243 _pkg_short_errors_supported=yes
245 _pkg_short_errors_supported=no
247 ])dnl _PKG_SHORT_ERRORS_SUPPORTED
250 dnl PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
251 dnl [ACTION-IF-NOT-FOUND])
252 dnl --------------------------------------------------------------
255 dnl Note that if there is a possibility the first call to
256 dnl PKG_CHECK_MODULES might not happen, you should be sure to include an
257 dnl explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
258 AC_DEFUN([PKG_CHECK_MODULES],
259 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
260 AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
261 AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
264 AC_MSG_CHECKING([for $1])
266 _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
267 _PKG_CONFIG([$1][_LIBS], [libs], [$2])
269 m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
270 and $1[]_LIBS to avoid the need to call pkg-config.
271 See the pkg-config man page for more details.])
273 if test $pkg_failed = yes; then
275 _PKG_SHORT_ERRORS_SUPPORTED
276 if test $_pkg_short_errors_supported = yes; then
277 $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1`
279 $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
281 # Put the nasty error message in config.log where it belongs
282 echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
284 m4_default([$4], [AC_MSG_ERROR(
285 [Package requirements ($2) were not met:
289 Consider adjusting the PKG_CONFIG_PATH environment variable if you
290 installed software in a non-standard prefix.
294 elif test $pkg_failed = untried; then
296 m4_default([$4], [AC_MSG_FAILURE(
297 [The pkg-config script could not be found or is too old. Make sure it
298 is in your PATH or set the PKG_CONFIG environment variable to the full
303 To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl
306 $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
307 $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
311 ])dnl PKG_CHECK_MODULES
314 dnl PKG_CHECK_MODULES_STATIC(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
315 dnl [ACTION-IF-NOT-FOUND])
316 dnl ---------------------------------------------------------------------
319 dnl Checks for existence of MODULES and gathers its build flags with
320 dnl static libraries enabled. Sets VARIABLE-PREFIX_CFLAGS from --cflags
321 dnl and VARIABLE-PREFIX_LIBS from --libs.
323 dnl Note that if there is a possibility the first call to
324 dnl PKG_CHECK_MODULES_STATIC might not happen, you should be sure to
325 dnl include an explicit call to PKG_PROG_PKG_CONFIG in your
327 AC_DEFUN([PKG_CHECK_MODULES_STATIC],
328 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
329 _save_PKG_CONFIG=$PKG_CONFIG
330 PKG_CONFIG="$PKG_CONFIG --static"
331 PKG_CHECK_MODULES($@)
332 PKG_CONFIG=$_save_PKG_CONFIG[]dnl
333 ])dnl PKG_CHECK_MODULES_STATIC
336 dnl PKG_INSTALLDIR([DIRECTORY])
337 dnl -------------------------
340 dnl Substitutes the variable pkgconfigdir as the location where a module
341 dnl should install pkg-config .pc files. By default the directory is
342 dnl $libdir/pkgconfig, but the default can be changed by passing
343 dnl DIRECTORY. The user can override through the --with-pkgconfigdir
345 AC_DEFUN([PKG_INSTALLDIR],
346 [m4_pushdef([pkg_default], [m4_default([$1], ['${libdir}/pkgconfig'])])
347 m4_pushdef([pkg_description],
348 [pkg-config installation directory @<:@]pkg_default[@:>@])
349 AC_ARG_WITH([pkgconfigdir],
350 [AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],,
351 [with_pkgconfigdir=]pkg_default)
352 AC_SUBST([pkgconfigdir], [$with_pkgconfigdir])
353 m4_popdef([pkg_default])
354 m4_popdef([pkg_description])
358 dnl PKG_NOARCH_INSTALLDIR([DIRECTORY])
359 dnl --------------------------------
362 dnl Substitutes the variable noarch_pkgconfigdir as the location where a
363 dnl module should install arch-independent pkg-config .pc files. By
364 dnl default the directory is $datadir/pkgconfig, but the default can be
365 dnl changed by passing DIRECTORY. The user can override through the
366 dnl --with-noarch-pkgconfigdir parameter.
367 AC_DEFUN([PKG_NOARCH_INSTALLDIR],
368 [m4_pushdef([pkg_default], [m4_default([$1], ['${datadir}/pkgconfig'])])
369 m4_pushdef([pkg_description],
370 [pkg-config arch-independent installation directory @<:@]pkg_default[@:>@])
371 AC_ARG_WITH([noarch-pkgconfigdir],
372 [AS_HELP_STRING([--with-noarch-pkgconfigdir], pkg_description)],,
373 [with_noarch_pkgconfigdir=]pkg_default)
374 AC_SUBST([noarch_pkgconfigdir], [$with_noarch_pkgconfigdir])
375 m4_popdef([pkg_default])
376 m4_popdef([pkg_description])
377 ])dnl PKG_NOARCH_INSTALLDIR
380 dnl PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE,
381 dnl [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
382 dnl -------------------------------------------
385 dnl Retrieves the value of the pkg-config variable for the given module.
386 AC_DEFUN([PKG_CHECK_VAR],
387 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
388 AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl
390 _PKG_CONFIG([$1], [variable="][$3]["], [$2])
391 AS_VAR_COPY([$1], [pkg_cv_][$1])
393 AS_VAR_IF([$1], [""], [$5], [$4])dnl
396 dnl PKG_WITH_MODULES(VARIABLE-PREFIX, MODULES,
397 dnl [ACTION-IF-FOUND],[ACTION-IF-NOT-FOUND],
398 dnl [DESCRIPTION], [DEFAULT])
399 dnl ------------------------------------------
401 dnl Prepare a "--with-" configure option using the lowercase
402 dnl [VARIABLE-PREFIX] name, merging the behaviour of AC_ARG_WITH and
403 dnl PKG_CHECK_MODULES in a single macro.
404 AC_DEFUN([PKG_WITH_MODULES],
406 m4_pushdef([with_arg], m4_tolower([$1]))
408 m4_pushdef([description],
409 [m4_default([$5], [build with ]with_arg[ support])])
411 m4_pushdef([def_arg], [m4_default([$6], [auto])])
412 m4_pushdef([def_action_if_found], [AS_TR_SH([with_]with_arg)=yes])
413 m4_pushdef([def_action_if_not_found], [AS_TR_SH([with_]with_arg)=no])
416 [yes],[m4_pushdef([with_without], [--without-]with_arg)],
417 [m4_pushdef([with_without],[--with-]with_arg)])
419 AC_ARG_WITH(with_arg,
420 AS_HELP_STRING(with_without, description[ @<:@default=]def_arg[@:>@]),,
421 [AS_TR_SH([with_]with_arg)=def_arg])
423 AS_CASE([$AS_TR_SH([with_]with_arg)],
424 [yes],[PKG_CHECK_MODULES([$1],[$2],$3,$4)],
425 [auto],[PKG_CHECK_MODULES([$1],[$2],
426 [m4_n([def_action_if_found]) $3],
427 [m4_n([def_action_if_not_found]) $4])])
429 m4_popdef([with_arg])
430 m4_popdef([description])
433 ])dnl PKG_WITH_MODULES
435 dnl PKG_HAVE_WITH_MODULES(VARIABLE-PREFIX, MODULES,
436 dnl [DESCRIPTION], [DEFAULT])
437 dnl -----------------------------------------------
439 dnl Convenience macro to trigger AM_CONDITIONAL after PKG_WITH_MODULES
440 dnl check._[VARIABLE-PREFIX] is exported as make variable.
441 AC_DEFUN([PKG_HAVE_WITH_MODULES],
443 PKG_WITH_MODULES([$1],[$2],,,[$3],[$4])
445 AM_CONDITIONAL([HAVE_][$1],
446 [test "$AS_TR_SH([with_]m4_tolower([$1]))" = "yes"])
447 ])dnl PKG_HAVE_WITH_MODULES
449 dnl PKG_HAVE_DEFINE_WITH_MODULES(VARIABLE-PREFIX, MODULES,
450 dnl [DESCRIPTION], [DEFAULT])
451 dnl ------------------------------------------------------
453 dnl Convenience macro to run AM_CONDITIONAL and AC_DEFINE after
454 dnl PKG_WITH_MODULES check. HAVE_[VARIABLE-PREFIX] is exported as make
455 dnl and preprocessor variable.
456 AC_DEFUN([PKG_HAVE_DEFINE_WITH_MODULES],
458 PKG_HAVE_WITH_MODULES([$1],[$2],[$3],[$4])
460 AS_IF([test "$AS_TR_SH([with_]m4_tolower([$1]))" = "yes"],
461 [AC_DEFINE([HAVE_][$1], 1, [Enable ]m4_tolower([$1])[ support])])
462 ])dnl PKG_HAVE_DEFINE_WITH_MODULES
464 # Copyright (C) 2002-2018 Free Software Foundation, Inc.
466 # This file is free software; the Free Software Foundation
467 # gives unlimited permission to copy and/or distribute it,
468 # with or without modifications, as long as this notice is preserved.
470 # AM_AUTOMAKE_VERSION(VERSION)
471 # ----------------------------
472 # Automake X.Y traces this macro to ensure aclocal.m4 has been
473 # generated from the m4 files accompanying Automake X.Y.
474 # (This private macro should not be called outside this file.)
475 AC_DEFUN([AM_AUTOMAKE_VERSION],
476 [am__api_version='1.16'
477 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
478 dnl require some minimum version. Point them to the right macro.
479 m4_if([$1], [1.16.1], [],
480 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
483 # _AM_AUTOCONF_VERSION(VERSION)
484 # -----------------------------
485 # aclocal traces this macro to find the Autoconf version.
486 # This is a private macro too. Using m4_define simplifies
487 # the logic in aclocal, which can simply ignore this definition.
488 m4_define([_AM_AUTOCONF_VERSION], [])
490 # AM_SET_CURRENT_AUTOMAKE_VERSION
491 # -------------------------------
492 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
493 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
494 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
495 [AM_AUTOMAKE_VERSION([1.16.1])dnl
496 m4_ifndef([AC_AUTOCONF_VERSION],
497 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
498 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
500 # Copyright (C) 2011-2018 Free Software Foundation, Inc.
502 # This file is free software; the Free Software Foundation
503 # gives unlimited permission to copy and/or distribute it,
504 # with or without modifications, as long as this notice is preserved.
506 # AM_PROG_AR([ACT-IF-FAIL])
507 # -------------------------
508 # Try to determine the archiver interface, and trigger the ar-lib wrapper
509 # if it is needed. If the detection of archiver interface fails, run
510 # ACT-IF-FAIL (default is to abort configure with a proper error message).
511 AC_DEFUN([AM_PROG_AR],
512 [AC_BEFORE([$0], [LT_INIT])dnl
513 AC_BEFORE([$0], [AC_PROG_LIBTOOL])dnl
514 AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
515 AC_REQUIRE_AUX_FILE([ar-lib])dnl
516 AC_CHECK_TOOLS([AR], [ar lib "link -lib"], [false])
519 AC_CACHE_CHECK([the archiver ($AR) interface], [am_cv_ar_interface],
521 am_cv_ar_interface=ar
522 AC_COMPILE_IFELSE([AC_LANG_SOURCE([[int some_variable = 0;]])],
523 [am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&AS_MESSAGE_LOG_FD'
524 AC_TRY_EVAL([am_ar_try])
525 if test "$ac_status" -eq 0; then
526 am_cv_ar_interface=ar
528 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&AS_MESSAGE_LOG_FD'
529 AC_TRY_EVAL([am_ar_try])
530 if test "$ac_status" -eq 0; then
531 am_cv_ar_interface=lib
533 am_cv_ar_interface=unknown
536 rm -f conftest.lib libconftest.a
540 case $am_cv_ar_interface in
544 # Microsoft lib, so override with the ar-lib wrapper script.
545 # FIXME: It is wrong to rewrite AR.
546 # But if we don't then we get into trouble of one sort or another.
547 # A longer-term fix would be to have automake use am__AR in this case,
548 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
550 AR="$am_aux_dir/ar-lib $AR"
554 [AC_MSG_ERROR([could not determine $AR interface])])
560 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
562 # Copyright (C) 2001-2018 Free Software Foundation, Inc.
564 # This file is free software; the Free Software Foundation
565 # gives unlimited permission to copy and/or distribute it,
566 # with or without modifications, as long as this notice is preserved.
568 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
569 # $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to
570 # '$srcdir', '$srcdir/..', or '$srcdir/../..'.
572 # Of course, Automake must honor this variable whenever it calls a
573 # tool from the auxiliary directory. The problem is that $srcdir (and
574 # therefore $ac_aux_dir as well) can be either absolute or relative,
575 # depending on how configure is run. This is pretty annoying, since
576 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
577 # source directory, any form will work fine, but in subdirectories a
578 # relative path needs to be adjusted first.
580 # $ac_aux_dir/missing
581 # fails when called from a subdirectory if $ac_aux_dir is relative
582 # $top_srcdir/$ac_aux_dir/missing
583 # fails if $ac_aux_dir is absolute,
584 # fails when called from a subdirectory in a VPATH build with
585 # a relative $ac_aux_dir
587 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
588 # are both prefixed by $srcdir. In an in-source build this is usually
589 # harmless because $srcdir is '.', but things will broke when you
590 # start a VPATH build or use an absolute $srcdir.
592 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
593 # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
594 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
595 # and then we would define $MISSING as
596 # MISSING="\${SHELL} $am_aux_dir/missing"
597 # This will work as long as MISSING is not called from configure, because
598 # unfortunately $(top_srcdir) has no meaning in configure.
599 # However there are other variables, like CC, which are often used in
600 # configure, and could therefore not use this "fixed" $ac_aux_dir.
602 # Another solution, used here, is to always expand $ac_aux_dir to an
603 # absolute PATH. The drawback is that using absolute paths prevent a
604 # configured tree to be moved without reconfiguration.
606 AC_DEFUN([AM_AUX_DIR_EXPAND],
607 [AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
608 # Expand $ac_aux_dir to an absolute path.
609 am_aux_dir=`cd "$ac_aux_dir" && pwd`
612 # AM_CONDITIONAL -*- Autoconf -*-
614 # Copyright (C) 1997-2018 Free Software Foundation, Inc.
616 # This file is free software; the Free Software Foundation
617 # gives unlimited permission to copy and/or distribute it,
618 # with or without modifications, as long as this notice is preserved.
620 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
621 # -------------------------------------
622 # Define a conditional.
623 AC_DEFUN([AM_CONDITIONAL],
624 [AC_PREREQ([2.52])dnl
625 m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
626 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
627 AC_SUBST([$1_TRUE])dnl
628 AC_SUBST([$1_FALSE])dnl
629 _AM_SUBST_NOTMAKE([$1_TRUE])dnl
630 _AM_SUBST_NOTMAKE([$1_FALSE])dnl
631 m4_define([_AM_COND_VALUE_$1], [$2])dnl
639 AC_CONFIG_COMMANDS_PRE(
640 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
641 AC_MSG_ERROR([[conditional "$1" was never defined.
642 Usually this means the macro was only invoked conditionally.]])
645 # Copyright (C) 1999-2018 Free Software Foundation, Inc.
647 # This file is free software; the Free Software Foundation
648 # gives unlimited permission to copy and/or distribute it,
649 # with or without modifications, as long as this notice is preserved.
652 # There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
653 # written in clear, in which case automake, when reading aclocal.m4,
654 # will think it sees a *use*, and therefore will trigger all it's
655 # C support machinery. Also note that it means that autoscan, seeing
656 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
659 # _AM_DEPENDENCIES(NAME)
660 # ----------------------
661 # See how the compiler implements dependency checking.
662 # NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
663 # We try a few techniques and use that to set a single cache variable.
665 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
666 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
667 # dependency, and given that the user is not expected to run this macro,
668 # just rely on AC_PROG_CC.
669 AC_DEFUN([_AM_DEPENDENCIES],
670 [AC_REQUIRE([AM_SET_DEPDIR])dnl
671 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
672 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
673 AC_REQUIRE([AM_DEP_TRACK])dnl
675 m4_if([$1], [CC], [depcc="$CC" am_compiler_list=],
676 [$1], [CXX], [depcc="$CXX" am_compiler_list=],
677 [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
678 [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
679 [$1], [UPC], [depcc="$UPC" am_compiler_list=],
680 [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
681 [depcc="$$1" am_compiler_list=])
683 AC_CACHE_CHECK([dependency style of $depcc],
684 [am_cv_$1_dependencies_compiler_type],
685 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
686 # We make a subdir and do the tests there. Otherwise we can end up
687 # making bogus files that we don't know about and never remove. For
688 # instance it was reported that on HP-UX the gcc test will end up
689 # making a dummy file named 'D' -- because '-MD' means "put the output
693 # Copy depcomp to subdir because otherwise we won't find it if we're
694 # using a relative directory.
695 cp "$am_depcomp" conftest.dir
697 # We will build objects and dependencies in a subdirectory because
698 # it helps to detect inapplicable dependency modes. For instance
699 # both Tru64's cc and ICC support -MD to output dependencies as a
700 # side effect of compilation, but ICC will put the dependencies in
701 # the current directory while Tru64 will put them in the object
705 am_cv_$1_dependencies_compiler_type=none
706 if test "$am_compiler_list" = ""; then
707 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
711 [case " $depcc " in #(
712 *\ -arch\ *\ -arch\ *) am__universal=true ;;
715 [case " $depcc " in #(
716 *\ -arch\ *\ -arch\ *) am__universal=true ;;
719 for depmode in $am_compiler_list; do
720 # Setup a source with many dependencies, because some compilers
721 # like to wrap large dependency lists on column 80 (with \), and
722 # we should not choose a depcomp mode which is confused by this.
724 # We need to recreate these files for each test, as the compiler may
725 # overwrite some of them when testing with obscure command lines.
726 # This happens at least with the AIX C compiler.
728 for i in 1 2 3 4 5 6; do
729 echo '#include "conftst'$i'.h"' >> sub/conftest.c
730 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
731 # Solaris 10 /bin/sh.
732 echo '/* dummy */' > sub/conftst$i.h
734 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
736 # We check with '-c' and '-o' for the sake of the "dashmstdout"
737 # mode. It turns out that the SunPro C++ compiler does not properly
738 # handle '-M -o', and we need to detect this. Also, some Intel
739 # versions had trouble with output in subdirs.
740 am__obj=sub/conftest.${OBJEXT-o}
741 am__minus_obj="-o $am__obj"
744 # This depmode causes a compiler race in universal mode.
745 test "$am__universal" = false || continue
748 # After this tag, mechanisms are not by side-effect, so they'll
749 # only be used when explicitly requested.
750 if test "x$enable_dependency_tracking" = xyes; then
756 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
757 # This compiler won't grok '-c -o', but also, the minuso test has
758 # not run yet. These depmodes are late enough in the game, and
759 # so weak that their functioning should not be impacted.
760 am__obj=conftest.${OBJEXT-o}
765 if depmode=$depmode \
766 source=sub/conftest.c object=$am__obj \
767 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
768 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
769 >/dev/null 2>conftest.err &&
770 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
771 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
772 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
773 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
774 # icc doesn't choke on unknown options, it will just issue warnings
775 # or remarks (even with -Werror). So we grep stderr for any message
776 # that says an option was ignored or not supported.
777 # When given -MP, icc 7.0 and 7.1 complain thusly:
778 # icc: Command line warning: ignoring option '-M'; no argument required
779 # The diagnosis changed in icc 8.0:
780 # icc: Command line remark: option '-MP' not supported
781 if (grep 'ignoring option' conftest.err ||
782 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
783 am_cv_$1_dependencies_compiler_type=$depmode
792 am_cv_$1_dependencies_compiler_type=none
795 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
796 AM_CONDITIONAL([am__fastdep$1], [
797 test "x$enable_dependency_tracking" != xno \
798 && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
804 # Choose a directory name for dependency files.
805 # This macro is AC_REQUIREd in _AM_DEPENDENCIES.
806 AC_DEFUN([AM_SET_DEPDIR],
807 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
808 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
814 AC_DEFUN([AM_DEP_TRACK],
815 [AC_ARG_ENABLE([dependency-tracking], [dnl
817 [--enable-dependency-tracking],
818 [do not reject slow dependency extractors])
820 [--disable-dependency-tracking],
821 [speeds up one-time build])])
822 if test "x$enable_dependency_tracking" != xno; then
823 am_depcomp="$ac_aux_dir/depcomp"
827 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
828 AC_SUBST([AMDEPBACKSLASH])dnl
829 _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
830 AC_SUBST([am__nodep])dnl
831 _AM_SUBST_NOTMAKE([am__nodep])dnl
834 # Generate code to set up dependency tracking. -*- Autoconf -*-
836 # Copyright (C) 1999-2018 Free Software Foundation, Inc.
838 # This file is free software; the Free Software Foundation
839 # gives unlimited permission to copy and/or distribute it,
840 # with or without modifications, as long as this notice is preserved.
842 # _AM_OUTPUT_DEPENDENCY_COMMANDS
843 # ------------------------------
844 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
846 # Older Autoconf quotes --file arguments for eval, but not when files
847 # are listed without --file. Let's play safe and only enable the eval
848 # if we detect the quoting.
849 # TODO: see whether this extra hack can be removed once we start
850 # requiring Autoconf 2.70 or later.
851 AS_CASE([$CONFIG_FILES],
852 [*\'*], [eval set x "$CONFIG_FILES"],
853 [*], [set x $CONFIG_FILES])
855 # Used to flag and report bootstrapping failures.
859 # Strip MF so we end up with the name of the file.
860 am_mf=`AS_ECHO(["$am_mf"]) | sed -e 's/:.*$//'`
861 # Check whether this is an Automake generated Makefile which includes
862 # dependency-tracking related rules and includes.
863 # Grep'ing the whole file directly is not great: AIX grep has a line
864 # limit of 2048, but all sed's we know have understand at least 4000.
865 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
867 am_dirpart=`AS_DIRNAME(["$am_mf"])`
868 am_filepart=`AS_BASENAME(["$am_mf"])`
869 AM_RUN_LOG([cd "$am_dirpart" \
870 && sed -e '/# am--include-marker/d' "$am_filepart" \
871 | $MAKE -f - am--depfiles]) || am_rc=$?
873 if test $am_rc -ne 0; then
874 AC_MSG_FAILURE([Something went wrong bootstrapping makefile fragments
875 for automatic dependency tracking. Try re-running configure with the
876 '--disable-dependency-tracking' option to at least be able to build
877 the package (albeit without support for automatic dependency tracking).])
879 AS_UNSET([am_dirpart])
880 AS_UNSET([am_filepart])
883 rm -f conftest-deps.mk
885 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
888 # AM_OUTPUT_DEPENDENCY_COMMANDS
889 # -----------------------------
890 # This macro should only be invoked once -- use via AC_REQUIRE.
892 # This code is only required when automatic dependency tracking is enabled.
893 # This creates each '.Po' and '.Plo' makefile fragment that we'll need in
894 # order to bootstrap the dependency handling code.
895 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
896 [AC_CONFIG_COMMANDS([depfiles],
897 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
898 [AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"])])
900 # Do all the work for Automake. -*- Autoconf -*-
902 # Copyright (C) 1996-2018 Free Software Foundation, Inc.
904 # This file is free software; the Free Software Foundation
905 # gives unlimited permission to copy and/or distribute it,
906 # with or without modifications, as long as this notice is preserved.
908 # This macro actually does too much. Some checks are only needed if
909 # your package does certain things. But this isn't really a big deal.
911 dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
912 m4_define([AC_PROG_CC],
913 m4_defn([AC_PROG_CC])
917 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
918 # AM_INIT_AUTOMAKE([OPTIONS])
919 # -----------------------------------------------
920 # The call with PACKAGE and VERSION arguments is the old style
921 # call (pre autoconf-2.50), which is being phased out. PACKAGE
922 # and VERSION should now be passed to AC_INIT and removed from
923 # the call to AM_INIT_AUTOMAKE.
924 # We support both call styles for the transition. After
925 # the next Automake release, Autoconf can make the AC_INIT
926 # arguments mandatory, and then we can depend on a new Autoconf
927 # release and drop the old call support.
928 AC_DEFUN([AM_INIT_AUTOMAKE],
929 [AC_PREREQ([2.65])dnl
930 dnl Autoconf wants to disallow AM_ names. We explicitly allow
931 dnl the ones we care about.
932 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
933 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
934 AC_REQUIRE([AC_PROG_INSTALL])dnl
935 if test "`cd $srcdir && pwd`" != "`pwd`"; then
936 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
937 # is not polluted with repeated "-I."
938 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
939 # test to see if srcdir already configured
940 if test -f $srcdir/config.status; then
941 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
945 # test whether we have cygpath
946 if test -z "$CYGPATH_W"; then
947 if (cygpath --version) >/dev/null 2>/dev/null; then
948 CYGPATH_W='cygpath -w'
953 AC_SUBST([CYGPATH_W])
955 # Define the identity of the package.
956 dnl Distinguish between old-style and new-style calls.
958 [AC_DIAGNOSE([obsolete],
959 [$0: two- and three-arguments forms are deprecated.])
960 m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
961 AC_SUBST([PACKAGE], [$1])dnl
962 AC_SUBST([VERSION], [$2])],
963 [_AM_SET_OPTIONS([$1])dnl
964 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
966 m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
968 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
969 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
970 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
972 _AM_IF_OPTION([no-define],,
973 [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
974 AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
976 # Some tools Automake needs.
977 AC_REQUIRE([AM_SANITY_CHECK])dnl
978 AC_REQUIRE([AC_ARG_PROGRAM])dnl
979 AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
980 AM_MISSING_PROG([AUTOCONF], [autoconf])
981 AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
982 AM_MISSING_PROG([AUTOHEADER], [autoheader])
983 AM_MISSING_PROG([MAKEINFO], [makeinfo])
984 AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
985 AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
986 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
987 # For better backward compatibility. To be removed once Automake 1.9.x
988 # dies out for good. For more background, see:
989 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
990 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
991 AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
992 # We need awk for the "check" target (and possibly the TAP driver). The
993 # system "awk" is bad on some platforms.
994 AC_REQUIRE([AC_PROG_AWK])dnl
995 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
996 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
997 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
998 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
999 [_AM_PROG_TAR([v7])])])
1000 _AM_IF_OPTION([no-dependencies],,
1001 [AC_PROVIDE_IFELSE([AC_PROG_CC],
1002 [_AM_DEPENDENCIES([CC])],
1003 [m4_define([AC_PROG_CC],
1004 m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
1005 AC_PROVIDE_IFELSE([AC_PROG_CXX],
1006 [_AM_DEPENDENCIES([CXX])],
1007 [m4_define([AC_PROG_CXX],
1008 m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
1009 AC_PROVIDE_IFELSE([AC_PROG_OBJC],
1010 [_AM_DEPENDENCIES([OBJC])],
1011 [m4_define([AC_PROG_OBJC],
1012 m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
1013 AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
1014 [_AM_DEPENDENCIES([OBJCXX])],
1015 [m4_define([AC_PROG_OBJCXX],
1016 m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
1018 AC_REQUIRE([AM_SILENT_RULES])dnl
1019 dnl The testsuite driver may need to know about EXEEXT, so add the
1020 dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This
1021 dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
1022 AC_CONFIG_COMMANDS_PRE(dnl
1023 [m4_provide_if([_AM_COMPILER_EXEEXT],
1024 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
1026 # POSIX will say in a future version that running "rm -f" with no argument
1027 # is OK; and we want to be able to make that assumption in our Makefile
1028 # recipes. So use an aggressive probe to check that the usage we want is
1029 # actually supported "in the wild" to an acceptable degree.
1030 # See automake bug#10828.
1031 # To make any issue more visible, cause the running configure to be aborted
1032 # by default if the 'rm' program in use doesn't match our expectations; the
1033 # user can still override this though.
1034 if rm -f && rm -fr && rm -rf; then : OK; else
1038 Your 'rm' program seems unable to run without file operands specified
1039 on the command line, even when the '-f' option is present. This is contrary
1040 to the behaviour of most rm programs out there, and not conforming with
1041 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
1043 Please tell bug-automake@gnu.org about your system, including the value
1044 of your $PATH and any error possibly output before this message. This
1045 can help us improve future automake versions.
1048 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
1049 echo 'Configuration will proceed anyway, since you have set the' >&2
1050 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
1054 Aborting the configuration process, to ensure you take notice of the issue.
1056 You can download and install GNU coreutils to get an 'rm' implementation
1057 that behaves properly: <https://www.gnu.org/software/coreutils/>.
1059 If you want to complete the configuration process using your problematic
1060 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
1061 to "yes", and re-run configure.
1064 AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
1067 dnl The trailing newline in this macro's definition is deliberate, for
1068 dnl backward compatibility and to allow trailing 'dnl'-style comments
1069 dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841.
1072 dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
1073 dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
1074 dnl mangled by Autoconf and run in a shell conditional statement.
1075 m4_define([_AC_COMPILER_EXEEXT],
1076 m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
1078 # When config.status generates a header, we must update the stamp-h file.
1079 # This file resides in the same directory as the config header
1080 # that is generated. The stamp files are numbered to have different names.
1082 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
1083 # loop where config.status creates the headers, so we can generate
1084 # our stamp files there.
1085 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
1086 [# Compute $1's index in $config_headers.
1089 for _am_header in $config_headers :; do
1091 $_am_arg | $_am_arg:* )
1094 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
1097 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
1099 # Copyright (C) 2001-2018 Free Software Foundation, Inc.
1101 # This file is free software; the Free Software Foundation
1102 # gives unlimited permission to copy and/or distribute it,
1103 # with or without modifications, as long as this notice is preserved.
1105 # AM_PROG_INSTALL_SH
1106 # ------------------
1107 # Define $install_sh.
1108 AC_DEFUN([AM_PROG_INSTALL_SH],
1109 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1110 if test x"${install_sh+set}" != xset; then
1113 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
1115 install_sh="\${SHELL} $am_aux_dir/install-sh"
1118 AC_SUBST([install_sh])])
1120 # Copyright (C) 2003-2018 Free Software Foundation, Inc.
1122 # This file is free software; the Free Software Foundation
1123 # gives unlimited permission to copy and/or distribute it,
1124 # with or without modifications, as long as this notice is preserved.
1126 # Check whether the underlying file-system supports filenames
1127 # with a leading dot. For instance MS-DOS doesn't.
1128 AC_DEFUN([AM_SET_LEADING_DOT],
1129 [rm -rf .tst 2>/dev/null
1130 mkdir .tst 2>/dev/null
1131 if test -d .tst; then
1136 rmdir .tst 2>/dev/null
1137 AC_SUBST([am__leading_dot])])
1139 # Check to see how 'make' treats includes. -*- Autoconf -*-
1141 # Copyright (C) 2001-2018 Free Software Foundation, Inc.
1143 # This file is free software; the Free Software Foundation
1144 # gives unlimited permission to copy and/or distribute it,
1145 # with or without modifications, as long as this notice is preserved.
1149 # Check whether make has an 'include' directive that can support all
1150 # the idioms we need for our automatic dependency tracking code.
1151 AC_DEFUN([AM_MAKE_INCLUDE],
1152 [AC_MSG_CHECKING([whether ${MAKE-make} supports the include directive])
1153 cat > confinc.mk << 'END'
1155 @echo this is the am__doit target >confinc.out
1160 # BSD make does it like this.
1161 echo '.include "confinc.mk" # ignored' > confmf.BSD
1162 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
1163 echo 'include confinc.mk # ignored' > confmf.GNU
1165 for s in GNU BSD; do
1166 AM_RUN_LOG([${MAKE-make} -f confmf.$s && cat confinc.out])
1167 AS_CASE([$?:`cat confinc.out 2>/dev/null`],
1168 ['0:this is the am__doit target'],
1170 [BSD], [am__include='.include' am__quote='"'],
1171 [am__include='include' am__quote=''])])
1172 if test "$am__include" != "#"; then
1173 _am_result="yes ($s style)"
1177 rm -f confinc.* confmf.*
1178 AC_MSG_RESULT([${_am_result}])
1179 AC_SUBST([am__include])])
1180 AC_SUBST([am__quote])])
1182 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
1184 # Copyright (C) 1997-2018 Free Software Foundation, Inc.
1186 # This file is free software; the Free Software Foundation
1187 # gives unlimited permission to copy and/or distribute it,
1188 # with or without modifications, as long as this notice is preserved.
1190 # AM_MISSING_PROG(NAME, PROGRAM)
1191 # ------------------------------
1192 AC_DEFUN([AM_MISSING_PROG],
1193 [AC_REQUIRE([AM_MISSING_HAS_RUN])
1194 $1=${$1-"${am_missing_run}$2"}
1197 # AM_MISSING_HAS_RUN
1198 # ------------------
1199 # Define MISSING if not defined so far and test if it is modern enough.
1200 # If it is, set am_missing_run to use it, otherwise, to nothing.
1201 AC_DEFUN([AM_MISSING_HAS_RUN],
1202 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1203 AC_REQUIRE_AUX_FILE([missing])dnl
1204 if test x"${MISSING+set}" != xset; then
1207 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
1209 MISSING="\${SHELL} $am_aux_dir/missing" ;;
1212 # Use eval to expand $SHELL
1213 if eval "$MISSING --is-lightweight"; then
1214 am_missing_run="$MISSING "
1217 AC_MSG_WARN(['missing' script is too old or missing])
1221 # Helper functions for option handling. -*- Autoconf -*-
1223 # Copyright (C) 2001-2018 Free Software Foundation, Inc.
1225 # This file is free software; the Free Software Foundation
1226 # gives unlimited permission to copy and/or distribute it,
1227 # with or without modifications, as long as this notice is preserved.
1229 # _AM_MANGLE_OPTION(NAME)
1230 # -----------------------
1231 AC_DEFUN([_AM_MANGLE_OPTION],
1232 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
1234 # _AM_SET_OPTION(NAME)
1235 # --------------------
1236 # Set option NAME. Presently that only means defining a flag for this option.
1237 AC_DEFUN([_AM_SET_OPTION],
1238 [m4_define(_AM_MANGLE_OPTION([$1]), [1])])
1240 # _AM_SET_OPTIONS(OPTIONS)
1241 # ------------------------
1242 # OPTIONS is a space-separated list of Automake options.
1243 AC_DEFUN([_AM_SET_OPTIONS],
1244 [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
1246 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
1247 # -------------------------------------------
1248 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
1249 AC_DEFUN([_AM_IF_OPTION],
1250 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
1252 # Copyright (C) 1999-2018 Free Software Foundation, Inc.
1254 # This file is free software; the Free Software Foundation
1255 # gives unlimited permission to copy and/or distribute it,
1256 # with or without modifications, as long as this notice is preserved.
1260 # Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC
1261 # to automatically call this.
1262 AC_DEFUN([_AM_PROG_CC_C_O],
1263 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1264 AC_REQUIRE_AUX_FILE([compile])dnl
1265 AC_LANG_PUSH([C])dnl
1267 [whether $CC understands -c and -o together],
1268 [am_cv_prog_cc_c_o],
1269 [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
1270 # Make sure it works both with $CC and with simple cc.
1271 # Following AC_PROG_CC_C_O, we do the test twice because some
1272 # compilers refuse to overwrite an existing .o file with -o,
1273 # though they will create one.
1274 am_cv_prog_cc_c_o=yes
1276 if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
1277 && test -f conftest2.$ac_objext; then
1280 am_cv_prog_cc_c_o=no
1284 rm -f core conftest*
1286 if test "$am_cv_prog_cc_c_o" != yes; then
1287 # Losing compiler, so override with the script.
1288 # FIXME: It is wrong to rewrite CC.
1289 # But if we don't then we get into trouble of one sort or another.
1290 # A longer-term fix would be to have automake use am__CC in this case,
1291 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
1292 CC="$am_aux_dir/compile $CC"
1296 # For backward compatibility.
1297 AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
1299 # Copyright (C) 2001-2018 Free Software Foundation, Inc.
1301 # This file is free software; the Free Software Foundation
1302 # gives unlimited permission to copy and/or distribute it,
1303 # with or without modifications, as long as this notice is preserved.
1305 # AM_RUN_LOG(COMMAND)
1306 # -------------------
1307 # Run COMMAND, save the exit status in ac_status, and log it.
1308 # (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
1309 AC_DEFUN([AM_RUN_LOG],
1310 [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
1311 ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
1313 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1314 (exit $ac_status); }])
1316 # Check to make sure that the build environment is sane. -*- Autoconf -*-
1318 # Copyright (C) 1996-2018 Free Software Foundation, Inc.
1320 # This file is free software; the Free Software Foundation
1321 # gives unlimited permission to copy and/or distribute it,
1322 # with or without modifications, as long as this notice is preserved.
1326 AC_DEFUN([AM_SANITY_CHECK],
1327 [AC_MSG_CHECKING([whether build environment is sane])
1328 # Reject unsafe characters in $srcdir or the absolute working directory
1329 # name. Accept space and tab only in the latter.
1333 *[[\\\"\#\$\&\'\`$am_lf]]*)
1334 AC_MSG_ERROR([unsafe absolute working directory name]);;
1337 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
1338 AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
1341 # Do 'set' in a subshell so we don't clobber the current shell's
1342 # arguments. Must try -L first in case configure is actually a
1343 # symlink; some systems play weird games with the mod time of symlinks
1344 # (eg FreeBSD returns the mod time of the symlink's containing
1348 for am_try in 1 2; do
1349 echo "timestamp, slept: $am_has_slept" > conftest.file
1350 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
1351 if test "$[*]" = "X"; then
1353 set X `ls -t "$srcdir/configure" conftest.file`
1355 if test "$[*]" != "X $srcdir/configure conftest.file" \
1356 && test "$[*]" != "X conftest.file $srcdir/configure"; then
1358 # If neither matched, then we have a broken ls. This can happen
1359 # if, for instance, CONFIG_SHELL is bash and it inherits a
1360 # broken ls alias from the environment. This has actually
1361 # happened. Such a system could not be considered "sane".
1362 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
1363 alias in your environment])
1365 if test "$[2]" = conftest.file || test $am_try -eq 2; then
1372 test "$[2]" = conftest.file
1378 AC_MSG_ERROR([newly created file is older than distributed files!
1379 Check your system clock])
1381 AC_MSG_RESULT([yes])
1382 # If we didn't sleep, we still need to ensure time stamps of config.status and
1383 # generated files are strictly newer.
1385 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
1389 AC_CONFIG_COMMANDS_PRE(
1390 [AC_MSG_CHECKING([that generated files are newer than configure])
1391 if test -n "$am_sleep_pid"; then
1392 # Hide warnings about reused PIDs.
1393 wait $am_sleep_pid 2>/dev/null
1395 AC_MSG_RESULT([done])])
1399 # Copyright (C) 2009-2018 Free Software Foundation, Inc.
1401 # This file is free software; the Free Software Foundation
1402 # gives unlimited permission to copy and/or distribute it,
1403 # with or without modifications, as long as this notice is preserved.
1405 # AM_SILENT_RULES([DEFAULT])
1406 # --------------------------
1407 # Enable less verbose build rules; with the default set to DEFAULT
1408 # ("yes" being less verbose, "no" or empty being verbose).
1409 AC_DEFUN([AM_SILENT_RULES],
1410 [AC_ARG_ENABLE([silent-rules], [dnl
1412 [--enable-silent-rules],
1413 [less verbose build output (undo: "make V=1")])
1415 [--disable-silent-rules],
1416 [verbose build output (undo: "make V=0")])dnl
1418 case $enable_silent_rules in @%:@ (((
1419 yes) AM_DEFAULT_VERBOSITY=0;;
1420 no) AM_DEFAULT_VERBOSITY=1;;
1421 *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
1424 dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
1425 dnl do not support nested variable expansions.
1426 dnl See automake bug#9928 and bug#10237.
1427 am_make=${MAKE-make}
1428 AC_CACHE_CHECK([whether $am_make supports nested variables],
1429 [am_cv_make_support_nested_variables],
1430 [if AS_ECHO([['TRUE=$(BAR$(V))
1436 .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
1437 am_cv_make_support_nested_variables=yes
1439 am_cv_make_support_nested_variables=no
1441 if test $am_cv_make_support_nested_variables = yes; then
1442 dnl Using '$V' instead of '$(V)' breaks IRIX make.
1444 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
1446 AM_V=$AM_DEFAULT_VERBOSITY
1447 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
1450 AM_SUBST_NOTMAKE([AM_V])dnl
1451 AC_SUBST([AM_DEFAULT_V])dnl
1452 AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
1453 AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
1455 AC_SUBST([AM_BACKSLASH])dnl
1456 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
1459 # Copyright (C) 2001-2018 Free Software Foundation, Inc.
1461 # This file is free software; the Free Software Foundation
1462 # gives unlimited permission to copy and/or distribute it,
1463 # with or without modifications, as long as this notice is preserved.
1465 # AM_PROG_INSTALL_STRIP
1466 # ---------------------
1467 # One issue with vendor 'install' (even GNU) is that you can't
1468 # specify the program used to strip binaries. This is especially
1469 # annoying in cross-compiling environments, where the build's strip
1470 # is unlikely to handle the host's binaries.
1471 # Fortunately install-sh will honor a STRIPPROG variable, so we
1472 # always use install-sh in "make install-strip", and initialize
1473 # STRIPPROG with the value of the STRIP variable (set by the user).
1474 AC_DEFUN([AM_PROG_INSTALL_STRIP],
1475 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
1476 # Installed binaries are usually stripped using 'strip' when the user
1477 # run "make install-strip". However 'strip' might not be the right
1478 # tool to use in cross-compilation environments, therefore Automake
1479 # will honor the 'STRIP' environment variable to overrule this program.
1480 dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
1481 if test "$cross_compiling" != no; then
1482 AC_CHECK_TOOL([STRIP], [strip], :)
1484 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1485 AC_SUBST([INSTALL_STRIP_PROGRAM])])
1487 # Copyright (C) 2006-2018 Free Software Foundation, Inc.
1489 # This file is free software; the Free Software Foundation
1490 # gives unlimited permission to copy and/or distribute it,
1491 # with or without modifications, as long as this notice is preserved.
1493 # _AM_SUBST_NOTMAKE(VARIABLE)
1494 # ---------------------------
1495 # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
1496 # This macro is traced by Automake.
1497 AC_DEFUN([_AM_SUBST_NOTMAKE])
1499 # AM_SUBST_NOTMAKE(VARIABLE)
1500 # --------------------------
1501 # Public sister of _AM_SUBST_NOTMAKE.
1502 AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
1504 # Check how to create a tarball. -*- Autoconf -*-
1506 # Copyright (C) 2004-2018 Free Software Foundation, Inc.
1508 # This file is free software; the Free Software Foundation
1509 # gives unlimited permission to copy and/or distribute it,
1510 # with or without modifications, as long as this notice is preserved.
1512 # _AM_PROG_TAR(FORMAT)
1513 # --------------------
1514 # Check how to create a tarball in format FORMAT.
1515 # FORMAT should be one of 'v7', 'ustar', or 'pax'.
1517 # Substitute a variable $(am__tar) that is a command
1518 # writing to stdout a FORMAT-tarball containing the directory
1520 # tardir=directory && $(am__tar) > result.tar
1522 # Substitute a variable $(am__untar) that extract such
1523 # a tarball read from stdin.
1524 # $(am__untar) < result.tar
1526 AC_DEFUN([_AM_PROG_TAR],
1527 [# Always define AMTAR for backward compatibility. Yes, it's still used
1528 # in the wild :-( We should find a proper way to deprecate it ...
1529 AC_SUBST([AMTAR], ['$${TAR-tar}'])
1531 # We'll loop over all known methods to create a tar archive until one works.
1532 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
1535 [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
1539 [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
1540 # There is notably a 21 bits limit for the UID and the GID. In fact,
1541 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
1543 am_max_uid=2097151 # 2^21 - 1
1544 am_max_gid=$am_max_uid
1545 # The $UID and $GID variables are not portable, so we need to resort
1546 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
1547 # below are definitely unexpected, so allow the users to see them
1548 # (that is, avoid stderr redirection).
1549 am_uid=`id -u || echo unknown`
1550 am_gid=`id -g || echo unknown`
1551 AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
1552 if test $am_uid -le $am_max_uid; then
1553 AC_MSG_RESULT([yes])
1558 AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
1559 if test $am_gid -le $am_max_gid; then
1560 AC_MSG_RESULT([yes])
1569 [m4_fatal([Unknown tar format])])
1571 AC_MSG_CHECKING([how to create a $1 tar archive])
1573 # Go ahead even if we have the value already cached. We do so because we
1574 # need to set the values for the 'am__tar' and 'am__untar' variables.
1575 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
1577 for _am_tool in $_am_tools; do
1580 for _am_tar in tar gnutar gtar; do
1581 AM_RUN_LOG([$_am_tar --version]) && break
1583 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
1584 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
1585 am__untar="$_am_tar -xf -"
1588 # Must skip GNU tar: if it does not support --format= it doesn't create
1589 # ustar tarball either.
1590 (tar --version) >/dev/null 2>&1 && continue
1591 am__tar='tar chf - "$$tardir"'
1592 am__tar_='tar chf - "$tardir"'
1593 am__untar='tar xf -'
1596 am__tar='pax -L -x $1 -w "$$tardir"'
1597 am__tar_='pax -L -x $1 -w "$tardir"'
1601 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
1602 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
1603 am__untar='cpio -i -H $1 -d'
1612 # If the value was cached, stop now. We just wanted to have am__tar
1613 # and am__untar set.
1614 test -n "${am_cv_prog_tar_$1}" && break
1616 # tar/untar a dummy directory, and stop if the command works.
1619 echo GrepMe > conftest.dir/file
1620 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1622 if test -s conftest.tar; then
1623 AM_RUN_LOG([$am__untar <conftest.tar])
1624 AM_RUN_LOG([cat conftest.dir/file])
1625 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1630 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1631 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1634 AC_SUBST([am__untar])
1637 m4_include([m4/ax_check_link_flag.m4])
1638 m4_include([m4/ax_code_coverage.m4])
1639 m4_include([m4/ax_cxx_compile_stdcxx.m4])
1640 m4_include([m4/ax_pthread.m4])
1641 m4_include([m4/gtk-doc.m4])
1642 m4_include([m4/libtool.m4])
1643 m4_include([m4/ltoptions.m4])
1644 m4_include([m4/ltsugar.m4])
1645 m4_include([m4/ltversion.m4])
1646 m4_include([m4/lt~obsolete.m4])