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