aclocal.m4 51 KB

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