1 # generated automatically by aclocal 1.10.1 -*- Autoconf -*-
3 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4 # 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
5 # This file is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
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(AC_AUTOCONF_VERSION, [2.61],,
17 [m4_warning([this file was generated for autoconf 2.61.
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 # isc-posix.m4 serial 2 (gettext-0.11.2)
23 dnl Copyright (C) 1995-2002 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.
28 # This file is not needed with autoconf-2.53 and newer. Remove it in 2005.
30 # This test replaces the one in autoconf.
31 # Currently this macro should have the same name as the autoconf macro
32 # because gettext's gettext.m4 (distributed in the automake package)
33 # still uses it. Otherwise, the use in gettext.m4 makes autoheader
34 # give these diagnostics:
35 # configure.in:556: AC_TRY_COMPILE was called before AC_ISC_POSIX
36 # configure.in:556: AC_TRY_RUN was called before AC_ISC_POSIX
38 undefine([AC_ISC_POSIX])
40 AC_DEFUN([AC_ISC_POSIX],
42 dnl This test replaces the obsolescent AC_ISC_POSIX kludge.
43 AC_CHECK_LIB(cposix, strerror, [LIBS="$LIBS -lcposix"])
47 # Copyright (C) 2002, 2003, 2005, 2006, 2007 Free Software Foundation, Inc.
49 # This file is free software; the Free Software Foundation
50 # gives unlimited permission to copy and/or distribute it,
51 # with or without modifications, as long as this notice is preserved.
53 # AM_AUTOMAKE_VERSION(VERSION)
54 # ----------------------------
55 # Automake X.Y traces this macro to ensure aclocal.m4 has been
56 # generated from the m4 files accompanying Automake X.Y.
57 # (This private macro should not be called outside this file.)
58 AC_DEFUN([AM_AUTOMAKE_VERSION],
59 [am__api_version='1.10'
60 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
61 dnl require some minimum version. Point them to the right macro.
62 m4_if([$1], [1.10.1], [],
63 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
66 # _AM_AUTOCONF_VERSION(VERSION)
67 # -----------------------------
68 # aclocal traces this macro to find the Autoconf version.
69 # This is a private macro too. Using m4_define simplifies
70 # the logic in aclocal, which can simply ignore this definition.
71 m4_define([_AM_AUTOCONF_VERSION], [])
73 # AM_SET_CURRENT_AUTOMAKE_VERSION
74 # -------------------------------
75 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
76 # This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
77 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
78 [AM_AUTOMAKE_VERSION([1.10.1])dnl
79 m4_ifndef([AC_AUTOCONF_VERSION],
80 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
81 _AM_AUTOCONF_VERSION(AC_AUTOCONF_VERSION)])
83 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
85 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
87 # This file is free software; the Free Software Foundation
88 # gives unlimited permission to copy and/or distribute it,
89 # with or without modifications, as long as this notice is preserved.
91 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
92 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
93 # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
95 # Of course, Automake must honor this variable whenever it calls a
96 # tool from the auxiliary directory. The problem is that $srcdir (and
97 # therefore $ac_aux_dir as well) can be either absolute or relative,
98 # depending on how configure is run. This is pretty annoying, since
99 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
100 # source directory, any form will work fine, but in subdirectories a
101 # relative path needs to be adjusted first.
103 # $ac_aux_dir/missing
104 # fails when called from a subdirectory if $ac_aux_dir is relative
105 # $top_srcdir/$ac_aux_dir/missing
106 # fails if $ac_aux_dir is absolute,
107 # fails when called from a subdirectory in a VPATH build with
108 # a relative $ac_aux_dir
110 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
111 # are both prefixed by $srcdir. In an in-source build this is usually
112 # harmless because $srcdir is `.', but things will broke when you
113 # start a VPATH build or use an absolute $srcdir.
115 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
116 # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
117 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
118 # and then we would define $MISSING as
119 # MISSING="\${SHELL} $am_aux_dir/missing"
120 # This will work as long as MISSING is not called from configure, because
121 # unfortunately $(top_srcdir) has no meaning in configure.
122 # However there are other variables, like CC, which are often used in
123 # configure, and could therefore not use this "fixed" $ac_aux_dir.
125 # Another solution, used here, is to always expand $ac_aux_dir to an
126 # absolute PATH. The drawback is that using absolute paths prevent a
127 # configured tree to be moved without reconfiguration.
129 AC_DEFUN([AM_AUX_DIR_EXPAND],
130 [dnl Rely on autoconf to set up CDPATH properly.
132 # expand $ac_aux_dir to an absolute path
133 am_aux_dir=`cd $ac_aux_dir && pwd`
136 # AM_CONDITIONAL -*- Autoconf -*-
138 # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
139 # Free Software Foundation, Inc.
141 # This file is free software; the Free Software Foundation
142 # gives unlimited permission to copy and/or distribute it,
143 # with or without modifications, as long as this notice is preserved.
147 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
148 # -------------------------------------
149 # Define a conditional.
150 AC_DEFUN([AM_CONDITIONAL],
152 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
153 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
154 AC_SUBST([$1_TRUE])dnl
155 AC_SUBST([$1_FALSE])dnl
156 _AM_SUBST_NOTMAKE([$1_TRUE])dnl
157 _AM_SUBST_NOTMAKE([$1_FALSE])dnl
165 AC_CONFIG_COMMANDS_PRE(
166 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
167 AC_MSG_ERROR([[conditional "$1" was never defined.
168 Usually this means the macro was only invoked conditionally.]])
171 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
172 # Free Software Foundation, Inc.
174 # This file is free software; the Free Software Foundation
175 # gives unlimited permission to copy and/or distribute it,
176 # with or without modifications, as long as this notice is preserved.
180 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
181 # written in clear, in which case automake, when reading aclocal.m4,
182 # will think it sees a *use*, and therefore will trigger all it's
183 # C support machinery. Also note that it means that autoscan, seeing
184 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
187 # _AM_DEPENDENCIES(NAME)
188 # ----------------------
189 # See how the compiler implements dependency checking.
190 # NAME is "CC", "CXX", "GCJ", or "OBJC".
191 # We try a few techniques and use that to set a single cache variable.
193 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
194 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
195 # dependency, and given that the user is not expected to run this macro,
196 # just rely on AC_PROG_CC.
197 AC_DEFUN([_AM_DEPENDENCIES],
198 [AC_REQUIRE([AM_SET_DEPDIR])dnl
199 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
200 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
201 AC_REQUIRE([AM_DEP_TRACK])dnl
203 ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
204 [$1], CXX, [depcc="$CXX" am_compiler_list=],
205 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
206 [$1], UPC, [depcc="$UPC" am_compiler_list=],
207 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
208 [depcc="$$1" am_compiler_list=])
210 AC_CACHE_CHECK([dependency style of $depcc],
211 [am_cv_$1_dependencies_compiler_type],
212 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
213 # We make a subdir and do the tests there. Otherwise we can end up
214 # making bogus files that we don't know about and never remove. For
215 # instance it was reported that on HP-UX the gcc test will end up
216 # making a dummy file named `D' -- because `-MD' means `put the output
219 # Copy depcomp to subdir because otherwise we won't find it if we're
220 # using a relative directory.
221 cp "$am_depcomp" conftest.dir
223 # We will build objects and dependencies in a subdirectory because
224 # it helps to detect inapplicable dependency modes. For instance
225 # both Tru64's cc and ICC support -MD to output dependencies as a
226 # side effect of compilation, but ICC will put the dependencies in
227 # the current directory while Tru64 will put them in the object
231 am_cv_$1_dependencies_compiler_type=none
232 if test "$am_compiler_list" = ""; then
233 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
235 for depmode in $am_compiler_list; do
236 # Setup a source with many dependencies, because some compilers
237 # like to wrap large dependency lists on column 80 (with \), and
238 # we should not choose a depcomp mode which is confused by this.
240 # We need to recreate these files for each test, as the compiler may
241 # overwrite some of them when testing with obscure command lines.
242 # This happens at least with the AIX C compiler.
244 for i in 1 2 3 4 5 6; do
245 echo '#include "conftst'$i'.h"' >> sub/conftest.c
246 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
247 # Solaris 8's {/usr,}/bin/sh.
248 touch sub/conftst$i.h
250 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
254 # after this tag, mechanisms are not by side-effect, so they'll
255 # only be used when explicitly requested
256 if test "x$enable_dependency_tracking" = xyes; then
264 # We check with `-c' and `-o' for the sake of the "dashmstdout"
265 # mode. It turns out that the SunPro C++ compiler does not properly
266 # handle `-M -o', and we need to detect this.
267 if depmode=$depmode \
268 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
269 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
270 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
271 >/dev/null 2>conftest.err &&
272 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
273 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
274 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
275 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
276 # icc doesn't choke on unknown options, it will just issue warnings
277 # or remarks (even with -Werror). So we grep stderr for any message
278 # that says an option was ignored or not supported.
279 # When given -MP, icc 7.0 and 7.1 complain thusly:
280 # icc: Command line warning: ignoring option '-M'; no argument required
281 # The diagnosis changed in icc 8.0:
282 # icc: Command line remark: option '-MP' not supported
283 if (grep 'ignoring option' conftest.err ||
284 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
285 am_cv_$1_dependencies_compiler_type=$depmode
294 am_cv_$1_dependencies_compiler_type=none
297 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
298 AM_CONDITIONAL([am__fastdep$1], [
299 test "x$enable_dependency_tracking" != xno \
300 && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
306 # Choose a directory name for dependency files.
307 # This macro is AC_REQUIREd in _AM_DEPENDENCIES
308 AC_DEFUN([AM_SET_DEPDIR],
309 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
310 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
316 AC_DEFUN([AM_DEP_TRACK],
317 [AC_ARG_ENABLE(dependency-tracking,
318 [ --disable-dependency-tracking speeds up one-time build
319 --enable-dependency-tracking do not reject slow dependency extractors])
320 if test "x$enable_dependency_tracking" != xno; then
321 am_depcomp="$ac_aux_dir/depcomp"
324 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
325 AC_SUBST([AMDEPBACKSLASH])dnl
326 _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
329 # Generate code to set up dependency tracking. -*- Autoconf -*-
331 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
332 # Free Software Foundation, Inc.
334 # This file is free software; the Free Software Foundation
335 # gives unlimited permission to copy and/or distribute it,
336 # with or without modifications, as long as this notice is preserved.
340 # _AM_OUTPUT_DEPENDENCY_COMMANDS
341 # ------------------------------
342 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
343 [for mf in $CONFIG_FILES; do
344 # Strip MF so we end up with the name of the file.
345 mf=`echo "$mf" | sed -e 's/:.*$//'`
346 # Check whether this is an Automake generated Makefile or not.
347 # We used to match only the files named `Makefile.in', but
348 # some people rename them; so instead we look at the file content.
349 # Grep'ing the first line is not enough: some people post-process
350 # each Makefile.in and add a new line on top of each file to say so.
351 # Grep'ing the whole file is not good either: AIX grep has a line
352 # limit of 2048, but all sed's we know have understand at least 4000.
353 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
354 dirpart=`AS_DIRNAME("$mf")`
358 # Extract the definition of DEPDIR, am__include, and am__quote
359 # from the Makefile without running `make'.
360 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
361 test -z "$DEPDIR" && continue
362 am__include=`sed -n 's/^am__include = //p' < "$mf"`
363 test -z "am__include" && continue
364 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
365 # When using ansi2knr, U may be empty or an underscore; expand it
366 U=`sed -n 's/^U = //p' < "$mf"`
367 # Find all dependency output files, they are included files with
368 # $(DEPDIR) in their names. We invoke sed twice because it is the
369 # simplest approach to changing $(DEPDIR) to its actual value in the
371 for file in `sed -n "
372 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
373 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
374 # Make sure the directory exists.
375 test -f "$dirpart/$file" && continue
376 fdir=`AS_DIRNAME(["$file"])`
377 AS_MKDIR_P([$dirpart/$fdir])
378 # echo "creating $dirpart/$file"
379 echo '# dummy' > "$dirpart/$file"
382 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
385 # AM_OUTPUT_DEPENDENCY_COMMANDS
386 # -----------------------------
387 # This macro should only be invoked once -- use via AC_REQUIRE.
389 # This code is only required when automatic dependency tracking
390 # is enabled. FIXME. This creates each `.P' file that we will
391 # need in order to bootstrap the dependency handling code.
392 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
393 [AC_CONFIG_COMMANDS([depfiles],
394 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
395 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
398 # Do all the work for Automake. -*- Autoconf -*-
400 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
401 # 2005, 2006, 2008 Free Software Foundation, Inc.
403 # This file is free software; the Free Software Foundation
404 # gives unlimited permission to copy and/or distribute it,
405 # with or without modifications, as long as this notice is preserved.
409 # This macro actually does too much. Some checks are only needed if
410 # your package does certain things. But this isn't really a big deal.
412 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
413 # AM_INIT_AUTOMAKE([OPTIONS])
414 # -----------------------------------------------
415 # The call with PACKAGE and VERSION arguments is the old style
416 # call (pre autoconf-2.50), which is being phased out. PACKAGE
417 # and VERSION should now be passed to AC_INIT and removed from
418 # the call to AM_INIT_AUTOMAKE.
419 # We support both call styles for the transition. After
420 # the next Automake release, Autoconf can make the AC_INIT
421 # arguments mandatory, and then we can depend on a new Autoconf
422 # release and drop the old call support.
423 AC_DEFUN([AM_INIT_AUTOMAKE],
424 [AC_PREREQ([2.60])dnl
425 dnl Autoconf wants to disallow AM_ names. We explicitly allow
426 dnl the ones we care about.
427 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
428 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
429 AC_REQUIRE([AC_PROG_INSTALL])dnl
430 if test "`cd $srcdir && pwd`" != "`pwd`"; then
431 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
432 # is not polluted with repeated "-I."
433 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
434 # test to see if srcdir already configured
435 if test -f $srcdir/config.status; then
436 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
440 # test whether we have cygpath
441 if test -z "$CYGPATH_W"; then
442 if (cygpath --version) >/dev/null 2>/dev/null; then
443 CYGPATH_W='cygpath -w'
448 AC_SUBST([CYGPATH_W])
450 # Define the identity of the package.
451 dnl Distinguish between old-style and new-style calls.
453 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
454 AC_SUBST([PACKAGE], [$1])dnl
455 AC_SUBST([VERSION], [$2])],
456 [_AM_SET_OPTIONS([$1])dnl
457 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
458 m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
459 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
460 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
461 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
463 _AM_IF_OPTION([no-define],,
464 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
465 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
467 # Some tools Automake needs.
468 AC_REQUIRE([AM_SANITY_CHECK])dnl
469 AC_REQUIRE([AC_ARG_PROGRAM])dnl
470 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
471 AM_MISSING_PROG(AUTOCONF, autoconf)
472 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
473 AM_MISSING_PROG(AUTOHEADER, autoheader)
474 AM_MISSING_PROG(MAKEINFO, makeinfo)
476 AM_PROG_INSTALL_STRIP
477 AC_REQUIRE([AM_PROG_MKDIR_P])dnl
478 # We need awk for the "check" target. The system "awk" is bad on
480 AC_REQUIRE([AC_PROG_AWK])dnl
481 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
482 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
483 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
484 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
485 [_AM_PROG_TAR([v7])])])
486 _AM_IF_OPTION([no-dependencies],,
487 [AC_PROVIDE_IFELSE([AC_PROG_CC],
488 [_AM_DEPENDENCIES(CC)],
489 [define([AC_PROG_CC],
490 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
491 AC_PROVIDE_IFELSE([AC_PROG_CXX],
492 [_AM_DEPENDENCIES(CXX)],
493 [define([AC_PROG_CXX],
494 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
495 AC_PROVIDE_IFELSE([AC_PROG_OBJC],
496 [_AM_DEPENDENCIES(OBJC)],
497 [define([AC_PROG_OBJC],
498 defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
503 # When config.status generates a header, we must update the stamp-h file.
504 # This file resides in the same directory as the config header
505 # that is generated. The stamp files are numbered to have different names.
507 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
508 # loop where config.status creates the headers, so we can generate
509 # our stamp files there.
510 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
511 [# Compute $1's index in $config_headers.
514 for _am_header in $config_headers :; do
516 $_am_arg | $_am_arg:* )
519 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
522 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
524 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
526 # This file is free software; the Free Software Foundation
527 # gives unlimited permission to copy and/or distribute it,
528 # with or without modifications, as long as this notice is preserved.
532 # Define $install_sh.
533 AC_DEFUN([AM_PROG_INSTALL_SH],
534 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
535 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
536 AC_SUBST(install_sh)])
538 # Copyright (C) 2003, 2005 Free Software Foundation, Inc.
540 # This file is free software; the Free Software Foundation
541 # gives unlimited permission to copy and/or distribute it,
542 # with or without modifications, as long as this notice is preserved.
546 # Check whether the underlying file-system supports filenames
547 # with a leading dot. For instance MS-DOS doesn't.
548 AC_DEFUN([AM_SET_LEADING_DOT],
549 [rm -rf .tst 2>/dev/null
550 mkdir .tst 2>/dev/null
551 if test -d .tst; then
556 rmdir .tst 2>/dev/null
557 AC_SUBST([am__leading_dot])])
559 # Check to see how 'make' treats includes. -*- Autoconf -*-
561 # Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
563 # This file is free software; the Free Software Foundation
564 # gives unlimited permission to copy and/or distribute it,
565 # with or without modifications, as long as this notice is preserved.
571 # Check to see how make treats includes.
572 AC_DEFUN([AM_MAKE_INCLUDE],
573 [am_make=${MAKE-make}
574 cat > confinc << 'END'
579 # If we don't find an include directive, just comment out the code.
580 AC_MSG_CHECKING([for style of include used by $am_make])
584 # First try GNU make style include.
585 echo "include confinc" > confmf
586 # We grep out `Entering directory' and `Leaving directory'
587 # messages which can occur if `w' ends up in MAKEFLAGS.
588 # In particular we don't look at `^make:' because GNU make might
589 # be invoked under some other name (usually "gmake"), in which
590 # case it prints its new name instead of `make'.
591 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
596 # Now try BSD make style include.
597 if test "$am__include" = "#"; then
598 echo '.include "confinc"' > confmf
599 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
605 AC_SUBST([am__include])
606 AC_SUBST([am__quote])
607 AC_MSG_RESULT([$_am_result])
611 # Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005
612 # Free Software Foundation, Inc.
614 # This file is free software; the Free Software Foundation
615 # gives unlimited permission to copy and/or distribute it,
616 # with or without modifications, as long as this notice is preserved.
622 # Like AC_PROG_CC_C_O, but changed for automake.
623 AC_DEFUN([AM_PROG_CC_C_O],
624 [AC_REQUIRE([AC_PROG_CC_C_O])dnl
625 AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
626 AC_REQUIRE_AUX_FILE([compile])dnl
627 # FIXME: we rely on the cache variable name because
628 # there is no other way.
630 ac_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
631 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
632 # Losing compiler, so override with the script.
633 # FIXME: It is wrong to rewrite CC.
634 # But if we don't then we get into trouble of one sort or another.
635 # A longer-term fix would be to have automake use am__CC in this case,
636 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
637 CC="$am_aux_dir/compile $CC"
639 dnl Make sure AC_PROG_CC is never called again, or it will override our
641 m4_define([AC_PROG_CC],
642 [m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])])
645 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
647 # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
648 # Free Software Foundation, Inc.
650 # This file is free software; the Free Software Foundation
651 # gives unlimited permission to copy and/or distribute it,
652 # with or without modifications, as long as this notice is preserved.
656 # AM_MISSING_PROG(NAME, PROGRAM)
657 # ------------------------------
658 AC_DEFUN([AM_MISSING_PROG],
659 [AC_REQUIRE([AM_MISSING_HAS_RUN])
660 $1=${$1-"${am_missing_run}$2"}
666 # Define MISSING if not defined so far and test if it supports --run.
667 # If it does, set am_missing_run to use it, otherwise, to nothing.
668 AC_DEFUN([AM_MISSING_HAS_RUN],
669 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
670 AC_REQUIRE_AUX_FILE([missing])dnl
671 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
672 # Use eval to expand $SHELL
673 if eval "$MISSING --run true"; then
674 am_missing_run="$MISSING --run "
677 AC_MSG_WARN([`missing' script is too old or missing])
681 # Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
683 # This file is free software; the Free Software Foundation
684 # gives unlimited permission to copy and/or distribute it,
685 # with or without modifications, as long as this notice is preserved.
689 # Check for `mkdir -p'.
690 AC_DEFUN([AM_PROG_MKDIR_P],
691 [AC_PREREQ([2.60])dnl
692 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
693 dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
694 dnl while keeping a definition of mkdir_p for backward compatibility.
695 dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
696 dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
697 dnl Makefile.ins that do not define MKDIR_P, so we do our own
698 dnl adjustment using top_builddir (which is defined more often than
700 AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
702 [[\\/$]]* | ?:[[\\/]]*) ;;
703 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
707 # Helper functions for option handling. -*- Autoconf -*-
709 # Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
711 # This file is free software; the Free Software Foundation
712 # gives unlimited permission to copy and/or distribute it,
713 # with or without modifications, as long as this notice is preserved.
717 # _AM_MANGLE_OPTION(NAME)
718 # -----------------------
719 AC_DEFUN([_AM_MANGLE_OPTION],
720 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
722 # _AM_SET_OPTION(NAME)
723 # ------------------------------
724 # Set option NAME. Presently that only means defining a flag for this option.
725 AC_DEFUN([_AM_SET_OPTION],
726 [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
728 # _AM_SET_OPTIONS(OPTIONS)
729 # ----------------------------------
730 # OPTIONS is a space-separated list of Automake options.
731 AC_DEFUN([_AM_SET_OPTIONS],
732 [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
734 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
735 # -------------------------------------------
736 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
737 AC_DEFUN([_AM_IF_OPTION],
738 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
740 # Copyright (C) 2001, 2003, 2005 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.
746 # AM_RUN_LOG(COMMAND)
747 # -------------------
748 # Run COMMAND, save the exit status in ac_status, and log it.
749 # (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
750 AC_DEFUN([AM_RUN_LOG],
751 [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
752 ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
754 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
755 (exit $ac_status); }])
757 # Check to make sure that the build environment is sane. -*- Autoconf -*-
759 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
760 # Free Software Foundation, Inc.
762 # This file is free software; the Free Software Foundation
763 # gives unlimited permission to copy and/or distribute it,
764 # with or without modifications, as long as this notice is preserved.
770 AC_DEFUN([AM_SANITY_CHECK],
771 [AC_MSG_CHECKING([whether build environment is sane])
774 echo timestamp > conftest.file
775 # Do `set' in a subshell so we don't clobber the current shell's
776 # arguments. Must try -L first in case configure is actually a
777 # symlink; some systems play weird games with the mod time of symlinks
778 # (eg FreeBSD returns the mod time of the symlink's containing
781 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
782 if test "$[*]" = "X"; then
784 set X `ls -t $srcdir/configure conftest.file`
787 if test "$[*]" != "X $srcdir/configure conftest.file" \
788 && test "$[*]" != "X conftest.file $srcdir/configure"; then
790 # If neither matched, then we have a broken ls. This can happen
791 # if, for instance, CONFIG_SHELL is bash and it inherits a
792 # broken ls alias from the environment. This has actually
793 # happened. Such a system could not be considered "sane".
794 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
795 alias in your environment])
798 test "$[2]" = conftest.file
804 AC_MSG_ERROR([newly created file is older than distributed files!
805 Check your system clock])
809 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
811 # This file is free software; the Free Software Foundation
812 # gives unlimited permission to copy and/or distribute it,
813 # with or without modifications, as long as this notice is preserved.
815 # AM_PROG_INSTALL_STRIP
816 # ---------------------
817 # One issue with vendor `install' (even GNU) is that you can't
818 # specify the program used to strip binaries. This is especially
819 # annoying in cross-compiling environments, where the build's strip
820 # is unlikely to handle the host's binaries.
821 # Fortunately install-sh will honor a STRIPPROG variable, so we
822 # always use install-sh in `make install-strip', and initialize
823 # STRIPPROG with the value of the STRIP variable (set by the user).
824 AC_DEFUN([AM_PROG_INSTALL_STRIP],
825 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
826 # Installed binaries are usually stripped using `strip' when the user
827 # run `make install-strip'. However `strip' might not be the right
828 # tool to use in cross-compilation environments, therefore Automake
829 # will honor the `STRIP' environment variable to overrule this program.
830 dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
831 if test "$cross_compiling" != no; then
832 AC_CHECK_TOOL([STRIP], [strip], :)
834 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
835 AC_SUBST([INSTALL_STRIP_PROGRAM])])
837 # Copyright (C) 2006 Free Software Foundation, Inc.
839 # This file is free software; the Free Software Foundation
840 # gives unlimited permission to copy and/or distribute it,
841 # with or without modifications, as long as this notice is preserved.
843 # _AM_SUBST_NOTMAKE(VARIABLE)
844 # ---------------------------
845 # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
846 # This macro is traced by Automake.
847 AC_DEFUN([_AM_SUBST_NOTMAKE])
849 # Check how to create a tarball. -*- Autoconf -*-
851 # Copyright (C) 2004, 2005 Free Software Foundation, Inc.
853 # This file is free software; the Free Software Foundation
854 # gives unlimited permission to copy and/or distribute it,
855 # with or without modifications, as long as this notice is preserved.
859 # _AM_PROG_TAR(FORMAT)
860 # --------------------
861 # Check how to create a tarball in format FORMAT.
862 # FORMAT should be one of `v7', `ustar', or `pax'.
864 # Substitute a variable $(am__tar) that is a command
865 # writing to stdout a FORMAT-tarball containing the directory
867 # tardir=directory && $(am__tar) > result.tar
869 # Substitute a variable $(am__untar) that extract such
870 # a tarball read from stdin.
871 # $(am__untar) < result.tar
872 AC_DEFUN([_AM_PROG_TAR],
873 [# Always define AMTAR for backward compatibility.
874 AM_MISSING_PROG([AMTAR], [tar])
876 [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
877 [m4_case([$1], [ustar],, [pax],,
878 [m4_fatal([Unknown tar format])])
879 AC_MSG_CHECKING([how to create a $1 tar archive])
880 # Loop over all known methods to create a tar archive until one works.
881 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
882 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
883 # Do not fold the above two line into one, because Tru64 sh and
884 # Solaris sh will not grok spaces in the rhs of `-'.
885 for _am_tool in $_am_tools
889 for _am_tar in tar gnutar gtar;
891 AM_RUN_LOG([$_am_tar --version]) && break
893 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
894 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
895 am__untar="$_am_tar -xf -"
898 # Must skip GNU tar: if it does not support --format= it doesn't create
899 # ustar tarball either.
900 (tar --version) >/dev/null 2>&1 && continue
901 am__tar='tar chf - "$$tardir"'
902 am__tar_='tar chf - "$tardir"'
906 am__tar='pax -L -x $1 -w "$$tardir"'
907 am__tar_='pax -L -x $1 -w "$tardir"'
911 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
912 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
913 am__untar='cpio -i -H $1 -d'
922 # If the value was cached, stop now. We just wanted to have am__tar
924 test -n "${am_cv_prog_tar_$1}" && break
926 # tar/untar a dummy directory, and stop if the command works
929 echo GrepMe > conftest.dir/file
930 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
932 if test -s conftest.tar; then
933 AM_RUN_LOG([$am__untar <conftest.tar])
934 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
939 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
940 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
942 AC_SUBST([am__untar])
945 m4_include([m4/00gnulib.m4])
946 m4_include([m4/alloca.m4])
947 m4_include([m4/argmatch.m4])
948 m4_include([m4/argp.m4])
949 m4_include([m4/backupfile.m4])
950 m4_include([m4/bison.m4])
951 m4_include([m4/btowc.m4])
952 m4_include([m4/canonicalize-lgpl.m4])
953 m4_include([m4/chdir-long.m4])
954 m4_include([m4/chown.m4])
955 m4_include([m4/clock_time.m4])
956 m4_include([m4/close-stream.m4])
957 m4_include([m4/close.m4])
958 m4_include([m4/closeout.m4])
959 m4_include([m4/codeset.m4])
960 m4_include([m4/d-ino.m4])
961 m4_include([m4/dirent_h.m4])
962 m4_include([m4/dirfd.m4])
963 m4_include([m4/dirname.m4])
964 m4_include([m4/dos.m4])
965 m4_include([m4/double-slash-root.m4])
966 m4_include([m4/dup2.m4])
967 m4_include([m4/eealloc.m4])
968 m4_include([m4/environ.m4])
969 m4_include([m4/errno_h.m4])
970 m4_include([m4/error.m4])
971 m4_include([m4/exclude.m4])
972 m4_include([m4/exitfail.m4])
973 m4_include([m4/extensions.m4])
974 m4_include([m4/fchdir.m4])
975 m4_include([m4/fclose.m4])
976 m4_include([m4/fcntl-safer.m4])
977 m4_include([m4/fcntl_h.m4])
978 m4_include([m4/fileblocks.m4])
979 m4_include([m4/float_h.m4])
980 m4_include([m4/fnmatch.m4])
981 m4_include([m4/fpending.m4])
982 m4_include([m4/fseeko.m4])
983 m4_include([m4/ftruncate.m4])
984 m4_include([m4/getcwd-abort-bug.m4])
985 m4_include([m4/getcwd-path-max.m4])
986 m4_include([m4/getcwd.m4])
987 m4_include([m4/getdate.m4])
988 m4_include([m4/getdelim.m4])
989 m4_include([m4/getline.m4])
990 m4_include([m4/getopt.m4])
991 m4_include([m4/getpagesize.m4])
992 m4_include([m4/gettext.m4])
993 m4_include([m4/gettime.m4])
994 m4_include([m4/gettimeofday.m4])
995 m4_include([m4/glibc21.m4])
996 m4_include([m4/gnulib-common.m4])
997 m4_include([m4/gnulib-comp.m4])
998 m4_include([m4/hash.m4])
999 m4_include([m4/human.m4])
1000 m4_include([m4/iconv.m4])
1001 m4_include([m4/include_next.m4])
1002 m4_include([m4/inline.m4])
1003 m4_include([m4/intlmacosx.m4])
1004 m4_include([m4/intmax_t.m4])
1005 m4_include([m4/inttostr.m4])
1006 m4_include([m4/inttypes-pri.m4])
1007 m4_include([m4/inttypes.m4])
1008 m4_include([m4/inttypes_h.m4])
1009 m4_include([m4/lchown.m4])
1010 m4_include([m4/lib-ld.m4])
1011 m4_include([m4/lib-link.m4])
1012 m4_include([m4/lib-prefix.m4])
1013 m4_include([m4/localcharset.m4])
1014 m4_include([m4/locale-fr.m4])
1015 m4_include([m4/locale-ja.m4])
1016 m4_include([m4/locale-zh.m4])
1017 m4_include([m4/longlong.m4])
1018 m4_include([m4/lseek.m4])
1019 m4_include([m4/lstat.m4])
1020 m4_include([m4/malloc.m4])
1021 m4_include([m4/malloca.m4])
1022 m4_include([m4/mbchar.m4])
1023 m4_include([m4/mbiter.m4])
1024 m4_include([m4/mbrtowc.m4])
1025 m4_include([m4/mbscasecmp.m4])
1026 m4_include([m4/mbsinit.m4])
1027 m4_include([m4/mbstate_t.m4])
1028 m4_include([m4/mempcpy.m4])
1029 m4_include([m4/memrchr.m4])
1030 m4_include([m4/mkdtemp.m4])
1031 m4_include([m4/mktime.m4])
1032 m4_include([m4/modechange.m4])
1033 m4_include([m4/multiarch.m4])
1034 m4_include([m4/nls.m4])
1035 m4_include([m4/open.m4])
1036 m4_include([m4/openat.m4])
1037 m4_include([m4/pathmax.m4])
1038 m4_include([m4/paxutils.m4])
1039 m4_include([m4/po.m4])
1040 m4_include([m4/printf.m4])
1041 m4_include([m4/progtest.m4])
1042 m4_include([m4/quote.m4])
1043 m4_include([m4/quotearg.m4])
1044 m4_include([m4/rawmemchr.m4])
1045 m4_include([m4/readlink.m4])
1046 m4_include([m4/realloc.m4])
1047 m4_include([m4/regex.m4])
1048 m4_include([m4/rmt.m4])
1049 m4_include([m4/rpmatch.m4])
1050 m4_include([m4/rtapelib.m4])
1051 m4_include([m4/safe-read.m4])
1052 m4_include([m4/safe-write.m4])
1053 m4_include([m4/save-cwd.m4])
1054 m4_include([m4/savedir.m4])
1055 m4_include([m4/setenv.m4])
1056 m4_include([m4/size_max.m4])
1057 m4_include([m4/sleep.m4])
1058 m4_include([m4/snprintf.m4])
1059 m4_include([m4/ssize_t.m4])
1060 m4_include([m4/stat-time.m4])
1061 m4_include([m4/stdarg.m4])
1062 m4_include([m4/stdbool.m4])
1063 m4_include([m4/stdint.m4])
1064 m4_include([m4/stdint_h.m4])
1065 m4_include([m4/stdio_h.m4])
1066 m4_include([m4/stdlib_h.m4])
1067 m4_include([m4/stpcpy.m4])
1068 m4_include([m4/strcase.m4])
1069 m4_include([m4/strchrnul.m4])
1070 m4_include([m4/strdup.m4])
1071 m4_include([m4/strerror.m4])
1072 m4_include([m4/string_h.m4])
1073 m4_include([m4/strings_h.m4])
1074 m4_include([m4/strndup.m4])
1075 m4_include([m4/strnlen.m4])
1076 m4_include([m4/strtoimax.m4])
1077 m4_include([m4/strtol.m4])
1078 m4_include([m4/strtoll.m4])
1079 m4_include([m4/strtoul.m4])
1080 m4_include([m4/strtoull.m4])
1081 m4_include([m4/strtoumax.m4])
1082 m4_include([m4/sys_stat_h.m4])
1083 m4_include([m4/sys_time_h.m4])
1084 m4_include([m4/sysexits.m4])
1085 m4_include([m4/system.m4])
1086 m4_include([m4/tempname.m4])
1087 m4_include([m4/time_h.m4])
1088 m4_include([m4/time_r.m4])
1089 m4_include([m4/timespec.m4])
1090 m4_include([m4/tm_gmtoff.m4])
1091 m4_include([m4/unistd-safer.m4])
1092 m4_include([m4/unistd_h.m4])
1093 m4_include([m4/unlinkdir.m4])
1094 m4_include([m4/unlocked-io.m4])
1095 m4_include([m4/utimbuf.m4])
1096 m4_include([m4/utime.m4])
1097 m4_include([m4/utimens.m4])
1098 m4_include([m4/utimes-null.m4])
1099 m4_include([m4/utimes.m4])
1100 m4_include([m4/vasnprintf.m4])
1101 m4_include([m4/vsnprintf.m4])
1102 m4_include([m4/wchar.m4])
1103 m4_include([m4/wchar_t.m4])
1104 m4_include([m4/wcrtomb.m4])
1105 m4_include([m4/wctype.m4])
1106 m4_include([m4/wcwidth.m4])
1107 m4_include([m4/wint_t.m4])
1108 m4_include([m4/write.m4])
1109 m4_include([m4/xalloc.m4])
1110 m4_include([m4/xgetcwd.m4])
1111 m4_include([m4/xsize.m4])
1112 m4_include([m4/xstrndup.m4])
1113 m4_include([m4/xstrtol.m4])