Sam Lantinga - Wed Nov 19 00:23:44 PST 2003
authorSam Lantinga <slouken@libsdl.org>
Wed, 19 Nov 2003 08:38:34 +0000
changeset 240df2d45dbed91
parent 239 a39ea7c6f912
child 241 503416fca921
Sam Lantinga - Wed Nov 19 00:23:44 PST 2003
* Updated libtool support for new mingw32 DLL build process
CHANGES
Makefile.am
acinclude.m4
ltconfig
ltmain.sh
     1.1 --- a/CHANGES	Mon Nov 10 04:35:47 2003 +0000
     1.2 +++ b/CHANGES	Wed Nov 19 08:38:34 2003 +0000
     1.3 @@ -1,8 +1,8 @@
     1.4 -current:
     1.5 +1.2.6:
     1.6 +Sam Lantinga - Wed Nov 19 00:23:44 PST 2003
     1.7 + * Updated libtool support for new mingw32 DLL build process
     1.8  Ryan C. Gordon - Sun Nov  9 23:34:47 EST 2003
     1.9   * Patch from Steven Fuller to fix positioning effect on bigendian systems.
    1.10 -
    1.11 -1.2.6:
    1.12  Laurent Ganter - Mon, 6 Oct 2003 11:51:33 +0200
    1.13   * Fixed bug with MIDI volume in native Windows playback
    1.14  Andre Leiradella - Fri, 30 May 2003 16:12:03 -0300
     2.1 --- a/Makefile.am	Mon Nov 10 04:35:47 2003 +0000
     2.2 +++ b/Makefile.am	Wed Nov 19 08:38:34 2003 +0000
     2.3 @@ -59,7 +59,8 @@
     2.4  	SDL_mixer.spec.in	\
     2.5  	autogen.sh
     2.6  
     2.7 -libSDL_mixer_la_LDFLAGS = 		\
     2.8 +libSDL_mixer_la_LDFLAGS = 	\
     2.9 +	-no-undefined		\
    2.10  	-release $(LT_RELEASE)	\
    2.11  	-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
    2.12  libSDL_mixer_la_LIBADD = $(MIKMOD_LIB) $(TIMIDITY_LIB) $(NATIVE_MIDI_LIB) @SYSTEM_LIBS@ @SDL_LIBS@
     3.1 --- a/acinclude.m4	Mon Nov 10 04:35:47 2003 +0000
     3.2 +++ b/acinclude.m4	Wed Nov 19 08:38:34 2003 +0000
     3.3 @@ -342,8 +342,10 @@
     3.4    AC_SUBST(SMPEG_LIBS)
     3.5    rm -f conf.smpegtest
     3.6  ])
     3.7 -## libtool.m4 - Configure libtool for the target system. -*-Shell-script-*-
     3.8 -## Copyright (C) 1996-1999, 2000 Free Software Foundation, Inc.
     3.9 +
    3.10 +# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
    3.11 +## Copyright 1996, 1997, 1998, 1999, 2000, 2001
    3.12 +## Free Software Foundation, Inc.
    3.13  ## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
    3.14  ##
    3.15  ## This program is free software; you can redistribute it and/or modify
    3.16 @@ -365,80 +367,459 @@
    3.17  ## configuration script generated by Autoconf, you may include it under
    3.18  ## the same distribution terms that you use for the rest of that program.
    3.19  
    3.20 -# serial 40 AC_PROG_LIBTOOL
    3.21 -AC_DEFUN(AC_PROG_LIBTOOL,
    3.22 +# serial 47 AC_PROG_LIBTOOL
    3.23 +
    3.24 +
    3.25 +# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
    3.26 +# -----------------------------------------------------------
    3.27 +# If this macro is not defined by Autoconf, define it here.
    3.28 +m4_ifdef([AC_PROVIDE_IFELSE],
    3.29 +         [],
    3.30 +         [m4_define([AC_PROVIDE_IFELSE],
    3.31 +	         [m4_ifdef([AC_PROVIDE_$1],
    3.32 +		           [$2], [$3])])])
    3.33 +
    3.34 +
    3.35 +# AC_PROG_LIBTOOL
    3.36 +# ---------------
    3.37 +AC_DEFUN([AC_PROG_LIBTOOL],
    3.38 +[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
    3.39 +dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
    3.40 +dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
    3.41 +  AC_PROVIDE_IFELSE([AC_PROG_CXX],
    3.42 +    [AC_LIBTOOL_CXX],
    3.43 +    [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
    3.44 +  ])])
    3.45 +dnl And a similar setup for Fortran 77 support
    3.46 +  AC_PROVIDE_IFELSE([AC_PROG_F77],
    3.47 +    [AC_LIBTOOL_F77],
    3.48 +    [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
    3.49 +])])
    3.50 +
    3.51 +dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
    3.52 +dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
    3.53 +dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
    3.54 +  AC_PROVIDE_IFELSE([AC_PROG_GCJ],
    3.55 +    [AC_LIBTOOL_GCJ],
    3.56 +    [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
    3.57 +      [AC_LIBTOOL_GCJ],
    3.58 +      [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
    3.59 +	[AC_LIBTOOL_GCJ],
    3.60 +      [ifdef([AC_PROG_GCJ],
    3.61 +	     [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
    3.62 +       ifdef([A][M_PROG_GCJ],
    3.63 +	     [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
    3.64 +       ifdef([LT_AC_PROG_GCJ],
    3.65 +	     [define([LT_AC_PROG_GCJ],
    3.66 +		defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
    3.67 +])])# AC_PROG_LIBTOOL
    3.68 +
    3.69 +
    3.70 +# _AC_PROG_LIBTOOL
    3.71 +# ----------------
    3.72 +AC_DEFUN([_AC_PROG_LIBTOOL],
    3.73  [AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
    3.74 -
    3.75 -# Save cache, so that ltconfig can load it
    3.76 -AC_CACHE_SAVE
    3.77 -
    3.78 -# Actually configure libtool.  ac_aux_dir is where install-sh is found.
    3.79 -CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
    3.80 -LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
    3.81 -LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
    3.82 -DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
    3.83 -${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
    3.84 -$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
    3.85 -|| AC_MSG_ERROR([libtool configure failed])
    3.86 -
    3.87 -# Reload cache, that may have been modified by ltconfig
    3.88 -AC_CACHE_LOAD
    3.89 +AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
    3.90 +AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
    3.91 +AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
    3.92  
    3.93  # This can be used to rebuild libtool when needed
    3.94 -LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
    3.95 +LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
    3.96  
    3.97  # Always use our own libtool.
    3.98  LIBTOOL='$(SHELL) $(top_builddir)/libtool'
    3.99  AC_SUBST(LIBTOOL)dnl
   3.100  
   3.101 -# Redirect the config.log output again, so that the ltconfig log is not
   3.102 -# clobbered by the next message.
   3.103 -exec 5>>./config.log
   3.104 -])
   3.105 -
   3.106 -AC_DEFUN(AC_LIBTOOL_SETUP,
   3.107 -[AC_PREREQ(2.13)dnl
   3.108 +# Prevent multiple expansion
   3.109 +define([AC_PROG_LIBTOOL], [])
   3.110 +])# _AC_PROG_LIBTOOL
   3.111 +
   3.112 +
   3.113 +# AC_LIBTOOL_SETUP
   3.114 +# ----------------
   3.115 +AC_DEFUN([AC_LIBTOOL_SETUP],
   3.116 +[AC_PREREQ(2.50)dnl
   3.117  AC_REQUIRE([AC_ENABLE_SHARED])dnl
   3.118  AC_REQUIRE([AC_ENABLE_STATIC])dnl
   3.119  AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
   3.120  AC_REQUIRE([AC_CANONICAL_HOST])dnl
   3.121  AC_REQUIRE([AC_CANONICAL_BUILD])dnl
   3.122 -AC_REQUIRE([AC_PROG_RANLIB])dnl
   3.123  AC_REQUIRE([AC_PROG_CC])dnl
   3.124  AC_REQUIRE([AC_PROG_LD])dnl
   3.125 +AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
   3.126  AC_REQUIRE([AC_PROG_NM])dnl
   3.127 +
   3.128  AC_REQUIRE([AC_PROG_LN_S])dnl
   3.129 +AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
   3.130 +# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
   3.131 +AC_REQUIRE([AC_OBJEXT])dnl
   3.132 +AC_REQUIRE([AC_EXEEXT])dnl
   3.133  dnl
   3.134  
   3.135 -case "$target" in
   3.136 -NONE) lt_target="$host" ;;
   3.137 -*) lt_target="$target" ;;
   3.138 +AC_LIBTOOL_SYS_MAX_CMD_LEN
   3.139 +AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
   3.140 +AC_LIBTOOL_OBJDIR
   3.141 +
   3.142 +AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
   3.143 +_LT_AC_PROG_ECHO_BACKSLASH
   3.144 +
   3.145 +case $host_os in
   3.146 +aix3*)
   3.147 +  # AIX sometimes has problems with the GCC collect2 program.  For some
   3.148 +  # reason, if we set the COLLECT_NAMES environment variable, the problems
   3.149 +  # vanish in a puff of smoke.
   3.150 +  if test "X${COLLECT_NAMES+set}" != Xset; then
   3.151 +    COLLECT_NAMES=
   3.152 +    export COLLECT_NAMES
   3.153 +  fi
   3.154 +  ;;
   3.155  esac
   3.156  
   3.157 -# Check for any special flags to pass to ltconfig.
   3.158 -libtool_flags="--cache-file=$cache_file"
   3.159 -test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
   3.160 -test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
   3.161 -test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
   3.162 -test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
   3.163 -test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
   3.164 -ifdef([AC_PROVIDE_AC_LIBTOOL_DLOPEN],
   3.165 -[libtool_flags="$libtool_flags --enable-dlopen"])
   3.166 -ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
   3.167 -[libtool_flags="$libtool_flags --enable-win32-dll"])
   3.168 -AC_ARG_ENABLE(libtool-lock,
   3.169 -  [  --disable-libtool-lock  avoid locking (might break parallel builds)])
   3.170 -test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
   3.171 -test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
   3.172 +# Sed substitution that helps us do robust quoting.  It backslashifies
   3.173 +# metacharacters that are still active within double-quoted strings.
   3.174 +Xsed='sed -e s/^X//'
   3.175 +[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
   3.176 +
   3.177 +# Same as above, but do not quote variable references.
   3.178 +[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
   3.179 +
   3.180 +# Sed substitution to delay expansion of an escaped shell variable in a
   3.181 +# double_quote_subst'ed string.
   3.182 +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
   3.183 +
   3.184 +# Sed substitution to avoid accidental globbing in evaled expressions
   3.185 +no_glob_subst='s/\*/\\\*/g'
   3.186 +
   3.187 +# Constants:
   3.188 +rm="rm -f"
   3.189 +
   3.190 +# Global variables:
   3.191 +default_ofile=libtool
   3.192 +can_build_shared=yes
   3.193 +
   3.194 +# All known linkers require a `.a' archive for static linking (except M$VC,
   3.195 +# which needs '.lib').
   3.196 +libext=a
   3.197 +ltmain="$ac_aux_dir/ltmain.sh"
   3.198 +ofile="$default_ofile"
   3.199 +with_gnu_ld="$lt_cv_prog_gnu_ld"
   3.200 +
   3.201 +AC_CHECK_TOOL(AR, ar, false)
   3.202 +AC_CHECK_TOOL(RANLIB, ranlib, :)
   3.203 +AC_CHECK_TOOL(STRIP, strip, :)
   3.204 +
   3.205 +old_CC="$CC"
   3.206 +old_CFLAGS="$CFLAGS"
   3.207 +
   3.208 +# Set sane defaults for various variables
   3.209 +test -z "$AR" && AR=ar
   3.210 +test -z "$AR_FLAGS" && AR_FLAGS=cru
   3.211 +test -z "$AS" && AS=as
   3.212 +test -z "$CC" && CC=cc
   3.213 +test -z "$LTCC" && LTCC=$CC
   3.214 +test -z "$DLLTOOL" && DLLTOOL=dlltool
   3.215 +test -z "$LD" && LD=ld
   3.216 +test -z "$LN_S" && LN_S="ln -s"
   3.217 +test -z "$MAGIC_CMD" && MAGIC_CMD=file
   3.218 +test -z "$NM" && NM=nm
   3.219 +test -z "$SED" && SED=sed
   3.220 +test -z "$OBJDUMP" && OBJDUMP=objdump
   3.221 +test -z "$RANLIB" && RANLIB=:
   3.222 +test -z "$STRIP" && STRIP=:
   3.223 +test -z "$ac_objext" && ac_objext=o
   3.224 +
   3.225 +# Determine commands to create old-style static archives.
   3.226 +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
   3.227 +old_postinstall_cmds='chmod 644 $oldlib'
   3.228 +old_postuninstall_cmds=
   3.229 +
   3.230 +if test -n "$RANLIB"; then
   3.231 +  case $host_os in
   3.232 +  openbsd*)
   3.233 +    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
   3.234 +    ;;
   3.235 +  *)
   3.236 +    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
   3.237 +    ;;
   3.238 +  esac
   3.239 +  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
   3.240 +fi
   3.241 +
   3.242 +# Only perform the check for file, if the check method requires it
   3.243 +case $deplibs_check_method in
   3.244 +file_magic*)
   3.245 +  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
   3.246 +    AC_PATH_MAGIC
   3.247 +  fi
   3.248 +  ;;
   3.249 +esac
   3.250 +
   3.251 +AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
   3.252 +AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
   3.253 +enable_win32_dll=yes, enable_win32_dll=no)
   3.254 +
   3.255 +AC_ARG_ENABLE([libtool-lock],
   3.256 +    [AC_HELP_STRING([--disable-libtool-lock],
   3.257 +	[avoid locking (might break parallel builds)])])
   3.258 +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
   3.259 +
   3.260 +AC_ARG_WITH([pic],
   3.261 +    [AC_HELP_STRING([--with-pic],
   3.262 +	[try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
   3.263 +    [pic_mode="$withval"],
   3.264 +    [pic_mode=default])
   3.265 +test -z "$pic_mode" && pic_mode=default
   3.266 +
   3.267 +# Use C for the default configuration in the libtool script
   3.268 +tagname=
   3.269 +AC_LIBTOOL_LANG_C_CONFIG
   3.270 +_LT_AC_TAGCONFIG
   3.271 +])# AC_LIBTOOL_SETUP
   3.272 +
   3.273 +
   3.274 +# _LT_AC_SYS_COMPILER
   3.275 +# -------------------
   3.276 +AC_DEFUN([_LT_AC_SYS_COMPILER],
   3.277 +[AC_REQUIRE([AC_PROG_CC])dnl
   3.278 +
   3.279 +# If no C compiler was specified, use CC.
   3.280 +LTCC=${LTCC-"$CC"}
   3.281 +
   3.282 +# Allow CC to be a program name with arguments.
   3.283 +compiler=$CC
   3.284 +])# _LT_AC_SYS_COMPILER
   3.285 +
   3.286 +
   3.287 +# _LT_AC_SYS_LIBPATH_AIX
   3.288 +# ----------------------
   3.289 +# Links a minimal program and checks the executable
   3.290 +# for the system default hardcoded library path. In most cases,
   3.291 +# this is /usr/lib:/lib, but when the MPI compilers are used
   3.292 +# the location of the communication and MPI libs are included too.
   3.293 +# If we don't find anything, use the default library path according
   3.294 +# to the aix ld manual.
   3.295 +AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
   3.296 +[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
   3.297 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
   3.298 +}'`
   3.299 +# Check for a 64-bit object if we didn't find anything.
   3.300 +if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
   3.301 +}'`; fi],[])
   3.302 +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
   3.303 +])# _LT_AC_SYS_LIBPATH_AIX
   3.304 +
   3.305 +
   3.306 +# _LT_AC_SHELL_INIT(ARG)
   3.307 +# ----------------------
   3.308 +AC_DEFUN([_LT_AC_SHELL_INIT],
   3.309 +[ifdef([AC_DIVERSION_NOTICE],
   3.310 +	     [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
   3.311 +	 [AC_DIVERT_PUSH(NOTICE)])
   3.312 +$1
   3.313 +AC_DIVERT_POP
   3.314 +])# _LT_AC_SHELL_INIT
   3.315 +
   3.316 +
   3.317 +# _LT_AC_PROG_ECHO_BACKSLASH
   3.318 +# --------------------------
   3.319 +# Add some code to the start of the generated configure script which
   3.320 +# will find an echo command which doesn't interpret backslashes.
   3.321 +AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
   3.322 +[_LT_AC_SHELL_INIT([
   3.323 +# Check that we are running under the correct shell.
   3.324 +SHELL=${CONFIG_SHELL-/bin/sh}
   3.325 +
   3.326 +case X$ECHO in
   3.327 +X*--fallback-echo)
   3.328 +  # Remove one level of quotation (which was required for Make).
   3.329 +  ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
   3.330 +  ;;
   3.331 +esac
   3.332 +
   3.333 +echo=${ECHO-echo}
   3.334 +if test "X[$]1" = X--no-reexec; then
   3.335 +  # Discard the --no-reexec flag, and continue.
   3.336 +  shift
   3.337 +elif test "X[$]1" = X--fallback-echo; then
   3.338 +  # Avoid inline document here, it may be left over
   3.339 +  :
   3.340 +elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
   3.341 +  # Yippee, $echo works!
   3.342 +  :
   3.343 +else
   3.344 +  # Restart under the correct shell.
   3.345 +  exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
   3.346 +fi
   3.347 +
   3.348 +if test "X[$]1" = X--fallback-echo; then
   3.349 +  # used as fallback echo
   3.350 +  shift
   3.351 +  cat <<EOF
   3.352 +[$]*
   3.353 +EOF
   3.354 +  exit 0
   3.355 +fi
   3.356 +
   3.357 +# The HP-UX ksh and POSIX shell print the target directory to stdout
   3.358 +# if CDPATH is set.
   3.359 +if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
   3.360 +
   3.361 +if test -z "$ECHO"; then
   3.362 +if test "X${echo_test_string+set}" != Xset; then
   3.363 +# find a string as large as possible, as long as the shell can cope with it
   3.364 +  for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
   3.365 +    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
   3.366 +    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
   3.367 +       echo_test_string="`eval $cmd`" &&
   3.368 +       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
   3.369 +    then
   3.370 +      break
   3.371 +    fi
   3.372 +  done
   3.373 +fi
   3.374 +
   3.375 +if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
   3.376 +   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
   3.377 +   test "X$echo_testing_string" = "X$echo_test_string"; then
   3.378 +  :
   3.379 +else
   3.380 +  # The Solaris, AIX, and Digital Unix default echo programs unquote
   3.381 +  # backslashes.  This makes it impossible to quote backslashes using
   3.382 +  #   echo "$something" | sed 's/\\/\\\\/g'
   3.383 +  #
   3.384 +  # So, first we look for a working echo in the user's PATH.
   3.385 +
   3.386 +  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
   3.387 +  for dir in $PATH /usr/ucb; do
   3.388 +    IFS="$lt_save_ifs"
   3.389 +    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
   3.390 +       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
   3.391 +       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
   3.392 +       test "X$echo_testing_string" = "X$echo_test_string"; then
   3.393 +      echo="$dir/echo"
   3.394 +      break
   3.395 +    fi
   3.396 +  done
   3.397 +  IFS="$lt_save_ifs"
   3.398 +
   3.399 +  if test "X$echo" = Xecho; then
   3.400 +    # We didn't find a better echo, so look for alternatives.
   3.401 +    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
   3.402 +       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
   3.403 +       test "X$echo_testing_string" = "X$echo_test_string"; then
   3.404 +      # This shell has a builtin print -r that does the trick.
   3.405 +      echo='print -r'
   3.406 +    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
   3.407 +	 test "X$CONFIG_SHELL" != X/bin/ksh; then
   3.408 +      # If we have ksh, try running configure again with it.
   3.409 +      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
   3.410 +      export ORIGINAL_CONFIG_SHELL
   3.411 +      CONFIG_SHELL=/bin/ksh
   3.412 +      export CONFIG_SHELL
   3.413 +      exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
   3.414 +    else
   3.415 +      # Try using printf.
   3.416 +      echo='printf %s\n'
   3.417 +      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
   3.418 +	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
   3.419 +	 test "X$echo_testing_string" = "X$echo_test_string"; then
   3.420 +	# Cool, printf works
   3.421 +	:
   3.422 +      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
   3.423 +	   test "X$echo_testing_string" = 'X\t' &&
   3.424 +	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
   3.425 +	   test "X$echo_testing_string" = "X$echo_test_string"; then
   3.426 +	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
   3.427 +	export CONFIG_SHELL
   3.428 +	SHELL="$CONFIG_SHELL"
   3.429 +	export SHELL
   3.430 +	echo="$CONFIG_SHELL [$]0 --fallback-echo"
   3.431 +      elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
   3.432 +	   test "X$echo_testing_string" = 'X\t' &&
   3.433 +	   echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
   3.434 +	   test "X$echo_testing_string" = "X$echo_test_string"; then
   3.435 +	echo="$CONFIG_SHELL [$]0 --fallback-echo"
   3.436 +      else
   3.437 +	# maybe with a smaller string...
   3.438 +	prev=:
   3.439 +
   3.440 +	for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
   3.441 +	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
   3.442 +	  then
   3.443 +	    break
   3.444 +	  fi
   3.445 +	  prev="$cmd"
   3.446 +	done
   3.447 +
   3.448 +	if test "$prev" != 'sed 50q "[$]0"'; then
   3.449 +	  echo_test_string=`eval $prev`
   3.450 +	  export echo_test_string
   3.451 +	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
   3.452 +	else
   3.453 +	  # Oops.  We lost completely, so just stick with echo.
   3.454 +	  echo=echo
   3.455 +	fi
   3.456 +      fi
   3.457 +    fi
   3.458 +  fi
   3.459 +fi
   3.460 +fi
   3.461 +
   3.462 +# Copy echo and quote the copy suitably for passing to libtool from
   3.463 +# the Makefile, instead of quoting the original, which is used later.
   3.464 +ECHO=$echo
   3.465 +if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
   3.466 +   ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
   3.467 +fi
   3.468 +
   3.469 +AC_SUBST(ECHO)
   3.470 +])])# _LT_AC_PROG_ECHO_BACKSLASH
   3.471 +
   3.472 +
   3.473 +# _LT_AC_LOCK
   3.474 +# -----------
   3.475 +AC_DEFUN([_LT_AC_LOCK],
   3.476 +[AC_ARG_ENABLE([libtool-lock],
   3.477 +    [AC_HELP_STRING([--disable-libtool-lock],
   3.478 +	[avoid locking (might break parallel builds)])])
   3.479 +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
   3.480  
   3.481  # Some flags need to be propagated to the compiler or linker for good
   3.482  # libtool support.
   3.483 -case "$lt_target" in
   3.484 +case $host in
   3.485 +ia64-*-hpux*)
   3.486 +  # Find out which ABI we are using.
   3.487 +  echo 'int i;' > conftest.$ac_ext
   3.488 +  if AC_TRY_EVAL(ac_compile); then
   3.489 +    case `/usr/bin/file conftest.$ac_objext` in
   3.490 +    *ELF-32*)
   3.491 +      HPUX_IA64_MODE="32"
   3.492 +      ;;
   3.493 +    *ELF-64*)
   3.494 +      HPUX_IA64_MODE="64"
   3.495 +      ;;
   3.496 +    esac
   3.497 +  fi
   3.498 +  rm -rf conftest*
   3.499 +  ;;
   3.500  *-*-irix6*)
   3.501    # Find out which ABI we are using.
   3.502    echo '[#]line __oline__ "configure"' > conftest.$ac_ext
   3.503    if AC_TRY_EVAL(ac_compile); then
   3.504 -    case "`/usr/bin/file conftest.o`" in
   3.505 +   if test "$lt_cv_prog_gnu_ld" = yes; then
   3.506 +    case `/usr/bin/file conftest.$ac_objext` in
   3.507 +    *32-bit*)
   3.508 +      LD="${LD-ld} -melf32bsmip"
   3.509 +      ;;
   3.510 +    *N32*)
   3.511 +      LD="${LD-ld} -melf32bmipn32"
   3.512 +      ;;
   3.513 +    *64-bit*)
   3.514 +      LD="${LD-ld} -melf64bmip"
   3.515 +      ;;
   3.516 +    esac
   3.517 +   else
   3.518 +    case `/usr/bin/file conftest.$ac_objext` in
   3.519      *32-bit*)
   3.520        LD="${LD-ld} -32"
   3.521        ;;
   3.522 @@ -449,6 +830,49 @@
   3.523        LD="${LD-ld} -64"
   3.524        ;;
   3.525      esac
   3.526 +   fi
   3.527 +  fi
   3.528 +  rm -rf conftest*
   3.529 +  ;;
   3.530 +
   3.531 +x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
   3.532 +  # Find out which ABI we are using.
   3.533 +  echo 'int i;' > conftest.$ac_ext
   3.534 +  if AC_TRY_EVAL(ac_compile); then
   3.535 +    case "`/usr/bin/file conftest.o`" in
   3.536 +    *32-bit*)
   3.537 +      case $host in
   3.538 +        x86_64-*linux*)
   3.539 +          LD="${LD-ld} -m elf_i386"
   3.540 +          ;;
   3.541 +        ppc64-*linux*)
   3.542 +          LD="${LD-ld} -m elf32ppclinux"
   3.543 +          ;;
   3.544 +        s390x-*linux*)
   3.545 +          LD="${LD-ld} -m elf_s390"
   3.546 +          ;;
   3.547 +        sparc64-*linux*)
   3.548 +          LD="${LD-ld} -m elf32_sparc"
   3.549 +          ;;
   3.550 +      esac
   3.551 +      ;;
   3.552 +    *64-bit*)
   3.553 +      case $host in
   3.554 +        x86_64-*linux*)
   3.555 +          LD="${LD-ld} -m elf_x86_64"
   3.556 +          ;;
   3.557 +        ppc*-*linux*|powerpc*-*linux*)
   3.558 +          LD="${LD-ld} -m elf64ppc"
   3.559 +          ;;
   3.560 +        s390*-*linux*)
   3.561 +          LD="${LD-ld} -m elf64_s390"
   3.562 +          ;;
   3.563 +        sparc*-*linux*)
   3.564 +          LD="${LD-ld} -m elf64_sparc"
   3.565 +          ;;
   3.566 +      esac
   3.567 +      ;;
   3.568 +    esac
   3.569    fi
   3.570    rm -rf conftest*
   3.571    ;;
   3.572 @@ -458,152 +882,1431 @@
   3.573    SAVE_CFLAGS="$CFLAGS"
   3.574    CFLAGS="$CFLAGS -belf"
   3.575    AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
   3.576 -    [AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])])
   3.577 +    [AC_LANG_PUSH(C)
   3.578 +     AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
   3.579 +     AC_LANG_POP])
   3.580    if test x"$lt_cv_cc_needs_belf" != x"yes"; then
   3.581      # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
   3.582      CFLAGS="$SAVE_CFLAGS"
   3.583    fi
   3.584    ;;
   3.585 -
   3.586 -ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
   3.587 -[*-*-cygwin* | *-*-mingw*)
   3.588 +AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
   3.589 +[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
   3.590    AC_CHECK_TOOL(DLLTOOL, dlltool, false)
   3.591    AC_CHECK_TOOL(AS, as, false)
   3.592    AC_CHECK_TOOL(OBJDUMP, objdump, false)
   3.593    ;;
   3.594 +  ])
   3.595 +esac
   3.596 +
   3.597 +need_locks="$enable_libtool_lock"
   3.598 +
   3.599 +])# _LT_AC_LOCK
   3.600 +
   3.601 +
   3.602 +# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
   3.603 +#		[OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
   3.604 +# ----------------------------------------------------------------
   3.605 +# Check whether the given compiler option works
   3.606 +AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
   3.607 +[AC_CACHE_CHECK([$1], [$2],
   3.608 +  [$2=no
   3.609 +  ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
   3.610 +   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
   3.611 +   lt_compiler_flag="$3"
   3.612 +   # Insert the option either (1) after the last *FLAGS variable, or
   3.613 +   # (2) before a word containing "conftest.", or (3) at the end.
   3.614 +   # Note that $ac_compile itself does not contain backslashes and begins
   3.615 +   # with a dollar sign (not a hyphen), so the echo should work correctly.
   3.616 +   # The option is referenced via a variable to avoid confusing sed.
   3.617 +   lt_compile=`echo "$ac_compile" | $SED \
   3.618 +   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
   3.619 +   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
   3.620 +   -e 's:$: $lt_compiler_flag:'`
   3.621 +   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
   3.622 +   (eval "$lt_compile" 2>conftest.err)
   3.623 +   ac_status=$?
   3.624 +   cat conftest.err >&AS_MESSAGE_LOG_FD
   3.625 +   echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
   3.626 +   if (exit $ac_status) && test -s "$ac_outfile"; then
   3.627 +     # The compiler can only warn and ignore the option if not recognized
   3.628 +     # So say no if there are warnings
   3.629 +     if test ! -s conftest.err; then
   3.630 +       $2=yes
   3.631 +     fi
   3.632 +   fi
   3.633 +   $rm conftest*
   3.634  ])
   3.635 +
   3.636 +if test x"[$]$2" = xyes; then
   3.637 +    ifelse([$5], , :, [$5])
   3.638 +else
   3.639 +    ifelse([$6], , :, [$6])
   3.640 +fi
   3.641 +])# AC_LIBTOOL_COMPILER_OPTION
   3.642 +
   3.643 +
   3.644 +# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
   3.645 +#                          [ACTION-SUCCESS], [ACTION-FAILURE])
   3.646 +# ------------------------------------------------------------
   3.647 +# Check whether the given compiler option works
   3.648 +AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
   3.649 +[AC_CACHE_CHECK([$1], [$2],
   3.650 +  [$2=no
   3.651 +   save_LDFLAGS="$LDFLAGS"
   3.652 +   LDFLAGS="$LDFLAGS $3"
   3.653 +   printf "$lt_simple_link_test_code" > conftest.$ac_ext
   3.654 +   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
   3.655 +     # The compiler can only warn and ignore the option if not recognized
   3.656 +     # So say no if there are warnings
   3.657 +     if test -s conftest.err; then
   3.658 +       # Append any errors to the config.log.
   3.659 +       cat conftest.err 1>&AS_MESSAGE_LOG_FD
   3.660 +     else
   3.661 +       $2=yes
   3.662 +     fi
   3.663 +   fi
   3.664 +   $rm conftest*
   3.665 +   LDFLAGS="$save_LDFLAGS"
   3.666 +])
   3.667 +
   3.668 +if test x"[$]$2" = xyes; then
   3.669 +    ifelse([$4], , :, [$4])
   3.670 +else
   3.671 +    ifelse([$5], , :, [$5])
   3.672 +fi
   3.673 +])# AC_LIBTOOL_LINKER_OPTION
   3.674 +
   3.675 +
   3.676 +# AC_LIBTOOL_SYS_MAX_CMD_LEN
   3.677 +# --------------------------
   3.678 +AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
   3.679 +[# find the maximum length of command line arguments
   3.680 +AC_MSG_CHECKING([the maximum length of command line arguments])
   3.681 +AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
   3.682 +  i=0
   3.683 +  testring="ABCD"
   3.684 +
   3.685 +  case $build_os in
   3.686 +  msdosdjgpp*)
   3.687 +    # On DJGPP, this test can blow up pretty badly due to problems in libc
   3.688 +    # (any single argument exceeding 2000 bytes causes a buffer overrun
   3.689 +    # during glob expansion).  Even if it were fixed, the result of this
   3.690 +    # check would be larger than it should be.
   3.691 +    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
   3.692 +    ;;
   3.693 +
   3.694 +  gnu*)
   3.695 +    # Under GNU Hurd, this test is not required because there is
   3.696 +    # no limit to the length of command line arguments.
   3.697 +    # Libtool will interpret -1 as no limit whatsoever
   3.698 +    lt_cv_sys_max_cmd_len=-1;
   3.699 +    ;;
   3.700 +
   3.701 +  cygwin* | mingw*)
   3.702 +    # On Win9x/ME, this test blows up -- it succeeds, but takes
   3.703 +    # about 5 minutes as the teststring grows exponentially.
   3.704 +    # Worse, since 9x/ME are not pre-emptively multitasking,
   3.705 +    # you end up with a "frozen" computer, even though with patience
   3.706 +    # the test eventually succeeds (with a max line length of 256k).
   3.707 +    # Instead, let's just punt: use the minimum linelength reported by
   3.708 +    # all of the supported platforms: 8192 (on NT/2K/XP).
   3.709 +    lt_cv_sys_max_cmd_len=8192;
   3.710 +    ;;
   3.711 +
   3.712 + *)
   3.713 +    # If test is not a shell built-in, we'll probably end up computing a
   3.714 +    # maximum length that is only half of the actual maximum length, but
   3.715 +    # we can't tell.
   3.716 +    while (test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$testring" 2>/dev/null` \
   3.717 +	       = "XX$testring") >/dev/null 2>&1 &&
   3.718 +	    new_result=`expr "X$testring" : ".*" 2>&1` &&
   3.719 +	    lt_cv_sys_max_cmd_len=$new_result &&
   3.720 +	    test $i != 17 # 1/2 MB should be enough
   3.721 +    do
   3.722 +      i=`expr $i + 1`
   3.723 +      testring=$testring$testring
   3.724 +    done
   3.725 +    testring=
   3.726 +    # Add a significant safety factor because C++ compilers can tack on massive
   3.727 +    # amounts of additional arguments before passing them to the linker.
   3.728 +    # It appears as though 1/2 is a usable value.
   3.729 +    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
   3.730 +    ;;
   3.731 +  esac
   3.732 +])
   3.733 +if test -n $lt_cv_sys_max_cmd_len ; then
   3.734 +  AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
   3.735 +else
   3.736 +  AC_MSG_RESULT(none)
   3.737 +fi
   3.738 +])# AC_LIBTOOL_SYS_MAX_CMD_LEN
   3.739 +
   3.740 +
   3.741 +# _LT_AC_CHECK_DLFCN
   3.742 +# --------------------
   3.743 +AC_DEFUN([_LT_AC_CHECK_DLFCN],
   3.744 +[AC_CHECK_HEADERS(dlfcn.h)dnl
   3.745 +])# _LT_AC_CHECK_DLFCN
   3.746 +
   3.747 +
   3.748 +# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
   3.749 +#                           ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
   3.750 +# ------------------------------------------------------------------
   3.751 +AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
   3.752 +[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
   3.753 +if test "$cross_compiling" = yes; then :
   3.754 +  [$4]
   3.755 +else
   3.756 +  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   3.757 +  lt_status=$lt_dlunknown
   3.758 +  cat > conftest.$ac_ext <<EOF
   3.759 +[#line __oline__ "configure"
   3.760 +#include "confdefs.h"
   3.761 +
   3.762 +#if HAVE_DLFCN_H
   3.763 +#include <dlfcn.h>
   3.764 +#endif
   3.765 +
   3.766 +#include <stdio.h>
   3.767 +
   3.768 +#ifdef RTLD_GLOBAL
   3.769 +#  define LT_DLGLOBAL		RTLD_GLOBAL
   3.770 +#else
   3.771 +#  ifdef DL_GLOBAL
   3.772 +#    define LT_DLGLOBAL		DL_GLOBAL
   3.773 +#  else
   3.774 +#    define LT_DLGLOBAL		0
   3.775 +#  endif
   3.776 +#endif
   3.777 +
   3.778 +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   3.779 +   find out it does not work in some platform. */
   3.780 +#ifndef LT_DLLAZY_OR_NOW
   3.781 +#  ifdef RTLD_LAZY
   3.782 +#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
   3.783 +#  else
   3.784 +#    ifdef DL_LAZY
   3.785 +#      define LT_DLLAZY_OR_NOW		DL_LAZY
   3.786 +#    else
   3.787 +#      ifdef RTLD_NOW
   3.788 +#        define LT_DLLAZY_OR_NOW	RTLD_NOW
   3.789 +#      else
   3.790 +#        ifdef DL_NOW
   3.791 +#          define LT_DLLAZY_OR_NOW	DL_NOW
   3.792 +#        else
   3.793 +#          define LT_DLLAZY_OR_NOW	0
   3.794 +#        endif
   3.795 +#      endif
   3.796 +#    endif
   3.797 +#  endif
   3.798 +#endif
   3.799 +
   3.800 +#ifdef __cplusplus
   3.801 +extern "C" void exit (int);
   3.802 +#endif
   3.803 +
   3.804 +void fnord() { int i=42;}
   3.805 +int main ()
   3.806 +{
   3.807 +  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
   3.808 +  int status = $lt_dlunknown;
   3.809 +
   3.810 +  if (self)
   3.811 +    {
   3.812 +      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
   3.813 +      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
   3.814 +      /* dlclose (self); */
   3.815 +    }
   3.816 +
   3.817 +    exit (status);
   3.818 +}]
   3.819 +EOF
   3.820 +  if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
   3.821 +    (./conftest; exit; ) 2>/dev/null
   3.822 +    lt_status=$?
   3.823 +    case x$lt_status in
   3.824 +      x$lt_dlno_uscore) $1 ;;
   3.825 +      x$lt_dlneed_uscore) $2 ;;
   3.826 +      x$lt_unknown|x*) $3 ;;
   3.827 +    esac
   3.828 +  else :
   3.829 +    # compilation failed
   3.830 +    $3
   3.831 +  fi
   3.832 +fi
   3.833 +rm -fr conftest*
   3.834 +])# _LT_AC_TRY_DLOPEN_SELF
   3.835 +
   3.836 +
   3.837 +# AC_LIBTOOL_DLOPEN_SELF
   3.838 +# -------------------
   3.839 +AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
   3.840 +[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
   3.841 +if test "x$enable_dlopen" != xyes; then
   3.842 +  enable_dlopen=unknown
   3.843 +  enable_dlopen_self=unknown
   3.844 +  enable_dlopen_self_static=unknown
   3.845 +else
   3.846 +  lt_cv_dlopen=no
   3.847 +  lt_cv_dlopen_libs=
   3.848 +
   3.849 +  case $host_os in
   3.850 +  beos*)
   3.851 +    lt_cv_dlopen="load_add_on"
   3.852 +    lt_cv_dlopen_libs=
   3.853 +    lt_cv_dlopen_self=yes
   3.854 +    ;;
   3.855 +
   3.856 +  mingw* | pw32*)
   3.857 +    lt_cv_dlopen="LoadLibrary"
   3.858 +    lt_cv_dlopen_libs=
   3.859 +   ;;
   3.860 +
   3.861 +  cygwin*)
   3.862 +    lt_cv_dlopen="dlopen"
   3.863 +    lt_cv_dlopen_libs=
   3.864 +   ;;
   3.865 +
   3.866 +  darwin*)
   3.867 +  # if libdl is installed we need to link against it
   3.868 +    AC_CHECK_LIB([dl], [dlopen],
   3.869 +		[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
   3.870 +    lt_cv_dlopen="dyld"
   3.871 +    lt_cv_dlopen_libs=
   3.872 +    lt_cv_dlopen_self=yes
   3.873 +    ])
   3.874 +   ;;
   3.875 +    
   3.876 +  *)
   3.877 +    AC_CHECK_FUNC([shl_load],
   3.878 +	  [lt_cv_dlopen="shl_load"],
   3.879 +      [AC_CHECK_LIB([dld], [shl_load],
   3.880 +	    [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
   3.881 +	[AC_CHECK_FUNC([dlopen],
   3.882 +	      [lt_cv_dlopen="dlopen"],
   3.883 +	  [AC_CHECK_LIB([dl], [dlopen],
   3.884 +		[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
   3.885 +	    [AC_CHECK_LIB([svld], [dlopen],
   3.886 +		  [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
   3.887 +	      [AC_CHECK_LIB([dld], [dld_link],
   3.888 +		    [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
   3.889 +	      ])
   3.890 +	    ])
   3.891 +	  ])
   3.892 +	])
   3.893 +      ])
   3.894 +    ;;
   3.895 +  esac
   3.896 +
   3.897 +  if test "x$lt_cv_dlopen" != xno; then
   3.898 +    enable_dlopen=yes
   3.899 +  else
   3.900 +    enable_dlopen=no
   3.901 +  fi
   3.902 +
   3.903 +  case $lt_cv_dlopen in
   3.904 +  dlopen)
   3.905 +    save_CPPFLAGS="$CPPFLAGS"
   3.906 +    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
   3.907 +
   3.908 +    save_LDFLAGS="$LDFLAGS"
   3.909 +    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
   3.910 +
   3.911 +    save_LIBS="$LIBS"
   3.912 +    LIBS="$lt_cv_dlopen_libs $LIBS"
   3.913 +
   3.914 +    AC_CACHE_CHECK([whether a program can dlopen itself],
   3.915 +	  lt_cv_dlopen_self, [dnl
   3.916 +	  _LT_AC_TRY_DLOPEN_SELF(
   3.917 +	    lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
   3.918 +	    lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
   3.919 +    ])
   3.920 +
   3.921 +    if test "x$lt_cv_dlopen_self" = xyes; then
   3.922 +      LDFLAGS="$LDFLAGS $link_static_flag"
   3.923 +      AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
   3.924 +    	  lt_cv_dlopen_self_static, [dnl
   3.925 +	  _LT_AC_TRY_DLOPEN_SELF(
   3.926 +	    lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
   3.927 +	    lt_cv_dlopen_self_static=no,  lt_cv_dlopen_self_static=cross)
   3.928 +      ])
   3.929 +    fi
   3.930 +
   3.931 +    CPPFLAGS="$save_CPPFLAGS"
   3.932 +    LDFLAGS="$save_LDFLAGS"
   3.933 +    LIBS="$save_LIBS"
   3.934 +    ;;
   3.935 +  esac
   3.936 +
   3.937 +  case $lt_cv_dlopen_self in
   3.938 +  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
   3.939 +  *) enable_dlopen_self=unknown ;;
   3.940 +  esac
   3.941 +
   3.942 +  case $lt_cv_dlopen_self_static in
   3.943 +  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
   3.944 +  *) enable_dlopen_self_static=unknown ;;
   3.945 +  esac
   3.946 +fi
   3.947 +])# AC_LIBTOOL_DLOPEN_SELF
   3.948 +
   3.949 +
   3.950 +# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
   3.951 +# ---------------------------------
   3.952 +# Check to see if options -c and -o are simultaneously supported by compiler
   3.953 +AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
   3.954 +[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
   3.955 +AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
   3.956 +  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
   3.957 +  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
   3.958 +   $rm -r conftest 2>/dev/null
   3.959 +   mkdir conftest
   3.960 +   cd conftest
   3.961 +   mkdir out
   3.962 +   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
   3.963 +
   3.964 +   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
   3.965 +   # that will create temporary files in the current directory regardless of
   3.966 +   # the output directory.  Thus, making CWD read-only will cause this test
   3.967 +   # to fail, enabling locking or at least warning the user not to do parallel
   3.968 +   # builds.
   3.969 +   chmod -w .
   3.970 +
   3.971 +   lt_compiler_flag="-o out/conftest2.$ac_objext"
   3.972 +   # Insert the option either (1) after the last *FLAGS variable, or
   3.973 +   # (2) before a word containing "conftest.", or (3) at the end.
   3.974 +   # Note that $ac_compile itself does not contain backslashes and begins
   3.975 +   # with a dollar sign (not a hyphen), so the echo should work correctly.
   3.976 +   lt_compile=`echo "$ac_compile" | $SED \
   3.977 +   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
   3.978 +   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
   3.979 +   -e 's:$: $lt_compiler_flag:'`
   3.980 +   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
   3.981 +   (eval "$lt_compile" 2>out/conftest.err)
   3.982 +   ac_status=$?
   3.983 +   cat out/conftest.err >&AS_MESSAGE_LOG_FD
   3.984 +   echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
   3.985 +   if (exit $ac_status) && test -s out/conftest2.$ac_objext
   3.986 +   then
   3.987 +     # The compiler can only warn and ignore the option if not recognized
   3.988 +     # So say no if there are warnings
   3.989 +     if test ! -s out/conftest.err; then
   3.990 +       _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
   3.991 +     fi
   3.992 +   fi
   3.993 +   chmod u+w .
   3.994 +   $rm conftest* out/*
   3.995 +   rmdir out
   3.996 +   cd ..
   3.997 +   rmdir conftest
   3.998 +   $rm conftest*
   3.999 +])
  3.1000 +])# AC_LIBTOOL_PROG_CC_C_O
  3.1001 +
  3.1002 +
  3.1003 +# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
  3.1004 +# -----------------------------------------
  3.1005 +# Check to see if we can do hard links to lock some files if needed
  3.1006 +AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
  3.1007 +[AC_REQUIRE([_LT_AC_LOCK])dnl
  3.1008 +
  3.1009 +hard_links="nottested"
  3.1010 +if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
  3.1011 +  # do not overwrite the value of need_locks provided by the user
  3.1012 +  AC_MSG_CHECKING([if we can lock with hard links])
  3.1013 +  hard_links=yes
  3.1014 +  $rm conftest*
  3.1015 +  ln conftest.a conftest.b 2>/dev/null && hard_links=no
  3.1016 +  touch conftest.a
  3.1017 +  ln conftest.a conftest.b 2>&5 || hard_links=no
  3.1018 +  ln conftest.a conftest.b 2>/dev/null && hard_links=no
  3.1019 +  AC_MSG_RESULT([$hard_links])
  3.1020 +  if test "$hard_links" = no; then
  3.1021 +    AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
  3.1022 +    need_locks=warn
  3.1023 +  fi
  3.1024 +else
  3.1025 +  need_locks=no
  3.1026 +fi
  3.1027 +])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
  3.1028 +
  3.1029 +
  3.1030 +# AC_LIBTOOL_OBJDIR
  3.1031 +# -----------------
  3.1032 +AC_DEFUN([AC_LIBTOOL_OBJDIR],
  3.1033 +[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
  3.1034 +[rm -f .libs 2>/dev/null
  3.1035 +mkdir .libs 2>/dev/null
  3.1036 +if test -d .libs; then
  3.1037 +  lt_cv_objdir=.libs
  3.1038 +else
  3.1039 +  # MS-DOS does not allow filenames that begin with a dot.
  3.1040 +  lt_cv_objdir=_libs
  3.1041 +fi
  3.1042 +rmdir .libs 2>/dev/null])
  3.1043 +objdir=$lt_cv_objdir
  3.1044 +])# AC_LIBTOOL_OBJDIR
  3.1045 +
  3.1046 +
  3.1047 +# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
  3.1048 +# ----------------------------------------------
  3.1049 +# Check hardcoding attributes.
  3.1050 +AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
  3.1051 +[AC_MSG_CHECKING([how to hardcode library paths into programs])
  3.1052 +_LT_AC_TAGVAR(hardcode_action, $1)=
  3.1053 +if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
  3.1054 +   test -n "$_LT_AC_TAGVAR(runpath_var $1)" || \
  3.1055 +   test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)"="Xyes" ; then
  3.1056 +
  3.1057 +  # We can hardcode non-existant directories.
  3.1058 +  if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
  3.1059 +     # If the only mechanism to avoid hardcoding is shlibpath_var, we
  3.1060 +     # have to relink, otherwise we might link with an installed library
  3.1061 +     # when we should be linking with a yet-to-be-installed one
  3.1062 +     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
  3.1063 +     test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
  3.1064 +    # Linking always hardcodes the temporary library directory.
  3.1065 +    _LT_AC_TAGVAR(hardcode_action, $1)=relink
  3.1066 +  else
  3.1067 +    # We can link without hardcoding, and we can hardcode nonexisting dirs.
  3.1068 +    _LT_AC_TAGVAR(hardcode_action, $1)=immediate
  3.1069 +  fi
  3.1070 +else
  3.1071 +  # We cannot hardcode anything, or else we can only hardcode existing
  3.1072 +  # directories.
  3.1073 +  _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
  3.1074 +fi
  3.1075 +AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
  3.1076 +
  3.1077 +if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
  3.1078 +  # Fast installation is not supported
  3.1079 +  enable_fast_install=no
  3.1080 +elif test "$shlibpath_overrides_runpath" = yes ||
  3.1081 +     test "$enable_shared" = no; then
  3.1082 +  # Fast installation is not necessary
  3.1083 +  enable_fast_install=needless
  3.1084 +fi
  3.1085 +])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
  3.1086 +
  3.1087 +
  3.1088 +# AC_LIBTOOL_SYS_LIB_STRIP
  3.1089 +# ------------------------
  3.1090 +AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
  3.1091 +[striplib=
  3.1092 +old_striplib=
  3.1093 +AC_MSG_CHECKING([whether stripping libraries is possible])
  3.1094 +if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  3.1095 +  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  3.1096 +  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  3.1097 +  AC_MSG_RESULT([yes])
  3.1098 +else
  3.1099 +# FIXME - insert some real tests, host_os isn't really good enough
  3.1100 +  case $host_os in
  3.1101 +   darwin*)
  3.1102 +       if test -n "$STRIP" ; then
  3.1103 +         striplib="$STRIP -x"
  3.1104 +         AC_MSG_RESULT([yes])
  3.1105 +       else
  3.1106 +  AC_MSG_RESULT([no])
  3.1107 +fi
  3.1108 +       ;;
  3.1109 +   *)
  3.1110 +  AC_MSG_RESULT([no])
  3.1111 +    ;;
  3.1112 +  esac  
  3.1113 +fi
  3.1114 +])# AC_LIBTOOL_SYS_LIB_STRIP
  3.1115 +
  3.1116 +
  3.1117 +# AC_LIBTOOL_SYS_DYNAMIC_LINKER
  3.1118 +# -----------------------------
  3.1119 +# PORTME Fill in your ld.so characteristics
  3.1120 +AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
  3.1121 +[AC_MSG_CHECKING([dynamic linker characteristics])
  3.1122 +library_names_spec=
  3.1123 +libname_spec='lib$name'
  3.1124 +soname_spec=
  3.1125 +shrext=".so"
  3.1126 +postinstall_cmds=
  3.1127 +postuninstall_cmds=
  3.1128 +finish_cmds=
  3.1129 +finish_eval=
  3.1130 +shlibpath_var=
  3.1131 +shlibpath_overrides_runpath=unknown
  3.1132 +version_type=none
  3.1133 +dynamic_linker="$host_os ld.so"
  3.1134 +sys_lib_dlsearch_path_spec="/lib /usr/lib"
  3.1135 +if test "$GCC" = yes; then
  3.1136 +  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  3.1137 +  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  3.1138 +    # if the path contains ";" then we assume it to be the separator
  3.1139 +    # otherwise default to the standard path separator (i.e. ":") - it is
  3.1140 +    # assumed that no part of a normal pathname contains ";" but that should
  3.1141 +    # okay in the real world where ";" in dirpaths is itself problematic.
  3.1142 +    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  3.1143 +  else
  3.1144 +    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
  3.1145 +  fi
  3.1146 +else
  3.1147 +  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  3.1148 +fi
  3.1149 +need_lib_prefix=unknown
  3.1150 +hardcode_into_libs=no
  3.1151 +
  3.1152 +# when you set need_version to no, make sure it does not cause -set_version
  3.1153 +# flags to be left without arguments
  3.1154 +need_version=unknown
  3.1155 +
  3.1156 +case $host_os in
  3.1157 +aix3*)
  3.1158 +  version_type=linux
  3.1159 +  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  3.1160 +  shlibpath_var=LIBPATH
  3.1161 +
  3.1162 +  # AIX 3 has no versioning support, so we append a major version to the name.
  3.1163 +  soname_spec='${libname}${release}${shared_ext}$major'
  3.1164 +  ;;
  3.1165 +
  3.1166 +aix4* | aix5*)
  3.1167 +  version_type=linux
  3.1168 +  need_lib_prefix=no
  3.1169 +  need_version=no
  3.1170 +  hardcode_into_libs=yes
  3.1171 +  if test "$host_cpu" = ia64; then
  3.1172 +    # AIX 5 supports IA64
  3.1173 +    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  3.1174 +    shlibpath_var=LD_LIBRARY_PATH
  3.1175 +  else
  3.1176 +    # With GCC up to 2.95.x, collect2 would create an import file
  3.1177 +    # for dependence libraries.  The import file would start with
  3.1178 +    # the line `#! .'.  This would cause the generated library to
  3.1179 +    # depend on `.', always an invalid library.  This was fixed in
  3.1180 +    # development snapshots of GCC prior to 3.0.
  3.1181 +    case $host_os in
  3.1182 +      aix4 | aix4.[[01]] | aix4.[[01]].*)
  3.1183 +      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  3.1184 +	   echo ' yes '
  3.1185 +	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  3.1186 +	:
  3.1187 +      else
  3.1188 +	can_build_shared=no
  3.1189 +      fi
  3.1190 +      ;;
  3.1191 +    esac
  3.1192 +    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  3.1193 +    # soname into executable. Probably we can add versioning support to
  3.1194 +    # collect2, so additional links can be useful in future.
  3.1195 +    if test "$aix_use_runtimelinking" = yes; then
  3.1196 +      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  3.1197 +      # instead of lib<name>.a to let people know that these are not
  3.1198 +      # typical AIX shared libraries.
  3.1199 +      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  3.1200 +    else
  3.1201 +      # We preserve .a as extension for shared libraries through AIX4.2
  3.1202 +      # and later when we are not doing run time linking.
  3.1203 +      library_names_spec='${libname}${release}.a $libname.a'
  3.1204 +      soname_spec='${libname}${release}${shared_ext}$major'
  3.1205 +    fi
  3.1206 +    shlibpath_var=LIBPATH
  3.1207 +  fi
  3.1208 +  ;;
  3.1209 +
  3.1210 +amigaos*)
  3.1211 +  library_names_spec='$libname.ixlibrary $libname.a'
  3.1212 +  # Create ${libname}_ixlibrary.a entries in /sys/libs.
  3.1213 +  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'
  3.1214 +  ;;
  3.1215 +
  3.1216 +beos*)
  3.1217 +  library_names_spec='${libname}${shared_ext}'
  3.1218 +  dynamic_linker="$host_os ld.so"
  3.1219 +  shlibpath_var=LIBRARY_PATH
  3.1220 +  ;;
  3.1221 +
  3.1222 +bsdi4*)
  3.1223 +  version_type=linux
  3.1224 +  need_version=no
  3.1225 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  3.1226 +  soname_spec='${libname}${release}${shared_ext}$major'
  3.1227 +  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  3.1228 +  shlibpath_var=LD_LIBRARY_PATH
  3.1229 +  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  3.1230 +  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  3.1231 +  # the default ld.so.conf also contains /usr/contrib/lib and
  3.1232 +  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  3.1233 +  # libtool to hard-code these into programs
  3.1234 +  ;;
  3.1235 +
  3.1236 +cygwin* | mingw* | pw32*)
  3.1237 +  version_type=windows
  3.1238 +  shrext=".dll"
  3.1239 +  need_version=no
  3.1240 +  need_lib_prefix=no
  3.1241 +
  3.1242 +  case $GCC,$host_os in
  3.1243 +  yes,cygwin* | yes,mingw* | yes,pw32*)
  3.1244 +    library_names_spec='$libname.dll.a'
  3.1245 +    # DLL is installed to $(libdir)/../bin by postinstall_cmds
  3.1246 +    postinstall_cmds='base_file=`basename \${file}`~
  3.1247 +      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  3.1248 +      dldir=$destdir/`dirname \$dlpath`~
  3.1249 +      test -d \$dldir || mkdir -p \$dldir~
  3.1250 +      $install_prog $dir/$dlname \$dldir/$dlname'
  3.1251 +    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  3.1252 +      dlpath=$dir/\$dldll~
  3.1253 +       $rm \$dlpath'
  3.1254 +    shlibpath_overrides_runpath=yes
  3.1255 +
  3.1256 +    case $host_os in
  3.1257 +    cygwin*)
  3.1258 +      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  3.1259 +      #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  3.1260 +      soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  3.1261 +      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  3.1262 +      ;;
  3.1263 +    mingw*)
  3.1264 +      # MinGW DLLs use traditional 'lib' prefix
  3.1265 +      #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  3.1266 +      soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  3.1267 +      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  3.1268 +      if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
  3.1269 +        # It is most probably a Windows format PATH printed by
  3.1270 +        # mingw gcc, but we are running on Cygwin. Gcc prints its search
  3.1271 +        # path with ; separators, and with drive letters. We can handle the
  3.1272 +        # drive letters (cygwin fileutils understands them), so leave them,
  3.1273 +        # especially as we might pass files found there to a mingw objdump,
  3.1274 +        # which wouldn't understand a cygwinified path. Ahh.
  3.1275 +        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  3.1276 +      else
  3.1277 +        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
  3.1278 +      fi
  3.1279 +      ;;
  3.1280 +    pw32*)
  3.1281 +      # pw32 DLLs use 'pw' prefix rather than 'lib'
  3.1282 +      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  3.1283 +      ;;
  3.1284 +    esac
  3.1285 +    ;;
  3.1286 +
  3.1287 +  *)
  3.1288 +    library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
  3.1289 +    ;;
  3.1290 +  esac
  3.1291 +  dynamic_linker='Win32 ld.exe'
  3.1292 +  # FIXME: first we should search . and the directory the executable is in
  3.1293 +  shlibpath_var=PATH
  3.1294 +  ;;
  3.1295 +
  3.1296 +darwin* | rhapsody*)
  3.1297 +  dynamic_linker="$host_os dyld"
  3.1298 +  version_type=darwin
  3.1299 +  need_lib_prefix=no
  3.1300 +  need_version=no
  3.1301 +  # FIXME: Relying on posixy $() will cause problems for
  3.1302 +  #        cross-compilation, but unfortunately the echo tests do not
  3.1303 +  #        yet detect zsh echo's removal of \ escapes.
  3.1304 +  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  3.1305 +  soname_spec='${libname}${release}${major}$shared_ext'
  3.1306 +  shlibpath_overrides_runpath=yes
  3.1307 +  shlibpath_var=DYLD_LIBRARY_PATH
  3.1308 +  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
  3.1309 +  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  3.1310 +  if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then 
  3.1311 +  sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  3.1312 +  fi
  3.1313 +  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  3.1314 +  ;;
  3.1315 +
  3.1316 +dgux*)
  3.1317 +  version_type=linux
  3.1318 +  need_lib_prefix=no
  3.1319 +  need_version=no
  3.1320 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  3.1321 +  soname_spec='${libname}${release}${shared_ext}$major'
  3.1322 +  shlibpath_var=LD_LIBRARY_PATH
  3.1323 +  ;;
  3.1324 +
  3.1325 +freebsd1*)
  3.1326 +  dynamic_linker=no
  3.1327 +  ;;
  3.1328 +
  3.1329 +freebsd*)
  3.1330 +  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  3.1331 +  version_type=freebsd-$objformat
  3.1332 +  case $version_type in
  3.1333 +    freebsd-elf*)
  3.1334 +      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  3.1335 +      need_version=no
  3.1336 +      need_lib_prefix=no
  3.1337 +      ;;
  3.1338 +    freebsd-*)
  3.1339 +      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  3.1340 +      need_version=yes
  3.1341 +      ;;
  3.1342 +  esac
  3.1343 +  shlibpath_var=LD_LIBRARY_PATH
  3.1344 +  case $host_os in
  3.1345 +  freebsd2*)
  3.1346 +    shlibpath_overrides_runpath=yes
  3.1347 +    ;;
  3.1348 +  freebsd3.[01]* | freebsdelf3.[01]*)
  3.1349 +    shlibpath_overrides_runpath=yes
  3.1350 +    hardcode_into_libs=yes
  3.1351 +    ;;
  3.1352 +  *) # from 3.2 on
  3.1353 +    shlibpath_overrides_runpath=no
  3.1354 +    hardcode_into_libs=yes
  3.1355 +    ;;
  3.1356 +  esac
  3.1357 +  ;;
  3.1358 +
  3.1359 +gnu*)
  3.1360 +  version_type=linux
  3.1361 +  need_lib_prefix=no
  3.1362 +  need_version=no
  3.1363 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  3.1364 +  soname_spec='${libname}${release}${shared_ext}$major'
  3.1365 +  shlibpath_var=LD_LIBRARY_PATH
  3.1366 +  hardcode_into_libs=yes
  3.1367 +  ;;
  3.1368 +
  3.1369 +hpux9* | hpux10* | hpux11*)
  3.1370 +  # Give a soname corresponding to the major version so that dld.sl refuses to
  3.1371 +  # link against other versions.
  3.1372 +  version_type=sunos
  3.1373 +  need_lib_prefix=no
  3.1374 +  need_version=no
  3.1375 +  case "$host_cpu" in
  3.1376 +  ia64*)
  3.1377 +    shrext='.so'
  3.1378 +    hardcode_into_libs=yes
  3.1379 +    dynamic_linker="$host_os dld.so"
  3.1380 +    shlibpath_var=LD_LIBRARY_PATH
  3.1381 +    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  3.1382 +    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  3.1383 +    soname_spec='${libname}${release}${shared_ext}$major'
  3.1384 +    if test "X$HPUX_IA64_MODE" = X32; then
  3.1385 +      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  3.1386 +    else
  3.1387 +      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  3.1388 +    fi
  3.1389 +    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  3.1390 +    ;;
  3.1391 +   hppa*64*)
  3.1392 +     shrext='.sl'
  3.1393 +     hardcode_into_libs=yes
  3.1394 +     dynamic_linker="$host_os dld.sl"
  3.1395 +     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  3.1396 +     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  3.1397 +     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  3.1398 +     soname_spec='${libname}${release}${shared_ext}$major'
  3.1399 +     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  3.1400 +     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  3.1401 +     ;;
  3.1402 +   *)
  3.1403 +    shrext='.sl'
  3.1404 +    dynamic_linker="$host_os dld.sl"
  3.1405 +    shlibpath_var=SHLIB_PATH
  3.1406 +    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  3.1407 +    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  3.1408 +    soname_spec='${libname}${release}${shared_ext}$major'
  3.1409 +    ;;
  3.1410 +  esac
  3.1411 +  # HP-UX runs *really* slowly unless shared libraries are mode 555.
  3.1412 +  postinstall_cmds='chmod 555 $lib'
  3.1413 +  ;;
  3.1414 +
  3.1415 +irix5* | irix6* | nonstopux*)
  3.1416 +  case $host_os in
  3.1417 +    nonstopux*) version_type=nonstopux ;;
  3.1418 +    *)
  3.1419 +	if test "$lt_cv_prog_gnu_ld" = yes; then
  3.1420 +		version_type=linux
  3.1421 +	else
  3.1422 +		version_type=irix
  3.1423 +	fi ;;
  3.1424 +  esac
  3.1425 +  need_lib_prefix=no
  3.1426 +  need_version=no
  3.1427 +  soname_spec='${libname}${release}${shared_ext}$major'
  3.1428 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  3.1429 +  case $host_os in
  3.1430 +  irix5* | nonstopux*)
  3.1431 +    libsuff= shlibsuff=
  3.1432 +    ;;
  3.1433 +  *)
  3.1434 +    case $LD in # libtool.m4 will add one of these switches to LD
  3.1435 +    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  3.1436 +      libsuff= shlibsuff= libmagic=32-bit;;
  3.1437 +    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  3.1438 +      libsuff=32 shlibsuff=N32 libmagic=N32;;
  3.1439 +    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  3.1440 +      libsuff=64 shlibsuff=64 libmagic=64-bit;;
  3.1441 +    *) libsuff= shlibsuff= libmagic=never-match;;
  3.1442 +    esac
  3.1443 +    ;;
  3.1444 +  esac
  3.1445 +  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  3.1446 +  shlibpath_overrides_runpath=no
  3.1447 +  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  3.1448 +  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  3.1449 +  hardcode_into_libs=yes
  3.1450 +  ;;
  3.1451 +
  3.1452 +# No shared lib support for Linux oldld, aout, or coff.
  3.1453 +linux*oldld* | linux*aout* | linux*coff*)
  3.1454 +  dynamic_linker=no
  3.1455 +  ;;
  3.1456 +
  3.1457 +# This must be Linux ELF.
  3.1458 +linux*)
  3.1459 +  version_type=linux
  3.1460 +  need_lib_prefix=no
  3.1461 +  need_version=no
  3.1462 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  3.1463 +  soname_spec='${libname}${release}${shared_ext}$major'
  3.1464 +  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  3.1465 +  shlibpath_var=LD_LIBRARY_PATH
  3.1466 +  shlibpath_overrides_runpath=no
  3.1467 +  # This implies no fast_install, which is unacceptable.
  3.1468 +  # Some rework will be needed to allow for fast_install
  3.1469 +  # before this can be enabled.
  3.1470 +  hardcode_into_libs=yes
  3.1471 +
  3.1472 +  # We used to test for /lib/ld.so.1 and disable shared libraries on
  3.1473 +  # powerpc, because MkLinux only supported shared libraries with the
  3.1474 +  # GNU dynamic linker.  Since this was broken with cross compilers,
  3.1475 +  # most powerpc-linux boxes support dynamic linking these days and
  3.1476 +  # people can always --disable-shared, the test was removed, and we
  3.1477 +  # assume the GNU/Linux dynamic linker is in use.
  3.1478 +  dynamic_linker='GNU/Linux ld.so'
  3.1479 +  ;;
  3.1480 +
  3.1481 +netbsd*)
  3.1482 +  version_type=sunos
  3.1483 +  need_lib_prefix=no
  3.1484 +  need_version=no
  3.1485 +  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  3.1486 +    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  3.1487 +    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  3.1488 +    dynamic_linker='NetBSD (a.out) ld.so'
  3.1489 +  else
  3.1490 +    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
  3.1491 +    soname_spec='${libname}${release}${shared_ext}$major'
  3.1492 +    dynamic_linker='NetBSD ld.elf_so'
  3.1493 +  fi
  3.1494 +  shlibpath_var=LD_LIBRARY_PATH
  3.1495 +  shlibpath_overrides_runpath=yes
  3.1496 +  hardcode_into_libs=yes
  3.1497 +  ;;
  3.1498 +
  3.1499 +newsos6)
  3.1500 +  version_type=linux
  3.1501 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  3.1502 +  shlibpath_var=LD_LIBRARY_PATH
  3.1503 +  shlibpath_overrides_runpath=yes
  3.1504 +  ;;
  3.1505 +
  3.1506 +nto-qnx)
  3.1507 +  version_type=linux
  3.1508 +  need_lib_prefix=no
  3.1509 +  need_version=no
  3.1510 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  3.1511 +  soname_spec='${libname}${release}${shared_ext}$major'
  3.1512 +  shlibpath_var=LD_LIBRARY_PATH
  3.1513 +  shlibpath_overrides_runpath=yes
  3.1514 +  ;;
  3.1515 +
  3.1516 +openbsd*)
  3.1517 +  version_type=sunos
  3.1518 +  need_lib_prefix=no
  3.1519 +  need_version=no
  3.1520 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  3.1521 +  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  3.1522 +  shlibpath_var=LD_LIBRARY_PATH
  3.1523 +  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  3.1524 +    case $host_os in
  3.1525 +      openbsd2.[[89]] | openbsd2.[[89]].*)
  3.1526 +	shlibpath_overrides_runpath=no
  3.1527 +	;;
  3.1528 +      *)
  3.1529 +	shlibpath_overrides_runpath=yes
  3.1530 +	;;
  3.1531 +      esac
  3.1532 +  else
  3.1533 +    shlibpath_overrides_runpath=yes
  3.1534 +  fi
  3.1535 +  ;;
  3.1536 +
  3.1537 +os2*)
  3.1538 +  libname_spec='$name'
  3.1539 +  shrext=".dll"
  3.1540 +  need_lib_prefix=no
  3.1541 +  library_names_spec='$libname${shared_ext} $libname.a'
  3.1542 +  dynamic_linker='OS/2 ld.exe'
  3.1543 +  shlibpath_var=LIBPATH
  3.1544 +  ;;
  3.1545 +
  3.1546 +osf3* | osf4* | osf5*)
  3.1547 +  version_type=osf
  3.1548 +  need_lib_prefix=no
  3.1549 +  need_version=no
  3.1550 +  soname_spec='${libname}${release}${shared_ext}$major'
  3.1551 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  3.1552 +  shlibpath_var=LD_LIBRARY_PATH
  3.1553 +  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  3.1554 +  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  3.1555 +  ;;
  3.1556 +
  3.1557 +sco3.2v5*)
  3.1558 +  version_type=osf
  3.1559 +  soname_spec='${libname}${release}${shared_ext}$major'
  3.1560 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  3.1561 +  shlibpath_var=LD_LIBRARY_PATH
  3.1562 +  ;;
  3.1563 +
  3.1564 +solaris*)
  3.1565 +  version_type=linux
  3.1566 +  need_lib_prefix=no
  3.1567 +  need_version=no
  3.1568 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  3.1569 +  soname_spec='${libname}${release}${shared_ext}$major'
  3.1570 +  shlibpath_var=LD_LIBRARY_PATH
  3.1571 +  shlibpath_overrides_runpath=yes
  3.1572 +  hardcode_into_libs=yes
  3.1573 +  # ldd complains unless libraries are executable
  3.1574 +  postinstall_cmds='chmod +x $lib'
  3.1575 +  ;;
  3.1576 +
  3.1577 +sunos4*)
  3.1578 +  version_type=sunos
  3.1579 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  3.1580 +  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  3.1581 +  shlibpath_var=LD_LIBRARY_PATH
  3.1582 +  shlibpath_overrides_runpath=yes
  3.1583 +  if test "$with_gnu_ld" = yes; then
  3.1584 +    need_lib_prefix=no
  3.1585 +  fi
  3.1586 +  need_version=yes
  3.1587 +  ;;
  3.1588 +
  3.1589 +sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  3.1590 +  version_type=linux
  3.1591 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  3.1592 +  soname_spec='${libname}${release}${shared_ext}$major'
  3.1593 +  shlibpath_var=LD_LIBRARY_PATH
  3.1594 +  case $host_vendor in
  3.1595 +    sni)
  3.1596 +      shlibpath_overrides_runpath=no
  3.1597 +      need_lib_prefix=no
  3.1598 +      export_dynamic_flag_spec='${wl}-Blargedynsym'
  3.1599 +      runpath_var=LD_RUN_PATH
  3.1600 +      ;;
  3.1601 +    siemens)
  3.1602 +      need_lib_prefix=no
  3.1603 +      ;;
  3.1604 +    motorola)
  3.1605 +      need_lib_prefix=no
  3.1606 +      need_version=no
  3.1607 +      shlibpath_overrides_runpath=no
  3.1608 +      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  3.1609 +      ;;
  3.1610 +  esac
  3.1611 +  ;;
  3.1612 +
  3.1613 +sysv4*MP*)
  3.1614 +  if test -d /usr/nec ;then
  3.1615 +    version_type=linux
  3.1616 +    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  3.1617 +    soname_spec='$libname${shared_ext}.$major'
  3.1618 +    shlibpath_var=LD_LIBRARY_PATH
  3.1619 +  fi
  3.1620 +  ;;
  3.1621 +
  3.1622 +uts4*)
  3.1623 +  version_type=linux
  3.1624 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  3.1625 +  soname_spec='${libname}${release}${shared_ext}$major'
  3.1626 +  shlibpath_var=LD_LIBRARY_PATH
  3.1627 +  ;;
  3.1628 +
  3.1629 +*)
  3.1630 +  dynamic_linker=no
  3.1631 +  ;;
  3.1632  esac
  3.1633 -])
  3.1634 -
  3.1635 -# AC_LIBTOOL_DLOPEN - enable checks for dlopen support
  3.1636 -AC_DEFUN(AC_LIBTOOL_DLOPEN, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])])
  3.1637 -
  3.1638 -# AC_LIBTOOL_WIN32_DLL - declare package support for building win32 dll's
  3.1639 -AC_DEFUN(AC_LIBTOOL_WIN32_DLL, [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])])
  3.1640 -
  3.1641 -# AC_ENABLE_SHARED - implement the --enable-shared flag
  3.1642 -# Usage: AC_ENABLE_SHARED[(DEFAULT)]
  3.1643 -#   Where DEFAULT is either `yes' or `no'.  If omitted, it defaults to
  3.1644 -#   `yes'.
  3.1645 -AC_DEFUN(AC_ENABLE_SHARED, [dnl
  3.1646 -define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
  3.1647 -AC_ARG_ENABLE(shared,
  3.1648 -changequote(<<, >>)dnl
  3.1649 -<<  --enable-shared[=PKGS]  build shared libraries [default=>>AC_ENABLE_SHARED_DEFAULT],
  3.1650 -changequote([, ])dnl
  3.1651 -[p=${PACKAGE-default}
  3.1652 -case "$enableval" in
  3.1653 -yes) enable_shared=yes ;;
  3.1654 -no) enable_shared=no ;;
  3.1655 -*)
  3.1656 -  enable_shared=no
  3.1657 -  # Look at the argument we got.  We use all the common list separators.
  3.1658 -  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  3.1659 -  for pkg in $enableval; do
  3.1660 -    if test "X$pkg" = "X$p"; then
  3.1661 -      enable_shared=yes
  3.1662 +AC_MSG_RESULT([$dynamic_linker])
  3.1663 +test "$dynamic_linker" = no && can_build_shared=no
  3.1664 +])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
  3.1665 +
  3.1666 +
  3.1667 +# _LT_AC_TAGCONFIG
  3.1668 +# ----------------
  3.1669 +AC_DEFUN([_LT_AC_TAGCONFIG],
  3.1670 +[AC_ARG_WITH([tags],
  3.1671 +    [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
  3.1672 +        [include additional configurations @<:@automatic@:>@])],
  3.1673 +    [tagnames="$withval"])
  3.1674 +
  3.1675 +if test -f "$ltmain" && test -n "$tagnames"; then
  3.1676 +  if test ! -f "${ofile}"; then
  3.1677 +    AC_MSG_WARN([output file `$ofile' does not exist])
  3.1678 +  fi
  3.1679 +
  3.1680 +  if test -z "$LTCC"; then
  3.1681 +    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  3.1682 +    if test -z "$LTCC"; then
  3.1683 +      AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
  3.1684 +    else
  3.1685 +      AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
  3.1686 +    fi
  3.1687 +  fi
  3.1688 +
  3.1689 +  # Extract list of available tagged configurations in $ofile.
  3.1690 +  # Note that this assumes the entire list is on one line.
  3.1691 +  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  3.1692 +
  3.1693 +  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3.1694 +  for tagname in $tagnames; do
  3.1695 +    IFS="$lt_save_ifs"
  3.1696 +    # Check whether tagname contains only valid characters
  3.1697 +    case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
  3.1698 +    "") ;;
  3.1699 +    *)  AC_MSG_ERROR([invalid tag name: $tagname])
  3.1700 +	;;
  3.1701 +    esac
  3.1702 +
  3.1703 +    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  3.1704 +    then
  3.1705 +      AC_MSG_ERROR([tag name \"$tagname\" already exists])
  3.1706 +    fi
  3.1707 +
  3.1708 +    # Update the list of available tags.
  3.1709 +    if test -n "$tagname"; then
  3.1710 +      echo appending configuration tag \"$tagname\" to $ofile
  3.1711 +
  3.1712 +      case $tagname in
  3.1713 +      CXX)
  3.1714 +	if test -n "$CXX" && test "X$CXX" != "Xno"; then
  3.1715 +	  AC_LIBTOOL_LANG_CXX_CONFIG
  3.1716 +	else
  3.1717 +	  tagname=""
  3.1718 +	fi
  3.1719 +	;;
  3.1720 +
  3.1721 +      F77)
  3.1722 +	if test -n "$F77" && test "X$F77" != "Xno"; then
  3.1723 +	  AC_LIBTOOL_LANG_F77_CONFIG
  3.1724 +	else
  3.1725 +	  tagname=""
  3.1726 +	fi
  3.1727 +	;;
  3.1728 +
  3.1729 +      GCJ)
  3.1730 +	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
  3.1731 +	  AC_LIBTOOL_LANG_GCJ_CONFIG
  3.1732 +	else
  3.1733 +	  tagname=""
  3.1734 +	fi
  3.1735 +	;;
  3.1736 +
  3.1737 +      RC)
  3.1738 +	AC_LIBTOOL_LANG_RC_CONFIG
  3.1739 +	;;
  3.1740 +
  3.1741 +      *)
  3.1742 +	AC_MSG_ERROR([Unsupported tag name: $tagname])
  3.1743 +	;;
  3.1744 +      esac
  3.1745 +
  3.1746 +      # Append the new tag name to the list of available tags.
  3.1747 +      if test -n "$tagname" ; then
  3.1748 +      available_tags="$available_tags $tagname"
  3.1749 +    fi
  3.1750      fi
  3.1751    done
  3.1752 -  IFS="$ac_save_ifs"
  3.1753 +  IFS="$lt_save_ifs"
  3.1754 +
  3.1755 +  # Now substitute the updated list of available tags.
  3.1756 +  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
  3.1757 +    mv "${ofile}T" "$ofile"
  3.1758 +    chmod +x "$ofile"
  3.1759 +  else
  3.1760 +    rm -f "${ofile}T"
  3.1761 +    AC_MSG_ERROR([unable to update list of available tagged configurations.])
  3.1762 +  fi
  3.1763 +fi
  3.1764 +])# _LT_AC_TAGCONFIG
  3.1765 +
  3.1766 +
  3.1767 +# AC_LIBTOOL_DLOPEN
  3.1768 +# -----------------
  3.1769 +# enable checks for dlopen support
  3.1770 +AC_DEFUN([AC_LIBTOOL_DLOPEN],
  3.1771 + [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
  3.1772 +])# AC_LIBTOOL_DLOPEN
  3.1773 +
  3.1774 +
  3.1775 +# AC_LIBTOOL_WIN32_DLL
  3.1776 +# --------------------
  3.1777 +# declare package support for building win32 dll's
  3.1778 +AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
  3.1779 +[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
  3.1780 +])# AC_LIBTOOL_WIN32_DLL
  3.1781 +
  3.1782 +
  3.1783 +# AC_ENABLE_SHARED([DEFAULT])
  3.1784 +# ---------------------------
  3.1785 +# implement the --enable-shared flag
  3.1786 +# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
  3.1787 +AC_DEFUN([AC_ENABLE_SHARED],
  3.1788 +[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
  3.1789 +AC_ARG_ENABLE([shared],
  3.1790 +    [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
  3.1791 +	[build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
  3.1792 +    [p=${PACKAGE-default}
  3.1793 +    case $enableval in
  3.1794 +    yes) enable_shared=yes ;;
  3.1795 +    no) enable_shared=no ;;
  3.1796 +    *)
  3.1797 +      enable_shared=no
  3.1798 +      # Look at the argument we got.  We use all the common list separators.
  3.1799 +      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3.1800 +      for pkg in $enableval; do
  3.1801 +	IFS="$lt_save_ifs"
  3.1802 +	if test "X$pkg" = "X$p"; then
  3.1803 +	  enable_shared=yes
  3.1804 +	fi
  3.1805 +      done
  3.1806 +      IFS="$lt_save_ifs"
  3.1807 +      ;;
  3.1808 +    esac],
  3.1809 +    [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
  3.1810 +])# AC_ENABLE_SHARED
  3.1811 +
  3.1812 +
  3.1813 +# AC_DISABLE_SHARED
  3.1814 +# -----------------
  3.1815 +#- set the default shared flag to --disable-shared
  3.1816 +AC_DEFUN([AC_DISABLE_SHARED],
  3.1817 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  3.1818 +AC_ENABLE_SHARED(no)
  3.1819 +])# AC_DISABLE_SHARED
  3.1820 +
  3.1821 +
  3.1822 +# AC_ENABLE_STATIC([DEFAULT])
  3.1823 +# ---------------------------
  3.1824 +# implement the --enable-static flag
  3.1825 +# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
  3.1826 +AC_DEFUN([AC_ENABLE_STATIC],
  3.1827 +[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
  3.1828 +AC_ARG_ENABLE([static],
  3.1829 +    [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
  3.1830 +	[build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
  3.1831 +    [p=${PACKAGE-default}
  3.1832 +    case $enableval in
  3.1833 +    yes) enable_static=yes ;;
  3.1834 +    no) enable_static=no ;;
  3.1835 +    *)
  3.1836 +     enable_static=no
  3.1837 +      # Look at the argument we got.  We use all the common list separators.
  3.1838 +      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3.1839 +      for pkg in $enableval; do
  3.1840 +	IFS="$lt_save_ifs"
  3.1841 +	if test "X$pkg" = "X$p"; then
  3.1842 +	  enable_static=yes
  3.1843 +	fi
  3.1844 +      done
  3.1845 +      IFS="$lt_save_ifs"
  3.1846 +      ;;
  3.1847 +    esac],
  3.1848 +    [enable_static=]AC_ENABLE_STATIC_DEFAULT)
  3.1849 +])# AC_ENABLE_STATIC
  3.1850 +
  3.1851 +
  3.1852 +# AC_DISABLE_STATIC
  3.1853 +# -----------------
  3.1854 +# set the default static flag to --disable-static
  3.1855 +AC_DEFUN([AC_DISABLE_STATIC],
  3.1856 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  3.1857 +AC_ENABLE_STATIC(no)
  3.1858 +])# AC_DISABLE_STATIC
  3.1859 +
  3.1860 +
  3.1861 +# AC_ENABLE_FAST_INSTALL([DEFAULT])
  3.1862 +# ---------------------------------
  3.1863 +# implement the --enable-fast-install flag
  3.1864 +# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
  3.1865 +AC_DEFUN([AC_ENABLE_FAST_INSTALL],
  3.1866 +[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
  3.1867 +AC_ARG_ENABLE([fast-install],
  3.1868 +    [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
  3.1869 +    [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
  3.1870 +    [p=${PACKAGE-default}
  3.1871 +    case $enableval in
  3.1872 +    yes) enable_fast_install=yes ;;
  3.1873 +    no) enable_fast_install=no ;;
  3.1874 +    *)
  3.1875 +      enable_fast_install=no
  3.1876 +      # Look at the argument we got.  We use all the common list separators.
  3.1877 +      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3.1878 +      for pkg in $enableval; do
  3.1879 +	IFS="$lt_save_ifs"
  3.1880 +	if test "X$pkg" = "X$p"; then
  3.1881 +	  enable_fast_install=yes
  3.1882 +	fi
  3.1883 +      done
  3.1884 +      IFS="$lt_save_ifs"
  3.1885 +      ;;
  3.1886 +    esac],
  3.1887 +    [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
  3.1888 +])# AC_ENABLE_FAST_INSTALL
  3.1889 +
  3.1890 +
  3.1891 +# AC_DISABLE_FAST_INSTALL
  3.1892 +# -----------------------
  3.1893 +# set the default to --disable-fast-install
  3.1894 +AC_DEFUN([AC_DISABLE_FAST_INSTALL],
  3.1895 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  3.1896 +AC_ENABLE_FAST_INSTALL(no)
  3.1897 +])# AC_DISABLE_FAST_INSTALL
  3.1898 +
  3.1899 +
  3.1900 +# AC_LIBTOOL_PICMODE([MODE])
  3.1901 +# --------------------------
  3.1902 +# implement the --with-pic flag
  3.1903 +# MODE is either `yes' or `no'.  If omitted, it defaults to `both'.
  3.1904 +AC_DEFUN([AC_LIBTOOL_PICMODE],
  3.1905 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  3.1906 +pic_mode=ifelse($#,1,$1,default)
  3.1907 +])# AC_LIBTOOL_PICMODE
  3.1908 +
  3.1909 +
  3.1910 +# AC_PROG_EGREP
  3.1911 +# -------------
  3.1912 +# This is predefined starting with Autoconf 2.54, so this conditional
  3.1913 +# definition can be removed once we require Autoconf 2.54 or later.
  3.1914 +m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
  3.1915 +[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
  3.1916 +   [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  3.1917 +    then ac_cv_prog_egrep='grep -E'
  3.1918 +    else ac_cv_prog_egrep='egrep'
  3.1919 +    fi])
  3.1920 + EGREP=$ac_cv_prog_egrep
  3.1921 + AC_SUBST([EGREP])
  3.1922 +])])
  3.1923 +
  3.1924 +
  3.1925 +# AC_PATH_TOOL_PREFIX
  3.1926 +# -------------------
  3.1927 +# find a file program which can recognise shared library
  3.1928 +AC_DEFUN([AC_PATH_TOOL_PREFIX],
  3.1929 +[AC_REQUIRE([AC_PROG_EGREP])dnl
  3.1930 +AC_MSG_CHECKING([for $1])
  3.1931 +AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
  3.1932 +[case $MAGIC_CMD in
  3.1933 +[[\\/*] |  ?:[\\/]*])
  3.1934 +  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  3.1935    ;;
  3.1936 -esac],
  3.1937 -enable_shared=AC_ENABLE_SHARED_DEFAULT)dnl
  3.1938 -])
  3.1939 -
  3.1940 -# AC_DISABLE_SHARED - set the default shared flag to --disable-shared
  3.1941 -AC_DEFUN(AC_DISABLE_SHARED, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  3.1942 -AC_ENABLE_SHARED(no)])
  3.1943 -
  3.1944 -# AC_ENABLE_STATIC - implement the --enable-static flag
  3.1945 -# Usage: AC_ENABLE_STATIC[(DEFAULT)]
  3.1946 -#   Where DEFAULT is either `yes' or `no'.  If omitted, it defaults to
  3.1947 -#   `yes'.
  3.1948 -AC_DEFUN(AC_ENABLE_STATIC, [dnl
  3.1949 -define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
  3.1950 -AC_ARG_ENABLE(static,
  3.1951 -changequote(<<, >>)dnl
  3.1952 -<<  --enable-static[=PKGS]  build static libraries [default=>>AC_ENABLE_STATIC_DEFAULT],
  3.1953 -changequote([, ])dnl
  3.1954 -[p=${PACKAGE-default}
  3.1955 -case "$enableval" in
  3.1956 -yes) enable_static=yes ;;
  3.1957 -no) enable_static=no ;;
  3.1958  *)
  3.1959 -  enable_static=no
  3.1960 -  # Look at the argument we got.  We use all the common list separators.
  3.1961 -  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  3.1962 -  for pkg in $enableval; do
  3.1963 -    if test "X$pkg" = "X$p"; then
  3.1964 -      enable_static=yes
  3.1965 +  lt_save_MAGIC_CMD="$MAGIC_CMD"
  3.1966 +  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3.1967 +dnl $ac_dummy forces splitting on constant user-supplied paths.
  3.1968 +dnl POSIX.2 word splitting is done only on the output of word expansions,
  3.1969 +dnl not every word.  This closes a longstanding sh security hole.
  3.1970 +  ac_dummy="ifelse([$2], , $PATH, [$2])"
  3.1971 +  for ac_dir in $ac_dummy; do
  3.1972 +    IFS="$lt_save_ifs"
  3.1973 +    test -z "$ac_dir" && ac_dir=.
  3.1974 +    if test -f $ac_dir/$1; then
  3.1975 +      lt_cv_path_MAGIC_CMD="$ac_dir/$1"
  3.1976 +      if test -n "$file_magic_test_file"; then
  3.1977 +	case $deplibs_check_method in
  3.1978 +	"file_magic "*)
  3.1979 +	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
  3.1980 +	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  3.1981 +	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  3.1982 +	    $EGREP "$file_magic_regex" > /dev/null; then
  3.1983 +	    :
  3.1984 +	  else
  3.1985 +	    cat <<EOF 1>&2
  3.1986 +
  3.1987 +*** Warning: the command libtool uses to detect shared libraries,
  3.1988 +*** $file_magic_cmd, produces output that libtool cannot recognize.
  3.1989 +*** The result is that libtool may fail to recognize shared libraries
  3.1990 +*** as such.  This will affect the creation of libtool libraries that
  3.1991 +*** depend on shared libraries, but programs linked with such libtool
  3.1992 +*** libraries will work regardless of this problem.  Nevertheless, you
  3.1993 +*** may want to report the problem to your system manager and/or to
  3.1994 +*** bug-libtool@gnu.org
  3.1995 +
  3.1996 +EOF
  3.1997 +	  fi ;;
  3.1998 +	esac
  3.1999 +      fi
  3.2000 +      break
  3.2001      fi
  3.2002    done
  3.2003 -  IFS="$ac_save_ifs"
  3.2004 +  IFS="$lt_save_ifs"
  3.2005 +  MAGIC_CMD="$lt_save_MAGIC_CMD"
  3.2006    ;;
  3.2007 -esac],
  3.2008 -enable_static=AC_ENABLE_STATIC_DEFAULT)dnl
  3.2009 -])
  3.2010 -
  3.2011 -# AC_DISABLE_STATIC - set the default static flag to --disable-static
  3.2012 -AC_DEFUN(AC_DISABLE_STATIC, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  3.2013 -AC_ENABLE_STATIC(no)])
  3.2014 -
  3.2015 -
  3.2016 -# AC_ENABLE_FAST_INSTALL - implement the --enable-fast-install flag
  3.2017 -# Usage: AC_ENABLE_FAST_INSTALL[(DEFAULT)]
  3.2018 -#   Where DEFAULT is either `yes' or `no'.  If omitted, it defaults to
  3.2019 -#   `yes'.
  3.2020 -AC_DEFUN(AC_ENABLE_FAST_INSTALL, [dnl
  3.2021 -define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
  3.2022 -AC_ARG_ENABLE(fast-install,
  3.2023 -changequote(<<, >>)dnl
  3.2024 -<<  --enable-fast-install[=PKGS]  optimize for fast installation [default=>>AC_ENABLE_FAST_INSTALL_DEFAULT],
  3.2025 -changequote([, ])dnl
  3.2026 -[p=${PACKAGE-default}
  3.2027 -case "$enableval" in
  3.2028 -yes) enable_fast_install=yes ;;
  3.2029 -no) enable_fast_install=no ;;
  3.2030 -*)
  3.2031 -  enable_fast_install=no
  3.2032 -  # Look at the argument we got.  We use all the common list separators.
  3.2033 -  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  3.2034 -  for pkg in $enableval; do
  3.2035 -    if test "X$pkg" = "X$p"; then
  3.2036 -      enable_fast_install=yes
  3.2037 -    fi
  3.2038 -  done
  3.2039 -  IFS="$ac_save_ifs"
  3.2040 -  ;;
  3.2041 -esac],
  3.2042 -enable_fast_install=AC_ENABLE_FAST_INSTALL_DEFAULT)dnl
  3.2043 -])
  3.2044 -
  3.2045 -# AC_ENABLE_FAST_INSTALL - set the default to --disable-fast-install
  3.2046 -AC_DEFUN(AC_DISABLE_FAST_INSTALL, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  3.2047 -AC_ENABLE_FAST_INSTALL(no)])
  3.2048 -
  3.2049 -# AC_PROG_LD - find the path to the GNU or non-GNU linker
  3.2050 -AC_DEFUN(AC_PROG_LD,
  3.2051 -[AC_ARG_WITH(gnu-ld,
  3.2052 -[  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]],
  3.2053 -test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
  3.2054 +esac])
  3.2055 +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  3.2056 +if test -n "$MAGIC_CMD"; then
  3.2057 +  AC_MSG_RESULT($MAGIC_CMD)
  3.2058 +else
  3.2059 +  AC_MSG_RESULT(no)
  3.2060 +fi
  3.2061 +])# AC_PATH_TOOL_PREFIX
  3.2062 +
  3.2063 +
  3.2064 +# AC_PATH_MAGIC
  3.2065 +# -------------
  3.2066 +# find a file program which can recognise a shared library
  3.2067 +AC_DEFUN([AC_PATH_MAGIC],
  3.2068 +[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
  3.2069 +if test -z "$lt_cv_path_MAGIC_CMD"; then
  3.2070 +  if test -n "$ac_tool_prefix"; then
  3.2071 +    AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
  3.2072 +  else
  3.2073 +    MAGIC_CMD=:
  3.2074 +  fi
  3.2075 +fi
  3.2076 +])# AC_PATH_MAGIC
  3.2077 +
  3.2078 +
  3.2079 +# AC_PROG_LD
  3.2080 +# ----------
  3.2081 +# find the path to the GNU or non-GNU linker
  3.2082 +AC_DEFUN([AC_PROG_LD],
  3.2083 +[AC_ARG_WITH([gnu-ld],
  3.2084 +    [AC_HELP_STRING([--with-gnu-ld],
  3.2085 +	[assume the C compiler uses GNU ld @<:@default=no@:>@])],
  3.2086 +    [test "$withval" = no || with_gnu_ld=yes],
  3.2087 +    [with_gnu_ld=no])
  3.2088 +AC_REQUIRE([LT_AC_PROG_SED])dnl
  3.2089  AC_REQUIRE([AC_PROG_CC])dnl
  3.2090  AC_REQUIRE([AC_CANONICAL_HOST])dnl
  3.2091  AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  3.2092  ac_prog=ld
  3.2093 -if test "$ac_cv_prog_gcc" = yes; then
  3.2094 +if test "$GCC" = yes; then
  3.2095    # Check if gcc -print-prog-name=ld gives a path.
  3.2096 -  AC_MSG_CHECKING([for ld used by GCC])
  3.2097 -  ac_prog=`($CC -print-prog-name=ld) 2>&5`
  3.2098 -  case "$ac_prog" in
  3.2099 +  AC_MSG_CHECKING([for ld used by $CC])
  3.2100 +  case $host in
  3.2101 +  *-*-mingw*)
  3.2102 +    # gcc leaves a trailing carriage return which upsets mingw
  3.2103 +    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3.2104 +  *)
  3.2105 +    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3.2106 +  esac
  3.2107 +  case $ac_prog in
  3.2108      # Accept absolute paths.
  3.2109 -changequote(,)dnl
  3.2110 -    [\\/]* | [A-Za-z]:[\\/]*)
  3.2111 -      re_direlt='/[^/][^/]*/\.\./'
  3.2112 -changequote([,])dnl
  3.2113 +    [[\\/]]* | ?:[[\\/]]*)
  3.2114 +      re_direlt='/[[^/]][[^/]]*/\.\./'
  3.2115        # Canonicalize the path of ld
  3.2116 -      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  3.2117 +      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  3.2118        while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  3.2119 -	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  3.2120 +	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  3.2121        done
  3.2122        test -z "$LD" && LD="$ac_prog"
  3.2123        ;;
  3.2124 @@ -621,28 +2324,32 @@
  3.2125  else
  3.2126    AC_MSG_CHECKING([for non-GNU ld])
  3.2127  fi
  3.2128 -AC_CACHE_VAL(ac_cv_path_LD,
  3.2129 +AC_CACHE_VAL(lt_cv_path_LD,
  3.2130  [if test -z "$LD"; then
  3.2131 -  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  3.2132 +  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3.2133    for ac_dir in $PATH; do
  3.2134 +    IFS="$lt_save_ifs"
  3.2135      test -z "$ac_dir" && ac_dir=.
  3.2136      if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3.2137 -      ac_cv_path_LD="$ac_dir/$ac_prog"
  3.2138 +      lt_cv_path_LD="$ac_dir/$ac_prog"
  3.2139        # Check to see if the program is GNU ld.  I'd rather use --version,
  3.2140        # but apparently some GNU ld's only accept -v.
  3.2141        # Break only if it was the GNU/non-GNU ld that we prefer.
  3.2142 -      if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
  3.2143 +      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3.2144 +      *GNU* | *'with BFD'*)
  3.2145  	test "$with_gnu_ld" != no && break
  3.2146 -      else
  3.2147 +	;;
  3.2148 +      *)
  3.2149  	test "$with_gnu_ld" != yes && break
  3.2150 -      fi
  3.2151 +	;;
  3.2152 +      esac
  3.2153      fi
  3.2154    done
  3.2155 -  IFS="$ac_save_ifs"
  3.2156 +  IFS="$lt_save_ifs"
  3.2157  else
  3.2158 -  ac_cv_path_LD="$LD" # Let the user override the test with a path.
  3.2159 +  lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3.2160  fi])
  3.2161 -LD="$ac_cv_path_LD"
  3.2162 +LD="$lt_cv_path_LD"
  3.2163  if test -n "$LD"; then
  3.2164    AC_MSG_RESULT($LD)
  3.2165  else
  3.2166 @@ -650,103 +2357,358 @@
  3.2167  fi
  3.2168  test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
  3.2169  AC_PROG_LD_GNU
  3.2170 +])# AC_PROG_LD
  3.2171 +
  3.2172 +
  3.2173 +# AC_PROG_LD_GNU
  3.2174 +# --------------
  3.2175 +AC_DEFUN([AC_PROG_LD_GNU],
  3.2176 +[AC_REQUIRE([AC_PROG_EGREP])dnl
  3.2177 +AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
  3.2178 +[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
  3.2179 +case `"$LD" -v 2>&1 </dev/null` in
  3.2180 +*GNU* | *'with BFD'*)
  3.2181 +  lt_cv_prog_gnu_ld=yes
  3.2182 +  ;;
  3.2183 +*)
  3.2184 +  lt_cv_prog_gnu_ld=no
  3.2185 +  ;;
  3.2186 +esac])
  3.2187 +with_gnu_ld=$lt_cv_prog_gnu_ld
  3.2188 +])# AC_PROG_LD_GNU
  3.2189 +
  3.2190 +
  3.2191 +# AC_PROG_LD_RELOAD_FLAG
  3.2192 +# ----------------------
  3.2193 +# find reload flag for linker
  3.2194 +#   -- PORTME Some linkers may need a different reload flag.
  3.2195 +AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
  3.2196 +[AC_CACHE_CHECK([for $LD option to reload object files],
  3.2197 +  lt_cv_ld_reload_flag,
  3.2198 +  [lt_cv_ld_reload_flag='-r'])
  3.2199 +reload_flag=$lt_cv_ld_reload_flag
  3.2200 +case $reload_flag in
  3.2201 +"" | " "*) ;;
  3.2202 +*) reload_flag=" $reload_flag" ;;
  3.2203 +esac
  3.2204 +reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3.2205 +])# AC_PROG_LD_RELOAD_FLAG
  3.2206 +
  3.2207 +
  3.2208 +# AC_DEPLIBS_CHECK_METHOD
  3.2209 +# -----------------------
  3.2210 +# how to check for library dependencies
  3.2211 +#  -- PORTME fill in with the dynamic library characteristics
  3.2212 +AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
  3.2213 +[AC_CACHE_CHECK([how to recognise dependent libraries],
  3.2214 +lt_cv_deplibs_check_method,
  3.2215 +[lt_cv_file_magic_cmd='$MAGIC_CMD'
  3.2216 +lt_cv_file_magic_test_file=
  3.2217 +lt_cv_deplibs_check_method='unknown'
  3.2218 +# Need to set the preceding variable on all platforms that support
  3.2219 +# interlibrary dependencies.
  3.2220 +# 'none' -- dependencies not supported.
  3.2221 +# `unknown' -- same as none, but documents that we really don't know.
  3.2222 +# 'pass_all' -- all dependencies passed with no checks.
  3.2223 +# 'test_compile' -- check by making test program.
  3.2224 +# 'file_magic [[regex]]' -- check by looking for files in library path
  3.2225 +# which responds to the $file_magic_cmd with a given extended regex.
  3.2226 +# If you have `file' or equivalent on your system and you're not sure
  3.2227 +# whether `pass_all' will *always* work, you probably want this one.
  3.2228 +
  3.2229 +case $host_os in
  3.2230 +aix4* | aix5*)
  3.2231 +  lt_cv_deplibs_check_method=pass_all
  3.2232 +  ;;
  3.2233 +
  3.2234 +beos*)
  3.2235 +  lt_cv_deplibs_check_method=pass_all
  3.2236 +  ;;
  3.2237 +
  3.2238 +bsdi4*)
  3.2239 +  lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
  3.2240 +  lt_cv_file_magic_cmd='/usr/bin/file -L'
  3.2241 +  lt_cv_file_magic_test_file=/shlib/libc.so
  3.2242 +  ;;
  3.2243 +
  3.2244 +cygwin* | mingw* | pw32*)
  3.2245 +  # win32_libid is a shell function defined in ltmain.sh
  3.2246 +  #lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  3.2247 +  lt_cv_deplibs_check_method=pass_all
  3.2248 +  lt_cv_file_magic_cmd='win32_libid'
  3.2249 +  ;;
  3.2250 +
  3.2251 +darwin* | rhapsody*)
  3.2252 +  # this will be overwritten by pass_all, but leave it in just in case
  3.2253 +  lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
  3.2254 +  lt_cv_file_magic_cmd='/usr/bin/file -L'
  3.2255 +  case "$host_os" in
  3.2256 +  rhapsody* | darwin1.[[012]])
  3.2257 +    lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
  3.2258 +    ;;
  3.2259 +  *) # Darwin 1.3 on
  3.2260 +    lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
  3.2261 +    ;;
  3.2262 +  esac
  3.2263 +  lt_cv_deplibs_check_method=pass_all
  3.2264 +  ;;
  3.2265 +
  3.2266 +freebsd*)
  3.2267 +  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  3.2268 +    case $host_cpu in
  3.2269 +    i*86 )
  3.2270 +      # Not sure whether the presence of OpenBSD here was a mistake.
  3.2271 +      # Let's accept both of them until this is cleared up.
  3.2272 +      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library'
  3.2273 +      lt_cv_file_magic_cmd=/usr/bin/file
  3.2274 +      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  3.2275 +      ;;
  3.2276 +    esac
  3.2277 +  else
  3.2278 +    lt_cv_deplibs_check_method=pass_all
  3.2279 +  fi
  3.2280 +  ;;
  3.2281 +
  3.2282 +gnu*)
  3.2283 +  lt_cv_deplibs_check_method=pass_all
  3.2284 +  ;;
  3.2285 +
  3.2286 +hpux10.20* | hpux11*)
  3.2287 +  lt_cv_file_magic_cmd=/usr/bin/file
  3.2288 +  case "$host_cpu" in
  3.2289 +  ia64*)
  3.2290 +    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
  3.2291 +    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  3.2292 +    ;;
  3.2293 +  hppa*64*)
  3.2294 +    [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]']
  3.2295 +    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  3.2296 +    ;;
  3.2297 +  *)
  3.2298 +    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
  3.2299 +    lt_cv_file_magic_test_file=/usr/lib/libc.sl
  3.2300 +    ;;
  3.2301 +  esac
  3.2302 +  ;;
  3.2303 +
  3.2304 +irix5* | irix6* | nonstopux*)
  3.2305 +  case $host_os in
  3.2306 +  irix5* | nonstopux*)
  3.2307 +    # this will be overridden with pass_all, but let us keep it just in case
  3.2308 +    lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
  3.2309 +    ;;
  3.2310 +  *)
  3.2311 +    case $LD in
  3.2312 +    *-32|*"-32 ") libmagic=32-bit;;
  3.2313 +    *-n32|*"-n32 ") libmagic=N32;;
  3.2314 +    *-64|*"-64 ") libmagic=64-bit;;
  3.2315 +    *) libmagic=never-match;;
  3.2316 +    esac
  3.2317 +    # this will be overridden with pass_all, but let us keep it just in case
  3.2318 +    lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[[1234]] dynamic lib MIPS - version 1"
  3.2319 +    ;;
  3.2320 +  esac
  3.2321 +  lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
  3.2322 +  lt_cv_deplibs_check_method=pass_all
  3.2323 +  ;;
  3.2324 +
  3.2325 +# This must be Linux ELF.
  3.2326 +linux*)
  3.2327 +  case $host_cpu in
  3.2328 +  alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
  3.2329 +    lt_cv_deplibs_check_method=pass_all ;;
  3.2330 +  *)
  3.2331 +    # glibc up to 2.1.1 does not perform some relocations on ARM
  3.2332 +    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' ;;
  3.2333 +  esac
  3.2334 +  lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
  3.2335 +  ;;
  3.2336 +
  3.2337 +netbsd*)
  3.2338 +  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  3.2339 +    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  3.2340 +  else
  3.2341 +    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
  3.2342 +  fi
  3.2343 +  ;;
  3.2344 +
  3.2345 +newos6*)
  3.2346 +  lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
  3.2347 +  lt_cv_file_magic_cmd=/usr/bin/file
  3.2348 +  lt_cv_file_magic_test_file=/usr/lib/libnls.so
  3.2349 +  ;;
  3.2350 +
  3.2351 +nto-qnx)
  3.2352 +  lt_cv_deplibs_check_method=unknown
  3.2353 +  ;;
  3.2354 +
  3.2355 +openbsd*)
  3.2356 +  lt_cv_file_magic_cmd=/usr/bin/file
  3.2357 +  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  3.2358 +  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  3.2359 +    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object'
  3.2360 +  else
  3.2361 +    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
  3.2362 +  fi
  3.2363 +  ;;
  3.2364 +
  3.2365 +osf3* | osf4* | osf5*)
  3.2366 +  # this will be overridden with pass_all, but let us keep it just in case
  3.2367 +  lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
  3.2368 +  lt_cv_file_magic_test_file=/shlib/libc.so
  3.2369 +  lt_cv_deplibs_check_method=pass_all
  3.2370 +  ;;
  3.2371 +
  3.2372 +sco3.2v5*)
  3.2373 +  lt_cv_deplibs_check_method=pass_all
  3.2374 +  ;;
  3.2375 +
  3.2376 +solaris*)
  3.2377 +  lt_cv_deplibs_check_method=pass_all
  3.2378 +  lt_cv_file_magic_test_file=/lib/libc.so
  3.2379 +  ;;
  3.2380 +
  3.2381 +sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  3.2382 +  case $host_vendor in
  3.2383 +  motorola)
  3.2384 +    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]]'
  3.2385 +    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  3.2386 +    ;;
  3.2387 +  ncr)
  3.2388 +    lt_cv_deplibs_check_method=pass_all
  3.2389 +    ;;
  3.2390 +  sequent)
  3.2391 +    lt_cv_file_magic_cmd='/bin/file'
  3.2392 +    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
  3.2393 +    ;;
  3.2394 +  sni)
  3.2395 +    lt_cv_file_magic_cmd='/bin/file'
  3.2396 +    lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
  3.2397 +    lt_cv_file_magic_test_file=/lib/libc.so
  3.2398 +    ;;
  3.2399 +  siemens)
  3.2400 +    lt_cv_deplibs_check_method=pass_all
  3.2401 +    ;;
  3.2402 +  esac
  3.2403 +  ;;
  3.2404 +
  3.2405 +sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*)
  3.2406 +  lt_cv_deplibs_check_method=pass_all
  3.2407 +  ;;
  3.2408 +esac
  3.2409  ])
  3.2410 -
  3.2411 -AC_DEFUN(AC_PROG_LD_GNU,
  3.2412 -[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], ac_cv_prog_gnu_ld,
  3.2413 -[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
  3.2414 -if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
  3.2415 -  ac_cv_prog_gnu_ld=yes
  3.2416 -else
  3.2417 -  ac_cv_prog_gnu_ld=no
  3.2418 -fi])
  3.2419 -])
  3.2420 -
  3.2421 -# AC_PROG_NM - find the path to a BSD-compatible name lister
  3.2422 -AC_DEFUN(AC_PROG_NM,
  3.2423 -[AC_MSG_CHECKING([for BSD-compatible nm])
  3.2424 -AC_CACHE_VAL(ac_cv_path_NM,
  3.2425 +file_magic_cmd=$lt_cv_file_magic_cmd
  3.2426 +deplibs_check_method=$lt_cv_deplibs_check_method
  3.2427 +test -z "$deplibs_check_method" && deplibs_check_method=unknown
  3.2428 +])# AC_DEPLIBS_CHECK_METHOD
  3.2429 +
  3.2430 +
  3.2431 +# AC_PROG_NM
  3.2432 +# ----------
  3.2433 +# find the path to a BSD-compatible name lister
  3.2434 +AC_DEFUN([AC_PROG_NM],
  3.2435 +[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
  3.2436  [if test -n "$NM"; then
  3.2437    # Let the user override the test.
  3.2438 -  ac_cv_path_NM="$NM"
  3.2439 +  lt_cv_path_NM="$NM"
  3.2440  else
  3.2441 -  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  3.2442 +  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3.2443    for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
  3.2444 +    IFS="$lt_save_ifs"
  3.2445      test -z "$ac_dir" && ac_dir=.
  3.2446 -    if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
  3.2447 +    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
  3.2448 +    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3.2449        # Check to see if the nm accepts a BSD-compat flag.
  3.2450        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3.2451        #   nm: unknown option "B" ignored
  3.2452 -      if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
  3.2453 -	ac_cv_path_NM="$ac_dir/nm -B"
  3.2454 +      # Tru64's nm complains that /dev/null is an invalid object file
  3.2455 +      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3.2456 +      */dev/null* | *'Invalid file or object type'*)
  3.2457 +	lt_cv_path_NM="$tmp_nm -B"
  3.2458  	break
  3.2459 -      elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
  3.2460 -	ac_cv_path_NM="$ac_dir/nm -p"
  3.2461 -	break
  3.2462 -      else
  3.2463 -	ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
  3.2464 -	continue # so that we can try to find one that supports BSD flags
  3.2465 -      fi
  3.2466 +        ;;
  3.2467 +      *)
  3.2468 +	case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3.2469 +	*/dev/null*)
  3.2470 +	  lt_cv_path_NM="$tmp_nm -p"
  3.2471 +	  break
  3.2472 +	  ;;
  3.2473 +	*)
  3.2474 +	  lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3.2475 +	  continue # so that we can try to find one that supports BSD flags
  3.2476 +	  ;;
  3.2477 +	esac
  3.2478 +      esac
  3.2479      fi
  3.2480    done
  3.2481 -  IFS="$ac_save_ifs"
  3.2482 -  test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
  3.2483 +  IFS="$lt_save_ifs"
  3.2484 +  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  3.2485  fi])
  3.2486 -NM="$ac_cv_path_NM"
  3.2487 -AC_MSG_RESULT([$NM])
  3.2488 -])
  3.2489 -
  3.2490 -# AC_CHECK_LIBM - check for math library
  3.2491 -AC_DEFUN(AC_CHECK_LIBM,
  3.2492 +NM="$lt_cv_path_NM"
  3.2493 +])# AC_PROG_NM
  3.2494 +
  3.2495 +
  3.2496 +# AC_CHECK_LIBM
  3.2497 +# -------------
  3.2498 +# check for math library
  3.2499 +AC_DEFUN([AC_CHECK_LIBM],
  3.2500  [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  3.2501  LIBM=
  3.2502 -case "$lt_target" in
  3.2503 -*-*-beos* | *-*-cygwin*)
  3.2504 -  # These system don't have libm
  3.2505 +case $host in
  3.2506 +*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
  3.2507 +  # These system don't have libm, or don't need it
  3.2508    ;;
  3.2509  *-ncr-sysv4.3*)
  3.2510    AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
  3.2511 -  AC_CHECK_LIB(m, main, LIBM="$LIBM -lm")
  3.2512 +  AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
  3.2513    ;;
  3.2514  *)
  3.2515 -  AC_CHECK_LIB(m, main, LIBM="-lm")
  3.2516 +  AC_CHECK_LIB(m, cos, LIBM="-lm")
  3.2517    ;;
  3.2518  esac
  3.2519 -])
  3.2520 -
  3.2521 -# AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for
  3.2522 -# the libltdl convenience library and INCLTDL to the include flags for
  3.2523 -# the libltdl header and adds --enable-ltdl-convenience to the
  3.2524 -# configure arguments.  Note that LIBLTDL and INCLTDL are not
  3.2525 -# AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called.  If DIR is not
  3.2526 -# provided, it is assumed to be `libltdl'.  LIBLTDL will be prefixed
  3.2527 -# with '${top_builddir}/' and INCLTDL will be prefixed with
  3.2528 +])# AC_CHECK_LIBM
  3.2529 +
  3.2530 +
  3.2531 +# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
  3.2532 +# -----------------------------------
  3.2533 +# sets LIBLTDL to the link flags for the libltdl convenience library and
  3.2534 +# LTDLINCL to the include flags for the libltdl header and adds
  3.2535 +# --enable-ltdl-convenience to the configure arguments.  Note that LIBLTDL
  3.2536 +# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called.  If
  3.2537 +# DIRECTORY is not provided, it is assumed to be `libltdl'.  LIBLTDL will
  3.2538 +# be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with
  3.2539  # '${top_srcdir}/' (note the single quotes!).  If your package is not
  3.2540  # flat and you're not using automake, define top_builddir and
  3.2541  # top_srcdir appropriately in the Makefiles.
  3.2542 -AC_DEFUN(AC_LIBLTDL_CONVENIENCE, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  3.2543 -  case "$enable_ltdl_convenience" in
  3.2544 +AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
  3.2545 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  3.2546 +  case $enable_ltdl_convenience in
  3.2547    no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
  3.2548    "") enable_ltdl_convenience=yes
  3.2549        ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
  3.2550    esac
  3.2551    LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
  3.2552 -  INCLTDL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
  3.2553 -])
  3.2554 -
  3.2555 -# AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for
  3.2556 -# the libltdl installable library and INCLTDL to the include flags for
  3.2557 -# the libltdl header and adds --enable-ltdl-install to the configure
  3.2558 -# arguments.  Note that LIBLTDL and INCLTDL are not AC_SUBSTed, nor is
  3.2559 -# AC_CONFIG_SUBDIRS called.  If DIR is not provided and an installed
  3.2560 -# libltdl is not found, it is assumed to be `libltdl'.  LIBLTDL will
  3.2561 -# be prefixed with '${top_builddir}/' and INCLTDL will be prefixed
  3.2562 -# with '${top_srcdir}/' (note the single quotes!).  If your package is
  3.2563 -# not flat and you're not using automake, define top_builddir and
  3.2564 -# top_srcdir appropriately in the Makefiles.
  3.2565 +  LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
  3.2566 +  # For backwards non-gettext consistent compatibility...
  3.2567 +  INCLTDL="$LTDLINCL"
  3.2568 +])# AC_LIBLTDL_CONVENIENCE
  3.2569 +
  3.2570 +
  3.2571 +# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
  3.2572 +# -----------------------------------
  3.2573 +# sets LIBLTDL to the link flags for the libltdl installable library and
  3.2574 +# LTDLINCL to the include flags for the libltdl header and adds
  3.2575 +# --enable-ltdl-install to the configure arguments.  Note that LIBLTDL
  3.2576 +# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called.  If
  3.2577 +# DIRECTORY is not provided and an installed libltdl is not found, it is
  3.2578 +# assumed to be `libltdl'.  LIBLTDL will be prefixed with '${top_builddir}/'
  3.2579 +# and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single
  3.2580 +# quotes!).  If your package is not flat and you're not using automake,
  3.2581 +# define top_builddir and top_srcdir appropriately in the Makefiles.
  3.2582  # In the future, this macro may have to be called after AC_PROG_LIBTOOL.
  3.2583 -AC_DEFUN(AC_LIBLTDL_INSTALLABLE, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  3.2584 -  AC_CHECK_LIB(ltdl, main,
  3.2585 +AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
  3.2586 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  3.2587 +  AC_CHECK_LIB(ltdl, lt_dlinit,
  3.2588    [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
  3.2589    [if test x"$enable_ltdl_install" = xno; then
  3.2590       AC_MSG_WARN([libltdl not installed, but installation disabled])
  3.2591 @@ -757,22 +2719,3497 @@
  3.2592    if test x"$enable_ltdl_install" = x"yes"; then
  3.2593      ac_configure_args="$ac_configure_args --enable-ltdl-install"
  3.2594      LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
  3.2595 -    INCLTDL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
  3.2596 +    LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
  3.2597    else
  3.2598      ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
  3.2599      LIBLTDL="-lltdl"
  3.2600 -    INCLTDL=
  3.2601 +    LTDLINCL=
  3.2602 +  fi
  3.2603 +  # For backwards non-gettext consistent compatibility...
  3.2604 +  INCLTDL="$LTDLINCL"
  3.2605 +])# AC_LIBLTDL_INSTALLABLE
  3.2606 +
  3.2607 +
  3.2608 +# AC_LIBTOOL_CXX
  3.2609 +# --------------
  3.2610 +# enable support for C++ libraries
  3.2611 +AC_DEFUN([AC_LIBTOOL_CXX],
  3.2612 +[AC_REQUIRE([_LT_AC_LANG_CXX])
  3.2613 +])# AC_LIBTOOL_CXX
  3.2614 +
  3.2615 +
  3.2616 +# _LT_AC_LANG_CXX
  3.2617 +# ---------------
  3.2618 +AC_DEFUN([_LT_AC_LANG_CXX],
  3.2619 +[AC_REQUIRE([AC_PROG_CXX])
  3.2620 +AC_REQUIRE([AC_PROG_CXXCPP])
  3.2621 +_LT_AC_SHELL_INIT([tagnames=`echo "$tagnames,CXX" | sed 's/^,//'`])
  3.2622 +])# _LT_AC_LANG_CXX
  3.2623 +
  3.2624 +
  3.2625 +# AC_LIBTOOL_F77
  3.2626 +# --------------
  3.2627 +# enable support for Fortran 77 libraries
  3.2628 +AC_DEFUN([AC_LIBTOOL_F77],
  3.2629 +[AC_REQUIRE([_LT_AC_LANG_F77])
  3.2630 +])# AC_LIBTOOL_F77
  3.2631 +
  3.2632 +
  3.2633 +# _LT_AC_LANG_F77
  3.2634 +# ---------------
  3.2635 +AC_DEFUN([_LT_AC_LANG_F77],
  3.2636 +[AC_REQUIRE([AC_PROG_F77])
  3.2637 +_LT_AC_SHELL_INIT([tagnames=`echo "$tagnames,F77" | sed 's/^,//'`])
  3.2638 +])# _LT_AC_LANG_F77
  3.2639 +
  3.2640 +
  3.2641 +# AC_LIBTOOL_GCJ
  3.2642 +# --------------
  3.2643 +# enable support for GCJ libraries
  3.2644 +AC_DEFUN([AC_LIBTOOL_GCJ],
  3.2645 +[AC_REQUIRE([_LT_AC_LANG_GCJ])
  3.2646 +])# AC_LIBTOOL_GCJ
  3.2647 +
  3.2648 +
  3.2649 +# _LT_AC_LANG_GCJ
  3.2650 +# ---------------
  3.2651 +AC_DEFUN([_LT_AC_LANG_GCJ],
  3.2652 +[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
  3.2653 +  [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
  3.2654 +    [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
  3.2655 +      [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
  3.2656 +	 [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
  3.2657 +	   [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
  3.2658 +_LT_AC_SHELL_INIT([tagnames=`echo "$tagnames,GCJ" | sed 's/^,//'`])
  3.2659 +])# _LT_AC_LANG_GCJ
  3.2660 +
  3.2661 +
  3.2662 +# AC_LIBTOOL_RC
  3.2663 +# --------------
  3.2664 +# enable support for Windows resource files
  3.2665 +AC_DEFUN([AC_LIBTOOL_RC],
  3.2666 +[AC_REQUIRE([LT_AC_PROG_RC])
  3.2667 +_LT_AC_SHELL_INIT([tagnames=`echo "$tagnames,RC" | sed 's/^,//'`])
  3.2668 +])# AC_LIBTOOL_RC
  3.2669 +
  3.2670 +
  3.2671 +# AC_LIBTOOL_LANG_C_CONFIG
  3.2672 +# ------------------------
  3.2673 +# Ensure that the configuration vars for the C compiler are
  3.2674 +# suitably defined.  Those variables are subsequently used by
  3.2675 +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  3.2676 +AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
  3.2677 +AC_DEFUN([_LT_AC_LANG_C_CONFIG],
  3.2678 +[lt_save_CC="$CC"
  3.2679 +AC_LANG_PUSH(C)
  3.2680 +
  3.2681 +# Source file extension for C test sources.
  3.2682 +ac_ext=c
  3.2683 +
  3.2684 +# Object file extension for compiled C test sources.
  3.2685 +objext=o
  3.2686 +_LT_AC_TAGVAR(objext, $1)=$objext
  3.2687 +
  3.2688 +# Code to be used in simple compile tests
  3.2689 +lt_simple_compile_test_code="int some_variable = 0;\n"
  3.2690 +
  3.2691 +# Code to be used in simple link tests
  3.2692 +lt_simple_link_test_code='int main(){return(0);}\n'
  3.2693 +
  3.2694 +_LT_AC_SYS_COMPILER
  3.2695 +
  3.2696 +#
  3.2697 +# Check for any special shared library compilation flags.
  3.2698 +#
  3.2699 +_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)=
  3.2700 +if test "$GCC" = no; then
  3.2701 +  case $host_os in
  3.2702 +  sco3.2v5*)
  3.2703 +    _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf'
  3.2704 +    ;;
  3.2705 +  esac
  3.2706 +fi
  3.2707 +if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then
  3.2708 +  AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries])
  3.2709 +  if echo "$old_CC $old_CFLAGS " | grep "[[ 	]]$]_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[[ 	]]" >/dev/null; then :
  3.2710 +  else
  3.2711 +    AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure])
  3.2712 +    _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no
  3.2713 +  fi
  3.2714 +fi
  3.2715 +
  3.2716 +
  3.2717 +#
  3.2718 +# Check to make sure the static flag actually works.
  3.2719 +#
  3.2720 +AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works],
  3.2721 +  _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
  3.2722 +  $_LT_AC_TAGVAR(lt_prog_compiler_static, $1),
  3.2723 +  [],
  3.2724 +  [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
  3.2725 +
  3.2726 +
  3.2727 +## CAVEAT EMPTOR:
  3.2728 +## There is no encapsulation within the following macros, do not change
  3.2729 +## the running order or otherwise move them around unless you know exactly
  3.2730 +## what you are doing...
  3.2731 +AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
  3.2732 +AC_LIBTOOL_PROG_COMPILER_PIC($1)
  3.2733 +AC_LIBTOOL_PROG_CC_C_O($1)
  3.2734 +AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  3.2735 +AC_LIBTOOL_PROG_LD_SHLIBS($1)
  3.2736 +AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  3.2737 +AC_LIBTOOL_SYS_LIB_STRIP
  3.2738 +AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  3.2739 +AC_LIBTOOL_DLOPEN_SELF($1)
  3.2740 +
  3.2741 +# Report which librarie types wil actually be built
  3.2742 +AC_MSG_CHECKING([if libtool supports shared libraries])
  3.2743 +AC_MSG_RESULT([$can_build_shared])
  3.2744 +
  3.2745 +AC_MSG_CHECKING([whether to build shared libraries])
  3.2746 +test "$can_build_shared" = "no" && enable_shared=no
  3.2747 +
  3.2748 +# On AIX, shared libraries and static libraries use the same namespace, and
  3.2749 +# are all built from PIC.
  3.2750 +case "$host_os" in
  3.2751 +aix3*)
  3.2752 +  test "$enable_shared" = yes && enable_static=no
  3.2753 +  if test -n "$RANLIB"; then
  3.2754 +    archive_cmds="$archive_cmds~\$RANLIB \$lib"
  3.2755 +    postinstall_cmds='$RANLIB $lib'
  3.2756 +  fi
  3.2757 +  ;;
  3.2758 +
  3.2759 +aix4*)
  3.2760 +  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  3.2761 +    test "$enable_shared" = yes && enable_static=no
  3.2762 +  fi
  3.2763 +  ;;
  3.2764 +  darwin* | rhapsody*)
  3.2765 +  if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then 
  3.2766 +    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  3.2767 +    case "$host_os" in
  3.2768 +    rhapsody* | darwin1.[[012]])
  3.2769 +      _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
  3.2770 +      ;;
  3.2771 +    *) # Darwin 1.3 on
  3.2772 +      test -z ${LD_TWOLEVEL_NAMESPACE} && _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
  3.2773 +      ;;
  3.2774 +    esac
  3.2775 +    # FIXME: Relying on posixy $() will cause problems for
  3.2776 +    #        cross-compilation, but unfortunately the echo tests do not
  3.2777 +    #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
  3.2778 +    #	       `"' quotes if we put them in here... so don't!
  3.2779 +		output_verbose_link_cmd='echo'
  3.2780 +    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
  3.2781 +    _LT_AC_TAGVAR(module_cmds, $1)='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
  3.2782 +    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  3.2783 +		  _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  3.2784 +		  _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  3.2785 +    _LT_AC_TAGVAR(hardcode_direct, $1)=no
  3.2786 +    _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
  3.2787 +    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  3.2788 +    _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
  3.2789 +    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  3.2790 +    fi
  3.2791 +    ;;  
  3.2792 +esac
  3.2793 +AC_MSG_RESULT([$enable_shared])
  3.2794 +
  3.2795 +AC_MSG_CHECKING([whether to build static libraries])
  3.2796 +# Make sure either enable_shared or enable_static is yes.
  3.2797 +test "$enable_shared" = yes || enable_static=yes
  3.2798 +AC_MSG_RESULT([$enable_static])
  3.2799 +
  3.2800 +AC_LIBTOOL_CONFIG($1)
  3.2801 +
  3.2802 +AC_LANG_POP
  3.2803 +CC="$lt_save_CC"
  3.2804 +])# AC_LIBTOOL_LANG_C_CONFIG
  3.2805 +
  3.2806 +
  3.2807 +# AC_LIBTOOL_LANG_CXX_CONFIG
  3.2808 +# --------------------------
  3.2809 +# Ensure that the configuration vars for the C compiler are
  3.2810 +# suitably defined.  Those variables are subsequently used by
  3.2811 +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  3.2812 +AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
  3.2813 +AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
  3.2814 +[AC_LANG_PUSH(C++)
  3.2815 +AC_REQUIRE([AC_PROG_CXX])
  3.2816 +AC_REQUIRE([AC_PROG_CXXCPP])
  3.2817 +
  3.2818 +_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  3.2819 +_LT_AC_TAGVAR(allow_undefined_flag, $1)=
  3.2820 +_LT_AC_TAGVAR(always_export_symbols, $1)=no
  3.2821 +_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
  3.2822 +_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  3.2823 +_LT_AC_TAGVAR(hardcode_direct, $1)=no
  3.2824 +_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  3.2825 +_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  3.2826 +_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  3.2827 +_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  3.2828 +_LT_AC_TAGVAR(hardcode_automatic, $1)=no
  3.2829 +_LT_AC_TAGVAR(module_cmds, $1)=
  3.2830 +_LT_AC_TAGVAR(module_expsym_cmds, $1)=
  3.2831 +_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
  3.2832 +_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  3.2833 +_LT_AC_TAGVAR(no_undefined_flag, $1)=
  3.2834 +_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  3.2835 +_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  3.2836 +
  3.2837 +# Dependencies to place before and after the object being linked:
  3.2838 +_LT_AC_TAGVAR(predep_objects, $1)=
  3.2839 +_LT_AC_TAGVAR(postdep_objects, $1)=
  3.2840 +_LT_AC_TAGVAR(predeps, $1)=
  3.2841 +_LT_AC_TAGVAR(postdeps, $1)=
  3.2842 +_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
  3.2843 +
  3.2844 +# Source file extension for C++ test sources.
  3.2845 +ac_ext=cc
  3.2846 +
  3.2847 +# Object file extension for compiled C++ test sources.
  3.2848 +objext=o
  3.2849 +_LT_AC_TAGVAR(objext, $1)=$objext
  3.2850 +
  3.2851 +# Code to be used in simple compile tests
  3.2852 +lt_simple_compile_test_code="int some_variable = 0;\n"
  3.2853 +
  3.2854 +# Code to be used in simple link tests
  3.2855 +lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
  3.2856 +
  3.2857 +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  3.2858 +_LT_AC_SYS_COMPILER
  3.2859 +
  3.2860 +# Allow CC to be a program name with arguments.
  3.2861 +lt_save_CC=$CC
  3.2862 +lt_save_LD=$LD
  3.2863 +lt_save_GCC=$GCC
  3.2864 +GCC=$GXX
  3.2865 +lt_save_with_gnu_ld=$with_gnu_ld
  3.2866 +lt_save_path_LD=$lt_cv_path_LD
  3.2867 +if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  3.2868 +  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  3.2869 +else
  3.2870 +  unset lt_cv_prog_gnu_ld
  3.2871 +fi
  3.2872 +if test -n "${lt_cv_path_LDCXX+set}"; then
  3.2873 +  lt_cv_path_LD=$lt_cv_path_LDCXX
  3.2874 +else
  3.2875 +  unset lt_cv_path_LD
  3.2876 +fi
  3.2877 +test -z "${LDCXX+set}" || LD=$LDCXX
  3.2878 +CC=${CXX-"c++"}
  3.2879 +compiler=$CC
  3.2880 +_LT_AC_TAGVAR(compiler, $1)=$CC
  3.2881 +cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
  3.2882 +
  3.2883 +# We don't want -fno-exception wen compiling C++ code, so set the
  3.2884 +# no_builtin_flag separately
  3.2885 +if test "$GXX" = yes; then
  3.2886 +  _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  3.2887 +else
  3.2888 +  _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  3.2889 +fi
  3.2890 +
  3.2891 +if test "$GXX" = yes; then
  3.2892 +  # Set up default GNU C++ configuration
  3.2893 +
  3.2894 +  AC_PROG_LD
  3.2895 +
  3.2896 +  # Check if GNU C++ uses GNU ld as the underlying linker, since the
  3.2897 +  # archiving commands below assume that GNU ld is being used.
  3.2898 +  if test "$with_gnu_ld" = yes; then
  3.2899 +    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  3.2900 +    _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  3.2901 +
  3.2902 +    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  3.2903 +    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  3.2904 +
  3.2905 +    # If archive_cmds runs LD, not CC, wlarc should be empty
  3.2906 +    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  3.2907 +    #     investigate it a little bit more. (MM)
  3.2908 +    wlarc='${wl}'
  3.2909 +
  3.2910 +    # ancient GNU ld didn't support --whole-archive et. al.
  3.2911 +    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  3.2912 +	grep 'no-whole-archive' > /dev/null; then
  3.2913 +      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  3.2914 +    else
  3.2915 +      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  3.2916 +    fi
  3.2917 +  else
  3.2918 +    with_gnu_ld=no
  3.2919 +    wlarc=
  3.2920 +
  3.2921 +    # A generic and very simple default shared library creation
  3.2922 +    # command for GNU C++ for the case where it uses the native
  3.2923 +    # linker, instead of GNU ld.  If possible, this setting should
  3.2924 +    # overridden to take advantage of the native linker features on
  3.2925 +    # the platform it is being used on.
  3.2926 +    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  3.2927 +  fi
  3.2928 +
  3.2929 +  # Commands to make compiler produce verbose output that lists
  3.2930 +  # what "hidden" libraries, object files and flags are used when
  3.2931 +  # linking a shared library.
  3.2932 +  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  3.2933 +
  3.2934 +else
  3.2935 +  GXX=no
  3.2936 +  with_gnu_ld=no
  3.2937 +  wlarc=
  3.2938 +fi
  3.2939 +
  3.2940 +# PORTME: fill in a description of your system's C++ link characteristics
  3.2941 +AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  3.2942 +_LT_AC_TAGVAR(ld_shlibs, $1)=yes
  3.2943 +case $host_os in
  3.2944 +  aix3*)
  3.2945 +    # FIXME: insert proper C++ library support
  3.2946 +    _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3.2947 +    ;;
  3.2948 +  aix4* | aix5*)
  3.2949 +    if test "$host_cpu" = ia64; then
  3.2950 +      # On IA64, the linker does run time linking by default, so we don't
  3.2951 +      # have to do anything special.
  3.2952 +      aix_use_runtimelinking=no
  3.2953 +      exp_sym_flag='-Bexport'
  3.2954 +      no_entry_flag=""
  3.2955 +    else
  3.2956 +      aix_use_runtimelinking=no
  3.2957 +
  3.2958 +      # Test if we are trying to use run time linking or normal
  3.2959 +      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  3.2960 +      # need to do runtime linking.
  3.2961 +      case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
  3.2962 +	for ld_flag in $LDFLAGS; do
  3.2963 +	  case $ld_flag in
  3.2964 +	  *-brtl*)
  3.2965 +	    aix_use_runtimelinking=yes
  3.2966 +	    break
  3.2967 +	    ;;
  3.2968 +	  esac
  3.2969 +	done
  3.2970 +      esac
  3.2971 +
  3.2972 +      exp_sym_flag='-bexport'
  3.2973 +      no_entry_flag='-bnoentry'
  3.2974 +    fi
  3.2975 +
  3.2976 +    # When large executables or shared objects are built, AIX ld can
  3.2977 +    # have problems creating the table of contents.  If linking a library
  3.2978 +    # or program results in "error TOC overflow" add -mminimal-toc to
  3.2979 +    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
  3.2980 +    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  3.2981 +
  3.2982 +    _LT_AC_TAGVAR(archive_cmds, $1)=''
  3.2983 +    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  3.2984 +    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  3.2985 +    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  3.2986 +
  3.2987 +    if test "$GXX" = yes; then
  3.2988 +      case $host_os in aix4.[012]|aix4.[012].*)
  3.2989 +      # We only want to do this on AIX 4.2 and lower, the check
  3.2990 +      # below for broken collect2 doesn't work under 4.3+
  3.2991 +	collect2name=`${CC} -print-prog-name=collect2`
  3.2992 +	if test -f "$collect2name" && \
  3.2993 +	   strings "$collect2name" | grep resolve_lib_name >/dev/null
  3.2994 +	then
  3.2995 +	  # We have reworked collect2
  3.2996 +	  _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  3.2997 +	else
  3.2998 +	  # We have old collect2
  3.2999 +	  _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  3.3000 +	  # It fails to find uninstalled libraries when the uninstalled
  3.3001 +	  # path is not listed in the libpath.  Setting hardcode_minus_L
  3.3002 +	  # to unsupported forces relinking
  3.3003 +	  _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  3.3004 +	  _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  3.3005 +	  _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  3.3006 +	fi
  3.3007 +      esac
  3.3008 +      shared_flag='-shared'
  3.3009 +    else
  3.3010 +      # not using gcc
  3.3011 +      if test "$host_cpu" = ia64; then
  3.3012 +	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  3.3013 +	# chokes on -Wl,-G. The following line is correct:
  3.3014 +	shared_flag='-G'
  3.3015 +      else
  3.3016 +	if test "$aix_use_runtimelinking" = yes; then
  3.3017 +	  shared_flag='${wl}-G'
  3.3018 +	else
  3.3019 +	  shared_flag='${wl}-bM:SRE'
  3.3020 +	fi
  3.3021 +      fi
  3.3022 +    fi
  3.3023 +
  3.3024 +    # It seems that -bexpall does not export symbols beginning with
  3.3025 +    # underscore (_), so it is better to generate a list of symbols to export.
  3.3026 +    _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  3.3027 +    if test "$aix_use_runtimelinking" = yes; then
  3.3028 +      # Warning - without using the other runtime loading flags (-brtl),
  3.3029 +      # -berok will link without error, but may produce a broken library.
  3.3030 +      _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
  3.3031 +      # Determine the default libpath from the value encoded in an empty executable.
  3.3032 +      _LT_AC_SYS_LIBPATH_AIX
  3.3033 +      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  3.3034 +
  3.3035 +      _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  3.3036 +     else
  3.3037 +      if test "$host_cpu" = ia64; then
  3.3038 +	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  3.3039 +	_LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  3.3040 +	_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
  3.3041 +      else
  3.3042 +	# Determine the default libpath from the value encoded in an empty executable.
  3.3043 +	_LT_AC_SYS_LIBPATH_AIX
  3.3044 +	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  3.3045 +	# Warning - without using the other run time loading flags,
  3.3046 +	# -berok will link without error, but may produce a broken library.
  3.3047 +	_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  3.3048 +	_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  3.3049 +	# -bexpall does not export symbols beginning with underscore (_)
  3.3050 +	_LT_AC_TAGVAR(always_export_symbols, $1)=yes
  3.3051 +	# Exported symbols can be pulled into shared objects from archives
  3.3052 +	_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
  3.3053 +	_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  3.3054 +	# This is similar to how AIX traditionally builds it's shared libraries.
  3.3055 +	_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  3.3056 +      fi
  3.3057 +    fi
  3.3058 +    ;;
  3.3059 +  chorus*)
  3.3060 +    case $cc_basename in
  3.3061 +      *)
  3.3062 +	# FIXME: insert proper C++ library support
  3.3063 +	_LT_AC_TAGVAR(ld_shlibs, $1)=no
  3.3064 +	;;
  3.3065 +    esac
  3.3066 +    ;;
  3.3067 +
  3.3068 +  cygwin* | mingw* | pw32*)
  3.3069 +    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  3.3070 +    # as there is no search path for DLLs.
  3.3071 +    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  3.3072 +    _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  3.3073 +    _LT_AC_TAGVAR(always_export_symbols, $1)=no
  3.3074 +    _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  3.3075 +
  3.3076 +    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  3.3077 +      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base ${wl}--out-implib,$lib'
  3.3078 +      # If the export-symbols file already is a .def file (1st line
  3.3079 +      # is EXPORTS), use it as is; otherwise, prepend...
  3.3080 +      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  3.3081 +	cp $export_symbols $output_objdir/$soname.def;
  3.3082 +      else
  3.3083 +	echo EXPORTS > $output_objdir/$soname.def;
  3.3084 +	cat $export_symbols >> $output_objdir/$soname.def;
  3.3085 +      fi~
  3.3086 +      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base ${wl}--out-implib,$lib'
  3.3087 +    else
  3.3088 +      _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3.3089 +    fi
  3.3090 +  ;;
  3.3091 +
  3.3092 +  darwin* | rhapsody*)
  3.3093 +   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then 
  3.3094 +    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  3.3095 +    case "$host_os" in
  3.3096 +    rhapsody* | darwin1.[[012]])
  3.3097 +      _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
  3.3098 +      ;;
  3.3099 +    *) # Darwin 1.3 on
  3.3100 +      test -z ${LD_TWOLEVEL_NAMESPACE} && _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
  3.3101 +      ;;
  3.3102 +    esac
  3.3103 +    	lt_int_apple_cc_single_mod=no
  3.3104 +    	output_verbose_link_cmd='echo'
  3.3105 +    	if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
  3.3106 +    	  lt_int_apple_cc_single_mod=yes
  3.3107 +    	fi
  3.3108 +    	if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  3.3109 +    	  _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  3.3110 +    	else
  3.3111 +        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  3.3112 +      fi
  3.3113 +      _LT_AC_TAGVAR(module_cmds, $1)='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
  3.3114 +
  3.3115 +    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  3.3116 +      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  3.3117 +        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  3.3118 +      else
  3.3119 +        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  3.3120 +      fi
  3.3121 +        _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  3.3122 +    _LT_AC_TAGVAR(hardcode_direct, $1)=no
  3.3123 +    _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
  3.3124 +    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  3.3125 +    _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
  3.3126 +    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  3.3127 +   fi 
  3.3128 +    ;;
  3.3129 +
  3.3130 +  dgux*)
  3.3131 +    case $cc_basename in
  3.3132 +      ec++)
  3.3133 +	# FIXME: insert proper C++ library support
  3.3134 +	_LT_AC_TAGVAR(ld_shlibs, $1)=no
  3.3135 +	;;
  3.3136 +      ghcx)
  3.3137 +	# Green Hills C++ Compiler
  3.3138 +	# FIXME: insert proper C++ library support
  3.3139 +	_LT_AC_TAGVAR(ld_shlibs, $1)=no
  3.3140 +	;;
  3.3141 +      *)
  3.3142 +	# FIXME: insert proper C++ library support
  3.3143 +	_LT_AC_TAGVAR(ld_shlibs, $1)=no
  3.3144 +	;;
  3.3145 +    esac
  3.3146 +    ;;
  3.3147 +  freebsd[12]*)
  3.3148 +    # C++ shared libraries reported to be fairly broken before switch to ELF
  3.3149 +    _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3.3150 +    ;;
  3.3151 +  freebsd-elf*)
  3.3152 +    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  3.3153 +    ;;
  3.3154 +  freebsd*)
  3.3155 +    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  3.3156 +    # conventions
  3.3157 +    _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  3.3158 +    ;;
  3.3159 +  gnu*)
  3.3160 +    ;;
  3.3161 +  hpux9*)
  3.3162 +    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  3.3163 +    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  3.3164 +    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  3.3165 +    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  3.3166 +    _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  3.3167 +				# but as the default
  3.3168 +				# location of the library.
  3.3169 +
  3.3170 +    case $cc_basename in
  3.3171 +    CC)
  3.3172 +      # FIXME: insert proper C++ library support
  3.3173 +      _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3.3174 +      ;;
  3.3175 +    aCC)
  3.3176 +      _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  3.3177 +      # Commands to make compiler produce verbose output that lists
  3.3178 +      # what "hidden" libraries, object files and flags are used when
  3.3179 +      # linking a shared library.
  3.3180 +      #
  3.3181 +      # There doesn't appear to be a way to prevent this compiler from
  3.3182 +      # explicitly linking system object files so we need to strip them
  3.3183 +      # from the output so that they don't get included in the library
  3.3184 +      # dependencies.
  3.3185 +      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  3.3186 +      ;;
  3.3187 +    *)
  3.3188 +      if test "$GXX" = yes; then
  3.3189 +        _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  3.3190 +      else
  3.3191 +        # FIXME: insert proper C++ library support
  3.3192 +        _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3.3193 +      fi
  3.3194 +      ;;
  3.3195 +    esac
  3.3196 +    ;;
  3.3197 +  hpux10*|hpux11*)
  3.3198 +    if test $with_gnu_ld = no; then
  3.3199 +      case "$host_cpu" in
  3.3200 +      hppa*64*)
  3.3201 +	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  3.3202 +	_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
  3.3203 +	_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  3.3204 +        ;;
  3.3205 +      ia64*)
  3.3206 +	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  3.3207 +        ;;
  3.3208 +      *)
  3.3209 +	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  3.3210 +	_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  3.3211 +	_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  3.3212 +        ;;
  3.3213 +      esac
  3.3214 +    fi
  3.3215 +    case "$host_cpu" in
  3.3216 +    hppa*64*)
  3.3217 +      _LT_AC_TAGVAR(hardcode_direct, $1)=no
  3.3218 +      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  3.3219 +      ;;
  3.3220 +    ia64*)
  3.3221 +      _LT_AC_TAGVAR(hardcode_direct, $1)=no
  3.3222 +      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  3.3223 +      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  3.3224 +					      # but as the default
  3.3225 +					      # location of the library.
  3.3226 +      ;;
  3.3227 +    *)
  3.3228 +      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  3.3229 +      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  3.3230 +					      # but as the default
  3.3231 +					      # location of the library.
  3.3232 +      ;;
  3.3233 +    esac
  3.3234 +
  3.3235 +    case $cc_basename in
  3.3236 +      CC)
  3.3237 +	# FIXME: insert proper C++ library support
  3.3238 +	_LT_AC_TAGVAR(ld_shlibs, $1)=no
  3.3239 +	;;
  3.3240 +      aCC)
  3.3241 +	case "$host_cpu" in
  3.3242 +	hppa*64*|ia64*)
  3.3243 +	  _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
  3.3244 +	  ;;
  3.3245 +	*)
  3.3246 +	  _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  3.3247 +	  ;;
  3.3248 +	esac
  3.3249 +	# Commands to make compiler produce verbose output that lists
  3.3250 +	# what "hidden" libraries, object files and flags are used when
  3.3251 +	# linking a shared library.
  3.3252 +	#
  3.3253 +	# There doesn't appear to be a way to prevent this compiler from
  3.3254 +	# explicitly linking system object files so we need to strip them
  3.3255 +	# from the output so that they don't get included in the library
  3.3256 +	# dependencies.
  3.3257 +	output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  3.3258 +	;;
  3.3259 +      *)
  3.3260 +	if test "$GXX" = yes; then
  3.3261 +	  if test $with_gnu_ld = no; then
  3.3262 +	    case "$host_cpu" in
  3.3263 +	    ia64*|hppa*64*)
  3.3264 +	      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
  3.3265 +	      ;;
  3.3266 +	    *)
  3.3267 +	      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  3.3268 +	      ;;
  3.3269 +	    esac
  3.3270 +	  fi
  3.3271 +	else
  3.3272 +	  # FIXME: insert proper C++ library support
  3.3273 +	  _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3.3274 +	fi
  3.3275 +	;;
  3.3276 +    esac
  3.3277 +    ;;
  3.3278 +  irix5* | irix6*)
  3.3279 +    case $cc_basename in
  3.3280 +      CC)
  3.3281 +	# SGI C++
  3.3282 +	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
  3.3283 +
  3.3284 +	# Archives containing C++ object files must be created using
  3.3285 +	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
  3.3286 +	# necessary to make sure instantiated templates are included
  3.3287 +	# in the archive.
  3.3288 +	_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
  3.3289 +	;;
  3.3290 +      *)
  3.3291 +	if test "$GXX" = yes; then
  3.3292 +	  if test "$with_gnu_ld" = no; then
  3.3293 +	    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
  3.3294 +	  else
  3.3295 +	    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
  3.3296 +	  fi
  3.3297 +	fi
  3.3298 +	_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  3.3299 +	;;
  3.3300 +    esac
  3.3301 +    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  3.3302 +    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  3.3303 +    ;;
  3.3304 +  linux*)
  3.3305 +    case $cc_basename in
  3.3306 +      KCC)
  3.3307 +	# Kuck and Associates, Inc. (KAI) C++ Compiler
  3.3308 +
  3.3309 +	# KCC will only create a shared library if the output file
  3.3310 +	# ends with ".so" (or ".sl" for HP-UX), so rename the library
  3.3311 +	# to its proper name (with version) after linking.
  3.3312 +	_LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  3.3313 +	_LT_AC_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
  3.3314 +	# Commands to make compiler produce verbose output that lists
  3.3315 +	# what "hidden" libraries, object files and flags are used when
  3.3316 +	# linking a shared library.
  3.3317 +	#
  3.3318 +	# There doesn't appear to be a way to prevent this compiler from
  3.3319 +	# explicitly linking system object files so we need to strip them
  3.3320 +	# from the output so that they don't get included in the library
  3.3321 +	# dependencies.
  3.3322 +	output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  3.3323 +
  3.3324 +	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
  3.3325 +	_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  3.3326 +
  3.3327 +	# Archives containing C++ object files must be created using
  3.3328 +	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
  3.3329 +	_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  3.3330 +	;;
  3.3331 +      icpc)
  3.3332 +	# Intel C++
  3.3333 +	with_gnu_ld=yes
  3.3334 +	_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  3.3335 +	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  3.3336 +	_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  3.3337 +	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  3.3338 +	_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  3.3339 +	_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  3.3340 +	;;
  3.3341 +      cxx)
  3.3342 +	# Compaq C++
  3.3343 +	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  3.3344 +	_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
  3.3345 +
  3.3346 +	runpath_var=LD_RUN_PATH
  3.3347 +	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  3.3348 +	_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  3.3349 +
  3.3350 +	# Commands to make compiler produce verbose output that lists
  3.3351 +	# what "hidden" libraries, object files and flags are used when
  3.3352 +	# linking a shared library.
  3.3353 +	#
  3.3354 +	# There doesn't appear to be a way to prevent this compiler from
  3.3355 +	# explicitly linking system object files so we need to strip them
  3.3356 +	# from the output so that they don't get included in the library
  3.3357 +	# dependencies.
  3.3358 +	output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  3.3359 +	;;
  3.3360 +    esac
  3.3361 +    ;;
  3.3362 +  lynxos*)
  3.3363 +    # FIXME: insert proper C++ library support
  3.3364 +    _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3.3365 +    ;;
  3.3366 +  m88k*)
  3.3367 +    # FIXME: insert proper C++ library support
  3.3368 +    _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3.3369 +    ;;
  3.3370 +  mvs*)
  3.3371 +    case $cc_basename in
  3.3372 +      cxx)
  3.3373 +	# FIXME: insert proper C++ library support
  3.3374 +	_LT_AC_TAGVAR(ld_shlibs, $1)=no
  3.3375 +	;;
  3.3376 +      *)
  3.3377 +	# FIXME: insert proper C++ library support
  3.3378 +	_LT_AC_TAGVAR(ld_shlibs, $1)=no
  3.3379 +	;;
  3.3380 +    esac
  3.3381 +    ;;
  3.3382 +  netbsd*)
  3.3383 +    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  3.3384 +      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  3.3385 +      wlarc=
  3.3386 +      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  3.3387 +      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  3.3388 +      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  3.3389 +    fi
  3.3390 +    # Workaround some broken pre-1.5 toolchains
  3.3391 +    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  3.3392 +    ;;
  3.3393 +  osf3*)
  3.3394 +    case $cc_basename in
  3.3395 +      KCC)
  3.3396 +	# Kuck and Associates, Inc. (KAI) C++ Compiler
  3.3397 +
  3.3398 +	# KCC will only create a shared library if the output file
  3.3399 +	# ends with ".so" (or ".sl" for HP-UX), so rename the library
  3.3400 +	# to its proper name (with version) after linking.
  3.3401 +	_LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  3.3402 +
  3.3403 +	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  3.3404 +	_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  3.3405 +
  3.3406 +	# Archives containing C++ object files must be created using
  3.3407 +	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
  3.3408 +	_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  3.3409 +
  3.3410 +	;;
  3.3411 +      RCC)
  3.3412 +	# Rational C++ 2.4.1
  3.3413 +	# FIXME: insert proper C++ library support
  3.3414 +	_LT_AC_TAGVAR(ld_shlibs, $1)=no
  3.3415 +	;;
  3.3416 +      cxx)
  3.3417 +	_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  3.3418 +	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
  3.3419 +
  3.3420 +	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  3.3421 +	_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  3.3422 +
  3.3423 +	# Commands to make compiler produce verbose output that lists
  3.3424 +	# what "hidden" libraries, object files and flags are used when
  3.3425 +	# linking a shared library.
  3.3426 +	#
  3.3427 +	# There doesn't appear to be a way to prevent this compiler from
  3.3428 +	# explicitly linking system object files so we need to strip them
  3.3429 +	# from the output so that they don't get included in the library
  3.3430 +	# dependencies.
  3.3431 +	output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  3.3432 +	;;
  3.3433 +      *)
  3.3434 +	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  3.3435 +	  _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  3.3436 +	  _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
  3.3437 +
  3.3438 +	  _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  3.3439 +	  _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  3.3440 +
  3.3441 +	  # Commands to make compiler produce verbose output that lists
  3.3442 +	  # what "hidden" libraries, object files and flags are used when
  3.3443 +	  # linking a shared library.
  3.3444 +	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  3.3445 +
  3.3446 +	else
  3.3447 +	  # FIXME: insert proper C++ library support
  3.3448 +	  _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3.3449 +	fi
  3.3450 +	;;
  3.3451 +    esac
  3.3452 +    ;;
  3.3453 +  osf4* | osf5*)
  3.3454 +    case $cc_basename in
  3.3455 +      KCC)
  3.3456 +	# Kuck and Associates, Inc. (KAI) C++ Compiler
  3.3457 +
  3.3458 +	# KCC will only create a shared library if the output file
  3.3459 +	# ends with ".so" (or ".sl" for HP-UX), so rename the library
  3.3460 +	# to its proper name (with version) after linking.
  3.3461 +	_LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  3.3462 +
  3.3463 +	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  3.3464 +	_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  3.3465 +
  3.3466 +	# Archives containing C++ object files must be created using
  3.3467 +	# the KAI C++ compiler.
  3.3468 +	_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
  3.3469 +	;;
  3.3470 +      RCC)
  3.3471 +	# Rational C++ 2.4.1
  3.3472 +	# FIXME: insert proper C++ library support
  3.3473 +	_LT_AC_TAGVAR(ld_shlibs, $1)=no
  3.3474 +	;;
  3.3475 +      cxx)
  3.3476 +	_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  3.3477 +	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
  3.3478 +	_LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  3.3479 +	  echo "-hidden">> $lib.exp~
  3.3480 +	  $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version	$verstring` -update_registry $objdir/so_locations -o $lib~
  3.3481 +	  $rm $lib.exp'
  3.3482 +
  3.3483 +	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  3.3484 +	_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  3.3485 +
  3.3486 +	# Commands to make compiler produce verbose output that lists
  3.3487 +	# what "hidden" libraries, object files and flags are used when
  3.3488 +	# linking a shared library.
  3.3489 +	#
  3.3490 +	# There doesn't appear to be a way to prevent this compiler from
  3.3491 +	# explicitly linking system object files so we need to strip them
  3.3492 +	# from the output so that they don't get included in the library
  3.3493 +	# dependencies.
  3.3494 +	output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  3.3495 +	;;
  3.3496 +      *)
  3.3497 +	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  3.3498 +	  _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  3.3499 +	 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
  3.3500 +
  3.3501 +	  _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  3.3502 +	  _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  3.3503 +
  3.3504 +	  # Commands to make compiler produce verbose output that lists
  3.3505 +	  # what "hidden" libraries, object files and flags are used when
  3.3506 +	  # linking a shared library.
  3.3507 +	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  3.3508 +
  3.3509 +	else
  3.3510 +	  # FIXME: insert proper C++ library support
  3.3511 +	  _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3.3512 +	fi
  3.3513 +	;;
  3.3514 +    esac
  3.3515 +    ;;
  3.3516 +  psos*)
  3.3517 +    # FIXME: insert proper C++ library support
  3.3518 +    _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3.3519 +    ;;
  3.3520 +  sco*)
  3.3521 +    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  3.3522 +    case $cc_basename in
  3.3523 +      CC)
  3.3524 +	# FIXME: insert proper C++ library support
  3.3525 +	_LT_AC_TAGVAR(ld_shlibs, $1)=no
  3.3526 +	;;
  3.3527 +      *)
  3.3528 +	# FIXME: insert proper C++ library support
  3.3529 +	_LT_AC_TAGVAR(ld_shlibs, $1)=no
  3.3530 +	;;
  3.3531 +    esac
  3.3532 +    ;;
  3.3533 +  sunos4*)
  3.3534 +    case $cc_basename in
  3.3535 +      CC)
  3.3536 +	# Sun C++ 4.x
  3.3537 +	# FIXME: insert proper C++ library support
  3.3538 +	_LT_AC_TAGVAR(ld_shlibs, $1)=no
  3.3539 +	;;
  3.3540 +      lcc)
  3.3541 +	# Lucid
  3.3542 +	# FIXME: insert proper C++ library support
  3.3543 +	_LT_AC_TAGVAR(ld_shlibs, $1)=no
  3.3544 +	;;
  3.3545 +      *)
  3.3546 +	# FIXME: insert proper C++ library support
  3.3547 +	_LT_AC_TAGVAR(ld_shlibs, $1)=no
  3.3548 +	;;
  3.3549 +    esac
  3.3550 +    ;;
  3.3551 +  solaris*)
  3.3552 +    case $cc_basename in
  3.3553 +      CC)
  3.3554 +	# Sun C++ 4.2, 5.x and Centerline C++
  3.3555 +	_LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  3.3556 +	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  3.3557 +	_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  3.3558 +	$CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  3.3559 +
  3.3560 +	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  3.3561 +	_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  3.3562 +	case $host_os in
  3.3563 +	  solaris2.[0-5] | solaris2.[0-5].*) ;;
  3.3564 +	  *)
  3.3565 +	    # The C++ compiler is used as linker so we must use $wl
  3.3566 +	    # flag to pass the commands to the underlying system
  3.3567 +	    # linker.
  3.3568 +	    # Supported since Solaris 2.6 (maybe 2.5.1?)
  3.3569 +	    _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  3.3570 +	    ;;
  3.3571 +	esac
  3.3572 +	_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  3.3573 +
  3.3574 +	# Commands to make compiler produce verbose output that lists
  3.3575 +	# what "hidden" libraries, object files and flags are used when
  3.3576 +	# linking a shared library.
  3.3577 +	#
  3.3578 +	# There doesn't appear to be a way to prevent this compiler from
  3.3579 +	# explicitly linking system object files so we need to strip them
  3.3580 +	# from the output so that they don't get included in the library
  3.3581 +	# dependencies.
  3.3582 +	output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[[LR]]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  3.3583 +
  3.3584 +	# Archives containing C++ object files must be created using
  3.3585 +	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
  3.3586 +	# necessary to make sure instantiated templates are included
  3.3587 +	# in the archive.
  3.3588 +	_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  3.3589 +	;;
  3.3590 +      gcx)
  3.3591 +	# Green Hills C++ Compiler
  3.3592 +	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  3.3593 +
  3.3594 +	# The C++ compiler must be used to create the archive.
  3.3595 +	_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  3.3596 +	;;
  3.3597 +      *)
  3.3598 +	# GNU C++ compiler with Solaris linker
  3.3599 +	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  3.3600 +	  _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
  3.3601 +	  if $CC --version | grep -v '^2\.7' > /dev/null; then
  3.3602 +	    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  3.3603 +	    _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  3.3604 +		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  3.3605 +
  3.3606 +	    # Commands to make compiler produce verbose output that lists
  3.3607 +	    # what "hidden" libraries, object files and flags are used when
  3.3608 +	    # linking a shared library.
  3.3609 +	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  3.3610 +	  else
  3.3611 +	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
  3.3612 +	    # platform.
  3.3613 +	    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  3.3614 +	    _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  3.3615 +		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  3.3616 +
  3.3617 +	    # Commands to make compiler produce verbose output that lists
  3.3618 +	    # what "hidden" libraries, object files and flags are used when
  3.3619 +	    # linking a shared library.
  3.3620 +	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  3.3621 +	  fi
  3.3622 +
  3.3623 +	  _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
  3.3624 +	fi
  3.3625 +	;;
  3.3626 +    esac
  3.3627 +    ;;
  3.3628 +  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
  3.3629 +    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  3.3630 +    ;;
  3.3631 +  tandem*)
  3.3632 +    case $cc_basename in
  3.3633 +      NCC)
  3.3634 +	# NonStop-UX NCC 3.20
  3.3635 +	# FIXME: insert proper C++ library support
  3.3636 +	_LT_AC_TAGVAR(ld_shlibs, $1)=no
  3.3637 +	;;
  3.3638 +      *)
  3.3639 +	# FIXME: insert proper C++ library support
  3.3640 +	_LT_AC_TAGVAR(ld_shlibs, $1)=no
  3.3641 +	;;
  3.3642 +    esac
  3.3643 +    ;;
  3.3644 +  vxworks*)
  3.3645 +    # FIXME: insert proper C++ library support
  3.3646 +    _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3.3647 +    ;;
  3.3648 +  *)
  3.3649 +    # FIXME: insert proper C++ library support
  3.3650 +    _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3.3651 +    ;;
  3.3652 +esac
  3.3653 +AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
  3.3654 +test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  3.3655 +
  3.3656 +_LT_AC_TAGVAR(GCC, $1)="$GXX"
  3.3657 +_LT_AC_TAGVAR(LD, $1)="$LD"
  3.3658 +
  3.3659 +## CAVEAT EMPTOR:
  3.3660 +## There is no encapsulation within the following macros, do not change
  3.3661 +## the running order or otherwise move them around unless you know exactly
  3.3662 +## what you are doing...
  3.3663 +AC_LIBTOOL_POSTDEP_PREDEP($1)
  3.3664 +AC_LIBTOOL_PROG_COMPILER_PIC($1)
  3.3665 +AC_LIBTOOL_PROG_CC_C_O($1)
  3.3666 +AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  3.3667 +AC_LIBTOOL_PROG_LD_SHLIBS($1)
  3.3668 +AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  3.3669 +AC_LIBTOOL_SYS_LIB_STRIP
  3.3670 +AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  3.3671 +AC_LIBTOOL_DLOPEN_SELF($1)
  3.3672 +
  3.3673 +AC_LIBTOOL_CONFIG($1)
  3.3674 +
  3.3675 +AC_LANG_POP
  3.3676 +CC=$lt_save_CC
  3.3677 +LDCXX=$LD
  3.3678 +LD=$lt_save_LD
  3.3679 +GCC=$lt_save_GCC
  3.3680 +with_gnu_ldcxx=$with_gnu_ld
  3.3681 +with_gnu_ld=$lt_save_with_gnu_ld
  3.3682 +lt_cv_path_LDCXX=$lt_cv_path_LD
  3.3683 +lt_cv_path_LD=$lt_save_path_LD
  3.3684 +lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  3.3685 +lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  3.3686 +])# AC_LIBTOOL_LANG_CXX_CONFIG
  3.3687 +
  3.3688 +# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
  3.3689 +# ------------------------
  3.3690 +# Figure out "hidden" library dependencies from verbose
  3.3691 +# compiler output when linking a shared library.
  3.3692 +# Parse the compiler output and extract the necessary
  3.3693 +# objects, libraries and library flags.
  3.3694 +AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
  3.3695 +dnl we can't use the lt_simple_compile_test_code here,
  3.3696 +dnl because it contains code intended for an executable,
  3.3697 +dnl not a library.  It's possible we should let each
  3.3698 +dnl tag define a new lt_????_link_test_code variable,
  3.3699 +dnl but it's only used here...
  3.3700 +ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
  3.3701 +int a;
  3.3702 +void foo (void) { a = 0; }
  3.3703 +EOF
  3.3704 +],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
  3.3705 +class Foo
  3.3706 +{
  3.3707 +public:
  3.3708 +  Foo (void) { a = 0; }
  3.3709 +private:
  3.3710 +  int a;
  3.3711 +};
  3.3712 +EOF
  3.3713 +],[$1],[F77],[cat > conftest.$ac_ext <<EOF
  3.3714 +      subroutine foo
  3.3715 +      implicit none
  3.3716 +      integer*4 a
  3.3717 +      a=0
  3.3718 +      return
  3.3719 +      end
  3.3720 +EOF
  3.3721 +],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
  3.3722 +public class foo {
  3.3723 +  private int a;
  3.3724 +  public void bar (void) {
  3.3725 +    a = 0;
  3.3726 +  }
  3.3727 +};
  3.3728 +EOF
  3.3729 +])
  3.3730 +dnl Parse the compiler output and extract the necessary
  3.3731 +dnl objects, libraries and library flags.
  3.3732 +if AC_TRY_EVAL(ac_compile); then
  3.3733 +  # Parse the compiler output and extract the necessary
  3.3734 +  # objects, libraries and library flags.
  3.3735 +
  3.3736 +  # Sentinel used to keep track of whether or not we are before
  3.3737 +  # the conftest object file.
  3.3738 +  pre_test_object_deps_done=no
  3.3739 +
  3.3740 +  # The `*' in the case matches for architectures that use `case' in
  3.3741 +  # $output_verbose_cmd can trigger glob expansion during the loop
  3.3742 +  # eval without this substitution.
  3.3743 +  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
  3.3744 +
  3.3745 +  for p in `eval $output_verbose_link_cmd`; do
  3.3746 +    case $p in
  3.3747 +
  3.3748 +    -L* | -R* | -l*)
  3.3749 +       # Some compilers place space between "-{L,R}" and the path.
  3.3750 +       # Remove the space.
  3.3751 +       if test $p = "-L" \
  3.3752 +	  || test $p = "-R"; then
  3.3753 +	 prev=$p
  3.3754 +	 continue
  3.3755 +       else
  3.3756 +	 prev=
  3.3757 +       fi
  3.3758 +
  3.3759 +       if test "$pre_test_object_deps_done" = no; then
  3.3760 +	 case $p in
  3.3761 +	 -L* | -R*)
  3.3762 +	   # Internal compiler library paths should come after those
  3.3763 +	   # provided the user.  The postdeps already come after the
  3.3764 +	   # user supplied libs so there is no need to process them.
  3.3765 +	   if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
  3.3766 +	     _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
  3.3767 +	   else
  3.3768 +	     _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
  3.3769 +	   fi
  3.3770 +	   ;;
  3.3771 +	 # The "-l" case would never come before the object being
  3.3772 +	 # linked, so don't bother handling this case.
  3.3773 +	 esac
  3.3774 +       else
  3.3775 +	 if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
  3.3776 +	   _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
  3.3777 +	 else
  3.3778 +	   _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
  3.3779 +	 fi
  3.3780 +       fi
  3.3781 +       ;;
  3.3782 +
  3.3783 +    *.$objext)
  3.3784 +       # This assumes that the test object file only shows up
  3.3785 +       # once in the compiler output.
  3.3786 +       if test "$p" = "conftest.$objext"; then
  3.3787 +	 pre_test_object_deps_done=yes
  3.3788 +	 continue
  3.3789 +       fi
  3.3790 +
  3.3791 +       if test "$pre_test_object_deps_done" = no; then
  3.3792 +	 if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
  3.3793 +	   _LT_AC_TAGVAR(predep_objects, $1)="$p"
  3.3794 +	 else
  3.3795 +	   _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
  3.3796 +	 fi
  3.3797 +       else
  3.3798 +	 if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
  3.3799 +	   _LT_AC_TAGVAR(postdep_objects, $1)="$p"
  3.3800 +	 else
  3.3801 +	   _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
  3.3802 +	 fi
  3.3803 +       fi
  3.3804 +       ;;
  3.3805 +
  3.3806 +    *) ;; # Ignore the rest.
  3.3807 +
  3.3808 +    esac
  3.3809 +  done
  3.3810 +
  3.3811 +  # Clean up.
  3.3812 +  rm -f a.out a.exe
  3.3813 +else
  3.3814 +  echo "libtool.m4: error: problem compiling $1 test program"
  3.3815 +fi
  3.3816 +
  3.3817 +$rm -f confest.$objext
  3.3818 +
  3.3819 +case " $_LT_AC_TAGVAR(postdeps, $1) " in
  3.3820 +*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
  3.3821 +esac
  3.3822 +])# AC_LIBTOOL_POSTDEP_PREDEP
  3.3823 +
  3.3824 +# AC_LIBTOOL_LANG_F77_CONFIG
  3.3825 +# ------------------------
  3.3826 +# Ensure that the configuration vars for the C compiler are
  3.3827 +# suitably defined.  Those variables are subsequently used by
  3.3828 +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  3.3829 +AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
  3.3830 +AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
  3.3831 +[AC_REQUIRE([AC_PROG_F77])
  3.3832 +AC_LANG_PUSH(Fortran 77)
  3.3833 +
  3.3834 +_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  3.3835 +_LT_AC_TAGVAR(allow_undefined_flag, $1)=
  3.3836 +_LT_AC_TAGVAR(always_export_symbols, $1)=no
  3.3837 +_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
  3.3838 +_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  3.3839 +_LT_AC_TAGVAR(hardcode_direct, $1)=no
  3.3840 +_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  3.3841 +_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  3.3842 +_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  3.3843 +_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  3.3844 +_LT_AC_TAGVAR(hardcode_automatic, $1)=no
  3.3845 +_LT_AC_TAGVAR(module_cmds, $1)=
  3.3846 +_LT_AC_TAGVAR(module_expsym_cmds, $1)=
  3.3847 +_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
  3.3848 +_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  3.3849 +_LT_AC_TAGVAR(no_undefined_flag, $1)=
  3.3850 +_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  3.3851 +_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  3.3852 +
  3.3853 +# Source file extension for f77 test sources.
  3.3854 +ac_ext=f
  3.3855 +
  3.3856 +# Object file extension for compiled f77 test sources.
  3.3857 +objext=o
  3.3858 +_LT_AC_TAGVAR(objext, $1)=$objext
  3.3859 +
  3.3860 +# Code to be used in simple compile tests
  3.3861 +lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
  3.3862 +
  3.3863 +# Code to be used in simple link tests
  3.3864 +lt_simple_link_test_code="      program t\n      end\n"
  3.3865 +
  3.3866 +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  3.3867 +_LT_AC_SYS_COMPILER
  3.3868 +
  3.3869 +# Allow CC to be a program name with arguments.
  3.3870 +lt_save_CC="$CC"
  3.3871 +CC=${F77-"f77"}
  3.3872 +compiler=$CC
  3.3873 +_LT_AC_TAGVAR(compiler, $1)=$CC
  3.3874 +cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
  3.3875 +
  3.3876 +AC_MSG_CHECKING([if libtool supports shared libraries])
  3.3877 +AC_MSG_RESULT([$can_build_shared])
  3.3878 +
  3.3879 +AC_MSG_CHECKING([whether to build shared libraries])
  3.3880 +test "$can_build_shared" = "no" && enable_shared=no
  3.3881 +
  3.3882 +# On AIX, shared libraries and static libraries use the same namespace, and
  3.3883 +# are all built from PIC.
  3.3884 +case "$host_os" in
  3.3885 +aix3*)
  3.3886 +  test "$enable_shared" = yes && enable_static=no
  3.3887 +  if test -n "$RANLIB"; then
  3.3888 +    archive_cmds="$archive_cmds~\$RANLIB \$lib"
  3.3889 +    postinstall_cmds='$RANLIB $lib'
  3.3890 +  fi
  3.3891 +  ;;
  3.3892 +aix4*)
  3.3893 +  test "$enable_shared" = yes && enable_static=no
  3.3894 +  ;;
  3.3895 +esac
  3.3896 +AC_MSG_RESULT([$enable_shared])
  3.3897 +
  3.3898 +AC_MSG_CHECKING([whether to build static libraries])
  3.3899 +# Make sure either enable_shared or enable_static is yes.
  3.3900 +test "$enable_shared" = yes || enable_static=yes
  3.3901 +AC_MSG_RESULT([$enable_static])
  3.3902 +
  3.3903 +test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  3.3904 +
  3.3905 +_LT_AC_TAGVAR(GCC, $1)="$G77"
  3.3906 +_LT_AC_TAGVAR(LD, $1)="$LD"
  3.3907 +
  3.3908 +AC_LIBTOOL_PROG_COMPILER_PIC($1)
  3.3909 +AC_LIBTOOL_PROG_CC_C_O($1)
  3.3910 +AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  3.3911 +AC_LIBTOOL_PROG_LD_SHLIBS($1)
  3.3912 +AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  3.3913 +AC_LIBTOOL_SYS_LIB_STRIP
  3.3914 +AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  3.3915 +
  3.3916 +AC_LIBTOOL_CONFIG($1)
  3.3917 +
  3.3918 +AC_LANG_POP
  3.3919 +CC="$lt_save_CC"
  3.3920 +])# AC_LIBTOOL_LANG_F77_CONFIG
  3.3921 +
  3.3922 +
  3.3923 +# AC_LIBTOOL_LANG_GCJ_CONFIG
  3.3924 +# --------------------------
  3.3925 +# Ensure that the configuration vars for the C compiler are
  3.3926 +# suitably defined.  Those variables are subsequently used by
  3.3927 +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  3.3928 +AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
  3.3929 +AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
  3.3930 +[AC_LANG_SAVE
  3.3931 +
  3.3932 +# Source file extension for Java test sources.
  3.3933 +ac_ext=java
  3.3934 +
  3.3935 +# Object file extension for compiled Java test sources.
  3.3936 +objext=o
  3.3937 +_LT_AC_TAGVAR(objext, $1)=$objext
  3.3938 +
  3.3939 +# Code to be used in simple compile tests
  3.3940 +lt_simple_compile_test_code="class foo {}\n"
  3.3941 +
  3.3942 +# Code to be used in simple link tests
  3.3943 +lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
  3.3944 +
  3.3945 +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  3.3946 +_LT_AC_SYS_COMPILER
  3.3947 +
  3.3948 +# Allow CC to be a program name with arguments.
  3.3949 +lt_save_CC="$CC"
  3.3950 +CC=${GCJ-"gcj"}
  3.3951 +compiler=$CC
  3.3952 +_LT_AC_TAGVAR(compiler, $1)=$CC
  3.3953 +
  3.3954 +# GCJ did not exist at the time GCC didn't implicitly link libc in.
  3.3955 +_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  3.3956 +
  3.3957 +## CAVEAT EMPTOR:
  3.3958 +## There is no encapsulation within the following macros, do not change
  3.3959 +## the running order or otherwise move them around unless you know exactly
  3.3960 +## what you are doing...
  3.3961 +AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
  3.3962 +AC_LIBTOOL_PROG_COMPILER_PIC($1)
  3.3963 +AC_LIBTOOL_PROG_CC_C_O($1)
  3.3964 +AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  3.3965 +AC_LIBTOOL_PROG_LD_SHLIBS($1)
  3.3966 +AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  3.3967 +AC_LIBTOOL_SYS_LIB_STRIP
  3.3968 +AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  3.3969 +AC_LIBTOOL_DLOPEN_SELF($1)
  3.3970 +
  3.3971 +AC_LIBTOOL_CONFIG($1)
  3.3972 +
  3.3973 +AC_LANG_RESTORE
  3.3974 +CC="$lt_save_CC"
  3.3975 +])# AC_LIBTOOL_LANG_GCJ_CONFIG
  3.3976 +
  3.3977 +
  3.3978 +# AC_LIBTOOL_LANG_RC_CONFIG
  3.3979 +# --------------------------
  3.3980 +# Ensure that the configuration vars for the Windows resource compiler are
  3.3981 +# suitably defined.  Those variables are subsequently used by
  3.3982 +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  3.3983 +AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
  3.3984 +AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
  3.3985 +[AC_LANG_SAVE
  3.3986 +
  3.3987 +# Source file extension for RC test sources.
  3.3988 +ac_ext=rc
  3.3989 +
  3.3990 +# Object file extension for compiled RC test sources.
  3.3991 +objext=o
  3.3992 +_LT_AC_TAGVAR(objext, $1)=$objext
  3.3993 +
  3.3994 +# Code to be used in simple compile tests
  3.3995 +lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
  3.3996 +
  3.3997 +# Code to be used in simple link tests
  3.3998 +lt_simple_link_test_code="$lt_simple_compile_test_code"
  3.3999 +
  3.4000 +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  3.4001 +_LT_AC_SYS_COMPILER
  3.4002 +
  3.4003 +# Allow CC to be a program name with arguments.
  3.4004 +lt_save_CC="$CC"
  3.4005 +CC=${RC-"windres"}
  3.4006 +compiler=$CC
  3.4007 +_LT_AC_TAGVAR(compiler, $1)=$CC
  3.4008 +_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  3.4009 +
  3.4010 +AC_LIBTOOL_CONFIG($1)
  3.4011 +
  3.4012 +AC_LANG_RESTORE
  3.4013 +CC="$lt_save_CC"
  3.4014 +])# AC_LIBTOOL_LANG_RC_CONFIG
  3.4015 +
  3.4016 +
  3.4017 +# AC_LIBTOOL_CONFIG([TAGNAME])
  3.4018 +# ----------------------------
  3.4019 +# If TAGNAME is not passed, then create an initial libtool script
  3.4020 +# with a default configuration from the untagged config vars.  Otherwise
  3.4021 +# add code to config.status for appending the configuration named by
  3.4022 +# TAGNAME from the matching tagged config vars.
  3.4023 +AC_DEFUN([AC_LIBTOOL_CONFIG],
  3.4024 +[# The else clause should only fire when bootstrapping the
  3.4025 +# libtool distribution, otherwise you forgot to ship ltmain.sh
  3.4026 +# with your package, and you will get complaints that there are
  3.4027 +# no rules to generate ltmain.sh.
  3.4028 +if test -f "$ltmain"; then
  3.4029 +  # See if we are running on zsh, and set the options which allow our commands through
  3.4030 +  # without removal of \ escapes.
  3.4031 +  if test -n "${ZSH_VERSION+set}" ; then
  3.4032 +    setopt NO_GLOB_SUBST
  3.4033 +  fi  
  3.4034 +  # Now quote all the things that may contain metacharacters while being
  3.4035 +  # careful not to overquote the AC_SUBSTed values.  We take copies of the
  3.4036 +  # variables and quote the copies for generation of the libtool script.
  3.4037 +  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
  3.4038 +    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  3.4039 +    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  3.4040 +    deplibs_check_method reload_flag reload_cmds need_locks \
  3.4041 +    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  3.4042 +    lt_cv_sys_global_symbol_to_c_name_address \
  3.4043 +    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  3.4044 +    old_postinstall_cmds old_postuninstall_cmds \
  3.4045 +    _LT_AC_TAGVAR(compiler, $1) \
  3.4046 +    _LT_AC_TAGVAR(CC, $1) \
  3.4047 +    _LT_AC_TAGVAR(LD, $1) \
  3.4048 +    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
  3.4049 +    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
  3.4050 +    _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
  3.4051 +    _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
  3.4052 +    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
  3.4053 +    _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
  3.4054 +    _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
  3.4055 +    _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
  3.4056 +    _LT_AC_TAGVAR(old_archive_cmds, $1) \
  3.4057 +    _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
  3.4058 +    _LT_AC_TAGVAR(predep_objects, $1) \
  3.4059 +    _LT_AC_TAGVAR(postdep_objects, $1) \
  3.4060 +    _LT_AC_TAGVAR(predeps, $1) \
  3.4061 +    _LT_AC_TAGVAR(postdeps, $1) \
  3.4062 +    _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
  3.4063 +    _LT_AC_TAGVAR(archive_cmds, $1) \
  3.4064 +    _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
  3.4065 +    _LT_AC_TAGVAR(postinstall_cmds, $1) \
  3.4066 +    _LT_AC_TAGVAR(postuninstall_cmds, $1) \
  3.4067 +    _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
  3.4068 +    _LT_AC_TAGVAR(allow_undefined_flag, $1) \
  3.4069 +    _LT_AC_TAGVAR(no_undefined_flag, $1) \
  3.4070 +    _LT_AC_TAGVAR(export_symbols_cmds, $1) \
  3.4071 +    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
  3.4072 +    _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
  3.4073 +    _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
  3.4074 +    _LT_AC_TAGVAR(hardcode_automatic, $1) \
  3.4075 +    _LT_AC_TAGVAR(module_cmds, $1) \
  3.4076 +    _LT_AC_TAGVAR(module_expsym_cmds, $1) \
  3.4077 +    _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
  3.4078 +    _LT_AC_TAGVAR(exclude_expsyms, $1) \
  3.4079 +    _LT_AC_TAGVAR(include_expsyms, $1); do
  3.4080 +
  3.4081 +    case $var in
  3.4082 +    _LT_AC_TAGVAR(old_archive_cmds, $1) | \
  3.4083 +    _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
  3.4084 +    _LT_AC_TAGVAR(archive_cmds, $1) | \
  3.4085 +    _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
  3.4086 +    _LT_AC_TAGVAR(module_cmds, $1) | \
  3.4087 +    _LT_AC_TAGVAR(module_expsym_cmds, $1) | \   
  3.4088 +    _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
  3.4089 +    _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
  3.4090 +    extract_expsyms_cmds | reload_cmds | finish_cmds | \
  3.4091 +    postinstall_cmds | postuninstall_cmds | \
  3.4092 +    old_postinstall_cmds | old_postuninstall_cmds | \
  3.4093 +    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  3.4094 +      # Double-quote double-evaled strings.
  3.4095 +      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  3.4096 +      ;;
  3.4097 +    *)
  3.4098 +      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  3.4099 +      ;;
  3.4100 +    esac
  3.4101 +  done
  3.4102 +
  3.4103 +  case $lt_echo in
  3.4104 +  *'\[$]0 --fallback-echo"')
  3.4105 +    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
  3.4106 +    ;;
  3.4107 +  esac
  3.4108 +
  3.4109 +ifelse([$1], [],
  3.4110 +  [cfgfile="${ofile}T"
  3.4111 +  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  3.4112 +  $rm -f "$cfgfile"
  3.4113 +  AC_MSG_NOTICE([creating $ofile])],
  3.4114 +  [cfgfile="$ofile"])
  3.4115 +
  3.4116 +  cat <<__EOF__ >> "$cfgfile"
  3.4117 +ifelse([$1], [],
  3.4118 +[#! $SHELL
  3.4119 +
  3.4120 +# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  3.4121 +# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  3.4122 +# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  3.4123 +#
  3.4124 +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
  3.4125 +# Free Software Foundation, Inc.
  3.4126 +#
  3.4127 +# This file is part of GNU Libtool:
  3.4128 +# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  3.4129 +#
  3.4130 +# This program is free software; you can redistribute it and/or modify
  3.4131 +# it under the terms of the GNU General Public License as published by
  3.4132 +# the Free Software Foundation; either version 2 of the License, or
  3.4133 +# (at your option) any later version.
  3.4134 +#
  3.4135 +# This program is distributed in the hope that it will be useful, but
  3.4136 +# WITHOUT ANY WARRANTY; without even the implied warranty of
  3.4137 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  3.4138 +# General Public License for more details.
  3.4139 +#
  3.4140 +# You should have received a copy of the GNU General Public License
  3.4141 +# along with this program; if not, write to the Free Software
  3.4142 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  3.4143 +#
  3.4144 +# As a special exception to the GNU General Public License, if you
  3.4145 +# distribute this file as part of a program that contains a
  3.4146 +# configuration script generated by Autoconf, you may include it under
  3.4147 +# the same distribution terms that you use for the rest of that program.
  3.4148 +
  3.4149 +# A sed program that does not truncate output.
  3.4150 +SED=$lt_SED
  3.4151 +
  3.4152 +# Sed that helps us avoid accidentally triggering echo(1) options like -n.
  3.4153 +Xsed="$SED -e s/^X//"
  3.4154 +
  3.4155 +# The HP-UX ksh and POSIX shell print the target directory to stdout
  3.4156 +# if CDPATH is set.
  3.4157 +if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
  3.4158 +
  3.4159 +# The names of the tagged configurations supported by this script.
  3.4160 +available_tags=
  3.4161 +
  3.4162 +# ### BEGIN LIBTOOL CONFIG],
  3.4163 +[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
  3.4164 +
  3.4165 +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  3.4166 +
  3.4167 +# Shell to use when invoking shell scripts.
  3.4168 +SHELL=$lt_SHELL
  3.4169 +
  3.4170 +# Whether or not to build shared libraries.
  3.4171 +build_libtool_libs=$enable_shared
  3.4172 +
  3.4173 +# Whether or not to build static libraries.
  3.4174 +build_old_libs=$enable_static
  3.4175 +
  3.4176 +# Whether or not to add -lc for building shared libraries.
  3.4177 +build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
  3.4178 +
  3.4179 +# Whether or not to disallow shared libs when runtime libs are static
  3.4180 +allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
  3.4181 +
  3.4182 +# Whether or not to optimize for fast installation.
  3.4183 +fast_install=$enable_fast_install
  3.4184 +
  3.4185 +# The host system.
  3.4186 +host_alias=$host_alias
  3.4187 +host=$host
  3.4188 +
  3.4189 +# An echo program that does not interpret backslashes.
  3.4190 +echo=$lt_echo
  3.4191 +
  3.4192 +# The archiver.
  3.4193 +AR=$lt_AR
  3.4194 +AR_FLAGS=$lt_AR_FLAGS
  3.4195 +
  3.4196 +# A C compiler.
  3.4197 +LTCC=$lt_LTCC
  3.4198 +
  3.4199 +# A language-specific compiler.
  3.4200 +CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
  3.4201 +
  3.4202 +# Is the compiler the GNU C compiler?
  3.4203 +with_gcc=$_LT_AC_TAGVAR(GCC, $1)
  3.4204 +
  3.4205 +# An ERE matcher.
  3.4206 +EGREP=$lt_EGREP
  3.4207 +
  3.4208 +# The linker used to build libraries.
  3.4209 +LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
  3.4210 +
  3.4211 +# Whether we need hard or soft links.
  3.4212 +LN_S=$lt_LN_S
  3.4213 +
  3.4214 +# A BSD-compatible nm program.
  3.4215 +NM=$lt_NM
  3.4216 +
  3.4217 +# A symbol stripping program
  3.4218 +STRIP=$STRIP
  3.4219 +
  3.4220 +# Used to examine libraries when file_magic_cmd begins "file"
  3.4221 +MAGIC_CMD=$MAGIC_CMD
  3.4222 +
  3.4223 +# Used on cygwin: DLL creation program.
  3.4224 +DLLTOOL="$DLLTOOL"
  3.4225 +
  3.4226 +# Used on cygwin: object dumper.
  3.4227 +OBJDUMP="$OBJDUMP"
  3.4228 +
  3.4229 +# Used on cygwin: assembler.
  3.4230 +AS="$AS"
  3.4231 +
  3.4232 +# The name of the directory that contains temporary libtool files.
  3.4233 +objdir=$objdir
  3.4234 +
  3.4235 +# How to create reloadable object files.
  3.4236 +reload_flag=$lt_reload_flag
  3.4237 +reload_cmds=$lt_reload_cmds
  3.4238 +
  3.4239 +# How to pass a linker flag through the compiler.
  3.4240 +wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
  3.4241 +
  3.4242 +# Object file suffix (normally "o").
  3.4243 +objext="$ac_objext"
  3.4244 +
  3.4245 +# Old archive suffix (normally "a").
  3.4246 +libext="$libext"
  3.4247 +
  3.4248 +# Shared library suffix (normally ".so").
  3.4249 +shrext='$shrext'
  3.4250 +
  3.4251 +# Executable file suffix (normally "").
  3.4252 +exeext="$exeext"
  3.4253 +
  3.4254 +# Additional compiler flags for building library objects.
  3.4255 +pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
  3.4256 +pic_mode=$pic_mode
  3.4257 +
  3.4258 +# What is the maximum length of a command?
  3.4259 +max_cmd_len=$lt_cv_sys_max_cmd_len
  3.4260 +
  3.4261 +# Does compiler simultaneously support -c and -o options?
  3.4262 +compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
  3.4263 +
  3.4264 +# Must we lock files when doing compilation ?
  3.4265 +need_locks=$lt_need_locks
  3.4266 +
  3.4267 +# Do we need the lib prefix for modules?
  3.4268 +need_lib_prefix=$need_lib_prefix
  3.4269 +
  3.4270 +# Do we need a version for libraries?
  3.4271 +need_version=$need_version
  3.4272 +
  3.4273 +# Whether dlopen is supported.
  3.4274 +dlopen_support=$enable_dlopen
  3.4275 +
  3.4276 +# Whether dlopen of programs is supported.
  3.4277 +dlopen_self=$enable_dlopen_self
  3.4278 +
  3.4279 +# Whether dlopen of statically linked programs is supported.
  3.4280 +dlopen_self_static=$enable_dlopen_self_static
  3.4281 +
  3.4282 +# Compiler flag to prevent dynamic linking.
  3.4283 +link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
  3.4284 +
  3.4285 +# Compiler flag to turn off builtin functions.
  3.4286 +no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
  3.4287 +
  3.4288 +# Compiler flag to allow reflexive dlopens.
  3.4289 +export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
  3.4290 +
  3.4291 +# Compiler flag to generate shared objects directly from archives.
  3.4292 +whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
  3.4293 +
  3.4294 +# Compiler flag to generate thread-safe objects.
  3.4295 +thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
  3.4296 +
  3.4297 +# Library versioning type.
  3.4298 +version_type=$version_type
  3.4299 +
  3.4300 +# Format of library name prefix.
  3.4301 +libname_spec=$lt_libname_spec
  3.4302 +
  3.4303 +# List of archive names.  First name is the real one, the rest are links.
  3.4304 +# The last name is the one that the linker finds with -lNAME.
  3.4305 +library_names_spec=$lt_library_names_spec
  3.4306 +
  3.4307 +# The coded name of the library, if different from the real name.
  3.4308 +soname_spec=$lt_soname_spec
  3.4309 +
  3.4310 +# Commands used to build and install an old-style archive.
  3.4311 +RANLIB=$lt_RANLIB
  3.4312 +old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
  3.4313 +old_postinstall_cmds=$lt_old_postinstall_cmds
  3.4314 +old_postuninstall_cmds=$lt_old_postuninstall_cmds
  3.4315 +
  3.4316 +# Create an old-style archive from a shared archive.
  3.4317 +old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
  3.4318 +
  3.4319 +# Create a temporary old-style archive to link instead of a shared archive.
  3.4320 +old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
  3.4321 +
  3.4322 +# Commands used to build and install a shared archive.
  3.4323 +archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
  3.4324 +archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
  3.4325 +postinstall_cmds=$lt_postinstall_cmds
  3.4326 +postuninstall_cmds=$lt_postuninstall_cmds
  3.4327 +
  3.4328 +# Commands used to build a loadable module (assumed same as above if empty)
  3.4329 +module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
  3.4330 +module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
  3.4331 +
  3.4332 +# Commands to strip libraries.
  3.4333 +old_striplib=$lt_old_striplib
  3.4334 +striplib=$lt_striplib
  3.4335 +
  3.4336 +# Dependencies to place before the objects being linked to create a
  3.4337 +# shared library.
  3.4338 +predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
  3.4339 +
  3.4340 +# Dependencies to place after the objects being linked to create a
  3.4341 +# shared library.
  3.4342 +postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
  3.4343 +
  3.4344 +# Dependencies to place before the objects being linked to create a
  3.4345 +# shared library.
  3.4346 +predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
  3.4347 +
  3.4348 +# Dependencies to place after the objects being linked to create a
  3.4349 +# shared library.
  3.4350 +postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
  3.4351 +
  3.4352 +# The library search path used internally by the compiler when linking
  3.4353 +# a shared library.
  3.4354 +compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
  3.4355 +
  3.4356 +# Method to check whether dependent libraries are shared objects.
  3.4357 +deplibs_check_method=$lt_deplibs_check_method
  3.4358 +
  3.4359 +# Command to use when deplibs_check_method == file_magic.
  3.4360 +file_magic_cmd=$lt_file_magic_cmd
  3.4361 +
  3.4362 +# Flag that allows shared libraries with undefined symbols to be built.
  3.4363 +allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
  3.4364 +
  3.4365 +# Flag that forces no undefined symbols.
  3.4366 +no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
  3.4367 +
  3.4368 +# Commands used to finish a libtool library installation in a directory.
  3.4369 +finish_cmds=$lt_finish_cmds
  3.4370 +
  3.4371 +# Same as above, but a single script fragment to be evaled but not shown.
  3.4372 +finish_eval=$lt_finish_eval
  3.4373 +
  3.4374 +# Take the output of nm and produce a listing of raw symbols and C names.
  3.4375 +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  3.4376 +
  3.4377 +# Transform the output of nm in a proper C declaration
  3.4378 +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  3.4379 +
  3.4380 +# Transform the output of nm in a C name address pair
  3.4381 +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  3.4382 +
  3.4383 +# This is the shared library runtime path variable.
  3.4384 +runpath_var=$runpath_var
  3.4385 +
  3.4386 +# This is the shared library path variable.
  3.4387 +shlibpath_var=$shlibpath_var
  3.4388 +
  3.4389 +# Is shlibpath searched before the hard-coded library search path?
  3.4390 +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  3.4391 +
  3.4392 +# How to hardcode a shared library path into an executable.
  3.4393 +hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
  3.4394 +
  3.4395 +# Whether we should hardcode library paths into libraries.
  3.4396 +hardcode_into_libs=$hardcode_into_libs
  3.4397 +
  3.4398 +# Flag to hardcode \$libdir into a binary during linking.
  3.4399 +# This must work even if \$libdir does not exist.
  3.4400 +hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
  3.4401 +
  3.4402 +# If ld is used when linking, flag to hardcode \$libdir into
  3.4403 +# a binary during linking. This must work even if \$libdir does
  3.4404 +# not exist.
  3.4405 +hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
  3.4406 +
  3.4407 +# Whether we need a single -rpath flag with a separated argument.
  3.4408 +hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
  3.4409 +
  3.4410 +# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  3.4411 +# resulting binary.
  3.4412 +hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
  3.4413 +
  3.4414 +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  3.4415 +# resulting binary.
  3.4416 +hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
  3.4417 +
  3.4418 +# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  3.4419 +# the resulting binary.
  3.4420 +hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
  3.4421 +
  3.4422 +# Set to yes if building a shared library automatically hardcodes DIR into the library
  3.4423 +# and all subsequent libraries and executables linked against it.
  3.4424 +hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
  3.4425 +
  3.4426 +# Variables whose values should be saved in libtool wrapper scripts and
  3.4427 +# restored at relink time.
  3.4428 +variables_saved_for_relink="$variables_saved_for_relink"
  3.4429 +
  3.4430 +# Whether libtool must link a program against all its dependency libraries.
  3.4431 +link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
  3.4432 +
  3.4433 +# Compile-time system search path for libraries
  3.4434 +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  3.4435 +
  3.4436 +# Run-time system search path for libraries
  3.4437 +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  3.4438 +
  3.4439 +# Fix the shell variable \$srcfile for the compiler.
  3.4440 +fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
  3.4441 +
  3.4442 +# Set to yes if exported symbols are required.
  3.4443 +always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
  3.4444 +
  3.4445 +# The commands to list exported symbols.
  3.4446 +export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
  3.4447 +
  3.4448 +# The commands to extract the exported symbol list from a shared archive.
  3.4449 +extract_expsyms_cmds=$lt_extract_expsyms_cmds
  3.4450 +
  3.4451 +# Symbols that should not be listed in the preloaded symbols.
  3.4452 +exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
  3.4453 +
  3.4454 +# Symbols that must always be exported.
  3.4455 +include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
  3.4456 +
  3.4457 +ifelse([$1],[],
  3.4458 +[# ### END LIBTOOL CONFIG],
  3.4459 +[# ### END LIBTOOL TAG CONFIG: $tagname])
  3.4460 +
  3.4461 +__EOF__
  3.4462 +
  3.4463 +ifelse([$1],[], [
  3.4464 +  case $host_os in
  3.4465 +  aix3*)
  3.4466 +    cat <<\EOF >> "$cfgfile"
  3.4467 +
  3.4468 +# AIX sometimes has problems with the GCC collect2 program.  For some
  3.4469 +# reason, if we set the COLLECT_NAMES environment variable, the problems
  3.4470 +# vanish in a puff of smoke.
  3.4471 +if test "X${COLLECT_NAMES+set}" != Xset; then
  3.4472 +  COLLECT_NAMES=
  3.4473 +  export COLLECT_NAMES
  3.4474 +fi
  3.4475 +EOF
  3.4476 +    ;;
  3.4477 +  esac
  3.4478 +
  3.4479 +  # We use sed instead of cat because bash on DJGPP gets confused if
  3.4480 +  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
  3.4481 +  # text mode, it properly converts lines to CR/LF.  This bash problem
  3.4482 +  # is reportedly fixed, but why not run on old versions too?
  3.4483 +  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  3.4484 +
  3.4485 +  mv -f "$cfgfile" "$ofile" || \
  3.4486 +    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  3.4487 +  chmod +x "$ofile"
  3.4488 +])
  3.4489 +else
  3.4490 +  # If there is no Makefile yet, we rely on a make rule to execute
  3.4491 +  # `config.status --recheck' to rerun these tests and create the
  3.4492 +  # libtool script then.
  3.4493 +  test -f Makefile && make "$ltmain"
  3.4494 +fi
  3.4495 +])# AC_LIBTOOL_CONFIG
  3.4496 +
  3.4497 +
  3.4498 +# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
  3.4499 +# -------------------------------------------
  3.4500 +AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
  3.4501 +[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
  3.4502 +
  3.4503 +_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  3.4504 +
  3.4505 +if test "$GCC" = yes; then
  3.4506 +  _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  3.4507 +
  3.4508 +  AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
  3.4509 +    lt_cv_prog_compiler_rtti_exceptions,
  3.4510 +    [-fno-rtti -fno-exceptions], [],
  3.4511 +    [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
  3.4512 +fi
  3.4513 +])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
  3.4514 +
  3.4515 +
  3.4516 +# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  3.4517 +# ---------------------------------
  3.4518 +AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
  3.4519 +[AC_REQUIRE([AC_CANONICAL_HOST])
  3.4520 +AC_REQUIRE([AC_PROG_NM])
  3.4521 +AC_REQUIRE([AC_OBJEXT])
  3.4522 +# Check for command to grab the raw symbol name followed by C symbol from nm.
  3.4523 +AC_MSG_CHECKING([command to parse $NM output from $compiler object])
  3.4524 +AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
  3.4525 +[
  3.4526 +# These are sane defaults that work on at least a few old systems.
  3.4527 +# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
  3.4528 +
  3.4529 +# Character class describing NM global symbol codes.
  3.4530 +symcode='[[BCDEGRST]]'
  3.4531 +
  3.4532 +# Regexp to match symbols that can be accessed directly from C.
  3.4533 +sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
  3.4534 +
  3.4535 +# Transform the above into a raw symbol and a C symbol.
  3.4536 +symxfrm='\1 \2\3 \3'
  3.4537 +
  3.4538 +# Transform an extracted symbol line into a proper C declaration
  3.4539 +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  3.4540 +
  3.4541 +# Transform an extracted symbol line into symbol name and symbol address
  3.4542 +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
  3.4543 +
  3.4544 +# Define system-specific variables.
  3.4545 +case $host_os in
  3.4546 +aix*)
  3.4547 +  symcode='[[BCDT]]'
  3.4548 +  ;;
  3.4549 +cygwin* | mingw* | pw32*)
  3.4550 +  symcode='[[ABCDGISTW]]'
  3.4551 +  ;;
  3.4552 +hpux*) # Its linker distinguishes data from code symbols
  3.4553 +  if test "$host_cpu" = ia64; then
  3.4554 +    symcode='[[ABCDEGRST]]'
  3.4555 +  fi
  3.4556 +  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  3.4557 +  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
  3.4558 +  ;;
  3.4559 +irix* | nonstopux*)
  3.4560 +  symcode='[[BCDEGRST]]'
  3.4561 +  ;;
  3.4562 +osf*)
  3.4563 +  symcode='[[BCDEGQRST]]'
  3.4564 +  ;;
  3.4565 +solaris* | sysv5*)
  3.4566 +  symcode='[[BDT]]'
  3.4567 +  ;;
  3.4568 +sysv4)
  3.4569 +  symcode='[[DFNSTU]]'
  3.4570 +  ;;
  3.4571 +esac
  3.4572 +
  3.4573 +# Handle CRLF in mingw tool chain
  3.4574 +opt_cr=
  3.4575 +case $build_os in
  3.4576 +mingw*)
  3.4577 +  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  3.4578 +  ;;
  3.4579 +esac
  3.4580 +
  3.4581 +# If we're using GNU nm, then use its standard symbol codes.
  3.4582 +case `$NM -V 2>&1` in
  3.4583 +*GNU* | *'with BFD'*)
  3.4584 +  symcode='[[ABCDGISTW]]' ;;
  3.4585 +esac
  3.4586 +
  3.4587 +# Try without a prefix undercore, then with it.
  3.4588 +for ac_symprfx in "" "_"; do
  3.4589 +
  3.4590 +  # Write the raw and C identifiers.
  3.4591 +  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ 	]]\($symcode$symcode*\)[[ 	]][[ 	]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
  3.4592 +
  3.4593 +  # Check to see that the pipe works correctly.
  3.4594 +  pipe_works=no
  3.4595 +
  3.4596 +  rm -f conftest*
  3.4597 +  cat > conftest.$ac_ext <<EOF
  3.4598 +#ifdef __cplusplus
  3.4599 +extern "C" {
  3.4600 +#endif
  3.4601 +char nm_test_var;
  3.4602 +void nm_test_func(){}
  3.4603 +#ifdef __cplusplus
  3.4604 +}
  3.4605 +#endif
  3.4606 +int main(){nm_test_var='a';nm_test_func();return(0);}
  3.4607 +EOF
  3.4608 +
  3.4609 +  if AC_TRY_EVAL(ac_compile); then
  3.4610 +    # Now try to grab the symbols.
  3.4611 +    nlist=conftest.nm
  3.4612 +    if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
  3.4613 +      # Try sorting and uniquifying the output.
  3.4614 +      if sort "$nlist" | uniq > "$nlist"T; then
  3.4615 +	mv -f "$nlist"T "$nlist"
  3.4616 +      else
  3.4617 +	rm -f "$nlist"T
  3.4618 +      fi
  3.4619 +
  3.4620 +      # Make sure that we snagged all the symbols we need.
  3.4621 +      if grep ' nm_test_var$' "$nlist" >/dev/null; then
  3.4622 +	if grep ' nm_test_func$' "$nlist" >/dev/null; then
  3.4623 +	  cat <<EOF > conftest.$ac_ext
  3.4624 +#ifdef __cplusplus
  3.4625 +extern "C" {
  3.4626 +#endif
  3.4627 +
  3.4628 +EOF
  3.4629 +	  # Now generate the symbol file.
  3.4630 +	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  3.4631 +
  3.4632 +	  cat <<EOF >> conftest.$ac_ext
  3.4633 +#if defined (__STDC__) && __STDC__
  3.4634 +# define lt_ptr_t void *
  3.4635 +#else
  3.4636 +# define lt_ptr_t char *
  3.4637 +# define const
  3.4638 +#endif
  3.4639 +
  3.4640 +/* The mapping between symbol names and symbols. */
  3.4641 +const struct {
  3.4642 +  const char *name;
  3.4643 +  lt_ptr_t address;
  3.4644 +}
  3.4645 +lt_preloaded_symbols[[]] =
  3.4646 +{
  3.4647 +EOF
  3.4648 +	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  3.4649 +	  cat <<\EOF >> conftest.$ac_ext
  3.4650 +  {0, (lt_ptr_t) 0}
  3.4651 +};
  3.4652 +
  3.4653 +#ifdef __cplusplus
  3.4654 +}
  3.4655 +#endif
  3.4656 +EOF
  3.4657 +	  # Now try linking the two files.
  3.4658 +	  mv conftest.$ac_objext conftstm.$ac_objext
  3.4659 +	  lt_save_LIBS="$LIBS"
  3.4660 +	  lt_save_CFLAGS="$CFLAGS"
  3.4661 +	  LIBS="conftstm.$ac_objext"
  3.4662 +	  CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
  3.4663 +	  if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
  3.4664 +	    pipe_works=yes
  3.4665 +	  fi
  3.4666 +	  LIBS="$lt_save_LIBS"
  3.4667 +	  CFLAGS="$lt_save_CFLAGS"
  3.4668 +	else
  3.4669 +	  echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
  3.4670 +	fi
  3.4671 +      else
  3.4672 +	echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
  3.4673 +      fi
  3.4674 +    else
  3.4675 +      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
  3.4676 +    fi
  3.4677 +  else
  3.4678 +    echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
  3.4679 +    cat conftest.$ac_ext >&5
  3.4680 +  fi
  3.4681 +  rm -f conftest* conftst*
  3.4682 +
  3.4683 +  # Do not use the global_symbol_pipe unless it works.
  3.4684 +  if test "$pipe_works" = yes; then
  3.4685 +    break
  3.4686 +  else
  3.4687 +    lt_cv_sys_global_symbol_pipe=
  3.4688 +  fi
  3.4689 +done
  3.4690 +])
  3.4691 +if test -z "$lt_cv_sys_global_symbol_pipe"; then
  3.4692 +  lt_cv_sys_global_symbol_to_cdecl=
  3.4693 +fi
  3.4694 +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  3.4695 +  AC_MSG_RESULT(failed)
  3.4696 +else
  3.4697 +  AC_MSG_RESULT(ok)
  3.4698 +fi
  3.4699 +]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  3.4700 +
  3.4701 +
  3.4702 +# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
  3.4703 +# ---------------------------------------
  3.4704 +AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
  3.4705 +[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
  3.4706 +_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  3.4707 +_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
  3.4708 +
  3.4709 +AC_MSG_CHECKING([for $compiler option to produce PIC])
  3.4710 + ifelse([$1],[CXX],[
  3.4711 +  # C++ specific cases for pic, static, wl, etc.
  3.4712 +  if test "$GXX" = yes; then
  3.4713 +    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3.4714 +    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  3.4715 +
  3.4716 +    case $host_os in
  3.4717 +    aix*)
  3.4718 +      # All AIX code is PIC.
  3.4719 +      if test "$host_cpu" = ia64; then
  3.4720 +	# AIX 5 now supports IA64 processor
  3.4721 +	_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3.4722 +      fi
  3.4723 +      ;;
  3.4724 +    amigaos*)
  3.4725 +      # FIXME: we need at least 68020 code to build shared libraries, but
  3.4726 +      # adding the `-m68020' flag to GCC prevents building anything better,
  3.4727 +      # like `-m68040'.
  3.4728 +      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  3.4729 +      ;;
  3.4730 +    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  3.4731 +      # PIC is the default for these OSes.
  3.4732 +      ;;
  3.4733 +    mingw* | os2* | pw32*)
  3.4734 +      # This hack is so that the source file can tell whether it is being
  3.4735 +      # built for inclusion in a dll (and should export symbols for example).
  3.4736 +      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
  3.4737 +      ;;
  3.4738 +    darwin* | rhapsody*)
  3.4739 +      # PIC is the default on this platform
  3.4740 +      # Common symbols not allowed in MH_DYLIB files
  3.4741 +      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  3.4742 +      ;;
  3.4743 +    *djgpp*)
  3.4744 +      # DJGPP does not support shared libraries at all
  3.4745 +      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  3.4746 +      ;;
  3.4747 +    sysv4*MP*)
  3.4748 +      if test -d /usr/nec; then
  3.4749 +	_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  3.4750 +      fi
  3.4751 +      ;;
  3.4752 +    hpux*)
  3.4753 +      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  3.4754 +      # not for PA HP-UX.
  3.4755 +      case "$host_cpu" in
  3.4756 +      hppa*64*|ia64*)
  3.4757 +	;;
  3.4758 +      *)
  3.4759 +	_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3.4760 +	;;
  3.4761 +      esac
  3.4762 +      ;;
  3.4763 +    *)
  3.4764 +      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3.4765 +      ;;
  3.4766 +    esac
  3.4767 +  else
  3.4768 +    case $host_os in
  3.4769 +      aix4* | aix5*)
  3.4770 +	# All AIX code is PIC.
  3.4771 +	if test "$host_cpu" = ia64; then
  3.4772 +	  # AIX 5 now supports IA64 processor
  3.4773 +	  _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3.4774 +	else
  3.4775 +	  _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  3.4776 +	fi
  3.4777 +	;;
  3.4778 +      chorus*)
  3.4779 +	case $cc_basename in
  3.4780 +	cxch68)
  3.4781 +	  # Green Hills C++ Compiler
  3.4782 +	  # _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
  3.4783 +	  ;;
  3.4784 +	esac
  3.4785 +	;;
  3.4786 +      dgux*)
  3.4787 +	case $cc_basename in
  3.4788 +	  ec++)
  3.4789 +	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3.4790 +	    ;;
  3.4791 +	  ghcx)
  3.4792 +	    # Green Hills C++ Compiler
  3.4793 +	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  3.4794 +	    ;;
  3.4795 +	  *)
  3.4796 +	    ;;
  3.4797 +	esac
  3.4798 +	;;
  3.4799 +      freebsd*)
  3.4800 +	# FreeBSD uses GNU C++
  3.4801 +	;;
  3.4802 +      hpux9* | hpux10* | hpux11*)
  3.4803 +	case $cc_basename in
  3.4804 +	  CC)
  3.4805 +	    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3.4806 +	    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
  3.4807 +	    if test "$host_cpu" != ia64; then
  3.4808 +	      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  3.4809 +	    fi
  3.4810 +	    ;;
  3.4811 +	  aCC)
  3.4812 +	    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3.4813 +	    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
  3.4814 +	    case "$host_cpu" in
  3.4815 +	    hppa*64*|ia64*)
  3.4816 +	      # +Z the default
  3.4817 +	      ;;
  3.4818 +	    *)
  3.4819 +	      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  3.4820 +	      ;;
  3.4821 +	    esac
  3.4822 +	    ;;
  3.4823 +	  *)
  3.4824 +	    ;;
  3.4825 +	esac
  3.4826 +	;;
  3.4827 +      irix5* | irix6* | nonstopux*)
  3.4828 +	case $cc_basename in
  3.4829 +	  CC)
  3.4830 +	    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3.4831 +	    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  3.4832 +	    # CC pic flag -KPIC is the default.
  3.4833 +	    ;;
  3.4834 +	  *)
  3.4835 +	    ;;
  3.4836 +	esac
  3.4837 +	;;
  3.4838 +      linux*)
  3.4839 +	case $cc_basename in
  3.4840 +	  KCC)
  3.4841 +	    # KAI C++ Compiler
  3.4842 +	    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  3.4843 +	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3.4844 +	    ;;
  3.4845 +	  icpc)
  3.4846 +	    # Intel C++
  3.4847 +	    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3.4848 +	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3.4849 +	    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  3.4850 +	    ;; 
  3.4851 +	  cxx)
  3.4852 +	    # Compaq C++
  3.4853 +	    # Make sure the PIC flag is empty.  It appears that all Alpha
  3.4854 +	    # Linux and Compaq Tru64 Unix objects are PIC.
  3.4855 +	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  3.4856 +	    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  3.4857 +	    ;;
  3.4858 +	  *)
  3.4859 +	    ;;
  3.4860 +	esac
  3.4861 +	;;
  3.4862 +      lynxos*)
  3.4863 +	;;
  3.4864 +      m88k*)
  3.4865 +	;;
  3.4866 +      mvs*)
  3.4867 +	case $cc_basename in
  3.4868 +	  cxx)
  3.4869 +	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
  3.4870 +	    ;;
  3.4871 +	  *)
  3.4872 +	    ;;
  3.4873 +	esac
  3.4874 +	;;
  3.4875 +      netbsd*)
  3.4876 +	;;
  3.4877 +      osf3* | osf4* | osf5*)
  3.4878 +	case $cc_basename in
  3.4879 +	  KCC)
  3.4880 +	    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  3.4881 +	    ;;
  3.4882 +	  RCC)
  3.4883 +	    # Rational C++ 2.4.1
  3.4884 +	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  3.4885 +	    ;;
  3.4886 +	  cxx)
  3.4887 +	    # Digital/Compaq C++
  3.4888 +	    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3.4889 +	    # Make sure the PIC flag is empty.  It appears that all Alpha
  3.4890 +	    # Linux and Compaq Tru64 Unix objects are PIC.
  3.4891 +	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  3.4892 +	    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  3.4893 +	    ;;
  3.4894 +	  *)
  3.4895 +	    ;;
  3.4896 +	esac
  3.4897 +	;;
  3.4898 +      psos*)
  3.4899 +	;;
  3.4900 +      sco*)
  3.4901 +	case $cc_basename in
  3.4902 +	  CC)
  3.4903 +	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3.4904 +	    ;;
  3.4905 +	  *)
  3.4906 +	    ;;
  3.4907 +	esac
  3.4908 +	;;
  3.4909 +      solaris*)
  3.4910 +	case $cc_basename in
  3.4911 +	  CC)
  3.4912 +	    # Sun C++ 4.2, 5.x and Centerline C++
  3.4913 +	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3.4914 +	    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3.4915 +	    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  3.4916 +	    ;;
  3.4917 +	  gcx)
  3.4918 +	    # Green Hills C++ Compiler
  3.4919 +	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  3.4920 +	    ;;
  3.4921 +	  *)
  3.4922 +	    ;;
  3.4923 +	esac
  3.4924 +	;;
  3.4925 +      sunos4*)
  3.4926 +	case $cc_basename in
  3.4927 +	  CC)
  3.4928 +	    # Sun C++ 4.x
  3.4929 +	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  3.4930 +	    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3.4931 +	    ;;
  3.4932 +	  lcc)
  3.4933 +	    # Lucid
  3.4934 +	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  3.4935 +	    ;;
  3.4936 +	  *)
  3.4937 +	    ;;
  3.4938 +	esac
  3.4939 +	;;
  3.4940 +      tandem*)
  3.4941 +	case $cc_basename in
  3.4942 +	  NCC)
  3.4943 +	    # NonStop-UX NCC 3.20
  3.4944 +	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3.4945 +	    ;;
  3.4946 +	  *)
  3.4947 +	    ;;
  3.4948 +	esac
  3.4949 +	;;
  3.4950 +      unixware*)
  3.4951 +	;;
  3.4952 +      vxworks*)
  3.4953 +	;;
  3.4954 +      *)
  3.4955 +	_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  3.4956 +	;;
  3.4957 +    esac
  3.4958 +  fi
  3.4959 +],
  3.4960 +[
  3.4961 +  if test "$GCC" = yes; then
  3.4962 +    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3.4963 +    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  3.4964 +
  3.4965 +    case $host_os in
  3.4966 +      aix*)
  3.4967 +      # All AIX code is PIC.
  3.4968 +      if test "$host_cpu" = ia64; then
  3.4969 +	# AIX 5 now supports IA64 processor
  3.4970 +	_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3.4971 +      fi
  3.4972 +      ;;
  3.4973 +
  3.4974 +    amigaos*)
  3.4975 +      # FIXME: we need at least 68020 code to build shared libraries, but
  3.4976 +      # adding the `-m68020' flag to GCC prevents building anything better,
  3.4977 +      # like `-m68040'.
  3.4978 +      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  3.4979 +      ;;
  3.4980 +
  3.4981 +    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  3.4982 +      # PIC is the default for these OSes.
  3.4983 +      ;;
  3.4984 +
  3.4985 +    mingw* | pw32* | os2*)
  3.4986 +      # This hack is so that the source file can tell whether it is being
  3.4987 +      # built for inclusion in a dll (and should export symbols for example).
  3.4988 +      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
  3.4989 +      ;;
  3.4990 +
  3.4991 +    darwin* | rhapsody*)
  3.4992 +      # PIC is the default on this platform
  3.4993 +      # Common symbols not allowed in MH_DYLIB files
  3.4994 +      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  3.4995 +      ;;
  3.4996 +
  3.4997 +    msdosdjgpp*)
  3.4998 +      # Just because we use GCC doesn't mean we suddenly get shared libraries
  3.4999 +      # on systems that don't support them.
  3.5000 +      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  3.5001 +      enable_shared=no
  3.5002 +      ;;
  3.5003 +
  3.5004 +    sysv4*MP*)
  3.5005 +      if test -d /usr/nec; then
  3.5006 +	_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  3.5007 +      fi
  3.5008 +      ;;
  3.5009 +
  3.5010 +    hpux*)
  3.5011 +      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  3.5012 +      # not for PA HP-UX.
  3.5013 +      case "$host_cpu" in
  3.5014 +      hppa*64*|ia64*)
  3.5015 +	# +Z the default
  3.5016 +	;;
  3.5017 +      *)
  3.5018 +	_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3.5019 +	;;
  3.5020 +      esac
  3.5021 +      ;;
  3.5022 +
  3.5023 +    *)
  3.5024 +      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3.5025 +      ;;
  3.5026 +    esac
  3.5027 +  else
  3.5028 +    # PORTME Check for flag to pass linker flags through the system compiler.
  3.5029 +    case $host_os in
  3.5030 +    aix*)
  3.5031 +      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3.5032 +      if test "$host_cpu" = ia64; then
  3.5033 +	# AIX 5 now supports IA64 processor
  3.5034 +	_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3.5035 +      else
  3.5036 +	_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  3.5037 +      fi
  3.5038 +      ;;
  3.5039 +
  3.5040 +    mingw* | pw32* | os2*)
  3.5041 +      # This hack is so that the source file can tell whether it is being
  3.5042 +      # built for inclusion in a dll (and should export symbols for example).
  3.5043 +      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
  3.5044 +      ;;
  3.5045 +
  3.5046 +    hpux9* | hpux10* | hpux11*)
  3.5047 +      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3.5048 +      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  3.5049 +      # not for PA HP-UX.
  3.5050 +      case "$host_cpu" in
  3.5051 +      hppa*64*|ia64*)
  3.5052 +	# +Z the default
  3.5053 +	;;
  3.5054 +      *)
  3.5055 +	_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  3.5056 +	;;
  3.5057 +      esac
  3.5058 +      # Is there a better lt_prog_compiler_static that works with the bundled CC?
  3.5059 +      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  3.5060 +      ;;
  3.5061 +
  3.5062 +    irix5* | irix6* | nonstopux*)
  3.5063 +      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3.5064 +      # PIC (with -KPIC) is the default.
  3.5065 +      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  3.5066 +      ;;
  3.5067 +
  3.5068 +    newsos6)
  3.5069 +      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3.5070 +      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3.5071 +      ;;
  3.5072 +
  3.5073 +    linux*)
  3.5074 +      case $CC in
  3.5075 +      icc|ecc)
  3.5076 +	_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3.5077 +	_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3.5078 +	_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  3.5079 +        ;;
  3.5080 +      ccc)
  3.5081 +        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3.5082 +        # All Alpha code is PIC.
  3.5083 +        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  3.5084 +        ;;
  3.5085 +      esac
  3.5086 +      ;;
  3.5087 +
  3.5088 +    osf3* | osf4* | osf5*)
  3.5089 +      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3.5090 +      # All OSF/1 code is PIC.
  3.5091 +      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  3.5092 +      ;;
  3.5093 +
  3.5094 +    sco3.2v5*)
  3.5095 +      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic'
  3.5096 +      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn'
  3.5097 +      ;;
  3.5098 +
  3.5099 +    solaris*)
  3.5100 +      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3.5101 +      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3.5102 +      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3.5103 +      ;;
  3.5104 +
  3.5105 +    sunos4*)
  3.5106 +      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  3.5107 +      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  3.5108 +      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3.5109 +      ;;
  3.5110 +
  3.5111 +    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  3.5112 +      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3.5113 +      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3.5114 +      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3.5115 +      ;;
  3.5116 +
  3.5117 +    sysv4*MP*)
  3.5118 +      if test -d /usr/nec ;then
  3.5119 +	_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
  3.5120 +	_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3.5121 +      fi
  3.5122 +      ;;
  3.5123 +
  3.5124 +    uts4*)
  3.5125 +      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  3.5126 +      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3.5127 +      ;;
  3.5128 +
  3.5129 +    *)
  3.5130 +      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  3.5131 +      ;;
  3.5132 +    esac
  3.5133    fi
  3.5134  ])
  3.5135 -
  3.5136 -dnl old names
  3.5137 -AC_DEFUN(AM_PROG_LIBTOOL, [indir([AC_PROG_LIBTOOL])])dnl
  3.5138 -AC_DEFUN(AM_ENABLE_SHARED, [indir([AC_ENABLE_SHARED], $@)])dnl
  3.5139 -AC_DEFUN(AM_ENABLE_STATIC, [indir([AC_ENABLE_STATIC], $@)])dnl
  3.5140 -AC_DEFUN(AM_DISABLE_SHARED, [indir([AC_DISABLE_SHARED], $@)])dnl
  3.5141 -AC_DEFUN(AM_DISABLE_STATIC, [indir([AC_DISABLE_STATIC], $@)])dnl
  3.5142 -AC_DEFUN(AM_PROG_LD, [indir([AC_PROG_LD])])dnl
  3.5143 -AC_DEFUN(AM_PROG_NM, [indir([AC_PROG_NM])])dnl
  3.5144 -
  3.5145 -dnl This is just to silence aclocal about the macro not being used
  3.5146 -ifelse([AC_DISABLE_FAST_INSTALL])dnl
  3.5147 +AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
  3.5148 +
  3.5149 +#
  3.5150 +# Check to make sure the PIC flag actually works.
  3.5151 +#
  3.5152 +if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
  3.5153 +  AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
  3.5154 +    _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
  3.5155 +    [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
  3.5156 +    [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
  3.5157 +     "" | " "*) ;;
  3.5158 +     *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
  3.5159 +     esac],
  3.5160 +    [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  3.5161 +     _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
  3.5162 +fi
  3.5163 +case "$host_os" in
  3.5164 +  # For platforms which do not support PIC, -DPIC is meaningless:
  3.5165 +  *djgpp*)
  3.5166 +    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  3.5167 +    ;;
  3.5168 +  *)
  3.5169 +    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
  3.5170 +    ;;
  3.5171 +esac
  3.5172 +])
  3.5173 +
  3.5174 +
  3.5175 +# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
  3.5176 +# ------------------------------------
  3.5177 +# See if the linker supports building shared libraries.
  3.5178 +AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
  3.5179 +[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  3.5180 +ifelse([$1],[CXX],[
  3.5181 +  _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  3.5182 +  case $host_os in
  3.5183 +  aix4* | aix5*)
  3.5184 +    # If we're using GNU nm, then we don't want the "-C" option.
  3.5185 +    # -C means demangle to AIX nm, but means don't demangle with GNU nm
  3.5186 +    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  3.5187 +      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
  3.5188 +    else
  3.5189 +      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
  3.5190 +    fi
  3.5191 +    ;;
  3.5192 +  pw32*)
  3.5193 +    _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
  3.5194 +  ;;
  3.5195 +  cygwin* | mingw*)
  3.5196 +    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
  3.5197 +  ;;
  3.5198 +  *)
  3.5199 +    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  3.5200 +  ;;
  3.5201 +  esac
  3.5202 +],[
  3.5203 +  runpath_var=
  3.5204 +  _LT_AC_TAGVAR(allow_undefined_flag, $1)=
  3.5205 +  _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  3.5206 +  _LT_AC_TAGVAR(archive_cmds, $1)=
  3.5207 +  _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
  3.5208 +  _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
  3.5209 +  _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
  3.5210 +  _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  3.5211 +  _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  3.5212 +  _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
  3.5213 +  _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  3.5214 +  _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  3.5215 +  _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  3.5216 +  _LT_AC_TAGVAR(hardcode_direct, $1)=no
  3.5217 +  _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  3.5218 +  _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  3.5219 +  _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
  3.5220 +  _LT_AC_TAGVAR(hardcode_automatic, $1)=no
  3.5221 +  _LT_AC_TAGVAR(module_cmds, $1)=
  3.5222 +  _LT_AC_TAGVAR(module_expsym_cmds, $1)=  
  3.5223 +  _LT_AC_TAGVAR(always_export_symbols, $1)=no
  3.5224 +  _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  3.5225 +  # include_expsyms should be a list of space-separated symbols to be *always*
  3.5226 +  # included in the symbol list
  3.5227 +  _LT_AC_TAGVAR(include_expsyms, $1)=
  3.5228 +  # exclude_expsyms can be an extended regexp of symbols to exclude
  3.5229 +  # it will be wrapped by ` (' and `)$', so one must not match beginning or
  3.5230 +  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  3.5231 +  # as well as any symbol that contains `d'.
  3.5232 +  _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
  3.5233 +  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  3.5234 +  # platforms (ab)use it in PIC code, but their linkers get confused if
  3.5235 +  # the symbol is explicitly referenced.  Since portable code cannot
  3.5236 +  # rely on this symbol name, it's probably fine to never include it in
  3.5237 +  # preloaded symbol tables.
  3.5238 +  extract_expsyms_cmds=
  3.5239 +
  3.5240 +  case $host_os in
  3.5241 +  cygwin* | mingw* | pw32*)
  3.5242 +    # FIXME: the MSVC++ port hasn't been tested in a loooong time
  3.5243 +    # When not using gcc, we currently assume that we are using
  3.5244 +    # Microsoft Visual C++.
  3.5245 +    if test "$GCC" != yes; then
  3.5246 +      with_gnu_ld=no
  3.5247 +    fi
  3.5248 +    ;;
  3.5249 +  openbsd*)
  3.5250 +    with_gnu_ld=no
  3.5251 +    ;;
  3.5252 +  esac
  3.5253 +
  3.5254 +  _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  3.5255 +  if test "$with_gnu_ld" = yes; then
  3.5256 +    # If archive_cmds runs LD, not CC, wlarc should be empty
  3.5257 +    wlarc='${wl}'
  3.5258 +
  3.5259 +    # See if GNU ld supports shared libraries.
  3.5260 +    case $host_os in
  3.5261 +    aix3* | aix4* | aix5*)
  3.5262 +      # On AIX/PPC, the GNU linker is very broken
  3.5263 +      if test "$host_cpu" != ia64; then
  3.5264 +	_LT_AC_TAGVAR(ld_shlibs, $1)=no
  3.5265 +	cat <<EOF 1>&2
  3.5266 +
  3.5267 +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  3.5268 +*** to be unable to reliably create shared libraries on AIX.
  3.5269 +*** Therefore, libtool is disabling shared libraries support.  If you
  3.5270 +*** really care for shared libraries, you may want to modify your PATH
  3.5271 +*** so that a non-GNU linker is found, and then restart.
  3.5272 +
  3.5273 +EOF
  3.5274 +      fi
  3.5275 +      ;;
  3.5276 +
  3.5277 +    amigaos*)
  3.5278 +      _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  3.5279 +      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  3.5280 +      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  3.5281 +
  3.5282 +      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  3.5283 +      # that the semantics of dynamic libraries on AmigaOS, at least up
  3.5284 +      # to version 4, is to share data among multiple programs linked
  3.5285 +      # with the same dynamic library.  Since this doesn't match the
  3.5286 +      # behavior of shared libraries on other platforms, we can't use
  3.5287 +      # them.
  3.5288 +      _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3.5289 +      ;;
  3.5290 +
  3.5291 +    beos*)
  3.5292 +      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  3.5293 +	_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  3.5294 +	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  3.5295 +	# support --undefined.  This deserves some investigation.  FIXME
  3.5296 +	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  3.5297 +      else
  3.5298 +	_LT_AC_TAGVAR(ld_shlibs, $1)=no
  3.5299 +      fi
  3.5300 +      ;;
  3.5301 +
  3.5302 +    cygwin* | mingw* | pw32*)
  3.5303 +      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  3.5304 +      # as there is no search path for DLLs.
  3.5305 +      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  3.5306 +      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  3.5307 +      _LT_AC_TAGVAR(always_export_symbols, $1)=no
  3.5308 +      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  3.5309 +      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
  3.5310 +
  3.5311 +      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  3.5312 +        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base ${wl}--out-implib,$lib'
  3.5313 +	# If the export-symbols file already is a .def file (1st line
  3.5314 +	# is EXPORTS), use it as is; otherwise, prepend...
  3.5315 +	_LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  3.5316 +	  cp $export_symbols $output_objdir/$soname.def;
  3.5317 +	else
  3.5318 +	  echo EXPORTS > $output_objdir/$soname.def;
  3.5319 +	  cat $export_symbols >> $output_objdir/$soname.def;
  3.5320 +	fi~
  3.5321 +	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base  ${wl}--out-implib,$lib'
  3.5322 +      else
  3.5323 +	ld_shlibs=no
  3.5324 +      fi
  3.5325 +      ;;
  3.5326 +
  3.5327 +    netbsd*)
  3.5328 +      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  3.5329 +	_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  3.5330 +	wlarc=
  3.5331 +      else
  3.5332 +	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  3.5333 +	_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  3.5334 +      fi
  3.5335 +      ;;
  3.5336 +
  3.5337 +    solaris* | sysv5*)
  3.5338 +      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  3.5339 +	_LT_AC_TAGVAR(ld_shlibs, $1)=no
  3.5340 +	cat <<EOF 1>&2
  3.5341 +
  3.5342 +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  3.5343 +*** create shared libraries on Solaris systems.  Therefore, libtool
  3.5344 +*** is disabling shared libraries support.  We urge you to upgrade GNU
  3.5345 +*** binutils to release 2.9.1 or newer.  Another option is to modify
  3.5346 +*** your PATH or compiler configuration so that the native linker is
  3.5347 +*** used, and then restart.
  3.5348 +
  3.5349 +EOF
  3.5350 +      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  3.5351 +	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  3.5352 +	_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  3.5353 +      else
  3.5354 +	_LT_AC_TAGVAR(ld_shlibs, $1)=no
  3.5355 +      fi
  3.5356 +      ;;
  3.5357 +
  3.5358 +    sunos4*)
  3.5359 +      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  3.5360 +      wlarc=
  3.5361 +      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  3.5362 +      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  3.5363 +      ;;
  3.5364 +
  3.5365 +    *)
  3.5366 +      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  3.5367 +	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  3.5368 +	_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  3.5369 +      else
  3.5370 +	_LT_AC_TAGVAR(ld_shlibs, $1)=no
  3.5371 +      fi
  3.5372 +      ;;
  3.5373 +    esac
  3.5374 +
  3.5375 +    if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = yes; then
  3.5376 +      runpath_var=LD_RUN_PATH
  3.5377 +      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  3.5378 +      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  3.5379 +      # ancient GNU ld didn't support --whole-archive et. al.
  3.5380 +      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  3.5381 + 	_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  3.5382 +      else
  3.5383 +  	_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  3.5384 +      fi
  3.5385 +    fi
  3.5386 +  else
  3.5387 +    # PORTME fill in a description of your system's linker (not GNU ld)
  3.5388 +    case $host_os in
  3.5389 +    aix3*)
  3.5390 +      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  3.5391 +      _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  3.5392 +      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  3.5393 +      # Note: this linker hardcodes the directories in LIBPATH if there
  3.5394 +      # are no directories specified by -L.
  3.5395 +      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  3.5396 +      if test "$GCC" = yes && test -z "$link_static_flag"; then
  3.5397 +	# Neither direct hardcoding nor static linking is supported with a
  3.5398 +	# broken collect2.
  3.5399 +	_LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  3.5400 +      fi
  3.5401 +      ;;
  3.5402 +
  3.5403 +    aix4* | aix5*)
  3.5404 +      if test "$host_cpu" = ia64; then
  3.5405 +	# On IA64, the linker does run time linking by default, so we don't
  3.5406 +	# have to do anything special.
  3.5407 +	aix_use_runtimelinking=no
  3.5408 +	exp_sym_flag='-Bexport'
  3.5409 +	no_entry_flag=""
  3.5410 +      else
  3.5411 +	# If we're using GNU nm, then we don't want the "-C" option.
  3.5412 +	# -C means demangle to AIX nm, but means don't demangle with GNU nm
  3.5413 +	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  3.5414 +	  _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
  3.5415 +	else
  3.5416 +	  _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
  3.5417 +	fi
  3.5418 +	aix_use_runtimelinking=no
  3.5419 +
  3.5420 +	# Test if we are trying to use run time linking or normal
  3.5421 +	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
  3.5422 +	# need to do runtime linking.
  3.5423 +	case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
  3.5424 +	  for ld_flag in $LDFLAGS; do
  3.5425 +  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  3.5426 +  	    aix_use_runtimelinking=yes
  3.5427 +  	    break
  3.5428 +  	  fi
  3.5429 +	  done
  3.5430 +	esac
  3.5431 +
  3.5432 +	exp_sym_flag='-bexport'
  3.5433 +	no_entry_flag='-bnoentry'
  3.5434 +      fi
  3.5435 +
  3.5436 +      # When large executables or shared objects are built, AIX ld can
  3.5437 +      # have problems creating the table of contents.  If linking a library
  3.5438 +      # or program results in "error TOC overflow" add -mminimal-toc to
  3.5439 +      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
  3.5440 +      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  3.5441 +
  3.5442 +      _LT_AC_TAGVAR(archive_cmds, $1)=''
  3.5443 +      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  3.5444 +      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  3.5445 +      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  3.5446 +
  3.5447 +      if test "$GCC" = yes; then
  3.5448 +	case $host_os in aix4.[012]|aix4.[012].*)
  3.5449 +	# We only want to do this on AIX 4.2 and lower, the check
  3.5450 +	# below for broken collect2 doesn't work under 4.3+
  3.5451 +	  collect2name=`${CC} -print-prog-name=collect2`
  3.5452 +	  if test -f "$collect2name" && \
  3.5453 +  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
  3.5454 +	  then
  3.5455 +  	  # We have reworked collect2
  3.5456 +  	  _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  3.5457 +	  else
  3.5458 +  	  # We have old collect2
  3.5459 +  	  _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  3.5460 +  	  # It fails to find uninstalled libraries when the uninstalled
  3.5461 +  	  # path is not listed in the libpath.  Setting hardcode_minus_L
  3.5462 +  	  # to unsupported forces relinking
  3.5463 +  	  _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  3.5464 +  	  _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  3.5465 +  	  _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  3.5466 +	  fi
  3.5467 +	esac
  3.5468 +	shared_flag='-shared'
  3.5469 +      else
  3.5470 +	# not using gcc
  3.5471 +	if test "$host_cpu" = ia64; then
  3.5472 +  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  3.5473 +  	# chokes on -Wl,-G. The following line is correct:
  3.5474 +	  shared_flag='-G'
  3.5475 +	else
  3.5476 +  	if test "$aix_use_runtimelinking" = yes; then
  3.5477 +	    shared_flag='${wl}-G'
  3.5478 +	  else
  3.5479 +	    shared_flag='${wl}-bM:SRE'
  3.5480 +  	fi
  3.5481 +	fi
  3.5482 +      fi
  3.5483 +
  3.5484 +      # It seems that -bexpall does not export symbols beginning with
  3.5485 +      # underscore (_), so it is better to generate a list of symbols to export.
  3.5486 +      _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  3.5487 +      if test "$aix_use_runtimelinking" = yes; then
  3.5488 +	# Warning - without using the other runtime loading flags (-brtl),
  3.5489 +	# -berok will link without error, but may produce a broken library.
  3.5490 +	_LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
  3.5491 +       # Determine the default libpath from the value encoded in an empty executable.
  3.5492 +       _LT_AC_SYS_LIBPATH_AIX
  3.5493 +       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  3.5494 +	_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  3.5495 +       else
  3.5496 +	if test "$host_cpu" = ia64; then
  3.5497 +	  _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  3.5498 +	  _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  3.5499 +	  _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
  3.5500 +	else
  3.5501 +	 # Determine the default libpath from the value encoded in an empty executable.
  3.5502 +	 _LT_AC_SYS_LIBPATH_AIX
  3.5503 +	 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  3.5504 +	  # Warning - without using the other run time loading flags,
  3.5505 +	  # -berok will link without error, but may produce a broken library.
  3.5506 +	  _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  3.5507 +	  _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  3.5508 +	  # -bexpall does not export symbols beginning with underscore (_)
  3.5509 +	  _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  3.5510 +	  # Exported symbols can be pulled into shared objects from archives
  3.5511 +	  _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
  3.5512 +	  _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  3.5513 +	  # This is similar to how AIX traditionally builds it's shared libraries.
  3.5514 +	  _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  3.5515 +	fi
  3.5516 +      fi
  3.5517 +      ;;
  3.5518 +
  3.5519 +    amigaos*)
  3.5520 +      _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  3.5521 +      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  3.5522 +      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  3.5523 +      # see comment about different semantics on the GNU ld section
  3.5524 +      _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3.5525 +      ;;
  3.5526 +
  3.5527 +    bsdi4*)
  3.5528 +      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
  3.5529 +      ;;
  3.5530 +
  3.5531 +    cygwin* | mingw* | pw32*)
  3.5532 +      # When not using gcc, we currently assume that we are using
  3.5533 +      # Microsoft Visual C++.
  3.5534 +      # hardcode_libdir_flag_spec is actually meaningless, as there is
  3.5535 +      # no search path for DLLs.
  3.5536 +      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  3.5537 +      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  3.5538 +      # Tell ltmain to make .lib files, not .a files.
  3.5539 +      libext=lib
  3.5540 +      # Tell ltmain to make .dll files, not .so files.
  3.5541 +      shrext=".dll"
  3.5542 +      # FIXME: Setting linknames here is a bad hack.
  3.5543 +      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  3.5544 +      # The linker will automatically build a .lib file if we build a DLL.
  3.5545 +      _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
  3.5546 +      # FIXME: Should let the user specify the lib program.
  3.5547 +      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
  3.5548 +      fix_srcfile_path='`cygpath -w "$srcfile"`'
  3.5549 +      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  3.5550 +      ;;
  3.5551 +
  3.5552 +    darwin* | rhapsody*)
  3.5553 +    if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then 
  3.5554 +      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  3.5555 +      case "$host_os" in
  3.5556 +      rhapsody* | darwin1.[[012]])
  3.5557 +	_LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
  3.5558 +	;;
  3.5559 +      *) # Darwin 1.3 on
  3.5560 +	test -z ${LD_TWOLEVEL_NAMESPACE} && _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
  3.5561 +	;;
  3.5562 +      esac
  3.5563 +      # FIXME: Relying on posixy $() will cause problems for
  3.5564 +      #        cross-compilation, but unfortunately the echo tests do not
  3.5565 +      #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
  3.5566 +      #	       `"' quotes if we put them in here... so don't!
  3.5567 +    	lt_int_apple_cc_single_mod=no
  3.5568 +    	output_verbose_link_cmd='echo'
  3.5569 +    	if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
  3.5570 +    	  lt_int_apple_cc_single_mod=yes
  3.5571 +    	fi
  3.5572 +    	if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  3.5573 +    	  _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  3.5574 +    	else
  3.5575 +        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  3.5576 +      fi
  3.5577 +      _LT_AC_TAGVAR(module_cmds, $1)='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
  3.5578 +      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  3.5579 +        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  3.5580 +          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  3.5581 +        else
  3.5582 +          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  3.5583 +        fi
  3.5584 +          _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  3.5585 +      _LT_AC_TAGVAR(hardcode_direct, $1)=no
  3.5586 +      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
  3.5587 +      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  3.5588 +      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
  3.5589 +      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  3.5590 +    fi  
  3.5591 +      ;;
  3.5592 +
  3.5593 +    dgux*)
  3.5594 +      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  3.5595 +      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  3.5596 +      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  3.5597 +      ;;
  3.5598 +
  3.5599 +    freebsd1*)
  3.5600 +      _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3.5601 +      ;;
  3.5602 +
  3.5603 +    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  3.5604 +    # support.  Future versions do this automatically, but an explicit c++rt0.o
  3.5605 +    # does not break anything, and helps significantly (at the cost of a little
  3.5606 +    # extra space).
  3.5607 +    freebsd2.2*)
  3.5608 +      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  3.5609 +      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  3.5610 +      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  3.5611 +      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  3.5612 +      ;;
  3.5613 +
  3.5614 +    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  3.5615 +    freebsd2*)
  3.5616 +      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  3.5617 +      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  3.5618 +      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  3.5619 +      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  3.5620 +      ;;
  3.5621 +
  3.5622 +    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  3.5623 +    freebsd*)
  3.5624 +      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  3.5625 +      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  3.5626 +      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  3.5627 +      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  3.5628 +      ;;
  3.5629 +
  3.5630 +    hpux9*)
  3.5631 +      if test "$GCC" = yes; then
  3.5632 +	_LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  3.5633 +      else
  3.5634 +	_LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  3.5635 +      fi
  3.5636 +      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  3.5637 +      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  3.5638 +      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  3.5639 +
  3.5640 +      # hardcode_minus_L: Not really in the search PATH,
  3.5641 +      # but as the default location of the library.
  3.5642 +      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  3.5643 +      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  3.5644 +      ;;
  3.5645 +
  3.5646 +    hpux10* | hpux11*)
  3.5647 +      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  3.5648 +	case "$host_cpu" in
  3.5649 +	hppa*64*|ia64*)
  3.5650 +	  _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  3.5651 +	  ;;
  3.5652 +	*)
  3.5653 +	  _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  3.5654 +	  ;;
  3.5655 +	esac
  3.5656 +      else
  3.5657 +	case "$host_cpu" in
  3.5658 +	hppa*64*|ia64*)
  3.5659 +	  _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
  3.5660 +	  ;;
  3.5661 +	*)
  3.5662 +	  _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  3.5663 +	  ;;
  3.5664 +	esac
  3.5665 +      fi
  3.5666 +      if test "$with_gnu_ld" = no; then
  3.5667 +	case "$host_cpu" in
  3.5668 +	hppa*64*)
  3.5669 +	  _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  3.5670 +	  _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
  3.5671 +	  _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  3.5672 +	  _LT_AC_TAGVAR(hardcode_direct, $1)=no
  3.5673 +	  _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  3.5674 +	  ;;
  3.5675 +	ia64*)
  3.5676 +	  _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  3.5677 +	  _LT_AC_TAGVAR(hardcode_direct, $1)=no
  3.5678 +	  _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  3.5679 +
  3.5680 +	  # hardcode_minus_L: Not really in the search PATH,
  3.5681 +	  # but as the default location of the library.
  3.5682 +	  _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  3.5683 +	  ;;
  3.5684 +	*)
  3.5685 +	  _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  3.5686 +	  _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  3.5687 +	  _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  3.5688 +	  _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  3.5689 +
  3.5690 +	  # hardcode_minus_L: Not really in the search PATH,
  3.5691 +	  # but as the default location of the library.
  3.5692 +	  _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  3.5693 +	  ;;
  3.5694 +	esac
  3.5695 +      fi
  3.5696 +      ;;
  3.5697 +
  3.5698 +    irix5* | irix6* | nonstopux*)
  3.5699 +      if test "$GCC" = yes; then
  3.5700 +	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  3.5701 +      else
  3.5702 +	_LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  3.5703 +	_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
  3.5704 +      fi
  3.5705 +      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  3.5706 +      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  3.5707 +      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  3.5708 +      ;;
  3.5709 +
  3.5710 +    netbsd*)
  3.5711 +      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  3.5712 +	_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
  3.5713 +      else
  3.5714 +	_LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
  3.5715 +      fi
  3.5716 +      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  3.5717 +      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  3.5718 +      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  3.5719 +      ;;
  3.5720 +
  3.5721 +    newsos6)
  3.5722 +      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  3.5723 +      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  3.5724 +      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  3.5725 +      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  3.5726 +      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  3.5727 +      ;;
  3.5728 +
  3.5729 +    openbsd*)
  3.5730 +      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  3.5731 +      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  3.5732 +      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  3.5733 +	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  3.5734 +	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  3.5735 +	_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  3.5736 +      else
  3.5737 +       case $host_os in
  3.5738 +	 openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
  3.5739 +	   _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  3.5740 +	   _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  3.5741 +	   ;;
  3.5742 +	 *)
  3.5743 +	   _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  3.5744 +	   _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  3.5745 +	   ;;
  3.5746 +       esac
  3.5747 +      fi
  3.5748 +      ;;
  3.5749 +
  3.5750 +    os2*)
  3.5751 +      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  3.5752 +      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  3.5753 +      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  3.5754 +      _LT_AC_TAGVAR(archive_cmds, $1)='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  3.5755 +      _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  3.5756 +      ;;
  3.5757 +
  3.5758 +    osf3*)
  3.5759 +      if test "$GCC" = yes; then
  3.5760 +	_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  3.5761 +	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  3.5762 +      else
  3.5763 +	_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  3.5764 +	_LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  3.5765 +      fi
  3.5766 +      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  3.5767 +      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  3.5768 +      ;;
  3.5769 +
  3.5770 +    osf4* | osf5*)	# as osf3* with the addition of -msym flag
  3.5771 +      if test "$GCC" = yes; then
  3.5772 +	_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  3.5773 +	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  3.5774 +	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  3.5775 +      else
  3.5776 +	_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  3.5777 +	_LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  3.5778 +	_LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  3.5779 +	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
  3.5780 +
  3.5781 +	# Both c and cxx compiler support -rpath directly
  3.5782 +	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  3.5783 +      fi
  3.5784 +      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  3.5785 +      ;;
  3.5786 +
  3.5787 +    sco3.2v5*)
  3.5788 +      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  3.5789 +      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  3.5790 +      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  3.5791 +      runpath_var=LD_RUN_PATH
  3.5792 +      hardcode_runpath_var=yes
  3.5793 +      ;;
  3.5794 +
  3.5795 +    solaris*)
  3.5796 +      _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
  3.5797 +      if test "$GCC" = yes; then
  3.5798 +	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  3.5799 +	_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  3.5800 +	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  3.5801 +      else
  3.5802 +	_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  3.5803 +	_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  3.5804 +  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  3.5805 +      fi
  3.5806 +      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  3.5807 +      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  3.5808 +      case $host_os in
  3.5809 +      solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  3.5810 +      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
  3.5811 +	_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
  3.5812 +      esac
  3.5813 +      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  3.5814 +      ;;
  3.5815 +
  3.5816 +    sunos4*)
  3.5817 +      if test "x$host_vendor" = xsequent; then
  3.5818 +	# Use $CC to link under sequent, because it throws in some extra .o
  3.5819 +	# files that make .init and .fini sections work.
  3.5820 +	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  3.5821 +      else
  3.5822 +	_LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  3.5823 +      fi
  3.5824 +      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  3.5825 +      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  3.5826 +      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  3.5827 +      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  3.5828 +      ;;
  3.5829 +
  3.5830 +    sysv4)
  3.5831 +      case $host_vendor in
  3.5832 +	sni)
  3.5833 +	  _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  3.5834 +	  _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
  3.5835 +	;;
  3.5836 +	siemens)
  3.5837 +	  ## LD is ld it makes a PLAMLIB
  3.5838 +	  ## CC just makes a GrossModule.
  3.5839 +	  _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  3.5840 +	  _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
  3.5841 +	  _LT_AC_TAGVAR(hardcode_direct, $1)=no
  3.5842 +        ;;
  3.5843 +	motorola)
  3.5844 +	  _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  3.5845 +	  _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
  3.5846 +	;;
  3.5847 +      esac
  3.5848 +      runpath_var='LD_RUN_PATH'
  3.5849 +      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  3.5850 +      ;;
  3.5851 +
  3.5852 +    sysv4.3*)
  3.5853 +      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  3.5854 +      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  3.5855 +      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
  3.5856 +      ;;
  3.5857 +
  3.5858 +    sysv4*MP*)
  3.5859 +      if test -d /usr/nec; then
  3.5860 +	_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  3.5861 +	_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  3.5862 +	runpath_var=LD_RUN_PATH
  3.5863 +	hardcode_runpath_var=yes
  3.5864 +	_LT_AC_TAGVAR(ld_shlibs, $1)=yes
  3.5865 +      fi
  3.5866 +      ;;
  3.5867 +
  3.5868 +    sysv4.2uw2*)
  3.5869 +      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  3.5870 +      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  3.5871 +      _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  3.5872 +      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  3.5873 +      hardcode_runpath_var=yes
  3.5874 +      runpath_var=LD_RUN_PATH
  3.5875 +      ;;
  3.5876 +
  3.5877 +   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[[78]]* | unixware7*)
  3.5878 +      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text'
  3.5879 +      if test "$GCC" = yes; then
  3.5880 +	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  3.5881 +      else
  3.5882 +	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  3.5883 +      fi
  3.5884 +      runpath_var='LD_RUN_PATH'
  3.5885 +      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  3.5886 +      ;;
  3.5887 +
  3.5888 +    sysv5*)
  3.5889 +      _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
  3.5890 +      # $CC -shared without GNU ld will not create a library from C++
  3.5891 +      # object files and a static libstdc++, better avoid it by now
  3.5892 +      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  3.5893 +      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  3.5894 +  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  3.5895 +      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  3.5896 +      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  3.5897 +      runpath_var='LD_RUN_PATH'
  3.5898 +      ;;
  3.5899 +
  3.5900 +    uts4*)
  3.5901 +      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  3.5902 +      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  3.5903 +      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  3.5904 +      ;;
  3.5905 +
  3.5906 +    *)
  3.5907 +      _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3.5908 +      ;;
  3.5909 +    esac
  3.5910 +  fi
  3.5911 +])
  3.5912 +AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
  3.5913 +test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  3.5914 +
  3.5915 +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  3.5916 +if test "$GCC" = yes; then
  3.5917 +  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  3.5918 +fi
  3.5919 +
  3.5920 +#
  3.5921 +# Do we need to explicitly link libc?
  3.5922 +#
  3.5923 +case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
  3.5924 +x|xyes)
  3.5925 +  # Assume -lc should be added
  3.5926 +  _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  3.5927 +
  3.5928 +  if test "$enable_shared" = yes && test "$GCC" = yes; then
  3.5929 +    case $_LT_AC_TAGVAR(archive_cmds, $1) in
  3.5930 +    *'~'*)
  3.5931 +      # FIXME: we may have to deal with multi-command sequences.
  3.5932 +      ;;
  3.5933 +    '$CC '*)
  3.5934 +      # Test whether the compiler implicitly links with -lc since on some
  3.5935 +      # systems, -lgcc has to come before -lc. If gcc already passes -lc
  3.5936 +      # to ld, don't add -lc before -lgcc.
  3.5937 +      AC_MSG_CHECKING([whether -lc should be explicitly linked in])
  3.5938 +      $rm conftest*
  3.5939 +      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  3.5940 +  
  3.5941 +      if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
  3.5942 +        soname=conftest
  3.5943 +        lib=conftest
  3.5944 +        libobjs=conftest.$ac_objext
  3.5945 +        deplibs=
  3.5946 +        wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
  3.5947 +        compiler_flags=-v
  3.5948 +        linker_flags=-v
  3.5949 +        verstring=
  3.5950 +        output_objdir=.
  3.5951 +        libname=conftest
  3.5952 +        lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
  3.5953 +        _LT_AC_TAGVAR(allow_undefined_flag, $1)=
  3.5954 +        if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
  3.5955 +        then
  3.5956 +	  _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  3.5957 +        else
  3.5958 +	  _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  3.5959 +        fi
  3.5960 +        _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
  3.5961 +      else
  3.5962 +        cat conftest.err 1>&5
  3.5963 +      fi
  3.5964 +      $rm conftest*
  3.5965 +      AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
  3.5966 +      ;;
  3.5967 +    esac
  3.5968 +  fi
  3.5969 +  ;;
  3.5970 +esac
  3.5971 +])# AC_LIBTOOL_PROG_LD_SHLIBS
  3.5972 +
  3.5973 +
  3.5974 +# _LT_AC_FILE_LTDLL_C
  3.5975 +# -------------------
  3.5976 +# Be careful that the start marker always follows a newline.
  3.5977 +AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
  3.5978 +# /* ltdll.c starts here */
  3.5979 +# #define WIN32_LEAN_AND_MEAN
  3.5980 +# #include <windows.h>
  3.5981 +# #undef WIN32_LEAN_AND_MEAN
  3.5982 +# #include <stdio.h>
  3.5983 +#
  3.5984 +# #ifndef __CYGWIN__
  3.5985 +# #  ifdef __CYGWIN32__
  3.5986 +# #    define __CYGWIN__ __CYGWIN32__
  3.5987 +# #  endif
  3.5988 +# #endif
  3.5989 +#
  3.5990 +# #ifdef __cplusplus
  3.5991 +# extern "C" {
  3.5992 +# #endif
  3.5993 +# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
  3.5994 +# #ifdef __cplusplus
  3.5995 +# }
  3.5996 +# #endif
  3.5997 +#
  3.5998 +# #ifdef __CYGWIN__
  3.5999 +# #include <cygwin/cygwin_dll.h>
  3.6000 +# DECLARE_CYGWIN_DLL( DllMain );
  3.6001 +# #endif
  3.6002 +# HINSTANCE __hDllInstance_base;
  3.6003 +#
  3.6004 +# BOOL APIENTRY
  3.6005 +# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
  3.6006 +# {
  3.6007 +#   __hDllInstance_base = hInst;
  3.6008 +#   return TRUE;
  3.6009 +# }
  3.6010 +# /* ltdll.c ends here */
  3.6011 +])# _LT_AC_FILE_LTDLL_C
  3.6012 +
  3.6013 +
  3.6014 +# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
  3.6015 +# ---------------------------------
  3.6016 +AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
  3.6017 +
  3.6018 +
  3.6019 +# old names
  3.6020 +AC_DEFUN([AM_PROG_LIBTOOL],   [AC_PROG_LIBTOOL])
  3.6021 +AC_DEFUN([AM_ENABLE_SHARED],  [AC_ENABLE_SHARED($@)])
  3.6022 +AC_DEFUN([AM_ENABLE_STATIC],  [AC_ENABLE_STATIC($@)])
  3.6023 +AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
  3.6024 +AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
  3.6025 +AC_DEFUN([AM_PROG_LD],        [AC_PROG_LD])
  3.6026 +AC_DEFUN([AM_PROG_NM],        [AC_PROG_NM])
  3.6027 +
  3.6028 +# This is just to silence aclocal about the macro not being used
  3.6029 +ifelse([AC_DISABLE_FAST_INSTALL])
  3.6030 +
  3.6031 +AC_DEFUN([LT_AC_PROG_GCJ],
  3.6032 +[AC_CHECK_TOOL(GCJ, gcj, no)
  3.6033 +  test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
  3.6034 +  AC_SUBST(GCJFLAGS)
  3.6035 +])
  3.6036 +
  3.6037 +AC_DEFUN([LT_AC_PROG_RC],
  3.6038 +[AC_CHECK_TOOL(RC, windres, no)
  3.6039 +])
  3.6040 +
  3.6041 +############################################################
  3.6042 +# NOTE: This macro has been submitted for inclusion into   #
  3.6043 +#  GNU Autoconf as AC_PROG_SED.  When it is available in   #
  3.6044 +#  a released version of Autoconf we should remove this    #
  3.6045 +#  macro and use it instead.                               #
  3.6046 +############################################################
  3.6047 +# LT_AC_PROG_SED
  3.6048 +# --------------
  3.6049 +# Check for a fully-functional sed program, that truncates
  3.6050 +# as few characters as possible.  Prefer GNU sed if found.
  3.6051 +AC_DEFUN([LT_AC_PROG_SED],
  3.6052 +[AC_MSG_CHECKING([for a sed that does not truncate output])
  3.6053 +AC_CACHE_VAL(lt_cv_path_SED,
  3.6054 +[# Loop through the user's path and test for sed and gsed.
  3.6055 +# Then use that list of sed's as ones to test for truncation.
  3.6056 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3.6057 +for as_dir in $PATH
  3.6058 +do
  3.6059 +  IFS=$as_save_IFS
  3.6060 +  test -z "$as_dir" && as_dir=.
  3.6061 +  for lt_ac_prog in sed gsed; do
  3.6062 +    for ac_exec_ext in '' $ac_executable_extensions; do
  3.6063 +      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  3.6064 +        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  3.6065 +      fi
  3.6066 +    done
  3.6067 +  done
  3.6068 +done
  3.6069 +lt_ac_max=0
  3.6070 +lt_ac_count=0
  3.6071 +# Add /usr/xpg4/bin/sed as it is typically found on Solaris
  3.6072 +# along with /bin/sed that truncates output.
  3.6073 +for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  3.6074 +  test ! -f $lt_ac_sed && break
  3.6075 +  cat /dev/null > conftest.in
  3.6076 +  lt_ac_count=0
  3.6077 +  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  3.6078 +  # Check for GNU sed and select it if it is found.
  3.6079 +  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  3.6080 +    lt_cv_path_SED=$lt_ac_sed
  3.6081 +    break
  3.6082 +  fi
  3.6083 +  while true; do
  3.6084 +    cat conftest.in conftest.in >conftest.tmp
  3.6085 +    mv conftest.tmp conftest.in
  3.6086 +    cp conftest.in conftest.nl
  3.6087 +    echo >>conftest.nl
  3.6088 +    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  3.6089 +    cmp -s conftest.out conftest.nl || break
  3.6090 +    # 10000 chars as input seems more than enough
  3.6091 +    test $lt_ac_count -gt 10 && break
  3.6092 +    lt_ac_count=`expr $lt_ac_count + 1`
  3.6093 +    if test $lt_ac_count -gt $lt_ac_max; then
  3.6094 +      lt_ac_max=$lt_ac_count
  3.6095 +      lt_cv_path_SED=$lt_ac_sed
  3.6096 +    fi
  3.6097 +  done
  3.6098 +done
  3.6099 +SED=$lt_cv_path_SED
  3.6100 +])
  3.6101 +AC_MSG_RESULT([$SED])
  3.6102 +])
     4.1 --- a/ltconfig	Mon Nov 10 04:35:47 2003 +0000
     4.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.3 @@ -1,3243 +0,0 @@
     4.4 -#! /bin/sh
     4.5 -
     4.6 -# ltconfig - Create a system-specific libtool.
     4.7 -# Copyright (C) 1996-1999 Free Software Foundation, Inc.
     4.8 -# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
     4.9 -#
    4.10 -# This file is free software; you can redistribute it and/or modify it
    4.11 -# under the terms of the GNU General Public License as published by
    4.12 -# the Free Software Foundation; either version 2 of the License, or
    4.13 -# (at your option) any later version.
    4.14 -#
    4.15 -# This program is distributed in the hope that it will be useful, but
    4.16 -# WITHOUT ANY WARRANTY; without even the implied warranty of
    4.17 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    4.18 -# General Public License for more details.
    4.19 -#
    4.20 -# You should have received a copy of the GNU General Public License
    4.21 -# along with this program; if not, write to the Free Software
    4.22 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
    4.23 -#
    4.24 -# As a special exception to the GNU General Public License, if you
    4.25 -# distribute this file as part of a program that contains a
    4.26 -# configuration script generated by Autoconf, you may include it under
    4.27 -# the same distribution terms that you use for the rest of that program.
    4.28 -
    4.29 -# A lot of this script is taken from autoconf-2.10.
    4.30 -
    4.31 -# Check that we are running under the correct shell.
    4.32 -SHELL=${CONFIG_SHELL-/bin/sh}
    4.33 -echo=echo
    4.34 -if test "X$1" = X--no-reexec; then
    4.35 -  # Discard the --no-reexec flag, and continue.
    4.36 -  shift
    4.37 -elif test "X$1" = X--fallback-echo; then
    4.38 -  # Avoid inline document here, it may be left over
    4.39 -  :
    4.40 -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
    4.41 -  # Yippee, $echo works!
    4.42 -  :
    4.43 -else
    4.44 -  # Restart under the correct shell.
    4.45 -  exec "$SHELL" "$0" --no-reexec ${1+"$@"}
    4.46 -fi
    4.47 -
    4.48 -if test "X$1" = X--fallback-echo; then
    4.49 -  # used as fallback echo
    4.50 -  shift
    4.51 -  cat <<EOF
    4.52 -$*
    4.53 -EOF
    4.54 -  exit 0
    4.55 -fi
    4.56 -
    4.57 -# Find the correct PATH separator.  Usually this is `:', but
    4.58 -# DJGPP uses `;' like DOS.
    4.59 -if test "X${PATH_SEPARATOR+set}" != Xset; then
    4.60 -  UNAME=${UNAME-`uname 2>/dev/null`}
    4.61 -  case X$UNAME in
    4.62 -    *-DOS) PATH_SEPARATOR=';' ;;
    4.63 -    *)     PATH_SEPARATOR=':' ;;
    4.64 -  esac
    4.65 -fi
    4.66 -
    4.67 -# The HP-UX ksh and POSIX shell print the target directory to stdout
    4.68 -# if CDPATH is set.
    4.69 -if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
    4.70 -
    4.71 -if test "X${echo_test_string+set}" != Xset; then
    4.72 -  # find a string as large as possible, as long as the shell can cope with it
    4.73 -  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
    4.74 -    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
    4.75 -    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
    4.76 -       echo_test_string="`eval $cmd`" &&
    4.77 -       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null; then
    4.78 -      break
    4.79 -    fi
    4.80 -  done
    4.81 -fi
    4.82 -
    4.83 -if test "X`($echo '\t') 2>/dev/null`" != 'X\t' ||
    4.84 -   test "X`($echo "$echo_test_string") 2>/dev/null`" != X"$echo_test_string"; then
    4.85 -  # The Solaris, AIX, and Digital Unix default echo programs unquote
    4.86 -  # backslashes.  This makes it impossible to quote backslashes using
    4.87 -  #   echo "$something" | sed 's/\\/\\\\/g'
    4.88 -  #
    4.89 -  # So, first we look for a working echo in the user's PATH.
    4.90 -
    4.91 -  IFS="${IFS= 	}"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
    4.92 -  for dir in $PATH /usr/ucb; do
    4.93 -    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
    4.94 -       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
    4.95 -       test "X`($dir/echo "$echo_test_string") 2>/dev/null`" = X"$echo_test_string"; then
    4.96 -      echo="$dir/echo"
    4.97 -      break
    4.98 -    fi
    4.99 -  done
   4.100 -  IFS="$save_ifs"
   4.101 -
   4.102 -  if test "X$echo" = Xecho; then
   4.103 -    # We didn't find a better echo, so look for alternatives.
   4.104 -    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
   4.105 -       test "X`(print -r "$echo_test_string") 2>/dev/null`" = X"$echo_test_string"; then
   4.106 -      # This shell has a builtin print -r that does the trick.
   4.107 -      echo='print -r'
   4.108 -    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
   4.109 -	 test "X$CONFIG_SHELL" != X/bin/ksh; then
   4.110 -      # If we have ksh, try running ltconfig again with it.
   4.111 -      ORIGINAL_CONFIG_SHELL="${CONFIG_SHELL-/bin/sh}"
   4.112 -      export ORIGINAL_CONFIG_SHELL
   4.113 -      CONFIG_SHELL=/bin/ksh
   4.114 -      export CONFIG_SHELL
   4.115 -      exec "$CONFIG_SHELL" "$0" --no-reexec ${1+"$@"}
   4.116 -    else
   4.117 -      # Try using printf.
   4.118 -      echo='printf "%s\n"'
   4.119 -      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
   4.120 -	 test "X`($echo "$echo_test_string") 2>/dev/null`" = X"$echo_test_string"; then
   4.121 -	# Cool, printf works
   4.122 -	:
   4.123 -      elif test "X`("$ORIGINAL_CONFIG_SHELL" "$0" --fallback-echo '\t') 2>/dev/null`" = 'X\t' &&
   4.124 -	   test "X`("$ORIGINAL_CONFIG_SHELL" "$0" --fallback-echo "$echo_test_string") 2>/dev/null`" = X"$echo_test_string"; then
   4.125 -	CONFIG_SHELL="$ORIGINAL_CONFIG_SHELL"
   4.126 -	export CONFIG_SHELL
   4.127 -	SHELL="$CONFIG_SHELL"
   4.128 -	export SHELL
   4.129 -	echo="$CONFIG_SHELL $0 --fallback-echo"
   4.130 -      elif test "X`("$CONFIG_SHELL" "$0" --fallback-echo '\t') 2>/dev/null`" = 'X\t' &&
   4.131 -	   test "X`("$CONFIG_SHELL" "$0" --fallback-echo "$echo_test_string") 2>/dev/null`" = X"$echo_test_string"; then
   4.132 -	echo="$CONFIG_SHELL $0 --fallback-echo"
   4.133 -      else
   4.134 -	# maybe with a smaller string...
   4.135 -	prev=:
   4.136 -
   4.137 -	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
   4.138 -	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null; then
   4.139 -	    break
   4.140 -	  fi
   4.141 -	  prev="$cmd"
   4.142 -	done
   4.143 -
   4.144 -	if test "$prev" != 'sed 50q "$0"'; then
   4.145 -	  echo_test_string=`eval $prev`
   4.146 -	  export echo_test_string
   4.147 -	  exec "${ORIGINAL_CONFIG_SHELL}" "$0" ${1+"$@"}
   4.148 -	else
   4.149 -	  # Oops.  We lost completely, so just stick with echo.
   4.150 -	  echo=echo
   4.151 -	fi
   4.152 -      fi
   4.153 -    fi
   4.154 -  fi
   4.155 -fi
   4.156 -
   4.157 -# Sed substitution that helps us do robust quoting.  It backslashifies
   4.158 -# metacharacters that are still active within double-quoted strings.
   4.159 -Xsed='sed -e s/^X//'
   4.160 -sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
   4.161 -
   4.162 -# Same as above, but do not quote variable references.
   4.163 -double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
   4.164 -
   4.165 -# Sed substitution to delay expansion of an escaped shell variable in a
   4.166 -# double_quote_subst'ed string.
   4.167 -delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
   4.168 -
   4.169 -# The name of this program.
   4.170 -progname=`$echo "X$0" | $Xsed -e 's%^.*/%%'`
   4.171 -
   4.172 -# Constants:
   4.173 -PROGRAM=ltconfig
   4.174 -PACKAGE=libtool
   4.175 -VERSION=1.3.5
   4.176 -TIMESTAMP=" (1.385.2.206 2000/05/27 11:12:27)"
   4.177 -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
   4.178 -ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
   4.179 -rm="rm -f"
   4.180 -
   4.181 -help="Try \`$progname --help' for more information."
   4.182 -
   4.183 -# Global variables:
   4.184 -default_ofile=libtool
   4.185 -can_build_shared=yes
   4.186 -enable_shared=yes
   4.187 -# All known linkers require a `.a' archive for static linking (except M$VC,
   4.188 -# which needs '.lib').
   4.189 -enable_static=yes
   4.190 -enable_fast_install=yes
   4.191 -enable_dlopen=unknown
   4.192 -enable_win32_dll=yes
   4.193 -ltmain=
   4.194 -silent=
   4.195 -srcdir=
   4.196 -ac_config_guess=
   4.197 -ac_config_sub=
   4.198 -host=
   4.199 -nonopt=
   4.200 -ofile="$default_ofile"
   4.201 -verify_host=yes
   4.202 -with_gcc=no
   4.203 -with_gnu_ld=no
   4.204 -need_locks=yes
   4.205 -ac_ext=c
   4.206 -objext=o
   4.207 -libext=a
   4.208 -exeext=
   4.209 -cache_file=
   4.210 -
   4.211 -old_AR="$AR"
   4.212 -old_CC="$CC"
   4.213 -old_CFLAGS="$CFLAGS"
   4.214 -old_CPPFLAGS="$CPPFLAGS"
   4.215 -old_LDFLAGS="$LDFLAGS"
   4.216 -old_LD="$LD"
   4.217 -old_LN_S="$LN_S"
   4.218 -old_LIBS="$LIBS"
   4.219 -old_NM="$NM"
   4.220 -old_RANLIB="$RANLIB"
   4.221 -old_DLLTOOL="$DLLTOOL"
   4.222 -old_OBJDUMP="$OBJDUMP"
   4.223 -old_AS="$AS"
   4.224 -
   4.225 -# Parse the command line options.
   4.226 -args=
   4.227 -prev=
   4.228 -for option
   4.229 -do
   4.230 -  case "$option" in
   4.231 -  -*=*) optarg=`echo "$option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
   4.232 -  *) optarg= ;;
   4.233 -  esac
   4.234 -
   4.235 -  # If the previous option needs an argument, assign it.
   4.236 -  if test -n "$prev"; then
   4.237 -    eval "$prev=\$option"
   4.238 -    prev=
   4.239 -    continue
   4.240 -  fi
   4.241 -
   4.242 -  case "$option" in
   4.243 -  --help) cat <<EOM
   4.244 -Usage: $progname [OPTION]... [HOST [LTMAIN]]
   4.245 -
   4.246 -Generate a system-specific libtool script.
   4.247 -
   4.248 -    --debug                enable verbose shell tracing
   4.249 -    --disable-shared       do not build shared libraries
   4.250 -    --disable-static       do not build static libraries
   4.251 -    --disable-fast-install do not optimize for fast installation
   4.252 -    --enable-dlopen        enable dlopen support
   4.253 -    --enable-win32-dll     enable building dlls on win32 hosts
   4.254 -    --help                 display this help and exit
   4.255 -    --no-verify            do not verify that HOST is a valid host type
   4.256 --o, --output=FILE          specify the output file [default=$default_ofile]
   4.257 -    --quiet                same as \`--silent'
   4.258 -    --silent               do not print informational messages
   4.259 -    --srcdir=DIR           find \`config.guess' in DIR
   4.260 -    --version              output version information and exit
   4.261 -    --with-gcc             assume that the GNU C compiler will be used
   4.262 -    --with-gnu-ld          assume that the C compiler uses the GNU linker
   4.263 -    --disable-lock         disable file locking
   4.264 -    --cache-file=FILE      configure cache file
   4.265 -
   4.266 -LTMAIN is the \`ltmain.sh' shell script fragment or \`ltmain.c' program
   4.267 -that provides basic libtool functionality.
   4.268 -
   4.269 -HOST is the canonical host system name [default=guessed].
   4.270 -EOM
   4.271 -  exit 0
   4.272 -  ;;
   4.273 -
   4.274 -  --debug)
   4.275 -    echo "$progname: enabling shell trace mode"
   4.276 -    set -x
   4.277 -    ;;
   4.278 -
   4.279 -  --disable-shared) enable_shared=no ;;
   4.280 -
   4.281 -  --disable-static) enable_static=no ;;
   4.282 -
   4.283 -  --disable-fast-install) enable_fast_install=no ;;
   4.284 -
   4.285 -  --enable-dlopen) enable_dlopen=yes ;;
   4.286 -
   4.287 -  --enable-win32-dll) enable_win32_dll=yes ;;
   4.288 -
   4.289 -  --quiet | --silent) silent=yes ;;
   4.290 -
   4.291 -  --srcdir) prev=srcdir ;;
   4.292 -  --srcdir=*) srcdir="$optarg" ;;
   4.293 -
   4.294 -  --no-verify) verify_host=no ;;
   4.295 -
   4.296 -  --output | -o) prev=ofile ;;
   4.297 -  --output=*) ofile="$optarg" ;;
   4.298 -
   4.299 -  --version) echo "$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP"; exit 0 ;;
   4.300 -
   4.301 -  --with-gcc) with_gcc=yes ;;
   4.302 -  --with-gnu-ld) with_gnu_ld=yes ;;
   4.303 -
   4.304 -  --disable-lock) need_locks=no ;;
   4.305 -
   4.306 -  --cache-file=*) cache_file="$optarg" ;;
   4.307 -
   4.308 -  -*)
   4.309 -    echo "$progname: unrecognized option \`$option'" 1>&2
   4.310 -    echo "$help" 1>&2
   4.311 -    exit 1
   4.312 -    ;;
   4.313 -
   4.314 -  *)
   4.315 -    if test -z "$ltmain"; then
   4.316 -      ltmain="$option"
   4.317 -    elif test -z "$host"; then
   4.318 -# This generates an unnecessary warning for sparc-sun-solaris4.1.3_U1
   4.319 -#      if test -n "`echo $option| sed 's/[-a-z0-9.]//g'`"; then
   4.320 -#        echo "$progname: warning \`$option' is not a valid host type" 1>&2
   4.321 -#      fi
   4.322 -      host="$option"
   4.323 -    else
   4.324 -      echo "$progname: too many arguments" 1>&2
   4.325 -      echo "$help" 1>&2
   4.326 -      exit 1
   4.327 -    fi ;;
   4.328 -  esac
   4.329 -done
   4.330 -
   4.331 -if test -z "$ltmain"; then
   4.332 -  echo "$progname: you must specify a LTMAIN file" 1>&2
   4.333 -  echo "$help" 1>&2
   4.334 -  exit 1
   4.335 -fi
   4.336 -
   4.337 -if test ! -f "$ltmain"; then
   4.338 -  echo "$progname: \`$ltmain' does not exist" 1>&2
   4.339 -  echo "$help" 1>&2
   4.340 -  exit 1
   4.341 -fi
   4.342 -
   4.343 -# Quote any args containing shell metacharacters.
   4.344 -ltconfig_args=
   4.345 -for arg
   4.346 -do
   4.347 -  case "$arg" in
   4.348 -  *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
   4.349 -  ltconfig_args="$ltconfig_args '$arg'" ;;
   4.350 -  *) ltconfig_args="$ltconfig_args $arg" ;;
   4.351 -  esac
   4.352 -done
   4.353 -
   4.354 -# A relevant subset of AC_INIT.
   4.355 -
   4.356 -# File descriptor usage:
   4.357 -# 0 standard input
   4.358 -# 1 file creation
   4.359 -# 2 errors and warnings
   4.360 -# 3 some systems may open it to /dev/tty
   4.361 -# 4 used on the Kubota Titan
   4.362 -# 5 compiler messages saved in config.log
   4.363 -# 6 checking for... messages and results
   4.364 -if test "$silent" = yes; then
   4.365 -  exec 6>/dev/null
   4.366 -else
   4.367 -  exec 6>&1
   4.368 -fi
   4.369 -exec 5>>./config.log
   4.370 -
   4.371 -# NLS nuisances.
   4.372 -# Only set LANG and LC_ALL to C if already set.
   4.373 -# These must not be set unconditionally because not all systems understand
   4.374 -# e.g. LANG=C (notably SCO).
   4.375 -if test "X${LC_ALL+set}" = Xset; then LC_ALL=C; export LC_ALL; fi
   4.376 -if test "X${LANG+set}"   = Xset; then LANG=C;   export LANG;   fi
   4.377 -
   4.378 -if test -n "$cache_file" && test -r "$cache_file"; then
   4.379 -  echo "loading cache $cache_file within ltconfig"
   4.380 -  . $cache_file
   4.381 -fi
   4.382 -
   4.383 -if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
   4.384 -  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
   4.385 -  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
   4.386 -    ac_n= ac_c='
   4.387 -' ac_t='	'
   4.388 -  else
   4.389 -    ac_n=-n ac_c= ac_t=
   4.390 -  fi
   4.391 -else
   4.392 -  ac_n= ac_c='\c' ac_t=
   4.393 -fi
   4.394 -
   4.395 -if test -z "$srcdir"; then
   4.396 -  # Assume the source directory is the same one as the path to LTMAIN.
   4.397 -  srcdir=`$echo "X$ltmain" | $Xsed -e 's%/[^/]*$%%'`
   4.398 -  test "$srcdir" = "$ltmain" && srcdir=.
   4.399 -fi
   4.400 -
   4.401 -trap "$rm conftest*; exit 1" 1 2 15
   4.402 -if test "$verify_host" = yes; then
   4.403 -  # Check for config.guess and config.sub.
   4.404 -  ac_aux_dir=
   4.405 -  for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
   4.406 -    if test -f $ac_dir/config.guess; then
   4.407 -      ac_aux_dir=$ac_dir
   4.408 -      break
   4.409 -    fi
   4.410 -  done
   4.411 -  if test -z "$ac_aux_dir"; then
   4.412 -    echo "$progname: cannot find config.guess in $srcdir $srcdir/.. $srcdir/../.." 1>&2
   4.413 -    echo "$help" 1>&2
   4.414 -    exit 1
   4.415 -  fi
   4.416 -  ac_config_guess=$ac_aux_dir/config.guess
   4.417 -  ac_config_sub=$ac_aux_dir/config.sub
   4.418 -
   4.419 -  # Make sure we can run config.sub.
   4.420 -  if $SHELL $ac_config_sub sun4 >/dev/null 2>&1; then :
   4.421 -  else
   4.422 -    echo "$progname: cannot run $ac_config_sub" 1>&2
   4.423 -    echo "$help" 1>&2
   4.424 -    exit 1
   4.425 -  fi
   4.426 -
   4.427 -  echo $ac_n "checking host system type""... $ac_c" 1>&6
   4.428 -
   4.429 -  host_alias=$host
   4.430 -  case "$host_alias" in
   4.431 -  "")
   4.432 -    if host_alias=`$SHELL $ac_config_guess`; then :
   4.433 -    else
   4.434 -      echo "$progname: cannot guess host type; you must specify one" 1>&2
   4.435 -      echo "$help" 1>&2
   4.436 -      exit 1
   4.437 -    fi ;;
   4.438 -  esac
   4.439 -  host=`$SHELL $ac_config_sub $host_alias`
   4.440 -  echo "$ac_t$host" 1>&6
   4.441 -
   4.442 -  # Make sure the host verified.
   4.443 -  test -z "$host" && exit 1
   4.444 -
   4.445 -elif test -z "$host"; then
   4.446 -  echo "$progname: you must specify a host type if you use \`--no-verify'" 1>&2
   4.447 -  echo "$help" 1>&2
   4.448 -  exit 1
   4.449 -else
   4.450 -  host_alias=$host
   4.451 -fi
   4.452 -
   4.453 -# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
   4.454 -case "$host_os" in
   4.455 -linux-gnu*) ;;
   4.456 -linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
   4.457 -esac
   4.458 -
   4.459 -host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
   4.460 -host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
   4.461 -host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
   4.462 -
   4.463 -case "$host_os" in
   4.464 -aix3*)
   4.465 -  # AIX sometimes has problems with the GCC collect2 program.  For some
   4.466 -  # reason, if we set the COLLECT_NAMES environment variable, the problems
   4.467 -  # vanish in a puff of smoke.
   4.468 -  if test "X${COLLECT_NAMES+set}" != Xset; then
   4.469 -    COLLECT_NAMES=
   4.470 -    export COLLECT_NAMES
   4.471 -  fi
   4.472 -  ;;
   4.473 -esac
   4.474 -
   4.475 -# Determine commands to create old-style static archives.
   4.476 -old_archive_cmds='$AR cru $oldlib$oldobjs'
   4.477 -old_postinstall_cmds='chmod 644 $oldlib'
   4.478 -old_postuninstall_cmds=
   4.479 -
   4.480 -# Set a sane default for `AR'.
   4.481 -test -z "$AR" && AR=ar
   4.482 -
   4.483 -# Set a sane default for `OBJDUMP'.
   4.484 -test -z "$OBJDUMP" && OBJDUMP=objdump
   4.485 -
   4.486 -# If RANLIB is not set, then run the test.
   4.487 -if test "${RANLIB+set}" != "set"; then
   4.488 -  result=no
   4.489 -
   4.490 -  echo $ac_n "checking for ranlib... $ac_c" 1>&6
   4.491 -  IFS="${IFS= 	}"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
   4.492 -  for dir in $PATH; do
   4.493 -    test -z "$dir" && dir=.
   4.494 -    if test -f $dir/ranlib || test -f $dir/ranlib$ac_exeext; then
   4.495 -      RANLIB="ranlib"
   4.496 -      result="ranlib"
   4.497 -      break
   4.498 -    fi
   4.499 -  done
   4.500 -  IFS="$save_ifs"
   4.501 -
   4.502 -  echo "$ac_t$result" 1>&6
   4.503 -fi
   4.504 -
   4.505 -if test -n "$RANLIB"; then
   4.506 -  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
   4.507 -  case "$host_os" in
   4.508 -  openbsd*)
   4.509 -    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
   4.510 -  ;;
   4.511 -  *)
   4.512 -    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
   4.513 -  ;;
   4.514 -  esac
   4.515 -fi
   4.516 -
   4.517 -# Set sane defaults for `DLLTOOL', `OBJDUMP', and `AS', used on cygwin.
   4.518 -test -z "$DLLTOOL" && DLLTOOL=dlltool
   4.519 -test -z "$OBJDUMP" && OBJDUMP=objdump
   4.520 -test -z "$AS" && AS=as
   4.521 -
   4.522 -# Check to see if we are using GCC.
   4.523 -if test "$with_gcc" != yes || test -z "$CC"; then
   4.524 -  # If CC is not set, then try to find GCC or a usable CC.
   4.525 -  if test -z "$CC"; then
   4.526 -    echo $ac_n "checking for gcc... $ac_c" 1>&6
   4.527 -    IFS="${IFS= 	}"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
   4.528 -    for dir in $PATH; do
   4.529 -      test -z "$dir" && dir=.
   4.530 -      if test -f $dir/gcc || test -f $dir/gcc$ac_exeext; then
   4.531 -	CC="gcc"
   4.532 -	break
   4.533 -      fi
   4.534 -    done
   4.535 -    IFS="$save_ifs"
   4.536 -
   4.537 -    if test -n "$CC"; then
   4.538 -      echo "$ac_t$CC" 1>&6
   4.539 -    else
   4.540 -      echo "$ac_t"no 1>&6
   4.541 -    fi
   4.542 -  fi
   4.543 -
   4.544 -  # Not "gcc", so try "cc", rejecting "/usr/ucb/cc".
   4.545 -  if test -z "$CC"; then
   4.546 -    echo $ac_n "checking for cc... $ac_c" 1>&6
   4.547 -    IFS="${IFS= 	}"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
   4.548 -    cc_rejected=no
   4.549 -    for dir in $PATH; do
   4.550 -      test -z "$dir" && dir=.
   4.551 -      if test -f $dir/cc || test -f $dir/cc$ac_exeext; then
   4.552 -	if test "$dir/cc" = "/usr/ucb/cc"; then
   4.553 -	  cc_rejected=yes
   4.554 -	  continue
   4.555 -	fi
   4.556 -	CC="cc"
   4.557 -	break
   4.558 -      fi
   4.559 -    done
   4.560 -    IFS="$save_ifs"
   4.561 -    if test $cc_rejected = yes; then
   4.562 -      # We found a bogon in the path, so make sure we never use it.
   4.563 -      set dummy $CC
   4.564 -      shift
   4.565 -      if test $# -gt 0; then
   4.566 -	# We chose a different compiler from the bogus one.
   4.567 -	# However, it has the same name, so the bogon will be chosen
   4.568 -	# first if we set CC to just the name; use the full file name.
   4.569 -	shift
   4.570 -	set dummy "$dir/cc" "$@"
   4.571 -	shift
   4.572 -	CC="$@"
   4.573 -      fi
   4.574 -    fi
   4.575 -
   4.576 -    if test -n "$CC"; then
   4.577 -      echo "$ac_t$CC" 1>&6
   4.578 -    else
   4.579 -      echo "$ac_t"no 1>&6
   4.580 -    fi
   4.581 -
   4.582 -    if test -z "$CC"; then
   4.583 -      echo "$progname: error: no acceptable cc found in \$PATH" 1>&2
   4.584 -      exit 1
   4.585 -    fi
   4.586 -  fi
   4.587 -
   4.588 -  # Now see if the compiler is really GCC.
   4.589 -  with_gcc=no
   4.590 -  echo $ac_n "checking whether we are using GNU C... $ac_c" 1>&6
   4.591 -  echo "$progname:581: checking whether we are using GNU C" >&5
   4.592 -
   4.593 -  $rm conftest.c
   4.594 -  cat > conftest.c <<EOF
   4.595 -#ifdef __GNUC__
   4.596 -  yes;
   4.597 -#endif
   4.598 -EOF
   4.599 -  if { ac_try='${CC-cc} -E conftest.c'; { (eval echo $progname:589: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
   4.600 -    with_gcc=yes
   4.601 -  fi
   4.602 -  $rm conftest.c
   4.603 -  echo "$ac_t$with_gcc" 1>&6
   4.604 -fi
   4.605 -
   4.606 -# Allow CC to be a program name with arguments.
   4.607 -set dummy $CC
   4.608 -compiler="$2"
   4.609 -
   4.610 -echo $ac_n "checking for object suffix... $ac_c" 1>&6
   4.611 -$rm conftest*
   4.612 -echo 'int i = 1;' > conftest.c
   4.613 -echo "$progname:603: checking for object suffix" >& 5
   4.614 -if { (eval echo $progname:604: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>conftest.err; }; then
   4.615 -  # Append any warnings to the config.log.
   4.616 -  cat conftest.err 1>&5
   4.617 -
   4.618 -  for ac_file in conftest.*; do
   4.619 -    case $ac_file in
   4.620 -    *.c) ;;
   4.621 -    *) objext=`echo $ac_file | sed -e s/conftest.//` ;;
   4.622 -    esac
   4.623 -  done
   4.624 -else
   4.625 -  cat conftest.err 1>&5
   4.626 -  echo "$progname: failed program was:" >&5
   4.627 -  cat conftest.c >&5
   4.628 -fi
   4.629 -$rm conftest*
   4.630 -echo "$ac_t$objext" 1>&6
   4.631 -
   4.632 -echo $ac_n "checking for executable suffix... $ac_c" 1>&6
   4.633 -if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
   4.634 -  echo $ac_n "(cached) $ac_c" 1>&6
   4.635 -else
   4.636 -  ac_cv_exeext="no"
   4.637 -  $rm conftest*
   4.638 -  echo 'main () { return 0; }' > conftest.c
   4.639 -  echo "$progname:629: checking for executable suffix" >& 5
   4.640 -  if { (eval echo $progname:630: \"$ac_link\") 1>&5; (eval $ac_link) 2>conftest.err; }; then
   4.641 -    # Append any warnings to the config.log.
   4.642 -    cat conftest.err 1>&5
   4.643 -
   4.644 -    for ac_file in conftest.*; do
   4.645 -      case $ac_file in
   4.646 -      *.c | *.err | *.$objext ) ;;
   4.647 -      *) ac_cv_exeext=.`echo $ac_file | sed -e s/conftest.//` ;;
   4.648 -      esac
   4.649 -    done
   4.650 -  else
   4.651 -    cat conftest.err 1>&5
   4.652 -    echo "$progname: failed program was:" >&5
   4.653 -    cat conftest.c >&5
   4.654 -  fi
   4.655 -  $rm conftest*
   4.656 -fi
   4.657 -if test "X$ac_cv_exeext" = Xno; then
   4.658 -  exeext=""
   4.659 -else
   4.660 -  exeext="$ac_cv_exeext"
   4.661 -fi
   4.662 -echo "$ac_t$ac_cv_exeext" 1>&6
   4.663 -
   4.664 -echo $ac_n "checking for $compiler option to produce PIC... $ac_c" 1>&6
   4.665 -pic_flag=
   4.666 -special_shlib_compile_flags=
   4.667 -wl=
   4.668 -link_static_flag=
   4.669 -no_builtin_flag=
   4.670 -
   4.671 -if test "$with_gcc" = yes; then
   4.672 -  wl='-Wl,'
   4.673 -  link_static_flag='-static'
   4.674 -
   4.675 -  case "$host_os" in
   4.676 -  beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
   4.677 -    # PIC is the default for these OSes.
   4.678 -    ;;
   4.679 -  aix*)
   4.680 -    # Below there is a dirty hack to force normal static linking with -ldl
   4.681 -    # The problem is because libdl dynamically linked with both libc and
   4.682 -    # libC (AIX C++ library), which obviously doesn't included in libraries
   4.683 -    # list by gcc. This cause undefined symbols with -static flags.
   4.684 -    # This hack allows C programs to be linked with "-static -ldl", but
   4.685 -    # we not sure about C++ programs.
   4.686 -    link_static_flag="$link_static_flag ${wl}-lC"
   4.687 -    ;;
   4.688 -  cygwin* | mingw* | os2*)
   4.689 -    # We can build DLLs from non-PIC.
   4.690 -    ;;
   4.691 -  darwin* | rhapsody*)
   4.692 -    # PIC is the default on this platform
   4.693 -    # Common symbols not allowed in MH_DYLIB files
   4.694 -    pic_flag='-fno-common'
   4.695 -    ;;
   4.696 -  amigaos*)
   4.697 -    # FIXME: we need at least 68020 code to build shared libraries, but
   4.698 -    # adding the `-m68020' flag to GCC prevents building anything better,
   4.699 -    # like `-m68040'.
   4.700 -    pic_flag='-m68020 -resident32 -malways-restore-a4'
   4.701 -    ;;
   4.702 -  sysv4*MP*)
   4.703 -    if test -d /usr/nec; then
   4.704 -       pic_flag=-Kconform_pic
   4.705 -    fi
   4.706 -    ;;
   4.707 -  *)
   4.708 -    pic_flag='-fPIC'
   4.709 -    ;;
   4.710 -  esac
   4.711 -else
   4.712 -  # PORTME Check for PIC flags for the system compiler.
   4.713 -  case "$host_os" in
   4.714 -  aix3* | aix4*)
   4.715 -    # All AIX code is PIC.
   4.716 -    link_static_flag='-bnso -bI:/lib/syscalls.exp'
   4.717 -    ;;
   4.718 -
   4.719 -  hpux9* | hpux10* | hpux11*)
   4.720 -    # Is there a better link_static_flag that works with the bundled CC?
   4.721 -    wl='-Wl,'
   4.722 -    link_static_flag="${wl}-a ${wl}archive"
   4.723 -    pic_flag='+Z'
   4.724 -    ;;
   4.725 -
   4.726 -  irix5* | irix6*)
   4.727 -    wl='-Wl,'
   4.728 -    link_static_flag='-non_shared'
   4.729 -    # PIC (with -KPIC) is the default.
   4.730 -    ;;
   4.731 -
   4.732 -  cygwin* | mingw* | os2*)
   4.733 -    # We can build DLLs from non-PIC.
   4.734 -    ;;
   4.735 -
   4.736 -  osf3* | osf4* | osf5*)
   4.737 -    # All OSF/1 code is PIC.
   4.738 -    wl='-Wl,'
   4.739 -    link_static_flag='-non_shared'
   4.740 -    ;;
   4.741 -
   4.742 -  sco3.2v5*)
   4.743 -    pic_flag='-Kpic'
   4.744 -    link_static_flag='-dn'
   4.745 -    special_shlib_compile_flags='-belf'
   4.746 -    ;;
   4.747 -
   4.748 -  solaris*)
   4.749 -    pic_flag='-KPIC'
   4.750 -    link_static_flag='-Bstatic'
   4.751 -    wl='-Wl,'
   4.752 -    ;;
   4.753 -
   4.754 -  sunos4*)
   4.755 -    pic_flag='-PIC'
   4.756 -    link_static_flag='-Bstatic'
   4.757 -    wl='-Qoption ld '
   4.758 -    ;;
   4.759 -
   4.760 -  sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
   4.761 -    pic_flag='-KPIC'
   4.762 -    link_static_flag='-Bstatic'
   4.763 -    wl='-Wl,'
   4.764 -    ;;
   4.765 -
   4.766 -  uts4*)
   4.767 -    pic_flag='-pic'
   4.768 -    link_static_flag='-Bstatic'
   4.769 -    ;;
   4.770 -  sysv4*MP*)
   4.771 -    if test -d /usr/nec ;then
   4.772 -      pic_flag='-Kconform_pic'
   4.773 -      link_static_flag='-Bstatic'
   4.774 -    fi
   4.775 -    ;;
   4.776 -  *)
   4.777 -    can_build_shared=no
   4.778 -    ;;
   4.779 -  esac
   4.780 -fi
   4.781 -
   4.782 -if test -n "$pic_flag"; then
   4.783 -  echo "$ac_t$pic_flag" 1>&6
   4.784 -
   4.785 -  # Check to make sure the pic_flag actually works.
   4.786 -  echo $ac_n "checking if $compiler PIC flag $pic_flag works... $ac_c" 1>&6
   4.787 -  $rm conftest*
   4.788 -  echo "int some_variable = 0;" > conftest.c
   4.789 -  save_CFLAGS="$CFLAGS"
   4.790 -  CFLAGS="$CFLAGS $pic_flag -DPIC"
   4.791 -  echo "$progname:776: checking if $compiler PIC flag $pic_flag works" >&5
   4.792 -  if { (eval echo $progname:777: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>conftest.err; } && test -s conftest.$objext; then
   4.793 -    # Append any warnings to the config.log.
   4.794 -    cat conftest.err 1>&5
   4.795 -    
   4.796 -    case "$host_os" in
   4.797 -    hpux9* | hpux10* | hpux11*)
   4.798 -      # On HP-UX, both CC and GCC only warn that PIC is supported... then they
   4.799 -      # create non-PIC objects.  So, if there were any warnings, we assume that
   4.800 -      # PIC is not supported.
   4.801 -      if test -s conftest.err; then
   4.802 -	echo "$ac_t"no 1>&6
   4.803 -	can_build_shared=no
   4.804 -	pic_flag=
   4.805 -      else
   4.806 -	echo "$ac_t"yes 1>&6
   4.807 -	pic_flag=" $pic_flag"
   4.808 -      fi
   4.809 -      ;;
   4.810 -    *)
   4.811 -      echo "$ac_t"yes 1>&6
   4.812 -      pic_flag=" $pic_flag"
   4.813 -      ;;
   4.814 -    esac
   4.815 -  else
   4.816 -    # Append any errors to the config.log.
   4.817 -    cat conftest.err 1>&5
   4.818 -    can_build_shared=no
   4.819 -    pic_flag=
   4.820 -    echo "$ac_t"no 1>&6
   4.821 -  fi
   4.822 -  CFLAGS="$save_CFLAGS"
   4.823 -  $rm conftest*
   4.824 -else
   4.825 -  echo "$ac_t"none 1>&6
   4.826 -fi
   4.827 -
   4.828 -# Check to see if options -o and -c are simultaneously supported by compiler
   4.829 -echo $ac_n "checking if $compiler supports -c -o file.o... $ac_c" 1>&6
   4.830 -$rm -r conftest 2>/dev/null
   4.831 -mkdir conftest
   4.832 -cd conftest
   4.833 -$rm conftest*
   4.834 -echo "int some_variable = 0;" > conftest.c
   4.835 -mkdir out
   4.836 -# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
   4.837 -# that will create temporary files in the current directory regardless of
   4.838 -# the output directory.  Thus, making CWD read-only will cause this test
   4.839 -# to fail, enabling locking or at least warning the user not to do parallel
   4.840 -# builds.
   4.841 -chmod -w .
   4.842 -save_CFLAGS="$CFLAGS"
   4.843 -CFLAGS="$CFLAGS -o out/conftest2.o"
   4.844 -echo "$progname:829: checking if $compiler supports -c -o file.o" >&5
   4.845 -if { (eval echo $progname:830: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.o; then
   4.846 -
   4.847 -  # The compiler can only warn and ignore the option if not recognized
   4.848 -  # So say no if there are warnings
   4.849 -    if test -s out/conftest.err; then
   4.850 -      echo "$ac_t"no 1>&6
   4.851 -      compiler_c_o=no
   4.852 -    else
   4.853 -      echo "$ac_t"yes 1>&6
   4.854 -      compiler_c_o=yes
   4.855 -    fi
   4.856 -else
   4.857 -  # Append any errors to the config.log.
   4.858 -  cat out/conftest.err 1>&5
   4.859 -  compiler_c_o=no
   4.860 -  echo "$ac_t"no 1>&6
   4.861 -fi
   4.862 -CFLAGS="$save_CFLAGS"
   4.863 -chmod u+w .
   4.864 -$rm conftest* out/*
   4.865 -rmdir out
   4.866 -cd ..
   4.867 -rmdir conftest
   4.868 -$rm -r conftest 2>/dev/null
   4.869 -
   4.870 -if test x"$compiler_c_o" = x"yes"; then
   4.871 -  # Check to see if we can write to a .lo
   4.872 -  echo $ac_n "checking if $compiler supports -c -o file.lo... $ac_c" 1>&6
   4.873 -  $rm conftest*
   4.874 -  echo "int some_variable = 0;" > conftest.c
   4.875 -  save_CFLAGS="$CFLAGS"
   4.876 -  CFLAGS="$CFLAGS -c -o conftest.lo"
   4.877 -  echo "$progname:862: checking if $compiler supports -c -o file.lo" >&5
   4.878 -if { (eval echo $progname:863: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>conftest.err; } && test -s conftest.lo; then
   4.879 -
   4.880 -    # The compiler can only warn and ignore the option if not recognized
   4.881 -    # So say no if there are warnings
   4.882 -      if test -s conftest.err; then
   4.883 -	echo "$ac_t"no 1>&6
   4.884 -	compiler_o_lo=no
   4.885 -      else
   4.886 -	echo "$ac_t"yes 1>&6
   4.887 -	compiler_o_lo=yes
   4.888 -      fi
   4.889 -  else
   4.890 -    # Append any errors to the config.log.
   4.891 -    cat conftest.err 1>&5
   4.892 -    compiler_o_lo=no
   4.893 -    echo "$ac_t"no 1>&6
   4.894 -  fi
   4.895 -  CFLAGS="$save_CFLAGS"
   4.896 -  $rm conftest*
   4.897 -else
   4.898 -  compiler_o_lo=no
   4.899 -fi
   4.900 -
   4.901 -# Check to see if we can do hard links to lock some files if needed
   4.902 -hard_links="nottested"
   4.903 -if test "$compiler_c_o" = no && test "$need_locks" != no; then
   4.904 -  # do not overwrite the value of need_locks provided by the user
   4.905 -  echo $ac_n "checking if we can lock with hard links... $ac_c" 1>&6
   4.906 -  hard_links=yes
   4.907 -  $rm conftest*
   4.908 -  ln conftest.a conftest.b 2>/dev/null && hard_links=no
   4.909 -  touch conftest.a
   4.910 -  ln conftest.a conftest.b 2>&5 || hard_links=no
   4.911 -  ln conftest.a conftest.b 2>/dev/null && hard_links=no
   4.912 -  echo "$ac_t$hard_links" 1>&6
   4.913 -  $rm conftest*
   4.914 -  if test "$hard_links" = no; then
   4.915 -    echo "*** WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2
   4.916 -    need_locks=warn
   4.917 -  fi
   4.918 -else
   4.919 -  need_locks=no
   4.920 -fi
   4.921 -
   4.922 -if test "$with_gcc" = yes; then
   4.923 -  # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
   4.924 -  echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions ... $ac_c" 1>&6
   4.925 -  $rm conftest*
   4.926 -  echo "int some_variable = 0;" > conftest.c
   4.927 -  save_CFLAGS="$CFLAGS"
   4.928 -  CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.c"
   4.929 -  echo "$progname:914: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
   4.930 -  if { (eval echo $progname:915: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>conftest.err; } && test -s conftest.o; then
   4.931 -
   4.932 -    # The compiler can only warn and ignore the option if not recognized
   4.933 -    # So say no if there are warnings
   4.934 -      if test -s conftest.err; then
   4.935 -	echo "$ac_t"no 1>&6
   4.936 -	compiler_rtti_exceptions=no
   4.937 -      else
   4.938 -	echo "$ac_t"yes 1>&6
   4.939 -	compiler_rtti_exceptions=yes
   4.940 -      fi
   4.941 -  else
   4.942 -    # Append any errors to the config.log.
   4.943 -    cat conftest.err 1>&5
   4.944 -    compiler_rtti_exceptions=no
   4.945 -    echo "$ac_t"no 1>&6
   4.946 -  fi
   4.947 -  CFLAGS="$save_CFLAGS"
   4.948 -  $rm conftest*
   4.949 -
   4.950 -  if test "$compiler_rtti_exceptions" = "yes"; then
   4.951 -    no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
   4.952 -  else
   4.953 -    no_builtin_flag=' -fno-builtin'
   4.954 -  fi
   4.955 -  
   4.956 -fi
   4.957 -
   4.958 -# Check for any special shared library compilation flags.
   4.959 -if test -n "$special_shlib_compile_flags"; then
   4.960 -  echo "$progname: warning: \`$CC' requires \`$special_shlib_compile_flags' to build shared libraries" 1>&2
   4.961 -  if echo "$old_CC $old_CFLAGS " | egrep -e "[ 	]$special_shlib_compile_flags[ 	]" >/dev/null; then :
   4.962 -  else
   4.963 -    echo "$progname: add \`$special_shlib_compile_flags' to the CC or CFLAGS env variable and reconfigure" 1>&2
   4.964 -    can_build_shared=no
   4.965 -  fi
   4.966 -fi
   4.967 -
   4.968 -echo $ac_n "checking if $compiler static flag $link_static_flag works... $ac_c" 1>&6
   4.969 -$rm conftest*
   4.970 -echo 'main(){return(0);}' > conftest.c
   4.971 -save_LDFLAGS="$LDFLAGS"
   4.972 -LDFLAGS="$LDFLAGS $link_static_flag"
   4.973 -echo "$progname:958: checking if $compiler static flag $link_static_flag works" >&5
   4.974 -if { (eval echo $progname:959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
   4.975 -  echo "$ac_t$link_static_flag" 1>&6
   4.976 -else
   4.977 -  echo "$ac_t"none 1>&6
   4.978 -  link_static_flag=
   4.979 -fi
   4.980 -LDFLAGS="$save_LDFLAGS"
   4.981 -$rm conftest*
   4.982 -
   4.983 -if test -z "$LN_S"; then
   4.984 -  # Check to see if we can use ln -s, or we need hard links.
   4.985 -  echo $ac_n "checking whether ln -s works... $ac_c" 1>&6
   4.986 -  $rm conftest.dat
   4.987 -  if ln -s X conftest.dat 2>/dev/null; then
   4.988 -    $rm conftest.dat
   4.989 -    LN_S="ln -s"
   4.990 -  else
   4.991 -    LN_S=ln
   4.992 -  fi
   4.993 -  if test "$LN_S" = "ln -s"; then
   4.994 -    echo "$ac_t"yes 1>&6
   4.995 -  else
   4.996 -    echo "$ac_t"no 1>&6
   4.997 -  fi
   4.998 -fi
   4.999 -
  4.1000 -# Make sure LD is an absolute path.
  4.1001 -if test -z "$LD"; then
  4.1002 -  ac_prog=ld
  4.1003 -  if test "$with_gcc" = yes; then
  4.1004 -    # Check if gcc -print-prog-name=ld gives a path.
  4.1005 -    echo $ac_n "checking for ld used by GCC... $ac_c" 1>&6
  4.1006 -    echo "$progname:991: checking for ld used by GCC" >&5
  4.1007 -    ac_prog=`($CC -print-prog-name=ld) 2>&5`
  4.1008 -    case "$ac_prog" in
  4.1009 -    # Accept absolute paths.
  4.1010 -    [\\/]* | [A-Za-z]:[\\/]*)
  4.1011 -      re_direlt='/[^/][^/]*/\.\./'
  4.1012 -      # Canonicalize the path of ld
  4.1013 -      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  4.1014 -      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  4.1015 -	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  4.1016 -      done
  4.1017 -      test -z "$LD" && LD="$ac_prog"
  4.1018 -      ;;
  4.1019 -    "")
  4.1020 -      # If it fails, then pretend we are not using GCC.
  4.1021 -      ac_prog=ld
  4.1022 -      ;;
  4.1023 -    *)
  4.1024 -      # If it is relative, then search for the first ld in PATH.
  4.1025 -      with_gnu_ld=unknown
  4.1026 -      ;;
  4.1027 -    esac
  4.1028 -  elif test "$with_gnu_ld" = yes; then
  4.1029 -    echo $ac_n "checking for GNU ld... $ac_c" 1>&6
  4.1030 -    echo "$progname:1015: checking for GNU ld" >&5
  4.1031 -  else
  4.1032 -    echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
  4.1033 -    echo "$progname:1018: checking for non-GNU ld" >&5
  4.1034 -  fi
  4.1035 -
  4.1036 -  if test -z "$LD"; then
  4.1037 -    IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
  4.1038 -    for ac_dir in $PATH; do
  4.1039 -      test -z "$ac_dir" && ac_dir=.
  4.1040 -      if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4.1041 -	LD="$ac_dir/$ac_prog"
  4.1042 -	# Check to see if the program is GNU ld.  I'd rather use --version,
  4.1043 -	# but apparently some GNU ld's only accept -v.
  4.1044 -	# Break only if it was the GNU/non-GNU ld that we prefer.
  4.1045 -	if "$LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
  4.1046 -	  test "$with_gnu_ld" != no && break
  4.1047 -	else
  4.1048 -	  test "$with_gnu_ld" != yes && break
  4.1049 -	fi
  4.1050 -      fi
  4.1051 -    done
  4.1052 -    IFS="$ac_save_ifs"
  4.1053 -  fi
  4.1054 -
  4.1055 -  if test -n "$LD"; then
  4.1056 -    echo "$ac_t$LD" 1>&6
  4.1057 -  else
  4.1058 -    echo "$ac_t"no 1>&6
  4.1059 -  fi
  4.1060 -
  4.1061 -  if test -z "$LD"; then
  4.1062 -    echo "$progname: error: no acceptable ld found in \$PATH" 1>&2
  4.1063 -    exit 1
  4.1064 -  fi
  4.1065 -fi
  4.1066 -
  4.1067 -# Check to see if it really is or is not GNU ld.
  4.1068 -echo $ac_n "checking if the linker ($LD) is GNU ld... $ac_c" 1>&6
  4.1069 -# I'd rather use --version here, but apparently some GNU ld's only accept -v.
  4.1070 -if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
  4.1071 -  with_gnu_ld=yes
  4.1072 -else
  4.1073 -  with_gnu_ld=no
  4.1074 -fi
  4.1075 -echo "$ac_t$with_gnu_ld" 1>&6
  4.1076 -
  4.1077 -# See if the linker supports building shared libraries.
  4.1078 -echo $ac_n "checking whether the linker ($LD) supports shared libraries... $ac_c" 1>&6
  4.1079 -
  4.1080 -allow_undefined_flag=
  4.1081 -no_undefined_flag=
  4.1082 -need_lib_prefix=unknown
  4.1083 -need_version=unknown
  4.1084 -# when you set need_version to no, make sure it does not cause -set_version
  4.1085 -# flags to be left without arguments
  4.1086 -archive_cmds=
  4.1087 -archive_expsym_cmds=
  4.1088 -old_archive_from_new_cmds=
  4.1089 -export_dynamic_flag_spec=
  4.1090 -whole_archive_flag_spec=
  4.1091 -thread_safe_flag_spec=
  4.1092 -hardcode_libdir_flag_spec=
  4.1093 -hardcode_libdir_separator=
  4.1094 -hardcode_direct=no
  4.1095 -hardcode_minus_L=no
  4.1096 -hardcode_shlibpath_var=unsupported
  4.1097 -runpath_var=
  4.1098 -always_export_symbols=no
  4.1099 -export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
  4.1100 -# include_expsyms should be a list of space-separated symbols to be *always*
  4.1101 -# included in the symbol list
  4.1102 -include_expsyms=
  4.1103 -# exclude_expsyms can be an egrep regular expression of symbols to exclude
  4.1104 -# it will be wrapped by ` (' and `)$', so one must not match beginning or
  4.1105 -# end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  4.1106 -# as well as any symbol that contains `d'.
  4.1107 -exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
  4.1108 -# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  4.1109 -# platforms (ab)use it in PIC code, but their linkers get confused if
  4.1110 -# the symbol is explicitly referenced.  Since portable code cannot
  4.1111 -# rely on this symbol name, it's probably fine to never include it in
  4.1112 -# preloaded symbol tables.
  4.1113 -
  4.1114 -case "$host_os" in
  4.1115 -cygwin* | mingw*)
  4.1116 -  # FIXME: the MSVC++ port hasn't been tested in a loooong time
  4.1117 -  # When not using gcc, we currently assume that we are using
  4.1118 -  # Microsoft Visual C++.
  4.1119 -  if test "$with_gcc" != yes; then
  4.1120 -    with_gnu_ld=no
  4.1121 -  fi
  4.1122 -  ;;
  4.1123 -openbsd*)
  4.1124 -  with_gnu_ld=no
  4.1125 -  ;;
  4.1126 -
  4.1127 -esac
  4.1128 -
  4.1129 -ld_shlibs=yes
  4.1130 -if test "$with_gnu_ld" = yes; then
  4.1131 -  # If archive_cmds runs LD, not CC, wlarc should be empty
  4.1132 -  wlarc='${wl}'
  4.1133 -
  4.1134 -  # See if GNU ld supports shared libraries.
  4.1135 -  case "$host_os" in
  4.1136 -  aix3* | aix4*)
  4.1137 -    # On AIX, the GNU linker is very broken
  4.1138 -    ld_shlibs=no
  4.1139 -    cat <<EOF 1>&2
  4.1140 -
  4.1141 -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  4.1142 -*** to be unable to reliably create shared libraries on AIX.
  4.1143 -*** Therefore, libtool is disabling shared libraries support.  If you
  4.1144 -*** really care for shared libraries, you may want to modify your PATH
  4.1145 -*** so that a non-GNU linker is found, and then restart.
  4.1146 -
  4.1147 -EOF
  4.1148 -    ;;
  4.1149 -
  4.1150 -  amigaos*)
  4.1151 -    archive_cmds='$rm $objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $objdir/a2ixlibrary.data~$AR cru $lib $libobjs~$RANLIB $lib~(cd $objdir && a2ixlibrary -32)'
  4.1152 -    hardcode_libdir_flag_spec='-L$libdir'
  4.1153 -    hardcode_minus_L=yes
  4.1154 -
  4.1155 -    # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  4.1156 -    # that the semantics of dynamic libraries on AmigaOS, at least up
  4.1157 -    # to version 4, is to share data among multiple programs linked
  4.1158 -    # with the same dynamic library.  Since this doesn't match the
  4.1159 -    # behavior of shared libraries on other platforms, we can use
  4.1160 -    # them.
  4.1161 -    ld_shlibs=no
  4.1162 -    ;;
  4.1163 -
  4.1164 -  beos*)
  4.1165 -    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
  4.1166 -      #allow_undefined_flag=unsupported
  4.1167 -      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  4.1168 -      # support --undefined.  This deserves some investigation.  FIXME
  4.1169 -      archive_cmds='$CC -nostart $libobjs $deplibs $linkopts ${wl}-soname $wl$soname -o $lib'
  4.1170 -    else
  4.1171 -      ld_shlibs=no
  4.1172 -    fi
  4.1173 -    ;;
  4.1174 -
  4.1175 -  cygwin* | mingw*)
  4.1176 -    # Special flag that tells Cygwin to use the native MSVC runtime
  4.1177 -    case "$host_os" in
  4.1178 -    cygwin*)
  4.1179 -      cygwin_use_msvcrt=true
  4.1180 -      ;;
  4.1181 -    esac
  4.1182 -    # hardcode_libdir_flag_spec is actually meaningless, as there is
  4.1183 -    # no search path for DLLs.
  4.1184 -    hardcode_libdir_flag_spec='-L$libdir'
  4.1185 -#    allow_undefined_flag=unsupported
  4.1186 -    always_export_symbols=yes
  4.1187 -
  4.1188 -    # Extract the symbol export list from an `--export-all' def file,
  4.1189 -    # then regenerate the def file from the symbol export list, so that
  4.1190 -    # the compiled dll only exports the symbol export list.
  4.1191 -    # Be careful not to strip the DATA tag left by newer dlltools.
  4.1192 -    if [ "$cygwin_use_msvcrt" = "true" ]; then
  4.1193 -      export_symbols_cmds='test -f $objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $0 > $objdir/$soname-ltdll.c~
  4.1194 -      test -f $objdir/$soname-ltdll.$objext || (cd $objdir && $CC -U__CYGWIN__ -U__CYGWIN32__ -c $soname-ltdll.c)~
  4.1195 -      $DLLTOOL --exclude-symbols _DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12 --output-def $objdir/$soname-def  $objdir/$soname-ltdll.$objext $libobjs $convenience~
  4.1196 -      sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $objdir/$soname-def > $export_symbols'
  4.1197 -    else
  4.1198 -      export_symbols_cmds='test -f $objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $0 > $objdir/$soname-ltdll.c~
  4.1199 -      test -f $objdir/$soname-ltdll.$objext || (cd $objdir && $CC -c $soname-ltdll.c)~
  4.1200 -      $DLLTOOL --exclude-symbols _DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12 --output-def $objdir/$soname-def  $objdir/$soname-ltdll.$objext $libobjs $convenience~
  4.1201 -      sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $objdir/$soname-def > $export_symbols'
  4.1202 -    fi
  4.1203 -
  4.1204 -    # If DATA tags from a recent dlltool are present, honour them!
  4.1205 -    if [ "$cygwin_use_msvcrt" = "true" ]; then
  4.1206 -      archive_expsym_cmds='echo EXPORTS > $objdir/$soname-def~
  4.1207 -      _lt_hint=1;
  4.1208 -      cat $export_symbols | while read symbol; do
  4.1209 -        set dummy \$symbol;
  4.1210 -        case \$# in
  4.1211 -          2) echo "	\$2 @ \$_lt_hint ; " >> $objdir/$soname-def;;
  4.1212 -          *) echo "     \$2 @ \$_lt_hint \$3 ; " >> $objdir/$soname-def;;
  4.1213 -        esac;
  4.1214 -	_lt_hint=`expr 1 + \$_lt_hint`;
  4.1215 -      done~
  4.1216 -      test -f $objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $0 > $objdir/$soname-ltdll.c~
  4.1217 -      test -f $objdir/$soname-ltdll.$objext || (cd $objdir && $CC -U__CYGWIN__ -U__CYGWIN32__ -c $soname-ltdll.c)~
  4.1218 -      $CC -Wl,--base-file,$objdir/$soname-base -Wl,--dll -nostartfiles -Wl,-e,_DllMain@12 -o $lib $objdir/$soname-ltdll.$objext $libobjs $deplibs $linkopts -L/usr/lib/mingw -mno-cygwin~
  4.1219 -      $DLLTOOL --dllname $soname --exclude-symbols _DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12 --def $objdir/$soname-def --base-file $objdir/$soname-base --output-exp $objdir/$soname-exp~
  4.1220 -      $CC -Wl,--base-file,$objdir/$soname-base $objdir/$soname-exp -Wl,--dll -nostartfiles -Wl,-e,_DllMain@12 -o $lib $objdir/$soname-ltdll.$objext $libobjs $deplibs $linkopts -L/usr/lib/mingw -mno-cygwin~
  4.1221 -      $DLLTOOL --dllname $soname --exclude-symbols _DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12 --def $objdir/$soname-def --base-file $objdir/$soname-base --output-exp $objdir/$soname-exp~
  4.1222 -      $CC $objdir/$soname-exp -Wl,--dll -nostartfiles -Wl,-e,_DllMain@12 -o $lib $objdir/$soname-ltdll.$objext $libobjs $deplibs $linkopts -L/usr/lib/mingw -mno-cygwin~
  4.1223 -      : strip_is_broken_with_dlls_on_win95B - strip $lib'
  4.1224 -    else
  4.1225 -      archive_expsym_cmds='echo EXPORTS > $objdir/$soname-def~
  4.1226 -      _lt_hint=1;
  4.1227 -      cat $export_symbols | while read symbol; do
  4.1228 -        set dummy \$symbol;
  4.1229 -        case \$# in
  4.1230 -          2) echo "	\$2 @ \$_lt_hint ; " >> $objdir/$soname-def;;
  4.1231 -          *) echo "     \$2 @ \$_lt_hint \$3 ; " >> $objdir/$soname-def;;
  4.1232 -        esac;
  4.1233 -	_lt_hint=`expr 1 + \$_lt_hint`;
  4.1234 -      done~
  4.1235 -      test -f $objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $0 > $objdir/$soname-ltdll.c~
  4.1236 -      test -f $objdir/$soname-ltdll.$objext || (cd $objdir && $CC -c $soname-ltdll.c)~
  4.1237 -      $CC -Wl,--base-file,$objdir/$soname-base -Wl,--dll -nostartfiles -Wl,-e,_DllMain@12 -o $lib $objdir/$soname-ltdll.$objext $libobjs $deplibs $linkopts~
  4.1238 -      $DLLTOOL --dllname $soname --exclude-symbols _DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12 --def $objdir/$soname-def --base-file $objdir/$soname-base --output-exp $objdir/$soname-exp~
  4.1239 -      $CC -Wl,--base-file,$objdir/$soname-base $objdir/$soname-exp -Wl,--dll -nostartfiles -Wl,-e,_DllMain@12 -o $lib $objdir/$soname-ltdll.$objext $libobjs $deplibs $linkopts~
  4.1240 -      $DLLTOOL --dllname $soname --exclude-symbols _DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12 --def $objdir/$soname-def --base-file $objdir/$soname-base --output-exp $objdir/$soname-exp~
  4.1241 -      $CC $objdir/$soname-exp -Wl,--dll -nostartfiles -Wl,-e,_DllMain@12 -o $lib $objdir/$soname-ltdll.$objext $libobjs $deplibs $linkopts~
  4.1242 -      : strip_is_broken_with_dlls_on_win95B - strip $lib'
  4.1243 -    fi
  4.1244 -    old_archive_from_new_cmds='$DLLTOOL --dllname $soname --def $objdir/$soname-def --output-lib $objdir/$libname.a'
  4.1245 -    ;;
  4.1246 -
  4.1247 -  netbsd*)
  4.1248 -    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  4.1249 -      archive_cmds='$CC -shared $libobjs $deplibs $linkopts ${wl}-soname $wl$soname -o $lib'
  4.1250 -      archive_expsym_cmds='$CC -shared $libobjs $deplibs $linkopts ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  4.1251 -    else
  4.1252 -      archive_cmds='$LD -Bshareable $libobjs $deplibs $linkopts -o $lib'
  4.1253 -      # can we support soname and/or expsyms with a.out? -oliva
  4.1254 -    fi
  4.1255 -    ;;
  4.1256 -
  4.1257 -  solaris* | sysv5*)
  4.1258 -    if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
  4.1259 -      ld_shlibs=no
  4.1260 -      cat <<EOF 1>&2
  4.1261 -
  4.1262 -*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  4.1263 -*** create shared libraries on Solaris systems.  Therefore, libtool
  4.1264 -*** is disabling shared libraries support.  We urge you to upgrade GNU
  4.1265 -*** binutils to release 2.9.1 or newer.  Another option is to modify
  4.1266 -*** your PATH or compiler configuration so that the native linker is
  4.1267 -*** used, and then restart.
  4.1268 -
  4.1269 -EOF
  4.1270 -    elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
  4.1271 -      archive_cmds='$CC -shared $libobjs $deplibs $linkopts ${wl}-soname $wl$soname -o $lib'
  4.1272 -      archive_expsym_cmds='$CC -shared $libobjs $deplibs $linkopts ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  4.1273 -    else
  4.1274 -      ld_shlibs=no
  4.1275 -    fi
  4.1276 -    ;;      
  4.1277 -
  4.1278 -  sunos4*)
  4.1279 -    archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linkopts'
  4.1280 -    wlarc=
  4.1281 -    hardcode_direct=yes
  4.1282 -    hardcode_shlibpath_var=no
  4.1283 -    ;;
  4.1284 -
  4.1285 -  *)
  4.1286 -    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
  4.1287 -      archive_cmds='$CC -shared $libobjs $deplibs $linkopts ${wl}-soname $wl$soname -o $lib'
  4.1288 -      archive_expsym_cmds='$CC -shared $libobjs $deplibs $linkopts ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  4.1289 -    else
  4.1290 -      ld_shlibs=no
  4.1291 -    fi
  4.1292 -    ;;
  4.1293 -  esac
  4.1294 -
  4.1295 -  if test "$ld_shlibs" = yes; then
  4.1296 -    runpath_var=LD_RUN_PATH
  4.1297 -    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
  4.1298 -    export_dynamic_flag_spec='${wl}--export-dynamic'
  4.1299 -    case $host_os in
  4.1300 -    cygwin* | mingw*)
  4.1301 -      # dlltool doesn't understand --whole-archive et. al.
  4.1302 -      whole_archive_flag_spec=
  4.1303 -      ;;
  4.1304 -    netbsd*)
  4.1305 -      whole_archive_flag_spec=
  4.1306 -      ;;
  4.1307 -    *)
  4.1308 -      # ancient GNU ld didn't support --whole-archive et. al.
  4.1309 -      if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
  4.1310 -        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  4.1311 -      else
  4.1312 -        whole_archive_flag_spec=
  4.1313 -      fi
  4.1314 -      ;;
  4.1315 -    esac
  4.1316 -  fi
  4.1317 -else
  4.1318 -  # PORTME fill in a description of your system's linker (not GNU ld)
  4.1319 -  case "$host_os" in
  4.1320 -  aix3*)
  4.1321 -    allow_undefined_flag=unsupported
  4.1322 -    always_export_symbols=yes
  4.1323 -    archive_expsym_cmds='$LD -o $objdir/$soname $libobjs $deplibs $linkopts -bE:$export_symbols -T512 -H512 -bM:SRE~$AR cru $lib $objdir/$soname'
  4.1324 -    # Note: this linker hardcodes the directories in LIBPATH if there
  4.1325 -    # are no directories specified by -L.
  4.1326 -    hardcode_minus_L=yes
  4.1327 -    if test "$with_gcc" = yes && test -z "$link_static_flag"; then
  4.1328 -      # Neither direct hardcoding nor static linking is supported with a
  4.1329 -      # broken collect2.
  4.1330 -      hardcode_direct=unsupported
  4.1331 -    fi
  4.1332 -    ;;
  4.1333 -
  4.1334 -  aix4*)
  4.1335 -    hardcode_libdir_flag_spec='${wl}-b ${wl}nolibpath ${wl}-b ${wl}libpath:$libdir:/usr/lib:/lib'
  4.1336 -    hardcode_libdir_separator=':'
  4.1337 -    if test "$with_gcc" = yes; then
  4.1338 -      collect2name=`${CC} -print-prog-name=collect2`
  4.1339 -      if test -f "$collect2name" && \
  4.1340 -	 strings "$collect2name" | grep resolve_lib_name >/dev/null
  4.1341 -      then
  4.1342 -	# We have reworked collect2
  4.1343 -	hardcode_direct=yes
  4.1344 -      else
  4.1345 -	# We have old collect2
  4.1346 -	hardcode_direct=unsupported
  4.1347 -	# It fails to find uninstalled libraries when the uninstalled
  4.1348 -	# path is not listed in the libpath.  Setting hardcode_minus_L
  4.1349 -	# to unsupported forces relinking
  4.1350 -	hardcode_minus_L=yes
  4.1351 -	hardcode_libdir_flag_spec='-L$libdir'
  4.1352 -	hardcode_libdir_separator=
  4.1353 -      fi
  4.1354 -      shared_flag='-shared'
  4.1355 -    else
  4.1356 -      shared_flag='${wl}-bM:SRE'
  4.1357 -      hardcode_direct=yes
  4.1358 -    fi
  4.1359 -    allow_undefined_flag=' ${wl}-berok'
  4.1360 -    archive_cmds="\$CC $shared_flag"' -o $objdir/$soname $libobjs $deplibs $linkopts ${wl}-bexpall ${wl}-bnoentry${allow_undefined_flag}'
  4.1361 -    archive_expsym_cmds="\$CC $shared_flag"' -o $objdir/$soname $libobjs $deplibs $linkopts ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}'
  4.1362 -    case "$host_os" in aix4.[01]|aix4.[01].*)
  4.1363 -      # According to Greg Wooledge, -bexpall is only supported from AIX 4.2 on
  4.1364 -      always_export_symbols=yes ;;
  4.1365 -    esac
  4.1366 -   ;;
  4.1367 -
  4.1368 -  amigaos*)
  4.1369 -    archive_cmds='$rm $objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $objdir/a2ixlibrary.data~$AR cru $lib $libobjs~$RANLIB $lib~(cd $objdir && a2ixlibrary -32)'
  4.1370 -    hardcode_libdir_flag_spec='-L$libdir'
  4.1371 -    hardcode_minus_L=yes
  4.1372 -    # see comment about different semantics on the GNU ld section
  4.1373 -    ld_shlibs=no
  4.1374 -    ;;
  4.1375 -
  4.1376 -  cygwin* | mingw*)
  4.1377 -    # When not using gcc, we currently assume that we are using
  4.1378 -    # Microsoft Visual C++.
  4.1379 -    # hardcode_libdir_flag_spec is actually meaningless, as there is
  4.1380 -    # no search path for DLLs.
  4.1381 -    hardcode_libdir_flag_spec=' '
  4.1382 -#    allow_undefined_flag=unsupported
  4.1383 -    # Tell ltmain to make .lib files, not .a files.
  4.1384 -    libext=lib
  4.1385 -    # FIXME: Setting linknames here is a bad hack.
  4.1386 -    archive_cmds='$CC -o $lib $libobjs $linkopts `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  4.1387 -    # The linker will automatically build a .lib file if we build a DLL.
  4.1388 -    old_archive_from_new_cmds='true'
  4.1389 -    # FIXME: Should let the user specify the lib program.
  4.1390 -    old_archive_cmds='lib /OUT:$oldlib$oldobjs'
  4.1391 -    fix_srcfile_path='`cygpath -w $srcfile`'
  4.1392 -    ;;
  4.1393 -
  4.1394 -  freebsd1*)
  4.1395 -    ld_shlibs=no
  4.1396 -    ;;
  4.1397 -
  4.1398 -  # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  4.1399 -  # support.  Future versions do this automatically, but an explicit c++rt0.o
  4.1400 -  # does not break anything, and helps significantly (at the cost of a little
  4.1401 -  # extra space).
  4.1402 -  freebsd2.2*)
  4.1403 -    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linkopts /usr/lib/c++rt0.o'
  4.1404 -    hardcode_libdir_flag_spec='-R$libdir'
  4.1405 -    hardcode_direct=yes
  4.1406 -    hardcode_shlibpath_var=no
  4.1407 -    ;;
  4.1408 -
  4.1409 -  # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  4.1410 -  freebsd2*)
  4.1411 -    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linkopts'
  4.1412 -    hardcode_direct=yes
  4.1413 -    hardcode_minus_L=yes
  4.1414 -    hardcode_shlibpath_var=no
  4.1415 -    ;;
  4.1416 -
  4.1417 -  # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  4.1418 -  freebsd*)
  4.1419 -    archive_cmds='$CC -shared -o $lib $libobjs $deplibs $linkopts'
  4.1420 -    hardcode_libdir_flag_spec='-R$libdir'
  4.1421 -    hardcode_direct=yes
  4.1422 -    hardcode_shlibpath_var=no
  4.1423 -    ;;
  4.1424 -
  4.1425 -  darwin* | rhapsody*)
  4.1426 -    case "$host_os" in
  4.1427 -    rhapsody* | darwin1.[012])
  4.1428 -      allow_undefined_flag='-undefined suppress'
  4.1429 -      ;;
  4.1430 -    *) # Darwin 1.3 on
  4.1431 -      allow_undefined_flag='-undefined error'
  4.1432 -      ;;
  4.1433 -    esac
  4.1434 -    archive_cmds='$nonopt $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs $linkopts -install_name $rpath/$soname $verstring'
  4.1435 -    # We need to add '_' to the symbols in $export_symbols first
  4.1436 -    #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols $lib'
  4.1437 -    hardcode_direct=yes
  4.1438 -    hardcode_shlibpath_var=no
  4.1439 -    whole_archive_flag_spec='$convenience'
  4.1440 -    ;;
  4.1441 -
  4.1442 -  hpux9* | hpux10* | hpux11*)
  4.1443 -    case "$host_os" in
  4.1444 -    hpux9*) archive_cmds='$rm $objdir/$soname~$LD -b +b $install_libdir -o $objdir/$soname $libobjs $deplibs $linkopts~test $objdir/$soname = $lib || mv $objdir/$soname $lib' ;;
  4.1445 -    *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linkopts' ;;
  4.1446 -    esac
  4.1447 -    hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  4.1448 -    hardcode_libdir_separator=:
  4.1449 -    hardcode_direct=yes
  4.1450 -    hardcode_minus_L=yes # Not in the search PATH, but as the default
  4.1451 -			 # location of the library.
  4.1452 -    export_dynamic_flag_spec='${wl}-E'
  4.1453 -    ;;
  4.1454 -
  4.1455 -  irix5* | irix6*)
  4.1456 -    if test "$with_gcc" = yes; then
  4.1457 -      archive_cmds='$CC -shared $libobjs $deplibs $linkopts ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
  4.1458 -    else
  4.1459 -      archive_cmds='$LD -shared $libobjs $deplibs $linkopts -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
  4.1460 -    fi
  4.1461 -    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  4.1462 -    hardcode_libdir_separator=:
  4.1463 -    ;;
  4.1464 -
  4.1465 -  netbsd*)
  4.1466 -    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  4.1467 -      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linkopts'  # a.out
  4.1468 -    else
  4.1469 -      archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linkopts'      # ELF
  4.1470 -    fi
  4.1471 -    hardcode_libdir_flag_spec='${wl}-R$libdir'
  4.1472 -    hardcode_direct=yes
  4.1473 -    hardcode_shlibpath_var=no
  4.1474 -    ;;
  4.1475 -
  4.1476 -  openbsd*)
  4.1477 -    hardcode_direct=yes
  4.1478 -    hardcode_shlibpath_var=no
  4.1479 -    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.
  4.1480 -8-powerpc"; then
  4.1481 -      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linkopts'
  4.1482 -      hardcode_libdir_flag_spec='${wl}-R$libdir'
  4.1483 -      export_dynamic_flag_spec='${wl}-E'
  4.1484 -    else
  4.1485 -      case "$host_os" in
  4.1486 -      openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  4.1487 -       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linkopts'
  4.1488 -       hardcode_libdir_flag_spec='-R$libdir'
  4.1489 -       ;;
  4.1490 -      *)
  4.1491 -       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linkopts'
  4.1492 -       hardcode_libdir_flag_spec='${wl}-R$libdir'
  4.1493 -       ;;
  4.1494 -      esac
  4.1495 -    fi
  4.1496 -    ;;
  4.1497 -
  4.1498 -  os2*)
  4.1499 -    hardcode_libdir_flag_spec='-L$libdir'
  4.1500 -    hardcode_minus_L=yes
  4.1501 -    allow_undefined_flag=unsupported
  4.1502 -    archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $objdir/$libname.def~$echo DATA >> $objdir/$libname.def~$echo " SINGLE NONSHARED" >> $objdir/$libname.def~$echo EXPORTS >> $objdir/$libname.def~emxexp $libobjs >> $objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $linkopts $objdir/$libname.def'
  4.1503 -    old_archive_from_new_cmds='emximp -o $objdir/$libname.a $objdir/$libname.def'
  4.1504 -    ;;
  4.1505 -
  4.1506 -  osf3*)
  4.1507 -    if test "$with_gcc" = yes; then
  4.1508 -      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  4.1509 -      archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $linkopts ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
  4.1510 -    else
  4.1511 -      allow_undefined_flag=' -expect_unresolved \*'
  4.1512 -      archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linkopts -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
  4.1513 -    fi
  4.1514 -    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  4.1515 -    hardcode_libdir_separator=:
  4.1516 -    ;;
  4.1517 -
  4.1518 -  osf4* | osf5*)  # As osf3* with the addition of the -msym flag
  4.1519 -    if test "$with_gcc" = yes; then
  4.1520 -      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  4.1521 -      archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $linkopts ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
  4.1522 -    else
  4.1523 -      allow_undefined_flag=' -expect_unresolved \*'
  4.1524 -      archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linkopts -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
  4.1525 -    fi
  4.1526 -    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  4.1527 -    hardcode_libdir_separator=:
  4.1528 -    ;;
  4.1529 -                                       
  4.1530 -  sco3.2v5*)
  4.1531 -    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
  4.1532 -    hardcode_shlibpath_var=no
  4.1533 -    runpath_var=LD_RUN_PATH
  4.1534 -    hardcode_runpath_var=yes
  4.1535 -    ;;
  4.1536 -
  4.1537 -  solaris*)
  4.1538 -    no_undefined_flag=' -z text'
  4.1539 -    # $CC -shared without GNU ld will not create a library from C++
  4.1540 -    # object files and a static libstdc++, better avoid it by now
  4.1541 -    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linkopts'
  4.1542 -    archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  4.1543 -		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linkopts~$rm $lib.exp'
  4.1544 -    hardcode_libdir_flag_spec='-R$libdir'
  4.1545 -    hardcode_shlibpath_var=no
  4.1546 -    case "$host_os" in
  4.1547 -    solaris2.[0-5] | solaris2.[0-5].*) ;;
  4.1548 -    *) # Supported since Solaris 2.6 (maybe 2.5.1?)
  4.1549 -      whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
  4.1550 -    esac
  4.1551 -    ;;
  4.1552 -
  4.1553 -  sunos4*)
  4.1554 -    archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linkopts'
  4.1555 -    hardcode_libdir_flag_spec='-L$libdir'
  4.1556 -    hardcode_direct=yes
  4.1557 -    hardcode_minus_L=yes
  4.1558 -    hardcode_shlibpath_var=no
  4.1559 -    ;;
  4.1560 -
  4.1561 -  sysv4)
  4.1562 -    if test "x$host_vendor" = xsequent; then
  4.1563 -      # Use $CC to link under sequent, because it throws in some extra .o 
  4.1564 -      # files that make .init and .fini sections work.
  4.1565 -      archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $linkopts'
  4.1566 -    else
  4.1567 -      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
  4.1568 -    fi
  4.1569 -    runpath_var='LD_RUN_PATH'
  4.1570 -    hardcode_shlibpath_var=no
  4.1571 -    hardcode_direct=no #Motorola manual says yes, but my tests say they lie 
  4.1572 -    ;;  
  4.1573 -
  4.1574 -  sysv4.3*)
  4.1575 -    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
  4.1576 -    hardcode_shlibpath_var=no
  4.1577 -    export_dynamic_flag_spec='-Bexport'
  4.1578 -    ;;
  4.1579 -
  4.1580 -  sysv5*)
  4.1581 -    no_undefined_flag=' -z text'
  4.1582 -    # $CC -shared without GNU ld will not create a library from C++
  4.1583 -    # object files and a static libstdc++, better avoid it by now
  4.1584 -    archive_cmds='$LD -G${allow_undefined_flag} -h $rpath/$soname -o $lib $libobjs $deplibs $linkopts'
  4.1585 -    archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  4.1586 -		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linkopts~$rm $lib.exp'
  4.1587 -    hardcode_libdir_flag_spec=
  4.1588 -    hardcode_shlibpath_var=no
  4.1589 -    runpath_var='LD_RUN_PATH'
  4.1590 -    ;;
  4.1591 -
  4.1592 -  uts4*)
  4.1593 -    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
  4.1594 -    hardcode_libdir_flag_spec='-L$libdir'
  4.1595 -    hardcode_shlibpath_var=no
  4.1596 -    ;;
  4.1597 -
  4.1598 -  dgux*)
  4.1599 -    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
  4.1600 -    hardcode_libdir_flag_spec='-L$libdir'
  4.1601 -    hardcode_shlibpath_var=no
  4.1602 -    ;;
  4.1603 -
  4.1604 -  sysv4*MP*)
  4.1605 -    if test -d /usr/nec; then
  4.1606 -      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
  4.1607 -      hardcode_shlibpath_var=no
  4.1608 -      runpath_var=LD_RUN_PATH
  4.1609 -      hardcode_runpath_var=yes
  4.1610 -      ld_shlibs=yes
  4.1611 -    fi
  4.1612 -    ;;
  4.1613 -
  4.1614 -  sysv4.2uw2*)
  4.1615 -    archive_cmds='$LD -G -o $lib $libobjs $deplibs $linkopts'
  4.1616 -    hardcode_direct=yes
  4.1617 -    hardcode_minus_L=no
  4.1618 -    hardcode_shlibpath_var=no
  4.1619 -    hardcode_runpath_var=yes
  4.1620 -    runpath_var=LD_RUN_PATH
  4.1621 -    ;;
  4.1622 -
  4.1623 -  unixware7*)
  4.1624 -    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
  4.1625 -    runpath_var='LD_RUN_PATH'
  4.1626 -    hardcode_shlibpath_var=no
  4.1627 -    ;;
  4.1628 -
  4.1629 -  *)
  4.1630 -    ld_shlibs=no
  4.1631 -    ;;
  4.1632 -  esac
  4.1633 -fi
  4.1634 -echo "$ac_t$ld_shlibs" 1>&6
  4.1635 -test "$ld_shlibs" = no && can_build_shared=no
  4.1636 -
  4.1637 -if test -z "$NM"; then
  4.1638 -  echo $ac_n "checking for BSD-compatible nm... $ac_c" 1>&6
  4.1639 -  case "$NM" in
  4.1640 -  [\\/]* | [A-Za-z]:[\\/]*) ;; # Let the user override the test with a path.
  4.1641 -  *)
  4.1642 -    IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
  4.1643 -    for ac_dir in $PATH /usr/ucb /usr/ccs/bin /bin; do
  4.1644 -      test -z "$ac_dir" && ac_dir=.
  4.1645 -      if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext; then
  4.1646 -	# Check to see if the nm accepts a BSD-compat flag.
  4.1647 -	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4.1648 -	#   nm: unknown option "B" ignored
  4.1649 -	if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
  4.1650 -	  NM="$ac_dir/nm -B"
  4.1651 -	  break
  4.1652 -	elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
  4.1653 -	  NM="$ac_dir/nm -p"
  4.1654 -	  break
  4.1655 -	else
  4.1656 -	  NM=${NM="$ac_dir/nm"} # keep the first match, but
  4.1657 -	  continue # so that we can try to find one that supports BSD flags
  4.1658 -	fi
  4.1659 -      fi
  4.1660 -    done
  4.1661 -    IFS="$ac_save_ifs"
  4.1662 -    test -z "$NM" && NM=nm
  4.1663 -    ;;
  4.1664 -  esac
  4.1665 -  echo "$ac_t$NM" 1>&6
  4.1666 -fi
  4.1667 -
  4.1668 -# Check for command to grab the raw symbol name followed by C symbol from nm.
  4.1669 -echo $ac_n "checking command to parse $NM output... $ac_c" 1>&6
  4.1670 -
  4.1671 -# These are sane defaults that work on at least a few old systems.
  4.1672 -# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
  4.1673 -
  4.1674 -# Character class describing NM global symbol codes.
  4.1675 -symcode='[BCDEGRST]'
  4.1676 -
  4.1677 -# Regexp to match symbols that can be accessed directly from C.
  4.1678 -sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  4.1679 -
  4.1680 -# Transform the above into a raw symbol and a C symbol.
  4.1681 -symxfrm='\1 \2\3 \3'
  4.1682 -
  4.1683 -# Transform an extracted symbol line into a proper C declaration
  4.1684 -global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
  4.1685 -