Adding upstream version 0.5.2.
[debian/lxappearance.git] / aclocal.m4
CommitLineData
70478930 1# generated automatically by aclocal 1.11.3 -*- Autoconf -*-
08024023
DB
2
3# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
70478930
DB
4# 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation,
5# Inc.
08024023
DB
6# This file is free software; the Free Software Foundation
7# gives unlimited permission to copy and/or distribute it,
8# with or without modifications, as long as this notice is preserved.
9
10# This program is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13# PARTICULAR PURPOSE.
14
bd2899cf
DB
15m4_ifndef([AC_AUTOCONF_VERSION],
16 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
6ec93802
DB
17m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.68],,
18[m4_warning([this file was generated for autoconf 2.68.
bd2899cf
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.
21To do so, use the procedure documented by the package, typically `autoreconf'.])])
08024023
DB
22
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
bd2899cf 126 [USE_NLS=yes
08024023
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 ;;
70478930
DB
264 *-*-openbsd*)
265 CATOBJEXT=.mo
266 DATADIRNAME=share
267 ;;
08024023
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
291 : ;
292 else
293 AC_MSG_RESULT(
294 [found xgettext program is not GNU xgettext; ignore it])
295 XGETTEXT=":"
296 fi
297 fi
298
299 # We need to process the po/ directory.
300 POSUB=po
301
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])
306
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
6ec93802 309 dnl in configure.ac.
08024023
DB
310 for lang in $ALL_LINGUAS; do
311 GMOFILES="$GMOFILES $lang.gmo"
312 POFILES="$POFILES $lang.po"
313 done
314
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 ])
327
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
338glib_DEFUN([GLIB_GNU_GETTEXT],
339 [AC_REQUIRE([AC_PROG_CC])dnl
340 AC_REQUIRE([AC_HEADER_STDC])dnl
341
342 GLIB_LC_MESSAGES
343 GLIB_WITH_NLS
344
345 if test "$gt_cv_have_gettext" = "yes"; then
346 if test "x$ALL_LINGUAS" = "x"; then
347 LINGUAS=
348 else
349 AC_MSG_CHECKING(for catalogs to be installed)
350 NEW_LINGUAS=
351 for presentlang in $ALL_LINGUAS; do
352 useit=no
353 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
354 desiredlanguages="$LINGUAS"
355 else
356 desiredlanguages="$ALL_LINGUAS"
357 fi
358 for desiredlang in $desiredlanguages; do
359 # Use the presentlang catalog if desiredlang is
360 # a. equal to presentlang, or
361 # b. a variant of presentlang (because in this case,
362 # presentlang can be used as a fallback for messages
363 # which are not translated in the desiredlang catalog).
364 case "$desiredlang" in
365 "$presentlang"*) useit=yes;;
366 esac
367 done
368 if test $useit = yes; then
369 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
370 fi
371 done
372 LINGUAS=$NEW_LINGUAS
373 AC_MSG_RESULT($LINGUAS)
374 fi
375
376 dnl Construct list of names of catalog files to be constructed.
377 if test -n "$LINGUAS"; then
378 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
379 fi
380 fi
381
382 dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly
383 dnl find the mkinstalldirs script in another subdir but ($top_srcdir).
384 dnl Try to locate is.
385 MKINSTALLDIRS=
386 if test -n "$ac_aux_dir"; then
387 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
388 fi
389 if test -z "$MKINSTALLDIRS"; then
390 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
391 fi
392 AC_SUBST(MKINSTALLDIRS)
393
394 dnl Generate list of files to be processed by xgettext which will
395 dnl be included in po/Makefile.
396 test -d po || mkdir po
397 if test "x$srcdir" != "x."; then
398 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
399 posrcprefix="$srcdir/"
400 else
401 posrcprefix="../$srcdir/"
402 fi
403 else
404 posrcprefix="../"
405 fi
406 rm -f po/POTFILES
407 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
408 < $srcdir/po/POTFILES.in > po/POTFILES
409 ])
410
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])
433])
434
435dnl
436dnl Now the definitions that aclocal will find
437dnl
6ec93802 438ifdef(glib_configure_ac,[],[
08024023
DB
439AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)])
440AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)])
441])dnl
442
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])
458
459
13f1ec51
DB
460
461dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
70478930 462# serial 42 IT_PROG_INTLTOOL
13f1ec51
DB
463AC_DEFUN([IT_PROG_INTLTOOL], [
464AC_PREREQ([2.50])dnl
465AC_REQUIRE([AM_NLS])dnl
466
467case "$am__api_version" in
468 1.[01234])
469 AC_MSG_ERROR([Automake 1.5 or newer is required to use intltool])
470 ;;
471 *)
472 ;;
473esac
474
70478930
DB
475INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
476INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
477INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
13f1ec51
DB
478if test -n "$1"; then
479 AC_MSG_CHECKING([for intltool >= $1])
13f1ec51
DB
480 AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found])
481 test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
482 AC_MSG_ERROR([Your intltool is too old. You need intltool $1 or later.])
483fi
484
485AC_PATH_PROG(INTLTOOL_UPDATE, [intltool-update])
486AC_PATH_PROG(INTLTOOL_MERGE, [intltool-merge])
487AC_PATH_PROG(INTLTOOL_EXTRACT, [intltool-extract])
488if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
489 AC_MSG_ERROR([The intltool scripts were not found. Please install intltool.])
490fi
491
70478930
DB
492if test -z "$AM_DEFAULT_VERBOSITY"; then
493 AM_DEFAULT_VERBOSITY=1
494fi
495AC_SUBST([AM_DEFAULT_VERBOSITY])
496
497INTLTOOL_V_MERGE='$(INTLTOOL__v_MERGE_$(V))'
498INTLTOOL__v_MERGE_='$(INTLTOOL__v_MERGE_$(AM_DEFAULT_VERBOSITY))'
499INTLTOOL__v_MERGE_0='@echo " ITMRG " [$]@;'
500AC_SUBST(INTLTOOL_V_MERGE)
501AC_SUBST(INTLTOOL__v_MERGE_)
502AC_SUBST(INTLTOOL__v_MERGE_0)
503
504INTLTOOL_V_MERGE_OPTIONS='$(intltool__v_merge_options_$(V))'
505intltool__v_merge_options_='$(intltool__v_merge_options_$(AM_DEFAULT_VERBOSITY))'
506intltool__v_merge_options_0='-q'
507AC_SUBST(INTLTOOL_V_MERGE_OPTIONS)
508AC_SUBST(intltool__v_merge_options_)
509AC_SUBST(intltool__v_merge_options_0)
510
511 INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
512INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
513 INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
514 INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
515 INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -p $(top_srcdir)/po $< [$]@'
516 INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
517 INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
518 INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
519INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
520 INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
521 INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
522if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge 5000; then
523 INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u --no-translations $< [$]@'
524else
525 INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)_it_tmp_dir=tmp.intltool.[$][$]RANDOM && mkdir [$][$]_it_tmp_dir && LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u [$][$]_it_tmp_dir $< [$]@ && rmdir [$][$]_it_tmp_dir'
526fi
527 INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
528 INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
529 INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
530 INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
531 INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
532 INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
533 INTLTOOL_POLICY_RULE='%.policy: %.policy.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
13f1ec51
DB
534
535_IT_SUBST(INTLTOOL_DESKTOP_RULE)
536_IT_SUBST(INTLTOOL_DIRECTORY_RULE)
537_IT_SUBST(INTLTOOL_KEYS_RULE)
538_IT_SUBST(INTLTOOL_PROP_RULE)
539_IT_SUBST(INTLTOOL_OAF_RULE)
540_IT_SUBST(INTLTOOL_PONG_RULE)
541_IT_SUBST(INTLTOOL_SERVER_RULE)
542_IT_SUBST(INTLTOOL_SHEET_RULE)
543_IT_SUBST(INTLTOOL_SOUNDLIST_RULE)
544_IT_SUBST(INTLTOOL_UI_RULE)
545_IT_SUBST(INTLTOOL_XAM_RULE)
546_IT_SUBST(INTLTOOL_KBD_RULE)
547_IT_SUBST(INTLTOOL_XML_RULE)
548_IT_SUBST(INTLTOOL_XML_NOMERGE_RULE)
549_IT_SUBST(INTLTOOL_CAVES_RULE)
550_IT_SUBST(INTLTOOL_SCHEMAS_RULE)
551_IT_SUBST(INTLTOOL_THEME_RULE)
552_IT_SUBST(INTLTOOL_SERVICE_RULE)
553_IT_SUBST(INTLTOOL_POLICY_RULE)
554
555# Check the gettext tools to make sure they are GNU
556AC_PATH_PROG(XGETTEXT, xgettext)
557AC_PATH_PROG(MSGMERGE, msgmerge)
558AC_PATH_PROG(MSGFMT, msgfmt)
559AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
560if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
561 AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
562fi
563xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
564mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
565mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
566if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
567 AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
568fi
569
570AC_PATH_PROG(INTLTOOL_PERL, perl)
571if test -z "$INTLTOOL_PERL"; then
572 AC_MSG_ERROR([perl not found])
573fi
574AC_MSG_CHECKING([for perl >= 5.8.1])
575$INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
576if test $? -ne 0; then
577 AC_MSG_ERROR([perl 5.8.1 is required for intltool])
578else
70478930 579 IT_PERL_VERSION=`$INTLTOOL_PERL -e "printf '%vd', $^V"`
13f1ec51
DB
580 AC_MSG_RESULT([$IT_PERL_VERSION])
581fi
582if test "x$2" != "xno-xml"; then
583 AC_MSG_CHECKING([for XML::Parser])
584 if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
585 AC_MSG_RESULT([ok])
586 else
587 AC_MSG_ERROR([XML::Parser perl module is required for intltool])
588 fi
589fi
590
591# Substitute ALL_LINGUAS so we can use it in po/Makefile
592AC_SUBST(ALL_LINGUAS)
593
594# Set DATADIRNAME correctly if it is not set yet
595# (copied from glib-gettext.m4)
596if test -z "$DATADIRNAME"; then
597 AC_LINK_IFELSE(
598 [AC_LANG_PROGRAM([[]],
599 [[extern int _nl_msg_cat_cntr;
600 return _nl_msg_cat_cntr]])],
601 [DATADIRNAME=share],
602 [case $host in
603 *-*-solaris*)
604 dnl On Solaris, if bind_textdomain_codeset is in libc,
605 dnl GNU format message catalog is always supported,
606 dnl since both are added to the libc all together.
607 dnl Hence, we'd like to go with DATADIRNAME=share
608 dnl in this case.
609 AC_CHECK_FUNC(bind_textdomain_codeset,
610 [DATADIRNAME=share], [DATADIRNAME=lib])
611 ;;
612 *)
613 [DATADIRNAME=lib]
614 ;;
615 esac])
616fi
617AC_SUBST(DATADIRNAME)
618
619IT_PO_SUBDIR([po])
620
621])
622
623
624# IT_PO_SUBDIR(DIRNAME)
625# ---------------------
626# All po subdirs have to be declared with this macro; the subdir "po" is
627# declared by IT_PROG_INTLTOOL.
628#
629AC_DEFUN([IT_PO_SUBDIR],
630[AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS.
631dnl
6ec93802 632dnl The following CONFIG_COMMANDS should be executed at the very end
13f1ec51
DB
633dnl of config.status.
634AC_CONFIG_COMMANDS_PRE([
635 AC_CONFIG_COMMANDS([$1/stamp-it], [
636 if [ ! grep "^# INTLTOOL_MAKEFILE$" "$1/Makefile.in" > /dev/null ]; then
637 AC_MSG_ERROR([$1/Makefile.in.in was not created by intltoolize.])
638 fi
639 rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp"
640 >"$1/stamp-it.tmp"
641 [sed '/^#/d
642 s/^[[].*] *//
643 /^[ ]*$/d
644 '"s|^| $ac_top_srcdir/|" \
645 "$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES"
646 ]
647 [sed '/^POTFILES =/,/[^\\]$/ {
648 /^POTFILES =/!d
649 r $1/POTFILES
650 }
651 ' "$1/Makefile.in" >"$1/Makefile"]
652 rm -f "$1/Makefile.tmp"
653 mv "$1/stamp-it.tmp" "$1/stamp-it"
654 ])
655])dnl
656])
657
658# _IT_SUBST(VARIABLE)
659# -------------------
660# Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST
661#
662AC_DEFUN([_IT_SUBST],
663[
664AC_SUBST([$1])
665m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])])
666]
667)
668
669# deprecated macros
670AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL])
671# A hint is needed for aclocal from Automake <= 1.9.4:
672# AC_DEFUN([AC_PROG_INTLTOOL], ...)
673
674
6ec93802
DB
675# nls.m4 serial 5 (gettext-0.18)
676dnl Copyright (C) 1995-2003, 2005-2006, 2008-2010 Free Software Foundation,
677dnl Inc.
13f1ec51
DB
678dnl This file is free software; the Free Software Foundation
679dnl gives unlimited permission to copy and/or distribute it,
680dnl with or without modifications, as long as this notice is preserved.
681dnl
682dnl This file can can be used in projects which are not available under
683dnl the GNU General Public License or the GNU Library General Public
684dnl License but which still want to provide support for the GNU gettext
685dnl functionality.
686dnl Please note that the actual code of the GNU gettext library is covered
687dnl by the GNU Library General Public License, and the rest of the GNU
688dnl gettext package package is covered by the GNU General Public License.
689dnl They are *not* in the public domain.
690
691dnl Authors:
692dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
693dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003.
694
6ec93802 695AC_PREREQ([2.50])
13f1ec51
DB
696
697AC_DEFUN([AM_NLS],
698[
699 AC_MSG_CHECKING([whether NLS is requested])
700 dnl Default is enabled NLS
6ec93802 701 AC_ARG_ENABLE([nls],
13f1ec51
DB
702 [ --disable-nls do not use Native Language Support],
703 USE_NLS=$enableval, USE_NLS=yes)
6ec93802
DB
704 AC_MSG_RESULT([$USE_NLS])
705 AC_SUBST([USE_NLS])
13f1ec51
DB
706])
707
08024023 708# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
6ec93802 709# serial 1 (pkg-config-0.24)
08024023
DB
710#
711# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
712#
713# This program is free software; you can redistribute it and/or modify
714# it under the terms of the GNU General Public License as published by
715# the Free Software Foundation; either version 2 of the License, or
716# (at your option) any later version.
717#
718# This program is distributed in the hope that it will be useful, but
719# WITHOUT ANY WARRANTY; without even the implied warranty of
720# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
721# General Public License for more details.
722#
723# You should have received a copy of the GNU General Public License
724# along with this program; if not, write to the Free Software
725# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
726#
727# As a special exception to the GNU General Public License, if you
728# distribute this file as part of a program that contains a
729# configuration script generated by Autoconf, you may include it under
730# the same distribution terms that you use for the rest of that program.
731
732# PKG_PROG_PKG_CONFIG([MIN-VERSION])
733# ----------------------------------
734AC_DEFUN([PKG_PROG_PKG_CONFIG],
735[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
70478930
DB
736m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$])
737m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$])
6ec93802
DB
738AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
739AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
740AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
741
08024023
DB
742if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
743 AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
744fi
745if test -n "$PKG_CONFIG"; then
746 _pkg_min_version=m4_default([$1], [0.9.0])
747 AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
748 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
749 AC_MSG_RESULT([yes])
750 else
751 AC_MSG_RESULT([no])
752 PKG_CONFIG=""
753 fi
08024023
DB
754fi[]dnl
755])# PKG_PROG_PKG_CONFIG
756
757# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
758#
759# Check to see whether a particular set of modules exists. Similar
760# to PKG_CHECK_MODULES(), but does not set variables or print errors.
761#
6ec93802
DB
762# Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
763# only at the first occurence in configure.ac, so if the first place
764# it's called might be skipped (such as if it is within an "if", you
765# have to call PKG_CHECK_EXISTS manually
08024023
DB
766# --------------------------------------------------------------
767AC_DEFUN([PKG_CHECK_EXISTS],
768[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
769if test -n "$PKG_CONFIG" && \
770 AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
6ec93802 771 m4_default([$2], [:])
08024023
DB
772m4_ifvaln([$3], [else
773 $3])dnl
774fi])
775
08024023
DB
776# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
777# ---------------------------------------------
778m4_define([_PKG_CONFIG],
6ec93802
DB
779[if test -n "$$1"; then
780 pkg_cv_[]$1="$$1"
781 elif test -n "$PKG_CONFIG"; then
782 PKG_CHECK_EXISTS([$3],
70478930
DB
783 [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`
784 test "x$?" != "x0" && pkg_failed=yes ],
6ec93802
DB
785 [pkg_failed=yes])
786 else
787 pkg_failed=untried
08024023
DB
788fi[]dnl
789])# _PKG_CONFIG
790
791# _PKG_SHORT_ERRORS_SUPPORTED
792# -----------------------------
793AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
794[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
795if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
796 _pkg_short_errors_supported=yes
797else
798 _pkg_short_errors_supported=no
799fi[]dnl
800])# _PKG_SHORT_ERRORS_SUPPORTED
801
802
803# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
804# [ACTION-IF-NOT-FOUND])
805#
806#
807# Note that if there is a possibility the first call to
808# PKG_CHECK_MODULES might not happen, you should be sure to include an
809# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
810#
811#
812# --------------------------------------------------------------
813AC_DEFUN([PKG_CHECK_MODULES],
814[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
815AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
816AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
817
818pkg_failed=no
819AC_MSG_CHECKING([for $1])
820
821_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
822_PKG_CONFIG([$1][_LIBS], [libs], [$2])
823
824m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
825and $1[]_LIBS to avoid the need to call pkg-config.
826See the pkg-config man page for more details.])
827
828if test $pkg_failed = yes; then
6ec93802 829 AC_MSG_RESULT([no])
08024023
DB
830 _PKG_SHORT_ERRORS_SUPPORTED
831 if test $_pkg_short_errors_supported = yes; then
70478930 832 $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1`
08024023 833 else
70478930 834 $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
08024023
DB
835 fi
836 # Put the nasty error message in config.log where it belongs
837 echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
838
6ec93802 839 m4_default([$4], [AC_MSG_ERROR(
08024023
DB
840[Package requirements ($2) were not met:
841
842$$1_PKG_ERRORS
843
844Consider adjusting the PKG_CONFIG_PATH environment variable if you
845installed software in a non-standard prefix.
846
6ec93802
DB
847_PKG_TEXT])[]dnl
848 ])
08024023 849elif test $pkg_failed = untried; then
6ec93802
DB
850 AC_MSG_RESULT([no])
851 m4_default([$4], [AC_MSG_FAILURE(
08024023
DB
852[The pkg-config script could not be found or is too old. Make sure it
853is in your PATH or set the PKG_CONFIG environment variable to the full
854path to pkg-config.
855
856_PKG_TEXT
857
6ec93802
DB
858To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl
859 ])
08024023
DB
860else
861 $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
862 $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
863 AC_MSG_RESULT([yes])
6ec93802 864 $3
08024023
DB
865fi[]dnl
866])# PKG_CHECK_MODULES
867
70478930
DB
868# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008, 2011 Free Software
869# Foundation, Inc.
08024023
DB
870#
871# This file is free software; the Free Software Foundation
872# gives unlimited permission to copy and/or distribute it,
873# with or without modifications, as long as this notice is preserved.
874
70478930
DB
875# serial 1
876
08024023
DB
877# AM_AUTOMAKE_VERSION(VERSION)
878# ----------------------------
879# Automake X.Y traces this macro to ensure aclocal.m4 has been
880# generated from the m4 files accompanying Automake X.Y.
881# (This private macro should not be called outside this file.)
882AC_DEFUN([AM_AUTOMAKE_VERSION],
bd2899cf 883[am__api_version='1.11'
08024023
DB
884dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
885dnl require some minimum version. Point them to the right macro.
70478930 886m4_if([$1], [1.11.3], [],
08024023
DB
887 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
888])
889
890# _AM_AUTOCONF_VERSION(VERSION)
891# -----------------------------
892# aclocal traces this macro to find the Autoconf version.
893# This is a private macro too. Using m4_define simplifies
894# the logic in aclocal, which can simply ignore this definition.
895m4_define([_AM_AUTOCONF_VERSION], [])
896
897# AM_SET_CURRENT_AUTOMAKE_VERSION
898# -------------------------------
899# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
bd2899cf 900# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
08024023 901AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
70478930 902[AM_AUTOMAKE_VERSION([1.11.3])dnl
bd2899cf
DB
903m4_ifndef([AC_AUTOCONF_VERSION],
904 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
905_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
08024023
DB
906
907# AM_AUX_DIR_EXPAND -*- Autoconf -*-
908
70478930 909# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
08024023
DB
910#
911# This file is free software; the Free Software Foundation
912# gives unlimited permission to copy and/or distribute it,
913# with or without modifications, as long as this notice is preserved.
914
70478930
DB
915# serial 1
916
08024023
DB
917# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
918# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
919# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
920#
921# Of course, Automake must honor this variable whenever it calls a
922# tool from the auxiliary directory. The problem is that $srcdir (and
923# therefore $ac_aux_dir as well) can be either absolute or relative,
924# depending on how configure is run. This is pretty annoying, since
925# it makes $ac_aux_dir quite unusable in subdirectories: in the top
926# source directory, any form will work fine, but in subdirectories a
927# relative path needs to be adjusted first.
928#
929# $ac_aux_dir/missing
930# fails when called from a subdirectory if $ac_aux_dir is relative
931# $top_srcdir/$ac_aux_dir/missing
932# fails if $ac_aux_dir is absolute,
933# fails when called from a subdirectory in a VPATH build with
934# a relative $ac_aux_dir
935#
936# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
937# are both prefixed by $srcdir. In an in-source build this is usually
938# harmless because $srcdir is `.', but things will broke when you
939# start a VPATH build or use an absolute $srcdir.
940#
941# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
942# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
943# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
944# and then we would define $MISSING as
945# MISSING="\${SHELL} $am_aux_dir/missing"
946# This will work as long as MISSING is not called from configure, because
947# unfortunately $(top_srcdir) has no meaning in configure.
948# However there are other variables, like CC, which are often used in
949# configure, and could therefore not use this "fixed" $ac_aux_dir.
950#
951# Another solution, used here, is to always expand $ac_aux_dir to an
952# absolute PATH. The drawback is that using absolute paths prevent a
953# configured tree to be moved without reconfiguration.
954
955AC_DEFUN([AM_AUX_DIR_EXPAND],
956[dnl Rely on autoconf to set up CDPATH properly.
957AC_PREREQ([2.50])dnl
958# expand $ac_aux_dir to an absolute path
959am_aux_dir=`cd $ac_aux_dir && pwd`
960])
961
08024023
DB
962# AM_CONDITIONAL -*- Autoconf -*-
963
bd2899cf 964# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
08024023
DB
965# Free Software Foundation, Inc.
966#
967# This file is free software; the Free Software Foundation
968# gives unlimited permission to copy and/or distribute it,
969# with or without modifications, as long as this notice is preserved.
970
bd2899cf 971# serial 9
08024023
DB
972
973# AM_CONDITIONAL(NAME, SHELL-CONDITION)
974# -------------------------------------
975# Define a conditional.
976AC_DEFUN([AM_CONDITIONAL],
977[AC_PREREQ(2.52)dnl
978 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
979 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
980AC_SUBST([$1_TRUE])dnl
981AC_SUBST([$1_FALSE])dnl
982_AM_SUBST_NOTMAKE([$1_TRUE])dnl
983_AM_SUBST_NOTMAKE([$1_FALSE])dnl
bd2899cf 984m4_define([_AM_COND_VALUE_$1], [$2])dnl
08024023
DB
985if $2; then
986 $1_TRUE=
987 $1_FALSE='#'
988else
989 $1_TRUE='#'
990 $1_FALSE=
991fi
992AC_CONFIG_COMMANDS_PRE(
993[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
994 AC_MSG_ERROR([[conditional "$1" was never defined.
995Usually this means the macro was only invoked conditionally.]])
996fi])])
997
70478930
DB
998# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009,
999# 2010, 2011 Free Software Foundation, Inc.
08024023
DB
1000#
1001# This file is free software; the Free Software Foundation
1002# gives unlimited permission to copy and/or distribute it,
1003# with or without modifications, as long as this notice is preserved.
1004
70478930 1005# serial 12
08024023
DB
1006
1007# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
1008# written in clear, in which case automake, when reading aclocal.m4,
1009# will think it sees a *use*, and therefore will trigger all it's
1010# C support machinery. Also note that it means that autoscan, seeing
1011# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
1012
1013
1014# _AM_DEPENDENCIES(NAME)
1015# ----------------------
1016# See how the compiler implements dependency checking.
1017# NAME is "CC", "CXX", "GCJ", or "OBJC".
1018# We try a few techniques and use that to set a single cache variable.
1019#
1020# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
1021# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
1022# dependency, and given that the user is not expected to run this macro,
1023# just rely on AC_PROG_CC.
1024AC_DEFUN([_AM_DEPENDENCIES],
1025[AC_REQUIRE([AM_SET_DEPDIR])dnl
1026AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
1027AC_REQUIRE([AM_MAKE_INCLUDE])dnl
1028AC_REQUIRE([AM_DEP_TRACK])dnl
1029
1030ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
1031 [$1], CXX, [depcc="$CXX" am_compiler_list=],
1032 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
1033 [$1], UPC, [depcc="$UPC" am_compiler_list=],
1034 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
1035 [depcc="$$1" am_compiler_list=])
1036
1037AC_CACHE_CHECK([dependency style of $depcc],
1038 [am_cv_$1_dependencies_compiler_type],
1039[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
1040 # We make a subdir and do the tests there. Otherwise we can end up
1041 # making bogus files that we don't know about and never remove. For
1042 # instance it was reported that on HP-UX the gcc test will end up
1043 # making a dummy file named `D' -- because `-MD' means `put the output
1044 # in D'.
70478930 1045 rm -rf conftest.dir
08024023
DB
1046 mkdir conftest.dir
1047 # Copy depcomp to subdir because otherwise we won't find it if we're
1048 # using a relative directory.
1049 cp "$am_depcomp" conftest.dir
1050 cd conftest.dir
1051 # We will build objects and dependencies in a subdirectory because
1052 # it helps to detect inapplicable dependency modes. For instance
1053 # both Tru64's cc and ICC support -MD to output dependencies as a
1054 # side effect of compilation, but ICC will put the dependencies in
1055 # the current directory while Tru64 will put them in the object
1056 # directory.
1057 mkdir sub
1058
1059 am_cv_$1_dependencies_compiler_type=none
1060 if test "$am_compiler_list" = ""; then
1061 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
1062 fi
bd2899cf
DB
1063 am__universal=false
1064 m4_case([$1], [CC],
1065 [case " $depcc " in #(
1066 *\ -arch\ *\ -arch\ *) am__universal=true ;;
1067 esac],
1068 [CXX],
1069 [case " $depcc " in #(
1070 *\ -arch\ *\ -arch\ *) am__universal=true ;;
1071 esac])
1072
08024023
DB
1073 for depmode in $am_compiler_list; do
1074 # Setup a source with many dependencies, because some compilers
1075 # like to wrap large dependency lists on column 80 (with \), and
1076 # we should not choose a depcomp mode which is confused by this.
1077 #
1078 # We need to recreate these files for each test, as the compiler may
1079 # overwrite some of them when testing with obscure command lines.
1080 # This happens at least with the AIX C compiler.
1081 : > sub/conftest.c
1082 for i in 1 2 3 4 5 6; do
1083 echo '#include "conftst'$i'.h"' >> sub/conftest.c
1084 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
1085 # Solaris 8's {/usr,}/bin/sh.
1086 touch sub/conftst$i.h
1087 done
1088 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1089
bd2899cf
DB
1090 # We check with `-c' and `-o' for the sake of the "dashmstdout"
1091 # mode. It turns out that the SunPro C++ compiler does not properly
1092 # handle `-M -o', and we need to detect this. Also, some Intel
1093 # versions had trouble with output in subdirs
1094 am__obj=sub/conftest.${OBJEXT-o}
1095 am__minus_obj="-o $am__obj"
08024023 1096 case $depmode in
bd2899cf
DB
1097 gcc)
1098 # This depmode causes a compiler race in universal mode.
1099 test "$am__universal" = false || continue
1100 ;;
08024023
DB
1101 nosideeffect)
1102 # after this tag, mechanisms are not by side-effect, so they'll
1103 # only be used when explicitly requested
1104 if test "x$enable_dependency_tracking" = xyes; then
1105 continue
1106 else
1107 break
1108 fi
1109 ;;
70478930 1110 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
bd2899cf
DB
1111 # This compiler won't grok `-c -o', but also, the minuso test has
1112 # not run yet. These depmodes are late enough in the game, and
1113 # so weak that their functioning should not be impacted.
1114 am__obj=conftest.${OBJEXT-o}
1115 am__minus_obj=
1116 ;;
08024023
DB
1117 none) break ;;
1118 esac
08024023 1119 if depmode=$depmode \
bd2899cf 1120 source=sub/conftest.c object=$am__obj \
08024023 1121 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
bd2899cf 1122 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
08024023
DB
1123 >/dev/null 2>conftest.err &&
1124 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
1125 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
bd2899cf 1126 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
08024023
DB
1127 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1128 # icc doesn't choke on unknown options, it will just issue warnings
1129 # or remarks (even with -Werror). So we grep stderr for any message
1130 # that says an option was ignored or not supported.
1131 # When given -MP, icc 7.0 and 7.1 complain thusly:
1132 # icc: Command line warning: ignoring option '-M'; no argument required
1133 # The diagnosis changed in icc 8.0:
1134 # icc: Command line remark: option '-MP' not supported
1135 if (grep 'ignoring option' conftest.err ||
1136 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
1137 am_cv_$1_dependencies_compiler_type=$depmode
1138 break
1139 fi
1140 fi
1141 done
1142
1143 cd ..
1144 rm -rf conftest.dir
1145else
1146 am_cv_$1_dependencies_compiler_type=none
1147fi
1148])
1149AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
1150AM_CONDITIONAL([am__fastdep$1], [
1151 test "x$enable_dependency_tracking" != xno \
1152 && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
1153])
1154
1155
1156# AM_SET_DEPDIR
1157# -------------
1158# Choose a directory name for dependency files.
1159# This macro is AC_REQUIREd in _AM_DEPENDENCIES
1160AC_DEFUN([AM_SET_DEPDIR],
1161[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
1162AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
1163])
1164
1165
1166# AM_DEP_TRACK
1167# ------------
1168AC_DEFUN([AM_DEP_TRACK],
1169[AC_ARG_ENABLE(dependency-tracking,
1170[ --disable-dependency-tracking speeds up one-time build
1171 --enable-dependency-tracking do not reject slow dependency extractors])
1172if test "x$enable_dependency_tracking" != xno; then
1173 am_depcomp="$ac_aux_dir/depcomp"
1174 AMDEPBACKSLASH='\'
70478930 1175 am__nodep='_no'
08024023
DB
1176fi
1177AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
1178AC_SUBST([AMDEPBACKSLASH])dnl
1179_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
70478930
DB
1180AC_SUBST([am__nodep])dnl
1181_AM_SUBST_NOTMAKE([am__nodep])dnl
08024023
DB
1182])
1183
1184# Generate code to set up dependency tracking. -*- Autoconf -*-
1185
bd2899cf 1186# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
08024023
DB
1187# Free Software Foundation, Inc.
1188#
1189# This file is free software; the Free Software Foundation
1190# gives unlimited permission to copy and/or distribute it,
1191# with or without modifications, as long as this notice is preserved.
1192
bd2899cf 1193#serial 5
08024023
DB
1194
1195# _AM_OUTPUT_DEPENDENCY_COMMANDS
1196# ------------------------------
1197AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
bd2899cf
DB
1198[{
1199 # Autoconf 2.62 quotes --file arguments for eval, but not when files
1200 # are listed without --file. Let's play safe and only enable the eval
1201 # if we detect the quoting.
1202 case $CONFIG_FILES in
1203 *\'*) eval set x "$CONFIG_FILES" ;;
1204 *) set x $CONFIG_FILES ;;
1205 esac
1206 shift
1207 for mf
1208 do
1209 # Strip MF so we end up with the name of the file.
1210 mf=`echo "$mf" | sed -e 's/:.*$//'`
1211 # Check whether this is an Automake generated Makefile or not.
1212 # We used to match only the files named `Makefile.in', but
1213 # some people rename them; so instead we look at the file content.
1214 # Grep'ing the first line is not enough: some people post-process
1215 # each Makefile.in and add a new line on top of each file to say so.
1216 # Grep'ing the whole file is not good either: AIX grep has a line
1217 # limit of 2048, but all sed's we know have understand at least 4000.
1218 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
1219 dirpart=`AS_DIRNAME("$mf")`
1220 else
1221 continue
1222 fi
1223 # Extract the definition of DEPDIR, am__include, and am__quote
1224 # from the Makefile without running `make'.
1225 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
1226 test -z "$DEPDIR" && continue
1227 am__include=`sed -n 's/^am__include = //p' < "$mf"`
1228 test -z "am__include" && continue
1229 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
1230 # When using ansi2knr, U may be empty or an underscore; expand it
1231 U=`sed -n 's/^U = //p' < "$mf"`
1232 # Find all dependency output files, they are included files with
1233 # $(DEPDIR) in their names. We invoke sed twice because it is the
1234 # simplest approach to changing $(DEPDIR) to its actual value in the
1235 # expansion.
1236 for file in `sed -n "
1237 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
1238 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
1239 # Make sure the directory exists.
1240 test -f "$dirpart/$file" && continue
1241 fdir=`AS_DIRNAME(["$file"])`
1242 AS_MKDIR_P([$dirpart/$fdir])
1243 # echo "creating $dirpart/$file"
1244 echo '# dummy' > "$dirpart/$file"
1245 done
08024023 1246 done
bd2899cf 1247}
08024023
DB
1248])# _AM_OUTPUT_DEPENDENCY_COMMANDS
1249
1250
1251# AM_OUTPUT_DEPENDENCY_COMMANDS
1252# -----------------------------
1253# This macro should only be invoked once -- use via AC_REQUIRE.
1254#
1255# This code is only required when automatic dependency tracking
1256# is enabled. FIXME. This creates each `.P' file that we will
1257# need in order to bootstrap the dependency handling code.
1258AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
1259[AC_CONFIG_COMMANDS([depfiles],
1260 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
1261 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
1262])
1263
08024023
DB
1264# Do all the work for Automake. -*- Autoconf -*-
1265
1266# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
bd2899cf 1267# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
08024023
DB
1268#
1269# This file is free software; the Free Software Foundation
1270# gives unlimited permission to copy and/or distribute it,
1271# with or without modifications, as long as this notice is preserved.
1272
bd2899cf 1273# serial 16
08024023
DB
1274
1275# This macro actually does too much. Some checks are only needed if
1276# your package does certain things. But this isn't really a big deal.
1277
1278# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
1279# AM_INIT_AUTOMAKE([OPTIONS])
1280# -----------------------------------------------
1281# The call with PACKAGE and VERSION arguments is the old style
1282# call (pre autoconf-2.50), which is being phased out. PACKAGE
1283# and VERSION should now be passed to AC_INIT and removed from
1284# the call to AM_INIT_AUTOMAKE.
1285# We support both call styles for the transition. After
1286# the next Automake release, Autoconf can make the AC_INIT
1287# arguments mandatory, and then we can depend on a new Autoconf
1288# release and drop the old call support.
1289AC_DEFUN([AM_INIT_AUTOMAKE],
bd2899cf 1290[AC_PREREQ([2.62])dnl
08024023
DB
1291dnl Autoconf wants to disallow AM_ names. We explicitly allow
1292dnl the ones we care about.
1293m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
1294AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
1295AC_REQUIRE([AC_PROG_INSTALL])dnl
1296if test "`cd $srcdir && pwd`" != "`pwd`"; then
1297 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
1298 # is not polluted with repeated "-I."
1299 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
1300 # test to see if srcdir already configured
1301 if test -f $srcdir/config.status; then
1302 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
1303 fi
1304fi
1305
1306# test whether we have cygpath
1307if test -z "$CYGPATH_W"; then
1308 if (cygpath --version) >/dev/null 2>/dev/null; then
1309 CYGPATH_W='cygpath -w'
1310 else
1311 CYGPATH_W=echo
1312 fi
1313fi
1314AC_SUBST([CYGPATH_W])
1315
1316# Define the identity of the package.
1317dnl Distinguish between old-style and new-style calls.
1318m4_ifval([$2],
1319[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
1320 AC_SUBST([PACKAGE], [$1])dnl
1321 AC_SUBST([VERSION], [$2])],
1322[_AM_SET_OPTIONS([$1])dnl
1323dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
1324m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
1325 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
1326 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
1327 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
1328
1329_AM_IF_OPTION([no-define],,
1330[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
1331 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
1332
1333# Some tools Automake needs.
1334AC_REQUIRE([AM_SANITY_CHECK])dnl
1335AC_REQUIRE([AC_ARG_PROGRAM])dnl
1336AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
1337AM_MISSING_PROG(AUTOCONF, autoconf)
1338AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
1339AM_MISSING_PROG(AUTOHEADER, autoheader)
1340AM_MISSING_PROG(MAKEINFO, makeinfo)
bd2899cf
DB
1341AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
1342AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
08024023
DB
1343AC_REQUIRE([AM_PROG_MKDIR_P])dnl
1344# We need awk for the "check" target. The system "awk" is bad on
1345# some platforms.
1346AC_REQUIRE([AC_PROG_AWK])dnl
1347AC_REQUIRE([AC_PROG_MAKE_SET])dnl
1348AC_REQUIRE([AM_SET_LEADING_DOT])dnl
1349_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
bd2899cf
DB
1350 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
1351 [_AM_PROG_TAR([v7])])])
08024023
DB
1352_AM_IF_OPTION([no-dependencies],,
1353[AC_PROVIDE_IFELSE([AC_PROG_CC],
bd2899cf
DB
1354 [_AM_DEPENDENCIES(CC)],
1355 [define([AC_PROG_CC],
1356 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
08024023 1357AC_PROVIDE_IFELSE([AC_PROG_CXX],
bd2899cf
DB
1358 [_AM_DEPENDENCIES(CXX)],
1359 [define([AC_PROG_CXX],
1360 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
08024023 1361AC_PROVIDE_IFELSE([AC_PROG_OBJC],
bd2899cf
DB
1362 [_AM_DEPENDENCIES(OBJC)],
1363 [define([AC_PROG_OBJC],
1364 defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
08024023 1365])
bd2899cf
DB
1366_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
1367dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
1368dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
1369dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
1370AC_CONFIG_COMMANDS_PRE(dnl
1371[m4_provide_if([_AM_COMPILER_EXEEXT],
1372 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
08024023
DB
1373])
1374
bd2899cf
DB
1375dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
1376dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
1377dnl mangled by Autoconf and run in a shell conditional statement.
1378m4_define([_AC_COMPILER_EXEEXT],
1379m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
1380
08024023
DB
1381
1382# When config.status generates a header, we must update the stamp-h file.
1383# This file resides in the same directory as the config header
1384# that is generated. The stamp files are numbered to have different names.
1385
1386# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
1387# loop where config.status creates the headers, so we can generate
1388# our stamp files there.
1389AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
1390[# Compute $1's index in $config_headers.
bd2899cf 1391_am_arg=$1
08024023
DB
1392_am_stamp_count=1
1393for _am_header in $config_headers :; do
1394 case $_am_header in
bd2899cf 1395 $_am_arg | $_am_arg:* )
08024023
DB
1396 break ;;
1397 * )
1398 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
1399 esac
1400done
bd2899cf 1401echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
08024023 1402
70478930
DB
1403# Copyright (C) 2001, 2003, 2005, 2008, 2011 Free Software Foundation,
1404# Inc.
08024023
DB
1405#
1406# This file is free software; the Free Software Foundation
1407# gives unlimited permission to copy and/or distribute it,
1408# with or without modifications, as long as this notice is preserved.
1409
70478930
DB
1410# serial 1
1411
08024023
DB
1412# AM_PROG_INSTALL_SH
1413# ------------------
1414# Define $install_sh.
1415AC_DEFUN([AM_PROG_INSTALL_SH],
1416[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
bd2899cf
DB
1417if test x"${install_sh}" != xset; then
1418 case $am_aux_dir in
1419 *\ * | *\ *)
1420 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
1421 *)
1422 install_sh="\${SHELL} $am_aux_dir/install-sh"
1423 esac
1424fi
08024023
DB
1425AC_SUBST(install_sh)])
1426
1427# Copyright (C) 2003, 2005 Free Software Foundation, Inc.
1428#
1429# This file is free software; the Free Software Foundation
1430# gives unlimited permission to copy and/or distribute it,
1431# with or without modifications, as long as this notice is preserved.
1432
1433# serial 2
1434
1435# Check whether the underlying file-system supports filenames
1436# with a leading dot. For instance MS-DOS doesn't.
1437AC_DEFUN([AM_SET_LEADING_DOT],
1438[rm -rf .tst 2>/dev/null
1439mkdir .tst 2>/dev/null
1440if test -d .tst; then
1441 am__leading_dot=.
1442else
1443 am__leading_dot=_
1444fi
1445rmdir .tst 2>/dev/null
1446AC_SUBST([am__leading_dot])])
1447
6ec93802
DB
1448# Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
1449# From Jim Meyering
1450
70478930
DB
1451# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008,
1452# 2011 Free Software Foundation, Inc.
6ec93802
DB
1453#
1454# This file is free software; the Free Software Foundation
1455# gives unlimited permission to copy and/or distribute it,
1456# with or without modifications, as long as this notice is preserved.
1457
1458# serial 5
1459
1460# AM_MAINTAINER_MODE([DEFAULT-MODE])
1461# ----------------------------------
1462# Control maintainer-specific portions of Makefiles.
1463# Default is to disable them, unless `enable' is passed literally.
1464# For symmetry, `disable' may be passed as well. Anyway, the user
1465# can override the default with the --enable/--disable switch.
1466AC_DEFUN([AM_MAINTAINER_MODE],
1467[m4_case(m4_default([$1], [disable]),
1468 [enable], [m4_define([am_maintainer_other], [disable])],
1469 [disable], [m4_define([am_maintainer_other], [enable])],
1470 [m4_define([am_maintainer_other], [enable])
1471 m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
70478930 1472AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
6ec93802
DB
1473 dnl maintainer-mode's default is 'disable' unless 'enable' is passed
1474 AC_ARG_ENABLE([maintainer-mode],
1475[ --][am_maintainer_other][-maintainer-mode am_maintainer_other make rules and dependencies not useful
1476 (and sometimes confusing) to the casual installer],
1477 [USE_MAINTAINER_MODE=$enableval],
1478 [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
1479 AC_MSG_RESULT([$USE_MAINTAINER_MODE])
1480 AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
1481 MAINT=$MAINTAINER_MODE_TRUE
1482 AC_SUBST([MAINT])dnl
1483]
1484)
1485
1486AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
1487
08024023
DB
1488# Check to see how 'make' treats includes. -*- Autoconf -*-
1489
bd2899cf 1490# Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
08024023
DB
1491#
1492# This file is free software; the Free Software Foundation
1493# gives unlimited permission to copy and/or distribute it,
1494# with or without modifications, as long as this notice is preserved.
1495
bd2899cf 1496# serial 4
08024023
DB
1497
1498# AM_MAKE_INCLUDE()
1499# -----------------
1500# Check to see how make treats includes.
1501AC_DEFUN([AM_MAKE_INCLUDE],
1502[am_make=${MAKE-make}
1503cat > confinc << 'END'
1504am__doit:
bd2899cf 1505 @echo this is the am__doit target
08024023
DB
1506.PHONY: am__doit
1507END
1508# If we don't find an include directive, just comment out the code.
1509AC_MSG_CHECKING([for style of include used by $am_make])
1510am__include="#"
1511am__quote=
1512_am_result=none
1513# First try GNU make style include.
1514echo "include confinc" > confmf
bd2899cf
DB
1515# Ignore all kinds of additional output from `make'.
1516case `$am_make -s -f confmf 2> /dev/null` in #(
1517*the\ am__doit\ target*)
1518 am__include=include
1519 am__quote=
1520 _am_result=GNU
1521 ;;
1522esac
08024023
DB
1523# Now try BSD make style include.
1524if test "$am__include" = "#"; then
1525 echo '.include "confinc"' > confmf
bd2899cf
DB
1526 case `$am_make -s -f confmf 2> /dev/null` in #(
1527 *the\ am__doit\ target*)
1528 am__include=.include
1529 am__quote="\""
1530 _am_result=BSD
1531 ;;
1532 esac
08024023
DB
1533fi
1534AC_SUBST([am__include])
1535AC_SUBST([am__quote])
1536AC_MSG_RESULT([$_am_result])
1537rm -f confinc confmf
1538])
1539
1540# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
1541
bd2899cf 1542# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
08024023
DB
1543# Free Software Foundation, Inc.
1544#
1545# This file is free software; the Free Software Foundation
1546# gives unlimited permission to copy and/or distribute it,
1547# with or without modifications, as long as this notice is preserved.
1548
bd2899cf 1549# serial 6
08024023
DB
1550
1551# AM_MISSING_PROG(NAME, PROGRAM)
1552# ------------------------------
1553AC_DEFUN([AM_MISSING_PROG],
1554[AC_REQUIRE([AM_MISSING_HAS_RUN])
1555$1=${$1-"${am_missing_run}$2"}
1556AC_SUBST($1)])
1557
1558
1559# AM_MISSING_HAS_RUN
1560# ------------------
1561# Define MISSING if not defined so far and test if it supports --run.
1562# If it does, set am_missing_run to use it, otherwise, to nothing.
1563AC_DEFUN([AM_MISSING_HAS_RUN],
1564[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1565AC_REQUIRE_AUX_FILE([missing])dnl
bd2899cf
DB
1566if test x"${MISSING+set}" != xset; then
1567 case $am_aux_dir in
1568 *\ * | *\ *)
1569 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
1570 *)
1571 MISSING="\${SHELL} $am_aux_dir/missing" ;;
1572 esac
1573fi
08024023
DB
1574# Use eval to expand $SHELL
1575if eval "$MISSING --run true"; then
1576 am_missing_run="$MISSING --run "
1577else
1578 am_missing_run=
1579 AC_MSG_WARN([`missing' script is too old or missing])
1580fi
1581])
1582
70478930
DB
1583# Copyright (C) 2003, 2004, 2005, 2006, 2011 Free Software Foundation,
1584# Inc.
08024023
DB
1585#
1586# This file is free software; the Free Software Foundation
1587# gives unlimited permission to copy and/or distribute it,
1588# with or without modifications, as long as this notice is preserved.
1589
70478930
DB
1590# serial 1
1591
08024023
DB
1592# AM_PROG_MKDIR_P
1593# ---------------
1594# Check for `mkdir -p'.
1595AC_DEFUN([AM_PROG_MKDIR_P],
1596[AC_PREREQ([2.60])dnl
1597AC_REQUIRE([AC_PROG_MKDIR_P])dnl
1598dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
1599dnl while keeping a definition of mkdir_p for backward compatibility.
1600dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
1601dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
1602dnl Makefile.ins that do not define MKDIR_P, so we do our own
1603dnl adjustment using top_builddir (which is defined more often than
1604dnl MKDIR_P).
1605AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
1606case $mkdir_p in
1607 [[\\/$]]* | ?:[[\\/]]*) ;;
1608 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
1609esac
1610])
1611
1612# Helper functions for option handling. -*- Autoconf -*-
1613
70478930
DB
1614# Copyright (C) 2001, 2002, 2003, 2005, 2008, 2010 Free Software
1615# Foundation, Inc.
08024023
DB
1616#
1617# This file is free software; the Free Software Foundation
1618# gives unlimited permission to copy and/or distribute it,
1619# with or without modifications, as long as this notice is preserved.
1620
70478930 1621# serial 5
08024023
DB
1622
1623# _AM_MANGLE_OPTION(NAME)
1624# -----------------------
1625AC_DEFUN([_AM_MANGLE_OPTION],
1626[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
1627
1628# _AM_SET_OPTION(NAME)
70478930 1629# --------------------
08024023
DB
1630# Set option NAME. Presently that only means defining a flag for this option.
1631AC_DEFUN([_AM_SET_OPTION],
1632[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
1633
1634# _AM_SET_OPTIONS(OPTIONS)
70478930 1635# ------------------------
08024023
DB
1636# OPTIONS is a space-separated list of Automake options.
1637AC_DEFUN([_AM_SET_OPTIONS],
bd2899cf 1638[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
08024023
DB
1639
1640# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
1641# -------------------------------------------
1642# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
1643AC_DEFUN([_AM_IF_OPTION],
1644[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
1645
1646# Check to make sure that the build environment is sane. -*- Autoconf -*-
1647
bd2899cf 1648# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
08024023
DB
1649# 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
bd2899cf 1655# serial 5
08024023
DB
1656
1657# AM_SANITY_CHECK
1658# ---------------
1659AC_DEFUN([AM_SANITY_CHECK],
1660[AC_MSG_CHECKING([whether build environment is sane])
1661# Just in case
1662sleep 1
1663echo timestamp > conftest.file
bd2899cf
DB
1664# Reject unsafe characters in $srcdir or the absolute working directory
1665# name. Accept space and tab only in the latter.
1666am_lf='
1667'
1668case `pwd` in
1669 *[[\\\"\#\$\&\'\`$am_lf]]*)
1670 AC_MSG_ERROR([unsafe absolute working directory name]);;
1671esac
1672case $srcdir in
1673 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
1674 AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
1675esac
1676
08024023
DB
1677# Do `set' in a subshell so we don't clobber the current shell's
1678# arguments. Must try -L first in case configure is actually a
1679# symlink; some systems play weird games with the mod time of symlinks
1680# (eg FreeBSD returns the mod time of the symlink's containing
1681# directory).
1682if (
bd2899cf 1683 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
08024023
DB
1684 if test "$[*]" = "X"; then
1685 # -L didn't work.
bd2899cf 1686 set X `ls -t "$srcdir/configure" conftest.file`
08024023
DB
1687 fi
1688 rm -f conftest.file
1689 if test "$[*]" != "X $srcdir/configure conftest.file" \
1690 && test "$[*]" != "X conftest.file $srcdir/configure"; then
1691
1692 # If neither matched, then we have a broken ls. This can happen
1693 # if, for instance, CONFIG_SHELL is bash and it inherits a
1694 # broken ls alias from the environment. This has actually
1695 # happened. Such a system could not be considered "sane".
1696 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
1697alias in your environment])
1698 fi
1699
1700 test "$[2]" = conftest.file
1701 )
1702then
1703 # Ok.
1704 :
1705else
1706 AC_MSG_ERROR([newly created file is older than distributed files!
1707Check your system clock])
1708fi
1709AC_MSG_RESULT(yes)])
1710
70478930 1711# Copyright (C) 2009, 2011 Free Software Foundation, Inc.
6ec93802
DB
1712#
1713# This file is free software; the Free Software Foundation
1714# gives unlimited permission to copy and/or distribute it,
1715# with or without modifications, as long as this notice is preserved.
1716
70478930 1717# serial 2
6ec93802
DB
1718
1719# AM_SILENT_RULES([DEFAULT])
1720# --------------------------
1721# Enable less verbose build rules; with the default set to DEFAULT
1722# (`yes' being less verbose, `no' or empty being verbose).
1723AC_DEFUN([AM_SILENT_RULES],
1724[AC_ARG_ENABLE([silent-rules],
1725[ --enable-silent-rules less verbose build output (undo: `make V=1')
1726 --disable-silent-rules verbose build output (undo: `make V=0')])
1727case $enable_silent_rules in
1728yes) AM_DEFAULT_VERBOSITY=0;;
1729no) AM_DEFAULT_VERBOSITY=1;;
1730*) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
1731esac
70478930
DB
1732dnl
1733dnl A few `make' implementations (e.g., NonStop OS and NextStep)
1734dnl do not support nested variable expansions.
1735dnl See automake bug#9928 and bug#10237.
1736am_make=${MAKE-make}
1737AC_CACHE_CHECK([whether $am_make supports nested variables],
1738 [am_cv_make_support_nested_variables],
1739 [if AS_ECHO([['TRUE=$(BAR$(V))
1740BAR0=false
1741BAR1=true
1742V=1
1743am__doit:
1744 @$(TRUE)
1745.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
1746 am_cv_make_support_nested_variables=yes
1747else
1748 am_cv_make_support_nested_variables=no
1749fi])
1750if test $am_cv_make_support_nested_variables = yes; then
1751 dnl Using `$V' instead of `$(V)' breaks IRIX make.
1752 AM_V='$(V)'
1753 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
1754else
1755 AM_V=$AM_DEFAULT_VERBOSITY
1756 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
1757fi
1758AC_SUBST([AM_V])dnl
1759AM_SUBST_NOTMAKE([AM_V])dnl
1760AC_SUBST([AM_DEFAULT_V])dnl
1761AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
6ec93802
DB
1762AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
1763AM_BACKSLASH='\'
1764AC_SUBST([AM_BACKSLASH])dnl
1765_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
1766])
1767
70478930 1768# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
08024023
DB
1769#
1770# This file is free software; the Free Software Foundation
1771# gives unlimited permission to copy and/or distribute it,
1772# with or without modifications, as long as this notice is preserved.
1773
70478930
DB
1774# serial 1
1775
08024023
DB
1776# AM_PROG_INSTALL_STRIP
1777# ---------------------
1778# One issue with vendor `install' (even GNU) is that you can't
1779# specify the program used to strip binaries. This is especially
1780# annoying in cross-compiling environments, where the build's strip
1781# is unlikely to handle the host's binaries.
1782# Fortunately install-sh will honor a STRIPPROG variable, so we
1783# always use install-sh in `make install-strip', and initialize
1784# STRIPPROG with the value of the STRIP variable (set by the user).
1785AC_DEFUN([AM_PROG_INSTALL_STRIP],
1786[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
1787# Installed binaries are usually stripped using `strip' when the user
1788# run `make install-strip'. However `strip' might not be the right
1789# tool to use in cross-compilation environments, therefore Automake
1790# will honor the `STRIP' environment variable to overrule this program.
1791dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
1792if test "$cross_compiling" != no; then
1793 AC_CHECK_TOOL([STRIP], [strip], :)
1794fi
1795INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1796AC_SUBST([INSTALL_STRIP_PROGRAM])])
1797
70478930 1798# Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc.
08024023
DB
1799#
1800# This file is free software; the Free Software Foundation
1801# gives unlimited permission to copy and/or distribute it,
1802# with or without modifications, as long as this notice is preserved.
1803
70478930 1804# serial 3
bd2899cf 1805
08024023
DB
1806# _AM_SUBST_NOTMAKE(VARIABLE)
1807# ---------------------------
bd2899cf 1808# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
08024023
DB
1809# This macro is traced by Automake.
1810AC_DEFUN([_AM_SUBST_NOTMAKE])
1811
bd2899cf 1812# AM_SUBST_NOTMAKE(VARIABLE)
70478930 1813# --------------------------
bd2899cf
DB
1814# Public sister of _AM_SUBST_NOTMAKE.
1815AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
1816
08024023
DB
1817# Check how to create a tarball. -*- Autoconf -*-
1818
70478930 1819# Copyright (C) 2004, 2005, 2012 Free Software Foundation, Inc.
08024023
DB
1820#
1821# This file is free software; the Free Software Foundation
1822# gives unlimited permission to copy and/or distribute it,
1823# with or without modifications, as long as this notice is preserved.
1824
1825# serial 2
1826
1827# _AM_PROG_TAR(FORMAT)
1828# --------------------
1829# Check how to create a tarball in format FORMAT.
1830# FORMAT should be one of `v7', `ustar', or `pax'.
1831#
1832# Substitute a variable $(am__tar) that is a command
1833# writing to stdout a FORMAT-tarball containing the directory
1834# $tardir.
1835# tardir=directory && $(am__tar) > result.tar
1836#
1837# Substitute a variable $(am__untar) that extract such
1838# a tarball read from stdin.
1839# $(am__untar) < result.tar
1840AC_DEFUN([_AM_PROG_TAR],
70478930
DB
1841[# Always define AMTAR for backward compatibility. Yes, it's still used
1842# in the wild :-( We should find a proper way to deprecate it ...
1843AC_SUBST([AMTAR], ['$${TAR-tar}'])
08024023 1844m4_if([$1], [v7],
70478930 1845 [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
08024023
DB
1846 [m4_case([$1], [ustar],, [pax],,
1847 [m4_fatal([Unknown tar format])])
1848AC_MSG_CHECKING([how to create a $1 tar archive])
1849# Loop over all known methods to create a tar archive until one works.
1850_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
1851_am_tools=${am_cv_prog_tar_$1-$_am_tools}
1852# Do not fold the above two line into one, because Tru64 sh and
1853# Solaris sh will not grok spaces in the rhs of `-'.
1854for _am_tool in $_am_tools
1855do
1856 case $_am_tool in
1857 gnutar)
1858 for _am_tar in tar gnutar gtar;
1859 do
1860 AM_RUN_LOG([$_am_tar --version]) && break
1861 done
1862 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
1863 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
1864 am__untar="$_am_tar -xf -"
1865 ;;
1866 plaintar)
1867 # Must skip GNU tar: if it does not support --format= it doesn't create
1868 # ustar tarball either.
1869 (tar --version) >/dev/null 2>&1 && continue
1870 am__tar='tar chf - "$$tardir"'
1871 am__tar_='tar chf - "$tardir"'
1872 am__untar='tar xf -'
1873 ;;
1874 pax)
1875 am__tar='pax -L -x $1 -w "$$tardir"'
1876 am__tar_='pax -L -x $1 -w "$tardir"'
1877 am__untar='pax -r'
1878 ;;
1879 cpio)
1880 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
1881 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
1882 am__untar='cpio -i -H $1 -d'
1883 ;;
1884 none)
1885 am__tar=false
1886 am__tar_=false
1887 am__untar=false
1888 ;;
1889 esac
1890
1891 # If the value was cached, stop now. We just wanted to have am__tar
1892 # and am__untar set.
1893 test -n "${am_cv_prog_tar_$1}" && break
1894
1895 # tar/untar a dummy directory, and stop if the command works
1896 rm -rf conftest.dir
1897 mkdir conftest.dir
1898 echo GrepMe > conftest.dir/file
1899 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1900 rm -rf conftest.dir
1901 if test -s conftest.tar; then
1902 AM_RUN_LOG([$am__untar <conftest.tar])
1903 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1904 fi
1905done
1906rm -rf conftest.dir
1907
1908AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1909AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1910AC_SUBST([am__tar])
1911AC_SUBST([am__untar])
1912]) # _AM_PROG_TAR
1913
bd2899cf 1914m4_include([acinclude.m4])