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.
 
 
 
 
 
 

1727 lines
62 KiB

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