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