1 # aclocal.m4 generated automatically by aclocal 1.5
3 # Copyright 1996, 1997, 1998, 1999, 2000, 2001
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 header
44 s are], with_tclinclude=${withval})
45 AC_CACHE_VAL(ac_cv_path_tclsh,[
46 dnl first check to see if --with-itclinclude was specified
47 if test x"${with_tclinclude}" != x ; then
48 if test -f ${with_tclinclude}/tclsh ; then
49 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
50 elif test -f ${with_tclinclude}/src/tclsh ; then
51 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
53 AC_MSG_ERROR([${with_tclinclude} directory doesn't contain tclsh])
58 dnl next check in private source directory
59 dnl since ls returns lowest version numbers first, reverse its output
60 if test x"${ac_cv_path_tclsh}" = x ; then
61 dnl find the top level Itcl source directory
63 if test -n "`ls -dr $srcdir/$i/tcl* 2>/dev/null`" ; then
69 dnl find the exact Itcl source dir. We do it this way, cause there
70 dnl might be multiple version of Itcl, and we want the most recent one.
71 for i in `ls -dr $tclpath/tcl* 2>/dev/null ` ; do
72 if test -f $i/src/tclsh ; then
73 ac_cv_path_tclsh=`(cd $i/src; pwd)`/tclsh
79 dnl see if one is installed
80 if test x"${ac_cv_path_tclsh}" = x ; then
82 AC_PATH_PROG(tclsh, tclsh)
84 AC_MSG_RESULT(${ac_cv_path_tclsh})
86 TCLSH="${ac_cv_path_tclsh}"
91 AC_DEFUN(DJ_AC_PATH_DOCBOOK, [
92 dirlist=".. ../../ ../../.. ../../../.. ../../../../.. ../../../../../.. ../../../../../../.. ../../../../../../../.. ../../../../../../../../.. ../../../../../../../../../.."
93 AC_MSG_CHECKING(for docbook tools)
94 AC_ARG_WITH(oskith, [ --with-docbook directory where the db2 sgml tools are], with_docbook=${withval})
95 AC_CACHE_VAL(ac_cv_c_docbook,[
96 dnl first check to see if --with-docbook was specified
97 if test x"${with_docbook}" != x ; then
98 if test -f ${with_docbook}/db2html ; then
99 ac_cv_c_docbook=`(cd ${with_docbook}; pwd)`
101 AC_MSG_ERROR([${with_docbook} directory doesn't contain SGML tools])
105 if test x"${ac_cv_c_docbook}" = x ; then
106 for i in $ac_default_prefix/bin /usr/local/bin $OSKITHDIR/../bin /usr/bin /bin /opt /home; do
107 dnl See is we have an SGML tool in that directory.
108 if test -f $i/db2html ; then
115 if test x"${ac_cv_c_docbook}" = x ; then
118 DOCBOOK="${ac_cv_c_docbook}"
119 AC_MSG_RESULT(${ac_cv_c_docbook})
126 # Do all the work for Automake. This macro actually does too much --
127 # some checks are only needed if your package does certain things.
128 # But this isn't really a big deal.
132 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
133 # written in clear, in which case automake, when reading aclocal.m4,
134 # will think it sees a *use*, and therefore will trigger all it's
135 # C support machinery. Also note that it means that autoscan, seeing
136 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
139 # We require 2.13 because we rely on SHELL being computed by configure.
142 # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
143 # -----------------------------------------------------------
144 # If MACRO-NAME is provided do IF-PROVIDED, else IF-NOT-PROVIDED.
145 # The purpose of this macro is to provide the user with a means to
146 # check macros which are provided without letting her know how the
147 # information is coded.
148 # If this macro is not defined by Autoconf, define it here.
149 ifdef([AC_PROVIDE_IFELSE],
151 [define([AC_PROVIDE_IFELSE],
152 [ifdef([AC_PROVIDE_$1],
156 # AM_INIT_AUTOMAKE(PACKAGE,VERSION, [NO-DEFINE])
157 # ----------------------------------------------
158 AC_DEFUN([AM_INIT_AUTOMAKE],
159 [AC_REQUIRE([AC_PROG_INSTALL])dnl
160 # test to see if srcdir already configured
161 if test "`CDPATH=:; cd $srcdir && pwd`" != "`pwd`" &&
162 test -f $srcdir/config.status; then
163 AC_MSG_ERROR([source directory already configured; run \"make distclean\" there first])
166 # Define the identity of the package.
172 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
173 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])
175 # Autoconf 2.50 wants to disallow AM_ names. We explicitly allow
176 # the ones we care about.
177 ifdef([m4_pattern_allow],
178 [m4_pattern_allow([^AM_[A-Z]+FLAGS])])dnl
180 # Autoconf 2.50 always computes EXEEXT. However we need to be
181 # compatible with 2.13, for now. So we always define EXEEXT, but we
184 # Similar for OBJEXT -- only we only use OBJEXT if the user actually
185 # requests that it be used. This is a bit dumb.
189 # Some tools Automake needs.
190 AC_REQUIRE([AM_SANITY_CHECK])dnl
191 AC_REQUIRE([AC_ARG_PROGRAM])dnl
192 AM_MISSING_PROG(ACLOCAL, aclocal)
193 AM_MISSING_PROG(AUTOCONF, autoconf)
194 AM_MISSING_PROG(AUTOMAKE, automake)
195 AM_MISSING_PROG(AUTOHEADER, autoheader)
196 AM_MISSING_PROG(MAKEINFO, makeinfo)
197 AM_MISSING_PROG(AMTAR, tar)
199 AM_PROG_INSTALL_STRIP
200 # We need awk for the "check" target. The system "awk" is bad on
202 AC_REQUIRE([AC_PROG_AWK])dnl
203 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
204 AC_REQUIRE([AM_DEP_TRACK])dnl
205 AC_REQUIRE([AM_SET_DEPDIR])dnl
206 AC_PROVIDE_IFELSE([AC_PROG_][CC],
207 [_AM_DEPENDENCIES(CC)],
208 [define([AC_PROG_][CC],
209 defn([AC_PROG_][CC])[_AM_DEPENDENCIES(CC)])])dnl
210 AC_PROVIDE_IFELSE([AC_PROG_][CXX],
211 [_AM_DEPENDENCIES(CXX)],
212 [define([AC_PROG_][CXX],
213 defn([AC_PROG_][CXX])[_AM_DEPENDENCIES(CXX)])])dnl
217 # Check to make sure that the build environment is sane.
224 AC_DEFUN([AM_SANITY_CHECK],
225 [AC_MSG_CHECKING([whether build environment is sane])
228 echo timestamp > conftest.file
229 # Do `set' in a subshell so we don't clobber the current shell's
230 # arguments. Must try -L first in case configure is actually a
231 # symlink; some systems play weird games with the mod time of symlinks
232 # (eg FreeBSD returns the mod time of the symlink's containing
235 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
236 if test "$[*]" = "X"; then
238 set X `ls -t $srcdir/configure conftest.file`
241 if test "$[*]" != "X $srcdir/configure conftest.file" \
242 && test "$[*]" != "X conftest.file $srcdir/configure"; then
244 # If neither matched, then we have a broken ls. This can happen
245 # if, for instance, CONFIG_SHELL is bash and it inherits a
246 # broken ls alias from the environment. This has actually
247 # happened. Such a system could not be considered "sane".
248 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
249 alias in your environment])
252 test "$[2]" = conftest.file
258 AC_MSG_ERROR([newly created file is older than distributed files!
259 Check your system clock])
266 # AM_MISSING_PROG(NAME, PROGRAM)
267 # ------------------------------
268 AC_DEFUN([AM_MISSING_PROG],
269 [AC_REQUIRE([AM_MISSING_HAS_RUN])
270 $1=${$1-"${am_missing_run}$2"}
276 # Define MISSING if not defined so far and test if it supports --run.
277 # If it does, set am_missing_run to use it, otherwise, to nothing.
278 AC_DEFUN([AM_MISSING_HAS_RUN],
279 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
280 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
281 # Use eval to expand $SHELL
282 if eval "$MISSING --run true"; then
283 am_missing_run="$MISSING --run "
287 AC_MSG_WARN([${am_backtick}missing' script is too old or missing])
293 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
294 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
295 # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
297 # Of course, Automake must honor this variable whenever it calls a
298 # tool from the auxiliary directory. The problem is that $srcdir (and
299 # therefore $ac_aux_dir as well) can be either absolute or relative,
300 # depending on how configure is run. This is pretty annoying, since
301 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
302 # source directory, any form will work fine, but in subdirectories a
303 # relative path needs to be adjusted first.
305 # $ac_aux_dir/missing
306 # fails when called from a subdirectory if $ac_aux_dir is relative
307 # $top_srcdir/$ac_aux_dir/missing
308 # fails if $ac_aux_dir is absolute,
309 # fails when called from a subdirectory in a VPATH build with
310 # a relative $ac_aux_dir
312 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
313 # are both prefixed by $srcdir. In an in-source build this is usually
314 # harmless because $srcdir is `.', but things will broke when you
315 # start a VPATH build or use an absolute $srcdir.
317 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
318 # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
319 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
320 # and then we would define $MISSING as
321 # MISSING="\${SHELL} $am_aux_dir/missing"
322 # This will work as long as MISSING is not called from configure, because
323 # unfortunately $(top_srcdir) has no meaning in configure.
324 # However there are other variables, like CC, which are often used in
325 # configure, and could therefore not use this "fixed" $ac_aux_dir.
327 # Another solution, used here, is to always expand $ac_aux_dir to an
328 # absolute PATH. The drawback is that using absolute paths prevent a
329 # configured tree to be moved without reconfiguration.
331 AC_DEFUN([AM_AUX_DIR_EXPAND], [
332 # expand $ac_aux_dir to an absolute path
333 am_aux_dir=`CDPATH=:; cd $ac_aux_dir && pwd`
338 # Define $install_sh.
339 AC_DEFUN([AM_PROG_INSTALL_SH],
340 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
341 install_sh=${install_sh-"$am_aux_dir/install-sh"}
342 AC_SUBST(install_sh)])
344 # One issue with vendor `install' (even GNU) is that you can't
345 # specify the program used to strip binaries. This is especially
346 # annoying in cross-compiling environments, where the build's strip
347 # is unlikely to handle the host's binaries.
348 # Fortunately install-sh will honor a STRIPPROG variable, so we
349 # always use install-sh in `make install-strip', and initialize
350 # STRIPPROG with the value of the STRIP variable (set by the user).
351 AC_DEFUN([AM_PROG_INSTALL_STRIP],
352 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
353 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
354 AC_SUBST([INSTALL_STRIP_PROGRAM])])
356 # serial 4 -*- Autoconf -*-
360 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
361 # written in clear, in which case automake, when reading aclocal.m4,
362 # will think it sees a *use*, and therefore will trigger all it's
363 # C support machinery. Also note that it means that autoscan, seeing
364 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
368 # _AM_DEPENDENCIES(NAME)
369 # ---------------------
370 # See how the compiler implements dependency checking.
371 # NAME is "CC", "CXX" or "OBJC".
372 # We try a few techniques and use that to set a single cache variable.
374 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
375 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
376 # dependency, and given that the user is not expected to run this macro,
377 # just rely on AC_PROG_CC.
378 AC_DEFUN([_AM_DEPENDENCIES],
379 [AC_REQUIRE([AM_SET_DEPDIR])dnl
380 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
381 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
382 AC_REQUIRE([AM_DEP_TRACK])dnl
384 ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
385 [$1], CXX, [depcc="$CXX" am_compiler_list=],
386 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc']
387 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
388 [depcc="$$1" am_compiler_list=])
390 AC_CACHE_CHECK([dependency style of $depcc],
391 [am_cv_$1_dependencies_compiler_type],
392 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
393 # We make a subdir and do the tests there. Otherwise we can end up
394 # making bogus files that we don't know about and never remove. For
395 # instance it was reported that on HP-UX the gcc test will end up
396 # making a dummy file named `D' -- because `-MD' means `put the output
399 # Copy depcomp to subdir because otherwise we won't find it if we're
400 # using a relative directory.
401 cp "$am_depcomp" conftest.dir
404 am_cv_$1_dependencies_compiler_type=none
405 if test "$am_compiler_list" = ""; then
406 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
408 for depmode in $am_compiler_list; do
409 # We need to recreate these files for each test, as the compiler may
410 # overwrite some of them when testing with obscure command lines.
411 # This happens at least with the AIX C compiler.
412 echo '#include "conftest.h"' > conftest.c
413 echo 'int i;' > conftest.h
414 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
418 # after this tag, mechanisms are not by side-effect, so they'll
419 # only be used when explicitly requested
420 if test "x$enable_dependency_tracking" = xyes; then
428 # We check with `-c' and `-o' for the sake of the "dashmstdout"
429 # mode. It turns out that the SunPro C++ compiler does not properly
430 # handle `-M -o', and we need to detect this.
431 if depmode=$depmode \
432 source=conftest.c object=conftest.o \
433 depfile=conftest.Po tmpdepfile=conftest.TPo \
434 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
435 grep conftest.h conftest.Po > /dev/null 2>&1 &&
436 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
437 am_cv_$1_dependencies_compiler_type=$depmode
445 am_cv_$1_dependencies_compiler_type=none
448 $1DEPMODE="depmode=$am_cv_$1_dependencies_compiler_type"
449 AC_SUBST([$1DEPMODE])
455 # Choose a directory name for dependency files.
456 # This macro is AC_REQUIREd in _AM_DEPENDENCIES
457 AC_DEFUN([AM_SET_DEPDIR],
458 [rm -f .deps 2>/dev/null
459 mkdir .deps 2>/dev/null
460 if test -d .deps; then
463 # MS-DOS does not allow filenames that begin with a dot.
466 rmdir .deps 2>/dev/null
473 AC_DEFUN([AM_DEP_TRACK],
474 [AC_ARG_ENABLE(dependency-tracking,
475 [ --disable-dependency-tracking Speeds up one-time builds
476 --enable-dependency-tracking Do not reject slow dependency extractors])
477 if test "x$enable_dependency_tracking" != xno; then
478 am_depcomp="$ac_aux_dir/depcomp"
481 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
482 pushdef([subst], defn([AC_SUBST]))
483 subst(AMDEPBACKSLASH)
487 # Generate code to set up dependency tracking.
488 # This macro should only be invoked once -- use via AC_REQUIRE.
490 # AM_OUTPUT_DEPENDENCY_COMMANDS
493 # This code is only required when automatic dependency tracking
494 # is enabled. FIXME. This creates each `.P' file that we will
495 # need in order to bootstrap the dependency handling code.
496 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],[
498 test x"$AMDEP_TRUE" != x"" ||
499 for mf in $CONFIG_FILES; do
501 Makefile) dirpart=.;;
502 */Makefile) dirpart=`echo "$mf" | sed -e 's|/[^/]*$||'`;;
505 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
506 # Extract the definition of DEP_FILES from the Makefile without
508 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
509 test -z "$DEPDIR" && continue
510 # When using ansi2knr, U may be empty or an underscore; expand it
511 U=`sed -n -e '/^U = / s///p' < "$mf"`
512 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
513 # We invoke sed twice because it is the simplest approach to
514 # changing $(DEPDIR) to its actual value in the expansion.
515 for file in `sed -n -e '
516 /^DEP_FILES = .*\\\\$/ {
525 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
526 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
527 # Make sure the directory exists.
528 test -f "$dirpart/$file" && continue
529 fdir=`echo "$file" | sed -e 's|/[^/]*$||'`
530 $ac_aux_dir/mkinstalldirs "$dirpart/$fdir" > /dev/null 2>&1
531 # echo "creating $dirpart/$file"
532 echo '# dummy' > "$dirpart/$file"
535 ], [AMDEP_TRUE="$AMDEP_TRUE"
536 ac_aux_dir="$ac_aux_dir"])])
540 # Check to see how make treats includes.
541 AC_DEFUN([AM_MAKE_INCLUDE],
542 [am_make=${MAKE-make}
543 cat > confinc << 'END'
547 # If we don't find an include directive, just comment out the code.
548 AC_MSG_CHECKING([for style of include used by $am_make])
552 # First try GNU make style include.
553 echo "include confinc" > confmf
554 # We grep out `Entering directory' and `Leaving directory'
555 # messages which can occur if `w' ends up in MAKEFLAGS.
556 # In particular we don't look at `^make:' because GNU make might
557 # be invoked under some other name (usually "gmake"), in which
558 # case it prints its new name instead of `make'.
559 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
564 # Now try BSD make style include.
565 if test "$am__include" = "#"; then
566 echo '.include "confinc"' > confmf
567 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
573 AC_SUBST(am__include)
575 AC_MSG_RESULT($_am_result)
581 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
582 # -------------------------------------
583 # Define a conditional.
585 # FIXME: Once using 2.50, use this:
586 # m4_match([$1], [^TRUE\|FALSE$], [AC_FATAL([$0: invalid condition: $1])])dnl
587 AC_DEFUN([AM_CONDITIONAL],
588 [ifelse([$1], [TRUE],
589 [errprint(__file__:__line__: [$0: invalid condition: $1
592 ifelse([$1], [FALSE],
593 [errprint(__file__:__line__: [$0: invalid condition: $1