1 dnl aclocal.m4 generated automatically by aclocal 1.4
3 dnl Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
4 dnl This file is free software; the Free Software Foundation
5 dnl gives unlimited permission to copy and/or distribute it,
6 dnl with or without modifications, as long as this notice is preserved.
8 dnl This program is distributed in the hope that it will be useful,
9 dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without
10 dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A
11 dnl PARTICULAR PURPOSE.
15 dnl By default, many hosts won't let programs access large files;
16 dnl one must use special compiler options to get large-file access to work.
17 dnl For more details about this brain damage please see:
18 dnl http://www.sas.com/standards/large.file/x_open.20Mar96.html
20 dnl Written by Paul Eggert <eggert@twinsun.com>.
22 dnl Internal subroutine of AC_SYS_LARGEFILE.
23 dnl AC_SYS_LARGEFILE_TEST_INCLUDES
24 AC_DEFUN(AC_SYS_LARGEFILE_TEST_INCLUDES,
25 [[#include <sys/types.h>
26 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
29 dnl Internal subroutine of AC_SYS_LARGEFILE.
30 dnl AC_SYS_LARGEFILE_MACRO_VALUE(C-MACRO, VALUE, CACHE-VAR, COMMENT, INCLUDES, FUNCTION-BODY)
31 AC_DEFUN(AC_SYS_LARGEFILE_MACRO_VALUE,
32 [AC_CACHE_CHECK([for $1 value needed for large files], $3,
34 AC_TRY_COMPILE(AC_SYS_LARGEFILE_TEST_INCLUDES
39 [AC_TRY_COMPILE([#define $1 $2]
40 AC_SYS_LARGEFILE_TEST_INCLUDES
45 if test "[$]$3" != no; then
46 AC_DEFINE_UNQUOTED([$1], [$]$3, [$4])
49 AC_DEFUN(AC_SYS_LARGEFILE,
50 [AC_ARG_ENABLE(largefile,
51 [ --disable-largefile omit support for large files])
52 if test "$enable_largefile" != no; then
54 AC_CACHE_CHECK([for special C compiler options needed for large files],
55 ac_cv_sys_largefile_CC,
56 [ac_cv_sys_largefile_CC=no
57 if test "$GCC" != yes; then
58 # IRIX 6.2 and later do not support large files by default,
59 # so use the C compiler's -n32 option if that helps.
60 AC_TRY_COMPILE(AC_SYS_LARGEFILE_TEST_INCLUDES, , ,
63 AC_TRY_COMPILE(AC_SYS_LARGEFILE_TEST_INCLUDES, ,
64 ac_cv_sys_largefile_CC=' -n32')
67 if test "$ac_cv_sys_largefile_CC" != no; then
68 CC="$CC$ac_cv_sys_largefile_CC"
71 AC_SYS_LARGEFILE_MACRO_VALUE(_FILE_OFFSET_BITS, 64,
72 ac_cv_sys_file_offset_bits,
73 [Number of bits in a file offset, on hosts where this is settable.])
74 AC_SYS_LARGEFILE_MACRO_VALUE(_LARGEFILE_SOURCE, 1,
75 ac_cv_sys_largefile_source,
76 [Define to make ftello visible on some hosts (e.g. HP-UX 10.20).],
77 [#include <stdio.h>], [return !ftello;])
78 AC_SYS_LARGEFILE_MACRO_VALUE(_LARGE_FILES, 1,
79 ac_cv_sys_large_files,
80 [Define for large files, on AIX-style hosts.])
81 dnl lftp does not need ftello, and _XOPEN_SOURCE=500 makes resolv.h fail.
82 dnl AC_SYS_LARGEFILE_MACRO_VALUE(_XOPEN_SOURCE, 500,
83 dnl ac_cv_sys_xopen_source,
84 dnl [Define to make ftello visible on some hosts (e.g. glibc 2.1.3).],
85 dnl [#include <stdio.h>], [return !ftello;])
89 # Like AC_CONFIG_HEADER, but automatically create stamp file.
91 AC_DEFUN(AM_CONFIG_HEADER,
93 AC_CONFIG_HEADER([$1])
94 dnl When config.status generates a header, we must update the stamp-h file.
95 dnl This file resides in the same directory as the config header
96 dnl that is generated. We must strip everything past the first ":",
97 dnl and everything past the last "/".
98 AC_OUTPUT_COMMANDS(changequote(<<,>>)dnl
99 ifelse(patsubst(<<$1>>, <<[^ ]>>, <<>>), <<>>,
100 <<test -z "<<$>>CONFIG_HEADERS" || echo timestamp > patsubst(<<$1>>, <<^\([^:]*/\)?.*>>, <<\1>>)stamp-h<<>>dnl>>,
102 for am_file in <<$1>>; do
103 case " <<$>>CONFIG_HEADERS " in
104 *" <<$>>am_file "*<<)>>
105 echo timestamp > `echo <<$>>am_file | sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx
108 am_indx=`expr "<<$>>am_indx" + 1`
112 # Do all the work for Automake. This macro actually does too much --
113 # some checks are only needed if your package does certain things.
114 # But this isn't really a big deal.
119 dnl AM_INIT_AUTOMAKE(package,version, [no-define])
121 AC_DEFUN(AM_INIT_AUTOMAKE,
122 [AC_REQUIRE([AC_PROG_INSTALL])
127 dnl test to see if srcdir already configured
128 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
129 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
132 AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
133 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package]))
134 AC_REQUIRE([AM_SANITY_CHECK])
135 AC_REQUIRE([AC_ARG_PROGRAM])
136 dnl FIXME This is truly gross.
137 missing_dir=`cd $ac_aux_dir && pwd`
138 AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir)
139 AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
140 AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir)
141 AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)
142 AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
143 AC_REQUIRE([AC_PROG_MAKE_SET])])
146 # Check to make sure that the build environment is sane.
149 AC_DEFUN(AM_SANITY_CHECK,
150 [AC_MSG_CHECKING([whether build environment is sane])
153 echo timestamp > conftestfile
154 # Do `set' in a subshell so we don't clobber the current shell's
155 # arguments. Must try -L first in case configure is actually a
156 # symlink; some systems play weird games with the mod time of symlinks
157 # (eg FreeBSD returns the mod time of the symlink's containing
160 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
161 if test "[$]*" = "X"; then
163 set X `ls -t $srcdir/configure conftestfile`
165 if test "[$]*" != "X $srcdir/configure conftestfile" \
166 && test "[$]*" != "X conftestfile $srcdir/configure"; then
168 # If neither matched, then we have a broken ls. This can happen
169 # if, for instance, CONFIG_SHELL is bash and it inherits a
170 # broken ls alias from the environment. This has actually
171 # happened. Such a system could not be considered "sane".
172 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
173 alias in your environment])
176 test "[$]2" = conftestfile
182 AC_MSG_ERROR([newly created file is older than distributed files!
183 Check your system clock])
188 dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY)
189 dnl The program must properly implement --version.
190 AC_DEFUN(AM_MISSING_PROG,
191 [AC_MSG_CHECKING(for working $2)
192 # Run test in a subshell; some versions of sh will print an error if
193 # an executable is not found, even if stderr is redirected.
194 # Redirect stdin to placate older versions of autoconf. Sigh.
195 if ($2 --version) < /dev/null > /dev/null 2>&1; then
200 AC_MSG_RESULT(missing)
205 # serial 40 AC_PROG_LIBTOOL
206 AC_DEFUN(AC_PROG_LIBTOOL,
207 [AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
209 # Save cache, so that ltconfig can load it
212 # Actually configure libtool. ac_aux_dir is where install-sh is found.
213 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
214 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
215 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
216 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
217 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
218 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
219 || AC_MSG_ERROR([libtool configure failed])
221 # Reload cache, that may have been modified by ltconfig
224 # This can be used to rebuild libtool when needed
225 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
227 # Always use our own libtool.
228 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
231 # Redirect the config.log output again, so that the ltconfig log is not
232 # clobbered by the next message.
236 AC_DEFUN(AC_LIBTOOL_SETUP,
238 AC_REQUIRE([AC_ENABLE_SHARED])dnl
239 AC_REQUIRE([AC_ENABLE_STATIC])dnl
240 AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
241 AC_REQUIRE([AC_CANONICAL_HOST])dnl
242 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
243 AC_REQUIRE([AC_PROG_RANLIB])dnl
244 AC_REQUIRE([AC_PROG_CC])dnl
245 AC_REQUIRE([AC_PROG_LD])dnl
246 AC_REQUIRE([AC_PROG_NM])dnl
247 AC_REQUIRE([AC_PROG_LN_S])dnl
251 NONE) lt_target="$host" ;;
252 *) lt_target="$target" ;;
255 # Check for any special flags to pass to ltconfig.
256 libtool_flags="--cache-file=$cache_file"
257 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
258 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
259 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
260 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
261 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
262 ifdef([AC_PROVIDE_AC_LIBTOOL_DLOPEN],
263 [libtool_flags="$libtool_flags --enable-dlopen"])
264 ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
265 [libtool_flags="$libtool_flags --enable-win32-dll"])
266 AC_ARG_ENABLE(libtool-lock,
267 [ --disable-libtool-lock avoid locking (might break parallel builds)])
268 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
269 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
271 # Some flags need to be propagated to the compiler or linker for good
275 # Find out which ABI we are using.
276 echo '[#]line __oline__ "configure"' > conftest.$ac_ext
277 if AC_TRY_EVAL(ac_compile); then
278 case "`/usr/bin/file conftest.o`" in
294 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
295 SAVE_CFLAGS="$CFLAGS"
296 CFLAGS="$CFLAGS -belf"
297 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
298 [AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])])
299 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
300 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
301 CFLAGS="$SAVE_CFLAGS"
305 ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
306 [*-*-cygwin* | *-*-mingw*)
307 AC_CHECK_TOOL(DLLTOOL, dlltool, false)
308 AC_CHECK_TOOL(AS, as, false)
309 AC_CHECK_TOOL(OBJDUMP, objdump, false)
315 # AC_LIBTOOL_DLOPEN - enable checks for dlopen support
316 AC_DEFUN(AC_LIBTOOL_DLOPEN, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])])
318 # AC_LIBTOOL_WIN32_DLL - declare package support for building win32 dll's
319 AC_DEFUN(AC_LIBTOOL_WIN32_DLL, [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])])
321 # AC_ENABLE_SHARED - implement the --enable-shared flag
322 # Usage: AC_ENABLE_SHARED[(DEFAULT)]
323 # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
325 AC_DEFUN(AC_ENABLE_SHARED, [dnl
326 define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
327 AC_ARG_ENABLE(shared,
328 changequote(<<, >>)dnl
329 << --enable-shared[=PKGS] build shared libraries [default=>>AC_ENABLE_SHARED_DEFAULT],
331 [p=${PACKAGE-default}
333 yes) enable_shared=yes ;;
334 no) enable_shared=no ;;
337 # Look at the argument we got. We use all the common list separators.
338 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
339 for pkg in $enableval; do
340 if test "X$pkg" = "X$p"; then
347 enable_shared=AC_ENABLE_SHARED_DEFAULT)dnl
350 # AC_DISABLE_SHARED - set the default shared flag to --disable-shared
351 AC_DEFUN(AC_DISABLE_SHARED, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
352 AC_ENABLE_SHARED(no)])
354 # AC_ENABLE_STATIC - implement the --enable-static flag
355 # Usage: AC_ENABLE_STATIC[(DEFAULT)]
356 # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
358 AC_DEFUN(AC_ENABLE_STATIC, [dnl
359 define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
360 AC_ARG_ENABLE(static,
361 changequote(<<, >>)dnl
362 << --enable-static[=PKGS] build static libraries [default=>>AC_ENABLE_STATIC_DEFAULT],
364 [p=${PACKAGE-default}
366 yes) enable_static=yes ;;
367 no) enable_static=no ;;
370 # Look at the argument we got. We use all the common list separators.
371 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
372 for pkg in $enableval; do
373 if test "X$pkg" = "X$p"; then
380 enable_static=AC_ENABLE_STATIC_DEFAULT)dnl
383 # AC_DISABLE_STATIC - set the default static flag to --disable-static
384 AC_DEFUN(AC_DISABLE_STATIC, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
385 AC_ENABLE_STATIC(no)])
388 # AC_ENABLE_FAST_INSTALL - implement the --enable-fast-install flag
389 # Usage: AC_ENABLE_FAST_INSTALL[(DEFAULT)]
390 # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
392 AC_DEFUN(AC_ENABLE_FAST_INSTALL, [dnl
393 define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
394 AC_ARG_ENABLE(fast-install,
395 changequote(<<, >>)dnl
396 << --enable-fast-install[=PKGS] optimize for fast installation [default=>>AC_ENABLE_FAST_INSTALL_DEFAULT],
398 [p=${PACKAGE-default}
400 yes) enable_fast_install=yes ;;
401 no) enable_fast_install=no ;;
403 enable_fast_install=no
404 # Look at the argument we got. We use all the common list separators.
405 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
406 for pkg in $enableval; do
407 if test "X$pkg" = "X$p"; then
408 enable_fast_install=yes
414 enable_fast_install=AC_ENABLE_FAST_INSTALL_DEFAULT)dnl
417 # AC_ENABLE_FAST_INSTALL - set the default to --disable-fast-install
418 AC_DEFUN(AC_DISABLE_FAST_INSTALL, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
419 AC_ENABLE_FAST_INSTALL(no)])
421 # AC_PROG_LD - find the path to the GNU or non-GNU linker
424 [ --with-gnu-ld assume the C compiler uses GNU ld [default=no]],
425 test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
426 AC_REQUIRE([AC_PROG_CC])dnl
427 AC_REQUIRE([AC_CANONICAL_HOST])dnl
428 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
430 if test "$ac_cv_prog_gcc" = yes; then
431 # Check if gcc -print-prog-name=ld gives a path.
432 AC_MSG_CHECKING([for ld used by GCC])
433 ac_prog=`($CC -print-prog-name=ld) 2>&5`
435 # Accept absolute paths.
437 [\\/]* | [A-Za-z]:[\\/]*)
438 re_direlt='/[^/][^/]*/\.\./'
440 # Canonicalize the path of ld
441 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
442 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
443 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
445 test -z "$LD" && LD="$ac_prog"
448 # If it fails, then pretend we aren't using GCC.
452 # If it is relative, then search for the first ld in PATH.
456 elif test "$with_gnu_ld" = yes; then
457 AC_MSG_CHECKING([for GNU ld])
459 AC_MSG_CHECKING([for non-GNU ld])
461 AC_CACHE_VAL(ac_cv_path_LD,
462 [if test -z "$LD"; then
463 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
464 for ac_dir in $PATH; do
465 test -z "$ac_dir" && ac_dir=.
466 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
467 ac_cv_path_LD="$ac_dir/$ac_prog"
468 # Check to see if the program is GNU ld. I'd rather use --version,
469 # but apparently some GNU ld's only accept -v.
470 # Break only if it was the GNU/non-GNU ld that we prefer.
471 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
472 test "$with_gnu_ld" != no && break
474 test "$with_gnu_ld" != yes && break
480 ac_cv_path_LD="$LD" # Let the user override the test with a path.
483 if test -n "$LD"; then
488 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
492 AC_DEFUN(AC_PROG_LD_GNU,
493 [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], ac_cv_prog_gnu_ld,
494 [# I'd rather use --version here, but apparently some GNU ld's only accept -v.
495 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
496 ac_cv_prog_gnu_ld=yes
502 # AC_PROG_NM - find the path to a BSD-compatible name lister
504 [AC_MSG_CHECKING([for BSD-compatible nm])
505 AC_CACHE_VAL(ac_cv_path_NM,
506 [if test -n "$NM"; then
507 # Let the user override the test.
510 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
511 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
512 test -z "$ac_dir" && ac_dir=.
513 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
514 # Check to see if the nm accepts a BSD-compat flag.
515 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
516 # nm: unknown option "B" ignored
517 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
518 ac_cv_path_NM="$ac_dir/nm -B"
520 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
521 ac_cv_path_NM="$ac_dir/nm -p"
524 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
525 continue # so that we can try to find one that supports BSD flags
530 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
536 # AC_CHECK_LIBM - check for math library
537 AC_DEFUN(AC_CHECK_LIBM,
538 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
541 *-*-beos* | *-*-cygwin*)
542 # These system don't have libm
545 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
546 AC_CHECK_LIB(m, main, LIBM="$LIBM -lm")
549 AC_CHECK_LIB(m, main, LIBM="-lm")
554 # AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for
555 # the libltdl convenience library and INCLTDL to the include flags for
556 # the libltdl header and adds --enable-ltdl-convenience to the
557 # configure arguments. Note that LIBLTDL and INCLTDL are not
558 # AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If DIR is not
559 # provided, it is assumed to be `libltdl'. LIBLTDL will be prefixed
560 # with '${top_builddir}/' and INCLTDL will be prefixed with
561 # '${top_srcdir}/' (note the single quotes!). If your package is not
562 # flat and you're not using automake, define top_builddir and
563 # top_srcdir appropriately in the Makefiles.
564 AC_DEFUN(AC_LIBLTDL_CONVENIENCE, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
565 case "$enable_ltdl_convenience" in
566 no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
567 "") enable_ltdl_convenience=yes
568 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
570 LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
571 INCLTDL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
574 # AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for
575 # the libltdl installable library and INCLTDL to the include flags for
576 # the libltdl header and adds --enable-ltdl-install to the configure
577 # arguments. Note that LIBLTDL and INCLTDL are not AC_SUBSTed, nor is
578 # AC_CONFIG_SUBDIRS called. If DIR is not provided and an installed
579 # libltdl is not found, it is assumed to be `libltdl'. LIBLTDL will
580 # be prefixed with '${top_builddir}/' and INCLTDL will be prefixed
581 # with '${top_srcdir}/' (note the single quotes!). If your package is
582 # not flat and you're not using automake, define top_builddir and
583 # top_srcdir appropriately in the Makefiles.
584 # In the future, this macro may have to be called after AC_PROG_LIBTOOL.
585 AC_DEFUN(AC_LIBLTDL_INSTALLABLE, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
586 AC_CHECK_LIB(ltdl, main,
587 [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
588 [if test x"$enable_ltdl_install" = xno; then
589 AC_MSG_WARN([libltdl not installed, but installation disabled])
591 enable_ltdl_install=yes
594 if test x"$enable_ltdl_install" = x"yes"; then
595 ac_configure_args="$ac_configure_args --enable-ltdl-install"
596 LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
597 INCLTDL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
599 ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
606 AC_DEFUN(AM_PROG_LIBTOOL, [indir([AC_PROG_LIBTOOL])])dnl
607 AC_DEFUN(AM_ENABLE_SHARED, [indir([AC_ENABLE_SHARED], $@)])dnl
608 AC_DEFUN(AM_ENABLE_STATIC, [indir([AC_ENABLE_STATIC], $@)])dnl
609 AC_DEFUN(AM_DISABLE_SHARED, [indir([AC_DISABLE_SHARED], $@)])dnl
610 AC_DEFUN(AM_DISABLE_STATIC, [indir([AC_DISABLE_STATIC], $@)])dnl
611 AC_DEFUN(AM_PROG_LD, [indir([AC_PROG_LD])])dnl
612 AC_DEFUN(AM_PROG_NM, [indir([AC_PROG_NM])])dnl
614 dnl This is just to silence aclocal about the macro not being used
615 ifelse([AC_DISABLE_FAST_INSTALL])dnl