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