fukasawa e60969
# generated automatically by aclocal 1.15 -*- Autoconf -*-
fukasawa e60969
fukasawa e60969
# Copyright (C) 1996-2014 Free Software Foundation, Inc.
fukasawa e60969
fukasawa e60969
# This file is free software; the Free Software Foundation
fukasawa e60969
# gives unlimited permission to copy and/or distribute it,
fukasawa e60969
# with or without modifications, as long as this notice is preserved.
fukasawa e60969
fukasawa e60969
# This program is distributed in the hope that it will be useful,
fukasawa e60969
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
fukasawa e60969
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
fukasawa e60969
# PARTICULAR PURPOSE.
fukasawa e60969
fukasawa e60969
m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
fukasawa e60969
m4_ifndef([AC_AUTOCONF_VERSION],
fukasawa e60969
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
fukasawa e60969
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
fukasawa e60969
[m4_warning([this file was generated for autoconf 2.69.
fukasawa e60969
You have another version of autoconf.  It may work, but is not guaranteed to.
fukasawa e60969
If you have problems, you may need to regenerate the build system entirely.
fukasawa e60969
To do so, use the procedure documented by the package, typically 'autoreconf'.])])
fukasawa e60969
fukasawa e60969
# Copyright (C) 2002-2014 Free Software Foundation, Inc.
fukasawa e60969
#
fukasawa e60969
# This file is free software; the Free Software Foundation
fukasawa e60969
# gives unlimited permission to copy and/or distribute it,
fukasawa e60969
# with or without modifications, as long as this notice is preserved.
fukasawa e60969
fukasawa e60969
# AM_AUTOMAKE_VERSION(VERSION)
fukasawa e60969
# ----------------------------
fukasawa e60969
# Automake X.Y traces this macro to ensure aclocal.m4 has been
fukasawa e60969
# generated from the m4 files accompanying Automake X.Y.
fukasawa e60969
# (This private macro should not be called outside this file.)
fukasawa e60969
AC_DEFUN([AM_AUTOMAKE_VERSION],
fukasawa e60969
[am__api_version='1.15'
fukasawa e60969
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
fukasawa e60969
dnl require some minimum version.  Point them to the right macro.
fukasawa e60969
m4_if([$1], [1.15], [],
fukasawa e60969
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
fukasawa e60969
])
fukasawa e60969
fukasawa e60969
# _AM_AUTOCONF_VERSION(VERSION)
fukasawa e60969
# -----------------------------
fukasawa e60969
# aclocal traces this macro to find the Autoconf version.
fukasawa e60969
# This is a private macro too.  Using m4_define simplifies
fukasawa e60969
# the logic in aclocal, which can simply ignore this definition.
fukasawa e60969
m4_define([_AM_AUTOCONF_VERSION], [])
fukasawa e60969
fukasawa e60969
# AM_SET_CURRENT_AUTOMAKE_VERSION
fukasawa e60969
# -------------------------------
fukasawa e60969
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
fukasawa e60969
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
fukasawa e60969
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
fukasawa e60969
[AM_AUTOMAKE_VERSION([1.15])dnl
fukasawa e60969
m4_ifndef([AC_AUTOCONF_VERSION],
fukasawa e60969
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
fukasawa e60969
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
fukasawa e60969
fukasawa e60969
# Figure out how to run the assembler.                      -*- Autoconf -*-
fukasawa e60969
fukasawa e60969
# Copyright (C) 2001-2014 Free Software Foundation, Inc.
fukasawa e60969
#
fukasawa e60969
# This file is free software; the Free Software Foundation
fukasawa e60969
# gives unlimited permission to copy and/or distribute it,
fukasawa e60969
# with or without modifications, as long as this notice is preserved.
fukasawa e60969
fukasawa e60969
# AM_PROG_AS
fukasawa e60969
# ----------
fukasawa e60969
AC_DEFUN([AM_PROG_AS],
fukasawa e60969
[# By default we simply use the C compiler to build assembly code.
fukasawa e60969
AC_REQUIRE([AC_PROG_CC])
fukasawa e60969
test "${CCAS+set}" = set || CCAS=$CC
fukasawa e60969
test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
fukasawa e60969
AC_ARG_VAR([CCAS],      [assembler compiler command (defaults to CC)])
fukasawa e60969
AC_ARG_VAR([CCASFLAGS], [assembler compiler flags (defaults to CFLAGS)])
fukasawa e60969
_AM_IF_OPTION([no-dependencies],, [_AM_DEPENDENCIES([CCAS])])dnl
fukasawa e60969
])
fukasawa e60969
fukasawa e60969
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
fukasawa e60969
fukasawa e60969
# Copyright (C) 2001-2014 Free Software Foundation, Inc.
fukasawa e60969
#
fukasawa e60969
# This file is free software; the Free Software Foundation
fukasawa e60969
# gives unlimited permission to copy and/or distribute it,
fukasawa e60969
# with or without modifications, as long as this notice is preserved.
fukasawa e60969
fukasawa e60969
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
fukasawa e60969
# $ac_aux_dir to '$srcdir/foo'.  In other projects, it is set to
fukasawa e60969
# '$srcdir', '$srcdir/..', or '$srcdir/../..'.
fukasawa e60969
#
fukasawa e60969
# Of course, Automake must honor this variable whenever it calls a
fukasawa e60969
# tool from the auxiliary directory.  The problem is that $srcdir (and
fukasawa e60969
# therefore $ac_aux_dir as well) can be either absolute or relative,
fukasawa e60969
# depending on how configure is run.  This is pretty annoying, since
fukasawa e60969
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
fukasawa e60969
# source directory, any form will work fine, but in subdirectories a
fukasawa e60969
# relative path needs to be adjusted first.
fukasawa e60969
#
fukasawa e60969
# $ac_aux_dir/missing
fukasawa e60969
#    fails when called from a subdirectory if $ac_aux_dir is relative
fukasawa e60969
# $top_srcdir/$ac_aux_dir/missing
fukasawa e60969
#    fails if $ac_aux_dir is absolute,
fukasawa e60969
#    fails when called from a subdirectory in a VPATH build with
fukasawa e60969
#          a relative $ac_aux_dir
fukasawa e60969
#
fukasawa e60969
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
fukasawa e60969
# are both prefixed by $srcdir.  In an in-source build this is usually
fukasawa e60969
# harmless because $srcdir is '.', but things will broke when you
fukasawa e60969
# start a VPATH build or use an absolute $srcdir.
fukasawa e60969
#
fukasawa e60969
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
fukasawa e60969
# iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
fukasawa e60969
#   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
fukasawa e60969
# and then we would define $MISSING as
fukasawa e60969
#   MISSING="\${SHELL} $am_aux_dir/missing"
fukasawa e60969
# This will work as long as MISSING is not called from configure, because
fukasawa e60969
# unfortunately $(top_srcdir) has no meaning in configure.
fukasawa e60969
# However there are other variables, like CC, which are often used in
fukasawa e60969
# configure, and could therefore not use this "fixed" $ac_aux_dir.
fukasawa e60969
#
fukasawa e60969
# Another solution, used here, is to always expand $ac_aux_dir to an
fukasawa e60969
# absolute PATH.  The drawback is that using absolute paths prevent a
fukasawa e60969
# configured tree to be moved without reconfiguration.
fukasawa e60969
fukasawa e60969
AC_DEFUN([AM_AUX_DIR_EXPAND],
fukasawa e60969
[AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
fukasawa e60969
# Expand $ac_aux_dir to an absolute path.
fukasawa e60969
am_aux_dir=`cd "$ac_aux_dir" && pwd`
fukasawa e60969
])
fukasawa e60969
fukasawa e60969
# AM_CONDITIONAL                                            -*- Autoconf -*-
fukasawa e60969
fukasawa e60969
# Copyright (C) 1997-2014 Free Software Foundation, Inc.
fukasawa e60969
#
fukasawa e60969
# This file is free software; the Free Software Foundation
fukasawa e60969
# gives unlimited permission to copy and/or distribute it,
fukasawa e60969
# with or without modifications, as long as this notice is preserved.
fukasawa e60969
fukasawa e60969
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
fukasawa e60969
# -------------------------------------
fukasawa e60969
# Define a conditional.
fukasawa e60969
AC_DEFUN([AM_CONDITIONAL],
fukasawa e60969
[AC_PREREQ([2.52])dnl
fukasawa e60969
 m4_if([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
fukasawa e60969
       [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
fukasawa e60969
AC_SUBST([$1_TRUE])dnl
fukasawa e60969
AC_SUBST([$1_FALSE])dnl
fukasawa e60969
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
fukasawa e60969
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
fukasawa e60969
m4_define([_AM_COND_VALUE_$1], [$2])dnl
fukasawa e60969
if $2; then
fukasawa e60969
  $1_TRUE=
fukasawa e60969
  $1_FALSE='#'
fukasawa e60969
else
fukasawa e60969
  $1_TRUE='#'
fukasawa e60969
  $1_FALSE=
fukasawa e60969
fi
fukasawa e60969
AC_CONFIG_COMMANDS_PRE(
fukasawa e60969
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
fukasawa e60969
  AC_MSG_ERROR([[conditional "$1" was never defined.
fukasawa e60969
Usually this means the macro was only invoked conditionally.]])
fukasawa e60969
fi])])
fukasawa e60969
fukasawa e60969
# Copyright (C) 1999-2014 Free Software Foundation, Inc.
fukasawa e60969
#
fukasawa e60969
# This file is free software; the Free Software Foundation
fukasawa e60969
# gives unlimited permission to copy and/or distribute it,
fukasawa e60969
# with or without modifications, as long as this notice is preserved.
fukasawa e60969
fukasawa e60969
fukasawa e60969
# There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
fukasawa e60969
# written in clear, in which case automake, when reading aclocal.m4,
fukasawa e60969
# will think it sees a *use*, and therefore will trigger all it's
fukasawa e60969
# C support machinery.  Also note that it means that autoscan, seeing
fukasawa e60969
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
fukasawa e60969
fukasawa e60969
fukasawa e60969
# _AM_DEPENDENCIES(NAME)
fukasawa e60969
# ----------------------
fukasawa e60969
# See how the compiler implements dependency checking.
fukasawa e60969
# NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
fukasawa e60969
# We try a few techniques and use that to set a single cache variable.
fukasawa e60969
#
fukasawa e60969
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
fukasawa e60969
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
fukasawa e60969
# dependency, and given that the user is not expected to run this macro,
fukasawa e60969
# just rely on AC_PROG_CC.
fukasawa e60969
AC_DEFUN([_AM_DEPENDENCIES],
fukasawa e60969
[AC_REQUIRE([AM_SET_DEPDIR])dnl
fukasawa e60969
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
fukasawa e60969
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
fukasawa e60969
AC_REQUIRE([AM_DEP_TRACK])dnl
fukasawa e60969
fukasawa e60969
m4_if([$1], [CC],   [depcc="$CC"   am_compiler_list=],
fukasawa e60969
      [$1], [CXX],  [depcc="$CXX"  am_compiler_list=],
fukasawa e60969
      [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
fukasawa e60969
      [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
fukasawa e60969
      [$1], [UPC],  [depcc="$UPC"  am_compiler_list=],
fukasawa e60969
      [$1], [GCJ],  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
fukasawa e60969
                    [depcc="$$1"   am_compiler_list=])
fukasawa e60969
fukasawa e60969
AC_CACHE_CHECK([dependency style of $depcc],
fukasawa e60969
               [am_cv_$1_dependencies_compiler_type],
fukasawa e60969
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
fukasawa e60969
  # We make a subdir and do the tests there.  Otherwise we can end up
fukasawa e60969
  # making bogus files that we don't know about and never remove.  For
fukasawa e60969
  # instance it was reported that on HP-UX the gcc test will end up
fukasawa e60969
  # making a dummy file named 'D' -- because '-MD' means "put the output
fukasawa e60969
  # in D".
fukasawa e60969
  rm -rf conftest.dir
fukasawa e60969
  mkdir conftest.dir
fukasawa e60969
  # Copy depcomp to subdir because otherwise we won't find it if we're
fukasawa e60969
  # using a relative directory.
fukasawa e60969
  cp "$am_depcomp" conftest.dir
fukasawa e60969
  cd conftest.dir
fukasawa e60969
  # We will build objects and dependencies in a subdirectory because
fukasawa e60969
  # it helps to detect inapplicable dependency modes.  For instance
fukasawa e60969
  # both Tru64's cc and ICC support -MD to output dependencies as a
fukasawa e60969
  # side effect of compilation, but ICC will put the dependencies in
fukasawa e60969
  # the current directory while Tru64 will put them in the object
fukasawa e60969
  # directory.
fukasawa e60969
  mkdir sub
fukasawa e60969
fukasawa e60969
  am_cv_$1_dependencies_compiler_type=none
fukasawa e60969
  if test "$am_compiler_list" = ""; then
fukasawa e60969
     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
fukasawa e60969
  fi
fukasawa e60969
  am__universal=false
fukasawa e60969
  m4_case([$1], [CC],
fukasawa e60969
    [case " $depcc " in #(
fukasawa e60969
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
fukasawa e60969
     esac],
fukasawa e60969
    [CXX],
fukasawa e60969
    [case " $depcc " in #(
fukasawa e60969
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
fukasawa e60969
     esac])
fukasawa e60969
fukasawa e60969
  for depmode in $am_compiler_list; do
fukasawa e60969
    # Setup a source with many dependencies, because some compilers
fukasawa e60969
    # like to wrap large dependency lists on column 80 (with \), and
fukasawa e60969
    # we should not choose a depcomp mode which is confused by this.
fukasawa e60969
    #
fukasawa e60969
    # We need to recreate these files for each test, as the compiler may
fukasawa e60969
    # overwrite some of them when testing with obscure command lines.
fukasawa e60969
    # This happens at least with the AIX C compiler.
fukasawa e60969
    : > sub/conftest.c
fukasawa e60969
    for i in 1 2 3 4 5 6; do
fukasawa e60969
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
fukasawa e60969
      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
fukasawa e60969
      # Solaris 10 /bin/sh.
fukasawa e60969
      echo '/* dummy */' > sub/conftst$i.h
fukasawa e60969
    done
fukasawa e60969
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
fukasawa e60969
fukasawa e60969
    # We check with '-c' and '-o' for the sake of the "dashmstdout"
fukasawa e60969
    # mode.  It turns out that the SunPro C++ compiler does not properly
fukasawa e60969
    # handle '-M -o', and we need to detect this.  Also, some Intel
fukasawa e60969
    # versions had trouble with output in subdirs.
fukasawa e60969
    am__obj=sub/conftest.${OBJEXT-o}
fukasawa e60969
    am__minus_obj="-o $am__obj"
fukasawa e60969
    case $depmode in
fukasawa e60969
    gcc)
fukasawa e60969
      # This depmode causes a compiler race in universal mode.
fukasawa e60969
      test "$am__universal" = false || continue
fukasawa e60969
      ;;
fukasawa e60969
    nosideeffect)
fukasawa e60969
      # After this tag, mechanisms are not by side-effect, so they'll
fukasawa e60969
      # only be used when explicitly requested.
fukasawa e60969
      if test "x$enable_dependency_tracking" = xyes; then
fukasawa e60969
	continue
fukasawa e60969
      else
fukasawa e60969
	break
fukasawa e60969
      fi
fukasawa e60969
      ;;
fukasawa e60969
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
fukasawa e60969
      # This compiler won't grok '-c -o', but also, the minuso test has
fukasawa e60969
      # not run yet.  These depmodes are late enough in the game, and
fukasawa e60969
      # so weak that their functioning should not be impacted.
fukasawa e60969
      am__obj=conftest.${OBJEXT-o}
fukasawa e60969
      am__minus_obj=
fukasawa e60969
      ;;
fukasawa e60969
    none) break ;;
fukasawa e60969
    esac
fukasawa e60969
    if depmode=$depmode \
fukasawa e60969
       source=sub/conftest.c object=$am__obj \
fukasawa e60969
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
fukasawa e60969
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
fukasawa e60969
         >/dev/null 2>conftest.err &&
fukasawa e60969
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
fukasawa e60969
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
fukasawa e60969
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
fukasawa e60969
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
fukasawa e60969
      # icc doesn't choke on unknown options, it will just issue warnings
fukasawa e60969
      # or remarks (even with -Werror).  So we grep stderr for any message
fukasawa e60969
      # that says an option was ignored or not supported.
fukasawa e60969
      # When given -MP, icc 7.0 and 7.1 complain thusly:
fukasawa e60969
      #   icc: Command line warning: ignoring option '-M'; no argument required
fukasawa e60969
      # The diagnosis changed in icc 8.0:
fukasawa e60969
      #   icc: Command line remark: option '-MP' not supported
fukasawa e60969
      if (grep 'ignoring option' conftest.err ||
fukasawa e60969
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
fukasawa e60969
        am_cv_$1_dependencies_compiler_type=$depmode
fukasawa e60969
        break
fukasawa e60969
      fi
fukasawa e60969
    fi
fukasawa e60969
  done
fukasawa e60969
fukasawa e60969
  cd ..
fukasawa e60969
  rm -rf conftest.dir
fukasawa e60969
else
fukasawa e60969
  am_cv_$1_dependencies_compiler_type=none
fukasawa e60969
fi
fukasawa e60969
])
fukasawa e60969
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
fukasawa e60969
AM_CONDITIONAL([am__fastdep$1], [
fukasawa e60969
  test "x$enable_dependency_tracking" != xno \
fukasawa e60969
  && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
fukasawa e60969
])
fukasawa e60969
fukasawa e60969
fukasawa e60969
# AM_SET_DEPDIR
fukasawa e60969
# -------------
fukasawa e60969
# Choose a directory name for dependency files.
fukasawa e60969
# This macro is AC_REQUIREd in _AM_DEPENDENCIES.
fukasawa e60969
AC_DEFUN([AM_SET_DEPDIR],
fukasawa e60969
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
fukasawa e60969
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
fukasawa e60969
])
fukasawa e60969
fukasawa e60969
fukasawa e60969
# AM_DEP_TRACK
fukasawa e60969
# ------------
fukasawa e60969
AC_DEFUN([AM_DEP_TRACK],
fukasawa e60969
[AC_ARG_ENABLE([dependency-tracking], [dnl
fukasawa e60969
AS_HELP_STRING(
fukasawa e60969
  [--enable-dependency-tracking],
fukasawa e60969
  [do not reject slow dependency extractors])
fukasawa e60969
AS_HELP_STRING(
fukasawa e60969
  [--disable-dependency-tracking],
fukasawa e60969
  [speeds up one-time build])])
fukasawa e60969
if test "x$enable_dependency_tracking" != xno; then
fukasawa e60969
  am_depcomp="$ac_aux_dir/depcomp"
fukasawa e60969
  AMDEPBACKSLASH='\'
fukasawa e60969
  am__nodep='_no'
fukasawa e60969
fi
fukasawa e60969
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
fukasawa e60969
AC_SUBST([AMDEPBACKSLASH])dnl
fukasawa e60969
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
fukasawa e60969
AC_SUBST([am__nodep])dnl
fukasawa e60969
_AM_SUBST_NOTMAKE([am__nodep])dnl
fukasawa e60969
])
fukasawa e60969
fukasawa e60969
# Generate code to set up dependency tracking.              -*- Autoconf -*-
fukasawa e60969
fukasawa e60969
# Copyright (C) 1999-2014 Free Software Foundation, Inc.
fukasawa e60969
#
fukasawa e60969
# This file is free software; the Free Software Foundation
fukasawa e60969
# gives unlimited permission to copy and/or distribute it,
fukasawa e60969
# with or without modifications, as long as this notice is preserved.
fukasawa e60969
fukasawa e60969
fukasawa e60969
# _AM_OUTPUT_DEPENDENCY_COMMANDS
fukasawa e60969
# ------------------------------
fukasawa e60969
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
fukasawa e60969
[{
fukasawa e60969
  # Older Autoconf quotes --file arguments for eval, but not when files
fukasawa e60969
  # are listed without --file.  Let's play safe and only enable the eval
fukasawa e60969
  # if we detect the quoting.
fukasawa e60969
  case $CONFIG_FILES in
fukasawa e60969
  *\'*) eval set x "$CONFIG_FILES" ;;
fukasawa e60969
  *)   set x $CONFIG_FILES ;;
fukasawa e60969
  esac
fukasawa e60969
  shift
fukasawa e60969
  for mf
fukasawa e60969
  do
fukasawa e60969
    # Strip MF so we end up with the name of the file.
fukasawa e60969
    mf=`echo "$mf" | sed -e 's/:.*$//'`
fukasawa e60969
    # Check whether this is an Automake generated Makefile or not.
fukasawa e60969
    # We used to match only the files named 'Makefile.in', but
fukasawa e60969
    # some people rename them; so instead we look at the file content.
fukasawa e60969
    # Grep'ing the first line is not enough: some people post-process
fukasawa e60969
    # each Makefile.in and add a new line on top of each file to say so.
fukasawa e60969
    # Grep'ing the whole file is not good either: AIX grep has a line
fukasawa e60969
    # limit of 2048, but all sed's we know have understand at least 4000.
fukasawa e60969
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
fukasawa e60969
      dirpart=`AS_DIRNAME("$mf")`
fukasawa e60969
    else
fukasawa e60969
      continue
fukasawa e60969
    fi
fukasawa e60969
    # Extract the definition of DEPDIR, am__include, and am__quote
fukasawa e60969
    # from the Makefile without running 'make'.
fukasawa e60969
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
fukasawa e60969
    test -z "$DEPDIR" && continue
fukasawa e60969
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
fukasawa e60969
    test -z "$am__include" && continue
fukasawa e60969
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
fukasawa e60969
    # Find all dependency output files, they are included files with
fukasawa e60969
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
fukasawa e60969
    # simplest approach to changing $(DEPDIR) to its actual value in the
fukasawa e60969
    # expansion.
fukasawa e60969
    for file in `sed -n "
fukasawa e60969
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
fukasawa e60969
	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
fukasawa e60969
      # Make sure the directory exists.
fukasawa e60969
      test -f "$dirpart/$file" && continue
fukasawa e60969
      fdir=`AS_DIRNAME(["$file"])`
fukasawa e60969
      AS_MKDIR_P([$dirpart/$fdir])
fukasawa e60969
      # echo "creating $dirpart/$file"
fukasawa e60969
      echo '# dummy' > "$dirpart/$file"
fukasawa e60969
    done
fukasawa e60969
  done
fukasawa e60969
}
fukasawa e60969
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
fukasawa e60969
fukasawa e60969
fukasawa e60969
# AM_OUTPUT_DEPENDENCY_COMMANDS
fukasawa e60969
# -----------------------------
fukasawa e60969
# This macro should only be invoked once -- use via AC_REQUIRE.
fukasawa e60969
#
fukasawa e60969
# This code is only required when automatic dependency tracking
fukasawa e60969
# is enabled.  FIXME.  This creates each '.P' file that we will
fukasawa e60969
# need in order to bootstrap the dependency handling code.
fukasawa e60969
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
fukasawa e60969
[AC_CONFIG_COMMANDS([depfiles],
fukasawa e60969
     [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
fukasawa e60969
     [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
fukasawa e60969
])
fukasawa e60969
fukasawa e60969
# Do all the work for Automake.                             -*- Autoconf -*-
fukasawa e60969
fukasawa e60969
# Copyright (C) 1996-2014 Free Software Foundation, Inc.
fukasawa e60969
#
fukasawa e60969
# This file is free software; the Free Software Foundation
fukasawa e60969
# gives unlimited permission to copy and/or distribute it,
fukasawa e60969
# with or without modifications, as long as this notice is preserved.
fukasawa e60969
fukasawa e60969
# This macro actually does too much.  Some checks are only needed if
fukasawa e60969
# your package does certain things.  But this isn't really a big deal.
fukasawa e60969
fukasawa e60969
dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
fukasawa e60969
m4_define([AC_PROG_CC],
fukasawa e60969
m4_defn([AC_PROG_CC])
fukasawa e60969
[_AM_PROG_CC_C_O
fukasawa e60969
])
fukasawa e60969
fukasawa e60969
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
fukasawa e60969
# AM_INIT_AUTOMAKE([OPTIONS])
fukasawa e60969
# -----------------------------------------------
fukasawa e60969
# The call with PACKAGE and VERSION arguments is the old style
fukasawa e60969
# call (pre autoconf-2.50), which is being phased out.  PACKAGE
fukasawa e60969
# and VERSION should now be passed to AC_INIT and removed from
fukasawa e60969
# the call to AM_INIT_AUTOMAKE.
fukasawa e60969
# We support both call styles for the transition.  After
fukasawa e60969
# the next Automake release, Autoconf can make the AC_INIT
fukasawa e60969
# arguments mandatory, and then we can depend on a new Autoconf
fukasawa e60969
# release and drop the old call support.
fukasawa e60969
AC_DEFUN([AM_INIT_AUTOMAKE],
fukasawa e60969
[AC_PREREQ([2.65])dnl
fukasawa e60969
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
fukasawa e60969
dnl the ones we care about.
fukasawa e60969
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
fukasawa e60969
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
fukasawa e60969
AC_REQUIRE([AC_PROG_INSTALL])dnl
fukasawa e60969
if test "`cd $srcdir && pwd`" != "`pwd`"; then
fukasawa e60969
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
fukasawa e60969
  # is not polluted with repeated "-I."
fukasawa e60969
  AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
fukasawa e60969
  # test to see if srcdir already configured
fukasawa e60969
  if test -f $srcdir/config.status; then
fukasawa e60969
    AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
fukasawa e60969
  fi
fukasawa e60969
fi
fukasawa e60969
fukasawa e60969
# test whether we have cygpath
fukasawa e60969
if test -z "$CYGPATH_W"; then
fukasawa e60969
  if (cygpath --version) >/dev/null 2>/dev/null; then
fukasawa e60969
    CYGPATH_W='cygpath -w'
fukasawa e60969
  else
fukasawa e60969
    CYGPATH_W=echo
fukasawa e60969
  fi
fukasawa e60969
fi
fukasawa e60969
AC_SUBST([CYGPATH_W])
fukasawa e60969
fukasawa e60969
# Define the identity of the package.
fukasawa e60969
dnl Distinguish between old-style and new-style calls.
fukasawa e60969
m4_ifval([$2],
fukasawa e60969
[AC_DIAGNOSE([obsolete],
fukasawa e60969
             [$0: two- and three-arguments forms are deprecated.])
fukasawa e60969
m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
fukasawa e60969
 AC_SUBST([PACKAGE], [$1])dnl
fukasawa e60969
 AC_SUBST([VERSION], [$2])],
fukasawa e60969
[_AM_SET_OPTIONS([$1])dnl
fukasawa e60969
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
fukasawa e60969
m4_if(
fukasawa e60969
  m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
fukasawa e60969
  [ok:ok],,
fukasawa e60969
  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
fukasawa e60969
 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
fukasawa e60969
 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
fukasawa e60969
fukasawa e60969
_AM_IF_OPTION([no-define],,
fukasawa e60969
[AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
fukasawa e60969
 AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
fukasawa e60969
fukasawa e60969
# Some tools Automake needs.
fukasawa e60969
AC_REQUIRE([AM_SANITY_CHECK])dnl
fukasawa e60969
AC_REQUIRE([AC_ARG_PROGRAM])dnl
fukasawa e60969
AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
fukasawa e60969
AM_MISSING_PROG([AUTOCONF], [autoconf])
fukasawa e60969
AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
fukasawa e60969
AM_MISSING_PROG([AUTOHEADER], [autoheader])
fukasawa e60969
AM_MISSING_PROG([MAKEINFO], [makeinfo])
fukasawa e60969
AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
fukasawa e60969
AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
fukasawa e60969
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
fukasawa e60969
# For better backward compatibility.  To be removed once Automake 1.9.x
fukasawa e60969
# dies out for good.  For more background, see:
fukasawa e60969
# <http: 2012-07="" archive="" automake="" html="" lists.gnu.org="" msg00001.html=""></http:>
fukasawa e60969
# <http: 2012-07="" archive="" automake="" html="" lists.gnu.org="" msg00014.html=""></http:>
fukasawa e60969
AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
fukasawa e60969
# We need awk for the "check" target (and possibly the TAP driver).  The
fukasawa e60969
# system "awk" is bad on some platforms.
fukasawa e60969
AC_REQUIRE([AC_PROG_AWK])dnl
fukasawa e60969
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
fukasawa e60969
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
fukasawa e60969
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
fukasawa e60969
	      [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
fukasawa e60969
			     [_AM_PROG_TAR([v7])])])
fukasawa e60969
_AM_IF_OPTION([no-dependencies],,
fukasawa e60969
[AC_PROVIDE_IFELSE([AC_PROG_CC],
fukasawa e60969
		  [_AM_DEPENDENCIES([CC])],
fukasawa e60969
		  [m4_define([AC_PROG_CC],
fukasawa e60969
			     m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
fukasawa e60969
AC_PROVIDE_IFELSE([AC_PROG_CXX],
fukasawa e60969
		  [_AM_DEPENDENCIES([CXX])],
fukasawa e60969
		  [m4_define([AC_PROG_CXX],
fukasawa e60969
			     m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
fukasawa e60969
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
fukasawa e60969
		  [_AM_DEPENDENCIES([OBJC])],
fukasawa e60969
		  [m4_define([AC_PROG_OBJC],
fukasawa e60969
			     m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
fukasawa e60969
AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
fukasawa e60969
		  [_AM_DEPENDENCIES([OBJCXX])],
fukasawa e60969
		  [m4_define([AC_PROG_OBJCXX],
fukasawa e60969
			     m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
fukasawa e60969
])
fukasawa e60969
AC_REQUIRE([AM_SILENT_RULES])dnl
fukasawa e60969
dnl The testsuite driver may need to know about EXEEXT, so add the
fukasawa e60969
dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This
fukasawa e60969
dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
fukasawa e60969
AC_CONFIG_COMMANDS_PRE(dnl
fukasawa e60969
[m4_provide_if([_AM_COMPILER_EXEEXT],
fukasawa e60969
  [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
fukasawa e60969
fukasawa e60969
# POSIX will say in a future version that running "rm -f" with no argument
fukasawa e60969
# is OK; and we want to be able to make that assumption in our Makefile
fukasawa e60969
# recipes.  So use an aggressive probe to check that the usage we want is
fukasawa e60969
# actually supported "in the wild" to an acceptable degree.
fukasawa e60969
# See automake bug#10828.
fukasawa e60969
# To make any issue more visible, cause the running configure to be aborted
fukasawa e60969
# by default if the 'rm' program in use doesn't match our expectations; the
fukasawa e60969
# user can still override this though.
fukasawa e60969
if rm -f && rm -fr && rm -rf; then : OK; else
fukasawa e60969
  cat >&2 <<'END'
fukasawa e60969
Oops!
fukasawa e60969
fukasawa e60969
Your 'rm' program seems unable to run without file operands specified
fukasawa e60969
on the command line, even when the '-f' option is present.  This is contrary
fukasawa e60969
to the behaviour of most rm programs out there, and not conforming with
fukasawa e60969
the upcoming POSIX standard: <http: austingroupbugs.net="" view.php?id="542"></http:>
fukasawa e60969
fukasawa e60969
Please tell bug-automake@gnu.org about your system, including the value
fukasawa e60969
of your $PATH and any error possibly output before this message.  This
fukasawa e60969
can help us improve future automake versions.
fukasawa e60969
fukasawa e60969
END
fukasawa e60969
  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
fukasawa e60969
    echo 'Configuration will proceed anyway, since you have set the' >&2
fukasawa e60969
    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
fukasawa e60969
    echo >&2
fukasawa e60969
  else
fukasawa e60969
    cat >&2 <<'END'
fukasawa e60969
Aborting the configuration process, to ensure you take notice of the issue.
fukasawa e60969
fukasawa e60969
You can download and install GNU coreutils to get an 'rm' implementation
fukasawa e60969
that behaves properly: <http: coreutils="" software="" www.gnu.org="">.</http:>
fukasawa e60969
fukasawa e60969
If you want to complete the configuration process using your problematic
fukasawa e60969
'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
fukasawa e60969
to "yes", and re-run configure.
fukasawa e60969
fukasawa e60969
END
fukasawa e60969
    AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
fukasawa e60969
  fi
fukasawa e60969
fi
fukasawa e60969
dnl The trailing newline in this macro's definition is deliberate, for
fukasawa e60969
dnl backward compatibility and to allow trailing 'dnl'-style comments
fukasawa e60969
dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841.
fukasawa e60969
])
fukasawa e60969
fukasawa e60969
dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
fukasawa e60969
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
fukasawa e60969
dnl mangled by Autoconf and run in a shell conditional statement.
fukasawa e60969
m4_define([_AC_COMPILER_EXEEXT],
fukasawa e60969
m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
fukasawa e60969
fukasawa e60969
# When config.status generates a header, we must update the stamp-h file.
fukasawa e60969
# This file resides in the same directory as the config header
fukasawa e60969
# that is generated.  The stamp files are numbered to have different names.
fukasawa e60969
fukasawa e60969
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
fukasawa e60969
# loop where config.status creates the headers, so we can generate
fukasawa e60969
# our stamp files there.
fukasawa e60969
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
fukasawa e60969
[# Compute $1's index in $config_headers.
fukasawa e60969
_am_arg=$1
fukasawa e60969
_am_stamp_count=1
fukasawa e60969
for _am_header in $config_headers :; do
fukasawa e60969
  case $_am_header in
fukasawa e60969
    $_am_arg | $_am_arg:* )
fukasawa e60969
      break ;;
fukasawa e60969
    * )
fukasawa e60969
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
fukasawa e60969
  esac
fukasawa e60969
done
fukasawa e60969
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
fukasawa e60969
fukasawa e60969
# Copyright (C) 2001-2014 Free Software Foundation, Inc.
fukasawa e60969
#
fukasawa e60969
# This file is free software; the Free Software Foundation
fukasawa e60969
# gives unlimited permission to copy and/or distribute it,
fukasawa e60969
# with or without modifications, as long as this notice is preserved.
fukasawa e60969
fukasawa e60969
# AM_PROG_INSTALL_SH
fukasawa e60969
# ------------------
fukasawa e60969
# Define $install_sh.
fukasawa e60969
AC_DEFUN([AM_PROG_INSTALL_SH],
fukasawa e60969
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
fukasawa e60969
if test x"${install_sh+set}" != xset; then
fukasawa e60969
  case $am_aux_dir in
fukasawa e60969
  *\ * | *\	*)
fukasawa e60969
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
fukasawa e60969
  *)
fukasawa e60969
    install_sh="\${SHELL} $am_aux_dir/install-sh"
fukasawa e60969
  esac
fukasawa e60969
fi
fukasawa e60969
AC_SUBST([install_sh])])
fukasawa e60969
fukasawa e60969
# Copyright (C) 2003-2014 Free Software Foundation, Inc.
fukasawa e60969
#
fukasawa e60969
# This file is free software; the Free Software Foundation
fukasawa e60969
# gives unlimited permission to copy and/or distribute it,
fukasawa e60969
# with or without modifications, as long as this notice is preserved.
fukasawa e60969
fukasawa e60969
# Check whether the underlying file-system supports filenames
fukasawa e60969
# with a leading dot.  For instance MS-DOS doesn't.
fukasawa e60969
AC_DEFUN([AM_SET_LEADING_DOT],
fukasawa e60969
[rm -rf .tst 2>/dev/null
fukasawa e60969
mkdir .tst 2>/dev/null
fukasawa e60969
if test -d .tst; then
fukasawa e60969
  am__leading_dot=.
fukasawa e60969
else
fukasawa e60969
  am__leading_dot=_
fukasawa e60969
fi
fukasawa e60969
rmdir .tst 2>/dev/null
fukasawa e60969
AC_SUBST([am__leading_dot])])
fukasawa e60969
fukasawa e60969
# Add --enable-maintainer-mode option to configure.         -*- Autoconf -*-
fukasawa e60969
# From Jim Meyering
fukasawa e60969
fukasawa e60969
# Copyright (C) 1996-2014 Free Software Foundation, Inc.
fukasawa e60969
#
fukasawa e60969
# This file is free software; the Free Software Foundation
fukasawa e60969
# gives unlimited permission to copy and/or distribute it,
fukasawa e60969
# with or without modifications, as long as this notice is preserved.
fukasawa e60969
fukasawa e60969
# AM_MAINTAINER_MODE([DEFAULT-MODE])
fukasawa e60969
# ----------------------------------
fukasawa e60969
# Control maintainer-specific portions of Makefiles.
fukasawa e60969
# Default is to disable them, unless 'enable' is passed literally.
fukasawa e60969
# For symmetry, 'disable' may be passed as well.  Anyway, the user
fukasawa e60969
# can override the default with the --enable/--disable switch.
fukasawa e60969
AC_DEFUN([AM_MAINTAINER_MODE],
fukasawa e60969
[m4_case(m4_default([$1], [disable]),
fukasawa e60969
       [enable], [m4_define([am_maintainer_other], [disable])],
fukasawa e60969
       [disable], [m4_define([am_maintainer_other], [enable])],
fukasawa e60969
       [m4_define([am_maintainer_other], [enable])
fukasawa e60969
        m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
fukasawa e60969
AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
fukasawa e60969
  dnl maintainer-mode's default is 'disable' unless 'enable' is passed
fukasawa e60969
  AC_ARG_ENABLE([maintainer-mode],
fukasawa e60969
    [AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode],
fukasawa e60969
      am_maintainer_other[ make rules and dependencies not useful
fukasawa e60969
      (and sometimes confusing) to the casual installer])],
fukasawa e60969
    [USE_MAINTAINER_MODE=$enableval],
fukasawa e60969
    [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
fukasawa e60969
  AC_MSG_RESULT([$USE_MAINTAINER_MODE])
fukasawa e60969
  AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
fukasawa e60969
  MAINT=$MAINTAINER_MODE_TRUE
fukasawa e60969
  AC_SUBST([MAINT])dnl
fukasawa e60969
]
fukasawa e60969
)
fukasawa e60969
fukasawa e60969
# Check to see how 'make' treats includes.	            -*- Autoconf -*-
fukasawa e60969
fukasawa e60969
# Copyright (C) 2001-2014 Free Software Foundation, Inc.
fukasawa e60969
#
fukasawa e60969
# This file is free software; the Free Software Foundation
fukasawa e60969
# gives unlimited permission to copy and/or distribute it,
fukasawa e60969
# with or without modifications, as long as this notice is preserved.
fukasawa e60969
fukasawa e60969
# AM_MAKE_INCLUDE()
fukasawa e60969
# -----------------
fukasawa e60969
# Check to see how make treats includes.
fukasawa e60969
AC_DEFUN([AM_MAKE_INCLUDE],
fukasawa e60969
[am_make=${MAKE-make}
fukasawa e60969
cat > confinc << 'END'
fukasawa e60969
am__doit:
fukasawa e60969
	@echo this is the am__doit target
fukasawa e60969
.PHONY: am__doit
fukasawa e60969
END
fukasawa e60969
# If we don't find an include directive, just comment out the code.
fukasawa e60969
AC_MSG_CHECKING([for style of include used by $am_make])
fukasawa e60969
am__include="#"
fukasawa e60969
am__quote=
fukasawa e60969
_am_result=none
fukasawa e60969
# First try GNU make style include.
fukasawa e60969
echo "include confinc" > confmf
fukasawa e60969
# Ignore all kinds of additional output from 'make'.
fukasawa e60969
case `$am_make -s -f confmf 2> /dev/null` in #(
fukasawa e60969
*the\ am__doit\ target*)
fukasawa e60969
  am__include=include
fukasawa e60969
  am__quote=
fukasawa e60969
  _am_result=GNU
fukasawa e60969
  ;;
fukasawa e60969
esac
fukasawa e60969
# Now try BSD make style include.
fukasawa e60969
if test "$am__include" = "#"; then
fukasawa e60969
   echo '.include "confinc"' > confmf
fukasawa e60969
   case `$am_make -s -f confmf 2> /dev/null` in #(
fukasawa e60969
   *the\ am__doit\ target*)
fukasawa e60969
     am__include=.include
fukasawa e60969
     am__quote="\""
fukasawa e60969
     _am_result=BSD
fukasawa e60969
     ;;
fukasawa e60969
   esac
fukasawa e60969
fi
fukasawa e60969
AC_SUBST([am__include])
fukasawa e60969
AC_SUBST([am__quote])
fukasawa e60969
AC_MSG_RESULT([$_am_result])
fukasawa e60969
rm -f confinc confmf
fukasawa e60969
])
fukasawa e60969
fukasawa e60969
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
fukasawa e60969
fukasawa e60969
# Copyright (C) 1997-2014 Free Software Foundation, Inc.
fukasawa e60969
#
fukasawa e60969
# This file is free software; the Free Software Foundation
fukasawa e60969
# gives unlimited permission to copy and/or distribute it,
fukasawa e60969
# with or without modifications, as long as this notice is preserved.
fukasawa e60969
fukasawa e60969
# AM_MISSING_PROG(NAME, PROGRAM)
fukasawa e60969
# ------------------------------
fukasawa e60969
AC_DEFUN([AM_MISSING_PROG],
fukasawa e60969
[AC_REQUIRE([AM_MISSING_HAS_RUN])
fukasawa e60969
$1=${$1-"${am_missing_run}$2"}
fukasawa e60969
AC_SUBST($1)])
fukasawa e60969
fukasawa e60969
# AM_MISSING_HAS_RUN
fukasawa e60969
# ------------------
fukasawa e60969
# Define MISSING if not defined so far and test if it is modern enough.
fukasawa e60969
# If it is, set am_missing_run to use it, otherwise, to nothing.
fukasawa e60969
AC_DEFUN([AM_MISSING_HAS_RUN],
fukasawa e60969
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
fukasawa e60969
AC_REQUIRE_AUX_FILE([missing])dnl
fukasawa e60969
if test x"${MISSING+set}" != xset; then
fukasawa e60969
  case $am_aux_dir in
fukasawa e60969
  *\ * | *\	*)
fukasawa e60969
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
fukasawa e60969
  *)
fukasawa e60969
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
fukasawa e60969
  esac
fukasawa e60969
fi
fukasawa e60969
# Use eval to expand $SHELL
fukasawa e60969
if eval "$MISSING --is-lightweight"; then
fukasawa e60969
  am_missing_run="$MISSING "
fukasawa e60969
else
fukasawa e60969
  am_missing_run=
fukasawa e60969
  AC_MSG_WARN(['missing' script is too old or missing])
fukasawa e60969
fi
fukasawa e60969
])
fukasawa e60969
fukasawa e60969
# Helper functions for option handling.                     -*- Autoconf -*-
fukasawa e60969
fukasawa e60969
# Copyright (C) 2001-2014 Free Software Foundation, Inc.
fukasawa e60969
#
fukasawa e60969
# This file is free software; the Free Software Foundation
fukasawa e60969
# gives unlimited permission to copy and/or distribute it,
fukasawa e60969
# with or without modifications, as long as this notice is preserved.
fukasawa e60969
fukasawa e60969
# _AM_MANGLE_OPTION(NAME)
fukasawa e60969
# -----------------------
fukasawa e60969
AC_DEFUN([_AM_MANGLE_OPTION],
fukasawa e60969
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
fukasawa e60969
fukasawa e60969
# _AM_SET_OPTION(NAME)
fukasawa e60969
# --------------------
fukasawa e60969
# Set option NAME.  Presently that only means defining a flag for this option.
fukasawa e60969
AC_DEFUN([_AM_SET_OPTION],
fukasawa e60969
[m4_define(_AM_MANGLE_OPTION([$1]), [1])])
fukasawa e60969
fukasawa e60969
# _AM_SET_OPTIONS(OPTIONS)
fukasawa e60969
# ------------------------
fukasawa e60969
# OPTIONS is a space-separated list of Automake options.
fukasawa e60969
AC_DEFUN([_AM_SET_OPTIONS],
fukasawa e60969
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
fukasawa e60969
fukasawa e60969
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
fukasawa e60969
# -------------------------------------------
fukasawa e60969
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
fukasawa e60969
AC_DEFUN([_AM_IF_OPTION],
fukasawa e60969
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
fukasawa e60969
fukasawa e60969
# Copyright (C) 1999-2014 Free Software Foundation, Inc.
fukasawa e60969
#
fukasawa e60969
# This file is free software; the Free Software Foundation
fukasawa e60969
# gives unlimited permission to copy and/or distribute it,
fukasawa e60969
# with or without modifications, as long as this notice is preserved.
fukasawa e60969
fukasawa e60969
# _AM_PROG_CC_C_O
fukasawa e60969
# ---------------
fukasawa e60969
# Like AC_PROG_CC_C_O, but changed for automake.  We rewrite AC_PROG_CC
fukasawa e60969
# to automatically call this.
fukasawa e60969
AC_DEFUN([_AM_PROG_CC_C_O],
fukasawa e60969
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
fukasawa e60969
AC_REQUIRE_AUX_FILE([compile])dnl
fukasawa e60969
AC_LANG_PUSH([C])dnl
fukasawa e60969
AC_CACHE_CHECK(
fukasawa e60969
  [whether $CC understands -c and -o together],
fukasawa e60969
  [am_cv_prog_cc_c_o],
fukasawa e60969
  [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
fukasawa e60969
  # Make sure it works both with $CC and with simple cc.
fukasawa e60969
  # Following AC_PROG_CC_C_O, we do the test twice because some
fukasawa e60969
  # compilers refuse to overwrite an existing .o file with -o,
fukasawa e60969
  # though they will create one.
fukasawa e60969
  am_cv_prog_cc_c_o=yes
fukasawa e60969
  for am_i in 1 2; do
fukasawa e60969
    if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
fukasawa e60969
         && test -f conftest2.$ac_objext; then
fukasawa e60969
      : OK
fukasawa e60969
    else
fukasawa e60969
      am_cv_prog_cc_c_o=no
fukasawa e60969
      break
fukasawa e60969
    fi
fukasawa e60969
  done
fukasawa e60969
  rm -f core conftest*
fukasawa e60969
  unset am_i])
fukasawa e60969
if test "$am_cv_prog_cc_c_o" != yes; then
fukasawa e60969
   # Losing compiler, so override with the script.
fukasawa e60969
   # FIXME: It is wrong to rewrite CC.
fukasawa e60969
   # But if we don't then we get into trouble of one sort or another.
fukasawa e60969
   # A longer-term fix would be to have automake use am__CC in this case,
fukasawa e60969
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
fukasawa e60969
   CC="$am_aux_dir/compile $CC"
fukasawa e60969
fi
fukasawa e60969
AC_LANG_POP([C])])
fukasawa e60969
fukasawa e60969
# For backward compatibility.
fukasawa e60969
AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
fukasawa e60969
fukasawa e60969
# Copyright (C) 2001-2014 Free Software Foundation, Inc.
fukasawa e60969
#
fukasawa e60969
# This file is free software; the Free Software Foundation
fukasawa e60969
# gives unlimited permission to copy and/or distribute it,
fukasawa e60969
# with or without modifications, as long as this notice is preserved.
fukasawa e60969
fukasawa e60969
# AM_RUN_LOG(COMMAND)
fukasawa e60969
# -------------------
fukasawa e60969
# Run COMMAND, save the exit status in ac_status, and log it.
fukasawa e60969
# (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
fukasawa e60969
AC_DEFUN([AM_RUN_LOG],
fukasawa e60969
[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
fukasawa e60969
   ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
fukasawa e60969
   ac_status=$?
fukasawa e60969
   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
fukasawa e60969
   (exit $ac_status); }])
fukasawa e60969
fukasawa e60969
# Check to make sure that the build environment is sane.    -*- Autoconf -*-
fukasawa e60969
fukasawa e60969
# Copyright (C) 1996-2014 Free Software Foundation, Inc.
fukasawa e60969
#
fukasawa e60969
# This file is free software; the Free Software Foundation
fukasawa e60969
# gives unlimited permission to copy and/or distribute it,
fukasawa e60969
# with or without modifications, as long as this notice is preserved.
fukasawa e60969
fukasawa e60969
# AM_SANITY_CHECK
fukasawa e60969
# ---------------
fukasawa e60969
AC_DEFUN([AM_SANITY_CHECK],
fukasawa e60969
[AC_MSG_CHECKING([whether build environment is sane])
fukasawa e60969
# Reject unsafe characters in $srcdir or the absolute working directory
fukasawa e60969
# name.  Accept space and tab only in the latter.
fukasawa e60969
am_lf='
fukasawa e60969
'
fukasawa e60969
case `pwd` in
fukasawa e60969
  *[[\\\"\#\$\&\'\`$am_lf]]*)
fukasawa e60969
    AC_MSG_ERROR([unsafe absolute working directory name]);;
fukasawa e60969
esac
fukasawa e60969
case $srcdir in
fukasawa e60969
  *[[\\\"\#\$\&\'\`$am_lf\ \	]]*)
fukasawa e60969
    AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
fukasawa e60969
esac
fukasawa e60969
fukasawa e60969
# Do 'set' in a subshell so we don't clobber the current shell's
fukasawa e60969
# arguments.  Must try -L first in case configure is actually a
fukasawa e60969
# symlink; some systems play weird games with the mod time of symlinks
fukasawa e60969
# (eg FreeBSD returns the mod time of the symlink's containing
fukasawa e60969
# directory).
fukasawa e60969
if (
fukasawa e60969
   am_has_slept=no
fukasawa e60969
   for am_try in 1 2; do
fukasawa e60969
     echo "timestamp, slept: $am_has_slept" > conftest.file
fukasawa e60969
     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
fukasawa e60969
     if test "$[*]" = "X"; then
fukasawa e60969
	# -L didn't work.
fukasawa e60969
	set X `ls -t "$srcdir/configure" conftest.file`
fukasawa e60969
     fi
fukasawa e60969
     if test "$[*]" != "X $srcdir/configure conftest.file" \
fukasawa e60969
	&& test "$[*]" != "X conftest.file $srcdir/configure"; then
fukasawa e60969
fukasawa e60969
	# If neither matched, then we have a broken ls.  This can happen
fukasawa e60969
	# if, for instance, CONFIG_SHELL is bash and it inherits a
fukasawa e60969
	# broken ls alias from the environment.  This has actually
fukasawa e60969
	# happened.  Such a system could not be considered "sane".
fukasawa e60969
	AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
fukasawa e60969
  alias in your environment])
fukasawa e60969
     fi
fukasawa e60969
     if test "$[2]" = conftest.file || test $am_try -eq 2; then
fukasawa e60969
       break
fukasawa e60969
     fi
fukasawa e60969
     # Just in case.
fukasawa e60969
     sleep 1
fukasawa e60969
     am_has_slept=yes
fukasawa e60969
   done
fukasawa e60969
   test "$[2]" = conftest.file
fukasawa e60969
   )
fukasawa e60969
then
fukasawa e60969
   # Ok.
fukasawa e60969
   :
fukasawa e60969
else
fukasawa e60969
   AC_MSG_ERROR([newly created file is older than distributed files!
fukasawa e60969
Check your system clock])
fukasawa e60969
fi
fukasawa e60969
AC_MSG_RESULT([yes])
fukasawa e60969
# If we didn't sleep, we still need to ensure time stamps of config.status and
fukasawa e60969
# generated files are strictly newer.
fukasawa e60969
am_sleep_pid=
fukasawa e60969
if grep 'slept: no' conftest.file >/dev/null 2>&1; then
fukasawa e60969
  ( sleep 1 ) &
fukasawa e60969
  am_sleep_pid=$!
fukasawa e60969
fi
fukasawa e60969
AC_CONFIG_COMMANDS_PRE(
fukasawa e60969
  [AC_MSG_CHECKING([that generated files are newer than configure])
fukasawa e60969
   if test -n "$am_sleep_pid"; then
fukasawa e60969
     # Hide warnings about reused PIDs.
fukasawa e60969
     wait $am_sleep_pid 2>/dev/null
fukasawa e60969
   fi
fukasawa e60969
   AC_MSG_RESULT([done])])
fukasawa e60969
rm -f conftest.file
fukasawa e60969
])
fukasawa e60969
fukasawa e60969
# Copyright (C) 2009-2014 Free Software Foundation, Inc.
fukasawa e60969
#
fukasawa e60969
# This file is free software; the Free Software Foundation
fukasawa e60969
# gives unlimited permission to copy and/or distribute it,
fukasawa e60969
# with or without modifications, as long as this notice is preserved.
fukasawa e60969
fukasawa e60969
# AM_SILENT_RULES([DEFAULT])
fukasawa e60969
# --------------------------
fukasawa e60969
# Enable less verbose build rules; with the default set to DEFAULT
fukasawa e60969
# ("yes" being less verbose, "no" or empty being verbose).
fukasawa e60969
AC_DEFUN([AM_SILENT_RULES],
fukasawa e60969
[AC_ARG_ENABLE([silent-rules], [dnl
fukasawa e60969
AS_HELP_STRING(
fukasawa e60969
  [--enable-silent-rules],
fukasawa e60969
  [less verbose build output (undo: "make V=1")])
fukasawa e60969
AS_HELP_STRING(
fukasawa e60969
  [--disable-silent-rules],
fukasawa e60969
  [verbose build output (undo: "make V=0")])dnl
fukasawa e60969
])
fukasawa e60969
case $enable_silent_rules in @%:@ (((
fukasawa e60969
  yes) AM_DEFAULT_VERBOSITY=0;;
fukasawa e60969
   no) AM_DEFAULT_VERBOSITY=1;;
fukasawa e60969
    *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
fukasawa e60969
esac
fukasawa e60969
dnl
fukasawa e60969
dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
fukasawa e60969
dnl do not support nested variable expansions.
fukasawa e60969
dnl See automake bug#9928 and bug#10237.
fukasawa e60969
am_make=${MAKE-make}
fukasawa e60969
AC_CACHE_CHECK([whether $am_make supports nested variables],
fukasawa e60969
   [am_cv_make_support_nested_variables],
fukasawa e60969
   [if AS_ECHO([['TRUE=$(BAR$(V))
fukasawa e60969
BAR0=false
fukasawa e60969
BAR1=true
fukasawa e60969
V=1
fukasawa e60969
am__doit:
fukasawa e60969
	@$(TRUE)
fukasawa e60969
.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
fukasawa e60969
  am_cv_make_support_nested_variables=yes
fukasawa e60969
else
fukasawa e60969
  am_cv_make_support_nested_variables=no
fukasawa e60969
fi])
fukasawa e60969
if test $am_cv_make_support_nested_variables = yes; then
fukasawa e60969
  dnl Using '$V' instead of '$(V)' breaks IRIX make.
fukasawa e60969
  AM_V='$(V)'
fukasawa e60969
  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
fukasawa e60969
else
fukasawa e60969
  AM_V=$AM_DEFAULT_VERBOSITY
fukasawa e60969
  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
fukasawa e60969
fi
fukasawa e60969
AC_SUBST([AM_V])dnl
fukasawa e60969
AM_SUBST_NOTMAKE([AM_V])dnl
fukasawa e60969
AC_SUBST([AM_DEFAULT_V])dnl
fukasawa e60969
AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
fukasawa e60969
AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
fukasawa e60969
AM_BACKSLASH='\'
fukasawa e60969
AC_SUBST([AM_BACKSLASH])dnl
fukasawa e60969
_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
fukasawa e60969
])
fukasawa e60969
fukasawa e60969
# Copyright (C) 2001-2014 Free Software Foundation, Inc.
fukasawa e60969
#
fukasawa e60969
# This file is free software; the Free Software Foundation
fukasawa e60969
# gives unlimited permission to copy and/or distribute it,
fukasawa e60969
# with or without modifications, as long as this notice is preserved.
fukasawa e60969
fukasawa e60969
# AM_PROG_INSTALL_STRIP
fukasawa e60969
# ---------------------
fukasawa e60969
# One issue with vendor 'install' (even GNU) is that you can't
fukasawa e60969
# specify the program used to strip binaries.  This is especially
fukasawa e60969
# annoying in cross-compiling environments, where the build's strip
fukasawa e60969
# is unlikely to handle the host's binaries.
fukasawa e60969
# Fortunately install-sh will honor a STRIPPROG variable, so we
fukasawa e60969
# always use install-sh in "make install-strip", and initialize
fukasawa e60969
# STRIPPROG with the value of the STRIP variable (set by the user).
fukasawa e60969
AC_DEFUN([AM_PROG_INSTALL_STRIP],
fukasawa e60969
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
fukasawa e60969
# Installed binaries are usually stripped using 'strip' when the user
fukasawa e60969
# run "make install-strip".  However 'strip' might not be the right
fukasawa e60969
# tool to use in cross-compilation environments, therefore Automake
fukasawa e60969
# will honor the 'STRIP' environment variable to overrule this program.
fukasawa e60969
dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
fukasawa e60969
if test "$cross_compiling" != no; then
fukasawa e60969
  AC_CHECK_TOOL([STRIP], [strip], :)
fukasawa e60969
fi
fukasawa e60969
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
fukasawa e60969
AC_SUBST([INSTALL_STRIP_PROGRAM])])
fukasawa e60969
fukasawa e60969
# Copyright (C) 2006-2014 Free Software Foundation, Inc.
fukasawa e60969
#
fukasawa e60969
# This file is free software; the Free Software Foundation
fukasawa e60969
# gives unlimited permission to copy and/or distribute it,
fukasawa e60969
# with or without modifications, as long as this notice is preserved.
fukasawa e60969
fukasawa e60969
# _AM_SUBST_NOTMAKE(VARIABLE)
fukasawa e60969
# ---------------------------
fukasawa e60969
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
fukasawa e60969
# This macro is traced by Automake.
fukasawa e60969
AC_DEFUN([_AM_SUBST_NOTMAKE])
fukasawa e60969
fukasawa e60969
# AM_SUBST_NOTMAKE(VARIABLE)
fukasawa e60969
# --------------------------
fukasawa e60969
# Public sister of _AM_SUBST_NOTMAKE.
fukasawa e60969
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
fukasawa e60969
fukasawa e60969
# Check how to create a tarball.                            -*- Autoconf -*-
fukasawa e60969
fukasawa e60969
# Copyright (C) 2004-2014 Free Software Foundation, Inc.
fukasawa e60969
#
fukasawa e60969
# This file is free software; the Free Software Foundation
fukasawa e60969
# gives unlimited permission to copy and/or distribute it,
fukasawa e60969
# with or without modifications, as long as this notice is preserved.
fukasawa e60969
fukasawa e60969
# _AM_PROG_TAR(FORMAT)
fukasawa e60969
# --------------------
fukasawa e60969
# Check how to create a tarball in format FORMAT.
fukasawa e60969
# FORMAT should be one of 'v7', 'ustar', or 'pax'.
fukasawa e60969
#
fukasawa e60969
# Substitute a variable $(am__tar) that is a command
fukasawa e60969
# writing to stdout a FORMAT-tarball containing the directory
fukasawa e60969
# $tardir.
fukasawa e60969
#     tardir=directory && $(am__tar) > result.tar
fukasawa e60969
#
fukasawa e60969
# Substitute a variable $(am__untar) that extract such
fukasawa e60969
# a tarball read from stdin.
fukasawa e60969
#     $(am__untar) < result.tar
fukasawa e60969
#
fukasawa e60969
AC_DEFUN([_AM_PROG_TAR],
fukasawa e60969
[# Always define AMTAR for backward compatibility.  Yes, it's still used
fukasawa e60969
# in the wild :-(  We should find a proper way to deprecate it ...
fukasawa e60969
AC_SUBST([AMTAR], ['$${TAR-tar}'])
fukasawa e60969
fukasawa e60969
# We'll loop over all known methods to create a tar archive until one works.
fukasawa e60969
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
fukasawa e60969
fukasawa e60969
m4_if([$1], [v7],
fukasawa e60969
  [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
fukasawa e60969
fukasawa e60969
  [m4_case([$1],
fukasawa e60969
    [ustar],
fukasawa e60969
     [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
fukasawa e60969
      # There is notably a 21 bits limit for the UID and the GID.  In fact,
fukasawa e60969
      # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
fukasawa e60969
      # and bug#13588).
fukasawa e60969
      am_max_uid=2097151 # 2^21 - 1
fukasawa e60969
      am_max_gid=$am_max_uid
fukasawa e60969
      # The $UID and $GID variables are not portable, so we need to resort
fukasawa e60969
      # to the POSIX-mandated id(1) utility.  Errors in the 'id' calls
fukasawa e60969
      # below are definitely unexpected, so allow the users to see them
fukasawa e60969
      # (that is, avoid stderr redirection).
fukasawa e60969
      am_uid=`id -u || echo unknown`
fukasawa e60969
      am_gid=`id -g || echo unknown`
fukasawa e60969
      AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
fukasawa e60969
      if test $am_uid -le $am_max_uid; then
fukasawa e60969
         AC_MSG_RESULT([yes])
fukasawa e60969
      else
fukasawa e60969
         AC_MSG_RESULT([no])
fukasawa e60969
         _am_tools=none
fukasawa e60969
      fi
fukasawa e60969
      AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
fukasawa e60969
      if test $am_gid -le $am_max_gid; then
fukasawa e60969
         AC_MSG_RESULT([yes])
fukasawa e60969
      else
fukasawa e60969
        AC_MSG_RESULT([no])
fukasawa e60969
        _am_tools=none
fukasawa e60969
      fi],
fukasawa e60969
fukasawa e60969
  [pax],
fukasawa e60969
    [],
fukasawa e60969
fukasawa e60969
  [m4_fatal([Unknown tar format])])
fukasawa e60969
fukasawa e60969
  AC_MSG_CHECKING([how to create a $1 tar archive])
fukasawa e60969
fukasawa e60969
  # Go ahead even if we have the value already cached.  We do so because we
fukasawa e60969
  # need to set the values for the 'am__tar' and 'am__untar' variables.
fukasawa e60969
  _am_tools=${am_cv_prog_tar_$1-$_am_tools}
fukasawa e60969
fukasawa e60969
  for _am_tool in $_am_tools; do
fukasawa e60969
    case $_am_tool in
fukasawa e60969
    gnutar)
fukasawa e60969
      for _am_tar in tar gnutar gtar; do
fukasawa e60969
        AM_RUN_LOG([$_am_tar --version]) && break
fukasawa e60969
      done
fukasawa e60969
      am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
fukasawa e60969
      am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
fukasawa e60969
      am__untar="$_am_tar -xf -"
fukasawa e60969
      ;;
fukasawa e60969
    plaintar)
fukasawa e60969
      # Must skip GNU tar: if it does not support --format= it doesn't create
fukasawa e60969
      # ustar tarball either.
fukasawa e60969
      (tar --version) >/dev/null 2>&1 && continue
fukasawa e60969
      am__tar='tar chf - "$$tardir"'
fukasawa e60969
      am__tar_='tar chf - "$tardir"'
fukasawa e60969
      am__untar='tar xf -'
fukasawa e60969
      ;;
fukasawa e60969
    pax)
fukasawa e60969
      am__tar='pax -L -x $1 -w "$$tardir"'
fukasawa e60969
      am__tar_='pax -L -x $1 -w "$tardir"'
fukasawa e60969
      am__untar='pax -r'
fukasawa e60969
      ;;
fukasawa e60969
    cpio)
fukasawa e60969
      am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
fukasawa e60969
      am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
fukasawa e60969
      am__untar='cpio -i -H $1 -d'
fukasawa e60969
      ;;
fukasawa e60969
    none)
fukasawa e60969
      am__tar=false
fukasawa e60969
      am__tar_=false
fukasawa e60969
      am__untar=false
fukasawa e60969
      ;;
fukasawa e60969
    esac
fukasawa e60969
fukasawa e60969
    # If the value was cached, stop now.  We just wanted to have am__tar
fukasawa e60969
    # and am__untar set.
fukasawa e60969
    test -n "${am_cv_prog_tar_$1}" && break
fukasawa e60969
fukasawa e60969
    # tar/untar a dummy directory, and stop if the command works.
fukasawa e60969
    rm -rf conftest.dir
fukasawa e60969
    mkdir conftest.dir
fukasawa e60969
    echo GrepMe > conftest.dir/file
fukasawa e60969
    AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
fukasawa e60969
    rm -rf conftest.dir
fukasawa e60969
    if test -s conftest.tar; then
fukasawa e60969
      AM_RUN_LOG([$am__untar 
fukasawa e60969
      AM_RUN_LOG([cat conftest.dir/file])
fukasawa e60969
      grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
fukasawa e60969
    fi
fukasawa e60969
  done
fukasawa e60969
  rm -rf conftest.dir
fukasawa e60969
fukasawa e60969
  AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
fukasawa e60969
  AC_MSG_RESULT([$am_cv_prog_tar_$1])])
fukasawa e60969
fukasawa e60969
AC_SUBST([am__tar])
fukasawa e60969
AC_SUBST([am__untar])
fukasawa e60969
]) # _AM_PROG_TAR
fukasawa e60969
fukasawa e60969
m4_include([scripts/libtool.m4])
fukasawa e60969
m4_include([scripts/ltoptions.m4])
fukasawa e60969
m4_include([scripts/ltsugar.m4])
fukasawa e60969
m4_include([scripts/ltversion.m4])
fukasawa e60969
m4_include([scripts/lt~obsolete.m4])