1# generated automatically by aclocal 1.10.1 -*- Autoconf -*-
2
3# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4# 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
5# This file is free software; the Free Software Foundation
6# gives unlimited permission to copy and/or distribute it,
7# with or without modifications, as long as this notice is preserved.
8
9# This program is distributed in the hope that it will be useful,
10# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12# PARTICULAR PURPOSE.
13
14m4_ifndef([AC_AUTOCONF_VERSION],
15  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16m4_if(AC_AUTOCONF_VERSION, [2.61],,
17[m4_warning([this file was generated for autoconf 2.61.
18You have another version of autoconf.  It may work, but is not guaranteed to.
19If you have problems, you may need to regenerate the build system entirely.
20To do so, use the procedure documented by the package, typically `autoreconf'.])])
21
22# intlmacosx.m4 serial 1 (gettext-0.17)
23dnl Copyright (C) 2004-2007 Free Software Foundation, Inc.
24dnl This file is free software; the Free Software Foundation
25dnl gives unlimited permission to copy and/or distribute it,
26dnl with or without modifications, as long as this notice is preserved.
27dnl
28dnl This file can can be used in projects which are not available under
29dnl the GNU General Public License or the GNU Library General Public
30dnl License but which still want to provide support for the GNU gettext
31dnl functionality.
32dnl Please note that the actual code of the GNU gettext library is covered
33dnl by the GNU Library General Public License, and the rest of the GNU
34dnl gettext package package is covered by the GNU General Public License.
35dnl They are *not* in the public domain.
36
37dnl Checks for special options needed on MacOS X.
38dnl Defines INTL_MACOSX_LIBS.
39AC_DEFUN([gt_INTL_MACOSX],
40[
41  dnl Check for API introduced in MacOS X 10.2.
42  AC_CACHE_CHECK([for CFPreferencesCopyAppValue],
43    gt_cv_func_CFPreferencesCopyAppValue,
44    [gt_save_LIBS="$LIBS"
45     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
46     AC_TRY_LINK([#include <CoreFoundation/CFPreferences.h>],
47       [CFPreferencesCopyAppValue(NULL, NULL)],
48       [gt_cv_func_CFPreferencesCopyAppValue=yes],
49       [gt_cv_func_CFPreferencesCopyAppValue=no])
50     LIBS="$gt_save_LIBS"])
51  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
52    AC_DEFINE([HAVE_CFPREFERENCESCOPYAPPVALUE], 1,
53      [Define to 1 if you have the MacOS X function CFPreferencesCopyAppValue in the CoreFoundation framework.])
54  fi
55  dnl Check for API introduced in MacOS X 10.3.
56  AC_CACHE_CHECK([for CFLocaleCopyCurrent], gt_cv_func_CFLocaleCopyCurrent,
57    [gt_save_LIBS="$LIBS"
58     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
59     AC_TRY_LINK([#include <CoreFoundation/CFLocale.h>], [CFLocaleCopyCurrent();],
60       [gt_cv_func_CFLocaleCopyCurrent=yes],
61       [gt_cv_func_CFLocaleCopyCurrent=no])
62     LIBS="$gt_save_LIBS"])
63  if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
64    AC_DEFINE([HAVE_CFLOCALECOPYCURRENT], 1,
65      [Define to 1 if you have the MacOS X function CFLocaleCopyCurrent in the CoreFoundation framework.])
66  fi
67  INTL_MACOSX_LIBS=
68  if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
69    INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
70  fi
71  AC_SUBST([INTL_MACOSX_LIBS])
72])
73
74# pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
75#
76# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
77#
78# This program is free software; you can redistribute it and/or modify
79# it under the terms of the GNU General Public License as published by
80# the Free Software Foundation; either version 2 of the License, or
81# (at your option) any later version.
82#
83# This program is distributed in the hope that it will be useful, but
84# WITHOUT ANY WARRANTY; without even the implied warranty of
85# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
86# General Public License for more details.
87#
88# You should have received a copy of the GNU General Public License
89# along with this program; if not, write to the Free Software
90# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
91#
92# As a special exception to the GNU General Public License, if you
93# distribute this file as part of a program that contains a
94# configuration script generated by Autoconf, you may include it under
95# the same distribution terms that you use for the rest of that program.
96
97# PKG_PROG_PKG_CONFIG([MIN-VERSION])
98# ----------------------------------
99AC_DEFUN([PKG_PROG_PKG_CONFIG],
100[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
101m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
102AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl
103if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
104	AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
105fi
106if test -n "$PKG_CONFIG"; then
107	_pkg_min_version=m4_default([$1], [0.9.0])
108	AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
109	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
110		AC_MSG_RESULT([yes])
111	else
112		AC_MSG_RESULT([no])
113		PKG_CONFIG=""
114	fi
115
116fi[]dnl
117])# PKG_PROG_PKG_CONFIG
118
119# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
120#
121# Check to see whether a particular set of modules exists.  Similar
122# to PKG_CHECK_MODULES(), but does not set variables or print errors.
123#
124#
125# Similar to PKG_CHECK_MODULES, make sure that the first instance of
126# this or PKG_CHECK_MODULES is called, or make sure to call
127# PKG_CHECK_EXISTS manually
128# --------------------------------------------------------------
129AC_DEFUN([PKG_CHECK_EXISTS],
130[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
131if test -n "$PKG_CONFIG" && \
132    AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
133  m4_ifval([$2], [$2], [:])
134m4_ifvaln([$3], [else
135  $3])dnl
136fi])
137
138
139# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
140# ---------------------------------------------
141m4_define([_PKG_CONFIG],
142[if test -n "$PKG_CONFIG"; then
143    if test -n "$$1"; then
144        pkg_cv_[]$1="$$1"
145    else
146        PKG_CHECK_EXISTS([$3],
147                         [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
148			 [pkg_failed=yes])
149    fi
150else
151	pkg_failed=untried
152fi[]dnl
153])# _PKG_CONFIG
154
155# _PKG_SHORT_ERRORS_SUPPORTED
156# -----------------------------
157AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
158[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
159if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
160        _pkg_short_errors_supported=yes
161else
162        _pkg_short_errors_supported=no
163fi[]dnl
164])# _PKG_SHORT_ERRORS_SUPPORTED
165
166
167# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
168# [ACTION-IF-NOT-FOUND])
169#
170#
171# Note that if there is a possibility the first call to
172# PKG_CHECK_MODULES might not happen, you should be sure to include an
173# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
174#
175#
176# --------------------------------------------------------------
177AC_DEFUN([PKG_CHECK_MODULES],
178[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
179AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
180AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
181
182pkg_failed=no
183AC_MSG_CHECKING([for $1])
184
185_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
186_PKG_CONFIG([$1][_LIBS], [libs], [$2])
187
188m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
189and $1[]_LIBS to avoid the need to call pkg-config.
190See the pkg-config man page for more details.])
191
192if test $pkg_failed = yes; then
193        _PKG_SHORT_ERRORS_SUPPORTED
194        if test $_pkg_short_errors_supported = yes; then
195	        $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$2"`
196        else
197	        $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
198        fi
199	# Put the nasty error message in config.log where it belongs
200	echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
201
202	ifelse([$4], , [AC_MSG_ERROR(dnl
203[Package requirements ($2) were not met:
204
205$$1_PKG_ERRORS
206
207Consider adjusting the PKG_CONFIG_PATH environment variable if you
208installed software in a non-standard prefix.
209
210_PKG_TEXT
211])],
212		[AC_MSG_RESULT([no])
213                $4])
214elif test $pkg_failed = untried; then
215	ifelse([$4], , [AC_MSG_FAILURE(dnl
216[The pkg-config script could not be found or is too old.  Make sure it
217is in your PATH or set the PKG_CONFIG environment variable to the full
218path to pkg-config.
219
220_PKG_TEXT
221
222To get pkg-config, see <http://pkg-config.freedesktop.org/>.])],
223		[$4])
224else
225	$1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
226	$1[]_LIBS=$pkg_cv_[]$1[]_LIBS
227        AC_MSG_RESULT([yes])
228	ifelse([$3], , :, [$3])
229fi[]dnl
230])# PKG_CHECK_MODULES
231
232# Copyright (C) 2002, 2003, 2005, 2006, 2007  Free Software Foundation, Inc.
233#
234# This file is free software; the Free Software Foundation
235# gives unlimited permission to copy and/or distribute it,
236# with or without modifications, as long as this notice is preserved.
237
238# AM_AUTOMAKE_VERSION(VERSION)
239# ----------------------------
240# Automake X.Y traces this macro to ensure aclocal.m4 has been
241# generated from the m4 files accompanying Automake X.Y.
242# (This private macro should not be called outside this file.)
243AC_DEFUN([AM_AUTOMAKE_VERSION],
244[am__api_version='1.10'
245dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
246dnl require some minimum version.  Point them to the right macro.
247m4_if([$1], [1.10.1], [],
248      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
249])
250
251# _AM_AUTOCONF_VERSION(VERSION)
252# -----------------------------
253# aclocal traces this macro to find the Autoconf version.
254# This is a private macro too.  Using m4_define simplifies
255# the logic in aclocal, which can simply ignore this definition.
256m4_define([_AM_AUTOCONF_VERSION], [])
257
258# AM_SET_CURRENT_AUTOMAKE_VERSION
259# -------------------------------
260# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
261# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
262AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
263[AM_AUTOMAKE_VERSION([1.10.1])dnl
264m4_ifndef([AC_AUTOCONF_VERSION],
265  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
266_AM_AUTOCONF_VERSION(AC_AUTOCONF_VERSION)])
267
268# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
269
270# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
271#
272# This file is free software; the Free Software Foundation
273# gives unlimited permission to copy and/or distribute it,
274# with or without modifications, as long as this notice is preserved.
275
276# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
277# $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
278# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
279#
280# Of course, Automake must honor this variable whenever it calls a
281# tool from the auxiliary directory.  The problem is that $srcdir (and
282# therefore $ac_aux_dir as well) can be either absolute or relative,
283# depending on how configure is run.  This is pretty annoying, since
284# it makes $ac_aux_dir quite unusable in subdirectories: in the top
285# source directory, any form will work fine, but in subdirectories a
286# relative path needs to be adjusted first.
287#
288# $ac_aux_dir/missing
289#    fails when called from a subdirectory if $ac_aux_dir is relative
290# $top_srcdir/$ac_aux_dir/missing
291#    fails if $ac_aux_dir is absolute,
292#    fails when called from a subdirectory in a VPATH build with
293#          a relative $ac_aux_dir
294#
295# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
296# are both prefixed by $srcdir.  In an in-source build this is usually
297# harmless because $srcdir is `.', but things will broke when you
298# start a VPATH build or use an absolute $srcdir.
299#
300# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
301# iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
302#   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
303# and then we would define $MISSING as
304#   MISSING="\${SHELL} $am_aux_dir/missing"
305# This will work as long as MISSING is not called from configure, because
306# unfortunately $(top_srcdir) has no meaning in configure.
307# However there are other variables, like CC, which are often used in
308# configure, and could therefore not use this "fixed" $ac_aux_dir.
309#
310# Another solution, used here, is to always expand $ac_aux_dir to an
311# absolute PATH.  The drawback is that using absolute paths prevent a
312# configured tree to be moved without reconfiguration.
313
314AC_DEFUN([AM_AUX_DIR_EXPAND],
315[dnl Rely on autoconf to set up CDPATH properly.
316AC_PREREQ([2.50])dnl
317# expand $ac_aux_dir to an absolute path
318am_aux_dir=`cd $ac_aux_dir && pwd`
319])
320
321# AM_CONDITIONAL                                            -*- Autoconf -*-
322
323# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
324# Free Software Foundation, Inc.
325#
326# This file is free software; the Free Software Foundation
327# gives unlimited permission to copy and/or distribute it,
328# with or without modifications, as long as this notice is preserved.
329
330# serial 8
331
332# AM_CONDITIONAL(NAME, SHELL-CONDITION)
333# -------------------------------------
334# Define a conditional.
335AC_DEFUN([AM_CONDITIONAL],
336[AC_PREREQ(2.52)dnl
337 ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
338	[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
339AC_SUBST([$1_TRUE])dnl
340AC_SUBST([$1_FALSE])dnl
341_AM_SUBST_NOTMAKE([$1_TRUE])dnl
342_AM_SUBST_NOTMAKE([$1_FALSE])dnl
343if $2; then
344  $1_TRUE=
345  $1_FALSE='#'
346else
347  $1_TRUE='#'
348  $1_FALSE=
349fi
350AC_CONFIG_COMMANDS_PRE(
351[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
352  AC_MSG_ERROR([[conditional "$1" was never defined.
353Usually this means the macro was only invoked conditionally.]])
354fi])])
355
356# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
357# Free Software Foundation, Inc.
358#
359# This file is free software; the Free Software Foundation
360# gives unlimited permission to copy and/or distribute it,
361# with or without modifications, as long as this notice is preserved.
362
363# serial 9
364
365# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
366# written in clear, in which case automake, when reading aclocal.m4,
367# will think it sees a *use*, and therefore will trigger all it's
368# C support machinery.  Also note that it means that autoscan, seeing
369# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
370
371
372# _AM_DEPENDENCIES(NAME)
373# ----------------------
374# See how the compiler implements dependency checking.
375# NAME is "CC", "CXX", "GCJ", or "OBJC".
376# We try a few techniques and use that to set a single cache variable.
377#
378# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
379# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
380# dependency, and given that the user is not expected to run this macro,
381# just rely on AC_PROG_CC.
382AC_DEFUN([_AM_DEPENDENCIES],
383[AC_REQUIRE([AM_SET_DEPDIR])dnl
384AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
385AC_REQUIRE([AM_MAKE_INCLUDE])dnl
386AC_REQUIRE([AM_DEP_TRACK])dnl
387
388ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
389       [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
390       [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
391       [$1], UPC,  [depcc="$UPC"  am_compiler_list=],
392       [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
393                   [depcc="$$1"   am_compiler_list=])
394
395AC_CACHE_CHECK([dependency style of $depcc],
396               [am_cv_$1_dependencies_compiler_type],
397[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
398  # We make a subdir and do the tests there.  Otherwise we can end up
399  # making bogus files that we don't know about and never remove.  For
400  # instance it was reported that on HP-UX the gcc test will end up
401  # making a dummy file named `D' -- because `-MD' means `put the output
402  # in D'.
403  mkdir conftest.dir
404  # Copy depcomp to subdir because otherwise we won't find it if we're
405  # using a relative directory.
406  cp "$am_depcomp" conftest.dir
407  cd conftest.dir
408  # We will build objects and dependencies in a subdirectory because
409  # it helps to detect inapplicable dependency modes.  For instance
410  # both Tru64's cc and ICC support -MD to output dependencies as a
411  # side effect of compilation, but ICC will put the dependencies in
412  # the current directory while Tru64 will put them in the object
413  # directory.
414  mkdir sub
415
416  am_cv_$1_dependencies_compiler_type=none
417  if test "$am_compiler_list" = ""; then
418     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
419  fi
420  for depmode in $am_compiler_list; do
421    # Setup a source with many dependencies, because some compilers
422    # like to wrap large dependency lists on column 80 (with \), and
423    # we should not choose a depcomp mode which is confused by this.
424    #
425    # We need to recreate these files for each test, as the compiler may
426    # overwrite some of them when testing with obscure command lines.
427    # This happens at least with the AIX C compiler.
428    : > sub/conftest.c
429    for i in 1 2 3 4 5 6; do
430      echo '#include "conftst'$i'.h"' >> sub/conftest.c
431      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
432      # Solaris 8's {/usr,}/bin/sh.
433      touch sub/conftst$i.h
434    done
435    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
436
437    case $depmode in
438    nosideeffect)
439      # after this tag, mechanisms are not by side-effect, so they'll
440      # only be used when explicitly requested
441      if test "x$enable_dependency_tracking" = xyes; then
442	continue
443      else
444	break
445      fi
446      ;;
447    none) break ;;
448    esac
449    # We check with `-c' and `-o' for the sake of the "dashmstdout"
450    # mode.  It turns out that the SunPro C++ compiler does not properly
451    # handle `-M -o', and we need to detect this.
452    if depmode=$depmode \
453       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
454       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
455       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
456         >/dev/null 2>conftest.err &&
457       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
458       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
459       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
460       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
461      # icc doesn't choke on unknown options, it will just issue warnings
462      # or remarks (even with -Werror).  So we grep stderr for any message
463      # that says an option was ignored or not supported.
464      # When given -MP, icc 7.0 and 7.1 complain thusly:
465      #   icc: Command line warning: ignoring option '-M'; no argument required
466      # The diagnosis changed in icc 8.0:
467      #   icc: Command line remark: option '-MP' not supported
468      if (grep 'ignoring option' conftest.err ||
469          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
470        am_cv_$1_dependencies_compiler_type=$depmode
471        break
472      fi
473    fi
474  done
475
476  cd ..
477  rm -rf conftest.dir
478else
479  am_cv_$1_dependencies_compiler_type=none
480fi
481])
482AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
483AM_CONDITIONAL([am__fastdep$1], [
484  test "x$enable_dependency_tracking" != xno \
485  && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
486])
487
488
489# AM_SET_DEPDIR
490# -------------
491# Choose a directory name for dependency files.
492# This macro is AC_REQUIREd in _AM_DEPENDENCIES
493AC_DEFUN([AM_SET_DEPDIR],
494[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
495AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
496])
497
498
499# AM_DEP_TRACK
500# ------------
501AC_DEFUN([AM_DEP_TRACK],
502[AC_ARG_ENABLE(dependency-tracking,
503[  --disable-dependency-tracking  speeds up one-time build
504  --enable-dependency-tracking   do not reject slow dependency extractors])
505if test "x$enable_dependency_tracking" != xno; then
506  am_depcomp="$ac_aux_dir/depcomp"
507  AMDEPBACKSLASH='\'
508fi
509AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
510AC_SUBST([AMDEPBACKSLASH])dnl
511_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
512])
513
514# Generate code to set up dependency tracking.              -*- Autoconf -*-
515
516# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
517# Free Software Foundation, Inc.
518#
519# This file is free software; the Free Software Foundation
520# gives unlimited permission to copy and/or distribute it,
521# with or without modifications, as long as this notice is preserved.
522
523#serial 3
524
525# _AM_OUTPUT_DEPENDENCY_COMMANDS
526# ------------------------------
527AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
528[for mf in $CONFIG_FILES; do
529  # Strip MF so we end up with the name of the file.
530  mf=`echo "$mf" | sed -e 's/:.*$//'`
531  # Check whether this is an Automake generated Makefile or not.
532  # We used to match only the files named `Makefile.in', but
533  # some people rename them; so instead we look at the file content.
534  # Grep'ing the first line is not enough: some people post-process
535  # each Makefile.in and add a new line on top of each file to say so.
536  # Grep'ing the whole file is not good either: AIX grep has a line
537  # limit of 2048, but all sed's we know have understand at least 4000.
538  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
539    dirpart=`AS_DIRNAME("$mf")`
540  else
541    continue
542  fi
543  # Extract the definition of DEPDIR, am__include, and am__quote
544  # from the Makefile without running `make'.
545  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
546  test -z "$DEPDIR" && continue
547  am__include=`sed -n 's/^am__include = //p' < "$mf"`
548  test -z "am__include" && continue
549  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
550  # When using ansi2knr, U may be empty or an underscore; expand it
551  U=`sed -n 's/^U = //p' < "$mf"`
552  # Find all dependency output files, they are included files with
553  # $(DEPDIR) in their names.  We invoke sed twice because it is the
554  # simplest approach to changing $(DEPDIR) to its actual value in the
555  # expansion.
556  for file in `sed -n "
557    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
558       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
559    # Make sure the directory exists.
560    test -f "$dirpart/$file" && continue
561    fdir=`AS_DIRNAME(["$file"])`
562    AS_MKDIR_P([$dirpart/$fdir])
563    # echo "creating $dirpart/$file"
564    echo '# dummy' > "$dirpart/$file"
565  done
566done
567])# _AM_OUTPUT_DEPENDENCY_COMMANDS
568
569
570# AM_OUTPUT_DEPENDENCY_COMMANDS
571# -----------------------------
572# This macro should only be invoked once -- use via AC_REQUIRE.
573#
574# This code is only required when automatic dependency tracking
575# is enabled.  FIXME.  This creates each `.P' file that we will
576# need in order to bootstrap the dependency handling code.
577AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
578[AC_CONFIG_COMMANDS([depfiles],
579     [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
580     [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
581])
582
583# Do all the work for Automake.                             -*- Autoconf -*-
584
585# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
586# 2005, 2006, 2008 Free Software Foundation, Inc.
587#
588# This file is free software; the Free Software Foundation
589# gives unlimited permission to copy and/or distribute it,
590# with or without modifications, as long as this notice is preserved.
591
592# serial 13
593
594# This macro actually does too much.  Some checks are only needed if
595# your package does certain things.  But this isn't really a big deal.
596
597# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
598# AM_INIT_AUTOMAKE([OPTIONS])
599# -----------------------------------------------
600# The call with PACKAGE and VERSION arguments is the old style
601# call (pre autoconf-2.50), which is being phased out.  PACKAGE
602# and VERSION should now be passed to AC_INIT and removed from
603# the call to AM_INIT_AUTOMAKE.
604# We support both call styles for the transition.  After
605# the next Automake release, Autoconf can make the AC_INIT
606# arguments mandatory, and then we can depend on a new Autoconf
607# release and drop the old call support.
608AC_DEFUN([AM_INIT_AUTOMAKE],
609[AC_PREREQ([2.60])dnl
610dnl Autoconf wants to disallow AM_ names.  We explicitly allow
611dnl the ones we care about.
612m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
613AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
614AC_REQUIRE([AC_PROG_INSTALL])dnl
615if test "`cd $srcdir && pwd`" != "`pwd`"; then
616  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
617  # is not polluted with repeated "-I."
618  AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
619  # test to see if srcdir already configured
620  if test -f $srcdir/config.status; then
621    AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
622  fi
623fi
624
625# test whether we have cygpath
626if test -z "$CYGPATH_W"; then
627  if (cygpath --version) >/dev/null 2>/dev/null; then
628    CYGPATH_W='cygpath -w'
629  else
630    CYGPATH_W=echo
631  fi
632fi
633AC_SUBST([CYGPATH_W])
634
635# Define the identity of the package.
636dnl Distinguish between old-style and new-style calls.
637m4_ifval([$2],
638[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
639 AC_SUBST([PACKAGE], [$1])dnl
640 AC_SUBST([VERSION], [$2])],
641[_AM_SET_OPTIONS([$1])dnl
642dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
643m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
644  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
645 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
646 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
647
648_AM_IF_OPTION([no-define],,
649[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
650 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
651
652# Some tools Automake needs.
653AC_REQUIRE([AM_SANITY_CHECK])dnl
654AC_REQUIRE([AC_ARG_PROGRAM])dnl
655AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
656AM_MISSING_PROG(AUTOCONF, autoconf)
657AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
658AM_MISSING_PROG(AUTOHEADER, autoheader)
659AM_MISSING_PROG(MAKEINFO, makeinfo)
660AM_PROG_INSTALL_SH
661AM_PROG_INSTALL_STRIP
662AC_REQUIRE([AM_PROG_MKDIR_P])dnl
663# We need awk for the "check" target.  The system "awk" is bad on
664# some platforms.
665AC_REQUIRE([AC_PROG_AWK])dnl
666AC_REQUIRE([AC_PROG_MAKE_SET])dnl
667AC_REQUIRE([AM_SET_LEADING_DOT])dnl
668_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
669              [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
670	      		     [_AM_PROG_TAR([v7])])])
671_AM_IF_OPTION([no-dependencies],,
672[AC_PROVIDE_IFELSE([AC_PROG_CC],
673                  [_AM_DEPENDENCIES(CC)],
674                  [define([AC_PROG_CC],
675                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
676AC_PROVIDE_IFELSE([AC_PROG_CXX],
677                  [_AM_DEPENDENCIES(CXX)],
678                  [define([AC_PROG_CXX],
679                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
680AC_PROVIDE_IFELSE([AC_PROG_OBJC],
681                  [_AM_DEPENDENCIES(OBJC)],
682                  [define([AC_PROG_OBJC],
683                          defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
684])
685])
686
687
688# When config.status generates a header, we must update the stamp-h file.
689# This file resides in the same directory as the config header
690# that is generated.  The stamp files are numbered to have different names.
691
692# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
693# loop where config.status creates the headers, so we can generate
694# our stamp files there.
695AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
696[# Compute $1's index in $config_headers.
697_am_arg=$1
698_am_stamp_count=1
699for _am_header in $config_headers :; do
700  case $_am_header in
701    $_am_arg | $_am_arg:* )
702      break ;;
703    * )
704      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
705  esac
706done
707echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
708
709# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
710#
711# This file is free software; the Free Software Foundation
712# gives unlimited permission to copy and/or distribute it,
713# with or without modifications, as long as this notice is preserved.
714
715# AM_PROG_INSTALL_SH
716# ------------------
717# Define $install_sh.
718AC_DEFUN([AM_PROG_INSTALL_SH],
719[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
720install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
721AC_SUBST(install_sh)])
722
723# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
724#
725# This file is free software; the Free Software Foundation
726# gives unlimited permission to copy and/or distribute it,
727# with or without modifications, as long as this notice is preserved.
728
729# serial 2
730
731# Check whether the underlying file-system supports filenames
732# with a leading dot.  For instance MS-DOS doesn't.
733AC_DEFUN([AM_SET_LEADING_DOT],
734[rm -rf .tst 2>/dev/null
735mkdir .tst 2>/dev/null
736if test -d .tst; then
737  am__leading_dot=.
738else
739  am__leading_dot=_
740fi
741rmdir .tst 2>/dev/null
742AC_SUBST([am__leading_dot])])
743
744# Add --enable-maintainer-mode option to configure.         -*- Autoconf -*-
745# From Jim Meyering
746
747# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005
748# Free Software Foundation, Inc.
749#
750# This file is free software; the Free Software Foundation
751# gives unlimited permission to copy and/or distribute it,
752# with or without modifications, as long as this notice is preserved.
753
754# serial 4
755
756AC_DEFUN([AM_MAINTAINER_MODE],
757[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
758  dnl maintainer-mode is disabled by default
759  AC_ARG_ENABLE(maintainer-mode,
760[  --enable-maintainer-mode  enable make rules and dependencies not useful
761			  (and sometimes confusing) to the casual installer],
762      USE_MAINTAINER_MODE=$enableval,
763      USE_MAINTAINER_MODE=no)
764  AC_MSG_RESULT([$USE_MAINTAINER_MODE])
765  AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
766  MAINT=$MAINTAINER_MODE_TRUE
767  AC_SUBST(MAINT)dnl
768]
769)
770
771AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
772
773# Check to see how 'make' treats includes.	            -*- Autoconf -*-
774
775# Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
776#
777# This file is free software; the Free Software Foundation
778# gives unlimited permission to copy and/or distribute it,
779# with or without modifications, as long as this notice is preserved.
780
781# serial 3
782
783# AM_MAKE_INCLUDE()
784# -----------------
785# Check to see how make treats includes.
786AC_DEFUN([AM_MAKE_INCLUDE],
787[am_make=${MAKE-make}
788cat > confinc << 'END'
789am__doit:
790	@echo done
791.PHONY: am__doit
792END
793# If we don't find an include directive, just comment out the code.
794AC_MSG_CHECKING([for style of include used by $am_make])
795am__include="#"
796am__quote=
797_am_result=none
798# First try GNU make style include.
799echo "include confinc" > confmf
800# We grep out `Entering directory' and `Leaving directory'
801# messages which can occur if `w' ends up in MAKEFLAGS.
802# In particular we don't look at `^make:' because GNU make might
803# be invoked under some other name (usually "gmake"), in which
804# case it prints its new name instead of `make'.
805if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
806   am__include=include
807   am__quote=
808   _am_result=GNU
809fi
810# Now try BSD make style include.
811if test "$am__include" = "#"; then
812   echo '.include "confinc"' > confmf
813   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
814      am__include=.include
815      am__quote="\""
816      _am_result=BSD
817   fi
818fi
819AC_SUBST([am__include])
820AC_SUBST([am__quote])
821AC_MSG_RESULT([$_am_result])
822rm -f confinc confmf
823])
824
825# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
826
827# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
828# Free Software Foundation, Inc.
829#
830# This file is free software; the Free Software Foundation
831# gives unlimited permission to copy and/or distribute it,
832# with or without modifications, as long as this notice is preserved.
833
834# serial 5
835
836# AM_MISSING_PROG(NAME, PROGRAM)
837# ------------------------------
838AC_DEFUN([AM_MISSING_PROG],
839[AC_REQUIRE([AM_MISSING_HAS_RUN])
840$1=${$1-"${am_missing_run}$2"}
841AC_SUBST($1)])
842
843
844# AM_MISSING_HAS_RUN
845# ------------------
846# Define MISSING if not defined so far and test if it supports --run.
847# If it does, set am_missing_run to use it, otherwise, to nothing.
848AC_DEFUN([AM_MISSING_HAS_RUN],
849[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
850AC_REQUIRE_AUX_FILE([missing])dnl
851test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
852# Use eval to expand $SHELL
853if eval "$MISSING --run true"; then
854  am_missing_run="$MISSING --run "
855else
856  am_missing_run=
857  AC_MSG_WARN([`missing' script is too old or missing])
858fi
859])
860
861# Copyright (C) 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
862#
863# This file is free software; the Free Software Foundation
864# gives unlimited permission to copy and/or distribute it,
865# with or without modifications, as long as this notice is preserved.
866
867# AM_PROG_MKDIR_P
868# ---------------
869# Check for `mkdir -p'.
870AC_DEFUN([AM_PROG_MKDIR_P],
871[AC_PREREQ([2.60])dnl
872AC_REQUIRE([AC_PROG_MKDIR_P])dnl
873dnl Automake 1.8 to 1.9.6 used to define mkdir_p.  We now use MKDIR_P,
874dnl while keeping a definition of mkdir_p for backward compatibility.
875dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
876dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
877dnl Makefile.ins that do not define MKDIR_P, so we do our own
878dnl adjustment using top_builddir (which is defined more often than
879dnl MKDIR_P).
880AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
881case $mkdir_p in
882  [[\\/$]]* | ?:[[\\/]]*) ;;
883  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
884esac
885])
886
887# Helper functions for option handling.                     -*- Autoconf -*-
888
889# Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
890#
891# This file is free software; the Free Software Foundation
892# gives unlimited permission to copy and/or distribute it,
893# with or without modifications, as long as this notice is preserved.
894
895# serial 3
896
897# _AM_MANGLE_OPTION(NAME)
898# -----------------------
899AC_DEFUN([_AM_MANGLE_OPTION],
900[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
901
902# _AM_SET_OPTION(NAME)
903# ------------------------------
904# Set option NAME.  Presently that only means defining a flag for this option.
905AC_DEFUN([_AM_SET_OPTION],
906[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
907
908# _AM_SET_OPTIONS(OPTIONS)
909# ----------------------------------
910# OPTIONS is a space-separated list of Automake options.
911AC_DEFUN([_AM_SET_OPTIONS],
912[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
913
914# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
915# -------------------------------------------
916# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
917AC_DEFUN([_AM_IF_OPTION],
918[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
919
920# Check to make sure that the build environment is sane.    -*- Autoconf -*-
921
922# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
923# Free Software Foundation, Inc.
924#
925# This file is free software; the Free Software Foundation
926# gives unlimited permission to copy and/or distribute it,
927# with or without modifications, as long as this notice is preserved.
928
929# serial 4
930
931# AM_SANITY_CHECK
932# ---------------
933AC_DEFUN([AM_SANITY_CHECK],
934[AC_MSG_CHECKING([whether build environment is sane])
935# Just in case
936sleep 1
937echo timestamp > conftest.file
938# Do `set' in a subshell so we don't clobber the current shell's
939# arguments.  Must try -L first in case configure is actually a
940# symlink; some systems play weird games with the mod time of symlinks
941# (eg FreeBSD returns the mod time of the symlink's containing
942# directory).
943if (
944   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
945   if test "$[*]" = "X"; then
946      # -L didn't work.
947      set X `ls -t $srcdir/configure conftest.file`
948   fi
949   rm -f conftest.file
950   if test "$[*]" != "X $srcdir/configure conftest.file" \
951      && test "$[*]" != "X conftest.file $srcdir/configure"; then
952
953      # If neither matched, then we have a broken ls.  This can happen
954      # if, for instance, CONFIG_SHELL is bash and it inherits a
955      # broken ls alias from the environment.  This has actually
956      # happened.  Such a system could not be considered "sane".
957      AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
958alias in your environment])
959   fi
960
961   test "$[2]" = conftest.file
962   )
963then
964   # Ok.
965   :
966else
967   AC_MSG_ERROR([newly created file is older than distributed files!
968Check your system clock])
969fi
970AC_MSG_RESULT(yes)])
971
972# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
973#
974# This file is free software; the Free Software Foundation
975# gives unlimited permission to copy and/or distribute it,
976# with or without modifications, as long as this notice is preserved.
977
978# AM_PROG_INSTALL_STRIP
979# ---------------------
980# One issue with vendor `install' (even GNU) is that you can't
981# specify the program used to strip binaries.  This is especially
982# annoying in cross-compiling environments, where the build's strip
983# is unlikely to handle the host's binaries.
984# Fortunately install-sh will honor a STRIPPROG variable, so we
985# always use install-sh in `make install-strip', and initialize
986# STRIPPROG with the value of the STRIP variable (set by the user).
987AC_DEFUN([AM_PROG_INSTALL_STRIP],
988[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
989# Installed binaries are usually stripped using `strip' when the user
990# run `make install-strip'.  However `strip' might not be the right
991# tool to use in cross-compilation environments, therefore Automake
992# will honor the `STRIP' environment variable to overrule this program.
993dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
994if test "$cross_compiling" != no; then
995  AC_CHECK_TOOL([STRIP], [strip], :)
996fi
997INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
998AC_SUBST([INSTALL_STRIP_PROGRAM])])
999
1000# Copyright (C) 2006  Free Software Foundation, Inc.
1001#
1002# This file is free software; the Free Software Foundation
1003# gives unlimited permission to copy and/or distribute it,
1004# with or without modifications, as long as this notice is preserved.
1005
1006# _AM_SUBST_NOTMAKE(VARIABLE)
1007# ---------------------------
1008# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
1009# This macro is traced by Automake.
1010AC_DEFUN([_AM_SUBST_NOTMAKE])
1011
1012# Check how to create a tarball.                            -*- Autoconf -*-
1013
1014# Copyright (C) 2004, 2005  Free Software Foundation, Inc.
1015#
1016# This file is free software; the Free Software Foundation
1017# gives unlimited permission to copy and/or distribute it,
1018# with or without modifications, as long as this notice is preserved.
1019
1020# serial 2
1021
1022# _AM_PROG_TAR(FORMAT)
1023# --------------------
1024# Check how to create a tarball in format FORMAT.
1025# FORMAT should be one of `v7', `ustar', or `pax'.
1026#
1027# Substitute a variable $(am__tar) that is a command
1028# writing to stdout a FORMAT-tarball containing the directory
1029# $tardir.
1030#     tardir=directory && $(am__tar) > result.tar
1031#
1032# Substitute a variable $(am__untar) that extract such
1033# a tarball read from stdin.
1034#     $(am__untar) < result.tar
1035AC_DEFUN([_AM_PROG_TAR],
1036[# Always define AMTAR for backward compatibility.
1037AM_MISSING_PROG([AMTAR], [tar])
1038m4_if([$1], [v7],
1039     [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
1040     [m4_case([$1], [ustar],, [pax],,
1041              [m4_fatal([Unknown tar format])])
1042AC_MSG_CHECKING([how to create a $1 tar archive])
1043# Loop over all known methods to create a tar archive until one works.
1044_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
1045_am_tools=${am_cv_prog_tar_$1-$_am_tools}
1046# Do not fold the above two line into one, because Tru64 sh and
1047# Solaris sh will not grok spaces in the rhs of `-'.
1048for _am_tool in $_am_tools
1049do
1050  case $_am_tool in
1051  gnutar)
1052    for _am_tar in tar gnutar gtar;
1053    do
1054      AM_RUN_LOG([$_am_tar --version]) && break
1055    done
1056    am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
1057    am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
1058    am__untar="$_am_tar -xf -"
1059    ;;
1060  plaintar)
1061    # Must skip GNU tar: if it does not support --format= it doesn't create
1062    # ustar tarball either.
1063    (tar --version) >/dev/null 2>&1 && continue
1064    am__tar='tar chf - "$$tardir"'
1065    am__tar_='tar chf - "$tardir"'
1066    am__untar='tar xf -'
1067    ;;
1068  pax)
1069    am__tar='pax -L -x $1 -w "$$tardir"'
1070    am__tar_='pax -L -x $1 -w "$tardir"'
1071    am__untar='pax -r'
1072    ;;
1073  cpio)
1074    am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
1075    am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
1076    am__untar='cpio -i -H $1 -d'
1077    ;;
1078  none)
1079    am__tar=false
1080    am__tar_=false
1081    am__untar=false
1082    ;;
1083  esac
1084
1085  # If the value was cached, stop now.  We just wanted to have am__tar
1086  # and am__untar set.
1087  test -n "${am_cv_prog_tar_$1}" && break
1088
1089  # tar/untar a dummy directory, and stop if the command works
1090  rm -rf conftest.dir
1091  mkdir conftest.dir
1092  echo GrepMe > conftest.dir/file
1093  AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1094  rm -rf conftest.dir
1095  if test -s conftest.tar; then
1096    AM_RUN_LOG([$am__untar <conftest.tar])
1097    grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1098  fi
1099done
1100rm -rf conftest.dir
1101
1102AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1103AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1104AC_SUBST([am__tar])
1105AC_SUBST([am__untar])
1106]) # _AM_PROG_TAR
1107
1108m4_include([m4/gettext.m4])
1109m4_include([m4/iconv.m4])
1110m4_include([m4/lib-ld.m4])
1111m4_include([m4/lib-link.m4])
1112m4_include([m4/lib-prefix.m4])
1113m4_include([m4/nls.m4])
1114m4_include([m4/po.m4])
1115m4_include([m4/progtest.m4])
1116