1 # generated automatically by aclocal 1.7.9 -*- 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 sinclude(../config/accross.m4)
16 dnl Define MKDIR_TAKES_ONE_ARG if mkdir accepts only one argument instead
18 AC_DEFUN(gcc_AC_FUNC_MKDIR_TAKES_ONE_ARG,
19 [AC_CACHE_CHECK([if mkdir takes one argument], gcc_cv_mkdir_takes_one_arg,
21 #include <sys/types.h>
22 #ifdef HAVE_SYS_STAT_H
23 # include <sys/stat.h>
30 #endif], [mkdir ("foo", 0);],
31 gcc_cv_mkdir_takes_one_arg=no, gcc_cv_mkdir_takes_one_arg=yes)])
32 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
33 AC_DEFINE(MKDIR_TAKES_ONE_ARG, 1, [Define if host mkdir takes a
38 # Do all the work for Automake. -*- Autoconf -*-
40 # This macro actually does too much some checks are only needed if
41 # your package does certain things. But this isn't really a big deal.
43 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
44 # Free Software Foundation, Inc.
46 # This program is free software; you can redistribute it and/or modify
47 # it under the terms of the GNU General Public License as published by
48 # the Free Software Foundation; either version 2, or (at your option)
51 # This program is distributed in the hope that it will be useful,
52 # but WITHOUT ANY WARRANTY; without even the implied warranty of
53 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
54 # GNU General Public License for more details.
56 # You should have received a copy of the GNU General Public License
57 # along with this program; if not, write to the Free Software
58 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
65 # Autoconf 2.50 wants to disallow AM_ names. We explicitly allow
66 # the ones we care about.
67 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
69 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
70 # AM_INIT_AUTOMAKE([OPTIONS])
71 # -----------------------------------------------
72 # The call with PACKAGE and VERSION arguments is the old style
73 # call (pre autoconf-2.50), which is being phased out. PACKAGE
74 # and VERSION should now be passed to AC_INIT and removed from
75 # the call to AM_INIT_AUTOMAKE.
76 # We support both call styles for the transition. After
77 # the next Automake release, Autoconf can make the AC_INIT
78 # arguments mandatory, and then we can depend on a new Autoconf
79 # release and drop the old call support.
80 AC_DEFUN([AM_INIT_AUTOMAKE],
81 [AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
82 AC_REQUIRE([AC_PROG_INSTALL])dnl
83 # test to see if srcdir already configured
84 if test "`cd $srcdir && pwd`" != "`pwd`" &&
85 test -f $srcdir/config.status; then
86 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
89 # test whether we have cygpath
90 if test -z "$CYGPATH_W"; then
91 if (cygpath --version) >/dev/null 2>/dev/null; then
92 CYGPATH_W='cygpath -w'
99 # Define the identity of the package.
100 dnl Distinguish between old-style and new-style calls.
102 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
103 AC_SUBST([PACKAGE], [$1])dnl
104 AC_SUBST([VERSION], [$2])],
105 [_AM_SET_OPTIONS([$1])dnl
106 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
107 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
109 _AM_IF_OPTION([no-define],,
110 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
111 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
113 # Some tools Automake needs.
114 AC_REQUIRE([AM_SANITY_CHECK])dnl
115 AC_REQUIRE([AC_ARG_PROGRAM])dnl
116 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
117 AM_MISSING_PROG(AUTOCONF, autoconf)
118 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
119 AM_MISSING_PROG(AUTOHEADER, autoheader)
120 AM_MISSING_PROG(MAKEINFO, makeinfo)
121 AM_MISSING_PROG(AMTAR, tar)
123 AM_PROG_INSTALL_STRIP
124 # We need awk for the "check" target. The system "awk" is bad on
126 AC_REQUIRE([AC_PROG_AWK])dnl
127 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
128 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
130 _AM_IF_OPTION([no-dependencies],,
131 [AC_PROVIDE_IFELSE([AC_PROG_CC],
132 [_AM_DEPENDENCIES(CC)],
133 [define([AC_PROG_CC],
134 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
135 AC_PROVIDE_IFELSE([AC_PROG_CXX],
136 [_AM_DEPENDENCIES(CXX)],
137 [define([AC_PROG_CXX],
138 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
143 # When config.status generates a header, we must update the stamp-h file.
144 # This file resides in the same directory as the config header
145 # that is generated. The stamp files are numbered to have different names.
147 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
148 # loop where config.status creates the headers, so we can generate
149 # our stamp files there.
150 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
151 [# Compute $1's index in $config_headers.
153 for _am_header in $config_headers :; do
158 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
161 echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
163 # Copyright 2002 Free Software Foundation, Inc.
165 # This program is free software; you can redistribute it and/or modify
166 # it under the terms of the GNU General Public License as published by
167 # the Free Software Foundation; either version 2, or (at your option)
170 # This program is distributed in the hope that it will be useful,
171 # but WITHOUT ANY WARRANTY; without even the implied warranty of
172 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
173 # GNU General Public License for more details.
175 # You should have received a copy of the GNU General Public License
176 # along with this program; if not, write to the Free Software
177 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
179 # AM_AUTOMAKE_VERSION(VERSION)
180 # ----------------------------
181 # Automake X.Y traces this macro to ensure aclocal.m4 has been
182 # generated from the m4 files accompanying Automake X.Y.
183 AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.7"])
185 # AM_SET_CURRENT_AUTOMAKE_VERSION
186 # -------------------------------
187 # Call AM_AUTOMAKE_VERSION so it can be traced.
188 # This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
189 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
190 [AM_AUTOMAKE_VERSION([1.7.9])])
192 # Helper functions for option handling. -*- Autoconf -*-
194 # Copyright 2001, 2002 Free Software Foundation, Inc.
196 # This program is free software; you can redistribute it and/or modify
197 # it under the terms of the GNU General Public License as published by
198 # the Free Software Foundation; either version 2, or (at your option)
201 # This program is distributed in the hope that it will be useful,
202 # but WITHOUT ANY WARRANTY; without even the implied warranty of
203 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
204 # GNU General Public License for more details.
206 # You should have received a copy of the GNU General Public License
207 # along with this program; if not, write to the Free Software
208 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
213 # _AM_MANGLE_OPTION(NAME)
214 # -----------------------
215 AC_DEFUN([_AM_MANGLE_OPTION],
216 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
218 # _AM_SET_OPTION(NAME)
219 # ------------------------------
220 # Set option NAME. Presently that only means defining a flag for this option.
221 AC_DEFUN([_AM_SET_OPTION],
222 [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
224 # _AM_SET_OPTIONS(OPTIONS)
225 # ----------------------------------
226 # OPTIONS is a space-separated list of Automake options.
227 AC_DEFUN([_AM_SET_OPTIONS],
228 [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
230 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
231 # -------------------------------------------
232 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
233 AC_DEFUN([_AM_IF_OPTION],
234 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
237 # Check to make sure that the build environment is sane.
240 # Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
242 # This program is free software; you can redistribute it and/or modify
243 # it under the terms of the GNU General Public License as published by
244 # the Free Software Foundation; either version 2, or (at your option)
247 # This program is distributed in the hope that it will be useful,
248 # but WITHOUT ANY WARRANTY; without even the implied warranty of
249 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
250 # GNU General Public License for more details.
252 # You should have received a copy of the GNU General Public License
253 # along with this program; if not, write to the Free Software
254 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
261 AC_DEFUN([AM_SANITY_CHECK],
262 [AC_MSG_CHECKING([whether build environment is sane])
265 echo timestamp > conftest.file
266 # Do `set' in a subshell so we don't clobber the current shell's
267 # arguments. Must try -L first in case configure is actually a
268 # symlink; some systems play weird games with the mod time of symlinks
269 # (eg FreeBSD returns the mod time of the symlink's containing
272 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
273 if test "$[*]" = "X"; then
275 set X `ls -t $srcdir/configure conftest.file`
278 if test "$[*]" != "X $srcdir/configure conftest.file" \
279 && test "$[*]" != "X conftest.file $srcdir/configure"; then
281 # If neither matched, then we have a broken ls. This can happen
282 # if, for instance, CONFIG_SHELL is bash and it inherits a
283 # broken ls alias from the environment. This has actually
284 # happened. Such a system could not be considered "sane".
285 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
286 alias in your environment])
289 test "$[2]" = conftest.file
295 AC_MSG_ERROR([newly created file is older than distributed files!
296 Check your system clock])
303 # Copyright 1997, 1999, 2000, 2001 Free Software Foundation, Inc.
305 # This program is free software; you can redistribute it and/or modify
306 # it under the terms of the GNU General Public License as published by
307 # the Free Software Foundation; either version 2, or (at your option)
310 # This program is distributed in the hope that it will be useful,
311 # but WITHOUT ANY WARRANTY; without even the implied warranty of
312 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
313 # GNU General Public License for more details.
315 # You should have received a copy of the GNU General Public License
316 # along with this program; if not, write to the Free Software
317 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
322 # AM_MISSING_PROG(NAME, PROGRAM)
323 # ------------------------------
324 AC_DEFUN([AM_MISSING_PROG],
325 [AC_REQUIRE([AM_MISSING_HAS_RUN])
326 $1=${$1-"${am_missing_run}$2"}
332 # Define MISSING if not defined so far and test if it supports --run.
333 # If it does, set am_missing_run to use it, otherwise, to nothing.
334 AC_DEFUN([AM_MISSING_HAS_RUN],
335 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
336 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
337 # Use eval to expand $SHELL
338 if eval "$MISSING --run true"; then
339 am_missing_run="$MISSING --run "
342 AC_MSG_WARN([`missing' script is too old or missing])
348 # Copyright 2001 Free Software Foundation, Inc.
350 # This program is free software; you can redistribute it and/or modify
351 # it under the terms of the GNU General Public License as published by
352 # the Free Software Foundation; either version 2, or (at your option)
355 # This program is distributed in the hope that it will be useful,
356 # but WITHOUT ANY WARRANTY; without even the implied warranty of
357 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
358 # GNU General Public License for more details.
360 # You should have received a copy of the GNU General Public License
361 # along with this program; if not, write to the Free Software
362 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
365 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
366 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
367 # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
369 # Of course, Automake must honor this variable whenever it calls a
370 # tool from the auxiliary directory. The problem is that $srcdir (and
371 # therefore $ac_aux_dir as well) can be either absolute or relative,
372 # depending on how configure is run. This is pretty annoying, since
373 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
374 # source directory, any form will work fine, but in subdirectories a
375 # relative path needs to be adjusted first.
377 # $ac_aux_dir/missing
378 # fails when called from a subdirectory if $ac_aux_dir is relative
379 # $top_srcdir/$ac_aux_dir/missing
380 # fails if $ac_aux_dir is absolute,
381 # fails when called from a subdirectory in a VPATH build with
382 # a relative $ac_aux_dir
384 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
385 # are both prefixed by $srcdir. In an in-source build this is usually
386 # harmless because $srcdir is `.', but things will broke when you
387 # start a VPATH build or use an absolute $srcdir.
389 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
390 # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
391 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
392 # and then we would define $MISSING as
393 # MISSING="\${SHELL} $am_aux_dir/missing"
394 # This will work as long as MISSING is not called from configure, because
395 # unfortunately $(top_srcdir) has no meaning in configure.
396 # However there are other variables, like CC, which are often used in
397 # configure, and could therefore not use this "fixed" $ac_aux_dir.
399 # Another solution, used here, is to always expand $ac_aux_dir to an
400 # absolute PATH. The drawback is that using absolute paths prevent a
401 # configured tree to be moved without reconfiguration.
403 # Rely on autoconf to set up CDPATH properly.
406 AC_DEFUN([AM_AUX_DIR_EXPAND], [
407 # expand $ac_aux_dir to an absolute path
408 am_aux_dir=`cd $ac_aux_dir && pwd`
413 # Define $install_sh.
415 # Copyright 2001 Free Software Foundation, Inc.
417 # This program is free software; you can redistribute it and/or modify
418 # it under the terms of the GNU General Public License as published by
419 # the Free Software Foundation; either version 2, or (at your option)
422 # This program is distributed in the hope that it will be useful,
423 # but WITHOUT ANY WARRANTY; without even the implied warranty of
424 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
425 # GNU General Public License for more details.
427 # You should have received a copy of the GNU General Public License
428 # along with this program; if not, write to the Free Software
429 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
432 AC_DEFUN([AM_PROG_INSTALL_SH],
433 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
434 install_sh=${install_sh-"$am_aux_dir/install-sh"}
435 AC_SUBST(install_sh)])
437 # AM_PROG_INSTALL_STRIP
439 # Copyright 2001 Free Software Foundation, Inc.
441 # This program is free software; you can redistribute it and/or modify
442 # it under the terms of the GNU General Public License as published by
443 # the Free Software Foundation; either version 2, or (at your option)
446 # This program is distributed in the hope that it will be useful,
447 # but WITHOUT ANY WARRANTY; without even the implied warranty of
448 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
449 # GNU General Public License for more details.
451 # You should have received a copy of the GNU General Public License
452 # along with this program; if not, write to the Free Software
453 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
456 # One issue with vendor `install' (even GNU) is that you can't
457 # specify the program used to strip binaries. This is especially
458 # annoying in cross-compiling environments, where the build's strip
459 # is unlikely to handle the host's binaries.
460 # Fortunately install-sh will honor a STRIPPROG variable, so we
461 # always use install-sh in `make install-strip', and initialize
462 # STRIPPROG with the value of the STRIP variable (set by the user).
463 AC_DEFUN([AM_PROG_INSTALL_STRIP],
464 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
465 # Installed binaries are usually stripped using `strip' when the user
466 # run `make install-strip'. However `strip' might not be the right
467 # tool to use in cross-compilation environments, therefore Automake
468 # will honor the `STRIP' environment variable to overrule this program.
469 dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
470 if test "$cross_compiling" != no; then
471 AC_CHECK_TOOL([STRIP], [strip], :)
473 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
474 AC_SUBST([INSTALL_STRIP_PROGRAM])])
477 # Copyright (C) 2003 Free Software Foundation, Inc.
479 # This program is free software; you can redistribute it and/or modify
480 # it under the terms of the GNU General Public License as published by
481 # the Free Software Foundation; either version 2, or (at your option)
484 # This program is distributed in the hope that it will be useful,
485 # but WITHOUT ANY WARRANTY; without even the implied warranty of
486 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
487 # GNU General Public License for more details.
489 # You should have received a copy of the GNU General Public License
490 # along with this program; if not, write to the Free Software
491 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
496 # Check whether the underlying file-system supports filenames
497 # with a leading dot. For instance MS-DOS doesn't.
498 AC_DEFUN([AM_SET_LEADING_DOT],
499 [rm -rf .tst 2>/dev/null
500 mkdir .tst 2>/dev/null
501 if test -d .tst; then
506 rmdir .tst 2>/dev/null
507 AC_SUBST([am__leading_dot])])
509 # serial 5 -*- Autoconf -*-
511 # Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
513 # This program is free software; you can redistribute it and/or modify
514 # it under the terms of the GNU General Public License as published by
515 # the Free Software Foundation; either version 2, or (at your option)
518 # This program is distributed in the hope that it will be useful,
519 # but WITHOUT ANY WARRANTY; without even the implied warranty of
520 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
521 # GNU General Public License for more details.
523 # You should have received a copy of the GNU General Public License
524 # along with this program; if not, write to the Free Software
525 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
529 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
530 # written in clear, in which case automake, when reading aclocal.m4,
531 # will think it sees a *use*, and therefore will trigger all it's
532 # C support machinery. Also note that it means that autoscan, seeing
533 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
537 # _AM_DEPENDENCIES(NAME)
538 # ----------------------
539 # See how the compiler implements dependency checking.
540 # NAME is "CC", "CXX", "GCJ", or "OBJC".
541 # We try a few techniques and use that to set a single cache variable.
543 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
544 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
545 # dependency, and given that the user is not expected to run this macro,
546 # just rely on AC_PROG_CC.
547 AC_DEFUN([_AM_DEPENDENCIES],
548 [AC_REQUIRE([AM_SET_DEPDIR])dnl
549 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
550 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
551 AC_REQUIRE([AM_DEP_TRACK])dnl
553 ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
554 [$1], CXX, [depcc="$CXX" am_compiler_list=],
555 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
556 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
557 [depcc="$$1" am_compiler_list=])
559 AC_CACHE_CHECK([dependency style of $depcc],
560 [am_cv_$1_dependencies_compiler_type],
561 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
562 # We make a subdir and do the tests there. Otherwise we can end up
563 # making bogus files that we don't know about and never remove. For
564 # instance it was reported that on HP-UX the gcc test will end up
565 # making a dummy file named `D' -- because `-MD' means `put the output
568 # Copy depcomp to subdir because otherwise we won't find it if we're
569 # using a relative directory.
570 cp "$am_depcomp" conftest.dir
572 # We will build objects and dependencies in a subdirectory because
573 # it helps to detect inapplicable dependency modes. For instance
574 # both Tru64's cc and ICC support -MD to output dependencies as a
575 # side effect of compilation, but ICC will put the dependencies in
576 # the current directory while Tru64 will put them in the object
580 am_cv_$1_dependencies_compiler_type=none
581 if test "$am_compiler_list" = ""; then
582 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
584 for depmode in $am_compiler_list; do
585 # Setup a source with many dependencies, because some compilers
586 # like to wrap large dependency lists on column 80 (with \), and
587 # we should not choose a depcomp mode which is confused by this.
589 # We need to recreate these files for each test, as the compiler may
590 # overwrite some of them when testing with obscure command lines.
591 # This happens at least with the AIX C compiler.
593 for i in 1 2 3 4 5 6; do
594 echo '#include "conftst'$i'.h"' >> sub/conftest.c
597 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
601 # after this tag, mechanisms are not by side-effect, so they'll
602 # only be used when explicitly requested
603 if test "x$enable_dependency_tracking" = xyes; then
611 # We check with `-c' and `-o' for the sake of the "dashmstdout"
612 # mode. It turns out that the SunPro C++ compiler does not properly
613 # handle `-M -o', and we need to detect this.
614 if depmode=$depmode \
615 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
616 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
617 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
618 >/dev/null 2>conftest.err &&
619 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
620 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
621 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
622 # icc doesn't choke on unknown options, it will just issue warnings
623 # (even with -Werror). So we grep stderr for any message
624 # that says an option was ignored.
625 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
626 am_cv_$1_dependencies_compiler_type=$depmode
635 am_cv_$1_dependencies_compiler_type=none
638 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
639 AM_CONDITIONAL([am__fastdep$1], [
640 test "x$enable_dependency_tracking" != xno \
641 && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
647 # Choose a directory name for dependency files.
648 # This macro is AC_REQUIREd in _AM_DEPENDENCIES
649 AC_DEFUN([AM_SET_DEPDIR],
650 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
651 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
657 AC_DEFUN([AM_DEP_TRACK],
658 [AC_ARG_ENABLE(dependency-tracking,
659 [ --disable-dependency-tracking Speeds up one-time builds
660 --enable-dependency-tracking Do not reject slow dependency extractors])
661 if test "x$enable_dependency_tracking" != xno; then
662 am_depcomp="$ac_aux_dir/depcomp"
665 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
666 AC_SUBST([AMDEPBACKSLASH])
669 # Generate code to set up dependency tracking. -*- Autoconf -*-
671 # Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
673 # This program is free software; you can redistribute it and/or modify
674 # it under the terms of the GNU General Public License as published by
675 # the Free Software Foundation; either version 2, or (at your option)
678 # This program is distributed in the hope that it will be useful,
679 # but WITHOUT ANY WARRANTY; without even the implied warranty of
680 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
681 # GNU General Public License for more details.
683 # You should have received a copy of the GNU General Public License
684 # along with this program; if not, write to the Free Software
685 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
690 # _AM_OUTPUT_DEPENDENCY_COMMANDS
691 # ------------------------------
692 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
693 [for mf in $CONFIG_FILES; do
694 # Strip MF so we end up with the name of the file.
695 mf=`echo "$mf" | sed -e 's/:.*$//'`
696 # Check whether this is an Automake generated Makefile or not.
697 # We used to match only the files named `Makefile.in', but
698 # some people rename them; so instead we look at the file content.
699 # Grep'ing the first line is not enough: some people post-process
700 # each Makefile.in and add a new line on top of each file to say so.
701 # So let's grep whole file.
702 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
703 dirpart=`AS_DIRNAME("$mf")`
707 grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue
708 # Extract the definition of DEP_FILES from the Makefile without
710 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
711 test -z "$DEPDIR" && continue
712 # When using ansi2knr, U may be empty or an underscore; expand it
713 U=`sed -n -e '/^U = / s///p' < "$mf"`
714 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
715 # We invoke sed twice because it is the simplest approach to
716 # changing $(DEPDIR) to its actual value in the expansion.
717 for file in `sed -n -e '
718 /^DEP_FILES = .*\\\\$/ {
727 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
728 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
729 # Make sure the directory exists.
730 test -f "$dirpart/$file" && continue
731 fdir=`AS_DIRNAME(["$file"])`
732 AS_MKDIR_P([$dirpart/$fdir])
733 # echo "creating $dirpart/$file"
734 echo '# dummy' > "$dirpart/$file"
737 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
740 # AM_OUTPUT_DEPENDENCY_COMMANDS
741 # -----------------------------
742 # This macro should only be invoked once -- use via AC_REQUIRE.
744 # This code is only required when automatic dependency tracking
745 # is enabled. FIXME. This creates each `.P' file that we will
746 # need in order to bootstrap the dependency handling code.
747 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
748 [AC_CONFIG_COMMANDS([depfiles],
749 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
750 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
753 # Check to see how 'make' treats includes. -*- Autoconf -*-
755 # Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
757 # This program is free software; you can redistribute it and/or modify
758 # it under the terms of the GNU General Public License as published by
759 # the Free Software Foundation; either version 2, or (at your option)
762 # This program is distributed in the hope that it will be useful,
763 # but WITHOUT ANY WARRANTY; without even the implied warranty of
764 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
765 # GNU General Public License for more details.
767 # You should have received a copy of the GNU General Public License
768 # along with this program; if not, write to the Free Software
769 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
776 # Check to see how make treats includes.
777 AC_DEFUN([AM_MAKE_INCLUDE],
778 [am_make=${MAKE-make}
779 cat > confinc << 'END'
784 # If we don't find an include directive, just comment out the code.
785 AC_MSG_CHECKING([for style of include used by $am_make])
789 # First try GNU make style include.
790 echo "include confinc" > confmf
791 # We grep out `Entering directory' and `Leaving directory'
792 # messages which can occur if `w' ends up in MAKEFLAGS.
793 # In particular we don't look at `^make:' because GNU make might
794 # be invoked under some other name (usually "gmake"), in which
795 # case it prints its new name instead of `make'.
796 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
801 # Now try BSD make style include.
802 if test "$am__include" = "#"; then
803 echo '.include "confinc"' > confmf
804 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
810 AC_SUBST([am__include])
811 AC_SUBST([am__quote])
812 AC_MSG_RESULT([$_am_result])
816 # AM_CONDITIONAL -*- Autoconf -*-
818 # Copyright 1997, 2000, 2001 Free Software Foundation, Inc.
820 # This program is free software; you can redistribute it and/or modify
821 # it under the terms of the GNU General Public License as published by
822 # the Free Software Foundation; either version 2, or (at your option)
825 # This program is distributed in the hope that it will be useful,
826 # but WITHOUT ANY WARRANTY; without even the implied warranty of
827 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
828 # GNU General Public License for more details.
830 # You should have received a copy of the GNU General Public License
831 # along with this program; if not, write to the Free Software
832 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
839 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
840 # -------------------------------------
841 # Define a conditional.
842 AC_DEFUN([AM_CONDITIONAL],
843 [ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
844 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
854 AC_CONFIG_COMMANDS_PRE(
855 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
856 AC_MSG_ERROR([conditional "$1" was never defined.
857 Usually this means the macro was only invoked conditionally.])
860 # Like AC_CONFIG_HEADER, but automatically create stamp file. -*- Autoconf -*-
862 # Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
864 # This program is free software; you can redistribute it and/or modify
865 # it under the terms of the GNU General Public License as published by
866 # the Free Software Foundation; either version 2, or (at your option)
869 # This program is distributed in the hope that it will be useful,
870 # but WITHOUT ANY WARRANTY; without even the implied warranty of
871 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
872 # GNU General Public License for more details.
874 # You should have received a copy of the GNU General Public License
875 # along with this program; if not, write to the Free Software
876 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
883 # AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
884 AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
886 # Add --enable-maintainer-mode option to configure.
889 # Copyright 1996, 1998, 2000, 2001, 2002 Free Software Foundation, Inc.
891 # This program is free software; you can redistribute it and/or modify
892 # it under the terms of the GNU General Public License as published by
893 # the Free Software Foundation; either version 2, or (at your option)
896 # This program is distributed in the hope that it will be useful,
897 # but WITHOUT ANY WARRANTY; without even the implied warranty of
898 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
899 # GNU General Public License for more details.
901 # You should have received a copy of the GNU General Public License
902 # along with this program; if not, write to the Free Software
903 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
908 AC_DEFUN([AM_MAINTAINER_MODE],
909 [AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
910 dnl maintainer-mode is disabled by default
911 AC_ARG_ENABLE(maintainer-mode,
912 [ --enable-maintainer-mode enable make rules and dependencies not useful
913 (and sometimes confusing) to the casual installer],
914 USE_MAINTAINER_MODE=$enableval,
915 USE_MAINTAINER_MODE=no)
916 AC_MSG_RESULT([$USE_MAINTAINER_MODE])
917 AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
918 MAINT=$MAINTAINER_MODE_TRUE
923 AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])