Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 63695 Details for
Bug 99428
new ebuild darimasen
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
files/darimasen-0.0.8-configure.patch
darimasen-0.0.8-configure.patch (text/plain), 697.67 KB, created by
Pau Rodriguez
on 2005-07-18 06:24:48 UTC
(
hide
)
Description:
files/darimasen-0.0.8-configure.patch
Filename:
MIME Type:
Creator:
Pau Rodriguez
Created:
2005-07-18 06:24:48 UTC
Size:
697.67 KB
patch
obsolete
>diff -aNu darimasen-0.0.8/Makefile.in darimasen-0.0.8-new/Makefile.in >--- darimasen-0.0.8/Makefile.in 2005-05-19 02:10:24.000000000 +0200 >+++ darimasen-0.0.8-new/Makefile.in 2005-07-18 13:31:26.000000000 +0200 >@@ -1,4 +1,4 @@ >-# Makefile.in generated by automake 1.7.6 from Makefile.am. >+# Makefile.in generated by automake 1.7.9 from Makefile.am. > # @configure_input@ > > # Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003 >@@ -85,6 +85,7 @@ > PACKAGE_VERSION = @PACKAGE_VERSION@ > PATH_SEPARATOR = @PATH_SEPARATOR@ > PKG_CFLAGS = @PKG_CFLAGS@ >+PKG_CONFIG = @PKG_CONFIG@ > PKG_LIBS = @PKG_LIBS@ > RANLIB = @RANLIB@ > SET_MAKE = @SET_MAKE@ >@@ -156,10 +157,10 @@ > all-recursive install-data-recursive install-exec-recursive \ > installdirs-recursive install-recursive uninstall-recursive \ > check-recursive installcheck-recursive >-DIST_COMMON = README AUTHORS COPYING ChangeLog INSTALL Makefile.am \ >- Makefile.in NEWS TODO aclocal.m4 config.guess config.h.in \ >- config.sub configure configure.in depcomp install-sh ltmain.sh \ >- missing mkinstalldirs >+DIST_COMMON = README $(srcdir)/Makefile.in $(srcdir)/configure AUTHORS \ >+ COPYING ChangeLog INSTALL Makefile.am NEWS TODO aclocal.m4 \ >+ config.guess config.h.in config.sub configure configure.in \ >+ depcomp install-sh ltmain.sh missing mkinstalldirs > DIST_SUBDIRS = $(SUBDIRS) > all: config.h > $(MAKE) $(AM_MAKEFLAGS) all-recursive >@@ -493,7 +494,7 @@ > installcheck: installcheck-recursive > install-strip: > $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ >- INSTALL_STRIP_FLAG=-s \ >+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ > `test -z '$(STRIP)' || \ > echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install > mostlyclean-generic: >@@ -501,7 +502,7 @@ > clean-generic: > > distclean-generic: >- -rm -f Makefile $(CONFIG_CLEAN_FILES) >+ -rm -f $(CONFIG_CLEAN_FILES) > > maintainer-clean-generic: > @echo "This command is intended for maintainers to use" >@@ -512,6 +513,7 @@ > > distclean: distclean-recursive > -rm -f $(am__CONFIG_DISTCLEAN_FILES) >+ -rm -f Makefile > distclean-am: clean-am distclean-generic distclean-hdr distclean-libtool \ > distclean-tags > >@@ -536,6 +538,7 @@ > maintainer-clean: maintainer-clean-recursive > -rm -f $(am__CONFIG_DISTCLEAN_FILES) > -rm -rf $(top_srcdir)/autom4te.cache >+ -rm -f Makefile > maintainer-clean-am: distclean-am maintainer-clean-generic > > mostlyclean: mostlyclean-recursive >diff -aNu darimasen-0.0.8/aclocal.m4 darimasen-0.0.8-new/aclocal.m4 >--- darimasen-0.0.8/aclocal.m4 1970-01-01 01:00:00.000000000 +0100 >+++ darimasen-0.0.8-new/aclocal.m4 2005-07-18 13:31:01.000000000 +0200 >@@ -0,0 +1,7308 @@ >+# generated automatically by aclocal 1.7.9 -*- Autoconf -*- >+ >+# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002 >+# Free Software Foundation, Inc. >+# This file is free software; the Free Software Foundation >+# gives unlimited permission to copy and/or distribute it, >+# with or without modifications, as long as this notice is preserved. >+ >+# This program is distributed in the hope that it will be useful, >+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without >+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A >+# PARTICULAR PURPOSE. >+ >+# Do all the work for Automake. -*- Autoconf -*- >+ >+# This macro actually does too much some checks are only needed if >+# your package does certain things. But this isn't really a big deal. >+ >+# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003 >+# Free Software Foundation, Inc. >+ >+# This program is free software; you can redistribute it and/or modify >+# it under the terms of the GNU General Public License as published by >+# the Free Software Foundation; either version 2, or (at your option) >+# any later version. >+ >+# This program is distributed in the hope that it will be useful, >+# but WITHOUT ANY WARRANTY; without even the implied warranty of >+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the >+# GNU General Public License for more details. >+ >+# You should have received a copy of the GNU General Public License >+# along with this program; if not, write to the Free Software >+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA >+# 02111-1307, USA. >+ >+# serial 10 >+ >+AC_PREREQ([2.54]) >+ >+# Autoconf 2.50 wants to disallow AM_ names. We explicitly allow >+# the ones we care about. >+m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl >+ >+# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) >+# AM_INIT_AUTOMAKE([OPTIONS]) >+# ----------------------------------------------- >+# The call with PACKAGE and VERSION arguments is the old style >+# call (pre autoconf-2.50), which is being phased out. PACKAGE >+# and VERSION should now be passed to AC_INIT and removed from >+# the call to AM_INIT_AUTOMAKE. >+# We support both call styles for the transition. After >+# the next Automake release, Autoconf can make the AC_INIT >+# arguments mandatory, and then we can depend on a new Autoconf >+# release and drop the old call support. >+AC_DEFUN([AM_INIT_AUTOMAKE], >+[AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl >+ AC_REQUIRE([AC_PROG_INSTALL])dnl >+# test to see if srcdir already configured >+if test "`cd $srcdir && pwd`" != "`pwd`" && >+ test -f $srcdir/config.status; then >+ AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) >+fi >+ >+# test whether we have cygpath >+if test -z "$CYGPATH_W"; then >+ if (cygpath --version) >/dev/null 2>/dev/null; then >+ CYGPATH_W='cygpath -w' >+ else >+ CYGPATH_W=echo >+ fi >+fi >+AC_SUBST([CYGPATH_W]) >+ >+# Define the identity of the package. >+dnl Distinguish between old-style and new-style calls. >+m4_ifval([$2], >+[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl >+ AC_SUBST([PACKAGE], [$1])dnl >+ AC_SUBST([VERSION], [$2])], >+[_AM_SET_OPTIONS([$1])dnl >+ AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl >+ AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl >+ >+_AM_IF_OPTION([no-define],, >+[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) >+ AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl >+ >+# Some tools Automake needs. >+AC_REQUIRE([AM_SANITY_CHECK])dnl >+AC_REQUIRE([AC_ARG_PROGRAM])dnl >+AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) >+AM_MISSING_PROG(AUTOCONF, autoconf) >+AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) >+AM_MISSING_PROG(AUTOHEADER, autoheader) >+AM_MISSING_PROG(MAKEINFO, makeinfo) >+AM_MISSING_PROG(AMTAR, tar) >+AM_PROG_INSTALL_SH >+AM_PROG_INSTALL_STRIP >+# We need awk for the "check" target. The system "awk" is bad on >+# some platforms. >+AC_REQUIRE([AC_PROG_AWK])dnl >+AC_REQUIRE([AC_PROG_MAKE_SET])dnl >+AC_REQUIRE([AM_SET_LEADING_DOT])dnl >+ >+_AM_IF_OPTION([no-dependencies],, >+[AC_PROVIDE_IFELSE([AC_PROG_CC], >+ [_AM_DEPENDENCIES(CC)], >+ [define([AC_PROG_CC], >+ defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl >+AC_PROVIDE_IFELSE([AC_PROG_CXX], >+ [_AM_DEPENDENCIES(CXX)], >+ [define([AC_PROG_CXX], >+ defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl >+]) >+]) >+ >+ >+# When config.status generates a header, we must update the stamp-h file. >+# This file resides in the same directory as the config header >+# that is generated. The stamp files are numbered to have different names. >+ >+# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the >+# loop where config.status creates the headers, so we can generate >+# our stamp files there. >+AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], >+[# Compute $1's index in $config_headers. >+_am_stamp_count=1 >+for _am_header in $config_headers :; do >+ case $_am_header in >+ $1 | $1:* ) >+ break ;; >+ * ) >+ _am_stamp_count=`expr $_am_stamp_count + 1` ;; >+ esac >+done >+echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count]) >+ >+# Copyright 2002 Free Software Foundation, Inc. >+ >+# This program is free software; you can redistribute it and/or modify >+# it under the terms of the GNU General Public License as published by >+# the Free Software Foundation; either version 2, or (at your option) >+# any later version. >+ >+# This program is distributed in the hope that it will be useful, >+# but WITHOUT ANY WARRANTY; without even the implied warranty of >+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the >+# GNU General Public License for more details. >+ >+# You should have received a copy of the GNU General Public License >+# along with this program; if not, write to the Free Software >+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA >+ >+# AM_AUTOMAKE_VERSION(VERSION) >+# ---------------------------- >+# Automake X.Y traces this macro to ensure aclocal.m4 has been >+# generated from the m4 files accompanying Automake X.Y. >+AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.7"]) >+ >+# AM_SET_CURRENT_AUTOMAKE_VERSION >+# ------------------------------- >+# Call AM_AUTOMAKE_VERSION so it can be traced. >+# This function is AC_REQUIREd by AC_INIT_AUTOMAKE. >+AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], >+ [AM_AUTOMAKE_VERSION([1.7.9])]) >+ >+# Helper functions for option handling. -*- Autoconf -*- >+ >+# Copyright 2001, 2002 Free Software Foundation, Inc. >+ >+# This program is free software; you can redistribute it and/or modify >+# it under the terms of the GNU General Public License as published by >+# the Free Software Foundation; either version 2, or (at your option) >+# any later version. >+ >+# This program is distributed in the hope that it will be useful, >+# but WITHOUT ANY WARRANTY; without even the implied warranty of >+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the >+# GNU General Public License for more details. >+ >+# You should have received a copy of the GNU General Public License >+# along with this program; if not, write to the Free Software >+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA >+# 02111-1307, USA. >+ >+# serial 2 >+ >+# _AM_MANGLE_OPTION(NAME) >+# ----------------------- >+AC_DEFUN([_AM_MANGLE_OPTION], >+[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) >+ >+# _AM_SET_OPTION(NAME) >+# ------------------------------ >+# Set option NAME. Presently that only means defining a flag for this option. >+AC_DEFUN([_AM_SET_OPTION], >+[m4_define(_AM_MANGLE_OPTION([$1]), 1)]) >+ >+# _AM_SET_OPTIONS(OPTIONS) >+# ---------------------------------- >+# OPTIONS is a space-separated list of Automake options. >+AC_DEFUN([_AM_SET_OPTIONS], >+[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) >+ >+# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) >+# ------------------------------------------- >+# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. >+AC_DEFUN([_AM_IF_OPTION], >+[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) >+ >+# >+# Check to make sure that the build environment is sane. >+# >+ >+# Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc. >+ >+# This program is free software; you can redistribute it and/or modify >+# it under the terms of the GNU General Public License as published by >+# the Free Software Foundation; either version 2, or (at your option) >+# any later version. >+ >+# This program is distributed in the hope that it will be useful, >+# but WITHOUT ANY WARRANTY; without even the implied warranty of >+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the >+# GNU General Public License for more details. >+ >+# You should have received a copy of the GNU General Public License >+# along with this program; if not, write to the Free Software >+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA >+# 02111-1307, USA. >+ >+# serial 3 >+ >+# AM_SANITY_CHECK >+# --------------- >+AC_DEFUN([AM_SANITY_CHECK], >+[AC_MSG_CHECKING([whether build environment is sane]) >+# Just in case >+sleep 1 >+echo timestamp > conftest.file >+# Do `set' in a subshell so we don't clobber the current shell's >+# arguments. Must try -L first in case configure is actually a >+# symlink; some systems play weird games with the mod time of symlinks >+# (eg FreeBSD returns the mod time of the symlink's containing >+# directory). >+if ( >+ set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` >+ if test "$[*]" = "X"; then >+ # -L didn't work. >+ set X `ls -t $srcdir/configure conftest.file` >+ fi >+ rm -f conftest.file >+ if test "$[*]" != "X $srcdir/configure conftest.file" \ >+ && test "$[*]" != "X conftest.file $srcdir/configure"; then >+ >+ # If neither matched, then we have a broken ls. This can happen >+ # if, for instance, CONFIG_SHELL is bash and it inherits a >+ # broken ls alias from the environment. This has actually >+ # happened. Such a system could not be considered "sane". >+ AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken >+alias in your environment]) >+ fi >+ >+ test "$[2]" = conftest.file >+ ) >+then >+ # Ok. >+ : >+else >+ AC_MSG_ERROR([newly created file is older than distributed files! >+Check your system clock]) >+fi >+AC_MSG_RESULT(yes)]) >+ >+# -*- Autoconf -*- >+ >+ >+# Copyright 1997, 1999, 2000, 2001 Free Software Foundation, Inc. >+ >+# This program is free software; you can redistribute it and/or modify >+# it under the terms of the GNU General Public License as published by >+# the Free Software Foundation; either version 2, or (at your option) >+# any later version. >+ >+# This program is distributed in the hope that it will be useful, >+# but WITHOUT ANY WARRANTY; without even the implied warranty of >+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the >+# GNU General Public License for more details. >+ >+# You should have received a copy of the GNU General Public License >+# along with this program; if not, write to the Free Software >+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA >+# 02111-1307, USA. >+ >+# serial 3 >+ >+# AM_MISSING_PROG(NAME, PROGRAM) >+# ------------------------------ >+AC_DEFUN([AM_MISSING_PROG], >+[AC_REQUIRE([AM_MISSING_HAS_RUN]) >+$1=${$1-"${am_missing_run}$2"} >+AC_SUBST($1)]) >+ >+ >+# AM_MISSING_HAS_RUN >+# ------------------ >+# Define MISSING if not defined so far and test if it supports --run. >+# If it does, set am_missing_run to use it, otherwise, to nothing. >+AC_DEFUN([AM_MISSING_HAS_RUN], >+[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl >+test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" >+# Use eval to expand $SHELL >+if eval "$MISSING --run true"; then >+ am_missing_run="$MISSING --run " >+else >+ am_missing_run= >+ AC_MSG_WARN([`missing' script is too old or missing]) >+fi >+]) >+ >+# AM_AUX_DIR_EXPAND >+ >+# Copyright 2001 Free Software Foundation, Inc. >+ >+# This program is free software; you can redistribute it and/or modify >+# it under the terms of the GNU General Public License as published by >+# the Free Software Foundation; either version 2, or (at your option) >+# any later version. >+ >+# This program is distributed in the hope that it will be useful, >+# but WITHOUT ANY WARRANTY; without even the implied warranty of >+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the >+# GNU General Public License for more details. >+ >+# You should have received a copy of the GNU General Public License >+# along with this program; if not, write to the Free Software >+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA >+# 02111-1307, USA. >+ >+# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets >+# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to >+# `$srcdir', `$srcdir/..', or `$srcdir/../..'. >+# >+# Of course, Automake must honor this variable whenever it calls a >+# tool from the auxiliary directory. The problem is that $srcdir (and >+# therefore $ac_aux_dir as well) can be either absolute or relative, >+# depending on how configure is run. This is pretty annoying, since >+# it makes $ac_aux_dir quite unusable in subdirectories: in the top >+# source directory, any form will work fine, but in subdirectories a >+# relative path needs to be adjusted first. >+# >+# $ac_aux_dir/missing >+# fails when called from a subdirectory if $ac_aux_dir is relative >+# $top_srcdir/$ac_aux_dir/missing >+# fails if $ac_aux_dir is absolute, >+# fails when called from a subdirectory in a VPATH build with >+# a relative $ac_aux_dir >+# >+# The reason of the latter failure is that $top_srcdir and $ac_aux_dir >+# are both prefixed by $srcdir. In an in-source build this is usually >+# harmless because $srcdir is `.', but things will broke when you >+# start a VPATH build or use an absolute $srcdir. >+# >+# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, >+# iff we strip the leading $srcdir from $ac_aux_dir. That would be: >+# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` >+# and then we would define $MISSING as >+# MISSING="\${SHELL} $am_aux_dir/missing" >+# This will work as long as MISSING is not called from configure, because >+# unfortunately $(top_srcdir) has no meaning in configure. >+# However there are other variables, like CC, which are often used in >+# configure, and could therefore not use this "fixed" $ac_aux_dir. >+# >+# Another solution, used here, is to always expand $ac_aux_dir to an >+# absolute PATH. The drawback is that using absolute paths prevent a >+# configured tree to be moved without reconfiguration. >+ >+# Rely on autoconf to set up CDPATH properly. >+AC_PREREQ([2.50]) >+ >+AC_DEFUN([AM_AUX_DIR_EXPAND], [ >+# expand $ac_aux_dir to an absolute path >+am_aux_dir=`cd $ac_aux_dir && pwd` >+]) >+ >+# AM_PROG_INSTALL_SH >+# ------------------ >+# Define $install_sh. >+ >+# Copyright 2001 Free Software Foundation, Inc. >+ >+# This program is free software; you can redistribute it and/or modify >+# it under the terms of the GNU General Public License as published by >+# the Free Software Foundation; either version 2, or (at your option) >+# any later version. >+ >+# This program is distributed in the hope that it will be useful, >+# but WITHOUT ANY WARRANTY; without even the implied warranty of >+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the >+# GNU General Public License for more details. >+ >+# You should have received a copy of the GNU General Public License >+# along with this program; if not, write to the Free Software >+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA >+# 02111-1307, USA. >+ >+AC_DEFUN([AM_PROG_INSTALL_SH], >+[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl >+install_sh=${install_sh-"$am_aux_dir/install-sh"} >+AC_SUBST(install_sh)]) >+ >+# AM_PROG_INSTALL_STRIP >+ >+# Copyright 2001 Free Software Foundation, Inc. >+ >+# This program is free software; you can redistribute it and/or modify >+# it under the terms of the GNU General Public License as published by >+# the Free Software Foundation; either version 2, or (at your option) >+# any later version. >+ >+# This program is distributed in the hope that it will be useful, >+# but WITHOUT ANY WARRANTY; without even the implied warranty of >+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the >+# GNU General Public License for more details. >+ >+# You should have received a copy of the GNU General Public License >+# along with this program; if not, write to the Free Software >+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA >+# 02111-1307, USA. >+ >+# One issue with vendor `install' (even GNU) is that you can't >+# specify the program used to strip binaries. This is especially >+# annoying in cross-compiling environments, where the build's strip >+# is unlikely to handle the host's binaries. >+# Fortunately install-sh will honor a STRIPPROG variable, so we >+# always use install-sh in `make install-strip', and initialize >+# STRIPPROG with the value of the STRIP variable (set by the user). >+AC_DEFUN([AM_PROG_INSTALL_STRIP], >+[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl >+# Installed binaries are usually stripped using `strip' when the user >+# run `make install-strip'. However `strip' might not be the right >+# tool to use in cross-compilation environments, therefore Automake >+# will honor the `STRIP' environment variable to overrule this program. >+dnl Don't test for $cross_compiling = yes, because it might be `maybe'. >+if test "$cross_compiling" != no; then >+ AC_CHECK_TOOL([STRIP], [strip], :) >+fi >+INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" >+AC_SUBST([INSTALL_STRIP_PROGRAM])]) >+ >+# -*- Autoconf -*- >+# Copyright (C) 2003 Free Software Foundation, Inc. >+ >+# This program is free software; you can redistribute it and/or modify >+# it under the terms of the GNU General Public License as published by >+# the Free Software Foundation; either version 2, or (at your option) >+# any later version. >+ >+# This program is distributed in the hope that it will be useful, >+# but WITHOUT ANY WARRANTY; without even the implied warranty of >+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the >+# GNU General Public License for more details. >+ >+# You should have received a copy of the GNU General Public License >+# along with this program; if not, write to the Free Software >+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA >+# 02111-1307, USA. >+ >+# serial 1 >+ >+# Check whether the underlying file-system supports filenames >+# with a leading dot. For instance MS-DOS doesn't. >+AC_DEFUN([AM_SET_LEADING_DOT], >+[rm -rf .tst 2>/dev/null >+mkdir .tst 2>/dev/null >+if test -d .tst; then >+ am__leading_dot=. >+else >+ am__leading_dot=_ >+fi >+rmdir .tst 2>/dev/null >+AC_SUBST([am__leading_dot])]) >+ >+# serial 5 -*- Autoconf -*- >+ >+# Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc. >+ >+# This program is free software; you can redistribute it and/or modify >+# it under the terms of the GNU General Public License as published by >+# the Free Software Foundation; either version 2, or (at your option) >+# any later version. >+ >+# This program is distributed in the hope that it will be useful, >+# but WITHOUT ANY WARRANTY; without even the implied warranty of >+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the >+# GNU General Public License for more details. >+ >+# You should have received a copy of the GNU General Public License >+# along with this program; if not, write to the Free Software >+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA >+# 02111-1307, USA. >+ >+ >+# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be >+# written in clear, in which case automake, when reading aclocal.m4, >+# will think it sees a *use*, and therefore will trigger all it's >+# C support machinery. Also note that it means that autoscan, seeing >+# CC etc. in the Makefile, will ask for an AC_PROG_CC use... >+ >+ >+ >+# _AM_DEPENDENCIES(NAME) >+# ---------------------- >+# See how the compiler implements dependency checking. >+# NAME is "CC", "CXX", "GCJ", or "OBJC". >+# We try a few techniques and use that to set a single cache variable. >+# >+# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was >+# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular >+# dependency, and given that the user is not expected to run this macro, >+# just rely on AC_PROG_CC. >+AC_DEFUN([_AM_DEPENDENCIES], >+[AC_REQUIRE([AM_SET_DEPDIR])dnl >+AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl >+AC_REQUIRE([AM_MAKE_INCLUDE])dnl >+AC_REQUIRE([AM_DEP_TRACK])dnl >+ >+ifelse([$1], CC, [depcc="$CC" am_compiler_list=], >+ [$1], CXX, [depcc="$CXX" am_compiler_list=], >+ [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], >+ [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], >+ [depcc="$$1" am_compiler_list=]) >+ >+AC_CACHE_CHECK([dependency style of $depcc], >+ [am_cv_$1_dependencies_compiler_type], >+[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then >+ # We make a subdir and do the tests there. Otherwise we can end up >+ # making bogus files that we don't know about and never remove. For >+ # instance it was reported that on HP-UX the gcc test will end up >+ # making a dummy file named `D' -- because `-MD' means `put the output >+ # in D'. >+ mkdir conftest.dir >+ # Copy depcomp to subdir because otherwise we won't find it if we're >+ # using a relative directory. >+ cp "$am_depcomp" conftest.dir >+ cd conftest.dir >+ # We will build objects and dependencies in a subdirectory because >+ # it helps to detect inapplicable dependency modes. For instance >+ # both Tru64's cc and ICC support -MD to output dependencies as a >+ # side effect of compilation, but ICC will put the dependencies in >+ # the current directory while Tru64 will put them in the object >+ # directory. >+ mkdir sub >+ >+ am_cv_$1_dependencies_compiler_type=none >+ if test "$am_compiler_list" = ""; then >+ am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` >+ fi >+ for depmode in $am_compiler_list; do >+ # Setup a source with many dependencies, because some compilers >+ # like to wrap large dependency lists on column 80 (with \), and >+ # we should not choose a depcomp mode which is confused by this. >+ # >+ # We need to recreate these files for each test, as the compiler may >+ # overwrite some of them when testing with obscure command lines. >+ # This happens at least with the AIX C compiler. >+ : > sub/conftest.c >+ for i in 1 2 3 4 5 6; do >+ echo '#include "conftst'$i'.h"' >> sub/conftest.c >+ : > sub/conftst$i.h >+ done >+ echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf >+ >+ case $depmode in >+ nosideeffect) >+ # after this tag, mechanisms are not by side-effect, so they'll >+ # only be used when explicitly requested >+ if test "x$enable_dependency_tracking" = xyes; then >+ continue >+ else >+ break >+ fi >+ ;; >+ none) break ;; >+ esac >+ # We check with `-c' and `-o' for the sake of the "dashmstdout" >+ # mode. It turns out that the SunPro C++ compiler does not properly >+ # handle `-M -o', and we need to detect this. >+ if depmode=$depmode \ >+ source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ >+ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ >+ $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ >+ >/dev/null 2>conftest.err && >+ grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && >+ grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && >+ ${MAKE-make} -s -f confmf > /dev/null 2>&1; then >+ # icc doesn't choke on unknown options, it will just issue warnings >+ # (even with -Werror). So we grep stderr for any message >+ # that says an option was ignored. >+ if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else >+ am_cv_$1_dependencies_compiler_type=$depmode >+ break >+ fi >+ fi >+ done >+ >+ cd .. >+ rm -rf conftest.dir >+else >+ am_cv_$1_dependencies_compiler_type=none >+fi >+]) >+AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) >+AM_CONDITIONAL([am__fastdep$1], [ >+ test "x$enable_dependency_tracking" != xno \ >+ && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) >+]) >+ >+ >+# AM_SET_DEPDIR >+# ------------- >+# Choose a directory name for dependency files. >+# This macro is AC_REQUIREd in _AM_DEPENDENCIES >+AC_DEFUN([AM_SET_DEPDIR], >+[AC_REQUIRE([AM_SET_LEADING_DOT])dnl >+AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl >+]) >+ >+ >+# AM_DEP_TRACK >+# ------------ >+AC_DEFUN([AM_DEP_TRACK], >+[AC_ARG_ENABLE(dependency-tracking, >+[ --disable-dependency-tracking Speeds up one-time builds >+ --enable-dependency-tracking Do not reject slow dependency extractors]) >+if test "x$enable_dependency_tracking" != xno; then >+ am_depcomp="$ac_aux_dir/depcomp" >+ AMDEPBACKSLASH='\' >+fi >+AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) >+AC_SUBST([AMDEPBACKSLASH]) >+]) >+ >+# Generate code to set up dependency tracking. -*- Autoconf -*- >+ >+# Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc. >+ >+# This program is free software; you can redistribute it and/or modify >+# it under the terms of the GNU General Public License as published by >+# the Free Software Foundation; either version 2, or (at your option) >+# any later version. >+ >+# This program is distributed in the hope that it will be useful, >+# but WITHOUT ANY WARRANTY; without even the implied warranty of >+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the >+# GNU General Public License for more details. >+ >+# You should have received a copy of the GNU General Public License >+# along with this program; if not, write to the Free Software >+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA >+# 02111-1307, USA. >+ >+#serial 2 >+ >+# _AM_OUTPUT_DEPENDENCY_COMMANDS >+# ------------------------------ >+AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], >+[for mf in $CONFIG_FILES; do >+ # Strip MF so we end up with the name of the file. >+ mf=`echo "$mf" | sed -e 's/:.*$//'` >+ # Check whether this is an Automake generated Makefile or not. >+ # We used to match only the files named `Makefile.in', but >+ # some people rename them; so instead we look at the file content. >+ # Grep'ing the first line is not enough: some people post-process >+ # each Makefile.in and add a new line on top of each file to say so. >+ # So let's grep whole file. >+ if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then >+ dirpart=`AS_DIRNAME("$mf")` >+ else >+ continue >+ fi >+ grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue >+ # Extract the definition of DEP_FILES from the Makefile without >+ # running `make'. >+ DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` >+ test -z "$DEPDIR" && continue >+ # When using ansi2knr, U may be empty or an underscore; expand it >+ U=`sed -n -e '/^U = / s///p' < "$mf"` >+ test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" >+ # We invoke sed twice because it is the simplest approach to >+ # changing $(DEPDIR) to its actual value in the expansion. >+ for file in `sed -n -e ' >+ /^DEP_FILES = .*\\\\$/ { >+ s/^DEP_FILES = // >+ :loop >+ s/\\\\$// >+ p >+ n >+ /\\\\$/ b loop >+ p >+ } >+ /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ >+ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do >+ # Make sure the directory exists. >+ test -f "$dirpart/$file" && continue >+ fdir=`AS_DIRNAME(["$file"])` >+ AS_MKDIR_P([$dirpart/$fdir]) >+ # echo "creating $dirpart/$file" >+ echo '# dummy' > "$dirpart/$file" >+ done >+done >+])# _AM_OUTPUT_DEPENDENCY_COMMANDS >+ >+ >+# AM_OUTPUT_DEPENDENCY_COMMANDS >+# ----------------------------- >+# This macro should only be invoked once -- use via AC_REQUIRE. >+# >+# This code is only required when automatic dependency tracking >+# is enabled. FIXME. This creates each `.P' file that we will >+# need in order to bootstrap the dependency handling code. >+AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], >+[AC_CONFIG_COMMANDS([depfiles], >+ [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], >+ [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) >+]) >+ >+# Check to see how 'make' treats includes. -*- Autoconf -*- >+ >+# Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc. >+ >+# This program is free software; you can redistribute it and/or modify >+# it under the terms of the GNU General Public License as published by >+# the Free Software Foundation; either version 2, or (at your option) >+# any later version. >+ >+# This program is distributed in the hope that it will be useful, >+# but WITHOUT ANY WARRANTY; without even the implied warranty of >+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the >+# GNU General Public License for more details. >+ >+# You should have received a copy of the GNU General Public License >+# along with this program; if not, write to the Free Software >+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA >+# 02111-1307, USA. >+ >+# serial 2 >+ >+# AM_MAKE_INCLUDE() >+# ----------------- >+# Check to see how make treats includes. >+AC_DEFUN([AM_MAKE_INCLUDE], >+[am_make=${MAKE-make} >+cat > confinc << 'END' >+am__doit: >+ @echo done >+.PHONY: am__doit >+END >+# If we don't find an include directive, just comment out the code. >+AC_MSG_CHECKING([for style of include used by $am_make]) >+am__include="#" >+am__quote= >+_am_result=none >+# First try GNU make style include. >+echo "include confinc" > confmf >+# We grep out `Entering directory' and `Leaving directory' >+# messages which can occur if `w' ends up in MAKEFLAGS. >+# In particular we don't look at `^make:' because GNU make might >+# be invoked under some other name (usually "gmake"), in which >+# case it prints its new name instead of `make'. >+if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then >+ am__include=include >+ am__quote= >+ _am_result=GNU >+fi >+# Now try BSD make style include. >+if test "$am__include" = "#"; then >+ echo '.include "confinc"' > confmf >+ if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then >+ am__include=.include >+ am__quote="\"" >+ _am_result=BSD >+ fi >+fi >+AC_SUBST([am__include]) >+AC_SUBST([am__quote]) >+AC_MSG_RESULT([$_am_result]) >+rm -f confinc confmf >+]) >+ >+# AM_CONDITIONAL -*- Autoconf -*- >+ >+# Copyright 1997, 2000, 2001 Free Software Foundation, Inc. >+ >+# This program is free software; you can redistribute it and/or modify >+# it under the terms of the GNU General Public License as published by >+# the Free Software Foundation; either version 2, or (at your option) >+# any later version. >+ >+# This program is distributed in the hope that it will be useful, >+# but WITHOUT ANY WARRANTY; without even the implied warranty of >+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the >+# GNU General Public License for more details. >+ >+# You should have received a copy of the GNU General Public License >+# along with this program; if not, write to the Free Software >+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA >+# 02111-1307, USA. >+ >+# serial 5 >+ >+AC_PREREQ(2.52) >+ >+# AM_CONDITIONAL(NAME, SHELL-CONDITION) >+# ------------------------------------- >+# Define a conditional. >+AC_DEFUN([AM_CONDITIONAL], >+[ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], >+ [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl >+AC_SUBST([$1_TRUE]) >+AC_SUBST([$1_FALSE]) >+if $2; then >+ $1_TRUE= >+ $1_FALSE='#' >+else >+ $1_TRUE='#' >+ $1_FALSE= >+fi >+AC_CONFIG_COMMANDS_PRE( >+[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then >+ AC_MSG_ERROR([conditional "$1" was never defined. >+Usually this means the macro was only invoked conditionally.]) >+fi])]) >+ >+# Like AC_CONFIG_HEADER, but automatically create stamp file. -*- Autoconf -*- >+ >+# Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc. >+ >+# This program is free software; you can redistribute it and/or modify >+# it under the terms of the GNU General Public License as published by >+# the Free Software Foundation; either version 2, or (at your option) >+# any later version. >+ >+# This program is distributed in the hope that it will be useful, >+# but WITHOUT ANY WARRANTY; without even the implied warranty of >+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the >+# GNU General Public License for more details. >+ >+# You should have received a copy of the GNU General Public License >+# along with this program; if not, write to the Free Software >+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA >+# 02111-1307, USA. >+ >+AC_PREREQ([2.52]) >+ >+# serial 6 >+ >+# AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS. >+AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)]) >+ >+# isc-posix.m4 serial 2 (gettext-0.11.2) >+dnl Copyright (C) 1995-2002 Free Software Foundation, Inc. >+dnl This file is free software; the Free Software Foundation >+dnl gives unlimited permission to copy and/or distribute it, >+dnl with or without modifications, as long as this notice is preserved. >+ >+# This file is not needed with autoconf-2.53 and newer. Remove it in 2005. >+ >+# This test replaces the one in autoconf. >+# Currently this macro should have the same name as the autoconf macro >+# because gettext's gettext.m4 (distributed in the automake package) >+# still uses it. Otherwise, the use in gettext.m4 makes autoheader >+# give these diagnostics: >+# configure.in:556: AC_TRY_COMPILE was called before AC_ISC_POSIX >+# configure.in:556: AC_TRY_RUN was called before AC_ISC_POSIX >+ >+undefine([AC_ISC_POSIX]) >+ >+AC_DEFUN([AC_ISC_POSIX], >+ [ >+ dnl This test replaces the obsolescent AC_ISC_POSIX kludge. >+ AC_CHECK_LIB(cposix, strerror, [LIBS="$LIBS -lcposix"]) >+ ] >+) >+ >+ >+# Copyright 1996, 1997, 1999, 2000, 2001, 2002 Free Software Foundation, Inc. >+ >+# This program is free software; you can redistribute it and/or modify >+# it under the terms of the GNU General Public License as published by >+# the Free Software Foundation; either version 2, or (at your option) >+# any later version. >+ >+# This program is distributed in the hope that it will be useful, >+# but WITHOUT ANY WARRANTY; without even the implied warranty of >+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the >+# GNU General Public License for more details. >+ >+# You should have received a copy of the GNU General Public License >+# along with this program; if not, write to the Free Software >+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA >+# 02111-1307, USA. >+ >+# serial 2 >+ >+# @defmac AC_PROG_CC_STDC >+# @maindex PROG_CC_STDC >+# @ovindex CC >+# If the C compiler in not in ANSI C mode by default, try to add an option >+# to output variable @code{CC} to make it so. This macro tries various >+# options that select ANSI C on some system or another. It considers the >+# compiler to be in ANSI C mode if it handles function prototypes correctly. >+# >+# If you use this macro, you should check after calling it whether the C >+# compiler has been set to accept ANSI C; if not, the shell variable >+# @code{am_cv_prog_cc_stdc} is set to @samp{no}. If you wrote your source >+# code in ANSI C, you can make an un-ANSIfied copy of it by using the >+# program @code{ansi2knr}, which comes with Ghostscript. >+# @end defmac >+ >+AC_DEFUN([AM_PROG_CC_STDC], >+[AC_REQUIRE([AC_PROG_CC]) >+AC_BEFORE([$0], [AC_C_INLINE]) >+AC_BEFORE([$0], [AC_C_CONST]) >+dnl Force this before AC_PROG_CPP. Some cpp's, eg on HPUX, require >+dnl a magic option to avoid problems with ANSI preprocessor commands >+dnl like #elif. >+dnl FIXME: can't do this because then AC_AIX won't work due to a >+dnl circular dependency. >+dnl AC_BEFORE([$0], [AC_PROG_CPP]) >+AC_MSG_CHECKING([for ${CC-cc} option to accept ANSI C]) >+AC_CACHE_VAL(am_cv_prog_cc_stdc, >+[am_cv_prog_cc_stdc=no >+ac_save_CC="$CC" >+# Don't try gcc -ansi; that turns off useful extensions and >+# breaks some systems' header files. >+# AIX -qlanglvl=ansi >+# Ultrix and OSF/1 -std1 >+# HP-UX 10.20 and later -Ae >+# HP-UX older versions -Aa -D_HPUX_SOURCE >+# SVR4 -Xc -D__EXTENSIONS__ >+for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" >+do >+ CC="$ac_save_CC $ac_arg" >+ AC_TRY_COMPILE( >+[#include <stdarg.h> >+#include <stdio.h> >+#include <sys/types.h> >+#include <sys/stat.h> >+/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ >+struct buf { int x; }; >+FILE * (*rcsopen) (struct buf *, struct stat *, int); >+static char *e (p, i) >+ char **p; >+ int i; >+{ >+ return p[i]; >+} >+static char *f (char * (*g) (char **, int), char **p, ...) >+{ >+ char *s; >+ va_list v; >+ va_start (v,p); >+ s = g (p, va_arg (v,int)); >+ va_end (v); >+ return s; >+} >+int test (int i, double x); >+struct s1 {int (*f) (int a);}; >+struct s2 {int (*f) (double a);}; >+int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); >+int argc; >+char **argv; >+], [ >+return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; >+], >+[am_cv_prog_cc_stdc="$ac_arg"; break]) >+done >+CC="$ac_save_CC" >+]) >+if test -z "$am_cv_prog_cc_stdc"; then >+ AC_MSG_RESULT([none needed]) >+else >+ AC_MSG_RESULT([$am_cv_prog_cc_stdc]) >+fi >+case "x$am_cv_prog_cc_stdc" in >+ x|xno) ;; >+ *) CC="$CC $am_cv_prog_cc_stdc" ;; >+esac >+]) >+ >+AU_DEFUN([fp_PROG_CC_STDC], [AM_PROG_CC_STDC]) >+ >+# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- >+ >+# serial 47 AC_PROG_LIBTOOL >+ >+ >+# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED) >+# ----------------------------------------------------------- >+# If this macro is not defined by Autoconf, define it here. >+m4_ifdef([AC_PROVIDE_IFELSE], >+ [], >+ [m4_define([AC_PROVIDE_IFELSE], >+ [m4_ifdef([AC_PROVIDE_$1], >+ [$2], [$3])])]) >+ >+ >+# AC_PROG_LIBTOOL >+# --------------- >+AC_DEFUN([AC_PROG_LIBTOOL], >+[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl >+dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX >+dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX. >+ AC_PROVIDE_IFELSE([AC_PROG_CXX], >+ [AC_LIBTOOL_CXX], >+ [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX >+ ])]) >+dnl And a similar setup for Fortran 77 support >+ AC_PROVIDE_IFELSE([AC_PROG_F77], >+ [AC_LIBTOOL_F77], >+ [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77 >+])]) >+ >+dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly. >+dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run >+dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both. >+ AC_PROVIDE_IFELSE([AC_PROG_GCJ], >+ [AC_LIBTOOL_GCJ], >+ [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], >+ [AC_LIBTOOL_GCJ], >+ [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ], >+ [AC_LIBTOOL_GCJ], >+ [ifdef([AC_PROG_GCJ], >+ [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])]) >+ ifdef([A][M_PROG_GCJ], >+ [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])]) >+ ifdef([LT_AC_PROG_GCJ], >+ [define([LT_AC_PROG_GCJ], >+ defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])]) >+])])# AC_PROG_LIBTOOL >+ >+ >+# _AC_PROG_LIBTOOL >+# ---------------- >+AC_DEFUN([_AC_PROG_LIBTOOL], >+[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl >+AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl >+AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl >+AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl >+ >+# This can be used to rebuild libtool when needed >+LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" >+ >+# Always use our own libtool. >+LIBTOOL='$(SHELL) $(top_builddir)/libtool' >+AC_SUBST(LIBTOOL)dnl >+ >+# Prevent multiple expansion >+define([AC_PROG_LIBTOOL], []) >+])# _AC_PROG_LIBTOOL >+ >+ >+# AC_LIBTOOL_SETUP >+# ---------------- >+AC_DEFUN([AC_LIBTOOL_SETUP], >+[AC_PREREQ(2.50)dnl >+AC_REQUIRE([AC_ENABLE_SHARED])dnl >+AC_REQUIRE([AC_ENABLE_STATIC])dnl >+AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl >+AC_REQUIRE([AC_CANONICAL_HOST])dnl >+AC_REQUIRE([AC_CANONICAL_BUILD])dnl >+AC_REQUIRE([AC_PROG_CC])dnl >+AC_REQUIRE([AC_PROG_LD])dnl >+AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl >+AC_REQUIRE([AC_PROG_NM])dnl >+ >+AC_REQUIRE([AC_PROG_LN_S])dnl >+AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl >+# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! >+AC_REQUIRE([AC_OBJEXT])dnl >+AC_REQUIRE([AC_EXEEXT])dnl >+dnl >+ >+AC_LIBTOOL_SYS_MAX_CMD_LEN >+AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE >+AC_LIBTOOL_OBJDIR >+ >+AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl >+_LT_AC_PROG_ECHO_BACKSLASH >+ >+case $host_os in >+aix3*) >+ # AIX sometimes has problems with the GCC collect2 program. For some >+ # reason, if we set the COLLECT_NAMES environment variable, the problems >+ # vanish in a puff of smoke. >+ if test "X${COLLECT_NAMES+set}" != Xset; then >+ COLLECT_NAMES= >+ export COLLECT_NAMES >+ fi >+ ;; >+esac >+ >+# Sed substitution that helps us do robust quoting. It backslashifies >+# metacharacters that are still active within double-quoted strings. >+Xsed='sed -e 1s/^X//' >+[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'] >+ >+# Same as above, but do not quote variable references. >+[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'] >+ >+# Sed substitution to delay expansion of an escaped shell variable in a >+# double_quote_subst'ed string. >+delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' >+ >+# Sed substitution to avoid accidental globbing in evaled expressions >+no_glob_subst='s/\*/\\\*/g' >+ >+# Constants: >+rm="rm -f" >+ >+# Global variables: >+default_ofile=libtool >+can_build_shared=yes >+ >+# All known linkers require a `.a' archive for static linking (except M$VC, >+# which needs '.lib'). >+libext=a >+ltmain="$ac_aux_dir/ltmain.sh" >+ofile="$default_ofile" >+with_gnu_ld="$lt_cv_prog_gnu_ld" >+ >+AC_CHECK_TOOL(AR, ar, false) >+AC_CHECK_TOOL(RANLIB, ranlib, :) >+AC_CHECK_TOOL(STRIP, strip, :) >+ >+old_CC="$CC" >+old_CFLAGS="$CFLAGS" >+ >+# Set sane defaults for various variables >+test -z "$AR" && AR=ar >+test -z "$AR_FLAGS" && AR_FLAGS=cru >+test -z "$AS" && AS=as >+test -z "$CC" && CC=cc >+test -z "$LTCC" && LTCC=$CC >+test -z "$DLLTOOL" && DLLTOOL=dlltool >+test -z "$LD" && LD=ld >+test -z "$LN_S" && LN_S="ln -s" >+test -z "$MAGIC_CMD" && MAGIC_CMD=file >+test -z "$NM" && NM=nm >+test -z "$SED" && SED=sed >+test -z "$OBJDUMP" && OBJDUMP=objdump >+test -z "$RANLIB" && RANLIB=: >+test -z "$STRIP" && STRIP=: >+test -z "$ac_objext" && ac_objext=o >+ >+# Determine commands to create old-style static archives. >+old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' >+old_postinstall_cmds='chmod 644 $oldlib' >+old_postuninstall_cmds= >+ >+if test -n "$RANLIB"; then >+ case $host_os in >+ openbsd*) >+ old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" >+ ;; >+ *) >+ old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" >+ ;; >+ esac >+ old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" >+fi >+ >+_LT_CC_BASENAME([$compiler]) >+ >+# Only perform the check for file, if the check method requires it >+case $deplibs_check_method in >+file_magic*) >+ if test "$file_magic_cmd" = '$MAGIC_CMD'; then >+ AC_PATH_MAGIC >+ fi >+ ;; >+esac >+ >+AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no) >+AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], >+enable_win32_dll=yes, enable_win32_dll=no) >+ >+AC_ARG_ENABLE([libtool-lock], >+ [AC_HELP_STRING([--disable-libtool-lock], >+ [avoid locking (might break parallel builds)])]) >+test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes >+ >+AC_ARG_WITH([pic], >+ [AC_HELP_STRING([--with-pic], >+ [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], >+ [pic_mode="$withval"], >+ [pic_mode=default]) >+test -z "$pic_mode" && pic_mode=default >+ >+# Check if we have a version mismatch between libtool.m4 and ltmain.sh. >+# >+# Note: This should be in AC_LIBTOOL_SETUP, _after_ $ltmain have been defined. >+# We also should do it _before_ AC_LIBTOOL_LANG_C_CONFIG that actually >+# calls AC_LIBTOOL_CONFIG and creates libtool. >+# >+_LT_VERSION_CHECK >+ >+# Use C for the default configuration in the libtool script >+tagname= >+AC_LIBTOOL_LANG_C_CONFIG >+_LT_AC_TAGCONFIG >+])# AC_LIBTOOL_SETUP >+ >+ >+# _LT_VERSION_CHECK >+# ----------------- >+AC_DEFUN([_LT_VERSION_CHECK], >+[AC_MSG_CHECKING([for correct ltmain.sh version]) >+if test -z "$ltmain"; then >+ AC_MSG_RESULT(no) >+ echo >+ echo "*** [Gentoo] sanity check failed! ***" >+ echo "*** \$ltmain is not defined, please check the patch for consistency! ***" >+ echo >+ exit 1 >+fi >+gentoo_lt_version="1.5.18" >+gentoo_ltmain_version=`grep '^[[:space:]]*VERSION=' $ltmain | sed -e 's|^[[:space:]]*VERSION=||'` >+if test "$gentoo_lt_version" != "$gentoo_ltmain_version"; then >+ AC_MSG_RESULT(no) >+ echo >+ echo "*** [Gentoo] sanity check failed! ***" >+ echo "*** libtool.m4 and ltmain.sh have a version mismatch! ***" >+ echo "*** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***" >+ echo >+ echo "Please run:" >+ echo >+ echo " libtoolize --copy --force" >+ echo >+ echo "if appropriate, please contact the maintainer of this" >+ echo "package (or your distribution) for help." >+ echo >+ exit 1 >+else >+ AC_MSG_RESULT(yes) >+fi >+])# _LT_VERSION_CHECK >+ >+ >+# _LT_AC_SYS_COMPILER >+# ------------------- >+AC_DEFUN([_LT_AC_SYS_COMPILER], >+[AC_REQUIRE([AC_PROG_CC])dnl >+ >+# If no C compiler was specified, use CC. >+LTCC=${LTCC-"$CC"} >+ >+# Allow CC to be a program name with arguments. >+compiler=$CC >+])# _LT_AC_SYS_COMPILER >+ >+ >+# _LT_CC_BASENAME(CC) >+# ------------------- >+# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. >+AC_DEFUN([_LT_CC_BASENAME], >+[for cc_temp in $1""; do >+ case $cc_temp in >+ compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; >+ distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; >+ \-*) ;; >+ *) break;; >+ esac >+done >+cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` >+]) >+ >+ >+# _LT_COMPILER_BOILERPLATE >+# ------------------------ >+# Check for compiler boilerplate output or warnings with >+# the simple compiler test code. >+AC_DEFUN([_LT_COMPILER_BOILERPLATE], >+[ac_outfile=conftest.$ac_objext >+printf "$lt_simple_compile_test_code" >conftest.$ac_ext >+eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err >+_lt_compiler_boilerplate=`cat conftest.err` >+$rm conftest* >+])# _LT_COMPILER_BOILERPLATE >+ >+ >+# _LT_LINKER_BOILERPLATE >+# ---------------------- >+# Check for linker boilerplate output or warnings with >+# the simple link test code. >+AC_DEFUN([_LT_LINKER_BOILERPLATE], >+[ac_outfile=conftest.$ac_objext >+printf "$lt_simple_link_test_code" >conftest.$ac_ext >+eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err >+_lt_linker_boilerplate=`cat conftest.err` >+$rm conftest* >+])# _LT_LINKER_BOILERPLATE >+ >+ >+# _LT_AC_SYS_LIBPATH_AIX >+# ---------------------- >+# Links a minimal program and checks the executable >+# for the system default hardcoded library path. In most cases, >+# this is /usr/lib:/lib, but when the MPI compilers are used >+# the location of the communication and MPI libs are included too. >+# If we don't find anything, use the default library path according >+# to the aix ld manual. >+AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX], >+[AC_LINK_IFELSE(AC_LANG_PROGRAM,[ >+aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } >+}'` >+# Check for a 64-bit object if we didn't find anything. >+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; } >+}'`; fi],[]) >+if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi >+])# _LT_AC_SYS_LIBPATH_AIX >+ >+ >+# _LT_AC_SHELL_INIT(ARG) >+# ---------------------- >+AC_DEFUN([_LT_AC_SHELL_INIT], >+[ifdef([AC_DIVERSION_NOTICE], >+ [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], >+ [AC_DIVERT_PUSH(NOTICE)]) >+$1 >+AC_DIVERT_POP >+])# _LT_AC_SHELL_INIT >+ >+ >+# _LT_AC_PROG_ECHO_BACKSLASH >+# -------------------------- >+# Add some code to the start of the generated configure script which >+# will find an echo command which doesn't interpret backslashes. >+AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH], >+[_LT_AC_SHELL_INIT([ >+# Check that we are running under the correct shell. >+SHELL=${CONFIG_SHELL-/bin/sh} >+ >+case X$ECHO in >+X*--fallback-echo) >+ # Remove one level of quotation (which was required for Make). >+ ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','` >+ ;; >+esac >+ >+echo=${ECHO-echo} >+if test "X[$]1" = X--no-reexec; then >+ # Discard the --no-reexec flag, and continue. >+ shift >+elif test "X[$]1" = X--fallback-echo; then >+ # Avoid inline document here, it may be left over >+ : >+elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then >+ # Yippee, $echo works! >+ : >+else >+ # Restart under the correct shell. >+ exec $SHELL "[$]0" --no-reexec ${1+"[$]@"} >+fi >+ >+if test "X[$]1" = X--fallback-echo; then >+ # used as fallback echo >+ shift >+ cat <<EOF >+[$]* >+EOF >+ exit 0 >+fi >+ >+# The HP-UX ksh and POSIX shell print the target directory to stdout >+# if CDPATH is set. >+(unset CDPATH) >/dev/null 2>&1 && unset CDPATH >+ >+if test -z "$ECHO"; then >+if test "X${echo_test_string+set}" != Xset; then >+# find a string as large as possible, as long as the shell can cope with it >+ for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do >+ # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... >+ if (echo_test_string="`eval $cmd`") 2>/dev/null && >+ echo_test_string="`eval $cmd`" && >+ (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null >+ then >+ break >+ fi >+ done >+fi >+ >+if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && >+ echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && >+ test "X$echo_testing_string" = "X$echo_test_string"; then >+ : >+else >+ # The Solaris, AIX, and Digital Unix default echo programs unquote >+ # backslashes. This makes it impossible to quote backslashes using >+ # echo "$something" | sed 's/\\/\\\\/g' >+ # >+ # So, first we look for a working echo in the user's PATH. >+ >+ lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR >+ for dir in $PATH /usr/ucb; do >+ IFS="$lt_save_ifs" >+ if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && >+ test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && >+ echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && >+ test "X$echo_testing_string" = "X$echo_test_string"; then >+ echo="$dir/echo" >+ break >+ fi >+ done >+ IFS="$lt_save_ifs" >+ >+ if test "X$echo" = Xecho; then >+ # We didn't find a better echo, so look for alternatives. >+ if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && >+ echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && >+ test "X$echo_testing_string" = "X$echo_test_string"; then >+ # This shell has a builtin print -r that does the trick. >+ echo='print -r' >+ elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && >+ test "X$CONFIG_SHELL" != X/bin/ksh; then >+ # If we have ksh, try running configure again with it. >+ ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} >+ export ORIGINAL_CONFIG_SHELL >+ CONFIG_SHELL=/bin/ksh >+ export CONFIG_SHELL >+ exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"} >+ else >+ # Try using printf. >+ echo='printf %s\n' >+ if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && >+ echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && >+ test "X$echo_testing_string" = "X$echo_test_string"; then >+ # Cool, printf works >+ : >+ elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && >+ test "X$echo_testing_string" = 'X\t' && >+ echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && >+ test "X$echo_testing_string" = "X$echo_test_string"; then >+ CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL >+ export CONFIG_SHELL >+ SHELL="$CONFIG_SHELL" >+ export SHELL >+ echo="$CONFIG_SHELL [$]0 --fallback-echo" >+ elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && >+ test "X$echo_testing_string" = 'X\t' && >+ echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && >+ test "X$echo_testing_string" = "X$echo_test_string"; then >+ echo="$CONFIG_SHELL [$]0 --fallback-echo" >+ else >+ # maybe with a smaller string... >+ prev=: >+ >+ for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do >+ if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null >+ then >+ break >+ fi >+ prev="$cmd" >+ done >+ >+ if test "$prev" != 'sed 50q "[$]0"'; then >+ echo_test_string=`eval $prev` >+ export echo_test_string >+ exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"} >+ else >+ # Oops. We lost completely, so just stick with echo. >+ echo=echo >+ fi >+ fi >+ fi >+ fi >+fi >+fi >+ >+# Copy echo and quote the copy suitably for passing to libtool from >+# the Makefile, instead of quoting the original, which is used later. >+ECHO=$echo >+if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then >+ ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo" >+fi >+ >+AC_SUBST(ECHO) >+])])# _LT_AC_PROG_ECHO_BACKSLASH >+ >+ >+# _LT_AC_LOCK >+# ----------- >+AC_DEFUN([_LT_AC_LOCK], >+[AC_ARG_ENABLE([libtool-lock], >+ [AC_HELP_STRING([--disable-libtool-lock], >+ [avoid locking (might break parallel builds)])]) >+test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes >+ >+# Some flags need to be propagated to the compiler or linker for good >+# libtool support. >+case $host in >+ia64-*-hpux*) >+ # Find out which ABI we are using. >+ echo 'int i;' > conftest.$ac_ext >+ if AC_TRY_EVAL(ac_compile); then >+ case `/usr/bin/file conftest.$ac_objext` in >+ *ELF-32*) >+ HPUX_IA64_MODE="32" >+ ;; >+ *ELF-64*) >+ HPUX_IA64_MODE="64" >+ ;; >+ esac >+ fi >+ rm -rf conftest* >+ ;; >+*-*-irix6*) >+ # Find out which ABI we are using. >+ echo '[#]line __oline__ "configure"' > conftest.$ac_ext >+ if AC_TRY_EVAL(ac_compile); then >+ if test "$lt_cv_prog_gnu_ld" = yes; then >+ case `/usr/bin/file conftest.$ac_objext` in >+ *32-bit*) >+ LD="${LD-ld} -melf32bsmip" >+ ;; >+ *N32*) >+ LD="${LD-ld} -melf32bmipn32" >+ ;; >+ *64-bit*) >+ LD="${LD-ld} -melf64bmip" >+ ;; >+ esac >+ else >+ case `/usr/bin/file conftest.$ac_objext` in >+ *32-bit*) >+ LD="${LD-ld} -32" >+ ;; >+ *N32*) >+ LD="${LD-ld} -n32" >+ ;; >+ *64-bit*) >+ LD="${LD-ld} -64" >+ ;; >+ esac >+ fi >+ fi >+ rm -rf conftest* >+ ;; >+ >+x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) >+ # Find out which ABI we are using. >+ echo 'int i;' > conftest.$ac_ext >+ if AC_TRY_EVAL(ac_compile); then >+ case "`/usr/bin/file conftest.o`" in >+ *32-bit*) >+ case $host in >+ x86_64-*linux*) >+ LD="${LD-ld} -m elf_i386" >+ ;; >+ ppc64-*linux*|powerpc64-*linux*) >+ LD="${LD-ld} -m elf32ppclinux" >+ ;; >+ s390x-*linux*) >+ LD="${LD-ld} -m elf_s390" >+ ;; >+ sparc64-*linux*) >+ LD="${LD-ld} -m elf32_sparc" >+ ;; >+ esac >+ ;; >+ *64-bit*) >+ case $host in >+ x86_64-*linux*) >+ LD="${LD-ld} -m elf_x86_64" >+ ;; >+ ppc*-*linux*|powerpc*-*linux*) >+ LD="${LD-ld} -m elf64ppc" >+ ;; >+ s390*-*linux*) >+ LD="${LD-ld} -m elf64_s390" >+ ;; >+ sparc*-*linux*) >+ LD="${LD-ld} -m elf64_sparc" >+ ;; >+ esac >+ ;; >+ esac >+ fi >+ rm -rf conftest* >+ ;; >+ >+*-*-linux*) >+ # Test if the compiler is 64bit >+ echo 'int i;' > conftest.$ac_ext >+ lt_cv_cc_64bit_output=no >+ if AC_TRY_EVAL(ac_compile); then >+ case `/usr/bin/file conftest.$ac_objext` in >+ *"ELF 64"*) >+ lt_cv_cc_64bit_output=yes >+ ;; >+ esac >+ fi >+ rm -rf conftest* >+ ;; >+ >+*-*-sco3.2v5*) >+ # On SCO OpenServer 5, we need -belf to get full-featured binaries. >+ SAVE_CFLAGS="$CFLAGS" >+ CFLAGS="$CFLAGS -belf" >+ AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, >+ [AC_LANG_PUSH(C) >+ AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) >+ AC_LANG_POP]) >+ if test x"$lt_cv_cc_needs_belf" != x"yes"; then >+ # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf >+ CFLAGS="$SAVE_CFLAGS" >+ fi >+ ;; >+AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], >+[*-*-cygwin* | *-*-mingw* | *-*-pw32*) >+ AC_CHECK_TOOL(DLLTOOL, dlltool, false) >+ AC_CHECK_TOOL(AS, as, false) >+ AC_CHECK_TOOL(OBJDUMP, objdump, false) >+ ;; >+ ]) >+esac >+ >+need_locks="$enable_libtool_lock" >+ >+])# _LT_AC_LOCK >+ >+ >+# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, >+# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) >+# ---------------------------------------------------------------- >+# Check whether the given compiler option works >+AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], >+[AC_REQUIRE([LT_AC_PROG_SED]) >+AC_CACHE_CHECK([$1], [$2], >+ [$2=no >+ ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) >+ printf "$lt_simple_compile_test_code" > conftest.$ac_ext >+ lt_compiler_flag="$3" >+ # Insert the option either (1) after the last *FLAGS variable, or >+ # (2) before a word containing "conftest.", or (3) at the end. >+ # Note that $ac_compile itself does not contain backslashes and begins >+ # with a dollar sign (not a hyphen), so the echo should work correctly. >+ # The option is referenced via a variable to avoid confusing sed. >+ lt_compile=`echo "$ac_compile" | $SED \ >+ -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ >+ -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ >+ -e 's:$: $lt_compiler_flag:'` >+ (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) >+ (eval "$lt_compile" 2>conftest.err) >+ ac_status=$? >+ cat conftest.err >&AS_MESSAGE_LOG_FD >+ echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD >+ if (exit $ac_status) && test -s "$ac_outfile"; then >+ # The compiler can only warn and ignore the option if not recognized >+ # So say no if there are warnings other than the usual output. >+ $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp >+ $SED '/^$/d' conftest.err >conftest.er2 >+ if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then >+ $2=yes >+ fi >+ fi >+ $rm conftest* >+]) >+ >+if test x"[$]$2" = xyes; then >+ ifelse([$5], , :, [$5]) >+else >+ ifelse([$6], , :, [$6]) >+fi >+])# AC_LIBTOOL_COMPILER_OPTION >+ >+ >+# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, >+# [ACTION-SUCCESS], [ACTION-FAILURE]) >+# ------------------------------------------------------------ >+# Check whether the given compiler option works >+AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], >+[AC_CACHE_CHECK([$1], [$2], >+ [$2=no >+ save_LDFLAGS="$LDFLAGS" >+ LDFLAGS="$LDFLAGS $3" >+ printf "$lt_simple_link_test_code" > conftest.$ac_ext >+ if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then >+ # The compiler can only warn and ignore the option if not recognized >+ # So say no if there are warnings >+ if test -s conftest.err; then >+ # Append any errors to the config.log. >+ cat conftest.err 1>&AS_MESSAGE_LOG_FD >+ $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp >+ $SED '/^$/d' conftest.err >conftest.er2 >+ if diff conftest.exp conftest.er2 >/dev/null; then >+ $2=yes >+ fi >+ else >+ $2=yes >+ fi >+ fi >+ $rm conftest* >+ LDFLAGS="$save_LDFLAGS" >+]) >+ >+if test x"[$]$2" = xyes; then >+ ifelse([$4], , :, [$4]) >+else >+ ifelse([$5], , :, [$5]) >+fi >+])# AC_LIBTOOL_LINKER_OPTION >+ >+ >+# AC_LIBTOOL_SYS_MAX_CMD_LEN >+# -------------------------- >+AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], >+[# find the maximum length of command line arguments >+AC_MSG_CHECKING([the maximum length of command line arguments]) >+AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl >+ i=0 >+ teststring="ABCD" >+ >+ case $build_os in >+ msdosdjgpp*) >+ # On DJGPP, this test can blow up pretty badly due to problems in libc >+ # (any single argument exceeding 2000 bytes causes a buffer overrun >+ # during glob expansion). Even if it were fixed, the result of this >+ # check would be larger than it should be. >+ lt_cv_sys_max_cmd_len=12288; # 12K is about right >+ ;; >+ >+ gnu*) >+ # Under GNU Hurd, this test is not required because there is >+ # no limit to the length of command line arguments. >+ # Libtool will interpret -1 as no limit whatsoever >+ lt_cv_sys_max_cmd_len=-1; >+ ;; >+ >+ cygwin* | mingw*) >+ # On Win9x/ME, this test blows up -- it succeeds, but takes >+ # about 5 minutes as the teststring grows exponentially. >+ # Worse, since 9x/ME are not pre-emptively multitasking, >+ # you end up with a "frozen" computer, even though with patience >+ # the test eventually succeeds (with a max line length of 256k). >+ # Instead, let's just punt: use the minimum linelength reported by >+ # all of the supported platforms: 8192 (on NT/2K/XP). >+ lt_cv_sys_max_cmd_len=8192; >+ ;; >+ >+ amigaos*) >+ # On AmigaOS with pdksh, this test takes hours, literally. >+ # So we just punt and use a minimum line length of 8192. >+ lt_cv_sys_max_cmd_len=8192; >+ ;; >+ >+ netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) >+ # This has been around since 386BSD, at least. Likely further. >+ if test -x /sbin/sysctl; then >+ lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` >+ elif test -x /usr/sbin/sysctl; then >+ lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` >+ else >+ lt_cv_sys_max_cmd_len=65536 # usable default for *BSD >+ fi >+ # And add a safety zone >+ lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` >+ lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` >+ ;; >+ osf*) >+ # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure >+ # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not >+ # nice to cause kernel panics so lets avoid the loop below. >+ # First set a reasonable default. >+ lt_cv_sys_max_cmd_len=16384 >+ # >+ if test -x /sbin/sysconfig; then >+ case `/sbin/sysconfig -q proc exec_disable_arg_limit` in >+ *1*) lt_cv_sys_max_cmd_len=-1 ;; >+ esac >+ fi >+ ;; >+ *) >+ # If test is not a shell built-in, we'll probably end up computing a >+ # maximum length that is only half of the actual maximum length, but >+ # we can't tell. >+ SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} >+ while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \ >+ = "XX$teststring") >/dev/null 2>&1 && >+ new_result=`expr "X$teststring" : ".*" 2>&1` && >+ lt_cv_sys_max_cmd_len=$new_result && >+ test $i != 17 # 1/2 MB should be enough >+ do >+ i=`expr $i + 1` >+ teststring=$teststring$teststring >+ done >+ teststring= >+ # Add a significant safety factor because C++ compilers can tack on massive >+ # amounts of additional arguments before passing them to the linker. >+ # It appears as though 1/2 is a usable value. >+ lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` >+ ;; >+ esac >+]) >+if test -n $lt_cv_sys_max_cmd_len ; then >+ AC_MSG_RESULT($lt_cv_sys_max_cmd_len) >+else >+ AC_MSG_RESULT(none) >+fi >+])# AC_LIBTOOL_SYS_MAX_CMD_LEN >+ >+ >+# _LT_AC_CHECK_DLFCN >+# -------------------- >+AC_DEFUN([_LT_AC_CHECK_DLFCN], >+[AC_CHECK_HEADERS(dlfcn.h)dnl >+])# _LT_AC_CHECK_DLFCN >+ >+ >+# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, >+# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) >+# ------------------------------------------------------------------ >+AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF], >+[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl >+if test "$cross_compiling" = yes; then : >+ [$4] >+else >+ lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 >+ lt_status=$lt_dlunknown >+ cat > conftest.$ac_ext <<EOF >+[#line __oline__ "configure" >+#include "confdefs.h" >+ >+#if HAVE_DLFCN_H >+#include <dlfcn.h> >+#endif >+ >+#include <stdio.h> >+ >+#ifdef RTLD_GLOBAL >+# define LT_DLGLOBAL RTLD_GLOBAL >+#else >+# ifdef DL_GLOBAL >+# define LT_DLGLOBAL DL_GLOBAL >+# else >+# define LT_DLGLOBAL 0 >+# endif >+#endif >+ >+/* We may have to define LT_DLLAZY_OR_NOW in the command line if we >+ find out it does not work in some platform. */ >+#ifndef LT_DLLAZY_OR_NOW >+# ifdef RTLD_LAZY >+# define LT_DLLAZY_OR_NOW RTLD_LAZY >+# else >+# ifdef DL_LAZY >+# define LT_DLLAZY_OR_NOW DL_LAZY >+# else >+# ifdef RTLD_NOW >+# define LT_DLLAZY_OR_NOW RTLD_NOW >+# else >+# ifdef DL_NOW >+# define LT_DLLAZY_OR_NOW DL_NOW >+# else >+# define LT_DLLAZY_OR_NOW 0 >+# endif >+# endif >+# endif >+# endif >+#endif >+ >+#ifdef __cplusplus >+extern "C" void exit (int); >+#endif >+ >+void fnord() { int i=42;} >+int main () >+{ >+ void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); >+ int status = $lt_dlunknown; >+ >+ if (self) >+ { >+ if (dlsym (self,"fnord")) status = $lt_dlno_uscore; >+ else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; >+ /* dlclose (self); */ >+ } >+ >+ exit (status); >+}] >+EOF >+ if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then >+ (./conftest; exit; ) 2>/dev/null >+ lt_status=$? >+ case x$lt_status in >+ x$lt_dlno_uscore) $1 ;; >+ x$lt_dlneed_uscore) $2 ;; >+ x$lt_unknown|x*) $3 ;; >+ esac >+ else : >+ # compilation failed >+ $3 >+ fi >+fi >+rm -fr conftest* >+])# _LT_AC_TRY_DLOPEN_SELF >+ >+ >+# AC_LIBTOOL_DLOPEN_SELF >+# ------------------- >+AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], >+[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl >+if test "x$enable_dlopen" != xyes; then >+ enable_dlopen=unknown >+ enable_dlopen_self=unknown >+ enable_dlopen_self_static=unknown >+else >+ lt_cv_dlopen=no >+ lt_cv_dlopen_libs= >+ >+ case $host_os in >+ beos*) >+ lt_cv_dlopen="load_add_on" >+ lt_cv_dlopen_libs= >+ lt_cv_dlopen_self=yes >+ ;; >+ >+ mingw* | pw32*) >+ lt_cv_dlopen="LoadLibrary" >+ lt_cv_dlopen_libs= >+ ;; >+ >+ cygwin*) >+ lt_cv_dlopen="dlopen" >+ lt_cv_dlopen_libs= >+ ;; >+ >+ darwin*) >+ # if libdl is installed we need to link against it >+ AC_CHECK_LIB([dl], [dlopen], >+ [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[ >+ lt_cv_dlopen="dyld" >+ lt_cv_dlopen_libs= >+ lt_cv_dlopen_self=yes >+ ]) >+ ;; >+ >+ *) >+ AC_CHECK_FUNC([shl_load], >+ [lt_cv_dlopen="shl_load"], >+ [AC_CHECK_LIB([dld], [shl_load], >+ [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"], >+ [AC_CHECK_FUNC([dlopen], >+ [lt_cv_dlopen="dlopen"], >+ [AC_CHECK_LIB([dl], [dlopen], >+ [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], >+ [AC_CHECK_LIB([svld], [dlopen], >+ [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], >+ [AC_CHECK_LIB([dld], [dld_link], >+ [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"]) >+ ]) >+ ]) >+ ]) >+ ]) >+ ]) >+ ;; >+ esac >+ >+ if test "x$lt_cv_dlopen" != xno; then >+ enable_dlopen=yes >+ else >+ enable_dlopen=no >+ fi >+ >+ case $lt_cv_dlopen in >+ dlopen) >+ save_CPPFLAGS="$CPPFLAGS" >+ test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" >+ >+ save_LDFLAGS="$LDFLAGS" >+ eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" >+ >+ save_LIBS="$LIBS" >+ LIBS="$lt_cv_dlopen_libs $LIBS" >+ >+ AC_CACHE_CHECK([whether a program can dlopen itself], >+ lt_cv_dlopen_self, [dnl >+ _LT_AC_TRY_DLOPEN_SELF( >+ lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, >+ lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) >+ ]) >+ >+ if test "x$lt_cv_dlopen_self" = xyes; then >+ LDFLAGS="$LDFLAGS $link_static_flag" >+ AC_CACHE_CHECK([whether a statically linked program can dlopen itself], >+ lt_cv_dlopen_self_static, [dnl >+ _LT_AC_TRY_DLOPEN_SELF( >+ lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, >+ lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) >+ ]) >+ fi >+ >+ CPPFLAGS="$save_CPPFLAGS" >+ LDFLAGS="$save_LDFLAGS" >+ LIBS="$save_LIBS" >+ ;; >+ esac >+ >+ case $lt_cv_dlopen_self in >+ yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; >+ *) enable_dlopen_self=unknown ;; >+ esac >+ >+ case $lt_cv_dlopen_self_static in >+ yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; >+ *) enable_dlopen_self_static=unknown ;; >+ esac >+fi >+])# AC_LIBTOOL_DLOPEN_SELF >+ >+ >+# AC_LIBTOOL_PROG_CC_C_O([TAGNAME]) >+# --------------------------------- >+# Check to see if options -c and -o are simultaneously supported by compiler >+AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O], >+[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl >+AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], >+ [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)], >+ [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no >+ $rm -r conftest 2>/dev/null >+ mkdir conftest >+ cd conftest >+ mkdir out >+ printf "$lt_simple_compile_test_code" > conftest.$ac_ext >+ >+ lt_compiler_flag="-o out/conftest2.$ac_objext" >+ # Insert the option either (1) after the last *FLAGS variable, or >+ # (2) before a word containing "conftest.", or (3) at the end. >+ # Note that $ac_compile itself does not contain backslashes and begins >+ # with a dollar sign (not a hyphen), so the echo should work correctly. >+ lt_compile=`echo "$ac_compile" | $SED \ >+ -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ >+ -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ >+ -e 's:$: $lt_compiler_flag:'` >+ (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) >+ (eval "$lt_compile" 2>out/conftest.err) >+ ac_status=$? >+ cat out/conftest.err >&AS_MESSAGE_LOG_FD >+ echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD >+ if (exit $ac_status) && test -s out/conftest2.$ac_objext >+ then >+ # The compiler can only warn and ignore the option if not recognized >+ # So say no if there are warnings >+ $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp >+ $SED '/^$/d' out/conftest.err >out/conftest.er2 >+ if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then >+ _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes >+ fi >+ fi >+ chmod u+w . >+ $rm conftest* >+ # SGI C++ compiler will create directory out/ii_files/ for >+ # template instantiation >+ test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files >+ $rm out/* && rmdir out >+ cd .. >+ rmdir conftest >+ $rm conftest* >+]) >+])# AC_LIBTOOL_PROG_CC_C_O >+ >+ >+# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME]) >+# ----------------------------------------- >+# Check to see if we can do hard links to lock some files if needed >+AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], >+[AC_REQUIRE([_LT_AC_LOCK])dnl >+ >+hard_links="nottested" >+if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then >+ # do not overwrite the value of need_locks provided by the user >+ AC_MSG_CHECKING([if we can lock with hard links]) >+ hard_links=yes >+ $rm conftest* >+ ln conftest.a conftest.b 2>/dev/null && hard_links=no >+ touch conftest.a >+ ln conftest.a conftest.b 2>&5 || hard_links=no >+ ln conftest.a conftest.b 2>/dev/null && hard_links=no >+ AC_MSG_RESULT([$hard_links]) >+ if test "$hard_links" = no; then >+ AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe]) >+ need_locks=warn >+ fi >+else >+ need_locks=no >+fi >+])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS >+ >+ >+# AC_LIBTOOL_OBJDIR >+# ----------------- >+AC_DEFUN([AC_LIBTOOL_OBJDIR], >+[AC_CACHE_CHECK([for objdir], [lt_cv_objdir], >+[rm -f .libs 2>/dev/null >+mkdir .libs 2>/dev/null >+if test -d .libs; then >+ lt_cv_objdir=.libs >+else >+ # MS-DOS does not allow filenames that begin with a dot. >+ lt_cv_objdir=_libs >+fi >+rmdir .libs 2>/dev/null]) >+objdir=$lt_cv_objdir >+])# AC_LIBTOOL_OBJDIR >+ >+ >+# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME]) >+# ---------------------------------------------- >+# Check hardcoding attributes. >+AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], >+[AC_MSG_CHECKING([how to hardcode library paths into programs]) >+_LT_AC_TAGVAR(hardcode_action, $1)= >+if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \ >+ test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \ >+ test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then >+ >+ # We can hardcode non-existant directories. >+ if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no && >+ # If the only mechanism to avoid hardcoding is shlibpath_var, we >+ # have to relink, otherwise we might link with an installed library >+ # when we should be linking with a yet-to-be-installed one >+ ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no && >+ test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then >+ # Linking always hardcodes the temporary library directory. >+ _LT_AC_TAGVAR(hardcode_action, $1)=relink >+ else >+ # We can link without hardcoding, and we can hardcode nonexisting dirs. >+ _LT_AC_TAGVAR(hardcode_action, $1)=immediate >+ fi >+else >+ # We cannot hardcode anything, or else we can only hardcode existing >+ # directories. >+ _LT_AC_TAGVAR(hardcode_action, $1)=unsupported >+fi >+AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)]) >+ >+if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then >+ # Fast installation is not supported >+ enable_fast_install=no >+elif test "$shlibpath_overrides_runpath" = yes || >+ test "$enable_shared" = no; then >+ # Fast installation is not necessary >+ enable_fast_install=needless >+fi >+])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH >+ >+ >+# AC_LIBTOOL_SYS_LIB_STRIP >+# ------------------------ >+AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP], >+[striplib= >+old_striplib= >+AC_MSG_CHECKING([whether stripping libraries is possible]) >+if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then >+ test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" >+ test -z "$striplib" && striplib="$STRIP --strip-unneeded" >+ AC_MSG_RESULT([yes]) >+else >+# FIXME - insert some real tests, host_os isn't really good enough >+ case $host_os in >+ darwin*) >+ if test -n "$STRIP" ; then >+ striplib="$STRIP -x" >+ AC_MSG_RESULT([yes]) >+ else >+ AC_MSG_RESULT([no]) >+fi >+ ;; >+ *) >+ AC_MSG_RESULT([no]) >+ ;; >+ esac >+fi >+])# AC_LIBTOOL_SYS_LIB_STRIP >+ >+ >+# AC_LIBTOOL_SYS_DYNAMIC_LINKER >+# ----------------------------- >+# PORTME Fill in your ld.so characteristics >+AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER], >+[AC_MSG_CHECKING([dynamic linker characteristics]) >+library_names_spec= >+libname_spec='lib$name' >+soname_spec= >+shrext_cmds=".so" >+postinstall_cmds= >+postuninstall_cmds= >+finish_cmds= >+finish_eval= >+shlibpath_var= >+shlibpath_overrides_runpath=unknown >+version_type=none >+dynamic_linker="$host_os ld.so" >+sys_lib_dlsearch_path_spec="/lib /usr/lib" >+if test "$GCC" = yes; then >+ sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` >+ if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then >+ # if the path contains ";" then we assume it to be the separator >+ # otherwise default to the standard path separator (i.e. ":") - it is >+ # assumed that no part of a normal pathname contains ";" but that should >+ # okay in the real world where ";" in dirpaths is itself problematic. >+ sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` >+ else >+ sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` >+ fi >+else >+ sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" >+fi >+need_lib_prefix=unknown >+hardcode_into_libs=no >+ >+# when you set need_version to no, make sure it does not cause -set_version >+# flags to be left without arguments >+need_version=unknown >+ >+case $host_os in >+aix3*) >+ version_type=linux >+ library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' >+ shlibpath_var=LIBPATH >+ >+ # AIX 3 has no versioning support, so we append a major version to the name. >+ soname_spec='${libname}${release}${shared_ext}$major' >+ ;; >+ >+aix4* | aix5*) >+ version_type=linux >+ need_lib_prefix=no >+ need_version=no >+ hardcode_into_libs=yes >+ if test "$host_cpu" = ia64; then >+ # AIX 5 supports IA64 >+ library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' >+ shlibpath_var=LD_LIBRARY_PATH >+ else >+ # With GCC up to 2.95.x, collect2 would create an import file >+ # for dependence libraries. The import file would start with >+ # the line `#! .'. This would cause the generated library to >+ # depend on `.', always an invalid library. This was fixed in >+ # development snapshots of GCC prior to 3.0. >+ case $host_os in >+ aix4 | aix4.[[01]] | aix4.[[01]].*) >+ if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' >+ echo ' yes ' >+ echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then >+ : >+ else >+ can_build_shared=no >+ fi >+ ;; >+ esac >+ # AIX (on Power*) has no versioning support, so currently we can not hardcode correct >+ # soname into executable. Probably we can add versioning support to >+ # collect2, so additional links can be useful in future. >+ if test "$aix_use_runtimelinking" = yes; then >+ # If using run time linking (on AIX 4.2 or later) use lib<name>.so >+ # instead of lib<name>.a to let people know that these are not >+ # typical AIX shared libraries. >+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' >+ else >+ # We preserve .a as extension for shared libraries through AIX4.2 >+ # and later when we are not doing run time linking. >+ library_names_spec='${libname}${release}.a $libname.a' >+ soname_spec='${libname}${release}${shared_ext}$major' >+ fi >+ shlibpath_var=LIBPATH >+ fi >+ ;; >+ >+amigaos*) >+ library_names_spec='$libname.ixlibrary $libname.a' >+ # Create ${libname}_ixlibrary.a entries in /sys/libs. >+ 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' >+ ;; >+ >+beos*) >+ library_names_spec='${libname}${shared_ext}' >+ dynamic_linker="$host_os ld.so" >+ shlibpath_var=LIBRARY_PATH >+ ;; >+ >+bsdi[[45]]*) >+ version_type=linux >+ need_version=no >+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' >+ soname_spec='${libname}${release}${shared_ext}$major' >+ finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' >+ shlibpath_var=LD_LIBRARY_PATH >+ sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" >+ sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" >+ # the default ld.so.conf also contains /usr/contrib/lib and >+ # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow >+ # libtool to hard-code these into programs >+ ;; >+ >+cygwin* | mingw* | pw32*) >+ version_type=windows >+ shrext_cmds=".dll" >+ need_version=no >+ need_lib_prefix=no >+ >+ case $GCC,$host_os in >+ yes,cygwin* | yes,mingw* | yes,pw32*) >+ library_names_spec='$libname.dll.a' >+ # DLL is installed to $(libdir)/../bin by postinstall_cmds >+ postinstall_cmds='base_file=`basename \${file}`~ >+ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ >+ dldir=$destdir/`dirname \$dlpath`~ >+ test -d \$dldir || mkdir -p \$dldir~ >+ $install_prog $dir/$dlname \$dldir/$dlname' >+ postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ >+ dlpath=$dir/\$dldll~ >+ $rm \$dlpath' >+ shlibpath_overrides_runpath=yes >+ >+ case $host_os in >+ cygwin*) >+ # Cygwin DLLs use 'cyg' prefix rather than 'lib' >+ soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' >+ sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" >+ ;; >+ mingw*) >+ # MinGW DLLs use traditional 'lib' prefix >+ soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' >+ sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` >+ if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then >+ # It is most probably a Windows format PATH printed by >+ # mingw gcc, but we are running on Cygwin. Gcc prints its search >+ # path with ; separators, and with drive letters. We can handle the >+ # drive letters (cygwin fileutils understands them), so leave them, >+ # especially as we might pass files found there to a mingw objdump, >+ # which wouldn't understand a cygwinified path. Ahh. >+ sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` >+ else >+ sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` >+ fi >+ ;; >+ pw32*) >+ # pw32 DLLs use 'pw' prefix rather than 'lib' >+ library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' >+ ;; >+ esac >+ ;; >+ >+ linux*) >+ if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then >+ archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' >+ supports_anon_versioning=no >+ case `$LD -v 2>/dev/null` in >+ *\ [01].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 >+ *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... >+ *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... >+ *\ 2.11.*) ;; # other 2.11 versions >+ *) supports_anon_versioning=yes ;; >+ esac >+ if test $supports_anon_versioning = yes; then >+ archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ >+cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ >+$echo "local: *; };" >> $output_objdir/$libname.ver~ >+ $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' >+ else >+ $archive_expsym_cmds="$archive_cmds" >+ fi >+ else >+ ld_shlibs=no >+ fi >+ ;; >+ >+ *) >+ library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' >+ ;; >+ esac >+ dynamic_linker='Win32 ld.exe' >+ # FIXME: first we should search . and the directory the executable is in >+ shlibpath_var=PATH >+ ;; >+ >+darwin* | rhapsody*) >+ dynamic_linker="$host_os dyld" >+ version_type=darwin >+ need_lib_prefix=no >+ need_version=no >+ library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' >+ soname_spec='${libname}${release}${major}$shared_ext' >+ shlibpath_overrides_runpath=yes >+ shlibpath_var=DYLD_LIBRARY_PATH >+ shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' >+ # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. >+ if test "$GCC" = yes; then >+ 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"` >+ else >+ sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' >+ fi >+ sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' >+ ;; >+ >+dgux*) >+ version_type=linux >+ need_lib_prefix=no >+ need_version=no >+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' >+ soname_spec='${libname}${release}${shared_ext}$major' >+ shlibpath_var=LD_LIBRARY_PATH >+ ;; >+ >+freebsd1*) >+ dynamic_linker=no >+ ;; >+ >+kfreebsd*-gnu) >+ version_type=linux >+ need_lib_prefix=no >+ need_version=no >+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' >+ soname_spec='${libname}${release}${shared_ext}$major' >+ shlibpath_var=LD_LIBRARY_PATH >+ shlibpath_overrides_runpath=no >+ hardcode_into_libs=yes >+ dynamic_linker='GNU ld.so' >+ ;; >+ >+freebsd* | dragonfly*) >+ # DragonFly does not have aout. When/if they implement a new >+ # versioning mechanism, adjust this. >+ objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` >+ version_type=freebsd-$objformat >+ case $version_type in >+ freebsd-elf*) >+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' >+ need_version=no >+ need_lib_prefix=no >+ ;; >+ freebsd-*) >+ library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' >+ need_version=yes >+ ;; >+ esac >+ shlibpath_var=LD_LIBRARY_PATH >+ case $host_os in >+ freebsd2*) >+ shlibpath_overrides_runpath=yes >+ ;; >+ freebsd3.[[01]]* | freebsdelf3.[[01]]*) >+ shlibpath_overrides_runpath=yes >+ hardcode_into_libs=yes >+ ;; >+ *) # from 3.2 on >+ shlibpath_overrides_runpath=no >+ hardcode_into_libs=yes >+ ;; >+ esac >+ ;; >+ >+gnu*) >+ version_type=linux >+ need_lib_prefix=no >+ need_version=no >+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' >+ soname_spec='${libname}${release}${shared_ext}$major' >+ shlibpath_var=LD_LIBRARY_PATH >+ hardcode_into_libs=yes >+ ;; >+ >+hpux9* | hpux10* | hpux11*) >+ # Give a soname corresponding to the major version so that dld.sl refuses to >+ # link against other versions. >+ version_type=sunos >+ need_lib_prefix=no >+ need_version=no >+ case "$host_cpu" in >+ ia64*) >+ shrext_cmds='.so' >+ hardcode_into_libs=yes >+ dynamic_linker="$host_os dld.so" >+ shlibpath_var=LD_LIBRARY_PATH >+ shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. >+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' >+ soname_spec='${libname}${release}${shared_ext}$major' >+ if test "X$HPUX_IA64_MODE" = X32; then >+ sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" >+ else >+ sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" >+ fi >+ sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec >+ ;; >+ hppa*64*) >+ shrext_cmds='.sl' >+ hardcode_into_libs=yes >+ dynamic_linker="$host_os dld.sl" >+ shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH >+ shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. >+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' >+ soname_spec='${libname}${release}${shared_ext}$major' >+ sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" >+ sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec >+ ;; >+ *) >+ shrext_cmds='.sl' >+ dynamic_linker="$host_os dld.sl" >+ shlibpath_var=SHLIB_PATH >+ shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH >+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' >+ soname_spec='${libname}${release}${shared_ext}$major' >+ ;; >+ esac >+ # HP-UX runs *really* slowly unless shared libraries are mode 555. >+ postinstall_cmds='chmod 555 $lib' >+ ;; >+ >+irix5* | irix6* | nonstopux*) >+ case $host_os in >+ nonstopux*) version_type=nonstopux ;; >+ *) >+ if test "$lt_cv_prog_gnu_ld" = yes; then >+ version_type=linux >+ else >+ version_type=irix >+ fi ;; >+ esac >+ need_lib_prefix=no >+ need_version=no >+ soname_spec='${libname}${release}${shared_ext}$major' >+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' >+ case $host_os in >+ irix5* | nonstopux*) >+ libsuff= shlibsuff= >+ ;; >+ *) >+ case $LD in # libtool.m4 will add one of these switches to LD >+ *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") >+ libsuff= shlibsuff= libmagic=32-bit;; >+ *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") >+ libsuff=32 shlibsuff=N32 libmagic=N32;; >+ *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") >+ libsuff=64 shlibsuff=64 libmagic=64-bit;; >+ *) libsuff= shlibsuff= libmagic=never-match;; >+ esac >+ ;; >+ esac >+ shlibpath_var=LD_LIBRARY${shlibsuff}_PATH >+ shlibpath_overrides_runpath=no >+ sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" >+ sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" >+ hardcode_into_libs=yes >+ ;; >+ >+# No shared lib support for Linux oldld, aout, or coff. >+linux*oldld* | linux*aout* | linux*coff*) >+ dynamic_linker=no >+ ;; >+ >+# This must be Linux ELF. >+linux*) >+ version_type=linux >+ need_lib_prefix=no >+ need_version=no >+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' >+ soname_spec='${libname}${release}${shared_ext}$major' >+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' >+ shlibpath_var=LD_LIBRARY_PATH >+ shlibpath_overrides_runpath=no >+ # This implies no fast_install, which is unacceptable. >+ # Some rework will be needed to allow for fast_install >+ # before this can be enabled. >+ hardcode_into_libs=yes >+ >+ # Append ld.so.conf contents to the search path >+ if test -f /etc/ld.so.conf; then >+ lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` >+ sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" >+ fi >+ >+ case $host_cpu:$lt_cv_cc_64bit_output in >+ powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes) >+ sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64" >+ sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64" >+ ;; >+ esac >+ >+ # We used to test for /lib/ld.so.1 and disable shared libraries on >+ # powerpc, because MkLinux only supported shared libraries with the >+ # GNU dynamic linker. Since this was broken with cross compilers, >+ # most powerpc-linux boxes support dynamic linking these days and >+ # people can always --disable-shared, the test was removed, and we >+ # assume the GNU/Linux dynamic linker is in use. >+ dynamic_linker='GNU/Linux ld.so' >+ >+ # Find out which ABI we are using (multilib Linux x86_64 hack). >+ libsuff= >+ case "$host_cpu" in >+ x86_64*) >+ echo '[#]line __oline__ "configure"' > conftest.$ac_ext >+ if AC_TRY_EVAL(ac_compile); then >+ case `/usr/bin/file conftest.$ac_objext` in >+ *64-bit*) >+ libsuff=64 >+ ;; >+ esac >+ fi >+ rm -rf conftest* >+ ;; >+ *) >+ ;; >+ esac >+ sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}" >+ sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" >+ ;; >+ >+knetbsd*-gnu) >+ version_type=linux >+ need_lib_prefix=no >+ need_version=no >+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' >+ soname_spec='${libname}${release}${shared_ext}$major' >+ shlibpath_var=LD_LIBRARY_PATH >+ shlibpath_overrides_runpath=no >+ hardcode_into_libs=yes >+ dynamic_linker='GNU ld.so' >+ ;; >+ >+netbsd*) >+ version_type=sunos >+ need_lib_prefix=no >+ need_version=no >+ if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then >+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' >+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' >+ dynamic_linker='NetBSD (a.out) ld.so' >+ else >+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' >+ soname_spec='${libname}${release}${shared_ext}$major' >+ dynamic_linker='NetBSD ld.elf_so' >+ fi >+ shlibpath_var=LD_LIBRARY_PATH >+ shlibpath_overrides_runpath=yes >+ hardcode_into_libs=yes >+ ;; >+ >+newsos6) >+ version_type=linux >+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' >+ shlibpath_var=LD_LIBRARY_PATH >+ shlibpath_overrides_runpath=yes >+ ;; >+ >+nto-qnx*) >+ version_type=linux >+ need_lib_prefix=no >+ need_version=no >+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' >+ soname_spec='${libname}${release}${shared_ext}$major' >+ shlibpath_var=LD_LIBRARY_PATH >+ shlibpath_overrides_runpath=yes >+ ;; >+ >+openbsd*) >+ version_type=sunos >+ need_lib_prefix=no >+ # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. >+ case $host_os in >+ openbsd3.3 | openbsd3.3.*) need_version=yes ;; >+ *) need_version=no ;; >+ esac >+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' >+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' >+ shlibpath_var=LD_LIBRARY_PATH >+ if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then >+ case $host_os in >+ openbsd2.[[89]] | openbsd2.[[89]].*) >+ shlibpath_overrides_runpath=no >+ ;; >+ *) >+ shlibpath_overrides_runpath=yes >+ ;; >+ esac >+ else >+ shlibpath_overrides_runpath=yes >+ fi >+ ;; >+ >+os2*) >+ libname_spec='$name' >+ shrext_cmds=".dll" >+ need_lib_prefix=no >+ library_names_spec='$libname${shared_ext} $libname.a' >+ dynamic_linker='OS/2 ld.exe' >+ shlibpath_var=LIBPATH >+ ;; >+ >+osf3* | osf4* | osf5*) >+ version_type=osf >+ need_lib_prefix=no >+ need_version=no >+ soname_spec='${libname}${release}${shared_ext}$major' >+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' >+ shlibpath_var=LD_LIBRARY_PATH >+ sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" >+ sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" >+ ;; >+ >+sco3.2v5*) >+ version_type=osf >+ soname_spec='${libname}${release}${shared_ext}$major' >+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' >+ shlibpath_var=LD_LIBRARY_PATH >+ ;; >+ >+solaris*) >+ version_type=linux >+ need_lib_prefix=no >+ need_version=no >+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' >+ soname_spec='${libname}${release}${shared_ext}$major' >+ shlibpath_var=LD_LIBRARY_PATH >+ shlibpath_overrides_runpath=yes >+ hardcode_into_libs=yes >+ # ldd complains unless libraries are executable >+ postinstall_cmds='chmod +x $lib' >+ ;; >+ >+sunos4*) >+ version_type=sunos >+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' >+ finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' >+ shlibpath_var=LD_LIBRARY_PATH >+ shlibpath_overrides_runpath=yes >+ if test "$with_gnu_ld" = yes; then >+ need_lib_prefix=no >+ fi >+ need_version=yes >+ ;; >+ >+sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) >+ version_type=linux >+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' >+ soname_spec='${libname}${release}${shared_ext}$major' >+ shlibpath_var=LD_LIBRARY_PATH >+ case $host_vendor in >+ sni) >+ shlibpath_overrides_runpath=no >+ need_lib_prefix=no >+ export_dynamic_flag_spec='${wl}-Blargedynsym' >+ runpath_var=LD_RUN_PATH >+ ;; >+ siemens) >+ need_lib_prefix=no >+ ;; >+ motorola) >+ need_lib_prefix=no >+ need_version=no >+ shlibpath_overrides_runpath=no >+ sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' >+ ;; >+ esac >+ ;; >+ >+sysv4*MP*) >+ if test -d /usr/nec ;then >+ version_type=linux >+ library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' >+ soname_spec='$libname${shared_ext}.$major' >+ shlibpath_var=LD_LIBRARY_PATH >+ fi >+ ;; >+ >+uts4*) >+ version_type=linux >+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' >+ soname_spec='${libname}${release}${shared_ext}$major' >+ shlibpath_var=LD_LIBRARY_PATH >+ ;; >+ >+*) >+ dynamic_linker=no >+ ;; >+esac >+AC_MSG_RESULT([$dynamic_linker]) >+test "$dynamic_linker" = no && can_build_shared=no >+])# AC_LIBTOOL_SYS_DYNAMIC_LINKER >+ >+ >+# _LT_AC_TAGCONFIG >+# ---------------- >+AC_DEFUN([_LT_AC_TAGCONFIG], >+[AC_ARG_WITH([tags], >+ [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@], >+ [include additional configurations @<:@automatic@:>@])], >+ [tagnames="$withval"]) >+ >+if test -f "$ltmain" && test -n "$tagnames"; then >+ if test ! -f "${ofile}"; then >+ AC_MSG_WARN([output file `$ofile' does not exist]) >+ fi >+ >+ if test -z "$LTCC"; then >+ eval "`$SHELL ${ofile} --config | grep '^LTCC='`" >+ if test -z "$LTCC"; then >+ AC_MSG_WARN([output file `$ofile' does not look like a libtool script]) >+ else >+ AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile']) >+ fi >+ fi >+ >+ # Extract list of available tagged configurations in $ofile. >+ # Note that this assumes the entire list is on one line. >+ available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` >+ >+ lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," >+ for tagname in $tagnames; do >+ IFS="$lt_save_ifs" >+ # Check whether tagname contains only valid characters >+ case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in >+ "") ;; >+ *) AC_MSG_ERROR([invalid tag name: $tagname]) >+ ;; >+ esac >+ >+ if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null >+ then >+ AC_MSG_ERROR([tag name \"$tagname\" already exists]) >+ fi >+ >+ # Update the list of available tags. >+ if test -n "$tagname"; then >+ echo appending configuration tag \"$tagname\" to $ofile >+ >+ case $tagname in >+ CXX) >+ if test -n "$CXX" && ( test "X$CXX" != "Xno" && >+ ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || >+ (test "X$CXX" != "Xg++"))) ; then >+ AC_LIBTOOL_LANG_CXX_CONFIG >+ else >+ tagname="" >+ fi >+ ;; >+ >+ F77) >+ if test -n "$F77" && test "X$F77" != "Xno"; then >+ AC_LIBTOOL_LANG_F77_CONFIG >+ else >+ tagname="" >+ fi >+ ;; >+ >+ GCJ) >+ if test -n "$GCJ" && test "X$GCJ" != "Xno"; then >+ AC_LIBTOOL_LANG_GCJ_CONFIG >+ else >+ tagname="" >+ fi >+ ;; >+ >+ RC) >+ AC_LIBTOOL_LANG_RC_CONFIG >+ ;; >+ >+ *) >+ AC_MSG_ERROR([Unsupported tag name: $tagname]) >+ ;; >+ esac >+ >+ # Append the new tag name to the list of available tags. >+ if test -n "$tagname" ; then >+ available_tags="$available_tags $tagname" >+ fi >+ fi >+ done >+ IFS="$lt_save_ifs" >+ >+ # Now substitute the updated list of available tags. >+ if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then >+ mv "${ofile}T" "$ofile" >+ chmod +x "$ofile" >+ else >+ rm -f "${ofile}T" >+ AC_MSG_ERROR([unable to update list of available tagged configurations.]) >+ fi >+fi >+])# _LT_AC_TAGCONFIG >+ >+ >+# AC_LIBTOOL_DLOPEN >+# ----------------- >+# enable checks for dlopen support >+AC_DEFUN([AC_LIBTOOL_DLOPEN], >+ [AC_BEFORE([$0],[AC_LIBTOOL_SETUP]) >+])# AC_LIBTOOL_DLOPEN >+ >+ >+# AC_LIBTOOL_WIN32_DLL >+# -------------------- >+# declare package support for building win32 dll's >+AC_DEFUN([AC_LIBTOOL_WIN32_DLL], >+[AC_BEFORE([$0], [AC_LIBTOOL_SETUP]) >+])# AC_LIBTOOL_WIN32_DLL >+ >+ >+# AC_ENABLE_SHARED([DEFAULT]) >+# --------------------------- >+# implement the --enable-shared flag >+# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. >+AC_DEFUN([AC_ENABLE_SHARED], >+[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl >+AC_ARG_ENABLE([shared], >+ [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@], >+ [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])], >+ [p=${PACKAGE-default} >+ case $enableval in >+ yes) enable_shared=yes ;; >+ no) enable_shared=no ;; >+ *) >+ enable_shared=no >+ # Look at the argument we got. We use all the common list separators. >+ lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," >+ for pkg in $enableval; do >+ IFS="$lt_save_ifs" >+ if test "X$pkg" = "X$p"; then >+ enable_shared=yes >+ fi >+ done >+ IFS="$lt_save_ifs" >+ ;; >+ esac], >+ [enable_shared=]AC_ENABLE_SHARED_DEFAULT) >+])# AC_ENABLE_SHARED >+ >+ >+# AC_DISABLE_SHARED >+# ----------------- >+#- set the default shared flag to --disable-shared >+AC_DEFUN([AC_DISABLE_SHARED], >+[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl >+AC_ENABLE_SHARED(no) >+])# AC_DISABLE_SHARED >+ >+ >+# AC_ENABLE_STATIC([DEFAULT]) >+# --------------------------- >+# implement the --enable-static flag >+# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. >+AC_DEFUN([AC_ENABLE_STATIC], >+[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl >+AC_ARG_ENABLE([static], >+ [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@], >+ [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])], >+ [p=${PACKAGE-default} >+ case $enableval in >+ yes) enable_static=yes ;; >+ no) enable_static=no ;; >+ *) >+ enable_static=no >+ # Look at the argument we got. We use all the common list separators. >+ lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," >+ for pkg in $enableval; do >+ IFS="$lt_save_ifs" >+ if test "X$pkg" = "X$p"; then >+ enable_static=yes >+ fi >+ done >+ IFS="$lt_save_ifs" >+ ;; >+ esac], >+ [enable_static=]AC_ENABLE_STATIC_DEFAULT) >+])# AC_ENABLE_STATIC >+ >+ >+# AC_DISABLE_STATIC >+# ----------------- >+# set the default static flag to --disable-static >+AC_DEFUN([AC_DISABLE_STATIC], >+[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl >+AC_ENABLE_STATIC(no) >+])# AC_DISABLE_STATIC >+ >+ >+# AC_ENABLE_FAST_INSTALL([DEFAULT]) >+# --------------------------------- >+# implement the --enable-fast-install flag >+# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. >+AC_DEFUN([AC_ENABLE_FAST_INSTALL], >+[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl >+AC_ARG_ENABLE([fast-install], >+ [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], >+ [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], >+ [p=${PACKAGE-default} >+ case $enableval in >+ yes) enable_fast_install=yes ;; >+ no) enable_fast_install=no ;; >+ *) >+ enable_fast_install=no >+ # Look at the argument we got. We use all the common list separators. >+ lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," >+ for pkg in $enableval; do >+ IFS="$lt_save_ifs" >+ if test "X$pkg" = "X$p"; then >+ enable_fast_install=yes >+ fi >+ done >+ IFS="$lt_save_ifs" >+ ;; >+ esac], >+ [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT) >+])# AC_ENABLE_FAST_INSTALL >+ >+ >+# AC_DISABLE_FAST_INSTALL >+# ----------------------- >+# set the default to --disable-fast-install >+AC_DEFUN([AC_DISABLE_FAST_INSTALL], >+[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl >+AC_ENABLE_FAST_INSTALL(no) >+])# AC_DISABLE_FAST_INSTALL >+ >+ >+# AC_LIBTOOL_PICMODE([MODE]) >+# -------------------------- >+# implement the --with-pic flag >+# MODE is either `yes' or `no'. If omitted, it defaults to `both'. >+AC_DEFUN([AC_LIBTOOL_PICMODE], >+[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl >+pic_mode=ifelse($#,1,$1,default) >+])# AC_LIBTOOL_PICMODE >+ >+ >+# AC_PROG_EGREP >+# ------------- >+# This is predefined starting with Autoconf 2.54, so this conditional >+# definition can be removed once we require Autoconf 2.54 or later. >+m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP], >+[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep], >+ [if echo a | (grep -E '(a|b)') >/dev/null 2>&1 >+ then ac_cv_prog_egrep='grep -E' >+ else ac_cv_prog_egrep='egrep' >+ fi]) >+ EGREP=$ac_cv_prog_egrep >+ AC_SUBST([EGREP]) >+])]) >+ >+ >+# AC_PATH_TOOL_PREFIX >+# ------------------- >+# find a file program which can recognise shared library >+AC_DEFUN([AC_PATH_TOOL_PREFIX], >+[AC_REQUIRE([AC_PROG_EGREP])dnl >+AC_MSG_CHECKING([for $1]) >+AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, >+[case $MAGIC_CMD in >+[[\\/*] | ?:[\\/]*]) >+ lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. >+ ;; >+*) >+ lt_save_MAGIC_CMD="$MAGIC_CMD" >+ lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR >+dnl $ac_dummy forces splitting on constant user-supplied paths. >+dnl POSIX.2 word splitting is done only on the output of word expansions, >+dnl not every word. This closes a longstanding sh security hole. >+ ac_dummy="ifelse([$2], , $PATH, [$2])" >+ for ac_dir in $ac_dummy; do >+ IFS="$lt_save_ifs" >+ test -z "$ac_dir" && ac_dir=. >+ if test -f $ac_dir/$1; then >+ lt_cv_path_MAGIC_CMD="$ac_dir/$1" >+ if test -n "$file_magic_test_file"; then >+ case $deplibs_check_method in >+ "file_magic "*) >+ file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" >+ MAGIC_CMD="$lt_cv_path_MAGIC_CMD" >+ if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | >+ $EGREP "$file_magic_regex" > /dev/null; then >+ : >+ else >+ cat <<EOF 1>&2 >+ >+*** Warning: the command libtool uses to detect shared libraries, >+*** $file_magic_cmd, produces output that libtool cannot recognize. >+*** The result is that libtool may fail to recognize shared libraries >+*** as such. This will affect the creation of libtool libraries that >+*** depend on shared libraries, but programs linked with such libtool >+*** libraries will work regardless of this problem. Nevertheless, you >+*** may want to report the problem to your system manager and/or to >+*** bug-libtool@gnu.org >+ >+EOF >+ fi ;; >+ esac >+ fi >+ break >+ fi >+ done >+ IFS="$lt_save_ifs" >+ MAGIC_CMD="$lt_save_MAGIC_CMD" >+ ;; >+esac]) >+MAGIC_CMD="$lt_cv_path_MAGIC_CMD" >+if test -n "$MAGIC_CMD"; then >+ AC_MSG_RESULT($MAGIC_CMD) >+else >+ AC_MSG_RESULT(no) >+fi >+])# AC_PATH_TOOL_PREFIX >+ >+ >+# AC_PATH_MAGIC >+# ------------- >+# find a file program which can recognise a shared library >+AC_DEFUN([AC_PATH_MAGIC], >+[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) >+if test -z "$lt_cv_path_MAGIC_CMD"; then >+ if test -n "$ac_tool_prefix"; then >+ AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) >+ else >+ MAGIC_CMD=: >+ fi >+fi >+])# AC_PATH_MAGIC >+ >+ >+# AC_PROG_LD >+# ---------- >+# find the pathname to the GNU or non-GNU linker >+AC_DEFUN([AC_PROG_LD], >+[AC_ARG_WITH([gnu-ld], >+ [AC_HELP_STRING([--with-gnu-ld], >+ [assume the C compiler uses GNU ld @<:@default=no@:>@])], >+ [test "$withval" = no || with_gnu_ld=yes], >+ [with_gnu_ld=no]) >+AC_REQUIRE([LT_AC_PROG_SED])dnl >+AC_REQUIRE([AC_PROG_CC])dnl >+AC_REQUIRE([AC_CANONICAL_HOST])dnl >+AC_REQUIRE([AC_CANONICAL_BUILD])dnl >+ac_prog=ld >+if test "$GCC" = yes; then >+ # Check if gcc -print-prog-name=ld gives a path. >+ AC_MSG_CHECKING([for ld used by $CC]) >+ case $host in >+ *-*-mingw*) >+ # gcc leaves a trailing carriage return which upsets mingw >+ ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; >+ *) >+ ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; >+ esac >+ case $ac_prog in >+ # Accept absolute paths. >+ [[\\/]]* | ?:[[\\/]]*) >+ re_direlt='/[[^/]][[^/]]*/\.\./' >+ # Canonicalize the pathname of ld >+ ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` >+ while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do >+ ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` >+ done >+ test -z "$LD" && LD="$ac_prog" >+ ;; >+ "") >+ # If it fails, then pretend we aren't using GCC. >+ ac_prog=ld >+ ;; >+ *) >+ # If it is relative, then search for the first ld in PATH. >+ with_gnu_ld=unknown >+ ;; >+ esac >+elif test "$with_gnu_ld" = yes; then >+ AC_MSG_CHECKING([for GNU ld]) >+else >+ AC_MSG_CHECKING([for non-GNU ld]) >+fi >+AC_CACHE_VAL(lt_cv_path_LD, >+[if test -z "$LD"; then >+ lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR >+ for ac_dir in $PATH; do >+ IFS="$lt_save_ifs" >+ test -z "$ac_dir" && ac_dir=. >+ if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then >+ lt_cv_path_LD="$ac_dir/$ac_prog" >+ # Check to see if the program is GNU ld. I'd rather use --version, >+ # but apparently some GNU ld's only accept -v. >+ # Break only if it was the GNU/non-GNU ld that we prefer. >+ case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in >+ *GNU* | *'with BFD'*) >+ test "$with_gnu_ld" != no && break >+ ;; >+ *) >+ test "$with_gnu_ld" != yes && break >+ ;; >+ esac >+ fi >+ done >+ IFS="$lt_save_ifs" >+else >+ lt_cv_path_LD="$LD" # Let the user override the test with a path. >+fi]) >+LD="$lt_cv_path_LD" >+if test -n "$LD"; then >+ AC_MSG_RESULT($LD) >+else >+ AC_MSG_RESULT(no) >+fi >+test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) >+AC_PROG_LD_GNU >+])# AC_PROG_LD >+ >+ >+# AC_PROG_LD_GNU >+# -------------- >+AC_DEFUN([AC_PROG_LD_GNU], >+[AC_REQUIRE([AC_PROG_EGREP])dnl >+AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, >+[# I'd rather use --version here, but apparently some GNU ld's only accept -v. >+case `$LD -v 2>&1 </dev/null` in >+*GNU* | *'with BFD'*) >+ lt_cv_prog_gnu_ld=yes >+ ;; >+*) >+ lt_cv_prog_gnu_ld=no >+ ;; >+esac]) >+with_gnu_ld=$lt_cv_prog_gnu_ld >+])# AC_PROG_LD_GNU >+ >+ >+# AC_PROG_LD_RELOAD_FLAG >+# ---------------------- >+# find reload flag for linker >+# -- PORTME Some linkers may need a different reload flag. >+AC_DEFUN([AC_PROG_LD_RELOAD_FLAG], >+[AC_CACHE_CHECK([for $LD option to reload object files], >+ lt_cv_ld_reload_flag, >+ [lt_cv_ld_reload_flag='-r']) >+reload_flag=$lt_cv_ld_reload_flag >+case $reload_flag in >+"" | " "*) ;; >+*) reload_flag=" $reload_flag" ;; >+esac >+reload_cmds='$LD$reload_flag -o $output$reload_objs' >+case $host_os in >+ darwin*) >+ if test "$GCC" = yes; then >+ reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs' >+ else >+ reload_cmds='$LD$reload_flag -o $output$reload_objs' >+ fi >+ ;; >+esac >+])# AC_PROG_LD_RELOAD_FLAG >+ >+ >+# AC_DEPLIBS_CHECK_METHOD >+# ----------------------- >+# how to check for library dependencies >+# -- PORTME fill in with the dynamic library characteristics >+AC_DEFUN([AC_DEPLIBS_CHECK_METHOD], >+[AC_CACHE_CHECK([how to recognise dependent libraries], >+lt_cv_deplibs_check_method, >+[lt_cv_file_magic_cmd='$MAGIC_CMD' >+lt_cv_file_magic_test_file= >+lt_cv_deplibs_check_method='unknown' >+# Need to set the preceding variable on all platforms that support >+# interlibrary dependencies. >+# 'none' -- dependencies not supported. >+# `unknown' -- same as none, but documents that we really don't know. >+# 'pass_all' -- all dependencies passed with no checks. >+# 'test_compile' -- check by making test program. >+# 'file_magic [[regex]]' -- check by looking for files in library path >+# which responds to the $file_magic_cmd with a given extended regex. >+# If you have `file' or equivalent on your system and you're not sure >+# whether `pass_all' will *always* work, you probably want this one. >+ >+case $host_os in >+aix4* | aix5*) >+ lt_cv_deplibs_check_method=pass_all >+ ;; >+ >+beos*) >+ lt_cv_deplibs_check_method=pass_all >+ ;; >+ >+bsdi[[45]]*) >+ lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' >+ lt_cv_file_magic_cmd='/usr/bin/file -L' >+ lt_cv_file_magic_test_file=/shlib/libc.so >+ ;; >+ >+cygwin*) >+ # func_win32_libid is a shell function defined in ltmain.sh >+ lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' >+ lt_cv_file_magic_cmd='func_win32_libid' >+ ;; >+ >+mingw* | pw32*) >+ # Base MSYS/MinGW do not provide the 'file' command needed by >+ # func_win32_libid shell function, so use a weaker test based on 'objdump'. >+ lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' >+ lt_cv_file_magic_cmd='$OBJDUMP -f' >+ ;; >+ >+darwin* | rhapsody*) >+ lt_cv_deplibs_check_method=pass_all >+ ;; >+ >+freebsd* | kfreebsd*-gnu | dragonfly*) >+ if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then >+ case $host_cpu in >+ i*86 ) >+ # Not sure whether the presence of OpenBSD here was a mistake. >+ # Let's accept both of them until this is cleared up. >+ lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' >+ lt_cv_file_magic_cmd=/usr/bin/file >+ lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` >+ ;; >+ esac >+ else >+ lt_cv_deplibs_check_method=pass_all >+ fi >+ ;; >+ >+gnu*) >+ lt_cv_deplibs_check_method=pass_all >+ ;; >+ >+hpux10.20* | hpux11*) >+ lt_cv_file_magic_cmd=/usr/bin/file >+ case "$host_cpu" in >+ ia64*) >+ lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' >+ lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so >+ ;; >+ hppa*64*) >+ [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]'] >+ lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl >+ ;; >+ *) >+ lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library' >+ lt_cv_file_magic_test_file=/usr/lib/libc.sl >+ ;; >+ esac >+ ;; >+ >+irix5* | irix6* | nonstopux*) >+ case $LD in >+ *-32|*"-32 ") libmagic=32-bit;; >+ *-n32|*"-n32 ") libmagic=N32;; >+ *-64|*"-64 ") libmagic=64-bit;; >+ *) libmagic=never-match;; >+ esac >+ lt_cv_deplibs_check_method=pass_all >+ ;; >+ >+# This must be Linux ELF. >+linux*) >+ lt_cv_deplibs_check_method=pass_all >+ ;; >+ >+netbsd*) >+ if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then >+ lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' >+ else >+ lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' >+ fi >+ ;; >+ >+newos6*) >+ lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' >+ lt_cv_file_magic_cmd=/usr/bin/file >+ lt_cv_file_magic_test_file=/usr/lib/libnls.so >+ ;; >+ >+nto-qnx*) >+ lt_cv_deplibs_check_method=unknown >+ ;; >+ >+openbsd*) >+ if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then >+ lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' >+ else >+ lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' >+ fi >+ ;; >+ >+osf3* | osf4* | osf5*) >+ lt_cv_deplibs_check_method=pass_all >+ ;; >+ >+sco3.2v5*) >+ lt_cv_deplibs_check_method=pass_all >+ ;; >+ >+solaris*) >+ lt_cv_deplibs_check_method=pass_all >+ ;; >+ >+sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) >+ case $host_vendor in >+ motorola) >+ 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]]' >+ lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` >+ ;; >+ ncr) >+ lt_cv_deplibs_check_method=pass_all >+ ;; >+ sequent) >+ lt_cv_file_magic_cmd='/bin/file' >+ lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' >+ ;; >+ sni) >+ lt_cv_file_magic_cmd='/bin/file' >+ lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" >+ lt_cv_file_magic_test_file=/lib/libc.so >+ ;; >+ siemens) >+ lt_cv_deplibs_check_method=pass_all >+ ;; >+ esac >+ ;; >+ >+sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*) >+ lt_cv_deplibs_check_method=pass_all >+ ;; >+esac >+]) >+file_magic_cmd=$lt_cv_file_magic_cmd >+deplibs_check_method=$lt_cv_deplibs_check_method >+test -z "$deplibs_check_method" && deplibs_check_method=unknown >+])# AC_DEPLIBS_CHECK_METHOD >+ >+ >+# AC_PROG_NM >+# ---------- >+# find the pathname to a BSD-compatible name lister >+AC_DEFUN([AC_PROG_NM], >+[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM, >+[if test -n "$NM"; then >+ # Let the user override the test. >+ lt_cv_path_NM="$NM" >+else >+ lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR >+ for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do >+ IFS="$lt_save_ifs" >+ test -z "$ac_dir" && ac_dir=. >+ tmp_nm="$ac_dir/${ac_tool_prefix}nm" >+ if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then >+ # Check to see if the nm accepts a BSD-compat flag. >+ # Adding the `sed 1q' prevents false positives on HP-UX, which says: >+ # nm: unknown option "B" ignored >+ # Tru64's nm complains that /dev/null is an invalid object file >+ case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in >+ */dev/null* | *'Invalid file or object type'*) >+ lt_cv_path_NM="$tmp_nm -B" >+ break >+ ;; >+ *) >+ case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in >+ */dev/null*) >+ lt_cv_path_NM="$tmp_nm -p" >+ break >+ ;; >+ *) >+ lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but >+ continue # so that we can try to find one that supports BSD flags >+ ;; >+ esac >+ esac >+ fi >+ done >+ IFS="$lt_save_ifs" >+ test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm >+fi]) >+NM="$lt_cv_path_NM" >+])# AC_PROG_NM >+ >+ >+# AC_CHECK_LIBM >+# ------------- >+# check for math library >+AC_DEFUN([AC_CHECK_LIBM], >+[AC_REQUIRE([AC_CANONICAL_HOST])dnl >+LIBM= >+case $host in >+*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*) >+ # These system don't have libm, or don't need it >+ ;; >+*-ncr-sysv4.3*) >+ AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") >+ AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") >+ ;; >+*) >+ AC_CHECK_LIB(m, cos, LIBM="-lm") >+ ;; >+esac >+])# AC_CHECK_LIBM >+ >+ >+# AC_LIBLTDL_CONVENIENCE([DIRECTORY]) >+# ----------------------------------- >+# sets LIBLTDL to the link flags for the libltdl convenience library and >+# LTDLINCL to the include flags for the libltdl header and adds >+# --enable-ltdl-convenience to the configure arguments. Note that LIBLTDL >+# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If >+# DIRECTORY is not provided, it is assumed to be `libltdl'. LIBLTDL will >+# be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with >+# '${top_srcdir}/' (note the single quotes!). If your package is not >+# flat and you're not using automake, define top_builddir and >+# top_srcdir appropriately in the Makefiles. >+AC_DEFUN([AC_LIBLTDL_CONVENIENCE], >+[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl >+ case $enable_ltdl_convenience in >+ no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;; >+ "") enable_ltdl_convenience=yes >+ ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; >+ esac >+ LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la >+ LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) >+ # For backwards non-gettext consistent compatibility... >+ INCLTDL="$LTDLINCL" >+])# AC_LIBLTDL_CONVENIENCE >+ >+ >+# AC_LIBLTDL_INSTALLABLE([DIRECTORY]) >+# ----------------------------------- >+# sets LIBLTDL to the link flags for the libltdl installable library and >+# LTDLINCL to the include flags for the libltdl header and adds >+# --enable-ltdl-install to the configure arguments. Note that LIBLTDL >+# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If >+# DIRECTORY is not provided and an installed libltdl is not found, it is >+# assumed to be `libltdl'. LIBLTDL will be prefixed with '${top_builddir}/' >+# and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single >+# quotes!). If your package is not flat and you're not using automake, >+# define top_builddir and top_srcdir appropriately in the Makefiles. >+# In the future, this macro may have to be called after AC_PROG_LIBTOOL. >+AC_DEFUN([AC_LIBLTDL_INSTALLABLE], >+[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl >+ AC_CHECK_LIB(ltdl, lt_dlinit, >+ [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no], >+ [if test x"$enable_ltdl_install" = xno; then >+ AC_MSG_WARN([libltdl not installed, but installation disabled]) >+ else >+ enable_ltdl_install=yes >+ fi >+ ]) >+ if test x"$enable_ltdl_install" = x"yes"; then >+ ac_configure_args="$ac_configure_args --enable-ltdl-install" >+ LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la >+ LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) >+ else >+ ac_configure_args="$ac_configure_args --enable-ltdl-install=no" >+ LIBLTDL="-lltdl" >+ LTDLINCL= >+ fi >+ # For backwards non-gettext consistent compatibility... >+ INCLTDL="$LTDLINCL" >+])# AC_LIBLTDL_INSTALLABLE >+ >+ >+# AC_LIBTOOL_CXX >+# -------------- >+# enable support for C++ libraries >+AC_DEFUN([AC_LIBTOOL_CXX], >+[AC_REQUIRE([_LT_AC_LANG_CXX]) >+])# AC_LIBTOOL_CXX >+ >+ >+# _LT_AC_LANG_CXX >+# --------------- >+AC_DEFUN([_LT_AC_LANG_CXX], >+[AC_REQUIRE([AC_PROG_CXX]) >+AC_REQUIRE([_LT_AC_PROG_CXXCPP]) >+_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX]) >+])# _LT_AC_LANG_CXX >+ >+# _LT_AC_PROG_CXXCPP >+# --------------- >+AC_DEFUN([_LT_AC_PROG_CXXCPP], >+[ >+AC_REQUIRE([AC_PROG_CXX]) >+if test -n "$CXX" && ( test "X$CXX" != "Xno" && >+ ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || >+ (test "X$CXX" != "Xg++"))) ; then >+ AC_PROG_CXXCPP >+fi >+])# _LT_AC_PROG_CXXCPP >+ >+# AC_LIBTOOL_F77 >+# -------------- >+# enable support for Fortran 77 libraries >+AC_DEFUN([AC_LIBTOOL_F77], >+[AC_REQUIRE([_LT_AC_LANG_F77]) >+])# AC_LIBTOOL_F77 >+ >+ >+# _LT_AC_LANG_F77 >+# --------------- >+AC_DEFUN([_LT_AC_LANG_F77], >+[AC_REQUIRE([AC_PROG_F77]) >+_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77]) >+])# _LT_AC_LANG_F77 >+ >+ >+# AC_LIBTOOL_GCJ >+# -------------- >+# enable support for GCJ libraries >+AC_DEFUN([AC_LIBTOOL_GCJ], >+[AC_REQUIRE([_LT_AC_LANG_GCJ]) >+])# AC_LIBTOOL_GCJ >+ >+ >+# _LT_AC_LANG_GCJ >+# --------------- >+AC_DEFUN([_LT_AC_LANG_GCJ], >+[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[], >+ [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[], >+ [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[], >+ [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])], >+ [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])], >+ [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])]) >+_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ]) >+])# _LT_AC_LANG_GCJ >+ >+ >+# AC_LIBTOOL_RC >+# -------------- >+# enable support for Windows resource files >+AC_DEFUN([AC_LIBTOOL_RC], >+[AC_REQUIRE([LT_AC_PROG_RC]) >+_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC]) >+])# AC_LIBTOOL_RC >+ >+ >+# AC_LIBTOOL_LANG_C_CONFIG >+# ------------------------ >+# Ensure that the configuration vars for the C compiler are >+# suitably defined. Those variables are subsequently used by >+# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. >+AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG]) >+AC_DEFUN([_LT_AC_LANG_C_CONFIG], >+[lt_save_CC="$CC" >+AC_LANG_PUSH(C) >+ >+# Source file extension for C test sources. >+ac_ext=c >+ >+# Object file extension for compiled C test sources. >+objext=o >+_LT_AC_TAGVAR(objext, $1)=$objext >+ >+# Code to be used in simple compile tests >+lt_simple_compile_test_code="int some_variable = 0;\n" >+ >+# Code to be used in simple link tests >+lt_simple_link_test_code='int main(){return(0);}\n' >+ >+_LT_AC_SYS_COMPILER >+ >+# save warnings/boilerplate of simple test code >+_LT_COMPILER_BOILERPLATE >+_LT_LINKER_BOILERPLATE >+ >+# >+# Check for any special shared library compilation flags. >+# >+_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)= >+if test "$GCC" = no; then >+ case $host_os in >+ sco3.2v5*) >+ _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf' >+ ;; >+ esac >+fi >+if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then >+ AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries]) >+ if echo "$old_CC $old_CFLAGS " | grep "[[ ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[ ]]" >/dev/null; then : >+ else >+ AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure]) >+ _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no >+ fi >+fi >+ >+ >+# >+# Check to make sure the static flag actually works. >+# >+AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works], >+ _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1), >+ $_LT_AC_TAGVAR(lt_prog_compiler_static, $1), >+ [], >+ [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=]) >+ >+ >+AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) >+AC_LIBTOOL_PROG_COMPILER_PIC($1) >+AC_LIBTOOL_PROG_CC_C_O($1) >+AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) >+AC_LIBTOOL_PROG_LD_SHLIBS($1) >+AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) >+AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) >+AC_LIBTOOL_SYS_LIB_STRIP >+AC_LIBTOOL_DLOPEN_SELF($1) >+ >+# Report which librarie types wil actually be built >+AC_MSG_CHECKING([if libtool supports shared libraries]) >+AC_MSG_RESULT([$can_build_shared]) >+ >+AC_MSG_CHECKING([whether to build shared libraries]) >+test "$can_build_shared" = "no" && enable_shared=no >+ >+# On AIX, shared libraries and static libraries use the same namespace, and >+# are all built from PIC. >+case "$host_os" in >+aix3*) >+ test "$enable_shared" = yes && enable_static=no >+ if test -n "$RANLIB"; then >+ archive_cmds="$archive_cmds~\$RANLIB \$lib" >+ postinstall_cmds='$RANLIB $lib' >+ fi >+ ;; >+ >+aix4* | aix5*) >+ if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then >+ test "$enable_shared" = yes && enable_static=no >+ fi >+ ;; >+esac >+AC_MSG_RESULT([$enable_shared]) >+ >+AC_MSG_CHECKING([whether to build static libraries]) >+# Make sure either enable_shared or enable_static is yes. >+test "$enable_shared" = yes || enable_static=yes >+AC_MSG_RESULT([$enable_static]) >+ >+AC_LIBTOOL_CONFIG($1) >+ >+AC_LANG_POP >+CC="$lt_save_CC" >+])# AC_LIBTOOL_LANG_C_CONFIG >+ >+ >+# AC_LIBTOOL_LANG_CXX_CONFIG >+# -------------------------- >+# Ensure that the configuration vars for the C compiler are >+# suitably defined. Those variables are subsequently used by >+# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. >+AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)]) >+AC_DEFUN([_LT_AC_LANG_CXX_CONFIG], >+[AC_LANG_PUSH(C++) >+AC_REQUIRE([AC_PROG_CXX]) >+AC_REQUIRE([_LT_AC_PROG_CXXCPP]) >+ >+_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no >+_LT_AC_TAGVAR(allow_undefined_flag, $1)= >+_LT_AC_TAGVAR(always_export_symbols, $1)=no >+_LT_AC_TAGVAR(archive_expsym_cmds, $1)= >+_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= >+_LT_AC_TAGVAR(hardcode_direct, $1)=no >+_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= >+_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= >+_LT_AC_TAGVAR(hardcode_libdir_separator, $1)= >+_LT_AC_TAGVAR(hardcode_minus_L, $1)=no >+_LT_AC_TAGVAR(hardcode_automatic, $1)=no >+_LT_AC_TAGVAR(module_cmds, $1)= >+_LT_AC_TAGVAR(module_expsym_cmds, $1)= >+_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown >+_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds >+_LT_AC_TAGVAR(no_undefined_flag, $1)= >+_LT_AC_TAGVAR(whole_archive_flag_spec, $1)= >+_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no >+ >+# Dependencies to place before and after the object being linked: >+_LT_AC_TAGVAR(predep_objects, $1)= >+_LT_AC_TAGVAR(postdep_objects, $1)= >+_LT_AC_TAGVAR(predeps, $1)= >+_LT_AC_TAGVAR(postdeps, $1)= >+_LT_AC_TAGVAR(compiler_lib_search_path, $1)= >+ >+# Source file extension for C++ test sources. >+ac_ext=cc >+ >+# Object file extension for compiled C++ test sources. >+objext=o >+_LT_AC_TAGVAR(objext, $1)=$objext >+ >+# Code to be used in simple compile tests >+lt_simple_compile_test_code="int some_variable = 0;\n" >+ >+# Code to be used in simple link tests >+lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' >+ >+# ltmain only uses $CC for tagged configurations so make sure $CC is set. >+_LT_AC_SYS_COMPILER >+ >+# save warnings/boilerplate of simple test code >+_LT_COMPILER_BOILERPLATE >+_LT_LINKER_BOILERPLATE >+ >+# Allow CC to be a program name with arguments. >+lt_save_CC=$CC >+lt_save_LD=$LD >+lt_save_GCC=$GCC >+GCC=$GXX >+lt_save_with_gnu_ld=$with_gnu_ld >+lt_save_path_LD=$lt_cv_path_LD >+if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then >+ lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx >+else >+ unset lt_cv_prog_gnu_ld >+fi >+if test -n "${lt_cv_path_LDCXX+set}"; then >+ lt_cv_path_LD=$lt_cv_path_LDCXX >+else >+ unset lt_cv_path_LD >+fi >+test -z "${LDCXX+set}" || LD=$LDCXX >+CC=${CXX-"c++"} >+compiler=$CC >+_LT_AC_TAGVAR(compiler, $1)=$CC >+_LT_CC_BASENAME([$compiler]) >+ >+# We don't want -fno-exception wen compiling C++ code, so set the >+# no_builtin_flag separately >+if test "$GXX" = yes; then >+ _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' >+else >+ _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= >+fi >+ >+if test "$GXX" = yes; then >+ # Set up default GNU C++ configuration >+ >+ AC_PROG_LD >+ >+ # Check if GNU C++ uses GNU ld as the underlying linker, since the >+ # archiving commands below assume that GNU ld is being used. >+ if test "$with_gnu_ld" = yes; then >+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' >+ _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' >+ >+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' >+ _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' >+ >+ # If archive_cmds runs LD, not CC, wlarc should be empty >+ # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to >+ # investigate it a little bit more. (MM) >+ wlarc='${wl}' >+ >+ # ancient GNU ld didn't support --whole-archive et. al. >+ if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ >+ grep 'no-whole-archive' > /dev/null; then >+ _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' >+ else >+ _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= >+ fi >+ else >+ with_gnu_ld=no >+ wlarc= >+ >+ # A generic and very simple default shared library creation >+ # command for GNU C++ for the case where it uses the native >+ # linker, instead of GNU ld. If possible, this setting should >+ # overridden to take advantage of the native linker features on >+ # the platform it is being used on. >+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' >+ fi >+ >+ # Commands to make compiler produce verbose output that lists >+ # what "hidden" libraries, object files and flags are used when >+ # linking a shared library. >+ output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' >+ >+else >+ GXX=no >+ with_gnu_ld=no >+ wlarc= >+fi >+ >+# PORTME: fill in a description of your system's C++ link characteristics >+AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) >+_LT_AC_TAGVAR(ld_shlibs, $1)=yes >+case $host_os in >+ aix3*) >+ # FIXME: insert proper C++ library support >+ _LT_AC_TAGVAR(ld_shlibs, $1)=no >+ ;; >+ aix4* | aix5*) >+ if test "$host_cpu" = ia64; then >+ # On IA64, the linker does run time linking by default, so we don't >+ # have to do anything special. >+ aix_use_runtimelinking=no >+ exp_sym_flag='-Bexport' >+ no_entry_flag="" >+ else >+ aix_use_runtimelinking=no >+ >+ # Test if we are trying to use run time linking or normal >+ # AIX style linking. If -brtl is somewhere in LDFLAGS, we >+ # need to do runtime linking. >+ case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*) >+ for ld_flag in $LDFLAGS; do >+ case $ld_flag in >+ *-brtl*) >+ aix_use_runtimelinking=yes >+ break >+ ;; >+ esac >+ done >+ esac >+ >+ exp_sym_flag='-bexport' >+ no_entry_flag='-bnoentry' >+ fi >+ >+ # When large executables or shared objects are built, AIX ld can >+ # have problems creating the table of contents. If linking a library >+ # or program results in "error TOC overflow" add -mminimal-toc to >+ # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not >+ # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. >+ >+ _LT_AC_TAGVAR(archive_cmds, $1)='' >+ _LT_AC_TAGVAR(hardcode_direct, $1)=yes >+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' >+ _LT_AC_TAGVAR(link_all_deplibs, $1)=yes >+ >+ if test "$GXX" = yes; then >+ case $host_os in aix4.[[012]]|aix4.[[012]].*) >+ # We only want to do this on AIX 4.2 and lower, the check >+ # below for broken collect2 doesn't work under 4.3+ >+ collect2name=`${CC} -print-prog-name=collect2` >+ if test -f "$collect2name" && \ >+ strings "$collect2name" | grep resolve_lib_name >/dev/null >+ then >+ # We have reworked collect2 >+ _LT_AC_TAGVAR(hardcode_direct, $1)=yes >+ else >+ # We have old collect2 >+ _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported >+ # It fails to find uninstalled libraries when the uninstalled >+ # path is not listed in the libpath. Setting hardcode_minus_L >+ # to unsupported forces relinking >+ _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes >+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' >+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= >+ fi >+ esac >+ shared_flag='-shared' >+ if test "$aix_use_runtimelinking" = yes; then >+ shared_flag="$shared_flag "'${wl}-G' >+ fi >+ else >+ # not using gcc >+ if test "$host_cpu" = ia64; then >+ # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release >+ # chokes on -Wl,-G. The following line is correct: >+ shared_flag='-G' >+ else >+ if test "$aix_use_runtimelinking" = yes; then >+ shared_flag='${wl}-G' >+ else >+ shared_flag='${wl}-bM:SRE' >+ fi >+ fi >+ fi >+ >+ # It seems that -bexpall does not export symbols beginning with >+ # underscore (_), so it is better to generate a list of symbols to export. >+ _LT_AC_TAGVAR(always_export_symbols, $1)=yes >+ if test "$aix_use_runtimelinking" = yes; then >+ # Warning - without using the other runtime loading flags (-brtl), >+ # -berok will link without error, but may produce a broken library. >+ _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' >+ # Determine the default libpath from the value encoded in an empty executable. >+ _LT_AC_SYS_LIBPATH_AIX >+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" >+ >+ _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" >+ else >+ if test "$host_cpu" = ia64; then >+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' >+ _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" >+ _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" >+ else >+ # Determine the default libpath from the value encoded in an empty executable. >+ _LT_AC_SYS_LIBPATH_AIX >+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" >+ # Warning - without using the other run time loading flags, >+ # -berok will link without error, but may produce a broken library. >+ _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' >+ _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' >+ # -bexpall does not export symbols beginning with underscore (_) >+ _LT_AC_TAGVAR(always_export_symbols, $1)=yes >+ # Exported symbols can be pulled into shared objects from archives >+ _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' ' >+ _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes >+ # This is similar to how AIX traditionally builds it's shared libraries. >+ _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' >+ fi >+ fi >+ ;; >+ chorus*) >+ case $cc_basename in >+ *) >+ # FIXME: insert proper C++ library support >+ _LT_AC_TAGVAR(ld_shlibs, $1)=no >+ ;; >+ esac >+ ;; >+ >+ >+ cygwin* | mingw* | pw32*) >+ # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, >+ # as there is no search path for DLLs. >+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' >+ _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported >+ _LT_AC_TAGVAR(always_export_symbols, $1)=no >+ _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes >+ >+ if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then >+ _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' >+ # If the export-symbols file already is a .def file (1st line >+ # is EXPORTS), use it as is; otherwise, prepend... >+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then >+ cp $export_symbols $output_objdir/$soname.def; >+ else >+ echo EXPORTS > $output_objdir/$soname.def; >+ cat $export_symbols >> $output_objdir/$soname.def; >+ fi~ >+ $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' >+ else >+ _LT_AC_TAGVAR(ld_shlibs, $1)=no >+ fi >+ ;; >+ darwin* | rhapsody*) >+ case "$host_os" in >+ rhapsody* | darwin1.[[012]]) >+ _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress' >+ ;; >+ *) # Darwin 1.3 on >+ if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then >+ _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' >+ else >+ case ${MACOSX_DEPLOYMENT_TARGET} in >+ 10.[[012]]) >+ _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' >+ ;; >+ 10.*) >+ _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup' >+ ;; >+ esac >+ fi >+ ;; >+ esac >+ _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no >+ _LT_AC_TAGVAR(hardcode_direct, $1)=no >+ _LT_AC_TAGVAR(hardcode_automatic, $1)=yes >+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported >+ _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='' >+ _LT_AC_TAGVAR(link_all_deplibs, $1)=yes >+ >+ if test "$GXX" = yes ; then >+ lt_int_apple_cc_single_mod=no >+ output_verbose_link_cmd='echo' >+ if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then >+ lt_int_apple_cc_single_mod=yes >+ fi >+ if test "X$lt_int_apple_cc_single_mod" = Xyes ; then >+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' >+ else >+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r -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' >+ fi >+ _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' >+ # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's >+ if test "X$lt_int_apple_cc_single_mod" = Xyes ; then >+ _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}' >+ else >+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -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}' >+ fi >+ _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}' >+ else >+ case $cc_basename in >+ xlc*) >+ output_verbose_link_cmd='echo' >+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' >+ _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' >+ # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's >+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' >+ _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}' >+ ;; >+ *) >+ _LT_AC_TAGVAR(ld_shlibs, $1)=no >+ ;; >+ esac >+ fi >+ ;; >+ >+ dgux*) >+ case $cc_basename in >+ ec++*) >+ # FIXME: insert proper C++ library support >+ _LT_AC_TAGVAR(ld_shlibs, $1)=no >+ ;; >+ ghcx*) >+ # Green Hills C++ Compiler >+ # FIXME: insert proper C++ library support >+ _LT_AC_TAGVAR(ld_shlibs, $1)=no >+ ;; >+ *) >+ # FIXME: insert proper C++ library support >+ _LT_AC_TAGVAR(ld_shlibs, $1)=no >+ ;; >+ esac >+ ;; >+ freebsd[[12]]*) >+ # C++ shared libraries reported to be fairly broken before switch to ELF >+ _LT_AC_TAGVAR(ld_shlibs, $1)=no >+ ;; >+ freebsd-elf*) >+ _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no >+ ;; >+ freebsd* | kfreebsd*-gnu | dragonfly*) >+ # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF >+ # conventions >+ _LT_AC_TAGVAR(ld_shlibs, $1)=yes >+ ;; >+ gnu*) >+ ;; >+ hpux9*) >+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' >+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: >+ _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' >+ _LT_AC_TAGVAR(hardcode_direct, $1)=yes >+ _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, >+ # but as the default >+ # location of the library. >+ >+ case $cc_basename in >+ CC*) >+ # FIXME: insert proper C++ library support >+ _LT_AC_TAGVAR(ld_shlibs, $1)=no >+ ;; >+ aCC*) >+ _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' >+ # Commands to make compiler produce verbose output that lists >+ # what "hidden" libraries, object files and flags are used when >+ # linking a shared library. >+ # >+ # There doesn't appear to be a way to prevent this compiler from >+ # explicitly linking system object files so we need to strip them >+ # from the output so that they don't get included in the library >+ # dependencies. >+ 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' >+ ;; >+ *) >+ if test "$GXX" = yes; then >+ _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' >+ else >+ # FIXME: insert proper C++ library support >+ _LT_AC_TAGVAR(ld_shlibs, $1)=no >+ fi >+ ;; >+ esac >+ ;; >+ hpux10*|hpux11*) >+ if test $with_gnu_ld = no; then >+ case "$host_cpu" in >+ hppa*64*) >+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' >+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' >+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: >+ ;; >+ ia64*) >+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' >+ ;; >+ *) >+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' >+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: >+ _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' >+ ;; >+ esac >+ fi >+ case "$host_cpu" in >+ hppa*64*) >+ _LT_AC_TAGVAR(hardcode_direct, $1)=no >+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no >+ ;; >+ ia64*) >+ _LT_AC_TAGVAR(hardcode_direct, $1)=no >+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no >+ _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, >+ # but as the default >+ # location of the library. >+ ;; >+ *) >+ _LT_AC_TAGVAR(hardcode_direct, $1)=yes >+ _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, >+ # but as the default >+ # location of the library. >+ ;; >+ esac >+ >+ case $cc_basename in >+ CC*) >+ # FIXME: insert proper C++ library support >+ _LT_AC_TAGVAR(ld_shlibs, $1)=no >+ ;; >+ aCC*) >+ case "$host_cpu" in >+ hppa*64*|ia64*) >+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' >+ ;; >+ *) >+ _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' >+ ;; >+ esac >+ # Commands to make compiler produce verbose output that lists >+ # what "hidden" libraries, object files and flags are used when >+ # linking a shared library. >+ # >+ # There doesn't appear to be a way to prevent this compiler from >+ # explicitly linking system object files so we need to strip them >+ # from the output so that they don't get included in the library >+ # dependencies. >+ 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' >+ ;; >+ *) >+ if test "$GXX" = yes; then >+ if test $with_gnu_ld = no; then >+ case "$host_cpu" in >+ ia64*|hppa*64*) >+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' >+ ;; >+ *) >+ _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' >+ ;; >+ esac >+ fi >+ else >+ # FIXME: insert proper C++ library support >+ _LT_AC_TAGVAR(ld_shlibs, $1)=no >+ fi >+ ;; >+ esac >+ ;; >+ irix5* | irix6*) >+ case $cc_basename in >+ CC*) >+ # SGI C++ >+ _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 ${output_objdir}/so_locations -o $lib' >+ >+ # Archives containing C++ object files must be created using >+ # "CC -ar", where "CC" is the IRIX C++ compiler. This is >+ # necessary to make sure instantiated templates are included >+ # in the archive. >+ _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' >+ ;; >+ *) >+ if test "$GXX" = yes; then >+ if test "$with_gnu_ld" = no; then >+ _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}${output_objdir}/so_locations -o $lib' >+ else >+ _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' >+ fi >+ fi >+ _LT_AC_TAGVAR(link_all_deplibs, $1)=yes >+ ;; >+ esac >+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' >+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: >+ ;; >+ linux*) >+ case $cc_basename in >+ KCC*) >+ # Kuck and Associates, Inc. (KAI) C++ Compiler >+ >+ # KCC will only create a shared library if the output file >+ # ends with ".so" (or ".sl" for HP-UX), so rename the library >+ # to its proper name (with version) after linking. >+ _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' >+ _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' >+ # Commands to make compiler produce verbose output that lists >+ # what "hidden" libraries, object files and flags are used when >+ # linking a shared library. >+ # >+ # There doesn't appear to be a way to prevent this compiler from >+ # explicitly linking system object files so we need to strip them >+ # from the output so that they don't get included in the library >+ # dependencies. >+ 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' >+ >+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir' >+ _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' >+ >+ # Archives containing C++ object files must be created using >+ # "CC -Bstatic", where "CC" is the KAI C++ compiler. >+ _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' >+ ;; >+ icpc*) >+ # Intel C++ >+ with_gnu_ld=yes >+ # version 8.0 and above of icpc choke on multiply defined symbols >+ # if we add $predep_objects and $postdep_objects, however 7.1 and >+ # earlier do not add the objects themselves. >+ case `$CC -V 2>&1` in >+ *"Version 7."*) >+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' >+ _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' >+ ;; >+ *) # Version 8.0 or newer >+ tmp_idyn= >+ case $host_cpu in >+ ia64*) tmp_idyn=' -i_dynamic';; >+ esac >+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' >+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' >+ ;; >+ esac >+ _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no >+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' >+ _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' >+ _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' >+ ;; >+ pgCC*) >+ # Portland Group C++ compiler >+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' >+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' >+ >+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' >+ _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' >+ _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' >+ ;; >+ cxx*) >+ # Compaq C++ >+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' >+ _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' >+ >+ runpath_var=LD_RUN_PATH >+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' >+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: >+ >+ # Commands to make compiler produce verbose output that lists >+ # what "hidden" libraries, object files and flags are used when >+ # linking a shared library. >+ # >+ # There doesn't appear to be a way to prevent this compiler from >+ # explicitly linking system object files so we need to strip them >+ # from the output so that they don't get included in the library >+ # dependencies. >+ 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' >+ ;; >+ esac >+ ;; >+ lynxos*) >+ # FIXME: insert proper C++ library support >+ _LT_AC_TAGVAR(ld_shlibs, $1)=no >+ ;; >+ m88k*) >+ # FIXME: insert proper C++ library support >+ _LT_AC_TAGVAR(ld_shlibs, $1)=no >+ ;; >+ mvs*) >+ case $cc_basename in >+ cxx*) >+ # FIXME: insert proper C++ library support >+ _LT_AC_TAGVAR(ld_shlibs, $1)=no >+ ;; >+ *) >+ # FIXME: insert proper C++ library support >+ _LT_AC_TAGVAR(ld_shlibs, $1)=no >+ ;; >+ esac >+ ;; >+ netbsd*) >+ if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then >+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' >+ wlarc= >+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' >+ _LT_AC_TAGVAR(hardcode_direct, $1)=yes >+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no >+ fi >+ # Workaround some broken pre-1.5 toolchains >+ output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' >+ ;; >+ openbsd2*) >+ # C++ shared libraries are fairly broken >+ _LT_AC_TAGVAR(ld_shlibs, $1)=no >+ ;; >+ openbsd*) >+ _LT_AC_TAGVAR(hardcode_direct, $1)=yes >+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no >+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' >+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' >+ if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then >+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' >+ _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' >+ _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' >+ fi >+ output_verbose_link_cmd='echo' >+ ;; >+ osf3*) >+ case $cc_basename in >+ KCC*) >+ # Kuck and Associates, Inc. (KAI) C++ Compiler >+ >+ # KCC will only create a shared library if the output file >+ # ends with ".so" (or ".sl" for HP-UX), so rename the library >+ # to its proper name (with version) after linking. >+ _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' >+ >+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' >+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: >+ >+ # Archives containing C++ object files must be created using >+ # "CC -Bstatic", where "CC" is the KAI C++ compiler. >+ _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' >+ >+ ;; >+ RCC*) >+ # Rational C++ 2.4.1 >+ # FIXME: insert proper C++ library support >+ _LT_AC_TAGVAR(ld_shlibs, $1)=no >+ ;; >+ cxx*) >+ _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' >+ _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 ${output_objdir}/so_locations -o $lib' >+ >+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' >+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: >+ >+ # Commands to make compiler produce verbose output that lists >+ # what "hidden" libraries, object files and flags are used when >+ # linking a shared library. >+ # >+ # There doesn't appear to be a way to prevent this compiler from >+ # explicitly linking system object files so we need to strip them >+ # from the output so that they don't get included in the library >+ # dependencies. >+ 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' >+ ;; >+ *) >+ if test "$GXX" = yes && test "$with_gnu_ld" = no; then >+ _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' >+ _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}${output_objdir}/so_locations -o $lib' >+ >+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' >+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: >+ >+ # Commands to make compiler produce verbose output that lists >+ # what "hidden" libraries, object files and flags are used when >+ # linking a shared library. >+ output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' >+ >+ else >+ # FIXME: insert proper C++ library support >+ _LT_AC_TAGVAR(ld_shlibs, $1)=no >+ fi >+ ;; >+ esac >+ ;; >+ osf4* | osf5*) >+ case $cc_basename in >+ KCC*) >+ # Kuck and Associates, Inc. (KAI) C++ Compiler >+ >+ # KCC will only create a shared library if the output file >+ # ends with ".so" (or ".sl" for HP-UX), so rename the library >+ # to its proper name (with version) after linking. >+ _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' >+ >+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' >+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: >+ >+ # Archives containing C++ object files must be created using >+ # the KAI C++ compiler. >+ _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' >+ ;; >+ RCC*) >+ # Rational C++ 2.4.1 >+ # FIXME: insert proper C++ library support >+ _LT_AC_TAGVAR(ld_shlibs, $1)=no >+ ;; >+ cxx*) >+ _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' >+ _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 ${output_objdir}/so_locations -o $lib' >+ _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~ >+ $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 ${output_objdir}/so_locations -o $lib~ >+ $rm $lib.exp' >+ >+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' >+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: >+ >+ # Commands to make compiler produce verbose output that lists >+ # what "hidden" libraries, object files and flags are used when >+ # linking a shared library. >+ # >+ # There doesn't appear to be a way to prevent this compiler from >+ # explicitly linking system object files so we need to strip them >+ # from the output so that they don't get included in the library >+ # dependencies. >+ 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' >+ ;; >+ *) >+ if test "$GXX" = yes && test "$with_gnu_ld" = no; then >+ _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' >+ _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}${output_objdir}/so_locations -o $lib' >+ >+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' >+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: >+ >+ # Commands to make compiler produce verbose output that lists >+ # what "hidden" libraries, object files and flags are used when >+ # linking a shared library. >+ output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' >+ >+ else >+ # FIXME: insert proper C++ library support >+ _LT_AC_TAGVAR(ld_shlibs, $1)=no >+ fi >+ ;; >+ esac >+ ;; >+ psos*) >+ # FIXME: insert proper C++ library support >+ _LT_AC_TAGVAR(ld_shlibs, $1)=no >+ ;; >+ sco*) >+ _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no >+ case $cc_basename in >+ CC*) >+ # FIXME: insert proper C++ library support >+ _LT_AC_TAGVAR(ld_shlibs, $1)=no >+ ;; >+ *) >+ # FIXME: insert proper C++ library support >+ _LT_AC_TAGVAR(ld_shlibs, $1)=no >+ ;; >+ esac >+ ;; >+ sunos4*) >+ case $cc_basename in >+ CC*) >+ # Sun C++ 4.x >+ # FIXME: insert proper C++ library support >+ _LT_AC_TAGVAR(ld_shlibs, $1)=no >+ ;; >+ lcc*) >+ # Lucid >+ # FIXME: insert proper C++ library support >+ _LT_AC_TAGVAR(ld_shlibs, $1)=no >+ ;; >+ *) >+ # FIXME: insert proper C++ library support >+ _LT_AC_TAGVAR(ld_shlibs, $1)=no >+ ;; >+ esac >+ ;; >+ solaris*) >+ case $cc_basename in >+ CC*) >+ # Sun C++ 4.2, 5.x and Centerline C++ >+ _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs' >+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' >+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ >+ $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' >+ >+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' >+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no >+ case $host_os in >+ solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; >+ *) >+ # The C++ compiler is used as linker so we must use $wl >+ # flag to pass the commands to the underlying system >+ # linker. We must also pass each convience library through >+ # to the system linker between allextract/defaultextract. >+ # The C++ compiler will combine linker options so we >+ # cannot just pass the convience library names through >+ # without $wl. >+ # Supported since Solaris 2.6 (maybe 2.5.1?) >+ _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' >+ ;; >+ esac >+ _LT_AC_TAGVAR(link_all_deplibs, $1)=yes >+ >+ # Commands to make compiler produce verbose output that lists >+ # what "hidden" libraries, object files and flags are used when >+ # linking a shared library. >+ # >+ # There doesn't appear to be a way to prevent this compiler from >+ # explicitly linking system object files so we need to strip them >+ # from the output so that they don't get included in the library >+ # dependencies. >+ 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' >+ >+ # Archives containing C++ object files must be created using >+ # "CC -xar", where "CC" is the Sun C++ compiler. This is >+ # necessary to make sure instantiated templates are included >+ # in the archive. >+ _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' >+ ;; >+ gcx*) >+ # Green Hills C++ Compiler >+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' >+ >+ # The C++ compiler must be used to create the archive. >+ _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' >+ ;; >+ *) >+ # GNU C++ compiler with Solaris linker >+ if test "$GXX" = yes && test "$with_gnu_ld" = no; then >+ _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' >+ if $CC --version | grep -v '^2\.7' > /dev/null; then >+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' >+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ >+ $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' >+ >+ # Commands to make compiler produce verbose output that lists >+ # what "hidden" libraries, object files and flags are used when >+ # linking a shared library. >+ output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" >+ else >+ # g++ 2.7 appears to require `-G' NOT `-shared' on this >+ # platform. >+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' >+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ >+ $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' >+ >+ # Commands to make compiler produce verbose output that lists >+ # what "hidden" libraries, object files and flags are used when >+ # linking a shared library. >+ output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" >+ fi >+ >+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' >+ fi >+ ;; >+ esac >+ ;; >+ sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*) >+ _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no >+ ;; >+ tandem*) >+ case $cc_basename in >+ NCC*) >+ # NonStop-UX NCC 3.20 >+ # FIXME: insert proper C++ library support >+ _LT_AC_TAGVAR(ld_shlibs, $1)=no >+ ;; >+ *) >+ # FIXME: insert proper C++ library support >+ _LT_AC_TAGVAR(ld_shlibs, $1)=no >+ ;; >+ esac >+ ;; >+ vxworks*) >+ # FIXME: insert proper C++ library support >+ _LT_AC_TAGVAR(ld_shlibs, $1)=no >+ ;; >+ *) >+ # FIXME: insert proper C++ library support >+ _LT_AC_TAGVAR(ld_shlibs, $1)=no >+ ;; >+esac >+AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) >+test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no >+ >+_LT_AC_TAGVAR(GCC, $1)="$GXX" >+_LT_AC_TAGVAR(LD, $1)="$LD" >+ >+AC_LIBTOOL_POSTDEP_PREDEP($1) >+AC_LIBTOOL_PROG_COMPILER_PIC($1) >+AC_LIBTOOL_PROG_CC_C_O($1) >+AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) >+AC_LIBTOOL_PROG_LD_SHLIBS($1) >+AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) >+AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) >+AC_LIBTOOL_SYS_LIB_STRIP >+AC_LIBTOOL_DLOPEN_SELF($1) >+ >+AC_LIBTOOL_CONFIG($1) >+ >+AC_LANG_POP >+CC=$lt_save_CC >+LDCXX=$LD >+LD=$lt_save_LD >+GCC=$lt_save_GCC >+with_gnu_ldcxx=$with_gnu_ld >+with_gnu_ld=$lt_save_with_gnu_ld >+lt_cv_path_LDCXX=$lt_cv_path_LD >+lt_cv_path_LD=$lt_save_path_LD >+lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld >+lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld >+])# AC_LIBTOOL_LANG_CXX_CONFIG >+ >+# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME]) >+# ------------------------ >+# Figure out "hidden" library dependencies from verbose >+# compiler output when linking a shared library. >+# Parse the compiler output and extract the necessary >+# objects, libraries and library flags. >+AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[ >+dnl we can't use the lt_simple_compile_test_code here, >+dnl because it contains code intended for an executable, >+dnl not a library. It's possible we should let each >+dnl tag define a new lt_????_link_test_code variable, >+dnl but it's only used here... >+ifelse([$1],[],[cat > conftest.$ac_ext <<EOF >+int a; >+void foo (void) { a = 0; } >+EOF >+],[$1],[CXX],[cat > conftest.$ac_ext <<EOF >+class Foo >+{ >+public: >+ Foo (void) { a = 0; } >+private: >+ int a; >+}; >+EOF >+],[$1],[F77],[cat > conftest.$ac_ext <<EOF >+ subroutine foo >+ implicit none >+ integer*4 a >+ a=0 >+ return >+ end >+EOF >+],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF >+public class foo { >+ private int a; >+ public void bar (void) { >+ a = 0; >+ } >+}; >+EOF >+]) >+dnl Parse the compiler output and extract the necessary >+dnl objects, libraries and library flags. >+if AC_TRY_EVAL(ac_compile); then >+ # Parse the compiler output and extract the necessary >+ # objects, libraries and library flags. >+ >+ # Sentinel used to keep track of whether or not we are before >+ # the conftest object file. >+ pre_test_object_deps_done=no >+ >+ # The `*' in the case matches for architectures that use `case' in >+ # $output_verbose_cmd can trigger glob expansion during the loop >+ # eval without this substitution. >+ output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`" >+ >+ for p in `eval $output_verbose_link_cmd`; do >+ case $p in >+ >+ -L* | -R* | -l*) >+ # Some compilers place space between "-{L,R}" and the path. >+ # Remove the space. >+ if test $p = "-L" \ >+ || test $p = "-R"; then >+ prev=$p >+ continue >+ else >+ prev= >+ fi >+ >+ if test "$pre_test_object_deps_done" = no; then >+ case $p in >+ -L* | -R*) >+ # Internal compiler library paths should come after those >+ # provided the user. The postdeps already come after the >+ # user supplied libs so there is no need to process them. >+ if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then >+ _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}" >+ else >+ _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}" >+ fi >+ ;; >+ # The "-l" case would never come before the object being >+ # linked, so don't bother handling this case. >+ esac >+ else >+ if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then >+ _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}" >+ else >+ _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}" >+ fi >+ fi >+ ;; >+ >+ *.$objext) >+ # This assumes that the test object file only shows up >+ # once in the compiler output. >+ if test "$p" = "conftest.$objext"; then >+ pre_test_object_deps_done=yes >+ continue >+ fi >+ >+ if test "$pre_test_object_deps_done" = no; then >+ if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then >+ _LT_AC_TAGVAR(predep_objects, $1)="$p" >+ else >+ _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p" >+ fi >+ else >+ if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then >+ _LT_AC_TAGVAR(postdep_objects, $1)="$p" >+ else >+ _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p" >+ fi >+ fi >+ ;; >+ >+ *) ;; # Ignore the rest. >+ >+ esac >+ done >+ >+ # Clean up. >+ rm -f a.out a.exe >+else >+ echo "libtool.m4: error: problem compiling $1 test program" >+fi >+ >+$rm -f confest.$objext >+ >+case " $_LT_AC_TAGVAR(postdeps, $1) " in >+*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;; >+esac >+])# AC_LIBTOOL_POSTDEP_PREDEP >+ >+# AC_LIBTOOL_LANG_F77_CONFIG >+# ------------------------ >+# Ensure that the configuration vars for the C compiler are >+# suitably defined. Those variables are subsequently used by >+# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. >+AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)]) >+AC_DEFUN([_LT_AC_LANG_F77_CONFIG], >+[AC_REQUIRE([AC_PROG_F77]) >+AC_LANG_PUSH(Fortran 77) >+ >+_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no >+_LT_AC_TAGVAR(allow_undefined_flag, $1)= >+_LT_AC_TAGVAR(always_export_symbols, $1)=no >+_LT_AC_TAGVAR(archive_expsym_cmds, $1)= >+_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= >+_LT_AC_TAGVAR(hardcode_direct, $1)=no >+_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= >+_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= >+_LT_AC_TAGVAR(hardcode_libdir_separator, $1)= >+_LT_AC_TAGVAR(hardcode_minus_L, $1)=no >+_LT_AC_TAGVAR(hardcode_automatic, $1)=no >+_LT_AC_TAGVAR(module_cmds, $1)= >+_LT_AC_TAGVAR(module_expsym_cmds, $1)= >+_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown >+_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds >+_LT_AC_TAGVAR(no_undefined_flag, $1)= >+_LT_AC_TAGVAR(whole_archive_flag_spec, $1)= >+_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no >+ >+# Source file extension for f77 test sources. >+ac_ext=f >+ >+# Object file extension for compiled f77 test sources. >+objext=o >+_LT_AC_TAGVAR(objext, $1)=$objext >+ >+# Code to be used in simple compile tests >+lt_simple_compile_test_code=" subroutine t\n return\n end\n" >+ >+# Code to be used in simple link tests >+lt_simple_link_test_code=" program t\n end\n" >+ >+# ltmain only uses $CC for tagged configurations so make sure $CC is set. >+_LT_AC_SYS_COMPILER >+ >+# save warnings/boilerplate of simple test code >+_LT_COMPILER_BOILERPLATE >+_LT_LINKER_BOILERPLATE >+ >+# Allow CC to be a program name with arguments. >+lt_save_CC="$CC" >+CC=${F77-"f77"} >+compiler=$CC >+_LT_AC_TAGVAR(compiler, $1)=$CC >+_LT_CC_BASENAME([$compiler]) >+ >+AC_MSG_CHECKING([if libtool supports shared libraries]) >+AC_MSG_RESULT([$can_build_shared]) >+ >+AC_MSG_CHECKING([whether to build shared libraries]) >+test "$can_build_shared" = "no" && enable_shared=no >+ >+# On AIX, shared libraries and static libraries use the same namespace, and >+# are all built from PIC. >+case "$host_os" in >+aix3*) >+ test "$enable_shared" = yes && enable_static=no >+ if test -n "$RANLIB"; then >+ archive_cmds="$archive_cmds~\$RANLIB \$lib" >+ postinstall_cmds='$RANLIB $lib' >+ fi >+ ;; >+aix4* | aix5*) >+ if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then >+ test "$enable_shared" = yes && enable_static=no >+ fi >+ ;; >+esac >+AC_MSG_RESULT([$enable_shared]) >+ >+AC_MSG_CHECKING([whether to build static libraries]) >+# Make sure either enable_shared or enable_static is yes. >+test "$enable_shared" = yes || enable_static=yes >+AC_MSG_RESULT([$enable_static]) >+ >+test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no >+ >+_LT_AC_TAGVAR(GCC, $1)="$G77" >+_LT_AC_TAGVAR(LD, $1)="$LD" >+ >+AC_LIBTOOL_PROG_COMPILER_PIC($1) >+AC_LIBTOOL_PROG_CC_C_O($1) >+AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) >+AC_LIBTOOL_PROG_LD_SHLIBS($1) >+AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) >+AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) >+AC_LIBTOOL_SYS_LIB_STRIP >+ >+ >+AC_LIBTOOL_CONFIG($1) >+ >+AC_LANG_POP >+CC="$lt_save_CC" >+])# AC_LIBTOOL_LANG_F77_CONFIG >+ >+ >+# AC_LIBTOOL_LANG_GCJ_CONFIG >+# -------------------------- >+# Ensure that the configuration vars for the C compiler are >+# suitably defined. Those variables are subsequently used by >+# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. >+AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)]) >+AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG], >+[AC_LANG_SAVE >+ >+# Source file extension for Java test sources. >+ac_ext=java >+ >+# Object file extension for compiled Java test sources. >+objext=o >+_LT_AC_TAGVAR(objext, $1)=$objext >+ >+# Code to be used in simple compile tests >+lt_simple_compile_test_code="class foo {}\n" >+ >+# Code to be used in simple link tests >+lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n' >+ >+# ltmain only uses $CC for tagged configurations so make sure $CC is set. >+_LT_AC_SYS_COMPILER >+ >+# save warnings/boilerplate of simple test code >+_LT_COMPILER_BOILERPLATE >+_LT_LINKER_BOILERPLATE >+ >+# Allow CC to be a program name with arguments. >+lt_save_CC="$CC" >+CC=${GCJ-"gcj"} >+compiler=$CC >+_LT_AC_TAGVAR(compiler, $1)=$CC >+_LT_CC_BASENAME([$compiler]) >+ >+# GCJ did not exist at the time GCC didn't implicitly link libc in. >+_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no >+ >+_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds >+ >+AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) >+AC_LIBTOOL_PROG_COMPILER_PIC($1) >+AC_LIBTOOL_PROG_CC_C_O($1) >+AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) >+AC_LIBTOOL_PROG_LD_SHLIBS($1) >+AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) >+AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) >+AC_LIBTOOL_SYS_LIB_STRIP >+AC_LIBTOOL_DLOPEN_SELF($1) >+ >+AC_LIBTOOL_CONFIG($1) >+ >+AC_LANG_RESTORE >+CC="$lt_save_CC" >+])# AC_LIBTOOL_LANG_GCJ_CONFIG >+ >+ >+# AC_LIBTOOL_LANG_RC_CONFIG >+# -------------------------- >+# Ensure that the configuration vars for the Windows resource compiler are >+# suitably defined. Those variables are subsequently used by >+# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. >+AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)]) >+AC_DEFUN([_LT_AC_LANG_RC_CONFIG], >+[AC_LANG_SAVE >+ >+# Source file extension for RC test sources. >+ac_ext=rc >+ >+# Object file extension for compiled RC test sources. >+objext=o >+_LT_AC_TAGVAR(objext, $1)=$objext >+ >+# Code to be used in simple compile tests >+lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' >+ >+# Code to be used in simple link tests >+lt_simple_link_test_code="$lt_simple_compile_test_code" >+ >+# ltmain only uses $CC for tagged configurations so make sure $CC is set. >+_LT_AC_SYS_COMPILER >+ >+# save warnings/boilerplate of simple test code >+_LT_COMPILER_BOILERPLATE >+_LT_LINKER_BOILERPLATE >+ >+# Allow CC to be a program name with arguments. >+lt_save_CC="$CC" >+CC=${RC-"windres"} >+compiler=$CC >+_LT_AC_TAGVAR(compiler, $1)=$CC >+_LT_CC_BASENAME([$compiler]) >+_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes >+ >+AC_LIBTOOL_CONFIG($1) >+ >+AC_LANG_RESTORE >+CC="$lt_save_CC" >+])# AC_LIBTOOL_LANG_RC_CONFIG >+ >+ >+# AC_LIBTOOL_CONFIG([TAGNAME]) >+# ---------------------------- >+# If TAGNAME is not passed, then create an initial libtool script >+# with a default configuration from the untagged config vars. Otherwise >+# add code to config.status for appending the configuration named by >+# TAGNAME from the matching tagged config vars. >+AC_DEFUN([AC_LIBTOOL_CONFIG], >+[# The else clause should only fire when bootstrapping the >+# libtool distribution, otherwise you forgot to ship ltmain.sh >+# with your package, and you will get complaints that there are >+# no rules to generate ltmain.sh. >+if test -f "$ltmain"; then >+ # See if we are running on zsh, and set the options which allow our commands through >+ # without removal of \ escapes. >+ if test -n "${ZSH_VERSION+set}" ; then >+ setopt NO_GLOB_SUBST >+ fi >+ # Now quote all the things that may contain metacharacters while being >+ # careful not to overquote the AC_SUBSTed values. We take copies of the >+ # variables and quote the copies for generation of the libtool script. >+ for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ >+ SED SHELL STRIP \ >+ libname_spec library_names_spec soname_spec extract_expsyms_cmds \ >+ old_striplib striplib file_magic_cmd finish_cmds finish_eval \ >+ deplibs_check_method reload_flag reload_cmds need_locks \ >+ lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ >+ lt_cv_sys_global_symbol_to_c_name_address \ >+ sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ >+ old_postinstall_cmds old_postuninstall_cmds \ >+ _LT_AC_TAGVAR(compiler, $1) \ >+ _LT_AC_TAGVAR(CC, $1) \ >+ _LT_AC_TAGVAR(LD, $1) \ >+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \ >+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \ >+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \ >+ _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \ >+ _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \ >+ _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \ >+ _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \ >+ _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \ >+ _LT_AC_TAGVAR(old_archive_cmds, $1) \ >+ _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \ >+ _LT_AC_TAGVAR(predep_objects, $1) \ >+ _LT_AC_TAGVAR(postdep_objects, $1) \ >+ _LT_AC_TAGVAR(predeps, $1) \ >+ _LT_AC_TAGVAR(postdeps, $1) \ >+ _LT_AC_TAGVAR(compiler_lib_search_path, $1) \ >+ _LT_AC_TAGVAR(archive_cmds, $1) \ >+ _LT_AC_TAGVAR(archive_expsym_cmds, $1) \ >+ _LT_AC_TAGVAR(postinstall_cmds, $1) \ >+ _LT_AC_TAGVAR(postuninstall_cmds, $1) \ >+ _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \ >+ _LT_AC_TAGVAR(allow_undefined_flag, $1) \ >+ _LT_AC_TAGVAR(no_undefined_flag, $1) \ >+ _LT_AC_TAGVAR(export_symbols_cmds, $1) \ >+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \ >+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \ >+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \ >+ _LT_AC_TAGVAR(hardcode_automatic, $1) \ >+ _LT_AC_TAGVAR(module_cmds, $1) \ >+ _LT_AC_TAGVAR(module_expsym_cmds, $1) \ >+ _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \ >+ _LT_AC_TAGVAR(exclude_expsyms, $1) \ >+ _LT_AC_TAGVAR(include_expsyms, $1); do >+ >+ case $var in >+ _LT_AC_TAGVAR(old_archive_cmds, $1) | \ >+ _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \ >+ _LT_AC_TAGVAR(archive_cmds, $1) | \ >+ _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \ >+ _LT_AC_TAGVAR(module_cmds, $1) | \ >+ _LT_AC_TAGVAR(module_expsym_cmds, $1) | \ >+ _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \ >+ _LT_AC_TAGVAR(export_symbols_cmds, $1) | \ >+ extract_expsyms_cmds | reload_cmds | finish_cmds | \ >+ postinstall_cmds | postuninstall_cmds | \ >+ old_postinstall_cmds | old_postuninstall_cmds | \ >+ sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) >+ # Double-quote double-evaled strings. >+ eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" >+ ;; >+ *) >+ eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" >+ ;; >+ esac >+ done >+ >+ case $lt_echo in >+ *'\[$]0 --fallback-echo"') >+ lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'` >+ ;; >+ esac >+ >+ifelse([$1], [], >+ [cfgfile="${ofile}T" >+ trap "$rm \"$cfgfile\"; exit 1" 1 2 15 >+ $rm -f "$cfgfile" >+ AC_MSG_NOTICE([creating $ofile])], >+ [cfgfile="$ofile"]) >+ >+ cat <<__EOF__ >> "$cfgfile" >+ifelse([$1], [], >+[#! $SHELL >+ >+# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. >+# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) >+# NOTE: Changes made to this file will be lost: look at ltmain.sh. >+# >+# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 >+# Free Software Foundation, Inc. >+# >+# This file is part of GNU Libtool: >+# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 >+# >+# This program is free software; you can redistribute it and/or modify >+# it under the terms of the GNU General Public License as published by >+# the Free Software Foundation; either version 2 of the License, or >+# (at your option) any later version. >+# >+# This program is distributed in the hope that it will be useful, but >+# WITHOUT ANY WARRANTY; without even the implied warranty of >+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU >+# General Public License for more details. >+# >+# You should have received a copy of the GNU General Public License >+# along with this program; if not, write to the Free Software >+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. >+# >+# As a special exception to the GNU General Public License, if you >+# distribute this file as part of a program that contains a >+# configuration script generated by Autoconf, you may include it under >+# the same distribution terms that you use for the rest of that program. >+ >+# A sed program that does not truncate output. >+SED=$lt_SED >+ >+# Sed that helps us avoid accidentally triggering echo(1) options like -n. >+Xsed="$SED -e 1s/^X//" >+ >+# The HP-UX ksh and POSIX shell print the target directory to stdout >+# if CDPATH is set. >+(unset CDPATH) >/dev/null 2>&1 && unset CDPATH >+ >+# The names of the tagged configurations supported by this script. >+available_tags= >+ >+# ### BEGIN LIBTOOL CONFIG], >+[# ### BEGIN LIBTOOL TAG CONFIG: $tagname]) >+ >+# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: >+ >+# Shell to use when invoking shell scripts. >+SHELL=$lt_SHELL >+ >+# Whether or not to build shared libraries. >+build_libtool_libs=$enable_shared >+ >+# Whether or not to build static libraries. >+build_old_libs=$enable_static >+ >+# Whether or not to add -lc for building shared libraries. >+build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1) >+ >+# Whether or not to disallow shared libs when runtime libs are static >+allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) >+ >+# Whether or not to optimize for fast installation. >+fast_install=$enable_fast_install >+ >+# The host system. >+host_alias=$host_alias >+host=$host >+host_os=$host_os >+ >+# The build system. >+build_alias=$build_alias >+build=$build >+build_os=$build_os >+ >+# An echo program that does not interpret backslashes. >+echo=$lt_echo >+ >+# The archiver. >+AR=$lt_AR >+AR_FLAGS=$lt_AR_FLAGS >+ >+# A C compiler. >+LTCC=$lt_LTCC >+ >+# A language-specific compiler. >+CC=$lt_[]_LT_AC_TAGVAR(compiler, $1) >+ >+# Is the compiler the GNU C compiler? >+with_gcc=$_LT_AC_TAGVAR(GCC, $1) >+ >+# An ERE matcher. >+EGREP=$lt_EGREP >+ >+# The linker used to build libraries. >+LD=$lt_[]_LT_AC_TAGVAR(LD, $1) >+ >+# Whether we need hard or soft links. >+LN_S=$lt_LN_S >+ >+# A BSD-compatible nm program. >+NM=$lt_NM >+ >+# A symbol stripping program >+STRIP=$lt_STRIP >+ >+# Used to examine libraries when file_magic_cmd begins "file" >+MAGIC_CMD=$MAGIC_CMD >+ >+# Used on cygwin: DLL creation program. >+DLLTOOL="$DLLTOOL" >+ >+# Used on cygwin: object dumper. >+OBJDUMP="$OBJDUMP" >+ >+# Used on cygwin: assembler. >+AS="$AS" >+ >+# The name of the directory that contains temporary libtool files. >+objdir=$objdir >+ >+# How to create reloadable object files. >+reload_flag=$lt_reload_flag >+reload_cmds=$lt_reload_cmds >+ >+# How to pass a linker flag through the compiler. >+wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) >+ >+# Object file suffix (normally "o"). >+objext="$ac_objext" >+ >+# Old archive suffix (normally "a"). >+libext="$libext" >+ >+# Shared library suffix (normally ".so"). >+shrext_cmds='$shrext_cmds' >+ >+# Executable file suffix (normally ""). >+exeext="$exeext" >+ >+# Additional compiler flags for building library objects. >+pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) >+pic_mode=$pic_mode >+ >+# What is the maximum length of a command? >+max_cmd_len=$lt_cv_sys_max_cmd_len >+ >+# Does compiler simultaneously support -c and -o options? >+compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) >+ >+# Must we lock files when doing compilation? >+need_locks=$lt_need_locks >+ >+# Do we need the lib prefix for modules? >+need_lib_prefix=$need_lib_prefix >+ >+# Do we need a version for libraries? >+need_version=$need_version >+ >+# Whether dlopen is supported. >+dlopen_support=$enable_dlopen >+ >+# Whether dlopen of programs is supported. >+dlopen_self=$enable_dlopen_self >+ >+# Whether dlopen of statically linked programs is supported. >+dlopen_self_static=$enable_dlopen_self_static >+ >+# Compiler flag to prevent dynamic linking. >+link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1) >+ >+# Compiler flag to turn off builtin functions. >+no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) >+ >+# Compiler flag to allow reflexive dlopens. >+export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1) >+ >+# Compiler flag to generate shared objects directly from archives. >+whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1) >+ >+# Compiler flag to generate thread-safe objects. >+thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1) >+ >+# Library versioning type. >+version_type=$version_type >+ >+# Format of library name prefix. >+libname_spec=$lt_libname_spec >+ >+# List of archive names. First name is the real one, the rest are links. >+# The last name is the one that the linker finds with -lNAME. >+library_names_spec=$lt_library_names_spec >+ >+# The coded name of the library, if different from the real name. >+soname_spec=$lt_soname_spec >+ >+# Commands used to build and install an old-style archive. >+RANLIB=$lt_RANLIB >+old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1) >+old_postinstall_cmds=$lt_old_postinstall_cmds >+old_postuninstall_cmds=$lt_old_postuninstall_cmds >+ >+# Create an old-style archive from a shared archive. >+old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) >+ >+# Create a temporary old-style archive to link instead of a shared archive. >+old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) >+ >+# Commands used to build and install a shared archive. >+archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1) >+archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1) >+postinstall_cmds=$lt_postinstall_cmds >+postuninstall_cmds=$lt_postuninstall_cmds >+ >+# Commands used to build a loadable module (assumed same as above if empty) >+module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1) >+module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1) >+ >+# Commands to strip libraries. >+old_striplib=$lt_old_striplib >+striplib=$lt_striplib >+ >+# Dependencies to place before the objects being linked to create a >+# shared library. >+predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1) >+ >+# Dependencies to place after the objects being linked to create a >+# shared library. >+postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1) >+ >+# Dependencies to place before the objects being linked to create a >+# shared library. >+predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1) >+ >+# Dependencies to place after the objects being linked to create a >+# shared library. >+postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1) >+ >+# The library search path used internally by the compiler when linking >+# a shared library. >+compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1) >+ >+# Method to check whether dependent libraries are shared objects. >+deplibs_check_method=$lt_deplibs_check_method >+ >+# Command to use when deplibs_check_method == file_magic. >+file_magic_cmd=$lt_file_magic_cmd >+ >+# Flag that allows shared libraries with undefined symbols to be built. >+allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1) >+ >+# Flag that forces no undefined symbols. >+no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1) >+ >+# Commands used to finish a libtool library installation in a directory. >+finish_cmds=$lt_finish_cmds >+ >+# Same as above, but a single script fragment to be evaled but not shown. >+finish_eval=$lt_finish_eval >+ >+# Take the output of nm and produce a listing of raw symbols and C names. >+global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe >+ >+# Transform the output of nm in a proper C declaration >+global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl >+ >+# Transform the output of nm in a C name address pair >+global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address >+ >+# This is the shared library runtime path variable. >+runpath_var=$runpath_var >+ >+# This is the shared library path variable. >+shlibpath_var=$shlibpath_var >+ >+# Is shlibpath searched before the hard-coded library search path? >+shlibpath_overrides_runpath=$shlibpath_overrides_runpath >+ >+# How to hardcode a shared library path into an executable. >+hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1) >+ >+# Whether we should hardcode library paths into libraries. >+hardcode_into_libs=$hardcode_into_libs >+ >+# Flag to hardcode \$libdir into a binary during linking. >+# This must work even if \$libdir does not exist. >+hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) >+ >+# If ld is used when linking, flag to hardcode \$libdir into >+# a binary during linking. This must work even if \$libdir does >+# not exist. >+hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) >+ >+# Whether we need a single -rpath flag with a separated argument. >+hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1) >+ >+# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the >+# resulting binary. >+hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1) >+ >+# Set to yes if using the -LDIR flag during linking hardcodes DIR into the >+# resulting binary. >+hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1) >+ >+# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into >+# the resulting binary. >+hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1) >+ >+# Set to yes if building a shared library automatically hardcodes DIR into the library >+# and all subsequent libraries and executables linked against it. >+hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1) >+ >+# Variables whose values should be saved in libtool wrapper scripts and >+# restored at relink time. >+variables_saved_for_relink="$variables_saved_for_relink" >+ >+# Whether libtool must link a program against all its dependency libraries. >+link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1) >+ >+# Compile-time system search path for libraries >+sys_lib_search_path_spec=$lt_sys_lib_search_path_spec >+ >+# Run-time system search path for libraries >+sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec >+ >+# Fix the shell variable \$srcfile for the compiler. >+fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)" >+ >+# Set to yes if exported symbols are required. >+always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1) >+ >+# The commands to list exported symbols. >+export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1) >+ >+# The commands to extract the exported symbol list from a shared archive. >+extract_expsyms_cmds=$lt_extract_expsyms_cmds >+ >+# Symbols that should not be listed in the preloaded symbols. >+exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1) >+ >+# Symbols that must always be exported. >+include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1) >+ >+ifelse([$1],[], >+[# ### END LIBTOOL CONFIG], >+[# ### END LIBTOOL TAG CONFIG: $tagname]) >+ >+__EOF__ >+ >+ifelse([$1],[], [ >+ case $host_os in >+ aix3*) >+ cat <<\EOF >> "$cfgfile" >+ >+# AIX sometimes has problems with the GCC collect2 program. For some >+# reason, if we set the COLLECT_NAMES environment variable, the problems >+# vanish in a puff of smoke. >+if test "X${COLLECT_NAMES+set}" != Xset; then >+ COLLECT_NAMES= >+ export COLLECT_NAMES >+fi >+EOF >+ ;; >+ esac >+ >+ # We use sed instead of cat because bash on DJGPP gets confused if >+ # if finds mixed CR/LF and LF-only lines. Since sed operates in >+ # text mode, it properly converts lines to CR/LF. This bash problem >+ # is reportedly fixed, but why not run on old versions too? >+ sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) >+ >+ mv -f "$cfgfile" "$ofile" || \ >+ (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") >+ chmod +x "$ofile" >+]) >+else >+ # If there is no Makefile yet, we rely on a make rule to execute >+ # `config.status --recheck' to rerun these tests and create the >+ # libtool script then. >+ ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` >+ if test -f "$ltmain_in"; then >+ test -f Makefile && make "$ltmain" >+ fi >+fi >+])# AC_LIBTOOL_CONFIG >+ >+ >+# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME]) >+# ------------------------------------------- >+AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], >+[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl >+ >+_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= >+ >+if test "$GCC" = yes; then >+ _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' >+ >+ AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], >+ lt_cv_prog_compiler_rtti_exceptions, >+ [-fno-rtti -fno-exceptions], [], >+ [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) >+fi >+])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI >+ >+ >+# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE >+# --------------------------------- >+AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], >+[AC_REQUIRE([AC_CANONICAL_HOST]) >+AC_REQUIRE([AC_PROG_NM]) >+AC_REQUIRE([AC_OBJEXT]) >+# Check for command to grab the raw symbol name followed by C symbol from nm. >+AC_MSG_CHECKING([command to parse $NM output from $compiler object]) >+AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], >+[ >+# These are sane defaults that work on at least a few old systems. >+# [They come from Ultrix. What could be older than Ultrix?!! ;)] >+ >+# Character class describing NM global symbol codes. >+symcode='[[BCDEGRST]]' >+ >+# Regexp to match symbols that can be accessed directly from C. >+sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' >+ >+# Transform an extracted symbol line into a proper C declaration >+lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" >+ >+# Transform an extracted symbol line into symbol name and symbol address >+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'" >+ >+# Define system-specific variables. >+case $host_os in >+aix*) >+ symcode='[[BCDT]]' >+ ;; >+cygwin* | mingw* | pw32*) >+ symcode='[[ABCDGISTW]]' >+ ;; >+hpux*) # Its linker distinguishes data from code symbols >+ if test "$host_cpu" = ia64; then >+ symcode='[[ABCDEGRST]]' >+ fi >+ lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" >+ 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'" >+ ;; >+linux*) >+ if test "$host_cpu" = ia64; then >+ symcode='[[ABCDGIRSTW]]' >+ lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" >+ 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'" >+ fi >+ ;; >+irix* | nonstopux*) >+ symcode='[[BCDEGRST]]' >+ ;; >+osf*) >+ symcode='[[BCDEGQRST]]' >+ ;; >+solaris* | sysv5*) >+ symcode='[[BDRT]]' >+ ;; >+sysv4) >+ symcode='[[DFNSTU]]' >+ ;; >+esac >+ >+# Handle CRLF in mingw tool chain >+opt_cr= >+case $build_os in >+mingw*) >+ opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp >+ ;; >+esac >+ >+# If we're using GNU nm, then use its standard symbol codes. >+case `$NM -V 2>&1` in >+*GNU* | *'with BFD'*) >+ symcode='[[ABCDGIRSTW]]' ;; >+esac >+ >+# Try without a prefix undercore, then with it. >+for ac_symprfx in "" "_"; do >+ >+ # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. >+ symxfrm="\\1 $ac_symprfx\\2 \\2" >+ >+ # Write the raw and C identifiers. >+ lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" >+ >+ # Check to see that the pipe works correctly. >+ pipe_works=no >+ >+ rm -f conftest* >+ cat > conftest.$ac_ext <<EOF >+#ifdef __cplusplus >+extern "C" { >+#endif >+char nm_test_var; >+void nm_test_func(){} >+#ifdef __cplusplus >+} >+#endif >+int main(){nm_test_var='a';nm_test_func();return(0);} >+EOF >+ >+ if AC_TRY_EVAL(ac_compile); then >+ # Now try to grab the symbols. >+ nlist=conftest.nm >+ if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then >+ # Try sorting and uniquifying the output. >+ if sort "$nlist" | uniq > "$nlist"T; then >+ mv -f "$nlist"T "$nlist" >+ else >+ rm -f "$nlist"T >+ fi >+ >+ # Make sure that we snagged all the symbols we need. >+ if grep ' nm_test_var$' "$nlist" >/dev/null; then >+ if grep ' nm_test_func$' "$nlist" >/dev/null; then >+ cat <<EOF > conftest.$ac_ext >+#ifdef __cplusplus >+extern "C" { >+#endif >+ >+EOF >+ # Now generate the symbol file. >+ eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' >+ >+ cat <<EOF >> conftest.$ac_ext >+#if defined (__STDC__) && __STDC__ >+# define lt_ptr_t void * >+#else >+# define lt_ptr_t char * >+# define const >+#endif >+ >+/* The mapping between symbol names and symbols. */ >+const struct { >+ const char *name; >+ lt_ptr_t address; >+} >+lt_preloaded_symbols[[]] = >+{ >+EOF >+ $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext >+ cat <<\EOF >> conftest.$ac_ext >+ {0, (lt_ptr_t) 0} >+}; >+ >+#ifdef __cplusplus >+} >+#endif >+EOF >+ # Now try linking the two files. >+ mv conftest.$ac_objext conftstm.$ac_objext >+ lt_save_LIBS="$LIBS" >+ lt_save_CFLAGS="$CFLAGS" >+ LIBS="conftstm.$ac_objext" >+ CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" >+ if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then >+ pipe_works=yes >+ fi >+ LIBS="$lt_save_LIBS" >+ CFLAGS="$lt_save_CFLAGS" >+ else >+ echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD >+ fi >+ else >+ echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD >+ fi >+ else >+ echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD >+ fi >+ else >+ echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD >+ cat conftest.$ac_ext >&5 >+ fi >+ rm -f conftest* conftst* >+ >+ # Do not use the global_symbol_pipe unless it works. >+ if test "$pipe_works" = yes; then >+ break >+ else >+ lt_cv_sys_global_symbol_pipe= >+ fi >+done >+]) >+if test -z "$lt_cv_sys_global_symbol_pipe"; then >+ lt_cv_sys_global_symbol_to_cdecl= >+fi >+if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then >+ AC_MSG_RESULT(failed) >+else >+ AC_MSG_RESULT(ok) >+fi >+]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE >+ >+ >+# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME]) >+# --------------------------------------- >+AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC], >+[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)= >+_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= >+_LT_AC_TAGVAR(lt_prog_compiler_static, $1)= >+ >+AC_MSG_CHECKING([for $compiler option to produce PIC]) >+ ifelse([$1],[CXX],[ >+ # C++ specific cases for pic, static, wl, etc. >+ if test "$GXX" = yes; then >+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' >+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' >+ >+ case $host_os in >+ aix*) >+ # All AIX code is PIC. >+ if test "$host_cpu" = ia64; then >+ # AIX 5 now supports IA64 processor >+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' >+ fi >+ ;; >+ amigaos*) >+ # FIXME: we need at least 68020 code to build shared libraries, but >+ # adding the `-m68020' flag to GCC prevents building anything better, >+ # like `-m68040'. >+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' >+ ;; >+ beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) >+ # PIC is the default for these OSes. >+ ;; >+ mingw* | os2* | pw32*) >+ # This hack is so that the source file can tell whether it is being >+ # built for inclusion in a dll (and should export symbols for example). >+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' >+ ;; >+ darwin* | rhapsody*) >+ # PIC is the default on this platform >+ # Common symbols not allowed in MH_DYLIB files >+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' >+ ;; >+ *djgpp*) >+ # DJGPP does not support shared libraries at all >+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= >+ ;; >+ sysv4*MP*) >+ if test -d /usr/nec; then >+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic >+ fi >+ ;; >+ hpux*) >+ # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but >+ # not for PA HP-UX. >+ case "$host_cpu" in >+ hppa*64*|ia64*) >+ ;; >+ *) >+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' >+ ;; >+ esac >+ ;; >+ *) >+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' >+ ;; >+ esac >+ else >+ case $host_os in >+ aix4* | aix5*) >+ # All AIX code is PIC. >+ if test "$host_cpu" = ia64; then >+ # AIX 5 now supports IA64 processor >+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' >+ else >+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' >+ fi >+ ;; >+ chorus*) >+ case $cc_basename in >+ cxch68*) >+ # Green Hills C++ Compiler >+ # _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" >+ ;; >+ esac >+ ;; >+ darwin*) >+ # PIC is the default on this platform >+ # Common symbols not allowed in MH_DYLIB files >+ case $cc_basename in >+ xlc*) >+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon' >+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' >+ ;; >+ esac >+ ;; >+ dgux*) >+ case $cc_basename in >+ ec++*) >+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' >+ ;; >+ ghcx*) >+ # Green Hills C++ Compiler >+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' >+ ;; >+ *) >+ ;; >+ esac >+ ;; >+ freebsd* | kfreebsd*-gnu | dragonfly*) >+ # FreeBSD uses GNU C++ >+ ;; >+ hpux9* | hpux10* | hpux11*) >+ case $cc_basename in >+ CC*) >+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' >+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" >+ if test "$host_cpu" != ia64; then >+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' >+ fi >+ ;; >+ aCC*) >+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' >+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" >+ case "$host_cpu" in >+ hppa*64*|ia64*) >+ # +Z the default >+ ;; >+ *) >+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' >+ ;; >+ esac >+ ;; >+ *) >+ ;; >+ esac >+ ;; >+ irix5* | irix6* | nonstopux*) >+ case $cc_basename in >+ CC*) >+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' >+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' >+ # CC pic flag -KPIC is the default. >+ ;; >+ *) >+ ;; >+ esac >+ ;; >+ linux*) >+ case $cc_basename in >+ KCC*) >+ # KAI C++ Compiler >+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' >+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' >+ ;; >+ icpc* | ecpc*) >+ # Intel C++ >+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' >+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' >+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' >+ ;; >+ pgCC*) >+ # Portland Group C++ compiler. >+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' >+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' >+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' >+ ;; >+ cxx*) >+ # Compaq C++ >+ # Make sure the PIC flag is empty. It appears that all Alpha >+ # Linux and Compaq Tru64 Unix objects are PIC. >+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= >+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' >+ ;; >+ *) >+ ;; >+ esac >+ ;; >+ lynxos*) >+ ;; >+ m88k*) >+ ;; >+ mvs*) >+ case $cc_basename in >+ cxx*) >+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' >+ ;; >+ *) >+ ;; >+ esac >+ ;; >+ netbsd*) >+ ;; >+ osf3* | osf4* | osf5*) >+ case $cc_basename in >+ KCC*) >+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' >+ ;; >+ RCC*) >+ # Rational C++ 2.4.1 >+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' >+ ;; >+ cxx*) >+ # Digital/Compaq C++ >+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' >+ # Make sure the PIC flag is empty. It appears that all Alpha >+ # Linux and Compaq Tru64 Unix objects are PIC. >+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= >+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' >+ ;; >+ *) >+ ;; >+ esac >+ ;; >+ psos*) >+ ;; >+ sco*) >+ case $cc_basename in >+ CC*) >+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' >+ ;; >+ *) >+ ;; >+ esac >+ ;; >+ solaris*) >+ case $cc_basename in >+ CC*) >+ # Sun C++ 4.2, 5.x and Centerline C++ >+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' >+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' >+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' >+ ;; >+ gcx*) >+ # Green Hills C++ Compiler >+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' >+ ;; >+ *) >+ ;; >+ esac >+ ;; >+ sunos4*) >+ case $cc_basename in >+ CC*) >+ # Sun C++ 4.x >+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' >+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' >+ ;; >+ lcc*) >+ # Lucid >+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' >+ ;; >+ *) >+ ;; >+ esac >+ ;; >+ tandem*) >+ case $cc_basename in >+ NCC*) >+ # NonStop-UX NCC 3.20 >+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' >+ ;; >+ *) >+ ;; >+ esac >+ ;; >+ unixware*) >+ ;; >+ vxworks*) >+ ;; >+ *) >+ _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no >+ ;; >+ esac >+ fi >+], >+[ >+ if test "$GCC" = yes; then >+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' >+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' >+ >+ case $host_os in >+ aix*) >+ # All AIX code is PIC. >+ if test "$host_cpu" = ia64; then >+ # AIX 5 now supports IA64 processor >+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' >+ fi >+ ;; >+ >+ amigaos*) >+ # FIXME: we need at least 68020 code to build shared libraries, but >+ # adding the `-m68020' flag to GCC prevents building anything better, >+ # like `-m68040'. >+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' >+ ;; >+ >+ beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) >+ # PIC is the default for these OSes. >+ ;; >+ >+ mingw* | pw32* | os2*) >+ # This hack is so that the source file can tell whether it is being >+ # built for inclusion in a dll (and should export symbols for example). >+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' >+ ;; >+ >+ darwin* | rhapsody*) >+ # PIC is the default on this platform >+ # Common symbols not allowed in MH_DYLIB files >+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' >+ ;; >+ >+ msdosdjgpp*) >+ # Just because we use GCC doesn't mean we suddenly get shared libraries >+ # on systems that don't support them. >+ _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no >+ enable_shared=no >+ ;; >+ >+ sysv4*MP*) >+ if test -d /usr/nec; then >+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic >+ fi >+ ;; >+ >+ hpux*) >+ # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but >+ # not for PA HP-UX. >+ case "$host_cpu" in >+ hppa*64*|ia64*) >+ # +Z the default >+ ;; >+ *) >+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' >+ ;; >+ esac >+ ;; >+ >+ *) >+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' >+ ;; >+ esac >+ else >+ # PORTME Check for flag to pass linker flags through the system compiler. >+ case $host_os in >+ aix*) >+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' >+ if test "$host_cpu" = ia64; then >+ # AIX 5 now supports IA64 processor >+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' >+ else >+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' >+ fi >+ ;; >+ darwin*) >+ # PIC is the default on this platform >+ # Common symbols not allowed in MH_DYLIB files >+ case $cc_basename in >+ xlc*) >+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon' >+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' >+ ;; >+ esac >+ ;; >+ >+ mingw* | pw32* | os2*) >+ # This hack is so that the source file can tell whether it is being >+ # built for inclusion in a dll (and should export symbols for example). >+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' >+ ;; >+ >+ hpux9* | hpux10* | hpux11*) >+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' >+ # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but >+ # not for PA HP-UX. >+ case "$host_cpu" in >+ hppa*64*|ia64*) >+ # +Z the default >+ ;; >+ *) >+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' >+ ;; >+ esac >+ # Is there a better lt_prog_compiler_static that works with the bundled CC? >+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' >+ ;; >+ >+ irix5* | irix6* | nonstopux*) >+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' >+ # PIC (with -KPIC) is the default. >+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' >+ ;; >+ >+ newsos6) >+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' >+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' >+ ;; >+ >+ linux*) >+ case $cc_basename in >+ icc* | ecc*) >+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' >+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' >+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' >+ ;; >+ pgcc* | pgf77* | pgf90*) >+ # Portland Group compilers (*not* the Pentium gcc compiler, >+ # which looks to be a dead project) >+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' >+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' >+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' >+ ;; >+ ccc*) >+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' >+ # All Alpha code is PIC. >+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' >+ ;; >+ esac >+ ;; >+ >+ osf3* | osf4* | osf5*) >+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' >+ # All OSF/1 code is PIC. >+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' >+ ;; >+ >+ sco3.2v5*) >+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic' >+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn' >+ ;; >+ >+ solaris*) >+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' >+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' >+ case $cc_basename in >+ f77* | f90* | f95*) >+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; >+ *) >+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; >+ esac >+ ;; >+ >+ sunos4*) >+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' >+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' >+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' >+ ;; >+ >+ sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) >+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' >+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' >+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' >+ ;; >+ >+ sysv4*MP*) >+ if test -d /usr/nec ;then >+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' >+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' >+ fi >+ ;; >+ >+ unicos*) >+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' >+ _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no >+ ;; >+ >+ uts4*) >+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' >+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' >+ ;; >+ >+ *) >+ _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no >+ ;; >+ esac >+ fi >+]) >+AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)]) >+ >+# >+# Check to make sure the PIC flag actually works. >+# >+if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then >+ AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works], >+ _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1), >+ [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [], >+ [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in >+ "" | " "*) ;; >+ *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;; >+ esac], >+ [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= >+ _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) >+fi >+case "$host_os" in >+ # For platforms which do not support PIC, -DPIC is meaningless: >+ *djgpp*) >+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= >+ ;; >+ *) >+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])" >+ ;; >+esac >+]) >+ >+ >+# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME]) >+# ------------------------------------ >+# See if the linker supports building shared libraries. >+AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS], >+[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) >+ifelse([$1],[CXX],[ >+ _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' >+ case $host_os in >+ aix4* | aix5*) >+ # If we're using GNU nm, then we don't want the "-C" option. >+ # -C means demangle to AIX nm, but means don't demangle with GNU nm >+ if $NM -V 2>&1 | grep 'GNU' > /dev/null; then >+ _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' >+ else >+ _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' >+ fi >+ ;; >+ pw32*) >+ _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" >+ ;; >+ cygwin* | mingw*) >+ _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([[^ ]]*\) [[^ ]]*/\1 DATA/;/^I /d;/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols' >+ ;; >+ *) >+ _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' >+ ;; >+ esac >+],[ >+ runpath_var= >+ _LT_AC_TAGVAR(allow_undefined_flag, $1)= >+ _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no >+ _LT_AC_TAGVAR(archive_cmds, $1)= >+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)= >+ _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)= >+ _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)= >+ _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= >+ _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= >+ _LT_AC_TAGVAR(thread_safe_flag_spec, $1)= >+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= >+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= >+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= >+ _LT_AC_TAGVAR(hardcode_direct, $1)=no >+ _LT_AC_TAGVAR(hardcode_minus_L, $1)=no >+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported >+ _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown >+ _LT_AC_TAGVAR(hardcode_automatic, $1)=no >+ _LT_AC_TAGVAR(module_cmds, $1)= >+ _LT_AC_TAGVAR(module_expsym_cmds, $1)= >+ _LT_AC_TAGVAR(always_export_symbols, $1)=no >+ _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' >+ # include_expsyms should be a list of space-separated symbols to be *always* >+ # included in the symbol list >+ _LT_AC_TAGVAR(include_expsyms, $1)= >+ # exclude_expsyms can be an extended regexp of symbols to exclude >+ # it will be wrapped by ` (' and `)$', so one must not match beginning or >+ # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', >+ # as well as any symbol that contains `d'. >+ _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_" >+ # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out >+ # platforms (ab)use it in PIC code, but their linkers get confused if >+ # the symbol is explicitly referenced. Since portable code cannot >+ # rely on this symbol name, it's probably fine to never include it in >+ # preloaded symbol tables. >+ extract_expsyms_cmds= >+ # Just being paranoid about ensuring that cc_basename is set. >+ _LT_CC_BASENAME([$compiler]) >+ case $host_os in >+ cygwin* | mingw* | pw32*) >+ # FIXME: the MSVC++ port hasn't been tested in a loooong time >+ # When not using gcc, we currently assume that we are using >+ # Microsoft Visual C++. >+ if test "$GCC" != yes; then >+ with_gnu_ld=no >+ fi >+ ;; >+ openbsd*) >+ with_gnu_ld=no >+ ;; >+ esac >+ >+ _LT_AC_TAGVAR(ld_shlibs, $1)=yes >+ if test "$with_gnu_ld" = yes; then >+ # If archive_cmds runs LD, not CC, wlarc should be empty >+ wlarc='${wl}' >+ >+ # Set some defaults for GNU ld with shared library support. These >+ # are reset later if shared libraries are not supported. Putting them >+ # here allows them to be overridden if necessary. >+ runpath_var=LD_RUN_PATH >+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' >+ _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' >+ # ancient GNU ld didn't support --whole-archive et. al. >+ if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then >+ _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' >+ else >+ _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= >+ fi >+ supports_anon_versioning=no >+ case `$LD -v 2>/dev/null` in >+ *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 >+ *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... >+ *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... >+ *\ 2.11.*) ;; # other 2.11 versions >+ *) supports_anon_versioning=yes ;; >+ esac >+ >+ # See if GNU ld supports shared libraries. >+ case $host_os in >+ aix3* | aix4* | aix5*) >+ # On AIX/PPC, the GNU linker is very broken >+ if test "$host_cpu" != ia64; then >+ _LT_AC_TAGVAR(ld_shlibs, $1)=no >+ cat <<EOF 1>&2 >+ >+*** Warning: the GNU linker, at least up to release 2.9.1, is reported >+*** to be unable to reliably create shared libraries on AIX. >+*** Therefore, libtool is disabling shared libraries support. If you >+*** really care for shared libraries, you may want to modify your PATH >+*** so that a non-GNU linker is found, and then restart. >+ >+EOF >+ fi >+ ;; >+ >+ amigaos*) >+ _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)' >+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' >+ _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes >+ >+ # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports >+ # that the semantics of dynamic libraries on AmigaOS, at least up >+ # to version 4, is to share data among multiple programs linked >+ # with the same dynamic library. Since this doesn't match the >+ # behavior of shared libraries on other platforms, we can't use >+ # them. >+ _LT_AC_TAGVAR(ld_shlibs, $1)=no >+ ;; >+ >+ beos*) >+ if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then >+ _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported >+ # Joseph Beckenbach <jrb3@best.com> says some releases of gcc >+ # support --undefined. This deserves some investigation. FIXME >+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' >+ else >+ _LT_AC_TAGVAR(ld_shlibs, $1)=no >+ fi >+ ;; >+ >+ cygwin* | mingw* | pw32*) >+ # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, >+ # as there is no search path for DLLs. >+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' >+ _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported >+ _LT_AC_TAGVAR(always_export_symbols, $1)=no >+ _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes >+ _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols' >+ >+ if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then >+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' >+ # If the export-symbols file already is a .def file (1st line >+ # is EXPORTS), use it as is; otherwise, prepend... >+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then >+ cp $export_symbols $output_objdir/$soname.def; >+ else >+ echo EXPORTS > $output_objdir/$soname.def; >+ cat $export_symbols >> $output_objdir/$soname.def; >+ fi~ >+ $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' >+ else >+ _LT_AC_TAGVAR(ld_shlibs, $1)=no >+ fi >+ ;; >+ >+ linux*) >+ if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then >+ tmp_addflag= >+ case $cc_basename,$host_cpu in >+ pgcc*) # Portland Group C compiler >+ _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' >+ tmp_addflag=' $pic_flag' >+ ;; >+ pgf77* | pgf90* ) # Portland Group f77 and f90 compilers >+ _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' >+ tmp_addflag=' $pic_flag -Mnomain' ;; >+ ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 >+ tmp_addflag=' -i_dynamic' ;; >+ efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 >+ tmp_addflag=' -i_dynamic -nofor_main' ;; >+ ifc* | ifort*) # Intel Fortran compiler >+ tmp_addflag=' -nofor_main' ;; >+ esac >+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' >+ >+ if test $supports_anon_versioning = yes; then >+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~ >+ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ >+ $echo "local: *; };" >> $output_objdir/$libname.ver~ >+ $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' >+ fi >+ else >+ _LT_AC_TAGVAR(ld_shlibs, $1)=no >+ fi >+ ;; >+ >+ netbsd*) >+ if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then >+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' >+ wlarc= >+ else >+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' >+ _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' >+ fi >+ ;; >+ >+ solaris* | sysv5*) >+ if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then >+ _LT_AC_TAGVAR(ld_shlibs, $1)=no >+ cat <<EOF 1>&2 >+ >+*** Warning: The releases 2.8.* of the GNU linker cannot reliably >+*** create shared libraries on Solaris systems. Therefore, libtool >+*** is disabling shared libraries support. We urge you to upgrade GNU >+*** binutils to release 2.9.1 or newer. Another option is to modify >+*** your PATH or compiler configuration so that the native linker is >+*** used, and then restart. >+ >+EOF >+ elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then >+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' >+ _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' >+ else >+ _LT_AC_TAGVAR(ld_shlibs, $1)=no >+ fi >+ ;; >+ >+ sunos4*) >+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' >+ wlarc= >+ _LT_AC_TAGVAR(hardcode_direct, $1)=yes >+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no >+ ;; >+ >+ *) >+ if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then >+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' >+ _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' >+ else >+ _LT_AC_TAGVAR(ld_shlibs, $1)=no >+ fi >+ ;; >+ esac >+ >+ if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then >+ runpath_var= >+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= >+ _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= >+ _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= >+ fi >+ else >+ # PORTME fill in a description of your system's linker (not GNU ld) >+ case $host_os in >+ aix3*) >+ _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported >+ _LT_AC_TAGVAR(always_export_symbols, $1)=yes >+ _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' >+ # Note: this linker hardcodes the directories in LIBPATH if there >+ # are no directories specified by -L. >+ _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes >+ if test "$GCC" = yes && test -z "$link_static_flag"; then >+ # Neither direct hardcoding nor static linking is supported with a >+ # broken collect2. >+ _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported >+ fi >+ ;; >+ >+ aix4* | aix5*) >+ if test "$host_cpu" = ia64; then >+ # On IA64, the linker does run time linking by default, so we don't >+ # have to do anything special. >+ aix_use_runtimelinking=no >+ exp_sym_flag='-Bexport' >+ no_entry_flag="" >+ else >+ # If we're using GNU nm, then we don't want the "-C" option. >+ # -C means demangle to AIX nm, but means don't demangle with GNU nm >+ if $NM -V 2>&1 | grep 'GNU' > /dev/null; then >+ _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' >+ else >+ _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' >+ fi >+ aix_use_runtimelinking=no >+ >+ # Test if we are trying to use run time linking or normal >+ # AIX style linking. If -brtl is somewhere in LDFLAGS, we >+ # need to do runtime linking. >+ case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*) >+ for ld_flag in $LDFLAGS; do >+ if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then >+ aix_use_runtimelinking=yes >+ break >+ fi >+ done >+ esac >+ >+ exp_sym_flag='-bexport' >+ no_entry_flag='-bnoentry' >+ fi >+ >+ # When large executables or shared objects are built, AIX ld can >+ # have problems creating the table of contents. If linking a library >+ # or program results in "error TOC overflow" add -mminimal-toc to >+ # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not >+ # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. >+ >+ _LT_AC_TAGVAR(archive_cmds, $1)='' >+ _LT_AC_TAGVAR(hardcode_direct, $1)=yes >+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' >+ _LT_AC_TAGVAR(link_all_deplibs, $1)=yes >+ >+ if test "$GCC" = yes; then >+ case $host_os in aix4.[[012]]|aix4.[[012]].*) >+ # We only want to do this on AIX 4.2 and lower, the check >+ # below for broken collect2 doesn't work under 4.3+ >+ collect2name=`${CC} -print-prog-name=collect2` >+ if test -f "$collect2name" && \ >+ strings "$collect2name" | grep resolve_lib_name >/dev/null >+ then >+ # We have reworked collect2 >+ _LT_AC_TAGVAR(hardcode_direct, $1)=yes >+ else >+ # We have old collect2 >+ _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported >+ # It fails to find uninstalled libraries when the uninstalled >+ # path is not listed in the libpath. Setting hardcode_minus_L >+ # to unsupported forces relinking >+ _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes >+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' >+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= >+ fi >+ esac >+ shared_flag='-shared' >+ if test "$aix_use_runtimelinking" = yes; then >+ shared_flag="$shared_flag "'${wl}-G' >+ fi >+ else >+ # not using gcc >+ if test "$host_cpu" = ia64; then >+ # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release >+ # chokes on -Wl,-G. The following line is correct: >+ shared_flag='-G' >+ else >+ if test "$aix_use_runtimelinking" = yes; then >+ shared_flag='${wl}-G' >+ else >+ shared_flag='${wl}-bM:SRE' >+ fi >+ fi >+ fi >+ >+ # It seems that -bexpall does not export symbols beginning with >+ # underscore (_), so it is better to generate a list of symbols to export. >+ _LT_AC_TAGVAR(always_export_symbols, $1)=yes >+ if test "$aix_use_runtimelinking" = yes; then >+ # Warning - without using the other runtime loading flags (-brtl), >+ # -berok will link without error, but may produce a broken library. >+ _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' >+ # Determine the default libpath from the value encoded in an empty executable. >+ _LT_AC_SYS_LIBPATH_AIX >+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" >+ _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" >+ else >+ if test "$host_cpu" = ia64; then >+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' >+ _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" >+ _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" >+ else >+ # Determine the default libpath from the value encoded in an empty executable. >+ _LT_AC_SYS_LIBPATH_AIX >+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" >+ # Warning - without using the other run time loading flags, >+ # -berok will link without error, but may produce a broken library. >+ _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' >+ _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' >+ # -bexpall does not export symbols beginning with underscore (_) >+ _LT_AC_TAGVAR(always_export_symbols, $1)=yes >+ # Exported symbols can be pulled into shared objects from archives >+ _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' ' >+ _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes >+ # This is similar to how AIX traditionally builds it's shared libraries. >+ _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' >+ fi >+ fi >+ ;; >+ >+ amigaos*) >+ _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)' >+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' >+ _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes >+ # see comment about different semantics on the GNU ld section >+ _LT_AC_TAGVAR(ld_shlibs, $1)=no >+ ;; >+ >+ bsdi[[45]]*) >+ _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic >+ ;; >+ >+ cygwin* | mingw* | pw32*) >+ # When not using gcc, we currently assume that we are using >+ # Microsoft Visual C++. >+ # hardcode_libdir_flag_spec is actually meaningless, as there is >+ # no search path for DLLs. >+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' >+ _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported >+ # Tell ltmain to make .lib files, not .a files. >+ libext=lib >+ # Tell ltmain to make .dll files, not .so files. >+ shrext_cmds=".dll" >+ # FIXME: Setting linknames here is a bad hack. >+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' >+ # The linker will automatically build a .lib file if we build a DLL. >+ _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true' >+ # FIXME: Should let the user specify the lib program. >+ _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs' >+ _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`' >+ _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes >+ ;; >+ >+ darwin* | rhapsody*) >+ case "$host_os" in >+ rhapsody* | darwin1.[[012]]) >+ _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress' >+ ;; >+ *) # Darwin 1.3 on >+ if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then >+ _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' >+ else >+ case ${MACOSX_DEPLOYMENT_TARGET} in >+ 10.[[012]]) >+ _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' >+ ;; >+ 10.*) >+ _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup' >+ ;; >+ esac >+ fi >+ ;; >+ esac >+ _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no >+ _LT_AC_TAGVAR(hardcode_direct, $1)=no >+ _LT_AC_TAGVAR(hardcode_automatic, $1)=yes >+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported >+ _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='' >+ _LT_AC_TAGVAR(link_all_deplibs, $1)=yes >+ if test "$GCC" = yes ; then >+ output_verbose_link_cmd='echo' >+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' >+ _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' >+ # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's >+ _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}' >+ _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}' >+ else >+ case $cc_basename in >+ xlc*) >+ output_verbose_link_cmd='echo' >+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' >+ _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' >+ # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's >+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' >+ _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}' >+ ;; >+ *) >+ _LT_AC_TAGVAR(ld_shlibs, $1)=no >+ ;; >+ esac >+ fi >+ ;; >+ >+ dgux*) >+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' >+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' >+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no >+ ;; >+ >+ freebsd1*) >+ _LT_AC_TAGVAR(ld_shlibs, $1)=no >+ ;; >+ >+ # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor >+ # support. Future versions do this automatically, but an explicit c++rt0.o >+ # does not break anything, and helps significantly (at the cost of a little >+ # extra space). >+ freebsd2.2*) >+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' >+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' >+ _LT_AC_TAGVAR(hardcode_direct, $1)=yes >+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no >+ ;; >+ >+ # Unfortunately, older versions of FreeBSD 2 do not have this feature. >+ freebsd2*) >+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' >+ _LT_AC_TAGVAR(hardcode_direct, $1)=yes >+ _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes >+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no >+ ;; >+ >+ # FreeBSD 3 and greater uses gcc -shared to do shared libraries. >+ freebsd* | kfreebsd*-gnu | dragonfly*) >+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' >+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' >+ _LT_AC_TAGVAR(hardcode_direct, $1)=yes >+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no >+ ;; >+ >+ hpux9*) >+ if test "$GCC" = yes; then >+ _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' >+ else >+ _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' >+ fi >+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' >+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: >+ _LT_AC_TAGVAR(hardcode_direct, $1)=yes >+ >+ # hardcode_minus_L: Not really in the search PATH, >+ # but as the default location of the library. >+ _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes >+ _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' >+ ;; >+ >+ hpux10* | hpux11*) >+ if test "$GCC" = yes -a "$with_gnu_ld" = no; then >+ case "$host_cpu" in >+ hppa*64*|ia64*) >+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' >+ ;; >+ *) >+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' >+ ;; >+ esac >+ else >+ case "$host_cpu" in >+ hppa*64*|ia64*) >+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' >+ ;; >+ *) >+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' >+ ;; >+ esac >+ fi >+ if test "$with_gnu_ld" = no; then >+ case "$host_cpu" in >+ hppa*64*) >+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' >+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' >+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: >+ _LT_AC_TAGVAR(hardcode_direct, $1)=no >+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no >+ ;; >+ ia64*) >+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' >+ _LT_AC_TAGVAR(hardcode_direct, $1)=no >+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no >+ >+ # hardcode_minus_L: Not really in the search PATH, >+ # but as the default location of the library. >+ _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes >+ ;; >+ *) >+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' >+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: >+ _LT_AC_TAGVAR(hardcode_direct, $1)=yes >+ _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' >+ >+ # hardcode_minus_L: Not really in the search PATH, >+ # but as the default location of the library. >+ _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes >+ ;; >+ esac >+ fi >+ ;; >+ >+ irix5* | irix6* | nonstopux*) >+ if test "$GCC" = yes; then >+ _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' >+ else >+ _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' >+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir' >+ fi >+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' >+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: >+ _LT_AC_TAGVAR(link_all_deplibs, $1)=yes >+ ;; >+ >+ netbsd*) >+ if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then >+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out >+ else >+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF >+ fi >+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' >+ _LT_AC_TAGVAR(hardcode_direct, $1)=yes >+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no >+ ;; >+ >+ newsos6) >+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' >+ _LT_AC_TAGVAR(hardcode_direct, $1)=yes >+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' >+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: >+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no >+ ;; >+ >+ openbsd*) >+ _LT_AC_TAGVAR(hardcode_direct, $1)=yes >+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no >+ if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then >+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' >+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' >+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' >+ _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' >+ else >+ case $host_os in >+ openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) >+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' >+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' >+ ;; >+ *) >+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' >+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' >+ ;; >+ esac >+ fi >+ ;; >+ >+ os2*) >+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' >+ _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes >+ _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported >+ _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' >+ _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' >+ ;; >+ >+ osf3*) >+ if test "$GCC" = yes; then >+ _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' >+ _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' >+ else >+ _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' >+ _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' >+ fi >+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' >+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: >+ ;; >+ >+ osf4* | osf5*) # as osf3* with the addition of -msym flag >+ if test "$GCC" = yes; then >+ _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' >+ _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' >+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' >+ else >+ _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' >+ _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' >+ _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~ >+ $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' >+ >+ # Both c and cxx compiler support -rpath directly >+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' >+ fi >+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: >+ ;; >+ >+ sco3.2v5*) >+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' >+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no >+ _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' >+ runpath_var=LD_RUN_PATH >+ hardcode_runpath_var=yes >+ ;; >+ >+ solaris*) >+ _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text' >+ if test "$GCC" = yes; then >+ wlarc='${wl}' >+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' >+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ >+ $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' >+ else >+ wlarc='' >+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' >+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ >+ $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' >+ fi >+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' >+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no >+ case $host_os in >+ solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; >+ *) >+ # The compiler driver will combine linker options so we >+ # cannot just pass the convience library names through >+ # without $wl, iff we do not link with $LD. >+ # Luckily, gcc supports the same syntax we need for Sun Studio. >+ # Supported since Solaris 2.6 (maybe 2.5.1?) >+ case $wlarc in >+ '') >+ _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;; >+ *) >+ _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; >+ esac ;; >+ esac >+ _LT_AC_TAGVAR(link_all_deplibs, $1)=yes >+ ;; >+ >+ sunos4*) >+ if test "x$host_vendor" = xsequent; then >+ # Use $CC to link under sequent, because it throws in some extra .o >+ # files that make .init and .fini sections work. >+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' >+ else >+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' >+ fi >+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' >+ _LT_AC_TAGVAR(hardcode_direct, $1)=yes >+ _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes >+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no >+ ;; >+ >+ sysv4) >+ case $host_vendor in >+ sni) >+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' >+ _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true??? >+ ;; >+ siemens) >+ ## LD is ld it makes a PLAMLIB >+ ## CC just makes a GrossModule. >+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' >+ _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' >+ _LT_AC_TAGVAR(hardcode_direct, $1)=no >+ ;; >+ motorola) >+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' >+ _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie >+ ;; >+ esac >+ runpath_var='LD_RUN_PATH' >+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no >+ ;; >+ >+ sysv4.3*) >+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' >+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no >+ _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' >+ ;; >+ >+ sysv4*MP*) >+ if test -d /usr/nec; then >+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' >+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no >+ runpath_var=LD_RUN_PATH >+ hardcode_runpath_var=yes >+ _LT_AC_TAGVAR(ld_shlibs, $1)=yes >+ fi >+ ;; >+ >+ sysv4.2uw2*) >+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' >+ _LT_AC_TAGVAR(hardcode_direct, $1)=yes >+ _LT_AC_TAGVAR(hardcode_minus_L, $1)=no >+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no >+ hardcode_runpath_var=yes >+ runpath_var=LD_RUN_PATH >+ ;; >+ >+ sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*) >+ _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text' >+ if test "$GCC" = yes; then >+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' >+ else >+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' >+ fi >+ runpath_var='LD_RUN_PATH' >+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no >+ ;; >+ >+ sysv5*) >+ _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text' >+ # $CC -shared without GNU ld will not create a library from C++ >+ # object files and a static libstdc++, better avoid it by now >+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' >+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ >+ $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' >+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= >+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no >+ runpath_var='LD_RUN_PATH' >+ ;; >+ >+ uts4*) >+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' >+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' >+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no >+ ;; >+ >+ *) >+ _LT_AC_TAGVAR(ld_shlibs, $1)=no >+ ;; >+ esac >+ fi >+]) >+AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) >+test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no >+ >+variables_saved_for_relink="PATH $shlibpath_var $runpath_var" >+if test "$GCC" = yes; then >+ variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" >+fi >+ >+# >+# Do we need to explicitly link libc? >+# >+case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in >+x|xyes) >+ # Assume -lc should be added >+ _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes >+ >+ if test "$enable_shared" = yes && test "$GCC" = yes; then >+ case $_LT_AC_TAGVAR(archive_cmds, $1) in >+ *'~'*) >+ # FIXME: we may have to deal with multi-command sequences. >+ ;; >+ '$CC '*) >+ # Test whether the compiler implicitly links with -lc since on some >+ # systems, -lgcc has to come before -lc. If gcc already passes -lc >+ # to ld, don't add -lc before -lgcc. >+ AC_MSG_CHECKING([whether -lc should be explicitly linked in]) >+ $rm conftest* >+ printf "$lt_simple_compile_test_code" > conftest.$ac_ext >+ >+ if AC_TRY_EVAL(ac_compile) 2>conftest.err; then >+ soname=conftest >+ lib=conftest >+ libobjs=conftest.$ac_objext >+ deplibs= >+ wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) >+ compiler_flags=-v >+ linker_flags=-v >+ verstring= >+ output_objdir=. >+ libname=conftest >+ lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1) >+ _LT_AC_TAGVAR(allow_undefined_flag, $1)= >+ if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) >+ then >+ _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no >+ else >+ _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes >+ fi >+ _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag >+ else >+ cat conftest.err 1>&5 >+ fi >+ $rm conftest* >+ AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)]) >+ ;; >+ esac >+ fi >+ ;; >+esac >+])# AC_LIBTOOL_PROG_LD_SHLIBS >+ >+ >+# _LT_AC_FILE_LTDLL_C >+# ------------------- >+# Be careful that the start marker always follows a newline. >+AC_DEFUN([_LT_AC_FILE_LTDLL_C], [ >+# /* ltdll.c starts here */ >+# #define WIN32_LEAN_AND_MEAN >+# #include <windows.h> >+# #undef WIN32_LEAN_AND_MEAN >+# #include <stdio.h> >+# >+# #ifndef __CYGWIN__ >+# # ifdef __CYGWIN32__ >+# # define __CYGWIN__ __CYGWIN32__ >+# # endif >+# #endif >+# >+# #ifdef __cplusplus >+# extern "C" { >+# #endif >+# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved); >+# #ifdef __cplusplus >+# } >+# #endif >+# >+# #ifdef __CYGWIN__ >+# #include <cygwin/cygwin_dll.h> >+# DECLARE_CYGWIN_DLL( DllMain ); >+# #endif >+# HINSTANCE __hDllInstance_base; >+# >+# BOOL APIENTRY >+# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved) >+# { >+# __hDllInstance_base = hInst; >+# return TRUE; >+# } >+# /* ltdll.c ends here */ >+])# _LT_AC_FILE_LTDLL_C >+ >+ >+# _LT_AC_TAGVAR(VARNAME, [TAGNAME]) >+# --------------------------------- >+AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])]) >+ >+ >+# old names >+AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL]) >+AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) >+AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) >+AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) >+AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) >+AC_DEFUN([AM_PROG_LD], [AC_PROG_LD]) >+AC_DEFUN([AM_PROG_NM], [AC_PROG_NM]) >+ >+# This is just to silence aclocal about the macro not being used >+ifelse([AC_DISABLE_FAST_INSTALL]) >+ >+AC_DEFUN([LT_AC_PROG_GCJ], >+[AC_CHECK_TOOL(GCJ, gcj, no) >+ test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2" >+ AC_SUBST(GCJFLAGS) >+]) >+ >+AC_DEFUN([LT_AC_PROG_RC], >+[AC_CHECK_TOOL(RC, windres, no) >+]) >+ >+# NOTE: This macro has been submitted for inclusion into # >+# GNU Autoconf as AC_PROG_SED. When it is available in # >+# a released version of Autoconf we should remove this # >+# macro and use it instead. # >+# LT_AC_PROG_SED >+# -------------- >+# Check for a fully-functional sed program, that truncates >+# as few characters as possible. Prefer GNU sed if found. >+AC_DEFUN([LT_AC_PROG_SED], >+[AC_MSG_CHECKING([for a sed that does not truncate output]) >+AC_CACHE_VAL(lt_cv_path_SED, >+[# Loop through the user's path and test for sed and gsed. >+# Then use that list of sed's as ones to test for truncation. >+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR >+for as_dir in $PATH >+do >+ IFS=$as_save_IFS >+ test -z "$as_dir" && as_dir=. >+ for lt_ac_prog in sed gsed; do >+ for ac_exec_ext in '' $ac_executable_extensions; do >+ if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then >+ lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" >+ fi >+ done >+ done >+done >+lt_ac_max=0 >+lt_ac_count=0 >+# Add /usr/xpg4/bin/sed as it is typically found on Solaris >+# along with /bin/sed that truncates output. >+for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do >+ test ! -f $lt_ac_sed && continue >+ cat /dev/null > conftest.in >+ lt_ac_count=0 >+ echo $ECHO_N "0123456789$ECHO_C" >conftest.in >+ # Check for GNU sed and select it if it is found. >+ if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then >+ lt_cv_path_SED=$lt_ac_sed >+ break >+ fi >+ while true; do >+ cat conftest.in conftest.in >conftest.tmp >+ mv conftest.tmp conftest.in >+ cp conftest.in conftest.nl >+ echo >>conftest.nl >+ $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break >+ cmp -s conftest.out conftest.nl || break >+ # 10000 chars as input seems more than enough >+ test $lt_ac_count -gt 10 && break >+ lt_ac_count=`expr $lt_ac_count + 1` >+ if test $lt_ac_count -gt $lt_ac_max; then >+ lt_ac_max=$lt_ac_count >+ lt_cv_path_SED=$lt_ac_sed >+ fi >+ done >+done >+]) >+SED=$lt_cv_path_SED >+AC_MSG_RESULT([$SED]) >+]) >+ >+ >+dnl PKG_CHECK_MODULES(GSTUFF, gtk+-2.0 >= 1.3 glib = 1.3.4, action-if, action-not) >+dnl defines GSTUFF_LIBS, GSTUFF_CFLAGS, see pkg-config man page >+dnl also defines GSTUFF_PKG_ERRORS on error >+AC_DEFUN(PKG_CHECK_MODULES, [ >+ succeeded=no >+ >+ if test -z "$PKG_CONFIG"; then >+ AC_PATH_PROG(PKG_CONFIG, pkg-config, no) >+ fi >+ >+ if test "$PKG_CONFIG" = "no" ; then >+ echo "*** The pkg-config script could not be found. Make sure it is" >+ echo "*** in your path, or set the PKG_CONFIG environment variable" >+ echo "*** to the full path to pkg-config." >+ echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." >+ else >+ PKG_CONFIG_MIN_VERSION=0.9.0 >+ if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then >+ AC_MSG_CHECKING(for $2) >+ >+ if $PKG_CONFIG --exists "$2" ; then >+ AC_MSG_RESULT(yes) >+ succeeded=yes >+ >+ AC_MSG_CHECKING($1_CFLAGS) >+ $1_CFLAGS=`$PKG_CONFIG --cflags "$2"` >+ AC_MSG_RESULT($$1_CFLAGS) >+ >+ AC_MSG_CHECKING($1_LIBS) >+ $1_LIBS=`$PKG_CONFIG --libs "$2"` >+ AC_MSG_RESULT($$1_LIBS) >+ else >+ $1_CFLAGS="" >+ $1_LIBS="" >+ ## If we have a custom action on failure, don't print errors, but >+ ## do set a variable so people can do so. >+ $1_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"` >+ ifelse([$4], ,echo $$1_PKG_ERRORS,) >+ fi >+ >+ AC_SUBST($1_CFLAGS) >+ AC_SUBST($1_LIBS) >+ else >+ echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." >+ echo "*** See http://www.freedesktop.org/software/pkgconfig" >+ fi >+ fi >+ >+ if test $succeeded = yes; then >+ ifelse([$3], , :, [$3]) >+ else >+ ifelse([$4], , AC_MSG_ERROR([Library requirements ($2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.]), [$4]) >+ fi >+]) >+ >+ >+ >Common subdirectories: darimasen-0.0.8/autom4te.cache and darimasen-0.0.8-new/autom4te.cache >diff -aNu darimasen-0.0.8/config.guess darimasen-0.0.8-new/config.guess >--- darimasen-0.0.8/config.guess 2005-05-19 02:10:02.000000000 +0200 >+++ darimasen-0.0.8-new/config.guess 2004-10-28 00:20:21.000000000 +0200 >@@ -3,7 +3,7 @@ > # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, > # 2000, 2001, 2002, 2003 Free Software Foundation, Inc. > >-timestamp='2003-07-02' >+timestamp='2004-03-12' > > # This file is free software; you can redistribute it and/or modify it > # under the terms of the GNU General Public License as published by >@@ -136,16 +136,6 @@ > UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown > UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown > >-case "${UNAME_MACHINE}" in >- i?86) >- test -z "$VENDOR" && VENDOR=pc >- ;; >- *) >- test -z "$VENDOR" && VENDOR=unknown >- ;; >-esac >-test -f /etc/SuSE-release -o -f /.buildenv && VENDOR=suse >- > # Note: order is significant - the case branches are not exclusive. > > case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in >@@ -207,12 +197,18 @@ > # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. > echo "${machine}-${os}${release}" > exit 0 ;; >+ amd64:OpenBSD:*:*) >+ echo x86_64-unknown-openbsd${UNAME_RELEASE} >+ exit 0 ;; > amiga:OpenBSD:*:*) > echo m68k-unknown-openbsd${UNAME_RELEASE} > exit 0 ;; > arc:OpenBSD:*:*) > echo mipsel-unknown-openbsd${UNAME_RELEASE} > exit 0 ;; >+ cats:OpenBSD:*:*) >+ echo arm-unknown-openbsd${UNAME_RELEASE} >+ exit 0 ;; > hp300:OpenBSD:*:*) > echo m68k-unknown-openbsd${UNAME_RELEASE} > exit 0 ;; >@@ -231,6 +227,9 @@ > mvmeppc:OpenBSD:*:*) > echo powerpc-unknown-openbsd${UNAME_RELEASE} > exit 0 ;; >+ pegasos:OpenBSD:*:*) >+ echo powerpc-unknown-openbsd${UNAME_RELEASE} >+ exit 0 ;; > pmax:OpenBSD:*:*) > echo mipsel-unknown-openbsd${UNAME_RELEASE} > exit 0 ;; >@@ -246,10 +245,24 @@ > *:OpenBSD:*:*) > echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE} > exit 0 ;; >+ *:ekkoBSD:*:*) >+ echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} >+ exit 0 ;; >+ macppc:MirBSD:*:*) >+ echo powerppc-unknown-mirbsd${UNAME_RELEASE} >+ exit 0 ;; >+ *:MirBSD:*:*) >+ echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} >+ exit 0 ;; > alpha:OSF1:*:*) >- if test $UNAME_RELEASE = "V4.0"; then >+ case $UNAME_RELEASE in >+ *4.0) > UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` >- fi >+ ;; >+ *5.*) >+ UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` >+ ;; >+ esac > # According to Compaq, /usr/sbin/psrinfo has been available on > # OSF/1 and Tru64 systems produced since 1995. I hope that > # covers most systems running today. This code pipes the CPU >@@ -287,11 +300,12 @@ > "EV7.9 (21364A)") > UNAME_MACHINE="alphaev79" ;; > esac >+ # A Pn.n version is a patched version. > # A Vn.n version is a released version. > # A Tn.n version is a released field test version. > # A Xn.n version is an unreleased experimental baselevel. > # 1.2 uses "1.2" for uname -r. >- echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` >+ echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` > exit 0 ;; > Alpha*:OpenVMS:*:*) > echo alpha-hp-vms >@@ -317,6 +331,9 @@ > *:OS/390:*:*) > echo i370-ibm-openedition > exit 0 ;; >+ *:OS400:*:*) >+ echo powerpc-ibm-os400 >+ exit 0 ;; > arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) > echo arm-acorn-riscix${UNAME_RELEASE} > exit 0;; >@@ -409,6 +426,9 @@ > *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) > echo m68k-unknown-mint${UNAME_RELEASE} > exit 0 ;; >+ m68k:machten:*:*) >+ echo m68k-apple-machten${UNAME_RELEASE} >+ exit 0 ;; > powerpc:machten:*:*) > echo powerpc-apple-machten${UNAME_RELEASE} > exit 0 ;; >@@ -744,7 +764,7 @@ > echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' > exit 0 ;; > *:UNICOS/mp:*:*) >- echo nv1-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' >+ echo nv1-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' > exit 0 ;; > F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) > FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` >@@ -752,6 +772,11 @@ > FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` > echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" > exit 0 ;; >+ 5000:UNIX_System_V:4.*:*) >+ FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` >+ FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` >+ echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" >+ exit 0 ;; > i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) > echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} > exit 0 ;; >@@ -761,7 +786,7 @@ > *:BSD/OS:*:*) > echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} > exit 0 ;; >- *:FreeBSD:*:*|*:GNU/FreeBSD:*:*) >+ *:FreeBSD:*:*) > # Determine whether the default compiler uses glibc. > eval $set_cc_for_build > sed 's/^ //' << EOF >$dummy.c >@@ -773,7 +798,7 @@ > #endif > EOF > eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=` >- # GNU/FreeBSD systems have a "k" prefix to indicate we are using >+ # GNU/KFreeBSD systems have a "k" prefix to indicate we are using > # FreeBSD's kernel, but not the complete OS. > case ${LIBC} in gnu) kernel_only='k' ;; esac > echo ${UNAME_MACHINE}-unknown-${kernel_only}freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC} >@@ -809,22 +834,30 @@ > echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` > exit 0 ;; > *:GNU:*:*) >+ # the GNU system > echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` > exit 0 ;; >+ *:GNU/*:*:*) >+ # other systems with GNU libc and userland >+ echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu >+ exit 0 ;; > i*86:Minix:*:*) > echo ${UNAME_MACHINE}-pc-minix > exit 0 ;; > arm*:Linux:*:*) >- echo ${UNAME_MACHINE}-${VENDOR}-linux >+ echo ${UNAME_MACHINE}-unknown-linux-gnu > exit 0 ;; > cris:Linux:*:*) >- echo cris-axis-linux >+ echo cris-axis-linux-gnu > exit 0 ;; > ia64:Linux:*:*) >- echo ${UNAME_MACHINE}-${VENDOR}-linux >+ echo ${UNAME_MACHINE}-unknown-linux-gnu >+ exit 0 ;; >+ m32r*:Linux:*:*) >+ echo ${UNAME_MACHINE}-unknown-linux-gnu > exit 0 ;; > m68*:Linux:*:*) >- echo ${UNAME_MACHINE}-${VENDOR}-linux >+ echo ${UNAME_MACHINE}-unknown-linux-gnu > exit 0 ;; > mips:Linux:*:*) > eval $set_cc_for_build >@@ -843,7 +876,7 @@ > #endif > EOF > eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=` >- test x"${CPU}" != x && echo "${CPU}-${VENDOR}-linux" && exit 0 >+ test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0 > ;; > mips64:Linux:*:*) > eval $set_cc_for_build >@@ -862,13 +895,13 @@ > #endif > EOF > eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=` >- test x"${CPU}" != x && echo "${CPU}-${VENDOR}-linux" && exit 0 >+ test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0 > ;; > ppc:Linux:*:*) >- echo powerpc-${VENDOR}-linux >+ echo powerpc-unknown-linux-gnu > exit 0 ;; > ppc64:Linux:*:*) >- echo powerpc64-${VENDOR}-linux >+ echo powerpc64-unknown-linux-gnu > exit 0 ;; > alpha:Linux:*:*) > case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in >@@ -881,34 +914,34 @@ > EV68*) UNAME_MACHINE=alphaev68 ;; > esac > objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null >- if test "$?" = 0 ; then LIBC="-libc1" ; else LIBC="" ; fi >- echo ${UNAME_MACHINE}-${VENDOR}-linux${LIBC} >+ if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi >+ echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} > exit 0 ;; > parisc:Linux:*:* | hppa:Linux:*:*) > # Look for CPU level > case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in >- PA7*) echo hppa1.1-${VENDOR}-linux ;; >- PA8*) echo hppa2.0-${VENDOR}-linux ;; >- *) echo hppa-${VENDOR}-linux ;; >+ PA7*) echo hppa1.1-unknown-linux-gnu ;; >+ PA8*) echo hppa2.0-unknown-linux-gnu ;; >+ *) echo hppa-unknown-linux-gnu ;; > esac > exit 0 ;; > parisc64:Linux:*:* | hppa64:Linux:*:*) >- echo hppa64-${VENDOR}-linux >+ echo hppa64-unknown-linux-gnu > exit 0 ;; > s390:Linux:*:* | s390x:Linux:*:*) > echo ${UNAME_MACHINE}-ibm-linux > exit 0 ;; > sh64*:Linux:*:*) >- echo ${UNAME_MACHINE}-${VENDOR}-linux >+ echo ${UNAME_MACHINE}-unknown-linux-gnu > exit 0 ;; > sh*:Linux:*:*) >- echo ${UNAME_MACHINE}-${VENDOR}-linux >+ echo ${UNAME_MACHINE}-unknown-linux-gnu > exit 0 ;; > sparc:Linux:*:* | sparc64:Linux:*:*) >- echo ${UNAME_MACHINE}-${VENDOR}-linux >+ echo ${UNAME_MACHINE}-unknown-linux-gnu > exit 0 ;; > x86_64:Linux:*:*) >- echo x86_64-${VENDOR}-linux >+ echo x86_64-unknown-linux-gnu > exit 0 ;; > i*86:Linux:*:*) > # The BFD linker knows what the default object file format is, so >@@ -923,18 +956,18 @@ > p'` > case "$ld_supported_targets" in > elf32-i386) >- TENTATIVE="${UNAME_MACHINE}-${VENDOR}-linux" >+ TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu" > ;; > a.out-i386-linux) >- echo "${UNAME_MACHINE}-${VENDOR}-linuxaout" >+ echo "${UNAME_MACHINE}-pc-linux-gnuaout" > exit 0 ;; > coff-i386) >- echo "${UNAME_MACHINE}-${VENDOR}-linuxcoff" >+ echo "${UNAME_MACHINE}-pc-linux-gnucoff" > exit 0 ;; > "") >- # Either a pre-BFD a.out linker (linuxoldld) or >+ # Either a pre-BFD a.out linker (linux-gnuoldld) or > # one that does not give us useful --help. >- echo "${UNAME_MACHINE}-${VENDOR}-linuxoldld" >+ echo "${UNAME_MACHINE}-pc-linux-gnuoldld" > exit 0 ;; > esac > # Determine whether the default compiler is a.out or elf >@@ -958,9 +991,12 @@ > LIBC=gnuaout > #endif > #endif >+ #ifdef __dietlibc__ >+ LIBC=dietlibc >+ #endif > EOF > eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=` >- test x"${LIBC}" != x && echo "${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}" | sed 's/linux-gnu/linux/' && exit 0 >+ test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0 > test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0 > ;; > i*86:DYNIX/ptx:4*:*) >@@ -988,6 +1024,9 @@ > i*86:atheos:*:*) > echo ${UNAME_MACHINE}-unknown-atheos > exit 0 ;; >+ i*86:syllable:*:*) >+ echo ${UNAME_MACHINE}-pc-syllable >+ exit 0 ;; > i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*) > echo i386-unknown-lynxos${UNAME_RELEASE} > exit 0 ;; >@@ -1059,7 +1098,7 @@ > exit 0 ;; > M68*:*:R3V[567]*:*) > test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;; >- 3[34]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0) >+ 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0) > OS_REL='' > test -r /etc/.relid \ > && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` >@@ -1174,7 +1213,7 @@ > *:QNX:*:4*) > echo i386-pc-qnx > exit 0 ;; >- NSR-[DGKLNPTVW]:NONSTOP_KERNEL:*:*) >+ NSR-?:NONSTOP_KERNEL:*:*) > echo nsr-tandem-nsk${UNAME_RELEASE} > exit 0 ;; > *:NonStop-UX:*:*) >@@ -1218,6 +1257,9 @@ > SEI:*:*:SEIUX) > echo mips-sei-seiux${UNAME_RELEASE} > exit 0 ;; >+ *:DragonFly:*:*) >+ echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` >+ exit 0 ;; > esac > > #echo '(No uname command or uname output not recognized.)' 1>&2 >diff -aNu darimasen-0.0.8/config.sub darimasen-0.0.8-new/config.sub >--- darimasen-0.0.8/config.sub 2005-05-19 02:10:02.000000000 +0200 >+++ darimasen-0.0.8-new/config.sub 2004-10-28 00:20:21.000000000 +0200 >@@ -3,7 +3,7 @@ > # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, > # 2000, 2001, 2002, 2003 Free Software Foundation, Inc. > >-timestamp='2003-07-04' >+timestamp='2004-03-12' > > # This file is (in principle) common to ALL GNU software. > # The presence of a machine in this file suggests that SOME GNU software >@@ -118,7 +118,8 @@ > # Here we must recognize all the valid KERNEL-OS combinations. > maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` > case $maybe_os in >- nto-qnx* | linux-gnu* | kfreebsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*) >+ nto-qnx* | linux-gnu* | linux-dietlibc | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | \ >+ kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*) > os=-$maybe_os > basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` > ;; >@@ -228,14 +229,15 @@ > | a29k \ > | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ > | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ >+ | am33_2.0 \ > | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \ > | c4x | clipper \ > | d10v | d30v | dlx | dsp16xx \ > | fr30 | frv \ > | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ > | i370 | i860 | i960 | ia64 \ >- | ip2k \ >- | m32r | m68000 | m68k | m88k | mcore \ >+ | ip2k | iq2000 \ >+ | m32r | m32rle | m68000 | m68k | m88k | mcore \ > | mips | mipsbe | mipseb | mipsel | mipsle \ > | mips16 \ > | mips64 | mips64el \ >@@ -247,6 +249,7 @@ > | mipsisa32 | mipsisa32el \ > | mipsisa32r2 | mipsisa32r2el \ > | mipsisa64 | mipsisa64el \ >+ | mipsisa64r2 | mipsisa64r2el \ > | mipsisa64sb1 | mipsisa64sb1el \ > | mipsisa64sr71k | mipsisa64sr71kel \ > | mipstx39 | mipstx39el \ >@@ -259,7 +262,7 @@ > | pyramid \ > | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \ > | sh64 | sh64le \ >- | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv9 | sparcv9b \ >+ | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv8 | sparcv9 | sparcv9b \ > | strongarm \ > | tahoe | thumb | tic4x | tic80 | tron \ > | v850 | v850e \ >@@ -304,8 +307,8 @@ > | h8300-* | h8500-* \ > | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ > | i*86-* | i860-* | i960-* | ia64-* \ >- | ip2k-* \ >- | m32r-* \ >+ | ip2k-* | iq2000-* \ >+ | m32r-* | m32rle-* \ > | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ > | m88110-* | m88k-* | mcore-* \ > | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ >@@ -319,6 +322,7 @@ > | mipsisa32-* | mipsisa32el-* \ > | mipsisa32r2-* | mipsisa32r2el-* \ > | mipsisa64-* | mipsisa64el-* \ >+ | mipsisa64r2-* | mipsisa64r2el-* \ > | mipsisa64sb1-* | mipsisa64sb1el-* \ > | mipsisa64sr71k-* | mipsisa64sr71kel-* \ > | mipstx39-* | mipstx39el-* \ >@@ -332,7 +336,7 @@ > | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \ > | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ > | sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \ >- | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \ >+ | sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \ > | tahoe-* | thumb-* \ > | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ > | tron-* \ >@@ -359,6 +363,9 @@ > basic_machine=a29k-amd > os=-udi > ;; >+ abacus) >+ basic_machine=abacus-unknown >+ ;; > adobe68k) > basic_machine=m68010-adobe > os=-scout >@@ -376,6 +383,9 @@ > amd64) > basic_machine=x86_64-pc > ;; >+ amd64-*) >+ basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'` >+ ;; > amdahl) > basic_machine=580-amdahl > os=-sysv >@@ -435,12 +445,20 @@ > basic_machine=j90-cray > os=-unicos > ;; >+ cr16c) >+ basic_machine=cr16c-unknown >+ os=-elf >+ ;; > crds | unos) > basic_machine=m68k-crds > ;; > cris | cris-* | etrax*) > basic_machine=cris-axis > ;; >+ crx) >+ basic_machine=crx-unknown >+ os=-elf >+ ;; > da30 | da30-*) > basic_machine=m68k-da30 > ;; >@@ -740,6 +758,10 @@ > basic_machine=or32-unknown > os=-coff > ;; >+ os400) >+ basic_machine=powerpc-ibm >+ os=-os400 >+ ;; > OSE68000 | ose68000) > basic_machine=m68000-ericsson > os=-ose >@@ -960,6 +982,10 @@ > tower | tower-32) > basic_machine=m68k-ncr > ;; >+ tpf) >+ basic_machine=s390x-ibm >+ os=-tpf >+ ;; > udi29k) > basic_machine=a29k-amd > os=-udi >@@ -1055,7 +1081,7 @@ > sh64) > basic_machine=sh64-unknown > ;; >- sparc | sparcv9 | sparcv9b) >+ sparc | sparcv8 | sparcv9 | sparcv9b) > basic_machine=sparc-sun > ;; > cydra) >@@ -1128,19 +1154,20 @@ > | -aos* \ > | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ > | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ >- | -hiux* | -386bsd* | -netbsd* | -openbsd* | -kfreebsd* | -freebsd* | -riscix* \ >- | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ >+ | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* | -openbsd* \ >+ | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ >+ | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ > | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ > | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ > | -chorusos* | -chorusrdb* \ > | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ >- | -mingw32* | -linux* | -uxpv* | -beos* | -mpeix* | -udk* \ >+ | -mingw32* | -linux-gnu* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \ > | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ > | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ > | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ > | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ > | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ >- | -powermax* | -dnix* | -nx6 | -nx7 | -sei*) >+ | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly*) > # Remember, each alternative MUST END IN *, to match a version number. > ;; > -qnx*) >@@ -1164,6 +1191,12 @@ > -mac*) > os=`echo $os | sed -e 's|mac|macos|'` > ;; >+ -linux-dietlibc) >+ os=-linux-dietlibc >+ ;; >+ -linux*) >+ os=`echo $os | sed -e 's|linux|linux-gnu|'` >+ ;; > -sunos5*) > os=`echo $os | sed -e 's|sunos5|solaris2|'` > ;; >@@ -1173,6 +1206,9 @@ > -opened*) > os=-openedition > ;; >+ -os400*) >+ os=-os400 >+ ;; > -wince*) > os=-wince > ;; >@@ -1194,6 +1230,9 @@ > -atheos*) > os=-atheos > ;; >+ -syllable*) >+ os=-syllable >+ ;; > -386bsd) > os=-bsd > ;; >@@ -1216,6 +1255,9 @@ > -sinix*) > os=-sysv4 > ;; >+ -tpf*) >+ os=-tpf >+ ;; > -triton*) > os=-sysv3 > ;; >@@ -1464,9 +1506,15 @@ > -mvs* | -opened*) > vendor=ibm > ;; >+ -os400*) >+ vendor=ibm >+ ;; > -ptx*) > vendor=sequent > ;; >+ -tpf*) >+ vendor=ibm >+ ;; > -vxsim* | -vxworks* | -windiss*) > vendor=wrs > ;; >diff -aNu darimasen-0.0.8/configure darimasen-0.0.8-new/configure >--- darimasen-0.0.8/configure 2005-05-19 02:10:31.000000000 +0200 >+++ darimasen-0.0.8-new/configure 2005-07-18 13:31:30.000000000 +0200 >@@ -1,9 +1,8 @@ > #! /bin/sh > # Guess values for system-dependent variables and create Makefiles. >-# Generated by GNU Autoconf 2.57. >+# Generated by GNU Autoconf 2.59. > # >-# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 >-# Free Software Foundation, Inc. >+# Copyright (C) 2003 Free Software Foundation, Inc. > # This configure script is free software; the Free Software Foundation > # gives unlimited permission to copy, distribute and modify it. > ## --------------------- ## >@@ -20,9 +19,10 @@ > elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then > set -o posix > fi >+DUALCASE=1; export DUALCASE # for MKS sh > > # Support unset when possible. >-if (FOO=FOO; unset FOO) >/dev/null 2>&1; then >+if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then > as_unset=unset > else > as_unset=false >@@ -41,7 +41,7 @@ > LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ > LC_TELEPHONE LC_TIME > do >- if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then >+ if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then > eval $as_var=C; export $as_var > else > $as_unset $as_var >@@ -218,16 +218,17 @@ > if mkdir -p . 2>/dev/null; then > as_mkdir_p=: > else >+ test -d ./-p && rmdir ./-p > as_mkdir_p=false > fi > > as_executable_p="test -f" > > # Sed expression to map a string onto a valid CPP name. >-as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" >+as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" > > # Sed expression to map a string onto a valid variable name. >-as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" >+as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" > > > # IFS >@@ -277,7 +278,7 @@ > > # The HP-UX ksh and POSIX shell print the target directory to stdout > # if CDPATH is set. >-if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi >+(unset CDPATH) >/dev/null 2>&1 && unset CDPATH > > if test -z "$ECHO"; then > if test "X${echo_test_string+set}" != Xset; then >@@ -390,9 +391,9 @@ > > > >-tagnames=`echo "$tagnames,CXX" | sed 's/^,//'` >+tagnames=${tagnames+${tagnames},}CXX > >-tagnames=`echo "$tagnames,F77" | sed 's/^,//'` >+tagnames=${tagnames+${tagnames},}F77 > > # Name of the host. > # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, >@@ -462,7 +463,7 @@ > # include <unistd.h> > #endif" > >-ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP build build_cpu build_vendor build_os host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB F77 FFLAGS ac_ct_F77 LIBTOOL PKG_CFLAGS PKG_LIBS LIBOBJS LTLIBOBJS' >+ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP build build_cpu build_vendor build_os host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB F77 FFLAGS ac_ct_F77 LIBTOOL PKG_CONFIG PKG_CFLAGS PKG_LIBS LIBOBJS LTLIBOBJS' > ac_subst_files='' > > # Initialize some variables set by options. >@@ -821,7 +822,7 @@ > > # Be sure to have absolute paths. > for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ >- localstatedir libdir includedir oldincludedir infodir mandir >+ localstatedir libdir includedir oldincludedir infodir mandir > do > eval ac_val=$`echo $ac_var` > case $ac_val in >@@ -861,10 +862,10 @@ > # Try the directory containing this script, then its parent. > ac_confdir=`(dirname "$0") 2>/dev/null || > $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ >- X"$0" : 'X\(//\)[^/]' \| \ >- X"$0" : 'X\(//\)$' \| \ >- X"$0" : 'X\(/\)' \| \ >- . : '\(.\)' 2>/dev/null || >+ X"$0" : 'X\(//\)[^/]' \| \ >+ X"$0" : 'X\(//\)$' \| \ >+ X"$0" : 'X\(/\)' \| \ >+ . : '\(.\)' 2>/dev/null || > echo X"$0" | > sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } > /^X\(\/\/\)[^/].*/{ s//\1/; q; } >@@ -976,9 +977,9 @@ > cat <<_ACEOF > Installation directories: > --prefix=PREFIX install architecture-independent files in PREFIX >- [$ac_default_prefix] >+ [$ac_default_prefix] > --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX >- [PREFIX] >+ [PREFIX] > > By default, \`make install' will install all the files in > \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify >@@ -1091,12 +1092,45 @@ > ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix > ac_top_srcdir=$ac_top_builddir$srcdir ;; > esac >-# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be >-# absolute. >-ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` >-ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` >-ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` >-ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` >+ >+# Do not use `cd foo && pwd` to compute absolute paths, because >+# the directories may not exist. >+case `pwd` in >+.) ac_abs_builddir="$ac_dir";; >+*) >+ case "$ac_dir" in >+ .) ac_abs_builddir=`pwd`;; >+ [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; >+ *) ac_abs_builddir=`pwd`/"$ac_dir";; >+ esac;; >+esac >+case $ac_abs_builddir in >+.) ac_abs_top_builddir=${ac_top_builddir}.;; >+*) >+ case ${ac_top_builddir}. in >+ .) ac_abs_top_builddir=$ac_abs_builddir;; >+ [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; >+ *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; >+ esac;; >+esac >+case $ac_abs_builddir in >+.) ac_abs_srcdir=$ac_srcdir;; >+*) >+ case $ac_srcdir in >+ .) ac_abs_srcdir=$ac_abs_builddir;; >+ [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; >+ *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; >+ esac;; >+esac >+case $ac_abs_builddir in >+.) ac_abs_top_srcdir=$ac_top_srcdir;; >+*) >+ case $ac_top_srcdir in >+ .) ac_abs_top_srcdir=$ac_abs_builddir;; >+ [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; >+ *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; >+ esac;; >+esac > > cd $ac_dir > # Check for guested configure; otherwise get Cygnus style configure. >@@ -1107,7 +1141,7 @@ > echo > $SHELL $ac_srcdir/configure --help=recursive > elif test -f $ac_srcdir/configure.ac || >- test -f $ac_srcdir/configure.in; then >+ test -f $ac_srcdir/configure.in; then > echo > $ac_configure --help > else >@@ -1121,8 +1155,7 @@ > if $ac_init_version; then > cat <<\_ACEOF > >-Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 >-Free Software Foundation, Inc. >+Copyright (C) 2003 Free Software Foundation, Inc. > This configure script is free software; the Free Software Foundation > gives unlimited permission to copy, distribute and modify it. > _ACEOF >@@ -1134,7 +1167,7 @@ > running configure, to aid debugging if configure makes a mistake. > > It was created by $as_me, which was >-generated by GNU Autoconf 2.57. Invocation command line was >+generated by GNU Autoconf 2.59. Invocation command line was > > $ $0 $@ > >@@ -1211,19 +1244,19 @@ > 2) > ac_configure_args1="$ac_configure_args1 '$ac_arg'" > if test $ac_must_keep_next = true; then >- ac_must_keep_next=false # Got value, back to normal. >+ ac_must_keep_next=false # Got value, back to normal. > else >- case $ac_arg in >- *=* | --config-cache | -C | -disable-* | --disable-* \ >- | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ >- | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ >- | -with-* | --with-* | -without-* | --without-* | --x) >- case "$ac_configure_args0 " in >- "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; >- esac >- ;; >- -* ) ac_must_keep_next=true ;; >- esac >+ case $ac_arg in >+ *=* | --config-cache | -C | -disable-* | --disable-* \ >+ | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ >+ | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ >+ | -with-* | --with-* | -without-* | --without-* | --x) >+ case "$ac_configure_args0 " in >+ "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; >+ esac >+ ;; >+ -* ) ac_must_keep_next=true ;; >+ esac > fi > ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" > # Get rid of the leading space. >@@ -1257,12 +1290,12 @@ > case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in > *ac_space=\ *) > sed -n \ >- "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; >- s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" >+ "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; >+ s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" > ;; > *) > sed -n \ >- "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" >+ "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" > ;; > esac; > } >@@ -1291,7 +1324,7 @@ > for ac_var in $ac_subst_files > do > eval ac_val=$`echo $ac_var` >- echo "$ac_var='"'"'$ac_val'"'"'" >+ echo "$ac_var='"'"'$ac_val'"'"'" > done | sort > echo > fi >@@ -1310,7 +1343,7 @@ > echo "$as_me: caught signal $ac_signal" > echo "$as_me: exit $exit_status" > } >&5 >- rm -f core core.* *.core && >+ rm -f core *.core && > rm -rf conftest* confdefs* conf$$* $ac_clean_files && > exit $exit_status > ' 0 >@@ -1390,7 +1423,7 @@ > # value. > ac_cache_corrupted=false > for ac_var in `(set) 2>&1 | >- sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do >+ sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do > eval ac_old_set=\$ac_cv_env_${ac_var}_set > eval ac_new_set=\$ac_env_${ac_var}_set > eval ac_old_val="\$ac_cv_env_${ac_var}_value" >@@ -1407,13 +1440,13 @@ > ,);; > *) > if test "x$ac_old_val" != "x$ac_new_val"; then >- { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 >+ { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 > echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} >- { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 >+ { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 > echo "$as_me: former value: $ac_old_val" >&2;} >- { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 >+ { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 > echo "$as_me: current value: $ac_new_val" >&2;} >- ac_cache_corrupted=: >+ ac_cache_corrupted=: > fi;; > esac > # Pass precious variables to config.status. >@@ -1498,6 +1531,7 @@ > # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag > # AFS /usr/afsws/bin/install, which mishandles nonexistent args > # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" >+# OS/2's system install, which has a completely different semantic > # ./install, which can be erroneously created by make from ./install.sh. > echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 > echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 >@@ -1514,6 +1548,7 @@ > case $as_dir/ in > ./ | .// | /cC/* | \ > /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ >+ ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ > /usr/ucb/* ) ;; > *) > # OSF1 and SCO ODT 3.0 have their own names for install. >@@ -1521,20 +1556,20 @@ > # by default. > for ac_prog in ginstall scoinst install; do > for ac_exec_ext in '' $ac_executable_extensions; do >- if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then >- if test $ac_prog = install && >- grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then >- # AIX install. It has an incompatible calling convention. >- : >- elif test $ac_prog = install && >- grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then >- # program-specific install script used by HP pwplus--don't use. >- : >- else >- ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" >- break 3 >- fi >- fi >+ if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then >+ if test $ac_prog = install && >+ grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then >+ # AIX install. It has an incompatible calling convention. >+ : >+ elif test $ac_prog = install && >+ grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then >+ # program-specific install script used by HP pwplus--don't use. >+ : >+ else >+ ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" >+ break 3 >+ fi >+ fi > done > done > ;; >@@ -1678,7 +1713,7 @@ > > echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 > echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 >-set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` >+set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` > if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then > echo $ECHO_N "(cached) $ECHO_C" >&6 > else >@@ -2264,7 +2299,6 @@ > (exit $ac_status); } > > cat >conftest.$ac_ext <<_ACEOF >-#line $LINENO "configure" > /* confdefs.h. */ > _ACEOF > cat confdefs.h >>conftest.$ac_ext >@@ -2284,8 +2318,8 @@ > # Try to create an executable without -o first, disregard a.out. > # It will help us diagnose broken compilers, and finding out an intuition > # of exeext. >-echo "$as_me:$LINENO: checking for C compiler default output" >&5 >-echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 >+echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 >+echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 > ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` > if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 > (eval $ac_link_default) 2>&5 >@@ -2305,23 +2339,23 @@ > test -f "$ac_file" || continue > case $ac_file in > *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) >- ;; >+ ;; > conftest.$ac_ext ) >- # This is the source file. >- ;; >+ # This is the source file. >+ ;; > [ab].out ) >- # We found the default executable, but exeext='' is most >- # certainly right. >- break;; >+ # We found the default executable, but exeext='' is most >+ # certainly right. >+ break;; > *.* ) >- ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` >- # FIXME: I believe we export ac_cv_exeext for Libtool, >- # but it would be cool to find out if it's true. Does anybody >- # maintain Libtool? --akim. >- export ac_cv_exeext >- break;; >+ ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` >+ # FIXME: I believe we export ac_cv_exeext for Libtool, >+ # but it would be cool to find out if it's true. Does anybody >+ # maintain Libtool? --akim. >+ export ac_cv_exeext >+ break;; > * ) >- break;; >+ break;; > esac > done > else >@@ -2395,8 +2429,8 @@ > case $ac_file in > *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; > *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` >- export ac_cv_exeext >- break;; >+ export ac_cv_exeext >+ break;; > * ) break;; > esac > done >@@ -2421,7 +2455,6 @@ > echo $ECHO_N "(cached) $ECHO_C" >&6 > else > cat >conftest.$ac_ext <<_ACEOF >-#line $LINENO "configure" > /* confdefs.h. */ > _ACEOF > cat confdefs.h >>conftest.$ac_ext >@@ -2472,7 +2505,6 @@ > echo $ECHO_N "(cached) $ECHO_C" >&6 > else > cat >conftest.$ac_ext <<_ACEOF >-#line $LINENO "configure" > /* confdefs.h. */ > _ACEOF > cat confdefs.h >>conftest.$ac_ext >@@ -2492,11 +2524,21 @@ > _ACEOF > rm -f conftest.$ac_objext > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 >- (eval $ac_compile) 2>&5 >+ (eval $ac_compile) 2>conftest.er1 > ac_status=$? >+ grep -v '^ *+' conftest.er1 >conftest.err >+ rm -f conftest.er1 >+ cat conftest.err >&5 > echo "$as_me:$LINENO: \$? = $ac_status" >&5 > (exit $ac_status); } && >- { ac_try='test -s conftest.$ac_objext' >+ { ac_try='test -z "$ac_c_werror_flag" >+ || test ! -s conftest.err' >+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 >+ (eval $ac_try) 2>&5 >+ ac_status=$? >+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 >+ (exit $ac_status); }; } && >+ { ac_try='test -s conftest.$ac_objext' > { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 > (eval $ac_try) 2>&5 > ac_status=$? >@@ -2509,7 +2551,7 @@ > > ac_compiler_gnu=no > fi >-rm -f conftest.$ac_objext conftest.$ac_ext >+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext > ac_cv_c_compiler_gnu=$ac_compiler_gnu > > fi >@@ -2525,7 +2567,6 @@ > echo $ECHO_N "(cached) $ECHO_C" >&6 > else > cat >conftest.$ac_ext <<_ACEOF >-#line $LINENO "configure" > /* confdefs.h. */ > _ACEOF > cat confdefs.h >>conftest.$ac_ext >@@ -2542,11 +2583,21 @@ > _ACEOF > rm -f conftest.$ac_objext > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 >- (eval $ac_compile) 2>&5 >+ (eval $ac_compile) 2>conftest.er1 > ac_status=$? >+ grep -v '^ *+' conftest.er1 >conftest.err >+ rm -f conftest.er1 >+ cat conftest.err >&5 > echo "$as_me:$LINENO: \$? = $ac_status" >&5 > (exit $ac_status); } && >- { ac_try='test -s conftest.$ac_objext' >+ { ac_try='test -z "$ac_c_werror_flag" >+ || test ! -s conftest.err' >+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 >+ (eval $ac_try) 2>&5 >+ ac_status=$? >+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 >+ (exit $ac_status); }; } && >+ { ac_try='test -s conftest.$ac_objext' > { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 > (eval $ac_try) 2>&5 > ac_status=$? >@@ -2559,7 +2610,7 @@ > > ac_cv_prog_cc_g=no > fi >-rm -f conftest.$ac_objext conftest.$ac_ext >+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext > fi > echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 > echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 >@@ -2586,7 +2637,6 @@ > ac_cv_prog_cc_stdc=no > ac_save_CC=$CC > cat >conftest.$ac_ext <<_ACEOF >-#line $LINENO "configure" > /* confdefs.h. */ > _ACEOF > cat confdefs.h >>conftest.$ac_ext >@@ -2614,6 +2664,16 @@ > va_end (v); > return s; > } >+ >+/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has >+ function prototypes and stuff, but not '\xHH' hex character constants. >+ These don't provoke an error unfortunately, instead are silently treated >+ as 'x'. The following induces an error, until -std1 is added to get >+ proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an >+ array size at least. It's necessary to write '\x00'==0 to get something >+ that's true only with -std1. */ >+int osf4_cc_array ['\x00' == 0 ? 1 : -1]; >+ > int test (int i, double x); > struct s1 {int (*f) (int a);}; > struct s2 {int (*f) (double a);}; >@@ -2640,11 +2700,21 @@ > CC="$ac_save_CC $ac_arg" > rm -f conftest.$ac_objext > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 >- (eval $ac_compile) 2>&5 >+ (eval $ac_compile) 2>conftest.er1 > ac_status=$? >+ grep -v '^ *+' conftest.er1 >conftest.err >+ rm -f conftest.er1 >+ cat conftest.err >&5 > echo "$as_me:$LINENO: \$? = $ac_status" >&5 > (exit $ac_status); } && >- { ac_try='test -s conftest.$ac_objext' >+ { ac_try='test -z "$ac_c_werror_flag" >+ || test ! -s conftest.err' >+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 >+ (eval $ac_try) 2>&5 >+ ac_status=$? >+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 >+ (exit $ac_status); }; } && >+ { ac_try='test -s conftest.$ac_objext' > { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 > (eval $ac_try) 2>&5 > ac_status=$? >@@ -2657,7 +2727,7 @@ > sed 's/^/| /' conftest.$ac_ext >&5 > > fi >-rm -f conftest.$ac_objext >+rm -f conftest.err conftest.$ac_objext > done > rm -f conftest.$ac_ext conftest.$ac_objext > CC=$ac_save_CC >@@ -2685,19 +2755,28 @@ > _ACEOF > rm -f conftest.$ac_objext > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 >- (eval $ac_compile) 2>&5 >+ (eval $ac_compile) 2>conftest.er1 > ac_status=$? >+ grep -v '^ *+' conftest.er1 >conftest.err >+ rm -f conftest.er1 >+ cat conftest.err >&5 > echo "$as_me:$LINENO: \$? = $ac_status" >&5 > (exit $ac_status); } && >- { ac_try='test -s conftest.$ac_objext' >+ { ac_try='test -z "$ac_c_werror_flag" >+ || test ! -s conftest.err' >+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 >+ (eval $ac_try) 2>&5 >+ ac_status=$? >+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 >+ (exit $ac_status); }; } && >+ { ac_try='test -s conftest.$ac_objext' > { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 > (eval $ac_try) 2>&5 > ac_status=$? > echo "$as_me:$LINENO: \$? = $ac_status" >&5 > (exit $ac_status); }; }; then > for ac_declaration in \ >- ''\ >- '#include <stdlib.h>' \ >+ '' \ > 'extern "C" void std::exit (int) throw (); using std::exit;' \ > 'extern "C" void std::exit (int); using std::exit;' \ > 'extern "C" void exit (int) throw ();' \ >@@ -2705,14 +2784,13 @@ > 'void exit (int);' > do > cat >conftest.$ac_ext <<_ACEOF >-#line $LINENO "configure" > /* confdefs.h. */ > _ACEOF > cat confdefs.h >>conftest.$ac_ext > cat >>conftest.$ac_ext <<_ACEOF > /* end confdefs.h. */ >-#include <stdlib.h> > $ac_declaration >+#include <stdlib.h> > int > main () > { >@@ -2723,11 +2801,21 @@ > _ACEOF > rm -f conftest.$ac_objext > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 >- (eval $ac_compile) 2>&5 >+ (eval $ac_compile) 2>conftest.er1 > ac_status=$? >+ grep -v '^ *+' conftest.er1 >conftest.err >+ rm -f conftest.er1 >+ cat conftest.err >&5 > echo "$as_me:$LINENO: \$? = $ac_status" >&5 > (exit $ac_status); } && >- { ac_try='test -s conftest.$ac_objext' >+ { ac_try='test -z "$ac_c_werror_flag" >+ || test ! -s conftest.err' >+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 >+ (eval $ac_try) 2>&5 >+ ac_status=$? >+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 >+ (exit $ac_status); }; } && >+ { ac_try='test -s conftest.$ac_objext' > { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 > (eval $ac_try) 2>&5 > ac_status=$? >@@ -2740,9 +2828,8 @@ > > continue > fi >-rm -f conftest.$ac_objext conftest.$ac_ext >+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext > cat >conftest.$ac_ext <<_ACEOF >-#line $LINENO "configure" > /* confdefs.h. */ > _ACEOF > cat confdefs.h >>conftest.$ac_ext >@@ -2759,11 +2846,21 @@ > _ACEOF > rm -f conftest.$ac_objext > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 >- (eval $ac_compile) 2>&5 >+ (eval $ac_compile) 2>conftest.er1 > ac_status=$? >+ grep -v '^ *+' conftest.er1 >conftest.err >+ rm -f conftest.er1 >+ cat conftest.err >&5 > echo "$as_me:$LINENO: \$? = $ac_status" >&5 > (exit $ac_status); } && >- { ac_try='test -s conftest.$ac_objext' >+ { ac_try='test -z "$ac_c_werror_flag" >+ || test ! -s conftest.err' >+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 >+ (eval $ac_try) 2>&5 >+ ac_status=$? >+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 >+ (exit $ac_status); }; } && >+ { ac_try='test -s conftest.$ac_objext' > { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 > (eval $ac_try) 2>&5 > ac_status=$? >@@ -2775,7 +2872,7 @@ > sed 's/^/| /' conftest.$ac_ext >&5 > > fi >-rm -f conftest.$ac_objext conftest.$ac_ext >+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext > done > rm -f conftest* > if test -n "$ac_declaration"; then >@@ -2789,7 +2886,7 @@ > sed 's/^/| /' conftest.$ac_ext >&5 > > fi >-rm -f conftest.$ac_objext conftest.$ac_ext >+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext > ac_ext=c > ac_cpp='$CPP $CPPFLAGS' > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' >@@ -2908,7 +3005,6 @@ > ac_check_lib_save_LIBS=$LIBS > LIBS="-lcposix $LIBS" > cat >conftest.$ac_ext <<_ACEOF >-#line $LINENO "configure" > /* confdefs.h. */ > _ACEOF > cat confdefs.h >>conftest.$ac_ext >@@ -2932,11 +3028,21 @@ > _ACEOF > rm -f conftest.$ac_objext conftest$ac_exeext > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 >- (eval $ac_link) 2>&5 >+ (eval $ac_link) 2>conftest.er1 > ac_status=$? >+ grep -v '^ *+' conftest.er1 >conftest.err >+ rm -f conftest.er1 >+ cat conftest.err >&5 > echo "$as_me:$LINENO: \$? = $ac_status" >&5 > (exit $ac_status); } && >- { ac_try='test -s conftest$ac_exeext' >+ { ac_try='test -z "$ac_c_werror_flag" >+ || test ! -s conftest.err' >+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 >+ (eval $ac_try) 2>&5 >+ ac_status=$? >+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 >+ (exit $ac_status); }; } && >+ { ac_try='test -s conftest$ac_exeext' > { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 > (eval $ac_try) 2>&5 > ac_status=$? >@@ -2949,7 +3055,8 @@ > > ac_cv_lib_cposix_strerror=no > fi >-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext >+rm -f conftest.err conftest.$ac_objext \ >+ conftest$ac_exeext conftest.$ac_ext > LIBS=$ac_check_lib_save_LIBS > fi > echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5 >@@ -3301,7 +3408,6 @@ > echo $ECHO_N "(cached) $ECHO_C" >&6 > else > cat >conftest.$ac_ext <<_ACEOF >-#line $LINENO "configure" > /* confdefs.h. */ > _ACEOF > cat confdefs.h >>conftest.$ac_ext >@@ -3321,11 +3427,21 @@ > _ACEOF > rm -f conftest.$ac_objext > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 >- (eval $ac_compile) 2>&5 >+ (eval $ac_compile) 2>conftest.er1 > ac_status=$? >+ grep -v '^ *+' conftest.er1 >conftest.err >+ rm -f conftest.er1 >+ cat conftest.err >&5 > echo "$as_me:$LINENO: \$? = $ac_status" >&5 > (exit $ac_status); } && >- { ac_try='test -s conftest.$ac_objext' >+ { ac_try='test -z "$ac_c_werror_flag" >+ || test ! -s conftest.err' >+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 >+ (eval $ac_try) 2>&5 >+ ac_status=$? >+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 >+ (exit $ac_status); }; } && >+ { ac_try='test -s conftest.$ac_objext' > { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 > (eval $ac_try) 2>&5 > ac_status=$? >@@ -3338,7 +3454,7 @@ > > ac_compiler_gnu=no > fi >-rm -f conftest.$ac_objext conftest.$ac_ext >+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext > ac_cv_c_compiler_gnu=$ac_compiler_gnu > > fi >@@ -3354,7 +3470,6 @@ > echo $ECHO_N "(cached) $ECHO_C" >&6 > else > cat >conftest.$ac_ext <<_ACEOF >-#line $LINENO "configure" > /* confdefs.h. */ > _ACEOF > cat confdefs.h >>conftest.$ac_ext >@@ -3371,11 +3486,21 @@ > _ACEOF > rm -f conftest.$ac_objext > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 >- (eval $ac_compile) 2>&5 >+ (eval $ac_compile) 2>conftest.er1 > ac_status=$? >+ grep -v '^ *+' conftest.er1 >conftest.err >+ rm -f conftest.er1 >+ cat conftest.err >&5 > echo "$as_me:$LINENO: \$? = $ac_status" >&5 > (exit $ac_status); } && >- { ac_try='test -s conftest.$ac_objext' >+ { ac_try='test -z "$ac_c_werror_flag" >+ || test ! -s conftest.err' >+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 >+ (eval $ac_try) 2>&5 >+ ac_status=$? >+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 >+ (exit $ac_status); }; } && >+ { ac_try='test -s conftest.$ac_objext' > { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 > (eval $ac_try) 2>&5 > ac_status=$? >@@ -3388,7 +3513,7 @@ > > ac_cv_prog_cc_g=no > fi >-rm -f conftest.$ac_objext conftest.$ac_ext >+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext > fi > echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 > echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 >@@ -3415,7 +3540,6 @@ > ac_cv_prog_cc_stdc=no > ac_save_CC=$CC > cat >conftest.$ac_ext <<_ACEOF >-#line $LINENO "configure" > /* confdefs.h. */ > _ACEOF > cat confdefs.h >>conftest.$ac_ext >@@ -3443,6 +3567,16 @@ > va_end (v); > return s; > } >+ >+/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has >+ function prototypes and stuff, but not '\xHH' hex character constants. >+ These don't provoke an error unfortunately, instead are silently treated >+ as 'x'. The following induces an error, until -std1 is added to get >+ proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an >+ array size at least. It's necessary to write '\x00'==0 to get something >+ that's true only with -std1. */ >+int osf4_cc_array ['\x00' == 0 ? 1 : -1]; >+ > int test (int i, double x); > struct s1 {int (*f) (int a);}; > struct s2 {int (*f) (double a);}; >@@ -3469,11 +3603,21 @@ > CC="$ac_save_CC $ac_arg" > rm -f conftest.$ac_objext > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 >- (eval $ac_compile) 2>&5 >+ (eval $ac_compile) 2>conftest.er1 > ac_status=$? >+ grep -v '^ *+' conftest.er1 >conftest.err >+ rm -f conftest.er1 >+ cat conftest.err >&5 > echo "$as_me:$LINENO: \$? = $ac_status" >&5 > (exit $ac_status); } && >- { ac_try='test -s conftest.$ac_objext' >+ { ac_try='test -z "$ac_c_werror_flag" >+ || test ! -s conftest.err' >+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 >+ (eval $ac_try) 2>&5 >+ ac_status=$? >+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 >+ (exit $ac_status); }; } && >+ { ac_try='test -s conftest.$ac_objext' > { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 > (eval $ac_try) 2>&5 > ac_status=$? >@@ -3486,7 +3630,7 @@ > sed 's/^/| /' conftest.$ac_ext >&5 > > fi >-rm -f conftest.$ac_objext >+rm -f conftest.err conftest.$ac_objext > done > rm -f conftest.$ac_ext conftest.$ac_objext > CC=$ac_save_CC >@@ -3514,19 +3658,28 @@ > _ACEOF > rm -f conftest.$ac_objext > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 >- (eval $ac_compile) 2>&5 >+ (eval $ac_compile) 2>conftest.er1 > ac_status=$? >+ grep -v '^ *+' conftest.er1 >conftest.err >+ rm -f conftest.er1 >+ cat conftest.err >&5 > echo "$as_me:$LINENO: \$? = $ac_status" >&5 > (exit $ac_status); } && >- { ac_try='test -s conftest.$ac_objext' >+ { ac_try='test -z "$ac_c_werror_flag" >+ || test ! -s conftest.err' >+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 >+ (eval $ac_try) 2>&5 >+ ac_status=$? >+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 >+ (exit $ac_status); }; } && >+ { ac_try='test -s conftest.$ac_objext' > { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 > (eval $ac_try) 2>&5 > ac_status=$? > echo "$as_me:$LINENO: \$? = $ac_status" >&5 > (exit $ac_status); }; }; then > for ac_declaration in \ >- ''\ >- '#include <stdlib.h>' \ >+ '' \ > 'extern "C" void std::exit (int) throw (); using std::exit;' \ > 'extern "C" void std::exit (int); using std::exit;' \ > 'extern "C" void exit (int) throw ();' \ >@@ -3534,14 +3687,13 @@ > 'void exit (int);' > do > cat >conftest.$ac_ext <<_ACEOF >-#line $LINENO "configure" > /* confdefs.h. */ > _ACEOF > cat confdefs.h >>conftest.$ac_ext > cat >>conftest.$ac_ext <<_ACEOF > /* end confdefs.h. */ >-#include <stdlib.h> > $ac_declaration >+#include <stdlib.h> > int > main () > { >@@ -3552,11 +3704,21 @@ > _ACEOF > rm -f conftest.$ac_objext > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 >- (eval $ac_compile) 2>&5 >+ (eval $ac_compile) 2>conftest.er1 > ac_status=$? >+ grep -v '^ *+' conftest.er1 >conftest.err >+ rm -f conftest.er1 >+ cat conftest.err >&5 > echo "$as_me:$LINENO: \$? = $ac_status" >&5 > (exit $ac_status); } && >- { ac_try='test -s conftest.$ac_objext' >+ { ac_try='test -z "$ac_c_werror_flag" >+ || test ! -s conftest.err' >+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 >+ (eval $ac_try) 2>&5 >+ ac_status=$? >+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 >+ (exit $ac_status); }; } && >+ { ac_try='test -s conftest.$ac_objext' > { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 > (eval $ac_try) 2>&5 > ac_status=$? >@@ -3569,9 +3731,8 @@ > > continue > fi >-rm -f conftest.$ac_objext conftest.$ac_ext >+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext > cat >conftest.$ac_ext <<_ACEOF >-#line $LINENO "configure" > /* confdefs.h. */ > _ACEOF > cat confdefs.h >>conftest.$ac_ext >@@ -3588,11 +3749,21 @@ > _ACEOF > rm -f conftest.$ac_objext > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 >- (eval $ac_compile) 2>&5 >+ (eval $ac_compile) 2>conftest.er1 > ac_status=$? >+ grep -v '^ *+' conftest.er1 >conftest.err >+ rm -f conftest.er1 >+ cat conftest.err >&5 > echo "$as_me:$LINENO: \$? = $ac_status" >&5 > (exit $ac_status); } && >- { ac_try='test -s conftest.$ac_objext' >+ { ac_try='test -z "$ac_c_werror_flag" >+ || test ! -s conftest.err' >+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 >+ (eval $ac_try) 2>&5 >+ ac_status=$? >+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 >+ (exit $ac_status); }; } && >+ { ac_try='test -s conftest.$ac_objext' > { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 > (eval $ac_try) 2>&5 > ac_status=$? >@@ -3604,7 +3775,7 @@ > sed 's/^/| /' conftest.$ac_ext >&5 > > fi >-rm -f conftest.$ac_objext conftest.$ac_ext >+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext > done > rm -f conftest* > if test -n "$ac_declaration"; then >@@ -3618,7 +3789,7 @@ > sed 's/^/| /' conftest.$ac_ext >&5 > > fi >-rm -f conftest.$ac_objext conftest.$ac_ext >+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext > ac_ext=c > ac_cpp='$CPP $CPPFLAGS' > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' >@@ -3748,7 +3919,6 @@ > do > CC="$ac_save_CC $ac_arg" > cat >conftest.$ac_ext <<_ACEOF >-#line $LINENO "configure" > /* confdefs.h. */ > _ACEOF > cat confdefs.h >>conftest.$ac_ext >@@ -3795,11 +3965,21 @@ > _ACEOF > rm -f conftest.$ac_objext > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 >- (eval $ac_compile) 2>&5 >+ (eval $ac_compile) 2>conftest.er1 > ac_status=$? >+ grep -v '^ *+' conftest.er1 >conftest.err >+ rm -f conftest.er1 >+ cat conftest.err >&5 > echo "$as_me:$LINENO: \$? = $ac_status" >&5 > (exit $ac_status); } && >- { ac_try='test -s conftest.$ac_objext' >+ { ac_try='test -z "$ac_c_werror_flag" >+ || test ! -s conftest.err' >+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 >+ (eval $ac_try) 2>&5 >+ ac_status=$? >+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 >+ (exit $ac_status); }; } && >+ { ac_try='test -s conftest.$ac_objext' > { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 > (eval $ac_try) 2>&5 > ac_status=$? >@@ -3811,7 +3991,7 @@ > sed 's/^/| /' conftest.$ac_ext >&5 > > fi >-rm -f conftest.$ac_objext conftest.$ac_ext >+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext > done > CC="$ac_save_CC" > >@@ -3857,7 +4037,6 @@ > # On the NeXT, cc -E runs the code through the compiler's parser, > # not just through cpp. "Syntax error" is here to catch this case. > cat >conftest.$ac_ext <<_ACEOF >-#line $LINENO "configure" > /* confdefs.h. */ > _ACEOF > cat confdefs.h >>conftest.$ac_ext >@@ -3868,7 +4047,7 @@ > #else > # include <assert.h> > #endif >- Syntax error >+ Syntax error > _ACEOF > if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 > (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 >@@ -3880,6 +4059,7 @@ > (exit $ac_status); } >/dev/null; then > if test -s conftest.err; then > ac_cpp_err=$ac_c_preproc_warn_flag >+ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag > else > ac_cpp_err= > fi >@@ -3900,7 +4080,6 @@ > # OK, works on sane cases. Now check whether non-existent headers > # can be detected and how. > cat >conftest.$ac_ext <<_ACEOF >-#line $LINENO "configure" > /* confdefs.h. */ > _ACEOF > cat confdefs.h >>conftest.$ac_ext >@@ -3918,6 +4097,7 @@ > (exit $ac_status); } >/dev/null; then > if test -s conftest.err; then > ac_cpp_err=$ac_c_preproc_warn_flag >+ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag > else > ac_cpp_err= > fi >@@ -3964,7 +4144,6 @@ > # On the NeXT, cc -E runs the code through the compiler's parser, > # not just through cpp. "Syntax error" is here to catch this case. > cat >conftest.$ac_ext <<_ACEOF >-#line $LINENO "configure" > /* confdefs.h. */ > _ACEOF > cat confdefs.h >>conftest.$ac_ext >@@ -3975,7 +4154,7 @@ > #else > # include <assert.h> > #endif >- Syntax error >+ Syntax error > _ACEOF > if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 > (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 >@@ -3987,6 +4166,7 @@ > (exit $ac_status); } >/dev/null; then > if test -s conftest.err; then > ac_cpp_err=$ac_c_preproc_warn_flag >+ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag > else > ac_cpp_err= > fi >@@ -4007,7 +4187,6 @@ > # OK, works on sane cases. Now check whether non-existent headers > # can be detected and how. > cat >conftest.$ac_ext <<_ACEOF >-#line $LINENO "configure" > /* confdefs.h. */ > _ACEOF > cat confdefs.h >>conftest.$ac_ext >@@ -4025,6 +4204,7 @@ > (exit $ac_status); } >/dev/null; then > if test -s conftest.err; then > ac_cpp_err=$ac_c_preproc_warn_flag >+ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag > else > ac_cpp_err= > fi >@@ -4085,7 +4265,6 @@ > echo $ECHO_N "(cached) $ECHO_C" >&6 > else > cat >conftest.$ac_ext <<_ACEOF >-#line $LINENO "configure" > /* confdefs.h. */ > _ACEOF > cat confdefs.h >>conftest.$ac_ext >@@ -4106,11 +4285,21 @@ > _ACEOF > rm -f conftest.$ac_objext > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 >- (eval $ac_compile) 2>&5 >+ (eval $ac_compile) 2>conftest.er1 > ac_status=$? >+ grep -v '^ *+' conftest.er1 >conftest.err >+ rm -f conftest.er1 >+ cat conftest.err >&5 > echo "$as_me:$LINENO: \$? = $ac_status" >&5 > (exit $ac_status); } && >- { ac_try='test -s conftest.$ac_objext' >+ { ac_try='test -z "$ac_c_werror_flag" >+ || test ! -s conftest.err' >+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 >+ (eval $ac_try) 2>&5 >+ ac_status=$? >+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 >+ (exit $ac_status); }; } && >+ { ac_try='test -s conftest.$ac_objext' > { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 > (eval $ac_try) 2>&5 > ac_status=$? >@@ -4123,12 +4312,11 @@ > > ac_cv_header_stdc=no > fi >-rm -f conftest.$ac_objext conftest.$ac_ext >+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext > > if test $ac_cv_header_stdc = yes; then > # SunOS 4.x string.h does not declare mem*, contrary to ANSI. > cat >conftest.$ac_ext <<_ACEOF >-#line $LINENO "configure" > /* confdefs.h. */ > _ACEOF > cat confdefs.h >>conftest.$ac_ext >@@ -4150,7 +4338,6 @@ > if test $ac_cv_header_stdc = yes; then > # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. > cat >conftest.$ac_ext <<_ACEOF >-#line $LINENO "configure" > /* confdefs.h. */ > _ACEOF > cat confdefs.h >>conftest.$ac_ext >@@ -4175,7 +4362,6 @@ > : > else > cat >conftest.$ac_ext <<_ACEOF >-#line $LINENO "configure" > /* confdefs.h. */ > _ACEOF > cat confdefs.h >>conftest.$ac_ext >@@ -4187,9 +4373,9 @@ > # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) > #else > # define ISLOWER(c) \ >- (('a' <= (c) && (c) <= 'i') \ >- || ('j' <= (c) && (c) <= 'r') \ >- || ('s' <= (c) && (c) <= 'z')) >+ (('a' <= (c) && (c) <= 'i') \ >+ || ('j' <= (c) && (c) <= 'r') \ >+ || ('s' <= (c) && (c) <= 'z')) > # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) > #endif > >@@ -4200,7 +4386,7 @@ > int i; > for (i = 0; i < 256; i++) > if (XOR (islower (i), ISLOWER (i)) >- || toupper (i) != TOUPPER (i)) >+ || toupper (i) != TOUPPER (i)) > exit(2); > exit (0); > } >@@ -4225,7 +4411,7 @@ > ( exit $ac_status ) > ac_cv_header_stdc=no > fi >-rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext >+rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext > fi > fi > fi >@@ -4267,7 +4453,6 @@ > # On the NeXT, cc -E runs the code through the compiler's parser, > # not just through cpp. "Syntax error" is here to catch this case. > cat >conftest.$ac_ext <<_ACEOF >-#line $LINENO "configure" > /* confdefs.h. */ > _ACEOF > cat confdefs.h >>conftest.$ac_ext >@@ -4278,7 +4463,7 @@ > #else > # include <assert.h> > #endif >- Syntax error >+ Syntax error > _ACEOF > if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 > (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 >@@ -4290,6 +4475,7 @@ > (exit $ac_status); } >/dev/null; then > if test -s conftest.err; then > ac_cpp_err=$ac_c_preproc_warn_flag >+ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag > else > ac_cpp_err= > fi >@@ -4310,7 +4496,6 @@ > # OK, works on sane cases. Now check whether non-existent headers > # can be detected and how. > cat >conftest.$ac_ext <<_ACEOF >-#line $LINENO "configure" > /* confdefs.h. */ > _ACEOF > cat confdefs.h >>conftest.$ac_ext >@@ -4328,6 +4513,7 @@ > (exit $ac_status); } >/dev/null; then > if test -s conftest.err; then > ac_cpp_err=$ac_c_preproc_warn_flag >+ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag > else > ac_cpp_err= > fi >@@ -4374,7 +4560,6 @@ > # On the NeXT, cc -E runs the code through the compiler's parser, > # not just through cpp. "Syntax error" is here to catch this case. > cat >conftest.$ac_ext <<_ACEOF >-#line $LINENO "configure" > /* confdefs.h. */ > _ACEOF > cat confdefs.h >>conftest.$ac_ext >@@ -4385,7 +4570,7 @@ > #else > # include <assert.h> > #endif >- Syntax error >+ Syntax error > _ACEOF > if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 > (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 >@@ -4397,6 +4582,7 @@ > (exit $ac_status); } >/dev/null; then > if test -s conftest.err; then > ac_cpp_err=$ac_c_preproc_warn_flag >+ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag > else > ac_cpp_err= > fi >@@ -4417,7 +4603,6 @@ > # OK, works on sane cases. Now check whether non-existent headers > # can be detected and how. > cat >conftest.$ac_ext <<_ACEOF >-#line $LINENO "configure" > /* confdefs.h. */ > _ACEOF > cat confdefs.h >>conftest.$ac_ext >@@ -4435,6 +4620,7 @@ > (exit $ac_status); } >/dev/null; then > if test -s conftest.err; then > ac_cpp_err=$ac_c_preproc_warn_flag >+ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag > else > ac_cpp_err= > fi >@@ -4592,7 +4778,6 @@ > echo $ECHO_N "(cached) $ECHO_C" >&6 > else > cat >conftest.$ac_ext <<_ACEOF >-#line $LINENO "configure" > /* confdefs.h. */ > _ACEOF > cat confdefs.h >>conftest.$ac_ext >@@ -4612,11 +4797,21 @@ > _ACEOF > rm -f conftest.$ac_objext > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 >- (eval $ac_compile) 2>&5 >+ (eval $ac_compile) 2>conftest.er1 > ac_status=$? >+ grep -v '^ *+' conftest.er1 >conftest.err >+ rm -f conftest.er1 >+ cat conftest.err >&5 > echo "$as_me:$LINENO: \$? = $ac_status" >&5 > (exit $ac_status); } && >- { ac_try='test -s conftest.$ac_objext' >+ { ac_try='test -z "$ac_cxx_werror_flag" >+ || test ! -s conftest.err' >+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 >+ (eval $ac_try) 2>&5 >+ ac_status=$? >+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 >+ (exit $ac_status); }; } && >+ { ac_try='test -s conftest.$ac_objext' > { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 > (eval $ac_try) 2>&5 > ac_status=$? >@@ -4629,7 +4824,7 @@ > > ac_compiler_gnu=no > fi >-rm -f conftest.$ac_objext conftest.$ac_ext >+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext > ac_cv_cxx_compiler_gnu=$ac_compiler_gnu > > fi >@@ -4645,7 +4840,6 @@ > echo $ECHO_N "(cached) $ECHO_C" >&6 > else > cat >conftest.$ac_ext <<_ACEOF >-#line $LINENO "configure" > /* confdefs.h. */ > _ACEOF > cat confdefs.h >>conftest.$ac_ext >@@ -4662,11 +4856,21 @@ > _ACEOF > rm -f conftest.$ac_objext > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 >- (eval $ac_compile) 2>&5 >+ (eval $ac_compile) 2>conftest.er1 > ac_status=$? >+ grep -v '^ *+' conftest.er1 >conftest.err >+ rm -f conftest.er1 >+ cat conftest.err >&5 > echo "$as_me:$LINENO: \$? = $ac_status" >&5 > (exit $ac_status); } && >- { ac_try='test -s conftest.$ac_objext' >+ { ac_try='test -z "$ac_cxx_werror_flag" >+ || test ! -s conftest.err' >+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 >+ (eval $ac_try) 2>&5 >+ ac_status=$? >+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 >+ (exit $ac_status); }; } && >+ { ac_try='test -s conftest.$ac_objext' > { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 > (eval $ac_try) 2>&5 > ac_status=$? >@@ -4679,7 +4883,7 @@ > > ac_cv_prog_cxx_g=no > fi >-rm -f conftest.$ac_objext conftest.$ac_ext >+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext > fi > echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 > echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 >@@ -4699,8 +4903,7 @@ > fi > fi > for ac_declaration in \ >- ''\ >- '#include <stdlib.h>' \ >+ '' \ > 'extern "C" void std::exit (int) throw (); using std::exit;' \ > 'extern "C" void std::exit (int); using std::exit;' \ > 'extern "C" void exit (int) throw ();' \ >@@ -4708,14 +4911,13 @@ > 'void exit (int);' > do > cat >conftest.$ac_ext <<_ACEOF >-#line $LINENO "configure" > /* confdefs.h. */ > _ACEOF > cat confdefs.h >>conftest.$ac_ext > cat >>conftest.$ac_ext <<_ACEOF > /* end confdefs.h. */ >-#include <stdlib.h> > $ac_declaration >+#include <stdlib.h> > int > main () > { >@@ -4726,11 +4928,21 @@ > _ACEOF > rm -f conftest.$ac_objext > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 >- (eval $ac_compile) 2>&5 >+ (eval $ac_compile) 2>conftest.er1 > ac_status=$? >+ grep -v '^ *+' conftest.er1 >conftest.err >+ rm -f conftest.er1 >+ cat conftest.err >&5 > echo "$as_me:$LINENO: \$? = $ac_status" >&5 > (exit $ac_status); } && >- { ac_try='test -s conftest.$ac_objext' >+ { ac_try='test -z "$ac_cxx_werror_flag" >+ || test ! -s conftest.err' >+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 >+ (eval $ac_try) 2>&5 >+ ac_status=$? >+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 >+ (exit $ac_status); }; } && >+ { ac_try='test -s conftest.$ac_objext' > { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 > (eval $ac_try) 2>&5 > ac_status=$? >@@ -4743,9 +4955,8 @@ > > continue > fi >-rm -f conftest.$ac_objext conftest.$ac_ext >+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext > cat >conftest.$ac_ext <<_ACEOF >-#line $LINENO "configure" > /* confdefs.h. */ > _ACEOF > cat confdefs.h >>conftest.$ac_ext >@@ -4762,11 +4973,21 @@ > _ACEOF > rm -f conftest.$ac_objext > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 >- (eval $ac_compile) 2>&5 >+ (eval $ac_compile) 2>conftest.er1 > ac_status=$? >+ grep -v '^ *+' conftest.er1 >conftest.err >+ rm -f conftest.er1 >+ cat conftest.err >&5 > echo "$as_me:$LINENO: \$? = $ac_status" >&5 > (exit $ac_status); } && >- { ac_try='test -s conftest.$ac_objext' >+ { ac_try='test -z "$ac_cxx_werror_flag" >+ || test ! -s conftest.err' >+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 >+ (eval $ac_try) 2>&5 >+ ac_status=$? >+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 >+ (exit $ac_status); }; } && >+ { ac_try='test -s conftest.$ac_objext' > { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 > (eval $ac_try) 2>&5 > ac_status=$? >@@ -4778,7 +4999,7 @@ > sed 's/^/| /' conftest.$ac_ext >&5 > > fi >-rm -f conftest.$ac_objext conftest.$ac_ext >+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext > done > rm -f conftest* > if test -n "$ac_declaration"; then >@@ -4919,7 +5140,6 @@ > # On the NeXT, cc -E runs the code through the compiler's parser, > # not just through cpp. "Syntax error" is here to catch this case. > cat >conftest.$ac_ext <<_ACEOF >-#line $LINENO "configure" > /* confdefs.h. */ > _ACEOF > cat confdefs.h >>conftest.$ac_ext >@@ -4930,7 +5150,7 @@ > #else > # include <assert.h> > #endif >- Syntax error >+ Syntax error > _ACEOF > if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 > (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 >@@ -4942,6 +5162,7 @@ > (exit $ac_status); } >/dev/null; then > if test -s conftest.err; then > ac_cpp_err=$ac_cxx_preproc_warn_flag >+ ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag > else > ac_cpp_err= > fi >@@ -4962,7 +5183,6 @@ > # OK, works on sane cases. Now check whether non-existent headers > # can be detected and how. > cat >conftest.$ac_ext <<_ACEOF >-#line $LINENO "configure" > /* confdefs.h. */ > _ACEOF > cat confdefs.h >>conftest.$ac_ext >@@ -4980,6 +5200,7 @@ > (exit $ac_status); } >/dev/null; then > if test -s conftest.err; then > ac_cpp_err=$ac_cxx_preproc_warn_flag >+ ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag > else > ac_cpp_err= > fi >@@ -5026,7 +5247,6 @@ > # On the NeXT, cc -E runs the code through the compiler's parser, > # not just through cpp. "Syntax error" is here to catch this case. > cat >conftest.$ac_ext <<_ACEOF >-#line $LINENO "configure" > /* confdefs.h. */ > _ACEOF > cat confdefs.h >>conftest.$ac_ext >@@ -5037,7 +5257,7 @@ > #else > # include <assert.h> > #endif >- Syntax error >+ Syntax error > _ACEOF > if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 > (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 >@@ -5049,6 +5269,7 @@ > (exit $ac_status); } >/dev/null; then > if test -s conftest.err; then > ac_cpp_err=$ac_cxx_preproc_warn_flag >+ ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag > else > ac_cpp_err= > fi >@@ -5069,7 +5290,6 @@ > # OK, works on sane cases. Now check whether non-existent headers > # can be detected and how. > cat >conftest.$ac_ext <<_ACEOF >-#line $LINENO "configure" > /* confdefs.h. */ > _ACEOF > cat confdefs.h >>conftest.$ac_ext >@@ -5087,6 +5307,7 @@ > (exit $ac_status); } >/dev/null; then > if test -s conftest.err; then > ac_cpp_err=$ac_cxx_preproc_warn_flag >+ ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag > else > ac_cpp_err= > fi >@@ -5276,7 +5497,7 @@ > # Add /usr/xpg4/bin/sed as it is typically found on Solaris > # along with /bin/sed that truncates output. > for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do >- test ! -f $lt_ac_sed && break >+ test ! -f $lt_ac_sed && continue > cat /dev/null > conftest.in > lt_ac_count=0 > echo $ECHO_N "0123456789$ECHO_C" >conftest.in >@@ -5301,10 +5522,10 @@ > fi > done > done >-SED=$lt_cv_path_SED > > fi > >+SED=$lt_cv_path_SED > echo "$as_me:$LINENO: result: $SED" >&5 > echo "${ECHO_T}$SED" >&6 > >@@ -5332,7 +5553,7 @@ > # Accept absolute paths. > [\\/]* | ?:[\\/]*) > re_direlt='/[^/][^/]*/\.\./' >- # Canonicalize the path of ld >+ # Canonicalize the pathname of ld > ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` > while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do > ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` >@@ -5430,6 +5651,15 @@ > *) reload_flag=" $reload_flag" ;; > esac > reload_cmds='$LD$reload_flag -o $output$reload_objs' >+case $host_os in >+ darwin*) >+ if test "$GCC" = yes; then >+ reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs' >+ else >+ reload_cmds='$LD$reload_flag -o $output$reload_objs' >+ fi >+ ;; >+esac > > echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 > echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 >@@ -5516,40 +5746,36 @@ > lt_cv_deplibs_check_method=pass_all > ;; > >-bsdi4*) >+bsdi[45]*) > lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' > lt_cv_file_magic_cmd='/usr/bin/file -L' > lt_cv_file_magic_test_file=/shlib/libc.so > ;; > >-cygwin* | mingw* | pw32*) >- # win32_libid is a shell function defined in ltmain.sh >+cygwin*) >+ # func_win32_libid is a shell function defined in ltmain.sh > lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' >- lt_cv_file_magic_cmd='win32_libid' >+ lt_cv_file_magic_cmd='func_win32_libid' >+ ;; >+ >+mingw* | pw32*) >+ # Base MSYS/MinGW do not provide the 'file' command needed by >+ # func_win32_libid shell function, so use a weaker test based on 'objdump'. >+ lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' >+ lt_cv_file_magic_cmd='$OBJDUMP -f' > ;; > > darwin* | rhapsody*) >- # this will be overwritten by pass_all, but leave it in just in case >- lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' >- lt_cv_file_magic_cmd='/usr/bin/file -L' >- case "$host_os" in >- rhapsody* | darwin1.[012]) >- lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System` >- ;; >- *) # Darwin 1.3 on >- lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' >- ;; >- esac > lt_cv_deplibs_check_method=pass_all > ;; > >-freebsd*) >+freebsd* | kfreebsd*-gnu | dragonfly*) > if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then > case $host_cpu in > i*86 ) > # Not sure whether the presence of OpenBSD here was a mistake. > # Let's accept both of them until this is cleared up. >- lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' >+ lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' > lt_cv_file_magic_cmd=/usr/bin/file > lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` > ;; >@@ -5582,36 +5808,18 @@ > ;; > > irix5* | irix6* | nonstopux*) >- case $host_os in >- irix5* | nonstopux*) >- # this will be overridden with pass_all, but let us keep it just in case >- lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" >- ;; >- *) >- case $LD in >- *-32|*"-32 ") libmagic=32-bit;; >- *-n32|*"-n32 ") libmagic=N32;; >- *-64|*"-64 ") libmagic=64-bit;; >- *) libmagic=never-match;; >- esac >- # this will be overridden with pass_all, but let us keep it just in case >- lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" >- ;; >+ case $LD in >+ *-32|*"-32 ") libmagic=32-bit;; >+ *-n32|*"-n32 ") libmagic=N32;; >+ *-64|*"-64 ") libmagic=64-bit;; >+ *) libmagic=never-match;; > esac >- lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` > lt_cv_deplibs_check_method=pass_all > ;; > > # This must be Linux ELF. > linux*) >- case $host_cpu in >- alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh* | x86_64) >- lt_cv_deplibs_check_method=pass_all ;; >- *) >- # glibc up to 2.1.1 does not perform some relocations on ARM >- lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; >- esac >- lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` >+ lt_cv_deplibs_check_method=pass_all > ;; > > netbsd*) >@@ -5628,24 +5836,19 @@ > lt_cv_file_magic_test_file=/usr/lib/libnls.so > ;; > >-nto-qnx) >+nto-qnx*) > lt_cv_deplibs_check_method=unknown > ;; > > openbsd*) >- lt_cv_file_magic_cmd=/usr/bin/file >- lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` > if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then >- lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object' >+ lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' > else >- lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' >+ lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' > fi > ;; > > osf3* | osf4* | osf5*) >- # this will be overridden with pass_all, but let us keep it just in case >- lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' >- lt_cv_file_magic_test_file=/shlib/libc.so > lt_cv_deplibs_check_method=pass_all > ;; > >@@ -5655,7 +5858,6 @@ > > solaris*) > lt_cv_deplibs_check_method=pass_all >- lt_cv_file_magic_test_file=/lib/libc.so > ;; > > sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) >@@ -5734,7 +5936,7 @@ > ;; > *-*-irix6*) > # Find out which ABI we are using. >- echo '#line 5737 "configure"' > conftest.$ac_ext >+ echo '#line 5939 "configure"' > conftest.$ac_ext > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 > (eval $ac_compile) 2>&5 > ac_status=$? >@@ -5815,6 +6017,24 @@ > rm -rf conftest* > ;; > >+*-*-linux*) >+ # Test if the compiler is 64bit >+ echo 'int i;' > conftest.$ac_ext >+ lt_cv_cc_64bit_output=no >+ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 >+ (eval $ac_compile) 2>&5 >+ ac_status=$? >+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 >+ (exit $ac_status); }; then >+ case `/usr/bin/file conftest.$ac_objext` in >+ *"ELF 64"*) >+ lt_cv_cc_64bit_output=yes >+ ;; >+ esac >+ fi >+ rm -rf conftest* >+ ;; >+ > *-*-sco3.2v5*) > # On SCO OpenServer 5, we need -belf to get full-featured binaries. > SAVE_CFLAGS="$CFLAGS" >@@ -5831,7 +6051,6 @@ > ac_compiler_gnu=$ac_cv_c_compiler_gnu > > cat >conftest.$ac_ext <<_ACEOF >-#line $LINENO "configure" > /* confdefs.h. */ > _ACEOF > cat confdefs.h >>conftest.$ac_ext >@@ -5848,11 +6067,21 @@ > _ACEOF > rm -f conftest.$ac_objext conftest$ac_exeext > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 >- (eval $ac_link) 2>&5 >+ (eval $ac_link) 2>conftest.er1 > ac_status=$? >+ grep -v '^ *+' conftest.er1 >conftest.err >+ rm -f conftest.er1 >+ cat conftest.err >&5 > echo "$as_me:$LINENO: \$? = $ac_status" >&5 > (exit $ac_status); } && >- { ac_try='test -s conftest$ac_exeext' >+ { ac_try='test -z "$ac_c_werror_flag" >+ || test ! -s conftest.err' >+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 >+ (eval $ac_try) 2>&5 >+ ac_status=$? >+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 >+ (exit $ac_status); }; } && >+ { ac_try='test -s conftest$ac_exeext' > { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 > (eval $ac_try) 2>&5 > ac_status=$? >@@ -5865,7 +6094,8 @@ > > lt_cv_cc_needs_belf=no > fi >-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext >+rm -f conftest.err conftest.$ac_objext \ >+ conftest$ac_exeext conftest.$ac_ext > ac_ext=c > ac_cpp='$CPP $CPPFLAGS' > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' >@@ -5897,7 +6127,7 @@ > > > for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ >- inttypes.h stdint.h unistd.h >+ inttypes.h stdint.h unistd.h > do > as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` > echo "$as_me:$LINENO: checking for $ac_header" >&5 >@@ -5906,7 +6136,6 @@ > echo $ECHO_N "(cached) $ECHO_C" >&6 > else > cat >conftest.$ac_ext <<_ACEOF >-#line $LINENO "configure" > /* confdefs.h. */ > _ACEOF > cat confdefs.h >>conftest.$ac_ext >@@ -5918,11 +6147,21 @@ > _ACEOF > rm -f conftest.$ac_objext > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 >- (eval $ac_compile) 2>&5 >+ (eval $ac_compile) 2>conftest.er1 > ac_status=$? >+ grep -v '^ *+' conftest.er1 >conftest.err >+ rm -f conftest.er1 >+ cat conftest.err >&5 > echo "$as_me:$LINENO: \$? = $ac_status" >&5 > (exit $ac_status); } && >- { ac_try='test -s conftest.$ac_objext' >+ { ac_try='test -z "$ac_c_werror_flag" >+ || test ! -s conftest.err' >+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 >+ (eval $ac_try) 2>&5 >+ ac_status=$? >+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 >+ (exit $ac_status); }; } && >+ { ac_try='test -s conftest.$ac_objext' > { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 > (eval $ac_try) 2>&5 > ac_status=$? >@@ -5935,7 +6174,7 @@ > > eval "$as_ac_Header=no" > fi >-rm -f conftest.$ac_objext conftest.$ac_ext >+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext > fi > echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 > echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 >@@ -5966,7 +6205,6 @@ > echo "$as_me:$LINENO: checking $ac_header usability" >&5 > echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 > cat >conftest.$ac_ext <<_ACEOF >-#line $LINENO "configure" > /* confdefs.h. */ > _ACEOF > cat confdefs.h >>conftest.$ac_ext >@@ -5977,11 +6215,21 @@ > _ACEOF > rm -f conftest.$ac_objext > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 >- (eval $ac_compile) 2>&5 >+ (eval $ac_compile) 2>conftest.er1 > ac_status=$? >+ grep -v '^ *+' conftest.er1 >conftest.err >+ rm -f conftest.er1 >+ cat conftest.err >&5 > echo "$as_me:$LINENO: \$? = $ac_status" >&5 > (exit $ac_status); } && >- { ac_try='test -s conftest.$ac_objext' >+ { ac_try='test -z "$ac_c_werror_flag" >+ || test ! -s conftest.err' >+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 >+ (eval $ac_try) 2>&5 >+ ac_status=$? >+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 >+ (exit $ac_status); }; } && >+ { ac_try='test -s conftest.$ac_objext' > { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 > (eval $ac_try) 2>&5 > ac_status=$? >@@ -5994,7 +6242,7 @@ > > ac_header_compiler=no > fi >-rm -f conftest.$ac_objext conftest.$ac_ext >+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext > echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 > echo "${ECHO_T}$ac_header_compiler" >&6 > >@@ -6002,7 +6250,6 @@ > echo "$as_me:$LINENO: checking $ac_header presence" >&5 > echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 > cat >conftest.$ac_ext <<_ACEOF >-#line $LINENO "configure" > /* confdefs.h. */ > _ACEOF > cat confdefs.h >>conftest.$ac_ext >@@ -6020,6 +6267,7 @@ > (exit $ac_status); } >/dev/null; then > if test -s conftest.err; then > ac_cpp_err=$ac_c_preproc_warn_flag >+ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag > else > ac_cpp_err= > fi >@@ -6039,33 +6287,32 @@ > echo "${ECHO_T}$ac_header_preproc" >&6 > > # So? What about this header? >-case $ac_header_compiler:$ac_header_preproc in >- yes:no ) >+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in >+ yes:no: ) > { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 > echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} >- { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 >-echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} >- ( >- cat <<\_ASBOX >-## ------------------------------------ ## >-## Report this to bug-autoconf@gnu.org. ## >-## ------------------------------------ ## >-_ASBOX >- ) | >- sed "s/^/$as_me: WARNING: /" >&2 >+ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 >+echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} >+ ac_header_preproc=yes > ;; >- no:yes ) >+ no:yes:* ) > { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 > echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} >- { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 >-echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} >+ { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 >+echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} >+ { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 >+echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} >+ { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 >+echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} > { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 > echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} >+ { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 >+echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} > ( > cat <<\_ASBOX >-## ------------------------------------ ## >-## Report this to bug-autoconf@gnu.org. ## >-## ------------------------------------ ## >+## ------------------------------------------ ## >+## Report this to the AC_PACKAGE_NAME lists. ## >+## ------------------------------------------ ## > _ASBOX > ) | > sed "s/^/$as_me: WARNING: /" >&2 >@@ -6076,7 +6323,7 @@ > if eval "test \"\${$as_ac_Header+set}\" = set"; then > echo $ECHO_N "(cached) $ECHO_C" >&6 > else >- eval "$as_ac_Header=$ac_header_preproc" >+ eval "$as_ac_Header=\$ac_header_preproc" > fi > echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 > echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 >@@ -6092,12 +6339,249 @@ > done > > >+ >+if test -n "$CXX" && ( test "X$CXX" != "Xno" && >+ ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || >+ (test "X$CXX" != "Xg++"))) ; then >+ ac_ext=cc >+ac_cpp='$CXXCPP $CPPFLAGS' >+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' >+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' >+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu >+echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 >+echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 >+if test -z "$CXXCPP"; then >+ if test "${ac_cv_prog_CXXCPP+set}" = set; then >+ echo $ECHO_N "(cached) $ECHO_C" >&6 >+else >+ # Double quotes because CXXCPP needs to be expanded >+ for CXXCPP in "$CXX -E" "/lib/cpp" >+ do >+ ac_preproc_ok=false >+for ac_cxx_preproc_warn_flag in '' yes >+do >+ # Use a header file that comes with gcc, so configuring glibc >+ # with a fresh cross-compiler works. >+ # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since >+ # <limits.h> exists even on freestanding compilers. >+ # On the NeXT, cc -E runs the code through the compiler's parser, >+ # not just through cpp. "Syntax error" is here to catch this case. >+ cat >conftest.$ac_ext <<_ACEOF >+/* confdefs.h. */ >+_ACEOF >+cat confdefs.h >>conftest.$ac_ext >+cat >>conftest.$ac_ext <<_ACEOF >+/* end confdefs.h. */ >+#ifdef __STDC__ >+# include <limits.h> >+#else >+# include <assert.h> >+#endif >+ Syntax error >+_ACEOF >+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 >+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 >+ ac_status=$? >+ grep -v '^ *+' conftest.er1 >conftest.err >+ rm -f conftest.er1 >+ cat conftest.err >&5 >+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 >+ (exit $ac_status); } >/dev/null; then >+ if test -s conftest.err; then >+ ac_cpp_err=$ac_cxx_preproc_warn_flag >+ ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag >+ else >+ ac_cpp_err= >+ fi >+else >+ ac_cpp_err=yes >+fi >+if test -z "$ac_cpp_err"; then >+ : >+else >+ echo "$as_me: failed program was:" >&5 >+sed 's/^/| /' conftest.$ac_ext >&5 >+ >+ # Broken: fails on valid input. >+continue >+fi >+rm -f conftest.err conftest.$ac_ext >+ >+ # OK, works on sane cases. Now check whether non-existent headers >+ # can be detected and how. >+ cat >conftest.$ac_ext <<_ACEOF >+/* confdefs.h. */ >+_ACEOF >+cat confdefs.h >>conftest.$ac_ext >+cat >>conftest.$ac_ext <<_ACEOF >+/* end confdefs.h. */ >+#include <ac_nonexistent.h> >+_ACEOF >+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 >+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 >+ ac_status=$? >+ grep -v '^ *+' conftest.er1 >conftest.err >+ rm -f conftest.er1 >+ cat conftest.err >&5 >+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 >+ (exit $ac_status); } >/dev/null; then >+ if test -s conftest.err; then >+ ac_cpp_err=$ac_cxx_preproc_warn_flag >+ ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag >+ else >+ ac_cpp_err= >+ fi >+else >+ ac_cpp_err=yes >+fi >+if test -z "$ac_cpp_err"; then >+ # Broken: success on invalid input. >+continue >+else >+ echo "$as_me: failed program was:" >&5 >+sed 's/^/| /' conftest.$ac_ext >&5 >+ >+ # Passes both tests. >+ac_preproc_ok=: >+break >+fi >+rm -f conftest.err conftest.$ac_ext >+ >+done >+# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. >+rm -f conftest.err conftest.$ac_ext >+if $ac_preproc_ok; then >+ break >+fi >+ >+ done >+ ac_cv_prog_CXXCPP=$CXXCPP >+ >+fi >+ CXXCPP=$ac_cv_prog_CXXCPP >+else >+ ac_cv_prog_CXXCPP=$CXXCPP >+fi >+echo "$as_me:$LINENO: result: $CXXCPP" >&5 >+echo "${ECHO_T}$CXXCPP" >&6 >+ac_preproc_ok=false >+for ac_cxx_preproc_warn_flag in '' yes >+do >+ # Use a header file that comes with gcc, so configuring glibc >+ # with a fresh cross-compiler works. >+ # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since >+ # <limits.h> exists even on freestanding compilers. >+ # On the NeXT, cc -E runs the code through the compiler's parser, >+ # not just through cpp. "Syntax error" is here to catch this case. >+ cat >conftest.$ac_ext <<_ACEOF >+/* confdefs.h. */ >+_ACEOF >+cat confdefs.h >>conftest.$ac_ext >+cat >>conftest.$ac_ext <<_ACEOF >+/* end confdefs.h. */ >+#ifdef __STDC__ >+# include <limits.h> >+#else >+# include <assert.h> >+#endif >+ Syntax error >+_ACEOF >+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 >+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 >+ ac_status=$? >+ grep -v '^ *+' conftest.er1 >conftest.err >+ rm -f conftest.er1 >+ cat conftest.err >&5 >+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 >+ (exit $ac_status); } >/dev/null; then >+ if test -s conftest.err; then >+ ac_cpp_err=$ac_cxx_preproc_warn_flag >+ ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag >+ else >+ ac_cpp_err= >+ fi >+else >+ ac_cpp_err=yes >+fi >+if test -z "$ac_cpp_err"; then >+ : >+else >+ echo "$as_me: failed program was:" >&5 >+sed 's/^/| /' conftest.$ac_ext >&5 >+ >+ # Broken: fails on valid input. >+continue >+fi >+rm -f conftest.err conftest.$ac_ext >+ >+ # OK, works on sane cases. Now check whether non-existent headers >+ # can be detected and how. >+ cat >conftest.$ac_ext <<_ACEOF >+/* confdefs.h. */ >+_ACEOF >+cat confdefs.h >>conftest.$ac_ext >+cat >>conftest.$ac_ext <<_ACEOF >+/* end confdefs.h. */ >+#include <ac_nonexistent.h> >+_ACEOF >+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 >+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 >+ ac_status=$? >+ grep -v '^ *+' conftest.er1 >conftest.err >+ rm -f conftest.er1 >+ cat conftest.err >&5 >+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 >+ (exit $ac_status); } >/dev/null; then >+ if test -s conftest.err; then >+ ac_cpp_err=$ac_cxx_preproc_warn_flag >+ ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag >+ else >+ ac_cpp_err= >+ fi >+else >+ ac_cpp_err=yes >+fi >+if test -z "$ac_cpp_err"; then >+ # Broken: success on invalid input. >+continue >+else >+ echo "$as_me: failed program was:" >&5 >+sed 's/^/| /' conftest.$ac_ext >&5 >+ >+ # Passes both tests. >+ac_preproc_ok=: >+break >+fi >+rm -f conftest.err conftest.$ac_ext >+ >+done >+# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. >+rm -f conftest.err conftest.$ac_ext >+if $ac_preproc_ok; then >+ : >+else >+ { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check >+See \`config.log' for more details." >&5 >+echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check >+See \`config.log' for more details." >&2;} >+ { (exit 1); exit 1; }; } >+fi >+ >+ac_ext=cc >+ac_cpp='$CXXCPP $CPPFLAGS' >+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' >+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' >+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu >+ >+fi >+ >+ > ac_ext=f > ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' > ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' > ac_compiler_gnu=$ac_cv_f77_compiler_gnu > if test -n "$ac_tool_prefix"; then >- for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95 >+ for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran > do > # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. > set dummy $ac_tool_prefix$ac_prog; ac_word=$2 >@@ -6139,7 +6623,7 @@ > fi > if test -z "$F77"; then > ac_ct_F77=$F77 >- for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95 >+ for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran > do > # Extract the first word of "$ac_prog", so it can be a program name with args. > set dummy $ac_prog; ac_word=$2 >@@ -6184,7 +6668,7 @@ > > > # Provide some information about the compiler. >-echo "$as_me:6187:" \ >+echo "$as_me:6671:" \ > "checking for Fortran 77 compiler version" >&5 > ac_compiler=`set X $ac_compile; echo $2` > { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 >@@ -6202,9 +6686,10 @@ > ac_status=$? > echo "$as_me:$LINENO: \$? = $ac_status" >&5 > (exit $ac_status); } >+rm -f a.out > > # If we don't use `.F' as extension, the preprocessor is not run on the >-# input file. >+# input file. (Note that this only needs to work for GNU compilers.) > ac_save_ext=$ac_ext > ac_ext=F > echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 >@@ -6222,11 +6707,21 @@ > _ACEOF > rm -f conftest.$ac_objext > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 >- (eval $ac_compile) 2>&5 >+ (eval $ac_compile) 2>conftest.er1 > ac_status=$? >+ grep -v '^ *+' conftest.er1 >conftest.err >+ rm -f conftest.er1 >+ cat conftest.err >&5 > echo "$as_me:$LINENO: \$? = $ac_status" >&5 > (exit $ac_status); } && >- { ac_try='test -s conftest.$ac_objext' >+ { ac_try='test -z "$ac_f77_werror_flag" >+ || test ! -s conftest.err' >+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 >+ (eval $ac_try) 2>&5 >+ ac_status=$? >+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 >+ (exit $ac_status); }; } && >+ { ac_try='test -s conftest.$ac_objext' > { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 > (eval $ac_try) 2>&5 > ac_status=$? >@@ -6239,14 +6734,13 @@ > > ac_compiler_gnu=no > fi >-rm -f conftest.$ac_objext conftest.$ac_ext >+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext > ac_cv_f77_compiler_gnu=$ac_compiler_gnu > > fi > echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 > echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 > ac_ext=$ac_save_ext >-G77=`test $ac_compiler_gnu = yes && echo yes` > ac_test_FFLAGS=${FFLAGS+set} > ac_save_FFLAGS=$FFLAGS > FFLAGS= >@@ -6263,11 +6757,21 @@ > _ACEOF > rm -f conftest.$ac_objext > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 >- (eval $ac_compile) 2>&5 >+ (eval $ac_compile) 2>conftest.er1 > ac_status=$? >+ grep -v '^ *+' conftest.er1 >conftest.err >+ rm -f conftest.er1 >+ cat conftest.err >&5 > echo "$as_me:$LINENO: \$? = $ac_status" >&5 > (exit $ac_status); } && >- { ac_try='test -s conftest.$ac_objext' >+ { ac_try='test -z "$ac_f77_werror_flag" >+ || test ! -s conftest.err' >+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 >+ (eval $ac_try) 2>&5 >+ ac_status=$? >+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 >+ (exit $ac_status); }; } && >+ { ac_try='test -s conftest.$ac_objext' > { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 > (eval $ac_try) 2>&5 > ac_status=$? >@@ -6280,7 +6784,7 @@ > > ac_cv_prog_f77_g=no > fi >-rm -f conftest.$ac_objext conftest.$ac_ext >+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext > > fi > echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 >@@ -6288,18 +6792,20 @@ > if test "$ac_test_FFLAGS" = set; then > FFLAGS=$ac_save_FFLAGS > elif test $ac_cv_prog_f77_g = yes; then >- if test "$G77" = yes; then >+ if test "x$ac_cv_f77_compiler_gnu" = xyes; then > FFLAGS="-g -O2" > else > FFLAGS="-g" > fi > else >- if test "$G77" = yes; then >+ if test "x$ac_cv_f77_compiler_gnu" = xyes; then > FFLAGS="-O2" > else > FFLAGS= > fi > fi >+ >+G77=`test $ac_compiler_gnu = yes && echo yes` > ac_ext=c > ac_cpp='$CPP $CPPFLAGS' > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' >@@ -6317,7 +6823,7 @@ > echo $ECHO_N "(cached) $ECHO_C" >&6 > else > i=0 >- testring="ABCD" >+ teststring="ABCD" > > case $build_os in > msdosdjgpp*) >@@ -6346,20 +6852,53 @@ > lt_cv_sys_max_cmd_len=8192; > ;; > >- *) >+ amigaos*) >+ # On AmigaOS with pdksh, this test takes hours, literally. >+ # So we just punt and use a minimum line length of 8192. >+ lt_cv_sys_max_cmd_len=8192; >+ ;; >+ >+ netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) >+ # This has been around since 386BSD, at least. Likely further. >+ if test -x /sbin/sysctl; then >+ lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` >+ elif test -x /usr/sbin/sysctl; then >+ lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` >+ else >+ lt_cv_sys_max_cmd_len=65536 # usable default for *BSD >+ fi >+ # And add a safety zone >+ lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` >+ lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` >+ ;; >+ osf*) >+ # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure >+ # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not >+ # nice to cause kernel panics so lets avoid the loop below. >+ # First set a reasonable default. >+ lt_cv_sys_max_cmd_len=16384 >+ # >+ if test -x /sbin/sysconfig; then >+ case `/sbin/sysconfig -q proc exec_disable_arg_limit` in >+ *1*) lt_cv_sys_max_cmd_len=-1 ;; >+ esac >+ fi >+ ;; >+ *) > # If test is not a shell built-in, we'll probably end up computing a > # maximum length that is only half of the actual maximum length, but > # we can't tell. >- while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \ >- = "XX$testring") >/dev/null 2>&1 && >- new_result=`expr "X$testring" : ".*" 2>&1` && >+ SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} >+ while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ >+ = "XX$teststring") >/dev/null 2>&1 && >+ new_result=`expr "X$teststring" : ".*" 2>&1` && > lt_cv_sys_max_cmd_len=$new_result && > test $i != 17 # 1/2 MB should be enough > do > i=`expr $i + 1` >- testring=$testring$testring >+ teststring=$teststring$teststring > done >- testring= >+ teststring= > # Add a significant safety factor because C++ compilers can tack on massive > # amounts of additional arguments before passing them to the linker. > # It appears as though 1/2 is a usable value. >@@ -6396,9 +6935,6 @@ > # Regexp to match symbols that can be accessed directly from C. > sympat='\([_A-Za-z][_A-Za-z0-9]*\)' > >-# Transform the above into a raw symbol and a C symbol. >-symxfrm='\1 \2\3 \3' >- > # Transform an extracted symbol line into a proper C declaration > lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" > >@@ -6420,6 +6956,13 @@ > lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" > 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'" > ;; >+linux*) >+ if test "$host_cpu" = ia64; then >+ symcode='[ABCDGIRSTW]' >+ lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" >+ 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'" >+ fi >+ ;; > irix* | nonstopux*) > symcode='[BCDEGRST]' > ;; >@@ -6427,7 +6970,7 @@ > symcode='[BCDEGQRST]' > ;; > solaris* | sysv5*) >- symcode='[BDT]' >+ symcode='[BDRT]' > ;; > sysv4) > symcode='[DFNSTU]' >@@ -6445,14 +6988,17 @@ > # If we're using GNU nm, then use its standard symbol codes. > case `$NM -V 2>&1` in > *GNU* | *'with BFD'*) >- symcode='[ABCDGISTW]' ;; >+ symcode='[ABCDGIRSTW]' ;; > esac > > # Try without a prefix undercore, then with it. > for ac_symprfx in "" "_"; do > >+ # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. >+ symxfrm="\\1 $ac_symprfx\\2 \\2" >+ > # Write the raw and C identifiers. >- lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" >+ lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" > > # Check to see that the pipe works correctly. > pipe_works=no >@@ -6614,7 +7160,7 @@ > > # Sed substitution that helps us do robust quoting. It backslashifies > # metacharacters that are still active within double-quoted strings. >-Xsed='sed -e s/^X//' >+Xsed='sed -e 1s/^X//' > sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' > > # Same as above, but do not quote variable references. >@@ -6919,6 +7465,17 @@ > old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" > fi > >+for cc_temp in $compiler""; do >+ case $cc_temp in >+ compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; >+ distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; >+ \-*) ;; >+ *) break;; >+ esac >+done >+cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` >+ >+ > # Only perform the check for file, if the check method requires it > case $deplibs_check_method in > file_magic*) >@@ -7074,6 +7631,47 @@ > fi; > test -z "$pic_mode" && pic_mode=default > >+# Check if we have a version mismatch between libtool.m4 and ltmain.sh. >+# >+# Note: This should be in AC_LIBTOOL_SETUP, _after_ $ltmain have been defined. >+# We also should do it _before_ AC_LIBTOOL_LANG_C_CONFIG that actually >+# calls AC_LIBTOOL_CONFIG and creates libtool. >+# >+echo "$as_me:$LINENO: checking for correct ltmain.sh version" >&5 >+echo $ECHO_N "checking for correct ltmain.sh version... $ECHO_C" >&6 >+if test -z "$ltmain"; then >+ echo "$as_me:$LINENO: result: no" >&5 >+echo "${ECHO_T}no" >&6 >+ echo >+ echo "*** Gentoo sanity check failed! ***" >+ echo "*** \$ltmain is not defined, please check the patch for consistency! ***" >+ echo >+ exit 1 >+fi >+gentoo_lt_version="1.5.18" >+gentoo_ltmain_version=`grep '^[:space:]*VERSION=' $ltmain | sed -e 's|^[:space:]*VERSION=||'` >+if test "$gentoo_lt_version" != "$gentoo_ltmain_version"; then >+ echo "$as_me:$LINENO: result: no" >&5 >+echo "${ECHO_T}no" >&6 >+ echo >+ echo "*** Gentoo sanity check failed! ***" >+ echo "*** libtool.m4 and ltmain.sh have a version mismatch! ***" >+ echo "*** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***" >+ echo >+ echo "Please run:" >+ echo >+ echo " libtoolize --copy --force" >+ echo >+ echo "if appropriate, please contact the maintainer of this" >+ echo "package (or your distribution) for help." >+ echo >+ exit 1 >+else >+ echo "$as_me:$LINENO: result: yes" >&5 >+echo "${ECHO_T}yes" >&6 >+fi >+ >+ > # Use C for the default configuration in the libtool script > tagname= > lt_save_CC="$CC" >@@ -7105,6 +7703,20 @@ > compiler=$CC > > >+# save warnings/boilerplate of simple test code >+ac_outfile=conftest.$ac_objext >+printf "$lt_simple_compile_test_code" >conftest.$ac_ext >+eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err >+_lt_compiler_boilerplate=`cat conftest.err` >+$rm conftest* >+ >+ac_outfile=conftest.$ac_objext >+printf "$lt_simple_link_test_code" >conftest.$ac_ext >+eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err >+_lt_linker_boilerplate=`cat conftest.err` >+$rm conftest* >+ >+ > # > # Check for any special shared library compilation flags. > # >@@ -7146,6 +7758,11 @@ > if test -s conftest.err; then > # Append any errors to the config.log. > cat conftest.err 1>&5 >+ $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp >+ $SED '/^$/d' conftest.err >conftest.er2 >+ if diff conftest.exp conftest.er2 >/dev/null; then >+ lt_prog_compiler_static_works=yes >+ fi > else > lt_prog_compiler_static_works=yes > fi >@@ -7171,7 +7788,8 @@ > if test "$GCC" = yes; then > lt_prog_compiler_no_builtin_flag=' -fno-builtin' > >- echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 >+ >+echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 > echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 > if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then > echo $ECHO_N "(cached) $ECHO_C" >&6 >@@ -7189,15 +7807,17 @@ > -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ > -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ > -e 's:$: $lt_compiler_flag:'` >- (eval echo "\"\$as_me:7192: $lt_compile\"" >&5) >+ (eval echo "\"\$as_me:7810: $lt_compile\"" >&5) > (eval "$lt_compile" 2>conftest.err) > ac_status=$? > cat conftest.err >&5 >- echo "$as_me:7196: \$? = $ac_status" >&5 >+ echo "$as_me:7814: \$? = $ac_status" >&5 > if (exit $ac_status) && test -s "$ac_outfile"; then > # The compiler can only warn and ignore the option if not recognized >- # So say no if there are warnings >- if test ! -s conftest.err; then >+ # So say no if there are warnings other than the usual output. >+ $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp >+ $SED '/^$/d' conftest.err >conftest.er2 >+ if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then > lt_cv_prog_compiler_rtti_exceptions=yes > fi > fi >@@ -7300,6 +7920,16 @@ > lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' > fi > ;; >+ darwin*) >+ # PIC is the default on this platform >+ # Common symbols not allowed in MH_DYLIB files >+ case $cc_basename in >+ xlc*) >+ lt_prog_compiler_pic='-qnocommon' >+ lt_prog_compiler_wl='-Wl,' >+ ;; >+ esac >+ ;; > > mingw* | pw32* | os2*) > # This hack is so that the source file can tell whether it is being >@@ -7335,13 +7965,20 @@ > ;; > > linux*) >- case $CC in >- icc|ecc) >+ case $cc_basename in >+ icc* | ecc*) > lt_prog_compiler_wl='-Wl,' > lt_prog_compiler_pic='-KPIC' > lt_prog_compiler_static='-static' > ;; >- ccc) >+ pgcc* | pgf77* | pgf90*) >+ # Portland Group compilers (*not* the Pentium gcc compiler, >+ # which looks to be a dead project) >+ lt_prog_compiler_wl='-Wl,' >+ lt_prog_compiler_pic='-fpic' >+ lt_prog_compiler_static='-static' >+ ;; >+ ccc*) > lt_prog_compiler_wl='-Wl,' > # All Alpha code is PIC. > lt_prog_compiler_static='-non_shared' >@@ -7361,9 +7998,14 @@ > ;; > > solaris*) >- lt_prog_compiler_wl='-Wl,' > lt_prog_compiler_pic='-KPIC' > lt_prog_compiler_static='-Bstatic' >+ case $cc_basename in >+ f77* | f90* | f95*) >+ lt_prog_compiler_wl='-Qoption ld ';; >+ *) >+ lt_prog_compiler_wl='-Wl,';; >+ esac > ;; > > sunos4*) >@@ -7385,6 +8027,11 @@ > fi > ;; > >+ unicos*) >+ lt_prog_compiler_wl='-Wl,' >+ lt_prog_compiler_can_build_shared=no >+ ;; >+ > uts4*) > lt_prog_compiler_pic='-pic' > lt_prog_compiler_static='-Bstatic' >@@ -7403,7 +8050,8 @@ > # Check to make sure the PIC flag actually works. > # > if test -n "$lt_prog_compiler_pic"; then >- echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 >+ >+echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 > echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 > if test "${lt_prog_compiler_pic_works+set}" = set; then > echo $ECHO_N "(cached) $ECHO_C" >&6 >@@ -7421,15 +8069,17 @@ > -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ > -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ > -e 's:$: $lt_compiler_flag:'` >- (eval echo "\"\$as_me:7424: $lt_compile\"" >&5) >+ (eval echo "\"\$as_me:8072: $lt_compile\"" >&5) > (eval "$lt_compile" 2>conftest.err) > ac_status=$? > cat conftest.err >&5 >- echo "$as_me:7428: \$? = $ac_status" >&5 >+ echo "$as_me:8076: \$? = $ac_status" >&5 > if (exit $ac_status) && test -s "$ac_outfile"; then > # The compiler can only warn and ignore the option if not recognized >- # So say no if there are warnings >- if test ! -s conftest.err; then >+ # So say no if there are warnings other than the usual output. >+ $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp >+ $SED '/^$/d' conftest.err >conftest.er2 >+ if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then > lt_prog_compiler_pic_works=yes > fi > fi >@@ -7472,13 +8122,6 @@ > mkdir out > printf "$lt_simple_compile_test_code" > conftest.$ac_ext > >- # According to Tom Tromey, Ian Lance Taylor reported there are C compilers >- # that will create temporary files in the current directory regardless of >- # the output directory. Thus, making CWD read-only will cause this test >- # to fail, enabling locking or at least warning the user not to do parallel >- # builds. >- chmod -w . >- > lt_compiler_flag="-o out/conftest2.$ac_objext" > # Insert the option either (1) after the last *FLAGS variable, or > # (2) before a word containing "conftest.", or (3) at the end. >@@ -7488,22 +8131,27 @@ > -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ > -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ > -e 's:$: $lt_compiler_flag:'` >- (eval echo "\"\$as_me:7491: $lt_compile\"" >&5) >+ (eval echo "\"\$as_me:8134: $lt_compile\"" >&5) > (eval "$lt_compile" 2>out/conftest.err) > ac_status=$? > cat out/conftest.err >&5 >- echo "$as_me:7495: \$? = $ac_status" >&5 >+ echo "$as_me:8138: \$? = $ac_status" >&5 > if (exit $ac_status) && test -s out/conftest2.$ac_objext > then > # The compiler can only warn and ignore the option if not recognized > # So say no if there are warnings >- if test ! -s out/conftest.err; then >+ $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp >+ $SED '/^$/d' out/conftest.err >out/conftest.er2 >+ if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then > lt_cv_prog_compiler_c_o=yes > fi > fi > chmod u+w . >- $rm conftest* out/* >- rmdir out >+ $rm conftest* >+ # SGI C++ compiler will create directory out/ii_files/ for >+ # template instantiation >+ test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files >+ $rm out/* && rmdir out > cd .. > rmdir conftest > $rm conftest* >@@ -7574,6 +8222,16 @@ > # rely on this symbol name, it's probably fine to never include it in > # preloaded symbol tables. > extract_expsyms_cmds= >+ # Just being paranoid about ensuring that cc_basename is set. >+ for cc_temp in $compiler""; do >+ case $cc_temp in >+ compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; >+ distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; >+ \-*) ;; >+ *) break;; >+ esac >+done >+cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` > > case $host_os in > cygwin* | mingw* | pw32*) >@@ -7594,6 +8252,27 @@ > # If archive_cmds runs LD, not CC, wlarc should be empty > wlarc='${wl}' > >+ # Set some defaults for GNU ld with shared library support. These >+ # are reset later if shared libraries are not supported. Putting them >+ # here allows them to be overridden if necessary. >+ runpath_var=LD_RUN_PATH >+ hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' >+ export_dynamic_flag_spec='${wl}--export-dynamic' >+ # ancient GNU ld didn't support --whole-archive et. al. >+ if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then >+ whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' >+ else >+ whole_archive_flag_spec= >+ fi >+ supports_anon_versioning=no >+ case `$LD -v 2>/dev/null` in >+ *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 >+ *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... >+ *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... >+ *\ 2.11.*) ;; # other 2.11 versions >+ *) supports_anon_versioning=yes ;; >+ esac >+ > # See if GNU ld supports shared libraries. > case $host_os in > aix3* | aix4* | aix5*) >@@ -7644,7 +8323,7 @@ > allow_undefined_flag=unsupported > always_export_symbols=no > enable_shared_with_static_runtimes=yes >- export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' >+ export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' > > if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then > archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' >@@ -7662,6 +8341,37 @@ > fi > ;; > >+ linux*) >+ if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then >+ tmp_addflag= >+ case $cc_basename,$host_cpu in >+ pgcc*) # Portland Group C compiler >+ whole_archive_flag_spec='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' >+ tmp_addflag=' $pic_flag' >+ ;; >+ pgf77* | pgf90* ) # Portland Group f77 and f90 compilers >+ whole_archive_flag_spec='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' >+ tmp_addflag=' $pic_flag -Mnomain' ;; >+ ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 >+ tmp_addflag=' -i_dynamic' ;; >+ efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 >+ tmp_addflag=' -i_dynamic -nofor_main' ;; >+ ifc* | ifort*) # Intel Fortran compiler >+ tmp_addflag=' -nofor_main' ;; >+ esac >+ archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' >+ >+ if test $supports_anon_versioning = yes; then >+ archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ >+ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ >+ $echo "local: *; };" >> $output_objdir/$libname.ver~ >+ $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' >+ fi >+ else >+ ld_shlibs=no >+ fi >+ ;; >+ > netbsd*) > if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then > archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' >@@ -7710,16 +8420,11 @@ > ;; > esac > >- if test "$ld_shlibs" = yes; then >- runpath_var=LD_RUN_PATH >- hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' >- export_dynamic_flag_spec='${wl}--export-dynamic' >- # ancient GNU ld didn't support --whole-archive et. al. >- if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then >- whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' >- else >- whole_archive_flag_spec= >- fi >+ if test "$ld_shlibs" = no; then >+ runpath_var= >+ hardcode_libdir_flag_spec= >+ export_dynamic_flag_spec= >+ whole_archive_flag_spec= > fi > else > # PORTME fill in a description of your system's linker (not GNU ld) >@@ -7783,7 +8488,7 @@ > link_all_deplibs=yes > > if test "$GCC" = yes; then >- case $host_os in aix4.012|aix4.012.*) >+ case $host_os in aix4.[012]|aix4.[012].*) > # We only want to do this on AIX 4.2 and lower, the check > # below for broken collect2 doesn't work under 4.3+ > collect2name=`${CC} -print-prog-name=collect2` >@@ -7804,6 +8509,9 @@ > fi > esac > shared_flag='-shared' >+ if test "$aix_use_runtimelinking" = yes; then >+ shared_flag="$shared_flag "'${wl}-G' >+ fi > else > # not using gcc > if test "$host_cpu" = ia64; then >@@ -7828,7 +8536,6 @@ > allow_undefined_flag='-berok' > # Determine the default libpath from the value encoded in an empty executable. > cat >conftest.$ac_ext <<_ACEOF >-#line $LINENO "configure" > /* confdefs.h. */ > _ACEOF > cat confdefs.h >>conftest.$ac_ext >@@ -7845,11 +8552,21 @@ > _ACEOF > rm -f conftest.$ac_objext conftest$ac_exeext > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 >- (eval $ac_link) 2>&5 >+ (eval $ac_link) 2>conftest.er1 > ac_status=$? >+ grep -v '^ *+' conftest.er1 >conftest.err >+ rm -f conftest.er1 >+ cat conftest.err >&5 > echo "$as_me:$LINENO: \$? = $ac_status" >&5 > (exit $ac_status); } && >- { ac_try='test -s conftest$ac_exeext' >+ { ac_try='test -z "$ac_c_werror_flag" >+ || test ! -s conftest.err' >+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 >+ (eval $ac_try) 2>&5 >+ ac_status=$? >+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 >+ (exit $ac_status); }; } && >+ { ac_try='test -s conftest$ac_exeext' > { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 > (eval $ac_try) 2>&5 > ac_status=$? >@@ -7866,7 +8583,8 @@ > sed 's/^/| /' conftest.$ac_ext >&5 > > fi >-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext >+rm -f conftest.err conftest.$ac_objext \ >+ conftest$ac_exeext conftest.$ac_ext > if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi > > hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" >@@ -7879,7 +8597,6 @@ > else > # Determine the default libpath from the value encoded in an empty executable. > cat >conftest.$ac_ext <<_ACEOF >-#line $LINENO "configure" > /* confdefs.h. */ > _ACEOF > cat confdefs.h >>conftest.$ac_ext >@@ -7896,11 +8613,21 @@ > _ACEOF > rm -f conftest.$ac_objext conftest$ac_exeext > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 >- (eval $ac_link) 2>&5 >+ (eval $ac_link) 2>conftest.er1 > ac_status=$? >+ grep -v '^ *+' conftest.er1 >conftest.err >+ rm -f conftest.er1 >+ cat conftest.err >&5 > echo "$as_me:$LINENO: \$? = $ac_status" >&5 > (exit $ac_status); } && >- { ac_try='test -s conftest$ac_exeext' >+ { ac_try='test -z "$ac_c_werror_flag" >+ || test ! -s conftest.err' >+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 >+ (eval $ac_try) 2>&5 >+ ac_status=$? >+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 >+ (exit $ac_status); }; } && >+ { ac_try='test -s conftest$ac_exeext' > { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 > (eval $ac_try) 2>&5 > ac_status=$? >@@ -7917,7 +8644,8 @@ > sed 's/^/| /' conftest.$ac_ext >&5 > > fi >-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext >+rm -f conftest.err conftest.$ac_objext \ >+ conftest$ac_exeext conftest.$ac_ext > if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi > > hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" >@@ -7944,7 +8672,7 @@ > ld_shlibs=no > ;; > >- bsdi4*) >+ bsdi[45]*) > export_dynamic_flag_spec=-rdynamic > ;; > >@@ -7958,7 +8686,7 @@ > # Tell ltmain to make .lib files, not .a files. > libext=lib > # Tell ltmain to make .dll files, not .so files. >- shrext=".dll" >+ shrext_cmds=".dll" > # FIXME: Setting linknames here is a bad hack. > archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' > # The linker will automatically build a .lib file if we build a DLL. >@@ -7970,43 +8698,52 @@ > ;; > > darwin* | rhapsody*) >- if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then >- archive_cmds_need_lc=no > case "$host_os" in >- rhapsody* | darwin1.[012]) >- allow_undefined_flag='-undefined suppress' >- ;; >- *) # Darwin 1.3 on >- test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress' >- ;; >+ rhapsody* | darwin1.[012]) >+ allow_undefined_flag='${wl}-undefined ${wl}suppress' >+ ;; >+ *) # Darwin 1.3 on >+ if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then >+ allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' >+ else >+ case ${MACOSX_DEPLOYMENT_TARGET} in >+ 10.[012]) >+ allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' >+ ;; >+ 10.*) >+ allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' >+ ;; >+ esac >+ fi >+ ;; > esac >- # FIXME: Relying on posixy $() will cause problems for >- # cross-compilation, but unfortunately the echo tests do not >- # yet detect zsh echo's removal of \ escapes. Also zsh mangles >- # `"' quotes if we put them in here... so don't! >- lt_int_apple_cc_single_mod=no >- output_verbose_link_cmd='echo' >- if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then >- lt_int_apple_cc_single_mod=yes >- fi >- if test "X$lt_int_apple_cc_single_mod" = Xyes ; then >- archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' >- else >- archive_cmds='$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' >- fi >- module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags' >- # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's >- if test "X$lt_int_apple_cc_single_mod" = Xyes ; then >- archive_expsym_cmds='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}' >- else >- archive_expsym_cmds='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}' >- fi >- module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' >+ archive_cmds_need_lc=no > hardcode_direct=no > hardcode_automatic=yes > hardcode_shlibpath_var=unsupported >- whole_archive_flag_spec='-all_load $convenience' >+ whole_archive_flag_spec='' > link_all_deplibs=yes >+ if test "$GCC" = yes ; then >+ output_verbose_link_cmd='echo' >+ archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' >+ module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' >+ # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's >+ archive_expsym_cmds='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}' >+ module_expsym_cmds='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}' >+ else >+ case $cc_basename in >+ xlc*) >+ output_verbose_link_cmd='echo' >+ archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' >+ module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' >+ # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's >+ archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' >+ module_expsym_cmds='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}' >+ ;; >+ *) >+ ld_shlibs=no >+ ;; >+ esac > fi > ;; > >@@ -8040,7 +8777,7 @@ > ;; > > # FreeBSD 3 and greater uses gcc -shared to do shared libraries. >- freebsd*) >+ freebsd* | kfreebsd*-gnu | dragonfly*) > archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' > hardcode_libdir_flag_spec='-R$libdir' > hardcode_direct=yes >@@ -8151,6 +8888,7 @@ > hardcode_shlibpath_var=no > if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then > archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' >+ archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' > hardcode_libdir_flag_spec='${wl}-rpath,$libdir' > export_dynamic_flag_spec='${wl}-E' > else >@@ -8196,7 +8934,7 @@ > allow_undefined_flag=' -expect_unresolved \*' > archive_cmds='$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' > archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ >- $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' >+ $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' > > # Both c and cxx compiler support -rpath directly > hardcode_libdir_flag_spec='-rpath $libdir' >@@ -8215,10 +8953,12 @@ > solaris*) > no_undefined_flag=' -z text' > if test "$GCC" = yes; then >+ wlarc='${wl}' > archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' > archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ > $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' > else >+ wlarc='' > archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' > archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ > $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' >@@ -8227,8 +8967,18 @@ > hardcode_shlibpath_var=no > case $host_os in > solaris2.[0-5] | solaris2.[0-5].*) ;; >- *) # Supported since Solaris 2.6 (maybe 2.5.1?) >- whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; >+ *) >+ # The compiler driver will combine linker options so we >+ # cannot just pass the convience library names through >+ # without $wl, iff we do not link with $LD. >+ # Luckily, gcc supports the same syntax we need for Sun Studio. >+ # Supported since Solaris 2.6 (maybe 2.5.1?) >+ case $wlarc in >+ '') >+ whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; >+ *) >+ whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; >+ esac ;; > esac > link_all_deplibs=yes > ;; >@@ -8371,107 +9121,41 @@ > deplibs= > wl=$lt_prog_compiler_wl > compiler_flags=-v >- linker_flags=-v >- verstring= >- output_objdir=. >- libname=conftest >- lt_save_allow_undefined_flag=$allow_undefined_flag >- allow_undefined_flag= >- if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 >- (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 >- ac_status=$? >- echo "$as_me:$LINENO: \$? = $ac_status" >&5 >- (exit $ac_status); } >- then >- archive_cmds_need_lc=no >- else >- archive_cmds_need_lc=yes >- fi >- allow_undefined_flag=$lt_save_allow_undefined_flag >- else >- cat conftest.err 1>&5 >- fi >- $rm conftest* >- echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 >-echo "${ECHO_T}$archive_cmds_need_lc" >&6 >- ;; >- esac >- fi >- ;; >-esac >- >-echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 >-echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 >-hardcode_action= >-if test -n "$hardcode_libdir_flag_spec" || \ >- test -n "$runpath_var " || \ >- test "X$hardcode_automatic"="Xyes" ; then >- >- # We can hardcode non-existant directories. >- if test "$hardcode_direct" != no && >- # If the only mechanism to avoid hardcoding is shlibpath_var, we >- # have to relink, otherwise we might link with an installed library >- # when we should be linking with a yet-to-be-installed one >- ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && >- test "$hardcode_minus_L" != no; then >- # Linking always hardcodes the temporary library directory. >- hardcode_action=relink >- else >- # We can link without hardcoding, and we can hardcode nonexisting dirs. >- hardcode_action=immediate >- fi >-else >- # We cannot hardcode anything, or else we can only hardcode existing >- # directories. >- hardcode_action=unsupported >-fi >-echo "$as_me:$LINENO: result: $hardcode_action" >&5 >-echo "${ECHO_T}$hardcode_action" >&6 >- >-if test "$hardcode_action" = relink; then >- # Fast installation is not supported >- enable_fast_install=no >-elif test "$shlibpath_overrides_runpath" = yes || >- test "$enable_shared" = no; then >- # Fast installation is not necessary >- enable_fast_install=needless >-fi >- >-striplib= >-old_striplib= >-echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 >-echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 >-if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then >- test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" >- test -z "$striplib" && striplib="$STRIP --strip-unneeded" >- echo "$as_me:$LINENO: result: yes" >&5 >-echo "${ECHO_T}yes" >&6 >-else >-# FIXME - insert some real tests, host_os isn't really good enough >- case $host_os in >- darwin*) >- if test -n "$STRIP" ; then >- striplib="$STRIP -x" >- echo "$as_me:$LINENO: result: yes" >&5 >-echo "${ECHO_T}yes" >&6 >- else >- echo "$as_me:$LINENO: result: no" >&5 >-echo "${ECHO_T}no" >&6 >-fi >- ;; >- *) >- echo "$as_me:$LINENO: result: no" >&5 >-echo "${ECHO_T}no" >&6 >- ;; >- esac >-fi >+ linker_flags=-v >+ verstring= >+ output_objdir=. >+ libname=conftest >+ lt_save_allow_undefined_flag=$allow_undefined_flag >+ allow_undefined_flag= >+ if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 >+ (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 >+ ac_status=$? >+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 >+ (exit $ac_status); } >+ then >+ archive_cmds_need_lc=no >+ else >+ archive_cmds_need_lc=yes >+ fi >+ allow_undefined_flag=$lt_save_allow_undefined_flag >+ else >+ cat conftest.err 1>&5 >+ fi >+ $rm conftest* >+ echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 >+echo "${ECHO_T}$archive_cmds_need_lc" >&6 >+ ;; >+ esac >+ fi >+ ;; >+esac > > echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 > echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 > library_names_spec= > libname_spec='lib$name' > soname_spec= >-shrext=".so" >+shrext_cmds=".so" > postinstall_cmds= > postuninstall_cmds= > finish_cmds= >@@ -8559,7 +9243,7 @@ > amigaos*) > library_names_spec='$libname.ixlibrary $libname.a' > # Create ${libname}_ixlibrary.a entries in /sys/libs. >- 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' >+ 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' > ;; > > beos*) >@@ -8568,7 +9252,7 @@ > shlibpath_var=LIBRARY_PATH > ;; > >-bsdi4*) >+bsdi[45]*) > version_type=linux > need_version=no > library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' >@@ -8584,7 +9268,7 @@ > > cygwin* | mingw* | pw32*) > version_type=windows >- shrext=".dll" >+ shrext_cmds=".dll" > need_version=no > need_lib_prefix=no > >@@ -8606,7 +9290,7 @@ > cygwin*) > # Cygwin DLLs use 'cyg' prefix rather than 'lib' > soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' >- sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib" >+ sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" > ;; > mingw*) > # MinGW DLLs use traditional 'lib' prefix >@@ -8626,11 +9310,35 @@ > ;; > pw32*) > # pw32 DLLs use 'pw' prefix rather than 'lib' >- library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' >+ library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' > ;; > esac > ;; > >+ linux*) >+ if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then >+ archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' >+ supports_anon_versioning=no >+ case `$LD -v 2>/dev/null` in >+ *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 >+ *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... >+ *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... >+ *\ 2.11.*) ;; # other 2.11 versions >+ *) supports_anon_versioning=yes ;; >+ esac >+ if test $supports_anon_versioning = yes; then >+ archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ >+cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ >+$echo "local: *; };" >> $output_objdir/$libname.ver~ >+ $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' >+ else >+ $archive_expsym_cmds="$archive_cmds" >+ fi >+ else >+ ld_shlibs=no >+ fi >+ ;; >+ > *) > library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' > ;; >@@ -8645,17 +9353,16 @@ > version_type=darwin > need_lib_prefix=no > need_version=no >- # FIXME: Relying on posixy $() will cause problems for >- # cross-compilation, but unfortunately the echo tests do not >- # yet detect zsh echo's removal of \ escapes. > library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' > soname_spec='${libname}${release}${major}$shared_ext' > shlibpath_overrides_runpath=yes > shlibpath_var=DYLD_LIBRARY_PATH >- shrext='$(test .$module = .yes && echo .so || echo .dylib)' >+ shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' > # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. >- if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then >- 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"` >+ if test "$GCC" = yes; then >+ 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"` >+ else >+ sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' > fi > sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' > ;; >@@ -8673,7 +9380,21 @@ > dynamic_linker=no > ;; > >-freebsd*) >+kfreebsd*-gnu) >+ version_type=linux >+ need_lib_prefix=no >+ need_version=no >+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' >+ soname_spec='${libname}${release}${shared_ext}$major' >+ shlibpath_var=LD_LIBRARY_PATH >+ shlibpath_overrides_runpath=no >+ hardcode_into_libs=yes >+ dynamic_linker='GNU ld.so' >+ ;; >+ >+freebsd* | dragonfly*) >+ # DragonFly does not have aout. When/if they implement a new >+ # versioning mechanism, adjust this. > objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` > version_type=freebsd-$objformat > case $version_type in >@@ -8692,7 +9413,7 @@ > freebsd2*) > shlibpath_overrides_runpath=yes > ;; >- freebsd3.01* | freebsdelf3.01*) >+ freebsd3.[01]* | freebsdelf3.[01]*) > shlibpath_overrides_runpath=yes > hardcode_into_libs=yes > ;; >@@ -8721,7 +9442,7 @@ > need_version=no > case "$host_cpu" in > ia64*) >- shrext='.so' >+ shrext_cmds='.so' > hardcode_into_libs=yes > dynamic_linker="$host_os dld.so" > shlibpath_var=LD_LIBRARY_PATH >@@ -8736,7 +9457,7 @@ > sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec > ;; > hppa*64*) >- shrext='.sl' >+ shrext_cmds='.sl' > hardcode_into_libs=yes > dynamic_linker="$host_os dld.sl" > shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH >@@ -8747,7 +9468,7 @@ > sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec > ;; > *) >- shrext='.sl' >+ shrext_cmds='.sl' > dynamic_linker="$host_os dld.sl" > shlibpath_var=SHLIB_PATH > shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH >@@ -8816,10 +9537,16 @@ > # before this can be enabled. > hardcode_into_libs=yes > >- case $LD in # libtool.m4 will add one of these switches to LD >- *"-m elf_x86_64"*|*"-m elf64ppc"*|*"-m elf64_s390"*|*"-m elf64_sparc"*) >- sys_lib_dlsearch_path_spec="/lib64 /usr/lib64" >- sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64" >+ # Append ld.so.conf contents to the search path >+ if test -f /etc/ld.so.conf; then >+ lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` >+ sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" >+ fi >+ >+ case $host_cpu:$lt_cv_cc_64bit_output in >+ powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes) >+ sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64" >+ sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64" > ;; > esac > >@@ -8830,6 +9557,42 @@ > # people can always --disable-shared, the test was removed, and we > # assume the GNU/Linux dynamic linker is in use. > dynamic_linker='GNU/Linux ld.so' >+ >+ # Find out which ABI we are using (multilib Linux x86_64 hack). >+ libsuff= >+ case "$host_cpu" in >+ x86_64*) >+ echo '#line 9565 "configure"' > conftest.$ac_ext >+ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 >+ (eval $ac_compile) 2>&5 >+ ac_status=$? >+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 >+ (exit $ac_status); }; then >+ case `/usr/bin/file conftest.$ac_objext` in >+ *64-bit*) >+ libsuff=64 >+ ;; >+ esac >+ fi >+ rm -rf conftest* >+ ;; >+ *) >+ ;; >+ esac >+ sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}" >+ sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" >+ ;; >+ >+knetbsd*-gnu) >+ version_type=linux >+ need_lib_prefix=no >+ need_version=no >+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' >+ soname_spec='${libname}${release}${shared_ext}$major' >+ shlibpath_var=LD_LIBRARY_PATH >+ shlibpath_overrides_runpath=no >+ hardcode_into_libs=yes >+ dynamic_linker='GNU ld.so' > ;; > > netbsd*) >@@ -8841,7 +9604,7 @@ > finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' > dynamic_linker='NetBSD (a.out) ld.so' > else >- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}' >+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' > soname_spec='${libname}${release}${shared_ext}$major' > dynamic_linker='NetBSD ld.elf_so' > fi >@@ -8857,7 +9620,7 @@ > shlibpath_overrides_runpath=yes > ;; > >-nto-qnx) >+nto-qnx*) > version_type=linux > need_lib_prefix=no > need_version=no >@@ -8870,7 +9633,11 @@ > openbsd*) > version_type=sunos > need_lib_prefix=no >- need_version=no >+ # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. >+ case $host_os in >+ openbsd3.3 | openbsd3.3.*) need_version=yes ;; >+ *) need_version=no ;; >+ esac > library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' > finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' > shlibpath_var=LD_LIBRARY_PATH >@@ -8890,7 +9657,7 @@ > > os2*) > libname_spec='$name' >- shrext=".dll" >+ shrext_cmds=".dll" > need_lib_prefix=no > library_names_spec='$libname${shared_ext} $libname.a' > dynamic_linker='OS/2 ld.exe' >@@ -8988,6 +9755,72 @@ > echo "${ECHO_T}$dynamic_linker" >&6 > test "$dynamic_linker" = no && can_build_shared=no > >+echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 >+echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 >+hardcode_action= >+if test -n "$hardcode_libdir_flag_spec" || \ >+ test -n "$runpath_var" || \ >+ test "X$hardcode_automatic" = "Xyes" ; then >+ >+ # We can hardcode non-existant directories. >+ if test "$hardcode_direct" != no && >+ # If the only mechanism to avoid hardcoding is shlibpath_var, we >+ # have to relink, otherwise we might link with an installed library >+ # when we should be linking with a yet-to-be-installed one >+ ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && >+ test "$hardcode_minus_L" != no; then >+ # Linking always hardcodes the temporary library directory. >+ hardcode_action=relink >+ else >+ # We can link without hardcoding, and we can hardcode nonexisting dirs. >+ hardcode_action=immediate >+ fi >+else >+ # We cannot hardcode anything, or else we can only hardcode existing >+ # directories. >+ hardcode_action=unsupported >+fi >+echo "$as_me:$LINENO: result: $hardcode_action" >&5 >+echo "${ECHO_T}$hardcode_action" >&6 >+ >+if test "$hardcode_action" = relink; then >+ # Fast installation is not supported >+ enable_fast_install=no >+elif test "$shlibpath_overrides_runpath" = yes || >+ test "$enable_shared" = no; then >+ # Fast installation is not necessary >+ enable_fast_install=needless >+fi >+ >+striplib= >+old_striplib= >+echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 >+echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 >+if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then >+ test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" >+ test -z "$striplib" && striplib="$STRIP --strip-unneeded" >+ echo "$as_me:$LINENO: result: yes" >&5 >+echo "${ECHO_T}yes" >&6 >+else >+# FIXME - insert some real tests, host_os isn't really good enough >+ case $host_os in >+ darwin*) >+ if test -n "$STRIP" ; then >+ striplib="$STRIP -x" >+ echo "$as_me:$LINENO: result: yes" >&5 >+echo "${ECHO_T}yes" >&6 >+ else >+ echo "$as_me:$LINENO: result: no" >&5 >+echo "${ECHO_T}no" >&6 >+fi >+ ;; >+ *) >+ echo "$as_me:$LINENO: result: no" >&5 >+echo "${ECHO_T}no" >&6 >+ ;; >+ esac >+fi >+ > if test "x$enable_dlopen" != xyes; then > enable_dlopen=unknown > enable_dlopen_self=unknown >@@ -9023,7 +9856,6 @@ > ac_check_lib_save_LIBS=$LIBS > LIBS="-ldl $LIBS" > cat >conftest.$ac_ext <<_ACEOF >-#line $LINENO "configure" > /* confdefs.h. */ > _ACEOF > cat confdefs.h >>conftest.$ac_ext >@@ -9047,11 +9879,21 @@ > _ACEOF > rm -f conftest.$ac_objext conftest$ac_exeext > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 >- (eval $ac_link) 2>&5 >+ (eval $ac_link) 2>conftest.er1 > ac_status=$? >+ grep -v '^ *+' conftest.er1 >conftest.err >+ rm -f conftest.er1 >+ cat conftest.err >&5 > echo "$as_me:$LINENO: \$? = $ac_status" >&5 > (exit $ac_status); } && >- { ac_try='test -s conftest$ac_exeext' >+ { ac_try='test -z "$ac_c_werror_flag" >+ || test ! -s conftest.err' >+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 >+ (eval $ac_try) 2>&5 >+ ac_status=$? >+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 >+ (exit $ac_status); }; } && >+ { ac_try='test -s conftest$ac_exeext' > { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 > (eval $ac_try) 2>&5 > ac_status=$? >@@ -9064,7 +9906,8 @@ > > ac_cv_lib_dl_dlopen=no > fi >-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext >+rm -f conftest.err conftest.$ac_objext \ >+ conftest$ac_exeext conftest.$ac_ext > LIBS=$ac_check_lib_save_LIBS > fi > echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 >@@ -9088,21 +9931,28 @@ > echo $ECHO_N "(cached) $ECHO_C" >&6 > else > cat >conftest.$ac_ext <<_ACEOF >-#line $LINENO "configure" > /* confdefs.h. */ > _ACEOF > cat confdefs.h >>conftest.$ac_ext > cat >>conftest.$ac_ext <<_ACEOF > /* end confdefs.h. */ >+/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. >+ For example, HP-UX 11i <limits.h> declares gettimeofday. */ >+#define shl_load innocuous_shl_load >+ > /* System header to define __stub macros and hopefully few prototypes, > which can conflict with char shl_load (); below. > Prefer <limits.h> to <assert.h> if __STDC__ is defined, since > <limits.h> exists even on freestanding compilers. */ >+ > #ifdef __STDC__ > # include <limits.h> > #else > # include <assert.h> > #endif >+ >+#undef shl_load >+ > /* Override any gcc2 internal prototype to avoid an error. */ > #ifdef __cplusplus > extern "C" >@@ -9133,11 +9983,21 @@ > _ACEOF > rm -f conftest.$ac_objext conftest$ac_exeext > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 >- (eval $ac_link) 2>&5 >+ (eval $ac_link) 2>conftest.er1 > ac_status=$? >+ grep -v '^ *+' conftest.er1 >conftest.err >+ rm -f conftest.er1 >+ cat conftest.err >&5 > echo "$as_me:$LINENO: \$? = $ac_status" >&5 > (exit $ac_status); } && >- { ac_try='test -s conftest$ac_exeext' >+ { ac_try='test -z "$ac_c_werror_flag" >+ || test ! -s conftest.err' >+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 >+ (eval $ac_try) 2>&5 >+ ac_status=$? >+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 >+ (exit $ac_status); }; } && >+ { ac_try='test -s conftest$ac_exeext' > { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 > (eval $ac_try) 2>&5 > ac_status=$? >@@ -9150,7 +10010,8 @@ > > ac_cv_func_shl_load=no > fi >-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext >+rm -f conftest.err conftest.$ac_objext \ >+ conftest$ac_exeext conftest.$ac_ext > fi > echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 > echo "${ECHO_T}$ac_cv_func_shl_load" >&6 >@@ -9165,7 +10026,6 @@ > ac_check_lib_save_LIBS=$LIBS > LIBS="-ldld $LIBS" > cat >conftest.$ac_ext <<_ACEOF >-#line $LINENO "configure" > /* confdefs.h. */ > _ACEOF > cat confdefs.h >>conftest.$ac_ext >@@ -9189,11 +10049,21 @@ > _ACEOF > rm -f conftest.$ac_objext conftest$ac_exeext > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 >- (eval $ac_link) 2>&5 >+ (eval $ac_link) 2>conftest.er1 > ac_status=$? >+ grep -v '^ *+' conftest.er1 >conftest.err >+ rm -f conftest.er1 >+ cat conftest.err >&5 > echo "$as_me:$LINENO: \$? = $ac_status" >&5 > (exit $ac_status); } && >- { ac_try='test -s conftest$ac_exeext' >+ { ac_try='test -z "$ac_c_werror_flag" >+ || test ! -s conftest.err' >+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 >+ (eval $ac_try) 2>&5 >+ ac_status=$? >+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 >+ (exit $ac_status); }; } && >+ { ac_try='test -s conftest$ac_exeext' > { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 > (eval $ac_try) 2>&5 > ac_status=$? >@@ -9206,7 +10076,8 @@ > > ac_cv_lib_dld_shl_load=no > fi >-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext >+rm -f conftest.err conftest.$ac_objext \ >+ conftest$ac_exeext conftest.$ac_ext > LIBS=$ac_check_lib_save_LIBS > fi > echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 >@@ -9220,21 +10091,28 @@ > echo $ECHO_N "(cached) $ECHO_C" >&6 > else > cat >conftest.$ac_ext <<_ACEOF >-#line $LINENO "configure" > /* confdefs.h. */ > _ACEOF > cat confdefs.h >>conftest.$ac_ext > cat >>conftest.$ac_ext <<_ACEOF > /* end confdefs.h. */ >+/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. >+ For example, HP-UX 11i <limits.h> declares gettimeofday. */ >+#define dlopen innocuous_dlopen >+ > /* System header to define __stub macros and hopefully few prototypes, > which can conflict with char dlopen (); below. > Prefer <limits.h> to <assert.h> if __STDC__ is defined, since > <limits.h> exists even on freestanding compilers. */ >+ > #ifdef __STDC__ > # include <limits.h> > #else > # include <assert.h> > #endif >+ >+#undef dlopen >+ > /* Override any gcc2 internal prototype to avoid an error. */ > #ifdef __cplusplus > extern "C" >@@ -9265,11 +10143,21 @@ > _ACEOF > rm -f conftest.$ac_objext conftest$ac_exeext > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 >- (eval $ac_link) 2>&5 >+ (eval $ac_link) 2>conftest.er1 > ac_status=$? >+ grep -v '^ *+' conftest.er1 >conftest.err >+ rm -f conftest.er1 >+ cat conftest.err >&5 > echo "$as_me:$LINENO: \$? = $ac_status" >&5 > (exit $ac_status); } && >- { ac_try='test -s conftest$ac_exeext' >+ { ac_try='test -z "$ac_c_werror_flag" >+ || test ! -s conftest.err' >+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 >+ (eval $ac_try) 2>&5 >+ ac_status=$? >+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 >+ (exit $ac_status); }; } && >+ { ac_try='test -s conftest$ac_exeext' > { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 > (eval $ac_try) 2>&5 > ac_status=$? >@@ -9282,7 +10170,8 @@ > > ac_cv_func_dlopen=no > fi >-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext >+rm -f conftest.err conftest.$ac_objext \ >+ conftest$ac_exeext conftest.$ac_ext > fi > echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 > echo "${ECHO_T}$ac_cv_func_dlopen" >&6 >@@ -9297,7 +10186,6 @@ > ac_check_lib_save_LIBS=$LIBS > LIBS="-ldl $LIBS" > cat >conftest.$ac_ext <<_ACEOF >-#line $LINENO "configure" > /* confdefs.h. */ > _ACEOF > cat confdefs.h >>conftest.$ac_ext >@@ -9321,11 +10209,21 @@ > _ACEOF > rm -f conftest.$ac_objext conftest$ac_exeext > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 >- (eval $ac_link) 2>&5 >+ (eval $ac_link) 2>conftest.er1 > ac_status=$? >+ grep -v '^ *+' conftest.er1 >conftest.err >+ rm -f conftest.er1 >+ cat conftest.err >&5 > echo "$as_me:$LINENO: \$? = $ac_status" >&5 > (exit $ac_status); } && >- { ac_try='test -s conftest$ac_exeext' >+ { ac_try='test -z "$ac_c_werror_flag" >+ || test ! -s conftest.err' >+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 >+ (eval $ac_try) 2>&5 >+ ac_status=$? >+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 >+ (exit $ac_status); }; } && >+ { ac_try='test -s conftest$ac_exeext' > { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 > (eval $ac_try) 2>&5 > ac_status=$? >@@ -9338,7 +10236,8 @@ > > ac_cv_lib_dl_dlopen=no > fi >-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext >+rm -f conftest.err conftest.$ac_objext \ >+ conftest$ac_exeext conftest.$ac_ext > LIBS=$ac_check_lib_save_LIBS > fi > echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 >@@ -9354,7 +10253,6 @@ > ac_check_lib_save_LIBS=$LIBS > LIBS="-lsvld $LIBS" > cat >conftest.$ac_ext <<_ACEOF >-#line $LINENO "configure" > /* confdefs.h. */ > _ACEOF > cat confdefs.h >>conftest.$ac_ext >@@ -9378,11 +10276,21 @@ > _ACEOF > rm -f conftest.$ac_objext conftest$ac_exeext > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 >- (eval $ac_link) 2>&5 >+ (eval $ac_link) 2>conftest.er1 > ac_status=$? >+ grep -v '^ *+' conftest.er1 >conftest.err >+ rm -f conftest.er1 >+ cat conftest.err >&5 > echo "$as_me:$LINENO: \$? = $ac_status" >&5 > (exit $ac_status); } && >- { ac_try='test -s conftest$ac_exeext' >+ { ac_try='test -z "$ac_c_werror_flag" >+ || test ! -s conftest.err' >+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 >+ (eval $ac_try) 2>&5 >+ ac_status=$? >+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 >+ (exit $ac_status); }; } && >+ { ac_try='test -s conftest$ac_exeext' > { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 > (eval $ac_try) 2>&5 > ac_status=$? >@@ -9395,7 +10303,8 @@ > > ac_cv_lib_svld_dlopen=no > fi >-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext >+rm -f conftest.err conftest.$ac_objext \ >+ conftest$ac_exeext conftest.$ac_ext > LIBS=$ac_check_lib_save_LIBS > fi > echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 >@@ -9411,7 +10320,6 @@ > ac_check_lib_save_LIBS=$LIBS > LIBS="-ldld $LIBS" > cat >conftest.$ac_ext <<_ACEOF >-#line $LINENO "configure" > /* confdefs.h. */ > _ACEOF > cat confdefs.h >>conftest.$ac_ext >@@ -9435,11 +10343,21 @@ > _ACEOF > rm -f conftest.$ac_objext conftest$ac_exeext > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 >- (eval $ac_link) 2>&5 >+ (eval $ac_link) 2>conftest.er1 > ac_status=$? >+ grep -v '^ *+' conftest.er1 >conftest.err >+ rm -f conftest.er1 >+ cat conftest.err >&5 > echo "$as_me:$LINENO: \$? = $ac_status" >&5 > (exit $ac_status); } && >- { ac_try='test -s conftest$ac_exeext' >+ { ac_try='test -z "$ac_c_werror_flag" >+ || test ! -s conftest.err' >+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 >+ (eval $ac_try) 2>&5 >+ ac_status=$? >+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 >+ (exit $ac_status); }; } && >+ { ac_try='test -s conftest$ac_exeext' > { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 > (eval $ac_try) 2>&5 > ac_status=$? >@@ -9452,7 +10370,8 @@ > > ac_cv_lib_dld_dld_link=no > fi >-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext >+rm -f conftest.err conftest.$ac_objext \ >+ conftest$ac_exeext conftest.$ac_ext > LIBS=$ac_check_lib_save_LIBS > fi > echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 >@@ -9507,7 +10426,7 @@ > lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 > lt_status=$lt_dlunknown > cat > conftest.$ac_ext <<EOF >-#line 9510 "configure" >+#line 10429 "configure" > #include "confdefs.h" > > #if HAVE_DLFCN_H >@@ -9605,7 +10524,7 @@ > lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 > lt_status=$lt_dlunknown > cat > conftest.$ac_ext <<EOF >-#line 9608 "configure" >+#line 10527 "configure" > #include "confdefs.h" > > #if HAVE_DLFCN_H >@@ -9730,38 +10649,10 @@ > fi > ;; > >-aix4*) >+aix4* | aix5*) > if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then > test "$enable_shared" = yes && enable_static=no > fi >- ;; >- darwin* | rhapsody*) >- if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then >- archive_cmds_need_lc=no >- case "$host_os" in >- rhapsody* | darwin1.[012]) >- allow_undefined_flag='-undefined suppress' >- ;; >- *) # Darwin 1.3 on >- test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress' >- ;; >- esac >- # FIXME: Relying on posixy $() will cause problems for >- # cross-compilation, but unfortunately the echo tests do not >- # yet detect zsh echo's removal of \ escapes. Also zsh mangles >- # `"' quotes if we put them in here... so don't! >- output_verbose_link_cmd='echo' >- archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring' >- module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags' >- # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's >- archive_expsym_cmds='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}' >- module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' >- hardcode_direct=no >- hardcode_automatic=yes >- hardcode_shlibpath_var=unsupported >- whole_archive_flag_spec='-all_load $convenience' >- link_all_deplibs=yes >- fi > ;; > esac > echo "$as_me:$LINENO: result: $enable_shared" >&5 >@@ -9787,7 +10678,8 @@ > # Now quote all the things that may contain metacharacters while being > # careful not to overquote the AC_SUBSTed values. We take copies of the > # variables and quote the copies for generation of the libtool script. >- for var in echo old_CC old_CFLAGS AR AR_FLAGS AS EGREP RANLIB LN_S LTCC NM SED SHELL \ >+ for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ >+ SED SHELL STRIP \ > libname_spec library_names_spec soname_spec extract_expsyms_cmds \ > old_striplib striplib file_magic_cmd finish_cmds finish_eval \ > deplibs_check_method reload_flag reload_cmds need_locks \ >@@ -9890,7 +10782,7 @@ > # > # You should have received a copy of the GNU General Public License > # along with this program; if not, write to the Free Software >-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. >+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. > # > # As a special exception to the GNU General Public License, if you > # distribute this file as part of a program that contains a >@@ -9901,11 +10793,11 @@ > SED=$lt_SED > > # Sed that helps us avoid accidentally triggering echo(1) options like -n. >-Xsed="$SED -e s/^X//" >+Xsed="$SED -e 1s/^X//" > > # The HP-UX ksh and POSIX shell print the target directory to stdout > # if CDPATH is set. >-if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi >+(unset CDPATH) >/dev/null 2>&1 && unset CDPATH > > # The names of the tagged configurations supported by this script. > available_tags= >@@ -9935,6 +10827,12 @@ > # The host system. > host_alias=$host_alias > host=$host >+host_os=$host_os >+ >+# The build system. >+build_alias=$build_alias >+build=$build >+build_os=$build_os > > # An echo program that does not interpret backslashes. > echo=$lt_echo >@@ -9965,7 +10863,7 @@ > NM=$lt_NM > > # A symbol stripping program >-STRIP=$STRIP >+STRIP=$lt_STRIP > > # Used to examine libraries when file_magic_cmd begins "file" > MAGIC_CMD=$MAGIC_CMD >@@ -9977,7 +10875,7 @@ > OBJDUMP="$OBJDUMP" > > # Used on cygwin: assembler. >-AS=$lt_AS >+AS="$AS" > > # The name of the directory that contains temporary libtool files. > objdir=$objdir >@@ -9996,7 +10894,7 @@ > libext="$libext" > > # Shared library suffix (normally ".so"). >-shrext='$shrext' >+shrext_cmds='$shrext_cmds' > > # Executable file suffix (normally ""). > exeext="$exeext" >@@ -10011,7 +10909,7 @@ > # Does compiler simultaneously support -c and -o options? > compiler_c_o=$lt_lt_cv_prog_compiler_c_o > >-# Must we lock files when doing compilation ? >+# Must we lock files when doing compilation? > need_locks=$lt_need_locks > > # Do we need the lib prefix for modules? >@@ -10238,7 +11136,10 @@ > # If there is no Makefile yet, we rely on a make rule to execute > # `config.status --recheck' to rerun these tests and create the > # libtool script then. >- test -f Makefile && make "$ltmain" >+ ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` >+ if test -f "$ltmain_in"; then >+ test -f Makefile && make "$ltmain" >+ fi > fi > > >@@ -10303,7 +11204,9 @@ > > case $tagname in > CXX) >- if test -n "$CXX" && test "X$CXX" != "Xno"; then >+ if test -n "$CXX" && ( test "X$CXX" != "Xno" && >+ ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || >+ (test "X$CXX" != "Xg++"))) ; then > ac_ext=cc > ac_cpp='$CXXCPP $CPPFLAGS' > ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' >@@ -10361,6 +11264,20 @@ > compiler=$CC > > >+# save warnings/boilerplate of simple test code >+ac_outfile=conftest.$ac_objext >+printf "$lt_simple_compile_test_code" >conftest.$ac_ext >+eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err >+_lt_compiler_boilerplate=`cat conftest.err` >+$rm conftest* >+ >+ac_outfile=conftest.$ac_objext >+printf "$lt_simple_link_test_code" >conftest.$ac_ext >+eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err >+_lt_linker_boilerplate=`cat conftest.err` >+$rm conftest* >+ >+ > # Allow CC to be a program name with arguments. > lt_save_CC=$CC > lt_save_LD=$LD >@@ -10382,7 +11299,16 @@ > CC=${CXX-"c++"} > compiler=$CC > compiler_CXX=$CC >-cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` >+for cc_temp in $compiler""; do >+ case $cc_temp in >+ compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; >+ distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; >+ \-*) ;; >+ *) break;; >+ esac >+done >+cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` >+ > > # We don't want -fno-exception wen compiling C++ code, so set the > # no_builtin_flag separately >@@ -10419,7 +11345,7 @@ > # Accept absolute paths. > [\\/]* | ?:[\\/]*) > re_direlt='/[^/][^/]*/\.\./' >- # Canonicalize the path of ld >+ # Canonicalize the pathname of ld > ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` > while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do > ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` >@@ -10533,7 +11459,7 @@ > # linker, instead of GNU ld. If possible, this setting should > # overridden to take advantage of the native linker features on > # the platform it is being used on. >- archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' >+ archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' > fi > > # Commands to make compiler produce verbose output that lists >@@ -10596,7 +11522,7 @@ > link_all_deplibs_CXX=yes > > if test "$GXX" = yes; then >- case $host_os in aix4.012|aix4.012.*) >+ case $host_os in aix4.[012]|aix4.[012].*) > # We only want to do this on AIX 4.2 and lower, the check > # below for broken collect2 doesn't work under 4.3+ > collect2name=`${CC} -print-prog-name=collect2` >@@ -10617,6 +11543,9 @@ > fi > esac > shared_flag='-shared' >+ if test "$aix_use_runtimelinking" = yes; then >+ shared_flag="$shared_flag "'${wl}-G' >+ fi > else > # not using gcc > if test "$host_cpu" = ia64; then >@@ -10641,7 +11570,6 @@ > allow_undefined_flag_CXX='-berok' > # Determine the default libpath from the value encoded in an empty executable. > cat >conftest.$ac_ext <<_ACEOF >-#line $LINENO "configure" > /* confdefs.h. */ > _ACEOF > cat confdefs.h >>conftest.$ac_ext >@@ -10658,11 +11586,21 @@ > _ACEOF > rm -f conftest.$ac_objext conftest$ac_exeext > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 >- (eval $ac_link) 2>&5 >+ (eval $ac_link) 2>conftest.er1 > ac_status=$? >+ grep -v '^ *+' conftest.er1 >conftest.err >+ rm -f conftest.er1 >+ cat conftest.err >&5 > echo "$as_me:$LINENO: \$? = $ac_status" >&5 > (exit $ac_status); } && >- { ac_try='test -s conftest$ac_exeext' >+ { ac_try='test -z "$ac_cxx_werror_flag" >+ || test ! -s conftest.err' >+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 >+ (eval $ac_try) 2>&5 >+ ac_status=$? >+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 >+ (exit $ac_status); }; } && >+ { ac_try='test -s conftest$ac_exeext' > { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 > (eval $ac_try) 2>&5 > ac_status=$? >@@ -10679,7 +11617,8 @@ > sed 's/^/| /' conftest.$ac_ext >&5 > > fi >-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext >+rm -f conftest.err conftest.$ac_objext \ >+ conftest$ac_exeext conftest.$ac_ext > if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi > > hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" >@@ -10693,7 +11632,6 @@ > else > # Determine the default libpath from the value encoded in an empty executable. > cat >conftest.$ac_ext <<_ACEOF >-#line $LINENO "configure" > /* confdefs.h. */ > _ACEOF > cat confdefs.h >>conftest.$ac_ext >@@ -10710,11 +11648,21 @@ > _ACEOF > rm -f conftest.$ac_objext conftest$ac_exeext > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 >- (eval $ac_link) 2>&5 >+ (eval $ac_link) 2>conftest.er1 > ac_status=$? >+ grep -v '^ *+' conftest.er1 >conftest.err >+ rm -f conftest.er1 >+ cat conftest.err >&5 > echo "$as_me:$LINENO: \$? = $ac_status" >&5 > (exit $ac_status); } && >- { ac_try='test -s conftest$ac_exeext' >+ { ac_try='test -z "$ac_cxx_werror_flag" >+ || test ! -s conftest.err' >+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 >+ (eval $ac_try) 2>&5 >+ ac_status=$? >+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 >+ (exit $ac_status); }; } && >+ { ac_try='test -s conftest$ac_exeext' > { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 > (eval $ac_try) 2>&5 > ac_status=$? >@@ -10731,7 +11679,8 @@ > sed 's/^/| /' conftest.$ac_ext >&5 > > fi >-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext >+rm -f conftest.err conftest.$ac_objext \ >+ conftest$ac_exeext conftest.$ac_ext > if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi > > hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" >@@ -10758,6 +11707,7 @@ > esac > ;; > >+ > cygwin* | mingw* | pw32*) > # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, > # as there is no search path for DLLs. >@@ -10781,52 +11731,76 @@ > ld_shlibs_CXX=no > fi > ;; >- >- darwin* | rhapsody*) >- if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then >- archive_cmds_need_lc_CXX=no >- case "$host_os" in >- rhapsody* | darwin1.[012]) >- allow_undefined_flag_CXX='-undefined suppress' >- ;; >- *) # Darwin 1.3 on >- test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress' >- ;; >- esac >- lt_int_apple_cc_single_mod=no >- output_verbose_link_cmd='echo' >- if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then >- lt_int_apple_cc_single_mod=yes >- fi >- if test "X$lt_int_apple_cc_single_mod" = Xyes ; then >- archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' >- else >- archive_cmds_CXX='$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' >+ darwin* | rhapsody*) >+ case "$host_os" in >+ rhapsody* | darwin1.[012]) >+ allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' >+ ;; >+ *) # Darwin 1.3 on >+ if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then >+ allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' >+ else >+ case ${MACOSX_DEPLOYMENT_TARGET} in >+ 10.[012]) >+ allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' >+ ;; >+ 10.*) >+ allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' >+ ;; >+ esac >+ fi >+ ;; >+ esac >+ archive_cmds_need_lc_CXX=no >+ hardcode_direct_CXX=no >+ hardcode_automatic_CXX=yes >+ hardcode_shlibpath_var_CXX=unsupported >+ whole_archive_flag_spec_CXX='' >+ link_all_deplibs_CXX=yes >+ >+ if test "$GXX" = yes ; then >+ lt_int_apple_cc_single_mod=no >+ output_verbose_link_cmd='echo' >+ if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then >+ lt_int_apple_cc_single_mod=yes > fi >- module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags' >- >- # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's > if test "X$lt_int_apple_cc_single_mod" = Xyes ; then >- archive_expsym_cmds_CXX='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}' >+ archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' > else >- archive_expsym_cmds_CXX='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}' >- fi >- module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' >- hardcode_direct_CXX=no >- hardcode_automatic_CXX=yes >- hardcode_shlibpath_var_CXX=unsupported >- whole_archive_flag_spec_CXX='-all_load $convenience' >- link_all_deplibs_CXX=yes >- fi >- ;; >+ archive_cmds_CXX='$CC -r -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' >+ fi >+ module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' >+ # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's >+ if test "X$lt_int_apple_cc_single_mod" = Xyes ; then >+ archive_expsym_cmds_CXX='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}' >+ else >+ archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -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}' >+ fi >+ module_expsym_cmds_CXX='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}' >+ else >+ case $cc_basename in >+ xlc*) >+ output_verbose_link_cmd='echo' >+ archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' >+ module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' >+ # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's >+ archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' >+ module_expsym_cmds_CXX='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}' >+ ;; >+ *) >+ ld_shlibs_CXX=no >+ ;; >+ esac >+ fi >+ ;; > > dgux*) > case $cc_basename in >- ec++) >+ ec++*) > # FIXME: insert proper C++ library support > ld_shlibs_CXX=no > ;; >- ghcx) >+ ghcx*) > # Green Hills C++ Compiler > # FIXME: insert proper C++ library support > ld_shlibs_CXX=no >@@ -10837,14 +11811,14 @@ > ;; > esac > ;; >- freebsd12*) >+ freebsd[12]*) > # C++ shared libraries reported to be fairly broken before switch to ELF > ld_shlibs_CXX=no > ;; > freebsd-elf*) > archive_cmds_need_lc_CXX=no > ;; >- freebsd*) >+ freebsd* | kfreebsd*-gnu | dragonfly*) > # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF > # conventions > ld_shlibs_CXX=yes >@@ -10861,11 +11835,11 @@ > # location of the library. > > case $cc_basename in >- CC) >+ CC*) > # FIXME: insert proper C++ library support > ld_shlibs_CXX=no > ;; >- aCC) >+ aCC*) > archive_cmds_CXX='$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' > # Commands to make compiler produce verbose output that lists > # what "hidden" libraries, object files and flags are used when >@@ -10875,7 +11849,7 @@ > # explicitly linking system object files so we need to strip them > # from the output so that they don't get included in the library > # dependencies. >- 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' >+ 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' > ;; > *) > if test "$GXX" = yes; then >@@ -10926,11 +11900,11 @@ > esac > > case $cc_basename in >- CC) >+ CC*) > # FIXME: insert proper C++ library support > ld_shlibs_CXX=no > ;; >- aCC) >+ aCC*) > case "$host_cpu" in > hppa*64*|ia64*) > archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' >@@ -10970,9 +11944,9 @@ > ;; > irix5* | irix6*) > case $cc_basename in >- CC) >+ CC*) > # SGI C++ >- archive_cmds_CXX='$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' >+ archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' > > # Archives containing C++ object files must be created using > # "CC -ar", where "CC" is the IRIX C++ compiler. This is >@@ -10983,7 +11957,7 @@ > *) > if test "$GXX" = yes; then > if test "$with_gnu_ld" = no; then >- archive_cmds_CXX='$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' >+ archive_cmds_CXX='$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}${output_objdir}/so_locations -o $lib' > else > archive_cmds_CXX='$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' > fi >@@ -10996,7 +11970,7 @@ > ;; > linux*) > case $cc_basename in >- KCC) >+ KCC*) > # Kuck and Associates, Inc. (KAI) C++ Compiler > > # KCC will only create a shared library if the output file >@@ -11021,17 +11995,41 @@ > # "CC -Bstatic", where "CC" is the KAI C++ compiler. > old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' > ;; >- icpc) >+ icpc*) > # Intel C++ > with_gnu_ld=yes >+ # version 8.0 and above of icpc choke on multiply defined symbols >+ # if we add $predep_objects and $postdep_objects, however 7.1 and >+ # earlier do not add the objects themselves. >+ case `$CC -V 2>&1` in >+ *"Version 7."*) >+ archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' >+ archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' >+ ;; >+ *) # Version 8.0 or newer >+ tmp_idyn= >+ case $host_cpu in >+ ia64*) tmp_idyn=' -i_dynamic';; >+ esac >+ archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' >+ archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' >+ ;; >+ esac > archive_cmds_need_lc_CXX=no >- archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' >- archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' > hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' > export_dynamic_flag_spec_CXX='${wl}--export-dynamic' > whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' > ;; >- cxx) >+ pgCC*) >+ # Portland Group C++ compiler >+ archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' >+ archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' >+ >+ hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' >+ export_dynamic_flag_spec_CXX='${wl}--export-dynamic' >+ whole_archive_flag_spec_CXX='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' >+ ;; >+ cxx*) > # Compaq C++ > archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' > archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' >@@ -11062,7 +12060,7 @@ > ;; > mvs*) > case $cc_basename in >- cxx) >+ cxx*) > # FIXME: insert proper C++ library support > ld_shlibs_CXX=no > ;; >@@ -11083,9 +12081,25 @@ > # Workaround some broken pre-1.5 toolchains > output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' > ;; >+ openbsd2*) >+ # C++ shared libraries are fairly broken >+ ld_shlibs_CXX=no >+ ;; >+ openbsd*) >+ hardcode_direct_CXX=yes >+ hardcode_shlibpath_var_CXX=no >+ archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' >+ hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' >+ if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then >+ archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' >+ export_dynamic_flag_spec_CXX='${wl}-E' >+ whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' >+ fi >+ output_verbose_link_cmd='echo' >+ ;; > osf3*) > case $cc_basename in >- KCC) >+ KCC*) > # Kuck and Associates, Inc. (KAI) C++ Compiler > > # KCC will only create a shared library if the output file >@@ -11101,14 +12115,14 @@ > old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' > > ;; >- RCC) >+ RCC*) > # Rational C++ 2.4.1 > # FIXME: insert proper C++ library support > ld_shlibs_CXX=no > ;; >- cxx) >+ cxx*) > allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' >- archive_cmds_CXX='$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' >+ archive_cmds_CXX='$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 ${output_objdir}/so_locations -o $lib' > > hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' > hardcode_libdir_separator_CXX=: >@@ -11126,7 +12140,7 @@ > *) > if test "$GXX" = yes && test "$with_gnu_ld" = no; then > allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' >- archive_cmds_CXX='$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' >+ archive_cmds_CXX='$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}${output_objdir}/so_locations -o $lib' > > hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' > hardcode_libdir_separator_CXX=: >@@ -11145,7 +12159,7 @@ > ;; > osf4* | osf5*) > case $cc_basename in >- KCC) >+ KCC*) > # Kuck and Associates, Inc. (KAI) C++ Compiler > > # KCC will only create a shared library if the output file >@@ -11160,17 +12174,17 @@ > # the KAI C++ compiler. > old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' > ;; >- RCC) >+ RCC*) > # Rational C++ 2.4.1 > # FIXME: insert proper C++ library support > ld_shlibs_CXX=no > ;; >- cxx) >+ cxx*) > allow_undefined_flag_CXX=' -expect_unresolved \*' >- archive_cmds_CXX='$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' >+ archive_cmds_CXX='$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 ${output_objdir}/so_locations -o $lib' > archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ > echo "-hidden">> $lib.exp~ >- $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~ >+ $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 ${output_objdir}/so_locations -o $lib~ > $rm $lib.exp' > > hardcode_libdir_flag_spec_CXX='-rpath $libdir' >@@ -11189,7 +12203,7 @@ > *) > if test "$GXX" = yes && test "$with_gnu_ld" = no; then > allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' >- archive_cmds_CXX='$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' >+ archive_cmds_CXX='$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}${output_objdir}/so_locations -o $lib' > > hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' > hardcode_libdir_separator_CXX=: >@@ -11213,7 +12227,7 @@ > sco*) > archive_cmds_need_lc_CXX=no > case $cc_basename in >- CC) >+ CC*) > # FIXME: insert proper C++ library support > ld_shlibs_CXX=no > ;; >@@ -11225,12 +12239,12 @@ > ;; > sunos4*) > case $cc_basename in >- CC) >+ CC*) > # Sun C++ 4.x > # FIXME: insert proper C++ library support > ld_shlibs_CXX=no > ;; >- lcc) >+ lcc*) > # Lucid > # FIXME: insert proper C++ library support > ld_shlibs_CXX=no >@@ -11243,7 +12257,7 @@ > ;; > solaris*) > case $cc_basename in >- CC) >+ CC*) > # Sun C++ 4.2, 5.x and Centerline C++ > no_undefined_flag_CXX=' -zdefs' > archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' >@@ -11253,13 +12267,17 @@ > hardcode_libdir_flag_spec_CXX='-R$libdir' > hardcode_shlibpath_var_CXX=no > case $host_os in >- solaris2.0-5 | solaris2.0-5.*) ;; >+ solaris2.[0-5] | solaris2.[0-5].*) ;; > *) > # The C++ compiler is used as linker so we must use $wl > # flag to pass the commands to the underlying system >- # linker. >+ # linker. We must also pass each convience library through >+ # to the system linker between allextract/defaultextract. >+ # The C++ compiler will combine linker options so we >+ # cannot just pass the convience library names through >+ # without $wl. > # Supported since Solaris 2.6 (maybe 2.5.1?) >- whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' >+ whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' > ;; > esac > link_all_deplibs_CXX=yes >@@ -11280,7 +12298,7 @@ > # in the archive. > old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' > ;; >- gcx) >+ gcx*) > # Green Hills C++ Compiler > archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' > >@@ -11323,7 +12341,7 @@ > ;; > tandem*) > case $cc_basename in >- NCC) >+ NCC*) > # NonStop-UX NCC 3.20 > # FIXME: insert proper C++ library support > ld_shlibs_CXX=no >@@ -11532,18 +12550,28 @@ > ;; > chorus*) > case $cc_basename in >- cxch68) >+ cxch68*) > # Green Hills C++ Compiler > # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--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" > ;; > esac > ;; >+ darwin*) >+ # PIC is the default on this platform >+ # Common symbols not allowed in MH_DYLIB files >+ case $cc_basename in >+ xlc*) >+ lt_prog_compiler_pic_CXX='-qnocommon' >+ lt_prog_compiler_wl_CXX='-Wl,' >+ ;; >+ esac >+ ;; > dgux*) > case $cc_basename in >- ec++) >+ ec++*) > lt_prog_compiler_pic_CXX='-KPIC' > ;; >- ghcx) >+ ghcx*) > # Green Hills C++ Compiler > lt_prog_compiler_pic_CXX='-pic' > ;; >@@ -11551,19 +12579,19 @@ > ;; > esac > ;; >- freebsd*) >+ freebsd* | kfreebsd*-gnu | dragonfly*) > # FreeBSD uses GNU C++ > ;; > hpux9* | hpux10* | hpux11*) > case $cc_basename in >- CC) >+ CC*) > lt_prog_compiler_wl_CXX='-Wl,' > lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" > if test "$host_cpu" != ia64; then > lt_prog_compiler_pic_CXX='+Z' > fi > ;; >- aCC) >+ aCC*) > lt_prog_compiler_wl_CXX='-Wl,' > lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" > case "$host_cpu" in >@@ -11581,7 +12609,7 @@ > ;; > irix5* | irix6* | nonstopux*) > case $cc_basename in >- CC) >+ CC*) > lt_prog_compiler_wl_CXX='-Wl,' > lt_prog_compiler_static_CXX='-non_shared' > # CC pic flag -KPIC is the default. >@@ -11592,18 +12620,24 @@ > ;; > linux*) > case $cc_basename in >- KCC) >+ KCC*) > # KAI C++ Compiler > lt_prog_compiler_wl_CXX='--backend -Wl,' > lt_prog_compiler_pic_CXX='-fPIC' > ;; >- icpc) >+ icpc* | ecpc*) > # Intel C++ > lt_prog_compiler_wl_CXX='-Wl,' > lt_prog_compiler_pic_CXX='-KPIC' > lt_prog_compiler_static_CXX='-static' > ;; >- cxx) >+ pgCC*) >+ # Portland Group C++ compiler. >+ lt_prog_compiler_wl_CXX='-Wl,' >+ lt_prog_compiler_pic_CXX='-fpic' >+ lt_prog_compiler_static_CXX='-static' >+ ;; >+ cxx*) > # Compaq C++ > # Make sure the PIC flag is empty. It appears that all Alpha > # Linux and Compaq Tru64 Unix objects are PIC. >@@ -11620,7 +12654,7 @@ > ;; > mvs*) > case $cc_basename in >- cxx) >+ cxx*) > lt_prog_compiler_pic_CXX='-W c,exportall' > ;; > *) >@@ -11631,14 +12665,14 @@ > ;; > osf3* | osf4* | osf5*) > case $cc_basename in >- KCC) >+ KCC*) > lt_prog_compiler_wl_CXX='--backend -Wl,' > ;; >- RCC) >+ RCC*) > # Rational C++ 2.4.1 > lt_prog_compiler_pic_CXX='-pic' > ;; >- cxx) >+ cxx*) > # Digital/Compaq C++ > lt_prog_compiler_wl_CXX='-Wl,' > # Make sure the PIC flag is empty. It appears that all Alpha >@@ -11654,7 +12688,7 @@ > ;; > sco*) > case $cc_basename in >- CC) >+ CC*) > lt_prog_compiler_pic_CXX='-fPIC' > ;; > *) >@@ -11663,13 +12697,13 @@ > ;; > solaris*) > case $cc_basename in >- CC) >+ CC*) > # Sun C++ 4.2, 5.x and Centerline C++ > lt_prog_compiler_pic_CXX='-KPIC' > lt_prog_compiler_static_CXX='-Bstatic' > lt_prog_compiler_wl_CXX='-Qoption ld ' > ;; >- gcx) >+ gcx*) > # Green Hills C++ Compiler > lt_prog_compiler_pic_CXX='-PIC' > ;; >@@ -11679,12 +12713,12 @@ > ;; > sunos4*) > case $cc_basename in >- CC) >+ CC*) > # Sun C++ 4.x > lt_prog_compiler_pic_CXX='-pic' > lt_prog_compiler_static_CXX='-Bstatic' > ;; >- lcc) >+ lcc*) > # Lucid > lt_prog_compiler_pic_CXX='-pic' > ;; >@@ -11694,7 +12728,7 @@ > ;; > tandem*) > case $cc_basename in >- NCC) >+ NCC*) > # NonStop-UX NCC 3.20 > lt_prog_compiler_pic_CXX='-KPIC' > ;; >@@ -11719,7 +12753,8 @@ > # Check to make sure the PIC flag actually works. > # > if test -n "$lt_prog_compiler_pic_CXX"; then >- echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 >+ >+echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 > echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 > if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then > echo $ECHO_N "(cached) $ECHO_C" >&6 >@@ -11737,15 +12772,17 @@ > -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ > -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ > -e 's:$: $lt_compiler_flag:'` >- (eval echo "\"\$as_me:11740: $lt_compile\"" >&5) >+ (eval echo "\"\$as_me:12775: $lt_compile\"" >&5) > (eval "$lt_compile" 2>conftest.err) > ac_status=$? > cat conftest.err >&5 >- echo "$as_me:11744: \$? = $ac_status" >&5 >+ echo "$as_me:12779: \$? = $ac_status" >&5 > if (exit $ac_status) && test -s "$ac_outfile"; then > # The compiler can only warn and ignore the option if not recognized >- # So say no if there are warnings >- if test ! -s conftest.err; then >+ # So say no if there are warnings other than the usual output. >+ $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp >+ $SED '/^$/d' conftest.err >conftest.er2 >+ if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then > lt_prog_compiler_pic_works_CXX=yes > fi > fi >@@ -11788,13 +12825,6 @@ > mkdir out > printf "$lt_simple_compile_test_code" > conftest.$ac_ext > >- # According to Tom Tromey, Ian Lance Taylor reported there are C compilers >- # that will create temporary files in the current directory regardless of >- # the output directory. Thus, making CWD read-only will cause this test >- # to fail, enabling locking or at least warning the user not to do parallel >- # builds. >- chmod -w . >- > lt_compiler_flag="-o out/conftest2.$ac_objext" > # Insert the option either (1) after the last *FLAGS variable, or > # (2) before a word containing "conftest.", or (3) at the end. >@@ -11804,22 +12834,27 @@ > -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ > -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ > -e 's:$: $lt_compiler_flag:'` >- (eval echo "\"\$as_me:11807: $lt_compile\"" >&5) >+ (eval echo "\"\$as_me:12837: $lt_compile\"" >&5) > (eval "$lt_compile" 2>out/conftest.err) > ac_status=$? > cat out/conftest.err >&5 >- echo "$as_me:11811: \$? = $ac_status" >&5 >+ echo "$as_me:12841: \$? = $ac_status" >&5 > if (exit $ac_status) && test -s out/conftest2.$ac_objext > then > # The compiler can only warn and ignore the option if not recognized > # So say no if there are warnings >- if test ! -s out/conftest.err; then >+ $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp >+ $SED '/^$/d' out/conftest.err >out/conftest.er2 >+ if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then > lt_cv_prog_compiler_c_o_CXX=yes > fi > fi > chmod u+w . >- $rm conftest* out/* >- rmdir out >+ $rm conftest* >+ # SGI C++ compiler will create directory out/ii_files/ for >+ # template instantiation >+ test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files >+ $rm out/* && rmdir out > cd .. > rmdir conftest > $rm conftest* >@@ -11869,7 +12904,7 @@ > export_symbols_cmds_CXX="$ltdll_cmds" > ;; > cygwin* | mingw*) >- export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' >+ export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' > ;; > *) > export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' >@@ -11947,78 +12982,12 @@ > ;; > esac > >-echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 >-echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 >-hardcode_action_CXX= >-if test -n "$hardcode_libdir_flag_spec_CXX" || \ >- test -n "$runpath_var CXX" || \ >- test "X$hardcode_automatic_CXX"="Xyes" ; then >- >- # We can hardcode non-existant directories. >- if test "$hardcode_direct_CXX" != no && >- # If the only mechanism to avoid hardcoding is shlibpath_var, we >- # have to relink, otherwise we might link with an installed library >- # when we should be linking with a yet-to-be-installed one >- ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && >- test "$hardcode_minus_L_CXX" != no; then >- # Linking always hardcodes the temporary library directory. >- hardcode_action_CXX=relink >- else >- # We can link without hardcoding, and we can hardcode nonexisting dirs. >- hardcode_action_CXX=immediate >- fi >-else >- # We cannot hardcode anything, or else we can only hardcode existing >- # directories. >- hardcode_action_CXX=unsupported >-fi >-echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 >-echo "${ECHO_T}$hardcode_action_CXX" >&6 >- >-if test "$hardcode_action_CXX" = relink; then >- # Fast installation is not supported >- enable_fast_install=no >-elif test "$shlibpath_overrides_runpath" = yes || >- test "$enable_shared" = no; then >- # Fast installation is not necessary >- enable_fast_install=needless >-fi >- >-striplib= >-old_striplib= >-echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 >-echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 >-if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then >- test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" >- test -z "$striplib" && striplib="$STRIP --strip-unneeded" >- echo "$as_me:$LINENO: result: yes" >&5 >-echo "${ECHO_T}yes" >&6 >-else >-# FIXME - insert some real tests, host_os isn't really good enough >- case $host_os in >- darwin*) >- if test -n "$STRIP" ; then >- striplib="$STRIP -x" >- echo "$as_me:$LINENO: result: yes" >&5 >-echo "${ECHO_T}yes" >&6 >- else >- echo "$as_me:$LINENO: result: no" >&5 >-echo "${ECHO_T}no" >&6 >-fi >- ;; >- *) >- echo "$as_me:$LINENO: result: no" >&5 >-echo "${ECHO_T}no" >&6 >- ;; >- esac >-fi >- > echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 > echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 > library_names_spec= > libname_spec='lib$name' > soname_spec= >-shrext=".so" >+shrext_cmds=".so" > postinstall_cmds= > postuninstall_cmds= > finish_cmds= >@@ -12106,7 +13075,7 @@ > amigaos*) > library_names_spec='$libname.ixlibrary $libname.a' > # Create ${libname}_ixlibrary.a entries in /sys/libs. >- 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' >+ 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' > ;; > > beos*) >@@ -12115,7 +13084,7 @@ > shlibpath_var=LIBRARY_PATH > ;; > >-bsdi4*) >+bsdi[45]*) > version_type=linux > need_version=no > library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' >@@ -12131,7 +13100,7 @@ > > cygwin* | mingw* | pw32*) > version_type=windows >- shrext=".dll" >+ shrext_cmds=".dll" > need_version=no > need_lib_prefix=no > >@@ -12153,7 +13122,7 @@ > cygwin*) > # Cygwin DLLs use 'cyg' prefix rather than 'lib' > soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' >- sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib" >+ sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" > ;; > mingw*) > # MinGW DLLs use traditional 'lib' prefix >@@ -12173,11 +13142,35 @@ > ;; > pw32*) > # pw32 DLLs use 'pw' prefix rather than 'lib' >- library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' >+ library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' > ;; > esac > ;; > >+ linux*) >+ if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then >+ archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' >+ supports_anon_versioning=no >+ case `$LD -v 2>/dev/null` in >+ *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 >+ *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... >+ *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... >+ *\ 2.11.*) ;; # other 2.11 versions >+ *) supports_anon_versioning=yes ;; >+ esac >+ if test $supports_anon_versioning = yes; then >+ archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ >+cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ >+$echo "local: *; };" >> $output_objdir/$libname.ver~ >+ $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' >+ else >+ $archive_expsym_cmds="$archive_cmds" >+ fi >+ else >+ ld_shlibs=no >+ fi >+ ;; >+ > *) > library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' > ;; >@@ -12192,17 +13185,16 @@ > version_type=darwin > need_lib_prefix=no > need_version=no >- # FIXME: Relying on posixy $() will cause problems for >- # cross-compilation, but unfortunately the echo tests do not >- # yet detect zsh echo's removal of \ escapes. > library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' > soname_spec='${libname}${release}${major}$shared_ext' > shlibpath_overrides_runpath=yes > shlibpath_var=DYLD_LIBRARY_PATH >- shrext='$(test .$module = .yes && echo .so || echo .dylib)' >+ shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' > # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. >- if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then >- 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"` >+ if test "$GCC" = yes; then >+ 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"` >+ else >+ sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' > fi > sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' > ;; >@@ -12220,7 +13212,21 @@ > dynamic_linker=no > ;; > >-freebsd*) >+kfreebsd*-gnu) >+ version_type=linux >+ need_lib_prefix=no >+ need_version=no >+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' >+ soname_spec='${libname}${release}${shared_ext}$major' >+ shlibpath_var=LD_LIBRARY_PATH >+ shlibpath_overrides_runpath=no >+ hardcode_into_libs=yes >+ dynamic_linker='GNU ld.so' >+ ;; >+ >+freebsd* | dragonfly*) >+ # DragonFly does not have aout. When/if they implement a new >+ # versioning mechanism, adjust this. > objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` > version_type=freebsd-$objformat > case $version_type in >@@ -12239,7 +13245,7 @@ > freebsd2*) > shlibpath_overrides_runpath=yes > ;; >- freebsd3.01* | freebsdelf3.01*) >+ freebsd3.[01]* | freebsdelf3.[01]*) > shlibpath_overrides_runpath=yes > hardcode_into_libs=yes > ;; >@@ -12268,7 +13274,7 @@ > need_version=no > case "$host_cpu" in > ia64*) >- shrext='.so' >+ shrext_cmds='.so' > hardcode_into_libs=yes > dynamic_linker="$host_os dld.so" > shlibpath_var=LD_LIBRARY_PATH >@@ -12283,7 +13289,7 @@ > sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec > ;; > hppa*64*) >- shrext='.sl' >+ shrext_cmds='.sl' > hardcode_into_libs=yes > dynamic_linker="$host_os dld.sl" > shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH >@@ -12294,7 +13300,7 @@ > sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec > ;; > *) >- shrext='.sl' >+ shrext_cmds='.sl' > dynamic_linker="$host_os dld.sl" > shlibpath_var=SHLIB_PATH > shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH >@@ -12363,10 +13369,16 @@ > # before this can be enabled. > hardcode_into_libs=yes > >- case $LD in # libtool.m4 will add one of these switches to LD >- *"-m elf_x86_64"*|*"-m elf64ppc"*|*"-m elf64_s390"*|*"-m elf64_sparc"*) >- sys_lib_dlsearch_path_spec="/lib64 /usr/lib64" >- sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64" >+ # Append ld.so.conf contents to the search path >+ if test -f /etc/ld.so.conf; then >+ lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` >+ sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" >+ fi >+ >+ case $host_cpu:$lt_cv_cc_64bit_output in >+ powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes) >+ sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64" >+ sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64" > ;; > esac > >@@ -12377,6 +13389,42 @@ > # people can always --disable-shared, the test was removed, and we > # assume the GNU/Linux dynamic linker is in use. > dynamic_linker='GNU/Linux ld.so' >+ >+ # Find out which ABI we are using (multilib Linux x86_64 hack). >+ libsuff= >+ case "$host_cpu" in >+ x86_64*) >+ echo '#line 13397 "configure"' > conftest.$ac_ext >+ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 >+ (eval $ac_compile) 2>&5 >+ ac_status=$? >+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 >+ (exit $ac_status); }; then >+ case `/usr/bin/file conftest.$ac_objext` in >+ *64-bit*) >+ libsuff=64 >+ ;; >+ esac >+ fi >+ rm -rf conftest* >+ ;; >+ *) >+ ;; >+ esac >+ sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}" >+ sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" >+ ;; >+ >+knetbsd*-gnu) >+ version_type=linux >+ need_lib_prefix=no >+ need_version=no >+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' >+ soname_spec='${libname}${release}${shared_ext}$major' >+ shlibpath_var=LD_LIBRARY_PATH >+ shlibpath_overrides_runpath=no >+ hardcode_into_libs=yes >+ dynamic_linker='GNU ld.so' > ;; > > netbsd*) >@@ -12388,7 +13436,7 @@ > finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' > dynamic_linker='NetBSD (a.out) ld.so' > else >- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}' >+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' > soname_spec='${libname}${release}${shared_ext}$major' > dynamic_linker='NetBSD ld.elf_so' > fi >@@ -12404,7 +13452,7 @@ > shlibpath_overrides_runpath=yes > ;; > >-nto-qnx) >+nto-qnx*) > version_type=linux > need_lib_prefix=no > need_version=no >@@ -12417,7 +13465,11 @@ > openbsd*) > version_type=sunos > need_lib_prefix=no >- need_version=no >+ # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. >+ case $host_os in >+ openbsd3.3 | openbsd3.3.*) need_version=yes ;; >+ *) need_version=no ;; >+ esac > library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' > finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' > shlibpath_var=LD_LIBRARY_PATH >@@ -12437,7 +13489,7 @@ > > os2*) > libname_spec='$name' >- shrext=".dll" >+ shrext_cmds=".dll" > need_lib_prefix=no > library_names_spec='$libname${shared_ext} $libname.a' > dynamic_linker='OS/2 ld.exe' >@@ -12535,6 +13587,72 @@ > echo "${ECHO_T}$dynamic_linker" >&6 > test "$dynamic_linker" = no && can_build_shared=no > >+echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 >+echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 >+hardcode_action_CXX= >+if test -n "$hardcode_libdir_flag_spec_CXX" || \ >+ test -n "$runpath_var_CXX" || \ >+ test "X$hardcode_automatic_CXX" = "Xyes" ; then >+ >+ # We can hardcode non-existant directories. >+ if test "$hardcode_direct_CXX" != no && >+ # If the only mechanism to avoid hardcoding is shlibpath_var, we >+ # have to relink, otherwise we might link with an installed library >+ # when we should be linking with a yet-to-be-installed one >+ ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && >+ test "$hardcode_minus_L_CXX" != no; then >+ # Linking always hardcodes the temporary library directory. >+ hardcode_action_CXX=relink >+ else >+ # We can link without hardcoding, and we can hardcode nonexisting dirs. >+ hardcode_action_CXX=immediate >+ fi >+else >+ # We cannot hardcode anything, or else we can only hardcode existing >+ # directories. >+ hardcode_action_CXX=unsupported >+fi >+echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 >+echo "${ECHO_T}$hardcode_action_CXX" >&6 >+ >+if test "$hardcode_action_CXX" = relink; then >+ # Fast installation is not supported >+ enable_fast_install=no >+elif test "$shlibpath_overrides_runpath" = yes || >+ test "$enable_shared" = no; then >+ # Fast installation is not necessary >+ enable_fast_install=needless >+fi >+ >+striplib= >+old_striplib= >+echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 >+echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 >+if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then >+ test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" >+ test -z "$striplib" && striplib="$STRIP --strip-unneeded" >+ echo "$as_me:$LINENO: result: yes" >&5 >+echo "${ECHO_T}yes" >&6 >+else >+# FIXME - insert some real tests, host_os isn't really good enough >+ case $host_os in >+ darwin*) >+ if test -n "$STRIP" ; then >+ striplib="$STRIP -x" >+ echo "$as_me:$LINENO: result: yes" >&5 >+echo "${ECHO_T}yes" >&6 >+ else >+ echo "$as_me:$LINENO: result: no" >&5 >+echo "${ECHO_T}no" >&6 >+fi >+ ;; >+ *) >+ echo "$as_me:$LINENO: result: no" >&5 >+echo "${ECHO_T}no" >&6 >+ ;; >+ esac >+fi >+ > if test "x$enable_dlopen" != xyes; then > enable_dlopen=unknown > enable_dlopen_self=unknown >@@ -12570,7 +13688,6 @@ > ac_check_lib_save_LIBS=$LIBS > LIBS="-ldl $LIBS" > cat >conftest.$ac_ext <<_ACEOF >-#line $LINENO "configure" > /* confdefs.h. */ > _ACEOF > cat confdefs.h >>conftest.$ac_ext >@@ -12594,11 +13711,21 @@ > _ACEOF > rm -f conftest.$ac_objext conftest$ac_exeext > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 >- (eval $ac_link) 2>&5 >+ (eval $ac_link) 2>conftest.er1 > ac_status=$? >+ grep -v '^ *+' conftest.er1 >conftest.err >+ rm -f conftest.er1 >+ cat conftest.err >&5 > echo "$as_me:$LINENO: \$? = $ac_status" >&5 > (exit $ac_status); } && >- { ac_try='test -s conftest$ac_exeext' >+ { ac_try='test -z "$ac_cxx_werror_flag" >+ || test ! -s conftest.err' >+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 >+ (eval $ac_try) 2>&5 >+ ac_status=$? >+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 >+ (exit $ac_status); }; } && >+ { ac_try='test -s conftest$ac_exeext' > { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 > (eval $ac_try) 2>&5 > ac_status=$? >@@ -12611,7 +13738,8 @@ > > ac_cv_lib_dl_dlopen=no > fi >-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext >+rm -f conftest.err conftest.$ac_objext \ >+ conftest$ac_exeext conftest.$ac_ext > LIBS=$ac_check_lib_save_LIBS > fi > echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 >@@ -12635,21 +13763,28 @@ > echo $ECHO_N "(cached) $ECHO_C" >&6 > else > cat >conftest.$ac_ext <<_ACEOF >-#line $LINENO "configure" > /* confdefs.h. */ > _ACEOF > cat confdefs.h >>conftest.$ac_ext > cat >>conftest.$ac_ext <<_ACEOF > /* end confdefs.h. */ >+/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. >+ For example, HP-UX 11i <limits.h> declares gettimeofday. */ >+#define shl_load innocuous_shl_load >+ > /* System header to define __stub macros and hopefully few prototypes, > which can conflict with char shl_load (); below. > Prefer <limits.h> to <assert.h> if __STDC__ is defined, since > <limits.h> exists even on freestanding compilers. */ >+ > #ifdef __STDC__ > # include <limits.h> > #else > # include <assert.h> > #endif >+ >+#undef shl_load >+ > /* Override any gcc2 internal prototype to avoid an error. */ > #ifdef __cplusplus > extern "C" >@@ -12680,11 +13815,21 @@ > _ACEOF > rm -f conftest.$ac_objext conftest$ac_exeext > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 >- (eval $ac_link) 2>&5 >+ (eval $ac_link) 2>conftest.er1 > ac_status=$? >+ grep -v '^ *+' conftest.er1 >conftest.err >+ rm -f conftest.er1 >+ cat conftest.err >&5 > echo "$as_me:$LINENO: \$? = $ac_status" >&5 > (exit $ac_status); } && >- { ac_try='test -s conftest$ac_exeext' >+ { ac_try='test -z "$ac_cxx_werror_flag" >+ || test ! -s conftest.err' >+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 >+ (eval $ac_try) 2>&5 >+ ac_status=$? >+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 >+ (exit $ac_status); }; } && >+ { ac_try='test -s conftest$ac_exeext' > { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 > (eval $ac_try) 2>&5 > ac_status=$? >@@ -12697,7 +13842,8 @@ > > ac_cv_func_shl_load=no > fi >-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext >+rm -f conftest.err conftest.$ac_objext \ >+ conftest$ac_exeext conftest.$ac_ext > fi > echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 > echo "${ECHO_T}$ac_cv_func_shl_load" >&6 >@@ -12712,7 +13858,6 @@ > ac_check_lib_save_LIBS=$LIBS > LIBS="-ldld $LIBS" > cat >conftest.$ac_ext <<_ACEOF >-#line $LINENO "configure" > /* confdefs.h. */ > _ACEOF > cat confdefs.h >>conftest.$ac_ext >@@ -12736,11 +13881,21 @@ > _ACEOF > rm -f conftest.$ac_objext conftest$ac_exeext > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 >- (eval $ac_link) 2>&5 >+ (eval $ac_link) 2>conftest.er1 > ac_status=$? >+ grep -v '^ *+' conftest.er1 >conftest.err >+ rm -f conftest.er1 >+ cat conftest.err >&5 > echo "$as_me:$LINENO: \$? = $ac_status" >&5 > (exit $ac_status); } && >- { ac_try='test -s conftest$ac_exeext' >+ { ac_try='test -z "$ac_cxx_werror_flag" >+ || test ! -s conftest.err' >+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 >+ (eval $ac_try) 2>&5 >+ ac_status=$? >+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 >+ (exit $ac_status); }; } && >+ { ac_try='test -s conftest$ac_exeext' > { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 > (eval $ac_try) 2>&5 > ac_status=$? >@@ -12753,7 +13908,8 @@ > > ac_cv_lib_dld_shl_load=no > fi >-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext >+rm -f conftest.err conftest.$ac_objext \ >+ conftest$ac_exeext conftest.$ac_ext > LIBS=$ac_check_lib_save_LIBS > fi > echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 >@@ -12767,21 +13923,28 @@ > echo $ECHO_N "(cached) $ECHO_C" >&6 > else > cat >conftest.$ac_ext <<_ACEOF >-#line $LINENO "configure" > /* confdefs.h. */ > _ACEOF > cat confdefs.h >>conftest.$ac_ext > cat >>conftest.$ac_ext <<_ACEOF > /* end confdefs.h. */ >+/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. >+ For example, HP-UX 11i <limits.h> declares gettimeofday. */ >+#define dlopen innocuous_dlopen >+ > /* System header to define __stub macros and hopefully few prototypes, > which can conflict with char dlopen (); below. > Prefer <limits.h> to <assert.h> if __STDC__ is defined, since > <limits.h> exists even on freestanding compilers. */ >+ > #ifdef __STDC__ > # include <limits.h> > #else > # include <assert.h> > #endif >+ >+#undef dlopen >+ > /* Override any gcc2 internal prototype to avoid an error. */ > #ifdef __cplusplus > extern "C" >@@ -12812,11 +13975,21 @@ > _ACEOF > rm -f conftest.$ac_objext conftest$ac_exeext > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 >- (eval $ac_link) 2>&5 >+ (eval $ac_link) 2>conftest.er1 > ac_status=$? >+ grep -v '^ *+' conftest.er1 >conftest.err >+ rm -f conftest.er1 >+ cat conftest.err >&5 > echo "$as_me:$LINENO: \$? = $ac_status" >&5 > (exit $ac_status); } && >- { ac_try='test -s conftest$ac_exeext' >+ { ac_try='test -z "$ac_cxx_werror_flag" >+ || test ! -s conftest.err' >+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 >+ (eval $ac_try) 2>&5 >+ ac_status=$? >+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 >+ (exit $ac_status); }; } && >+ { ac_try='test -s conftest$ac_exeext' > { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 > (eval $ac_try) 2>&5 > ac_status=$? >@@ -12829,7 +14002,8 @@ > > ac_cv_func_dlopen=no > fi >-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext >+rm -f conftest.err conftest.$ac_objext \ >+ conftest$ac_exeext conftest.$ac_ext > fi > echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 > echo "${ECHO_T}$ac_cv_func_dlopen" >&6 >@@ -12844,7 +14018,6 @@ > ac_check_lib_save_LIBS=$LIBS > LIBS="-ldl $LIBS" > cat >conftest.$ac_ext <<_ACEOF >-#line $LINENO "configure" > /* confdefs.h. */ > _ACEOF > cat confdefs.h >>conftest.$ac_ext >@@ -12868,11 +14041,21 @@ > _ACEOF > rm -f conftest.$ac_objext conftest$ac_exeext > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 >- (eval $ac_link) 2>&5 >+ (eval $ac_link) 2>conftest.er1 > ac_status=$? >+ grep -v '^ *+' conftest.er1 >conftest.err >+ rm -f conftest.er1 >+ cat conftest.err >&5 > echo "$as_me:$LINENO: \$? = $ac_status" >&5 > (exit $ac_status); } && >- { ac_try='test -s conftest$ac_exeext' >+ { ac_try='test -z "$ac_cxx_werror_flag" >+ || test ! -s conftest.err' >+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 >+ (eval $ac_try) 2>&5 >+ ac_status=$? >+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 >+ (exit $ac_status); }; } && >+ { ac_try='test -s conftest$ac_exeext' > { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 > (eval $ac_try) 2>&5 > ac_status=$? >@@ -12885,7 +14068,8 @@ > > ac_cv_lib_dl_dlopen=no > fi >-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext >+rm -f conftest.err conftest.$ac_objext \ >+ conftest$ac_exeext conftest.$ac_ext > LIBS=$ac_check_lib_save_LIBS > fi > echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 >@@ -12901,7 +14085,6 @@ > ac_check_lib_save_LIBS=$LIBS > LIBS="-lsvld $LIBS" > cat >conftest.$ac_ext <<_ACEOF >-#line $LINENO "configure" > /* confdefs.h. */ > _ACEOF > cat confdefs.h >>conftest.$ac_ext >@@ -12925,11 +14108,21 @@ > _ACEOF > rm -f conftest.$ac_objext conftest$ac_exeext > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 >- (eval $ac_link) 2>&5 >+ (eval $ac_link) 2>conftest.er1 >+ ac_status=$? >+ grep -v '^ *+' conftest.er1 >conftest.err >+ rm -f conftest.er1 >+ cat conftest.err >&5 >+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 >+ (exit $ac_status); } && >+ { ac_try='test -z "$ac_cxx_werror_flag" >+ || test ! -s conftest.err' >+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 >+ (eval $ac_try) 2>&5 > ac_status=$? > echo "$as_me:$LINENO: \$? = $ac_status" >&5 >- (exit $ac_status); } && >- { ac_try='test -s conftest$ac_exeext' >+ (exit $ac_status); }; } && >+ { ac_try='test -s conftest$ac_exeext' > { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 > (eval $ac_try) 2>&5 > ac_status=$? >@@ -12942,7 +14135,8 @@ > > ac_cv_lib_svld_dlopen=no > fi >-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext >+rm -f conftest.err conftest.$ac_objext \ >+ conftest$ac_exeext conftest.$ac_ext > LIBS=$ac_check_lib_save_LIBS > fi > echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 >@@ -12958,7 +14152,6 @@ > ac_check_lib_save_LIBS=$LIBS > LIBS="-ldld $LIBS" > cat >conftest.$ac_ext <<_ACEOF >-#line $LINENO "configure" > /* confdefs.h. */ > _ACEOF > cat confdefs.h >>conftest.$ac_ext >@@ -12982,11 +14175,21 @@ > _ACEOF > rm -f conftest.$ac_objext conftest$ac_exeext > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 >- (eval $ac_link) 2>&5 >+ (eval $ac_link) 2>conftest.er1 > ac_status=$? >+ grep -v '^ *+' conftest.er1 >conftest.err >+ rm -f conftest.er1 >+ cat conftest.err >&5 > echo "$as_me:$LINENO: \$? = $ac_status" >&5 > (exit $ac_status); } && >- { ac_try='test -s conftest$ac_exeext' >+ { ac_try='test -z "$ac_cxx_werror_flag" >+ || test ! -s conftest.err' >+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 >+ (eval $ac_try) 2>&5 >+ ac_status=$? >+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 >+ (exit $ac_status); }; } && >+ { ac_try='test -s conftest$ac_exeext' > { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 > (eval $ac_try) 2>&5 > ac_status=$? >@@ -12999,7 +14202,8 @@ > > ac_cv_lib_dld_dld_link=no > fi >-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext >+rm -f conftest.err conftest.$ac_objext \ >+ conftest$ac_exeext conftest.$ac_ext > LIBS=$ac_check_lib_save_LIBS > fi > echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 >@@ -13054,7 +14258,7 @@ > lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 > lt_status=$lt_dlunknown > cat > conftest.$ac_ext <<EOF >-#line 13057 "configure" >+#line 14261 "configure" > #include "confdefs.h" > > #if HAVE_DLFCN_H >@@ -13152,7 +14356,7 @@ > lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 > lt_status=$lt_dlunknown > cat > conftest.$ac_ext <<EOF >-#line 13155 "configure" >+#line 14359 "configure" > #include "confdefs.h" > > #if HAVE_DLFCN_H >@@ -13269,7 +14473,8 @@ > # Now quote all the things that may contain metacharacters while being > # careful not to overquote the AC_SUBSTed values. We take copies of the > # variables and quote the copies for generation of the libtool script. >- for var in echo old_CC old_CFLAGS AR AR_FLAGS AS EGREP RANLIB LN_S LTCC NM SED SHELL \ >+ for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ >+ SED SHELL STRIP \ > libname_spec library_names_spec soname_spec extract_expsyms_cmds \ > old_striplib striplib file_magic_cmd finish_cmds finish_eval \ > deplibs_check_method reload_flag reload_cmds need_locks \ >@@ -13369,6 +14574,12 @@ > # The host system. > host_alias=$host_alias > host=$host >+host_os=$host_os >+ >+# The build system. >+build_alias=$build_alias >+build=$build >+build_os=$build_os > > # An echo program that does not interpret backslashes. > echo=$lt_echo >@@ -13399,7 +14610,7 @@ > NM=$lt_NM > > # A symbol stripping program >-STRIP=$STRIP >+STRIP=$lt_STRIP > > # Used to examine libraries when file_magic_cmd begins "file" > MAGIC_CMD=$MAGIC_CMD >@@ -13411,7 +14622,7 @@ > OBJDUMP="$OBJDUMP" > > # Used on cygwin: assembler. >-AS=$lt_AS >+AS="$AS" > > # The name of the directory that contains temporary libtool files. > objdir=$objdir >@@ -13430,7 +14641,7 @@ > libext="$libext" > > # Shared library suffix (normally ".so"). >-shrext='$shrext' >+shrext_cmds='$shrext_cmds' > > # Executable file suffix (normally ""). > exeext="$exeext" >@@ -13445,7 +14656,7 @@ > # Does compiler simultaneously support -c and -o options? > compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX > >-# Must we lock files when doing compilation ? >+# Must we lock files when doing compilation? > need_locks=$lt_need_locks > > # Do we need the lib prefix for modules? >@@ -13647,7 +14858,10 @@ > # If there is no Makefile yet, we rely on a make rule to execute > # `config.status --recheck' to rerun these tests and create the > # libtool script then. >- test -f Makefile && make "$ltmain" >+ ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` >+ if test -f "$ltmain_in"; then >+ test -f Makefile && make "$ltmain" >+ fi > fi > > >@@ -13723,12 +14937,35 @@ > compiler=$CC > > >+# save warnings/boilerplate of simple test code >+ac_outfile=conftest.$ac_objext >+printf "$lt_simple_compile_test_code" >conftest.$ac_ext >+eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err >+_lt_compiler_boilerplate=`cat conftest.err` >+$rm conftest* >+ >+ac_outfile=conftest.$ac_objext >+printf "$lt_simple_link_test_code" >conftest.$ac_ext >+eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err >+_lt_linker_boilerplate=`cat conftest.err` >+$rm conftest* >+ >+ > # Allow CC to be a program name with arguments. > lt_save_CC="$CC" > CC=${F77-"f77"} > compiler=$CC > compiler_F77=$CC >-cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` >+for cc_temp in $compiler""; do >+ case $cc_temp in >+ compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; >+ distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; >+ \-*) ;; >+ *) break;; >+ esac >+done >+cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` >+ > > echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 > echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 >@@ -13749,8 +14986,10 @@ > postinstall_cmds='$RANLIB $lib' > fi > ;; >-aix4*) >- test "$enable_shared" = yes && enable_static=no >+aix4* | aix5*) >+ if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then >+ test "$enable_shared" = yes && enable_static=no >+ fi > ;; > esac > echo "$as_me:$LINENO: result: $enable_shared" >&5 >@@ -13853,6 +15092,16 @@ > lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' > fi > ;; >+ darwin*) >+ # PIC is the default on this platform >+ # Common symbols not allowed in MH_DYLIB files >+ case $cc_basename in >+ xlc*) >+ lt_prog_compiler_pic_F77='-qnocommon' >+ lt_prog_compiler_wl_F77='-Wl,' >+ ;; >+ esac >+ ;; > > mingw* | pw32* | os2*) > # This hack is so that the source file can tell whether it is being >@@ -13888,13 +15137,20 @@ > ;; > > linux*) >- case $CC in >- icc|ecc) >+ case $cc_basename in >+ icc* | ecc*) > lt_prog_compiler_wl_F77='-Wl,' > lt_prog_compiler_pic_F77='-KPIC' > lt_prog_compiler_static_F77='-static' > ;; >- ccc) >+ pgcc* | pgf77* | pgf90*) >+ # Portland Group compilers (*not* the Pentium gcc compiler, >+ # which looks to be a dead project) >+ lt_prog_compiler_wl_F77='-Wl,' >+ lt_prog_compiler_pic_F77='-fpic' >+ lt_prog_compiler_static_F77='-static' >+ ;; >+ ccc*) > lt_prog_compiler_wl_F77='-Wl,' > # All Alpha code is PIC. > lt_prog_compiler_static_F77='-non_shared' >@@ -13914,9 +15170,14 @@ > ;; > > solaris*) >- lt_prog_compiler_wl_F77='-Wl,' > lt_prog_compiler_pic_F77='-KPIC' > lt_prog_compiler_static_F77='-Bstatic' >+ case $cc_basename in >+ f77* | f90* | f95*) >+ lt_prog_compiler_wl_F77='-Qoption ld ';; >+ *) >+ lt_prog_compiler_wl_F77='-Wl,';; >+ esac > ;; > > sunos4*) >@@ -13938,6 +15199,11 @@ > fi > ;; > >+ unicos*) >+ lt_prog_compiler_wl_F77='-Wl,' >+ lt_prog_compiler_can_build_shared_F77=no >+ ;; >+ > uts4*) > lt_prog_compiler_pic_F77='-pic' > lt_prog_compiler_static_F77='-Bstatic' >@@ -13956,7 +15222,8 @@ > # Check to make sure the PIC flag actually works. > # > if test -n "$lt_prog_compiler_pic_F77"; then >- echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 >+ >+echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 > echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 > if test "${lt_prog_compiler_pic_works_F77+set}" = set; then > echo $ECHO_N "(cached) $ECHO_C" >&6 >@@ -13974,15 +15241,17 @@ > -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ > -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ > -e 's:$: $lt_compiler_flag:'` >- (eval echo "\"\$as_me:13977: $lt_compile\"" >&5) >+ (eval echo "\"\$as_me:15244: $lt_compile\"" >&5) > (eval "$lt_compile" 2>conftest.err) > ac_status=$? > cat conftest.err >&5 >- echo "$as_me:13981: \$? = $ac_status" >&5 >+ echo "$as_me:15248: \$? = $ac_status" >&5 > if (exit $ac_status) && test -s "$ac_outfile"; then > # The compiler can only warn and ignore the option if not recognized >- # So say no if there are warnings >- if test ! -s conftest.err; then >+ # So say no if there are warnings other than the usual output. >+ $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp >+ $SED '/^$/d' conftest.err >conftest.er2 >+ if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then > lt_prog_compiler_pic_works_F77=yes > fi > fi >@@ -14025,13 +15294,6 @@ > mkdir out > printf "$lt_simple_compile_test_code" > conftest.$ac_ext > >- # According to Tom Tromey, Ian Lance Taylor reported there are C compilers >- # that will create temporary files in the current directory regardless of >- # the output directory. Thus, making CWD read-only will cause this test >- # to fail, enabling locking or at least warning the user not to do parallel >- # builds. >- chmod -w . >- > lt_compiler_flag="-o out/conftest2.$ac_objext" > # Insert the option either (1) after the last *FLAGS variable, or > # (2) before a word containing "conftest.", or (3) at the end. >@@ -14041,22 +15303,27 @@ > -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ > -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ > -e 's:$: $lt_compiler_flag:'` >- (eval echo "\"\$as_me:14044: $lt_compile\"" >&5) >+ (eval echo "\"\$as_me:15306: $lt_compile\"" >&5) > (eval "$lt_compile" 2>out/conftest.err) > ac_status=$? > cat out/conftest.err >&5 >- echo "$as_me:14048: \$? = $ac_status" >&5 >+ echo "$as_me:15310: \$? = $ac_status" >&5 > if (exit $ac_status) && test -s out/conftest2.$ac_objext > then > # The compiler can only warn and ignore the option if not recognized > # So say no if there are warnings >- if test ! -s out/conftest.err; then >+ $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp >+ $SED '/^$/d' out/conftest.err >out/conftest.er2 >+ if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then > lt_cv_prog_compiler_c_o_F77=yes > fi > fi > chmod u+w . >- $rm conftest* out/* >- rmdir out >+ $rm conftest* >+ # SGI C++ compiler will create directory out/ii_files/ for >+ # template instantiation >+ test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files >+ $rm out/* && rmdir out > cd .. > rmdir conftest > $rm conftest* >@@ -14127,6 +15394,16 @@ > # rely on this symbol name, it's probably fine to never include it in > # preloaded symbol tables. > extract_expsyms_cmds= >+ # Just being paranoid about ensuring that cc_basename is set. >+ for cc_temp in $compiler""; do >+ case $cc_temp in >+ compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; >+ distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; >+ \-*) ;; >+ *) break;; >+ esac >+done >+cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` > > case $host_os in > cygwin* | mingw* | pw32*) >@@ -14147,6 +15424,27 @@ > # If archive_cmds runs LD, not CC, wlarc should be empty > wlarc='${wl}' > >+ # Set some defaults for GNU ld with shared library support. These >+ # are reset later if shared libraries are not supported. Putting them >+ # here allows them to be overridden if necessary. >+ runpath_var=LD_RUN_PATH >+ hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' >+ export_dynamic_flag_spec_F77='${wl}--export-dynamic' >+ # ancient GNU ld didn't support --whole-archive et. al. >+ if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then >+ whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' >+ else >+ whole_archive_flag_spec_F77= >+ fi >+ supports_anon_versioning=no >+ case `$LD -v 2>/dev/null` in >+ *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 >+ *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... >+ *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... >+ *\ 2.11.*) ;; # other 2.11 versions >+ *) supports_anon_versioning=yes ;; >+ esac >+ > # See if GNU ld supports shared libraries. > case $host_os in > aix3* | aix4* | aix5*) >@@ -14197,7 +15495,7 @@ > allow_undefined_flag_F77=unsupported > always_export_symbols_F77=no > enable_shared_with_static_runtimes_F77=yes >- export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' >+ export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' > > if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then > archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' >@@ -14211,7 +15509,38 @@ > fi~ > $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' > else >- ld_shlibs=no >+ ld_shlibs_F77=no >+ fi >+ ;; >+ >+ linux*) >+ if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then >+ tmp_addflag= >+ case $cc_basename,$host_cpu in >+ pgcc*) # Portland Group C compiler >+ whole_archive_flag_spec_F77='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' >+ tmp_addflag=' $pic_flag' >+ ;; >+ pgf77* | pgf90* ) # Portland Group f77 and f90 compilers >+ whole_archive_flag_spec_F77='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' >+ tmp_addflag=' $pic_flag -Mnomain' ;; >+ ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 >+ tmp_addflag=' -i_dynamic' ;; >+ efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 >+ tmp_addflag=' -i_dynamic -nofor_main' ;; >+ ifc* | ifort*) # Intel Fortran compiler >+ tmp_addflag=' -nofor_main' ;; >+ esac >+ archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' >+ >+ if test $supports_anon_versioning = yes; then >+ archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ >+ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ >+ $echo "local: *; };" >> $output_objdir/$libname.ver~ >+ $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' >+ fi >+ else >+ ld_shlibs_F77=no > fi > ;; > >@@ -14263,16 +15592,11 @@ > ;; > esac > >- if test "$ld_shlibs_F77" = yes; then >- runpath_var=LD_RUN_PATH >- hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' >- export_dynamic_flag_spec_F77='${wl}--export-dynamic' >- # ancient GNU ld didn't support --whole-archive et. al. >- if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then >- whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' >- else >- whole_archive_flag_spec_F77= >- fi >+ if test "$ld_shlibs_F77" = no; then >+ runpath_var= >+ hardcode_libdir_flag_spec_F77= >+ export_dynamic_flag_spec_F77= >+ whole_archive_flag_spec_F77= > fi > else > # PORTME fill in a description of your system's linker (not GNU ld) >@@ -14336,7 +15660,7 @@ > link_all_deplibs_F77=yes > > if test "$GCC" = yes; then >- case $host_os in aix4.012|aix4.012.*) >+ case $host_os in aix4.[012]|aix4.[012].*) > # We only want to do this on AIX 4.2 and lower, the check > # below for broken collect2 doesn't work under 4.3+ > collect2name=`${CC} -print-prog-name=collect2` >@@ -14357,6 +15681,9 @@ > fi > esac > shared_flag='-shared' >+ if test "$aix_use_runtimelinking" = yes; then >+ shared_flag="$shared_flag "'${wl}-G' >+ fi > else > # not using gcc > if test "$host_cpu" = ia64; then >@@ -14387,11 +15714,21 @@ > _ACEOF > rm -f conftest.$ac_objext conftest$ac_exeext > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 >- (eval $ac_link) 2>&5 >+ (eval $ac_link) 2>conftest.er1 > ac_status=$? >+ grep -v '^ *+' conftest.er1 >conftest.err >+ rm -f conftest.er1 >+ cat conftest.err >&5 > echo "$as_me:$LINENO: \$? = $ac_status" >&5 > (exit $ac_status); } && >- { ac_try='test -s conftest$ac_exeext' >+ { ac_try='test -z "$ac_f77_werror_flag" >+ || test ! -s conftest.err' >+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 >+ (eval $ac_try) 2>&5 >+ ac_status=$? >+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 >+ (exit $ac_status); }; } && >+ { ac_try='test -s conftest$ac_exeext' > { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 > (eval $ac_try) 2>&5 > ac_status=$? >@@ -14408,7 +15745,8 @@ > sed 's/^/| /' conftest.$ac_ext >&5 > > fi >-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext >+rm -f conftest.err conftest.$ac_objext \ >+ conftest$ac_exeext conftest.$ac_ext > if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi > > hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" >@@ -14427,11 +15765,21 @@ > _ACEOF > rm -f conftest.$ac_objext conftest$ac_exeext > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 >- (eval $ac_link) 2>&5 >+ (eval $ac_link) 2>conftest.er1 > ac_status=$? >+ grep -v '^ *+' conftest.er1 >conftest.err >+ rm -f conftest.er1 >+ cat conftest.err >&5 > echo "$as_me:$LINENO: \$? = $ac_status" >&5 > (exit $ac_status); } && >- { ac_try='test -s conftest$ac_exeext' >+ { ac_try='test -z "$ac_f77_werror_flag" >+ || test ! -s conftest.err' >+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 >+ (eval $ac_try) 2>&5 >+ ac_status=$? >+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 >+ (exit $ac_status); }; } && >+ { ac_try='test -s conftest$ac_exeext' > { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 > (eval $ac_try) 2>&5 > ac_status=$? >@@ -14448,7 +15796,8 @@ > sed 's/^/| /' conftest.$ac_ext >&5 > > fi >-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext >+rm -f conftest.err conftest.$ac_objext \ >+ conftest$ac_exeext conftest.$ac_ext > if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi > > hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" >@@ -14475,7 +15824,7 @@ > ld_shlibs_F77=no > ;; > >- bsdi4*) >+ bsdi[45]*) > export_dynamic_flag_spec_F77=-rdynamic > ;; > >@@ -14489,55 +15838,64 @@ > # Tell ltmain to make .lib files, not .a files. > libext=lib > # Tell ltmain to make .dll files, not .so files. >- shrext=".dll" >+ shrext_cmds=".dll" > # FIXME: Setting linknames here is a bad hack. > archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' > # The linker will automatically build a .lib file if we build a DLL. > old_archive_From_new_cmds_F77='true' > # FIXME: Should let the user specify the lib program. > old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' >- fix_srcfile_path='`cygpath -w "$srcfile"`' >+ fix_srcfile_path_F77='`cygpath -w "$srcfile"`' > enable_shared_with_static_runtimes_F77=yes > ;; > > darwin* | rhapsody*) >- if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then >- archive_cmds_need_lc_F77=no > case "$host_os" in >- rhapsody* | darwin1.[012]) >- allow_undefined_flag_F77='-undefined suppress' >- ;; >- *) # Darwin 1.3 on >- test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress' >- ;; >+ rhapsody* | darwin1.[012]) >+ allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' >+ ;; >+ *) # Darwin 1.3 on >+ if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then >+ allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' >+ else >+ case ${MACOSX_DEPLOYMENT_TARGET} in >+ 10.[012]) >+ allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' >+ ;; >+ 10.*) >+ allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' >+ ;; >+ esac >+ fi >+ ;; > esac >- # FIXME: Relying on posixy $() will cause problems for >- # cross-compilation, but unfortunately the echo tests do not >- # yet detect zsh echo's removal of \ escapes. Also zsh mangles >- # `"' quotes if we put them in here... so don't! >- lt_int_apple_cc_single_mod=no >- output_verbose_link_cmd='echo' >- if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then >- lt_int_apple_cc_single_mod=yes >- fi >- if test "X$lt_int_apple_cc_single_mod" = Xyes ; then >- archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' >- else >- archive_cmds_F77='$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' >- fi >- module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags' >- # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's >- if test "X$lt_int_apple_cc_single_mod" = Xyes ; then >- archive_expsym_cmds_F77='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}' >- else >- archive_expsym_cmds_F77='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}' >- fi >- module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' >+ archive_cmds_need_lc_F77=no > hardcode_direct_F77=no > hardcode_automatic_F77=yes > hardcode_shlibpath_var_F77=unsupported >- whole_archive_flag_spec_F77='-all_load $convenience' >+ whole_archive_flag_spec_F77='' > link_all_deplibs_F77=yes >+ if test "$GCC" = yes ; then >+ output_verbose_link_cmd='echo' >+ archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' >+ module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' >+ # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's >+ archive_expsym_cmds_F77='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}' >+ module_expsym_cmds_F77='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}' >+ else >+ case $cc_basename in >+ xlc*) >+ output_verbose_link_cmd='echo' >+ archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' >+ module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' >+ # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's >+ archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' >+ module_expsym_cmds_F77='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}' >+ ;; >+ *) >+ ld_shlibs_F77=no >+ ;; >+ esac > fi > ;; > >@@ -14571,7 +15929,7 @@ > ;; > > # FreeBSD 3 and greater uses gcc -shared to do shared libraries. >- freebsd*) >+ freebsd* | kfreebsd*-gnu | dragonfly*) > archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' > hardcode_libdir_flag_spec_F77='-R$libdir' > hardcode_direct_F77=yes >@@ -14682,6 +16040,7 @@ > hardcode_shlibpath_var_F77=no > if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then > archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' >+ archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' > hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' > export_dynamic_flag_spec_F77='${wl}-E' > else >@@ -14727,7 +16086,7 @@ > allow_undefined_flag_F77=' -expect_unresolved \*' > archive_cmds_F77='$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' > archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ >- $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' >+ $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' > > # Both c and cxx compiler support -rpath directly > hardcode_libdir_flag_spec_F77='-rpath $libdir' >@@ -14746,10 +16105,12 @@ > solaris*) > no_undefined_flag_F77=' -z text' > if test "$GCC" = yes; then >+ wlarc='${wl}' > archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' > archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ > $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' > else >+ wlarc='' > archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' > archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ > $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' >@@ -14758,8 +16119,18 @@ > hardcode_shlibpath_var_F77=no > case $host_os in > solaris2.[0-5] | solaris2.[0-5].*) ;; >- *) # Supported since Solaris 2.6 (maybe 2.5.1?) >- whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; >+ *) >+ # The compiler driver will combine linker options so we >+ # cannot just pass the convience library names through >+ # without $wl, iff we do not link with $LD. >+ # Luckily, gcc supports the same syntax we need for Sun Studio. >+ # Supported since Solaris 2.6 (maybe 2.5.1?) >+ case $wlarc in >+ '') >+ whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; >+ *) >+ whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; >+ esac ;; > esac > link_all_deplibs_F77=yes > ;; >@@ -14931,78 +16302,12 @@ > ;; > esac > >-echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 >-echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 >-hardcode_action_F77= >-if test -n "$hardcode_libdir_flag_spec_F77" || \ >- test -n "$runpath_var F77" || \ >- test "X$hardcode_automatic_F77"="Xyes" ; then >- >- # We can hardcode non-existant directories. >- if test "$hardcode_direct_F77" != no && >- # If the only mechanism to avoid hardcoding is shlibpath_var, we >- # have to relink, otherwise we might link with an installed library >- # when we should be linking with a yet-to-be-installed one >- ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && >- test "$hardcode_minus_L_F77" != no; then >- # Linking always hardcodes the temporary library directory. >- hardcode_action_F77=relink >- else >- # We can link without hardcoding, and we can hardcode nonexisting dirs. >- hardcode_action_F77=immediate >- fi >-else >- # We cannot hardcode anything, or else we can only hardcode existing >- # directories. >- hardcode_action_F77=unsupported >-fi >-echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 >-echo "${ECHO_T}$hardcode_action_F77" >&6 >- >-if test "$hardcode_action_F77" = relink; then >- # Fast installation is not supported >- enable_fast_install=no >-elif test "$shlibpath_overrides_runpath" = yes || >- test "$enable_shared" = no; then >- # Fast installation is not necessary >- enable_fast_install=needless >-fi >- >-striplib= >-old_striplib= >-echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 >-echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 >-if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then >- test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" >- test -z "$striplib" && striplib="$STRIP --strip-unneeded" >- echo "$as_me:$LINENO: result: yes" >&5 >-echo "${ECHO_T}yes" >&6 >-else >-# FIXME - insert some real tests, host_os isn't really good enough >- case $host_os in >- darwin*) >- if test -n "$STRIP" ; then >- striplib="$STRIP -x" >- echo "$as_me:$LINENO: result: yes" >&5 >-echo "${ECHO_T}yes" >&6 >- else >- echo "$as_me:$LINENO: result: no" >&5 >-echo "${ECHO_T}no" >&6 >-fi >- ;; >- *) >- echo "$as_me:$LINENO: result: no" >&5 >-echo "${ECHO_T}no" >&6 >- ;; >- esac >-fi >- > echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 > echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 > library_names_spec= > libname_spec='lib$name' > soname_spec= >-shrext=".so" >+shrext_cmds=".so" > postinstall_cmds= > postuninstall_cmds= > finish_cmds= >@@ -15090,7 +16395,7 @@ > amigaos*) > library_names_spec='$libname.ixlibrary $libname.a' > # Create ${libname}_ixlibrary.a entries in /sys/libs. >- 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' >+ 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' > ;; > > beos*) >@@ -15099,7 +16404,7 @@ > shlibpath_var=LIBRARY_PATH > ;; > >-bsdi4*) >+bsdi[45]*) > version_type=linux > need_version=no > library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' >@@ -15115,7 +16420,7 @@ > > cygwin* | mingw* | pw32*) > version_type=windows >- shrext=".dll" >+ shrext_cmds=".dll" > need_version=no > need_lib_prefix=no > >@@ -15137,7 +16442,7 @@ > cygwin*) > # Cygwin DLLs use 'cyg' prefix rather than 'lib' > soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' >- sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib" >+ sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" > ;; > mingw*) > # MinGW DLLs use traditional 'lib' prefix >@@ -15157,11 +16462,35 @@ > ;; > pw32*) > # pw32 DLLs use 'pw' prefix rather than 'lib' >- library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' >+ library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' > ;; > esac > ;; > >+ linux*) >+ if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then >+ archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' >+ supports_anon_versioning=no >+ case `$LD -v 2>/dev/null` in >+ *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 >+ *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... >+ *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... >+ *\ 2.11.*) ;; # other 2.11 versions >+ *) supports_anon_versioning=yes ;; >+ esac >+ if test $supports_anon_versioning = yes; then >+ archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ >+cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ >+$echo "local: *; };" >> $output_objdir/$libname.ver~ >+ $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' >+ else >+ $archive_expsym_cmds="$archive_cmds" >+ fi >+ else >+ ld_shlibs=no >+ fi >+ ;; >+ > *) > library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' > ;; >@@ -15176,17 +16505,16 @@ > version_type=darwin > need_lib_prefix=no > need_version=no >- # FIXME: Relying on posixy $() will cause problems for >- # cross-compilation, but unfortunately the echo tests do not >- # yet detect zsh echo's removal of \ escapes. > library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' > soname_spec='${libname}${release}${major}$shared_ext' > shlibpath_overrides_runpath=yes > shlibpath_var=DYLD_LIBRARY_PATH >- shrext='$(test .$module = .yes && echo .so || echo .dylib)' >+ shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' > # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. >- if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then >- 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"` >+ if test "$GCC" = yes; then >+ 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"` >+ else >+ sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' > fi > sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' > ;; >@@ -15204,7 +16532,21 @@ > dynamic_linker=no > ;; > >-freebsd*) >+kfreebsd*-gnu) >+ version_type=linux >+ need_lib_prefix=no >+ need_version=no >+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' >+ soname_spec='${libname}${release}${shared_ext}$major' >+ shlibpath_var=LD_LIBRARY_PATH >+ shlibpath_overrides_runpath=no >+ hardcode_into_libs=yes >+ dynamic_linker='GNU ld.so' >+ ;; >+ >+freebsd* | dragonfly*) >+ # DragonFly does not have aout. When/if they implement a new >+ # versioning mechanism, adjust this. > objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` > version_type=freebsd-$objformat > case $version_type in >@@ -15223,7 +16565,7 @@ > freebsd2*) > shlibpath_overrides_runpath=yes > ;; >- freebsd3.01* | freebsdelf3.01*) >+ freebsd3.[01]* | freebsdelf3.[01]*) > shlibpath_overrides_runpath=yes > hardcode_into_libs=yes > ;; >@@ -15252,7 +16594,7 @@ > need_version=no > case "$host_cpu" in > ia64*) >- shrext='.so' >+ shrext_cmds='.so' > hardcode_into_libs=yes > dynamic_linker="$host_os dld.so" > shlibpath_var=LD_LIBRARY_PATH >@@ -15267,7 +16609,7 @@ > sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec > ;; > hppa*64*) >- shrext='.sl' >+ shrext_cmds='.sl' > hardcode_into_libs=yes > dynamic_linker="$host_os dld.sl" > shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH >@@ -15278,7 +16620,7 @@ > sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec > ;; > *) >- shrext='.sl' >+ shrext_cmds='.sl' > dynamic_linker="$host_os dld.sl" > shlibpath_var=SHLIB_PATH > shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH >@@ -15347,10 +16689,16 @@ > # before this can be enabled. > hardcode_into_libs=yes > >- case $LD in # libtool.m4 will add one of these switches to LD >- *"-m elf_x86_64"*|*"-m elf64ppc"*|*"-m elf64_s390"*|*"-m elf64_sparc"*) >- sys_lib_dlsearch_path_spec="/lib64 /usr/lib64" >- sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64" >+ # Append ld.so.conf contents to the search path >+ if test -f /etc/ld.so.conf; then >+ lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` >+ sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" >+ fi >+ >+ case $host_cpu:$lt_cv_cc_64bit_output in >+ powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes) >+ sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64" >+ sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64" > ;; > esac > >@@ -15361,6 +16709,42 @@ > # people can always --disable-shared, the test was removed, and we > # assume the GNU/Linux dynamic linker is in use. > dynamic_linker='GNU/Linux ld.so' >+ >+ # Find out which ABI we are using (multilib Linux x86_64 hack). >+ libsuff= >+ case "$host_cpu" in >+ x86_64*) >+ echo '#line 16717 "configure"' > conftest.$ac_ext >+ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 >+ (eval $ac_compile) 2>&5 >+ ac_status=$? >+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 >+ (exit $ac_status); }; then >+ case `/usr/bin/file conftest.$ac_objext` in >+ *64-bit*) >+ libsuff=64 >+ ;; >+ esac >+ fi >+ rm -rf conftest* >+ ;; >+ *) >+ ;; >+ esac >+ sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}" >+ sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" >+ ;; >+ >+knetbsd*-gnu) >+ version_type=linux >+ need_lib_prefix=no >+ need_version=no >+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' >+ soname_spec='${libname}${release}${shared_ext}$major' >+ shlibpath_var=LD_LIBRARY_PATH >+ shlibpath_overrides_runpath=no >+ hardcode_into_libs=yes >+ dynamic_linker='GNU ld.so' > ;; > > netbsd*) >@@ -15372,7 +16756,7 @@ > finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' > dynamic_linker='NetBSD (a.out) ld.so' > else >- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}' >+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' > soname_spec='${libname}${release}${shared_ext}$major' > dynamic_linker='NetBSD ld.elf_so' > fi >@@ -15388,7 +16772,7 @@ > shlibpath_overrides_runpath=yes > ;; > >-nto-qnx) >+nto-qnx*) > version_type=linux > need_lib_prefix=no > need_version=no >@@ -15401,7 +16785,11 @@ > openbsd*) > version_type=sunos > need_lib_prefix=no >- need_version=no >+ # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. >+ case $host_os in >+ openbsd3.3 | openbsd3.3.*) need_version=yes ;; >+ *) need_version=no ;; >+ esac > library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' > finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' > shlibpath_var=LD_LIBRARY_PATH >@@ -15421,7 +16809,7 @@ > > os2*) > libname_spec='$name' >- shrext=".dll" >+ shrext_cmds=".dll" > need_lib_prefix=no > library_names_spec='$libname${shared_ext} $libname.a' > dynamic_linker='OS/2 ld.exe' >@@ -15504,20 +16892,87 @@ > fi > ;; > >-uts4*) >- version_type=linux >- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' >- soname_spec='${libname}${release}${shared_ext}$major' >- shlibpath_var=LD_LIBRARY_PATH >- ;; >+uts4*) >+ version_type=linux >+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' >+ soname_spec='${libname}${release}${shared_ext}$major' >+ shlibpath_var=LD_LIBRARY_PATH >+ ;; >+ >+*) >+ dynamic_linker=no >+ ;; >+esac >+echo "$as_me:$LINENO: result: $dynamic_linker" >&5 >+echo "${ECHO_T}$dynamic_linker" >&6 >+test "$dynamic_linker" = no && can_build_shared=no >+ >+echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 >+echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 >+hardcode_action_F77= >+if test -n "$hardcode_libdir_flag_spec_F77" || \ >+ test -n "$runpath_var_F77" || \ >+ test "X$hardcode_automatic_F77" = "Xyes" ; then >+ >+ # We can hardcode non-existant directories. >+ if test "$hardcode_direct_F77" != no && >+ # If the only mechanism to avoid hardcoding is shlibpath_var, we >+ # have to relink, otherwise we might link with an installed library >+ # when we should be linking with a yet-to-be-installed one >+ ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && >+ test "$hardcode_minus_L_F77" != no; then >+ # Linking always hardcodes the temporary library directory. >+ hardcode_action_F77=relink >+ else >+ # We can link without hardcoding, and we can hardcode nonexisting dirs. >+ hardcode_action_F77=immediate >+ fi >+else >+ # We cannot hardcode anything, or else we can only hardcode existing >+ # directories. >+ hardcode_action_F77=unsupported >+fi >+echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 >+echo "${ECHO_T}$hardcode_action_F77" >&6 >+ >+if test "$hardcode_action_F77" = relink; then >+ # Fast installation is not supported >+ enable_fast_install=no >+elif test "$shlibpath_overrides_runpath" = yes || >+ test "$enable_shared" = no; then >+ # Fast installation is not necessary >+ enable_fast_install=needless >+fi >+ >+striplib= >+old_striplib= >+echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 >+echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 >+if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then >+ test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" >+ test -z "$striplib" && striplib="$STRIP --strip-unneeded" >+ echo "$as_me:$LINENO: result: yes" >&5 >+echo "${ECHO_T}yes" >&6 >+else >+# FIXME - insert some real tests, host_os isn't really good enough >+ case $host_os in >+ darwin*) >+ if test -n "$STRIP" ; then >+ striplib="$STRIP -x" >+ echo "$as_me:$LINENO: result: yes" >&5 >+echo "${ECHO_T}yes" >&6 >+ else >+ echo "$as_me:$LINENO: result: no" >&5 >+echo "${ECHO_T}no" >&6 >+fi >+ ;; >+ *) >+ echo "$as_me:$LINENO: result: no" >&5 >+echo "${ECHO_T}no" >&6 >+ ;; >+ esac >+fi > >-*) >- dynamic_linker=no >- ;; >-esac >-echo "$as_me:$LINENO: result: $dynamic_linker" >&5 >-echo "${ECHO_T}$dynamic_linker" >&6 >-test "$dynamic_linker" = no && can_build_shared=no > > > # The else clause should only fire when bootstrapping the >@@ -15533,7 +16988,8 @@ > # Now quote all the things that may contain metacharacters while being > # careful not to overquote the AC_SUBSTed values. We take copies of the > # variables and quote the copies for generation of the libtool script. >- for var in echo old_CC old_CFLAGS AR AR_FLAGS AS EGREP RANLIB LN_S LTCC NM SED SHELL \ >+ for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ >+ SED SHELL STRIP \ > libname_spec library_names_spec soname_spec extract_expsyms_cmds \ > old_striplib striplib file_magic_cmd finish_cmds finish_eval \ > deplibs_check_method reload_flag reload_cmds need_locks \ >@@ -15633,6 +17089,12 @@ > # The host system. > host_alias=$host_alias > host=$host >+host_os=$host_os >+ >+# The build system. >+build_alias=$build_alias >+build=$build >+build_os=$build_os > > # An echo program that does not interpret backslashes. > echo=$lt_echo >@@ -15663,7 +17125,7 @@ > NM=$lt_NM > > # A symbol stripping program >-STRIP=$STRIP >+STRIP=$lt_STRIP > > # Used to examine libraries when file_magic_cmd begins "file" > MAGIC_CMD=$MAGIC_CMD >@@ -15675,7 +17137,7 @@ > OBJDUMP="$OBJDUMP" > > # Used on cygwin: assembler. >-AS=$lt_AS >+AS="$AS" > > # The name of the directory that contains temporary libtool files. > objdir=$objdir >@@ -15694,7 +17156,7 @@ > libext="$libext" > > # Shared library suffix (normally ".so"). >-shrext='$shrext' >+shrext_cmds='$shrext_cmds' > > # Executable file suffix (normally ""). > exeext="$exeext" >@@ -15709,7 +17171,7 @@ > # Does compiler simultaneously support -c and -o options? > compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 > >-# Must we lock files when doing compilation ? >+# Must we lock files when doing compilation? > need_locks=$lt_need_locks > > # Do we need the lib prefix for modules? >@@ -15911,7 +17373,10 @@ > # If there is no Makefile yet, we rely on a make rule to execute > # `config.status --recheck' to rerun these tests and create the > # libtool script then. >- test -f Makefile && make "$ltmain" >+ ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` >+ if test -f "$ltmain_in"; then >+ test -f Makefile && make "$ltmain" >+ fi > fi > > >@@ -15944,7 +17409,7 @@ > lt_simple_compile_test_code="class foo {}\n" > > # Code to be used in simple link tests >-lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n' >+lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' > > # ltmain only uses $CC for tagged configurations so make sure $CC is set. > >@@ -15955,22 +17420,49 @@ > compiler=$CC > > >+# save warnings/boilerplate of simple test code >+ac_outfile=conftest.$ac_objext >+printf "$lt_simple_compile_test_code" >conftest.$ac_ext >+eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err >+_lt_compiler_boilerplate=`cat conftest.err` >+$rm conftest* >+ >+ac_outfile=conftest.$ac_objext >+printf "$lt_simple_link_test_code" >conftest.$ac_ext >+eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err >+_lt_linker_boilerplate=`cat conftest.err` >+$rm conftest* >+ >+ > # Allow CC to be a program name with arguments. > lt_save_CC="$CC" > CC=${GCJ-"gcj"} > compiler=$CC > compiler_GCJ=$CC >+for cc_temp in $compiler""; do >+ case $cc_temp in >+ compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; >+ distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; >+ \-*) ;; >+ *) break;; >+ esac >+done >+cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` >+ > > # GCJ did not exist at the time GCC didn't implicitly link libc in. > archive_cmds_need_lc_GCJ=no > >+old_archive_cmds_GCJ=$old_archive_cmds >+ > > lt_prog_compiler_no_builtin_flag_GCJ= > > if test "$GCC" = yes; then > lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' > >- echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 >+ >+echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 > echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 > if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then > echo $ECHO_N "(cached) $ECHO_C" >&6 >@@ -15988,15 +17480,17 @@ > -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ > -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ > -e 's:$: $lt_compiler_flag:'` >- (eval echo "\"\$as_me:15991: $lt_compile\"" >&5) >+ (eval echo "\"\$as_me:17483: $lt_compile\"" >&5) > (eval "$lt_compile" 2>conftest.err) > ac_status=$? > cat conftest.err >&5 >- echo "$as_me:15995: \$? = $ac_status" >&5 >+ echo "$as_me:17487: \$? = $ac_status" >&5 > if (exit $ac_status) && test -s "$ac_outfile"; then > # The compiler can only warn and ignore the option if not recognized >- # So say no if there are warnings >- if test ! -s conftest.err; then >+ # So say no if there are warnings other than the usual output. >+ $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp >+ $SED '/^$/d' conftest.err >conftest.er2 >+ if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then > lt_cv_prog_compiler_rtti_exceptions=yes > fi > fi >@@ -16099,6 +17593,16 @@ > lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' > fi > ;; >+ darwin*) >+ # PIC is the default on this platform >+ # Common symbols not allowed in MH_DYLIB files >+ case $cc_basename in >+ xlc*) >+ lt_prog_compiler_pic_GCJ='-qnocommon' >+ lt_prog_compiler_wl_GCJ='-Wl,' >+ ;; >+ esac >+ ;; > > mingw* | pw32* | os2*) > # This hack is so that the source file can tell whether it is being >@@ -16134,13 +17638,20 @@ > ;; > > linux*) >- case $CC in >- icc|ecc) >+ case $cc_basename in >+ icc* | ecc*) > lt_prog_compiler_wl_GCJ='-Wl,' > lt_prog_compiler_pic_GCJ='-KPIC' > lt_prog_compiler_static_GCJ='-static' > ;; >- ccc) >+ pgcc* | pgf77* | pgf90*) >+ # Portland Group compilers (*not* the Pentium gcc compiler, >+ # which looks to be a dead project) >+ lt_prog_compiler_wl_GCJ='-Wl,' >+ lt_prog_compiler_pic_GCJ='-fpic' >+ lt_prog_compiler_static_GCJ='-static' >+ ;; >+ ccc*) > lt_prog_compiler_wl_GCJ='-Wl,' > # All Alpha code is PIC. > lt_prog_compiler_static_GCJ='-non_shared' >@@ -16160,9 +17671,14 @@ > ;; > > solaris*) >- lt_prog_compiler_wl_GCJ='-Wl,' > lt_prog_compiler_pic_GCJ='-KPIC' > lt_prog_compiler_static_GCJ='-Bstatic' >+ case $cc_basename in >+ f77* | f90* | f95*) >+ lt_prog_compiler_wl_GCJ='-Qoption ld ';; >+ *) >+ lt_prog_compiler_wl_GCJ='-Wl,';; >+ esac > ;; > > sunos4*) >@@ -16184,6 +17700,11 @@ > fi > ;; > >+ unicos*) >+ lt_prog_compiler_wl_GCJ='-Wl,' >+ lt_prog_compiler_can_build_shared_GCJ=no >+ ;; >+ > uts4*) > lt_prog_compiler_pic_GCJ='-pic' > lt_prog_compiler_static_GCJ='-Bstatic' >@@ -16202,7 +17723,8 @@ > # Check to make sure the PIC flag actually works. > # > if test -n "$lt_prog_compiler_pic_GCJ"; then >- echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 >+ >+echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 > echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 > if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then > echo $ECHO_N "(cached) $ECHO_C" >&6 >@@ -16220,15 +17742,17 @@ > -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ > -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ > -e 's:$: $lt_compiler_flag:'` >- (eval echo "\"\$as_me:16223: $lt_compile\"" >&5) >+ (eval echo "\"\$as_me:17745: $lt_compile\"" >&5) > (eval "$lt_compile" 2>conftest.err) > ac_status=$? > cat conftest.err >&5 >- echo "$as_me:16227: \$? = $ac_status" >&5 >+ echo "$as_me:17749: \$? = $ac_status" >&5 > if (exit $ac_status) && test -s "$ac_outfile"; then > # The compiler can only warn and ignore the option if not recognized >- # So say no if there are warnings >- if test ! -s conftest.err; then >+ # So say no if there are warnings other than the usual output. >+ $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp >+ $SED '/^$/d' conftest.err >conftest.er2 >+ if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then > lt_prog_compiler_pic_works_GCJ=yes > fi > fi >@@ -16271,13 +17795,6 @@ > mkdir out > printf "$lt_simple_compile_test_code" > conftest.$ac_ext > >- # According to Tom Tromey, Ian Lance Taylor reported there are C compilers >- # that will create temporary files in the current directory regardless of >- # the output directory. Thus, making CWD read-only will cause this test >- # to fail, enabling locking or at least warning the user not to do parallel >- # builds. >- chmod -w . >- > lt_compiler_flag="-o out/conftest2.$ac_objext" > # Insert the option either (1) after the last *FLAGS variable, or > # (2) before a word containing "conftest.", or (3) at the end. >@@ -16287,22 +17804,27 @@ > -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ > -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ > -e 's:$: $lt_compiler_flag:'` >- (eval echo "\"\$as_me:16290: $lt_compile\"" >&5) >+ (eval echo "\"\$as_me:17807: $lt_compile\"" >&5) > (eval "$lt_compile" 2>out/conftest.err) > ac_status=$? > cat out/conftest.err >&5 >- echo "$as_me:16294: \$? = $ac_status" >&5 >+ echo "$as_me:17811: \$? = $ac_status" >&5 > if (exit $ac_status) && test -s out/conftest2.$ac_objext > then > # The compiler can only warn and ignore the option if not recognized > # So say no if there are warnings >- if test ! -s out/conftest.err; then >+ $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp >+ $SED '/^$/d' out/conftest.err >out/conftest.er2 >+ if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then > lt_cv_prog_compiler_c_o_GCJ=yes > fi > fi > chmod u+w . >- $rm conftest* out/* >- rmdir out >+ $rm conftest* >+ # SGI C++ compiler will create directory out/ii_files/ for >+ # template instantiation >+ test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files >+ $rm out/* && rmdir out > cd .. > rmdir conftest > $rm conftest* >@@ -16373,6 +17895,16 @@ > # rely on this symbol name, it's probably fine to never include it in > # preloaded symbol tables. > extract_expsyms_cmds= >+ # Just being paranoid about ensuring that cc_basename is set. >+ for cc_temp in $compiler""; do >+ case $cc_temp in >+ compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; >+ distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; >+ \-*) ;; >+ *) break;; >+ esac >+done >+cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` > > case $host_os in > cygwin* | mingw* | pw32*) >@@ -16393,6 +17925,27 @@ > # If archive_cmds runs LD, not CC, wlarc should be empty > wlarc='${wl}' > >+ # Set some defaults for GNU ld with shared library support. These >+ # are reset later if shared libraries are not supported. Putting them >+ # here allows them to be overridden if necessary. >+ runpath_var=LD_RUN_PATH >+ hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' >+ export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' >+ # ancient GNU ld didn't support --whole-archive et. al. >+ if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then >+ whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' >+ else >+ whole_archive_flag_spec_GCJ= >+ fi >+ supports_anon_versioning=no >+ case `$LD -v 2>/dev/null` in >+ *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 >+ *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... >+ *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... >+ *\ 2.11.*) ;; # other 2.11 versions >+ *) supports_anon_versioning=yes ;; >+ esac >+ > # See if GNU ld supports shared libraries. > case $host_os in > aix3* | aix4* | aix5*) >@@ -16443,7 +17996,7 @@ > allow_undefined_flag_GCJ=unsupported > always_export_symbols_GCJ=no > enable_shared_with_static_runtimes_GCJ=yes >- export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' >+ export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' > > if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then > archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' >@@ -16457,7 +18010,38 @@ > fi~ > $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' > else >- ld_shlibs=no >+ ld_shlibs_GCJ=no >+ fi >+ ;; >+ >+ linux*) >+ if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then >+ tmp_addflag= >+ case $cc_basename,$host_cpu in >+ pgcc*) # Portland Group C compiler >+ whole_archive_flag_spec_GCJ='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' >+ tmp_addflag=' $pic_flag' >+ ;; >+ pgf77* | pgf90* ) # Portland Group f77 and f90 compilers >+ whole_archive_flag_spec_GCJ='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' >+ tmp_addflag=' $pic_flag -Mnomain' ;; >+ ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 >+ tmp_addflag=' -i_dynamic' ;; >+ efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 >+ tmp_addflag=' -i_dynamic -nofor_main' ;; >+ ifc* | ifort*) # Intel Fortran compiler >+ tmp_addflag=' -nofor_main' ;; >+ esac >+ archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' >+ >+ if test $supports_anon_versioning = yes; then >+ archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ >+ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ >+ $echo "local: *; };" >> $output_objdir/$libname.ver~ >+ $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' >+ fi >+ else >+ ld_shlibs_GCJ=no > fi > ;; > >@@ -16509,16 +18093,11 @@ > ;; > esac > >- if test "$ld_shlibs_GCJ" = yes; then >- runpath_var=LD_RUN_PATH >- hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' >- export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' >- # ancient GNU ld didn't support --whole-archive et. al. >- if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then >- whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' >- else >- whole_archive_flag_spec_GCJ= >- fi >+ if test "$ld_shlibs_GCJ" = no; then >+ runpath_var= >+ hardcode_libdir_flag_spec_GCJ= >+ export_dynamic_flag_spec_GCJ= >+ whole_archive_flag_spec_GCJ= > fi > else > # PORTME fill in a description of your system's linker (not GNU ld) >@@ -16582,7 +18161,7 @@ > link_all_deplibs_GCJ=yes > > if test "$GCC" = yes; then >- case $host_os in aix4.012|aix4.012.*) >+ case $host_os in aix4.[012]|aix4.[012].*) > # We only want to do this on AIX 4.2 and lower, the check > # below for broken collect2 doesn't work under 4.3+ > collect2name=`${CC} -print-prog-name=collect2` >@@ -16603,6 +18182,9 @@ > fi > esac > shared_flag='-shared' >+ if test "$aix_use_runtimelinking" = yes; then >+ shared_flag="$shared_flag "'${wl}-G' >+ fi > else > # not using gcc > if test "$host_cpu" = ia64; then >@@ -16627,7 +18209,6 @@ > allow_undefined_flag_GCJ='-berok' > # Determine the default libpath from the value encoded in an empty executable. > cat >conftest.$ac_ext <<_ACEOF >-#line $LINENO "configure" > /* confdefs.h. */ > _ACEOF > cat confdefs.h >>conftest.$ac_ext >@@ -16644,11 +18225,21 @@ > _ACEOF > rm -f conftest.$ac_objext conftest$ac_exeext > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 >- (eval $ac_link) 2>&5 >+ (eval $ac_link) 2>conftest.er1 > ac_status=$? >+ grep -v '^ *+' conftest.er1 >conftest.err >+ rm -f conftest.er1 >+ cat conftest.err >&5 > echo "$as_me:$LINENO: \$? = $ac_status" >&5 > (exit $ac_status); } && >- { ac_try='test -s conftest$ac_exeext' >+ { ac_try='test -z "$ac_c_werror_flag" >+ || test ! -s conftest.err' >+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 >+ (eval $ac_try) 2>&5 >+ ac_status=$? >+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 >+ (exit $ac_status); }; } && >+ { ac_try='test -s conftest$ac_exeext' > { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 > (eval $ac_try) 2>&5 > ac_status=$? >@@ -16665,7 +18256,8 @@ > sed 's/^/| /' conftest.$ac_ext >&5 > > fi >-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext >+rm -f conftest.err conftest.$ac_objext \ >+ conftest$ac_exeext conftest.$ac_ext > if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi > > hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" >@@ -16678,7 +18270,6 @@ > else > # Determine the default libpath from the value encoded in an empty executable. > cat >conftest.$ac_ext <<_ACEOF >-#line $LINENO "configure" > /* confdefs.h. */ > _ACEOF > cat confdefs.h >>conftest.$ac_ext >@@ -16695,11 +18286,21 @@ > _ACEOF > rm -f conftest.$ac_objext conftest$ac_exeext > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 >- (eval $ac_link) 2>&5 >+ (eval $ac_link) 2>conftest.er1 > ac_status=$? >+ grep -v '^ *+' conftest.er1 >conftest.err >+ rm -f conftest.er1 >+ cat conftest.err >&5 > echo "$as_me:$LINENO: \$? = $ac_status" >&5 > (exit $ac_status); } && >- { ac_try='test -s conftest$ac_exeext' >+ { ac_try='test -z "$ac_c_werror_flag" >+ || test ! -s conftest.err' >+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 >+ (eval $ac_try) 2>&5 >+ ac_status=$? >+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 >+ (exit $ac_status); }; } && >+ { ac_try='test -s conftest$ac_exeext' > { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 > (eval $ac_try) 2>&5 > ac_status=$? >@@ -16716,7 +18317,8 @@ > sed 's/^/| /' conftest.$ac_ext >&5 > > fi >-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext >+rm -f conftest.err conftest.$ac_objext \ >+ conftest$ac_exeext conftest.$ac_ext > if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi > > hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" >@@ -16743,7 +18345,7 @@ > ld_shlibs_GCJ=no > ;; > >- bsdi4*) >+ bsdi[45]*) > export_dynamic_flag_spec_GCJ=-rdynamic > ;; > >@@ -16757,55 +18359,64 @@ > # Tell ltmain to make .lib files, not .a files. > libext=lib > # Tell ltmain to make .dll files, not .so files. >- shrext=".dll" >+ shrext_cmds=".dll" > # FIXME: Setting linknames here is a bad hack. > archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' > # The linker will automatically build a .lib file if we build a DLL. > old_archive_From_new_cmds_GCJ='true' > # FIXME: Should let the user specify the lib program. > old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' >- fix_srcfile_path='`cygpath -w "$srcfile"`' >+ fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' > enable_shared_with_static_runtimes_GCJ=yes > ;; > > darwin* | rhapsody*) >- if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then >- archive_cmds_need_lc_GCJ=no > case "$host_os" in >- rhapsody* | darwin1.[012]) >- allow_undefined_flag_GCJ='-undefined suppress' >- ;; >- *) # Darwin 1.3 on >- test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress' >- ;; >+ rhapsody* | darwin1.[012]) >+ allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' >+ ;; >+ *) # Darwin 1.3 on >+ if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then >+ allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' >+ else >+ case ${MACOSX_DEPLOYMENT_TARGET} in >+ 10.[012]) >+ allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' >+ ;; >+ 10.*) >+ allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' >+ ;; >+ esac >+ fi >+ ;; > esac >- # FIXME: Relying on posixy $() will cause problems for >- # cross-compilation, but unfortunately the echo tests do not >- # yet detect zsh echo's removal of \ escapes. Also zsh mangles >- # `"' quotes if we put them in here... so don't! >- lt_int_apple_cc_single_mod=no >- output_verbose_link_cmd='echo' >- if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then >- lt_int_apple_cc_single_mod=yes >- fi >- if test "X$lt_int_apple_cc_single_mod" = Xyes ; then >- archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' >- else >- archive_cmds_GCJ='$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' >- fi >- module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags' >- # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's >- if test "X$lt_int_apple_cc_single_mod" = Xyes ; then >- archive_expsym_cmds_GCJ='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}' >- else >- archive_expsym_cmds_GCJ='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}' >- fi >- module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' >+ archive_cmds_need_lc_GCJ=no > hardcode_direct_GCJ=no > hardcode_automatic_GCJ=yes > hardcode_shlibpath_var_GCJ=unsupported >- whole_archive_flag_spec_GCJ='-all_load $convenience' >+ whole_archive_flag_spec_GCJ='' > link_all_deplibs_GCJ=yes >+ if test "$GCC" = yes ; then >+ output_verbose_link_cmd='echo' >+ archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' >+ module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' >+ # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's >+ archive_expsym_cmds_GCJ='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}' >+ module_expsym_cmds_GCJ='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}' >+ else >+ case $cc_basename in >+ xlc*) >+ output_verbose_link_cmd='echo' >+ archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' >+ module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' >+ # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's >+ archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' >+ module_expsym_cmds_GCJ='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}' >+ ;; >+ *) >+ ld_shlibs_GCJ=no >+ ;; >+ esac > fi > ;; > >@@ -16839,7 +18450,7 @@ > ;; > > # FreeBSD 3 and greater uses gcc -shared to do shared libraries. >- freebsd*) >+ freebsd* | kfreebsd*-gnu | dragonfly*) > archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' > hardcode_libdir_flag_spec_GCJ='-R$libdir' > hardcode_direct_GCJ=yes >@@ -16950,6 +18561,7 @@ > hardcode_shlibpath_var_GCJ=no > if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then > archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' >+ archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' > hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' > export_dynamic_flag_spec_GCJ='${wl}-E' > else >@@ -16995,7 +18607,7 @@ > allow_undefined_flag_GCJ=' -expect_unresolved \*' > archive_cmds_GCJ='$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' > archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ >- $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' >+ $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' > > # Both c and cxx compiler support -rpath directly > hardcode_libdir_flag_spec_GCJ='-rpath $libdir' >@@ -17014,10 +18626,12 @@ > solaris*) > no_undefined_flag_GCJ=' -z text' > if test "$GCC" = yes; then >+ wlarc='${wl}' > archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' > archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ > $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' > else >+ wlarc='' > archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' > archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ > $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' >@@ -17026,8 +18640,18 @@ > hardcode_shlibpath_var_GCJ=no > case $host_os in > solaris2.[0-5] | solaris2.[0-5].*) ;; >- *) # Supported since Solaris 2.6 (maybe 2.5.1?) >- whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; >+ *) >+ # The compiler driver will combine linker options so we >+ # cannot just pass the convience library names through >+ # without $wl, iff we do not link with $LD. >+ # Luckily, gcc supports the same syntax we need for Sun Studio. >+ # Supported since Solaris 2.6 (maybe 2.5.1?) >+ case $wlarc in >+ '') >+ whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; >+ *) >+ whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; >+ esac ;; > esac > link_all_deplibs_GCJ=yes > ;; >@@ -17199,78 +18823,12 @@ > ;; > esac > >-echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 >-echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 >-hardcode_action_GCJ= >-if test -n "$hardcode_libdir_flag_spec_GCJ" || \ >- test -n "$runpath_var GCJ" || \ >- test "X$hardcode_automatic_GCJ"="Xyes" ; then >- >- # We can hardcode non-existant directories. >- if test "$hardcode_direct_GCJ" != no && >- # If the only mechanism to avoid hardcoding is shlibpath_var, we >- # have to relink, otherwise we might link with an installed library >- # when we should be linking with a yet-to-be-installed one >- ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && >- test "$hardcode_minus_L_GCJ" != no; then >- # Linking always hardcodes the temporary library directory. >- hardcode_action_GCJ=relink >- else >- # We can link without hardcoding, and we can hardcode nonexisting dirs. >- hardcode_action_GCJ=immediate >- fi >-else >- # We cannot hardcode anything, or else we can only hardcode existing >- # directories. >- hardcode_action_GCJ=unsupported >-fi >-echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 >-echo "${ECHO_T}$hardcode_action_GCJ" >&6 >- >-if test "$hardcode_action_GCJ" = relink; then >- # Fast installation is not supported >- enable_fast_install=no >-elif test "$shlibpath_overrides_runpath" = yes || >- test "$enable_shared" = no; then >- # Fast installation is not necessary >- enable_fast_install=needless >-fi >- >-striplib= >-old_striplib= >-echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 >-echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 >-if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then >- test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" >- test -z "$striplib" && striplib="$STRIP --strip-unneeded" >- echo "$as_me:$LINENO: result: yes" >&5 >-echo "${ECHO_T}yes" >&6 >-else >-# FIXME - insert some real tests, host_os isn't really good enough >- case $host_os in >- darwin*) >- if test -n "$STRIP" ; then >- striplib="$STRIP -x" >- echo "$as_me:$LINENO: result: yes" >&5 >-echo "${ECHO_T}yes" >&6 >- else >- echo "$as_me:$LINENO: result: no" >&5 >-echo "${ECHO_T}no" >&6 >-fi >- ;; >- *) >- echo "$as_me:$LINENO: result: no" >&5 >-echo "${ECHO_T}no" >&6 >- ;; >- esac >-fi >- > echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 > echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 > library_names_spec= > libname_spec='lib$name' > soname_spec= >-shrext=".so" >+shrext_cmds=".so" > postinstall_cmds= > postuninstall_cmds= > finish_cmds= >@@ -17358,7 +18916,7 @@ > amigaos*) > library_names_spec='$libname.ixlibrary $libname.a' > # Create ${libname}_ixlibrary.a entries in /sys/libs. >- 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' >+ 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' > ;; > > beos*) >@@ -17367,7 +18925,7 @@ > shlibpath_var=LIBRARY_PATH > ;; > >-bsdi4*) >+bsdi[45]*) > version_type=linux > need_version=no > library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' >@@ -17383,7 +18941,7 @@ > > cygwin* | mingw* | pw32*) > version_type=windows >- shrext=".dll" >+ shrext_cmds=".dll" > need_version=no > need_lib_prefix=no > >@@ -17405,7 +18963,7 @@ > cygwin*) > # Cygwin DLLs use 'cyg' prefix rather than 'lib' > soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' >- sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib" >+ sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" > ;; > mingw*) > # MinGW DLLs use traditional 'lib' prefix >@@ -17425,11 +18983,35 @@ > ;; > pw32*) > # pw32 DLLs use 'pw' prefix rather than 'lib' >- library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' >+ library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' > ;; > esac > ;; > >+ linux*) >+ if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then >+ archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' >+ supports_anon_versioning=no >+ case `$LD -v 2>/dev/null` in >+ *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 >+ *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... >+ *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... >+ *\ 2.11.*) ;; # other 2.11 versions >+ *) supports_anon_versioning=yes ;; >+ esac >+ if test $supports_anon_versioning = yes; then >+ archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ >+cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ >+$echo "local: *; };" >> $output_objdir/$libname.ver~ >+ $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' >+ else >+ $archive_expsym_cmds="$archive_cmds" >+ fi >+ else >+ ld_shlibs=no >+ fi >+ ;; >+ > *) > library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' > ;; >@@ -17444,17 +19026,16 @@ > version_type=darwin > need_lib_prefix=no > need_version=no >- # FIXME: Relying on posixy $() will cause problems for >- # cross-compilation, but unfortunately the echo tests do not >- # yet detect zsh echo's removal of \ escapes. > library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' > soname_spec='${libname}${release}${major}$shared_ext' > shlibpath_overrides_runpath=yes > shlibpath_var=DYLD_LIBRARY_PATH >- shrext='$(test .$module = .yes && echo .so || echo .dylib)' >+ shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' > # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. >- if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then >- 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"` >+ if test "$GCC" = yes; then >+ 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"` >+ else >+ sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' > fi > sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' > ;; >@@ -17472,7 +19053,21 @@ > dynamic_linker=no > ;; > >-freebsd*) >+kfreebsd*-gnu) >+ version_type=linux >+ need_lib_prefix=no >+ need_version=no >+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' >+ soname_spec='${libname}${release}${shared_ext}$major' >+ shlibpath_var=LD_LIBRARY_PATH >+ shlibpath_overrides_runpath=no >+ hardcode_into_libs=yes >+ dynamic_linker='GNU ld.so' >+ ;; >+ >+freebsd* | dragonfly*) >+ # DragonFly does not have aout. When/if they implement a new >+ # versioning mechanism, adjust this. > objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` > version_type=freebsd-$objformat > case $version_type in >@@ -17491,7 +19086,7 @@ > freebsd2*) > shlibpath_overrides_runpath=yes > ;; >- freebsd3.01* | freebsdelf3.01*) >+ freebsd3.[01]* | freebsdelf3.[01]*) > shlibpath_overrides_runpath=yes > hardcode_into_libs=yes > ;; >@@ -17520,7 +19115,7 @@ > need_version=no > case "$host_cpu" in > ia64*) >- shrext='.so' >+ shrext_cmds='.so' > hardcode_into_libs=yes > dynamic_linker="$host_os dld.so" > shlibpath_var=LD_LIBRARY_PATH >@@ -17535,7 +19130,7 @@ > sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec > ;; > hppa*64*) >- shrext='.sl' >+ shrext_cmds='.sl' > hardcode_into_libs=yes > dynamic_linker="$host_os dld.sl" > shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH >@@ -17546,7 +19141,7 @@ > sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec > ;; > *) >- shrext='.sl' >+ shrext_cmds='.sl' > dynamic_linker="$host_os dld.sl" > shlibpath_var=SHLIB_PATH > shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH >@@ -17610,25 +19205,67 @@ > finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' > shlibpath_var=LD_LIBRARY_PATH > shlibpath_overrides_runpath=no >- # This implies no fast_install, which is unacceptable. >- # Some rework will be needed to allow for fast_install >- # before this can be enabled. >+ # This implies no fast_install, which is unacceptable. >+ # Some rework will be needed to allow for fast_install >+ # before this can be enabled. >+ hardcode_into_libs=yes >+ >+ # Append ld.so.conf contents to the search path >+ if test -f /etc/ld.so.conf; then >+ lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` >+ sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" >+ fi >+ >+ case $host_cpu:$lt_cv_cc_64bit_output in >+ powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes) >+ sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64" >+ sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64" >+ ;; >+ esac >+ >+ # We used to test for /lib/ld.so.1 and disable shared libraries on >+ # powerpc, because MkLinux only supported shared libraries with the >+ # GNU dynamic linker. Since this was broken with cross compilers, >+ # most powerpc-linux boxes support dynamic linking these days and >+ # people can always --disable-shared, the test was removed, and we >+ # assume the GNU/Linux dynamic linker is in use. >+ dynamic_linker='GNU/Linux ld.so' >+ >+ # Find out which ABI we are using (multilib Linux x86_64 hack). >+ libsuff= >+ case "$host_cpu" in >+ x86_64*) >+ echo '#line 19238 "configure"' > conftest.$ac_ext >+ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 >+ (eval $ac_compile) 2>&5 >+ ac_status=$? >+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 >+ (exit $ac_status); }; then >+ case `/usr/bin/file conftest.$ac_objext` in >+ *64-bit*) >+ libsuff=64 >+ ;; >+ esac >+ fi >+ rm -rf conftest* >+ ;; >+ *) >+ ;; >+ esac >+ sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}" >+ sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" >+ ;; >+ >+knetbsd*-gnu) >+ version_type=linux >+ need_lib_prefix=no >+ need_version=no >+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' >+ soname_spec='${libname}${release}${shared_ext}$major' >+ shlibpath_var=LD_LIBRARY_PATH >+ shlibpath_overrides_runpath=no > hardcode_into_libs=yes >- >- case $LD in # libtool.m4 will add one of these switches to LD >- *"-m elf_x86_64"*|*"-m elf64ppc"*|*"-m elf64_s390"*|*"-m elf64_sparc"*) >- sys_lib_dlsearch_path_spec="/lib64 /usr/lib64" >- sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64" >- ;; >- esac >- >- # We used to test for /lib/ld.so.1 and disable shared libraries on >- # powerpc, because MkLinux only supported shared libraries with the >- # GNU dynamic linker. Since this was broken with cross compilers, >- # most powerpc-linux boxes support dynamic linking these days and >- # people can always --disable-shared, the test was removed, and we >- # assume the GNU/Linux dynamic linker is in use. >- dynamic_linker='GNU/Linux ld.so' >+ dynamic_linker='GNU ld.so' > ;; > > netbsd*) >@@ -17640,7 +19277,7 @@ > finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' > dynamic_linker='NetBSD (a.out) ld.so' > else >- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}' >+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' > soname_spec='${libname}${release}${shared_ext}$major' > dynamic_linker='NetBSD ld.elf_so' > fi >@@ -17656,7 +19293,7 @@ > shlibpath_overrides_runpath=yes > ;; > >-nto-qnx) >+nto-qnx*) > version_type=linux > need_lib_prefix=no > need_version=no >@@ -17669,7 +19306,11 @@ > openbsd*) > version_type=sunos > need_lib_prefix=no >- need_version=no >+ # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. >+ case $host_os in >+ openbsd3.3 | openbsd3.3.*) need_version=yes ;; >+ *) need_version=no ;; >+ esac > library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' > finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' > shlibpath_var=LD_LIBRARY_PATH >@@ -17689,7 +19330,7 @@ > > os2*) > libname_spec='$name' >- shrext=".dll" >+ shrext_cmds=".dll" > need_lib_prefix=no > library_names_spec='$libname${shared_ext} $libname.a' > dynamic_linker='OS/2 ld.exe' >@@ -17787,6 +19428,72 @@ > echo "${ECHO_T}$dynamic_linker" >&6 > test "$dynamic_linker" = no && can_build_shared=no > >+echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 >+echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 >+hardcode_action_GCJ= >+if test -n "$hardcode_libdir_flag_spec_GCJ" || \ >+ test -n "$runpath_var_GCJ" || \ >+ test "X$hardcode_automatic_GCJ" = "Xyes" ; then >+ >+ # We can hardcode non-existant directories. >+ if test "$hardcode_direct_GCJ" != no && >+ # If the only mechanism to avoid hardcoding is shlibpath_var, we >+ # have to relink, otherwise we might link with an installed library >+ # when we should be linking with a yet-to-be-installed one >+ ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && >+ test "$hardcode_minus_L_GCJ" != no; then >+ # Linking always hardcodes the temporary library directory. >+ hardcode_action_GCJ=relink >+ else >+ # We can link without hardcoding, and we can hardcode nonexisting dirs. >+ hardcode_action_GCJ=immediate >+ fi >+else >+ # We cannot hardcode anything, or else we can only hardcode existing >+ # directories. >+ hardcode_action_GCJ=unsupported >+fi >+echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 >+echo "${ECHO_T}$hardcode_action_GCJ" >&6 >+ >+if test "$hardcode_action_GCJ" = relink; then >+ # Fast installation is not supported >+ enable_fast_install=no >+elif test "$shlibpath_overrides_runpath" = yes || >+ test "$enable_shared" = no; then >+ # Fast installation is not necessary >+ enable_fast_install=needless >+fi >+ >+striplib= >+old_striplib= >+echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 >+echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 >+if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then >+ test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" >+ test -z "$striplib" && striplib="$STRIP --strip-unneeded" >+ echo "$as_me:$LINENO: result: yes" >&5 >+echo "${ECHO_T}yes" >&6 >+else >+# FIXME - insert some real tests, host_os isn't really good enough >+ case $host_os in >+ darwin*) >+ if test -n "$STRIP" ; then >+ striplib="$STRIP -x" >+ echo "$as_me:$LINENO: result: yes" >&5 >+echo "${ECHO_T}yes" >&6 >+ else >+ echo "$as_me:$LINENO: result: no" >&5 >+echo "${ECHO_T}no" >&6 >+fi >+ ;; >+ *) >+ echo "$as_me:$LINENO: result: no" >&5 >+echo "${ECHO_T}no" >&6 >+ ;; >+ esac >+fi >+ > if test "x$enable_dlopen" != xyes; then > enable_dlopen=unknown > enable_dlopen_self=unknown >@@ -17822,7 +19529,6 @@ > ac_check_lib_save_LIBS=$LIBS > LIBS="-ldl $LIBS" > cat >conftest.$ac_ext <<_ACEOF >-#line $LINENO "configure" > /* confdefs.h. */ > _ACEOF > cat confdefs.h >>conftest.$ac_ext >@@ -17846,11 +19552,21 @@ > _ACEOF > rm -f conftest.$ac_objext conftest$ac_exeext > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 >- (eval $ac_link) 2>&5 >+ (eval $ac_link) 2>conftest.er1 > ac_status=$? >+ grep -v '^ *+' conftest.er1 >conftest.err >+ rm -f conftest.er1 >+ cat conftest.err >&5 > echo "$as_me:$LINENO: \$? = $ac_status" >&5 > (exit $ac_status); } && >- { ac_try='test -s conftest$ac_exeext' >+ { ac_try='test -z "$ac_c_werror_flag" >+ || test ! -s conftest.err' >+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 >+ (eval $ac_try) 2>&5 >+ ac_status=$? >+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 >+ (exit $ac_status); }; } && >+ { ac_try='test -s conftest$ac_exeext' > { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 > (eval $ac_try) 2>&5 > ac_status=$? >@@ -17863,7 +19579,8 @@ > > ac_cv_lib_dl_dlopen=no > fi >-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext >+rm -f conftest.err conftest.$ac_objext \ >+ conftest$ac_exeext conftest.$ac_ext > LIBS=$ac_check_lib_save_LIBS > fi > echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 >@@ -17887,21 +19604,28 @@ > echo $ECHO_N "(cached) $ECHO_C" >&6 > else > cat >conftest.$ac_ext <<_ACEOF >-#line $LINENO "configure" > /* confdefs.h. */ > _ACEOF > cat confdefs.h >>conftest.$ac_ext > cat >>conftest.$ac_ext <<_ACEOF > /* end confdefs.h. */ >+/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. >+ For example, HP-UX 11i <limits.h> declares gettimeofday. */ >+#define shl_load innocuous_shl_load >+ > /* System header to define __stub macros and hopefully few prototypes, > which can conflict with char shl_load (); below. > Prefer <limits.h> to <assert.h> if __STDC__ is defined, since > <limits.h> exists even on freestanding compilers. */ >+ > #ifdef __STDC__ > # include <limits.h> > #else > # include <assert.h> > #endif >+ >+#undef shl_load >+ > /* Override any gcc2 internal prototype to avoid an error. */ > #ifdef __cplusplus > extern "C" >@@ -17932,11 +19656,21 @@ > _ACEOF > rm -f conftest.$ac_objext conftest$ac_exeext > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 >- (eval $ac_link) 2>&5 >+ (eval $ac_link) 2>conftest.er1 > ac_status=$? >+ grep -v '^ *+' conftest.er1 >conftest.err >+ rm -f conftest.er1 >+ cat conftest.err >&5 > echo "$as_me:$LINENO: \$? = $ac_status" >&5 > (exit $ac_status); } && >- { ac_try='test -s conftest$ac_exeext' >+ { ac_try='test -z "$ac_c_werror_flag" >+ || test ! -s conftest.err' >+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 >+ (eval $ac_try) 2>&5 >+ ac_status=$? >+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 >+ (exit $ac_status); }; } && >+ { ac_try='test -s conftest$ac_exeext' > { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 > (eval $ac_try) 2>&5 > ac_status=$? >@@ -17949,7 +19683,8 @@ > > ac_cv_func_shl_load=no > fi >-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext >+rm -f conftest.err conftest.$ac_objext \ >+ conftest$ac_exeext conftest.$ac_ext > fi > echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 > echo "${ECHO_T}$ac_cv_func_shl_load" >&6 >@@ -17964,7 +19699,6 @@ > ac_check_lib_save_LIBS=$LIBS > LIBS="-ldld $LIBS" > cat >conftest.$ac_ext <<_ACEOF >-#line $LINENO "configure" > /* confdefs.h. */ > _ACEOF > cat confdefs.h >>conftest.$ac_ext >@@ -17988,11 +19722,21 @@ > _ACEOF > rm -f conftest.$ac_objext conftest$ac_exeext > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 >- (eval $ac_link) 2>&5 >+ (eval $ac_link) 2>conftest.er1 > ac_status=$? >+ grep -v '^ *+' conftest.er1 >conftest.err >+ rm -f conftest.er1 >+ cat conftest.err >&5 > echo "$as_me:$LINENO: \$? = $ac_status" >&5 > (exit $ac_status); } && >- { ac_try='test -s conftest$ac_exeext' >+ { ac_try='test -z "$ac_c_werror_flag" >+ || test ! -s conftest.err' >+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 >+ (eval $ac_try) 2>&5 >+ ac_status=$? >+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 >+ (exit $ac_status); }; } && >+ { ac_try='test -s conftest$ac_exeext' > { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 > (eval $ac_try) 2>&5 > ac_status=$? >@@ -18005,7 +19749,8 @@ > > ac_cv_lib_dld_shl_load=no > fi >-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext >+rm -f conftest.err conftest.$ac_objext \ >+ conftest$ac_exeext conftest.$ac_ext > LIBS=$ac_check_lib_save_LIBS > fi > echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 >@@ -18019,21 +19764,28 @@ > echo $ECHO_N "(cached) $ECHO_C" >&6 > else > cat >conftest.$ac_ext <<_ACEOF >-#line $LINENO "configure" > /* confdefs.h. */ > _ACEOF > cat confdefs.h >>conftest.$ac_ext > cat >>conftest.$ac_ext <<_ACEOF > /* end confdefs.h. */ >+/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. >+ For example, HP-UX 11i <limits.h> declares gettimeofday. */ >+#define dlopen innocuous_dlopen >+ > /* System header to define __stub macros and hopefully few prototypes, > which can conflict with char dlopen (); below. > Prefer <limits.h> to <assert.h> if __STDC__ is defined, since > <limits.h> exists even on freestanding compilers. */ >+ > #ifdef __STDC__ > # include <limits.h> > #else > # include <assert.h> > #endif >+ >+#undef dlopen >+ > /* Override any gcc2 internal prototype to avoid an error. */ > #ifdef __cplusplus > extern "C" >@@ -18064,11 +19816,21 @@ > _ACEOF > rm -f conftest.$ac_objext conftest$ac_exeext > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 >- (eval $ac_link) 2>&5 >+ (eval $ac_link) 2>conftest.er1 > ac_status=$? >+ grep -v '^ *+' conftest.er1 >conftest.err >+ rm -f conftest.er1 >+ cat conftest.err >&5 > echo "$as_me:$LINENO: \$? = $ac_status" >&5 > (exit $ac_status); } && >- { ac_try='test -s conftest$ac_exeext' >+ { ac_try='test -z "$ac_c_werror_flag" >+ || test ! -s conftest.err' >+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 >+ (eval $ac_try) 2>&5 >+ ac_status=$? >+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 >+ (exit $ac_status); }; } && >+ { ac_try='test -s conftest$ac_exeext' > { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 > (eval $ac_try) 2>&5 > ac_status=$? >@@ -18081,7 +19843,8 @@ > > ac_cv_func_dlopen=no > fi >-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext >+rm -f conftest.err conftest.$ac_objext \ >+ conftest$ac_exeext conftest.$ac_ext > fi > echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 > echo "${ECHO_T}$ac_cv_func_dlopen" >&6 >@@ -18096,7 +19859,6 @@ > ac_check_lib_save_LIBS=$LIBS > LIBS="-ldl $LIBS" > cat >conftest.$ac_ext <<_ACEOF >-#line $LINENO "configure" > /* confdefs.h. */ > _ACEOF > cat confdefs.h >>conftest.$ac_ext >@@ -18120,11 +19882,21 @@ > _ACEOF > rm -f conftest.$ac_objext conftest$ac_exeext > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 >- (eval $ac_link) 2>&5 >+ (eval $ac_link) 2>conftest.er1 > ac_status=$? >+ grep -v '^ *+' conftest.er1 >conftest.err >+ rm -f conftest.er1 >+ cat conftest.err >&5 > echo "$as_me:$LINENO: \$? = $ac_status" >&5 > (exit $ac_status); } && >- { ac_try='test -s conftest$ac_exeext' >+ { ac_try='test -z "$ac_c_werror_flag" >+ || test ! -s conftest.err' >+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 >+ (eval $ac_try) 2>&5 >+ ac_status=$? >+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 >+ (exit $ac_status); }; } && >+ { ac_try='test -s conftest$ac_exeext' > { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 > (eval $ac_try) 2>&5 > ac_status=$? >@@ -18137,7 +19909,8 @@ > > ac_cv_lib_dl_dlopen=no > fi >-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext >+rm -f conftest.err conftest.$ac_objext \ >+ conftest$ac_exeext conftest.$ac_ext > LIBS=$ac_check_lib_save_LIBS > fi > echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 >@@ -18153,7 +19926,6 @@ > ac_check_lib_save_LIBS=$LIBS > LIBS="-lsvld $LIBS" > cat >conftest.$ac_ext <<_ACEOF >-#line $LINENO "configure" > /* confdefs.h. */ > _ACEOF > cat confdefs.h >>conftest.$ac_ext >@@ -18177,11 +19949,21 @@ > _ACEOF > rm -f conftest.$ac_objext conftest$ac_exeext > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 >- (eval $ac_link) 2>&5 >+ (eval $ac_link) 2>conftest.er1 > ac_status=$? >+ grep -v '^ *+' conftest.er1 >conftest.err >+ rm -f conftest.er1 >+ cat conftest.err >&5 > echo "$as_me:$LINENO: \$? = $ac_status" >&5 > (exit $ac_status); } && >- { ac_try='test -s conftest$ac_exeext' >+ { ac_try='test -z "$ac_c_werror_flag" >+ || test ! -s conftest.err' >+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 >+ (eval $ac_try) 2>&5 >+ ac_status=$? >+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 >+ (exit $ac_status); }; } && >+ { ac_try='test -s conftest$ac_exeext' > { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 > (eval $ac_try) 2>&5 > ac_status=$? >@@ -18194,7 +19976,8 @@ > > ac_cv_lib_svld_dlopen=no > fi >-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext >+rm -f conftest.err conftest.$ac_objext \ >+ conftest$ac_exeext conftest.$ac_ext > LIBS=$ac_check_lib_save_LIBS > fi > echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 >@@ -18210,7 +19993,6 @@ > ac_check_lib_save_LIBS=$LIBS > LIBS="-ldld $LIBS" > cat >conftest.$ac_ext <<_ACEOF >-#line $LINENO "configure" > /* confdefs.h. */ > _ACEOF > cat confdefs.h >>conftest.$ac_ext >@@ -18234,11 +20016,21 @@ > _ACEOF > rm -f conftest.$ac_objext conftest$ac_exeext > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 >- (eval $ac_link) 2>&5 >+ (eval $ac_link) 2>conftest.er1 > ac_status=$? >+ grep -v '^ *+' conftest.er1 >conftest.err >+ rm -f conftest.er1 >+ cat conftest.err >&5 > echo "$as_me:$LINENO: \$? = $ac_status" >&5 > (exit $ac_status); } && >- { ac_try='test -s conftest$ac_exeext' >+ { ac_try='test -z "$ac_c_werror_flag" >+ || test ! -s conftest.err' >+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 >+ (eval $ac_try) 2>&5 >+ ac_status=$? >+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 >+ (exit $ac_status); }; } && >+ { ac_try='test -s conftest$ac_exeext' > { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 > (eval $ac_try) 2>&5 > ac_status=$? >@@ -18251,7 +20043,8 @@ > > ac_cv_lib_dld_dld_link=no > fi >-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext >+rm -f conftest.err conftest.$ac_objext \ >+ conftest$ac_exeext conftest.$ac_ext > LIBS=$ac_check_lib_save_LIBS > fi > echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 >@@ -18306,7 +20099,7 @@ > lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 > lt_status=$lt_dlunknown > cat > conftest.$ac_ext <<EOF >-#line 18309 "configure" >+#line 20102 "configure" > #include "confdefs.h" > > #if HAVE_DLFCN_H >@@ -18404,7 +20197,7 @@ > lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 > lt_status=$lt_dlunknown > cat > conftest.$ac_ext <<EOF >-#line 18407 "configure" >+#line 20200 "configure" > #include "confdefs.h" > > #if HAVE_DLFCN_H >@@ -18521,7 +20314,8 @@ > # Now quote all the things that may contain metacharacters while being > # careful not to overquote the AC_SUBSTed values. We take copies of the > # variables and quote the copies for generation of the libtool script. >- for var in echo old_CC old_CFLAGS AR AR_FLAGS AS EGREP RANLIB LN_S LTCC NM SED SHELL \ >+ for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ >+ SED SHELL STRIP \ > libname_spec library_names_spec soname_spec extract_expsyms_cmds \ > old_striplib striplib file_magic_cmd finish_cmds finish_eval \ > deplibs_check_method reload_flag reload_cmds need_locks \ >@@ -18621,6 +20415,12 @@ > # The host system. > host_alias=$host_alias > host=$host >+host_os=$host_os >+ >+# The build system. >+build_alias=$build_alias >+build=$build >+build_os=$build_os > > # An echo program that does not interpret backslashes. > echo=$lt_echo >@@ -18651,7 +20451,7 @@ > NM=$lt_NM > > # A symbol stripping program >-STRIP=$STRIP >+STRIP=$lt_STRIP > > # Used to examine libraries when file_magic_cmd begins "file" > MAGIC_CMD=$MAGIC_CMD >@@ -18663,7 +20463,7 @@ > OBJDUMP="$OBJDUMP" > > # Used on cygwin: assembler. >-AS=$lt_AS >+AS="$AS" > > # The name of the directory that contains temporary libtool files. > objdir=$objdir >@@ -18682,7 +20482,7 @@ > libext="$libext" > > # Shared library suffix (normally ".so"). >-shrext='$shrext' >+shrext_cmds='$shrext_cmds' > > # Executable file suffix (normally ""). > exeext="$exeext" >@@ -18697,7 +20497,7 @@ > # Does compiler simultaneously support -c and -o options? > compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ > >-# Must we lock files when doing compilation ? >+# Must we lock files when doing compilation? > need_locks=$lt_need_locks > > # Do we need the lib prefix for modules? >@@ -18899,7 +20699,10 @@ > # If there is no Makefile yet, we rely on a make rule to execute > # `config.status --recheck' to rerun these tests and create the > # libtool script then. >- test -f Makefile && make "$ltmain" >+ ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` >+ if test -f "$ltmain_in"; then >+ test -f Makefile && make "$ltmain" >+ fi > fi > > >@@ -18942,11 +20745,35 @@ > compiler=$CC > > >+# save warnings/boilerplate of simple test code >+ac_outfile=conftest.$ac_objext >+printf "$lt_simple_compile_test_code" >conftest.$ac_ext >+eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err >+_lt_compiler_boilerplate=`cat conftest.err` >+$rm conftest* >+ >+ac_outfile=conftest.$ac_objext >+printf "$lt_simple_link_test_code" >conftest.$ac_ext >+eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err >+_lt_linker_boilerplate=`cat conftest.err` >+$rm conftest* >+ >+ > # Allow CC to be a program name with arguments. > lt_save_CC="$CC" > CC=${RC-"windres"} > compiler=$CC > compiler_RC=$CC >+for cc_temp in $compiler""; do >+ case $cc_temp in >+ compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; >+ distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; >+ \-*) ;; >+ *) break;; >+ esac >+done >+cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` >+ > lt_cv_prog_compiler_c_o_RC=yes > > # The else clause should only fire when bootstrapping the >@@ -18962,7 +20789,8 @@ > # Now quote all the things that may contain metacharacters while being > # careful not to overquote the AC_SUBSTed values. We take copies of the > # variables and quote the copies for generation of the libtool script. >- for var in echo old_CC old_CFLAGS AR AR_FLAGS AS EGREP RANLIB LN_S LTCC NM SED SHELL \ >+ for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ >+ SED SHELL STRIP \ > libname_spec library_names_spec soname_spec extract_expsyms_cmds \ > old_striplib striplib file_magic_cmd finish_cmds finish_eval \ > deplibs_check_method reload_flag reload_cmds need_locks \ >@@ -19062,6 +20890,12 @@ > # The host system. > host_alias=$host_alias > host=$host >+host_os=$host_os >+ >+# The build system. >+build_alias=$build_alias >+build=$build >+build_os=$build_os > > # An echo program that does not interpret backslashes. > echo=$lt_echo >@@ -19092,7 +20926,7 @@ > NM=$lt_NM > > # A symbol stripping program >-STRIP=$STRIP >+STRIP=$lt_STRIP > > # Used to examine libraries when file_magic_cmd begins "file" > MAGIC_CMD=$MAGIC_CMD >@@ -19104,7 +20938,7 @@ > OBJDUMP="$OBJDUMP" > > # Used on cygwin: assembler. >-AS=$lt_AS >+AS="$AS" > > # The name of the directory that contains temporary libtool files. > objdir=$objdir >@@ -19123,7 +20957,7 @@ > libext="$libext" > > # Shared library suffix (normally ".so"). >-shrext='$shrext' >+shrext_cmds='$shrext_cmds' > > # Executable file suffix (normally ""). > exeext="$exeext" >@@ -19138,7 +20972,7 @@ > # Does compiler simultaneously support -c and -o options? > compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC > >-# Must we lock files when doing compilation ? >+# Must we lock files when doing compilation? > need_locks=$lt_need_locks > > # Do we need the lib prefix for modules? >@@ -19340,7 +21174,10 @@ > # If there is no Makefile yet, we rely on a make rule to execute > # `config.status --recheck' to rerun these tests and create the > # libtool script then. >- test -f Makefile && make "$ltmain" >+ ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` >+ if test -f "$ltmain_in"; then >+ test -f Makefile && make "$ltmain" >+ fi > fi > > >@@ -19418,7 +21255,104 @@ > ac_compiler_gnu=$ac_cv_cxx_compiler_gnu > > >-PKG_CHECK_MODULES(PKG, sigc++-2.0 >= 2.0 gtkmm-2.4 >= 2.6.0 gnome-vfsmm-2.6 >= 2.5.0) >+ >+ succeeded=no >+ >+ if test -z "$PKG_CONFIG"; then >+ # Extract the first word of "pkg-config", so it can be a program name with args. >+set dummy pkg-config; ac_word=$2 >+echo "$as_me:$LINENO: checking for $ac_word" >&5 >+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 >+if test "${ac_cv_path_PKG_CONFIG+set}" = set; then >+ echo $ECHO_N "(cached) $ECHO_C" >&6 >+else >+ case $PKG_CONFIG in >+ [\\/]* | ?:[\\/]*) >+ ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. >+ ;; >+ *) >+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR >+for as_dir in $PATH >+do >+ IFS=$as_save_IFS >+ test -z "$as_dir" && as_dir=. >+ for ac_exec_ext in '' $ac_executable_extensions; do >+ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then >+ ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" >+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 >+ break 2 >+ fi >+done >+done >+ >+ test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" >+ ;; >+esac >+fi >+PKG_CONFIG=$ac_cv_path_PKG_CONFIG >+ >+if test -n "$PKG_CONFIG"; then >+ echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 >+echo "${ECHO_T}$PKG_CONFIG" >&6 >+else >+ echo "$as_me:$LINENO: result: no" >&5 >+echo "${ECHO_T}no" >&6 >+fi >+ >+ fi >+ >+ if test "$PKG_CONFIG" = "no" ; then >+ echo "*** The pkg-config script could not be found. Make sure it is" >+ echo "*** in your path, or set the PKG_CONFIG environment variable" >+ echo "*** to the full path to pkg-config." >+ echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." >+ else >+ PKG_CONFIG_MIN_VERSION=0.9.0 >+ if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then >+ echo "$as_me:$LINENO: checking for sigc++-2.0 >= 2.0 gtkmm-2.4 >= 2.6.0 gnome-vfsmm-2.6 >= 2.5.0" >&5 >+echo $ECHO_N "checking for sigc++-2.0 >= 2.0 gtkmm-2.4 >= 2.6.0 gnome-vfsmm-2.6 >= 2.5.0... $ECHO_C" >&6 >+ >+ if $PKG_CONFIG --exists "sigc++-2.0 >= 2.0 gtkmm-2.4 >= 2.6.0 gnome-vfsmm-2.6 >= 2.5.0" ; then >+ echo "$as_me:$LINENO: result: yes" >&5 >+echo "${ECHO_T}yes" >&6 >+ succeeded=yes >+ >+ echo "$as_me:$LINENO: checking PKG_CFLAGS" >&5 >+echo $ECHO_N "checking PKG_CFLAGS... $ECHO_C" >&6 >+ PKG_CFLAGS=`$PKG_CONFIG --cflags "sigc++-2.0 >= 2.0 gtkmm-2.4 >= 2.6.0 gnome-vfsmm-2.6 >= 2.5.0"` >+ echo "$as_me:$LINENO: result: $PKG_CFLAGS" >&5 >+echo "${ECHO_T}$PKG_CFLAGS" >&6 >+ >+ echo "$as_me:$LINENO: checking PKG_LIBS" >&5 >+echo $ECHO_N "checking PKG_LIBS... $ECHO_C" >&6 >+ PKG_LIBS=`$PKG_CONFIG --libs "sigc++-2.0 >= 2.0 gtkmm-2.4 >= 2.6.0 gnome-vfsmm-2.6 >= 2.5.0"` >+ echo "$as_me:$LINENO: result: $PKG_LIBS" >&5 >+echo "${ECHO_T}$PKG_LIBS" >&6 >+ else >+ PKG_CFLAGS="" >+ PKG_LIBS="" >+ ## If we have a custom action on failure, don't print errors, but >+ ## do set a variable so people can do so. >+ PKG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "sigc++-2.0 >= 2.0 gtkmm-2.4 >= 2.6.0 gnome-vfsmm-2.6 >= 2.5.0"` >+ echo $PKG_PKG_ERRORS >+ fi >+ >+ >+ >+ else >+ echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." >+ echo "*** See http://www.freedesktop.org/software/pkgconfig" >+ fi >+ fi >+ >+ if test $succeeded = yes; then >+ : >+ else >+ { { echo "$as_me:$LINENO: error: Library requirements (sigc++-2.0 >= 2.0 gtkmm-2.4 >= 2.6.0 gnome-vfsmm-2.6 >= 2.5.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5 >+echo "$as_me: error: Library requirements (sigc++-2.0 >= 2.0 gtkmm-2.4 >= 2.6.0 gnome-vfsmm-2.6 >= 2.5.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;} >+ { (exit 1); exit 1; }; } >+ fi >+ > > > >@@ -19453,13 +21387,13 @@ > # `set' does not quote correctly, so add quotes (double-quote > # substitution turns \\\\ into \\, and sed turns \\ into \). > sed -n \ >- "s/'/'\\\\''/g; >- s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" >+ "s/'/'\\\\''/g; >+ s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" > ;; > *) > # `set' quotes correctly as required by POSIX, so do not add quotes. > sed -n \ >- "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" >+ "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" > ;; > esac; > } | >@@ -19489,13 +21423,13 @@ > # trailing colons and then remove the whole line if VPATH becomes empty > # (actually we leave an empty line to preserve line numbers). > if test "x$srcdir" = x.; then >- ac_vpsub='/^[ ]*VPATH[ ]*=/{ >+ ac_vpsub='/^[ ]*VPATH[ ]*=/{ > s/:*\$(srcdir):*/:/; > s/:*\${srcdir}:*/:/; > s/:*@srcdir@:*/:/; >-s/^\([^=]*=[ ]*\):*/\1/; >+s/^\([^=]*=[ ]*\):*/\1/; > s/:*$//; >-s/^[^=]*=[ ]*$//; >+s/^[^=]*=[ ]*$//; > }' > fi > >@@ -19506,7 +21440,7 @@ > for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue > # 1. Remove the extension, and $U if already installed. > ac_i=`echo "$ac_i" | >- sed 's/\$U\././;s/\.o$//;s/\.obj$//'` >+ sed 's/\$U\././;s/\.o$//;s/\.obj$//'` > # 2. Add them. > ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" > ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' >@@ -19578,9 +21512,10 @@ > elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then > set -o posix > fi >+DUALCASE=1; export DUALCASE # for MKS sh > > # Support unset when possible. >-if (FOO=FOO; unset FOO) >/dev/null 2>&1; then >+if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then > as_unset=unset > else > as_unset=false >@@ -19599,7 +21534,7 @@ > LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ > LC_TELEPHONE LC_TIME > do >- if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then >+ if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then > eval $as_var=C; export $as_var > else > $as_unset $as_var >@@ -19778,16 +21713,17 @@ > if mkdir -p . 2>/dev/null; then > as_mkdir_p=: > else >+ test -d ./-p && rmdir ./-p > as_mkdir_p=false > fi > > as_executable_p="test -f" > > # Sed expression to map a string onto a valid CPP name. >-as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" >+as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" > > # Sed expression to map a string onto a valid variable name. >-as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" >+as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" > > > # IFS >@@ -19814,7 +21750,7 @@ > cat >&5 <<_CSEOF > > This file was extended by $as_me, which was >-generated by GNU Autoconf 2.57. Invocation command line was >+generated by GNU Autoconf 2.59. Invocation command line was > > CONFIG_FILES = $CONFIG_FILES > CONFIG_HEADERS = $CONFIG_HEADERS >@@ -19858,9 +21794,9 @@ > -d, --debug don't remove temporary files > --recheck update $as_me by reconfiguring in the same conditions > --file=FILE[:TEMPLATE] >- instantiate the configuration file FILE >+ instantiate the configuration file FILE > --header=FILE[:TEMPLATE] >- instantiate the configuration header FILE >+ instantiate the configuration header FILE > > Configuration files: > $config_files >@@ -19877,11 +21813,10 @@ > cat >>$CONFIG_STATUS <<_ACEOF > ac_cs_version="\\ > config.status >-configured by $0, generated by GNU Autoconf 2.57, >+configured by $0, generated by GNU Autoconf 2.59, > with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" > >-Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 >-Free Software Foundation, Inc. >+Copyright (C) 2003 Free Software Foundation, Inc. > This config.status script is free software; the Free Software Foundation > gives unlimited permission to copy, distribute and modify it." > srcdir=$srcdir >@@ -20142,6 +22077,7 @@ > s,@FFLAGS@,$FFLAGS,;t t > s,@ac_ct_F77@,$ac_ct_F77,;t t > s,@LIBTOOL@,$LIBTOOL,;t t >+s,@PKG_CONFIG@,$PKG_CONFIG,;t t > s,@PKG_CFLAGS@,$PKG_CFLAGS,;t t > s,@PKG_LIBS@,$PKG_LIBS,;t t > s,@LIBOBJS@,$LIBOBJS,;t t >@@ -20175,9 +22111,9 @@ > (echo ':t > /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed > if test -z "$ac_sed_cmds"; then >- ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" >+ ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" > else >- ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" >+ ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" > fi > ac_sed_frag=`expr $ac_sed_frag + 1` > ac_beg=$ac_end >@@ -20195,21 +22131,21 @@ > # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". > case $ac_file in > - | *:- | *:-:* ) # input from stdin >- cat >$tmp/stdin >- ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` >- ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; >+ cat >$tmp/stdin >+ ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` >+ ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; > *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` >- ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; >+ ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; > * ) ac_file_in=$ac_file.in ;; > esac > > # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. > ac_dir=`(dirname "$ac_file") 2>/dev/null || > $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ >- X"$ac_file" : 'X\(//\)[^/]' \| \ >- X"$ac_file" : 'X\(//\)$' \| \ >- X"$ac_file" : 'X\(/\)' \| \ >- . : '\(.\)' 2>/dev/null || >+ X"$ac_file" : 'X\(//\)[^/]' \| \ >+ X"$ac_file" : 'X\(//\)$' \| \ >+ X"$ac_file" : 'X\(/\)' \| \ >+ . : '\(.\)' 2>/dev/null || > echo X"$ac_file" | > sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } > /^X\(\/\/\)[^/].*/{ s//\1/; q; } >@@ -20225,10 +22161,10 @@ > as_dirs="$as_dir $as_dirs" > as_dir=`(dirname "$as_dir") 2>/dev/null || > $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ >- X"$as_dir" : 'X\(//\)[^/]' \| \ >- X"$as_dir" : 'X\(//\)$' \| \ >- X"$as_dir" : 'X\(/\)' \| \ >- . : '\(.\)' 2>/dev/null || >+ X"$as_dir" : 'X\(//\)[^/]' \| \ >+ X"$as_dir" : 'X\(//\)$' \| \ >+ X"$as_dir" : 'X\(/\)' \| \ >+ . : '\(.\)' 2>/dev/null || > echo X"$as_dir" | > sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } > /^X\(\/\/\)[^/].*/{ s//\1/; q; } >@@ -20266,12 +22202,45 @@ > ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix > ac_top_srcdir=$ac_top_builddir$srcdir ;; > esac >-# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be >-# absolute. >-ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` >-ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` >-ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` >-ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` >+ >+# Do not use `cd foo && pwd` to compute absolute paths, because >+# the directories may not exist. >+case `pwd` in >+.) ac_abs_builddir="$ac_dir";; >+*) >+ case "$ac_dir" in >+ .) ac_abs_builddir=`pwd`;; >+ [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; >+ *) ac_abs_builddir=`pwd`/"$ac_dir";; >+ esac;; >+esac >+case $ac_abs_builddir in >+.) ac_abs_top_builddir=${ac_top_builddir}.;; >+*) >+ case ${ac_top_builddir}. in >+ .) ac_abs_top_builddir=$ac_abs_builddir;; >+ [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; >+ *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; >+ esac;; >+esac >+case $ac_abs_builddir in >+.) ac_abs_srcdir=$ac_srcdir;; >+*) >+ case $ac_srcdir in >+ .) ac_abs_srcdir=$ac_abs_builddir;; >+ [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; >+ *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; >+ esac;; >+esac >+case $ac_abs_builddir in >+.) ac_abs_top_srcdir=$ac_top_srcdir;; >+*) >+ case $ac_top_srcdir in >+ .) ac_abs_top_srcdir=$ac_abs_builddir;; >+ [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; >+ *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; >+ esac;; >+esac > > > case $INSTALL in >@@ -20293,7 +22262,7 @@ > configure_input="$ac_file. " > fi > configure_input=$configure_input"Generated from `echo $ac_file_in | >- sed 's,.*/,,'` by configure." >+ sed 's,.*/,,'` by configure." > > # First look for the input files in the build tree, otherwise in the > # src tree. >@@ -20302,24 +22271,24 @@ > case $f in > -) echo $tmp/stdin ;; > [\\/$]*) >- # Absolute (can't be DOS-style, as IFS=:) >- test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 >+ # Absolute (can't be DOS-style, as IFS=:) >+ test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 > echo "$as_me: error: cannot find input file: $f" >&2;} > { (exit 1); exit 1; }; } >- echo $f;; >+ echo "$f";; > *) # Relative >- if test -f "$f"; then >- # Build tree >- echo $f >- elif test -f "$srcdir/$f"; then >- # Source tree >- echo $srcdir/$f >- else >- # /dev/null tree >- { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 >+ if test -f "$f"; then >+ # Build tree >+ echo "$f" >+ elif test -f "$srcdir/$f"; then >+ # Source tree >+ echo "$srcdir/$f" >+ else >+ # /dev/null tree >+ { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 > echo "$as_me: error: cannot find input file: $f" >&2;} > { (exit 1); exit 1; }; } >- fi;; >+ fi;; > esac > done` || { (exit 1); exit 1; } > _ACEOF >@@ -20361,12 +22330,12 @@ > # NAME is the cpp macro being defined and VALUE is the value it is being given. > # > # ac_d sets the value in "#define NAME VALUE" lines. >-ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' >-ac_dB='[ ].*$,\1#\2' >+ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' >+ac_dB='[ ].*$,\1#\2' > ac_dC=' ' > ac_dD=',;t' > # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". >-ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' >+ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' > ac_uB='$,\1#\2define\3' > ac_uC=' ' > ac_uD=',;t' >@@ -20375,11 +22344,11 @@ > # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". > case $ac_file in > - | *:- | *:-:* ) # input from stdin >- cat >$tmp/stdin >- ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` >- ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; >+ cat >$tmp/stdin >+ ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` >+ ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; > *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` >- ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; >+ ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; > * ) ac_file_in=$ac_file.in ;; > esac > >@@ -20393,28 +22362,29 @@ > case $f in > -) echo $tmp/stdin ;; > [\\/$]*) >- # Absolute (can't be DOS-style, as IFS=:) >- test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 >+ # Absolute (can't be DOS-style, as IFS=:) >+ test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 > echo "$as_me: error: cannot find input file: $f" >&2;} > { (exit 1); exit 1; }; } >- echo $f;; >+ # Do quote $f, to prevent DOS paths from being IFS'd. >+ echo "$f";; > *) # Relative >- if test -f "$f"; then >- # Build tree >- echo $f >- elif test -f "$srcdir/$f"; then >- # Source tree >- echo $srcdir/$f >- else >- # /dev/null tree >- { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 >+ if test -f "$f"; then >+ # Build tree >+ echo "$f" >+ elif test -f "$srcdir/$f"; then >+ # Source tree >+ echo "$srcdir/$f" >+ else >+ # /dev/null tree >+ { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 > echo "$as_me: error: cannot find input file: $f" >&2;} > { (exit 1); exit 1; }; } >- fi;; >+ fi;; > esac > done` || { (exit 1); exit 1; } > # Remove the trailing spaces. >- sed 's/[ ]*$//' $ac_file_inputs >$tmp/in >+ sed 's/[ ]*$//' $ac_file_inputs >$tmp/in > > _ACEOF > >@@ -20437,9 +22407,9 @@ > s,[\\$`],\\&,g > t clear > : clear >-s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp >+s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp > t end >-s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp >+s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp > : end > _ACEOF > # If some macros were called several times there might be several times >@@ -20453,13 +22423,13 @@ > # example, in the case of _POSIX_SOURCE, which is predefined and required > # on some systems where configure will not decide to define it. > cat >>conftest.undefs <<\_ACEOF >-s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, >+s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, > _ACEOF > > # Break up conftest.defines because some shells have a limit on the size > # of here documents, and old seds have small limits too (100 cmds). > echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS >-echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS >+echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS > echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS > echo ' :' >>$CONFIG_STATUS > rm -f conftest.tail >@@ -20468,7 +22438,7 @@ > # Write a limited-size here document to $tmp/defines.sed. > echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS > # Speed up: don't consider the non `#define' lines. >- echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS >+ echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS > # Work around the forget-to-reset-the-flag bug. > echo 't clr' >>$CONFIG_STATUS > echo ': clr' >>$CONFIG_STATUS >@@ -20495,7 +22465,7 @@ > # Write a limited-size here document to $tmp/undefs.sed. > echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS > # Speed up: don't consider the non `#undef' >- echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS >+ echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS > # Work around the forget-to-reset-the-flag bug. > echo 't clr' >>$CONFIG_STATUS > echo ': clr' >>$CONFIG_STATUS >@@ -20529,10 +22499,10 @@ > else > ac_dir=`(dirname "$ac_file") 2>/dev/null || > $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ >- X"$ac_file" : 'X\(//\)[^/]' \| \ >- X"$ac_file" : 'X\(//\)$' \| \ >- X"$ac_file" : 'X\(/\)' \| \ >- . : '\(.\)' 2>/dev/null || >+ X"$ac_file" : 'X\(//\)[^/]' \| \ >+ X"$ac_file" : 'X\(//\)$' \| \ >+ X"$ac_file" : 'X\(/\)' \| \ >+ . : '\(.\)' 2>/dev/null || > echo X"$ac_file" | > sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } > /^X\(\/\/\)[^/].*/{ s//\1/; q; } >@@ -20548,10 +22518,10 @@ > as_dirs="$as_dir $as_dirs" > as_dir=`(dirname "$as_dir") 2>/dev/null || > $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ >- X"$as_dir" : 'X\(//\)[^/]' \| \ >- X"$as_dir" : 'X\(//\)$' \| \ >- X"$as_dir" : 'X\(/\)' \| \ >- . : '\(.\)' 2>/dev/null || >+ X"$as_dir" : 'X\(//\)[^/]' \| \ >+ X"$as_dir" : 'X\(//\)$' \| \ >+ X"$as_dir" : 'X\(/\)' \| \ >+ . : '\(.\)' 2>/dev/null || > echo X"$as_dir" | > sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } > /^X\(\/\/\)[^/].*/{ s//\1/; q; } >@@ -20583,10 +22553,10 @@ > done > echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || > $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ >- X$ac_file : 'X\(//\)[^/]' \| \ >- X$ac_file : 'X\(//\)$' \| \ >- X$ac_file : 'X\(/\)' \| \ >- . : '\(.\)' 2>/dev/null || >+ X$ac_file : 'X\(//\)[^/]' \| \ >+ X$ac_file : 'X\(//\)$' \| \ >+ X$ac_file : 'X\(/\)' \| \ >+ . : '\(.\)' 2>/dev/null || > echo X$ac_file | > sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } > /^X\(\/\/\)[^/].*/{ s//\1/; q; } >@@ -20605,16 +22575,41 @@ > ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` > ac_dir=`(dirname "$ac_dest") 2>/dev/null || > $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ >- X"$ac_dest" : 'X\(//\)[^/]' \| \ >- X"$ac_dest" : 'X\(//\)$' \| \ >- X"$ac_dest" : 'X\(/\)' \| \ >- . : '\(.\)' 2>/dev/null || >+ X"$ac_dest" : 'X\(//\)[^/]' \| \ >+ X"$ac_dest" : 'X\(//\)$' \| \ >+ X"$ac_dest" : 'X\(/\)' \| \ >+ . : '\(.\)' 2>/dev/null || > echo X"$ac_dest" | > sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } > /^X\(\/\/\)[^/].*/{ s//\1/; q; } > /^X\(\/\/\)$/{ s//\1/; q; } > /^X\(\/\).*/{ s//\1/; q; } > s/.*/./; q'` >+ { if $as_mkdir_p; then >+ mkdir -p "$ac_dir" >+ else >+ as_dir="$ac_dir" >+ as_dirs= >+ while test ! -d "$as_dir"; do >+ as_dirs="$as_dir $as_dirs" >+ as_dir=`(dirname "$as_dir") 2>/dev/null || >+$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ >+ X"$as_dir" : 'X\(//\)[^/]' \| \ >+ X"$as_dir" : 'X\(//\)$' \| \ >+ X"$as_dir" : 'X\(/\)' \| \ >+ . : '\(.\)' 2>/dev/null || >+echo X"$as_dir" | >+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } >+ /^X\(\/\/\)[^/].*/{ s//\1/; q; } >+ /^X\(\/\/\)$/{ s//\1/; q; } >+ /^X\(\/\).*/{ s//\1/; q; } >+ s/.*/./; q'` >+ done >+ test ! -n "$as_dirs" || mkdir $as_dirs >+ fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 >+echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} >+ { (exit 1); exit 1; }; }; } >+ > ac_builddir=. > > if test "$ac_dir" != .; then >@@ -20640,12 +22635,45 @@ > ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix > ac_top_srcdir=$ac_top_builddir$srcdir ;; > esac >-# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be >-# absolute. >-ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` >-ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` >-ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` >-ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` >+ >+# Do not use `cd foo && pwd` to compute absolute paths, because >+# the directories may not exist. >+case `pwd` in >+.) ac_abs_builddir="$ac_dir";; >+*) >+ case "$ac_dir" in >+ .) ac_abs_builddir=`pwd`;; >+ [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; >+ *) ac_abs_builddir=`pwd`/"$ac_dir";; >+ esac;; >+esac >+case $ac_abs_builddir in >+.) ac_abs_top_builddir=${ac_top_builddir}.;; >+*) >+ case ${ac_top_builddir}. in >+ .) ac_abs_top_builddir=$ac_abs_builddir;; >+ [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; >+ *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; >+ esac;; >+esac >+case $ac_abs_builddir in >+.) ac_abs_srcdir=$ac_srcdir;; >+*) >+ case $ac_srcdir in >+ .) ac_abs_srcdir=$ac_abs_builddir;; >+ [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; >+ *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; >+ esac;; >+esac >+case $ac_abs_builddir in >+.) ac_abs_top_srcdir=$ac_top_srcdir;; >+*) >+ case $ac_top_srcdir in >+ .) ac_abs_top_srcdir=$ac_abs_builddir;; >+ [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; >+ *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; >+ esac;; >+esac > > > { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 >@@ -20663,10 +22691,10 @@ > if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then > dirpart=`(dirname "$mf") 2>/dev/null || > $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ >- X"$mf" : 'X\(//\)[^/]' \| \ >- X"$mf" : 'X\(//\)$' \| \ >- X"$mf" : 'X\(/\)' \| \ >- . : '\(.\)' 2>/dev/null || >+ X"$mf" : 'X\(//\)[^/]' \| \ >+ X"$mf" : 'X\(//\)$' \| \ >+ X"$mf" : 'X\(/\)' \| \ >+ . : '\(.\)' 2>/dev/null || > echo X"$mf" | > sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } > /^X\(\/\/\)[^/].*/{ s//\1/; q; } >@@ -20702,10 +22730,10 @@ > test -f "$dirpart/$file" && continue > fdir=`(dirname "$file") 2>/dev/null || > $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ >- X"$file" : 'X\(//\)[^/]' \| \ >- X"$file" : 'X\(//\)$' \| \ >- X"$file" : 'X\(/\)' \| \ >- . : '\(.\)' 2>/dev/null || >+ X"$file" : 'X\(//\)[^/]' \| \ >+ X"$file" : 'X\(//\)$' \| \ >+ X"$file" : 'X\(/\)' \| \ >+ . : '\(.\)' 2>/dev/null || > echo X"$file" | > sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } > /^X\(\/\/\)[^/].*/{ s//\1/; q; } >@@ -20721,10 +22749,10 @@ > as_dirs="$as_dir $as_dirs" > as_dir=`(dirname "$as_dir") 2>/dev/null || > $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ >- X"$as_dir" : 'X\(//\)[^/]' \| \ >- X"$as_dir" : 'X\(//\)$' \| \ >- X"$as_dir" : 'X\(/\)' \| \ >- . : '\(.\)' 2>/dev/null || >+ X"$as_dir" : 'X\(//\)[^/]' \| \ >+ X"$as_dir" : 'X\(//\)$' \| \ >+ X"$as_dir" : 'X\(/\)' \| \ >+ . : '\(.\)' 2>/dev/null || > echo X"$as_dir" | > sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } > /^X\(\/\/\)[^/].*/{ s//\1/; q; } >diff -aNu darimasen-0.0.8/ltmain.sh darimasen-0.0.8-new/ltmain.sh >--- darimasen-0.0.8/ltmain.sh 2005-05-19 02:10:02.000000000 +0200 >+++ darimasen-0.0.8-new/ltmain.sh 2005-07-17 22:39:17.000000000 +0200 >@@ -1,7 +1,7 @@ > # ltmain.sh - Provide generalized library-building support services. > # NOTE: Changing this file will not affect anything until you rerun configure. > # >-# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003 >+# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005 > # Free Software Foundation, Inc. > # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 > # >@@ -17,13 +17,51 @@ > # > # You should have received a copy of the GNU General Public License > # along with this program; if not, write to the Free Software >-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. >+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. > # > # As a special exception to the GNU General Public License, if you > # distribute this file as part of a program that contains a > # configuration script generated by Autoconf, you may include it under > # the same distribution terms that you use for the rest of that program. > >+basename="s,^.*/,,g" >+ >+# Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh >+# is ksh but when the shell is invoked as "sh" and the current value of >+# the _XPG environment variable is not equal to 1 (one), the special >+# positional parameter $0, within a function call, is the name of the >+# function. >+progpath="$0" >+ >+# define SED for historic ltconfig's generated by Libtool 1.3 >+test -z "$SED" && SED=sed >+ >+# The name of this program: >+progname=`echo "$progpath" | $SED $basename` >+modename="$progname" >+ >+# Global variables: >+EXIT_SUCCESS=0 >+EXIT_FAILURE=1 >+ >+PROGRAM=ltmain.sh >+PACKAGE=libtool >+VERSION=1.5.18 >+TIMESTAMP=" (1.1220.2.246 2005/05/16 10:00:18)" >+ >+# See if we are running on zsh, and set the options which allow our >+# commands through without removal of \ escapes. >+if test -n "${ZSH_VERSION+set}" ; then >+ setopt NO_GLOB_SUBST >+fi >+# Same for EGREP, and just to be sure, do LTCC as well >+if test "X$EGREP" = X ; then >+ EGREP=egrep >+fi >+if test "X$LTCC" = X ; then >+ LTCC=${CC-gcc} >+fi >+ > # Check that we have a working $echo. > if test "X$1" = X--no-reexec; then > # Discard the --no-reexec flag, and continue. >@@ -36,7 +74,7 @@ > : > else > # Restart under the correct shell, and then maybe $echo will work. >- exec $SHELL "$0" --no-reexec ${1+"$@"} >+ exec $SHELL "$progpath" --no-reexec ${1+"$@"} > fi > > if test "X$1" = X--fallback-echo; then >@@ -45,19 +83,9 @@ > cat <<EOF > $* > EOF >- exit 0 >+ exit $EXIT_SUCCESS > fi > >-# The name of this program. >-progname=`$echo "$0" | ${SED} 's%^.*/%%'` >-modename="$progname" >- >-# Constants. >-PROGRAM=ltmain.sh >-PACKAGE=libtool >-VERSION=1.5 >-TIMESTAMP=" (1.1220.2.1 2003/04/14 22:48:00)" >- > default_mode= > help="Try \`$progname --help' for more information." > magic="%%%MAGIC variable%%%" >@@ -70,8 +98,8 @@ > Xsed="${SED}"' -e 1s/^X//' > sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g' > # test EBCDIC or ASCII >-case `echo A|od -x` in >- *[Cc]1*) # EBCDIC based system >+case `echo A|tr A '\301'` in >+ A) # EBCDIC based system > SP2NL="tr '\100' '\n'" > NL2SP="tr '\r\n' '\100\100'" > ;; >@@ -94,12 +122,14 @@ > fi > > # Make sure IFS has a sensible default >-: ${IFS=" "} >+lt_nl=' >+' >+IFS=" $lt_nl" > > if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then > $echo "$modename: not configured to build any kind of library" 1>&2 > $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2 >- exit 1 >+ exit $EXIT_FAILURE > fi > > # Global variables. >@@ -113,15 +143,44 @@ > execute_dlfiles= > lo2o="s/\\.lo\$/.${objext}/" > o2lo="s/\\.${objext}\$/.lo/" >+quote_scanset='[[~#^*{};<>?'"'"' ]' >+ >+if test -z "$max_cmd_len"; then >+ i=0 >+ testring="ABCD" >+ new_result= >+ >+ # If test is not a shell built-in, we'll probably end up computing a >+ # maximum length that is only half of the actual maximum length, but >+ # we can't tell. >+ while (test "X"`$SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \ >+ = "XX$testring") >/dev/null 2>&1 && >+ new_result=`expr "X$testring" : ".*" 2>&1` && >+ max_cmd_len="$new_result" && >+ test "$i" != 17 # 1/2 MB should be enough >+ do >+ i=`expr $i + 1` >+ testring="$testring$testring" >+ done >+ testring= >+ # Add a significant safety factor because C++ compilers can tack on massive >+ # amounts of additional arguments before passing them to the linker. >+ # It appears as though 1/2 is a usable value. >+ max_cmd_len=`expr $max_cmd_len \/ 2` >+fi > > ##################################### > # Shell function definitions: > # This seems to be the best place for them > >+# func_win32_libid arg >+# return the library type of file 'arg' >+# > # Need a lot of goo to handle *both* DLLs and import libs > # Has to be a shell function in order to 'eat' the argument > # that is supplied when $file_magic_command is called. >-win32_libid () { >+func_win32_libid () >+{ > win32_libid_type="unknown" > win32_fileres=`file -L $1 2>/dev/null` > case $win32_fileres in >@@ -130,7 +189,7 @@ > ;; > *ar\ archive*) # could be an import, or static > if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \ >- grep -E 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then >+ $EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then > win32_nmres=`eval $NM -f posix -A $1 | \ > sed -n -e '1,100{/ I /{x;/import/!{s/^/import/;h;p;};x;};}'` > if test "X$win32_nmres" = "Ximport" ; then >@@ -140,7 +199,7 @@ > fi > fi > ;; >- *DLL*) >+ *DLL*) > win32_libid_type="x86 DLL" > ;; > *executable*) # but shell scripts are "executable" too... >@@ -154,9 +213,189 @@ > $echo $win32_libid_type > } > >+ >+# func_infer_tag arg >+# Infer tagged configuration to use if any are available and >+# if one wasn't chosen via the "--tag" command line option. >+# Only attempt this if the compiler in the base compile >+# command doesn't match the default compiler. >+# arg is usually of the form 'gcc ...' >+func_infer_tag () >+{ >+ if test -n "$available_tags" && test -z "$tagname"; then >+ CC_quoted= >+ for arg in $CC; do >+ case $arg in >+ *$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "") >+ arg="\"$arg\"" >+ ;; >+ esac >+ CC_quoted="$CC_quoted $arg" >+ done >+ case $@ in >+ # Blanks in the command may have been stripped by the calling shell, >+ # but not from the CC environment variable when configure was run. >+ " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*) ;; >+ # Blanks at the start of $base_compile will cause this to fail >+ # if we don't check for them as well. >+ *) >+ for z in $available_tags; do >+ if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then >+ # Evaluate the configuration. >+ eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`" >+ CC_quoted= >+ for arg in $CC; do >+ # Double-quote args containing other shell metacharacters. >+ case $arg in >+ *$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "") >+ arg="\"$arg\"" >+ ;; >+ esac >+ CC_quoted="$CC_quoted $arg" >+ done >+ # user sometimes does CC=<HOST>-gcc so we need to match that to 'gcc' >+ trimedcc=`echo ${CC} | $SED -e "s/${host}-//g"` >+ # and sometimes libtool has CC=<HOST>-gcc but user does CC=gcc >+ extendcc=${host}-${CC} >+ case "$@ " in >+ "cc "* | " cc "* | "${host}-cc "* | " ${host}-cc "*|\ >+ "gcc "* | " gcc "* | "${host}-gcc "* | " ${host}-gcc "*) >+ tagname=CC >+ break ;; >+ "$trimedcc "* | " $trimedcc "* | "`$echo $trimedcc` "* | " `$echo $trimedcc` "*|\ >+ "$extendcc "* | " $extendcc "* | "`$echo $extendcc` "* | " `$echo $extendcc` "*|\ >+ " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*) >+ # The compiler in the base compile command matches >+ # the one in the tagged configuration. >+ # Assume this is the tagged configuration we want. >+ tagname=$z >+ break >+ ;; >+ esac >+ fi >+ done >+ # If $tagname still isn't set, then no tagged configuration >+ # was found and let the user know that the "--tag" command >+ # line option must be used. >+ if test -z "$tagname"; then >+ $echo "$modename: unable to infer tagged configuration" >+ $echo "$modename: specify a tag with \`--tag'" 1>&2 >+ exit $EXIT_FAILURE >+# else >+# $echo "$modename: using $tagname tagged configuration" >+ fi >+ ;; >+ esac >+ fi >+} >+ >+ >+# func_extract_an_archive dir oldlib >+func_extract_an_archive () >+{ >+ f_ex_an_ar_dir="$1"; shift >+ f_ex_an_ar_oldlib="$1" >+ >+ $show "(cd $f_ex_an_ar_dir && $AR x $f_ex_an_ar_oldlib)" >+ $run eval "(cd \$f_ex_an_ar_dir && $AR x \$f_ex_an_ar_oldlib)" || exit $? >+ if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then >+ : >+ else >+ $echo "$modename: ERROR: object name conflicts: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib" 1>&2 >+ exit $EXIT_FAILURE >+ fi >+} >+ >+# func_extract_archives gentop oldlib ... >+func_extract_archives () >+{ >+ my_gentop="$1"; shift >+ my_oldlibs=${1+"$@"} >+ my_oldobjs="" >+ my_xlib="" >+ my_xabs="" >+ my_xdir="" >+ my_status="" >+ >+ $show "${rm}r $my_gentop" >+ $run ${rm}r "$my_gentop" >+ $show "$mkdir $my_gentop" >+ $run $mkdir "$my_gentop" >+ my_status=$? >+ if test "$my_status" -ne 0 && test ! -d "$my_gentop"; then >+ exit $my_status >+ fi >+ >+ for my_xlib in $my_oldlibs; do >+ # Extract the objects. >+ case $my_xlib in >+ [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;; >+ *) my_xabs=`pwd`"/$my_xlib" ;; >+ esac >+ my_xlib=`$echo "X$my_xlib" | $Xsed -e 's%^.*/%%'` >+ my_xdir="$my_gentop/$my_xlib" >+ >+ $show "${rm}r $my_xdir" >+ $run ${rm}r "$my_xdir" >+ $show "$mkdir $my_xdir" >+ $run $mkdir "$my_xdir" >+ status=$? >+ if test "$status" -ne 0 && test ! -d "$my_xdir"; then >+ exit $status >+ fi >+ case $host in >+ *-darwin*) >+ $show "Extracting $my_xabs" >+ # Do not bother doing anything if just a dry run >+ if test -z "$run"; then >+ darwin_orig_dir=`pwd` >+ cd $my_xdir || exit $? >+ darwin_archive=$my_xabs >+ darwin_curdir=`pwd` >+ darwin_base_archive=`$echo "X$darwin_archive" | $Xsed -e 's%^.*/%%'` >+ darwin_arches=`lipo -info "$darwin_archive" 2>/dev/null | $EGREP Architectures 2>/dev/null` >+ if test -n "$darwin_arches"; then >+ darwin_arches=`echo "$darwin_arches" | $SED -e 's/.*are://'` >+ darwin_arch= >+ $show "$darwin_base_archive has multiple architectures $darwin_arches" >+ for darwin_arch in $darwin_arches ; do >+ mkdir -p "unfat-$$/${darwin_base_archive}-${darwin_arch}" >+ lipo -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}" >+ cd "unfat-$$/${darwin_base_archive}-${darwin_arch}" >+ func_extract_an_archive "`pwd`" "${darwin_base_archive}" >+ cd "$darwin_curdir" >+ $rm "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" >+ done # $darwin_arches >+ ## Okay now we have a bunch of thin objects, gotta fatten them up :) >+ darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print| xargs basename | sort -u | $NL2SP` >+ darwin_file= >+ darwin_files= >+ for darwin_file in $darwin_filelist; do >+ darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP` >+ lipo -create -output "$darwin_file" $darwin_files >+ done # $darwin_filelist >+ ${rm}r unfat-$$ >+ cd "$darwin_orig_dir" >+ else >+ cd "$darwin_orig_dir" >+ func_extract_an_archive "$my_xdir" "$my_xabs" >+ fi # $darwin_arches >+ fi # $run >+ ;; >+ *) >+ func_extract_an_archive "$my_xdir" "$my_xabs" >+ ;; >+ esac >+ my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP` >+ done >+ func_extract_archives_result="$my_oldobjs" >+} > # End of Shell function definitions > ##################################### > >+# Darwin sucks >+eval std_shrext=\"$shrext_cmds\" >+ > # Parse our command line options once, thoroughly. > while test "$#" -gt 0 > do >@@ -176,12 +415,13 @@ > ;; > tag) > tagname="$arg" >+ preserve_args="${preserve_args}=$arg" > > # Check whether tagname contains only valid characters > case $tagname in > *[!-_A-Za-z0-9,/]*) > $echo "$progname: invalid tag name: $tagname" 1>&2 >- exit 1 >+ exit $EXIT_FAILURE > ;; > esac > >@@ -191,10 +431,10 @@ > # not specially marked. > ;; > *) >- if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "$0" > /dev/null; then >+ if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "$progpath" > /dev/null; then > taglist="$taglist $tagname" > # Evaluate the configuration. >- eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$tagname'$/,/^# ### END LIBTOOL TAG CONFIG: '$tagname'$/p' < $0`" >+ eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$tagname'$/,/^# ### END LIBTOOL TAG CONFIG: '$tagname'$/p' < $progpath`" > else > $echo "$progname: ignoring unknown tag $tagname" 1>&2 > fi >@@ -220,24 +460,25 @@ > --version) > $echo "$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP" > $echo >- $echo "Copyright (C) 2003 Free Software Foundation, Inc." >+ $echo "Copyright (C) 2005 Free Software Foundation, Inc." > $echo "This is free software; see the source for copying conditions. There is NO" > $echo "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." >- exit 0 >+ exit $? > ;; > > --config) >- ${SED} -e '1,/^# ### BEGIN LIBTOOL CONFIG/d' -e '/^# ### END LIBTOOL CONFIG/,$d' $0 >+ ${SED} -e '1,/^# ### BEGIN LIBTOOL CONFIG/d' -e '/^# ### END LIBTOOL CONFIG/,$d' $progpath > # Now print the configurations for the tags. > for tagname in $taglist; do >- ${SED} -n -e "/^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$/,/^# ### END LIBTOOL TAG CONFIG: $tagname$/p" < "$0" >+ ${SED} -n -e "/^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$/,/^# ### END LIBTOOL TAG CONFIG: $tagname$/p" < "$progpath" > done >- exit 0 >+ exit $? > ;; > > --debug) > $echo "$progname: enabling shell trace mode" > set -x >+ preserve_args="$preserve_args $arg" > ;; > > --dry-run | -n) >@@ -256,7 +497,7 @@ > else > $echo "disable static libraries" > fi >- exit 0 >+ exit $? > ;; > > --finish) mode="finish" ;; >@@ -268,6 +509,7 @@ > > --quiet | --silent) > show=: >+ preserve_args="$preserve_args $arg" > ;; > > --tag) prevopt="--tag" prev=tag ;; >@@ -275,6 +517,7 @@ > set tag "$optarg" ${1+"$@"} > shift > prev=tag >+ preserve_args="$preserve_args --tag" > ;; > > -dlopen) >@@ -285,7 +528,7 @@ > -*) > $echo "$modename: unrecognized option \`$arg'" 1>&2 > $echo "$help" 1>&2 >- exit 1 >+ exit $EXIT_FAILURE > ;; > > *) >@@ -298,7 +541,7 @@ > if test -n "$prevopt"; then > $echo "$modename: option \`$prevopt' requires an argument" 1>&2 > $echo "$help" 1>&2 >- exit 1 >+ exit $EXIT_FAILURE > fi > > # If this variable is set in any of the actions, the command in it >@@ -311,7 +554,7 @@ > # Infer the operation mode. > if test -z "$mode"; then > $echo "*** Warning: inferring the mode of operation is deprecated." 1>&2 >- $echo "*** Future versions of Libtool will require -mode=MODE be specified." 1>&2 >+ $echo "*** Future versions of Libtool will require --mode=MODE be specified." 1>&2 > case $nonopt in > *cc | cc* | *++ | gcc* | *-gcc* | g++* | xlc*) > mode=link >@@ -354,7 +597,7 @@ > if test -n "$execute_dlfiles" && test "$mode" != execute; then > $echo "$modename: unrecognized option \`-dlopen'" 1>&2 > $echo "$help" 1>&2 >- exit 1 >+ exit $EXIT_FAILURE > fi > > # Change the help message to a mode-specific one. >@@ -369,9 +612,11 @@ > # Get the compilation command and the source file. > base_compile= > srcfile="$nonopt" # always keep a non-empty value in "srcfile" >+ suppress_opt=yes > suppress_output= > arg_mode=normal > libobj= >+ later= > > for arg > do >@@ -394,24 +639,19 @@ > -o) > if test -n "$libobj" ; then > $echo "$modename: you cannot specify \`-o' more than once" 1>&2 >- exit 1 >+ exit $EXIT_FAILURE > fi > arg_mode=target > continue > ;; > >- -static) >- build_old_libs=yes >- continue >- ;; >- >- -prefer-pic) >- pic_mode=yes >+ -static | -prefer-pic | -prefer-non-pic) >+ later="$later $arg" > continue > ;; > >- -prefer-non-pic) >- pic_mode=no >+ -no-suppress) >+ suppress_opt=no > continue > ;; > >@@ -424,14 +664,14 @@ > args=`$echo "X$arg" | $Xsed -e "s/^-Wc,//"` > lastarg= > save_ifs="$IFS"; IFS=',' >- for arg in $args; do >+ for arg in $args; do > IFS="$save_ifs" > > # Double-quote args containing other shell metacharacters. > # Many Bourne shells cannot handle close brackets correctly > # in scan sets, so we specify it separately. > case $arg in >- *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") >+ *$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "") > arg="\"$arg\"" > ;; > esac >@@ -462,8 +702,11 @@ > case $lastarg in > # Double-quote args containing other shell metacharacters. > # Many Bourne shells cannot handle close brackets correctly >- # in scan sets, so we specify it separately. >- *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") >+ # in scan sets, and some SunOS ksh mistreat backslash-escaping >+ # in scan sets (worked around with variable expansion), >+ # and furthermore cannot handle '|' '&' '(' ')' in scan sets >+ # at all, so we specify them separately. >+ *$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "") > lastarg="\"$lastarg\"" > ;; > esac >@@ -474,11 +717,11 @@ > case $arg_mode in > arg) > $echo "$modename: you must specify an argument for -Xcompile" >- exit 1 >+ exit $EXIT_FAILURE > ;; > target) > $echo "$modename: you must specify a target with \`-o'" 1>&2 >- exit 1 >+ exit $EXIT_FAILURE > ;; > *) > # Get the name of the library object. >@@ -511,51 +754,40 @@ > *.lo) obj=`$echo "X$libobj" | $Xsed -e "$lo2o"` ;; > *) > $echo "$modename: cannot determine name of library object from \`$libobj'" 1>&2 >- exit 1 >+ exit $EXIT_FAILURE > ;; > esac > >- # Infer tagged configuration to use if any are available and >- # if one wasn't chosen via the "--tag" command line option. >- # Only attempt this if the compiler in the base compile >- # command doesn't match the default compiler. >- if test -n "$available_tags" && test -z "$tagname"; then >- case $base_compile in >- # Blanks in the command may have been stripped by the calling shell, >- # but not from the CC environment variable when configure was run. >- " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "*) ;; >- # Blanks at the start of $base_compile will cause this to fail >- # if we don't check for them as well. >- *) >- for z in $available_tags; do >- if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$0" > /dev/null; then >- # Evaluate the configuration. >- eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $0`" >- case "$base_compile " in >- "$CC "* | " $CC "* | "`$echo $CC` "* | " `$echo $CC` "*) >- # The compiler in the base compile command matches >- # the one in the tagged configuration. >- # Assume this is the tagged configuration we want. >- tagname=$z >- break >- ;; >- esac >- fi >- done >- # If $tagname still isn't set, then no tagged configuration >- # was found and let the user know that the "--tag" command >- # line option must be used. >- if test -z "$tagname"; then >- $echo "$modename: unable to infer tagged configuration" >- $echo "$modename: specify a tag with \`--tag'" 1>&2 >- exit 1 >-# else >-# $echo "$modename: using $tagname tagged configuration" >- fi >+ func_infer_tag $base_compile >+ >+ for arg in $later; do >+ case $arg in >+ -static) >+ build_old_libs=yes >+ continue >+ ;; >+ >+ -prefer-pic) >+ pic_mode=yes >+ continue >+ ;; >+ >+ -prefer-non-pic) >+ pic_mode=no >+ continue > ;; > esac >- fi >+ done > >+ qlibobj=`$echo "X$libobj" | $Xsed -e "$sed_quote_subst"` >+ case $qlibobj in >+ *$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "") >+ qlibobj="\"$qlibobj\"" ;; >+ esac >+ if test "X$libobj" != "X$qlibobj"; then >+ $echo "$modename: libobj name \`$libobj' may not contain shell special characters." >+ exit $EXIT_FAILURE >+ fi > objname=`$echo "X$obj" | $Xsed -e 's%^.*/%%'` > xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'` > if test "X$xdir" = "X$obj"; then >@@ -568,7 +800,7 @@ > if test -z "$base_compile"; then > $echo "$modename: you must specify a compilation command" 1>&2 > $echo "$help" 1>&2 >- exit 1 >+ exit $EXIT_FAILURE > fi > > # Delete any leftover library objects. >@@ -579,7 +811,7 @@ > fi > > $run $rm $removelist >- trap "$run $rm $removelist; exit 1" 1 2 15 >+ trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15 > > # On Cygwin there's no "real" PIC flag so we must build both object types > case $host_os in >@@ -598,7 +830,7 @@ > output_obj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext} > lockfile="$output_obj.lock" > removelist="$removelist $output_obj $lockfile" >- trap "$run $rm $removelist; exit 1" 1 2 15 >+ trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15 > else > output_obj= > need_locks=no >@@ -608,7 +840,7 @@ > # Lock this critical section if it is needed > # We use this script file to make the link, it avoids creating a new file > if test "$need_locks" = yes; then >- until $run ln "$0" "$lockfile" 2>/dev/null; do >+ until $run ln "$srcfile" "$lockfile" 2>/dev/null; do > $show "Waiting for $lockfile to be removed" > sleep 2 > done >@@ -626,14 +858,19 @@ > compiler." > > $run $rm $removelist >- exit 1 >+ exit $EXIT_FAILURE > fi >- $echo $srcfile > "$lockfile" >+ $echo "$srcfile" > "$lockfile" > fi > > if test -n "$fix_srcfile_path"; then > eval srcfile=\"$fix_srcfile_path\" > fi >+ qsrcfile=`$echo "X$srcfile" | $Xsed -e "$sed_quote_subst"` >+ case $qsrcfile in >+ *$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "") >+ qsrcfile="\"$qsrcfile\"" ;; >+ esac > > $run $rm "$libobj" "${libobj}T" > >@@ -655,10 +892,10 @@ > fbsd_hideous_sh_bug=$base_compile > > if test "$pic_mode" != no; then >- command="$base_compile $srcfile $pic_flag" >+ command="$base_compile $qsrcfile $pic_flag" > else > # Don't build PIC code >- command="$base_compile $srcfile" >+ command="$base_compile $qsrcfile" > fi > > if test ! -d "${xdir}$objdir"; then >@@ -681,7 +918,7 @@ > if $run eval "$command"; then : > else > test -n "$output_obj" && $run $rm $removelist >- exit 1 >+ exit $EXIT_FAILURE > fi > > if test "$need_locks" = warn && >@@ -701,7 +938,7 @@ > compiler." > > $run $rm $removelist >- exit 1 >+ exit $EXIT_FAILURE > fi > > # Just move the object if needed, then go on to compile the next one >@@ -722,7 +959,9 @@ > EOF > > # Allow error messages only from the first compilation. >- suppress_output=' >/dev/null 2>&1' >+ if test "$suppress_opt" = yes; then >+ suppress_output=' >/dev/null 2>&1' >+ fi > else > # No PIC object so indicate it doesn't exist in the libtool > # object file. >@@ -736,9 +975,9 @@ > if test "$build_old_libs" = yes; then > if test "$pic_mode" != yes; then > # Don't build PIC code >- command="$base_compile $srcfile" >+ command="$base_compile $qsrcfile" > else >- command="$base_compile $srcfile $pic_flag" >+ command="$base_compile $qsrcfile $pic_flag" > fi > if test "$compiler_c_o" = yes; then > command="$command -o $obj" >@@ -751,7 +990,7 @@ > if $run eval "$command"; then : > else > $run $rm $removelist >- exit 1 >+ exit $EXIT_FAILURE > fi > > if test "$need_locks" = warn && >@@ -771,7 +1010,7 @@ > compiler." > > $run $rm $removelist >- exit 1 >+ exit $EXIT_FAILURE > fi > > # Just move the object if needed >@@ -809,7 +1048,7 @@ > $run $rm "$lockfile" > fi > >- exit 0 >+ exit $EXIT_SUCCESS > ;; > > # libtool link mode >@@ -835,7 +1074,7 @@ > ;; > esac > libtool_args="$nonopt" >- base_compile="$nonopt" >+ base_compile="$nonopt $@" > compile_command="$nonopt" > finalize_command="$nonopt" > >@@ -867,6 +1106,7 @@ > no_install=no > objs= > non_pic_objects= >+ precious_files_regex= > prefer_static_libs=no > preload=no > prev= >@@ -880,6 +1120,8 @@ > vinfo= > vinfo_number=no > >+ func_infer_tag $base_compile >+ > # We need to know -static, to get the right output filenames. > for arg > do >@@ -911,10 +1153,9 @@ > # Go through the arguments, transforming them on the way. > while test "$#" -gt 0; do > arg="$1" >- base_compile="$base_compile $arg" > shift > case $arg in >- *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") >+ *$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "") > qarg=\"`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`\" ### testsuite: skip nested quoting test > ;; > *) qarg=$arg ;; >@@ -975,7 +1216,7 @@ > export_symbols="$arg" > if test ! -f "$arg"; then > $echo "$modename: symbol file \`$arg' does not exist" >- exit 1 >+ exit $EXIT_FAILURE > fi > prev= > continue >@@ -990,6 +1231,11 @@ > prev= > continue > ;; >+ precious_regex) >+ precious_files_regex="$arg" >+ prev= >+ continue >+ ;; > release) > release="-$arg" > prev= >@@ -1022,7 +1268,7 @@ > test "$pic_object" = none && \ > test "$non_pic_object" = none; then > $echo "$modename: cannot find name of object for \`$arg'" 1>&2 >- exit 1 >+ exit $EXIT_FAILURE > fi > > # Extract subdirectory from the argument. >@@ -1075,7 +1321,7 @@ > # Only an error if not doing a dry-run. > if test -z "$run"; then > $echo "$modename: \`$arg' is not a valid libtool object" 1>&2 >- exit 1 >+ exit $EXIT_FAILURE > else > # Dry-run case. > >@@ -1096,7 +1342,7 @@ > done > else > $echo "$modename: link input file \`$save_arg' does not exist" >- exit 1 >+ exit $EXIT_FAILURE > fi > arg=$save_arg > prev= >@@ -1108,7 +1354,7 @@ > [\\/]* | [A-Za-z]:[\\/]*) ;; > *) > $echo "$modename: only absolute run-paths are allowed" 1>&2 >- exit 1 >+ exit $EXIT_FAILURE > ;; > esac > if test "$prev" = rpath; then >@@ -1148,6 +1394,18 @@ > finalize_command="$finalize_command $qarg" > continue > ;; >+ shrext) >+ shrext_cmds="$arg" >+ prev= >+ continue >+ ;; >+ darwin_framework) >+ compiler_flags="$compiler_flags $arg" >+ compile_command="$compile_command $arg" >+ finalize_command="$finalize_command $arg" >+ prev= >+ continue >+ ;; > *) > eval "$prev=\"\$arg\"" > prev= >@@ -1196,7 +1454,7 @@ > -export-symbols | -export-symbols-regex) > if test -n "$export_symbols" || test -n "$export_symbols_regex"; then > $echo "$modename: more than one -exported-symbols argument is not allowed" >- exit 1 >+ exit $EXIT_FAILURE > fi > if test "X$arg" = "X-export-symbols"; then > prev=expsyms >@@ -1206,6 +1464,14 @@ > continue > ;; > >+ -framework) >+ prev=darwin_framework >+ compiler_flags="$compiler_flags $arg" >+ compile_command="$compile_command $arg" >+ finalize_command="$finalize_command $arg" >+ continue >+ ;; >+ > -inst-prefix-dir) > prev=inst_prefix > continue >@@ -1232,7 +1498,7 @@ > absdir=`cd "$dir" && pwd` > if test -z "$absdir"; then > $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2 >- exit 1 >+ exit $EXIT_FAILURE > fi > dir="$absdir" > ;; >@@ -1266,7 +1532,7 @@ > # These systems don't actually have a C library (as such) > test "X$arg" = "X-lc" && continue > ;; >- *-*-openbsd* | *-*-freebsd*) >+ *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) > # Do not include libc due to us having libc/libc_r. > test "X$arg" = "X-lc" && continue > ;; >@@ -1277,7 +1543,7 @@ > esac > elif test "X$arg" = "X-lc_r"; then > case $host in >- *-*-openbsd* | *-*-freebsd*) >+ *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) > # Do not include libc_r directly, use -pthread flag. > continue > ;; >@@ -1287,23 +1553,41 @@ > continue > ;; > >+ # Tru64 UNIX uses -model [arg] to determine the layout of C++ >+ # classes, name mangling, and exception handling. >+ -model) >+ compile_command="$compile_command $arg" >+ compiler_flags="$compiler_flags $arg" >+ finalize_command="$finalize_command $arg" >+ prev=xcompiler >+ continue >+ ;; >+ >+ -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe) >+ compiler_flags="$compiler_flags $arg" >+ compile_command="$compile_command $arg" >+ finalize_command="$finalize_command $arg" >+ continue >+ ;; >+ > -module) > module=yes > continue > ;; > >- # gcc -m* arguments should be passed to the linker via $compiler_flags >- # in order to pass architecture information to the linker >- # (e.g. 32 vs 64-bit). This may also be accomplished via -Wl,-mfoo >- # but this is not reliable with gcc because gcc may use -mfoo to >- # select a different linker, different libraries, etc, while >- # -Wl,-mfoo simply passes -mfoo to the linker. >- -m*) >+ # -64, -mips[0-9] enable 64-bit mode on the SGI compiler >+ # -r[0-9][0-9]* specifies the processor on the SGI compiler >+ # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler >+ # +DA*, +DD* enable 64-bit mode on the HP compiler >+ # -q* pass through compiler args for the IBM compiler >+ # -m* pass through architecture-specific compiler args for GCC >+ -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*) >+ > # Unknown arguments in both finalize_command and compile_command need > # to be aesthetically quoted because they are evaled later. > arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` > case $arg in >- *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") >+ *$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "") > arg="\"$arg\"" > ;; > esac >@@ -1351,6 +1635,11 @@ > > -o) prev=output ;; > >+ -precious-files-regex) >+ prev=precious_regex >+ continue >+ ;; >+ > -release) > prev=release > continue >@@ -1373,7 +1662,7 @@ > [\\/]* | [A-Za-z]:[\\/]*) ;; > *) > $echo "$modename: only absolute run-paths are allowed" 1>&2 >- exit 1 >+ exit $EXIT_FAILURE > ;; > esac > case "$xrpath " in >@@ -1414,7 +1703,7 @@ > for flag in $args; do > IFS="$save_ifs" > case $flag in >- *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") >+ *$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "") > flag="\"$flag\"" > ;; > esac >@@ -1432,7 +1721,7 @@ > for flag in $args; do > IFS="$save_ifs" > case $flag in >- *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") >+ *$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "") > flag="\"$flag\"" > ;; > esac >@@ -1459,13 +1748,18 @@ > continue > ;; > >+ -Kthread | -mthreads | -mt | -pthread | -pthreads | -threads | -qthreaded | -kthread ) >+ compiler_flags="$compiler_flags $arg" >+ continue >+ ;; >+ > # Some other compiler flag. > -* | +*) > # Unknown arguments in both finalize_command and compile_command need > # to be aesthetically quoted because they are evaled later. > arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` > case $arg in >- *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") >+ *$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "") > arg="\"$arg\"" > ;; > esac >@@ -1496,7 +1790,7 @@ > test "$pic_object" = none && \ > test "$non_pic_object" = none; then > $echo "$modename: cannot find name of object for \`$arg'" 1>&2 >- exit 1 >+ exit $EXIT_FAILURE > fi > > # Extract subdirectory from the argument. >@@ -1549,7 +1843,7 @@ > # Only an error if not doing a dry-run. > if test -z "$run"; then > $echo "$modename: \`$arg' is not a valid libtool object" 1>&2 >- exit 1 >+ exit $EXIT_FAILURE > else > # Dry-run case. > >@@ -1599,7 +1893,7 @@ > # to be aesthetically quoted because they are evaled later. > arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` > case $arg in >- *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") >+ *$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "") > arg="\"$arg\"" > ;; > esac >@@ -1616,48 +1910,7 @@ > if test -n "$prev"; then > $echo "$modename: the \`$prevarg' option requires an argument" 1>&2 > $echo "$help" 1>&2 >- exit 1 >- fi >- >- # Infer tagged configuration to use if any are available and >- # if one wasn't chosen via the "--tag" command line option. >- # Only attempt this if the compiler in the base link >- # command doesn't match the default compiler. >- if test -n "$available_tags" && test -z "$tagname"; then >- case $base_compile in >- # Blanks in the command may have been stripped by the calling shell, >- # but not from the CC environment variable when configure was run. >- "$CC "* | " $CC "* | "`$echo $CC` "* | " `$echo $CC` "*) ;; >- # Blanks at the start of $base_compile will cause this to fail >- # if we don't check for them as well. >- *) >- for z in $available_tags; do >- if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$0" > /dev/null; then >- # Evaluate the configuration. >- eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $0`" >- case $base_compile in >- "$CC "* | " $CC "* | "`$echo $CC` "* | " `$echo $CC` "*) >- # The compiler in $compile_command matches >- # the one in the tagged configuration. >- # Assume this is the tagged configuration we want. >- tagname=$z >- break >- ;; >- esac >- fi >- done >- # If $tagname still isn't set, then no tagged configuration >- # was found and let the user know that the "--tag" command >- # line option must be used. >- if test -z "$tagname"; then >- $echo "$modename: unable to infer tagged configuration" >- $echo "$modename: specify a tag with \`--tag'" 1>&2 >- exit 1 >-# else >-# $echo "$modename: using $tagname tagged configuration" >- fi >- ;; >- esac >+ exit $EXIT_FAILURE > fi > > if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then >@@ -1701,7 +1954,7 @@ > "") > $echo "$modename: you must specify an output file" 1>&2 > $echo "$help" 1>&2 >- exit 1 >+ exit $EXIT_FAILURE > ;; > *.$libext) linkmode=oldlib ;; > *.lo | *.$objext) linkmode=obj ;; >@@ -1711,7 +1964,7 @@ > > case $host in > *cygwin* | *mingw* | *pw32*) >- # don't eliminate duplcations in $postdeps and $predeps >+ # don't eliminate duplications in $postdeps and $predeps > duplicate_compiler_generated_deps=yes > ;; > *) >@@ -1764,7 +2017,7 @@ > *.la) ;; > *) > $echo "$modename: libraries can \`-dlopen' only libtool libraries: $file" 1>&2 >- exit 1 >+ exit $EXIT_FAILURE > ;; > esac > done >@@ -1802,23 +2055,34 @@ > lib= > found=no > case $deplib in >+ -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe) >+ if test "$linkmode,$pass" = "prog,link"; then >+ compile_deplibs="$deplib $compile_deplibs" >+ finalize_deplibs="$deplib $finalize_deplibs" >+ else >+ compiler_flags="$compiler_flags $deplib" >+ fi >+ continue >+ ;; > -l*) > if test "$linkmode" != lib && test "$linkmode" != prog; then > $echo "$modename: warning: \`-l' is ignored for archives/objects" 1>&2 > continue > fi >- if test "$pass" = conv; then >- deplibs="$deplib $deplibs" >- continue >- fi > name=`$echo "X$deplib" | $Xsed -e 's/^-l//'` > for searchdir in $newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path; do >- # Search the libtool library >- lib="$searchdir/lib${name}.la" >- if test -f "$lib"; then >- found=yes >- break >- fi >+ for search_ext in .la $std_shrext .so .a; do >+ # Search the libtool library >+ lib="$searchdir/lib${name}${search_ext}" >+ if test -f "$lib"; then >+ if test "$search_ext" = ".la"; then >+ found=yes >+ else >+ found=no >+ fi >+ break 2 >+ fi >+ done > done > if test "$found" != yes; then > # deplib doesn't seem to be a libtool library >@@ -1883,11 +2147,11 @@ > fi > if test "$pass" = scan; then > deplibs="$deplib $deplibs" >- newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'` > else > compile_deplibs="$deplib $compile_deplibs" > finalize_deplibs="$deplib $finalize_deplibs" > fi >+ newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'` > ;; > *) > $echo "$modename: warning: \`-L' is ignored for archives/objects" 1>&2 >@@ -1915,7 +2179,22 @@ > fi > case $linkmode in > lib) >- if test "$deplibs_check_method" != pass_all; then >+ valid_a_lib=no >+ case $deplibs_check_method in >+ match_pattern*) >+ set dummy $deplibs_check_method >+ match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"` >+ if eval $echo \"$deplib\" 2>/dev/null \ >+ | $SED 10q \ >+ | $EGREP "$match_pattern_regex" > /dev/null; then >+ valid_a_lib=yes >+ fi >+ ;; >+ pass_all) >+ valid_a_lib=yes >+ ;; >+ esac >+ if test "$valid_a_lib" != yes; then > $echo > $echo "*** Warning: Trying to link with static lib archive $deplib." > $echo "*** I have the capability to make that library automatically link in when" >@@ -1966,14 +2245,14 @@ > if test "$found" = yes || test -f "$lib"; then : > else > $echo "$modename: cannot find the library \`$lib'" 1>&2 >- exit 1 >+ exit $EXIT_FAILURE > fi > > # Check to see that this really is a libtool archive. > if (${SED} -e '2q' $lib | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then : > else > $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2 >- exit 1 >+ exit $EXIT_FAILURE > fi > > ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'` >@@ -1989,6 +2268,8 @@ > # it will not redefine variables installed, or shouldnotlink > installed=yes > shouldnotlink=no >+ avoidtemprpath= >+ > > # Read the .la file > case $lib in >@@ -2009,7 +2290,7 @@ > if test -z "$libdir"; then > if test -z "$old_library"; then > $echo "$modename: cannot find name of link library for \`$lib'" 1>&2 >- exit 1 >+ exit $EXIT_FAILURE > fi > # It is a libtool convenience library, so add in its objects. > convenience="$convenience $ladir/$objdir/$old_library" >@@ -2026,12 +2307,12 @@ > done > elif test "$linkmode" != prog && test "$linkmode" != lib; then > $echo "$modename: \`$lib' is not a convenience library" 1>&2 >- exit 1 >+ exit $EXIT_FAILURE > fi > continue > fi # $pass = conv > >- >+ > # Get the name of the library we link against. > linklib= > for l in $old_library $library_names; do >@@ -2039,16 +2320,18 @@ > done > if test -z "$linklib"; then > $echo "$modename: cannot find name of link library for \`$lib'" 1>&2 >- exit 1 >+ exit $EXIT_FAILURE > fi > > # This library was specified with -dlopen. > if test "$pass" = dlopen; then > if test -z "$libdir"; then > $echo "$modename: cannot -dlopen a convenience library: \`$lib'" 1>&2 >- exit 1 >+ exit $EXIT_FAILURE > fi >- if test -z "$dlname" || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then >+ if test -z "$dlname" || >+ test "$dlopen_support" != yes || >+ test "$build_libtool_libs" = no; then > # If there is no dlname, no dlopen support or we're linking > # statically, we need to preload. We also need to preload any > # dependent libraries so libltdl's deplib preloader doesn't >@@ -2085,11 +2368,19 @@ > dir="$libdir" > absdir="$libdir" > fi >+ test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes > else >- dir="$ladir/$objdir" >- absdir="$abs_ladir/$objdir" >- # Remove this search path later >- notinst_path="$notinst_path $abs_ladir" >+ if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then >+ dir="$ladir" >+ absdir="$abs_ladir" >+ # Remove this search path later >+ notinst_path="$notinst_path $abs_ladir" >+ else >+ dir="$ladir/$objdir" >+ absdir="$abs_ladir/$objdir" >+ # Remove this search path later >+ notinst_path="$notinst_path $abs_ladir" >+ fi > fi # $installed = yes > name=`$echo "X$laname" | $Xsed -e 's/\.la$//' -e 's/^lib//'` > >@@ -2097,7 +2388,7 @@ > if test "$pass" = dlpreopen; then > if test -z "$libdir"; then > $echo "$modename: cannot -dlpreopen a convenience library: \`$lib'" 1>&2 >- exit 1 >+ exit $EXIT_FAILURE > fi > # Prefer using a static library (so that no silly _DYNAMIC symbols > # are required to link). >@@ -2124,7 +2415,7 @@ > continue > fi > >- >+ > if test "$linkmode" = prog && test "$pass" != link; then > newlib_search_path="$newlib_search_path $ladir" > deplibs="$lib $deplibs" >@@ -2162,7 +2453,7 @@ > if test -n "$library_names" && > { test "$prefer_static_libs" = no || test -z "$old_library"; }; then > # We need to hardcode the library path >- if test -n "$shlibpath_var"; then >+ if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then > # Make sure the rpath contains only unique directories. > case "$temp_rpath " in > *" $dir "*) ;; >@@ -2211,17 +2502,18 @@ > need_relink=yes > fi > # This is a shared library >- >- # Warn about portability, can't link against -module's on some systems (darwin) >- if test "$shouldnotlink" = yes && test "$pass" = link ; then >+ >+ # Warn about portability, can't link against -module's on >+ # some systems (darwin) >+ if test "$shouldnotlink" = yes && test "$pass" = link ; then > $echo > if test "$linkmode" = prog; then > $echo "*** Warning: Linking the executable $output against the loadable module" > else > $echo "*** Warning: Linking the shared library $output against the loadable module" > fi >- $echo "*** $linklib is not portable!" >- fi >+ $echo "*** $linklib is not portable!" >+ fi > if test "$linkmode" = lib && > test "$hardcode_into_libs" = yes; then > # Hardcode the library path. >@@ -2279,9 +2571,10 @@ > else > $show "extracting exported symbol list from \`$soname'" > save_ifs="$IFS"; IFS='~' >- eval cmds=\"$extract_expsyms_cmds\" >+ cmds=$extract_expsyms_cmds > for cmd in $cmds; do > IFS="$save_ifs" >+ eval cmd=\"$cmd\" > $show "$cmd" > $run eval "$cmd" || exit $? > done >@@ -2292,9 +2585,10 @@ > if test -f "$output_objdir/$newlib"; then :; else > $show "generating import library for \`$soname'" > save_ifs="$IFS"; IFS='~' >- eval cmds=\"$old_archive_from_expsyms_cmds\" >+ cmds=$old_archive_from_expsyms_cmds > for cmd in $cmds; do > IFS="$save_ifs" >+ eval cmd=\"$cmd\" > $show "$cmd" > $run eval "$cmd" || exit $? > done >@@ -2317,9 +2611,9 @@ > case $host in > *-*-sco3.2v5* ) add_dir="-L$dir" ;; > *-*-darwin* ) >- # if the lib is a module then we can not link against it, someone >- # is ignoring the new warnings I added >- if /usr/bin/file -L $add 2> /dev/null | grep "bundle" >/dev/null ; then >+ # if the lib is a module then we can not link against >+ # it, someone is ignoring the new warnings I added >+ if /usr/bin/file -L $add 2> /dev/null | $EGREP "bundle" >/dev/null ; then > $echo "** Warning, lib $linklib is a module, not a shared library" > if test -z "$old_library" ; then > $echo >@@ -2327,7 +2621,7 @@ > $echo "** The link will probably fail, sorry" > else > add="$dir/$old_library" >- fi >+ fi > fi > esac > elif test "$hardcode_minus_L" = no; then >@@ -2352,7 +2646,7 @@ > if test -n "$inst_prefix_dir"; then > case "$libdir" in > [\\/]*) >- add_dir="-L$inst_prefix_dir$libdir $add_dir" >+ add_dir="$add_dir -L$inst_prefix_dir$libdir" > ;; > esac > fi >@@ -2369,7 +2663,7 @@ > > if test "$lib_linked" != yes; then > $echo "$modename: configuration error: unsupported hardcode properties" >- exit 1 >+ exit $EXIT_FAILURE > fi > > if test -n "$add_shlibpath"; then >@@ -2412,7 +2706,8 @@ > esac > add="-l$name" > elif test "$hardcode_automatic" = yes; then >- if test -n "$inst_prefix_dir" && test -f "$inst_prefix_dir$libdir/$linklib" ; then >+ if test -n "$inst_prefix_dir" && >+ test -f "$inst_prefix_dir$libdir/$linklib" ; then > add="$inst_prefix_dir$libdir/$linklib" > else > add="$libdir/$linklib" >@@ -2424,7 +2719,7 @@ > if test -n "$inst_prefix_dir"; then > case "$libdir" in > [\\/]*) >- add_dir="-L$inst_prefix_dir$libdir $add_dir" >+ add_dir="$add_dir -L$inst_prefix_dir$libdir" > ;; > esac > fi >@@ -2492,7 +2787,8 @@ > > if test "$linkmode" = lib; then > if test -n "$dependency_libs" && >- { test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes || >+ { test "$hardcode_into_libs" != yes || >+ test "$build_old_libs" = yes || > test "$link_static" = yes; }; then > # Extract -R from dependency_libs > temp_deplibs= >@@ -2549,7 +2845,7 @@ > eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` > if test -z "$libdir"; then > $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2 >- exit 1 >+ exit $EXIT_FAILURE > fi > if test "$absdir" != "$libdir"; then > $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2 >@@ -2559,7 +2855,8 @@ > depdepl= > case $host in > *-*-darwin*) >- # we do not want to link against static libs, but need to link against shared >+ # we do not want to link against static libs, >+ # but need to link against shared > eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib` > if test -n "$deplibrary_names" ; then > for tmp in $deplibrary_names ; do >@@ -2567,42 +2864,45 @@ > done > if test -f "$path/$depdepl" ; then > depdepl="$path/$depdepl" >- fi >- newlib_search_path="$newlib_search_path $path" >- path="" >+ fi >+ # do not add paths which are already there >+ case " $newlib_search_path " in >+ *" $path "*) ;; >+ *) newlib_search_path="$newlib_search_path $path";; >+ esac > fi >+ path="" > ;; > *) >- path="-L$path" >- ;; >- esac >- >+ path="-L$path" >+ ;; >+ esac > ;; >- -l*) >+ -l*) > case $host in > *-*-darwin*) >- # Again, we only want to link against shared libraries >- eval tmp_libs=`$echo "X$deplib" | $Xsed -e "s,^\-l,,"` >- for tmp in $newlib_search_path ; do >- if test -f "$tmp/lib$tmp_libs.dylib" ; then >- eval depdepl="$tmp/lib$tmp_libs.dylib" >- break >- fi >- done >- path="" >+ # Again, we only want to link against shared libraries >+ eval tmp_libs=`$echo "X$deplib" | $Xsed -e "s,^\-l,,"` >+ for tmp in $newlib_search_path ; do >+ if test -f "$tmp/lib$tmp_libs.dylib" ; then >+ eval depdepl="$tmp/lib$tmp_libs.dylib" >+ break >+ fi >+ done >+ path="" > ;; > *) continue ;; >- esac >+ esac > ;; > *) continue ;; > esac > case " $deplibs " in >- *" $depdepl "*) ;; >- *) deplibs="$deplibs $depdepl" ;; >- esac >- case " $deplibs " in > *" $path "*) ;; >- *) deplibs="$deplibs $path" ;; >+ *) deplibs="$path $deplibs" ;; >+ esac >+ case " $deplibs " in >+ *" $depdepl "*) ;; >+ *) deplibs="$depdepl $deplibs" ;; > esac > done > fi # link_all_deplibs != no >@@ -2689,7 +2989,8 @@ > eval $var=\"$tmp_libs\" > done # for var > fi >- # Last step: remove runtime libs from dependency_libs (they stay in deplibs) >+ # Last step: remove runtime libs from dependency_libs >+ # (they stay in deplibs) > tmp_libs= > for i in $dependency_libs ; do > case " $predeps $postdeps $compiler_lib_search_path " in >@@ -2749,19 +3050,19 @@ > case $outputname in > lib*) > name=`$echo "X$outputname" | $Xsed -e 's/\.la$//' -e 's/^lib//'` >- eval shared_ext=\"$shrext\" >+ eval shared_ext=\"$shrext_cmds\" > eval libname=\"$libname_spec\" > ;; > *) > if test "$module" = no; then > $echo "$modename: libtool library \`$output' must begin with \`lib'" 1>&2 > $echo "$help" 1>&2 >- exit 1 >+ exit $EXIT_FAILURE > fi > if test "$need_lib_prefix" != no; then > # Add the "lib" prefix for modules if required > name=`$echo "X$outputname" | $Xsed -e 's/\.la$//'` >- eval shared_ext=\"$shrext\" >+ eval shared_ext=\"$shrext_cmds\" > eval libname=\"$libname_spec\" > else > libname=`$echo "X$outputname" | $Xsed -e 's/\.la$//'` >@@ -2772,7 +3073,7 @@ > if test -n "$objs"; then > if test "$deplibs_check_method" != pass_all; then > $echo "$modename: cannot build libtool library \`$output' from non-libtool objects on this host:$objs" 2>&1 >- exit 1 >+ exit $EXIT_FAILURE > else > $echo > $echo "*** Warning: Linking the shared library $output against the non-libtool" >@@ -2820,13 +3121,13 @@ > if test -n "$8"; then > $echo "$modename: too many parameters to \`-version-info'" 1>&2 > $echo "$help" 1>&2 >- exit 1 >+ exit $EXIT_FAILURE > fi > > # convert absolute version numbers to libtool ages > # this retains compatibility with .la files and attempts > # to make the code below a bit more comprehensible >- >+ > case $vinfo_number in > yes) > number_major="$2" >@@ -2866,36 +3167,36 @@ > > # Check that each of the things are valid numbers. > case $current in >- 0 | [1-9] | [1-9][0-9] | [1-9][0-9][0-9]) ;; >+ 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; > *) >- $echo "$modename: CURRENT \`$current' is not a nonnegative integer" 1>&2 >+ $echo "$modename: CURRENT \`$current' must be a nonnegative integer" 1>&2 > $echo "$modename: \`$vinfo' is not valid version information" 1>&2 >- exit 1 >+ exit $EXIT_FAILURE > ;; > esac > > case $revision in >- 0 | [1-9] | [1-9][0-9] | [1-9][0-9][0-9]) ;; >+ 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; > *) >- $echo "$modename: REVISION \`$revision' is not a nonnegative integer" 1>&2 >+ $echo "$modename: REVISION \`$revision' must be a nonnegative integer" 1>&2 > $echo "$modename: \`$vinfo' is not valid version information" 1>&2 >- exit 1 >+ exit $EXIT_FAILURE > ;; > esac > > case $age in >- 0 | [1-9] | [1-9][0-9] | [1-9][0-9][0-9]) ;; >+ 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; > *) >- $echo "$modename: AGE \`$age' is not a nonnegative integer" 1>&2 >+ $echo "$modename: AGE \`$age' must be a nonnegative integer" 1>&2 > $echo "$modename: \`$vinfo' is not valid version information" 1>&2 >- exit 1 >+ exit $EXIT_FAILURE > ;; > esac > > if test "$age" -gt "$current"; then > $echo "$modename: AGE \`$age' is greater than the current interface number \`$current'" 1>&2 > $echo "$modename: \`$vinfo' is not valid version information" 1>&2 >- exit 1 >+ exit $EXIT_FAILURE > fi > > # Calculate the version variables. >@@ -2912,7 +3213,7 @@ > versuffix="$major.$age.$revision" > # Darwin ld doesn't like 0 for these options... > minor_current=`expr $current + 1` >- verstring="-compatibility_version $minor_current -current_version $minor_current.$revision" >+ verstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision" > ;; > > freebsd-aout) >@@ -2984,7 +3285,7 @@ > *) > $echo "$modename: unknown library version type \`$version_type'" 1>&2 > $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2 >- exit 1 >+ exit $EXIT_FAILURE > ;; > esac > >@@ -3038,6 +3339,12 @@ > *.$objext) > ;; > $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*) >+ if test "X$precious_files_regex" != "X"; then >+ if echo $p | $EGREP -e "$precious_files_regex" >/dev/null 2>&1 >+ then >+ continue >+ fi >+ fi > removelist="$removelist $p" > ;; > *) ;; >@@ -3112,7 +3419,7 @@ > *-*-netbsd*) > # Don't link with libc until the a.out ld.so is fixed. > ;; >- *-*-openbsd* | *-*-freebsd*) >+ *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) > # Do not include libc due to us having libc/libc_r. > test "X$arg" = "X-lc" && continue > ;; >@@ -3285,6 +3592,13 @@ > *) potlib=`$echo "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";; > esac > done >+ # It is ok to link against an archive when >+ # building a shared library. >+ if $AR -t $potlib > /dev/null 2>&1; then >+ newdeplibs="$newdeplibs $a_deplib" >+ a_deplib="" >+ break 2 >+ fi > if eval $file_magic_cmd \"\$potlib\" 2>/dev/null \ > | ${SED} 10q \ > | $EGREP "$file_magic_regex" > /dev/null; then >@@ -3517,7 +3831,7 @@ > fi > > # Get the real and link names of the library. >- eval shared_ext=\"$shrext\" >+ eval shared_ext=\"$shrext_cmds\" > eval library_names=\"$library_names_spec\" > set dummy $library_names > realname="$2" >@@ -3547,10 +3861,11 @@ > $show "generating symbol list for \`$libname.la'" > export_symbols="$output_objdir/$libname.exp" > $run $rm $export_symbols >- eval cmds=\"$export_symbols_cmds\" >+ cmds=$export_symbols_cmds > save_ifs="$IFS"; IFS='~' > for cmd in $cmds; do > IFS="$save_ifs" >+ eval cmd=\"$cmd\" > if len=`expr "X$cmd" : ".*"` && > test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then > $show "$cmd" >@@ -3580,12 +3895,12 @@ > for test_deplib in $deplibs; do > case " $convenience " in > *" $test_deplib "*) ;; >- *) >+ *) > tmp_deplibs="$tmp_deplibs $test_deplib" > ;; > esac > done >- deplibs="$tmp_deplibs" >+ deplibs="$tmp_deplibs" > > if test -n "$convenience"; then > if test -n "$whole_archive_flag_spec"; then >@@ -3593,67 +3908,13 @@ > eval libobjs=\"\$libobjs $whole_archive_flag_spec\" > else > gentop="$output_objdir/${outputname}x" >- $show "${rm}r $gentop" >- $run ${rm}r "$gentop" >- $show "$mkdir $gentop" >- $run $mkdir "$gentop" >- status=$? >- if test "$status" -ne 0 && test ! -d "$gentop"; then >- exit $status >- fi > generated="$generated $gentop" > >- for xlib in $convenience; do >- # Extract the objects. >- case $xlib in >- [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;; >- *) xabs=`pwd`"/$xlib" ;; >- esac >- xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'` >- xdir="$gentop/$xlib" >- >- $show "${rm}r $xdir" >- $run ${rm}r "$xdir" >- $show "$mkdir $xdir" >- $run $mkdir "$xdir" >- status=$? >- if test "$status" -ne 0 && test ! -d "$xdir"; then >- exit $status >- fi >- # We will extract separately just the conflicting names and we will no >- # longer touch any unique names. It is faster to leave these extract >- # automatically by $AR in one run. >- $show "(cd $xdir && $AR x $xabs)" >- $run eval "(cd \$xdir && $AR x \$xabs)" || exit $? >- if ($AR t "$xabs" | sort | sort -uc >/dev/null 2>&1); then >- : >- else >- $echo "$modename: warning: object name conflicts; renaming object files" 1>&2 >- $echo "$modename: warning: to ensure that they will not overwrite" 1>&2 >- $AR t "$xabs" | sort | uniq -cd | while read -r count name >- do >- i=1 >- while test "$i" -le "$count" >- do >- # Put our $i before any first dot (extension) >- # Never overwrite any file >- name_to="$name" >- while test "X$name_to" = "X$name" || test -f "$xdir/$name_to" >- do >- name_to=`$echo "X$name_to" | $Xsed -e "s/\([^.]*\)/\1-$i/"` >- done >- $show "(cd $xdir && $AR xN $i $xabs '$name' && $mv '$name' '$name_to')" >- $run eval "(cd \$xdir && $AR xN $i \$xabs '$name' && $mv '$name' '$name_to')" || exit $? >- i=`expr $i + 1` >- done >- done >- fi >- >- libobjs="$libobjs "`find $xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP` >- done >+ func_extract_archives $gentop $convenience >+ libobjs="$libobjs $func_extract_archives_result" > fi > fi >- >+ > if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then > eval flag=\"$thread_safe_flag_spec\" > linker_flags="$linker_flags $flag" >@@ -3667,19 +3928,23 @@ > # Do each of the archive commands. > if test "$module" = yes && test -n "$module_cmds" ; then > if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then >- eval cmds=\"$module_expsym_cmds\" >+ eval test_cmds=\"$module_expsym_cmds\" >+ cmds=$module_expsym_cmds > else >- eval cmds=\"$module_cmds\" >+ eval test_cmds=\"$module_cmds\" >+ cmds=$module_cmds > fi > else > if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then >- eval cmds=\"$archive_expsym_cmds\" >+ eval test_cmds=\"$archive_expsym_cmds\" >+ cmds=$archive_expsym_cmds > else >- eval cmds=\"$archive_cmds\" >+ eval test_cmds=\"$archive_cmds\" >+ cmds=$archive_cmds > fi > fi > >- if test "X$skipped_export" != "X:" && len=`expr "X$cmds" : ".*"` && >+ if test "X$skipped_export" != "X:" && len=`expr "X$test_cmds" : ".*"` && > test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then > : > else >@@ -3698,6 +3963,7 @@ > save_libobjs=$libobjs > fi > save_output=$output >+ output_la=`$echo "X$output" | $Xsed -e "$basename"` > > # Clear the reloadable object creation command queue and > # initialize k to one. >@@ -3707,7 +3973,7 @@ > delfiles= > last_robj= > k=1 >- output=$output_objdir/$save_output-${k}.$objext >+ output=$output_objdir/$output_la-${k}.$objext > # Loop over the list of objects to be linked. > for obj in $save_libobjs > do >@@ -3727,9 +3993,9 @@ > # the last one created. > eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj\" > fi >- last_robj=$output_objdir/$save_output-${k}.$objext >+ last_robj=$output_objdir/$output_la-${k}.$objext > k=`expr $k + 1` >- output=$output_objdir/$save_output-${k}.$objext >+ output=$output_objdir/$output_la-${k}.$objext > objlist=$obj > len=1 > fi >@@ -3749,13 +4015,13 @@ > eval concat_cmds=\"\$concat_cmds~$export_symbols_cmds\" > fi > >- # Set up a command to remove the reloadale object files >+ # Set up a command to remove the reloadable object files > # after they are used. > i=0 > while test "$i" -lt "$k" > do > i=`expr $i + 1` >- delfiles="$delfiles $output_objdir/$save_output-${i}.$objext" >+ delfiles="$delfiles $output_objdir/$output_la-${i}.$objext" > done > > $echo "creating a temporary reloadable object file: $output" >@@ -3780,19 +4046,28 @@ > # value of $libobjs for piecewise linking. > > # Do each of the archive commands. >+ if test "$module" = yes && test -n "$module_cmds" ; then >+ if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then >+ cmds=$module_expsym_cmds >+ else >+ cmds=$module_cmds >+ fi >+ else > if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then >- eval cmds=\"$archive_expsym_cmds\" >+ cmds=$archive_expsym_cmds > else >- eval cmds=\"$archive_cmds\" >+ cmds=$archive_cmds >+ fi > fi > > # Append the command to remove the reloadable object files > # to the just-reset $cmds. >- eval cmds=\"\$cmds~$rm $delfiles\" >+ eval cmds=\"\$cmds~\$rm $delfiles\" > fi > save_ifs="$IFS"; IFS='~' > for cmd in $cmds; do > IFS="$save_ifs" >+ eval cmd=\"$cmd\" > $show "$cmd" > $run eval "$cmd" || exit $? > done >@@ -3801,7 +4076,7 @@ > # Restore the uninstalled library and exit > if test "$mode" = relink; then > $run eval '(cd $output_objdir && $rm ${realname}T && $mv $realname ${realname}T && $mv "$realname"U $realname)' || exit $? >- exit 0 >+ exit $EXIT_SUCCESS > fi > > # Create links to the real library. >@@ -3849,7 +4124,7 @@ > *.lo) > if test -n "$objs$old_deplibs"; then > $echo "$modename: cannot build library object \`$output' from non-libtool objects" 1>&2 >- exit 1 >+ exit $EXIT_FAILURE > fi > libobj="$output" > obj=`$echo "X$output" | $Xsed -e "$lo2o"` >@@ -3878,64 +4153,10 @@ > eval reload_conv_objs=\"\$reload_objs $whole_archive_flag_spec\" > else > gentop="$output_objdir/${obj}x" >- $show "${rm}r $gentop" >- $run ${rm}r "$gentop" >- $show "$mkdir $gentop" >- $run $mkdir "$gentop" >- status=$? >- if test "$status" -ne 0 && test ! -d "$gentop"; then >- exit $status >- fi > generated="$generated $gentop" > >- for xlib in $convenience; do >- # Extract the objects. >- case $xlib in >- [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;; >- *) xabs=`pwd`"/$xlib" ;; >- esac >- xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'` >- xdir="$gentop/$xlib" >- >- $show "${rm}r $xdir" >- $run ${rm}r "$xdir" >- $show "$mkdir $xdir" >- $run $mkdir "$xdir" >- status=$? >- if test "$status" -ne 0 && test ! -d "$xdir"; then >- exit $status >- fi >- # We will extract separately just the conflicting names and we will no >- # longer touch any unique names. It is faster to leave these extract >- # automatically by $AR in one run. >- $show "(cd $xdir && $AR x $xabs)" >- $run eval "(cd \$xdir && $AR x \$xabs)" || exit $? >- if ($AR t "$xabs" | sort | sort -uc >/dev/null 2>&1); then >- : >- else >- $echo "$modename: warning: object name conflicts; renaming object files" 1>&2 >- $echo "$modename: warning: to ensure that they will not overwrite" 1>&2 >- $AR t "$xabs" | sort | uniq -cd | while read -r count name >- do >- i=1 >- while test "$i" -le "$count" >- do >- # Put our $i before any first dot (extension) >- # Never overwrite any file >- name_to="$name" >- while test "X$name_to" = "X$name" || test -f "$xdir/$name_to" >- do >- name_to=`$echo "X$name_to" | $Xsed -e "s/\([^.]*\)/\1-$i/"` >- done >- $show "(cd $xdir && $AR xN $i $xabs '$name' && $mv '$name' '$name_to')" >- $run eval "(cd \$xdir && $AR xN $i \$xabs '$name' && $mv '$name' '$name_to')" || exit $? >- i=`expr $i + 1` >- done >- done >- fi >- >- reload_conv_objs="$reload_objs "`find $xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP` >- done >+ func_extract_archives $gentop $convenience >+ reload_conv_objs="$reload_objs $func_extract_archives_result" > fi > fi > >@@ -3943,10 +4164,11 @@ > reload_objs="$objs$old_deplibs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}$'/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test > > output="$obj" >- eval cmds=\"$reload_cmds\" >+ cmds=$reload_cmds > save_ifs="$IFS"; IFS='~' > for cmd in $cmds; do > IFS="$save_ifs" >+ eval cmd=\"$cmd\" > $show "$cmd" > $run eval "$cmd" || exit $? > done >@@ -3959,7 +4181,7 @@ > $run ${rm}r $gentop > fi > >- exit 0 >+ exit $EXIT_SUCCESS > fi > > if test "$build_libtool_libs" != yes; then >@@ -3972,17 +4194,18 @@ > # accidentally link it into a program. > # $show "echo timestamp > $libobj" > # $run eval "echo timestamp > $libobj" || exit $? >- exit 0 >+ exit $EXIT_SUCCESS > fi > > if test -n "$pic_flag" || test "$pic_mode" != default; then > # Only do commands if we really have different PIC objects. > reload_objs="$libobjs $reload_conv_objs" > output="$libobj" >- eval cmds=\"$reload_cmds\" >+ cmds=$reload_cmds > save_ifs="$IFS"; IFS='~' > for cmd in $cmds; do > IFS="$save_ifs" >+ eval cmd=\"$cmd\" > $show "$cmd" > $run eval "$cmd" || exit $? > done >@@ -3994,7 +4217,7 @@ > $run ${rm}r $gentop > fi > >- exit 0 >+ exit $EXIT_SUCCESS > ;; > > prog) >@@ -4195,12 +4418,12 @@ > > # Prepare the list of exported symbols > if test -z "$export_symbols"; then >- export_symbols="$output_objdir/$output.exp" >+ export_symbols="$output_objdir/$outputname.exp" > $run $rm $export_symbols > $run eval "${SED} -n -e '/^: @PROGRAM@$/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"' > else >- $run eval "${SED} -e 's/\([][.*^$]\)/\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$output.exp"' >- $run eval 'grep -f "$output_objdir/$output.exp" < "$nlist" > "$nlist"T' >+ $run eval "${SED} -e 's/\([ ][.*^$]\)/\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"' >+ $run eval 'grep -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T' > $run eval 'mv "$nlist"T "$nlist"' > fi > fi >@@ -4252,7 +4475,26 @@ > #endif > > /* The mapping between symbol names and symbols. */ >+" >+ >+ case $host in >+ *cygwin* | *mingw* ) >+ $echo >> "$output_objdir/$dlsyms" "\ >+/* DATA imports from DLLs on WIN32 can't be const, because >+ runtime relocations are performed -- see ld's documentation >+ on pseudo-relocs */ >+struct { >+" >+ ;; >+ * ) >+ $echo >> "$output_objdir/$dlsyms" "\ > const struct { >+" >+ ;; >+ esac >+ >+ >+ $echo >> "$output_objdir/$dlsyms" "\ > const char *name; > lt_ptr address; > } >@@ -4312,7 +4554,7 @@ > ;; > *) > $echo "$modename: unknown suffix for \`$dlsyms'" 1>&2 >- exit 1 >+ exit $EXIT_FAILURE > ;; > esac > else >@@ -4400,7 +4642,7 @@ > # Link the executable and exit > $show "$link_command" > $run eval "$link_command" || exit $? >- exit 0 >+ exit $EXIT_SUCCESS > fi > > if test "$hardcode_action" = relink; then >@@ -4455,10 +4697,10 @@ > fi > > # Quote $echo for shipping. >- if test "X$echo" = "X$SHELL $0 --fallback-echo"; then >- case $0 in >- [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $0 --fallback-echo";; >- *) qecho="$SHELL `pwd`/$0 --fallback-echo";; >+ if test "X$echo" = "X$SHELL $progpath --fallback-echo"; then >+ case $progpath in >+ [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";; >+ *) qecho="$SHELL `pwd`/$progpath --fallback-echo";; > esac > qecho=`$echo "X$qecho" | $Xsed -e "$sed_quote_subst"` > else >@@ -4481,10 +4723,10 @@ > esac > case $host in > *cygwin* | *mingw* ) >- cwrappersource=`$echo ${objdir}/lt-${output}.c` >+ cwrappersource=`$echo ${objdir}/lt-${outputname}.c` > cwrapper=`$echo ${output}.exe` > $rm $cwrappersource $cwrapper >- trap "$rm $cwrappersource $cwrapper; exit 1" 1 2 15 >+ trap "$rm $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15 > > cat > $cwrappersource <<EOF > >@@ -4493,7 +4735,7 @@ > > The $output program cannot be directly executed until all the libtool > libraries that it depends on are installed. >- >+ > This wrapper executable should never be moved out of the build directory. > If it is, it will not operate correctly. > >@@ -4525,7 +4767,7 @@ > #if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \ > defined (__OS2__) > #define HAVE_DOS_BASED_FILE_SYSTEM >-#ifndef DIR_SEPARATOR_2 >+#ifndef DIR_SEPARATOR_2 > #define DIR_SEPARATOR_2 '\\' > #endif > #endif >@@ -4556,7 +4798,7 @@ > { > char **newargz; > int i; >- >+ > program_name = (char *) xstrdup ((char *) basename (argv[0])); > newargz = XMALLOC(char *, argc+2); > EOF >@@ -4569,7 +4811,7 @@ > newargz[1] = fnqualify(argv[0]); > /* we know the script has the same name, without the .exe */ > /* so make sure newargz[1] doesn't end in .exe */ >- strendzap(newargz[1],".exe"); >+ strendzap(newargz[1],".exe"); > for (i = 1; i < argc; i++) > newargz[i+1] = xstrdup(argv[i]); > newargz[argc+1] = NULL; >@@ -4592,7 +4834,7 @@ > return p; > } > >-char * >+char * > xstrdup (const char *string) > { > return string ? strcpy ((char *) xmalloc (strlen (string) + 1), string) : NULL >@@ -4606,7 +4848,7 @@ > > #if defined (HAVE_DOS_BASED_FILE_SYSTEM) > /* Skip over the disk name in MSDOS pathnames. */ >- if (isalpha (name[0]) && name[1] == ':') >+ if (isalpha (name[0]) && name[1] == ':') > name += 2; > #endif > >@@ -4616,7 +4858,7 @@ > return (char *) base; > } > >-char * >+char * > fnqualify(const char *path) > { > size_t size; >@@ -4644,7 +4886,7 @@ > } > > char * >-strendzap(char *str, const char *pat) >+strendzap(char *str, const char *pat) > { > size_t len, patlen; > >@@ -4664,7 +4906,7 @@ > } > > static void >-lt_error_core (int exit_status, const char * mode, >+lt_error_core (int exit_status, const char * mode, > const char * message, va_list ap) > { > fprintf (stderr, "%s: %s: ", program_name, mode); >@@ -4693,7 +4935,7 @@ > ;; > esac > $rm $output >- trap "$rm $output; exit 1" 1 2 15 >+ trap "$rm $output; exit $EXIT_FAILURE" 1 2 15 > > $echo > $output "\ > #! $SHELL >@@ -4714,7 +4956,7 @@ > > # The HP-UX ksh and POSIX shell print the target directory to stdout > # if CDPATH is set. >-if test \"\${CDPATH+set}\" = set; then CDPATH=:; export CDPATH; fi >+(unset CDPATH) >/dev/null 2>&1 && unset CDPATH > > relink_command=\"$relink_command\" > >@@ -4793,7 +5035,7 @@ > else > $echo \"\$relink_command_output\" >&2 > $rm \"\$progdir/\$file\" >- exit 1 >+ exit $EXIT_FAILURE > fi > fi > >@@ -4855,20 +5097,20 @@ > esac > $echo >> $output "\ > \$echo \"\$0: cannot exec \$program \${1+\"\$@\"}\" >- exit 1 >+ exit $EXIT_FAILURE > fi > else > # The program doesn't exist. > \$echo \"\$0: error: \$progdir/\$program does not exist\" 1>&2 > \$echo \"This script is just a wrapper for \$program.\" 1>&2 > $echo \"See the $PACKAGE documentation for more information.\" 1>&2 >- exit 1 >+ exit $EXIT_FAILURE > fi > fi\ > " > chmod +x $output > fi >- exit 0 >+ exit $EXIT_SUCCESS > ;; > esac > >@@ -4891,76 +5133,78 @@ > > if test -n "$addlibs"; then > gentop="$output_objdir/${outputname}x" >- $show "${rm}r $gentop" >- $run ${rm}r "$gentop" >- $show "$mkdir $gentop" >- $run $mkdir "$gentop" >- status=$? >- if test "$status" -ne 0 && test ! -d "$gentop"; then >- exit $status >- fi > generated="$generated $gentop" > >- # Add in members from convenience archives. >- for xlib in $addlibs; do >- # Extract the objects. >- case $xlib in >- [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;; >- *) xabs=`pwd`"/$xlib" ;; >- esac >- xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'` >- xdir="$gentop/$xlib" >- >- $show "${rm}r $xdir" >- $run ${rm}r "$xdir" >- $show "$mkdir $xdir" >- $run $mkdir "$xdir" >- status=$? >- if test "$status" -ne 0 && test ! -d "$xdir"; then >- exit $status >- fi >- # We will extract separately just the conflicting names and we will no >- # longer touch any unique names. It is faster to leave these extract >- # automatically by $AR in one run. >- $show "(cd $xdir && $AR x $xabs)" >- $run eval "(cd \$xdir && $AR x \$xabs)" || exit $? >- if ($AR t "$xabs" | sort | sort -uc >/dev/null 2>&1); then >- : >- else >- $echo "$modename: warning: object name conflicts; renaming object files" 1>&2 >- $echo "$modename: warning: to ensure that they will not overwrite" 1>&2 >- $AR t "$xabs" | sort | uniq -cd | while read -r count name >- do >- i=1 >- while test "$i" -le "$count" >- do >- # Put our $i before any first dot (extension) >- # Never overwrite any file >- name_to="$name" >- while test "X$name_to" = "X$name" || test -f "$xdir/$name_to" >- do >- name_to=`$echo "X$name_to" | $Xsed -e "s/\([^.]*\)/\1-$i/"` >- done >- $show "(cd $xdir && $AR xN $i $xabs '$name' && $mv '$name' '$name_to')" >- $run eval "(cd \$xdir && $AR xN $i \$xabs '$name' && $mv '$name' '$name_to')" || exit $? >- i=`expr $i + 1` >- done >- done >- fi >- >- oldobjs="$oldobjs "`find $xdir -name \*.${objext} -print -o -name \*.lo -print | $NL2SP` >- done >+ func_extract_archives $gentop $addlibs >+ oldobjs="$oldobjs $func_extract_archives_result" > fi > > # Do each command in the archive commands. > if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then >- eval cmds=\"$old_archive_from_new_cmds\" >+ cmds=$old_archive_from_new_cmds > else >+ # POSIX demands no paths to be encoded in archives. We have >+ # to avoid creating archives with duplicate basenames if we >+ # might have to extract them afterwards, e.g., when creating a >+ # static archive out of a convenience library, or when linking >+ # the entirety of a libtool archive into another (currently >+ # not supported by libtool). >+ if (for obj in $oldobjs >+ do >+ $echo "X$obj" | $Xsed -e 's%^.*/%%' >+ done | sort | sort -uc >/dev/null 2>&1); then >+ : >+ else >+ $echo "copying selected object files to avoid basename conflicts..." >+ >+ if test -z "$gentop"; then >+ gentop="$output_objdir/${outputname}x" >+ generated="$generated $gentop" >+ >+ $show "${rm}r $gentop" >+ $run ${rm}r "$gentop" >+ $show "$mkdir $gentop" >+ $run $mkdir "$gentop" >+ status=$? >+ if test "$status" -ne 0 && test ! -d "$gentop"; then >+ exit $status >+ fi >+ fi >+ >+ save_oldobjs=$oldobjs >+ oldobjs= >+ counter=1 >+ for obj in $save_oldobjs >+ do >+ objbase=`$echo "X$obj" | $Xsed -e 's%^.*/%%'` >+ case " $oldobjs " in >+ " ") oldobjs=$obj ;; >+ *[\ /]"$objbase "*) >+ while :; do >+ # Make sure we don't pick an alternate name that also >+ # overlaps. >+ newobj=lt$counter-$objbase >+ counter=`expr $counter + 1` >+ case " $oldobjs " in >+ *[\ /]"$newobj "*) ;; >+ *) if test ! -f "$gentop/$newobj"; then break; fi ;; >+ esac >+ done >+ $show "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj" >+ $run ln "$obj" "$gentop/$newobj" || >+ $run cp "$obj" "$gentop/$newobj" >+ oldobjs="$oldobjs $gentop/$newobj" >+ ;; >+ *) oldobjs="$oldobjs $obj" ;; >+ esac >+ done >+ fi >+ > eval cmds=\"$old_archive_cmds\" > > if len=`expr "X$cmds" : ".*"` && > test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then >- : >+ cmds=$old_archive_cmds > else > # the command line is too long to link in one step, link in parts > $echo "using piecewise archive linking..." >@@ -4969,25 +5213,12 @@ > objlist= > concat_cmds= > save_oldobjs=$oldobjs >- # GNU ar 2.10+ was changed to match POSIX; thus no paths are >- # encoded into archives. This makes 'ar r' malfunction in >- # this piecewise linking case whenever conflicting object >- # names appear in distinct ar calls; check, warn and compensate. >- if (for obj in $save_oldobjs >- do >- $echo "X$obj" | $Xsed -e 's%^.*/%%' >- done | sort | sort -uc >/dev/null 2>&1); then >- : >- else >- $echo "$modename: warning: object name conflicts; overriding AR_FLAGS to 'cq'" 1>&2 >- $echo "$modename: warning: to ensure that POSIX-compatible ar will work" 1>&2 >- AR_FLAGS=cq >- fi >+ > # Is there a better way of finding the last object in the list? > for obj in $save_oldobjs > do > last_oldobj=$obj >- done >+ done > for obj in $save_oldobjs > do > oldobjs="$objlist $obj" >@@ -5001,7 +5232,7 @@ > oldobjs=$objlist > if test "$obj" = "$last_oldobj" ; then > RANLIB=$save_RANLIB >- fi >+ fi > test -z "$concat_cmds" || concat_cmds=$concat_cmds~ > eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\" > objlist= >@@ -5012,12 +5243,13 @@ > if test "X$oldobjs" = "X" ; then > eval cmds=\"\$concat_cmds\" > else >- eval cmds=\"\$concat_cmds~$old_archive_cmds\" >+ eval cmds=\"\$concat_cmds~\$old_archive_cmds\" > fi > fi > fi > save_ifs="$IFS"; IFS='~' > for cmd in $cmds; do >+ eval cmd=\"$cmd\" > IFS="$save_ifs" > $show "$cmd" > $run eval "$cmd" || exit $? >@@ -5049,8 +5281,12 @@ > fi > done > # Quote the link command for shipping. >- relink_command="(cd `pwd`; $SHELL $0 --mode=relink $libtool_args @inst_prefix_dir@)" >+ relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)" > relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"` >+ if test "$hardcode_automatic" = yes ; then >+ relink_command= >+ fi >+ > > # Only create the output if not a dry run. > if test -z "$run"; then >@@ -5069,11 +5305,55 @@ > eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` > if test -z "$libdir"; then > $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2 >- exit 1 >+ exit $EXIT_FAILURE >+ fi >+ if test "X$EGREP" = X ; then >+ EGREP=egrep >+ fi >+ # We do not want portage's install root ($D) present. Check only for >+ # this if the .la is being installed. >+ if test "$installed" = yes && test "$D"; then >+ eval mynewdependency_lib=`echo "$libdir/$name" |sed -e "s:$D:/:g" -e 's:/\+:/:g'` >+ else >+ mynewdependency_lib="$libdir/$name" >+ fi >+ # Do not add duplicates >+ if test "$mynewdependency_lib"; then >+ my_little_ninja_foo_1=`echo $newdependency_libs |$EGREP -e "$mynewdependency_lib"` >+ if test -z "$my_little_ninja_foo_1"; then >+ newdependency_libs="$newdependency_libs $mynewdependency_lib" >+ fi >+ fi >+ ;; >+ *) >+ if test "$installed" = yes; then >+ # Rather use S=WORKDIR if our version of portage supports it. >+ # This is because some ebuild (gcc) do not use $S as buildroot. >+ if test "$PWORKDIR"; then >+ S="$PWORKDIR" >+ fi >+ # We do not want portage's build root ($S) present. >+ my_little_ninja_foo_2=`echo $deplib |$EGREP -e "$S"` >+ if test -n "$my_little_ninja_foo_2" && test "$S"; then >+ mynewdependency_lib="" >+ # We do not want portage's install root ($D) present. >+ my_little_ninja_foo_3=`echo $deplib |$EGREP -e "$D"` >+ elif test -n "$my_little_ninja_foo_3" && test "$D"; then >+ eval mynewdependency_lib=`echo "$deplib" |sed -e "s:$D:/:g" -e 's:/\+:/:g'` >+ else >+ mynewdependency_lib="$deplib" >+ fi >+ else >+ mynewdependency_lib="$deplib" >+ fi >+ # Do not add duplicates >+ if test "$mynewdependency_lib"; then >+ my_little_ninja_foo_4=`echo $newdependency_libs |$EGREP -e "$mynewdependency_lib"` >+ if test -z "$my_little_ninja_foo_4"; then >+ newdependency_libs="$newdependency_libs $mynewdependency_lib" >+ fi > fi >- newdependency_libs="$newdependency_libs $libdir/$name" > ;; >- *) newdependency_libs="$newdependency_libs $deplib" ;; > esac > done > dependency_libs="$newdependency_libs" >@@ -5083,7 +5363,7 @@ > eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib` > if test -z "$libdir"; then > $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2 >- exit 1 >+ exit $EXIT_FAILURE > fi > newdlfiles="$newdlfiles $libdir/$name" > done >@@ -5094,11 +5374,30 @@ > eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib` > if test -z "$libdir"; then > $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2 >- exit 1 >+ exit $EXIT_FAILURE > fi > newdlprefiles="$newdlprefiles $libdir/$name" > done > dlprefiles="$newdlprefiles" >+ else >+ newdlfiles= >+ for lib in $dlfiles; do >+ case $lib in >+ [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;; >+ *) abs=`pwd`"/$lib" ;; >+ esac >+ newdlfiles="$newdlfiles $abs" >+ done >+ dlfiles="$newdlfiles" >+ newdlprefiles= >+ for lib in $dlprefiles; do >+ case $lib in >+ [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;; >+ *) abs=`pwd`"/$lib" ;; >+ esac >+ newdlprefiles="$newdlprefiles $abs" >+ done >+ dlprefiles="$newdlprefiles" > fi > $rm $output > # place dlname in correct position for cygwin >@@ -5106,6 +5405,10 @@ > case $host,$output,$installed,$module,$dlname in > *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;; > esac >+ # Do not add duplicates >+ if test "$installed" = yes && test "$D"; then >+ install_libdir=`echo "$install_libdir" |sed -e "s:$D:/:g" -e 's:/\+:/:g'` >+ fi > $echo > $output "\ > # $outputname - a libtool library file > # Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP >@@ -5155,7 +5458,7 @@ > $run eval '(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)' || exit $? > ;; > esac >- exit 0 >+ exit $EXIT_SUCCESS > ;; > > # libtool install mode >@@ -5170,7 +5473,7 @@ > # Aesthetically quote it. > arg=`$echo "X$nonopt" | $Xsed -e "$sed_quote_subst"` > case $arg in >- *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*) >+ *$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "") > arg="\"$arg\"" > ;; > esac >@@ -5186,7 +5489,7 @@ > # Aesthetically quote it. > arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` > case $arg in >- *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*) >+ *$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "") > arg="\"$arg\"" > ;; > esac >@@ -5234,7 +5537,7 @@ > # Aesthetically quote the argument. > arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` > case $arg in >- *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*) >+ *$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "") > arg="\"$arg\"" > ;; > esac >@@ -5244,13 +5547,13 @@ > if test -z "$install_prog"; then > $echo "$modename: you must specify an install program" 1>&2 > $echo "$help" 1>&2 >- exit 1 >+ exit $EXIT_FAILURE > fi > > if test -n "$prev"; then > $echo "$modename: the \`$prev' option requires an argument" 1>&2 > $echo "$help" 1>&2 >- exit 1 >+ exit $EXIT_FAILURE > fi > > if test -z "$files"; then >@@ -5260,7 +5563,7 @@ > $echo "$modename: you must specify a destination" 1>&2 > fi > $echo "$help" 1>&2 >- exit 1 >+ exit $EXIT_FAILURE > fi > > # Strip any trailing slash from the destination. >@@ -5281,7 +5584,7 @@ > if test "$#" -gt 2; then > $echo "$modename: \`$dest' is not a directory" 1>&2 > $echo "$help" 1>&2 >- exit 1 >+ exit $EXIT_FAILURE > fi > fi > case $destdir in >@@ -5293,7 +5596,7 @@ > *) > $echo "$modename: \`$destdir' must be an absolute directory name" 1>&2 > $echo "$help" 1>&2 >- exit 1 >+ exit $EXIT_FAILURE > ;; > esac > done >@@ -5322,7 +5625,7 @@ > else > $echo "$modename: \`$file' is not a valid libtool archive" 1>&2 > $echo "$help" 1>&2 >- exit 1 >+ exit $EXIT_FAILURE > fi > > library_names= >@@ -5364,7 +5667,7 @@ > # but it's something to keep an eye on. > if test "$inst_prefix_dir" = "$destdir"; then > $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2 >- exit 1 >+ exit $EXIT_FAILURE > fi > > if test -n "$inst_prefix_dir"; then >@@ -5379,7 +5682,7 @@ > if $run eval "$relink_command"; then : > else > $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2 >- exit 1 >+ exit $EXIT_FAILURE > fi > fi > >@@ -5414,10 +5717,11 @@ > > # Do each command in the postinstall commands. > lib="$destdir/$realname" >- eval cmds=\"$postinstall_cmds\" >+ cmds=$postinstall_cmds > save_ifs="$IFS"; IFS='~' > for cmd in $cmds; do > IFS="$save_ifs" >+ eval cmd=\"$cmd\" > $show "$cmd" > $run eval "$cmd" || exit $? > done >@@ -5457,7 +5761,7 @@ > *) > $echo "$modename: cannot copy a libtool object to \`$destfile'" 1>&2 > $echo "$help" 1>&2 >- exit 1 >+ exit $EXIT_FAILURE > ;; > esac > >@@ -5475,7 +5779,7 @@ > $show "$install_prog $staticobj $staticdest" > $run eval "$install_prog \$staticobj \$staticdest" || exit $? > fi >- exit 0 >+ exit $EXIT_SUCCESS > ;; > > *) >@@ -5529,7 +5833,7 @@ > # Check the variables that should have been set. > if test -z "$notinst_deplibs"; then > $echo "$modename: invalid libtool wrapper script \`$wrapper'" 1>&2 >- exit 1 >+ exit $EXIT_FAILURE > fi > > finalize=yes >@@ -5569,10 +5873,13 @@ > if test "$finalize" = yes && test -z "$run"; then > tmpdir="/tmp" > test -n "$TMPDIR" && tmpdir="$TMPDIR" >- tmpdir=`mktemp -d $tmpdir/libtool-XXXXXX 2> /dev/null` || >- tmpdir="$tmpdir/libtool-$$" >- if $mkdir -p "$tmpdir" && chmod 700 "$tmpdir"; then : >+ tmpdir="$tmpdir/libtool-$$" >+ save_umask=`umask` >+ umask 0077 >+ if $mkdir "$tmpdir"; then >+ umask $save_umask > else >+ umask $save_umask > $echo "$modename: error: cannot create temporary directory \`$tmpdir'" 1>&2 > continue > fi >@@ -5631,16 +5938,17 @@ > $show "$install_prog $file $oldlib" > $run eval "$install_prog \$file \$oldlib" || exit $? > >- if test -n "$stripme" && test -n "$striplib"; then >+ if test -n "$stripme" && test -n "$old_striplib"; then > $show "$old_striplib $oldlib" > $run eval "$old_striplib $oldlib" || exit $? > fi > > # Do each command in the postinstall commands. >- eval cmds=\"$old_postinstall_cmds\" >+ cmds=$old_postinstall_cmds > save_ifs="$IFS"; IFS='~' > for cmd in $cmds; do > IFS="$save_ifs" >+ eval cmd=\"$cmd\" > $show "$cmd" > $run eval "$cmd" || exit $? > done >@@ -5654,9 +5962,9 @@ > if test -n "$current_libdirs"; then > # Maybe just do a dry run. > test -n "$run" && current_libdirs=" -n$current_libdirs" >- exec_cmd='$SHELL $0 --finish$current_libdirs' >+ exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs' > else >- exit 0 >+ exit $EXIT_SUCCESS > fi > ;; > >@@ -5675,10 +5983,11 @@ > for libdir in $libdirs; do > if test -n "$finish_cmds"; then > # Do each command in the finish commands. >- eval cmds=\"$finish_cmds\" >+ cmds=$finish_cmds > save_ifs="$IFS"; IFS='~' > for cmd in $cmds; do > IFS="$save_ifs" >+ eval cmd=\"$cmd\" > $show "$cmd" > $run eval "$cmd" || admincmds="$admincmds > $cmd" >@@ -5695,7 +6004,7 @@ > fi > > # Exit here if they wanted silent mode. >- test "$show" = : && exit 0 >+ test "$show" = : && exit $EXIT_SUCCESS > > $echo "----------------------------------------------------------------------" > $echo "Libraries have been installed in:" >@@ -5731,7 +6040,7 @@ > $echo "See any operating system documentation about shared libraries for" > $echo "more information, such as the ld(1) and ld.so(8) manual pages." > $echo "----------------------------------------------------------------------" >- exit 0 >+ exit $EXIT_SUCCESS > ;; > > # libtool execute mode >@@ -5743,7 +6052,7 @@ > if test -z "$cmd"; then > $echo "$modename: you must specify a COMMAND" 1>&2 > $echo "$help" >- exit 1 >+ exit $EXIT_FAILURE > fi > > # Handle -dlopen flags immediately. >@@ -5751,7 +6060,7 @@ > if test ! -f "$file"; then > $echo "$modename: \`$file' is not a file" 1>&2 > $echo "$help" 1>&2 >- exit 1 >+ exit $EXIT_FAILURE > fi > > dir= >@@ -5762,7 +6071,7 @@ > else > $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2 > $echo "$help" 1>&2 >- exit 1 >+ exit $EXIT_FAILURE > fi > > # Read the libtool library. >@@ -5789,7 +6098,7 @@ > dir="$dir/$objdir" > else > $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2 >- exit 1 >+ exit $EXIT_FAILURE > fi > ;; > >@@ -5861,15 +6170,15 @@ > fi > > # Now prepare to actually exec the command. >- exec_cmd="\"\$cmd\"$args" >+ exec_cmd="\$cmd$args" > else > # Display what would be done. > if test -n "$shlibpath_var"; then > eval "\$echo \"\$shlibpath_var=\$$shlibpath_var\"" > $echo "export $shlibpath_var" > fi >- eval \$echo \"\$cmd\"$args >- exit 0 >+ $echo "$cmd$args" >+ exit $EXIT_SUCCESS > fi > ;; > >@@ -5897,7 +6206,7 @@ > if test -z "$rm"; then > $echo "$modename: you must specify an RM program" 1>&2 > $echo "$help" 1>&2 >- exit 1 >+ exit $EXIT_FAILURE > fi > > rmdirs= >@@ -5952,10 +6261,11 @@ > if test "$mode" = uninstall; then > if test -n "$library_names"; then > # Do each command in the postuninstall commands. >- eval cmds=\"$postuninstall_cmds\" >+ cmds=$postuninstall_cmds > save_ifs="$IFS"; IFS='~' > for cmd in $cmds; do > IFS="$save_ifs" >+ eval cmd=\"$cmd\" > $show "$cmd" > $run eval "$cmd" > if test "$?" -ne 0 && test "$rmforce" != yes; then >@@ -5967,10 +6277,11 @@ > > if test -n "$old_library"; then > # Do each command in the old_postuninstall commands. >- eval cmds=\"$old_postuninstall_cmds\" >+ cmds=$old_postuninstall_cmds > save_ifs="$IFS"; IFS='~' > for cmd in $cmds; do > IFS="$save_ifs" >+ eval cmd=\"$cmd\" > $show "$cmd" > $run eval "$cmd" > if test "$?" -ne 0 && test "$rmforce" != yes; then >@@ -6009,7 +6320,7 @@ > if test "$mode" = clean ; then > noexename=$name > case $file in >- *.exe) >+ *.exe) > file=`$echo $file|${SED} 's,.exe$,,'` > noexename=`$echo $name|${SED} 's,.exe$,,'` > # $file with .exe has already been added to rmfiles, >@@ -6054,20 +6365,20 @@ > "") > $echo "$modename: you must specify a MODE" 1>&2 > $echo "$generic_help" 1>&2 >- exit 1 >+ exit $EXIT_FAILURE > ;; > esac > > if test -z "$exec_cmd"; then > $echo "$modename: invalid operation mode \`$mode'" 1>&2 > $echo "$generic_help" 1>&2 >- exit 1 >+ exit $EXIT_FAILURE > fi > fi # test -z "$show_help" > > if test -n "$exec_cmd"; then > eval exec $exec_cmd >- exit 1 >+ exit $EXIT_FAILURE > fi > > # We need to display help for each of the modes. >@@ -6103,7 +6414,7 @@ > a more detailed description of MODE. > > Report bugs to <bug-libtool@gnu.org>." >- exit 0 >+ exit $EXIT_SUCCESS > ;; > > clean) >@@ -6215,6 +6526,8 @@ > -no-undefined declare that a library does not refer to external symbols > -o OUTPUT-FILE create OUTPUT-FILE from the specified objects > -objectlist FILE Use a list of object files found in FILE to specify objects >+ -precious-files-regex REGEX >+ don't remove output files matching REGEX > -release RELEASE specify package release information > -rpath LIBDIR the created library will eventually be installed in LIBDIR > -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries >@@ -6256,14 +6569,14 @@ > *) > $echo "$modename: invalid operation mode \`$mode'" 1>&2 > $echo "$help" 1>&2 >- exit 1 >+ exit $EXIT_FAILURE > ;; > esac > > $echo > $echo "Try \`$modename --help' for more information about other modes." > >-exit 0 >+exit $? > > # The TAGs below are defined such that we never get into a situation > # in which we disable both kinds of libraries. Given conflicting >Common subdirectories: darimasen-0.0.8/pixmaps and darimasen-0.0.8-new/pixmaps >Common subdirectories: darimasen-0.0.8/src and darimasen-0.0.8-new/src
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 99428
:
63694
| 63695