lac : 64872f120ef6ba8ae81a7ea838b6947c4bb0008c

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

Generated by git2html.