Annotation of embedaddon/strongswan/aclocal.m4, revision 1.1
1.1 ! misho 1: # generated automatically by aclocal 1.15.1 -*- Autoconf -*-
! 2:
! 3: # Copyright (C) 1996-2017 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: # lib-prefix.m4 serial 7 (gettext-0.18)
! 24: dnl Copyright (C) 2001-2005, 2008-2016 Free Software Foundation, Inc.
! 25: dnl This file is free software; the Free Software Foundation
! 26: dnl gives unlimited permission to copy and/or distribute it,
! 27: dnl with or without modifications, as long as this notice is preserved.
! 28:
! 29: dnl From Bruno Haible.
! 30:
! 31: dnl AC_LIB_ARG_WITH is synonymous to AC_ARG_WITH in autoconf-2.13, and
! 32: dnl similar to AC_ARG_WITH in autoconf 2.52...2.57 except that is doesn't
! 33: dnl require excessive bracketing.
! 34: ifdef([AC_HELP_STRING],
! 35: [AC_DEFUN([AC_LIB_ARG_WITH], [AC_ARG_WITH([$1],[[$2]],[$3],[$4])])],
! 36: [AC_DEFUN([AC_][LIB_ARG_WITH], [AC_ARG_WITH([$1],[$2],[$3],[$4])])])
! 37:
! 38: dnl AC_LIB_PREFIX adds to the CPPFLAGS and LDFLAGS the flags that are needed
! 39: dnl to access previously installed libraries. The basic assumption is that
! 40: dnl a user will want packages to use other packages he previously installed
! 41: dnl with the same --prefix option.
! 42: dnl This macro is not needed if only AC_LIB_LINKFLAGS is used to locate
! 43: dnl libraries, but is otherwise very convenient.
! 44: AC_DEFUN([AC_LIB_PREFIX],
! 45: [
! 46: AC_BEFORE([$0], [AC_LIB_LINKFLAGS])
! 47: AC_REQUIRE([AC_PROG_CC])
! 48: AC_REQUIRE([AC_CANONICAL_HOST])
! 49: AC_REQUIRE([AC_LIB_PREPARE_MULTILIB])
! 50: AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
! 51: dnl By default, look in $includedir and $libdir.
! 52: use_additional=yes
! 53: AC_LIB_WITH_FINAL_PREFIX([
! 54: eval additional_includedir=\"$includedir\"
! 55: eval additional_libdir=\"$libdir\"
! 56: ])
! 57: AC_LIB_ARG_WITH([lib-prefix],
! 58: [ --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib
! 59: --without-lib-prefix don't search for libraries in includedir and libdir],
! 60: [
! 61: if test "X$withval" = "Xno"; then
! 62: use_additional=no
! 63: else
! 64: if test "X$withval" = "X"; then
! 65: AC_LIB_WITH_FINAL_PREFIX([
! 66: eval additional_includedir=\"$includedir\"
! 67: eval additional_libdir=\"$libdir\"
! 68: ])
! 69: else
! 70: additional_includedir="$withval/include"
! 71: additional_libdir="$withval/$acl_libdirstem"
! 72: fi
! 73: fi
! 74: ])
! 75: if test $use_additional = yes; then
! 76: dnl Potentially add $additional_includedir to $CPPFLAGS.
! 77: dnl But don't add it
! 78: dnl 1. if it's the standard /usr/include,
! 79: dnl 2. if it's already present in $CPPFLAGS,
! 80: dnl 3. if it's /usr/local/include and we are using GCC on Linux,
! 81: dnl 4. if it doesn't exist as a directory.
! 82: if test "X$additional_includedir" != "X/usr/include"; then
! 83: haveit=
! 84: for x in $CPPFLAGS; do
! 85: AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
! 86: if test "X$x" = "X-I$additional_includedir"; then
! 87: haveit=yes
! 88: break
! 89: fi
! 90: done
! 91: if test -z "$haveit"; then
! 92: if test "X$additional_includedir" = "X/usr/local/include"; then
! 93: if test -n "$GCC"; then
! 94: case $host_os in
! 95: linux* | gnu* | k*bsd*-gnu) haveit=yes;;
! 96: esac
! 97: fi
! 98: fi
! 99: if test -z "$haveit"; then
! 100: if test -d "$additional_includedir"; then
! 101: dnl Really add $additional_includedir to $CPPFLAGS.
! 102: CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }-I$additional_includedir"
! 103: fi
! 104: fi
! 105: fi
! 106: fi
! 107: dnl Potentially add $additional_libdir to $LDFLAGS.
! 108: dnl But don't add it
! 109: dnl 1. if it's the standard /usr/lib,
! 110: dnl 2. if it's already present in $LDFLAGS,
! 111: dnl 3. if it's /usr/local/lib and we are using GCC on Linux,
! 112: dnl 4. if it doesn't exist as a directory.
! 113: if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
! 114: haveit=
! 115: for x in $LDFLAGS; do
! 116: AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
! 117: if test "X$x" = "X-L$additional_libdir"; then
! 118: haveit=yes
! 119: break
! 120: fi
! 121: done
! 122: if test -z "$haveit"; then
! 123: if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
! 124: if test -n "$GCC"; then
! 125: case $host_os in
! 126: linux*) haveit=yes;;
! 127: esac
! 128: fi
! 129: fi
! 130: if test -z "$haveit"; then
! 131: if test -d "$additional_libdir"; then
! 132: dnl Really add $additional_libdir to $LDFLAGS.
! 133: LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir"
! 134: fi
! 135: fi
! 136: fi
! 137: fi
! 138: fi
! 139: ])
! 140:
! 141: dnl AC_LIB_PREPARE_PREFIX creates variables acl_final_prefix,
! 142: dnl acl_final_exec_prefix, containing the values to which $prefix and
! 143: dnl $exec_prefix will expand at the end of the configure script.
! 144: AC_DEFUN([AC_LIB_PREPARE_PREFIX],
! 145: [
! 146: dnl Unfortunately, prefix and exec_prefix get only finally determined
! 147: dnl at the end of configure.
! 148: if test "X$prefix" = "XNONE"; then
! 149: acl_final_prefix="$ac_default_prefix"
! 150: else
! 151: acl_final_prefix="$prefix"
! 152: fi
! 153: if test "X$exec_prefix" = "XNONE"; then
! 154: acl_final_exec_prefix='${prefix}'
! 155: else
! 156: acl_final_exec_prefix="$exec_prefix"
! 157: fi
! 158: acl_save_prefix="$prefix"
! 159: prefix="$acl_final_prefix"
! 160: eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
! 161: prefix="$acl_save_prefix"
! 162: ])
! 163:
! 164: dnl AC_LIB_WITH_FINAL_PREFIX([statement]) evaluates statement, with the
! 165: dnl variables prefix and exec_prefix bound to the values they will have
! 166: dnl at the end of the configure script.
! 167: AC_DEFUN([AC_LIB_WITH_FINAL_PREFIX],
! 168: [
! 169: acl_save_prefix="$prefix"
! 170: prefix="$acl_final_prefix"
! 171: acl_save_exec_prefix="$exec_prefix"
! 172: exec_prefix="$acl_final_exec_prefix"
! 173: $1
! 174: exec_prefix="$acl_save_exec_prefix"
! 175: prefix="$acl_save_prefix"
! 176: ])
! 177:
! 178: dnl AC_LIB_PREPARE_MULTILIB creates
! 179: dnl - a variable acl_libdirstem, containing the basename of the libdir, either
! 180: dnl "lib" or "lib64" or "lib/64",
! 181: dnl - a variable acl_libdirstem2, as a secondary possible value for
! 182: dnl acl_libdirstem, either the same as acl_libdirstem or "lib/sparcv9" or
! 183: dnl "lib/amd64".
! 184: AC_DEFUN([AC_LIB_PREPARE_MULTILIB],
! 185: [
! 186: dnl There is no formal standard regarding lib and lib64.
! 187: dnl On glibc systems, the current practice is that on a system supporting
! 188: dnl 32-bit and 64-bit instruction sets or ABIs, 64-bit libraries go under
! 189: dnl $prefix/lib64 and 32-bit libraries go under $prefix/lib. We determine
! 190: dnl the compiler's default mode by looking at the compiler's library search
! 191: dnl path. If at least one of its elements ends in /lib64 or points to a
! 192: dnl directory whose absolute pathname ends in /lib64, we assume a 64-bit ABI.
! 193: dnl Otherwise we use the default, namely "lib".
! 194: dnl On Solaris systems, the current practice is that on a system supporting
! 195: dnl 32-bit and 64-bit instruction sets or ABIs, 64-bit libraries go under
! 196: dnl $prefix/lib/64 (which is a symlink to either $prefix/lib/sparcv9 or
! 197: dnl $prefix/lib/amd64) and 32-bit libraries go under $prefix/lib.
! 198: AC_REQUIRE([AC_CANONICAL_HOST])
! 199: acl_libdirstem=lib
! 200: acl_libdirstem2=
! 201: case "$host_os" in
! 202: solaris*)
! 203: dnl See Solaris 10 Software Developer Collection > Solaris 64-bit Developer's Guide > The Development Environment
! 204: dnl <http://docs.sun.com/app/docs/doc/816-5138/dev-env?l=en&a=view>.
! 205: dnl "Portable Makefiles should refer to any library directories using the 64 symbolic link."
! 206: dnl But we want to recognize the sparcv9 or amd64 subdirectory also if the
! 207: dnl symlink is missing, so we set acl_libdirstem2 too.
! 208: AC_CACHE_CHECK([for 64-bit host], [gl_cv_solaris_64bit],
! 209: [AC_EGREP_CPP([sixtyfour bits], [
! 210: #ifdef _LP64
! 211: sixtyfour bits
! 212: #endif
! 213: ], [gl_cv_solaris_64bit=yes], [gl_cv_solaris_64bit=no])
! 214: ])
! 215: if test $gl_cv_solaris_64bit = yes; then
! 216: acl_libdirstem=lib/64
! 217: case "$host_cpu" in
! 218: sparc*) acl_libdirstem2=lib/sparcv9 ;;
! 219: i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
! 220: esac
! 221: fi
! 222: ;;
! 223: *)
! 224: searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
! 225: if test -n "$searchpath"; then
! 226: acl_save_IFS="${IFS= }"; IFS=":"
! 227: for searchdir in $searchpath; do
! 228: if test -d "$searchdir"; then
! 229: case "$searchdir" in
! 230: */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
! 231: */../ | */.. )
! 232: # Better ignore directories of this form. They are misleading.
! 233: ;;
! 234: *) searchdir=`cd "$searchdir" && pwd`
! 235: case "$searchdir" in
! 236: */lib64 ) acl_libdirstem=lib64 ;;
! 237: esac ;;
! 238: esac
! 239: fi
! 240: done
! 241: IFS="$acl_save_IFS"
! 242: fi
! 243: ;;
! 244: esac
! 245: test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
! 246: ])
! 247:
! 248: dnl pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
! 249: dnl serial 11 (pkg-config-0.29.1)
! 250: dnl
! 251: dnl Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
! 252: dnl Copyright © 2012-2015 Dan Nicholson <dbn.lists@gmail.com>
! 253: dnl
! 254: dnl This program is free software; you can redistribute it and/or modify
! 255: dnl it under the terms of the GNU General Public License as published by
! 256: dnl the Free Software Foundation; either version 2 of the License, or
! 257: dnl (at your option) any later version.
! 258: dnl
! 259: dnl This program is distributed in the hope that it will be useful, but
! 260: dnl WITHOUT ANY WARRANTY; without even the implied warranty of
! 261: dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
! 262: dnl General Public License for more details.
! 263: dnl
! 264: dnl You should have received a copy of the GNU General Public License
! 265: dnl along with this program; if not, write to the Free Software
! 266: dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
! 267: dnl 02111-1307, USA.
! 268: dnl
! 269: dnl As a special exception to the GNU General Public License, if you
! 270: dnl distribute this file as part of a program that contains a
! 271: dnl configuration script generated by Autoconf, you may include it under
! 272: dnl the same distribution terms that you use for the rest of that
! 273: dnl program.
! 274:
! 275: dnl PKG_PREREQ(MIN-VERSION)
! 276: dnl -----------------------
! 277: dnl Since: 0.29
! 278: dnl
! 279: dnl Verify that the version of the pkg-config macros are at least
! 280: dnl MIN-VERSION. Unlike PKG_PROG_PKG_CONFIG, which checks the user's
! 281: dnl installed version of pkg-config, this checks the developer's version
! 282: dnl of pkg.m4 when generating configure.
! 283: dnl
! 284: dnl To ensure that this macro is defined, also add:
! 285: dnl m4_ifndef([PKG_PREREQ],
! 286: dnl [m4_fatal([must install pkg-config 0.29 or later before running autoconf/autogen])])
! 287: dnl
! 288: dnl See the "Since" comment for each macro you use to see what version
! 289: dnl of the macros you require.
! 290: m4_defun([PKG_PREREQ],
! 291: [m4_define([PKG_MACROS_VERSION], [0.29.1])
! 292: m4_if(m4_version_compare(PKG_MACROS_VERSION, [$1]), -1,
! 293: [m4_fatal([pkg.m4 version $1 or higher is required but ]PKG_MACROS_VERSION[ found])])
! 294: ])dnl PKG_PREREQ
! 295:
! 296: dnl PKG_PROG_PKG_CONFIG([MIN-VERSION])
! 297: dnl ----------------------------------
! 298: dnl Since: 0.16
! 299: dnl
! 300: dnl Search for the pkg-config tool and set the PKG_CONFIG variable to
! 301: dnl first found in the path. Checks that the version of pkg-config found
! 302: dnl is at least MIN-VERSION. If MIN-VERSION is not specified, 0.9.0 is
! 303: dnl used since that's the first version where most current features of
! 304: dnl pkg-config existed.
! 305: AC_DEFUN([PKG_PROG_PKG_CONFIG],
! 306: [m4_pattern_forbid([^_?PKG_[A-Z_]+$])
! 307: m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$])
! 308: m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$])
! 309: AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
! 310: AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
! 311: AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
! 312:
! 313: if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
! 314: AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
! 315: fi
! 316: if test -n "$PKG_CONFIG"; then
! 317: _pkg_min_version=m4_default([$1], [0.9.0])
! 318: AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
! 319: if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
! 320: AC_MSG_RESULT([yes])
! 321: else
! 322: AC_MSG_RESULT([no])
! 323: PKG_CONFIG=""
! 324: fi
! 325: fi[]dnl
! 326: ])dnl PKG_PROG_PKG_CONFIG
! 327:
! 328: dnl PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
! 329: dnl -------------------------------------------------------------------
! 330: dnl Since: 0.18
! 331: dnl
! 332: dnl Check to see whether a particular set of modules exists. Similar to
! 333: dnl PKG_CHECK_MODULES(), but does not set variables or print errors.
! 334: dnl
! 335: dnl Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
! 336: dnl only at the first occurence in configure.ac, so if the first place
! 337: dnl it's called might be skipped (such as if it is within an "if", you
! 338: dnl have to call PKG_CHECK_EXISTS manually
! 339: AC_DEFUN([PKG_CHECK_EXISTS],
! 340: [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
! 341: if test -n "$PKG_CONFIG" && \
! 342: AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
! 343: m4_default([$2], [:])
! 344: m4_ifvaln([$3], [else
! 345: $3])dnl
! 346: fi])
! 347:
! 348: dnl _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
! 349: dnl ---------------------------------------------
! 350: dnl Internal wrapper calling pkg-config via PKG_CONFIG and setting
! 351: dnl pkg_failed based on the result.
! 352: m4_define([_PKG_CONFIG],
! 353: [if test -n "$$1"; then
! 354: pkg_cv_[]$1="$$1"
! 355: elif test -n "$PKG_CONFIG"; then
! 356: PKG_CHECK_EXISTS([$3],
! 357: [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`
! 358: test "x$?" != "x0" && pkg_failed=yes ],
! 359: [pkg_failed=yes])
! 360: else
! 361: pkg_failed=untried
! 362: fi[]dnl
! 363: ])dnl _PKG_CONFIG
! 364:
! 365: dnl _PKG_SHORT_ERRORS_SUPPORTED
! 366: dnl ---------------------------
! 367: dnl Internal check to see if pkg-config supports short errors.
! 368: AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
! 369: [AC_REQUIRE([PKG_PROG_PKG_CONFIG])
! 370: if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
! 371: _pkg_short_errors_supported=yes
! 372: else
! 373: _pkg_short_errors_supported=no
! 374: fi[]dnl
! 375: ])dnl _PKG_SHORT_ERRORS_SUPPORTED
! 376:
! 377:
! 378: dnl PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
! 379: dnl [ACTION-IF-NOT-FOUND])
! 380: dnl --------------------------------------------------------------
! 381: dnl Since: 0.4.0
! 382: dnl
! 383: dnl Note that if there is a possibility the first call to
! 384: dnl PKG_CHECK_MODULES might not happen, you should be sure to include an
! 385: dnl explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
! 386: AC_DEFUN([PKG_CHECK_MODULES],
! 387: [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
! 388: AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
! 389: AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
! 390:
! 391: pkg_failed=no
! 392: AC_MSG_CHECKING([for $1])
! 393:
! 394: _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
! 395: _PKG_CONFIG([$1][_LIBS], [libs], [$2])
! 396:
! 397: m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
! 398: and $1[]_LIBS to avoid the need to call pkg-config.
! 399: See the pkg-config man page for more details.])
! 400:
! 401: if test $pkg_failed = yes; then
! 402: AC_MSG_RESULT([no])
! 403: _PKG_SHORT_ERRORS_SUPPORTED
! 404: if test $_pkg_short_errors_supported = yes; then
! 405: $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1`
! 406: else
! 407: $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
! 408: fi
! 409: # Put the nasty error message in config.log where it belongs
! 410: echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
! 411:
! 412: m4_default([$4], [AC_MSG_ERROR(
! 413: [Package requirements ($2) were not met:
! 414:
! 415: $$1_PKG_ERRORS
! 416:
! 417: Consider adjusting the PKG_CONFIG_PATH environment variable if you
! 418: installed software in a non-standard prefix.
! 419:
! 420: _PKG_TEXT])[]dnl
! 421: ])
! 422: elif test $pkg_failed = untried; then
! 423: AC_MSG_RESULT([no])
! 424: m4_default([$4], [AC_MSG_FAILURE(
! 425: [The pkg-config script could not be found or is too old. Make sure it
! 426: is in your PATH or set the PKG_CONFIG environment variable to the full
! 427: path to pkg-config.
! 428:
! 429: _PKG_TEXT
! 430:
! 431: To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl
! 432: ])
! 433: else
! 434: $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
! 435: $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
! 436: AC_MSG_RESULT([yes])
! 437: $3
! 438: fi[]dnl
! 439: ])dnl PKG_CHECK_MODULES
! 440:
! 441:
! 442: dnl PKG_CHECK_MODULES_STATIC(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
! 443: dnl [ACTION-IF-NOT-FOUND])
! 444: dnl ---------------------------------------------------------------------
! 445: dnl Since: 0.29
! 446: dnl
! 447: dnl Checks for existence of MODULES and gathers its build flags with
! 448: dnl static libraries enabled. Sets VARIABLE-PREFIX_CFLAGS from --cflags
! 449: dnl and VARIABLE-PREFIX_LIBS from --libs.
! 450: dnl
! 451: dnl Note that if there is a possibility the first call to
! 452: dnl PKG_CHECK_MODULES_STATIC might not happen, you should be sure to
! 453: dnl include an explicit call to PKG_PROG_PKG_CONFIG in your
! 454: dnl configure.ac.
! 455: AC_DEFUN([PKG_CHECK_MODULES_STATIC],
! 456: [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
! 457: _save_PKG_CONFIG=$PKG_CONFIG
! 458: PKG_CONFIG="$PKG_CONFIG --static"
! 459: PKG_CHECK_MODULES($@)
! 460: PKG_CONFIG=$_save_PKG_CONFIG[]dnl
! 461: ])dnl PKG_CHECK_MODULES_STATIC
! 462:
! 463:
! 464: dnl PKG_INSTALLDIR([DIRECTORY])
! 465: dnl -------------------------
! 466: dnl Since: 0.27
! 467: dnl
! 468: dnl Substitutes the variable pkgconfigdir as the location where a module
! 469: dnl should install pkg-config .pc files. By default the directory is
! 470: dnl $libdir/pkgconfig, but the default can be changed by passing
! 471: dnl DIRECTORY. The user can override through the --with-pkgconfigdir
! 472: dnl parameter.
! 473: AC_DEFUN([PKG_INSTALLDIR],
! 474: [m4_pushdef([pkg_default], [m4_default([$1], ['${libdir}/pkgconfig'])])
! 475: m4_pushdef([pkg_description],
! 476: [pkg-config installation directory @<:@]pkg_default[@:>@])
! 477: AC_ARG_WITH([pkgconfigdir],
! 478: [AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],,
! 479: [with_pkgconfigdir=]pkg_default)
! 480: AC_SUBST([pkgconfigdir], [$with_pkgconfigdir])
! 481: m4_popdef([pkg_default])
! 482: m4_popdef([pkg_description])
! 483: ])dnl PKG_INSTALLDIR
! 484:
! 485:
! 486: dnl PKG_NOARCH_INSTALLDIR([DIRECTORY])
! 487: dnl --------------------------------
! 488: dnl Since: 0.27
! 489: dnl
! 490: dnl Substitutes the variable noarch_pkgconfigdir as the location where a
! 491: dnl module should install arch-independent pkg-config .pc files. By
! 492: dnl default the directory is $datadir/pkgconfig, but the default can be
! 493: dnl changed by passing DIRECTORY. The user can override through the
! 494: dnl --with-noarch-pkgconfigdir parameter.
! 495: AC_DEFUN([PKG_NOARCH_INSTALLDIR],
! 496: [m4_pushdef([pkg_default], [m4_default([$1], ['${datadir}/pkgconfig'])])
! 497: m4_pushdef([pkg_description],
! 498: [pkg-config arch-independent installation directory @<:@]pkg_default[@:>@])
! 499: AC_ARG_WITH([noarch-pkgconfigdir],
! 500: [AS_HELP_STRING([--with-noarch-pkgconfigdir], pkg_description)],,
! 501: [with_noarch_pkgconfigdir=]pkg_default)
! 502: AC_SUBST([noarch_pkgconfigdir], [$with_noarch_pkgconfigdir])
! 503: m4_popdef([pkg_default])
! 504: m4_popdef([pkg_description])
! 505: ])dnl PKG_NOARCH_INSTALLDIR
! 506:
! 507:
! 508: dnl PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE,
! 509: dnl [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
! 510: dnl -------------------------------------------
! 511: dnl Since: 0.28
! 512: dnl
! 513: dnl Retrieves the value of the pkg-config variable for the given module.
! 514: AC_DEFUN([PKG_CHECK_VAR],
! 515: [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
! 516: AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl
! 517:
! 518: _PKG_CONFIG([$1], [variable="][$3]["], [$2])
! 519: AS_VAR_COPY([$1], [pkg_cv_][$1])
! 520:
! 521: AS_VAR_IF([$1], [""], [$5], [$4])dnl
! 522: ])dnl PKG_CHECK_VAR
! 523:
! 524: # Copyright (C) 2002-2017 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: # AM_AUTOMAKE_VERSION(VERSION)
! 531: # ----------------------------
! 532: # Automake X.Y traces this macro to ensure aclocal.m4 has been
! 533: # generated from the m4 files accompanying Automake X.Y.
! 534: # (This private macro should not be called outside this file.)
! 535: AC_DEFUN([AM_AUTOMAKE_VERSION],
! 536: [am__api_version='1.15'
! 537: dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
! 538: dnl require some minimum version. Point them to the right macro.
! 539: m4_if([$1], [1.15.1], [],
! 540: [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
! 541: ])
! 542:
! 543: # _AM_AUTOCONF_VERSION(VERSION)
! 544: # -----------------------------
! 545: # aclocal traces this macro to find the Autoconf version.
! 546: # This is a private macro too. Using m4_define simplifies
! 547: # the logic in aclocal, which can simply ignore this definition.
! 548: m4_define([_AM_AUTOCONF_VERSION], [])
! 549:
! 550: # AM_SET_CURRENT_AUTOMAKE_VERSION
! 551: # -------------------------------
! 552: # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
! 553: # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
! 554: AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
! 555: [AM_AUTOMAKE_VERSION([1.15.1])dnl
! 556: m4_ifndef([AC_AUTOCONF_VERSION],
! 557: [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
! 558: _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
! 559:
! 560: # AM_AUX_DIR_EXPAND -*- Autoconf -*-
! 561:
! 562: # Copyright (C) 2001-2017 Free Software Foundation, Inc.
! 563: #
! 564: # This file is free software; the Free Software Foundation
! 565: # gives unlimited permission to copy and/or distribute it,
! 566: # with or without modifications, as long as this notice is preserved.
! 567:
! 568: # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
! 569: # $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to
! 570: # '$srcdir', '$srcdir/..', or '$srcdir/../..'.
! 571: #
! 572: # Of course, Automake must honor this variable whenever it calls a
! 573: # tool from the auxiliary directory. The problem is that $srcdir (and
! 574: # therefore $ac_aux_dir as well) can be either absolute or relative,
! 575: # depending on how configure is run. This is pretty annoying, since
! 576: # it makes $ac_aux_dir quite unusable in subdirectories: in the top
! 577: # source directory, any form will work fine, but in subdirectories a
! 578: # relative path needs to be adjusted first.
! 579: #
! 580: # $ac_aux_dir/missing
! 581: # fails when called from a subdirectory if $ac_aux_dir is relative
! 582: # $top_srcdir/$ac_aux_dir/missing
! 583: # fails if $ac_aux_dir is absolute,
! 584: # fails when called from a subdirectory in a VPATH build with
! 585: # a relative $ac_aux_dir
! 586: #
! 587: # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
! 588: # are both prefixed by $srcdir. In an in-source build this is usually
! 589: # harmless because $srcdir is '.', but things will broke when you
! 590: # start a VPATH build or use an absolute $srcdir.
! 591: #
! 592: # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
! 593: # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
! 594: # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
! 595: # and then we would define $MISSING as
! 596: # MISSING="\${SHELL} $am_aux_dir/missing"
! 597: # This will work as long as MISSING is not called from configure, because
! 598: # unfortunately $(top_srcdir) has no meaning in configure.
! 599: # However there are other variables, like CC, which are often used in
! 600: # configure, and could therefore not use this "fixed" $ac_aux_dir.
! 601: #
! 602: # Another solution, used here, is to always expand $ac_aux_dir to an
! 603: # absolute PATH. The drawback is that using absolute paths prevent a
! 604: # configured tree to be moved without reconfiguration.
! 605:
! 606: AC_DEFUN([AM_AUX_DIR_EXPAND],
! 607: [AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
! 608: # Expand $ac_aux_dir to an absolute path.
! 609: am_aux_dir=`cd "$ac_aux_dir" && pwd`
! 610: ])
! 611:
! 612: # AM_COND_IF -*- Autoconf -*-
! 613:
! 614: # Copyright (C) 2008-2017 Free Software Foundation, Inc.
! 615: #
! 616: # This file is free software; the Free Software Foundation
! 617: # gives unlimited permission to copy and/or distribute it,
! 618: # with or without modifications, as long as this notice is preserved.
! 619:
! 620: # _AM_COND_IF
! 621: # _AM_COND_ELSE
! 622: # _AM_COND_ENDIF
! 623: # --------------
! 624: # These macros are only used for tracing.
! 625: m4_define([_AM_COND_IF])
! 626: m4_define([_AM_COND_ELSE])
! 627: m4_define([_AM_COND_ENDIF])
! 628:
! 629: # AM_COND_IF(COND, [IF-TRUE], [IF-FALSE])
! 630: # ---------------------------------------
! 631: # If the shell condition COND is true, execute IF-TRUE, otherwise execute
! 632: # IF-FALSE. Allow automake to learn about conditional instantiating macros
! 633: # (the AC_CONFIG_FOOS).
! 634: AC_DEFUN([AM_COND_IF],
! 635: [m4_ifndef([_AM_COND_VALUE_$1],
! 636: [m4_fatal([$0: no such condition "$1"])])dnl
! 637: _AM_COND_IF([$1])dnl
! 638: if test -z "$$1_TRUE"; then :
! 639: m4_n([$2])[]dnl
! 640: m4_ifval([$3],
! 641: [_AM_COND_ELSE([$1])dnl
! 642: else
! 643: $3
! 644: ])dnl
! 645: _AM_COND_ENDIF([$1])dnl
! 646: fi[]dnl
! 647: ])
! 648:
! 649: # AM_CONDITIONAL -*- Autoconf -*-
! 650:
! 651: # Copyright (C) 1997-2017 Free Software Foundation, Inc.
! 652: #
! 653: # This file is free software; the Free Software Foundation
! 654: # gives unlimited permission to copy and/or distribute it,
! 655: # with or without modifications, as long as this notice is preserved.
! 656:
! 657: # AM_CONDITIONAL(NAME, SHELL-CONDITION)
! 658: # -------------------------------------
! 659: # Define a conditional.
! 660: AC_DEFUN([AM_CONDITIONAL],
! 661: [AC_PREREQ([2.52])dnl
! 662: m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
! 663: [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
! 664: AC_SUBST([$1_TRUE])dnl
! 665: AC_SUBST([$1_FALSE])dnl
! 666: _AM_SUBST_NOTMAKE([$1_TRUE])dnl
! 667: _AM_SUBST_NOTMAKE([$1_FALSE])dnl
! 668: m4_define([_AM_COND_VALUE_$1], [$2])dnl
! 669: if $2; then
! 670: $1_TRUE=
! 671: $1_FALSE='#'
! 672: else
! 673: $1_TRUE='#'
! 674: $1_FALSE=
! 675: fi
! 676: AC_CONFIG_COMMANDS_PRE(
! 677: [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
! 678: AC_MSG_ERROR([[conditional "$1" was never defined.
! 679: Usually this means the macro was only invoked conditionally.]])
! 680: fi])])
! 681:
! 682: # Copyright (C) 1999-2017 Free Software Foundation, Inc.
! 683: #
! 684: # This file is free software; the Free Software Foundation
! 685: # gives unlimited permission to copy and/or distribute it,
! 686: # with or without modifications, as long as this notice is preserved.
! 687:
! 688:
! 689: # There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
! 690: # written in clear, in which case automake, when reading aclocal.m4,
! 691: # will think it sees a *use*, and therefore will trigger all it's
! 692: # C support machinery. Also note that it means that autoscan, seeing
! 693: # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
! 694:
! 695:
! 696: # _AM_DEPENDENCIES(NAME)
! 697: # ----------------------
! 698: # See how the compiler implements dependency checking.
! 699: # NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
! 700: # We try a few techniques and use that to set a single cache variable.
! 701: #
! 702: # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
! 703: # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
! 704: # dependency, and given that the user is not expected to run this macro,
! 705: # just rely on AC_PROG_CC.
! 706: AC_DEFUN([_AM_DEPENDENCIES],
! 707: [AC_REQUIRE([AM_SET_DEPDIR])dnl
! 708: AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
! 709: AC_REQUIRE([AM_MAKE_INCLUDE])dnl
! 710: AC_REQUIRE([AM_DEP_TRACK])dnl
! 711:
! 712: m4_if([$1], [CC], [depcc="$CC" am_compiler_list=],
! 713: [$1], [CXX], [depcc="$CXX" am_compiler_list=],
! 714: [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
! 715: [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
! 716: [$1], [UPC], [depcc="$UPC" am_compiler_list=],
! 717: [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
! 718: [depcc="$$1" am_compiler_list=])
! 719:
! 720: AC_CACHE_CHECK([dependency style of $depcc],
! 721: [am_cv_$1_dependencies_compiler_type],
! 722: [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
! 723: # We make a subdir and do the tests there. Otherwise we can end up
! 724: # making bogus files that we don't know about and never remove. For
! 725: # instance it was reported that on HP-UX the gcc test will end up
! 726: # making a dummy file named 'D' -- because '-MD' means "put the output
! 727: # in D".
! 728: rm -rf conftest.dir
! 729: mkdir conftest.dir
! 730: # Copy depcomp to subdir because otherwise we won't find it if we're
! 731: # using a relative directory.
! 732: cp "$am_depcomp" conftest.dir
! 733: cd conftest.dir
! 734: # We will build objects and dependencies in a subdirectory because
! 735: # it helps to detect inapplicable dependency modes. For instance
! 736: # both Tru64's cc and ICC support -MD to output dependencies as a
! 737: # side effect of compilation, but ICC will put the dependencies in
! 738: # the current directory while Tru64 will put them in the object
! 739: # directory.
! 740: mkdir sub
! 741:
! 742: am_cv_$1_dependencies_compiler_type=none
! 743: if test "$am_compiler_list" = ""; then
! 744: am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
! 745: fi
! 746: am__universal=false
! 747: m4_case([$1], [CC],
! 748: [case " $depcc " in #(
! 749: *\ -arch\ *\ -arch\ *) am__universal=true ;;
! 750: esac],
! 751: [CXX],
! 752: [case " $depcc " in #(
! 753: *\ -arch\ *\ -arch\ *) am__universal=true ;;
! 754: esac])
! 755:
! 756: for depmode in $am_compiler_list; do
! 757: # Setup a source with many dependencies, because some compilers
! 758: # like to wrap large dependency lists on column 80 (with \), and
! 759: # we should not choose a depcomp mode which is confused by this.
! 760: #
! 761: # We need to recreate these files for each test, as the compiler may
! 762: # overwrite some of them when testing with obscure command lines.
! 763: # This happens at least with the AIX C compiler.
! 764: : > sub/conftest.c
! 765: for i in 1 2 3 4 5 6; do
! 766: echo '#include "conftst'$i'.h"' >> sub/conftest.c
! 767: # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
! 768: # Solaris 10 /bin/sh.
! 769: echo '/* dummy */' > sub/conftst$i.h
! 770: done
! 771: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
! 772:
! 773: # We check with '-c' and '-o' for the sake of the "dashmstdout"
! 774: # mode. It turns out that the SunPro C++ compiler does not properly
! 775: # handle '-M -o', and we need to detect this. Also, some Intel
! 776: # versions had trouble with output in subdirs.
! 777: am__obj=sub/conftest.${OBJEXT-o}
! 778: am__minus_obj="-o $am__obj"
! 779: case $depmode in
! 780: gcc)
! 781: # This depmode causes a compiler race in universal mode.
! 782: test "$am__universal" = false || continue
! 783: ;;
! 784: nosideeffect)
! 785: # After this tag, mechanisms are not by side-effect, so they'll
! 786: # only be used when explicitly requested.
! 787: if test "x$enable_dependency_tracking" = xyes; then
! 788: continue
! 789: else
! 790: break
! 791: fi
! 792: ;;
! 793: msvc7 | msvc7msys | msvisualcpp | msvcmsys)
! 794: # This compiler won't grok '-c -o', but also, the minuso test has
! 795: # not run yet. These depmodes are late enough in the game, and
! 796: # so weak that their functioning should not be impacted.
! 797: am__obj=conftest.${OBJEXT-o}
! 798: am__minus_obj=
! 799: ;;
! 800: none) break ;;
! 801: esac
! 802: if depmode=$depmode \
! 803: source=sub/conftest.c object=$am__obj \
! 804: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
! 805: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
! 806: >/dev/null 2>conftest.err &&
! 807: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
! 808: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
! 809: grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
! 810: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
! 811: # icc doesn't choke on unknown options, it will just issue warnings
! 812: # or remarks (even with -Werror). So we grep stderr for any message
! 813: # that says an option was ignored or not supported.
! 814: # When given -MP, icc 7.0 and 7.1 complain thusly:
! 815: # icc: Command line warning: ignoring option '-M'; no argument required
! 816: # The diagnosis changed in icc 8.0:
! 817: # icc: Command line remark: option '-MP' not supported
! 818: if (grep 'ignoring option' conftest.err ||
! 819: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
! 820: am_cv_$1_dependencies_compiler_type=$depmode
! 821: break
! 822: fi
! 823: fi
! 824: done
! 825:
! 826: cd ..
! 827: rm -rf conftest.dir
! 828: else
! 829: am_cv_$1_dependencies_compiler_type=none
! 830: fi
! 831: ])
! 832: AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
! 833: AM_CONDITIONAL([am__fastdep$1], [
! 834: test "x$enable_dependency_tracking" != xno \
! 835: && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
! 836: ])
! 837:
! 838:
! 839: # AM_SET_DEPDIR
! 840: # -------------
! 841: # Choose a directory name for dependency files.
! 842: # This macro is AC_REQUIREd in _AM_DEPENDENCIES.
! 843: AC_DEFUN([AM_SET_DEPDIR],
! 844: [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
! 845: AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
! 846: ])
! 847:
! 848:
! 849: # AM_DEP_TRACK
! 850: # ------------
! 851: AC_DEFUN([AM_DEP_TRACK],
! 852: [AC_ARG_ENABLE([dependency-tracking], [dnl
! 853: AS_HELP_STRING(
! 854: [--enable-dependency-tracking],
! 855: [do not reject slow dependency extractors])
! 856: AS_HELP_STRING(
! 857: [--disable-dependency-tracking],
! 858: [speeds up one-time build])])
! 859: if test "x$enable_dependency_tracking" != xno; then
! 860: am_depcomp="$ac_aux_dir/depcomp"
! 861: AMDEPBACKSLASH='\'
! 862: am__nodep='_no'
! 863: fi
! 864: AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
! 865: AC_SUBST([AMDEPBACKSLASH])dnl
! 866: _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
! 867: AC_SUBST([am__nodep])dnl
! 868: _AM_SUBST_NOTMAKE([am__nodep])dnl
! 869: ])
! 870:
! 871: # Generate code to set up dependency tracking. -*- Autoconf -*-
! 872:
! 873: # Copyright (C) 1999-2017 Free Software Foundation, Inc.
! 874: #
! 875: # This file is free software; the Free Software Foundation
! 876: # gives unlimited permission to copy and/or distribute it,
! 877: # with or without modifications, as long as this notice is preserved.
! 878:
! 879:
! 880: # _AM_OUTPUT_DEPENDENCY_COMMANDS
! 881: # ------------------------------
! 882: AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
! 883: [{
! 884: # Older Autoconf quotes --file arguments for eval, but not when files
! 885: # are listed without --file. Let's play safe and only enable the eval
! 886: # if we detect the quoting.
! 887: case $CONFIG_FILES in
! 888: *\'*) eval set x "$CONFIG_FILES" ;;
! 889: *) set x $CONFIG_FILES ;;
! 890: esac
! 891: shift
! 892: for mf
! 893: do
! 894: # Strip MF so we end up with the name of the file.
! 895: mf=`echo "$mf" | sed -e 's/:.*$//'`
! 896: # Check whether this is an Automake generated Makefile or not.
! 897: # We used to match only the files named 'Makefile.in', but
! 898: # some people rename them; so instead we look at the file content.
! 899: # Grep'ing the first line is not enough: some people post-process
! 900: # each Makefile.in and add a new line on top of each file to say so.
! 901: # Grep'ing the whole file is not good either: AIX grep has a line
! 902: # limit of 2048, but all sed's we know have understand at least 4000.
! 903: if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
! 904: dirpart=`AS_DIRNAME("$mf")`
! 905: else
! 906: continue
! 907: fi
! 908: # Extract the definition of DEPDIR, am__include, and am__quote
! 909: # from the Makefile without running 'make'.
! 910: DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
! 911: test -z "$DEPDIR" && continue
! 912: am__include=`sed -n 's/^am__include = //p' < "$mf"`
! 913: test -z "$am__include" && continue
! 914: am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
! 915: # Find all dependency output files, they are included files with
! 916: # $(DEPDIR) in their names. We invoke sed twice because it is the
! 917: # simplest approach to changing $(DEPDIR) to its actual value in the
! 918: # expansion.
! 919: for file in `sed -n "
! 920: s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
! 921: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
! 922: # Make sure the directory exists.
! 923: test -f "$dirpart/$file" && continue
! 924: fdir=`AS_DIRNAME(["$file"])`
! 925: AS_MKDIR_P([$dirpart/$fdir])
! 926: # echo "creating $dirpart/$file"
! 927: echo '# dummy' > "$dirpart/$file"
! 928: done
! 929: done
! 930: }
! 931: ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
! 932:
! 933:
! 934: # AM_OUTPUT_DEPENDENCY_COMMANDS
! 935: # -----------------------------
! 936: # This macro should only be invoked once -- use via AC_REQUIRE.
! 937: #
! 938: # This code is only required when automatic dependency tracking
! 939: # is enabled. FIXME. This creates each '.P' file that we will
! 940: # need in order to bootstrap the dependency handling code.
! 941: AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
! 942: [AC_CONFIG_COMMANDS([depfiles],
! 943: [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
! 944: [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
! 945: ])
! 946:
! 947: # Do all the work for Automake. -*- Autoconf -*-
! 948:
! 949: # Copyright (C) 1996-2017 Free Software Foundation, Inc.
! 950: #
! 951: # This file is free software; the Free Software Foundation
! 952: # gives unlimited permission to copy and/or distribute it,
! 953: # with or without modifications, as long as this notice is preserved.
! 954:
! 955: # This macro actually does too much. Some checks are only needed if
! 956: # your package does certain things. But this isn't really a big deal.
! 957:
! 958: dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
! 959: m4_define([AC_PROG_CC],
! 960: m4_defn([AC_PROG_CC])
! 961: [_AM_PROG_CC_C_O
! 962: ])
! 963:
! 964: # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
! 965: # AM_INIT_AUTOMAKE([OPTIONS])
! 966: # -----------------------------------------------
! 967: # The call with PACKAGE and VERSION arguments is the old style
! 968: # call (pre autoconf-2.50), which is being phased out. PACKAGE
! 969: # and VERSION should now be passed to AC_INIT and removed from
! 970: # the call to AM_INIT_AUTOMAKE.
! 971: # We support both call styles for the transition. After
! 972: # the next Automake release, Autoconf can make the AC_INIT
! 973: # arguments mandatory, and then we can depend on a new Autoconf
! 974: # release and drop the old call support.
! 975: AC_DEFUN([AM_INIT_AUTOMAKE],
! 976: [AC_PREREQ([2.65])dnl
! 977: dnl Autoconf wants to disallow AM_ names. We explicitly allow
! 978: dnl the ones we care about.
! 979: m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
! 980: AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
! 981: AC_REQUIRE([AC_PROG_INSTALL])dnl
! 982: if test "`cd $srcdir && pwd`" != "`pwd`"; then
! 983: # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
! 984: # is not polluted with repeated "-I."
! 985: AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
! 986: # test to see if srcdir already configured
! 987: if test -f $srcdir/config.status; then
! 988: AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
! 989: fi
! 990: fi
! 991:
! 992: # test whether we have cygpath
! 993: if test -z "$CYGPATH_W"; then
! 994: if (cygpath --version) >/dev/null 2>/dev/null; then
! 995: CYGPATH_W='cygpath -w'
! 996: else
! 997: CYGPATH_W=echo
! 998: fi
! 999: fi
! 1000: AC_SUBST([CYGPATH_W])
! 1001:
! 1002: # Define the identity of the package.
! 1003: dnl Distinguish between old-style and new-style calls.
! 1004: m4_ifval([$2],
! 1005: [AC_DIAGNOSE([obsolete],
! 1006: [$0: two- and three-arguments forms are deprecated.])
! 1007: m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
! 1008: AC_SUBST([PACKAGE], [$1])dnl
! 1009: AC_SUBST([VERSION], [$2])],
! 1010: [_AM_SET_OPTIONS([$1])dnl
! 1011: dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
! 1012: m4_if(
! 1013: m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
! 1014: [ok:ok],,
! 1015: [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
! 1016: AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
! 1017: AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
! 1018:
! 1019: _AM_IF_OPTION([no-define],,
! 1020: [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
! 1021: AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
! 1022:
! 1023: # Some tools Automake needs.
! 1024: AC_REQUIRE([AM_SANITY_CHECK])dnl
! 1025: AC_REQUIRE([AC_ARG_PROGRAM])dnl
! 1026: AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
! 1027: AM_MISSING_PROG([AUTOCONF], [autoconf])
! 1028: AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
! 1029: AM_MISSING_PROG([AUTOHEADER], [autoheader])
! 1030: AM_MISSING_PROG([MAKEINFO], [makeinfo])
! 1031: AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
! 1032: AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
! 1033: AC_REQUIRE([AC_PROG_MKDIR_P])dnl
! 1034: # For better backward compatibility. To be removed once Automake 1.9.x
! 1035: # dies out for good. For more background, see:
! 1036: # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
! 1037: # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
! 1038: AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
! 1039: # We need awk for the "check" target (and possibly the TAP driver). The
! 1040: # system "awk" is bad on some platforms.
! 1041: AC_REQUIRE([AC_PROG_AWK])dnl
! 1042: AC_REQUIRE([AC_PROG_MAKE_SET])dnl
! 1043: AC_REQUIRE([AM_SET_LEADING_DOT])dnl
! 1044: _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
! 1045: [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
! 1046: [_AM_PROG_TAR([v7])])])
! 1047: _AM_IF_OPTION([no-dependencies],,
! 1048: [AC_PROVIDE_IFELSE([AC_PROG_CC],
! 1049: [_AM_DEPENDENCIES([CC])],
! 1050: [m4_define([AC_PROG_CC],
! 1051: m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
! 1052: AC_PROVIDE_IFELSE([AC_PROG_CXX],
! 1053: [_AM_DEPENDENCIES([CXX])],
! 1054: [m4_define([AC_PROG_CXX],
! 1055: m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
! 1056: AC_PROVIDE_IFELSE([AC_PROG_OBJC],
! 1057: [_AM_DEPENDENCIES([OBJC])],
! 1058: [m4_define([AC_PROG_OBJC],
! 1059: m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
! 1060: AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
! 1061: [_AM_DEPENDENCIES([OBJCXX])],
! 1062: [m4_define([AC_PROG_OBJCXX],
! 1063: m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
! 1064: ])
! 1065: AC_REQUIRE([AM_SILENT_RULES])dnl
! 1066: dnl The testsuite driver may need to know about EXEEXT, so add the
! 1067: dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This
! 1068: dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
! 1069: AC_CONFIG_COMMANDS_PRE(dnl
! 1070: [m4_provide_if([_AM_COMPILER_EXEEXT],
! 1071: [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
! 1072:
! 1073: # POSIX will say in a future version that running "rm -f" with no argument
! 1074: # is OK; and we want to be able to make that assumption in our Makefile
! 1075: # recipes. So use an aggressive probe to check that the usage we want is
! 1076: # actually supported "in the wild" to an acceptable degree.
! 1077: # See automake bug#10828.
! 1078: # To make any issue more visible, cause the running configure to be aborted
! 1079: # by default if the 'rm' program in use doesn't match our expectations; the
! 1080: # user can still override this though.
! 1081: if rm -f && rm -fr && rm -rf; then : OK; else
! 1082: cat >&2 <<'END'
! 1083: Oops!
! 1084:
! 1085: Your 'rm' program seems unable to run without file operands specified
! 1086: on the command line, even when the '-f' option is present. This is contrary
! 1087: to the behaviour of most rm programs out there, and not conforming with
! 1088: the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
! 1089:
! 1090: Please tell bug-automake@gnu.org about your system, including the value
! 1091: of your $PATH and any error possibly output before this message. This
! 1092: can help us improve future automake versions.
! 1093:
! 1094: END
! 1095: if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
! 1096: echo 'Configuration will proceed anyway, since you have set the' >&2
! 1097: echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
! 1098: echo >&2
! 1099: else
! 1100: cat >&2 <<'END'
! 1101: Aborting the configuration process, to ensure you take notice of the issue.
! 1102:
! 1103: You can download and install GNU coreutils to get an 'rm' implementation
! 1104: that behaves properly: <http://www.gnu.org/software/coreutils/>.
! 1105:
! 1106: If you want to complete the configuration process using your problematic
! 1107: 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
! 1108: to "yes", and re-run configure.
! 1109:
! 1110: END
! 1111: AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
! 1112: fi
! 1113: fi
! 1114: dnl The trailing newline in this macro's definition is deliberate, for
! 1115: dnl backward compatibility and to allow trailing 'dnl'-style comments
! 1116: dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841.
! 1117: ])
! 1118:
! 1119: dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
! 1120: dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
! 1121: dnl mangled by Autoconf and run in a shell conditional statement.
! 1122: m4_define([_AC_COMPILER_EXEEXT],
! 1123: m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
! 1124:
! 1125: # When config.status generates a header, we must update the stamp-h file.
! 1126: # This file resides in the same directory as the config header
! 1127: # that is generated. The stamp files are numbered to have different names.
! 1128:
! 1129: # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
! 1130: # loop where config.status creates the headers, so we can generate
! 1131: # our stamp files there.
! 1132: AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
! 1133: [# Compute $1's index in $config_headers.
! 1134: _am_arg=$1
! 1135: _am_stamp_count=1
! 1136: for _am_header in $config_headers :; do
! 1137: case $_am_header in
! 1138: $_am_arg | $_am_arg:* )
! 1139: break ;;
! 1140: * )
! 1141: _am_stamp_count=`expr $_am_stamp_count + 1` ;;
! 1142: esac
! 1143: done
! 1144: echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
! 1145:
! 1146: # Copyright (C) 2001-2017 Free Software Foundation, Inc.
! 1147: #
! 1148: # This file is free software; the Free Software Foundation
! 1149: # gives unlimited permission to copy and/or distribute it,
! 1150: # with or without modifications, as long as this notice is preserved.
! 1151:
! 1152: # AM_PROG_INSTALL_SH
! 1153: # ------------------
! 1154: # Define $install_sh.
! 1155: AC_DEFUN([AM_PROG_INSTALL_SH],
! 1156: [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
! 1157: if test x"${install_sh+set}" != xset; then
! 1158: case $am_aux_dir in
! 1159: *\ * | *\ *)
! 1160: install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
! 1161: *)
! 1162: install_sh="\${SHELL} $am_aux_dir/install-sh"
! 1163: esac
! 1164: fi
! 1165: AC_SUBST([install_sh])])
! 1166:
! 1167: # Copyright (C) 2003-2017 Free Software Foundation, Inc.
! 1168: #
! 1169: # This file is free software; the Free Software Foundation
! 1170: # gives unlimited permission to copy and/or distribute it,
! 1171: # with or without modifications, as long as this notice is preserved.
! 1172:
! 1173: # Check whether the underlying file-system supports filenames
! 1174: # with a leading dot. For instance MS-DOS doesn't.
! 1175: AC_DEFUN([AM_SET_LEADING_DOT],
! 1176: [rm -rf .tst 2>/dev/null
! 1177: mkdir .tst 2>/dev/null
! 1178: if test -d .tst; then
! 1179: am__leading_dot=.
! 1180: else
! 1181: am__leading_dot=_
! 1182: fi
! 1183: rmdir .tst 2>/dev/null
! 1184: AC_SUBST([am__leading_dot])])
! 1185:
! 1186: # Check to see how 'make' treats includes. -*- Autoconf -*-
! 1187:
! 1188: # Copyright (C) 2001-2017 Free Software Foundation, Inc.
! 1189: #
! 1190: # This file is free software; the Free Software Foundation
! 1191: # gives unlimited permission to copy and/or distribute it,
! 1192: # with or without modifications, as long as this notice is preserved.
! 1193:
! 1194: # AM_MAKE_INCLUDE()
! 1195: # -----------------
! 1196: # Check to see how make treats includes.
! 1197: AC_DEFUN([AM_MAKE_INCLUDE],
! 1198: [am_make=${MAKE-make}
! 1199: cat > confinc << 'END'
! 1200: am__doit:
! 1201: @echo this is the am__doit target
! 1202: .PHONY: am__doit
! 1203: END
! 1204: # If we don't find an include directive, just comment out the code.
! 1205: AC_MSG_CHECKING([for style of include used by $am_make])
! 1206: am__include="#"
! 1207: am__quote=
! 1208: _am_result=none
! 1209: # First try GNU make style include.
! 1210: echo "include confinc" > confmf
! 1211: # Ignore all kinds of additional output from 'make'.
! 1212: case `$am_make -s -f confmf 2> /dev/null` in #(
! 1213: *the\ am__doit\ target*)
! 1214: am__include=include
! 1215: am__quote=
! 1216: _am_result=GNU
! 1217: ;;
! 1218: esac
! 1219: # Now try BSD make style include.
! 1220: if test "$am__include" = "#"; then
! 1221: echo '.include "confinc"' > confmf
! 1222: case `$am_make -s -f confmf 2> /dev/null` in #(
! 1223: *the\ am__doit\ target*)
! 1224: am__include=.include
! 1225: am__quote="\""
! 1226: _am_result=BSD
! 1227: ;;
! 1228: esac
! 1229: fi
! 1230: AC_SUBST([am__include])
! 1231: AC_SUBST([am__quote])
! 1232: AC_MSG_RESULT([$_am_result])
! 1233: rm -f confinc confmf
! 1234: ])
! 1235:
! 1236: # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
! 1237:
! 1238: # Copyright (C) 1997-2017 Free Software Foundation, Inc.
! 1239: #
! 1240: # This file is free software; the Free Software Foundation
! 1241: # gives unlimited permission to copy and/or distribute it,
! 1242: # with or without modifications, as long as this notice is preserved.
! 1243:
! 1244: # AM_MISSING_PROG(NAME, PROGRAM)
! 1245: # ------------------------------
! 1246: AC_DEFUN([AM_MISSING_PROG],
! 1247: [AC_REQUIRE([AM_MISSING_HAS_RUN])
! 1248: $1=${$1-"${am_missing_run}$2"}
! 1249: AC_SUBST($1)])
! 1250:
! 1251: # AM_MISSING_HAS_RUN
! 1252: # ------------------
! 1253: # Define MISSING if not defined so far and test if it is modern enough.
! 1254: # If it is, set am_missing_run to use it, otherwise, to nothing.
! 1255: AC_DEFUN([AM_MISSING_HAS_RUN],
! 1256: [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
! 1257: AC_REQUIRE_AUX_FILE([missing])dnl
! 1258: if test x"${MISSING+set}" != xset; then
! 1259: case $am_aux_dir in
! 1260: *\ * | *\ *)
! 1261: MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
! 1262: *)
! 1263: MISSING="\${SHELL} $am_aux_dir/missing" ;;
! 1264: esac
! 1265: fi
! 1266: # Use eval to expand $SHELL
! 1267: if eval "$MISSING --is-lightweight"; then
! 1268: am_missing_run="$MISSING "
! 1269: else
! 1270: am_missing_run=
! 1271: AC_MSG_WARN(['missing' script is too old or missing])
! 1272: fi
! 1273: ])
! 1274:
! 1275: # Helper functions for option handling. -*- Autoconf -*-
! 1276:
! 1277: # Copyright (C) 2001-2017 Free Software Foundation, Inc.
! 1278: #
! 1279: # This file is free software; the Free Software Foundation
! 1280: # gives unlimited permission to copy and/or distribute it,
! 1281: # with or without modifications, as long as this notice is preserved.
! 1282:
! 1283: # _AM_MANGLE_OPTION(NAME)
! 1284: # -----------------------
! 1285: AC_DEFUN([_AM_MANGLE_OPTION],
! 1286: [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
! 1287:
! 1288: # _AM_SET_OPTION(NAME)
! 1289: # --------------------
! 1290: # Set option NAME. Presently that only means defining a flag for this option.
! 1291: AC_DEFUN([_AM_SET_OPTION],
! 1292: [m4_define(_AM_MANGLE_OPTION([$1]), [1])])
! 1293:
! 1294: # _AM_SET_OPTIONS(OPTIONS)
! 1295: # ------------------------
! 1296: # OPTIONS is a space-separated list of Automake options.
! 1297: AC_DEFUN([_AM_SET_OPTIONS],
! 1298: [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
! 1299:
! 1300: # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
! 1301: # -------------------------------------------
! 1302: # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
! 1303: AC_DEFUN([_AM_IF_OPTION],
! 1304: [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
! 1305:
! 1306: # Copyright (C) 1999-2017 Free Software Foundation, Inc.
! 1307: #
! 1308: # This file is free software; the Free Software Foundation
! 1309: # gives unlimited permission to copy and/or distribute it,
! 1310: # with or without modifications, as long as this notice is preserved.
! 1311:
! 1312: # _AM_PROG_CC_C_O
! 1313: # ---------------
! 1314: # Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC
! 1315: # to automatically call this.
! 1316: AC_DEFUN([_AM_PROG_CC_C_O],
! 1317: [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
! 1318: AC_REQUIRE_AUX_FILE([compile])dnl
! 1319: AC_LANG_PUSH([C])dnl
! 1320: AC_CACHE_CHECK(
! 1321: [whether $CC understands -c and -o together],
! 1322: [am_cv_prog_cc_c_o],
! 1323: [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
! 1324: # Make sure it works both with $CC and with simple cc.
! 1325: # Following AC_PROG_CC_C_O, we do the test twice because some
! 1326: # compilers refuse to overwrite an existing .o file with -o,
! 1327: # though they will create one.
! 1328: am_cv_prog_cc_c_o=yes
! 1329: for am_i in 1 2; do
! 1330: if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
! 1331: && test -f conftest2.$ac_objext; then
! 1332: : OK
! 1333: else
! 1334: am_cv_prog_cc_c_o=no
! 1335: break
! 1336: fi
! 1337: done
! 1338: rm -f core conftest*
! 1339: unset am_i])
! 1340: if test "$am_cv_prog_cc_c_o" != yes; then
! 1341: # Losing compiler, so override with the script.
! 1342: # FIXME: It is wrong to rewrite CC.
! 1343: # But if we don't then we get into trouble of one sort or another.
! 1344: # A longer-term fix would be to have automake use am__CC in this case,
! 1345: # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
! 1346: CC="$am_aux_dir/compile $CC"
! 1347: fi
! 1348: AC_LANG_POP([C])])
! 1349:
! 1350: # For backward compatibility.
! 1351: AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
! 1352:
! 1353: # Copyright (C) 1999-2017 Free Software Foundation, Inc.
! 1354: #
! 1355: # This file is free software; the Free Software Foundation
! 1356: # gives unlimited permission to copy and/or distribute it,
! 1357: # with or without modifications, as long as this notice is preserved.
! 1358:
! 1359:
! 1360: # AM_PATH_PYTHON([MINIMUM-VERSION], [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
! 1361: # ---------------------------------------------------------------------------
! 1362: # Adds support for distributing Python modules and packages. To
! 1363: # install modules, copy them to $(pythondir), using the python_PYTHON
! 1364: # automake variable. To install a package with the same name as the
! 1365: # automake package, install to $(pkgpythondir), or use the
! 1366: # pkgpython_PYTHON automake variable.
! 1367: #
! 1368: # The variables $(pyexecdir) and $(pkgpyexecdir) are provided as
! 1369: # locations to install python extension modules (shared libraries).
! 1370: # Another macro is required to find the appropriate flags to compile
! 1371: # extension modules.
! 1372: #
! 1373: # If your package is configured with a different prefix to python,
! 1374: # users will have to add the install directory to the PYTHONPATH
! 1375: # environment variable, or create a .pth file (see the python
! 1376: # documentation for details).
! 1377: #
! 1378: # If the MINIMUM-VERSION argument is passed, AM_PATH_PYTHON will
! 1379: # cause an error if the version of python installed on the system
! 1380: # doesn't meet the requirement. MINIMUM-VERSION should consist of
! 1381: # numbers and dots only.
! 1382: AC_DEFUN([AM_PATH_PYTHON],
! 1383: [
! 1384: dnl Find a Python interpreter. Python versions prior to 2.0 are not
! 1385: dnl supported. (2.0 was released on October 16, 2000).
! 1386: dnl FIXME: Remove the need to hard-code Python versions here.
! 1387: m4_define_default([_AM_PYTHON_INTERPRETER_LIST],
! 1388: [python python2 python3 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python2.7 dnl
! 1389: python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0])
! 1390:
! 1391: AC_ARG_VAR([PYTHON], [the Python interpreter])
! 1392:
! 1393: m4_if([$1],[],[
! 1394: dnl No version check is needed.
! 1395: # Find any Python interpreter.
! 1396: if test -z "$PYTHON"; then
! 1397: AC_PATH_PROGS([PYTHON], _AM_PYTHON_INTERPRETER_LIST, :)
! 1398: fi
! 1399: am_display_PYTHON=python
! 1400: ], [
! 1401: dnl A version check is needed.
! 1402: if test -n "$PYTHON"; then
! 1403: # If the user set $PYTHON, use it and don't search something else.
! 1404: AC_MSG_CHECKING([whether $PYTHON version is >= $1])
! 1405: AM_PYTHON_CHECK_VERSION([$PYTHON], [$1],
! 1406: [AC_MSG_RESULT([yes])],
! 1407: [AC_MSG_RESULT([no])
! 1408: AC_MSG_ERROR([Python interpreter is too old])])
! 1409: am_display_PYTHON=$PYTHON
! 1410: else
! 1411: # Otherwise, try each interpreter until we find one that satisfies
! 1412: # VERSION.
! 1413: AC_CACHE_CHECK([for a Python interpreter with version >= $1],
! 1414: [am_cv_pathless_PYTHON],[
! 1415: for am_cv_pathless_PYTHON in _AM_PYTHON_INTERPRETER_LIST none; do
! 1416: test "$am_cv_pathless_PYTHON" = none && break
! 1417: AM_PYTHON_CHECK_VERSION([$am_cv_pathless_PYTHON], [$1], [break])
! 1418: done])
! 1419: # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
! 1420: if test "$am_cv_pathless_PYTHON" = none; then
! 1421: PYTHON=:
! 1422: else
! 1423: AC_PATH_PROG([PYTHON], [$am_cv_pathless_PYTHON])
! 1424: fi
! 1425: am_display_PYTHON=$am_cv_pathless_PYTHON
! 1426: fi
! 1427: ])
! 1428:
! 1429: if test "$PYTHON" = :; then
! 1430: dnl Run any user-specified action, or abort.
! 1431: m4_default([$3], [AC_MSG_ERROR([no suitable Python interpreter found])])
! 1432: else
! 1433:
! 1434: dnl Query Python for its version number. Getting [:3] seems to be
! 1435: dnl the best way to do this; it's what "site.py" does in the standard
! 1436: dnl library.
! 1437:
! 1438: AC_CACHE_CHECK([for $am_display_PYTHON version], [am_cv_python_version],
! 1439: [am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[[:3]])"`])
! 1440: AC_SUBST([PYTHON_VERSION], [$am_cv_python_version])
! 1441:
! 1442: dnl Use the values of $prefix and $exec_prefix for the corresponding
! 1443: dnl values of PYTHON_PREFIX and PYTHON_EXEC_PREFIX. These are made
! 1444: dnl distinct variables so they can be overridden if need be. However,
! 1445: dnl general consensus is that you shouldn't need this ability.
! 1446:
! 1447: AC_SUBST([PYTHON_PREFIX], ['${prefix}'])
! 1448: AC_SUBST([PYTHON_EXEC_PREFIX], ['${exec_prefix}'])
! 1449:
! 1450: dnl At times (like when building shared libraries) you may want
! 1451: dnl to know which OS platform Python thinks this is.
! 1452:
! 1453: AC_CACHE_CHECK([for $am_display_PYTHON platform], [am_cv_python_platform],
! 1454: [am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`])
! 1455: AC_SUBST([PYTHON_PLATFORM], [$am_cv_python_platform])
! 1456:
! 1457: # Just factor out some code duplication.
! 1458: am_python_setup_sysconfig="\
! 1459: import sys
! 1460: # Prefer sysconfig over distutils.sysconfig, for better compatibility
! 1461: # with python 3.x. See automake bug#10227.
! 1462: try:
! 1463: import sysconfig
! 1464: except ImportError:
! 1465: can_use_sysconfig = 0
! 1466: else:
! 1467: can_use_sysconfig = 1
! 1468: # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
! 1469: # <https://github.com/pypa/virtualenv/issues/118>
! 1470: try:
! 1471: from platform import python_implementation
! 1472: if python_implementation() == 'CPython' and sys.version[[:3]] == '2.7':
! 1473: can_use_sysconfig = 0
! 1474: except ImportError:
! 1475: pass"
! 1476:
! 1477: dnl Set up 4 directories:
! 1478:
! 1479: dnl pythondir -- where to install python scripts. This is the
! 1480: dnl site-packages directory, not the python standard library
! 1481: dnl directory like in previous automake betas. This behavior
! 1482: dnl is more consistent with lispdir.m4 for example.
! 1483: dnl Query distutils for this directory.
! 1484: AC_CACHE_CHECK([for $am_display_PYTHON script directory],
! 1485: [am_cv_python_pythondir],
! 1486: [if test "x$prefix" = xNONE
! 1487: then
! 1488: am_py_prefix=$ac_default_prefix
! 1489: else
! 1490: am_py_prefix=$prefix
! 1491: fi
! 1492: am_cv_python_pythondir=`$PYTHON -c "
! 1493: $am_python_setup_sysconfig
! 1494: if can_use_sysconfig:
! 1495: sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
! 1496: else:
! 1497: from distutils import sysconfig
! 1498: sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
! 1499: sys.stdout.write(sitedir)"`
! 1500: case $am_cv_python_pythondir in
! 1501: $am_py_prefix*)
! 1502: am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
! 1503: am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
! 1504: ;;
! 1505: *)
! 1506: case $am_py_prefix in
! 1507: /usr|/System*) ;;
! 1508: *)
! 1509: am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
! 1510: ;;
! 1511: esac
! 1512: ;;
! 1513: esac
! 1514: ])
! 1515: AC_SUBST([pythondir], [$am_cv_python_pythondir])
! 1516:
! 1517: dnl pkgpythondir -- $PACKAGE directory under pythondir. Was
! 1518: dnl PYTHON_SITE_PACKAGE in previous betas, but this naming is
! 1519: dnl more consistent with the rest of automake.
! 1520:
! 1521: AC_SUBST([pkgpythondir], [\${pythondir}/$PACKAGE])
! 1522:
! 1523: dnl pyexecdir -- directory for installing python extension modules
! 1524: dnl (shared libraries)
! 1525: dnl Query distutils for this directory.
! 1526: AC_CACHE_CHECK([for $am_display_PYTHON extension module directory],
! 1527: [am_cv_python_pyexecdir],
! 1528: [if test "x$exec_prefix" = xNONE
! 1529: then
! 1530: am_py_exec_prefix=$am_py_prefix
! 1531: else
! 1532: am_py_exec_prefix=$exec_prefix
! 1533: fi
! 1534: am_cv_python_pyexecdir=`$PYTHON -c "
! 1535: $am_python_setup_sysconfig
! 1536: if can_use_sysconfig:
! 1537: sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
! 1538: else:
! 1539: from distutils import sysconfig
! 1540: sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
! 1541: sys.stdout.write(sitedir)"`
! 1542: case $am_cv_python_pyexecdir in
! 1543: $am_py_exec_prefix*)
! 1544: am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
! 1545: am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
! 1546: ;;
! 1547: *)
! 1548: case $am_py_exec_prefix in
! 1549: /usr|/System*) ;;
! 1550: *)
! 1551: am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
! 1552: ;;
! 1553: esac
! 1554: ;;
! 1555: esac
! 1556: ])
! 1557: AC_SUBST([pyexecdir], [$am_cv_python_pyexecdir])
! 1558:
! 1559: dnl pkgpyexecdir -- $(pyexecdir)/$(PACKAGE)
! 1560:
! 1561: AC_SUBST([pkgpyexecdir], [\${pyexecdir}/$PACKAGE])
! 1562:
! 1563: dnl Run any user-specified action.
! 1564: $2
! 1565: fi
! 1566:
! 1567: ])
! 1568:
! 1569:
! 1570: # AM_PYTHON_CHECK_VERSION(PROG, VERSION, [ACTION-IF-TRUE], [ACTION-IF-FALSE])
! 1571: # ---------------------------------------------------------------------------
! 1572: # Run ACTION-IF-TRUE if the Python interpreter PROG has version >= VERSION.
! 1573: # Run ACTION-IF-FALSE otherwise.
! 1574: # This test uses sys.hexversion instead of the string equivalent (first
! 1575: # word of sys.version), in order to cope with versions such as 2.2c1.
! 1576: # This supports Python 2.0 or higher. (2.0 was released on October 16, 2000).
! 1577: AC_DEFUN([AM_PYTHON_CHECK_VERSION],
! 1578: [prog="import sys
! 1579: # split strings by '.' and convert to numeric. Append some zeros
! 1580: # because we need at least 4 digits for the hex conversion.
! 1581: # map returns an iterator in Python 3.0 and a list in 2.x
! 1582: minver = list(map(int, '$2'.split('.'))) + [[0, 0, 0]]
! 1583: minverhex = 0
! 1584: # xrange is not present in Python 3.0 and range returns an iterator
! 1585: for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[[i]]
! 1586: sys.exit(sys.hexversion < minverhex)"
! 1587: AS_IF([AM_RUN_LOG([$1 -c "$prog"])], [$3], [$4])])
! 1588:
! 1589: # Copyright (C) 2001-2017 Free Software Foundation, Inc.
! 1590: #
! 1591: # This file is free software; the Free Software Foundation
! 1592: # gives unlimited permission to copy and/or distribute it,
! 1593: # with or without modifications, as long as this notice is preserved.
! 1594:
! 1595: # AM_RUN_LOG(COMMAND)
! 1596: # -------------------
! 1597: # Run COMMAND, save the exit status in ac_status, and log it.
! 1598: # (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
! 1599: AC_DEFUN([AM_RUN_LOG],
! 1600: [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
! 1601: ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
! 1602: ac_status=$?
! 1603: echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
! 1604: (exit $ac_status); }])
! 1605:
! 1606: # Check to make sure that the build environment is sane. -*- Autoconf -*-
! 1607:
! 1608: # Copyright (C) 1996-2017 Free Software Foundation, Inc.
! 1609: #
! 1610: # This file is free software; the Free Software Foundation
! 1611: # gives unlimited permission to copy and/or distribute it,
! 1612: # with or without modifications, as long as this notice is preserved.
! 1613:
! 1614: # AM_SANITY_CHECK
! 1615: # ---------------
! 1616: AC_DEFUN([AM_SANITY_CHECK],
! 1617: [AC_MSG_CHECKING([whether build environment is sane])
! 1618: # Reject unsafe characters in $srcdir or the absolute working directory
! 1619: # name. Accept space and tab only in the latter.
! 1620: am_lf='
! 1621: '
! 1622: case `pwd` in
! 1623: *[[\\\"\#\$\&\'\`$am_lf]]*)
! 1624: AC_MSG_ERROR([unsafe absolute working directory name]);;
! 1625: esac
! 1626: case $srcdir in
! 1627: *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
! 1628: AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
! 1629: esac
! 1630:
! 1631: # Do 'set' in a subshell so we don't clobber the current shell's
! 1632: # arguments. Must try -L first in case configure is actually a
! 1633: # symlink; some systems play weird games with the mod time of symlinks
! 1634: # (eg FreeBSD returns the mod time of the symlink's containing
! 1635: # directory).
! 1636: if (
! 1637: am_has_slept=no
! 1638: for am_try in 1 2; do
! 1639: echo "timestamp, slept: $am_has_slept" > conftest.file
! 1640: set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
! 1641: if test "$[*]" = "X"; then
! 1642: # -L didn't work.
! 1643: set X `ls -t "$srcdir/configure" conftest.file`
! 1644: fi
! 1645: if test "$[*]" != "X $srcdir/configure conftest.file" \
! 1646: && test "$[*]" != "X conftest.file $srcdir/configure"; then
! 1647:
! 1648: # If neither matched, then we have a broken ls. This can happen
! 1649: # if, for instance, CONFIG_SHELL is bash and it inherits a
! 1650: # broken ls alias from the environment. This has actually
! 1651: # happened. Such a system could not be considered "sane".
! 1652: AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
! 1653: alias in your environment])
! 1654: fi
! 1655: if test "$[2]" = conftest.file || test $am_try -eq 2; then
! 1656: break
! 1657: fi
! 1658: # Just in case.
! 1659: sleep 1
! 1660: am_has_slept=yes
! 1661: done
! 1662: test "$[2]" = conftest.file
! 1663: )
! 1664: then
! 1665: # Ok.
! 1666: :
! 1667: else
! 1668: AC_MSG_ERROR([newly created file is older than distributed files!
! 1669: Check your system clock])
! 1670: fi
! 1671: AC_MSG_RESULT([yes])
! 1672: # If we didn't sleep, we still need to ensure time stamps of config.status and
! 1673: # generated files are strictly newer.
! 1674: am_sleep_pid=
! 1675: if grep 'slept: no' conftest.file >/dev/null 2>&1; then
! 1676: ( sleep 1 ) &
! 1677: am_sleep_pid=$!
! 1678: fi
! 1679: AC_CONFIG_COMMANDS_PRE(
! 1680: [AC_MSG_CHECKING([that generated files are newer than configure])
! 1681: if test -n "$am_sleep_pid"; then
! 1682: # Hide warnings about reused PIDs.
! 1683: wait $am_sleep_pid 2>/dev/null
! 1684: fi
! 1685: AC_MSG_RESULT([done])])
! 1686: rm -f conftest.file
! 1687: ])
! 1688:
! 1689: # Copyright (C) 2009-2017 Free Software Foundation, Inc.
! 1690: #
! 1691: # This file is free software; the Free Software Foundation
! 1692: # gives unlimited permission to copy and/or distribute it,
! 1693: # with or without modifications, as long as this notice is preserved.
! 1694:
! 1695: # AM_SILENT_RULES([DEFAULT])
! 1696: # --------------------------
! 1697: # Enable less verbose build rules; with the default set to DEFAULT
! 1698: # ("yes" being less verbose, "no" or empty being verbose).
! 1699: AC_DEFUN([AM_SILENT_RULES],
! 1700: [AC_ARG_ENABLE([silent-rules], [dnl
! 1701: AS_HELP_STRING(
! 1702: [--enable-silent-rules],
! 1703: [less verbose build output (undo: "make V=1")])
! 1704: AS_HELP_STRING(
! 1705: [--disable-silent-rules],
! 1706: [verbose build output (undo: "make V=0")])dnl
! 1707: ])
! 1708: case $enable_silent_rules in @%:@ (((
! 1709: yes) AM_DEFAULT_VERBOSITY=0;;
! 1710: no) AM_DEFAULT_VERBOSITY=1;;
! 1711: *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
! 1712: esac
! 1713: dnl
! 1714: dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
! 1715: dnl do not support nested variable expansions.
! 1716: dnl See automake bug#9928 and bug#10237.
! 1717: am_make=${MAKE-make}
! 1718: AC_CACHE_CHECK([whether $am_make supports nested variables],
! 1719: [am_cv_make_support_nested_variables],
! 1720: [if AS_ECHO([['TRUE=$(BAR$(V))
! 1721: BAR0=false
! 1722: BAR1=true
! 1723: V=1
! 1724: am__doit:
! 1725: @$(TRUE)
! 1726: .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
! 1727: am_cv_make_support_nested_variables=yes
! 1728: else
! 1729: am_cv_make_support_nested_variables=no
! 1730: fi])
! 1731: if test $am_cv_make_support_nested_variables = yes; then
! 1732: dnl Using '$V' instead of '$(V)' breaks IRIX make.
! 1733: AM_V='$(V)'
! 1734: AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
! 1735: else
! 1736: AM_V=$AM_DEFAULT_VERBOSITY
! 1737: AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
! 1738: fi
! 1739: AC_SUBST([AM_V])dnl
! 1740: AM_SUBST_NOTMAKE([AM_V])dnl
! 1741: AC_SUBST([AM_DEFAULT_V])dnl
! 1742: AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
! 1743: AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
! 1744: AM_BACKSLASH='\'
! 1745: AC_SUBST([AM_BACKSLASH])dnl
! 1746: _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
! 1747: ])
! 1748:
! 1749: # Copyright (C) 2001-2017 Free Software Foundation, Inc.
! 1750: #
! 1751: # This file is free software; the Free Software Foundation
! 1752: # gives unlimited permission to copy and/or distribute it,
! 1753: # with or without modifications, as long as this notice is preserved.
! 1754:
! 1755: # AM_PROG_INSTALL_STRIP
! 1756: # ---------------------
! 1757: # One issue with vendor 'install' (even GNU) is that you can't
! 1758: # specify the program used to strip binaries. This is especially
! 1759: # annoying in cross-compiling environments, where the build's strip
! 1760: # is unlikely to handle the host's binaries.
! 1761: # Fortunately install-sh will honor a STRIPPROG variable, so we
! 1762: # always use install-sh in "make install-strip", and initialize
! 1763: # STRIPPROG with the value of the STRIP variable (set by the user).
! 1764: AC_DEFUN([AM_PROG_INSTALL_STRIP],
! 1765: [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
! 1766: # Installed binaries are usually stripped using 'strip' when the user
! 1767: # run "make install-strip". However 'strip' might not be the right
! 1768: # tool to use in cross-compilation environments, therefore Automake
! 1769: # will honor the 'STRIP' environment variable to overrule this program.
! 1770: dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
! 1771: if test "$cross_compiling" != no; then
! 1772: AC_CHECK_TOOL([STRIP], [strip], :)
! 1773: fi
! 1774: INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
! 1775: AC_SUBST([INSTALL_STRIP_PROGRAM])])
! 1776:
! 1777: # Copyright (C) 2006-2017 Free Software Foundation, Inc.
! 1778: #
! 1779: # This file is free software; the Free Software Foundation
! 1780: # gives unlimited permission to copy and/or distribute it,
! 1781: # with or without modifications, as long as this notice is preserved.
! 1782:
! 1783: # _AM_SUBST_NOTMAKE(VARIABLE)
! 1784: # ---------------------------
! 1785: # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
! 1786: # This macro is traced by Automake.
! 1787: AC_DEFUN([_AM_SUBST_NOTMAKE])
! 1788:
! 1789: # AM_SUBST_NOTMAKE(VARIABLE)
! 1790: # --------------------------
! 1791: # Public sister of _AM_SUBST_NOTMAKE.
! 1792: AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
! 1793:
! 1794: # Check how to create a tarball. -*- Autoconf -*-
! 1795:
! 1796: # Copyright (C) 2004-2017 Free Software Foundation, Inc.
! 1797: #
! 1798: # This file is free software; the Free Software Foundation
! 1799: # gives unlimited permission to copy and/or distribute it,
! 1800: # with or without modifications, as long as this notice is preserved.
! 1801:
! 1802: # _AM_PROG_TAR(FORMAT)
! 1803: # --------------------
! 1804: # Check how to create a tarball in format FORMAT.
! 1805: # FORMAT should be one of 'v7', 'ustar', or 'pax'.
! 1806: #
! 1807: # Substitute a variable $(am__tar) that is a command
! 1808: # writing to stdout a FORMAT-tarball containing the directory
! 1809: # $tardir.
! 1810: # tardir=directory && $(am__tar) > result.tar
! 1811: #
! 1812: # Substitute a variable $(am__untar) that extract such
! 1813: # a tarball read from stdin.
! 1814: # $(am__untar) < result.tar
! 1815: #
! 1816: AC_DEFUN([_AM_PROG_TAR],
! 1817: [# Always define AMTAR for backward compatibility. Yes, it's still used
! 1818: # in the wild :-( We should find a proper way to deprecate it ...
! 1819: AC_SUBST([AMTAR], ['$${TAR-tar}'])
! 1820:
! 1821: # We'll loop over all known methods to create a tar archive until one works.
! 1822: _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
! 1823:
! 1824: m4_if([$1], [v7],
! 1825: [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
! 1826:
! 1827: [m4_case([$1],
! 1828: [ustar],
! 1829: [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
! 1830: # There is notably a 21 bits limit for the UID and the GID. In fact,
! 1831: # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
! 1832: # and bug#13588).
! 1833: am_max_uid=2097151 # 2^21 - 1
! 1834: am_max_gid=$am_max_uid
! 1835: # The $UID and $GID variables are not portable, so we need to resort
! 1836: # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
! 1837: # below are definitely unexpected, so allow the users to see them
! 1838: # (that is, avoid stderr redirection).
! 1839: am_uid=`id -u || echo unknown`
! 1840: am_gid=`id -g || echo unknown`
! 1841: AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
! 1842: if test $am_uid -le $am_max_uid; then
! 1843: AC_MSG_RESULT([yes])
! 1844: else
! 1845: AC_MSG_RESULT([no])
! 1846: _am_tools=none
! 1847: fi
! 1848: AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
! 1849: if test $am_gid -le $am_max_gid; then
! 1850: AC_MSG_RESULT([yes])
! 1851: else
! 1852: AC_MSG_RESULT([no])
! 1853: _am_tools=none
! 1854: fi],
! 1855:
! 1856: [pax],
! 1857: [],
! 1858:
! 1859: [m4_fatal([Unknown tar format])])
! 1860:
! 1861: AC_MSG_CHECKING([how to create a $1 tar archive])
! 1862:
! 1863: # Go ahead even if we have the value already cached. We do so because we
! 1864: # need to set the values for the 'am__tar' and 'am__untar' variables.
! 1865: _am_tools=${am_cv_prog_tar_$1-$_am_tools}
! 1866:
! 1867: for _am_tool in $_am_tools; do
! 1868: case $_am_tool in
! 1869: gnutar)
! 1870: for _am_tar in tar gnutar gtar; do
! 1871: AM_RUN_LOG([$_am_tar --version]) && break
! 1872: done
! 1873: am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
! 1874: am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
! 1875: am__untar="$_am_tar -xf -"
! 1876: ;;
! 1877: plaintar)
! 1878: # Must skip GNU tar: if it does not support --format= it doesn't create
! 1879: # ustar tarball either.
! 1880: (tar --version) >/dev/null 2>&1 && continue
! 1881: am__tar='tar chf - "$$tardir"'
! 1882: am__tar_='tar chf - "$tardir"'
! 1883: am__untar='tar xf -'
! 1884: ;;
! 1885: pax)
! 1886: am__tar='pax -L -x $1 -w "$$tardir"'
! 1887: am__tar_='pax -L -x $1 -w "$tardir"'
! 1888: am__untar='pax -r'
! 1889: ;;
! 1890: cpio)
! 1891: am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
! 1892: am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
! 1893: am__untar='cpio -i -H $1 -d'
! 1894: ;;
! 1895: none)
! 1896: am__tar=false
! 1897: am__tar_=false
! 1898: am__untar=false
! 1899: ;;
! 1900: esac
! 1901:
! 1902: # If the value was cached, stop now. We just wanted to have am__tar
! 1903: # and am__untar set.
! 1904: test -n "${am_cv_prog_tar_$1}" && break
! 1905:
! 1906: # tar/untar a dummy directory, and stop if the command works.
! 1907: rm -rf conftest.dir
! 1908: mkdir conftest.dir
! 1909: echo GrepMe > conftest.dir/file
! 1910: AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
! 1911: rm -rf conftest.dir
! 1912: if test -s conftest.tar; then
! 1913: AM_RUN_LOG([$am__untar <conftest.tar])
! 1914: AM_RUN_LOG([cat conftest.dir/file])
! 1915: grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
! 1916: fi
! 1917: done
! 1918: rm -rf conftest.dir
! 1919:
! 1920: AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
! 1921: AC_MSG_RESULT([$am_cv_prog_tar_$1])])
! 1922:
! 1923: AC_SUBST([am__tar])
! 1924: AC_SUBST([am__untar])
! 1925: ]) # _AM_PROG_TAR
! 1926:
! 1927: m4_include([m4/config/libtool.m4])
! 1928: m4_include([m4/config/ltoptions.m4])
! 1929: m4_include([m4/config/ltsugar.m4])
! 1930: m4_include([m4/config/ltversion.m4])
! 1931: m4_include([m4/config/lt~obsolete.m4])
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>