aclocal.m4
author Sam Lantinga <slouken@libsdl.org>
Wed, 31 Oct 2018 07:56:52 -0700
changeset 623 b4519566edd3
parent 620 083e81296e65
permissions -rw-r--r--
Re-ran autogen.sh
slouken@623
     1
# generated automatically by aclocal 1.16 -*- Autoconf -*-
slouken@285
     2
slouken@615
     3
# Copyright (C) 1996-2018 Free Software Foundation, Inc.
slouken@357
     4
slouken@285
     5
# This file is free software; the Free Software Foundation
slouken@285
     6
# gives unlimited permission to copy and/or distribute it,
slouken@285
     7
# with or without modifications, as long as this notice is preserved.
slouken@285
     8
slouken@285
     9
# This program is distributed in the hope that it will be useful,
slouken@285
    10
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
slouken@285
    11
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
slouken@285
    12
# PARTICULAR PURPOSE.
slouken@285
    13
slouken@357
    14
m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
slouken@350
    15
m4_ifndef([AC_AUTOCONF_VERSION],
slouken@350
    16
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
slouken@357
    17
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
slouken@357
    18
[m4_warning([this file was generated for autoconf 2.69.
slouken@350
    19
You have another version of autoconf.  It may work, but is not guaranteed to.
slouken@350
    20
If you have problems, you may need to regenerate the build system entirely.
slouken@357
    21
To do so, use the procedure documented by the package, typically 'autoreconf'.])])
slouken@285
    22
slouken@623
    23
# lt~obsolete.m4 -- aclocal satisfying obsolete definitions.    -*-Autoconf-*-
slouken@623
    24
#
slouken@623
    25
#   Copyright (C) 2004-2005, 2007, 2009, 2011-2015 Free Software
slouken@623
    26
#   Foundation, Inc.
slouken@623
    27
#   Written by Scott James Remnant, 2004.
slouken@623
    28
#
slouken@623
    29
# This file is free software; the Free Software Foundation gives
slouken@623
    30
# unlimited permission to copy and/or distribute it, with or without
slouken@623
    31
# modifications, as long as this notice is preserved.
slouken@623
    32
slouken@623
    33
# serial 5 lt~obsolete.m4
slouken@623
    34
slouken@623
    35
# These exist entirely to fool aclocal when bootstrapping libtool.
slouken@623
    36
#
slouken@623
    37
# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN),
slouken@623
    38
# which have later been changed to m4_define as they aren't part of the
slouken@623
    39
# exported API, or moved to Autoconf or Automake where they belong.
slouken@623
    40
#
slouken@623
    41
# The trouble is, aclocal is a bit thick.  It'll see the old AC_DEFUN
slouken@623
    42
# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
slouken@623
    43
# using a macro with the same name in our local m4/libtool.m4 it'll
slouken@623
    44
# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
slouken@623
    45
# and doesn't know about Autoconf macros at all.)
slouken@623
    46
#
slouken@623
    47
# So we provide this file, which has a silly filename so it's always
slouken@623
    48
# included after everything else.  This provides aclocal with the
slouken@623
    49
# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
slouken@623
    50
# because those macros already exist, or will be overwritten later.
slouken@623
    51
# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
slouken@623
    52
#
slouken@623
    53
# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
slouken@623
    54
# Yes, that means every name once taken will need to remain here until
slouken@623
    55
# we give up compatibility with versions before 1.7, at which point
slouken@623
    56
# we need to keep only those names which we still refer to.
slouken@623
    57
slouken@623
    58
# This is to help aclocal find these macros, as it can't see m4_define.
slouken@623
    59
AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
slouken@623
    60
slouken@623
    61
