1607
570
rm -f confinc confmf
1610
# AM_CONDITIONAL -*- Autoconf -*-
1612
# Copyright 1997, 2000, 2001 Free Software Foundation, Inc.
1614
# This program is free software; you can redistribute it and/or modify
1615
# it under the terms of the GNU General Public License as published by
1616
# the Free Software Foundation; either version 2, or (at your option)
1617
# any later version.
1619
# This program is distributed in the hope that it will be useful,
1620
# but WITHOUT ANY WARRANTY; without even the implied warranty of
1621
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1622
# GNU General Public License for more details.
1624
# You should have received a copy of the GNU General Public License
1625
# along with this program; if not, write to the Free Software
1626
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1633
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
1634
# -------------------------------------
1635
# Define a conditional.
1636
AC_DEFUN([AM_CONDITIONAL],
1637
[ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
1638
[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
1640
AC_SUBST([$1_FALSE])
1648
AC_CONFIG_COMMANDS_PRE(
1649
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
1650
AC_MSG_ERROR([conditional "$1" was never defined.
1651
Usually this means the macro was only invoked conditionally.])
1654
# Add --enable-maintainer-mode option to configure.
1657
# Copyright 1996, 1998, 2000, 2001, 2002 Free Software Foundation, Inc.
1659
# This program is free software; you can redistribute it and/or modify
1660
# it under the terms of the GNU General Public License as published by
1661
# the Free Software Foundation; either version 2, or (at your option)
1662
# any later version.
1664
# This program is distributed in the hope that it will be useful,
1665
# but WITHOUT ANY WARRANTY; without even the implied warranty of
1666
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1667
# GNU General Public License for more details.
1669
# You should have received a copy of the GNU General Public License
1670
# along with this program; if not, write to the Free Software
1671
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1676
AC_DEFUN([AM_MAINTAINER_MODE],
1677
[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
1678
dnl maintainer-mode is disabled by default
1679
AC_ARG_ENABLE(maintainer-mode,
1680
[ --enable-maintainer-mode enable make rules and dependencies not useful
1681
(and sometimes confusing) to the casual installer],
1682
USE_MAINTAINER_MODE=$enableval,
1683
USE_MAINTAINER_MODE=no)
1684
AC_MSG_RESULT([$USE_MAINTAINER_MODE])
1685
AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
1686
MAINT=$MAINTAINER_MODE_TRUE
1691
AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
1693
# isc-posix.m4 serial 2 (gettext-0.11.2)
1694
dnl Copyright (C) 1995-2002 Free Software Foundation, Inc.
1695
dnl This file is free software, distributed under the terms of the GNU
1696
dnl General Public License. As a special exception to the GNU General
1697
dnl Public License, this file may be distributed as part of a program
1698
dnl that contains a configuration script generated by Autoconf, under
1699
dnl the same distribution terms as the rest of that program.
1701
# This file is not needed with autoconf-2.53 and newer. Remove it in 2005.
1703
# This test replaces the one in autoconf.
1704
# Currently this macro should have the same name as the autoconf macro
1705
# because gettext's gettext.m4 (distributed in the automake package)
1706
# still uses it. Otherwise, the use in gettext.m4 makes autoheader
1707
# give these diagnostics:
1708
# configure.in:556: AC_TRY_COMPILE was called before AC_ISC_POSIX
1709
# configure.in:556: AC_TRY_RUN was called before AC_ISC_POSIX
1711
undefine([AC_ISC_POSIX])
1713
AC_DEFUN([AC_ISC_POSIX],
1715
dnl This test replaces the obsolescent AC_ISC_POSIX kludge.
1716
AC_CHECK_LIB(cposix, strerror, [LIBS="$LIBS -lcposix"])
1721
# Copyright 1996, 1997, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
1723
# This program is free software; you can redistribute it and/or modify
1724
# it under the terms of the GNU General Public License as published by
1725
# the Free Software Foundation; either version 2, or (at your option)
1726
# any later version.
1728
# This program is distributed in the hope that it will be useful,
1729
# but WITHOUT ANY WARRANTY; without even the implied warranty of
1730
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1731
# GNU General Public License for more details.
1733
# You should have received a copy of the GNU General Public License
1734
# along with this program; if not, write to the Free Software
1735
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1740
# @defmac AC_PROG_CC_STDC
1741
# @maindex PROG_CC_STDC
1743
# If the C compiler in not in ANSI C mode by default, try to add an option
1744
# to output variable @code{CC} to make it so. This macro tries various
1745
# options that select ANSI C on some system or another. It considers the
1746
# compiler to be in ANSI C mode if it handles function prototypes correctly.
1748
# If you use this macro, you should check after calling it whether the C
1749
# compiler has been set to accept ANSI C; if not, the shell variable
1750
# @code{am_cv_prog_cc_stdc} is set to @samp{no}. If you wrote your source
1751
# code in ANSI C, you can make an un-ANSIfied copy of it by using the
1752
# program @code{ansi2knr}, which comes with Ghostscript.
1755
AC_DEFUN([AM_PROG_CC_STDC],
1756
[AC_REQUIRE([AC_PROG_CC])
1757
AC_BEFORE([$0], [AC_C_INLINE])
1758
AC_BEFORE([$0], [AC_C_CONST])
1759
dnl Force this before AC_PROG_CPP. Some cpp's, eg on HPUX, require
1760
dnl a magic option to avoid problems with ANSI preprocessor commands
1762
dnl FIXME: can't do this because then AC_AIX won't work due to a
1763
dnl circular dependency.
1764
dnl AC_BEFORE([$0], [AC_PROG_CPP])
1765
AC_MSG_CHECKING([for ${CC-cc} option to accept ANSI C])
1766
AC_CACHE_VAL(am_cv_prog_cc_stdc,
1767
[am_cv_prog_cc_stdc=no
1769
# Don't try gcc -ansi; that turns off useful extensions and
1770
# breaks some systems' header files.
1771
# AIX -qlanglvl=ansi
1772
# Ultrix and OSF/1 -std1
1773
# HP-UX 10.20 and later -Ae
1774
# HP-UX older versions -Aa -D_HPUX_SOURCE
1775
# SVR4 -Xc -D__EXTENSIONS__
1776
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
573
# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
575
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
576
# Free Software Foundation, Inc.
578
# This file is free software; the Free Software Foundation
579
# gives unlimited permission to copy and/or distribute it,
580
# with or without modifications, as long as this notice is preserved.
584
# AM_MISSING_PROG(NAME, PROGRAM)
585
# ------------------------------
586
AC_DEFUN([AM_MISSING_PROG],
587
[AC_REQUIRE([AM_MISSING_HAS_RUN])
588
$1=${$1-"${am_missing_run}$2"}
594
# Define MISSING if not defined so far and test if it supports --run.
595
# If it does, set am_missing_run to use it, otherwise, to nothing.
596
AC_DEFUN([AM_MISSING_HAS_RUN],
597
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
598
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
599
# Use eval to expand $SHELL
600
if eval "$MISSING --run true"; then
601
am_missing_run="$MISSING --run "
604
AC_MSG_WARN([`missing' script is too old or missing])
608
# Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
610
# This file is free software; the Free Software Foundation
611
# gives unlimited permission to copy and/or distribute it,
612
# with or without modifications, as long as this notice is preserved.
616
# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
618
# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
619
# created by `make install' are always world readable, even if the
620
# installer happens to have an overly restrictive umask (e.g. 077).
621
# This was a mistake. There are at least two reasons why we must not
623
# - it causes special bits like SGID to be ignored,
624
# - it may be too restrictive (some setups expect 775 directories).
626
# Do not use -m 0755 and let people choose whatever they expect by
629
# We cannot accept any implementation of `mkdir' that recognizes `-p'.
630
# Some implementations (such as Solaris 8's) are not thread-safe: if a
631
# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
632
# concurrently, both version can detect that a/ is missing, but only
633
# one can create it and the other will error out. Consequently we
634
# restrict ourselves to GNU make (using the --version option ensures
636
AC_DEFUN([AM_PROG_MKDIR_P],
637
[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
638
# We used to keeping the `.' as first argument, in order to
639
# allow $(mkdir_p) to be used without argument. As in
640
# $(mkdir_p) $(somedir)
641
# where $(somedir) is conditionally defined. However this is wrong
643
# 1. if the package is installed by a user who cannot write `.'
644
# make install will fail,
645
# 2. the above comment should most certainly read
646
# $(mkdir_p) $(DESTDIR)$(somedir)
647
# so it does not work when $(somedir) is undefined and
649
# To support the latter case, we have to write
650
# test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
651
# so the `.' trick is pointless.
652
mkdir_p='mkdir -p --'
654
# On NextStep and OpenStep, the `mkdir' command does not
655
# recognize any option. It will interpret all options as
656
# directories to create, and then abort because `.' already
658
for d in ./-p ./--version;
660
test -d $d && rmdir $d
662
# $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
663
if test -f "$ac_aux_dir/mkinstalldirs"; then
664
mkdir_p='$(mkinstalldirs)'
666
mkdir_p='$(install_sh) -d'
669
AC_SUBST([mkdir_p])])
671
# Helper functions for option handling. -*- Autoconf -*-
673
# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
675
# This file is free software; the Free Software Foundation
676
# gives unlimited permission to copy and/or distribute it,
677
# with or without modifications, as long as this notice is preserved.
681
# _AM_MANGLE_OPTION(NAME)
682
# -----------------------
683
AC_DEFUN([_AM_MANGLE_OPTION],
684
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
686
# _AM_SET_OPTION(NAME)
687
# ------------------------------
688
# Set option NAME. Presently that only means defining a flag for this option.
689
AC_DEFUN([_AM_SET_OPTION],
690
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
692
# _AM_SET_OPTIONS(OPTIONS)
693
# ----------------------------------
694
# OPTIONS is a space-separated list of Automake options.
695
AC_DEFUN([_AM_SET_OPTIONS],
696
[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
698
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
699
# -------------------------------------------
700
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
701
AC_DEFUN([_AM_IF_OPTION],
702
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
704
# Check to make sure that the build environment is sane. -*- Autoconf -*-
706
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
707
# Free Software Foundation, Inc.
709
# This file is free software; the Free Software Foundation
710
# gives unlimited permission to copy and/or distribute it,
711
# with or without modifications, as long as this notice is preserved.
717
AC_DEFUN([AM_SANITY_CHECK],
718
[AC_MSG_CHECKING([whether build environment is sane])
721
echo timestamp > conftest.file
722
# Do `set' in a subshell so we don't clobber the current shell's
723
# arguments. Must try -L first in case configure is actually a
724
# symlink; some systems play weird games with the mod time of symlinks
725
# (eg FreeBSD returns the mod time of the symlink's containing
728
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
729
if test "$[*]" = "X"; then
731
set X `ls -t $srcdir/configure conftest.file`
734
if test "$[*]" != "X $srcdir/configure conftest.file" \
735
&& test "$[*]" != "X conftest.file $srcdir/configure"; then
737
# If neither matched, then we have a broken ls. This can happen
738
# if, for instance, CONFIG_SHELL is bash and it inherits a
739
# broken ls alias from the environment. This has actually
740
# happened. Such a system could not be considered "sane".
741
AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
742
alias in your environment])
745
test "$[2]" = conftest.file
751
AC_MSG_ERROR([newly created file is older than distributed files!
752
Check your system clock])
756
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
758
# This file is free software; the Free Software Foundation
759
# gives unlimited permission to copy and/or distribute it,
760
# with or without modifications, as long as this notice is preserved.
762
# AM_PROG_INSTALL_STRIP
763
# ---------------------
764
# One issue with vendor `install' (even GNU) is that you can't
765
# specify the program used to strip binaries. This is especially
766
# annoying in cross-compiling environments, where the build's strip
767
# is unlikely to handle the host's binaries.
768
# Fortunately install-sh will honor a STRIPPROG variable, so we
769
# always use install-sh in `make install-strip', and initialize
770
# STRIPPROG with the value of the STRIP variable (set by the user).
771
AC_DEFUN([AM_PROG_INSTALL_STRIP],
772
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
773
# Installed binaries are usually stripped using `strip' when the user
774
# run `make install-strip'. However `strip' might not be the right
775
# tool to use in cross-compilation environments, therefore Automake
776
# will honor the `STRIP' environment variable to overrule this program.
777
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
778
if test "$cross_compiling" != no; then
779
AC_CHECK_TOOL([STRIP], [strip], :)
781
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
782
AC_SUBST([INSTALL_STRIP_PROGRAM])])
784
# Check how to create a tarball. -*- Autoconf -*-
786
# Copyright (C) 2004, 2005 Free Software Foundation, Inc.
788
# This file is free software; the Free Software Foundation
789
# gives unlimited permission to copy and/or distribute it,
790
# with or without modifications, as long as this notice is preserved.
794
# _AM_PROG_TAR(FORMAT)
795
# --------------------
796
# Check how to create a tarball in format FORMAT.
797
# FORMAT should be one of `v7', `ustar', or `pax'.
799
# Substitute a variable $(am__tar) that is a command
800
# writing to stdout a FORMAT-tarball containing the directory
802
# tardir=directory && $(am__tar) > result.tar
804
# Substitute a variable $(am__untar) that extract such
805
# a tarball read from stdin.
806
# $(am__untar) < result.tar
807
AC_DEFUN([_AM_PROG_TAR],
808
[# Always define AMTAR for backward compatibility.
809
AM_MISSING_PROG([AMTAR], [tar])
811
[am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
812
[m4_case([$1], [ustar],, [pax],,
813
[m4_fatal([Unknown tar format])])
814
AC_MSG_CHECKING([how to create a $1 tar archive])
815
# Loop over all known methods to create a tar archive until one works.
816
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
817
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
818
# Do not fold the above two line into one, because Tru64 sh and
819
# Solaris sh will not grok spaces in the rhs of `-'.
820
for _am_tool in $_am_tools
1778
CC="$ac_save_CC $ac_arg"
1780
[#include <stdarg.h>
1782
#include <sys/types.h>
1783
#include <sys/stat.h>
1784
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1785
struct buf { int x; };
1786
FILE * (*rcsopen) (struct buf *, struct stat *, int);
1787
static char *e (p, i)
1793
static char *f (char * (*g) (char **, int), char **p, ...)
1798
s = g (p, va_arg (v,int));
1802
int test (int i, double x);
1803
struct s1 {int (*f) (int a);};
1804
struct s2 {int (*f) (double a);};
1805
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1809
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1811
[am_cv_prog_cc_stdc="$ac_arg"; break])
1815
if test -z "$am_cv_prog_cc_stdc"; then
1816
AC_MSG_RESULT([none needed])
1818
AC_MSG_RESULT([$am_cv_prog_cc_stdc])
1820
case "x$am_cv_prog_cc_stdc" in
1822
*) CC="$CC $am_cv_prog_cc_stdc" ;;
1826
AU_DEFUN([fp_PROG_CC_STDC], [AM_PROG_CC_STDC])
1828
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
1830
# serial 47 AC_PROG_LIBTOOL
1831
# Debian $Rev: 149 $
1834
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
1835
# -----------------------------------------------------------
1836
# If this macro is not defined by Autoconf, define it here.
1837
m4_ifdef([AC_PROVIDE_IFELSE],
1839
[m4_define([AC_PROVIDE_IFELSE],
1840
[m4_ifdef([AC_PROVIDE_$1],
1846
AC_DEFUN([AC_PROG_LIBTOOL],
1847
[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
1848
dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
1849
dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
1850
AC_PROVIDE_IFELSE([AC_PROG_CXX],
1852
[define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
1854
dnl And a similar setup for Fortran 77 support
1855
AC_PROVIDE_IFELSE([AC_PROG_F77],
1857
[define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
1860
dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
1861
dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
1862
dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
1863
AC_PROVIDE_IFELSE([AC_PROG_GCJ],
1865
[AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
1867
[AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
1869
[ifdef([AC_PROG_GCJ],
1870
[define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
1871
ifdef([A][M_PROG_GCJ],
1872
[define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
1873
ifdef([LT_AC_PROG_GCJ],
1874
[define([LT_AC_PROG_GCJ],
1875
defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
1876
])])# AC_PROG_LIBTOOL
1881
AC_DEFUN([_AC_PROG_LIBTOOL],
1882
[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
1883
AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
1884
AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
1885
AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
1887
# This can be used to rebuild libtool when needed
1888
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
1890
# Always use our own libtool.
1891
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1892
AC_SUBST(LIBTOOL)dnl
1894
# Prevent multiple expansion
1895
define([AC_PROG_LIBTOOL], [])
1896
])# _AC_PROG_LIBTOOL
1901
AC_DEFUN([AC_LIBTOOL_SETUP],
1903
AC_REQUIRE([AC_ENABLE_SHARED])dnl
1904
AC_REQUIRE([AC_ENABLE_STATIC])dnl
1905
AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
1906
AC_REQUIRE([AC_CANONICAL_HOST])dnl
1907
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
1908
AC_REQUIRE([AC_PROG_CC])dnl
1909
AC_REQUIRE([AC_PROG_LD])dnl
1910
AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
1911
AC_REQUIRE([AC_PROG_NM])dnl
1913
AC_REQUIRE([AC_PROG_LN_S])dnl
1914
AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
1915
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
1916
AC_REQUIRE([AC_OBJEXT])dnl
1917
AC_REQUIRE([AC_EXEEXT])dnl
1920
AC_LIBTOOL_SYS_MAX_CMD_LEN
1921
AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
1924
AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1925
_LT_AC_PROG_ECHO_BACKSLASH
1929
# AIX sometimes has problems with the GCC collect2 program. For some
1930
# reason, if we set the COLLECT_NAMES environment variable, the problems
1931
# vanish in a puff of smoke.
1932
if test "X${COLLECT_NAMES+set}" != Xset; then
1934
export COLLECT_NAMES
1939
# Sed substitution that helps us do robust quoting. It backslashifies
1940
# metacharacters that are still active within double-quoted strings.
1941
Xsed='sed -e s/^X//'
1942
[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
1944
# Same as above, but do not quote variable references.
1945
[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
1947
# Sed substitution to delay expansion of an escaped shell variable in a
1948
# double_quote_subst'ed string.
1949
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
1951
# Sed substitution to avoid accidental globbing in evaled expressions
1952
no_glob_subst='s/\*/\\\*/g'
1958
default_ofile=libtool
1959
can_build_shared=yes
1961
# All known linkers require a `.a' archive for static linking (except M$VC,
1962
# which needs '.lib').
1964
ltmain="$ac_aux_dir/ltmain.sh"
1965
ofile="$default_ofile"
1966
with_gnu_ld="$lt_cv_prog_gnu_ld"
1968
AC_CHECK_TOOL(AR, ar, false)
1969
AC_CHECK_TOOL(RANLIB, ranlib, :)
1970
AC_CHECK_TOOL(STRIP, strip, :)
1973
old_CFLAGS="$CFLAGS"
1975
# Set sane defaults for various variables
1976
test -z "$AR" && AR=ar
1977
test -z "$AR_FLAGS" && AR_FLAGS=cru
1978
test -z "$AS" && AS=as
1979
test -z "$CC" && CC=cc
1980
test -z "$LTCC" && LTCC=$CC
1981
test -z "$DLLTOOL" && DLLTOOL=dlltool
1982
test -z "$LD" && LD=ld
1983
test -z "$LN_S" && LN_S="ln -s"
1984
test -z "$MAGIC_CMD" && MAGIC_CMD=file
1985
test -z "$NM" && NM=nm
1986
test -z "$SED" && SED=sed
1987
test -z "$OBJDUMP" && OBJDUMP=objdump
1988
test -z "$RANLIB" && RANLIB=:
1989
test -z "$STRIP" && STRIP=:
1990
test -z "$ac_objext" && ac_objext=o
1992
# Determine commands to create old-style static archives.
1993
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
1994
old_postinstall_cmds='chmod 644 $oldlib'
1995
old_postuninstall_cmds=
1997
if test -n "$RANLIB"; then
2000
old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
2003
old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
2006
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
2009
# Only perform the check for file, if the check method requires it
2010
case $deplibs_check_method in
2012
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2018
AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
2019
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
2020
enable_win32_dll=yes, enable_win32_dll=no)
2022
AC_ARG_ENABLE([libtool-lock],
2023
[AC_HELP_STRING([--disable-libtool-lock],
2024
[avoid locking (might break parallel builds)])])
2025
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
2028
[AC_HELP_STRING([--with-pic],
2029
[try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
2030
[pic_mode="$withval"],
2032
test -z "$pic_mode" && pic_mode=default
2034
# Use C for the default configuration in the libtool script
2036
AC_LIBTOOL_LANG_C_CONFIG
2038
])# AC_LIBTOOL_SETUP
2041
# _LT_AC_SYS_COMPILER
2042
# -------------------
2043
AC_DEFUN([_LT_AC_SYS_COMPILER],
2044
[AC_REQUIRE([AC_PROG_CC])dnl
2046
# If no C compiler was specified, use CC.
2049
# Allow CC to be a program name with arguments.
2051
])# _LT_AC_SYS_COMPILER
2054
# _LT_AC_SYS_LIBPATH_AIX
2055
# ----------------------
2056
# Links a minimal program and checks the executable
2057
# for the system default hardcoded library path. In most cases,
2058
# this is /usr/lib:/lib, but when the MPI compilers are used
2059
# the location of the communication and MPI libs are included too.
2060
# If we don't find anything, use the default library path according
2061
# to the aix ld manual.
2062
AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
2063
[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
2064
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
2066
# Check for a 64-bit object if we didn't find anything.
2067
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
2069
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
2070
])# _LT_AC_SYS_LIBPATH_AIX
2073
# _LT_AC_SHELL_INIT(ARG)
2074
# ----------------------
2075
AC_DEFUN([_LT_AC_SHELL_INIT],
2076
[ifdef([AC_DIVERSION_NOTICE],
2077
[AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
2078
[AC_DIVERT_PUSH(NOTICE)])
2081
])# _LT_AC_SHELL_INIT
2084
# _LT_AC_PROG_ECHO_BACKSLASH
2085
# --------------------------
2086
# Add some code to the start of the generated configure script which
2087
# will find an echo command which doesn't interpret backslashes.
2088
AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
2089
[_LT_AC_SHELL_INIT([
2090
# Check that we are running under the correct shell.
2091
SHELL=${CONFIG_SHELL-/bin/sh}
2095
# Remove one level of quotation (which was required for Make).
2096
ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
2101
if test "X[$]1" = X--no-reexec; then
2102
# Discard the --no-reexec flag, and continue.
2104
elif test "X[$]1" = X--fallback-echo; then
2105
# Avoid inline document here, it may be left over
2107
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
2108
# Yippee, $echo works!
2111
# Restart under the correct shell.
2112
exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
2115
if test "X[$]1" = X--fallback-echo; then
2116
# used as fallback echo
2124
# The HP-UX ksh and POSIX shell print the target directory to stdout
2126
if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
2128
if test -z "$ECHO"; then
2129
if test "X${echo_test_string+set}" != Xset; then
2130
# find a string as large as possible, as long as the shell can cope with it
2131
for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
2132
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
2133
if (echo_test_string="`eval $cmd`") 2>/dev/null &&
2134
echo_test_string="`eval $cmd`" &&
2135
(test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
2142
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
2143
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
2144
test "X$echo_testing_string" = "X$echo_test_string"; then
2147
# The Solaris, AIX, and Digital Unix default echo programs unquote
2148
# backslashes. This makes it impossible to quote backslashes using
2149
# echo "$something" | sed 's/\\/\\\\/g'
2151
# So, first we look for a working echo in the user's PATH.
2153
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2154
for dir in $PATH /usr/ucb; do
2156
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
2157
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
2158
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
2159
test "X$echo_testing_string" = "X$echo_test_string"; then
2166
if test "X$echo" = Xecho; then
2167
# We didn't find a better echo, so look for alternatives.
2168
if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
2169
echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
2170
test "X$echo_testing_string" = "X$echo_test_string"; then
2171
# This shell has a builtin print -r that does the trick.
2173
elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
2174
test "X$CONFIG_SHELL" != X/bin/ksh; then
2175
# If we have ksh, try running configure again with it.
2176
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
2177
export ORIGINAL_CONFIG_SHELL
2178
CONFIG_SHELL=/bin/ksh
2180
exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
2184
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
2185
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
2186
test "X$echo_testing_string" = "X$echo_test_string"; then
2187
# Cool, printf works
2189
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
2190
test "X$echo_testing_string" = 'X\t' &&
2191
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
2192
test "X$echo_testing_string" = "X$echo_test_string"; then
2193
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
2195
SHELL="$CONFIG_SHELL"
2197
echo="$CONFIG_SHELL [$]0 --fallback-echo"
2198
elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
2199
test "X$echo_testing_string" = 'X\t' &&
2200
echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
2201
test "X$echo_testing_string" = "X$echo_test_string"; then
2202
echo="$CONFIG_SHELL [$]0 --fallback-echo"
2204
# maybe with a smaller string...
2207
for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
2208
if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
2215
if test "$prev" != 'sed 50q "[$]0"'; then
2216
echo_test_string=`eval $prev`
2217
export echo_test_string
2218
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
2220
# Oops. We lost completely, so just stick with echo.
2229
# Copy echo and quote the copy suitably for passing to libtool from
2230
# the Makefile, instead of quoting the original, which is used later.
2232
if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
2233
ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
2237
])])# _LT_AC_PROG_ECHO_BACKSLASH
2242
AC_DEFUN([_LT_AC_LOCK],
2243
[AC_ARG_ENABLE([libtool-lock],
2244
[AC_HELP_STRING([--disable-libtool-lock],
2245
[avoid locking (might break parallel builds)])])
2246
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
2248
# Some flags need to be propagated to the compiler or linker for good
2252
# Find out which ABI we are using.
2253
echo 'int i;' > conftest.$ac_ext
2254
if AC_TRY_EVAL(ac_compile); then
2255
case `/usr/bin/file conftest.$ac_objext` in
2267
# Find out which ABI we are using.
2268
echo '[#]line __oline__ "configure"' > conftest.$ac_ext
2269
if AC_TRY_EVAL(ac_compile); then
2270
if test "$lt_cv_prog_gnu_ld" = yes; then
2271
case `/usr/bin/file conftest.$ac_objext` in
2273
LD="${LD-ld} -melf32bsmip"
2276
LD="${LD-ld} -melf32bmipn32"
2279
LD="${LD-ld} -melf64bmip"
2283
case `/usr/bin/file conftest.$ac_objext` in
2299
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
2300
# Find out which ABI we are using.
2301
echo 'int i;' > conftest.$ac_ext
2302
if AC_TRY_EVAL(ac_compile); then
2303
case "`/usr/bin/file conftest.o`" in
2307
LD="${LD-ld} -m elf_i386"
2309
ppc64-*linux*|powerpc64-*linux*)
2310
LD="${LD-ld} -m elf32ppclinux"
2313
LD="${LD-ld} -m elf_s390"
2316
LD="${LD-ld} -m elf32_sparc"
2323
LD="${LD-ld} -m elf_x86_64"
2325
ppc*-*linux*|powerpc*-*linux*)
2326
LD="${LD-ld} -m elf64ppc"
2329
LD="${LD-ld} -m elf64_s390"
2332
LD="${LD-ld} -m elf64_sparc"
2342
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
2343
SAVE_CFLAGS="$CFLAGS"
2344
CFLAGS="$CFLAGS -belf"
2345
AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
2347
AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
2349
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2350
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2351
CFLAGS="$SAVE_CFLAGS"
2354
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
2355
[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
2356
AC_CHECK_TOOL(DLLTOOL, dlltool, false)
2357
AC_CHECK_TOOL(AS, as, false)
2358
AC_CHECK_TOOL(OBJDUMP, objdump, false)
2363
need_locks="$enable_libtool_lock"
2368
# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2369
# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
2370
# ----------------------------------------------------------------
2371
# Check whether the given compiler option works
2372
AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
2373
[AC_REQUIRE([LT_AC_PROG_SED])
2374
AC_CACHE_CHECK([$1], [$2],
2376
ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
2377
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
2378
lt_compiler_flag="$3"
2379
# Insert the option either (1) after the last *FLAGS variable, or
2380
# (2) before a word containing "conftest.", or (3) at the end.
2381
# Note that $ac_compile itself does not contain backslashes and begins
2382
# with a dollar sign (not a hyphen), so the echo should work correctly.
2383
# The option is referenced via a variable to avoid confusing sed.
2384
lt_compile=`echo "$ac_compile" | $SED \
2385
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
2386
-e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
2387
-e 's:$: $lt_compiler_flag:'`
2388
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
2389
(eval "$lt_compile" 2>conftest.err)
2391
cat conftest.err >&AS_MESSAGE_LOG_FD
2392
echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
2393
if (exit $ac_status) && test -s "$ac_outfile"; then
2394
# The compiler can only warn and ignore the option if not recognized
2395
# So say no if there are warnings
2396
if test ! -s conftest.err; then
2403
if test x"[$]$2" = xyes; then
2404
ifelse([$5], , :, [$5])
2406
ifelse([$6], , :, [$6])
2408
])# AC_LIBTOOL_COMPILER_OPTION
2411
# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2412
# [ACTION-SUCCESS], [ACTION-FAILURE])
2413
# ------------------------------------------------------------
2414
# Check whether the given compiler option works
2415
AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
2416
[AC_CACHE_CHECK([$1], [$2],
2418
save_LDFLAGS="$LDFLAGS"
2419
LDFLAGS="$LDFLAGS $3"
2420
printf "$lt_simple_link_test_code" > conftest.$ac_ext
2421
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
2422
# The compiler can only warn and ignore the option if not recognized
2423
# So say no if there are warnings
2424
if test -s conftest.err; then
2425
# Append any errors to the config.log.
2426
cat conftest.err 1>&AS_MESSAGE_LOG_FD
2432
LDFLAGS="$save_LDFLAGS"
2435
if test x"[$]$2" = xyes; then
2436
ifelse([$4], , :, [$4])
2438
ifelse([$5], , :, [$5])
2440
])# AC_LIBTOOL_LINKER_OPTION
2443
# AC_LIBTOOL_SYS_MAX_CMD_LEN
2444
# --------------------------
2445
AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
2446
[# find the maximum length of command line arguments
2447
AC_MSG_CHECKING([the maximum length of command line arguments])
2448
AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
2454
# On DJGPP, this test can blow up pretty badly due to problems in libc
2455
# (any single argument exceeding 2000 bytes causes a buffer overrun
2456
# during glob expansion). Even if it were fixed, the result of this
2457
# check would be larger than it should be.
2458
lt_cv_sys_max_cmd_len=12288; # 12K is about right
2462
# Under GNU Hurd, this test is not required because there is
2463
# no limit to the length of command line arguments.
2464
# Libtool will interpret -1 as no limit whatsoever
2465
lt_cv_sys_max_cmd_len=-1;
2469
# On Win9x/ME, this test blows up -- it succeeds, but takes
2470
# about 5 minutes as the teststring grows exponentially.
2471
# Worse, since 9x/ME are not pre-emptively multitasking,
2472
# you end up with a "frozen" computer, even though with patience
2473
# the test eventually succeeds (with a max line length of 256k).
2474
# Instead, let's just punt: use the minimum linelength reported by
2475
# all of the supported platforms: 8192 (on NT/2K/XP).
2476
lt_cv_sys_max_cmd_len=8192;
2480
# On AmigaOS with pdksh, this test takes hours, literally.
2481
# So we just punt and use a minimum line length of 8192.
2482
lt_cv_sys_max_cmd_len=8192;
2486
# If test is not a shell built-in, we'll probably end up computing a
2487
# maximum length that is only half of the actual maximum length, but
2489
while (test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$testring" 2>/dev/null` \
2490
= "XX$testring") >/dev/null 2>&1 &&
2491
new_result=`expr "X$testring" : ".*" 2>&1` &&
2492
lt_cv_sys_max_cmd_len=$new_result &&
2493
test $i != 17 # 1/2 MB should be enough
824
for _am_tar in tar gnutar gtar;
2496
testring=$testring$testring
2499
# Add a significant safety factor because C++ compilers can tack on massive
2500
# amounts of additional arguments before passing them to the linker.
2501
# It appears as though 1/2 is a usable value.
2502
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
2506
if test -n $lt_cv_sys_max_cmd_len ; then
2507
AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
2511
])# AC_LIBTOOL_SYS_MAX_CMD_LEN
2514
# _LT_AC_CHECK_DLFCN
2515
# --------------------
2516
AC_DEFUN([_LT_AC_CHECK_DLFCN],
2517
[AC_CHECK_HEADERS(dlfcn.h)dnl
2518
])# _LT_AC_CHECK_DLFCN
2521
# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
2522
# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
2523
# ------------------------------------------------------------------
2524
AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
2525
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
2526
if test "$cross_compiling" = yes; then :
2529
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
2530
lt_status=$lt_dlunknown
2531
cat > conftest.$ac_ext <<EOF
2532
[#line __oline__ "configure"
2533
#include "confdefs.h"
2542
# define LT_DLGLOBAL RTLD_GLOBAL
2545
# define LT_DLGLOBAL DL_GLOBAL
2547
# define LT_DLGLOBAL 0
2551
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
2552
find out it does not work in some platform. */
2553
#ifndef LT_DLLAZY_OR_NOW
2555
# define LT_DLLAZY_OR_NOW RTLD_LAZY
2558
# define LT_DLLAZY_OR_NOW DL_LAZY
2561
# define LT_DLLAZY_OR_NOW RTLD_NOW
2564
# define LT_DLLAZY_OR_NOW DL_NOW
2566
# define LT_DLLAZY_OR_NOW 0
2574
extern "C" void exit (int);
2577
void fnord() { int i=42;}
2580
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
2581
int status = $lt_dlunknown;
2585
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
2586
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
2587
/* dlclose (self); */
2593
if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
2594
(./conftest; exit; ) 2>/dev/null
2597
x$lt_dlno_uscore) $1 ;;
2598
x$lt_dlneed_uscore) $2 ;;
2599
x$lt_unknown|x*) $3 ;;
2602
# compilation failed
2607
])# _LT_AC_TRY_DLOPEN_SELF
2610
# AC_LIBTOOL_DLOPEN_SELF
2611
# -------------------
2612
AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
2613
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
2614
if test "x$enable_dlopen" != xyes; then
2615
enable_dlopen=unknown
2616
enable_dlopen_self=unknown
2617
enable_dlopen_self_static=unknown
2624
lt_cv_dlopen="load_add_on"
2626
lt_cv_dlopen_self=yes
2630
lt_cv_dlopen="LoadLibrary"
2635
lt_cv_dlopen="dlopen"
2640
# if libdl is installed we need to link against it
2641
AC_CHECK_LIB([dl], [dlopen],
2642
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
2645
lt_cv_dlopen_self=yes
2650
AC_CHECK_FUNC([shl_load],
2651
[lt_cv_dlopen="shl_load"],
2652
[AC_CHECK_LIB([dld], [shl_load],
2653
[lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
2654
[AC_CHECK_FUNC([dlopen],
2655
[lt_cv_dlopen="dlopen"],
2656
[AC_CHECK_LIB([dl], [dlopen],
2657
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
2658
[AC_CHECK_LIB([svld], [dlopen],
2659
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
2660
[AC_CHECK_LIB([dld], [dld_link],
2661
[lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
2670
if test "x$lt_cv_dlopen" != xno; then
2676
case $lt_cv_dlopen in
2678
save_CPPFLAGS="$CPPFLAGS"
2679
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
2681
save_LDFLAGS="$LDFLAGS"
2682
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
2685
LIBS="$lt_cv_dlopen_libs $LIBS"
2687
AC_CACHE_CHECK([whether a program can dlopen itself],
2688
lt_cv_dlopen_self, [dnl
2689
_LT_AC_TRY_DLOPEN_SELF(
2690
lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
2691
lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
2694
if test "x$lt_cv_dlopen_self" = xyes; then
2695
LDFLAGS="$LDFLAGS $link_static_flag"
2696
AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
2697
lt_cv_dlopen_self_static, [dnl
2698
_LT_AC_TRY_DLOPEN_SELF(
2699
lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
2700
lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
2704
CPPFLAGS="$save_CPPFLAGS"
2705
LDFLAGS="$save_LDFLAGS"
2710
case $lt_cv_dlopen_self in
2711
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
2712
*) enable_dlopen_self=unknown ;;
2715
case $lt_cv_dlopen_self_static in
2716
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
2717
*) enable_dlopen_self_static=unknown ;;
2720
])# AC_LIBTOOL_DLOPEN_SELF
2723
# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
2724
# ---------------------------------
2725
# Check to see if options -c and -o are simultaneously supported by compiler
2726
AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
2727
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
2728
AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
2729
[_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
2730
[_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
2731
$rm -r conftest 2>/dev/null
2735
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
2737
# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
2738
# that will create temporary files in the current directory regardless of
2739
# the output directory. Thus, making CWD read-only will cause this test
2740
# to fail, enabling locking or at least warning the user not to do parallel
2744
lt_compiler_flag="-o out/conftest2.$ac_objext"
2745
# Insert the option either (1) after the last *FLAGS variable, or
2746
# (2) before a word containing "conftest.", or (3) at the end.
2747
# Note that $ac_compile itself does not contain backslashes and begins
2748
# with a dollar sign (not a hyphen), so the echo should work correctly.
2749
lt_compile=`echo "$ac_compile" | $SED \
2750
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
2751
-e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
2752
-e 's:$: $lt_compiler_flag:'`
2753
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
2754
(eval "$lt_compile" 2>out/conftest.err)
2756
cat out/conftest.err >&AS_MESSAGE_LOG_FD
2757
echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
2758
if (exit $ac_status) && test -s out/conftest2.$ac_objext
2760
# The compiler can only warn and ignore the option if not recognized
2761
# So say no if there are warnings
2762
if test ! -s out/conftest.err; then
2763
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
2768
# SGI C++ compiler will create directory out/ii_files/ for
2769
# template instantiation
2770
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
2771
$rm out/* && rmdir out
2776
])# AC_LIBTOOL_PROG_CC_C_O
2779
# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
2780
# -----------------------------------------
2781
# Check to see if we can do hard links to lock some files if needed
2782
AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
2783
[AC_REQUIRE([_LT_AC_LOCK])dnl
2785
hard_links="nottested"
2786
if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
2787
# do not overwrite the value of need_locks provided by the user
2788
AC_MSG_CHECKING([if we can lock with hard links])
2791
ln conftest.a conftest.b 2>/dev/null && hard_links=no
2793
ln conftest.a conftest.b 2>&5 || hard_links=no
2794
ln conftest.a conftest.b 2>/dev/null && hard_links=no
2795
AC_MSG_RESULT([$hard_links])
2796
if test "$hard_links" = no; then
2797
AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
2803
])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
2808
AC_DEFUN([AC_LIBTOOL_OBJDIR],
2809
[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
2810
[rm -f .libs 2>/dev/null
2811
mkdir .libs 2>/dev/null
2812
if test -d .libs; then
2815
# MS-DOS does not allow filenames that begin with a dot.
2818
rmdir .libs 2>/dev/null])
2819
objdir=$lt_cv_objdir
2820
])# AC_LIBTOOL_OBJDIR
2823
# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
2824
# ----------------------------------------------
2825
# Check hardcoding attributes.
2826
AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
2827
[AC_MSG_CHECKING([how to hardcode library paths into programs])
2828
_LT_AC_TAGVAR(hardcode_action, $1)=
2829
if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
2830
test -n "$_LT_AC_TAGVAR(runpath_var $1)" || \
2831
test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)"="Xyes" ; then
2833
# We can hardcode non-existant directories.
2834
if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
2835
# If the only mechanism to avoid hardcoding is shlibpath_var, we
2836
# have to relink, otherwise we might link with an installed library
2837
# when we should be linking with a yet-to-be-installed one
2838
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
2839
test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
2840
# Linking always hardcodes the temporary library directory.
2841
_LT_AC_TAGVAR(hardcode_action, $1)=relink
2843
# We can link without hardcoding, and we can hardcode nonexisting dirs.
2844
_LT_AC_TAGVAR(hardcode_action, $1)=immediate
2847
# We cannot hardcode anything, or else we can only hardcode existing
2849
_LT_AC_TAGVAR(hardcode_action, $1)=unsupported
2851
AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
2853
if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
2854
# Fast installation is not supported
2855
enable_fast_install=no
2856
elif test "$shlibpath_overrides_runpath" = yes ||
2857
test "$enable_shared" = no; then
2858
# Fast installation is not necessary
2859
enable_fast_install=needless
2861
])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
2864
# AC_LIBTOOL_SYS_LIB_STRIP
2865
# ------------------------
2866
AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
2869
AC_MSG_CHECKING([whether stripping libraries is possible])
2870
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
2871
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
2872
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
2873
AC_MSG_RESULT([yes])
2875
# FIXME - insert some real tests, host_os isn't really good enough
2878
if test -n "$STRIP" ; then
2879
striplib="$STRIP -x"
2880
AC_MSG_RESULT([yes])
2890
])# AC_LIBTOOL_SYS_LIB_STRIP
2893
# AC_LIBTOOL_SYS_DYNAMIC_LINKER
2894
# -----------------------------
2895
# PORTME Fill in your ld.so characteristics
2896
AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
2897
[AC_MSG_CHECKING([dynamic linker characteristics])
2899
libname_spec='lib$name'
2907
shlibpath_overrides_runpath=unknown
2909
dynamic_linker="$host_os ld.so"
2910
sys_lib_dlsearch_path_spec="/lib /usr/lib"
2911
if test "$GCC" = yes; then
2912
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2913
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
2914
# if the path contains ";" then we assume it to be the separator
2915
# otherwise default to the standard path separator (i.e. ":") - it is
2916
# assumed that no part of a normal pathname contains ";" but that should
2917
# okay in the real world where ";" in dirpaths is itself problematic.
2918
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2920
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2923
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
2925
need_lib_prefix=unknown
2926
hardcode_into_libs=no
2928
# when you set need_version to no, make sure it does not cause -set_version
2929
# flags to be left without arguments
2930
need_version=unknown
2935
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
2936
shlibpath_var=LIBPATH
2938
# AIX 3 has no versioning support, so we append a major version to the name.
2939
soname_spec='${libname}${release}${shared_ext}$major'
2946
hardcode_into_libs=yes
2947
if test "$host_cpu" = ia64; then
2948
# AIX 5 supports IA64
2949
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
2950
shlibpath_var=LD_LIBRARY_PATH
2952
# With GCC up to 2.95.x, collect2 would create an import file
2953
# for dependence libraries. The import file would start with
2954
# the line `#! .'. This would cause the generated library to
2955
# depend on `.', always an invalid library. This was fixed in
2956
# development snapshots of GCC prior to 3.0.
2958
aix4 | aix4.[[01]] | aix4.[[01]].*)
2959
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
2961
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
2968
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
2969
# soname into executable. Probably we can add versioning support to
2970
# collect2, so additional links can be useful in future.
2971
if test "$aix_use_runtimelinking" = yes; then
2972
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
2973
# instead of lib<name>.a to let people know that these are not
2974
# typical AIX shared libraries.
2975
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2977
# We preserve .a as extension for shared libraries through AIX4.2
2978
# and later when we are not doing run time linking.
2979
library_names_spec='${libname}${release}.a $libname.a'
2980
soname_spec='${libname}${release}${shared_ext}$major'
2982
shlibpath_var=LIBPATH
2987
library_names_spec='$libname.ixlibrary $libname.a'
2988
# Create ${libname}_ixlibrary.a entries in /sys/libs.
2989
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
2993
library_names_spec='${libname}${shared_ext}'
2994
dynamic_linker="$host_os ld.so"
2995
shlibpath_var=LIBRARY_PATH
3001
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3002
soname_spec='${libname}${release}${shared_ext}$major'
3003
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
3004
shlibpath_var=LD_LIBRARY_PATH
3005
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
3006
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
3007
# the default ld.so.conf also contains /usr/contrib/lib and
3008
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
3009
# libtool to hard-code these into programs
3012
cygwin* | mingw* | pw32*)
3013
version_type=windows
3018
case $GCC,$host_os in
3019
yes,cygwin* | yes,mingw* | yes,pw32*)
3020
library_names_spec='$libname.dll.a'
3021
# DLL is installed to $(libdir)/../bin by postinstall_cmds
3022
postinstall_cmds='base_file=`basename \${file}`~
3023
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
3024
dldir=$destdir/`dirname \$dlpath`~
3025
test -d \$dldir || mkdir -p \$dldir~
3026
$install_prog $dir/$dlname \$dldir/$dlname'
3027
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
3028
dlpath=$dir/\$dldll~
3030
shlibpath_overrides_runpath=yes
3034
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
3035
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
3036
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
3039
# MinGW DLLs use traditional 'lib' prefix
3040
soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
3041
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
3042
if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
3043
# It is most probably a Windows format PATH printed by
3044
# mingw gcc, but we are running on Cygwin. Gcc prints its search
3045
# path with ; separators, and with drive letters. We can handle the
3046
# drive letters (cygwin fileutils understands them), so leave them,
3047
# especially as we might pass files found there to a mingw objdump,
3048
# which wouldn't understand a cygwinified path. Ahh.
3049
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
3051
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
3055
# pw32 DLLs use 'pw' prefix rather than 'lib'
3056
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
3062
library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
3065
dynamic_linker='Win32 ld.exe'
3066
# FIXME: first we should search . and the directory the executable is in
3070
darwin* | rhapsody*)
3071
dynamic_linker="$host_os dyld"
3075
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
3076
soname_spec='${libname}${release}${major}$shared_ext'
3077
shlibpath_overrides_runpath=yes
3078
shlibpath_var=DYLD_LIBRARY_PATH
3079
shrext='$(test .$module = .yes && echo .so || echo .dylib)'
3080
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
3081
if test "$GCC" = yes; then
3082
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
3084
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
3086
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
3093
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
3094
soname_spec='${libname}${release}${shared_ext}$major'
3095
shlibpath_var=LD_LIBRARY_PATH
3106
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
3107
soname_spec='${libname}${release}${shared_ext}$major'
3108
shlibpath_var=LD_LIBRARY_PATH
3109
shlibpath_overrides_runpath=no
3110
hardcode_into_libs=yes
3111
dynamic_linker='GNU ld.so'
3115
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
3116
version_type=freebsd-$objformat
3117
case $version_type in
3119
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
3124
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
3128
shlibpath_var=LD_LIBRARY_PATH
3131
shlibpath_overrides_runpath=yes
3133
freebsd3.[01]* | freebsdelf3.[01]*)
3134
shlibpath_overrides_runpath=yes
3135
hardcode_into_libs=yes
3138
shlibpath_overrides_runpath=no
3139
hardcode_into_libs=yes
3148
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
3149
soname_spec='${libname}${release}${shared_ext}$major'
3150
shlibpath_var=LD_LIBRARY_PATH
3151
hardcode_into_libs=yes
3154
hpux9* | hpux10* | hpux11*)
3155
# Give a soname corresponding to the major version so that dld.sl refuses to
3156
# link against other versions.
3163
hardcode_into_libs=yes
3164
dynamic_linker="$host_os dld.so"
3165
shlibpath_var=LD_LIBRARY_PATH
3166
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
3167
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3168
soname_spec='${libname}${release}${shared_ext}$major'
3169
if test "X$HPUX_IA64_MODE" = X32; then
3170
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
3172
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
3174
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
3178
hardcode_into_libs=yes
3179
dynamic_linker="$host_os dld.sl"
3180
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
3181
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
3182
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3183
soname_spec='${libname}${release}${shared_ext}$major'
3184
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
3185
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
3189
dynamic_linker="$host_os dld.sl"
3190
shlibpath_var=SHLIB_PATH
3191
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
3192
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3193
soname_spec='${libname}${release}${shared_ext}$major'
3196
# HP-UX runs *really* slowly unless shared libraries are mode 555.
3197
postinstall_cmds='chmod 555 $lib'
3200
irix5* | irix6* | nonstopux*)
3202
nonstopux*) version_type=nonstopux ;;
3204
if test "$lt_cv_prog_gnu_ld" = yes; then
3212
soname_spec='${libname}${release}${shared_ext}$major'
3213
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
3215
irix5* | nonstopux*)
3219
case $LD in # libtool.m4 will add one of these switches to LD
3220
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
3221
libsuff= shlibsuff= libmagic=32-bit;;
3222
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
3223
libsuff=32 shlibsuff=N32 libmagic=N32;;
3224
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
3225
libsuff=64 shlibsuff=64 libmagic=64-bit;;
3226
*) libsuff= shlibsuff= libmagic=never-match;;
3230
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
3231
shlibpath_overrides_runpath=no
3232
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
3233
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
3234
hardcode_into_libs=yes
3237
# No shared lib support for Linux oldld, aout, or coff.
3238
linux*oldld* | linux*aout* | linux*coff*)
3242
# This must be Linux ELF.
3247
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3248
soname_spec='${libname}${release}${shared_ext}$major'
3249
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
3250
shlibpath_var=LD_LIBRARY_PATH
3251
shlibpath_overrides_runpath=no
3252
# This implies no fast_install, which is unacceptable.
3253
# Some rework will be needed to allow for fast_install
3254
# before this can be enabled.
3255
hardcode_into_libs=yes
3257
# Append ld.so.conf contents to the search path
3258
if test -f /etc/ld.so.conf; then
3259
ld_extra=`$SED -e 's/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g' /etc/ld.so.conf`
3260
sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
3263
# We used to test for /lib/ld.so.1 and disable shared libraries on
3264
# powerpc, because MkLinux only supported shared libraries with the
3265
# GNU dynamic linker. Since this was broken with cross compilers,
3266
# most powerpc-linux boxes support dynamic linking these days and
3267
# people can always --disable-shared, the test was removed, and we
3268
# assume the GNU/Linux dynamic linker is in use.
3269
dynamic_linker='GNU/Linux ld.so'
3276
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
3277
soname_spec='${libname}${release}${shared_ext}$major'
3278
shlibpath_var=LD_LIBRARY_PATH
3279
shlibpath_overrides_runpath=no
3280
hardcode_into_libs=yes
3281
dynamic_linker='GNU ld.so'
3288
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3289
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3290
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
3291
dynamic_linker='NetBSD (a.out) ld.so'
3293
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
3294
soname_spec='${libname}${release}${shared_ext}$major'
3295
dynamic_linker='NetBSD ld.elf_so'
3297
shlibpath_var=LD_LIBRARY_PATH
3298
shlibpath_overrides_runpath=yes
3299
hardcode_into_libs=yes
3304
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3305
shlibpath_var=LD_LIBRARY_PATH
3306
shlibpath_overrides_runpath=yes
3313
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3314
soname_spec='${libname}${release}${shared_ext}$major'
3315
shlibpath_var=LD_LIBRARY_PATH
3316
shlibpath_overrides_runpath=yes
3323
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3324
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
3325
shlibpath_var=LD_LIBRARY_PATH
3326
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3328
openbsd2.[[89]] | openbsd2.[[89]].*)
3329
shlibpath_overrides_runpath=no
3332
shlibpath_overrides_runpath=yes
3336
shlibpath_overrides_runpath=yes
3341
libname_spec='$name'
3344
library_names_spec='$libname${shared_ext} $libname.a'
3345
dynamic_linker='OS/2 ld.exe'
3346
shlibpath_var=LIBPATH
3349
osf3* | osf4* | osf5*)
3353
soname_spec='${libname}${release}${shared_ext}$major'
3354
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3355
shlibpath_var=LD_LIBRARY_PATH
3356
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
3357
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
3362
soname_spec='${libname}${release}${shared_ext}$major'
3363
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3364
shlibpath_var=LD_LIBRARY_PATH
3371
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3372
soname_spec='${libname}${release}${shared_ext}$major'
3373
shlibpath_var=LD_LIBRARY_PATH
3374
shlibpath_overrides_runpath=yes
3375
hardcode_into_libs=yes
3376
# ldd complains unless libraries are executable
3377
postinstall_cmds='chmod +x $lib'
3382
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3383
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
3384
shlibpath_var=LD_LIBRARY_PATH
3385
shlibpath_overrides_runpath=yes
3386
if test "$with_gnu_ld" = yes; then
3392
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3394
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3395
soname_spec='${libname}${release}${shared_ext}$major'
3396
shlibpath_var=LD_LIBRARY_PATH
3397
case $host_vendor in
3399
shlibpath_overrides_runpath=no
3401
export_dynamic_flag_spec='${wl}-Blargedynsym'
3402
runpath_var=LD_RUN_PATH
3410
shlibpath_overrides_runpath=no
3411
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
3417
if test -d /usr/nec ;then
3419
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
3420
soname_spec='$libname${shared_ext}.$major'
3421
shlibpath_var=LD_LIBRARY_PATH
3427
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3428
soname_spec='${libname}${release}${shared_ext}$major'
3429
shlibpath_var=LD_LIBRARY_PATH
3436
AC_MSG_RESULT([$dynamic_linker])
3437
test "$dynamic_linker" = no && can_build_shared=no
3438
])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
3443
AC_DEFUN([_LT_AC_TAGCONFIG],
3444
[AC_ARG_WITH([tags],
3445
[AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
3446
[include additional configurations @<:@automatic@:>@])],
3447
[tagnames="$withval"])
3449
if test -f "$ltmain" && test -n "$tagnames"; then
3450
if test ! -f "${ofile}"; then
3451
AC_MSG_WARN([output file `$ofile' does not exist])
3454
if test -z "$LTCC"; then
3455
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
3456
if test -z "$LTCC"; then
3457
AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
3459
AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
3463
# Extract list of available tagged configurations in $ofile.
3464
# Note that this assumes the entire list is on one line.
3465
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
3467
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3468
for tagname in $tagnames; do
3470
# Check whether tagname contains only valid characters
3471
case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
3473
*) AC_MSG_ERROR([invalid tag name: $tagname])
3477
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
3479
AC_MSG_ERROR([tag name \"$tagname\" already exists])
3482
# Update the list of available tags.
3483
if test -n "$tagname"; then
3484
echo appending configuration tag \"$tagname\" to $ofile
3488
if test -n "$CXX" && test "X$CXX" != "Xno"; then
3489
AC_LIBTOOL_LANG_CXX_CONFIG
3496
if test -n "$F77" && test "X$F77" != "Xno"; then
3497
AC_LIBTOOL_LANG_F77_CONFIG
3504
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
3505
AC_LIBTOOL_LANG_GCJ_CONFIG
3512
AC_LIBTOOL_LANG_RC_CONFIG
3516
AC_MSG_ERROR([Unsupported tag name: $tagname])
3520
# Append the new tag name to the list of available tags.
3521
if test -n "$tagname" ; then
3522
available_tags="$available_tags $tagname"
3528
# Now substitute the updated list of available tags.
3529
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
3530
mv "${ofile}T" "$ofile"
3534
AC_MSG_ERROR([unable to update list of available tagged configurations.])
3537
])# _LT_AC_TAGCONFIG
3542
# enable checks for dlopen support
3543
AC_DEFUN([AC_LIBTOOL_DLOPEN],
3544
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
3545
])# AC_LIBTOOL_DLOPEN
3548
# AC_LIBTOOL_WIN32_DLL
3549
# --------------------
3550
# declare package support for building win32 dll's
3551
AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
3552
[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
3553
])# AC_LIBTOOL_WIN32_DLL
3556
# AC_ENABLE_SHARED([DEFAULT])
3557
# ---------------------------
3558
# implement the --enable-shared flag
3559
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3560
AC_DEFUN([AC_ENABLE_SHARED],
3561
[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
3562
AC_ARG_ENABLE([shared],
3563
[AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
3564
[build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
3565
[p=${PACKAGE-default}
3567
yes) enable_shared=yes ;;
3568
no) enable_shared=no ;;
3571
# Look at the argument we got. We use all the common list separators.
3572
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3573
for pkg in $enableval; do
3575
if test "X$pkg" = "X$p"; then
3582
[enable_shared=]AC_ENABLE_SHARED_DEFAULT)
3583
])# AC_ENABLE_SHARED
3588
#- set the default shared flag to --disable-shared
3589
AC_DEFUN([AC_DISABLE_SHARED],
3590
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3591
AC_ENABLE_SHARED(no)
3592
])# AC_DISABLE_SHARED
3595
# AC_ENABLE_STATIC([DEFAULT])
3596
# ---------------------------
3597
# implement the --enable-static flag
3598
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3599
AC_DEFUN([AC_ENABLE_STATIC],
3600
[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
3601
AC_ARG_ENABLE([static],
3602
[AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
3603
[build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
3604
[p=${PACKAGE-default}
3606
yes) enable_static=yes ;;
3607
no) enable_static=no ;;
3610
# Look at the argument we got. We use all the common list separators.
3611
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3612
for pkg in $enableval; do
3614
if test "X$pkg" = "X$p"; then
3621
[enable_static=]AC_ENABLE_STATIC_DEFAULT)
3622
])# AC_ENABLE_STATIC
3627
# set the default static flag to --disable-static
3628
AC_DEFUN([AC_DISABLE_STATIC],
3629
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3630
AC_ENABLE_STATIC(no)
3631
])# AC_DISABLE_STATIC
3634
# AC_ENABLE_FAST_INSTALL([DEFAULT])
3635
# ---------------------------------
3636
# implement the --enable-fast-install flag
3637
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3638
AC_DEFUN([AC_ENABLE_FAST_INSTALL],
3639
[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
3640
AC_ARG_ENABLE([fast-install],
3641
[AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
3642
[optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
3643
[p=${PACKAGE-default}
3645
yes) enable_fast_install=yes ;;
3646
no) enable_fast_install=no ;;
3648
enable_fast_install=no
3649
# Look at the argument we got. We use all the common list separators.
3650
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3651
for pkg in $enableval; do
3653
if test "X$pkg" = "X$p"; then
3654
enable_fast_install=yes
3660
[enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
3661
])# AC_ENABLE_FAST_INSTALL
3664
# AC_DISABLE_FAST_INSTALL
3665
# -----------------------
3666
# set the default to --disable-fast-install
3667
AC_DEFUN([AC_DISABLE_FAST_INSTALL],
3668
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3669
AC_ENABLE_FAST_INSTALL(no)
3670
])# AC_DISABLE_FAST_INSTALL
3673
# AC_LIBTOOL_PICMODE([MODE])
3674
# --------------------------
3675
# implement the --with-pic flag
3676
# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
3677
AC_DEFUN([AC_LIBTOOL_PICMODE],
3678
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3679
pic_mode=ifelse($#,1,$1,default)
3680
])# AC_LIBTOOL_PICMODE
3685
# This is predefined starting with Autoconf 2.54, so this conditional
3686
# definition can be removed once we require Autoconf 2.54 or later.
3687
m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
3688
[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
3689
[if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3690
then ac_cv_prog_egrep='grep -E'
3691
else ac_cv_prog_egrep='egrep'
3693
EGREP=$ac_cv_prog_egrep
3698
# AC_PATH_TOOL_PREFIX
3699
# -------------------
3700
# find a file program which can recognise shared library
3701
AC_DEFUN([AC_PATH_TOOL_PREFIX],
3702
[AC_REQUIRE([AC_PROG_EGREP])dnl
3703
AC_MSG_CHECKING([for $1])
3704
AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
3706
[[\\/*] | ?:[\\/]*])
3707
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3710
lt_save_MAGIC_CMD="$MAGIC_CMD"
3711
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3712
dnl $ac_dummy forces splitting on constant user-supplied paths.
3713
dnl POSIX.2 word splitting is done only on the output of word expansions,
3714
dnl not every word. This closes a longstanding sh security hole.
3715
ac_dummy="ifelse([$2], , $PATH, [$2])"
3716
for ac_dir in $ac_dummy; do
3718
test -z "$ac_dir" && ac_dir=.
3719
if test -f $ac_dir/$1; then
3720
lt_cv_path_MAGIC_CMD="$ac_dir/$1"
3721
if test -n "$file_magic_test_file"; then
3722
case $deplibs_check_method in
3724
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3725
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3726
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3727
$EGREP "$file_magic_regex" > /dev/null; then
3732
*** Warning: the command libtool uses to detect shared libraries,
3733
*** $file_magic_cmd, produces output that libtool cannot recognize.
3734
*** The result is that libtool may fail to recognize shared libraries
3735
*** as such. This will affect the creation of libtool libraries that
3736
*** depend on shared libraries, but programs linked with such libtool
3737
*** libraries will work regardless of this problem. Nevertheless, you
3738
*** may want to report the problem to your system manager and/or to
3739
*** bug-libtool@gnu.org
3749
MAGIC_CMD="$lt_save_MAGIC_CMD"
3752
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3753
if test -n "$MAGIC_CMD"; then
3754
AC_MSG_RESULT($MAGIC_CMD)
3758
])# AC_PATH_TOOL_PREFIX
3763
# find a file program which can recognise a shared library
3764
AC_DEFUN([AC_PATH_MAGIC],
3765
[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
3766
if test -z "$lt_cv_path_MAGIC_CMD"; then
3767
if test -n "$ac_tool_prefix"; then
3768
AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
3778
# find the pathname to the GNU or non-GNU linker
3779
AC_DEFUN([AC_PROG_LD],
3780
[AC_ARG_WITH([gnu-ld],
3781
[AC_HELP_STRING([--with-gnu-ld],
3782
[assume the C compiler uses GNU ld @<:@default=no@:>@])],
3783
[test "$withval" = no || with_gnu_ld=yes],
3785
AC_REQUIRE([LT_AC_PROG_SED])dnl
3786
AC_REQUIRE([AC_PROG_CC])dnl
3787
AC_REQUIRE([AC_CANONICAL_HOST])dnl
3788
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
3790
if test "$GCC" = yes; then
3791
# Check if gcc -print-prog-name=ld gives a path.
3792
AC_MSG_CHECKING([for ld used by $CC])
3795
# gcc leaves a trailing carriage return which upsets mingw
3796
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3798
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3801
# Accept absolute paths.
3802
[[\\/]]* | ?:[[\\/]]*)
3803
re_direlt='/[[^/]][[^/]]*/\.\./'
3804
# Canonicalize the pathname of ld
3805
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3806
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3807
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3809
test -z "$LD" && LD="$ac_prog"
3812
# If it fails, then pretend we aren't using GCC.
3816
# If it is relative, then search for the first ld in PATH.
3820
elif test "$with_gnu_ld" = yes; then
3821
AC_MSG_CHECKING([for GNU ld])
3823
AC_MSG_CHECKING([for non-GNU ld])
3825
AC_CACHE_VAL(lt_cv_path_LD,
3826
[if test -z "$LD"; then
3827
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3828
for ac_dir in $PATH; do
3830
test -z "$ac_dir" && ac_dir=.
3831
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3832
lt_cv_path_LD="$ac_dir/$ac_prog"
3833
# Check to see if the program is GNU ld. I'd rather use --version,
3834
# but apparently some GNU ld's only accept -v.
3835
# Break only if it was the GNU/non-GNU ld that we prefer.
3836
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3837
*GNU* | *'with BFD'*)
3838
test "$with_gnu_ld" != no && break
3841
test "$with_gnu_ld" != yes && break
3848
lt_cv_path_LD="$LD" # Let the user override the test with a path.
3851
if test -n "$LD"; then
3856
test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
3863
AC_DEFUN([AC_PROG_LD_GNU],
3864
[AC_REQUIRE([AC_PROG_EGREP])dnl
3865
AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
3866
[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
3867
case `$LD -v 2>&1 </dev/null` in
3868
*GNU* | *'with BFD'*)
3869
lt_cv_prog_gnu_ld=yes
3872
lt_cv_prog_gnu_ld=no
3875
with_gnu_ld=$lt_cv_prog_gnu_ld
3879
# AC_PROG_LD_RELOAD_FLAG
3880
# ----------------------
3881
# find reload flag for linker
3882
# -- PORTME Some linkers may need a different reload flag.
3883
AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
3884
[AC_CACHE_CHECK([for $LD option to reload object files],
3885
lt_cv_ld_reload_flag,
3886
[lt_cv_ld_reload_flag='-r'])
3887
reload_flag=$lt_cv_ld_reload_flag
3888
case $reload_flag in
3890
*) reload_flag=" $reload_flag" ;;
3892
reload_cmds='$LD$reload_flag -o $output$reload_objs'
3893
])# AC_PROG_LD_RELOAD_FLAG
3896
# AC_DEPLIBS_CHECK_METHOD
3897
# -----------------------
3898
# how to check for library dependencies
3899
# -- PORTME fill in with the dynamic library characteristics
3900
AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
3901
[AC_CACHE_CHECK([how to recognise dependent libraries],
3902
lt_cv_deplibs_check_method,
3903
[lt_cv_file_magic_cmd='$MAGIC_CMD'
3904
lt_cv_file_magic_test_file=
3905
lt_cv_deplibs_check_method='unknown'
3906
# Need to set the preceding variable on all platforms that support
3907
# interlibrary dependencies.
3908
# 'none' -- dependencies not supported.
3909
# `unknown' -- same as none, but documents that we really don't know.
3910
# 'pass_all' -- all dependencies passed with no checks.
3911
# 'test_compile' -- check by making test program.
3912
# 'file_magic [[regex]]' -- check by looking for files in library path
3913
# which responds to the $file_magic_cmd with a given extended regex.
3914
# If you have `file' or equivalent on your system and you're not sure
3915
# whether `pass_all' will *always* work, you probably want this one.
3919
lt_cv_deplibs_check_method=pass_all
3923
lt_cv_deplibs_check_method=pass_all
3927
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
3928
lt_cv_file_magic_cmd='/usr/bin/file -L'
3929
lt_cv_file_magic_test_file=/shlib/libc.so
3933
# win32_libid is a shell function defined in ltmain.sh
3934
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3935
lt_cv_file_magic_cmd='win32_libid'
3939
# Base MSYS/MinGW do not provide the 'file' command needed by
3940
# win32_libid shell function, so use a weaker test based on 'objdump'.
3941
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3942
lt_cv_file_magic_cmd='$OBJDUMP -f'
3945
darwin* | rhapsody*)
3946
lt_cv_deplibs_check_method=pass_all
3949
freebsd* | kfreebsd*-gnu)
3950
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3953
# Not sure whether the presence of OpenBSD here was a mistake.
3954
# Let's accept both of them until this is cleared up.
3955
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library'
3956
lt_cv_file_magic_cmd=/usr/bin/file
3957
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3961
lt_cv_deplibs_check_method=pass_all
3966
lt_cv_deplibs_check_method=pass_all
3969
hpux10.20* | hpux11*)
3970
lt_cv_file_magic_cmd=/usr/bin/file
3973
lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
3974
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3977
[lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]']
3978
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3981
lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
3982
lt_cv_file_magic_test_file=/usr/lib/libc.sl
3987
irix5* | irix6* | nonstopux*)
3989
*-32|*"-32 ") libmagic=32-bit;;
3990
*-n32|*"-n32 ") libmagic=N32;;
3991
*-64|*"-64 ") libmagic=64-bit;;
3992
*) libmagic=never-match;;
3994
lt_cv_deplibs_check_method=pass_all
3997
# This must be Linux ELF.
3999
lt_cv_deplibs_check_method=pass_all
4003
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4004
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
4006
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
4011
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
4012
lt_cv_file_magic_cmd=/usr/bin/file
4013
lt_cv_file_magic_test_file=/usr/lib/libnls.so
4017
lt_cv_deplibs_check_method=unknown
4021
lt_cv_file_magic_cmd=/usr/bin/file
4022
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4023
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4024
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object'
4026
lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4030
osf3* | osf4* | osf5*)
4031
lt_cv_deplibs_check_method=pass_all
4035
lt_cv_deplibs_check_method=pass_all
4039
lt_cv_deplibs_check_method=pass_all
4042
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4043
case $host_vendor in
4045
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]'
4046
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4049
lt_cv_deplibs_check_method=pass_all
4052
lt_cv_file_magic_cmd='/bin/file'
4053
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
4056
lt_cv_file_magic_cmd='/bin/file'
4057
lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
4058
lt_cv_file_magic_test_file=/lib/libc.so
4061
lt_cv_deplibs_check_method=pass_all
4066
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*)
4067
lt_cv_deplibs_check_method=pass_all
4071
file_magic_cmd=$lt_cv_file_magic_cmd
4072
deplibs_check_method=$lt_cv_deplibs_check_method
4073
test -z "$deplibs_check_method" && deplibs_check_method=unknown
4074
])# AC_DEPLIBS_CHECK_METHOD
4079
# find the pathname to a BSD-compatible name lister
4080
AC_DEFUN([AC_PROG_NM],
4081
[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
4082
[if test -n "$NM"; then
4083
# Let the user override the test.
4086
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4087
for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4089
test -z "$ac_dir" && ac_dir=.
4090
tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4091
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4092
# Check to see if the nm accepts a BSD-compat flag.
4093
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4094
# nm: unknown option "B" ignored
4095
# Tru64's nm complains that /dev/null is an invalid object file
4096
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4097
*/dev/null* | *'Invalid file or object type'*)
4098
lt_cv_path_NM="$tmp_nm -B"
4102
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4104
lt_cv_path_NM="$tmp_nm -p"
4108
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4109
continue # so that we can try to find one that supports BSD flags
4116
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4124
# check for math library
4125
AC_DEFUN([AC_CHECK_LIBM],
4126
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
4129
*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
4130
# These system don't have libm, or don't need it
4133
AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
4134
AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
4137
AC_CHECK_LIB(m, cos, LIBM="-lm")
4143
# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
4144
# -----------------------------------
4145
# sets LIBLTDL to the link flags for the libltdl convenience library and
4146
# LTDLINCL to the include flags for the libltdl header and adds
4147
# --enable-ltdl-convenience to the configure arguments. Note that LIBLTDL
4148
# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If
4149
# DIRECTORY is not provided, it is assumed to be `libltdl'. LIBLTDL will
4150
# be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with
4151
# '${top_srcdir}/' (note the single quotes!). If your package is not
4152
# flat and you're not using automake, define top_builddir and
4153
# top_srcdir appropriately in the Makefiles.
4154
AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
4155
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
4156
case $enable_ltdl_convenience in
4157
no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
4158
"") enable_ltdl_convenience=yes
4159
ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
4161
LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
4162
LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
4163
# For backwards non-gettext consistent compatibility...
4165
])# AC_LIBLTDL_CONVENIENCE
4168
# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
4169
# -----------------------------------
4170
# sets LIBLTDL to the link flags for the libltdl installable library and
4171
# LTDLINCL to the include flags for the libltdl header and adds
4172
# --enable-ltdl-install to the configure arguments. Note that LIBLTDL
4173
# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If
4174
# DIRECTORY is not provided and an installed libltdl is not found, it is
4175
# assumed to be `libltdl'. LIBLTDL will be prefixed with '${top_builddir}/'
4176
# and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single
4177
# quotes!). If your package is not flat and you're not using automake,
4178
# define top_builddir and top_srcdir appropriately in the Makefiles.
4179
# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
4180
AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
4181
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
4182
AC_CHECK_LIB(ltdl, lt_dlinit,
4183
[test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
4184
[if test x"$enable_ltdl_install" = xno; then
4185
AC_MSG_WARN([libltdl not installed, but installation disabled])
4187
enable_ltdl_install=yes
4190
if test x"$enable_ltdl_install" = x"yes"; then
4191
ac_configure_args="$ac_configure_args --enable-ltdl-install"
4192
LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
4193
LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
4195
ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
4199
# For backwards non-gettext consistent compatibility...
4201
])# AC_LIBLTDL_INSTALLABLE
4206
# enable support for C++ libraries
4207
AC_DEFUN([AC_LIBTOOL_CXX],
4208
[AC_REQUIRE([_LT_AC_LANG_CXX])
4214
AC_DEFUN([_LT_AC_LANG_CXX],
4215
[AC_REQUIRE([AC_PROG_CXX])
4216
AC_REQUIRE([AC_PROG_CXXCPP])
4217
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
4223
# enable support for Fortran 77 libraries
4224
AC_DEFUN([AC_LIBTOOL_F77],
4225
[AC_REQUIRE([_LT_AC_LANG_F77])
4231
AC_DEFUN([_LT_AC_LANG_F77],
4232
[AC_REQUIRE([AC_PROG_F77])
4233
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
4239
# enable support for GCJ libraries
4240
AC_DEFUN([AC_LIBTOOL_GCJ],
4241
[AC_REQUIRE([_LT_AC_LANG_GCJ])
4247
AC_DEFUN([_LT_AC_LANG_GCJ],
4248
[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
4249
[AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
4250
[AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
4251
[ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
4252
[ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
4253
[AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
4254
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
4260
# enable support for Windows resource files
4261
AC_DEFUN([AC_LIBTOOL_RC],
4262
[AC_REQUIRE([LT_AC_PROG_RC])
4263
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
4267
# AC_LIBTOOL_LANG_C_CONFIG
4268
# ------------------------
4269
# Ensure that the configuration vars for the C compiler are
4270
# suitably defined. Those variables are subsequently used by
4271
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4272
AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
4273
AC_DEFUN([_LT_AC_LANG_C_CONFIG],
4277
# Source file extension for C test sources.
4280
# Object file extension for compiled C test sources.
4282
_LT_AC_TAGVAR(objext, $1)=$objext
4284
# Code to be used in simple compile tests
4285
lt_simple_compile_test_code="int some_variable = 0;\n"
4287
# Code to be used in simple link tests
4288
lt_simple_link_test_code='int main(){return(0);}\n'
4293
# Check for any special shared library compilation flags.
4295
_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)=
4296
if test "$GCC" = no; then
4299
_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf'
4303
if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then
4304
AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries])
4305
if echo "$old_CC $old_CFLAGS " | grep "[[ ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[ ]]" >/dev/null; then :
4307
AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure])
4308
_LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no
4314
# Check to make sure the static flag actually works.
4316
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works],
4317
_LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
4318
$_LT_AC_TAGVAR(lt_prog_compiler_static, $1),
4320
[_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
4323
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
4324
AC_LIBTOOL_PROG_COMPILER_PIC($1)
4325
AC_LIBTOOL_PROG_CC_C_O($1)
4326
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4327
AC_LIBTOOL_PROG_LD_SHLIBS($1)
4328
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4329
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4330
AC_LIBTOOL_SYS_LIB_STRIP
4331
AC_LIBTOOL_DLOPEN_SELF($1)
4333
# Report which librarie types wil actually be built
4334
AC_MSG_CHECKING([if libtool supports shared libraries])
4335
AC_MSG_RESULT([$can_build_shared])
4337
AC_MSG_CHECKING([whether to build shared libraries])
4338
test "$can_build_shared" = "no" && enable_shared=no
4340
# On AIX, shared libraries and static libraries use the same namespace, and
4341
# are all built from PIC.
4344
test "$enable_shared" = yes && enable_static=no
4345
if test -n "$RANLIB"; then
4346
archive_cmds="$archive_cmds~\$RANLIB \$lib"
4347
postinstall_cmds='$RANLIB $lib'
4352
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
4353
test "$enable_shared" = yes && enable_static=no
4356
darwin* | rhapsody*)
4357
if test "$GCC" = yes; then
4358
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4360
rhapsody* | darwin1.[[012]])
4361
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
4364
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
4365
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
4367
case ${MACOSX_DEPLOYMENT_TARGET} in
4369
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
4372
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
4378
output_verbose_link_cmd='echo'
4379
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
4380
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
4381
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
4382
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
4383
_LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
4384
_LT_AC_TAGVAR(hardcode_direct, $1)=no
4385
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes
4386
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
4387
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
4388
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4390
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4394
AC_MSG_RESULT([$enable_shared])
4396
AC_MSG_CHECKING([whether to build static libraries])
4397
# Make sure either enable_shared or enable_static is yes.
4398
test "$enable_shared" = yes || enable_static=yes
4399
AC_MSG_RESULT([$enable_static])
4401
AC_LIBTOOL_CONFIG($1)
4405
])# AC_LIBTOOL_LANG_C_CONFIG
4408
# AC_LIBTOOL_LANG_CXX_CONFIG
4409
# --------------------------
4410
# Ensure that the configuration vars for the C compiler are
4411
# suitably defined. Those variables are subsequently used by
4412
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4413
AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
4414
AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
4416
AC_REQUIRE([AC_PROG_CXX])
4417
AC_REQUIRE([AC_PROG_CXXCPP])
4419
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4420
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
4421
_LT_AC_TAGVAR(always_export_symbols, $1)=no
4422
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
4423
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
4424
_LT_AC_TAGVAR(hardcode_direct, $1)=no
4425
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
4426
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
4427
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
4428
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
4429
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
4430
_LT_AC_TAGVAR(module_cmds, $1)=
4431
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
4432
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
4433
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4434
_LT_AC_TAGVAR(no_undefined_flag, $1)=
4435
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
4436
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4438
# Dependencies to place before and after the object being linked:
4439
_LT_AC_TAGVAR(predep_objects, $1)=
4440
_LT_AC_TAGVAR(postdep_objects, $1)=
4441
_LT_AC_TAGVAR(predeps, $1)=
4442
_LT_AC_TAGVAR(postdeps, $1)=
4443
_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
4445
# Source file extension for C++ test sources.
4448
# Object file extension for compiled C++ test sources.
4450
_LT_AC_TAGVAR(objext, $1)=$objext
4452
# Code to be used in simple compile tests
4453
lt_simple_compile_test_code="int some_variable = 0;\n"
4455
# Code to be used in simple link tests
4456
lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
4458
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4461
# Allow CC to be a program name with arguments.
4466
lt_save_with_gnu_ld=$with_gnu_ld
4467
lt_save_path_LD=$lt_cv_path_LD
4468
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
4469
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
4471
unset lt_cv_prog_gnu_ld
4473
if test -n "${lt_cv_path_LDCXX+set}"; then
4474
lt_cv_path_LD=$lt_cv_path_LDCXX
4478
test -z "${LDCXX+set}" || LD=$LDCXX
4481
_LT_AC_TAGVAR(compiler, $1)=$CC
4482
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
4484
# We don't want -fno-exception wen compiling C++ code, so set the
4485
# no_builtin_flag separately
4486
if test "$GXX" = yes; then
4487
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
4489
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
4492
if test "$GXX" = yes; then
4493
# Set up default GNU C++ configuration
4497
# Check if GNU C++ uses GNU ld as the underlying linker, since the
4498
# archiving commands below assume that GNU ld is being used.
4499
if test "$with_gnu_ld" = yes; then
4500
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
4501
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4503
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
4504
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4506
# If archive_cmds runs LD, not CC, wlarc should be empty
4507
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
4508
# investigate it a little bit more. (MM)
4511
# ancient GNU ld didn't support --whole-archive et. al.
4512
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
4513
grep 'no-whole-archive' > /dev/null; then
4514
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4516
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
4522
# A generic and very simple default shared library creation
4523
# command for GNU C++ for the case where it uses the native
4524
# linker, instead of GNU ld. If possible, this setting should
4525
# overridden to take advantage of the native linker features on
4526
# the platform it is being used on.
4527
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
4530
# Commands to make compiler produce verbose output that lists
4531
# what "hidden" libraries, object files and flags are used when
4532
# linking a shared library.
4533
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
4541
# PORTME: fill in a description of your system's C++ link characteristics
4542
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
4543
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
4546
# FIXME: insert proper C++ library support
4547
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4550
if test "$host_cpu" = ia64; then
4551
# On IA64, the linker does run time linking by default, so we don't
4552
# have to do anything special.
4553
aix_use_runtimelinking=no
4554
exp_sym_flag='-Bexport'
4557
aix_use_runtimelinking=no
4559
# Test if we are trying to use run time linking or normal
4560
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
4561
# need to do runtime linking.
4562
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
4563
for ld_flag in $LDFLAGS; do
4566
aix_use_runtimelinking=yes
4573
exp_sym_flag='-bexport'
4574
no_entry_flag='-bnoentry'
4577
# When large executables or shared objects are built, AIX ld can
4578
# have problems creating the table of contents. If linking a library
4579
# or program results in "error TOC overflow" add -mminimal-toc to
4580
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
4581
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
4583
_LT_AC_TAGVAR(archive_cmds, $1)=''
4584
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
4585
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
4586
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4588
if test "$GXX" = yes; then
4589
case $host_os in aix4.[012]|aix4.[012].*)
4590
# We only want to do this on AIX 4.2 and lower, the check
4591
# below for broken collect2 doesn't work under 4.3+
4592
collect2name=`${CC} -print-prog-name=collect2`
4593
if test -f "$collect2name" && \
4594
strings "$collect2name" | grep resolve_lib_name >/dev/null
4596
# We have reworked collect2
4597
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
4599
# We have old collect2
4600
_LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
4601
# It fails to find uninstalled libraries when the uninstalled
4602
# path is not listed in the libpath. Setting hardcode_minus_L
4603
# to unsupported forces relinking
4604
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
4605
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4606
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
4609
shared_flag='-shared'
4612
if test "$host_cpu" = ia64; then
4613
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
4614
# chokes on -Wl,-G. The following line is correct:
4617
if test "$aix_use_runtimelinking" = yes; then
4618
shared_flag='${wl}-G'
4620
shared_flag='${wl}-bM:SRE'
4625
# It seems that -bexpall does not export symbols beginning with
4626
# underscore (_), so it is better to generate a list of symbols to export.
4627
_LT_AC_TAGVAR(always_export_symbols, $1)=yes
4628
if test "$aix_use_runtimelinking" = yes; then
4629
# Warning - without using the other runtime loading flags (-brtl),
4630
# -berok will link without error, but may produce a broken library.
4631
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
4632
# Determine the default libpath from the value encoded in an empty executable.
4633
_LT_AC_SYS_LIBPATH_AIX
4634
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
4636
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
4638
if test "$host_cpu" = ia64; then
4639
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
4640
_LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
4641
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
4643
# Determine the default libpath from the value encoded in an empty executable.
4644
_LT_AC_SYS_LIBPATH_AIX
4645
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
4646
# Warning - without using the other run time loading flags,
4647
# -berok will link without error, but may produce a broken library.
4648
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
4649
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
4650
# -bexpall does not export symbols beginning with underscore (_)
4651
_LT_AC_TAGVAR(always_export_symbols, $1)=yes
4652
# Exported symbols can be pulled into shared objects from archives
4653
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
4654
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
4655
# This is similar to how AIX traditionally builds it's shared libraries.
4656
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
4661
case $cc_basename in
4663
# FIXME: insert proper C++ library support
4664
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4669
cygwin* | mingw* | pw32*)
4670
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
4671
# as there is no search path for DLLs.
4672
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4673
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
4674
_LT_AC_TAGVAR(always_export_symbols, $1)=no
4675
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
4677
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
4678
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
4679
# If the export-symbols file already is a .def file (1st line
4680
# is EXPORTS), use it as is; otherwise, prepend...
4681
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
4682
cp $export_symbols $output_objdir/$soname.def;
4684
echo EXPORTS > $output_objdir/$soname.def;
4685
cat $export_symbols >> $output_objdir/$soname.def;
4687
$CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
4689
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4693
darwin* | rhapsody*)
4694
if test "$GXX" = yes; then
4695
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4697
rhapsody* | darwin1.[[012]])
4698
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
4701
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
4702
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
4704
case ${MACOSX_DEPLOYMENT_TARGET} in
4706
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
4709
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
4715
lt_int_apple_cc_single_mod=no
4716
output_verbose_link_cmd='echo'
4717
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
4718
lt_int_apple_cc_single_mod=yes
4720
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
4721
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
4723
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
4725
_LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
4727
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
4728
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
4729
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
4731
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
4733
_LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
4734
_LT_AC_TAGVAR(hardcode_direct, $1)=no
4735
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes
4736
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
4737
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
4738
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4740
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4745
case $cc_basename in
4747
# FIXME: insert proper C++ library support
4748
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4751
# Green Hills C++ Compiler
4752
# FIXME: insert proper C++ library support
4753
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4756
# FIXME: insert proper C++ library support
4757
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4762
# C++ shared libraries reported to be fairly broken before switch to ELF
4763
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4766
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4768
freebsd* | kfreebsd*-gnu)
4769
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
4771
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
4776
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4777
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4778
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4779
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
4780
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
4781
# but as the default
4782
# location of the library.
4784
case $cc_basename in
4786
# FIXME: insert proper C++ library support
4787
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4790
_LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
4791
# Commands to make compiler produce verbose output that lists
4792
# what "hidden" libraries, object files and flags are used when
4793
# linking a shared library.
4795
# There doesn't appear to be a way to prevent this compiler from
4796
# explicitly linking system object files so we need to strip them
4797
# from the output so that they don't get included in the library
4799
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
4802
if test "$GXX" = yes; then
4803
_LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
4805
# FIXME: insert proper C++ library support
4806
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4812
if test $with_gnu_ld = no; then
4815
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4816
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
4817
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4820
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4823
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4824
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4825
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4831
_LT_AC_TAGVAR(hardcode_direct, $1)=no
4832
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4835
_LT_AC_TAGVAR(hardcode_direct, $1)=no
4836
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4837
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
4838
# but as the default
4839
# location of the library.
4842
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
4843
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
4844
# but as the default
4845
# location of the library.
4849
case $cc_basename in
4851
# FIXME: insert proper C++ library support
4852
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4857
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
4860
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4863
# Commands to make compiler produce verbose output that lists
4864
# what "hidden" libraries, object files and flags are used when
4865
# linking a shared library.
4867
# There doesn't appear to be a way to prevent this compiler from
4868
# explicitly linking system object files so we need to strip them
4869
# from the output so that they don't get included in the library
4871
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
4874
if test "$GXX" = yes; then
4875
if test $with_gnu_ld = no; then
4878
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
4881
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4886
# FIXME: insert proper C++ library support
4887
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4893
case $cc_basename in
4896
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
4898
# Archives containing C++ object files must be created using
4899
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
4900
# necessary to make sure instantiated templates are included
4902
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
4905
if test "$GXX" = yes; then
4906
if test "$with_gnu_ld" = no; then
4907
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
4909
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
4912
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4915
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4916
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4919
case $cc_basename in
4921
# Kuck and Associates, Inc. (KAI) C++ Compiler
4923
# KCC will only create a shared library if the output file
4924
# ends with ".so" (or ".sl" for HP-UX), so rename the library
4925
# to its proper name (with version) after linking.
4926
_LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
4927
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
4928
# Commands to make compiler produce verbose output that lists
4929
# what "hidden" libraries, object files and flags are used when
4930
# linking a shared library.
4932
# There doesn't appear to be a way to prevent this compiler from
4933
# explicitly linking system object files so we need to strip them
4934
# from the output so that they don't get included in the library
4936
output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
4938
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
4939
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4941
# Archives containing C++ object files must be created using
4942
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
4943
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
4948
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4949
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
4950
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4951
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4952
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4953
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
4957
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
4958
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
4960
runpath_var=LD_RUN_PATH
4961
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
4962
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4964
# Commands to make compiler produce verbose output that lists
4965
# what "hidden" libraries, object files and flags are used when
4966
# linking a shared library.
4968
# There doesn't appear to be a way to prevent this compiler from
4969
# explicitly linking system object files so we need to strip them
4970
# from the output so that they don't get included in the library
4972
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
4977
# FIXME: insert proper C++ library support
4978
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4981
# FIXME: insert proper C++ library support
4982
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4985
case $cc_basename in
4987
# FIXME: insert proper C++ library support
4988
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4991
# FIXME: insert proper C++ library support
4992
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4997
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4998
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
5000
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5001
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
5002
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5004
# Workaround some broken pre-1.5 toolchains
5005
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
5008
case $cc_basename in
5010
# Kuck and Associates, Inc. (KAI) C++ Compiler
5012
# KCC will only create a shared library if the output file
5013
# ends with ".so" (or ".sl" for HP-UX), so rename the library
5014
# to its proper name (with version) after linking.
5015
_LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
5017
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5018
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5020
# Archives containing C++ object files must be created using
5021
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
5022
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
5026
# Rational C++ 2.4.1
5027
# FIXME: insert proper C++ library support
5028
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5031
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5032
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
5034
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5035
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5037
# Commands to make compiler produce verbose output that lists
5038
# what "hidden" libraries, object files and flags are used when
5039
# linking a shared library.
5041
# There doesn't appear to be a way to prevent this compiler from
5042
# explicitly linking system object files so we need to strip them
5043
# from the output so that they don't get included in the library
5045
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
5048
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
5049
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5050
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
5052
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5053
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5055
# Commands to make compiler produce verbose output that lists
5056
# what "hidden" libraries, object files and flags are used when
5057
# linking a shared library.
5058
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
5061
# FIXME: insert proper C++ library support
5062
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5068
case $cc_basename in
5070
# Kuck and Associates, Inc. (KAI) C++ Compiler
5072
# KCC will only create a shared library if the output file
5073
# ends with ".so" (or ".sl" for HP-UX), so rename the library
5074
# to its proper name (with version) after linking.
5075
_LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
5077
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5078
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5080
# Archives containing C++ object files must be created using
5081
# the KAI C++ compiler.
5082
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
5085
# Rational C++ 2.4.1
5086
# FIXME: insert proper C++ library support
5087
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5090
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5091
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
5092
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
5093
echo "-hidden">> $lib.exp~
5094
$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
5097
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5098
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5100
# Commands to make compiler produce verbose output that lists
5101
# what "hidden" libraries, object files and flags are used when
5102
# linking a shared library.
5104
# There doesn't appear to be a way to prevent this compiler from
5105
# explicitly linking system object files so we need to strip them
5106
# from the output so that they don't get included in the library
5108
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
5111
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
5112
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5113
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
5115
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5116
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5118
# Commands to make compiler produce verbose output that lists
5119
# what "hidden" libraries, object files and flags are used when
5120
# linking a shared library.
5121
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
5124
# FIXME: insert proper C++ library support
5125
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5131
# FIXME: insert proper C++ library support
5132
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5135
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5136
case $cc_basename in
5138
# FIXME: insert proper C++ library support
5139
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5142
# FIXME: insert proper C++ library support
5143
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5148
case $cc_basename in
5151
# FIXME: insert proper C++ library support
5152
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5156
# FIXME: insert proper C++ library support
5157
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5160
# FIXME: insert proper C++ library support
5161
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5166
case $cc_basename in
5168
# Sun C++ 4.2, 5.x and Centerline C++
5169
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
5170
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5171
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5172
$CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
5174
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5175
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5177
solaris2.[0-5] | solaris2.[0-5].*) ;;
5179
# The C++ compiler is used as linker so we must use $wl
5180
# flag to pass the commands to the underlying system
5182
# Supported since Solaris 2.6 (maybe 2.5.1?)
5183
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
5186
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5188
# Commands to make compiler produce verbose output that lists
5189
# what "hidden" libraries, object files and flags are used when
5190
# linking a shared library.
5192
# There doesn't appear to be a way to prevent this compiler from
5193
# explicitly linking system object files so we need to strip them
5194
# from the output so that they don't get included in the library
5196
output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[[LR]]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
5198
# Archives containing C++ object files must be created using
5199
# "CC -xar", where "CC" is the Sun C++ compiler. This is
5200
# necessary to make sure instantiated templates are included
5202
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
5205
# Green Hills C++ Compiler
5206
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
5208
# The C++ compiler must be used to create the archive.
5209
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
5212
# GNU C++ compiler with Solaris linker
5213
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
5214
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
5215
if $CC --version | grep -v '^2\.7' > /dev/null; then
5216
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
5217
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5218
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
5220
# Commands to make compiler produce verbose output that lists
5221
# what "hidden" libraries, object files and flags are used when
5222
# linking a shared library.
5223
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
5225
# g++ 2.7 appears to require `-G' NOT `-shared' on this
5227
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
5228
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5229
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
5231
# Commands to make compiler produce verbose output that lists
5232
# what "hidden" libraries, object files and flags are used when
5233
# linking a shared library.
5234
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
5237
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
5242
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
5243
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5246
case $cc_basename in
5248
# NonStop-UX NCC 3.20
5249
# FIXME: insert proper C++ library support
5250
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5253
# FIXME: insert proper C++ library support
5254
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5259
# FIXME: insert proper C++ library support
5260
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5263
# FIXME: insert proper C++ library support
5264
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5267
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
5268
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
5270
_LT_AC_TAGVAR(GCC, $1)="$GXX"
5271
_LT_AC_TAGVAR(LD, $1)="$LD"
5273
AC_LIBTOOL_POSTDEP_PREDEP($1)
5274
AC_LIBTOOL_PROG_COMPILER_PIC($1)
5275
AC_LIBTOOL_PROG_CC_C_O($1)
5276
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
5277
AC_LIBTOOL_PROG_LD_SHLIBS($1)
5278
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
5279
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
5280
AC_LIBTOOL_SYS_LIB_STRIP
5281
AC_LIBTOOL_DLOPEN_SELF($1)
5283
AC_LIBTOOL_CONFIG($1)
5290
with_gnu_ldcxx=$with_gnu_ld
5291
with_gnu_ld=$lt_save_with_gnu_ld
5292
lt_cv_path_LDCXX=$lt_cv_path_LD
5293
lt_cv_path_LD=$lt_save_path_LD
5294
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
5295
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
5296
])# AC_LIBTOOL_LANG_CXX_CONFIG
5298
# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
5299
# ------------------------
5300
# Figure out "hidden" library dependencies from verbose
5301
# compiler output when linking a shared library.
5302
# Parse the compiler output and extract the necessary
5303
# objects, libraries and library flags.
5304
AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
5305
dnl we can't use the lt_simple_compile_test_code here,
5306
dnl because it contains code intended for an executable,
5307
dnl not a library. It's possible we should let each
5308
dnl tag define a new lt_????_link_test_code variable,
5309
dnl but it's only used here...
5310
ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
5312
void foo (void) { a = 0; }
5314
],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
5318
Foo (void) { a = 0; }
5323
],[$1],[F77],[cat > conftest.$ac_ext <<EOF
5331
],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
5334
public void bar (void) {
5340
dnl Parse the compiler output and extract the necessary
5341
dnl objects, libraries and library flags.
5342
if AC_TRY_EVAL(ac_compile); then
5343
# Parse the compiler output and extract the necessary
5344
# objects, libraries and library flags.
5346
# Sentinel used to keep track of whether or not we are before
5347
# the conftest object file.
5348
pre_test_object_deps_done=no
5350
# The `*' in the case matches for architectures that use `case' in
5351
# $output_verbose_cmd can trigger glob expansion during the loop
5352
# eval without this substitution.
5353
output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
5355
for p in `eval $output_verbose_link_cmd`; do
5359
# Some compilers place space between "-{L,R}" and the path.
5362
|| test $p = "-R"; then
5369
if test "$pre_test_object_deps_done" = no; then
5372
# Internal compiler library paths should come after those
5373
# provided the user. The postdeps already come after the
5374
# user supplied libs so there is no need to process them.
5375
if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
5376
_LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
5378
_LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
5381
# The "-l" case would never come before the object being
5382
# linked, so don't bother handling this case.
5385
if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
5386
_LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
5388
_LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
5394
# This assumes that the test object file only shows up
5395
# once in the compiler output.
5396
if test "$p" = "conftest.$objext"; then
5397
pre_test_object_deps_done=yes
5401
if test "$pre_test_object_deps_done" = no; then
5402
if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
5403
_LT_AC_TAGVAR(predep_objects, $1)="$p"
5405
_LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
5408
if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
5409
_LT_AC_TAGVAR(postdep_objects, $1)="$p"
5411
_LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
5416
*) ;; # Ignore the rest.
5424
echo "libtool.m4: error: problem compiling $1 test program"
5427
$rm -f confest.$objext
5429
case " $_LT_AC_TAGVAR(postdeps, $1) " in
5430
*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
5432
])# AC_LIBTOOL_POSTDEP_PREDEP
5434
# AC_LIBTOOL_LANG_F77_CONFIG
5435
# ------------------------
5436
# Ensure that the configuration vars for the C compiler are
5437
# suitably defined. Those variables are subsequently used by
5438
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
5439
AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
5440
AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
5441
[AC_REQUIRE([AC_PROG_F77])
5442
AC_LANG_PUSH(Fortran 77)
5444
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5445
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
5446
_LT_AC_TAGVAR(always_export_symbols, $1)=no
5447
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
5448
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
5449
_LT_AC_TAGVAR(hardcode_direct, $1)=no
5450
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
5451
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5452
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
5453
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
5454
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
5455
_LT_AC_TAGVAR(module_cmds, $1)=
5456
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
5457
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
5458
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
5459
_LT_AC_TAGVAR(no_undefined_flag, $1)=
5460
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5461
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5463
# Source file extension for f77 test sources.
5466
# Object file extension for compiled f77 test sources.
5468
_LT_AC_TAGVAR(objext, $1)=$objext
5470
# Code to be used in simple compile tests
5471
lt_simple_compile_test_code=" subroutine t\n return\n end\n"
5473
# Code to be used in simple link tests
5474
lt_simple_link_test_code=" program t\n end\n"
5476
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
5479
# Allow CC to be a program name with arguments.
5483
_LT_AC_TAGVAR(compiler, $1)=$CC
5484
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
5486
AC_MSG_CHECKING([if libtool supports shared libraries])
5487
AC_MSG_RESULT([$can_build_shared])
5489
AC_MSG_CHECKING([whether to build shared libraries])
5490
test "$can_build_shared" = "no" && enable_shared=no
5492
# On AIX, shared libraries and static libraries use the same namespace, and
5493
# are all built from PIC.
5496
test "$enable_shared" = yes && enable_static=no
5497
if test -n "$RANLIB"; then
5498
archive_cmds="$archive_cmds~\$RANLIB \$lib"
5499
postinstall_cmds='$RANLIB $lib'
5503
test "$enable_shared" = yes && enable_static=no
5506
AC_MSG_RESULT([$enable_shared])
5508
AC_MSG_CHECKING([whether to build static libraries])
5509
# Make sure either enable_shared or enable_static is yes.
5510
test "$enable_shared" = yes || enable_static=yes
5511
AC_MSG_RESULT([$enable_static])
5513
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
5515
_LT_AC_TAGVAR(GCC, $1)="$G77"
5516
_LT_AC_TAGVAR(LD, $1)="$LD"
5518
AC_LIBTOOL_PROG_COMPILER_PIC($1)
5519
AC_LIBTOOL_PROG_CC_C_O($1)
5520
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
5521
AC_LIBTOOL_PROG_LD_SHLIBS($1)
5522
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
5523
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
5524
AC_LIBTOOL_SYS_LIB_STRIP
5527
AC_LIBTOOL_CONFIG($1)
5531
])# AC_LIBTOOL_LANG_F77_CONFIG
5534
# AC_LIBTOOL_LANG_GCJ_CONFIG
5535
# --------------------------
5536
# Ensure that the configuration vars for the C compiler are
5537
# suitably defined. Those variables are subsequently used by
5538
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
5539
AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
5540
AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
5543
# Source file extension for Java test sources.
5546
# Object file extension for compiled Java test sources.
5548
_LT_AC_TAGVAR(objext, $1)=$objext
5550
# Code to be used in simple compile tests
5551
lt_simple_compile_test_code="class foo {}\n"
5553
# Code to be used in simple link tests
5554
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
5556
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
5559
# Allow CC to be a program name with arguments.
5563
_LT_AC_TAGVAR(compiler, $1)=$CC
5565
# GCJ did not exist at the time GCC didn't implicitly link libc in.
5566
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5568
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
5569
AC_LIBTOOL_PROG_COMPILER_PIC($1)
5570
AC_LIBTOOL_PROG_CC_C_O($1)
5571
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
5572
AC_LIBTOOL_PROG_LD_SHLIBS($1)
5573
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
5574
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
5575
AC_LIBTOOL_SYS_LIB_STRIP
5576
AC_LIBTOOL_DLOPEN_SELF($1)
5578
AC_LIBTOOL_CONFIG($1)
5582
])# AC_LIBTOOL_LANG_GCJ_CONFIG
5585
# AC_LIBTOOL_LANG_RC_CONFIG
5586
# --------------------------
5587
# Ensure that the configuration vars for the Windows resource compiler are
5588
# suitably defined. Those variables are subsequently used by
5589
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
5590
AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
5591
AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
5594
# Source file extension for RC test sources.
5597
# Object file extension for compiled RC test sources.
5599
_LT_AC_TAGVAR(objext, $1)=$objext
5601
# Code to be used in simple compile tests
5602
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
5604
# Code to be used in simple link tests
5605
lt_simple_link_test_code="$lt_simple_compile_test_code"
5607
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
5610
# Allow CC to be a program name with arguments.
5614
_LT_AC_TAGVAR(compiler, $1)=$CC
5615
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
5617
AC_LIBTOOL_CONFIG($1)
5621
])# AC_LIBTOOL_LANG_RC_CONFIG
5624
# AC_LIBTOOL_CONFIG([TAGNAME])
5625
# ----------------------------
5626
# If TAGNAME is not passed, then create an initial libtool script
5627
# with a default configuration from the untagged config vars. Otherwise
5628
# add code to config.status for appending the configuration named by
5629
# TAGNAME from the matching tagged config vars.
5630
AC_DEFUN([AC_LIBTOOL_CONFIG],
5631
[# The else clause should only fire when bootstrapping the
5632
# libtool distribution, otherwise you forgot to ship ltmain.sh
5633
# with your package, and you will get complaints that there are
5634
# no rules to generate ltmain.sh.
5635
if test -f "$ltmain"; then
5636
# See if we are running on zsh, and set the options which allow our commands through
5637
# without removal of \ escapes.
5638
if test -n "${ZSH_VERSION+set}" ; then
5639
setopt NO_GLOB_SUBST
5641
# Now quote all the things that may contain metacharacters while being
5642
# careful not to overquote the AC_SUBSTed values. We take copies of the
5643
# variables and quote the copies for generation of the libtool script.
5644
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
5646
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
5647
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
5648
deplibs_check_method reload_flag reload_cmds need_locks \
5649
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
5650
lt_cv_sys_global_symbol_to_c_name_address \
5651
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
5652
old_postinstall_cmds old_postuninstall_cmds \
5653
_LT_AC_TAGVAR(compiler, $1) \
5654
_LT_AC_TAGVAR(CC, $1) \
5655
_LT_AC_TAGVAR(LD, $1) \
5656
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
5657
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
5658
_LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
5659
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
5660
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
5661
_LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
5662
_LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
5663
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
5664
_LT_AC_TAGVAR(old_archive_cmds, $1) \
5665
_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
5666
_LT_AC_TAGVAR(predep_objects, $1) \
5667
_LT_AC_TAGVAR(postdep_objects, $1) \
5668
_LT_AC_TAGVAR(predeps, $1) \
5669
_LT_AC_TAGVAR(postdeps, $1) \
5670
_LT_AC_TAGVAR(compiler_lib_search_path, $1) \
5671
_LT_AC_TAGVAR(archive_cmds, $1) \
5672
_LT_AC_TAGVAR(archive_expsym_cmds, $1) \
5673
_LT_AC_TAGVAR(postinstall_cmds, $1) \
5674
_LT_AC_TAGVAR(postuninstall_cmds, $1) \
5675
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
5676
_LT_AC_TAGVAR(allow_undefined_flag, $1) \
5677
_LT_AC_TAGVAR(no_undefined_flag, $1) \
5678
_LT_AC_TAGVAR(export_symbols_cmds, $1) \
5679
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
5680
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
5681
_LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
5682
_LT_AC_TAGVAR(hardcode_automatic, $1) \
5683
_LT_AC_TAGVAR(module_cmds, $1) \
5684
_LT_AC_TAGVAR(module_expsym_cmds, $1) \
5685
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
5686
_LT_AC_TAGVAR(exclude_expsyms, $1) \
5687
_LT_AC_TAGVAR(include_expsyms, $1); do
5690
_LT_AC_TAGVAR(old_archive_cmds, $1) | \
5691
_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
5692
_LT_AC_TAGVAR(archive_cmds, $1) | \
5693
_LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
5694
_LT_AC_TAGVAR(module_cmds, $1) | \
5695
_LT_AC_TAGVAR(module_expsym_cmds, $1) | \
5696
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
5697
_LT_AC_TAGVAR(export_symbols_cmds, $1) | \
5698
extract_expsyms_cmds | reload_cmds | finish_cmds | \
5699
postinstall_cmds | postuninstall_cmds | \
5700
old_postinstall_cmds | old_postuninstall_cmds | \
5701
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
5702
# Double-quote double-evaled strings.
5703
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
5706
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
5712
*'\[$]0 --fallback-echo"')
5713
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
5718
[cfgfile="${ofile}T"
5719
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
5721
AC_MSG_NOTICE([creating $ofile])],
5724
cat <<__EOF__ >> "$cfgfile"
5728
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
5729
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
5730
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
5732
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
5733
# Free Software Foundation, Inc.
5735
# This file is part of GNU Libtool:
5736
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
5738
# This program is free software; you can redistribute it and/or modify
5739
# it under the terms of the GNU General Public License as published by
5740
# the Free Software Foundation; either version 2 of the License, or
5741
# (at your option) any later version.
5743
# This program is distributed in the hope that it will be useful, but
5744
# WITHOUT ANY WARRANTY; without even the implied warranty of
5745
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
5746
# General Public License for more details.
5748
# You should have received a copy of the GNU General Public License
5749
# along with this program; if not, write to the Free Software
5750
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
5752
# As a special exception to the GNU General Public License, if you
5753
# distribute this file as part of a program that contains a
5754
# configuration script generated by Autoconf, you may include it under
5755
# the same distribution terms that you use for the rest of that program.
5757
# A sed program that does not truncate output.
5760
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
5761
Xsed="$SED -e s/^X//"
5763
# The HP-UX ksh and POSIX shell print the target directory to stdout
5765
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
5767
# The names of the tagged configurations supported by this script.
5770
# ### BEGIN LIBTOOL CONFIG],
5771
[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
5773
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5775
# Shell to use when invoking shell scripts.
5778
# Whether or not to build shared libraries.
5779
build_libtool_libs=$enable_shared
5781
# Whether or not to build static libraries.
5782
build_old_libs=$enable_static
5784
# Whether or not to add -lc for building shared libraries.
5785
build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
5787
# Whether or not to disallow shared libs when runtime libs are static
5788
allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
5790
# Whether or not to optimize for fast installation.
5791
fast_install=$enable_fast_install
5794
host_alias=$host_alias
5797
# An echo program that does not interpret backslashes.
5802
AR_FLAGS=$lt_AR_FLAGS
5807
# A language-specific compiler.
5808
CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
5810
# Is the compiler the GNU C compiler?
5811
with_gcc=$_LT_AC_TAGVAR(GCC, $1)
5816
# The linker used to build libraries.
5817
LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
5819
# Whether we need hard or soft links.
5822
# A BSD-compatible nm program.
5825
# A symbol stripping program
5828
# Used to examine libraries when file_magic_cmd begins "file"
5829
MAGIC_CMD=$MAGIC_CMD
5831
# Used on cygwin: DLL creation program.
5834
# Used on cygwin: object dumper.
5837
# Used on cygwin: assembler.
5840
# The name of the directory that contains temporary libtool files.
5843
# How to create reloadable object files.
5844
reload_flag=$lt_reload_flag
5845
reload_cmds=$lt_reload_cmds
5847
# How to pass a linker flag through the compiler.
5848
wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
5850
# Object file suffix (normally "o").
5853
# Old archive suffix (normally "a").
5856
# Shared library suffix (normally ".so").
5859
# Executable file suffix (normally "").
5862
# Additional compiler flags for building library objects.
5863
pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
5866
# What is the maximum length of a command?
5867
max_cmd_len=$lt_cv_sys_max_cmd_len
5869
# Does compiler simultaneously support -c and -o options?
5870
compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
5872
# Must we lock files when doing compilation ?
5873
need_locks=$lt_need_locks
5875
# Do we need the lib prefix for modules?
5876
need_lib_prefix=$need_lib_prefix
5878
# Do we need a version for libraries?
5879
need_version=$need_version
5881
# Whether dlopen is supported.
5882
dlopen_support=$enable_dlopen
5884
# Whether dlopen of programs is supported.
5885
dlopen_self=$enable_dlopen_self
5887
# Whether dlopen of statically linked programs is supported.
5888
dlopen_self_static=$enable_dlopen_self_static
5890
# Compiler flag to prevent dynamic linking.
5891
link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
5893
# Compiler flag to turn off builtin functions.
5894
no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
5896
# Compiler flag to allow reflexive dlopens.
5897
export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
5899
# Compiler flag to generate shared objects directly from archives.
5900
whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
5902
# Compiler flag to generate thread-safe objects.
5903
thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
5905
# Library versioning type.
5906
version_type=$version_type
5908
# Format of library name prefix.
5909
libname_spec=$lt_libname_spec
5911
# List of archive names. First name is the real one, the rest are links.
5912
# The last name is the one that the linker finds with -lNAME.
5913
library_names_spec=$lt_library_names_spec
5915
# The coded name of the library, if different from the real name.
5916
soname_spec=$lt_soname_spec
5918
# Commands used to build and install an old-style archive.
5920
old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
5921
old_postinstall_cmds=$lt_old_postinstall_cmds
5922
old_postuninstall_cmds=$lt_old_postuninstall_cmds
5924
# Create an old-style archive from a shared archive.
5925
old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
5927
# Create a temporary old-style archive to link instead of a shared archive.
5928
old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
5930
# Commands used to build and install a shared archive.
5931
archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
5932
archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
5933
postinstall_cmds=$lt_postinstall_cmds
5934
postuninstall_cmds=$lt_postuninstall_cmds
5936
# Commands used to build a loadable module (assumed same as above if empty)
5937
module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
5938
module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
5940
# Commands to strip libraries.
5941
old_striplib=$lt_old_striplib
5942
striplib=$lt_striplib
5944
# Dependencies to place before the objects being linked to create a
5946
predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
5948
# Dependencies to place after the objects being linked to create a
5950
postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
5952
# Dependencies to place before the objects being linked to create a
5954
predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
5956
# Dependencies to place after the objects being linked to create a
5958
postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
5960
# The library search path used internally by the compiler when linking
5962
compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
5964
# Method to check whether dependent libraries are shared objects.
5965
deplibs_check_method=$lt_deplibs_check_method
5967
# Command to use when deplibs_check_method == file_magic.
5968
file_magic_cmd=$lt_file_magic_cmd
5970
# Flag that allows shared libraries with undefined symbols to be built.
5971
allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
5973
# Flag that forces no undefined symbols.
5974
no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
5976
# Commands used to finish a libtool library installation in a directory.
5977
finish_cmds=$lt_finish_cmds
5979
# Same as above, but a single script fragment to be evaled but not shown.
5980
finish_eval=$lt_finish_eval
5982
# Take the output of nm and produce a listing of raw symbols and C names.
5983
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
5985
# Transform the output of nm in a proper C declaration
5986
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
5988
# Transform the output of nm in a C name address pair
5989
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
5991
# This is the shared library runtime path variable.
5992
runpath_var=$runpath_var
5994
# This is the shared library path variable.
5995
shlibpath_var=$shlibpath_var
5997
# Is shlibpath searched before the hard-coded library search path?
5998
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
6000
# How to hardcode a shared library path into an executable.
6001
hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
6003
# Whether we should hardcode library paths into libraries.
6004
hardcode_into_libs=$hardcode_into_libs
6006
# Flag to hardcode \$libdir into a binary during linking.
6007
# This must work even if \$libdir does not exist.
6008
hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
6010
# If ld is used when linking, flag to hardcode \$libdir into
6011
# a binary during linking. This must work even if \$libdir does
6013
hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
6015
# Whether we need a single -rpath flag with a separated argument.
6016
hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
6018
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
6020
hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
6022
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
6024
hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
6026
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
6027
# the resulting binary.
6028
hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
6030
# Set to yes if building a shared library automatically hardcodes DIR into the library
6031
# and all subsequent libraries and executables linked against it.
6032
hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
6034
# Variables whose values should be saved in libtool wrapper scripts and
6035
# restored at relink time.
6036
variables_saved_for_relink="$variables_saved_for_relink"
6038
# Whether libtool must link a program against all its dependency libraries.
6039
link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
6041
# Compile-time system search path for libraries
6042
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
6044
# Run-time system search path for libraries
6045
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
6047
# Fix the shell variable \$srcfile for the compiler.
6048
fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
6050
# Set to yes if exported symbols are required.
6051
always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
6053
# The commands to list exported symbols.
6054
export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
6056
# The commands to extract the exported symbol list from a shared archive.
6057
extract_expsyms_cmds=$lt_extract_expsyms_cmds
6059
# Symbols that should not be listed in the preloaded symbols.
6060
exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
6062
# Symbols that must always be exported.
6063
include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
6066
[# ### END LIBTOOL CONFIG],
6067
[# ### END LIBTOOL TAG CONFIG: $tagname])
6074
cat <<\EOF >> "$cfgfile"
6076
# AIX sometimes has problems with the GCC collect2 program. For some
6077
# reason, if we set the COLLECT_NAMES environment variable, the problems
6078
# vanish in a puff of smoke.
6079
if test "X${COLLECT_NAMES+set}" != Xset; then
6081
export COLLECT_NAMES
6087
# We use sed instead of cat because bash on DJGPP gets confused if
6088
# if finds mixed CR/LF and LF-only lines. Since sed operates in
6089
# text mode, it properly converts lines to CR/LF. This bash problem
6090
# is reportedly fixed, but why not run on old versions too?
6091
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
6093
mv -f "$cfgfile" "$ofile" || \
6094
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
6098
# If there is no Makefile yet, we rely on a make rule to execute
6099
# `config.status --recheck' to rerun these tests and create the
6100
# libtool script then.
6101
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
6102
if test -f "$ltmain_in"; then
6103
test -f Makefile && make "$ltmain"
6106
])# AC_LIBTOOL_CONFIG
6109
# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
6110
# -------------------------------------------
6111
AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
6112
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
6114
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
6116
if test "$GCC" = yes; then
6117
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
6119
AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
6120
lt_cv_prog_compiler_rtti_exceptions,
6121
[-fno-rtti -fno-exceptions], [],
6122
[_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
6124
])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
6127
# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
6128
# ---------------------------------
6129
AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
6130
[AC_REQUIRE([AC_CANONICAL_HOST])
6131
AC_REQUIRE([AC_PROG_NM])
6132
AC_REQUIRE([AC_OBJEXT])
6133
# Check for command to grab the raw symbol name followed by C symbol from nm.
6134
AC_MSG_CHECKING([command to parse $NM output from $compiler object])
6135
AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
6137
# These are sane defaults that work on at least a few old systems.
6138
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6140
# Character class describing NM global symbol codes.
6141
symcode='[[BCDEGRST]]'
6143
# Regexp to match symbols that can be accessed directly from C.
6144
sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
6146
# Transform the above into a raw symbol and a C symbol.
6147
symxfrm='\1 \2\3 \3'
6149
# Transform an extracted symbol line into a proper C declaration
6150
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6152
# Transform an extracted symbol line into symbol name and symbol address
6153
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6155
# Define system-specific variables.
6160
cygwin* | mingw* | pw32*)
6161
symcode='[[ABCDGISTW]]'
6163
hpux*) # Its linker distinguishes data from code symbols
6164
if test "$host_cpu" = ia64; then
6165
symcode='[[ABCDEGRST]]'
6167
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6168
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6171
symcode='[[BCDEGRST]]'
6174
symcode='[[BCDEGQRST]]'
6180
symcode='[[DFNSTU]]'
6184
# Handle CRLF in mingw tool chain
6188
opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6192
# If we're using GNU nm, then use its standard symbol codes.
6193
case `$NM -V 2>&1` in
6194
*GNU* | *'with BFD'*)
6195
symcode='[[ABCDGIRSTW]]' ;;
6198
# Try without a prefix undercore, then with it.
6199
for ac_symprfx in "" "_"; do
6201
# Write the raw and C identifiers.
6202
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
6204
# Check to see that the pipe works correctly.
6208
cat > conftest.$ac_ext <<EOF
6213
void nm_test_func(){}
6217
int main(){nm_test_var='a';nm_test_func();return(0);}
6220
if AC_TRY_EVAL(ac_compile); then
6221
# Now try to grab the symbols.
6223
if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
6224
# Try sorting and uniquifying the output.
6225
if sort "$nlist" | uniq > "$nlist"T; then
6226
mv -f "$nlist"T "$nlist"
6231
# Make sure that we snagged all the symbols we need.
6232
if grep ' nm_test_var$' "$nlist" >/dev/null; then
6233
if grep ' nm_test_func$' "$nlist" >/dev/null; then
6234
cat <<EOF > conftest.$ac_ext
6240
# Now generate the symbol file.
6241
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6243
cat <<EOF >> conftest.$ac_ext
6244
#if defined (__STDC__) && __STDC__
6245
# define lt_ptr_t void *
6247
# define lt_ptr_t char *
6251
/* The mapping between symbol names and symbols. */
6256
lt_preloaded_symbols[[]] =
6259
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6260
cat <<\EOF >> conftest.$ac_ext
6268
# Now try linking the two files.
6269
mv conftest.$ac_objext conftstm.$ac_objext
6270
lt_save_LIBS="$LIBS"
6271
lt_save_CFLAGS="$CFLAGS"
6272
LIBS="conftstm.$ac_objext"
6273
CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
6274
if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
6277
LIBS="$lt_save_LIBS"
6278
CFLAGS="$lt_save_CFLAGS"
6280
echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
6283
echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
6286
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
6289
echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
6290
cat conftest.$ac_ext >&5
6292
rm -f conftest* conftst*
6294
# Do not use the global_symbol_pipe unless it works.
6295
if test "$pipe_works" = yes; then
6298
lt_cv_sys_global_symbol_pipe=
6302
if test -z "$lt_cv_sys_global_symbol_pipe"; then
6303
lt_cv_sys_global_symbol_to_cdecl=
6305
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6306
AC_MSG_RESULT(failed)
6310
]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
6313
# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
6314
# ---------------------------------------
6315
AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
6316
[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
6317
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6318
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
6320
AC_MSG_CHECKING([for $compiler option to produce PIC])
6322
# C++ specific cases for pic, static, wl, etc.
6323
if test "$GXX" = yes; then
6324
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6325
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
6329
# All AIX code is PIC.
6330
if test "$host_cpu" = ia64; then
6331
# AIX 5 now supports IA64 processor
6332
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6336
# FIXME: we need at least 68020 code to build shared libraries, but
6337
# adding the `-m68020' flag to GCC prevents building anything better,
6339
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
6341
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6342
# PIC is the default for these OSes.
6344
mingw* | os2* | pw32*)
6345
# This hack is so that the source file can tell whether it is being
6346
# built for inclusion in a dll (and should export symbols for example).
6347
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
6349
darwin* | rhapsody*)
6350
# PIC is the default on this platform
6351
# Common symbols not allowed in MH_DYLIB files
6352
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
6355
# DJGPP does not support shared libraries at all
6356
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6359
if test -d /usr/nec; then
6360
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
6364
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6370
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6375
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6381
# All AIX code is PIC.
6382
if test "$host_cpu" = ia64; then
6383
# AIX 5 now supports IA64 processor
6384
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6386
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
6390
case $cc_basename in
6392
# Green Hills C++ Compiler
6393
# _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
6398
case $cc_basename in
6400
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6403
# Green Hills C++ Compiler
6404
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6410
freebsd* | kfreebsd*-gnu)
6411
# FreeBSD uses GNU C++
6413
hpux9* | hpux10* | hpux11*)
6414
case $cc_basename in
6416
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6417
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
6418
if test "$host_cpu" != ia64; then
6419
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
6423
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6424
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
6430
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
6438
irix5* | irix6* | nonstopux*)
6439
case $cc_basename in
6441
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6442
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6443
# CC pic flag -KPIC is the default.
6450
case $cc_basename in
6453
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
6454
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6458
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6459
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6460
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
6464
# Make sure the PIC flag is empty. It appears that all Alpha
6465
# Linux and Compaq Tru64 Unix objects are PIC.
6466
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6467
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6478
case $cc_basename in
6480
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
6488
osf3* | osf4* | osf5*)
6489
case $cc_basename in
6491
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
6494
# Rational C++ 2.4.1
6495
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6498
# Digital/Compaq C++
6499
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6500
# Make sure the PIC flag is empty. It appears that all Alpha
6501
# Linux and Compaq Tru64 Unix objects are PIC.
6502
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6503
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6512
case $cc_basename in
6514
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6521
case $cc_basename in
6523
# Sun C++ 4.2, 5.x and Centerline C++
6524
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6525
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6526
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
6529
# Green Hills C++ Compiler
6530
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
6537
case $cc_basename in
6540
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6541
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6545
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6552
case $cc_basename in
6554
# NonStop-UX NCC 3.20
6555
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6566
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6572
if test "$GCC" = yes; then
6573
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6574
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
6578
# All AIX code is PIC.
6579
if test "$host_cpu" = ia64; then
6580
# AIX 5 now supports IA64 processor
6581
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6586
# FIXME: we need at least 68020 code to build shared libraries, but
6587
# adding the `-m68020' flag to GCC prevents building anything better,
6589
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
6592
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6593
# PIC is the default for these OSes.
6596
mingw* | pw32* | os2*)
6597
# This hack is so that the source file can tell whether it is being
6598
# built for inclusion in a dll (and should export symbols for example).
6599
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
6602
darwin* | rhapsody*)
6603
# PIC is the default on this platform
6604
# Common symbols not allowed in MH_DYLIB files
6605
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
6609
# Just because we use GCC doesn't mean we suddenly get shared libraries
6610
# on systems that don't support them.
6611
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6616
if test -d /usr/nec; then
6617
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
6622
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6629
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6635
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6639
# PORTME Check for flag to pass linker flags through the system compiler.
6642
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6643
if test "$host_cpu" = ia64; then
6644
# AIX 5 now supports IA64 processor
6645
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6647
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
6651
mingw* | pw32* | os2*)
6652
# This hack is so that the source file can tell whether it is being
6653
# built for inclusion in a dll (and should export symbols for example).
6654
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
6657
hpux9* | hpux10* | hpux11*)
6658
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6659
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6666
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
6669
# Is there a better lt_prog_compiler_static that works with the bundled CC?
6670
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
6673
irix5* | irix6* | nonstopux*)
6674
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6675
# PIC (with -KPIC) is the default.
6676
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6680
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6681
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6687
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6688
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6689
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
6692
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6693
# All Alpha code is PIC.
6694
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6699
osf3* | osf4* | osf5*)
6700
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6701
# All OSF/1 code is PIC.
6702
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6706
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic'
6707
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn'
6711
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6712
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6713
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6717
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
6718
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
6719
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6722
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6723
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6724
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6725
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6729
if test -d /usr/nec ;then
6730
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
6731
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6736
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6737
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6741
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6746
AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
6749
# Check to make sure the PIC flag actually works.
6751
if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
6752
AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
6753
_LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
6754
[$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
6755
[case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
6757
*) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
6759
[_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6760
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
6763
# For platforms which do not support PIC, -DPIC is meaningless:
6765
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6768
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
6774
# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
6775
# ------------------------------------
6776
# See if the linker supports building shared libraries.
6777
AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
6778
[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
6780
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6783
# If we're using GNU nm, then we don't want the "-C" option.
6784
# -C means demangle to AIX nm, but means don't demangle with GNU nm
6785
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6786
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
6788
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
6792
_LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
6795
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
6798
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6803
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
6804
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6805
_LT_AC_TAGVAR(archive_cmds, $1)=
6806
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
6807
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
6808
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
6809
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
6810
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
6811
_LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
6812
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
6813
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6814
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
6815
_LT_AC_TAGVAR(hardcode_direct, $1)=no
6816
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
6817
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6818
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
6819
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
6820
_LT_AC_TAGVAR(module_cmds, $1)=
6821
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
6822
_LT_AC_TAGVAR(always_export_symbols, $1)=no
6823
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6824
# include_expsyms should be a list of space-separated symbols to be *always*
6825
# included in the symbol list
6826
_LT_AC_TAGVAR(include_expsyms, $1)=
6827
# exclude_expsyms can be an extended regexp of symbols to exclude
6828
# it will be wrapped by ` (' and `)$', so one must not match beginning or
6829
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6830
# as well as any symbol that contains `d'.
6831
_LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
6832
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6833
# platforms (ab)use it in PIC code, but their linkers get confused if
6834
# the symbol is explicitly referenced. Since portable code cannot
6835
# rely on this symbol name, it's probably fine to never include it in
6836
# preloaded symbol tables.
6837
extract_expsyms_cmds=
6840
cygwin* | mingw* | pw32*)
6841
# FIXME: the MSVC++ port hasn't been tested in a loooong time
6842
# When not using gcc, we currently assume that we are using
6843
# Microsoft Visual C++.
6844
if test "$GCC" != yes; then
6853
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
6854
if test "$with_gnu_ld" = yes; then
6855
# If archive_cmds runs LD, not CC, wlarc should be empty
6858
# See if GNU ld supports shared libraries.
6860
aix3* | aix4* | aix5*)
6861
# On AIX/PPC, the GNU linker is very broken
6862
if test "$host_cpu" != ia64; then
6863
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6866
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6867
*** to be unable to reliably create shared libraries on AIX.
6868
*** Therefore, libtool is disabling shared libraries support. If you
6869
*** really care for shared libraries, you may want to modify your PATH
6870
*** so that a non-GNU linker is found, and then restart.
6877
_LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
6878
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6879
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6881
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6882
# that the semantics of dynamic libraries on AmigaOS, at least up
6883
# to version 4, is to share data among multiple programs linked
6884
# with the same dynamic library. Since this doesn't match the
6885
# behavior of shared libraries on other platforms, we can't use
6887
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6891
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6892
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6893
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6894
# support --undefined. This deserves some investigation. FIXME
6895
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6897
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6901
cygwin* | mingw* | pw32*)
6902
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6903
# as there is no search path for DLLs.
6904
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6905
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6906
_LT_AC_TAGVAR(always_export_symbols, $1)=no
6907
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6908
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
6910
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6911
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6912
# If the export-symbols file already is a .def file (1st line
6913
# is EXPORTS), use it as is; otherwise, prepend...
6914
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6915
cp $export_symbols $output_objdir/$soname.def;
6917
echo EXPORTS > $output_objdir/$soname.def;
6918
cat $export_symbols >> $output_objdir/$soname.def;
6920
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6927
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6928
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6931
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6932
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6937
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6938
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6941
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6942
*** create shared libraries on Solaris systems. Therefore, libtool
6943
*** is disabling shared libraries support. We urge you to upgrade GNU
6944
*** binutils to release 2.9.1 or newer. Another option is to modify
6945
*** your PATH or compiler configuration so that the native linker is
6946
*** used, and then restart.
6949
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6950
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6951
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6953
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6958
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6960
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6961
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6965
if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6966
tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6967
_LT_AC_TAGVAR(archive_cmds, $1)="$tmp_archive_cmds"
6968
supports_anon_versioning=no
6969
case `$LD -v 2>/dev/null` in
6970
*\ [01].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
6971
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6972
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6973
*\ 2.11.*) ;; # other 2.11 versions
6974
*) supports_anon_versioning=yes ;;
6976
if test $supports_anon_versioning = yes; then
6977
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
6978
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6979
$echo "local: *; };" >> $output_objdir/$libname.ver~
6980
$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6982
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="$tmp_archive_cmds"
6985
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6990
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6991
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6992
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6994
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6999
if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = yes; then
7000
runpath_var=LD_RUN_PATH
7001
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
7002
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
7003
# ancient GNU ld didn't support --whole-archive et. al.
7004
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7005
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7007
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
7011
# PORTME fill in a description of your system's linker (not GNU ld)
7014
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
7015
_LT_AC_TAGVAR(always_export_symbols, $1)=yes
7016
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
7017
# Note: this linker hardcodes the directories in LIBPATH if there
7018
# are no directories specified by -L.
7019
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7020
if test "$GCC" = yes && test -z "$link_static_flag"; then
7021
# Neither direct hardcoding nor static linking is supported with a
7023
_LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
7028
if test "$host_cpu" = ia64; then
7029
# On IA64, the linker does run time linking by default, so we don't
7030
# have to do anything special.
7031
aix_use_runtimelinking=no
7032
exp_sym_flag='-Bexport'
7035
# If we're using GNU nm, then we don't want the "-C" option.
7036
# -C means demangle to AIX nm, but means don't demangle with GNU nm
7037
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7038
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
7040
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
7042
aix_use_runtimelinking=no
7044
# Test if we are trying to use run time linking or normal
7045
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
7046
# need to do runtime linking.
7047
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
7048
for ld_flag in $LDFLAGS; do
7049
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7050
aix_use_runtimelinking=yes
7056
exp_sym_flag='-bexport'
7057
no_entry_flag='-bnoentry'
7060
# When large executables or shared objects are built, AIX ld can
7061
# have problems creating the table of contents. If linking a library
7062
# or program results in "error TOC overflow" add -mminimal-toc to
7063
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7064
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7066
_LT_AC_TAGVAR(archive_cmds, $1)=''
7067
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
7068
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
7069
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
7071
if test "$GCC" = yes; then
7072
case $host_os in aix4.[012]|aix4.[012].*)
7073
# We only want to do this on AIX 4.2 and lower, the check
7074
# below for broken collect2 doesn't work under 4.3+
7075
collect2name=`${CC} -print-prog-name=collect2`
7076
if test -f "$collect2name" && \
7077
strings "$collect2name" | grep resolve_lib_name >/dev/null
7079
# We have reworked collect2
7080
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
7082
# We have old collect2
7083
_LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
7084
# It fails to find uninstalled libraries when the uninstalled
7085
# path is not listed in the libpath. Setting hardcode_minus_L
7086
# to unsupported forces relinking
7087
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7088
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7089
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
7092
shared_flag='-shared'
7095
if test "$host_cpu" = ia64; then
7096
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7097
# chokes on -Wl,-G. The following line is correct:
7100
if test "$aix_use_runtimelinking" = yes; then
7101
shared_flag='${wl}-G'
7103
shared_flag='${wl}-bM:SRE'
7108
# It seems that -bexpall does not export symbols beginning with
7109
# underscore (_), so it is better to generate a list of symbols to export.
7110
_LT_AC_TAGVAR(always_export_symbols, $1)=yes
7111
if test "$aix_use_runtimelinking" = yes; then
7112
# Warning - without using the other runtime loading flags (-brtl),
7113
# -berok will link without error, but may produce a broken library.
7114
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
7115
# Determine the default libpath from the value encoded in an empty executable.
7116
_LT_AC_SYS_LIBPATH_AIX
7117
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
7118
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7120
if test "$host_cpu" = ia64; then
7121
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
7122
_LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
7123
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
7125
# Determine the default libpath from the value encoded in an empty executable.
7126
_LT_AC_SYS_LIBPATH_AIX
7127
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
7128
# Warning - without using the other run time loading flags,
7129
# -berok will link without error, but may produce a broken library.
7130
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
7131
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
7132
# -bexpall does not export symbols beginning with underscore (_)
7133
_LT_AC_TAGVAR(always_export_symbols, $1)=yes
7134
# Exported symbols can be pulled into shared objects from archives
7135
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
7136
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
7137
# This is similar to how AIX traditionally builds it's shared libraries.
7138
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7144
_LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
7145
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7146
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7147
# see comment about different semantics on the GNU ld section
7148
_LT_AC_TAGVAR(ld_shlibs, $1)=no
7152
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
7155
cygwin* | mingw* | pw32*)
7156
# When not using gcc, we currently assume that we are using
7157
# Microsoft Visual C++.
7158
# hardcode_libdir_flag_spec is actually meaningless, as there is
7159
# no search path for DLLs.
7160
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
7161
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
7162
# Tell ltmain to make .lib files, not .a files.
7164
# Tell ltmain to make .dll files, not .so files.
7166
# FIXME: Setting linknames here is a bad hack.
7167
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7168
# The linker will automatically build a .lib file if we build a DLL.
7169
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
7170
# FIXME: Should let the user specify the lib program.
7171
_LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
7172
fix_srcfile_path='`cygpath -w "$srcfile"`'
7173
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
7176
darwin* | rhapsody*)
7177
if test "$GXX" = yes ; then
7178
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
7180
rhapsody* | darwin1.[[012]])
7181
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
7184
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7185
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
7187
case ${MACOSX_DEPLOYMENT_TARGET} in
7189
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
7192
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
7198
lt_int_apple_cc_single_mod=no
7199
output_verbose_link_cmd='echo'
7200
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7201
lt_int_apple_cc_single_mod=yes
7203
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7204
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7206
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7208
_LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7209
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7210
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7211
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7213
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7215
_LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7216
_LT_AC_TAGVAR(hardcode_direct, $1)=no
7217
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes
7218
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
7219
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
7220
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
7222
_LT_AC_TAGVAR(ld_shlibs, $1)=no
7227
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7228
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7229
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7233
_LT_AC_TAGVAR(ld_shlibs, $1)=no
7236
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7237
# support. Future versions do this automatically, but an explicit c++rt0.o
7238
# does not break anything, and helps significantly (at the cost of a little
7241
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7242
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7243
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
7244
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7247
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
7249
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7250
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
7251
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7252
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7255
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7256
freebsd* | kfreebsd*-gnu)
7257
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7258
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7259
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
7260
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7264
if test "$GCC" = yes; then
7265
_LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7267
_LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7269
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
7270
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7271
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
7273
# hardcode_minus_L: Not really in the search PATH,
7274
# but as the default location of the library.
7275
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7276
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7280
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7283
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7286
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7292
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7295
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7299
if test "$with_gnu_ld" = no; then
7302
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
7303
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
7304
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7305
_LT_AC_TAGVAR(hardcode_direct, $1)=no
7306
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7309
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7310
_LT_AC_TAGVAR(hardcode_direct, $1)=no
7311
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7313
# hardcode_minus_L: Not really in the search PATH,
7314
# but as the default location of the library.
7315
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7318
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
7319
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7320
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
7321
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7323
# hardcode_minus_L: Not really in the search PATH,
7324
# but as the default location of the library.
7325
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7331
irix5* | irix6* | nonstopux*)
7332
if test "$GCC" = yes; then
7333
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7335
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7336
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
7338
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7339
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7340
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
7344
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7345
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7347
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7349
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7350
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
7351
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7355
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7356
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
7357
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7358
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7359
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7363
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
7364
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7365
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7366
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7367
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7368
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7371
openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
7372
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7373
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7376
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7377
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7384
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7385
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7386
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
7387
_LT_AC_TAGVAR(archive_cmds, $1)='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
7388
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7392
if test "$GCC" = yes; then
7393
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
7394
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7396
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
7397
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7399
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7400
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7403
osf4* | osf5*) # as osf3* with the addition of -msym flag
7404
if test "$GCC" = yes; then
7405
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
7406
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7407
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7409
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
7410
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7411
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7412
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
7414
# Both c and cxx compiler support -rpath directly
7415
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
7417
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7421
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7422
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7423
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
7424
runpath_var=LD_RUN_PATH
7425
hardcode_runpath_var=yes
7429
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
7430
if test "$GCC" = yes; then
7431
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7432
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7433
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7435
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7436
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7437
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7439
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7440
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7442
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
7443
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
7444
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
7446
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
7450
if test "x$host_vendor" = xsequent; then
7451
# Use $CC to link under sequent, because it throws in some extra .o
7452
# files that make .init and .fini sections work.
7453
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7455
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7457
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7458
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
7459
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7460
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7464
case $host_vendor in
7466
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7467
_LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
7470
## LD is ld it makes a PLAMLIB
7471
## CC just makes a GrossModule.
7472
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7473
_LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
7474
_LT_AC_TAGVAR(hardcode_direct, $1)=no
7477
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7478
_LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
7481
runpath_var='LD_RUN_PATH'
7482
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7486
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7487
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7488
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
7492
if test -d /usr/nec; then
7493
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7494
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7495
runpath_var=LD_RUN_PATH
7496
hardcode_runpath_var=yes
7497
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
7502
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7503
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
7504
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
7505
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7506
hardcode_runpath_var=yes
7507
runpath_var=LD_RUN_PATH
7510
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
7511
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text'
7512
if test "$GCC" = yes; then
7513
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7515
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7517
runpath_var='LD_RUN_PATH'
7518
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7522
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
7523
# $CC -shared without GNU ld will not create a library from C++
7524
# object files and a static libstdc++, better avoid it by now
7525
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7526
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7527
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7528
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
7529
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7530
runpath_var='LD_RUN_PATH'
7534
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7535
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7536
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7540
_LT_AC_TAGVAR(ld_shlibs, $1)=no
7545
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
7546
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
7548
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7549
if test "$GCC" = yes; then
7550
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7554
# Do we need to explicitly link libc?
7556
case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
7558
# Assume -lc should be added
7559
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
7561
if test "$enable_shared" = yes && test "$GCC" = yes; then
7562
case $_LT_AC_TAGVAR(archive_cmds, $1) in
7564
# FIXME: we may have to deal with multi-command sequences.
7567
# Test whether the compiler implicitly links with -lc since on some
7568
# systems, -lgcc has to come before -lc. If gcc already passes -lc
7569
# to ld, don't add -lc before -lgcc.
7570
AC_MSG_CHECKING([whether -lc should be explicitly linked in])
7572
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7574
if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
7577
libobjs=conftest.$ac_objext
7579
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
7585
lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
7586
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
7587
if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
7589
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
7591
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
7593
_LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
7595
cat conftest.err 1>&5
7598
AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
7604
])# AC_LIBTOOL_PROG_LD_SHLIBS
7607
# _LT_AC_FILE_LTDLL_C
7608
# -------------------
7609
# Be careful that the start marker always follows a newline.
7610
AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
7611
# /* ltdll.c starts here */
7612
# #define WIN32_LEAN_AND_MEAN
7613
# #include <windows.h>
7614
# #undef WIN32_LEAN_AND_MEAN
7615
# #include <stdio.h>
7617
# #ifndef __CYGWIN__
7618
# # ifdef __CYGWIN32__
7619
# # define __CYGWIN__ __CYGWIN32__
7623
# #ifdef __cplusplus
7626
# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7627
# #ifdef __cplusplus
7632
# #include <cygwin/cygwin_dll.h>
7633
# DECLARE_CYGWIN_DLL( DllMain );
7635
# HINSTANCE __hDllInstance_base;
7638
# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7640
# __hDllInstance_base = hInst;
7643
# /* ltdll.c ends here */
7644
])# _LT_AC_FILE_LTDLL_C
7647
# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
7648
# ---------------------------------
7649
AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
7653
AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
7654
AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
7655
AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
7656
AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
7657
AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
7658
AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
7659
AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
7661
# This is just to silence aclocal about the macro not being used
7662
ifelse([AC_DISABLE_FAST_INSTALL])
7664
AC_DEFUN([LT_AC_PROG_GCJ],
7665
[AC_CHECK_TOOL(GCJ, gcj, no)
7666
test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
7670
AC_DEFUN([LT_AC_PROG_RC],
7671
[AC_CHECK_TOOL(RC, windres, no)
7674
# NOTE: This macro has been submitted for inclusion into #
7675
# GNU Autoconf as AC_PROG_SED. When it is available in #
7676
# a released version of Autoconf we should remove this #
7677
# macro and use it instead. #
7680
# Check for a fully-functional sed program, that truncates
7681
# as few characters as possible. Prefer GNU sed if found.
7682
AC_DEFUN([LT_AC_PROG_SED],
7683
[AC_MSG_CHECKING([for a sed that does not truncate output])
7684
AC_CACHE_VAL(lt_cv_path_SED,
7685
[# Loop through the user's path and test for sed and gsed.
7686
# Then use that list of sed's as ones to test for truncation.
7687
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7691
test -z "$as_dir" && as_dir=.
7692
for lt_ac_prog in sed gsed; do
7693
for ac_exec_ext in '' $ac_executable_extensions; do
7694
if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
7695
lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
7702
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
7703
# along with /bin/sed that truncates output.
7704
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
7705
test ! -f $lt_ac_sed && break
7706
cat /dev/null > conftest.in
7708
echo $ECHO_N "0123456789$ECHO_C" >conftest.in
7709
# Check for GNU sed and select it if it is found.
7710
if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
7711
lt_cv_path_SED=$lt_ac_sed
7715
cat conftest.in conftest.in >conftest.tmp
7716
mv conftest.tmp conftest.in
7717
cp conftest.in conftest.nl
7719
$lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
7720
cmp -s conftest.out conftest.nl || break
7721
# 10000 chars as input seems more than enough
7722
test $lt_ac_count -gt 10 && break
7723
lt_ac_count=`expr $lt_ac_count + 1`
7724
if test $lt_ac_count -gt $lt_ac_max; then
7725
lt_ac_max=$lt_ac_count
7726
lt_cv_path_SED=$lt_ac_sed
7732
AC_MSG_RESULT([$SED])
826
AM_RUN_LOG([$_am_tar --version]) && break
828
am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
829
am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
830
am__untar="$_am_tar -xf -"
833
# Must skip GNU tar: if it does not support --format= it doesn't create
834
# ustar tarball either.
835
(tar --version) >/dev/null 2>&1 && continue
836
am__tar='tar chf - "$$tardir"'
837
am__tar_='tar chf - "$tardir"'
841
am__tar='pax -L -x $1 -w "$$tardir"'
842
am__tar_='pax -L -x $1 -w "$tardir"'
846
am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
847
am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
848
am__untar='cpio -i -H $1 -d'
857
# If the value was cached, stop now. We just wanted to have am__tar
859
test -n "${am_cv_prog_tar_$1}" && break
861
# tar/untar a dummy directory, and stop if the command works
864
echo GrepMe > conftest.dir/file
865
AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
867
if test -s conftest.tar; then
868
AM_RUN_LOG([$am__untar <conftest.tar])
869
grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
874
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
875
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
877
AC_SUBST([am__untar])
880
m4_include([acinclude.m4])