aclocal.m4
author Sam Lantinga <slouken@libsdl.org>
Sun, 15 Jun 2014 13:16:42 -0700
changeset 451 48116d511e5d
parent 372 46289a3abe15
child 524 b4b49635cbd8
permissions -rw-r--r--
Fixed format warnings: format not a string literal and no format arguments
slouken@357
     1
# generated automatically by aclocal 1.13.1 -*- Autoconf -*-
slouken@285
     2
slouken@357
     3
# Copyright (C) 1996-2012 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@372
    23
# lt~obsolete.m4 -- aclocal satisfying obsolete definitions.    -*-Autoconf-*-
slouken@372
    24
#
slouken@372
    25
#   Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
slouken@372
    26
#   Written by Scott James Remnant, 2004.
slouken@372
    27
#
slouken@372
    28
# This file is free software; the Free Software Foundation gives
slouken@372
    29
# unlimited permission to copy and/or distribute it, with or without
slouken@372
    30
# modifications, as long as this notice is preserved.
slouken@372
    31
slouken@372
    32
# serial 5 lt~obsolete.m4
slouken@372
    33
slouken@372
    34
# These exist entirely to fool aclocal when bootstrapping libtool.
slouken@372
    35
#
slouken@372
    36
# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
slouken@372
    37
# which have later been changed to m4_define as they aren't part of the
slouken@372
    38
# exported API, or moved to Autoconf or Automake where they belong.
slouken@372
    39
#
slouken@372
    40
# The trouble is, aclocal is a bit thick.  It'll see the old AC_DEFUN
slouken@372
    41
# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
slouken@372
    42
# using a macro with the same name in our local m4/libtool.m4 it'll
slouken@372
    43
# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
slouken@372
    44
# and doesn't know about Autoconf macros at all.)
slouken@372
    45
#
slouken@372
    46
# So we provide this file, which has a silly filename so it's always
slouken@372
    47
# included after everything else.  This provides aclocal with the
slouken@372
    48
# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
slouken@372
    49
# because those macros already exist, or will be overwritten later.
slouken@372
    50
# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6. 
slouken@372
    51
#
slouken@372
    52
# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
slouken@372
    53
# Yes, that means every name once taken will need to remain here until
slouken@372
    54
# we give up compatibility with versions before 1.7, at which point
slouken@372
    55
# we need to keep only those names which we still refer to.
slouken@372
    56
slouken@372
    57
# This is to help aclocal find these macros, as it can't see m4_define.
slouken@372
    58
AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
slouken@372
    59
slouken@372
    60