m4_ifndef([AC_LIBTOOL_LINKER_OPTION],	[AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
slouken@623
    62
m4_ifndef([AC_PROG_EGREP],		[AC_DEFUN([AC_PROG_EGREP])])
slouken@623
    63
m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH],	[AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
slouken@623
    64
m4_ifndef([_LT_AC_SHELL_INIT],		[AC_DEFUN([_LT_AC_SHELL_INIT])])
slouken@623
    65
m4_ifndef([_LT_AC_SYS_LIBPATH_AIX],	[AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
slouken@623
    66
m4_ifndef([_LT_PROG_LTMAIN],		[AC_DEFUN([_LT_PROG_LTMAIN])])
slouken@623
    67
m4_ifndef([_LT_AC_TAGVAR],		[AC_DEFUN([_LT_AC_TAGVAR])])
slouken@623
    68
m4_ifndef([AC_LTDL_ENABLE_INSTALL],	[AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
slouken@623
    69
m4_ifndef([AC_LTDL_PREOPEN],		[AC_DEFUN([AC_LTDL_PREOPEN])])
slouken@623
    70
m4_ifndef([_LT_AC_SYS_COMPILER],	[AC_DEFUN([_LT_AC_SYS_COMPILER])])
slouken@623
    71
m4_ifndef([_LT_AC_LOCK],		[AC_DEFUN([_LT_AC_LOCK])])
slouken@623
    72
m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE],	[AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
slouken@623
    73
m4_ifndef([_LT_AC_TRY_DLOPEN_SELF],	[AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
slouken@623
    74
m4_ifndef([AC_LIBTOOL_PROG_CC_C_O],	[AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
slouken@623
    75
m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
slouken@623
    76
m4_ifndef([AC_LIBTOOL_OBJDIR],		[AC_DEFUN([AC_LIBTOOL_OBJDIR])])
slouken@623
    77
m4_ifndef([AC_LTDL_OBJDIR],		[AC_DEFUN([AC_LTDL_OBJDIR])])
slouken@623
    78
m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
slouken@623
    79
m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP],	[AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
slouken@623
    80
m4_ifndef([AC_PATH_MAGIC],		[AC_DEFUN([AC_PATH_MAGIC])])
slouken@623
    81
m4_ifndef([AC_PROG_LD_GNU],		[AC_DEFUN([AC_PROG_LD_GNU])])
slouken@623
    82
m4_ifndef([AC_PROG_LD_RELOAD_FLAG],	[AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
slouken@623
    83
m4_ifndef([AC_DEPLIBS_CHECK_METHOD],	[AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
slouken@623
    84
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
slouken@623
    85
m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
slouken@623
    86
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
slouken@623
    87
m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS],	[AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
slouken@623
    88
m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP],	[AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
slouken@623
    89
m4_ifndef([LT_AC_PROG_EGREP],		[AC_DEFUN([LT_AC_PROG_EGREP])])
slouken@623
    90
m4_ifndef([LT_AC_PROG_SED],		[AC_DEFUN([LT_AC_PROG_SED])])
slouken@623
    91
m4_ifndef([_LT_CC_BASENAME],		[AC_DEFUN([_LT_CC_BASENAME])])
slouken@623
    92
m4_ifndef([_LT_COMPILER_BOILERPLATE],	[AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
slouken@623
    93
m4_ifndef([_LT_LINKER_BOILERPLATE],	[AC_DEFUN([_LT_LINKER_BOILERPLATE])])
slouken@623
    94
m4_ifndef([_AC_PROG_LIBTOOL],		[AC_DEFUN([_AC_PROG_LIBTOOL])])
slouken@623
    95
m4_ifndef([AC_LIBTOOL_SETUP],		[AC_DEFUN([AC_LIBTOOL_SETUP])])
slouken@623
    96
m4_ifndef([_LT_AC_CHECK_DLFCN],		[AC_DEFUN([_LT_AC_CHECK_DLFCN])])
slouken@623
    97
m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER],	[AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
slouken@623
    98
m4_ifndef([_LT_AC_TAGCONFIG],		[AC_DEFUN([_LT_AC_TAGCONFIG])])
slouken@623
    99
m4_ifndef([AC_DISABLE_FAST_INSTALL],	[AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
slouken@623
   100
m4_ifndef([_LT_AC_LANG_CXX],		[AC_DEFUN([_LT_AC_LANG_CXX])])
slouken@623
   101
m4_ifndef([_LT_AC_LANG_F77],		[AC_DEFUN([_LT_AC_LANG_F77])])
slouken@623
   102
m4_ifndef([_LT_AC_LANG_GCJ],		[AC_DEFUN([_LT_AC_LANG_GCJ])])
slouken@623
   103
m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG],	[AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
slouken@623
   104
m4_ifndef([_LT_AC_LANG_C_CONFIG],	[AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
slouken@623
   105
m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG],	[AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
slouken@623
   106
m4_ifndef([_LT_AC_LANG_CXX_CONFIG],	[AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
slouken@623
   107
m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG],	[AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
slouken@623
   108
m4_ifndef([_LT_AC_LANG_F77_CONFIG],	[AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
slouken@623
   109
m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG],	[AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
slouken@623
   110
m4_ifndef([_LT_AC_LANG_GCJ_CONFIG],	[AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
slouken@623
   111
m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG],	[AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
slouken@623
   112
m4_ifndef([_LT_AC_LANG_RC_CONFIG],	[AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
slouken@623
   113
m4_ifndef([AC_LIBTOOL_CONFIG],		[AC_DEFUN([AC_LIBTOOL_CONFIG])])
slouken@623
   114
m4_ifndef([_LT_AC_FILE_LTDLL_C],	[AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
slouken@623
   115
m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS],	[AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])])
slouken@623
   116
m4_ifndef([_LT_AC_PROG_CXXCPP],		[AC_DEFUN([_LT_AC_PROG_CXXCPP])])
slouken@623
   117
m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS],	[AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])])
slouken@623
   118
m4_ifndef([_LT_PROG_ECHO_BACKSLASH],	[AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])])
slouken@623
   119
m4_ifndef([_LT_PROG_F77],		[AC_DEFUN([_LT_PROG_F77])])
slouken@623
   120
m4_ifndef([_LT_PROG_FC],		[AC_DEFUN([_LT_PROG_FC])])
slouken@623
   121
m4_ifndef([_LT_PROG_CXX],		[AC_DEFUN([_LT_PROG_CXX])])
slouken@623
   122
slouken@615
   123
# Copyright (C) 2002-2018 Free Software Foundation, Inc.
slouken@285
   124
#
slouken@285
   125
# This file is free software; the Free Software Foundation
slouken@285
   126
# gives unlimited permission to copy and/or distribute it,
slouken@285
   127
# with or without modifications, as long as this notice is preserved.
slouken@285
   128
slouken@285
   129
# AM_AUTOMAKE_VERSION(VERSION)
slouken@285
   130
# ----------------------------
slouken@285
   131
# Automake X.Y traces this macro to ensure aclocal.m4 has been
slouken@285
   132
# generated from the m4 files accompanying Automake X.Y.
slouken@285
   133
# (This private macro should not be called outside this file.)
slouken@285
   134
AC_DEFUN([AM_AUTOMAKE_VERSION],
slouken@615
   135
[am__api_version='1.16'
slouken@285
   136
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
slouken@285
   137
dnl require some minimum version.  Point them to the right macro.
slouken@623
   138
m4_if([$1], [1.16], [],
slouken@285
   139
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
slouken@285
   140
])
slouken@285
   141
slouken@285
   142
# _AM_AUTOCONF_VERSION(VERSION)
slouken@285
   143
# -----------------------------
slouken@285
   144
# aclocal traces this macro to find the Autoconf version.
slouken@285
   145
# This is a private macro too.  Using m4_define simplifies
slouken@285
   146
# the logic in aclocal, which can simply ignore this definition.
slouken@285
   147
m4_define([_AM_AUTOCONF_VERSION], [])
slouken@285
   148
slouken@285
   149
# AM_SET_CURRENT_AUTOMAKE_VERSION
slouken@285
   150
# -------------------------------
slouken@285
   151
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
slouken@350
   152
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
slouken@285
   153
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
slouken@623
   154
[AM_AUTOMAKE_VERSION([1.16])dnl
slouken@350
   155
m4_ifndef([AC_AUTOCONF_VERSION],
slouken@350
   156
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
slouken@350
   157
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
slouken@285
   158
slouken@285
   159
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
slouken@285
   160
slouken@615
   161
# Copyright (C) 2001-2018 Free Software Foundation, Inc.
slouken@285
   162
#
slouken@285
   163
# This file is free software; the Free Software Foundation
slouken@285
   164
# gives unlimited permission to copy and/or distribute it,
slouken@285
   165
# with or without modifications, as long as this notice is preserved.
slouken@285
   166
slouken@285
   167
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
slouken@357
   168
# $ac_aux_dir to '$srcdir/foo'.  In other projects, it is set to
slouken@357
   169
# '$srcdir', '$srcdir/..', or '$srcdir/../..'.
slouken@285
   170
#
slouken@285
   171
# Of course, Automake must honor this variable whenever it calls a
slouken@285
   172
# tool from the auxiliary directory.  The problem is that $srcdir (and
slouken@285
   173
# therefore $ac_aux_dir as well) can be either absolute or relative,
slouken@285
   174
# depending on how configure is run.  This is pretty annoying, since
slouken@285
   175
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
slouken@285
   176
# source directory, any form will work fine, but in subdirectories a
slouken@285
   177
# relative path needs to be adjusted first.
slouken@285
   178
#
slouken@285
   179
# $ac_aux_dir/missing
slouken@285
   180
#    fails when called from a subdirectory if $ac_aux_dir is relative
slouken@285
   181
# $top_srcdir/$ac_aux_dir/missing
slouken@285
   182
#    fails if $ac_aux_dir is absolute,
slouken@285
   183
#    fails when called from a subdirectory in a VPATH build with
slouken@285
   184
#          a relative $ac_aux_dir
slouken@285
   185
#
slouken@285
   186
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
slouken@285
   187
# are both prefixed by $srcdir.  In an in-source build this is usually
slouken@357
   188
# harmless because $srcdir is '.', but things will broke when you
slouken@285
   189
# start a VPATH build or use an absolute $srcdir.
slouken@285
   190
#
slouken@285
   191
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
slouken@285
   192
# iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
slouken@285
   193
#   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
slouken@285
   194
# and then we would define $MISSING as
slouken@285
   195
#   MISSING="\${SHELL} $am_aux_dir/missing"
slouken@285
   196
# This will work as long as MISSING is not called from configure, because
slouken@285
   197
# unfortunately $(top_srcdir) has no meaning in configure.
slouken@285
   198
# However there are other variables, like CC, which are often used in
slouken@285
   199
# configure, and could therefore not use this "fixed" $ac_aux_dir.
slouken@285
   200
#
slouken@285
   201
# Another solution, used here, is to always expand $ac_aux_dir to an
slouken@285
   202
# absolute PATH.  The drawback is that using absolute paths prevent a
slouken@285
   203
# configured tree to be moved without reconfiguration.
slouken@285
   204
slouken@285
   205
AC_DEFUN([AM_AUX_DIR_EXPAND],
slouken@615
   206
[AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
slouken@615
   207
# Expand $ac_aux_dir to an absolute path.
slouken@615
   208
am_aux_dir=`cd "$ac_aux_dir" && pwd`
slouken@285
   209
])
slouken@285
   210
slouken@285
   211
# AM_CONDITIONAL                                            -*- Autoconf -*-
slouken@285
   212
slouken@615
   213
# Copyright (C) 1997-2018 Free Software Foundation, Inc.
slouken@285
   214
#
slouken@285
   215
# This file is free software; the Free Software Foundation
slouken@285
   216
# gives unlimited permission to copy and/or distribute it,
slouken@285
   217
# with or without modifications, as long as this notice is preserved.
slouken@285
   218
slouken@285
   219
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
slouken@285
   220
# -------------------------------------
slouken@285
   221
# Define a conditional.
slouken@285
   222
AC_DEFUN([AM_CONDITIONAL],
slouken@357
   223
[AC_PREREQ([2.52])dnl
slouken@357
   224
 m4_if([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
slouken@357
   225
       [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
slouken@285
   226
AC_SUBST([$1_TRUE])dnl
slouken@285
   227
AC_SUBST([$1_FALSE])dnl
slouken@285
   228
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
slouken@285
   229
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
slouken@350
   230
m4_define([_AM_COND_VALUE_$1], [$2])dnl
slouken@285
   231
if $2; then
slouken@285
   232
  $1_TRUE=
slouken@285
   233
  $1_FALSE='#'
slouken@285
   234
else
slouken@285
   235
  $1_TRUE='#'
slouken@285
   236
  $1_FALSE=
slouken@285
   237
fi
slouken@285
   238
AC_CONFIG_COMMANDS_PRE(
slouken@285
   239
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
slouken@285
   240
  AC_MSG_ERROR([[conditional "$1" was never defined.
slouken@285
   241
Usually this means the macro was only invoked conditionally.]])
slouken@285
   242
fi])])
slouken@285
   243
slouken@615
   244
# Copyright (C) 1999-2018 Free Software Foundation, Inc.
slouken@285
   245
#
slouken@285
   246
# This file is free software; the Free Software Foundation
slouken@285
   247
# gives unlimited permission to copy and/or distribute it,
slouken@285
   248
# with or without modifications, as long as this notice is preserved.
slouken@285
   249
slouken@285
   250
slouken@357
   251
# There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
slouken@285
   252
# written in clear, in which case automake, when reading aclocal.m4,
slouken@285
   253
# will think it sees a *use*, and therefore will trigger all it's
slouken@285
   254
# C support machinery.  Also note that it means that autoscan, seeing
slouken@285
   255
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
slouken@285
   256
slouken@285
   257
slouken@285
   258
# _AM_DEPENDENCIES(NAME)
slouken@285
   259
# ----------------------
slouken@285
   260
# See how the compiler implements dependency checking.
slouken@357
   261
# NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
slouken@285
   262
# We try a few techniques and use that to set a single cache variable.
slouken@285
   263
#
slouken@285
   264
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
slouken@285
   265
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
slouken@285
   266
# dependency, and given that the user is not expected to run this macro,
slouken@285
   267
# just rely on AC_PROG_CC.
slouken@285
   268
AC_DEFUN([_AM_DEPENDENCIES],
slouken@285
   269
[AC_REQUIRE([AM_SET_DEPDIR])dnl
slouken@285
   270
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
slouken@285
   271
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
slouken@285
   272
AC_REQUIRE([AM_DEP_TRACK])dnl
slouken@285
   273
slouken@357
   274
m4_if([$1], [CC],   [depcc="$CC"   am_compiler_list=],
slouken@357
   275
      [$1], [CXX],  [depcc="$CXX"  am_compiler_list=],
slouken@357
   276
      [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
slouken@357
   277
      [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
slouken@357
   278
      [$1], [UPC],  [depcc="$UPC"  am_compiler_list=],
slouken@357
   279
      [$1], [GCJ],  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
slouken@357
   280
                    [depcc="$$1"   am_compiler_list=])
slouken@285
   281
slouken@285
   282
AC_CACHE_CHECK([dependency style of $depcc],
slouken@285
   283
               [am_cv_$1_dependencies_compiler_type],
slouken@285
   284
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
slouken@285
   285
  # We make a subdir and do the tests there.  Otherwise we can end up
slouken@285
   286
  # making bogus files that we don't know about and never remove.  For
slouken@285
   287
  # instance it was reported that on HP-UX the gcc test will end up
slouken@357
   288
  # making a dummy file named 'D' -- because '-MD' means "put the output
slouken@357
   289
  # in D".
slouken@350
   290
  rm -rf conftest.dir
slouken@285
   291
  mkdir conftest.dir
slouken@285
   292
  # Copy depcomp to subdir because otherwise we won't find it if we're
slouken@285
   293
  # using a relative directory.
slouken@285
   294
  cp "$am_depcomp" conftest.dir
slouken@285
   295
  cd conftest.dir
slouken@285
   296
  # We will build objects and dependencies in a subdirectory because
slouken@285
   297
  # it helps to detect inapplicable dependency modes.  For instance
slouken@285
   298
  # both Tru64's cc and ICC support -MD to output dependencies as a
slouken@285
   299
  # side effect of compilation, but ICC will put the dependencies in
slouken@285
   300
  # the current directory while Tru64 will put them in the object
slouken@285
   301
  # directory.
slouken@285
   302
  mkdir sub
slouken@285
   303
slouken@285
   304
  am_cv_$1_dependencies_compiler_type=none
slouken@285
   305
  if test "$am_compiler_list" = ""; then
slouken@285
   306
     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
slouken@285
   307
  fi
slouken@350
   308
  am__universal=false
slouken@350
   309
  m4_case([$1], [CC],
slouken@350
   310
    [case " $depcc " in #(
slouken@350
   311
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
slouken@350
   312
     esac],
slouken@350
   313
    [CXX],
slouken@350
   314
    [case " $depcc " in #(
slouken@350
   315
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
slouken@350
   316
     esac])
slouken@350
   317
slouken@285
   318
  for depmode in $am_compiler_list; do
slouken@285
   319
    # Setup a source with many dependencies, because some compilers
slouken@285
   320
    # like to wrap large dependency lists on column 80 (with \), and
slouken@285
   321
    # we should not choose a depcomp mode which is confused by this.
slouken@285
   322
    #
slouken@285
   323
    # We need to recreate these files for each test, as the compiler may
slouken@285
   324
    # overwrite some of them when testing with obscure command lines.
slouken@285
   325
    # This happens at least with the AIX C compiler.
slouken@285
   326
    : > sub/conftest.c
slouken@285
   327
    for i in 1 2 3 4 5 6; do
slouken@285
   328
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
slouken@357
   329
      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
slouken@357
   330
      # Solaris 10 /bin/sh.
slouken@357
   331
      echo '/* dummy */' > sub/conftst$i.h
slouken@285
   332
    done
slouken@285
   333
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
slouken@285
   334
slouken@357
   335
    # We check with '-c' and '-o' for the sake of the "dashmstdout"
slouken@350
   336
    # mode.  It turns out that the SunPro C++ compiler does not properly
slouken@357
   337
    # handle '-M -o', and we need to detect this.  Also, some Intel
slouken@357
   338
    # versions had trouble with output in subdirs.
slouken@350
   339
    am__obj=sub/conftest.${OBJEXT-o}
slouken@350
   340
    am__minus_obj="-o $am__obj"
slouken@285
   341
    case $depmode in
slouken@350
   342
    gcc)
slouken@350
   343
      # This depmode causes a compiler race in universal mode.
slouken@350
   344
      test "$am__universal" = false || continue
slouken@350
   345
      ;;
slouken@285
   346
    nosideeffect)
slouken@357
   347
      # After this tag, mechanisms are not by side-effect, so they'll
slouken@357
   348
      # only be used when explicitly requested.
slouken@285
   349
      if test "x$enable_dependency_tracking" = xyes; then
slouken@285
   350
	continue
slouken@285
   351
      else
slouken@285
   352
	break
slouken@285
   353
      fi
slouken@285
   354
      ;;
slouken@350
   355
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
slouken@357
   356
      # This compiler won't grok '-c -o', but also, the minuso test has
slouken@350
   357
      # not run yet.  These depmodes are late enough in the game, and
slouken@350
   358
      # so weak that their functioning should not be impacted.
slouken@350
   359
      am__obj=conftest.${OBJEXT-o}
slouken@350
   360
      am__minus_obj=
slouken@350
   361
      ;;
slouken@285
   362
    none) break ;;
slouken@285
   363
    esac
slouken@285
   364
    if depmode=$depmode \
slouken@350
   365
       source=sub/conftest.c object=$am__obj \
slouken@285
   366
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
slouken@350
   367
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
slouken@285
   368
         >/dev/null 2>conftest.err &&
slouken@285
   369
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
slouken@285
   370
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
slouken@350
   371
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
slouken@285
   372
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
slouken@285
   373
      # icc doesn't choke on unknown options, it will just issue warnings
slouken@285
   374
      # or remarks (even with -Werror).  So we grep stderr for any message
slouken@285
   375
      # that says an option was ignored or not supported.
slouken@285
   376
      # When given -MP, icc 7.0 and 7.1 complain thusly:
slouken@285
   377
      #   icc: Command line warning: ignoring option '-M'; no argument required
slouken@285
   378
      # The diagnosis changed in icc 8.0:
slouken@285
   379
      #   icc: Command line remark: option '-MP' not supported
slouken@285
   380
      if (grep 'ignoring option' conftest.err ||
slouken@285
   381
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
slouken@285
   382
        am_cv_$1_dependencies_compiler_type=$depmode
slouken@285
   383
        break
slouken@285
   384
      fi
slouken@285
   385
    fi
slouken@285
   386
  done
slouken@285
   387
slouken@285
   388
  cd ..
slouken@285
   389
  rm -rf conftest.dir
slouken@285
   390
else
slouken@285
   391
  am_cv_$1_dependencies_compiler_type=none
slouken@285
   392
fi
slouken@285
   393
])
slouken@285
   394
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
slouken@285
   395
AM_CONDITIONAL([am__fastdep$1], [
slouken@285
   396
  test "x$enable_dependency_tracking" != xno \
slouken@285
   397
  && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
slouken@285
   398
])
slouken@285
   399
slouken@285
   400
slouken@285
   401
# AM_SET_DEPDIR
slouken@285
   402
# -------------
slouken@285
   403
# Choose a directory name for dependency files.
slouken@357
   404
# This macro is AC_REQUIREd in _AM_DEPENDENCIES.
slouken@285
   405
AC_DEFUN([AM_SET_DEPDIR],
slouken@285
   406
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
slouken@285
   407
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
slouken@285
   408
])
slouken@285
   409
slouken@285
   410
slouken@285
   411
# AM_DEP_TRACK
slouken@285
   412
# ------------
slouken@285
   413
AC_DEFUN([AM_DEP_TRACK],
slouken@357
   414
[AC_ARG_ENABLE([dependency-tracking], [dnl
slouken@357
   415
AS_HELP_STRING(
slouken@357
   416
  [--enable-dependency-tracking],
slouken@357
   417
  [do not reject slow dependency extractors])
slouken@357
   418
AS_HELP_STRING(
slouken@357
   419
  [--disable-dependency-tracking],
slouken@357
   420
  [speeds up one-time build])])
slouken@285
   421
if test "x$enable_dependency_tracking" != xno; then
slouken@285
   422
  am_depcomp="$ac_aux_dir/depcomp"
slouken@285
   423
  AMDEPBACKSLASH='\'
slouken@350
   424
  am__nodep='_no'
slouken@285
   425
fi
slouken@285
   426
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
slouken@285
   427
AC_SUBST([AMDEPBACKSLASH])dnl
slouken@285
   428
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
slouken@350
   429
AC_SUBST([am__nodep])dnl
slouken@350
   430
_AM_SUBST_NOTMAKE([am__nodep])dnl
slouken@285
   431
])
slouken@285
   432
slouken@285
   433
# Generate code to set up dependency tracking.              -*- Autoconf -*-
slouken@285
   434
slouken@615
   435
# Copyright (C) 1999-2018 Free Software Foundation, Inc.
slouken@285
   436
#
slouken@285
   437
# This file is free software; the Free Software Foundation
slouken@285
   438
# gives unlimited permission to copy and/or distribute it,
slouken@285
   439
# with or without modifications, as long as this notice is preserved.
slouken@285
   440
slouken@285
   441
# _AM_OUTPUT_DEPENDENCY_COMMANDS
slouken@285
   442
# ------------------------------
slouken@285
   443
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
slouken@350
   444
[{
slouken@357
   445
  # Older Autoconf quotes --file arguments for eval, but not when files
slouken@350
   446
  # are listed without --file.  Let's play safe and only enable the eval
slouken@350
   447
  # if we detect the quoting.
slouken@615
   448
  # TODO: see whether this extra hack can be removed once we start
slouken@615
   449
  # requiring Autoconf 2.70 or later.
slouken@615
   450
  AS_CASE([$CONFIG_FILES],
slouken@615
   451
          [*\'*], [eval set x "$CONFIG_FILES"],
slouken@615
   452
          [*], [set x $CONFIG_FILES])
slouken@350
   453
  shift
slouken@615
   454
  # Used to flag and report bootstrapping failures.
slouken@615
   455
  am_rc=0
slouken@615
   456
  for am_mf
slouken@350
   457
  do
slouken@350
   458
    # Strip MF so we end up with the name of the file.
slouken@615
   459
    am_mf=`AS_ECHO(["$am_mf"]) | sed -e 's/:.*$//'`
slouken@615
   460
    # Check whether this is an Automake generated Makefile which includes
slouken@615
   461
    # dependency-tracking related rules and includes.
slouken@615
   462
    # Grep'ing the whole file directly is not great: AIX grep has a line
slouken@350
   463
    # limit of 2048, but all sed's we know have understand at least 4000.
slouken@615
   464
    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
slouken@615
   465
      || continue
slouken@615
   466
    am_dirpart=`AS_DIRNAME(["$am_mf"])`
slouken@615
   467
    am_filepart=`AS_BASENAME(["$am_mf"])`
slouken@615
   468
    AM_RUN_LOG([cd "$am_dirpart" \
slouken@615
   469
      && sed -e '/# am--include-marker/d' "$am_filepart" \
slouken@615
   470
        | $MAKE -f - am--depfiles]) || am_rc=$?
slouken@285
   471
  done
slouken@615
   472
  if test $am_rc -ne 0; then
slouken@615
   473
    AC_MSG_FAILURE([Something went wrong bootstrapping makefile fragments
slouken@615
   474
    for automatic dependency tracking.  Try re-running configure with the
slouken@615
   475
    '--disable-dependency-tracking' option to at least be able to build
slouken@615
   476
    the package (albeit without support for automatic dependency tracking).])
slouken@615
   477
  fi
slouken@615
   478
  AS_UNSET([am_dirpart])
slouken@615
   479
  AS_UNSET([am_filepart])
slouken@615
   480
  AS_UNSET([am_mf])
slouken@615
   481
  AS_UNSET([am_rc])
slouken@615
   482
  rm -f conftest-deps.mk
slouken@350
   483
}
slouken@285
   484
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
slouken@285
   485
slouken@285
   486
slouken@285
   487
# AM_OUTPUT_DEPENDENCY_COMMANDS
slouken@285
   488
# -----------------------------
slouken@285
   489
# This macro should only be invoked once -- use via AC_REQUIRE.
slouken@285
   490
#
slouken@615
   491
# This code is only required when automatic dependency tracking is enabled.
slouken@615
   492
# This creates each '.Po' and '.Plo' makefile fragment that we'll need in
slouken@615
   493
# order to bootstrap the dependency handling code.
slouken@285
   494
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
slouken@285
   495
[AC_CONFIG_COMMANDS([depfiles],
slouken@285
   496
     [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
slouken@615
   497
     [AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"])])
slouken@285
   498
slouken@285
   499
# Do all the work for Automake.                             -*- Autoconf -*-
slouken@285
   500
slouken@615
   501
# Copyright (C) 1996-2018 Free Software Foundation, Inc.
slouken@285
   502
#
slouken@285
   503
# This file is free software; the Free Software Foundation
slouken@285
   504
# gives unlimited permission to copy and/or distribute it,
slouken@285
   505
# with or without modifications, as long as this notice is preserved.
slouken@285
   506
slouken@285
   507
# This macro actually does too much.  Some checks are only needed if
slouken@285
   508
# your package does certain things.  But this isn't really a big deal.
slouken@285
   509
slouken@524
   510
dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
slouken@524
   511
m4_define([AC_PROG_CC],
slouken@524
   512
m4_defn([AC_PROG_CC])
slouken@524
   513
[_AM_PROG_CC_C_O
slouken@524
   514
])
slouken@524
   515
slouken@285
   516
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
slouken@285
   517
# AM_INIT_AUTOMAKE([OPTIONS])
slouken@285
   518
# -----------------------------------------------
slouken@285
   519
# The call with PACKAGE and VERSION arguments is the old style
slouken@285
   520
# call (pre autoconf-2.50), which is being phased out.  PACKAGE
slouken@285
   521
# and VERSION should now be passed to AC_INIT and removed from
slouken@285
   522
# the call to AM_INIT_AUTOMAKE.
slouken@285
   523
# We support both call styles for the transition.  After
slouken@285
   524
# the next Automake release, Autoconf can make the AC_INIT
slouken@285
   525
# arguments mandatory, and then we can depend on a new Autoconf
slouken@285
   526
# release and drop the old call support.
slouken@285
   527
AC_DEFUN([AM_INIT_AUTOMAKE],
slouken@357
   528
[AC_PREREQ([2.65])dnl
slouken@285
   529
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
slouken@285
   530
dnl the ones we care about.
slouken@285
   531
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
slouken@285
   532
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
slouken@285
   533
AC_REQUIRE([AC_PROG_INSTALL])dnl
slouken@285
   534
if test "`cd $srcdir && pwd`" != "`pwd`"; then
slouken@285
   535
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
slouken@285
   536
  # is not polluted with repeated "-I."
slouken@285
   537
  AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
slouken@285
   538
  # test to see if srcdir already configured
slouken@285
   539
  if test -f $srcdir/config.status; then
slouken@285
   540
    AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
slouken@285
   541
  fi
slouken@285
   542
fi
slouken@285
   543
slouken@285
   544
# test whether we have cygpath
slouken@285
   545
if test -z "$CYGPATH_W"; then
slouken@285
   546
  if (cygpath --version) >/dev/null 2>/dev/null; then
slouken@285
   547
    CYGPATH_W='cygpath -w'
slouken@285
   548
  else
slouken@285
   549
    CYGPATH_W=echo
slouken@285
   550
  fi
slouken@285
   551
fi
slouken@285
   552
AC_SUBST([CYGPATH_W])
slouken@285
   553
slouken@285
   554
# Define the identity of the package.
slouken@285
   555
dnl Distinguish between old-style and new-style calls.
slouken@285
   556
m4_ifval([$2],
slouken@357
   557
[AC_DIAGNOSE([obsolete],
slouken@357
   558
             [$0: two- and three-arguments forms are deprecated.])
slouken@357
   559
m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
slouken@285
   560
 AC_SUBST([PACKAGE], [$1])dnl
slouken@285
   561
 AC_SUBST([VERSION], [$2])],
slouken@285
   562
[_AM_SET_OPTIONS([$1])dnl
slouken@285
   563
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
slouken@357
   564
m4_if(
slouken@357
   565
  m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
slouken@357
   566
  [ok:ok],,
slouken@285
   567
  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
slouken@285
   568
 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
slouken@285
   569
 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
slouken@285
   570
slouken@285
   571
_AM_IF_OPTION([no-define],,
slouken@357
   572
[AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
slouken@357
   573
 AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
slouken@285
   574
slouken@285
   575
# Some tools Automake needs.
slouken@285
   576
AC_REQUIRE([AM_SANITY_CHECK])dnl
slouken@285
   577
AC_REQUIRE([AC_ARG_PROGRAM])dnl
slouken@357
   578
AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
slouken@357
   579
AM_MISSING_PROG([AUTOCONF], [autoconf])
slouken@357
   580
AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
slouken@357
   581
AM_MISSING_PROG([AUTOHEADER], [autoheader])
slouken@357
   582
AM_MISSING_PROG([MAKEINFO], [makeinfo])
slouken@350
   583
AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
slouken@350
   584
AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
slouken@357
   585
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
slouken@357
   586
# For better backward compatibility.  To be removed once Automake 1.9.x
slouken@357
   587
# dies out for good.  For more background, see:
slouken@615
   588
# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
slouken@615
   589
# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
slouken@357
   590
AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
slouken@615
   591
# We need awk for the "check" target (and possibly the TAP driver).  The
slouken@615
   592
# system "awk" is bad on some platforms.
slouken@285
   593
AC_REQUIRE([AC_PROG_AWK])dnl
slouken@285
   594
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
slouken@285
   595
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
slouken@285
   596
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
slouken@350
   597
	      [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
slouken@350
   598
			     [_AM_PROG_TAR([v7])])])
slouken@285
   599
_AM_IF_OPTION([no-dependencies],,
slouken@285
   600
[AC_PROVIDE_IFELSE([AC_PROG_CC],
slouken@357
   601
		  [_AM_DEPENDENCIES([CC])],
slouken@357
   602
		  [m4_define([AC_PROG_CC],
slouken@357
   603
			     m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
slouken@285
   604
AC_PROVIDE_IFELSE([AC_PROG_CXX],
slouken@357
   605
		  [_AM_DEPENDENCIES([CXX])],
slouken@357
   606
		  [m4_define([AC_PROG_CXX],
slouken@357
   607
			     m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
slouken@285
   608
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
slouken@357
   609
		  [_AM_DEPENDENCIES([OBJC])],
slouken@357
   610
		  [m4_define([AC_PROG_OBJC],
slouken@357
   611
			     m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
slouken@357
   612
AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
slouken@357
   613
		  [_AM_DEPENDENCIES([OBJCXX])],
slouken@357
   614
		  [m4_define([AC_PROG_OBJCXX],
slouken@357
   615
			     m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
slouken@285
   616
])
slouken@357
   617
AC_REQUIRE([AM_SILENT_RULES])dnl
slouken@357
   618
dnl The testsuite driver may need to know about EXEEXT, so add the
slouken@357
   619
dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This
slouken@357
   620
dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
slouken@350
   621
AC_CONFIG_COMMANDS_PRE(dnl
slouken@350
   622
[m4_provide_if([_AM_COMPILER_EXEEXT],
slouken@350
   623
  [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
slouken@524
   624
slouken@524
   625
# POSIX will say in a future version that running "rm -f" with no argument
slouken@524
   626
# is OK; and we want to be able to make that assumption in our Makefile
slouken@524
   627
# recipes.  So use an aggressive probe to check that the usage we want is
slouken@524
   628
# actually supported "in the wild" to an acceptable degree.
slouken@524
   629
# See automake bug#10828.
slouken@524
   630
# To make any issue more visible, cause the running configure to be aborted
slouken@524
   631
# by default if the 'rm' program in use doesn't match our expectations; the
slouken@524
   632
# user can still override this though.
slouken@524
   633
if rm -f && rm -fr && rm -rf; then : OK; else
slouken@524
   634
  cat >&2 <<'END'
slouken@524
   635
Oops!
slouken@524
   636
slouken@524
   637
Your 'rm' program seems unable to run without file operands specified
slouken@524
   638
on the command line, even when the '-f' option is present.  This is contrary
slouken@524
   639
to the behaviour of most rm programs out there, and not conforming with
slouken@524
   640
the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
slouken@524
   641
slouken@524
   642
Please tell bug-automake@gnu.org about your system, including the value
slouken@524
   643
of your $PATH and any error possibly output before this message.  This
slouken@524
   644
can help us improve future automake versions.
slouken@524
   645
slouken@524
   646
END
slouken@524
   647
  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
slouken@524
   648
    echo 'Configuration will proceed anyway, since you have set the' >&2
slouken@524
   649
    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
slouken@524
   650
    echo >&2
slouken@524
   651
  else
slouken@524
   652
    cat >&2 <<'END'
slouken@524
   653
Aborting the configuration process, to ensure you take notice of the issue.
slouken@524
   654
slouken@524
   655
You can download and install GNU coreutils to get an 'rm' implementation
slouken@615
   656
that behaves properly: <https://www.gnu.org/software/coreutils/>.
slouken@524
   657
slouken@524
   658
If you want to complete the configuration process using your problematic
slouken@524
   659
'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
slouken@524
   660
to "yes", and re-run configure.
slouken@524
   661
slouken@524
   662
END
slouken@524
   663
    AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
slouken@524
   664
  fi
slouken@615
   665
fi
slouken@615
   666
dnl The trailing newline in this macro's definition is deliberate, for
slouken@615
   667
dnl backward compatibility and to allow trailing 'dnl'-style comments
slouken@615
   668
dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841.
slouken@615
   669
])
slouken@285
   670
slouken@357
   671
dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
slouken@350
   672
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
slouken@350
   673
dnl mangled by Autoconf and run in a shell conditional statement.
slouken@350
   674
m4_define([_AC_COMPILER_EXEEXT],
slouken@350
   675
m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
slouken@350
   676
slouken@285
   677
# When config.status generates a header, we must update the stamp-h file.
slouken@285
   678
# This file resides in the same directory as the config header
slouken@285
   679
# that is generated.  The stamp files are numbered to have different names.
slouken@285
   680
slouken@285
   681
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
slouken@285
   682
# loop where config.status creates the headers, so we can generate
slouken@285
   683
# our stamp files there.
slouken@285
   684
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
slouken@285
   685
[# Compute $1's index in $config_headers.
slouken@350
   686
_am_arg=$1
slouken@285
   687
_am_stamp_count=1
slouken@285
   688
for _am_header in $config_headers :; do
slouken@285
   689
  case $_am_header in
slouken@350
   690
    $_am_arg | $_am_arg:* )
slouken@285
   691
      break ;;
slouken@285
   692
    * )
slouken@285
   693
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
slouken@285
   694
  esac
slouken@285
   695
done
slouken@350
   696
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
slouken@285
   697
slouken@615
   698
# Copyright (C) 2001-2018 Free Software Foundation, Inc.
slouken@285
   699
#
slouken@285
   700
# This file is free software; the Free Software Foundation
slouken@285
   701
# gives unlimited permission to copy and/or distribute it,
slouken@285
   702
# with or without modifications, as long as this notice is preserved.
slouken@285
   703
slouken@285
   704
# AM_PROG_INSTALL_SH
slouken@285
   705
# ------------------
slouken@285
   706
# Define $install_sh.
slouken@285
   707
AC_DEFUN([AM_PROG_INSTALL_SH],
slouken@285
   708
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
slouken@615
   709
if test x"${install_sh+set}" != xset; then
slouken@350
   710
  case $am_aux_dir in
slouken@350
   711
  *\ * | *\	*)
slouken@350
   712
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
slouken@350
   713
  *)
slouken@350
   714
    install_sh="\${SHELL} $am_aux_dir/install-sh"
slouken@350
   715
  esac
slouken@350
   716
fi
slouken@357
   717
AC_SUBST([install_sh])])
slouken@285
   718
slouken@615
   719
# Copyright (C) 2003-2018 Free Software Foundation, Inc.
slouken@285
   720
#
slouken@285
   721
# This file is free software; the Free Software Foundation
slouken@285
   722
# gives unlimited permission to copy and/or distribute it,
slouken@285
   723
# with or without modifications, as long as this notice is preserved.
slouken@285
   724
slouken@285
   725
# Check whether the underlying file-system supports filenames
slouken@285
   726
# with a leading dot.  For instance MS-DOS doesn't.
slouken@285
   727
AC_DEFUN([AM_SET_LEADING_DOT],
slouken@285
   728
[rm -rf .tst 2>/dev/null
slouken@285
   729
mkdir .tst 2>/dev/null
slouken@285
   730
if test -d .tst; then
slouken@285
   731
  am__leading_dot=.
slouken@285
   732
else
slouken@285
   733
  am__leading_dot=_
slouken@285
   734
fi
slouken@285
   735
rmdir .tst 2>/dev/null
slouken@285
   736
AC_SUBST([am__leading_dot])])
slouken@285
   737
slouken@285
   738
# Check to see how 'make' treats includes.	            -*- Autoconf -*-
slouken@285
   739
slouken@615
   740
# Copyright (C) 2001-2018 Free Software Foundation, Inc.
slouken@285
   741
#
slouken@285
   742
# This file is free software; the Free Software Foundation
slouken@285
   743
# gives unlimited permission to copy and/or distribute it,
slouken@285
   744
# with or without modifications, as long as this notice is preserved.
slouken@285
   745
slouken@285
   746
# AM_MAKE_INCLUDE()
slouken@285
   747
# -----------------
slouken@615
   748
# Check whether make has an 'include' directive that can support all
slouken@615
   749
# the idioms we need for our automatic dependency tracking code.
slouken@285
   750
AC_DEFUN([AM_MAKE_INCLUDE],
slouken@615
   751
[AC_MSG_CHECKING([whether ${MAKE-make} supports the include directive])
slouken@615
   752
cat > confinc.mk << 'END'
slouken@285
   753
am__doit:
slouken@615
   754
	@echo this is the am__doit target >confinc.out
slouken@285
   755
.PHONY: am__doit
slouken@285
   756
END
slouken@285
   757
am__include="#"
slouken@285
   758
am__quote=
slouken@615
   759
# BSD make does it like this.
slouken@615
   760
echo '.include "confinc.mk" # ignored' > confmf.BSD
slouken@615
   761
# Other make implementations (GNU, Solaris 10, AIX) do it like this.
slouken@615
   762
echo 'include confinc.mk # ignored' > confmf.GNU
slouken@615
   763
_am_result=no
slouken@615
   764
for s in GNU BSD; do
slouken@615
   765
  AM_RUN_LOG([${MAKE-make} -f confmf.$s && cat confinc.out])
slouken@615
   766
  AS_CASE([$?:`cat confinc.out 2>/dev/null`],
slouken@615
   767
      ['0:this is the am__doit target'],
slouken@615
   768
      [AS_CASE([$s],
slouken@615
   769
          [BSD], [am__include='.include' am__quote='"'],
slouken@615
   770
          [am__include='include' am__quote=''])])
slouken@615
   771
  if test "$am__include" != "#"; then
slouken@615
   772
    _am_result="yes ($s style)"
slouken@615
   773
    break
slouken@615
   774
  fi
slouken@615
   775
done
slouken@615
   776
rm -f confinc.* confmf.*
slouken@615
   777
AC_MSG_RESULT([${_am_result}])
slouken@615
   778
AC_SUBST([am__include])])
slouken@615
   779
AC_SUBST([am__quote])])
slouken@285
   780
slouken@285
   781
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
slouken@285
   782
slouken@615
   783
# Copyright (C) 1997-2018 Free Software Foundation, Inc.
slouken@285
   784
#
slouken@285
   785
# This file is free software; the Free Software Foundation
slouken@285
   786
# gives unlimited permission to copy and/or distribute it,
slouken@285
   787
# with or without modifications, as long as this notice is preserved.
slouken@285
   788
slouken@285
   789
# AM_MISSING_PROG(NAME, PROGRAM)
slouken@285
   790
# ------------------------------
slouken@285
   791
AC_DEFUN([AM_MISSING_PROG],
slouken@285
   792
[AC_REQUIRE([AM_MISSING_HAS_RUN])
slouken@285
   793
$1=${$1-"${am_missing_run}$2"}
slouken@285
   794
AC_SUBST($1)])
slouken@285
   795
slouken@285
   796
# AM_MISSING_HAS_RUN
slouken@285
   797
# ------------------
slouken@357
   798
# Define MISSING if not defined so far and test if it is modern enough.
slouken@357
   799
# If it is, set am_missing_run to use it, otherwise, to nothing.
slouken@285
   800
AC_DEFUN([AM_MISSING_HAS_RUN],
slouken@285
   801
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
slouken@285
   802
AC_REQUIRE_AUX_FILE([missing])dnl
slouken@350
   803
if test x"${MISSING+set}" != xset; then
slouken@350
   804
  case $am_aux_dir in
slouken@350
   805
  *\ * | *\	*)
slouken@350
   806
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
slouken@350
   807
  *)
slouken@350
   808
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
slouken@350
   809
  esac
slouken@350
   810
fi
slouken@285
   811
# Use eval to expand $SHELL
slouken@357
   812
if eval "$MISSING --is-lightweight"; then
slouken@357
   813
  am_missing_run="$MISSING "
slouken@285
   814
else
slouken@285
   815
  am_missing_run=
slouken@357
   816
  AC_MSG_WARN(['missing' script is too old or missing])
slouken@285
   817
fi
slouken@285
   818
])
slouken@285
   819
slouken@357
   820
# Helper functions for option handling.                     -*- Autoconf -*-
slouken@357
   821
slouken@615
   822
# Copyright (C) 2001-2018 Free Software Foundation, Inc.
slouken@285
   823
#
slouken@285
   824
# This file is free software; the Free Software Foundation
slouken@285
   825
# gives unlimited permission to copy and/or distribute it,
slouken@285
   826
# with or without modifications, as long as this notice is preserved.
slouken@285
   827
slouken@285
   828
# _AM_MANGLE_OPTION(NAME)
slouken@285
   829
# -----------------------
slouken@285
   830
AC_DEFUN([_AM_MANGLE_OPTION],
slouken@285
   831
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
slouken@285
   832
slouken@285
   833
# _AM_SET_OPTION(NAME)
slouken@350
   834
# --------------------
slouken@285
   835
# Set option NAME.  Presently that only means defining a flag for this option.
slouken@285
   836
AC_DEFUN([_AM_SET_OPTION],
slouken@357
   837
[m4_define(_AM_MANGLE_OPTION([$1]), [1])])
slouken@285
   838
slouken@285
   839
# _AM_SET_OPTIONS(OPTIONS)
slouken@350
   840
# ------------------------
slouken@285
   841
# OPTIONS is a space-separated list of Automake options.
slouken@285
   842
AC_DEFUN([_AM_SET_OPTIONS],
slouken@350
   843
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
slouken@285
   844
slouken@285
   845
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
slouken@285
   846
# -------------------------------------------
slouken@285
   847
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
slouken@285
   848
AC_DEFUN([_AM_IF_OPTION],
slouken@285
   849
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
slouken@285
   850
slouken@615
   851
# Copyright (C) 1999-2018 Free Software Foundation, Inc.
slouken@524
   852
#
slouken@524
   853
# This file is free software; the Free Software Foundation
slouken@524
   854
# gives unlimited permission to copy and/or distribute it,
slouken@524
   855
# with or without modifications, as long as this notice is preserved.
slouken@524
   856
slouken@524
   857
# _AM_PROG_CC_C_O
slouken@524
   858
# ---------------
slouken@524
   859
# Like AC_PROG_CC_C_O, but changed for automake.  We rewrite AC_PROG_CC
slouken@524
   860
# to automatically call this.
slouken@524
   861
AC_DEFUN([_AM_PROG_CC_C_O],
slouken@524
   862
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
slouken@524
   863
AC_REQUIRE_AUX_FILE([compile])dnl
slouken@524
   864
AC_LANG_PUSH([C])dnl
slouken@524
   865
AC_CACHE_CHECK(
slouken@524
   866
  [whether $CC understands -c and -o together],
slouken@524
   867
  [am_cv_prog_cc_c_o],
slouken@524
   868
  [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
slouken@524
   869
  # Make sure it works both with $CC and with simple cc.
slouken@524
   870
  # Following AC_PROG_CC_C_O, we do the test twice because some
slouken@524
   871
  # compilers refuse to overwrite an existing .o file with -o,
slouken@524
   872
  # though they will create one.
slouken@524
   873
  am_cv_prog_cc_c_o=yes
slouken@524
   874
  for am_i in 1 2; do
slouken@524
   875
    if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
slouken@524
   876
         && test -f conftest2.$ac_objext; then
slouken@524
   877
      : OK
slouken@524
   878
    else
slouken@524
   879
      am_cv_prog_cc_c_o=no
slouken@524
   880
      break
slouken@524
   881
    fi
slouken@524
   882
  done
slouken@524
   883
  rm -f core conftest*
slouken@524
   884
  unset am_i])
slouken@524
   885
if test "$am_cv_prog_cc_c_o" != yes; then
slouken@524
   886
   # Losing compiler, so override with the script.
slouken@524
   887
   # FIXME: It is wrong to rewrite CC.
slouken@524
   888
   # But if we don't then we get into trouble of one sort or another.
slouken@524
   889
   # A longer-term fix would be to have automake use am__CC in this case,
slouken@524
   890
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
slouken@524
   891
   CC="$am_aux_dir/compile $CC"
slouken@524
   892
fi
slouken@524
   893
AC_LANG_POP([C])])
slouken@524
   894
slouken@524
   895
# For backward compatibility.
slouken@524
   896
AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
slouken@524
   897
slouken@615
   898
# Copyright (C) 2001-2018 Free Software Foundation, Inc.
slouken@524
   899
#
slouken@524
   900
# This file is free software; the Free Software Foundation
slouken@524
   901
# gives unlimited permission to copy and/or distribute it,
slouken@524
   902
# with or without modifications, as long as this notice is preserved.
slouken@524
   903
slouken@524
   904
# AM_RUN_LOG(COMMAND)
slouken@524
   905
# -------------------
slouken@524
   906
# Run COMMAND, save the exit status in ac_status, and log it.
slouken@524
   907
# (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
slouken@524
   908
AC_DEFUN([AM_RUN_LOG],
slouken@524
   909
[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
slouken@524
   910
   ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
slouken@524
   911
   ac_status=$?
slouken@524
   912
   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
slouken@524
   913
   (exit $ac_status); }])
slouken@524
   914
slouken@285
   915
# Check to make sure that the build environment is sane.    -*- Autoconf -*-
slouken@285
   916
slouken@615
   917
# Copyright (C) 1996-2018 Free Software Foundation, Inc.
slouken@285
   918
#
slouken@285
   919
# This file is free software; the Free Software Foundation
slouken@285
   920
# gives unlimited permission to copy and/or distribute it,
slouken@285
   921
# with or without modifications, as long as this notice is preserved.
slouken@285
   922
slouken@285
   923
# AM_SANITY_CHECK
slouken@285
   924
# ---------------
slouken@285
   925
AC_DEFUN([AM_SANITY_CHECK],
slouken@285
   926
[AC_MSG_CHECKING([whether build environment is sane])
slouken@350
   927
# Reject unsafe characters in $srcdir or the absolute working directory
slouken@350
   928
# name.  Accept space and tab only in the latter.
slouken@350
   929
am_lf='
slouken@350
   930
'
slouken@350
   931
case `pwd` in
slouken@350
   932
  *[[\\\"\#\$\&\'\`$am_lf]]*)
slouken@350
   933
    AC_MSG_ERROR([unsafe absolute working directory name]);;
slouken@350
   934
esac
slouken@350
   935
case $srcdir in
slouken@350
   936
  *[[\\\"\#\$\&\'\`$am_lf\ \	]]*)
slouken@357
   937
    AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
slouken@350
   938
esac
slouken@350
   939
slouken@357
   940
# Do 'set' in a subshell so we don't clobber the current shell's
slouken@285
   941
# arguments.  Must try -L first in case configure is actually a
slouken@285
   942
# symlink; some systems play weird games with the mod time of symlinks
slouken@285
   943
# (eg FreeBSD returns the mod time of the symlink's containing
slouken@285
   944
# directory).
slouken@285
   945
if (
slouken@357
   946
   am_has_slept=no
slouken@357
   947
   for am_try in 1 2; do
slouken@357
   948
     echo "timestamp, slept: $am_has_slept" > conftest.file
slouken@357
   949
     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
slouken@357
   950
     if test "$[*]" = "X"; then
slouken@357
   951
	# -L didn't work.
slouken@357
   952
	set X `ls -t "$srcdir/configure" conftest.file`
slouken@357
   953
     fi
slouken@357
   954
     if test "$[*]" != "X $srcdir/configure conftest.file" \
slouken@357
   955
	&& test "$[*]" != "X conftest.file $srcdir/configure"; then
slouken@285
   956
slouken@357
   957
	# If neither matched, then we have a broken ls.  This can happen
slouken@357
   958
	# if, for instance, CONFIG_SHELL is bash and it inherits a
slouken@357
   959
	# broken ls alias from the environment.  This has actually
slouken@357
   960
	# happened.  Such a system could not be considered "sane".
slouken@357
   961
	AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
slouken@357
   962
  alias in your environment])
slouken@357
   963
     fi
slouken@357
   964
     if test "$[2]" = conftest.file || test $am_try -eq 2; then
slouken@357
   965
       break
slouken@357
   966
     fi
slouken@357
   967
     # Just in case.
slouken@357
   968
     sleep 1
slouken@357
   969
     am_has_slept=yes
slouken@357
   970
   done
slouken@285
   971
   test "$[2]" = conftest.file
slouken@285
   972
   )
slouken@285
   973
then
slouken@285
   974
   # Ok.
slouken@285
   975
   :
slouken@285
   976
else
slouken@285
   977
   AC_MSG_ERROR([newly created file is older than distributed files!
slouken@285
   978
Check your system clock])
slouken@285
   979
fi
slouken@357
   980
AC_MSG_RESULT([yes])
slouken@357
   981
# If we didn't sleep, we still need to ensure time stamps of config.status and
slouken@357
   982
# generated files are strictly newer.
slouken@357
   983
am_sleep_pid=
slouken@357
   984
if grep 'slept: no' conftest.file >/dev/null 2>&1; then
slouken@357
   985
  ( sleep 1 ) &
slouken@357
   986
  am_sleep_pid=$!
slouken@357
   987
fi
slouken@357
   988
AC_CONFIG_COMMANDS_PRE(
slouken@357
   989
  [AC_MSG_CHECKING([that generated files are newer than configure])
slouken@357
   990
   if test -n "$am_sleep_pid"; then
slouken@357
   991
     # Hide warnings about reused PIDs.
slouken@357
   992
     wait $am_sleep_pid 2>/dev/null
slouken@357
   993
   fi
slouken@357
   994
   AC_MSG_RESULT([done])])
slouken@357
   995
rm -f conftest.file
slouken@357
   996
])
slouken@285
   997
slouken@615
   998
# Copyright (C) 2009-2018 Free Software Foundation, Inc.
slouken@285
   999
#
slouken@285
  1000
# This file is free software; the Free Software Foundation
slouken@285
  1001
# gives unlimited permission to copy and/or distribute it,
slouken@285
  1002
# with or without modifications, as long as this notice is preserved.
slouken@285
  1003
slouken@357
  1004
# AM_SILENT_RULES([DEFAULT])
slouken@357
  1005
# --------------------------
slouken@357
  1006
# Enable less verbose build rules; with the default set to DEFAULT
slouken@357
  1007
# ("yes" being less verbose, "no" or empty being verbose).
slouken@357
  1008
AC_DEFUN([AM_SILENT_RULES],
slouken@357
  1009
[AC_ARG_ENABLE([silent-rules], [dnl
slouken@357
  1010
AS_HELP_STRING(
slouken@357
  1011
  [--enable-silent-rules],
slouken@357
  1012
  [less verbose build output (undo: "make V=1")])
slouken@357
  1013
AS_HELP_STRING(
slouken@357
  1014
  [--disable-silent-rules],
slouken@357
  1015
  [verbose build output (undo: "make V=0")])dnl
slouken@357
  1016
])
slouken@357
  1017
case $enable_silent_rules in @%:@ (((
slouken@357
  1018
  yes) AM_DEFAULT_VERBOSITY=0;;
slouken@357
  1019
   no) AM_DEFAULT_VERBOSITY=1;;
slouken@357
  1020
    *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
slouken@357
  1021
esac
slouken@357
  1022
dnl
slouken@357
  1023
dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
slouken@357
  1024
dnl do not support nested variable expansions.
slouken@357
  1025
dnl See automake bug#9928 and bug#10237.
slouken@357
  1026
am_make=${MAKE-make}
slouken@357
  1027
AC_CACHE_CHECK([whether $am_make supports nested variables],
slouken@357
  1028
   [am_cv_make_support_nested_variables],
slouken@357
  1029
   [if AS_ECHO([['TRUE=$(BAR$(V))
slouken@357
  1030
BAR0=false
slouken@357
  1031
BAR1=true
slouken@357
  1032
V=1
slouken@357
  1033
am__doit:
slouken@357
  1034
	@$(TRUE)
slouken@357
  1035
.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
slouken@357
  1036
  am_cv_make_support_nested_variables=yes
slouken@357
  1037
else
slouken@357
  1038
  am_cv_make_support_nested_variables=no
slouken@357
  1039
fi])
slouken@357
  1040
if test $am_cv_make_support_nested_variables = yes; then
slouken@357
  1041
  dnl Using '$V' instead of '$(V)' breaks IRIX make.
slouken@357
  1042
  AM_V='$(V)'
slouken@357
  1043
  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
slouken@357
  1044
else
slouken@357
  1045
  AM_V=$AM_DEFAULT_VERBOSITY
slouken@357
  1046
  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
slouken@357
  1047
fi
slouken@357
  1048
AC_SUBST([AM_V])dnl
slouken@357
  1049
AM_SUBST_NOTMAKE([AM_V])dnl
slouken@357
  1050
AC_SUBST([AM_DEFAULT_V])dnl
slouken@357
  1051
AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
slouken@357
  1052
AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
slouken@357
  1053
AM_BACKSLASH='\'
slouken@357
  1054
AC_SUBST([AM_BACKSLASH])dnl
slouken@357
  1055
_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
slouken@357
  1056
])
slouken@357
  1057
slouken@615
  1058
# Copyright (C) 2001-2018 Free Software Foundation, Inc.
slouken@357
  1059
#
slouken@357
  1060
# This file is free software; the Free Software Foundation
slouken@357
  1061
# gives unlimited permission to copy and/or distribute it,
slouken@357
  1062
# with or without modifications, as long as this notice is preserved.
slouken@350
  1063
slouken@285
  1064
# AM_PROG_INSTALL_STRIP
slouken@285
  1065
# ---------------------
slouken@357
  1066
# One issue with vendor 'install' (even GNU) is that you can't
slouken@285
  1067
# specify the program used to strip binaries.  This is especially
slouken@285
  1068
# annoying in cross-compiling environments, where the build's strip
slouken@285
  1069
# is unlikely to handle the host's binaries.
slouken@285
  1070
# Fortunately install-sh will honor a STRIPPROG variable, so we
slouken@357
  1071
# always use install-sh in "make install-strip", and initialize
slouken@285
  1072
# STRIPPROG with the value of the STRIP variable (set by the user).
slouken@285
  1073
AC_DEFUN([AM_PROG_INSTALL_STRIP],
slouken@285
  1074
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
slouken@357
  1075
# Installed binaries are usually stripped using 'strip' when the user
slouken@357
  1076
# run "make install-strip".  However 'strip' might not be the right
slouken@285
  1077
# tool to use in cross-compilation environments, therefore Automake
slouken@357
  1078
# will honor the 'STRIP' environment variable to overrule this program.
slouken@357
  1079
dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
slouken@285
  1080
if test "$cross_compiling" != no; then
slouken@285
  1081
  AC_CHECK_TOOL([STRIP], [strip], :)
slouken@285
  1082
fi
slouken@285
  1083
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
slouken@285
  1084
AC_SUBST([INSTALL_STRIP_PROGRAM])])
slouken@285
  1085
slouken@615
  1086
# Copyright (C) 2006-2018 Free Software Foundation, Inc.
slouken@285
  1087
#
slouken@285
  1088
# This file is free software; the Free Software Foundation
slouken@285
  1089
# gives unlimited permission to copy and/or distribute it,
slouken@285
  1090
# with or without modifications, as long as this notice is preserved.
slouken@285
  1091
slouken@285
  1092
# _AM_SUBST_NOTMAKE(VARIABLE)
slouken@285
  1093
# ---------------------------
slouken@350
  1094
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
slouken@285
  1095
# This macro is traced by Automake.
slouken@285
  1096
AC_DEFUN([_AM_SUBST_NOTMAKE])
slouken@285
  1097
slouken@350
  1098
# AM_SUBST_NOTMAKE(VARIABLE)
slouken@350
  1099
# --------------------------
slouken@350
  1100
# Public sister of _AM_SUBST_NOTMAKE.
slouken@350
  1101
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
slouken@350
  1102
slouken@285
  1103
# Check how to create a tarball.                            -*- Autoconf -*-
slouken@285
  1104
slouken@615
  1105
# Copyright (C) 2004-2018 Free Software Foundation, Inc.
slouken@285
  1106
#
slouken@285
  1107
# This file is free software; the Free Software Foundation
slouken@285
  1108
# gives unlimited permission to copy and/or distribute it,
slouken@285
  1109
# with or without modifications, as long as this notice is preserved.
slouken@285
  1110
slouken@285
  1111
# _AM_PROG_TAR(FORMAT)
slouken@285
  1112
# --------------------
slouken@285
  1113
# Check how to create a tarball in format FORMAT.
slouken@357
  1114
# FORMAT should be one of 'v7', 'ustar', or 'pax'.
slouken@285
  1115
#
slouken@285
  1116
# Substitute a variable $(am__tar) that is a command
slouken@285
  1117
# writing to stdout a FORMAT-tarball containing the directory
slouken@285
  1118
# $tardir.
slouken@285
  1119
#     tardir=directory && $(am__tar) > result.tar
slouken@285
  1120
#
slouken@285
  1121
# Substitute a variable $(am__untar) that extract such
slouken@285
  1122
# a tarball read from stdin.
slouken@285
  1123
#     $(am__untar) < result.tar
slouken@524
  1124
#
slouken@285
  1125
AC_DEFUN([_AM_PROG_TAR],
slouken@350
  1126
[# Always define AMTAR for backward compatibility.  Yes, it's still used
slouken@350
  1127
# in the wild :-(  We should find a proper way to deprecate it ...
slouken@350
  1128
AC_SUBST([AMTAR], ['$${TAR-tar}'])
slouken@524
  1129
slouken@524
  1130
# We'll loop over all known methods to create a tar archive until one works.
slouken@524
  1131
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
slouken@524
  1132
slouken@285
  1133
m4_if([$1], [v7],
slouken@524
  1134
  [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
slouken@285
  1135
slouken@524
  1136
  [m4_case([$1],
slouken@524
  1137
    [ustar],
slouken@524
  1138
     [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
slouken@524
  1139
      # There is notably a 21 bits limit for the UID and the GID.  In fact,
slouken@524
  1140
      # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
slouken@524
  1141
      # and bug#13588).
slouken@524
  1142
      am_max_uid=2097151 # 2^21 - 1
slouken@524
  1143
      am_max_gid=$am_max_uid
slouken@524
  1144
      # The $UID and $GID variables are not portable, so we need to resort
slouken@524
  1145
      # to the POSIX-mandated id(1) utility.  Errors in the 'id' calls
slouken@524
  1146
      # below are definitely unexpected, so allow the users to see them
slouken@524
  1147
      # (that is, avoid stderr redirection).
slouken@524
  1148
      am_uid=`id -u || echo unknown`
slouken@524
  1149
      am_gid=`id -g || echo unknown`
slouken@524
  1150
      AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
slouken@524
  1151
      if test $am_uid -le $am_max_uid; then
slouken@524
  1152
         AC_MSG_RESULT([yes])
slouken@524
  1153
      else
slouken@524
  1154
         AC_MSG_RESULT([no])
slouken@524
  1155
         _am_tools=none
slouken@524
  1156
      fi
slouken@524
  1157
      AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
slouken@524
  1158
      if test $am_gid -le $am_max_gid; then
slouken@524
  1159
         AC_MSG_RESULT([yes])
slouken@524
  1160
      else
slouken@524
  1161
        AC_MSG_RESULT([no])
slouken@524
  1162
        _am_tools=none
slouken@524
  1163
      fi],
slouken@285
  1164
slouken@524
  1165
  [pax],
slouken@524
  1166
    [],
slouken@524
  1167
slouken@524
  1168
  [m4_fatal([Unknown tar format])])
slouken@524
  1169
slouken@524
  1170
  AC_MSG_CHECKING([how to create a $1 tar archive])
slouken@524
  1171
slouken@524
  1172
  # Go ahead even if we have the value already cached.  We do so because we
slouken@524
  1173
  # need to set the values for the 'am__tar' and 'am__untar' variables.
slouken@524
  1174
  _am_tools=${am_cv_prog_tar_$1-$_am_tools}
slouken@524
  1175
slouken@524
  1176
  for _am_tool in $_am_tools; do
slouken@524
  1177
    case $_am_tool in
slouken@524
  1178
    gnutar)
slouken@524
  1179
      for _am_tar in tar gnutar gtar; do
slouken@524
  1180
        AM_RUN_LOG([$_am_tar --version]) && break
slouken@524
  1181
      done
slouken@524
  1182
      am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
slouken@524
  1183
      am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
slouken@524
  1184
      am__untar="$_am_tar -xf -"
slouken@524
  1185
      ;;
slouken@524
  1186
    plaintar)
slouken@524
  1187
      # Must skip GNU tar: if it does not support --format= it doesn't create
slouken@524
  1188
      # ustar tarball either.
slouken@524
  1189
      (tar --version) >/dev/null 2>&1 && continue
slouken@524
  1190
      am__tar='tar chf - "$$tardir"'
slouken@524
  1191
      am__tar_='tar chf - "$tardir"'
slouken@524
  1192
      am__untar='tar xf -'
slouken@524
  1193
      ;;
slouken@524
  1194
    pax)
slouken@524
  1195
      am__tar='pax -L -x $1 -w "$$tardir"'
slouken@524
  1196
      am__tar_='pax -L -x $1 -w "$tardir"'
slouken@524
  1197
      am__untar='pax -r'
slouken@524
  1198
      ;;
slouken@524
  1199
    cpio)
slouken@524
  1200
      am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
slouken@524
  1201
      am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
slouken@524
  1202
      am__untar='cpio -i -H $1 -d'
slouken@524
  1203
      ;;
slouken@524
  1204
    none)
slouken@524
  1205
      am__tar=false
slouken@524
  1206
      am__tar_=false
slouken@524
  1207
      am__untar=false
slouken@524
  1208
      ;;
slouken@524
  1209
    esac
slouken@524
  1210
slouken@524
  1211
    # If the value was cached, stop now.  We just wanted to have am__tar
slouken@524
  1212
    # and am__untar set.
slouken@524
  1213
    test -n "${am_cv_prog_tar_$1}" && break
slouken@524
  1214
slouken@524
  1215
    # tar/untar a dummy directory, and stop if the command works.
slouken@524
  1216
    rm -rf conftest.dir
slouken@524
  1217
    mkdir conftest.dir
slouken@524
  1218
    echo GrepMe > conftest.dir/file
slouken@524
  1219
    AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
slouken@524
  1220
    rm -rf conftest.dir
slouken@524
  1221
    if test -s conftest.tar; then
slouken@524
  1222
      AM_RUN_LOG([$am__untar <conftest.tar])
slouken@524
  1223
      AM_RUN_LOG([cat conftest.dir/file])
slouken@524
  1224
      grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
slouken@524
  1225
    fi
slouken@524
  1226
  done
slouken@285
  1227
  rm -rf conftest.dir
slouken@285
  1228
slouken@524
  1229
  AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
slouken@524
  1230
  AC_MSG_RESULT([$am_cv_prog_tar_$1])])
slouken@524
  1231
slouken@285
  1232
AC_SUBST([am__tar])
slouken@285
  1233
AC_SUBST([am__untar])
slouken@285
  1234
]) # _AM_PROG_TAR
slouken@285
  1235
slouken@285
  1236
m4_include([acinclude/libtool.m4])
slouken@285
  1237
m4_include([acinclude/ltoptions.m4])
slouken@285
  1238
m4_include([acinclude/ltsugar.m4])
slouken@285
  1239
m4_include([acinclude/ltversion.m4])
slouken@285
  1240
m4_include([acinclude/lt~obsolete.m4])
slouken@285
  1241
m4_include([acinclude/pkg.m4])
slouken@320
  1242
m4_include([acinclude/sdl2.m4])