1 # generated automatically by aclocal 1.7.3 -*- Autoconf -*-
3 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002
4 # 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 AC_DEFUN([AC_DEFINE_DIR], [
15 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
16 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17 ac_define_dir=`eval echo [$]$2`
18 ac_define_dir=`eval echo [$]ac_define_dir`
20 AC_DEFINE_UNQUOTED($1, "$ac_define_dir"),
21 AC_DEFINE_UNQUOTED($1, "$ac_define_dir", $3))
25 # Do all the work for Automake. -*- Autoconf -*-
27 # This macro actually does too much some checks are only needed if
28 # your package does certain things. But this isn't really a big deal.
30 # Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
31 # Free Software Foundation, Inc.
33 # This program is free software; you can redistribute it and/or modify
34 # it under the terms of the GNU General Public License as published by
35 # the Free Software Foundation; either version 2, or (at your option)
38 # This program is distributed in the hope that it will be useful,
39 # but WITHOUT ANY WARRANTY; without even the implied warranty of
40 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
41 # GNU General Public License for more details.
43 # You should have received a copy of the GNU General Public License
44 # along with this program; if not, write to the Free Software
45 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
50 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
51 # written in clear, in which case automake, when reading aclocal.m4,
52 # will think it sees a *use*, and therefore will trigger all it's
53 # C support machinery. Also note that it means that autoscan, seeing
54 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
59 # Autoconf 2.50 wants to disallow AM_ names. We explicitly allow
60 # the ones we care about.
61 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
63 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
64 # AM_INIT_AUTOMAKE([OPTIONS])
65 # -----------------------------------------------
66 # The call with PACKAGE and VERSION arguments is the old style
67 # call (pre autoconf-2.50), which is being phased out. PACKAGE
68 # and VERSION should now be passed to AC_INIT and removed from
69 # the call to AM_INIT_AUTOMAKE.
70 # We support both call styles for the transition. After
71 # the next Automake release, Autoconf can make the AC_INIT
72 # arguments mandatory, and then we can depend on a new Autoconf
73 # release and drop the old call support.
74 AC_DEFUN([AM_INIT_AUTOMAKE],
75 [AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
76 AC_REQUIRE([AC_PROG_INSTALL])dnl
77 # test to see if srcdir already configured
78 if test "`cd $srcdir && pwd`" != "`pwd`" &&
79 test -f $srcdir/config.status; then
80 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
83 # test whether we have cygpath
84 if test -z "$CYGPATH_W"; then
85 if (cygpath --version) >/dev/null 2>/dev/null; then
86 CYGPATH_W='cygpath -w'
93 # Define the identity of the package.
94 dnl Distinguish between old-style and new-style calls.
96 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
97 AC_SUBST([PACKAGE], [$1])dnl
98 AC_SUBST([VERSION], [$2])],
99 [_AM_SET_OPTIONS([$1])dnl
100 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
101 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
103 _AM_IF_OPTION([no-define],,
104 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
105 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
107 # Some tools Automake needs.
108 AC_REQUIRE([AM_SANITY_CHECK])dnl
109 AC_REQUIRE([AC_ARG_PROGRAM])dnl
110 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
111 AM_MISSING_PROG(AUTOCONF, autoconf)
112 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
113 AM_MISSING_PROG(AUTOHEADER, autoheader)
114 AM_MISSING_PROG(MAKEINFO, makeinfo)
115 AM_MISSING_PROG(AMTAR, tar)
117 AM_PROG_INSTALL_STRIP
118 # We need awk for the "check" target. The system "awk" is bad on
120 AC_REQUIRE([AC_PROG_AWK])dnl
121 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
122 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
124 _AM_IF_OPTION([no-dependencies],,
125 [AC_PROVIDE_IFELSE([AC_PROG_CC],
126 [_AM_DEPENDENCIES(CC)],
127 [define([AC_PROG_CC],
128 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
129 AC_PROVIDE_IFELSE([AC_PROG_CXX],
130 [_AM_DEPENDENCIES(CXX)],
131 [define([AC_PROG_CXX],
132 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
137 # When config.status generates a header, we must update the stamp-h file.
138 # This file resides in the same directory as the config header
139 # that is generated. The stamp files are numbered to have different names.
141 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
142 # loop where config.status creates the headers, so we can generate
143 # our stamp files there.
144 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
145 [# Compute $1's index in $config_headers.
147 for _am_header in $config_headers :; do
152 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
155 echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
157 # Copyright 2002 Free Software Foundation, Inc.
159 # This program is free software; you can redistribute it and/or modify
160 # it under the terms of the GNU General Public License as published by
161 # the Free Software Foundation; either version 2, or (at your option)
164 # This program is distributed in the hope that it will be useful,
165 # but WITHOUT ANY WARRANTY; without even the implied warranty of
166 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
167 # GNU General Public License for more details.
169 # You should have received a copy of the GNU General Public License
170 # along with this program; if not, write to the Free Software
171 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
173 # AM_AUTOMAKE_VERSION(VERSION)
174 # ----------------------------
175 # Automake X.Y traces this macro to ensure aclocal.m4 has been
176 # generated from the m4 files accompanying Automake X.Y.
177 AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.7"])
179 # AM_SET_CURRENT_AUTOMAKE_VERSION
180 # -------------------------------
181 # Call AM_AUTOMAKE_VERSION so it can be traced.
182 # This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
183 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
184 [AM_AUTOMAKE_VERSION([1.7.3])])
186 # Helper functions for option handling. -*- Autoconf -*-
188 # Copyright 2001, 2002 Free Software Foundation, Inc.
190 # This program is free software; you can redistribute it and/or modify
191 # it under the terms of the GNU General Public License as published by
192 # the Free Software Foundation; either version 2, or (at your option)
195 # This program is distributed in the hope that it will be useful,
196 # but WITHOUT ANY WARRANTY; without even the implied warranty of
197 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
198 # GNU General Public License for more details.
200 # You should have received a copy of the GNU General Public License
201 # along with this program; if not, write to the Free Software
202 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
207 # _AM_MANGLE_OPTION(NAME)
208 # -----------------------
209 AC_DEFUN([_AM_MANGLE_OPTION],
210 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
212 # _AM_SET_OPTION(NAME)
213 # ------------------------------
214 # Set option NAME. Presently that only means defining a flag for this option.
215 AC_DEFUN([_AM_SET_OPTION],
216 [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
218 # _AM_SET_OPTIONS(OPTIONS)
219 # ----------------------------------
220 # OPTIONS is a space-separated list of Automake options.
221 AC_DEFUN([_AM_SET_OPTIONS],
222 [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
224 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
225 # -------------------------------------------
226 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
227 AC_DEFUN([_AM_IF_OPTION],
228 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
231 # Check to make sure that the build environment is sane.
234 # Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
236 # This program is free software; you can redistribute it and/or modify
237 # it under the terms of the GNU General Public License as published by
238 # the Free Software Foundation; either version 2, or (at your option)
241 # This program is distributed in the hope that it will be useful,
242 # but WITHOUT ANY WARRANTY; without even the implied warranty of
243 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
244 # GNU General Public License for more details.
246 # You should have received a copy of the GNU General Public License
247 # along with this program; if not, write to the Free Software
248 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
255 AC_DEFUN([AM_SANITY_CHECK],
256 [AC_MSG_CHECKING([whether build environment is sane])
259 echo timestamp > conftest.file
260 # Do `set' in a subshell so we don't clobber the current shell's
261 # arguments. Must try -L first in case configure is actually a
262 # symlink; some systems play weird games with the mod time of symlinks
263 # (eg FreeBSD returns the mod time of the symlink's containing
266 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
267 if test "$[*]" = "X"; then
269 set X `ls -t $srcdir/configure conftest.file`
272 if test "$[*]" != "X $srcdir/configure conftest.file" \
273 && test "$[*]" != "X conftest.file $srcdir/configure"; then
275 # If neither matched, then we have a broken ls. This can happen
276 # if, for instance, CONFIG_SHELL is bash and it inherits a
277 # broken ls alias from the environment. This has actually
278 # happened. Such a system could not be considered "sane".
279 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
280 alias in your environment])
283 test "$[2]" = conftest.file
289 AC_MSG_ERROR([newly created file is older than distributed files!
290 Check your system clock])
297 # Copyright 1997, 1999, 2000, 2001 Free Software Foundation, Inc.
299 # This program is free software; you can redistribute it and/or modify
300 # it under the terms of the GNU General Public License as published by
301 # the Free Software Foundation; either version 2, or (at your option)
304 # This program is distributed in the hope that it will be useful,
305 # but WITHOUT ANY WARRANTY; without even the implied warranty of
306 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
307 # GNU General Public License for more details.
309 # You should have received a copy of the GNU General Public License
310 # along with this program; if not, write to the Free Software
311 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
316 # AM_MISSING_PROG(NAME, PROGRAM)
317 # ------------------------------
318 AC_DEFUN([AM_MISSING_PROG],
319 [AC_REQUIRE([AM_MISSING_HAS_RUN])
320 $1=${$1-"${am_missing_run}$2"}
326 # Define MISSING if not defined so far and test if it supports --run.
327 # If it does, set am_missing_run to use it, otherwise, to nothing.
328 AC_DEFUN([AM_MISSING_HAS_RUN],
329 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
330 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
331 # Use eval to expand $SHELL
332 if eval "$MISSING --run true"; then
333 am_missing_run="$MISSING --run "
336 AC_MSG_WARN([`missing' script is too old or missing])
342 # Copyright 2001 Free Software Foundation, Inc.
344 # This program is free software; you can redistribute it and/or modify
345 # it under the terms of the GNU General Public License as published by
346 # the Free Software Foundation; either version 2, or (at your option)
349 # This program is distributed in the hope that it will be useful,
350 # but WITHOUT ANY WARRANTY; without even the implied warranty of
351 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
352 # GNU General Public License for more details.
354 # You should have received a copy of the GNU General Public License
355 # along with this program; if not, write to the Free Software
356 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
359 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
360 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
361 # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
363 # Of course, Automake must honor this variable whenever it calls a
364 # tool from the auxiliary directory. The problem is that $srcdir (and
365 # therefore $ac_aux_dir as well) can be either absolute or relative,
366 # depending on how configure is run. This is pretty annoying, since
367 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
368 # source directory, any form will work fine, but in subdirectories a
369 # relative path needs to be adjusted first.
371 # $ac_aux_dir/missing
372 # fails when called from a subdirectory if $ac_aux_dir is relative
373 # $top_srcdir/$ac_aux_dir/missing
374 # fails if $ac_aux_dir is absolute,
375 # fails when called from a subdirectory in a VPATH build with
376 # a relative $ac_aux_dir
378 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
379 # are both prefixed by $srcdir. In an in-source build this is usually
380 # harmless because $srcdir is `.', but things will broke when you
381 # start a VPATH build or use an absolute $srcdir.
383 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
384 # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
385 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
386 # and then we would define $MISSING as
387 # MISSING="\${SHELL} $am_aux_dir/missing"
388 # This will work as long as MISSING is not called from configure, because
389 # unfortunately $(top_srcdir) has no meaning in configure.
390 # However there are other variables, like CC, which are often used in
391 # configure, and could therefore not use this "fixed" $ac_aux_dir.
393 # Another solution, used here, is to always expand $ac_aux_dir to an
394 # absolute PATH. The drawback is that using absolute paths prevent a
395 # configured tree to be moved without reconfiguration.
397 # Rely on autoconf to set up CDPATH properly.
400 AC_DEFUN([AM_AUX_DIR_EXPAND], [
401 # expand $ac_aux_dir to an absolute path
402 am_aux_dir=`cd $ac_aux_dir && pwd`
407 # Define $install_sh.
409 # Copyright 2001 Free Software Foundation, Inc.
411 # This program is free software; you can redistribute it and/or modify
412 # it under the terms of the GNU General Public License as published by
413 # the Free Software Foundation; either version 2, or (at your option)
416 # This program is distributed in the hope that it will be useful,
417 # but WITHOUT ANY WARRANTY; without even the implied warranty of
418 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
419 # GNU General Public License for more details.
421 # You should have received a copy of the GNU General Public License
422 # along with this program; if not, write to the Free Software
423 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
426 AC_DEFUN([AM_PROG_INSTALL_SH],
427 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
428 install_sh=${install_sh-"$am_aux_dir/install-sh"}
429 AC_SUBST(install_sh)])
431 # AM_PROG_INSTALL_STRIP
433 # Copyright 2001 Free Software Foundation, Inc.
435 # This program is free software; you can redistribute it and/or modify
436 # it under the terms of the GNU General Public License as published by
437 # the Free Software Foundation; either version 2, or (at your option)
440 # This program is distributed in the hope that it will be useful,
441 # but WITHOUT ANY WARRANTY; without even the implied warranty of
442 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
443 # GNU General Public License for more details.
445 # You should have received a copy of the GNU General Public License
446 # along with this program; if not, write to the Free Software
447 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
450 # One issue with vendor `install' (even GNU) is that you can't
451 # specify the program used to strip binaries. This is especially
452 # annoying in cross-compiling environments, where the build's strip
453 # is unlikely to handle the host's binaries.
454 # Fortunately install-sh will honor a STRIPPROG variable, so we
455 # always use install-sh in `make install-strip', and initialize
456 # STRIPPROG with the value of the STRIP variable (set by the user).
457 AC_DEFUN([AM_PROG_INSTALL_STRIP],
458 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
459 # Installed binaries are usually stripped using `strip' when the user
460 # run `make install-strip'. However `strip' might not be the right
461 # tool to use in cross-compilation environments, therefore Automake
462 # will honor the `STRIP' environment variable to overrule this program.
463 dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
464 if test "$cross_compiling" != no; then
465 AC_CHECK_TOOL([STRIP], [strip], :)
467 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
468 AC_SUBST([INSTALL_STRIP_PROGRAM])])
471 # Copyright (C) 2003 Free Software Foundation, Inc.
473 # This program is free software; you can redistribute it and/or modify
474 # it under the terms of the GNU General Public License as published by
475 # the Free Software Foundation; either version 2, or (at your option)
478 # This program is distributed in the hope that it will be useful,
479 # but WITHOUT ANY WARRANTY; without even the implied warranty of
480 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
481 # GNU General Public License for more details.
483 # You should have received a copy of the GNU General Public License
484 # along with this program; if not, write to the Free Software
485 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
490 # Check whether the underlying file-system supports filenames
491 # with a leading dot. For instance MS-DOS doesn't.
492 AC_DEFUN([AM_SET_LEADING_DOT],
493 [rm -rf .tst 2>/dev/null
494 mkdir .tst 2>/dev/null
495 if test -d .tst; then
500 rmdir .tst 2>/dev/null
501 AC_SUBST([am__leading_dot])])
503 # serial 5 -*- Autoconf -*-
505 # Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
507 # This program is free software; you can redistribute it and/or modify
508 # it under the terms of the GNU General Public License as published by
509 # the Free Software Foundation; either version 2, or (at your option)
512 # This program is distributed in the hope that it will be useful,
513 # but WITHOUT ANY WARRANTY; without even the implied warranty of
514 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
515 # GNU General Public License for more details.
517 # You should have received a copy of the GNU General Public License
518 # along with this program; if not, write to the Free Software
519 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
523 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
524 # written in clear, in which case automake, when reading aclocal.m4,
525 # will think it sees a *use*, and therefore will trigger all it's
526 # C support machinery. Also note that it means that autoscan, seeing
527 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
531 # _AM_DEPENDENCIES(NAME)
532 # ----------------------
533 # See how the compiler implements dependency checking.
534 # NAME is "CC", "CXX", "GCJ", or "OBJC".
535 # We try a few techniques and use that to set a single cache variable.
537 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
538 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
539 # dependency, and given that the user is not expected to run this macro,
540 # just rely on AC_PROG_CC.
541 AC_DEFUN([_AM_DEPENDENCIES],
542 [AC_REQUIRE([AM_SET_DEPDIR])dnl
543 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
544 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
545 AC_REQUIRE([AM_DEP_TRACK])dnl
547 ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
548 [$1], CXX, [depcc="$CXX" am_compiler_list=],
549 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
550 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
551 [depcc="$$1" am_compiler_list=])
553 AC_CACHE_CHECK([dependency style of $depcc],
554 [am_cv_$1_dependencies_compiler_type],
555 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
556 # We make a subdir and do the tests there. Otherwise we can end up
557 # making bogus files that we don't know about and never remove. For
558 # instance it was reported that on HP-UX the gcc test will end up
559 # making a dummy file named `D' -- because `-MD' means `put the output
562 # Copy depcomp to subdir because otherwise we won't find it if we're
563 # using a relative directory.
564 cp "$am_depcomp" conftest.dir
567 am_cv_$1_dependencies_compiler_type=none
568 if test "$am_compiler_list" = ""; then
569 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
571 for depmode in $am_compiler_list; do
572 # We need to recreate these files for each test, as the compiler may
573 # overwrite some of them when testing with obscure command lines.
574 # This happens at least with the AIX C compiler.
575 echo '#include "conftest.h"' > conftest.c
576 echo 'int i;' > conftest.h
577 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
581 # after this tag, mechanisms are not by side-effect, so they'll
582 # only be used when explicitly requested
583 if test "x$enable_dependency_tracking" = xyes; then
591 # We check with `-c' and `-o' for the sake of the "dashmstdout"
592 # mode. It turns out that the SunPro C++ compiler does not properly
593 # handle `-M -o', and we need to detect this.
594 if depmode=$depmode \
595 source=conftest.c object=conftest.o \
596 depfile=conftest.Po tmpdepfile=conftest.TPo \
597 $SHELL ./depcomp $depcc -c -o conftest.o conftest.c \
598 >/dev/null 2>conftest.err &&
599 grep conftest.h conftest.Po > /dev/null 2>&1 &&
600 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
601 # icc doesn't choke on unknown options, it will just issue warnings
602 # (even with -Werror). So we grep stderr for any message
603 # that says an option was ignored.
604 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
605 am_cv_$1_dependencies_compiler_type=$depmode
614 am_cv_$1_dependencies_compiler_type=none
617 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
618 AM_CONDITIONAL([am__fastdep$1], [
619 test "x$enable_dependency_tracking" != xno \
620 && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
626 # Choose a directory name for dependency files.
627 # This macro is AC_REQUIREd in _AM_DEPENDENCIES
628 AC_DEFUN([AM_SET_DEPDIR],
629 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
630 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
636 AC_DEFUN([AM_DEP_TRACK],
637 [AC_ARG_ENABLE(dependency-tracking,
638 [ --disable-dependency-tracking Speeds up one-time builds
639 --enable-dependency-tracking Do not reject slow dependency extractors])
640 if test "x$enable_dependency_tracking" != xno; then
641 am_depcomp="$ac_aux_dir/depcomp"
644 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
645 AC_SUBST([AMDEPBACKSLASH])
648 # Generate code to set up dependency tracking. -*- Autoconf -*-
650 # Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
652 # This program is free software; you can redistribute it and/or modify
653 # it under the terms of the GNU General Public License as published by
654 # the Free Software Foundation; either version 2, or (at your option)
657 # This program is distributed in the hope that it will be useful,
658 # but WITHOUT ANY WARRANTY; without even the implied warranty of
659 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
660 # GNU General Public License for more details.
662 # You should have received a copy of the GNU General Public License
663 # along with this program; if not, write to the Free Software
664 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
669 # _AM_OUTPUT_DEPENDENCY_COMMANDS
670 # ------------------------------
671 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
672 [for mf in $CONFIG_FILES; do
673 # Strip MF so we end up with the name of the file.
674 mf=`echo "$mf" | sed -e 's/:.*$//'`
675 # Check whether this is an Automake generated Makefile or not.
676 # We used to match only the files named `Makefile.in', but
677 # some people rename them; so instead we look at the file content.
678 # Grep'ing the first line is not enough: some people post-process
679 # each Makefile.in and add a new line on top of each file to say so.
680 # So let's grep whole file.
681 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
682 dirpart=`AS_DIRNAME("$mf")`
686 grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue
687 # Extract the definition of DEP_FILES from the Makefile without
689 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
690 test -z "$DEPDIR" && continue
691 # When using ansi2knr, U may be empty or an underscore; expand it
692 U=`sed -n -e '/^U = / s///p' < "$mf"`
693 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
694 # We invoke sed twice because it is the simplest approach to
695 # changing $(DEPDIR) to its actual value in the expansion.
696 for file in `sed -n -e '
697 /^DEP_FILES = .*\\\\$/ {
706 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
707 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
708 # Make sure the directory exists.
709 test -f "$dirpart/$file" && continue
710 fdir=`AS_DIRNAME(["$file"])`
711 AS_MKDIR_P([$dirpart/$fdir])
712 # echo "creating $dirpart/$file"
713 echo '# dummy' > "$dirpart/$file"
716 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
719 # AM_OUTPUT_DEPENDENCY_COMMANDS
720 # -----------------------------
721 # This macro should only be invoked once -- use via AC_REQUIRE.
723 # This code is only required when automatic dependency tracking
724 # is enabled. FIXME. This creates each `.P' file that we will
725 # need in order to bootstrap the dependency handling code.
726 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
727 [AC_CONFIG_COMMANDS([depfiles],
728 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
729 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
732 # Check to see how 'make' treats includes. -*- Autoconf -*-
734 # Copyright (C) 2001, 2002 Free Software Foundation, Inc.
736 # This program is free software; you can redistribute it and/or modify
737 # it under the terms of the GNU General Public License as published by
738 # the Free Software Foundation; either version 2, or (at your option)
741 # This program is distributed in the hope that it will be useful,
742 # but WITHOUT ANY WARRANTY; without even the implied warranty of
743 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
744 # GNU General Public License for more details.
746 # You should have received a copy of the GNU General Public License
747 # along with this program; if not, write to the Free Software
748 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
755 # Check to see how make treats includes.
756 AC_DEFUN([AM_MAKE_INCLUDE],
757 [am_make=${MAKE-make}
758 cat > confinc << 'END'
762 # If we don't find an include directive, just comment out the code.
763 AC_MSG_CHECKING([for style of include used by $am_make])
767 # First try GNU make style include.
768 echo "include confinc" > confmf
769 # We grep out `Entering directory' and `Leaving directory'
770 # messages which can occur if `w' ends up in MAKEFLAGS.
771 # In particular we don't look at `^make:' because GNU make might
772 # be invoked under some other name (usually "gmake"), in which
773 # case it prints its new name instead of `make'.
774 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
779 # Now try BSD make style include.
780 if test "$am__include" = "#"; then
781 echo '.include "confinc"' > confmf
782 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
788 AC_SUBST(am__include)
790 AC_MSG_RESULT($_am_result)
794 # AM_CONDITIONAL -*- Autoconf -*-
796 # Copyright 1997, 2000, 2001 Free Software Foundation, Inc.
798 # This program is free software; you can redistribute it and/or modify
799 # it under the terms of the GNU General Public License as published by
800 # the Free Software Foundation; either version 2, or (at your option)
803 # This program is distributed in the hope that it will be useful,
804 # but WITHOUT ANY WARRANTY; without even the implied warranty of
805 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
806 # GNU General Public License for more details.
808 # You should have received a copy of the GNU General Public License
809 # along with this program; if not, write to the Free Software
810 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
817 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
818 # -------------------------------------
819 # Define a conditional.
820 AC_DEFUN([AM_CONDITIONAL],
821 [ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
822 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
832 AC_CONFIG_COMMANDS_PRE(
833 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
834 AC_MSG_ERROR([conditional "$1" was never defined.
835 Usually this means the macro was only invoked conditionally.])
838 # Like AC_CONFIG_HEADER, but automatically create stamp file. -*- Autoconf -*-
840 # Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
842 # This program is free software; you can redistribute it and/or modify
843 # it under the terms of the GNU General Public License as published by
844 # the Free Software Foundation; either version 2, or (at your option)
847 # This program is distributed in the hope that it will be useful,
848 # but WITHOUT ANY WARRANTY; without even the implied warranty of
849 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
850 # GNU General Public License for more details.
852 # You should have received a copy of the GNU General Public License
853 # along with this program; if not, write to the Free Software
854 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
861 # AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
862 AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])