1# generated automatically by aclocal 1.12.1 -*- Autoconf -*-
2
3# Copyright (C) 1996-2012 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_AUTOCONF_VERSION],
15  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
17[m4_warning([this file was generated for autoconf 2.69.
18You have another version of autoconf.  It may work, but is not guaranteed to.
19If you have problems, you may need to regenerate the build system entirely.
20To do so, use the procedure documented by the package, typically 'autoreconf'.])])
21
22# Copyright (C) 2002-2012 Free Software Foundation, Inc.
23#
24# This file is free software; the Free Software Foundation
25# gives unlimited permission to copy and/or distribute it,
26# with or without modifications, as long as this notice is preserved.
27
28# serial 8
29
30# AM_AUTOMAKE_VERSION(VERSION)
31# ----------------------------
32# Automake X.Y traces this macro to ensure aclocal.m4 has been
33# generated from the m4 files accompanying Automake X.Y.
34# (This private macro should not be called outside this file.)
35AC_DEFUN([AM_AUTOMAKE_VERSION],
36[am__api_version='1.12'
37dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
38dnl require some minimum version.  Point them to the right macro.
39m4_if([$1], [1.12.1], [],
40      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
41])
42
43# _AM_AUTOCONF_VERSION(VERSION)
44# -----------------------------
45# aclocal traces this macro to find the Autoconf version.
46# This is a private macro too.  Using m4_define simplifies
47# the logic in aclocal, which can simply ignore this definition.
48m4_define([_AM_AUTOCONF_VERSION], [])
49
50# AM_SET_CURRENT_AUTOMAKE_VERSION
51# -------------------------------
52# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
53# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
54AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
55[AM_AUTOMAKE_VERSION([1.12.1])dnl
56m4_ifndef([AC_AUTOCONF_VERSION],
57  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
58_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
59
60# Figure out how to run the assembler.                      -*- Autoconf -*-
61
62# Copyright (C) 2001-2012 Free Software Foundation, Inc.
63#
64# This file is free software; the Free Software Foundation
65# gives unlimited permission to copy and/or distribute it,
66# with or without modifications, as long as this notice is preserved.
67
68# serial 5
69
70# AM_PROG_AS
71# ----------
72AC_DEFUN([AM_PROG_AS],
73[# By default we simply use the C compiler to build assembly code.
74AC_REQUIRE([AC_PROG_CC])
75test "${CCAS+set}" = set || CCAS=$CC
76test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
77AC_ARG_VAR([CCAS],      [assembler compiler command (defaults to CC)])
78AC_ARG_VAR([CCASFLAGS], [assembler compiler flags (defaults to CFLAGS)])
79_AM_IF_OPTION([no-dependencies],, [_AM_DEPENDENCIES([CCAS])])dnl
80])
81
82# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
83
84# Copyright (C) 2001-2012 Free Software Foundation, Inc.
85#
86# This file is free software; the Free Software Foundation
87# gives unlimited permission to copy and/or distribute it,
88# with or without modifications, as long as this notice is preserved.
89
90# serial 2
91
92# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
93# $ac_aux_dir to '$srcdir/foo'.  In other projects, it is set to
94# '$srcdir', '$srcdir/..', or '$srcdir/../..'.
95#
96# Of course, Automake must honor this variable whenever it calls a
97# tool from the auxiliary directory.  The problem is that $srcdir (and
98# therefore $ac_aux_dir as well) can be either absolute or relative,
99# depending on how configure is run.  This is pretty annoying, since
100# it makes $ac_aux_dir quite unusable in subdirectories: in the top
101# source directory, any form will work fine, but in subdirectories a
102# relative path needs to be adjusted first.
103#
104# $ac_aux_dir/missing
105#    fails when called from a subdirectory if $ac_aux_dir is relative
106# $top_srcdir/$ac_aux_dir/missing
107#    fails if $ac_aux_dir is absolute,
108#    fails when called from a subdirectory in a VPATH build with
109#          a relative $ac_aux_dir
110#
111# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
112# are both prefixed by $srcdir.  In an in-source build this is usually
113# harmless because $srcdir is '.', but things will broke when you
114# start a VPATH build or use an absolute $srcdir.
115#
116# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
117# iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
118#   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
119# and then we would define $MISSING as
120#   MISSING="\${SHELL} $am_aux_dir/missing"
121# This will work as long as MISSING is not called from configure, because
122# unfortunately $(top_srcdir) has no meaning in configure.
123# However there are other variables, like CC, which are often used in
124# configure, and could therefore not use this "fixed" $ac_aux_dir.
125#
126# Another solution, used here, is to always expand $ac_aux_dir to an
127# absolute PATH.  The drawback is that using absolute paths prevent a
128# configured tree to be moved without reconfiguration.
129
130AC_DEFUN([AM_AUX_DIR_EXPAND],
131[dnl Rely on autoconf to set up CDPATH properly.
132AC_PREREQ([2.50])dnl
133# expand $ac_aux_dir to an absolute path
134am_aux_dir=`cd $ac_aux_dir && pwd`
135])
136
137# AM_CONDITIONAL                                            -*- Autoconf -*-
138
139# Copyright (C) 1997-2012 Free Software Foundation, Inc.
140#
141# This file is free software; the Free Software Foundation
142# gives unlimited permission to copy and/or distribute it,
143# with or without modifications, as long as this notice is preserved.
144
145# serial 10
146
147# AM_CONDITIONAL(NAME, SHELL-CONDITION)
148# -------------------------------------
149# Define a conditional.
150AC_DEFUN([AM_CONDITIONAL],
151[AC_PREREQ([2.52])dnl
152 m4_if([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
153       [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
154AC_SUBST([$1_TRUE])dnl
155AC_SUBST([$1_FALSE])dnl
156_AM_SUBST_NOTMAKE([$1_TRUE])dnl
157_AM_SUBST_NOTMAKE([$1_FALSE])dnl
158m4_define([_AM_COND_VALUE_$1], [$2])dnl
159if $2; then
160  $1_TRUE=
161  $1_FALSE='#'
162else
163  $1_TRUE='#'
164  $1_FALSE=
165fi
166AC_CONFIG_COMMANDS_PRE(
167[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
168  AC_MSG_ERROR([[conditional "$1" was never defined.
169Usually this means the macro was only invoked conditionally.]])
170fi])])
171
172# Copyright (C) 1999-2012 Free Software Foundation, Inc.
173#
174# This file is free software; the Free Software Foundation
175# gives unlimited permission to copy and/or distribute it,
176# with or without modifications, as long as this notice is preserved.
177
178# serial 17
179
180# There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
181# written in clear, in which case automake, when reading aclocal.m4,
182# will think it sees a *use*, and therefore will trigger all it's
183# C support machinery.  Also note that it means that autoscan, seeing
184# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
185
186
187# _AM_DEPENDENCIES(NAME)
188# ----------------------
189# See how the compiler implements dependency checking.
190# NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
191# We try a few techniques and use that to set a single cache variable.
192#
193# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
194# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
195# dependency, and given that the user is not expected to run this macro,
196# just rely on AC_PROG_CC.
197AC_DEFUN([_AM_DEPENDENCIES],
198[AC_REQUIRE([AM_SET_DEPDIR])dnl
199AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
200AC_REQUIRE([AM_MAKE_INCLUDE])dnl
201AC_REQUIRE([AM_DEP_TRACK])dnl
202
203m4_if([$1], [CC],   [depcc="$CC"   am_compiler_list=],
204      [$1], [CXX],  [depcc="$CXX"  am_compiler_list=],
205      [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
206      [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
207      [$1], [UPC],  [depcc="$UPC"  am_compiler_list=],
208      [$1], [GCJ],  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
209                    [depcc="$$1"   am_compiler_list=])
210
211AC_CACHE_CHECK([dependency style of $depcc],
212               [am_cv_$1_dependencies_compiler_type],
213[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
214  # We make a subdir and do the tests there.  Otherwise we can end up
215  # making bogus files that we don't know about and never remove.  For
216  # instance it was reported that on HP-UX the gcc test will end up
217  # making a dummy file named 'D' -- because '-MD' means "put the output
218  # in D".
219  rm -rf conftest.dir
220  mkdir conftest.dir
221  # Copy depcomp to subdir because otherwise we won't find it if we're
222  # using a relative directory.
223  cp "$am_depcomp" conftest.dir
224  cd conftest.dir
225  # We will build objects and dependencies in a subdirectory because
226  # it helps to detect inapplicable dependency modes.  For instance
227  # both Tru64's cc and ICC support -MD to output dependencies as a
228  # side effect of compilation, but ICC will put the dependencies in
229  # the current directory while Tru64 will put them in the object
230  # directory.
231  mkdir sub
232
233  am_cv_$1_dependencies_compiler_type=none
234  if test "$am_compiler_list" = ""; then
235     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
236  fi
237  am__universal=false
238  m4_case([$1], [CC],
239    [case " $depcc " in #(
240     *\ -arch\ *\ -arch\ *) am__universal=true ;;
241     esac],
242    [CXX],
243    [case " $depcc " in #(
244     *\ -arch\ *\ -arch\ *) am__universal=true ;;
245     esac])
246
247  for depmode in $am_compiler_list; do
248    # Setup a source with many dependencies, because some compilers
249    # like to wrap large dependency lists on column 80 (with \), and
250    # we should not choose a depcomp mode which is confused by this.
251    #
252    # We need to recreate these files for each test, as the compiler may
253    # overwrite some of them when testing with obscure command lines.
254    # This happens at least with the AIX C compiler.
255    : > sub/conftest.c
256    for i in 1 2 3 4 5 6; do
257      echo '#include "conftst'$i'.h"' >> sub/conftest.c
258      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
259      # Solaris 10 /bin/sh.
260      echo '/* dummy */' > sub/conftst$i.h
261    done
262    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
263
264    # We check with '-c' and '-o' for the sake of the "dashmstdout"
265    # mode.  It turns out that the SunPro C++ compiler does not properly
266    # handle '-M -o', and we need to detect this.  Also, some Intel
267    # versions had trouble with output in subdirs.
268    am__obj=sub/conftest.${OBJEXT-o}
269    am__minus_obj="-o $am__obj"
270    case $depmode in
271    gcc)
272      # This depmode causes a compiler race in universal mode.
273      test "$am__universal" = false || continue
274      ;;
275    nosideeffect)
276      # After this tag, mechanisms are not by side-effect, so they'll
277      # only be used when explicitly requested.
278      if test "x$enable_dependency_tracking" = xyes; then
279	continue
280      else
281	break
282      fi
283      ;;
284    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
285      # This compiler won't grok '-c -o', but also, the minuso test has
286      # not run yet.  These depmodes are late enough in the game, and
287      # so weak that their functioning should not be impacted.
288      am__obj=conftest.${OBJEXT-o}
289      am__minus_obj=
290      ;;
291    none) break ;;
292    esac
293    if depmode=$depmode \
294       source=sub/conftest.c object=$am__obj \
295       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
296       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
297         >/dev/null 2>conftest.err &&
298       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
299       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
300       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
301       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
302      # icc doesn't choke on unknown options, it will just issue warnings
303      # or remarks (even with -Werror).  So we grep stderr for any message
304      # that says an option was ignored or not supported.
305      # When given -MP, icc 7.0 and 7.1 complain thusly:
306      #   icc: Command line warning: ignoring option '-M'; no argument required
307      # The diagnosis changed in icc 8.0:
308      #   icc: Command line remark: option '-MP' not supported
309      if (grep 'ignoring option' conftest.err ||
310          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
311        am_cv_$1_dependencies_compiler_type=$depmode
312        break
313      fi
314    fi
315  done
316
317  cd ..
318  rm -rf conftest.dir
319else
320  am_cv_$1_dependencies_compiler_type=none
321fi
322])
323AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
324AM_CONDITIONAL([am__fastdep$1], [
325  test "x$enable_dependency_tracking" != xno \
326  && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
327])
328
329
330# AM_SET_DEPDIR
331# -------------
332# Choose a directory name for dependency files.
333# This macro is AC_REQUIREd in _AM_DEPENDENCIES.
334AC_DEFUN([AM_SET_DEPDIR],
335[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
336AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
337])
338
339
340# AM_DEP_TRACK
341# ------------
342AC_DEFUN([AM_DEP_TRACK],
343[AC_ARG_ENABLE([dependency-tracking], [dnl
344AS_HELP_STRING(
345  [--enable-dependency-tracking],
346  [do not reject slow dependency extractors])
347AS_HELP_STRING(
348  [--disable-dependency-tracking],
349  [speeds up one-time build])])
350if test "x$enable_dependency_tracking" != xno; then
351  am_depcomp="$ac_aux_dir/depcomp"
352  AMDEPBACKSLASH='\'
353  am__nodep='_no'
354fi
355AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
356AC_SUBST([AMDEPBACKSLASH])dnl
357_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
358AC_SUBST([am__nodep])dnl
359_AM_SUBST_NOTMAKE([am__nodep])dnl
360])
361
362# Generate code to set up dependency tracking.              -*- Autoconf -*-
363
364# Copyright (C) 1999-2012 Free Software Foundation, Inc.
365#
366# This file is free software; the Free Software Foundation
367# gives unlimited permission to copy and/or distribute it,
368# with or without modifications, as long as this notice is preserved.
369
370# serial 6
371
372# _AM_OUTPUT_DEPENDENCY_COMMANDS
373# ------------------------------
374AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
375[{
376  # Autoconf 2.62 quotes --file arguments for eval, but not when files
377  # are listed without --file.  Let's play safe and only enable the eval
378  # if we detect the quoting.
379  case $CONFIG_FILES in
380  *\'*) eval set x "$CONFIG_FILES" ;;
381  *)   set x $CONFIG_FILES ;;
382  esac
383  shift
384  for mf
385  do
386    # Strip MF so we end up with the name of the file.
387    mf=`echo "$mf" | sed -e 's/:.*$//'`
388    # Check whether this is an Automake generated Makefile or not.
389    # We used to match only the files named 'Makefile.in', but
390    # some people rename them; so instead we look at the file content.
391    # Grep'ing the first line is not enough: some people post-process
392    # each Makefile.in and add a new line on top of each file to say so.
393    # Grep'ing the whole file is not good either: AIX grep has a line
394    # limit of 2048, but all sed's we know have understand at least 4000.
395    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
396      dirpart=`AS_DIRNAME("$mf")`
397    else
398      continue
399    fi
400    # Extract the definition of DEPDIR, am__include, and am__quote
401    # from the Makefile without running 'make'.
402    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
403    test -z "$DEPDIR" && continue
404    am__include=`sed -n 's/^am__include = //p' < "$mf"`
405    test -z "am__include" && continue
406    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
407    # Find all dependency output files, they are included files with
408    # $(DEPDIR) in their names.  We invoke sed twice because it is the
409    # simplest approach to changing $(DEPDIR) to its actual value in the
410    # expansion.
411    for file in `sed -n "
412      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
413	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
414      # Make sure the directory exists.
415      test -f "$dirpart/$file" && continue
416      fdir=`AS_DIRNAME(["$file"])`
417      AS_MKDIR_P([$dirpart/$fdir])
418      # echo "creating $dirpart/$file"
419      echo '# dummy' > "$dirpart/$file"
420    done
421  done
422}
423])# _AM_OUTPUT_DEPENDENCY_COMMANDS
424
425
426# AM_OUTPUT_DEPENDENCY_COMMANDS
427# -----------------------------
428# This macro should only be invoked once -- use via AC_REQUIRE.
429#
430# This code is only required when automatic dependency tracking
431# is enabled.  FIXME.  This creates each '.P' file that we will
432# need in order to bootstrap the dependency handling code.
433AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
434[AC_CONFIG_COMMANDS([depfiles],
435     [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
436     [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
437])
438
439# Copyright (C) 1996-2012 Free Software Foundation, Inc.
440#
441# This file is free software; the Free Software Foundation
442# gives unlimited permission to copy and/or distribute it,
443# with or without modifications, as long as this notice is preserved.
444
445# serial 8
446
447# AM_CONFIG_HEADER is obsolete.  It has been replaced by AC_CONFIG_HEADERS.
448AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
449
450# Do all the work for Automake.                             -*- Autoconf -*-
451
452# Copyright (C) 1996-2012 Free Software Foundation, Inc.
453#
454# This file is free software; the Free Software Foundation
455# gives unlimited permission to copy and/or distribute it,
456# with or without modifications, as long as this notice is preserved.
457
458# serial 19
459
460# This macro actually does too much.  Some checks are only needed if
461# your package does certain things.  But this isn't really a big deal.
462
463# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
464# AM_INIT_AUTOMAKE([OPTIONS])
465# -----------------------------------------------
466# The call with PACKAGE and VERSION arguments is the old style
467# call (pre autoconf-2.50), which is being phased out.  PACKAGE
468# and VERSION should now be passed to AC_INIT and removed from
469# the call to AM_INIT_AUTOMAKE.
470# We support both call styles for the transition.  After
471# the next Automake release, Autoconf can make the AC_INIT
472# arguments mandatory, and then we can depend on a new Autoconf
473# release and drop the old call support.
474AC_DEFUN([AM_INIT_AUTOMAKE],
475[AC_PREREQ([2.62])dnl
476dnl Autoconf wants to disallow AM_ names.  We explicitly allow
477dnl the ones we care about.
478m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
479AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
480AC_REQUIRE([AC_PROG_INSTALL])dnl
481if test "`cd $srcdir && pwd`" != "`pwd`"; then
482  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
483  # is not polluted with repeated "-I."
484  AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
485  # test to see if srcdir already configured
486  if test -f $srcdir/config.status; then
487    AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
488  fi
489fi
490
491# test whether we have cygpath
492if test -z "$CYGPATH_W"; then
493  if (cygpath --version) >/dev/null 2>/dev/null; then
494    CYGPATH_W='cygpath -w'
495  else
496    CYGPATH_W=echo
497  fi
498fi
499AC_SUBST([CYGPATH_W])
500
501# Define the identity of the package.
502dnl Distinguish between old-style and new-style calls.
503m4_ifval([$2],
504[AC_DIAGNOSE([obsolete],
505[$0: two- and three-arguments forms are deprecated.  For more info, see:
506http://www.gnu.org/software/automake/manual/automake.html#Modernize-AM_INIT_AUTOMAKE-invocation])
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# We need awk for the "check" target.  The system "awk" is bad on
535# some platforms.
536AC_REQUIRE([AC_PROG_AWK])dnl
537AC_REQUIRE([AC_PROG_MAKE_SET])dnl
538AC_REQUIRE([AM_SET_LEADING_DOT])dnl
539_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
540	      [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
541			     [_AM_PROG_TAR([v7])])])
542_AM_IF_OPTION([no-dependencies],,
543[AC_PROVIDE_IFELSE([AC_PROG_CC],
544		  [_AM_DEPENDENCIES([CC])],
545		  [m4_define([AC_PROG_CC],
546			     m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
547AC_PROVIDE_IFELSE([AC_PROG_CXX],
548		  [_AM_DEPENDENCIES([CXX])],
549		  [m4_define([AC_PROG_CXX],
550			     m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
551AC_PROVIDE_IFELSE([AC_PROG_OBJC],
552		  [_AM_DEPENDENCIES([OBJC])],
553		  [m4_define([AC_PROG_OBJC],
554			     m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
555dnl Support for Objective C++ was only introduced in Autoconf 2.65,
556dnl but we still cater to Autoconf 2.62.
557m4_ifdef([AC_PROG_OBJCXX],
558[AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
559		  [_AM_DEPENDENCIES([OBJCXX])],
560		  [m4_define([AC_PROG_OBJCXX],
561			     m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])])dnl
562])
563_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
564dnl The 'parallel-tests' driver may need to know about EXEEXT, so add the
565dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This macro
566dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
567AC_CONFIG_COMMANDS_PRE(dnl
568[m4_provide_if([_AM_COMPILER_EXEEXT],
569  [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
570])
571
572dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
573dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
574dnl mangled by Autoconf and run in a shell conditional statement.
575m4_define([_AC_COMPILER_EXEEXT],
576m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
577
578
579# When config.status generates a header, we must update the stamp-h file.
580# This file resides in the same directory as the config header
581# that is generated.  The stamp files are numbered to have different names.
582
583# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
584# loop where config.status creates the headers, so we can generate
585# our stamp files there.
586AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
587[# Compute $1's index in $config_headers.
588_am_arg=$1
589_am_stamp_count=1
590for _am_header in $config_headers :; do
591  case $_am_header in
592    $_am_arg | $_am_arg:* )
593      break ;;
594    * )
595      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
596  esac
597done
598echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
599
600# Copyright (C) 2001-2012 Free Software Foundation, Inc.
601#
602# This file is free software; the Free Software Foundation
603# gives unlimited permission to copy and/or distribute it,
604# with or without modifications, as long as this notice is preserved.
605
606# serial 8
607
608# AM_PROG_INSTALL_SH
609# ------------------
610# Define $install_sh.
611AC_DEFUN([AM_PROG_INSTALL_SH],
612[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
613if test x"${install_sh}" != xset; then
614  case $am_aux_dir in
615  *\ * | *\	*)
616    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
617  *)
618    install_sh="\${SHELL} $am_aux_dir/install-sh"
619  esac
620fi
621AC_SUBST([install_sh])])
622
623# Copyright (C) 2003-2012 Free Software Foundation, Inc.
624#
625# This file is free software; the Free Software Foundation
626# gives unlimited permission to copy and/or distribute it,
627# with or without modifications, as long as this notice is preserved.
628
629# serial 2
630
631# Check whether the underlying file-system supports filenames
632# with a leading dot.  For instance MS-DOS doesn't.
633AC_DEFUN([AM_SET_LEADING_DOT],
634[rm -rf .tst 2>/dev/null
635mkdir .tst 2>/dev/null
636if test -d .tst; then
637  am__leading_dot=.
638else
639  am__leading_dot=_
640fi
641rmdir .tst 2>/dev/null
642AC_SUBST([am__leading_dot])])
643
644# Check to see how 'make' treats includes.	            -*- Autoconf -*-
645
646# Copyright (C) 2001-2012 Free Software Foundation, Inc.
647#
648# This file is free software; the Free Software Foundation
649# gives unlimited permission to copy and/or distribute it,
650# with or without modifications, as long as this notice is preserved.
651
652# serial 5
653
654# AM_MAKE_INCLUDE()
655# -----------------
656# Check to see how make treats includes.
657AC_DEFUN([AM_MAKE_INCLUDE],
658[am_make=${MAKE-make}
659cat > confinc << 'END'
660am__doit:
661	@echo this is the am__doit target
662.PHONY: am__doit
663END
664# If we don't find an include directive, just comment out the code.
665AC_MSG_CHECKING([for style of include used by $am_make])
666am__include="#"
667am__quote=
668_am_result=none
669# First try GNU make style include.
670echo "include confinc" > confmf
671# Ignore all kinds of additional output from 'make'.
672case `$am_make -s -f confmf 2> /dev/null` in #(
673*the\ am__doit\ target*)
674  am__include=include
675  am__quote=
676  _am_result=GNU
677  ;;
678esac
679# Now try BSD make style include.
680if test "$am__include" = "#"; then
681   echo '.include "confinc"' > confmf
682   case `$am_make -s -f confmf 2> /dev/null` in #(
683   *the\ am__doit\ target*)
684     am__include=.include
685     am__quote="\""
686     _am_result=BSD
687     ;;
688   esac
689fi
690AC_SUBST([am__include])
691AC_SUBST([am__quote])
692AC_MSG_RESULT([$_am_result])
693rm -f confinc confmf
694])
695
696# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
697
698# Copyright (C) 1997-2012 Free Software Foundation, Inc.
699#
700# This file is free software; the Free Software Foundation
701# gives unlimited permission to copy and/or distribute it,
702# with or without modifications, as long as this notice is preserved.
703
704# serial 7
705
706# AM_MISSING_PROG(NAME, PROGRAM)
707# ------------------------------
708AC_DEFUN([AM_MISSING_PROG],
709[AC_REQUIRE([AM_MISSING_HAS_RUN])
710$1=${$1-"${am_missing_run}$2"}
711AC_SUBST($1)])
712
713
714# AM_MISSING_HAS_RUN
715# ------------------
716# Define MISSING if not defined so far and test if it supports --run.
717# If it does, set am_missing_run to use it, otherwise, to nothing.
718AC_DEFUN([AM_MISSING_HAS_RUN],
719[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
720AC_REQUIRE_AUX_FILE([missing])dnl
721if test x"${MISSING+set}" != xset; then
722  case $am_aux_dir in
723  *\ * | *\	*)
724    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
725  *)
726    MISSING="\${SHELL} $am_aux_dir/missing" ;;
727  esac
728fi
729# Use eval to expand $SHELL
730if eval "$MISSING --run true"; then
731  am_missing_run="$MISSING --run "
732else
733  am_missing_run=
734  AC_MSG_WARN(['missing' script is too old or missing])
735fi
736])
737
738# Helper functions for option handling.                     -*- Autoconf -*-
739
740# Copyright (C) 2001-2012 Free Software Foundation, Inc.
741#
742# This file is free software; the Free Software Foundation
743# gives unlimited permission to copy and/or distribute it,
744# with or without modifications, as long as this notice is preserved.
745
746# serial 6
747
748# _AM_MANGLE_OPTION(NAME)
749# -----------------------
750AC_DEFUN([_AM_MANGLE_OPTION],
751[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
752
753# _AM_SET_OPTION(NAME)
754# --------------------
755# Set option NAME.  Presently that only means defining a flag for this option.
756AC_DEFUN([_AM_SET_OPTION],
757[m4_define(_AM_MANGLE_OPTION([$1]), [1])])
758
759# _AM_SET_OPTIONS(OPTIONS)
760# ------------------------
761# OPTIONS is a space-separated list of Automake options.
762AC_DEFUN([_AM_SET_OPTIONS],
763[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
764
765# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
766# -------------------------------------------
767# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
768AC_DEFUN([_AM_IF_OPTION],
769[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
770
771# Check to make sure that the build environment is sane.    -*- Autoconf -*-
772
773# Copyright (C) 1996-2012 Free Software Foundation, Inc.
774#
775# This file is free software; the Free Software Foundation
776# gives unlimited permission to copy and/or distribute it,
777# with or without modifications, as long as this notice is preserved.
778
779# serial 9
780
781# AM_SANITY_CHECK
782# ---------------
783AC_DEFUN([AM_SANITY_CHECK],
784[AC_MSG_CHECKING([whether build environment is sane])
785# Reject unsafe characters in $srcdir or the absolute working directory
786# name.  Accept space and tab only in the latter.
787am_lf='
788'
789case `pwd` in
790  *[[\\\"\#\$\&\'\`$am_lf]]*)
791    AC_MSG_ERROR([unsafe absolute working directory name]);;
792esac
793case $srcdir in
794  *[[\\\"\#\$\&\'\`$am_lf\ \	]]*)
795    AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
796esac
797
798# Do 'set' in a subshell so we don't clobber the current shell's
799# arguments.  Must try -L first in case configure is actually a
800# symlink; some systems play weird games with the mod time of symlinks
801# (eg FreeBSD returns the mod time of the symlink's containing
802# directory).
803if (
804   am_has_slept=no
805   for am_try in 1 2; do
806     echo "timestamp, slept: $am_has_slept" > conftest.file
807     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
808     if test "$[*]" = "X"; then
809	# -L didn't work.
810	set X `ls -t "$srcdir/configure" conftest.file`
811     fi
812     if test "$[*]" != "X $srcdir/configure conftest.file" \
813	&& test "$[*]" != "X conftest.file $srcdir/configure"; then
814
815	# If neither matched, then we have a broken ls.  This can happen
816	# if, for instance, CONFIG_SHELL is bash and it inherits a
817	# broken ls alias from the environment.  This has actually
818	# happened.  Such a system could not be considered "sane".
819	AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
820  alias in your environment])
821     fi
822     if test "$[2]" = conftest.file || test $am_try -eq 2; then
823       break
824     fi
825     # Just in case.
826     sleep 1
827     am_has_slept=yes
828   done
829   test "$[2]" = conftest.file
830   )
831then
832   # Ok.
833   :
834else
835   AC_MSG_ERROR([newly created file is older than distributed files!
836Check your system clock])
837fi
838AC_MSG_RESULT([yes])
839# If we didn't sleep, we still need to ensure time stamps of config.status and
840# generated files are strictly newer.
841am_sleep_pid=
842if grep 'slept: no' conftest.file >/dev/null 2>&1; then
843  ( sleep 1 ) &
844  am_sleep_pid=$!
845fi
846AC_CONFIG_COMMANDS_PRE(
847  [AC_MSG_CHECKING([that generated files are newer than configure])
848   if test -n "$am_sleep_pid"; then
849     # Hide warnings about reused PIDs.
850     wait $am_sleep_pid 2>/dev/null
851   fi
852   AC_MSG_RESULT([done])])
853rm -f conftest.file
854])
855
856# Copyright (C) 2001-2012 Free Software Foundation, Inc.
857#
858# This file is free software; the Free Software Foundation
859# gives unlimited permission to copy and/or distribute it,
860# with or without modifications, as long as this notice is preserved.
861
862# serial 2
863
864# AM_PROG_INSTALL_STRIP
865# ---------------------
866# One issue with vendor 'install' (even GNU) is that you can't
867# specify the program used to strip binaries.  This is especially
868# annoying in cross-compiling environments, where the build's strip
869# is unlikely to handle the host's binaries.
870# Fortunately install-sh will honor a STRIPPROG variable, so we
871# always use install-sh in "make install-strip", and initialize
872# STRIPPROG with the value of the STRIP variable (set by the user).
873AC_DEFUN([AM_PROG_INSTALL_STRIP],
874[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
875# Installed binaries are usually stripped using 'strip' when the user
876# run "make install-strip".  However 'strip' might not be the right
877# tool to use in cross-compilation environments, therefore Automake
878# will honor the 'STRIP' environment variable to overrule this program.
879dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
880if test "$cross_compiling" != no; then
881  AC_CHECK_TOOL([STRIP], [strip], :)
882fi
883INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
884AC_SUBST([INSTALL_STRIP_PROGRAM])])
885
886# Copyright (C) 2006-2012 Free Software Foundation, Inc.
887#
888# This file is free software; the Free Software Foundation
889# gives unlimited permission to copy and/or distribute it,
890# with or without modifications, as long as this notice is preserved.
891
892# serial 3
893
894# _AM_SUBST_NOTMAKE(VARIABLE)
895# ---------------------------
896# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
897# This macro is traced by Automake.
898AC_DEFUN([_AM_SUBST_NOTMAKE])
899
900# AM_SUBST_NOTMAKE(VARIABLE)
901# --------------------------
902# Public sister of _AM_SUBST_NOTMAKE.
903AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
904
905# Check how to create a tarball.                            -*- Autoconf -*-
906
907# Copyright (C) 2004-2012 Free Software Foundation, Inc.
908#
909# This file is free software; the Free Software Foundation
910# gives unlimited permission to copy and/or distribute it,
911# with or without modifications, as long as this notice is preserved.
912
913# serial 3
914
915# _AM_PROG_TAR(FORMAT)
916# --------------------
917# Check how to create a tarball in format FORMAT.
918# FORMAT should be one of 'v7', 'ustar', or 'pax'.
919#
920# Substitute a variable $(am__tar) that is a command
921# writing to stdout a FORMAT-tarball containing the directory
922# $tardir.
923#     tardir=directory && $(am__tar) > result.tar
924#
925# Substitute a variable $(am__untar) that extract such
926# a tarball read from stdin.
927#     $(am__untar) < result.tar
928AC_DEFUN([_AM_PROG_TAR],
929[# Always define AMTAR for backward compatibility.  Yes, it's still used
930# in the wild :-(  We should find a proper way to deprecate it ...
931AC_SUBST([AMTAR], ['$${TAR-tar}'])
932m4_if([$1], [v7],
933     [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
934     [m4_case([$1], [ustar],, [pax],,
935              [m4_fatal([Unknown tar format])])
936AC_MSG_CHECKING([how to create a $1 tar archive])
937# Loop over all known methods to create a tar archive until one works.
938_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
939_am_tools=${am_cv_prog_tar_$1-$_am_tools}
940# Do not fold the above two line into one, because Tru64 sh and
941# Solaris sh will not grok spaces in the rhs of '-'.
942for _am_tool in $_am_tools
943do
944  case $_am_tool in
945  gnutar)
946    for _am_tar in tar gnutar gtar;
947    do
948      AM_RUN_LOG([$_am_tar --version]) && break
949    done
950    am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
951    am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
952    am__untar="$_am_tar -xf -"
953    ;;
954  plaintar)
955    # Must skip GNU tar: if it does not support --format= it doesn't create
956    # ustar tarball either.
957    (tar --version) >/dev/null 2>&1 && continue
958    am__tar='tar chf - "$$tardir"'
959    am__tar_='tar chf - "$tardir"'
960    am__untar='tar xf -'
961    ;;
962  pax)
963    am__tar='pax -L -x $1 -w "$$tardir"'
964    am__tar_='pax -L -x $1 -w "$tardir"'
965    am__untar='pax -r'
966    ;;
967  cpio)
968    am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
969    am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
970    am__untar='cpio -i -H $1 -d'
971    ;;
972  none)
973    am__tar=false
974    am__tar_=false
975    am__untar=false
976    ;;
977  esac
978
979  # If the value was cached, stop now.  We just wanted to have am__tar
980  # and am__untar set.
981  test -n "${am_cv_prog_tar_$1}" && break
982
983  # tar/untar a dummy directory, and stop if the command works
984  rm -rf conftest.dir
985  mkdir conftest.dir
986  echo GrepMe > conftest.dir/file
987  AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
988  rm -rf conftest.dir
989  if test -s conftest.tar; then
990    AM_RUN_LOG([$am__untar <conftest.tar])
991    grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
992  fi
993done
994rm -rf conftest.dir
995
996AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
997AC_MSG_RESULT([$am_cv_prog_tar_$1])])
998AC_SUBST([am__tar])
999AC_SUBST([am__untar])
1000]) # _AM_PROG_TAR
1001
1002m4_include([acinclude.m4])
1003