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