aclocal.m4
changeset 5310 a9945ce48999
child 6442 2d3caa191dc4
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/aclocal.m4	Wed Feb 16 02:37:09 2011 -0800
     1.3 @@ -0,0 +1,9486 @@
     1.4 +define(AC_CHECK_DEFINE,[dnl
     1.5 +  AC_CACHE_CHECK(for $1 in $2, ac_cv_define_$1,
     1.6 +    AC_EGREP_CPP([YES_IS_DEFINED], [
     1.7 +#include <$2>
     1.8 +#ifdef $1
     1.9 +YES_IS_DEFINED
    1.10 +#endif
    1.11 +    ], ac_cv_define_$1=yes, ac_cv_define_$1=no)
    1.12 +  )
    1.13 +  if test "$ac_cv_define_$1" = "yes" ; then
    1.14 +    AC_DEFINE([HAVE_$1],[],[Added by AC_CHECK_DEFINE])
    1.15 +  fi
    1.16 +])dnl
    1.17 +AC_DEFINE([HAVE_$1],[],[Added by AC_CHECK_DEFINE])
    1.18 +##############################################################################
    1.19 +dnl Configure Paths for Alsa
    1.20 +dnl Some modifications by Richard Boulton <richard-alsa@tartarus.org>
    1.21 +dnl Christopher Lansdown <lansdoct@cs.alfred.edu>
    1.22 +dnl Jaroslav Kysela <perex@suse.cz>
    1.23 +dnl Last modification: alsa.m4,v 1.23 2004/01/16 18:14:22 tiwai Exp
    1.24 +dnl AM_PATH_ALSA([MINIMUM-VERSION [, ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])
    1.25 +dnl Test for libasound, and define ALSA_CFLAGS and ALSA_LIBS as appropriate.
    1.26 +dnl enables arguments --with-alsa-prefix=
    1.27 +dnl                   --with-alsa-enc-prefix=
    1.28 +dnl                   --disable-alsatest
    1.29 +dnl
    1.30 +dnl For backwards compatibility, if ACTION_IF_NOT_FOUND is not specified,
    1.31 +dnl and the alsa libraries are not found, a fatal AC_MSG_ERROR() will result.
    1.32 +dnl
    1.33 +AC_DEFUN([AM_PATH_ALSA],
    1.34 +[dnl Save the original CFLAGS, LDFLAGS, and LIBS
    1.35 +alsa_save_CFLAGS="$CFLAGS"
    1.36 +alsa_save_LDFLAGS="$LDFLAGS"
    1.37 +alsa_save_LIBS="$LIBS"
    1.38 +alsa_found=yes
    1.39 +
    1.40 +dnl
    1.41 +dnl Get the cflags and libraries for alsa
    1.42 +dnl
    1.43 +AC_ARG_WITH(alsa-prefix,
    1.44 +[  --with-alsa-prefix=PFX  Prefix where Alsa library is installed(optional)],
    1.45 +[alsa_prefix="$withval"], [alsa_prefix=""])
    1.46 +
    1.47 +AC_ARG_WITH(alsa-inc-prefix,
    1.48 +[  --with-alsa-inc-prefix=PFX  Prefix where include libraries are (optional)],
    1.49 +[alsa_inc_prefix="$withval"], [alsa_inc_prefix=""])
    1.50 +
    1.51 +dnl FIXME: this is not yet implemented
    1.52 +AC_ARG_ENABLE(alsatest,
    1.53 +[  --disable-alsatest      Do not try to compile and run a test Alsa program],
    1.54 +[enable_alsatest="$enableval"],
    1.55 +[enable_alsatest=yes])
    1.56 +
    1.57 +dnl Add any special include directories
    1.58 +AC_MSG_CHECKING(for ALSA CFLAGS)
    1.59 +if test "$alsa_inc_prefix" != "" ; then
    1.60 +	ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
    1.61 +	CFLAGS="$CFLAGS -I$alsa_inc_prefix"
    1.62 +fi
    1.63 +AC_MSG_RESULT($ALSA_CFLAGS)
    1.64 +
    1.65 +dnl add any special lib dirs
    1.66 +AC_MSG_CHECKING(for ALSA LDFLAGS)
    1.67 +if test "$alsa_prefix" != "" ; then
    1.68 +	ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
    1.69 +	LDFLAGS="$LDFLAGS $ALSA_LIBS"
    1.70 +fi
    1.71 +
    1.72 +dnl add the alsa library
    1.73 +ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
    1.74 +LIBS=`echo $LIBS | sed 's/-lm//'`
    1.75 +LIBS=`echo $LIBS | sed 's/-ldl//'`
    1.76 +LIBS=`echo $LIBS | sed 's/-lpthread//'`
    1.77 +LIBS=`echo $LIBS | sed 's/  //'`
    1.78 +LIBS="$ALSA_LIBS $LIBS"
    1.79 +AC_MSG_RESULT($ALSA_LIBS)
    1.80 +
    1.81 +dnl Check for a working version of libasound that is of the right version.
    1.82 +min_alsa_version=ifelse([$1], ,0.1.1,$1)
    1.83 +AC_MSG_CHECKING(for libasound headers version >= $min_alsa_version)
    1.84 +no_alsa=""
    1.85 +    alsa_min_major_version=`echo $min_alsa_version | \
    1.86 +           sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
    1.87 +    alsa_min_minor_version=`echo $min_alsa_version | \
    1.88 +           sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
    1.89 +    alsa_min_micro_version=`echo $min_alsa_version | \
    1.90 +           sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
    1.91 +
    1.92 +AC_LANG_SAVE
    1.93 +AC_LANG_C
    1.94 +AC_TRY_COMPILE([
    1.95 +#include <alsa/asoundlib.h>
    1.96 +], [
    1.97 +/* ensure backward compatibility */
    1.98 +#if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
    1.99 +#define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
   1.100 +#endif
   1.101 +#if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
   1.102 +#define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
   1.103 +#endif
   1.104 +#if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
   1.105 +#define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
   1.106 +#endif
   1.107 +
   1.108 +#  if(SND_LIB_MAJOR > $alsa_min_major_version)
   1.109 +  exit(0);
   1.110 +#  else
   1.111 +#    if(SND_LIB_MAJOR < $alsa_min_major_version)
   1.112 +#       error not present
   1.113 +#    endif
   1.114 +
   1.115 +#   if(SND_LIB_MINOR > $alsa_min_minor_version)
   1.116 +  exit(0);
   1.117 +#   else
   1.118 +#     if(SND_LIB_MINOR < $alsa_min_minor_version)
   1.119 +#          error not present
   1.120 +#      endif
   1.121 +
   1.122 +#      if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
   1.123 +#        error not present
   1.124 +#      endif
   1.125 +#    endif
   1.126 +#  endif
   1.127 +exit(0);
   1.128 +],
   1.129 +  [AC_MSG_RESULT(found.)],
   1.130 +  [AC_MSG_RESULT(not present.)
   1.131 +   ifelse([$3], , [AC_MSG_ERROR(Sufficiently new version of libasound not found.)])
   1.132 +   alsa_found=no]
   1.133 +)
   1.134 +AC_LANG_RESTORE
   1.135 +
   1.136 +dnl Now that we know that we have the right version, let's see if we have the library and not just the headers.
   1.137 +if test "x$enable_alsatest" = "xyes"; then
   1.138 +AC_CHECK_LIB([asound], [snd_ctl_open],,
   1.139 +	[ifelse([$3], , [AC_MSG_ERROR(No linkable libasound was found.)])
   1.140 +	 alsa_found=no]
   1.141 +)
   1.142 +fi
   1.143 +
   1.144 +if test "x$alsa_found" = "xyes" ; then
   1.145 +   ifelse([$2], , :, [$2])
   1.146 +   LIBS=`echo $LIBS | sed 's/-lasound//g'`
   1.147 +   LIBS=`echo $LIBS | sed 's/  //'`
   1.148 +   LIBS="-lasound $LIBS"
   1.149 +fi
   1.150 +if test "x$alsa_found" = "xno" ; then
   1.151 +   ifelse([$3], , :, [$3])
   1.152 +   CFLAGS="$alsa_save_CFLAGS"
   1.153 +   LDFLAGS="$alsa_save_LDFLAGS"
   1.154 +   LIBS="$alsa_save_LIBS"
   1.155 +   ALSA_CFLAGS=""
   1.156 +   ALSA_LIBS=""
   1.157 +fi
   1.158 +
   1.159 +dnl That should be it.  Now just export out symbols:
   1.160 +AC_SUBST(ALSA_CFLAGS)
   1.161 +AC_SUBST(ALSA_LIBS)
   1.162 +])
   1.163 +# ===========================================================================
   1.164 +#  http://www.gnu.org/software/autoconf-archive/ax_check_compiler_flags.html
   1.165 +# ===========================================================================
   1.166 +#
   1.167 +# SYNOPSIS
   1.168 +#
   1.169 +#   AX_CHECK_COMPILER_FLAGS(FLAGS, [ACTION-SUCCESS], [ACTION-FAILURE])
   1.170 +#
   1.171 +# DESCRIPTION
   1.172 +#
   1.173 +#   Check whether the given compiler FLAGS work with the current language's
   1.174 +#   compiler, or whether they give an error. (Warnings, however, are
   1.175 +#   ignored.)
   1.176 +#
   1.177 +#   ACTION-SUCCESS/ACTION-FAILURE are shell commands to execute on
   1.178 +#   success/failure.
   1.179 +#
   1.180 +# LICENSE
   1.181 +#
   1.182 +#   Copyright (c) 2009 Steven G. Johnson <stevenj@alum.mit.edu>
   1.183 +#   Copyright (c) 2009 Matteo Frigo
   1.184 +#
   1.185 +#   This program is free software: you can redistribute it and/or modify it
   1.186 +#   under the terms of the GNU General Public License as published by the
   1.187 +#   Free Software Foundation, either version 3 of the License, or (at your
   1.188 +#   option) any later version.
   1.189 +#
   1.190 +#   This program is distributed in the hope that it will be useful, but
   1.191 +#   WITHOUT ANY WARRANTY; without even the implied warranty of
   1.192 +#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
   1.193 +#   Public License for more details.
   1.194 +#
   1.195 +#   You should have received a copy of the GNU General Public License along
   1.196 +#   with this program. If not, see <http://www.gnu.org/licenses/>.
   1.197 +#
   1.198 +#   As a special exception, the respective Autoconf Macro's copyright owner
   1.199 +#   gives unlimited permission to copy, distribute and modify the configure
   1.200 +#   scripts that are the output of Autoconf when processing the Macro. You
   1.201 +#   need not follow the terms of the GNU General Public License when using
   1.202 +#   or distributing such scripts, even though portions of the text of the
   1.203 +#   Macro appear in them. The GNU General Public License (GPL) does govern
   1.204 +#   all other use of the material that constitutes the Autoconf Macro.
   1.205 +#
   1.206 +#   This special exception to the GPL applies to versions of the Autoconf
   1.207 +#   Macro released by the Autoconf Archive. When you make and distribute a
   1.208 +#   modified version of the Autoconf Macro, you may extend this special
   1.209 +#   exception to the GPL to apply to your modified version as well.
   1.210 +
   1.211 +#serial 9
   1.212 +
   1.213 +AC_DEFUN([AX_CHECK_COMPILER_FLAGS],
   1.214 +[AC_PREREQ(2.59) dnl for _AC_LANG_PREFIX
   1.215 +AC_MSG_CHECKING([whether _AC_LANG compiler accepts $1])
   1.216 +dnl Some hackery here since AC_CACHE_VAL can't handle a non-literal varname:
   1.217 +AS_LITERAL_IF([$1],
   1.218 +  [AC_CACHE_VAL(AS_TR_SH(ax_cv_[]_AC_LANG_ABBREV[]_flags_[$1]), [
   1.219 +      ax_save_FLAGS=$[]_AC_LANG_PREFIX[]FLAGS
   1.220 +      _AC_LANG_PREFIX[]FLAGS="$1"
   1.221 +      AC_COMPILE_IFELSE([AC_LANG_PROGRAM()],
   1.222 +        AS_TR_SH(ax_cv_[]_AC_LANG_ABBREV[]_flags_[$1])=yes,
   1.223 +        AS_TR_SH(ax_cv_[]_AC_LANG_ABBREV[]_flags_[$1])=no)
   1.224 +      _AC_LANG_PREFIX[]FLAGS=$ax_save_FLAGS])],
   1.225 +  [ax_save_FLAGS=$[]_AC_LANG_PREFIX[]FLAGS
   1.226 +   _AC_LANG_PREFIX[]FLAGS="$1"
   1.227 +   AC_COMPILE_IFELSE([AC_LANG_PROGRAM()],
   1.228 +     eval AS_TR_SH(ax_cv_[]_AC_LANG_ABBREV[]_flags_[$1])=yes,
   1.229 +     eval AS_TR_SH(ax_cv_[]_AC_LANG_ABBREV[]_flags_[$1])=no)
   1.230 +   _AC_LANG_PREFIX[]FLAGS=$ax_save_FLAGS])
   1.231 +eval ax_check_compiler_flags=$AS_TR_SH(ax_cv_[]_AC_LANG_ABBREV[]_flags_[$1])
   1.232 +AC_MSG_RESULT($ax_check_compiler_flags)
   1.233 +if test "x$ax_check_compiler_flags" = xyes; then
   1.234 +	m4_default([$2], :)
   1.235 +else
   1.236 +	m4_default([$3], :)
   1.237 +fi
   1.238 +])dnl AX_CHECK_COMPILER_FLAGS
   1.239 +# ===========================================================================
   1.240 +#      http://www.gnu.org/software/autoconf-archive/ax_gcc_archflag.html
   1.241 +# ===========================================================================
   1.242 +#
   1.243 +# SYNOPSIS
   1.244 +#
   1.245 +#   AX_GCC_ARCHFLAG([PORTABLE?], [ACTION-SUCCESS], [ACTION-FAILURE])
   1.246 +#
   1.247 +# DESCRIPTION
   1.248 +#
   1.249 +#   This macro tries to guess the "native" arch corresponding to the target
   1.250 +#   architecture for use with gcc's -march=arch or -mtune=arch flags. If
   1.251 +#   found, the cache variable $ax_cv_gcc_archflag is set to this flag and
   1.252 +#   ACTION-SUCCESS is executed; otherwise $ax_cv_gcc_archflag is is set to
   1.253 +#   "unknown" and ACTION-FAILURE is executed. The default ACTION-SUCCESS is
   1.254 +#   to add $ax_cv_gcc_archflag to the end of $CFLAGS.
   1.255 +#
   1.256 +#   PORTABLE? should be either [yes] (default) or [no]. In the former case,
   1.257 +#   the flag is set to -mtune (or equivalent) so that the architecture is
   1.258 +#   only used for tuning, but the instruction set used is still portable. In
   1.259 +#   the latter case, the flag is set to -march (or equivalent) so that
   1.260 +#   architecture-specific instructions are enabled.
   1.261 +#
   1.262 +#   The user can specify --with-gcc-arch=<arch> in order to override the
   1.263 +#   macro's choice of architecture, or --without-gcc-arch to disable this.
   1.264 +#
   1.265 +#   When cross-compiling, or if $CC is not gcc, then ACTION-FAILURE is
   1.266 +#   called unless the user specified --with-gcc-arch manually.
   1.267 +#
   1.268 +#   Requires macros: AX_CHECK_COMPILER_FLAGS, AX_GCC_X86_CPUID
   1.269 +#
   1.270 +#   (The main emphasis here is on recent CPUs, on the principle that doing
   1.271 +#   high-performance computing on old hardware is uncommon.)
   1.272 +#
   1.273 +# LICENSE
   1.274 +#
   1.275 +#   Copyright (c) 2008 Steven G. Johnson <stevenj@alum.mit.edu>
   1.276 +#   Copyright (c) 2008 Matteo Frigo
   1.277 +#
   1.278 +#   This program is free software: you can redistribute it and/or modify it
   1.279 +#   under the terms of the GNU General Public License as published by the
   1.280 +#   Free Software Foundation, either version 3 of the License, or (at your
   1.281 +#   option) any later version.
   1.282 +#
   1.283 +#   This program is distributed in the hope that it will be useful, but
   1.284 +#   WITHOUT ANY WARRANTY; without even the implied warranty of
   1.285 +#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
   1.286 +#   Public License for more details.
   1.287 +#
   1.288 +#   You should have received a copy of the GNU General Public License along
   1.289 +#   with this program. If not, see <http://www.gnu.org/licenses/>.
   1.290 +#
   1.291 +#   As a special exception, the respective Autoconf Macro's copyright owner
   1.292 +#   gives unlimited permission to copy, distribute and modify the configure
   1.293 +#   scripts that are the output of Autoconf when processing the Macro. You
   1.294 +#   need not follow the terms of the GNU General Public License when using
   1.295 +#   or distributing such scripts, even though portions of the text of the
   1.296 +#   Macro appear in them. The GNU General Public License (GPL) does govern
   1.297 +#   all other use of the material that constitutes the Autoconf Macro.
   1.298 +#
   1.299 +#   This special exception to the GPL applies to versions of the Autoconf
   1.300 +#   Macro released by the Autoconf Archive. When you make and distribute a
   1.301 +#   modified version of the Autoconf Macro, you may extend this special
   1.302 +#   exception to the GPL to apply to your modified version as well.
   1.303 +
   1.304 +#serial 8
   1.305 +
   1.306 +AC_DEFUN([AX_GCC_ARCHFLAG],
   1.307 +[AC_REQUIRE([AC_PROG_CC])
   1.308 +AC_REQUIRE([AC_CANONICAL_HOST])
   1.309 +
   1.310 +AC_ARG_WITH(gcc-arch, [AS_HELP_STRING([--with-gcc-arch=<arch>], [use architecture <arch> for gcc -march/-mtune, instead of guessing])],
   1.311 +	ax_gcc_arch=$withval, ax_gcc_arch=yes)
   1.312 +
   1.313 +AC_MSG_CHECKING([for gcc architecture flag])
   1.314 +AC_MSG_RESULT([])
   1.315 +AC_CACHE_VAL(ax_cv_gcc_archflag,
   1.316 +[
   1.317 +ax_cv_gcc_archflag="unknown"
   1.318 +
   1.319 +if test "$GCC" = yes; then
   1.320 +
   1.321 +if test "x$ax_gcc_arch" = xyes; then
   1.322 +ax_gcc_arch=""
   1.323 +if test "$cross_compiling" = no; then
   1.324 +case $host_cpu in
   1.325 +  i[[3456]]86*|x86_64*) # use cpuid codes, in part from x86info-1.7 by D. Jones
   1.326 +     AX_GCC_X86_CPUID(0)
   1.327 +     AX_GCC_X86_CPUID(1)
   1.328 +     case $ax_cv_gcc_x86_cpuid_0 in
   1.329 +       *:756e6547:*:*) # Intel
   1.330 +          case $ax_cv_gcc_x86_cpuid_1 in
   1.331 +	    *5[[48]]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;;
   1.332 +	    *5??:*:*:*) ax_gcc_arch=pentium ;;
   1.333 +	    *6[[3456]]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
   1.334 +	    *6a?:*[[01]]:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
   1.335 +	    *6a?:*[[234]]:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
   1.336 +	    *6[[9d]]?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;;
   1.337 +	    *6[[78b]]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
   1.338 +	    *6??:*:*:*) ax_gcc_arch=pentiumpro ;;
   1.339 +            *f3[[347]]:*:*:*|*f4[1347]:*:*:*)
   1.340 +		case $host_cpu in
   1.341 +                  x86_64*) ax_gcc_arch="nocona pentium4 pentiumpro" ;;
   1.342 +                  *) ax_gcc_arch="prescott pentium4 pentiumpro" ;;
   1.343 +                esac ;;
   1.344 +            *f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro";;
   1.345 +          esac ;;
   1.346 +       *:68747541:*:*) # AMD
   1.347 +          case $ax_cv_gcc_x86_cpuid_1 in
   1.348 +	    *5[[67]]?:*:*:*) ax_gcc_arch=k6 ;;
   1.349 +	    *5[[8d]]?:*:*:*) ax_gcc_arch="k6-2 k6" ;;
   1.350 +	    *5[[9]]?:*:*:*) ax_gcc_arch="k6-3 k6" ;;
   1.351 +	    *60?:*:*:*) ax_gcc_arch=k7 ;;
   1.352 +	    *6[[12]]?:*:*:*) ax_gcc_arch="athlon k7" ;;
   1.353 +	    *6[[34]]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;;
   1.354 +	    *67?:*:*:*) ax_gcc_arch="athlon-4 athlon k7" ;;
   1.355 +	    *6[[68a]]?:*:*:*)
   1.356 +	       AX_GCC_X86_CPUID(0x80000006) # L2 cache size
   1.357 +	       case $ax_cv_gcc_x86_cpuid_0x80000006 in
   1.358 +                 *:*:*[[1-9a-f]]??????:*) # (L2 = ecx >> 16) >= 256
   1.359 +			ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;;
   1.360 +                 *) ax_gcc_arch="athlon-4 athlon k7" ;;
   1.361 +	       esac ;;
   1.362 +	    *f[[4cef8b]]?:*:*:*) ax_gcc_arch="athlon64 k8" ;;
   1.363 +	    *f5?:*:*:*) ax_gcc_arch="opteron k8" ;;
   1.364 +	    *f7?:*:*:*) ax_gcc_arch="athlon-fx opteron k8" ;;
   1.365 +	    *f??:*:*:*) ax_gcc_arch="k8" ;;
   1.366 +          esac ;;
   1.367 +	*:746e6543:*:*) # IDT
   1.368 +	   case $ax_cv_gcc_x86_cpuid_1 in
   1.369 +	     *54?:*:*:*) ax_gcc_arch=winchip-c6 ;;
   1.370 +	     *58?:*:*:*) ax_gcc_arch=winchip2 ;;
   1.371 +	     *6[[78]]?:*:*:*) ax_gcc_arch=c3 ;;
   1.372 +	     *69?:*:*:*) ax_gcc_arch="c3-2 c3" ;;
   1.373 +	   esac ;;
   1.374 +     esac
   1.375 +     if test x"$ax_gcc_arch" = x; then # fallback
   1.376 +	case $host_cpu in
   1.377 +	  i586*) ax_gcc_arch=pentium ;;
   1.378 +	  i686*) ax_gcc_arch=pentiumpro ;;
   1.379 +        esac
   1.380 +     fi
   1.381 +     ;;
   1.382 +
   1.383 +  sparc*)
   1.384 +     AC_PATH_PROG([PRTDIAG], [prtdiag], [prtdiag], [$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/])
   1.385 +     cputype=`(((grep cpu /proc/cpuinfo | cut -d: -f2) ; ($PRTDIAG -v |grep -i sparc) ; grep -i cpu /var/run/dmesg.boot ) | head -n 1) 2> /dev/null`
   1.386 +     cputype=`echo "$cputype" | tr -d ' -' |tr $as_cr_LETTERS $as_cr_letters`
   1.387 +     case $cputype in
   1.388 +         *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;;
   1.389 +         *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;;
   1.390 +         *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;;
   1.391 +         *supersparc*|*tms390z5[[05]]*) ax_gcc_arch="supersparc v8" ;;
   1.392 +         *hypersparc*|*rt62[[056]]*) ax_gcc_arch="hypersparc v8" ;;
   1.393 +         *cypress*) ax_gcc_arch=cypress ;;
   1.394 +     esac ;;
   1.395 +
   1.396 +  alphaev5) ax_gcc_arch=ev5 ;;
   1.397 +  alphaev56) ax_gcc_arch=ev56 ;;
   1.398 +  alphapca56) ax_gcc_arch="pca56 ev56" ;;
   1.399 +  alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;;
   1.400 +  alphaev6) ax_gcc_arch=ev6 ;;
   1.401 +  alphaev67) ax_gcc_arch=ev67 ;;
   1.402 +  alphaev68) ax_gcc_arch="ev68 ev67" ;;
   1.403 +  alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;;
   1.404 +  alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;;
   1.405 +  alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;;
   1.406 +
   1.407 +  powerpc*)
   1.408 +     cputype=`((grep cpu /proc/cpuinfo | head -n 1 | cut -d: -f2 | cut -d, -f1 | sed 's/ //g') ; /usr/bin/machine ; /bin/machine; grep CPU /var/run/dmesg.boot | head -n 1 | cut -d" " -f2) 2> /dev/null`
   1.409 +     cputype=`echo $cputype | sed -e 's/ppc//g;s/ *//g'`
   1.410 +     case $cputype in
   1.411 +       *750*) ax_gcc_arch="750 G3" ;;
   1.412 +       *740[[0-9]]*) ax_gcc_arch="$cputype 7400 G4" ;;
   1.413 +       *74[[4-5]][[0-9]]*) ax_gcc_arch="$cputype 7450 G4" ;;
   1.414 +       *74[[0-9]][[0-9]]*) ax_gcc_arch="$cputype G4" ;;
   1.415 +       *970*) ax_gcc_arch="970 G5 power4";;
   1.416 +       *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";;
   1.417 +       *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";;
   1.418 +       603ev|8240) ax_gcc_arch="$cputype 603e 603";;
   1.419 +       *) ax_gcc_arch=$cputype ;;
   1.420 +     esac
   1.421 +     ax_gcc_arch="$ax_gcc_arch powerpc"
   1.422 +     ;;
   1.423 +esac
   1.424 +fi # not cross-compiling
   1.425 +fi # guess arch
   1.426 +
   1.427 +if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then
   1.428 +for arch in $ax_gcc_arch; do
   1.429 +  if test "x[]m4_default([$1],yes)" = xyes; then # if we require portable code
   1.430 +    flags="-mtune=$arch"
   1.431 +    # -mcpu=$arch and m$arch generate nonportable code on every arch except
   1.432 +    # x86.  And some other arches (e.g. Alpha) don't accept -mtune.  Grrr.
   1.433 +    case $host_cpu in i*86|x86_64*) flags="$flags -mcpu=$arch -m$arch";; esac
   1.434 +  else
   1.435 +    flags="-march=$arch -mcpu=$arch -m$arch"
   1.436 +  fi
   1.437 +  for flag in $flags; do
   1.438 +    AX_CHECK_COMPILER_FLAGS($flag, [ax_cv_gcc_archflag=$flag; break])
   1.439 +  done
   1.440 +  test "x$ax_cv_gcc_archflag" = xunknown || break
   1.441 +done
   1.442 +fi
   1.443 +
   1.444 +fi # $GCC=yes
   1.445 +])
   1.446 +AC_MSG_CHECKING([for gcc architecture flag])
   1.447 +AC_MSG_RESULT($ax_cv_gcc_archflag)
   1.448 +if test "x$ax_cv_gcc_archflag" = xunknown; then
   1.449 +  m4_default([$3],:)
   1.450 +else
   1.451 +  m4_default([$2], [CFLAGS="$CFLAGS $ax_cv_gcc_archflag"])
   1.452 +fi
   1.453 +])
   1.454 +# ===========================================================================
   1.455 +#     http://www.gnu.org/software/autoconf-archive/ax_gcc_x86_cpuid.html
   1.456 +# ===========================================================================
   1.457 +#
   1.458 +# SYNOPSIS
   1.459 +#
   1.460 +#   AX_GCC_X86_CPUID(OP)
   1.461 +#
   1.462 +# DESCRIPTION
   1.463 +#
   1.464 +#   On Pentium and later x86 processors, with gcc or a compiler that has a
   1.465 +#   compatible syntax for inline assembly instructions, run a small program
   1.466 +#   that executes the cpuid instruction with input OP. This can be used to
   1.467 +#   detect the CPU type.
   1.468 +#
   1.469 +#   On output, the values of the eax, ebx, ecx, and edx registers are stored
   1.470 +#   as hexadecimal strings as "eax:ebx:ecx:edx" in the cache variable
   1.471 +#   ax_cv_gcc_x86_cpuid_OP.
   1.472 +#
   1.473 +#   If the cpuid instruction fails (because you are running a
   1.474 +#   cross-compiler, or because you are not using gcc, or because you are on
   1.475 +#   a processor that doesn't have this instruction), ax_cv_gcc_x86_cpuid_OP
   1.476 +#   is set to the string "unknown".
   1.477 +#
   1.478 +#   This macro mainly exists to be used in AX_GCC_ARCHFLAG.
   1.479 +#
   1.480 +# LICENSE
   1.481 +#
   1.482 +#   Copyright (c) 2008 Steven G. Johnson <stevenj@alum.mit.edu>
   1.483 +#   Copyright (c) 2008 Matteo Frigo
   1.484 +#
   1.485 +#   This program is free software: you can redistribute it and/or modify it
   1.486 +#   under the terms of the GNU General Public License as published by the
   1.487 +#   Free Software Foundation, either version 3 of the License, or (at your
   1.488 +#   option) any later version.
   1.489 +#
   1.490 +#   This program is distributed in the hope that it will be useful, but
   1.491 +#   WITHOUT ANY WARRANTY; without even the implied warranty of
   1.492 +#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
   1.493 +#   Public License for more details.
   1.494 +#
   1.495 +#   You should have received a copy of the GNU General Public License along
   1.496 +#   with this program. If not, see <http://www.gnu.org/licenses/>.
   1.497 +#
   1.498 +#   As a special exception, the respective Autoconf Macro's copyright owner
   1.499 +#   gives unlimited permission to copy, distribute and modify the configure
   1.500 +#   scripts that are the output of Autoconf when processing the Macro. You
   1.501 +#   need not follow the terms of the GNU General Public License when using
   1.502 +#   or distributing such scripts, even though portions of the text of the
   1.503 +#   Macro appear in them. The GNU General Public License (GPL) does govern
   1.504 +#   all other use of the material that constitutes the Autoconf Macro.
   1.505 +#
   1.506 +#   This special exception to the GPL applies to versions of the Autoconf
   1.507 +#   Macro released by the Autoconf Archive. When you make and distribute a
   1.508 +#   modified version of the Autoconf Macro, you may extend this special
   1.509 +#   exception to the GPL to apply to your modified version as well.
   1.510 +
   1.511 +#serial 7
   1.512 +
   1.513 +AC_DEFUN([AX_GCC_X86_CPUID],
   1.514 +[AC_REQUIRE([AC_PROG_CC])
   1.515 +AC_LANG_PUSH([C])
   1.516 +AC_CACHE_CHECK(for x86 cpuid $1 output, ax_cv_gcc_x86_cpuid_$1,
   1.517 + [AC_RUN_IFELSE([AC_LANG_PROGRAM([#include <stdio.h>], [
   1.518 +     int op = $1, eax, ebx, ecx, edx;
   1.519 +     FILE *f;
   1.520 +      __asm__("cpuid"
   1.521 +        : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
   1.522 +        : "a" (op));
   1.523 +     f = fopen("conftest_cpuid", "w"); if (!f) return 1;
   1.524 +     fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
   1.525 +     fclose(f);
   1.526 +     return 0;
   1.527 +])],
   1.528 +     [ax_cv_gcc_x86_cpuid_$1=`cat conftest_cpuid`; rm -f conftest_cpuid],
   1.529 +     [ax_cv_gcc_x86_cpuid_$1=unknown; rm -f conftest_cpuid],
   1.530 +     [ax_cv_gcc_x86_cpuid_$1=unknown])])
   1.531 +AC_LANG_POP([C])
   1.532 +])
   1.533 +##############################################################################
   1.534 +#
   1.535 +# --- esd.m4 ---
   1.536 +#
   1.537 +# Configure paths for ESD
   1.538 +# Manish Singh    98-9-30
   1.539 +# stolen back from Frank Belew
   1.540 +# stolen from Manish Singh
   1.541 +# Shamelessly stolen from Owen Taylor
   1.542 +
   1.543 +dnl AM_PATH_ESD([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])
   1.544 +dnl Test for ESD, and define ESD_CFLAGS and ESD_LIBS
   1.545 +dnl
   1.546 +AC_DEFUN([AM_PATH_ESD],
   1.547 +[dnl 
   1.548 +dnl Get the cflags and libraries from the esd-config script
   1.549 +dnl
   1.550 +AC_ARG_WITH(esd-prefix,[  --with-esd-prefix=PFX   Prefix where ESD is installed (optional)],
   1.551 +            esd_prefix="$withval", esd_prefix="")
   1.552 +AC_ARG_WITH(esd-exec-prefix,[  --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)],
   1.553 +            esd_exec_prefix="$withval", esd_exec_prefix="")
   1.554 +AC_ARG_ENABLE(esdtest, [  --disable-esdtest       Do not try to compile and run a test ESD program],
   1.555 +		    , enable_esdtest=yes)
   1.556 +
   1.557 +  if test x$esd_exec_prefix != x ; then
   1.558 +     esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
   1.559 +     if test x${ESD_CONFIG+set} != xset ; then
   1.560 +        ESD_CONFIG=$esd_exec_prefix/bin/esd-config
   1.561 +     fi
   1.562 +  fi
   1.563 +  if test x$esd_prefix != x ; then
   1.564 +     esd_args="$esd_args --prefix=$esd_prefix"
   1.565 +     if test x${ESD_CONFIG+set} != xset ; then
   1.566 +        ESD_CONFIG=$esd_prefix/bin/esd-config
   1.567 +     fi
   1.568 +  fi
   1.569 +
   1.570 +  AC_PATH_PROG(ESD_CONFIG, esd-config, no)
   1.571 +  min_esd_version=ifelse([$1], ,0.2.7,$1)
   1.572 +  AC_MSG_CHECKING(for ESD - version >= $min_esd_version)
   1.573 +  no_esd=""
   1.574 +  if test "$ESD_CONFIG" = "no" ; then
   1.575 +    no_esd=yes
   1.576 +  else
   1.577 +    ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
   1.578 +    ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
   1.579 +
   1.580 +    esd_major_version=`$ESD_CONFIG $esd_args --version | \
   1.581 +           sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
   1.582 +    esd_minor_version=`$ESD_CONFIG $esd_args --version | \
   1.583 +           sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
   1.584 +    esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
   1.585 +           sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
   1.586 +    if test "x$enable_esdtest" = "xyes" ; then
   1.587 +      ac_save_CFLAGS="$CFLAGS"
   1.588 +      ac_save_LIBS="$LIBS"
   1.589 +      CFLAGS="$CFLAGS $ESD_CFLAGS"
   1.590 +      LIBS="$LIBS $ESD_LIBS"
   1.591 +dnl
   1.592 +dnl Now check if the installed ESD is sufficiently new. (Also sanity
   1.593 +dnl checks the results of esd-config to some extent
   1.594 +dnl
   1.595 +      rm -f conf.esdtest
   1.596 +      AC_TRY_RUN([
   1.597 +#include <stdio.h>
   1.598 +#include <stdlib.h>
   1.599 +#include <string.h>
   1.600 +#include <esd.h>
   1.601 +
   1.602 +char*
   1.603 +my_strdup (char *str)
   1.604 +{
   1.605 +  char *new_str;
   1.606 +  
   1.607 +  if (str)
   1.608 +    {
   1.609 +      new_str = malloc ((strlen (str) + 1) * sizeof(char));
   1.610 +      strcpy (new_str, str);
   1.611 +    }
   1.612 +  else
   1.613 +    new_str = NULL;
   1.614 +  
   1.615 +  return new_str;
   1.616 +}
   1.617 +
   1.618 +int main ()
   1.619 +{
   1.620 +  int major, minor, micro;
   1.621 +  char *tmp_version;
   1.622 +
   1.623 +  system ("touch conf.esdtest");
   1.624 +
   1.625 +  /* HP/UX 9 (%@#!) writes to sscanf strings */
   1.626 +  tmp_version = my_strdup("$min_esd_version");
   1.627 +  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
   1.628 +     printf("%s, bad version string\n", "$min_esd_version");
   1.629 +     exit(1);
   1.630 +   }
   1.631 +
   1.632 +   if (($esd_major_version > major) ||
   1.633 +      (($esd_major_version == major) && ($esd_minor_version > minor)) ||
   1.634 +      (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
   1.635 +    {
   1.636 +      return 0;
   1.637 +    }
   1.638 +  else
   1.639 +    {
   1.640 +      printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
   1.641 +      printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
   1.642 +      printf("*** best to upgrade to the required version.\n");
   1.643 +      printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
   1.644 +      printf("*** to point to the correct copy of esd-config, and remove the file\n");
   1.645 +      printf("*** config.cache before re-running configure\n");
   1.646 +      return 1;
   1.647 +    }
   1.648 +}
   1.649 +
   1.650 +],, no_esd=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
   1.651 +       CFLAGS="$ac_save_CFLAGS"
   1.652 +       LIBS="$ac_save_LIBS"
   1.653 +     fi
   1.654 +  fi
   1.655 +  if test "x$no_esd" = x ; then
   1.656 +     AC_MSG_RESULT(yes)
   1.657 +     ifelse([$2], , :, [$2])     
   1.658 +  else
   1.659 +     AC_MSG_RESULT(no)
   1.660 +     if test "$ESD_CONFIG" = "no" ; then
   1.661 +       echo "*** The esd-config script installed by ESD could not be found"
   1.662 +       echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
   1.663 +       echo "*** your path, or set the ESD_CONFIG environment variable to the"
   1.664 +       echo "*** full path to esd-config."
   1.665 +     else
   1.666 +       if test -f conf.esdtest ; then
   1.667 +        :
   1.668 +       else
   1.669 +          echo "*** Could not run ESD test program, checking why..."
   1.670 +          CFLAGS="$CFLAGS $ESD_CFLAGS"
   1.671 +          LIBS="$LIBS $ESD_LIBS"
   1.672 +          AC_TRY_LINK([
   1.673 +#include <stdio.h>
   1.674 +#include <esd.h>
   1.675 +],      [ return 0; ],
   1.676 +        [ echo "*** The test program compiled, but did not run. This usually means"
   1.677 +          echo "*** that the run-time linker is not finding ESD or finding the wrong"
   1.678 +          echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
   1.679 +          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
   1.680 +          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
   1.681 +          echo "*** is required on your system"
   1.682 +	  echo "***"
   1.683 +          echo "*** If you have an old version installed, it is best to remove it, although"
   1.684 +          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"],
   1.685 +        [ echo "*** The test program failed to compile or link. See the file config.log for the"
   1.686 +          echo "*** exact error that occured. This usually means ESD was incorrectly installed"
   1.687 +          echo "*** or that you have moved ESD since it was installed. In the latter case, you"
   1.688 +          echo "*** may want to edit the esd-config script: $ESD_CONFIG" ])
   1.689 +          CFLAGS="$ac_save_CFLAGS"
   1.690 +          LIBS="$ac_save_LIBS"
   1.691 +       fi
   1.692 +     fi
   1.693 +     ESD_CFLAGS=""
   1.694 +     ESD_LIBS=""
   1.695 +     ifelse([$3], , :, [$3])
   1.696 +  fi
   1.697 +  AC_SUBST(ESD_CFLAGS)
   1.698 +  AC_SUBST(ESD_LIBS)
   1.699 +  rm -f conf.esdtest
   1.700 +])
   1.701 +##############################################################################
   1.702 +# Based on libtool-2.2.6a
   1.703 +# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
   1.704 +#
   1.705 +#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
   1.706 +#                 2006, 2007, 2008 Free Software Foundation, Inc.
   1.707 +#   Written by Gordon Matzigkeit, 1996
   1.708 +#
   1.709 +# This file is free software; the Free Software Foundation gives
   1.710 +# unlimited permission to copy and/or distribute it, with or without
   1.711 +# modifications, as long as this notice is preserved.
   1.712 +
   1.713 +m4_define([_LT_COPYING], [dnl
   1.714 +#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
   1.715 +#                 2006, 2007, 2008 Free Software Foundation, Inc.
   1.716 +#   Written by Gordon Matzigkeit, 1996
   1.717 +#
   1.718 +#   This file is part of GNU Libtool.
   1.719 +#
   1.720 +# GNU Libtool is free software; you can redistribute it and/or
   1.721 +# modify it under the terms of the GNU General Public License as
   1.722 +# published by the Free Software Foundation; either version 2 of
   1.723 +# the License, or (at your option) any later version.
   1.724 +#
   1.725 +# As a special exception to the GNU General Public License,
   1.726 +# if you distribute this file as part of a program or library that
   1.727 +# is built using GNU Libtool, you may include this file under the
   1.728 +# same distribution terms that you use for the rest of that program.
   1.729 +#
   1.730 +# GNU Libtool is distributed in the hope that it will be useful,
   1.731 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
   1.732 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   1.733 +# GNU General Public License for more details.
   1.734 +#
   1.735 +# You should have received a copy of the GNU General Public License
   1.736 +# along with GNU Libtool; see the file COPYING.  If not, a copy
   1.737 +# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
   1.738 +# obtained by writing to the Free Software Foundation, Inc.,
   1.739 +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
   1.740 +])
   1.741 +
   1.742 +# serial 56 LT_INIT
   1.743 +
   1.744 +
   1.745 +# LT_PREREQ(VERSION)
   1.746 +# ------------------
   1.747 +# Complain and exit if this libtool version is less that VERSION.
   1.748 +m4_defun([LT_PREREQ],
   1.749 +[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
   1.750 +       [m4_default([$3],
   1.751 +		   [m4_fatal([Libtool version $1 or higher is required],
   1.752 +		             63)])],
   1.753 +       [$2])])
   1.754 +
   1.755 +
   1.756 +# _LT_CHECK_BUILDDIR
   1.757 +# ------------------
   1.758 +# Complain if the absolute build directory name contains unusual characters
   1.759 +m4_defun([_LT_CHECK_BUILDDIR],
   1.760 +[case `pwd` in
   1.761 +  *\ * | *\	*)
   1.762 +    AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
   1.763 +esac
   1.764 +])
   1.765 +
   1.766 +
   1.767 +# LT_INIT([OPTIONS])
   1.768 +# ------------------
   1.769 +AC_DEFUN([LT_INIT],
   1.770 +[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
   1.771 +AC_BEFORE([$0], [LT_LANG])dnl
   1.772 +AC_BEFORE([$0], [LT_OUTPUT])dnl
   1.773 +AC_BEFORE([$0], [LTDL_INIT])dnl
   1.774 +m4_require([_LT_CHECK_BUILDDIR])dnl
   1.775 +
   1.776 +dnl Autoconf doesn't catch unexpanded LT_ macros by default:
   1.777 +m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
   1.778 +m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
   1.779 +dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
   1.780 +dnl unless we require an AC_DEFUNed macro:
   1.781 +AC_REQUIRE([LTOPTIONS_VERSION])dnl
   1.782 +AC_REQUIRE([LTSUGAR_VERSION])dnl
   1.783 +AC_REQUIRE([LTVERSION_VERSION])dnl
   1.784 +AC_REQUIRE([LTOBSOLETE_VERSION])dnl
   1.785 +m4_require([_LT_PROG_LTMAIN])dnl
   1.786 +
   1.787 +dnl Parse OPTIONS
   1.788 +_LT_SET_OPTIONS([$0], [$1])
   1.789 +
   1.790 +# This can be used to rebuild libtool when needed
   1.791 +LIBTOOL_DEPS="$ltmain"
   1.792 +
   1.793 +# Always use our own libtool.
   1.794 +LIBTOOL='$(SHELL) $(top_builddir)/libtool'
   1.795 +AC_SUBST(LIBTOOL)dnl
   1.796 +
   1.797 +_LT_SETUP
   1.798 +
   1.799 +# Only expand once:
   1.800 +m4_define([LT_INIT])
   1.801 +])# LT_INIT
   1.802 +
   1.803 +# Old names:
   1.804 +AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
   1.805 +AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
   1.806 +dnl aclocal-1.4 backwards compatibility:
   1.807 +dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
   1.808 +dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
   1.809 +
   1.810 +
   1.811 +# _LT_CC_BASENAME(CC)
   1.812 +# -------------------
   1.813 +# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
   1.814 +m4_defun([_LT_CC_BASENAME],
   1.815 +[for cc_temp in $1""; do
   1.816 +  case $cc_temp in
   1.817 +    compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
   1.818 +    distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
   1.819 +    \-*) ;;
   1.820 +    *) break;;
   1.821 +  esac
   1.822 +done
   1.823 +cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
   1.824 +])
   1.825 +
   1.826 +
   1.827 +# _LT_FILEUTILS_DEFAULTS
   1.828 +# ----------------------
   1.829 +# It is okay to use these file commands and assume they have been set
   1.830 +# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
   1.831 +m4_defun([_LT_FILEUTILS_DEFAULTS],
   1.832 +[: ${CP="cp -f"}
   1.833 +: ${MV="mv -f"}
   1.834 +: ${RM="rm -f"}
   1.835 +])# _LT_FILEUTILS_DEFAULTS
   1.836 +
   1.837 +
   1.838 +# _LT_SETUP
   1.839 +# ---------
   1.840 +m4_defun([_LT_SETUP],
   1.841 +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
   1.842 +AC_REQUIRE([AC_CANONICAL_BUILD])dnl
   1.843 +_LT_DECL([], [host_alias], [0], [The host system])dnl
   1.844 +_LT_DECL([], [host], [0])dnl
   1.845 +_LT_DECL([], [host_os], [0])dnl
   1.846 +dnl
   1.847 +_LT_DECL([], [build_alias], [0], [The build system])dnl
   1.848 +_LT_DECL([], [build], [0])dnl
   1.849 +_LT_DECL([], [build_os], [0])dnl
   1.850 +dnl
   1.851 +AC_REQUIRE([AC_PROG_CC])dnl
   1.852 +AC_REQUIRE([LT_PATH_LD])dnl
   1.853 +AC_REQUIRE([LT_PATH_NM])dnl
   1.854 +dnl
   1.855 +AC_REQUIRE([AC_PROG_LN_S])dnl
   1.856 +test -z "$LN_S" && LN_S="ln -s"
   1.857 +_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
   1.858 +dnl
   1.859 +AC_REQUIRE([LT_CMD_MAX_LEN])dnl
   1.860 +_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
   1.861 +_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
   1.862 +dnl
   1.863 +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
   1.864 +m4_require([_LT_CHECK_SHELL_FEATURES])dnl
   1.865 +m4_require([_LT_CMD_RELOAD])dnl
   1.866 +m4_require([_LT_CHECK_MAGIC_METHOD])dnl
   1.867 +m4_require([_LT_CMD_OLD_ARCHIVE])dnl
   1.868 +m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
   1.869 +
   1.870 +_LT_CONFIG_LIBTOOL_INIT([
   1.871 +# See if we are running on zsh, and set the options which allow our
   1.872 +# commands through without removal of \ escapes INIT.
   1.873 +if test -n "\${ZSH_VERSION+set}" ; then
   1.874 +   setopt NO_GLOB_SUBST
   1.875 +fi
   1.876 +])
   1.877 +if test -n "${ZSH_VERSION+set}" ; then
   1.878 +   setopt NO_GLOB_SUBST
   1.879 +fi
   1.880 +
   1.881 +_LT_CHECK_OBJDIR
   1.882 +
   1.883 +m4_require([_LT_TAG_COMPILER])dnl
   1.884 +_LT_PROG_ECHO_BACKSLASH
   1.885 +
   1.886 +case $host_os in
   1.887 +aix3*)
   1.888 +  # AIX sometimes has problems with the GCC collect2 program.  For some
   1.889 +  # reason, if we set the COLLECT_NAMES environment variable, the problems
   1.890 +  # vanish in a puff of smoke.
   1.891 +  if test "X${COLLECT_NAMES+set}" != Xset; then
   1.892 +    COLLECT_NAMES=
   1.893 +    export COLLECT_NAMES
   1.894 +  fi
   1.895 +  ;;
   1.896 +esac
   1.897 +
   1.898 +# Sed substitution that helps us do robust quoting.  It backslashifies
   1.899 +# metacharacters that are still active within double-quoted strings.
   1.900 +sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
   1.901 +
   1.902 +# Same as above, but do not quote variable references.
   1.903 +double_quote_subst='s/\([["`\\]]\)/\\\1/g'
   1.904 +
   1.905 +# Sed substitution to delay expansion of an escaped shell variable in a
   1.906 +# double_quote_subst'ed string.
   1.907 +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
   1.908 +
   1.909 +# Sed substitution to delay expansion of an escaped single quote.
   1.910 +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
   1.911 +
   1.912 +# Sed substitution to avoid accidental globbing in evaled expressions
   1.913 +no_glob_subst='s/\*/\\\*/g'
   1.914 +
   1.915 +# Global variables:
   1.916 +ofile=libtool
   1.917 +can_build_shared=yes
   1.918 +
   1.919 +# All known linkers require a `.a' archive for static linking (except MSVC,
   1.920 +# which needs '.lib').
   1.921 +libext=a
   1.922 +
   1.923 +with_gnu_ld="$lt_cv_prog_gnu_ld"
   1.924 +
   1.925 +old_CC="$CC"
   1.926 +old_CFLAGS="$CFLAGS"
   1.927 +
   1.928 +# Set sane defaults for various variables
   1.929 +test -z "$CC" && CC=cc
   1.930 +test -z "$LTCC" && LTCC=$CC
   1.931 +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
   1.932 +test -z "$LD" && LD=ld
   1.933 +test -z "$ac_objext" && ac_objext=o
   1.934 +
   1.935 +_LT_CC_BASENAME([$compiler])
   1.936 +
   1.937 +# Only perform the check for file, if the check method requires it
   1.938 +test -z "$MAGIC_CMD" && MAGIC_CMD=file
   1.939 +case $deplibs_check_method in
   1.940 +file_magic*)
   1.941 +  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
   1.942 +    _LT_PATH_MAGIC
   1.943 +  fi
   1.944 +  ;;
   1.945 +esac
   1.946 +
   1.947 +# Use C for the default configuration in the libtool script
   1.948 +LT_SUPPORTED_TAG([CC])
   1.949 +_LT_LANG_C_CONFIG
   1.950 +_LT_LANG_DEFAULT_CONFIG
   1.951 +_LT_CONFIG_COMMANDS
   1.952 +])# _LT_SETUP
   1.953 +
   1.954 +
   1.955 +# _LT_PROG_LTMAIN
   1.956 +# ---------------
   1.957 +# Note that this code is called both from `configure', and `config.status'
   1.958 +# now that we use AC_CONFIG_COMMANDS to generate libtool.  Notably,
   1.959 +# `config.status' has no value for ac_aux_dir unless we are using Automake,
   1.960 +# so we pass a copy along to make sure it has a sensible value anyway.
   1.961 +m4_defun([_LT_PROG_LTMAIN],
   1.962 +[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
   1.963 +_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
   1.964 +ltmain="$ac_aux_dir/ltmain.sh"
   1.965 +])# _LT_PROG_LTMAIN
   1.966 +
   1.967 +
   1.968 +## ------------------------------------- ##
   1.969 +## Accumulate code for creating libtool. ##
   1.970 +## ------------------------------------- ##
   1.971 +
   1.972 +# So that we can recreate a full libtool script including additional
   1.973 +# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
   1.974 +# in macros and then make a single call at the end using the `libtool'
   1.975 +# label.
   1.976 +
   1.977 +
   1.978 +# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
   1.979 +# ----------------------------------------
   1.980 +# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
   1.981 +m4_define([_LT_CONFIG_LIBTOOL_INIT],
   1.982 +[m4_ifval([$1],
   1.983 +          [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
   1.984 +                     [$1
   1.985 +])])])
   1.986 +
   1.987 +# Initialize.
   1.988 +m4_define([_LT_OUTPUT_LIBTOOL_INIT])
   1.989 +
   1.990 +
   1.991 +# _LT_CONFIG_LIBTOOL([COMMANDS])
   1.992 +# ------------------------------
   1.993 +# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
   1.994 +m4_define([_LT_CONFIG_LIBTOOL],
   1.995 +[m4_ifval([$1],
   1.996 +          [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
   1.997 +                     [$1
   1.998 +])])])
   1.999 +
  1.1000 +# Initialize.
  1.1001 +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
  1.1002 +
  1.1003 +
  1.1004 +# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
  1.1005 +# -----------------------------------------------------
  1.1006 +m4_defun([_LT_CONFIG_SAVE_COMMANDS],
  1.1007 +[_LT_CONFIG_LIBTOOL([$1])
  1.1008 +_LT_CONFIG_LIBTOOL_INIT([$2])
  1.1009 +])
  1.1010 +
  1.1011 +
  1.1012 +# _LT_FORMAT_COMMENT([COMMENT])
  1.1013 +# -----------------------------
  1.1014 +# Add leading comment marks to the start of each line, and a trailing
  1.1015 +# full-stop to the whole comment if one is not present already.
  1.1016 +m4_define([_LT_FORMAT_COMMENT],
  1.1017 +[m4_ifval([$1], [
  1.1018 +m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
  1.1019 +              [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
  1.1020 +)])
  1.1021 +
  1.1022 +
  1.1023 +
  1.1024 +## ------------------------ ##
  1.1025 +## FIXME: Eliminate VARNAME ##
  1.1026 +## ------------------------ ##
  1.1027 +
  1.1028 +
  1.1029 +# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
  1.1030 +# -------------------------------------------------------------------
  1.1031 +# CONFIGNAME is the name given to the value in the libtool script.
  1.1032 +# VARNAME is the (base) name used in the configure script.
  1.1033 +# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
  1.1034 +# VARNAME.  Any other value will be used directly.
  1.1035 +m4_define([_LT_DECL],
  1.1036 +[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
  1.1037 +    [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
  1.1038 +	[m4_ifval([$1], [$1], [$2])])
  1.1039 +    lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
  1.1040 +    m4_ifval([$4],
  1.1041 +	[lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
  1.1042 +    lt_dict_add_subkey([lt_decl_dict], [$2],
  1.1043 +	[tagged?], [m4_ifval([$5], [yes], [no])])])
  1.1044 +])
  1.1045 +
  1.1046 +
  1.1047 +# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
  1.1048 +# --------------------------------------------------------
  1.1049 +m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
  1.1050 +
  1.1051 +
  1.1052 +# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
  1.1053 +# ------------------------------------------------
  1.1054 +m4_define([lt_decl_tag_varnames],
  1.1055 +[_lt_decl_filter([tagged?], [yes], $@)])
  1.1056 +
  1.1057 +
  1.1058 +# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
  1.1059 +# ---------------------------------------------------------
  1.1060 +m4_define([_lt_decl_filter],
  1.1061 +[m4_case([$#],
  1.1062 +  [0], [m4_fatal([$0: too few arguments: $#])],
  1.1063 +  [1], [m4_fatal([$0: too few arguments: $#: $1])],
  1.1064 +  [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
  1.1065 +  [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
  1.1066 +  [lt_dict_filter([lt_decl_dict], $@)])[]dnl
  1.1067 +])
  1.1068 +
  1.1069 +
  1.1070 +# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
  1.1071 +# --------------------------------------------------
  1.1072 +m4_define([lt_decl_quote_varnames],
  1.1073 +[_lt_decl_filter([value], [1], $@)])
  1.1074 +
  1.1075 +
  1.1076 +# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
  1.1077 +# ---------------------------------------------------
  1.1078 +m4_define([lt_decl_dquote_varnames],
  1.1079 +[_lt_decl_filter([value], [2], $@)])
  1.1080 +
  1.1081 +
  1.1082 +# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
  1.1083 +# ---------------------------------------------------
  1.1084 +m4_define([lt_decl_varnames_tagged],
  1.1085 +[m4_assert([$# <= 2])dnl
  1.1086 +_$0(m4_quote(m4_default([$1], [[, ]])),
  1.1087 +    m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
  1.1088 +    m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
  1.1089 +m4_define([_lt_decl_varnames_tagged],
  1.1090 +[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
  1.1091 +
  1.1092 +
  1.1093 +# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
  1.1094 +# ------------------------------------------------
  1.1095 +m4_define([lt_decl_all_varnames],
  1.1096 +[_$0(m4_quote(m4_default([$1], [[, ]])),
  1.1097 +     m4_if([$2], [],
  1.1098 +	   m4_quote(lt_decl_varnames),
  1.1099 +	m4_quote(m4_shift($@))))[]dnl
  1.1100 +])
  1.1101 +m4_define([_lt_decl_all_varnames],
  1.1102 +[lt_join($@, lt_decl_varnames_tagged([$1],
  1.1103 +			lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
  1.1104 +])
  1.1105 +
  1.1106 +
  1.1107 +# _LT_CONFIG_STATUS_DECLARE([VARNAME])
  1.1108 +# ------------------------------------
  1.1109 +# Quote a variable value, and forward it to `config.status' so that its
  1.1110 +# declaration there will have the same value as in `configure'.  VARNAME
  1.1111 +# must have a single quote delimited value for this to work.
  1.1112 +m4_define([_LT_CONFIG_STATUS_DECLARE],
  1.1113 +[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
  1.1114 +
  1.1115 +
  1.1116 +# _LT_CONFIG_STATUS_DECLARATIONS
  1.1117 +# ------------------------------
  1.1118 +# We delimit libtool config variables with single quotes, so when
  1.1119 +# we write them to config.status, we have to be sure to quote all
  1.1120 +# embedded single quotes properly.  In configure, this macro expands
  1.1121 +# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
  1.1122 +#
  1.1123 +#    <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
  1.1124 +m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
  1.1125 +[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
  1.1126 +    [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
  1.1127 +
  1.1128 +
  1.1129 +# _LT_LIBTOOL_TAGS
  1.1130 +# ----------------
  1.1131 +# Output comment and list of tags supported by the script
  1.1132 +m4_defun([_LT_LIBTOOL_TAGS],
  1.1133 +[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
  1.1134 +available_tags="_LT_TAGS"dnl
  1.1135 +])
  1.1136 +
  1.1137 +
  1.1138 +# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
  1.1139 +# -----------------------------------
  1.1140 +# Extract the dictionary values for VARNAME (optionally with TAG) and
  1.1141 +# expand to a commented shell variable setting:
  1.1142 +#
  1.1143 +#    # Some comment about what VAR is for.
  1.1144 +#    visible_name=$lt_internal_name
  1.1145 +m4_define([_LT_LIBTOOL_DECLARE],
  1.1146 +[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
  1.1147 +					   [description])))[]dnl
  1.1148 +m4_pushdef([_libtool_name],
  1.1149 +    m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
  1.1150 +m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
  1.1151 +    [0], [_libtool_name=[$]$1],
  1.1152 +    [1], [_libtool_name=$lt_[]$1],
  1.1153 +    [2], [_libtool_name=$lt_[]$1],
  1.1154 +    [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
  1.1155 +m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
  1.1156 +])
  1.1157 +
  1.1158 +
  1.1159 +# _LT_LIBTOOL_CONFIG_VARS
  1.1160 +# -----------------------
  1.1161 +# Produce commented declarations of non-tagged libtool config variables
  1.1162 +# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
  1.1163 +# script.  Tagged libtool config variables (even for the LIBTOOL CONFIG
  1.1164 +# section) are produced by _LT_LIBTOOL_TAG_VARS.
  1.1165 +m4_defun([_LT_LIBTOOL_CONFIG_VARS],
  1.1166 +[m4_foreach([_lt_var],
  1.1167 +    m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
  1.1168 +    [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
  1.1169 +
  1.1170 +
  1.1171 +# _LT_LIBTOOL_TAG_VARS(TAG)
  1.1172 +# -------------------------
  1.1173 +m4_define([_LT_LIBTOOL_TAG_VARS],
  1.1174 +[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
  1.1175 +    [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
  1.1176 +
  1.1177 +
  1.1178 +# _LT_TAGVAR(VARNAME, [TAGNAME])
  1.1179 +# ------------------------------
  1.1180 +m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
  1.1181 +
  1.1182 +
  1.1183 +# _LT_CONFIG_COMMANDS
  1.1184 +# -------------------
  1.1185 +# Send accumulated output to $CONFIG_STATUS.  Thanks to the lists of
  1.1186 +# variables for single and double quote escaping we saved from calls
  1.1187 +# to _LT_DECL, we can put quote escaped variables declarations
  1.1188 +# into `config.status', and then the shell code to quote escape them in
  1.1189 +# for loops in `config.status'.  Finally, any additional code accumulated
  1.1190 +# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
  1.1191 +m4_defun([_LT_CONFIG_COMMANDS],
  1.1192 +[AC_PROVIDE_IFELSE([LT_OUTPUT],
  1.1193 +	dnl If the libtool generation code has been placed in $CONFIG_LT,
  1.1194 +	dnl instead of duplicating it all over again into config.status,
  1.1195 +	dnl then we will have config.status run $CONFIG_LT later, so it
  1.1196 +	dnl needs to know what name is stored there:
  1.1197 +        [AC_CONFIG_COMMANDS([libtool],
  1.1198 +            [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
  1.1199 +    dnl If the libtool generation code is destined for config.status,
  1.1200 +    dnl expand the accumulated commands and init code now:
  1.1201 +    [AC_CONFIG_COMMANDS([libtool],
  1.1202 +        [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
  1.1203 +])#_LT_CONFIG_COMMANDS
  1.1204 +
  1.1205 +
  1.1206 +# Initialize.
  1.1207 +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
  1.1208 +[
  1.1209 +
  1.1210 +# The HP-UX ksh and POSIX shell print the target directory to stdout
  1.1211 +# if CDPATH is set.
  1.1212 +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  1.1213 +
  1.1214 +sed_quote_subst='$sed_quote_subst'
  1.1215 +double_quote_subst='$double_quote_subst'
  1.1216 +delay_variable_subst='$delay_variable_subst'
  1.1217 +_LT_CONFIG_STATUS_DECLARATIONS
  1.1218 +LTCC='$LTCC'
  1.1219 +LTCFLAGS='$LTCFLAGS'
  1.1220 +compiler='$compiler_DEFAULT'
  1.1221 +
  1.1222 +# Quote evaled strings.
  1.1223 +for var in lt_decl_all_varnames([[ \
  1.1224 +]], lt_decl_quote_varnames); do
  1.1225 +    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  1.1226 +    *[[\\\\\\\`\\"\\\$]]*)
  1.1227 +      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  1.1228 +      ;;
  1.1229 +    *)
  1.1230 +      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  1.1231 +      ;;
  1.1232 +    esac
  1.1233 +done
  1.1234 +
  1.1235 +# Double-quote double-evaled strings.
  1.1236 +for var in lt_decl_all_varnames([[ \
  1.1237 +]], lt_decl_dquote_varnames); do
  1.1238 +    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  1.1239 +    *[[\\\\\\\`\\"\\\$]]*)
  1.1240 +      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  1.1241 +      ;;
  1.1242 +    *)
  1.1243 +      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  1.1244 +      ;;
  1.1245 +    esac
  1.1246 +done
  1.1247 +
  1.1248 +# Fix-up fallback echo if it was mangled by the above quoting rules.
  1.1249 +case \$lt_ECHO in
  1.1250 +*'\\\[$]0 --fallback-echo"')dnl "
  1.1251 +  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
  1.1252 +  ;;
  1.1253 +esac
  1.1254 +
  1.1255 +_LT_OUTPUT_LIBTOOL_INIT
  1.1256 +])
  1.1257 +
  1.1258 +
  1.1259 +# LT_OUTPUT
  1.1260 +# ---------
  1.1261 +# This macro allows early generation of the libtool script (before
  1.1262 +# AC_OUTPUT is called), incase it is used in configure for compilation
  1.1263 +# tests.
  1.1264 +AC_DEFUN([LT_OUTPUT],
  1.1265 +[: ${CONFIG_LT=./config.lt}
  1.1266 +AC_MSG_NOTICE([creating $CONFIG_LT])
  1.1267 +cat >"$CONFIG_LT" <<_LTEOF
  1.1268 +#! $SHELL
  1.1269 +# Generated by $as_me.
  1.1270 +# Run this file to recreate a libtool stub with the current configuration.
  1.1271 +
  1.1272 +lt_cl_silent=false
  1.1273 +SHELL=\${CONFIG_SHELL-$SHELL}
  1.1274 +_LTEOF
  1.1275 +
  1.1276 +cat >>"$CONFIG_LT" <<\_LTEOF
  1.1277 +AS_SHELL_SANITIZE
  1.1278 +_AS_PREPARE
  1.1279 +
  1.1280 +exec AS_MESSAGE_FD>&1
  1.1281 +exec AS_MESSAGE_LOG_FD>>config.log
  1.1282 +{
  1.1283 +  echo
  1.1284 +  AS_BOX([Running $as_me.])
  1.1285 +} >&AS_MESSAGE_LOG_FD
  1.1286 +
  1.1287 +lt_cl_help="\
  1.1288 +\`$as_me' creates a local libtool stub from the current configuration,
  1.1289 +for use in further configure time tests before the real libtool is
  1.1290 +generated.
  1.1291 +
  1.1292 +Usage: $[0] [[OPTIONS]]
  1.1293 +
  1.1294 +  -h, --help      print this help, then exit
  1.1295 +  -V, --version   print version number, then exit
  1.1296 +  -q, --quiet     do not print progress messages
  1.1297 +  -d, --debug     don't remove temporary files
  1.1298 +
  1.1299 +Report bugs to <bug-libtool@gnu.org>."
  1.1300 +
  1.1301 +lt_cl_version="\
  1.1302 +m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
  1.1303 +m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
  1.1304 +configured by $[0], generated by m4_PACKAGE_STRING.
  1.1305 +
  1.1306 +Copyright (C) 2008 Free Software Foundation, Inc.
  1.1307 +This config.lt script is free software; the Free Software Foundation
  1.1308 +gives unlimited permision to copy, distribute and modify it."
  1.1309 +
  1.1310 +while test $[#] != 0
  1.1311 +do
  1.1312 +  case $[1] in
  1.1313 +    --version | --v* | -V )
  1.1314 +      echo "$lt_cl_version"; exit 0 ;;
  1.1315 +    --help | --h* | -h )
  1.1316 +      echo "$lt_cl_help"; exit 0 ;;
  1.1317 +    --debug | --d* | -d )
  1.1318 +      debug=: ;;
  1.1319 +    --quiet | --q* | --silent | --s* | -q )
  1.1320 +      lt_cl_silent=: ;;
  1.1321 +
  1.1322 +    -*) AC_MSG_ERROR([unrecognized option: $[1]
  1.1323 +Try \`$[0] --help' for more information.]) ;;
  1.1324 +
  1.1325 +    *) AC_MSG_ERROR([unrecognized argument: $[1]
  1.1326 +Try \`$[0] --help' for more information.]) ;;
  1.1327 +  esac
  1.1328 +  shift
  1.1329 +done
  1.1330 +
  1.1331 +if $lt_cl_silent; then
  1.1332 +  exec AS_MESSAGE_FD>/dev/null
  1.1333 +fi
  1.1334 +_LTEOF
  1.1335 +
  1.1336 +cat >>"$CONFIG_LT" <<_LTEOF
  1.1337 +_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
  1.1338 +_LTEOF
  1.1339 +
  1.1340 +cat >>"$CONFIG_LT" <<\_LTEOF
  1.1341 +AC_MSG_NOTICE([creating $ofile])
  1.1342 +_LT_OUTPUT_LIBTOOL_COMMANDS
  1.1343 +AS_EXIT(0)
  1.1344 +_LTEOF
  1.1345 +chmod +x "$CONFIG_LT"
  1.1346 +
  1.1347 +# configure is writing to config.log, but config.lt does its own redirection,
  1.1348 +# appending to config.log, which fails on DOS, as config.log is still kept
  1.1349 +# open by configure.  Here we exec the FD to /dev/null, effectively closing
  1.1350 +# config.log, so it can be properly (re)opened and appended to by config.lt.
  1.1351 +if test "$no_create" != yes; then
  1.1352 +  lt_cl_success=:
  1.1353 +  test "$silent" = yes &&
  1.1354 +    lt_config_lt_args="$lt_config_lt_args --quiet"
  1.1355 +  exec AS_MESSAGE_LOG_FD>/dev/null
  1.1356 +  $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
  1.1357 +  exec AS_MESSAGE_LOG_FD>>config.log
  1.1358 +  $lt_cl_success || AS_EXIT(1)
  1.1359 +fi
  1.1360 +])# LT_OUTPUT
  1.1361 +
  1.1362 +
  1.1363 +# _LT_CONFIG(TAG)
  1.1364 +# ---------------
  1.1365 +# If TAG is the built-in tag, create an initial libtool script with a
  1.1366 +# default configuration from the untagged config vars.  Otherwise add code
  1.1367 +# to config.status for appending the configuration named by TAG from the
  1.1368 +# matching tagged config vars.
  1.1369 +m4_defun([_LT_CONFIG],
  1.1370 +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1.1371 +_LT_CONFIG_SAVE_COMMANDS([
  1.1372 +  m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
  1.1373 +  m4_if(_LT_TAG, [C], [
  1.1374 +    # See if we are running on zsh, and set the options which allow our
  1.1375 +    # commands through without removal of \ escapes.
  1.1376 +    if test -n "${ZSH_VERSION+set}" ; then
  1.1377 +      setopt NO_GLOB_SUBST
  1.1378 +    fi
  1.1379 +
  1.1380 +    cfgfile="${ofile}T"
  1.1381 +    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  1.1382 +    $RM "$cfgfile"
  1.1383 +
  1.1384 +    cat <<_LT_EOF >> "$cfgfile"
  1.1385 +#! $SHELL
  1.1386 +
  1.1387 +# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  1.1388 +# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  1.1389 +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  1.1390 +# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  1.1391 +#
  1.1392 +_LT_COPYING
  1.1393 +_LT_LIBTOOL_TAGS
  1.1394 +
  1.1395 +# ### BEGIN LIBTOOL CONFIG
  1.1396 +_LT_LIBTOOL_CONFIG_VARS
  1.1397 +_LT_LIBTOOL_TAG_VARS
  1.1398 +# ### END LIBTOOL CONFIG
  1.1399 +
  1.1400 +_LT_EOF
  1.1401 +
  1.1402 +  case $host_os in
  1.1403 +  aix3*)
  1.1404 +    cat <<\_LT_EOF >> "$cfgfile"
  1.1405 +# AIX sometimes has problems with the GCC collect2 program.  For some
  1.1406 +# reason, if we set the COLLECT_NAMES environment variable, the problems
  1.1407 +# vanish in a puff of smoke.
  1.1408 +if test "X${COLLECT_NAMES+set}" != Xset; then
  1.1409 +  COLLECT_NAMES=
  1.1410 +  export COLLECT_NAMES
  1.1411 +fi
  1.1412 +_LT_EOF
  1.1413 +    ;;
  1.1414 +  esac
  1.1415 +
  1.1416 +  _LT_PROG_LTMAIN
  1.1417 +
  1.1418 +  # We use sed instead of cat because bash on DJGPP gets confused if
  1.1419 +  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
  1.1420 +  # text mode, it properly converts lines to CR/LF.  This bash problem
  1.1421 +  # is reportedly fixed, but why not run on old versions too?
  1.1422 +  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  1.1423 +    || (rm -f "$cfgfile"; exit 1)
  1.1424 +
  1.1425 +  _LT_PROG_XSI_SHELLFNS
  1.1426 +
  1.1427 +  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  1.1428 +    || (rm -f "$cfgfile"; exit 1)
  1.1429 +
  1.1430 +  mv -f "$cfgfile" "$ofile" ||
  1.1431 +    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  1.1432 +  chmod +x "$ofile"
  1.1433 +],
  1.1434 +[cat <<_LT_EOF >> "$ofile"
  1.1435 +
  1.1436 +dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
  1.1437 +dnl in a comment (ie after a #).
  1.1438 +# ### BEGIN LIBTOOL TAG CONFIG: $1
  1.1439 +_LT_LIBTOOL_TAG_VARS(_LT_TAG)
  1.1440 +# ### END LIBTOOL TAG CONFIG: $1
  1.1441 +_LT_EOF
  1.1442 +])dnl /m4_if
  1.1443 +],
  1.1444 +[m4_if([$1], [], [
  1.1445 +    PACKAGE='$PACKAGE'
  1.1446 +    VERSION='$VERSION'
  1.1447 +    TIMESTAMP='$TIMESTAMP'
  1.1448 +    RM='$RM'
  1.1449 +    ofile='$ofile'], [])
  1.1450 +])dnl /_LT_CONFIG_SAVE_COMMANDS
  1.1451 +])# _LT_CONFIG
  1.1452 +
  1.1453 +
  1.1454 +# LT_SUPPORTED_TAG(TAG)
  1.1455 +# ---------------------
  1.1456 +# Trace this macro to discover what tags are supported by the libtool
  1.1457 +# --tag option, using:
  1.1458 +#    autoconf --trace 'LT_SUPPORTED_TAG:$1'
  1.1459 +AC_DEFUN([LT_SUPPORTED_TAG], [])
  1.1460 +
  1.1461 +
  1.1462 +# C support is built-in for now
  1.1463 +m4_define([_LT_LANG_C_enabled], [])
  1.1464 +m4_define([_LT_TAGS], [])
  1.1465 +
  1.1466 +
  1.1467 +# LT_LANG(LANG)
  1.1468 +# -------------
  1.1469 +# Enable libtool support for the given language if not already enabled.
  1.1470 +AC_DEFUN([LT_LANG],
  1.1471 +[AC_BEFORE([$0], [LT_OUTPUT])dnl
  1.1472 +m4_case([$1],
  1.1473 +  [C],			[_LT_LANG(C)],
  1.1474 +  [C++],		[_LT_LANG(CXX)],
  1.1475 +  [Java],		[_LT_LANG(GCJ)],
  1.1476 +  [Fortran 77],		[_LT_LANG(F77)],
  1.1477 +  [Fortran],		[_LT_LANG(FC)],
  1.1478 +  [Windows Resource],	[_LT_LANG(RC)],
  1.1479 +  [m4_ifdef([_LT_LANG_]$1[_CONFIG],
  1.1480 +    [_LT_LANG($1)],
  1.1481 +    [m4_fatal([$0: unsupported language: "$1"])])])dnl
  1.1482 +])# LT_LANG
  1.1483 +
  1.1484 +
  1.1485 +# _LT_LANG(LANGNAME)
  1.1486 +# ------------------
  1.1487 +m4_defun([_LT_LANG],
  1.1488 +[m4_ifdef([_LT_LANG_]$1[_enabled], [],
  1.1489 +  [LT_SUPPORTED_TAG([$1])dnl
  1.1490 +  m4_append([_LT_TAGS], [$1 ])dnl
  1.1491 +  m4_define([_LT_LANG_]$1[_enabled], [])dnl
  1.1492 +  _LT_LANG_$1_CONFIG($1)])dnl
  1.1493 +])# _LT_LANG
  1.1494 +
  1.1495 +
  1.1496 +# _LT_LANG_DEFAULT_CONFIG
  1.1497 +# -----------------------
  1.1498 +m4_defun([_LT_LANG_DEFAULT_CONFIG],
  1.1499 +[AC_PROVIDE_IFELSE([AC_PROG_CXX],
  1.1500 +  [LT_LANG(CXX)],
  1.1501 +  [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
  1.1502 +
  1.1503 +AC_PROVIDE_IFELSE([AC_PROG_F77],
  1.1504 +  [LT_LANG(F77)],
  1.1505 +  [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
  1.1506 +
  1.1507 +AC_PROVIDE_IFELSE([AC_PROG_FC],
  1.1508 +  [LT_LANG(FC)],
  1.1509 +  [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
  1.1510 +
  1.1511 +dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
  1.1512 +dnl pulling things in needlessly.
  1.1513 +AC_PROVIDE_IFELSE([AC_PROG_GCJ],
  1.1514 +  [LT_LANG(GCJ)],
  1.1515 +  [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
  1.1516 +    [LT_LANG(GCJ)],
  1.1517 +    [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
  1.1518 +      [LT_LANG(GCJ)],
  1.1519 +      [m4_ifdef([AC_PROG_GCJ],
  1.1520 +	[m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
  1.1521 +       m4_ifdef([A][M_PROG_GCJ],
  1.1522 +	[m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
  1.1523 +       m4_ifdef([LT_PROG_GCJ],
  1.1524 +	[m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
  1.1525 +
  1.1526 +AC_PROVIDE_IFELSE([LT_PROG_RC],
  1.1527 +  [LT_LANG(RC)],
  1.1528 +  [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
  1.1529 +])# _LT_LANG_DEFAULT_CONFIG
  1.1530 +
  1.1531 +# Obsolete macros:
  1.1532 +AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
  1.1533 +AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
  1.1534 +AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
  1.1535 +AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
  1.1536 +dnl aclocal-1.4 backwards compatibility:
  1.1537 +dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
  1.1538 +dnl AC_DEFUN([AC_LIBTOOL_F77], [])
  1.1539 +dnl AC_DEFUN([AC_LIBTOOL_FC], [])
  1.1540 +dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
  1.1541 +
  1.1542 +
  1.1543 +# _LT_TAG_COMPILER
  1.1544 +# ----------------
  1.1545 +m4_defun([_LT_TAG_COMPILER],
  1.1546 +[AC_REQUIRE([AC_PROG_CC])dnl
  1.1547 +
  1.1548 +_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
  1.1549 +_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
  1.1550 +_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
  1.1551 +_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
  1.1552 +
  1.1553 +# If no C compiler was specified, use CC.
  1.1554 +LTCC=${LTCC-"$CC"}
  1.1555 +
  1.1556 +# If no C compiler flags were specified, use CFLAGS.
  1.1557 +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  1.1558 +
  1.1559 +# Allow CC to be a program name with arguments.
  1.1560 +compiler=$CC
  1.1561 +])# _LT_TAG_COMPILER
  1.1562 +
  1.1563 +
  1.1564 +# _LT_COMPILER_BOILERPLATE
  1.1565 +# ------------------------
  1.1566 +# Check for compiler boilerplate output or warnings with
  1.1567 +# the simple compiler test code.
  1.1568 +m4_defun([_LT_COMPILER_BOILERPLATE],
  1.1569 +[m4_require([_LT_DECL_SED])dnl
  1.1570 +ac_outfile=conftest.$ac_objext
  1.1571 +echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  1.1572 +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  1.1573 +_lt_compiler_boilerplate=`cat conftest.err`
  1.1574 +$RM conftest*
  1.1575 +])# _LT_COMPILER_BOILERPLATE
  1.1576 +
  1.1577 +
  1.1578 +# _LT_LINKER_BOILERPLATE
  1.1579 +# ----------------------
  1.1580 +# Check for linker boilerplate output or warnings with
  1.1581 +# the simple link test code.
  1.1582 +m4_defun([_LT_LINKER_BOILERPLATE],
  1.1583 +[m4_require([_LT_DECL_SED])dnl
  1.1584 +ac_outfile=conftest.$ac_objext
  1.1585 +echo "$lt_simple_link_test_code" >conftest.$ac_ext
  1.1586 +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  1.1587 +_lt_linker_boilerplate=`cat conftest.err`
  1.1588 +$RM -r conftest*
  1.1589 +])# _LT_LINKER_BOILERPLATE
  1.1590 +
  1.1591 +# _LT_REQUIRED_DARWIN_CHECKS
  1.1592 +# -------------------------
  1.1593 +m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
  1.1594 +  case $host_os in
  1.1595 +    rhapsody* | darwin*)
  1.1596 +    AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
  1.1597 +    AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
  1.1598 +    AC_CHECK_TOOL([LIPO], [lipo], [:])
  1.1599 +    AC_CHECK_TOOL([OTOOL], [otool], [:])
  1.1600 +    AC_CHECK_TOOL([OTOOL64], [otool64], [:])
  1.1601 +    _LT_DECL([], [DSYMUTIL], [1],
  1.1602 +      [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
  1.1603 +    _LT_DECL([], [NMEDIT], [1],
  1.1604 +      [Tool to change global to local symbols on Mac OS X])
  1.1605 +    _LT_DECL([], [LIPO], [1],
  1.1606 +      [Tool to manipulate fat objects and archives on Mac OS X])
  1.1607 +    _LT_DECL([], [OTOOL], [1],
  1.1608 +      [ldd/readelf like tool for Mach-O binaries on Mac OS X])
  1.1609 +    _LT_DECL([], [OTOOL64], [1],
  1.1610 +      [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
  1.1611 +
  1.1612 +    AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
  1.1613 +      [lt_cv_apple_cc_single_mod=no
  1.1614 +      if test -z "${LT_MULTI_MODULE}"; then
  1.1615 +	# By default we will add the -single_module flag. You can override
  1.1616 +	# by either setting the environment variable LT_MULTI_MODULE
  1.1617 +	# non-empty at configure time, or by adding -multi_module to the
  1.1618 +	# link flags.
  1.1619 +	rm -rf libconftest.dylib*
  1.1620 +	echo "int foo(void){return 1;}" > conftest.c
  1.1621 +	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  1.1622 +-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
  1.1623 +	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  1.1624 +	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  1.1625 +        _lt_result=$?
  1.1626 +	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  1.1627 +	  lt_cv_apple_cc_single_mod=yes
  1.1628 +	else
  1.1629 +	  cat conftest.err >&AS_MESSAGE_LOG_FD
  1.1630 +	fi
  1.1631 +	rm -rf libconftest.dylib*
  1.1632 +	rm -f conftest.*
  1.1633 +      fi])
  1.1634 +    AC_CACHE_CHECK([for -exported_symbols_list linker flag],
  1.1635 +      [lt_cv_ld_exported_symbols_list],
  1.1636 +      [lt_cv_ld_exported_symbols_list=no
  1.1637 +      save_LDFLAGS=$LDFLAGS
  1.1638 +      echo "_main" > conftest.sym
  1.1639 +      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  1.1640 +      AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  1.1641 +	[lt_cv_ld_exported_symbols_list=yes],
  1.1642 +	[lt_cv_ld_exported_symbols_list=no])
  1.1643 +	LDFLAGS="$save_LDFLAGS"
  1.1644 +    ])
  1.1645 +    case $host_os in
  1.1646 +    rhapsody* | darwin1.[[012]])
  1.1647 +      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  1.1648 +    darwin1.*)
  1.1649 +      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  1.1650 +    darwin*) # darwin 5.x on
  1.1651 +      # if running on 10.5 or later, the deployment target defaults
  1.1652 +      # to the OS version, if on x86, and 10.4, the deployment
  1.1653 +      # target defaults to 10.4. Don't you love it?
  1.1654 +      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  1.1655 +	10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
  1.1656 +	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  1.1657 +	10.[[012]]*)
  1.1658 +	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  1.1659 +	10.*)
  1.1660 +	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  1.1661 +      esac
  1.1662 +    ;;
  1.1663 +  esac
  1.1664 +    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  1.1665 +      _lt_dar_single_mod='$single_module'
  1.1666 +    fi
  1.1667 +    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  1.1668 +      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  1.1669 +    else
  1.1670 +      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  1.1671 +    fi
  1.1672 +    if test "$DSYMUTIL" != ":"; then
  1.1673 +      _lt_dsymutil='~$DSYMUTIL $lib || :'
  1.1674 +    else
  1.1675 +      _lt_dsymutil=
  1.1676 +    fi
  1.1677 +    ;;
  1.1678 +  esac
  1.1679 +])
  1.1680 +
  1.1681 +
  1.1682 +# _LT_DARWIN_LINKER_FEATURES
  1.1683 +# --------------------------
  1.1684 +# Checks for linker and compiler features on darwin
  1.1685 +m4_defun([_LT_DARWIN_LINKER_FEATURES],
  1.1686 +[
  1.1687 +  m4_require([_LT_REQUIRED_DARWIN_CHECKS])
  1.1688 +  _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  1.1689 +  _LT_TAGVAR(hardcode_direct, $1)=no
  1.1690 +  _LT_TAGVAR(hardcode_automatic, $1)=yes
  1.1691 +  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  1.1692 +  _LT_TAGVAR(whole_archive_flag_spec, $1)=''
  1.1693 +  _LT_TAGVAR(link_all_deplibs, $1)=yes
  1.1694 +  _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
  1.1695 +  case $cc_basename in
  1.1696 +     ifort*) _lt_dar_can_shared=yes ;;
  1.1697 +     *) _lt_dar_can_shared=$GCC ;;
  1.1698 +  esac
  1.1699 +  if test "$_lt_dar_can_shared" = "yes"; then
  1.1700 +    output_verbose_link_cmd=echo
  1.1701 +    _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}"
  1.1702 +    _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  1.1703 +    _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}"
  1.1704 +    _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}"
  1.1705 +    m4_if([$1], [CXX],
  1.1706 +[   if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  1.1707 +      _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}"
  1.1708 +      _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}"
  1.1709 +    fi
  1.1710 +],[])
  1.1711 +  else
  1.1712 +  _LT_TAGVAR(ld_shlibs, $1)=no
  1.1713 +  fi
  1.1714 +])
  1.1715 +
  1.1716 +# _LT_SYS_MODULE_PATH_AIX
  1.1717 +# -----------------------
  1.1718 +# Links a minimal program and checks the executable
  1.1719 +# for the system default hardcoded library path. In most cases,
  1.1720 +# this is /usr/lib:/lib, but when the MPI compilers are used
  1.1721 +# the location of the communication and MPI libs are included too.
  1.1722 +# If we don't find anything, use the default library path according
  1.1723 +# to the aix ld manual.
  1.1724 +m4_defun([_LT_SYS_MODULE_PATH_AIX],
  1.1725 +[m4_require([_LT_DECL_SED])dnl
  1.1726 +AC_LINK_IFELSE(AC_LANG_PROGRAM,[
  1.1727 +lt_aix_libpath_sed='
  1.1728 +    /Import File Strings/,/^$/ {
  1.1729 +	/^0/ {
  1.1730 +	    s/^0  *\(.*\)$/\1/
  1.1731 +	    p
  1.1732 +	}
  1.1733 +    }'
  1.1734 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  1.1735 +# Check for a 64-bit object if we didn't find anything.
  1.1736 +if test -z "$aix_libpath"; then
  1.1737 +  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  1.1738 +fi],[])
  1.1739 +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  1.1740 +])# _LT_SYS_MODULE_PATH_AIX
  1.1741 +
  1.1742 +
  1.1743 +# _LT_SHELL_INIT(ARG)
  1.1744 +# -------------------
  1.1745 +m4_define([_LT_SHELL_INIT],
  1.1746 +[ifdef([AC_DIVERSION_NOTICE],
  1.1747 +	     [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
  1.1748 +	 [AC_DIVERT_PUSH(NOTICE)])
  1.1749 +$1
  1.1750 +AC_DIVERT_POP
  1.1751 +])# _LT_SHELL_INIT
  1.1752 +
  1.1753 +
  1.1754 +# _LT_PROG_ECHO_BACKSLASH
  1.1755 +# -----------------------
  1.1756 +# Add some code to the start of the generated configure script which
  1.1757 +# will find an echo command which doesn't interpret backslashes.
  1.1758 +m4_defun([_LT_PROG_ECHO_BACKSLASH],
  1.1759 +[_LT_SHELL_INIT([
  1.1760 +# Check that we are running under the correct shell.
  1.1761 +SHELL=${CONFIG_SHELL-/bin/sh}
  1.1762 +
  1.1763 +case X$lt_ECHO in
  1.1764 +X*--fallback-echo)
  1.1765 +  # Remove one level of quotation (which was required for Make).
  1.1766 +  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
  1.1767 +  ;;
  1.1768 +esac
  1.1769 +
  1.1770 +ECHO=${lt_ECHO-echo}
  1.1771 +if test "X[$]1" = X--no-reexec; then
  1.1772 +  # Discard the --no-reexec flag, and continue.
  1.1773 +  shift
  1.1774 +elif test "X[$]1" = X--fallback-echo; then
  1.1775 +  # Avoid inline document here, it may be left over
  1.1776 +  :
  1.1777 +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  1.1778 +  # Yippee, $ECHO works!
  1.1779 +  :
  1.1780 +else
  1.1781 +  # Restart under the correct shell.
  1.1782 +  exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
  1.1783 +fi
  1.1784 +
  1.1785 +if test "X[$]1" = X--fallback-echo; then
  1.1786 +  # used as fallback echo
  1.1787 +  shift
  1.1788 +  cat <<_LT_EOF
  1.1789 +[$]*
  1.1790 +_LT_EOF
  1.1791 +  exit 0
  1.1792 +fi
  1.1793 +
  1.1794 +# The HP-UX ksh and POSIX shell print the target directory to stdout
  1.1795 +# if CDPATH is set.
  1.1796 +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  1.1797 +
  1.1798 +if test -z "$lt_ECHO"; then
  1.1799 +  if test "X${echo_test_string+set}" != Xset; then
  1.1800 +    # find a string as large as possible, as long as the shell can cope with it
  1.1801 +    for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
  1.1802 +      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  1.1803 +      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  1.1804 +	 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  1.1805 +      then
  1.1806 +        break
  1.1807 +      fi
  1.1808 +    done
  1.1809 +  fi
  1.1810 +
  1.1811 +  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  1.1812 +     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  1.1813 +     test "X$echo_testing_string" = "X$echo_test_string"; then
  1.1814 +    :
  1.1815 +  else
  1.1816 +    # The Solaris, AIX, and Digital Unix default echo programs unquote
  1.1817 +    # backslashes.  This makes it impossible to quote backslashes using
  1.1818 +    #   echo "$something" | sed 's/\\/\\\\/g'
  1.1819 +    #
  1.1820 +    # So, first we look for a working echo in the user's PATH.
  1.1821 +
  1.1822 +    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  1.1823 +    for dir in $PATH /usr/ucb; do
  1.1824 +      IFS="$lt_save_ifs"
  1.1825 +      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  1.1826 +         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  1.1827 +         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  1.1828 +         test "X$echo_testing_string" = "X$echo_test_string"; then
  1.1829 +        ECHO="$dir/echo"
  1.1830 +        break
  1.1831 +      fi
  1.1832 +    done
  1.1833 +    IFS="$lt_save_ifs"
  1.1834 +
  1.1835 +    if test "X$ECHO" = Xecho; then
  1.1836 +      # We didn't find a better echo, so look for alternatives.
  1.1837 +      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  1.1838 +         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  1.1839 +         test "X$echo_testing_string" = "X$echo_test_string"; then
  1.1840 +        # This shell has a builtin print -r that does the trick.
  1.1841 +        ECHO='print -r'
  1.1842 +      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  1.1843 +	   test "X$CONFIG_SHELL" != X/bin/ksh; then
  1.1844 +        # If we have ksh, try running configure again with it.
  1.1845 +        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  1.1846 +        export ORIGINAL_CONFIG_SHELL
  1.1847 +        CONFIG_SHELL=/bin/ksh
  1.1848 +        export CONFIG_SHELL
  1.1849 +        exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
  1.1850 +      else
  1.1851 +        # Try using printf.
  1.1852 +        ECHO='printf %s\n'
  1.1853 +        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  1.1854 +	   echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  1.1855 +	   test "X$echo_testing_string" = "X$echo_test_string"; then
  1.1856 +	  # Cool, printf works
  1.1857 +	  :
  1.1858 +        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  1.1859 +	     test "X$echo_testing_string" = 'X\t' &&
  1.1860 +	     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  1.1861 +	     test "X$echo_testing_string" = "X$echo_test_string"; then
  1.1862 +	  CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  1.1863 +	  export CONFIG_SHELL
  1.1864 +	  SHELL="$CONFIG_SHELL"
  1.1865 +	  export SHELL
  1.1866 +	  ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
  1.1867 +        elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  1.1868 +	     test "X$echo_testing_string" = 'X\t' &&
  1.1869 +	     echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  1.1870 +	     test "X$echo_testing_string" = "X$echo_test_string"; then
  1.1871 +	  ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
  1.1872 +        else
  1.1873 +	  # maybe with a smaller string...
  1.1874 +	  prev=:
  1.1875 +
  1.1876 +	  for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
  1.1877 +	    if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  1.1878 +	    then
  1.1879 +	      break
  1.1880 +	    fi
  1.1881 +	    prev="$cmd"
  1.1882 +	  done
  1.1883 +
  1.1884 +	  if test "$prev" != 'sed 50q "[$]0"'; then
  1.1885 +	    echo_test_string=`eval $prev`
  1.1886 +	    export echo_test_string
  1.1887 +	    exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
  1.1888 +	  else
  1.1889 +	    # Oops.  We lost completely, so just stick with echo.
  1.1890 +	    ECHO=echo
  1.1891 +	  fi
  1.1892 +        fi
  1.1893 +      fi
  1.1894 +    fi
  1.1895 +  fi
  1.1896 +fi
  1.1897 +
  1.1898 +# Copy echo and quote the copy suitably for passing to libtool from
  1.1899 +# the Makefile, instead of quoting the original, which is used later.
  1.1900 +lt_ECHO=$ECHO
  1.1901 +if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
  1.1902 +   lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
  1.1903 +fi
  1.1904 +
  1.1905 +AC_SUBST(lt_ECHO)
  1.1906 +])
  1.1907 +_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
  1.1908 +_LT_DECL([], [ECHO], [1],
  1.1909 +    [An echo program that does not interpret backslashes])
  1.1910 +])# _LT_PROG_ECHO_BACKSLASH
  1.1911 +
  1.1912 +
  1.1913 +# _LT_ENABLE_LOCK
  1.1914 +# ---------------
  1.1915 +m4_defun([_LT_ENABLE_LOCK],
  1.1916 +[AC_ARG_ENABLE([libtool-lock],
  1.1917 +  [AS_HELP_STRING([--disable-libtool-lock],
  1.1918 +    [avoid locking (might break parallel builds)])])
  1.1919 +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  1.1920 +
  1.1921 +# Some flags need to be propagated to the compiler or linker for good
  1.1922 +# libtool support.
  1.1923 +case $host in
  1.1924 +ia64-*-hpux*)
  1.1925 +  # Find out which ABI we are using.
  1.1926 +  echo 'int i;' > conftest.$ac_ext
  1.1927 +  if AC_TRY_EVAL(ac_compile); then
  1.1928 +    case `/usr/bin/file conftest.$ac_objext` in
  1.1929 +      *ELF-32*)
  1.1930 +	HPUX_IA64_MODE="32"
  1.1931 +	;;
  1.1932 +      *ELF-64*)
  1.1933 +	HPUX_IA64_MODE="64"
  1.1934 +	;;
  1.1935 +    esac
  1.1936 +  fi
  1.1937 +  rm -rf conftest*
  1.1938 +  ;;
  1.1939 +*-*-irix6*)
  1.1940 +  # Find out which ABI we are using.
  1.1941 +  echo '[#]line __oline__ "configure"' > conftest.$ac_ext
  1.1942 +  if AC_TRY_EVAL(ac_compile); then
  1.1943 +    if test "$lt_cv_prog_gnu_ld" = yes; then
  1.1944 +      case `/usr/bin/file conftest.$ac_objext` in
  1.1945 +	*32-bit*)
  1.1946 +	  LD="${LD-ld} -melf32bsmip"
  1.1947 +	  ;;
  1.1948 +	*N32*)
  1.1949 +	  LD="${LD-ld} -melf32bmipn32"
  1.1950 +	  ;;
  1.1951 +	*64-bit*)
  1.1952 +	  LD="${LD-ld} -melf64bmip"
  1.1953 +	;;
  1.1954 +      esac
  1.1955 +    else
  1.1956 +      case `/usr/bin/file conftest.$ac_objext` in
  1.1957 +	*32-bit*)
  1.1958 +	  LD="${LD-ld} -32"
  1.1959 +	  ;;
  1.1960 +	*N32*)
  1.1961 +	  LD="${LD-ld} -n32"
  1.1962 +	  ;;
  1.1963 +	*64-bit*)
  1.1964 +	  LD="${LD-ld} -64"
  1.1965 +	  ;;
  1.1966 +      esac
  1.1967 +    fi
  1.1968 +  fi
  1.1969 +  rm -rf conftest*
  1.1970 +  ;;
  1.1971 +
  1.1972 +x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  1.1973 +s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  1.1974 +  # Find out which ABI we are using.
  1.1975 +  echo 'int i;' > conftest.$ac_ext
  1.1976 +  if AC_TRY_EVAL(ac_compile); then
  1.1977 +    case `/usr/bin/file conftest.o` in
  1.1978 +      *32-bit*)
  1.1979 +	case $host in
  1.1980 +	  x86_64-*kfreebsd*-gnu)
  1.1981 +	    LD="${LD-ld} -m elf_i386_fbsd"
  1.1982 +	    ;;
  1.1983 +	  x86_64-*linux*)
  1.1984 +	    LD="${LD-ld} -m elf_i386"
  1.1985 +	    ;;
  1.1986 +	  ppc64-*linux*|powerpc64-*linux*)
  1.1987 +	    LD="${LD-ld} -m elf32ppclinux"
  1.1988 +	    ;;
  1.1989 +	  s390x-*linux*)
  1.1990 +	    LD="${LD-ld} -m elf_s390"
  1.1991 +	    ;;
  1.1992 +	  sparc64-*linux*)
  1.1993 +	    LD="${LD-ld} -m elf32_sparc"
  1.1994 +	    ;;
  1.1995 +	esac
  1.1996 +	;;
  1.1997 +      *64-bit*)
  1.1998 +	case $host in
  1.1999 +	  x86_64-*kfreebsd*-gnu)
  1.2000 +	    LD="${LD-ld} -m elf_x86_64_fbsd"
  1.2001 +	    ;;
  1.2002 +	  x86_64-*linux*)
  1.2003 +	    LD="${LD-ld} -m elf_x86_64"
  1.2004 +	    ;;
  1.2005 +	  ppc*-*linux*|powerpc*-*linux*)
  1.2006 +	    LD="${LD-ld} -m elf64ppc"
  1.2007 +	    ;;
  1.2008 +	  s390*-*linux*|s390*-*tpf*)
  1.2009 +	    LD="${LD-ld} -m elf64_s390"
  1.2010 +	    ;;
  1.2011 +	  sparc*-*linux*)
  1.2012 +	    LD="${LD-ld} -m elf64_sparc"
  1.2013 +	    ;;
  1.2014 +	esac
  1.2015 +	;;
  1.2016 +    esac
  1.2017 +  fi
  1.2018 +  rm -rf conftest*
  1.2019 +  ;;
  1.2020 +
  1.2021 +*-*-sco3.2v5*)
  1.2022 +  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  1.2023 +  SAVE_CFLAGS="$CFLAGS"
  1.2024 +  CFLAGS="$CFLAGS -belf"
  1.2025 +  AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
  1.2026 +    [AC_LANG_PUSH(C)
  1.2027 +     AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
  1.2028 +     AC_LANG_POP])
  1.2029 +  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  1.2030 +    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  1.2031 +    CFLAGS="$SAVE_CFLAGS"
  1.2032 +  fi
  1.2033 +  ;;
  1.2034 +sparc*-*solaris*)
  1.2035 +  # Find out which ABI we are using.
  1.2036 +  echo 'int i;' > conftest.$ac_ext
  1.2037 +  if AC_TRY_EVAL(ac_compile); then
  1.2038 +    case `/usr/bin/file conftest.o` in
  1.2039 +    *64-bit*)
  1.2040 +      case $lt_cv_prog_gnu_ld in
  1.2041 +      yes*) LD="${LD-ld} -m elf64_sparc" ;;
  1.2042 +      *)
  1.2043 +	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  1.2044 +	  LD="${LD-ld} -64"
  1.2045 +	fi
  1.2046 +	;;
  1.2047 +      esac
  1.2048 +      ;;
  1.2049 +    esac
  1.2050 +  fi
  1.2051 +  rm -rf conftest*
  1.2052 +  ;;
  1.2053 +esac
  1.2054 +
  1.2055 +need_locks="$enable_libtool_lock"
  1.2056 +])# _LT_ENABLE_LOCK
  1.2057 +
  1.2058 +
  1.2059 +# _LT_CMD_OLD_ARCHIVE
  1.2060 +# -------------------
  1.2061 +m4_defun([_LT_CMD_OLD_ARCHIVE],
  1.2062 +[AC_CHECK_TOOL(AR, ar, false)
  1.2063 +test -z "$AR" && AR=ar
  1.2064 +test -z "$AR_FLAGS" && AR_FLAGS=cru
  1.2065 +_LT_DECL([], [AR], [1], [The archiver])
  1.2066 +_LT_DECL([], [AR_FLAGS], [1])
  1.2067 +
  1.2068 +AC_CHECK_TOOL(STRIP, strip, :)
  1.2069 +test -z "$STRIP" && STRIP=:
  1.2070 +_LT_DECL([], [STRIP], [1], [A symbol stripping program])
  1.2071 +
  1.2072 +AC_CHECK_TOOL(RANLIB, ranlib, :)
  1.2073 +test -z "$RANLIB" && RANLIB=:
  1.2074 +_LT_DECL([], [RANLIB], [1],
  1.2075 +    [Commands used to install an old-style archive])
  1.2076 +
  1.2077 +# Determine commands to create old-style static archives.
  1.2078 +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  1.2079 +old_postinstall_cmds='chmod 644 $oldlib'
  1.2080 +old_postuninstall_cmds=
  1.2081 +
  1.2082 +if test -n "$RANLIB"; then
  1.2083 +  case $host_os in
  1.2084 +  openbsd*)
  1.2085 +    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  1.2086 +    ;;
  1.2087 +  *)
  1.2088 +    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  1.2089 +    ;;
  1.2090 +  esac
  1.2091 +  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  1.2092 +fi
  1.2093 +_LT_DECL([], [old_postinstall_cmds], [2])
  1.2094 +_LT_DECL([], [old_postuninstall_cmds], [2])
  1.2095 +_LT_TAGDECL([], [old_archive_cmds], [2],
  1.2096 +    [Commands used to build an old-style archive])
  1.2097 +])# _LT_CMD_OLD_ARCHIVE
  1.2098 +
  1.2099 +
  1.2100 +# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  1.2101 +#		[OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
  1.2102 +# ----------------------------------------------------------------
  1.2103 +# Check whether the given compiler option works
  1.2104 +AC_DEFUN([_LT_COMPILER_OPTION],
  1.2105 +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1.2106 +m4_require([_LT_DECL_SED])dnl
  1.2107 +AC_CACHE_CHECK([$1], [$2],
  1.2108 +  [$2=no
  1.2109 +   m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
  1.2110 +   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  1.2111 +   lt_compiler_flag="$3"
  1.2112 +   # Insert the option either (1) after the last *FLAGS variable, or
  1.2113 +   # (2) before a word containing "conftest.", or (3) at the end.
  1.2114 +   # Note that $ac_compile itself does not contain backslashes and begins
  1.2115 +   # with a dollar sign (not a hyphen), so the echo should work correctly.
  1.2116 +   # The option is referenced via a variable to avoid confusing sed.
  1.2117 +   lt_compile=`echo "$ac_compile" | $SED \
  1.2118 +   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  1.2119 +   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  1.2120 +   -e 's:$: $lt_compiler_flag:'`
  1.2121 +   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  1.2122 +   (eval "$lt_compile" 2>conftest.err)
  1.2123 +   ac_status=$?
  1.2124 +   cat conftest.err >&AS_MESSAGE_LOG_FD
  1.2125 +   echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  1.2126 +   if (exit $ac_status) && test -s "$ac_outfile"; then
  1.2127 +     # The compiler can only warn and ignore the option if not recognized
  1.2128 +     # So say no if there are warnings other than the usual output.
  1.2129 +     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  1.2130 +     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  1.2131 +     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  1.2132 +       $2=yes
  1.2133 +     fi
  1.2134 +   fi
  1.2135 +   $RM conftest*
  1.2136 +])
  1.2137 +
  1.2138 +if test x"[$]$2" = xyes; then
  1.2139 +    m4_if([$5], , :, [$5])
  1.2140 +else
  1.2141 +    m4_if([$6], , :, [$6])
  1.2142 +fi
  1.2143 +])# _LT_COMPILER_OPTION
  1.2144 +
  1.2145 +# Old name:
  1.2146 +AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
  1.2147 +dnl aclocal-1.4 backwards compatibility:
  1.2148 +dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
  1.2149 +
  1.2150 +
  1.2151 +# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  1.2152 +#                  [ACTION-SUCCESS], [ACTION-FAILURE])
  1.2153 +# ----------------------------------------------------
  1.2154 +# Check whether the given linker option works
  1.2155 +AC_DEFUN([_LT_LINKER_OPTION],
  1.2156 +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1.2157 +m4_require([_LT_DECL_SED])dnl
  1.2158 +AC_CACHE_CHECK([$1], [$2],
  1.2159 +  [$2=no
  1.2160 +   save_LDFLAGS="$LDFLAGS"
  1.2161 +   LDFLAGS="$LDFLAGS $3"
  1.2162 +   echo "$lt_simple_link_test_code" > conftest.$ac_ext
  1.2163 +   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  1.2164 +     # The linker can only warn and ignore the option if not recognized
  1.2165 +     # So say no if there are warnings
  1.2166 +     if test -s conftest.err; then
  1.2167 +       # Append any errors to the config.log.
  1.2168 +       cat conftest.err 1>&AS_MESSAGE_LOG_FD
  1.2169 +       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  1.2170 +       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  1.2171 +       if diff conftest.exp conftest.er2 >/dev/null; then
  1.2172 +         $2=yes
  1.2173 +       fi
  1.2174 +     else
  1.2175 +       $2=yes
  1.2176 +     fi
  1.2177 +   fi
  1.2178 +   $RM -r conftest*
  1.2179 +   LDFLAGS="$save_LDFLAGS"
  1.2180 +])
  1.2181 +
  1.2182 +if test x"[$]$2" = xyes; then
  1.2183 +    m4_if([$4], , :, [$4])
  1.2184 +else
  1.2185 +    m4_if([$5], , :, [$5])
  1.2186 +fi
  1.2187 +])# _LT_LINKER_OPTION
  1.2188 +
  1.2189 +# Old name:
  1.2190 +AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
  1.2191 +dnl aclocal-1.4 backwards compatibility:
  1.2192 +dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
  1.2193 +
  1.2194 +
  1.2195 +# LT_CMD_MAX_LEN
  1.2196 +#---------------
  1.2197 +AC_DEFUN([LT_CMD_MAX_LEN],
  1.2198 +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  1.2199 +# find the maximum length of command line arguments
  1.2200 +AC_MSG_CHECKING([the maximum length of command line arguments])
  1.2201 +AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
  1.2202 +  i=0
  1.2203 +  teststring="ABCD"
  1.2204 +
  1.2205 +  case $build_os in
  1.2206 +  msdosdjgpp*)
  1.2207 +    # On DJGPP, this test can blow up pretty badly due to problems in libc
  1.2208 +    # (any single argument exceeding 2000 bytes causes a buffer overrun
  1.2209 +    # during glob expansion).  Even if it were fixed, the result of this
  1.2210 +    # check would be larger than it should be.
  1.2211 +    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
  1.2212 +    ;;
  1.2213 +
  1.2214 +  gnu*)
  1.2215 +    # Under GNU Hurd, this test is not required because there is
  1.2216 +    # no limit to the length of command line arguments.
  1.2217 +    # Libtool will interpret -1 as no limit whatsoever
  1.2218 +    lt_cv_sys_max_cmd_len=-1;
  1.2219 +    ;;
  1.2220 +
  1.2221 +  cygwin* | mingw* | cegcc*)
  1.2222 +    # On Win9x/ME, this test blows up -- it succeeds, but takes
  1.2223 +    # about 5 minutes as the teststring grows exponentially.
  1.2224 +    # Worse, since 9x/ME are not pre-emptively multitasking,
  1.2225 +    # you end up with a "frozen" computer, even though with patience
  1.2226 +    # the test eventually succeeds (with a max line length of 256k).
  1.2227 +    # Instead, let's just punt: use the minimum linelength reported by
  1.2228 +    # all of the supported platforms: 8192 (on NT/2K/XP).
  1.2229 +    lt_cv_sys_max_cmd_len=8192;
  1.2230 +    ;;
  1.2231 +
  1.2232 +  beos*)
  1.2233 +    # On BeOS, this test takes a really really long time.
  1.2234 +    # So we just punt and use a minimum line length of 8192.
  1.2235 +    lt_cv_sys_max_cmd_len=8192;
  1.2236 +    ;;
  1.2237 +
  1.2238 +  amigaos*)
  1.2239 +    # On AmigaOS with pdksh, this test takes hours, literally.
  1.2240 +    # So we just punt and use a minimum line length of 8192.
  1.2241 +    lt_cv_sys_max_cmd_len=8192;
  1.2242 +    ;;
  1.2243 +
  1.2244 +  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  1.2245 +    # This has been around since 386BSD, at least.  Likely further.
  1.2246 +    if test -x /sbin/sysctl; then
  1.2247 +      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  1.2248 +    elif test -x /usr/sbin/sysctl; then
  1.2249 +      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  1.2250 +    else
  1.2251 +      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
  1.2252 +    fi
  1.2253 +    # And add a safety zone
  1.2254 +    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  1.2255 +    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  1.2256 +    ;;
  1.2257 +
  1.2258 +  interix*)
  1.2259 +    # We know the value 262144 and hardcode it with a safety zone (like BSD)
  1.2260 +    lt_cv_sys_max_cmd_len=196608
  1.2261 +    ;;
  1.2262 +
  1.2263 +  osf*)
  1.2264 +    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  1.2265 +    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  1.2266 +    # nice to cause kernel panics so lets avoid the loop below.
  1.2267 +    # First set a reasonable default.
  1.2268 +    lt_cv_sys_max_cmd_len=16384
  1.2269 +    #
  1.2270 +    if test -x /sbin/sysconfig; then
  1.2271 +      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  1.2272 +        *1*) lt_cv_sys_max_cmd_len=-1 ;;
  1.2273 +      esac
  1.2274 +    fi
  1.2275 +    ;;
  1.2276 +  sco3.2v5*)
  1.2277 +    lt_cv_sys_max_cmd_len=102400
  1.2278 +    ;;
  1.2279 +  sysv5* | sco5v6* | sysv4.2uw2*)
  1.2280 +    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  1.2281 +    if test -n "$kargmax"; then
  1.2282 +      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[	 ]]//'`
  1.2283 +    else
  1.2284 +      lt_cv_sys_max_cmd_len=32768
  1.2285 +    fi
  1.2286 +    ;;
  1.2287 +  *)
  1.2288 +    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  1.2289 +    if test -n "$lt_cv_sys_max_cmd_len"; then
  1.2290 +      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  1.2291 +      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  1.2292 +    else
  1.2293 +      # Make teststring a little bigger before we do anything with it.
  1.2294 +      # a 1K string should be a reasonable start.
  1.2295 +      for i in 1 2 3 4 5 6 7 8 ; do
  1.2296 +        teststring=$teststring$teststring
  1.2297 +      done
  1.2298 +      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  1.2299 +      # If test is not a shell built-in, we'll probably end up computing a
  1.2300 +      # maximum length that is only half of the actual maximum length, but
  1.2301 +      # we can't tell.
  1.2302 +      while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  1.2303 +	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  1.2304 +	      test $i != 17 # 1/2 MB should be enough
  1.2305 +      do
  1.2306 +        i=`expr $i + 1`
  1.2307 +        teststring=$teststring$teststring
  1.2308 +      done
  1.2309 +      # Only check the string length outside the loop.
  1.2310 +      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  1.2311 +      teststring=
  1.2312 +      # Add a significant safety factor because C++ compilers can tack on
  1.2313 +      # massive amounts of additional arguments before passing them to the
  1.2314 +      # linker.  It appears as though 1/2 is a usable value.
  1.2315 +      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  1.2316 +    fi
  1.2317 +    ;;
  1.2318 +  esac
  1.2319 +])
  1.2320 +if test -n $lt_cv_sys_max_cmd_len ; then
  1.2321 +  AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
  1.2322 +else
  1.2323 +  AC_MSG_RESULT(none)
  1.2324 +fi
  1.2325 +max_cmd_len=$lt_cv_sys_max_cmd_len
  1.2326 +_LT_DECL([], [max_cmd_len], [0],
  1.2327 +    [What is the maximum length of a command?])
  1.2328 +])# LT_CMD_MAX_LEN
  1.2329 +
  1.2330 +# Old name:
  1.2331 +AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
  1.2332 +dnl aclocal-1.4 backwards compatibility:
  1.2333 +dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
  1.2334 +
  1.2335 +
  1.2336 +# _LT_HEADER_DLFCN
  1.2337 +# ----------------
  1.2338 +m4_defun([_LT_HEADER_DLFCN],
  1.2339 +[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
  1.2340 +])# _LT_HEADER_DLFCN
  1.2341 +
  1.2342 +
  1.2343 +# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  1.2344 +#                      ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  1.2345 +# ----------------------------------------------------------------
  1.2346 +m4_defun([_LT_TRY_DLOPEN_SELF],
  1.2347 +[m4_require([_LT_HEADER_DLFCN])dnl
  1.2348 +if test "$cross_compiling" = yes; then :
  1.2349 +  [$4]
  1.2350 +else
  1.2351 +  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  1.2352 +  lt_status=$lt_dlunknown
  1.2353 +  cat > conftest.$ac_ext <<_LT_EOF
  1.2354 +[#line __oline__ "configure"
  1.2355 +#include "confdefs.h"
  1.2356 +
  1.2357 +#if HAVE_DLFCN_H
  1.2358 +#include <dlfcn.h>
  1.2359 +#endif
  1.2360 +
  1.2361 +#include <stdio.h>
  1.2362 +
  1.2363 +#ifdef RTLD_GLOBAL
  1.2364 +#  define LT_DLGLOBAL		RTLD_GLOBAL
  1.2365 +#else
  1.2366 +#  ifdef DL_GLOBAL
  1.2367 +#    define LT_DLGLOBAL		DL_GLOBAL
  1.2368 +#  else
  1.2369 +#    define LT_DLGLOBAL		0
  1.2370 +#  endif
  1.2371 +#endif
  1.2372 +
  1.2373 +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  1.2374 +   find out it does not work in some platform. */
  1.2375 +#ifndef LT_DLLAZY_OR_NOW
  1.2376 +#  ifdef RTLD_LAZY
  1.2377 +#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
  1.2378 +#  else
  1.2379 +#    ifdef DL_LAZY
  1.2380 +#      define LT_DLLAZY_OR_NOW		DL_LAZY
  1.2381 +#    else
  1.2382 +#      ifdef RTLD_NOW
  1.2383 +#        define LT_DLLAZY_OR_NOW	RTLD_NOW
  1.2384 +#      else
  1.2385 +#        ifdef DL_NOW
  1.2386 +#          define LT_DLLAZY_OR_NOW	DL_NOW
  1.2387 +#        else
  1.2388 +#          define LT_DLLAZY_OR_NOW	0
  1.2389 +#        endif
  1.2390 +#      endif
  1.2391 +#    endif
  1.2392 +#  endif
  1.2393 +#endif
  1.2394 +
  1.2395 +void fnord() { int i=42;}
  1.2396 +int main ()
  1.2397 +{
  1.2398 +  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  1.2399 +  int status = $lt_dlunknown;
  1.2400 +
  1.2401 +  if (self)
  1.2402 +    {
  1.2403 +      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
  1.2404 +      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  1.2405 +      /* dlclose (self); */
  1.2406 +    }
  1.2407 +  else
  1.2408 +    puts (dlerror ());
  1.2409 +
  1.2410 +  return status;
  1.2411 +}]
  1.2412 +_LT_EOF
  1.2413 +  if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
  1.2414 +    (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
  1.2415 +    lt_status=$?
  1.2416 +    case x$lt_status in
  1.2417 +      x$lt_dlno_uscore) $1 ;;
  1.2418 +      x$lt_dlneed_uscore) $2 ;;
  1.2419 +      x$lt_dlunknown|x*) $3 ;;
  1.2420 +    esac
  1.2421 +  else :
  1.2422 +    # compilation failed
  1.2423 +    $3
  1.2424 +  fi
  1.2425 +fi
  1.2426 +rm -fr conftest*
  1.2427 +])# _LT_TRY_DLOPEN_SELF
  1.2428 +
  1.2429 +
  1.2430 +# LT_SYS_DLOPEN_SELF
  1.2431 +# ------------------
  1.2432 +AC_DEFUN([LT_SYS_DLOPEN_SELF],
  1.2433 +[m4_require([_LT_HEADER_DLFCN])dnl
  1.2434 +if test "x$enable_dlopen" != xyes; then
  1.2435 +  enable_dlopen=unknown
  1.2436 +  enable_dlopen_self=unknown
  1.2437 +  enable_dlopen_self_static=unknown
  1.2438 +else
  1.2439 +  lt_cv_dlopen=no
  1.2440 +  lt_cv_dlopen_libs=
  1.2441 +
  1.2442 +  case $host_os in
  1.2443 +  beos*)
  1.2444 +    lt_cv_dlopen="load_add_on"
  1.2445 +    lt_cv_dlopen_libs=
  1.2446 +    lt_cv_dlopen_self=yes
  1.2447 +    ;;
  1.2448 +
  1.2449 +  mingw* | pw32* | cegcc*)
  1.2450 +    lt_cv_dlopen="LoadLibrary"
  1.2451 +    lt_cv_dlopen_libs=
  1.2452 +    ;;
  1.2453 +
  1.2454 +  cygwin*)
  1.2455 +    lt_cv_dlopen="dlopen"
  1.2456 +    lt_cv_dlopen_libs=
  1.2457 +    ;;
  1.2458 +
  1.2459 +  darwin*)
  1.2460 +  # if libdl is installed we need to link against it
  1.2461 +    AC_CHECK_LIB([dl], [dlopen],
  1.2462 +		[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
  1.2463 +    lt_cv_dlopen="dyld"
  1.2464 +    lt_cv_dlopen_libs=
  1.2465 +    lt_cv_dlopen_self=yes
  1.2466 +    ])
  1.2467 +    ;;
  1.2468 +
  1.2469 +  *)
  1.2470 +    AC_CHECK_FUNC([shl_load],
  1.2471 +	  [lt_cv_dlopen="shl_load"],
  1.2472 +      [AC_CHECK_LIB([dld], [shl_load],
  1.2473 +	    [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
  1.2474 +	[AC_CHECK_FUNC([dlopen],
  1.2475 +	      [lt_cv_dlopen="dlopen"],
  1.2476 +	  [AC_CHECK_LIB([dl], [dlopen],
  1.2477 +		[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
  1.2478 +	    [AC_CHECK_LIB([svld], [dlopen],
  1.2479 +		  [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
  1.2480 +	      [AC_CHECK_LIB([dld], [dld_link],
  1.2481 +		    [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
  1.2482 +	      ])
  1.2483 +	    ])
  1.2484 +	  ])
  1.2485 +	])
  1.2486 +      ])
  1.2487 +    ;;
  1.2488 +  esac
  1.2489 +
  1.2490 +  if test "x$lt_cv_dlopen" != xno; then
  1.2491 +    enable_dlopen=yes
  1.2492 +  else
  1.2493 +    enable_dlopen=no
  1.2494 +  fi
  1.2495 +
  1.2496 +  case $lt_cv_dlopen in
  1.2497 +  dlopen)
  1.2498 +    save_CPPFLAGS="$CPPFLAGS"
  1.2499 +    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  1.2500 +
  1.2501 +    save_LDFLAGS="$LDFLAGS"
  1.2502 +    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  1.2503 +
  1.2504 +    save_LIBS="$LIBS"
  1.2505 +    LIBS="$lt_cv_dlopen_libs $LIBS"
  1.2506 +
  1.2507 +    AC_CACHE_CHECK([whether a program can dlopen itself],
  1.2508 +	  lt_cv_dlopen_self, [dnl
  1.2509 +	  _LT_TRY_DLOPEN_SELF(
  1.2510 +	    lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
  1.2511 +	    lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
  1.2512 +    ])
  1.2513 +
  1.2514 +    if test "x$lt_cv_dlopen_self" = xyes; then
  1.2515 +      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  1.2516 +      AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
  1.2517 +	  lt_cv_dlopen_self_static, [dnl
  1.2518 +	  _LT_TRY_DLOPEN_SELF(
  1.2519 +	    lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
  1.2520 +	    lt_cv_dlopen_self_static=no,  lt_cv_dlopen_self_static=cross)
  1.2521 +      ])
  1.2522 +    fi
  1.2523 +
  1.2524 +    CPPFLAGS="$save_CPPFLAGS"
  1.2525 +    LDFLAGS="$save_LDFLAGS"
  1.2526 +    LIBS="$save_LIBS"
  1.2527 +    ;;
  1.2528 +  esac
  1.2529 +
  1.2530 +  case $lt_cv_dlopen_self in
  1.2531 +  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  1.2532 +  *) enable_dlopen_self=unknown ;;
  1.2533 +  esac
  1.2534 +
  1.2535 +  case $lt_cv_dlopen_self_static in
  1.2536 +  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  1.2537 +  *) enable_dlopen_self_static=unknown ;;
  1.2538 +  esac
  1.2539 +fi
  1.2540 +_LT_DECL([dlopen_support], [enable_dlopen], [0],
  1.2541 +	 [Whether dlopen is supported])
  1.2542 +_LT_DECL([dlopen_self], [enable_dlopen_self], [0],
  1.2543 +	 [Whether dlopen of programs is supported])
  1.2544 +_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
  1.2545 +	 [Whether dlopen of statically linked programs is supported])
  1.2546 +])# LT_SYS_DLOPEN_SELF
  1.2547 +
  1.2548 +# Old name:
  1.2549 +AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
  1.2550 +dnl aclocal-1.4 backwards compatibility:
  1.2551 +dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
  1.2552 +
  1.2553 +
  1.2554 +# _LT_COMPILER_C_O([TAGNAME])
  1.2555 +# ---------------------------
  1.2556 +# Check to see if options -c and -o are simultaneously supported by compiler.
  1.2557 +# This macro does not hard code the compiler like AC_PROG_CC_C_O.
  1.2558 +m4_defun([_LT_COMPILER_C_O],
  1.2559 +[m4_require([_LT_DECL_SED])dnl
  1.2560 +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1.2561 +m4_require([_LT_TAG_COMPILER])dnl
  1.2562 +AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
  1.2563 +  [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
  1.2564 +  [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
  1.2565 +   $RM -r conftest 2>/dev/null
  1.2566 +   mkdir conftest
  1.2567 +   cd conftest
  1.2568 +   mkdir out
  1.2569 +   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  1.2570 +
  1.2571 +   lt_compiler_flag="-o out/conftest2.$ac_objext"
  1.2572 +   # Insert the option either (1) after the last *FLAGS variable, or
  1.2573 +   # (2) before a word containing "conftest.", or (3) at the end.
  1.2574 +   # Note that $ac_compile itself does not contain backslashes and begins
  1.2575 +   # with a dollar sign (not a hyphen), so the echo should work correctly.
  1.2576 +   lt_compile=`echo "$ac_compile" | $SED \
  1.2577 +   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  1.2578 +   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  1.2579 +   -e 's:$: $lt_compiler_flag:'`
  1.2580 +   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  1.2581 +   (eval "$lt_compile" 2>out/conftest.err)
  1.2582 +   ac_status=$?
  1.2583 +   cat out/conftest.err >&AS_MESSAGE_LOG_FD
  1.2584 +   echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  1.2585 +   if (exit $ac_status) && test -s out/conftest2.$ac_objext
  1.2586 +   then
  1.2587 +     # The compiler can only warn and ignore the option if not recognized
  1.2588 +     # So say no if there are warnings
  1.2589 +     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  1.2590 +     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  1.2591 +     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  1.2592 +       _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  1.2593 +     fi
  1.2594 +   fi
  1.2595 +   chmod u+w . 2>&AS_MESSAGE_LOG_FD
  1.2596 +   $RM conftest*
  1.2597 +   # SGI C++ compiler will create directory out/ii_files/ for
  1.2598 +   # template instantiation
  1.2599 +   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  1.2600 +   $RM out/* && rmdir out
  1.2601 +   cd ..
  1.2602 +   $RM -r conftest
  1.2603 +   $RM conftest*
  1.2604 +])
  1.2605 +_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
  1.2606 +	[Does compiler simultaneously support -c and -o options?])
  1.2607 +])# _LT_COMPILER_C_O
  1.2608 +
  1.2609 +
  1.2610 +# _LT_COMPILER_FILE_LOCKS([TAGNAME])
  1.2611 +# ----------------------------------
  1.2612 +# Check to see if we can do hard links to lock some files if needed
  1.2613 +m4_defun([_LT_COMPILER_FILE_LOCKS],
  1.2614 +[m4_require([_LT_ENABLE_LOCK])dnl
  1.2615 +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1.2616 +_LT_COMPILER_C_O([$1])
  1.2617 +
  1.2618 +hard_links="nottested"
  1.2619 +if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
  1.2620 +  # do not overwrite the value of need_locks provided by the user
  1.2621 +  AC_MSG_CHECKING([if we can lock with hard links])
  1.2622 +  hard_links=yes
  1.2623 +  $RM conftest*
  1.2624 +  ln conftest.a conftest.b 2>/dev/null && hard_links=no
  1.2625 +  touch conftest.a
  1.2626 +  ln conftest.a conftest.b 2>&5 || hard_links=no
  1.2627 +  ln conftest.a conftest.b 2>/dev/null && hard_links=no
  1.2628 +  AC_MSG_RESULT([$hard_links])
  1.2629 +  if test "$hard_links" = no; then
  1.2630 +    AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
  1.2631 +    need_locks=warn
  1.2632 +  fi
  1.2633 +else
  1.2634 +  need_locks=no
  1.2635 +fi
  1.2636 +_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
  1.2637 +])# _LT_COMPILER_FILE_LOCKS
  1.2638 +
  1.2639 +
  1.2640 +# _LT_CHECK_OBJDIR
  1.2641 +# ----------------
  1.2642 +m4_defun([_LT_CHECK_OBJDIR],
  1.2643 +[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
  1.2644 +[rm -f .libs 2>/dev/null
  1.2645 +mkdir .libs 2>/dev/null
  1.2646 +if test -d .libs; then
  1.2647 +  lt_cv_objdir=.libs
  1.2648 +else
  1.2649 +  # MS-DOS does not allow filenames that begin with a dot.
  1.2650 +  lt_cv_objdir=_libs
  1.2651 +fi
  1.2652 +rmdir .libs 2>/dev/null])
  1.2653 +objdir=$lt_cv_objdir
  1.2654 +_LT_DECL([], [objdir], [0],
  1.2655 +         [The name of the directory that contains temporary libtool files])dnl
  1.2656 +m4_pattern_allow([LT_OBJDIR])dnl
  1.2657 +AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
  1.2658 +  [Define to the sub-directory in which libtool stores uninstalled libraries.])
  1.2659 +])# _LT_CHECK_OBJDIR
  1.2660 +
  1.2661 +
  1.2662 +# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
  1.2663 +# --------------------------------------
  1.2664 +# Check hardcoding attributes.
  1.2665 +m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
  1.2666 +[AC_MSG_CHECKING([how to hardcode library paths into programs])
  1.2667 +_LT_TAGVAR(hardcode_action, $1)=
  1.2668 +if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
  1.2669 +   test -n "$_LT_TAGVAR(runpath_var, $1)" ||
  1.2670 +   test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
  1.2671 +
  1.2672 +  # We can hardcode non-existent directories.
  1.2673 +  if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
  1.2674 +     # If the only mechanism to avoid hardcoding is shlibpath_var, we
  1.2675 +     # have to relink, otherwise we might link with an installed library
  1.2676 +     # when we should be linking with a yet-to-be-installed one
  1.2677 +     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
  1.2678 +     test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
  1.2679 +    # Linking always hardcodes the temporary library directory.
  1.2680 +    _LT_TAGVAR(hardcode_action, $1)=relink
  1.2681 +  else
  1.2682 +    # We can link without hardcoding, and we can hardcode nonexisting dirs.
  1.2683 +    _LT_TAGVAR(hardcode_action, $1)=immediate
  1.2684 +  fi
  1.2685 +else
  1.2686 +  # We cannot hardcode anything, or else we can only hardcode existing
  1.2687 +  # directories.
  1.2688 +  _LT_TAGVAR(hardcode_action, $1)=unsupported
  1.2689 +fi
  1.2690 +AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
  1.2691 +
  1.2692 +if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
  1.2693 +   test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
  1.2694 +  # Fast installation is not supported
  1.2695 +  enable_fast_install=no
  1.2696 +elif test "$shlibpath_overrides_runpath" = yes ||
  1.2697 +     test "$enable_shared" = no; then
  1.2698 +  # Fast installation is not necessary
  1.2699 +  enable_fast_install=needless
  1.2700 +fi
  1.2701 +_LT_TAGDECL([], [hardcode_action], [0],
  1.2702 +    [How to hardcode a shared library path into an executable])
  1.2703 +])# _LT_LINKER_HARDCODE_LIBPATH
  1.2704 +
  1.2705 +
  1.2706 +# _LT_CMD_STRIPLIB
  1.2707 +# ----------------
  1.2708 +m4_defun([_LT_CMD_STRIPLIB],
  1.2709 +[m4_require([_LT_DECL_EGREP])
  1.2710 +striplib=
  1.2711 +old_striplib=
  1.2712 +AC_MSG_CHECKING([whether stripping libraries is possible])
  1.2713 +if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  1.2714 +  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  1.2715 +  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  1.2716 +  AC_MSG_RESULT([yes])
  1.2717 +else
  1.2718 +# FIXME - insert some real tests, host_os isn't really good enough
  1.2719 +  case $host_os in
  1.2720 +  darwin*)
  1.2721 +    if test -n "$STRIP" ; then
  1.2722 +      striplib="$STRIP -x"
  1.2723 +      old_striplib="$STRIP -S"
  1.2724 +      AC_MSG_RESULT([yes])
  1.2725 +    else
  1.2726 +      AC_MSG_RESULT([no])
  1.2727 +    fi
  1.2728 +    ;;
  1.2729 +  *)
  1.2730 +    AC_MSG_RESULT([no])
  1.2731 +    ;;
  1.2732 +  esac
  1.2733 +fi
  1.2734 +_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
  1.2735 +_LT_DECL([], [striplib], [1])
  1.2736 +])# _LT_CMD_STRIPLIB
  1.2737 +
  1.2738 +
  1.2739 +# _LT_SYS_DYNAMIC_LINKER([TAG])
  1.2740 +# -----------------------------
  1.2741 +# PORTME Fill in your ld.so characteristics
  1.2742 +m4_defun([_LT_SYS_DYNAMIC_LINKER],
  1.2743 +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  1.2744 +m4_require([_LT_DECL_EGREP])dnl
  1.2745 +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1.2746 +m4_require([_LT_DECL_OBJDUMP])dnl
  1.2747 +m4_require([_LT_DECL_SED])dnl
  1.2748 +AC_MSG_CHECKING([dynamic linker characteristics])
  1.2749 +m4_if([$1],
  1.2750 +	[], [
  1.2751 +if test "$GCC" = yes; then
  1.2752 +  case $host_os in
  1.2753 +    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  1.2754 +    *) lt_awk_arg="/^libraries:/" ;;
  1.2755 +  esac
  1.2756 +  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  1.2757 +  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  1.2758 +    # if the path contains ";" then we assume it to be the separator
  1.2759 +    # otherwise default to the standard path separator (i.e. ":") - it is
  1.2760 +    # assumed that no part of a normal pathname contains ";" but that should
  1.2761 +    # okay in the real world where ";" in dirpaths is itself problematic.
  1.2762 +    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  1.2763 +  else
  1.2764 +    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
  1.2765 +  fi
  1.2766 +  # Ok, now we have the path, separated by spaces, we can step through it
  1.2767 +  # and add multilib dir if necessary.
  1.2768 +  lt_tmp_lt_search_path_spec=
  1.2769 +  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  1.2770 +  for lt_sys_path in $lt_search_path_spec; do
  1.2771 +    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  1.2772 +      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  1.2773 +    else
  1.2774 +      test -d "$lt_sys_path" && \
  1.2775 +	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  1.2776 +    fi
  1.2777 +  done
  1.2778 +  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  1.2779 +BEGIN {RS=" "; FS="/|\n";} {
  1.2780 +  lt_foo="";
  1.2781 +  lt_count=0;
  1.2782 +  for (lt_i = NF; lt_i > 0; lt_i--) {
  1.2783 +    if ($lt_i != "" && $lt_i != ".") {
  1.2784 +      if ($lt_i == "..") {
  1.2785 +        lt_count++;
  1.2786 +      } else {
  1.2787 +        if (lt_count == 0) {
  1.2788 +          lt_foo="/" $lt_i lt_foo;
  1.2789 +        } else {
  1.2790 +          lt_count--;
  1.2791 +        }
  1.2792 +      }
  1.2793 +    }
  1.2794 +  }
  1.2795 +  if (lt_foo != "") { lt_freq[[lt_foo]]++; }
  1.2796 +  if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
  1.2797 +}'`
  1.2798 +  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  1.2799 +else
  1.2800 +  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  1.2801 +fi])
  1.2802 +library_names_spec=
  1.2803 +libname_spec='lib$name'
  1.2804 +soname_spec=
  1.2805 +shrext_cmds=".so"
  1.2806 +postinstall_cmds=
  1.2807 +postuninstall_cmds=
  1.2808 +finish_cmds=
  1.2809 +finish_eval=
  1.2810 +shlibpath_var=
  1.2811 +shlibpath_overrides_runpath=unknown
  1.2812 +version_type=none
  1.2813 +dynamic_linker="$host_os ld.so"
  1.2814 +sys_lib_dlsearch_path_spec="/lib /usr/lib"
  1.2815 +need_lib_prefix=unknown
  1.2816 +hardcode_into_libs=no
  1.2817 +
  1.2818 +# when you set need_version to no, make sure it does not cause -set_version
  1.2819 +# flags to be left without arguments
  1.2820 +need_version=unknown
  1.2821 +
  1.2822 +case $host_os in
  1.2823 +aix3*)
  1.2824 +  version_type=linux
  1.2825 +  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  1.2826 +  shlibpath_var=LIBPATH
  1.2827 +
  1.2828 +  # AIX 3 has no versioning support, so we append a major version to the name.
  1.2829 +  soname_spec='${libname}${release}${shared_ext}$major'
  1.2830 +  ;;
  1.2831 +
  1.2832 +aix[[4-9]]*)
  1.2833 +  version_type=linux
  1.2834 +  need_lib_prefix=no
  1.2835 +  need_version=no
  1.2836 +  hardcode_into_libs=yes
  1.2837 +  if test "$host_cpu" = ia64; then
  1.2838 +    # AIX 5 supports IA64
  1.2839 +    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  1.2840 +    shlibpath_var=LD_LIBRARY_PATH
  1.2841 +  else
  1.2842 +    # With GCC up to 2.95.x, collect2 would create an import file
  1.2843 +    # for dependence libraries.  The import file would start with
  1.2844 +    # the line `#! .'.  This would cause the generated library to
  1.2845 +    # depend on `.', always an invalid library.  This was fixed in
  1.2846 +    # development snapshots of GCC prior to 3.0.
  1.2847 +    case $host_os in
  1.2848 +      aix4 | aix4.[[01]] | aix4.[[01]].*)
  1.2849 +      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  1.2850 +	   echo ' yes '
  1.2851 +	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  1.2852 +	:
  1.2853 +      else
  1.2854 +	can_build_shared=no
  1.2855 +      fi
  1.2856 +      ;;
  1.2857 +    esac
  1.2858 +    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  1.2859 +    # soname into executable. Probably we can add versioning support to
  1.2860 +    # collect2, so additional links can be useful in future.
  1.2861 +    if test "$aix_use_runtimelinking" = yes; then
  1.2862 +      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  1.2863 +      # instead of lib<name>.a to let people know that these are not
  1.2864 +      # typical AIX shared libraries.
  1.2865 +      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1.2866 +    else
  1.2867 +      # We preserve .a as extension for shared libraries through AIX4.2
  1.2868 +      # and later when we are not doing run time linking.
  1.2869 +      library_names_spec='${libname}${release}.a $libname.a'
  1.2870 +      soname_spec='${libname}${release}${shared_ext}$major'
  1.2871 +    fi
  1.2872 +    shlibpath_var=LIBPATH
  1.2873 +  fi
  1.2874 +  ;;
  1.2875 +
  1.2876 +amigaos*)
  1.2877 +  case $host_cpu in
  1.2878 +  powerpc)
  1.2879 +    # Since July 2007 AmigaOS4 officially supports .so libraries.
  1.2880 +    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  1.2881 +    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1.2882 +    ;;
  1.2883 +  m68k)
  1.2884 +    library_names_spec='$libname.ixlibrary $libname.a'
  1.2885 +    # Create ${libname}_ixlibrary.a entries in /sys/libs.
  1.2886 +    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'
  1.2887 +    ;;
  1.2888 +  esac
  1.2889 +  ;;
  1.2890 +
  1.2891 +beos*)
  1.2892 +  library_names_spec='${libname}${shared_ext}'
  1.2893 +  dynamic_linker="$host_os ld.so"
  1.2894 +  shlibpath_var=LIBRARY_PATH
  1.2895 +  ;;
  1.2896 +
  1.2897 +bsdi[[45]]*)
  1.2898 +  version_type=linux
  1.2899 +  need_version=no
  1.2900 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1.2901 +  soname_spec='${libname}${release}${shared_ext}$major'
  1.2902 +  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  1.2903 +  shlibpath_var=LD_LIBRARY_PATH
  1.2904 +  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  1.2905 +  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  1.2906 +  # the default ld.so.conf also contains /usr/contrib/lib and
  1.2907 +  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  1.2908 +  # libtool to hard-code these into programs
  1.2909 +  ;;
  1.2910 +
  1.2911 +cygwin* | mingw* | pw32* | cegcc*)
  1.2912 +  version_type=windows
  1.2913 +  shrext_cmds=".dll"
  1.2914 +  need_version=no
  1.2915 +  need_lib_prefix=no
  1.2916 +
  1.2917 +  case $GCC,$host_os in
  1.2918 +  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  1.2919 +    library_names_spec='$libname.dll.a'
  1.2920 +    # DLL is installed to $(libdir)/../bin by postinstall_cmds
  1.2921 +    postinstall_cmds='base_file=`basename \${file}`~
  1.2922 +      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  1.2923 +      dldir=$destdir/`dirname \$dlpath`~
  1.2924 +      test -d \$dldir || mkdir -p \$dldir~
  1.2925 +      $install_prog $dir/$dlname \$dldir/$dlname~
  1.2926 +      chmod a+x \$dldir/$dlname~
  1.2927 +      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  1.2928 +        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  1.2929 +      fi'
  1.2930 +    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  1.2931 +      dlpath=$dir/\$dldll~
  1.2932 +       $RM \$dlpath'
  1.2933 +    shlibpath_overrides_runpath=yes
  1.2934 +
  1.2935 +    case $host_os in
  1.2936 +    cygwin*)
  1.2937 +      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  1.2938 +      #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  1.2939 +      soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  1.2940 +      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  1.2941 +      ;;
  1.2942 +    mingw* | cegcc*)
  1.2943 +      # MinGW DLLs use traditional 'lib' prefix
  1.2944 +      #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  1.2945 +      soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  1.2946 +      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  1.2947 +      if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
  1.2948 +        # It is most probably a Windows format PATH printed by
  1.2949 +        # mingw gcc, but we are running on Cygwin. Gcc prints its search
  1.2950 +        # path with ; separators, and with drive letters. We can handle the
  1.2951 +        # drive letters (cygwin fileutils understands them), so leave them,
  1.2952 +        # especially as we might pass files found there to a mingw objdump,
  1.2953 +        # which wouldn't understand a cygwinified path. Ahh.
  1.2954 +        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  1.2955 +      else
  1.2956 +        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
  1.2957 +      fi
  1.2958 +      ;;
  1.2959 +    pw32*)
  1.2960 +      # pw32 DLLs use 'pw' prefix rather than 'lib'
  1.2961 +      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  1.2962 +      ;;
  1.2963 +    esac
  1.2964 +    ;;
  1.2965 +
  1.2966 +  *)
  1.2967 +    library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
  1.2968 +    ;;
  1.2969 +  esac
  1.2970 +  dynamic_linker='Win32 ld.exe'
  1.2971 +  # FIXME: first we should search . and the directory the executable is in
  1.2972 +  shlibpath_var=PATH
  1.2973 +  ;;
  1.2974 +
  1.2975 +darwin* | rhapsody*)
  1.2976 +  dynamic_linker="$host_os dyld"
  1.2977 +  version_type=darwin
  1.2978 +  need_lib_prefix=no
  1.2979 +  need_version=no
  1.2980 +  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  1.2981 +  soname_spec='${libname}${release}${major}$shared_ext'
  1.2982 +  shlibpath_overrides_runpath=yes
  1.2983 +  shlibpath_var=DYLD_LIBRARY_PATH
  1.2984 +  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  1.2985 +m4_if([$1], [],[
  1.2986 +  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
  1.2987 +  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  1.2988 +  ;;
  1.2989 +
  1.2990 +dgux*)
  1.2991 +  version_type=linux
  1.2992 +  need_lib_prefix=no
  1.2993 +  need_version=no
  1.2994 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  1.2995 +  soname_spec='${libname}${release}${shared_ext}$major'
  1.2996 +  shlibpath_var=LD_LIBRARY_PATH
  1.2997 +  ;;
  1.2998 +
  1.2999 +freebsd1*)
  1.3000 +  dynamic_linker=no
  1.3001 +  ;;
  1.3002 +
  1.3003 +freebsd* | dragonfly*)
  1.3004 +  # DragonFly does not have aout.  When/if they implement a new
  1.3005 +  # versioning mechanism, adjust this.
  1.3006 +  if test -x /usr/bin/objformat; then
  1.3007 +    objformat=`/usr/bin/objformat`
  1.3008 +  else
  1.3009 +    case $host_os in
  1.3010 +    freebsd[[123]]*) objformat=aout ;;
  1.3011 +    *) objformat=elf ;;
  1.3012 +    esac
  1.3013 +  fi
  1.3014 +  version_type=freebsd-$objformat
  1.3015 +  case $version_type in
  1.3016 +    freebsd-elf*)
  1.3017 +      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  1.3018 +      need_version=no
  1.3019 +      need_lib_prefix=no
  1.3020 +      ;;
  1.3021 +    freebsd-*)
  1.3022 +      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  1.3023 +      need_version=yes
  1.3024 +      ;;
  1.3025 +  esac
  1.3026 +  shlibpath_var=LD_LIBRARY_PATH
  1.3027 +  case $host_os in
  1.3028 +  freebsd2*)
  1.3029 +    shlibpath_overrides_runpath=yes
  1.3030 +    ;;
  1.3031 +  freebsd3.[[01]]* | freebsdelf3.[[01]]*)
  1.3032 +    shlibpath_overrides_runpath=yes
  1.3033 +    hardcode_into_libs=yes
  1.3034 +    ;;
  1.3035 +  freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
  1.3036 +  freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
  1.3037 +    shlibpath_overrides_runpath=no
  1.3038 +    hardcode_into_libs=yes
  1.3039 +    ;;
  1.3040 +  *) # from 4.6 on, and DragonFly
  1.3041 +    shlibpath_overrides_runpath=yes
  1.3042 +    hardcode_into_libs=yes
  1.3043 +    ;;
  1.3044 +  esac
  1.3045 +  ;;
  1.3046 +
  1.3047 +gnu*)
  1.3048 +  version_type=linux
  1.3049 +  need_lib_prefix=no
  1.3050 +  need_version=no
  1.3051 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  1.3052 +  soname_spec='${libname}${release}${shared_ext}$major'
  1.3053 +  shlibpath_var=LD_LIBRARY_PATH
  1.3054 +  hardcode_into_libs=yes
  1.3055 +  ;;
  1.3056 +
  1.3057 +hpux9* | hpux10* | hpux11*)
  1.3058 +  # Give a soname corresponding to the major version so that dld.sl refuses to
  1.3059 +  # link against other versions.
  1.3060 +  version_type=sunos
  1.3061 +  need_lib_prefix=no
  1.3062 +  need_version=no
  1.3063 +  case $host_cpu in
  1.3064 +  ia64*)
  1.3065 +    shrext_cmds='.so'
  1.3066 +    hardcode_into_libs=yes
  1.3067 +    dynamic_linker="$host_os dld.so"
  1.3068 +    shlibpath_var=LD_LIBRARY_PATH
  1.3069 +    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  1.3070 +    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1.3071 +    soname_spec='${libname}${release}${shared_ext}$major'
  1.3072 +    if test "X$HPUX_IA64_MODE" = X32; then
  1.3073 +      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  1.3074 +    else
  1.3075 +      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  1.3076 +    fi
  1.3077 +    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  1.3078 +    ;;
  1.3079 +  hppa*64*)
  1.3080 +    shrext_cmds='.sl'
  1.3081 +    hardcode_into_libs=yes
  1.3082 +    dynamic_linker="$host_os dld.sl"
  1.3083 +    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  1.3084 +    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  1.3085 +    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1.3086 +    soname_spec='${libname}${release}${shared_ext}$major'
  1.3087 +    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  1.3088 +    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  1.3089 +    ;;
  1.3090 +  *)
  1.3091 +    shrext_cmds='.sl'
  1.3092 +    dynamic_linker="$host_os dld.sl"
  1.3093 +    shlibpath_var=SHLIB_PATH
  1.3094 +    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  1.3095 +    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1.3096 +    soname_spec='${libname}${release}${shared_ext}$major'
  1.3097 +    ;;
  1.3098 +  esac
  1.3099 +  # HP-UX runs *really* slowly unless shared libraries are mode 555.
  1.3100 +  postinstall_cmds='chmod 555 $lib'
  1.3101 +  ;;
  1.3102 +
  1.3103 +interix[[3-9]]*)
  1.3104 +  version_type=linux
  1.3105 +  need_lib_prefix=no
  1.3106 +  need_version=no
  1.3107 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  1.3108 +  soname_spec='${libname}${release}${shared_ext}$major'
  1.3109 +  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  1.3110 +  shlibpath_var=LD_LIBRARY_PATH
  1.3111 +  shlibpath_overrides_runpath=no
  1.3112 +  hardcode_into_libs=yes
  1.3113 +  ;;
  1.3114 +
  1.3115 +irix5* | irix6* | nonstopux*)
  1.3116 +  case $host_os in
  1.3117 +    nonstopux*) version_type=nonstopux ;;
  1.3118 +    *)
  1.3119 +	if test "$lt_cv_prog_gnu_ld" = yes; then
  1.3120 +		version_type=linux
  1.3121 +	else
  1.3122 +		version_type=irix
  1.3123 +	fi ;;
  1.3124 +  esac
  1.3125 +  need_lib_prefix=no
  1.3126 +  need_version=no
  1.3127 +  soname_spec='${libname}${release}${shared_ext}$major'
  1.3128 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  1.3129 +  case $host_os in
  1.3130 +  irix5* | nonstopux*)
  1.3131 +    libsuff= shlibsuff=
  1.3132 +    ;;
  1.3133 +  *)
  1.3134 +    case $LD in # libtool.m4 will add one of these switches to LD
  1.3135 +    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  1.3136 +      libsuff= shlibsuff= libmagic=32-bit;;
  1.3137 +    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  1.3138 +      libsuff=32 shlibsuff=N32 libmagic=N32;;
  1.3139 +    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  1.3140 +      libsuff=64 shlibsuff=64 libmagic=64-bit;;
  1.3141 +    *) libsuff= shlibsuff= libmagic=never-match;;
  1.3142 +    esac
  1.3143 +    ;;
  1.3144 +  esac
  1.3145 +  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  1.3146 +  shlibpath_overrides_runpath=no
  1.3147 +  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  1.3148 +  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  1.3149 +  hardcode_into_libs=yes
  1.3150 +  ;;
  1.3151 +
  1.3152 +# No shared lib support for Linux oldld, aout, or coff.
  1.3153 +linux*oldld* | linux*aout* | linux*coff*)
  1.3154 +  dynamic_linker=no
  1.3155 +  ;;
  1.3156 +
  1.3157 +# This must be Linux ELF.
  1.3158 +linux* | k*bsd*-gnu)
  1.3159 +  version_type=linux
  1.3160 +  need_lib_prefix=no
  1.3161 +  need_version=no
  1.3162 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1.3163 +  soname_spec='${libname}${release}${shared_ext}$major'
  1.3164 +  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  1.3165 +  shlibpath_var=LD_LIBRARY_PATH
  1.3166 +  shlibpath_overrides_runpath=no
  1.3167 +  # Some binutils ld are patched to set DT_RUNPATH
  1.3168 +  save_LDFLAGS=$LDFLAGS
  1.3169 +  save_libdir=$libdir
  1.3170 +  eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
  1.3171 +       LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
  1.3172 +  AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  1.3173 +    [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
  1.3174 +       [shlibpath_overrides_runpath=yes])])
  1.3175 +  LDFLAGS=$save_LDFLAGS
  1.3176 +  libdir=$save_libdir
  1.3177 +
  1.3178 +  # This implies no fast_install, which is unacceptable.
  1.3179 +  # Some rework will be needed to allow for fast_install
  1.3180 +  # before this can be enabled.
  1.3181 +  hardcode_into_libs=yes
  1.3182 +
  1.3183 +  # Append ld.so.conf contents to the search path
  1.3184 +  if test -f /etc/ld.so.conf; then
  1.3185 +    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' ' '`
  1.3186 +    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  1.3187 +  fi
  1.3188 +
  1.3189 +  # We used to test for /lib/ld.so.1 and disable shared libraries on
  1.3190 +  # powerpc, because MkLinux only supported shared libraries with the
  1.3191 +  # GNU dynamic linker.  Since this was broken with cross compilers,
  1.3192 +  # most powerpc-linux boxes support dynamic linking these days and
  1.3193 +  # people can always --disable-shared, the test was removed, and we
  1.3194 +  # assume the GNU/Linux dynamic linker is in use.
  1.3195 +  dynamic_linker='GNU/Linux ld.so'
  1.3196 +  ;;
  1.3197 +
  1.3198 +netbsd*)
  1.3199 +  version_type=sunos
  1.3200 +  need_lib_prefix=no
  1.3201 +  need_version=no
  1.3202 +  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  1.3203 +    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  1.3204 +    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  1.3205 +    dynamic_linker='NetBSD (a.out) ld.so'
  1.3206 +  else
  1.3207 +    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  1.3208 +    soname_spec='${libname}${release}${shared_ext}$major'
  1.3209 +    dynamic_linker='NetBSD ld.elf_so'
  1.3210 +  fi
  1.3211 +  shlibpath_var=LD_LIBRARY_PATH
  1.3212 +  shlibpath_overrides_runpath=yes
  1.3213 +  hardcode_into_libs=yes
  1.3214 +  ;;
  1.3215 +
  1.3216 +newsos6)
  1.3217 +  version_type=linux
  1.3218 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1.3219 +  shlibpath_var=LD_LIBRARY_PATH
  1.3220 +  shlibpath_overrides_runpath=yes
  1.3221 +  ;;
  1.3222 +
  1.3223 +*nto* | *qnx*)
  1.3224 +  version_type=qnx
  1.3225 +  need_lib_prefix=no
  1.3226 +  need_version=no
  1.3227 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1.3228 +  soname_spec='${libname}${release}${shared_ext}$major'
  1.3229 +  shlibpath_var=LD_LIBRARY_PATH
  1.3230 +  shlibpath_overrides_runpath=no
  1.3231 +  hardcode_into_libs=yes
  1.3232 +  dynamic_linker='ldqnx.so'
  1.3233 +  ;;
  1.3234 +
  1.3235 +openbsd*)
  1.3236 +  version_type=sunos
  1.3237 +  sys_lib_dlsearch_path_spec="/usr/lib"
  1.3238 +  need_lib_prefix=no
  1.3239 +  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  1.3240 +  case $host_os in
  1.3241 +    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
  1.3242 +    *)				need_version=no  ;;
  1.3243 +  esac
  1.3244 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  1.3245 +  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  1.3246 +  shlibpath_var=LD_LIBRARY_PATH
  1.3247 +  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  1.3248 +    case $host_os in
  1.3249 +      openbsd2.[[89]] | openbsd2.[[89]].*)
  1.3250 +	shlibpath_overrides_runpath=no
  1.3251 +	;;
  1.3252 +      *)
  1.3253 +	shlibpath_overrides_runpath=yes
  1.3254 +	;;
  1.3255 +      esac
  1.3256 +  else
  1.3257 +    shlibpath_overrides_runpath=yes
  1.3258 +  fi
  1.3259 +  ;;
  1.3260 +
  1.3261 +os2*)
  1.3262 +  libname_spec='$name'
  1.3263 +  shrext_cmds=".dll"
  1.3264 +  need_lib_prefix=no
  1.3265 +  library_names_spec='$libname${shared_ext} $libname.a'
  1.3266 +  dynamic_linker='OS/2 ld.exe'
  1.3267 +  shlibpath_var=LIBPATH
  1.3268 +  ;;
  1.3269 +
  1.3270 +osf3* | osf4* | osf5*)
  1.3271 +  version_type=osf
  1.3272 +  need_lib_prefix=no
  1.3273 +  need_version=no
  1.3274 +  soname_spec='${libname}${release}${shared_ext}$major'
  1.3275 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1.3276 +  shlibpath_var=LD_LIBRARY_PATH
  1.3277 +  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  1.3278 +  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  1.3279 +  ;;
  1.3280 +
  1.3281 +rdos*)
  1.3282 +  dynamic_linker=no
  1.3283 +  ;;
  1.3284 +
  1.3285 +solaris*)
  1.3286 +  version_type=linux
  1.3287 +  need_lib_prefix=no
  1.3288 +  need_version=no
  1.3289 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1.3290 +  soname_spec='${libname}${release}${shared_ext}$major'
  1.3291 +  shlibpath_var=LD_LIBRARY_PATH
  1.3292 +  shlibpath_overrides_runpath=yes
  1.3293 +  hardcode_into_libs=yes
  1.3294 +  # ldd complains unless libraries are executable
  1.3295 +  postinstall_cmds='chmod +x $lib'
  1.3296 +  ;;
  1.3297 +
  1.3298 +sunos4*)
  1.3299 +  version_type=sunos
  1.3300 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  1.3301 +  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  1.3302 +  shlibpath_var=LD_LIBRARY_PATH
  1.3303 +  shlibpath_overrides_runpath=yes
  1.3304 +  if test "$with_gnu_ld" = yes; then
  1.3305 +    need_lib_prefix=no
  1.3306 +  fi
  1.3307 +  need_version=yes
  1.3308 +  ;;
  1.3309 +
  1.3310 +sysv4 | sysv4.3*)
  1.3311 +  version_type=linux
  1.3312 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1.3313 +  soname_spec='${libname}${release}${shared_ext}$major'
  1.3314 +  shlibpath_var=LD_LIBRARY_PATH
  1.3315 +  case $host_vendor in
  1.3316 +    sni)
  1.3317 +      shlibpath_overrides_runpath=no
  1.3318 +      need_lib_prefix=no
  1.3319 +      runpath_var=LD_RUN_PATH
  1.3320 +      ;;
  1.3321 +    siemens)
  1.3322 +      need_lib_prefix=no
  1.3323 +      ;;
  1.3324 +    motorola)
  1.3325 +      need_lib_prefix=no
  1.3326 +      need_version=no
  1.3327 +      shlibpath_overrides_runpath=no
  1.3328 +      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  1.3329 +      ;;
  1.3330 +  esac
  1.3331 +  ;;
  1.3332 +
  1.3333 +sysv4*MP*)
  1.3334 +  if test -d /usr/nec ;then
  1.3335 +    version_type=linux
  1.3336 +    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  1.3337 +    soname_spec='$libname${shared_ext}.$major'
  1.3338 +    shlibpath_var=LD_LIBRARY_PATH
  1.3339 +  fi
  1.3340 +  ;;
  1.3341 +
  1.3342 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  1.3343 +  version_type=freebsd-elf
  1.3344 +  need_lib_prefix=no
  1.3345 +  need_version=no
  1.3346 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  1.3347 +  soname_spec='${libname}${release}${shared_ext}$major'
  1.3348 +  shlibpath_var=LD_LIBRARY_PATH
  1.3349 +  shlibpath_overrides_runpath=yes
  1.3350 +  hardcode_into_libs=yes
  1.3351 +  if test "$with_gnu_ld" = yes; then
  1.3352 +    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  1.3353 +  else
  1.3354 +    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  1.3355 +    case $host_os in
  1.3356 +      sco3.2v5*)
  1.3357 +        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  1.3358 +	;;
  1.3359 +    esac
  1.3360 +  fi
  1.3361 +  sys_lib_dlsearch_path_spec='/usr/lib'
  1.3362 +  ;;
  1.3363 +
  1.3364 +tpf*)
  1.3365 +  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
  1.3366 +  version_type=linux
  1.3367 +  need_lib_prefix=no
  1.3368 +  need_version=no
  1.3369 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1.3370 +  shlibpath_var=LD_LIBRARY_PATH
  1.3371 +  shlibpath_overrides_runpath=no
  1.3372 +  hardcode_into_libs=yes
  1.3373 +  ;;
  1.3374 +
  1.3375 +uts4*)
  1.3376 +  version_type=linux
  1.3377 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1.3378 +  soname_spec='${libname}${release}${shared_ext}$major'
  1.3379 +  shlibpath_var=LD_LIBRARY_PATH
  1.3380 +  ;;
  1.3381 +
  1.3382 +*)
  1.3383 +  dynamic_linker=no
  1.3384 +  ;;
  1.3385 +esac
  1.3386 +AC_MSG_RESULT([$dynamic_linker])
  1.3387 +test "$dynamic_linker" = no && can_build_shared=no
  1.3388 +
  1.3389 +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  1.3390 +if test "$GCC" = yes; then
  1.3391 +  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  1.3392 +fi
  1.3393 +
  1.3394 +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  1.3395 +  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  1.3396 +fi
  1.3397 +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  1.3398 +  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  1.3399 +fi
  1.3400 +
  1.3401 +_LT_DECL([], [variables_saved_for_relink], [1],
  1.3402 +    [Variables whose values should be saved in libtool wrapper scripts and
  1.3403 +    restored at link time])
  1.3404 +_LT_DECL([], [need_lib_prefix], [0],
  1.3405 +    [Do we need the "lib" prefix for modules?])
  1.3406 +_LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
  1.3407 +_LT_DECL([], [version_type], [0], [Library versioning type])
  1.3408 +_LT_DECL([], [runpath_var], [0],  [Shared library runtime path variable])
  1.3409 +_LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
  1.3410 +_LT_DECL([], [shlibpath_overrides_runpath], [0],
  1.3411 +    [Is shlibpath searched before the hard-coded library search path?])
  1.3412 +_LT_DECL([], [libname_spec], [1], [Format of library name prefix])
  1.3413 +_LT_DECL([], [library_names_spec], [1],
  1.3414 +    [[List of archive names.  First name is the real one, the rest are links.
  1.3415 +    The last name is the one that the linker finds with -lNAME]])
  1.3416 +_LT_DECL([], [soname_spec], [1],
  1.3417 +    [[The coded name of the library, if different from the real name]])
  1.3418 +_LT_DECL([], [postinstall_cmds], [2],
  1.3419 +    [Command to use after installation of a shared archive])
  1.3420 +_LT_DECL([], [postuninstall_cmds], [2],
  1.3421 +    [Command to use after uninstallation of a shared archive])
  1.3422 +_LT_DECL([], [finish_cmds], [2],
  1.3423 +    [Commands used to finish a libtool library installation in a directory])
  1.3424 +_LT_DECL([], [finish_eval], [1],
  1.3425 +    [[As "finish_cmds", except a single script fragment to be evaled but
  1.3426 +    not shown]])
  1.3427 +_LT_DECL([], [hardcode_into_libs], [0],
  1.3428 +    [Whether we should hardcode library paths into libraries])
  1.3429 +_LT_DECL([], [sys_lib_search_path_spec], [2],
  1.3430 +    [Compile-time system search path for libraries])
  1.3431 +_LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
  1.3432 +    [Run-time system search path for libraries])
  1.3433 +])# _LT_SYS_DYNAMIC_LINKER
  1.3434 +
  1.3435 +
  1.3436 +# _LT_PATH_TOOL_PREFIX(TOOL)
  1.3437 +# --------------------------
  1.3438 +# find a file program which can recognize shared library
  1.3439 +AC_DEFUN([_LT_PATH_TOOL_PREFIX],
  1.3440 +[m4_require([_LT_DECL_EGREP])dnl
  1.3441 +AC_MSG_CHECKING([for $1])
  1.3442 +AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
  1.3443 +[case $MAGIC_CMD in
  1.3444 +[[\\/*] |  ?:[\\/]*])
  1.3445 +  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  1.3446 +  ;;
  1.3447 +*)
  1.3448 +  lt_save_MAGIC_CMD="$MAGIC_CMD"
  1.3449 +  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  1.3450 +dnl $ac_dummy forces splitting on constant user-supplied paths.
  1.3451 +dnl POSIX.2 word splitting is done only on the output of word expansions,
  1.3452 +dnl not every word.  This closes a longstanding sh security hole.
  1.3453 +  ac_dummy="m4_if([$2], , $PATH, [$2])"
  1.3454 +  for ac_dir in $ac_dummy; do
  1.3455 +    IFS="$lt_save_ifs"
  1.3456 +    test -z "$ac_dir" && ac_dir=.
  1.3457 +    if test -f $ac_dir/$1; then
  1.3458 +      lt_cv_path_MAGIC_CMD="$ac_dir/$1"
  1.3459 +      if test -n "$file_magic_test_file"; then
  1.3460 +	case $deplibs_check_method in
  1.3461 +	"file_magic "*)
  1.3462 +	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  1.3463 +	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  1.3464 +	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  1.3465 +	    $EGREP "$file_magic_regex" > /dev/null; then
  1.3466 +	    :
  1.3467 +	  else
  1.3468 +	    cat <<_LT_EOF 1>&2
  1.3469 +
  1.3470 +*** Warning: the command libtool uses to detect shared libraries,
  1.3471 +*** $file_magic_cmd, produces output that libtool cannot recognize.
  1.3472 +*** The result is that libtool may fail to recognize shared libraries
  1.3473 +*** as such.  This will affect the creation of libtool libraries that
  1.3474 +*** depend on shared libraries, but programs linked with such libtool
  1.3475 +*** libraries will work regardless of this problem.  Nevertheless, you
  1.3476 +*** may want to report the problem to your system manager and/or to
  1.3477 +*** bug-libtool@gnu.org
  1.3478 +
  1.3479 +_LT_EOF
  1.3480 +	  fi ;;
  1.3481 +	esac
  1.3482 +      fi
  1.3483 +      break
  1.3484 +    fi
  1.3485 +  done
  1.3486 +  IFS="$lt_save_ifs"
  1.3487 +  MAGIC_CMD="$lt_save_MAGIC_CMD"
  1.3488 +  ;;
  1.3489 +esac])
  1.3490 +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  1.3491 +if test -n "$MAGIC_CMD"; then
  1.3492 +  AC_MSG_RESULT($MAGIC_CMD)
  1.3493 +else
  1.3494 +  AC_MSG_RESULT(no)
  1.3495 +fi
  1.3496 +_LT_DECL([], [MAGIC_CMD], [0],
  1.3497 +	 [Used to examine libraries when file_magic_cmd begins with "file"])dnl
  1.3498 +])# _LT_PATH_TOOL_PREFIX
  1.3499 +
  1.3500 +# Old name:
  1.3501 +AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
  1.3502 +dnl aclocal-1.4 backwards compatibility:
  1.3503 +dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
  1.3504 +
  1.3505 +
  1.3506 +# _LT_PATH_MAGIC
  1.3507 +# --------------
  1.3508 +# find a file program which can recognize a shared library
  1.3509 +m4_defun([_LT_PATH_MAGIC],
  1.3510 +[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
  1.3511 +if test -z "$lt_cv_path_MAGIC_CMD"; then
  1.3512 +  if test -n "$ac_tool_prefix"; then
  1.3513 +    _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
  1.3514 +  else
  1.3515 +    MAGIC_CMD=:
  1.3516 +  fi
  1.3517 +fi
  1.3518 +])# _LT_PATH_MAGIC
  1.3519 +
  1.3520 +
  1.3521 +# LT_PATH_LD
  1.3522 +# ----------
  1.3523 +# find the pathname to the GNU or non-GNU linker
  1.3524 +AC_DEFUN([LT_PATH_LD],
  1.3525 +[AC_REQUIRE([AC_PROG_CC])dnl
  1.3526 +AC_REQUIRE([AC_CANONICAL_HOST])dnl
  1.3527 +AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  1.3528 +m4_require([_LT_DECL_SED])dnl
  1.3529 +m4_require([_LT_DECL_EGREP])dnl
  1.3530 +
  1.3531 +AC_ARG_WITH([gnu-ld],
  1.3532 +    [AS_HELP_STRING([--with-gnu-ld],
  1.3533 +	[assume the C compiler uses GNU ld @<:@default=no@:>@])],
  1.3534 +    [test "$withval" = no || with_gnu_ld=yes],
  1.3535 +    [with_gnu_ld=no])dnl
  1.3536 +
  1.3537 +ac_prog=ld
  1.3538 +if test "$GCC" = yes; then
  1.3539 +  # Check if gcc -print-prog-name=ld gives a path.
  1.3540 +  AC_MSG_CHECKING([for ld used by $CC])
  1.3541 +  case $host in
  1.3542 +  *-*-mingw*)
  1.3543 +    # gcc leaves a trailing carriage return which upsets mingw
  1.3544 +    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  1.3545 +  *)
  1.3546 +    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  1.3547 +  esac
  1.3548 +  case $ac_prog in
  1.3549 +    # Accept absolute paths.
  1.3550 +    [[\\/]]* | ?:[[\\/]]*)
  1.3551 +      re_direlt='/[[^/]][[^/]]*/\.\./'
  1.3552 +      # Canonicalize the pathname of ld
  1.3553 +      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  1.3554 +      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  1.3555 +	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  1.3556 +      done
  1.3557 +      test -z "$LD" && LD="$ac_prog"
  1.3558 +      ;;
  1.3559 +  "")
  1.3560 +    # If it fails, then pretend we aren't using GCC.
  1.3561 +    ac_prog=ld
  1.3562 +    ;;
  1.3563 +  *)
  1.3564 +    # If it is relative, then search for the first ld in PATH.
  1.3565 +    with_gnu_ld=unknown
  1.3566 +    ;;
  1.3567 +  esac
  1.3568 +elif test "$with_gnu_ld" = yes; then
  1.3569 +  AC_MSG_CHECKING([for GNU ld])
  1.3570 +else
  1.3571 +  AC_MSG_CHECKING([for non-GNU ld])
  1.3572 +fi
  1.3573 +AC_CACHE_VAL(lt_cv_path_LD,
  1.3574 +[if test -z "$LD"; then
  1.3575 +  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  1.3576 +  for ac_dir in $PATH; do
  1.3577 +    IFS="$lt_save_ifs"
  1.3578 +    test -z "$ac_dir" && ac_dir=.
  1.3579 +    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  1.3580 +      lt_cv_path_LD="$ac_dir/$ac_prog"
  1.3581 +      # Check to see if the program is GNU ld.  I'd rather use --version,
  1.3582 +      # but apparently some variants of GNU ld only accept -v.
  1.3583 +      # Break only if it was the GNU/non-GNU ld that we prefer.
  1.3584 +      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  1.3585 +      *GNU* | *'with BFD'*)
  1.3586 +	test "$with_gnu_ld" != no && break
  1.3587 +	;;
  1.3588 +      *)
  1.3589 +	test "$with_gnu_ld" != yes && break
  1.3590 +	;;
  1.3591 +      esac
  1.3592 +    fi
  1.3593 +  done
  1.3594 +  IFS="$lt_save_ifs"
  1.3595 +else
  1.3596 +  lt_cv_path_LD="$LD" # Let the user override the test with a path.
  1.3597 +fi])
  1.3598 +LD="$lt_cv_path_LD"
  1.3599 +if test -n "$LD"; then
  1.3600 +  AC_MSG_RESULT($LD)
  1.3601 +else
  1.3602 +  AC_MSG_RESULT(no)
  1.3603 +fi
  1.3604 +test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
  1.3605 +_LT_PATH_LD_GNU
  1.3606 +AC_SUBST([LD])
  1.3607 +
  1.3608 +_LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
  1.3609 +])# LT_PATH_LD
  1.3610 +
  1.3611 +# Old names:
  1.3612 +AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
  1.3613 +AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
  1.3614 +dnl aclocal-1.4 backwards compatibility:
  1.3615 +dnl AC_DEFUN([AM_PROG_LD], [])
  1.3616 +dnl AC_DEFUN([AC_PROG_LD], [])
  1.3617 +
  1.3618 +
  1.3619 +# _LT_PATH_LD_GNU
  1.3620 +#- --------------
  1.3621 +m4_defun([_LT_PATH_LD_GNU],
  1.3622 +[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
  1.3623 +[# I'd rather use --version here, but apparently some GNU lds only accept -v.
  1.3624 +case `$LD -v 2>&1 </dev/null` in
  1.3625 +*GNU* | *'with BFD'*)
  1.3626 +  lt_cv_prog_gnu_ld=yes
  1.3627 +  ;;
  1.3628 +*)
  1.3629 +  lt_cv_prog_gnu_ld=no
  1.3630 +  ;;
  1.3631 +esac])
  1.3632 +with_gnu_ld=$lt_cv_prog_gnu_ld
  1.3633 +])# _LT_PATH_LD_GNU
  1.3634 +
  1.3635 +
  1.3636 +# _LT_CMD_RELOAD
  1.3637 +# --------------
  1.3638 +# find reload flag for linker
  1.3639 +#   -- PORTME Some linkers may need a different reload flag.
  1.3640 +m4_defun([_LT_CMD_RELOAD],
  1.3641 +[AC_CACHE_CHECK([for $LD option to reload object files],
  1.3642 +  lt_cv_ld_reload_flag,
  1.3643 +  [lt_cv_ld_reload_flag='-r'])
  1.3644 +reload_flag=$lt_cv_ld_reload_flag
  1.3645 +case $reload_flag in
  1.3646 +"" | " "*) ;;
  1.3647 +*) reload_flag=" $reload_flag" ;;
  1.3648 +esac
  1.3649 +reload_cmds='$LD$reload_flag -o $output$reload_objs'
  1.3650 +case $host_os in
  1.3651 +  darwin*)
  1.3652 +    if test "$GCC" = yes; then
  1.3653 +      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  1.3654 +    else
  1.3655 +      reload_cmds='$LD$reload_flag -o $output$reload_objs'
  1.3656 +    fi
  1.3657 +    ;;
  1.3658 +esac
  1.3659 +_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
  1.3660 +_LT_DECL([], [reload_cmds], [2])dnl
  1.3661 +])# _LT_CMD_RELOAD
  1.3662 +
  1.3663 +
  1.3664 +# _LT_CHECK_MAGIC_METHOD
  1.3665 +# ----------------------
  1.3666 +# how to check for library dependencies
  1.3667 +#  -- PORTME fill in with the dynamic library characteristics
  1.3668 +m4_defun([_LT_CHECK_MAGIC_METHOD],
  1.3669 +[m4_require([_LT_DECL_EGREP])
  1.3670 +m4_require([_LT_DECL_OBJDUMP])
  1.3671 +AC_CACHE_CHECK([how to recognize dependent libraries],
  1.3672 +lt_cv_deplibs_check_method,
  1.3673 +[lt_cv_file_magic_cmd='$MAGIC_CMD'
  1.3674 +lt_cv_file_magic_test_file=
  1.3675 +lt_cv_deplibs_check_method='unknown'
  1.3676 +# Need to set the preceding variable on all platforms that support
  1.3677 +# interlibrary dependencies.
  1.3678 +# 'none' -- dependencies not supported.
  1.3679 +# `unknown' -- same as none, but documents that we really don't know.
  1.3680 +# 'pass_all' -- all dependencies passed with no checks.
  1.3681 +# 'test_compile' -- check by making test program.
  1.3682 +# 'file_magic [[regex]]' -- check by looking for files in library path
  1.3683 +# which responds to the $file_magic_cmd with a given extended regex.
  1.3684 +# If you have `file' or equivalent on your system and you're not sure
  1.3685 +# whether `pass_all' will *always* work, you probably want this one.
  1.3686 +
  1.3687 +case $host_os in
  1.3688 +aix[[4-9]]*)
  1.3689 +  lt_cv_deplibs_check_method=pass_all
  1.3690 +  ;;
  1.3691 +
  1.3692 +beos*)
  1.3693 +  lt_cv_deplibs_check_method=pass_all
  1.3694 +  ;;
  1.3695 +
  1.3696 +bsdi[[45]]*)
  1.3697 +  lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
  1.3698 +  lt_cv_file_magic_cmd='/usr/bin/file -L'
  1.3699 +  lt_cv_file_magic_test_file=/shlib/libc.so
  1.3700 +  ;;
  1.3701 +
  1.3702 +cygwin*)
  1.3703 +  # func_win32_libid is a shell function defined in ltmain.sh
  1.3704 +  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  1.3705 +  lt_cv_deplibs_check_method=pass_all
  1.3706 +  lt_cv_file_magic_cmd='func_win32_libid'
  1.3707 +  ;;
  1.3708 +
  1.3709 +mingw* | pw32*)
  1.3710 +  # Base MSYS/MinGW do not provide the 'file' command needed by
  1.3711 +  # func_win32_libid shell function, so use a weaker test based on 'objdump',
  1.3712 +  # unless we find 'file', for example because we are cross-compiling.
  1.3713 +  if ( file / ) >/dev/null 2>&1; then
  1.3714 +    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  1.3715 +    lt_cv_file_magic_cmd='func_win32_libid'
  1.3716 +  else
  1.3717 +    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  1.3718 +    lt_cv_file_magic_cmd='$OBJDUMP -f'
  1.3719 +  fi
  1.3720 +  lt_cv_deplibs_check_method=pass_all
  1.3721 +  ;;
  1.3722 +
  1.3723 +cegcc)
  1.3724 +  # use the weaker test based on 'objdump'. See mingw*.
  1.3725 +  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  1.3726 +  lt_cv_file_magic_cmd='$OBJDUMP -f'
  1.3727 +  ;;
  1.3728 +
  1.3729 +darwin* | rhapsody*)
  1.3730 +  lt_cv_deplibs_check_method=pass_all
  1.3731 +  ;;
  1.3732 +
  1.3733 +freebsd* | dragonfly*)
  1.3734 +  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  1.3735 +    case $host_cpu in
  1.3736 +    i*86 )
  1.3737 +      # Not sure whether the presence of OpenBSD here was a mistake.
  1.3738 +      # Let's accept both of them until this is cleared up.
  1.3739 +      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
  1.3740 +      lt_cv_file_magic_cmd=/usr/bin/file
  1.3741 +      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  1.3742 +      ;;
  1.3743 +    esac
  1.3744 +  else
  1.3745 +    lt_cv_deplibs_check_method=pass_all
  1.3746 +  fi
  1.3747 +  ;;
  1.3748 +
  1.3749 +gnu*)
  1.3750 +  lt_cv_deplibs_check_method=pass_all
  1.3751 +  ;;
  1.3752 +
  1.3753 +hpux10.20* | hpux11*)
  1.3754 +  lt_cv_file_magic_cmd=/usr/bin/file
  1.3755 +  case $host_cpu in
  1.3756 +  ia64*)
  1.3757 +    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
  1.3758 +    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  1.3759 +    ;;
  1.3760 +  hppa*64*)
  1.3761 +    [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]']
  1.3762 +    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  1.3763 +    ;;
  1.3764 +  *)
  1.3765 +    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
  1.3766 +    lt_cv_file_magic_test_file=/usr/lib/libc.sl
  1.3767 +    ;;
  1.3768 +  esac
  1.3769 +  ;;
  1.3770 +
  1.3771 +interix[[3-9]]*)
  1.3772 +  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  1.3773 +  lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
  1.3774 +  ;;
  1.3775 +
  1.3776 +irix5* | irix6* | nonstopux*)
  1.3777 +  case $LD in
  1.3778 +  *-32|*"-32 ") libmagic=32-bit;;
  1.3779 +  *-n32|*"-n32 ") libmagic=N32;;
  1.3780 +  *-64|*"-64 ") libmagic=64-bit;;
  1.3781 +  *) libmagic=never-match;;
  1.3782 +  esac
  1.3783 +  lt_cv_deplibs_check_method=pass_all
  1.3784 +  ;;
  1.3785 +
  1.3786 +# This must be Linux ELF.
  1.3787 +linux* | k*bsd*-gnu)
  1.3788 +  lt_cv_deplibs_check_method=pass_all
  1.3789 +  ;;
  1.3790 +
  1.3791 +netbsd*)
  1.3792 +  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  1.3793 +    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  1.3794 +  else
  1.3795 +    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
  1.3796 +  fi
  1.3797 +  ;;
  1.3798 +
  1.3799 +newos6*)
  1.3800 +  lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
  1.3801 +  lt_cv_file_magic_cmd=/usr/bin/file
  1.3802 +  lt_cv_file_magic_test_file=/usr/lib/libnls.so
  1.3803 +  ;;
  1.3804 +
  1.3805 +*nto* | *qnx*)
  1.3806 +  lt_cv_deplibs_check_method=pass_all
  1.3807 +  ;;
  1.3808 +
  1.3809 +openbsd*)
  1.3810 +  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  1.3811 +    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
  1.3812 +  else
  1.3813 +    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  1.3814 +  fi
  1.3815 +  ;;
  1.3816 +
  1.3817 +osf3* | osf4* | osf5*)
  1.3818 +  lt_cv_deplibs_check_method=pass_all
  1.3819 +  ;;
  1.3820 +
  1.3821 +rdos*)
  1.3822 +  lt_cv_deplibs_check_method=pass_all
  1.3823 +  ;;
  1.3824 +
  1.3825 +solaris*)
  1.3826 +  lt_cv_deplibs_check_method=pass_all
  1.3827 +  ;;
  1.3828 +
  1.3829 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  1.3830 +  lt_cv_deplibs_check_method=pass_all
  1.3831 +  ;;
  1.3832 +
  1.3833 +sysv4 | sysv4.3*)
  1.3834 +  case $host_vendor in
  1.3835 +  motorola)
  1.3836 +    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]]'
  1.3837 +    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  1.3838 +    ;;
  1.3839 +  ncr)
  1.3840 +    lt_cv_deplibs_check_method=pass_all
  1.3841 +    ;;
  1.3842 +  sequent)
  1.3843 +    lt_cv_file_magic_cmd='/bin/file'
  1.3844 +    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
  1.3845 +    ;;
  1.3846 +  sni)
  1.3847 +    lt_cv_file_magic_cmd='/bin/file'
  1.3848 +    lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
  1.3849 +    lt_cv_file_magic_test_file=/lib/libc.so
  1.3850 +    ;;
  1.3851 +  siemens)
  1.3852 +    lt_cv_deplibs_check_method=pass_all
  1.3853 +    ;;
  1.3854 +  pc)
  1.3855 +    lt_cv_deplibs_check_method=pass_all
  1.3856 +    ;;
  1.3857 +  esac
  1.3858 +  ;;
  1.3859 +
  1.3860 +tpf*)
  1.3861 +  lt_cv_deplibs_check_method=pass_all
  1.3862 +  ;;
  1.3863 +esac
  1.3864 +])
  1.3865 +file_magic_cmd=$lt_cv_file_magic_cmd
  1.3866 +deplibs_check_method=$lt_cv_deplibs_check_method
  1.3867 +test -z "$deplibs_check_method" && deplibs_check_method=unknown
  1.3868 +
  1.3869 +_LT_DECL([], [deplibs_check_method], [1],
  1.3870 +    [Method to check whether dependent libraries are shared objects])
  1.3871 +_LT_DECL([], [file_magic_cmd], [1],
  1.3872 +    [Command to use when deplibs_check_method == "file_magic"])
  1.3873 +])# _LT_CHECK_MAGIC_METHOD
  1.3874 +
  1.3875 +
  1.3876 +# LT_PATH_NM
  1.3877 +# ----------
  1.3878 +# find the pathname to a BSD- or MS-compatible name lister
  1.3879 +AC_DEFUN([LT_PATH_NM],
  1.3880 +[AC_REQUIRE([AC_PROG_CC])dnl
  1.3881 +AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
  1.3882 +[if test -n "$NM"; then
  1.3883 +  # Let the user override the test.
  1.3884 +  lt_cv_path_NM="$NM"
  1.3885 +else
  1.3886 +  lt_nm_to_check="${ac_tool_prefix}nm"
  1.3887 +  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  1.3888 +    lt_nm_to_check="$lt_nm_to_check nm"
  1.3889 +  fi
  1.3890 +  for lt_tmp_nm in $lt_nm_to_check; do
  1.3891 +    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  1.3892 +    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  1.3893 +      IFS="$lt_save_ifs"
  1.3894 +      test -z "$ac_dir" && ac_dir=.
  1.3895 +      tmp_nm="$ac_dir/$lt_tmp_nm"
  1.3896 +      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  1.3897 +	# Check to see if the nm accepts a BSD-compat flag.
  1.3898 +	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
  1.3899 +	#   nm: unknown option "B" ignored
  1.3900 +	# Tru64's nm complains that /dev/null is an invalid object file
  1.3901 +	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  1.3902 +	*/dev/null* | *'Invalid file or object type'*)
  1.3903 +	  lt_cv_path_NM="$tmp_nm -B"
  1.3904 +	  break
  1.3905 +	  ;;
  1.3906 +	*)
  1.3907 +	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  1.3908 +	  */dev/null*)
  1.3909 +	    lt_cv_path_NM="$tmp_nm -p"
  1.3910 +	    break
  1.3911 +	    ;;
  1.3912 +	  *)
  1.3913 +	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  1.3914 +	    continue # so that we can try to find one that supports BSD flags
  1.3915 +	    ;;
  1.3916 +	  esac
  1.3917 +	  ;;
  1.3918 +	esac
  1.3919 +      fi
  1.3920 +    done
  1.3921 +    IFS="$lt_save_ifs"
  1.3922 +  done
  1.3923 +  : ${lt_cv_path_NM=no}
  1.3924 +fi])
  1.3925 +if test "$lt_cv_path_NM" != "no"; then
  1.3926 +  NM="$lt_cv_path_NM"
  1.3927 +else
  1.3928 +  # Didn't find any BSD compatible name lister, look for dumpbin.
  1.3929 +  AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
  1.3930 +  AC_SUBST([DUMPBIN])
  1.3931 +  if test "$DUMPBIN" != ":"; then
  1.3932 +    NM="$DUMPBIN"
  1.3933 +  fi
  1.3934 +fi
  1.3935 +test -z "$NM" && NM=nm
  1.3936 +AC_SUBST([NM])
  1.3937 +_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
  1.3938 +
  1.3939 +AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
  1.3940 +  [lt_cv_nm_interface="BSD nm"
  1.3941 +  echo "int some_variable = 0;" > conftest.$ac_ext
  1.3942 +  (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
  1.3943 +  (eval "$ac_compile" 2>conftest.err)
  1.3944 +  cat conftest.err >&AS_MESSAGE_LOG_FD
  1.3945 +  (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
  1.3946 +  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  1.3947 +  cat conftest.err >&AS_MESSAGE_LOG_FD
  1.3948 +  (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
  1.3949 +  cat conftest.out >&AS_MESSAGE_LOG_FD
  1.3950 +  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  1.3951 +    lt_cv_nm_interface="MS dumpbin"
  1.3952 +  fi
  1.3953 +  rm -f conftest*])
  1.3954 +])# LT_PATH_NM
  1.3955 +
  1.3956 +# Old names:
  1.3957 +AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
  1.3958 +AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
  1.3959 +dnl aclocal-1.4 backwards compatibility:
  1.3960 +dnl AC_DEFUN([AM_PROG_NM], [])
  1.3961 +dnl AC_DEFUN([AC_PROG_NM], [])
  1.3962 +
  1.3963 +
  1.3964 +# LT_LIB_M
  1.3965 +# --------
  1.3966 +# check for math library
  1.3967 +AC_DEFUN([LT_LIB_M],
  1.3968 +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  1.3969 +LIBM=
  1.3970 +case $host in
  1.3971 +*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
  1.3972 +  # These system don't have libm, or don't need it
  1.3973 +  ;;
  1.3974 +*-ncr-sysv4.3*)
  1.3975 +  AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
  1.3976 +  AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
  1.3977 +  ;;
  1.3978 +*)
  1.3979 +  AC_CHECK_LIB(m, cos, LIBM="-lm")
  1.3980 +  ;;
  1.3981 +esac
  1.3982 +AC_SUBST([LIBM])
  1.3983 +])# LT_LIB_M
  1.3984 +
  1.3985 +# Old name:
  1.3986 +AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
  1.3987 +dnl aclocal-1.4 backwards compatibility:
  1.3988 +dnl AC_DEFUN([AC_CHECK_LIBM], [])
  1.3989 +
  1.3990 +
  1.3991 +# _LT_COMPILER_NO_RTTI([TAGNAME])
  1.3992 +# -------------------------------
  1.3993 +m4_defun([_LT_COMPILER_NO_RTTI],
  1.3994 +[m4_require([_LT_TAG_COMPILER])dnl
  1.3995 +
  1.3996 +_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  1.3997 +
  1.3998 +if test "$GCC" = yes; then
  1.3999 +  _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  1.4000 +
  1.4001 +  _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
  1.4002 +    lt_cv_prog_compiler_rtti_exceptions,
  1.4003 +    [-fno-rtti -fno-exceptions], [],
  1.4004 +    [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
  1.4005 +fi
  1.4006 +_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
  1.4007 +	[Compiler flag to turn off builtin functions])
  1.4008 +])# _LT_COMPILER_NO_RTTI
  1.4009 +
  1.4010 +
  1.4011 +# _LT_CMD_GLOBAL_SYMBOLS
  1.4012 +# ----------------------
  1.4013 +m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
  1.4014 +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  1.4015 +AC_REQUIRE([AC_PROG_CC])dnl
  1.4016 +AC_REQUIRE([LT_PATH_NM])dnl
  1.4017 +AC_REQUIRE([LT_PATH_LD])dnl
  1.4018 +m4_require([_LT_DECL_SED])dnl
  1.4019 +m4_require([_LT_DECL_EGREP])dnl
  1.4020 +m4_require([_LT_TAG_COMPILER])dnl
  1.4021 +
  1.4022 +# Check for command to grab the raw symbol name followed by C symbol from nm.
  1.4023 +AC_MSG_CHECKING([command to parse $NM output from $compiler object])
  1.4024 +AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
  1.4025 +[
  1.4026 +# These are sane defaults that work on at least a few old systems.
  1.4027 +# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
  1.4028 +
  1.4029 +# Character class describing NM global symbol codes.
  1.4030 +symcode='[[BCDEGRST]]'
  1.4031 +
  1.4032 +# Regexp to match symbols that can be accessed directly from C.
  1.4033 +sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
  1.4034 +
  1.4035 +# Define system-specific variables.
  1.4036 +case $host_os in
  1.4037 +aix*)
  1.4038 +  symcode='[[BCDT]]'
  1.4039 +  ;;
  1.4040 +cygwin* | mingw* | pw32* | cegcc*)
  1.4041 +  symcode='[[ABCDGISTW]]'
  1.4042 +  ;;
  1.4043 +hpux*)
  1.4044 +  if test "$host_cpu" = ia64; then
  1.4045 +    symcode='[[ABCDEGRST]]'
  1.4046 +  fi
  1.4047 +  ;;
  1.4048 +irix* | nonstopux*)
  1.4049 +  symcode='[[BCDEGRST]]'
  1.4050 +  ;;
  1.4051 +osf*)
  1.4052 +  symcode='[[BCDEGQRST]]'
  1.4053 +  ;;
  1.4054 +solaris*)
  1.4055 +  symcode='[[BDRT]]'
  1.4056 +  ;;
  1.4057 +sco3.2v5*)
  1.4058 +  symcode='[[DT]]'
  1.4059 +  ;;
  1.4060 +sysv4.2uw2*)
  1.4061 +  symcode='[[DT]]'
  1.4062 +  ;;
  1.4063 +sysv5* | sco5v6* | unixware* | OpenUNIX*)
  1.4064 +  symcode='[[ABDT]]'
  1.4065 +  ;;
  1.4066 +sysv4)
  1.4067 +  symcode='[[DFNSTU]]'
  1.4068 +  ;;
  1.4069 +esac
  1.4070 +
  1.4071 +# If we're using GNU nm, then use its standard symbol codes.
  1.4072 +case `$NM -V 2>&1` in
  1.4073 +*GNU* | *'with BFD'*)
  1.4074 +  symcode='[[ABCDGIRSTW]]' ;;
  1.4075 +esac
  1.4076 +
  1.4077 +# Transform an extracted symbol line into a proper C declaration.
  1.4078 +# Some systems (esp. on ia64) link data and code symbols differently,
  1.4079 +# so use this general approach.
  1.4080 +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  1.4081 +
  1.4082 +# Transform an extracted symbol line into symbol name and symbol address
  1.4083 +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (void *) \&\2},/p'"
  1.4084 +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'"
  1.4085 +
  1.4086 +# Handle CRLF in mingw tool chain
  1.4087 +opt_cr=
  1.4088 +case $build_os in
  1.4089 +mingw*)
  1.4090 +  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  1.4091 +  ;;
  1.4092 +esac
  1.4093 +
  1.4094 +# Try without a prefix underscore, then with it.
  1.4095 +for ac_symprfx in "" "_"; do
  1.4096 +
  1.4097 +  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  1.4098 +  symxfrm="\\1 $ac_symprfx\\2 \\2"
  1.4099 +
  1.4100 +  # Write the raw and C identifiers.
  1.4101 +  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  1.4102 +    # Fake it for dumpbin and say T for any non-static function
  1.4103 +    # and D for any global variable.
  1.4104 +    # Also find C++ and __fastcall symbols from MSVC++,
  1.4105 +    # which start with @ or ?.
  1.4106 +    lt_cv_sys_global_symbol_pipe="$AWK ['"\
  1.4107 +"     {last_section=section; section=\$ 3};"\
  1.4108 +"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  1.4109 +"     \$ 0!~/External *\|/{next};"\
  1.4110 +"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  1.4111 +"     {if(hide[section]) next};"\
  1.4112 +"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  1.4113 +"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  1.4114 +"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
  1.4115 +"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  1.4116 +"     ' prfx=^$ac_symprfx]"
  1.4117 +  else
  1.4118 +    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[	 ]]\($symcode$symcode*\)[[	 ]][[	 ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  1.4119 +  fi
  1.4120 +
  1.4121 +  # Check to see that the pipe works correctly.
  1.4122 +  pipe_works=no
  1.4123 +
  1.4124 +  rm -f conftest*
  1.4125 +  cat > conftest.$ac_ext <<_LT_EOF
  1.4126 +#ifdef __cplusplus
  1.4127 +extern "C" {
  1.4128 +#endif
  1.4129 +char nm_test_var;
  1.4130 +void nm_test_func(void);
  1.4131 +void nm_test_func(void){}
  1.4132 +#ifdef __cplusplus
  1.4133 +}
  1.4134 +#endif
  1.4135 +int main(){nm_test_var='a';nm_test_func();return(0);}
  1.4136 +_LT_EOF
  1.4137 +
  1.4138 +  if AC_TRY_EVAL(ac_compile); then
  1.4139 +    # Now try to grab the symbols.
  1.4140 +    nlist=conftest.nm
  1.4141 +    if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
  1.4142 +      # Try sorting and uniquifying the output.
  1.4143 +      if sort "$nlist" | uniq > "$nlist"T; then
  1.4144 +	mv -f "$nlist"T "$nlist"
  1.4145 +      else
  1.4146 +	rm -f "$nlist"T
  1.4147 +      fi
  1.4148 +
  1.4149 +      # Make sure that we snagged all the symbols we need.
  1.4150 +      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  1.4151 +	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  1.4152 +	  cat <<_LT_EOF > conftest.$ac_ext
  1.4153 +#ifdef __cplusplus
  1.4154 +extern "C" {
  1.4155 +#endif
  1.4156 +
  1.4157 +_LT_EOF
  1.4158 +	  # Now generate the symbol file.
  1.4159 +	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  1.4160 +
  1.4161 +	  cat <<_LT_EOF >> conftest.$ac_ext
  1.4162 +
  1.4163 +/* The mapping between symbol names and symbols.  */
  1.4164 +const struct {
  1.4165 +  const char *name;
  1.4166 +  void       *address;
  1.4167 +}
  1.4168 +lt__PROGRAM__LTX_preloaded_symbols[[]] =
  1.4169 +{
  1.4170 +  { "@PROGRAM@", (void *) 0 },
  1.4171 +_LT_EOF
  1.4172 +	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  1.4173 +	  cat <<\_LT_EOF >> conftest.$ac_ext
  1.4174 +  {0, (void *) 0}
  1.4175 +};
  1.4176 +
  1.4177 +/* This works around a problem in FreeBSD linker */
  1.4178 +#ifdef FREEBSD_WORKAROUND
  1.4179 +static const void *lt_preloaded_setup() {
  1.4180 +  return lt__PROGRAM__LTX_preloaded_symbols;
  1.4181 +}
  1.4182 +#endif
  1.4183 +
  1.4184 +#ifdef __cplusplus
  1.4185 +}
  1.4186 +#endif
  1.4187 +_LT_EOF
  1.4188 +	  # Now try linking the two files.
  1.4189 +	  mv conftest.$ac_objext conftstm.$ac_objext
  1.4190 +	  lt_save_LIBS="$LIBS"
  1.4191 +	  lt_save_CFLAGS="$CFLAGS"
  1.4192 +	  LIBS="conftstm.$ac_objext"
  1.4193 +	  CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
  1.4194 +	  if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
  1.4195 +	    pipe_works=yes
  1.4196 +	  fi
  1.4197 +	  LIBS="$lt_save_LIBS"
  1.4198 +	  CFLAGS="$lt_save_CFLAGS"
  1.4199 +	else
  1.4200 +	  echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
  1.4201 +	fi
  1.4202 +      else
  1.4203 +	echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
  1.4204 +      fi
  1.4205 +    else
  1.4206 +      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
  1.4207 +    fi
  1.4208 +  else
  1.4209 +    echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
  1.4210 +    cat conftest.$ac_ext >&5
  1.4211 +  fi
  1.4212 +  rm -rf conftest* conftst*
  1.4213 +
  1.4214 +  # Do not use the global_symbol_pipe unless it works.
  1.4215 +  if test "$pipe_works" = yes; then
  1.4216 +    break
  1.4217 +  else
  1.4218 +    lt_cv_sys_global_symbol_pipe=
  1.4219 +  fi
  1.4220 +done
  1.4221 +])
  1.4222 +if test -z "$lt_cv_sys_global_symbol_pipe"; then
  1.4223 +  lt_cv_sys_global_symbol_to_cdecl=
  1.4224 +fi
  1.4225 +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  1.4226 +  AC_MSG_RESULT(failed)
  1.4227 +else
  1.4228 +  AC_MSG_RESULT(ok)
  1.4229 +fi
  1.4230 +
  1.4231 +_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
  1.4232 +    [Take the output of nm and produce a listing of raw symbols and C names])
  1.4233 +_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
  1.4234 +    [Transform the output of nm in a proper C declaration])
  1.4235 +_LT_DECL([global_symbol_to_c_name_address],
  1.4236 +    [lt_cv_sys_global_symbol_to_c_name_address], [1],
  1.4237 +    [Transform the output of nm in a C name address pair])
  1.4238 +_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
  1.4239 +    [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
  1.4240 +    [Transform the output of nm in a C name address pair when lib prefix is needed])
  1.4241 +]) # _LT_CMD_GLOBAL_SYMBOLS
  1.4242 +
  1.4243 +
  1.4244 +# _LT_COMPILER_PIC([TAGNAME])
  1.4245 +# ---------------------------
  1.4246 +m4_defun([_LT_COMPILER_PIC],
  1.4247 +[m4_require([_LT_TAG_COMPILER])dnl
  1.4248 +_LT_TAGVAR(lt_prog_compiler_wl, $1)=
  1.4249 +_LT_TAGVAR(lt_prog_compiler_pic, $1)=
  1.4250 +_LT_TAGVAR(lt_prog_compiler_static, $1)=
  1.4251 +
  1.4252 +AC_MSG_CHECKING([for $compiler option to produce PIC])
  1.4253 +m4_if([$1], [CXX], [
  1.4254 +  # C++ specific cases for pic, static, wl, etc.
  1.4255 +  if test "$GXX" = yes; then
  1.4256 +    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.4257 +    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  1.4258 +
  1.4259 +    case $host_os in
  1.4260 +    aix*)
  1.4261 +      # All AIX code is PIC.
  1.4262 +      if test "$host_cpu" = ia64; then
  1.4263 +	# AIX 5 now supports IA64 processor
  1.4264 +	_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  1.4265 +      fi
  1.4266 +      ;;
  1.4267 +
  1.4268 +    amigaos*)
  1.4269 +      case $host_cpu in
  1.4270 +      powerpc)
  1.4271 +            # see comment about AmigaOS4 .so support
  1.4272 +            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  1.4273 +        ;;
  1.4274 +      m68k)
  1.4275 +            # FIXME: we need at least 68020 code to build shared libraries, but
  1.4276 +            # adding the `-m68020' flag to GCC prevents building anything better,
  1.4277 +            # like `-m68040'.
  1.4278 +            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  1.4279 +        ;;
  1.4280 +      esac
  1.4281 +      ;;
  1.4282 +
  1.4283 +    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  1.4284 +      # PIC is the default for these OSes.
  1.4285 +      ;;
  1.4286 +    mingw* | cygwin* | os2* | pw32* | cegcc*)
  1.4287 +      # This hack is so that the source file can tell whether it is being
  1.4288 +      # built for inclusion in a dll (and should export symbols for example).
  1.4289 +      # Although the cygwin gcc ignores -fPIC, still need this for old-style
  1.4290 +      # (--disable-auto-import) libraries
  1.4291 +      m4_if([$1], [GCJ], [],
  1.4292 +	[_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  1.4293 +      ;;
  1.4294 +    darwin* | rhapsody*)
  1.4295 +      # PIC is the default on this platform
  1.4296 +      # Common symbols not allowed in MH_DYLIB files
  1.4297 +      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  1.4298 +      ;;
  1.4299 +    *djgpp*)
  1.4300 +      # DJGPP does not support shared libraries at all
  1.4301 +      _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  1.4302 +      ;;
  1.4303 +    interix[[3-9]]*)
  1.4304 +      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  1.4305 +      # Instead, we relocate shared libraries at runtime.
  1.4306 +      ;;
  1.4307 +    sysv4*MP*)
  1.4308 +      if test -d /usr/nec; then
  1.4309 +	_LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  1.4310 +      fi
  1.4311 +      ;;
  1.4312 +    hpux*)
  1.4313 +      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  1.4314 +      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
  1.4315 +      # sets the default TLS model and affects inlining.
  1.4316 +      case $host_cpu in
  1.4317 +      hppa*64*)
  1.4318 +	;;
  1.4319 +      *)
  1.4320 +	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  1.4321 +	;;
  1.4322 +      esac
  1.4323 +      ;;
  1.4324 +    *qnx* | *nto*)
  1.4325 +      # QNX uses GNU C++, but need to define -shared option too, otherwise
  1.4326 +      # it will coredump.
  1.4327 +      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  1.4328 +      ;;
  1.4329 +    *)
  1.4330 +      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  1.4331 +      ;;
  1.4332 +    esac
  1.4333 +  else
  1.4334 +    case $host_os in
  1.4335 +      aix[[4-9]]*)
  1.4336 +	# All AIX code is PIC.
  1.4337 +	if test "$host_cpu" = ia64; then
  1.4338 +	  # AIX 5 now supports IA64 processor
  1.4339 +	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  1.4340 +	else
  1.4341 +	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  1.4342 +	fi
  1.4343 +	;;
  1.4344 +      chorus*)
  1.4345 +	case $cc_basename in
  1.4346 +	cxch68*)
  1.4347 +	  # Green Hills C++ Compiler
  1.4348 +	  # _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"
  1.4349 +	  ;;
  1.4350 +	esac
  1.4351 +	;;
  1.4352 +      dgux*)
  1.4353 +	case $cc_basename in
  1.4354 +	  ec++*)
  1.4355 +	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  1.4356 +	    ;;
  1.4357 +	  ghcx*)
  1.4358 +	    # Green Hills C++ Compiler
  1.4359 +	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  1.4360 +	    ;;
  1.4361 +	  *)
  1.4362 +	    ;;
  1.4363 +	esac
  1.4364 +	;;
  1.4365 +      freebsd* | dragonfly*)
  1.4366 +	# FreeBSD uses GNU C++
  1.4367 +	;;
  1.4368 +      hpux9* | hpux10* | hpux11*)
  1.4369 +	case $cc_basename in
  1.4370 +	  CC*)
  1.4371 +	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.4372 +	    _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  1.4373 +	    if test "$host_cpu" != ia64; then
  1.4374 +	      _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  1.4375 +	    fi
  1.4376 +	    ;;
  1.4377 +	  aCC*)
  1.4378 +	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.4379 +	    _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  1.4380 +	    case $host_cpu in
  1.4381 +	    hppa*64*|ia64*)
  1.4382 +	      # +Z the default
  1.4383 +	      ;;
  1.4384 +	    *)
  1.4385 +	      _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  1.4386 +	      ;;
  1.4387 +	    esac
  1.4388 +	    ;;
  1.4389 +	  *)
  1.4390 +	    ;;
  1.4391 +	esac
  1.4392 +	;;
  1.4393 +      interix*)
  1.4394 +	# This is c89, which is MS Visual C++ (no shared libs)
  1.4395 +	# Anyone wants to do a port?
  1.4396 +	;;
  1.4397 +      irix5* | irix6* | nonstopux*)
  1.4398 +	case $cc_basename in
  1.4399 +	  CC*)
  1.4400 +	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.4401 +	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  1.4402 +	    # CC pic flag -KPIC is the default.
  1.4403 +	    ;;
  1.4404 +	  *)
  1.4405 +	    ;;
  1.4406 +	esac
  1.4407 +	;;
  1.4408 +      linux* | k*bsd*-gnu)
  1.4409 +	case $cc_basename in
  1.4410 +	  KCC*)
  1.4411 +	    # KAI C++ Compiler
  1.4412 +	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  1.4413 +	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  1.4414 +	    ;;
  1.4415 +	  ecpc* )
  1.4416 +	    # old Intel C++ for x86_64 which still supported -KPIC.
  1.4417 +	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.4418 +	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  1.4419 +	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  1.4420 +	    ;;
  1.4421 +	  icpc* )
  1.4422 +	    # Intel C++, used to be incompatible with GCC.
  1.4423 +	    # ICC 10 doesn't accept -KPIC any more.
  1.4424 +	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.4425 +	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  1.4426 +	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  1.4427 +	    ;;
  1.4428 +	  pgCC* | pgcpp*)
  1.4429 +	    # Portland Group C++ compiler
  1.4430 +	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.4431 +	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  1.4432 +	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  1.4433 +	    ;;
  1.4434 +	  cxx*)
  1.4435 +	    # Compaq C++
  1.4436 +	    # Make sure the PIC flag is empty.  It appears that all Alpha
  1.4437 +	    # Linux and Compaq Tru64 Unix objects are PIC.
  1.4438 +	    _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  1.4439 +	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  1.4440 +	    ;;
  1.4441 +	  xlc* | xlC*)
  1.4442 +	    # IBM XL 8.0 on PPC
  1.4443 +	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.4444 +	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  1.4445 +	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  1.4446 +	    ;;
  1.4447 +	  *)
  1.4448 +	    case `$CC -V 2>&1 | sed 5q` in
  1.4449 +	    *Sun\ C*)
  1.4450 +	      # Sun C++ 5.9
  1.4451 +	      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  1.4452 +	      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  1.4453 +	      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  1.4454 +	      ;;
  1.4455 +	    esac
  1.4456 +	    ;;
  1.4457 +	esac
  1.4458 +	;;
  1.4459 +      lynxos*)
  1.4460 +	;;
  1.4461 +      m88k*)
  1.4462 +	;;
  1.4463 +      mvs*)
  1.4464 +	case $cc_basename in
  1.4465 +	  cxx*)
  1.4466 +	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
  1.4467 +	    ;;
  1.4468 +	  *)
  1.4469 +	    ;;
  1.4470 +	esac
  1.4471 +	;;
  1.4472 +      netbsd*)
  1.4473 +	;;
  1.4474 +      *qnx* | *nto*)
  1.4475 +        # QNX uses GNU C++, but need to define -shared option too, otherwise
  1.4476 +        # it will coredump.
  1.4477 +        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  1.4478 +        ;;
  1.4479 +      osf3* | osf4* | osf5*)
  1.4480 +	case $cc_basename in
  1.4481 +	  KCC*)
  1.4482 +	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  1.4483 +	    ;;
  1.4484 +	  RCC*)
  1.4485 +	    # Rational C++ 2.4.1
  1.4486 +	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  1.4487 +	    ;;
  1.4488 +	  cxx*)
  1.4489 +	    # Digital/Compaq C++
  1.4490 +	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.4491 +	    # Make sure the PIC flag is empty.  It appears that all Alpha
  1.4492 +	    # Linux and Compaq Tru64 Unix objects are PIC.
  1.4493 +	    _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  1.4494 +	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  1.4495 +	    ;;
  1.4496 +	  *)
  1.4497 +	    ;;
  1.4498 +	esac
  1.4499 +	;;
  1.4500 +      psos*)
  1.4501 +	;;
  1.4502 +      solaris*)
  1.4503 +	case $cc_basename in
  1.4504 +	  CC*)
  1.4505 +	    # Sun C++ 4.2, 5.x and Centerline C++
  1.4506 +	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  1.4507 +	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  1.4508 +	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  1.4509 +	    ;;
  1.4510 +	  gcx*)
  1.4511 +	    # Green Hills C++ Compiler
  1.4512 +	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  1.4513 +	    ;;
  1.4514 +	  *)
  1.4515 +	    ;;
  1.4516 +	esac
  1.4517 +	;;
  1.4518 +      sunos4*)
  1.4519 +	case $cc_basename in
  1.4520 +	  CC*)
  1.4521 +	    # Sun C++ 4.x
  1.4522 +	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  1.4523 +	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  1.4524 +	    ;;
  1.4525 +	  lcc*)
  1.4526 +	    # Lucid
  1.4527 +	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  1.4528 +	    ;;
  1.4529 +	  *)
  1.4530 +	    ;;
  1.4531 +	esac
  1.4532 +	;;
  1.4533 +      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  1.4534 +	case $cc_basename in
  1.4535 +	  CC*)
  1.4536 +	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.4537 +	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  1.4538 +	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  1.4539 +	    ;;
  1.4540 +	esac
  1.4541 +	;;
  1.4542 +      tandem*)
  1.4543 +	case $cc_basename in
  1.4544 +	  NCC*)
  1.4545 +	    # NonStop-UX NCC 3.20
  1.4546 +	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  1.4547 +	    ;;
  1.4548 +	  *)
  1.4549 +	    ;;
  1.4550 +	esac
  1.4551 +	;;
  1.4552 +      vxworks*)
  1.4553 +	;;
  1.4554 +      *)
  1.4555 +	_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  1.4556 +	;;
  1.4557 +    esac
  1.4558 +  fi
  1.4559 +],
  1.4560 +[
  1.4561 +  if test "$GCC" = yes; then
  1.4562 +    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.4563 +    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  1.4564 +
  1.4565 +    case $host_os in
  1.4566 +      aix*)
  1.4567 +      # All AIX code is PIC.
  1.4568 +      if test "$host_cpu" = ia64; then
  1.4569 +	# AIX 5 now supports IA64 processor
  1.4570 +	_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  1.4571 +      fi
  1.4572 +      ;;
  1.4573 +
  1.4574 +    amigaos*)
  1.4575 +      case $host_cpu in
  1.4576 +      powerpc)
  1.4577 +            # see comment about AmigaOS4 .so support
  1.4578 +            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  1.4579 +        ;;
  1.4580 +      m68k)
  1.4581 +            # FIXME: we need at least 68020 code to build shared libraries, but
  1.4582 +            # adding the `-m68020' flag to GCC prevents building anything better,
  1.4583 +            # like `-m68040'.
  1.4584 +            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  1.4585 +        ;;
  1.4586 +      esac
  1.4587 +      ;;
  1.4588 +
  1.4589 +    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  1.4590 +      # PIC is the default for these OSes.
  1.4591 +      ;;
  1.4592 +
  1.4593 +    mingw* | cygwin* | pw32* | os2* | cegcc*)
  1.4594 +      # This hack is so that the source file can tell whether it is being
  1.4595 +      # built for inclusion in a dll (and should export symbols for example).
  1.4596 +      # Although the cygwin gcc ignores -fPIC, still need this for old-style
  1.4597 +      # (--disable-auto-import) libraries
  1.4598 +      m4_if([$1], [GCJ], [],
  1.4599 +	[_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  1.4600 +      ;;
  1.4601 +
  1.4602 +    darwin* | rhapsody*)
  1.4603 +      # PIC is the default on this platform
  1.4604 +      # Common symbols not allowed in MH_DYLIB files
  1.4605 +      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  1.4606 +      ;;
  1.4607 +
  1.4608 +    hpux*)
  1.4609 +      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  1.4610 +      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
  1.4611 +      # sets the default TLS model and affects inlining.
  1.4612 +      case $host_cpu in
  1.4613 +      hppa*64*)
  1.4614 +	# +Z the default
  1.4615 +	;;
  1.4616 +      *)
  1.4617 +	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  1.4618 +	;;
  1.4619 +      esac
  1.4620 +      ;;
  1.4621 +
  1.4622 +    interix[[3-9]]*)
  1.4623 +      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  1.4624 +      # Instead, we relocate shared libraries at runtime.
  1.4625 +      ;;
  1.4626 +
  1.4627 +    msdosdjgpp*)
  1.4628 +      # Just because we use GCC doesn't mean we suddenly get shared libraries
  1.4629 +      # on systems that don't support them.
  1.4630 +      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  1.4631 +      enable_shared=no
  1.4632 +      ;;
  1.4633 +
  1.4634 +    *nto* | *qnx*)
  1.4635 +      # QNX uses GNU C++, but need to define -shared option too, otherwise
  1.4636 +      # it will coredump.
  1.4637 +      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  1.4638 +      ;;
  1.4639 +
  1.4640 +    sysv4*MP*)
  1.4641 +      if test -d /usr/nec; then
  1.4642 +	_LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  1.4643 +      fi
  1.4644 +      ;;
  1.4645 +
  1.4646 +    *)
  1.4647 +      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  1.4648 +      ;;
  1.4649 +    esac
  1.4650 +  else
  1.4651 +    # PORTME Check for flag to pass linker flags through the system compiler.
  1.4652 +    case $host_os in
  1.4653 +    aix*)
  1.4654 +      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.4655 +      if test "$host_cpu" = ia64; then
  1.4656 +	# AIX 5 now supports IA64 processor
  1.4657 +	_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  1.4658 +      else
  1.4659 +	_LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  1.4660 +      fi
  1.4661 +      ;;
  1.4662 +
  1.4663 +    mingw* | cygwin* | pw32* | os2* | cegcc*)
  1.4664 +      # This hack is so that the source file can tell whether it is being
  1.4665 +      # built for inclusion in a dll (and should export symbols for example).
  1.4666 +      m4_if([$1], [GCJ], [],
  1.4667 +	[_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  1.4668 +      ;;
  1.4669 +
  1.4670 +    hpux9* | hpux10* | hpux11*)
  1.4671 +      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.4672 +      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  1.4673 +      # not for PA HP-UX.
  1.4674 +      case $host_cpu in
  1.4675 +      hppa*64*|ia64*)
  1.4676 +	# +Z the default
  1.4677 +	;;
  1.4678 +      *)
  1.4679 +	_LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  1.4680 +	;;
  1.4681 +      esac
  1.4682 +      # Is there a better lt_prog_compiler_static that works with the bundled CC?
  1.4683 +      _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  1.4684 +      ;;
  1.4685 +
  1.4686 +    irix5* | irix6* | nonstopux*)
  1.4687 +      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.4688 +      # PIC (with -KPIC) is the default.
  1.4689 +      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  1.4690 +      ;;
  1.4691 +
  1.4692 +    linux* | k*bsd*-gnu)
  1.4693 +      case $cc_basename in
  1.4694 +      # old Intel for x86_64 which still supported -KPIC.
  1.4695 +      ecc*)
  1.4696 +	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.4697 +	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  1.4698 +	_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  1.4699 +        ;;
  1.4700 +      # icc used to be incompatible with GCC.
  1.4701 +      # ICC 10 doesn't accept -KPIC any more.
  1.4702 +      icc* | ifort*)
  1.4703 +	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.4704 +	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  1.4705 +	_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  1.4706 +        ;;
  1.4707 +      # Lahey Fortran 8.1.
  1.4708 +      lf95*)
  1.4709 +	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.4710 +	_LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
  1.4711 +	_LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
  1.4712 +	;;
  1.4713 +      pgcc* | pgf77* | pgf90* | pgf95*)
  1.4714 +        # Portland Group compilers (*not* the Pentium gcc compiler,
  1.4715 +	# which looks to be a dead project)
  1.4716 +	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.4717 +	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  1.4718 +	_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  1.4719 +        ;;
  1.4720 +      ccc*)
  1.4721 +        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.4722 +        # All Alpha code is PIC.
  1.4723 +        _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  1.4724 +        ;;
  1.4725 +      xl*)
  1.4726 +	# IBM XL C 8.0/Fortran 10.1 on PPC
  1.4727 +	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.4728 +	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  1.4729 +	_LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  1.4730 +	;;
  1.4731 +      *)
  1.4732 +	case `$CC -V 2>&1 | sed 5q` in
  1.4733 +	*Sun\ C*)
  1.4734 +	  # Sun C 5.9
  1.4735 +	  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  1.4736 +	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  1.4737 +	  _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.4738 +	  ;;
  1.4739 +	*Sun\ F*)
  1.4740 +	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
  1.4741 +	  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  1.4742 +	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  1.4743 +	  _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
  1.4744 +	  ;;
  1.4745 +	esac
  1.4746 +	;;
  1.4747 +      esac
  1.4748 +      ;;
  1.4749 +
  1.4750 +    newsos6)
  1.4751 +      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  1.4752 +      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  1.4753 +      ;;
  1.4754 +
  1.4755 +    *nto* | *qnx*)
  1.4756 +      # QNX uses GNU C++, but need to define -shared option too, otherwise
  1.4757 +      # it will coredump.
  1.4758 +      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  1.4759 +      ;;
  1.4760 +
  1.4761 +    osf3* | osf4* | osf5*)
  1.4762 +      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.4763 +      # All OSF/1 code is PIC.
  1.4764 +      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  1.4765 +      ;;
  1.4766 +
  1.4767 +    rdos*)
  1.4768 +      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  1.4769 +      ;;
  1.4770 +
  1.4771 +    solaris*)
  1.4772 +      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  1.4773 +      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  1.4774 +      case $cc_basename in
  1.4775 +      f77* | f90* | f95*)
  1.4776 +	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
  1.4777 +      *)
  1.4778 +	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
  1.4779 +      esac
  1.4780 +      ;;
  1.4781 +
  1.4782 +    sunos4*)
  1.4783 +      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  1.4784 +      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  1.4785 +      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  1.4786 +      ;;
  1.4787 +
  1.4788 +    sysv4 | sysv4.2uw2* | sysv4.3*)
  1.4789 +      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.4790 +      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  1.4791 +      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  1.4792 +      ;;
  1.4793 +
  1.4794 +    sysv4*MP*)
  1.4795 +      if test -d /usr/nec ;then
  1.4796 +	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
  1.4797 +	_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  1.4798 +      fi
  1.4799 +      ;;
  1.4800 +
  1.4801 +    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  1.4802 +      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.4803 +      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  1.4804 +      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  1.4805 +      ;;
  1.4806 +
  1.4807 +    unicos*)
  1.4808 +      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.4809 +      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  1.4810 +      ;;
  1.4811 +
  1.4812 +    uts4*)
  1.4813 +      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  1.4814 +      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  1.4815 +      ;;
  1.4816 +
  1.4817 +    *)
  1.4818 +      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  1.4819 +      ;;
  1.4820 +    esac
  1.4821 +  fi
  1.4822 +])
  1.4823 +case $host_os in
  1.4824 +  # For platforms which do not support PIC, -DPIC is meaningless:
  1.4825 +  *djgpp*)
  1.4826 +    _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  1.4827 +    ;;
  1.4828 +  *)
  1.4829 +    _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
  1.4830 +    ;;
  1.4831 +esac
  1.4832 +AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
  1.4833 +_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
  1.4834 +	[How to pass a linker flag through the compiler])
  1.4835 +
  1.4836 +#
  1.4837 +# Check to make sure the PIC flag actually works.
  1.4838 +#
  1.4839 +if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
  1.4840 +  _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
  1.4841 +    [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
  1.4842 +    [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
  1.4843 +    [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
  1.4844 +     "" | " "*) ;;
  1.4845 +     *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
  1.4846 +     esac],
  1.4847 +    [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
  1.4848 +     _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
  1.4849 +fi
  1.4850 +_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
  1.4851 +	[Additional compiler flags for building library objects])
  1.4852 +
  1.4853 +#
  1.4854 +# Check to make sure the static flag actually works.
  1.4855 +#
  1.4856 +wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
  1.4857 +_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
  1.4858 +  _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
  1.4859 +  $lt_tmp_static_flag,
  1.4860 +  [],
  1.4861 +  [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
  1.4862 +_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
  1.4863 +	[Compiler flag to prevent dynamic linking])
  1.4864 +])# _LT_COMPILER_PIC
  1.4865 +
  1.4866 +
  1.4867 +# _LT_LINKER_SHLIBS([TAGNAME])
  1.4868 +# ----------------------------
  1.4869 +# See if the linker supports building shared libraries.
  1.4870 +m4_defun([_LT_LINKER_SHLIBS],
  1.4871 +[AC_REQUIRE([LT_PATH_LD])dnl
  1.4872 +AC_REQUIRE([LT_PATH_NM])dnl
  1.4873 +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1.4874 +m4_require([_LT_DECL_EGREP])dnl
  1.4875 +m4_require([_LT_DECL_SED])dnl
  1.4876 +m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  1.4877 +m4_require([_LT_TAG_COMPILER])dnl
  1.4878 +AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  1.4879 +m4_if([$1], [CXX], [
  1.4880 +  _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  1.4881 +  case $host_os in
  1.4882 +  aix[[4-9]]*)
  1.4883 +    # If we're using GNU nm, then we don't want the "-C" option.
  1.4884 +    # -C means demangle to AIX nm, but means don't demangle with GNU nm
  1.4885 +    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  1.4886 +      _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'
  1.4887 +    else
  1.4888 +      _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'
  1.4889 +    fi
  1.4890 +    ;;
  1.4891 +  pw32*)
  1.4892 +    _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
  1.4893 +  ;;
  1.4894 +  cygwin* | mingw* | cegcc*)
  1.4895 +    _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'
  1.4896 +  ;;
  1.4897 +  *)
  1.4898 +    _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  1.4899 +  ;;
  1.4900 +  esac
  1.4901 +  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  1.4902 +], [
  1.4903 +  runpath_var=
  1.4904 +  _LT_TAGVAR(allow_undefined_flag, $1)=
  1.4905 +  _LT_TAGVAR(always_export_symbols, $1)=no
  1.4906 +  _LT_TAGVAR(archive_cmds, $1)=
  1.4907 +  _LT_TAGVAR(archive_expsym_cmds, $1)=
  1.4908 +  _LT_TAGVAR(compiler_needs_object, $1)=no
  1.4909 +  _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  1.4910 +  _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  1.4911 +  _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  1.4912 +  _LT_TAGVAR(hardcode_automatic, $1)=no
  1.4913 +  _LT_TAGVAR(hardcode_direct, $1)=no
  1.4914 +  _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  1.4915 +  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  1.4916 +  _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  1.4917 +  _LT_TAGVAR(hardcode_libdir_separator, $1)=
  1.4918 +  _LT_TAGVAR(hardcode_minus_L, $1)=no
  1.4919 +  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  1.4920 +  _LT_TAGVAR(inherit_rpath, $1)=no
  1.4921 +  _LT_TAGVAR(link_all_deplibs, $1)=unknown
  1.4922 +  _LT_TAGVAR(module_cmds, $1)=
  1.4923 +  _LT_TAGVAR(module_expsym_cmds, $1)=
  1.4924 +  _LT_TAGVAR(old_archive_from_new_cmds, $1)=
  1.4925 +  _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
  1.4926 +  _LT_TAGVAR(thread_safe_flag_spec, $1)=
  1.4927 +  _LT_TAGVAR(whole_archive_flag_spec, $1)=
  1.4928 +  # include_expsyms should be a list of space-separated symbols to be *always*
  1.4929 +  # included in the symbol list
  1.4930 +  _LT_TAGVAR(include_expsyms, $1)=
  1.4931 +  # exclude_expsyms can be an extended regexp of symbols to exclude
  1.4932 +  # it will be wrapped by ` (' and `)$', so one must not match beginning or
  1.4933 +  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  1.4934 +  # as well as any symbol that contains `d'.
  1.4935 +  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  1.4936 +  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  1.4937 +  # platforms (ab)use it in PIC code, but their linkers get confused if
  1.4938 +  # the symbol is explicitly referenced.  Since portable code cannot
  1.4939 +  # rely on this symbol name, it's probably fine to never include it in
  1.4940 +  # preloaded symbol tables.
  1.4941 +  # Exclude shared library initialization/finalization symbols.
  1.4942 +dnl Note also adjust exclude_expsyms for C++ above.
  1.4943 +  extract_expsyms_cmds=
  1.4944 +
  1.4945 +  case $host_os in
  1.4946 +  cygwin* | mingw* | pw32* | cegcc*)
  1.4947 +    # FIXME: the MSVC++ port hasn't been tested in a loooong time
  1.4948 +    # When not using gcc, we currently assume that we are using
  1.4949 +    # Microsoft Visual C++.
  1.4950 +    if test "$GCC" != yes; then
  1.4951 +      with_gnu_ld=no
  1.4952 +    fi
  1.4953 +    ;;
  1.4954 +  interix*)
  1.4955 +    # we just hope/assume this is gcc and not c89 (= MSVC++)
  1.4956 +    with_gnu_ld=yes
  1.4957 +    ;;
  1.4958 +  openbsd*)
  1.4959 +    with_gnu_ld=no
  1.4960 +    ;;
  1.4961 +  esac
  1.4962 +
  1.4963 +  _LT_TAGVAR(ld_shlibs, $1)=yes
  1.4964 +  if test "$with_gnu_ld" = yes; then
  1.4965 +    # If archive_cmds runs LD, not CC, wlarc should be empty
  1.4966 +    wlarc='${wl}'
  1.4967 +
  1.4968 +    # Set some defaults for GNU ld with shared library support. These
  1.4969 +    # are reset later if shared libraries are not supported. Putting them
  1.4970 +    # here allows them to be overridden if necessary.
  1.4971 +    runpath_var=LD_RUN_PATH
  1.4972 +    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  1.4973 +    _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  1.4974 +    # ancient GNU ld didn't support --whole-archive et. al.
  1.4975 +    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  1.4976 +      _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  1.4977 +    else
  1.4978 +      _LT_TAGVAR(whole_archive_flag_spec, $1)=
  1.4979 +    fi
  1.4980 +    supports_anon_versioning=no
  1.4981 +    case `$LD -v 2>&1` in
  1.4982 +      *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
  1.4983 +      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  1.4984 +      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  1.4985 +      *\ 2.11.*) ;; # other 2.11 versions
  1.4986 +      *) supports_anon_versioning=yes ;;
  1.4987 +    esac
  1.4988 +
  1.4989 +    # See if GNU ld supports shared libraries.
  1.4990 +    case $host_os in
  1.4991 +    aix[[3-9]]*)
  1.4992 +      # On AIX/PPC, the GNU linker is very broken
  1.4993 +      if test "$host_cpu" != ia64; then
  1.4994 +	_LT_TAGVAR(ld_shlibs, $1)=no
  1.4995 +	cat <<_LT_EOF 1>&2
  1.4996 +
  1.4997 +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  1.4998 +*** to be unable to reliably create shared libraries on AIX.
  1.4999 +*** Therefore, libtool is disabling shared libraries support.  If you
  1.5000 +*** really care for shared libraries, you may want to modify your PATH
  1.5001 +*** so that a non-GNU linker is found, and then restart.
  1.5002 +
  1.5003 +_LT_EOF
  1.5004 +      fi
  1.5005 +      ;;
  1.5006 +
  1.5007 +    amigaos*)
  1.5008 +      case $host_cpu in
  1.5009 +      powerpc)
  1.5010 +            # see comment about AmigaOS4 .so support
  1.5011 +            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  1.5012 +            _LT_TAGVAR(archive_expsym_cmds, $1)=''
  1.5013 +        ;;
  1.5014 +      m68k)
  1.5015 +            _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)'
  1.5016 +            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  1.5017 +            _LT_TAGVAR(hardcode_minus_L, $1)=yes
  1.5018 +        ;;
  1.5019 +      esac
  1.5020 +      ;;
  1.5021 +
  1.5022 +    beos*)
  1.5023 +      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  1.5024 +	_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  1.5025 +	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  1.5026 +	# support --undefined.  This deserves some investigation.  FIXME
  1.5027 +	_LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  1.5028 +      else
  1.5029 +	_LT_TAGVAR(ld_shlibs, $1)=no
  1.5030 +      fi
  1.5031 +      ;;
  1.5032 +
  1.5033 +    cygwin* | mingw* | pw32* | cegcc*)
  1.5034 +      # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  1.5035 +      # as there is no search path for DLLs.
  1.5036 +      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  1.5037 +      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  1.5038 +      _LT_TAGVAR(always_export_symbols, $1)=no
  1.5039 +      _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  1.5040 +      _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'
  1.5041 +
  1.5042 +      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  1.5043 +        _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'
  1.5044 +	# If the export-symbols file already is a .def file (1st line
  1.5045 +	# is EXPORTS), use it as is; otherwise, prepend...
  1.5046 +	_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  1.5047 +	  cp $export_symbols $output_objdir/$soname.def;
  1.5048 +	else
  1.5049 +	  echo EXPORTS > $output_objdir/$soname.def;
  1.5050 +	  cat $export_symbols >> $output_objdir/$soname.def;
  1.5051 +	fi~
  1.5052 +	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  1.5053 +      else
  1.5054 +	_LT_TAGVAR(ld_shlibs, $1)=no
  1.5055 +      fi
  1.5056 +      ;;
  1.5057 +
  1.5058 +    interix[[3-9]]*)
  1.5059 +      _LT_TAGVAR(hardcode_direct, $1)=no
  1.5060 +      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  1.5061 +      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  1.5062 +      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  1.5063 +      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  1.5064 +      # Instead, shared libraries are loaded at an image base (0x10000000 by
  1.5065 +      # default) and relocated if they conflict, which is a slow very memory
  1.5066 +      # consuming and fragmenting process.  To avoid this, we pick a random,
  1.5067 +      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  1.5068 +      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
  1.5069 +      _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'
  1.5070 +      _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'
  1.5071 +      ;;
  1.5072 +
  1.5073 +    gnu* | linux* | tpf* | k*bsd*-gnu)
  1.5074 +      tmp_diet=no
  1.5075 +      if test "$host_os" = linux-dietlibc; then
  1.5076 +	case $cc_basename in
  1.5077 +	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
  1.5078 +	esac
  1.5079 +      fi
  1.5080 +      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  1.5081 +	 && test "$tmp_diet" = no
  1.5082 +      then
  1.5083 +	tmp_addflag=
  1.5084 +	tmp_sharedflag='-shared'
  1.5085 +	case $cc_basename,$host_cpu in
  1.5086 +        pgcc*)				# Portland Group C compiler
  1.5087 +	  _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'
  1.5088 +	  tmp_addflag=' $pic_flag'
  1.5089 +	  ;;
  1.5090 +	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
  1.5091 +	  _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'
  1.5092 +	  tmp_addflag=' $pic_flag -Mnomain' ;;
  1.5093 +	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
  1.5094 +	  tmp_addflag=' -i_dynamic' ;;
  1.5095 +	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
  1.5096 +	  tmp_addflag=' -i_dynamic -nofor_main' ;;
  1.5097 +	ifc* | ifort*)			# Intel Fortran compiler
  1.5098 +	  tmp_addflag=' -nofor_main' ;;
  1.5099 +	lf95*)				# Lahey Fortran 8.1
  1.5100 +	  _LT_TAGVAR(whole_archive_flag_spec, $1)=
  1.5101 +	  tmp_sharedflag='--shared' ;;
  1.5102 +	xl[[cC]]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
  1.5103 +	  tmp_sharedflag='-qmkshrobj'
  1.5104 +	  tmp_addflag= ;;
  1.5105 +	esac
  1.5106 +	case `$CC -V 2>&1 | sed 5q` in
  1.5107 +	*Sun\ C*)			# Sun C 5.9
  1.5108 +	  _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'
  1.5109 +	  _LT_TAGVAR(compiler_needs_object, $1)=yes
  1.5110 +	  tmp_sharedflag='-G' ;;
  1.5111 +	*Sun\ F*)			# Sun Fortran 8.3
  1.5112 +	  tmp_sharedflag='-G' ;;
  1.5113 +	esac
  1.5114 +	_LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  1.5115 +
  1.5116 +        if test "x$supports_anon_versioning" = xyes; then
  1.5117 +          _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  1.5118 +	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  1.5119 +	    echo "local: *; };" >> $output_objdir/$libname.ver~
  1.5120 +	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  1.5121 +        fi
  1.5122 +
  1.5123 +	case $cc_basename in
  1.5124 +	xlf*)
  1.5125 +	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  1.5126 +	  _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
  1.5127 +	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  1.5128 +	  _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
  1.5129 +	  _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  1.5130 +	  if test "x$supports_anon_versioning" = xyes; then
  1.5131 +	    _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  1.5132 +	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  1.5133 +	      echo "local: *; };" >> $output_objdir/$libname.ver~
  1.5134 +	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  1.5135 +	  fi
  1.5136 +	  ;;
  1.5137 +	esac
  1.5138 +      else
  1.5139 +        _LT_TAGVAR(ld_shlibs, $1)=no
  1.5140 +      fi
  1.5141 +      ;;
  1.5142 +
  1.5143 +    netbsd*)
  1.5144 +      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  1.5145 +	_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  1.5146 +	wlarc=
  1.5147 +      else
  1.5148 +	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  1.5149 +	_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'
  1.5150 +      fi
  1.5151 +      ;;
  1.5152 +
  1.5153 +    solaris*)
  1.5154 +      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  1.5155 +	_LT_TAGVAR(ld_shlibs, $1)=no
  1.5156 +	cat <<_LT_EOF 1>&2
  1.5157 +
  1.5158 +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  1.5159 +*** create shared libraries on Solaris systems.  Therefore, libtool
  1.5160 +*** is disabling shared libraries support.  We urge you to upgrade GNU
  1.5161 +*** binutils to release 2.9.1 or newer.  Another option is to modify
  1.5162 +*** your PATH or compiler configuration so that the native linker is
  1.5163 +*** used, and then restart.
  1.5164 +
  1.5165 +_LT_EOF
  1.5166 +      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  1.5167 +	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  1.5168 +	_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'
  1.5169 +      else
  1.5170 +	_LT_TAGVAR(ld_shlibs, $1)=no
  1.5171 +      fi
  1.5172 +      ;;
  1.5173 +
  1.5174 +    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  1.5175 +      case `$LD -v 2>&1` in
  1.5176 +        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
  1.5177 +	_LT_TAGVAR(ld_shlibs, $1)=no
  1.5178 +	cat <<_LT_EOF 1>&2
  1.5179 +
  1.5180 +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  1.5181 +*** reliably create shared libraries on SCO systems.  Therefore, libtool
  1.5182 +*** is disabling shared libraries support.  We urge you to upgrade GNU
  1.5183 +*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
  1.5184 +*** your PATH or compiler configuration so that the native linker is
  1.5185 +*** used, and then restart.
  1.5186 +
  1.5187 +_LT_EOF
  1.5188 +	;;
  1.5189 +	*)
  1.5190 +	  # For security reasons, it is highly recommended that you always
  1.5191 +	  # use absolute paths for naming shared libraries, and exclude the
  1.5192 +	  # DT_RUNPATH tag from executables and libraries.  But doing so
  1.5193 +	  # requires that you compile everything twice, which is a pain.
  1.5194 +	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  1.5195 +	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  1.5196 +	    _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  1.5197 +	    _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'
  1.5198 +	  else
  1.5199 +	    _LT_TAGVAR(ld_shlibs, $1)=no
  1.5200 +	  fi
  1.5201 +	;;
  1.5202 +      esac
  1.5203 +      ;;
  1.5204 +
  1.5205 +    sunos4*)
  1.5206 +      _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  1.5207 +      wlarc=
  1.5208 +      _LT_TAGVAR(hardcode_direct, $1)=yes
  1.5209 +      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  1.5210 +      ;;
  1.5211 +
  1.5212 +    *)
  1.5213 +      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  1.5214 +	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  1.5215 +	_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'
  1.5216 +      else
  1.5217 +	_LT_TAGVAR(ld_shlibs, $1)=no
  1.5218 +      fi
  1.5219 +      ;;
  1.5220 +    esac
  1.5221 +
  1.5222 +    if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
  1.5223 +      runpath_var=
  1.5224 +      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  1.5225 +      _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  1.5226 +      _LT_TAGVAR(whole_archive_flag_spec, $1)=
  1.5227 +    fi
  1.5228 +  else
  1.5229 +    # PORTME fill in a description of your system's linker (not GNU ld)
  1.5230 +    case $host_os in
  1.5231 +    aix3*)
  1.5232 +      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  1.5233 +      _LT_TAGVAR(always_export_symbols, $1)=yes
  1.5234 +      _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'
  1.5235 +      # Note: this linker hardcodes the directories in LIBPATH if there
  1.5236 +      # are no directories specified by -L.
  1.5237 +      _LT_TAGVAR(hardcode_minus_L, $1)=yes
  1.5238 +      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  1.5239 +	# Neither direct hardcoding nor static linking is supported with a
  1.5240 +	# broken collect2.
  1.5241 +	_LT_TAGVAR(hardcode_direct, $1)=unsupported
  1.5242 +      fi
  1.5243 +      ;;
  1.5244 +
  1.5245 +    aix[[4-9]]*)
  1.5246 +      if test "$host_cpu" = ia64; then
  1.5247 +	# On IA64, the linker does run time linking by default, so we don't
  1.5248 +	# have to do anything special.
  1.5249 +	aix_use_runtimelinking=no
  1.5250 +	exp_sym_flag='-Bexport'
  1.5251 +	no_entry_flag=""
  1.5252 +      else
  1.5253 +	# If we're using GNU nm, then we don't want the "-C" option.
  1.5254 +	# -C means demangle to AIX nm, but means don't demangle with GNU nm
  1.5255 +	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  1.5256 +	  _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'
  1.5257 +	else
  1.5258 +	  _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'
  1.5259 +	fi
  1.5260 +	aix_use_runtimelinking=no
  1.5261 +
  1.5262 +	# Test if we are trying to use run time linking or normal
  1.5263 +	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
  1.5264 +	# need to do runtime linking.
  1.5265 +	case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  1.5266 +	  for ld_flag in $LDFLAGS; do
  1.5267 +	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  1.5268 +	    aix_use_runtimelinking=yes
  1.5269 +	    break
  1.5270 +	  fi
  1.5271 +	  done
  1.5272 +	  ;;
  1.5273 +	esac
  1.5274 +
  1.5275 +	exp_sym_flag='-bexport'
  1.5276 +	no_entry_flag='-bnoentry'
  1.5277 +      fi
  1.5278 +
  1.5279 +      # When large executables or shared objects are built, AIX ld can
  1.5280 +      # have problems creating the table of contents.  If linking a library
  1.5281 +      # or program results in "error TOC overflow" add -mminimal-toc to
  1.5282 +      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
  1.5283 +      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  1.5284 +
  1.5285 +      _LT_TAGVAR(archive_cmds, $1)=''
  1.5286 +      _LT_TAGVAR(hardcode_direct, $1)=yes
  1.5287 +      _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  1.5288 +      _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  1.5289 +      _LT_TAGVAR(link_all_deplibs, $1)=yes
  1.5290 +      _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
  1.5291 +
  1.5292 +      if test "$GCC" = yes; then
  1.5293 +	case $host_os in aix4.[[012]]|aix4.[[012]].*)
  1.5294 +	# We only want to do this on AIX 4.2 and lower, the check
  1.5295 +	# below for broken collect2 doesn't work under 4.3+
  1.5296 +	  collect2name=`${CC} -print-prog-name=collect2`
  1.5297 +	  if test -f "$collect2name" &&
  1.5298 +	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  1.5299 +	  then
  1.5300 +	  # We have reworked collect2
  1.5301 +	  :
  1.5302 +	  else
  1.5303 +	  # We have old collect2
  1.5304 +	  _LT_TAGVAR(hardcode_direct, $1)=unsupported
  1.5305 +	  # It fails to find uninstalled libraries when the uninstalled
  1.5306 +	  # path is not listed in the libpath.  Setting hardcode_minus_L
  1.5307 +	  # to unsupported forces relinking
  1.5308 +	  _LT_TAGVAR(hardcode_minus_L, $1)=yes
  1.5309 +	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  1.5310 +	  _LT_TAGVAR(hardcode_libdir_separator, $1)=
  1.5311 +	  fi
  1.5312 +	  ;;
  1.5313 +	esac
  1.5314 +	shared_flag='-shared'
  1.5315 +	if test "$aix_use_runtimelinking" = yes; then
  1.5316 +	  shared_flag="$shared_flag "'${wl}-G'
  1.5317 +	fi
  1.5318 +      else
  1.5319 +	# not using gcc
  1.5320 +	if test "$host_cpu" = ia64; then
  1.5321 +	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  1.5322 +	# chokes on -Wl,-G. The following line is correct:
  1.5323 +	  shared_flag='-G'
  1.5324 +	else
  1.5325 +	  if test "$aix_use_runtimelinking" = yes; then
  1.5326 +	    shared_flag='${wl}-G'
  1.5327 +	  else
  1.5328 +	    shared_flag='${wl}-bM:SRE'
  1.5329 +	  fi
  1.5330 +	fi
  1.5331 +      fi
  1.5332 +
  1.5333 +      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
  1.5334 +      # It seems that -bexpall does not export symbols beginning with
  1.5335 +      # underscore (_), so it is better to generate a list of symbols to export.
  1.5336 +      _LT_TAGVAR(always_export_symbols, $1)=yes
  1.5337 +      if test "$aix_use_runtimelinking" = yes; then
  1.5338 +	# Warning - without using the other runtime loading flags (-brtl),
  1.5339 +	# -berok will link without error, but may produce a broken library.
  1.5340 +	_LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  1.5341 +        # Determine the default libpath from the value encoded in an
  1.5342 +        # empty executable.
  1.5343 +        _LT_SYS_MODULE_PATH_AIX
  1.5344 +        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  1.5345 +        _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"
  1.5346 +      else
  1.5347 +	if test "$host_cpu" = ia64; then
  1.5348 +	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  1.5349 +	  _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  1.5350 +	  _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"
  1.5351 +	else
  1.5352 +	 # Determine the default libpath from the value encoded in an
  1.5353 +	 # empty executable.
  1.5354 +	 _LT_SYS_MODULE_PATH_AIX
  1.5355 +	 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  1.5356 +	  # Warning - without using the other run time loading flags,
  1.5357 +	  # -berok will link without error, but may produce a broken library.
  1.5358 +	  _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  1.5359 +	  _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  1.5360 +	  # Exported symbols can be pulled into shared objects from archives
  1.5361 +	  _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  1.5362 +	  _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  1.5363 +	  # This is similar to how AIX traditionally builds its shared libraries.
  1.5364 +	  _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'
  1.5365 +	fi
  1.5366 +      fi
  1.5367 +      ;;
  1.5368 +
  1.5369 +    amigaos*)
  1.5370 +      case $host_cpu in
  1.5371 +      powerpc)
  1.5372 +            # see comment about AmigaOS4 .so support
  1.5373 +            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  1.5374 +            _LT_TAGVAR(archive_expsym_cmds, $1)=''
  1.5375 +        ;;
  1.5376 +      m68k)
  1.5377 +            _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)'
  1.5378 +            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  1.5379 +            _LT_TAGVAR(hardcode_minus_L, $1)=yes
  1.5380 +        ;;
  1.5381 +      esac
  1.5382 +      ;;
  1.5383 +
  1.5384 +    bsdi[[45]]*)
  1.5385 +      _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
  1.5386 +      ;;
  1.5387 +
  1.5388 +    cygwin* | mingw* | pw32* | cegcc*)
  1.5389 +      # When not using gcc, we currently assume that we are using
  1.5390 +      # Microsoft Visual C++.
  1.5391 +      # hardcode_libdir_flag_spec is actually meaningless, as there is
  1.5392 +      # no search path for DLLs.
  1.5393 +      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  1.5394 +      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  1.5395 +      # Tell ltmain to make .lib files, not .a files.
  1.5396 +      libext=lib
  1.5397 +      # Tell ltmain to make .dll files, not .so files.
  1.5398 +      shrext_cmds=".dll"
  1.5399 +      # FIXME: Setting linknames here is a bad hack.
  1.5400 +      _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  1.5401 +      # The linker will automatically build a .lib file if we build a DLL.
  1.5402 +      _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  1.5403 +      # FIXME: Should let the user specify the lib program.
  1.5404 +      _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
  1.5405 +      _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
  1.5406 +      _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  1.5407 +      ;;
  1.5408 +
  1.5409 +    darwin* | rhapsody*)
  1.5410 +      _LT_DARWIN_LINKER_FEATURES($1)
  1.5411 +      ;;
  1.5412 +
  1.5413 +    dgux*)
  1.5414 +      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  1.5415 +      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  1.5416 +      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  1.5417 +      ;;
  1.5418 +
  1.5419 +    freebsd1*)
  1.5420 +      _LT_TAGVAR(ld_shlibs, $1)=no
  1.5421 +      ;;
  1.5422 +
  1.5423 +    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  1.5424 +    # support.  Future versions do this automatically, but an explicit c++rt0.o
  1.5425 +    # does not break anything, and helps significantly (at the cost of a little
  1.5426 +    # extra space).
  1.5427 +    freebsd2.2*)
  1.5428 +      _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  1.5429 +      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  1.5430 +      _LT_TAGVAR(hardcode_direct, $1)=yes
  1.5431 +      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  1.5432 +      ;;
  1.5433 +
  1.5434 +    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  1.5435 +    freebsd2*)
  1.5436 +      _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  1.5437 +      _LT_TAGVAR(hardcode_direct, $1)=yes
  1.5438 +      _LT_TAGVAR(hardcode_minus_L, $1)=yes
  1.5439 +      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  1.5440 +      ;;
  1.5441 +
  1.5442 +    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  1.5443 +    freebsd* | dragonfly*)
  1.5444 +      _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  1.5445 +      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  1.5446 +      _LT_TAGVAR(hardcode_direct, $1)=yes
  1.5447 +      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  1.5448 +      ;;
  1.5449 +
  1.5450 +    hpux9*)
  1.5451 +      if test "$GCC" = yes; then
  1.5452 +	_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'
  1.5453 +      else
  1.5454 +	_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'
  1.5455 +      fi
  1.5456 +      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  1.5457 +      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  1.5458 +      _LT_TAGVAR(hardcode_direct, $1)=yes
  1.5459 +
  1.5460 +      # hardcode_minus_L: Not really in the search PATH,
  1.5461 +      # but as the default location of the library.
  1.5462 +      _LT_TAGVAR(hardcode_minus_L, $1)=yes
  1.5463 +      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  1.5464 +      ;;
  1.5465 +
  1.5466 +    hpux10*)
  1.5467 +      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  1.5468 +	_LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  1.5469 +      else
  1.5470 +	_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  1.5471 +      fi
  1.5472 +      if test "$with_gnu_ld" = no; then
  1.5473 +	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  1.5474 +	_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
  1.5475 +	_LT_TAGVAR(hardcode_libdir_separator, $1)=:
  1.5476 +	_LT_TAGVAR(hardcode_direct, $1)=yes
  1.5477 +	_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  1.5478 +	_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  1.5479 +	# hardcode_minus_L: Not really in the search PATH,
  1.5480 +	# but as the default location of the library.
  1.5481 +	_LT_TAGVAR(hardcode_minus_L, $1)=yes
  1.5482 +      fi
  1.5483 +      ;;
  1.5484 +
  1.5485 +    hpux11*)
  1.5486 +      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  1.5487 +	case $host_cpu in
  1.5488 +	hppa*64*)
  1.5489 +	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  1.5490 +	  ;;
  1.5491 +	ia64*)
  1.5492 +	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  1.5493 +	  ;;
  1.5494 +	*)
  1.5495 +	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  1.5496 +	  ;;
  1.5497 +	esac
  1.5498 +      else
  1.5499 +	case $host_cpu in
  1.5500 +	hppa*64*)
  1.5501 +	  _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  1.5502 +	  ;;
  1.5503 +	ia64*)
  1.5504 +	  _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  1.5505 +	  ;;
  1.5506 +	*)
  1.5507 +	  _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  1.5508 +	  ;;
  1.5509 +	esac
  1.5510 +      fi
  1.5511 +      if test "$with_gnu_ld" = no; then
  1.5512 +	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  1.5513 +	_LT_TAGVAR(hardcode_libdir_separator, $1)=:
  1.5514 +
  1.5515 +	case $host_cpu in
  1.5516 +	hppa*64*|ia64*)
  1.5517 +	  _LT_TAGVAR(hardcode_direct, $1)=no
  1.5518 +	  _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  1.5519 +	  ;;
  1.5520 +	*)
  1.5521 +	  _LT_TAGVAR(hardcode_direct, $1)=yes
  1.5522 +	  _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  1.5523 +	  _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  1.5524 +
  1.5525 +	  # hardcode_minus_L: Not really in the search PATH,
  1.5526 +	  # but as the default location of the library.
  1.5527 +	  _LT_TAGVAR(hardcode_minus_L, $1)=yes
  1.5528 +	  ;;
  1.5529 +	esac
  1.5530 +      fi
  1.5531 +      ;;
  1.5532 +
  1.5533 +    irix5* | irix6* | nonstopux*)
  1.5534 +      if test "$GCC" = yes; then
  1.5535 +	_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'
  1.5536 +	# Try to use the -exported_symbol ld option, if it does not
  1.5537 +	# work, assume that -exports_file does not work either and
  1.5538 +	# implicitly export all symbols.
  1.5539 +        save_LDFLAGS="$LDFLAGS"
  1.5540 +        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  1.5541 +        AC_LINK_IFELSE(int foo(void) {},
  1.5542 +          _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'
  1.5543 +        )
  1.5544 +        LDFLAGS="$save_LDFLAGS"
  1.5545 +      else
  1.5546 +	_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'
  1.5547 +	_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'
  1.5548 +      fi
  1.5549 +      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  1.5550 +      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  1.5551 +      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  1.5552 +      _LT_TAGVAR(inherit_rpath, $1)=yes
  1.5553 +      _LT_TAGVAR(link_all_deplibs, $1)=yes
  1.5554 +      ;;
  1.5555 +
  1.5556 +    netbsd*)
  1.5557 +      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  1.5558 +	_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
  1.5559 +      else
  1.5560 +	_LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
  1.5561 +      fi
  1.5562 +      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  1.5563 +      _LT_TAGVAR(hardcode_direct, $1)=yes
  1.5564 +      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  1.5565 +      ;;
  1.5566 +
  1.5567 +    newsos6)
  1.5568 +      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  1.5569 +      _LT_TAGVAR(hardcode_direct, $1)=yes
  1.5570 +      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  1.5571 +      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  1.5572 +      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  1.5573 +      ;;
  1.5574 +
  1.5575 +    *nto* | *qnx*)
  1.5576 +      ;;
  1.5577 +
  1.5578 +    openbsd*)
  1.5579 +      if test -f /usr/libexec/ld.so; then
  1.5580 +	_LT_TAGVAR(hardcode_direct, $1)=yes
  1.5581 +	_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  1.5582 +	_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  1.5583 +	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  1.5584 +	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  1.5585 +	  _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  1.5586 +	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  1.5587 +	  _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  1.5588 +	else
  1.5589 +	  case $host_os in
  1.5590 +	   openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
  1.5591 +	     _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  1.5592 +	     _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  1.5593 +	     ;;
  1.5594 +	   *)
  1.5595 +	     _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  1.5596 +	     _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  1.5597 +	     ;;
  1.5598 +	  esac
  1.5599 +	fi
  1.5600 +      else
  1.5601 +	_LT_TAGVAR(ld_shlibs, $1)=no
  1.5602 +      fi
  1.5603 +      ;;
  1.5604 +
  1.5605 +    os2*)
  1.5606 +      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  1.5607 +      _LT_TAGVAR(hardcode_minus_L, $1)=yes
  1.5608 +      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  1.5609 +      _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'
  1.5610 +      _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  1.5611 +      ;;
  1.5612 +
  1.5613 +    osf3*)
  1.5614 +      if test "$GCC" = yes; then
  1.5615 +	_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  1.5616 +	_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'
  1.5617 +      else
  1.5618 +	_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  1.5619 +	_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'
  1.5620 +      fi
  1.5621 +      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  1.5622 +      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  1.5623 +      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  1.5624 +      ;;
  1.5625 +
  1.5626 +    osf4* | osf5*)	# as osf3* with the addition of -msym flag
  1.5627 +      if test "$GCC" = yes; then
  1.5628 +	_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  1.5629 +	_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'
  1.5630 +	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  1.5631 +      else
  1.5632 +	_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  1.5633 +	_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'
  1.5634 +	_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~
  1.5635 +	$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'
  1.5636 +
  1.5637 +	# Both c and cxx compiler support -rpath directly
  1.5638 +	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  1.5639 +      fi
  1.5640 +      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  1.5641 +      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  1.5642 +      ;;
  1.5643 +
  1.5644 +    solaris*)
  1.5645 +      _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
  1.5646 +      if test "$GCC" = yes; then
  1.5647 +	wlarc='${wl}'
  1.5648 +	_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  1.5649 +	_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  1.5650 +	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  1.5651 +      else
  1.5652 +	case `$CC -V 2>&1` in
  1.5653 +	*"Compilers 5.0"*)
  1.5654 +	  wlarc=''
  1.5655 +	  _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  1.5656 +	  _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  1.5657 +	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  1.5658 +	  ;;
  1.5659 +	*)
  1.5660 +	  wlarc='${wl}'
  1.5661 +	  _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  1.5662 +	  _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  1.5663 +	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  1.5664 +	  ;;
  1.5665 +	esac
  1.5666 +      fi
  1.5667 +      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  1.5668 +      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  1.5669 +      case $host_os in
  1.5670 +      solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  1.5671 +      *)
  1.5672 +	# The compiler driver will combine and reorder linker options,
  1.5673 +	# but understands `-z linker_flag'.  GCC discards it without `$wl',
  1.5674 +	# but is careful enough not to reorder.
  1.5675 +	# Supported since Solaris 2.6 (maybe 2.5.1?)
  1.5676 +	if test "$GCC" = yes; then
  1.5677 +	  _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  1.5678 +	else
  1.5679 +	  _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  1.5680 +	fi
  1.5681 +	;;
  1.5682 +      esac
  1.5683 +      _LT_TAGVAR(link_all_deplibs, $1)=yes
  1.5684 +      ;;
  1.5685 +
  1.5686 +    sunos4*)
  1.5687 +      if test "x$host_vendor" = xsequent; then
  1.5688 +	# Use $CC to link under sequent, because it throws in some extra .o
  1.5689 +	# files that make .init and .fini sections work.
  1.5690 +	_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  1.5691 +      else
  1.5692 +	_LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  1.5693 +      fi
  1.5694 +      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  1.5695 +      _LT_TAGVAR(hardcode_direct, $1)=yes
  1.5696 +      _LT_TAGVAR(hardcode_minus_L, $1)=yes
  1.5697 +      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  1.5698 +      ;;
  1.5699 +
  1.5700 +    sysv4)
  1.5701 +      case $host_vendor in
  1.5702 +	sni)
  1.5703 +	  _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  1.5704 +	  _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
  1.5705 +	;;
  1.5706 +	siemens)
  1.5707 +	  ## LD is ld it makes a PLAMLIB
  1.5708 +	  ## CC just makes a GrossModule.
  1.5709 +	  _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  1.5710 +	  _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
  1.5711 +	  _LT_TAGVAR(hardcode_direct, $1)=no
  1.5712 +        ;;
  1.5713 +	motorola)
  1.5714 +	  _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  1.5715 +	  _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
  1.5716 +	;;
  1.5717 +      esac
  1.5718 +      runpath_var='LD_RUN_PATH'
  1.5719 +      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  1.5720 +      ;;
  1.5721 +
  1.5722 +    sysv4.3*)
  1.5723 +      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  1.5724 +      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  1.5725 +      _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
  1.5726 +      ;;
  1.5727 +
  1.5728 +    sysv4*MP*)
  1.5729 +      if test -d /usr/nec; then
  1.5730 +	_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  1.5731 +	_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  1.5732 +	runpath_var=LD_RUN_PATH
  1.5733 +	hardcode_runpath_var=yes
  1.5734 +	_LT_TAGVAR(ld_shlibs, $1)=yes
  1.5735 +      fi
  1.5736 +      ;;
  1.5737 +
  1.5738 +    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  1.5739 +      _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  1.5740 +      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  1.5741 +      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  1.5742 +      runpath_var='LD_RUN_PATH'
  1.5743 +
  1.5744 +      if test "$GCC" = yes; then
  1.5745 +	_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  1.5746 +	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  1.5747 +      else
  1.5748 +	_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  1.5749 +	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  1.5750 +      fi
  1.5751 +      ;;
  1.5752 +
  1.5753 +    sysv5* | sco3.2v5* | sco5v6*)
  1.5754 +      # Note: We can NOT use -z defs as we might desire, because we do not
  1.5755 +      # link with -lc, and that would cause any symbols used from libc to
  1.5756 +      # always be unresolved, which means just about no library would
  1.5757 +      # ever link correctly.  If we're not using GNU ld we use -z text
  1.5758 +      # though, which does catch some bad symbols but isn't as heavy-handed
  1.5759 +      # as -z defs.
  1.5760 +      _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  1.5761 +      _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  1.5762 +      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  1.5763 +      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  1.5764 +      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
  1.5765 +      _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  1.5766 +      _LT_TAGVAR(link_all_deplibs, $1)=yes
  1.5767 +      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  1.5768 +      runpath_var='LD_RUN_PATH'
  1.5769 +
  1.5770 +      if test "$GCC" = yes; then
  1.5771 +	_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  1.5772 +	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  1.5773 +      else
  1.5774 +	_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  1.5775 +	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  1.5776 +      fi
  1.5777 +      ;;
  1.5778 +
  1.5779 +    uts4*)
  1.5780 +      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  1.5781 +      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  1.5782 +      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  1.5783 +      ;;
  1.5784 +
  1.5785 +    *)
  1.5786 +      _LT_TAGVAR(ld_shlibs, $1)=no
  1.5787 +      ;;
  1.5788 +    esac
  1.5789 +
  1.5790 +    if test x$host_vendor = xsni; then
  1.5791 +      case $host in
  1.5792 +      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  1.5793 +	_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
  1.5794 +	;;
  1.5795 +      esac
  1.5796 +    fi
  1.5797 +  fi
  1.5798 +])
  1.5799 +AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  1.5800 +test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  1.5801 +
  1.5802 +_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
  1.5803 +
  1.5804 +_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
  1.5805 +_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
  1.5806 +_LT_DECL([], [extract_expsyms_cmds], [2],
  1.5807 +    [The commands to extract the exported symbol list from a shared archive])
  1.5808 +
  1.5809 +#
  1.5810 +# Do we need to explicitly link libc?
  1.5811 +#
  1.5812 +case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
  1.5813 +x|xyes)
  1.5814 +  # Assume -lc should be added
  1.5815 +  _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  1.5816 +
  1.5817 +  if test "$enable_shared" = yes && test "$GCC" = yes; then
  1.5818 +    case $_LT_TAGVAR(archive_cmds, $1) in
  1.5819 +    *'~'*)
  1.5820 +      # FIXME: we may have to deal with multi-command sequences.
  1.5821 +      ;;
  1.5822 +    '$CC '*)
  1.5823 +      # Test whether the compiler implicitly links with -lc since on some
  1.5824 +      # systems, -lgcc has to come before -lc. If gcc already passes -lc
  1.5825 +      # to ld, don't add -lc before -lgcc.
  1.5826 +      AC_MSG_CHECKING([whether -lc should be explicitly linked in])
  1.5827 +      $RM conftest*
  1.5828 +      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  1.5829 +
  1.5830 +      if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
  1.5831 +        soname=conftest
  1.5832 +        lib=conftest
  1.5833 +        libobjs=conftest.$ac_objext
  1.5834 +        deplibs=
  1.5835 +        wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
  1.5836 +	pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
  1.5837 +        compiler_flags=-v
  1.5838 +        linker_flags=-v
  1.5839 +        verstring=
  1.5840 +        output_objdir=.
  1.5841 +        libname=conftest
  1.5842 +        lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
  1.5843 +        _LT_TAGVAR(allow_undefined_flag, $1)=
  1.5844 +        if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
  1.5845 +        then
  1.5846 +	  _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  1.5847 +        else
  1.5848 +	  _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  1.5849 +        fi
  1.5850 +        _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
  1.5851 +      else
  1.5852 +        cat conftest.err 1>&5
  1.5853 +      fi
  1.5854 +      $RM conftest*
  1.5855 +      AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
  1.5856 +      ;;
  1.5857 +    esac
  1.5858 +  fi
  1.5859 +  ;;
  1.5860 +esac
  1.5861 +
  1.5862 +_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
  1.5863 +    [Whether or not to add -lc for building shared libraries])
  1.5864 +_LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
  1.5865 +    [enable_shared_with_static_runtimes], [0],
  1.5866 +    [Whether or not to disallow shared libs when runtime libs are static])
  1.5867 +_LT_TAGDECL([], [export_dynamic_flag_spec], [1],
  1.5868 +    [Compiler flag to allow reflexive dlopens])
  1.5869 +_LT_TAGDECL([], [whole_archive_flag_spec], [1],
  1.5870 +    [Compiler flag to generate shared objects directly from archives])
  1.5871 +_LT_TAGDECL([], [compiler_needs_object], [1],
  1.5872 +    [Whether the compiler copes with passing no objects directly])
  1.5873 +_LT_TAGDECL([], [old_archive_from_new_cmds], [2],
  1.5874 +    [Create an old-style archive from a shared archive])
  1.5875 +_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
  1.5876 +    [Create a temporary old-style archive to link instead of a shared archive])
  1.5877 +_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
  1.5878 +_LT_TAGDECL([], [archive_expsym_cmds], [2])
  1.5879 +_LT_TAGDECL([], [module_cmds], [2],
  1.5880 +    [Commands used to build a loadable module if different from building
  1.5881 +    a shared archive.])
  1.5882 +_LT_TAGDECL([], [module_expsym_cmds], [2])
  1.5883 +_LT_TAGDECL([], [with_gnu_ld], [1],
  1.5884 +    [Whether we are building with GNU ld or not])
  1.5885 +_LT_TAGDECL([], [allow_undefined_flag], [1],
  1.5886 +    [Flag that allows shared libraries with undefined symbols to be built])
  1.5887 +_LT_TAGDECL([], [no_undefined_flag], [1],
  1.5888 +    [Flag that enforces no undefined symbols])
  1.5889 +_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
  1.5890 +    [Flag to hardcode $libdir into a binary during linking.
  1.5891 +    This must work even if $libdir does not exist])
  1.5892 +_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
  1.5893 +    [[If ld is used when linking, flag to hardcode $libdir into a binary
  1.5894 +    during linking.  This must work even if $libdir does not exist]])
  1.5895 +_LT_TAGDECL([], [hardcode_libdir_separator], [1],
  1.5896 +    [Whether we need a single "-rpath" flag with a separated argument])
  1.5897 +_LT_TAGDECL([], [hardcode_direct], [0],
  1.5898 +    [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
  1.5899 +    DIR into the resulting binary])
  1.5900 +_LT_TAGDECL([], [hardcode_direct_absolute], [0],
  1.5901 +    [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
  1.5902 +    DIR into the resulting binary and the resulting library dependency is
  1.5903 +    "absolute", i.e impossible to change by setting ${shlibpath_var} if the
  1.5904 +    library is relocated])
  1.5905 +_LT_TAGDECL([], [hardcode_minus_L], [0],
  1.5906 +    [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  1.5907 +    into the resulting binary])
  1.5908 +_LT_TAGDECL([], [hardcode_shlibpath_var], [0],
  1.5909 +    [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  1.5910 +    into the resulting binary])
  1.5911 +_LT_TAGDECL([], [hardcode_automatic], [0],
  1.5912 +    [Set to "yes" if building a shared library automatically hardcodes DIR
  1.5913 +    into the library and all subsequent libraries and executables linked
  1.5914 +    against it])
  1.5915 +_LT_TAGDECL([], [inherit_rpath], [0],
  1.5916 +    [Set to yes if linker adds runtime paths of dependent libraries
  1.5917 +    to runtime path list])
  1.5918 +_LT_TAGDECL([], [link_all_deplibs], [0],
  1.5919 +    [Whether libtool must link a program against all its dependency libraries])
  1.5920 +_LT_TAGDECL([], [fix_srcfile_path], [1],
  1.5921 +    [Fix the shell variable $srcfile for the compiler])
  1.5922 +_LT_TAGDECL([], [always_export_symbols], [0],
  1.5923 +    [Set to "yes" if exported symbols are required])
  1.5924 +_LT_TAGDECL([], [export_symbols_cmds], [2],
  1.5925 +    [The commands to list exported symbols])
  1.5926 +_LT_TAGDECL([], [exclude_expsyms], [1],
  1.5927 +    [Symbols that should not be listed in the preloaded symbols])
  1.5928 +_LT_TAGDECL([], [include_expsyms], [1],
  1.5929 +    [Symbols that must always be exported])
  1.5930 +_LT_TAGDECL([], [prelink_cmds], [2],
  1.5931 +    [Commands necessary for linking programs (against libraries) with templates])
  1.5932 +_LT_TAGDECL([], [file_list_spec], [1],
  1.5933 +    [Specify filename containing input files])
  1.5934 +dnl FIXME: Not yet implemented
  1.5935 +dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
  1.5936 +dnl    [Compiler flag to generate thread safe objects])
  1.5937 +])# _LT_LINKER_SHLIBS
  1.5938 +
  1.5939 +
  1.5940 +# _LT_LANG_C_CONFIG([TAG])
  1.5941 +# ------------------------
  1.5942 +# Ensure that the configuration variables for a C compiler are suitably
  1.5943 +# defined.  These variables are subsequently used by _LT_CONFIG to write
  1.5944 +# the compiler configuration to `libtool'.
  1.5945 +m4_defun([_LT_LANG_C_CONFIG],
  1.5946 +[m4_require([_LT_DECL_EGREP])dnl
  1.5947 +lt_save_CC="$CC"
  1.5948 +AC_LANG_PUSH(C)
  1.5949 +
  1.5950 +# Source file extension for C test sources.
  1.5951 +ac_ext=c
  1.5952 +
  1.5953 +# Object file extension for compiled C test sources.
  1.5954 +objext=o
  1.5955 +_LT_TAGVAR(objext, $1)=$objext
  1.5956 +
  1.5957 +# Code to be used in simple compile tests
  1.5958 +lt_simple_compile_test_code="int some_variable = 0;"
  1.5959 +
  1.5960 +# Code to be used in simple link tests
  1.5961 +lt_simple_link_test_code='int main(){return(0);}'
  1.5962 +
  1.5963 +_LT_TAG_COMPILER
  1.5964 +# Save the default compiler, since it gets overwritten when the other
  1.5965 +# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  1.5966 +compiler_DEFAULT=$CC
  1.5967 +
  1.5968 +# save warnings/boilerplate of simple test code
  1.5969 +_LT_COMPILER_BOILERPLATE
  1.5970 +_LT_LINKER_BOILERPLATE
  1.5971 +
  1.5972 +## CAVEAT EMPTOR:
  1.5973 +## There is no encapsulation within the following macros, do not change
  1.5974 +## the running order or otherwise move them around unless you know exactly
  1.5975 +## what you are doing...
  1.5976 +if test -n "$compiler"; then
  1.5977 +  _LT_COMPILER_NO_RTTI($1)
  1.5978 +  _LT_COMPILER_PIC($1)
  1.5979 +  _LT_COMPILER_C_O($1)
  1.5980 +  _LT_COMPILER_FILE_LOCKS($1)
  1.5981 +  _LT_LINKER_SHLIBS($1)
  1.5982 +  _LT_SYS_DYNAMIC_LINKER($1)
  1.5983 +  _LT_LINKER_HARDCODE_LIBPATH($1)
  1.5984 +  LT_SYS_DLOPEN_SELF
  1.5985 +  _LT_CMD_STRIPLIB
  1.5986 +
  1.5987 +  # Report which library types will actually be built
  1.5988 +  AC_MSG_CHECKING([if libtool supports shared libraries])
  1.5989 +  AC_MSG_RESULT([$can_build_shared])
  1.5990 +
  1.5991 +  AC_MSG_CHECKING([whether to build shared libraries])
  1.5992 +  test "$can_build_shared" = "no" && enable_shared=no
  1.5993 +
  1.5994 +  # On AIX, shared libraries and static libraries use the same namespace, and
  1.5995 +  # are all built from PIC.
  1.5996 +  case $host_os in
  1.5997 +  aix3*)
  1.5998 +    test "$enable_shared" = yes && enable_static=no
  1.5999 +    if test -n "$RANLIB"; then
  1.6000 +      archive_cmds="$archive_cmds~\$RANLIB \$lib"
  1.6001 +      postinstall_cmds='$RANLIB $lib'
  1.6002 +    fi
  1.6003 +    ;;
  1.6004 +
  1.6005 +  aix[[4-9]]*)
  1.6006 +    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  1.6007 +      test "$enable_shared" = yes && enable_static=no
  1.6008 +    fi
  1.6009 +    ;;
  1.6010 +  esac
  1.6011 +  AC_MSG_RESULT([$enable_shared])
  1.6012 +
  1.6013 +  AC_MSG_CHECKING([whether to build static libraries])
  1.6014 +  # Make sure either enable_shared or enable_static is yes.
  1.6015 +  test "$enable_shared" = yes || enable_static=yes
  1.6016 +  AC_MSG_RESULT([$enable_static])
  1.6017 +
  1.6018 +  _LT_CONFIG($1)
  1.6019 +fi
  1.6020 +AC_LANG_POP
  1.6021 +CC="$lt_save_CC"
  1.6022 +])# _LT_LANG_C_CONFIG
  1.6023 +
  1.6024 +
  1.6025 +# _LT_PROG_CXX
  1.6026 +# ------------
  1.6027 +# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
  1.6028 +# compiler, we have our own version here.
  1.6029 +m4_defun([_LT_PROG_CXX],
  1.6030 +[
  1.6031 +pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
  1.6032 +AC_PROG_CXX
  1.6033 +if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  1.6034 +    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  1.6035 +    (test "X$CXX" != "Xg++"))) ; then
  1.6036 +  AC_PROG_CXXCPP
  1.6037 +else
  1.6038 +  _lt_caught_CXX_error=yes
  1.6039 +fi
  1.6040 +popdef([AC_MSG_ERROR])
  1.6041 +])# _LT_PROG_CXX
  1.6042 +
  1.6043 +dnl aclocal-1.4 backwards compatibility:
  1.6044 +dnl AC_DEFUN([_LT_PROG_CXX], [])
  1.6045 +
  1.6046 +
  1.6047 +# _LT_LANG_CXX_CONFIG([TAG])
  1.6048 +# --------------------------
  1.6049 +# Ensure that the configuration variables for a C++ compiler are suitably
  1.6050 +# defined.  These variables are subsequently used by _LT_CONFIG to write
  1.6051 +# the compiler configuration to `libtool'.
  1.6052 +m4_defun([_LT_LANG_CXX_CONFIG],
  1.6053 +[AC_REQUIRE([_LT_PROG_CXX])dnl
  1.6054 +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1.6055 +m4_require([_LT_DECL_EGREP])dnl
  1.6056 +
  1.6057 +AC_LANG_PUSH(C++)
  1.6058 +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  1.6059 +_LT_TAGVAR(allow_undefined_flag, $1)=
  1.6060 +_LT_TAGVAR(always_export_symbols, $1)=no
  1.6061 +_LT_TAGVAR(archive_expsym_cmds, $1)=
  1.6062 +_LT_TAGVAR(compiler_needs_object, $1)=no
  1.6063 +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
  1.6064 +_LT_TAGVAR(hardcode_direct, $1)=no
  1.6065 +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
  1.6066 +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  1.6067 +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  1.6068 +_LT_TAGVAR(hardcode_libdir_separator, $1)=
  1.6069 +_LT_TAGVAR(hardcode_minus_L, $1)=no
  1.6070 +_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  1.6071 +_LT_TAGVAR(hardcode_automatic, $1)=no
  1.6072 +_LT_TAGVAR(inherit_rpath, $1)=no
  1.6073 +_LT_TAGVAR(module_cmds, $1)=
  1.6074 +_LT_TAGVAR(module_expsym_cmds, $1)=
  1.6075 +_LT_TAGVAR(link_all_deplibs, $1)=unknown
  1.6076 +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  1.6077 +_LT_TAGVAR(no_undefined_flag, $1)=
  1.6078 +_LT_TAGVAR(whole_archive_flag_spec, $1)=
  1.6079 +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  1.6080 +
  1.6081 +# Source file extension for C++ test sources.
  1.6082 +ac_ext=cpp
  1.6083 +
  1.6084 +# Object file extension for compiled C++ test sources.
  1.6085 +objext=o
  1.6086 +_LT_TAGVAR(objext, $1)=$objext
  1.6087 +
  1.6088 +# No sense in running all these tests if we already determined that
  1.6089 +# the CXX compiler isn't working.  Some variables (like enable_shared)
  1.6090 +# are currently assumed to apply to all compilers on this platform,
  1.6091 +# and will be corrupted by setting them based on a non-working compiler.
  1.6092 +if test "$_lt_caught_CXX_error" != yes; then
  1.6093 +  # Code to be used in simple compile tests
  1.6094 +  lt_simple_compile_test_code="int some_variable = 0;"
  1.6095 +
  1.6096 +  # Code to be used in simple link tests
  1.6097 +  lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
  1.6098 +
  1.6099 +  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  1.6100 +  _LT_TAG_COMPILER
  1.6101 +
  1.6102 +  # save warnings/boilerplate of simple test code
  1.6103 +  _LT_COMPILER_BOILERPLATE
  1.6104 +  _LT_LINKER_BOILERPLATE
  1.6105 +
  1.6106 +  # Allow CC to be a program name with arguments.
  1.6107 +  lt_save_CC=$CC
  1.6108 +  lt_save_LD=$LD
  1.6109 +  lt_save_GCC=$GCC
  1.6110 +  GCC=$GXX
  1.6111 +  lt_save_with_gnu_ld=$with_gnu_ld
  1.6112 +  lt_save_path_LD=$lt_cv_path_LD
  1.6113 +  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  1.6114 +    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  1.6115 +  else
  1.6116 +    $as_unset lt_cv_prog_gnu_ld
  1.6117 +  fi
  1.6118 +  if test -n "${lt_cv_path_LDCXX+set}"; then
  1.6119 +    lt_cv_path_LD=$lt_cv_path_LDCXX
  1.6120 +  else
  1.6121 +    $as_unset lt_cv_path_LD
  1.6122 +  fi
  1.6123 +  test -z "${LDCXX+set}" || LD=$LDCXX
  1.6124 +  CC=${CXX-"c++"}
  1.6125 +  compiler=$CC
  1.6126 +  _LT_TAGVAR(compiler, $1)=$CC
  1.6127 +  _LT_CC_BASENAME([$compiler])
  1.6128 +
  1.6129 +  if test -n "$compiler"; then
  1.6130 +    # We don't want -fno-exception when compiling C++ code, so set the
  1.6131 +    # no_builtin_flag separately
  1.6132 +    if test "$GXX" = yes; then
  1.6133 +      _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  1.6134 +    else
  1.6135 +      _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  1.6136 +    fi
  1.6137 +
  1.6138 +    if test "$GXX" = yes; then
  1.6139 +      # Set up default GNU C++ configuration
  1.6140 +
  1.6141 +      LT_PATH_LD
  1.6142 +
  1.6143 +      # Check if GNU C++ uses GNU ld as the underlying linker, since the
  1.6144 +      # archiving commands below assume that GNU ld is being used.
  1.6145 +      if test "$with_gnu_ld" = yes; then
  1.6146 +        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  1.6147 +        _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'
  1.6148 +
  1.6149 +        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  1.6150 +        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  1.6151 +
  1.6152 +        # If archive_cmds runs LD, not CC, wlarc should be empty
  1.6153 +        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  1.6154 +        #     investigate it a little bit more. (MM)
  1.6155 +        wlarc='${wl}'
  1.6156 +
  1.6157 +        # ancient GNU ld didn't support --whole-archive et. al.
  1.6158 +        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  1.6159 +	  $GREP 'no-whole-archive' > /dev/null; then
  1.6160 +          _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  1.6161 +        else
  1.6162 +          _LT_TAGVAR(whole_archive_flag_spec, $1)=
  1.6163 +        fi
  1.6164 +      else
  1.6165 +        with_gnu_ld=no
  1.6166 +        wlarc=
  1.6167 +
  1.6168 +        # A generic and very simple default shared library creation
  1.6169 +        # command for GNU C++ for the case where it uses the native
  1.6170 +        # linker, instead of GNU ld.  If possible, this setting should
  1.6171 +        # overridden to take advantage of the native linker features on
  1.6172 +        # the platform it is being used on.
  1.6173 +        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  1.6174 +      fi
  1.6175 +
  1.6176 +      # Commands to make compiler produce verbose output that lists
  1.6177 +      # what "hidden" libraries, object files and flags are used when
  1.6178 +      # linking a shared library.
  1.6179 +      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  1.6180 +
  1.6181 +    else
  1.6182 +      GXX=no
  1.6183 +      with_gnu_ld=no
  1.6184 +      wlarc=
  1.6185 +    fi
  1.6186 +
  1.6187 +    # PORTME: fill in a description of your system's C++ link characteristics
  1.6188 +    AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  1.6189 +    _LT_TAGVAR(ld_shlibs, $1)=yes
  1.6190 +    case $host_os in
  1.6191 +      aix3*)
  1.6192 +        # FIXME: insert proper C++ library support
  1.6193 +        _LT_TAGVAR(ld_shlibs, $1)=no
  1.6194 +        ;;
  1.6195 +      aix[[4-9]]*)
  1.6196 +        if test "$host_cpu" = ia64; then
  1.6197 +          # On IA64, the linker does run time linking by default, so we don't
  1.6198 +          # have to do anything special.
  1.6199 +          aix_use_runtimelinking=no
  1.6200 +          exp_sym_flag='-Bexport'
  1.6201 +          no_entry_flag=""
  1.6202 +        else
  1.6203 +          aix_use_runtimelinking=no
  1.6204 +
  1.6205 +          # Test if we are trying to use run time linking or normal
  1.6206 +          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  1.6207 +          # need to do runtime linking.
  1.6208 +          case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  1.6209 +	    for ld_flag in $LDFLAGS; do
  1.6210 +	      case $ld_flag in
  1.6211 +	      *-brtl*)
  1.6212 +	        aix_use_runtimelinking=yes
  1.6213 +	        break
  1.6214 +	        ;;
  1.6215 +	      esac
  1.6216 +	    done
  1.6217 +	    ;;
  1.6218 +          esac
  1.6219 +
  1.6220 +          exp_sym_flag='-bexport'
  1.6221 +          no_entry_flag='-bnoentry'
  1.6222 +        fi
  1.6223 +
  1.6224 +        # When large executables or shared objects are built, AIX ld can
  1.6225 +        # have problems creating the table of contents.  If linking a library
  1.6226 +        # or program results in "error TOC overflow" add -mminimal-toc to
  1.6227 +        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
  1.6228 +        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  1.6229 +
  1.6230 +        _LT_TAGVAR(archive_cmds, $1)=''
  1.6231 +        _LT_TAGVAR(hardcode_direct, $1)=yes
  1.6232 +        _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  1.6233 +        _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  1.6234 +        _LT_TAGVAR(link_all_deplibs, $1)=yes
  1.6235 +        _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
  1.6236 +
  1.6237 +        if test "$GXX" = yes; then
  1.6238 +          case $host_os in aix4.[[012]]|aix4.[[012]].*)
  1.6239 +          # We only want to do this on AIX 4.2 and lower, the check
  1.6240 +          # below for broken collect2 doesn't work under 4.3+
  1.6241 +	  collect2name=`${CC} -print-prog-name=collect2`
  1.6242 +	  if test -f "$collect2name" &&
  1.6243 +	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  1.6244 +	  then
  1.6245 +	    # We have reworked collect2
  1.6246 +	    :
  1.6247 +	  else
  1.6248 +	    # We have old collect2
  1.6249 +	    _LT_TAGVAR(hardcode_direct, $1)=unsupported
  1.6250 +	    # It fails to find uninstalled libraries when the uninstalled
  1.6251 +	    # path is not listed in the libpath.  Setting hardcode_minus_L
  1.6252 +	    # to unsupported forces relinking
  1.6253 +	    _LT_TAGVAR(hardcode_minus_L, $1)=yes
  1.6254 +	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  1.6255 +	    _LT_TAGVAR(hardcode_libdir_separator, $1)=
  1.6256 +	  fi
  1.6257 +          esac
  1.6258 +          shared_flag='-shared'
  1.6259 +	  if test "$aix_use_runtimelinking" = yes; then
  1.6260 +	    shared_flag="$shared_flag "'${wl}-G'
  1.6261 +	  fi
  1.6262 +        else
  1.6263 +          # not using gcc
  1.6264 +          if test "$host_cpu" = ia64; then
  1.6265 +	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  1.6266 +	  # chokes on -Wl,-G. The following line is correct:
  1.6267 +	  shared_flag='-G'
  1.6268 +          else
  1.6269 +	    if test "$aix_use_runtimelinking" = yes; then
  1.6270 +	      shared_flag='${wl}-G'
  1.6271 +	    else
  1.6272 +	      shared_flag='${wl}-bM:SRE'
  1.6273 +	    fi
  1.6274 +          fi
  1.6275 +        fi
  1.6276 +
  1.6277 +        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
  1.6278 +        # It seems that -bexpall does not export symbols beginning with
  1.6279 +        # underscore (_), so it is better to generate a list of symbols to
  1.6280 +	# export.
  1.6281 +        _LT_TAGVAR(always_export_symbols, $1)=yes
  1.6282 +        if test "$aix_use_runtimelinking" = yes; then
  1.6283 +          # Warning - without using the other runtime loading flags (-brtl),
  1.6284 +          # -berok will link without error, but may produce a broken library.
  1.6285 +          _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  1.6286 +          # Determine the default libpath from the value encoded in an empty
  1.6287 +          # executable.
  1.6288 +          _LT_SYS_MODULE_PATH_AIX
  1.6289 +          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  1.6290 +
  1.6291 +          _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"
  1.6292 +        else
  1.6293 +          if test "$host_cpu" = ia64; then
  1.6294 +	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  1.6295 +	    _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  1.6296 +	    _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"
  1.6297 +          else
  1.6298 +	    # Determine the default libpath from the value encoded in an
  1.6299 +	    # empty executable.
  1.6300 +	    _LT_SYS_MODULE_PATH_AIX
  1.6301 +	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  1.6302 +	    # Warning - without using the other run time loading flags,
  1.6303 +	    # -berok will link without error, but may produce a broken library.
  1.6304 +	    _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  1.6305 +	    _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  1.6306 +	    # Exported symbols can be pulled into shared objects from archives
  1.6307 +	    _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  1.6308 +	    _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  1.6309 +	    # This is similar to how AIX traditionally builds its shared
  1.6310 +	    # libraries.
  1.6311 +	    _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'
  1.6312 +          fi
  1.6313 +        fi
  1.6314 +        ;;
  1.6315 +
  1.6316 +      beos*)
  1.6317 +	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  1.6318 +	  _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  1.6319 +	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  1.6320 +	  # support --undefined.  This deserves some investigation.  FIXME
  1.6321 +	  _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  1.6322 +	else
  1.6323 +	  _LT_TAGVAR(ld_shlibs, $1)=no
  1.6324 +	fi
  1.6325 +	;;
  1.6326 +
  1.6327 +      chorus*)
  1.6328 +        case $cc_basename in
  1.6329 +          *)
  1.6330 +	  # FIXME: insert proper C++ library support
  1.6331 +	  _LT_TAGVAR(ld_shlibs, $1)=no
  1.6332 +	  ;;
  1.6333 +        esac
  1.6334 +        ;;
  1.6335 +
  1.6336 +      cygwin* | mingw* | pw32* | cegcc*)
  1.6337 +        # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  1.6338 +        # as there is no search path for DLLs.
  1.6339 +        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  1.6340 +        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  1.6341 +        _LT_TAGVAR(always_export_symbols, $1)=no
  1.6342 +        _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  1.6343 +
  1.6344 +        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  1.6345 +          _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'
  1.6346 +          # If the export-symbols file already is a .def file (1st line
  1.6347 +          # is EXPORTS), use it as is; otherwise, prepend...
  1.6348 +          _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  1.6349 +	    cp $export_symbols $output_objdir/$soname.def;
  1.6350 +          else
  1.6351 +	    echo EXPORTS > $output_objdir/$soname.def;
  1.6352 +	    cat $export_symbols >> $output_objdir/$soname.def;
  1.6353 +          fi~
  1.6354 +          $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'
  1.6355 +        else
  1.6356 +          _LT_TAGVAR(ld_shlibs, $1)=no
  1.6357 +        fi
  1.6358 +        ;;
  1.6359 +      darwin* | rhapsody*)
  1.6360 +        _LT_DARWIN_LINKER_FEATURES($1)
  1.6361 +	;;
  1.6362 +
  1.6363 +      dgux*)
  1.6364 +        case $cc_basename in
  1.6365 +          ec++*)
  1.6366 +	    # FIXME: insert proper C++ library support
  1.6367 +	    _LT_TAGVAR(ld_shlibs, $1)=no
  1.6368 +	    ;;
  1.6369 +          ghcx*)
  1.6370 +	    # Green Hills C++ Compiler
  1.6371 +	    # FIXME: insert proper C++ library support
  1.6372 +	    _LT_TAGVAR(ld_shlibs, $1)=no
  1.6373 +	    ;;
  1.6374 +          *)
  1.6375 +	    # FIXME: insert proper C++ library support
  1.6376 +	    _LT_TAGVAR(ld_shlibs, $1)=no
  1.6377 +	    ;;
  1.6378 +        esac
  1.6379 +        ;;
  1.6380 +
  1.6381 +      freebsd[[12]]*)
  1.6382 +        # C++ shared libraries reported to be fairly broken before
  1.6383 +	# switch to ELF
  1.6384 +        _LT_TAGVAR(ld_shlibs, $1)=no
  1.6385 +        ;;
  1.6386 +
  1.6387 +      freebsd-elf*)
  1.6388 +        _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  1.6389 +        ;;
  1.6390 +
  1.6391 +      freebsd* | dragonfly*)
  1.6392 +        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  1.6393 +        # conventions
  1.6394 +        _LT_TAGVAR(ld_shlibs, $1)=yes
  1.6395 +        ;;
  1.6396 +
  1.6397 +      gnu*)
  1.6398 +        ;;
  1.6399 +
  1.6400 +      hpux9*)
  1.6401 +        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  1.6402 +        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  1.6403 +        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  1.6404 +        _LT_TAGVAR(hardcode_direct, $1)=yes
  1.6405 +        _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  1.6406 +				             # but as the default
  1.6407 +				             # location of the library.
  1.6408 +
  1.6409 +        case $cc_basename in
  1.6410 +          CC*)
  1.6411 +            # FIXME: insert proper C++ library support
  1.6412 +            _LT_TAGVAR(ld_shlibs, $1)=no
  1.6413 +            ;;
  1.6414 +          aCC*)
  1.6415 +            _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'
  1.6416 +            # Commands to make compiler produce verbose output that lists
  1.6417 +            # what "hidden" libraries, object files and flags are used when
  1.6418 +            # linking a shared library.
  1.6419 +            #
  1.6420 +            # There doesn't appear to be a way to prevent this compiler from
  1.6421 +            # explicitly linking system object files so we need to strip them
  1.6422 +            # from the output so that they don't get included in the library
  1.6423 +            # dependencies.
  1.6424 +            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'
  1.6425 +            ;;
  1.6426 +          *)
  1.6427 +            if test "$GXX" = yes; then
  1.6428 +              _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'
  1.6429 +            else
  1.6430 +              # FIXME: insert proper C++ library support
  1.6431 +              _LT_TAGVAR(ld_shlibs, $1)=no
  1.6432 +            fi
  1.6433 +            ;;
  1.6434 +        esac
  1.6435 +        ;;
  1.6436 +
  1.6437 +      hpux10*|hpux11*)
  1.6438 +        if test $with_gnu_ld = no; then
  1.6439 +	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  1.6440 +	  _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  1.6441 +
  1.6442 +          case $host_cpu in
  1.6443 +            hppa*64*|ia64*)
  1.6444 +              ;;
  1.6445 +            *)
  1.6446 +	      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  1.6447 +              ;;
  1.6448 +          esac
  1.6449 +        fi
  1.6450 +        case $host_cpu in
  1.6451 +          hppa*64*|ia64*)
  1.6452 +            _LT_TAGVAR(hardcode_direct, $1)=no
  1.6453 +            _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  1.6454 +            ;;
  1.6455 +          *)
  1.6456 +            _LT_TAGVAR(hardcode_direct, $1)=yes
  1.6457 +            _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  1.6458 +            _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  1.6459 +					         # but as the default
  1.6460 +					         # location of the library.
  1.6461 +            ;;
  1.6462 +        esac
  1.6463 +
  1.6464 +        case $cc_basename in
  1.6465 +          CC*)
  1.6466 +	    # FIXME: insert proper C++ library support
  1.6467 +	    _LT_TAGVAR(ld_shlibs, $1)=no
  1.6468 +	    ;;
  1.6469 +          aCC*)
  1.6470 +	    case $host_cpu in
  1.6471 +	      hppa*64*)
  1.6472 +	        _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  1.6473 +	        ;;
  1.6474 +	      ia64*)
  1.6475 +	        _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  1.6476 +	        ;;
  1.6477 +	      *)
  1.6478 +	        _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'
  1.6479 +	        ;;
  1.6480 +	    esac
  1.6481 +	    # Commands to make compiler produce verbose output that lists
  1.6482 +	    # what "hidden" libraries, object files and flags are used when
  1.6483 +	    # linking a shared library.
  1.6484 +	    #
  1.6485 +	    # There doesn't appear to be a way to prevent this compiler from
  1.6486 +	    # explicitly linking system object files so we need to strip them
  1.6487 +	    # from the output so that they don't get included in the library
  1.6488 +	    # dependencies.
  1.6489 +	    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'
  1.6490 +	    ;;
  1.6491 +          *)
  1.6492 +	    if test "$GXX" = yes; then
  1.6493 +	      if test $with_gnu_ld = no; then
  1.6494 +	        case $host_cpu in
  1.6495 +	          hppa*64*)
  1.6496 +	            _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  1.6497 +	            ;;
  1.6498 +	          ia64*)
  1.6499 +	            _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'
  1.6500 +	            ;;
  1.6501 +	          *)
  1.6502 +	            _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'
  1.6503 +	            ;;
  1.6504 +	        esac
  1.6505 +	      fi
  1.6506 +	    else
  1.6507 +	      # FIXME: insert proper C++ library support
  1.6508 +	      _LT_TAGVAR(ld_shlibs, $1)=no
  1.6509 +	    fi
  1.6510 +	    ;;
  1.6511 +        esac
  1.6512 +        ;;
  1.6513 +
  1.6514 +      interix[[3-9]]*)
  1.6515 +	_LT_TAGVAR(hardcode_direct, $1)=no
  1.6516 +	_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  1.6517 +	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  1.6518 +	_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  1.6519 +	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  1.6520 +	# Instead, shared libraries are loaded at an image base (0x10000000 by
  1.6521 +	# default) and relocated if they conflict, which is a slow very memory
  1.6522 +	# consuming and fragmenting process.  To avoid this, we pick a random,
  1.6523 +	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  1.6524 +	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
  1.6525 +	_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'
  1.6526 +	_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'
  1.6527 +	;;
  1.6528 +      irix5* | irix6*)
  1.6529 +        case $cc_basename in
  1.6530 +          CC*)
  1.6531 +	    # SGI C++
  1.6532 +	    _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'
  1.6533 +
  1.6534 +	    # Archives containing C++ object files must be created using
  1.6535 +	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
  1.6536 +	    # necessary to make sure instantiated templates are included
  1.6537 +	    # in the archive.
  1.6538 +	    _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
  1.6539 +	    ;;
  1.6540 +          *)
  1.6541 +	    if test "$GXX" = yes; then
  1.6542 +	      if test "$with_gnu_ld" = no; then
  1.6543 +	        _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'
  1.6544 +	      else
  1.6545 +	        _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'
  1.6546 +	      fi
  1.6547 +	    fi
  1.6548 +	    _LT_TAGVAR(link_all_deplibs, $1)=yes
  1.6549 +	    ;;
  1.6550 +        esac
  1.6551 +        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  1.6552 +        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  1.6553 +        _LT_TAGVAR(inherit_rpath, $1)=yes
  1.6554 +        ;;
  1.6555 +
  1.6556 +      linux* | k*bsd*-gnu)
  1.6557 +        case $cc_basename in
  1.6558 +          KCC*)
  1.6559 +	    # Kuck and Associates, Inc. (KAI) C++ Compiler
  1.6560 +
  1.6561 +	    # KCC will only create a shared library if the output file
  1.6562 +	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
  1.6563 +	    # to its proper name (with version) after linking.
  1.6564 +	    _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'
  1.6565 +	    _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'
  1.6566 +	    # Commands to make compiler produce verbose output that lists
  1.6567 +	    # what "hidden" libraries, object files and flags are used when
  1.6568 +	    # linking a shared library.
  1.6569 +	    #
  1.6570 +	    # There doesn't appear to be a way to prevent this compiler from
  1.6571 +	    # explicitly linking system object files so we need to strip them
  1.6572 +	    # from the output so that they don't get included in the library
  1.6573 +	    # dependencies.
  1.6574 +	    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'
  1.6575 +
  1.6576 +	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  1.6577 +	    _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  1.6578 +
  1.6579 +	    # Archives containing C++ object files must be created using
  1.6580 +	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  1.6581 +	    _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  1.6582 +	    ;;
  1.6583 +	  icpc* | ecpc* )
  1.6584 +	    # Intel C++
  1.6585 +	    with_gnu_ld=yes
  1.6586 +	    # version 8.0 and above of icpc choke on multiply defined symbols
  1.6587 +	    # if we add $predep_objects and $postdep_objects, however 7.1 and
  1.6588 +	    # earlier do not add the objects themselves.
  1.6589 +	    case `$CC -V 2>&1` in
  1.6590 +	      *"Version 7."*)
  1.6591 +	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  1.6592 +		_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'
  1.6593 +		;;
  1.6594 +	      *)  # Version 8.0 or newer
  1.6595 +	        tmp_idyn=
  1.6596 +	        case $host_cpu in
  1.6597 +		  ia64*) tmp_idyn=' -i_dynamic';;
  1.6598 +		esac
  1.6599 +	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  1.6600 +		_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'
  1.6601 +		;;
  1.6602 +	    esac
  1.6603 +	    _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  1.6604 +	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  1.6605 +	    _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  1.6606 +	    _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  1.6607 +	    ;;
  1.6608 +          pgCC* | pgcpp*)
  1.6609 +            # Portland Group C++ compiler
  1.6610 +	    case `$CC -V` in
  1.6611 +	    *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
  1.6612 +	      _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
  1.6613 +		rm -rf $tpldir~
  1.6614 +		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  1.6615 +		compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
  1.6616 +	      _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
  1.6617 +		rm -rf $tpldir~
  1.6618 +		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  1.6619 +		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
  1.6620 +		$RANLIB $oldlib'
  1.6621 +	      _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
  1.6622 +		rm -rf $tpldir~
  1.6623 +		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  1.6624 +		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  1.6625 +	      _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
  1.6626 +		rm -rf $tpldir~
  1.6627 +		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  1.6628 +		$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'
  1.6629 +	      ;;
  1.6630 +	    *) # Version 6 will use weak symbols
  1.6631 +	      _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  1.6632 +	      _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'
  1.6633 +	      ;;
  1.6634 +	    esac
  1.6635 +
  1.6636 +	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  1.6637 +	    _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  1.6638 +	    _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'
  1.6639 +            ;;
  1.6640 +	  cxx*)
  1.6641 +	    # Compaq C++
  1.6642 +	    _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  1.6643 +	    _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'
  1.6644 +
  1.6645 +	    runpath_var=LD_RUN_PATH
  1.6646 +	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  1.6647 +	    _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  1.6648 +
  1.6649 +	    # Commands to make compiler produce verbose output that lists
  1.6650 +	    # what "hidden" libraries, object files and flags are used when
  1.6651 +	    # linking a shared library.
  1.6652 +	    #
  1.6653 +	    # There doesn't appear to be a way to prevent this compiler from
  1.6654 +	    # explicitly linking system object files so we need to strip them
  1.6655 +	    # from the output so that they don't get included in the library
  1.6656 +	    # dependencies.
  1.6657 +	    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'
  1.6658 +	    ;;
  1.6659 +	  xl*)
  1.6660 +	    # IBM XL 8.0 on PPC, with GNU ld
  1.6661 +	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  1.6662 +	    _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  1.6663 +	    _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  1.6664 +	    if test "x$supports_anon_versioning" = xyes; then
  1.6665 +	      _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  1.6666 +		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  1.6667 +		echo "local: *; };" >> $output_objdir/$libname.ver~
  1.6668 +		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  1.6669 +	    fi
  1.6670 +	    ;;
  1.6671 +	  *)
  1.6672 +	    case `$CC -V 2>&1 | sed 5q` in
  1.6673 +	    *Sun\ C*)
  1.6674 +	      # Sun C++ 5.9
  1.6675 +	      _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  1.6676 +	      _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  1.6677 +	      _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'
  1.6678 +	      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  1.6679 +	      _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'
  1.6680 +	      _LT_TAGVAR(compiler_needs_object, $1)=yes
  1.6681 +
  1.6682 +	      # Not sure whether something based on
  1.6683 +	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  1.6684 +	      # would be better.
  1.6685 +	      output_verbose_link_cmd='echo'
  1.6686 +
  1.6687 +	      # Archives containing C++ object files must be created using
  1.6688 +	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
  1.6689 +	      # necessary to make sure instantiated templates are included
  1.6690 +	      # in the archive.
  1.6691 +	      _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  1.6692 +	      ;;
  1.6693 +	    esac
  1.6694 +	    ;;
  1.6695 +	esac
  1.6696 +	;;
  1.6697 +
  1.6698 +      lynxos*)
  1.6699 +        # FIXME: insert proper C++ library support
  1.6700 +	_LT_TAGVAR(ld_shlibs, $1)=no
  1.6701 +	;;
  1.6702 +
  1.6703 +      m88k*)
  1.6704 +        # FIXME: insert proper C++ library support
  1.6705 +        _LT_TAGVAR(ld_shlibs, $1)=no
  1.6706 +	;;
  1.6707 +
  1.6708 +      mvs*)
  1.6709 +        case $cc_basename in
  1.6710 +          cxx*)
  1.6711 +	    # FIXME: insert proper C++ library support
  1.6712 +	    _LT_TAGVAR(ld_shlibs, $1)=no
  1.6713 +	    ;;
  1.6714 +	  *)
  1.6715 +	    # FIXME: insert proper C++ library support
  1.6716 +	    _LT_TAGVAR(ld_shlibs, $1)=no
  1.6717 +	    ;;
  1.6718 +	esac
  1.6719 +	;;
  1.6720 +
  1.6721 +      netbsd*)
  1.6722 +        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  1.6723 +	  _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  1.6724 +	  wlarc=
  1.6725 +	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  1.6726 +	  _LT_TAGVAR(hardcode_direct, $1)=yes
  1.6727 +	  _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  1.6728 +	fi
  1.6729 +	# Workaround some broken pre-1.5 toolchains
  1.6730 +	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  1.6731 +	;;
  1.6732 +
  1.6733 +      *nto* | *qnx*)
  1.6734 +        _LT_TAGVAR(ld_shlibs, $1)=yes
  1.6735 +	;;
  1.6736 +
  1.6737 +      openbsd2*)
  1.6738 +        # C++ shared libraries are fairly broken
  1.6739 +	_LT_TAGVAR(ld_shlibs, $1)=no
  1.6740 +	;;
  1.6741 +
  1.6742 +      openbsd*)
  1.6743 +	if test -f /usr/libexec/ld.so; then
  1.6744 +	  _LT_TAGVAR(hardcode_direct, $1)=yes
  1.6745 +	  _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  1.6746 +	  _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  1.6747 +	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  1.6748 +	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  1.6749 +	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  1.6750 +	    _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'
  1.6751 +	    _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  1.6752 +	    _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  1.6753 +	  fi
  1.6754 +	  output_verbose_link_cmd=echo
  1.6755 +	else
  1.6756 +	  _LT_TAGVAR(ld_shlibs, $1)=no
  1.6757 +	fi
  1.6758 +	;;
  1.6759 +
  1.6760 +      osf3* | osf4* | osf5*)
  1.6761 +        case $cc_basename in
  1.6762 +          KCC*)
  1.6763 +	    # Kuck and Associates, Inc. (KAI) C++ Compiler
  1.6764 +
  1.6765 +	    # KCC will only create a shared library if the output file
  1.6766 +	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
  1.6767 +	    # to its proper name (with version) after linking.
  1.6768 +	    _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'
  1.6769 +
  1.6770 +	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  1.6771 +	    _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  1.6772 +
  1.6773 +	    # Archives containing C++ object files must be created using
  1.6774 +	    # the KAI C++ compiler.
  1.6775 +	    case $host in
  1.6776 +	      osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
  1.6777 +	      *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
  1.6778 +	    esac
  1.6779 +	    ;;
  1.6780 +          RCC*)
  1.6781 +	    # Rational C++ 2.4.1
  1.6782 +	    # FIXME: insert proper C++ library support
  1.6783 +	    _LT_TAGVAR(ld_shlibs, $1)=no
  1.6784 +	    ;;
  1.6785 +          cxx*)
  1.6786 +	    case $host in
  1.6787 +	      osf3*)
  1.6788 +	        _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  1.6789 +	        _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'
  1.6790 +	        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  1.6791 +		;;
  1.6792 +	      *)
  1.6793 +	        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  1.6794 +	        _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'
  1.6795 +	        _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  1.6796 +	          echo "-hidden">> $lib.exp~
  1.6797 +	          $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~
  1.6798 +	          $RM $lib.exp'
  1.6799 +	        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  1.6800 +		;;
  1.6801 +	    esac
  1.6802 +
  1.6803 +	    _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  1.6804 +
  1.6805 +	    # Commands to make compiler produce verbose output that lists
  1.6806 +	    # what "hidden" libraries, object files and flags are used when
  1.6807 +	    # linking a shared library.
  1.6808 +	    #
  1.6809 +	    # There doesn't appear to be a way to prevent this compiler from
  1.6810 +	    # explicitly linking system object files so we need to strip them
  1.6811 +	    # from the output so that they don't get included in the library
  1.6812 +	    # dependencies.
  1.6813 +	    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'
  1.6814 +	    ;;
  1.6815 +	  *)
  1.6816 +	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  1.6817 +	      _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  1.6818 +	      case $host in
  1.6819 +	        osf3*)
  1.6820 +	          _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'
  1.6821 +		  ;;
  1.6822 +	        *)
  1.6823 +	          _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'
  1.6824 +		  ;;
  1.6825 +	      esac
  1.6826 +
  1.6827 +	      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  1.6828 +	      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  1.6829 +
  1.6830 +	      # Commands to make compiler produce verbose output that lists
  1.6831 +	      # what "hidden" libraries, object files and flags are used when
  1.6832 +	      # linking a shared library.
  1.6833 +	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  1.6834 +
  1.6835 +	    else
  1.6836 +	      # FIXME: insert proper C++ library support
  1.6837 +	      _LT_TAGVAR(ld_shlibs, $1)=no
  1.6838 +	    fi
  1.6839 +	    ;;
  1.6840 +        esac
  1.6841 +        ;;
  1.6842 +
  1.6843 +      psos*)
  1.6844 +        # FIXME: insert proper C++ library support
  1.6845 +        _LT_TAGVAR(ld_shlibs, $1)=no
  1.6846 +        ;;
  1.6847 +
  1.6848 +      sunos4*)
  1.6849 +        case $cc_basename in
  1.6850 +          CC*)
  1.6851 +	    # Sun C++ 4.x
  1.6852 +	    # FIXME: insert proper C++ library support
  1.6853 +	    _LT_TAGVAR(ld_shlibs, $1)=no
  1.6854 +	    ;;
  1.6855 +          lcc*)
  1.6856 +	    # Lucid
  1.6857 +	    # FIXME: insert proper C++ library support
  1.6858 +	    _LT_TAGVAR(ld_shlibs, $1)=no
  1.6859 +	    ;;
  1.6860 +          *)
  1.6861 +	    # FIXME: insert proper C++ library support
  1.6862 +	    _LT_TAGVAR(ld_shlibs, $1)=no
  1.6863 +	    ;;
  1.6864 +        esac
  1.6865 +        ;;
  1.6866 +
  1.6867 +      solaris*)
  1.6868 +        case $cc_basename in
  1.6869 +          CC*)
  1.6870 +	    # Sun C++ 4.2, 5.x and Centerline C++
  1.6871 +            _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
  1.6872 +	    _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  1.6873 +	    _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  1.6874 +	    _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  1.6875 +	      $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'
  1.6876 +
  1.6877 +	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  1.6878 +	    _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  1.6879 +	    case $host_os in
  1.6880 +	      solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  1.6881 +	      *)
  1.6882 +		# The compiler driver will combine and reorder linker options,
  1.6883 +		# but understands `-z linker_flag'.
  1.6884 +	        # Supported since Solaris 2.6 (maybe 2.5.1?)
  1.6885 +		_LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  1.6886 +	        ;;
  1.6887 +	    esac
  1.6888 +	    _LT_TAGVAR(link_all_deplibs, $1)=yes
  1.6889 +
  1.6890 +	    output_verbose_link_cmd='echo'
  1.6891 +
  1.6892 +	    # Archives containing C++ object files must be created using
  1.6893 +	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
  1.6894 +	    # necessary to make sure instantiated templates are included
  1.6895 +	    # in the archive.
  1.6896 +	    _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  1.6897 +	    ;;
  1.6898 +          gcx*)
  1.6899 +	    # Green Hills C++ Compiler
  1.6900 +	    _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  1.6901 +
  1.6902 +	    # The C++ compiler must be used to create the archive.
  1.6903 +	    _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  1.6904 +	    ;;
  1.6905 +          *)
  1.6906 +	    # GNU C++ compiler with Solaris linker
  1.6907 +	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  1.6908 +	      _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
  1.6909 +	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  1.6910 +	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  1.6911 +	        _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  1.6912 +		  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  1.6913 +
  1.6914 +	        # Commands to make compiler produce verbose output that lists
  1.6915 +	        # what "hidden" libraries, object files and flags are used when
  1.6916 +	        # linking a shared library.
  1.6917 +	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  1.6918 +	      else
  1.6919 +	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
  1.6920 +	        # platform.
  1.6921 +	        _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  1.6922 +	        _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  1.6923 +		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  1.6924 +
  1.6925 +	        # Commands to make compiler produce verbose output that lists
  1.6926 +	        # what "hidden" libraries, object files and flags are used when
  1.6927 +	        # linking a shared library.
  1.6928 +	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  1.6929 +	      fi
  1.6930 +
  1.6931 +	      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
  1.6932 +	      case $host_os in
  1.6933 +		solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  1.6934 +		*)
  1.6935 +		  _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  1.6936 +		  ;;
  1.6937 +	      esac
  1.6938 +	    fi
  1.6939 +	    ;;
  1.6940 +        esac
  1.6941 +        ;;
  1.6942 +
  1.6943 +    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  1.6944 +      _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  1.6945 +      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  1.6946 +      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  1.6947 +      runpath_var='LD_RUN_PATH'
  1.6948 +
  1.6949 +      case $cc_basename in
  1.6950 +        CC*)
  1.6951 +	  _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  1.6952 +	  _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  1.6953 +	  ;;
  1.6954 +	*)
  1.6955 +	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  1.6956 +	  _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  1.6957 +	  ;;
  1.6958 +      esac
  1.6959 +      ;;
  1.6960 +
  1.6961 +      sysv5* | sco3.2v5* | sco5v6*)
  1.6962 +	# Note: We can NOT use -z defs as we might desire, because we do not
  1.6963 +	# link with -lc, and that would cause any symbols used from libc to
  1.6964 +	# always be unresolved, which means just about no library would
  1.6965 +	# ever link correctly.  If we're not using GNU ld we use -z text
  1.6966 +	# though, which does catch some bad symbols but isn't as heavy-handed
  1.6967 +	# as -z defs.
  1.6968 +	_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  1.6969 +	_LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  1.6970 +	_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  1.6971 +	_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  1.6972 +	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
  1.6973 +	_LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  1.6974 +	_LT_TAGVAR(link_all_deplibs, $1)=yes
  1.6975 +	_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  1.6976 +	runpath_var='LD_RUN_PATH'
  1.6977 +
  1.6978 +	case $cc_basename in
  1.6979 +          CC*)
  1.6980 +	    _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  1.6981 +	    _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  1.6982 +	    ;;
  1.6983 +	  *)
  1.6984 +	    _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  1.6985 +	    _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  1.6986 +	    ;;
  1.6987 +	esac
  1.6988 +      ;;
  1.6989 +
  1.6990 +      tandem*)
  1.6991 +        case $cc_basename in
  1.6992 +          NCC*)
  1.6993 +	    # NonStop-UX NCC 3.20
  1.6994 +	    # FIXME: insert proper C++ library support
  1.6995 +	    _LT_TAGVAR(ld_shlibs, $1)=no
  1.6996 +	    ;;
  1.6997 +          *)
  1.6998 +	    # FIXME: insert proper C++ library support
  1.6999 +	    _LT_TAGVAR(ld_shlibs, $1)=no
  1.7000 +	    ;;
  1.7001 +        esac
  1.7002 +        ;;
  1.7003 +
  1.7004 +      vxworks*)
  1.7005 +        # FIXME: insert proper C++ library support
  1.7006 +        _LT_TAGVAR(ld_shlibs, $1)=no
  1.7007 +        ;;
  1.7008 +
  1.7009 +      *)
  1.7010 +        # FIXME: insert proper C++ library support
  1.7011 +        _LT_TAGVAR(ld_shlibs, $1)=no
  1.7012 +        ;;
  1.7013 +    esac
  1.7014 +
  1.7015 +    AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  1.7016 +    test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  1.7017 +
  1.7018 +    _LT_TAGVAR(GCC, $1)="$GXX"
  1.7019 +    _LT_TAGVAR(LD, $1)="$LD"
  1.7020 +
  1.7021 +    ## CAVEAT EMPTOR:
  1.7022 +    ## There is no encapsulation within the following macros, do not change
  1.7023 +    ## the running order or otherwise move them around unless you know exactly
  1.7024 +    ## what you are doing...
  1.7025 +    _LT_SYS_HIDDEN_LIBDEPS($1)
  1.7026 +    _LT_COMPILER_PIC($1)
  1.7027 +    _LT_COMPILER_C_O($1)
  1.7028 +    _LT_COMPILER_FILE_LOCKS($1)
  1.7029 +    _LT_LINKER_SHLIBS($1)
  1.7030 +    _LT_SYS_DYNAMIC_LINKER($1)
  1.7031 +    _LT_LINKER_HARDCODE_LIBPATH($1)
  1.7032 +
  1.7033 +    _LT_CONFIG($1)
  1.7034 +  fi # test -n "$compiler"
  1.7035 +
  1.7036 +  CC=$lt_save_CC
  1.7037 +  LDCXX=$LD
  1.7038 +  LD=$lt_save_LD
  1.7039 +  GCC=$lt_save_GCC
  1.7040 +  with_gnu_ld=$lt_save_with_gnu_ld
  1.7041 +  lt_cv_path_LDCXX=$lt_cv_path_LD
  1.7042 +  lt_cv_path_LD=$lt_save_path_LD
  1.7043 +  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  1.7044 +  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  1.7045 +fi # test "$_lt_caught_CXX_error" != yes
  1.7046 +
  1.7047 +AC_LANG_POP
  1.7048 +])# _LT_LANG_CXX_CONFIG
  1.7049 +
  1.7050 +
  1.7051 +# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
  1.7052 +# ---------------------------------
  1.7053 +# Figure out "hidden" library dependencies from verbose
  1.7054 +# compiler output when linking a shared library.
  1.7055 +# Parse the compiler output and extract the necessary
  1.7056 +# objects, libraries and library flags.
  1.7057 +m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
  1.7058 +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1.7059 +# Dependencies to place before and after the object being linked:
  1.7060 +_LT_TAGVAR(predep_objects, $1)=
  1.7061 +_LT_TAGVAR(postdep_objects, $1)=
  1.7062 +_LT_TAGVAR(predeps, $1)=
  1.7063 +_LT_TAGVAR(postdeps, $1)=
  1.7064 +_LT_TAGVAR(compiler_lib_search_path, $1)=
  1.7065 +
  1.7066 +dnl we can't use the lt_simple_compile_test_code here,
  1.7067 +dnl because it contains code intended for an executable,
  1.7068 +dnl not a library.  It's possible we should let each
  1.7069 +dnl tag define a new lt_????_link_test_code variable,
  1.7070 +dnl but it's only used here...
  1.7071 +m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
  1.7072 +int a;
  1.7073 +void foo (void) { a = 0; }
  1.7074 +_LT_EOF
  1.7075 +], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
  1.7076 +class Foo
  1.7077 +{
  1.7078 +public:
  1.7079 +  Foo (void) { a = 0; }
  1.7080 +private:
  1.7081 +  int a;
  1.7082 +};
  1.7083 +_LT_EOF
  1.7084 +], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
  1.7085 +      subroutine foo
  1.7086 +      implicit none
  1.7087 +      integer*4 a
  1.7088 +      a=0
  1.7089 +      return
  1.7090 +      end
  1.7091 +_LT_EOF
  1.7092 +], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
  1.7093 +      subroutine foo
  1.7094 +      implicit none
  1.7095 +      integer a
  1.7096 +      a=0
  1.7097 +      return
  1.7098 +      end
  1.7099 +_LT_EOF
  1.7100 +], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
  1.7101 +public class foo {
  1.7102 +  private int a;
  1.7103 +  public void bar (void) {
  1.7104 +    a = 0;
  1.7105 +  }
  1.7106 +};
  1.7107 +_LT_EOF
  1.7108 +])
  1.7109 +dnl Parse the compiler output and extract the necessary
  1.7110 +dnl objects, libraries and library flags.
  1.7111 +if AC_TRY_EVAL(ac_compile); then
  1.7112 +  # Parse the compiler output and extract the necessary
  1.7113 +  # objects, libraries and library flags.
  1.7114 +
  1.7115 +  # Sentinel used to keep track of whether or not we are before
  1.7116 +  # the conftest object file.
  1.7117 +  pre_test_object_deps_done=no
  1.7118 +
  1.7119 +  for p in `eval "$output_verbose_link_cmd"`; do
  1.7120 +    case $p in
  1.7121 +
  1.7122 +    -L* | -R* | -l*)
  1.7123 +       # Some compilers place space between "-{L,R}" and the path.
  1.7124 +       # Remove the space.
  1.7125 +       if test $p = "-L" ||
  1.7126 +          test $p = "-R"; then
  1.7127 +	 prev=$p
  1.7128 +	 continue
  1.7129 +       else
  1.7130 +	 prev=
  1.7131 +       fi
  1.7132 +
  1.7133 +       if test "$pre_test_object_deps_done" = no; then
  1.7134 +	 case $p in
  1.7135 +	 -L* | -R*)
  1.7136 +	   # Internal compiler library paths should come after those
  1.7137 +	   # provided the user.  The postdeps already come after the
  1.7138 +	   # user supplied libs so there is no need to process them.
  1.7139 +	   if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
  1.7140 +	     _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
  1.7141 +	   else
  1.7142 +	     _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
  1.7143 +	   fi
  1.7144 +	   ;;
  1.7145 +	 # The "-l" case would never come before the object being
  1.7146 +	 # linked, so don't bother handling this case.
  1.7147 +	 esac
  1.7148 +       else
  1.7149 +	 if test -z "$_LT_TAGVAR(postdeps, $1)"; then
  1.7150 +	   _LT_TAGVAR(postdeps, $1)="${prev}${p}"
  1.7151 +	 else
  1.7152 +	   _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
  1.7153 +	 fi
  1.7154 +       fi
  1.7155 +       ;;
  1.7156 +
  1.7157 +    *.$objext)
  1.7158 +       # This assumes that the test object file only shows up
  1.7159 +       # once in the compiler output.
  1.7160 +       if test "$p" = "conftest.$objext"; then
  1.7161 +	 pre_test_object_deps_done=yes
  1.7162 +	 continue
  1.7163 +       fi
  1.7164 +
  1.7165 +       if test "$pre_test_object_deps_done" = no; then
  1.7166 +	 if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
  1.7167 +	   _LT_TAGVAR(predep_objects, $1)="$p"
  1.7168 +	 else
  1.7169 +	   _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
  1.7170 +	 fi
  1.7171 +       else
  1.7172 +	 if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
  1.7173 +	   _LT_TAGVAR(postdep_objects, $1)="$p"
  1.7174 +	 else
  1.7175 +	   _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
  1.7176 +	 fi
  1.7177 +       fi
  1.7178 +       ;;
  1.7179 +
  1.7180 +    *) ;; # Ignore the rest.
  1.7181 +
  1.7182 +    esac
  1.7183 +  done
  1.7184 +
  1.7185 +  # Clean up.
  1.7186 +  rm -f a.out a.exe
  1.7187 +else
  1.7188 +  echo "libtool.m4: error: problem compiling $1 test program"
  1.7189 +fi
  1.7190 +
  1.7191 +$RM -f confest.$objext
  1.7192 +
  1.7193 +# PORTME: override above test on systems where it is broken
  1.7194 +m4_if([$1], [CXX],
  1.7195 +[case $host_os in
  1.7196 +interix[[3-9]]*)
  1.7197 +  # Interix 3.5 installs completely hosed .la files for C++, so rather than
  1.7198 +  # hack all around it, let's just trust "g++" to DTRT.
  1.7199 +  _LT_TAGVAR(predep_objects,$1)=
  1.7200 +  _LT_TAGVAR(postdep_objects,$1)=
  1.7201 +  _LT_TAGVAR(postdeps,$1)=
  1.7202 +  ;;
  1.7203 +
  1.7204 +linux*)
  1.7205 +  case `$CC -V 2>&1 | sed 5q` in
  1.7206 +  *Sun\ C*)
  1.7207 +    # Sun C++ 5.9
  1.7208 +
  1.7209 +    # The more standards-conforming stlport4 library is
  1.7210 +    # incompatible with the Cstd library. Avoid specifying
  1.7211 +    # it if it's in CXXFLAGS. Ignore libCrun as
  1.7212 +    # -library=stlport4 depends on it.
  1.7213 +    case " $CXX $CXXFLAGS " in
  1.7214 +    *" -library=stlport4 "*)
  1.7215 +      solaris_use_stlport4=yes
  1.7216 +      ;;
  1.7217 +    esac
  1.7218 +
  1.7219 +    if test "$solaris_use_stlport4" != yes; then
  1.7220 +      _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  1.7221 +    fi
  1.7222 +    ;;
  1.7223 +  esac
  1.7224 +  ;;
  1.7225 +
  1.7226 +solaris*)
  1.7227 +  case $cc_basename in
  1.7228 +  CC*)
  1.7229 +    # The more standards-conforming stlport4 library is
  1.7230 +    # incompatible with the Cstd library. Avoid specifying
  1.7231 +    # it if it's in CXXFLAGS. Ignore libCrun as
  1.7232 +    # -library=stlport4 depends on it.
  1.7233 +    case " $CXX $CXXFLAGS " in
  1.7234 +    *" -library=stlport4 "*)
  1.7235 +      solaris_use_stlport4=yes
  1.7236 +      ;;
  1.7237 +    esac
  1.7238 +
  1.7239 +    # Adding this requires a known-good setup of shared libraries for
  1.7240 +    # Sun compiler versions before 5.6, else PIC objects from an old
  1.7241 +    # archive will be linked into the output, leading to subtle bugs.
  1.7242 +    if test "$solaris_use_stlport4" != yes; then
  1.7243 +      _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  1.7244 +    fi
  1.7245 +    ;;
  1.7246 +  esac
  1.7247 +  ;;
  1.7248 +esac
  1.7249 +])
  1.7250 +
  1.7251 +case " $_LT_TAGVAR(postdeps, $1) " in
  1.7252 +*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
  1.7253 +esac
  1.7254 + _LT_TAGVAR(compiler_lib_search_dirs, $1)=
  1.7255 +if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
  1.7256 + _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  1.7257 +fi
  1.7258 +_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
  1.7259 +    [The directories searched by this compiler when creating a shared library])
  1.7260 +_LT_TAGDECL([], [predep_objects], [1],
  1.7261 +    [Dependencies to place before and after the objects being linked to
  1.7262 +    create a shared library])
  1.7263 +_LT_TAGDECL([], [postdep_objects], [1])
  1.7264 +_LT_TAGDECL([], [predeps], [1])
  1.7265 +_LT_TAGDECL([], [postdeps], [1])
  1.7266 +_LT_TAGDECL([], [compiler_lib_search_path], [1],
  1.7267 +    [The library search path used internally by the compiler when linking
  1.7268 +    a shared library])
  1.7269 +])# _LT_SYS_HIDDEN_LIBDEPS
  1.7270 +
  1.7271 +
  1.7272 +# _LT_PROG_F77
  1.7273 +# ------------
  1.7274 +# Since AC_PROG_F77 is broken, in that it returns the empty string
  1.7275 +# if there is no fortran compiler, we have our own version here.
  1.7276 +m4_defun([_LT_PROG_F77],
  1.7277 +[
  1.7278 +pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
  1.7279 +AC_PROG_F77
  1.7280 +if test -z "$F77" || test "X$F77" = "Xno"; then
  1.7281 +  _lt_disable_F77=yes
  1.7282 +fi
  1.7283 +popdef([AC_MSG_ERROR])
  1.7284 +])# _LT_PROG_F77
  1.7285 +
  1.7286 +dnl aclocal-1.4 backwards compatibility:
  1.7287 +dnl AC_DEFUN([_LT_PROG_F77], [])
  1.7288 +
  1.7289 +
  1.7290 +# _LT_LANG_F77_CONFIG([TAG])
  1.7291 +# --------------------------
  1.7292 +# Ensure that the configuration variables for a Fortran 77 compiler are
  1.7293 +# suitably defined.  These variables are subsequently used by _LT_CONFIG
  1.7294 +# to write the compiler configuration to `libtool'.
  1.7295 +m4_defun([_LT_LANG_F77_CONFIG],
  1.7296 +[AC_REQUIRE([_LT_PROG_F77])dnl
  1.7297 +AC_LANG_PUSH(Fortran 77)
  1.7298 +
  1.7299 +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  1.7300 +_LT_TAGVAR(allow_undefined_flag, $1)=
  1.7301 +_LT_TAGVAR(always_export_symbols, $1)=no
  1.7302 +_LT_TAGVAR(archive_expsym_cmds, $1)=
  1.7303 +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
  1.7304 +_LT_TAGVAR(hardcode_direct, $1)=no
  1.7305 +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
  1.7306 +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  1.7307 +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  1.7308 +_LT_TAGVAR(hardcode_libdir_separator, $1)=
  1.7309 +_LT_TAGVAR(hardcode_minus_L, $1)=no
  1.7310 +_LT_TAGVAR(hardcode_automatic, $1)=no
  1.7311 +_LT_TAGVAR(inherit_rpath, $1)=no
  1.7312 +_LT_TAGVAR(module_cmds, $1)=
  1.7313 +_LT_TAGVAR(module_expsym_cmds, $1)=
  1.7314 +_LT_TAGVAR(link_all_deplibs, $1)=unknown
  1.7315 +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  1.7316 +_LT_TAGVAR(no_undefined_flag, $1)=
  1.7317 +_LT_TAGVAR(whole_archive_flag_spec, $1)=
  1.7318 +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  1.7319 +
  1.7320 +# Source file extension for f77 test sources.
  1.7321 +ac_ext=f
  1.7322 +
  1.7323 +# Object file extension for compiled f77 test sources.
  1.7324 +objext=o
  1.7325 +_LT_TAGVAR(objext, $1)=$objext
  1.7326 +
  1.7327 +# No sense in running all these tests if we already determined that
  1.7328 +# the F77 compiler isn't working.  Some variables (like enable_shared)
  1.7329 +# are currently assumed to apply to all compilers on this platform,
  1.7330 +# and will be corrupted by setting them based on a non-working compiler.
  1.7331 +if test "$_lt_disable_F77" != yes; then
  1.7332 +  # Code to be used in simple compile tests
  1.7333 +  lt_simple_compile_test_code="\
  1.7334 +      subroutine t
  1.7335 +      return
  1.7336 +      end
  1.7337 +"
  1.7338 +
  1.7339 +  # Code to be used in simple link tests
  1.7340 +  lt_simple_link_test_code="\
  1.7341 +      program t
  1.7342 +      end
  1.7343 +"
  1.7344 +
  1.7345 +  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  1.7346 +  _LT_TAG_COMPILER
  1.7347 +
  1.7348 +  # save warnings/boilerplate of simple test code
  1.7349 +  _LT_COMPILER_BOILERPLATE
  1.7350 +  _LT_LINKER_BOILERPLATE
  1.7351 +
  1.7352 +  # Allow CC to be a program name with arguments.
  1.7353 +  lt_save_CC="$CC"
  1.7354 +  lt_save_GCC=$GCC
  1.7355 +  CC=${F77-"f77"}
  1.7356 +  compiler=$CC
  1.7357 +  _LT_TAGVAR(compiler, $1)=$CC
  1.7358 +  _LT_CC_BASENAME([$compiler])
  1.7359 +  GCC=$G77
  1.7360 +  if test -n "$compiler"; then
  1.7361 +    AC_MSG_CHECKING([if libtool supports shared libraries])
  1.7362 +    AC_MSG_RESULT([$can_build_shared])
  1.7363 +
  1.7364 +    AC_MSG_CHECKING([whether to build shared libraries])
  1.7365 +    test "$can_build_shared" = "no" && enable_shared=no
  1.7366 +
  1.7367 +    # On AIX, shared libraries and static libraries use the same namespace, and
  1.7368 +    # are all built from PIC.
  1.7369 +    case $host_os in
  1.7370 +      aix3*)
  1.7371 +        test "$enable_shared" = yes && enable_static=no
  1.7372 +        if test -n "$RANLIB"; then
  1.7373 +          archive_cmds="$archive_cmds~\$RANLIB \$lib"
  1.7374 +          postinstall_cmds='$RANLIB $lib'
  1.7375 +        fi
  1.7376 +        ;;
  1.7377 +      aix[[4-9]]*)
  1.7378 +	if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  1.7379 +	  test "$enable_shared" = yes && enable_static=no
  1.7380 +	fi
  1.7381 +        ;;
  1.7382 +    esac
  1.7383 +    AC_MSG_RESULT([$enable_shared])
  1.7384 +
  1.7385 +    AC_MSG_CHECKING([whether to build static libraries])
  1.7386 +    # Make sure either enable_shared or enable_static is yes.
  1.7387 +    test "$enable_shared" = yes || enable_static=yes
  1.7388 +    AC_MSG_RESULT([$enable_static])
  1.7389 +
  1.7390 +    _LT_TAGVAR(GCC, $1)="$G77"
  1.7391 +    _LT_TAGVAR(LD, $1)="$LD"
  1.7392 +
  1.7393 +    ## CAVEAT EMPTOR:
  1.7394 +    ## There is no encapsulation within the following macros, do not change
  1.7395 +    ## the running order or otherwise move them around unless you know exactly
  1.7396 +    ## what you are doing...
  1.7397 +    _LT_COMPILER_PIC($1)
  1.7398 +    _LT_COMPILER_C_O($1)
  1.7399 +    _LT_COMPILER_FILE_LOCKS($1)
  1.7400 +    _LT_LINKER_SHLIBS($1)
  1.7401 +    _LT_SYS_DYNAMIC_LINKER($1)
  1.7402 +    _LT_LINKER_HARDCODE_LIBPATH($1)
  1.7403 +
  1.7404 +    _LT_CONFIG($1)
  1.7405 +  fi # test -n "$compiler"
  1.7406 +
  1.7407 +  GCC=$lt_save_GCC
  1.7408 +  CC="$lt_save_CC"
  1.7409 +fi # test "$_lt_disable_F77" != yes
  1.7410 +
  1.7411 +AC_LANG_POP
  1.7412 +])# _LT_LANG_F77_CONFIG
  1.7413 +
  1.7414 +
  1.7415 +# _LT_PROG_FC
  1.7416 +# -----------
  1.7417 +# Since AC_PROG_FC is broken, in that it returns the empty string
  1.7418 +# if there is no fortran compiler, we have our own version here.
  1.7419 +m4_defun([_LT_PROG_FC],
  1.7420 +[
  1.7421 +pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
  1.7422 +AC_PROG_FC
  1.7423 +if test -z "$FC" || test "X$FC" = "Xno"; then
  1.7424 +  _lt_disable_FC=yes
  1.7425 +fi
  1.7426 +popdef([AC_MSG_ERROR])
  1.7427 +])# _LT_PROG_FC
  1.7428 +
  1.7429 +dnl aclocal-1.4 backwards compatibility:
  1.7430 +dnl AC_DEFUN([_LT_PROG_FC], [])
  1.7431 +
  1.7432 +
  1.7433 +# _LT_LANG_FC_CONFIG([TAG])
  1.7434 +# -------------------------
  1.7435 +# Ensure that the configuration variables for a Fortran compiler are
  1.7436 +# suitably defined.  These variables are subsequently used by _LT_CONFIG
  1.7437 +# to write the compiler configuration to `libtool'.
  1.7438 +m4_defun([_LT_LANG_FC_CONFIG],
  1.7439 +[AC_REQUIRE([_LT_PROG_FC])dnl
  1.7440 +AC_LANG_PUSH(Fortran)
  1.7441 +
  1.7442 +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  1.7443 +_LT_TAGVAR(allow_undefined_flag, $1)=
  1.7444 +_LT_TAGVAR(always_export_symbols, $1)=no
  1.7445 +_LT_TAGVAR(archive_expsym_cmds, $1)=
  1.7446 +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
  1.7447 +_LT_TAGVAR(hardcode_direct, $1)=no
  1.7448 +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
  1.7449 +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  1.7450 +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  1.7451 +_LT_TAGVAR(hardcode_libdir_separator, $1)=
  1.7452 +_LT_TAGVAR(hardcode_minus_L, $1)=no
  1.7453 +_LT_TAGVAR(hardcode_automatic, $1)=no
  1.7454 +_LT_TAGVAR(inherit_rpath, $1)=no
  1.7455 +_LT_TAGVAR(module_cmds, $1)=
  1.7456 +_LT_TAGVAR(module_expsym_cmds, $1)=
  1.7457 +_LT_TAGVAR(link_all_deplibs, $1)=unknown
  1.7458 +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  1.7459 +_LT_TAGVAR(no_undefined_flag, $1)=
  1.7460 +_LT_TAGVAR(whole_archive_flag_spec, $1)=
  1.7461 +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  1.7462 +
  1.7463 +# Source file extension for fc test sources.
  1.7464 +ac_ext=${ac_fc_srcext-f}
  1.7465 +
  1.7466 +# Object file extension for compiled fc test sources.
  1.7467 +objext=o
  1.7468 +_LT_TAGVAR(objext, $1)=$objext
  1.7469 +
  1.7470 +# No sense in running all these tests if we already determined that
  1.7471 +# the FC compiler isn't working.  Some variables (like enable_shared)
  1.7472 +# are currently assumed to apply to all compilers on this platform,
  1.7473 +# and will be corrupted by setting them based on a non-working compiler.
  1.7474 +if test "$_lt_disable_FC" != yes; then
  1.7475 +  # Code to be used in simple compile tests
  1.7476 +  lt_simple_compile_test_code="\
  1.7477 +      subroutine t
  1.7478 +      return
  1.7479 +      end
  1.7480 +"
  1.7481 +
  1.7482 +  # Code to be used in simple link tests
  1.7483 +  lt_simple_link_test_code="\
  1.7484 +      program t
  1.7485 +      end
  1.7486 +"
  1.7487 +
  1.7488 +  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  1.7489 +  _LT_TAG_COMPILER
  1.7490 +
  1.7491 +  # save warnings/boilerplate of simple test code
  1.7492 +  _LT_COMPILER_BOILERPLATE
  1.7493 +  _LT_LINKER_BOILERPLATE
  1.7494 +
  1.7495 +  # Allow CC to be a program name with arguments.
  1.7496 +  lt_save_CC="$CC"
  1.7497 +  lt_save_GCC=$GCC
  1.7498 +  CC=${FC-"f95"}
  1.7499 +  compiler=$CC
  1.7500 +  GCC=$ac_cv_fc_compiler_gnu
  1.7501 +
  1.7502 +  _LT_TAGVAR(compiler, $1)=$CC
  1.7503 +  _LT_CC_BASENAME([$compiler])
  1.7504 +
  1.7505 +  if test -n "$compiler"; then
  1.7506 +    AC_MSG_CHECKING([if libtool supports shared libraries])
  1.7507 +    AC_MSG_RESULT([$can_build_shared])
  1.7508 +
  1.7509 +    AC_MSG_CHECKING([whether to build shared libraries])
  1.7510 +    test "$can_build_shared" = "no" && enable_shared=no
  1.7511 +
  1.7512 +    # On AIX, shared libraries and static libraries use the same namespace, and
  1.7513 +    # are all built from PIC.
  1.7514 +    case $host_os in
  1.7515 +      aix3*)
  1.7516 +        test "$enable_shared" = yes && enable_static=no
  1.7517 +        if test -n "$RANLIB"; then
  1.7518 +          archive_cmds="$archive_cmds~\$RANLIB \$lib"
  1.7519 +          postinstall_cmds='$RANLIB $lib'
  1.7520 +        fi
  1.7521 +        ;;
  1.7522 +      aix[[4-9]]*)
  1.7523 +	if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  1.7524 +	  test "$enable_shared" = yes && enable_static=no
  1.7525 +	fi
  1.7526 +        ;;
  1.7527 +    esac
  1.7528 +    AC_MSG_RESULT([$enable_shared])
  1.7529 +
  1.7530 +    AC_MSG_CHECKING([whether to build static libraries])
  1.7531 +    # Make sure either enable_shared or enable_static is yes.
  1.7532 +    test "$enable_shared" = yes || enable_static=yes
  1.7533 +    AC_MSG_RESULT([$enable_static])
  1.7534 +
  1.7535 +    _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
  1.7536 +    _LT_TAGVAR(LD, $1)="$LD"
  1.7537 +
  1.7538 +    ## CAVEAT EMPTOR:
  1.7539 +    ## There is no encapsulation within the following macros, do not change
  1.7540 +    ## the running order or otherwise move them around unless you know exactly
  1.7541 +    ## what you are doing...
  1.7542 +    _LT_SYS_HIDDEN_LIBDEPS($1)
  1.7543 +    _LT_COMPILER_PIC($1)
  1.7544 +    _LT_COMPILER_C_O($1)
  1.7545 +    _LT_COMPILER_FILE_LOCKS($1)
  1.7546 +    _LT_LINKER_SHLIBS($1)
  1.7547 +    _LT_SYS_DYNAMIC_LINKER($1)
  1.7548 +    _LT_LINKER_HARDCODE_LIBPATH($1)
  1.7549 +
  1.7550 +    _LT_CONFIG($1)
  1.7551 +  fi # test -n "$compiler"
  1.7552 +
  1.7553 +  GCC=$lt_save_GCC
  1.7554 +  CC="$lt_save_CC"
  1.7555 +fi # test "$_lt_disable_FC" != yes
  1.7556 +
  1.7557 +AC_LANG_POP
  1.7558 +])# _LT_LANG_FC_CONFIG
  1.7559 +
  1.7560 +
  1.7561 +# _LT_LANG_GCJ_CONFIG([TAG])
  1.7562 +# --------------------------
  1.7563 +# Ensure that the configuration variables for the GNU Java Compiler compiler
  1.7564 +# are suitably defined.  These variables are subsequently used by _LT_CONFIG
  1.7565 +# to write the compiler configuration to `libtool'.
  1.7566 +m4_defun([_LT_LANG_GCJ_CONFIG],
  1.7567 +[AC_REQUIRE([LT_PROG_GCJ])dnl
  1.7568 +AC_LANG_SAVE
  1.7569 +
  1.7570 +# Source file extension for Java test sources.
  1.7571 +ac_ext=java
  1.7572 +
  1.7573 +# Object file extension for compiled Java test sources.
  1.7574 +objext=o
  1.7575 +_LT_TAGVAR(objext, $1)=$objext
  1.7576 +
  1.7577 +# Code to be used in simple compile tests
  1.7578 +lt_simple_compile_test_code="class foo {}"
  1.7579 +
  1.7580 +# Code to be used in simple link tests
  1.7581 +lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
  1.7582 +
  1.7583 +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  1.7584 +_LT_TAG_COMPILER
  1.7585 +
  1.7586 +# save warnings/boilerplate of simple test code
  1.7587 +_LT_COMPILER_BOILERPLATE
  1.7588 +_LT_LINKER_BOILERPLATE
  1.7589 +
  1.7590 +# Allow CC to be a program name with arguments.
  1.7591 +lt_save_CC="$CC"
  1.7592 +lt_save_GCC=$GCC
  1.7593 +GCC=yes
  1.7594 +CC=${GCJ-"gcj"}
  1.7595 +compiler=$CC
  1.7596 +_LT_TAGVAR(compiler, $1)=$CC
  1.7597 +_LT_TAGVAR(LD, $1)="$LD"
  1.7598 +_LT_CC_BASENAME([$compiler])
  1.7599 +
  1.7600 +# GCJ did not exist at the time GCC didn't implicitly link libc in.
  1.7601 +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  1.7602 +
  1.7603 +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  1.7604 +
  1.7605 +## CAVEAT EMPTOR:
  1.7606 +## There is no encapsulation within the following macros, do not change
  1.7607 +## the running order or otherwise move them around unless you know exactly
  1.7608 +## what you are doing...
  1.7609 +if test -n "$compiler"; then
  1.7610 +  _LT_COMPILER_NO_RTTI($1)
  1.7611 +  _LT_COMPILER_PIC($1)
  1.7612 +  _LT_COMPILER_C_O($1)
  1.7613 +  _LT_COMPILER_FILE_LOCKS($1)
  1.7614 +  _LT_LINKER_SHLIBS($1)
  1.7615 +  _LT_LINKER_HARDCODE_LIBPATH($1)
  1.7616 +
  1.7617 +  _LT_CONFIG($1)
  1.7618 +fi
  1.7619 +
  1.7620 +AC_LANG_RESTORE
  1.7621 +
  1.7622 +GCC=$lt_save_GCC
  1.7623 +CC="$lt_save_CC"
  1.7624 +])# _LT_LANG_GCJ_CONFIG
  1.7625 +
  1.7626 +
  1.7627 +# _LT_LANG_RC_CONFIG([TAG])
  1.7628 +# -------------------------
  1.7629 +# Ensure that the configuration variables for the Windows resource compiler
  1.7630 +# are suitably defined.  These variables are subsequently used by _LT_CONFIG
  1.7631 +# to write the compiler configuration to `libtool'.
  1.7632 +m4_defun([_LT_LANG_RC_CONFIG],
  1.7633 +[AC_REQUIRE([LT_PROG_RC])dnl
  1.7634 +AC_LANG_SAVE
  1.7635 +
  1.7636 +# Source file extension for RC test sources.
  1.7637 +ac_ext=rc
  1.7638 +
  1.7639 +# Object file extension for compiled RC test sources.
  1.7640 +objext=o
  1.7641 +_LT_TAGVAR(objext, $1)=$objext
  1.7642 +
  1.7643 +# Code to be used in simple compile tests
  1.7644 +lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  1.7645 +
  1.7646 +# Code to be used in simple link tests
  1.7647 +lt_simple_link_test_code="$lt_simple_compile_test_code"
  1.7648 +
  1.7649 +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  1.7650 +_LT_TAG_COMPILER
  1.7651 +
  1.7652 +# save warnings/boilerplate of simple test code
  1.7653 +_LT_COMPILER_BOILERPLATE
  1.7654 +_LT_LINKER_BOILERPLATE
  1.7655 +
  1.7656 +# Allow CC to be a program name with arguments.
  1.7657 +lt_save_CC="$CC"
  1.7658 +lt_save_GCC=$GCC
  1.7659 +GCC=
  1.7660 +CC=${RC-"windres"}
  1.7661 +compiler=$CC
  1.7662 +_LT_TAGVAR(compiler, $1)=$CC
  1.7663 +_LT_CC_BASENAME([$compiler])
  1.7664 +_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  1.7665 +
  1.7666 +if test -n "$compiler"; then
  1.7667 +  :
  1.7668 +  _LT_CONFIG($1)
  1.7669 +fi
  1.7670 +
  1.7671 +GCC=$lt_save_GCC
  1.7672 +AC_LANG_RESTORE
  1.7673 +CC="$lt_save_CC"
  1.7674 +])# _LT_LANG_RC_CONFIG
  1.7675 +
  1.7676 +
  1.7677 +# LT_PROG_GCJ
  1.7678 +# -----------
  1.7679 +AC_DEFUN([LT_PROG_GCJ],
  1.7680 +[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
  1.7681 +  [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
  1.7682 +    [AC_CHECK_TOOL(GCJ, gcj,)
  1.7683 +      test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
  1.7684 +      AC_SUBST(GCJFLAGS)])])[]dnl
  1.7685 +])
  1.7686 +
  1.7687 +# Old name:
  1.7688 +AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
  1.7689 +dnl aclocal-1.4 backwards compatibility:
  1.7690 +dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
  1.7691 +
  1.7692 +
  1.7693 +# LT_PROG_RC
  1.7694 +# ----------
  1.7695 +AC_DEFUN([LT_PROG_RC],
  1.7696 +[AC_CHECK_TOOL(RC, windres,)
  1.7697 +])
  1.7698 +
  1.7699 +# Old name:
  1.7700 +AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
  1.7701 +dnl aclocal-1.4 backwards compatibility:
  1.7702 +dnl AC_DEFUN([LT_AC_PROG_RC], [])
  1.7703 +
  1.7704 +
  1.7705 +# _LT_DECL_EGREP
  1.7706 +# --------------
  1.7707 +# If we don't have a new enough Autoconf to choose the best grep
  1.7708 +# available, choose the one first in the user's PATH.
  1.7709 +m4_defun([_LT_DECL_EGREP],
  1.7710 +[AC_REQUIRE([AC_PROG_EGREP])dnl
  1.7711 +AC_REQUIRE([AC_PROG_FGREP])dnl
  1.7712 +test -z "$GREP" && GREP=grep
  1.7713 +_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
  1.7714 +_LT_DECL([], [EGREP], [1], [An ERE matcher])
  1.7715 +_LT_DECL([], [FGREP], [1], [A literal string matcher])
  1.7716 +dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
  1.7717 +AC_SUBST([GREP])
  1.7718 +])
  1.7719 +
  1.7720 +
  1.7721 +# _LT_DECL_OBJDUMP
  1.7722 +# --------------
  1.7723 +# If we don't have a new enough Autoconf to choose the best objdump
  1.7724 +# available, choose the one first in the user's PATH.
  1.7725 +m4_defun([_LT_DECL_OBJDUMP],
  1.7726 +[AC_CHECK_TOOL(OBJDUMP, objdump, false)
  1.7727 +test -z "$OBJDUMP" && OBJDUMP=objdump
  1.7728 +_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
  1.7729 +AC_SUBST([OBJDUMP])
  1.7730 +])
  1.7731 +
  1.7732 +
  1.7733 +# _LT_DECL_SED
  1.7734 +# ------------
  1.7735 +# Check for a fully-functional sed program, that truncates
  1.7736 +# as few characters as possible.  Prefer GNU sed if found.
  1.7737 +m4_defun([_LT_DECL_SED],
  1.7738 +[AC_PROG_SED
  1.7739 +test -z "$SED" && SED=sed
  1.7740 +Xsed="$SED -e 1s/^X//"
  1.7741 +_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
  1.7742 +_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
  1.7743 +    [Sed that helps us avoid accidentally triggering echo(1) options like -n])
  1.7744 +])# _LT_DECL_SED
  1.7745 +
  1.7746 +m4_ifndef([AC_PROG_SED], [
  1.7747 +############################################################
  1.7748 +# NOTE: This macro has been submitted for inclusion into   #
  1.7749 +#  GNU Autoconf as AC_PROG_SED.  When it is available in   #
  1.7750 +#  a released version of Autoconf we should remove this    #
  1.7751 +#  macro and use it instead.                               #
  1.7752 +############################################################
  1.7753 +
  1.7754 +m4_defun([AC_PROG_SED],
  1.7755 +[AC_MSG_CHECKING([for a sed that does not truncate output])
  1.7756 +AC_CACHE_VAL(lt_cv_path_SED,
  1.7757 +[# Loop through the user's path and test for sed and gsed.
  1.7758 +# Then use that list of sed's as ones to test for truncation.
  1.7759 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1.7760 +for as_dir in $PATH
  1.7761 +do
  1.7762 +  IFS=$as_save_IFS
  1.7763 +  test -z "$as_dir" && as_dir=.
  1.7764 +  for lt_ac_prog in sed gsed; do
  1.7765 +    for ac_exec_ext in '' $ac_executable_extensions; do
  1.7766 +      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  1.7767 +        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  1.7768 +      fi
  1.7769 +    done
  1.7770 +  done
  1.7771 +done
  1.7772 +IFS=$as_save_IFS
  1.7773 +lt_ac_max=0
  1.7774 +lt_ac_count=0
  1.7775 +# Add /usr/xpg4/bin/sed as it is typically found on Solaris
  1.7776 +# along with /bin/sed that truncates output.
  1.7777 +for lt_ac