lac : e70ea934dbe006499753bb1bc25e56c4256fb01f

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

Generated by git2html.