annotate src/libsndfile-1.0.25/aclocal.m4 @ 20:ab7c38c4c577

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