annotate src/libsamplerate-0.1.9/aclocal.m4 @ 169:223a55898ab9 tip default

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