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