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 # longlong.m4 serial 13
23 dnl Copyright (C) 1999-2007 Free Software Foundation, Inc.
24 dnl This file is free software; the Free Software Foundation
25 dnl gives unlimited permission to copy and/or distribute it,
26 dnl with or without modifications, as long as this notice is preserved.
30 # Define HAVE_LONG_LONG_INT if 'long long int' works.
31 # This fixes a bug in Autoconf 2.61, but can be removed once we
32 # assume 2.62 everywhere.
34 # Note: If the type 'long long int' exists but is only 32 bits large
35 # (as on some very old compilers), HAVE_LONG_LONG_INT will not be
36 # defined. In this case you can treat 'long long int' like 'long int'.
38 AC_DEFUN([AC_TYPE_LONG_LONG_INT],
40 AC_CACHE_CHECK([for long long int], [ac_cv_type_long_long_int],
42 [_AC_TYPE_LONG_LONG_SNIPPET],
43 [dnl This catches a bug in Tandem NonStop Kernel (OSS) cc -O circa 2004.
44 dnl If cross compiling, assume the bug isn't important, since
45 dnl nobody cross compiles for this platform as far as we know.
48 [[@%:@include <limits.h>
51 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
52 @%:@ define LLONG_MAX (HALF - 1 + HALF)
54 [[long long int n = 1;
58 long long int m = n << i;
61 if (LLONG_MAX / 2 < m)
65 [ac_cv_type_long_long_int=yes],
66 [ac_cv_type_long_long_int=no],
67 [ac_cv_type_long_long_int=yes])],
68 [ac_cv_type_long_long_int=no])])
69 if test $ac_cv_type_long_long_int = yes; then
70 AC_DEFINE([HAVE_LONG_LONG_INT], 1,
71 [Define to 1 if the system has the type `long long int'.])
75 # Define HAVE_UNSIGNED_LONG_LONG_INT if 'unsigned long long int' works.
76 # This fixes a bug in Autoconf 2.61, but can be removed once we
77 # assume 2.62 everywhere.
79 # Note: If the type 'unsigned long long int' exists but is only 32 bits
80 # large (as on some very old compilers), AC_TYPE_UNSIGNED_LONG_LONG_INT
81 # will not be defined. In this case you can treat 'unsigned long long int'
82 # like 'unsigned long int'.
84 AC_DEFUN([AC_TYPE_UNSIGNED_LONG_LONG_INT],
86 AC_CACHE_CHECK([for unsigned long long int],
87 [ac_cv_type_unsigned_long_long_int],
89 [_AC_TYPE_LONG_LONG_SNIPPET],
90 [ac_cv_type_unsigned_long_long_int=yes],
91 [ac_cv_type_unsigned_long_long_int=no])])
92 if test $ac_cv_type_unsigned_long_long_int = yes; then
93 AC_DEFINE([HAVE_UNSIGNED_LONG_LONG_INT], 1,
94 [Define to 1 if the system has the type `unsigned long long int'.])
98 # Expands to a C program that can be used to test for simultaneous support
99 # of 'long long' and 'unsigned long long'. We don't want to say that
100 # 'long long' is available if 'unsigned long long' is not, or vice versa,
101 # because too many programs rely on the symmetry between signed and unsigned
102 # integer types (excluding 'bool').
103 AC_DEFUN([_AC_TYPE_LONG_LONG_SNIPPET],
106 [[/* Test preprocessor. */
107 #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
108 error in preprocessor;
110 #if ! (18446744073709551615ULL <= -1ull)
111 error in preprocessor;
114 long long int ll = 9223372036854775807ll;
115 long long int nll = -9223372036854775807LL;
116 unsigned long long int ull = 18446744073709551615ULL;
117 /* Test constant expressions. */
118 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
120 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
123 [[/* Test availability of runtime routines for shift and division. */
124 long long int llmax = 9223372036854775807ll;
125 unsigned long long int ullmax = 18446744073709551615ull;
126 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
127 | (llmax / ll) | (llmax % ll)
128 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
129 | (ullmax / ull) | (ullmax % ull));]])
132 # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
134 # This file is free software; the Free Software Foundation
135 # gives unlimited permission to copy and/or distribute it,
136 # with or without modifications, as long as this notice is preserved.
138 # AM_AUTOMAKE_VERSION(VERSION)
139 # ----------------------------
140 # Automake X.Y traces this macro to ensure aclocal.m4 has been
141 # generated from the m4 files accompanying Automake X.Y.
142 # (This private macro should not be called outside this file.)
143 AC_DEFUN([AM_AUTOMAKE_VERSION],
144 [am__api_version='1.11'
145 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
146 dnl require some minimum version. Point them to the right macro.
147 m4_if([$1], [1.11.1], [],
148 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
151 # _AM_AUTOCONF_VERSION(VERSION)
152 # -----------------------------
153 # aclocal traces this macro to find the Autoconf version.
154 # This is a private macro too. Using m4_define simplifies
155 # the logic in aclocal, which can simply ignore this definition.
156 m4_define([_AM_AUTOCONF_VERSION], [])
158 # AM_SET_CURRENT_AUTOMAKE_VERSION
159 # -------------------------------
160 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
161 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
162 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
163 [AM_AUTOMAKE_VERSION([1.11.1])dnl
164 m4_ifndef([AC_AUTOCONF_VERSION],
165 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
166 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
168 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
170 # Copyright (C) 2001, 2003, 2005 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 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
177 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
178 # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
180 # Of course, Automake must honor this variable whenever it calls a
181 # tool from the auxiliary directory. The problem is that $srcdir (and
182 # therefore $ac_aux_dir as well) can be either absolute or relative,
183 # depending on how configure is run. This is pretty annoying, since
184 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
185 # source directory, any form will work fine, but in subdirectories a
186 # relative path needs to be adjusted first.
188 # $ac_aux_dir/missing
189 # fails when called from a subdirectory if $ac_aux_dir is relative
190 # $top_srcdir/$ac_aux_dir/missing
191 # fails if $ac_aux_dir is absolute,
192 # fails when called from a subdirectory in a VPATH build with
193 # a relative $ac_aux_dir
195 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
196 # are both prefixed by $srcdir. In an in-source build this is usually
197 # harmless because $srcdir is `.', but things will broke when you
198 # start a VPATH build or use an absolute $srcdir.
200 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
201 # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
202 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
203 # and then we would define $MISSING as
204 # MISSING="\${SHELL} $am_aux_dir/missing"
205 # This will work as long as MISSING is not called from configure, because
206 # unfortunately $(top_srcdir) has no meaning in configure.
207 # However there are other variables, like CC, which are often used in
208 # configure, and could therefore not use this "fixed" $ac_aux_dir.
210 # Another solution, used here, is to always expand $ac_aux_dir to an
211 # absolute PATH. The drawback is that using absolute paths prevent a
212 # configured tree to be moved without reconfiguration.
214 AC_DEFUN([AM_AUX_DIR_EXPAND],
215 [dnl Rely on autoconf to set up CDPATH properly.
217 # expand $ac_aux_dir to an absolute path
218 am_aux_dir=`cd $ac_aux_dir && pwd`
221 # AM_CONDITIONAL -*- Autoconf -*-
223 # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
224 # Free Software Foundation, Inc.
226 # This file is free software; the Free Software Foundation
227 # gives unlimited permission to copy and/or distribute it,
228 # with or without modifications, as long as this notice is preserved.
232 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
233 # -------------------------------------
234 # Define a conditional.
235 AC_DEFUN([AM_CONDITIONAL],
237 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
238 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
239 AC_SUBST([$1_TRUE])dnl
240 AC_SUBST([$1_FALSE])dnl
241 _AM_SUBST_NOTMAKE([$1_TRUE])dnl
242 _AM_SUBST_NOTMAKE([$1_FALSE])dnl
243 m4_define([_AM_COND_VALUE_$1], [$2])dnl
251 AC_CONFIG_COMMANDS_PRE(
252 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
253 AC_MSG_ERROR([[conditional "$1" was never defined.
254 Usually this means the macro was only invoked conditionally.]])
257 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
258 # Free Software Foundation, Inc.
260 # This file is free software; the Free Software Foundation
261 # gives unlimited permission to copy and/or distribute it,
262 # with or without modifications, as long as this notice is preserved.
266 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
267 # written in clear, in which case automake, when reading aclocal.m4,
268 # will think it sees a *use*, and therefore will trigger all it's
269 # C support machinery. Also note that it means that autoscan, seeing
270 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
273 # _AM_DEPENDENCIES(NAME)
274 # ----------------------
275 # See how the compiler implements dependency checking.
276 # NAME is "CC", "CXX", "GCJ", or "OBJC".
277 # We try a few techniques and use that to set a single cache variable.
279 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
280 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
281 # dependency, and given that the user is not expected to run this macro,
282 # just rely on AC_PROG_CC.
283 AC_DEFUN([_AM_DEPENDENCIES],
284 [AC_REQUIRE([AM_SET_DEPDIR])dnl
285 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
286 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
287 AC_REQUIRE([AM_DEP_TRACK])dnl
289 ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
290 [$1], CXX, [depcc="$CXX" am_compiler_list=],
291 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
292 [$1], UPC, [depcc="$UPC" am_compiler_list=],
293 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
294 [depcc="$$1" am_compiler_list=])
296 AC_CACHE_CHECK([dependency style of $depcc],
297 [am_cv_$1_dependencies_compiler_type],
298 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
299 # We make a subdir and do the tests there. Otherwise we can end up
300 # making bogus files that we don't know about and never remove. For
301 # instance it was reported that on HP-UX the gcc test will end up
302 # making a dummy file named `D' -- because `-MD' means `put the output
305 # Copy depcomp to subdir because otherwise we won't find it if we're
306 # using a relative directory.
307 cp "$am_depcomp" conftest.dir
309 # We will build objects and dependencies in a subdirectory because
310 # it helps to detect inapplicable dependency modes. For instance
311 # both Tru64's cc and ICC support -MD to output dependencies as a
312 # side effect of compilation, but ICC will put the dependencies in
313 # the current directory while Tru64 will put them in the object
317 am_cv_$1_dependencies_compiler_type=none
318 if test "$am_compiler_list" = ""; then
319 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
323 [case " $depcc " in #(
324 *\ -arch\ *\ -arch\ *) am__universal=true ;;
327 [case " $depcc " in #(
328 *\ -arch\ *\ -arch\ *) am__universal=true ;;
331 for depmode in $am_compiler_list; do
332 # Setup a source with many dependencies, because some compilers
333 # like to wrap large dependency lists on column 80 (with \), and
334 # we should not choose a depcomp mode which is confused by this.
336 # We need to recreate these files for each test, as the compiler may
337 # overwrite some of them when testing with obscure command lines.
338 # This happens at least with the AIX C compiler.
340 for i in 1 2 3 4 5 6; do
341 echo '#include "conftst'$i'.h"' >> sub/conftest.c
342 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
343 # Solaris 8's {/usr,}/bin/sh.
344 touch sub/conftst$i.h
346 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
348 # We check with `-c' and `-o' for the sake of the "dashmstdout"
349 # mode. It turns out that the SunPro C++ compiler does not properly
350 # handle `-M -o', and we need to detect this. Also, some Intel
351 # versions had trouble with output in subdirs
352 am__obj=sub/conftest.${OBJEXT-o}
353 am__minus_obj="-o $am__obj"
356 # This depmode causes a compiler race in universal mode.
357 test "$am__universal" = false || continue
360 # after this tag, mechanisms are not by side-effect, so they'll
361 # only be used when explicitly requested
362 if test "x$enable_dependency_tracking" = xyes; then
368 msvisualcpp | msvcmsys)
369 # This compiler won't grok `-c -o', but also, the minuso test has
370 # not run yet. These depmodes are late enough in the game, and
371 # so weak that their functioning should not be impacted.
372 am__obj=conftest.${OBJEXT-o}
377 if depmode=$depmode \
378 source=sub/conftest.c object=$am__obj \
379 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
380 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
381 >/dev/null 2>conftest.err &&
382 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
383 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
384 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
385 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
386 # icc doesn't choke on unknown options, it will just issue warnings
387 # or remarks (even with -Werror). So we grep stderr for any message
388 # that says an option was ignored or not supported.
389 # When given -MP, icc 7.0 and 7.1 complain thusly:
390 # icc: Command line warning: ignoring option '-M'; no argument required
391 # The diagnosis changed in icc 8.0:
392 # icc: Command line remark: option '-MP' not supported
393 if (grep 'ignoring option' conftest.err ||
394 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
395 am_cv_$1_dependencies_compiler_type=$depmode
404 am_cv_$1_dependencies_compiler_type=none
407 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
408 AM_CONDITIONAL([am__fastdep$1], [
409 test "x$enable_dependency_tracking" != xno \
410 && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
416 # Choose a directory name for dependency files.
417 # This macro is AC_REQUIREd in _AM_DEPENDENCIES
418 AC_DEFUN([AM_SET_DEPDIR],
419 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
420 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
426 AC_DEFUN([AM_DEP_TRACK],
427 [AC_ARG_ENABLE(dependency-tracking,
428 [ --disable-dependency-tracking speeds up one-time build
429 --enable-dependency-tracking do not reject slow dependency extractors])
430 if test "x$enable_dependency_tracking" != xno; then
431 am_depcomp="$ac_aux_dir/depcomp"
434 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
435 AC_SUBST([AMDEPBACKSLASH])dnl
436 _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
439 # Generate code to set up dependency tracking. -*- Autoconf -*-
441 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
442 # Free Software Foundation, Inc.
444 # This file is free software; the Free Software Foundation
445 # gives unlimited permission to copy and/or distribute it,
446 # with or without modifications, as long as this notice is preserved.
450 # _AM_OUTPUT_DEPENDENCY_COMMANDS
451 # ------------------------------
452 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
454 # Autoconf 2.62 quotes --file arguments for eval, but not when files
455 # are listed without --file. Let's play safe and only enable the eval
456 # if we detect the quoting.
457 case $CONFIG_FILES in
458 *\'*) eval set x "$CONFIG_FILES" ;;
459 *) set x $CONFIG_FILES ;;
464 # Strip MF so we end up with the name of the file.
465 mf=`echo "$mf" | sed -e 's/:.*$//'`
466 # Check whether this is an Automake generated Makefile or not.
467 # We used to match only the files named `Makefile.in', but
468 # some people rename them; so instead we look at the file content.
469 # Grep'ing the first line is not enough: some people post-process
470 # each Makefile.in and add a new line on top of each file to say so.
471 # Grep'ing the whole file is not good either: AIX grep has a line
472 # limit of 2048, but all sed's we know have understand at least 4000.
473 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
474 dirpart=`AS_DIRNAME("$mf")`
478 # Extract the definition of DEPDIR, am__include, and am__quote
479 # from the Makefile without running `make'.
480 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
481 test -z "$DEPDIR" && continue
482 am__include=`sed -n 's/^am__include = //p' < "$mf"`
483 test -z "am__include" && continue
484 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
485 # When using ansi2knr, U may be empty or an underscore; expand it
486 U=`sed -n 's/^U = //p' < "$mf"`
487 # Find all dependency output files, they are included files with
488 # $(DEPDIR) in their names. We invoke sed twice because it is the
489 # simplest approach to changing $(DEPDIR) to its actual value in the
491 for file in `sed -n "
492 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
493 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
494 # Make sure the directory exists.
495 test -f "$dirpart/$file" && continue
496 fdir=`AS_DIRNAME(["$file"])`
497 AS_MKDIR_P([$dirpart/$fdir])
498 # echo "creating $dirpart/$file"
499 echo '# dummy' > "$dirpart/$file"
503 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
506 # AM_OUTPUT_DEPENDENCY_COMMANDS
507 # -----------------------------
508 # This macro should only be invoked once -- use via AC_REQUIRE.
510 # This code is only required when automatic dependency tracking
511 # is enabled. FIXME. This creates each `.P' file that we will
512 # need in order to bootstrap the dependency handling code.
513 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
514 [AC_CONFIG_COMMANDS([depfiles],
515 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
516 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
519 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
520 # Free Software Foundation, Inc.
522 # This file is free software; the Free Software Foundation
523 # gives unlimited permission to copy and/or distribute it,
524 # with or without modifications, as long as this notice is preserved.
528 # AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
529 AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
531 # Do all the work for Automake. -*- Autoconf -*-
533 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
534 # 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
536 # This file is free software; the Free Software Foundation
537 # gives unlimited permission to copy and/or distribute it,
538 # with or without modifications, as long as this notice is preserved.
542 # This macro actually does too much. Some checks are only needed if
543 # your package does certain things. But this isn't really a big deal.
545 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
546 # AM_INIT_AUTOMAKE([OPTIONS])
547 # -----------------------------------------------
548 # The call with PACKAGE and VERSION arguments is the old style
549 # call (pre autoconf-2.50), which is being phased out. PACKAGE
550 # and VERSION should now be passed to AC_INIT and removed from
551 # the call to AM_INIT_AUTOMAKE.
552 # We support both call styles for the transition. After
553 # the next Automake release, Autoconf can make the AC_INIT
554 # arguments mandatory, and then we can depend on a new Autoconf
555 # release and drop the old call support.
556 AC_DEFUN([AM_INIT_AUTOMAKE],
557 [AC_PREREQ([2.62])dnl
558 dnl Autoconf wants to disallow AM_ names. We explicitly allow
559 dnl the ones we care about.
560 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
561 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
562 AC_REQUIRE([AC_PROG_INSTALL])dnl
563 if test "`cd $srcdir && pwd`" != "`pwd`"; then
564 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
565 # is not polluted with repeated "-I."
566 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
567 # test to see if srcdir already configured
568 if test -f $srcdir/config.status; then
569 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
573 # test whether we have cygpath
574 if test -z "$CYGPATH_W"; then
575 if (cygpath --version) >/dev/null 2>/dev/null; then
576 CYGPATH_W='cygpath -w'
581 AC_SUBST([CYGPATH_W])
583 # Define the identity of the package.
584 dnl Distinguish between old-style and new-style calls.
586 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
587 AC_SUBST([PACKAGE], [$1])dnl
588 AC_SUBST([VERSION], [$2])],
589 [_AM_SET_OPTIONS([$1])dnl
590 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
591 m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
592 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
593 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
594 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
596 _AM_IF_OPTION([no-define],,
597 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
598 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
600 # Some tools Automake needs.
601 AC_REQUIRE([AM_SANITY_CHECK])dnl
602 AC_REQUIRE([AC_ARG_PROGRAM])dnl
603 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
604 AM_MISSING_PROG(AUTOCONF, autoconf)
605 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
606 AM_MISSING_PROG(AUTOHEADER, autoheader)
607 AM_MISSING_PROG(MAKEINFO, makeinfo)
608 AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
609 AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
610 AC_REQUIRE([AM_PROG_MKDIR_P])dnl
611 # We need awk for the "check" target. The system "awk" is bad on
613 AC_REQUIRE([AC_PROG_AWK])dnl
614 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
615 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
616 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
617 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
618 [_AM_PROG_TAR([v7])])])
619 _AM_IF_OPTION([no-dependencies],,
620 [AC_PROVIDE_IFELSE([AC_PROG_CC],
621 [_AM_DEPENDENCIES(CC)],
622 [define([AC_PROG_CC],
623 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
624 AC_PROVIDE_IFELSE([AC_PROG_CXX],
625 [_AM_DEPENDENCIES(CXX)],
626 [define([AC_PROG_CXX],
627 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
628 AC_PROVIDE_IFELSE([AC_PROG_OBJC],
629 [_AM_DEPENDENCIES(OBJC)],
630 [define([AC_PROG_OBJC],
631 defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
633 _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
634 dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
635 dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
636 dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
637 AC_CONFIG_COMMANDS_PRE(dnl
638 [m4_provide_if([_AM_COMPILER_EXEEXT],
639 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
642 dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
643 dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
644 dnl mangled by Autoconf and run in a shell conditional statement.
645 m4_define([_AC_COMPILER_EXEEXT],
646 m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
649 # When config.status generates a header, we must update the stamp-h file.
650 # This file resides in the same directory as the config header
651 # that is generated. The stamp files are numbered to have different names.
653 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
654 # loop where config.status creates the headers, so we can generate
655 # our stamp files there.
656 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
657 [# Compute $1's index in $config_headers.
660 for _am_header in $config_headers :; do
662 $_am_arg | $_am_arg:* )
665 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
668 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
670 # Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc.
672 # This file is free software; the Free Software Foundation
673 # gives unlimited permission to copy and/or distribute it,
674 # with or without modifications, as long as this notice is preserved.
678 # Define $install_sh.
679 AC_DEFUN([AM_PROG_INSTALL_SH],
680 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
681 if test x"${install_sh}" != xset; then
684 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
686 install_sh="\${SHELL} $am_aux_dir/install-sh"
689 AC_SUBST(install_sh)])
691 # Copyright (C) 2003, 2005 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 # Check whether the underlying file-system supports filenames
700 # with a leading dot. For instance MS-DOS doesn't.
701 AC_DEFUN([AM_SET_LEADING_DOT],
702 [rm -rf .tst 2>/dev/null
703 mkdir .tst 2>/dev/null
704 if test -d .tst; then
709 rmdir .tst 2>/dev/null
710 AC_SUBST([am__leading_dot])])
712 # Check to see how 'make' treats includes. -*- Autoconf -*-
714 # Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
716 # This file is free software; the Free Software Foundation
717 # gives unlimited permission to copy and/or distribute it,
718 # with or without modifications, as long as this notice is preserved.
724 # Check to see how make treats includes.
725 AC_DEFUN([AM_MAKE_INCLUDE],
726 [am_make=${MAKE-make}
727 cat > confinc << 'END'
729 @echo this is the am__doit target
732 # If we don't find an include directive, just comment out the code.
733 AC_MSG_CHECKING([for style of include used by $am_make])
737 # First try GNU make style include.
738 echo "include confinc" > confmf
739 # Ignore all kinds of additional output from `make'.
740 case `$am_make -s -f confmf 2> /dev/null` in #(
741 *the\ am__doit\ target*)
747 # Now try BSD make style include.
748 if test "$am__include" = "#"; then
749 echo '.include "confinc"' > confmf
750 case `$am_make -s -f confmf 2> /dev/null` in #(
751 *the\ am__doit\ target*)
758 AC_SUBST([am__include])
759 AC_SUBST([am__quote])
760 AC_MSG_RESULT([$_am_result])
764 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
766 # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
767 # Free Software Foundation, Inc.
769 # This file is free software; the Free Software Foundation
770 # gives unlimited permission to copy and/or distribute it,
771 # with or without modifications, as long as this notice is preserved.
775 # AM_MISSING_PROG(NAME, PROGRAM)
776 # ------------------------------
777 AC_DEFUN([AM_MISSING_PROG],
778 [AC_REQUIRE([AM_MISSING_HAS_RUN])
779 $1=${$1-"${am_missing_run}$2"}
785 # Define MISSING if not defined so far and test if it supports --run.
786 # If it does, set am_missing_run to use it, otherwise, to nothing.
787 AC_DEFUN([AM_MISSING_HAS_RUN],
788 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
789 AC_REQUIRE_AUX_FILE([missing])dnl
790 if test x"${MISSING+set}" != xset; then
793 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
795 MISSING="\${SHELL} $am_aux_dir/missing" ;;
798 # Use eval to expand $SHELL
799 if eval "$MISSING --run true"; then
800 am_missing_run="$MISSING --run "
803 AC_MSG_WARN([`missing' script is too old or missing])
807 # Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
809 # This file is free software; the Free Software Foundation
810 # gives unlimited permission to copy and/or distribute it,
811 # with or without modifications, as long as this notice is preserved.
815 # Check for `mkdir -p'.
816 AC_DEFUN([AM_PROG_MKDIR_P],
817 [AC_PREREQ([2.60])dnl
818 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
819 dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
820 dnl while keeping a definition of mkdir_p for backward compatibility.
821 dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
822 dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
823 dnl Makefile.ins that do not define MKDIR_P, so we do our own
824 dnl adjustment using top_builddir (which is defined more often than
826 AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
828 [[\\/$]]* | ?:[[\\/]]*) ;;
829 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
833 # Helper functions for option handling. -*- Autoconf -*-
835 # Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc.
837 # This file is free software; the Free Software Foundation
838 # gives unlimited permission to copy and/or distribute it,
839 # with or without modifications, as long as this notice is preserved.
843 # _AM_MANGLE_OPTION(NAME)
844 # -----------------------
845 AC_DEFUN([_AM_MANGLE_OPTION],
846 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
848 # _AM_SET_OPTION(NAME)
849 # ------------------------------
850 # Set option NAME. Presently that only means defining a flag for this option.
851 AC_DEFUN([_AM_SET_OPTION],
852 [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
854 # _AM_SET_OPTIONS(OPTIONS)
855 # ----------------------------------
856 # OPTIONS is a space-separated list of Automake options.
857 AC_DEFUN([_AM_SET_OPTIONS],
858 [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
860 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
861 # -------------------------------------------
862 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
863 AC_DEFUN([_AM_IF_OPTION],
864 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
866 # Copyright (C) 1996, 1997, 1998, 2000, 2001, 2002, 2003, 2005, 2006
867 # Free Software Foundation, Inc.
869 # This file is free software; the Free Software Foundation
870 # gives unlimited permission to copy and/or distribute it,
871 # with or without modifications, as long as this notice is preserved.
875 AC_DEFUN([AM_C_PROTOTYPES],
876 [AC_REQUIRE([AC_C_PROTOTYPES])
877 if test "$ac_cv_prog_cc_stdc" != no; then
880 U=_ ANSI2KNR=./ansi2knr
882 # Ensure some checks needed by ansi2knr itself.
883 AC_REQUIRE([AC_HEADER_STDC])
884 AC_CHECK_HEADERS([string.h])
886 AC_SUBST([ANSI2KNR])dnl
887 _AM_SUBST_NOTMAKE([ANSI2KNR])dnl
890 AU_DEFUN([fp_C_PROTOTYPES], [AM_C_PROTOTYPES])
892 # Check to make sure that the build environment is sane. -*- Autoconf -*-
894 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
895 # Free Software Foundation, Inc.
897 # This file is free software; the Free Software Foundation
898 # gives unlimited permission to copy and/or distribute it,
899 # with or without modifications, as long as this notice is preserved.
905 AC_DEFUN([AM_SANITY_CHECK],
906 [AC_MSG_CHECKING([whether build environment is sane])
909 echo timestamp > conftest.file
910 # Reject unsafe characters in $srcdir or the absolute working directory
911 # name. Accept space and tab only in the latter.
915 *[[\\\"\#\$\&\'\`$am_lf]]*)
916 AC_MSG_ERROR([unsafe absolute working directory name]);;
919 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
920 AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
923 # Do `set' in a subshell so we don't clobber the current shell's
924 # arguments. Must try -L first in case configure is actually a
925 # symlink; some systems play weird games with the mod time of symlinks
926 # (eg FreeBSD returns the mod time of the symlink's containing
929 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
930 if test "$[*]" = "X"; then
932 set X `ls -t "$srcdir/configure" conftest.file`
935 if test "$[*]" != "X $srcdir/configure conftest.file" \
936 && test "$[*]" != "X conftest.file $srcdir/configure"; then
938 # If neither matched, then we have a broken ls. This can happen
939 # if, for instance, CONFIG_SHELL is bash and it inherits a
940 # broken ls alias from the environment. This has actually
941 # happened. Such a system could not be considered "sane".
942 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
943 alias in your environment])
946 test "$[2]" = conftest.file
952 AC_MSG_ERROR([newly created file is older than distributed files!
953 Check your system clock])
957 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
959 # This file is free software; the Free Software Foundation
960 # gives unlimited permission to copy and/or distribute it,
961 # with or without modifications, as long as this notice is preserved.
963 # AM_PROG_INSTALL_STRIP
964 # ---------------------
965 # One issue with vendor `install' (even GNU) is that you can't
966 # specify the program used to strip binaries. This is especially
967 # annoying in cross-compiling environments, where the build's strip
968 # is unlikely to handle the host's binaries.
969 # Fortunately install-sh will honor a STRIPPROG variable, so we
970 # always use install-sh in `make install-strip', and initialize
971 # STRIPPROG with the value of the STRIP variable (set by the user).
972 AC_DEFUN([AM_PROG_INSTALL_STRIP],
973 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
974 # Installed binaries are usually stripped using `strip' when the user
975 # run `make install-strip'. However `strip' might not be the right
976 # tool to use in cross-compilation environments, therefore Automake
977 # will honor the `STRIP' environment variable to overrule this program.
978 dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
979 if test "$cross_compiling" != no; then
980 AC_CHECK_TOOL([STRIP], [strip], :)
982 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
983 AC_SUBST([INSTALL_STRIP_PROGRAM])])
985 # Copyright (C) 2006, 2008 Free Software Foundation, Inc.
987 # This file is free software; the Free Software Foundation
988 # gives unlimited permission to copy and/or distribute it,
989 # with or without modifications, as long as this notice is preserved.
993 # _AM_SUBST_NOTMAKE(VARIABLE)
994 # ---------------------------
995 # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
996 # This macro is traced by Automake.
997 AC_DEFUN([_AM_SUBST_NOTMAKE])
999 # AM_SUBST_NOTMAKE(VARIABLE)
1000 # ---------------------------
1001 # Public sister of _AM_SUBST_NOTMAKE.
1002 AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
1004 # Check how to create a tarball. -*- Autoconf -*-
1006 # Copyright (C) 2004, 2005 Free Software Foundation, Inc.
1008 # This file is free software; the Free Software Foundation
1009 # gives unlimited permission to copy and/or distribute it,
1010 # with or without modifications, as long as this notice is preserved.
1014 # _AM_PROG_TAR(FORMAT)
1015 # --------------------
1016 # Check how to create a tarball in format FORMAT.
1017 # FORMAT should be one of `v7', `ustar', or `pax'.
1019 # Substitute a variable $(am__tar) that is a command
1020 # writing to stdout a FORMAT-tarball containing the directory
1022 # tardir=directory && $(am__tar) > result.tar
1024 # Substitute a variable $(am__untar) that extract such
1025 # a tarball read from stdin.
1026 # $(am__untar) < result.tar
1027 AC_DEFUN([_AM_PROG_TAR],
1028 [# Always define AMTAR for backward compatibility.
1029 AM_MISSING_PROG([AMTAR], [tar])
1031 [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
1032 [m4_case([$1], [ustar],, [pax],,
1033 [m4_fatal([Unknown tar format])])
1034 AC_MSG_CHECKING([how to create a $1 tar archive])
1035 # Loop over all known methods to create a tar archive until one works.
1036 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
1037 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
1038 # Do not fold the above two line into one, because Tru64 sh and
1039 # Solaris sh will not grok spaces in the rhs of `-'.
1040 for _am_tool in $_am_tools
1044 for _am_tar in tar gnutar gtar;
1046 AM_RUN_LOG([$_am_tar --version]) && break
1048 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
1049 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
1050 am__untar="$_am_tar -xf -"
1053 # Must skip GNU tar: if it does not support --format= it doesn't create
1054 # ustar tarball either.
1055 (tar --version) >/dev/null 2>&1 && continue
1056 am__tar='tar chf - "$$tardir"'
1057 am__tar_='tar chf - "$tardir"'
1058 am__untar='tar xf -'
1061 am__tar='pax -L -x $1 -w "$$tardir"'
1062 am__tar_='pax -L -x $1 -w "$tardir"'
1066 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
1067 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
1068 am__untar='cpio -i -H $1 -d'
1077 # If the value was cached, stop now. We just wanted to have am__tar
1078 # and am__untar set.
1079 test -n "${am_cv_prog_tar_$1}" && break
1081 # tar/untar a dummy directory, and stop if the command works
1084 echo GrepMe > conftest.dir/file
1085 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1087 if test -s conftest.tar; then
1088 AM_RUN_LOG([$am__untar <conftest.tar])
1089 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1094 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1095 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1097 AC_SUBST([am__untar])
1100 m4_include([m4/codeset.m4])
1101 m4_include([m4/curslib.m4])
1102 m4_include([m4/funcdecl.m4])
1103 m4_include([m4/funcs.m4])
1104 m4_include([m4/gettext.m4])
1105 m4_include([m4/glibc21.m4])
1106 m4_include([m4/gpgme.m4])
1107 m4_include([m4/gssapi.m4])
1108 m4_include([m4/iconv.m4])
1109 m4_include([m4/lcmessage.m4])
1110 m4_include([m4/progtest.m4])
1111 m4_include([m4/types.m4])