libpst

changeset 380:1e1970f93f94 stable-0-6-72

allow all 7 days in bydays recurring appointment, update for fedora python packaging
author Carl Byington <carl@five-ten-sg.com>
date Wed, 01 Aug 2018 08:15:34 -0700
parents bbd198da4033
children d52cc63db773
files ChangeLog configure.in libpst.spec.in m4/ac_python_devel.m4 m4/acx_pthread.m4 m4/ax_boost_base.m4 m4/ax_boost_python.m4 m4/ax_pthread.m4 m4/ax_python.m4 m4/ax_python_devel.m4 m4/libtool.m4 m4/ltoptions.m4 m4/ltsugar.m4 m4/ltversion.m4 m4/lt~obsolete.m4 src/readpst.c src/timeconv.h
diffstat 17 files changed, 9236 insertions(+), 688 deletions(-) [+]
line diff
     1.1 --- a/ChangeLog	Thu Dec 07 08:51:09 2017 -0800
     1.2 +++ b/ChangeLog	Wed Aug 01 08:15:34 2018 -0700
     1.3 @@ -1,6 +1,8 @@
     1.4 -LibPST 0.6.72 (2017-12-07)
     1.5 +LibPST 0.6.72 (2018-08-01)
     1.6  ===============================
     1.7      * Alfredo Esteban - add -l and -f options to lspst.
     1.8 +    * fix bydays recurring appointment, allow all 7 days
     1.9 +    * update for fedora python packaging
    1.10  
    1.11  LibPST 0.6.71 (2017-07-21)
    1.12  ===============================
     2.1 --- a/configure.in	Thu Dec 07 08:51:09 2017 -0800
     2.2 +++ b/configure.in	Wed Aug 01 08:15:34 2018 -0700
     2.3 @@ -326,12 +326,12 @@
     2.4      if test "$ax_python_bin" = "no"; then
     2.5          AC_MSG_ERROR(python binary not found)
     2.6      fi
     2.7 -    py_ver=`echo $ax_python_bin | cut -c7-`
     2.8 +    PYTHON_VERSION=`echo $ax_python_bin | cut -c7-`
     2.9 +
    2.10      # find the flags for that version
    2.11 -    AC_PYTHON_DEVEL([$py_ver])
    2.12 -    PYTHON_INCLUDE_DIR=`echo $python_path | cut -c3-`
    2.13 -    AC_SUBST([PYTHON_INCLUDE_DIR])
    2.14 -    # do we have boost python
    2.15 +    AX_PYTHON_DEVEL([$PYTHON_VERSION])
    2.16 +
    2.17 +    # do we have boost python?
    2.18      AX_BOOST_PYTHON
    2.19      if test "$ac_cv_boost_python" = "no"; then
    2.20          AC_MSG_ERROR(boost python not found)
     3.1 --- a/libpst.spec.in	Thu Dec 07 08:51:09 2017 -0800
     3.2 +++ b/libpst.spec.in	Wed Aug 01 08:15:34 2018 -0700
     3.3 @@ -9,10 +9,10 @@
     3.4  URL:                http://www.five-ten-sg.com/%{name}/
     3.5  Requires:           ImageMagick libgsf
     3.6  Requires:           %{name}-libs = %{version}-%{release}
     3.7 -BuildRequires:      libtool
     3.8 +BuildRequires:      libtool gcc-c++
     3.9  BuildRequires:      ImageMagick gd-devel zlib-devel boost-devel libgsf-devel
    3.10 -%if 0%{?fedora} > 25
    3.11 -BuildRequires:      python2-devel
    3.12 +%if 0%{?fedora} > 27
    3.13 +BuildRequires:      python3 python3-devel boost-python3 boost-python3-devel
    3.14  %else
    3.15  BuildRequires:      python-devel
    3.16  %endif
    3.17 @@ -38,9 +38,10 @@
    3.18  utilities.
    3.19  
    3.20  
    3.21 -%if 0%{?fedora} > 25
    3.22 -%package python2
    3.23 -Requires:           python2
    3.24 +%if 0%{?fedora} > 27
    3.25 +%package -n python3-%{name}
    3.26 +Requires:           python3
    3.27 +Provides: %{name}-python = %{version}-%{release}
    3.28  %else
    3.29  %package python
    3.30  Requires:           python
    3.31 @@ -59,8 +60,8 @@
    3.32  %endif
    3.33  
    3.34  
    3.35 -%if 0%{?fedora} > 25
    3.36 -%description python2
    3.37 +%if 0%{?fedora} > 27
    3.38 +%description -n python3-%{name}
    3.39  %else
    3.40  %description python
    3.41  %endif
    3.42 @@ -109,12 +110,20 @@
    3.43  %build
    3.44  autoreconf -v -f -i
    3.45  %configure --enable-libpst-shared
    3.46 +%if 0%{?fedora} > 27
    3.47 +%make_build
    3.48 +%else
    3.49  make %{?_smp_mflags}
    3.50 +%endif
    3.51  
    3.52  
    3.53  %install
    3.54 +%if 0%{?fedora} > 27
    3.55 +%make_install
    3.56 +%else
    3.57  rm -rf $RPM_BUILD_ROOT
    3.58  make DESTDIR=$RPM_BUILD_ROOT install
    3.59 +%endif
    3.60  rm $RPM_BUILD_ROOT%{_libdir}/libpst.la
    3.61  rm $RPM_BUILD_ROOT%{_libdir}/libpst.a
    3.62  mv $RPM_BUILD_ROOT%{_datadir}/doc/%{name}-%{version} $RPM_BUILD_ROOT%{_datadir}/doc/%{name}
    3.63 @@ -143,12 +152,12 @@
    3.64  %doc COPYING
    3.65  
    3.66  
    3.67 -%if 0%{?fedora} > 25
    3.68 -%files python2
    3.69 +%if 0%{?fedora} > 27
    3.70 +%files -n python3-%{name}
    3.71  %defattr(-,root,root,-)
    3.72 -%{python2_sitearch}/_*.so
    3.73 -%exclude %{python2_sitearch}/*.a
    3.74 -%exclude %{python2_sitearch}/*.la
    3.75 +%{python3_sitearch}/_*.so
    3.76 +%exclude %{python3_sitearch}/*.a
    3.77 +%exclude %{python3_sitearch}/*.la
    3.78  %else
    3.79  %files python
    3.80  %defattr(-,root,root,-)
    3.81 @@ -182,6 +191,34 @@
    3.82  
    3.83  
    3.84  %changelog
    3.85 +* Wed Aug 01 2018 Carl Byington <carl@five-ten-sg.com> 0.6.72-1
    3.86 +- allow all 7 days in bydays recurring appointment
    3.87 +- update for fedora python packaging
    3.88 +- Alfredo Esteban - add -l and -f options to lspst
    3.89 +
    3.90 +* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.71-8
    3.91 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
    3.92 +
    3.93 +* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.71-7
    3.94 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
    3.95 +
    3.96 +* Sun Aug 20 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.6.71-6
    3.97 +- Add Provides for the old name without %%_isa
    3.98 +
    3.99 +* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.6.71-5
   3.100 +- Python 2 binary package renamed to python2-libpst
   3.101 +  See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
   3.102 +
   3.103 +* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.6.71-4
   3.104 +- Python 2 binary package renamed to python2-libpst
   3.105 +  See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
   3.106 +
   3.107 +* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.71-3
   3.108 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
   3.109 +
   3.110 +* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.71-2
   3.111 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
   3.112 +
   3.113  * Fri Jul 21 2017 Carl Byington <carl@five-ten-sg.com> 0.6.71-1
   3.114  - fedora python naming scheme changes
   3.115  - Zachary Travis - Add support for the OST 2013 format, and
     4.1 --- a/m4/ac_python_devel.m4	Thu Dec 07 08:51:09 2017 -0800
     4.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.3 @@ -1,322 +0,0 @@
     4.4 -# ===========================================================================
     4.5 -#         http://www.nongnu.org/autoconf-archive/ac_python_devel.html
     4.6 -# ===========================================================================
     4.7 -#
     4.8 -# SYNOPSIS
     4.9 -#
    4.10 -#   AC_PYTHON_DEVEL([version])
    4.11 -#
    4.12 -# DESCRIPTION
    4.13 -#
    4.14 -#   Note: Defines as a precious variable "PYTHON_VERSION". Don't override it
    4.15 -#   in your configure.ac.
    4.16 -#
    4.17 -#   This macro checks for Python and tries to get the include path to
    4.18 -#   'Python.h'. It provides the $(PYTHON_CPPFLAGS) and $(PYTHON_LDFLAGS)
    4.19 -#   output variables. It also exports $(PYTHON_EXTRA_LIBS) and
    4.20 -#   $(PYTHON_EXTRA_LDFLAGS) for embedding Python in your code.
    4.21 -#
    4.22 -#   You can search for some particular version of Python by passing a
    4.23 -#   parameter to this macro, for example ">= '2.3.1'", or "== '2.4'". Please
    4.24 -#   note that you *have* to pass also an operator along with the version to
    4.25 -#   match, and pay special attention to the single quotes surrounding the
    4.26 -#   version number. Don't use "PYTHON_VERSION" for this: that environment
    4.27 -#   variable is declared as precious and thus reserved for the end-user.
    4.28 -#
    4.29 -#   This macro should work for all versions of Python >= 2.1.0. As an end
    4.30 -#   user, you can disable the check for the python version by setting the
    4.31 -#   PYTHON_NOVERSIONCHECK environment variable to something else than the
    4.32 -#   empty string.
    4.33 -#
    4.34 -#   If you need to use this macro for an older Python version, please
    4.35 -#   contact the authors. We're always open for feedback.
    4.36 -#
    4.37 -# LICENSE
    4.38 -#
    4.39 -#   Copyright (c) 2009 Sebastian Huber <sebastian-huber@web.de>
    4.40 -#   Copyright (c) 2009 Alan W. Irwin <irwin@beluga.phys.uvic.ca>
    4.41 -#   Copyright (c) 2009 Rafael Laboissiere <rafael@laboissiere.net>
    4.42 -#   Copyright (c) 2009 Andrew Collier <colliera@ukzn.ac.za>
    4.43 -#   Copyright (c) 2009 Matteo Settenvini <matteo@member.fsf.org>
    4.44 -#   Copyright (c) 2009 Horst Knorr <hk_classes@knoda.org>
    4.45 -#
    4.46 -#   This program is free software: you can redistribute it and/or modify it
    4.47 -#   under the terms of the GNU General Public License as published by the
    4.48 -#   Free Software Foundation, either version 3 of the License, or (at your
    4.49 -#   option) any later version.
    4.50 -#
    4.51 -#   This program is distributed in the hope that it will be useful, but
    4.52 -#   WITHOUT ANY WARRANTY; without even the implied warranty of
    4.53 -#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
    4.54 -#   Public License for more details.
    4.55 -#
    4.56 -#   You should have received a copy of the GNU General Public License along
    4.57 -#   with this program. If not, see <http://www.gnu.org/licenses/>.
    4.58 -#
    4.59 -#   As a special exception, the respective Autoconf Macro's copyright owner
    4.60 -#   gives unlimited permission to copy, distribute and modify the configure
    4.61 -#   scripts that are the output of Autoconf when processing the Macro. You
    4.62 -#   need not follow the terms of the GNU General Public License when using
    4.63 -#   or distributing such scripts, even though portions of the text of the
    4.64 -#   Macro appear in them. The GNU General Public License (GPL) does govern
    4.65 -#   all other use of the material that constitutes the Autoconf Macro.
    4.66 -#
    4.67 -#   This special exception to the GPL applies to versions of the Autoconf
    4.68 -#   Macro released by the Autoconf Archive. When you make and distribute a
    4.69 -#   modified version of the Autoconf Macro, you may extend this special
    4.70 -#   exception to the GPL to apply to your modified version as well.
    4.71 -
    4.72 -AC_DEFUN([AC_PYTHON_DEVEL],[
    4.73 -	#
    4.74 -	# Allow the use of a (user set) custom python version
    4.75 -	#
    4.76 -	AC_ARG_VAR([PYTHON_VERSION],[The installed Python
    4.77 -		version to use, for example '2.3'. This string
    4.78 -		will be appended to the Python interpreter
    4.79 -		canonical name.])
    4.80 -
    4.81 -	AC_PATH_PROG([PYTHON],[python[$PYTHON_VERSION]])
    4.82 -	if test -z "$PYTHON"; then
    4.83 -	   AC_MSG_ERROR([Cannot find python$PYTHON_VERSION in your system path])
    4.84 -	   PYTHON_VERSION=""
    4.85 -	fi
    4.86 -
    4.87 -	#
    4.88 -	# Check for a version of Python >= 2.1.0
    4.89 -	#
    4.90 -	AC_MSG_CHECKING([for a version of Python >= '2.1.0'])
    4.91 -	ac_supports_python_ver=`$PYTHON -c "import sys; \
    4.92 -		ver = sys.version.split ()[[0]]; \
    4.93 -		print (ver >= '2.1.0')"`
    4.94 -	if test "$ac_supports_python_ver" != "True"; then
    4.95 -		if test -z "$PYTHON_NOVERSIONCHECK"; then
    4.96 -			AC_MSG_RESULT([no])
    4.97 -			AC_MSG_FAILURE([
    4.98 -This version of the AC@&t@_PYTHON_DEVEL macro
    4.99 -doesn't work properly with versions of Python before
   4.100 -2.1.0. You may need to re-run configure, setting the
   4.101 -variables PYTHON_CPPFLAGS, PYTHON_LDFLAGS, PYTHON_SITE_PKG,
   4.102 -PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand.
   4.103 -Moreover, to disable this check, set PYTHON_NOVERSIONCHECK
   4.104 -to something else than an empty string.
   4.105 -])
   4.106 -		else
   4.107 -			AC_MSG_RESULT([skip at user request])
   4.108 -		fi
   4.109 -	else
   4.110 -		AC_MSG_RESULT([yes])
   4.111 -	fi
   4.112 -
   4.113 -	#
   4.114 -	# if the macro parameter ``version'' is set, honour it
   4.115 -	#
   4.116 -	if test -n "$1"; then
   4.117 -		AC_MSG_CHECKING([for a version of Python $1])
   4.118 -		ac_supports_python_ver=`$PYTHON -c "import sys; \
   4.119 -			ver = sys.version.split ()[[0]]; \
   4.120 -			print (ver >= $1)"`
   4.121 -		if test "$ac_supports_python_ver" = "True"; then
   4.122 -	   	   AC_MSG_RESULT([yes])
   4.123 -		else
   4.124 -			AC_MSG_RESULT([no])
   4.125 -			AC_MSG_ERROR([this package requires Python $1.
   4.126 -If you have it installed, but it isn't the default Python
   4.127 -interpreter in your system path, please pass the PYTHON_VERSION
   4.128 -variable to configure. See ``configure --help'' for reference.
   4.129 -])
   4.130 -			PYTHON_VERSION=""
   4.131 -		fi
   4.132 -	fi
   4.133 -
   4.134 -	#
   4.135 -	# Check if you have distutils, else fail
   4.136 -	#
   4.137 -	AC_MSG_CHECKING([for the distutils Python package])
   4.138 -	ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
   4.139 -	if test -z "$ac_distutils_result"; then
   4.140 -		AC_MSG_RESULT([yes])
   4.141 -	else
   4.142 -		AC_MSG_RESULT([no])
   4.143 -		AC_MSG_ERROR([cannot import Python module "distutils".
   4.144 -Please check your Python installation. The error was:
   4.145 -$ac_distutils_result])
   4.146 -		PYTHON_VERSION=""
   4.147 -	fi
   4.148 -
   4.149 -	#
   4.150 -	# Check for Python include path
   4.151 -	#
   4.152 -	AC_MSG_CHECKING([for Python include path])
   4.153 -	if test -z "$PYTHON_CPPFLAGS"; then
   4.154 -		python_path=`$PYTHON -c "import distutils.sysconfig; \
   4.155 -           		print (distutils.sysconfig.get_python_inc ());"`
   4.156 -		if test -n "${python_path}"; then
   4.157 -		   	python_path="-I$python_path"
   4.158 -		fi
   4.159 -		PYTHON_CPPFLAGS=$python_path
   4.160 -	fi
   4.161 -	AC_MSG_RESULT([$PYTHON_CPPFLAGS])
   4.162 -	AC_SUBST([PYTHON_CPPFLAGS])
   4.163 -
   4.164 -	#
   4.165 -	# Check for Python library path
   4.166 -	#
   4.167 -	AC_MSG_CHECKING([for Python library path])
   4.168 -	if test -z "$PYTHON_LDFLAGS"; then
   4.169 -		# (makes two attempts to ensure we've got a version number
   4.170 -		# from the interpreter)
   4.171 -		ac_python_version=`cat<<EOD | $PYTHON -
   4.172 -
   4.173 -# join all versioning strings, on some systems
   4.174 -# major/minor numbers could be in different list elements
   4.175 -from distutils.sysconfig import *
   4.176 -ret = ''
   4.177 -for e in get_config_vars ('VERSION'):
   4.178 -	if (e != None):
   4.179 -		ret += e
   4.180 -print (ret)
   4.181 -EOD`
   4.182 -
   4.183 -		if test -z "$ac_python_version"; then
   4.184 -			if test -n "$PYTHON_VERSION"; then
   4.185 -				ac_python_version=$PYTHON_VERSION
   4.186 -			else
   4.187 -				ac_python_version=`$PYTHON -c "import sys; \
   4.188 -					print (sys.version[[:3]])"`
   4.189 -			fi
   4.190 -		fi
   4.191 -
   4.192 -		# Make the versioning information available to the compiler
   4.193 -		AC_DEFINE_UNQUOTED([HAVE_PYTHON], ["$ac_python_version"],
   4.194 -                                   [If available, contains the Python version number currently in use.])
   4.195 -
   4.196 -		# First, the library directory:
   4.197 -		ac_python_libdir=`cat<<EOD | $PYTHON -
   4.198 -
   4.199 -# There should be only one
   4.200 -import distutils.sysconfig
   4.201 -for e in distutils.sysconfig.get_config_vars ('LIBDIR'):
   4.202 -	if e != None:
   4.203 -		print (e)
   4.204 -		break
   4.205 -EOD`
   4.206 -
   4.207 -		# Before checking for libpythonX.Y, we need to know
   4.208 -		# the extension the OS we're on uses for libraries
   4.209 -		# (we take the first one, if there's more than one fix me!):
   4.210 -		ac_python_soext=`$PYTHON -c \
   4.211 -		  "import distutils.sysconfig; \
   4.212 -		  print (distutils.sysconfig.get_config_vars('SO')[[0]])"`
   4.213 -
   4.214 -		# Now, for the library:
   4.215 -		ac_python_soname=`$PYTHON -c \
   4.216 -		  "import distutils.sysconfig; \
   4.217 -		  print (distutils.sysconfig.get_config_vars('LDLIBRARY')[[0]])"`
   4.218 -
   4.219 -		# Strip away extension from the end to canonicalize its name:
   4.220 -		ac_python_library=`echo "$ac_python_soname" | sed "s/${ac_python_soext}$//"`
   4.221 -
   4.222 -		# This small piece shamelessly adapted from PostgreSQL python macro;
   4.223 -		# credits goes to momjian, I think. I'd like to put the right name
   4.224 -		# in the credits, if someone can point me in the right direction... ?
   4.225 -		#
   4.226 -		if test -n "$ac_python_libdir" -a -n "$ac_python_library" \
   4.227 -			-a x"$ac_python_library" != x"$ac_python_soname"
   4.228 -		then
   4.229 -			# use the official shared library
   4.230 -			ac_python_library=`echo "$ac_python_library" | sed "s/^lib//"`
   4.231 -			PYTHON_LDFLAGS="-L$ac_python_libdir -l$ac_python_library"
   4.232 -		else
   4.233 -			# old way: use libpython from python_configdir
   4.234 -			ac_python_libdir=`$PYTHON -c \
   4.235 -			  "from distutils.sysconfig import get_python_lib as f; \
   4.236 -			  import os; \
   4.237 -			  print (os.path.join(f(plat_specific=1, standard_lib=1), 'config'));"`
   4.238 -			PYTHON_LDFLAGS="-L$ac_python_libdir -lpython$ac_python_version"
   4.239 -		fi
   4.240 -
   4.241 -		if test -z "PYTHON_LDFLAGS"; then
   4.242 -			AC_MSG_ERROR([
   4.243 -  Cannot determine location of your Python DSO. Please check it was installed with
   4.244 -  dynamic libraries enabled, or try setting PYTHON_LDFLAGS by hand.
   4.245 -			])
   4.246 -		fi
   4.247 -	fi
   4.248 -	AC_MSG_RESULT([$PYTHON_LDFLAGS])
   4.249 -	AC_SUBST([PYTHON_LDFLAGS])
   4.250 -
   4.251 -	#
   4.252 -	# Check for site packages
   4.253 -	#
   4.254 -	AC_MSG_CHECKING([for Python site-packages path])
   4.255 -	if test -z "$PYTHON_SITE_PKG"; then
   4.256 -		PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
   4.257 -		        print (distutils.sysconfig.get_python_lib(0,0));"`
   4.258 -	fi
   4.259 -	AC_MSG_RESULT([$PYTHON_SITE_PKG])
   4.260 -	AC_SUBST([PYTHON_SITE_PKG])
   4.261 -
   4.262 -	#
   4.263 -	# libraries which must be linked in when embedding
   4.264 -	#
   4.265 -	AC_MSG_CHECKING(python extra libraries)
   4.266 -	if test -z "$PYTHON_EXTRA_LIBS"; then
   4.267 -	   PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \
   4.268 -                conf = distutils.sysconfig.get_config_var; \
   4.269 -                print (conf('LOCALMODLIBS') + ' ' + conf('LIBS'))"`
   4.270 -	fi
   4.271 -	AC_MSG_RESULT([$PYTHON_EXTRA_LIBS])
   4.272 -	AC_SUBST(PYTHON_EXTRA_LIBS)
   4.273 -
   4.274 -	#
   4.275 -	# linking flags needed when embedding
   4.276 -	#
   4.277 -	AC_MSG_CHECKING(python extra linking flags)
   4.278 -	if test -z "$PYTHON_EXTRA_LDFLAGS"; then
   4.279 -		PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \
   4.280 -			conf = distutils.sysconfig.get_config_var; \
   4.281 -			print (conf('LINKFORSHARED'))"`
   4.282 -	fi
   4.283 -	AC_MSG_RESULT([$PYTHON_EXTRA_LDFLAGS])
   4.284 -	AC_SUBST(PYTHON_EXTRA_LDFLAGS)
   4.285 -
   4.286 -	#
   4.287 -	# final check to see if everything compiles alright
   4.288 -	#
   4.289 -	AC_MSG_CHECKING([consistency of all components of python development environment])
   4.290 -	# save current global flags
   4.291 -	ac_save_LIBS="$LIBS"
   4.292 -	ac_save_CPPFLAGS="$CPPFLAGS"
   4.293 -	LIBS="$ac_save_LIBS $PYTHON_LDFLAGS $PYTHON_EXTRA_LDFLAGS $PYTHON_EXTRA_LIBS"
   4.294 -	CPPFLAGS="$ac_save_CPPFLAGS $PYTHON_CPPFLAGS"
   4.295 -	AC_LANG_PUSH([C])
   4.296 -	AC_LINK_IFELSE([
   4.297 -		AC_LANG_PROGRAM([[#include <Python.h>]],
   4.298 -				[[Py_Initialize();]])
   4.299 -		],[pythonexists=yes],[pythonexists=no])
   4.300 -	AC_LANG_POP([C])
   4.301 -	# turn back to default flags
   4.302 -	CPPFLAGS="$ac_save_CPPFLAGS"
   4.303 -	LIBS="$ac_save_LIBS"
   4.304 -
   4.305 -	AC_MSG_RESULT([$pythonexists])
   4.306 -
   4.307 -        if test ! "x$pythonexists" = "xyes"; then
   4.308 -	   AC_MSG_FAILURE([
   4.309 -  Could not link test program to Python. Maybe the main Python library has been
   4.310 -  installed in some non-standard library path. If so, pass it to configure,
   4.311 -  via the LDFLAGS environment variable.
   4.312 -  Example: ./configure LDFLAGS="-L/usr/non-standard-path/python/lib"
   4.313 -  ============================================================================
   4.314 -   ERROR!
   4.315 -   You probably have to install the development version of the Python package
   4.316 -   for your distribution.  The exact name of this package varies among them.
   4.317 -  ============================================================================
   4.318 -	   ])
   4.319 -	  PYTHON_VERSION=""
   4.320 -	fi
   4.321 -
   4.322 -	#
   4.323 -	# all done!
   4.324 -	#
   4.325 -])
     5.1 --- a/m4/acx_pthread.m4	Thu Dec 07 08:51:09 2017 -0800
     5.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.3 @@ -1,280 +0,0 @@
     5.4 -##### http://autoconf-archive.cryp.to/acx_pthread.html
     5.5 -#
     5.6 -# SYNOPSIS
     5.7 -#
     5.8 -#   ACX_PTHREAD([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
     5.9 -#
    5.10 -# DESCRIPTION
    5.11 -#
    5.12 -#   This macro figures out how to build C programs using POSIX threads.
    5.13 -#   It sets the PTHREAD_LIBS output variable to the threads library and
    5.14 -#   linker flags, and the PTHREAD_CFLAGS output variable to any special
    5.15 -#   C compiler flags that are needed. (The user can also force certain
    5.16 -#   compiler flags/libs to be tested by setting these environment
    5.17 -#   variables.)
    5.18 -#
    5.19 -#   Also sets PTHREAD_CC to any special C compiler that is needed for
    5.20 -#   multi-threaded programs (defaults to the value of CC otherwise).
    5.21 -#   (This is necessary on AIX to use the special cc_r compiler alias.)
    5.22 -#
    5.23 -#   NOTE: You are assumed to not only compile your program with these
    5.24 -#   flags, but also link it with them as well. e.g. you should link
    5.25 -#   with $PTHREAD_CC $CFLAGS $PTHREAD_CFLAGS $LDFLAGS ... $PTHREAD_LIBS
    5.26 -#   $LIBS
    5.27 -#
    5.28 -#   If you are only building threads programs, you may wish to use
    5.29 -#   these variables in your default LIBS, CFLAGS, and CC:
    5.30 -#
    5.31 -#          LIBS="$PTHREAD_LIBS $LIBS"
    5.32 -#          CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
    5.33 -#          CC="$PTHREAD_CC"
    5.34 -#
    5.35 -#   In addition, if the PTHREAD_CREATE_JOINABLE thread-attribute
    5.36 -#   constant has a nonstandard name, defines PTHREAD_CREATE_JOINABLE to
    5.37 -#   that name (e.g. PTHREAD_CREATE_UNDETACHED on AIX).
    5.38 -#
    5.39 -#   ACTION-IF-FOUND is a list of shell commands to run if a threads
    5.40 -#   library is found, and ACTION-IF-NOT-FOUND is a list of commands to
    5.41 -#   run it if it is not found. If ACTION-IF-FOUND is not specified, the
    5.42 -#   default action will define HAVE_PTHREAD.
    5.43 -#
    5.44 -#   Please let the authors know if this macro fails on any platform, or
    5.45 -#   if you have any other suggestions or comments. This macro was based
    5.46 -#   on work by SGJ on autoconf scripts for FFTW (http://www.fftw.org/)
    5.47 -#   (with help from M. Frigo), as well as ac_pthread and hb_pthread
    5.48 -#   macros posted by Alejandro Forero Cuervo to the autoconf macro
    5.49 -#   repository. We are also grateful for the helpful feedback of
    5.50 -#   numerous users.
    5.51 -#
    5.52 -# LAST MODIFICATION
    5.53 -#
    5.54 -#   2006-05-29
    5.55 -#
    5.56 -# COPYLEFT
    5.57 -#
    5.58 -#   Copyright (c) 2006 Steven G. Johnson <stevenj@alum.mit.edu>
    5.59 -#
    5.60 -#   This program is free software; you can redistribute it and/or
    5.61 -#   modify it under the terms of the GNU General Public License as
    5.62 -#   published by the Free Software Foundation; either version 2 of the
    5.63 -#   License, or (at your option) any later version.
    5.64 -#
    5.65 -#   This program is distributed in the hope that it will be useful, but
    5.66 -#   WITHOUT ANY WARRANTY; without even the implied warranty of
    5.67 -#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
    5.68 -#   General Public License for more details.
    5.69 -#
    5.70 -#   You should have received a copy of the GNU General Public License
    5.71 -#   along with this program; if not, write to the Free Software
    5.72 -#   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
    5.73 -#   02111-1307, USA.
    5.74 -#
    5.75 -#   As a special exception, the respective Autoconf Macro's copyright
    5.76 -#   owner gives unlimited permission to copy, distribute and modify the
    5.77 -#   configure scripts that are the output of Autoconf when processing
    5.78 -#   the Macro. You need not follow the terms of the GNU General Public
    5.79 -#   License when using or distributing such scripts, even though
    5.80 -#   portions of the text of the Macro appear in them. The GNU General
    5.81 -#   Public License (GPL) does govern all other use of the material that
    5.82 -#   constitutes the Autoconf Macro.
    5.83 -#
    5.84 -#   This special exception to the GPL applies to versions of the
    5.85 -#   Autoconf Macro released by the Autoconf Macro Archive. When you
    5.86 -#   make and distribute a modified version of the Autoconf Macro, you
    5.87 -#   may extend this special exception to the GPL to apply to your
    5.88 -#   modified version as well.
    5.89 -
    5.90 -AC_DEFUN([ACX_PTHREAD], [
    5.91 -AC_REQUIRE([AC_CANONICAL_HOST])
    5.92 -AC_LANG_SAVE
    5.93 -AC_LANG_C
    5.94 -acx_pthread_ok=no
    5.95 -
    5.96 -# We used to check for pthread.h first, but this fails if pthread.h
    5.97 -# requires special compiler flags (e.g. on True64 or Sequent).
    5.98 -# It gets checked for in the link test anyway.
    5.99 -
   5.100 -# First of all, check if the user has set any of the PTHREAD_LIBS,
   5.101 -# etcetera environment variables, and if threads linking works using
   5.102 -# them:
   5.103 -if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
   5.104 -        save_CFLAGS="$CFLAGS"
   5.105 -        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
   5.106 -        save_LIBS="$LIBS"
   5.107 -        LIBS="$PTHREAD_LIBS $LIBS"
   5.108 -        AC_MSG_CHECKING([for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS])
   5.109 -        AC_TRY_LINK_FUNC(pthread_join, acx_pthread_ok=yes)
   5.110 -        AC_MSG_RESULT($acx_pthread_ok)
   5.111 -        if test x"$acx_pthread_ok" = xno; then
   5.112 -                PTHREAD_LIBS=""
   5.113 -                PTHREAD_CFLAGS=""
   5.114 -        fi
   5.115 -        LIBS="$save_LIBS"
   5.116 -        CFLAGS="$save_CFLAGS"
   5.117 -fi
   5.118 -
   5.119 -# We must check for the threads library under a number of different
   5.120 -# names; the ordering is very important because some systems
   5.121 -# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
   5.122 -# libraries is broken (non-POSIX).
   5.123 -
   5.124 -# Create a list of thread flags to try.  Items starting with a "-" are
   5.125 -# C compiler flags, and other items are library names, except for "none"
   5.126 -# which indicates that we try without any flags at all, and "pthread-config"
   5.127 -# which is a program returning the flags for the Pth emulation library.
   5.128 -
   5.129 -acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
   5.130 -
   5.131 -# The ordering *is* (sometimes) important.  Some notes on the
   5.132 -# individual items follow:
   5.133 -
   5.134 -# pthreads: AIX (must check this before -lpthread)
   5.135 -# none: in case threads are in libc; should be tried before -Kthread and
   5.136 -#       other compiler flags to prevent continual compiler warnings
   5.137 -# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
   5.138 -# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
   5.139 -# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
   5.140 -# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
   5.141 -# -pthreads: Solaris/gcc
   5.142 -# -mthreads: Mingw32/gcc, Lynx/gcc
   5.143 -# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
   5.144 -#      doesn't hurt to check since this sometimes defines pthreads too;
   5.145 -#      also defines -D_REENTRANT)
   5.146 -#      ... -mt is also the pthreads flag for HP/aCC
   5.147 -# pthread: Linux, etcetera
   5.148 -# --thread-safe: KAI C++
   5.149 -# pthread-config: use pthread-config program (for GNU Pth library)
   5.150 -
   5.151 -case "${host_cpu}-${host_os}" in
   5.152 -        *solaris*)
   5.153 -
   5.154 -        # On Solaris (at least, for some versions), libc contains stubbed
   5.155 -        # (non-functional) versions of the pthreads routines, so link-based
   5.156 -        # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
   5.157 -        # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
   5.158 -        # a function called by this macro, so we could check for that, but
   5.159 -        # who knows whether they'll stub that too in a future libc.)  So,
   5.160 -        # we'll just look for -pthreads and -lpthread first:
   5.161 -
   5.162 -        acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
   5.163 -        ;;
   5.164 -esac
   5.165 -
   5.166 -if test x"$acx_pthread_ok" = xno; then
   5.167 -for flag in $acx_pthread_flags; do
   5.168 -
   5.169 -        case $flag in
   5.170 -                none)
   5.171 -                AC_MSG_CHECKING([whether pthreads work without any flags])
   5.172 -                ;;
   5.173 -
   5.174 -                -*)
   5.175 -                AC_MSG_CHECKING([whether pthreads work with $flag])
   5.176 -                PTHREAD_CFLAGS="$flag"
   5.177 -                ;;
   5.178 -
   5.179 -		pthread-config)
   5.180 -		AC_CHECK_PROG(acx_pthread_config, pthread-config, yes, no)
   5.181 -		if test x"$acx_pthread_config" = xno; then continue; fi
   5.182 -		PTHREAD_CFLAGS="`pthread-config --cflags`"
   5.183 -		PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
   5.184 -		;;
   5.185 -
   5.186 -                *)
   5.187 -                AC_MSG_CHECKING([for the pthreads library -l$flag])
   5.188 -                PTHREAD_LIBS="-l$flag"
   5.189 -                ;;
   5.190 -        esac
   5.191 -
   5.192 -        save_LIBS="$LIBS"
   5.193 -        save_CFLAGS="$CFLAGS"
   5.194 -        LIBS="$PTHREAD_LIBS $LIBS"
   5.195 -        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
   5.196 -
   5.197 -        # Check for various functions.  We must include pthread.h,
   5.198 -        # since some functions may be macros.  (On the Sequent, we
   5.199 -        # need a special flag -Kthread to make this header compile.)
   5.200 -        # We check for pthread_join because it is in -lpthread on IRIX
   5.201 -        # while pthread_create is in libc.  We check for pthread_attr_init
   5.202 -        # due to DEC craziness with -lpthreads.  We check for
   5.203 -        # pthread_cleanup_push because it is one of the few pthread
   5.204 -        # functions on Solaris that doesn't have a non-functional libc stub.
   5.205 -        # We try pthread_create on general principles.
   5.206 -        AC_TRY_LINK([#include <pthread.h>],
   5.207 -                    [pthread_t th; pthread_join(th, 0);
   5.208 -                     pthread_attr_init(0); pthread_cleanup_push(0, 0);
   5.209 -                     pthread_create(0,0,0,0); pthread_cleanup_pop(0); ],
   5.210 -                    [acx_pthread_ok=yes])
   5.211 -
   5.212 -        LIBS="$save_LIBS"
   5.213 -        CFLAGS="$save_CFLAGS"
   5.214 -
   5.215 -        AC_MSG_RESULT($acx_pthread_ok)
   5.216 -        if test "x$acx_pthread_ok" = xyes; then
   5.217 -                break;
   5.218 -        fi
   5.219 -
   5.220 -        PTHREAD_LIBS=""
   5.221 -        PTHREAD_CFLAGS=""
   5.222 -done
   5.223 -fi
   5.224 -
   5.225 -# Various other checks:
   5.226 -if test "x$acx_pthread_ok" = xyes; then
   5.227 -        save_LIBS="$LIBS"
   5.228 -        LIBS="$PTHREAD_LIBS $LIBS"
   5.229 -        save_CFLAGS="$CFLAGS"
   5.230 -        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
   5.231 -
   5.232 -        # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
   5.233 -	AC_MSG_CHECKING([for joinable pthread attribute])
   5.234 -	attr_name=unknown
   5.235 -	for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
   5.236 -	    AC_TRY_LINK([#include <pthread.h>], [int attr=$attr; return attr;],
   5.237 -                        [attr_name=$attr; break])
   5.238 -	done
   5.239 -        AC_MSG_RESULT($attr_name)
   5.240 -        if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
   5.241 -            AC_DEFINE_UNQUOTED(PTHREAD_CREATE_JOINABLE, $attr_name,
   5.242 -                               [Define to necessary symbol if this constant
   5.243 -                                uses a non-standard name on your system.])
   5.244 -        fi
   5.245 -
   5.246 -        AC_MSG_CHECKING([if more special flags are required for pthreads])
   5.247 -        flag=no
   5.248 -        case "${host_cpu}-${host_os}" in
   5.249 -            *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
   5.250 -            *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
   5.251 -        esac
   5.252 -        AC_MSG_RESULT(${flag})
   5.253 -        if test "x$flag" != xno; then
   5.254 -            PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
   5.255 -        fi
   5.256 -
   5.257 -        LIBS="$save_LIBS"
   5.258 -        CFLAGS="$save_CFLAGS"
   5.259 -
   5.260 -        # More AIX lossage: must compile with xlc_r or cc_r
   5.261 -	if test x"$GCC" != xyes; then
   5.262 -          AC_CHECK_PROGS(PTHREAD_CC, xlc_r cc_r, ${CC})
   5.263 -        else
   5.264 -          PTHREAD_CC=$CC
   5.265 -	fi
   5.266 -else
   5.267 -        PTHREAD_CC="$CC"
   5.268 -fi
   5.269 -
   5.270 -AC_SUBST(PTHREAD_LIBS)
   5.271 -AC_SUBST(PTHREAD_CFLAGS)
   5.272 -AC_SUBST(PTHREAD_CC)
   5.273 -
   5.274 -# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
   5.275 -if test x"$acx_pthread_ok" = xyes; then
   5.276 -        ifelse([$1],,AC_DEFINE(HAVE_PTHREAD,1,[Define if you have POSIX threads libraries and header files.]),[$1])
   5.277 -        :
   5.278 -else
   5.279 -        acx_pthread_ok=no
   5.280 -        $2
   5.281 -fi
   5.282 -AC_LANG_RESTORE
   5.283 -])dnl ACX_PTHREAD
     6.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     6.2 +++ b/m4/ax_boost_base.m4	Wed Aug 01 08:15:34 2018 -0700
     6.3 @@ -0,0 +1,301 @@
     6.4 +# ===========================================================================
     6.5 +#      https://www.gnu.org/software/autoconf-archive/ax_boost_base.html
     6.6 +# ===========================================================================
     6.7 +#
     6.8 +# SYNOPSIS
     6.9 +#
    6.10 +#   AX_BOOST_BASE([MINIMUM-VERSION], [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
    6.11 +#
    6.12 +# DESCRIPTION
    6.13 +#
    6.14 +#   Test for the Boost C++ libraries of a particular version (or newer)
    6.15 +#
    6.16 +#   If no path to the installed boost library is given the macro searchs
    6.17 +#   under /usr, /usr/local, /opt and /opt/local and evaluates the
    6.18 +#   $BOOST_ROOT environment variable. Further documentation is available at
    6.19 +#   <http://randspringer.de/boost/index.html>.
    6.20 +#
    6.21 +#   This macro calls:
    6.22 +#
    6.23 +#     AC_SUBST(BOOST_CPPFLAGS) / AC_SUBST(BOOST_LDFLAGS)
    6.24 +#
    6.25 +#   And sets:
    6.26 +#
    6.27 +#     HAVE_BOOST
    6.28 +#
    6.29 +# LICENSE
    6.30 +#
    6.31 +#   Copyright (c) 2008 Thomas Porschberg <thomas@randspringer.de>
    6.32 +#   Copyright (c) 2009 Peter Adolphs
    6.33 +#
    6.34 +#   Copying and distribution of this file, with or without modification, are
    6.35 +#   permitted in any medium without royalty provided the copyright notice
    6.36 +#   and this notice are preserved. This file is offered as-is, without any
    6.37 +#   warranty.
    6.38 +
    6.39 +#serial 43
    6.40 +
    6.41 +# example boost program (need to pass version)
    6.42 +m4_define([_AX_BOOST_BASE_PROGRAM],
    6.43 +          [AC_LANG_PROGRAM([[
    6.44 +#include <boost/version.hpp>
    6.45 +]],[[
    6.46 +(void) ((void)sizeof(char[1 - 2*!!((BOOST_VERSION) < ($1))]));
    6.47 +]])])
    6.48 +
    6.49 +AC_DEFUN([AX_BOOST_BASE],
    6.50 +[
    6.51 +AC_ARG_WITH([boost],
    6.52 +  [AS_HELP_STRING([--with-boost@<:@=ARG@:>@],
    6.53 +    [use Boost library from a standard location (ARG=yes),
    6.54 +     from the specified location (ARG=<path>),
    6.55 +     or disable it (ARG=no)
    6.56 +     @<:@ARG=yes@:>@ ])],
    6.57 +    [
    6.58 +     AS_CASE([$withval],
    6.59 +       [no],[want_boost="no";_AX_BOOST_BASE_boost_path=""],
    6.60 +       [yes],[want_boost="yes";_AX_BOOST_BASE_boost_path=""],
    6.61 +       [want_boost="yes";_AX_BOOST_BASE_boost_path="$withval"])
    6.62 +    ],
    6.63 +    [want_boost="yes"])
    6.64 +
    6.65 +
    6.66 +AC_ARG_WITH([boost-libdir],
    6.67 +  [AS_HELP_STRING([--with-boost-libdir=LIB_DIR],
    6.68 +    [Force given directory for boost libraries.
    6.69 +     Note that this will override library path detection,
    6.70 +     so use this parameter only if default library detection fails
    6.71 +     and you know exactly where your boost libraries are located.])],
    6.72 +  [
    6.73 +   AS_IF([test -d "$withval"],
    6.74 +         [_AX_BOOST_BASE_boost_lib_path="$withval"],
    6.75 +    [AC_MSG_ERROR([--with-boost-libdir expected directory name])])
    6.76 +  ],
    6.77 +  [_AX_BOOST_BASE_boost_lib_path=""])
    6.78 +
    6.79 +BOOST_LDFLAGS=""
    6.80 +BOOST_CPPFLAGS=""
    6.81 +AS_IF([test "x$want_boost" = "xyes"],
    6.82 +      [_AX_BOOST_BASE_RUNDETECT([$1],[$2],[$3])])
    6.83 +AC_SUBST(BOOST_CPPFLAGS)
    6.84 +AC_SUBST(BOOST_LDFLAGS)
    6.85 +])
    6.86 +
    6.87 +
    6.88 +# convert a version string in $2 to numeric and affect to polymorphic var $1
    6.89 +AC_DEFUN([_AX_BOOST_BASE_TONUMERICVERSION],[
    6.90 +  AS_IF([test "x$2" = "x"],[_AX_BOOST_BASE_TONUMERICVERSION_req="1.20.0"],[_AX_BOOST_BASE_TONUMERICVERSION_req="$2"])
    6.91 +  _AX_BOOST_BASE_TONUMERICVERSION_req_shorten=`expr $_AX_BOOST_BASE_TONUMERICVERSION_req : '\([[0-9]]*\.[[0-9]]*\)'`
    6.92 +  _AX_BOOST_BASE_TONUMERICVERSION_req_major=`expr $_AX_BOOST_BASE_TONUMERICVERSION_req : '\([[0-9]]*\)'`
    6.93 +  AS_IF([test "x$_AX_BOOST_BASE_TONUMERICVERSION_req_major" = "x"],
    6.94 +        [AC_MSG_ERROR([You should at least specify libboost major version])])
    6.95 +  _AX_BOOST_BASE_TONUMERICVERSION_req_minor=`expr $_AX_BOOST_BASE_TONUMERICVERSION_req : '[[0-9]]*\.\([[0-9]]*\)'`
    6.96 +  AS_IF([test "x$_AX_BOOST_BASE_TONUMERICVERSION_req_minor" = "x"],
    6.97 +        [_AX_BOOST_BASE_TONUMERICVERSION_req_minor="0"])
    6.98 +  _AX_BOOST_BASE_TONUMERICVERSION_req_sub_minor=`expr $_AX_BOOST_BASE_TONUMERICVERSION_req : '[[0-9]]*\.[[0-9]]*\.\([[0-9]]*\)'`
    6.99 +  AS_IF([test "X$_AX_BOOST_BASE_TONUMERICVERSION_req_sub_minor" = "X"],
   6.100 +        [_AX_BOOST_BASE_TONUMERICVERSION_req_sub_minor="0"])
   6.101 +  _AX_BOOST_BASE_TONUMERICVERSION_RET=`expr $_AX_BOOST_BASE_TONUMERICVERSION_req_major \* 100000 \+  $_AX_BOOST_BASE_TONUMERICVERSION_req_minor \* 100 \+ $_AX_BOOST_BASE_TONUMERICVERSION_req_sub_minor`
   6.102 +  AS_VAR_SET($1,$_AX_BOOST_BASE_TONUMERICVERSION_RET)
   6.103 +])
   6.104 +
   6.105 +dnl Run the detection of boost should be run only if $want_boost
   6.106 +AC_DEFUN([_AX_BOOST_BASE_RUNDETECT],[
   6.107 +    _AX_BOOST_BASE_TONUMERICVERSION(WANT_BOOST_VERSION,[$1])
   6.108 +    succeeded=no
   6.109 +
   6.110 +
   6.111 +    AC_REQUIRE([AC_CANONICAL_HOST])
   6.112 +    dnl On 64-bit systems check for system libraries in both lib64 and lib.
   6.113 +    dnl The former is specified by FHS, but e.g. Debian does not adhere to
   6.114 +    dnl this (as it rises problems for generic multi-arch support).
   6.115 +    dnl The last entry in the list is chosen by default when no libraries
   6.116 +    dnl are found, e.g. when only header-only libraries are installed!
   6.117 +    AS_CASE([${host_cpu}],
   6.118 +      [x86_64],[libsubdirs="lib64 libx32 lib lib64"],
   6.119 +      [ppc64|s390x|sparc64|aarch64|ppc64le],[libsubdirs="lib64 lib lib64"],
   6.120 +      [libsubdirs="lib"]
   6.121 +    )
   6.122 +
   6.123 +    dnl allow for real multi-arch paths e.g. /usr/lib/x86_64-linux-gnu. Give
   6.124 +    dnl them priority over the other paths since, if libs are found there, they
   6.125 +    dnl are almost assuredly the ones desired.
   6.126 +    AS_CASE([${host_cpu}],
   6.127 +      [i?86],[multiarch_libsubdir="lib/i386-${host_os}"],
   6.128 +      [multiarch_libsubdir="lib/${host_cpu}-${host_os}"]
   6.129 +    )
   6.130 +
   6.131 +    dnl first we check the system location for boost libraries
   6.132 +    dnl this location ist chosen if boost libraries are installed with the --layout=system option
   6.133 +    dnl or if you install boost with RPM
   6.134 +    AS_IF([test "x$_AX_BOOST_BASE_boost_path" != "x"],[
   6.135 +        AC_MSG_CHECKING([for boostlib >= $1 ($WANT_BOOST_VERSION) includes in "$_AX_BOOST_BASE_boost_path/include"])
   6.136 +         AS_IF([test -d "$_AX_BOOST_BASE_boost_path/include" && test -r "$_AX_BOOST_BASE_boost_path/include"],[
   6.137 +           AC_MSG_RESULT([yes])
   6.138 +           BOOST_CPPFLAGS="-I$_AX_BOOST_BASE_boost_path/include"
   6.139 +           for _AX_BOOST_BASE_boost_path_tmp in $multiarch_libsubdir $libsubdirs; do
   6.140 +                AC_MSG_CHECKING([for boostlib >= $1 ($WANT_BOOST_VERSION) lib path in "$_AX_BOOST_BASE_boost_path/$_AX_BOOST_BASE_boost_path_tmp"])
   6.141 +                AS_IF([test -d "$_AX_BOOST_BASE_boost_path/$_AX_BOOST_BASE_boost_path_tmp" && test -r "$_AX_BOOST_BASE_boost_path/$_AX_BOOST_BASE_boost_path_tmp" ],[
   6.142 +                        AC_MSG_RESULT([yes])
   6.143 +                        BOOST_LDFLAGS="-L$_AX_BOOST_BASE_boost_path/$_AX_BOOST_BASE_boost_path_tmp";
   6.144 +                        break;
   6.145 +                ],
   6.146 +      [AC_MSG_RESULT([no])])
   6.147 +           done],[
   6.148 +      AC_MSG_RESULT([no])])
   6.149 +    ],[
   6.150 +        if test X"$cross_compiling" = Xyes; then
   6.151 +            search_libsubdirs=$multiarch_libsubdir
   6.152 +        else
   6.153 +            search_libsubdirs="$multiarch_libsubdir $libsubdirs"
   6.154 +        fi
   6.155 +        for _AX_BOOST_BASE_boost_path_tmp in /usr /usr/local /opt /opt/local ; do
   6.156 +            if test -d "$_AX_BOOST_BASE_boost_path_tmp/include/boost" && test -r "$_AX_BOOST_BASE_boost_path_tmp/include/boost" ; then
   6.157 +                for libsubdir in $search_libsubdirs ; do
   6.158 +                    if ls "$_AX_BOOST_BASE_boost_path_tmp/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
   6.159 +                done
   6.160 +                BOOST_LDFLAGS="-L$_AX_BOOST_BASE_boost_path_tmp/$libsubdir"
   6.161 +                BOOST_CPPFLAGS="-I$_AX_BOOST_BASE_boost_path_tmp/include"
   6.162 +                break;
   6.163 +            fi
   6.164 +        done
   6.165 +    ])
   6.166 +
   6.167 +    dnl overwrite ld flags if we have required special directory with
   6.168 +    dnl --with-boost-libdir parameter
   6.169 +    AS_IF([test "x$_AX_BOOST_BASE_boost_lib_path" != "x"],
   6.170 +          [BOOST_LDFLAGS="-L$_AX_BOOST_BASE_boost_lib_path"])
   6.171 +
   6.172 +    AC_MSG_CHECKING([for boostlib >= $1 ($WANT_BOOST_VERSION)])
   6.173 +    CPPFLAGS_SAVED="$CPPFLAGS"
   6.174 +    CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
   6.175 +    export CPPFLAGS
   6.176 +
   6.177 +    LDFLAGS_SAVED="$LDFLAGS"
   6.178 +    LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
   6.179 +    export LDFLAGS
   6.180 +
   6.181 +    AC_REQUIRE([AC_PROG_CXX])
   6.182 +    AC_LANG_PUSH(C++)
   6.183 +        AC_COMPILE_IFELSE([_AX_BOOST_BASE_PROGRAM($WANT_BOOST_VERSION)],[
   6.184 +        AC_MSG_RESULT(yes)
   6.185 +    succeeded=yes
   6.186 +    found_system=yes
   6.187 +        ],[
   6.188 +        ])
   6.189 +    AC_LANG_POP([C++])
   6.190 +
   6.191 +
   6.192 +
   6.193 +    dnl if we found no boost with system layout we search for boost libraries
   6.194 +    dnl built and installed without the --layout=system option or for a staged(not installed) version
   6.195 +    if test "x$succeeded" != "xyes" ; then
   6.196 +        CPPFLAGS="$CPPFLAGS_SAVED"
   6.197 +        LDFLAGS="$LDFLAGS_SAVED"
   6.198 +        BOOST_CPPFLAGS=
   6.199 +        if test -z "$_AX_BOOST_BASE_boost_lib_path" ; then
   6.200 +            BOOST_LDFLAGS=
   6.201 +        fi
   6.202 +        _version=0
   6.203 +        if test -n "$_AX_BOOST_BASE_boost_path" ; then
   6.204 +            if test -d "$_AX_BOOST_BASE_boost_path" && test -r "$_AX_BOOST_BASE_boost_path"; then
   6.205 +                for i in `ls -d $_AX_BOOST_BASE_boost_path/include/boost-* 2>/dev/null`; do
   6.206 +                    _version_tmp=`echo $i | sed "s#$_AX_BOOST_BASE_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
   6.207 +                    V_CHECK=`expr $_version_tmp \> $_version`
   6.208 +                    if test "x$V_CHECK" = "x1" ; then
   6.209 +                        _version=$_version_tmp
   6.210 +                    fi
   6.211 +                    VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
   6.212 +                    BOOST_CPPFLAGS="-I$_AX_BOOST_BASE_boost_path/include/boost-$VERSION_UNDERSCORE"
   6.213 +                done
   6.214 +                dnl if nothing found search for layout used in Windows distributions
   6.215 +                if test -z "$BOOST_CPPFLAGS"; then
   6.216 +                    if test -d "$_AX_BOOST_BASE_boost_path/boost" && test -r "$_AX_BOOST_BASE_boost_path/boost"; then
   6.217 +                        BOOST_CPPFLAGS="-I$_AX_BOOST_BASE_boost_path"
   6.218 +                    fi
   6.219 +                fi
   6.220 +                dnl if we found something and BOOST_LDFLAGS was unset before
   6.221 +                dnl (because "$_AX_BOOST_BASE_boost_lib_path" = ""), set it here.
   6.222 +                if test -n "$BOOST_CPPFLAGS" && test -z "$BOOST_LDFLAGS"; then
   6.223 +                    for libsubdir in $libsubdirs ; do
   6.224 +                        if ls "$_AX_BOOST_BASE_boost_path/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
   6.225 +                    done
   6.226 +                    BOOST_LDFLAGS="-L$_AX_BOOST_BASE_boost_path/$libsubdir"
   6.227 +                fi
   6.228 +            fi
   6.229 +        else
   6.230 +            if test "x$cross_compiling" != "xyes" ; then
   6.231 +                for _AX_BOOST_BASE_boost_path in /usr /usr/local /opt /opt/local ; do
   6.232 +                    if test -d "$_AX_BOOST_BASE_boost_path" && test -r "$_AX_BOOST_BASE_boost_path" ; then
   6.233 +                        for i in `ls -d $_AX_BOOST_BASE_boost_path/include/boost-* 2>/dev/null`; do
   6.234 +                            _version_tmp=`echo $i | sed "s#$_AX_BOOST_BASE_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
   6.235 +                            V_CHECK=`expr $_version_tmp \> $_version`
   6.236 +                            if test "x$V_CHECK" = "x1" ; then
   6.237 +                                _version=$_version_tmp
   6.238 +                                best_path=$_AX_BOOST_BASE_boost_path
   6.239 +                            fi
   6.240 +                        done
   6.241 +                    fi
   6.242 +                done
   6.243 +
   6.244 +                VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
   6.245 +                BOOST_CPPFLAGS="-I$best_path/include/boost-$VERSION_UNDERSCORE"
   6.246 +                if test -z "$_AX_BOOST_BASE_boost_lib_path" ; then
   6.247 +                    for libsubdir in $libsubdirs ; do
   6.248 +                        if ls "$best_path/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
   6.249 +                    done
   6.250 +                    BOOST_LDFLAGS="-L$best_path/$libsubdir"
   6.251 +                fi
   6.252 +            fi
   6.253 +
   6.254 +            if test -n "$BOOST_ROOT" ; then
   6.255 +                for libsubdir in $libsubdirs ; do
   6.256 +                    if ls "$BOOST_ROOT/stage/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
   6.257 +                done
   6.258 +                if test -d "$BOOST_ROOT" && test -r "$BOOST_ROOT" && test -d "$BOOST_ROOT/stage/$libsubdir" && test -r "$BOOST_ROOT/stage/$libsubdir"; then
   6.259 +                    version_dir=`expr //$BOOST_ROOT : '.*/\(.*\)'`
   6.260 +                    stage_version=`echo $version_dir | sed 's/boost_//' | sed 's/_/./g'`
   6.261 +                        stage_version_shorten=`expr $stage_version : '\([[0-9]]*\.[[0-9]]*\)'`
   6.262 +                    V_CHECK=`expr $stage_version_shorten \>\= $_version`
   6.263 +                    if test "x$V_CHECK" = "x1" && test -z "$_AX_BOOST_BASE_boost_lib_path" ; then
   6.264 +                        AC_MSG_NOTICE(We will use a staged boost library from $BOOST_ROOT)
   6.265 +                        BOOST_CPPFLAGS="-I$BOOST_ROOT"
   6.266 +                        BOOST_LDFLAGS="-L$BOOST_ROOT/stage/$libsubdir"
   6.267 +                    fi
   6.268 +                fi
   6.269 +            fi
   6.270 +        fi
   6.271 +
   6.272 +        CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
   6.273 +        export CPPFLAGS
   6.274 +        LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
   6.275 +        export LDFLAGS
   6.276 +
   6.277 +        AC_LANG_PUSH(C++)
   6.278 +            AC_COMPILE_IFELSE([_AX_BOOST_BASE_PROGRAM($WANT_BOOST_VERSION)],[
   6.279 +            AC_MSG_RESULT(yes)
   6.280 +        succeeded=yes
   6.281 +        found_system=yes
   6.282 +            ],[
   6.283 +            ])
   6.284 +        AC_LANG_POP([C++])
   6.285 +    fi
   6.286 +
   6.287 +    if test "x$succeeded" != "xyes" ; then
   6.288 +        if test "x$_version" = "x0" ; then
   6.289 +            AC_MSG_NOTICE([[We could not detect the boost libraries (version $1 or higher). If you have a staged boost library (still not installed) please specify \$BOOST_ROOT in your environment and do not give a PATH to --with-boost option.  If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation.]])
   6.290 +        else
   6.291 +            AC_MSG_NOTICE([Your boost libraries seems to old (version $_version).])
   6.292 +        fi
   6.293 +        # execute ACTION-IF-NOT-FOUND (if present):
   6.294 +        ifelse([$3], , :, [$3])
   6.295 +    else
   6.296 +        AC_DEFINE(HAVE_BOOST,,[define if the Boost library is available])
   6.297 +        # execute ACTION-IF-FOUND (if present):
   6.298 +        ifelse([$2], , :, [$2])
   6.299 +    fi
   6.300 +
   6.301 +    CPPFLAGS="$CPPFLAGS_SAVED"
   6.302 +    LDFLAGS="$LDFLAGS_SAVED"
   6.303 +
   6.304 +])
     7.1 --- a/m4/ax_boost_python.m4	Thu Dec 07 08:51:09 2017 -0800
     7.2 +++ b/m4/ax_boost_python.m4	Wed Aug 01 08:15:34 2018 -0700
     7.3 @@ -1,5 +1,5 @@
     7.4  # ===========================================================================
     7.5 -#            http://autoconf-archive.cryp.to/ax_boost_python.html
     7.6 +#     https://www.gnu.org/software/autoconf-archive/ax_boost_python.html
     7.7  # ===========================================================================
     7.8  #
     7.9  # SYNOPSIS
    7.10 @@ -9,7 +9,7 @@
    7.11  # DESCRIPTION
    7.12  #
    7.13  #   This macro checks to see if the Boost.Python library is installed. It
    7.14 -#   also attempts to guess the currect library name using several attempts.
    7.15 +#   also attempts to guess the correct library name using several attempts.
    7.16  #   It tries to build the library name using a user supplied name or suffix
    7.17  #   and then just the raw library.
    7.18  #
    7.19 @@ -18,16 +18,14 @@
    7.20  #
    7.21  #   This macro calls AC_SUBST(BOOST_PYTHON_LIB).
    7.22  #
    7.23 -#   In order to ensure that the Python headers are specified on the include
    7.24 -#   path, this macro requires AX_PYTHON to be called.
    7.25 +#   In order to ensure that the Python headers and the Boost libraries are
    7.26 +#   specified on the include path, this macro requires AX_PYTHON_DEVEL and
    7.27 +#   AX_BOOST_BASE to be called.
    7.28  #
    7.29 -# LAST MODIFICATION
    7.30 -#
    7.31 -#   2008-04-12
    7.32 -#
    7.33 -# COPYLEFT
    7.34 +# LICENSE
    7.35  #
    7.36  #   Copyright (c) 2008 Michael Tindal
    7.37 +#   Copyright (c) 2013 Daniel M"ullner <daniel@danifold.net>
    7.38  #
    7.39  #   This program is free software; you can redistribute it and/or modify it
    7.40  #   under the terms of the GNU General Public License as published by the
    7.41 @@ -40,7 +38,7 @@
    7.42  #   Public License for more details.
    7.43  #
    7.44  #   You should have received a copy of the GNU General Public License along
    7.45 -#   with this program. If not, see <http://www.gnu.org/licenses/>.
    7.46 +#   with this program. If not, see <https://www.gnu.org/licenses/>.
    7.47  #
    7.48  #   As a special exception, the respective Autoconf Macro's copyright owner
    7.49  #   gives unlimited permission to copy, distribute and modify the configure
    7.50 @@ -51,41 +49,73 @@
    7.51  #   all other use of the material that constitutes the Autoconf Macro.
    7.52  #
    7.53  #   This special exception to the GPL applies to versions of the Autoconf
    7.54 -#   Macro released by the Autoconf Macro Archive. When you make and
    7.55 -#   distribute a modified version of the Autoconf Macro, you may extend this
    7.56 -#   special exception to the GPL to apply to your modified version as well.
    7.57 +#   Macro released by the Autoconf Archive. When you make and distribute a
    7.58 +#   modified version of the Autoconf Macro, you may extend this special
    7.59 +#   exception to the GPL to apply to your modified version as well.
    7.60 +
    7.61 +#serial 22
    7.62  
    7.63  AC_DEFUN([AX_BOOST_PYTHON],
    7.64 -[AC_REQUIRE([AX_PYTHON])dnl
    7.65 +[AC_REQUIRE([AX_PYTHON_DEVEL])dnl
    7.66 +AC_REQUIRE([AX_BOOST_BASE])dnl
    7.67 +AC_LANG_PUSH([C++])
    7.68 +ax_boost_python_save_CPPFLAGS="$CPPFLAGS"
    7.69 +ax_boost_python_save_LDFLAGS="$LDFLAGS"
    7.70 +ax_boost_python_save_LIBS="$LIBS"
    7.71 +if test "x$PYTHON_CPPFLAGS" != "x"; then
    7.72 +  CPPFLAGS="$PYTHON_CPPFLAGS $CPPFLAGS"
    7.73 +fi
    7.74 +
    7.75 +# Versions of AX_PYTHON_DEVEL() before serial 18 provided PYTHON_LDFLAGS
    7.76 +# instead of PYTHON_LIBS, so this is just here for compatibility.
    7.77 +if test "x$PYTHON_LDFLAGS" != "x"; then
    7.78 +  LDFLAGS="$PYTHON_LDFLAGS $LDFLAGS"
    7.79 +fi
    7.80 +
    7.81 +# Note: Only versions of AX_PYTHON_DEVEL() since serial 18 provide PYTHON_LIBS
    7.82 +# instead of PYTHON_LDFLAGS.
    7.83 +if test "x$PYTHON_LIBS" != "x"; then
    7.84 +  LIBS="$PYTHON_LIBS $LIBS"
    7.85 +fi
    7.86 +
    7.87 +if test "x$BOOST_CPPFLAGS" != "x"; then
    7.88 +  CPPFLAGS="$BOOST_CPPFLAGS $CPPFLAGS"
    7.89 +fi
    7.90 +if test "x$BOOST_LDFLAGS" != "x"; then
    7.91 +  LDFLAGS="$BOOST_LDFLAGS $LDFLAGS"
    7.92 +fi
    7.93  AC_CACHE_CHECK(whether the Boost::Python library is available,
    7.94  ac_cv_boost_python,
    7.95 -[AC_LANG_SAVE
    7.96 - AC_LANG_CPLUSPLUS
    7.97 - CPPFLAGS_SAVE=$CPPFLAGS
    7.98 - if test x$PYTHON_INCLUDE_DIR != x; then
    7.99 -   CPPFLAGS="-I$PYTHON_INCLUDE_DIR $CPPFLAGS"
   7.100 - fi
   7.101 - AC_COMPILE_IFELSE(AC_LANG_PROGRAM([[
   7.102 - #include <boost/python/module.hpp>
   7.103 - using namespace boost::python;
   7.104 - BOOST_PYTHON_MODULE(test) { throw "Boost::Python test."; }]],
   7.105 - 			   [[return 0;]]),
   7.106 -  			   ac_cv_boost_python=yes, ac_cv_boost_python=no)
   7.107 - AC_LANG_RESTORE
   7.108 - CPPFLAGS=$CPPFLAGS_SAVE
   7.109 +[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
   7.110 +#include <boost/python/module.hpp>
   7.111 +BOOST_PYTHON_MODULE(test) { throw "Boost::Python test."; }]], [])],
   7.112 +    ac_cv_boost_python=yes, ac_cv_boost_python=no)
   7.113  ])
   7.114  if test "$ac_cv_boost_python" = "yes"; then
   7.115    AC_DEFINE(HAVE_BOOST_PYTHON,,[define if the Boost::Python library is available])
   7.116    ax_python_lib=boost_python
   7.117 -  BOOST_PYTHON_LIB=$ax_python_lib
   7.118 -  AC_ARG_WITH([boost-python],AS_HELP_STRING([--with-boost-python],[specify the boost python library or suffix to use]),
   7.119 -  [if test "x$with_boost_python" != "xno"; then
   7.120 +  AC_ARG_WITH([boost-python],AS_HELP_STRING([--with-boost-python],[specify yes/no or the boost python library or suffix to use]),
   7.121 +  [if test "x$with_boost_python" != "xno" -a "x$with_boost_python" != "xyes"; then
   7.122       ax_python_lib=$with_boost_python
   7.123       ax_boost_python_lib=boost_python-$with_boost_python
   7.124     fi])
   7.125 -  for ax_lib in $ax_python_lib $ax_boost_python_lib boost_python; do
   7.126 -    AC_CHECK_LIB($ax_lib, exit, [BOOST_PYTHON_LIB=$ax_lib break])
   7.127 +  BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/@<:@^\/@:>@*//'`
   7.128 +  for ax_lib in $ax_python_lib $ax_boost_python_lib `ls $BOOSTLIBDIR/libboost_python*.so* $BOOSTLIBDIR/libboost_python*.dylib* $BOOSTLIBDIR/libboost_python*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_python.*\)\.so.*$;\1;' -e 's;^lib\(boost_python.*\)\.dylib.*$;\1;' -e 's;^lib\(boost_python.*\)\.a.*$;\1;' ` boost_python boost_python3; do
   7.129 +    AS_VAR_PUSHDEF([ax_Lib], [ax_cv_lib_$ax_lib''_BOOST_PYTHON_MODULE])dnl
   7.130 +    AC_CACHE_CHECK([whether $ax_lib is the correct library], [ax_Lib],
   7.131 +    [LIBS="-l$ax_lib $ax_boost_python_save_LIBS $PYTHON_LIBS"
   7.132 +    AC_LINK_IFELSE([AC_LANG_PROGRAM([[
   7.133 +#include <boost/python/module.hpp>
   7.134 +BOOST_PYTHON_MODULE(test) { throw "Boost::Python test."; }]], [])],
   7.135 +        [AS_VAR_SET([ax_Lib], [yes])],
   7.136 +        [AS_VAR_SET([ax_Lib], [no])])])
   7.137 +    AS_VAR_IF([ax_Lib], [yes], [BOOST_PYTHON_LIB=$ax_lib break], [])
   7.138 +    AS_VAR_POPDEF([ax_Lib])dnl
   7.139    done
   7.140    AC_SUBST(BOOST_PYTHON_LIB)
   7.141  fi
   7.142 +CPPFLAGS="$ax_boost_python_save_CPPFLAGS"
   7.143 +LDFLAGS="$ax_boost_python_save_LDFLAGS"
   7.144 +LIBS="$ax_boost_python_save_LIBS"
   7.145 +AC_LANG_POP([C++])
   7.146  ])dnl
     8.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     8.2 +++ b/m4/ax_pthread.m4	Wed Aug 01 08:15:34 2018 -0700
     8.3 @@ -0,0 +1,485 @@
     8.4 +# ===========================================================================
     8.5 +#        https://www.gnu.org/software/autoconf-archive/ax_pthread.html
     8.6 +# ===========================================================================
     8.7 +#
     8.8 +# SYNOPSIS
     8.9 +#
    8.10 +#   AX_PTHREAD([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
    8.11 +#
    8.12 +# DESCRIPTION
    8.13 +#
    8.14 +#   This macro figures out how to build C programs using POSIX threads. It
    8.15 +#   sets the PTHREAD_LIBS output variable to the threads library and linker
    8.16 +#   flags, and the PTHREAD_CFLAGS output variable to any special C compiler
    8.17 +#   flags that are needed. (The user can also force certain compiler
    8.18 +#   flags/libs to be tested by setting these environment variables.)
    8.19 +#
    8.20 +#   Also sets PTHREAD_CC to any special C compiler that is needed for
    8.21 +#   multi-threaded programs (defaults to the value of CC otherwise). (This
    8.22 +#   is necessary on AIX to use the special cc_r compiler alias.)
    8.23 +#
    8.24 +#   NOTE: You are assumed to not only compile your program with these flags,
    8.25 +#   but also to link with them as well. For example, you might link with
    8.26 +#   $PTHREAD_CC $CFLAGS $PTHREAD_CFLAGS $LDFLAGS ... $PTHREAD_LIBS $LIBS
    8.27 +#
    8.28 +#   If you are only building threaded programs, you may wish to use these
    8.29 +#   variables in your default LIBS, CFLAGS, and CC:
    8.30 +#
    8.31 +#     LIBS="$PTHREAD_LIBS $LIBS"
    8.32 +#     CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
    8.33 +#     CC="$PTHREAD_CC"
    8.34 +#
    8.35 +#   In addition, if the PTHREAD_CREATE_JOINABLE thread-attribute constant
    8.36 +#   has a nonstandard name, this macro defines PTHREAD_CREATE_JOINABLE to
    8.37 +#   that name (e.g. PTHREAD_CREATE_UNDETACHED on AIX).
    8.38 +#
    8.39 +#   Also HAVE_PTHREAD_PRIO_INHERIT is defined if pthread is found and the
    8.40 +#   PTHREAD_PRIO_INHERIT symbol is defined when compiling with
    8.41 +#   PTHREAD_CFLAGS.
    8.42 +#
    8.43 +#   ACTION-IF-FOUND is a list of shell commands to run if a threads library
    8.44 +#   is found, and ACTION-IF-NOT-FOUND is a list of commands to run it if it
    8.45 +#   is not found. If ACTION-IF-FOUND is not specified, the default action
    8.46 +#   will define HAVE_PTHREAD.
    8.47 +#
    8.48 +#   Please let the authors know if this macro fails on any platform, or if
    8.49 +#   you have any other suggestions or comments. This macro was based on work
    8.50 +#   by SGJ on autoconf scripts for FFTW (http://www.fftw.org/) (with help
    8.51 +#   from M. Frigo), as well as ac_pthread and hb_pthread macros posted by
    8.52 +#   Alejandro Forero Cuervo to the autoconf macro repository. We are also
    8.53 +#   grateful for the helpful feedback of numerous users.
    8.54 +#
    8.55 +#   Updated for Autoconf 2.68 by Daniel Richard G.
    8.56 +#
    8.57 +# LICENSE
    8.58 +#
    8.59 +#   Copyright (c) 2008 Steven G. Johnson <stevenj@alum.mit.edu>
    8.60 +#   Copyright (c) 2011 Daniel Richard G. <skunk@iSKUNK.ORG>
    8.61 +#
    8.62 +#   This program is free software: you can redistribute it and/or modify it
    8.63 +#   under the terms of the GNU General Public License as published by the
    8.64 +#   Free Software Foundation, either version 3 of the License, or (at your
    8.65 +#   option) any later version.
    8.66 +#
    8.67 +#   This program is distributed in the hope that it will be useful, but
    8.68 +#   WITHOUT ANY WARRANTY; without even the implied warranty of
    8.69 +#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
    8.70 +#   Public License for more details.
    8.71 +#
    8.72 +#   You should have received a copy of the GNU General Public License along
    8.73 +#   with this program. If not, see <https://www.gnu.org/licenses/>.
    8.74 +#
    8.75 +#   As a special exception, the respective Autoconf Macro's copyright owner
    8.76 +#   gives unlimited permission to copy, distribute and modify the configure
    8.77 +#   scripts that are the output of Autoconf when processing the Macro. You
    8.78 +#   need not follow the terms of the GNU General Public License when using
    8.79 +#   or distributing such scripts, even though portions of the text of the
    8.80 +#   Macro appear in them. The GNU General Public License (GPL) does govern
    8.81 +#   all other use of the material that constitutes the Autoconf Macro.
    8.82 +#
    8.83 +#   This special exception to the GPL applies to versions of the Autoconf
    8.84 +#   Macro released by the Autoconf Archive. When you make and distribute a
    8.85 +#   modified version of the Autoconf Macro, you may extend this special
    8.86 +#   exception to the GPL to apply to your modified version as well.
    8.87 +
    8.88 +#serial 24
    8.89 +
    8.90 +AU_ALIAS([ACX_PTHREAD], [AX_PTHREAD])
    8.91 +AC_DEFUN([AX_PTHREAD], [
    8.92 +AC_REQUIRE([AC_CANONICAL_HOST])
    8.93 +AC_REQUIRE([AC_PROG_CC])
    8.94 +AC_REQUIRE([AC_PROG_SED])
    8.95 +AC_LANG_PUSH([C])
    8.96 +ax_pthread_ok=no
    8.97 +
    8.98 +# We used to check for pthread.h first, but this fails if pthread.h
    8.99 +# requires special compiler flags (e.g. on Tru64 or Sequent).
   8.100 +# It gets checked for in the link test anyway.
   8.101 +
   8.102 +# First of all, check if the user has set any of the PTHREAD_LIBS,
   8.103 +# etcetera environment variables, and if threads linking works using
   8.104 +# them:
   8.105 +if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
   8.106 +        ax_pthread_save_CC="$CC"
   8.107 +        ax_pthread_save_CFLAGS="$CFLAGS"
   8.108 +        ax_pthread_save_LIBS="$LIBS"
   8.109 +        AS_IF([test "x$PTHREAD_CC" != "x"], [CC="$PTHREAD_CC"])
   8.110 +        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
   8.111 +        LIBS="$PTHREAD_LIBS $LIBS"
   8.112 +        AC_MSG_CHECKING([for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS])
   8.113 +        AC_LINK_IFELSE([AC_LANG_CALL([], [pthread_join])], [ax_pthread_ok=yes])
   8.114 +        AC_MSG_RESULT([$ax_pthread_ok])
   8.115 +        if test "x$ax_pthread_ok" = "xno"; then
   8.116 +                PTHREAD_LIBS=""
   8.117 +                PTHREAD_CFLAGS=""
   8.118 +        fi
   8.119 +        CC="$ax_pthread_save_CC"
   8.120 +        CFLAGS="$ax_pthread_save_CFLAGS"
   8.121 +        LIBS="$ax_pthread_save_LIBS"
   8.122 +fi
   8.123 +
   8.124 +# We must check for the threads library under a number of different
   8.125 +# names; the ordering is very important because some systems
   8.126 +# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
   8.127 +# libraries is broken (non-POSIX).
   8.128 +
   8.129 +# Create a list of thread flags to try.  Items starting with a "-" are
   8.130 +# C compiler flags, and other items are library names, except for "none"
   8.131 +# which indicates that we try without any flags at all, and "pthread-config"
   8.132 +# which is a program returning the flags for the Pth emulation library.
   8.133 +
   8.134 +ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
   8.135 +
   8.136 +# The ordering *is* (sometimes) important.  Some notes on the
   8.137 +# individual items follow:
   8.138 +
   8.139 +# pthreads: AIX (must check this before -lpthread)
   8.140 +# none: in case threads are in libc; should be tried before -Kthread and
   8.141 +#       other compiler flags to prevent continual compiler warnings
   8.142 +# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
   8.143 +# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
   8.144 +#           (Note: HP C rejects this with "bad form for `-t' option")
   8.145 +# -pthreads: Solaris/gcc (Note: HP C also rejects)
   8.146 +# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
   8.147 +#      doesn't hurt to check since this sometimes defines pthreads and
   8.148 +#      -D_REENTRANT too), HP C (must be checked before -lpthread, which
   8.149 +#      is present but should not be used directly; and before -mthreads,
   8.150 +#      because the compiler interprets this as "-mt" + "-hreads")
   8.151 +# -mthreads: Mingw32/gcc, Lynx/gcc
   8.152 +# pthread: Linux, etcetera
   8.153 +# --thread-safe: KAI C++
   8.154 +# pthread-config: use pthread-config program (for GNU Pth library)
   8.155 +
   8.156 +case $host_os in
   8.157 +
   8.158 +        freebsd*)
   8.159 +
   8.160 +        # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
   8.161 +        # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
   8.162 +
   8.163 +        ax_pthread_flags="-kthread lthread $ax_pthread_flags"
   8.164 +        ;;
   8.165 +
   8.166 +        hpux*)
   8.167 +
   8.168 +        # From the cc(1) man page: "[-mt] Sets various -D flags to enable
   8.169 +        # multi-threading and also sets -lpthread."
   8.170 +
   8.171 +        ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
   8.172 +        ;;
   8.173 +
   8.174 +        openedition*)
   8.175 +
   8.176 +        # IBM z/OS requires a feature-test macro to be defined in order to
   8.177 +        # enable POSIX threads at all, so give the user a hint if this is
   8.178 +        # not set. (We don't define these ourselves, as they can affect
   8.179 +        # other portions of the system API in unpredictable ways.)
   8.180 +
   8.181 +        AC_EGREP_CPP([AX_PTHREAD_ZOS_MISSING],
   8.182 +            [
   8.183 +#            if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
   8.184 +             AX_PTHREAD_ZOS_MISSING
   8.185 +#            endif
   8.186 +            ],
   8.187 +            [AC_MSG_WARN([IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support.])])
   8.188 +        ;;
   8.189 +
   8.190 +        solaris*)
   8.191 +
   8.192 +        # On Solaris (at least, for some versions), libc contains stubbed
   8.193 +        # (non-functional) versions of the pthreads routines, so link-based
   8.194 +        # tests will erroneously succeed. (N.B.: The stubs are missing
   8.195 +        # pthread_cleanup_push, or rather a function called by this macro,
   8.196 +        # so we could check for that, but who knows whether they'll stub
   8.197 +        # that too in a future libc.)  So we'll check first for the
   8.198 +        # standard Solaris way of linking pthreads (-mt -lpthread).
   8.199 +
   8.200 +        ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
   8.201 +        ;;
   8.202 +esac
   8.203 +
   8.204 +# GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
   8.205 +
   8.206 +AS_IF([test "x$GCC" = "xyes"],
   8.207 +      [ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"])
   8.208 +
   8.209 +# The presence of a feature test macro requesting re-entrant function
   8.210 +# definitions is, on some systems, a strong hint that pthreads support is
   8.211 +# correctly enabled
   8.212 +
   8.213 +case $host_os in
   8.214 +        darwin* | hpux* | linux* | osf* | solaris*)
   8.215 +        ax_pthread_check_macro="_REENTRANT"
   8.216 +        ;;
   8.217 +
   8.218 +        aix*)
   8.219 +        ax_pthread_check_macro="_THREAD_SAFE"
   8.220 +        ;;
   8.221 +
   8.222 +        *)
   8.223 +        ax_pthread_check_macro="--"
   8.224 +        ;;
   8.225 +esac
   8.226 +AS_IF([test "x$ax_pthread_check_macro" = "x--"],
   8.227 +      [ax_pthread_check_cond=0],
   8.228 +      [ax_pthread_check_cond="!defined($ax_pthread_check_macro)"])
   8.229 +
   8.230 +# Are we compiling with Clang?
   8.231 +
   8.232 +AC_CACHE_CHECK([whether $CC is Clang],
   8.233 +    [ax_cv_PTHREAD_CLANG],
   8.234 +    [ax_cv_PTHREAD_CLANG=no
   8.235 +     # Note that Autoconf sets GCC=yes for Clang as well as GCC
   8.236 +     if test "x$GCC" = "xyes"; then
   8.237 +        AC_EGREP_CPP([AX_PTHREAD_CC_IS_CLANG],
   8.238 +            [/* Note: Clang 2.7 lacks __clang_[a-z]+__ */
   8.239 +#            if defined(__clang__) && defined(__llvm__)
   8.240 +             AX_PTHREAD_CC_IS_CLANG
   8.241 +#            endif
   8.242 +            ],
   8.243 +            [ax_cv_PTHREAD_CLANG=yes])
   8.244 +     fi
   8.245 +    ])
   8.246 +ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
   8.247 +
   8.248 +ax_pthread_clang_warning=no
   8.249 +
   8.250 +# Clang needs special handling, because older versions handle the -pthread
   8.251 +# option in a rather... idiosyncratic way
   8.252 +
   8.253 +if test "x$ax_pthread_clang" = "xyes"; then
   8.254 +
   8.255 +        # Clang takes -pthread; it has never supported any other flag
   8.256 +
   8.257 +        # (Note 1: This will need to be revisited if a system that Clang
   8.258 +        # supports has POSIX threads in a separate library.  This tends not
   8.259 +        # to be the way of modern systems, but it's conceivable.)
   8.260 +
   8.261 +        # (Note 2: On some systems, notably Darwin, -pthread is not needed
   8.262 +        # to get POSIX threads support; the API is always present and
   8.263 +        # active.  We could reasonably leave PTHREAD_CFLAGS empty.  But
   8.264 +        # -pthread does define _REENTRANT, and while the Darwin headers
   8.265 +        # ignore this macro, third-party headers might not.)
   8.266 +
   8.267 +        PTHREAD_CFLAGS="-pthread"
   8.268 +        PTHREAD_LIBS=
   8.269 +
   8.270 +        ax_pthread_ok=yes
   8.271 +
   8.272 +        # However, older versions of Clang make a point of warning the user
   8.273 +        # that, in an invocation where only linking and no compilation is
   8.274 +        # taking place, the -pthread option has no effect ("argument unused
   8.275 +        # during compilation").  They expect -pthread to be passed in only
   8.276 +        # when source code is being compiled.
   8.277 +        #
   8.278 +        # Problem is, this is at odds with the way Automake and most other
   8.279 +        # C build frameworks function, which is that the same flags used in
   8.280 +        # compilation (CFLAGS) are also used in linking.  Many systems
   8.281 +        # supported by AX_PTHREAD require exactly this for POSIX threads
   8.282 +        # support, and in fact it is often not straightforward to specify a
   8.283 +        # flag that is used only in the compilation phase and not in
   8.284 +        # linking.  Such a scenario is extremely rare in practice.
   8.285 +        #
   8.286 +        # Even though use of the -pthread flag in linking would only print
   8.287 +        # a warning, this can be a nuisance for well-run software projects
   8.288 +        # that build with -Werror.  So if the active version of Clang has
   8.289 +        # this misfeature, we search for an option to squash it.
   8.290 +
   8.291 +        AC_CACHE_CHECK([whether Clang needs flag to prevent "argument unused" warning when linking with -pthread],
   8.292 +            [ax_cv_PTHREAD_CLANG_NO_WARN_FLAG],
   8.293 +            [ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
   8.294 +             # Create an alternate version of $ac_link that compiles and
   8.295 +             # links in two steps (.c -> .o, .o -> exe) instead of one
   8.296 +             # (.c -> exe), because the warning occurs only in the second
   8.297 +             # step
   8.298 +             ax_pthread_save_ac_link="$ac_link"
   8.299 +             ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
   8.300 +             ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
   8.301 +             ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
   8.302 +             ax_pthread_save_CFLAGS="$CFLAGS"
   8.303 +             for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
   8.304 +                AS_IF([test "x$ax_pthread_try" = "xunknown"], [break])
   8.305 +                CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
   8.306 +                ac_link="$ax_pthread_save_ac_link"
   8.307 +                AC_LINK_IFELSE([AC_LANG_SOURCE([[int main(void){return 0;}]])],
   8.308 +                    [ac_link="$ax_pthread_2step_ac_link"
   8.309 +                     AC_LINK_IFELSE([AC_LANG_SOURCE([[int main(void){return 0;}]])],
   8.310 +                         [break])
   8.311 +                    ])
   8.312 +             done
   8.313 +             ac_link="$ax_pthread_save_ac_link"
   8.314 +             CFLAGS="$ax_pthread_save_CFLAGS"
   8.315 +             AS_IF([test "x$ax_pthread_try" = "x"], [ax_pthread_try=no])
   8.316 +             ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
   8.317 +            ])
   8.318 +
   8.319 +        case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
   8.320 +                no | unknown) ;;
   8.321 +                *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
   8.322 +        esac
   8.323 +
   8.324 +fi # $ax_pthread_clang = yes
   8.325 +
   8.326 +if test "x$ax_pthread_ok" = "xno"; then
   8.327 +for ax_pthread_try_flag in $ax_pthread_flags; do
   8.328 +
   8.329 +        case $ax_pthread_try_flag in
   8.330 +                none)
   8.331 +                AC_MSG_CHECKING([whether pthreads work without any flags])
   8.332 +                ;;
   8.333 +
   8.334 +                -mt,pthread)
   8.335 +                AC_MSG_CHECKING([whether pthreads work with -mt -lpthread])
   8.336 +                PTHREAD_CFLAGS="-mt"
   8.337 +                PTHREAD_LIBS="-lpthread"
   8.338 +                ;;
   8.339 +
   8.340 +                -*)
   8.341 +                AC_MSG_CHECKING([whether pthreads work with $ax_pthread_try_flag])
   8.342 +                PTHREAD_CFLAGS="$ax_pthread_try_flag"
   8.343 +                ;;
   8.344 +
   8.345 +                pthread-config)
   8.346 +                AC_CHECK_PROG([ax_pthread_config], [pthread-config], [yes], [no])
   8.347 +                AS_IF([test "x$ax_pthread_config" = "xno"], [continue])
   8.348 +                PTHREAD_CFLAGS="`pthread-config --cflags`"
   8.349 +                PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
   8.350 +                ;;
   8.351 +
   8.352 +                *)
   8.353 +                AC_MSG_CHECKING([for the pthreads library -l$ax_pthread_try_flag])
   8.354 +                PTHREAD_LIBS="-l$ax_pthread_try_flag"
   8.355 +                ;;
   8.356 +        esac
   8.357 +
   8.358 +        ax_pthread_save_CFLAGS="$CFLAGS"
   8.359 +        ax_pthread_save_LIBS="$LIBS"
   8.360 +        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
   8.361 +        LIBS="$PTHREAD_LIBS $LIBS"
   8.362 +
   8.363 +        # Check for various functions.  We must include pthread.h,
   8.364 +        # since some functions may be macros.  (On the Sequent, we
   8.365 +        # need a special flag -Kthread to make this header compile.)
   8.366 +        # We check for pthread_join because it is in -lpthread on IRIX
   8.367 +        # while pthread_create is in libc.  We check for pthread_attr_init
   8.368 +        # due to DEC craziness with -lpthreads.  We check for
   8.369 +        # pthread_cleanup_push because it is one of the few pthread
   8.370 +        # functions on Solaris that doesn't have a non-functional libc stub.
   8.371 +        # We try pthread_create on general principles.
   8.372 +
   8.373 +        AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <pthread.h>
   8.374 +#                       if $ax_pthread_check_cond
   8.375 +#                        error "$ax_pthread_check_macro must be defined"
   8.376 +#                       endif
   8.377 +                        static void routine(void *a) { a = 0; }
   8.378 +                        static void *start_routine(void *a) { return a; }],
   8.379 +                       [pthread_t th; pthread_attr_t attr;
   8.380 +                        pthread_create(&th, 0, start_routine, 0);
   8.381 +                        pthread_join(th, 0);
   8.382 +                        pthread_attr_init(&attr);
   8.383 +                        pthread_cleanup_push(routine, 0);
   8.384 +                        pthread_cleanup_pop(0) /* ; */])],
   8.385 +            [ax_pthread_ok=yes],
   8.386 +            [])
   8.387 +
   8.388 +        CFLAGS="$ax_pthread_save_CFLAGS"
   8.389 +        LIBS="$ax_pthread_save_LIBS"
   8.390 +
   8.391 +        AC_MSG_RESULT([$ax_pthread_ok])
   8.392 +        AS_IF([test "x$ax_pthread_ok" = "xyes"], [break])
   8.393 +
   8.394 +        PTHREAD_LIBS=""
   8.395 +        PTHREAD_CFLAGS=""
   8.396 +done
   8.397 +fi
   8.398 +
   8.399 +# Various other checks:
   8.400 +if test "x$ax_pthread_ok" = "xyes"; then
   8.401 +        ax_pthread_save_CFLAGS="$CFLAGS"
   8.402 +        ax_pthread_save_LIBS="$LIBS"
   8.403 +        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
   8.404 +        LIBS="$PTHREAD_LIBS $LIBS"
   8.405 +
   8.406 +        # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
   8.407 +        AC_CACHE_CHECK([for joinable pthread attribute],
   8.408 +            [ax_cv_PTHREAD_JOINABLE_ATTR],
   8.409 +            [ax_cv_PTHREAD_JOINABLE_ATTR=unknown
   8.410 +             for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
   8.411 +                 AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <pthread.h>],
   8.412 +                                                 [int attr = $ax_pthread_attr; return attr /* ; */])],
   8.413 +                                [ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break],
   8.414 +                                [])
   8.415 +             done
   8.416 +            ])
   8.417 +        AS_IF([test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
   8.418 +               test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
   8.419 +               test "x$ax_pthread_joinable_attr_defined" != "xyes"],
   8.420 +              [AC_DEFINE_UNQUOTED([PTHREAD_CREATE_JOINABLE],
   8.421 +                                  [$ax_cv_PTHREAD_JOINABLE_ATTR],
   8.422 +                                  [Define to necessary symbol if this constant
   8.423 +                                   uses a non-standard name on your system.])
   8.424 +               ax_pthread_joinable_attr_defined=yes
   8.425 +              ])
   8.426 +
   8.427 +        AC_CACHE_CHECK([whether more special flags are required for pthreads],
   8.428 +            [ax_cv_PTHREAD_SPECIAL_FLAGS],
   8.429 +            [ax_cv_PTHREAD_SPECIAL_FLAGS=no
   8.430 +             case $host_os in
   8.431 +             solaris*)
   8.432 +             ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
   8.433 +             ;;
   8.434 +             esac
   8.435 +            ])
   8.436 +        AS_IF([test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
   8.437 +               test "x$ax_pthread_special_flags_added" != "xyes"],
   8.438 +              [PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
   8.439 +               ax_pthread_special_flags_added=yes])
   8.440 +
   8.441 +        AC_CACHE_CHECK([for PTHREAD_PRIO_INHERIT],
   8.442 +            [ax_cv_PTHREAD_PRIO_INHERIT],
   8.443 +            [AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <pthread.h>]],
   8.444 +                                             [[int i = PTHREAD_PRIO_INHERIT;]])],
   8.445 +                            [ax_cv_PTHREAD_PRIO_INHERIT=yes],
   8.446 +                            [ax_cv_PTHREAD_PRIO_INHERIT=no])
   8.447 +            ])
   8.448 +        AS_IF([test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
   8.449 +               test "x$ax_pthread_prio_inherit_defined" != "xyes"],
   8.450 +              [AC_DEFINE([HAVE_PTHREAD_PRIO_INHERIT], [1], [Have PTHREAD_PRIO_INHERIT.])
   8.451 +               ax_pthread_prio_inherit_defined=yes
   8.452 +              ])
   8.453 +
   8.454 +        CFLAGS="$ax_pthread_save_CFLAGS"
   8.455 +        LIBS="$ax_pthread_save_LIBS"
   8.456 +
   8.457 +        # More AIX lossage: compile with *_r variant
   8.458 +        if test "x$GCC" != "xyes"; then
   8.459 +            case $host_os in
   8.460 +                aix*)
   8.461 +                AS_CASE(["x/$CC"],
   8.462 +                    [x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6],
   8.463 +                    [#handle absolute path differently from PATH based program lookup
   8.464 +                     AS_CASE(["x$CC"],
   8.465 +                         [x/*],
   8.466 +                         [AS_IF([AS_EXECUTABLE_P([${CC}_r])],[PTHREAD_CC="${CC}_r"])],
   8.467 +                         [AC_CHECK_PROGS([PTHREAD_CC],[${CC}_r],[$CC])])])
   8.468 +                ;;
   8.469 +            esac
   8.470 +        fi
   8.471 +fi
   8.472 +
   8.473 +test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
   8.474 +
   8.475 +AC_SUBST([PTHREAD_LIBS])
   8.476 +AC_SUBST([PTHREAD_CFLAGS])
   8.477 +AC_SUBST([PTHREAD_CC])
   8.478 +
   8.479 +# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
   8.480 +if test "x$ax_pthread_ok" = "xyes"; then
   8.481 +        ifelse([$1],,[AC_DEFINE([HAVE_PTHREAD],[1],[Define if you have POSIX threads libraries and header files.])],[$1])
   8.482 +        :
   8.483 +else
   8.484 +        ax_pthread_ok=no
   8.485 +        $2
   8.486 +fi
   8.487 +AC_LANG_POP
   8.488 +])dnl AX_PTHREAD
     9.1 --- a/m4/ax_python.m4	Thu Dec 07 08:51:09 2017 -0800
     9.2 +++ b/m4/ax_python.m4	Wed Aug 01 08:15:34 2018 -0700
     9.3 @@ -1,5 +1,5 @@
     9.4  # ===========================================================================
     9.5 -#               http://autoconf-archive.cryp.to/ax_python.html
     9.6 +#        https://www.gnu.org/software/autoconf-archive/ax_python.html
     9.7  # ===========================================================================
     9.8  #
     9.9  # SYNOPSIS
    9.10 @@ -10,9 +10,8 @@
    9.11  #
    9.12  #   This macro does a complete Python development environment check.
    9.13  #
    9.14 -#   It recurses through several python versions (from 2.1 to 2.5 in this
    9.15 -#   version), looking for an executable. When it finds an executable, it
    9.16 -#   looks to find the header files and library.
    9.17 +#   It checks for all known versions. When it finds an executable, it looks
    9.18 +#   to find the header files and library.
    9.19  #
    9.20  #   It sets PYTHON_BIN to the name of the python executable,
    9.21  #   PYTHON_INCLUDE_DIR to the directory holding the header files, and
    9.22 @@ -21,11 +20,7 @@
    9.23  #   This macro calls AC_SUBST on PYTHON_BIN (via AC_CHECK_PROG),
    9.24  #   PYTHON_INCLUDE_DIR and PYTHON_LIB.
    9.25  #
    9.26 -# LAST MODIFICATION
    9.27 -#
    9.28 -#   2008-04-12
    9.29 -#
    9.30 -# COPYLEFT
    9.31 +# LICENSE
    9.32  #
    9.33  #   Copyright (c) 2008 Michael Tindal
    9.34  #
    9.35 @@ -40,7 +35,7 @@
    9.36  #   Public License for more details.
    9.37  #
    9.38  #   You should have received a copy of the GNU General Public License along
    9.39 -#   with this program. If not, see <http://www.gnu.org/licenses/>.
    9.40 +#   with this program. If not, see <https://www.gnu.org/licenses/>.
    9.41  #
    9.42  #   As a special exception, the respective Autoconf Macro's copyright owner
    9.43  #   gives unlimited permission to copy, distribute and modify the configure
    9.44 @@ -51,28 +46,30 @@
    9.45  #   all other use of the material that constitutes the Autoconf Macro.
    9.46  #
    9.47  #   This special exception to the GPL applies to versions of the Autoconf
    9.48 -#   Macro released by the Autoconf Macro Archive. When you make and
    9.49 -#   distribute a modified version of the Autoconf Macro, you may extend this
    9.50 -#   special exception to the GPL to apply to your modified version as well.
    9.51 +#   Macro released by the Autoconf Archive. When you make and distribute a
    9.52 +#   modified version of the Autoconf Macro, you may extend this special
    9.53 +#   exception to the GPL to apply to your modified version as well.
    9.54 +
    9.55 +#serial 18
    9.56  
    9.57  AC_DEFUN([AX_PYTHON],
    9.58 -[
    9.59 -AC_MSG_CHECKING(for python build information)
    9.60 +[AC_MSG_CHECKING(for python build information)
    9.61  AC_MSG_RESULT([])
    9.62 -for python in python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python; do
    9.63 -    AC_CHECK_PROGS(PYTHON_BIN, [$python])
    9.64 -    ax_python_bin=$PYTHON_BIN
    9.65 -    if test x$ax_python_bin != x; then
    9.66 -        AC_CHECK_LIB($ax_python_bin, main, ax_python_lib=$ax_python_bin, ax_python_lib=no)
    9.67 -        AC_CHECK_HEADER([$ax_python_bin/Python.h],
    9.68 -                        ax_python_header=yes,
    9.69 -                        ax_python_header=no)
    9.70 -        if test $ax_python_lib != no; then
    9.71 -            if test $ax_python_header != no; then
    9.72 -                break;
    9.73 -            fi
    9.74 -        fi
    9.75 -    fi
    9.76 +for python in python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python; do
    9.77 +AC_CHECK_PROGS(PYTHON_BIN, [$python])
    9.78 +ax_python_bin=$PYTHON_BIN
    9.79 +if test x$ax_python_bin != x; then
    9.80 +   AC_CHECK_LIB($ax_python_bin, main, ax_python_lib=$ax_python_bin, ax_python_lib=no)
    9.81 +   if test x$ax_python_lib == xno; then
    9.82 +     AC_CHECK_LIB(${ax_python_bin}m, main, ax_python_lib=${ax_python_bin}m, ax_python_lib=no)
    9.83 +   fi
    9.84 +   if test x$ax_python_lib != xno; then
    9.85 +     ax_python_header=`$ax_python_bin -c "from distutils.sysconfig import *; print(get_config_var('CONFINCLUDEPY'))"`
    9.86 +     if test x$ax_python_header != x; then
    9.87 +       break;
    9.88 +     fi
    9.89 +   fi
    9.90 +fi
    9.91  done
    9.92  if test x$ax_python_bin = x; then
    9.93     ax_python_bin=no
    9.94 @@ -87,7 +84,12 @@
    9.95  AC_MSG_RESULT([  results of the Python check:])
    9.96  AC_MSG_RESULT([    Binary:      $ax_python_bin])
    9.97  AC_MSG_RESULT([    Library:     $ax_python_lib])
    9.98 +AC_MSG_RESULT([    Include Dir: $ax_python_header])
    9.99  
   9.100 +if test x$ax_python_header != xno; then
   9.101 +  PYTHON_INCLUDE_DIR=$ax_python_header
   9.102 +  AC_SUBST(PYTHON_INCLUDE_DIR)
   9.103 +fi
   9.104  if test x$ax_python_lib != xno; then
   9.105    PYTHON_LIB=$ax_python_lib
   9.106    AC_SUBST(PYTHON_LIB)
    10.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    10.2 +++ b/m4/ax_python_devel.m4	Wed Aug 01 08:15:34 2018 -0700
    10.3 @@ -0,0 +1,327 @@
    10.4 +# ===========================================================================
    10.5 +#     https://www.gnu.org/software/autoconf-archive/ax_python_devel.html
    10.6 +# ===========================================================================
    10.7 +#
    10.8 +# SYNOPSIS
    10.9 +#
   10.10 +#   AX_PYTHON_DEVEL([version])
   10.11 +#
   10.12 +# DESCRIPTION
   10.13 +#
   10.14 +#   Note: Defines as a precious variable "PYTHON_VERSION". Don't override it
   10.15 +#   in your configure.ac.
   10.16 +#
   10.17 +#   This macro checks for Python and tries to get the include path to
   10.18 +#   'Python.h'. It provides the $(PYTHON_CPPFLAGS) and $(PYTHON_LIBS) output
   10.19 +#   variables. It also exports $(PYTHON_EXTRA_LIBS) and
   10.20 +#   $(PYTHON_EXTRA_LDFLAGS) for embedding Python in your code.
   10.21 +#
   10.22 +#   You can search for some particular version of Python by passing a
   10.23 +#   parameter to this macro, for example ">= '2.3.1'", or "== '2.4'". Please
   10.24 +#   note that you *have* to pass also an operator along with the version to
   10.25 +#   match, and pay special attention to the single quotes surrounding the
   10.26 +#   version number. Don't use "PYTHON_VERSION" for this: that environment
   10.27 +#   variable is declared as precious and thus reserved for the end-user.
   10.28 +#
   10.29 +#   This macro should work for all versions of Python >= 2.1.0. As an end
   10.30 +#   user, you can disable the check for the python version by setting the
   10.31 +#   PYTHON_NOVERSIONCHECK environment variable to something else than the
   10.32 +#   empty string.
   10.33 +#
   10.34 +#   If you need to use this macro for an older Python version, please
   10.35 +#   contact the authors. We're always open for feedback.
   10.36 +#
   10.37 +# LICENSE
   10.38 +#
   10.39 +#   Copyright (c) 2009 Sebastian Huber <sebastian-huber@web.de>
   10.40 +#   Copyright (c) 2009 Alan W. Irwin
   10.41 +#   Copyright (c) 2009 Rafael Laboissiere <rafael@laboissiere.net>
   10.42 +#   Copyright (c) 2009 Andrew Collier
   10.43 +#   Copyright (c) 2009 Matteo Settenvini <matteo@member.fsf.org>
   10.44 +#   Copyright (c) 2009 Horst Knorr <hk_classes@knoda.org>
   10.45 +#   Copyright (c) 2013 Daniel Mullner <muellner@math.stanford.edu>
   10.46 +#
   10.47 +#   This program is free software: you can redistribute it and/or modify it
   10.48 +#   under the terms of the GNU General Public License as published by the
   10.49 +#   Free Software Foundation, either version 3 of the License, or (at your
   10.50 +#   option) any later version.
   10.51 +#
   10.52 +#   This program is distributed in the hope that it will be useful, but
   10.53 +#   WITHOUT ANY WARRANTY; without even the implied warranty of
   10.54 +#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
   10.55 +#   Public License for more details.
   10.56 +#
   10.57 +#   You should have received a copy of the GNU General Public License along
   10.58 +#   with this program. If not, see <https://www.gnu.org/licenses/>.
   10.59 +#
   10.60 +#   As a special exception, the respective Autoconf Macro's copyright owner
   10.61 +#   gives unlimited permission to copy, distribute and modify the configure
   10.62 +#   scripts that are the output of Autoconf when processing the Macro. You
   10.63 +#   need not follow the terms of the GNU General Public License when using
   10.64 +#   or distributing such scripts, even though portions of the text of the
   10.65 +#   Macro appear in them. The GNU General Public License (GPL) does govern
   10.66 +#   all other use of the material that constitutes the Autoconf Macro.
   10.67 +#
   10.68 +#   This special exception to the GPL applies to versions of the Autoconf
   10.69 +#   Macro released by the Autoconf Archive. When you make and distribute a
   10.70 +#   modified version of the Autoconf Macro, you may extend this special
   10.71 +#   exception to the GPL to apply to your modified version as well.
   10.72 +
   10.73 +#serial 21
   10.74 +
   10.75 +AU_ALIAS([AC_PYTHON_DEVEL], [AX_PYTHON_DEVEL])
   10.76 +AC_DEFUN([AX_PYTHON_DEVEL],[
   10.77 +	#
   10.78 +	# Allow the use of a (user set) custom python version
   10.79 +	#
   10.80 +	AC_ARG_VAR([PYTHON_VERSION],[The installed Python
   10.81 +		version to use, for example '2.3'. This string
   10.82 +		will be appended to the Python interpreter
   10.83 +		canonical name.])
   10.84 +
   10.85 +	AC_PATH_PROG([PYTHON],[python[$PYTHON_VERSION]])
   10.86 +	if test -z "$PYTHON"; then
   10.87 +	   AC_MSG_ERROR([Cannot find python$PYTHON_VERSION in your system path])
   10.88 +	   PYTHON_VERSION=""
   10.89 +	fi
   10.90 +
   10.91 +	#
   10.92 +	# Check for a version of Python >= 2.1.0
   10.93 +	#
   10.94 +	AC_MSG_CHECKING([for a version of Python >= '2.1.0'])
   10.95 +	ac_supports_python_ver=`$PYTHON -c "import sys; \
   10.96 +		ver = sys.version.split ()[[0]]; \
   10.97 +		print (ver >= '2.1.0')"`
   10.98 +	if test "$ac_supports_python_ver" != "True"; then
   10.99 +		if test -z "$PYTHON_NOVERSIONCHECK"; then
  10.100 +			AC_MSG_RESULT([no])
  10.101 +			AC_MSG_FAILURE([
  10.102 +This version of the AC@&t@_PYTHON_DEVEL macro
  10.103 +doesn't work properly with versions of Python before
  10.104 +2.1.0. You may need to re-run configure, setting the
  10.105 +variables PYTHON_CPPFLAGS, PYTHON_LIBS, PYTHON_SITE_PKG,
  10.106 +PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand.
  10.107 +Moreover, to disable this check, set PYTHON_NOVERSIONCHECK
  10.108 +to something else than an empty string.
  10.109 +])
  10.110 +		else
  10.111 +			AC_MSG_RESULT([skip at user request])
  10.112 +		fi
  10.113 +	else
  10.114 +		AC_MSG_RESULT([yes])
  10.115 +	fi
  10.116 +
  10.117 +	#
  10.118 +	# if the macro parameter ``version'' is set, honour it
  10.119 +	#
  10.120 +	if test -n "$1"; then
  10.121 +		AC_MSG_CHECKING([for a version of Python $1])
  10.122 +		ac_supports_python_ver=`$PYTHON -c "import sys; \
  10.123 +			ver = '.'.join(sys.version.split('.')[[:2]]); \
  10.124 +			print (ver == '$1')"`
  10.125 +		if test "$ac_supports_python_ver" = "True"; then
  10.126 +		   AC_MSG_RESULT([yes])
  10.127 +		else
  10.128 +			AC_MSG_RESULT([no])
  10.129 +			AC_MSG_ERROR([this package requires Python $1.
  10.130 +If you have it installed, but it isn't the default Python
  10.131 +interpreter in your system path, please pass the PYTHON_VERSION
  10.132 +variable to configure. See ``configure --help'' for reference.
  10.133 +])
  10.134 +			PYTHON_VERSION=""
  10.135 +		fi
  10.136 +	fi
  10.137 +
  10.138 +	#
  10.139 +	# Check if you have distutils, else fail
  10.140 +	#
  10.141 +	AC_MSG_CHECKING([for the distutils Python package])
  10.142 +	ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
  10.143 +	if test $? -eq 0; then
  10.144 +		AC_MSG_RESULT([yes])
  10.145 +	else
  10.146 +		AC_MSG_RESULT([no])
  10.147 +		AC_MSG_ERROR([cannot import Python module "distutils".
  10.148 +Please check your Python installation. The error was:
  10.149 +$ac_distutils_result])
  10.150 +		PYTHON_VERSION=""
  10.151 +	fi
  10.152 +
  10.153 +	#
  10.154 +	# Check for Python include path
  10.155 +	#
  10.156 +	AC_MSG_CHECKING([for Python include path])
  10.157 +	if test -z "$PYTHON_CPPFLAGS"; then
  10.158 +		python_path=`$PYTHON -c "import distutils.sysconfig; \
  10.159 +			print (distutils.sysconfig.get_python_inc ());"`
  10.160 +		plat_python_path=`$PYTHON -c "import distutils.sysconfig; \
  10.161 +			print (distutils.sysconfig.get_python_inc (plat_specific=1));"`
  10.162 +		if test -n "${python_path}"; then
  10.163 +			if test "${plat_python_path}" != "${python_path}"; then
  10.164 +				python_path="-I$python_path -I$plat_python_path"
  10.165 +			else
  10.166 +				python_path="-I$python_path"
  10.167 +			fi
  10.168 +		fi
  10.169 +		PYTHON_CPPFLAGS=$python_path
  10.170 +	fi
  10.171 +	AC_MSG_RESULT([$PYTHON_CPPFLAGS])
  10.172 +	AC_SUBST([PYTHON_CPPFLAGS])
  10.173 +
  10.174 +	#
  10.175 +	# Check for Python library path
  10.176 +	#
  10.177 +	AC_MSG_CHECKING([for Python library path])
  10.178 +	if test -z "$PYTHON_LIBS"; then
  10.179 +		# (makes two attempts to ensure we've got a version number
  10.180 +		# from the interpreter)
  10.181 +		ac_python_version=`cat<<EOD | $PYTHON -
  10.182 +
  10.183 +# join all versioning strings, on some systems
  10.184 +# major/minor numbers could be in different list elements
  10.185 +from distutils.sysconfig import *
  10.186 +e = get_config_var('VERSION')
  10.187 +if e is not None:
  10.188 +	print(e)
  10.189 +EOD`
  10.190 +
  10.191 +		if test -z "$ac_python_version"; then
  10.192 +			if test -n "$PYTHON_VERSION"; then
  10.193 +				ac_python_version=$PYTHON_VERSION
  10.194 +			else
  10.195 +				ac_python_version=`$PYTHON -c "import sys; \
  10.196 +					print (sys.version[[:3]])"`
  10.197 +			fi
  10.198 +		fi
  10.199 +
  10.200 +		# Make the versioning information available to the compiler
  10.201 +		AC_DEFINE_UNQUOTED([HAVE_PYTHON], ["$ac_python_version"],
  10.202 +                                   [If available, contains the Python version number currently in use.])
  10.203 +
  10.204 +		# First, the library directory:
  10.205 +		ac_python_libdir=`cat<<EOD | $PYTHON -
  10.206 +
  10.207 +# There should be only one
  10.208 +import distutils.sysconfig
  10.209 +e = distutils.sysconfig.get_config_var('LIBDIR')
  10.210 +if e is not None:
  10.211 +	print (e)
  10.212 +EOD`
  10.213 +
  10.214 +		# Now, for the library:
  10.215 +		ac_python_library=`cat<<EOD | $PYTHON -
  10.216 +
  10.217 +import distutils.sysconfig
  10.218 +c = distutils.sysconfig.get_config_vars()
  10.219 +if 'LDVERSION' in c:
  10.220 +	print ('python'+c[['LDVERSION']])
  10.221 +else:
  10.222 +	print ('python'+c[['VERSION']])
  10.223 +EOD`
  10.224 +
  10.225 +		# This small piece shamelessly adapted from PostgreSQL python macro;
  10.226 +		# credits goes to momjian, I think. I'd like to put the right name
  10.227 +		# in the credits, if someone can point me in the right direction... ?
  10.228 +		#
  10.229 +		if test -n "$ac_python_libdir" -a -n "$ac_python_library"
  10.230 +		then
  10.231 +			# use the official shared library
  10.232 +			ac_python_library=`echo "$ac_python_library" | sed "s/^lib//"`
  10.233 +			PYTHON_LIBS="-L$ac_python_libdir -l$ac_python_library"
  10.234 +		else
  10.235 +			# old way: use libpython from python_configdir
  10.236 +			ac_python_libdir=`$PYTHON -c \
  10.237 +			  "from distutils.sysconfig import get_python_lib as f; \
  10.238 +			  import os; \
  10.239 +			  print (os.path.join(f(plat_specific=1, standard_lib=1), 'config'));"`
  10.240 +			PYTHON_LIBS="-L$ac_python_libdir -lpython$ac_python_version"
  10.241 +		fi
  10.242 +
  10.243 +		if test -z "PYTHON_LIBS"; then
  10.244 +			AC_MSG_ERROR([
  10.245 +  Cannot determine location of your Python DSO. Please check it was installed with
  10.246 +  dynamic libraries enabled, or try setting PYTHON_LIBS by hand.
  10.247 +			])
  10.248 +		fi
  10.249 +	fi
  10.250 +	AC_MSG_RESULT([$PYTHON_LIBS])
  10.251 +	AC_SUBST([PYTHON_LIBS])
  10.252 +
  10.253 +	#
  10.254 +	# Check for site packages
  10.255 +	#
  10.256 +	AC_MSG_CHECKING([for Python site-packages path])
  10.257 +	if test -z "$PYTHON_SITE_PKG"; then
  10.258 +		PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
  10.259 +			print (distutils.sysconfig.get_python_lib(0,0));"`
  10.260 +	fi
  10.261 +	AC_MSG_RESULT([$PYTHON_SITE_PKG])
  10.262 +	AC_SUBST([PYTHON_SITE_PKG])
  10.263 +
  10.264 +	#
  10.265 +	# libraries which must be linked in when embedding
  10.266 +	#
  10.267 +	AC_MSG_CHECKING(python extra libraries)
  10.268 +	if test -z "$PYTHON_EXTRA_LIBS"; then
  10.269 +	   PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \
  10.270 +                conf = distutils.sysconfig.get_config_var; \
  10.271 +                print (conf('LIBS') + ' ' + conf('SYSLIBS'))"`
  10.272 +	fi
  10.273 +	AC_MSG_RESULT([$PYTHON_EXTRA_LIBS])
  10.274 +	AC_SUBST(PYTHON_EXTRA_LIBS)
  10.275 +
  10.276 +	#
  10.277 +	# linking flags needed when embedding
  10.278 +	#
  10.279 +	AC_MSG_CHECKING(python extra linking flags)
  10.280 +	if test -z "$PYTHON_EXTRA_LDFLAGS"; then
  10.281 +		PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \
  10.282 +			conf = distutils.sysconfig.get_config_var; \
  10.283 +			print (conf('LINKFORSHARED'))"`
  10.284 +	fi
  10.285 +	AC_MSG_RESULT([$PYTHON_EXTRA_LDFLAGS])
  10.286 +	AC_SUBST(PYTHON_EXTRA_LDFLAGS)
  10.287 +
  10.288 +	#
  10.289 +	# final check to see if everything compiles alright
  10.290 +	#
  10.291 +	AC_MSG_CHECKING([consistency of all components of python development environment])
  10.292 +	# save current global flags
  10.293 +	ac_save_LIBS="$LIBS"
  10.294 +	ac_save_LDFLAGS="$LDFLAGS"
  10.295 +	ac_save_CPPFLAGS="$CPPFLAGS"
  10.296 +	LIBS="$ac_save_LIBS $PYTHON_LIBS $PYTHON_EXTRA_LIBS $PYTHON_EXTRA_LIBS"
  10.297 +	LDFLAGS="$ac_save_LDFLAGS $PYTHON_EXTRA_LDFLAGS"
  10.298 +	CPPFLAGS="$ac_save_CPPFLAGS $PYTHON_CPPFLAGS"
  10.299 +	AC_LANG_PUSH([C])
  10.300 +	AC_LINK_IFELSE([
  10.301 +		AC_LANG_PROGRAM([[#include <Python.h>]],
  10.302 +				[[Py_Initialize();]])
  10.303 +		],[pythonexists=yes],[pythonexists=no])
  10.304 +	AC_LANG_POP([C])
  10.305 +	# turn back to default flags
  10.306 +	CPPFLAGS="$ac_save_CPPFLAGS"
  10.307 +	LIBS="$ac_save_LIBS"
  10.308 +	LDFLAGS="$ac_save_LDFLAGS"
  10.309 +
  10.310 +	AC_MSG_RESULT([$pythonexists])
  10.311 +
  10.312 +        if test ! "x$pythonexists" = "xyes"; then
  10.313 +	   AC_MSG_FAILURE([
  10.314 +  Could not link test program to Python. Maybe the main Python library has been
  10.315 +  installed in some non-standard library path. If so, pass it to configure,
  10.316 +  via the LIBS environment variable.
  10.317 +  Example: ./configure LIBS="-L/usr/non-standard-path/python/lib"
  10.318 +  ============================================================================
  10.319 +   ERROR!
  10.320 +   You probably have to install the development version of the Python package
  10.321 +   for your distribution.  The exact name of this package varies among them.
  10.322 +  ============================================================================
  10.323 +	   ])
  10.324 +	  PYTHON_VERSION=""
  10.325 +	fi
  10.326 +
  10.327 +	#
  10.328 +	# all done!
  10.329 +	#
  10.330 +])
    11.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    11.2 +++ b/m4/libtool.m4	Wed Aug 01 08:15:34 2018 -0700
    11.3 @@ -0,0 +1,7360 @@
    11.4 +# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
    11.5 +#
    11.6 +#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
    11.7 +#                 2006, 2007, 2008 Free Software Foundation, Inc.
    11.8 +#   Written by Gordon Matzigkeit, 1996
    11.9 +#
   11.10 +# This file is free software; the Free Software Foundation gives
   11.11 +# unlimited permission to copy and/or distribute it, with or without
   11.12 +# modifications, as long as this notice is preserved.
   11.13 +
   11.14 +m4_define([_LT_COPYING], [dnl
   11.15 +#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
   11.16 +#                 2006, 2007, 2008 Free Software Foundation, Inc.
   11.17 +#   Written by Gordon Matzigkeit, 1996
   11.18 +#
   11.19 +#   This file is part of GNU Libtool.
   11.20 +#
   11.21 +# GNU Libtool is free software; you can redistribute it and/or
   11.22 +# modify it under the terms of the GNU General Public License as
   11.23 +# published by the Free Software Foundation; either version 2 of
   11.24 +# the License, or (at your option) any later version.
   11.25 +#
   11.26 +# As a special exception to the GNU General Public License,
   11.27 +# if you distribute this file as part of a program or library that
   11.28 +# is built using GNU Libtool, you may include this file under the
   11.29 +# same distribution terms that you use for the rest of that program.
   11.30 +#
   11.31 +# GNU Libtool is distributed in the hope that it will be useful,
   11.32 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
   11.33 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   11.34 +# GNU General Public License for more details.
   11.35 +#
   11.36 +# You should have received a copy of the GNU General Public License
   11.37 +# along with GNU Libtool; see the file COPYING.  If not, a copy
   11.38 +# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
   11.39 +# obtained by writing to the Free Software Foundation, Inc.,
   11.40 +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
   11.41 +])
   11.42 +
   11.43 +# serial 56 LT_INIT
   11.44 +
   11.45 +
   11.46 +# LT_PREREQ(VERSION)
   11.47 +# ------------------
   11.48 +# Complain and exit if this libtool version is less that VERSION.
   11.49 +m4_defun([LT_PREREQ],
   11.50 +[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
   11.51 +       [m4_default([$3],
   11.52 +		   [m4_fatal([Libtool version $1 or higher is required],
   11.53 +		             63)])],
   11.54 +       [$2])])
   11.55 +
   11.56 +
   11.57 +# _LT_CHECK_BUILDDIR
   11.58 +# ------------------
   11.59 +# Complain if the absolute build directory name contains unusual characters
   11.60 +m4_defun([_LT_CHECK_BUILDDIR],
   11.61 +[case `pwd` in
   11.62 +  *\ * | *\	*)
   11.63 +    AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
   11.64 +esac
   11.65 +])
   11.66 +
   11.67 +
   11.68 +# LT_INIT([OPTIONS])
   11.69 +# ------------------
   11.70 +AC_DEFUN([LT_INIT],
   11.71 +[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
   11.72 +AC_BEFORE([$0], [LT_LANG])dnl
   11.73 +AC_BEFORE([$0], [LT_OUTPUT])dnl
   11.74 +AC_BEFORE([$0], [LTDL_INIT])dnl
   11.75 +m4_require([_LT_CHECK_BUILDDIR])dnl
   11.76 +
   11.77 +dnl Autoconf doesn't catch unexpanded LT_ macros by default:
   11.78 +m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
   11.79 +m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
   11.80 +dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
   11.81 +dnl unless we require an AC_DEFUNed macro:
   11.82 +AC_REQUIRE([LTOPTIONS_VERSION])dnl
   11.83 +AC_REQUIRE([LTSUGAR_VERSION])dnl
   11.84 +AC_REQUIRE([LTVERSION_VERSION])dnl
   11.85 +AC_REQUIRE([LTOBSOLETE_VERSION])dnl
   11.86 +m4_require([_LT_PROG_LTMAIN])dnl
   11.87 +
   11.88 +dnl Parse OPTIONS
   11.89 +_LT_SET_OPTIONS([$0], [$1])
   11.90 +
   11.91 +# This can be used to rebuild libtool when needed
   11.92 +LIBTOOL_DEPS="$ltmain"
   11.93 +
   11.94 +# Always use our own libtool.
   11.95 +LIBTOOL='$(SHELL) $(top_builddir)/libtool'
   11.96 +AC_SUBST(LIBTOOL)dnl
   11.97 +
   11.98 +_LT_SETUP
   11.99 +
  11.100 +# Only expand once:
  11.101 +m4_define([LT_INIT])
  11.102 +])# LT_INIT
  11.103 +
  11.104 +# Old names:
  11.105 +AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
  11.106 +AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
  11.107 +dnl aclocal-1.4 backwards compatibility:
  11.108 +dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
  11.109 +dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
  11.110 +
  11.111 +
  11.112 +# _LT_CC_BASENAME(CC)
  11.113 +# -------------------
  11.114 +# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
  11.115 +m4_defun([_LT_CC_BASENAME],
  11.116 +[for cc_temp in $1""; do
  11.117 +  case $cc_temp in
  11.118 +    compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
  11.119 +    distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
  11.120 +    \-*) ;;
  11.121 +    *) break;;
  11.122 +  esac
  11.123 +done
  11.124 +cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  11.125 +])
  11.126 +
  11.127 +
  11.128 +# _LT_FILEUTILS_DEFAULTS
  11.129 +# ----------------------
  11.130 +# It is okay to use these file commands and assume they have been set
  11.131 +# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
  11.132 +m4_defun([_LT_FILEUTILS_DEFAULTS],
  11.133 +[: ${CP="cp -f"}
  11.134 +: ${MV="mv -f"}
  11.135 +: ${RM="rm -f"}
  11.136 +])# _LT_FILEUTILS_DEFAULTS
  11.137 +
  11.138 +
  11.139 +# _LT_SETUP
  11.140 +# ---------
  11.141 +m4_defun([_LT_SETUP],
  11.142 +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  11.143 +AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  11.144 +_LT_DECL([], [host_alias], [0], [The host system])dnl
  11.145 +_LT_DECL([], [host], [0])dnl
  11.146 +_LT_DECL([], [host_os], [0])dnl
  11.147 +dnl
  11.148 +_LT_DECL([], [build_alias], [0], [The build system])dnl
  11.149 +_LT_DECL([], [build], [0])dnl
  11.150 +_LT_DECL([], [build_os], [0])dnl
  11.151 +dnl
  11.152 +AC_REQUIRE([AC_PROG_CC])dnl
  11.153 +AC_REQUIRE([LT_PATH_LD])dnl
  11.154 +AC_REQUIRE([LT_PATH_NM])dnl
  11.155 +dnl
  11.156 +AC_REQUIRE([AC_PROG_LN_S])dnl
  11.157 +test -z "$LN_S" && LN_S="ln -s"
  11.158 +_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
  11.159 +dnl
  11.160 +AC_REQUIRE([LT_CMD_MAX_LEN])dnl
  11.161 +_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
  11.162 +_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
  11.163 +dnl
  11.164 +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  11.165 +m4_require([_LT_CHECK_SHELL_FEATURES])dnl
  11.166 +m4_require([_LT_CMD_RELOAD])dnl
  11.167 +m4_require([_LT_CHECK_MAGIC_METHOD])dnl
  11.168 +m4_require([_LT_CMD_OLD_ARCHIVE])dnl
  11.169 +m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  11.170 +
  11.171 +_LT_CONFIG_LIBTOOL_INIT([
  11.172 +# See if we are running on zsh, and set the options which allow our
  11.173 +# commands through without removal of \ escapes INIT.
  11.174 +if test -n "\${ZSH_VERSION+set}" ; then
  11.175 +   setopt NO_GLOB_SUBST
  11.176 +fi
  11.177 +])
  11.178 +if test -n "${ZSH_VERSION+set}" ; then
  11.179 +   setopt NO_GLOB_SUBST
  11.180 +fi
  11.181 +
  11.182 +_LT_CHECK_OBJDIR
  11.183 +
  11.184 +m4_require([_LT_TAG_COMPILER])dnl
  11.185 +_LT_PROG_ECHO_BACKSLASH
  11.186 +
  11.187 +case $host_os in
  11.188 +aix3*)
  11.189 +  # AIX sometimes has problems with the GCC collect2 program.  For some
  11.190 +  # reason, if we set the COLLECT_NAMES environment variable, the problems
  11.191 +  # vanish in a puff of smoke.
  11.192 +  if test "X${COLLECT_NAMES+set}" != Xset; then
  11.193 +    COLLECT_NAMES=
  11.194 +    export COLLECT_NAMES
  11.195 +  fi
  11.196 +  ;;
  11.197 +esac
  11.198 +
  11.199 +# Sed substitution that helps us do robust quoting.  It backslashifies
  11.200 +# metacharacters that are still active within double-quoted strings.
  11.201 +sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
  11.202 +
  11.203 +# Same as above, but do not quote variable references.
  11.204 +double_quote_subst='s/\([["`\\]]\)/\\\1/g'
  11.205 +
  11.206 +# Sed substitution to delay expansion of an escaped shell variable in a
  11.207 +# double_quote_subst'ed string.
  11.208 +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  11.209 +
  11.210 +# Sed substitution to delay expansion of an escaped single quote.
  11.211 +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  11.212 +
  11.213 +# Sed substitution to avoid accidental globbing in evaled expressions
  11.214 +no_glob_subst='s/\*/\\\*/g'
  11.215 +
  11.216 +# Global variables:
  11.217 +ofile=libtool
  11.218 +can_build_shared=yes
  11.219 +
  11.220 +# All known linkers require a `.a' archive for static linking (except MSVC,
  11.221 +# which needs '.lib').
  11.222 +libext=a
  11.223 +
  11.224 +with_gnu_ld="$lt_cv_prog_gnu_ld"
  11.225 +
  11.226 +old_CC="$CC"
  11.227 +old_CFLAGS="$CFLAGS"
  11.228 +
  11.229 +# Set sane defaults for various variables
  11.230 +test -z "$CC" && CC=cc
  11.231 +test -z "$LTCC" && LTCC=$CC
  11.232 +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  11.233 +test -z "$LD" && LD=ld
  11.234 +test -z "$ac_objext" && ac_objext=o
  11.235 +
  11.236 +_LT_CC_BASENAME([$compiler])
  11.237 +
  11.238 +# Only perform the check for file, if the check method requires it
  11.239 +test -z "$MAGIC_CMD" && MAGIC_CMD=file
  11.240 +case $deplibs_check_method in
  11.241 +file_magic*)
  11.242 +  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  11.243 +    _LT_PATH_MAGIC
  11.244 +  fi
  11.245 +  ;;
  11.246 +esac
  11.247 +
  11.248 +# Use C for the default configuration in the libtool script
  11.249 +LT_SUPPORTED_TAG([CC])
  11.250 +_LT_LANG_C_CONFIG
  11.251 +_LT_LANG_DEFAULT_CONFIG
  11.252 +_LT_CONFIG_COMMANDS
  11.253 +])# _LT_SETUP
  11.254 +
  11.255 +
  11.256 +# _LT_PROG_LTMAIN
  11.257 +# ---------------
  11.258 +# Note that this code is called both from `configure', and `config.status'
  11.259 +# now that we use AC_CONFIG_COMMANDS to generate libtool.  Notably,
  11.260 +# `config.status' has no value for ac_aux_dir unless we are using Automake,
  11.261 +# so we pass a copy along to make sure it has a sensible value anyway.
  11.262 +m4_defun([_LT_PROG_LTMAIN],
  11.263 +[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
  11.264 +_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
  11.265 +ltmain="$ac_aux_dir/ltmain.sh"
  11.266 +])# _LT_PROG_LTMAIN
  11.267 +
  11.268 +
  11.269 +## ------------------------------------- ##
  11.270 +## Accumulate code for creating libtool. ##
  11.271 +## ------------------------------------- ##
  11.272 +
  11.273 +# So that we can recreate a full libtool script including additional
  11.274 +# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
  11.275 +# in macros and then make a single call at the end using the `libtool'
  11.276 +# label.
  11.277 +
  11.278 +
  11.279 +# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
  11.280 +# ----------------------------------------
  11.281 +# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  11.282 +m4_define([_LT_CONFIG_LIBTOOL_INIT],
  11.283 +[m4_ifval([$1],
  11.284 +          [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
  11.285 +                     [$1
  11.286 +])])])
  11.287 +
  11.288 +# Initialize.
  11.289 +m4_define([_LT_OUTPUT_LIBTOOL_INIT])
  11.290 +
  11.291 +
  11.292 +# _LT_CONFIG_LIBTOOL([COMMANDS])
  11.293 +# ------------------------------
  11.294 +# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  11.295 +m4_define([_LT_CONFIG_LIBTOOL],
  11.296 +[m4_ifval([$1],
  11.297 +          [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
  11.298 +                     [$1
  11.299 +])])])
  11.300 +
  11.301 +# Initialize.
  11.302 +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
  11.303 +
  11.304 +
  11.305 +# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
  11.306 +# -----------------------------------------------------
  11.307 +m4_defun([_LT_CONFIG_SAVE_COMMANDS],
  11.308 +[_LT_CONFIG_LIBTOOL([$1])
  11.309 +_LT_CONFIG_LIBTOOL_INIT([$2])
  11.310 +])
  11.311 +
  11.312 +
  11.313 +# _LT_FORMAT_COMMENT([COMMENT])
  11.314 +# -----------------------------
  11.315 +# Add leading comment marks to the start of each line, and a trailing
  11.316 +# full-stop to the whole comment if one is not present already.
  11.317 +m4_define([_LT_FORMAT_COMMENT],
  11.318 +[m4_ifval([$1], [
  11.319 +m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
  11.320 +              [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
  11.321 +)])
  11.322 +
  11.323 +
  11.324 +
  11.325 +## ------------------------ ##
  11.326 +## FIXME: Eliminate VARNAME ##
  11.327 +## ------------------------ ##
  11.328 +
  11.329 +
  11.330 +# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
  11.331 +# -------------------------------------------------------------------
  11.332 +# CONFIGNAME is the name given to the value in the libtool script.
  11.333 +# VARNAME is the (base) name used in the configure script.
  11.334 +# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
  11.335 +# VARNAME.  Any other value will be used directly.
  11.336 +m4_define([_LT_DECL],
  11.337 +[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
  11.338 +    [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
  11.339 +	[m4_ifval([$1], [$1], [$2])])
  11.340 +    lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
  11.341 +    m4_ifval([$4],
  11.342 +	[lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
  11.343 +    lt_dict_add_subkey([lt_decl_dict], [$2],
  11.344 +	[tagged?], [m4_ifval([$5], [yes], [no])])])
  11.345 +])
  11.346 +
  11.347 +
  11.348 +# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
  11.349 +# --------------------------------------------------------
  11.350 +m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
  11.351 +
  11.352 +
  11.353 +# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
  11.354 +# ------------------------------------------------
  11.355 +m4_define([lt_decl_tag_varnames],
  11.356 +[_lt_decl_filter([tagged?], [yes], $@)])
  11.357 +
  11.358 +
  11.359 +# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
  11.360 +# ---------------------------------------------------------
  11.361 +m4_define([_lt_decl_filter],
  11.362 +[m4_case([$#],
  11.363 +  [0], [m4_fatal([$0: too few arguments: $#])],
  11.364 +  [1], [m4_fatal([$0: too few arguments: $#: $1])],
  11.365 +  [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
  11.366 +  [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
  11.367 +  [lt_dict_filter([lt_decl_dict], $@)])[]dnl
  11.368 +])
  11.369 +
  11.370 +
  11.371 +# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
  11.372 +# --------------------------------------------------
  11.373 +m4_define([lt_decl_quote_varnames],
  11.374 +[_lt_decl_filter([value], [1], $@)])
  11.375 +
  11.376 +
  11.377 +# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
  11.378 +# ---------------------------------------------------
  11.379 +m4_define([lt_decl_dquote_varnames],
  11.380 +[_lt_decl_filter([value], [2], $@)])
  11.381 +
  11.382 +
  11.383 +# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
  11.384 +# ---------------------------------------------------
  11.385 +m4_define([lt_decl_varnames_tagged],
  11.386 +[m4_assert([$# <= 2])dnl
  11.387 +_$0(m4_quote(m4_default([$1], [[, ]])),
  11.388 +    m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
  11.389 +    m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
  11.390 +m4_define([_lt_decl_varnames_tagged],
  11.391 +[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
  11.392 +
  11.393 +
  11.394 +# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
  11.395 +# ------------------------------------------------
  11.396 +m4_define([lt_decl_all_varnames],
  11.397 +[_$0(m4_quote(m4_default([$1], [[, ]])),
  11.398 +     m4_if([$2], [],
  11.399 +	   m4_quote(lt_decl_varnames),
  11.400 +	m4_quote(m4_shift($@))))[]dnl
  11.401 +])
  11.402 +m4_define([_lt_decl_all_varnames],
  11.403 +[lt_join($@, lt_decl_varnames_tagged([$1],
  11.404 +			lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
  11.405 +])
  11.406 +
  11.407 +
  11.408 +# _LT_CONFIG_STATUS_DECLARE([VARNAME])
  11.409 +# ------------------------------------
  11.410 +# Quote a variable value, and forward it to `config.status' so that its
  11.411 +# declaration there will have the same value as in `configure'.  VARNAME
  11.412 +# must have a single quote delimited value for this to work.
  11.413 +m4_define([_LT_CONFIG_STATUS_DECLARE],
  11.414 +[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
  11.415 +
  11.416 +
  11.417 +# _LT_CONFIG_STATUS_DECLARATIONS
  11.418 +# ------------------------------
  11.419 +# We delimit libtool config variables with single quotes, so when
  11.420 +# we write them to config.status, we have to be sure to quote all
  11.421 +# embedded single quotes properly.  In configure, this macro expands
  11.422 +# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
  11.423 +#
  11.424 +#    <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
  11.425 +m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
  11.426 +[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
  11.427 +    [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
  11.428 +
  11.429 +
  11.430 +# _LT_LIBTOOL_TAGS
  11.431 +# ----------------
  11.432 +# Output comment and list of tags supported by the script
  11.433 +m4_defun([_LT_LIBTOOL_TAGS],
  11.434 +[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
  11.435 +available_tags="_LT_TAGS"dnl
  11.436 +])
  11.437 +
  11.438 +
  11.439 +# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
  11.440 +# -----------------------------------
  11.441 +# Extract the dictionary values for VARNAME (optionally with TAG) and
  11.442 +# expand to a commented shell variable setting:
  11.443 +#
  11.444 +#    # Some comment about what VAR is for.
  11.445 +#    visible_name=$lt_internal_name
  11.446 +m4_define([_LT_LIBTOOL_DECLARE],
  11.447 +[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
  11.448 +					   [description])))[]dnl
  11.449 +m4_pushdef([_libtool_name],
  11.450 +    m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
  11.451 +m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
  11.452 +    [0], [_libtool_name=[$]$1],
  11.453 +    [1], [_libtool_name=$lt_[]$1],
  11.454 +    [2], [_libtool_name=$lt_[]$1],
  11.455 +    [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
  11.456 +m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
  11.457 +])
  11.458 +
  11.459 +
  11.460 +# _LT_LIBTOOL_CONFIG_VARS
  11.461 +# -----------------------
  11.462 +# Produce commented declarations of non-tagged libtool config variables
  11.463 +# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
  11.464 +# script.  Tagged libtool config variables (even for the LIBTOOL CONFIG
  11.465 +# section) are produced by _LT_LIBTOOL_TAG_VARS.
  11.466 +m4_defun([_LT_LIBTOOL_CONFIG_VARS],
  11.467 +[m4_foreach([_lt_var],
  11.468 +    m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
  11.469 +    [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
  11.470 +
  11.471 +
  11.472 +# _LT_LIBTOOL_TAG_VARS(TAG)
  11.473 +# -------------------------
  11.474 +m4_define([_LT_LIBTOOL_TAG_VARS],
  11.475 +[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
  11.476 +    [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
  11.477 +
  11.478 +
  11.479 +# _LT_TAGVAR(VARNAME, [TAGNAME])
  11.480 +# ------------------------------
  11.481 +m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
  11.482 +
  11.483 +
  11.484 +# _LT_CONFIG_COMMANDS
  11.485 +# -------------------
  11.486 +# Send accumulated output to $CONFIG_STATUS.  Thanks to the lists of
  11.487 +# variables for single and double quote escaping we saved from calls
  11.488 +# to _LT_DECL, we can put quote escaped variables declarations
  11.489 +# into `config.status', and then the shell code to quote escape them in
  11.490 +# for loops in `config.status'.  Finally, any additional code accumulated
  11.491 +# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
  11.492 +m4_defun([_LT_CONFIG_COMMANDS],
  11.493 +[AC_PROVIDE_IFELSE([LT_OUTPUT],
  11.494 +	dnl If the libtool generation code has been placed in $CONFIG_LT,
  11.495 +	dnl instead of duplicating it all over again into config.status,
  11.496 +	dnl then we will have config.status run $CONFIG_LT later, so it
  11.497 +	dnl needs to know what name is stored there:
  11.498 +        [AC_CONFIG_COMMANDS([libtool],
  11.499 +            [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
  11.500 +    dnl If the libtool generation code is destined for config.status,
  11.501 +    dnl expand the accumulated commands and init code now:
  11.502 +    [AC_CONFIG_COMMANDS([libtool],
  11.503 +        [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
  11.504 +])#_LT_CONFIG_COMMANDS
  11.505 +
  11.506 +
  11.507 +# Initialize.
  11.508 +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
  11.509 +[
  11.510 +
  11.511 +# The HP-UX ksh and POSIX shell print the target directory to stdout
  11.512 +# if CDPATH is set.
  11.513 +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  11.514 +
  11.515 +sed_quote_subst='$sed_quote_subst'
  11.516 +double_quote_subst='$double_quote_subst'
  11.517 +delay_variable_subst='$delay_variable_subst'
  11.518 +_LT_CONFIG_STATUS_DECLARATIONS
  11.519 +LTCC='$LTCC'
  11.520 +LTCFLAGS='$LTCFLAGS'
  11.521 +compiler='$compiler_DEFAULT'
  11.522 +
  11.523 +# Quote evaled strings.
  11.524 +for var in lt_decl_all_varnames([[ \
  11.525 +]], lt_decl_quote_varnames); do
  11.526 +    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  11.527 +    *[[\\\\\\\`\\"\\\$]]*)
  11.528 +      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  11.529 +      ;;
  11.530 +    *)
  11.531 +      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  11.532 +      ;;
  11.533 +    esac
  11.534 +done
  11.535 +
  11.536 +# Double-quote double-evaled strings.
  11.537 +for var in lt_decl_all_varnames([[ \
  11.538 +]], lt_decl_dquote_varnames); do
  11.539 +    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  11.540 +    *[[\\\\\\\`\\"\\\$]]*)
  11.541 +      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  11.542 +      ;;
  11.543 +    *)
  11.544 +      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  11.545 +      ;;
  11.546 +    esac
  11.547 +done
  11.548 +
  11.549 +# Fix-up fallback echo if it was mangled by the above quoting rules.
  11.550 +case \$lt_ECHO in
  11.551 +*'\\\[$]0 --fallback-echo"')dnl "
  11.552 +  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
  11.553 +  ;;
  11.554 +esac
  11.555 +
  11.556 +_LT_OUTPUT_LIBTOOL_INIT
  11.557 +])
  11.558 +
  11.559 +
  11.560 +# LT_OUTPUT
  11.561 +# ---------
  11.562 +# This macro allows early generation of the libtool script (before
  11.563 +# AC_OUTPUT is called), incase it is used in configure for compilation
  11.564 +# tests.
  11.565 +AC_DEFUN([LT_OUTPUT],
  11.566 +[: ${CONFIG_LT=./config.lt}
  11.567 +AC_MSG_NOTICE([creating $CONFIG_LT])
  11.568 +cat >"$CONFIG_LT" <<_LTEOF
  11.569 +#! $SHELL
  11.570 +# Generated by $as_me.
  11.571 +# Run this file to recreate a libtool stub with the current configuration.
  11.572 +
  11.573 +lt_cl_silent=false
  11.574 +SHELL=\${CONFIG_SHELL-$SHELL}
  11.575 +_LTEOF
  11.576 +
  11.577 +cat >>"$CONFIG_LT" <<\_LTEOF
  11.578 +AS_SHELL_SANITIZE
  11.579 +_AS_PREPARE
  11.580 +
  11.581 +exec AS_MESSAGE_FD>&1
  11.582 +exec AS_MESSAGE_LOG_FD>>config.log
  11.583 +{
  11.584 +  echo
  11.585 +  AS_BOX([Running $as_me.])
  11.586 +} >&AS_MESSAGE_LOG_FD
  11.587 +
  11.588 +lt_cl_help="\
  11.589 +\`$as_me' creates a local libtool stub from the current configuration,
  11.590 +for use in further configure time tests before the real libtool is
  11.591 +generated.
  11.592 +
  11.593 +Usage: $[0] [[OPTIONS]]
  11.594 +
  11.595 +  -h, --help      print this help, then exit
  11.596 +  -V, --version   print version number, then exit
  11.597 +  -q, --quiet     do not print progress messages
  11.598 +  -d, --debug     don't remove temporary files
  11.599 +
  11.600 +Report bugs to <bug-libtool@gnu.org>."
  11.601 +
  11.602 +lt_cl_version="\
  11.603 +m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
  11.604 +m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
  11.605 +configured by $[0], generated by m4_PACKAGE_STRING.
  11.606 +
  11.607 +Copyright (C) 2008 Free Software Foundation, Inc.
  11.608 +This config.lt script is free software; the Free Software Foundation
  11.609 +gives unlimited permision to copy, distribute and modify it."
  11.610 +
  11.611 +while test $[#] != 0
  11.612 +do
  11.613 +  case $[1] in
  11.614 +    --version | --v* | -V )
  11.615 +      echo "$lt_cl_version"; exit 0 ;;
  11.616 +    --help | --h* | -h )
  11.617 +      echo "$lt_cl_help"; exit 0 ;;
  11.618 +    --debug | --d* | -d )
  11.619 +      debug=: ;;
  11.620 +    --quiet | --q* | --silent | --s* | -q )
  11.621 +      lt_cl_silent=: ;;
  11.622 +
  11.623 +    -*) AC_MSG_ERROR([unrecognized option: $[1]
  11.624 +Try \`$[0] --help' for more information.]) ;;
  11.625 +
  11.626 +    *) AC_MSG_ERROR([unrecognized argument: $[1]
  11.627 +Try \`$[0] --help' for more information.]) ;;
  11.628 +  esac
  11.629 +  shift
  11.630 +done
  11.631 +
  11.632 +if $lt_cl_silent; then
  11.633 +  exec AS_MESSAGE_FD>/dev/null
  11.634 +fi
  11.635 +_LTEOF
  11.636 +
  11.637 +cat >>"$CONFIG_LT" <<_LTEOF
  11.638 +_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
  11.639 +_LTEOF
  11.640 +
  11.641 +cat >>"$CONFIG_LT" <<\_LTEOF
  11.642 +AC_MSG_NOTICE([creating $ofile])
  11.643 +_LT_OUTPUT_LIBTOOL_COMMANDS
  11.644 +AS_EXIT(0)
  11.645 +_LTEOF
  11.646 +chmod +x "$CONFIG_LT"
  11.647 +
  11.648 +# configure is writing to config.log, but config.lt does its own redirection,
  11.649 +# appending to config.log, which fails on DOS, as config.log is still kept
  11.650 +# open by configure.  Here we exec the FD to /dev/null, effectively closing
  11.651 +# config.log, so it can be properly (re)opened and appended to by config.lt.
  11.652 +if test "$no_create" != yes; then
  11.653 +  lt_cl_success=:
  11.654 +  test "$silent" = yes &&
  11.655 +    lt_config_lt_args="$lt_config_lt_args --quiet"
  11.656 +  exec AS_MESSAGE_LOG_FD>/dev/null
  11.657 +  $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
  11.658 +  exec AS_MESSAGE_LOG_FD>>config.log
  11.659 +  $lt_cl_success || AS_EXIT(1)
  11.660 +fi
  11.661 +])# LT_OUTPUT
  11.662 +
  11.663 +
  11.664 +# _LT_CONFIG(TAG)
  11.665 +# ---------------
  11.666 +# If TAG is the built-in tag, create an initial libtool script with a
  11.667 +# default configuration from the untagged config vars.  Otherwise add code
  11.668 +# to config.status for appending the configuration named by TAG from the
  11.669 +# matching tagged config vars.
  11.670 +m4_defun([_LT_CONFIG],
  11.671 +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  11.672 +_LT_CONFIG_SAVE_COMMANDS([
  11.673 +  m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
  11.674 +  m4_if(_LT_TAG, [C], [
  11.675 +    # See if we are running on zsh, and set the options which allow our
  11.676 +    # commands through without removal of \ escapes.
  11.677 +    if test -n "${ZSH_VERSION+set}" ; then
  11.678 +      setopt NO_GLOB_SUBST
  11.679 +    fi
  11.680 +
  11.681 +    cfgfile="${ofile}T"
  11.682 +    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  11.683 +    $RM "$cfgfile"
  11.684 +
  11.685 +    cat <<_LT_EOF >> "$cfgfile"
  11.686 +#! $SHELL
  11.687 +
  11.688 +# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  11.689 +# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  11.690 +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  11.691 +# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  11.692 +#
  11.693 +_LT_COPYING
  11.694 +_LT_LIBTOOL_TAGS
  11.695 +
  11.696 +# ### BEGIN LIBTOOL CONFIG
  11.697 +_LT_LIBTOOL_CONFIG_VARS
  11.698 +_LT_LIBTOOL_TAG_VARS
  11.699 +# ### END LIBTOOL CONFIG
  11.700 +
  11.701 +_LT_EOF
  11.702 +
  11.703 +  case $host_os in
  11.704 +  aix3*)
  11.705 +    cat <<\_LT_EOF >> "$cfgfile"
  11.706 +# AIX sometimes has problems with the GCC collect2 program.  For some
  11.707 +# reason, if we set the COLLECT_NAMES environment variable, the problems
  11.708 +# vanish in a puff of smoke.
  11.709 +if test "X${COLLECT_NAMES+set}" != Xset; then
  11.710 +  COLLECT_NAMES=
  11.711 +  export COLLECT_NAMES
  11.712 +fi
  11.713 +_LT_EOF
  11.714 +    ;;
  11.715 +  esac
  11.716 +
  11.717 +  _LT_PROG_LTMAIN
  11.718 +
  11.719 +  # We use sed instead of cat because bash on DJGPP gets confused if
  11.720 +  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
  11.721 +  # text mode, it properly converts lines to CR/LF.  This bash problem
  11.722 +  # is reportedly fixed, but why not run on old versions too?
  11.723 +  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  11.724 +    || (rm -f "$cfgfile"; exit 1)
  11.725 +
  11.726 +  _LT_PROG_XSI_SHELLFNS
  11.727 +
  11.728 +  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  11.729 +    || (rm -f "$cfgfile"; exit 1)
  11.730 +
  11.731 +  mv -f "$cfgfile" "$ofile" ||
  11.732 +    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  11.733 +  chmod +x "$ofile"
  11.734 +],
  11.735 +[cat <<_LT_EOF >> "$ofile"
  11.736 +
  11.737 +dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
  11.738 +dnl in a comment (ie after a #).
  11.739 +# ### BEGIN LIBTOOL TAG CONFIG: $1
  11.740 +_LT_LIBTOOL_TAG_VARS(_LT_TAG)
  11.741 +# ### END LIBTOOL TAG CONFIG: $1
  11.742 +_LT_EOF
  11.743 +])dnl /m4_if
  11.744 +],
  11.745 +[m4_if([$1], [], [
  11.746 +    PACKAGE='$PACKAGE'
  11.747 +    VERSION='$VERSION'
  11.748 +    TIMESTAMP='$TIMESTAMP'
  11.749 +    RM='$RM'
  11.750 +    ofile='$ofile'], [])
  11.751 +])dnl /_LT_CONFIG_SAVE_COMMANDS
  11.752 +])# _LT_CONFIG
  11.753 +
  11.754 +
  11.755 +# LT_SUPPORTED_TAG(TAG)
  11.756 +# ---------------------
  11.757 +# Trace this macro to discover what tags are supported by the libtool
  11.758 +# --tag option, using:
  11.759 +#    autoconf --trace 'LT_SUPPORTED_TAG:$1'
  11.760 +AC_DEFUN([LT_SUPPORTED_TAG], [])
  11.761 +
  11.762 +
  11.763 +# C support is built-in for now
  11.764 +m4_define([_LT_LANG_C_enabled], [])
  11.765 +m4_define([_LT_TAGS], [])
  11.766 +
  11.767 +
  11.768 +# LT_LANG(LANG)
  11.769 +# -------------
  11.770 +# Enable libtool support for the given language if not already enabled.
  11.771 +AC_DEFUN([LT_LANG],
  11.772 +[AC_BEFORE([$0], [LT_OUTPUT])dnl
  11.773 +m4_case([$1],
  11.774 +  [C],			[_LT_LANG(C)],
  11.775 +  [C++],		[_LT_LANG(CXX)],
  11.776 +  [Java],		[_LT_LANG(GCJ)],
  11.777 +  [Fortran 77],		[_LT_LANG(F77)],
  11.778 +  [Fortran],		[_LT_LANG(FC)],
  11.779 +  [Windows Resource],	[_LT_LANG(RC)],
  11.780 +  [m4_ifdef([_LT_LANG_]$1[_CONFIG],
  11.781 +    [_LT_LANG($1)],
  11.782 +    [m4_fatal([$0: unsupported language: "$1"])])])dnl
  11.783 +])# LT_LANG
  11.784 +
  11.785 +
  11.786 +# _LT_LANG(LANGNAME)
  11.787 +# ------------------
  11.788 +m4_defun([_LT_LANG],
  11.789 +[m4_ifdef([_LT_LANG_]$1[_enabled], [],
  11.790 +  [LT_SUPPORTED_TAG([$1])dnl
  11.791 +  m4_append([_LT_TAGS], [$1 ])dnl
  11.792 +  m4_define([_LT_LANG_]$1[_enabled], [])dnl
  11.793 +  _LT_LANG_$1_CONFIG($1)])dnl
  11.794 +])# _LT_LANG
  11.795 +
  11.796 +
  11.797 +# _LT_LANG_DEFAULT_CONFIG
  11.798 +# -----------------------
  11.799 +m4_defun([_LT_LANG_DEFAULT_CONFIG],
  11.800 +[AC_PROVIDE_IFELSE([AC_PROG_CXX],
  11.801 +  [LT_LANG(CXX)],
  11.802 +  [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
  11.803 +
  11.804 +AC_PROVIDE_IFELSE([AC_PROG_F77],
  11.805 +  [LT_LANG(F77)],
  11.806 +  [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
  11.807 +
  11.808 +AC_PROVIDE_IFELSE([AC_PROG_FC],
  11.809 +  [LT_LANG(FC)],
  11.810 +  [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
  11.811 +
  11.812 +dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
  11.813 +dnl pulling things in needlessly.
  11.814 +AC_PROVIDE_IFELSE([AC_PROG_GCJ],
  11.815 +  [LT_LANG(GCJ)],
  11.816 +  [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
  11.817 +    [LT_LANG(GCJ)],
  11.818 +    [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
  11.819 +      [LT_LANG(GCJ)],
  11.820 +      [m4_ifdef([AC_PROG_GCJ],
  11.821 +	[m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
  11.822 +       m4_ifdef([A][M_PROG_GCJ],
  11.823 +	[m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
  11.824 +       m4_ifdef([LT_PROG_GCJ],
  11.825 +	[m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
  11.826 +
  11.827 +AC_PROVIDE_IFELSE([LT_PROG_RC],
  11.828 +  [LT_LANG(RC)],
  11.829 +  [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
  11.830 +])# _LT_LANG_DEFAULT_CONFIG
  11.831 +
  11.832 +# Obsolete macros:
  11.833 +AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
  11.834 +AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
  11.835 +AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
  11.836 +AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
  11.837 +dnl aclocal-1.4 backwards compatibility:
  11.838 +dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
  11.839 +dnl AC_DEFUN([AC_LIBTOOL_F77], [])
  11.840 +dnl AC_DEFUN([AC_LIBTOOL_FC], [])
  11.841 +dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
  11.842 +
  11.843 +
  11.844 +# _LT_TAG_COMPILER
  11.845 +# ----------------
  11.846 +m4_defun([_LT_TAG_COMPILER],
  11.847 +[AC_REQUIRE([AC_PROG_CC])dnl
  11.848 +
  11.849 +_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
  11.850 +_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
  11.851 +_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
  11.852 +_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
  11.853 +
  11.854 +# If no C compiler was specified, use CC.
  11.855 +LTCC=${LTCC-"$CC"}
  11.856 +
  11.857 +# If no C compiler flags were specified, use CFLAGS.
  11.858 +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  11.859 +
  11.860 +# Allow CC to be a program name with arguments.
  11.861 +compiler=$CC
  11.862 +])# _LT_TAG_COMPILER
  11.863 +
  11.864 +
  11.865 +# _LT_COMPILER_BOILERPLATE
  11.866 +# ------------------------
  11.867 +# Check for compiler boilerplate output or warnings with
  11.868 +# the simple compiler test code.
  11.869 +m4_defun([_LT_COMPILER_BOILERPLATE],
  11.870 +[m4_require([_LT_DECL_SED])dnl
  11.871 +ac_outfile=conftest.$ac_objext
  11.872 +echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  11.873 +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11.874 +_lt_compiler_boilerplate=`cat conftest.err`
  11.875 +$RM conftest*
  11.876 +])# _LT_COMPILER_BOILERPLATE
  11.877 +
  11.878 +
  11.879 +# _LT_LINKER_BOILERPLATE
  11.880 +# ----------------------
  11.881 +# Check for linker boilerplate output or warnings with
  11.882 +# the simple link test code.
  11.883 +m4_defun([_LT_LINKER_BOILERPLATE],
  11.884 +[m4_require([_LT_DECL_SED])dnl
  11.885 +ac_outfile=conftest.$ac_objext
  11.886 +echo "$lt_simple_link_test_code" >conftest.$ac_ext
  11.887 +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11.888 +_lt_linker_boilerplate=`cat conftest.err`
  11.889 +$RM -r conftest*
  11.890 +])# _LT_LINKER_BOILERPLATE
  11.891 +
  11.892 +# _LT_REQUIRED_DARWIN_CHECKS
  11.893 +# -------------------------
  11.894 +m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
  11.895 +  case $host_os in
  11.896 +    rhapsody* | darwin*)
  11.897 +    AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
  11.898 +    AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
  11.899 +    AC_CHECK_TOOL([LIPO], [lipo], [:])
  11.900 +    AC_CHECK_TOOL([OTOOL], [otool], [:])
  11.901 +    AC_CHECK_TOOL([OTOOL64], [otool64], [:])
  11.902 +    _LT_DECL([], [DSYMUTIL], [1],
  11.903 +      [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
  11.904 +    _LT_DECL([], [NMEDIT], [1],
  11.905 +      [Tool to change global to local symbols on Mac OS X])
  11.906 +    _LT_DECL([], [LIPO], [1],
  11.907 +      [Tool to manipulate fat objects and archives on Mac OS X])
  11.908 +    _LT_DECL([], [OTOOL], [1],
  11.909 +      [ldd/readelf like tool for Mach-O binaries on Mac OS X])
  11.910 +    _LT_DECL([], [OTOOL64], [1],
  11.911 +      [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
  11.912 +
  11.913 +    AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
  11.914 +      [lt_cv_apple_cc_single_mod=no
  11.915 +      if test -z "${LT_MULTI_MODULE}"; then
  11.916 +	# By default we will add the -single_module flag. You can override
  11.917 +	# by either setting the environment variable LT_MULTI_MODULE
  11.918 +	# non-empty at configure time, or by adding -multi_module to the
  11.919 +	# link flags.
  11.920 +	rm -rf libconftest.dylib*
  11.921 +	echo "int foo(void){return 1;}" > conftest.c
  11.922 +	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  11.923 +-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
  11.924 +	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  11.925 +	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  11.926 +        _lt_result=$?
  11.927 +	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  11.928 +	  lt_cv_apple_cc_single_mod=yes
  11.929 +	else
  11.930 +	  cat conftest.err >&AS_MESSAGE_LOG_FD
  11.931 +	fi
  11.932 +	rm -rf libconftest.dylib*
  11.933 +	rm -f conftest.*
  11.934 +      fi])
  11.935 +    AC_CACHE_CHECK([for -exported_symbols_list linker flag],
  11.936 +      [lt_cv_ld_exported_symbols_list],
  11.937 +      [lt_cv_ld_exported_symbols_list=no
  11.938 +      save_LDFLAGS=$LDFLAGS
  11.939 +      echo "_main" > conftest.sym
  11.940 +      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  11.941 +      AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  11.942 +	[lt_cv_ld_exported_symbols_list=yes],
  11.943 +	[lt_cv_ld_exported_symbols_list=no])
  11.944 +	LDFLAGS="$save_LDFLAGS"
  11.945 +    ])
  11.946 +    case $host_os in
  11.947 +    rhapsody* | darwin1.[[012]])
  11.948 +      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  11.949 +    darwin1.*)
  11.950 +      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  11.951 +    darwin*) # darwin 5.x on
  11.952 +      # if running on 10.5 or later, the deployment target defaults
  11.953 +      # to the OS version, if on x86, and 10.4, the deployment
  11.954 +      # target defaults to 10.4. Don't you love it?
  11.955 +      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  11.956 +	10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
  11.957 +	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  11.958 +	10.[[012]]*)
  11.959 +	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  11.960 +	10.*)
  11.961 +	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  11.962 +      esac
  11.963 +    ;;
  11.964 +  esac
  11.965 +    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  11.966 +      _lt_dar_single_mod='$single_module'
  11.967 +    fi
  11.968 +    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  11.969 +      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  11.970 +    else
  11.971 +      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  11.972 +    fi
  11.973 +    if test "$DSYMUTIL" != ":"; then
  11.974 +      _lt_dsymutil='~$DSYMUTIL $lib || :'
  11.975 +    else
  11.976 +      _lt_dsymutil=
  11.977 +    fi
  11.978 +    ;;
  11.979 +  esac
  11.980 +])
  11.981 +
  11.982 +
  11.983 +# _LT_DARWIN_LINKER_FEATURES
  11.984 +# --------------------------
  11.985 +# Checks for linker and compiler features on darwin
  11.986 +m4_defun([_LT_DARWIN_LINKER_FEATURES],
  11.987 +[
  11.988 +  m4_require([_LT_REQUIRED_DARWIN_CHECKS])
  11.989 +  _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  11.990 +  _LT_TAGVAR(hardcode_direct, $1)=no
  11.991 +  _LT_TAGVAR(hardcode_automatic, $1)=yes
  11.992 +  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  11.993 +  _LT_TAGVAR(whole_archive_flag_spec, $1)=''
  11.994 +  _LT_TAGVAR(link_all_deplibs, $1)=yes
  11.995 +  _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
  11.996 +  case $cc_basename in
  11.997 +     ifort*) _lt_dar_can_shared=yes ;;
  11.998 +     *) _lt_dar_can_shared=$GCC ;;
  11.999 +  esac
 11.1000 +  if test "$_lt_dar_can_shared" = "yes"; then
 11.1001 +    output_verbose_link_cmd=echo
 11.1002 +    _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 11.1003 +    _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 11.1004 +    _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
 11.1005 +    _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
 11.1006 +    m4_if([$1], [CXX],
 11.1007 +[   if test "$lt_cv_apple_cc_single_mod" != "yes"; then
 11.1008 +      _LT_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${_lt_dsymutil}"
 11.1009 +      _LT_TAGVAR(archive_expsym_cmds, $1)="sed '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${_lt_dar_export_syms}${_lt_dsymutil}"
 11.1010 +    fi
 11.1011 +],[])
 11.1012 +  else
 11.1013 +  _LT_TAGVAR(ld_shlibs, $1)=no
 11.1014 +  fi
 11.1015 +])
 11.1016 +
 11.1017 +# _LT_SYS_MODULE_PATH_AIX
 11.1018 +# -----------------------
 11.1019 +# Links a minimal program and checks the executable
 11.1020 +# for the system default hardcoded library path. In most cases,
 11.1021 +# this is /usr/lib:/lib, but when the MPI compilers are used
 11.1022 +# the location of the communication and MPI libs are included too.
 11.1023 +# If we don't find anything, use the default library path according
 11.1024 +# to the aix ld manual.
 11.1025 +m4_defun([_LT_SYS_MODULE_PATH_AIX],
 11.1026 +[m4_require([_LT_DECL_SED])dnl
 11.1027 +AC_LINK_IFELSE(AC_LANG_PROGRAM,[
 11.1028 +lt_aix_libpath_sed='
 11.1029 +    /Import File Strings/,/^$/ {
 11.1030 +	/^0/ {
 11.1031 +	    s/^0  *\(.*\)$/\1/
 11.1032 +	    p
 11.1033 +	}
 11.1034 +    }'
 11.1035 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 11.1036 +# Check for a 64-bit object if we didn't find anything.
 11.1037 +if test -z "$aix_libpath"; then
 11.1038 +  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 11.1039 +fi],[])
 11.1040 +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 11.1041 +])# _LT_SYS_MODULE_PATH_AIX
 11.1042 +
 11.1043 +
 11.1044 +# _LT_SHELL_INIT(ARG)
 11.1045 +# -------------------
 11.1046 +m4_define([_LT_SHELL_INIT],
 11.1047 +[ifdef([AC_DIVERSION_NOTICE],
 11.1048 +	     [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
 11.1049 +	 [AC_DIVERT_PUSH(NOTICE)])
 11.1050 +$1
 11.1051 +AC_DIVERT_POP
 11.1052 +])# _LT_SHELL_INIT
 11.1053 +
 11.1054 +
 11.1055 +# _LT_PROG_ECHO_BACKSLASH
 11.1056 +# -----------------------
 11.1057 +# Add some code to the start of the generated configure script which
 11.1058 +# will find an echo command which doesn't interpret backslashes.
 11.1059 +m4_defun([_LT_PROG_ECHO_BACKSLASH],
 11.1060 +[_LT_SHELL_INIT([
 11.1061 +# Check that we are running under the correct shell.
 11.1062 +SHELL=${CONFIG_SHELL-/bin/sh}
 11.1063 +
 11.1064 +case X$lt_ECHO in
 11.1065 +X*--fallback-echo)
 11.1066 +  # Remove one level of quotation (which was required for Make).
 11.1067 +  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
 11.1068 +  ;;
 11.1069 +esac
 11.1070 +
 11.1071 +ECHO=${lt_ECHO-echo}
 11.1072 +if test "X[$]1" = X--no-reexec; then
 11.1073 +  # Discard the --no-reexec flag, and continue.
 11.1074 +  shift
 11.1075 +elif test "X[$]1" = X--fallback-echo; then
 11.1076 +  # Avoid inline document here, it may be left over
 11.1077 +  :
 11.1078 +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
 11.1079 +  # Yippee, $ECHO works!
 11.1080 +  :
 11.1081 +else
 11.1082 +  # Restart under the correct shell.
 11.1083 +  exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
 11.1084 +fi
 11.1085 +
 11.1086 +if test "X[$]1" = X--fallback-echo; then
 11.1087 +  # used as fallback echo
 11.1088 +  shift
 11.1089 +  cat <<_LT_EOF
 11.1090 +[$]*
 11.1091 +_LT_EOF
 11.1092 +  exit 0
 11.1093 +fi
 11.1094 +
 11.1095 +# The HP-UX ksh and POSIX shell print the target directory to stdout
 11.1096 +# if CDPATH is set.
 11.1097 +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 11.1098 +
 11.1099 +if test -z "$lt_ECHO"; then
 11.1100 +  if test "X${echo_test_string+set}" != Xset; then
 11.1101 +    # find a string as large as possible, as long as the shell can cope with it
 11.1102 +    for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
 11.1103 +      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
 11.1104 +      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
 11.1105 +	 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
 11.1106 +      then
 11.1107 +        break
 11.1108 +      fi
 11.1109 +    done
 11.1110 +  fi
 11.1111 +
 11.1112 +  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
 11.1113 +     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
 11.1114 +     test "X$echo_testing_string" = "X$echo_test_string"; then
 11.1115 +    :
 11.1116 +  else
 11.1117 +    # The Solaris, AIX, and Digital Unix default echo programs unquote
 11.1118 +    # backslashes.  This makes it impossible to quote backslashes using
 11.1119 +    #   echo "$something" | sed 's/\\/\\\\/g'
 11.1120 +    #
 11.1121 +    # So, first we look for a working echo in the user's PATH.
 11.1122 +
 11.1123 +    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 11.1124 +    for dir in $PATH /usr/ucb; do
 11.1125 +      IFS="$lt_save_ifs"
 11.1126 +      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
 11.1127 +         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
 11.1128 +         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
 11.1129 +         test "X$echo_testing_string" = "X$echo_test_string"; then
 11.1130 +        ECHO="$dir/echo"
 11.1131 +        break
 11.1132 +      fi
 11.1133 +    done
 11.1134 +    IFS="$lt_save_ifs"
 11.1135 +
 11.1136 +    if test "X$ECHO" = Xecho; then
 11.1137 +      # We didn't find a better echo, so look for alternatives.
 11.1138 +      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
 11.1139 +         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
 11.1140 +         test "X$echo_testing_string" = "X$echo_test_string"; then
 11.1141 +        # This shell has a builtin print -r that does the trick.
 11.1142 +        ECHO='print -r'
 11.1143 +      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
 11.1144 +	   test "X$CONFIG_SHELL" != X/bin/ksh; then
 11.1145 +        # If we have ksh, try running configure again with it.
 11.1146 +        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
 11.1147 +        export ORIGINAL_CONFIG_SHELL
 11.1148 +        CONFIG_SHELL=/bin/ksh
 11.1149 +        export CONFIG_SHELL
 11.1150 +        exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
 11.1151 +      else
 11.1152 +        # Try using printf.
 11.1153 +        ECHO='printf %s\n'
 11.1154 +        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
 11.1155 +	   echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
 11.1156 +	   test "X$echo_testing_string" = "X$echo_test_string"; then
 11.1157 +	  # Cool, printf works
 11.1158 +	  :
 11.1159 +        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
 11.1160 +	     test "X$echo_testing_string" = 'X\t' &&
 11.1161 +	     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 11.1162 +	     test "X$echo_testing_string" = "X$echo_test_string"; then
 11.1163 +	  CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
 11.1164 +	  export CONFIG_SHELL
 11.1165 +	  SHELL="$CONFIG_SHELL"
 11.1166 +	  export SHELL
 11.1167 +	  ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
 11.1168 +        elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
 11.1169 +	     test "X$echo_testing_string" = 'X\t' &&
 11.1170 +	     echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 11.1171 +	     test "X$echo_testing_string" = "X$echo_test_string"; then
 11.1172 +	  ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
 11.1173 +        else
 11.1174 +	  # maybe with a smaller string...
 11.1175 +	  prev=:
 11.1176 +
 11.1177 +	  for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
 11.1178 +	    if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
 11.1179 +	    then
 11.1180 +	      break
 11.1181 +	    fi
 11.1182 +	    prev="$cmd"
 11.1183 +	  done
 11.1184 +
 11.1185 +	  if test "$prev" != 'sed 50q "[$]0"'; then
 11.1186 +	    echo_test_string=`eval $prev`
 11.1187 +	    export echo_test_string
 11.1188 +	    exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
 11.1189 +	  else
 11.1190 +	    # Oops.  We lost completely, so just stick with echo.
 11.1191 +	    ECHO=echo
 11.1192 +	  fi
 11.1193 +        fi
 11.1194 +      fi
 11.1195 +    fi
 11.1196 +  fi
 11.1197 +fi
 11.1198 +
 11.1199 +# Copy echo and quote the copy suitably for passing to libtool from
 11.1200 +# the Makefile, instead of quoting the original, which is used later.
 11.1201 +lt_ECHO=$ECHO
 11.1202 +if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
 11.1203 +   lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
 11.1204 +fi
 11.1205 +
 11.1206 +AC_SUBST(lt_ECHO)
 11.1207 +])
 11.1208 +_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
 11.1209 +_LT_DECL([], [ECHO], [1],
 11.1210 +    [An echo program that does not interpret backslashes])
 11.1211 +])# _LT_PROG_ECHO_BACKSLASH
 11.1212 +
 11.1213 +
 11.1214 +# _LT_ENABLE_LOCK
 11.1215 +# ---------------
 11.1216 +m4_defun([_LT_ENABLE_LOCK],
 11.1217 +[AC_ARG_ENABLE([libtool-lock],
 11.1218 +  [AS_HELP_STRING([--disable-libtool-lock],
 11.1219 +    [avoid locking (might break parallel builds)])])
 11.1220 +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 11.1221 +
 11.1222 +# Some flags need to be propagated to the compiler or linker for good
 11.1223 +# libtool support.
 11.1224 +case $host in
 11.1225 +ia64-*-hpux*)
 11.1226 +  # Find out which ABI we are using.
 11.1227 +  echo 'int i;' > conftest.$ac_ext
 11.1228 +  if AC_TRY_EVAL(ac_compile); then
 11.1229 +    case `/usr/bin/file conftest.$ac_objext` in
 11.1230 +      *ELF-32*)
 11.1231 +	HPUX_IA64_MODE="32"
 11.1232 +	;;
 11.1233 +      *ELF-64*)
 11.1234 +	HPUX_IA64_MODE="64"
 11.1235 +	;;
 11.1236 +    esac
 11.1237 +  fi
 11.1238 +  rm -rf conftest*
 11.1239 +  ;;
 11.1240 +*-*-irix6*)
 11.1241 +  # Find out which ABI we are using.
 11.1242 +  echo '[#]line __oline__ "configure"' > conftest.$ac_ext
 11.1243 +  if AC_TRY_EVAL(ac_compile); then
 11.1244 +    if test "$lt_cv_prog_gnu_ld" = yes; then
 11.1245 +      case `/usr/bin/file conftest.$ac_objext` in
 11.1246 +	*32-bit*)
 11.1247 +	  LD="${LD-ld} -melf32bsmip"
 11.1248 +	  ;;
 11.1249 +	*N32*)
 11.1250 +	  LD="${LD-ld} -melf32bmipn32"
 11.1251 +	  ;;
 11.1252 +	*64-bit*)
 11.1253 +	  LD="${LD-ld} -melf64bmip"
 11.1254 +	;;
 11.1255 +      esac
 11.1256 +    else
 11.1257 +      case `/usr/bin/file conftest.$ac_objext` in
 11.1258 +	*32-bit*)
 11.1259 +	  LD="${LD-ld} -32"
 11.1260 +	  ;;
 11.1261 +	*N32*)
 11.1262 +	  LD="${LD-ld} -n32"
 11.1263 +	  ;;
 11.1264 +	*64-bit*)
 11.1265 +	  LD="${LD-ld} -64"
 11.1266 +	  ;;
 11.1267 +      esac
 11.1268 +    fi
 11.1269 +  fi
 11.1270 +  rm -rf conftest*
 11.1271 +  ;;
 11.1272 +
 11.1273 +x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
 11.1274 +s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
 11.1275 +  # Find out which ABI we are using.
 11.1276 +  echo 'int i;' > conftest.$ac_ext
 11.1277 +  if AC_TRY_EVAL(ac_compile); then
 11.1278 +    case `/usr/bin/file conftest.o` in
 11.1279 +      *32-bit*)
 11.1280 +	case $host in
 11.1281 +	  x86_64-*kfreebsd*-gnu)
 11.1282 +	    LD="${LD-ld} -m elf_i386_fbsd"
 11.1283 +	    ;;
 11.1284 +	  x86_64-*linux*)
 11.1285 +	    LD="${LD-ld} -m elf_i386"
 11.1286 +	    ;;
 11.1287 +	  ppc64-*linux*|powerpc64-*linux*)
 11.1288 +	    LD="${LD-ld} -m elf32ppclinux"
 11.1289 +	    ;;
 11.1290 +	  s390x-*linux*)
 11.1291 +	    LD="${LD-ld} -m elf_s390"
 11.1292 +	    ;;
 11.1293 +	  sparc64-*linux*)
 11.1294 +	    LD="${LD-ld} -m elf32_sparc"
 11.1295 +	    ;;
 11.1296 +	esac
 11.1297 +	;;
 11.1298 +      *64-bit*)
 11.1299 +	case $host in
 11.1300 +	  x86_64-*kfreebsd*-gnu)
 11.1301 +	    LD="${LD-ld} -m elf_x86_64_fbsd"
 11.1302 +	    ;;
 11.1303 +	  x86_64-*linux*)
 11.1304 +	    LD="${LD-ld} -m elf_x86_64"
 11.1305 +	    ;;
 11.1306 +	  ppc*-*linux*|powerpc*-*linux*)
 11.1307 +	    LD="${LD-ld} -m elf64ppc"
 11.1308 +	    ;;
 11.1309 +	  s390*-*linux*|s390*-*tpf*)
 11.1310 +	    LD="${LD-ld} -m elf64_s390"
 11.1311 +	    ;;
 11.1312 +	  sparc*-*linux*)
 11.1313 +	    LD="${LD-ld} -m elf64_sparc"
 11.1314 +	    ;;
 11.1315 +	esac
 11.1316 +	;;
 11.1317 +    esac
 11.1318 +  fi
 11.1319 +  rm -rf conftest*
 11.1320 +  ;;
 11.1321 +
 11.1322 +*-*-sco3.2v5*)
 11.1323 +  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 11.1324 +  SAVE_CFLAGS="$CFLAGS"
 11.1325 +  CFLAGS="$CFLAGS -belf"
 11.1326 +  AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
 11.1327 +    [AC_LANG_PUSH(C)
 11.1328 +     AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
 11.1329 +     AC_LANG_POP])
 11.1330 +  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 11.1331 +    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 11.1332 +    CFLAGS="$SAVE_CFLAGS"
 11.1333 +  fi
 11.1334 +  ;;
 11.1335 +sparc*-*solaris*)
 11.1336 +  # Find out which ABI we are using.
 11.1337 +  echo 'int i;' > conftest.$ac_ext
 11.1338 +  if AC_TRY_EVAL(ac_compile); then
 11.1339 +    case `/usr/bin/file conftest.o` in
 11.1340 +    *64-bit*)
 11.1341 +      case $lt_cv_prog_gnu_ld in
 11.1342 +      yes*) LD="${LD-ld} -m elf64_sparc" ;;
 11.1343 +      *)
 11.1344 +	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
 11.1345 +	  LD="${LD-ld} -64"
 11.1346 +	fi
 11.1347 +	;;
 11.1348 +      esac
 11.1349 +      ;;
 11.1350 +    esac
 11.1351 +  fi
 11.1352 +  rm -rf conftest*
 11.1353 +  ;;
 11.1354 +esac
 11.1355 +
 11.1356 +need_locks="$enable_libtool_lock"
 11.1357 +])# _LT_ENABLE_LOCK
 11.1358 +
 11.1359 +
 11.1360 +# _LT_CMD_OLD_ARCHIVE
 11.1361 +# -------------------
 11.1362 +m4_defun([_LT_CMD_OLD_ARCHIVE],
 11.1363 +[AC_CHECK_TOOL(AR, ar, false)
 11.1364 +test -z "$AR" && AR=ar
 11.1365 +test -z "$AR_FLAGS" && AR_FLAGS=cru
 11.1366 +_LT_DECL([], [AR], [1], [The archiver])
 11.1367 +_LT_DECL([], [AR_FLAGS], [1])
 11.1368 +
 11.1369 +AC_CHECK_TOOL(STRIP, strip, :)
 11.1370 +test -z "$STRIP" && STRIP=:
 11.1371 +_LT_DECL([], [STRIP], [1], [A symbol stripping program])
 11.1372 +
 11.1373 +AC_CHECK_TOOL(RANLIB, ranlib, :)
 11.1374 +test -z "$RANLIB" && RANLIB=:
 11.1375 +_LT_DECL([], [RANLIB], [1],
 11.1376 +    [Commands used to install an old-style archive])
 11.1377 +
 11.1378 +# Determine commands to create old-style static archives.
 11.1379 +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
 11.1380 +old_postinstall_cmds='chmod 644 $oldlib'
 11.1381 +old_postuninstall_cmds=
 11.1382 +
 11.1383 +if test -n "$RANLIB"; then
 11.1384 +  case $host_os in
 11.1385 +  openbsd*)
 11.1386 +    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
 11.1387 +    ;;
 11.1388 +  *)
 11.1389 +    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
 11.1390 +    ;;
 11.1391 +  esac
 11.1392 +  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 11.1393 +fi
 11.1394 +_LT_DECL([], [old_postinstall_cmds], [2])
 11.1395 +_LT_DECL([], [old_postuninstall_cmds], [2])
 11.1396 +_LT_TAGDECL([], [old_archive_cmds], [2],
 11.1397 +    [Commands used to build an old-style archive])
 11.1398 +])# _LT_CMD_OLD_ARCHIVE
 11.1399 +
 11.1400 +
 11.1401 +# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
 11.1402 +#		[OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
 11.1403 +# ----------------------------------------------------------------
 11.1404 +# Check whether the given compiler option works
 11.1405 +AC_DEFUN([_LT_COMPILER_OPTION],
 11.1406 +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 11.1407 +m4_require([_LT_DECL_SED])dnl
 11.1408 +AC_CACHE_CHECK([$1], [$2],
 11.1409 +  [$2=no
 11.1410 +   m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
 11.1411 +   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 11.1412 +   lt_compiler_flag="$3"
 11.1413 +   # Insert the option either (1) after the last *FLAGS variable, or
 11.1414 +   # (2) before a word containing "conftest.", or (3) at the end.
 11.1415 +   # Note that $ac_compile itself does not contain backslashes and begins
 11.1416 +   # with a dollar sign (not a hyphen), so the echo should work correctly.
 11.1417 +   # The option is referenced via a variable to avoid confusing sed.
 11.1418 +   lt_compile=`echo "$ac_compile" | $SED \
 11.1419 +   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 11.1420 +   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
 11.1421 +   -e 's:$: $lt_compiler_flag:'`
 11.1422 +   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
 11.1423 +   (eval "$lt_compile" 2>conftest.err)
 11.1424 +   ac_status=$?
 11.1425 +   cat conftest.err >&AS_MESSAGE_LOG_FD
 11.1426 +   echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
 11.1427 +   if (exit $ac_status) && test -s "$ac_outfile"; then
 11.1428 +     # The compiler can only warn and ignore the option if not recognized
 11.1429 +     # So say no if there are warnings other than the usual output.
 11.1430 +     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 11.1431 +     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 11.1432 +     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 11.1433 +       $2=yes
 11.1434 +     fi
 11.1435 +   fi
 11.1436 +   $RM conftest*
 11.1437 +])
 11.1438 +
 11.1439 +if test x"[$]$2" = xyes; then
 11.1440 +    m4_if([$5], , :, [$5])
 11.1441 +else
 11.1442 +    m4_if([$6], , :, [$6])
 11.1443 +fi
 11.1444 +])# _LT_COMPILER_OPTION
 11.1445 +
 11.1446 +# Old name:
 11.1447 +AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
 11.1448 +dnl aclocal-1.4 backwards compatibility:
 11.1449 +dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
 11.1450 +
 11.1451 +
 11.1452 +# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
 11.1453 +#                  [ACTION-SUCCESS], [ACTION-FAILURE])
 11.1454 +# ----------------------------------------------------
 11.1455 +# Check whether the given linker option works
 11.1456 +AC_DEFUN([_LT_LINKER_OPTION],
 11.1457 +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 11.1458 +m4_require([_LT_DECL_SED])dnl
 11.1459 +AC_CACHE_CHECK([$1], [$2],
 11.1460 +  [$2=no
 11.1461 +   save_LDFLAGS="$LDFLAGS"
 11.1462 +   LDFLAGS="$LDFLAGS $3"
 11.1463 +   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 11.1464 +   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 11.1465 +     # The linker can only warn and ignore the option if not recognized
 11.1466 +     # So say no if there are warnings
 11.1467 +     if test -s conftest.err; then
 11.1468 +       # Append any errors to the config.log.
 11.1469 +       cat conftest.err 1>&AS_MESSAGE_LOG_FD
 11.1470 +       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 11.1471 +       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 11.1472 +       if diff conftest.exp conftest.er2 >/dev/null; then
 11.1473 +         $2=yes
 11.1474 +       fi
 11.1475 +     else
 11.1476 +       $2=yes
 11.1477 +     fi
 11.1478 +   fi
 11.1479 +   $RM -r conftest*
 11.1480 +   LDFLAGS="$save_LDFLAGS"
 11.1481 +])
 11.1482 +
 11.1483 +if test x"[$]$2" = xyes; then
 11.1484 +    m4_if([$4], , :, [$4])
 11.1485 +else
 11.1486 +    m4_if([$5], , :, [$5])
 11.1487 +fi
 11.1488 +])# _LT_LINKER_OPTION
 11.1489 +
 11.1490 +# Old name:
 11.1491 +AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
 11.1492 +dnl aclocal-1.4 backwards compatibility:
 11.1493 +dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
 11.1494 +
 11.1495 +
 11.1496 +# LT_CMD_MAX_LEN
 11.1497 +#---------------
 11.1498 +AC_DEFUN([LT_CMD_MAX_LEN],
 11.1499 +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
 11.1500 +# find the maximum length of command line arguments
 11.1501 +AC_MSG_CHECKING([the maximum length of command line arguments])
 11.1502 +AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
 11.1503 +  i=0
 11.1504 +  teststring="ABCD"
 11.1505 +
 11.1506 +  case $build_os in
 11.1507 +  msdosdjgpp*)
 11.1508 +    # On DJGPP, this test can blow up pretty badly due to problems in libc
 11.1509 +    # (any single argument exceeding 2000 bytes causes a buffer overrun
 11.1510 +    # during glob expansion).  Even if it were fixed, the result of this
 11.1511 +    # check would be larger than it should be.
 11.1512 +    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 11.1513 +    ;;
 11.1514 +
 11.1515 +  gnu*)
 11.1516 +    # Under GNU Hurd, this test is not required because there is
 11.1517 +    # no limit to the length of command line arguments.
 11.1518 +    # Libtool will interpret -1 as no limit whatsoever
 11.1519 +    lt_cv_sys_max_cmd_len=-1;
 11.1520 +    ;;
 11.1521 +
 11.1522 +  cygwin* | mingw* | cegcc*)
 11.1523 +    # On Win9x/ME, this test blows up -- it succeeds, but takes
 11.1524 +    # about 5 minutes as the teststring grows exponentially.
 11.1525 +    # Worse, since 9x/ME are not pre-emptively multitasking,
 11.1526 +    # you end up with a "frozen" computer, even though with patience
 11.1527 +    # the test eventually succeeds (with a max line length of 256k).
 11.1528 +    # Instead, let's just punt: use the minimum linelength reported by
 11.1529 +    # all of the supported platforms: 8192 (on NT/2K/XP).
 11.1530 +    lt_cv_sys_max_cmd_len=8192;
 11.1531 +    ;;
 11.1532 +
 11.1533 +  amigaos*)
 11.1534 +    # On AmigaOS with pdksh, this test takes hours, literally.
 11.1535 +    # So we just punt and use a minimum line length of 8192.
 11.1536 +    lt_cv_sys_max_cmd_len=8192;
 11.1537 +    ;;
 11.1538 +
 11.1539 +  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 11.1540 +    # This has been around since 386BSD, at least.  Likely further.
 11.1541 +    if test -x /sbin/sysctl; then
 11.1542 +      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 11.1543 +    elif test -x /usr/sbin/sysctl; then
 11.1544 +      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 11.1545 +    else
 11.1546 +      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
 11.1547 +    fi
 11.1548 +    # And add a safety zone
 11.1549 +    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 11.1550 +    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 11.1551 +    ;;
 11.1552 +
 11.1553 +  interix*)
 11.1554 +    # We know the value 262144 and hardcode it with a safety zone (like BSD)
 11.1555 +    lt_cv_sys_max_cmd_len=196608
 11.1556 +    ;;
 11.1557 +
 11.1558 +  osf*)
 11.1559 +    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 11.1560 +    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 11.1561 +    # nice to cause kernel panics so lets avoid the loop below.
 11.1562 +    # First set a reasonable default.
 11.1563 +    lt_cv_sys_max_cmd_len=16384
 11.1564 +    #
 11.1565 +    if test -x /sbin/sysconfig; then
 11.1566 +      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 11.1567 +        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 11.1568 +      esac
 11.1569 +    fi
 11.1570 +    ;;
 11.1571 +  sco3.2v5*)
 11.1572 +    lt_cv_sys_max_cmd_len=102400
 11.1573 +    ;;
 11.1574 +  sysv5* | sco5v6* | sysv4.2uw2*)
 11.1575 +    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 11.1576 +    if test -n "$kargmax"; then
 11.1577 +      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[	 ]]//'`
 11.1578 +    else
 11.1579 +      lt_cv_sys_max_cmd_len=32768
 11.1580 +    fi
 11.1581 +    ;;
 11.1582 +  *)
 11.1583 +    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
 11.1584 +    if test -n "$lt_cv_sys_max_cmd_len"; then
 11.1585 +      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 11.1586 +      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 11.1587 +    else
 11.1588 +      # Make teststring a little bigger before we do anything with it.
 11.1589 +      # a 1K string should be a reasonable start.
 11.1590 +      for i in 1 2 3 4 5 6 7 8 ; do
 11.1591 +        teststring=$teststring$teststring
 11.1592 +      done
 11.1593 +      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 11.1594 +      # If test is not a shell built-in, we'll probably end up computing a
 11.1595 +      # maximum length that is only half of the actual maximum length, but
 11.1596 +      # we can't tell.
 11.1597 +      while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
 11.1598 +	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
 11.1599 +	      test $i != 17 # 1/2 MB should be enough
 11.1600 +      do
 11.1601 +        i=`expr $i + 1`
 11.1602 +        teststring=$teststring$teststring
 11.1603 +      done
 11.1604 +      # Only check the string length outside the loop.
 11.1605 +      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
 11.1606 +      teststring=
 11.1607 +      # Add a significant safety factor because C++ compilers can tack on
 11.1608 +      # massive amounts of additional arguments before passing them to the
 11.1609 +      # linker.  It appears as though 1/2 is a usable value.
 11.1610 +      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 11.1611 +    fi
 11.1612 +    ;;
 11.1613 +  esac
 11.1614 +])
 11.1615 +if test -n $lt_cv_sys_max_cmd_len ; then
 11.1616 +  AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
 11.1617 +else
 11.1618 +  AC_MSG_RESULT(none)
 11.1619 +fi
 11.1620 +max_cmd_len=$lt_cv_sys_max_cmd_len
 11.1621 +_LT_DECL([], [max_cmd_len], [0],
 11.1622 +    [What is the maximum length of a command?])
 11.1623 +])# LT_CMD_MAX_LEN
 11.1624 +
 11.1625 +# Old name:
 11.1626 +AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
 11.1627 +dnl aclocal-1.4 backwards compatibility:
 11.1628 +dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
 11.1629 +
 11.1630 +
 11.1631 +# _LT_HEADER_DLFCN
 11.1632 +# ----------------
 11.1633 +m4_defun([_LT_HEADER_DLFCN],
 11.1634 +[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
 11.1635 +])# _LT_HEADER_DLFCN
 11.1636 +
 11.1637 +
 11.1638 +# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
 11.1639 +#                      ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
 11.1640 +# ----------------------------------------------------------------
 11.1641 +m4_defun([_LT_TRY_DLOPEN_SELF],
 11.1642 +[m4_require([_LT_HEADER_DLFCN])dnl
 11.1643 +if test "$cross_compiling" = yes; then :
 11.1644 +  [$4]
 11.1645 +else
 11.1646 +  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 11.1647 +  lt_status=$lt_dlunknown
 11.1648 +  cat > conftest.$ac_ext <<_LT_EOF
 11.1649 +[#line __oline__ "configure"
 11.1650 +#include "confdefs.h"
 11.1651 +
 11.1652 +#if HAVE_DLFCN_H
 11.1653 +#include <dlfcn.h>
 11.1654 +#endif
 11.1655 +
 11.1656 +#include <stdio.h>
 11.1657 +
 11.1658 +#ifdef RTLD_GLOBAL
 11.1659 +#  define LT_DLGLOBAL		RTLD_GLOBAL
 11.1660 +#else
 11.1661 +#  ifdef DL_GLOBAL
 11.1662 +#    define LT_DLGLOBAL		DL_GLOBAL
 11.1663 +#  else
 11.1664 +#    define LT_DLGLOBAL		0
 11.1665 +#  endif
 11.1666 +#endif
 11.1667 +
 11.1668 +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 11.1669 +   find out it does not work in some platform. */
 11.1670 +#ifndef LT_DLLAZY_OR_NOW
 11.1671 +#  ifdef RTLD_LAZY
 11.1672 +#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
 11.1673 +#  else
 11.1674 +#    ifdef DL_LAZY
 11.1675 +#      define LT_DLLAZY_OR_NOW		DL_LAZY
 11.1676 +#    else
 11.1677 +#      ifdef RTLD_NOW
 11.1678 +#        define LT_DLLAZY_OR_NOW	RTLD_NOW
 11.1679 +#      else
 11.1680 +#        ifdef DL_NOW
 11.1681 +#          define LT_DLLAZY_OR_NOW	DL_NOW
 11.1682 +#        else
 11.1683 +#          define LT_DLLAZY_OR_NOW	0
 11.1684 +#        endif
 11.1685 +#      endif
 11.1686 +#    endif
 11.1687 +#  endif
 11.1688 +#endif
 11.1689 +
 11.1690 +void fnord() { int i=42;}
 11.1691 +int main ()
 11.1692 +{
 11.1693 +  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 11.1694 +  int status = $lt_dlunknown;
 11.1695 +
 11.1696 +  if (self)
 11.1697 +    {
 11.1698 +      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 11.1699 +      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 11.1700 +      /* dlclose (self); */
 11.1701 +    }
 11.1702 +  else
 11.1703 +    puts (dlerror ());
 11.1704 +
 11.1705 +  return status;
 11.1706 +}]
 11.1707 +_LT_EOF
 11.1708 +  if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
 11.1709 +    (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
 11.1710 +    lt_status=$?
 11.1711 +    case x$lt_status in
 11.1712 +      x$lt_dlno_uscore) $1 ;;
 11.1713 +      x$lt_dlneed_uscore) $2 ;;
 11.1714 +      x$lt_dlunknown|x*) $3 ;;
 11.1715 +    esac
 11.1716 +  else :
 11.1717 +    # compilation failed
 11.1718 +    $3
 11.1719 +  fi
 11.1720 +fi
 11.1721 +rm -fr conftest*
 11.1722 +])# _LT_TRY_DLOPEN_SELF
 11.1723 +
 11.1724 +
 11.1725 +# LT_SYS_DLOPEN_SELF
 11.1726 +# ------------------
 11.1727 +AC_DEFUN([LT_SYS_DLOPEN_SELF],
 11.1728 +[m4_require([_LT_HEADER_DLFCN])dnl
 11.1729 +if test "x$enable_dlopen" != xyes; then
 11.1730 +  enable_dlopen=unknown
 11.1731 +  enable_dlopen_self=unknown
 11.1732 +  enable_dlopen_self_static=unknown
 11.1733 +else
 11.1734 +  lt_cv_dlopen=no
 11.1735 +  lt_cv_dlopen_libs=
 11.1736 +
 11.1737 +  case $host_os in
 11.1738 +  beos*)
 11.1739 +    lt_cv_dlopen="load_add_on"
 11.1740 +    lt_cv_dlopen_libs=
 11.1741 +    lt_cv_dlopen_self=yes
 11.1742 +    ;;
 11.1743 +
 11.1744 +  mingw* | pw32* | cegcc*)
 11.1745 +    lt_cv_dlopen="LoadLibrary"
 11.1746 +    lt_cv_dlopen_libs=
 11.1747 +    ;;
 11.1748 +
 11.1749 +  cygwin*)
 11.1750 +    lt_cv_dlopen="dlopen"
 11.1751 +    lt_cv_dlopen_libs=
 11.1752 +    ;;
 11.1753 +
 11.1754 +  darwin*)
 11.1755 +  # if libdl is installed we need to link against it
 11.1756 +    AC_CHECK_LIB([dl], [dlopen],
 11.1757 +		[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
 11.1758 +    lt_cv_dlopen="dyld"
 11.1759 +    lt_cv_dlopen_libs=
 11.1760 +    lt_cv_dlopen_self=yes
 11.1761 +    ])
 11.1762 +    ;;
 11.1763 +
 11.1764 +  *)
 11.1765 +    AC_CHECK_FUNC([shl_load],
 11.1766 +	  [lt_cv_dlopen="shl_load"],
 11.1767 +      [AC_CHECK_LIB([dld], [shl_load],
 11.1768 +	    [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
 11.1769 +	[AC_CHECK_FUNC([dlopen],
 11.1770 +	      [lt_cv_dlopen="dlopen"],
 11.1771 +	  [AC_CHECK_LIB([dl], [dlopen],
 11.1772 +		[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
 11.1773 +	    [AC_CHECK_LIB([svld], [dlopen],
 11.1774 +		  [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
 11.1775 +	      [AC_CHECK_LIB([dld], [dld_link],
 11.1776 +		    [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
 11.1777 +	      ])
 11.1778 +	    ])
 11.1779 +	  ])
 11.1780 +	])
 11.1781 +      ])
 11.1782 +    ;;
 11.1783 +  esac
 11.1784 +
 11.1785 +  if test "x$lt_cv_dlopen" != xno; then
 11.1786 +    enable_dlopen=yes
 11.1787 +  else
 11.1788 +    enable_dlopen=no
 11.1789 +  fi
 11.1790 +
 11.1791 +  case $lt_cv_dlopen in
 11.1792 +  dlopen)
 11.1793 +    save_CPPFLAGS="$CPPFLAGS"
 11.1794 +    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 11.1795 +
 11.1796 +    save_LDFLAGS="$LDFLAGS"
 11.1797 +    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 11.1798 +
 11.1799 +    save_LIBS="$LIBS"
 11.1800 +    LIBS="$lt_cv_dlopen_libs $LIBS"
 11.1801 +
 11.1802 +    AC_CACHE_CHECK([whether a program can dlopen itself],
 11.1803 +	  lt_cv_dlopen_self, [dnl
 11.1804 +	  _LT_TRY_DLOPEN_SELF(
 11.1805 +	    lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
 11.1806 +	    lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
 11.1807 +    ])
 11.1808 +
 11.1809 +    if test "x$lt_cv_dlopen_self" = xyes; then
 11.1810 +      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
 11.1811 +      AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
 11.1812 +	  lt_cv_dlopen_self_static, [dnl
 11.1813 +	  _LT_TRY_DLOPEN_SELF(
 11.1814 +	    lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
 11.1815 +	    lt_cv_dlopen_self_static=no,  lt_cv_dlopen_self_static=cross)
 11.1816 +      ])
 11.1817 +    fi
 11.1818 +
 11.1819 +    CPPFLAGS="$save_CPPFLAGS"
 11.1820 +    LDFLAGS="$save_LDFLAGS"
 11.1821 +    LIBS="$save_LIBS"
 11.1822 +    ;;
 11.1823 +  esac
 11.1824 +
 11.1825 +  case $lt_cv_dlopen_self in
 11.1826 +  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 11.1827 +  *) enable_dlopen_self=unknown ;;
 11.1828 +  esac
 11.1829 +
 11.1830 +  case $lt_cv_dlopen_self_static in
 11.1831 +  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 11.1832 +  *) enable_dlopen_self_static=unknown ;;
 11.1833 +  esac
 11.1834 +fi
 11.1835 +_LT_DECL([dlopen_support], [enable_dlopen], [0],
 11.1836 +	 [Whether dlopen is supported])
 11.1837 +_LT_DECL([dlopen_self], [enable_dlopen_self], [0],
 11.1838 +	 [Whether dlopen of programs is supported])
 11.1839 +_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
 11.1840 +	 [Whether dlopen of statically linked programs is supported])
 11.1841 +])# LT_SYS_DLOPEN_SELF
 11.1842 +
 11.1843 +# Old name:
 11.1844 +AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
 11.1845 +dnl aclocal-1.4 backwards compatibility:
 11.1846 +dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
 11.1847 +
 11.1848 +
 11.1849 +# _LT_COMPILER_C_O([TAGNAME])
 11.1850 +# ---------------------------
 11.1851 +# Check to see if options -c and -o are simultaneously supported by compiler.
 11.1852 +# This macro does not hard code the compiler like AC_PROG_CC_C_O.
 11.1853 +m4_defun([_LT_COMPILER_C_O],
 11.1854 +[m4_require([_LT_DECL_SED])dnl
 11.1855 +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 11.1856 +m4_require([_LT_TAG_COMPILER])dnl
 11.1857 +AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
 11.1858 +  [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
 11.1859 +  [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
 11.1860 +   $RM -r conftest 2>/dev/null
 11.1861 +   mkdir conftest
 11.1862 +   cd conftest
 11.1863 +   mkdir out
 11.1864 +   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 11.1865 +
 11.1866 +   lt_compiler_flag="-o out/conftest2.$ac_objext"
 11.1867 +   # Insert the option either (1) after the last *FLAGS variable, or
 11.1868 +   # (2) before a word containing "conftest.", or (3) at the end.
 11.1869 +   # Note that $ac_compile itself does not contain backslashes and begins
 11.1870 +   # with a dollar sign (not a hyphen), so the echo should work correctly.
 11.1871 +   lt_compile=`echo "$ac_compile" | $SED \
 11.1872 +   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 11.1873 +   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
 11.1874 +   -e 's:$: $lt_compiler_flag:'`
 11.1875 +   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
 11.1876 +   (eval "$lt_compile" 2>out/conftest.err)
 11.1877 +   ac_status=$?
 11.1878 +   cat out/conftest.err >&AS_MESSAGE_LOG_FD
 11.1879 +   echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
 11.1880 +   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 11.1881 +   then
 11.1882 +     # The compiler can only warn and ignore the option if not recognized
 11.1883 +     # So say no if there are warnings
 11.1884 +     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 11.1885 +     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 11.1886 +     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 11.1887 +       _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
 11.1888 +     fi
 11.1889 +   fi
 11.1890 +   chmod u+w . 2>&AS_MESSAGE_LOG_FD
 11.1891 +   $RM conftest*
 11.1892 +   # SGI C++ compiler will create directory out/ii_files/ for
 11.1893 +   # template instantiation
 11.1894 +   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 11.1895 +   $RM out/* && rmdir out
 11.1896 +   cd ..
 11.1897 +   $RM -r conftest
 11.1898 +   $RM conftest*
 11.1899 +])
 11.1900 +_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
 11.1901 +	[Does compiler simultaneously support -c and -o options?])
 11.1902 +])# _LT_COMPILER_C_O
 11.1903 +
 11.1904 +
 11.1905 +# _LT_COMPILER_FILE_LOCKS([TAGNAME])
 11.1906 +# ----------------------------------
 11.1907 +# Check to see if we can do hard links to lock some files if needed
 11.1908 +m4_defun([_LT_COMPILER_FILE_LOCKS],
 11.1909 +[m4_require([_LT_ENABLE_LOCK])dnl
 11.1910 +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 11.1911 +_LT_COMPILER_C_O([$1])
 11.1912 +
 11.1913 +hard_links="nottested"
 11.1914 +if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
 11.1915 +  # do not overwrite the value of need_locks provided by the user
 11.1916 +  AC_MSG_CHECKING([if we can lock with hard links])
 11.1917 +  hard_links=yes
 11.1918 +  $RM conftest*
 11.1919 +  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 11.1920 +  touch conftest.a
 11.1921 +  ln conftest.a conftest.b 2>&5 || hard_links=no
 11.1922 +  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 11.1923 +  AC_MSG_RESULT([$hard_links])
 11.1924 +  if test "$hard_links" = no; then
 11.1925 +    AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
 11.1926 +    need_locks=warn
 11.1927 +  fi
 11.1928 +else
 11.1929 +  need_locks=no
 11.1930 +fi
 11.1931 +_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
 11.1932 +])# _LT_COMPILER_FILE_LOCKS
 11.1933 +
 11.1934 +
 11.1935 +# _LT_CHECK_OBJDIR
 11.1936 +# ----------------
 11.1937 +m4_defun([_LT_CHECK_OBJDIR],
 11.1938 +[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
 11.1939 +[rm -f .libs 2>/dev/null
 11.1940 +mkdir .libs 2>/dev/null
 11.1941 +if test -d .libs; then
 11.1942 +  lt_cv_objdir=.libs
 11.1943 +else
 11.1944 +  # MS-DOS does not allow filenames that begin with a dot.
 11.1945 +  lt_cv_objdir=_libs
 11.1946 +fi
 11.1947 +rmdir .libs 2>/dev/null])
 11.1948 +objdir=$lt_cv_objdir
 11.1949 +_LT_DECL([], [objdir], [0],
 11.1950 +         [The name of the directory that contains temporary libtool files])dnl
 11.1951 +m4_pattern_allow([LT_OBJDIR])dnl
 11.1952 +AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
 11.1953 +  [Define to the sub-directory in which libtool stores uninstalled libraries.])
 11.1954 +])# _LT_CHECK_OBJDIR
 11.1955 +
 11.1956 +
 11.1957 +# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
 11.1958 +# --------------------------------------
 11.1959 +# Check hardcoding attributes.
 11.1960 +m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
 11.1961 +[AC_MSG_CHECKING([how to hardcode library paths into programs])
 11.1962 +_LT_TAGVAR(hardcode_action, $1)=
 11.1963 +if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
 11.1964 +   test -n "$_LT_TAGVAR(runpath_var, $1)" ||
 11.1965 +   test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
 11.1966 +
 11.1967 +  # We can hardcode non-existent directories.
 11.1968 +  if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
 11.1969 +     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 11.1970 +     # have to relink, otherwise we might link with an installed library
 11.1971 +     # when we should be linking with a yet-to-be-installed one
 11.1972 +     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
 11.1973 +     test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
 11.1974 +    # Linking always hardcodes the temporary library directory.
 11.1975 +    _LT_TAGVAR(hardcode_action, $1)=relink
 11.1976 +  else
 11.1977 +    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 11.1978 +    _LT_TAGVAR(hardcode_action, $1)=immediate
 11.1979 +  fi
 11.1980 +else
 11.1981 +  # We cannot hardcode anything, or else we can only hardcode existing
 11.1982 +  # directories.
 11.1983 +  _LT_TAGVAR(hardcode_action, $1)=unsupported
 11.1984 +fi
 11.1985 +AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
 11.1986 +
 11.1987 +if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
 11.1988 +   test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
 11.1989 +  # Fast installation is not supported
 11.1990 +  enable_fast_install=no
 11.1991 +elif test "$shlibpath_overrides_runpath" = yes ||
 11.1992 +     test "$enable_shared" = no; then
 11.1993 +  # Fast installation is not necessary
 11.1994 +  enable_fast_install=needless
 11.1995 +fi
 11.1996 +_LT_TAGDECL([], [hardcode_action], [0],
 11.1997 +    [How to hardcode a shared library path into an executable])
 11.1998 +])# _LT_LINKER_HARDCODE_LIBPATH
 11.1999 +
 11.2000 +
 11.2001 +# _LT_CMD_STRIPLIB
 11.2002 +# ----------------
 11.2003 +m4_defun([_LT_CMD_STRIPLIB],
 11.2004 +[m4_require([_LT_DECL_EGREP])
 11.2005 +striplib=
 11.2006 +old_striplib=
 11.2007 +AC_MSG_CHECKING([whether stripping libraries is possible])
 11.2008 +if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
 11.2009 +  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 11.2010 +  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 11.2011 +  AC_MSG_RESULT([yes])
 11.2012 +else
 11.2013 +# FIXME - insert some real tests, host_os isn't really good enough
 11.2014 +  case $host_os in
 11.2015 +  darwin*)
 11.2016 +    if test -n "$STRIP" ; then
 11.2017 +      striplib="$STRIP -x"
 11.2018 +      old_striplib="$STRIP -S"
 11.2019 +      AC_MSG_RESULT([yes])
 11.2020 +    else
 11.2021 +      AC_MSG_RESULT([no])
 11.2022 +    fi
 11.2023 +    ;;
 11.2024 +  *)
 11.2025 +    AC_MSG_RESULT([no])
 11.2026 +    ;;
 11.2027 +  esac
 11.2028 +fi
 11.2029 +_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
 11.2030 +_LT_DECL([], [striplib], [1])
 11.2031 +])# _LT_CMD_STRIPLIB
 11.2032 +
 11.2033 +
 11.2034 +# _LT_SYS_DYNAMIC_LINKER([TAG])
 11.2035 +# -----------------------------
 11.2036 +# PORTME Fill in your ld.so characteristics
 11.2037 +m4_defun([_LT_SYS_DYNAMIC_LINKER],
 11.2038 +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
 11.2039 +m4_require([_LT_DECL_EGREP])dnl
 11.2040 +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 11.2041 +m4_require([_LT_DECL_OBJDUMP])dnl
 11.2042 +m4_require([_LT_DECL_SED])dnl
 11.2043 +AC_MSG_CHECKING([dynamic linker characteristics])
 11.2044 +m4_if([$1],
 11.2045 +	[], [
 11.2046 +if test "$GCC" = yes; then
 11.2047 +  case $host_os in
 11.2048 +    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
 11.2049 +    *) lt_awk_arg="/^libraries:/" ;;
 11.2050 +  esac
 11.2051 +  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 11.2052 +  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
 11.2053 +    # if the path contains ";" then we assume it to be the separator
 11.2054 +    # otherwise default to the standard path separator (i.e. ":") - it is
 11.2055 +    # assumed that no part of a normal pathname contains ";" but that should
 11.2056 +    # okay in the real world where ";" in dirpaths is itself problematic.
 11.2057 +    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
 11.2058 +  else
 11.2059 +    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 11.2060 +  fi
 11.2061 +  # Ok, now we have the path, separated by spaces, we can step through it
 11.2062 +  # and add multilib dir if necessary.
 11.2063 +  lt_tmp_lt_search_path_spec=
 11.2064 +  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
 11.2065 +  for lt_sys_path in $lt_search_path_spec; do
 11.2066 +    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
 11.2067 +      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
 11.2068 +    else
 11.2069 +      test -d "$lt_sys_path" && \
 11.2070 +	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
 11.2071 +    fi
 11.2072 +  done
 11.2073 +  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
 11.2074 +BEGIN {RS=" "; FS="/|\n";} {
 11.2075 +  lt_foo="";
 11.2076 +  lt_count=0;
 11.2077 +  for (lt_i = NF; lt_i > 0; lt_i--) {
 11.2078 +    if ($lt_i != "" && $lt_i != ".") {
 11.2079 +      if ($lt_i == "..") {
 11.2080 +        lt_count++;
 11.2081 +      } else {
 11.2082 +        if (lt_count == 0) {
 11.2083 +          lt_foo="/" $lt_i lt_foo;
 11.2084 +        } else {
 11.2085 +          lt_count--;
 11.2086 +        }
 11.2087 +      }
 11.2088 +    }
 11.2089 +  }
 11.2090 +  if (lt_foo != "") { lt_freq[[lt_foo]]++; }
 11.2091 +  if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
 11.2092 +}'`
 11.2093 +  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
 11.2094 +else
 11.2095 +  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 11.2096 +fi])
 11.2097 +library_names_spec=
 11.2098 +libname_spec='lib$name'
 11.2099 +soname_spec=
 11.2100 +shrext_cmds=".so"
 11.2101 +postinstall_cmds=
 11.2102 +postuninstall_cmds=
 11.2103 +finish_cmds=
 11.2104 +finish_eval=
 11.2105 +shlibpath_var=
 11.2106 +shlibpath_overrides_runpath=unknown
 11.2107 +version_type=none
 11.2108 +dynamic_linker="$host_os ld.so"
 11.2109 +sys_lib_dlsearch_path_spec="/lib /usr/lib"
 11.2110 +need_lib_prefix=unknown
 11.2111 +hardcode_into_libs=no
 11.2112 +
 11.2113 +# when you set need_version to no, make sure it does not cause -set_version
 11.2114 +# flags to be left without arguments
 11.2115 +need_version=unknown
 11.2116 +
 11.2117 +case $host_os in
 11.2118 +aix3*)
 11.2119 +  version_type=linux
 11.2120 +  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 11.2121 +  shlibpath_var=LIBPATH
 11.2122 +
 11.2123 +  # AIX 3 has no versioning support, so we append a major version to the name.
 11.2124 +  soname_spec='${libname}${release}${shared_ext}$major'
 11.2125 +  ;;
 11.2126 +
 11.2127 +aix[[4-9]]*)
 11.2128 +  version_type=linux
 11.2129 +  need_lib_prefix=no
 11.2130 +  need_version=no
 11.2131 +  hardcode_into_libs=yes
 11.2132 +  if test "$host_cpu" = ia64; then
 11.2133 +    # AIX 5 supports IA64
 11.2134 +    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 11.2135 +    shlibpath_var=LD_LIBRARY_PATH
 11.2136 +  else
 11.2137 +    # With GCC up to 2.95.x, collect2 would create an import file
 11.2138 +    # for dependence libraries.  The import file would start with
 11.2139 +    # the line `#! .'.  This would cause the generated library to
 11.2140 +    # depend on `.', always an invalid library.  This was fixed in
 11.2141 +    # development snapshots of GCC prior to 3.0.
 11.2142 +    case $host_os in
 11.2143 +      aix4 | aix4.[[01]] | aix4.[[01]].*)
 11.2144 +      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 11.2145 +	   echo ' yes '
 11.2146 +	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
 11.2147 +	:
 11.2148 +      else
 11.2149 +	can_build_shared=no
 11.2150 +      fi
 11.2151 +      ;;
 11.2152 +    esac
 11.2153 +    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 11.2154 +    # soname into executable. Probably we can add versioning support to
 11.2155 +    # collect2, so additional links can be useful in future.
 11.2156 +    if test "$aix_use_runtimelinking" = yes; then
 11.2157 +      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 11.2158 +      # instead of lib<name>.a to let people know that these are not
 11.2159 +      # typical AIX shared libraries.
 11.2160 +      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 11.2161 +    else
 11.2162 +      # We preserve .a as extension for shared libraries through AIX4.2
 11.2163 +      # and later when we are not doing run time linking.
 11.2164 +      library_names_spec='${libname}${release}.a $libname.a'
 11.2165 +      soname_spec='${libname}${release}${shared_ext}$major'
 11.2166 +    fi
 11.2167 +    shlibpath_var=LIBPATH
 11.2168 +  fi
 11.2169 +  ;;
 11.2170 +
 11.2171 +amigaos*)
 11.2172 +  case $host_cpu in
 11.2173 +  powerpc)
 11.2174 +    # Since July 2007 AmigaOS4 officially supports .so libraries.
 11.2175 +    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
 11.2176 +    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 11.2177 +    ;;
 11.2178 +  m68k)
 11.2179 +    library_names_spec='$libname.ixlibrary $libname.a'
 11.2180 +    # Create ${libname}_ixlibrary.a entries in /sys/libs.
 11.2181 +    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'
 11.2182 +    ;;
 11.2183 +  esac
 11.2184 +  ;;
 11.2185 +
 11.2186 +beos*)
 11.2187 +  library_names_spec='${libname}${shared_ext}'
 11.2188 +  dynamic_linker="$host_os ld.so"
 11.2189 +  shlibpath_var=LIBRARY_PATH
 11.2190 +  ;;
 11.2191 +
 11.2192 +bsdi[[45]]*)
 11.2193 +  version_type=linux
 11.2194 +  need_version=no
 11.2195 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 11.2196 +  soname_spec='${libname}${release}${shared_ext}$major'
 11.2197 +  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 11.2198 +  shlibpath_var=LD_LIBRARY_PATH
 11.2199 +  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 11.2200 +  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 11.2201 +  # the default ld.so.conf also contains /usr/contrib/lib and
 11.2202 +  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 11.2203 +  # libtool to hard-code these into programs
 11.2204 +  ;;
 11.2205 +
 11.2206 +cygwin* | mingw* | pw32* | cegcc*)
 11.2207 +  version_type=windows
 11.2208 +  shrext_cmds=".dll"
 11.2209 +  need_version=no
 11.2210 +  need_lib_prefix=no
 11.2211 +
 11.2212 +  case $GCC,$host_os in
 11.2213 +  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
 11.2214 +    library_names_spec='$libname.dll.a'
 11.2215 +    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 11.2216 +    postinstall_cmds='base_file=`basename \${file}`~
 11.2217 +      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 11.2218 +      dldir=$destdir/`dirname \$dlpath`~
 11.2219 +      test -d \$dldir || mkdir -p \$dldir~
 11.2220 +      $install_prog $dir/$dlname \$dldir/$dlname~
 11.2221 +      chmod a+x \$dldir/$dlname~
 11.2222 +      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
 11.2223 +        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
 11.2224 +      fi'
 11.2225 +    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 11.2226 +      dlpath=$dir/\$dldll~
 11.2227 +       $RM \$dlpath'
 11.2228 +    shlibpath_overrides_runpath=yes
 11.2229 +
 11.2230 +    case $host_os in
 11.2231 +    cygwin*)
 11.2232 +      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 11.2233 +      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
 11.2234 +      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 11.2235 +      ;;
 11.2236 +    mingw* | cegcc*)
 11.2237 +      # MinGW DLLs use traditional 'lib' prefix
 11.2238 +      soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
 11.2239 +      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 11.2240 +      if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
 11.2241 +        # It is most probably a Windows format PATH printed by
 11.2242 +        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 11.2243 +        # path with ; separators, and with drive letters. We can handle the
 11.2244 +        # drive letters (cygwin fileutils understands them), so leave them,
 11.2245 +        # especially as we might pass files found there to a mingw objdump,
 11.2246 +        # which wouldn't understand a cygwinified path. Ahh.
 11.2247 +        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 11.2248 +      else
 11.2249 +        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 11.2250 +      fi
 11.2251 +      ;;
 11.2252 +    pw32*)
 11.2253 +      # pw32 DLLs use 'pw' prefix rather than 'lib'
 11.2254 +      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
 11.2255 +      ;;
 11.2256 +    esac
 11.2257 +    ;;
 11.2258 +
 11.2259 +  *)
 11.2260 +    library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
 11.2261 +    ;;
 11.2262 +  esac
 11.2263 +  dynamic_linker='Win32 ld.exe'
 11.2264 +  # FIXME: first we should search . and the directory the executable is in
 11.2265 +  shlibpath_var=PATH
 11.2266 +  ;;
 11.2267 +
 11.2268 +darwin* | rhapsody*)
 11.2269 +  dynamic_linker="$host_os dyld"
 11.2270 +  version_type=darwin
 11.2271 +  need_lib_prefix=no
 11.2272 +  need_version=no
 11.2273 +  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 11.2274 +  soname_spec='${libname}${release}${major}$shared_ext'
 11.2275 +  shlibpath_overrides_runpath=yes
 11.2276 +  shlibpath_var=DYLD_LIBRARY_PATH
 11.2277 +  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 11.2278 +m4_if([$1], [],[
 11.2279 +  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
 11.2280 +  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 11.2281 +  ;;
 11.2282 +
 11.2283 +dgux*)
 11.2284 +  version_type=linux
 11.2285 +  need_lib_prefix=no
 11.2286 +  need_version=no
 11.2287 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 11.2288 +  soname_spec='${libname}${release}${shared_ext}$major'
 11.2289 +  shlibpath_var=LD_LIBRARY_PATH
 11.2290 +  ;;
 11.2291 +
 11.2292 +freebsd1*)
 11.2293 +  dynamic_linker=no
 11.2294 +  ;;
 11.2295 +
 11.2296 +freebsd* | dragonfly*)
 11.2297 +  # DragonFly does not have aout.  When/if they implement a new
 11.2298 +  # versioning mechanism, adjust this.
 11.2299 +  if test -x /usr/bin/objformat; then
 11.2300 +    objformat=`/usr/bin/objformat`
 11.2301 +  else
 11.2302 +    case $host_os in
 11.2303 +    freebsd[[123]]*) objformat=aout ;;
 11.2304 +    *) objformat=elf ;;
 11.2305 +    esac
 11.2306 +  fi
 11.2307 +  version_type=freebsd-$objformat
 11.2308 +  case $version_type in
 11.2309 +    freebsd-elf*)
 11.2310 +      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 11.2311 +      need_version=no
 11.2312 +      need_lib_prefix=no
 11.2313 +      ;;
 11.2314 +    freebsd-*)
 11.2315 +      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 11.2316 +      need_version=yes
 11.2317 +      ;;
 11.2318 +  esac
 11.2319 +  shlibpath_var=LD_LIBRARY_PATH
 11.2320 +  case $host_os in
 11.2321 +  freebsd2*)
 11.2322 +    shlibpath_overrides_runpath=yes
 11.2323 +    ;;
 11.2324 +  freebsd3.[[01]]* | freebsdelf3.[[01]]*)
 11.2325 +    shlibpath_overrides_runpath=yes
 11.2326 +    hardcode_into_libs=yes
 11.2327 +    ;;
 11.2328 +  freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
 11.2329 +  freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
 11.2330 +    shlibpath_overrides_runpath=no
 11.2331 +    hardcode_into_libs=yes
 11.2332 +    ;;
 11.2333 +  *) # from 4.6 on, and DragonFly
 11.2334 +    shlibpath_overrides_runpath=yes
 11.2335 +    hardcode_into_libs=yes
 11.2336 +    ;;
 11.2337 +  esac
 11.2338 +  ;;
 11.2339 +
 11.2340 +gnu*)
 11.2341 +  version_type=linux
 11.2342 +  need_lib_prefix=no
 11.2343 +  need_version=no
 11.2344 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 11.2345 +  soname_spec='${libname}${release}${shared_ext}$major'
 11.2346 +  shlibpath_var=LD_LIBRARY_PATH
 11.2347 +  hardcode_into_libs=yes
 11.2348 +  ;;
 11.2349 +
 11.2350 +hpux9* | hpux10* | hpux11*)
 11.2351 +  # Give a soname corresponding to the major version so that dld.sl refuses to
 11.2352 +  # link against other versions.
 11.2353 +  version_type=sunos
 11.2354 +  need_lib_prefix=no
 11.2355 +  need_version=no
 11.2356 +  case $host_cpu in
 11.2357 +  ia64*)
 11.2358 +    shrext_cmds='.so'
 11.2359 +    hardcode_into_libs=yes
 11.2360 +    dynamic_linker="$host_os dld.so"
 11.2361 +    shlibpath_var=LD_LIBRARY_PATH
 11.2362 +    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 11.2363 +    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 11.2364 +    soname_spec='${libname}${release}${shared_ext}$major'
 11.2365 +    if test "X$HPUX_IA64_MODE" = X32; then
 11.2366 +      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 11.2367 +    else
 11.2368 +      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 11.2369 +    fi
 11.2370 +    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 11.2371 +    ;;
 11.2372 +  hppa*64*)
 11.2373 +    shrext_cmds='.sl'
 11.2374 +    hardcode_into_libs=yes
 11.2375 +    dynamic_linker="$host_os dld.sl"
 11.2376 +    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 11.2377 +    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 11.2378 +    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 11.2379 +    soname_spec='${libname}${release}${shared_ext}$major'
 11.2380 +    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 11.2381 +    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 11.2382 +    ;;
 11.2383 +  *)
 11.2384 +    shrext_cmds='.sl'
 11.2385 +    dynamic_linker="$host_os dld.sl"
 11.2386 +    shlibpath_var=SHLIB_PATH
 11.2387 +    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 11.2388 +    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 11.2389 +    soname_spec='${libname}${release}${shared_ext}$major'
 11.2390 +    ;;
 11.2391 +  esac
 11.2392 +  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 11.2393 +  postinstall_cmds='chmod 555 $lib'
 11.2394 +  ;;
 11.2395 +
 11.2396 +interix[[3-9]]*)
 11.2397 +  version_type=linux
 11.2398 +  need_lib_prefix=no
 11.2399 +  need_version=no
 11.2400 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 11.2401 +  soname_spec='${libname}${release}${shared_ext}$major'
 11.2402 +  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 11.2403 +  shlibpath_var=LD_LIBRARY_PATH
 11.2404 +  shlibpath_overrides_runpath=no
 11.2405 +  hardcode_into_libs=yes
 11.2406 +  ;;
 11.2407 +
 11.2408 +irix5* | irix6* | nonstopux*)
 11.2409 +  case $host_os in
 11.2410 +    nonstopux*) version_type=nonstopux ;;
 11.2411 +    *)
 11.2412 +	if test "$lt_cv_prog_gnu_ld" = yes; then
 11.2413 +		version_type=linux
 11.2414 +	else
 11.2415 +		version_type=irix
 11.2416 +	fi ;;
 11.2417 +  esac
 11.2418 +  need_lib_prefix=no
 11.2419 +  need_version=no
 11.2420 +  soname_spec='${libname}${release}${shared_ext}$major'
 11.2421 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 11.2422 +  case $host_os in
 11.2423 +  irix5* | nonstopux*)
 11.2424 +    libsuff= shlibsuff=
 11.2425 +    ;;
 11.2426 +  *)
 11.2427 +    case $LD in # libtool.m4 will add one of these switches to LD
 11.2428 +    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 11.2429 +      libsuff= shlibsuff= libmagic=32-bit;;
 11.2430 +    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 11.2431 +      libsuff=32 shlibsuff=N32 libmagic=N32;;
 11.2432 +    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 11.2433 +      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 11.2434 +    *) libsuff= shlibsuff= libmagic=never-match;;
 11.2435 +    esac
 11.2436 +    ;;
 11.2437 +  esac
 11.2438 +  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 11.2439 +  shlibpath_overrides_runpath=no
 11.2440 +  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 11.2441 +  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 11.2442 +  hardcode_into_libs=yes
 11.2443 +  ;;
 11.2444 +
 11.2445 +# No shared lib support for Linux oldld, aout, or coff.
 11.2446 +linux*oldld* | linux*aout* | linux*coff*)
 11.2447 +  dynamic_linker=no
 11.2448 +  ;;
 11.2449 +
 11.2450 +# This must be Linux ELF.
 11.2451 +linux* | k*bsd*-gnu)
 11.2452 +  version_type=linux
 11.2453 +  need_lib_prefix=no
 11.2454 +  need_version=no
 11.2455 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 11.2456 +  soname_spec='${libname}${release}${shared_ext}$major'
 11.2457 +  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 11.2458 +  shlibpath_var=LD_LIBRARY_PATH
 11.2459 +  shlibpath_overrides_runpath=no
 11.2460 +  # Some binutils ld are patched to set DT_RUNPATH
 11.2461 +  save_LDFLAGS=$LDFLAGS
 11.2462 +  save_libdir=$libdir
 11.2463 +  eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
 11.2464 +       LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
 11.2465 +  AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
 11.2466 +    [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
 11.2467 +       [shlibpath_overrides_runpath=yes])])
 11.2468 +  LDFLAGS=$save_LDFLAGS
 11.2469 +  libdir=$save_libdir
 11.2470 +
 11.2471 +  # This implies no fast_install, which is unacceptable.
 11.2472 +  # Some rework will be needed to allow for fast_install
 11.2473 +  # before this can be enabled.
 11.2474 +  hardcode_into_libs=yes
 11.2475 +
 11.2476 +  # Add ABI-specific directories to the system library path.
 11.2477 +  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
 11.2478 +
 11.2479 +  # Append ld.so.conf contents to the search path
 11.2480 +  if test -f /etc/ld.so.conf; then
 11.2481 +    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 11.2482 +    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
 11.2483 +  fi
 11.2484 +
 11.2485 +  # We used to test for /lib/ld.so.1 and disable shared libraries on
 11.2486 +  # powerpc, because MkLinux only supported shared libraries with the
 11.2487 +  # GNU dynamic linker.  Since this was broken with cross compilers,
 11.2488 +  # most powerpc-linux boxes support dynamic linking these days and
 11.2489 +  # people can always --disable-shared, the test was removed, and we
 11.2490 +  # assume the GNU/Linux dynamic linker is in use.
 11.2491 +  dynamic_linker='GNU/Linux ld.so'
 11.2492 +  ;;
 11.2493 +
 11.2494 +netbsd*)
 11.2495 +  version_type=sunos
 11.2496 +  need_lib_prefix=no
 11.2497 +  need_version=no
 11.2498 +  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 11.2499 +    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 11.2500 +    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 11.2501 +    dynamic_linker='NetBSD (a.out) ld.so'
 11.2502 +  else
 11.2503 +    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 11.2504 +    soname_spec='${libname}${release}${shared_ext}$major'
 11.2505 +    dynamic_linker='NetBSD ld.elf_so'
 11.2506 +  fi
 11.2507 +  shlibpath_var=LD_LIBRARY_PATH
 11.2508 +  shlibpath_overrides_runpath=yes
 11.2509 +  hardcode_into_libs=yes
 11.2510 +  ;;
 11.2511 +
 11.2512 +newsos6)
 11.2513 +  version_type=linux
 11.2514 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 11.2515 +  shlibpath_var=LD_LIBRARY_PATH
 11.2516 +  shlibpath_overrides_runpath=yes
 11.2517 +  ;;
 11.2518 +
 11.2519 +*nto* | *qnx*)
 11.2520 +  version_type=qnx
 11.2521 +  need_lib_prefix=no
 11.2522 +  need_version=no
 11.2523 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 11.2524 +  soname_spec='${libname}${release}${shared_ext}$major'
 11.2525 +  shlibpath_var=LD_LIBRARY_PATH
 11.2526 +  shlibpath_overrides_runpath=no
 11.2527 +  hardcode_into_libs=yes
 11.2528 +  dynamic_linker='ldqnx.so'
 11.2529 +  ;;
 11.2530 +
 11.2531 +openbsd*)
 11.2532 +  version_type=sunos
 11.2533 +  sys_lib_dlsearch_path_spec="/usr/lib"
 11.2534 +  need_lib_prefix=no
 11.2535 +  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 11.2536 +  case $host_os in
 11.2537 +    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
 11.2538 +    *)				need_version=no  ;;
 11.2539 +  esac
 11.2540 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 11.2541 +  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 11.2542 +  shlibpath_var=LD_LIBRARY_PATH
 11.2543 +  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 11.2544 +    case $host_os in
 11.2545 +      openbsd2.[[89]] | openbsd2.[[89]].*)
 11.2546 +	shlibpath_overrides_runpath=no
 11.2547 +	;;
 11.2548 +      *)
 11.2549 +	shlibpath_overrides_runpath=yes
 11.2550 +	;;
 11.2551 +      esac
 11.2552 +  else
 11.2553 +    shlibpath_overrides_runpath=yes
 11.2554 +  fi
 11.2555 +  ;;
 11.2556 +
 11.2557 +os2*)
 11.2558 +  libname_spec='$name'
 11.2559 +  shrext_cmds=".dll"
 11.2560 +  need_lib_prefix=no
 11.2561 +  library_names_spec='$libname${shared_ext} $libname.a'
 11.2562 +  dynamic_linker='OS/2 ld.exe'
 11.2563 +  shlibpath_var=LIBPATH
 11.2564 +  ;;
 11.2565 +
 11.2566 +osf3* | osf4* | osf5*)
 11.2567 +  version_type=osf
 11.2568 +  need_lib_prefix=no
 11.2569 +  need_version=no
 11.2570 +  soname_spec='${libname}${release}${shared_ext}$major'
 11.2571 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 11.2572 +  shlibpath_var=LD_LIBRARY_PATH
 11.2573 +  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 11.2574 +  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 11.2575 +  ;;
 11.2576 +
 11.2577 +rdos*)
 11.2578 +  dynamic_linker=no
 11.2579 +  ;;
 11.2580 +
 11.2581 +solaris*)
 11.2582 +  version_type=linux
 11.2583 +  need_lib_prefix=no
 11.2584 +  need_version=no
 11.2585 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 11.2586 +  soname_spec='${libname}${release}${shared_ext}$major'
 11.2587 +  shlibpath_var=LD_LIBRARY_PATH
 11.2588 +  shlibpath_overrides_runpath=yes
 11.2589 +  hardcode_into_libs=yes
 11.2590 +  # ldd complains unless libraries are executable
 11.2591 +  postinstall_cmds='chmod +x $lib'
 11.2592 +  ;;
 11.2593 +
 11.2594 +sunos4*)
 11.2595 +  version_type=sunos
 11.2596 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 11.2597 +  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 11.2598 +  shlibpath_var=LD_LIBRARY_PATH
 11.2599 +  shlibpath_overrides_runpath=yes
 11.2600 +  if test "$with_gnu_ld" = yes; then
 11.2601 +    need_lib_prefix=no
 11.2602 +  fi
 11.2603 +  need_version=yes
 11.2604 +  ;;
 11.2605 +
 11.2606 +sysv4 | sysv4.3*)
 11.2607 +  version_type=linux
 11.2608 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 11.2609 +  soname_spec='${libname}${release}${shared_ext}$major'
 11.2610 +  shlibpath_var=LD_LIBRARY_PATH
 11.2611 +  case $host_vendor in
 11.2612 +    sni)
 11.2613 +      shlibpath_overrides_runpath=no
 11.2614 +      need_lib_prefix=no
 11.2615 +      runpath_var=LD_RUN_PATH
 11.2616 +      ;;
 11.2617 +    siemens)
 11.2618 +      need_lib_prefix=no
 11.2619 +      ;;
 11.2620 +    motorola)
 11.2621 +      need_lib_prefix=no
 11.2622 +      need_version=no
 11.2623 +      shlibpath_overrides_runpath=no
 11.2624 +      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 11.2625 +      ;;
 11.2626 +  esac
 11.2627 +  ;;
 11.2628 +
 11.2629 +sysv4*MP*)
 11.2630 +  if test -d /usr/nec ;then
 11.2631 +    version_type=linux
 11.2632 +    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 11.2633 +    soname_spec='$libname${shared_ext}.$major'
 11.2634 +    shlibpath_var=LD_LIBRARY_PATH
 11.2635 +  fi
 11.2636 +  ;;
 11.2637 +
 11.2638 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 11.2639 +  version_type=freebsd-elf
 11.2640 +  need_lib_prefix=no
 11.2641 +  need_version=no
 11.2642 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 11.2643 +  soname_spec='${libname}${release}${shared_ext}$major'
 11.2644 +  shlibpath_var=LD_LIBRARY_PATH
 11.2645 +  shlibpath_overrides_runpath=yes
 11.2646 +  hardcode_into_libs=yes
 11.2647 +  if test "$with_gnu_ld" = yes; then
 11.2648 +    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 11.2649 +  else
 11.2650 +    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 11.2651 +    case $host_os in
 11.2652 +      sco3.2v5*)
 11.2653 +        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 11.2654 +	;;
 11.2655 +    esac
 11.2656 +  fi
 11.2657 +  sys_lib_dlsearch_path_spec='/usr/lib'
 11.2658 +  ;;
 11.2659 +
 11.2660 +tpf*)
 11.2661 +  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
 11.2662 +  version_type=linux
 11.2663 +  need_lib_prefix=no
 11.2664 +  need_version=no
 11.2665 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 11.2666 +  shlibpath_var=LD_LIBRARY_PATH
 11.2667 +  shlibpath_overrides_runpath=no
 11.2668 +  hardcode_into_libs=yes
 11.2669 +  ;;
 11.2670 +
 11.2671 +uts4*)
 11.2672 +  version_type=linux
 11.2673 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 11.2674 +  soname_spec='${libname}${release}${shared_ext}$major'
 11.2675 +  shlibpath_var=LD_LIBRARY_PATH
 11.2676 +  ;;
 11.2677 +
 11.2678 +*)
 11.2679 +  dynamic_linker=no
 11.2680 +  ;;
 11.2681 +esac
 11.2682 +AC_MSG_RESULT([$dynamic_linker])
 11.2683 +test "$dynamic_linker" = no && can_build_shared=no
 11.2684 +
 11.2685 +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 11.2686 +if test "$GCC" = yes; then
 11.2687 +  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 11.2688 +fi
 11.2689 +
 11.2690 +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 11.2691 +  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 11.2692 +fi
 11.2693 +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 11.2694 +  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 11.2695 +fi
 11.2696 +
 11.2697 +_LT_DECL([], [variables_saved_for_relink], [1],
 11.2698 +    [Variables whose values should be saved in libtool wrapper scripts and
 11.2699 +    restored at link time])
 11.2700 +_LT_DECL([], [need_lib_prefix], [0],
 11.2701 +    [Do we need the "lib" prefix for modules?])
 11.2702 +_LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
 11.2703 +_LT_DECL([], [version_type], [0], [Library versioning type])
 11.2704 +_LT_DECL([], [runpath_var], [0],  [Shared library runtime path variable])
 11.2705 +_LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
 11.2706 +_LT_DECL([], [shlibpath_overrides_runpath], [0],
 11.2707 +    [Is shlibpath searched before the hard-coded library search path?])
 11.2708 +_LT_DECL([], [libname_spec], [1], [Format of library name prefix])
 11.2709 +_LT_DECL([], [library_names_spec], [1],
 11.2710 +    [[List of archive names.  First name is the real one, the rest are links.
 11.2711 +    The last name is the one that the linker finds with -lNAME]])
 11.2712 +_LT_DECL([], [soname_spec], [1],
 11.2713 +    [[The coded name of the library, if different from the real name]])
 11.2714 +_LT_DECL([], [postinstall_cmds], [2],
 11.2715 +    [Command to use after installation of a shared archive])
 11.2716 +_LT_DECL([], [postuninstall_cmds], [2],
 11.2717 +    [Command to use after uninstallation of a shared archive])
 11.2718 +_LT_DECL([], [finish_cmds], [2],
 11.2719 +    [Commands used to finish a libtool library installation in a directory])
 11.2720 +_LT_DECL([], [finish_eval], [1],
 11.2721 +    [[As "finish_cmds", except a single script fragment to be evaled but
 11.2722 +    not shown]])
 11.2723 +_LT_DECL([], [hardcode_into_libs], [0],
 11.2724 +    [Whether we should hardcode library paths into libraries])
 11.2725 +_LT_DECL([], [sys_lib_search_path_spec], [2],
 11.2726 +    [Compile-time system search path for libraries])
 11.2727 +_LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
 11.2728 +    [Run-time system search path for libraries])
 11.2729 +])# _LT_SYS_DYNAMIC_LINKER
 11.2730 +
 11.2731 +
 11.2732 +# _LT_PATH_TOOL_PREFIX(TOOL)
 11.2733 +# --------------------------
 11.2734 +# find a file program which can recognize shared library
 11.2735 +AC_DEFUN([_LT_PATH_TOOL_PREFIX],
 11.2736 +[m4_require([_LT_DECL_EGREP])dnl
 11.2737 +AC_MSG_CHECKING([for $1])
 11.2738 +AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
 11.2739 +[case $MAGIC_CMD in
 11.2740 +[[\\/*] |  ?:[\\/]*])
 11.2741 +  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 11.2742 +  ;;
 11.2743 +*)
 11.2744 +  lt_save_MAGIC_CMD="$MAGIC_CMD"
 11.2745 +  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 11.2746 +dnl $ac_dummy forces splitting on constant user-supplied paths.
 11.2747 +dnl POSIX.2 word splitting is done only on the output of word expansions,
 11.2748 +dnl not every word.  This closes a longstanding sh security hole.
 11.2749 +  ac_dummy="m4_if([$2], , $PATH, [$2])"
 11.2750 +  for ac_dir in $ac_dummy; do
 11.2751 +    IFS="$lt_save_ifs"
 11.2752 +    test -z "$ac_dir" && ac_dir=.
 11.2753 +    if test -f $ac_dir/$1; then
 11.2754 +      lt_cv_path_MAGIC_CMD="$ac_dir/$1"
 11.2755 +      if test -n "$file_magic_test_file"; then
 11.2756 +	case $deplibs_check_method in
 11.2757 +	"file_magic "*)
 11.2758 +	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 11.2759 +	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 11.2760 +	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 11.2761 +	    $EGREP "$file_magic_regex" > /dev/null; then
 11.2762 +	    :
 11.2763 +	  else
 11.2764 +	    cat <<_LT_EOF 1>&2
 11.2765 +
 11.2766 +*** Warning: the command libtool uses to detect shared libraries,
 11.2767 +*** $file_magic_cmd, produces output that libtool cannot recognize.
 11.2768 +*** The result is that libtool may fail to recognize shared libraries
 11.2769 +*** as such.  This will affect the creation of libtool libraries that
 11.2770 +*** depend on shared libraries, but programs linked with such libtool
 11.2771 +*** libraries will work regardless of this problem.  Nevertheless, you
 11.2772 +*** may want to report the problem to your system manager and/or to
 11.2773 +*** bug-libtool@gnu.org
 11.2774 +
 11.2775 +_LT_EOF
 11.2776 +	  fi ;;
 11.2777 +	esac
 11.2778 +      fi
 11.2779 +      break
 11.2780 +    fi
 11.2781 +  done
 11.2782 +  IFS="$lt_save_ifs"
 11.2783 +  MAGIC_CMD="$lt_save_MAGIC_CMD"
 11.2784 +  ;;
 11.2785 +esac])
 11.2786 +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 11.2787 +if test -n "$MAGIC_CMD"; then
 11.2788 +  AC_MSG_RESULT($MAGIC_CMD)
 11.2789 +else
 11.2790 +  AC_MSG_RESULT(no)
 11.2791 +fi
 11.2792 +_LT_DECL([], [MAGIC_CMD], [0],
 11.2793 +	 [Used to examine libraries when file_magic_cmd begins with "file"])dnl
 11.2794 +])# _LT_PATH_TOOL_PREFIX
 11.2795 +
 11.2796 +# Old name:
 11.2797 +AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
 11.2798 +dnl aclocal-1.4 backwards compatibility:
 11.2799 +dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
 11.2800 +
 11.2801 +
 11.2802 +# _LT_PATH_MAGIC
 11.2803 +# --------------
 11.2804 +# find a file program which can recognize a shared library
 11.2805 +m4_defun([_LT_PATH_MAGIC],
 11.2806 +[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
 11.2807 +if test -z "$lt_cv_path_MAGIC_CMD"; then
 11.2808 +  if test -n "$ac_tool_prefix"; then
 11.2809 +    _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
 11.2810 +  else
 11.2811 +    MAGIC_CMD=:
 11.2812 +  fi
 11.2813 +fi
 11.2814 +])# _LT_PATH_MAGIC
 11.2815 +
 11.2816 +
 11.2817 +# LT_PATH_LD
 11.2818 +# ----------
 11.2819 +# find the pathname to the GNU or non-GNU linker
 11.2820 +AC_DEFUN([LT_PATH_LD],
 11.2821 +[AC_REQUIRE([AC_PROG_CC])dnl
 11.2822 +AC_REQUIRE([AC_CANONICAL_HOST])dnl
 11.2823 +AC_REQUIRE([AC_CANONICAL_BUILD])dnl
 11.2824 +m4_require([_LT_DECL_SED])dnl
 11.2825 +m4_require([_LT_DECL_EGREP])dnl
 11.2826 +
 11.2827 +AC_ARG_WITH([gnu-ld],
 11.2828 +    [AS_HELP_STRING([--with-gnu-ld],
 11.2829 +	[assume the C compiler uses GNU ld @<:@default=no@:>@])],
 11.2830 +    [test "$withval" = no || with_gnu_ld=yes],
 11.2831 +    [with_gnu_ld=no])dnl
 11.2832 +
 11.2833 +ac_prog=ld
 11.2834 +if test "$GCC" = yes; then
 11.2835 +  # Check if gcc -print-prog-name=ld gives a path.
 11.2836 +  AC_MSG_CHECKING([for ld used by $CC])
 11.2837 +  case $host in
 11.2838 +  *-*-mingw*)
 11.2839 +    # gcc leaves a trailing carriage return which upsets mingw
 11.2840 +    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 11.2841 +  *)
 11.2842 +    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 11.2843 +  esac
 11.2844 +  case $ac_prog in
 11.2845 +    # Accept absolute paths.
 11.2846 +    [[\\/]]* | ?:[[\\/]]*)
 11.2847 +      re_direlt='/[[^/]][[^/]]*/\.\./'
 11.2848 +      # Canonicalize the pathname of ld
 11.2849 +      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
 11.2850 +      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
 11.2851 +	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
 11.2852 +      done
 11.2853 +      test -z "$LD" && LD="$ac_prog"
 11.2854 +      ;;
 11.2855 +  "")
 11.2856 +    # If it fails, then pretend we aren't using GCC.
 11.2857 +    ac_prog=ld
 11.2858 +    ;;
 11.2859 +  *)
 11.2860 +    # If it is relative, then search for the first ld in PATH.
 11.2861 +    with_gnu_ld=unknown
 11.2862 +    ;;
 11.2863 +  esac
 11.2864 +elif test "$with_gnu_ld" = yes; then
 11.2865 +  AC_MSG_CHECKING([for GNU ld])
 11.2866 +else
 11.2867 +  AC_MSG_CHECKING([for non-GNU ld])
 11.2868 +fi
 11.2869 +AC_CACHE_VAL(lt_cv_path_LD,
 11.2870 +[if test -z "$LD"; then
 11.2871 +  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 11.2872 +  for ac_dir in $PATH; do
 11.2873 +    IFS="$lt_save_ifs"
 11.2874 +    test -z "$ac_dir" && ac_dir=.
 11.2875 +    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 11.2876 +      lt_cv_path_LD="$ac_dir/$ac_prog"
 11.2877 +      # Check to see if the program is GNU ld.  I'd rather use --version,
 11.2878 +      # but apparently some variants of GNU ld only accept -v.
 11.2879 +      # Break only if it was the GNU/non-GNU ld that we prefer.
 11.2880 +      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 11.2881 +      *GNU* | *'with BFD'*)
 11.2882 +	test "$with_gnu_ld" != no && break
 11.2883 +	;;
 11.2884 +      *)
 11.2885 +	test "$with_gnu_ld" != yes && break
 11.2886 +	;;
 11.2887 +      esac
 11.2888 +    fi
 11.2889 +  done
 11.2890 +  IFS="$lt_save_ifs"
 11.2891 +else
 11.2892 +  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 11.2893 +fi])
 11.2894 +LD="$lt_cv_path_LD"
 11.2895 +if test -n "$LD"; then
 11.2896 +  AC_MSG_RESULT($LD)
 11.2897 +else
 11.2898 +  AC_MSG_RESULT(no)
 11.2899 +fi
 11.2900 +test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
 11.2901 +_LT_PATH_LD_GNU
 11.2902 +AC_SUBST([LD])
 11.2903 +
 11.2904 +_LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
 11.2905 +])# LT_PATH_LD
 11.2906 +
 11.2907 +# Old names:
 11.2908 +AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
 11.2909 +AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
 11.2910 +dnl aclocal-1.4 backwards compatibility:
 11.2911 +dnl AC_DEFUN([AM_PROG_LD], [])
 11.2912 +dnl AC_DEFUN([AC_PROG_LD], [])
 11.2913 +
 11.2914 +
 11.2915 +# _LT_PATH_LD_GNU
 11.2916 +#- --------------
 11.2917 +m4_defun([_LT_PATH_LD_GNU],
 11.2918 +[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
 11.2919 +[# I'd rather use --version here, but apparently some GNU lds only accept -v.
 11.2920 +case `$LD -v 2>&1 </dev/null` in
 11.2921 +*GNU* | *'with BFD'*)
 11.2922 +  lt_cv_prog_gnu_ld=yes
 11.2923 +  ;;
 11.2924 +*)
 11.2925 +  lt_cv_prog_gnu_ld=no
 11.2926 +  ;;
 11.2927 +esac])
 11.2928 +with_gnu_ld=$lt_cv_prog_gnu_ld
 11.2929 +])# _LT_PATH_LD_GNU
 11.2930 +
 11.2931 +
 11.2932 +# _LT_CMD_RELOAD
 11.2933 +# --------------
 11.2934 +# find reload flag for linker
 11.2935 +#   -- PORTME Some linkers may need a different reload flag.
 11.2936 +m4_defun([_LT_CMD_RELOAD],
 11.2937 +[AC_CACHE_CHECK([for $LD option to reload object files],
 11.2938 +  lt_cv_ld_reload_flag,
 11.2939 +  [lt_cv_ld_reload_flag='-r'])
 11.2940 +reload_flag=$lt_cv_ld_reload_flag
 11.2941 +case $reload_flag in
 11.2942 +"" | " "*) ;;
 11.2943 +*) reload_flag=" $reload_flag" ;;
 11.2944 +esac
 11.2945 +reload_cmds='$LD$reload_flag -o $output$reload_objs'
 11.2946 +case $host_os in
 11.2947 +  darwin*)
 11.2948 +    if test "$GCC" = yes; then
 11.2949 +      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
 11.2950 +    else
 11.2951 +      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 11.2952 +    fi
 11.2953 +    ;;
 11.2954 +esac
 11.2955 +_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
 11.2956 +_LT_DECL([], [reload_cmds], [2])dnl
 11.2957 +])# _LT_CMD_RELOAD
 11.2958 +
 11.2959 +
 11.2960 +# _LT_CHECK_MAGIC_METHOD
 11.2961 +# ----------------------
 11.2962 +# how to check for library dependencies
 11.2963 +#  -- PORTME fill in with the dynamic library characteristics
 11.2964 +m4_defun([_LT_CHECK_MAGIC_METHOD],
 11.2965 +[m4_require([_LT_DECL_EGREP])
 11.2966 +m4_require([_LT_DECL_OBJDUMP])
 11.2967 +AC_CACHE_CHECK([how to recognize dependent libraries],
 11.2968 +lt_cv_deplibs_check_method,
 11.2969 +[lt_cv_file_magic_cmd='$MAGIC_CMD'
 11.2970 +lt_cv_file_magic_test_file=
 11.2971 +lt_cv_deplibs_check_method='unknown'
 11.2972 +# Need to set the preceding variable on all platforms that support
 11.2973 +# interlibrary dependencies.
 11.2974 +# 'none' -- dependencies not supported.
 11.2975 +# `unknown' -- same as none, but documents that we really don't know.
 11.2976 +# 'pass_all' -- all dependencies passed with no checks.
 11.2977 +# 'test_compile' -- check by making test program.
 11.2978 +# 'file_magic [[regex]]' -- check by looking for files in library path
 11.2979 +# which responds to the $file_magic_cmd with a given extended regex.
 11.2980 +# If you have `file' or equivalent on your system and you're not sure
 11.2981 +# whether `pass_all' will *always* work, you probably want this one.
 11.2982 +
 11.2983 +case $host_os in
 11.2984 +aix[[4-9]]*)
 11.2985 +  lt_cv_deplibs_check_method=pass_all
 11.2986 +  ;;
 11.2987 +
 11.2988 +beos*)
 11.2989 +  lt_cv_deplibs_check_method=pass_all
 11.2990 +  ;;
 11.2991 +
 11.2992 +bsdi[[45]]*)
 11.2993 +  lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
 11.2994 +  lt_cv_file_magic_cmd='/usr/bin/file -L'
 11.2995 +  lt_cv_file_magic_test_file=/shlib/libc.so
 11.2996 +  ;;
 11.2997 +
 11.2998 +cygwin*)
 11.2999 +  # func_win32_libid is a shell function defined in ltmain.sh
 11.3000 +  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 11.3001 +  lt_cv_file_magic_cmd='func_win32_libid'
 11.3002 +  ;;
 11.3003 +
 11.3004 +mingw* | pw32*)
 11.3005 +  # Base MSYS/MinGW do not provide the 'file' command needed by
 11.3006 +  # func_win32_libid shell function, so use a weaker test based on 'objdump',
 11.3007 +  # unless we find 'file', for example because we are cross-compiling.
 11.3008 +  if ( file / ) >/dev/null 2>&1; then
 11.3009 +    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 11.3010 +    lt_cv_file_magic_cmd='func_win32_libid'
 11.3011 +  else
 11.3012 +    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 11.3013 +    lt_cv_file_magic_cmd='$OBJDUMP -f'
 11.3014 +  fi
 11.3015 +  ;;
 11.3016 +
 11.3017 +cegcc)
 11.3018 +  # use the weaker test based on 'objdump'. See mingw*.
 11.3019 +  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
 11.3020 +  lt_cv_file_magic_cmd='$OBJDUMP -f'
 11.3021 +  ;;
 11.3022 +
 11.3023 +darwin* | rhapsody*)
 11.3024 +  lt_cv_deplibs_check_method=pass_all
 11.3025 +  ;;
 11.3026 +
 11.3027 +freebsd* | dragonfly*)
 11.3028 +  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
 11.3029 +    case $host_cpu in
 11.3030 +    i*86 )
 11.3031 +      # Not sure whether the presence of OpenBSD here was a mistake.
 11.3032 +      # Let's accept both of them until this is cleared up.
 11.3033 +      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
 11.3034 +      lt_cv_file_magic_cmd=/usr/bin/file
 11.3035 +      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 11.3036 +      ;;
 11.3037 +    esac
 11.3038 +  else
 11.3039 +    lt_cv_deplibs_check_method=pass_all
 11.3040 +  fi
 11.3041 +  ;;
 11.3042 +
 11.3043 +gnu*)
 11.3044 +  lt_cv_deplibs_check_method=pass_all
 11.3045 +  ;;
 11.3046 +
 11.3047 +hpux10.20* | hpux11*)
 11.3048 +  lt_cv_file_magic_cmd=/usr/bin/file
 11.3049 +  case $host_cpu in
 11.3050 +  ia64*)
 11.3051 +    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
 11.3052 +    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 11.3053 +    ;;
 11.3054 +  hppa*64*)
 11.3055 +    [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]']
 11.3056 +    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 11.3057 +    ;;
 11.3058 +  *)
 11.3059 +    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
 11.3060 +    lt_cv_file_magic_test_file=/usr/lib/libc.sl
 11.3061 +    ;;
 11.3062 +  esac
 11.3063 +  ;;
 11.3064 +
 11.3065 +interix[[3-9]]*)
 11.3066 +  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
 11.3067 +  lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
 11.3068 +  ;;
 11.3069 +
 11.3070 +irix5* | irix6* | nonstopux*)
 11.3071 +  case $LD in
 11.3072 +  *-32|*"-32 ") libmagic=32-bit;;
 11.3073 +  *-n32|*"-n32 ") libmagic=N32;;
 11.3074 +  *-64|*"-64 ") libmagic=64-bit;;
 11.3075 +  *) libmagic=never-match;;
 11.3076 +  esac
 11.3077 +  lt_cv_deplibs_check_method=pass_all
 11.3078 +  ;;
 11.3079 +
 11.3080 +# This must be Linux ELF.
 11.3081 +linux* | k*bsd*-gnu)
 11.3082 +  lt_cv_deplibs_check_method=pass_all
 11.3083 +  ;;
 11.3084 +
 11.3085 +netbsd*)
 11.3086 +  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
 11.3087 +    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
 11.3088 +  else
 11.3089 +    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
 11.3090 +  fi
 11.3091 +  ;;
 11.3092 +
 11.3093 +newos6*)
 11.3094 +  lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
 11.3095 +  lt_cv_file_magic_cmd=/usr/bin/file
 11.3096 +  lt_cv_file_magic_test_file=/usr/lib/libnls.so
 11.3097 +  ;;
 11.3098 +
 11.3099 +*nto* | *qnx*)
 11.3100 +  lt_cv_deplibs_check_method=pass_all
 11.3101 +  ;;
 11.3102 +
 11.3103 +openbsd*)
 11.3104 +  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 11.3105 +    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
 11.3106 +  else
 11.3107 +    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
 11.3108 +  fi
 11.3109 +  ;;
 11.3110 +
 11.3111 +osf3* | osf4* | osf5*)
 11.3112 +  lt_cv_deplibs_check_method=pass_all
 11.3113 +  ;;
 11.3114 +
 11.3115 +rdos*)
 11.3116 +  lt_cv_deplibs_check_method=pass_all
 11.3117 +  ;;
 11.3118 +
 11.3119 +solaris*)
 11.3120 +  lt_cv_deplibs_check_method=pass_all
 11.3121 +  ;;
 11.3122 +
 11.3123 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 11.3124 +  lt_cv_deplibs_check_method=pass_all
 11.3125 +  ;;
 11.3126 +
 11.3127 +sysv4 | sysv4.3*)
 11.3128 +  case $host_vendor in
 11.3129 +  motorola)
 11.3130 +    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]]'
 11.3131 +    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 11.3132 +    ;;
 11.3133 +  ncr)
 11.3134 +    lt_cv_deplibs_check_method=pass_all
 11.3135 +    ;;
 11.3136 +  sequent)
 11.3137 +    lt_cv_file_magic_cmd='/bin/file'
 11.3138 +    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
 11.3139 +    ;;
 11.3140 +  sni)
 11.3141 +    lt_cv_file_magic_cmd='/bin/file'
 11.3142 +    lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
 11.3143 +    lt_cv_file_magic_test_file=/lib/libc.so
 11.3144 +    ;;
 11.3145 +  siemens)
 11.3146 +    lt_cv_deplibs_check_method=pass_all
 11.3147 +    ;;
 11.3148 +  pc)
 11.3149 +    lt_cv_deplibs_check_method=pass_all
 11.3150 +    ;;
 11.3151 +  esac
 11.3152 +  ;;
 11.3153 +
 11.3154 +tpf*)
 11.3155 +  lt_cv_deplibs_check_method=pass_all
 11.3156 +  ;;
 11.3157 +esac
 11.3158 +])
 11.3159 +file_magic_cmd=$lt_cv_file_magic_cmd
 11.3160 +deplibs_check_method=$lt_cv_deplibs_check_method
 11.3161 +test -z "$deplibs_check_method" && deplibs_check_method=unknown
 11.3162 +
 11.3163 +_LT_DECL([], [deplibs_check_method], [1],
 11.3164 +    [Method to check whether dependent libraries are shared objects])
 11.3165 +_LT_DECL([], [file_magic_cmd], [1],
 11.3166 +    [Command to use when deplibs_check_method == "file_magic"])
 11.3167 +])# _LT_CHECK_MAGIC_METHOD
 11.3168 +
 11.3169 +
 11.3170 +# LT_PATH_NM
 11.3171 +# ----------
 11.3172 +# find the pathname to a BSD- or MS-compatible name lister
 11.3173 +AC_DEFUN([LT_PATH_NM],
 11.3174 +[AC_REQUIRE([AC_PROG_CC])dnl
 11.3175 +AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
 11.3176 +[if test -n "$NM"; then
 11.3177 +  # Let the user override the test.
 11.3178 +  lt_cv_path_NM="$NM"
 11.3179 +else
 11.3180 +  lt_nm_to_check="${ac_tool_prefix}nm"
 11.3181 +  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
 11.3182 +    lt_nm_to_check="$lt_nm_to_check nm"
 11.3183 +  fi
 11.3184 +  for lt_tmp_nm in $lt_nm_to_check; do
 11.3185 +    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 11.3186 +    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
 11.3187 +      IFS="$lt_save_ifs"
 11.3188 +      test -z "$ac_dir" && ac_dir=.
 11.3189 +      tmp_nm="$ac_dir/$lt_tmp_nm"
 11.3190 +      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 11.3191 +	# Check to see if the nm accepts a BSD-compat flag.
 11.3192 +	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
 11.3193 +	#   nm: unknown option "B" ignored
 11.3194 +	# Tru64's nm complains that /dev/null is an invalid object file
 11.3195 +	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 11.3196 +	*/dev/null* | *'Invalid file or object type'*)
 11.3197 +	  lt_cv_path_NM="$tmp_nm -B"
 11.3198 +	  break
 11.3199 +	  ;;
 11.3200 +	*)
 11.3201 +	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 11.3202 +	  */dev/null*)
 11.3203 +	    lt_cv_path_NM="$tmp_nm -p"
 11.3204 +	    break
 11.3205 +	    ;;
 11.3206 +	  *)
 11.3207 +	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 11.3208 +	    continue # so that we can try to find one that supports BSD flags
 11.3209 +	    ;;
 11.3210 +	  esac
 11.3211 +	  ;;
 11.3212 +	esac
 11.3213 +      fi
 11.3214 +    done
 11.3215 +    IFS="$lt_save_ifs"
 11.3216 +  done
 11.3217 +  : ${lt_cv_path_NM=no}
 11.3218 +fi])
 11.3219 +if test "$lt_cv_path_NM" != "no"; then
 11.3220 +  NM="$lt_cv_path_NM"
 11.3221 +else
 11.3222 +  # Didn't find any BSD compatible name lister, look for dumpbin.
 11.3223 +  AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
 11.3224 +  AC_SUBST([DUMPBIN])
 11.3225 +  if test "$DUMPBIN" != ":"; then
 11.3226 +    NM="$DUMPBIN"
 11.3227 +  fi
 11.3228 +fi
 11.3229 +test -z "$NM" && NM=nm
 11.3230 +AC_SUBST([NM])
 11.3231 +_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
 11.3232 +
 11.3233 +AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
 11.3234 +  [lt_cv_nm_interface="BSD nm"
 11.3235 +  echo "int some_variable = 0;" > conftest.$ac_ext
 11.3236 +  (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
 11.3237 +  (eval "$ac_compile" 2>conftest.err)
 11.3238 +  cat conftest.err >&AS_MESSAGE_LOG_FD
 11.3239 +  (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
 11.3240 +  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
 11.3241 +  cat conftest.err >&AS_MESSAGE_LOG_FD
 11.3242 +  (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
 11.3243 +  cat conftest.out >&AS_MESSAGE_LOG_FD
 11.3244 +  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
 11.3245 +    lt_cv_nm_interface="MS dumpbin"
 11.3246 +  fi
 11.3247 +  rm -f conftest*])
 11.3248 +])# LT_PATH_NM
 11.3249 +
 11.3250 +# Old names:
 11.3251 +AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
 11.3252 +AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
 11.3253 +dnl aclocal-1.4 backwards compatibility:
 11.3254 +dnl AC_DEFUN([AM_PROG_NM], [])
 11.3255 +dnl AC_DEFUN([AC_PROG_NM], [])
 11.3256 +
 11.3257 +
 11.3258 +# LT_LIB_M
 11.3259 +# --------
 11.3260 +# check for math library
 11.3261 +AC_DEFUN([LT_LIB_M],
 11.3262 +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
 11.3263 +LIBM=
 11.3264 +case $host in
 11.3265 +*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
 11.3266 +  # These system don't have libm, or don't need it
 11.3267 +  ;;
 11.3268 +*-ncr-sysv4.3*)
 11.3269 +  AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
 11.3270 +  AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
 11.3271 +  ;;
 11.3272 +*)
 11.3273 +  AC_CHECK_LIB(m, cos, LIBM="-lm")
 11.3274 +  ;;
 11.3275 +esac
 11.3276 +AC_SUBST([LIBM])
 11.3277 +])# LT_LIB_M
 11.3278 +
 11.3279 +# Old name:
 11.3280 +AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
 11.3281 +dnl aclocal-1.4 backwards compatibility:
 11.3282 +dnl AC_DEFUN([AC_CHECK_LIBM], [])
 11.3283 +
 11.3284 +
 11.3285 +# _LT_COMPILER_NO_RTTI([TAGNAME])
 11.3286 +# -------------------------------
 11.3287 +m4_defun([_LT_COMPILER_NO_RTTI],
 11.3288 +[m4_require([_LT_TAG_COMPILER])dnl
 11.3289 +
 11.3290 +_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
 11.3291 +
 11.3292 +if test "$GCC" = yes; then
 11.3293 +  _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
 11.3294 +
 11.3295 +  _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
 11.3296 +    lt_cv_prog_compiler_rtti_exceptions,
 11.3297 +    [-fno-rtti -fno-exceptions], [],
 11.3298 +    [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
 11.3299 +fi
 11.3300 +_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
 11.3301 +	[Compiler flag to turn off builtin functions])
 11.3302 +])# _LT_COMPILER_NO_RTTI
 11.3303 +
 11.3304 +
 11.3305 +# _LT_CMD_GLOBAL_SYMBOLS
 11.3306 +# ----------------------
 11.3307 +m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
 11.3308 +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
 11.3309 +AC_REQUIRE([AC_PROG_CC])dnl
 11.3310 +AC_REQUIRE([LT_PATH_NM])dnl
 11.3311 +AC_REQUIRE([LT_PATH_LD])dnl
 11.3312 +m4_require([_LT_DECL_SED])dnl
 11.3313 +m4_require([_LT_DECL_EGREP])dnl
 11.3314 +m4_require([_LT_TAG_COMPILER])dnl
 11.3315 +
 11.3316 +# Check for command to grab the raw symbol name followed by C symbol from nm.
 11.3317 +AC_MSG_CHECKING([command to parse $NM output from $compiler object])
 11.3318 +AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
 11.3319 +[
 11.3320 +# These are sane defaults that work on at least a few old systems.
 11.3321 +# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 11.3322 +
 11.3323 +# Character class describing NM global symbol codes.
 11.3324 +symcode='[[BCDEGRST]]'
 11.3325 +
 11.3326 +# Regexp to match symbols that can be accessed directly from C.
 11.3327 +sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
 11.3328 +
 11.3329 +# Define system-specific variables.
 11.3330 +case $host_os in
 11.3331 +aix*)
 11.3332 +  symcode='[[BCDT]]'
 11.3333 +  ;;
 11.3334 +cygwin* | mingw* | pw32* | cegcc*)
 11.3335 +  symcode='[[ABCDGISTW]]'
 11.3336 +  ;;
 11.3337 +hpux*)
 11.3338 +  if test "$host_cpu" = ia64; then
 11.3339 +    symcode='[[ABCDEGRST]]'
 11.3340 +  fi
 11.3341 +  ;;
 11.3342 +irix* | nonstopux*)
 11.3343 +  symcode='[[BCDEGRST]]'
 11.3344 +  ;;
 11.3345 +osf*)
 11.3346 +  symcode='[[BCDEGQRST]]'
 11.3347 +  ;;
 11.3348 +solaris*)
 11.3349 +  symcode='[[BDRT]]'
 11.3350 +  ;;
 11.3351 +sco3.2v5*)
 11.3352 +  symcode='[[DT]]'
 11.3353 +  ;;
 11.3354 +sysv4.2uw2*)
 11.3355 +  symcode='[[DT]]'
 11.3356 +  ;;
 11.3357 +sysv5* | sco5v6* | unixware* | OpenUNIX*)
 11.3358 +  symcode='[[ABDT]]'
 11.3359 +  ;;
 11.3360 +sysv4)
 11.3361 +  symcode='[[DFNSTU]]'
 11.3362 +  ;;
 11.3363 +esac
 11.3364 +
 11.3365 +# If we're using GNU nm, then use its standard symbol codes.
 11.3366 +case `$NM -V 2>&1` in
 11.3367 +*GNU* | *'with BFD'*)
 11.3368 +  symcode='[[ABCDGIRSTW]]' ;;
 11.3369 +esac
 11.3370 +
 11.3371 +# Transform an extracted symbol line into a proper C declaration.
 11.3372 +# Some systems (esp. on ia64) link data and code symbols differently,
 11.3373 +# so use this general approach.
 11.3374 +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 11.3375 +
 11.3376 +# Transform an extracted symbol line into symbol name and symbol address
 11.3377 +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (void *) \&\2},/p'"
 11.3378 +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
 11.3379 +
 11.3380 +# Handle CRLF in mingw tool chain
 11.3381 +opt_cr=
 11.3382 +case $build_os in
 11.3383 +mingw*)
 11.3384 +  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 11.3385 +  ;;
 11.3386 +esac
 11.3387 +
 11.3388 +# Try without a prefix underscore, then with it.
 11.3389 +for ac_symprfx in "" "_"; do
 11.3390 +
 11.3391 +  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
 11.3392 +  symxfrm="\\1 $ac_symprfx\\2 \\2"
 11.3393 +
 11.3394 +  # Write the raw and C identifiers.
 11.3395 +  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 11.3396 +    # Fake it for dumpbin and say T for any non-static function
 11.3397 +    # and D for any global variable.
 11.3398 +    # Also find C++ and __fastcall symbols from MSVC++,
 11.3399 +    # which start with @ or ?.
 11.3400 +    lt_cv_sys_global_symbol_pipe="$AWK ['"\
 11.3401 +"     {last_section=section; section=\$ 3};"\
 11.3402 +"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
 11.3403 +"     \$ 0!~/External *\|/{next};"\
 11.3404 +"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
 11.3405 +"     {if(hide[section]) next};"\
 11.3406 +"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
 11.3407 +"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
 11.3408 +"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
 11.3409 +"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
 11.3410 +"     ' prfx=^$ac_symprfx]"
 11.3411 +  else
 11.3412 +    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[	 ]]\($symcode$symcode*\)[[	 ]][[	 ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 11.3413 +  fi
 11.3414 +
 11.3415 +  # Check to see that the pipe works correctly.
 11.3416 +  pipe_works=no
 11.3417 +
 11.3418 +  rm -f conftest*
 11.3419 +  cat > conftest.$ac_ext <<_LT_EOF
 11.3420 +#ifdef __cplusplus
 11.3421 +extern "C" {
 11.3422 +#endif
 11.3423 +char nm_test_var;
 11.3424 +void nm_test_func(void);
 11.3425 +void nm_test_func(void){}
 11.3426 +#ifdef __cplusplus
 11.3427 +}
 11.3428 +#endif
 11.3429 +int main(){nm_test_var='a';nm_test_func();return(0);}
 11.3430 +_LT_EOF
 11.3431 +
 11.3432 +  if AC_TRY_EVAL(ac_compile); then
 11.3433 +    # Now try to grab the symbols.
 11.3434 +    nlist=conftest.nm
 11.3435 +    if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
 11.3436 +      # Try sorting and uniquifying the output.
 11.3437 +      if sort "$nlist" | uniq > "$nlist"T; then
 11.3438 +	mv -f "$nlist"T "$nlist"
 11.3439 +      else
 11.3440 +	rm -f "$nlist"T
 11.3441 +      fi
 11.3442 +
 11.3443 +      # Make sure that we snagged all the symbols we need.
 11.3444 +      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
 11.3445 +	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
 11.3446 +	  cat <<_LT_EOF > conftest.$ac_ext
 11.3447 +#ifdef __cplusplus
 11.3448 +extern "C" {
 11.3449 +#endif
 11.3450 +
 11.3451 +_LT_EOF
 11.3452 +	  # Now generate the symbol file.
 11.3453 +	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
 11.3454 +
 11.3455 +	  cat <<_LT_EOF >> conftest.$ac_ext
 11.3456 +
 11.3457 +/* The mapping between symbol names and symbols.  */
 11.3458 +const struct {
 11.3459 +  const char *name;
 11.3460 +  void       *address;
 11.3461 +}
 11.3462 +lt__PROGRAM__LTX_preloaded_symbols[[]] =
 11.3463 +{
 11.3464 +  { "@PROGRAM@", (void *) 0 },
 11.3465 +_LT_EOF
 11.3466 +	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
 11.3467 +	  cat <<\_LT_EOF >> conftest.$ac_ext
 11.3468 +  {0, (void *) 0}
 11.3469 +};
 11.3470 +
 11.3471 +/* This works around a problem in FreeBSD linker */
 11.3472 +#ifdef FREEBSD_WORKAROUND
 11.3473 +static const void *lt_preloaded_setup() {
 11.3474 +  return lt__PROGRAM__LTX_preloaded_symbols;
 11.3475 +}
 11.3476 +#endif
 11.3477 +
 11.3478 +#ifdef __cplusplus
 11.3479 +}
 11.3480 +#endif
 11.3481 +_LT_EOF
 11.3482 +	  # Now try linking the two files.
 11.3483 +	  mv conftest.$ac_objext conftstm.$ac_objext
 11.3484 +	  lt_save_LIBS="$LIBS"
 11.3485 +	  lt_save_CFLAGS="$CFLAGS"
 11.3486 +	  LIBS="conftstm.$ac_objext"
 11.3487 +	  CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
 11.3488 +	  if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
 11.3489 +	    pipe_works=yes
 11.3490 +	  fi
 11.3491 +	  LIBS="$lt_save_LIBS"
 11.3492 +	  CFLAGS="$lt_save_CFLAGS"
 11.3493 +	else
 11.3494 +	  echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
 11.3495 +	fi
 11.3496 +      else
 11.3497 +	echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
 11.3498 +      fi
 11.3499 +    else
 11.3500 +      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
 11.3501 +    fi
 11.3502 +  else
 11.3503 +    echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
 11.3504 +    cat conftest.$ac_ext >&5
 11.3505 +  fi
 11.3506 +  rm -rf conftest* conftst*
 11.3507 +
 11.3508 +  # Do not use the global_symbol_pipe unless it works.
 11.3509 +  if test "$pipe_works" = yes; then
 11.3510 +    break
 11.3511 +  else
 11.3512 +    lt_cv_sys_global_symbol_pipe=
 11.3513 +  fi
 11.3514 +done
 11.3515 +])
 11.3516 +if test -z "$lt_cv_sys_global_symbol_pipe"; then
 11.3517 +  lt_cv_sys_global_symbol_to_cdecl=
 11.3518 +fi
 11.3519 +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
 11.3520 +  AC_MSG_RESULT(failed)
 11.3521 +else
 11.3522 +  AC_MSG_RESULT(ok)
 11.3523 +fi
 11.3524 +
 11.3525 +_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
 11.3526 +    [Take the output of nm and produce a listing of raw symbols and C names])
 11.3527 +_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
 11.3528 +    [Transform the output of nm in a proper C declaration])
 11.3529 +_LT_DECL([global_symbol_to_c_name_address],
 11.3530 +    [lt_cv_sys_global_symbol_to_c_name_address], [1],
 11.3531 +    [Transform the output of nm in a C name address pair])
 11.3532 +_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
 11.3533 +    [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
 11.3534 +    [Transform the output of nm in a C name address pair when lib prefix is needed])
 11.3535 +]) # _LT_CMD_GLOBAL_SYMBOLS
 11.3536 +
 11.3537 +
 11.3538 +# _LT_COMPILER_PIC([TAGNAME])
 11.3539 +# ---------------------------
 11.3540 +m4_defun([_LT_COMPILER_PIC],
 11.3541 +[m4_require([_LT_TAG_COMPILER])dnl
 11.3542 +_LT_TAGVAR(lt_prog_compiler_wl, $1)=
 11.3543 +_LT_TAGVAR(lt_prog_compiler_pic, $1)=
 11.3544 +_LT_TAGVAR(lt_prog_compiler_static, $1)=
 11.3545 +
 11.3546 +AC_MSG_CHECKING([for $compiler option to produce PIC])
 11.3547 +m4_if([$1], [CXX], [
 11.3548 +  # C++ specific cases for pic, static, wl, etc.
 11.3549 +  if test "$GXX" = yes; then
 11.3550 +    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 11.3551 +    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
 11.3552 +
 11.3553 +    case $host_os in
 11.3554 +    aix*)
 11.3555 +      # All AIX code is PIC.
 11.3556 +      if test "$host_cpu" = ia64; then
 11.3557 +	# AIX 5 now supports IA64 processor
 11.3558 +	_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 11.3559 +      fi
 11.3560 +      ;;
 11.3561 +
 11.3562 +    amigaos*)
 11.3563 +      case $host_cpu in
 11.3564 +      powerpc)
 11.3565 +            # see comment about AmigaOS4 .so support
 11.3566 +            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 11.3567 +        ;;
 11.3568 +      m68k)
 11.3569 +            # FIXME: we need at least 68020 code to build shared libraries, but
 11.3570 +            # adding the `-m68020' flag to GCC prevents building anything better,
 11.3571 +            # like `-m68040'.
 11.3572 +            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
 11.3573 +        ;;
 11.3574 +      esac
 11.3575 +      ;;
 11.3576 +
 11.3577 +    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 11.3578 +      # PIC is the default for these OSes.
 11.3579 +      ;;
 11.3580 +    mingw* | cygwin* | os2* | pw32* | cegcc*)
 11.3581 +      # This hack is so that the source file can tell whether it is being
 11.3582 +      # built for inclusion in a dll (and should export symbols for example).
 11.3583 +      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 11.3584 +      # (--disable-auto-import) libraries
 11.3585 +      m4_if([$1], [GCJ], [],
 11.3586 +	[_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
 11.3587 +      ;;
 11.3588 +    darwin* | rhapsody*)
 11.3589 +      # PIC is the default on this platform
 11.3590 +      # Common symbols not allowed in MH_DYLIB files
 11.3591 +      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
 11.3592 +      ;;
 11.3593 +    *djgpp*)
 11.3594 +      # DJGPP does not support shared libraries at all
 11.3595 +      _LT_TAGVAR(lt_prog_compiler_pic, $1)=
 11.3596 +      ;;
 11.3597 +    interix[[3-9]]*)
 11.3598 +      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 11.3599 +      # Instead, we relocate shared libraries at runtime.
 11.3600 +      ;;
 11.3601 +    sysv4*MP*)
 11.3602 +      if test -d /usr/nec; then
 11.3603 +	_LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
 11.3604 +      fi
 11.3605 +      ;;
 11.3606 +    hpux*)
 11.3607 +      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
 11.3608 +      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
 11.3609 +      # sets the default TLS model and affects inlining.
 11.3610 +      case $host_cpu in
 11.3611 +      hppa*64*)
 11.3612 +	;;
 11.3613 +      *)
 11.3614 +	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 11.3615 +	;;
 11.3616 +      esac
 11.3617 +      ;;
 11.3618 +    *qnx* | *nto*)
 11.3619 +      # QNX uses GNU C++, but need to define -shared option too, otherwise
 11.3620 +      # it will coredump.
 11.3621 +      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
 11.3622 +      ;;
 11.3623 +    *)
 11.3624 +      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 11.3625 +      ;;
 11.3626 +    esac
 11.3627 +  else
 11.3628 +    case $host_os in
 11.3629 +      aix[[4-9]]*)
 11.3630 +	# All AIX code is PIC.
 11.3631 +	if test "$host_cpu" = ia64; then
 11.3632 +	  # AIX 5 now supports IA64 processor
 11.3633 +	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 11.3634 +	else
 11.3635 +	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
 11.3636 +	fi
 11.3637 +	;;
 11.3638 +      chorus*)
 11.3639 +	case $cc_basename in
 11.3640 +	cxch68*)
 11.3641 +	  # Green Hills C++ Compiler
 11.3642 +	  # _LT_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"
 11.3643 +	  ;;
 11.3644 +	esac
 11.3645 +	;;
 11.3646 +      dgux*)
 11.3647 +	case $cc_basename in
 11.3648 +	  ec++*)
 11.3649 +	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 11.3650 +	    ;;
 11.3651 +	  ghcx*)
 11.3652 +	    # Green Hills C++ Compiler
 11.3653 +	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 11.3654 +	    ;;
 11.3655 +	  *)
 11.3656 +	    ;;
 11.3657 +	esac
 11.3658 +	;;
 11.3659 +      freebsd* | dragonfly*)
 11.3660 +	# FreeBSD uses GNU C++
 11.3661 +	;;
 11.3662 +      hpux9* | hpux10* | hpux11*)
 11.3663 +	case $cc_basename in
 11.3664 +	  CC*)
 11.3665 +	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 11.3666 +	    _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
 11.3667 +	    if test "$host_cpu" != ia64; then
 11.3668 +	      _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
 11.3669 +	    fi
 11.3670 +	    ;;
 11.3671 +	  aCC*)
 11.3672 +	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 11.3673 +	    _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
 11.3674 +	    case $host_cpu in
 11.3675 +	    hppa*64*|ia64*)
 11.3676 +	      # +Z the default
 11.3677 +	      ;;
 11.3678 +	    *)
 11.3679 +	      _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
 11.3680 +	      ;;
 11.3681 +	    esac
 11.3682 +	    ;;
 11.3683 +	  *)
 11.3684 +	    ;;
 11.3685 +	esac
 11.3686 +	;;
 11.3687 +      interix*)
 11.3688 +	# This is c89, which is MS Visual C++ (no shared libs)
 11.3689 +	# Anyone wants to do a port?
 11.3690 +	;;
 11.3691 +      irix5* | irix6* | nonstopux*)
 11.3692 +	case $cc_basename in
 11.3693 +	  CC*)
 11.3694 +	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 11.3695 +	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 11.3696 +	    # CC pic flag -KPIC is the default.
 11.3697 +	    ;;
 11.3698 +	  *)
 11.3699 +	    ;;
 11.3700 +	esac
 11.3701 +	;;
 11.3702 +      linux* | k*bsd*-gnu)
 11.3703 +	case $cc_basename in
 11.3704 +	  KCC*)
 11.3705 +	    # KAI C++ Compiler
 11.3706 +	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
 11.3707 +	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 11.3708 +	    ;;
 11.3709 +	  ecpc* )
 11.3710 +	    # old Intel C++ for x86_64 which still supported -KPIC.
 11.3711 +	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 11.3712 +	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 11.3713 +	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
 11.3714 +	    ;;
 11.3715 +	  icpc* )
 11.3716 +	    # Intel C++, used to be incompatible with GCC.
 11.3717 +	    # ICC 10 doesn't accept -KPIC any more.
 11.3718 +	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 11.3719 +	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 11.3720 +	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
 11.3721 +	    ;;
 11.3722 +	  pgCC* | pgcpp*)
 11.3723 +	    # Portland Group C++ compiler
 11.3724 +	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 11.3725 +	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
 11.3726 +	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 11.3727 +	    ;;
 11.3728 +	  cxx*)
 11.3729 +	    # Compaq C++
 11.3730 +	    # Make sure the PIC flag is empty.  It appears that all Alpha
 11.3731 +	    # Linux and Compaq Tru64 Unix objects are PIC.
 11.3732 +	    _LT_TAGVAR(lt_prog_compiler_pic, $1)=
 11.3733 +	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 11.3734 +	    ;;
 11.3735 +	  xlc* | xlC*)
 11.3736 +	    # IBM XL 8.0 on PPC
 11.3737 +	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 11.3738 +	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
 11.3739 +	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
 11.3740 +	    ;;
 11.3741 +	  *)
 11.3742 +	    case `$CC -V 2>&1 | sed 5q` in
 11.3743 +	    *Sun\ C*)
 11.3744 +	      # Sun C++ 5.9
 11.3745 +	      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 11.3746 +	      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 11.3747 +	      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 11.3748 +	      ;;
 11.3749 +	    esac
 11.3750 +	    ;;
 11.3751 +	esac
 11.3752 +	;;
 11.3753 +      lynxos*)
 11.3754 +	;;
 11.3755 +      m88k*)
 11.3756 +	;;
 11.3757 +      mvs*)
 11.3758 +	case $cc_basename in
 11.3759 +	  cxx*)
 11.3760 +	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
 11.3761 +	    ;;
 11.3762 +	  *)
 11.3763 +	    ;;
 11.3764 +	esac
 11.3765 +	;;
 11.3766 +      netbsd*)
 11.3767 +	;;
 11.3768 +      *qnx* | *nto*)
 11.3769 +        # QNX uses GNU C++, but need to define -shared option too, otherwise
 11.3770 +        # it will coredump.
 11.3771 +        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
 11.3772 +        ;;
 11.3773 +      osf3* | osf4* | osf5*)
 11.3774 +	case $cc_basename in
 11.3775 +	  KCC*)
 11.3776 +	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
 11.3777 +	    ;;
 11.3778 +	  RCC*)
 11.3779 +	    # Rational C++ 2.4.1
 11.3780 +	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 11.3781 +	    ;;
 11.3782 +	  cxx*)
 11.3783 +	    # Digital/Compaq C++
 11.3784 +	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 11.3785 +	    # Make sure the PIC flag is empty.  It appears that all Alpha
 11.3786 +	    # Linux and Compaq Tru64 Unix objects are PIC.
 11.3787 +	    _LT_TAGVAR(lt_prog_compiler_pic, $1)=
 11.3788 +	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 11.3789 +	    ;;
 11.3790 +	  *)
 11.3791 +	    ;;
 11.3792 +	esac
 11.3793 +	;;
 11.3794 +      psos*)
 11.3795 +	;;
 11.3796 +      solaris*)
 11.3797 +	case $cc_basename in
 11.3798 +	  CC*)
 11.3799 +	    # Sun C++ 4.2, 5.x and Centerline C++
 11.3800 +	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 11.3801 +	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 11.3802 +	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 11.3803 +	    ;;
 11.3804 +	  gcx*)
 11.3805 +	    # Green Hills C++ Compiler
 11.3806 +	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
 11.3807 +	    ;;
 11.3808 +	  *)
 11.3809 +	    ;;
 11.3810 +	esac
 11.3811 +	;;
 11.3812 +      sunos4*)
 11.3813 +	case $cc_basename in
 11.3814 +	  CC*)
 11.3815 +	    # Sun C++ 4.x
 11.3816 +	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 11.3817 +	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 11.3818 +	    ;;
 11.3819 +	  lcc*)
 11.3820 +	    # Lucid
 11.3821 +	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 11.3822 +	    ;;
 11.3823 +	  *)
 11.3824 +	    ;;
 11.3825 +	esac
 11.3826 +	;;
 11.3827 +      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 11.3828 +	case $cc_basename in
 11.3829 +	  CC*)
 11.3830 +	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 11.3831 +	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 11.3832 +	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 11.3833 +	    ;;
 11.3834 +	esac
 11.3835 +	;;
 11.3836 +      tandem*)
 11.3837 +	case $cc_basename in
 11.3838 +	  NCC*)
 11.3839 +	    # NonStop-UX NCC 3.20
 11.3840 +	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 11.3841 +	    ;;
 11.3842 +	  *)
 11.3843 +	    ;;
 11.3844 +	esac
 11.3845 +	;;
 11.3846 +      vxworks*)
 11.3847 +	;;
 11.3848 +      *)
 11.3849 +	_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 11.3850 +	;;
 11.3851 +    esac
 11.3852 +  fi
 11.3853 +],
 11.3854 +[
 11.3855 +  if test "$GCC" = yes; then
 11.3856 +    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 11.3857 +    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
 11.3858 +
 11.3859 +    case $host_os in
 11.3860 +      aix*)
 11.3861 +      # All AIX code is PIC.
 11.3862 +      if test "$host_cpu" = ia64; then
 11.3863 +	# AIX 5 now supports IA64 processor
 11.3864 +	_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 11.3865 +      fi
 11.3866 +      ;;
 11.3867 +
 11.3868 +    amigaos*)
 11.3869 +      case $host_cpu in
 11.3870 +      powerpc)
 11.3871 +            # see comment about AmigaOS4 .so support
 11.3872 +            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 11.3873 +        ;;
 11.3874 +      m68k)
 11.3875 +            # FIXME: we need at least 68020 code to build shared libraries, but
 11.3876 +            # adding the `-m68020' flag to GCC prevents building anything better,
 11.3877 +            # like `-m68040'.
 11.3878 +            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
 11.3879 +        ;;
 11.3880 +      esac
 11.3881 +      ;;
 11.3882 +
 11.3883 +    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 11.3884 +      # PIC is the default for these OSes.
 11.3885 +      ;;
 11.3886 +
 11.3887 +    mingw* | cygwin* | pw32* | os2* | cegcc*)
 11.3888 +      # This hack is so that the source file can tell whether it is being
 11.3889 +      # built for inclusion in a dll (and should export symbols for example).
 11.3890 +      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 11.3891 +      # (--disable-auto-import) libraries
 11.3892 +      m4_if([$1], [GCJ], [],
 11.3893 +	[_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
 11.3894 +      ;;
 11.3895 +
 11.3896 +    darwin* | rhapsody*)
 11.3897 +      # PIC is the default on this platform
 11.3898 +      # Common symbols not allowed in MH_DYLIB files
 11.3899 +      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
 11.3900 +      ;;
 11.3901 +
 11.3902 +    hpux*)
 11.3903 +      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
 11.3904 +      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
 11.3905 +      # sets the default TLS model and affects inlining.
 11.3906 +      case $host_cpu in
 11.3907 +      hppa*64*)
 11.3908 +	# +Z the default
 11.3909 +	;;
 11.3910 +      *)
 11.3911 +	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 11.3912 +	;;
 11.3913 +      esac
 11.3914 +      ;;
 11.3915 +
 11.3916 +    interix[[3-9]]*)
 11.3917 +      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 11.3918 +      # Instead, we relocate shared libraries at runtime.
 11.3919 +      ;;
 11.3920 +
 11.3921 +    msdosdjgpp*)
 11.3922 +      # Just because we use GCC doesn't mean we suddenly get shared libraries
 11.3923 +      # on systems that don't support them.
 11.3924 +      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 11.3925 +      enable_shared=no
 11.3926 +      ;;
 11.3927 +
 11.3928 +    *nto* | *qnx*)
 11.3929 +      # QNX uses GNU C++, but need to define -shared option too, otherwise
 11.3930 +      # it will coredump.
 11.3931 +      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
 11.3932 +      ;;
 11.3933 +
 11.3934 +    sysv4*MP*)
 11.3935 +      if test -d /usr/nec; then
 11.3936 +	_LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
 11.3937 +      fi
 11.3938 +      ;;
 11.3939 +
 11.3940 +    *)
 11.3941 +      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 11.3942 +      ;;
 11.3943 +    esac
 11.3944 +  else
 11.3945 +    # PORTME Check for flag to pass linker flags through the system compiler.
 11.3946 +    case $host_os in
 11.3947 +    aix*)
 11.3948 +      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 11.3949 +      if test "$host_cpu" = ia64; then
 11.3950 +	# AIX 5 now supports IA64 processor
 11.3951 +	_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 11.3952 +      else
 11.3953 +	_LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
 11.3954 +      fi
 11.3955 +      ;;
 11.3956 +
 11.3957 +    mingw* | cygwin* | pw32* | os2* | cegcc*)
 11.3958 +      # This hack is so that the source file can tell whether it is being
 11.3959 +      # built for inclusion in a dll (and should export symbols for example).
 11.3960 +      m4_if([$1], [GCJ], [],
 11.3961 +	[_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
 11.3962 +      ;;
 11.3963 +
 11.3964 +    hpux9* | hpux10* | hpux11*)
 11.3965 +      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 11.3966 +      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 11.3967 +      # not for PA HP-UX.
 11.3968 +      case $host_cpu in
 11.3969 +      hppa*64*|ia64*)
 11.3970 +	# +Z the default
 11.3971 +	;;
 11.3972 +      *)
 11.3973 +	_LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
 11.3974 +	;;
 11.3975 +      esac
 11.3976 +      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 11.3977 +      _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
 11.3978 +      ;;
 11.3979 +
 11.3980 +    irix5* | irix6* | nonstopux*)
 11.3981 +      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 11.3982 +      # PIC (with -KPIC) is the default.
 11.3983 +      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 11.3984 +      ;;
 11.3985 +
 11.3986 +    linux* | k*bsd*-gnu)
 11.3987 +      case $cc_basename in
 11.3988 +      # old Intel for x86_64 which still supported -KPIC.
 11.3989 +      ecc*)
 11.3990 +	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 11.3991 +	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 11.3992 +	_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
 11.3993 +        ;;
 11.3994 +      # icc used to be incompatible with GCC.
 11.3995 +      # ICC 10 doesn't accept -KPIC any more.
 11.3996 +      icc* | ifort*)
 11.3997 +	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 11.3998 +	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 11.3999 +	_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
 11.4000 +        ;;
 11.4001 +      # Lahey Fortran 8.1.
 11.4002 +      lf95*)
 11.4003 +	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 11.4004 +	_LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
 11.4005 +	_LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
 11.4006 +	;;
 11.4007 +      pgcc* | pgf77* | pgf90* | pgf95*)
 11.4008 +        # Portland Group compilers (*not* the Pentium gcc compiler,
 11.4009 +	# which looks to be a dead project)
 11.4010 +	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 11.4011 +	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
 11.4012 +	_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 11.4013 +        ;;
 11.4014 +      ccc*)
 11.4015 +        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 11.4016 +        # All Alpha code is PIC.
 11.4017 +        _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 11.4018 +        ;;
 11.4019 +      xl*)
 11.4020 +	# IBM XL C 8.0/Fortran 10.1 on PPC
 11.4021 +	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 11.4022 +	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
 11.4023 +	_LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
 11.4024 +	;;
 11.4025 +      *)
 11.4026 +	case `$CC -V 2>&1 | sed 5q` in
 11.4027 +	*Sun\ C*)
 11.4028 +	  # Sun C 5.9
 11.4029 +	  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 11.4030 +	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 11.4031 +	  _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 11.4032 +	  ;;
 11.4033 +	*Sun\ F*)
 11.4034 +	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
 11.4035 +	  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 11.4036 +	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 11.4037 +	  _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
 11.4038 +	  ;;
 11.4039 +	esac
 11.4040 +	;;
 11.4041 +      esac
 11.4042 +      ;;
 11.4043 +
 11.4044 +    newsos6)
 11.4045 +      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 11.4046 +      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 11.4047 +      ;;
 11.4048 +
 11.4049 +    *nto* | *qnx*)
 11.4050 +      # QNX uses GNU C++, but need to define -shared option too, otherwise
 11.4051 +      # it will coredump.
 11.4052 +      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
 11.4053 +      ;;
 11.4054 +
 11.4055 +    osf3* | osf4* | osf5*)
 11.4056 +      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 11.4057 +      # All OSF/1 code is PIC.
 11.4058 +      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 11.4059 +      ;;
 11.4060 +
 11.4061 +    rdos*)
 11.4062 +      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 11.4063 +      ;;
 11.4064 +
 11.4065 +    solaris*)
 11.4066 +      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 11.4067 +      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 11.4068 +      case $cc_basename in
 11.4069 +      f77* | f90* | f95*)
 11.4070 +	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
 11.4071 +      *)
 11.4072 +	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
 11.4073 +      esac
 11.4074 +      ;;
 11.4075 +
 11.4076 +    sunos4*)
 11.4077 +      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 11.4078 +      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
 11.4079 +      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 11.4080 +      ;;
 11.4081 +
 11.4082 +    sysv4 | sysv4.2uw2* | sysv4.3*)
 11.4083 +      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 11.4084 +      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 11.4085 +      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 11.4086 +      ;;
 11.4087 +
 11.4088 +    sysv4*MP*)
 11.4089 +      if test -d /usr/nec ;then
 11.4090 +	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
 11.4091 +	_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 11.4092 +      fi
 11.4093 +      ;;
 11.4094 +
 11.4095 +    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 11.4096 +      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 11.4097 +      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 11.4098 +      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 11.4099 +      ;;
 11.4100 +
 11.4101 +    unicos*)
 11.4102 +      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 11.4103 +      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 11.4104 +      ;;
 11.4105 +
 11.4106 +    uts4*)
 11.4107 +      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 11.4108 +      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 11.4109 +      ;;
 11.4110 +
 11.4111 +    *)
 11.4112 +      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 11.4113 +      ;;
 11.4114 +    esac
 11.4115 +  fi
 11.4116 +])
 11.4117 +case $host_os in
 11.4118 +  # For platforms which do not support PIC, -DPIC is meaningless:
 11.4119 +  *djgpp*)
 11.4120 +    _LT_TAGVAR(lt_prog_compiler_pic, $1)=
 11.4121 +    ;;
 11.4122 +  *)
 11.4123 +    _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
 11.4124 +    ;;
 11.4125 +esac
 11.4126 +AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
 11.4127 +_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
 11.4128 +	[How to pass a linker flag through the compiler])
 11.4129 +
 11.4130 +#
 11.4131 +# Check to make sure the PIC flag actually works.
 11.4132 +#
 11.4133 +if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
 11.4134 +  _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
 11.4135 +    [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
 11.4136 +    [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
 11.4137 +    [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
 11.4138 +     "" | " "*) ;;
 11.4139 +     *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
 11.4140 +     esac],
 11.4141 +    [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
 11.4142 +     _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
 11.4143 +fi
 11.4144 +_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
 11.4145 +	[Additional compiler flags for building library objects])
 11.4146 +
 11.4147 +#
 11.4148 +# Check to make sure the static flag actually works.
 11.4149 +#
 11.4150 +wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
 11.4151 +_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
 11.4152 +  _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
 11.4153 +  $lt_tmp_static_flag,
 11.4154 +  [],
 11.4155 +  [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
 11.4156 +_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
 11.4157 +	[Compiler flag to prevent dynamic linking])
 11.4158 +])# _LT_COMPILER_PIC
 11.4159 +
 11.4160 +
 11.4161 +# _LT_LINKER_SHLIBS([TAGNAME])
 11.4162 +# ----------------------------
 11.4163 +# See if the linker supports building shared libraries.
 11.4164 +m4_defun([_LT_LINKER_SHLIBS],
 11.4165 +[AC_REQUIRE([LT_PATH_LD])dnl
 11.4166 +AC_REQUIRE([LT_PATH_NM])dnl
 11.4167 +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 11.4168 +m4_require([_LT_DECL_EGREP])dnl
 11.4169 +m4_require([_LT_DECL_SED])dnl
 11.4170 +m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
 11.4171 +m4_require([_LT_TAG_COMPILER])dnl
 11.4172 +AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
 11.4173 +m4_if([$1], [CXX], [
 11.4174 +  _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 11.4175 +  case $host_os in
 11.4176 +  aix[[4-9]]*)
 11.4177 +    # If we're using GNU nm, then we don't want the "-C" option.
 11.4178 +    # -C means demangle to AIX nm, but means don't demangle with GNU nm
 11.4179 +    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
 11.4180 +      _LT_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'
 11.4181 +    else
 11.4182 +      _LT_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'
 11.4183 +    fi
 11.4184 +    ;;
 11.4185 +  pw32*)
 11.4186 +    _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
 11.4187 +  ;;
 11.4188 +  cygwin* | mingw* | cegcc*)
 11.4189 +    _LT_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'
 11.4190 +  ;;
 11.4191 +  *)
 11.4192 +    _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 11.4193 +  ;;
 11.4194 +  esac
 11.4195 +  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
 11.4196 +], [
 11.4197 +  runpath_var=
 11.4198 +  _LT_TAGVAR(allow_undefined_flag, $1)=
 11.4199 +  _LT_TAGVAR(always_export_symbols, $1)=no
 11.4200 +  _LT_TAGVAR(archive_cmds, $1)=
 11.4201 +  _LT_TAGVAR(archive_expsym_cmds, $1)=
 11.4202 +  _LT_TAGVAR(compiler_needs_object, $1)=no
 11.4203 +  _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
 11.4204 +  _LT_TAGVAR(export_dynamic_flag_spec, $1)=
 11.4205 +  _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 11.4206 +  _LT_TAGVAR(hardcode_automatic, $1)=no
 11.4207 +  _LT_TAGVAR(hardcode_direct, $1)=no
 11.4208 +  _LT_TAGVAR(hardcode_direct_absolute, $1)=no
 11.4209 +  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
 11.4210 +  _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
 11.4211 +  _LT_TAGVAR(hardcode_libdir_separator, $1)=
 11.4212 +  _LT_TAGVAR(hardcode_minus_L, $1)=no
 11.4213 +  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 11.4214 +  _LT_TAGVAR(inherit_rpath, $1)=no
 11.4215 +  _LT_TAGVAR(link_all_deplibs, $1)=unknown
 11.4216 +  _LT_TAGVAR(module_cmds, $1)=
 11.4217 +  _LT_TAGVAR(module_expsym_cmds, $1)=
 11.4218 +  _LT_TAGVAR(old_archive_from_new_cmds, $1)=
 11.4219 +  _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
 11.4220 +  _LT_TAGVAR(thread_safe_flag_spec, $1)=
 11.4221 +  _LT_TAGVAR(whole_archive_flag_spec, $1)=
 11.4222 +  # include_expsyms should be a list of space-separated symbols to be *always*
 11.4223 +  # included in the symbol list
 11.4224 +  _LT_TAGVAR(include_expsyms, $1)=
 11.4225 +  # exclude_expsyms can be an extended regexp of symbols to exclude
 11.4226 +  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 11.4227 +  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 11.4228 +  # as well as any symbol that contains `d'.
 11.4229 +  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
 11.4230 +  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 11.4231 +  # platforms (ab)use it in PIC code, but their linkers get confused if
 11.4232 +  # the symbol is explicitly referenced.  Since portable code cannot
 11.4233 +  # rely on this symbol name, it's probably fine to never include it in
 11.4234 +  # preloaded symbol tables.
 11.4235 +  # Exclude shared library initialization/finalization symbols.
 11.4236 +dnl Note also adjust exclude_expsyms for C++ above.
 11.4237 +  extract_expsyms_cmds=
 11.4238 +
 11.4239 +  case $host_os in
 11.4240 +  cygwin* | mingw* | pw32* | cegcc*)
 11.4241 +    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 11.4242 +    # When not using gcc, we currently assume that we are using
 11.4243 +    # Microsoft Visual C++.
 11.4244 +    if test "$GCC" != yes; then
 11.4245 +      with_gnu_ld=no
 11.4246 +    fi
 11.4247 +    ;;
 11.4248 +  interix*)
 11.4249 +    # we just hope/assume this is gcc and not c89 (= MSVC++)
 11.4250 +    with_gnu_ld=yes
 11.4251 +    ;;
 11.4252 +  openbsd*)
 11.4253 +    with_gnu_ld=no
 11.4254 +    ;;
 11.4255 +  esac
 11.4256 +
 11.4257 +  _LT_TAGVAR(ld_shlibs, $1)=yes
 11.4258 +  if test "$with_gnu_ld" = yes; then
 11.4259 +    # If archive_cmds runs LD, not CC, wlarc should be empty
 11.4260 +    wlarc='${wl}'
 11.4261 +
 11.4262 +    # Set some defaults for GNU ld with shared library support. These
 11.4263 +    # are reset later if shared libraries are not supported. Putting them
 11.4264 +    # here allows them to be overridden if necessary.
 11.4265 +    runpath_var=LD_RUN_PATH
 11.4266 +    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 11.4267 +    _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 11.4268 +    # ancient GNU ld didn't support --whole-archive et. al.
 11.4269 +    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
 11.4270 +      _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 11.4271 +    else
 11.4272 +      _LT_TAGVAR(whole_archive_flag_spec, $1)=
 11.4273 +    fi
 11.4274 +    supports_anon_versioning=no
 11.4275 +    case `$LD -v 2>&1` in
 11.4276 +      *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
 11.4277 +      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 11.4278 +      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 11.4279 +      *\ 2.11.*) ;; # other 2.11 versions
 11.4280 +      *) supports_anon_versioning=yes ;;
 11.4281 +    esac
 11.4282 +
 11.4283 +    # See if GNU ld supports shared libraries.
 11.4284 +    case $host_os in
 11.4285 +    aix[[3-9]]*)
 11.4286 +      # On AIX/PPC, the GNU linker is very broken
 11.4287 +      if test "$host_cpu" != ia64; then
 11.4288 +	_LT_TAGVAR(ld_shlibs, $1)=no
 11.4289 +	cat <<_LT_EOF 1>&2
 11.4290 +
 11.4291 +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 11.4292 +*** to be unable to reliably create shared libraries on AIX.
 11.4293 +*** Therefore, libtool is disabling shared libraries support.  If you
 11.4294 +*** really care for shared libraries, you may want to modify your PATH
 11.4295 +*** so that a non-GNU linker is found, and then restart.
 11.4296 +
 11.4297 +_LT_EOF
 11.4298 +      fi
 11.4299 +      ;;
 11.4300 +
 11.4301 +    amigaos*)
 11.4302 +      case $host_cpu in
 11.4303 +      powerpc)
 11.4304 +            # see comment about AmigaOS4 .so support
 11.4305 +            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 11.4306 +            _LT_TAGVAR(archive_expsym_cmds, $1)=''
 11.4307 +        ;;
 11.4308 +      m68k)
 11.4309 +            _LT_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)'
 11.4310 +            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 11.4311 +            _LT_TAGVAR(hardcode_minus_L, $1)=yes
 11.4312 +        ;;
 11.4313 +      esac
 11.4314 +      ;;
 11.4315 +
 11.4316 +    beos*)
 11.4317 +      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 11.4318 +	_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 11.4319 +	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 11.4320 +	# support --undefined.  This deserves some investigation.  FIXME
 11.4321 +	_LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 11.4322 +      else
 11.4323 +	_LT_TAGVAR(ld_shlibs, $1)=no
 11.4324 +      fi
 11.4325 +      ;;
 11.4326 +
 11.4327 +    cygwin* | mingw* | pw32* | cegcc*)
 11.4328 +      # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
 11.4329 +      # as there is no search path for DLLs.
 11.4330 +      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 11.4331 +      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 11.4332 +      _LT_TAGVAR(always_export_symbols, $1)=no
 11.4333 +      _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 11.4334 +      _LT_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'
 11.4335 +
 11.4336 +      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 11.4337 +        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 11.4338 +	# If the export-symbols file already is a .def file (1st line
 11.4339 +	# is EXPORTS), use it as is; otherwise, prepend...
 11.4340 +	_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 11.4341 +	  cp $export_symbols $output_objdir/$soname.def;
 11.4342 +	else
 11.4343 +	  echo EXPORTS > $output_objdir/$soname.def;
 11.4344 +	  cat $export_symbols >> $output_objdir/$soname.def;
 11.4345 +	fi~
 11.4346 +	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 11.4347 +      else
 11.4348 +	_LT_TAGVAR(ld_shlibs, $1)=no
 11.4349 +      fi
 11.4350 +      ;;
 11.4351 +
 11.4352 +    interix[[3-9]]*)
 11.4353 +      _LT_TAGVAR(hardcode_direct, $1)=no
 11.4354 +      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 11.4355 +      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 11.4356 +      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 11.4357 +      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 11.4358 +      # Instead, shared libraries are loaded at an image base (0x10000000 by
 11.4359 +      # default) and relocated if they conflict, which is a slow very memory
 11.4360 +      # consuming and fragmenting process.  To avoid this, we pick a random,
 11.4361 +      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 11.4362 +      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 11.4363 +      _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 11.4364 +      _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 11.4365 +      ;;
 11.4366 +
 11.4367 +    gnu* | linux* | tpf* | k*bsd*-gnu)
 11.4368 +      tmp_diet=no
 11.4369 +      if test "$host_os" = linux-dietlibc; then
 11.4370 +	case $cc_basename in
 11.4371 +	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
 11.4372 +	esac
 11.4373 +      fi
 11.4374 +      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
 11.4375 +	 && test "$tmp_diet" = no
 11.4376 +      then
 11.4377 +	tmp_addflag=
 11.4378 +	tmp_sharedflag='-shared'
 11.4379 +	case $cc_basename,$host_cpu in
 11.4380 +        pgcc*)				# Portland Group C compiler
 11.4381 +	  _LT_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'
 11.4382 +	  tmp_addflag=' $pic_flag'
 11.4383 +	  ;;
 11.4384 +	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
 11.4385 +	  _LT_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'
 11.4386 +	  tmp_addflag=' $pic_flag -Mnomain' ;;
 11.4387 +	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
 11.4388 +	  tmp_addflag=' -i_dynamic' ;;
 11.4389 +	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
 11.4390 +	  tmp_addflag=' -i_dynamic -nofor_main' ;;
 11.4391 +	ifc* | ifort*)			# Intel Fortran compiler
 11.4392 +	  tmp_addflag=' -nofor_main' ;;
 11.4393 +	lf95*)				# Lahey Fortran 8.1
 11.4394 +	  _LT_TAGVAR(whole_archive_flag_spec, $1)=
 11.4395 +	  tmp_sharedflag='--shared' ;;
 11.4396 +	xl[[cC]]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
 11.4397 +	  tmp_sharedflag='-qmkshrobj'
 11.4398 +	  tmp_addflag= ;;
 11.4399 +	esac
 11.4400 +	case `$CC -V 2>&1 | sed 5q` in
 11.4401 +	*Sun\ C*)			# Sun C 5.9
 11.4402 +	  _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
 11.4403 +	  _LT_TAGVAR(compiler_needs_object, $1)=yes
 11.4404 +	  tmp_sharedflag='-G' ;;
 11.4405 +	*Sun\ F*)			# Sun Fortran 8.3
 11.4406 +	  tmp_sharedflag='-G' ;;
 11.4407 +	esac
 11.4408 +	_LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 11.4409 +
 11.4410 +        if test "x$supports_anon_versioning" = xyes; then
 11.4411 +          _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
 11.4412 +	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 11.4413 +	    echo "local: *; };" >> $output_objdir/$libname.ver~
 11.4414 +	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 11.4415 +        fi
 11.4416 +
 11.4417 +	case $cc_basename in
 11.4418 +	xlf*)
 11.4419 +	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
 11.4420 +	  _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
 11.4421 +	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
 11.4422 +	  _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
 11.4423 +	  _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
 11.4424 +	  if test "x$supports_anon_versioning" = xyes; then
 11.4425 +	    _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
 11.4426 +	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 11.4427 +	      echo "local: *; };" >> $output_objdir/$libname.ver~
 11.4428 +	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
 11.4429 +	  fi
 11.4430 +	  ;;
 11.4431 +	esac
 11.4432 +      else
 11.4433 +        _LT_TAGVAR(ld_shlibs, $1)=no
 11.4434 +      fi
 11.4435 +      ;;
 11.4436 +
 11.4437 +    netbsd*)
 11.4438 +      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 11.4439 +	_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 11.4440 +	wlarc=
 11.4441 +      else
 11.4442 +	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 11.4443 +	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 11.4444 +      fi
 11.4445 +      ;;
 11.4446 +
 11.4447 +    solaris*)
 11.4448 +      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
 11.4449 +	_LT_TAGVAR(ld_shlibs, $1)=no
 11.4450 +	cat <<_LT_EOF 1>&2
 11.4451 +
 11.4452 +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 11.4453 +*** create shared libraries on Solaris systems.  Therefore, libtool
 11.4454 +*** is disabling shared libraries support.  We urge you to upgrade GNU
 11.4455 +*** binutils to release 2.9.1 or newer.  Another option is to modify
 11.4456 +*** your PATH or compiler configuration so that the native linker is
 11.4457 +*** used, and then restart.
 11.4458 +
 11.4459 +_LT_EOF
 11.4460 +      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 11.4461 +	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 11.4462 +	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 11.4463 +      else
 11.4464 +	_LT_TAGVAR(ld_shlibs, $1)=no
 11.4465 +      fi
 11.4466 +      ;;
 11.4467 +
 11.4468 +    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 11.4469 +      case `$LD -v 2>&1` in
 11.4470 +        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
 11.4471 +	_LT_TAGVAR(ld_shlibs, $1)=no
 11.4472 +	cat <<_LT_EOF 1>&2
 11.4473 +
 11.4474 +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 11.4475 +*** reliably create shared libraries on SCO systems.  Therefore, libtool
 11.4476 +*** is disabling shared libraries support.  We urge you to upgrade GNU
 11.4477 +*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 11.4478 +*** your PATH or compiler configuration so that the native linker is
 11.4479 +*** used, and then restart.
 11.4480 +
 11.4481 +_LT_EOF
 11.4482 +	;;
 11.4483 +	*)
 11.4484 +	  # For security reasons, it is highly recommended that you always
 11.4485 +	  # use absolute paths for naming shared libraries, and exclude the
 11.4486 +	  # DT_RUNPATH tag from executables and libraries.  But doing so
 11.4487 +	  # requires that you compile everything twice, which is a pain.
 11.4488 +	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 11.4489 +	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 11.4490 +	    _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 11.4491 +	    _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 11.4492 +	  else
 11.4493 +	    _LT_TAGVAR(ld_shlibs, $1)=no
 11.4494 +	  fi
 11.4495 +	;;
 11.4496 +      esac
 11.4497 +      ;;
 11.4498 +
 11.4499 +    sunos4*)
 11.4500 +      _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 11.4501 +      wlarc=
 11.4502 +      _LT_TAGVAR(hardcode_direct, $1)=yes
 11.4503 +      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 11.4504 +      ;;
 11.4505 +
 11.4506 +    *)
 11.4507 +      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 11.4508 +	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 11.4509 +	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 11.4510 +      else
 11.4511 +	_LT_TAGVAR(ld_shlibs, $1)=no
 11.4512 +      fi
 11.4513 +      ;;
 11.4514 +    esac
 11.4515 +
 11.4516 +    if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
 11.4517 +      runpath_var=
 11.4518 +      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
 11.4519 +      _LT_TAGVAR(export_dynamic_flag_spec, $1)=
 11.4520 +      _LT_TAGVAR(whole_archive_flag_spec, $1)=
 11.4521 +    fi
 11.4522 +  else
 11.4523 +    # PORTME fill in a description of your system's linker (not GNU ld)
 11.4524 +    case $host_os in
 11.4525 +    aix3*)
 11.4526 +      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 11.4527 +      _LT_TAGVAR(always_export_symbols, $1)=yes
 11.4528 +      _LT_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'
 11.4529 +      # Note: this linker hardcodes the directories in LIBPATH if there
 11.4530 +      # are no directories specified by -L.
 11.4531 +      _LT_TAGVAR(hardcode_minus_L, $1)=yes
 11.4532 +      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 11.4533 +	# Neither direct hardcoding nor static linking is supported with a
 11.4534 +	# broken collect2.
 11.4535 +	_LT_TAGVAR(hardcode_direct, $1)=unsupported
 11.4536 +      fi
 11.4537 +      ;;
 11.4538 +
 11.4539 +    aix[[4-9]]*)
 11.4540 +      if test "$host_cpu" = ia64; then
 11.4541 +	# On IA64, the linker does run time linking by default, so we don't
 11.4542 +	# have to do anything special.
 11.4543 +	aix_use_runtimelinking=no
 11.4544 +	exp_sym_flag='-Bexport'
 11.4545 +	no_entry_flag=""
 11.4546 +      else
 11.4547 +	# If we're using GNU nm, then we don't want the "-C" option.
 11.4548 +	# -C means demangle to AIX nm, but means don't demangle with GNU nm
 11.4549 +	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
 11.4550 +	  _LT_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'
 11.4551 +	else
 11.4552 +	  _LT_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'
 11.4553 +	fi
 11.4554 +	aix_use_runtimelinking=no
 11.4555 +
 11.4556 +	# Test if we are trying to use run time linking or normal
 11.4557 +	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
 11.4558 +	# need to do runtime linking.
 11.4559 +	case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
 11.4560 +	  for ld_flag in $LDFLAGS; do
 11.4561 +	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 11.4562 +	    aix_use_runtimelinking=yes
 11.4563 +	    break
 11.4564 +	  fi
 11.4565 +	  done
 11.4566 +	  ;;
 11.4567 +	esac
 11.4568 +
 11.4569 +	exp_sym_flag='-bexport'
 11.4570 +	no_entry_flag='-bnoentry'
 11.4571 +      fi
 11.4572 +
 11.4573 +      # When large executables or shared objects are built, AIX ld can
 11.4574 +      # have problems creating the table of contents.  If linking a library
 11.4575 +      # or program results in "error TOC overflow" add -mminimal-toc to
 11.4576 +      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 11.4577 +      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 11.4578 +
 11.4579 +      _LT_TAGVAR(archive_cmds, $1)=''
 11.4580 +      _LT_TAGVAR(hardcode_direct, $1)=yes
 11.4581 +      _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 11.4582 +      _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
 11.4583 +      _LT_TAGVAR(link_all_deplibs, $1)=yes
 11.4584 +      _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
 11.4585 +
 11.4586 +      if test "$GCC" = yes; then
 11.4587 +	case $host_os in aix4.[[012]]|aix4.[[012]].*)
 11.4588 +	# We only want to do this on AIX 4.2 and lower, the check
 11.4589 +	# below for broken collect2 doesn't work under 4.3+
 11.4590 +	  collect2name=`${CC} -print-prog-name=collect2`
 11.4591 +	  if test -f "$collect2name" &&
 11.4592 +	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
 11.4593 +	  then
 11.4594 +	  # We have reworked collect2
 11.4595 +	  :
 11.4596 +	  else
 11.4597 +	  # We have old collect2
 11.4598 +	  _LT_TAGVAR(hardcode_direct, $1)=unsupported
 11.4599 +	  # It fails to find uninstalled libraries when the uninstalled
 11.4600 +	  # path is not listed in the libpath.  Setting hardcode_minus_L
 11.4601 +	  # to unsupported forces relinking
 11.4602 +	  _LT_TAGVAR(hardcode_minus_L, $1)=yes
 11.4603 +	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 11.4604 +	  _LT_TAGVAR(hardcode_libdir_separator, $1)=
 11.4605 +	  fi
 11.4606 +	  ;;
 11.4607 +	esac
 11.4608 +	shared_flag='-shared'
 11.4609 +	if test "$aix_use_runtimelinking" = yes; then
 11.4610 +	  shared_flag="$shared_flag "'${wl}-G'
 11.4611 +	fi
 11.4612 +      else
 11.4613 +	# not using gcc
 11.4614 +	if test "$host_cpu" = ia64; then
 11.4615 +	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 11.4616 +	# chokes on -Wl,-G. The following line is correct:
 11.4617 +	  shared_flag='-G'
 11.4618 +	else
 11.4619 +	  if test "$aix_use_runtimelinking" = yes; then
 11.4620 +	    shared_flag='${wl}-G'
 11.4621 +	  else
 11.4622 +	    shared_flag='${wl}-bM:SRE'
 11.4623 +	  fi
 11.4624 +	fi
 11.4625 +      fi
 11.4626 +
 11.4627 +      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
 11.4628 +      # It seems that -bexpall does not export symbols beginning with
 11.4629 +      # underscore (_), so it is better to generate a list of symbols to export.
 11.4630 +      _LT_TAGVAR(always_export_symbols, $1)=yes
 11.4631 +      if test "$aix_use_runtimelinking" = yes; then
 11.4632 +	# Warning - without using the other runtime loading flags (-brtl),
 11.4633 +	# -berok will link without error, but may produce a broken library.
 11.4634 +	_LT_TAGVAR(allow_undefined_flag, $1)='-berok'
 11.4635 +        # Determine the default libpath from the value encoded in an
 11.4636 +        # empty executable.
 11.4637 +        _LT_SYS_MODULE_PATH_AIX
 11.4638 +        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
 11.4639 +        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 11.4640 +      else
 11.4641 +	if test "$host_cpu" = ia64; then
 11.4642 +	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
 11.4643 +	  _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
 11.4644 +	  _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
 11.4645 +	else
 11.4646 +	 # Determine the default libpath from the value encoded in an
 11.4647 +	 # empty executable.
 11.4648 +	 _LT_SYS_MODULE_PATH_AIX
 11.4649 +	 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
 11.4650 +	  # Warning - without using the other run time loading flags,
 11.4651 +	  # -berok will link without error, but may produce a broken library.
 11.4652 +	  _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
 11.4653 +	  _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
 11.4654 +	  # Exported symbols can be pulled into shared objects from archives
 11.4655 +	  _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
 11.4656 +	  _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
 11.4657 +	  # This is similar to how AIX traditionally builds its shared libraries.
 11.4658 +	  _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 11.4659 +	fi
 11.4660 +      fi
 11.4661 +      ;;
 11.4662 +
 11.4663 +    amigaos*)
 11.4664 +      case $host_cpu in
 11.4665 +      powerpc)
 11.4666 +            # see comment about AmigaOS4 .so support
 11.4667 +            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 11.4668 +            _LT_TAGVAR(archive_expsym_cmds, $1)=''
 11.4669 +        ;;
 11.4670 +      m68k)
 11.4671 +            _LT_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)'
 11.4672 +            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 11.4673 +            _LT_TAGVAR(hardcode_minus_L, $1)=yes
 11.4674 +        ;;
 11.4675 +      esac
 11.4676 +      ;;
 11.4677 +
 11.4678 +    bsdi[[45]]*)
 11.4679 +      _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
 11.4680 +      ;;
 11.4681 +
 11.4682 +    cygwin* | mingw* | pw32* | cegcc*)
 11.4683 +      # When not using gcc, we currently assume that we are using
 11.4684 +      # Microsoft Visual C++.
 11.4685 +      # hardcode_libdir_flag_spec is actually meaningless, as there is
 11.4686 +      # no search path for DLLs.
 11.4687 +      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
 11.4688 +      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 11.4689 +      # Tell ltmain to make .lib files, not .a files.
 11.4690 +      libext=lib
 11.4691 +      # Tell ltmain to make .dll files, not .so files.
 11.4692 +      shrext_cmds=".dll"
 11.4693 +      # FIXME: Setting linknames here is a bad hack.
 11.4694 +      _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
 11.4695 +      # The linker will automatically build a .lib file if we build a DLL.
 11.4696 +      _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
 11.4697 +      # FIXME: Should let the user specify the lib program.
 11.4698 +      _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
 11.4699 +      _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
 11.4700 +      _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 11.4701 +      ;;
 11.4702 +
 11.4703 +    darwin* | rhapsody*)
 11.4704 +      _LT_DARWIN_LINKER_FEATURES($1)
 11.4705 +      ;;
 11.4706 +
 11.4707 +    dgux*)
 11.4708 +      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 11.4709 +      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 11.4710 +      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 11.4711 +      ;;
 11.4712 +
 11.4713 +    freebsd1*)
 11.4714 +      _LT_TAGVAR(ld_shlibs, $1)=no
 11.4715 +      ;;
 11.4716 +
 11.4717 +    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 11.4718 +    # support.  Future versions do this automatically, but an explicit c++rt0.o
 11.4719 +    # does not break anything, and helps significantly (at the cost of a little
 11.4720 +    # extra space).
 11.4721 +    freebsd2.2*)
 11.4722 +      _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 11.4723 +      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 11.4724 +      _LT_TAGVAR(hardcode_direct, $1)=yes
 11.4725 +      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 11.4726 +      ;;
 11.4727 +
 11.4728 +    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 11.4729 +    freebsd2*)
 11.4730 +      _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 11.4731 +      _LT_TAGVAR(hardcode_direct, $1)=yes
 11.4732 +      _LT_TAGVAR(hardcode_minus_L, $1)=yes
 11.4733 +      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 11.4734 +      ;;
 11.4735 +
 11.4736 +    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 11.4737 +    freebsd* | dragonfly*)
 11.4738 +      _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 11.4739 +      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 11.4740 +      _LT_TAGVAR(hardcode_direct, $1)=yes
 11.4741 +      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 11.4742 +      ;;
 11.4743 +
 11.4744 +    hpux9*)
 11.4745 +      if test "$GCC" = yes; then
 11.4746 +	_LT_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'
 11.4747 +      else
 11.4748 +	_LT_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'
 11.4749 +      fi
 11.4750 +      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 11.4751 +      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 11.4752 +      _LT_TAGVAR(hardcode_direct, $1)=yes
 11.4753 +
 11.4754 +      # hardcode_minus_L: Not really in the search PATH,
 11.4755 +      # but as the default location of the library.
 11.4756 +      _LT_TAGVAR(hardcode_minus_L, $1)=yes
 11.4757 +      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 11.4758 +      ;;
 11.4759 +
 11.4760 +    hpux10*)
 11.4761 +      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 11.4762 +	_LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 11.4763 +      else
 11.4764 +	_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 11.4765 +      fi
 11.4766 +      if test "$with_gnu_ld" = no; then
 11.4767 +	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 11.4768 +	_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
 11.4769 +	_LT_TAGVAR(hardcode_libdir_separator, $1)=:
 11.4770 +	_LT_TAGVAR(hardcode_direct, $1)=yes
 11.4771 +	_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 11.4772 +	_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 11.4773 +	# hardcode_minus_L: Not really in the search PATH,
 11.4774 +	# but as the default location of the library.
 11.4775 +	_LT_TAGVAR(hardcode_minus_L, $1)=yes
 11.4776 +      fi
 11.4777 +      ;;
 11.4778 +
 11.4779 +    hpux11*)
 11.4780 +      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 11.4781 +	case $host_cpu in
 11.4782 +	hppa*64*)
 11.4783 +	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 11.4784 +	  ;;
 11.4785 +	ia64*)
 11.4786 +	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 11.4787 +	  ;;
 11.4788 +	*)
 11.4789 +	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 11.4790 +	  ;;
 11.4791 +	esac
 11.4792 +      else
 11.4793 +	case $host_cpu in
 11.4794 +	hppa*64*)
 11.4795 +	  _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 11.4796 +	  ;;
 11.4797 +	ia64*)
 11.4798 +	  _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 11.4799 +	  ;;
 11.4800 +	*)
 11.4801 +	  _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 11.4802 +	  ;;
 11.4803 +	esac
 11.4804 +      fi
 11.4805 +      if test "$with_gnu_ld" = no; then
 11.4806 +	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 11.4807 +	_LT_TAGVAR(hardcode_libdir_separator, $1)=:
 11.4808 +
 11.4809 +	case $host_cpu in
 11.4810 +	hppa*64*|ia64*)
 11.4811 +	  _LT_TAGVAR(hardcode_direct, $1)=no
 11.4812 +	  _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 11.4813 +	  ;;
 11.4814 +	*)
 11.4815 +	  _LT_TAGVAR(hardcode_direct, $1)=yes
 11.4816 +	  _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 11.4817 +	  _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 11.4818 +
 11.4819 +	  # hardcode_minus_L: Not really in the search PATH,
 11.4820 +	  # but as the default location of the library.
 11.4821 +	  _LT_TAGVAR(hardcode_minus_L, $1)=yes
 11.4822 +	  ;;
 11.4823 +	esac
 11.4824 +      fi
 11.4825 +      ;;
 11.4826 +
 11.4827 +    irix5* | irix6* | nonstopux*)
 11.4828 +      if test "$GCC" = yes; then
 11.4829 +	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 11.4830 +	# Try to use the -exported_symbol ld option, if it does not
 11.4831 +	# work, assume that -exports_file does not work either and
 11.4832 +	# implicitly export all symbols.
 11.4833 +        save_LDFLAGS="$LDFLAGS"
 11.4834 +        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
 11.4835 +        AC_LINK_IFELSE(int foo(void) {},
 11.4836 +          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
 11.4837 +        )
 11.4838 +        LDFLAGS="$save_LDFLAGS"
 11.4839 +      else
 11.4840 +	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 11.4841 +	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
 11.4842 +      fi
 11.4843 +      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
 11.4844 +      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 11.4845 +      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 11.4846 +      _LT_TAGVAR(inherit_rpath, $1)=yes
 11.4847 +      _LT_TAGVAR(link_all_deplibs, $1)=yes
 11.4848 +      ;;
 11.4849 +
 11.4850 +    netbsd*)
 11.4851 +      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 11.4852 +	_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 11.4853 +      else
 11.4854 +	_LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 11.4855 +      fi
 11.4856 +      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 11.4857 +      _LT_TAGVAR(hardcode_direct, $1)=yes
 11.4858 +      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 11.4859 +      ;;
 11.4860 +
 11.4861 +    newsos6)
 11.4862 +      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 11.4863 +      _LT_TAGVAR(hardcode_direct, $1)=yes
 11.4864 +      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 11.4865 +      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 11.4866 +      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 11.4867 +      ;;
 11.4868 +
 11.4869 +    *nto* | *qnx*)
 11.4870 +      ;;
 11.4871 +
 11.4872 +    openbsd*)
 11.4873 +      if test -f /usr/libexec/ld.so; then
 11.4874 +	_LT_TAGVAR(hardcode_direct, $1)=yes
 11.4875 +	_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 11.4876 +	_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 11.4877 +	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 11.4878 +	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 11.4879 +	  _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 11.4880 +	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 11.4881 +	  _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 11.4882 +	else
 11.4883 +	  case $host_os in
 11.4884 +	   openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
 11.4885 +	     _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 11.4886 +	     _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 11.4887 +	     ;;
 11.4888 +	   *)
 11.4889 +	     _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 11.4890 +	     _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 11.4891 +	     ;;
 11.4892 +	  esac
 11.4893 +	fi
 11.4894 +      else
 11.4895 +	_LT_TAGVAR(ld_shlibs, $1)=no
 11.4896 +      fi
 11.4897 +      ;;
 11.4898 +
 11.4899 +    os2*)
 11.4900 +      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 11.4901 +      _LT_TAGVAR(hardcode_minus_L, $1)=yes
 11.4902 +      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 11.4903 +      _LT_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'
 11.4904 +      _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 11.4905 +      ;;
 11.4906 +
 11.4907 +    osf3*)
 11.4908 +      if test "$GCC" = yes; then
 11.4909 +	_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
 11.4910 +	_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 11.4911 +      else
 11.4912 +	_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
 11.4913 +	_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 11.4914 +      fi
 11.4915 +      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
 11.4916 +      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 11.4917 +      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 11.4918 +      ;;
 11.4919 +
 11.4920 +    osf4* | osf5*)	# as osf3* with the addition of -msym flag
 11.4921 +      if test "$GCC" = yes; then
 11.4922 +	_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
 11.4923 +	_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 11.4924 +	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 11.4925 +      else
 11.4926 +	_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
 11.4927 +	_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 11.4928 +	_LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
 11.4929 +	$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
 11.4930 +
 11.4931 +	# Both c and cxx compiler support -rpath directly
 11.4932 +	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
 11.4933 +      fi
 11.4934 +      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
 11.4935 +      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 11.4936 +      ;;
 11.4937 +
 11.4938 +    solaris*)
 11.4939 +      _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
 11.4940 +      if test "$GCC" = yes; then
 11.4941 +	wlarc='${wl}'
 11.4942 +	_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 11.4943 +	_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 11.4944 +	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 11.4945 +      else
 11.4946 +	case `$CC -V 2>&1` in
 11.4947 +	*"Compilers 5.0"*)
 11.4948 +	  wlarc=''
 11.4949 +	  _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 11.4950 +	  _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 11.4951 +	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
 11.4952 +	  ;;
 11.4953 +	*)
 11.4954 +	  wlarc='${wl}'
 11.4955 +	  _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
 11.4956 +	  _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 11.4957 +	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 11.4958 +	  ;;
 11.4959 +	esac
 11.4960 +      fi
 11.4961 +      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 11.4962 +      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 11.4963 +      case $host_os in
 11.4964 +      solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
 11.4965 +      *)
 11.4966 +	# The compiler driver will combine and reorder linker options,
 11.4967 +	# but understands `-z linker_flag'.  GCC discards it without `$wl',
 11.4968 +	# but is careful enough not to reorder.
 11.4969 +	# Supported since Solaris 2.6 (maybe 2.5.1?)
 11.4970 +	if test "$GCC" = yes; then
 11.4971 +	  _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 11.4972 +	else
 11.4973 +	  _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
 11.4974 +	fi
 11.4975 +	;;
 11.4976 +      esac
 11.4977 +      _LT_TAGVAR(link_all_deplibs, $1)=yes
 11.4978 +      ;;
 11.4979 +
 11.4980 +    sunos4*)
 11.4981 +      if test "x$host_vendor" = xsequent; then
 11.4982 +	# Use $CC to link under sequent, because it throws in some extra .o
 11.4983 +	# files that make .init and .fini sections work.
 11.4984 +	_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 11.4985 +      else
 11.4986 +	_LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 11.4987 +      fi
 11.4988 +      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 11.4989 +      _LT_TAGVAR(hardcode_direct, $1)=yes
 11.4990 +      _LT_TAGVAR(hardcode_minus_L, $1)=yes
 11.4991 +      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 11.4992 +      ;;
 11.4993 +
 11.4994 +    sysv4)
 11.4995 +      case $host_vendor in
 11.4996 +	sni)
 11.4997 +	  _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 11.4998 +	  _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
 11.4999 +	;;
 11.5000 +	siemens)
 11.5001 +	  ## LD is ld it makes a PLAMLIB
 11.5002 +	  ## CC just makes a GrossModule.
 11.5003 +	  _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 11.5004 +	  _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
 11.5005 +	  _LT_TAGVAR(hardcode_direct, $1)=no
 11.5006 +        ;;
 11.5007 +	motorola)
 11.5008 +	  _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 11.5009 +	  _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
 11.5010 +	;;
 11.5011 +      esac
 11.5012 +      runpath_var='LD_RUN_PATH'
 11.5013 +      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 11.5014 +      ;;
 11.5015 +
 11.5016 +    sysv4.3*)
 11.5017 +      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 11.5018 +      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 11.5019 +      _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
 11.5020 +      ;;
 11.5021 +
 11.5022 +    sysv4*MP*)
 11.5023 +      if test -d /usr/nec; then
 11.5024 +	_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 11.5025 +	_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 11.5026 +	runpath_var=LD_RUN_PATH
 11.5027 +	hardcode_runpath_var=yes
 11.5028 +	_LT_TAGVAR(ld_shlibs, $1)=yes
 11.5029 +      fi
 11.5030 +      ;;
 11.5031 +
 11.5032 +    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
 11.5033 +      _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 11.5034 +      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 11.5035 +      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 11.5036 +      runpath_var='LD_RUN_PATH'
 11.5037 +
 11.5038 +      if test "$GCC" = yes; then
 11.5039 +	_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 11.5040 +	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 11.5041 +      else
 11.5042 +	_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 11.5043 +	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 11.5044 +      fi
 11.5045 +      ;;
 11.5046 +
 11.5047 +    sysv5* | sco3.2v5* | sco5v6*)
 11.5048 +      # Note: We can NOT use -z defs as we might desire, because we do not
 11.5049 +      # link with -lc, and that would cause any symbols used from libc to
 11.5050 +      # always be unresolved, which means just about no library would
 11.5051 +      # ever link correctly.  If we're not using GNU ld we use -z text
 11.5052 +      # though, which does catch some bad symbols but isn't as heavy-handed
 11.5053 +      # as -z defs.
 11.5054 +      _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 11.5055 +      _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
 11.5056 +      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 11.5057 +      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 11.5058 +      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
 11.5059 +      _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
 11.5060 +      _LT_TAGVAR(link_all_deplibs, $1)=yes
 11.5061 +      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
 11.5062 +      runpath_var='LD_RUN_PATH'
 11.5063 +
 11.5064 +      if test "$GCC" = yes; then
 11.5065 +	_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 11.5066 +	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 11.5067 +      else
 11.5068 +	_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 11.5069 +	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 11.5070 +      fi
 11.5071 +      ;;
 11.5072 +
 11.5073 +    uts4*)
 11.5074 +      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 11.5075 +      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 11.5076 +      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 11.5077 +      ;;
 11.5078 +
 11.5079 +    *)
 11.5080 +      _LT_TAGVAR(ld_shlibs, $1)=no
 11.5081 +      ;;
 11.5082 +    esac
 11.5083 +
 11.5084 +    if test x$host_vendor = xsni; then
 11.5085 +      case $host in
 11.5086 +      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 11.5087 +	_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
 11.5088 +	;;
 11.5089 +      esac
 11.5090 +    fi
 11.5091 +  fi
 11.5092 +])
 11.5093 +AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
 11.5094 +test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
 11.5095 +
 11.5096 +_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
 11.5097 +
 11.5098 +_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
 11.5099 +_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
 11.5100 +_LT_DECL([], [extract_expsyms_cmds], [2],
 11.5101 +    [The commands to extract the exported symbol list from a shared archive])
 11.5102 +
 11.5103 +#
 11.5104 +# Do we need to explicitly link libc?
 11.5105 +#
 11.5106 +case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
 11.5107 +x|xyes)
 11.5108 +  # Assume -lc should be added
 11.5109 +  _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
 11.5110 +
 11.5111 +  if test "$enable_shared" = yes && test "$GCC" = yes; then
 11.5112 +    case $_LT_TAGVAR(archive_cmds, $1) in
 11.5113 +    *'~'*)
 11.5114 +      # FIXME: we may have to deal with multi-command sequences.
 11.5115 +      ;;
 11.5116 +    '$CC '*)
 11.5117 +      # Test whether the compiler implicitly links with -lc since on some
 11.5118 +      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 11.5119 +      # to ld, don't add -lc before -lgcc.
 11.5120 +      AC_MSG_CHECKING([whether -lc should be explicitly linked in])
 11.5121 +      $RM conftest*
 11.5122 +      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 11.5123 +
 11.5124 +      if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
 11.5125 +        soname=conftest
 11.5126 +        lib=conftest
 11.5127 +        libobjs=conftest.$ac_objext
 11.5128 +        deplibs=
 11.5129 +        wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
 11.5130 +	pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
 11.5131 +        compiler_flags=-v
 11.5132 +        linker_flags=-v
 11.5133 +        verstring=
 11.5134 +        output_objdir=.
 11.5135 +        libname=conftest
 11.5136 +        lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
 11.5137 +        _LT_TAGVAR(allow_undefined_flag, $1)=
 11.5138 +        if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
 11.5139 +        then
 11.5140 +	  _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 11.5141 +        else
 11.5142 +	  _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
 11.5143 +        fi
 11.5144 +        _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
 11.5145 +      else
 11.5146 +        cat conftest.err 1>&5
 11.5147 +      fi
 11.5148 +      $RM conftest*
 11.5149 +      AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
 11.5150 +      ;;
 11.5151 +    esac
 11.5152 +  fi
 11.5153 +  ;;
 11.5154 +esac
 11.5155 +
 11.5156 +_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
 11.5157 +    [Whether or not to add -lc for building shared libraries])
 11.5158 +_LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
 11.5159 +    [enable_shared_with_static_runtimes], [0],
 11.5160 +    [Whether or not to disallow shared libs when runtime libs are static])
 11.5161 +_LT_TAGDECL([], [export_dynamic_flag_spec], [1],
 11.5162 +    [Compiler flag to allow reflexive dlopens])
 11.5163 +_LT_TAGDECL([], [whole_archive_flag_spec], [1],
 11.5164 +    [Compiler flag to generate shared objects directly from archives])
 11.5165 +_LT_TAGDECL([], [compiler_needs_object], [1],
 11.5166 +    [Whether the compiler copes with passing no objects directly])
 11.5167 +_LT_TAGDECL([], [old_archive_from_new_cmds], [2],
 11.5168 +    [Create an old-style archive from a shared archive])
 11.5169 +_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
 11.5170 +    [Create a temporary old-style archive to link instead of a shared archive])
 11.5171 +_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
 11.5172 +_LT_TAGDECL([], [archive_expsym_cmds], [2])
 11.5173 +_LT_TAGDECL([], [module_cmds], [2],
 11.5174 +    [Commands used to build a loadable module if different from building
 11.5175 +    a shared archive.])
 11.5176 +_LT_TAGDECL([], [module_expsym_cmds], [2])
 11.5177 +_LT_TAGDECL([], [with_gnu_ld], [1],
 11.5178 +    [Whether we are building with GNU ld or not])
 11.5179 +_LT_TAGDECL([], [allow_undefined_flag], [1],
 11.5180 +    [Flag that allows shared libraries with undefined symbols to be built])
 11.5181 +_LT_TAGDECL([], [no_undefined_flag], [1],
 11.5182 +    [Flag that enforces no undefined symbols])
 11.5183 +_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
 11.5184 +    [Flag to hardcode $libdir into a binary during linking.
 11.5185 +    This must work even if $libdir does not exist])
 11.5186 +_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
 11.5187 +    [[If ld is used when linking, flag to hardcode $libdir into a binary
 11.5188 +    during linking.  This must work even if $libdir does not exist]])
 11.5189 +_LT_TAGDECL([], [hardcode_libdir_separator], [1],
 11.5190 +    [Whether we need a single "-rpath" flag with a separated argument])
 11.5191 +_LT_TAGDECL([], [hardcode_direct], [0],
 11.5192 +    [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
 11.5193 +    DIR into the resulting binary])
 11.5194 +_LT_TAGDECL([], [hardcode_direct_absolute], [0],
 11.5195 +    [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
 11.5196 +    DIR into the resulting binary and the resulting library dependency is
 11.5197 +    "absolute", i.e impossible to change by setting ${shlibpath_var} if the
 11.5198 +    library is relocated])
 11.5199 +_LT_TAGDECL([], [hardcode_minus_L], [0],
 11.5200 +    [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
 11.5201 +    into the resulting binary])
 11.5202 +_LT_TAGDECL([], [hardcode_shlibpath_var], [0],
 11.5203 +    [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
 11.5204 +    into the resulting binary])
 11.5205 +_LT_TAGDECL([], [hardcode_automatic], [0],
 11.5206 +    [Set to "yes" if building a shared library automatically hardcodes DIR
 11.5207 +    into the library and all subsequent libraries and executables linked
 11.5208 +    against it])
 11.5209 +_LT_TAGDECL([], [inherit_rpath], [0],
 11.5210 +    [Set to yes if linker adds runtime paths of dependent libraries
 11.5211 +    to runtime path list])
 11.5212 +_LT_TAGDECL([], [link_all_deplibs], [0],
 11.5213 +    [Whether libtool must link a program against all its dependency libraries])
 11.5214 +_LT_TAGDECL([], [fix_srcfile_path], [1],
 11.5215 +    [Fix the shell variable $srcfile for the compiler])
 11.5216 +_LT_TAGDECL([], [always_export_symbols], [0],
 11.5217 +    [Set to "yes" if exported symbols are required])
 11.5218 +_LT_TAGDECL([], [export_symbols_cmds], [2],
 11.5219 +    [The commands to list exported symbols])
 11.5220 +_LT_TAGDECL([], [exclude_expsyms], [1],
 11.5221 +    [Symbols that should not be listed in the preloaded symbols])
 11.5222 +_LT_TAGDECL([], [include_expsyms], [1],
 11.5223 +    [Symbols that must always be exported])
 11.5224 +_LT_TAGDECL([], [prelink_cmds], [2],
 11.5225 +    [Commands necessary for linking programs (against libraries) with templates])
 11.5226 +_LT_TAGDECL([], [file_list_spec], [1],
 11.5227 +    [Specify filename containing input files])
 11.5228 +dnl FIXME: Not yet implemented
 11.5229 +dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
 11.5230 +dnl    [Compiler flag to generate thread safe objects])
 11.5231 +])# _LT_LINKER_SHLIBS
 11.5232 +
 11.5233 +
 11.5234 +# _LT_LANG_C_CONFIG([TAG])
 11.5235 +# ------------------------
 11.5236 +# Ensure that the configuration variables for a C compiler are suitably
 11.5237 +# defined.  These variables are subsequently used by _LT_CONFIG to write
 11.5238 +# the compiler configuration to `libtool'.
 11.5239 +m4_defun([_LT_LANG_C_CONFIG],
 11.5240 +[m4_require([_LT_DECL_EGREP])dnl
 11.5241 +lt_save_CC="$CC"
 11.5242 +AC_LANG_PUSH(C)
 11.5243 +
 11.5244 +# Source file extension for C test sources.
 11.5245 +ac_ext=c
 11.5246 +
 11.5247 +# Object file extension for compiled C test sources.
 11.5248 +objext=o
 11.5249 +_LT_TAGVAR(objext, $1)=$objext
 11.5250 +
 11.5251 +# Code to be used in simple compile tests
 11.5252 +lt_simple_compile_test_code="int some_variable = 0;"
 11.5253 +
 11.5254 +# Code to be used in simple link tests
 11.5255 +lt_simple_link_test_code='int main(){return(0);}'
 11.5256 +
 11.5257 +_LT_TAG_COMPILER
 11.5258 +# Save the default compiler, since it gets overwritten when the other
 11.5259 +# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
 11.5260 +compiler_DEFAULT=$CC
 11.5261 +
 11.5262 +# save warnings/boilerplate of simple test code
 11.5263 +_LT_COMPILER_BOILERPLATE
 11.5264 +_LT_LINKER_BOILERPLATE
 11.5265 +
 11.5266 +## CAVEAT EMPTOR:
 11.5267 +## There is no encapsulation within the following macros, do not change
 11.5268 +## the running order or otherwise move them around unless you know exactly
 11.5269 +## what you are doing...
 11.5270 +if test -n "$compiler"; then
 11.5271 +  _LT_COMPILER_NO_RTTI($1)
 11.5272 +  _LT_COMPILER_PIC($1)
 11.5273 +  _LT_COMPILER_C_O($1)
 11.5274 +  _LT_COMPILER_FILE_LOCKS($1)
 11.5275 +  _LT_LINKER_SHLIBS($1)
 11.5276 +  _LT_SYS_DYNAMIC_LINKER($1)
 11.5277 +  _LT_LINKER_HARDCODE_LIBPATH($1)
 11.5278 +  LT_SYS_DLOPEN_SELF
 11.5279 +  _LT_CMD_STRIPLIB
 11.5280 +
 11.5281 +  # Report which library types will actually be built
 11.5282 +  AC_MSG_CHECKING([if libtool supports shared libraries])
 11.5283 +  AC_MSG_RESULT([$can_build_shared])
 11.5284 +
 11.5285 +  AC_MSG_CHECKING([whether to build shared libraries])
 11.5286 +  test "$can_build_shared" = "no" && enable_shared=no
 11.5287 +
 11.5288 +  # On AIX, shared libraries and static libraries use the same namespace, and
 11.5289 +  # are all built from PIC.
 11.5290 +  case $host_os in
 11.5291 +  aix3*)
 11.5292 +    test "$enable_shared" = yes && enable_static=no
 11.5293 +    if test -n "$RANLIB"; then
 11.5294 +      archive_cmds="$archive_cmds~\$RANLIB \$lib"
 11.5295 +      postinstall_cmds='$RANLIB $lib'
 11.5296 +    fi
 11.5297 +    ;;
 11.5298 +
 11.5299 +  aix[[4-9]]*)
 11.5300 +    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 11.5301 +      test "$enable_shared" = yes && enable_static=no
 11.5302 +    fi
 11.5303 +    ;;
 11.5304 +  esac
 11.5305 +  AC_MSG_RESULT([$enable_shared])
 11.5306 +
 11.5307 +  AC_MSG_CHECKING([whether to build static libraries])
 11.5308 +  # Make sure either enable_shared or enable_static is yes.
 11.5309 +  test "$enable_shared" = yes || enable_static=yes
 11.5310 +  AC_MSG_RESULT([$enable_static])
 11.5311 +
 11.5312 +  _LT_CONFIG($1)
 11.5313 +fi
 11.5314 +AC_LANG_POP
 11.5315 +CC="$lt_save_CC"
 11.5316 +])# _LT_LANG_C_CONFIG
 11.5317 +
 11.5318 +
 11.5319 +# _LT_PROG_CXX
 11.5320 +# ------------
 11.5321 +# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
 11.5322 +# compiler, we have our own version here.
 11.5323 +m4_defun([_LT_PROG_CXX],
 11.5324 +[
 11.5325 +pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
 11.5326 +AC_PROG_CXX
 11.5327 +if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 11.5328 +    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 11.5329 +    (test "X$CXX" != "Xg++"))) ; then
 11.5330 +  AC_PROG_CXXCPP
 11.5331 +else
 11.5332 +  _lt_caught_CXX_error=yes
 11.5333 +fi
 11.5334 +popdef([AC_MSG_ERROR])
 11.5335 +])# _LT_PROG_CXX
 11.5336 +
 11.5337 +dnl aclocal-1.4 backwards compatibility:
 11.5338 +dnl AC_DEFUN([_LT_PROG_CXX], [])
 11.5339 +
 11.5340 +
 11.5341 +# _LT_LANG_CXX_CONFIG([TAG])
 11.5342 +# --------------------------
 11.5343 +# Ensure that the configuration variables for a C++ compiler are suitably
 11.5344 +# defined.  These variables are subsequently used by _LT_CONFIG to write
 11.5345 +# the compiler configuration to `libtool'.
 11.5346 +m4_defun([_LT_LANG_CXX_CONFIG],
 11.5347 +[AC_REQUIRE([_LT_PROG_CXX])dnl
 11.5348 +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 11.5349 +m4_require([_LT_DECL_EGREP])dnl
 11.5350 +
 11.5351 +AC_LANG_PUSH(C++)
 11.5352 +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
 11.5353 +_LT_TAGVAR(allow_undefined_flag, $1)=
 11.5354 +_LT_TAGVAR(always_export_symbols, $1)=no
 11.5355 +_LT_TAGVAR(archive_expsym_cmds, $1)=
 11.5356 +_LT_TAGVAR(compiler_needs_object, $1)=no
 11.5357 +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
 11.5358 +_LT_TAGVAR(hardcode_direct, $1)=no
 11.5359 +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
 11.5360 +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
 11.5361 +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
 11.5362 +_LT_TAGVAR(hardcode_libdir_separator, $1)=
 11.5363 +_LT_TAGVAR(hardcode_minus_L, $1)=no
 11.5364 +_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 11.5365 +_LT_TAGVAR(hardcode_automatic, $1)=no
 11.5366 +_LT_TAGVAR(inherit_rpath, $1)=no
 11.5367 +_LT_TAGVAR(module_cmds, $1)=
 11.5368 +_LT_TAGVAR(module_expsym_cmds, $1)=
 11.5369 +_LT_TAGVAR(link_all_deplibs, $1)=unknown
 11.5370 +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 11.5371 +_LT_TAGVAR(no_undefined_flag, $1)=
 11.5372 +_LT_TAGVAR(whole_archive_flag_spec, $1)=
 11.5373 +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
 11.5374 +
 11.5375 +# Source file extension for C++ test sources.
 11.5376 +ac_ext=cpp
 11.5377 +
 11.5378 +# Object file extension for compiled C++ test sources.
 11.5379 +objext=o
 11.5380 +_LT_TAGVAR(objext, $1)=$objext
 11.5381 +
 11.5382 +# No sense in running all these tests if we already determined that
 11.5383 +# the CXX compiler isn't working.  Some variables (like enable_shared)
 11.5384 +# are currently assumed to apply to all compilers on this platform,
 11.5385 +# and will be corrupted by setting them based on a non-working compiler.
 11.5386 +if test "$_lt_caught_CXX_error" != yes; then
 11.5387 +  # Code to be used in simple compile tests
 11.5388 +  lt_simple_compile_test_code="int some_variable = 0;"
 11.5389 +
 11.5390 +  # Code to be used in simple link tests
 11.5391 +  lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
 11.5392 +
 11.5393 +  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
 11.5394 +  _LT_TAG_COMPILER
 11.5395 +
 11.5396 +  # save warnings/boilerplate of simple test code
 11.5397 +  _LT_COMPILER_BOILERPLATE
 11.5398 +  _LT_LINKER_BOILERPLATE
 11.5399 +
 11.5400 +  # Allow CC to be a program name with arguments.
 11.5401 +  lt_save_CC=$CC
 11.5402 +  lt_save_LD=$LD
 11.5403 +  lt_save_GCC=$GCC
 11.5404 +  GCC=$GXX
 11.5405 +  lt_save_with_gnu_ld=$with_gnu_ld
 11.5406 +  lt_save_path_LD=$lt_cv_path_LD
 11.5407 +  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 11.5408 +    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 11.5409 +  else
 11.5410 +    $as_unset lt_cv_prog_gnu_ld
 11.5411 +  fi
 11.5412 +  if test -n "${lt_cv_path_LDCXX+set}"; then
 11.5413 +    lt_cv_path_LD=$lt_cv_path_LDCXX
 11.5414 +  else
 11.5415 +    $as_unset lt_cv_path_LD
 11.5416 +  fi
 11.5417 +  test -z "${LDCXX+set}" || LD=$LDCXX
 11.5418 +  CC=${CXX-"c++"}
 11.5419 +  compiler=$CC
 11.5420 +  _LT_TAGVAR(compiler, $1)=$CC
 11.5421 +  _LT_CC_BASENAME([$compiler])
 11.5422 +
 11.5423 +  if test -n "$compiler"; then
 11.5424 +    # We don't want -fno-exception when compiling C++ code, so set the
 11.5425 +    # no_builtin_flag separately
 11.5426 +    if test "$GXX" = yes; then
 11.5427 +      _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
 11.5428 +    else
 11.5429 +      _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
 11.5430 +    fi
 11.5431 +
 11.5432 +    if test "$GXX" = yes; then
 11.5433 +      # Set up default GNU C++ configuration
 11.5434 +
 11.5435 +      LT_PATH_LD
 11.5436 +
 11.5437 +      # Check if GNU C++ uses GNU ld as the underlying linker, since the
 11.5438 +      # archiving commands below assume that GNU ld is being used.
 11.5439 +      if test "$with_gnu_ld" = yes; then
 11.5440 +        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 11.5441 +        _LT_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'
 11.5442 +
 11.5443 +        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 11.5444 +        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 11.5445 +
 11.5446 +        # If archive_cmds runs LD, not CC, wlarc should be empty
 11.5447 +        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
 11.5448 +        #     investigate it a little bit more. (MM)
 11.5449 +        wlarc='${wl}'
 11.5450 +
 11.5451 +        # ancient GNU ld didn't support --whole-archive et. al.
 11.5452 +        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
 11.5453 +	  $GREP 'no-whole-archive' > /dev/null; then
 11.5454 +          _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 11.5455 +        else
 11.5456 +          _LT_TAGVAR(whole_archive_flag_spec, $1)=
 11.5457 +        fi
 11.5458 +      else
 11.5459 +        with_gnu_ld=no
 11.5460 +        wlarc=
 11.5461 +
 11.5462 +        # A generic and very simple default shared library creation
 11.5463 +        # command for GNU C++ for the case where it uses the native
 11.5464 +        # linker, instead of GNU ld.  If possible, this setting should
 11.5465 +        # overridden to take advantage of the native linker features on
 11.5466 +        # the platform it is being used on.
 11.5467 +        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 11.5468 +      fi
 11.5469 +
 11.5470 +      # Commands to make compiler produce verbose output that lists
 11.5471 +      # what "hidden" libraries, object files and flags are used when
 11.5472 +      # linking a shared library.
 11.5473 +      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 11.5474 +
 11.5475 +    else
 11.5476 +      GXX=no
 11.5477 +      with_gnu_ld=no
 11.5478 +      wlarc=
 11.5479 +    fi
 11.5480 +
 11.5481 +    # PORTME: fill in a description of your system's C++ link characteristics
 11.5482 +    AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
 11.5483 +    _LT_TAGVAR(ld_shlibs, $1)=yes
 11.5484 +    case $host_os in
 11.5485 +      aix3*)
 11.5486 +        # FIXME: insert proper C++ library support
 11.5487 +        _LT_TAGVAR(ld_shlibs, $1)=no
 11.5488 +        ;;
 11.5489 +      aix[[4-9]]*)
 11.5490 +        if test "$host_cpu" = ia64; then
 11.5491 +          # On IA64, the linker does run time linking by default, so we don't
 11.5492 +          # have to do anything special.
 11.5493 +          aix_use_runtimelinking=no
 11.5494 +          exp_sym_flag='-Bexport'
 11.5495 +          no_entry_flag=""
 11.5496 +        else
 11.5497 +          aix_use_runtimelinking=no
 11.5498 +
 11.5499 +          # Test if we are trying to use run time linking or normal
 11.5500 +          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 11.5501 +          # need to do runtime linking.
 11.5502 +          case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
 11.5503 +	    for ld_flag in $LDFLAGS; do
 11.5504 +	      case $ld_flag in
 11.5505 +	      *-brtl*)
 11.5506 +	        aix_use_runtimelinking=yes
 11.5507 +	        break
 11.5508 +	        ;;
 11.5509 +	      esac
 11.5510 +	    done
 11.5511 +	    ;;
 11.5512 +          esac
 11.5513 +
 11.5514 +          exp_sym_flag='-bexport'
 11.5515 +          no_entry_flag='-bnoentry'
 11.5516 +        fi
 11.5517 +
 11.5518 +        # When large executables or shared objects are built, AIX ld can
 11.5519 +        # have problems creating the table of contents.  If linking a library
 11.5520 +        # or program results in "error TOC overflow" add -mminimal-toc to
 11.5521 +        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 11.5522 +        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 11.5523 +
 11.5524 +        _LT_TAGVAR(archive_cmds, $1)=''
 11.5525 +        _LT_TAGVAR(hardcode_direct, $1)=yes
 11.5526 +        _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 11.5527 +        _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
 11.5528 +        _LT_TAGVAR(link_all_deplibs, $1)=yes
 11.5529 +        _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
 11.5530 +
 11.5531 +        if test "$GXX" = yes; then
 11.5532 +          case $host_os in aix4.[[012]]|aix4.[[012]].*)
 11.5533 +          # We only want to do this on AIX 4.2 and lower, the check
 11.5534 +          # below for broken collect2 doesn't work under 4.3+
 11.5535 +	  collect2name=`${CC} -print-prog-name=collect2`
 11.5536 +	  if test -f "$collect2name" &&
 11.5537 +	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
 11.5538 +	  then
 11.5539 +	    # We have reworked collect2
 11.5540 +	    :
 11.5541 +	  else
 11.5542 +	    # We have old collect2
 11.5543 +	    _LT_TAGVAR(hardcode_direct, $1)=unsupported
 11.5544 +	    # It fails to find uninstalled libraries when the uninstalled
 11.5545 +	    # path is not listed in the libpath.  Setting hardcode_minus_L
 11.5546 +	    # to unsupported forces relinking
 11.5547 +	    _LT_TAGVAR(hardcode_minus_L, $1)=yes
 11.5548 +	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 11.5549 +	    _LT_TAGVAR(hardcode_libdir_separator, $1)=
 11.5550 +	  fi
 11.5551 +          esac
 11.5552 +          shared_flag='-shared'
 11.5553 +	  if test "$aix_use_runtimelinking" = yes; then
 11.5554 +	    shared_flag="$shared_flag "'${wl}-G'
 11.5555 +	  fi
 11.5556 +        else
 11.5557 +          # not using gcc
 11.5558 +          if test "$host_cpu" = ia64; then
 11.5559 +	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 11.5560 +	  # chokes on -Wl,-G. The following line is correct:
 11.5561 +	  shared_flag='-G'
 11.5562 +          else
 11.5563 +	    if test "$aix_use_runtimelinking" = yes; then
 11.5564 +	      shared_flag='${wl}-G'
 11.5565 +	    else
 11.5566 +	      shared_flag='${wl}-bM:SRE'
 11.5567 +	    fi
 11.5568 +          fi
 11.5569 +        fi
 11.5570 +
 11.5571 +        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
 11.5572 +        # It seems that -bexpall does not export symbols beginning with
 11.5573 +        # underscore (_), so it is better to generate a list of symbols to
 11.5574 +	# export.
 11.5575 +        _LT_TAGVAR(always_export_symbols, $1)=yes
 11.5576 +        if test "$aix_use_runtimelinking" = yes; then
 11.5577 +          # Warning - without using the other runtime loading flags (-brtl),
 11.5578 +          # -berok will link without error, but may produce a broken library.
 11.5579 +          _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
 11.5580 +          # Determine the default libpath from the value encoded in an empty
 11.5581 +          # executable.
 11.5582 +          _LT_SYS_MODULE_PATH_AIX
 11.5583 +          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
 11.5584 +
 11.5585 +          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 11.5586 +        else
 11.5587 +          if test "$host_cpu" = ia64; then
 11.5588 +	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
 11.5589 +	    _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
 11.5590 +	    _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
 11.5591 +          else
 11.5592 +	    # Determine the default libpath from the value encoded in an
 11.5593 +	    # empty executable.
 11.5594 +	    _LT_SYS_MODULE_PATH_AIX
 11.5595 +	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
 11.5596 +	    # Warning - without using the other run time loading flags,
 11.5597 +	    # -berok will link without error, but may produce a broken library.
 11.5598 +	    _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
 11.5599 +	    _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
 11.5600 +	    # Exported symbols can be pulled into shared objects from archives
 11.5601 +	    _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
 11.5602 +	    _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
 11.5603 +	    # This is similar to how AIX traditionally builds its shared
 11.5604 +	    # libraries.
 11.5605 +	    _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 11.5606 +          fi
 11.5607 +        fi
 11.5608 +        ;;
 11.5609 +
 11.5610 +      beos*)
 11.5611 +	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 11.5612 +	  _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 11.5613 +	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 11.5614 +	  # support --undefined.  This deserves some investigation.  FIXME
 11.5615 +	  _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 11.5616 +	else
 11.5617 +	  _LT_TAGVAR(ld_shlibs, $1)=no
 11.5618 +	fi
 11.5619 +	;;
 11.5620 +
 11.5621 +      chorus*)
 11.5622 +        case $cc_basename in
 11.5623 +          *)
 11.5624 +	  # FIXME: insert proper C++ library support
 11.5625 +	  _LT_TAGVAR(ld_shlibs, $1)=no
 11.5626 +	  ;;
 11.5627 +        esac
 11.5628 +        ;;
 11.5629 +
 11.5630 +      cygwin* | mingw* | pw32* | cegcc*)
 11.5631 +        # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
 11.5632 +        # as there is no search path for DLLs.
 11.5633 +        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 11.5634 +        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 11.5635 +        _LT_TAGVAR(always_export_symbols, $1)=no
 11.5636 +        _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 11.5637 +
 11.5638 +        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 11.5639 +          _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 11.5640 +          # If the export-symbols file already is a .def file (1st line
 11.5641 +          # is EXPORTS), use it as is; otherwise, prepend...
 11.5642 +          _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 11.5643 +	    cp $export_symbols $output_objdir/$soname.def;
 11.5644 +          else
 11.5645 +	    echo EXPORTS > $output_objdir/$soname.def;
 11.5646 +	    cat $export_symbols >> $output_objdir/$soname.def;
 11.5647 +          fi~
 11.5648 +          $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 11.5649 +        else
 11.5650 +          _LT_TAGVAR(ld_shlibs, $1)=no
 11.5651 +        fi
 11.5652 +        ;;
 11.5653 +      darwin* | rhapsody*)
 11.5654 +        _LT_DARWIN_LINKER_FEATURES($1)
 11.5655 +	;;
 11.5656 +
 11.5657 +      dgux*)
 11.5658 +        case $cc_basename in
 11.5659 +          ec++*)
 11.5660 +	    # FIXME: insert proper C++ library support
 11.5661 +	    _LT_TAGVAR(ld_shlibs, $1)=no
 11.5662 +	    ;;
 11.5663 +          ghcx*)
 11.5664 +	    # Green Hills C++ Compiler
 11.5665 +	    # FIXME: insert proper C++ library support
 11.5666 +	    _LT_TAGVAR(ld_shlibs, $1)=no
 11.5667 +	    ;;
 11.5668 +          *)
 11.5669 +	    # FIXME: insert proper C++ library support
 11.5670 +	    _LT_TAGVAR(ld_shlibs, $1)=no
 11.5671 +	    ;;
 11.5672 +        esac
 11.5673 +        ;;
 11.5674 +
 11.5675 +      freebsd[[12]]*)
 11.5676 +        # C++ shared libraries reported to be fairly broken before
 11.5677 +	# switch to ELF
 11.5678 +        _LT_TAGVAR(ld_shlibs, $1)=no
 11.5679 +        ;;
 11.5680 +
 11.5681 +      freebsd-elf*)
 11.5682 +        _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 11.5683 +        ;;
 11.5684 +
 11.5685 +      freebsd* | dragonfly*)
 11.5686 +        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
 11.5687 +        # conventions
 11.5688 +        _LT_TAGVAR(ld_shlibs, $1)=yes
 11.5689 +        ;;
 11.5690 +
 11.5691 +      gnu*)
 11.5692 +        ;;
 11.5693 +
 11.5694 +      hpux9*)
 11.5695 +        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 11.5696 +        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 11.5697 +        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 11.5698 +        _LT_TAGVAR(hardcode_direct, $1)=yes
 11.5699 +        _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
 11.5700 +				             # but as the default
 11.5701 +				             # location of the library.
 11.5702 +
 11.5703 +        case $cc_basename in
 11.5704 +          CC*)
 11.5705 +            # FIXME: insert proper C++ library support
 11.5706 +            _LT_TAGVAR(ld_shlibs, $1)=no
 11.5707 +            ;;
 11.5708 +          aCC*)
 11.5709 +            _LT_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'
 11.5710 +            # Commands to make compiler produce verbose output that lists
 11.5711 +            # what "hidden" libraries, object files and flags are used when
 11.5712 +            # linking a shared library.
 11.5713 +            #
 11.5714 +            # There doesn't appear to be a way to prevent this compiler from
 11.5715 +            # explicitly linking system object files so we need to strip them
 11.5716 +            # from the output so that they don't get included in the library
 11.5717 +            # dependencies.
 11.5718 +            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 "X$list" | $Xsed'
 11.5719 +            ;;
 11.5720 +          *)
 11.5721 +            if test "$GXX" = yes; then
 11.5722 +              _LT_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'
 11.5723 +            else
 11.5724 +              # FIXME: insert proper C++ library support
 11.5725 +              _LT_TAGVAR(ld_shlibs, $1)=no
 11.5726 +            fi
 11.5727 +            ;;
 11.5728 +        esac
 11.5729 +        ;;
 11.5730 +
 11.5731 +      hpux10*|hpux11*)
 11.5732 +        if test $with_gnu_ld = no; then
 11.5733 +	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 11.5734 +	  _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 11.5735 +
 11.5736 +          case $host_cpu in
 11.5737 +            hppa*64*|ia64*)
 11.5738 +              ;;
 11.5739 +            *)
 11.5740 +	      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 11.5741 +              ;;
 11.5742 +          esac
 11.5743 +        fi
 11.5744 +        case $host_cpu in
 11.5745 +          hppa*64*|ia64*)
 11.5746 +            _LT_TAGVAR(hardcode_direct, $1)=no
 11.5747 +            _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 11.5748 +            ;;
 11.5749 +          *)
 11.5750 +            _LT_TAGVAR(hardcode_direct, $1)=yes
 11.5751 +            _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 11.5752 +            _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
 11.5753 +					         # but as the default
 11.5754 +					         # location of the library.
 11.5755 +            ;;
 11.5756 +        esac
 11.5757 +
 11.5758 +        case $cc_basename in
 11.5759 +          CC*)
 11.5760 +	    # FIXME: insert proper C++ library support
 11.5761 +	    _LT_TAGVAR(ld_shlibs, $1)=no
 11.5762 +	    ;;
 11.5763 +          aCC*)
 11.5764 +	    case $host_cpu in
 11.5765 +	      hppa*64*)
 11.5766 +	        _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 11.5767 +	        ;;
 11.5768 +	      ia64*)
 11.5769 +	        _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 11.5770 +	        ;;
 11.5771 +	      *)
 11.5772 +	        _LT_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'
 11.5773 +	        ;;
 11.5774 +	    esac
 11.5775 +	    # Commands to make compiler produce verbose output that lists
 11.5776 +	    # what "hidden" libraries, object files and flags are used when
 11.5777 +	    # linking a shared library.
 11.5778 +	    #
 11.5779 +	    # There doesn't appear to be a way to prevent this compiler from
 11.5780 +	    # explicitly linking system object files so we need to strip them
 11.5781 +	    # from the output so that they don't get included in the library
 11.5782 +	    # dependencies.
 11.5783 +	    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 "X$list" | $Xsed'
 11.5784 +	    ;;
 11.5785 +          *)
 11.5786 +	    if test "$GXX" = yes; then
 11.5787 +	      if test $with_gnu_ld = no; then
 11.5788 +	        case $host_cpu in
 11.5789 +	          hppa*64*)
 11.5790 +	            _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 11.5791 +	            ;;
 11.5792 +	          ia64*)
 11.5793 +	            _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 11.5794 +	            ;;
 11.5795 +	          *)
 11.5796 +	            _LT_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'
 11.5797 +	            ;;
 11.5798 +	        esac
 11.5799 +	      fi
 11.5800 +	    else
 11.5801 +	      # FIXME: insert proper C++ library support
 11.5802 +	      _LT_TAGVAR(ld_shlibs, $1)=no
 11.5803 +	    fi
 11.5804 +	    ;;
 11.5805 +        esac
 11.5806 +        ;;
 11.5807 +
 11.5808 +      interix[[3-9]]*)
 11.5809 +	_LT_TAGVAR(hardcode_direct, $1)=no
 11.5810 +	_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 11.5811 +	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 11.5812 +	_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 11.5813 +	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 11.5814 +	# Instead, shared libraries are loaded at an image base (0x10000000 by
 11.5815 +	# default) and relocated if they conflict, which is a slow very memory
 11.5816 +	# consuming and fragmenting process.  To avoid this, we pick a random,
 11.5817 +	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 11.5818 +	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 11.5819 +	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 11.5820 +	_LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 11.5821 +	;;
 11.5822 +      irix5* | irix6*)
 11.5823 +        case $cc_basename in
 11.5824 +          CC*)
 11.5825 +	    # SGI C++
 11.5826 +	    _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 11.5827 +
 11.5828 +	    # Archives containing C++ object files must be created using
 11.5829 +	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
 11.5830 +	    # necessary to make sure instantiated templates are included
 11.5831 +	    # in the archive.
 11.5832 +	    _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
 11.5833 +	    ;;
 11.5834 +          *)
 11.5835 +	    if test "$GXX" = yes; then
 11.5836 +	      if test "$with_gnu_ld" = no; then
 11.5837 +	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 11.5838 +	      else
 11.5839 +	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
 11.5840 +	      fi
 11.5841 +	    fi
 11.5842 +	    _LT_TAGVAR(link_all_deplibs, $1)=yes
 11.5843 +	    ;;
 11.5844 +        esac
 11.5845 +        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 11.5846 +        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 11.5847 +        _LT_TAGVAR(inherit_rpath, $1)=yes
 11.5848 +        ;;
 11.5849 +
 11.5850 +      linux* | k*bsd*-gnu)
 11.5851 +        case $cc_basename in
 11.5852 +          KCC*)
 11.5853 +	    # Kuck and Associates, Inc. (KAI) C++ Compiler
 11.5854 +
 11.5855 +	    # KCC will only create a shared library if the output file
 11.5856 +	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
 11.5857 +	    # to its proper name (with version) after linking.
 11.5858 +	    _LT_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'
 11.5859 +	    _LT_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'
 11.5860 +	    # Commands to make compiler produce verbose output that lists
 11.5861 +	    # what "hidden" libraries, object files and flags are used when
 11.5862 +	    # linking a shared library.
 11.5863 +	    #
 11.5864 +	    # There doesn't appear to be a way to prevent this compiler from
 11.5865 +	    # explicitly linking system object files so we need to strip them
 11.5866 +	    # from the output so that they don't get included in the library
 11.5867 +	    # dependencies.
 11.5868 +	    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 "X$list" | $Xsed'
 11.5869 +
 11.5870 +	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 11.5871 +	    _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 11.5872 +
 11.5873 +	    # Archives containing C++ object files must be created using
 11.5874 +	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 11.5875 +	    _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
 11.5876 +	    ;;
 11.5877 +	  icpc* | ecpc* )
 11.5878 +	    # Intel C++
 11.5879 +	    with_gnu_ld=yes
 11.5880 +	    # version 8.0 and above of icpc choke on multiply defined symbols
 11.5881 +	    # if we add $predep_objects and $postdep_objects, however 7.1 and
 11.5882 +	    # earlier do not add the objects themselves.
 11.5883 +	    case `$CC -V 2>&1` in
 11.5884 +	      *"Version 7."*)
 11.5885 +	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 11.5886 +		_LT_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'
 11.5887 +		;;
 11.5888 +	      *)  # Version 8.0 or newer
 11.5889 +	        tmp_idyn=
 11.5890 +	        case $host_cpu in
 11.5891 +		  ia64*) tmp_idyn=' -i_dynamic';;
 11.5892 +		esac
 11.5893 +	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 11.5894 +		_LT_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'
 11.5895 +		;;
 11.5896 +	    esac
 11.5897 +	    _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 11.5898 +	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 11.5899 +	    _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 11.5900 +	    _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 11.5901 +	    ;;
 11.5902 +          pgCC* | pgcpp*)
 11.5903 +            # Portland Group C++ compiler
 11.5904 +	    case `$CC -V` in
 11.5905 +	    *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
 11.5906 +	      _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
 11.5907 +		rm -rf $tpldir~
 11.5908 +		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
 11.5909 +		compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
 11.5910 +	      _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
 11.5911 +		rm -rf $tpldir~
 11.5912 +		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
 11.5913 +		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
 11.5914 +		$RANLIB $oldlib'
 11.5915 +	      _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
 11.5916 +		rm -rf $tpldir~
 11.5917 +		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
 11.5918 +		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 11.5919 +	      _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
 11.5920 +		rm -rf $tpldir~
 11.5921 +		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
 11.5922 +		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
 11.5923 +	      ;;
 11.5924 +	    *) # Version 6 will use weak symbols
 11.5925 +	      _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 11.5926 +	      _LT_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'
 11.5927 +	      ;;
 11.5928 +	    esac
 11.5929 +
 11.5930 +	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
 11.5931 +	    _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 11.5932 +	    _LT_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'
 11.5933 +            ;;
 11.5934 +	  cxx*)
 11.5935 +	    # Compaq C++
 11.5936 +	    _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 11.5937 +	    _LT_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'
 11.5938 +
 11.5939 +	    runpath_var=LD_RUN_PATH
 11.5940 +	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
 11.5941 +	    _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 11.5942 +
 11.5943 +	    # Commands to make compiler produce verbose output that lists
 11.5944 +	    # what "hidden" libraries, object files and flags are used when
 11.5945 +	    # linking a shared library.
 11.5946 +	    #
 11.5947 +	    # There doesn't appear to be a way to prevent this compiler from
 11.5948 +	    # explicitly linking system object files so we need to strip them
 11.5949 +	    # from the output so that they don't get included in the library
 11.5950 +	    # dependencies.
 11.5951 +	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed'
 11.5952 +	    ;;
 11.5953 +	  xl*)
 11.5954 +	    # IBM XL 8.0 on PPC, with GNU ld
 11.5955 +	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 11.5956 +	    _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 11.5957 +	    _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 11.5958 +	    if test "x$supports_anon_versioning" = xyes; then
 11.5959 +	      _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
 11.5960 +		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 11.5961 +		echo "local: *; };" >> $output_objdir/$libname.ver~
 11.5962 +		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 11.5963 +	    fi
 11.5964 +	    ;;
 11.5965 +	  *)
 11.5966 +	    case `$CC -V 2>&1 | sed 5q` in
 11.5967 +	    *Sun\ C*)
 11.5968 +	      # Sun C++ 5.9
 11.5969 +	      _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
 11.5970 +	      _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 11.5971 +	      _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
 11.5972 +	      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 11.5973 +	      _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
 11.5974 +	      _LT_TAGVAR(compiler_needs_object, $1)=yes
 11.5975 +
 11.5976 +	      # Not sure whether something based on
 11.5977 +	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
 11.5978 +	      # would be better.
 11.5979 +	      output_verbose_link_cmd='echo'
 11.5980 +
 11.5981 +	      # Archives containing C++ object files must be created using
 11.5982 +	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 11.5983 +	      # necessary to make sure instantiated templates are included
 11.5984 +	      # in the archive.
 11.5985 +	      _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
 11.5986 +	      ;;
 11.5987 +	    esac
 11.5988 +	    ;;
 11.5989 +	esac
 11.5990 +	;;
 11.5991 +
 11.5992 +      lynxos*)
 11.5993 +        # FIXME: insert proper C++ library support
 11.5994 +	_LT_TAGVAR(ld_shlibs, $1)=no
 11.5995 +	;;
 11.5996 +
 11.5997 +      m88k*)
 11.5998 +        # FIXME: insert proper C++ library support
 11.5999 +        _LT_TAGVAR(ld_shlibs, $1)=no
 11.6000 +	;;
 11.6001 +
 11.6002 +      mvs*)
 11.6003 +        case $cc_basename in
 11.6004 +          cxx*)
 11.6005 +	    # FIXME: insert proper C++ library support
 11.6006 +	    _LT_TAGVAR(ld_shlibs, $1)=no
 11.6007 +	    ;;
 11.6008 +	  *)
 11.6009 +	    # FIXME: insert proper C++ library support
 11.6010 +	    _LT_TAGVAR(ld_shlibs, $1)=no
 11.6011 +	    ;;
 11.6012 +	esac
 11.6013 +	;;
 11.6014 +
 11.6015 +      netbsd*)
 11.6016 +        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 11.6017 +	  _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 11.6018 +	  wlarc=
 11.6019 +	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 11.6020 +	  _LT_TAGVAR(hardcode_direct, $1)=yes
 11.6021 +	  _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 11.6022 +	fi
 11.6023 +	# Workaround some broken pre-1.5 toolchains
 11.6024 +	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
 11.6025 +	;;
 11.6026 +
 11.6027 +      *nto* | *qnx*)
 11.6028 +        _LT_TAGVAR(ld_shlibs, $1)=yes
 11.6029 +	;;
 11.6030 +
 11.6031 +      openbsd2*)
 11.6032 +        # C++ shared libraries are fairly broken
 11.6033 +	_LT_TAGVAR(ld_shlibs, $1)=no
 11.6034 +	;;
 11.6035 +
 11.6036 +      openbsd*)
 11.6037 +	if test -f /usr/libexec/ld.so; then
 11.6038 +	  _LT_TAGVAR(hardcode_direct, $1)=yes
 11.6039 +	  _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 11.6040 +	  _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 11.6041 +	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 11.6042 +	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 11.6043 +	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 11.6044 +	    _LT_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'
 11.6045 +	    _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 11.6046 +	    _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 11.6047 +	  fi
 11.6048 +	  output_verbose_link_cmd=echo
 11.6049 +	else
 11.6050 +	  _LT_TAGVAR(ld_shlibs, $1)=no
 11.6051 +	fi
 11.6052 +	;;
 11.6053 +
 11.6054 +      osf3* | osf4* | osf5*)
 11.6055 +        case $cc_basename in
 11.6056 +          KCC*)
 11.6057 +	    # Kuck and Associates, Inc. (KAI) C++ Compiler
 11.6058 +
 11.6059 +	    # KCC will only create a shared library if the output file
 11.6060 +	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
 11.6061 +	    # to its proper name (with version) after linking.
 11.6062 +	    _LT_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'
 11.6063 +
 11.6064 +	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 11.6065 +	    _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 11.6066 +
 11.6067 +	    # Archives containing C++ object files must be created using
 11.6068 +	    # the KAI C++ compiler.
 11.6069 +	    case $host in
 11.6070 +	      osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
 11.6071 +	      *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
 11.6072 +	    esac
 11.6073 +	    ;;
 11.6074 +          RCC*)
 11.6075 +	    # Rational C++ 2.4.1
 11.6076 +	    # FIXME: insert proper C++ library support
 11.6077 +	    _LT_TAGVAR(ld_shlibs, $1)=no
 11.6078 +	    ;;
 11.6079 +          cxx*)
 11.6080 +	    case $host in
 11.6081 +	      osf3*)
 11.6082 +	        _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
 11.6083 +	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 11.6084 +	        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 11.6085 +		;;
 11.6086 +	      *)
 11.6087 +	        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
 11.6088 +	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 11.6089 +	        _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
 11.6090 +	          echo "-hidden">> $lib.exp~
 11.6091 +	          $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
 11.6092 +	          $RM $lib.exp'
 11.6093 +	        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
 11.6094 +		;;
 11.6095 +	    esac
 11.6096 +
 11.6097 +	    _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 11.6098 +
 11.6099 +	    # Commands to make compiler produce verbose output that lists
 11.6100 +	    # what "hidden" libraries, object files and flags are used when
 11.6101 +	    # linking a shared library.
 11.6102 +	    #
 11.6103 +	    # There doesn't appear to be a way to prevent this compiler from
 11.6104 +	    # explicitly linking system object files so we need to strip them
 11.6105 +	    # from the output so that they don't get included in the library
 11.6106 +	    # dependencies.
 11.6107 +	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed'
 11.6108 +	    ;;
 11.6109 +	  *)
 11.6110 +	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 11.6111 +	      _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
 11.6112 +	      case $host in
 11.6113 +	        osf3*)
 11.6114 +	          _LT_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 "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 11.6115 +		  ;;
 11.6116 +	        *)
 11.6117 +	          _LT_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" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 11.6118 +		  ;;
 11.6119 +	      esac
 11.6120 +
 11.6121 +	      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 11.6122 +	      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 11.6123 +
 11.6124 +	      # Commands to make compiler produce verbose output that lists
 11.6125 +	      # what "hidden" libraries, object files and flags are used when
 11.6126 +	      # linking a shared library.
 11.6127 +	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 11.6128 +
 11.6129 +	    else
 11.6130 +	      # FIXME: insert proper C++ library support
 11.6131 +	      _LT_TAGVAR(ld_shlibs, $1)=no
 11.6132 +	    fi
 11.6133 +	    ;;
 11.6134 +        esac
 11.6135 +        ;;
 11.6136 +
 11.6137 +      psos*)
 11.6138 +        # FIXME: insert proper C++ library support
 11.6139 +        _LT_TAGVAR(ld_shlibs, $1)=no
 11.6140 +        ;;
 11.6141 +
 11.6142 +      sunos4*)
 11.6143 +        case $cc_basename in
 11.6144 +          CC*)
 11.6145 +	    # Sun C++ 4.x
 11.6146 +	    # FIXME: insert proper C++ library support
 11.6147 +	    _LT_TAGVAR(ld_shlibs, $1)=no
 11.6148 +	    ;;
 11.6149 +          lcc*)
 11.6150 +	    # Lucid
 11.6151 +	    # FIXME: insert proper C++ library support
 11.6152 +	    _LT_TAGVAR(ld_shlibs, $1)=no
 11.6153 +	    ;;
 11.6154 +          *)
 11.6155 +	    # FIXME: insert proper C++ library support
 11.6156 +	    _LT_TAGVAR(ld_shlibs, $1)=no
 11.6157 +	    ;;
 11.6158 +        esac
 11.6159 +        ;;
 11.6160 +
 11.6161 +      solaris*)
 11.6162 +        case $cc_basename in
 11.6163 +          CC*)
 11.6164 +	    # Sun C++ 4.2, 5.x and Centerline C++
 11.6165 +            _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
 11.6166 +	    _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
 11.6167 +	    _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 11.6168 +	    _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 11.6169 +	      $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
 11.6170 +
 11.6171 +	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 11.6172 +	    _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 11.6173 +	    case $host_os in
 11.6174 +	      solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
 11.6175 +	      *)
 11.6176 +		# The compiler driver will combine and reorder linker options,
 11.6177 +		# but understands `-z linker_flag'.
 11.6178 +	        # Supported since Solaris 2.6 (maybe 2.5.1?)
 11.6179 +		_LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
 11.6180 +	        ;;
 11.6181 +	    esac
 11.6182 +	    _LT_TAGVAR(link_all_deplibs, $1)=yes
 11.6183 +
 11.6184 +	    output_verbose_link_cmd='echo'
 11.6185 +
 11.6186 +	    # Archives containing C++ object files must be created using
 11.6187 +	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 11.6188 +	    # necessary to make sure instantiated templates are included
 11.6189 +	    # in the archive.
 11.6190 +	    _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
 11.6191 +	    ;;
 11.6192 +          gcx*)
 11.6193 +	    # Green Hills C++ Compiler
 11.6194 +	    _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 11.6195 +
 11.6196 +	    # The C++ compiler must be used to create the archive.
 11.6197 +	    _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
 11.6198 +	    ;;
 11.6199 +          *)
 11.6200 +	    # GNU C++ compiler with Solaris linker
 11.6201 +	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 11.6202 +	      _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
 11.6203 +	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
 11.6204 +	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 11.6205 +	        _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 11.6206 +		  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
 11.6207 +
 11.6208 +	        # Commands to make compiler produce verbose output that lists
 11.6209 +	        # what "hidden" libraries, object files and flags are used when
 11.6210 +	        # linking a shared library.
 11.6211 +	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 11.6212 +	      else
 11.6213 +	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
 11.6214 +	        # platform.
 11.6215 +	        _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 11.6216 +	        _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 11.6217 +		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
 11.6218 +
 11.6219 +	        # Commands to make compiler produce verbose output that lists
 11.6220 +	        # what "hidden" libraries, object files and flags are used when
 11.6221 +	        # linking a shared library.
 11.6222 +	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 11.6223 +	      fi
 11.6224 +
 11.6225 +	      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
 11.6226 +	      case $host_os in
 11.6227 +		solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
 11.6228 +		*)
 11.6229 +		  _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 11.6230 +		  ;;
 11.6231 +	      esac
 11.6232 +	    fi
 11.6233 +	    ;;
 11.6234 +        esac
 11.6235 +        ;;
 11.6236 +
 11.6237 +    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
 11.6238 +      _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 11.6239 +      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 11.6240 +      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 11.6241 +      runpath_var='LD_RUN_PATH'
 11.6242 +
 11.6243 +      case $cc_basename in
 11.6244 +        CC*)
 11.6245 +	  _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 11.6246 +	  _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 11.6247 +	  ;;
 11.6248 +	*)
 11.6249 +	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 11.6250 +	  _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 11.6251 +	  ;;
 11.6252 +      esac
 11.6253 +      ;;
 11.6254 +
 11.6255 +      sysv5* | sco3.2v5* | sco5v6*)
 11.6256 +	# Note: We can NOT use -z defs as we might desire, because we do not
 11.6257 +	# link with -lc, and that would cause any symbols used from libc to
 11.6258 +	# always be unresolved, which means just about no library would
 11.6259 +	# ever link correctly.  If we're not using GNU ld we use -z text
 11.6260 +	# though, which does catch some bad symbols but isn't as heavy-handed
 11.6261 +	# as -z defs.
 11.6262 +	_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 11.6263 +	_LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
 11.6264 +	_LT_TAGVAR(archive_cmds_need_lc, $1)=no
 11.6265 +	_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 11.6266 +	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
 11.6267 +	_LT_TAGVAR(hardcode_libdir_separator, $1)=':'
 11.6268 +	_LT_TAGVAR(link_all_deplibs, $1)=yes
 11.6269 +	_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
 11.6270 +	runpath_var='LD_RUN_PATH'
 11.6271 +
 11.6272 +	case $cc_basename in
 11.6273 +          CC*)
 11.6274 +	    _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 11.6275 +	    _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 11.6276 +	    ;;
 11.6277 +	  *)
 11.6278 +	    _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 11.6279 +	    _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 11.6280 +	    ;;
 11.6281 +	esac
 11.6282 +      ;;
 11.6283 +
 11.6284 +      tandem*)
 11.6285 +        case $cc_basename in
 11.6286 +          NCC*)
 11.6287 +	    # NonStop-UX NCC 3.20
 11.6288 +	    # FIXME: insert proper C++ library support
 11.6289 +	    _LT_TAGVAR(ld_shlibs, $1)=no
 11.6290 +	    ;;
 11.6291 +          *)
 11.6292 +	    # FIXME: insert proper C++ library support
 11.6293 +	    _LT_TAGVAR(ld_shlibs, $1)=no
 11.6294 +	    ;;
 11.6295 +        esac
 11.6296 +        ;;
 11.6297 +
 11.6298 +      vxworks*)
 11.6299 +        # FIXME: insert proper C++ library support
 11.6300 +        _LT_TAGVAR(ld_shlibs, $1)=no
 11.6301 +        ;;
 11.6302 +
 11.6303 +      *)
 11.6304 +        # FIXME: insert proper C++ library support
 11.6305 +        _LT_TAGVAR(ld_shlibs, $1)=no
 11.6306 +        ;;
 11.6307 +    esac
 11.6308 +
 11.6309 +    AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
 11.6310 +    test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
 11.6311 +
 11.6312 +    _LT_TAGVAR(GCC, $1)="$GXX"
 11.6313 +    _LT_TAGVAR(LD, $1)="$LD"
 11.6314 +
 11.6315 +    ## CAVEAT EMPTOR:
 11.6316 +    ## There is no encapsulation within the following macros, do not change
 11.6317 +    ## the running order or otherwise move them around unless you know exactly
 11.6318 +    ## what you are doing...
 11.6319 +    _LT_SYS_HIDDEN_LIBDEPS($1)
 11.6320 +    _LT_COMPILER_PIC($1)
 11.6321 +    _LT_COMPILER_C_O($1)
 11.6322 +    _LT_COMPILER_FILE_LOCKS($1)
 11.6323 +    _LT_LINKER_SHLIBS($1)
 11.6324 +    _LT_SYS_DYNAMIC_LINKER($1)
 11.6325 +    _LT_LINKER_HARDCODE_LIBPATH($1)
 11.6326 +
 11.6327 +    _LT_CONFIG($1)
 11.6328 +  fi # test -n "$compiler"
 11.6329 +
 11.6330 +  CC=$lt_save_CC
 11.6331 +  LDCXX=$LD
 11.6332 +  LD=$lt_save_LD
 11.6333 +  GCC=$lt_save_GCC
 11.6334 +  with_gnu_ld=$lt_save_with_gnu_ld
 11.6335 +  lt_cv_path_LDCXX=$lt_cv_path_LD
 11.6336 +  lt_cv_path_LD=$lt_save_path_LD
 11.6337 +  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 11.6338 +  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 11.6339 +fi # test "$_lt_caught_CXX_error" != yes
 11.6340 +
 11.6341 +AC_LANG_POP
 11.6342 +])# _LT_LANG_CXX_CONFIG
 11.6343 +
 11.6344 +
 11.6345 +# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
 11.6346 +# ---------------------------------
 11.6347 +# Figure out "hidden" library dependencies from verbose
 11.6348 +# compiler output when linking a shared library.
 11.6349 +# Parse the compiler output and extract the necessary
 11.6350 +# objects, libraries and library flags.
 11.6351 +m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
 11.6352 +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 11.6353 +# Dependencies to place before and after the object being linked:
 11.6354 +_LT_TAGVAR(predep_objects, $1)=
 11.6355 +_LT_TAGVAR(postdep_objects, $1)=
 11.6356 +_LT_TAGVAR(predeps, $1)=
 11.6357 +_LT_TAGVAR(postdeps, $1)=
 11.6358 +_LT_TAGVAR(compiler_lib_search_path, $1)=
 11.6359 +
 11.6360 +dnl we can't use the lt_simple_compile_test_code here,
 11.6361 +dnl because it contains code intended for an executable,
 11.6362 +dnl not a library.  It's possible we should let each
 11.6363 +dnl tag define a new lt_????_link_test_code variable,
 11.6364 +dnl but it's only used here...
 11.6365 +m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
 11.6366 +int a;
 11.6367 +void foo (void) { a = 0; }
 11.6368 +_LT_EOF
 11.6369 +], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
 11.6370 +class Foo
 11.6371 +{
 11.6372 +public:
 11.6373 +  Foo (void) { a = 0; }
 11.6374 +private:
 11.6375 +  int a;
 11.6376 +};
 11.6377 +_LT_EOF
 11.6378 +], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
 11.6379 +      subroutine foo
 11.6380 +      implicit none
 11.6381 +      integer*4 a
 11.6382 +      a=0
 11.6383 +      return
 11.6384 +      end
 11.6385 +_LT_EOF
 11.6386 +], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
 11.6387 +      subroutine foo
 11.6388 +      implicit none
 11.6389 +      integer a
 11.6390 +      a=0
 11.6391 +      return
 11.6392 +      end
 11.6393 +_LT_EOF
 11.6394 +], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
 11.6395 +public class foo {
 11.6396 +  private int a;
 11.6397 +  public void bar (void) {
 11.6398 +    a = 0;
 11.6399 +  }
 11.6400 +};
 11.6401 +_LT_EOF
 11.6402 +])
 11.6403 +dnl Parse the compiler output and extract the necessary
 11.6404 +dnl objects, libraries and library flags.
 11.6405 +if AC_TRY_EVAL(ac_compile); then
 11.6406 +  # Parse the compiler output and extract the necessary
 11.6407 +  # objects, libraries and library flags.
 11.6408 +
 11.6409 +  # Sentinel used to keep track of whether or not we are before
 11.6410 +  # the conftest object file.
 11.6411 +  pre_test_object_deps_done=no
 11.6412 +
 11.6413 +  for p in `eval "$output_verbose_link_cmd"`; do
 11.6414 +    case $p in
 11.6415 +
 11.6416 +    -L* | -R* | -l*)
 11.6417 +       # Some compilers place space between "-{L,R}" and the path.
 11.6418 +       # Remove the space.
 11.6419 +       if test $p = "-L" ||
 11.6420 +          test $p = "-R"; then
 11.6421 +	 prev=$p
 11.6422 +	 continue
 11.6423 +       else
 11.6424 +	 prev=
 11.6425 +       fi
 11.6426 +
 11.6427 +       if test "$pre_test_object_deps_done" = no; then
 11.6428 +	 case $p in
 11.6429 +	 -L* | -R*)
 11.6430 +	   # Internal compiler library paths should come after those
 11.6431 +	   # provided the user.  The postdeps already come after the
 11.6432 +	   # user supplied libs so there is no need to process them.
 11.6433 +	   if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
 11.6434 +	     _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
 11.6435 +	   else
 11.6436 +	     _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
 11.6437 +	   fi
 11.6438 +	   ;;
 11.6439 +	 # The "-l" case would never come before the object being
 11.6440 +	 # linked, so don't bother handling this case.
 11.6441 +	 esac
 11.6442 +       else
 11.6443 +	 if test -z "$_LT_TAGVAR(postdeps, $1)"; then
 11.6444 +	   _LT_TAGVAR(postdeps, $1)="${prev}${p}"
 11.6445 +	 else
 11.6446 +	   _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
 11.6447 +	 fi
 11.6448 +       fi
 11.6449 +       ;;
 11.6450 +
 11.6451 +    *.$objext)
 11.6452 +       # This assumes that the test object file only shows up
 11.6453 +       # once in the compiler output.
 11.6454 +       if test "$p" = "conftest.$objext"; then
 11.6455 +	 pre_test_object_deps_done=yes
 11.6456 +	 continue
 11.6457 +       fi
 11.6458 +
 11.6459 +       if test "$pre_test_object_deps_done" = no; then
 11.6460 +	 if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
 11.6461 +	   _LT_TAGVAR(predep_objects, $1)="$p"
 11.6462 +	 else
 11.6463 +	   _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
 11.6464 +	 fi
 11.6465 +       else
 11.6466 +	 if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
 11.6467 +	   _LT_TAGVAR(postdep_objects, $1)="$p"
 11.6468 +	 else
 11.6469 +	   _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
 11.6470 +	 fi
 11.6471 +       fi
 11.6472 +       ;;
 11.6473 +
 11.6474 +    *) ;; # Ignore the rest.
 11.6475 +
 11.6476 +    esac
 11.6477 +  done
 11.6478 +
 11.6479 +  # Clean up.
 11.6480 +  rm -f a.out a.exe
 11.6481 +else
 11.6482 +  echo "libtool.m4: error: problem compiling $1 test program"
 11.6483 +fi
 11.6484 +
 11.6485 +$RM -f confest.$objext
 11.6486 +
 11.6487 +# PORTME: override above test on systems where it is broken
 11.6488 +m4_if([$1], [CXX],
 11.6489 +[case $host_os in
 11.6490 +interix[[3-9]]*)
 11.6491 +  # Interix 3.5 installs completely hosed .la files for C++, so rather than
 11.6492 +  # hack all around it, let's just trust "g++" to DTRT.
 11.6493 +  _LT_TAGVAR(predep_objects,$1)=
 11.6494 +  _LT_TAGVAR(postdep_objects,$1)=
 11.6495 +  _LT_TAGVAR(postdeps,$1)=
 11.6496 +  ;;
 11.6497 +
 11.6498 +linux*)
 11.6499 +  case `$CC -V 2>&1 | sed 5q` in
 11.6500 +  *Sun\ C*)
 11.6501 +    # Sun C++ 5.9
 11.6502 +
 11.6503 +    # The more standards-conforming stlport4 library is
 11.6504 +    # incompatible with the Cstd library. Avoid specifying
 11.6505 +    # it if it's in CXXFLAGS. Ignore libCrun as
 11.6506 +    # -library=stlport4 depends on it.
 11.6507 +    case " $CXX $CXXFLAGS " in
 11.6508 +    *" -library=stlport4 "*)
 11.6509 +      solaris_use_stlport4=yes
 11.6510 +      ;;
 11.6511 +    esac
 11.6512 +
 11.6513 +    if test "$solaris_use_stlport4" != yes; then
 11.6514 +      _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
 11.6515 +    fi
 11.6516 +    ;;
 11.6517 +  esac
 11.6518 +  ;;
 11.6519 +
 11.6520 +solaris*)
 11.6521 +  case $cc_basename in
 11.6522 +  CC*)
 11.6523 +    # The more standards-conforming stlport4 library is
 11.6524 +    # incompatible with the Cstd library. Avoid specifying
 11.6525 +    # it if it's in CXXFLAGS. Ignore libCrun as
 11.6526 +    # -library=stlport4 depends on it.
 11.6527 +    case " $CXX $CXXFLAGS " in
 11.6528 +    *" -library=stlport4 "*)
 11.6529 +      solaris_use_stlport4=yes
 11.6530 +      ;;
 11.6531 +    esac
 11.6532 +
 11.6533 +    # Adding this requires a known-good setup of shared libraries for
 11.6534 +    # Sun compiler versions before 5.6, else PIC objects from an old
 11.6535 +    # archive will be linked into the output, leading to subtle bugs.
 11.6536 +    if test "$solaris_use_stlport4" != yes; then
 11.6537 +      _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
 11.6538 +    fi
 11.6539 +    ;;
 11.6540 +  esac
 11.6541 +  ;;
 11.6542 +esac
 11.6543 +])
 11.6544 +
 11.6545 +case " $_LT_TAGVAR(postdeps, $1) " in
 11.6546 +*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
 11.6547 +esac
 11.6548 + _LT_TAGVAR(compiler_lib_search_dirs, $1)=
 11.6549 +if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
 11.6550 + _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
 11.6551 +fi
 11.6552 +_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
 11.6553 +    [The directories searched by this compiler when creating a shared library])
 11.6554 +_LT_TAGDECL([], [predep_objects], [1],
 11.6555 +    [Dependencies to place before and after the objects being linked to
 11.6556 +    create a shared library])
 11.6557 +_LT_TAGDECL([], [postdep_objects], [1])
 11.6558 +_LT_TAGDECL([], [predeps], [1])
 11.6559 +_LT_TAGDECL([], [postdeps], [1])
 11.6560 +_LT_TAGDECL([], [compiler_lib_search_path], [1],
 11.6561 +    [The library search path used internally by the compiler when linking
 11.6562 +    a shared library])
 11.6563 +])# _LT_SYS_HIDDEN_LIBDEPS
 11.6564 +
 11.6565 +
 11.6566 +# _LT_PROG_F77
 11.6567 +# ------------
 11.6568 +# Since AC_PROG_F77 is broken, in that it returns the empty string
 11.6569 +# if there is no fortran compiler, we have our own version here.
 11.6570 +m4_defun([_LT_PROG_F77],
 11.6571 +[
 11.6572 +pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
 11.6573 +AC_PROG_F77
 11.6574 +if test -z "$F77" || test "X$F77" = "Xno"; then
 11.6575 +  _lt_disable_F77=yes
 11.6576 +fi
 11.6577 +popdef([AC_MSG_ERROR])
 11.6578 +])# _LT_PROG_F77
 11.6579 +
 11.6580 +dnl aclocal-1.4 backwards compatibility:
 11.6581 +dnl AC_DEFUN([_LT_PROG_F77], [])
 11.6582 +
 11.6583 +
 11.6584 +# _LT_LANG_F77_CONFIG([TAG])
 11.6585 +# --------------------------
 11.6586 +# Ensure that the configuration variables for a Fortran 77 compiler are
 11.6587 +# suitably defined.  These variables are subsequently used by _LT_CONFIG
 11.6588 +# to write the compiler configuration to `libtool'.
 11.6589 +m4_defun([_LT_LANG_F77_CONFIG],
 11.6590 +[AC_REQUIRE([_LT_PROG_F77])dnl
 11.6591 +AC_LANG_PUSH(Fortran 77)
 11.6592 +
 11.6593 +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
 11.6594 +_LT_TAGVAR(allow_undefined_flag, $1)=
 11.6595 +_LT_TAGVAR(always_export_symbols, $1)=no
 11.6596 +_LT_TAGVAR(archive_expsym_cmds, $1)=
 11.6597 +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
 11.6598 +_LT_TAGVAR(hardcode_direct, $1)=no
 11.6599 +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
 11.6600 +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
 11.6601 +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
 11.6602 +_LT_TAGVAR(hardcode_libdir_separator, $1)=
 11.6603 +_LT_TAGVAR(hardcode_minus_L, $1)=no
 11.6604 +_LT_TAGVAR(hardcode_automatic, $1)=no
 11.6605 +_LT_TAGVAR(inherit_rpath, $1)=no
 11.6606 +_LT_TAGVAR(module_cmds, $1)=
 11.6607 +_LT_TAGVAR(module_expsym_cmds, $1)=
 11.6608 +_LT_TAGVAR(link_all_deplibs, $1)=unknown
 11.6609 +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 11.6610 +_LT_TAGVAR(no_undefined_flag, $1)=
 11.6611 +_LT_TAGVAR(whole_archive_flag_spec, $1)=
 11.6612 +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
 11.6613 +
 11.6614 +# Source file extension for f77 test sources.
 11.6615 +ac_ext=f
 11.6616 +
 11.6617 +# Object file extension for compiled f77 test sources.
 11.6618 +objext=o
 11.6619 +_LT_TAGVAR(objext, $1)=$objext
 11.6620 +
 11.6621 +# No sense in running all these tests if we already determined that
 11.6622 +# the F77 compiler isn't working.  Some variables (like enable_shared)
 11.6623 +# are currently assumed to apply to all compilers on this platform,
 11.6624 +# and will be corrupted by setting them based on a non-working compiler.
 11.6625 +if test "$_lt_disable_F77" != yes; then
 11.6626 +  # Code to be used in simple compile tests
 11.6627 +  lt_simple_compile_test_code="\
 11.6628 +      subroutine t
 11.6629 +      return
 11.6630 +      end
 11.6631 +"
 11.6632 +
 11.6633 +  # Code to be used in simple link tests
 11.6634 +  lt_simple_link_test_code="\
 11.6635 +      program t
 11.6636 +      end
 11.6637 +"
 11.6638 +
 11.6639 +  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
 11.6640 +  _LT_TAG_COMPILER
 11.6641 +
 11.6642 +  # save warnings/boilerplate of simple test code
 11.6643 +  _LT_COMPILER_BOILERPLATE
 11.6644 +  _LT_LINKER_BOILERPLATE
 11.6645 +
 11.6646 +  # Allow CC to be a program name with arguments.
 11.6647 +  lt_save_CC="$CC"
 11.6648 +  lt_save_GCC=$GCC
 11.6649 +  CC=${F77-"f77"}
 11.6650 +  compiler=$CC
 11.6651 +  _LT_TAGVAR(compiler, $1)=$CC
 11.6652 +  _LT_CC_BASENAME([$compiler])
 11.6653 +  GCC=$G77
 11.6654 +  if test -n "$compiler"; then
 11.6655 +    AC_MSG_CHECKING([if libtool supports shared libraries])
 11.6656 +    AC_MSG_RESULT([$can_build_shared])
 11.6657 +
 11.6658 +    AC_MSG_CHECKING([whether to build shared libraries])
 11.6659 +    test "$can_build_shared" = "no" && enable_shared=no
 11.6660 +
 11.6661 +    # On AIX, shared libraries and static libraries use the same namespace, and
 11.6662 +    # are all built from PIC.
 11.6663 +    case $host_os in
 11.6664 +      aix3*)
 11.6665 +        test "$enable_shared" = yes && enable_static=no
 11.6666 +        if test -n "$RANLIB"; then
 11.6667 +          archive_cmds="$archive_cmds~\$RANLIB \$lib"
 11.6668 +          postinstall_cmds='$RANLIB $lib'
 11.6669 +        fi
 11.6670 +        ;;
 11.6671 +      aix[[4-9]]*)
 11.6672 +	if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 11.6673 +	  test "$enable_shared" = yes && enable_static=no
 11.6674 +	fi
 11.6675 +        ;;
 11.6676 +    esac
 11.6677 +    AC_MSG_RESULT([$enable_shared])
 11.6678 +
 11.6679 +    AC_MSG_CHECKING([whether to build static libraries])
 11.6680 +    # Make sure either enable_shared or enable_static is yes.
 11.6681 +    test "$enable_shared" = yes || enable_static=yes
 11.6682 +    AC_MSG_RESULT([$enable_static])
 11.6683 +
 11.6684 +    _LT_TAGVAR(GCC, $1)="$G77"
 11.6685 +    _LT_TAGVAR(LD, $1)="$LD"
 11.6686 +
 11.6687 +    ## CAVEAT EMPTOR:
 11.6688 +    ## There is no encapsulation within the following macros, do not change
 11.6689 +    ## the running order or otherwise move them around unless you know exactly
 11.6690 +    ## what you are doing...
 11.6691 +    _LT_COMPILER_PIC($1)
 11.6692 +    _LT_COMPILER_C_O($1)
 11.6693 +    _LT_COMPILER_FILE_LOCKS($1)
 11.6694 +    _LT_LINKER_SHLIBS($1)
 11.6695 +    _LT_SYS_DYNAMIC_LINKER($1)
 11.6696 +    _LT_LINKER_HARDCODE_LIBPATH($1)
 11.6697 +
 11.6698 +    _LT_CONFIG($1)
 11.6699 +  fi # test -n "$compiler"
 11.6700 +
 11.6701 +  GCC=$lt_save_GCC
 11.6702 +  CC="$lt_save_CC"
 11.6703 +fi # test "$_lt_disable_F77" != yes
 11.6704 +
 11.6705 +AC_LANG_POP
 11.6706 +])# _LT_LANG_F77_CONFIG
 11.6707 +
 11.6708 +
 11.6709 +# _LT_PROG_FC
 11.6710 +# -----------
 11.6711 +# Since AC_PROG_FC is broken, in that it returns the empty string
 11.6712 +# if there is no fortran compiler, we have our own version here.
 11.6713 +m4_defun([_LT_PROG_FC],
 11.6714 +[
 11.6715 +pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
 11.6716 +AC_PROG_FC
 11.6717 +if test -z "$FC" || test "X$FC" = "Xno"; then
 11.6718 +  _lt_disable_FC=yes
 11.6719 +fi
 11.6720 +popdef([AC_MSG_ERROR])
 11.6721 +])# _LT_PROG_FC
 11.6722 +
 11.6723 +dnl aclocal-1.4 backwards compatibility:
 11.6724 +dnl AC_DEFUN([_LT_PROG_FC], [])
 11.6725 +
 11.6726 +
 11.6727 +# _LT_LANG_FC_CONFIG([TAG])
 11.6728 +# -------------------------
 11.6729 +# Ensure that the configuration variables for a Fortran compiler are
 11.6730 +# suitably defined.  These variables are subsequently used by _LT_CONFIG
 11.6731 +# to write the compiler configuration to `libtool'.
 11.6732 +m4_defun([_LT_LANG_FC_CONFIG],
 11.6733 +[AC_REQUIRE([_LT_PROG_FC])dnl
 11.6734 +AC_LANG_PUSH(Fortran)
 11.6735 +
 11.6736 +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
 11.6737 +_LT_TAGVAR(allow_undefined_flag, $1)=
 11.6738 +_LT_TAGVAR(always_export_symbols, $1)=no
 11.6739 +_LT_TAGVAR(archive_expsym_cmds, $1)=
 11.6740 +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
 11.6741 +_LT_TAGVAR(hardcode_direct, $1)=no
 11.6742 +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
 11.6743 +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
 11.6744 +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
 11.6745 +_LT_TAGVAR(hardcode_libdir_separator, $1)=
 11.6746 +_LT_TAGVAR(hardcode_minus_L, $1)=no
 11.6747 +_LT_TAGVAR(hardcode_automatic, $1)=no
 11.6748 +_LT_TAGVAR(inherit_rpath, $1)=no
 11.6749 +_LT_TAGVAR(module_cmds, $1)=
 11.6750 +_LT_TAGVAR(module_expsym_cmds, $1)=
 11.6751 +_LT_TAGVAR(link_all_deplibs, $1)=unknown
 11.6752 +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 11.6753 +_LT_TAGVAR(no_undefined_flag, $1)=
 11.6754 +_LT_TAGVAR(whole_archive_flag_spec, $1)=
 11.6755 +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
 11.6756 +
 11.6757 +# Source file extension for fc test sources.
 11.6758 +ac_ext=${ac_fc_srcext-f}
 11.6759 +
 11.6760 +# Object file extension for compiled fc test sources.
 11.6761 +objext=o
 11.6762 +_LT_TAGVAR(objext, $1)=$objext
 11.6763 +
 11.6764 +# No sense in running all these tests if we already determined that
 11.6765 +# the FC compiler isn't working.  Some variables (like enable_shared)
 11.6766 +# are currently assumed to apply to all compilers on this platform,
 11.6767 +# and will be corrupted by setting them based on a non-working compiler.
 11.6768 +if test "$_lt_disable_FC" != yes; then
 11.6769 +  # Code to be used in simple compile tests
 11.6770 +  lt_simple_compile_test_code="\
 11.6771 +      subroutine t
 11.6772 +      return
 11.6773 +      end
 11.6774 +"
 11.6775 +
 11.6776 +  # Code to be used in simple link tests
 11.6777 +  lt_simple_link_test_code="\
 11.6778 +      program t
 11.6779 +      end
 11.6780 +"
 11.6781 +
 11.6782 +  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
 11.6783 +  _LT_TAG_COMPILER
 11.6784 +
 11.6785 +  # save warnings/boilerplate of simple test code
 11.6786 +  _LT_COMPILER_BOILERPLATE
 11.6787 +  _LT_LINKER_BOILERPLATE
 11.6788 +
 11.6789 +  # Allow CC to be a program name with arguments.
 11.6790 +  lt_save_CC="$CC"
 11.6791 +  lt_save_GCC=$GCC
 11.6792 +  CC=${FC-"f95"}
 11.6793 +  compiler=$CC
 11.6794 +  GCC=$ac_cv_fc_compiler_gnu
 11.6795 +
 11.6796 +  _LT_TAGVAR(compiler, $1)=$CC
 11.6797 +  _LT_CC_BASENAME([$compiler])
 11.6798 +
 11.6799 +  if test -n "$compiler"; then
 11.6800 +    AC_MSG_CHECKING([if libtool supports shared libraries])
 11.6801 +    AC_MSG_RESULT([$can_build_shared])
 11.6802 +
 11.6803 +    AC_MSG_CHECKING([whether to build shared libraries])
 11.6804 +    test "$can_build_shared" = "no" && enable_shared=no
 11.6805 +
 11.6806 +    # On AIX, shared libraries and static libraries use the same namespace, and
 11.6807 +    # are all built from PIC.
 11.6808 +    case $host_os in
 11.6809 +      aix3*)
 11.6810 +        test "$enable_shared" = yes && enable_static=no
 11.6811 +        if test -n "$RANLIB"; then
 11.6812 +          archive_cmds="$archive_cmds~\$RANLIB \$lib"
 11.6813 +          postinstall_cmds='$RANLIB $lib'
 11.6814 +        fi
 11.6815 +        ;;
 11.6816 +      aix[[4-9]]*)
 11.6817 +	if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 11.6818 +	  test "$enable_shared" = yes && enable_static=no
 11.6819 +	fi
 11.6820 +        ;;
 11.6821 +    esac
 11.6822 +    AC_MSG_RESULT([$enable_shared])
 11.6823 +
 11.6824 +    AC_MSG_CHECKING([whether to build static libraries])
 11.6825 +    # Make sure either enable_shared or enable_static is yes.
 11.6826 +    test "$enable_shared" = yes || enable_static=yes
 11.6827 +    AC_MSG_RESULT([$enable_static])
 11.6828 +
 11.6829 +    _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
 11.6830 +    _LT_TAGVAR(LD, $1)="$LD"
 11.6831 +
 11.6832 +    ## CAVEAT EMPTOR:
 11.6833 +    ## There is no encapsulation within the following macros, do not change
 11.6834 +    ## the running order or otherwise move them around unless you know exactly
 11.6835 +    ## what you are doing...
 11.6836 +    _LT_SYS_HIDDEN_LIBDEPS($1)
 11.6837 +    _LT_COMPILER_PIC($1)
 11.6838 +    _LT_COMPILER_C_O($1)
 11.6839 +    _LT_COMPILER_FILE_LOCKS($1)
 11.6840 +    _LT_LINKER_SHLIBS($1)
 11.6841 +    _LT_SYS_DYNAMIC_LINKER($1)
 11.6842 +    _LT_LINKER_HARDCODE_LIBPATH($1)
 11.6843 +
 11.6844 +    _LT_CONFIG($1)
 11.6845 +  fi # test -n "$compiler"
 11.6846 +
 11.6847 +  GCC=$lt_save_GCC
 11.6848 +  CC="$lt_save_CC"
 11.6849 +fi # test "$_lt_disable_FC" != yes
 11.6850 +
 11.6851 +AC_LANG_POP
 11.6852 +])# _LT_LANG_FC_CONFIG
 11.6853 +
 11.6854 +
 11.6855 +# _LT_LANG_GCJ_CONFIG([TAG])
 11.6856 +# --------------------------
 11.6857 +# Ensure that the configuration variables for the GNU Java Compiler compiler
 11.6858 +# are suitably defined.  These variables are subsequently used by _LT_CONFIG
 11.6859 +# to write the compiler configuration to `libtool'.
 11.6860 +m4_defun([_LT_LANG_GCJ_CONFIG],
 11.6861 +[AC_REQUIRE([LT_PROG_GCJ])dnl
 11.6862 +AC_LANG_SAVE
 11.6863 +
 11.6864 +# Source file extension for Java test sources.
 11.6865 +ac_ext=java
 11.6866 +
 11.6867 +# Object file extension for compiled Java test sources.
 11.6868 +objext=o
 11.6869 +_LT_TAGVAR(objext, $1)=$objext
 11.6870 +
 11.6871 +# Code to be used in simple compile tests
 11.6872 +lt_simple_compile_test_code="class foo {}"
 11.6873 +
 11.6874 +# Code to be used in simple link tests
 11.6875 +lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
 11.6876 +
 11.6877 +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 11.6878 +_LT_TAG_COMPILER
 11.6879 +
 11.6880 +# save warnings/boilerplate of simple test code
 11.6881 +_LT_COMPILER_BOILERPLATE
 11.6882 +_LT_LINKER_BOILERPLATE
 11.6883 +
 11.6884 +# Allow CC to be a program name with arguments.
 11.6885 +lt_save_CC="$CC"
 11.6886 +lt_save_GCC=$GCC
 11.6887 +GCC=yes
 11.6888 +CC=${GCJ-"gcj"}
 11.6889 +compiler=$CC
 11.6890 +_LT_TAGVAR(compiler, $1)=$CC
 11.6891 +_LT_TAGVAR(LD, $1)="$LD"
 11.6892 +_LT_CC_BASENAME([$compiler])
 11.6893 +
 11.6894 +# GCJ did not exist at the time GCC didn't implicitly link libc in.
 11.6895 +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
 11.6896 +
 11.6897 +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 11.6898 +
 11.6899 +## CAVEAT EMPTOR:
 11.6900 +## There is no encapsulation within the following macros, do not change
 11.6901 +## the running order or otherwise move them around unless you know exactly
 11.6902 +## what you are doing...