1 --- mysql-3.23.48/acinclude.m4.orig Thu Feb 7 21:46:47 2002
2 +++ mysql-3.23.48/acinclude.m4 Wed Feb 13 20:07:10 2002
5 # A local version of AC_CHECK_SIZEOF that includes sys/types.h
6 dnl MYSQL_CHECK_SIZEOF(TYPE [, CROSS-SIZE])
7 -AC_DEFUN(MYSQL_CHECK_SIZEOF,
8 +AC_DEFUN([MYSQL_CHECK_SIZEOF],
9 [changequote(<<, >>)dnl
10 dnl The name to #define.
11 define(<<AC_TYPE_NAME>>, translit(sizeof_$1, [a-z *], [A-Z_P]))dnl
15 #---START: Used in for client configure
16 -AC_DEFUN(MYSQL_TYPE_ACCEPT,
17 +AC_DEFUN([MYSQL_TYPE_ACCEPT],
18 [ac_save_CXXFLAGS="$CXXFLAGS"
19 AC_CACHE_CHECK([base type of last arg to accept], mysql_cv_btype_last_arg_accept,
24 dnl Find type of qsort
25 -AC_DEFUN(MYSQL_TYPE_QSORT,
26 +AC_DEFUN([MYSQL_TYPE_QSORT],
27 [AC_CACHE_CHECK([return type of qsort], mysql_cv_type_qsort,
28 [AC_TRY_COMPILE([#include <stdlib.h>
34 -AC_DEFUN(MYSQL_TIMESPEC_TS,
35 +AC_DEFUN([MYSQL_TIMESPEC_TS],
36 [AC_CACHE_CHECK([if struct timespec has a ts_sec member], mysql_cv_timespec_ts,
37 [AC_TRY_COMPILE([#include <pthread.h>
43 -AC_DEFUN(MYSQL_TZNAME,
44 +AC_DEFUN([MYSQL_TZNAME],
45 [AC_CACHE_CHECK([if we have tzname variable], mysql_cv_tzname,
46 [AC_TRY_COMPILE([#include <time.h>
52 -AC_DEFUN(MYSQL_CHECK_ZLIB_WITH_COMPRESS, [
53 +AC_DEFUN([MYSQL_CHECK_ZLIB_WITH_COMPRESS], [
56 AC_CACHE_CHECK([if libz with compress], mysql_cv_compress,
60 #---START: Used in for client configure
61 -AC_DEFUN(MYSQL_CHECK_ULONG,
62 +AC_DEFUN([MYSQL_CHECK_ULONG],
63 [AC_MSG_CHECKING(for type ulong)
64 AC_CACHE_VAL(ac_cv_ulong,
65 [AC_TRY_RUN([#include <stdio.h>
70 -AC_DEFUN(MYSQL_CHECK_UCHAR,
71 +AC_DEFUN([MYSQL_CHECK_UCHAR],
72 [AC_MSG_CHECKING(for type uchar)
73 AC_CACHE_VAL(ac_cv_uchar,
74 [AC_TRY_RUN([#include <stdio.h>
79 -AC_DEFUN(MYSQL_CHECK_UINT,
80 +AC_DEFUN([MYSQL_CHECK_UINT],
81 [AC_MSG_CHECKING(for type uint)
82 AC_CACHE_VAL(ac_cv_uint,
83 [AC_TRY_RUN([#include <stdio.h>
88 -AC_DEFUN(MYSQL_PTHREAD_YIELD,
89 +AC_DEFUN([MYSQL_PTHREAD_YIELD],
90 [AC_CACHE_CHECK([if pthread_yield takes zero arguments], ac_cv_pthread_yield_zero_arg,
91 [AC_TRY_LINK([#define _GNU_SOURCE
97 -AC_DEFUN(MYSQL_CHECK_FP_EXCEPT,
98 +AC_DEFUN([MYSQL_CHECK_FP_EXCEPT],
99 [AC_MSG_CHECKING(for type fp_except)
100 AC_CACHE_VAL(ac_cv_fp_except,
101 [AC_TRY_RUN([#include <stdio.h>
106 -# From fileutils-3.14/aclocal.m4
108 -# @defmac AC_PROG_CC_STDC
109 -# @maindex PROG_CC_STDC
111 -# If the C compiler in not in ANSI C mode by default, try to add an option
112 -# to output variable @code{CC} to make it so. This macro tries various
113 -# options that select ANSI C on some system or another. It considers the
114 -# compiler to be in ANSI C mode if it defines @code{__STDC__} to 1 and
115 -# handles function prototypes correctly.
117 -# Patched by monty to only check if __STDC__ is defined. With the original
118 -# check it's impossible to get things to work with the Sunpro compiler from
121 -# If you use this macro, you should check after calling it whether the C
122 -# compiler has been set to accept ANSI C; if not, the shell variable
123 -# @code{am_cv_prog_cc_stdc} is set to @samp{no}. If you wrote your source
124 -# code in ANSI C, you can make an un-ANSIfied copy of it by using the
125 -# program @code{ansi2knr}, which comes with Ghostscript.
128 -AC_DEFUN(AM_PROG_CC_STDC,
129 -[AC_REQUIRE([AC_PROG_CC])
130 -AC_MSG_CHECKING(for ${CC-cc} option to accept ANSI C)
131 -AC_CACHE_VAL(am_cv_prog_cc_stdc,
132 -[am_cv_prog_cc_stdc=no
134 -# Don't try gcc -ansi; that turns off useful extensions and
135 -# breaks some systems' header files.
136 -# AIX -qlanglvl=ansi
137 -# Ultrix and OSF/1 -std1
138 -# HP-UX -Aa -D_HPUX_SOURCE
139 -# SVR4 -Xc -D__EXTENSIONS__
140 -# removed "-Xc -D__EXTENSIONS__" beacause sun c++ does not like it.
141 -for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE"
143 - CC="$ac_save_CC $ac_arg"
145 -[#if !defined(__STDC__)
148 -/* DYNIX/ptx V4.1.3 can't compile sys/stat.h with -Xc -D__EXTENSIONS__. */
150 -# include <sys/types.h>
151 -# include <sys/stat.h>
154 -int test (int i, double x);
155 -struct s1 {int (*f) (int a);};
156 -struct s2 {int (*f) (double a);};],
157 -[am_cv_prog_cc_stdc="$ac_arg"; break])
161 -AC_MSG_RESULT($am_cv_prog_cc_stdc)
162 -case "x$am_cv_prog_cc_stdc" in
164 - *) CC="$CC $am_cv_prog_cc_stdc" ;;
169 -# Check to make sure that the build environment is sane.
172 -AC_DEFUN(AM_SANITY_CHECK,
173 -[AC_MSG_CHECKING([whether build environment is sane])
175 -echo timestamp > conftestfile
176 -# Do this in a subshell so we don't clobber the current shell's
177 -# arguments. FIXME: maybe try `-L' hack like GETLOADAVG test?
178 -if (set X `ls -t $srcdir/configure conftestfile`; test "[$]2" = conftestfile)
183 - AC_MSG_ERROR([newly created file is older than distributed files!
184 -Check your system clock])
187 -AC_MSG_RESULT(yes)])
189 # Orginal from bash-2.0 aclocal.m4, Changed to use termcap last by monty.
191 -AC_DEFUN(MYSQL_CHECK_LIB_TERMCAP,
192 +AC_DEFUN([MYSQL_CHECK_LIB_TERMCAP],
194 AC_CACHE_VAL(mysql_cv_termcap_lib,
195 [AC_CHECK_LIB(ncurses, tgetent, mysql_cv_termcap_lib=libncurses,
199 dnl Check type of signal routines (posix, 4.2bsd, 4.1bsd or v7)
200 -AC_DEFUN(MYSQL_SIGNAL_CHECK,
201 +AC_DEFUN([MYSQL_SIGNAL_CHECK],
202 [AC_REQUIRE([AC_TYPE_SIGNAL])
203 AC_MSG_CHECKING(for type of signal functions)
204 AC_CACHE_VAL(mysql_cv_signal_vintage,
209 -AC_DEFUN(MYSQL_CHECK_GETPW_FUNCS,
210 +AC_DEFUN([MYSQL_CHECK_GETPW_FUNCS],
211 [AC_MSG_CHECKING(whether programs are able to redeclare getpw functions)
212 AC_CACHE_VAL(mysql_cv_can_redecl_getpw,
213 [AC_TRY_COMPILE([#include <sys/types.h>
218 -AC_DEFUN(MYSQL_HAVE_TIOCGWINSZ,
219 +AC_DEFUN([MYSQL_HAVE_TIOCGWINSZ],
220 [AC_MSG_CHECKING(for TIOCGWINSZ in sys/ioctl.h)
221 AC_CACHE_VAL(mysql_cv_tiocgwinsz_in_ioctl,
222 [AC_TRY_COMPILE([#include <sys/types.h>
227 -AC_DEFUN(MYSQL_HAVE_FIONREAD,
228 +AC_DEFUN([MYSQL_HAVE_FIONREAD],
229 [AC_MSG_CHECKING(for FIONREAD in sys/ioctl.h)
230 AC_CACHE_VAL(mysql_cv_fionread_in_ioctl,
231 [AC_TRY_COMPILE([#include <sys/types.h>
236 -AC_DEFUN(MYSQL_HAVE_TIOCSTAT,
237 +AC_DEFUN([MYSQL_HAVE_TIOCSTAT],
238 [AC_MSG_CHECKING(for TIOCSTAT in sys/ioctl.h)
239 AC_CACHE_VAL(mysql_cv_tiocstat_in_ioctl,
240 [AC_TRY_COMPILE([#include <sys/types.h>
245 -AC_DEFUN(MYSQL_STRUCT_DIRENT_D_INO,
246 +AC_DEFUN([MYSQL_STRUCT_DIRENT_D_INO],
247 [AC_REQUIRE([AC_HEADER_DIRENT])
248 AC_MSG_CHECKING(if struct dirent has a d_ino member)
249 AC_CACHE_VAL(mysql_cv_dirent_has_dino,
254 -AC_DEFUN(MYSQL_TYPE_SIGHANDLER,
255 +AC_DEFUN([MYSQL_TYPE_SIGHANDLER],
256 [AC_MSG_CHECKING([whether signal handlers are of type void])
257 AC_CACHE_VAL(mysql_cv_void_sighandler,
258 [AC_TRY_COMPILE([#include <sys/types.h>
263 -AC_DEFUN(MYSQL_CXX_BOOL,
264 +AC_DEFUN([MYSQL_CXX_BOOL],
266 AC_REQUIRE([AC_PROG_CXX])
267 AC_MSG_CHECKING(if ${CXX} supports bool types)
272 -AC_DEFUN(MYSQL_STACK_DIRECTION,
273 +AC_DEFUN([MYSQL_STACK_DIRECTION],
274 [AC_CACHE_CHECK(stack direction for C alloca, ac_cv_c_stack_direction,
275 [AC_TRY_RUN([find_stack_direction ()
278 AC_DEFINE_UNQUOTED(STACK_DIRECTION, $ac_cv_c_stack_direction)
281 -AC_DEFUN(MYSQL_FUNC_ALLOCA,
282 +AC_DEFUN([MYSQL_FUNC_ALLOCA],
284 # Since we have heard that alloca fails on IRIX never define it on a
290 -AC_DEFUN(MYSQL_CHECK_LONGLONG_TO_FLOAT,
291 +AC_DEFUN([MYSQL_CHECK_LONGLONG_TO_FLOAT],
293 AC_MSG_CHECKING(if conversion of longlong to float works)
294 AC_CACHE_VAL(ac_cv_conv_longlong_to_float,
295 @@ -1019,568 +936,3 @@
296 dnl ---------------------------------------------------------------------------
297 dnl END OF MYSQL_CHECK_GEMINI SECTION
298 dnl ---------------------------------------------------------------------------
300 -dnl ---------------------------------------------------------------------------
301 -dnl Got this from the GNU tar 1.13.11 distribution
302 -dnl by Paul Eggert <eggert@twinsun.com>
303 -dnl ---------------------------------------------------------------------------
305 -dnl By default, many hosts won't let programs access large files;
306 -dnl one must use special compiler options to get large-file access to work.
307 -dnl For more details about this brain damage please see:
308 -dnl http://www.sas.com/standards/large.file/x_open.20Mar96.html
310 -dnl Written by Paul Eggert <eggert@twinsun.com>.
312 -dnl Internal subroutine of AC_SYS_LARGEFILE.
313 -dnl AC_SYS_LARGEFILE_FLAGS(FLAGSNAME)
314 -AC_DEFUN(AC_SYS_LARGEFILE_FLAGS,
315 - [AC_CACHE_CHECK([for $1 value to request large file support],
316 - ac_cv_sys_largefile_$1,
317 - [if ($GETCONF LFS_$1) >conftest.1 2>conftest.2 && test ! -s conftest.2
319 - ac_cv_sys_largefile_$1=`cat conftest.1`
321 - ac_cv_sys_largefile_$1=no
323 - [case "$host_os" in
324 - # HP-UX 10.20 requires -D__STDC_EXT__ with gcc 2.95.1.
326 - hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
327 -changequote([, ])dnl
328 - if test "$GCC" = yes; then
329 - ac_cv_sys_largefile_CFLAGS=-D__STDC_EXT__
332 - # IRIX 6.2 and later require cc -n32.
334 - irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
335 -changequote([, ])dnl
336 - if test "$GCC" != yes; then
337 - ac_cv_sys_largefile_CFLAGS=-n32
340 - if test "$ac_cv_sys_largefile_CFLAGS" != no; then
342 - CC="$CC $ac_cv_sys_largefile_CFLAGS"
343 - AC_TRY_LINK(, , , ac_cv_sys_largefile_CFLAGS=no)
347 - rm -f conftest*])])
349 -dnl Internal subroutine of AC_SYS_LARGEFILE.
350 -dnl AC_SYS_LARGEFILE_SPACE_APPEND(VAR, VAL)
351 -AC_DEFUN(AC_SYS_LARGEFILE_SPACE_APPEND,
357 - *) $1=[$]$1' '$2 ;;
361 -dnl Internal subroutine of AC_SYS_LARGEFILE.
362 -dnl AC_SYS_LARGEFILE_MACRO_VALUE(C-MACRO, CACHE-VAR, COMMENT, CODE-TO-SET-DEFAULT)
363 -AC_DEFUN(AC_SYS_LARGEFILE_MACRO_VALUE,
364 - [AC_CACHE_CHECK([for $1], $2,
368 - for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
373 - $2=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
376 -changequote([, ])dnl
378 - if test "[$]$2" != no; then
379 - AC_DEFINE_UNQUOTED([$1], [$]$2, [$3])
382 -AC_DEFUN(MYSQL_SYS_LARGEFILE,
383 - [AC_REQUIRE([AC_CANONICAL_HOST])
384 - AC_ARG_ENABLE(largefile,
385 - [ --disable-largefile Omit support for large files])
386 - if test "$enable_largefile" != no; then
387 - AC_CHECK_TOOL(GETCONF, getconf)
388 - AC_SYS_LARGEFILE_FLAGS(CFLAGS)
389 - AC_SYS_LARGEFILE_FLAGS(LDFLAGS)
390 - AC_SYS_LARGEFILE_FLAGS(LIBS)
392 - for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
395 - -D_FILE_OFFSET_BITS=*) ;;
396 - -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
397 - -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
399 - AC_SYS_LARGEFILE_SPACE_APPEND(CPPFLAGS, "$ac_flag") ;;
401 - AC_SYS_LARGEFILE_SPACE_APPEND(CFLAGS, "$ac_flag") ;;
404 - AC_SYS_LARGEFILE_SPACE_APPEND(LDFLAGS, "$ac_cv_sys_largefile_LDFLAGS")
405 - AC_SYS_LARGEFILE_SPACE_APPEND(LIBS, "$ac_cv_sys_largefile_LIBS")
406 - AC_SYS_LARGEFILE_MACRO_VALUE(_FILE_OFFSET_BITS,
407 - ac_cv_sys_file_offset_bits,
408 - [Number of bits in a file offset, on hosts where this is settable.],
409 - [case "$host_os" in
410 - # HP-UX 10.20 and later
411 - hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
412 - ac_cv_sys_file_offset_bits=64 ;;
414 - AC_SYS_LARGEFILE_MACRO_VALUE(_LARGEFILE_SOURCE,
415 - ac_cv_sys_largefile_source,
416 - [Define to make fseeko etc. visible, on some hosts.],
417 - [case "$host_os" in
418 - # HP-UX 10.20 and later
419 - hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
420 - ac_cv_sys_largefile_source=1 ;;
422 - AC_SYS_LARGEFILE_MACRO_VALUE(_LARGE_FILES,
423 - ac_cv_sys_large_files,
424 - [Define for large files, on AIX-style hosts.],
425 - [case "$host_os" in
426 - # AIX 4.2 and later
427 - aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*)
428 - ac_cv_sys_large_files=1 ;;
434 -## libtool.m4 - Configure libtool for the target system. -*-Shell-script-*-
435 -## Copyright (C) 1996-1999 Free Software Foundation, Inc.
436 -## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
438 -## This program is free software; you can redistribute it and/or modify
439 -## it under the terms of the GNU General Public License as published by
440 -## the Free Software Foundation; either version 2 of the License, or
441 -## (at your option) any later version.
443 -## This program is distributed in the hope that it will be useful, but
444 -## WITHOUT ANY WARRANTY; without even the implied warranty of
445 -## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
446 -## General Public License for more details.
448 -## You should have received a copy of the GNU General Public License
449 -## along with this program; if not, write to the Free Software
450 -## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
452 -## As a special exception to the GNU General Public License, if you
453 -## distribute this file as part of a program that contains a
454 -## configuration script generated by Autoconf, you may include it under
455 -## the same distribution terms that you use for the rest of that program.
457 -# serial 40 AC_PROG_LIBTOOL
458 -AC_DEFUN(AC_PROG_LIBTOOL,
459 -[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
461 -# Save cache, so that ltconfig can load it
464 -# Actually configure libtool. ac_aux_dir is where install-sh is found.
465 -CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
466 -LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
467 -LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
468 -DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
469 -${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
470 -$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
471 -|| AC_MSG_ERROR([libtool configure failed])
473 -# Reload cache, that may have been modified by ltconfig
476 -# This can be used to rebuild libtool when needed
477 -LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
479 -# Always use our own libtool.
480 -LIBTOOL='$(SHELL) $(top_builddir)/libtool'
481 -AC_SUBST(LIBTOOL)dnl
483 -# Redirect the config.log output again, so that the ltconfig log is not
484 -# clobbered by the next message.
485 -exec 5>>./config.log
488 -AC_DEFUN(AC_LIBTOOL_SETUP,
490 -AC_REQUIRE([AC_ENABLE_SHARED])dnl
491 -AC_REQUIRE([AC_ENABLE_STATIC])dnl
492 -AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
493 -AC_REQUIRE([AC_CANONICAL_HOST])dnl
494 -AC_REQUIRE([AC_CANONICAL_BUILD])dnl
495 -AC_REQUIRE([AC_PROG_RANLIB])dnl
496 -AC_REQUIRE([AC_PROG_CC])dnl
497 -AC_REQUIRE([AC_PROG_LD])dnl
498 -AC_REQUIRE([AC_PROG_NM])dnl
499 -AC_REQUIRE([AC_PROG_LN_S])dnl
503 -NONE) lt_target="$host" ;;
504 -*) lt_target="$target" ;;
507 -# Check for any special flags to pass to ltconfig.
508 -libtool_flags="--cache-file=$cache_file"
509 -test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
510 -test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
511 -test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
512 -test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
513 -test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
514 -ifdef([AC_PROVIDE_AC_LIBTOOL_DLOPEN],
515 -[libtool_flags="$libtool_flags --enable-dlopen"])
516 -ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
517 -[libtool_flags="$libtool_flags --enable-win32-dll"])
518 -AC_ARG_ENABLE(libtool-lock,
519 - [ --disable-libtool-lock avoid locking (might break parallel builds)])
520 -test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
521 -test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
523 -# Some flags need to be propagated to the compiler or linker for good
525 -case "$lt_target" in
527 - # Find out which ABI we are using.
528 - echo '[#]line __oline__ "configure"' > conftest.$ac_ext
529 - if AC_TRY_EVAL(ac_compile); then
530 - case "`/usr/bin/file conftest.o`" in
546 - # On SCO OpenServer 5, we need -belf to get full-featured binaries.
547 - SAVE_CFLAGS="$CFLAGS"
548 - CFLAGS="$CFLAGS -belf"
549 - AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
550 - [AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])])
551 - if test x"$lt_cv_cc_needs_belf" != x"yes"; then
552 - # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
553 - CFLAGS="$SAVE_CFLAGS"
557 -ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
558 -[*-*-cygwin* | *-*-mingw*)
559 - AC_CHECK_TOOL(DLLTOOL, dlltool, false)
560 - AC_CHECK_TOOL(AS, as, false)
561 - AC_CHECK_TOOL(OBJDUMP, objdump, false)
567 -# AC_LIBTOOL_DLOPEN - enable checks for dlopen support
568 -AC_DEFUN(AC_LIBTOOL_DLOPEN, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])])
570 -# AC_LIBTOOL_WIN32_DLL - declare package support for building win32 dll's
571 -AC_DEFUN(AC_LIBTOOL_WIN32_DLL, [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])])
573 -# AC_ENABLE_SHARED - implement the --enable-shared flag
574 -# Usage: AC_ENABLE_SHARED[(DEFAULT)]
575 -# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
577 -AC_DEFUN(AC_ENABLE_SHARED, [dnl
578 -define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
579 -AC_ARG_ENABLE(shared,
580 -changequote(<<, >>)dnl
581 -<< --enable-shared[=PKGS] build shared libraries [default=>>AC_ENABLE_SHARED_DEFAULT],
582 -changequote([, ])dnl
583 -[p=${PACKAGE-default}
584 -case "$enableval" in
585 -yes) enable_shared=yes ;;
586 -no) enable_shared=no ;;
589 - # Look at the argument we got. We use all the common list separators.
590 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
591 - for pkg in $enableval; do
592 - if test "X$pkg" = "X$p"; then
599 -enable_shared=AC_ENABLE_SHARED_DEFAULT)dnl
602 -# AC_DISABLE_SHARED - set the default shared flag to --disable-shared
603 -AC_DEFUN(AC_DISABLE_SHARED, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
604 -AC_ENABLE_SHARED(no)])
606 -# AC_ENABLE_STATIC - implement the --enable-static flag
607 -# Usage: AC_ENABLE_STATIC[(DEFAULT)]
608 -# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
610 -AC_DEFUN(AC_ENABLE_STATIC, [dnl
611 -define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
612 -AC_ARG_ENABLE(static,
613 -changequote(<<, >>)dnl
614 -<< --enable-static[=PKGS] build static libraries [default=>>AC_ENABLE_STATIC_DEFAULT],
615 -changequote([, ])dnl
616 -[p=${PACKAGE-default}
617 -case "$enableval" in
618 -yes) enable_static=yes ;;
619 -no) enable_static=no ;;
622 - # Look at the argument we got. We use all the common list separators.
623 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
624 - for pkg in $enableval; do
625 - if test "X$pkg" = "X$p"; then
632 -enable_static=AC_ENABLE_STATIC_DEFAULT)dnl
635 -# AC_DISABLE_STATIC - set the default static flag to --disable-static
636 -AC_DEFUN(AC_DISABLE_STATIC, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
637 -AC_ENABLE_STATIC(no)])
640 -# AC_ENABLE_FAST_INSTALL - implement the --enable-fast-install flag
641 -# Usage: AC_ENABLE_FAST_INSTALL[(DEFAULT)]
642 -# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
644 -AC_DEFUN(AC_ENABLE_FAST_INSTALL, [dnl
645 -define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
646 -AC_ARG_ENABLE(fast-install,
647 -changequote(<<, >>)dnl
648 -<< --enable-fast-install[=PKGS] optimize for fast installation [default=>>AC_ENABLE_FAST_INSTALL_DEFAULT],
649 -changequote([, ])dnl
650 -[p=${PACKAGE-default}
651 -case "$enableval" in
652 -yes) enable_fast_install=yes ;;
653 -no) enable_fast_install=no ;;
655 - enable_fast_install=no
656 - # Look at the argument we got. We use all the common list separators.
657 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
658 - for pkg in $enableval; do
659 - if test "X$pkg" = "X$p"; then
660 - enable_fast_install=yes
666 -enable_fast_install=AC_ENABLE_FAST_INSTALL_DEFAULT)dnl
669 -# AC_ENABLE_FAST_INSTALL - set the default to --disable-fast-install
670 -AC_DEFUN(AC_DISABLE_FAST_INSTALL, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
671 -AC_ENABLE_FAST_INSTALL(no)])
673 -# AC_PROG_LD - find the path to the GNU or non-GNU linker
674 -AC_DEFUN(AC_PROG_LD,
675 -[AC_ARG_WITH(gnu-ld,
676 -[ --with-gnu-ld assume the C compiler uses GNU ld [default=no]],
677 -test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
678 -AC_REQUIRE([AC_PROG_CC])dnl
679 -AC_REQUIRE([AC_CANONICAL_HOST])dnl
680 -AC_REQUIRE([AC_CANONICAL_BUILD])dnl
682 -if test "$ac_cv_prog_gcc" = yes; then
683 - # Check if gcc -print-prog-name=ld gives a path.
684 - AC_MSG_CHECKING([for ld used by GCC])
685 - ac_prog=`($CC -print-prog-name=ld) 2>&5`
687 - # Accept absolute paths.
689 - [\\/]* | [A-Za-z]:[\\/]*)
690 - re_direlt='/[^/][^/]*/\.\./'
692 - # Canonicalize the path of ld
693 - ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
694 - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
695 - ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
697 - test -z "$LD" && LD="$ac_prog"
700 - # If it fails, then pretend we aren't using GCC.
704 - # If it is relative, then search for the first ld in PATH.
705 - with_gnu_ld=unknown
708 -elif test "$with_gnu_ld" = yes; then
709 - AC_MSG_CHECKING([for GNU ld])
711 - AC_MSG_CHECKING([for non-GNU ld])
713 -AC_CACHE_VAL(ac_cv_path_LD,
714 -[if test -z "$LD"; then
715 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
716 - for ac_dir in $PATH; do
717 - test -z "$ac_dir" && ac_dir=.
718 - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
719 - ac_cv_path_LD="$ac_dir/$ac_prog"
720 - # Check to see if the program is GNU ld. I'd rather use --version,
721 - # but apparently some GNU ld's only accept -v.
722 - # Break only if it was the GNU/non-GNU ld that we prefer.
723 - if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
724 - test "$with_gnu_ld" != no && break
726 - test "$with_gnu_ld" != yes && break
732 - ac_cv_path_LD="$LD" # Let the user override the test with a path.
735 -if test -n "$LD"; then
740 -test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
744 -AC_DEFUN(AC_PROG_LD_GNU,
745 -[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], ac_cv_prog_gnu_ld,
746 -[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
747 -if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
748 - ac_cv_prog_gnu_ld=yes
750 - ac_cv_prog_gnu_ld=no
754 -# AC_PROG_NM - find the path to a BSD-compatible name lister
755 -AC_DEFUN(AC_PROG_NM,
756 -[AC_MSG_CHECKING([for BSD-compatible nm])
757 -AC_CACHE_VAL(ac_cv_path_NM,
758 -[if test -n "$NM"; then
759 - # Let the user override the test.
760 - ac_cv_path_NM="$NM"
762 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
763 - for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
764 - test -z "$ac_dir" && ac_dir=.
765 - if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
766 - # Check to see if the nm accepts a BSD-compat flag.
767 - # Adding the `sed 1q' prevents false positives on HP-UX, which says:
768 - # nm: unknown option "B" ignored
769 - if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
770 - ac_cv_path_NM="$ac_dir/nm -B"
772 - elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
773 - ac_cv_path_NM="$ac_dir/nm -p"
776 - ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
777 - continue # so that we can try to find one that supports BSD flags
782 - test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
785 -AC_MSG_RESULT([$NM])
788 -# AC_CHECK_LIBM - check for math library
789 -AC_DEFUN(AC_CHECK_LIBM,
790 -[AC_REQUIRE([AC_CANONICAL_HOST])dnl
792 -case "$lt_target" in
793 -*-*-beos* | *-*-cygwin*)
794 - # These system don't have libm
797 - AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
798 - AC_CHECK_LIB(m, main, LIBM="$LIBM -lm")
801 - AC_CHECK_LIB(m, main, LIBM="-lm")
806 -# AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for
807 -# the libltdl convenience library, adds --enable-ltdl-convenience to
808 -# the configure arguments. Note that LIBLTDL is not AC_SUBSTed, nor
809 -# is AC_CONFIG_SUBDIRS called. If DIR is not provided, it is assumed
810 -# to be `${top_builddir}/libltdl'. Make sure you start DIR with
811 -# '${top_builddir}/' (note the single quotes!) if your package is not
812 -# flat, and, if you're not using automake, define top_builddir as
813 -# appropriate in the Makefiles.
814 -AC_DEFUN(AC_LIBLTDL_CONVENIENCE, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
815 - case "$enable_ltdl_convenience" in
816 - no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
817 - "") enable_ltdl_convenience=yes
818 - ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
820 - LIBLTDL=ifelse($#,1,$1,['${top_builddir}/libltdl'])/libltdlc.la
821 - INCLTDL=ifelse($#,1,-I$1,['-I${top_builddir}/libltdl'])
824 -# AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for
825 -# the libltdl installable library, and adds --enable-ltdl-install to
826 -# the configure arguments. Note that LIBLTDL is not AC_SUBSTed, nor
827 -# is AC_CONFIG_SUBDIRS called. If DIR is not provided, it is assumed
828 -# to be `${top_builddir}/libltdl'. Make sure you start DIR with
829 -# '${top_builddir}/' (note the single quotes!) if your package is not
830 -# flat, and, if you're not using automake, define top_builddir as
831 -# appropriate in the Makefiles.
832 -# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
833 -AC_DEFUN(AC_LIBLTDL_INSTALLABLE, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
834 - AC_CHECK_LIB(ltdl, main,
835 - [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
836 - [if test x"$enable_ltdl_install" = xno; then
837 - AC_MSG_WARN([libltdl not installed, but installation disabled])
839 - enable_ltdl_install=yes
842 - if test x"$enable_ltdl_install" = x"yes"; then
843 - ac_configure_args="$ac_configure_args --enable-ltdl-install"
844 - LIBLTDL=ifelse($#,1,$1,['${top_builddir}/libltdl'])/libltdl.la
845 - INCLTDL=ifelse($#,1,-I$1,['-I${top_builddir}/libltdl'])
847 - ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
854 -AC_DEFUN(AM_PROG_LIBTOOL, [indir([AC_PROG_LIBTOOL])])dnl
855 -AC_DEFUN(AM_ENABLE_SHARED, [indir([AC_ENABLE_SHARED], $@)])dnl
856 -AC_DEFUN(AM_ENABLE_STATIC, [indir([AC_ENABLE_STATIC], $@)])dnl
857 -AC_DEFUN(AM_DISABLE_SHARED, [indir([AC_DISABLE_SHARED], $@)])dnl
858 -AC_DEFUN(AM_DISABLE_STATIC, [indir([AC_DISABLE_STATIC], $@)])dnl
859 -AC_DEFUN(AM_PROG_LD, [indir([AC_PROG_LD])])dnl
860 -AC_DEFUN(AM_PROG_NM, [indir([AC_PROG_NM])])dnl
862 -dnl This is just to silence aclocal about the macro not being used
863 -ifelse([AC_DISABLE_FAST_INSTALL])dnl