1.1 --- a/libgnomevfs2-mythtv/INSTALL Thu May 10 02:08:13 2007 +0100
1.2 +++ b/libgnomevfs2-mythtv/INSTALL Thu May 10 22:08:17 2007 +0100
1.3 @@ -102,16 +102,16 @@
1.4 Installation Names
1.5 ==================
1.6
1.7 -By default, `make install' installs the package's commands under
1.8 -`/usr/local/bin', include files under `/usr/local/include', etc. You
1.9 -can specify an installation prefix other than `/usr/local' by giving
1.10 -`configure' the option `--prefix=PREFIX'.
1.11 +By default, `make install' will install the package's files in
1.12 +`/usr/local/bin', `/usr/local/man', etc. You can specify an
1.13 +installation prefix other than `/usr/local' by giving `configure' the
1.14 +option `--prefix=PREFIX'.
1.15
1.16 You can specify separate installation prefixes for
1.17 architecture-specific files and architecture-independent files. If you
1.18 -pass the option `--exec-prefix=PREFIX' to `configure', the package uses
1.19 -PREFIX as the prefix for installing programs and libraries.
1.20 -Documentation and other data files still use the regular prefix.
1.21 +give `configure' the option `--exec-prefix=PREFIX', the package will
1.22 +use PREFIX as the prefix for installing programs and libraries.
1.23 +Documentation and other data files will still use the regular prefix.
1.24
1.25 In addition, if you use an unusual directory layout you can give
1.26 options like `--bindir=DIR' to specify different values for particular
1.27 @@ -159,7 +159,7 @@
1.28 need to know the machine type.
1.29
1.30 If you are _building_ compiler tools for cross-compiling, you should
1.31 -use the option `--target=TYPE' to select the type of system they will
1.32 +use the `--target=TYPE' option to select the type of system they will
1.33 produce code for.
1.34
1.35 If you want to _use_ a cross compiler, that generates code for a
2.1 --- a/libgnomevfs2-mythtv/autogen.sh Thu May 10 02:08:13 2007 +0100
2.2 +++ b/libgnomevfs2-mythtv/autogen.sh Thu May 10 22:08:17 2007 +0100
2.3 @@ -16,5 +16,5 @@
2.4 echo "You need to install gnome-common from the GNOME CVS"
2.5 exit 1
2.6 }
2.7 -ACLOCAL_FLAGS=$ACLOCAL_FLAGS -I ./m4
2.8 +ACLOCAL_FLAGS="$ACLOCAL_FLAGS -I ./m4"
2.9 REQUIRED_AUTOMAKE_VERSION=1.9 USE_GNOME2_MACROS=1 . gnome-autogen.sh
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
3.2 +++ b/libgnomevfs2-mythtv/m4/libtool.m4 Thu May 10 22:08:17 2007 +0100
3.3 @@ -0,0 +1,6389 @@
3.4 +# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
3.5 +## Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005
3.6 +## Free Software Foundation, Inc.
3.7 +## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
3.8 +##
3.9 +## This file is free software; the Free Software Foundation gives
3.10 +## unlimited permission to copy and/or distribute it, with or without
3.11 +## modifications, as long as this notice is preserved.
3.12 +
3.13 +# serial 48 Debian 1.5.22-4 AC_PROG_LIBTOOL
3.14 +
3.15 +
3.16 +# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
3.17 +# -----------------------------------------------------------
3.18 +# If this macro is not defined by Autoconf, define it here.
3.19 +m4_ifdef([AC_PROVIDE_IFELSE],
3.20 + [],
3.21 + [m4_define([AC_PROVIDE_IFELSE],
3.22 + [m4_ifdef([AC_PROVIDE_$1],
3.23 + [$2], [$3])])])
3.24 +
3.25 +
3.26 +# AC_PROG_LIBTOOL
3.27 +# ---------------
3.28 +AC_DEFUN([AC_PROG_LIBTOOL],
3.29 +[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
3.30 +dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
3.31 +dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
3.32 + AC_PROVIDE_IFELSE([AC_PROG_CXX],
3.33 + [AC_LIBTOOL_CXX],
3.34 + [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
3.35 + ])])
3.36 +dnl And a similar setup for Fortran 77 support
3.37 + AC_PROVIDE_IFELSE([AC_PROG_F77],
3.38 + [AC_LIBTOOL_F77],
3.39 + [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
3.40 +])])
3.41 +
3.42 +dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
3.43 +dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
3.44 +dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
3.45 + AC_PROVIDE_IFELSE([AC_PROG_GCJ],
3.46 + [AC_LIBTOOL_GCJ],
3.47 + [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
3.48 + [AC_LIBTOOL_GCJ],
3.49 + [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
3.50 + [AC_LIBTOOL_GCJ],
3.51 + [ifdef([AC_PROG_GCJ],
3.52 + [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
3.53 + ifdef([A][M_PROG_GCJ],
3.54 + [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
3.55 + ifdef([LT_AC_PROG_GCJ],
3.56 + [define([LT_AC_PROG_GCJ],
3.57 + defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
3.58 +])])# AC_PROG_LIBTOOL
3.59 +
3.60 +
3.61 +# _AC_PROG_LIBTOOL
3.62 +# ----------------
3.63 +AC_DEFUN([_AC_PROG_LIBTOOL],
3.64 +[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
3.65 +AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
3.66 +AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
3.67 +AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
3.68 +
3.69 +# This can be used to rebuild libtool when needed
3.70 +LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
3.71 +
3.72 +# Always use our own libtool.
3.73 +LIBTOOL='$(SHELL) $(top_builddir)/libtool'
3.74 +AC_SUBST(LIBTOOL)dnl
3.75 +
3.76 +# Prevent multiple expansion
3.77 +define([AC_PROG_LIBTOOL], [])
3.78 +])# _AC_PROG_LIBTOOL
3.79 +
3.80 +
3.81 +# AC_LIBTOOL_SETUP
3.82 +# ----------------
3.83 +AC_DEFUN([AC_LIBTOOL_SETUP],
3.84 +[AC_PREREQ(2.50)dnl
3.85 +AC_REQUIRE([AC_ENABLE_SHARED])dnl
3.86 +AC_REQUIRE([AC_ENABLE_STATIC])dnl
3.87 +AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
3.88 +AC_REQUIRE([AC_CANONICAL_HOST])dnl
3.89 +AC_REQUIRE([AC_CANONICAL_BUILD])dnl
3.90 +AC_REQUIRE([AC_PROG_CC])dnl
3.91 +AC_REQUIRE([AC_PROG_LD])dnl
3.92 +AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
3.93 +AC_REQUIRE([AC_PROG_NM])dnl
3.94 +
3.95 +AC_REQUIRE([AC_PROG_LN_S])dnl
3.96 +AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
3.97 +# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3.98 +AC_REQUIRE([AC_OBJEXT])dnl
3.99 +AC_REQUIRE([AC_EXEEXT])dnl
3.100 +dnl
3.101 +
3.102 +AC_LIBTOOL_SYS_MAX_CMD_LEN
3.103 +AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
3.104 +AC_LIBTOOL_OBJDIR
3.105 +
3.106 +AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
3.107 +_LT_AC_PROG_ECHO_BACKSLASH
3.108 +
3.109 +case $host_os in
3.110 +aix3*)
3.111 + # AIX sometimes has problems with the GCC collect2 program. For some
3.112 + # reason, if we set the COLLECT_NAMES environment variable, the problems
3.113 + # vanish in a puff of smoke.
3.114 + if test "X${COLLECT_NAMES+set}" != Xset; then
3.115 + COLLECT_NAMES=
3.116 + export COLLECT_NAMES
3.117 + fi
3.118 + ;;
3.119 +esac
3.120 +
3.121 +# Sed substitution that helps us do robust quoting. It backslashifies
3.122 +# metacharacters that are still active within double-quoted strings.
3.123 +Xsed='sed -e 1s/^X//'
3.124 +[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
3.125 +
3.126 +# Same as above, but do not quote variable references.
3.127 +[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
3.128 +
3.129 +# Sed substitution to delay expansion of an escaped shell variable in a
3.130 +# double_quote_subst'ed string.
3.131 +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3.132 +
3.133 +# Sed substitution to avoid accidental globbing in evaled expressions
3.134 +no_glob_subst='s/\*/\\\*/g'
3.135 +
3.136 +# Constants:
3.137 +rm="rm -f"
3.138 +
3.139 +# Global variables:
3.140 +default_ofile=libtool
3.141 +can_build_shared=yes
3.142 +
3.143 +# All known linkers require a `.a' archive for static linking (except MSVC,
3.144 +# which needs '.lib').
3.145 +libext=a
3.146 +ltmain="$ac_aux_dir/ltmain.sh"
3.147 +ofile="$default_ofile"
3.148 +with_gnu_ld="$lt_cv_prog_gnu_ld"
3.149 +
3.150 +AC_CHECK_TOOL(AR, ar, false)
3.151 +AC_CHECK_TOOL(RANLIB, ranlib, :)
3.152 +AC_CHECK_TOOL(STRIP, strip, :)
3.153 +
3.154 +old_CC="$CC"
3.155 +old_CFLAGS="$CFLAGS"
3.156 +
3.157 +# Set sane defaults for various variables
3.158 +test -z "$AR" && AR=ar
3.159 +test -z "$AR_FLAGS" && AR_FLAGS=cru
3.160 +test -z "$AS" && AS=as
3.161 +test -z "$CC" && CC=cc
3.162 +test -z "$LTCC" && LTCC=$CC
3.163 +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
3.164 +test -z "$DLLTOOL" && DLLTOOL=dlltool
3.165 +test -z "$LD" && LD=ld
3.166 +test -z "$LN_S" && LN_S="ln -s"
3.167 +test -z "$MAGIC_CMD" && MAGIC_CMD=file
3.168 +test -z "$NM" && NM=nm
3.169 +test -z "$SED" && SED=sed
3.170 +test -z "$OBJDUMP" && OBJDUMP=objdump
3.171 +test -z "$RANLIB" && RANLIB=:
3.172 +test -z "$STRIP" && STRIP=:
3.173 +test -z "$ac_objext" && ac_objext=o
3.174 +
3.175 +# Determine commands to create old-style static archives.
3.176 +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
3.177 +old_postinstall_cmds='chmod 644 $oldlib'
3.178 +old_postuninstall_cmds=
3.179 +
3.180 +if test -n "$RANLIB"; then
3.181 + case $host_os in
3.182 + openbsd*)
3.183 + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
3.184 + ;;
3.185 + *)
3.186 + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
3.187 + ;;
3.188 + esac
3.189 + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
3.190 +fi
3.191 +
3.192 +_LT_CC_BASENAME([$compiler])
3.193 +
3.194 +# Only perform the check for file, if the check method requires it
3.195 +case $deplibs_check_method in
3.196 +file_magic*)
3.197 + if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3.198 + AC_PATH_MAGIC
3.199 + fi
3.200 + ;;
3.201 +esac
3.202 +
3.203 +AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
3.204 +AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
3.205 +enable_win32_dll=yes, enable_win32_dll=no)
3.206 +
3.207 +AC_ARG_ENABLE([libtool-lock],
3.208 + [AC_HELP_STRING([--disable-libtool-lock],
3.209 + [avoid locking (might break parallel builds)])])
3.210 +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3.211 +
3.212 +AC_ARG_WITH([pic],
3.213 + [AC_HELP_STRING([--with-pic],
3.214 + [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
3.215 + [pic_mode="$withval"],
3.216 + [pic_mode=default])
3.217 +test -z "$pic_mode" && pic_mode=default
3.218 +
3.219 +# Use C for the default configuration in the libtool script
3.220 +tagname=
3.221 +AC_LIBTOOL_LANG_C_CONFIG
3.222 +_LT_AC_TAGCONFIG
3.223 +])# AC_LIBTOOL_SETUP
3.224 +
3.225 +
3.226 +# _LT_AC_SYS_COMPILER
3.227 +# -------------------
3.228 +AC_DEFUN([_LT_AC_SYS_COMPILER],
3.229 +[AC_REQUIRE([AC_PROG_CC])dnl
3.230 +
3.231 +# If no C compiler was specified, use CC.
3.232 +LTCC=${LTCC-"$CC"}
3.233 +
3.234 +# If no C compiler flags were specified, use CFLAGS.
3.235 +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3.236 +
3.237 +# Allow CC to be a program name with arguments.
3.238 +compiler=$CC
3.239 +])# _LT_AC_SYS_COMPILER
3.240 +
3.241 +
3.242 +# _LT_CC_BASENAME(CC)
3.243 +# -------------------
3.244 +# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
3.245 +AC_DEFUN([_LT_CC_BASENAME],
3.246 +[for cc_temp in $1""; do
3.247 + case $cc_temp in
3.248 + compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
3.249 + distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
3.250 + \-*) ;;
3.251 + *) break;;
3.252 + esac
3.253 +done
3.254 +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
3.255 +])
3.256 +
3.257 +
3.258 +# _LT_COMPILER_BOILERPLATE
3.259 +# ------------------------
3.260 +# Check for compiler boilerplate output or warnings with
3.261 +# the simple compiler test code.
3.262 +AC_DEFUN([_LT_COMPILER_BOILERPLATE],
3.263 +[ac_outfile=conftest.$ac_objext
3.264 +printf "$lt_simple_compile_test_code" >conftest.$ac_ext
3.265 +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
3.266 +_lt_compiler_boilerplate=`cat conftest.err`
3.267 +$rm conftest*
3.268 +])# _LT_COMPILER_BOILERPLATE
3.269 +
3.270 +
3.271 +# _LT_LINKER_BOILERPLATE
3.272 +# ----------------------
3.273 +# Check for linker boilerplate output or warnings with
3.274 +# the simple link test code.
3.275 +AC_DEFUN([_LT_LINKER_BOILERPLATE],
3.276 +[ac_outfile=conftest.$ac_objext
3.277 +printf "$lt_simple_link_test_code" >conftest.$ac_ext
3.278 +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
3.279 +_lt_linker_boilerplate=`cat conftest.err`
3.280 +$rm conftest*
3.281 +])# _LT_LINKER_BOILERPLATE
3.282 +
3.283 +
3.284 +# _LT_AC_SYS_LIBPATH_AIX
3.285 +# ----------------------
3.286 +# Links a minimal program and checks the executable
3.287 +# for the system default hardcoded library path. In most cases,
3.288 +# this is /usr/lib:/lib, but when the MPI compilers are used
3.289 +# the location of the communication and MPI libs are included too.
3.290 +# If we don't find anything, use the default library path according
3.291 +# to the aix ld manual.
3.292 +AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
3.293 +[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
3.294 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
3.295 +}'`
3.296 +# Check for a 64-bit object if we didn't find anything.
3.297 +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.298 +}'`; fi],[])
3.299 +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
3.300 +])# _LT_AC_SYS_LIBPATH_AIX
3.301 +
3.302 +
3.303 +# _LT_AC_SHELL_INIT(ARG)
3.304 +# ----------------------
3.305 +AC_DEFUN([_LT_AC_SHELL_INIT],
3.306 +[ifdef([AC_DIVERSION_NOTICE],
3.307 + [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
3.308 + [AC_DIVERT_PUSH(NOTICE)])
3.309 +$1
3.310 +AC_DIVERT_POP
3.311 +])# _LT_AC_SHELL_INIT
3.312 +
3.313 +
3.314 +# _LT_AC_PROG_ECHO_BACKSLASH
3.315 +# --------------------------
3.316 +# Add some code to the start of the generated configure script which
3.317 +# will find an echo command which doesn't interpret backslashes.
3.318 +AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
3.319 +[_LT_AC_SHELL_INIT([
3.320 +# Check that we are running under the correct shell.
3.321 +SHELL=${CONFIG_SHELL-/bin/sh}
3.322 +
3.323 +case X$ECHO in
3.324 +X*--fallback-echo)
3.325 + # Remove one level of quotation (which was required for Make).
3.326 + ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
3.327 + ;;
3.328 +esac
3.329 +
3.330 +echo=${ECHO-echo}
3.331 +if test "X[$]1" = X--no-reexec; then
3.332 + # Discard the --no-reexec flag, and continue.
3.333 + shift
3.334 +elif test "X[$]1" = X--fallback-echo; then
3.335 + # Avoid inline document here, it may be left over
3.336 + :
3.337 +elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
3.338 + # Yippee, $echo works!
3.339 + :
3.340 +else
3.341 + # Restart under the correct shell.
3.342 + exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
3.343 +fi
3.344 +
3.345 +if test "X[$]1" = X--fallback-echo; then
3.346 + # used as fallback echo
3.347 + shift
3.348 + cat <<EOF
3.349 +[$]*
3.350 +EOF
3.351 + exit 0
3.352 +fi
3.353 +
3.354 +# The HP-UX ksh and POSIX shell print the target directory to stdout
3.355 +# if CDPATH is set.
3.356 +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
3.357 +
3.358 +if test -z "$ECHO"; then
3.359 +if test "X${echo_test_string+set}" != Xset; then
3.360 +# find a string as large as possible, as long as the shell can cope with it
3.361 + for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
3.362 + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
3.363 + if (echo_test_string=`eval $cmd`) 2>/dev/null &&
3.364 + echo_test_string=`eval $cmd` &&
3.365 + (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
3.366 + then
3.367 + break
3.368 + fi
3.369 + done
3.370 +fi
3.371 +
3.372 +if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
3.373 + echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
3.374 + test "X$echo_testing_string" = "X$echo_test_string"; then
3.375 + :
3.376 +else
3.377 + # The Solaris, AIX, and Digital Unix default echo programs unquote
3.378 + # backslashes. This makes it impossible to quote backslashes using
3.379 + # echo "$something" | sed 's/\\/\\\\/g'
3.380 + #
3.381 + # So, first we look for a working echo in the user's PATH.
3.382 +
3.383 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3.384 + for dir in $PATH /usr/ucb; do
3.385 + IFS="$lt_save_ifs"
3.386 + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
3.387 + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
3.388 + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
3.389 + test "X$echo_testing_string" = "X$echo_test_string"; then
3.390 + echo="$dir/echo"
3.391 + break
3.392 + fi
3.393 + done
3.394 + IFS="$lt_save_ifs"
3.395 +
3.396 + if test "X$echo" = Xecho; then
3.397 + # We didn't find a better echo, so look for alternatives.
3.398 + if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
3.399 + echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
3.400 + test "X$echo_testing_string" = "X$echo_test_string"; then
3.401 + # This shell has a builtin print -r that does the trick.
3.402 + echo='print -r'
3.403 + elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
3.404 + test "X$CONFIG_SHELL" != X/bin/ksh; then
3.405 + # If we have ksh, try running configure again with it.
3.406 + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
3.407 + export ORIGINAL_CONFIG_SHELL
3.408 + CONFIG_SHELL=/bin/ksh
3.409 + export CONFIG_SHELL
3.410 + exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
3.411 + else
3.412 + # Try using printf.
3.413 + echo='printf %s\n'
3.414 + if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
3.415 + echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
3.416 + test "X$echo_testing_string" = "X$echo_test_string"; then
3.417 + # Cool, printf works
3.418 + :
3.419 + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
3.420 + test "X$echo_testing_string" = 'X\t' &&
3.421 + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
3.422 + test "X$echo_testing_string" = "X$echo_test_string"; then
3.423 + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
3.424 + export CONFIG_SHELL
3.425 + SHELL="$CONFIG_SHELL"
3.426 + export SHELL
3.427 + echo="$CONFIG_SHELL [$]0 --fallback-echo"
3.428 + elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
3.429 + test "X$echo_testing_string" = 'X\t' &&
3.430 + echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
3.431 + test "X$echo_testing_string" = "X$echo_test_string"; then
3.432 + echo="$CONFIG_SHELL [$]0 --fallback-echo"
3.433 + else
3.434 + # maybe with a smaller string...
3.435 + prev=:
3.436 +
3.437 + for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
3.438 + if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
3.439 + then
3.440 + break
3.441 + fi
3.442 + prev="$cmd"
3.443 + done
3.444 +
3.445 + if test "$prev" != 'sed 50q "[$]0"'; then
3.446 + echo_test_string=`eval $prev`
3.447 + export echo_test_string
3.448 + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
3.449 + else
3.450 + # Oops. We lost completely, so just stick with echo.
3.451 + echo=echo
3.452 + fi
3.453 + fi
3.454 + fi
3.455 + fi
3.456 +fi
3.457 +fi
3.458 +
3.459 +# Copy echo and quote the copy suitably for passing to libtool from
3.460 +# the Makefile, instead of quoting the original, which is used later.
3.461 +ECHO=$echo
3.462 +if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
3.463 + ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
3.464 +fi
3.465 +
3.466 +AC_SUBST(ECHO)
3.467 +])])# _LT_AC_PROG_ECHO_BACKSLASH
3.468 +
3.469 +
3.470 +# _LT_AC_LOCK
3.471 +# -----------
3.472 +AC_DEFUN([_LT_AC_LOCK],
3.473 +[AC_ARG_ENABLE([libtool-lock],
3.474 + [AC_HELP_STRING([--disable-libtool-lock],
3.475 + [avoid locking (might break parallel builds)])])
3.476 +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3.477 +
3.478 +# Some flags need to be propagated to the compiler or linker for good
3.479 +# libtool support.
3.480 +case $host in
3.481 +ia64-*-hpux*)
3.482 + # Find out which ABI we are using.
3.483 + echo 'int i;' > conftest.$ac_ext
3.484 + if AC_TRY_EVAL(ac_compile); then
3.485 + case `/usr/bin/file conftest.$ac_objext` in
3.486 + *ELF-32*)
3.487 + HPUX_IA64_MODE="32"
3.488 + ;;
3.489 + *ELF-64*)
3.490 + HPUX_IA64_MODE="64"
3.491 + ;;
3.492 + esac
3.493 + fi
3.494 + rm -rf conftest*
3.495 + ;;
3.496 +*-*-irix6*)
3.497 + # Find out which ABI we are using.
3.498 + echo '[#]line __oline__ "configure"' > conftest.$ac_ext
3.499 + if AC_TRY_EVAL(ac_compile); then
3.500 + if test "$lt_cv_prog_gnu_ld" = yes; then
3.501 + case `/usr/bin/file conftest.$ac_objext` in
3.502 + *32-bit*)
3.503 + LD="${LD-ld} -melf32bsmip"
3.504 + ;;
3.505 + *N32*)
3.506 + LD="${LD-ld} -melf32bmipn32"
3.507 + ;;
3.508 + *64-bit*)
3.509 + LD="${LD-ld} -melf64bmip"
3.510 + ;;
3.511 + esac
3.512 + else
3.513 + case `/usr/bin/file conftest.$ac_objext` in
3.514 + *32-bit*)
3.515 + LD="${LD-ld} -32"
3.516 + ;;
3.517 + *N32*)
3.518 + LD="${LD-ld} -n32"
3.519 + ;;
3.520 + *64-bit*)
3.521 + LD="${LD-ld} -64"
3.522 + ;;
3.523 + esac
3.524 + fi
3.525 + fi
3.526 + rm -rf conftest*
3.527 + ;;
3.528 +
3.529 +x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3.530 + # Find out which ABI we are using.
3.531 + echo 'int i;' > conftest.$ac_ext
3.532 + if AC_TRY_EVAL(ac_compile); then
3.533 + case `/usr/bin/file conftest.o` in
3.534 + *32-bit*)
3.535 + case $host in
3.536 + x86_64-*linux*)
3.537 + LD="${LD-ld} -m elf_i386"
3.538 + ;;
3.539 + ppc64-*linux*|powerpc64-*linux*)
3.540 + LD="${LD-ld} -m elf32ppclinux"
3.541 + ;;
3.542 + s390x-*linux*)
3.543 + LD="${LD-ld} -m elf_s390"
3.544 + ;;
3.545 + sparc64-*linux*)
3.546 + LD="${LD-ld} -m elf32_sparc"
3.547 + ;;
3.548 + esac
3.549 + ;;
3.550 + *64-bit*)
3.551 + case $host in
3.552 + x86_64-*linux*)
3.553 + LD="${LD-ld} -m elf_x86_64"
3.554 + ;;
3.555 + ppc*-*linux*|powerpc*-*linux*)
3.556 + LD="${LD-ld} -m elf64ppc"
3.557 + ;;
3.558 + s390*-*linux*)
3.559 + LD="${LD-ld} -m elf64_s390"
3.560 + ;;
3.561 + sparc*-*linux*)
3.562 + LD="${LD-ld} -m elf64_sparc"
3.563 + ;;
3.564 + esac
3.565 + ;;
3.566 + esac
3.567 + fi
3.568 + rm -rf conftest*
3.569 + ;;
3.570 +
3.571 +*-*-sco3.2v5*)
3.572 + # On SCO OpenServer 5, we need -belf to get full-featured binaries.
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_LANG_PUSH(C)
3.577 + AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
3.578 + AC_LANG_POP])
3.579 + if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3.580 + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3.581 + CFLAGS="$SAVE_CFLAGS"
3.582 + fi
3.583 + ;;
3.584 +sparc*-*solaris*)
3.585 + # Find out which ABI we are using.
3.586 + echo 'int i;' > conftest.$ac_ext
3.587 + if AC_TRY_EVAL(ac_compile); then
3.588 + case `/usr/bin/file conftest.o` in
3.589 + *64-bit*)
3.590 + case $lt_cv_prog_gnu_ld in
3.591 + yes*) LD="${LD-ld} -m elf64_sparc" ;;
3.592 + *) LD="${LD-ld} -64" ;;
3.593 + esac
3.594 + ;;
3.595 + esac
3.596 + fi
3.597 + rm -rf conftest*
3.598 + ;;
3.599 +
3.600 +AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
3.601 +[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
3.602 + AC_CHECK_TOOL(DLLTOOL, dlltool, false)
3.603 + AC_CHECK_TOOL(AS, as, false)
3.604 + AC_CHECK_TOOL(OBJDUMP, objdump, false)
3.605 + ;;
3.606 + ])
3.607 +esac
3.608 +
3.609 +need_locks="$enable_libtool_lock"
3.610 +
3.611 +])# _LT_AC_LOCK
3.612 +
3.613 +
3.614 +# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
3.615 +# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
3.616 +# ----------------------------------------------------------------
3.617 +# Check whether the given compiler option works
3.618 +AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
3.619 +[AC_REQUIRE([LT_AC_PROG_SED])
3.620 +AC_CACHE_CHECK([$1], [$2],
3.621 + [$2=no
3.622 + ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
3.623 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
3.624 + lt_compiler_flag="$3"
3.625 + # Insert the option either (1) after the last *FLAGS variable, or
3.626 + # (2) before a word containing "conftest.", or (3) at the end.
3.627 + # Note that $ac_compile itself does not contain backslashes and begins
3.628 + # with a dollar sign (not a hyphen), so the echo should work correctly.
3.629 + # The option is referenced via a variable to avoid confusing sed.
3.630 + lt_compile=`echo "$ac_compile" | $SED \
3.631 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
3.632 + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
3.633 + -e 's:$: $lt_compiler_flag:'`
3.634 + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
3.635 + (eval "$lt_compile" 2>conftest.err)
3.636 + ac_status=$?
3.637 + cat conftest.err >&AS_MESSAGE_LOG_FD
3.638 + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
3.639 + if (exit $ac_status) && test -s "$ac_outfile"; then
3.640 + # The compiler can only warn and ignore the option if not recognized
3.641 + # So say no if there are warnings other than the usual output.
3.642 + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
3.643 + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
3.644 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
3.645 + $2=yes
3.646 + fi
3.647 + fi
3.648 + $rm conftest*
3.649 +])
3.650 +
3.651 +if test x"[$]$2" = xyes; then
3.652 + ifelse([$5], , :, [$5])
3.653 +else
3.654 + ifelse([$6], , :, [$6])
3.655 +fi
3.656 +])# AC_LIBTOOL_COMPILER_OPTION
3.657 +
3.658 +
3.659 +# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
3.660 +# [ACTION-SUCCESS], [ACTION-FAILURE])
3.661 +# ------------------------------------------------------------
3.662 +# Check whether the given compiler option works
3.663 +AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
3.664 +[AC_CACHE_CHECK([$1], [$2],
3.665 + [$2=no
3.666 + save_LDFLAGS="$LDFLAGS"
3.667 + LDFLAGS="$LDFLAGS $3"
3.668 + printf "$lt_simple_link_test_code" > conftest.$ac_ext
3.669 + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
3.670 + # The linker can only warn and ignore the option if not recognized
3.671 + # So say no if there are warnings
3.672 + if test -s conftest.err; then
3.673 + # Append any errors to the config.log.
3.674 + cat conftest.err 1>&AS_MESSAGE_LOG_FD
3.675 + $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
3.676 + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
3.677 + if diff conftest.exp conftest.er2 >/dev/null; then
3.678 + $2=yes
3.679 + fi
3.680 + else
3.681 + $2=yes
3.682 + fi
3.683 + fi
3.684 + $rm conftest*
3.685 + LDFLAGS="$save_LDFLAGS"
3.686 +])
3.687 +
3.688 +if test x"[$]$2" = xyes; then
3.689 + ifelse([$4], , :, [$4])
3.690 +else
3.691 + ifelse([$5], , :, [$5])
3.692 +fi
3.693 +])# AC_LIBTOOL_LINKER_OPTION
3.694 +
3.695 +
3.696 +# AC_LIBTOOL_SYS_MAX_CMD_LEN
3.697 +# --------------------------
3.698 +AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
3.699 +[# find the maximum length of command line arguments
3.700 +AC_MSG_CHECKING([the maximum length of command line arguments])
3.701 +AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
3.702 + i=0
3.703 + teststring="ABCD"
3.704 +
3.705 + case $build_os in
3.706 + msdosdjgpp*)
3.707 + # On DJGPP, this test can blow up pretty badly due to problems in libc
3.708 + # (any single argument exceeding 2000 bytes causes a buffer overrun
3.709 + # during glob expansion). Even if it were fixed, the result of this
3.710 + # check would be larger than it should be.
3.711 + lt_cv_sys_max_cmd_len=12288; # 12K is about right
3.712 + ;;
3.713 +
3.714 + gnu*)
3.715 + # Under GNU Hurd, this test is not required because there is
3.716 + # no limit to the length of command line arguments.
3.717 + # Libtool will interpret -1 as no limit whatsoever
3.718 + lt_cv_sys_max_cmd_len=-1;
3.719 + ;;
3.720 +
3.721 + cygwin* | mingw*)
3.722 + # On Win9x/ME, this test blows up -- it succeeds, but takes
3.723 + # about 5 minutes as the teststring grows exponentially.
3.724 + # Worse, since 9x/ME are not pre-emptively multitasking,
3.725 + # you end up with a "frozen" computer, even though with patience
3.726 + # the test eventually succeeds (with a max line length of 256k).
3.727 + # Instead, let's just punt: use the minimum linelength reported by
3.728 + # all of the supported platforms: 8192 (on NT/2K/XP).
3.729 + lt_cv_sys_max_cmd_len=8192;
3.730 + ;;
3.731 +
3.732 + amigaos*)
3.733 + # On AmigaOS with pdksh, this test takes hours, literally.
3.734 + # So we just punt and use a minimum line length of 8192.
3.735 + lt_cv_sys_max_cmd_len=8192;
3.736 + ;;
3.737 +
3.738 + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3.739 + # This has been around since 386BSD, at least. Likely further.
3.740 + if test -x /sbin/sysctl; then
3.741 + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3.742 + elif test -x /usr/sbin/sysctl; then
3.743 + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3.744 + else
3.745 + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
3.746 + fi
3.747 + # And add a safety zone
3.748 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3.749 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3.750 + ;;
3.751 +
3.752 + interix*)
3.753 + # We know the value 262144 and hardcode it with a safety zone (like BSD)
3.754 + lt_cv_sys_max_cmd_len=196608
3.755 + ;;
3.756 +
3.757 + osf*)
3.758 + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
3.759 + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
3.760 + # nice to cause kernel panics so lets avoid the loop below.
3.761 + # First set a reasonable default.
3.762 + lt_cv_sys_max_cmd_len=16384
3.763 + #
3.764 + if test -x /sbin/sysconfig; then
3.765 + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
3.766 + *1*) lt_cv_sys_max_cmd_len=-1 ;;
3.767 + esac
3.768 + fi
3.769 + ;;
3.770 + sco3.2v5*)
3.771 + lt_cv_sys_max_cmd_len=102400
3.772 + ;;
3.773 + sysv5* | sco5v6* | sysv4.2uw2*)
3.774 + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
3.775 + if test -n "$kargmax"; then
3.776 + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
3.777 + else
3.778 + lt_cv_sys_max_cmd_len=32768
3.779 + fi
3.780 + ;;
3.781 + *)
3.782 + # If test is not a shell built-in, we'll probably end up computing a
3.783 + # maximum length that is only half of the actual maximum length, but
3.784 + # we can't tell.
3.785 + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
3.786 + while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
3.787 + = "XX$teststring") >/dev/null 2>&1 &&
3.788 + new_result=`expr "X$teststring" : ".*" 2>&1` &&
3.789 + lt_cv_sys_max_cmd_len=$new_result &&
3.790 + test $i != 17 # 1/2 MB should be enough
3.791 + do
3.792 + i=`expr $i + 1`
3.793 + teststring=$teststring$teststring
3.794 + done
3.795 + teststring=
3.796 + # Add a significant safety factor because C++ compilers can tack on massive
3.797 + # amounts of additional arguments before passing them to the linker.
3.798 + # It appears as though 1/2 is a usable value.
3.799 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
3.800 + ;;
3.801 + esac
3.802 +])
3.803 +if test -n $lt_cv_sys_max_cmd_len ; then
3.804 + AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
3.805 +else
3.806 + AC_MSG_RESULT(none)
3.807 +fi
3.808 +])# AC_LIBTOOL_SYS_MAX_CMD_LEN
3.809 +
3.810 +
3.811 +# _LT_AC_CHECK_DLFCN
3.812 +# ------------------
3.813 +AC_DEFUN([_LT_AC_CHECK_DLFCN],
3.814 +[AC_CHECK_HEADERS(dlfcn.h)dnl
3.815 +])# _LT_AC_CHECK_DLFCN
3.816 +
3.817 +
3.818 +# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
3.819 +# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
3.820 +# ---------------------------------------------------------------------
3.821 +AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
3.822 +[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
3.823 +if test "$cross_compiling" = yes; then :
3.824 + [$4]
3.825 +else
3.826 + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
3.827 + lt_status=$lt_dlunknown
3.828 + cat > conftest.$ac_ext <<EOF
3.829 +[#line __oline__ "configure"
3.830 +#include "confdefs.h"
3.831 +
3.832 +#if HAVE_DLFCN_H
3.833 +#include <dlfcn.h>
3.834 +#endif
3.835 +
3.836 +#include <stdio.h>
3.837 +
3.838 +#ifdef RTLD_GLOBAL
3.839 +# define LT_DLGLOBAL RTLD_GLOBAL
3.840 +#else
3.841 +# ifdef DL_GLOBAL
3.842 +# define LT_DLGLOBAL DL_GLOBAL
3.843 +# else
3.844 +# define LT_DLGLOBAL 0
3.845 +# endif
3.846 +#endif
3.847 +
3.848 +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
3.849 + find out it does not work in some platform. */
3.850 +#ifndef LT_DLLAZY_OR_NOW
3.851 +# ifdef RTLD_LAZY
3.852 +# define LT_DLLAZY_OR_NOW RTLD_LAZY
3.853 +# else
3.854 +# ifdef DL_LAZY
3.855 +# define LT_DLLAZY_OR_NOW DL_LAZY
3.856 +# else
3.857 +# ifdef RTLD_NOW
3.858 +# define LT_DLLAZY_OR_NOW RTLD_NOW
3.859 +# else
3.860 +# ifdef DL_NOW
3.861 +# define LT_DLLAZY_OR_NOW DL_NOW
3.862 +# else
3.863 +# define LT_DLLAZY_OR_NOW 0
3.864 +# endif
3.865 +# endif
3.866 +# endif
3.867 +# endif
3.868 +#endif
3.869 +
3.870 +#ifdef __cplusplus
3.871 +extern "C" void exit (int);
3.872 +#endif
3.873 +
3.874 +void fnord() { int i=42;}
3.875 +int main ()
3.876 +{
3.877 + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
3.878 + int status = $lt_dlunknown;
3.879 +
3.880 + if (self)
3.881 + {
3.882 + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
3.883 + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
3.884 + /* dlclose (self); */
3.885 + }
3.886 + else
3.887 + puts (dlerror ());
3.888 +
3.889 + exit (status);
3.890 +}]
3.891 +EOF
3.892 + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
3.893 + (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
3.894 + lt_status=$?
3.895 + case x$lt_status in
3.896 + x$lt_dlno_uscore) $1 ;;
3.897 + x$lt_dlneed_uscore) $2 ;;
3.898 + x$lt_dlunknown|x*) $3 ;;
3.899 + esac
3.900 + else :
3.901 + # compilation failed
3.902 + $3
3.903 + fi
3.904 +fi
3.905 +rm -fr conftest*
3.906 +])# _LT_AC_TRY_DLOPEN_SELF
3.907 +
3.908 +
3.909 +# AC_LIBTOOL_DLOPEN_SELF
3.910 +# ----------------------
3.911 +AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
3.912 +[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
3.913 +if test "x$enable_dlopen" != xyes; then
3.914 + enable_dlopen=unknown
3.915 + enable_dlopen_self=unknown
3.916 + enable_dlopen_self_static=unknown
3.917 +else
3.918 + lt_cv_dlopen=no
3.919 + lt_cv_dlopen_libs=
3.920 +
3.921 + case $host_os in
3.922 + beos*)
3.923 + lt_cv_dlopen="load_add_on"
3.924 + lt_cv_dlopen_libs=
3.925 + lt_cv_dlopen_self=yes
3.926 + ;;
3.927 +
3.928 + mingw* | pw32*)
3.929 + lt_cv_dlopen="LoadLibrary"
3.930 + lt_cv_dlopen_libs=
3.931 + ;;
3.932 +
3.933 + cygwin*)
3.934 + lt_cv_dlopen="dlopen"
3.935 + lt_cv_dlopen_libs=
3.936 + ;;
3.937 +
3.938 + darwin*)
3.939 + # if libdl is installed we need to link against it
3.940 + AC_CHECK_LIB([dl], [dlopen],
3.941 + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
3.942 + lt_cv_dlopen="dyld"
3.943 + lt_cv_dlopen_libs=
3.944 + lt_cv_dlopen_self=yes
3.945 + ])
3.946 + ;;
3.947 +
3.948 + *)
3.949 + AC_CHECK_FUNC([shl_load],
3.950 + [lt_cv_dlopen="shl_load"],
3.951 + [AC_CHECK_LIB([dld], [shl_load],
3.952 + [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
3.953 + [AC_CHECK_FUNC([dlopen],
3.954 + [lt_cv_dlopen="dlopen"],
3.955 + [AC_CHECK_LIB([dl], [dlopen],
3.956 + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
3.957 + [AC_CHECK_LIB([svld], [dlopen],
3.958 + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
3.959 + [AC_CHECK_LIB([dld], [dld_link],
3.960 + [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
3.961 + ])
3.962 + ])
3.963 + ])
3.964 + ])
3.965 + ])
3.966 + ;;
3.967 + esac
3.968 +
3.969 + if test "x$lt_cv_dlopen" != xno; then
3.970 + enable_dlopen=yes
3.971 + else
3.972 + enable_dlopen=no
3.973 + fi
3.974 +
3.975 + case $lt_cv_dlopen in
3.976 + dlopen)
3.977 + save_CPPFLAGS="$CPPFLAGS"
3.978 + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
3.979 +
3.980 + save_LDFLAGS="$LDFLAGS"
3.981 + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
3.982 +
3.983 + save_LIBS="$LIBS"
3.984 + LIBS="$lt_cv_dlopen_libs $LIBS"
3.985 +
3.986 + AC_CACHE_CHECK([whether a program can dlopen itself],
3.987 + lt_cv_dlopen_self, [dnl
3.988 + _LT_AC_TRY_DLOPEN_SELF(
3.989 + lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
3.990 + lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
3.991 + ])
3.992 +
3.993 + if test "x$lt_cv_dlopen_self" = xyes; then
3.994 + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
3.995 + AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
3.996 + lt_cv_dlopen_self_static, [dnl
3.997 + _LT_AC_TRY_DLOPEN_SELF(
3.998 + lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
3.999 + lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
3.1000 + ])
3.1001 + fi
3.1002 +
3.1003 + CPPFLAGS="$save_CPPFLAGS"
3.1004 + LDFLAGS="$save_LDFLAGS"
3.1005 + LIBS="$save_LIBS"
3.1006 + ;;
3.1007 + esac
3.1008 +
3.1009 + case $lt_cv_dlopen_self in
3.1010 + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
3.1011 + *) enable_dlopen_self=unknown ;;
3.1012 + esac
3.1013 +
3.1014 + case $lt_cv_dlopen_self_static in
3.1015 + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
3.1016 + *) enable_dlopen_self_static=unknown ;;
3.1017 + esac
3.1018 +fi
3.1019 +])# AC_LIBTOOL_DLOPEN_SELF
3.1020 +
3.1021 +
3.1022 +# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
3.1023 +# ---------------------------------
3.1024 +# Check to see if options -c and -o are simultaneously supported by compiler
3.1025 +AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
3.1026 +[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
3.1027 +AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
3.1028 + [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
3.1029 + [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
3.1030 + $rm -r conftest 2>/dev/null
3.1031 + mkdir conftest
3.1032 + cd conftest
3.1033 + mkdir out
3.1034 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
3.1035 +
3.1036 + lt_compiler_flag="-o out/conftest2.$ac_objext"
3.1037 + # Insert the option either (1) after the last *FLAGS variable, or
3.1038 + # (2) before a word containing "conftest.", or (3) at the end.
3.1039 + # Note that $ac_compile itself does not contain backslashes and begins
3.1040 + # with a dollar sign (not a hyphen), so the echo should work correctly.
3.1041 + lt_compile=`echo "$ac_compile" | $SED \
3.1042 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
3.1043 + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
3.1044 + -e 's:$: $lt_compiler_flag:'`
3.1045 + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
3.1046 + (eval "$lt_compile" 2>out/conftest.err)
3.1047 + ac_status=$?
3.1048 + cat out/conftest.err >&AS_MESSAGE_LOG_FD
3.1049 + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
3.1050 + if (exit $ac_status) && test -s out/conftest2.$ac_objext
3.1051 + then
3.1052 + # The compiler can only warn and ignore the option if not recognized
3.1053 + # So say no if there are warnings
3.1054 + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
3.1055 + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
3.1056 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
3.1057 + _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
3.1058 + fi
3.1059 + fi
3.1060 + chmod u+w . 2>&AS_MESSAGE_LOG_FD
3.1061 + $rm conftest*
3.1062 + # SGI C++ compiler will create directory out/ii_files/ for
3.1063 + # template instantiation
3.1064 + test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
3.1065 + $rm out/* && rmdir out
3.1066 + cd ..
3.1067 + rmdir conftest
3.1068 + $rm conftest*
3.1069 +])
3.1070 +])# AC_LIBTOOL_PROG_CC_C_O
3.1071 +
3.1072 +
3.1073 +# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
3.1074 +# -----------------------------------------
3.1075 +# Check to see if we can do hard links to lock some files if needed
3.1076 +AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
3.1077 +[AC_REQUIRE([_LT_AC_LOCK])dnl
3.1078 +
3.1079 +hard_links="nottested"
3.1080 +if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
3.1081 + # do not overwrite the value of need_locks provided by the user
3.1082 + AC_MSG_CHECKING([if we can lock with hard links])
3.1083 + hard_links=yes
3.1084 + $rm conftest*
3.1085 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
3.1086 + touch conftest.a
3.1087 + ln conftest.a conftest.b 2>&5 || hard_links=no
3.1088 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
3.1089 + AC_MSG_RESULT([$hard_links])
3.1090 + if test "$hard_links" = no; then
3.1091 + AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
3.1092 + need_locks=warn
3.1093 + fi
3.1094 +else
3.1095 + need_locks=no
3.1096 +fi
3.1097 +])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
3.1098 +
3.1099 +
3.1100 +# AC_LIBTOOL_OBJDIR
3.1101 +# -----------------
3.1102 +AC_DEFUN([AC_LIBTOOL_OBJDIR],
3.1103 +[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
3.1104 +[rm -f .libs 2>/dev/null
3.1105 +mkdir .libs 2>/dev/null
3.1106 +if test -d .libs; then
3.1107 + lt_cv_objdir=.libs
3.1108 +else
3.1109 + # MS-DOS does not allow filenames that begin with a dot.
3.1110 + lt_cv_objdir=_libs
3.1111 +fi
3.1112 +rmdir .libs 2>/dev/null])
3.1113 +objdir=$lt_cv_objdir
3.1114 +])# AC_LIBTOOL_OBJDIR
3.1115 +
3.1116 +
3.1117 +# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
3.1118 +# ----------------------------------------------
3.1119 +# Check hardcoding attributes.
3.1120 +AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
3.1121 +[AC_MSG_CHECKING([how to hardcode library paths into programs])
3.1122 +_LT_AC_TAGVAR(hardcode_action, $1)=
3.1123 +if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
3.1124 + test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
3.1125 + test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
3.1126 +
3.1127 + # We can hardcode non-existant directories.
3.1128 + if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
3.1129 + # If the only mechanism to avoid hardcoding is shlibpath_var, we
3.1130 + # have to relink, otherwise we might link with an installed library
3.1131 + # when we should be linking with a yet-to-be-installed one
3.1132 + ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
3.1133 + test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
3.1134 + # Linking always hardcodes the temporary library directory.
3.1135 + _LT_AC_TAGVAR(hardcode_action, $1)=relink
3.1136 + else
3.1137 + # We can link without hardcoding, and we can hardcode nonexisting dirs.
3.1138 + _LT_AC_TAGVAR(hardcode_action, $1)=immediate
3.1139 + fi
3.1140 +else
3.1141 + # We cannot hardcode anything, or else we can only hardcode existing
3.1142 + # directories.
3.1143 + _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
3.1144 +fi
3.1145 +AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
3.1146 +
3.1147 +if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
3.1148 + # Fast installation is not supported
3.1149 + enable_fast_install=no
3.1150 +elif test "$shlibpath_overrides_runpath" = yes ||
3.1151 + test "$enable_shared" = no; then
3.1152 + # Fast installation is not necessary
3.1153 + enable_fast_install=needless
3.1154 +fi
3.1155 +])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
3.1156 +
3.1157 +
3.1158 +# AC_LIBTOOL_SYS_LIB_STRIP
3.1159 +# ------------------------
3.1160 +AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
3.1161 +[striplib=
3.1162 +old_striplib=
3.1163 +AC_MSG_CHECKING([whether stripping libraries is possible])
3.1164 +if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
3.1165 + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
3.1166 + test -z "$striplib" && striplib="$STRIP --strip-unneeded"
3.1167 + AC_MSG_RESULT([yes])
3.1168 +else
3.1169 +# FIXME - insert some real tests, host_os isn't really good enough
3.1170 + case $host_os in
3.1171 + darwin*)
3.1172 + if test -n "$STRIP" ; then
3.1173 + striplib="$STRIP -x"
3.1174 + AC_MSG_RESULT([yes])
3.1175 + else
3.1176 + AC_MSG_RESULT([no])
3.1177 +fi
3.1178 + ;;
3.1179 + *)
3.1180 + AC_MSG_RESULT([no])
3.1181 + ;;
3.1182 + esac
3.1183 +fi
3.1184 +])# AC_LIBTOOL_SYS_LIB_STRIP
3.1185 +
3.1186 +
3.1187 +# AC_LIBTOOL_SYS_DYNAMIC_LINKER
3.1188 +# -----------------------------
3.1189 +# PORTME Fill in your ld.so characteristics
3.1190 +AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
3.1191 +[AC_MSG_CHECKING([dynamic linker characteristics])
3.1192 +library_names_spec=
3.1193 +libname_spec='lib$name'
3.1194 +soname_spec=
3.1195 +shrext_cmds=".so"
3.1196 +postinstall_cmds=
3.1197 +postuninstall_cmds=
3.1198 +finish_cmds=
3.1199 +finish_eval=
3.1200 +shlibpath_var=
3.1201 +shlibpath_overrides_runpath=unknown
3.1202 +version_type=none
3.1203 +dynamic_linker="$host_os ld.so"
3.1204 +sys_lib_dlsearch_path_spec="/lib /usr/lib"
3.1205 +if test "$GCC" = yes; then
3.1206 + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
3.1207 + if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
3.1208 + # if the path contains ";" then we assume it to be the separator
3.1209 + # otherwise default to the standard path separator (i.e. ":") - it is
3.1210 + # assumed that no part of a normal pathname contains ";" but that should
3.1211 + # okay in the real world where ";" in dirpaths is itself problematic.
3.1212 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
3.1213 + else
3.1214 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
3.1215 + fi
3.1216 +else
3.1217 + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
3.1218 +fi
3.1219 +need_lib_prefix=unknown
3.1220 +hardcode_into_libs=no
3.1221 +
3.1222 +# when you set need_version to no, make sure it does not cause -set_version
3.1223 +# flags to be left without arguments
3.1224 +need_version=unknown
3.1225 +
3.1226 +case $host_os in
3.1227 +aix3*)
3.1228 + version_type=linux
3.1229 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
3.1230 + shlibpath_var=LIBPATH
3.1231 +
3.1232 + # AIX 3 has no versioning support, so we append a major version to the name.
3.1233 + soname_spec='${libname}${release}${shared_ext}$major'
3.1234 + ;;
3.1235 +
3.1236 +aix4* | aix5*)
3.1237 + version_type=linux
3.1238 + need_lib_prefix=no
3.1239 + need_version=no
3.1240 + hardcode_into_libs=yes
3.1241 + if test "$host_cpu" = ia64; then
3.1242 + # AIX 5 supports IA64
3.1243 + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
3.1244 + shlibpath_var=LD_LIBRARY_PATH
3.1245 + else
3.1246 + # With GCC up to 2.95.x, collect2 would create an import file
3.1247 + # for dependence libraries. The import file would start with
3.1248 + # the line `#! .'. This would cause the generated library to
3.1249 + # depend on `.', always an invalid library. This was fixed in
3.1250 + # development snapshots of GCC prior to 3.0.
3.1251 + case $host_os in
3.1252 + aix4 | aix4.[[01]] | aix4.[[01]].*)
3.1253 + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
3.1254 + echo ' yes '
3.1255 + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
3.1256 + :
3.1257 + else
3.1258 + can_build_shared=no
3.1259 + fi
3.1260 + ;;
3.1261 + esac
3.1262 + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
3.1263 + # soname into executable. Probably we can add versioning support to
3.1264 + # collect2, so additional links can be useful in future.
3.1265 + if test "$aix_use_runtimelinking" = yes; then
3.1266 + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
3.1267 + # instead of lib<name>.a to let people know that these are not
3.1268 + # typical AIX shared libraries.
3.1269 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3.1270 + else
3.1271 + # We preserve .a as extension for shared libraries through AIX4.2
3.1272 + # and later when we are not doing run time linking.
3.1273 + library_names_spec='${libname}${release}.a $libname.a'
3.1274 + soname_spec='${libname}${release}${shared_ext}$major'
3.1275 + fi
3.1276 + shlibpath_var=LIBPATH
3.1277 + fi
3.1278 + ;;
3.1279 +
3.1280 +amigaos*)
3.1281 + library_names_spec='$libname.ixlibrary $libname.a'
3.1282 + # Create ${libname}_ixlibrary.a entries in /sys/libs.
3.1283 + 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.1284 + ;;
3.1285 +
3.1286 +beos*)
3.1287 + library_names_spec='${libname}${shared_ext}'
3.1288 + dynamic_linker="$host_os ld.so"
3.1289 + shlibpath_var=LIBRARY_PATH
3.1290 + ;;
3.1291 +
3.1292 +bsdi[[45]]*)
3.1293 + version_type=linux
3.1294 + need_version=no
3.1295 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3.1296 + soname_spec='${libname}${release}${shared_ext}$major'
3.1297 + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
3.1298 + shlibpath_var=LD_LIBRARY_PATH
3.1299 + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
3.1300 + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
3.1301 + # the default ld.so.conf also contains /usr/contrib/lib and
3.1302 + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
3.1303 + # libtool to hard-code these into programs
3.1304 + ;;
3.1305 +
3.1306 +cygwin* | mingw* | pw32*)
3.1307 + version_type=windows
3.1308 + shrext_cmds=".dll"
3.1309 + need_version=no
3.1310 + need_lib_prefix=no
3.1311 +
3.1312 + case $GCC,$host_os in
3.1313 + yes,cygwin* | yes,mingw* | yes,pw32*)
3.1314 + library_names_spec='$libname.dll.a'
3.1315 + # DLL is installed to $(libdir)/../bin by postinstall_cmds
3.1316 + postinstall_cmds='base_file=`basename \${file}`~
3.1317 + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
3.1318 + dldir=$destdir/`dirname \$dlpath`~
3.1319 + test -d \$dldir || mkdir -p \$dldir~
3.1320 + $install_prog $dir/$dlname \$dldir/$dlname~
3.1321 + chmod a+x \$dldir/$dlname'
3.1322 + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
3.1323 + dlpath=$dir/\$dldll~
3.1324 + $rm \$dlpath'
3.1325 + shlibpath_overrides_runpath=yes
3.1326 +
3.1327 + case $host_os in
3.1328 + cygwin*)
3.1329 + # Cygwin DLLs use 'cyg' prefix rather than 'lib'
3.1330 + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
3.1331 + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
3.1332 + ;;
3.1333 + mingw*)
3.1334 + # MinGW DLLs use traditional 'lib' prefix
3.1335 + soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
3.1336 + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
3.1337 + if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
3.1338 + # It is most probably a Windows format PATH printed by
3.1339 + # mingw gcc, but we are running on Cygwin. Gcc prints its search
3.1340 + # path with ; separators, and with drive letters. We can handle the
3.1341 + # drive letters (cygwin fileutils understands them), so leave them,
3.1342 + # especially as we might pass files found there to a mingw objdump,
3.1343 + # which wouldn't understand a cygwinified path. Ahh.
3.1344 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
3.1345 + else
3.1346 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
3.1347 + fi
3.1348 + ;;
3.1349 + pw32*)
3.1350 + # pw32 DLLs use 'pw' prefix rather than 'lib'
3.1351 + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
3.1352 + ;;
3.1353 + esac
3.1354 + ;;
3.1355 +
3.1356 + *)
3.1357 + library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
3.1358 + ;;
3.1359 + esac
3.1360 + dynamic_linker='Win32 ld.exe'
3.1361 + # FIXME: first we should search . and the directory the executable is in
3.1362 + shlibpath_var=PATH
3.1363 + ;;
3.1364 +
3.1365 +darwin* | rhapsody*)
3.1366 + dynamic_linker="$host_os dyld"
3.1367 + version_type=darwin
3.1368 + need_lib_prefix=no
3.1369 + need_version=no
3.1370 + library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
3.1371 + soname_spec='${libname}${release}${major}$shared_ext'
3.1372 + shlibpath_overrides_runpath=yes
3.1373 + shlibpath_var=DYLD_LIBRARY_PATH
3.1374 + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
3.1375 + # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
3.1376 + if test "$GCC" = yes; then
3.1377 + 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.1378 + else
3.1379 + sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
3.1380 + fi
3.1381 + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
3.1382 + ;;
3.1383 +
3.1384 +dgux*)
3.1385 + version_type=linux
3.1386 + need_lib_prefix=no
3.1387 + need_version=no
3.1388 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
3.1389 + soname_spec='${libname}${release}${shared_ext}$major'
3.1390 + shlibpath_var=LD_LIBRARY_PATH
3.1391 + ;;
3.1392 +
3.1393 +freebsd1*)
3.1394 + dynamic_linker=no
3.1395 + ;;
3.1396 +
3.1397 +freebsd* | dragonfly*)
3.1398 + # DragonFly does not have aout. When/if they implement a new
3.1399 + # versioning mechanism, adjust this.
3.1400 + if test -x /usr/bin/objformat; then
3.1401 + objformat=`/usr/bin/objformat`
3.1402 + else
3.1403 + case $host_os in
3.1404 + freebsd[[123]]*) objformat=aout ;;
3.1405 + *) objformat=elf ;;
3.1406 + esac
3.1407 + fi
3.1408 + version_type=freebsd-$objformat
3.1409 + case $version_type in
3.1410 + freebsd-elf*)
3.1411 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
3.1412 + need_version=no
3.1413 + need_lib_prefix=no
3.1414 + ;;
3.1415 + freebsd-*)
3.1416 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
3.1417 + need_version=yes
3.1418 + ;;
3.1419 + esac
3.1420 + shlibpath_var=LD_LIBRARY_PATH
3.1421 + case $host_os in
3.1422 + freebsd2*)
3.1423 + shlibpath_overrides_runpath=yes
3.1424 + ;;
3.1425 + freebsd3.[[01]]* | freebsdelf3.[[01]]*)
3.1426 + shlibpath_overrides_runpath=yes
3.1427 + hardcode_into_libs=yes
3.1428 + ;;
3.1429 + freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
3.1430 + freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
3.1431 + shlibpath_overrides_runpath=no
3.1432 + hardcode_into_libs=yes
3.1433 + ;;
3.1434 + freebsd*) # from 4.6 on
3.1435 + shlibpath_overrides_runpath=yes
3.1436 + hardcode_into_libs=yes
3.1437 + ;;
3.1438 + esac
3.1439 + ;;
3.1440 +
3.1441 +gnu*)
3.1442 + version_type=linux
3.1443 + need_lib_prefix=no
3.1444 + need_version=no
3.1445 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
3.1446 + soname_spec='${libname}${release}${shared_ext}$major'
3.1447 + shlibpath_var=LD_LIBRARY_PATH
3.1448 + hardcode_into_libs=yes
3.1449 + ;;
3.1450 +
3.1451 +hpux9* | hpux10* | hpux11*)
3.1452 + # Give a soname corresponding to the major version so that dld.sl refuses to
3.1453 + # link against other versions.
3.1454 + version_type=sunos
3.1455 + need_lib_prefix=no
3.1456 + need_version=no
3.1457 + case $host_cpu in
3.1458 + ia64*)
3.1459 + shrext_cmds='.so'
3.1460 + hardcode_into_libs=yes
3.1461 + dynamic_linker="$host_os dld.so"
3.1462 + shlibpath_var=LD_LIBRARY_PATH
3.1463 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
3.1464 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3.1465 + soname_spec='${libname}${release}${shared_ext}$major'
3.1466 + if test "X$HPUX_IA64_MODE" = X32; then
3.1467 + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
3.1468 + else
3.1469 + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
3.1470 + fi
3.1471 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
3.1472 + ;;
3.1473 + hppa*64*)
3.1474 + shrext_cmds='.sl'
3.1475 + hardcode_into_libs=yes
3.1476 + dynamic_linker="$host_os dld.sl"
3.1477 + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
3.1478 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
3.1479 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3.1480 + soname_spec='${libname}${release}${shared_ext}$major'
3.1481 + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
3.1482 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
3.1483 + ;;
3.1484 + *)
3.1485 + shrext_cmds='.sl'
3.1486 + dynamic_linker="$host_os dld.sl"
3.1487 + shlibpath_var=SHLIB_PATH
3.1488 + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
3.1489 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3.1490 + soname_spec='${libname}${release}${shared_ext}$major'
3.1491 + ;;
3.1492 + esac
3.1493 + # HP-UX runs *really* slowly unless shared libraries are mode 555.
3.1494 + postinstall_cmds='chmod 555 $lib'
3.1495 + ;;
3.1496 +
3.1497 +interix3*)
3.1498 + version_type=linux
3.1499 + need_lib_prefix=no
3.1500 + need_version=no
3.1501 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
3.1502 + soname_spec='${libname}${release}${shared_ext}$major'
3.1503 + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
3.1504 + shlibpath_var=LD_LIBRARY_PATH
3.1505 + shlibpath_overrides_runpath=no
3.1506 + hardcode_into_libs=yes
3.1507 + ;;
3.1508 +
3.1509 +irix5* | irix6* | nonstopux*)
3.1510 + case $host_os in
3.1511 + nonstopux*) version_type=nonstopux ;;
3.1512 + *)
3.1513 + if test "$lt_cv_prog_gnu_ld" = yes; then
3.1514 + version_type=linux
3.1515 + else
3.1516 + version_type=irix
3.1517 + fi ;;
3.1518 + esac
3.1519 + need_lib_prefix=no
3.1520 + need_version=no
3.1521 + soname_spec='${libname}${release}${shared_ext}$major'
3.1522 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
3.1523 + case $host_os in
3.1524 + irix5* | nonstopux*)
3.1525 + libsuff= shlibsuff=
3.1526 + ;;
3.1527 + *)
3.1528 + case $LD in # libtool.m4 will add one of these switches to LD
3.1529 + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
3.1530 + libsuff= shlibsuff= libmagic=32-bit;;
3.1531 + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
3.1532 + libsuff=32 shlibsuff=N32 libmagic=N32;;
3.1533 + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
3.1534 + libsuff=64 shlibsuff=64 libmagic=64-bit;;
3.1535 + *) libsuff= shlibsuff= libmagic=never-match;;
3.1536 + esac
3.1537 + ;;
3.1538 + esac
3.1539 + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
3.1540 + shlibpath_overrides_runpath=no
3.1541 + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
3.1542 + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
3.1543 + hardcode_into_libs=yes
3.1544 + ;;
3.1545 +
3.1546 +# No shared lib support for Linux oldld, aout, or coff.
3.1547 +linux*oldld* | linux*aout* | linux*coff*)
3.1548 + dynamic_linker=no
3.1549 + ;;
3.1550 +
3.1551 +# This must be Linux ELF.
3.1552 +linux* | k*bsd*-gnu)
3.1553 + version_type=linux
3.1554 + need_lib_prefix=no
3.1555 + need_version=no
3.1556 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3.1557 + soname_spec='${libname}${release}${shared_ext}$major'
3.1558 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
3.1559 + shlibpath_var=LD_LIBRARY_PATH
3.1560 + shlibpath_overrides_runpath=no
3.1561 + # This implies no fast_install, which is unacceptable.
3.1562 + # Some rework will be needed to allow for fast_install
3.1563 + # before this can be enabled.
3.1564 + hardcode_into_libs=yes
3.1565 +
3.1566 + # Append ld.so.conf contents to the search path
3.1567 + if test -f /etc/ld.so.conf; then
3.1568 + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
3.1569 + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
3.1570 + fi
3.1571 +
3.1572 + # We used to test for /lib/ld.so.1 and disable shared libraries on
3.1573 + # powerpc, because MkLinux only supported shared libraries with the
3.1574 + # GNU dynamic linker. Since this was broken with cross compilers,
3.1575 + # most powerpc-linux boxes support dynamic linking these days and
3.1576 + # people can always --disable-shared, the test was removed, and we
3.1577 + # assume the GNU/Linux dynamic linker is in use.
3.1578 + dynamic_linker='GNU/Linux ld.so'
3.1579 + ;;
3.1580 +
3.1581 +netbsdelf*-gnu)
3.1582 + version_type=linux
3.1583 + need_lib_prefix=no
3.1584 + need_version=no
3.1585 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
3.1586 + soname_spec='${libname}${release}${shared_ext}$major'
3.1587 + shlibpath_var=LD_LIBRARY_PATH
3.1588 + shlibpath_overrides_runpath=no
3.1589 + hardcode_into_libs=yes
3.1590 + dynamic_linker='NetBSD ld.elf_so'
3.1591 + ;;
3.1592 +
3.1593 +netbsd*)
3.1594 + version_type=sunos
3.1595 + need_lib_prefix=no
3.1596 + need_version=no
3.1597 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3.1598 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3.1599 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
3.1600 + dynamic_linker='NetBSD (a.out) ld.so'
3.1601 + else
3.1602 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
3.1603 + soname_spec='${libname}${release}${shared_ext}$major'
3.1604 + dynamic_linker='NetBSD ld.elf_so'
3.1605 + fi
3.1606 + shlibpath_var=LD_LIBRARY_PATH
3.1607 + shlibpath_overrides_runpath=yes
3.1608 + hardcode_into_libs=yes
3.1609 + ;;
3.1610 +
3.1611 +newsos6)
3.1612 + version_type=linux
3.1613 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3.1614 + shlibpath_var=LD_LIBRARY_PATH
3.1615 + shlibpath_overrides_runpath=yes
3.1616 + ;;
3.1617 +
3.1618 +nto-qnx*)
3.1619 + version_type=linux
3.1620 + need_lib_prefix=no
3.1621 + need_version=no
3.1622 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3.1623 + soname_spec='${libname}${release}${shared_ext}$major'
3.1624 + shlibpath_var=LD_LIBRARY_PATH
3.1625 + shlibpath_overrides_runpath=yes
3.1626 + ;;
3.1627 +
3.1628 +openbsd*)
3.1629 + version_type=sunos
3.1630 + sys_lib_dlsearch_path_spec="/usr/lib"
3.1631 + need_lib_prefix=no
3.1632 + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
3.1633 + case $host_os in
3.1634 + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
3.1635 + *) need_version=no ;;
3.1636 + esac
3.1637 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3.1638 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
3.1639 + shlibpath_var=LD_LIBRARY_PATH
3.1640 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3.1641 + case $host_os in
3.1642 + openbsd2.[[89]] | openbsd2.[[89]].*)
3.1643 + shlibpath_overrides_runpath=no
3.1644 + ;;
3.1645 + *)
3.1646 + shlibpath_overrides_runpath=yes
3.1647 + ;;
3.1648 + esac
3.1649 + else
3.1650 + shlibpath_overrides_runpath=yes
3.1651 + fi
3.1652 + ;;
3.1653 +
3.1654 +os2*)
3.1655 + libname_spec='$name'
3.1656 + shrext_cmds=".dll"
3.1657 + need_lib_prefix=no
3.1658 + library_names_spec='$libname${shared_ext} $libname.a'
3.1659 + dynamic_linker='OS/2 ld.exe'
3.1660 + shlibpath_var=LIBPATH
3.1661 + ;;
3.1662 +
3.1663 +osf3* | osf4* | osf5*)
3.1664 + version_type=osf
3.1665 + need_lib_prefix=no
3.1666 + need_version=no
3.1667 + soname_spec='${libname}${release}${shared_ext}$major'
3.1668 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3.1669 + shlibpath_var=LD_LIBRARY_PATH
3.1670 + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
3.1671 + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
3.1672 + ;;
3.1673 +
3.1674 +solaris*)
3.1675 + version_type=linux
3.1676 + need_lib_prefix=no
3.1677 + need_version=no
3.1678 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3.1679 + soname_spec='${libname}${release}${shared_ext}$major'
3.1680 + shlibpath_var=LD_LIBRARY_PATH
3.1681 + shlibpath_overrides_runpath=yes
3.1682 + hardcode_into_libs=yes
3.1683 + # ldd complains unless libraries are executable
3.1684 + postinstall_cmds='chmod +x $lib'
3.1685 + ;;
3.1686 +
3.1687 +sunos4*)
3.1688 + version_type=sunos
3.1689 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3.1690 + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
3.1691 + shlibpath_var=LD_LIBRARY_PATH
3.1692 + shlibpath_overrides_runpath=yes
3.1693 + if test "$with_gnu_ld" = yes; then
3.1694 + need_lib_prefix=no
3.1695 + fi
3.1696 + need_version=yes
3.1697 + ;;
3.1698 +
3.1699 +sysv4 | sysv4.3*)
3.1700 + version_type=linux
3.1701 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3.1702 + soname_spec='${libname}${release}${shared_ext}$major'
3.1703 + shlibpath_var=LD_LIBRARY_PATH
3.1704 + case $host_vendor in
3.1705 + sni)
3.1706 + shlibpath_overrides_runpath=no
3.1707 + need_lib_prefix=no
3.1708 + export_dynamic_flag_spec='${wl}-Blargedynsym'
3.1709 + runpath_var=LD_RUN_PATH
3.1710 + ;;
3.1711 + siemens)
3.1712 + need_lib_prefix=no
3.1713 + ;;
3.1714 + motorola)
3.1715 + need_lib_prefix=no
3.1716 + need_version=no
3.1717 + shlibpath_overrides_runpath=no
3.1718 + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
3.1719 + ;;
3.1720 + esac
3.1721 + ;;
3.1722 +
3.1723 +sysv4*MP*)
3.1724 + if test -d /usr/nec ;then
3.1725 + version_type=linux
3.1726 + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
3.1727 + soname_spec='$libname${shared_ext}.$major'
3.1728 + shlibpath_var=LD_LIBRARY_PATH
3.1729 + fi
3.1730 + ;;
3.1731 +
3.1732 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3.1733 + version_type=freebsd-elf
3.1734 + need_lib_prefix=no
3.1735 + need_version=no
3.1736 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
3.1737 + soname_spec='${libname}${release}${shared_ext}$major'
3.1738 + shlibpath_var=LD_LIBRARY_PATH
3.1739 + hardcode_into_libs=yes
3.1740 + if test "$with_gnu_ld" = yes; then
3.1741 + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
3.1742 + shlibpath_overrides_runpath=no
3.1743 + else
3.1744 + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
3.1745 + shlibpath_overrides_runpath=yes
3.1746 + case $host_os in
3.1747 + sco3.2v5*)
3.1748 + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
3.1749 + ;;
3.1750 + esac
3.1751 + fi
3.1752 + sys_lib_dlsearch_path_spec='/usr/lib'
3.1753 + ;;
3.1754 +
3.1755 +uts4*)
3.1756 + version_type=linux
3.1757 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3.1758 + soname_spec='${libname}${release}${shared_ext}$major'
3.1759 + shlibpath_var=LD_LIBRARY_PATH
3.1760 + ;;
3.1761 +
3.1762 +*)
3.1763 + dynamic_linker=no
3.1764 + ;;
3.1765 +esac
3.1766 +AC_MSG_RESULT([$dynamic_linker])
3.1767 +test "$dynamic_linker" = no && can_build_shared=no
3.1768 +
3.1769 +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
3.1770 +if test "$GCC" = yes; then
3.1771 + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
3.1772 +fi
3.1773 +])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
3.1774 +
3.1775 +
3.1776 +# _LT_AC_TAGCONFIG
3.1777 +# ----------------
3.1778 +AC_DEFUN([_LT_AC_TAGCONFIG],
3.1779 +[AC_ARG_WITH([tags],
3.1780 + [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
3.1781 + [include additional configurations @<:@automatic@:>@])],
3.1782 + [tagnames="$withval"])
3.1783 +
3.1784 +if test -f "$ltmain" && test -n "$tagnames"; then
3.1785 + if test ! -f "${ofile}"; then
3.1786 + AC_MSG_WARN([output file `$ofile' does not exist])
3.1787 + fi
3.1788 +
3.1789 + if test -z "$LTCC"; then
3.1790 + eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
3.1791 + if test -z "$LTCC"; then
3.1792 + AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
3.1793 + else
3.1794 + AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
3.1795 + fi
3.1796 + fi
3.1797 + if test -z "$LTCFLAGS"; then
3.1798 + eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
3.1799 + fi
3.1800 +
3.1801 + # Extract list of available tagged configurations in $ofile.
3.1802 + # Note that this assumes the entire list is on one line.
3.1803 + available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
3.1804 +
3.1805 + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3.1806 + for tagname in $tagnames; do
3.1807 + IFS="$lt_save_ifs"
3.1808 + # Check whether tagname contains only valid characters
3.1809 + case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
3.1810 + "") ;;
3.1811 + *) AC_MSG_ERROR([invalid tag name: $tagname])
3.1812 + ;;
3.1813 + esac
3.1814 +
3.1815 + if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
3.1816 + then
3.1817 + AC_MSG_ERROR([tag name \"$tagname\" already exists])
3.1818 + fi
3.1819 +
3.1820 + # Update the list of available tags.
3.1821 + if test -n "$tagname"; then
3.1822 + echo appending configuration tag \"$tagname\" to $ofile
3.1823 +
3.1824 + case $tagname in
3.1825 + CXX)
3.1826 + if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
3.1827 + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
3.1828 + (test "X$CXX" != "Xg++"))) ; then
3.1829 + AC_LIBTOOL_LANG_CXX_CONFIG
3.1830 + else
3.1831 + tagname=""
3.1832 + fi
3.1833 + ;;
3.1834 +
3.1835 + F77)
3.1836 + if test -n "$F77" && test "X$F77" != "Xno"; then
3.1837 + AC_LIBTOOL_LANG_F77_CONFIG
3.1838 + else
3.1839 + tagname=""
3.1840 + fi
3.1841 + ;;
3.1842 +
3.1843 + GCJ)
3.1844 + if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
3.1845 + AC_LIBTOOL_LANG_GCJ_CONFIG
3.1846 + else
3.1847 + tagname=""
3.1848 + fi
3.1849 + ;;
3.1850 +
3.1851 + RC)
3.1852 + AC_LIBTOOL_LANG_RC_CONFIG
3.1853 + ;;
3.1854 +
3.1855 + *)
3.1856 + AC_MSG_ERROR([Unsupported tag name: $tagname])
3.1857 + ;;
3.1858 + esac
3.1859 +
3.1860 + # Append the new tag name to the list of available tags.
3.1861 + if test -n "$tagname" ; then
3.1862 + available_tags="$available_tags $tagname"
3.1863 + fi
3.1864 + fi
3.1865 + done
3.1866 + IFS="$lt_save_ifs"
3.1867 +
3.1868 + # Now substitute the updated list of available tags.
3.1869 + if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
3.1870 + mv "${ofile}T" "$ofile"
3.1871 + chmod +x "$ofile"
3.1872 + else
3.1873 + rm -f "${ofile}T"
3.1874 + AC_MSG_ERROR([unable to update list of available tagged configurations.])
3.1875 + fi
3.1876 +fi
3.1877 +])# _LT_AC_TAGCONFIG
3.1878 +
3.1879 +
3.1880 +# AC_LIBTOOL_DLOPEN
3.1881 +# -----------------
3.1882 +# enable checks for dlopen support
3.1883 +AC_DEFUN([AC_LIBTOOL_DLOPEN],
3.1884 + [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
3.1885 +])# AC_LIBTOOL_DLOPEN
3.1886 +
3.1887 +
3.1888 +# AC_LIBTOOL_WIN32_DLL
3.1889 +# --------------------
3.1890 +# declare package support for building win32 DLLs
3.1891 +AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
3.1892 +[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
3.1893 +])# AC_LIBTOOL_WIN32_DLL
3.1894 +
3.1895 +
3.1896 +# AC_ENABLE_SHARED([DEFAULT])
3.1897 +# ---------------------------
3.1898 +# implement the --enable-shared flag
3.1899 +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3.1900 +AC_DEFUN([AC_ENABLE_SHARED],
3.1901 +[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
3.1902 +AC_ARG_ENABLE([shared],
3.1903 + [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
3.1904 + [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
3.1905 + [p=${PACKAGE-default}
3.1906 + case $enableval in
3.1907 + yes) enable_shared=yes ;;
3.1908 + no) enable_shared=no ;;
3.1909 + *)
3.1910 + enable_shared=no
3.1911 + # Look at the argument we got. We use all the common list separators.
3.1912 + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3.1913 + for pkg in $enableval; do
3.1914 + IFS="$lt_save_ifs"
3.1915 + if test "X$pkg" = "X$p"; then
3.1916 + enable_shared=yes
3.1917 + fi
3.1918 + done
3.1919 + IFS="$lt_save_ifs"
3.1920 + ;;
3.1921 + esac],
3.1922 + [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
3.1923 +])# AC_ENABLE_SHARED
3.1924 +
3.1925 +
3.1926 +# AC_DISABLE_SHARED
3.1927 +# -----------------
3.1928 +# set the default shared flag to --disable-shared
3.1929 +AC_DEFUN([AC_DISABLE_SHARED],
3.1930 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3.1931 +AC_ENABLE_SHARED(no)
3.1932 +])# AC_DISABLE_SHARED
3.1933 +
3.1934 +
3.1935 +# AC_ENABLE_STATIC([DEFAULT])
3.1936 +# ---------------------------
3.1937 +# implement the --enable-static flag
3.1938 +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3.1939 +AC_DEFUN([AC_ENABLE_STATIC],
3.1940 +[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
3.1941 +AC_ARG_ENABLE([static],
3.1942 + [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
3.1943 + [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
3.1944 + [p=${PACKAGE-default}
3.1945 + case $enableval in
3.1946 + yes) enable_static=yes ;;
3.1947 + no) enable_static=no ;;
3.1948 + *)
3.1949 + enable_static=no
3.1950 + # Look at the argument we got. We use all the common list separators.
3.1951 + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3.1952 + for pkg in $enableval; do
3.1953 + IFS="$lt_save_ifs"
3.1954 + if test "X$pkg" = "X$p"; then
3.1955 + enable_static=yes
3.1956 + fi
3.1957 + done
3.1958 + IFS="$lt_save_ifs"
3.1959 + ;;
3.1960 + esac],
3.1961 + [enable_static=]AC_ENABLE_STATIC_DEFAULT)
3.1962 +])# AC_ENABLE_STATIC
3.1963 +
3.1964 +
3.1965 +# AC_DISABLE_STATIC
3.1966 +# -----------------
3.1967 +# set the default static flag to --disable-static
3.1968 +AC_DEFUN([AC_DISABLE_STATIC],
3.1969 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3.1970 +AC_ENABLE_STATIC(no)
3.1971 +])# AC_DISABLE_STATIC
3.1972 +
3.1973 +
3.1974 +# AC_ENABLE_FAST_INSTALL([DEFAULT])
3.1975 +# ---------------------------------
3.1976 +# implement the --enable-fast-install flag
3.1977 +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3.1978 +AC_DEFUN([AC_ENABLE_FAST_INSTALL],
3.1979 +[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
3.1980 +AC_ARG_ENABLE([fast-install],
3.1981 + [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
3.1982 + [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
3.1983 + [p=${PACKAGE-default}
3.1984 + case $enableval in
3.1985 + yes) enable_fast_install=yes ;;
3.1986 + no) enable_fast_install=no ;;
3.1987 + *)
3.1988 + enable_fast_install=no
3.1989 + # Look at the argument we got. We use all the common list separators.
3.1990 + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3.1991 + for pkg in $enableval; do
3.1992 + IFS="$lt_save_ifs"
3.1993 + if test "X$pkg" = "X$p"; then
3.1994 + enable_fast_install=yes
3.1995 + fi
3.1996 + done
3.1997 + IFS="$lt_save_ifs"
3.1998 + ;;
3.1999 + esac],
3.2000 + [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
3.2001 +])# AC_ENABLE_FAST_INSTALL
3.2002 +
3.2003 +
3.2004 +# AC_DISABLE_FAST_INSTALL
3.2005 +# -----------------------
3.2006 +# set the default to --disable-fast-install
3.2007 +AC_DEFUN([AC_DISABLE_FAST_INSTALL],
3.2008 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3.2009 +AC_ENABLE_FAST_INSTALL(no)
3.2010 +])# AC_DISABLE_FAST_INSTALL
3.2011 +
3.2012 +
3.2013 +# AC_LIBTOOL_PICMODE([MODE])
3.2014 +# --------------------------
3.2015 +# implement the --with-pic flag
3.2016 +# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
3.2017 +AC_DEFUN([AC_LIBTOOL_PICMODE],
3.2018 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3.2019 +pic_mode=ifelse($#,1,$1,default)
3.2020 +])# AC_LIBTOOL_PICMODE
3.2021 +
3.2022 +
3.2023 +# AC_PROG_EGREP
3.2024 +# -------------
3.2025 +# This is predefined starting with Autoconf 2.54, so this conditional
3.2026 +# definition can be removed once we require Autoconf 2.54 or later.
3.2027 +m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
3.2028 +[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
3.2029 + [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3.2030 + then ac_cv_prog_egrep='grep -E'
3.2031 + else ac_cv_prog_egrep='egrep'
3.2032 + fi])
3.2033 + EGREP=$ac_cv_prog_egrep
3.2034 + AC_SUBST([EGREP])
3.2035 +])])
3.2036 +
3.2037 +
3.2038 +# AC_PATH_TOOL_PREFIX
3.2039 +# -------------------
3.2040 +# find a file program which can recognise shared library
3.2041 +AC_DEFUN([AC_PATH_TOOL_PREFIX],
3.2042 +[AC_REQUIRE([AC_PROG_EGREP])dnl
3.2043 +AC_MSG_CHECKING([for $1])
3.2044 +AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
3.2045 +[case $MAGIC_CMD in
3.2046 +[[\\/*] | ?:[\\/]*])
3.2047 + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3.2048 + ;;
3.2049 +*)
3.2050 + lt_save_MAGIC_CMD="$MAGIC_CMD"
3.2051 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3.2052 +dnl $ac_dummy forces splitting on constant user-supplied paths.
3.2053 +dnl POSIX.2 word splitting is done only on the output of word expansions,
3.2054 +dnl not every word. This closes a longstanding sh security hole.
3.2055 + ac_dummy="ifelse([$2], , $PATH, [$2])"
3.2056 + for ac_dir in $ac_dummy; do
3.2057 + IFS="$lt_save_ifs"
3.2058 + test -z "$ac_dir" && ac_dir=.
3.2059 + if test -f $ac_dir/$1; then
3.2060 + lt_cv_path_MAGIC_CMD="$ac_dir/$1"
3.2061 + if test -n "$file_magic_test_file"; then
3.2062 + case $deplibs_check_method in
3.2063 + "file_magic "*)
3.2064 + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
3.2065 + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3.2066 + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3.2067 + $EGREP "$file_magic_regex" > /dev/null; then
3.2068 + :
3.2069 + else
3.2070 + cat <<EOF 1>&2
3.2071 +
3.2072 +*** Warning: the command libtool uses to detect shared libraries,
3.2073 +*** $file_magic_cmd, produces output that libtool cannot recognize.
3.2074 +*** The result is that libtool may fail to recognize shared libraries
3.2075 +*** as such. This will affect the creation of libtool libraries that
3.2076 +*** depend on shared libraries, but programs linked with such libtool
3.2077 +*** libraries will work regardless of this problem. Nevertheless, you
3.2078 +*** may want to report the problem to your system manager and/or to
3.2079 +*** bug-libtool@gnu.org
3.2080 +
3.2081 +EOF
3.2082 + fi ;;
3.2083 + esac
3.2084 + fi
3.2085 + break
3.2086 + fi
3.2087 + done
3.2088 + IFS="$lt_save_ifs"
3.2089 + MAGIC_CMD="$lt_save_MAGIC_CMD"
3.2090 + ;;
3.2091 +esac])
3.2092 +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3.2093 +if test -n "$MAGIC_CMD"; then
3.2094 + AC_MSG_RESULT($MAGIC_CMD)
3.2095 +else
3.2096 + AC_MSG_RESULT(no)
3.2097 +fi
3.2098 +])# AC_PATH_TOOL_PREFIX
3.2099 +
3.2100 +
3.2101 +# AC_PATH_MAGIC
3.2102 +# -------------
3.2103 +# find a file program which can recognise a shared library
3.2104 +AC_DEFUN([AC_PATH_MAGIC],
3.2105 +[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
3.2106 +if test -z "$lt_cv_path_MAGIC_CMD"; then
3.2107 + if test -n "$ac_tool_prefix"; then
3.2108 + AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
3.2109 + else
3.2110 + MAGIC_CMD=:
3.2111 + fi
3.2112 +fi
3.2113 +])# AC_PATH_MAGIC
3.2114 +
3.2115 +
3.2116 +# AC_PROG_LD
3.2117 +# ----------
3.2118 +# find the pathname to the GNU or non-GNU linker
3.2119 +AC_DEFUN([AC_PROG_LD],
3.2120 +[AC_ARG_WITH([gnu-ld],
3.2121 + [AC_HELP_STRING([--with-gnu-ld],
3.2122 + [assume the C compiler uses GNU ld @<:@default=no@:>@])],
3.2123 + [test "$withval" = no || with_gnu_ld=yes],
3.2124 + [with_gnu_ld=no])
3.2125 +AC_REQUIRE([LT_AC_PROG_SED])dnl
3.2126 +AC_REQUIRE([AC_PROG_CC])dnl
3.2127 +AC_REQUIRE([AC_CANONICAL_HOST])dnl
3.2128 +AC_REQUIRE([AC_CANONICAL_BUILD])dnl
3.2129 +ac_prog=ld
3.2130 +if test "$GCC" = yes; then
3.2131 + # Check if gcc -print-prog-name=ld gives a path.
3.2132 + AC_MSG_CHECKING([for ld used by $CC])
3.2133 + case $host in
3.2134 + *-*-mingw*)
3.2135 + # gcc leaves a trailing carriage return which upsets mingw
3.2136 + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3.2137 + *)
3.2138 + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3.2139 + esac
3.2140 + case $ac_prog in
3.2141 + # Accept absolute paths.
3.2142 + [[\\/]]* | ?:[[\\/]]*)
3.2143 + re_direlt='/[[^/]][[^/]]*/\.\./'
3.2144 + # Canonicalize the pathname of ld
3.2145 + ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3.2146 + while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3.2147 + ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3.2148 + done
3.2149 + test -z "$LD" && LD="$ac_prog"
3.2150 + ;;
3.2151 + "")
3.2152 + # If it fails, then pretend we aren't using GCC.
3.2153 + ac_prog=ld
3.2154 + ;;
3.2155 + *)
3.2156 + # If it is relative, then search for the first ld in PATH.
3.2157 + with_gnu_ld=unknown
3.2158 + ;;
3.2159 + esac
3.2160 +elif test "$with_gnu_ld" = yes; then
3.2161 + AC_MSG_CHECKING([for GNU ld])
3.2162 +else
3.2163 + AC_MSG_CHECKING([for non-GNU ld])
3.2164 +fi
3.2165 +AC_CACHE_VAL(lt_cv_path_LD,
3.2166 +[if test -z "$LD"; then
3.2167 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3.2168 + for ac_dir in $PATH; do
3.2169 + IFS="$lt_save_ifs"
3.2170 + test -z "$ac_dir" && ac_dir=.
3.2171 + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3.2172 + lt_cv_path_LD="$ac_dir/$ac_prog"
3.2173 + # Check to see if the program is GNU ld. I'd rather use --version,
3.2174 + # but apparently some variants of GNU ld only accept -v.
3.2175 + # Break only if it was the GNU/non-GNU ld that we prefer.
3.2176 + case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3.2177 + *GNU* | *'with BFD'*)
3.2178 + test "$with_gnu_ld" != no && break
3.2179 + ;;
3.2180 + *)
3.2181 + test "$with_gnu_ld" != yes && break
3.2182 + ;;
3.2183 + esac
3.2184 + fi
3.2185 + done
3.2186 + IFS="$lt_save_ifs"
3.2187 +else
3.2188 + lt_cv_path_LD="$LD" # Let the user override the test with a path.
3.2189 +fi])
3.2190 +LD="$lt_cv_path_LD"
3.2191 +if test -n "$LD"; then
3.2192 + AC_MSG_RESULT($LD)
3.2193 +else
3.2194 + AC_MSG_RESULT(no)
3.2195 +fi
3.2196 +test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
3.2197 +AC_PROG_LD_GNU
3.2198 +])# AC_PROG_LD
3.2199 +
3.2200 +
3.2201 +# AC_PROG_LD_GNU
3.2202 +# --------------
3.2203 +AC_DEFUN([AC_PROG_LD_GNU],
3.2204 +[AC_REQUIRE([AC_PROG_EGREP])dnl
3.2205 +AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
3.2206 +[# I'd rather use --version here, but apparently some GNU lds only accept -v.
3.2207 +case `$LD -v 2>&1 </dev/null` in
3.2208 +*GNU* | *'with BFD'*)
3.2209 + lt_cv_prog_gnu_ld=yes
3.2210 + ;;
3.2211 +*)
3.2212 + lt_cv_prog_gnu_ld=no
3.2213 + ;;
3.2214 +esac])
3.2215 +with_gnu_ld=$lt_cv_prog_gnu_ld
3.2216 +])# AC_PROG_LD_GNU
3.2217 +
3.2218 +
3.2219 +# AC_PROG_LD_RELOAD_FLAG
3.2220 +# ----------------------
3.2221 +# find reload flag for linker
3.2222 +# -- PORTME Some linkers may need a different reload flag.
3.2223 +AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
3.2224 +[AC_CACHE_CHECK([for $LD option to reload object files],
3.2225 + lt_cv_ld_reload_flag,
3.2226 + [lt_cv_ld_reload_flag='-r'])
3.2227 +reload_flag=$lt_cv_ld_reload_flag
3.2228 +case $reload_flag in
3.2229 +"" | " "*) ;;
3.2230 +*) reload_flag=" $reload_flag" ;;
3.2231 +esac
3.2232 +reload_cmds='$LD$reload_flag -o $output$reload_objs'
3.2233 +case $host_os in
3.2234 + darwin*)
3.2235 + if test "$GCC" = yes; then
3.2236 + reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3.2237 + else
3.2238 + reload_cmds='$LD$reload_flag -o $output$reload_objs'
3.2239 + fi
3.2240 + ;;
3.2241 +esac
3.2242 +])# AC_PROG_LD_RELOAD_FLAG
3.2243 +
3.2244 +
3.2245 +# AC_DEPLIBS_CHECK_METHOD
3.2246 +# -----------------------
3.2247 +# how to check for library dependencies
3.2248 +# -- PORTME fill in with the dynamic library characteristics
3.2249 +AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
3.2250 +[AC_CACHE_CHECK([how to recognise dependent libraries],
3.2251 +lt_cv_deplibs_check_method,
3.2252 +[lt_cv_file_magic_cmd='$MAGIC_CMD'
3.2253 +lt_cv_file_magic_test_file=
3.2254 +lt_cv_deplibs_check_method='unknown'
3.2255 +# Need to set the preceding variable on all platforms that support
3.2256 +# interlibrary dependencies.
3.2257 +# 'none' -- dependencies not supported.
3.2258 +# `unknown' -- same as none, but documents that we really don't know.
3.2259 +# 'pass_all' -- all dependencies passed with no checks.
3.2260 +# 'test_compile' -- check by making test program.
3.2261 +# 'file_magic [[regex]]' -- check by looking for files in library path
3.2262 +# which responds to the $file_magic_cmd with a given extended regex.
3.2263 +# If you have `file' or equivalent on your system and you're not sure
3.2264 +# whether `pass_all' will *always* work, you probably want this one.
3.2265 +
3.2266 +case $host_os in
3.2267 +aix4* | aix5*)
3.2268 + lt_cv_deplibs_check_method=pass_all
3.2269 + ;;
3.2270 +
3.2271 +beos*)
3.2272 + lt_cv_deplibs_check_method=pass_all
3.2273 + ;;
3.2274 +
3.2275 +bsdi[[45]]*)
3.2276 + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
3.2277 + lt_cv_file_magic_cmd='/usr/bin/file -L'
3.2278 + lt_cv_file_magic_test_file=/shlib/libc.so
3.2279 + ;;
3.2280 +
3.2281 +cygwin*)
3.2282 + # func_win32_libid is a shell function defined in ltmain.sh
3.2283 + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3.2284 + lt_cv_file_magic_cmd='func_win32_libid'
3.2285 + ;;
3.2286 +
3.2287 +mingw* | pw32*)
3.2288 + # Base MSYS/MinGW do not provide the 'file' command needed by
3.2289 + # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3.2290 + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3.2291 + lt_cv_file_magic_cmd='$OBJDUMP -f'
3.2292 + ;;
3.2293 +
3.2294 +darwin* | rhapsody*)
3.2295 + lt_cv_deplibs_check_method=pass_all
3.2296 + ;;
3.2297 +
3.2298 +freebsd* | dragonfly*)
3.2299 + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3.2300 + case $host_cpu in
3.2301 + i*86 )
3.2302 + # Not sure whether the presence of OpenBSD here was a mistake.
3.2303 + # Let's accept both of them until this is cleared up.
3.2304 + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
3.2305 + lt_cv_file_magic_cmd=/usr/bin/file
3.2306 + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3.2307 + ;;
3.2308 + esac
3.2309 + else
3.2310 + lt_cv_deplibs_check_method=pass_all
3.2311 + fi
3.2312 + ;;
3.2313 +
3.2314 +gnu*)
3.2315 + lt_cv_deplibs_check_method=pass_all
3.2316 + ;;
3.2317 +
3.2318 +hpux10.20* | hpux11*)
3.2319 + lt_cv_file_magic_cmd=/usr/bin/file
3.2320 + case $host_cpu in
3.2321 + ia64*)
3.2322 + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
3.2323 + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3.2324 + ;;
3.2325 + hppa*64*)
3.2326 + [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.2327 + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3.2328 + ;;
3.2329 + *)
3.2330 + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
3.2331 + lt_cv_file_magic_test_file=/usr/lib/libc.sl
3.2332 + ;;
3.2333 + esac
3.2334 + ;;
3.2335 +
3.2336 +interix3*)
3.2337 + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3.2338 + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
3.2339 + ;;
3.2340 +
3.2341 +irix5* | irix6* | nonstopux*)
3.2342 + case $LD in
3.2343 + *-32|*"-32 ") libmagic=32-bit;;
3.2344 + *-n32|*"-n32 ") libmagic=N32;;
3.2345 + *-64|*"-64 ") libmagic=64-bit;;
3.2346 + *) libmagic=never-match;;
3.2347 + esac
3.2348 + lt_cv_deplibs_check_method=pass_all
3.2349 + ;;
3.2350 +
3.2351 +# This must be Linux ELF.
3.2352 +linux* | k*bsd*-gnu)
3.2353 + lt_cv_deplibs_check_method=pass_all
3.2354 + ;;
3.2355 +
3.2356 +netbsd* | netbsdelf*-gnu)
3.2357 + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3.2358 + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3.2359 + else
3.2360 + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
3.2361 + fi
3.2362 + ;;
3.2363 +
3.2364 +newos6*)
3.2365 + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
3.2366 + lt_cv_file_magic_cmd=/usr/bin/file
3.2367 + lt_cv_file_magic_test_file=/usr/lib/libnls.so
3.2368 + ;;
3.2369 +
3.2370 +nto-qnx*)
3.2371 + lt_cv_deplibs_check_method=unknown
3.2372 + ;;
3.2373 +
3.2374 +openbsd*)
3.2375 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3.2376 + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
3.2377 + else
3.2378 + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3.2379 + fi
3.2380 + ;;
3.2381 +
3.2382 +osf3* | osf4* | osf5*)
3.2383 + lt_cv_deplibs_check_method=pass_all
3.2384 + ;;
3.2385 +
3.2386 +solaris*)
3.2387 + lt_cv_deplibs_check_method=pass_all
3.2388 + ;;
3.2389 +
3.2390 +sysv4 | sysv4.3*)
3.2391 + case $host_vendor in
3.2392 + motorola)
3.2393 + 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.2394 + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3.2395 + ;;
3.2396 + ncr)
3.2397 + lt_cv_deplibs_check_method=pass_all
3.2398 + ;;
3.2399 + sequent)
3.2400 + lt_cv_file_magic_cmd='/bin/file'
3.2401 + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
3.2402 + ;;
3.2403 + sni)
3.2404 + lt_cv_file_magic_cmd='/bin/file'
3.2405 + lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
3.2406 + lt_cv_file_magic_test_file=/lib/libc.so
3.2407 + ;;
3.2408 + siemens)
3.2409 + lt_cv_deplibs_check_method=pass_all
3.2410 + ;;
3.2411 + pc)
3.2412 + lt_cv_deplibs_check_method=pass_all
3.2413 + ;;
3.2414 + esac
3.2415 + ;;
3.2416 +
3.2417 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3.2418 + lt_cv_deplibs_check_method=pass_all
3.2419 + ;;
3.2420 +esac
3.2421 +])
3.2422 +file_magic_cmd=$lt_cv_file_magic_cmd
3.2423 +deplibs_check_method=$lt_cv_deplibs_check_method
3.2424 +test -z "$deplibs_check_method" && deplibs_check_method=unknown
3.2425 +])# AC_DEPLIBS_CHECK_METHOD
3.2426 +
3.2427 +
3.2428 +# AC_PROG_NM
3.2429 +# ----------
3.2430 +# find the pathname to a BSD-compatible name lister
3.2431 +AC_DEFUN([AC_PROG_NM],
3.2432 +[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
3.2433 +[if test -n "$NM"; then
3.2434 + # Let the user override the test.
3.2435 + lt_cv_path_NM="$NM"
3.2436 +else
3.2437 + lt_nm_to_check="${ac_tool_prefix}nm"
3.2438 + if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3.2439 + lt_nm_to_check="$lt_nm_to_check nm"
3.2440 + fi
3.2441 + for lt_tmp_nm in $lt_nm_to_check; do
3.2442 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3.2443 + for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3.2444 + IFS="$lt_save_ifs"
3.2445 + test -z "$ac_dir" && ac_dir=.
3.2446 + tmp_nm="$ac_dir/$lt_tmp_nm"
3.2447 + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3.2448 + # Check to see if the nm accepts a BSD-compat flag.
3.2449 + # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3.2450 + # nm: unknown option "B" ignored
3.2451 + # Tru64's nm complains that /dev/null is an invalid object file
3.2452 + case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3.2453 + */dev/null* | *'Invalid file or object type'*)
3.2454 + lt_cv_path_NM="$tmp_nm -B"
3.2455 + break
3.2456 + ;;
3.2457 + *)
3.2458 + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3.2459 + */dev/null*)
3.2460 + lt_cv_path_NM="$tmp_nm -p"
3.2461 + break
3.2462 + ;;
3.2463 + *)
3.2464 + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3.2465 + continue # so that we can try to find one that supports BSD flags
3.2466 + ;;
3.2467 + esac
3.2468 + ;;
3.2469 + esac
3.2470 + fi
3.2471 + done
3.2472 + IFS="$lt_save_ifs"
3.2473 + done
3.2474 + test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3.2475 +fi])
3.2476 +NM="$lt_cv_path_NM"
3.2477 +])# AC_PROG_NM
3.2478 +
3.2479 +
3.2480 +# AC_CHECK_LIBM
3.2481 +# -------------
3.2482 +# check for math library
3.2483 +AC_DEFUN([AC_CHECK_LIBM],
3.2484 +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
3.2485 +LIBM=
3.2486 +case $host in
3.2487 +*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
3.2488 + # These system don't have libm, or don't need it
3.2489 + ;;
3.2490 +*-ncr-sysv4.3*)
3.2491 + AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
3.2492 + AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
3.2493 + ;;
3.2494 +*)
3.2495 + AC_CHECK_LIB(m, cos, LIBM="-lm")
3.2496 + ;;
3.2497 +esac
3.2498 +])# AC_CHECK_LIBM
3.2499 +
3.2500 +
3.2501 +# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
3.2502 +# -----------------------------------
3.2503 +# sets LIBLTDL to the link flags for the libltdl convenience library and
3.2504 +# LTDLINCL to the include flags for the libltdl header and adds
3.2505 +# --enable-ltdl-convenience to the configure arguments. Note that
3.2506 +# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
3.2507 +# it is assumed to be `libltdl'. LIBLTDL will be prefixed with
3.2508 +# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
3.2509 +# (note the single quotes!). If your package is not flat and you're not
3.2510 +# using automake, define top_builddir and top_srcdir appropriately in
3.2511 +# the Makefiles.
3.2512 +AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
3.2513 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3.2514 + case $enable_ltdl_convenience in
3.2515 + no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
3.2516 + "") enable_ltdl_convenience=yes
3.2517 + ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
3.2518 + esac
3.2519 + LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
3.2520 + LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
3.2521 + # For backwards non-gettext consistent compatibility...
3.2522 + INCLTDL="$LTDLINCL"
3.2523 +])# AC_LIBLTDL_CONVENIENCE
3.2524 +
3.2525 +
3.2526 +# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
3.2527 +# -----------------------------------
3.2528 +# sets LIBLTDL to the link flags for the libltdl installable library and
3.2529 +# LTDLINCL to the include flags for the libltdl header and adds
3.2530 +# --enable-ltdl-install to the configure arguments. Note that
3.2531 +# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
3.2532 +# and an installed libltdl is not found, it is assumed to be `libltdl'.
3.2533 +# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
3.2534 +# '${top_srcdir}/' (note the single quotes!). If your package is not
3.2535 +# flat and you're not using automake, define top_builddir and top_srcdir
3.2536 +# appropriately in the Makefiles.
3.2537 +# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
3.2538 +AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
3.2539 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3.2540 + AC_CHECK_LIB(ltdl, lt_dlinit,
3.2541 + [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
3.2542 + [if test x"$enable_ltdl_install" = xno; then
3.2543 + AC_MSG_WARN([libltdl not installed, but installation disabled])
3.2544 + else
3.2545 + enable_ltdl_install=yes
3.2546 + fi
3.2547 + ])
3.2548 + if test x"$enable_ltdl_install" = x"yes"; then
3.2549 + ac_configure_args="$ac_configure_args --enable-ltdl-install"
3.2550 + LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
3.2551 + LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
3.2552 + else
3.2553 + ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
3.2554 + LIBLTDL="-lltdl"
3.2555 + LTDLINCL=
3.2556 + fi
3.2557 + # For backwards non-gettext consistent compatibility...
3.2558 + INCLTDL="$LTDLINCL"
3.2559 +])# AC_LIBLTDL_INSTALLABLE
3.2560 +
3.2561 +
3.2562 +# AC_LIBTOOL_CXX
3.2563 +# --------------
3.2564 +# enable support for C++ libraries
3.2565 +AC_DEFUN([AC_LIBTOOL_CXX],
3.2566 +[AC_REQUIRE([_LT_AC_LANG_CXX])
3.2567 +])# AC_LIBTOOL_CXX
3.2568 +
3.2569 +
3.2570 +# _LT_AC_LANG_CXX
3.2571 +# ---------------
3.2572 +AC_DEFUN([_LT_AC_LANG_CXX],
3.2573 +[AC_REQUIRE([AC_PROG_CXX])
3.2574 +AC_REQUIRE([_LT_AC_PROG_CXXCPP])
3.2575 +_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
3.2576 +])# _LT_AC_LANG_CXX
3.2577 +
3.2578 +# _LT_AC_PROG_CXXCPP
3.2579 +# ------------------
3.2580 +AC_DEFUN([_LT_AC_PROG_CXXCPP],
3.2581 +[
3.2582 +AC_REQUIRE([AC_PROG_CXX])
3.2583 +if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
3.2584 + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
3.2585 + (test "X$CXX" != "Xg++"))) ; then
3.2586 + AC_PROG_CXXCPP
3.2587 +fi
3.2588 +])# _LT_AC_PROG_CXXCPP
3.2589 +
3.2590 +# AC_LIBTOOL_F77
3.2591 +# --------------
3.2592 +# enable support for Fortran 77 libraries
3.2593 +AC_DEFUN([AC_LIBTOOL_F77],
3.2594 +[AC_REQUIRE([_LT_AC_LANG_F77])
3.2595 +])# AC_LIBTOOL_F77
3.2596 +
3.2597 +
3.2598 +# _LT_AC_LANG_F77
3.2599 +# ---------------
3.2600 +AC_DEFUN([_LT_AC_LANG_F77],
3.2601 +[AC_REQUIRE([AC_PROG_F77])
3.2602 +_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
3.2603 +])# _LT_AC_LANG_F77
3.2604 +
3.2605 +
3.2606 +# AC_LIBTOOL_GCJ
3.2607 +# --------------
3.2608 +# enable support for GCJ libraries
3.2609 +AC_DEFUN([AC_LIBTOOL_GCJ],
3.2610 +[AC_REQUIRE([_LT_AC_LANG_GCJ])
3.2611 +])# AC_LIBTOOL_GCJ
3.2612 +
3.2613 +
3.2614 +# _LT_AC_LANG_GCJ
3.2615 +# ---------------
3.2616 +AC_DEFUN([_LT_AC_LANG_GCJ],
3.2617 +[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
3.2618 + [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
3.2619 + [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
3.2620 + [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
3.2621 + [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
3.2622 + [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
3.2623 +_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
3.2624 +])# _LT_AC_LANG_GCJ
3.2625 +
3.2626 +
3.2627 +# AC_LIBTOOL_RC
3.2628 +# -------------
3.2629 +# enable support for Windows resource files
3.2630 +AC_DEFUN([AC_LIBTOOL_RC],
3.2631 +[AC_REQUIRE([LT_AC_PROG_RC])
3.2632 +_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
3.2633 +])# AC_LIBTOOL_RC
3.2634 +
3.2635 +
3.2636 +# AC_LIBTOOL_LANG_C_CONFIG
3.2637 +# ------------------------
3.2638 +# Ensure that the configuration vars for the C compiler are
3.2639 +# suitably defined. Those variables are subsequently used by
3.2640 +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3.2641 +AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
3.2642 +AC_DEFUN([_LT_AC_LANG_C_CONFIG],
3.2643 +[lt_save_CC="$CC"
3.2644 +AC_LANG_PUSH(C)
3.2645 +
3.2646 +# Source file extension for C test sources.
3.2647 +ac_ext=c
3.2648 +
3.2649 +# Object file extension for compiled C test sources.
3.2650 +objext=o
3.2651 +_LT_AC_TAGVAR(objext, $1)=$objext
3.2652 +
3.2653 +# Code to be used in simple compile tests
3.2654 +lt_simple_compile_test_code="int some_variable = 0;\n"
3.2655 +
3.2656 +# Code to be used in simple link tests
3.2657 +lt_simple_link_test_code='int main(){return(0);}\n'
3.2658 +
3.2659 +_LT_AC_SYS_COMPILER
3.2660 +
3.2661 +# save warnings/boilerplate of simple test code
3.2662 +_LT_COMPILER_BOILERPLATE
3.2663 +_LT_LINKER_BOILERPLATE
3.2664 +
3.2665 +## CAVEAT EMPTOR:
3.2666 +## There is no encapsulation within the following macros, do not change
3.2667 +## the running order or otherwise move them around unless you know exactly
3.2668 +## what you are doing...
3.2669 +AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
3.2670 +AC_LIBTOOL_PROG_COMPILER_PIC($1)
3.2671 +AC_LIBTOOL_PROG_CC_C_O($1)
3.2672 +AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
3.2673 +AC_LIBTOOL_PROG_LD_SHLIBS($1)
3.2674 +AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3.2675 +AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3.2676 +AC_LIBTOOL_SYS_LIB_STRIP
3.2677 +AC_LIBTOOL_DLOPEN_SELF
3.2678 +
3.2679 +# Report which library types will actually be built
3.2680 +AC_MSG_CHECKING([if libtool supports shared libraries])
3.2681 +AC_MSG_RESULT([$can_build_shared])
3.2682 +
3.2683 +AC_MSG_CHECKING([whether to build shared libraries])
3.2684 +test "$can_build_shared" = "no" && enable_shared=no
3.2685 +
3.2686 +# On AIX, shared libraries and static libraries use the same namespace, and
3.2687 +# are all built from PIC.
3.2688 +case $host_os in
3.2689 +aix3*)
3.2690 + test "$enable_shared" = yes && enable_static=no
3.2691 + if test -n "$RANLIB"; then
3.2692 + archive_cmds="$archive_cmds~\$RANLIB \$lib"
3.2693 + postinstall_cmds='$RANLIB $lib'
3.2694 + fi
3.2695 + ;;
3.2696 +
3.2697 +aix4* | aix5*)
3.2698 + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
3.2699 + test "$enable_shared" = yes && enable_static=no
3.2700 + fi
3.2701 + ;;
3.2702 +esac
3.2703 +AC_MSG_RESULT([$enable_shared])
3.2704 +
3.2705 +AC_MSG_CHECKING([whether to build static libraries])
3.2706 +# Make sure either enable_shared or enable_static is yes.
3.2707 +test "$enable_shared" = yes || enable_static=yes
3.2708 +AC_MSG_RESULT([$enable_static])
3.2709 +
3.2710 +AC_LIBTOOL_CONFIG($1)
3.2711 +
3.2712 +AC_LANG_POP
3.2713 +CC="$lt_save_CC"
3.2714 +])# AC_LIBTOOL_LANG_C_CONFIG
3.2715 +
3.2716 +
3.2717 +# AC_LIBTOOL_LANG_CXX_CONFIG
3.2718 +# --------------------------
3.2719 +# Ensure that the configuration vars for the C compiler are
3.2720 +# suitably defined. Those variables are subsequently used by
3.2721 +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3.2722 +AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
3.2723 +AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
3.2724 +[AC_LANG_PUSH(C++)
3.2725 +AC_REQUIRE([AC_PROG_CXX])
3.2726 +AC_REQUIRE([_LT_AC_PROG_CXXCPP])
3.2727 +
3.2728 +_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3.2729 +_LT_AC_TAGVAR(allow_undefined_flag, $1)=
3.2730 +_LT_AC_TAGVAR(always_export_symbols, $1)=no
3.2731 +_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
3.2732 +_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
3.2733 +_LT_AC_TAGVAR(hardcode_direct, $1)=no
3.2734 +_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
3.2735 +_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
3.2736 +_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3.2737 +_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
3.2738 +_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3.2739 +_LT_AC_TAGVAR(hardcode_automatic, $1)=no
3.2740 +_LT_AC_TAGVAR(module_cmds, $1)=
3.2741 +_LT_AC_TAGVAR(module_expsym_cmds, $1)=
3.2742 +_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
3.2743 +_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
3.2744 +_LT_AC_TAGVAR(no_undefined_flag, $1)=
3.2745 +_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3.2746 +_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
3.2747 +
3.2748 +# Dependencies to place before and after the object being linked:
3.2749 +_LT_AC_TAGVAR(predep_objects, $1)=
3.2750 +_LT_AC_TAGVAR(postdep_objects, $1)=
3.2751 +_LT_AC_TAGVAR(predeps, $1)=
3.2752 +_LT_AC_TAGVAR(postdeps, $1)=
3.2753 +_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
3.2754 +
3.2755 +# Source file extension for C++ test sources.
3.2756 +ac_ext=cpp
3.2757 +
3.2758 +# Object file extension for compiled C++ test sources.
3.2759 +objext=o
3.2760 +_LT_AC_TAGVAR(objext, $1)=$objext
3.2761 +
3.2762 +# Code to be used in simple compile tests
3.2763 +lt_simple_compile_test_code="int some_variable = 0;\n"
3.2764 +
3.2765 +# Code to be used in simple link tests
3.2766 +lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n'
3.2767 +
3.2768 +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
3.2769 +_LT_AC_SYS_COMPILER
3.2770 +
3.2771 +# save warnings/boilerplate of simple test code
3.2772 +_LT_COMPILER_BOILERPLATE
3.2773 +_LT_LINKER_BOILERPLATE
3.2774 +
3.2775 +# Allow CC to be a program name with arguments.
3.2776 +lt_save_CC=$CC
3.2777 +lt_save_LD=$LD
3.2778 +lt_save_GCC=$GCC
3.2779 +GCC=$GXX
3.2780 +lt_save_with_gnu_ld=$with_gnu_ld
3.2781 +lt_save_path_LD=$lt_cv_path_LD
3.2782 +if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
3.2783 + lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
3.2784 +else
3.2785 + $as_unset lt_cv_prog_gnu_ld
3.2786 +fi
3.2787 +if test -n "${lt_cv_path_LDCXX+set}"; then
3.2788 + lt_cv_path_LD=$lt_cv_path_LDCXX
3.2789 +else
3.2790 + $as_unset lt_cv_path_LD
3.2791 +fi
3.2792 +test -z "${LDCXX+set}" || LD=$LDCXX
3.2793 +CC=${CXX-"c++"}
3.2794 +compiler=$CC
3.2795 +_LT_AC_TAGVAR(compiler, $1)=$CC
3.2796 +_LT_CC_BASENAME([$compiler])
3.2797 +
3.2798 +# We don't want -fno-exception wen compiling C++ code, so set the
3.2799 +# no_builtin_flag separately
3.2800 +if test "$GXX" = yes; then
3.2801 + _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
3.2802 +else
3.2803 + _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
3.2804 +fi
3.2805 +
3.2806 +if test "$GXX" = yes; then
3.2807 + # Set up default GNU C++ configuration
3.2808 +
3.2809 + AC_PROG_LD
3.2810 +
3.2811 + # Check if GNU C++ uses GNU ld as the underlying linker, since the
3.2812 + # archiving commands below assume that GNU ld is being used.
3.2813 + if test "$with_gnu_ld" = yes; then
3.2814 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3.2815 + _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.2816 +
3.2817 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
3.2818 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3.2819 +
3.2820 + # If archive_cmds runs LD, not CC, wlarc should be empty
3.2821 + # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
3.2822 + # investigate it a little bit more. (MM)
3.2823 + wlarc='${wl}'
3.2824 +
3.2825 + # ancient GNU ld didn't support --whole-archive et. al.
3.2826 + if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
3.2827 + grep 'no-whole-archive' > /dev/null; then
3.2828 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3.2829 + else
3.2830 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3.2831 + fi
3.2832 + else
3.2833 + with_gnu_ld=no
3.2834 + wlarc=
3.2835 +
3.2836 + # A generic and very simple default shared library creation
3.2837 + # command for GNU C++ for the case where it uses the native
3.2838 + # linker, instead of GNU ld. If possible, this setting should
3.2839 + # overridden to take advantage of the native linker features on
3.2840 + # the platform it is being used on.
3.2841 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3.2842 + fi
3.2843 +
3.2844 + # Commands to make compiler produce verbose output that lists
3.2845 + # what "hidden" libraries, object files and flags are used when
3.2846 + # linking a shared library.
3.2847 + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3.2848 +
3.2849 +else
3.2850 + GXX=no
3.2851 + with_gnu_ld=no
3.2852 + wlarc=
3.2853 +fi
3.2854 +
3.2855 +# PORTME: fill in a description of your system's C++ link characteristics
3.2856 +AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
3.2857 +_LT_AC_TAGVAR(ld_shlibs, $1)=yes
3.2858 +case $host_os in
3.2859 + aix3*)
3.2860 + # FIXME: insert proper C++ library support
3.2861 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3.2862 + ;;
3.2863 + aix4* | aix5*)
3.2864 + if test "$host_cpu" = ia64; then
3.2865 + # On IA64, the linker does run time linking by default, so we don't
3.2866 + # have to do anything special.
3.2867 + aix_use_runtimelinking=no
3.2868 + exp_sym_flag='-Bexport'
3.2869 + no_entry_flag=""
3.2870 + else
3.2871 + aix_use_runtimelinking=no
3.2872 +
3.2873 + # Test if we are trying to use run time linking or normal
3.2874 + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
3.2875 + # need to do runtime linking.
3.2876 + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
3.2877 + for ld_flag in $LDFLAGS; do
3.2878 + case $ld_flag in
3.2879 + *-brtl*)
3.2880 + aix_use_runtimelinking=yes
3.2881 + break
3.2882 + ;;
3.2883 + esac
3.2884 + done
3.2885 + ;;
3.2886 + esac
3.2887 +
3.2888 + exp_sym_flag='-bexport'
3.2889 + no_entry_flag='-bnoentry'
3.2890 + fi
3.2891 +
3.2892 + # When large executables or shared objects are built, AIX ld can
3.2893 + # have problems creating the table of contents. If linking a library
3.2894 + # or program results in "error TOC overflow" add -mminimal-toc to
3.2895 + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
3.2896 + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
3.2897 +
3.2898 + _LT_AC_TAGVAR(archive_cmds, $1)=''
3.2899 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3.2900 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
3.2901 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3.2902 +
3.2903 + if test "$GXX" = yes; then
3.2904 + case $host_os in aix4.[[012]]|aix4.[[012]].*)
3.2905 + # We only want to do this on AIX 4.2 and lower, the check
3.2906 + # below for broken collect2 doesn't work under 4.3+
3.2907 + collect2name=`${CC} -print-prog-name=collect2`
3.2908 + if test -f "$collect2name" && \
3.2909 + strings "$collect2name" | grep resolve_lib_name >/dev/null
3.2910 + then
3.2911 + # We have reworked collect2
3.2912 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3.2913 + else
3.2914 + # We have old collect2
3.2915 + _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
3.2916 + # It fails to find uninstalled libraries when the uninstalled
3.2917 + # path is not listed in the libpath. Setting hardcode_minus_L
3.2918 + # to unsupported forces relinking
3.2919 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
3.2920 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3.2921 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3.2922 + fi
3.2923 + ;;
3.2924 + esac
3.2925 + shared_flag='-shared'
3.2926 + if test "$aix_use_runtimelinking" = yes; then
3.2927 + shared_flag="$shared_flag "'${wl}-G'
3.2928 + fi
3.2929 + else
3.2930 + # not using gcc
3.2931 + if test "$host_cpu" = ia64; then
3.2932 + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
3.2933 + # chokes on -Wl,-G. The following line is correct:
3.2934 + shared_flag='-G'
3.2935 + else
3.2936 + if test "$aix_use_runtimelinking" = yes; then
3.2937 + shared_flag='${wl}-G'
3.2938 + else
3.2939 + shared_flag='${wl}-bM:SRE'
3.2940 + fi
3.2941 + fi
3.2942 + fi
3.2943 +
3.2944 + # It seems that -bexpall does not export symbols beginning with
3.2945 + # underscore (_), so it is better to generate a list of symbols to export.
3.2946 + _LT_AC_TAGVAR(always_export_symbols, $1)=yes
3.2947 + if test "$aix_use_runtimelinking" = yes; then
3.2948 + # Warning - without using the other runtime loading flags (-brtl),
3.2949 + # -berok will link without error, but may produce a broken library.
3.2950 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
3.2951 + # Determine the default libpath from the value encoded in an empty executable.
3.2952 + _LT_AC_SYS_LIBPATH_AIX
3.2953 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3.2954 +
3.2955 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
3.2956 + else
3.2957 + if test "$host_cpu" = ia64; then
3.2958 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
3.2959 + _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
3.2960 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
3.2961 + else
3.2962 + # Determine the default libpath from the value encoded in an empty executable.
3.2963 + _LT_AC_SYS_LIBPATH_AIX
3.2964 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3.2965 + # Warning - without using the other run time loading flags,
3.2966 + # -berok will link without error, but may produce a broken library.
3.2967 + _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
3.2968 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
3.2969 + # Exported symbols can be pulled into shared objects from archives
3.2970 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
3.2971 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
3.2972 + # This is similar to how AIX traditionally builds its shared libraries.
3.2973 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
3.2974 + fi
3.2975 + fi
3.2976 + ;;
3.2977 +
3.2978 + beos*)
3.2979 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
3.2980 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3.2981 + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
3.2982 + # support --undefined. This deserves some investigation. FIXME
3.2983 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3.2984 + else
3.2985 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3.2986 + fi
3.2987 + ;;
3.2988 +
3.2989 + chorus*)
3.2990 + case $cc_basename in
3.2991 + *)
3.2992 + # FIXME: insert proper C++ library support
3.2993 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3.2994 + ;;
3.2995 + esac
3.2996 + ;;
3.2997 +
3.2998 + cygwin* | mingw* | pw32*)
3.2999 + # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
3.3000 + # as there is no search path for DLLs.
3.3001 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3.3002 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3.3003 + _LT_AC_TAGVAR(always_export_symbols, $1)=no
3.3004 + _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
3.3005 +
3.3006 + if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
3.3007 + _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 -Xlinker --out-implib -Xlinker $lib'
3.3008 + # If the export-symbols file already is a .def file (1st line
3.3009 + # is EXPORTS), use it as is; otherwise, prepend...
3.3010 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
3.3011 + cp $export_symbols $output_objdir/$soname.def;
3.3012 + else
3.3013 + echo EXPORTS > $output_objdir/$soname.def;
3.3014 + cat $export_symbols >> $output_objdir/$soname.def;
3.3015 + fi~
3.3016 + $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
3.3017 + else
3.3018 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3.3019 + fi
3.3020 + ;;
3.3021 + darwin* | rhapsody*)
3.3022 + case $host_os in
3.3023 + rhapsody* | darwin1.[[012]])
3.3024 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
3.3025 + ;;
3.3026 + *) # Darwin 1.3 on
3.3027 + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
3.3028 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3.3029 + else
3.3030 + case ${MACOSX_DEPLOYMENT_TARGET} in
3.3031 + 10.[[012]])
3.3032 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3.3033 + ;;
3.3034 + 10.*)
3.3035 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
3.3036 + ;;
3.3037 + esac
3.3038 + fi
3.3039 + ;;
3.3040 + esac
3.3041 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3.3042 + _LT_AC_TAGVAR(hardcode_direct, $1)=no
3.3043 + _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3.3044 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3.3045 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
3.3046 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3.3047 +
3.3048 + if test "$GXX" = yes ; then
3.3049 + lt_int_apple_cc_single_mod=no
3.3050 + output_verbose_link_cmd='echo'
3.3051 + if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
3.3052 + lt_int_apple_cc_single_mod=yes
3.3053 + fi
3.3054 + if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3.3055 + _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.3056 + else
3.3057 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
3.3058 + fi
3.3059 + _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3.3060 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3.3061 + if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3.3062 + _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.3063 + else
3.3064 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3.3065 + fi
3.3066 + _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3.3067 + else
3.3068 + case $cc_basename in
3.3069 + xlc*)
3.3070 + output_verbose_link_cmd='echo'
3.3071 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
3.3072 + _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3.3073 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3.3074 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3.3075 + _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3.3076 + ;;
3.3077 + *)
3.3078 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3.3079 + ;;
3.3080 + esac
3.3081 + fi
3.3082 + ;;
3.3083 +
3.3084 + dgux*)
3.3085 + case $cc_basename in
3.3086 + ec++*)
3.3087 + # FIXME: insert proper C++ library support
3.3088 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3.3089 + ;;
3.3090 + ghcx*)
3.3091 + # Green Hills C++ Compiler
3.3092 + # FIXME: insert proper C++ library support
3.3093 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3.3094 + ;;
3.3095 + *)
3.3096 + # FIXME: insert proper C++ library support
3.3097 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3.3098 + ;;
3.3099 + esac
3.3100 + ;;
3.3101 + freebsd[[12]]*)
3.3102 + # C++ shared libraries reported to be fairly broken before switch to ELF
3.3103 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3.3104 + ;;
3.3105 + freebsd-elf*)
3.3106 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3.3107 + ;;
3.3108 + freebsd* | dragonfly*)
3.3109 + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
3.3110 + # conventions
3.3111 + _LT_AC_TAGVAR(ld_shlibs, $1)=yes
3.3112 + ;;
3.3113 + gnu*)
3.3114 + ;;
3.3115 + hpux9*)
3.3116 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3.3117 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3.3118 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3.3119 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3.3120 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3.3121 + # but as the default
3.3122 + # location of the library.
3.3123 +
3.3124 + case $cc_basename in
3.3125 + CC*)
3.3126 + # FIXME: insert proper C++ library support
3.3127 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3.3128 + ;;
3.3129 + aCC*)
3.3130 + _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.3131 + # Commands to make compiler produce verbose output that lists
3.3132 + # what "hidden" libraries, object files and flags are used when
3.3133 + # linking a shared library.
3.3134 + #
3.3135 + # There doesn't appear to be a way to prevent this compiler from
3.3136 + # explicitly linking system object files so we need to strip them
3.3137 + # from the output so that they don't get included in the library
3.3138 + # dependencies.
3.3139 + 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.3140 + ;;
3.3141 + *)
3.3142 + if test "$GXX" = yes; then
3.3143 + _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.3144 + else
3.3145 + # FIXME: insert proper C++ library support
3.3146 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3.3147 + fi
3.3148 + ;;
3.3149 + esac
3.3150 + ;;
3.3151 + hpux10*|hpux11*)
3.3152 + if test $with_gnu_ld = no; then
3.3153 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3.3154 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3.3155 +
3.3156 + case $host_cpu in
3.3157 + hppa*64*|ia64*)
3.3158 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
3.3159 + ;;
3.3160 + *)
3.3161 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3.3162 + ;;
3.3163 + esac
3.3164 + fi
3.3165 + case $host_cpu in
3.3166 + hppa*64*|ia64*)
3.3167 + _LT_AC_TAGVAR(hardcode_direct, $1)=no
3.3168 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3.3169 + ;;
3.3170 + *)
3.3171 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3.3172 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3.3173 + # but as the default
3.3174 + # location of the library.
3.3175 + ;;
3.3176 + esac
3.3177 +
3.3178 + case $cc_basename in
3.3179 + CC*)
3.3180 + # FIXME: insert proper C++ library support
3.3181 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3.3182 + ;;
3.3183 + aCC*)
3.3184 + case $host_cpu in
3.3185 + hppa*64*)
3.3186 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3.3187 + ;;
3.3188 + ia64*)
3.3189 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3.3190 + ;;
3.3191 + *)
3.3192 + _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.3193 + ;;
3.3194 + esac
3.3195 + # Commands to make compiler produce verbose output that lists
3.3196 + # what "hidden" libraries, object files and flags are used when
3.3197 + # linking a shared library.
3.3198 + #
3.3199 + # There doesn't appear to be a way to prevent this compiler from
3.3200 + # explicitly linking system object files so we need to strip them
3.3201 + # from the output so that they don't get included in the library
3.3202 + # dependencies.
3.3203 + 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.3204 + ;;
3.3205 + *)
3.3206 + if test "$GXX" = yes; then
3.3207 + if test $with_gnu_ld = no; then
3.3208 + case $host_cpu in
3.3209 + hppa*64*)
3.3210 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3.3211 + ;;
3.3212 + ia64*)
3.3213 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3.3214 + ;;
3.3215 + *)
3.3216 + _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.3217 + ;;
3.3218 + esac
3.3219 + fi
3.3220 + else
3.3221 + # FIXME: insert proper C++ library support
3.3222 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3.3223 + fi
3.3224 + ;;
3.3225 + esac
3.3226 + ;;
3.3227 + interix3*)
3.3228 + _LT_AC_TAGVAR(hardcode_direct, $1)=no
3.3229 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3.3230 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3.3231 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3.3232 + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
3.3233 + # Instead, shared libraries are loaded at an image base (0x10000000 by
3.3234 + # default) and relocated if they conflict, which is a slow very memory
3.3235 + # consuming and fragmenting process. To avoid this, we pick a random,
3.3236 + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
3.3237 + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
3.3238 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
3.3239 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
3.3240 + ;;
3.3241 + irix5* | irix6*)
3.3242 + case $cc_basename in
3.3243 + CC*)
3.3244 + # SGI C++
3.3245 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
3.3246 +
3.3247 + # Archives containing C++ object files must be created using
3.3248 + # "CC -ar", where "CC" is the IRIX C++ compiler. This is
3.3249 + # necessary to make sure instantiated templates are included
3.3250 + # in the archive.
3.3251 + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
3.3252 + ;;
3.3253 + *)
3.3254 + if test "$GXX" = yes; then
3.3255 + if test "$with_gnu_ld" = no; then
3.3256 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
3.3257 + else
3.3258 + _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.3259 + fi
3.3260 + fi
3.3261 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3.3262 + ;;
3.3263 + esac
3.3264 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3.3265 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3.3266 + ;;
3.3267 + linux* | k*bsd*-gnu)
3.3268 + case $cc_basename in
3.3269 + KCC*)
3.3270 + # Kuck and Associates, Inc. (KAI) C++ Compiler
3.3271 +
3.3272 + # KCC will only create a shared library if the output file
3.3273 + # ends with ".so" (or ".sl" for HP-UX), so rename the library
3.3274 + # to its proper name (with version) after linking.
3.3275 + _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.3276 + _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.3277 + # Commands to make compiler produce verbose output that lists
3.3278 + # what "hidden" libraries, object files and flags are used when
3.3279 + # linking a shared library.
3.3280 + #
3.3281 + # There doesn't appear to be a way to prevent this compiler from
3.3282 + # explicitly linking system object files so we need to strip them
3.3283 + # from the output so that they don't get included in the library
3.3284 + # dependencies.
3.3285 + 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.3286 +
3.3287 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
3.3288 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3.3289 +
3.3290 + # Archives containing C++ object files must be created using
3.3291 + # "CC -Bstatic", where "CC" is the KAI C++ compiler.
3.3292 + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
3.3293 + ;;
3.3294 + icpc*)
3.3295 + # Intel C++
3.3296 + with_gnu_ld=yes
3.3297 + # version 8.0 and above of icpc choke on multiply defined symbols
3.3298 + # if we add $predep_objects and $postdep_objects, however 7.1 and
3.3299 + # earlier do not add the objects themselves.
3.3300 + case `$CC -V 2>&1` in
3.3301 + *"Version 7."*)
3.3302 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3.3303 + _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.3304 + ;;
3.3305 + *) # Version 8.0 or newer
3.3306 + tmp_idyn=
3.3307 + case $host_cpu in
3.3308 + ia64*) tmp_idyn=' -i_dynamic';;
3.3309 + esac
3.3310 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3.3311 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3.3312 + ;;
3.3313 + esac
3.3314 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3.3315 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3.3316 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3.3317 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
3.3318 + ;;
3.3319 + pgCC*)
3.3320 + # Portland Group C++ compiler
3.3321 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
3.3322 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
3.3323 +
3.3324 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
3.3325 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3.3326 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
3.3327 + ;;
3.3328 + cxx*)
3.3329 + # Compaq C++
3.3330 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3.3331 + _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.3332 +
3.3333 + runpath_var=LD_RUN_PATH
3.3334 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
3.3335 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3.3336 +
3.3337 + # Commands to make compiler produce verbose output that lists
3.3338 + # what "hidden" libraries, object files and flags are used when
3.3339 + # linking a shared library.
3.3340 + #
3.3341 + # There doesn't appear to be a way to prevent this compiler from
3.3342 + # explicitly linking system object files so we need to strip them
3.3343 + # from the output so that they don't get included in the library
3.3344 + # dependencies.
3.3345 + 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.3346 + ;;
3.3347 + esac
3.3348 + ;;
3.3349 + lynxos*)
3.3350 + # FIXME: insert proper C++ library support
3.3351 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3.3352 + ;;
3.3353 + m88k*)
3.3354 + # FIXME: insert proper C++ library support
3.3355 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3.3356 + ;;
3.3357 + mvs*)
3.3358 + case $cc_basename in
3.3359 + cxx*)
3.3360 + # FIXME: insert proper C++ library support
3.3361 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3.3362 + ;;
3.3363 + *)
3.3364 + # FIXME: insert proper C++ library support
3.3365 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3.3366 + ;;
3.3367 + esac
3.3368 + ;;
3.3369 + netbsd* | netbsdelf*-gnu)
3.3370 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3.3371 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
3.3372 + wlarc=
3.3373 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3.3374 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3.3375 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3.3376 + fi
3.3377 + # Workaround some broken pre-1.5 toolchains
3.3378 + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
3.3379 + ;;
3.3380 + openbsd2*)
3.3381 + # C++ shared libraries are fairly broken
3.3382 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3.3383 + ;;
3.3384 + openbsd*)
3.3385 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3.3386 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3.3387 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3.3388 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3.3389 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3.3390 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
3.3391 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3.3392 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3.3393 + fi
3.3394 + output_verbose_link_cmd='echo'
3.3395 + ;;
3.3396 + osf3*)
3.3397 + case $cc_basename in
3.3398 + KCC*)
3.3399 + # Kuck and Associates, Inc. (KAI) C++ Compiler
3.3400 +
3.3401 + # KCC will only create a shared library if the output file
3.3402 + # ends with ".so" (or ".sl" for HP-UX), so rename the library
3.3403 + # to its proper name (with version) after linking.
3.3404 + _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.3405 +
3.3406 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3.3407 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3.3408 +
3.3409 + # Archives containing C++ object files must be created using
3.3410 + # "CC -Bstatic", where "CC" is the KAI C++ compiler.
3.3411 + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
3.3412 +
3.3413 + ;;
3.3414 + RCC*)
3.3415 + # Rational C++ 2.4.1
3.3416 + # FIXME: insert proper C++ library support
3.3417 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3.3418 + ;;
3.3419 + cxx*)
3.3420 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3.3421 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
3.3422 +
3.3423 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3.3424 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3.3425 +
3.3426 + # Commands to make compiler produce verbose output that lists
3.3427 + # what "hidden" libraries, object files and flags are used when
3.3428 + # linking a shared library.
3.3429 + #
3.3430 + # There doesn't appear to be a way to prevent this compiler from
3.3431 + # explicitly linking system object files so we need to strip them
3.3432 + # from the output so that they don't get included in the library
3.3433 + # dependencies.
3.3434 + 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.3435 + ;;
3.3436 + *)
3.3437 + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3.3438 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3.3439 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
3.3440 +
3.3441 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3.3442 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3.3443 +
3.3444 + # Commands to make compiler produce verbose output that lists
3.3445 + # what "hidden" libraries, object files and flags are used when
3.3446 + # linking a shared library.
3.3447 + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3.3448 +
3.3449 + else
3.3450 + # FIXME: insert proper C++ library support
3.3451 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3.3452 + fi
3.3453 + ;;
3.3454 + esac
3.3455 + ;;
3.3456 + osf4* | osf5*)
3.3457 + case $cc_basename in
3.3458 + KCC*)
3.3459 + # Kuck and Associates, Inc. (KAI) C++ Compiler
3.3460 +
3.3461 + # KCC will only create a shared library if the output file
3.3462 + # ends with ".so" (or ".sl" for HP-UX), so rename the library
3.3463 + # to its proper name (with version) after linking.
3.3464 + _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.3465 +
3.3466 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3.3467 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3.3468 +
3.3469 + # Archives containing C++ object files must be created using
3.3470 + # the KAI C++ compiler.
3.3471 + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
3.3472 + ;;
3.3473 + RCC*)
3.3474 + # Rational C++ 2.4.1
3.3475 + # FIXME: insert proper C++ library support
3.3476 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3.3477 + ;;
3.3478 + cxx*)
3.3479 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
3.3480 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
3.3481 + _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.3482 + echo "-hidden">> $lib.exp~
3.3483 + $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
3.3484 + $rm $lib.exp'
3.3485 +
3.3486 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
3.3487 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3.3488 +
3.3489 + # Commands to make compiler produce verbose output that lists
3.3490 + # what "hidden" libraries, object files and flags are used when
3.3491 + # linking a shared library.
3.3492 + #
3.3493 + # There doesn't appear to be a way to prevent this compiler from
3.3494 + # explicitly linking system object files so we need to strip them
3.3495 + # from the output so that they don't get included in the library
3.3496 + # dependencies.
3.3497 + 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.3498 + ;;
3.3499 + *)
3.3500 + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3.3501 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3.3502 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
3.3503 +
3.3504 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3.3505 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3.3506 +
3.3507 + # Commands to make compiler produce verbose output that lists
3.3508 + # what "hidden" libraries, object files and flags are used when
3.3509 + # linking a shared library.
3.3510 + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3.3511 +
3.3512 + else
3.3513 + # FIXME: insert proper C++ library support
3.3514 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3.3515 + fi
3.3516 + ;;
3.3517 + esac
3.3518 + ;;
3.3519 + psos*)
3.3520 + # FIXME: insert proper C++ library support
3.3521 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3.3522 + ;;
3.3523 + sunos4*)
3.3524 + case $cc_basename in
3.3525 + CC*)
3.3526 + # Sun C++ 4.x
3.3527 + # FIXME: insert proper C++ library support
3.3528 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3.3529 + ;;
3.3530 + lcc*)
3.3531 + # Lucid
3.3532 + # FIXME: insert proper C++ library support
3.3533 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3.3534 + ;;
3.3535 + *)
3.3536 + # FIXME: insert proper C++ library support
3.3537 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3.3538 + ;;
3.3539 + esac
3.3540 + ;;
3.3541 + solaris*)
3.3542 + case $cc_basename in
3.3543 + CC*)
3.3544 + # Sun C++ 4.2, 5.x and Centerline C++
3.3545 + _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
3.3546 + _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
3.3547 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3.3548 + _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.3549 + $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
3.3550 +
3.3551 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3.3552 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3.3553 + case $host_os in
3.3554 + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
3.3555 + *)
3.3556 + # The C++ compiler is used as linker so we must use $wl
3.3557 + # flag to pass the commands to the underlying system
3.3558 + # linker. We must also pass each convience library through
3.3559 + # to the system linker between allextract/defaultextract.
3.3560 + # The C++ compiler will combine linker options so we
3.3561 + # cannot just pass the convience library names through
3.3562 + # without $wl.
3.3563 + # Supported since Solaris 2.6 (maybe 2.5.1?)
3.3564 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
3.3565 + ;;
3.3566 + esac
3.3567 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3.3568 +
3.3569 + output_verbose_link_cmd='echo'
3.3570 +
3.3571 + # Archives containing C++ object files must be created using
3.3572 + # "CC -xar", where "CC" is the Sun C++ compiler. This is
3.3573 + # necessary to make sure instantiated templates are included
3.3574 + # in the archive.
3.3575 + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
3.3576 + ;;
3.3577 + gcx*)
3.3578 + # Green Hills C++ Compiler
3.3579 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3.3580 +
3.3581 + # The C++ compiler must be used to create the archive.
3.3582 + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
3.3583 + ;;
3.3584 + *)
3.3585 + # GNU C++ compiler with Solaris linker
3.3586 + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3.3587 + _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
3.3588 + if $CC --version | grep -v '^2\.7' > /dev/null; then
3.3589 + _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.3590 + _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.3591 + $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
3.3592 +
3.3593 + # Commands to make compiler produce verbose output that lists
3.3594 + # what "hidden" libraries, object files and flags are used when
3.3595 + # linking a shared library.
3.3596 + output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
3.3597 + else
3.3598 + # g++ 2.7 appears to require `-G' NOT `-shared' on this
3.3599 + # platform.
3.3600 + _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.3601 + _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.3602 + $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
3.3603 +
3.3604 + # Commands to make compiler produce verbose output that lists
3.3605 + # what "hidden" libraries, object files and flags are used when
3.3606 + # linking a shared library.
3.3607 + output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
3.3608 + fi
3.3609 +
3.3610 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
3.3611 + fi
3.3612 + ;;
3.3613 + esac
3.3614 + ;;
3.3615 + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
3.3616 + _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
3.3617 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3.3618 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3.3619 + runpath_var='LD_RUN_PATH'
3.3620 +
3.3621 + case $cc_basename in
3.3622 + CC*)
3.3623 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3.3624 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3.3625 + ;;
3.3626 + *)
3.3627 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3.3628 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3.3629 + ;;
3.3630 + esac
3.3631 + ;;
3.3632 + sysv5* | sco3.2v5* | sco5v6*)
3.3633 + # Note: We can NOT use -z defs as we might desire, because we do not
3.3634 + # link with -lc, and that would cause any symbols used from libc to
3.3635 + # always be unresolved, which means just about no library would
3.3636 + # ever link correctly. If we're not using GNU ld we use -z text
3.3637 + # though, which does catch some bad symbols but isn't as heavy-handed
3.3638 + # as -z defs.
3.3639 + # For security reasons, it is highly recommended that you always
3.3640 + # use absolute paths for naming shared libraries, and exclude the
3.3641 + # DT_RUNPATH tag from executables and libraries. But doing so
3.3642 + # requires that you compile everything twice, which is a pain.
3.3643 + # So that behaviour is only enabled if SCOABSPATH is set to a
3.3644 + # non-empty value in the environment. Most likely only useful for
3.3645 + # creating official distributions of packages.
3.3646 + # This is a hack until libtool officially supports absolute path
3.3647 + # names for shared libraries.
3.3648 + _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
3.3649 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
3.3650 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3.3651 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3.3652 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
3.3653 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
3.3654 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3.3655 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
3.3656 + runpath_var='LD_RUN_PATH'
3.3657 +
3.3658 + case $cc_basename in
3.3659 + CC*)
3.3660 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3.3661 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3.3662 + ;;
3.3663 + *)
3.3664 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3.3665 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3.3666 + ;;
3.3667 + esac
3.3668 + ;;
3.3669 + tandem*)
3.3670 + case $cc_basename in
3.3671 + NCC*)
3.3672 + # NonStop-UX NCC 3.20
3.3673 + # FIXME: insert proper C++ library support
3.3674 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3.3675 + ;;
3.3676 + *)
3.3677 + # FIXME: insert proper C++ library support
3.3678 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3.3679 + ;;
3.3680 + esac
3.3681 + ;;
3.3682 + vxworks*)
3.3683 + # FIXME: insert proper C++ library support
3.3684 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3.3685 + ;;
3.3686 + *)
3.3687 + # FIXME: insert proper C++ library support
3.3688 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3.3689 + ;;
3.3690 +esac
3.3691 +AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
3.3692 +test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
3.3693 +
3.3694 +_LT_AC_TAGVAR(GCC, $1)="$GXX"
3.3695 +_LT_AC_TAGVAR(LD, $1)="$LD"
3.3696 +
3.3697 +## CAVEAT EMPTOR:
3.3698 +## There is no encapsulation within the following macros, do not change
3.3699 +## the running order or otherwise move them around unless you know exactly
3.3700 +## what you are doing...
3.3701 +AC_LIBTOOL_POSTDEP_PREDEP($1)
3.3702 +AC_LIBTOOL_PROG_COMPILER_PIC($1)
3.3703 +AC_LIBTOOL_PROG_CC_C_O($1)
3.3704 +AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
3.3705 +AC_LIBTOOL_PROG_LD_SHLIBS($1)
3.3706 +AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3.3707 +AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3.3708 +
3.3709 +AC_LIBTOOL_CONFIG($1)
3.3710 +
3.3711 +AC_LANG_POP
3.3712 +CC=$lt_save_CC
3.3713 +LDCXX=$LD
3.3714 +LD=$lt_save_LD
3.3715 +GCC=$lt_save_GCC
3.3716 +with_gnu_ldcxx=$with_gnu_ld
3.3717 +with_gnu_ld=$lt_save_with_gnu_ld
3.3718 +lt_cv_path_LDCXX=$lt_cv_path_LD
3.3719 +lt_cv_path_LD=$lt_save_path_LD
3.3720 +lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
3.3721 +lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
3.3722 +])# AC_LIBTOOL_LANG_CXX_CONFIG
3.3723 +
3.3724 +# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
3.3725 +# ------------------------------------
3.3726 +# Figure out "hidden" library dependencies from verbose
3.3727 +# compiler output when linking a shared library.
3.3728 +# Parse the compiler output and extract the necessary
3.3729 +# objects, libraries and library flags.
3.3730 +AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
3.3731 +dnl we can't use the lt_simple_compile_test_code here,
3.3732 +dnl because it contains code intended for an executable,
3.3733 +dnl not a library. It's possible we should let each
3.3734 +dnl tag define a new lt_????_link_test_code variable,
3.3735 +dnl but it's only used here...
3.3736 +ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
3.3737 +int a;
3.3738 +void foo (void) { a = 0; }
3.3739 +EOF
3.3740 +],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
3.3741 +class Foo
3.3742 +{
3.3743 +public:
3.3744 + Foo (void) { a = 0; }
3.3745 +private:
3.3746 + int a;
3.3747 +};
3.3748 +EOF
3.3749 +],[$1],[F77],[cat > conftest.$ac_ext <<EOF
3.3750 + subroutine foo
3.3751 + implicit none
3.3752 + integer*4 a
3.3753 + a=0
3.3754 + return
3.3755 + end
3.3756 +EOF
3.3757 +],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
3.3758 +public class foo {
3.3759 + private int a;
3.3760 + public void bar (void) {
3.3761 + a = 0;
3.3762 + }
3.3763 +};
3.3764 +EOF
3.3765 +])
3.3766 +dnl Parse the compiler output and extract the necessary
3.3767 +dnl objects, libraries and library flags.
3.3768 +if AC_TRY_EVAL(ac_compile); then
3.3769 + # Parse the compiler output and extract the necessary
3.3770 + # objects, libraries and library flags.
3.3771 +
3.3772 + # Sentinel used to keep track of whether or not we are before
3.3773 + # the conftest object file.
3.3774 + pre_test_object_deps_done=no
3.3775 +
3.3776 + # The `*' in the case matches for architectures that use `case' in
3.3777 + # $output_verbose_cmd can trigger glob expansion during the loop
3.3778 + # eval without this substitution.
3.3779 + output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
3.3780 +
3.3781 + for p in `eval $output_verbose_link_cmd`; do
3.3782 + case $p in
3.3783 +
3.3784 + -L* | -R* | -l*)
3.3785 + # Some compilers place space between "-{L,R}" and the path.
3.3786 + # Remove the space.
3.3787 + if test $p = "-L" \
3.3788 + || test $p = "-R"; then
3.3789 + prev=$p
3.3790 + continue
3.3791 + else
3.3792 + prev=
3.3793 + fi
3.3794 +
3.3795 + if test "$pre_test_object_deps_done" = no; then
3.3796 + case $p in
3.3797 + -L* | -R*)
3.3798 + # Internal compiler library paths should come after those
3.3799 + # provided the user. The postdeps already come after the
3.3800 + # user supplied libs so there is no need to process them.
3.3801 + if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
3.3802 + _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
3.3803 + else
3.3804 + _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
3.3805 + fi
3.3806 + ;;
3.3807 + # The "-l" case would never come before the object being
3.3808 + # linked, so don't bother handling this case.
3.3809 + esac
3.3810 + else
3.3811 + if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
3.3812 + _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
3.3813 + else
3.3814 + _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
3.3815 + fi
3.3816 + fi
3.3817 + ;;
3.3818 +
3.3819 + *.$objext)
3.3820 + # This assumes that the test object file only shows up
3.3821 + # once in the compiler output.
3.3822 + if test "$p" = "conftest.$objext"; then
3.3823 + pre_test_object_deps_done=yes
3.3824 + continue
3.3825 + fi
3.3826 +
3.3827 + if test "$pre_test_object_deps_done" = no; then
3.3828 + if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
3.3829 + _LT_AC_TAGVAR(predep_objects, $1)="$p"
3.3830 + else
3.3831 + _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
3.3832 + fi
3.3833 + else
3.3834 + if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
3.3835 + _LT_AC_TAGVAR(postdep_objects, $1)="$p"
3.3836 + else
3.3837 + _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
3.3838 + fi
3.3839 + fi
3.3840 + ;;
3.3841 +
3.3842 + *) ;; # Ignore the rest.
3.3843 +
3.3844 + esac
3.3845 + done
3.3846 +
3.3847 + # Clean up.
3.3848 + rm -f a.out a.exe
3.3849 +else
3.3850 + echo "libtool.m4: error: problem compiling $1 test program"
3.3851 +fi
3.3852 +
3.3853 +$rm -f confest.$objext
3.3854 +
3.3855 +# PORTME: override above test on systems where it is broken
3.3856 +ifelse([$1],[CXX],
3.3857 +[case $host_os in
3.3858 +interix3*)
3.3859 + # Interix 3.5 installs completely hosed .la files for C++, so rather than
3.3860 + # hack all around it, let's just trust "g++" to DTRT.
3.3861 + _LT_AC_TAGVAR(predep_objects,$1)=
3.3862 + _LT_AC_TAGVAR(postdep_objects,$1)=
3.3863 + _LT_AC_TAGVAR(postdeps,$1)=
3.3864 + ;;
3.3865 +
3.3866 +solaris*)
3.3867 + case $cc_basename in
3.3868 + CC*)
3.3869 + # Adding this requires a known-good setup of shared libraries for
3.3870 + # Sun compiler versions before 5.6, else PIC objects from an old
3.3871 + # archive will be linked into the output, leading to subtle bugs.
3.3872 + _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
3.3873 + ;;
3.3874 + esac
3.3875 + ;;
3.3876 +esac
3.3877 +])
3.3878 +
3.3879 +case " $_LT_AC_TAGVAR(postdeps, $1) " in
3.3880 +*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
3.3881 +esac
3.3882 +])# AC_LIBTOOL_POSTDEP_PREDEP
3.3883 +
3.3884 +# AC_LIBTOOL_LANG_F77_CONFIG
3.3885 +# --------------------------
3.3886 +# Ensure that the configuration vars for the C compiler are
3.3887 +# suitably defined. Those variables are subsequently used by
3.3888 +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3.3889 +AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
3.3890 +AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
3.3891 +[AC_REQUIRE([AC_PROG_F77])
3.3892 +AC_LANG_PUSH(Fortran 77)
3.3893 +
3.3894 +_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3.3895 +_LT_AC_TAGVAR(allow_undefined_flag, $1)=
3.3896 +_LT_AC_TAGVAR(always_export_symbols, $1)=no
3.3897 +_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
3.3898 +_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
3.3899 +_LT_AC_TAGVAR(hardcode_direct, $1)=no
3.3900 +_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
3.3901 +_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
3.3902 +_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3.3903 +_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
3.3904 +_LT_AC_TAGVAR(hardcode_automatic, $1)=no
3.3905 +_LT_AC_TAGVAR(module_cmds, $1)=
3.3906 +_LT_AC_TAGVAR(module_expsym_cmds, $1)=
3.3907 +_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
3.3908 +_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
3.3909 +_LT_AC_TAGVAR(no_undefined_flag, $1)=
3.3910 +_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3.3911 +_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
3.3912 +
3.3913 +# Source file extension for f77 test sources.
3.3914 +ac_ext=f
3.3915 +
3.3916 +# Object file extension for compiled f77 test sources.
3.3917 +objext=o
3.3918 +_LT_AC_TAGVAR(objext, $1)=$objext
3.3919 +
3.3920 +# Code to be used in simple compile tests
3.3921 +lt_simple_compile_test_code=" subroutine t\n return\n end\n"
3.3922 +
3.3923 +# Code to be used in simple link tests
3.3924 +lt_simple_link_test_code=" program t\n end\n"
3.3925 +
3.3926 +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
3.3927 +_LT_AC_SYS_COMPILER
3.3928 +
3.3929 +# save warnings/boilerplate of simple test code
3.3930 +_LT_COMPILER_BOILERPLATE
3.3931 +_LT_LINKER_BOILERPLATE
3.3932 +
3.3933 +# Allow CC to be a program name with arguments.
3.3934 +lt_save_CC="$CC"
3.3935 +CC=${F77-"f77"}
3.3936 +compiler=$CC
3.3937 +_LT_AC_TAGVAR(compiler, $1)=$CC
3.3938 +_LT_CC_BASENAME([$compiler])
3.3939 +
3.3940 +AC_MSG_CHECKING([if libtool supports shared libraries])
3.3941 +AC_MSG_RESULT([$can_build_shared])
3.3942 +
3.3943 +AC_MSG_CHECKING([whether to build shared libraries])
3.3944 +test "$can_build_shared" = "no" && enable_shared=no
3.3945 +
3.3946 +# On AIX, shared libraries and static libraries use the same namespace, and
3.3947 +# are all built from PIC.
3.3948 +case $host_os in
3.3949 +aix3*)
3.3950 + test "$enable_shared" = yes && enable_static=no
3.3951 + if test -n "$RANLIB"; then
3.3952 + archive_cmds="$archive_cmds~\$RANLIB \$lib"
3.3953 + postinstall_cmds='$RANLIB $lib'
3.3954 + fi
3.3955 + ;;
3.3956 +aix4* | aix5*)
3.3957 + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
3.3958 + test "$enable_shared" = yes && enable_static=no
3.3959 + fi
3.3960 + ;;
3.3961 +esac
3.3962 +AC_MSG_RESULT([$enable_shared])
3.3963 +
3.3964 +AC_MSG_CHECKING([whether to build static libraries])
3.3965 +# Make sure either enable_shared or enable_static is yes.
3.3966 +test "$enable_shared" = yes || enable_static=yes
3.3967 +AC_MSG_RESULT([$enable_static])
3.3968 +
3.3969 +_LT_AC_TAGVAR(GCC, $1)="$G77"
3.3970 +_LT_AC_TAGVAR(LD, $1)="$LD"
3.3971 +
3.3972 +AC_LIBTOOL_PROG_COMPILER_PIC($1)
3.3973 +AC_LIBTOOL_PROG_CC_C_O($1)
3.3974 +AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
3.3975 +AC_LIBTOOL_PROG_LD_SHLIBS($1)
3.3976 +AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3.3977 +AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3.3978 +
3.3979 +AC_LIBTOOL_CONFIG($1)
3.3980 +
3.3981 +AC_LANG_POP
3.3982 +CC="$lt_save_CC"
3.3983 +])# AC_LIBTOOL_LANG_F77_CONFIG
3.3984 +
3.3985 +
3.3986 +# AC_LIBTOOL_LANG_GCJ_CONFIG
3.3987 +# --------------------------
3.3988 +# Ensure that the configuration vars for the C compiler are
3.3989 +# suitably defined. Those variables are subsequently used by
3.3990 +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3.3991 +AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
3.3992 +AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
3.3993 +[AC_LANG_SAVE
3.3994 +
3.3995 +# Source file extension for Java test sources.
3.3996 +ac_ext=java
3.3997 +
3.3998 +# Object file extension for compiled Java test sources.
3.3999 +objext=o
3.4000 +_LT_AC_TAGVAR(objext, $1)=$objext
3.4001 +
3.4002 +# Code to be used in simple compile tests
3.4003 +lt_simple_compile_test_code="class foo {}\n"
3.4004 +
3.4005 +# Code to be used in simple link tests
3.4006 +lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
3.4007 +
3.4008 +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
3.4009 +_LT_AC_SYS_COMPILER
3.4010 +
3.4011 +# save warnings/boilerplate of simple test code
3.4012 +_LT_COMPILER_BOILERPLATE
3.4013 +_LT_LINKER_BOILERPLATE
3.4014 +
3.4015 +# Allow CC to be a program name with arguments.
3.4016 +lt_save_CC="$CC"
3.4017 +CC=${GCJ-"gcj"}
3.4018 +compiler=$CC
3.4019 +_LT_AC_TAGVAR(compiler, $1)=$CC
3.4020 +_LT_CC_BASENAME([$compiler])
3.4021 +
3.4022 +# GCJ did not exist at the time GCC didn't implicitly link libc in.
3.4023 +_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3.4024 +
3.4025 +_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
3.4026 +
3.4027 +## CAVEAT EMPTOR:
3.4028 +## There is no encapsulation within the following macros, do not change
3.4029 +## the running order or otherwise move them around unless you know exactly
3.4030 +## what you are doing...
3.4031 +AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
3.4032 +AC_LIBTOOL_PROG_COMPILER_PIC($1)
3.4033 +AC_LIBTOOL_PROG_CC_C_O($1)
3.4034 +AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
3.4035 +AC_LIBTOOL_PROG_LD_SHLIBS($1)
3.4036 +AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3.4037 +AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3.4038 +
3.4039 +AC_LIBTOOL_CONFIG($1)
3.4040 +
3.4041 +AC_LANG_RESTORE
3.4042 +CC="$lt_save_CC"
3.4043 +])# AC_LIBTOOL_LANG_GCJ_CONFIG
3.4044 +
3.4045 +
3.4046 +# AC_LIBTOOL_LANG_RC_CONFIG
3.4047 +# -------------------------
3.4048 +# Ensure that the configuration vars for the Windows resource compiler are
3.4049 +# suitably defined. Those variables are subsequently used by
3.4050 +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3.4051 +AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
3.4052 +AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
3.4053 +[AC_LANG_SAVE
3.4054 +
3.4055 +# Source file extension for RC test sources.
3.4056 +ac_ext=rc
3.4057 +
3.4058 +# Object file extension for compiled RC test sources.
3.4059 +objext=o
3.4060 +_LT_AC_TAGVAR(objext, $1)=$objext
3.4061 +
3.4062 +# Code to be used in simple compile tests
3.4063 +lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
3.4064 +
3.4065 +# Code to be used in simple link tests
3.4066 +lt_simple_link_test_code="$lt_simple_compile_test_code"
3.4067 +
3.4068 +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
3.4069 +_LT_AC_SYS_COMPILER
3.4070 +
3.4071 +# save warnings/boilerplate of simple test code
3.4072 +_LT_COMPILER_BOILERPLATE
3.4073 +_LT_LINKER_BOILERPLATE
3.4074 +
3.4075 +# Allow CC to be a program name with arguments.
3.4076 +lt_save_CC="$CC"
3.4077 +CC=${RC-"windres"}
3.4078 +compiler=$CC
3.4079 +_LT_AC_TAGVAR(compiler, $1)=$CC
3.4080 +_LT_CC_BASENAME([$compiler])
3.4081 +_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
3.4082 +
3.4083 +AC_LIBTOOL_CONFIG($1)
3.4084 +
3.4085 +AC_LANG_RESTORE
3.4086 +CC="$lt_save_CC"
3.4087 +])# AC_LIBTOOL_LANG_RC_CONFIG
3.4088 +
3.4089 +
3.4090 +# AC_LIBTOOL_CONFIG([TAGNAME])
3.4091 +# ----------------------------
3.4092 +# If TAGNAME is not passed, then create an initial libtool script
3.4093 +# with a default configuration from the untagged config vars. Otherwise
3.4094 +# add code to config.status for appending the configuration named by
3.4095 +# TAGNAME from the matching tagged config vars.
3.4096 +AC_DEFUN([AC_LIBTOOL_CONFIG],
3.4097 +[# The else clause should only fire when bootstrapping the
3.4098 +# libtool distribution, otherwise you forgot to ship ltmain.sh
3.4099 +# with your package, and you will get complaints that there are
3.4100 +# no rules to generate ltmain.sh.
3.4101 +if test -f "$ltmain"; then
3.4102 + # See if we are running on zsh, and set the options which allow our commands through
3.4103 + # without removal of \ escapes.
3.4104 + if test -n "${ZSH_VERSION+set}" ; then
3.4105 + setopt NO_GLOB_SUBST
3.4106 + fi
3.4107 + # Now quote all the things that may contain metacharacters while being
3.4108 + # careful not to overquote the AC_SUBSTed values. We take copies of the
3.4109 + # variables and quote the copies for generation of the libtool script.
3.4110 + for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
3.4111 + SED SHELL STRIP \
3.4112 + libname_spec library_names_spec soname_spec extract_expsyms_cmds \
3.4113 + old_striplib striplib file_magic_cmd finish_cmds finish_eval \
3.4114 + deplibs_check_method reload_flag reload_cmds need_locks \
3.4115 + lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
3.4116 + lt_cv_sys_global_symbol_to_c_name_address \
3.4117 + sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
3.4118 + old_postinstall_cmds old_postuninstall_cmds \
3.4119 + _LT_AC_TAGVAR(compiler, $1) \
3.4120 + _LT_AC_TAGVAR(CC, $1) \
3.4121 + _LT_AC_TAGVAR(LD, $1) \
3.4122 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
3.4123 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
3.4124 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
3.4125 + _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
3.4126 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
3.4127 + _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
3.4128 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
3.4129 + _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
3.4130 + _LT_AC_TAGVAR(old_archive_cmds, $1) \
3.4131 + _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
3.4132 + _LT_AC_TAGVAR(predep_objects, $1) \
3.4133 + _LT_AC_TAGVAR(postdep_objects, $1) \
3.4134 + _LT_AC_TAGVAR(predeps, $1) \
3.4135 + _LT_AC_TAGVAR(postdeps, $1) \
3.4136 + _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
3.4137 + _LT_AC_TAGVAR(archive_cmds, $1) \
3.4138 + _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
3.4139 + _LT_AC_TAGVAR(postinstall_cmds, $1) \
3.4140 + _LT_AC_TAGVAR(postuninstall_cmds, $1) \
3.4141 + _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
3.4142 + _LT_AC_TAGVAR(allow_undefined_flag, $1) \
3.4143 + _LT_AC_TAGVAR(no_undefined_flag, $1) \
3.4144 + _LT_AC_TAGVAR(export_symbols_cmds, $1) \
3.4145 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
3.4146 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
3.4147 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
3.4148 + _LT_AC_TAGVAR(hardcode_automatic, $1) \
3.4149 + _LT_AC_TAGVAR(module_cmds, $1) \
3.4150 + _LT_AC_TAGVAR(module_expsym_cmds, $1) \
3.4151 + _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
3.4152 + _LT_AC_TAGVAR(exclude_expsyms, $1) \
3.4153 + _LT_AC_TAGVAR(include_expsyms, $1); do
3.4154 +
3.4155 + case $var in
3.4156 + _LT_AC_TAGVAR(old_archive_cmds, $1) | \
3.4157 + _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
3.4158 + _LT_AC_TAGVAR(archive_cmds, $1) | \
3.4159 + _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
3.4160 + _LT_AC_TAGVAR(module_cmds, $1) | \
3.4161 + _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
3.4162 + _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
3.4163 + _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
3.4164 + extract_expsyms_cmds | reload_cmds | finish_cmds | \
3.4165 + postinstall_cmds | postuninstall_cmds | \
3.4166 + old_postinstall_cmds | old_postuninstall_cmds | \
3.4167 + sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
3.4168 + # Double-quote double-evaled strings.
3.4169 + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
3.4170 + ;;
3.4171 + *)
3.4172 + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
3.4173 + ;;
3.4174 + esac
3.4175 + done
3.4176 +
3.4177 + case $lt_echo in
3.4178 + *'\[$]0 --fallback-echo"')
3.4179 + lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
3.4180 + ;;
3.4181 + esac
3.4182 +
3.4183 +ifelse([$1], [],
3.4184 + [cfgfile="${ofile}T"
3.4185 + trap "$rm \"$cfgfile\"; exit 1" 1 2 15
3.4186 + $rm -f "$cfgfile"
3.4187 + AC_MSG_NOTICE([creating $ofile])],
3.4188 + [cfgfile="$ofile"])
3.4189 +
3.4190 + cat <<__EOF__ >> "$cfgfile"
3.4191 +ifelse([$1], [],
3.4192 +[#! $SHELL
3.4193 +
3.4194 +# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
3.4195 +# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
3.4196 +# NOTE: Changes made to this file will be lost: look at ltmain.sh.
3.4197 +#
3.4198 +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
3.4199 +# Free Software Foundation, Inc.
3.4200 +#
3.4201 +# This file is part of GNU Libtool:
3.4202 +# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
3.4203 +#
3.4204 +# This program is free software; you can redistribute it and/or modify
3.4205 +# it under the terms of the GNU General Public License as published by
3.4206 +# the Free Software Foundation; either version 2 of the License, or
3.4207 +# (at your option) any later version.
3.4208 +#
3.4209 +# This program is distributed in the hope that it will be useful, but
3.4210 +# WITHOUT ANY WARRANTY; without even the implied warranty of
3.4211 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
3.4212 +# General Public License for more details.
3.4213 +#
3.4214 +# You should have received a copy of the GNU General Public License
3.4215 +# along with this program; if not, write to the Free Software
3.4216 +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
3.4217 +#
3.4218 +# As a special exception to the GNU General Public License, if you
3.4219 +# distribute this file as part of a program that contains a
3.4220 +# configuration script generated by Autoconf, you may include it under
3.4221 +# the same distribution terms that you use for the rest of that program.
3.4222 +
3.4223 +# A sed program that does not truncate output.
3.4224 +SED=$lt_SED
3.4225 +
3.4226 +# Sed that helps us avoid accidentally triggering echo(1) options like -n.
3.4227 +Xsed="$SED -e 1s/^X//"
3.4228 +
3.4229 +# The HP-UX ksh and POSIX shell print the target directory to stdout
3.4230 +# if CDPATH is set.
3.4231 +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
3.4232 +
3.4233 +# The names of the tagged configurations supported by this script.
3.4234 +available_tags=
3.4235 +
3.4236 +# ### BEGIN LIBTOOL CONFIG],
3.4237 +[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
3.4238 +
3.4239 +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3.4240 +
3.4241 +# Shell to use when invoking shell scripts.
3.4242 +SHELL=$lt_SHELL
3.4243 +
3.4244 +# Whether or not to build shared libraries.
3.4245 +build_libtool_libs=$enable_shared
3.4246 +
3.4247 +# Whether or not to build static libraries.
3.4248 +build_old_libs=$enable_static
3.4249 +
3.4250 +# Whether or not to add -lc for building shared libraries.
3.4251 +build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
3.4252 +
3.4253 +# Whether or not to disallow shared libs when runtime libs are static
3.4254 +allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
3.4255 +
3.4256 +# Whether or not to optimize for fast installation.
3.4257 +fast_install=$enable_fast_install
3.4258 +
3.4259 +# The host system.
3.4260 +host_alias=$host_alias
3.4261 +host=$host
3.4262 +host_os=$host_os
3.4263 +
3.4264 +# The build system.
3.4265 +build_alias=$build_alias
3.4266 +build=$build
3.4267 +build_os=$build_os
3.4268 +
3.4269 +# An echo program that does not interpret backslashes.
3.4270 +echo=$lt_echo
3.4271 +
3.4272 +# The archiver.
3.4273 +AR=$lt_AR
3.4274 +AR_FLAGS=$lt_AR_FLAGS
3.4275 +
3.4276 +# A C compiler.
3.4277 +LTCC=$lt_LTCC
3.4278 +
3.4279 +# LTCC compiler flags.
3.4280 +LTCFLAGS=$lt_LTCFLAGS
3.4281 +
3.4282 +# A language-specific compiler.
3.4283 +CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
3.4284 +
3.4285 +# Is the compiler the GNU C compiler?
3.4286 +with_gcc=$_LT_AC_TAGVAR(GCC, $1)
3.4287 +
3.4288 +# An ERE matcher.
3.4289 +EGREP=$lt_EGREP
3.4290 +
3.4291 +# The linker used to build libraries.
3.4292 +LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
3.4293 +
3.4294 +# Whether we need hard or soft links.
3.4295 +LN_S=$lt_LN_S
3.4296 +
3.4297 +# A BSD-compatible nm program.
3.4298 +NM=$lt_NM
3.4299 +
3.4300 +# A symbol stripping program
3.4301 +STRIP=$lt_STRIP
3.4302 +
3.4303 +# Used to examine libraries when file_magic_cmd begins "file"
3.4304 +MAGIC_CMD=$MAGIC_CMD
3.4305 +
3.4306 +# Used on cygwin: DLL creation program.
3.4307 +DLLTOOL="$DLLTOOL"
3.4308 +
3.4309 +# Used on cygwin: object dumper.
3.4310 +OBJDUMP="$OBJDUMP"
3.4311 +
3.4312 +# Used on cygwin: assembler.
3.4313 +AS="$AS"
3.4314 +
3.4315 +# The name of the directory that contains temporary libtool files.
3.4316 +objdir=$objdir
3.4317 +
3.4318 +# How to create reloadable object files.
3.4319 +reload_flag=$lt_reload_flag
3.4320 +reload_cmds=$lt_reload_cmds
3.4321 +
3.4322 +# How to pass a linker flag through the compiler.
3.4323 +wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
3.4324 +
3.4325 +# Object file suffix (normally "o").
3.4326 +objext="$ac_objext"
3.4327 +
3.4328 +# Old archive suffix (normally "a").
3.4329 +libext="$libext"
3.4330 +
3.4331 +# Shared library suffix (normally ".so").
3.4332 +shrext_cmds='$shrext_cmds'
3.4333 +
3.4334 +# Executable file suffix (normally "").
3.4335 +exeext="$exeext"
3.4336 +
3.4337 +# Additional compiler flags for building library objects.
3.4338 +pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
3.4339 +pic_mode=$pic_mode
3.4340 +
3.4341 +# What is the maximum length of a command?
3.4342 +max_cmd_len=$lt_cv_sys_max_cmd_len
3.4343 +
3.4344 +# Does compiler simultaneously support -c and -o options?
3.4345 +compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
3.4346 +
3.4347 +# Must we lock files when doing compilation?
3.4348 +need_locks=$lt_need_locks
3.4349 +
3.4350 +# Do we need the lib prefix for modules?
3.4351 +need_lib_prefix=$need_lib_prefix
3.4352 +
3.4353 +# Do we need a version for libraries?
3.4354 +need_version=$need_version
3.4355 +
3.4356 +# Whether dlopen is supported.
3.4357 +dlopen_support=$enable_dlopen
3.4358 +
3.4359 +# Whether dlopen of programs is supported.
3.4360 +dlopen_self=$enable_dlopen_self
3.4361 +
3.4362 +# Whether dlopen of statically linked programs is supported.
3.4363 +dlopen_self_static=$enable_dlopen_self_static
3.4364 +
3.4365 +# Compiler flag to prevent dynamic linking.
3.4366 +link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
3.4367 +
3.4368 +# Compiler flag to turn off builtin functions.
3.4369 +no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
3.4370 +
3.4371 +# Compiler flag to allow reflexive dlopens.
3.4372 +export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
3.4373 +
3.4374 +# Compiler flag to generate shared objects directly from archives.
3.4375 +whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
3.4376 +
3.4377 +# Compiler flag to generate thread-safe objects.
3.4378 +thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
3.4379 +
3.4380 +# Library versioning type.
3.4381 +version_type=$version_type
3.4382 +
3.4383 +# Format of library name prefix.
3.4384 +libname_spec=$lt_libname_spec
3.4385 +
3.4386 +# List of archive names. First name is the real one, the rest are links.
3.4387 +# The last name is the one that the linker finds with -lNAME.
3.4388 +library_names_spec=$lt_library_names_spec
3.4389 +
3.4390 +# The coded name of the library, if different from the real name.
3.4391 +soname_spec=$lt_soname_spec
3.4392 +
3.4393 +# Commands used to build and install an old-style archive.
3.4394 +RANLIB=$lt_RANLIB
3.4395 +old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
3.4396 +old_postinstall_cmds=$lt_old_postinstall_cmds
3.4397 +old_postuninstall_cmds=$lt_old_postuninstall_cmds
3.4398 +
3.4399 +# Create an old-style archive from a shared archive.
3.4400 +old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
3.4401 +
3.4402 +# Create a temporary old-style archive to link instead of a shared archive.
3.4403 +old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
3.4404 +
3.4405 +# Commands used to build and install a shared archive.
3.4406 +archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
3.4407 +archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
3.4408 +postinstall_cmds=$lt_postinstall_cmds
3.4409 +postuninstall_cmds=$lt_postuninstall_cmds
3.4410 +
3.4411 +# Commands used to build a loadable module (assumed same as above if empty)
3.4412 +module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
3.4413 +module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
3.4414 +
3.4415 +# Commands to strip libraries.
3.4416 +old_striplib=$lt_old_striplib
3.4417 +striplib=$lt_striplib
3.4418 +
3.4419 +# Dependencies to place before the objects being linked to create a
3.4420 +# shared library.
3.4421 +predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
3.4422 +
3.4423 +# Dependencies to place after the objects being linked to create a
3.4424 +# shared library.
3.4425 +postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
3.4426 +
3.4427 +# Dependencies to place before the objects being linked to create a
3.4428 +# shared library.
3.4429 +predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
3.4430 +
3.4431 +# Dependencies to place after the objects being linked to create a
3.4432 +# shared library.
3.4433 +postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
3.4434 +
3.4435 +# The library search path used internally by the compiler when linking
3.4436 +# a shared library.
3.4437 +compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
3.4438 +
3.4439 +# Method to check whether dependent libraries are shared objects.
3.4440 +deplibs_check_method=$lt_deplibs_check_method
3.4441 +
3.4442 +# Command to use when deplibs_check_method == file_magic.
3.4443 +file_magic_cmd=$lt_file_magic_cmd
3.4444 +
3.4445 +# Flag that allows shared libraries with undefined symbols to be built.
3.4446 +allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
3.4447 +
3.4448 +# Flag that forces no undefined symbols.
3.4449 +no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
3.4450 +
3.4451 +# Commands used to finish a libtool library installation in a directory.
3.4452 +finish_cmds=$lt_finish_cmds
3.4453 +
3.4454 +# Same as above, but a single script fragment to be evaled but not shown.
3.4455 +finish_eval=$lt_finish_eval
3.4456 +
3.4457 +# Take the output of nm and produce a listing of raw symbols and C names.
3.4458 +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
3.4459 +
3.4460 +# Transform the output of nm in a proper C declaration
3.4461 +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
3.4462 +
3.4463 +# Transform the output of nm in a C name address pair
3.4464 +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
3.4465 +
3.4466 +# This is the shared library runtime path variable.
3.4467 +runpath_var=$runpath_var
3.4468 +
3.4469 +# This is the shared library path variable.
3.4470 +shlibpath_var=$shlibpath_var
3.4471 +
3.4472 +# Is shlibpath searched before the hard-coded library search path?
3.4473 +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
3.4474 +
3.4475 +# How to hardcode a shared library path into an executable.
3.4476 +hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
3.4477 +
3.4478 +# Whether we should hardcode library paths into libraries.
3.4479 +hardcode_into_libs=$hardcode_into_libs
3.4480 +
3.4481 +# Flag to hardcode \$libdir into a binary during linking.
3.4482 +# This must work even if \$libdir does not exist.
3.4483 +hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
3.4484 +
3.4485 +# If ld is used when linking, flag to hardcode \$libdir into
3.4486 +# a binary during linking. This must work even if \$libdir does
3.4487 +# not exist.
3.4488 +hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
3.4489 +
3.4490 +# Whether we need a single -rpath flag with a separated argument.
3.4491 +hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
3.4492 +
3.4493 +# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
3.4494 +# resulting binary.
3.4495 +hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
3.4496 +
3.4497 +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
3.4498 +# resulting binary.
3.4499 +hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
3.4500 +
3.4501 +# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
3.4502 +# the resulting binary.
3.4503 +hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
3.4504 +
3.4505 +# Set to yes if building a shared library automatically hardcodes DIR into the library
3.4506 +# and all subsequent libraries and executables linked against it.
3.4507 +hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
3.4508 +
3.4509 +# Variables whose values should be saved in libtool wrapper scripts and
3.4510 +# restored at relink time.
3.4511 +variables_saved_for_relink="$variables_saved_for_relink"
3.4512 +
3.4513 +# Whether libtool must link a program against all its dependency libraries.
3.4514 +link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
3.4515 +
3.4516 +# Compile-time system search path for libraries
3.4517 +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
3.4518 +
3.4519 +# Run-time system search path for libraries
3.4520 +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
3.4521 +
3.4522 +# Fix the shell variable \$srcfile for the compiler.
3.4523 +fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
3.4524 +
3.4525 +# Set to yes if exported symbols are required.
3.4526 +always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
3.4527 +
3.4528 +# The commands to list exported symbols.
3.4529 +export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
3.4530 +
3.4531 +# The commands to extract the exported symbol list from a shared archive.
3.4532 +extract_expsyms_cmds=$lt_extract_expsyms_cmds
3.4533 +
3.4534 +# Symbols that should not be listed in the preloaded symbols.
3.4535 +exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
3.4536 +
3.4537 +# Symbols that must always be exported.
3.4538 +include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
3.4539 +
3.4540 +ifelse([$1],[],
3.4541 +[# ### END LIBTOOL CONFIG],
3.4542 +[# ### END LIBTOOL TAG CONFIG: $tagname])
3.4543 +
3.4544 +__EOF__
3.4545 +
3.4546 +ifelse([$1],[], [
3.4547 + case $host_os in
3.4548 + aix3*)
3.4549 + cat <<\EOF >> "$cfgfile"
3.4550 +
3.4551 +# AIX sometimes has problems with the GCC collect2 program. For some
3.4552 +# reason, if we set the COLLECT_NAMES environment variable, the problems
3.4553 +# vanish in a puff of smoke.
3.4554 +if test "X${COLLECT_NAMES+set}" != Xset; then
3.4555 + COLLECT_NAMES=
3.4556 + export COLLECT_NAMES
3.4557 +fi
3.4558 +EOF
3.4559 + ;;
3.4560 + esac
3.4561 +
3.4562 + # We use sed instead of cat because bash on DJGPP gets confused if
3.4563 + # if finds mixed CR/LF and LF-only lines. Since sed operates in
3.4564 + # text mode, it properly converts lines to CR/LF. This bash problem
3.4565 + # is reportedly fixed, but why not run on old versions too?
3.4566 + sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
3.4567 +
3.4568 + mv -f "$cfgfile" "$ofile" || \
3.4569 + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
3.4570 + chmod +x "$ofile"
3.4571 +])
3.4572 +else
3.4573 + # If there is no Makefile yet, we rely on a make rule to execute
3.4574 + # `config.status --recheck' to rerun these tests and create the
3.4575 + # libtool script then.
3.4576 + ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
3.4577 + if test -f "$ltmain_in"; then
3.4578 + test -f Makefile && make "$ltmain"
3.4579 + fi
3.4580 +fi
3.4581 +])# AC_LIBTOOL_CONFIG
3.4582 +
3.4583 +
3.4584 +# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
3.4585 +# -------------------------------------------
3.4586 +AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
3.4587 +[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
3.4588 +
3.4589 +_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
3.4590 +
3.4591 +if test "$GCC" = yes; then
3.4592 + _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
3.4593 +
3.4594 + AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
3.4595 + lt_cv_prog_compiler_rtti_exceptions,
3.4596 + [-fno-rtti -fno-exceptions], [],
3.4597 + [_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.4598 +fi
3.4599 +])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
3.4600 +
3.4601 +
3.4602 +# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
3.4603 +# ---------------------------------
3.4604 +AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
3.4605 +[AC_REQUIRE([AC_CANONICAL_HOST])
3.4606 +AC_REQUIRE([AC_PROG_NM])
3.4607 +AC_REQUIRE([AC_OBJEXT])
3.4608 +# Check for command to grab the raw symbol name followed by C symbol from nm.
3.4609 +AC_MSG_CHECKING([command to parse $NM output from $compiler object])
3.4610 +AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
3.4611 +[
3.4612 +# These are sane defaults that work on at least a few old systems.
3.4613 +# [They come from Ultrix. What could be older than Ultrix?!! ;)]
3.4614 +
3.4615 +# Character class describing NM global symbol codes.
3.4616 +symcode='[[BCDEGRST]]'
3.4617 +
3.4618 +# Regexp to match symbols that can be accessed directly from C.
3.4619 +sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
3.4620 +
3.4621 +# Transform an extracted symbol line into a proper C declaration
3.4622 +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
3.4623 +
3.4624 +# Transform an extracted symbol line into symbol name and symbol address
3.4625 +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.4626 +
3.4627 +# Define system-specific variables.
3.4628 +case $host_os in
3.4629 +aix*)
3.4630 + symcode='[[BCDT]]'
3.4631 + ;;
3.4632 +cygwin* | mingw* | pw32*)
3.4633 + symcode='[[ABCDGISTW]]'
3.4634 + ;;
3.4635 +hpux*) # Its linker distinguishes data from code symbols
3.4636 + if test "$host_cpu" = ia64; then
3.4637 + symcode='[[ABCDEGRST]]'
3.4638 + fi
3.4639 + lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3.4640 + 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.4641 + ;;
3.4642 +linux* | k*bsd*-gnu)
3.4643 + if test "$host_cpu" = ia64; then
3.4644 + symcode='[[ABCDGIRSTW]]'
3.4645 + lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3.4646 + 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.4647 + fi
3.4648 + ;;
3.4649 +irix* | nonstopux*)
3.4650 + symcode='[[BCDEGRST]]'
3.4651 + ;;
3.4652 +osf*)
3.4653 + symcode='[[BCDEGQRST]]'
3.4654 + ;;
3.4655 +solaris*)
3.4656 + symcode='[[BDRT]]'
3.4657 + ;;
3.4658 +sco3.2v5*)
3.4659 + symcode='[[DT]]'
3.4660 + ;;
3.4661 +sysv4.2uw2*)
3.4662 + symcode='[[DT]]'
3.4663 + ;;
3.4664 +sysv5* | sco5v6* | unixware* | OpenUNIX*)
3.4665 + symcode='[[ABDT]]'
3.4666 + ;;
3.4667 +sysv4)
3.4668 + symcode='[[DFNSTU]]'
3.4669 + ;;
3.4670 +esac
3.4671 +
3.4672 +# Handle CRLF in mingw tool chain
3.4673 +opt_cr=
3.4674 +case $build_os in
3.4675 +mingw*)
3.4676 + opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3.4677 + ;;
3.4678 +esac
3.4679 +
3.4680 +# If we're using GNU nm, then use its standard symbol codes.
3.4681 +case `$NM -V 2>&1` in
3.4682 +*GNU* | *'with BFD'*)
3.4683 + symcode='[[ABCDGIRSTW]]' ;;
3.4684 +esac
3.4685 +
3.4686 +# Try without a prefix undercore, then with it.
3.4687 +for ac_symprfx in "" "_"; do
3.4688 +
3.4689 + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
3.4690 + symxfrm="\\1 $ac_symprfx\\2 \\2"
3.4691 +
3.4692 + # Write the raw and C identifiers.
3.4693 + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
3.4694 +
3.4695 + # Check to see that the pipe works correctly.
3.4696 + pipe_works=no
3.4697 +
3.4698 + rm -f conftest*
3.4699 + cat > conftest.$ac_ext <<EOF
3.4700 +#ifdef __cplusplus
3.4701 +extern "C" {
3.4702 +#endif
3.4703 +char nm_test_var;
3.4704 +void nm_test_func(){}
3.4705 +#ifdef __cplusplus
3.4706 +}
3.4707 +#endif
3.4708 +int main(){nm_test_var='a';nm_test_func();return(0);}
3.4709 +EOF
3.4710 +
3.4711 + if AC_TRY_EVAL(ac_compile); then
3.4712 + # Now try to grab the symbols.
3.4713 + nlist=conftest.nm
3.4714 + if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
3.4715 + # Try sorting and uniquifying the output.
3.4716 + if sort "$nlist" | uniq > "$nlist"T; then
3.4717 + mv -f "$nlist"T "$nlist"
3.4718 + else
3.4719 + rm -f "$nlist"T
3.4720 + fi
3.4721 +
3.4722 + # Make sure that we snagged all the symbols we need.
3.4723 + if grep ' nm_test_var$' "$nlist" >/dev/null; then
3.4724 + if grep ' nm_test_func$' "$nlist" >/dev/null; then
3.4725 + cat <<EOF > conftest.$ac_ext
3.4726 +#ifdef __cplusplus
3.4727 +extern "C" {
3.4728 +#endif
3.4729 +
3.4730 +EOF
3.4731 + # Now generate the symbol file.
3.4732 + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
3.4733 +
3.4734 + cat <<EOF >> conftest.$ac_ext
3.4735 +#if defined (__STDC__) && __STDC__
3.4736 +# define lt_ptr_t void *
3.4737 +#else
3.4738 +# define lt_ptr_t char *
3.4739 +# define const
3.4740 +#endif
3.4741 +
3.4742 +/* The mapping between symbol names and symbols. */
3.4743 +const struct {
3.4744 + const char *name;
3.4745 + lt_ptr_t address;
3.4746 +}
3.4747 +lt_preloaded_symbols[[]] =
3.4748 +{
3.4749 +EOF
3.4750 + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
3.4751 + cat <<\EOF >> conftest.$ac_ext
3.4752 + {0, (lt_ptr_t) 0}
3.4753 +};
3.4754 +
3.4755 +#ifdef __cplusplus
3.4756 +}
3.4757 +#endif
3.4758 +EOF
3.4759 + # Now try linking the two files.
3.4760 + mv conftest.$ac_objext conftstm.$ac_objext
3.4761 + lt_save_LIBS="$LIBS"
3.4762 + lt_save_CFLAGS="$CFLAGS"
3.4763 + LIBS="conftstm.$ac_objext"
3.4764 + CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
3.4765 + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
3.4766 + pipe_works=yes
3.4767 + fi
3.4768 + LIBS="$lt_save_LIBS"
3.4769 + CFLAGS="$lt_save_CFLAGS"
3.4770 + else
3.4771 + echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
3.4772 + fi
3.4773 + else
3.4774 + echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
3.4775 + fi
3.4776 + else
3.4777 + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
3.4778 + fi
3.4779 + else
3.4780 + echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
3.4781 + cat conftest.$ac_ext >&5
3.4782 + fi
3.4783 + rm -f conftest* conftst*
3.4784 +
3.4785 + # Do not use the global_symbol_pipe unless it works.
3.4786 + if test "$pipe_works" = yes; then
3.4787 + break
3.4788 + else
3.4789 + lt_cv_sys_global_symbol_pipe=
3.4790 + fi
3.4791 +done
3.4792 +])
3.4793 +if test -z "$lt_cv_sys_global_symbol_pipe"; then
3.4794 + lt_cv_sys_global_symbol_to_cdecl=
3.4795 +fi
3.4796 +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
3.4797 + AC_MSG_RESULT(failed)
3.4798 +else
3.4799 + AC_MSG_RESULT(ok)
3.4800 +fi
3.4801 +]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
3.4802 +
3.4803 +
3.4804 +# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
3.4805 +# ---------------------------------------
3.4806 +AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
3.4807 +[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
3.4808 +_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
3.4809 +_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
3.4810 +
3.4811 +AC_MSG_CHECKING([for $compiler option to produce PIC])
3.4812 + ifelse([$1],[CXX],[
3.4813 + # C++ specific cases for pic, static, wl, etc.
3.4814 + if test "$GXX" = yes; then
3.4815 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3.4816 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
3.4817 +
3.4818 + case $host_os in
3.4819 + aix*)
3.4820 + # All AIX code is PIC.
3.4821 + if test "$host_cpu" = ia64; then
3.4822 + # AIX 5 now supports IA64 processor
3.4823 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3.4824 + fi
3.4825 + ;;
3.4826 + amigaos*)
3.4827 + # FIXME: we need at least 68020 code to build shared libraries, but
3.4828 + # adding the `-m68020' flag to GCC prevents building anything better,
3.4829 + # like `-m68040'.
3.4830 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
3.4831 + ;;
3.4832 + beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
3.4833 + # PIC is the default for these OSes.
3.4834 + ;;
3.4835 + mingw* | os2* | pw32*)
3.4836 + # This hack is so that the source file can tell whether it is being
3.4837 + # built for inclusion in a dll (and should export symbols for example).
3.4838 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
3.4839 + ;;
3.4840 + darwin* | rhapsody*)
3.4841 + # PIC is the default on this platform
3.4842 + # Common symbols not allowed in MH_DYLIB files
3.4843 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
3.4844 + ;;
3.4845 + *djgpp*)
3.4846 + # DJGPP does not support shared libraries at all
3.4847 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
3.4848 + ;;
3.4849 + interix3*)
3.4850 + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
3.4851 + # Instead, we relocate shared libraries at runtime.
3.4852 + ;;
3.4853 + sysv4*MP*)
3.4854 + if test -d /usr/nec; then
3.4855 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
3.4856 + fi
3.4857 + ;;
3.4858 + hpux*)
3.4859 + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
3.4860 + # not for PA HP-UX.
3.4861 + case $host_cpu in
3.4862 + hppa*64*|ia64*)
3.4863 + ;;
3.4864 + *)
3.4865 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3.4866 + ;;
3.4867 + esac
3.4868 + ;;
3.4869 + *)
3.4870 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3.4871 + ;;
3.4872 + esac
3.4873 + else
3.4874 + case $host_os in
3.4875 + aix4* | aix5*)
3.4876 + # All AIX code is PIC.
3.4877 + if test "$host_cpu" = ia64; then
3.4878 + # AIX 5 now supports IA64 processor
3.4879 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3.4880 + else
3.4881 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
3.4882 + fi
3.4883 + ;;
3.4884 + chorus*)
3.4885 + case $cc_basename in
3.4886 + cxch68*)
3.4887 + # Green Hills C++ Compiler
3.4888 + # _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.4889 + ;;
3.4890 + esac
3.4891 + ;;
3.4892 + darwin*)
3.4893 + # PIC is the default on this platform
3.4894 + # Common symbols not allowed in MH_DYLIB files
3.4895 + case $cc_basename in
3.4896 + xlc*)
3.4897 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
3.4898 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3.4899 + ;;
3.4900 + esac
3.4901 + ;;
3.4902 + dgux*)
3.4903 + case $cc_basename in
3.4904 + ec++*)
3.4905 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3.4906 + ;;
3.4907 + ghcx*)
3.4908 + # Green Hills C++ Compiler
3.4909 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
3.4910 + ;;
3.4911 + *)
3.4912 + ;;
3.4913 + esac
3.4914 + ;;
3.4915 + freebsd* | dragonfly*)
3.4916 + # FreeBSD uses GNU C++
3.4917 + ;;
3.4918 + hpux9* | hpux10* | hpux11*)
3.4919 + case $cc_basename in
3.4920 + CC*)
3.4921 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3.4922 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
3.4923 + if test "$host_cpu" != ia64; then
3.4924 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
3.4925 + fi
3.4926 + ;;
3.4927 + aCC*)
3.4928 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3.4929 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
3.4930 + case $host_cpu in
3.4931 + hppa*64*|ia64*)
3.4932 + # +Z the default
3.4933 + ;;
3.4934 + *)
3.4935 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
3.4936 + ;;
3.4937 + esac
3.4938 + ;;
3.4939 + *)
3.4940 + ;;
3.4941 + esac
3.4942 + ;;
3.4943 + interix*)
3.4944 + # This is c89, which is MS Visual C++ (no shared libs)
3.4945 + # Anyone wants to do a port?
3.4946 + ;;
3.4947 + irix5* | irix6* | nonstopux*)
3.4948 + case $cc_basename in
3.4949 + CC*)
3.4950 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3.4951 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
3.4952 + # CC pic flag -KPIC is the default.
3.4953 + ;;
3.4954 + *)
3.4955 + ;;
3.4956 + esac
3.4957 + ;;
3.4958 + linux* | k*bsd*-gnu)
3.4959 + case $cc_basename in
3.4960 + KCC*)
3.4961 + # KAI C++ Compiler
3.4962 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
3.4963 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3.4964 + ;;
3.4965 + icpc* | ecpc*)
3.4966 + # Intel C++
3.4967 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3.4968 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3.4969 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
3.4970 + ;;
3.4971 + pgCC*)
3.4972 + # Portland Group C++ compiler.
3.4973 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3.4974 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
3.4975 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3.4976 + ;;
3.4977 + cxx*)
3.4978 + # Compaq C++
3.4979 + # Make sure the PIC flag is empty. It appears that all Alpha
3.4980 + # Linux and Compaq Tru64 Unix objects are PIC.
3.4981 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
3.4982 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
3.4983 + ;;
3.4984 + *)
3.4985 + ;;
3.4986 + esac
3.4987 + ;;
3.4988 + lynxos*)
3.4989 + ;;
3.4990 + m88k*)
3.4991 + ;;
3.4992 + mvs*)
3.4993 + case $cc_basename in
3.4994 + cxx*)
3.4995 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
3.4996 + ;;
3.4997 + *)
3.4998 + ;;
3.4999 + esac
3.5000 + ;;
3.5001 + netbsd* | netbsdelf*-gnu)
3.5002 + ;;
3.5003 + osf3* | osf4* | osf5*)
3.5004 + case $cc_basename in
3.5005 + KCC*)
3.5006 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
3.5007 + ;;
3.5008 + RCC*)
3.5009 + # Rational C++ 2.4.1
3.5010 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
3.5011 + ;;
3.5012 + cxx*)
3.5013 + # Digital/Compaq C++
3.5014 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3.5015 + # Make sure the PIC flag is empty. It appears that all Alpha
3.5016 + # Linux and Compaq Tru64 Unix objects are PIC.
3.5017 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
3.5018 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
3.5019 + ;;
3.5020 + *)
3.5021 + ;;
3.5022 + esac
3.5023 + ;;
3.5024 + psos*)
3.5025 + ;;
3.5026 + solaris*)
3.5027 + case $cc_basename in
3.5028 + CC*)
3.5029 + # Sun C++ 4.2, 5.x and Centerline C++
3.5030 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3.5031 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3.5032 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
3.5033 + ;;
3.5034 + gcx*)
3.5035 + # Green Hills C++ Compiler
3.5036 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
3.5037 + ;;
3.5038 + *)
3.5039 + ;;
3.5040 + esac
3.5041 + ;;
3.5042 + sunos4*)
3.5043 + case $cc_basename in
3.5044 + CC*)
3.5045 + # Sun C++ 4.x
3.5046 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
3.5047 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3.5048 + ;;
3.5049 + lcc*)
3.5050 + # Lucid
3.5051 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
3.5052 + ;;
3.5053 + *)
3.5054 + ;;
3.5055 + esac
3.5056 + ;;
3.5057 + tandem*)
3.5058 + case $cc_basename in
3.5059 + NCC*)
3.5060 + # NonStop-UX NCC 3.20
3.5061 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3.5062 + ;;
3.5063 + *)
3.5064 + ;;
3.5065 + esac
3.5066 + ;;
3.5067 + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
3.5068 + case $cc_basename in
3.5069 + CC*)
3.5070 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3.5071 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3.5072 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3.5073 + ;;
3.5074 + esac
3.5075 + ;;
3.5076 + vxworks*)
3.5077 + ;;
3.5078 + *)
3.5079 + _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
3.5080 + ;;
3.5081 + esac
3.5082 + fi
3.5083 +],
3.5084 +[
3.5085 + if test "$GCC" = yes; then
3.5086 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3.5087 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
3.5088 +
3.5089 + case $host_os in
3.5090 + aix*)
3.5091 + # All AIX code is PIC.
3.5092 + if test "$host_cpu" = ia64; then
3.5093 + # AIX 5 now supports IA64 processor
3.5094 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3.5095 + fi
3.5096 + ;;
3.5097 +
3.5098 + amigaos*)
3.5099 + # FIXME: we need at least 68020 code to build shared libraries, but
3.5100 + # adding the `-m68020' flag to GCC prevents building anything better,
3.5101 + # like `-m68040'.
3.5102 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
3.5103 + ;;
3.5104 +
3.5105 + beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
3.5106 + # PIC is the default for these OSes.
3.5107 + ;;
3.5108 +
3.5109 + mingw* | pw32* | os2*)
3.5110 + # This hack is so that the source file can tell whether it is being
3.5111 + # built for inclusion in a dll (and should export symbols for example).
3.5112 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
3.5113 + ;;
3.5114 +
3.5115 + darwin* | rhapsody*)
3.5116 + # PIC is the default on this platform
3.5117 + # Common symbols not allowed in MH_DYLIB files
3.5118 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
3.5119 + ;;
3.5120 +
3.5121 + interix3*)
3.5122 + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
3.5123 + # Instead, we relocate shared libraries at runtime.
3.5124 + ;;
3.5125 +
3.5126 + msdosdjgpp*)
3.5127 + # Just because we use GCC doesn't mean we suddenly get shared libraries
3.5128 + # on systems that don't support them.
3.5129 + _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
3.5130 + enable_shared=no
3.5131 + ;;
3.5132 +
3.5133 + sysv4*MP*)
3.5134 + if test -d /usr/nec; then
3.5135 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
3.5136 + fi
3.5137 + ;;
3.5138 +
3.5139 + hpux*)
3.5140 + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
3.5141 + # not for PA HP-UX.
3.5142 + case $host_cpu in
3.5143 + hppa*64*|ia64*)
3.5144 + # +Z the default
3.5145 + ;;
3.5146 + *)
3.5147 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3.5148 + ;;
3.5149 + esac
3.5150 + ;;
3.5151 +
3.5152 + *)
3.5153 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3.5154 + ;;
3.5155 + esac
3.5156 + else
3.5157 + # PORTME Check for flag to pass linker flags through the system compiler.
3.5158 + case $host_os in
3.5159 + aix*)
3.5160 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3.5161 + if test "$host_cpu" = ia64; then
3.5162 + # AIX 5 now supports IA64 processor
3.5163 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3.5164 + else
3.5165 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
3.5166 + fi
3.5167 + ;;
3.5168 + darwin*)
3.5169 + # PIC is the default on this platform
3.5170 + # Common symbols not allowed in MH_DYLIB files
3.5171 + case $cc_basename in
3.5172 + xlc*)
3.5173 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
3.5174 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3.5175 + ;;
3.5176 + esac
3.5177 + ;;
3.5178 +
3.5179 + mingw* | pw32* | os2*)
3.5180 + # This hack is so that the source file can tell whether it is being
3.5181 + # built for inclusion in a dll (and should export symbols for example).
3.5182 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
3.5183 + ;;
3.5184 +
3.5185 + hpux9* | hpux10* | hpux11*)
3.5186 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3.5187 + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
3.5188 + # not for PA HP-UX.
3.5189 + case $host_cpu in
3.5190 + hppa*64*|ia64*)
3.5191 + # +Z the default
3.5192 + ;;
3.5193 + *)
3.5194 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
3.5195 + ;;
3.5196 + esac
3.5197 + # Is there a better lt_prog_compiler_static that works with the bundled CC?
3.5198 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
3.5199 + ;;
3.5200 +
3.5201 + irix5* | irix6* | nonstopux*)
3.5202 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3.5203 + # PIC (with -KPIC) is the default.
3.5204 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
3.5205 + ;;
3.5206 +
3.5207 + newsos6)
3.5208 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3.5209 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3.5210 + ;;
3.5211 +
3.5212 + linux* | k*bsd*-gnu)
3.5213 + case $cc_basename in
3.5214 + icc* | ecc*)
3.5215 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3.5216 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3.5217 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
3.5218 + ;;
3.5219 + pgcc* | pgf77* | pgf90* | pgf95*)
3.5220 + # Portland Group compilers (*not* the Pentium gcc compiler,
3.5221 + # which looks to be a dead project)
3.5222 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3.5223 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
3.5224 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3.5225 + ;;
3.5226 + ccc*)
3.5227 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3.5228 + # All Alpha code is PIC.
3.5229 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
3.5230 + ;;
3.5231 + esac
3.5232 + ;;
3.5233 +
3.5234 + osf3* | osf4* | osf5*)
3.5235 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3.5236 + # All OSF/1 code is PIC.
3.5237 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
3.5238 + ;;
3.5239 +
3.5240 + solaris*)
3.5241 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3.5242 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3.5243 + case $cc_basename in
3.5244 + f77* | f90* | f95*)
3.5245 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
3.5246 + *)
3.5247 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
3.5248 + esac
3.5249 + ;;
3.5250 +
3.5251 + sunos4*)
3.5252 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
3.5253 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
3.5254 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3.5255 + ;;
3.5256 +
3.5257 + sysv4 | sysv4.2uw2* | sysv4.3*)
3.5258 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3.5259 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3.5260 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3.5261 + ;;
3.5262 +
3.5263 + sysv4*MP*)
3.5264 + if test -d /usr/nec ;then
3.5265 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
3.5266 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3.5267 + fi
3.5268 + ;;
3.5269 +
3.5270 + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
3.5271 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3.5272 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3.5273 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3.5274 + ;;
3.5275 +
3.5276 + unicos*)
3.5277 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3.5278 + _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
3.5279 + ;;
3.5280 +
3.5281 + uts4*)
3.5282 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
3.5283 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3.5284 + ;;
3.5285 +
3.5286 + *)
3.5287 + _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
3.5288 + ;;
3.5289 + esac
3.5290 + fi
3.5291 +])
3.5292 +AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
3.5293 +
3.5294 +#
3.5295 +# Check to make sure the PIC flag actually works.
3.5296 +#
3.5297 +if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
3.5298 + AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
3.5299 + _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
3.5300 + [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
3.5301 + [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
3.5302 + "" | " "*) ;;
3.5303 + *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
3.5304 + esac],
3.5305 + [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
3.5306 + _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
3.5307 +fi
3.5308 +case $host_os in
3.5309 + # For platforms which do not support PIC, -DPIC is meaningless:
3.5310 + *djgpp*)
3.5311 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
3.5312 + ;;
3.5313 + *)
3.5314 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
3.5315 + ;;
3.5316 +esac
3.5317 +
3.5318 +#
3.5319 +# Check to make sure the static flag actually works.
3.5320 +#
3.5321 +wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
3.5322 +AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
3.5323 + _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
3.5324 + $lt_tmp_static_flag,
3.5325 + [],
3.5326 + [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
3.5327 +])
3.5328 +
3.5329 +
3.5330 +# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
3.5331 +# ------------------------------------
3.5332 +# See if the linker supports building shared libraries.
3.5333 +AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
3.5334 +[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
3.5335 +ifelse([$1],[CXX],[
3.5336 + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
3.5337 + case $host_os in
3.5338 + aix4* | aix5*)
3.5339 + # If we're using GNU nm, then we don't want the "-C" option.
3.5340 + # -C means demangle to AIX nm, but means don't demangle with GNU nm
3.5341 + if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
3.5342 + _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.5343 + else
3.5344 + _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.5345 + fi
3.5346 + ;;
3.5347 + pw32*)
3.5348 + _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
3.5349 + ;;
3.5350 + cygwin* | mingw*)
3.5351 + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([[^ ]]*\) [[^ ]]*/\1 DATA/;/^I /d;/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
3.5352 + ;;
3.5353 + linux* | k*bsd*-gnu)
3.5354 + _LT_AC_TAGVAR(link_all_deplibs, $1)=no
3.5355 + ;;
3.5356 + *)
3.5357 + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
3.5358 + ;;
3.5359 + esac
3.5360 +],[
3.5361 + runpath_var=
3.5362 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=
3.5363 + _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
3.5364 + _LT_AC_TAGVAR(archive_cmds, $1)=
3.5365 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
3.5366 + _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
3.5367 + _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
3.5368 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
3.5369 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3.5370 + _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
3.5371 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
3.5372 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
3.5373 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3.5374 + _LT_AC_TAGVAR(hardcode_direct, $1)=no
3.5375 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
3.5376 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3.5377 + _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
3.5378 + _LT_AC_TAGVAR(hardcode_automatic, $1)=no
3.5379 + _LT_AC_TAGVAR(module_cmds, $1)=
3.5380 + _LT_AC_TAGVAR(module_expsym_cmds, $1)=
3.5381 + _LT_AC_TAGVAR(always_export_symbols, $1)=no
3.5382 + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
3.5383 + # include_expsyms should be a list of space-separated symbols to be *always*
3.5384 + # included in the symbol list
3.5385 + _LT_AC_TAGVAR(include_expsyms, $1)=
3.5386 + # exclude_expsyms can be an extended regexp of symbols to exclude
3.5387 + # it will be wrapped by ` (' and `)$', so one must not match beginning or
3.5388 + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
3.5389 + # as well as any symbol that contains `d'.
3.5390 + _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
3.5391 + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
3.5392 + # platforms (ab)use it in PIC code, but their linkers get confused if
3.5393 + # the symbol is explicitly referenced. Since portable code cannot
3.5394 + # rely on this symbol name, it's probably fine to never include it in
3.5395 + # preloaded symbol tables.
3.5396 + extract_expsyms_cmds=
3.5397 + # Just being paranoid about ensuring that cc_basename is set.
3.5398 + _LT_CC_BASENAME([$compiler])
3.5399 + case $host_os in
3.5400 + cygwin* | mingw* | pw32*)
3.5401 + # FIXME: the MSVC++ port hasn't been tested in a loooong time
3.5402 + # When not using gcc, we currently assume that we are using
3.5403 + # Microsoft Visual C++.
3.5404 + if test "$GCC" != yes; then
3.5405 + with_gnu_ld=no
3.5406 + fi
3.5407 + ;;
3.5408 + interix*)
3.5409 + # we just hope/assume this is gcc and not c89 (= MSVC++)
3.5410 + with_gnu_ld=yes
3.5411 + ;;
3.5412 + openbsd*)
3.5413 + with_gnu_ld=no
3.5414 + ;;
3.5415 + esac
3.5416 +
3.5417 + _LT_AC_TAGVAR(ld_shlibs, $1)=yes
3.5418 + if test "$with_gnu_ld" = yes; then
3.5419 + # If archive_cmds runs LD, not CC, wlarc should be empty
3.5420 + wlarc='${wl}'
3.5421 +
3.5422 + # Set some defaults for GNU ld with shared library support. These
3.5423 + # are reset later if shared libraries are not supported. Putting them
3.5424 + # here allows them to be overridden if necessary.
3.5425 + runpath_var=LD_RUN_PATH
3.5426 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
3.5427 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3.5428 + # ancient GNU ld didn't support --whole-archive et. al.
3.5429 + if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
3.5430 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3.5431 + else
3.5432 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3.5433 + fi
3.5434 + supports_anon_versioning=no
3.5435 + case `$LD -v 2>/dev/null` in
3.5436 + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
3.5437 + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
3.5438 + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
3.5439 + *\ 2.11.*) ;; # other 2.11 versions
3.5440 + *) supports_anon_versioning=yes ;;
3.5441 + esac
3.5442 +
3.5443 + # See if GNU ld supports shared libraries.
3.5444 + case $host_os in
3.5445 + aix3* | aix4* | aix5*)
3.5446 + # On AIX/PPC, the GNU linker is very broken
3.5447 + if test "$host_cpu" != ia64; then
3.5448 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3.5449 + cat <<EOF 1>&2
3.5450 +
3.5451 +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
3.5452 +*** to be unable to reliably create shared libraries on AIX.
3.5453 +*** Therefore, libtool is disabling shared libraries support. If you
3.5454 +*** really care for shared libraries, you may want to modify your PATH
3.5455 +*** so that a non-GNU linker is found, and then restart.
3.5456 +
3.5457 +EOF
3.5458 + fi
3.5459 + ;;
3.5460 +
3.5461 + amigaos*)
3.5462 + _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.5463 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3.5464 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
3.5465 +
3.5466 + # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
3.5467 + # that the semantics of dynamic libraries on AmigaOS, at least up
3.5468 + # to version 4, is to share data among multiple programs linked
3.5469 + # with the same dynamic library. Since this doesn't match the
3.5470 + # behavior of shared libraries on other platforms, we can't use
3.5471 + # them.
3.5472 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3.5473 + ;;
3.5474 +
3.5475 + beos*)
3.5476 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
3.5477 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3.5478 + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
3.5479 + # support --undefined. This deserves some investigation. FIXME
3.5480 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3.5481 + else
3.5482 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3.5483 + fi
3.5484 + ;;
3.5485 +
3.5486 + cygwin* | mingw* | pw32*)
3.5487 + # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
3.5488 + # as there is no search path for DLLs.
3.5489 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3.5490 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3.5491 + _LT_AC_TAGVAR(always_export_symbols, $1)=no
3.5492 + _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
3.5493 + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
3.5494 +
3.5495 + if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
3.5496 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
3.5497 + # If the export-symbols file already is a .def file (1st line
3.5498 + # is EXPORTS), use it as is; otherwise, prepend...
3.5499 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
3.5500 + cp $export_symbols $output_objdir/$soname.def;
3.5501 + else
3.5502 + echo EXPORTS > $output_objdir/$soname.def;
3.5503 + cat $export_symbols >> $output_objdir/$soname.def;
3.5504 + fi~
3.5505 + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
3.5506 + else
3.5507 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3.5508 + fi
3.5509 + ;;
3.5510 +
3.5511 + interix3*)
3.5512 + _LT_AC_TAGVAR(hardcode_direct, $1)=no
3.5513 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3.5514 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3.5515 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3.5516 + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
3.5517 + # Instead, shared libraries are loaded at an image base (0x10000000 by
3.5518 + # default) and relocated if they conflict, which is a slow very memory
3.5519 + # consuming and fragmenting process. To avoid this, we pick a random,
3.5520 + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
3.5521 + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
3.5522 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
3.5523 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
3.5524 + ;;
3.5525 +
3.5526 + linux* | k*bsd*-gnu)
3.5527 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
3.5528 + tmp_addflag=
3.5529 + case $cc_basename,$host_cpu in
3.5530 + pgcc*) # Portland Group C compiler
3.5531 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
3.5532 + tmp_addflag=' $pic_flag'
3.5533 + ;;
3.5534 + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
3.5535 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
3.5536 + tmp_addflag=' $pic_flag -Mnomain' ;;
3.5537 + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
3.5538 + tmp_addflag=' -i_dynamic' ;;
3.5539 + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
3.5540 + tmp_addflag=' -i_dynamic -nofor_main' ;;
3.5541 + ifc* | ifort*) # Intel Fortran compiler
3.5542 + tmp_addflag=' -nofor_main' ;;
3.5543 + esac
3.5544 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3.5545 +
3.5546 + if test $supports_anon_versioning = yes; then
3.5547 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
3.5548 + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
3.5549 + $echo "local: *; };" >> $output_objdir/$libname.ver~
3.5550 + $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
3.5551 + fi
3.5552 + _LT_AC_TAGVAR(link_all_deplibs, $1)=no
3.5553 + else
3.5554 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3.5555 + fi
3.5556 + ;;
3.5557 +
3.5558 + netbsd* | netbsdelf*-gnu)
3.5559 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3.5560 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
3.5561 + wlarc=
3.5562 + else
3.5563 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3.5564 + _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.5565 + fi
3.5566 + ;;
3.5567 +
3.5568 + solaris*)
3.5569 + if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
3.5570 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3.5571 + cat <<EOF 1>&2
3.5572 +
3.5573 +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
3.5574 +*** create shared libraries on Solaris systems. Therefore, libtool
3.5575 +*** is disabling shared libraries support. We urge you to upgrade GNU
3.5576 +*** binutils to release 2.9.1 or newer. Another option is to modify
3.5577 +*** your PATH or compiler configuration so that the native linker is
3.5578 +*** used, and then restart.
3.5579 +
3.5580 +EOF
3.5581 + elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
3.5582 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3.5583 + _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.5584 + else
3.5585 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3.5586 + fi
3.5587 + ;;
3.5588 +
3.5589 + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
3.5590 + case `$LD -v 2>&1` in
3.5591 + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
3.5592 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3.5593 + cat <<_LT_EOF 1>&2
3.5594 +
3.5595 +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
3.5596 +*** reliably create shared libraries on SCO systems. Therefore, libtool
3.5597 +*** is disabling shared libraries support. We urge you to upgrade GNU
3.5598 +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
3.5599 +*** your PATH or compiler configuration so that the native linker is
3.5600 +*** used, and then restart.
3.5601 +
3.5602 +_LT_EOF
3.5603 + ;;
3.5604 + *)
3.5605 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
3.5606 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
3.5607 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
3.5608 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
3.5609 + else
3.5610 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3.5611 + fi
3.5612 + ;;
3.5613 + esac
3.5614 + ;;
3.5615 +
3.5616 + sunos4*)
3.5617 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
3.5618 + wlarc=
3.5619 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3.5620 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3.5621 + ;;
3.5622 +
3.5623 + *)
3.5624 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
3.5625 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3.5626 + _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.5627 + else
3.5628 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3.5629 + fi
3.5630 + ;;
3.5631 + esac
3.5632 +
3.5633 + if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
3.5634 + runpath_var=
3.5635 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
3.5636 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
3.5637 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3.5638 + fi
3.5639 + else
3.5640 + # PORTME fill in a description of your system's linker (not GNU ld)
3.5641 + case $host_os in
3.5642 + aix3*)
3.5643 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3.5644 + _LT_AC_TAGVAR(always_export_symbols, $1)=yes
3.5645 + _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.5646 + # Note: this linker hardcodes the directories in LIBPATH if there
3.5647 + # are no directories specified by -L.
3.5648 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
3.5649 + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
3.5650 + # Neither direct hardcoding nor static linking is supported with a
3.5651 + # broken collect2.
3.5652 + _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
3.5653 + fi
3.5654 + ;;
3.5655 +
3.5656 + aix4* | aix5*)
3.5657 + if test "$host_cpu" = ia64; then
3.5658 + # On IA64, the linker does run time linking by default, so we don't
3.5659 + # have to do anything special.
3.5660 + aix_use_runtimelinking=no
3.5661 + exp_sym_flag='-Bexport'
3.5662 + no_entry_flag=""
3.5663 + else
3.5664 + # If we're using GNU nm, then we don't want the "-C" option.
3.5665 + # -C means demangle to AIX nm, but means don't demangle with GNU nm
3.5666 + if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
3.5667 + _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.5668 + else
3.5669 + _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.5670 + fi
3.5671 + aix_use_runtimelinking=no
3.5672 +
3.5673 + # Test if we are trying to use run time linking or normal
3.5674 + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
3.5675 + # need to do runtime linking.
3.5676 + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
3.5677 + for ld_flag in $LDFLAGS; do
3.5678 + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
3.5679 + aix_use_runtimelinking=yes
3.5680 + break
3.5681 + fi
3.5682 + done
3.5683 + ;;
3.5684 + esac
3.5685 +
3.5686 + exp_sym_flag='-bexport'
3.5687 + no_entry_flag='-bnoentry'
3.5688 + fi
3.5689 +
3.5690 + # When large executables or shared objects are built, AIX ld can
3.5691 + # have problems creating the table of contents. If linking a library
3.5692 + # or program results in "error TOC overflow" add -mminimal-toc to
3.5693 + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
3.5694 + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
3.5695 +
3.5696 + _LT_AC_TAGVAR(archive_cmds, $1)=''
3.5697 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3.5698 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
3.5699 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3.5700 +
3.5701 + if test "$GCC" = yes; then
3.5702 + case $host_os in aix4.[[012]]|aix4.[[012]].*)
3.5703 + # We only want to do this on AIX 4.2 and lower, the check
3.5704 + # below for broken collect2 doesn't work under 4.3+
3.5705 + collect2name=`${CC} -print-prog-name=collect2`
3.5706 + if test -f "$collect2name" && \
3.5707 + strings "$collect2name" | grep resolve_lib_name >/dev/null
3.5708 + then
3.5709 + # We have reworked collect2
3.5710 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3.5711 + else
3.5712 + # We have old collect2
3.5713 + _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
3.5714 + # It fails to find uninstalled libraries when the uninstalled
3.5715 + # path is not listed in the libpath. Setting hardcode_minus_L
3.5716 + # to unsupported forces relinking
3.5717 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
3.5718 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3.5719 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3.5720 + fi
3.5721 + ;;
3.5722 + esac
3.5723 + shared_flag='-shared'
3.5724 + if test "$aix_use_runtimelinking" = yes; then
3.5725 + shared_flag="$shared_flag "'${wl}-G'
3.5726 + fi
3.5727 + else
3.5728 + # not using gcc
3.5729 + if test "$host_cpu" = ia64; then
3.5730 + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
3.5731 + # chokes on -Wl,-G. The following line is correct:
3.5732 + shared_flag='-G'
3.5733 + else
3.5734 + if test "$aix_use_runtimelinking" = yes; then
3.5735 + shared_flag='${wl}-G'
3.5736 + else
3.5737 + shared_flag='${wl}-bM:SRE'
3.5738 + fi
3.5739 + fi
3.5740 + fi
3.5741 +
3.5742 + # It seems that -bexpall does not export symbols beginning with
3.5743 + # underscore (_), so it is better to generate a list of symbols to export.
3.5744 + _LT_AC_TAGVAR(always_export_symbols, $1)=yes
3.5745 + if test "$aix_use_runtimelinking" = yes; then
3.5746 + # Warning - without using the other runtime loading flags (-brtl),
3.5747 + # -berok will link without error, but may produce a broken library.
3.5748 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
3.5749 + # Determine the default libpath from the value encoded in an empty executable.
3.5750 + _LT_AC_SYS_LIBPATH_AIX
3.5751 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3.5752 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
3.5753 + else
3.5754 + if test "$host_cpu" = ia64; then
3.5755 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
3.5756 + _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
3.5757 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
3.5758 + else
3.5759 + # Determine the default libpath from the value encoded in an empty executable.
3.5760 + _LT_AC_SYS_LIBPATH_AIX
3.5761 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3.5762 + # Warning - without using the other run time loading flags,
3.5763 + # -berok will link without error, but may produce a broken library.
3.5764 + _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
3.5765 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
3.5766 + # Exported symbols can be pulled into shared objects from archives
3.5767 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
3.5768 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
3.5769 + # This is similar to how AIX traditionally builds its shared libraries.
3.5770 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
3.5771 + fi
3.5772 + fi
3.5773 + ;;
3.5774 +
3.5775 + amigaos*)
3.5776 + _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.5777 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3.5778 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
3.5779 + # see comment about different semantics on the GNU ld section
3.5780 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3.5781 + ;;
3.5782 +
3.5783 + bsdi[[45]]*)
3.5784 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
3.5785 + ;;
3.5786 +
3.5787 + cygwin* | mingw* | pw32*)
3.5788 + # When not using gcc, we currently assume that we are using
3.5789 + # Microsoft Visual C++.
3.5790 + # hardcode_libdir_flag_spec is actually meaningless, as there is
3.5791 + # no search path for DLLs.
3.5792 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
3.5793 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3.5794 + # Tell ltmain to make .lib files, not .a files.
3.5795 + libext=lib
3.5796 + # Tell ltmain to make .dll files, not .so files.
3.5797 + shrext_cmds=".dll"
3.5798 + # FIXME: Setting linknames here is a bad hack.
3.5799 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
3.5800 + # The linker will automatically build a .lib file if we build a DLL.
3.5801 + _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
3.5802 + # FIXME: Should let the user specify the lib program.
3.5803 + _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
3.5804 + _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
3.5805 + _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
3.5806 + ;;
3.5807 +
3.5808 + darwin* | rhapsody*)
3.5809 + case $host_os in
3.5810 + rhapsody* | darwin1.[[012]])
3.5811 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
3.5812 + ;;
3.5813 + *) # Darwin 1.3 on
3.5814 + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
3.5815 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3.5816 + else
3.5817 + case ${MACOSX_DEPLOYMENT_TARGET} in
3.5818 + 10.[[012]])
3.5819 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3.5820 + ;;
3.5821 + 10.*)
3.5822 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
3.5823 + ;;
3.5824 + esac
3.5825 + fi
3.5826 + ;;
3.5827 + esac
3.5828 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3.5829 + _LT_AC_TAGVAR(hardcode_direct, $1)=no
3.5830 + _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3.5831 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3.5832 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
3.5833 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3.5834 + if test "$GCC" = yes ; then
3.5835 + output_verbose_link_cmd='echo'
3.5836 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
3.5837 + _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3.5838 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3.5839 + _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.5840 + _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3.5841 + else
3.5842 + case $cc_basename in
3.5843 + xlc*)
3.5844 + output_verbose_link_cmd='echo'
3.5845 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
3.5846 + _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3.5847 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3.5848 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3.5849 + _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3.5850 + ;;
3.5851 + *)
3.5852 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3.5853 + ;;
3.5854 + esac
3.5855 + fi
3.5856 + ;;
3.5857 +
3.5858 + dgux*)
3.5859 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3.5860 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3.5861 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3.5862 + ;;
3.5863 +
3.5864 + freebsd1*)
3.5865 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3.5866 + ;;
3.5867 +
3.5868 + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
3.5869 + # support. Future versions do this automatically, but an explicit c++rt0.o
3.5870 + # does not break anything, and helps significantly (at the cost of a little
3.5871 + # extra space).
3.5872 + freebsd2.2*)
3.5873 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
3.5874 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3.5875 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3.5876 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3.5877 + ;;
3.5878 +
3.5879 + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
3.5880 + freebsd2*)
3.5881 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
3.5882 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3.5883 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
3.5884 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3.5885 + ;;
3.5886 +
3.5887 + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
3.5888 + freebsd* | dragonfly*)
3.5889 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
3.5890 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3.5891 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3.5892 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3.5893 + ;;
3.5894 +
3.5895 + hpux9*)
3.5896 + if test "$GCC" = yes; then
3.5897 + _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.5898 + else
3.5899 + _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.5900 + fi
3.5901 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3.5902 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3.5903 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3.5904 +
3.5905 + # hardcode_minus_L: Not really in the search PATH,
3.5906 + # but as the default location of the library.
3.5907 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
3.5908 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3.5909 + ;;
3.5910 +
3.5911 + hpux10*)
3.5912 + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
3.5913 + _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.5914 + else
3.5915 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
3.5916 + fi
3.5917 + if test "$with_gnu_ld" = no; then
3.5918 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3.5919 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3.5920 +
3.5921 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3.5922 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3.5923 +
3.5924 + # hardcode_minus_L: Not really in the search PATH,
3.5925 + # but as the default location of the library.
3.5926 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
3.5927 + fi
3.5928 + ;;
3.5929 +
3.5930 + hpux11*)
3.5931 + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
3.5932 + case $host_cpu in
3.5933 + hppa*64*)
3.5934 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
3.5935 + ;;
3.5936 + ia64*)
3.5937 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
3.5938 + ;;
3.5939 + *)
3.5940 + _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.5941 + ;;
3.5942 + esac
3.5943 + else
3.5944 + case $host_cpu in
3.5945 + hppa*64*)
3.5946 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
3.5947 + ;;
3.5948 + ia64*)
3.5949 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
3.5950 + ;;
3.5951 + *)
3.5952 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
3.5953 + ;;
3.5954 + esac
3.5955 + fi
3.5956 + if test "$with_gnu_ld" = no; then
3.5957 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3.5958 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3.5959 +
3.5960 + case $host_cpu in
3.5961 + hppa*64*|ia64*)
3.5962 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
3.5963 + _LT_AC_TAGVAR(hardcode_direct, $1)=no
3.5964 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3.5965 + ;;
3.5966 + *)
3.5967 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3.5968 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3.5969 +
3.5970 + # hardcode_minus_L: Not really in the search PATH,
3.5971 + # but as the default location of the library.
3.5972 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
3.5973 + ;;
3.5974 + esac
3.5975 + fi
3.5976 + ;;
3.5977 +
3.5978 + irix5* | irix6* | nonstopux*)
3.5979 + if test "$GCC" = yes; then
3.5980 + _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.5981 + else
3.5982 + _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.5983 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
3.5984 + fi
3.5985 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3.5986 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3.5987 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3.5988 + ;;
3.5989 +
3.5990 + netbsd* | netbsdelf*-gnu)
3.5991 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3.5992 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
3.5993 + else
3.5994 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
3.5995 + fi
3.5996 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3.5997 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3.5998 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3.5999 + ;;
3.6000 +
3.6001 + newsos6)
3.6002 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3.6003 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3.6004 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3.6005 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3.6006 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3.6007 + ;;
3.6008 +
3.6009 + openbsd*)
3.6010 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3.6011 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3.6012 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3.6013 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
3.6014 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
3.6015 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3.6016 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3.6017 + else
3.6018 + case $host_os in
3.6019 + openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
3.6020 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
3.6021 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3.6022 + ;;
3.6023 + *)
3.6024 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
3.6025 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3.6026 + ;;
3.6027 + esac
3.6028 + fi
3.6029 + ;;
3.6030 +
3.6031 + os2*)
3.6032 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3.6033 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
3.6034 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3.6035 + _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.6036 + _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
3.6037 + ;;
3.6038 +
3.6039 + osf3*)
3.6040 + if test "$GCC" = yes; then
3.6041 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3.6042 + _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.6043 + else
3.6044 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
3.6045 + _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.6046 + fi
3.6047 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3.6048 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3.6049 + ;;
3.6050 +
3.6051 + osf4* | osf5*) # as osf3* with the addition of -msym flag
3.6052 + if test "$GCC" = yes; then
3.6053 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3.6054 + _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.6055 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3.6056 + else
3.6057 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
3.6058 + _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.6059 + _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.6060 + $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
3.6061 +
3.6062 + # Both c and cxx compiler support -rpath directly
3.6063 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
3.6064 + fi
3.6065 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3.6066 + ;;
3.6067 +
3.6068 + solaris*)
3.6069 + _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
3.6070 + if test "$GCC" = yes; then
3.6071 + wlarc='${wl}'
3.6072 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
3.6073 + _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.6074 + $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
3.6075 + else
3.6076 + wlarc=''
3.6077 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
3.6078 + _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.6079 + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
3.6080 + fi
3.6081 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3.6082 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3.6083 + case $host_os in
3.6084 + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
3.6085 + *)
3.6086 + # The compiler driver will combine linker options so we
3.6087 + # cannot just pass the convience library names through
3.6088 + # without $wl, iff we do not link with $LD.
3.6089 + # Luckily, gcc supports the same syntax we need for Sun Studio.
3.6090 + # Supported since Solaris 2.6 (maybe 2.5.1?)
3.6091 + case $wlarc in
3.6092 + '')
3.6093 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
3.6094 + *)
3.6095 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
3.6096 + esac ;;
3.6097 + esac
3.6098 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3.6099 + ;;
3.6100 +
3.6101 + sunos4*)
3.6102 + if test "x$host_vendor" = xsequent; then
3.6103 + # Use $CC to link under sequent, because it throws in some extra .o
3.6104 + # files that make .init and .fini sections work.
3.6105 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
3.6106 + else
3.6107 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
3.6108 + fi
3.6109 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3.6110 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3.6111 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
3.6112 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3.6113 + ;;
3.6114 +
3.6115 + sysv4)
3.6116 + case $host_vendor in
3.6117 + sni)
3.6118 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3.6119 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
3.6120 + ;;
3.6121 + siemens)
3.6122 + ## LD is ld it makes a PLAMLIB
3.6123 + ## CC just makes a GrossModule.
3.6124 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
3.6125 + _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
3.6126 + _LT_AC_TAGVAR(hardcode_direct, $1)=no
3.6127 + ;;
3.6128 + motorola)
3.6129 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3.6130 + _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
3.6131 + ;;
3.6132 + esac
3.6133 + runpath_var='LD_RUN_PATH'
3.6134 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3.6135 + ;;
3.6136 +
3.6137 + sysv4.3*)
3.6138 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3.6139 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3.6140 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
3.6141 + ;;
3.6142 +
3.6143 + sysv4*MP*)
3.6144 + if test -d /usr/nec; then
3.6145 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3.6146 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3.6147 + runpath_var=LD_RUN_PATH
3.6148 + hardcode_runpath_var=yes
3.6149 + _LT_AC_TAGVAR(ld_shlibs, $1)=yes
3.6150 + fi
3.6151 + ;;
3.6152 +
3.6153 + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*)
3.6154 + _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
3.6155 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3.6156 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3.6157 + runpath_var='LD_RUN_PATH'
3.6158 +
3.6159 + if test "$GCC" = yes; then
3.6160 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3.6161 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3.6162 + else
3.6163 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3.6164 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3.6165 + fi
3.6166 + ;;
3.6167 +
3.6168 + sysv5* | sco3.2v5* | sco5v6*)
3.6169 + # Note: We can NOT use -z defs as we might desire, because we do not
3.6170 + # link with -lc, and that would cause any symbols used from libc to
3.6171 + # always be unresolved, which means just about no library would
3.6172 + # ever link correctly. If we're not using GNU ld we use -z text
3.6173 + # though, which does catch some bad symbols but isn't as heavy-handed
3.6174 + # as -z defs.
3.6175 + _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
3.6176 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
3.6177 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3.6178 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3.6179 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
3.6180 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
3.6181 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3.6182 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
3.6183 + runpath_var='LD_RUN_PATH'
3.6184 +
3.6185 + if test "$GCC" = yes; then
3.6186 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3.6187 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3.6188 + else
3.6189 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3.6190 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3.6191 + fi
3.6192 + ;;
3.6193 +
3.6194 + uts4*)
3.6195 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3.6196 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3.6197 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3.6198 + ;;
3.6199 +
3.6200 + *)
3.6201 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3.6202 + ;;
3.6203 + esac
3.6204 + fi
3.6205 +])
3.6206 +AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
3.6207 +test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
3.6208 +
3.6209 +#
3.6210 +# Do we need to explicitly link libc?
3.6211 +#
3.6212 +case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
3.6213 +x|xyes)
3.6214 + # Assume -lc should be added
3.6215 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
3.6216 +
3.6217 + if test "$enable_shared" = yes && test "$GCC" = yes; then
3.6218 + case $_LT_AC_TAGVAR(archive_cmds, $1) in
3.6219 + *'~'*)
3.6220 + # FIXME: we may have to deal with multi-command sequences.
3.6221 + ;;
3.6222 + '$CC '*)
3.6223 + # Test whether the compiler implicitly links with -lc since on some
3.6224 + # systems, -lgcc has to come before -lc. If gcc already passes -lc
3.6225 + # to ld, don't add -lc before -lgcc.
3.6226 + AC_MSG_CHECKING([whether -lc should be explicitly linked in])
3.6227 + $rm conftest*
3.6228 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
3.6229 +
3.6230 + if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
3.6231 + soname=conftest
3.6232 + lib=conftest
3.6233 + libobjs=conftest.$ac_objext
3.6234 + deplibs=
3.6235 + wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
3.6236 + pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
3.6237 + compiler_flags=-v
3.6238 + linker_flags=-v
3.6239 + verstring=
3.6240 + output_objdir=.
3.6241 + libname=conftest
3.6242 + lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
3.6243 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=
3.6244 + if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
3.6245 + then
3.6246 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3.6247 + else
3.6248 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
3.6249 + fi
3.6250 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
3.6251 + else
3.6252 + cat conftest.err 1>&5
3.6253 + fi
3.6254 + $rm conftest*
3.6255 + AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
3.6256 + ;;
3.6257 + esac
3.6258 + fi
3.6259 + ;;
3.6260 +esac
3.6261 +])# AC_LIBTOOL_PROG_LD_SHLIBS
3.6262 +
3.6263 +
3.6264 +# _LT_AC_FILE_LTDLL_C
3.6265 +# -------------------
3.6266 +# Be careful that the start marker always follows a newline.
3.6267 +AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
3.6268 +# /* ltdll.c starts here */
3.6269 +# #define WIN32_LEAN_AND_MEAN
3.6270 +# #include <windows.h>
3.6271 +# #undef WIN32_LEAN_AND_MEAN
3.6272 +# #include <stdio.h>
3.6273 +#
3.6274 +# #ifndef __CYGWIN__
3.6275 +# # ifdef __CYGWIN32__
3.6276 +# # define __CYGWIN__ __CYGWIN32__
3.6277 +# # endif
3.6278 +# #endif
3.6279 +#
3.6280 +# #ifdef __cplusplus
3.6281 +# extern "C" {
3.6282 +# #endif
3.6283 +# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
3.6284 +# #ifdef __cplusplus
3.6285 +# }
3.6286 +# #endif
3.6287 +#
3.6288 +# #ifdef __CYGWIN__
3.6289 +# #include <cygwin/cygwin_dll.h>
3.6290 +# DECLARE_CYGWIN_DLL( DllMain );
3.6291 +# #endif
3.6292 +# HINSTANCE __hDllInstance_base;
3.6293 +#
3.6294 +# BOOL APIENTRY
3.6295 +# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
3.6296 +# {
3.6297 +# __hDllInstance_base = hInst;
3.6298 +# return TRUE;
3.6299 +# }
3.6300 +# /* ltdll.c ends here */
3.6301 +])# _LT_AC_FILE_LTDLL_C
3.6302 +
3.6303 +
3.6304 +# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
3.6305 +# ---------------------------------
3.6306 +AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
3.6307 +
3.6308 +
3.6309 +# old names
3.6310 +AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
3.6311 +AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
3.6312 +AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
3.6313 +AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
3.6314 +AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
3.6315 +AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
3.6316 +AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
3.6317 +
3.6318 +# This is just to silence aclocal about the macro not being used
3.6319 +ifelse([AC_DISABLE_FAST_INSTALL])
3.6320 +
3.6321 +AC_DEFUN([LT_AC_PROG_GCJ],
3.6322 +[AC_CHECK_TOOL(GCJ, gcj, no)
3.6323 + test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
3.6324 + AC_SUBST(GCJFLAGS)
3.6325 +])
3.6326 +
3.6327 +AC_DEFUN([LT_AC_PROG_RC],
3.6328 +[AC_CHECK_TOOL(RC, windres, no)
3.6329 +])
3.6330 +
3.6331 +############################################################
3.6332 +# NOTE: This macro has been submitted for inclusion into #
3.6333 +# GNU Autoconf as AC_PROG_SED. When it is available in #
3.6334 +# a released version of Autoconf we should remove this #
3.6335 +# macro and use it instead. #
3.6336 +############################################################
3.6337 +# LT_AC_PROG_SED
3.6338 +# --------------
3.6339 +# Check for a fully-functional sed program, that truncates
3.6340 +# as few characters as possible. Prefer GNU sed if found.
3.6341 +AC_DEFUN([LT_AC_PROG_SED],
3.6342 +[AC_MSG_CHECKING([for a sed that does not truncate output])
3.6343 +AC_CACHE_VAL(lt_cv_path_SED,
3.6344 +[# Loop through the user's path and test for sed and gsed.
3.6345 +# Then use that list of sed's as ones to test for truncation.
3.6346 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3.6347 +for as_dir in $PATH
3.6348 +do
3.6349 + IFS=$as_save_IFS
3.6350 + test -z "$as_dir" && as_dir=.
3.6351 + for lt_ac_prog in sed gsed; do
3.6352 + for ac_exec_ext in '' $ac_executable_extensions; do
3.6353 + if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3.6354 + lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3.6355 + fi
3.6356 + done
3.6357 + done
3.6358 +done
3.6359 +lt_ac_max=0
3.6360 +lt_ac_count=0
3.6361 +# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3.6362 +# along with /bin/sed that truncates output.
3.6363 +for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3.6364 + test ! -f $lt_ac_sed && continue
3.6365 + cat /dev/null > conftest.in
3.6366 + lt_ac_count=0
3.6367 + echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3.6368 + # Check for GNU sed and select it if it is found.
3.6369 + if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3.6370 + lt_cv_path_SED=$lt_ac_sed
3.6371 + break
3.6372 + fi
3.6373 + while true; do
3.6374 + cat conftest.in conftest.in >conftest.tmp
3.6375 + mv conftest.tmp conftest.in
3.6376 + cp conftest.in conftest.nl
3.6377 + echo >>conftest.nl
3.6378 + $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3.6379 + cmp -s conftest.out conftest.nl || break
3.6380 + # 10000 chars as input seems more than enough
3.6381 + test $lt_ac_count -gt 10 && break
3.6382 + lt_ac_count=`expr $lt_ac_count + 1`
3.6383 + if test $lt_ac_count -gt $lt_ac_max; then
3.6384 + lt_ac_max=$lt_ac_count
3.6385 + lt_cv_path_SED=$lt_ac_sed
3.6386 + fi
3.6387 + done
3.6388 +done
3.6389 +])
3.6390 +SED=$lt_cv_path_SED
3.6391 +AC_MSG_RESULT([$SED])
3.6392 +])
4.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
4.2 +++ b/libgnomevfs2-mythtv/m4/pkg.m4 Thu May 10 22:08:17 2007 +0100
4.3 @@ -0,0 +1,157 @@
4.4 +# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
4.5 +#
4.6 +# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
4.7 +#
4.8 +# This program is free software; you can redistribute it and/or modify
4.9 +# it under the terms of the GNU General Public License as published by
4.10 +# the Free Software Foundation; either version 2 of the License, or
4.11 +# (at your option) any later version.
4.12 +#
4.13 +# This program is distributed in the hope that it will be useful, but
4.14 +# WITHOUT ANY WARRANTY; without even the implied warranty of
4.15 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
4.16 +# General Public License for more details.
4.17 +#
4.18 +# You should have received a copy of the GNU General Public License
4.19 +# along with this program; if not, write to the Free Software
4.20 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
4.21 +#
4.22 +# As a special exception to the GNU General Public License, if you
4.23 +# distribute this file as part of a program that contains a
4.24 +# configuration script generated by Autoconf, you may include it under
4.25 +# the same distribution terms that you use for the rest of that program.
4.26 +
4.27 +# PKG_PROG_PKG_CONFIG([MIN-VERSION])
4.28 +# ----------------------------------
4.29 +AC_DEFUN([PKG_PROG_PKG_CONFIG],
4.30 +[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
4.31 +m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
4.32 +AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl
4.33 +if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4.34 + AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
4.35 +fi
4.36 +if test -n "$PKG_CONFIG"; then
4.37 + _pkg_min_version=m4_default([$1], [0.9.0])
4.38 + AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
4.39 + if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4.40 + AC_MSG_RESULT([yes])
4.41 + else
4.42 + AC_MSG_RESULT([no])
4.43 + PKG_CONFIG=""
4.44 + fi
4.45 +
4.46 +fi[]dnl
4.47 +])# PKG_PROG_PKG_CONFIG
4.48 +
4.49 +# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
4.50 +#
4.51 +# Check to see whether a particular set of modules exists. Similar
4.52 +# to PKG_CHECK_MODULES(), but does not set variables or print errors.
4.53 +#
4.54 +#
4.55 +# Similar to PKG_CHECK_MODULES, make sure that the first instance of
4.56 +# this or PKG_CHECK_MODULES is called, or make sure to call
4.57 +# PKG_CHECK_EXISTS manually
4.58 +# --------------------------------------------------------------
4.59 +AC_DEFUN([PKG_CHECK_EXISTS],
4.60 +[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
4.61 +if test -n "$PKG_CONFIG" && \
4.62 + AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
4.63 + m4_ifval([$2], [$2], [:])
4.64 +m4_ifvaln([$3], [else
4.65 + $3])dnl
4.66 +fi])
4.67 +
4.68 +
4.69 +# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
4.70 +# ---------------------------------------------
4.71 +m4_define([_PKG_CONFIG],
4.72 +[if test -n "$PKG_CONFIG"; then
4.73 + if test -n "$$1"; then
4.74 + pkg_cv_[]$1="$$1"
4.75 + else
4.76 + PKG_CHECK_EXISTS([$3],
4.77 + [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
4.78 + [pkg_failed=yes])
4.79 + fi
4.80 +else
4.81 + pkg_failed=untried
4.82 +fi[]dnl
4.83 +])# _PKG_CONFIG
4.84 +
4.85 +# _PKG_SHORT_ERRORS_SUPPORTED
4.86 +# -----------------------------
4.87 +AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
4.88 +[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
4.89 +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4.90 + _pkg_short_errors_supported=yes
4.91 +else
4.92 + _pkg_short_errors_supported=no
4.93 +fi[]dnl
4.94 +])# _PKG_SHORT_ERRORS_SUPPORTED
4.95 +
4.96 +
4.97 +# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
4.98 +# [ACTION-IF-NOT-FOUND])
4.99 +#
4.100 +#
4.101 +# Note that if there is a possibility the first call to
4.102 +# PKG_CHECK_MODULES might not happen, you should be sure to include an
4.103 +# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
4.104 +#
4.105 +#
4.106 +# --------------------------------------------------------------
4.107 +AC_DEFUN([PKG_CHECK_MODULES],
4.108 +[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
4.109 +AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
4.110 +AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
4.111 +
4.112 +pkg_failed=no
4.113 +AC_MSG_CHECKING([for $1])
4.114 +
4.115 +_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
4.116 +_PKG_CONFIG([$1][_LIBS], [libs], [$2])
4.117 +
4.118 +m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
4.119 +and $1[]_LIBS to avoid the need to call pkg-config.
4.120 +See the pkg-config man page for more details.])
4.121 +
4.122 +if test $pkg_failed = yes; then
4.123 + _PKG_SHORT_ERRORS_SUPPORTED
4.124 + if test $_pkg_short_errors_supported = yes; then
4.125 + $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$2"`
4.126 + else
4.127 + $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
4.128 + fi
4.129 + # Put the nasty error message in config.log where it belongs
4.130 + echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
4.131 +
4.132 + ifelse([$4], , [AC_MSG_ERROR(dnl
4.133 +[Package requirements ($2) were not met:
4.134 +
4.135 +$$1_PKG_ERRORS
4.136 +
4.137 +Consider adjusting the PKG_CONFIG_PATH environment variable if you
4.138 +installed software in a non-standard prefix.
4.139 +
4.140 +_PKG_TEXT
4.141 +])],
4.142 + [AC_MSG_RESULT([no])
4.143 + $4])
4.144 +elif test $pkg_failed = untried; then
4.145 + ifelse([$4], , [AC_MSG_FAILURE(dnl
4.146 +[The pkg-config script could not be found or is too old. Make sure it
4.147 +is in your PATH or set the PKG_CONFIG environment variable to the full
4.148 +path to pkg-config.
4.149 +
4.150 +_PKG_TEXT
4.151 +
4.152 +To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.])],
4.153 + [$4])
4.154 +else
4.155 + $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
4.156 + $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
4.157 + AC_MSG_RESULT([yes])
4.158 + ifelse([$3], , :, [$3])
4.159 +fi[]dnl
4.160 +])# PKG_CHECK_MODULES
5.1 --- a/libgnomevfs2-mythtv/modules/mythtv-method.c Thu May 10 02:08:13 2007 +0100
5.2 +++ b/libgnomevfs2-mythtv/modules/mythtv-method.c Thu May 10 22:08:17 2007 +0100
5.3 @@ -161,9 +161,12 @@
5.4 {
5.5 GMythURI *gmyth_uri;
5.6 GMythBackendInfo *backend_info;
5.7 + gboolean is_livetv;
5.8 + gboolean is_local;
5.9
5.10 _GNOME_VFS_METHOD_PARAM_CHECK (info != NULL);
5.11
5.12 +g_debug ("%s - %d", __FUNCTION__, __LINE__);
5.13
5.14 if (myth_handle == NULL) {
5.15 gchar *tmp_str1;
5.16 @@ -194,12 +197,13 @@
5.17 info->permissions = GNOME_VFS_PERM_USER_READ |
5.18 GNOME_VFS_PERM_OTHER_READ |
5.19 GNOME_VFS_PERM_GROUP_READ;
5.20 -
5.21
5.22 info->name = g_strdup (gmyth_uri_get_path (gmyth_uri));
5.23 -
5.24 +
5.25 /* file size for remote files */
5.26 - if ( ( myth_handle->is_livetv = gmyth_uri_is_livetv (gmyth_uri) ) == FALSE) {
5.27 + is_livetv = gmyth_uri_is_livetv (gmyth_uri);
5.28 +
5.29 + if (is_livetv == FALSE) {
5.30 GMythFile *file = NULL;
5.31 gboolean ret = FALSE;
5.32
5.33 @@ -212,22 +216,23 @@
5.34 return GNOME_VFS_ERROR_NOT_FOUND;
5.35 }
5.36
5.37 - if ( ( myth_handle->is_local_file = gmyth_uri_is_local_file(gmyth_uri) ) == TRUE )
5.38 - {
5.39 - file = GMYTH_FILE( gmyth_file_local_new(backend_info) );
5.40 - ret = gmyth_file_local_open ( GMYTH_FILE_LOCAL( file ) );
5.41 + is_local = gmyth_uri_is_local_file (gmyth_uri);
5.42 + if (is_local == TRUE ) {
5.43 + file = GMYTH_FILE (gmyth_file_local_new(backend_info));
5.44 + ret = gmyth_file_local_open (GMYTH_FILE_LOCAL (file));
5.45 } else {
5.46 - file = GMYTH_FILE( gmyth_file_transfer_new(backend_info) );
5.47 - ret = gmyth_file_transfer_open ( GMYTH_FILE_TRANSFER(file), gmyth_uri_get_path (gmyth_uri));
5.48 + file = GMYTH_FILE (gmyth_file_transfer_new(backend_info));
5.49 + ret = gmyth_file_transfer_open (GMYTH_FILE_TRANSFER(file),
5.50 + gmyth_uri_get_path (gmyth_uri));
5.51 }
5.52 -
5.53 +
5.54 if (!ret) {
5.55 g_object_unref (file);
5.56 g_object_unref (backend_info);
5.57 g_debug ("NOT FOUND %s/%d", __FUNCTION__, __LINE__);
5.58 return GNOME_VFS_ERROR_NOT_FOUND;
5.59 }
5.60 -
5.61 +
5.62 info->size = gmyth_file_get_filesize (file);
5.63 info->valid_fields |= GNOME_VFS_FILE_INFO_FIELDS_SIZE;
5.64 g_object_unref (file);