Chris@0: # generated automatically by aclocal 1.11.1 -*- Autoconf -*- Chris@0: Chris@0: # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, Chris@0: # 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. Chris@0: # This file is free software; the Free Software Foundation Chris@0: # gives unlimited permission to copy and/or distribute it, Chris@0: # with or without modifications, as long as this notice is preserved. Chris@0: Chris@0: # This program is distributed in the hope that it will be useful, Chris@0: # but WITHOUT ANY WARRANTY, to the extent permitted by law; without Chris@0: # even the implied warranty of MERCHANTABILITY or FITNESS FOR A Chris@0: # PARTICULAR PURPOSE. Chris@0: Chris@0: m4_ifndef([AC_AUTOCONF_VERSION], Chris@0: [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl Chris@0: m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.68],, Chris@0: [m4_warning([this file was generated for autoconf 2.68. Chris@0: You have another version of autoconf. It may work, but is not guaranteed to. Chris@0: If you have problems, you may need to regenerate the build system entirely. Chris@0: To do so, use the procedure documented by the package, typically `autoreconf'.])]) Chris@0: Chris@0: # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- Chris@0: # serial 1 (pkg-config-0.24) Chris@0: # Chris@0: # Copyright © 2004 Scott James Remnant . Chris@0: # Chris@0: # This program is free software; you can redistribute it and/or modify Chris@0: # it under the terms of the GNU General Public License as published by Chris@0: # the Free Software Foundation; either version 2 of the License, or Chris@0: # (at your option) any later version. Chris@0: # Chris@0: # This program is distributed in the hope that it will be useful, but Chris@0: # WITHOUT ANY WARRANTY; without even the implied warranty of Chris@0: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Chris@0: # General Public License for more details. Chris@0: # Chris@0: # You should have received a copy of the GNU General Public License Chris@0: # along with this program; if not, write to the Free Software Chris@0: # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. Chris@0: # Chris@0: # As a special exception to the GNU General Public License, if you Chris@0: # distribute this file as part of a program that contains a Chris@0: # configuration script generated by Autoconf, you may include it under Chris@0: # the same distribution terms that you use for the rest of that program. Chris@0: Chris@0: # PKG_PROG_PKG_CONFIG([MIN-VERSION]) Chris@0: # ---------------------------------- Chris@0: AC_DEFUN([PKG_PROG_PKG_CONFIG], Chris@0: [m4_pattern_forbid([^_?PKG_[A-Z_]+$]) Chris@0: m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$]) Chris@0: m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$]) Chris@0: AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility]) Chris@0: AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path]) Chris@0: AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path]) Chris@0: Chris@0: if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then Chris@0: AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) Chris@0: fi Chris@0: if test -n "$PKG_CONFIG"; then Chris@0: _pkg_min_version=m4_default([$1], [0.9.0]) Chris@0: AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version]) Chris@0: if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then Chris@0: AC_MSG_RESULT([yes]) Chris@0: else Chris@0: AC_MSG_RESULT([no]) Chris@0: PKG_CONFIG="" Chris@0: fi Chris@0: fi[]dnl Chris@0: ])# PKG_PROG_PKG_CONFIG Chris@0: Chris@0: # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) Chris@0: # Chris@0: # Check to see whether a particular set of modules exists. Similar Chris@0: # to PKG_CHECK_MODULES(), but does not set variables or print errors. Chris@0: # Chris@0: # Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG]) Chris@0: # only at the first occurence in configure.ac, so if the first place Chris@0: # it's called might be skipped (such as if it is within an "if", you Chris@0: # have to call PKG_CHECK_EXISTS manually Chris@0: # -------------------------------------------------------------- Chris@0: AC_DEFUN([PKG_CHECK_EXISTS], Chris@0: [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl Chris@0: if test -n "$PKG_CONFIG" && \ Chris@0: AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then Chris@0: m4_default([$2], [:]) Chris@0: m4_ifvaln([$3], [else Chris@0: $3])dnl Chris@0: fi]) Chris@0: Chris@0: # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) Chris@0: # --------------------------------------------- Chris@0: m4_define([_PKG_CONFIG], Chris@0: [if test -n "$$1"; then Chris@0: pkg_cv_[]$1="$$1" Chris@0: elif test -n "$PKG_CONFIG"; then Chris@0: PKG_CHECK_EXISTS([$3], Chris@0: [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null` Chris@0: test "x$?" != "x0" && pkg_failed=yes ], Chris@0: [pkg_failed=yes]) Chris@0: else Chris@0: pkg_failed=untried Chris@0: fi[]dnl Chris@0: ])# _PKG_CONFIG Chris@0: Chris@0: # _PKG_SHORT_ERRORS_SUPPORTED Chris@0: # ----------------------------- Chris@0: AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED], Chris@0: [AC_REQUIRE([PKG_PROG_PKG_CONFIG]) Chris@0: if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then Chris@0: _pkg_short_errors_supported=yes Chris@0: else Chris@0: _pkg_short_errors_supported=no Chris@0: fi[]dnl Chris@0: ])# _PKG_SHORT_ERRORS_SUPPORTED Chris@0: Chris@0: Chris@0: # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], Chris@0: # [ACTION-IF-NOT-FOUND]) Chris@0: # Chris@0: # Chris@0: # Note that if there is a possibility the first call to Chris@0: # PKG_CHECK_MODULES might not happen, you should be sure to include an Chris@0: # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac Chris@0: # Chris@0: # Chris@0: # -------------------------------------------------------------- Chris@0: AC_DEFUN([PKG_CHECK_MODULES], Chris@0: [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl Chris@0: AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl Chris@0: AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl Chris@0: Chris@0: pkg_failed=no Chris@0: AC_MSG_CHECKING([for $1]) Chris@0: Chris@0: _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2]) Chris@0: _PKG_CONFIG([$1][_LIBS], [libs], [$2]) Chris@0: Chris@0: m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS Chris@0: and $1[]_LIBS to avoid the need to call pkg-config. Chris@0: See the pkg-config man page for more details.]) Chris@0: Chris@0: if test $pkg_failed = yes; then Chris@0: AC_MSG_RESULT([no]) Chris@0: _PKG_SHORT_ERRORS_SUPPORTED Chris@0: if test $_pkg_short_errors_supported = yes; then Chris@0: $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1` Chris@0: else Chris@0: $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1` Chris@0: fi Chris@0: # Put the nasty error message in config.log where it belongs Chris@0: echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD Chris@0: Chris@0: m4_default([$4], [AC_MSG_ERROR( Chris@0: [Package requirements ($2) were not met: Chris@0: Chris@0: $$1_PKG_ERRORS Chris@0: Chris@0: Consider adjusting the PKG_CONFIG_PATH environment variable if you Chris@0: installed software in a non-standard prefix. Chris@0: Chris@0: _PKG_TEXT])[]dnl Chris@0: ]) Chris@0: elif test $pkg_failed = untried; then Chris@0: AC_MSG_RESULT([no]) Chris@0: m4_default([$4], [AC_MSG_FAILURE( Chris@0: [The pkg-config script could not be found or is too old. Make sure it Chris@0: is in your PATH or set the PKG_CONFIG environment variable to the full Chris@0: path to pkg-config. Chris@0: Chris@0: _PKG_TEXT Chris@0: Chris@0: To get pkg-config, see .])[]dnl Chris@0: ]) Chris@0: else Chris@0: $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS Chris@0: $1[]_LIBS=$pkg_cv_[]$1[]_LIBS Chris@0: AC_MSG_RESULT([yes]) Chris@0: $3 Chris@0: fi[]dnl Chris@0: ])# PKG_CHECK_MODULES Chris@0: Chris@0: # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. Chris@0: # Chris@0: # This file is free software; the Free Software Foundation Chris@0: # gives unlimited permission to copy and/or distribute it, Chris@0: # with or without modifications, as long as this notice is preserved. Chris@0: Chris@0: # AM_AUTOMAKE_VERSION(VERSION) Chris@0: # ---------------------------- Chris@0: # Automake X.Y traces this macro to ensure aclocal.m4 has been Chris@0: # generated from the m4 files accompanying Automake X.Y. Chris@0: # (This private macro should not be called outside this file.) Chris@0: AC_DEFUN([AM_AUTOMAKE_VERSION], Chris@0: [am__api_version='1.11' Chris@0: dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to Chris@0: dnl require some minimum version. Point them to the right macro. Chris@0: m4_if([$1], [1.11.1], [], Chris@0: [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl Chris@0: ]) Chris@0: Chris@0: # _AM_AUTOCONF_VERSION(VERSION) Chris@0: # ----------------------------- Chris@0: # aclocal traces this macro to find the Autoconf version. Chris@0: # This is a private macro too. Using m4_define simplifies Chris@0: # the logic in aclocal, which can simply ignore this definition. Chris@0: m4_define([_AM_AUTOCONF_VERSION], []) Chris@0: Chris@0: # AM_SET_CURRENT_AUTOMAKE_VERSION Chris@0: # ------------------------------- Chris@0: # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. Chris@0: # This function is AC_REQUIREd by AM_INIT_AUTOMAKE. Chris@0: AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], Chris@0: [AM_AUTOMAKE_VERSION([1.11.1])dnl Chris@0: m4_ifndef([AC_AUTOCONF_VERSION], Chris@0: [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl Chris@0: _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) Chris@0: Chris@0: # AM_AUX_DIR_EXPAND -*- Autoconf -*- Chris@0: Chris@0: # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. Chris@0: # Chris@0: # This file is free software; the Free Software Foundation Chris@0: # gives unlimited permission to copy and/or distribute it, Chris@0: # with or without modifications, as long as this notice is preserved. Chris@0: Chris@0: # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets Chris@0: # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to Chris@0: # `$srcdir', `$srcdir/..', or `$srcdir/../..'. Chris@0: # Chris@0: # Of course, Automake must honor this variable whenever it calls a Chris@0: # tool from the auxiliary directory. The problem is that $srcdir (and Chris@0: # therefore $ac_aux_dir as well) can be either absolute or relative, Chris@0: # depending on how configure is run. This is pretty annoying, since Chris@0: # it makes $ac_aux_dir quite unusable in subdirectories: in the top Chris@0: # source directory, any form will work fine, but in subdirectories a Chris@0: # relative path needs to be adjusted first. Chris@0: # Chris@0: # $ac_aux_dir/missing Chris@0: # fails when called from a subdirectory if $ac_aux_dir is relative Chris@0: # $top_srcdir/$ac_aux_dir/missing Chris@0: # fails if $ac_aux_dir is absolute, Chris@0: # fails when called from a subdirectory in a VPATH build with Chris@0: # a relative $ac_aux_dir Chris@0: # Chris@0: # The reason of the latter failure is that $top_srcdir and $ac_aux_dir Chris@0: # are both prefixed by $srcdir. In an in-source build this is usually Chris@0: # harmless because $srcdir is `.', but things will broke when you Chris@0: # start a VPATH build or use an absolute $srcdir. Chris@0: # Chris@0: # So we could use something similar to $top_srcdir/$ac_aux_dir/missing, Chris@0: # iff we strip the leading $srcdir from $ac_aux_dir. That would be: Chris@0: # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` Chris@0: # and then we would define $MISSING as Chris@0: # MISSING="\${SHELL} $am_aux_dir/missing" Chris@0: # This will work as long as MISSING is not called from configure, because Chris@0: # unfortunately $(top_srcdir) has no meaning in configure. Chris@0: # However there are other variables, like CC, which are often used in Chris@0: # configure, and could therefore not use this "fixed" $ac_aux_dir. Chris@0: # Chris@0: # Another solution, used here, is to always expand $ac_aux_dir to an Chris@0: # absolute PATH. The drawback is that using absolute paths prevent a Chris@0: # configured tree to be moved without reconfiguration. Chris@0: Chris@0: AC_DEFUN([AM_AUX_DIR_EXPAND], Chris@0: [dnl Rely on autoconf to set up CDPATH properly. Chris@0: AC_PREREQ([2.50])dnl Chris@0: # expand $ac_aux_dir to an absolute path Chris@0: am_aux_dir=`cd $ac_aux_dir && pwd` Chris@0: ]) Chris@0: Chris@0: # AM_CONDITIONAL -*- Autoconf -*- Chris@0: Chris@0: # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008 Chris@0: # Free Software Foundation, Inc. Chris@0: # Chris@0: # This file is free software; the Free Software Foundation Chris@0: # gives unlimited permission to copy and/or distribute it, Chris@0: # with or without modifications, as long as this notice is preserved. Chris@0: Chris@0: # serial 9 Chris@0: Chris@0: # AM_CONDITIONAL(NAME, SHELL-CONDITION) Chris@0: # ------------------------------------- Chris@0: # Define a conditional. Chris@0: AC_DEFUN([AM_CONDITIONAL], Chris@0: [AC_PREREQ(2.52)dnl Chris@0: ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], Chris@0: [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl Chris@0: AC_SUBST([$1_TRUE])dnl Chris@0: AC_SUBST([$1_FALSE])dnl Chris@0: _AM_SUBST_NOTMAKE([$1_TRUE])dnl Chris@0: _AM_SUBST_NOTMAKE([$1_FALSE])dnl Chris@0: m4_define([_AM_COND_VALUE_$1], [$2])dnl Chris@0: if $2; then Chris@0: $1_TRUE= Chris@0: $1_FALSE='#' Chris@0: else Chris@0: $1_TRUE='#' Chris@0: $1_FALSE= Chris@0: fi Chris@0: AC_CONFIG_COMMANDS_PRE( Chris@0: [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then Chris@0: AC_MSG_ERROR([[conditional "$1" was never defined. Chris@0: Usually this means the macro was only invoked conditionally.]]) Chris@0: fi])]) Chris@0: Chris@0: # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009 Chris@0: # Free Software Foundation, Inc. Chris@0: # Chris@0: # This file is free software; the Free Software Foundation Chris@0: # gives unlimited permission to copy and/or distribute it, Chris@0: # with or without modifications, as long as this notice is preserved. Chris@0: Chris@0: # serial 10 Chris@0: Chris@0: # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be Chris@0: # written in clear, in which case automake, when reading aclocal.m4, Chris@0: # will think it sees a *use*, and therefore will trigger all it's Chris@0: # C support machinery. Also note that it means that autoscan, seeing Chris@0: # CC etc. in the Makefile, will ask for an AC_PROG_CC use... Chris@0: Chris@0: Chris@0: # _AM_DEPENDENCIES(NAME) Chris@0: # ---------------------- Chris@0: # See how the compiler implements dependency checking. Chris@0: # NAME is "CC", "CXX", "GCJ", or "OBJC". Chris@0: # We try a few techniques and use that to set a single cache variable. Chris@0: # Chris@0: # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was Chris@0: # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular Chris@0: # dependency, and given that the user is not expected to run this macro, Chris@0: # just rely on AC_PROG_CC. Chris@0: AC_DEFUN([_AM_DEPENDENCIES], Chris@0: [AC_REQUIRE([AM_SET_DEPDIR])dnl Chris@0: AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl Chris@0: AC_REQUIRE([AM_MAKE_INCLUDE])dnl Chris@0: AC_REQUIRE([AM_DEP_TRACK])dnl Chris@0: Chris@0: ifelse([$1], CC, [depcc="$CC" am_compiler_list=], Chris@0: [$1], CXX, [depcc="$CXX" am_compiler_list=], Chris@0: [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], Chris@0: [$1], UPC, [depcc="$UPC" am_compiler_list=], Chris@0: [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], Chris@0: [depcc="$$1" am_compiler_list=]) Chris@0: Chris@0: AC_CACHE_CHECK([dependency style of $depcc], Chris@0: [am_cv_$1_dependencies_compiler_type], Chris@0: [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then Chris@0: # We make a subdir and do the tests there. Otherwise we can end up Chris@0: # making bogus files that we don't know about and never remove. For Chris@0: # instance it was reported that on HP-UX the gcc test will end up Chris@0: # making a dummy file named `D' -- because `-MD' means `put the output Chris@0: # in D'. Chris@0: mkdir conftest.dir Chris@0: # Copy depcomp to subdir because otherwise we won't find it if we're Chris@0: # using a relative directory. Chris@0: cp "$am_depcomp" conftest.dir Chris@0: cd conftest.dir Chris@0: # We will build objects and dependencies in a subdirectory because Chris@0: # it helps to detect inapplicable dependency modes. For instance Chris@0: # both Tru64's cc and ICC support -MD to output dependencies as a Chris@0: # side effect of compilation, but ICC will put the dependencies in Chris@0: # the current directory while Tru64 will put them in the object Chris@0: # directory. Chris@0: mkdir sub Chris@0: Chris@0: am_cv_$1_dependencies_compiler_type=none Chris@0: if test "$am_compiler_list" = ""; then Chris@0: am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` Chris@0: fi Chris@0: am__universal=false Chris@0: m4_case([$1], [CC], Chris@0: [case " $depcc " in #( Chris@0: *\ -arch\ *\ -arch\ *) am__universal=true ;; Chris@0: esac], Chris@0: [CXX], Chris@0: [case " $depcc " in #( Chris@0: *\ -arch\ *\ -arch\ *) am__universal=true ;; Chris@0: esac]) Chris@0: Chris@0: for depmode in $am_compiler_list; do Chris@0: # Setup a source with many dependencies, because some compilers Chris@0: # like to wrap large dependency lists on column 80 (with \), and Chris@0: # we should not choose a depcomp mode which is confused by this. Chris@0: # Chris@0: # We need to recreate these files for each test, as the compiler may Chris@0: # overwrite some of them when testing with obscure command lines. Chris@0: # This happens at least with the AIX C compiler. Chris@0: : > sub/conftest.c Chris@0: for i in 1 2 3 4 5 6; do Chris@0: echo '#include "conftst'$i'.h"' >> sub/conftest.c Chris@0: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with Chris@0: # Solaris 8's {/usr,}/bin/sh. Chris@0: touch sub/conftst$i.h Chris@0: done Chris@0: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf Chris@0: Chris@0: # We check with `-c' and `-o' for the sake of the "dashmstdout" Chris@0: # mode. It turns out that the SunPro C++ compiler does not properly Chris@0: # handle `-M -o', and we need to detect this. Also, some Intel Chris@0: # versions had trouble with output in subdirs Chris@0: am__obj=sub/conftest.${OBJEXT-o} Chris@0: am__minus_obj="-o $am__obj" Chris@0: case $depmode in Chris@0: gcc) Chris@0: # This depmode causes a compiler race in universal mode. Chris@0: test "$am__universal" = false || continue Chris@0: ;; Chris@0: nosideeffect) Chris@0: # after this tag, mechanisms are not by side-effect, so they'll Chris@0: # only be used when explicitly requested Chris@0: if test "x$enable_dependency_tracking" = xyes; then Chris@0: continue Chris@0: else Chris@0: break Chris@0: fi Chris@0: ;; Chris@0: msvisualcpp | msvcmsys) Chris@0: # This compiler won't grok `-c -o', but also, the minuso test has Chris@0: # not run yet. These depmodes are late enough in the game, and Chris@0: # so weak that their functioning should not be impacted. Chris@0: am__obj=conftest.${OBJEXT-o} Chris@0: am__minus_obj= Chris@0: ;; Chris@0: none) break ;; Chris@0: esac Chris@0: if depmode=$depmode \ Chris@0: source=sub/conftest.c object=$am__obj \ Chris@0: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ Chris@0: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ Chris@0: >/dev/null 2>conftest.err && Chris@0: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && Chris@0: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && Chris@0: grep $am__obj sub/conftest.Po > /dev/null 2>&1 && Chris@0: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then Chris@0: # icc doesn't choke on unknown options, it will just issue warnings Chris@0: # or remarks (even with -Werror). So we grep stderr for any message Chris@0: # that says an option was ignored or not supported. Chris@0: # When given -MP, icc 7.0 and 7.1 complain thusly: Chris@0: # icc: Command line warning: ignoring option '-M'; no argument required Chris@0: # The diagnosis changed in icc 8.0: Chris@0: # icc: Command line remark: option '-MP' not supported Chris@0: if (grep 'ignoring option' conftest.err || Chris@0: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else Chris@0: am_cv_$1_dependencies_compiler_type=$depmode Chris@0: break Chris@0: fi Chris@0: fi Chris@0: done Chris@0: Chris@0: cd .. Chris@0: rm -rf conftest.dir Chris@0: else Chris@0: am_cv_$1_dependencies_compiler_type=none Chris@0: fi Chris@0: ]) Chris@0: AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) Chris@0: AM_CONDITIONAL([am__fastdep$1], [ Chris@0: test "x$enable_dependency_tracking" != xno \ Chris@0: && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) Chris@0: ]) Chris@0: Chris@0: Chris@0: # AM_SET_DEPDIR Chris@0: # ------------- Chris@0: # Choose a directory name for dependency files. Chris@0: # This macro is AC_REQUIREd in _AM_DEPENDENCIES Chris@0: AC_DEFUN([AM_SET_DEPDIR], Chris@0: [AC_REQUIRE([AM_SET_LEADING_DOT])dnl Chris@0: AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl Chris@0: ]) Chris@0: Chris@0: Chris@0: # AM_DEP_TRACK Chris@0: # ------------ Chris@0: AC_DEFUN([AM_DEP_TRACK], Chris@0: [AC_ARG_ENABLE(dependency-tracking, Chris@0: [ --disable-dependency-tracking speeds up one-time build Chris@0: --enable-dependency-tracking do not reject slow dependency extractors]) Chris@0: if test "x$enable_dependency_tracking" != xno; then Chris@0: am_depcomp="$ac_aux_dir/depcomp" Chris@0: AMDEPBACKSLASH='\' Chris@0: fi Chris@0: AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) Chris@0: AC_SUBST([AMDEPBACKSLASH])dnl Chris@0: _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl Chris@0: ]) Chris@0: Chris@0: # Generate code to set up dependency tracking. -*- Autoconf -*- Chris@0: Chris@0: # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008 Chris@0: # Free Software Foundation, Inc. Chris@0: # Chris@0: # This file is free software; the Free Software Foundation Chris@0: # gives unlimited permission to copy and/or distribute it, Chris@0: # with or without modifications, as long as this notice is preserved. Chris@0: Chris@0: #serial 5 Chris@0: Chris@0: # _AM_OUTPUT_DEPENDENCY_COMMANDS Chris@0: # ------------------------------ Chris@0: AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], Chris@0: [{ Chris@0: # Autoconf 2.62 quotes --file arguments for eval, but not when files Chris@0: # are listed without --file. Let's play safe and only enable the eval Chris@0: # if we detect the quoting. Chris@0: case $CONFIG_FILES in Chris@0: *\'*) eval set x "$CONFIG_FILES" ;; Chris@0: *) set x $CONFIG_FILES ;; Chris@0: esac Chris@0: shift Chris@0: for mf Chris@0: do Chris@0: # Strip MF so we end up with the name of the file. Chris@0: mf=`echo "$mf" | sed -e 's/:.*$//'` Chris@0: # Check whether this is an Automake generated Makefile or not. Chris@0: # We used to match only the files named `Makefile.in', but Chris@0: # some people rename them; so instead we look at the file content. Chris@0: # Grep'ing the first line is not enough: some people post-process Chris@0: # each Makefile.in and add a new line on top of each file to say so. Chris@0: # Grep'ing the whole file is not good either: AIX grep has a line Chris@0: # limit of 2048, but all sed's we know have understand at least 4000. Chris@0: if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then Chris@0: dirpart=`AS_DIRNAME("$mf")` Chris@0: else Chris@0: continue Chris@0: fi Chris@0: # Extract the definition of DEPDIR, am__include, and am__quote Chris@0: # from the Makefile without running `make'. Chris@0: DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` Chris@0: test -z "$DEPDIR" && continue Chris@0: am__include=`sed -n 's/^am__include = //p' < "$mf"` Chris@0: test -z "am__include" && continue Chris@0: am__quote=`sed -n 's/^am__quote = //p' < "$mf"` Chris@0: # When using ansi2knr, U may be empty or an underscore; expand it Chris@0: U=`sed -n 's/^U = //p' < "$mf"` Chris@0: # Find all dependency output files, they are included files with Chris@0: # $(DEPDIR) in their names. We invoke sed twice because it is the Chris@0: # simplest approach to changing $(DEPDIR) to its actual value in the Chris@0: # expansion. Chris@0: for file in `sed -n " Chris@0: s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ Chris@0: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do Chris@0: # Make sure the directory exists. Chris@0: test -f "$dirpart/$file" && continue Chris@0: fdir=`AS_DIRNAME(["$file"])` Chris@0: AS_MKDIR_P([$dirpart/$fdir]) Chris@0: # echo "creating $dirpart/$file" Chris@0: echo '# dummy' > "$dirpart/$file" Chris@0: done Chris@0: done Chris@0: } Chris@0: ])# _AM_OUTPUT_DEPENDENCY_COMMANDS Chris@0: Chris@0: Chris@0: # AM_OUTPUT_DEPENDENCY_COMMANDS Chris@0: # ----------------------------- Chris@0: # This macro should only be invoked once -- use via AC_REQUIRE. Chris@0: # Chris@0: # This code is only required when automatic dependency tracking Chris@0: # is enabled. FIXME. This creates each `.P' file that we will Chris@0: # need in order to bootstrap the dependency handling code. Chris@0: AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], Chris@0: [AC_CONFIG_COMMANDS([depfiles], Chris@0: [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], Chris@0: [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) Chris@0: ]) Chris@0: Chris@0: # Do all the work for Automake. -*- Autoconf -*- Chris@0: Chris@0: # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, Chris@0: # 2005, 2006, 2008, 2009 Free Software Foundation, Inc. Chris@0: # Chris@0: # This file is free software; the Free Software Foundation Chris@0: # gives unlimited permission to copy and/or distribute it, Chris@0: # with or without modifications, as long as this notice is preserved. Chris@0: Chris@0: # serial 16 Chris@0: Chris@0: # This macro actually does too much. Some checks are only needed if Chris@0: # your package does certain things. But this isn't really a big deal. Chris@0: Chris@0: # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) Chris@0: # AM_INIT_AUTOMAKE([OPTIONS]) Chris@0: # ----------------------------------------------- Chris@0: # The call with PACKAGE and VERSION arguments is the old style Chris@0: # call (pre autoconf-2.50), which is being phased out. PACKAGE Chris@0: # and VERSION should now be passed to AC_INIT and removed from Chris@0: # the call to AM_INIT_AUTOMAKE. Chris@0: # We support both call styles for the transition. After Chris@0: # the next Automake release, Autoconf can make the AC_INIT Chris@0: # arguments mandatory, and then we can depend on a new Autoconf Chris@0: # release and drop the old call support. Chris@0: AC_DEFUN([AM_INIT_AUTOMAKE], Chris@0: [AC_PREREQ([2.62])dnl Chris@0: dnl Autoconf wants to disallow AM_ names. We explicitly allow Chris@0: dnl the ones we care about. Chris@0: m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl Chris@0: AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl Chris@0: AC_REQUIRE([AC_PROG_INSTALL])dnl Chris@0: if test "`cd $srcdir && pwd`" != "`pwd`"; then Chris@0: # Use -I$(srcdir) only when $(srcdir) != ., so that make's output Chris@0: # is not polluted with repeated "-I." Chris@0: AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl Chris@0: # test to see if srcdir already configured Chris@0: if test -f $srcdir/config.status; then Chris@0: AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) Chris@0: fi Chris@0: fi Chris@0: Chris@0: # test whether we have cygpath Chris@0: if test -z "$CYGPATH_W"; then Chris@0: if (cygpath --version) >/dev/null 2>/dev/null; then Chris@0: CYGPATH_W='cygpath -w' Chris@0: else Chris@0: CYGPATH_W=echo Chris@0: fi Chris@0: fi Chris@0: AC_SUBST([CYGPATH_W]) Chris@0: Chris@0: # Define the identity of the package. Chris@0: dnl Distinguish between old-style and new-style calls. Chris@0: m4_ifval([$2], Chris@0: [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl Chris@0: AC_SUBST([PACKAGE], [$1])dnl Chris@0: AC_SUBST([VERSION], [$2])], Chris@0: [_AM_SET_OPTIONS([$1])dnl Chris@0: dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. Chris@0: m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,, Chris@0: [m4_fatal([AC_INIT should be called with package and version arguments])])dnl Chris@0: AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl Chris@0: AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl Chris@0: Chris@0: _AM_IF_OPTION([no-define],, Chris@0: [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) Chris@0: AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl Chris@0: Chris@0: # Some tools Automake needs. Chris@0: AC_REQUIRE([AM_SANITY_CHECK])dnl Chris@0: AC_REQUIRE([AC_ARG_PROGRAM])dnl Chris@0: AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) Chris@0: AM_MISSING_PROG(AUTOCONF, autoconf) Chris@0: AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) Chris@0: AM_MISSING_PROG(AUTOHEADER, autoheader) Chris@0: AM_MISSING_PROG(MAKEINFO, makeinfo) Chris@0: AC_REQUIRE([AM_PROG_INSTALL_SH])dnl Chris@0: AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl Chris@0: AC_REQUIRE([AM_PROG_MKDIR_P])dnl Chris@0: # We need awk for the "check" target. The system "awk" is bad on Chris@0: # some platforms. Chris@0: AC_REQUIRE([AC_PROG_AWK])dnl Chris@0: AC_REQUIRE([AC_PROG_MAKE_SET])dnl Chris@0: AC_REQUIRE([AM_SET_LEADING_DOT])dnl Chris@0: _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], Chris@0: [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], Chris@0: [_AM_PROG_TAR([v7])])]) Chris@0: _AM_IF_OPTION([no-dependencies],, Chris@0: [AC_PROVIDE_IFELSE([AC_PROG_CC], Chris@0: [_AM_DEPENDENCIES(CC)], Chris@0: [define([AC_PROG_CC], Chris@0: defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl Chris@0: AC_PROVIDE_IFELSE([AC_PROG_CXX], Chris@0: [_AM_DEPENDENCIES(CXX)], Chris@0: [define([AC_PROG_CXX], Chris@0: defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl Chris@0: AC_PROVIDE_IFELSE([AC_PROG_OBJC], Chris@0: [_AM_DEPENDENCIES(OBJC)], Chris@0: [define([AC_PROG_OBJC], Chris@0: defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl Chris@0: ]) Chris@0: _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl Chris@0: dnl The `parallel-tests' driver may need to know about EXEEXT, so add the Chris@0: dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro Chris@0: dnl is hooked onto _AC_COMPILER_EXEEXT early, see below. Chris@0: AC_CONFIG_COMMANDS_PRE(dnl Chris@0: [m4_provide_if([_AM_COMPILER_EXEEXT], Chris@0: [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl Chris@0: ]) Chris@0: Chris@0: dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not Chris@0: dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further Chris@0: dnl mangled by Autoconf and run in a shell conditional statement. Chris@0: m4_define([_AC_COMPILER_EXEEXT], Chris@0: m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) Chris@0: Chris@0: Chris@0: # When config.status generates a header, we must update the stamp-h file. Chris@0: # This file resides in the same directory as the config header Chris@0: # that is generated. The stamp files are numbered to have different names. Chris@0: Chris@0: # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the Chris@0: # loop where config.status creates the headers, so we can generate Chris@0: # our stamp files there. Chris@0: AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], Chris@0: [# Compute $1's index in $config_headers. Chris@0: _am_arg=$1 Chris@0: _am_stamp_count=1 Chris@0: for _am_header in $config_headers :; do Chris@0: case $_am_header in Chris@0: $_am_arg | $_am_arg:* ) Chris@0: break ;; Chris@0: * ) Chris@0: _am_stamp_count=`expr $_am_stamp_count + 1` ;; Chris@0: esac Chris@0: done Chris@0: echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) Chris@0: Chris@0: # Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc. Chris@0: # Chris@0: # This file is free software; the Free Software Foundation Chris@0: # gives unlimited permission to copy and/or distribute it, Chris@0: # with or without modifications, as long as this notice is preserved. Chris@0: Chris@0: # AM_PROG_INSTALL_SH Chris@0: # ------------------ Chris@0: # Define $install_sh. Chris@0: AC_DEFUN([AM_PROG_INSTALL_SH], Chris@0: [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl Chris@0: if test x"${install_sh}" != xset; then Chris@0: case $am_aux_dir in Chris@0: *\ * | *\ *) Chris@0: install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; Chris@0: *) Chris@0: install_sh="\${SHELL} $am_aux_dir/install-sh" Chris@0: esac Chris@0: fi Chris@0: AC_SUBST(install_sh)]) Chris@0: Chris@0: # Copyright (C) 2003, 2005 Free Software Foundation, Inc. Chris@0: # Chris@0: # This file is free software; the Free Software Foundation Chris@0: # gives unlimited permission to copy and/or distribute it, Chris@0: # with or without modifications, as long as this notice is preserved. Chris@0: Chris@0: # serial 2 Chris@0: Chris@0: # Check whether the underlying file-system supports filenames Chris@0: # with a leading dot. For instance MS-DOS doesn't. Chris@0: AC_DEFUN([AM_SET_LEADING_DOT], Chris@0: [rm -rf .tst 2>/dev/null Chris@0: mkdir .tst 2>/dev/null Chris@0: if test -d .tst; then Chris@0: am__leading_dot=. Chris@0: else Chris@0: am__leading_dot=_ Chris@0: fi Chris@0: rmdir .tst 2>/dev/null Chris@0: AC_SUBST([am__leading_dot])]) Chris@0: Chris@0: # Check to see how 'make' treats includes. -*- Autoconf -*- Chris@0: Chris@0: # Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc. Chris@0: # Chris@0: # This file is free software; the Free Software Foundation Chris@0: # gives unlimited permission to copy and/or distribute it, Chris@0: # with or without modifications, as long as this notice is preserved. Chris@0: Chris@0: # serial 4 Chris@0: Chris@0: # AM_MAKE_INCLUDE() Chris@0: # ----------------- Chris@0: # Check to see how make treats includes. Chris@0: AC_DEFUN([AM_MAKE_INCLUDE], Chris@0: [am_make=${MAKE-make} Chris@0: cat > confinc << 'END' Chris@0: am__doit: Chris@0: @echo this is the am__doit target Chris@0: .PHONY: am__doit Chris@0: END Chris@0: # If we don't find an include directive, just comment out the code. Chris@0: AC_MSG_CHECKING([for style of include used by $am_make]) Chris@0: am__include="#" Chris@0: am__quote= Chris@0: _am_result=none Chris@0: # First try GNU make style include. Chris@0: echo "include confinc" > confmf Chris@0: # Ignore all kinds of additional output from `make'. Chris@0: case `$am_make -s -f confmf 2> /dev/null` in #( Chris@0: *the\ am__doit\ target*) Chris@0: am__include=include Chris@0: am__quote= Chris@0: _am_result=GNU Chris@0: ;; Chris@0: esac Chris@0: # Now try BSD make style include. Chris@0: if test "$am__include" = "#"; then Chris@0: echo '.include "confinc"' > confmf Chris@0: case `$am_make -s -f confmf 2> /dev/null` in #( Chris@0: *the\ am__doit\ target*) Chris@0: am__include=.include Chris@0: am__quote="\"" Chris@0: _am_result=BSD Chris@0: ;; Chris@0: esac Chris@0: fi Chris@0: AC_SUBST([am__include]) Chris@0: AC_SUBST([am__quote]) Chris@0: AC_MSG_RESULT([$_am_result]) Chris@0: rm -f confinc confmf Chris@0: ]) Chris@0: Chris@0: # Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005, 2008 Chris@0: # Free Software Foundation, Inc. Chris@0: # Chris@0: # This file is free software; the Free Software Foundation Chris@0: # gives unlimited permission to copy and/or distribute it, Chris@0: # with or without modifications, as long as this notice is preserved. Chris@0: Chris@0: # serial 6 Chris@0: Chris@0: # AM_PROG_CC_C_O Chris@0: # -------------- Chris@0: # Like AC_PROG_CC_C_O, but changed for automake. Chris@0: AC_DEFUN([AM_PROG_CC_C_O], Chris@0: [AC_REQUIRE([AC_PROG_CC_C_O])dnl Chris@0: AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl Chris@0: AC_REQUIRE_AUX_FILE([compile])dnl Chris@0: # FIXME: we rely on the cache variable name because Chris@0: # there is no other way. Chris@0: set dummy $CC Chris@0: am_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']` Chris@0: eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o Chris@0: if test "$am_t" != yes; then Chris@0: # Losing compiler, so override with the script. Chris@0: # FIXME: It is wrong to rewrite CC. Chris@0: # But if we don't then we get into trouble of one sort or another. Chris@0: # A longer-term fix would be to have automake use am__CC in this case, Chris@0: # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" Chris@0: CC="$am_aux_dir/compile $CC" Chris@0: fi Chris@0: dnl Make sure AC_PROG_CC is never called again, or it will override our Chris@0: dnl setting of CC. Chris@0: m4_define([AC_PROG_CC], Chris@0: [m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])]) Chris@0: ]) Chris@0: Chris@0: # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- Chris@0: Chris@0: # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008 Chris@0: # Free Software Foundation, Inc. Chris@0: # Chris@0: # This file is free software; the Free Software Foundation Chris@0: # gives unlimited permission to copy and/or distribute it, Chris@0: # with or without modifications, as long as this notice is preserved. Chris@0: Chris@0: # serial 6 Chris@0: Chris@0: # AM_MISSING_PROG(NAME, PROGRAM) Chris@0: # ------------------------------ Chris@0: AC_DEFUN([AM_MISSING_PROG], Chris@0: [AC_REQUIRE([AM_MISSING_HAS_RUN]) Chris@0: $1=${$1-"${am_missing_run}$2"} Chris@0: AC_SUBST($1)]) Chris@0: Chris@0: Chris@0: # AM_MISSING_HAS_RUN Chris@0: # ------------------ Chris@0: # Define MISSING if not defined so far and test if it supports --run. Chris@0: # If it does, set am_missing_run to use it, otherwise, to nothing. Chris@0: AC_DEFUN([AM_MISSING_HAS_RUN], Chris@0: [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl Chris@0: AC_REQUIRE_AUX_FILE([missing])dnl Chris@0: if test x"${MISSING+set}" != xset; then Chris@0: case $am_aux_dir in Chris@0: *\ * | *\ *) Chris@0: MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; Chris@0: *) Chris@0: MISSING="\${SHELL} $am_aux_dir/missing" ;; Chris@0: esac Chris@0: fi Chris@0: # Use eval to expand $SHELL Chris@0: if eval "$MISSING --run true"; then Chris@0: am_missing_run="$MISSING --run " Chris@0: else Chris@0: am_missing_run= Chris@0: AC_MSG_WARN([`missing' script is too old or missing]) Chris@0: fi Chris@0: ]) Chris@0: Chris@0: # Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc. Chris@0: # Chris@0: # This file is free software; the Free Software Foundation Chris@0: # gives unlimited permission to copy and/or distribute it, Chris@0: # with or without modifications, as long as this notice is preserved. Chris@0: Chris@0: # AM_PROG_MKDIR_P Chris@0: # --------------- Chris@0: # Check for `mkdir -p'. Chris@0: AC_DEFUN([AM_PROG_MKDIR_P], Chris@0: [AC_PREREQ([2.60])dnl Chris@0: AC_REQUIRE([AC_PROG_MKDIR_P])dnl Chris@0: dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, Chris@0: dnl while keeping a definition of mkdir_p for backward compatibility. Chris@0: dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. Chris@0: dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of Chris@0: dnl Makefile.ins that do not define MKDIR_P, so we do our own Chris@0: dnl adjustment using top_builddir (which is defined more often than Chris@0: dnl MKDIR_P). Chris@0: AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl Chris@0: case $mkdir_p in Chris@0: [[\\/$]]* | ?:[[\\/]]*) ;; Chris@0: */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; Chris@0: esac Chris@0: ]) Chris@0: Chris@0: # Helper functions for option handling. -*- Autoconf -*- Chris@0: Chris@0: # Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc. Chris@0: # Chris@0: # This file is free software; the Free Software Foundation Chris@0: # gives unlimited permission to copy and/or distribute it, Chris@0: # with or without modifications, as long as this notice is preserved. Chris@0: Chris@0: # serial 4 Chris@0: Chris@0: # _AM_MANGLE_OPTION(NAME) Chris@0: # ----------------------- Chris@0: AC_DEFUN([_AM_MANGLE_OPTION], Chris@0: [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) Chris@0: Chris@0: # _AM_SET_OPTION(NAME) Chris@0: # ------------------------------ Chris@0: # Set option NAME. Presently that only means defining a flag for this option. Chris@0: AC_DEFUN([_AM_SET_OPTION], Chris@0: [m4_define(_AM_MANGLE_OPTION([$1]), 1)]) Chris@0: Chris@0: # _AM_SET_OPTIONS(OPTIONS) Chris@0: # ---------------------------------- Chris@0: # OPTIONS is a space-separated list of Automake options. Chris@0: AC_DEFUN([_AM_SET_OPTIONS], Chris@0: [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) Chris@0: Chris@0: # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) Chris@0: # ------------------------------------------- Chris@0: # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. Chris@0: AC_DEFUN([_AM_IF_OPTION], Chris@0: [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) Chris@0: Chris@0: # Check to make sure that the build environment is sane. -*- Autoconf -*- Chris@0: Chris@0: # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008 Chris@0: # Free Software Foundation, Inc. Chris@0: # Chris@0: # This file is free software; the Free Software Foundation Chris@0: # gives unlimited permission to copy and/or distribute it, Chris@0: # with or without modifications, as long as this notice is preserved. Chris@0: Chris@0: # serial 5 Chris@0: Chris@0: # AM_SANITY_CHECK Chris@0: # --------------- Chris@0: AC_DEFUN([AM_SANITY_CHECK], Chris@0: [AC_MSG_CHECKING([whether build environment is sane]) Chris@0: # Just in case Chris@0: sleep 1 Chris@0: echo timestamp > conftest.file Chris@0: # Reject unsafe characters in $srcdir or the absolute working directory Chris@0: # name. Accept space and tab only in the latter. Chris@0: am_lf=' Chris@0: ' Chris@0: case `pwd` in Chris@0: *[[\\\"\#\$\&\'\`$am_lf]]*) Chris@0: AC_MSG_ERROR([unsafe absolute working directory name]);; Chris@0: esac Chris@0: case $srcdir in Chris@0: *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) Chris@0: AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);; Chris@0: esac Chris@0: Chris@0: # Do `set' in a subshell so we don't clobber the current shell's Chris@0: # arguments. Must try -L first in case configure is actually a Chris@0: # symlink; some systems play weird games with the mod time of symlinks Chris@0: # (eg FreeBSD returns the mod time of the symlink's containing Chris@0: # directory). Chris@0: if ( Chris@0: set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` Chris@0: if test "$[*]" = "X"; then Chris@0: # -L didn't work. Chris@0: set X `ls -t "$srcdir/configure" conftest.file` Chris@0: fi Chris@0: rm -f conftest.file Chris@0: if test "$[*]" != "X $srcdir/configure conftest.file" \ Chris@0: && test "$[*]" != "X conftest.file $srcdir/configure"; then Chris@0: Chris@0: # If neither matched, then we have a broken ls. This can happen Chris@0: # if, for instance, CONFIG_SHELL is bash and it inherits a Chris@0: # broken ls alias from the environment. This has actually Chris@0: # happened. Such a system could not be considered "sane". Chris@0: AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken Chris@0: alias in your environment]) Chris@0: fi Chris@0: Chris@0: test "$[2]" = conftest.file Chris@0: ) Chris@0: then Chris@0: # Ok. Chris@0: : Chris@0: else Chris@0: AC_MSG_ERROR([newly created file is older than distributed files! Chris@0: Check your system clock]) Chris@0: fi Chris@0: AC_MSG_RESULT(yes)]) Chris@0: Chris@0: # Copyright (C) 2009 Free Software Foundation, Inc. Chris@0: # Chris@0: # This file is free software; the Free Software Foundation Chris@0: # gives unlimited permission to copy and/or distribute it, Chris@0: # with or without modifications, as long as this notice is preserved. Chris@0: Chris@0: # serial 1 Chris@0: Chris@0: # AM_SILENT_RULES([DEFAULT]) Chris@0: # -------------------------- Chris@0: # Enable less verbose build rules; with the default set to DEFAULT Chris@0: # (`yes' being less verbose, `no' or empty being verbose). Chris@0: AC_DEFUN([AM_SILENT_RULES], Chris@0: [AC_ARG_ENABLE([silent-rules], Chris@0: [ --enable-silent-rules less verbose build output (undo: `make V=1') Chris@0: --disable-silent-rules verbose build output (undo: `make V=0')]) Chris@0: case $enable_silent_rules in Chris@0: yes) AM_DEFAULT_VERBOSITY=0;; Chris@0: no) AM_DEFAULT_VERBOSITY=1;; Chris@0: *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);; Chris@0: esac Chris@0: AC_SUBST([AM_DEFAULT_VERBOSITY])dnl Chris@0: AM_BACKSLASH='\' Chris@0: AC_SUBST([AM_BACKSLASH])dnl Chris@0: _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl Chris@0: ]) Chris@0: Chris@0: # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. Chris@0: # Chris@0: # This file is free software; the Free Software Foundation Chris@0: # gives unlimited permission to copy and/or distribute it, Chris@0: # with or without modifications, as long as this notice is preserved. Chris@0: Chris@0: # AM_PROG_INSTALL_STRIP Chris@0: # --------------------- Chris@0: # One issue with vendor `install' (even GNU) is that you can't Chris@0: # specify the program used to strip binaries. This is especially Chris@0: # annoying in cross-compiling environments, where the build's strip Chris@0: # is unlikely to handle the host's binaries. Chris@0: # Fortunately install-sh will honor a STRIPPROG variable, so we Chris@0: # always use install-sh in `make install-strip', and initialize Chris@0: # STRIPPROG with the value of the STRIP variable (set by the user). Chris@0: AC_DEFUN([AM_PROG_INSTALL_STRIP], Chris@0: [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl Chris@0: # Installed binaries are usually stripped using `strip' when the user Chris@0: # run `make install-strip'. However `strip' might not be the right Chris@0: # tool to use in cross-compilation environments, therefore Automake Chris@0: # will honor the `STRIP' environment variable to overrule this program. Chris@0: dnl Don't test for $cross_compiling = yes, because it might be `maybe'. Chris@0: if test "$cross_compiling" != no; then Chris@0: AC_CHECK_TOOL([STRIP], [strip], :) Chris@0: fi Chris@0: INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" Chris@0: AC_SUBST([INSTALL_STRIP_PROGRAM])]) Chris@0: Chris@0: # Copyright (C) 2006, 2008 Free Software Foundation, Inc. Chris@0: # Chris@0: # This file is free software; the Free Software Foundation Chris@0: # gives unlimited permission to copy and/or distribute it, Chris@0: # with or without modifications, as long as this notice is preserved. Chris@0: Chris@0: # serial 2 Chris@0: Chris@0: # _AM_SUBST_NOTMAKE(VARIABLE) Chris@0: # --------------------------- Chris@0: # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. Chris@0: # This macro is traced by Automake. Chris@0: AC_DEFUN([_AM_SUBST_NOTMAKE]) Chris@0: Chris@0: # AM_SUBST_NOTMAKE(VARIABLE) Chris@0: # --------------------------- Chris@0: # Public sister of _AM_SUBST_NOTMAKE. Chris@0: AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) Chris@0: Chris@0: # Check how to create a tarball. -*- Autoconf -*- Chris@0: Chris@0: # Copyright (C) 2004, 2005 Free Software Foundation, Inc. Chris@0: # Chris@0: # This file is free software; the Free Software Foundation Chris@0: # gives unlimited permission to copy and/or distribute it, Chris@0: # with or without modifications, as long as this notice is preserved. Chris@0: Chris@0: # serial 2 Chris@0: Chris@0: # _AM_PROG_TAR(FORMAT) Chris@0: # -------------------- Chris@0: # Check how to create a tarball in format FORMAT. Chris@0: # FORMAT should be one of `v7', `ustar', or `pax'. Chris@0: # Chris@0: # Substitute a variable $(am__tar) that is a command Chris@0: # writing to stdout a FORMAT-tarball containing the directory Chris@0: # $tardir. Chris@0: # tardir=directory && $(am__tar) > result.tar Chris@0: # Chris@0: # Substitute a variable $(am__untar) that extract such Chris@0: # a tarball read from stdin. Chris@0: # $(am__untar) < result.tar Chris@0: AC_DEFUN([_AM_PROG_TAR], Chris@0: [# Always define AMTAR for backward compatibility. Chris@0: AM_MISSING_PROG([AMTAR], [tar]) Chris@0: m4_if([$1], [v7], Chris@0: [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], Chris@0: [m4_case([$1], [ustar],, [pax],, Chris@0: [m4_fatal([Unknown tar format])]) Chris@0: AC_MSG_CHECKING([how to create a $1 tar archive]) Chris@0: # Loop over all known methods to create a tar archive until one works. Chris@0: _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' Chris@0: _am_tools=${am_cv_prog_tar_$1-$_am_tools} Chris@0: # Do not fold the above two line into one, because Tru64 sh and Chris@0: # Solaris sh will not grok spaces in the rhs of `-'. Chris@0: for _am_tool in $_am_tools Chris@0: do Chris@0: case $_am_tool in Chris@0: gnutar) Chris@0: for _am_tar in tar gnutar gtar; Chris@0: do Chris@0: AM_RUN_LOG([$_am_tar --version]) && break Chris@0: done Chris@0: am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' Chris@0: am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' Chris@0: am__untar="$_am_tar -xf -" Chris@0: ;; Chris@0: plaintar) Chris@0: # Must skip GNU tar: if it does not support --format= it doesn't create Chris@0: # ustar tarball either. Chris@0: (tar --version) >/dev/null 2>&1 && continue Chris@0: am__tar='tar chf - "$$tardir"' Chris@0: am__tar_='tar chf - "$tardir"' Chris@0: am__untar='tar xf -' Chris@0: ;; Chris@0: pax) Chris@0: am__tar='pax -L -x $1 -w "$$tardir"' Chris@0: am__tar_='pax -L -x $1 -w "$tardir"' Chris@0: am__untar='pax -r' Chris@0: ;; Chris@0: cpio) Chris@0: am__tar='find "$$tardir" -print | cpio -o -H $1 -L' Chris@0: am__tar_='find "$tardir" -print | cpio -o -H $1 -L' Chris@0: am__untar='cpio -i -H $1 -d' Chris@0: ;; Chris@0: none) Chris@0: am__tar=false Chris@0: am__tar_=false Chris@0: am__untar=false Chris@0: ;; Chris@0: esac Chris@0: Chris@0: # If the value was cached, stop now. We just wanted to have am__tar Chris@0: # and am__untar set. Chris@0: test -n "${am_cv_prog_tar_$1}" && break Chris@0: Chris@0: # tar/untar a dummy directory, and stop if the command works Chris@0: rm -rf conftest.dir Chris@0: mkdir conftest.dir Chris@0: echo GrepMe > conftest.dir/file Chris@0: AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) Chris@0: rm -rf conftest.dir Chris@0: if test -s conftest.tar; then Chris@0: AM_RUN_LOG([$am__untar /dev/null 2>&1 && break Chris@0: fi Chris@0: done Chris@0: rm -rf conftest.dir Chris@0: Chris@0: AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) Chris@0: AC_MSG_RESULT([$am_cv_prog_tar_$1])]) Chris@0: AC_SUBST([am__tar]) Chris@0: AC_SUBST([am__untar]) Chris@0: ]) # _AM_PROG_TAR Chris@0: Chris@0: m4_include([M4/add_cflags.m4]) Chris@0: m4_include([M4/add_cxxflags.m4]) Chris@0: m4_include([M4/clip_mode.m4]) Chris@0: m4_include([M4/endian.m4]) Chris@0: m4_include([M4/extra_largefile.m4]) Chris@0: m4_include([M4/extra_pkg.m4]) Chris@0: m4_include([M4/flexible_array.m4]) Chris@0: m4_include([M4/gcc_version.m4]) Chris@0: m4_include([M4/libtool.m4]) Chris@0: m4_include([M4/lrint.m4]) Chris@0: m4_include([M4/lrintf.m4]) Chris@0: m4_include([M4/ltoptions.m4]) Chris@0: m4_include([M4/ltsugar.m4]) Chris@0: m4_include([M4/ltversion.m4]) Chris@0: m4_include([M4/lt~obsolete.m4]) Chris@0: m4_include([M4/mkoctfile_version.m4]) Chris@0: m4_include([M4/octave.m4])