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