1 # generated automatically by aclocal 1.14.1 -*- Autoconf -*-
3 # Copyright (C) 1996-2013 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.
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
14 m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
15 m4_ifndef([AC_AUTOCONF_VERSION],
16 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
17 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
18 [m4_warning([this file was generated for autoconf 2.69.
19 You have another version of autoconf. It may work, but is not guaranteed to.
20 If you have problems, you may need to regenerate the build system entirely.
21 To do so, use the procedure documented by the package, typically 'autoreconf'.])])
23 # intlmacosx.m4 serial 5 (gettext-0.18.2)
24 dnl Copyright (C) 2004-2014 Free Software Foundation, Inc.
25 dnl This file is free software; the Free Software Foundation
26 dnl gives unlimited permission to copy and/or distribute it,
27 dnl with or without modifications, as long as this notice is preserved.
29 dnl This file can can be used in projects which are not available under
30 dnl the GNU General Public License or the GNU Library General Public
31 dnl License but which still want to provide support for the GNU gettext
33 dnl Please note that the actual code of the GNU gettext library is covered
34 dnl by the GNU Library General Public License, and the rest of the GNU
35 dnl gettext package package is covered by the GNU General Public License.
36 dnl They are *not* in the public domain.
38 dnl Checks for special options needed on Mac OS X.
39 dnl Defines INTL_MACOSX_LIBS.
40 AC_DEFUN([gt_INTL_MACOSX],
42 dnl Check for API introduced in Mac OS X 10.2.
43 AC_CACHE_CHECK([for CFPreferencesCopyAppValue],
44 [gt_cv_func_CFPreferencesCopyAppValue],
46 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
49 [[#include <CoreFoundation/CFPreferences.h>]],
50 [[CFPreferencesCopyAppValue(NULL, NULL)]])],
51 [gt_cv_func_CFPreferencesCopyAppValue=yes],
52 [gt_cv_func_CFPreferencesCopyAppValue=no])
53 LIBS="$gt_save_LIBS"])
54 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
55 AC_DEFINE([HAVE_CFPREFERENCESCOPYAPPVALUE], [1],
56 [Define to 1 if you have the Mac OS X function CFPreferencesCopyAppValue in the CoreFoundation framework.])
58 dnl Check for API introduced in Mac OS X 10.3.
59 AC_CACHE_CHECK([for CFLocaleCopyCurrent], [gt_cv_func_CFLocaleCopyCurrent],
61 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
64 [[#include <CoreFoundation/CFLocale.h>]],
65 [[CFLocaleCopyCurrent();]])],
66 [gt_cv_func_CFLocaleCopyCurrent=yes],
67 [gt_cv_func_CFLocaleCopyCurrent=no])
68 LIBS="$gt_save_LIBS"])
69 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
70 AC_DEFINE([HAVE_CFLOCALECOPYCURRENT], [1],
71 [Define to 1 if you have the Mac OS X function CFLocaleCopyCurrent in the CoreFoundation framework.])
74 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
75 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
77 AC_SUBST([INTL_MACOSX_LIBS])
80 # Copyright (C) 2002-2013 Free Software Foundation, Inc.
82 # This file is free software; the Free Software Foundation
83 # gives unlimited permission to copy and/or distribute it,
84 # with or without modifications, as long as this notice is preserved.
86 # AM_AUTOMAKE_VERSION(VERSION)
87 # ----------------------------
88 # Automake X.Y traces this macro to ensure aclocal.m4 has been
89 # generated from the m4 files accompanying Automake X.Y.
90 # (This private macro should not be called outside this file.)
91 AC_DEFUN([AM_AUTOMAKE_VERSION],
92 [am__api_version='1.14'
93 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
94 dnl require some minimum version. Point them to the right macro.
95 m4_if([$1], [1.14.1], [],
96 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
99 # _AM_AUTOCONF_VERSION(VERSION)
100 # -----------------------------
101 # aclocal traces this macro to find the Autoconf version.
102 # This is a private macro too. Using m4_define simplifies
103 # the logic in aclocal, which can simply ignore this definition.
104 m4_define([_AM_AUTOCONF_VERSION], [])
106 # AM_SET_CURRENT_AUTOMAKE_VERSION
107 # -------------------------------
108 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
109 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
110 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
111 [AM_AUTOMAKE_VERSION([1.14.1])dnl
112 m4_ifndef([AC_AUTOCONF_VERSION],
113 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
114 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
116 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
118 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
120 # This file is free software; the Free Software Foundation
121 # gives unlimited permission to copy and/or distribute it,
122 # with or without modifications, as long as this notice is preserved.
124 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
125 # $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to
126 # '$srcdir', '$srcdir/..', or '$srcdir/../..'.
128 # Of course, Automake must honor this variable whenever it calls a
129 # tool from the auxiliary directory. The problem is that $srcdir (and
130 # therefore $ac_aux_dir as well) can be either absolute or relative,
131 # depending on how configure is run. This is pretty annoying, since
132 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
133 # source directory, any form will work fine, but in subdirectories a
134 # relative path needs to be adjusted first.
136 # $ac_aux_dir/missing
137 # fails when called from a subdirectory if $ac_aux_dir is relative
138 # $top_srcdir/$ac_aux_dir/missing
139 # fails if $ac_aux_dir is absolute,
140 # fails when called from a subdirectory in a VPATH build with
141 # a relative $ac_aux_dir
143 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
144 # are both prefixed by $srcdir. In an in-source build this is usually
145 # harmless because $srcdir is '.', but things will broke when you
146 # start a VPATH build or use an absolute $srcdir.
148 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
149 # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
150 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
151 # and then we would define $MISSING as
152 # MISSING="\${SHELL} $am_aux_dir/missing"
153 # This will work as long as MISSING is not called from configure, because
154 # unfortunately $(top_srcdir) has no meaning in configure.
155 # However there are other variables, like CC, which are often used in
156 # configure, and could therefore not use this "fixed" $ac_aux_dir.
158 # Another solution, used here, is to always expand $ac_aux_dir to an
159 # absolute PATH. The drawback is that using absolute paths prevent a
160 # configured tree to be moved without reconfiguration.
162 AC_DEFUN([AM_AUX_DIR_EXPAND],
163 [AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
164 # Expand $ac_aux_dir to an absolute path.
165 am_aux_dir=`cd "$ac_aux_dir" && pwd`
168 # AM_CONDITIONAL -*- Autoconf -*-
170 # Copyright (C) 1997-2013 Free Software Foundation, Inc.
172 # This file is free software; the Free Software Foundation
173 # gives unlimited permission to copy and/or distribute it,
174 # with or without modifications, as long as this notice is preserved.
176 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
177 # -------------------------------------
178 # Define a conditional.
179 AC_DEFUN([AM_CONDITIONAL],
180 [AC_PREREQ([2.52])dnl
181 m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
182 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
183 AC_SUBST([$1_TRUE])dnl
184 AC_SUBST([$1_FALSE])dnl
185 _AM_SUBST_NOTMAKE([$1_TRUE])dnl
186 _AM_SUBST_NOTMAKE([$1_FALSE])dnl
187 m4_define([_AM_COND_VALUE_$1], [$2])dnl
195 AC_CONFIG_COMMANDS_PRE(
196 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
197 AC_MSG_ERROR([[conditional "$1" was never defined.
198 Usually this means the macro was only invoked conditionally.]])
201 # Copyright (C) 1999-2013 Free Software Foundation, Inc.
203 # This file is free software; the Free Software Foundation
204 # gives unlimited permission to copy and/or distribute it,
205 # with or without modifications, as long as this notice is preserved.
208 # There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
209 # written in clear, in which case automake, when reading aclocal.m4,
210 # will think it sees a *use*, and therefore will trigger all it's
211 # C support machinery. Also note that it means that autoscan, seeing
212 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
215 # _AM_DEPENDENCIES(NAME)
216 # ----------------------
217 # See how the compiler implements dependency checking.
218 # NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
219 # We try a few techniques and use that to set a single cache variable.
221 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
222 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
223 # dependency, and given that the user is not expected to run this macro,
224 # just rely on AC_PROG_CC.
225 AC_DEFUN([_AM_DEPENDENCIES],
226 [AC_REQUIRE([AM_SET_DEPDIR])dnl
227 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
228 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
229 AC_REQUIRE([AM_DEP_TRACK])dnl
231 m4_if([$1], [CC], [depcc="$CC" am_compiler_list=],
232 [$1], [CXX], [depcc="$CXX" am_compiler_list=],
233 [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
234 [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
235 [$1], [UPC], [depcc="$UPC" am_compiler_list=],
236 [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
237 [depcc="$$1" am_compiler_list=])
239 AC_CACHE_CHECK([dependency style of $depcc],
240 [am_cv_$1_dependencies_compiler_type],
241 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
242 # We make a subdir and do the tests there. Otherwise we can end up
243 # making bogus files that we don't know about and never remove. For
244 # instance it was reported that on HP-UX the gcc test will end up
245 # making a dummy file named 'D' -- because '-MD' means "put the output
249 # Copy depcomp to subdir because otherwise we won't find it if we're
250 # using a relative directory.
251 cp "$am_depcomp" conftest.dir
253 # We will build objects and dependencies in a subdirectory because
254 # it helps to detect inapplicable dependency modes. For instance
255 # both Tru64's cc and ICC support -MD to output dependencies as a
256 # side effect of compilation, but ICC will put the dependencies in
257 # the current directory while Tru64 will put them in the object
261 am_cv_$1_dependencies_compiler_type=none
262 if test "$am_compiler_list" = ""; then
263 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
267 [case " $depcc " in #(
268 *\ -arch\ *\ -arch\ *) am__universal=true ;;
271 [case " $depcc " in #(
272 *\ -arch\ *\ -arch\ *) am__universal=true ;;
275 for depmode in $am_compiler_list; do
276 # Setup a source with many dependencies, because some compilers
277 # like to wrap large dependency lists on column 80 (with \), and
278 # we should not choose a depcomp mode which is confused by this.
280 # We need to recreate these files for each test, as the compiler may
281 # overwrite some of them when testing with obscure command lines.
282 # This happens at least with the AIX C compiler.
284 for i in 1 2 3 4 5 6; do
285 echo '#include "conftst'$i'.h"' >> sub/conftest.c
286 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
287 # Solaris 10 /bin/sh.
288 echo '/* dummy */' > sub/conftst$i.h
290 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
292 # We check with '-c' and '-o' for the sake of the "dashmstdout"
293 # mode. It turns out that the SunPro C++ compiler does not properly
294 # handle '-M -o', and we need to detect this. Also, some Intel
295 # versions had trouble with output in subdirs.
296 am__obj=sub/conftest.${OBJEXT-o}
297 am__minus_obj="-o $am__obj"
300 # This depmode causes a compiler race in universal mode.
301 test "$am__universal" = false || continue
304 # After this tag, mechanisms are not by side-effect, so they'll
305 # only be used when explicitly requested.
306 if test "x$enable_dependency_tracking" = xyes; then
312 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
313 # This compiler won't grok '-c -o', but also, the minuso test has
314 # not run yet. These depmodes are late enough in the game, and
315 # so weak that their functioning should not be impacted.
316 am__obj=conftest.${OBJEXT-o}
321 if depmode=$depmode \
322 source=sub/conftest.c object=$am__obj \
323 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
324 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
325 >/dev/null 2>conftest.err &&
326 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
327 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
328 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
329 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
330 # icc doesn't choke on unknown options, it will just issue warnings
331 # or remarks (even with -Werror). So we grep stderr for any message
332 # that says an option was ignored or not supported.
333 # When given -MP, icc 7.0 and 7.1 complain thusly:
334 # icc: Command line warning: ignoring option '-M'; no argument required
335 # The diagnosis changed in icc 8.0:
336 # icc: Command line remark: option '-MP' not supported
337 if (grep 'ignoring option' conftest.err ||
338 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
339 am_cv_$1_dependencies_compiler_type=$depmode
348 am_cv_$1_dependencies_compiler_type=none
351 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
352 AM_CONDITIONAL([am__fastdep$1], [
353 test "x$enable_dependency_tracking" != xno \
354 && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
360 # Choose a directory name for dependency files.
361 # This macro is AC_REQUIREd in _AM_DEPENDENCIES.
362 AC_DEFUN([AM_SET_DEPDIR],
363 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
364 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
370 AC_DEFUN([AM_DEP_TRACK],
371 [AC_ARG_ENABLE([dependency-tracking], [dnl
373 [--enable-dependency-tracking],
374 [do not reject slow dependency extractors])
376 [--disable-dependency-tracking],
377 [speeds up one-time build])])
378 if test "x$enable_dependency_tracking" != xno; then
379 am_depcomp="$ac_aux_dir/depcomp"
383 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
384 AC_SUBST([AMDEPBACKSLASH])dnl
385 _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
386 AC_SUBST([am__nodep])dnl
387 _AM_SUBST_NOTMAKE([am__nodep])dnl
390 # Generate code to set up dependency tracking. -*- Autoconf -*-
392 # Copyright (C) 1999-2013 Free Software Foundation, Inc.
394 # This file is free software; the Free Software Foundation
395 # gives unlimited permission to copy and/or distribute it,
396 # with or without modifications, as long as this notice is preserved.
399 # _AM_OUTPUT_DEPENDENCY_COMMANDS
400 # ------------------------------
401 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
403 # Older Autoconf quotes --file arguments for eval, but not when files
404 # are listed without --file. Let's play safe and only enable the eval
405 # if we detect the quoting.
406 case $CONFIG_FILES in
407 *\'*) eval set x "$CONFIG_FILES" ;;
408 *) set x $CONFIG_FILES ;;
413 # Strip MF so we end up with the name of the file.
414 mf=`echo "$mf" | sed -e 's/:.*$//'`
415 # Check whether this is an Automake generated Makefile or not.
416 # We used to match only the files named 'Makefile.in', but
417 # some people rename them; so instead we look at the file content.
418 # Grep'ing the first line is not enough: some people post-process
419 # each Makefile.in and add a new line on top of each file to say so.
420 # Grep'ing the whole file is not good either: AIX grep has a line
421 # limit of 2048, but all sed's we know have understand at least 4000.
422 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
423 dirpart=`AS_DIRNAME("$mf")`
427 # Extract the definition of DEPDIR, am__include, and am__quote
428 # from the Makefile without running 'make'.
429 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
430 test -z "$DEPDIR" && continue
431 am__include=`sed -n 's/^am__include = //p' < "$mf"`
432 test -z "$am__include" && continue
433 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
434 # Find all dependency output files, they are included files with
435 # $(DEPDIR) in their names. We invoke sed twice because it is the
436 # simplest approach to changing $(DEPDIR) to its actual value in the
438 for file in `sed -n "
439 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
440 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
441 # Make sure the directory exists.
442 test -f "$dirpart/$file" && continue
443 fdir=`AS_DIRNAME(["$file"])`
444 AS_MKDIR_P([$dirpart/$fdir])
445 # echo "creating $dirpart/$file"
446 echo '# dummy' > "$dirpart/$file"
450 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
453 # AM_OUTPUT_DEPENDENCY_COMMANDS
454 # -----------------------------
455 # This macro should only be invoked once -- use via AC_REQUIRE.
457 # This code is only required when automatic dependency tracking
458 # is enabled. FIXME. This creates each '.P' file that we will
459 # need in order to bootstrap the dependency handling code.
460 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
461 [AC_CONFIG_COMMANDS([depfiles],
462 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
463 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
466 # Do all the work for Automake. -*- Autoconf -*-
468 # Copyright (C) 1996-2013 Free Software Foundation, Inc.
470 # This file is free software; the Free Software Foundation
471 # gives unlimited permission to copy and/or distribute it,
472 # with or without modifications, as long as this notice is preserved.
474 # This macro actually does too much. Some checks are only needed if
475 # your package does certain things. But this isn't really a big deal.
477 dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
478 m4_define([AC_PROG_CC],
479 m4_defn([AC_PROG_CC])
483 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
484 # AM_INIT_AUTOMAKE([OPTIONS])
485 # -----------------------------------------------
486 # The call with PACKAGE and VERSION arguments is the old style
487 # call (pre autoconf-2.50), which is being phased out. PACKAGE
488 # and VERSION should now be passed to AC_INIT and removed from
489 # the call to AM_INIT_AUTOMAKE.
490 # We support both call styles for the transition. After
491 # the next Automake release, Autoconf can make the AC_INIT
492 # arguments mandatory, and then we can depend on a new Autoconf
493 # release and drop the old call support.
494 AC_DEFUN([AM_INIT_AUTOMAKE],
495 [AC_PREREQ([2.65])dnl
496 dnl Autoconf wants to disallow AM_ names. We explicitly allow
497 dnl the ones we care about.
498 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
499 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
500 AC_REQUIRE([AC_PROG_INSTALL])dnl
501 if test "`cd $srcdir && pwd`" != "`pwd`"; then
502 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
503 # is not polluted with repeated "-I."
504 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
505 # test to see if srcdir already configured
506 if test -f $srcdir/config.status; then
507 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
511 # test whether we have cygpath
512 if test -z "$CYGPATH_W"; then
513 if (cygpath --version) >/dev/null 2>/dev/null; then
514 CYGPATH_W='cygpath -w'
519 AC_SUBST([CYGPATH_W])
521 # Define the identity of the package.
522 dnl Distinguish between old-style and new-style calls.
524 [AC_DIAGNOSE([obsolete],
525 [$0: two- and three-arguments forms are deprecated.])
526 m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
527 AC_SUBST([PACKAGE], [$1])dnl
528 AC_SUBST([VERSION], [$2])],
529 [_AM_SET_OPTIONS([$1])dnl
530 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
532 m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
534 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
535 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
536 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
538 _AM_IF_OPTION([no-define],,
539 [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
540 AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
542 # Some tools Automake needs.
543 AC_REQUIRE([AM_SANITY_CHECK])dnl
544 AC_REQUIRE([AC_ARG_PROGRAM])dnl
545 AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
546 AM_MISSING_PROG([AUTOCONF], [autoconf])
547 AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
548 AM_MISSING_PROG([AUTOHEADER], [autoheader])
549 AM_MISSING_PROG([MAKEINFO], [makeinfo])
550 AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
551 AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
552 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
553 # For better backward compatibility. To be removed once Automake 1.9.x
554 # dies out for good. For more background, see:
555 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
556 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
557 AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
558 # We need awk for the "check" target. The system "awk" is bad on
560 AC_REQUIRE([AC_PROG_AWK])dnl
561 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
562 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
563 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
564 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
565 [_AM_PROG_TAR([v7])])])
566 _AM_IF_OPTION([no-dependencies],,
567 [AC_PROVIDE_IFELSE([AC_PROG_CC],
568 [_AM_DEPENDENCIES([CC])],
569 [m4_define([AC_PROG_CC],
570 m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
571 AC_PROVIDE_IFELSE([AC_PROG_CXX],
572 [_AM_DEPENDENCIES([CXX])],
573 [m4_define([AC_PROG_CXX],
574 m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
575 AC_PROVIDE_IFELSE([AC_PROG_OBJC],
576 [_AM_DEPENDENCIES([OBJC])],
577 [m4_define([AC_PROG_OBJC],
578 m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
579 AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
580 [_AM_DEPENDENCIES([OBJCXX])],
581 [m4_define([AC_PROG_OBJCXX],
582 m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
584 AC_REQUIRE([AM_SILENT_RULES])dnl
585 dnl The testsuite driver may need to know about EXEEXT, so add the
586 dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This
587 dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
588 AC_CONFIG_COMMANDS_PRE(dnl
589 [m4_provide_if([_AM_COMPILER_EXEEXT],
590 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
592 # POSIX will say in a future version that running "rm -f" with no argument
593 # is OK; and we want to be able to make that assumption in our Makefile
594 # recipes. So use an aggressive probe to check that the usage we want is
595 # actually supported "in the wild" to an acceptable degree.
596 # See automake bug#10828.
597 # To make any issue more visible, cause the running configure to be aborted
598 # by default if the 'rm' program in use doesn't match our expectations; the
599 # user can still override this though.
600 if rm -f && rm -fr && rm -rf; then : OK; else
604 Your 'rm' program seems unable to run without file operands specified
605 on the command line, even when the '-f' option is present. This is contrary
606 to the behaviour of most rm programs out there, and not conforming with
607 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
609 Please tell bug-automake@gnu.org about your system, including the value
610 of your $PATH and any error possibly output before this message. This
611 can help us improve future automake versions.
614 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
615 echo 'Configuration will proceed anyway, since you have set the' >&2
616 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
620 Aborting the configuration process, to ensure you take notice of the issue.
622 You can download and install GNU coreutils to get an 'rm' implementation
623 that behaves properly: <http://www.gnu.org/software/coreutils/>.
625 If you want to complete the configuration process using your problematic
626 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
627 to "yes", and re-run configure.
630 AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
635 dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
636 dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
637 dnl mangled by Autoconf and run in a shell conditional statement.
638 m4_define([_AC_COMPILER_EXEEXT],
639 m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
641 # When config.status generates a header, we must update the stamp-h file.
642 # This file resides in the same directory as the config header
643 # that is generated. The stamp files are numbered to have different names.
645 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
646 # loop where config.status creates the headers, so we can generate
647 # our stamp files there.
648 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
649 [# Compute $1's index in $config_headers.
652 for _am_header in $config_headers :; do
654 $_am_arg | $_am_arg:* )
657 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
660 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
662 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
664 # This file is free software; the Free Software Foundation
665 # gives unlimited permission to copy and/or distribute it,
666 # with or without modifications, as long as this notice is preserved.
670 # Define $install_sh.
671 AC_DEFUN([AM_PROG_INSTALL_SH],
672 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
673 if test x"${install_sh}" != xset; then
676 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
678 install_sh="\${SHELL} $am_aux_dir/install-sh"
681 AC_SUBST([install_sh])])
683 # Copyright (C) 2003-2013 Free Software Foundation, Inc.
685 # This file is free software; the Free Software Foundation
686 # gives unlimited permission to copy and/or distribute it,
687 # with or without modifications, as long as this notice is preserved.
689 # Check whether the underlying file-system supports filenames
690 # with a leading dot. For instance MS-DOS doesn't.
691 AC_DEFUN([AM_SET_LEADING_DOT],
692 [rm -rf .tst 2>/dev/null
693 mkdir .tst 2>/dev/null
694 if test -d .tst; then
699 rmdir .tst 2>/dev/null
700 AC_SUBST([am__leading_dot])])
702 # Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
705 # Copyright (C) 1996-2013 Free Software Foundation, Inc.
707 # This file is free software; the Free Software Foundation
708 # gives unlimited permission to copy and/or distribute it,
709 # with or without modifications, as long as this notice is preserved.
711 # AM_MAINTAINER_MODE([DEFAULT-MODE])
712 # ----------------------------------
713 # Control maintainer-specific portions of Makefiles.
714 # Default is to disable them, unless 'enable' is passed literally.
715 # For symmetry, 'disable' may be passed as well. Anyway, the user
716 # can override the default with the --enable/--disable switch.
717 AC_DEFUN([AM_MAINTAINER_MODE],
718 [m4_case(m4_default([$1], [disable]),
719 [enable], [m4_define([am_maintainer_other], [disable])],
720 [disable], [m4_define([am_maintainer_other], [enable])],
721 [m4_define([am_maintainer_other], [enable])
722 m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
723 AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
724 dnl maintainer-mode's default is 'disable' unless 'enable' is passed
725 AC_ARG_ENABLE([maintainer-mode],
726 [AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode],
727 am_maintainer_other[ make rules and dependencies not useful
728 (and sometimes confusing) to the casual installer])],
729 [USE_MAINTAINER_MODE=$enableval],
730 [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
731 AC_MSG_RESULT([$USE_MAINTAINER_MODE])
732 AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
733 MAINT=$MAINTAINER_MODE_TRUE
738 # Check to see how 'make' treats includes. -*- Autoconf -*-
740 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
742 # This file is free software; the Free Software Foundation
743 # gives unlimited permission to copy and/or distribute it,
744 # with or without modifications, as long as this notice is preserved.
748 # Check to see how make treats includes.
749 AC_DEFUN([AM_MAKE_INCLUDE],
750 [am_make=${MAKE-make}
751 cat > confinc << 'END'
753 @echo this is the am__doit target
756 # If we don't find an include directive, just comment out the code.
757 AC_MSG_CHECKING([for style of include used by $am_make])
761 # First try GNU make style include.
762 echo "include confinc" > confmf
763 # Ignore all kinds of additional output from 'make'.
764 case `$am_make -s -f confmf 2> /dev/null` in #(
765 *the\ am__doit\ target*)
771 # Now try BSD make style include.
772 if test "$am__include" = "#"; then
773 echo '.include "confinc"' > confmf
774 case `$am_make -s -f confmf 2> /dev/null` in #(
775 *the\ am__doit\ target*)
782 AC_SUBST([am__include])
783 AC_SUBST([am__quote])
784 AC_MSG_RESULT([$_am_result])
788 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
790 # Copyright (C) 1997-2013 Free Software Foundation, Inc.
792 # This file is free software; the Free Software Foundation
793 # gives unlimited permission to copy and/or distribute it,
794 # with or without modifications, as long as this notice is preserved.
796 # AM_MISSING_PROG(NAME, PROGRAM)
797 # ------------------------------
798 AC_DEFUN([AM_MISSING_PROG],
799 [AC_REQUIRE([AM_MISSING_HAS_RUN])
800 $1=${$1-"${am_missing_run}$2"}
805 # Define MISSING if not defined so far and test if it is modern enough.
806 # If it is, set am_missing_run to use it, otherwise, to nothing.
807 AC_DEFUN([AM_MISSING_HAS_RUN],
808 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
809 AC_REQUIRE_AUX_FILE([missing])dnl
810 if test x"${MISSING+set}" != xset; then
813 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
815 MISSING="\${SHELL} $am_aux_dir/missing" ;;
818 # Use eval to expand $SHELL
819 if eval "$MISSING --is-lightweight"; then
820 am_missing_run="$MISSING "
823 AC_MSG_WARN(['missing' script is too old or missing])
827 # Helper functions for option handling. -*- Autoconf -*-
829 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
831 # This file is free software; the Free Software Foundation
832 # gives unlimited permission to copy and/or distribute it,
833 # with or without modifications, as long as this notice is preserved.
835 # _AM_MANGLE_OPTION(NAME)
836 # -----------------------
837 AC_DEFUN([_AM_MANGLE_OPTION],
838 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
840 # _AM_SET_OPTION(NAME)
841 # --------------------
842 # Set option NAME. Presently that only means defining a flag for this option.
843 AC_DEFUN([_AM_SET_OPTION],
844 [m4_define(_AM_MANGLE_OPTION([$1]), [1])])
846 # _AM_SET_OPTIONS(OPTIONS)
847 # ------------------------
848 # OPTIONS is a space-separated list of Automake options.
849 AC_DEFUN([_AM_SET_OPTIONS],
850 [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
852 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
853 # -------------------------------------------
854 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
855 AC_DEFUN([_AM_IF_OPTION],
856 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
858 # Copyright (C) 1999-2013 Free Software Foundation, Inc.
860 # This file is free software; the Free Software Foundation
861 # gives unlimited permission to copy and/or distribute it,
862 # with or without modifications, as long as this notice is preserved.
866 # Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC
867 # to automatically call this.
868 AC_DEFUN([_AM_PROG_CC_C_O],
869 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
870 AC_REQUIRE_AUX_FILE([compile])dnl
873 [whether $CC understands -c and -o together],
875 [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
876 # Make sure it works both with $CC and with simple cc.
877 # Following AC_PROG_CC_C_O, we do the test twice because some
878 # compilers refuse to overwrite an existing .o file with -o,
879 # though they will create one.
880 am_cv_prog_cc_c_o=yes
882 if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
883 && test -f conftest2.$ac_objext; then
892 if test "$am_cv_prog_cc_c_o" != yes; then
893 # Losing compiler, so override with the script.
894 # FIXME: It is wrong to rewrite CC.
895 # But if we don't then we get into trouble of one sort or another.
896 # A longer-term fix would be to have automake use am__CC in this case,
897 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
898 CC="$am_aux_dir/compile $CC"
902 # For backward compatibility.
903 AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
905 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
907 # This file is free software; the Free Software Foundation
908 # gives unlimited permission to copy and/or distribute it,
909 # with or without modifications, as long as this notice is preserved.
911 # AM_RUN_LOG(COMMAND)
912 # -------------------
913 # Run COMMAND, save the exit status in ac_status, and log it.
914 # (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
915 AC_DEFUN([AM_RUN_LOG],
916 [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
917 ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
919 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
920 (exit $ac_status); }])
922 # Check to make sure that the build environment is sane. -*- Autoconf -*-
924 # Copyright (C) 1996-2013 Free Software Foundation, Inc.
926 # This file is free software; the Free Software Foundation
927 # gives unlimited permission to copy and/or distribute it,
928 # with or without modifications, as long as this notice is preserved.
932 AC_DEFUN([AM_SANITY_CHECK],
933 [AC_MSG_CHECKING([whether build environment is sane])
934 # Reject unsafe characters in $srcdir or the absolute working directory
935 # name. Accept space and tab only in the latter.
939 *[[\\\"\#\$\&\'\`$am_lf]]*)
940 AC_MSG_ERROR([unsafe absolute working directory name]);;
943 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
944 AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
947 # Do 'set' in a subshell so we don't clobber the current shell's
948 # arguments. Must try -L first in case configure is actually a
949 # symlink; some systems play weird games with the mod time of symlinks
950 # (eg FreeBSD returns the mod time of the symlink's containing
954 for am_try in 1 2; do
955 echo "timestamp, slept: $am_has_slept" > conftest.file
956 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
957 if test "$[*]" = "X"; then
959 set X `ls -t "$srcdir/configure" conftest.file`
961 if test "$[*]" != "X $srcdir/configure conftest.file" \
962 && test "$[*]" != "X conftest.file $srcdir/configure"; then
964 # If neither matched, then we have a broken ls. This can happen
965 # if, for instance, CONFIG_SHELL is bash and it inherits a
966 # broken ls alias from the environment. This has actually
967 # happened. Such a system could not be considered "sane".
968 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
969 alias in your environment])
971 if test "$[2]" = conftest.file || test $am_try -eq 2; then
978 test "$[2]" = conftest.file
984 AC_MSG_ERROR([newly created file is older than distributed files!
985 Check your system clock])
988 # If we didn't sleep, we still need to ensure time stamps of config.status and
989 # generated files are strictly newer.
991 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
995 AC_CONFIG_COMMANDS_PRE(
996 [AC_MSG_CHECKING([that generated files are newer than configure])
997 if test -n "$am_sleep_pid"; then
998 # Hide warnings about reused PIDs.
999 wait $am_sleep_pid 2>/dev/null
1001 AC_MSG_RESULT([done])])
1005 # Copyright (C) 2009-2013 Free Software Foundation, Inc.
1007 # This file is free software; the Free Software Foundation
1008 # gives unlimited permission to copy and/or distribute it,
1009 # with or without modifications, as long as this notice is preserved.
1011 # AM_SILENT_RULES([DEFAULT])
1012 # --------------------------
1013 # Enable less verbose build rules; with the default set to DEFAULT
1014 # ("yes" being less verbose, "no" or empty being verbose).
1015 AC_DEFUN([AM_SILENT_RULES],
1016 [AC_ARG_ENABLE([silent-rules], [dnl
1018 [--enable-silent-rules],
1019 [less verbose build output (undo: "make V=1")])
1021 [--disable-silent-rules],
1022 [verbose build output (undo: "make V=0")])dnl
1024 case $enable_silent_rules in @%:@ (((
1025 yes) AM_DEFAULT_VERBOSITY=0;;
1026 no) AM_DEFAULT_VERBOSITY=1;;
1027 *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
1030 dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
1031 dnl do not support nested variable expansions.
1032 dnl See automake bug#9928 and bug#10237.
1033 am_make=${MAKE-make}
1034 AC_CACHE_CHECK([whether $am_make supports nested variables],
1035 [am_cv_make_support_nested_variables],
1036 [if AS_ECHO([['TRUE=$(BAR$(V))
1042 .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
1043 am_cv_make_support_nested_variables=yes
1045 am_cv_make_support_nested_variables=no
1047 if test $am_cv_make_support_nested_variables = yes; then
1048 dnl Using '$V' instead of '$(V)' breaks IRIX make.
1050 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
1052 AM_V=$AM_DEFAULT_VERBOSITY
1053 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
1056 AM_SUBST_NOTMAKE([AM_V])dnl
1057 AC_SUBST([AM_DEFAULT_V])dnl
1058 AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
1059 AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
1061 AC_SUBST([AM_BACKSLASH])dnl
1062 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
1065 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
1067 # This file is free software; the Free Software Foundation
1068 # gives unlimited permission to copy and/or distribute it,
1069 # with or without modifications, as long as this notice is preserved.
1071 # AM_PROG_INSTALL_STRIP
1072 # ---------------------
1073 # One issue with vendor 'install' (even GNU) is that you can't
1074 # specify the program used to strip binaries. This is especially
1075 # annoying in cross-compiling environments, where the build's strip
1076 # is unlikely to handle the host's binaries.
1077 # Fortunately install-sh will honor a STRIPPROG variable, so we
1078 # always use install-sh in "make install-strip", and initialize
1079 # STRIPPROG with the value of the STRIP variable (set by the user).
1080 AC_DEFUN([AM_PROG_INSTALL_STRIP],
1081 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
1082 # Installed binaries are usually stripped using 'strip' when the user
1083 # run "make install-strip". However 'strip' might not be the right
1084 # tool to use in cross-compilation environments, therefore Automake
1085 # will honor the 'STRIP' environment variable to overrule this program.
1086 dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
1087 if test "$cross_compiling" != no; then
1088 AC_CHECK_TOOL([STRIP], [strip], :)
1090 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1091 AC_SUBST([INSTALL_STRIP_PROGRAM])])
1093 # Copyright (C) 2006-2013 Free Software Foundation, Inc.
1095 # This file is free software; the Free Software Foundation
1096 # gives unlimited permission to copy and/or distribute it,
1097 # with or without modifications, as long as this notice is preserved.
1099 # _AM_SUBST_NOTMAKE(VARIABLE)
1100 # ---------------------------
1101 # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
1102 # This macro is traced by Automake.
1103 AC_DEFUN([_AM_SUBST_NOTMAKE])
1105 # AM_SUBST_NOTMAKE(VARIABLE)
1106 # --------------------------
1107 # Public sister of _AM_SUBST_NOTMAKE.
1108 AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
1110 # Check how to create a tarball. -*- Autoconf -*-
1112 # Copyright (C) 2004-2013 Free Software Foundation, Inc.
1114 # This file is free software; the Free Software Foundation
1115 # gives unlimited permission to copy and/or distribute it,
1116 # with or without modifications, as long as this notice is preserved.
1118 # _AM_PROG_TAR(FORMAT)
1119 # --------------------
1120 # Check how to create a tarball in format FORMAT.
1121 # FORMAT should be one of 'v7', 'ustar', or 'pax'.
1123 # Substitute a variable $(am__tar) that is a command
1124 # writing to stdout a FORMAT-tarball containing the directory
1126 # tardir=directory && $(am__tar) > result.tar
1128 # Substitute a variable $(am__untar) that extract such
1129 # a tarball read from stdin.
1130 # $(am__untar) < result.tar
1132 AC_DEFUN([_AM_PROG_TAR],
1133 [# Always define AMTAR for backward compatibility. Yes, it's still used
1134 # in the wild :-( We should find a proper way to deprecate it ...
1135 AC_SUBST([AMTAR], ['$${TAR-tar}'])
1137 # We'll loop over all known methods to create a tar archive until one works.
1138 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
1141 [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
1145 [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
1146 # There is notably a 21 bits limit for the UID and the GID. In fact,
1147 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
1149 am_max_uid=2097151 # 2^21 - 1
1150 am_max_gid=$am_max_uid
1151 # The $UID and $GID variables are not portable, so we need to resort
1152 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
1153 # below are definitely unexpected, so allow the users to see them
1154 # (that is, avoid stderr redirection).
1155 am_uid=`id -u || echo unknown`
1156 am_gid=`id -g || echo unknown`
1157 AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
1158 if test $am_uid -le $am_max_uid; then
1159 AC_MSG_RESULT([yes])
1164 AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
1165 if test $am_gid -le $am_max_gid; then
1166 AC_MSG_RESULT([yes])
1175 [m4_fatal([Unknown tar format])])
1177 AC_MSG_CHECKING([how to create a $1 tar archive])
1179 # Go ahead even if we have the value already cached. We do so because we
1180 # need to set the values for the 'am__tar' and 'am__untar' variables.
1181 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
1183 for _am_tool in $_am_tools; do
1186 for _am_tar in tar gnutar gtar; do
1187 AM_RUN_LOG([$_am_tar --version]) && break
1189 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
1190 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
1191 am__untar="$_am_tar -xf -"
1194 # Must skip GNU tar: if it does not support --format= it doesn't create
1195 # ustar tarball either.
1196 (tar --version) >/dev/null 2>&1 && continue
1197 am__tar='tar chf - "$$tardir"'
1198 am__tar_='tar chf - "$tardir"'
1199 am__untar='tar xf -'
1202 am__tar='pax -L -x $1 -w "$$tardir"'
1203 am__tar_='pax -L -x $1 -w "$tardir"'
1207 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
1208 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
1209 am__untar='cpio -i -H $1 -d'
1218 # If the value was cached, stop now. We just wanted to have am__tar
1219 # and am__untar set.
1220 test -n "${am_cv_prog_tar_$1}" && break
1222 # tar/untar a dummy directory, and stop if the command works.
1225 echo GrepMe > conftest.dir/file
1226 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1228 if test -s conftest.tar; then
1229 AM_RUN_LOG([$am__untar <conftest.tar])
1230 AM_RUN_LOG([cat conftest.dir/file])
1231 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1236 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1237 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1240 AC_SUBST([am__untar])
1243 m4_include([m4/autobuild.m4])
1244 m4_include([m4/codeset.m4])
1245 m4_include([m4/gettext.m4])
1246 m4_include([m4/gpg-error.m4])
1247 m4_include([m4/iconv.m4])
1248 m4_include([m4/isc-posix.m4])
1249 m4_include([m4/ksba.m4])
1250 m4_include([m4/lcmessage.m4])
1251 m4_include([m4/ldap.m4])
1252 m4_include([m4/lib-ld.m4])
1253 m4_include([m4/lib-link.m4])
1254 m4_include([m4/lib-prefix.m4])
1255 m4_include([m4/libassuan.m4])
1256 m4_include([m4/libgcrypt.m4])
1257 m4_include([m4/nls.m4])
1258 m4_include([m4/npth.m4])
1259 m4_include([m4/ntbtls.m4])
1260 m4_include([m4/pkg.m4])
1261 m4_include([m4/po.m4])
1262 m4_include([m4/progtest.m4])
1263 m4_include([m4/readline.m4])
1264 m4_include([m4/socklen.m4])
1265 m4_include([m4/sys_socket_h.m4])
1266 m4_include([m4/tar-ustar.m4])
1267 m4_include([acinclude.m4])