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