You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

1590 lines
57 KiB

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