1 # generated automatically by aclocal 1.7.6 -*- 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
15 AC_MSG_CHECKING(for STL versions)
16 AC_CACHE_VAL(ac_cv_stl,[
18 AC_TRY_COMPILE([#include <iostream>], [
21 cout.rdbuf()->pubsetbuf(bbuuff, 5120); ],
29 if test x"${ac_cv_stl}" != x"v2" ; then
37 AC_DEFUN(DJ_AC_PATH_TCLSH, [
38 dirlist=".. ../../ ../../../ ../../../../ ../../../../../ ../../../../../../ ../
39 ../../../../../.. ../../../../../../../.. ../../../../../../../../.. ../../../..
42 AC_MSG_CHECKING(for the tclsh program)
43 AC_ARG_WITH(tclinclude, [ --with-tclinclude directory where tcl headers are], with_tclinclude=${withval})
44 AC_CACHE_VAL(ac_cv_path_tclsh,[
45 dnl first check to see if --with-itclinclude was specified
46 if test x"${with_tclinclude}" != x ; then
47 if test -f ${with_tclinclude}/tclsh ; then
48 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
49 elif test -f ${with_tclinclude}/src/tclsh ; then
50 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
52 AC_MSG_ERROR([${with_tclinclude} directory doesn't contain tclsh])
57 dnl next check in private source directory
58 dnl since ls returns lowest version numbers first, reverse its output
59 if test x"${ac_cv_path_tclsh}" = x ; then
60 dnl find the top level Itcl source directory
62 if test -n "`ls -dr $srcdir/$i/tcl* 2>/dev/null`" ; then
68 dnl find the exact Itcl source dir. We do it this way, cause there
69 dnl might be multiple version of Itcl, and we want the most recent one.
70 for i in `ls -dr $tclpath/tcl* 2>/dev/null ` ; do
71 if test -f $i/src/tclsh ; then
72 ac_cv_path_tclsh=`(cd $i/src; pwd)`/tclsh
78 dnl see if one is installed
79 if test x"${ac_cv_path_tclsh}" = x ; then
81 AC_PATH_PROG(tclsh, tclsh)
83 AC_MSG_RESULT(${ac_cv_path_tclsh})
85 TCLSH="${ac_cv_path_tclsh}"
90 AC_DEFUN(DJ_AC_PATH_DOCBOOK, [
91 dirlist=".. ../../ ../../.. ../../../.. ../../../../.. ../../../../../.. ../../../../../../.. ../../../../../../../.. ../../../../../../../../.. ../../../../../../../../../.."
92 AC_MSG_CHECKING(for docbook tools)
93 AC_ARG_WITH(oskith, [ --with-docbook directory where the db2 sgml tools are], with_docbook=${withval})
94 AC_CACHE_VAL(ac_cv_c_docbook,[
95 dnl first check to see if --with-docbook was specified
96 if test x"${with_docbook}" != x ; then
97 if test -f ${with_docbook}/db2html ; then
98 ac_cv_c_docbook=`(cd ${with_docbook}; pwd)`
100 AC_MSG_ERROR([${with_docbook} directory doesn't contain SGML tools])
104 if test x"${ac_cv_c_docbook}" = x ; then
105 for i in $ac_default_prefix/bin /usr/local/bin $OSKITHDIR/../bin /usr/bin /bin /opt /home; do
106 dnl See is we have an SGML tool in that directory.
107 if test -f $i/db2html ; then
114 if test x"${ac_cv_c_docbook}" = x ; then
117 DOCBOOK="${ac_cv_c_docbook}"
118 AC_MSG_RESULT(${ac_cv_c_docbook})
125 # Do all the work for Automake. -*- Autoconf -*-
127 # This macro actually does too much some checks are only needed if
128 # your package does certain things. But this isn't really a big deal.
130 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
131 # Free Software Foundation, Inc.
133 # This program is free software; you can redistribute it and/or modify
134 # it under the terms of the GNU General Public License as published by
135 # the Free Software Foundation; either version 2, or (at your option)
138 # This program is distributed in the hope that it will be useful,
139 # but WITHOUT ANY WARRANTY; without even the implied warranty of
140 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
141 # GNU General Public License for more details.
143 # You should have received a copy of the GNU General Public License
144 # along with this program; if not, write to the Free Software
145 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
152 # Autoconf 2.50 wants to disallow AM_ names. We explicitly allow
153 # the ones we care about.
154 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
156 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
157 # AM_INIT_AUTOMAKE([OPTIONS])
158 # -----------------------------------------------
159 # The call with PACKAGE and VERSION arguments is the old style
160 # call (pre autoconf-2.50), which is being phased out. PACKAGE
161 # and VERSION should now be passed to AC_INIT and removed from
162 # the call to AM_INIT_AUTOMAKE.
163 # We support both call styles for the transition. After
164 # the next Automake release, Autoconf can make the AC_INIT
165 # arguments mandatory, and then we can depend on a new Autoconf
166 # release and drop the old call support.
167 AC_DEFUN([AM_INIT_AUTOMAKE],
168 [AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
169 AC_REQUIRE([AC_PROG_INSTALL])dnl
170 # test to see if srcdir already configured
171 if test "`cd $srcdir && pwd`" != "`pwd`" &&
172 test -f $srcdir/config.status; then
173 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
176 # test whether we have cygpath
177 if test -z "$CYGPATH_W"; then
178 if (cygpath --version) >/dev/null 2>/dev/null; then
179 CYGPATH_W='cygpath -w'
184 AC_SUBST([CYGPATH_W])
186 # Define the identity of the package.
187 dnl Distinguish between old-style and new-style calls.
189 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
190 AC_SUBST([PACKAGE], [$1])dnl
191 AC_SUBST([VERSION], [$2])],
192 [_AM_SET_OPTIONS([$1])dnl
193 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
194 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
196 _AM_IF_OPTION([no-define],,
197 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
198 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
200 # Some tools Automake needs.
201 AC_REQUIRE([AM_SANITY_CHECK])dnl
202 AC_REQUIRE([AC_ARG_PROGRAM])dnl
203 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
204 AM_MISSING_PROG(AUTOCONF, autoconf)
205 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
206 AM_MISSING_PROG(AUTOHEADER, autoheader)
207 AM_MISSING_PROG(MAKEINFO, makeinfo)
208 AM_MISSING_PROG(AMTAR, tar)
210 AM_PROG_INSTALL_STRIP
211 # We need awk for the "check" target. The system "awk" is bad on
213 AC_REQUIRE([AC_PROG_AWK])dnl
214 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
215 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
217 _AM_IF_OPTION([no-dependencies],,
218 [AC_PROVIDE_IFELSE([AC_PROG_CC],
219 [_AM_DEPENDENCIES(CC)],
220 [define([AC_PROG_CC],
221 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
222 AC_PROVIDE_IFELSE([AC_PROG_CXX],
223 [_AM_DEPENDENCIES(CXX)],
224 [define([AC_PROG_CXX],
225 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
230 # When config.status generates a header, we must update the stamp-h file.
231 # This file resides in the same directory as the config header
232 # that is generated. The stamp files are numbered to have different names.
234 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
235 # loop where config.status creates the headers, so we can generate
236 # our stamp files there.
237 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
238 [# Compute $1's index in $config_headers.
240 for _am_header in $config_headers :; do
245 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
248 echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
250 # Copyright 2002 Free Software Foundation, Inc.
252 # This program is free software; you can redistribute it and/or modify
253 # it under the terms of the GNU General Public License as published by
254 # the Free Software Foundation; either version 2, or (at your option)
257 # This program is distributed in the hope that it will be useful,
258 # but WITHOUT ANY WARRANTY; without even the implied warranty of
259 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
260 # GNU General Public License for more details.
262 # You should have received a copy of the GNU General Public License
263 # along with this program; if not, write to the Free Software
264 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
266 # AM_AUTOMAKE_VERSION(VERSION)
267 # ----------------------------
268 # Automake X.Y traces this macro to ensure aclocal.m4 has been
269 # generated from the m4 files accompanying Automake X.Y.
270 AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.7"])
272 # AM_SET_CURRENT_AUTOMAKE_VERSION
273 # -------------------------------
274 # Call AM_AUTOMAKE_VERSION so it can be traced.
275 # This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
276 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
277 [AM_AUTOMAKE_VERSION([1.7.6])])
279 # Helper functions for option handling. -*- Autoconf -*-
281 # Copyright 2001, 2002 Free Software Foundation, Inc.
283 # This program is free software; you can redistribute it and/or modify
284 # it under the terms of the GNU General Public License as published by
285 # the Free Software Foundation; either version 2, or (at your option)
288 # This program is distributed in the hope that it will be useful,
289 # but WITHOUT ANY WARRANTY; without even the implied warranty of
290 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
291 # GNU General Public License for more details.
293 # You should have received a copy of the GNU General Public License
294 # along with this program; if not, write to the Free Software
295 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
300 # _AM_MANGLE_OPTION(NAME)
301 # -----------------------
302 AC_DEFUN([_AM_MANGLE_OPTION],
303 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
305 # _AM_SET_OPTION(NAME)
306 # ------------------------------
307 # Set option NAME. Presently that only means defining a flag for this option.
308 AC_DEFUN([_AM_SET_OPTION],
309 [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
311 # _AM_SET_OPTIONS(OPTIONS)
312 # ----------------------------------
313 # OPTIONS is a space-separated list of Automake options.
314 AC_DEFUN([_AM_SET_OPTIONS],
315 [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
317 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
318 # -------------------------------------------
319 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
320 AC_DEFUN([_AM_IF_OPTION],
321 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
324 # Check to make sure that the build environment is sane.
327 # Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
329 # This program is free software; you can redistribute it and/or modify
330 # it under the terms of the GNU General Public License as published by
331 # the Free Software Foundation; either version 2, or (at your option)
334 # This program is distributed in the hope that it will be useful,
335 # but WITHOUT ANY WARRANTY; without even the implied warranty of
336 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
337 # GNU General Public License for more details.
339 # You should have received a copy of the GNU General Public License
340 # along with this program; if not, write to the Free Software
341 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
348 AC_DEFUN([AM_SANITY_CHECK],
349 [AC_MSG_CHECKING([whether build environment is sane])
352 echo timestamp > conftest.file
353 # Do `set' in a subshell so we don't clobber the current shell's
354 # arguments. Must try -L first in case configure is actually a
355 # symlink; some systems play weird games with the mod time of symlinks
356 # (eg FreeBSD returns the mod time of the symlink's containing
359 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
360 if test "$[*]" = "X"; then
362 set X `ls -t $srcdir/configure conftest.file`
365 if test "$[*]" != "X $srcdir/configure conftest.file" \
366 && test "$[*]" != "X conftest.file $srcdir/configure"; then
368 # If neither matched, then we have a broken ls. This can happen
369 # if, for instance, CONFIG_SHELL is bash and it inherits a
370 # broken ls alias from the environment. This has actually
371 # happened. Such a system could not be considered "sane".
372 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
373 alias in your environment])
376 test "$[2]" = conftest.file
382 AC_MSG_ERROR([newly created file is older than distributed files!
383 Check your system clock])
390 # Copyright 1997, 1999, 2000, 2001 Free Software Foundation, Inc.
392 # This program is free software; you can redistribute it and/or modify
393 # it under the terms of the GNU General Public License as published by
394 # the Free Software Foundation; either version 2, or (at your option)
397 # This program is distributed in the hope that it will be useful,
398 # but WITHOUT ANY WARRANTY; without even the implied warranty of
399 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
400 # GNU General Public License for more details.
402 # You should have received a copy of the GNU General Public License
403 # along with this program; if not, write to the Free Software
404 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
409 # AM_MISSING_PROG(NAME, PROGRAM)
410 # ------------------------------
411 AC_DEFUN([AM_MISSING_PROG],
412 [AC_REQUIRE([AM_MISSING_HAS_RUN])
413 $1=${$1-"${am_missing_run}$2"}
419 # Define MISSING if not defined so far and test if it supports --run.
420 # If it does, set am_missing_run to use it, otherwise, to nothing.
421 AC_DEFUN([AM_MISSING_HAS_RUN],
422 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
423 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
424 # Use eval to expand $SHELL
425 if eval "$MISSING --run true"; then
426 am_missing_run="$MISSING --run "
429 AC_MSG_WARN([`missing' script is too old or missing])
435 # Copyright 2001 Free Software Foundation, Inc.
437 # This program is free software; you can redistribute it and/or modify
438 # it under the terms of the GNU General Public License as published by
439 # the Free Software Foundation; either version 2, or (at your option)
442 # This program is distributed in the hope that it will be useful,
443 # but WITHOUT ANY WARRANTY; without even the implied warranty of
444 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
445 # GNU General Public License for more details.
447 # You should have received a copy of the GNU General Public License
448 # along with this program; if not, write to the Free Software
449 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
452 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
453 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
454 # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
456 # Of course, Automake must honor this variable whenever it calls a
457 # tool from the auxiliary directory. The problem is that $srcdir (and
458 # therefore $ac_aux_dir as well) can be either absolute or relative,
459 # depending on how configure is run. This is pretty annoying, since
460 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
461 # source directory, any form will work fine, but in subdirectories a
462 # relative path needs to be adjusted first.
464 # $ac_aux_dir/missing
465 # fails when called from a subdirectory if $ac_aux_dir is relative
466 # $top_srcdir/$ac_aux_dir/missing
467 # fails if $ac_aux_dir is absolute,
468 # fails when called from a subdirectory in a VPATH build with
469 # a relative $ac_aux_dir
471 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
472 # are both prefixed by $srcdir. In an in-source build this is usually
473 # harmless because $srcdir is `.', but things will broke when you
474 # start a VPATH build or use an absolute $srcdir.
476 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
477 # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
478 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
479 # and then we would define $MISSING as
480 # MISSING="\${SHELL} $am_aux_dir/missing"
481 # This will work as long as MISSING is not called from configure, because
482 # unfortunately $(top_srcdir) has no meaning in configure.
483 # However there are other variables, like CC, which are often used in
484 # configure, and could therefore not use this "fixed" $ac_aux_dir.
486 # Another solution, used here, is to always expand $ac_aux_dir to an
487 # absolute PATH. The drawback is that using absolute paths prevent a
488 # configured tree to be moved without reconfiguration.
490 # Rely on autoconf to set up CDPATH properly.
493 AC_DEFUN([AM_AUX_DIR_EXPAND], [
494 # expand $ac_aux_dir to an absolute path
495 am_aux_dir=`cd $ac_aux_dir && pwd`
500 # Define $install_sh.
502 # Copyright 2001 Free Software Foundation, Inc.
504 # This program is free software; you can redistribute it and/or modify
505 # it under the terms of the GNU General Public License as published by
506 # the Free Software Foundation; either version 2, or (at your option)
509 # This program is distributed in the hope that it will be useful,
510 # but WITHOUT ANY WARRANTY; without even the implied warranty of
511 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
512 # GNU General Public License for more details.
514 # You should have received a copy of the GNU General Public License
515 # along with this program; if not, write to the Free Software
516 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
519 AC_DEFUN([AM_PROG_INSTALL_SH],
520 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
521 install_sh=${install_sh-"$am_aux_dir/install-sh"}
522 AC_SUBST(install_sh)])
524 # AM_PROG_INSTALL_STRIP
526 # Copyright 2001 Free Software Foundation, Inc.
528 # This program is free software; you can redistribute it and/or modify
529 # it under the terms of the GNU General Public License as published by
530 # the Free Software Foundation; either version 2, or (at your option)
533 # This program is distributed in the hope that it will be useful,
534 # but WITHOUT ANY WARRANTY; without even the implied warranty of
535 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
536 # GNU General Public License for more details.
538 # You should have received a copy of the GNU General Public License
539 # along with this program; if not, write to the Free Software
540 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
543 # One issue with vendor `install' (even GNU) is that you can't
544 # specify the program used to strip binaries. This is especially
545 # annoying in cross-compiling environments, where the build's strip
546 # is unlikely to handle the host's binaries.
547 # Fortunately install-sh will honor a STRIPPROG variable, so we
548 # always use install-sh in `make install-strip', and initialize
549 # STRIPPROG with the value of the STRIP variable (set by the user).
550 AC_DEFUN([AM_PROG_INSTALL_STRIP],
551 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
552 # Installed binaries are usually stripped using `strip' when the user
553 # run `make install-strip'. However `strip' might not be the right
554 # tool to use in cross-compilation environments, therefore Automake
555 # will honor the `STRIP' environment variable to overrule this program.
556 dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
557 if test "$cross_compiling" != no; then
558 AC_CHECK_TOOL([STRIP], [strip], :)
560 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
561 AC_SUBST([INSTALL_STRIP_PROGRAM])])
564 # Copyright (C) 2003 Free Software Foundation, Inc.
566 # This program is free software; you can redistribute it and/or modify
567 # it under the terms of the GNU General Public License as published by
568 # the Free Software Foundation; either version 2, or (at your option)
571 # This program is distributed in the hope that it will be useful,
572 # but WITHOUT ANY WARRANTY; without even the implied warranty of
573 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
574 # GNU General Public License for more details.
576 # You should have received a copy of the GNU General Public License
577 # along with this program; if not, write to the Free Software
578 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
583 # Check whether the underlying file-system supports filenames
584 # with a leading dot. For instance MS-DOS doesn't.
585 AC_DEFUN([AM_SET_LEADING_DOT],
586 [rm -rf .tst 2>/dev/null
587 mkdir .tst 2>/dev/null
588 if test -d .tst; then
593 rmdir .tst 2>/dev/null
594 AC_SUBST([am__leading_dot])])
596 # serial 5 -*- Autoconf -*-
598 # Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
600 # This program is free software; you can redistribute it and/or modify
601 # it under the terms of the GNU General Public License as published by
602 # the Free Software Foundation; either version 2, or (at your option)
605 # This program is distributed in the hope that it will be useful,
606 # but WITHOUT ANY WARRANTY; without even the implied warranty of
607 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
608 # GNU General Public License for more details.
610 # You should have received a copy of the GNU General Public License
611 # along with this program; if not, write to the Free Software
612 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
616 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
617 # written in clear, in which case automake, when reading aclocal.m4,
618 # will think it sees a *use*, and therefore will trigger all it's
619 # C support machinery. Also note that it means that autoscan, seeing
620 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
624 # _AM_DEPENDENCIES(NAME)
625 # ----------------------
626 # See how the compiler implements dependency checking.
627 # NAME is "CC", "CXX", "GCJ", or "OBJC".
628 # We try a few techniques and use that to set a single cache variable.
630 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
631 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
632 # dependency, and given that the user is not expected to run this macro,
633 # just rely on AC_PROG_CC.
634 AC_DEFUN([_AM_DEPENDENCIES],
635 [AC_REQUIRE([AM_SET_DEPDIR])dnl
636 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
637 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
638 AC_REQUIRE([AM_DEP_TRACK])dnl
640 ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
641 [$1], CXX, [depcc="$CXX" am_compiler_list=],
642 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
643 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
644 [depcc="$$1" am_compiler_list=])
646 AC_CACHE_CHECK([dependency style of $depcc],
647 [am_cv_$1_dependencies_compiler_type],
648 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
649 # We make a subdir and do the tests there. Otherwise we can end up
650 # making bogus files that we don't know about and never remove. For
651 # instance it was reported that on HP-UX the gcc test will end up
652 # making a dummy file named `D' -- because `-MD' means `put the output
655 # Copy depcomp to subdir because otherwise we won't find it if we're
656 # using a relative directory.
657 cp "$am_depcomp" conftest.dir
659 # We will build objects and dependencies in a subdirectory because
660 # it helps to detect inapplicable dependency modes. For instance
661 # both Tru64's cc and ICC support -MD to output dependencies as a
662 # side effect of compilation, but ICC will put the dependencies in
663 # the current directory while Tru64 will put them in the object
667 am_cv_$1_dependencies_compiler_type=none
668 if test "$am_compiler_list" = ""; then
669 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
671 for depmode in $am_compiler_list; do
672 # Setup a source with many dependencies, because some compilers
673 # like to wrap large dependency lists on column 80 (with \), and
674 # we should not choose a depcomp mode which is confused by this.
676 # We need to recreate these files for each test, as the compiler may
677 # overwrite some of them when testing with obscure command lines.
678 # This happens at least with the AIX C compiler.
680 for i in 1 2 3 4 5 6; do
681 echo '#include "conftst'$i'.h"' >> sub/conftest.c
684 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
688 # after this tag, mechanisms are not by side-effect, so they'll
689 # only be used when explicitly requested
690 if test "x$enable_dependency_tracking" = xyes; then
698 # We check with `-c' and `-o' for the sake of the "dashmstdout"
699 # mode. It turns out that the SunPro C++ compiler does not properly
700 # handle `-M -o', and we need to detect this.
701 if depmode=$depmode \
702 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
703 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
704 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
705 >/dev/null 2>conftest.err &&
706 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
707 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
708 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
709 # icc doesn't choke on unknown options, it will just issue warnings
710 # (even with -Werror). So we grep stderr for any message
711 # that says an option was ignored.
712 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
713 am_cv_$1_dependencies_compiler_type=$depmode
722 am_cv_$1_dependencies_compiler_type=none
725 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
726 AM_CONDITIONAL([am__fastdep$1], [
727 test "x$enable_dependency_tracking" != xno \
728 && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
734 # Choose a directory name for dependency files.
735 # This macro is AC_REQUIREd in _AM_DEPENDENCIES
736 AC_DEFUN([AM_SET_DEPDIR],
737 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
738 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
744 AC_DEFUN([AM_DEP_TRACK],
745 [AC_ARG_ENABLE(dependency-tracking,
746 [ --disable-dependency-tracking Speeds up one-time builds
747 --enable-dependency-tracking Do not reject slow dependency extractors])
748 if test "x$enable_dependency_tracking" != xno; then
749 am_depcomp="$ac_aux_dir/depcomp"
752 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
753 AC_SUBST([AMDEPBACKSLASH])
756 # Generate code to set up dependency tracking. -*- Autoconf -*-
758 # Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
760 # This program is free software; you can redistribute it and/or modify
761 # it under the terms of the GNU General Public License as published by
762 # the Free Software Foundation; either version 2, or (at your option)
765 # This program is distributed in the hope that it will be useful,
766 # but WITHOUT ANY WARRANTY; without even the implied warranty of
767 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
768 # GNU General Public License for more details.
770 # You should have received a copy of the GNU General Public License
771 # along with this program; if not, write to the Free Software
772 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
777 # _AM_OUTPUT_DEPENDENCY_COMMANDS
778 # ------------------------------
779 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
780 [for mf in $CONFIG_FILES; do
781 # Strip MF so we end up with the name of the file.
782 mf=`echo "$mf" | sed -e 's/:.*$//'`
783 # Check whether this is an Automake generated Makefile or not.
784 # We used to match only the files named `Makefile.in', but
785 # some people rename them; so instead we look at the file content.
786 # Grep'ing the first line is not enough: some people post-process
787 # each Makefile.in and add a new line on top of each file to say so.
788 # So let's grep whole file.
789 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
790 dirpart=`AS_DIRNAME("$mf")`
794 grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue
795 # Extract the definition of DEP_FILES from the Makefile without
797 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
798 test -z "$DEPDIR" && continue
799 # When using ansi2knr, U may be empty or an underscore; expand it
800 U=`sed -n -e '/^U = / s///p' < "$mf"`
801 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
802 # We invoke sed twice because it is the simplest approach to
803 # changing $(DEPDIR) to its actual value in the expansion.
804 for file in `sed -n -e '
805 /^DEP_FILES = .*\\\\$/ {
814 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
815 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
816 # Make sure the directory exists.
817 test -f "$dirpart/$file" && continue
818 fdir=`AS_DIRNAME(["$file"])`
819 AS_MKDIR_P([$dirpart/$fdir])
820 # echo "creating $dirpart/$file"
821 echo '# dummy' > "$dirpart/$file"
824 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
827 # AM_OUTPUT_DEPENDENCY_COMMANDS
828 # -----------------------------
829 # This macro should only be invoked once -- use via AC_REQUIRE.
831 # This code is only required when automatic dependency tracking
832 # is enabled. FIXME. This creates each `.P' file that we will
833 # need in order to bootstrap the dependency handling code.
834 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
835 [AC_CONFIG_COMMANDS([depfiles],
836 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
837 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
840 # Check to see how 'make' treats includes. -*- Autoconf -*-
842 # Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
844 # This program is free software; you can redistribute it and/or modify
845 # it under the terms of the GNU General Public License as published by
846 # the Free Software Foundation; either version 2, or (at your option)
849 # This program is distributed in the hope that it will be useful,
850 # but WITHOUT ANY WARRANTY; without even the implied warranty of
851 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
852 # GNU General Public License for more details.
854 # You should have received a copy of the GNU General Public License
855 # along with this program; if not, write to the Free Software
856 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
863 # Check to see how make treats includes.
864 AC_DEFUN([AM_MAKE_INCLUDE],
865 [am_make=${MAKE-make}
866 cat > confinc << 'END'
871 # If we don't find an include directive, just comment out the code.
872 AC_MSG_CHECKING([for style of include used by $am_make])
876 # First try GNU make style include.
877 echo "include confinc" > confmf
878 # We grep out `Entering directory' and `Leaving directory'
879 # messages which can occur if `w' ends up in MAKEFLAGS.
880 # In particular we don't look at `^make:' because GNU make might
881 # be invoked under some other name (usually "gmake"), in which
882 # case it prints its new name instead of `make'.
883 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
888 # Now try BSD make style include.
889 if test "$am__include" = "#"; then
890 echo '.include "confinc"' > confmf
891 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
897 AC_SUBST([am__include])
898 AC_SUBST([am__quote])
899 AC_MSG_RESULT([$_am_result])
903 # AM_CONDITIONAL -*- Autoconf -*-
905 # Copyright 1997, 2000, 2001 Free Software Foundation, Inc.
907 # This program is free software; you can redistribute it and/or modify
908 # it under the terms of the GNU General Public License as published by
909 # the Free Software Foundation; either version 2, or (at your option)
912 # This program is distributed in the hope that it will be useful,
913 # but WITHOUT ANY WARRANTY; without even the implied warranty of
914 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
915 # GNU General Public License for more details.
917 # You should have received a copy of the GNU General Public License
918 # along with this program; if not, write to the Free Software
919 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
926 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
927 # -------------------------------------
928 # Define a conditional.
929 AC_DEFUN([AM_CONDITIONAL],
930 [ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
931 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
941 AC_CONFIG_COMMANDS_PRE(
942 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
943 AC_MSG_ERROR([conditional "$1" was never defined.
944 Usually this means the macro was only invoked conditionally.])
947 # Add --enable-maintainer-mode option to configure.
950 # Copyright 1996, 1998, 2000, 2001, 2002 Free Software Foundation, Inc.
952 # This program is free software; you can redistribute it and/or modify
953 # it under the terms of the GNU General Public License as published by
954 # the Free Software Foundation; either version 2, or (at your option)
957 # This program is distributed in the hope that it will be useful,
958 # but WITHOUT ANY WARRANTY; without even the implied warranty of
959 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
960 # GNU General Public License for more details.
962 # You should have received a copy of the GNU General Public License
963 # along with this program; if not, write to the Free Software
964 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
969 AC_DEFUN([AM_MAINTAINER_MODE],
970 [AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
971 dnl maintainer-mode is disabled by default
972 AC_ARG_ENABLE(maintainer-mode,
973 [ --enable-maintainer-mode enable make rules and dependencies not useful
974 (and sometimes confusing) to the casual installer],
975 USE_MAINTAINER_MODE=$enableval,
976 USE_MAINTAINER_MODE=no)
977 AC_MSG_RESULT([$USE_MAINTAINER_MODE])
978 AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
979 MAINT=$MAINTAINER_MODE_TRUE
984 AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])