m4_ifndef([AC_LIBTOOL_LINKER_OPTION],	[AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
slouken@372
    61
m4_ifndef([AC_PROG_EGREP],		[AC_DEFUN([AC_PROG_EGREP])])
slouken@372
    62
m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH],	[AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
slouken@372
    63
m4_ifndef([_LT_AC_SHELL_INIT],		[AC_DEFUN([_LT_AC_SHELL_INIT])])
slouken@372
    64
m4_ifndef([_LT_AC_SYS_LIBPATH_AIX],	[AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
slouken@372
    65
m4_ifndef([_LT_PROG_LTMAIN],		[AC_DEFUN([_LT_PROG_LTMAIN])])
slouken@372
    66
m4_ifndef([_LT_AC_TAGVAR],		[AC_DEFUN([_LT_AC_TAGVAR])])
slouken@372
    67
m4_ifndef([AC_LTDL_ENABLE_INSTALL],	[AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
slouken@372
    68
m4_ifndef([AC_LTDL_PREOPEN],		[AC_DEFUN([AC_LTDL_PREOPEN])])
slouken@372
    69
m4_ifndef([_LT_AC_SYS_COMPILER],	[AC_DEFUN([_LT_AC_SYS_COMPILER])])
slouken@372
    70
m4_ifndef([_LT_AC_LOCK],		[AC_DEFUN([_LT_AC_LOCK])])
slouken@372
    71
m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE],	[AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
slouken@372
    72
m4_ifndef([_LT_AC_TRY_DLOPEN_SELF],	[AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
slouken@372
    73
m4_ifndef([AC_LIBTOOL_PROG_CC_C_O],	[AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
slouken@372
    74
m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
slouken@372
    75
m4_ifndef([AC_LIBTOOL_OBJDIR],		[AC_DEFUN([AC_LIBTOOL_OBJDIR])])
slouken@372
    76
m4_ifndef([AC_LTDL_OBJDIR],		[AC_DEFUN([AC_LTDL_OBJDIR])])
slouken@372
    77
m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
slouken@372
    78
m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP],	[AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
slouken@372
    79
m4_ifndef([AC_PATH_MAGIC],		[AC_DEFUN([AC_PATH_MAGIC])])
slouken@372
    80
m4_ifndef([AC_PROG_LD_GNU],		[AC_DEFUN([AC_PROG_LD_GNU])])
slouken@372
    81
m4_ifndef([AC_PROG_LD_RELOAD_FLAG],	[AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
slouken@372
    82
m4_ifndef([AC_DEPLIBS_CHECK_METHOD],	[AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
slouken@372
    83
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
slouken@372
    84
m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
slouken@372
    85
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
slouken@372
    86
m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS],	[AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
slouken@372
    87
m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP],	[AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
slouken@372
    88
m4_ifndef([LT_AC_PROG_EGREP],		[AC_DEFUN([LT_AC_PROG_EGREP])])
slouken@372
    89
m4_ifndef([LT_AC_PROG_SED],		[AC_DEFUN([LT_AC_PROG_SED])])
slouken@372
    90
m4_ifndef([_LT_CC_BASENAME],		[AC_DEFUN([_LT_CC_BASENAME])])
slouken@372
    91
m4_ifndef([_LT_COMPILER_BOILERPLATE],	[AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
slouken@372
    92
m4_ifndef([_LT_LINKER_BOILERPLATE],	[AC_DEFUN([_LT_LINKER_BOILERPLATE])])
slouken@372
    93
m4_ifndef([_AC_PROG_LIBTOOL],		[AC_DEFUN([_AC_PROG_LIBTOOL])])
slouken@372
    94
m4_ifndef([AC_LIBTOOL_SETUP],		[AC_DEFUN([AC_LIBTOOL_SETUP])])
slouken@372
    95
m4_ifndef([_LT_AC_CHECK_DLFCN],		[AC_DEFUN([_LT_AC_CHECK_DLFCN])])
slouken@372
    96
m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER],	[AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
slouken@372
    97
m4_ifndef([_LT_AC_TAGCONFIG],		[AC_DEFUN([_LT_AC_TAGCONFIG])])
slouken@372
    98
m4_ifndef([AC_DISABLE_FAST_INSTALL],	[AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
slouken@372
    99
m4_ifndef([_LT_AC_LANG_CXX],		[AC_DEFUN([_LT_AC_LANG_CXX])])
slouken@372
   100
m4_ifndef([_LT_AC_LANG_F77],		[AC_DEFUN([_LT_AC_LANG_F77])])
slouken@372
   101
m4_ifndef([_LT_AC_LANG_GCJ],		[AC_DEFUN([_LT_AC_LANG_GCJ])])
slouken@372
   102
m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG],	[AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
slouken@372
   103
m4_ifndef([_LT_AC_LANG_C_CONFIG],	[AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
slouken@372
   104
m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG],	[AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
slouken@372
   105
m4_ifndef([_LT_AC_LANG_CXX_CONFIG],	[AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
slouken@372
   106
m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG],	[AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
slouken@372
   107
m4_ifndef([_LT_AC_LANG_F77_CONFIG],	[AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
slouken@372
   108
m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG],	[AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
slouken@372
   109
m4_ifndef([_LT_AC_LANG_GCJ_CONFIG],	[AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
slouken@372
   110
m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG],	[AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
slouken@372
   111
m4_ifndef([_LT_AC_LANG_RC_CONFIG],	[AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
slouken@372
   112
m4_ifndef([AC_LIBTOOL_CONFIG],		[AC_DEFUN([AC_LIBTOOL_CONFIG])])
slouken@372
   113
m4_ifndef([_LT_AC_FILE_LTDLL_C],	[AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
slouken@372
   114
m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS],	[AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])])
slouken@372
   115
m4_ifndef([_LT_AC_PROG_CXXCPP],		[AC_DEFUN([_LT_AC_PROG_CXXCPP])])
slouken@372
   116
m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS],	[AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])])
slouken@372
   117
m4_ifndef([_LT_PROG_ECHO_BACKSLASH],	[AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])])
slouken@372
   118
m4_ifndef([_LT_PROG_F77],		[AC_DEFUN([_LT_PROG_F77])])
slouken@372
   119
m4_ifndef([_LT_PROG_FC],		[AC_DEFUN([_LT_PROG_FC])])
slouken@372
   120
m4_ifndef([_LT_PROG_CXX],		[AC_DEFUN([_LT_PROG_CXX])])
slouken@372
   121
slouken@357
   122
# Copyright (C) 2002-2013 Free Software Foundation, Inc.
slouken@285
   123
#
slouken@285
   124
# This file is free software; the Free Software Foundation
slouken@285
   125
# gives unlimited permission to copy and/or distribute it,
slouken@285
   126
# with or without modifications, as long as this notice is preserved.
slouken@285
   127
slouken@285
   128
# AM_AUTOMAKE_VERSION(VERSION)
slouken@285
   129
# ----------------------------
slouken@285
   130
# Automake X.Y traces this macro to ensure aclocal.m4 has been
slouken@285
   131
# generated from the m4 files accompanying Automake X.Y.
slouken@285
   132
# (This private macro should not be called outside this file.)
slouken@285
   133
AC_DEFUN([AM_AUTOMAKE_VERSION],
slouken@357
   134
[am__api_version='1.13'
slouken@285
   135
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
slouken@285
   136
dnl require some minimum version.  Point them to the right macro.
slouken@357
   137
m4_if([$1], [1.13.1], [],
slouken@285
   138
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
slouken@285
   139
])
slouken@285
   140
slouken@285
   141
# _AM_AUTOCONF_VERSION(VERSION)
slouken@285
   142
# -----------------------------
slouken@285
   143
# aclocal traces this macro to find the Autoconf version.
slouken@285
   144
# This is a private macro too.  Using m4_define simplifies
slouken@285
   145
# the logic in aclocal, which can simply ignore this definition.
slouken@285
   146
m4_define([_AM_AUTOCONF_VERSION], [])
slouken@285
   147
slouken@285
   148
# AM_SET_CURRENT_AUTOMAKE_VERSION
slouken@285
   149
# -------------------------------
slouken@285
   150
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
slouken@350
   151
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
slouken@285
   152
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
slouken@357
   153
[AM_AUTOMAKE_VERSION([1.13.1])dnl
slouken@350
   154
m4_ifndef([AC_AUTOCONF_VERSION],
slouken@350
   155
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
slouken@350
   156
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
slouken@285
   157
slouken@285
   158
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
slouken@285
   159
slouken@357
   160
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
slouken@285
   161
#
slouken@285
   162
# This file is free software; the Free Software Foundation
slouken@285
   163
# gives unlimited permission to copy and/or distribute it,
slouken@285
   164
# with or without modifications, as long as this notice is preserved.
slouken@285
   165
slouken@285
   166
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
slouken@357
   167
# $ac_aux_dir to '$srcdir/foo'.  In other projects, it is set to
slouken@357
   168
# '$srcdir', '$srcdir/..', or '$srcdir/../..'.
slouken@285
   169
#
slouken@285
   170
# Of course, Automake must honor this variable whenever it calls a
slouken@285
   171
# tool from the auxiliary directory.  The problem is that $srcdir (and
slouken@285
   172
# therefore $ac_aux_dir as well) can be either absolute or relative,
slouken@285
   173
# depending on how configure is run.  This is pretty annoying, since
slouken@285
   174
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
slouken@285
   175
# source directory, any form will work fine, but in subdirectories a
slouken@285
   176
# relative path needs to be adjusted first.
slouken@285
   177
#
slouken@285
   178
# $ac_aux_dir/missing
slouken@285
   179
#    fails when called from a subdirectory if $ac_aux_dir is relative
slouken@285
   180
# $top_srcdir/$ac_aux_dir/missing
slouken@285
   181
#    fails if $ac_aux_dir is absolute,
slouken@285
   182
#    fails when called from a subdirectory in a VPATH build with
slouken@285
   183
#          a relative $ac_aux_dir
slouken@285
   184
#
slouken@285
   185
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
slouken@285
   186
# are both prefixed by $srcdir.  In an in-source build this is usually
slouken@357
   187
# harmless because $srcdir is '.', but things will broke when you
slouken@285
   188
# start a VPATH build or use an absolute $srcdir.
slouken@285
   189
#
slouken@285
   190
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
slouken@285
   191
# iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
slouken@285
   192
#   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
slouken@285
   193
# and then we would define $MISSING as
slouken@285
   194
#   MISSING="\${SHELL} $am_aux_dir/missing"
slouken@285
   195
# This will work as long as MISSING is not called from configure, because
slouken@285
   196
# unfortunately $(top_srcdir) has no meaning in configure.
slouken@285
   197
# However there are other variables, like CC, which are often used in
slouken@285
   198
# configure, and could therefore not use this "fixed" $ac_aux_dir.
slouken@285
   199
#
slouken@285
   200
# Another solution, used here, is to always expand $ac_aux_dir to an
slouken@285
   201
# absolute PATH.  The drawback is that using absolute paths prevent a
slouken@285
   202
# configured tree to be moved without reconfiguration.
slouken@285
   203
slouken@285
   204
AC_DEFUN([AM_AUX_DIR_EXPAND],
slouken@285
   205
[dnl Rely on autoconf to set up CDPATH properly.
slouken@285
   206
AC_PREREQ([2.50])dnl
slouken@285
   207
# expand $ac_aux_dir to an absolute path
slouken@285
   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@357
   213
# Copyright (C) 1997-2013 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@357
   244
# Copyright (C) 1999-2013 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@357
   435
# Copyright (C) 1999-2013 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
slouken@285
   442
# _AM_OUTPUT_DEPENDENCY_COMMANDS
slouken@285
   443
# ------------------------------
slouken@285
   444
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
slouken@350
   445
[{
slouken@357
   446
  # Older Autoconf quotes --file arguments for eval, but not when files
slouken@350
   447
  # are listed without --file.  Let's play safe and only enable the eval
slouken@350
   448
  # if we detect the quoting.
slouken@350
   449
  case $CONFIG_FILES in
slouken@350
   450
  *\'*) eval set x "$CONFIG_FILES" ;;
slouken@350
   451
  *)   set x $CONFIG_FILES ;;
slouken@350
   452
  esac
slouken@350
   453
  shift
slouken@350
   454
  for mf
slouken@350
   455
  do
slouken@350
   456
    # Strip MF so we end up with the name of the file.
slouken@350
   457
    mf=`echo "$mf" | sed -e 's/:.*$//'`
slouken@350
   458
    # Check whether this is an Automake generated Makefile or not.
slouken@357
   459
    # We used to match only the files named 'Makefile.in', but
slouken@350
   460
    # some people rename them; so instead we look at the file content.
slouken@350
   461
    # Grep'ing the first line is not enough: some people post-process
slouken@350
   462
    # each Makefile.in and add a new line on top of each file to say so.
slouken@350
   463
    # Grep'ing the whole file is not good either: AIX grep has a line
slouken@350
   464
    # limit of 2048, but all sed's we know have understand at least 4000.
slouken@350
   465
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
slouken@350
   466
      dirpart=`AS_DIRNAME("$mf")`
slouken@350
   467
    else
slouken@350
   468
      continue
slouken@350
   469
    fi
slouken@350
   470
    # Extract the definition of DEPDIR, am__include, and am__quote
slouken@357
   471
    # from the Makefile without running 'make'.
slouken@350
   472
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
slouken@350
   473
    test -z "$DEPDIR" && continue
slouken@350
   474
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
slouken@350
   475
    test -z "am__include" && continue
slouken@350
   476
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
slouken@350
   477
    # Find all dependency output files, they are included files with
slouken@350
   478
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
slouken@350
   479
    # simplest approach to changing $(DEPDIR) to its actual value in the
slouken@350
   480
    # expansion.
slouken@350
   481
    for file in `sed -n "
slouken@350
   482
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
slouken@357
   483
	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
slouken@350
   484
      # Make sure the directory exists.
slouken@350
   485
      test -f "$dirpart/$file" && continue
slouken@350
   486
      fdir=`AS_DIRNAME(["$file"])`
slouken@350
   487
      AS_MKDIR_P([$dirpart/$fdir])
slouken@350
   488
      # echo "creating $dirpart/$file"
slouken@350
   489
      echo '# dummy' > "$dirpart/$file"
slouken@350
   490
    done
slouken@285
   491
  done
slouken@350
   492
}
slouken@285
   493
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
slouken@285
   494
slouken@285
   495
slouken@285
   496
# AM_OUTPUT_DEPENDENCY_COMMANDS
slouken@285
   497
# -----------------------------
slouken@285
   498
# This macro should only be invoked once -- use via AC_REQUIRE.
slouken@285
   499
#
slouken@285
   500
# This code is only required when automatic dependency tracking
slouken@357
   501
# is enabled.  FIXME.  This creates each '.P' file that we will
slouken@285
   502
# need in order to bootstrap the dependency handling code.
slouken@285
   503
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
slouken@285
   504
[AC_CONFIG_COMMANDS([depfiles],
slouken@285
   505
     [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
slouken@285
   506
     [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
slouken@285
   507
])
slouken@285
   508
slouken@285
   509
# Do all the work for Automake.                             -*- Autoconf -*-
slouken@285
   510
slouken@357
   511
# Copyright (C) 1996-2013 Free Software Foundation, Inc.
slouken@285
   512
#
slouken@285
   513
# This file is free software; the Free Software Foundation
slouken@285
   514
# gives unlimited permission to copy and/or distribute it,
slouken@285
   515
# with or without modifications, as long as this notice is preserved.
slouken@285
   516
slouken@285
   517
# This macro actually does too much.  Some checks are only needed if
slouken@285
   518
# your package does certain things.  But this isn't really a big deal.
slouken@285
   519
slouken@285
   520
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
slouken@285
   521
# AM_INIT_AUTOMAKE([OPTIONS])
slouken@285
   522
# -----------------------------------------------
slouken@285
   523
# The call with PACKAGE and VERSION arguments is the old style
slouken@285
   524
# call (pre autoconf-2.50), which is being phased out.  PACKAGE
slouken@285
   525
# and VERSION should now be passed to AC_INIT and removed from
slouken@285
   526
# the call to AM_INIT_AUTOMAKE.
slouken@285
   527
# We support both call styles for the transition.  After
slouken@285
   528
# the next Automake release, Autoconf can make the AC_INIT
slouken@285
   529
# arguments mandatory, and then we can depend on a new Autoconf
slouken@285
   530
# release and drop the old call support.
slouken@285
   531
AC_DEFUN([AM_INIT_AUTOMAKE],
slouken@357
   532
[AC_PREREQ([2.65])dnl
slouken@285
   533
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
slouken@285
   534
dnl the ones we care about.
slouken@285
   535
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
slouken@285
   536
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
slouken@285
   537
AC_REQUIRE([AC_PROG_INSTALL])dnl
slouken@285
   538
if test "`cd $srcdir && pwd`" != "`pwd`"; then
slouken@285
   539
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
slouken@285
   540
  # is not polluted with repeated "-I."
slouken@285
   541
  AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
slouken@285
   542
  # test to see if srcdir already configured
slouken@285
   543
  if test -f $srcdir/config.status; then
slouken@285
   544
    AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
slouken@285
   545
  fi
slouken@285
   546
fi
slouken@285
   547
slouken@285
   548
# test whether we have cygpath
slouken@285
   549
if test -z "$CYGPATH_W"; then
slouken@285
   550
  if (cygpath --version) >/dev/null 2>/dev/null; then
slouken@285
   551
    CYGPATH_W='cygpath -w'
slouken@285
   552
  else
slouken@285
   553
    CYGPATH_W=echo
slouken@285
   554
  fi
slouken@285
   555
fi
slouken@285
   556
AC_SUBST([CYGPATH_W])
slouken@285
   557
slouken@285
   558
# Define the identity of the package.
slouken@285
   559
dnl Distinguish between old-style and new-style calls.
slouken@285
   560
m4_ifval([$2],
slouken@357
   561
[AC_DIAGNOSE([obsolete],
slouken@357
   562
             [$0: two- and three-arguments forms are deprecated.])
slouken@357
   563
m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
slouken@285
   564
 AC_SUBST([PACKAGE], [$1])dnl
slouken@285
   565
 AC_SUBST([VERSION], [$2])],
slouken@285
   566
[_AM_SET_OPTIONS([$1])dnl
slouken@285
   567
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
slouken@357
   568
m4_if(
slouken@357
   569
  m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
slouken@357
   570
  [ok:ok],,
slouken@285
   571
  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
slouken@285
   572
 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
slouken@285
   573
 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
slouken@285
   574
slouken@285
   575
_AM_IF_OPTION([no-define],,
slouken@357
   576
[AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
slouken@357
   577
 AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
slouken@285
   578
slouken@285
   579
# Some tools Automake needs.
slouken@285
   580
AC_REQUIRE([AM_SANITY_CHECK])dnl
slouken@285
   581
AC_REQUIRE([AC_ARG_PROGRAM])dnl
slouken@357
   582
AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
slouken@357
   583
AM_MISSING_PROG([AUTOCONF], [autoconf])
slouken@357
   584
AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
slouken@357
   585
AM_MISSING_PROG([AUTOHEADER], [autoheader])
slouken@357
   586
AM_MISSING_PROG([MAKEINFO], [makeinfo])
slouken@350
   587
AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
slouken@350
   588
AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
slouken@357
   589
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
slouken@357
   590
# For better backward compatibility.  To be removed once Automake 1.9.x
slouken@357
   591
# dies out for good.  For more background, see:
slouken@357
   592
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
slouken@357
   593
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
slouken@357
   594
AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
slouken@285
   595
# We need awk for the "check" target.  The system "awk" is bad on
slouken@285
   596
# some platforms.
slouken@285
   597
AC_REQUIRE([AC_PROG_AWK])dnl
slouken@285
   598
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
slouken@285
   599
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
slouken@285
   600
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
slouken@350
   601
	      [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
slouken@350
   602
			     [_AM_PROG_TAR([v7])])])
slouken@285
   603
_AM_IF_OPTION([no-dependencies],,
slouken@285
   604
[AC_PROVIDE_IFELSE([AC_PROG_CC],
slouken@357
   605
		  [_AM_DEPENDENCIES([CC])],
slouken@357
   606
		  [m4_define([AC_PROG_CC],
slouken@357
   607
			     m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
slouken@285
   608
AC_PROVIDE_IFELSE([AC_PROG_CXX],
slouken@357
   609
		  [_AM_DEPENDENCIES([CXX])],
slouken@357
   610
		  [m4_define([AC_PROG_CXX],
slouken@357
   611
			     m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
slouken@285
   612
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
slouken@357
   613
		  [_AM_DEPENDENCIES([OBJC])],
slouken@357
   614
		  [m4_define([AC_PROG_OBJC],
slouken@357
   615
			     m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
slouken@357
   616
AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
slouken@357
   617
		  [_AM_DEPENDENCIES([OBJCXX])],
slouken@357
   618
		  [m4_define([AC_PROG_OBJCXX],
slouken@357
   619
			     m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
slouken@285
   620
])
slouken@357
   621
AC_REQUIRE([AM_SILENT_RULES])dnl
slouken@357
   622
dnl The testsuite driver may need to know about EXEEXT, so add the
slouken@357
   623
dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This
slouken@357
   624
dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
slouken@350
   625
AC_CONFIG_COMMANDS_PRE(dnl
slouken@350
   626
[m4_provide_if([_AM_COMPILER_EXEEXT],
slouken@350
   627
  [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
slouken@285
   628
])
slouken@285
   629
slouken@357
   630
dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
slouken@350
   631
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
slouken@350
   632
dnl mangled by Autoconf and run in a shell conditional statement.
slouken@350
   633
m4_define([_AC_COMPILER_EXEEXT],
slouken@350
   634
m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
slouken@350
   635
slouken@285
   636
slouken@285
   637
# When config.status generates a header, we must update the stamp-h file.
slouken@285
   638
# This file resides in the same directory as the config header
slouken@285
   639
# that is generated.  The stamp files are numbered to have different names.
slouken@285
   640
slouken@285
   641
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
slouken@285
   642
# loop where config.status creates the headers, so we can generate
slouken@285
   643
# our stamp files there.
slouken@285
   644
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
slouken@285
   645
[# Compute $1's index in $config_headers.
slouken@350
   646
_am_arg=$1
slouken@285
   647
_am_stamp_count=1
slouken@285
   648
for _am_header in $config_headers :; do
slouken@285
   649
  case $_am_header in
slouken@350
   650
    $_am_arg | $_am_arg:* )
slouken@285
   651
      break ;;
slouken@285
   652
    * )
slouken@285
   653
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
slouken@285
   654
  esac
slouken@285
   655
done
slouken@350
   656
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
slouken@285
   657
slouken@357
   658
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
slouken@285
   659
#
slouken@285
   660
# This file is free software; the Free Software Foundation
slouken@285
   661
# gives unlimited permission to copy and/or distribute it,
slouken@285
   662
# with or without modifications, as long as this notice is preserved.
slouken@285
   663
slouken@285
   664
# AM_PROG_INSTALL_SH
slouken@285
   665
# ------------------
slouken@285
   666
# Define $install_sh.
slouken@285
   667
AC_DEFUN([AM_PROG_INSTALL_SH],
slouken@285
   668
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
slouken@350
   669
if test x"${install_sh}" != xset; then
slouken@350
   670
  case $am_aux_dir in
slouken@350
   671
  *\ * | *\	*)
slouken@350
   672
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
slouken@350
   673
  *)
slouken@350
   674
    install_sh="\${SHELL} $am_aux_dir/install-sh"
slouken@350
   675
  esac
slouken@350
   676
fi
slouken@357
   677
AC_SUBST([install_sh])])
slouken@285
   678
slouken@357
   679
# Copyright (C) 2003-2013 Free Software Foundation, Inc.
slouken@285
   680
#
slouken@285
   681
# This file is free software; the Free Software Foundation
slouken@285
   682
# gives unlimited permission to copy and/or distribute it,
slouken@285
   683
# with or without modifications, as long as this notice is preserved.
slouken@285
   684
slouken@285
   685
# Check whether the underlying file-system supports filenames
slouken@285
   686
# with a leading dot.  For instance MS-DOS doesn't.
slouken@285
   687
AC_DEFUN([AM_SET_LEADING_DOT],
slouken@285
   688
[rm -rf .tst 2>/dev/null
slouken@285
   689
mkdir .tst 2>/dev/null
slouken@285
   690
if test -d .tst; then
slouken@285
   691
  am__leading_dot=.
slouken@285
   692
else
slouken@285
   693
  am__leading_dot=_
slouken@285
   694
fi
slouken@285
   695
rmdir .tst 2>/dev/null
slouken@285
   696
AC_SUBST([am__leading_dot])])
slouken@285
   697
slouken@285
   698
# Check to see how 'make' treats includes.	            -*- Autoconf -*-
slouken@285
   699
slouken@357
   700
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
slouken@285
   701
#
slouken@285
   702
# This file is free software; the Free Software Foundation
slouken@285
   703
# gives unlimited permission to copy and/or distribute it,
slouken@285
   704
# with or without modifications, as long as this notice is preserved.
slouken@285
   705
slouken@285
   706
# AM_MAKE_INCLUDE()
slouken@285
   707
# -----------------
slouken@285
   708
# Check to see how make treats includes.
slouken@285
   709
AC_DEFUN([AM_MAKE_INCLUDE],
slouken@285
   710
[am_make=${MAKE-make}
slouken@285
   711
cat > confinc << 'END'
slouken@285
   712
am__doit:
slouken@350
   713
	@echo this is the am__doit target
slouken@285
   714
.PHONY: am__doit
slouken@285
   715
END
slouken@285
   716
# If we don't find an include directive, just comment out the code.
slouken@285
   717
AC_MSG_CHECKING([for style of include used by $am_make])
slouken@285
   718
am__include="#"
slouken@285
   719
am__quote=
slouken@285
   720
_am_result=none
slouken@285
   721
# First try GNU make style include.
slouken@285
   722
echo "include confinc" > confmf
slouken@357
   723
# Ignore all kinds of additional output from 'make'.
slouken@350
   724
case `$am_make -s -f confmf 2> /dev/null` in #(
slouken@350
   725
*the\ am__doit\ target*)
slouken@350
   726
  am__include=include
slouken@350
   727
  am__quote=
slouken@350
   728
  _am_result=GNU
slouken@350
   729
  ;;
slouken@350
   730
esac
slouken@285
   731
# Now try BSD make style include.
slouken@285
   732
if test "$am__include" = "#"; then
slouken@285
   733
   echo '.include "confinc"' > confmf
slouken@350
   734
   case `$am_make -s -f confmf 2> /dev/null` in #(
slouken@350
   735
   *the\ am__doit\ target*)
slouken@350
   736
     am__include=.include
slouken@350
   737
     am__quote="\""
slouken@350
   738
     _am_result=BSD
slouken@350
   739
     ;;
slouken@350
   740
   esac
slouken@285
   741
fi
slouken@285
   742
AC_SUBST([am__include])
slouken@285
   743
AC_SUBST([am__quote])
slouken@285
   744
AC_MSG_RESULT([$_am_result])
slouken@285
   745
rm -f confinc confmf
slouken@285
   746
])
slouken@285
   747
slouken@285
   748
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
slouken@285
   749
slouken@357
   750
# Copyright (C) 1997-2013 Free Software Foundation, Inc.
slouken@285
   751
#
slouken@285
   752
# This file is free software; the Free Software Foundation
slouken@285
   753
# gives unlimited permission to copy and/or distribute it,
slouken@285
   754
# with or without modifications, as long as this notice is preserved.
slouken@285
   755
slouken@285
   756
# AM_MISSING_PROG(NAME, PROGRAM)
slouken@285
   757
# ------------------------------
slouken@285
   758
AC_DEFUN([AM_MISSING_PROG],
slouken@285
   759
[AC_REQUIRE([AM_MISSING_HAS_RUN])
slouken@285
   760
$1=${$1-"${am_missing_run}$2"}
slouken@285
   761
AC_SUBST($1)])
slouken@285
   762
slouken@285
   763
# AM_MISSING_HAS_RUN
slouken@285
   764
# ------------------
slouken@357
   765
# Define MISSING if not defined so far and test if it is modern enough.
slouken@357
   766
# If it is, set am_missing_run to use it, otherwise, to nothing.
slouken@285
   767
AC_DEFUN([AM_MISSING_HAS_RUN],
slouken@285
   768
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
slouken@285
   769
AC_REQUIRE_AUX_FILE([missing])dnl
slouken@350
   770
if test x"${MISSING+set}" != xset; then
slouken@350
   771
  case $am_aux_dir in
slouken@350
   772
  *\ * | *\	*)
slouken@350
   773
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
slouken@350
   774
  *)
slouken@350
   775
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
slouken@350
   776
  esac
slouken@350
   777
fi
slouken@285
   778
# Use eval to expand $SHELL
slouken@357
   779
if eval "$MISSING --is-lightweight"; then
slouken@357
   780
  am_missing_run="$MISSING "
slouken@285
   781
else
slouken@285
   782
  am_missing_run=
slouken@357
   783
  AC_MSG_WARN(['missing' script is too old or missing])
slouken@285
   784
fi
slouken@285
   785
])
slouken@285
   786
slouken@357
   787
# Helper functions for option handling.                     -*- Autoconf -*-
slouken@357
   788
slouken@357
   789
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
slouken@285
   790
#
slouken@285
   791
# This file is free software; the Free Software Foundation
slouken@285
   792
# gives unlimited permission to copy and/or distribute it,
slouken@285
   793
# with or without modifications, as long as this notice is preserved.
slouken@285
   794
slouken@285
   795
# _AM_MANGLE_OPTION(NAME)
slouken@285
   796
# -----------------------
slouken@285
   797
AC_DEFUN([_AM_MANGLE_OPTION],
slouken@285
   798
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
slouken@285
   799
slouken@285
   800
# _AM_SET_OPTION(NAME)
slouken@350
   801
# --------------------
slouken@285
   802
# Set option NAME.  Presently that only means defining a flag for this option.
slouken@285
   803
AC_DEFUN([_AM_SET_OPTION],
slouken@357
   804
[m4_define(_AM_MANGLE_OPTION([$1]), [1])])
slouken@285
   805
slouken@285
   806
# _AM_SET_OPTIONS(OPTIONS)
slouken@350
   807
# ------------------------
slouken@285
   808
# OPTIONS is a space-separated list of Automake options.
slouken@285
   809
AC_DEFUN([_AM_SET_OPTIONS],
slouken@350
   810
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
slouken@285
   811
slouken@285
   812
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
slouken@285
   813
# -------------------------------------------
slouken@285
   814
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
slouken@285
   815
AC_DEFUN([_AM_IF_OPTION],
slouken@285
   816
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
slouken@285
   817
slouken@285
   818
# Check to make sure that the build environment is sane.    -*- Autoconf -*-
slouken@285
   819
slouken@357
   820
# Copyright (C) 1996-2013 Free Software Foundation, Inc.
slouken@285
   821
#
slouken@285
   822
# This file is free software; the Free Software Foundation
slouken@285
   823
# gives unlimited permission to copy and/or distribute it,
slouken@285
   824
# with or without modifications, as long as this notice is preserved.
slouken@285
   825
slouken@285
   826
# AM_SANITY_CHECK
slouken@285
   827
# ---------------
slouken@285
   828
AC_DEFUN([AM_SANITY_CHECK],
slouken@285
   829
[AC_MSG_CHECKING([whether build environment is sane])
slouken@350
   830
# Reject unsafe characters in $srcdir or the absolute working directory
slouken@350
   831
# name.  Accept space and tab only in the latter.
slouken@350
   832
am_lf='
slouken@350
   833
'
slouken@350
   834
case `pwd` in
slouken@350
   835
  *[[\\\"\#\$\&\'\`$am_lf]]*)
slouken@350
   836
    AC_MSG_ERROR([unsafe absolute working directory name]);;
slouken@350
   837
esac
slouken@350
   838
case $srcdir in
slouken@350
   839
  *[[\\\"\#\$\&\'\`$am_lf\ \	]]*)
slouken@357
   840
    AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
slouken@350
   841
esac
slouken@350
   842
slouken@357
   843
# Do 'set' in a subshell so we don't clobber the current shell's
slouken@285
   844
# arguments.  Must try -L first in case configure is actually a
slouken@285
   845
# symlink; some systems play weird games with the mod time of symlinks
slouken@285
   846
# (eg FreeBSD returns the mod time of the symlink's containing
slouken@285
   847
# directory).
slouken@285
   848
if (
slouken@357
   849
   am_has_slept=no
slouken@357
   850
   for am_try in 1 2; do
slouken@357
   851
     echo "timestamp, slept: $am_has_slept" > conftest.file
slouken@357
   852
     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
slouken@357
   853
     if test "$[*]" = "X"; then
slouken@357
   854
	# -L didn't work.
slouken@357
   855
	set X `ls -t "$srcdir/configure" conftest.file`
slouken@357
   856
     fi
slouken@357
   857
     if test "$[*]" != "X $srcdir/configure conftest.file" \
slouken@357
   858
	&& test "$[*]" != "X conftest.file $srcdir/configure"; then
slouken@285
   859
slouken@357
   860
	# If neither matched, then we have a broken ls.  This can happen
slouken@357
   861
	# if, for instance, CONFIG_SHELL is bash and it inherits a
slouken@357
   862
	# broken ls alias from the environment.  This has actually
slouken@357
   863
	# happened.  Such a system could not be considered "sane".
slouken@357
   864
	AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
slouken@357
   865
  alias in your environment])
slouken@357
   866
     fi
slouken@357
   867
     if test "$[2]" = conftest.file || test $am_try -eq 2; then
slouken@357
   868
       break
slouken@357
   869
     fi
slouken@357
   870
     # Just in case.
slouken@357
   871
     sleep 1
slouken@357
   872
     am_has_slept=yes
slouken@357
   873
   done
slouken@285
   874
   test "$[2]" = conftest.file
slouken@285
   875
   )
slouken@285
   876
then
slouken@285
   877
   # Ok.
slouken@285
   878
   :
slouken@285
   879
else
slouken@285
   880
   AC_MSG_ERROR([newly created file is older than distributed files!
slouken@285
   881
Check your system clock])
slouken@285
   882
fi
slouken@357
   883
AC_MSG_RESULT([yes])
slouken@357
   884
# If we didn't sleep, we still need to ensure time stamps of config.status and
slouken@357
   885
# generated files are strictly newer.
slouken@357
   886
am_sleep_pid=
slouken@357
   887
if grep 'slept: no' conftest.file >/dev/null 2>&1; then
slouken@357
   888
  ( sleep 1 ) &
slouken@357
   889
  am_sleep_pid=$!
slouken@357
   890
fi
slouken@357
   891
AC_CONFIG_COMMANDS_PRE(
slouken@357
   892
  [AC_MSG_CHECKING([that generated files are newer than configure])
slouken@357
   893
   if test -n "$am_sleep_pid"; then
slouken@357
   894
     # Hide warnings about reused PIDs.
slouken@357
   895
     wait $am_sleep_pid 2>/dev/null
slouken@357
   896
   fi
slouken@357
   897
   AC_MSG_RESULT([done])])
slouken@357
   898
rm -f conftest.file
slouken@357
   899
])
slouken@285
   900
slouken@357
   901
# Copyright (C) 2009-2013 Free Software Foundation, Inc.
slouken@285
   902
#
slouken@285
   903
# This file is free software; the Free Software Foundation
slouken@285
   904
# gives unlimited permission to copy and/or distribute it,
slouken@285
   905
# with or without modifications, as long as this notice is preserved.
slouken@285
   906
slouken@357
   907
# AM_SILENT_RULES([DEFAULT])
slouken@357
   908
# --------------------------
slouken@357
   909
# Enable less verbose build rules; with the default set to DEFAULT
slouken@357
   910
# ("yes" being less verbose, "no" or empty being verbose).
slouken@357
   911
AC_DEFUN([AM_SILENT_RULES],
slouken@357
   912
[AC_ARG_ENABLE([silent-rules], [dnl
slouken@357
   913
AS_HELP_STRING(
slouken@357
   914
  [--enable-silent-rules],
slouken@357
   915
  [less verbose build output (undo: "make V=1")])
slouken@357
   916
AS_HELP_STRING(
slouken@357
   917
  [--disable-silent-rules],
slouken@357
   918
  [verbose build output (undo: "make V=0")])dnl
slouken@357
   919
])
slouken@357
   920
case $enable_silent_rules in @%:@ (((
slouken@357
   921
  yes) AM_DEFAULT_VERBOSITY=0;;
slouken@357
   922
   no) AM_DEFAULT_VERBOSITY=1;;
slouken@357
   923
    *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
slouken@357
   924
esac
slouken@357
   925
dnl
slouken@357
   926
dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
slouken@357
   927
dnl do not support nested variable expansions.
slouken@357
   928
dnl See automake bug#9928 and bug#10237.
slouken@357
   929
am_make=${MAKE-make}
slouken@357
   930
AC_CACHE_CHECK([whether $am_make supports nested variables],
slouken@357
   931
   [am_cv_make_support_nested_variables],
slouken@357
   932
   [if AS_ECHO([['TRUE=$(BAR$(V))
slouken@357
   933
BAR0=false
slouken@357
   934
BAR1=true
slouken@357
   935
V=1
slouken@357
   936
am__doit:
slouken@357
   937
	@$(TRUE)
slouken@357
   938
.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
slouken@357
   939
  am_cv_make_support_nested_variables=yes
slouken@357
   940
else
slouken@357
   941
  am_cv_make_support_nested_variables=no
slouken@357
   942
fi])
slouken@357
   943
if test $am_cv_make_support_nested_variables = yes; then
slouken@357
   944
  dnl Using '$V' instead of '$(V)' breaks IRIX make.
slouken@357
   945
  AM_V='$(V)'
slouken@357
   946
  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
slouken@357
   947
else
slouken@357
   948
  AM_V=$AM_DEFAULT_VERBOSITY
slouken@357
   949
  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
slouken@357
   950
fi
slouken@357
   951
AC_SUBST([AM_V])dnl
slouken@357
   952
AM_SUBST_NOTMAKE([AM_V])dnl
slouken@357
   953
AC_SUBST([AM_DEFAULT_V])dnl
slouken@357
   954
AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
slouken@357
   955
AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
slouken@357
   956
AM_BACKSLASH='\'
slouken@357
   957
AC_SUBST([AM_BACKSLASH])dnl
slouken@357
   958
_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
slouken@357
   959
])
slouken@357
   960
slouken@357
   961
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
slouken@357
   962
#
slouken@357
   963
# This file is free software; the Free Software Foundation
slouken@357
   964
# gives unlimited permission to copy and/or distribute it,
slouken@357
   965
# with or without modifications, as long as this notice is preserved.
slouken@350
   966
slouken@285
   967
# AM_PROG_INSTALL_STRIP
slouken@285
   968
# ---------------------
slouken@357
   969
# One issue with vendor 'install' (even GNU) is that you can't
slouken@285
   970
# specify the program used to strip binaries.  This is especially
slouken@285
   971
# annoying in cross-compiling environments, where the build's strip
slouken@285
   972
# is unlikely to handle the host's binaries.
slouken@285
   973
# Fortunately install-sh will honor a STRIPPROG variable, so we
slouken@357
   974
# always use install-sh in "make install-strip", and initialize
slouken@285
   975
# STRIPPROG with the value of the STRIP variable (set by the user).
slouken@285
   976
AC_DEFUN([AM_PROG_INSTALL_STRIP],
slouken@285
   977
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
slouken@357
   978
# Installed binaries are usually stripped using 'strip' when the user
slouken@357
   979
# run "make install-strip".  However 'strip' might not be the right
slouken@285
   980
# tool to use in cross-compilation environments, therefore Automake
slouken@357
   981
# will honor the 'STRIP' environment variable to overrule this program.
slouken@357
   982
dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
slouken@285
   983
if test "$cross_compiling" != no; then
slouken@285
   984
  AC_CHECK_TOOL([STRIP], [strip], :)
slouken@285
   985
fi
slouken@285
   986
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
slouken@285
   987
AC_SUBST([INSTALL_STRIP_PROGRAM])])
slouken@285
   988
slouken@357
   989
# Copyright (C) 2006-2013 Free Software Foundation, Inc.
slouken@285
   990
#
slouken@285
   991
# This file is free software; the Free Software Foundation
slouken@285
   992
# gives unlimited permission to copy and/or distribute it,
slouken@285
   993
# with or without modifications, as long as this notice is preserved.
slouken@285
   994
slouken@285
   995
# _AM_SUBST_NOTMAKE(VARIABLE)
slouken@285
   996
# ---------------------------
slouken@350
   997
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
slouken@285
   998
# This macro is traced by Automake.
slouken@285
   999
AC_DEFUN([_AM_SUBST_NOTMAKE])
slouken@285
  1000
slouken@350
  1001
# AM_SUBST_NOTMAKE(VARIABLE)
slouken@350
  1002
# --------------------------
slouken@350
  1003
# Public sister of _AM_SUBST_NOTMAKE.
slouken@350
  1004
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
slouken@350
  1005
slouken@285
  1006
# Check how to create a tarball.                            -*- Autoconf -*-
slouken@285
  1007
slouken@357
  1008
# Copyright (C) 2004-2013 Free Software Foundation, Inc.
slouken@285
  1009
#
slouken@285
  1010
# This file is free software; the Free Software Foundation
slouken@285
  1011
# gives unlimited permission to copy and/or distribute it,
slouken@285
  1012
# with or without modifications, as long as this notice is preserved.
slouken@285
  1013
slouken@285
  1014
# _AM_PROG_TAR(FORMAT)
slouken@285
  1015
# --------------------
slouken@285
  1016
# Check how to create a tarball in format FORMAT.
slouken@357
  1017
# FORMAT should be one of 'v7', 'ustar', or 'pax'.
slouken@285
  1018
#
slouken@285
  1019
# Substitute a variable $(am__tar) that is a command
slouken@285
  1020
# writing to stdout a FORMAT-tarball containing the directory
slouken@285
  1021
# $tardir.
slouken@285
  1022
#     tardir=directory && $(am__tar) > result.tar
slouken@285
  1023
#
slouken@285
  1024
# Substitute a variable $(am__untar) that extract such
slouken@285
  1025
# a tarball read from stdin.
slouken@285
  1026
#     $(am__untar) < result.tar
slouken@285
  1027
AC_DEFUN([_AM_PROG_TAR],
slouken@350
  1028
[# Always define AMTAR for backward compatibility.  Yes, it's still used
slouken@350
  1029
# in the wild :-(  We should find a proper way to deprecate it ...
slouken@350
  1030
AC_SUBST([AMTAR], ['$${TAR-tar}'])
slouken@285
  1031
m4_if([$1], [v7],
slouken@350
  1032
     [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
slouken@285
  1033
     [m4_case([$1], [ustar],, [pax],,
slouken@285
  1034
              [m4_fatal([Unknown tar format])])
slouken@285
  1035
AC_MSG_CHECKING([how to create a $1 tar archive])
slouken@285
  1036
# Loop over all known methods to create a tar archive until one works.
slouken@285
  1037
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
slouken@285
  1038
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
slouken@285
  1039
# Do not fold the above two line into one, because Tru64 sh and
slouken@357
  1040
# Solaris sh will not grok spaces in the rhs of '-'.
slouken@285
  1041
for _am_tool in $_am_tools
slouken@285
  1042
do
slouken@285
  1043
  case $_am_tool in
slouken@285
  1044
  gnutar)
slouken@285
  1045
    for _am_tar in tar gnutar gtar;
slouken@285
  1046
    do
slouken@285
  1047
      AM_RUN_LOG([$_am_tar --version]) && break
slouken@285
  1048
    done
slouken@285
  1049
    am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
slouken@285
  1050
    am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
slouken@285
  1051
    am__untar="$_am_tar -xf -"
slouken@285
  1052
    ;;
slouken@285
  1053
  plaintar)
slouken@285
  1054
    # Must skip GNU tar: if it does not support --format= it doesn't create
slouken@285
  1055
    # ustar tarball either.
slouken@285
  1056
    (tar --version) >/dev/null 2>&1 && continue
slouken@285
  1057
    am__tar='tar chf - "$$tardir"'
slouken@285
  1058
    am__tar_='tar chf - "$tardir"'
slouken@285
  1059
    am__untar='tar xf -'
slouken@285
  1060
    ;;
slouken@285
  1061
  pax)
slouken@285
  1062
    am__tar='pax -L -x $1 -w "$$tardir"'
slouken@285
  1063
    am__tar_='pax -L -x $1 -w "$tardir"'
slouken@285
  1064
    am__untar='pax -r'
slouken@285
  1065
    ;;
slouken@285
  1066
  cpio)
slouken@285
  1067
    am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
slouken@285
  1068
    am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
slouken@285
  1069
    am__untar='cpio -i -H $1 -d'
slouken@285
  1070
    ;;
slouken@285
  1071
  none)
slouken@285
  1072
    am__tar=false
slouken@285
  1073
    am__tar_=false
slouken@285
  1074
    am__untar=false
slouken@285
  1075
    ;;
slouken@285
  1076
  esac
slouken@285
  1077
slouken@285
  1078
  # If the value was cached, stop now.  We just wanted to have am__tar
slouken@285
  1079
  # and am__untar set.
slouken@285
  1080
  test -n "${am_cv_prog_tar_$1}" && break
slouken@285
  1081
slouken@285
  1082
  # tar/untar a dummy directory, and stop if the command works
slouken@285
  1083
  rm -rf conftest.dir
slouken@285
  1084
  mkdir conftest.dir
slouken@285
  1085
  echo GrepMe > conftest.dir/file
slouken@285
  1086
  AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
slouken@285
  1087
  rm -rf conftest.dir
slouken@285
  1088
  if test -s conftest.tar; then
slouken@285
  1089
    AM_RUN_LOG([$am__untar <conftest.tar])
slouken@285
  1090
    grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
slouken@285
  1091
  fi
slouken@285
  1092
done
slouken@285
  1093
rm -rf conftest.dir
slouken@285
  1094
slouken@285
  1095
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
slouken@285
  1096
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
slouken@285
  1097
AC_SUBST([am__tar])
slouken@285
  1098
AC_SUBST([am__untar])
slouken@285
  1099
]) # _AM_PROG_TAR
slouken@285
  1100
slouken@285
  1101
m4_include([acinclude/libtool.m4])
slouken@285
  1102
m4_include([acinclude/ltoptions.m4])
slouken@285
  1103
m4_include([acinclude/ltsugar.m4])
slouken@285
  1104
m4_include([acinclude/ltversion.m4])
slouken@285
  1105
m4_include([acinclude/lt~obsolete.m4])
slouken@285
  1106
m4_include([acinclude/pkg.m4])
slouken@320
  1107
m4_include([acinclude/sdl2.m4])