1 # generated automatically by aclocal 1.11.1 -*- Autoconf -*-
3 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4 # 2005, 2006, 2007, 2008, 2009 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_AUTOCONF_VERSION],
15 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.65],,
17 [m4_warning([this file was generated for autoconf 2.65.
18 You have another version of autoconf. It may work, but is not guaranteed to.
19 If you have problems, you may need to regenerate the build system entirely.
20 To do so, use the procedure documented by the package, typically `autoreconf'.])])
22 dnl Autoconf macros for libgcrypt
23 dnl Copyright (C) 2002, 2004 Free Software Foundation, Inc.
25 dnl This file is free software; as a special exception the author gives
26 dnl unlimited permission to copy and/or distribute it, with or without
27 dnl modifications, as long as this notice is preserved.
29 dnl This file is distributed in the hope that it will be useful, but
30 dnl WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
31 dnl implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
34 dnl AM_PATH_LIBGCRYPT([MINIMUM-VERSION,
35 dnl [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND ]]])
36 dnl Test for libgcrypt and define LIBGCRYPT_CFLAGS and LIBGCRYPT_LIBS.
37 dnl MINIMUN-VERSION is a string with the version number optionalliy prefixed
38 dnl with the API version to also check the API compatibility. Example:
39 dnl a MINIMUN-VERSION of 1:1.2.5 won't pass the test unless the installed
40 dnl version of libgcrypt is at least 1.2.5 *and* the API number is 1. Using
41 dnl this features allows to prevent build against newer versions of libgcrypt
42 dnl with a changed API.
44 AC_DEFUN([AM_PATH_LIBGCRYPT],
45 [ AC_ARG_WITH(libgcrypt-prefix,
46 AC_HELP_STRING([--with-libgcrypt-prefix=PFX],
47 [prefix where LIBGCRYPT is installed (optional)]),
48 libgcrypt_config_prefix="$withval", libgcrypt_config_prefix="")
49 if test x$libgcrypt_config_prefix != x ; then
50 if test x${LIBGCRYPT_CONFIG+set} != xset ; then
51 LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config
55 AC_PATH_PROG(LIBGCRYPT_CONFIG, libgcrypt-config, no)
56 tmp=ifelse([$1], ,1:1.2.0,$1)
57 if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
58 req_libgcrypt_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
59 min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
62 min_libgcrypt_version="$tmp"
65 AC_MSG_CHECKING(for LIBGCRYPT - version >= $min_libgcrypt_version)
67 if test "$LIBGCRYPT_CONFIG" != "no" ; then
68 req_major=`echo $min_libgcrypt_version | \
69 sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\)/\1/'`
70 req_minor=`echo $min_libgcrypt_version | \
71 sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\)/\2/'`
72 req_micro=`echo $min_libgcrypt_version | \
73 sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\)/\3/'`
74 libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
75 major=`echo $libgcrypt_config_version | \
76 sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\).*/\1/'`
77 minor=`echo $libgcrypt_config_version | \
78 sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\).*/\2/'`
79 micro=`echo $libgcrypt_config_version | \
80 sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\).*/\3/'`
81 if test "$major" -gt "$req_major"; then
84 if test "$major" -eq "$req_major"; then
85 if test "$minor" -gt "$req_minor"; then
88 if test "$minor" -eq "$req_minor"; then
89 if test "$micro" -ge "$req_micro"; then
97 if test $ok = yes; then
98 AC_MSG_RESULT([yes ($libgcrypt_config_version)])
102 if test $ok = yes; then
103 # If we have a recent libgcrypt, we should also check that the
105 if test "$req_libgcrypt_api" -gt 0 ; then
106 tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
107 if test "$tmp" -gt 0 ; then
108 AC_MSG_CHECKING([LIBGCRYPT API version])
109 if test "$req_libgcrypt_api" -eq "$tmp" ; then
110 AC_MSG_RESULT([okay])
113 AC_MSG_RESULT([does not match. want=$req_libgcrypt_api got=$tmp])
118 if test $ok = yes; then
119 LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
120 LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
121 ifelse([$2], , :, [$2])
125 ifelse([$3], , :, [$3])
127 AC_SUBST(LIBGCRYPT_CFLAGS)
128 AC_SUBST(LIBGCRYPT_LIBS)
131 # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
132 # serial 1 (pkg-config-0.24)
134 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
136 # This program is free software; you can redistribute it and/or modify
137 # it under the terms of the GNU General Public License as published by
138 # the Free Software Foundation; either version 2 of the License, or
139 # (at your option) any later version.
141 # This program is distributed in the hope that it will be useful, but
142 # WITHOUT ANY WARRANTY; without even the implied warranty of
143 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
144 # General Public License for more details.
146 # You should have received a copy of the GNU General Public License
147 # along with this program; if not, write to the Free Software
148 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
150 # As a special exception to the GNU General Public License, if you
151 # distribute this file as part of a program that contains a
152 # configuration script generated by Autoconf, you may include it under
153 # the same distribution terms that you use for the rest of that program.
155 # PKG_PROG_PKG_CONFIG([MIN-VERSION])
156 # ----------------------------------
157 AC_DEFUN([PKG_PROG_PKG_CONFIG],
158 [m4_pattern_forbid([^_?PKG_[A-Z_]+$])
159 m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
160 AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
161 AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
162 AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
164 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
165 AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
167 if test -n "$PKG_CONFIG"; then
168 _pkg_min_version=m4_default([$1], [0.9.0])
169 AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
170 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
177 ])# PKG_PROG_PKG_CONFIG
179 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
181 # Check to see whether a particular set of modules exists. Similar
182 # to PKG_CHECK_MODULES(), but does not set variables or print errors.
184 # Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
185 # only at the first occurence in configure.ac, so if the first place
186 # it's called might be skipped (such as if it is within an "if", you
187 # have to call PKG_CHECK_EXISTS manually
188 # --------------------------------------------------------------
189 AC_DEFUN([PKG_CHECK_EXISTS],
190 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
191 if test -n "$PKG_CONFIG" && \
192 AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
193 m4_default([$2], [:])
194 m4_ifvaln([$3], [else
198 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
199 # ---------------------------------------------
200 m4_define([_PKG_CONFIG],
201 [if test -n "$$1"; then
203 elif test -n "$PKG_CONFIG"; then
204 PKG_CHECK_EXISTS([$3],
205 [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
212 # _PKG_SHORT_ERRORS_SUPPORTED
213 # -----------------------------
214 AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
215 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])
216 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
217 _pkg_short_errors_supported=yes
219 _pkg_short_errors_supported=no
221 ])# _PKG_SHORT_ERRORS_SUPPORTED
224 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
225 # [ACTION-IF-NOT-FOUND])
228 # Note that if there is a possibility the first call to
229 # PKG_CHECK_MODULES might not happen, you should be sure to include an
230 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
233 # --------------------------------------------------------------
234 AC_DEFUN([PKG_CHECK_MODULES],
235 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
236 AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
237 AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
240 AC_MSG_CHECKING([for $1])
242 _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
243 _PKG_CONFIG([$1][_LIBS], [libs], [$2])
245 m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
246 and $1[]_LIBS to avoid the need to call pkg-config.
247 See the pkg-config man page for more details.])
249 if test $pkg_failed = yes; then
251 _PKG_SHORT_ERRORS_SUPPORTED
252 if test $_pkg_short_errors_supported = yes; then
253 $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1`
255 $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1`
257 # Put the nasty error message in config.log where it belongs
258 echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
260 m4_default([$4], [AC_MSG_ERROR(
261 [Package requirements ($2) were not met:
265 Consider adjusting the PKG_CONFIG_PATH environment variable if you
266 installed software in a non-standard prefix.
270 elif test $pkg_failed = untried; then
272 m4_default([$4], [AC_MSG_FAILURE(
273 [The pkg-config script could not be found or is too old. Make sure it
274 is in your PATH or set the PKG_CONFIG environment variable to the full
279 To get pkg-config, see <http://pkg-config.freedesktop.org/>.])dnl
282 $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
283 $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
287 ])# PKG_CHECK_MODULES
289 # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
291 # This file is free software; the Free Software Foundation
292 # gives unlimited permission to copy and/or distribute it,
293 # with or without modifications, as long as this notice is preserved.
295 # AM_AUTOMAKE_VERSION(VERSION)
296 # ----------------------------
297 # Automake X.Y traces this macro to ensure aclocal.m4 has been
298 # generated from the m4 files accompanying Automake X.Y.
299 # (This private macro should not be called outside this file.)
300 AC_DEFUN([AM_AUTOMAKE_VERSION],
301 [am__api_version='1.11'
302 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
303 dnl require some minimum version. Point them to the right macro.
304 m4_if([$1], [1.11.1], [],
305 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
308 # _AM_AUTOCONF_VERSION(VERSION)
309 # -----------------------------
310 # aclocal traces this macro to find the Autoconf version.
311 # This is a private macro too. Using m4_define simplifies
312 # the logic in aclocal, which can simply ignore this definition.
313 m4_define([_AM_AUTOCONF_VERSION], [])
315 # AM_SET_CURRENT_AUTOMAKE_VERSION
316 # -------------------------------
317 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
318 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
319 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
320 [AM_AUTOMAKE_VERSION([1.11.1])dnl
321 m4_ifndef([AC_AUTOCONF_VERSION],
322 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
323 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
325 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
327 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
329 # This file is free software; the Free Software Foundation
330 # gives unlimited permission to copy and/or distribute it,
331 # with or without modifications, as long as this notice is preserved.
333 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
334 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
335 # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
337 # Of course, Automake must honor this variable whenever it calls a
338 # tool from the auxiliary directory. The problem is that $srcdir (and
339 # therefore $ac_aux_dir as well) can be either absolute or relative,
340 # depending on how configure is run. This is pretty annoying, since
341 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
342 # source directory, any form will work fine, but in subdirectories a
343 # relative path needs to be adjusted first.
345 # $ac_aux_dir/missing
346 # fails when called from a subdirectory if $ac_aux_dir is relative
347 # $top_srcdir/$ac_aux_dir/missing
348 # fails if $ac_aux_dir is absolute,
349 # fails when called from a subdirectory in a VPATH build with
350 # a relative $ac_aux_dir
352 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
353 # are both prefixed by $srcdir. In an in-source build this is usually
354 # harmless because $srcdir is `.', but things will broke when you
355 # start a VPATH build or use an absolute $srcdir.
357 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
358 # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
359 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
360 # and then we would define $MISSING as
361 # MISSING="\${SHELL} $am_aux_dir/missing"
362 # This will work as long as MISSING is not called from configure, because
363 # unfortunately $(top_srcdir) has no meaning in configure.
364 # However there are other variables, like CC, which are often used in
365 # configure, and could therefore not use this "fixed" $ac_aux_dir.
367 # Another solution, used here, is to always expand $ac_aux_dir to an
368 # absolute PATH. The drawback is that using absolute paths prevent a
369 # configured tree to be moved without reconfiguration.
371 AC_DEFUN([AM_AUX_DIR_EXPAND],
372 [dnl Rely on autoconf to set up CDPATH properly.
374 # expand $ac_aux_dir to an absolute path
375 am_aux_dir=`cd $ac_aux_dir && pwd`
378 # AM_CONDITIONAL -*- Autoconf -*-
380 # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
381 # Free Software Foundation, Inc.
383 # This file is free software; the Free Software Foundation
384 # gives unlimited permission to copy and/or distribute it,
385 # with or without modifications, as long as this notice is preserved.
389 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
390 # -------------------------------------
391 # Define a conditional.
392 AC_DEFUN([AM_CONDITIONAL],
394 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
395 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
396 AC_SUBST([$1_TRUE])dnl
397 AC_SUBST([$1_FALSE])dnl
398 _AM_SUBST_NOTMAKE([$1_TRUE])dnl
399 _AM_SUBST_NOTMAKE([$1_FALSE])dnl
400 m4_define([_AM_COND_VALUE_$1], [$2])dnl
408 AC_CONFIG_COMMANDS_PRE(
409 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
410 AC_MSG_ERROR([[conditional "$1" was never defined.
411 Usually this means the macro was only invoked conditionally.]])
414 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
415 # Free Software Foundation, Inc.
417 # This file is free software; the Free Software Foundation
418 # gives unlimited permission to copy and/or distribute it,
419 # with or without modifications, as long as this notice is preserved.
423 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
424 # written in clear, in which case automake, when reading aclocal.m4,
425 # will think it sees a *use*, and therefore will trigger all it's
426 # C support machinery. Also note that it means that autoscan, seeing
427 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
430 # _AM_DEPENDENCIES(NAME)
431 # ----------------------
432 # See how the compiler implements dependency checking.
433 # NAME is "CC", "CXX", "GCJ", or "OBJC".
434 # We try a few techniques and use that to set a single cache variable.
436 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
437 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
438 # dependency, and given that the user is not expected to run this macro,
439 # just rely on AC_PROG_CC.
440 AC_DEFUN([_AM_DEPENDENCIES],
441 [AC_REQUIRE([AM_SET_DEPDIR])dnl
442 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
443 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
444 AC_REQUIRE([AM_DEP_TRACK])dnl
446 ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
447 [$1], CXX, [depcc="$CXX" am_compiler_list=],
448 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
449 [$1], UPC, [depcc="$UPC" am_compiler_list=],
450 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
451 [depcc="$$1" am_compiler_list=])
453 AC_CACHE_CHECK([dependency style of $depcc],
454 [am_cv_$1_dependencies_compiler_type],
455 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
456 # We make a subdir and do the tests there. Otherwise we can end up
457 # making bogus files that we don't know about and never remove. For
458 # instance it was reported that on HP-UX the gcc test will end up
459 # making a dummy file named `D' -- because `-MD' means `put the output
462 # Copy depcomp to subdir because otherwise we won't find it if we're
463 # using a relative directory.
464 cp "$am_depcomp" conftest.dir
466 # We will build objects and dependencies in a subdirectory because
467 # it helps to detect inapplicable dependency modes. For instance
468 # both Tru64's cc and ICC support -MD to output dependencies as a
469 # side effect of compilation, but ICC will put the dependencies in
470 # the current directory while Tru64 will put them in the object
474 am_cv_$1_dependencies_compiler_type=none
475 if test "$am_compiler_list" = ""; then
476 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
480 [case " $depcc " in #(
481 *\ -arch\ *\ -arch\ *) am__universal=true ;;
484 [case " $depcc " in #(
485 *\ -arch\ *\ -arch\ *) am__universal=true ;;
488 for depmode in $am_compiler_list; do
489 # Setup a source with many dependencies, because some compilers
490 # like to wrap large dependency lists on column 80 (with \), and
491 # we should not choose a depcomp mode which is confused by this.
493 # We need to recreate these files for each test, as the compiler may
494 # overwrite some of them when testing with obscure command lines.
495 # This happens at least with the AIX C compiler.
497 for i in 1 2 3 4 5 6; do
498 echo '#include "conftst'$i'.h"' >> sub/conftest.c
499 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
500 # Solaris 8's {/usr,}/bin/sh.
501 touch sub/conftst$i.h
503 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
505 # We check with `-c' and `-o' for the sake of the "dashmstdout"
506 # mode. It turns out that the SunPro C++ compiler does not properly
507 # handle `-M -o', and we need to detect this. Also, some Intel
508 # versions had trouble with output in subdirs
509 am__obj=sub/conftest.${OBJEXT-o}
510 am__minus_obj="-o $am__obj"
513 # This depmode causes a compiler race in universal mode.
514 test "$am__universal" = false || continue
517 # after this tag, mechanisms are not by side-effect, so they'll
518 # only be used when explicitly requested
519 if test "x$enable_dependency_tracking" = xyes; then
525 msvisualcpp | msvcmsys)
526 # This compiler won't grok `-c -o', but also, the minuso test has
527 # not run yet. These depmodes are late enough in the game, and
528 # so weak that their functioning should not be impacted.
529 am__obj=conftest.${OBJEXT-o}
534 if depmode=$depmode \
535 source=sub/conftest.c object=$am__obj \
536 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
537 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
538 >/dev/null 2>conftest.err &&
539 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
540 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
541 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
542 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
543 # icc doesn't choke on unknown options, it will just issue warnings
544 # or remarks (even with -Werror). So we grep stderr for any message
545 # that says an option was ignored or not supported.
546 # When given -MP, icc 7.0 and 7.1 complain thusly:
547 # icc: Command line warning: ignoring option '-M'; no argument required
548 # The diagnosis changed in icc 8.0:
549 # icc: Command line remark: option '-MP' not supported
550 if (grep 'ignoring option' conftest.err ||
551 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
552 am_cv_$1_dependencies_compiler_type=$depmode
561 am_cv_$1_dependencies_compiler_type=none
564 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
565 AM_CONDITIONAL([am__fastdep$1], [
566 test "x$enable_dependency_tracking" != xno \
567 && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
573 # Choose a directory name for dependency files.
574 # This macro is AC_REQUIREd in _AM_DEPENDENCIES
575 AC_DEFUN([AM_SET_DEPDIR],
576 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
577 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
583 AC_DEFUN([AM_DEP_TRACK],
584 [AC_ARG_ENABLE(dependency-tracking,
585 [ --disable-dependency-tracking speeds up one-time build
586 --enable-dependency-tracking do not reject slow dependency extractors])
587 if test "x$enable_dependency_tracking" != xno; then
588 am_depcomp="$ac_aux_dir/depcomp"
591 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
592 AC_SUBST([AMDEPBACKSLASH])dnl
593 _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
596 # Generate code to set up dependency tracking. -*- Autoconf -*-
598 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
599 # Free Software Foundation, Inc.
601 # This file is free software; the Free Software Foundation
602 # gives unlimited permission to copy and/or distribute it,
603 # with or without modifications, as long as this notice is preserved.
607 # _AM_OUTPUT_DEPENDENCY_COMMANDS
608 # ------------------------------
609 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
611 # Autoconf 2.62 quotes --file arguments for eval, but not when files
612 # are listed without --file. Let's play safe and only enable the eval
613 # if we detect the quoting.
614 case $CONFIG_FILES in
615 *\'*) eval set x "$CONFIG_FILES" ;;
616 *) set x $CONFIG_FILES ;;
621 # Strip MF so we end up with the name of the file.
622 mf=`echo "$mf" | sed -e 's/:.*$//'`
623 # Check whether this is an Automake generated Makefile or not.
624 # We used to match only the files named `Makefile.in', but
625 # some people rename them; so instead we look at the file content.
626 # Grep'ing the first line is not enough: some people post-process
627 # each Makefile.in and add a new line on top of each file to say so.
628 # Grep'ing the whole file is not good either: AIX grep has a line
629 # limit of 2048, but all sed's we know have understand at least 4000.
630 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
631 dirpart=`AS_DIRNAME("$mf")`
635 # Extract the definition of DEPDIR, am__include, and am__quote
636 # from the Makefile without running `make'.
637 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
638 test -z "$DEPDIR" && continue
639 am__include=`sed -n 's/^am__include = //p' < "$mf"`
640 test -z "am__include" && continue
641 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
642 # When using ansi2knr, U may be empty or an underscore; expand it
643 U=`sed -n 's/^U = //p' < "$mf"`
644 # Find all dependency output files, they are included files with
645 # $(DEPDIR) in their names. We invoke sed twice because it is the
646 # simplest approach to changing $(DEPDIR) to its actual value in the
648 for file in `sed -n "
649 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
650 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
651 # Make sure the directory exists.
652 test -f "$dirpart/$file" && continue
653 fdir=`AS_DIRNAME(["$file"])`
654 AS_MKDIR_P([$dirpart/$fdir])
655 # echo "creating $dirpart/$file"
656 echo '# dummy' > "$dirpart/$file"
660 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
663 # AM_OUTPUT_DEPENDENCY_COMMANDS
664 # -----------------------------
665 # This macro should only be invoked once -- use via AC_REQUIRE.
667 # This code is only required when automatic dependency tracking
668 # is enabled. FIXME. This creates each `.P' file that we will
669 # need in order to bootstrap the dependency handling code.
670 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
671 [AC_CONFIG_COMMANDS([depfiles],
672 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
673 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
676 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
677 # Free Software Foundation, Inc.
679 # This file is free software; the Free Software Foundation
680 # gives unlimited permission to copy and/or distribute it,
681 # with or without modifications, as long as this notice is preserved.
685 # AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
686 AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
688 # Do all the work for Automake. -*- Autoconf -*-
690 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
691 # 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
693 # This file is free software; the Free Software Foundation
694 # gives unlimited permission to copy and/or distribute it,
695 # with or without modifications, as long as this notice is preserved.
699 # This macro actually does too much. Some checks are only needed if
700 # your package does certain things. But this isn't really a big deal.
702 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
703 # AM_INIT_AUTOMAKE([OPTIONS])
704 # -----------------------------------------------
705 # The call with PACKAGE and VERSION arguments is the old style
706 # call (pre autoconf-2.50), which is being phased out. PACKAGE
707 # and VERSION should now be passed to AC_INIT and removed from
708 # the call to AM_INIT_AUTOMAKE.
709 # We support both call styles for the transition. After
710 # the next Automake release, Autoconf can make the AC_INIT
711 # arguments mandatory, and then we can depend on a new Autoconf
712 # release and drop the old call support.
713 AC_DEFUN([AM_INIT_AUTOMAKE],
714 [AC_PREREQ([2.62])dnl
715 dnl Autoconf wants to disallow AM_ names. We explicitly allow
716 dnl the ones we care about.
717 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
718 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
719 AC_REQUIRE([AC_PROG_INSTALL])dnl
720 if test "`cd $srcdir && pwd`" != "`pwd`"; then
721 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
722 # is not polluted with repeated "-I."
723 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
724 # test to see if srcdir already configured
725 if test -f $srcdir/config.status; then
726 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
730 # test whether we have cygpath
731 if test -z "$CYGPATH_W"; then
732 if (cygpath --version) >/dev/null 2>/dev/null; then
733 CYGPATH_W='cygpath -w'
738 AC_SUBST([CYGPATH_W])
740 # Define the identity of the package.
741 dnl Distinguish between old-style and new-style calls.
743 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
744 AC_SUBST([PACKAGE], [$1])dnl
745 AC_SUBST([VERSION], [$2])],
746 [_AM_SET_OPTIONS([$1])dnl
747 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
748 m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
749 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
750 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
751 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
753 _AM_IF_OPTION([no-define],,
754 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
755 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
757 # Some tools Automake needs.
758 AC_REQUIRE([AM_SANITY_CHECK])dnl
759 AC_REQUIRE([AC_ARG_PROGRAM])dnl
760 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
761 AM_MISSING_PROG(AUTOCONF, autoconf)
762 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
763 AM_MISSING_PROG(AUTOHEADER, autoheader)
764 AM_MISSING_PROG(MAKEINFO, makeinfo)
765 AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
766 AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
767 AC_REQUIRE([AM_PROG_MKDIR_P])dnl
768 # We need awk for the "check" target. The system "awk" is bad on
770 AC_REQUIRE([AC_PROG_AWK])dnl
771 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
772 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
773 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
774 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
775 [_AM_PROG_TAR([v7])])])
776 _AM_IF_OPTION([no-dependencies],,
777 [AC_PROVIDE_IFELSE([AC_PROG_CC],
778 [_AM_DEPENDENCIES(CC)],
779 [define([AC_PROG_CC],
780 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
781 AC_PROVIDE_IFELSE([AC_PROG_CXX],
782 [_AM_DEPENDENCIES(CXX)],
783 [define([AC_PROG_CXX],
784 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
785 AC_PROVIDE_IFELSE([AC_PROG_OBJC],
786 [_AM_DEPENDENCIES(OBJC)],
787 [define([AC_PROG_OBJC],
788 defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
790 _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
791 dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
792 dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
793 dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
794 AC_CONFIG_COMMANDS_PRE(dnl
795 [m4_provide_if([_AM_COMPILER_EXEEXT],
796 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
799 dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
800 dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
801 dnl mangled by Autoconf and run in a shell conditional statement.
802 m4_define([_AC_COMPILER_EXEEXT],
803 m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
806 # When config.status generates a header, we must update the stamp-h file.
807 # This file resides in the same directory as the config header
808 # that is generated. The stamp files are numbered to have different names.
810 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
811 # loop where config.status creates the headers, so we can generate
812 # our stamp files there.
813 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
814 [# Compute $1's index in $config_headers.
817 for _am_header in $config_headers :; do
819 $_am_arg | $_am_arg:* )
822 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
825 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
827 # Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc.
829 # This file is free software; the Free Software Foundation
830 # gives unlimited permission to copy and/or distribute it,
831 # with or without modifications, as long as this notice is preserved.
835 # Define $install_sh.
836 AC_DEFUN([AM_PROG_INSTALL_SH],
837 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
838 if test x"${install_sh}" != xset; then
841 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
843 install_sh="\${SHELL} $am_aux_dir/install-sh"
846 AC_SUBST(install_sh)])
848 # Copyright (C) 2003, 2005 Free Software Foundation, Inc.
850 # This file is free software; the Free Software Foundation
851 # gives unlimited permission to copy and/or distribute it,
852 # with or without modifications, as long as this notice is preserved.
856 # Check whether the underlying file-system supports filenames
857 # with a leading dot. For instance MS-DOS doesn't.
858 AC_DEFUN([AM_SET_LEADING_DOT],
859 [rm -rf .tst 2>/dev/null
860 mkdir .tst 2>/dev/null
861 if test -d .tst; then
866 rmdir .tst 2>/dev/null
867 AC_SUBST([am__leading_dot])])
869 # Check to see how 'make' treats includes. -*- Autoconf -*-
871 # Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
873 # This file is free software; the Free Software Foundation
874 # gives unlimited permission to copy and/or distribute it,
875 # with or without modifications, as long as this notice is preserved.
881 # Check to see how make treats includes.
882 AC_DEFUN([AM_MAKE_INCLUDE],
883 [am_make=${MAKE-make}
884 cat > confinc << 'END'
886 @echo this is the am__doit target
889 # If we don't find an include directive, just comment out the code.
890 AC_MSG_CHECKING([for style of include used by $am_make])
894 # First try GNU make style include.
895 echo "include confinc" > confmf
896 # Ignore all kinds of additional output from `make'.
897 case `$am_make -s -f confmf 2> /dev/null` in #(
898 *the\ am__doit\ target*)
904 # Now try BSD make style include.
905 if test "$am__include" = "#"; then
906 echo '.include "confinc"' > confmf
907 case `$am_make -s -f confmf 2> /dev/null` in #(
908 *the\ am__doit\ target*)
915 AC_SUBST([am__include])
916 AC_SUBST([am__quote])
917 AC_MSG_RESULT([$_am_result])
921 # Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005, 2008
922 # Free Software Foundation, Inc.
924 # This file is free software; the Free Software Foundation
925 # gives unlimited permission to copy and/or distribute it,
926 # with or without modifications, as long as this notice is preserved.
932 # Like AC_PROG_CC_C_O, but changed for automake.
933 AC_DEFUN([AM_PROG_CC_C_O],
934 [AC_REQUIRE([AC_PROG_CC_C_O])dnl
935 AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
936 AC_REQUIRE_AUX_FILE([compile])dnl
937 # FIXME: we rely on the cache variable name because
938 # there is no other way.
940 am_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
941 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
942 if test "$am_t" != yes; then
943 # Losing compiler, so override with the script.
944 # FIXME: It is wrong to rewrite CC.
945 # But if we don't then we get into trouble of one sort or another.
946 # A longer-term fix would be to have automake use am__CC in this case,
947 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
948 CC="$am_aux_dir/compile $CC"
950 dnl Make sure AC_PROG_CC is never called again, or it will override our
952 m4_define([AC_PROG_CC],
953 [m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])])
956 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
958 # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
959 # Free Software Foundation, Inc.
961 # This file is free software; the Free Software Foundation
962 # gives unlimited permission to copy and/or distribute it,
963 # with or without modifications, as long as this notice is preserved.
967 # AM_MISSING_PROG(NAME, PROGRAM)
968 # ------------------------------
969 AC_DEFUN([AM_MISSING_PROG],
970 [AC_REQUIRE([AM_MISSING_HAS_RUN])
971 $1=${$1-"${am_missing_run}$2"}
977 # Define MISSING if not defined so far and test if it supports --run.
978 # If it does, set am_missing_run to use it, otherwise, to nothing.
979 AC_DEFUN([AM_MISSING_HAS_RUN],
980 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
981 AC_REQUIRE_AUX_FILE([missing])dnl
982 if test x"${MISSING+set}" != xset; then
985 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
987 MISSING="\${SHELL} $am_aux_dir/missing" ;;
990 # Use eval to expand $SHELL
991 if eval "$MISSING --run true"; then
992 am_missing_run="$MISSING --run "
995 AC_MSG_WARN([`missing' script is too old or missing])
999 # Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
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.
1007 # Check for `mkdir -p'.
1008 AC_DEFUN([AM_PROG_MKDIR_P],
1009 [AC_PREREQ([2.60])dnl
1010 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
1011 dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
1012 dnl while keeping a definition of mkdir_p for backward compatibility.
1013 dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
1014 dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
1015 dnl Makefile.ins that do not define MKDIR_P, so we do our own
1016 dnl adjustment using top_builddir (which is defined more often than
1018 AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
1020 [[\\/$]]* | ?:[[\\/]]*) ;;
1021 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
1025 # Helper functions for option handling. -*- Autoconf -*-
1027 # Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc.
1029 # This file is free software; the Free Software Foundation
1030 # gives unlimited permission to copy and/or distribute it,
1031 # with or without modifications, as long as this notice is preserved.
1035 # _AM_MANGLE_OPTION(NAME)
1036 # -----------------------
1037 AC_DEFUN([_AM_MANGLE_OPTION],
1038 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
1040 # _AM_SET_OPTION(NAME)
1041 # ------------------------------
1042 # Set option NAME. Presently that only means defining a flag for this option.
1043 AC_DEFUN([_AM_SET_OPTION],
1044 [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
1046 # _AM_SET_OPTIONS(OPTIONS)
1047 # ----------------------------------
1048 # OPTIONS is a space-separated list of Automake options.
1049 AC_DEFUN([_AM_SET_OPTIONS],
1050 [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
1052 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
1053 # -------------------------------------------
1054 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
1055 AC_DEFUN([_AM_IF_OPTION],
1056 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
1058 # Check to make sure that the build environment is sane. -*- Autoconf -*-
1060 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
1061 # Free Software Foundation, Inc.
1063 # This file is free software; the Free Software Foundation
1064 # gives unlimited permission to copy and/or distribute it,
1065 # with or without modifications, as long as this notice is preserved.
1071 AC_DEFUN([AM_SANITY_CHECK],
1072 [AC_MSG_CHECKING([whether build environment is sane])
1075 echo timestamp > conftest.file
1076 # Reject unsafe characters in $srcdir or the absolute working directory
1077 # name. Accept space and tab only in the latter.
1081 *[[\\\"\#\$\&\'\`$am_lf]]*)
1082 AC_MSG_ERROR([unsafe absolute working directory name]);;
1085 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
1086 AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
1089 # Do `set' in a subshell so we don't clobber the current shell's
1090 # arguments. Must try -L first in case configure is actually a
1091 # symlink; some systems play weird games with the mod time of symlinks
1092 # (eg FreeBSD returns the mod time of the symlink's containing
1095 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
1096 if test "$[*]" = "X"; then
1098 set X `ls -t "$srcdir/configure" conftest.file`
1101 if test "$[*]" != "X $srcdir/configure conftest.file" \
1102 && test "$[*]" != "X conftest.file $srcdir/configure"; then
1104 # If neither matched, then we have a broken ls. This can happen
1105 # if, for instance, CONFIG_SHELL is bash and it inherits a
1106 # broken ls alias from the environment. This has actually
1107 # happened. Such a system could not be considered "sane".
1108 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
1109 alias in your environment])
1112 test "$[2]" = conftest.file
1118 AC_MSG_ERROR([newly created file is older than distributed files!
1119 Check your system clock])
1121 AC_MSG_RESULT(yes)])
1123 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
1125 # This file is free software; the Free Software Foundation
1126 # gives unlimited permission to copy and/or distribute it,
1127 # with or without modifications, as long as this notice is preserved.
1129 # AM_PROG_INSTALL_STRIP
1130 # ---------------------
1131 # One issue with vendor `install' (even GNU) is that you can't
1132 # specify the program used to strip binaries. This is especially
1133 # annoying in cross-compiling environments, where the build's strip
1134 # is unlikely to handle the host's binaries.
1135 # Fortunately install-sh will honor a STRIPPROG variable, so we
1136 # always use install-sh in `make install-strip', and initialize
1137 # STRIPPROG with the value of the STRIP variable (set by the user).
1138 AC_DEFUN([AM_PROG_INSTALL_STRIP],
1139 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
1140 # Installed binaries are usually stripped using `strip' when the user
1141 # run `make install-strip'. However `strip' might not be the right
1142 # tool to use in cross-compilation environments, therefore Automake
1143 # will honor the `STRIP' environment variable to overrule this program.
1144 dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
1145 if test "$cross_compiling" != no; then
1146 AC_CHECK_TOOL([STRIP], [strip], :)
1148 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1149 AC_SUBST([INSTALL_STRIP_PROGRAM])])
1151 # Copyright (C) 2006, 2008 Free Software Foundation, Inc.
1153 # This file is free software; the Free Software Foundation
1154 # gives unlimited permission to copy and/or distribute it,
1155 # with or without modifications, as long as this notice is preserved.
1159 # _AM_SUBST_NOTMAKE(VARIABLE)
1160 # ---------------------------
1161 # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
1162 # This macro is traced by Automake.
1163 AC_DEFUN([_AM_SUBST_NOTMAKE])
1165 # AM_SUBST_NOTMAKE(VARIABLE)
1166 # ---------------------------
1167 # Public sister of _AM_SUBST_NOTMAKE.
1168 AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
1170 # Check how to create a tarball. -*- Autoconf -*-
1172 # Copyright (C) 2004, 2005 Free Software Foundation, Inc.
1174 # This file is free software; the Free Software Foundation
1175 # gives unlimited permission to copy and/or distribute it,
1176 # with or without modifications, as long as this notice is preserved.
1180 # _AM_PROG_TAR(FORMAT)
1181 # --------------------
1182 # Check how to create a tarball in format FORMAT.
1183 # FORMAT should be one of `v7', `ustar', or `pax'.
1185 # Substitute a variable $(am__tar) that is a command
1186 # writing to stdout a FORMAT-tarball containing the directory
1188 # tardir=directory && $(am__tar) > result.tar
1190 # Substitute a variable $(am__untar) that extract such
1191 # a tarball read from stdin.
1192 # $(am__untar) < result.tar
1193 AC_DEFUN([_AM_PROG_TAR],
1194 [# Always define AMTAR for backward compatibility.
1195 AM_MISSING_PROG([AMTAR], [tar])
1197 [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
1198 [m4_case([$1], [ustar],, [pax],,
1199 [m4_fatal([Unknown tar format])])
1200 AC_MSG_CHECKING([how to create a $1 tar archive])
1201 # Loop over all known methods to create a tar archive until one works.
1202 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
1203 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
1204 # Do not fold the above two line into one, because Tru64 sh and
1205 # Solaris sh will not grok spaces in the rhs of `-'.
1206 for _am_tool in $_am_tools
1210 for _am_tar in tar gnutar gtar;
1212 AM_RUN_LOG([$_am_tar --version]) && break
1214 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
1215 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
1216 am__untar="$_am_tar -xf -"
1219 # Must skip GNU tar: if it does not support --format= it doesn't create
1220 # ustar tarball either.
1221 (tar --version) >/dev/null 2>&1 && continue
1222 am__tar='tar chf - "$$tardir"'
1223 am__tar_='tar chf - "$tardir"'
1224 am__untar='tar xf -'
1227 am__tar='pax -L -x $1 -w "$$tardir"'
1228 am__tar_='pax -L -x $1 -w "$tardir"'
1232 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
1233 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
1234 am__untar='cpio -i -H $1 -d'
1243 # If the value was cached, stop now. We just wanted to have am__tar
1244 # and am__untar set.
1245 test -n "${am_cv_prog_tar_$1}" && break
1247 # tar/untar a dummy directory, and stop if the command works
1250 echo GrepMe > conftest.dir/file
1251 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1253 if test -s conftest.tar; then
1254 AM_RUN_LOG([$am__untar <conftest.tar])
1255 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1260 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1261 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1263 AC_SUBST([am__untar])
1266 m4_include([m4/gettext.m4])
1267 m4_include([m4/iconv.m4])
1268 m4_include([m4/lib-ld.m4])
1269 m4_include([m4/lib-link.m4])
1270 m4_include([m4/lib-prefix.m4])
1271 m4_include([m4/libtool.m4])
1272 m4_include([m4/ltoptions.m4])
1273 m4_include([m4/ltsugar.m4])
1274 m4_include([m4/ltversion.m4])
1275 m4_include([m4/lt~obsolete.m4])
1276 m4_include([m4/nls.m4])
1277 m4_include([m4/po.m4])
1278 m4_include([m4/progtest.m4])
1279 m4_include([acinclude.m4])