1# generated automatically by aclocal 1.16.1 -*- Autoconf -*-
2
3# Copyright (C) 1996-2018 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
14m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
15m4_ifndef([AC_AUTOCONF_VERSION],
16  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
17m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
18[m4_warning([this file was generated for autoconf 2.69.
19You have another version of autoconf.  It may work, but is not guaranteed to.
20If you have problems, you may need to regenerate the build system entirely.
21To do so, use the procedure documented by the package, typically 'autoreconf'.])])
22
23# Copyright (C) 2002-2018 Free Software Foundation, Inc.
24#
25# This file is free software; the Free Software Foundation
26# gives unlimited permission to copy and/or distribute it,
27# with or without modifications, as long as this notice is preserved.
28
29# AM_AUTOMAKE_VERSION(VERSION)
30# ----------------------------
31# Automake X.Y traces this macro to ensure aclocal.m4 has been
32# generated from the m4 files accompanying Automake X.Y.
33# (This private macro should not be called outside this file.)
34AC_DEFUN([AM_AUTOMAKE_VERSION],
35[am__api_version='1.16'
36dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
37dnl require some minimum version.  Point them to the right macro.
38m4_if([$1], [1.16.1], [],
39      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
40])
41
42# _AM_AUTOCONF_VERSION(VERSION)
43# -----------------------------
44# aclocal traces this macro to find the Autoconf version.
45# This is a private macro too.  Using m4_define simplifies
46# the logic in aclocal, which can simply ignore this definition.
47m4_define([_AM_AUTOCONF_VERSION], [])
48
49# AM_SET_CURRENT_AUTOMAKE_VERSION
50# -------------------------------
51# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
52# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
53AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
54[AM_AUTOMAKE_VERSION([1.16.1])dnl
55m4_ifndef([AC_AUTOCONF_VERSION],
56  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
57_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
58
59# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
60
61# Copyright (C) 2001-2018 Free Software Foundation, Inc.
62#
63# This file is free software; the Free Software Foundation
64# gives unlimited permission to copy and/or distribute it,
65# with or without modifications, as long as this notice is preserved.
66
67# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
68# $ac_aux_dir to '$srcdir/foo'.  In other projects, it is set to
69# '$srcdir', '$srcdir/..', or '$srcdir/../..'.
70#
71# Of course, Automake must honor this variable whenever it calls a
72# tool from the auxiliary directory.  The problem is that $srcdir (and
73# therefore $ac_aux_dir as well) can be either absolute or relative,
74# depending on how configure is run.  This is pretty annoying, since
75# it makes $ac_aux_dir quite unusable in subdirectories: in the top
76# source directory, any form will work fine, but in subdirectories a
77# relative path needs to be adjusted first.
78#
79# $ac_aux_dir/missing
80#    fails when called from a subdirectory if $ac_aux_dir is relative
81# $top_srcdir/$ac_aux_dir/missing
82#    fails if $ac_aux_dir is absolute,
83#    fails when called from a subdirectory in a VPATH build with
84#          a relative $ac_aux_dir
85#
86# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
87# are both prefixed by $srcdir.  In an in-source build this is usually
88# harmless because $srcdir is '.', but things will broke when you
89# start a VPATH build or use an absolute $srcdir.
90#
91# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
92# iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
93#   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
94# and then we would define $MISSING as
95#   MISSING="\${SHELL} $am_aux_dir/missing"
96# This will work as long as MISSING is not called from configure, because
97# unfortunately $(top_srcdir) has no meaning in configure.
98# However there are other variables, like CC, which are often used in
99# configure, and could therefore not use this "fixed" $ac_aux_dir.
100#
101# Another solution, used here, is to always expand $ac_aux_dir to an
102# absolute PATH.  The drawback is that using absolute paths prevent a
103# configured tree to be moved without reconfiguration.
104
105AC_DEFUN([AM_AUX_DIR_EXPAND],
106[AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
107# Expand $ac_aux_dir to an absolute path.
108am_aux_dir=`cd "$ac_aux_dir" && pwd`
109])
110
111# AM_COND_IF                                            -*- Autoconf -*-
112
113# Copyright (C) 2008-2018 Free Software Foundation, Inc.
114#
115# This file is free software; the Free Software Foundation
116# gives unlimited permission to copy and/or distribute it,
117# with or without modifications, as long as this notice is preserved.
118
119# _AM_COND_IF
120# _AM_COND_ELSE
121# _AM_COND_ENDIF
122# --------------
123# These macros are only used for tracing.
124m4_define([_AM_COND_IF])
125m4_define([_AM_COND_ELSE])
126m4_define([_AM_COND_ENDIF])
127
128# AM_COND_IF(COND, [IF-TRUE], [IF-FALSE])
129# ---------------------------------------
130# If the shell condition COND is true, execute IF-TRUE, otherwise execute
131# IF-FALSE.  Allow automake to learn about conditional instantiating macros
132# (the AC_CONFIG_FOOS).
133AC_DEFUN([AM_COND_IF],
134[m4_ifndef([_AM_COND_VALUE_$1],
135	   [m4_fatal([$0: no such condition "$1"])])dnl
136_AM_COND_IF([$1])dnl
137if test -z "$$1_TRUE"; then :
138  m4_n([$2])[]dnl
139m4_ifval([$3],
140[_AM_COND_ELSE([$1])dnl
141else
142  $3
143])dnl
144_AM_COND_ENDIF([$1])dnl
145fi[]dnl
146])
147
148# AM_CONDITIONAL                                            -*- Autoconf -*-
149
150# Copyright (C) 1997-2018 Free Software Foundation, Inc.
151#
152# This file is free software; the Free Software Foundation
153# gives unlimited permission to copy and/or distribute it,
154# with or without modifications, as long as this notice is preserved.
155
156# AM_CONDITIONAL(NAME, SHELL-CONDITION)
157# -------------------------------------
158# Define a conditional.
159AC_DEFUN([AM_CONDITIONAL],
160[AC_PREREQ([2.52])dnl
161 m4_if([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
162       [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
163AC_SUBST([$1_TRUE])dnl
164AC_SUBST([$1_FALSE])dnl
165_AM_SUBST_NOTMAKE([$1_TRUE])dnl
166_AM_SUBST_NOTMAKE([$1_FALSE])dnl
167m4_define([_AM_COND_VALUE_$1], [$2])dnl
168if $2; then
169  $1_TRUE=
170  $1_FALSE='#'
171else
172  $1_TRUE='#'
173  $1_FALSE=
174fi
175AC_CONFIG_COMMANDS_PRE(
176[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
177  AC_MSG_ERROR([[conditional "$1" was never defined.
178Usually this means the macro was only invoked conditionally.]])
179fi])])
180
181# Do all the work for Automake.                             -*- Autoconf -*-
182
183# Copyright (C) 1996-2018 Free Software Foundation, Inc.
184#
185# This file is free software; the Free Software Foundation
186# gives unlimited permission to copy and/or distribute it,
187# with or without modifications, as long as this notice is preserved.
188
189# This macro actually does too much.  Some checks are only needed if
190# your package does certain things.  But this isn't really a big deal.
191
192dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
193m4_define([AC_PROG_CC],
194m4_defn([AC_PROG_CC])
195[_AM_PROG_CC_C_O
196])
197
198# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
199# AM_INIT_AUTOMAKE([OPTIONS])
200# -----------------------------------------------
201# The call with PACKAGE and VERSION arguments is the old style
202# call (pre autoconf-2.50), which is being phased out.  PACKAGE
203# and VERSION should now be passed to AC_INIT and removed from
204# the call to AM_INIT_AUTOMAKE.
205# We support both call styles for the transition.  After
206# the next Automake release, Autoconf can make the AC_INIT
207# arguments mandatory, and then we can depend on a new Autoconf
208# release and drop the old call support.
209AC_DEFUN([AM_INIT_AUTOMAKE],
210[AC_PREREQ([2.65])dnl
211dnl Autoconf wants to disallow AM_ names.  We explicitly allow
212dnl the ones we care about.
213m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
214AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
215AC_REQUIRE([AC_PROG_INSTALL])dnl
216if test "`cd $srcdir && pwd`" != "`pwd`"; then
217  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
218  # is not polluted with repeated "-I."
219  AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
220  # test to see if srcdir already configured
221  if test -f $srcdir/config.status; then
222    AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
223  fi
224fi
225
226# test whether we have cygpath
227if test -z "$CYGPATH_W"; then
228  if (cygpath --version) >/dev/null 2>/dev/null; then
229    CYGPATH_W='cygpath -w'
230  else
231    CYGPATH_W=echo
232  fi
233fi
234AC_SUBST([CYGPATH_W])
235
236# Define the identity of the package.
237dnl Distinguish between old-style and new-style calls.
238m4_ifval([$2],
239[AC_DIAGNOSE([obsolete],
240             [$0: two- and three-arguments forms are deprecated.])
241m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
242 AC_SUBST([PACKAGE], [$1])dnl
243 AC_SUBST([VERSION], [$2])],
244[_AM_SET_OPTIONS([$1])dnl
245dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
246m4_if(
247  m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
248  [ok:ok],,
249  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
250 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
251 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
252
253_AM_IF_OPTION([no-define],,
254[AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
255 AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
256
257# Some tools Automake needs.
258AC_REQUIRE([AM_SANITY_CHECK])dnl
259AC_REQUIRE([AC_ARG_PROGRAM])dnl
260AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
261AM_MISSING_PROG([AUTOCONF], [autoconf])
262AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
263AM_MISSING_PROG([AUTOHEADER], [autoheader])
264AM_MISSING_PROG([MAKEINFO], [makeinfo])
265AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
266AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
267AC_REQUIRE([AC_PROG_MKDIR_P])dnl
268# For better backward compatibility.  To be removed once Automake 1.9.x
269# dies out for good.  For more background, see:
270# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
271# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
272AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
273# We need awk for the "check" target (and possibly the TAP driver).  The
274# system "awk" is bad on some platforms.
275AC_REQUIRE([AC_PROG_AWK])dnl
276AC_REQUIRE([AC_PROG_MAKE_SET])dnl
277AC_REQUIRE([AM_SET_LEADING_DOT])dnl
278_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
279	      [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
280			     [_AM_PROG_TAR([v7])])])
281_AM_IF_OPTION([no-dependencies],,
282[AC_PROVIDE_IFELSE([AC_PROG_CC],
283		  [_AM_DEPENDENCIES([CC])],
284		  [m4_define([AC_PROG_CC],
285			     m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
286AC_PROVIDE_IFELSE([AC_PROG_CXX],
287		  [_AM_DEPENDENCIES([CXX])],
288		  [m4_define([AC_PROG_CXX],
289			     m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
290AC_PROVIDE_IFELSE([AC_PROG_OBJC],
291		  [_AM_DEPENDENCIES([OBJC])],
292		  [m4_define([AC_PROG_OBJC],
293			     m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
294AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
295		  [_AM_DEPENDENCIES([OBJCXX])],
296		  [m4_define([AC_PROG_OBJCXX],
297			     m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
298])
299AC_REQUIRE([AM_SILENT_RULES])dnl
300dnl The testsuite driver may need to know about EXEEXT, so add the
301dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This
302dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
303AC_CONFIG_COMMANDS_PRE(dnl
304[m4_provide_if([_AM_COMPILER_EXEEXT],
305  [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
306
307# POSIX will say in a future version that running "rm -f" with no argument
308# is OK; and we want to be able to make that assumption in our Makefile
309# recipes.  So use an aggressive probe to check that the usage we want is
310# actually supported "in the wild" to an acceptable degree.
311# See automake bug#10828.
312# To make any issue more visible, cause the running configure to be aborted
313# by default if the 'rm' program in use doesn't match our expectations; the
314# user can still override this though.
315if rm -f && rm -fr && rm -rf; then : OK; else
316  cat >&2 <<'END'
317Oops!
318
319Your 'rm' program seems unable to run without file operands specified
320on the command line, even when the '-f' option is present.  This is contrary
321to the behaviour of most rm programs out there, and not conforming with
322the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
323
324Please tell bug-automake@gnu.org about your system, including the value
325of your $PATH and any error possibly output before this message.  This
326can help us improve future automake versions.
327
328END
329  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
330    echo 'Configuration will proceed anyway, since you have set the' >&2
331    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
332    echo >&2
333  else
334    cat >&2 <<'END'
335Aborting the configuration process, to ensure you take notice of the issue.
336
337You can download and install GNU coreutils to get an 'rm' implementation
338that behaves properly: <https://www.gnu.org/software/coreutils/>.
339
340If you want to complete the configuration process using your problematic
341'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
342to "yes", and re-run configure.
343
344END
345    AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
346  fi
347fi
348dnl The trailing newline in this macro's definition is deliberate, for
349dnl backward compatibility and to allow trailing 'dnl'-style comments
350dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841.
351])
352
353dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
354dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
355dnl mangled by Autoconf and run in a shell conditional statement.
356m4_define([_AC_COMPILER_EXEEXT],
357m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
358
359# When config.status generates a header, we must update the stamp-h file.
360# This file resides in the same directory as the config header
361# that is generated.  The stamp files are numbered to have different names.
362
363# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
364# loop where config.status creates the headers, so we can generate
365# our stamp files there.
366AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
367[# Compute $1's index in $config_headers.
368_am_arg=$1
369_am_stamp_count=1
370for _am_header in $config_headers :; do
371  case $_am_header in
372    $_am_arg | $_am_arg:* )
373      break ;;
374    * )
375      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
376  esac
377done
378echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
379
380# Copyright (C) 2001-2018 Free Software Foundation, Inc.
381#
382# This file is free software; the Free Software Foundation
383# gives unlimited permission to copy and/or distribute it,
384# with or without modifications, as long as this notice is preserved.
385
386# AM_PROG_INSTALL_SH
387# ------------------
388# Define $install_sh.
389AC_DEFUN([AM_PROG_INSTALL_SH],
390[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
391if test x"${install_sh+set}" != xset; then
392  case $am_aux_dir in
393  *\ * | *\	*)
394    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
395  *)
396    install_sh="\${SHELL} $am_aux_dir/install-sh"
397  esac
398fi
399AC_SUBST([install_sh])])
400
401# Copyright (C) 2003-2018 Free Software Foundation, Inc.
402#
403# This file is free software; the Free Software Foundation
404# gives unlimited permission to copy and/or distribute it,
405# with or without modifications, as long as this notice is preserved.
406
407# Check whether the underlying file-system supports filenames
408# with a leading dot.  For instance MS-DOS doesn't.
409AC_DEFUN([AM_SET_LEADING_DOT],
410[rm -rf .tst 2>/dev/null
411mkdir .tst 2>/dev/null
412if test -d .tst; then
413  am__leading_dot=.
414else
415  am__leading_dot=_
416fi
417rmdir .tst 2>/dev/null
418AC_SUBST([am__leading_dot])])
419
420# Add --enable-maintainer-mode option to configure.         -*- Autoconf -*-
421# From Jim Meyering
422
423# Copyright (C) 1996-2018 Free Software Foundation, Inc.
424#
425# This file is free software; the Free Software Foundation
426# gives unlimited permission to copy and/or distribute it,
427# with or without modifications, as long as this notice is preserved.
428
429# AM_MAINTAINER_MODE([DEFAULT-MODE])
430# ----------------------------------
431# Control maintainer-specific portions of Makefiles.
432# Default is to disable them, unless 'enable' is passed literally.
433# For symmetry, 'disable' may be passed as well.  Anyway, the user
434# can override the default with the --enable/--disable switch.
435AC_DEFUN([AM_MAINTAINER_MODE],
436[m4_case(m4_default([$1], [disable]),
437       [enable], [m4_define([am_maintainer_other], [disable])],
438       [disable], [m4_define([am_maintainer_other], [enable])],
439       [m4_define([am_maintainer_other], [enable])
440        m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
441AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
442  dnl maintainer-mode's default is 'disable' unless 'enable' is passed
443  AC_ARG_ENABLE([maintainer-mode],
444    [AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode],
445      am_maintainer_other[ make rules and dependencies not useful
446      (and sometimes confusing) to the casual installer])],
447    [USE_MAINTAINER_MODE=$enableval],
448    [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
449  AC_MSG_RESULT([$USE_MAINTAINER_MODE])
450  AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
451  MAINT=$MAINTAINER_MODE_TRUE
452  AC_SUBST([MAINT])dnl
453]
454)
455
456# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
457
458# Copyright (C) 1997-2018 Free Software Foundation, Inc.
459#
460# This file is free software; the Free Software Foundation
461# gives unlimited permission to copy and/or distribute it,
462# with or without modifications, as long as this notice is preserved.
463
464# AM_MISSING_PROG(NAME, PROGRAM)
465# ------------------------------
466AC_DEFUN([AM_MISSING_PROG],
467[AC_REQUIRE([AM_MISSING_HAS_RUN])
468$1=${$1-"${am_missing_run}$2"}
469AC_SUBST($1)])
470
471# AM_MISSING_HAS_RUN
472# ------------------
473# Define MISSING if not defined so far and test if it is modern enough.
474# If it is, set am_missing_run to use it, otherwise, to nothing.
475AC_DEFUN([AM_MISSING_HAS_RUN],
476[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
477AC_REQUIRE_AUX_FILE([missing])dnl
478if test x"${MISSING+set}" != xset; then
479  case $am_aux_dir in
480  *\ * | *\	*)
481    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
482  *)
483    MISSING="\${SHELL} $am_aux_dir/missing" ;;
484  esac
485fi
486# Use eval to expand $SHELL
487if eval "$MISSING --is-lightweight"; then
488  am_missing_run="$MISSING "
489else
490  am_missing_run=
491  AC_MSG_WARN(['missing' script is too old or missing])
492fi
493])
494
495# Helper functions for option handling.                     -*- Autoconf -*-
496
497# Copyright (C) 2001-2018 Free Software Foundation, Inc.
498#
499# This file is free software; the Free Software Foundation
500# gives unlimited permission to copy and/or distribute it,
501# with or without modifications, as long as this notice is preserved.
502
503# _AM_MANGLE_OPTION(NAME)
504# -----------------------
505AC_DEFUN([_AM_MANGLE_OPTION],
506[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
507
508# _AM_SET_OPTION(NAME)
509# --------------------
510# Set option NAME.  Presently that only means defining a flag for this option.
511AC_DEFUN([_AM_SET_OPTION],
512[m4_define(_AM_MANGLE_OPTION([$1]), [1])])
513
514# _AM_SET_OPTIONS(OPTIONS)
515# ------------------------
516# OPTIONS is a space-separated list of Automake options.
517AC_DEFUN([_AM_SET_OPTIONS],
518[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
519
520# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
521# -------------------------------------------
522# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
523AC_DEFUN([_AM_IF_OPTION],
524[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
525
526# Check to make sure that the build environment is sane.    -*- Autoconf -*-
527
528# Copyright (C) 1996-2018 Free Software Foundation, Inc.
529#
530# This file is free software; the Free Software Foundation
531# gives unlimited permission to copy and/or distribute it,
532# with or without modifications, as long as this notice is preserved.
533
534# AM_SANITY_CHECK
535# ---------------
536AC_DEFUN([AM_SANITY_CHECK],
537[AC_MSG_CHECKING([whether build environment is sane])
538# Reject unsafe characters in $srcdir or the absolute working directory
539# name.  Accept space and tab only in the latter.
540am_lf='
541'
542case `pwd` in
543  *[[\\\"\#\$\&\'\`$am_lf]]*)
544    AC_MSG_ERROR([unsafe absolute working directory name]);;
545esac
546case $srcdir in
547  *[[\\\"\#\$\&\'\`$am_lf\ \	]]*)
548    AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
549esac
550
551# Do 'set' in a subshell so we don't clobber the current shell's
552# arguments.  Must try -L first in case configure is actually a
553# symlink; some systems play weird games with the mod time of symlinks
554# (eg FreeBSD returns the mod time of the symlink's containing
555# directory).
556if (
557   am_has_slept=no
558   for am_try in 1 2; do
559     echo "timestamp, slept: $am_has_slept" > conftest.file
560     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
561     if test "$[*]" = "X"; then
562	# -L didn't work.
563	set X `ls -t "$srcdir/configure" conftest.file`
564     fi
565     if test "$[*]" != "X $srcdir/configure conftest.file" \
566	&& test "$[*]" != "X conftest.file $srcdir/configure"; then
567
568	# If neither matched, then we have a broken ls.  This can happen
569	# if, for instance, CONFIG_SHELL is bash and it inherits a
570	# broken ls alias from the environment.  This has actually
571	# happened.  Such a system could not be considered "sane".
572	AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
573  alias in your environment])
574     fi
575     if test "$[2]" = conftest.file || test $am_try -eq 2; then
576       break
577     fi
578     # Just in case.
579     sleep 1
580     am_has_slept=yes
581   done
582   test "$[2]" = conftest.file
583   )
584then
585   # Ok.
586   :
587else
588   AC_MSG_ERROR([newly created file is older than distributed files!
589Check your system clock])
590fi
591AC_MSG_RESULT([yes])
592# If we didn't sleep, we still need to ensure time stamps of config.status and
593# generated files are strictly newer.
594am_sleep_pid=
595if grep 'slept: no' conftest.file >/dev/null 2>&1; then
596  ( sleep 1 ) &
597  am_sleep_pid=$!
598fi
599AC_CONFIG_COMMANDS_PRE(
600  [AC_MSG_CHECKING([that generated files are newer than configure])
601   if test -n "$am_sleep_pid"; then
602     # Hide warnings about reused PIDs.
603     wait $am_sleep_pid 2>/dev/null
604   fi
605   AC_MSG_RESULT([done])])
606rm -f conftest.file
607])
608
609# Copyright (C) 2009-2018 Free Software Foundation, Inc.
610#
611# This file is free software; the Free Software Foundation
612# gives unlimited permission to copy and/or distribute it,
613# with or without modifications, as long as this notice is preserved.
614
615# AM_SILENT_RULES([DEFAULT])
616# --------------------------
617# Enable less verbose build rules; with the default set to DEFAULT
618# ("yes" being less verbose, "no" or empty being verbose).
619AC_DEFUN([AM_SILENT_RULES],
620[AC_ARG_ENABLE([silent-rules], [dnl
621AS_HELP_STRING(
622  [--enable-silent-rules],
623  [less verbose build output (undo: "make V=1")])
624AS_HELP_STRING(
625  [--disable-silent-rules],
626  [verbose build output (undo: "make V=0")])dnl
627])
628case $enable_silent_rules in @%:@ (((
629  yes) AM_DEFAULT_VERBOSITY=0;;
630   no) AM_DEFAULT_VERBOSITY=1;;
631    *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
632esac
633dnl
634dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
635dnl do not support nested variable expansions.
636dnl See automake bug#9928 and bug#10237.
637am_make=${MAKE-make}
638AC_CACHE_CHECK([whether $am_make supports nested variables],
639   [am_cv_make_support_nested_variables],
640   [if AS_ECHO([['TRUE=$(BAR$(V))
641BAR0=false
642BAR1=true
643V=1
644am__doit:
645	@$(TRUE)
646.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
647  am_cv_make_support_nested_variables=yes
648else
649  am_cv_make_support_nested_variables=no
650fi])
651if test $am_cv_make_support_nested_variables = yes; then
652  dnl Using '$V' instead of '$(V)' breaks IRIX make.
653  AM_V='$(V)'
654  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
655else
656  AM_V=$AM_DEFAULT_VERBOSITY
657  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
658fi
659AC_SUBST([AM_V])dnl
660AM_SUBST_NOTMAKE([AM_V])dnl
661AC_SUBST([AM_DEFAULT_V])dnl
662AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
663AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
664AM_BACKSLASH='\'
665AC_SUBST([AM_BACKSLASH])dnl
666_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
667])
668
669# Copyright (C) 2001-2018 Free Software Foundation, Inc.
670#
671# This file is free software; the Free Software Foundation
672# gives unlimited permission to copy and/or distribute it,
673# with or without modifications, as long as this notice is preserved.
674
675# AM_PROG_INSTALL_STRIP
676# ---------------------
677# One issue with vendor 'install' (even GNU) is that you can't
678# specify the program used to strip binaries.  This is especially
679# annoying in cross-compiling environments, where the build's strip
680# is unlikely to handle the host's binaries.
681# Fortunately install-sh will honor a STRIPPROG variable, so we
682# always use install-sh in "make install-strip", and initialize
683# STRIPPROG with the value of the STRIP variable (set by the user).
684AC_DEFUN([AM_PROG_INSTALL_STRIP],
685[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
686# Installed binaries are usually stripped using 'strip' when the user
687# run "make install-strip".  However 'strip' might not be the right
688# tool to use in cross-compilation environments, therefore Automake
689# will honor the 'STRIP' environment variable to overrule this program.
690dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
691if test "$cross_compiling" != no; then
692  AC_CHECK_TOOL([STRIP], [strip], :)
693fi
694INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
695AC_SUBST([INSTALL_STRIP_PROGRAM])])
696
697# Copyright (C) 2006-2018 Free Software Foundation, Inc.
698#
699# This file is free software; the Free Software Foundation
700# gives unlimited permission to copy and/or distribute it,
701# with or without modifications, as long as this notice is preserved.
702
703# _AM_SUBST_NOTMAKE(VARIABLE)
704# ---------------------------
705# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
706# This macro is traced by Automake.
707AC_DEFUN([_AM_SUBST_NOTMAKE])
708
709# AM_SUBST_NOTMAKE(VARIABLE)
710# --------------------------
711# Public sister of _AM_SUBST_NOTMAKE.
712AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
713
714# Check how to create a tarball.                            -*- Autoconf -*-
715
716# Copyright (C) 2004-2018 Free Software Foundation, Inc.
717#
718# This file is free software; the Free Software Foundation
719# gives unlimited permission to copy and/or distribute it,
720# with or without modifications, as long as this notice is preserved.
721
722# _AM_PROG_TAR(FORMAT)
723# --------------------
724# Check how to create a tarball in format FORMAT.
725# FORMAT should be one of 'v7', 'ustar', or 'pax'.
726#
727# Substitute a variable $(am__tar) that is a command
728# writing to stdout a FORMAT-tarball containing the directory
729# $tardir.
730#     tardir=directory && $(am__tar) > result.tar
731#
732# Substitute a variable $(am__untar) that extract such
733# a tarball read from stdin.
734#     $(am__untar) < result.tar
735#
736AC_DEFUN([_AM_PROG_TAR],
737[# Always define AMTAR for backward compatibility.  Yes, it's still used
738# in the wild :-(  We should find a proper way to deprecate it ...
739AC_SUBST([AMTAR], ['$${TAR-tar}'])
740
741# We'll loop over all known methods to create a tar archive until one works.
742_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
743
744m4_if([$1], [v7],
745  [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
746
747  [m4_case([$1],
748    [ustar],
749     [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
750      # There is notably a 21 bits limit for the UID and the GID.  In fact,
751      # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
752      # and bug#13588).
753      am_max_uid=2097151 # 2^21 - 1
754      am_max_gid=$am_max_uid
755      # The $UID and $GID variables are not portable, so we need to resort
756      # to the POSIX-mandated id(1) utility.  Errors in the 'id' calls
757      # below are definitely unexpected, so allow the users to see them
758      # (that is, avoid stderr redirection).
759      am_uid=`id -u || echo unknown`
760      am_gid=`id -g || echo unknown`
761      AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
762      if test $am_uid -le $am_max_uid; then
763         AC_MSG_RESULT([yes])
764      else
765         AC_MSG_RESULT([no])
766         _am_tools=none
767      fi
768      AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
769      if test $am_gid -le $am_max_gid; then
770         AC_MSG_RESULT([yes])
771      else
772        AC_MSG_RESULT([no])
773        _am_tools=none
774      fi],
775
776  [pax],
777    [],
778
779  [m4_fatal([Unknown tar format])])
780
781  AC_MSG_CHECKING([how to create a $1 tar archive])
782
783  # Go ahead even if we have the value already cached.  We do so because we
784  # need to set the values for the 'am__tar' and 'am__untar' variables.
785  _am_tools=${am_cv_prog_tar_$1-$_am_tools}
786
787  for _am_tool in $_am_tools; do
788    case $_am_tool in
789    gnutar)
790      for _am_tar in tar gnutar gtar; do
791        AM_RUN_LOG([$_am_tar --version]) && break
792      done
793      am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
794      am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
795      am__untar="$_am_tar -xf -"
796      ;;
797    plaintar)
798      # Must skip GNU tar: if it does not support --format= it doesn't create
799      # ustar tarball either.
800      (tar --version) >/dev/null 2>&1 && continue
801      am__tar='tar chf - "$$tardir"'
802      am__tar_='tar chf - "$tardir"'
803      am__untar='tar xf -'
804      ;;
805    pax)
806      am__tar='pax -L -x $1 -w "$$tardir"'
807      am__tar_='pax -L -x $1 -w "$tardir"'
808      am__untar='pax -r'
809      ;;
810    cpio)
811      am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
812      am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
813      am__untar='cpio -i -H $1 -d'
814      ;;
815    none)
816      am__tar=false
817      am__tar_=false
818      am__untar=false
819      ;;
820    esac
821
822    # If the value was cached, stop now.  We just wanted to have am__tar
823    # and am__untar set.
824    test -n "${am_cv_prog_tar_$1}" && break
825
826    # tar/untar a dummy directory, and stop if the command works.
827    rm -rf conftest.dir
828    mkdir conftest.dir
829    echo GrepMe > conftest.dir/file
830    AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
831    rm -rf conftest.dir
832    if test -s conftest.tar; then
833      AM_RUN_LOG([$am__untar <conftest.tar])
834      AM_RUN_LOG([cat conftest.dir/file])
835      grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
836    fi
837  done
838  rm -rf conftest.dir
839
840  AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
841  AC_MSG_RESULT([$am_cv_prog_tar_$1])])
842
843AC_SUBST([am__tar])
844AC_SUBST([am__untar])
845]) # _AM_PROG_TAR
846
847