annotate src/libsndfile-1.0.27/aclocal.m4 @ 152:ffc6df9c760c

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