1# generated automatically by aclocal 1.14.1 -*- 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# Configure paths for LIBXML2
24# Mike Hommey 2004-06-19
25# use CPPFLAGS instead of CFLAGS
26# Toshio Kuratomi 2001-04-21
27# Adapted from:
28# Configure paths for GLIB
29# Owen Taylor     97-11-3
30
31dnl AM_PATH_XML2([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])
32dnl Test for XML, and define XML_CPPFLAGS and XML_LIBS
33dnl
34AC_DEFUN([AM_PATH_XML2],[
35AC_ARG_WITH(xml-prefix,
36            [  --with-xml-prefix=PFX   Prefix where libxml is installed (optional)],
37            xml_config_prefix="$withval", xml_config_prefix="")
38AC_ARG_WITH(xml-exec-prefix,
39            [  --with-xml-exec-prefix=PFX Exec prefix where libxml is installed (optional)],
40            xml_config_exec_prefix="$withval", xml_config_exec_prefix="")
41AC_ARG_ENABLE(xmltest,
42              [  --disable-xmltest       Do not try to compile and run a test LIBXML program],,
43              enable_xmltest=yes)
44
45  if test x$xml_config_exec_prefix != x ; then
46     xml_config_args="$xml_config_args"
47     if test x${XML2_CONFIG+set} != xset ; then
48        XML2_CONFIG=$xml_config_exec_prefix/bin/xml2-config
49     fi
50  fi
51  if test x$xml_config_prefix != x ; then
52     xml_config_args="$xml_config_args --prefix=$xml_config_prefix"
53     if test x${XML2_CONFIG+set} != xset ; then
54        XML2_CONFIG=$xml_config_prefix/bin/xml2-config
55     fi
56  fi
57
58  AC_PATH_PROG(XML2_CONFIG, xml2-config, no)
59  min_xml_version=ifelse([$1], ,2.0.0,[$1])
60  AC_MSG_CHECKING(for libxml - version >= $min_xml_version)
61  no_xml=""
62  if test "$XML2_CONFIG" = "no" ; then
63    no_xml=yes
64  else
65    XML_CPPFLAGS=`$XML2_CONFIG $xml_config_args --cflags`
66    XML_LIBS=`$XML2_CONFIG $xml_config_args --libs`
67    xml_config_major_version=`$XML2_CONFIG $xml_config_args --version | \
68           sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
69    xml_config_minor_version=`$XML2_CONFIG $xml_config_args --version | \
70           sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
71    xml_config_micro_version=`$XML2_CONFIG $xml_config_args --version | \
72           sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
73    if test "x$enable_xmltest" = "xyes" ; then
74      ac_save_CPPFLAGS="$CPPFLAGS"
75      ac_save_LIBS="$LIBS"
76      CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
77      LIBS="$XML_LIBS $LIBS"
78dnl
79dnl Now check if the installed libxml is sufficiently new.
80dnl (Also sanity checks the results of xml2-config to some extent)
81dnl
82      rm -f conf.xmltest
83      AC_TRY_RUN([
84#include <stdlib.h>
85#include <stdio.h>
86#include <string.h>
87#include <libxml/xmlversion.h>
88
89int
90main()
91{
92  int xml_major_version, xml_minor_version, xml_micro_version;
93  int major, minor, micro;
94  char *tmp_version;
95
96  system("touch conf.xmltest");
97
98  /* Capture xml2-config output via autoconf/configure variables */
99  /* HP/UX 9 (%@#!) writes to sscanf strings */
100  tmp_version = (char *)strdup("$min_xml_version");
101  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
102     printf("%s, bad version string from xml2-config\n", "$min_xml_version");
103     exit(1);
104   }
105   free(tmp_version);
106
107   /* Capture the version information from the header files */
108   tmp_version = (char *)strdup(LIBXML_DOTTED_VERSION);
109   if (sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) {
110     printf("%s, bad version string from libxml includes\n", "LIBXML_DOTTED_VERSION");
111     exit(1);
112   }
113   free(tmp_version);
114
115 /* Compare xml2-config output to the libxml headers */
116  if ((xml_major_version != $xml_config_major_version) ||
117      (xml_minor_version != $xml_config_minor_version) ||
118      (xml_micro_version != $xml_config_micro_version))
119    {
120      printf("*** libxml header files (version %d.%d.%d) do not match\n",
121         xml_major_version, xml_minor_version, xml_micro_version);
122      printf("*** xml2-config (version %d.%d.%d)\n",
123         $xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version);
124      return 1;
125    }
126/* Compare the headers to the library to make sure we match */
127  /* Less than ideal -- doesn't provide us with return value feedback,
128   * only exits if there's a serious mismatch between header and library.
129   */
130    LIBXML_TEST_VERSION;
131
132    /* Test that the library is greater than our minimum version */
133    if ((xml_major_version > major) ||
134        ((xml_major_version == major) && (xml_minor_version > minor)) ||
135        ((xml_major_version == major) && (xml_minor_version == minor) &&
136        (xml_micro_version >= micro)))
137      {
138        return 0;
139       }
140     else
141      {
142        printf("\n*** An old version of libxml (%d.%d.%d) was found.\n",
143               xml_major_version, xml_minor_version, xml_micro_version);
144        printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n",
145           major, minor, micro);
146        printf("*** libxml is always available from ftp://ftp.xmlsoft.org.\n");
147        printf("***\n");
148        printf("*** If you have already installed a sufficiently new version, this error\n");
149        printf("*** probably means that the wrong copy of the xml2-config shell script is\n");
150        printf("*** being found. The easiest way to fix this is to remove the old version\n");
151        printf("*** of LIBXML, but you can also set the XML2_CONFIG environment to point to the\n");
152        printf("*** correct copy of xml2-config. (In this case, you will have to\n");
153        printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
154        printf("*** so that the correct libraries are found at run-time))\n");
155    }
156  return 1;
157}
158],, no_xml=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
159       CPPFLAGS="$ac_save_CPPFLAGS"
160       LIBS="$ac_save_LIBS"
161     fi
162  fi
163
164  if test "x$no_xml" = x ; then
165     AC_MSG_RESULT(yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version))
166     ifelse([$2], , :, [$2])
167  else
168     AC_MSG_RESULT(no)
169     if test "$XML2_CONFIG" = "no" ; then
170       echo "*** The xml2-config script installed by LIBXML could not be found"
171       echo "*** If libxml was installed in PREFIX, make sure PREFIX/bin is in"
172       echo "*** your path, or set the XML2_CONFIG environment variable to the"
173       echo "*** full path to xml2-config."
174     else
175       if test -f conf.xmltest ; then
176        :
177       else
178          echo "*** Could not run libxml test program, checking why..."
179          CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
180          LIBS="$LIBS $XML_LIBS"
181          AC_TRY_LINK([
182#include <libxml/xmlversion.h>
183#include <stdio.h>
184],      [ LIBXML_TEST_VERSION; return 0;],
185        [ echo "*** The test program compiled, but did not run. This usually means"
186          echo "*** that the run-time linker is not finding LIBXML or finding the wrong"
187          echo "*** version of LIBXML. If it is not finding LIBXML, you'll need to set your"
188          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
189          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
190          echo "*** is required on your system"
191          echo "***"
192          echo "*** If you have an old version installed, it is best to remove it, although"
193          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" ],
194        [ echo "*** The test program failed to compile or link. See the file config.log for the"
195          echo "*** exact error that occured. This usually means LIBXML was incorrectly installed"
196          echo "*** or that you have moved LIBXML since it was installed. In the latter case, you"
197          echo "*** may want to edit the xml2-config script: $XML2_CONFIG" ])
198          CPPFLAGS="$ac_save_CPPFLAGS"
199          LIBS="$ac_save_LIBS"
200       fi
201     fi
202
203     XML_CPPFLAGS=""
204     XML_LIBS=""
205     ifelse([$3], , :, [$3])
206  fi
207  AC_SUBST(XML_CPPFLAGS)
208  AC_SUBST(XML_LIBS)
209  rm -f conf.xmltest
210])
211
212# pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
213# serial 1 (pkg-config-0.24)
214#
215# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
216#
217# This program is free software; you can redistribute it and/or modify
218# it under the terms of the GNU General Public License as published by
219# the Free Software Foundation; either version 2 of the License, or
220# (at your option) any later version.
221#
222# This program is distributed in the hope that it will be useful, but
223# WITHOUT ANY WARRANTY; without even the implied warranty of
224# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
225# General Public License for more details.
226#
227# You should have received a copy of the GNU General Public License
228# along with this program; if not, write to the Free Software
229# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
230#
231# As a special exception to the GNU General Public License, if you
232# distribute this file as part of a program that contains a
233# configuration script generated by Autoconf, you may include it under
234# the same distribution terms that you use for the rest of that program.
235
236# PKG_PROG_PKG_CONFIG([MIN-VERSION])
237# ----------------------------------
238AC_DEFUN([PKG_PROG_PKG_CONFIG],
239[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
240m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$])
241m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$])
242AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
243AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
244AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
245
246if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
247	AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
248fi
249if test -n "$PKG_CONFIG"; then
250	_pkg_min_version=m4_default([$1], [0.9.0])
251	AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
252	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
253		AC_MSG_RESULT([yes])
254	else
255		AC_MSG_RESULT([no])
256		PKG_CONFIG=""
257	fi
258fi[]dnl
259])# PKG_PROG_PKG_CONFIG
260
261# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
262#
263# Check to see whether a particular set of modules exists.  Similar
264# to PKG_CHECK_MODULES(), but does not set variables or print errors.
265#
266# Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
267# only at the first occurence in configure.ac, so if the first place
268# it's called might be skipped (such as if it is within an "if", you
269# have to call PKG_CHECK_EXISTS manually
270# --------------------------------------------------------------
271AC_DEFUN([PKG_CHECK_EXISTS],
272[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
273if test -n "$PKG_CONFIG" && \
274    AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
275  m4_default([$2], [:])
276m4_ifvaln([$3], [else
277  $3])dnl
278fi])
279
280# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
281# ---------------------------------------------
282m4_define([_PKG_CONFIG],
283[if test -n "$$1"; then
284    pkg_cv_[]$1="$$1"
285 elif test -n "$PKG_CONFIG"; then
286    PKG_CHECK_EXISTS([$3],
287                     [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`
288		      test "x$?" != "x0" && pkg_failed=yes ],
289		     [pkg_failed=yes])
290 else
291    pkg_failed=untried
292fi[]dnl
293])# _PKG_CONFIG
294
295# _PKG_SHORT_ERRORS_SUPPORTED
296# -----------------------------
297AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
298[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
299if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
300        _pkg_short_errors_supported=yes
301else
302        _pkg_short_errors_supported=no
303fi[]dnl
304])# _PKG_SHORT_ERRORS_SUPPORTED
305
306
307# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
308# [ACTION-IF-NOT-FOUND])
309#
310#
311# Note that if there is a possibility the first call to
312# PKG_CHECK_MODULES might not happen, you should be sure to include an
313# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
314#
315#
316# --------------------------------------------------------------
317AC_DEFUN([PKG_CHECK_MODULES],
318[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
319AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
320AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
321
322pkg_failed=no
323AC_MSG_CHECKING([for $1])
324
325_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
326_PKG_CONFIG([$1][_LIBS], [libs], [$2])
327
328m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
329and $1[]_LIBS to avoid the need to call pkg-config.
330See the pkg-config man page for more details.])
331
332if test $pkg_failed = yes; then
333   	AC_MSG_RESULT([no])
334        _PKG_SHORT_ERRORS_SUPPORTED
335        if test $_pkg_short_errors_supported = yes; then
336	        $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1`
337        else
338	        $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
339        fi
340	# Put the nasty error message in config.log where it belongs
341	echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
342
343	m4_default([$4], [AC_MSG_ERROR(
344[Package requirements ($2) were not met:
345
346$$1_PKG_ERRORS
347
348Consider adjusting the PKG_CONFIG_PATH environment variable if you
349installed software in a non-standard prefix.
350
351_PKG_TEXT])[]dnl
352        ])
353elif test $pkg_failed = untried; then
354     	AC_MSG_RESULT([no])
355	m4_default([$4], [AC_MSG_FAILURE(
356[The pkg-config script could not be found or is too old.  Make sure it
357is in your PATH or set the PKG_CONFIG environment variable to the full
358path to pkg-config.
359
360_PKG_TEXT
361
362To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl
363        ])
364else
365	$1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
366	$1[]_LIBS=$pkg_cv_[]$1[]_LIBS
367        AC_MSG_RESULT([yes])
368	$3
369fi[]dnl
370])# PKG_CHECK_MODULES
371
372
373# PKG_INSTALLDIR(DIRECTORY)
374# -------------------------
375# Substitutes the variable pkgconfigdir as the location where a module
376# should install pkg-config .pc files. By default the directory is
377# $libdir/pkgconfig, but the default can be changed by passing
378# DIRECTORY. The user can override through the --with-pkgconfigdir
379# parameter.
380AC_DEFUN([PKG_INSTALLDIR],
381[m4_pushdef([pkg_default], [m4_default([$1], ['${libdir}/pkgconfig'])])
382m4_pushdef([pkg_description],
383    [pkg-config installation directory @<:@]pkg_default[@:>@])
384AC_ARG_WITH([pkgconfigdir],
385    [AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],,
386    [with_pkgconfigdir=]pkg_default)
387AC_SUBST([pkgconfigdir], [$with_pkgconfigdir])
388m4_popdef([pkg_default])
389m4_popdef([pkg_description])
390]) dnl PKG_INSTALLDIR
391
392
393# PKG_NOARCH_INSTALLDIR(DIRECTORY)
394# -------------------------
395# Substitutes the variable noarch_pkgconfigdir as the location where a
396# module should install arch-independent pkg-config .pc files. By
397# default the directory is $datadir/pkgconfig, but the default can be
398# changed by passing DIRECTORY. The user can override through the
399# --with-noarch-pkgconfigdir parameter.
400AC_DEFUN([PKG_NOARCH_INSTALLDIR],
401[m4_pushdef([pkg_default], [m4_default([$1], ['${datadir}/pkgconfig'])])
402m4_pushdef([pkg_description],
403    [pkg-config arch-independent installation directory @<:@]pkg_default[@:>@])
404AC_ARG_WITH([noarch-pkgconfigdir],
405    [AS_HELP_STRING([--with-noarch-pkgconfigdir], pkg_description)],,
406    [with_noarch_pkgconfigdir=]pkg_default)
407AC_SUBST([noarch_pkgconfigdir], [$with_noarch_pkgconfigdir])
408m4_popdef([pkg_default])
409m4_popdef([pkg_description])
410]) dnl PKG_NOARCH_INSTALLDIR
411
412
413# PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE,
414# [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
415# -------------------------------------------
416# Retrieves the value of the pkg-config variable for the given module.
417AC_DEFUN([PKG_CHECK_VAR],
418[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
419AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl
420
421_PKG_CONFIG([$1], [variable="][$3]["], [$2])
422AS_VAR_COPY([$1], [pkg_cv_][$1])
423
424AS_VAR_IF([$1], [""], [$5], [$4])dnl
425])# PKG_CHECK_VAR
426
427# Copyright (C) 2002-2013 Free Software Foundation, Inc.
428#
429# This file is free software; the Free Software Foundation
430# gives unlimited permission to copy and/or distribute it,
431# with or without modifications, as long as this notice is preserved.
432
433# AM_AUTOMAKE_VERSION(VERSION)
434# ----------------------------
435# Automake X.Y traces this macro to ensure aclocal.m4 has been
436# generated from the m4 files accompanying Automake X.Y.
437# (This private macro should not be called outside this file.)
438AC_DEFUN([AM_AUTOMAKE_VERSION],
439[am__api_version='1.14'
440dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
441dnl require some minimum version.  Point them to the right macro.
442m4_if([$1], [1.14.1], [],
443      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
444])
445
446# _AM_AUTOCONF_VERSION(VERSION)
447# -----------------------------
448# aclocal traces this macro to find the Autoconf version.
449# This is a private macro too.  Using m4_define simplifies
450# the logic in aclocal, which can simply ignore this definition.
451m4_define([_AM_AUTOCONF_VERSION], [])
452
453# AM_SET_CURRENT_AUTOMAKE_VERSION
454# -------------------------------
455# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
456# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
457AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
458[AM_AUTOMAKE_VERSION([1.14.1])dnl
459m4_ifndef([AC_AUTOCONF_VERSION],
460  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
461_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
462
463# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
464
465# Copyright (C) 2001-2013 Free Software Foundation, Inc.
466#
467# This file is free software; the Free Software Foundation
468# gives unlimited permission to copy and/or distribute it,
469# with or without modifications, as long as this notice is preserved.
470
471# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
472# $ac_aux_dir to '$srcdir/foo'.  In other projects, it is set to
473# '$srcdir', '$srcdir/..', or '$srcdir/../..'.
474#
475# Of course, Automake must honor this variable whenever it calls a
476# tool from the auxiliary directory.  The problem is that $srcdir (and
477# therefore $ac_aux_dir as well) can be either absolute or relative,
478# depending on how configure is run.  This is pretty annoying, since
479# it makes $ac_aux_dir quite unusable in subdirectories: in the top
480# source directory, any form will work fine, but in subdirectories a
481# relative path needs to be adjusted first.
482#
483# $ac_aux_dir/missing
484#    fails when called from a subdirectory if $ac_aux_dir is relative
485# $top_srcdir/$ac_aux_dir/missing
486#    fails if $ac_aux_dir is absolute,
487#    fails when called from a subdirectory in a VPATH build with
488#          a relative $ac_aux_dir
489#
490# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
491# are both prefixed by $srcdir.  In an in-source build this is usually
492# harmless because $srcdir is '.', but things will broke when you
493# start a VPATH build or use an absolute $srcdir.
494#
495# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
496# iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
497#   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
498# and then we would define $MISSING as
499#   MISSING="\${SHELL} $am_aux_dir/missing"
500# This will work as long as MISSING is not called from configure, because
501# unfortunately $(top_srcdir) has no meaning in configure.
502# However there are other variables, like CC, which are often used in
503# configure, and could therefore not use this "fixed" $ac_aux_dir.
504#
505# Another solution, used here, is to always expand $ac_aux_dir to an
506# absolute PATH.  The drawback is that using absolute paths prevent a
507# configured tree to be moved without reconfiguration.
508
509AC_DEFUN([AM_AUX_DIR_EXPAND],
510[AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
511# Expand $ac_aux_dir to an absolute path.
512am_aux_dir=`cd "$ac_aux_dir" && pwd`
513])
514
515# AM_CONDITIONAL                                            -*- Autoconf -*-
516
517# Copyright (C) 1997-2013 Free Software Foundation, Inc.
518#
519# This file is free software; the Free Software Foundation
520# gives unlimited permission to copy and/or distribute it,
521# with or without modifications, as long as this notice is preserved.
522
523# AM_CONDITIONAL(NAME, SHELL-CONDITION)
524# -------------------------------------
525# Define a conditional.
526AC_DEFUN([AM_CONDITIONAL],
527[AC_PREREQ([2.52])dnl
528 m4_if([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
529       [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
530AC_SUBST([$1_TRUE])dnl
531AC_SUBST([$1_FALSE])dnl
532_AM_SUBST_NOTMAKE([$1_TRUE])dnl
533_AM_SUBST_NOTMAKE([$1_FALSE])dnl
534m4_define([_AM_COND_VALUE_$1], [$2])dnl
535if $2; then
536  $1_TRUE=
537  $1_FALSE='#'
538else
539  $1_TRUE='#'
540  $1_FALSE=
541fi
542AC_CONFIG_COMMANDS_PRE(
543[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
544  AC_MSG_ERROR([[conditional "$1" was never defined.
545Usually this means the macro was only invoked conditionally.]])
546fi])])
547
548# Copyright (C) 1999-2013 Free Software Foundation, Inc.
549#
550# This file is free software; the Free Software Foundation
551# gives unlimited permission to copy and/or distribute it,
552# with or without modifications, as long as this notice is preserved.
553
554
555# There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
556# written in clear, in which case automake, when reading aclocal.m4,
557# will think it sees a *use*, and therefore will trigger all it's
558# C support machinery.  Also note that it means that autoscan, seeing
559# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
560
561
562# _AM_DEPENDENCIES(NAME)
563# ----------------------
564# See how the compiler implements dependency checking.
565# NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
566# We try a few techniques and use that to set a single cache variable.
567#
568# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
569# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
570# dependency, and given that the user is not expected to run this macro,
571# just rely on AC_PROG_CC.
572AC_DEFUN([_AM_DEPENDENCIES],
573[AC_REQUIRE([AM_SET_DEPDIR])dnl
574AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
575AC_REQUIRE([AM_MAKE_INCLUDE])dnl
576AC_REQUIRE([AM_DEP_TRACK])dnl
577
578m4_if([$1], [CC],   [depcc="$CC"   am_compiler_list=],
579      [$1], [CXX],  [depcc="$CXX"  am_compiler_list=],
580      [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
581      [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
582      [$1], [UPC],  [depcc="$UPC"  am_compiler_list=],
583      [$1], [GCJ],  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
584                    [depcc="$$1"   am_compiler_list=])
585
586AC_CACHE_CHECK([dependency style of $depcc],
587               [am_cv_$1_dependencies_compiler_type],
588[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
589  # We make a subdir and do the tests there.  Otherwise we can end up
590  # making bogus files that we don't know about and never remove.  For
591  # instance it was reported that on HP-UX the gcc test will end up
592  # making a dummy file named 'D' -- because '-MD' means "put the output
593  # in D".
594  rm -rf conftest.dir
595  mkdir conftest.dir
596  # Copy depcomp to subdir because otherwise we won't find it if we're
597  # using a relative directory.
598  cp "$am_depcomp" conftest.dir
599  cd conftest.dir
600  # We will build objects and dependencies in a subdirectory because
601  # it helps to detect inapplicable dependency modes.  For instance
602  # both Tru64's cc and ICC support -MD to output dependencies as a
603  # side effect of compilation, but ICC will put the dependencies in
604  # the current directory while Tru64 will put them in the object
605  # directory.
606  mkdir sub
607
608  am_cv_$1_dependencies_compiler_type=none
609  if test "$am_compiler_list" = ""; then
610     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
611  fi
612  am__universal=false
613  m4_case([$1], [CC],
614    [case " $depcc " in #(
615     *\ -arch\ *\ -arch\ *) am__universal=true ;;
616     esac],
617    [CXX],
618    [case " $depcc " in #(
619     *\ -arch\ *\ -arch\ *) am__universal=true ;;
620     esac])
621
622  for depmode in $am_compiler_list; do
623    # Setup a source with many dependencies, because some compilers
624    # like to wrap large dependency lists on column 80 (with \), and
625    # we should not choose a depcomp mode which is confused by this.
626    #
627    # We need to recreate these files for each test, as the compiler may
628    # overwrite some of them when testing with obscure command lines.
629    # This happens at least with the AIX C compiler.
630    : > sub/conftest.c
631    for i in 1 2 3 4 5 6; do
632      echo '#include "conftst'$i'.h"' >> sub/conftest.c
633      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
634      # Solaris 10 /bin/sh.
635      echo '/* dummy */' > sub/conftst$i.h
636    done
637    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
638
639    # We check with '-c' and '-o' for the sake of the "dashmstdout"
640    # mode.  It turns out that the SunPro C++ compiler does not properly
641    # handle '-M -o', and we need to detect this.  Also, some Intel
642    # versions had trouble with output in subdirs.
643    am__obj=sub/conftest.${OBJEXT-o}
644    am__minus_obj="-o $am__obj"
645    case $depmode in
646    gcc)
647      # This depmode causes a compiler race in universal mode.
648      test "$am__universal" = false || continue
649      ;;
650    nosideeffect)
651      # After this tag, mechanisms are not by side-effect, so they'll
652      # only be used when explicitly requested.
653      if test "x$enable_dependency_tracking" = xyes; then
654	continue
655      else
656	break
657      fi
658      ;;
659    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
660      # This compiler won't grok '-c -o', but also, the minuso test has
661      # not run yet.  These depmodes are late enough in the game, and
662      # so weak that their functioning should not be impacted.
663      am__obj=conftest.${OBJEXT-o}
664      am__minus_obj=
665      ;;
666    none) break ;;
667    esac
668    if depmode=$depmode \
669       source=sub/conftest.c object=$am__obj \
670       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
671       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
672         >/dev/null 2>conftest.err &&
673       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
674       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
675       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
676       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
677      # icc doesn't choke on unknown options, it will just issue warnings
678      # or remarks (even with -Werror).  So we grep stderr for any message
679      # that says an option was ignored or not supported.
680      # When given -MP, icc 7.0 and 7.1 complain thusly:
681      #   icc: Command line warning: ignoring option '-M'; no argument required
682      # The diagnosis changed in icc 8.0:
683      #   icc: Command line remark: option '-MP' not supported
684      if (grep 'ignoring option' conftest.err ||
685          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
686        am_cv_$1_dependencies_compiler_type=$depmode
687        break
688      fi
689    fi
690  done
691
692  cd ..
693  rm -rf conftest.dir
694else
695  am_cv_$1_dependencies_compiler_type=none
696fi
697])
698AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
699AM_CONDITIONAL([am__fastdep$1], [
700  test "x$enable_dependency_tracking" != xno \
701  && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
702])
703
704
705# AM_SET_DEPDIR
706# -------------
707# Choose a directory name for dependency files.
708# This macro is AC_REQUIREd in _AM_DEPENDENCIES.
709AC_DEFUN([AM_SET_DEPDIR],
710[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
711AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
712])
713
714
715# AM_DEP_TRACK
716# ------------
717AC_DEFUN([AM_DEP_TRACK],
718[AC_ARG_ENABLE([dependency-tracking], [dnl
719AS_HELP_STRING(
720  [--enable-dependency-tracking],
721  [do not reject slow dependency extractors])
722AS_HELP_STRING(
723  [--disable-dependency-tracking],
724  [speeds up one-time build])])
725if test "x$enable_dependency_tracking" != xno; then
726  am_depcomp="$ac_aux_dir/depcomp"
727  AMDEPBACKSLASH='\'
728  am__nodep='_no'
729fi
730AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
731AC_SUBST([AMDEPBACKSLASH])dnl
732_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
733AC_SUBST([am__nodep])dnl
734_AM_SUBST_NOTMAKE([am__nodep])dnl
735])
736
737# Generate code to set up dependency tracking.              -*- Autoconf -*-
738
739# Copyright (C) 1999-2013 Free Software Foundation, Inc.
740#
741# This file is free software; the Free Software Foundation
742# gives unlimited permission to copy and/or distribute it,
743# with or without modifications, as long as this notice is preserved.
744
745
746# _AM_OUTPUT_DEPENDENCY_COMMANDS
747# ------------------------------
748AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
749[{
750  # Older Autoconf quotes --file arguments for eval, but not when files
751  # are listed without --file.  Let's play safe and only enable the eval
752  # if we detect the quoting.
753  case $CONFIG_FILES in
754  *\'*) eval set x "$CONFIG_FILES" ;;
755  *)   set x $CONFIG_FILES ;;
756  esac
757  shift
758  for mf
759  do
760    # Strip MF so we end up with the name of the file.
761    mf=`echo "$mf" | sed -e 's/:.*$//'`
762    # Check whether this is an Automake generated Makefile or not.
763    # We used to match only the files named 'Makefile.in', but
764    # some people rename them; so instead we look at the file content.
765    # Grep'ing the first line is not enough: some people post-process
766    # each Makefile.in and add a new line on top of each file to say so.
767    # Grep'ing the whole file is not good either: AIX grep has a line
768    # limit of 2048, but all sed's we know have understand at least 4000.
769    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
770      dirpart=`AS_DIRNAME("$mf")`
771    else
772      continue
773    fi
774    # Extract the definition of DEPDIR, am__include, and am__quote
775    # from the Makefile without running 'make'.
776    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
777    test -z "$DEPDIR" && continue
778    am__include=`sed -n 's/^am__include = //p' < "$mf"`
779    test -z "$am__include" && continue
780    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
781    # Find all dependency output files, they are included files with
782    # $(DEPDIR) in their names.  We invoke sed twice because it is the
783    # simplest approach to changing $(DEPDIR) to its actual value in the
784    # expansion.
785    for file in `sed -n "
786      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
787	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
788      # Make sure the directory exists.
789      test -f "$dirpart/$file" && continue
790      fdir=`AS_DIRNAME(["$file"])`
791      AS_MKDIR_P([$dirpart/$fdir])
792      # echo "creating $dirpart/$file"
793      echo '# dummy' > "$dirpart/$file"
794    done
795  done
796}
797])# _AM_OUTPUT_DEPENDENCY_COMMANDS
798
799
800# AM_OUTPUT_DEPENDENCY_COMMANDS
801# -----------------------------
802# This macro should only be invoked once -- use via AC_REQUIRE.
803#
804# This code is only required when automatic dependency tracking
805# is enabled.  FIXME.  This creates each '.P' file that we will
806# need in order to bootstrap the dependency handling code.
807AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
808[AC_CONFIG_COMMANDS([depfiles],
809     [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
810     [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
811])
812
813# Do all the work for Automake.                             -*- Autoconf -*-
814
815# Copyright (C) 1996-2013 Free Software Foundation, Inc.
816#
817# This file is free software; the Free Software Foundation
818# gives unlimited permission to copy and/or distribute it,
819# with or without modifications, as long as this notice is preserved.
820
821# This macro actually does too much.  Some checks are only needed if
822# your package does certain things.  But this isn't really a big deal.
823
824dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
825m4_define([AC_PROG_CC],
826m4_defn([AC_PROG_CC])
827[_AM_PROG_CC_C_O
828])
829
830# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
831# AM_INIT_AUTOMAKE([OPTIONS])
832# -----------------------------------------------
833# The call with PACKAGE and VERSION arguments is the old style
834# call (pre autoconf-2.50), which is being phased out.  PACKAGE
835# and VERSION should now be passed to AC_INIT and removed from
836# the call to AM_INIT_AUTOMAKE.
837# We support both call styles for the transition.  After
838# the next Automake release, Autoconf can make the AC_INIT
839# arguments mandatory, and then we can depend on a new Autoconf
840# release and drop the old call support.
841AC_DEFUN([AM_INIT_AUTOMAKE],
842[AC_PREREQ([2.65])dnl
843dnl Autoconf wants to disallow AM_ names.  We explicitly allow
844dnl the ones we care about.
845m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
846AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
847AC_REQUIRE([AC_PROG_INSTALL])dnl
848if test "`cd $srcdir && pwd`" != "`pwd`"; then
849  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
850  # is not polluted with repeated "-I."
851  AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
852  # test to see if srcdir already configured
853  if test -f $srcdir/config.status; then
854    AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
855  fi
856fi
857
858# test whether we have cygpath
859if test -z "$CYGPATH_W"; then
860  if (cygpath --version) >/dev/null 2>/dev/null; then
861    CYGPATH_W='cygpath -w'
862  else
863    CYGPATH_W=echo
864  fi
865fi
866AC_SUBST([CYGPATH_W])
867
868# Define the identity of the package.
869dnl Distinguish between old-style and new-style calls.
870m4_ifval([$2],
871[AC_DIAGNOSE([obsolete],
872             [$0: two- and three-arguments forms are deprecated.])
873m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
874 AC_SUBST([PACKAGE], [$1])dnl
875 AC_SUBST([VERSION], [$2])],
876[_AM_SET_OPTIONS([$1])dnl
877dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
878m4_if(
879  m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
880  [ok:ok],,
881  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
882 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
883 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
884
885_AM_IF_OPTION([no-define],,
886[AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
887 AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
888
889# Some tools Automake needs.
890AC_REQUIRE([AM_SANITY_CHECK])dnl
891AC_REQUIRE([AC_ARG_PROGRAM])dnl
892AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
893AM_MISSING_PROG([AUTOCONF], [autoconf])
894AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
895AM_MISSING_PROG([AUTOHEADER], [autoheader])
896AM_MISSING_PROG([MAKEINFO], [makeinfo])
897AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
898AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
899AC_REQUIRE([AC_PROG_MKDIR_P])dnl
900# For better backward compatibility.  To be removed once Automake 1.9.x
901# dies out for good.  For more background, see:
902# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
903# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
904AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
905# We need awk for the "check" target.  The system "awk" is bad on
906# some platforms.
907AC_REQUIRE([AC_PROG_AWK])dnl
908AC_REQUIRE([AC_PROG_MAKE_SET])dnl
909AC_REQUIRE([AM_SET_LEADING_DOT])dnl
910_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
911	      [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
912			     [_AM_PROG_TAR([v7])])])
913_AM_IF_OPTION([no-dependencies],,
914[AC_PROVIDE_IFELSE([AC_PROG_CC],
915		  [_AM_DEPENDENCIES([CC])],
916		  [m4_define([AC_PROG_CC],
917			     m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
918AC_PROVIDE_IFELSE([AC_PROG_CXX],
919		  [_AM_DEPENDENCIES([CXX])],
920		  [m4_define([AC_PROG_CXX],
921			     m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
922AC_PROVIDE_IFELSE([AC_PROG_OBJC],
923		  [_AM_DEPENDENCIES([OBJC])],
924		  [m4_define([AC_PROG_OBJC],
925			     m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
926AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
927		  [_AM_DEPENDENCIES([OBJCXX])],
928		  [m4_define([AC_PROG_OBJCXX],
929			     m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
930])
931AC_REQUIRE([AM_SILENT_RULES])dnl
932dnl The testsuite driver may need to know about EXEEXT, so add the
933dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This
934dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
935AC_CONFIG_COMMANDS_PRE(dnl
936[m4_provide_if([_AM_COMPILER_EXEEXT],
937  [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
938
939# POSIX will say in a future version that running "rm -f" with no argument
940# is OK; and we want to be able to make that assumption in our Makefile
941# recipes.  So use an aggressive probe to check that the usage we want is
942# actually supported "in the wild" to an acceptable degree.
943# See automake bug#10828.
944# To make any issue more visible, cause the running configure to be aborted
945# by default if the 'rm' program in use doesn't match our expectations; the
946# user can still override this though.
947if rm -f && rm -fr && rm -rf; then : OK; else
948  cat >&2 <<'END'
949Oops!
950
951Your 'rm' program seems unable to run without file operands specified
952on the command line, even when the '-f' option is present.  This is contrary
953to the behaviour of most rm programs out there, and not conforming with
954the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
955
956Please tell bug-automake@gnu.org about your system, including the value
957of your $PATH and any error possibly output before this message.  This
958can help us improve future automake versions.
959
960END
961  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
962    echo 'Configuration will proceed anyway, since you have set the' >&2
963    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
964    echo >&2
965  else
966    cat >&2 <<'END'
967Aborting the configuration process, to ensure you take notice of the issue.
968
969You can download and install GNU coreutils to get an 'rm' implementation
970that behaves properly: <http://www.gnu.org/software/coreutils/>.
971
972If you want to complete the configuration process using your problematic
973'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
974to "yes", and re-run configure.
975
976END
977    AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
978  fi
979fi
980])
981
982dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
983dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
984dnl mangled by Autoconf and run in a shell conditional statement.
985m4_define([_AC_COMPILER_EXEEXT],
986m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
987
988# When config.status generates a header, we must update the stamp-h file.
989# This file resides in the same directory as the config header
990# that is generated.  The stamp files are numbered to have different names.
991
992# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
993# loop where config.status creates the headers, so we can generate
994# our stamp files there.
995AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
996[# Compute $1's index in $config_headers.
997_am_arg=$1
998_am_stamp_count=1
999for _am_header in $config_headers :; do
1000  case $_am_header in
1001    $_am_arg | $_am_arg:* )
1002      break ;;
1003    * )
1004      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
1005  esac
1006done
1007echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
1008
1009# Copyright (C) 2001-2013 Free Software Foundation, Inc.
1010#
1011# This file is free software; the Free Software Foundation
1012# gives unlimited permission to copy and/or distribute it,
1013# with or without modifications, as long as this notice is preserved.
1014
1015# AM_PROG_INSTALL_SH
1016# ------------------
1017# Define $install_sh.
1018AC_DEFUN([AM_PROG_INSTALL_SH],
1019[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1020if test x"${install_sh}" != xset; then
1021  case $am_aux_dir in
1022  *\ * | *\	*)
1023    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
1024  *)
1025    install_sh="\${SHELL} $am_aux_dir/install-sh"
1026  esac
1027fi
1028AC_SUBST([install_sh])])
1029
1030# Copyright (C) 2003-2013 Free Software Foundation, Inc.
1031#
1032# This file is free software; the Free Software Foundation
1033# gives unlimited permission to copy and/or distribute it,
1034# with or without modifications, as long as this notice is preserved.
1035
1036# Check whether the underlying file-system supports filenames
1037# with a leading dot.  For instance MS-DOS doesn't.
1038AC_DEFUN([AM_SET_LEADING_DOT],
1039[rm -rf .tst 2>/dev/null
1040mkdir .tst 2>/dev/null
1041if test -d .tst; then
1042  am__leading_dot=.
1043else
1044  am__leading_dot=_
1045fi
1046rmdir .tst 2>/dev/null
1047AC_SUBST([am__leading_dot])])
1048
1049# Check to see how 'make' treats includes.	            -*- Autoconf -*-
1050
1051# Copyright (C) 2001-2013 Free Software Foundation, Inc.
1052#
1053# This file is free software; the Free Software Foundation
1054# gives unlimited permission to copy and/or distribute it,
1055# with or without modifications, as long as this notice is preserved.
1056
1057# AM_MAKE_INCLUDE()
1058# -----------------
1059# Check to see how make treats includes.
1060AC_DEFUN([AM_MAKE_INCLUDE],
1061[am_make=${MAKE-make}
1062cat > confinc << 'END'
1063am__doit:
1064	@echo this is the am__doit target
1065.PHONY: am__doit
1066END
1067# If we don't find an include directive, just comment out the code.
1068AC_MSG_CHECKING([for style of include used by $am_make])
1069am__include="#"
1070am__quote=
1071_am_result=none
1072# First try GNU make style include.
1073echo "include confinc" > confmf
1074# Ignore all kinds of additional output from 'make'.
1075case `$am_make -s -f confmf 2> /dev/null` in #(
1076*the\ am__doit\ target*)
1077  am__include=include
1078  am__quote=
1079  _am_result=GNU
1080  ;;
1081esac
1082# Now try BSD make style include.
1083if test "$am__include" = "#"; then
1084   echo '.include "confinc"' > confmf
1085   case `$am_make -s -f confmf 2> /dev/null` in #(
1086   *the\ am__doit\ target*)
1087     am__include=.include
1088     am__quote="\""
1089     _am_result=BSD
1090     ;;
1091   esac
1092fi
1093AC_SUBST([am__include])
1094AC_SUBST([am__quote])
1095AC_MSG_RESULT([$_am_result])
1096rm -f confinc confmf
1097])
1098
1099# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
1100
1101# Copyright (C) 1997-2013 Free Software Foundation, Inc.
1102#
1103# This file is free software; the Free Software Foundation
1104# gives unlimited permission to copy and/or distribute it,
1105# with or without modifications, as long as this notice is preserved.
1106
1107# AM_MISSING_PROG(NAME, PROGRAM)
1108# ------------------------------
1109AC_DEFUN([AM_MISSING_PROG],
1110[AC_REQUIRE([AM_MISSING_HAS_RUN])
1111$1=${$1-"${am_missing_run}$2"}
1112AC_SUBST($1)])
1113
1114# AM_MISSING_HAS_RUN
1115# ------------------
1116# Define MISSING if not defined so far and test if it is modern enough.
1117# If it is, set am_missing_run to use it, otherwise, to nothing.
1118AC_DEFUN([AM_MISSING_HAS_RUN],
1119[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1120AC_REQUIRE_AUX_FILE([missing])dnl
1121if test x"${MISSING+set}" != xset; then
1122  case $am_aux_dir in
1123  *\ * | *\	*)
1124    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
1125  *)
1126    MISSING="\${SHELL} $am_aux_dir/missing" ;;
1127  esac
1128fi
1129# Use eval to expand $SHELL
1130if eval "$MISSING --is-lightweight"; then
1131  am_missing_run="$MISSING "
1132else
1133  am_missing_run=
1134  AC_MSG_WARN(['missing' script is too old or missing])
1135fi
1136])
1137
1138# Helper functions for option handling.                     -*- Autoconf -*-
1139
1140# Copyright (C) 2001-2013 Free Software Foundation, Inc.
1141#
1142# This file is free software; the Free Software Foundation
1143# gives unlimited permission to copy and/or distribute it,
1144# with or without modifications, as long as this notice is preserved.
1145
1146# _AM_MANGLE_OPTION(NAME)
1147# -----------------------
1148AC_DEFUN([_AM_MANGLE_OPTION],
1149[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
1150
1151# _AM_SET_OPTION(NAME)
1152# --------------------
1153# Set option NAME.  Presently that only means defining a flag for this option.
1154AC_DEFUN([_AM_SET_OPTION],
1155[m4_define(_AM_MANGLE_OPTION([$1]), [1])])
1156
1157# _AM_SET_OPTIONS(OPTIONS)
1158# ------------------------
1159# OPTIONS is a space-separated list of Automake options.
1160AC_DEFUN([_AM_SET_OPTIONS],
1161[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
1162
1163# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
1164# -------------------------------------------
1165# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
1166AC_DEFUN([_AM_IF_OPTION],
1167[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
1168
1169# Copyright (C) 1999-2013 Free Software Foundation, Inc.
1170#
1171# This file is free software; the Free Software Foundation
1172# gives unlimited permission to copy and/or distribute it,
1173# with or without modifications, as long as this notice is preserved.
1174
1175# _AM_PROG_CC_C_O
1176# ---------------
1177# Like AC_PROG_CC_C_O, but changed for automake.  We rewrite AC_PROG_CC
1178# to automatically call this.
1179AC_DEFUN([_AM_PROG_CC_C_O],
1180[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1181AC_REQUIRE_AUX_FILE([compile])dnl
1182AC_LANG_PUSH([C])dnl
1183AC_CACHE_CHECK(
1184  [whether $CC understands -c and -o together],
1185  [am_cv_prog_cc_c_o],
1186  [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
1187  # Make sure it works both with $CC and with simple cc.
1188  # Following AC_PROG_CC_C_O, we do the test twice because some
1189  # compilers refuse to overwrite an existing .o file with -o,
1190  # though they will create one.
1191  am_cv_prog_cc_c_o=yes
1192  for am_i in 1 2; do
1193    if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
1194         && test -f conftest2.$ac_objext; then
1195      : OK
1196    else
1197      am_cv_prog_cc_c_o=no
1198      break
1199    fi
1200  done
1201  rm -f core conftest*
1202  unset am_i])
1203if test "$am_cv_prog_cc_c_o" != yes; then
1204   # Losing compiler, so override with the script.
1205   # FIXME: It is wrong to rewrite CC.
1206   # But if we don't then we get into trouble of one sort or another.
1207   # A longer-term fix would be to have automake use am__CC in this case,
1208   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
1209   CC="$am_aux_dir/compile $CC"
1210fi
1211AC_LANG_POP([C])])
1212
1213# For backward compatibility.
1214AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
1215
1216# Copyright (C) 2001-2013 Free Software Foundation, Inc.
1217#
1218# This file is free software; the Free Software Foundation
1219# gives unlimited permission to copy and/or distribute it,
1220# with or without modifications, as long as this notice is preserved.
1221
1222# AM_RUN_LOG(COMMAND)
1223# -------------------
1224# Run COMMAND, save the exit status in ac_status, and log it.
1225# (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
1226AC_DEFUN([AM_RUN_LOG],
1227[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
1228   ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
1229   ac_status=$?
1230   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1231   (exit $ac_status); }])
1232
1233# Check to make sure that the build environment is sane.    -*- Autoconf -*-
1234
1235# Copyright (C) 1996-2013 Free Software Foundation, Inc.
1236#
1237# This file is free software; the Free Software Foundation
1238# gives unlimited permission to copy and/or distribute it,
1239# with or without modifications, as long as this notice is preserved.
1240
1241# AM_SANITY_CHECK
1242# ---------------
1243AC_DEFUN([AM_SANITY_CHECK],
1244[AC_MSG_CHECKING([whether build environment is sane])
1245# Reject unsafe characters in $srcdir or the absolute working directory
1246# name.  Accept space and tab only in the latter.
1247am_lf='
1248'
1249case `pwd` in
1250  *[[\\\"\#\$\&\'\`$am_lf]]*)
1251    AC_MSG_ERROR([unsafe absolute working directory name]);;
1252esac
1253case $srcdir in
1254  *[[\\\"\#\$\&\'\`$am_lf\ \	]]*)
1255    AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
1256esac
1257
1258# Do 'set' in a subshell so we don't clobber the current shell's
1259# arguments.  Must try -L first in case configure is actually a
1260# symlink; some systems play weird games with the mod time of symlinks
1261# (eg FreeBSD returns the mod time of the symlink's containing
1262# directory).
1263if (
1264   am_has_slept=no
1265   for am_try in 1 2; do
1266     echo "timestamp, slept: $am_has_slept" > conftest.file
1267     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
1268     if test "$[*]" = "X"; then
1269	# -L didn't work.
1270	set X `ls -t "$srcdir/configure" conftest.file`
1271     fi
1272     if test "$[*]" != "X $srcdir/configure conftest.file" \
1273	&& test "$[*]" != "X conftest.file $srcdir/configure"; then
1274
1275	# If neither matched, then we have a broken ls.  This can happen
1276	# if, for instance, CONFIG_SHELL is bash and it inherits a
1277	# broken ls alias from the environment.  This has actually
1278	# happened.  Such a system could not be considered "sane".
1279	AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
1280  alias in your environment])
1281     fi
1282     if test "$[2]" = conftest.file || test $am_try -eq 2; then
1283       break
1284     fi
1285     # Just in case.
1286     sleep 1
1287     am_has_slept=yes
1288   done
1289   test "$[2]" = conftest.file
1290   )
1291then
1292   # Ok.
1293   :
1294else
1295   AC_MSG_ERROR([newly created file is older than distributed files!
1296Check your system clock])
1297fi
1298AC_MSG_RESULT([yes])
1299# If we didn't sleep, we still need to ensure time stamps of config.status and
1300# generated files are strictly newer.
1301am_sleep_pid=
1302if grep 'slept: no' conftest.file >/dev/null 2>&1; then
1303  ( sleep 1 ) &
1304  am_sleep_pid=$!
1305fi
1306AC_CONFIG_COMMANDS_PRE(
1307  [AC_MSG_CHECKING([that generated files are newer than configure])
1308   if test -n "$am_sleep_pid"; then
1309     # Hide warnings about reused PIDs.
1310     wait $am_sleep_pid 2>/dev/null
1311   fi
1312   AC_MSG_RESULT([done])])
1313rm -f conftest.file
1314])
1315
1316# Copyright (C) 2009-2013 Free Software Foundation, Inc.
1317#
1318# This file is free software; the Free Software Foundation
1319# gives unlimited permission to copy and/or distribute it,
1320# with or without modifications, as long as this notice is preserved.
1321
1322# AM_SILENT_RULES([DEFAULT])
1323# --------------------------
1324# Enable less verbose build rules; with the default set to DEFAULT
1325# ("yes" being less verbose, "no" or empty being verbose).
1326AC_DEFUN([AM_SILENT_RULES],
1327[AC_ARG_ENABLE([silent-rules], [dnl
1328AS_HELP_STRING(
1329  [--enable-silent-rules],
1330  [less verbose build output (undo: "make V=1")])
1331AS_HELP_STRING(
1332  [--disable-silent-rules],
1333  [verbose build output (undo: "make V=0")])dnl
1334])
1335case $enable_silent_rules in @%:@ (((
1336  yes) AM_DEFAULT_VERBOSITY=0;;
1337   no) AM_DEFAULT_VERBOSITY=1;;
1338    *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
1339esac
1340dnl
1341dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
1342dnl do not support nested variable expansions.
1343dnl See automake bug#9928 and bug#10237.
1344am_make=${MAKE-make}
1345AC_CACHE_CHECK([whether $am_make supports nested variables],
1346   [am_cv_make_support_nested_variables],
1347   [if AS_ECHO([['TRUE=$(BAR$(V))
1348BAR0=false
1349BAR1=true
1350V=1
1351am__doit:
1352	@$(TRUE)
1353.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
1354  am_cv_make_support_nested_variables=yes
1355else
1356  am_cv_make_support_nested_variables=no
1357fi])
1358if test $am_cv_make_support_nested_variables = yes; then
1359  dnl Using '$V' instead of '$(V)' breaks IRIX make.
1360  AM_V='$(V)'
1361  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
1362else
1363  AM_V=$AM_DEFAULT_VERBOSITY
1364  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
1365fi
1366AC_SUBST([AM_V])dnl
1367AM_SUBST_NOTMAKE([AM_V])dnl
1368AC_SUBST([AM_DEFAULT_V])dnl
1369AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
1370AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
1371AM_BACKSLASH='\'
1372AC_SUBST([AM_BACKSLASH])dnl
1373_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
1374])
1375
1376# Copyright (C) 2001-2013 Free Software Foundation, Inc.
1377#
1378# This file is free software; the Free Software Foundation
1379# gives unlimited permission to copy and/or distribute it,
1380# with or without modifications, as long as this notice is preserved.
1381
1382# AM_PROG_INSTALL_STRIP
1383# ---------------------
1384# One issue with vendor 'install' (even GNU) is that you can't
1385# specify the program used to strip binaries.  This is especially
1386# annoying in cross-compiling environments, where the build's strip
1387# is unlikely to handle the host's binaries.
1388# Fortunately install-sh will honor a STRIPPROG variable, so we
1389# always use install-sh in "make install-strip", and initialize
1390# STRIPPROG with the value of the STRIP variable (set by the user).
1391AC_DEFUN([AM_PROG_INSTALL_STRIP],
1392[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
1393# Installed binaries are usually stripped using 'strip' when the user
1394# run "make install-strip".  However 'strip' might not be the right
1395# tool to use in cross-compilation environments, therefore Automake
1396# will honor the 'STRIP' environment variable to overrule this program.
1397dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
1398if test "$cross_compiling" != no; then
1399  AC_CHECK_TOOL([STRIP], [strip], :)
1400fi
1401INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1402AC_SUBST([INSTALL_STRIP_PROGRAM])])
1403
1404# Copyright (C) 2006-2013 Free Software Foundation, Inc.
1405#
1406# This file is free software; the Free Software Foundation
1407# gives unlimited permission to copy and/or distribute it,
1408# with or without modifications, as long as this notice is preserved.
1409
1410# _AM_SUBST_NOTMAKE(VARIABLE)
1411# ---------------------------
1412# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
1413# This macro is traced by Automake.
1414AC_DEFUN([_AM_SUBST_NOTMAKE])
1415
1416# AM_SUBST_NOTMAKE(VARIABLE)
1417# --------------------------
1418# Public sister of _AM_SUBST_NOTMAKE.
1419AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
1420
1421# Check how to create a tarball.                            -*- Autoconf -*-
1422
1423# Copyright (C) 2004-2013 Free Software Foundation, Inc.
1424#
1425# This file is free software; the Free Software Foundation
1426# gives unlimited permission to copy and/or distribute it,
1427# with or without modifications, as long as this notice is preserved.
1428
1429# _AM_PROG_TAR(FORMAT)
1430# --------------------
1431# Check how to create a tarball in format FORMAT.
1432# FORMAT should be one of 'v7', 'ustar', or 'pax'.
1433#
1434# Substitute a variable $(am__tar) that is a command
1435# writing to stdout a FORMAT-tarball containing the directory
1436# $tardir.
1437#     tardir=directory && $(am__tar) > result.tar
1438#
1439# Substitute a variable $(am__untar) that extract such
1440# a tarball read from stdin.
1441#     $(am__untar) < result.tar
1442#
1443AC_DEFUN([_AM_PROG_TAR],
1444[# Always define AMTAR for backward compatibility.  Yes, it's still used
1445# in the wild :-(  We should find a proper way to deprecate it ...
1446AC_SUBST([AMTAR], ['$${TAR-tar}'])
1447
1448# We'll loop over all known methods to create a tar archive until one works.
1449_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
1450
1451m4_if([$1], [v7],
1452  [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
1453
1454  [m4_case([$1],
1455    [ustar],
1456     [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
1457      # There is notably a 21 bits limit for the UID and the GID.  In fact,
1458      # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
1459      # and bug#13588).
1460      am_max_uid=2097151 # 2^21 - 1
1461      am_max_gid=$am_max_uid
1462      # The $UID and $GID variables are not portable, so we need to resort
1463      # to the POSIX-mandated id(1) utility.  Errors in the 'id' calls
1464      # below are definitely unexpected, so allow the users to see them
1465      # (that is, avoid stderr redirection).
1466      am_uid=`id -u || echo unknown`
1467      am_gid=`id -g || echo unknown`
1468      AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
1469      if test $am_uid -le $am_max_uid; then
1470         AC_MSG_RESULT([yes])
1471      else
1472         AC_MSG_RESULT([no])
1473         _am_tools=none
1474      fi
1475      AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
1476      if test $am_gid -le $am_max_gid; then
1477         AC_MSG_RESULT([yes])
1478      else
1479        AC_MSG_RESULT([no])
1480        _am_tools=none
1481      fi],
1482
1483  [pax],
1484    [],
1485
1486  [m4_fatal([Unknown tar format])])
1487
1488  AC_MSG_CHECKING([how to create a $1 tar archive])
1489
1490  # Go ahead even if we have the value already cached.  We do so because we
1491  # need to set the values for the 'am__tar' and 'am__untar' variables.
1492  _am_tools=${am_cv_prog_tar_$1-$_am_tools}
1493
1494  for _am_tool in $_am_tools; do
1495    case $_am_tool in
1496    gnutar)
1497      for _am_tar in tar gnutar gtar; do
1498        AM_RUN_LOG([$_am_tar --version]) && break
1499      done
1500      am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
1501      am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
1502      am__untar="$_am_tar -xf -"
1503      ;;
1504    plaintar)
1505      # Must skip GNU tar: if it does not support --format= it doesn't create
1506      # ustar tarball either.
1507      (tar --version) >/dev/null 2>&1 && continue
1508      am__tar='tar chf - "$$tardir"'
1509      am__tar_='tar chf - "$tardir"'
1510      am__untar='tar xf -'
1511      ;;
1512    pax)
1513      am__tar='pax -L -x $1 -w "$$tardir"'
1514      am__tar_='pax -L -x $1 -w "$tardir"'
1515      am__untar='pax -r'
1516      ;;
1517    cpio)
1518      am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
1519      am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
1520      am__untar='cpio -i -H $1 -d'
1521      ;;
1522    none)
1523      am__tar=false
1524      am__tar_=false
1525      am__untar=false
1526      ;;
1527    esac
1528
1529    # If the value was cached, stop now.  We just wanted to have am__tar
1530    # and am__untar set.
1531    test -n "${am_cv_prog_tar_$1}" && break
1532
1533    # tar/untar a dummy directory, and stop if the command works.
1534    rm -rf conftest.dir
1535    mkdir conftest.dir
1536    echo GrepMe > conftest.dir/file
1537    AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1538    rm -rf conftest.dir
1539    if test -s conftest.tar; then
1540      AM_RUN_LOG([$am__untar <conftest.tar])
1541      AM_RUN_LOG([cat conftest.dir/file])
1542      grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1543    fi
1544  done
1545  rm -rf conftest.dir
1546
1547  AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1548  AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1549
1550AC_SUBST([am__tar])
1551AC_SUBST([am__untar])
1552]) # _AM_PROG_TAR
1553
1554m4_include([m4/libexpat.m4])
1555m4_include([m4/libtool.m4])
1556m4_include([m4/ltoptions.m4])
1557m4_include([m4/ltsugar.m4])
1558m4_include([m4/ltversion.m4])
1559m4_include([m4/lt~obsolete.m4])
1560