1# generated automatically by aclocal 1.11 -*- Autoconf -*- 2 3# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 4# 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. 5# This file is free software; the Free Software Foundation 6# gives unlimited permission to copy and/or distribute it, 7# with or without modifications, as long as this notice is preserved. 8 9# This program is distributed in the hope that it will be useful, 10# but WITHOUT ANY WARRANTY, to the extent permitted by law; without 11# even the implied warranty of MERCHANTABILITY or FITNESS FOR A 12# PARTICULAR PURPOSE. 13 14m4_ifndef([AC_AUTOCONF_VERSION], 15 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl 16m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.63],, 17[m4_warning([this file was generated for autoconf 2.63. 18You have another version of autoconf. It may work, but is not guaranteed to. 19If you have problems, you may need to regenerate the build system entirely. 20To do so, use the procedure documented by the package, typically `autoreconf'.])]) 21 22# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 23# 24# This file is free software; the Free Software Foundation 25# gives unlimited permission to copy and/or distribute it, 26# with or without modifications, as long as this notice is preserved. 27 28# AM_AUTOMAKE_VERSION(VERSION) 29# ---------------------------- 30# Automake X.Y traces this macro to ensure aclocal.m4 has been 31# generated from the m4 files accompanying Automake X.Y. 32# (This private macro should not be called outside this file.) 33AC_DEFUN([AM_AUTOMAKE_VERSION], 34[am__api_version='1.11' 35dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to 36dnl require some minimum version. Point them to the right macro. 37m4_if([$1], [1.11], [], 38 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl 39]) 40 41# _AM_AUTOCONF_VERSION(VERSION) 42# ----------------------------- 43# aclocal traces this macro to find the Autoconf version. 44# This is a private macro too. Using m4_define simplifies 45# the logic in aclocal, which can simply ignore this definition. 46m4_define([_AM_AUTOCONF_VERSION], []) 47 48# AM_SET_CURRENT_AUTOMAKE_VERSION 49# ------------------------------- 50# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. 51# This function is AC_REQUIREd by AM_INIT_AUTOMAKE. 52AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], 53[AM_AUTOMAKE_VERSION([1.11])dnl 54m4_ifndef([AC_AUTOCONF_VERSION], 55 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl 56_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) 57 58# AM_AUX_DIR_EXPAND -*- Autoconf -*- 59 60# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. 61# 62# This file is free software; the Free Software Foundation 63# gives unlimited permission to copy and/or distribute it, 64# with or without modifications, as long as this notice is preserved. 65 66# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets 67# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to 68# `$srcdir', `$srcdir/..', or `$srcdir/../..'. 69# 70# Of course, Automake must honor this variable whenever it calls a 71# tool from the auxiliary directory. The problem is that $srcdir (and 72# therefore $ac_aux_dir as well) can be either absolute or relative, 73# depending on how configure is run. This is pretty annoying, since 74# it makes $ac_aux_dir quite unusable in subdirectories: in the top 75# source directory, any form will work fine, but in subdirectories a 76# relative path needs to be adjusted first. 77# 78# $ac_aux_dir/missing 79# fails when called from a subdirectory if $ac_aux_dir is relative 80# $top_srcdir/$ac_aux_dir/missing 81# fails if $ac_aux_dir is absolute, 82# fails when called from a subdirectory in a VPATH build with 83# a relative $ac_aux_dir 84# 85# The reason of the latter failure is that $top_srcdir and $ac_aux_dir 86# are both prefixed by $srcdir. In an in-source build this is usually 87# harmless because $srcdir is `.', but things will broke when you 88# start a VPATH build or use an absolute $srcdir. 89# 90# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, 91# iff we strip the leading $srcdir from $ac_aux_dir. That would be: 92# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` 93# and then we would define $MISSING as 94# MISSING="\${SHELL} $am_aux_dir/missing" 95# This will work as long as MISSING is not called from configure, because 96# unfortunately $(top_srcdir) has no meaning in configure. 97# However there are other variables, like CC, which are often used in 98# configure, and could therefore not use this "fixed" $ac_aux_dir. 99# 100# Another solution, used here, is to always expand $ac_aux_dir to an 101# absolute PATH. The drawback is that using absolute paths prevent a 102# configured tree to be moved without reconfiguration. 103 104AC_DEFUN([AM_AUX_DIR_EXPAND], 105[dnl Rely on autoconf to set up CDPATH properly. 106AC_PREREQ([2.50])dnl 107# expand $ac_aux_dir to an absolute path 108am_aux_dir=`cd $ac_aux_dir && pwd` 109]) 110 111# AM_CONDITIONAL -*- Autoconf -*- 112 113# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008 114# Free Software Foundation, Inc. 115# 116# This file is free software; the Free Software Foundation 117# gives unlimited permission to copy and/or distribute it, 118# with or without modifications, as long as this notice is preserved. 119 120# serial 9 121 122# AM_CONDITIONAL(NAME, SHELL-CONDITION) 123# ------------------------------------- 124# Define a conditional. 125AC_DEFUN([AM_CONDITIONAL], 126[AC_PREREQ(2.52)dnl 127 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], 128 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl 129AC_SUBST([$1_TRUE])dnl 130AC_SUBST([$1_FALSE])dnl 131_AM_SUBST_NOTMAKE([$1_TRUE])dnl 132_AM_SUBST_NOTMAKE([$1_FALSE])dnl 133m4_define([_AM_COND_VALUE_$1], [$2])dnl 134if $2; then 135 $1_TRUE= 136 $1_FALSE='#' 137else 138 $1_TRUE='#' 139 $1_FALSE= 140fi 141AC_CONFIG_COMMANDS_PRE( 142[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then 143 AC_MSG_ERROR([[conditional "$1" was never defined. 144Usually this means the macro was only invoked conditionally.]]) 145fi])]) 146 147# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009 148# Free Software Foundation, Inc. 149# 150# This file is free software; the Free Software Foundation 151# gives unlimited permission to copy and/or distribute it, 152# with or without modifications, as long as this notice is preserved. 153 154# serial 10 155 156# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be 157# written in clear, in which case automake, when reading aclocal.m4, 158# will think it sees a *use*, and therefore will trigger all it's 159# C support machinery. Also note that it means that autoscan, seeing 160# CC etc. in the Makefile, will ask for an AC_PROG_CC use... 161 162 163# _AM_DEPENDENCIES(NAME) 164# ---------------------- 165# See how the compiler implements dependency checking. 166# NAME is "CC", "CXX", "GCJ", or "OBJC". 167# We try a few techniques and use that to set a single cache variable. 168# 169# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was 170# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular 171# dependency, and given that the user is not expected to run this macro, 172# just rely on AC_PROG_CC. 173AC_DEFUN([_AM_DEPENDENCIES], 174[AC_REQUIRE([AM_SET_DEPDIR])dnl 175AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl 176AC_REQUIRE([AM_MAKE_INCLUDE])dnl 177AC_REQUIRE([AM_DEP_TRACK])dnl 178 179ifelse([$1], CC, [depcc="$CC" am_compiler_list=], 180 [$1], CXX, [depcc="$CXX" am_compiler_list=], 181 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], 182 [$1], UPC, [depcc="$UPC" am_compiler_list=], 183 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], 184 [depcc="$$1" am_compiler_list=]) 185 186AC_CACHE_CHECK([dependency style of $depcc], 187 [am_cv_$1_dependencies_compiler_type], 188[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 189 # We make a subdir and do the tests there. Otherwise we can end up 190 # making bogus files that we don't know about and never remove. For 191 # instance it was reported that on HP-UX the gcc test will end up 192 # making a dummy file named `D' -- because `-MD' means `put the output 193 # in D'. 194 mkdir conftest.dir 195 # Copy depcomp to subdir because otherwise we won't find it if we're 196 # using a relative directory. 197 cp "$am_depcomp" conftest.dir 198 cd conftest.dir 199 # We will build objects and dependencies in a subdirectory because 200 # it helps to detect inapplicable dependency modes. For instance 201 # both Tru64's cc and ICC support -MD to output dependencies as a 202 # side effect of compilation, but ICC will put the dependencies in 203 # the current directory while Tru64 will put them in the object 204 # directory. 205 mkdir sub 206 207 am_cv_$1_dependencies_compiler_type=none 208 if test "$am_compiler_list" = ""; then 209 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` 210 fi 211 am__universal=false 212 m4_case([$1], [CC], 213 [case " $depcc " in #( 214 *\ -arch\ *\ -arch\ *) am__universal=true ;; 215 esac], 216 [CXX], 217 [case " $depcc " in #( 218 *\ -arch\ *\ -arch\ *) am__universal=true ;; 219 esac]) 220 221 for depmode in $am_compiler_list; do 222 # Setup a source with many dependencies, because some compilers 223 # like to wrap large dependency lists on column 80 (with \), and 224 # we should not choose a depcomp mode which is confused by this. 225 # 226 # We need to recreate these files for each test, as the compiler may 227 # overwrite some of them when testing with obscure command lines. 228 # This happens at least with the AIX C compiler. 229 : > sub/conftest.c 230 for i in 1 2 3 4 5 6; do 231 echo '#include "conftst'$i'.h"' >> sub/conftest.c 232 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 233 # Solaris 8's {/usr,}/bin/sh. 234 touch sub/conftst$i.h 235 done 236 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 237 238 # We check with `-c' and `-o' for the sake of the "dashmstdout" 239 # mode. It turns out that the SunPro C++ compiler does not properly 240 # handle `-M -o', and we need to detect this. Also, some Intel 241 # versions had trouble with output in subdirs 242 am__obj=sub/conftest.${OBJEXT-o} 243 am__minus_obj="-o $am__obj" 244 case $depmode in 245 gcc) 246 # This depmode causes a compiler race in universal mode. 247 test "$am__universal" = false || continue 248 ;; 249 nosideeffect) 250 # after this tag, mechanisms are not by side-effect, so they'll 251 # only be used when explicitly requested 252 if test "x$enable_dependency_tracking" = xyes; then 253 continue 254 else 255 break 256 fi 257 ;; 258 msvisualcpp | msvcmsys) 259 # This compiler won't grok `-c -o', but also, the minuso test has 260 # not run yet. These depmodes are late enough in the game, and 261 # so weak that their functioning should not be impacted. 262 am__obj=conftest.${OBJEXT-o} 263 am__minus_obj= 264 ;; 265 none) break ;; 266 esac 267 if depmode=$depmode \ 268 source=sub/conftest.c object=$am__obj \ 269 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 270 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 271 >/dev/null 2>conftest.err && 272 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 273 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 274 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 275 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 276 # icc doesn't choke on unknown options, it will just issue warnings 277 # or remarks (even with -Werror). So we grep stderr for any message 278 # that says an option was ignored or not supported. 279 # When given -MP, icc 7.0 and 7.1 complain thusly: 280 # icc: Command line warning: ignoring option '-M'; no argument required 281 # The diagnosis changed in icc 8.0: 282 # icc: Command line remark: option '-MP' not supported 283 if (grep 'ignoring option' conftest.err || 284 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 285 am_cv_$1_dependencies_compiler_type=$depmode 286 break 287 fi 288 fi 289 done 290 291 cd .. 292 rm -rf conftest.dir 293else 294 am_cv_$1_dependencies_compiler_type=none 295fi 296]) 297AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) 298AM_CONDITIONAL([am__fastdep$1], [ 299 test "x$enable_dependency_tracking" != xno \ 300 && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) 301]) 302 303 304# AM_SET_DEPDIR 305# ------------- 306# Choose a directory name for dependency files. 307# This macro is AC_REQUIREd in _AM_DEPENDENCIES 308AC_DEFUN([AM_SET_DEPDIR], 309[AC_REQUIRE([AM_SET_LEADING_DOT])dnl 310AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl 311]) 312 313 314# AM_DEP_TRACK 315# ------------ 316AC_DEFUN([AM_DEP_TRACK], 317[AC_ARG_ENABLE(dependency-tracking, 318[ --disable-dependency-tracking speeds up one-time build 319 --enable-dependency-tracking do not reject slow dependency extractors]) 320if test "x$enable_dependency_tracking" != xno; then 321 am_depcomp="$ac_aux_dir/depcomp" 322 AMDEPBACKSLASH='\' 323fi 324AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) 325AC_SUBST([AMDEPBACKSLASH])dnl 326_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl 327]) 328 329# Generate code to set up dependency tracking. -*- Autoconf -*- 330 331# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008 332# Free Software Foundation, Inc. 333# 334# This file is free software; the Free Software Foundation 335# gives unlimited permission to copy and/or distribute it, 336# with or without modifications, as long as this notice is preserved. 337 338#serial 5 339 340# _AM_OUTPUT_DEPENDENCY_COMMANDS 341# ------------------------------ 342AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], 343[{ 344 # Autoconf 2.62 quotes --file arguments for eval, but not when files 345 # are listed without --file. Let's play safe and only enable the eval 346 # if we detect the quoting. 347 case $CONFIG_FILES in 348 *\'*) eval set x "$CONFIG_FILES" ;; 349 *) set x $CONFIG_FILES ;; 350 esac 351 shift 352 for mf 353 do 354 # Strip MF so we end up with the name of the file. 355 mf=`echo "$mf" | sed -e 's/:.*$//'` 356 # Check whether this is an Automake generated Makefile or not. 357 # We used to match only the files named `Makefile.in', but 358 # some people rename them; so instead we look at the file content. 359 # Grep'ing the first line is not enough: some people post-process 360 # each Makefile.in and add a new line on top of each file to say so. 361 # Grep'ing the whole file is not good either: AIX grep has a line 362 # limit of 2048, but all sed's we know have understand at least 4000. 363 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 364 dirpart=`AS_DIRNAME("$mf")` 365 else 366 continue 367 fi 368 # Extract the definition of DEPDIR, am__include, and am__quote 369 # from the Makefile without running `make'. 370 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 371 test -z "$DEPDIR" && continue 372 am__include=`sed -n 's/^am__include = //p' < "$mf"` 373 test -z "am__include" && continue 374 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 375 # When using ansi2knr, U may be empty or an underscore; expand it 376 U=`sed -n 's/^U = //p' < "$mf"` 377 # Find all dependency output files, they are included files with 378 # $(DEPDIR) in their names. We invoke sed twice because it is the 379 # simplest approach to changing $(DEPDIR) to its actual value in the 380 # expansion. 381 for file in `sed -n " 382 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 383 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 384 # Make sure the directory exists. 385 test -f "$dirpart/$file" && continue 386 fdir=`AS_DIRNAME(["$file"])` 387 AS_MKDIR_P([$dirpart/$fdir]) 388 # echo "creating $dirpart/$file" 389 echo '# dummy' > "$dirpart/$file" 390 done 391 done 392} 393])# _AM_OUTPUT_DEPENDENCY_COMMANDS 394 395 396# AM_OUTPUT_DEPENDENCY_COMMANDS 397# ----------------------------- 398# This macro should only be invoked once -- use via AC_REQUIRE. 399# 400# This code is only required when automatic dependency tracking 401# is enabled. FIXME. This creates each `.P' file that we will 402# need in order to bootstrap the dependency handling code. 403AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], 404[AC_CONFIG_COMMANDS([depfiles], 405 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], 406 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) 407]) 408 409# Do all the work for Automake. -*- Autoconf -*- 410 411# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 412# 2005, 2006, 2008, 2009 Free Software Foundation, Inc. 413# 414# This file is free software; the Free Software Foundation 415# gives unlimited permission to copy and/or distribute it, 416# with or without modifications, as long as this notice is preserved. 417 418# serial 16 419 420# This macro actually does too much. Some checks are only needed if 421# your package does certain things. But this isn't really a big deal. 422 423# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) 424# AM_INIT_AUTOMAKE([OPTIONS]) 425# ----------------------------------------------- 426# The call with PACKAGE and VERSION arguments is the old style 427# call (pre autoconf-2.50), which is being phased out. PACKAGE 428# and VERSION should now be passed to AC_INIT and removed from 429# the call to AM_INIT_AUTOMAKE. 430# We support both call styles for the transition. After 431# the next Automake release, Autoconf can make the AC_INIT 432# arguments mandatory, and then we can depend on a new Autoconf 433# release and drop the old call support. 434AC_DEFUN([AM_INIT_AUTOMAKE], 435[AC_PREREQ([2.62])dnl 436dnl Autoconf wants to disallow AM_ names. We explicitly allow 437dnl the ones we care about. 438m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl 439AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl 440AC_REQUIRE([AC_PROG_INSTALL])dnl 441if test "`cd $srcdir && pwd`" != "`pwd`"; then 442 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 443 # is not polluted with repeated "-I." 444 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl 445 # test to see if srcdir already configured 446 if test -f $srcdir/config.status; then 447 AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) 448 fi 449fi 450 451# test whether we have cygpath 452if test -z "$CYGPATH_W"; then 453 if (cygpath --version) >/dev/null 2>/dev/null; then 454 CYGPATH_W='cygpath -w' 455 else 456 CYGPATH_W=echo 457 fi 458fi 459AC_SUBST([CYGPATH_W]) 460 461# Define the identity of the package. 462dnl Distinguish between old-style and new-style calls. 463m4_ifval([$2], 464[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl 465 AC_SUBST([PACKAGE], [$1])dnl 466 AC_SUBST([VERSION], [$2])], 467[_AM_SET_OPTIONS([$1])dnl 468dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. 469m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,, 470 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl 471 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl 472 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl 473 474_AM_IF_OPTION([no-define],, 475[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) 476 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl 477 478# Some tools Automake needs. 479AC_REQUIRE([AM_SANITY_CHECK])dnl 480AC_REQUIRE([AC_ARG_PROGRAM])dnl 481AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) 482AM_MISSING_PROG(AUTOCONF, autoconf) 483AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) 484AM_MISSING_PROG(AUTOHEADER, autoheader) 485AM_MISSING_PROG(MAKEINFO, makeinfo) 486AC_REQUIRE([AM_PROG_INSTALL_SH])dnl 487AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl 488AC_REQUIRE([AM_PROG_MKDIR_P])dnl 489# We need awk for the "check" target. The system "awk" is bad on 490# some platforms. 491AC_REQUIRE([AC_PROG_AWK])dnl 492AC_REQUIRE([AC_PROG_MAKE_SET])dnl 493AC_REQUIRE([AM_SET_LEADING_DOT])dnl 494_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], 495 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], 496 [_AM_PROG_TAR([v7])])]) 497_AM_IF_OPTION([no-dependencies],, 498[AC_PROVIDE_IFELSE([AC_PROG_CC], 499 [_AM_DEPENDENCIES(CC)], 500 [define([AC_PROG_CC], 501 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl 502AC_PROVIDE_IFELSE([AC_PROG_CXX], 503 [_AM_DEPENDENCIES(CXX)], 504 [define([AC_PROG_CXX], 505 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl 506AC_PROVIDE_IFELSE([AC_PROG_OBJC], 507 [_AM_DEPENDENCIES(OBJC)], 508 [define([AC_PROG_OBJC], 509 defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl 510]) 511_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl 512dnl The `parallel-tests' driver may need to know about EXEEXT, so add the 513dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro 514dnl is hooked onto _AC_COMPILER_EXEEXT early, see below. 515AC_CONFIG_COMMANDS_PRE(dnl 516[m4_provide_if([_AM_COMPILER_EXEEXT], 517 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl 518]) 519 520dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not 521dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further 522dnl mangled by Autoconf and run in a shell conditional statement. 523m4_define([_AC_COMPILER_EXEEXT], 524m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) 525 526 527# When config.status generates a header, we must update the stamp-h file. 528# This file resides in the same directory as the config header 529# that is generated. The stamp files are numbered to have different names. 530 531# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the 532# loop where config.status creates the headers, so we can generate 533# our stamp files there. 534AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], 535[# Compute $1's index in $config_headers. 536_am_arg=$1 537_am_stamp_count=1 538for _am_header in $config_headers :; do 539 case $_am_header in 540 $_am_arg | $_am_arg:* ) 541 break ;; 542 * ) 543 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 544 esac 545done 546echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) 547 548# Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc. 549# 550# This file is free software; the Free Software Foundation 551# gives unlimited permission to copy and/or distribute it, 552# with or without modifications, as long as this notice is preserved. 553 554# AM_PROG_INSTALL_SH 555# ------------------ 556# Define $install_sh. 557AC_DEFUN([AM_PROG_INSTALL_SH], 558[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 559if test x"${install_sh}" != xset; then 560 case $am_aux_dir in 561 *\ * | *\ *) 562 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 563 *) 564 install_sh="\${SHELL} $am_aux_dir/install-sh" 565 esac 566fi 567AC_SUBST(install_sh)]) 568 569# Copyright (C) 2003, 2005 Free Software Foundation, Inc. 570# 571# This file is free software; the Free Software Foundation 572# gives unlimited permission to copy and/or distribute it, 573# with or without modifications, as long as this notice is preserved. 574 575# serial 2 576 577# Check whether the underlying file-system supports filenames 578# with a leading dot. For instance MS-DOS doesn't. 579AC_DEFUN([AM_SET_LEADING_DOT], 580[rm -rf .tst 2>/dev/null 581mkdir .tst 2>/dev/null 582if test -d .tst; then 583 am__leading_dot=. 584else 585 am__leading_dot=_ 586fi 587rmdir .tst 2>/dev/null 588AC_SUBST([am__leading_dot])]) 589 590# Add --enable-maintainer-mode option to configure. -*- Autoconf -*- 591# From Jim Meyering 592 593# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008 594# Free Software Foundation, Inc. 595# 596# This file is free software; the Free Software Foundation 597# gives unlimited permission to copy and/or distribute it, 598# with or without modifications, as long as this notice is preserved. 599 600# serial 5 601 602# AM_MAINTAINER_MODE([DEFAULT-MODE]) 603# ---------------------------------- 604# Control maintainer-specific portions of Makefiles. 605# Default is to disable them, unless `enable' is passed literally. 606# For symmetry, `disable' may be passed as well. Anyway, the user 607# can override the default with the --enable/--disable switch. 608AC_DEFUN([AM_MAINTAINER_MODE], 609[m4_case(m4_default([$1], [disable]), 610 [enable], [m4_define([am_maintainer_other], [disable])], 611 [disable], [m4_define([am_maintainer_other], [enable])], 612 [m4_define([am_maintainer_other], [enable]) 613 m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])]) 614AC_MSG_CHECKING([whether to am_maintainer_other maintainer-specific portions of Makefiles]) 615 dnl maintainer-mode's default is 'disable' unless 'enable' is passed 616 AC_ARG_ENABLE([maintainer-mode], 617[ --][am_maintainer_other][-maintainer-mode am_maintainer_other make rules and dependencies not useful 618 (and sometimes confusing) to the casual installer], 619 [USE_MAINTAINER_MODE=$enableval], 620 [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes])) 621 AC_MSG_RESULT([$USE_MAINTAINER_MODE]) 622 AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes]) 623 MAINT=$MAINTAINER_MODE_TRUE 624 AC_SUBST([MAINT])dnl 625] 626) 627 628AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE]) 629 630# Check to see how 'make' treats includes. -*- Autoconf -*- 631 632# Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc. 633# 634# This file is free software; the Free Software Foundation 635# gives unlimited permission to copy and/or distribute it, 636# with or without modifications, as long as this notice is preserved. 637 638# serial 4 639 640# AM_MAKE_INCLUDE() 641# ----------------- 642# Check to see how make treats includes. 643AC_DEFUN([AM_MAKE_INCLUDE], 644[am_make=${MAKE-make} 645cat > confinc << 'END' 646am__doit: 647 @echo this is the am__doit target 648.PHONY: am__doit 649END 650# If we don't find an include directive, just comment out the code. 651AC_MSG_CHECKING([for style of include used by $am_make]) 652am__include="#" 653am__quote= 654_am_result=none 655# First try GNU make style include. 656echo "include confinc" > confmf 657# Ignore all kinds of additional output from `make'. 658case `$am_make -s -f confmf 2> /dev/null` in #( 659*the\ am__doit\ target*) 660 am__include=include 661 am__quote= 662 _am_result=GNU 663 ;; 664esac 665# Now try BSD make style include. 666if test "$am__include" = "#"; then 667 echo '.include "confinc"' > confmf 668 case `$am_make -s -f confmf 2> /dev/null` in #( 669 *the\ am__doit\ target*) 670 am__include=.include 671 am__quote="\"" 672 _am_result=BSD 673 ;; 674 esac 675fi 676AC_SUBST([am__include]) 677AC_SUBST([am__quote]) 678AC_MSG_RESULT([$_am_result]) 679rm -f confinc confmf 680]) 681 682# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- 683 684# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008 685# Free Software Foundation, Inc. 686# 687# This file is free software; the Free Software Foundation 688# gives unlimited permission to copy and/or distribute it, 689# with or without modifications, as long as this notice is preserved. 690 691# serial 6 692 693# AM_MISSING_PROG(NAME, PROGRAM) 694# ------------------------------ 695AC_DEFUN([AM_MISSING_PROG], 696[AC_REQUIRE([AM_MISSING_HAS_RUN]) 697$1=${$1-"${am_missing_run}$2"} 698AC_SUBST($1)]) 699 700 701# AM_MISSING_HAS_RUN 702# ------------------ 703# Define MISSING if not defined so far and test if it supports --run. 704# If it does, set am_missing_run to use it, otherwise, to nothing. 705AC_DEFUN([AM_MISSING_HAS_RUN], 706[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 707AC_REQUIRE_AUX_FILE([missing])dnl 708if test x"${MISSING+set}" != xset; then 709 case $am_aux_dir in 710 *\ * | *\ *) 711 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 712 *) 713 MISSING="\${SHELL} $am_aux_dir/missing" ;; 714 esac 715fi 716# Use eval to expand $SHELL 717if eval "$MISSING --run true"; then 718 am_missing_run="$MISSING --run " 719else 720 am_missing_run= 721 AC_MSG_WARN([`missing' script is too old or missing]) 722fi 723]) 724 725# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 726# 727# This file is free software; the Free Software Foundation 728# gives unlimited permission to copy and/or distribute it, 729# with or without modifications, as long as this notice is preserved. 730 731# AM_PROG_MKDIR_P 732# --------------- 733# Check for `mkdir -p'. 734AC_DEFUN([AM_PROG_MKDIR_P], 735[AC_PREREQ([2.60])dnl 736AC_REQUIRE([AC_PROG_MKDIR_P])dnl 737dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, 738dnl while keeping a definition of mkdir_p for backward compatibility. 739dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. 740dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of 741dnl Makefile.ins that do not define MKDIR_P, so we do our own 742dnl adjustment using top_builddir (which is defined more often than 743dnl MKDIR_P). 744AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl 745case $mkdir_p in 746 [[\\/$]]* | ?:[[\\/]]*) ;; 747 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 748esac 749]) 750 751# Helper functions for option handling. -*- Autoconf -*- 752 753# Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc. 754# 755# This file is free software; the Free Software Foundation 756# gives unlimited permission to copy and/or distribute it, 757# with or without modifications, as long as this notice is preserved. 758 759# serial 4 760 761# _AM_MANGLE_OPTION(NAME) 762# ----------------------- 763AC_DEFUN([_AM_MANGLE_OPTION], 764[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) 765 766# _AM_SET_OPTION(NAME) 767# ------------------------------ 768# Set option NAME. Presently that only means defining a flag for this option. 769AC_DEFUN([_AM_SET_OPTION], 770[m4_define(_AM_MANGLE_OPTION([$1]), 1)]) 771 772# _AM_SET_OPTIONS(OPTIONS) 773# ---------------------------------- 774# OPTIONS is a space-separated list of Automake options. 775AC_DEFUN([_AM_SET_OPTIONS], 776[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) 777 778# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) 779# ------------------------------------------- 780# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. 781AC_DEFUN([_AM_IF_OPTION], 782[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) 783 784# Check to make sure that the build environment is sane. -*- Autoconf -*- 785 786# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008 787# Free Software Foundation, Inc. 788# 789# This file is free software; the Free Software Foundation 790# gives unlimited permission to copy and/or distribute it, 791# with or without modifications, as long as this notice is preserved. 792 793# serial 5 794 795# AM_SANITY_CHECK 796# --------------- 797AC_DEFUN([AM_SANITY_CHECK], 798[AC_MSG_CHECKING([whether build environment is sane]) 799# Just in case 800sleep 1 801echo timestamp > conftest.file 802# Reject unsafe characters in $srcdir or the absolute working directory 803# name. Accept space and tab only in the latter. 804am_lf=' 805' 806case `pwd` in 807 *[[\\\"\#\$\&\'\`$am_lf]]*) 808 AC_MSG_ERROR([unsafe absolute working directory name]);; 809esac 810case $srcdir in 811 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) 812 AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);; 813esac 814 815# Do `set' in a subshell so we don't clobber the current shell's 816# arguments. Must try -L first in case configure is actually a 817# symlink; some systems play weird games with the mod time of symlinks 818# (eg FreeBSD returns the mod time of the symlink's containing 819# directory). 820if ( 821 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 822 if test "$[*]" = "X"; then 823 # -L didn't work. 824 set X `ls -t "$srcdir/configure" conftest.file` 825 fi 826 rm -f conftest.file 827 if test "$[*]" != "X $srcdir/configure conftest.file" \ 828 && test "$[*]" != "X conftest.file $srcdir/configure"; then 829 830 # If neither matched, then we have a broken ls. This can happen 831 # if, for instance, CONFIG_SHELL is bash and it inherits a 832 # broken ls alias from the environment. This has actually 833 # happened. Such a system could not be considered "sane". 834 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken 835alias in your environment]) 836 fi 837 838 test "$[2]" = conftest.file 839 ) 840then 841 # Ok. 842 : 843else 844 AC_MSG_ERROR([newly created file is older than distributed files! 845Check your system clock]) 846fi 847AC_MSG_RESULT(yes)]) 848 849# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. 850# 851# This file is free software; the Free Software Foundation 852# gives unlimited permission to copy and/or distribute it, 853# with or without modifications, as long as this notice is preserved. 854 855# AM_PROG_INSTALL_STRIP 856# --------------------- 857# One issue with vendor `install' (even GNU) is that you can't 858# specify the program used to strip binaries. This is especially 859# annoying in cross-compiling environments, where the build's strip 860# is unlikely to handle the host's binaries. 861# Fortunately install-sh will honor a STRIPPROG variable, so we 862# always use install-sh in `make install-strip', and initialize 863# STRIPPROG with the value of the STRIP variable (set by the user). 864AC_DEFUN([AM_PROG_INSTALL_STRIP], 865[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl 866# Installed binaries are usually stripped using `strip' when the user 867# run `make install-strip'. However `strip' might not be the right 868# tool to use in cross-compilation environments, therefore Automake 869# will honor the `STRIP' environment variable to overrule this program. 870dnl Don't test for $cross_compiling = yes, because it might be `maybe'. 871if test "$cross_compiling" != no; then 872 AC_CHECK_TOOL([STRIP], [strip], :) 873fi 874INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 875AC_SUBST([INSTALL_STRIP_PROGRAM])]) 876 877# Copyright (C) 2006, 2008 Free Software Foundation, Inc. 878# 879# This file is free software; the Free Software Foundation 880# gives unlimited permission to copy and/or distribute it, 881# with or without modifications, as long as this notice is preserved. 882 883# serial 2 884 885# _AM_SUBST_NOTMAKE(VARIABLE) 886# --------------------------- 887# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. 888# This macro is traced by Automake. 889AC_DEFUN([_AM_SUBST_NOTMAKE]) 890 891# AM_SUBST_NOTMAKE(VARIABLE) 892# --------------------------- 893# Public sister of _AM_SUBST_NOTMAKE. 894AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) 895 896# Check how to create a tarball. -*- Autoconf -*- 897 898# Copyright (C) 2004, 2005 Free Software Foundation, Inc. 899# 900# This file is free software; the Free Software Foundation 901# gives unlimited permission to copy and/or distribute it, 902# with or without modifications, as long as this notice is preserved. 903 904# serial 2 905 906# _AM_PROG_TAR(FORMAT) 907# -------------------- 908# Check how to create a tarball in format FORMAT. 909# FORMAT should be one of `v7', `ustar', or `pax'. 910# 911# Substitute a variable $(am__tar) that is a command 912# writing to stdout a FORMAT-tarball containing the directory 913# $tardir. 914# tardir=directory && $(am__tar) > result.tar 915# 916# Substitute a variable $(am__untar) that extract such 917# a tarball read from stdin. 918# $(am__untar) < result.tar 919AC_DEFUN([_AM_PROG_TAR], 920[# Always define AMTAR for backward compatibility. 921AM_MISSING_PROG([AMTAR], [tar]) 922m4_if([$1], [v7], 923 [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], 924 [m4_case([$1], [ustar],, [pax],, 925 [m4_fatal([Unknown tar format])]) 926AC_MSG_CHECKING([how to create a $1 tar archive]) 927# Loop over all known methods to create a tar archive until one works. 928_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' 929_am_tools=${am_cv_prog_tar_$1-$_am_tools} 930# Do not fold the above two line into one, because Tru64 sh and 931# Solaris sh will not grok spaces in the rhs of `-'. 932for _am_tool in $_am_tools 933do 934 case $_am_tool in 935 gnutar) 936 for _am_tar in tar gnutar gtar; 937 do 938 AM_RUN_LOG([$_am_tar --version]) && break 939 done 940 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' 941 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' 942 am__untar="$_am_tar -xf -" 943 ;; 944 plaintar) 945 # Must skip GNU tar: if it does not support --format= it doesn't create 946 # ustar tarball either. 947 (tar --version) >/dev/null 2>&1 && continue 948 am__tar='tar chf - "$$tardir"' 949 am__tar_='tar chf - "$tardir"' 950 am__untar='tar xf -' 951 ;; 952 pax) 953 am__tar='pax -L -x $1 -w "$$tardir"' 954 am__tar_='pax -L -x $1 -w "$tardir"' 955 am__untar='pax -r' 956 ;; 957 cpio) 958 am__tar='find "$$tardir" -print | cpio -o -H $1 -L' 959 am__tar_='find "$tardir" -print | cpio -o -H $1 -L' 960 am__untar='cpio -i -H $1 -d' 961 ;; 962 none) 963 am__tar=false 964 am__tar_=false 965 am__untar=false 966 ;; 967 esac 968 969 # If the value was cached, stop now. We just wanted to have am__tar 970 # and am__untar set. 971 test -n "${am_cv_prog_tar_$1}" && break 972 973 # tar/untar a dummy directory, and stop if the command works 974 rm -rf conftest.dir 975 mkdir conftest.dir 976 echo GrepMe > conftest.dir/file 977 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) 978 rm -rf conftest.dir 979 if test -s conftest.tar; then 980 AM_RUN_LOG([$am__untar <conftest.tar]) 981 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 982 fi 983done 984rm -rf conftest.dir 985 986AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) 987AC_MSG_RESULT([$am_cv_prog_tar_$1])]) 988AC_SUBST([am__tar]) 989AC_SUBST([am__untar]) 990]) # _AM_PROG_TAR 991 992# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- 993# 994# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 995# 2006, 2007, 2008 Free Software Foundation, Inc. 996# Written by Gordon Matzigkeit, 1996 997# 998# This file is free software; the Free Software Foundation gives 999# unlimited permission to copy and/or distribute it, with or without 1000# modifications, as long as this notice is preserved. 1001 1002m4_define([_LT_COPYING], [dnl 1003# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 1004# 2006, 2007, 2008 Free Software Foundation, Inc. 1005# Written by Gordon Matzigkeit, 1996 1006# 1007# This file is part of GNU Libtool. 1008# 1009# GNU Libtool is free software; you can redistribute it and/or 1010# modify it under the terms of the GNU General Public License as 1011# published by the Free Software Foundation; either version 2 of 1012# the License, or (at your option) any later version. 1013# 1014# As a special exception to the GNU General Public License, 1015# if you distribute this file as part of a program or library that 1016# is built using GNU Libtool, you may include this file under the 1017# same distribution terms that you use for the rest of that program. 1018# 1019# GNU Libtool is distributed in the hope that it will be useful, 1020# but WITHOUT ANY WARRANTY; without even the implied warranty of 1021# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1022# GNU General Public License for more details. 1023# 1024# You should have received a copy of the GNU General Public License 1025# along with GNU Libtool; see the file COPYING. If not, a copy 1026# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 1027# obtained by writing to the Free Software Foundation, Inc., 1028# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 1029]) 1030 1031# serial 56 LT_INIT 1032 1033 1034# LT_PREREQ(VERSION) 1035# ------------------ 1036# Complain and exit if this libtool version is less that VERSION. 1037m4_defun([LT_PREREQ], 1038[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1, 1039 [m4_default([$3], 1040 [m4_fatal([Libtool version $1 or higher is required], 1041 63)])], 1042 [$2])]) 1043 1044 1045# _LT_CHECK_BUILDDIR 1046# ------------------ 1047# Complain if the absolute build directory name contains unusual characters 1048m4_defun([_LT_CHECK_BUILDDIR], 1049[case `pwd` in 1050 *\ * | *\ *) 1051 AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;; 1052esac 1053]) 1054 1055 1056# LT_INIT([OPTIONS]) 1057# ------------------ 1058AC_DEFUN([LT_INIT], 1059[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT 1060AC_BEFORE([$0], [LT_LANG])dnl 1061AC_BEFORE([$0], [LT_OUTPUT])dnl 1062AC_BEFORE([$0], [LTDL_INIT])dnl 1063m4_require([_LT_CHECK_BUILDDIR])dnl 1064 1065dnl Autoconf doesn't catch unexpanded LT_ macros by default: 1066m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl 1067m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl 1068dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4 1069dnl unless we require an AC_DEFUNed macro: 1070AC_REQUIRE([LTOPTIONS_VERSION])dnl 1071AC_REQUIRE([LTSUGAR_VERSION])dnl 1072AC_REQUIRE([LTVERSION_VERSION])dnl 1073AC_REQUIRE([LTOBSOLETE_VERSION])dnl 1074m4_require([_LT_PROG_LTMAIN])dnl 1075 1076dnl Parse OPTIONS 1077_LT_SET_OPTIONS([$0], [$1]) 1078 1079# This can be used to rebuild libtool when needed 1080LIBTOOL_DEPS="$ltmain" 1081 1082# Always use our own libtool. 1083LIBTOOL='$(SHELL) $(top_builddir)/libtool' 1084AC_SUBST(LIBTOOL)dnl 1085 1086_LT_SETUP 1087 1088# Only expand once: 1089m4_define([LT_INIT]) 1090])# LT_INIT 1091 1092# Old names: 1093AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT]) 1094AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT]) 1095dnl aclocal-1.4 backwards compatibility: 1096dnl AC_DEFUN([AC_PROG_LIBTOOL], []) 1097dnl AC_DEFUN([AM_PROG_LIBTOOL], []) 1098 1099 1100# _LT_CC_BASENAME(CC) 1101# ------------------- 1102# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 1103m4_defun([_LT_CC_BASENAME], 1104[for cc_temp in $1""; do 1105 case $cc_temp in 1106 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; 1107 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; 1108 \-*) ;; 1109 *) break;; 1110 esac 1111done 1112cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 1113]) 1114 1115 1116# _LT_FILEUTILS_DEFAULTS 1117# ---------------------- 1118# It is okay to use these file commands and assume they have been set 1119# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'. 1120m4_defun([_LT_FILEUTILS_DEFAULTS], 1121[: ${CP="cp -f"} 1122: ${MV="mv -f"} 1123: ${RM="rm -f"} 1124])# _LT_FILEUTILS_DEFAULTS 1125 1126 1127# _LT_SETUP 1128# --------- 1129m4_defun([_LT_SETUP], 1130[AC_REQUIRE([AC_CANONICAL_HOST])dnl 1131AC_REQUIRE([AC_CANONICAL_BUILD])dnl 1132_LT_DECL([], [host_alias], [0], [The host system])dnl 1133_LT_DECL([], [host], [0])dnl 1134_LT_DECL([], [host_os], [0])dnl 1135dnl 1136_LT_DECL([], [build_alias], [0], [The build system])dnl 1137_LT_DECL([], [build], [0])dnl 1138_LT_DECL([], [build_os], [0])dnl 1139dnl 1140AC_REQUIRE([AC_PROG_CC])dnl 1141AC_REQUIRE([LT_PATH_LD])dnl 1142AC_REQUIRE([LT_PATH_NM])dnl 1143dnl 1144AC_REQUIRE([AC_PROG_LN_S])dnl 1145test -z "$LN_S" && LN_S="ln -s" 1146_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl 1147dnl 1148AC_REQUIRE([LT_CMD_MAX_LEN])dnl 1149_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl 1150_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl 1151dnl 1152m4_require([_LT_FILEUTILS_DEFAULTS])dnl 1153m4_require([_LT_CHECK_SHELL_FEATURES])dnl 1154m4_require([_LT_CMD_RELOAD])dnl 1155m4_require([_LT_CHECK_MAGIC_METHOD])dnl 1156m4_require([_LT_CMD_OLD_ARCHIVE])dnl 1157m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl 1158 1159_LT_CONFIG_LIBTOOL_INIT([ 1160# See if we are running on zsh, and set the options which allow our 1161# commands through without removal of \ escapes INIT. 1162if test -n "\${ZSH_VERSION+set}" ; then 1163 setopt NO_GLOB_SUBST 1164fi 1165]) 1166if test -n "${ZSH_VERSION+set}" ; then 1167 setopt NO_GLOB_SUBST 1168fi 1169 1170_LT_CHECK_OBJDIR 1171 1172m4_require([_LT_TAG_COMPILER])dnl 1173_LT_PROG_ECHO_BACKSLASH 1174 1175case $host_os in 1176aix3*) 1177 # AIX sometimes has problems with the GCC collect2 program. For some 1178 # reason, if we set the COLLECT_NAMES environment variable, the problems 1179 # vanish in a puff of smoke. 1180 if test "X${COLLECT_NAMES+set}" != Xset; then 1181 COLLECT_NAMES= 1182 export COLLECT_NAMES 1183 fi 1184 ;; 1185esac 1186 1187# Sed substitution that helps us do robust quoting. It backslashifies 1188# metacharacters that are still active within double-quoted strings. 1189sed_quote_subst='s/\([["`$\\]]\)/\\\1/g' 1190 1191# Same as above, but do not quote variable references. 1192double_quote_subst='s/\([["`\\]]\)/\\\1/g' 1193 1194# Sed substitution to delay expansion of an escaped shell variable in a 1195# double_quote_subst'ed string. 1196delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 1197 1198# Sed substitution to delay expansion of an escaped single quote. 1199delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 1200 1201# Sed substitution to avoid accidental globbing in evaled expressions 1202no_glob_subst='s/\*/\\\*/g' 1203 1204# Global variables: 1205ofile=libtool 1206can_build_shared=yes 1207 1208# All known linkers require a `.a' archive for static linking (except MSVC, 1209# which needs '.lib'). 1210libext=a 1211 1212with_gnu_ld="$lt_cv_prog_gnu_ld" 1213 1214old_CC="$CC" 1215old_CFLAGS="$CFLAGS" 1216 1217# Set sane defaults for various variables 1218test -z "$CC" && CC=cc 1219test -z "$LTCC" && LTCC=$CC 1220test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 1221test -z "$LD" && LD=ld 1222test -z "$ac_objext" && ac_objext=o 1223 1224_LT_CC_BASENAME([$compiler]) 1225 1226# Only perform the check for file, if the check method requires it 1227test -z "$MAGIC_CMD" && MAGIC_CMD=file 1228case $deplibs_check_method in 1229file_magic*) 1230 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 1231 _LT_PATH_MAGIC 1232 fi 1233 ;; 1234esac 1235 1236# Use C for the default configuration in the libtool script 1237LT_SUPPORTED_TAG([CC]) 1238_LT_LANG_C_CONFIG 1239_LT_LANG_DEFAULT_CONFIG 1240_LT_CONFIG_COMMANDS 1241])# _LT_SETUP 1242 1243 1244# _LT_PROG_LTMAIN 1245# --------------- 1246# Note that this code is called both from `configure', and `config.status' 1247# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably, 1248# `config.status' has no value for ac_aux_dir unless we are using Automake, 1249# so we pass a copy along to make sure it has a sensible value anyway. 1250m4_defun([_LT_PROG_LTMAIN], 1251[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl 1252_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir']) 1253ltmain="$ac_aux_dir/ltmain.sh" 1254])# _LT_PROG_LTMAIN 1255 1256 1257 1258# So that we can recreate a full libtool script including additional 1259# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS 1260# in macros and then make a single call at the end using the `libtool' 1261# label. 1262 1263 1264# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS]) 1265# ---------------------------------------- 1266# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later. 1267m4_define([_LT_CONFIG_LIBTOOL_INIT], 1268[m4_ifval([$1], 1269 [m4_append([_LT_OUTPUT_LIBTOOL_INIT], 1270 [$1 1271])])]) 1272 1273# Initialize. 1274m4_define([_LT_OUTPUT_LIBTOOL_INIT]) 1275 1276 1277# _LT_CONFIG_LIBTOOL([COMMANDS]) 1278# ------------------------------ 1279# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later. 1280m4_define([_LT_CONFIG_LIBTOOL], 1281[m4_ifval([$1], 1282 [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS], 1283 [$1 1284])])]) 1285 1286# Initialize. 1287m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS]) 1288 1289 1290# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS]) 1291# ----------------------------------------------------- 1292m4_defun([_LT_CONFIG_SAVE_COMMANDS], 1293[_LT_CONFIG_LIBTOOL([$1]) 1294_LT_CONFIG_LIBTOOL_INIT([$2]) 1295]) 1296 1297 1298# _LT_FORMAT_COMMENT([COMMENT]) 1299# ----------------------------- 1300# Add leading comment marks to the start of each line, and a trailing 1301# full-stop to the whole comment if one is not present already. 1302m4_define([_LT_FORMAT_COMMENT], 1303[m4_ifval([$1], [ 1304m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])], 1305 [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.]) 1306)]) 1307 1308 1309 1310 1311 1312# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?]) 1313# ------------------------------------------------------------------- 1314# CONFIGNAME is the name given to the value in the libtool script. 1315# VARNAME is the (base) name used in the configure script. 1316# VALUE may be 0, 1 or 2 for a computed quote escaped value based on 1317# VARNAME. Any other value will be used directly. 1318m4_define([_LT_DECL], 1319[lt_if_append_uniq([lt_decl_varnames], [$2], [, ], 1320 [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name], 1321 [m4_ifval([$1], [$1], [$2])]) 1322 lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3]) 1323 m4_ifval([$4], 1324 [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])]) 1325 lt_dict_add_subkey([lt_decl_dict], [$2], 1326 [tagged?], [m4_ifval([$5], [yes], [no])])]) 1327]) 1328 1329 1330# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION]) 1331# -------------------------------------------------------- 1332m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])]) 1333 1334 1335# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...]) 1336# ------------------------------------------------ 1337m4_define([lt_decl_tag_varnames], 1338[_lt_decl_filter([tagged?], [yes], $@)]) 1339 1340 1341# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..]) 1342# --------------------------------------------------------- 1343m4_define([_lt_decl_filter], 1344[m4_case([$#], 1345 [0], [m4_fatal([$0: too few arguments: $#])], 1346 [1], [m4_fatal([$0: too few arguments: $#: $1])], 1347 [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)], 1348 [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)], 1349 [lt_dict_filter([lt_decl_dict], $@)])[]dnl 1350]) 1351 1352 1353# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...]) 1354# -------------------------------------------------- 1355m4_define([lt_decl_quote_varnames], 1356[_lt_decl_filter([value], [1], $@)]) 1357 1358 1359# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...]) 1360# --------------------------------------------------- 1361m4_define([lt_decl_dquote_varnames], 1362[_lt_decl_filter([value], [2], $@)]) 1363 1364 1365# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...]) 1366# --------------------------------------------------- 1367m4_define([lt_decl_varnames_tagged], 1368[m4_assert([$# <= 2])dnl 1369_$0(m4_quote(m4_default([$1], [[, ]])), 1370 m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]), 1371 m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))]) 1372m4_define([_lt_decl_varnames_tagged], 1373[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])]) 1374 1375 1376# lt_decl_all_varnames([SEPARATOR], [VARNAME1...]) 1377# ------------------------------------------------ 1378m4_define([lt_decl_all_varnames], 1379[_$0(m4_quote(m4_default([$1], [[, ]])), 1380 m4_if([$2], [], 1381 m4_quote(lt_decl_varnames), 1382 m4_quote(m4_shift($@))))[]dnl 1383]) 1384m4_define([_lt_decl_all_varnames], 1385[lt_join($@, lt_decl_varnames_tagged([$1], 1386 lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl 1387]) 1388 1389 1390# _LT_CONFIG_STATUS_DECLARE([VARNAME]) 1391# ------------------------------------ 1392# Quote a variable value, and forward it to `config.status' so that its 1393# declaration there will have the same value as in `configure'. VARNAME 1394# must have a single quote delimited value for this to work. 1395m4_define([_LT_CONFIG_STATUS_DECLARE], 1396[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`']) 1397 1398 1399# _LT_CONFIG_STATUS_DECLARATIONS 1400# ------------------------------ 1401# We delimit libtool config variables with single quotes, so when 1402# we write them to config.status, we have to be sure to quote all 1403# embedded single quotes properly. In configure, this macro expands 1404# each variable declared with _LT_DECL (and _LT_TAGDECL) into: 1405# 1406# <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`' 1407m4_defun([_LT_CONFIG_STATUS_DECLARATIONS], 1408[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames), 1409 [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])]) 1410 1411 1412# _LT_LIBTOOL_TAGS 1413# ---------------- 1414# Output comment and list of tags supported by the script 1415m4_defun([_LT_LIBTOOL_TAGS], 1416[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl 1417available_tags="_LT_TAGS"dnl 1418]) 1419 1420 1421# _LT_LIBTOOL_DECLARE(VARNAME, [TAG]) 1422# ----------------------------------- 1423# Extract the dictionary values for VARNAME (optionally with TAG) and 1424# expand to a commented shell variable setting: 1425# 1426# # Some comment about what VAR is for. 1427# visible_name=$lt_internal_name 1428m4_define([_LT_LIBTOOL_DECLARE], 1429[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], 1430 [description])))[]dnl 1431m4_pushdef([_libtool_name], 1432 m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl 1433m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])), 1434 [0], [_libtool_name=[$]$1], 1435 [1], [_libtool_name=$lt_[]$1], 1436 [2], [_libtool_name=$lt_[]$1], 1437 [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl 1438m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl 1439]) 1440 1441 1442# _LT_LIBTOOL_CONFIG_VARS 1443# ----------------------- 1444# Produce commented declarations of non-tagged libtool config variables 1445# suitable for insertion in the LIBTOOL CONFIG section of the `libtool' 1446# script. Tagged libtool config variables (even for the LIBTOOL CONFIG 1447# section) are produced by _LT_LIBTOOL_TAG_VARS. 1448m4_defun([_LT_LIBTOOL_CONFIG_VARS], 1449[m4_foreach([_lt_var], 1450 m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)), 1451 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])]) 1452 1453 1454# _LT_LIBTOOL_TAG_VARS(TAG) 1455# ------------------------- 1456m4_define([_LT_LIBTOOL_TAG_VARS], 1457[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames), 1458 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])]) 1459 1460 1461# _LT_TAGVAR(VARNAME, [TAGNAME]) 1462# ------------------------------ 1463m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])]) 1464 1465 1466# _LT_CONFIG_COMMANDS 1467# ------------------- 1468# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of 1469# variables for single and double quote escaping we saved from calls 1470# to _LT_DECL, we can put quote escaped variables declarations 1471# into `config.status', and then the shell code to quote escape them in 1472# for loops in `config.status'. Finally, any additional code accumulated 1473# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded. 1474m4_defun([_LT_CONFIG_COMMANDS], 1475[AC_PROVIDE_IFELSE([LT_OUTPUT], 1476 dnl If the libtool generation code has been placed in $CONFIG_LT, 1477 dnl instead of duplicating it all over again into config.status, 1478 dnl then we will have config.status run $CONFIG_LT later, so it 1479 dnl needs to know what name is stored there: 1480 [AC_CONFIG_COMMANDS([libtool], 1481 [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])], 1482 dnl If the libtool generation code is destined for config.status, 1483 dnl expand the accumulated commands and init code now: 1484 [AC_CONFIG_COMMANDS([libtool], 1485 [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])]) 1486])#_LT_CONFIG_COMMANDS 1487 1488 1489# Initialize. 1490m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT], 1491[ 1492 1493# The HP-UX ksh and POSIX shell print the target directory to stdout 1494# if CDPATH is set. 1495(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 1496 1497sed_quote_subst='$sed_quote_subst' 1498double_quote_subst='$double_quote_subst' 1499delay_variable_subst='$delay_variable_subst' 1500_LT_CONFIG_STATUS_DECLARATIONS 1501LTCC='$LTCC' 1502LTCFLAGS='$LTCFLAGS' 1503compiler='$compiler_DEFAULT' 1504 1505# Quote evaled strings. 1506for var in lt_decl_all_varnames([[ \ 1507]], lt_decl_quote_varnames); do 1508 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 1509 *[[\\\\\\\`\\"\\\$]]*) 1510 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 1511 ;; 1512 *) 1513 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 1514 ;; 1515 esac 1516done 1517 1518# Double-quote double-evaled strings. 1519for var in lt_decl_all_varnames([[ \ 1520]], lt_decl_dquote_varnames); do 1521 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 1522 *[[\\\\\\\`\\"\\\$]]*) 1523 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 1524 ;; 1525 *) 1526 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 1527 ;; 1528 esac 1529done 1530 1531# Fix-up fallback echo if it was mangled by the above quoting rules. 1532case \$lt_ECHO in 1533*'\\\[$]0 --fallback-echo"')dnl " 1534 lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\` 1535 ;; 1536esac 1537 1538_LT_OUTPUT_LIBTOOL_INIT 1539]) 1540 1541 1542# LT_OUTPUT 1543# --------- 1544# This macro allows early generation of the libtool script (before 1545# AC_OUTPUT is called), incase it is used in configure for compilation 1546# tests. 1547AC_DEFUN([LT_OUTPUT], 1548[: ${CONFIG_LT=./config.lt} 1549AC_MSG_NOTICE([creating $CONFIG_LT]) 1550cat >"$CONFIG_LT" <<_LTEOF 1551#! $SHELL 1552# Generated by $as_me. 1553# Run this file to recreate a libtool stub with the current configuration. 1554 1555lt_cl_silent=false 1556SHELL=\${CONFIG_SHELL-$SHELL} 1557_LTEOF 1558 1559cat >>"$CONFIG_LT" <<\_LTEOF 1560AS_SHELL_SANITIZE 1561_AS_PREPARE 1562 1563exec AS_MESSAGE_FD>&1 1564exec AS_MESSAGE_LOG_FD>>config.log 1565{ 1566 echo 1567 AS_BOX([Running $as_me.]) 1568} >&AS_MESSAGE_LOG_FD 1569 1570lt_cl_help="\ 1571\`$as_me' creates a local libtool stub from the current configuration, 1572for use in further configure time tests before the real libtool is 1573generated. 1574 1575Usage: $[0] [[OPTIONS]] 1576 1577 -h, --help print this help, then exit 1578 -V, --version print version number, then exit 1579 -q, --quiet do not print progress messages 1580 -d, --debug don't remove temporary files 1581 1582Report bugs to <bug-libtool@gnu.org>." 1583 1584lt_cl_version="\ 1585m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl 1586m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION]) 1587configured by $[0], generated by m4_PACKAGE_STRING. 1588 1589Copyright (C) 2008 Free Software Foundation, Inc. 1590This config.lt script is free software; the Free Software Foundation 1591gives unlimited permision to copy, distribute and modify it." 1592 1593while test $[#] != 0 1594do 1595 case $[1] in 1596 --version | --v* | -V ) 1597 echo "$lt_cl_version"; exit 0 ;; 1598 --help | --h* | -h ) 1599 echo "$lt_cl_help"; exit 0 ;; 1600 --debug | --d* | -d ) 1601 debug=: ;; 1602 --quiet | --q* | --silent | --s* | -q ) 1603 lt_cl_silent=: ;; 1604 1605 -*) AC_MSG_ERROR([unrecognized option: $[1] 1606Try \`$[0] --help' for more information.]) ;; 1607 1608 *) AC_MSG_ERROR([unrecognized argument: $[1] 1609Try \`$[0] --help' for more information.]) ;; 1610 esac 1611 shift 1612done 1613 1614if $lt_cl_silent; then 1615 exec AS_MESSAGE_FD>/dev/null 1616fi 1617_LTEOF 1618 1619cat >>"$CONFIG_LT" <<_LTEOF 1620_LT_OUTPUT_LIBTOOL_COMMANDS_INIT 1621_LTEOF 1622 1623cat >>"$CONFIG_LT" <<\_LTEOF 1624AC_MSG_NOTICE([creating $ofile]) 1625_LT_OUTPUT_LIBTOOL_COMMANDS 1626AS_EXIT(0) 1627_LTEOF 1628chmod +x "$CONFIG_LT" 1629 1630# configure is writing to config.log, but config.lt does its own redirection, 1631# appending to config.log, which fails on DOS, as config.log is still kept 1632# open by configure. Here we exec the FD to /dev/null, effectively closing 1633# config.log, so it can be properly (re)opened and appended to by config.lt. 1634if test "$no_create" != yes; then 1635 lt_cl_success=: 1636 test "$silent" = yes && 1637 lt_config_lt_args="$lt_config_lt_args --quiet" 1638 exec AS_MESSAGE_LOG_FD>/dev/null 1639 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false 1640 exec AS_MESSAGE_LOG_FD>>config.log 1641 $lt_cl_success || AS_EXIT(1) 1642fi 1643])# LT_OUTPUT 1644 1645 1646# _LT_CONFIG(TAG) 1647# --------------- 1648# If TAG is the built-in tag, create an initial libtool script with a 1649# default configuration from the untagged config vars. Otherwise add code 1650# to config.status for appending the configuration named by TAG from the 1651# matching tagged config vars. 1652m4_defun([_LT_CONFIG], 1653[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 1654_LT_CONFIG_SAVE_COMMANDS([ 1655 m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl 1656 m4_if(_LT_TAG, [C], [ 1657 # See if we are running on zsh, and set the options which allow our 1658 # commands through without removal of \ escapes. 1659 if test -n "${ZSH_VERSION+set}" ; then 1660 setopt NO_GLOB_SUBST 1661 fi 1662 1663 cfgfile="${ofile}T" 1664 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 1665 $RM "$cfgfile" 1666 1667 cat <<_LT_EOF >> "$cfgfile" 1668#! $SHELL 1669 1670# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 1671# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 1672# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 1673# NOTE: Changes made to this file will be lost: look at ltmain.sh. 1674# 1675_LT_COPYING 1676_LT_LIBTOOL_TAGS 1677 1678# ### BEGIN LIBTOOL CONFIG 1679_LT_LIBTOOL_CONFIG_VARS 1680_LT_LIBTOOL_TAG_VARS 1681# ### END LIBTOOL CONFIG 1682 1683_LT_EOF 1684 1685 case $host_os in 1686 aix3*) 1687 cat <<\_LT_EOF >> "$cfgfile" 1688# AIX sometimes has problems with the GCC collect2 program. For some 1689# reason, if we set the COLLECT_NAMES environment variable, the problems 1690# vanish in a puff of smoke. 1691if test "X${COLLECT_NAMES+set}" != Xset; then 1692 COLLECT_NAMES= 1693 export COLLECT_NAMES 1694fi 1695_LT_EOF 1696 ;; 1697 esac 1698 1699 _LT_PROG_LTMAIN 1700 1701 # We use sed instead of cat because bash on DJGPP gets confused if 1702 # if finds mixed CR/LF and LF-only lines. Since sed operates in 1703 # text mode, it properly converts lines to CR/LF. This bash problem 1704 # is reportedly fixed, but why not run on old versions too? 1705 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 1706 || (rm -f "$cfgfile"; exit 1) 1707 1708 _LT_PROG_XSI_SHELLFNS 1709 1710 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 1711 || (rm -f "$cfgfile"; exit 1) 1712 1713 mv -f "$cfgfile" "$ofile" || 1714 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 1715 chmod +x "$ofile" 1716], 1717[cat <<_LT_EOF >> "$ofile" 1718 1719dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded 1720dnl in a comment (ie after a #). 1721# ### BEGIN LIBTOOL TAG CONFIG: $1 1722_LT_LIBTOOL_TAG_VARS(_LT_TAG) 1723# ### END LIBTOOL TAG CONFIG: $1 1724_LT_EOF 1725])dnl /m4_if 1726], 1727[m4_if([$1], [], [ 1728 PACKAGE='$PACKAGE' 1729 VERSION='$VERSION' 1730 TIMESTAMP='$TIMESTAMP' 1731 RM='$RM' 1732 ofile='$ofile'], []) 1733])dnl /_LT_CONFIG_SAVE_COMMANDS 1734])# _LT_CONFIG 1735 1736 1737# LT_SUPPORTED_TAG(TAG) 1738# --------------------- 1739# Trace this macro to discover what tags are supported by the libtool 1740# --tag option, using: 1741# autoconf --trace 'LT_SUPPORTED_TAG:$1' 1742AC_DEFUN([LT_SUPPORTED_TAG], []) 1743 1744 1745# C support is built-in for now 1746m4_define([_LT_LANG_C_enabled], []) 1747m4_define([_LT_TAGS], []) 1748 1749 1750# LT_LANG(LANG) 1751# ------------- 1752# Enable libtool support for the given language if not already enabled. 1753AC_DEFUN([LT_LANG], 1754[AC_BEFORE([$0], [LT_OUTPUT])dnl 1755m4_case([$1], 1756 [C], [_LT_LANG(C)], 1757 [C++], [_LT_LANG(CXX)], 1758 [Java], [_LT_LANG(GCJ)], 1759 [Fortran 77], [_LT_LANG(F77)], 1760 [Fortran], [_LT_LANG(FC)], 1761 [Windows Resource], [_LT_LANG(RC)], 1762 [m4_ifdef([_LT_LANG_]$1[_CONFIG], 1763 [_LT_LANG($1)], 1764 [m4_fatal([$0: unsupported language: "$1"])])])dnl 1765])# LT_LANG 1766 1767 1768# _LT_LANG(LANGNAME) 1769# ------------------ 1770m4_defun([_LT_LANG], 1771[m4_ifdef([_LT_LANG_]$1[_enabled], [], 1772 [LT_SUPPORTED_TAG([$1])dnl 1773 m4_append([_LT_TAGS], [$1 ])dnl 1774 m4_define([_LT_LANG_]$1[_enabled], [])dnl 1775 _LT_LANG_$1_CONFIG($1)])dnl 1776])# _LT_LANG 1777 1778 1779# _LT_LANG_DEFAULT_CONFIG 1780# ----------------------- 1781m4_defun([_LT_LANG_DEFAULT_CONFIG], 1782[AC_PROVIDE_IFELSE([AC_PROG_CXX], 1783 [LT_LANG(CXX)], 1784 [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])]) 1785 1786AC_PROVIDE_IFELSE([AC_PROG_F77], 1787 [LT_LANG(F77)], 1788 [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])]) 1789 1790AC_PROVIDE_IFELSE([AC_PROG_FC], 1791 [LT_LANG(FC)], 1792 [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])]) 1793 1794dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal 1795dnl pulling things in needlessly. 1796AC_PROVIDE_IFELSE([AC_PROG_GCJ], 1797 [LT_LANG(GCJ)], 1798 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], 1799 [LT_LANG(GCJ)], 1800 [AC_PROVIDE_IFELSE([LT_PROG_GCJ], 1801 [LT_LANG(GCJ)], 1802 [m4_ifdef([AC_PROG_GCJ], 1803 [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])]) 1804 m4_ifdef([A][M_PROG_GCJ], 1805 [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])]) 1806 m4_ifdef([LT_PROG_GCJ], 1807 [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])]) 1808 1809AC_PROVIDE_IFELSE([LT_PROG_RC], 1810 [LT_LANG(RC)], 1811 [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])]) 1812])# _LT_LANG_DEFAULT_CONFIG 1813 1814# Obsolete macros: 1815AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)]) 1816AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)]) 1817AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)]) 1818AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)]) 1819dnl aclocal-1.4 backwards compatibility: 1820dnl AC_DEFUN([AC_LIBTOOL_CXX], []) 1821dnl AC_DEFUN([AC_LIBTOOL_F77], []) 1822dnl AC_DEFUN([AC_LIBTOOL_FC], []) 1823dnl AC_DEFUN([AC_LIBTOOL_GCJ], []) 1824 1825 1826# _LT_TAG_COMPILER 1827# ---------------- 1828m4_defun([_LT_TAG_COMPILER], 1829[AC_REQUIRE([AC_PROG_CC])dnl 1830 1831_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl 1832_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl 1833_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl 1834_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl 1835 1836# If no C compiler was specified, use CC. 1837LTCC=${LTCC-"$CC"} 1838 1839# If no C compiler flags were specified, use CFLAGS. 1840LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 1841 1842# Allow CC to be a program name with arguments. 1843compiler=$CC 1844])# _LT_TAG_COMPILER 1845 1846 1847# _LT_COMPILER_BOILERPLATE 1848# ------------------------ 1849# Check for compiler boilerplate output or warnings with 1850# the simple compiler test code. 1851m4_defun([_LT_COMPILER_BOILERPLATE], 1852[m4_require([_LT_DECL_SED])dnl 1853ac_outfile=conftest.$ac_objext 1854echo "$lt_simple_compile_test_code" >conftest.$ac_ext 1855eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 1856_lt_compiler_boilerplate=`cat conftest.err` 1857$RM conftest* 1858])# _LT_COMPILER_BOILERPLATE 1859 1860 1861# _LT_LINKER_BOILERPLATE 1862# ---------------------- 1863# Check for linker boilerplate output or warnings with 1864# the simple link test code. 1865m4_defun([_LT_LINKER_BOILERPLATE], 1866[m4_require([_LT_DECL_SED])dnl 1867ac_outfile=conftest.$ac_objext 1868echo "$lt_simple_link_test_code" >conftest.$ac_ext 1869eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 1870_lt_linker_boilerplate=`cat conftest.err` 1871$RM -r conftest* 1872])# _LT_LINKER_BOILERPLATE 1873 1874# _LT_REQUIRED_DARWIN_CHECKS 1875# ------------------------- 1876m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[ 1877 case $host_os in 1878 rhapsody* | darwin*) 1879 AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:]) 1880 AC_CHECK_TOOL([NMEDIT], [nmedit], [:]) 1881 AC_CHECK_TOOL([LIPO], [lipo], [:]) 1882 AC_CHECK_TOOL([OTOOL], [otool], [:]) 1883 AC_CHECK_TOOL([OTOOL64], [otool64], [:]) 1884 _LT_DECL([], [DSYMUTIL], [1], 1885 [Tool to manipulate archived DWARF debug symbol files on Mac OS X]) 1886 _LT_DECL([], [NMEDIT], [1], 1887 [Tool to change global to local symbols on Mac OS X]) 1888 _LT_DECL([], [LIPO], [1], 1889 [Tool to manipulate fat objects and archives on Mac OS X]) 1890 _LT_DECL([], [OTOOL], [1], 1891 [ldd/readelf like tool for Mach-O binaries on Mac OS X]) 1892 _LT_DECL([], [OTOOL64], [1], 1893 [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4]) 1894 1895 AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod], 1896 [lt_cv_apple_cc_single_mod=no 1897 if test -z "${LT_MULTI_MODULE}"; then 1898 # By default we will add the -single_module flag. You can override 1899 # by either setting the environment variable LT_MULTI_MODULE 1900 # non-empty at configure time, or by adding -multi_module to the 1901 # link flags. 1902 rm -rf libconftest.dylib* 1903 echo "int foo(void){return 1;}" > conftest.c 1904 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 1905-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD 1906 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 1907 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 1908 _lt_result=$? 1909 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 1910 lt_cv_apple_cc_single_mod=yes 1911 else 1912 cat conftest.err >&AS_MESSAGE_LOG_FD 1913 fi 1914 rm -rf libconftest.dylib* 1915 rm -f conftest.* 1916 fi]) 1917 AC_CACHE_CHECK([for -exported_symbols_list linker flag], 1918 [lt_cv_ld_exported_symbols_list], 1919 [lt_cv_ld_exported_symbols_list=no 1920 save_LDFLAGS=$LDFLAGS 1921 echo "_main" > conftest.sym 1922 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 1923 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], 1924 [lt_cv_ld_exported_symbols_list=yes], 1925 [lt_cv_ld_exported_symbols_list=no]) 1926 LDFLAGS="$save_LDFLAGS" 1927 ]) 1928 case $host_os in 1929 rhapsody* | darwin1.[[012]]) 1930 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 1931 darwin1.*) 1932 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 1933 darwin*) # darwin 5.x on 1934 # if running on 10.5 or later, the deployment target defaults 1935 # to the OS version, if on x86, and 10.4, the deployment 1936 # target defaults to 10.4. Don't you love it? 1937 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 1938 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*) 1939 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 1940 10.[[012]]*) 1941 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 1942 10.*) 1943 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 1944 esac 1945 ;; 1946 esac 1947 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 1948 _lt_dar_single_mod='$single_module' 1949 fi 1950 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 1951 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 1952 else 1953 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 1954 fi 1955 if test "$DSYMUTIL" != ":"; then 1956 _lt_dsymutil='~$DSYMUTIL $lib || :' 1957 else 1958 _lt_dsymutil= 1959 fi 1960 ;; 1961 esac 1962]) 1963 1964 1965# _LT_DARWIN_LINKER_FEATURES 1966# -------------------------- 1967# Checks for linker and compiler features on darwin 1968m4_defun([_LT_DARWIN_LINKER_FEATURES], 1969[ 1970 m4_require([_LT_REQUIRED_DARWIN_CHECKS]) 1971 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 1972 _LT_TAGVAR(hardcode_direct, $1)=no 1973 _LT_TAGVAR(hardcode_automatic, $1)=yes 1974 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 1975 _LT_TAGVAR(whole_archive_flag_spec, $1)='' 1976 _LT_TAGVAR(link_all_deplibs, $1)=yes 1977 _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined" 1978 case $cc_basename in 1979 ifort*) _lt_dar_can_shared=yes ;; 1980 *) _lt_dar_can_shared=$GCC ;; 1981 esac 1982 if test "$_lt_dar_can_shared" = "yes"; then 1983 output_verbose_link_cmd=echo 1984 _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 1985 _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 1986 _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" 1987 _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" 1988 m4_if([$1], [CXX], 1989[ if test "$lt_cv_apple_cc_single_mod" != "yes"; then 1990 _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}" 1991 _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}" 1992 fi 1993],[]) 1994 else 1995 _LT_TAGVAR(ld_shlibs, $1)=no 1996 fi 1997]) 1998 1999# _LT_SYS_MODULE_PATH_AIX 2000# ----------------------- 2001# Links a minimal program and checks the executable 2002# for the system default hardcoded library path. In most cases, 2003# this is /usr/lib:/lib, but when the MPI compilers are used 2004# the location of the communication and MPI libs are included too. 2005# If we don't find anything, use the default library path according 2006# to the aix ld manual. 2007m4_defun([_LT_SYS_MODULE_PATH_AIX], 2008[m4_require([_LT_DECL_SED])dnl 2009AC_LINK_IFELSE(AC_LANG_PROGRAM,[ 2010lt_aix_libpath_sed=' 2011 /Import File Strings/,/^$/ { 2012 /^0/ { 2013 s/^0 *\(.*\)$/\1/ 2014 p 2015 } 2016 }' 2017aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 2018# Check for a 64-bit object if we didn't find anything. 2019if test -z "$aix_libpath"; then 2020 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 2021fi],[]) 2022if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 2023])# _LT_SYS_MODULE_PATH_AIX 2024 2025 2026# _LT_SHELL_INIT(ARG) 2027# ------------------- 2028m4_define([_LT_SHELL_INIT], 2029[ifdef([AC_DIVERSION_NOTICE], 2030 [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], 2031 [AC_DIVERT_PUSH(NOTICE)]) 2032$1 2033AC_DIVERT_POP 2034])# _LT_SHELL_INIT 2035 2036 2037# _LT_PROG_ECHO_BACKSLASH 2038# ----------------------- 2039# Add some code to the start of the generated configure script which 2040# will find an echo command which doesn't interpret backslashes. 2041m4_defun([_LT_PROG_ECHO_BACKSLASH], 2042[_LT_SHELL_INIT([ 2043# Check that we are running under the correct shell. 2044SHELL=${CONFIG_SHELL-/bin/sh} 2045 2046case X$lt_ECHO in 2047X*--fallback-echo) 2048 # Remove one level of quotation (which was required for Make). 2049 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','` 2050 ;; 2051esac 2052 2053ECHO=${lt_ECHO-echo} 2054if test "X[$]1" = X--no-reexec; then 2055 # Discard the --no-reexec flag, and continue. 2056 shift 2057elif test "X[$]1" = X--fallback-echo; then 2058 # Avoid inline document here, it may be left over 2059 : 2060elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then 2061 # Yippee, $ECHO works! 2062 : 2063else 2064 # Restart under the correct shell. 2065 exec $SHELL "[$]0" --no-reexec ${1+"[$]@"} 2066fi 2067 2068if test "X[$]1" = X--fallback-echo; then 2069 # used as fallback echo 2070 shift 2071 cat <<_LT_EOF 2072[$]* 2073_LT_EOF 2074 exit 0 2075fi 2076 2077# The HP-UX ksh and POSIX shell print the target directory to stdout 2078# if CDPATH is set. 2079(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 2080 2081if test -z "$lt_ECHO"; then 2082 if test "X${echo_test_string+set}" != Xset; then 2083 # find a string as large as possible, as long as the shell can cope with it 2084 for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do 2085 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 2086 if { echo_test_string=`eval $cmd`; } 2>/dev/null && 2087 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null 2088 then 2089 break 2090 fi 2091 done 2092 fi 2093 2094 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 2095 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 2096 test "X$echo_testing_string" = "X$echo_test_string"; then 2097 : 2098 else 2099 # The Solaris, AIX, and Digital Unix default echo programs unquote 2100 # backslashes. This makes it impossible to quote backslashes using 2101 # echo "$something" | sed 's/\\/\\\\/g' 2102 # 2103 # So, first we look for a working echo in the user's PATH. 2104 2105 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 2106 for dir in $PATH /usr/ucb; do 2107 IFS="$lt_save_ifs" 2108 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 2109 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 2110 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 2111 test "X$echo_testing_string" = "X$echo_test_string"; then 2112 ECHO="$dir/echo" 2113 break 2114 fi 2115 done 2116 IFS="$lt_save_ifs" 2117 2118 if test "X$ECHO" = Xecho; then 2119 # We didn't find a better echo, so look for alternatives. 2120 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && 2121 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && 2122 test "X$echo_testing_string" = "X$echo_test_string"; then 2123 # This shell has a builtin print -r that does the trick. 2124 ECHO='print -r' 2125 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && 2126 test "X$CONFIG_SHELL" != X/bin/ksh; then 2127 # If we have ksh, try running configure again with it. 2128 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 2129 export ORIGINAL_CONFIG_SHELL 2130 CONFIG_SHELL=/bin/ksh 2131 export CONFIG_SHELL 2132 exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"} 2133 else 2134 # Try using printf. 2135 ECHO='printf %s\n' 2136 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 2137 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 2138 test "X$echo_testing_string" = "X$echo_test_string"; then 2139 # Cool, printf works 2140 : 2141 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && 2142 test "X$echo_testing_string" = 'X\t' && 2143 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && 2144 test "X$echo_testing_string" = "X$echo_test_string"; then 2145 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 2146 export CONFIG_SHELL 2147 SHELL="$CONFIG_SHELL" 2148 export SHELL 2149 ECHO="$CONFIG_SHELL [$]0 --fallback-echo" 2150 elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && 2151 test "X$echo_testing_string" = 'X\t' && 2152 echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && 2153 test "X$echo_testing_string" = "X$echo_test_string"; then 2154 ECHO="$CONFIG_SHELL [$]0 --fallback-echo" 2155 else 2156 # maybe with a smaller string... 2157 prev=: 2158 2159 for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do 2160 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null 2161 then 2162 break 2163 fi 2164 prev="$cmd" 2165 done 2166 2167 if test "$prev" != 'sed 50q "[$]0"'; then 2168 echo_test_string=`eval $prev` 2169 export echo_test_string 2170 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"} 2171 else 2172 # Oops. We lost completely, so just stick with echo. 2173 ECHO=echo 2174 fi 2175 fi 2176 fi 2177 fi 2178 fi 2179fi 2180 2181# Copy echo and quote the copy suitably for passing to libtool from 2182# the Makefile, instead of quoting the original, which is used later. 2183lt_ECHO=$ECHO 2184if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then 2185 lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo" 2186fi 2187 2188AC_SUBST(lt_ECHO) 2189]) 2190_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts]) 2191_LT_DECL([], [ECHO], [1], 2192 [An echo program that does not interpret backslashes]) 2193])# _LT_PROG_ECHO_BACKSLASH 2194 2195 2196# _LT_ENABLE_LOCK 2197# --------------- 2198m4_defun([_LT_ENABLE_LOCK], 2199[AC_ARG_ENABLE([libtool-lock], 2200 [AS_HELP_STRING([--disable-libtool-lock], 2201 [avoid locking (might break parallel builds)])]) 2202test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 2203 2204# Some flags need to be propagated to the compiler or linker for good 2205# libtool support. 2206case $host in 2207ia64-*-hpux*) 2208 # Find out which ABI we are using. 2209 echo 'int i;' > conftest.$ac_ext 2210 if AC_TRY_EVAL(ac_compile); then 2211 case `/usr/bin/file conftest.$ac_objext` in 2212 *ELF-32*) 2213 HPUX_IA64_MODE="32" 2214 ;; 2215 *ELF-64*) 2216 HPUX_IA64_MODE="64" 2217 ;; 2218 esac 2219 fi 2220 rm -rf conftest* 2221 ;; 2222*-*-irix6*) 2223 # Find out which ABI we are using. 2224 echo '[#]line __oline__ "configure"' > conftest.$ac_ext 2225 if AC_TRY_EVAL(ac_compile); then 2226 if test "$lt_cv_prog_gnu_ld" = yes; then 2227 case `/usr/bin/file conftest.$ac_objext` in 2228 *32-bit*) 2229 LD="${LD-ld} -melf32bsmip" 2230 ;; 2231 *N32*) 2232 LD="${LD-ld} -melf32bmipn32" 2233 ;; 2234 *64-bit*) 2235 LD="${LD-ld} -melf64bmip" 2236 ;; 2237 esac 2238 else 2239 case `/usr/bin/file conftest.$ac_objext` in 2240 *32-bit*) 2241 LD="${LD-ld} -32" 2242 ;; 2243 *N32*) 2244 LD="${LD-ld} -n32" 2245 ;; 2246 *64-bit*) 2247 LD="${LD-ld} -64" 2248 ;; 2249 esac 2250 fi 2251 fi 2252 rm -rf conftest* 2253 ;; 2254 2255x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 2256s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 2257 # Find out which ABI we are using. 2258 echo 'int i;' > conftest.$ac_ext 2259 if AC_TRY_EVAL(ac_compile); then 2260 case `/usr/bin/file conftest.o` in 2261 *32-bit*) 2262 case $host in 2263 x86_64-*kfreebsd*-gnu) 2264 LD="${LD-ld} -m elf_i386_fbsd" 2265 ;; 2266 x86_64-*linux*) 2267 LD="${LD-ld} -m elf_i386" 2268 ;; 2269 ppc64-*linux*|powerpc64-*linux*) 2270 LD="${LD-ld} -m elf32ppclinux" 2271 ;; 2272 s390x-*linux*) 2273 LD="${LD-ld} -m elf_s390" 2274 ;; 2275 sparc64-*linux*) 2276 LD="${LD-ld} -m elf32_sparc" 2277 ;; 2278 esac 2279 ;; 2280 *64-bit*) 2281 case $host in 2282 x86_64-*kfreebsd*-gnu) 2283 LD="${LD-ld} -m elf_x86_64_fbsd" 2284 ;; 2285 x86_64-*linux*) 2286 LD="${LD-ld} -m elf_x86_64" 2287 ;; 2288 ppc*-*linux*|powerpc*-*linux*) 2289 LD="${LD-ld} -m elf64ppc" 2290 ;; 2291 s390*-*linux*|s390*-*tpf*) 2292 LD="${LD-ld} -m elf64_s390" 2293 ;; 2294 sparc*-*linux*) 2295 LD="${LD-ld} -m elf64_sparc" 2296 ;; 2297 esac 2298 ;; 2299 esac 2300 fi 2301 rm -rf conftest* 2302 ;; 2303 2304*-*-sco3.2v5*) 2305 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 2306 SAVE_CFLAGS="$CFLAGS" 2307 CFLAGS="$CFLAGS -belf" 2308 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, 2309 [AC_LANG_PUSH(C) 2310 AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) 2311 AC_LANG_POP]) 2312 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 2313 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 2314 CFLAGS="$SAVE_CFLAGS" 2315 fi 2316 ;; 2317sparc*-*solaris*) 2318 # Find out which ABI we are using. 2319 echo 'int i;' > conftest.$ac_ext 2320 if AC_TRY_EVAL(ac_compile); then 2321 case `/usr/bin/file conftest.o` in 2322 *64-bit*) 2323 case $lt_cv_prog_gnu_ld in 2324 yes*) LD="${LD-ld} -m elf64_sparc" ;; 2325 *) 2326 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 2327 LD="${LD-ld} -64" 2328 fi 2329 ;; 2330 esac 2331 ;; 2332 esac 2333 fi 2334 rm -rf conftest* 2335 ;; 2336esac 2337 2338need_locks="$enable_libtool_lock" 2339])# _LT_ENABLE_LOCK 2340 2341 2342# _LT_CMD_OLD_ARCHIVE 2343# ------------------- 2344m4_defun([_LT_CMD_OLD_ARCHIVE], 2345[AC_CHECK_TOOL(AR, ar, false) 2346test -z "$AR" && AR=ar 2347test -z "$AR_FLAGS" && AR_FLAGS=cru 2348_LT_DECL([], [AR], [1], [The archiver]) 2349_LT_DECL([], [AR_FLAGS], [1]) 2350 2351AC_CHECK_TOOL(STRIP, strip, :) 2352test -z "$STRIP" && STRIP=: 2353_LT_DECL([], [STRIP], [1], [A symbol stripping program]) 2354 2355AC_CHECK_TOOL(RANLIB, ranlib, :) 2356test -z "$RANLIB" && RANLIB=: 2357_LT_DECL([], [RANLIB], [1], 2358 [Commands used to install an old-style archive]) 2359 2360# Determine commands to create old-style static archives. 2361old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 2362old_postinstall_cmds='chmod 644 $oldlib' 2363old_postuninstall_cmds= 2364 2365if test -n "$RANLIB"; then 2366 case $host_os in 2367 openbsd*) 2368 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 2369 ;; 2370 *) 2371 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 2372 ;; 2373 esac 2374 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 2375fi 2376_LT_DECL([], [old_postinstall_cmds], [2]) 2377_LT_DECL([], [old_postuninstall_cmds], [2]) 2378_LT_TAGDECL([], [old_archive_cmds], [2], 2379 [Commands used to build an old-style archive]) 2380])# _LT_CMD_OLD_ARCHIVE 2381 2382 2383# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, 2384# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) 2385# ---------------------------------------------------------------- 2386# Check whether the given compiler option works 2387AC_DEFUN([_LT_COMPILER_OPTION], 2388[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 2389m4_require([_LT_DECL_SED])dnl 2390AC_CACHE_CHECK([$1], [$2], 2391 [$2=no 2392 m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) 2393 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 2394 lt_compiler_flag="$3" 2395 # Insert the option either (1) after the last *FLAGS variable, or 2396 # (2) before a word containing "conftest.", or (3) at the end. 2397 # Note that $ac_compile itself does not contain backslashes and begins 2398 # with a dollar sign (not a hyphen), so the echo should work correctly. 2399 # The option is referenced via a variable to avoid confusing sed. 2400 lt_compile=`echo "$ac_compile" | $SED \ 2401 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 2402 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ 2403 -e 's:$: $lt_compiler_flag:'` 2404 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) 2405 (eval "$lt_compile" 2>conftest.err) 2406 ac_status=$? 2407 cat conftest.err >&AS_MESSAGE_LOG_FD 2408 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 2409 if (exit $ac_status) && test -s "$ac_outfile"; then 2410 # The compiler can only warn and ignore the option if not recognized 2411 # So say no if there are warnings other than the usual output. 2412 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 2413 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 2414 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 2415 $2=yes 2416 fi 2417 fi 2418 $RM conftest* 2419]) 2420 2421if test x"[$]$2" = xyes; then 2422 m4_if([$5], , :, [$5]) 2423else 2424 m4_if([$6], , :, [$6]) 2425fi 2426])# _LT_COMPILER_OPTION 2427 2428# Old name: 2429AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION]) 2430dnl aclocal-1.4 backwards compatibility: 2431dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], []) 2432 2433 2434# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, 2435# [ACTION-SUCCESS], [ACTION-FAILURE]) 2436# ---------------------------------------------------- 2437# Check whether the given linker option works 2438AC_DEFUN([_LT_LINKER_OPTION], 2439[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 2440m4_require([_LT_DECL_SED])dnl 2441AC_CACHE_CHECK([$1], [$2], 2442 [$2=no 2443 save_LDFLAGS="$LDFLAGS" 2444 LDFLAGS="$LDFLAGS $3" 2445 echo "$lt_simple_link_test_code" > conftest.$ac_ext 2446 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 2447 # The linker can only warn and ignore the option if not recognized 2448 # So say no if there are warnings 2449 if test -s conftest.err; then 2450 # Append any errors to the config.log. 2451 cat conftest.err 1>&AS_MESSAGE_LOG_FD 2452 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 2453 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 2454 if diff conftest.exp conftest.er2 >/dev/null; then 2455 $2=yes 2456 fi 2457 else 2458 $2=yes 2459 fi 2460 fi 2461 $RM -r conftest* 2462 LDFLAGS="$save_LDFLAGS" 2463]) 2464 2465if test x"[$]$2" = xyes; then 2466 m4_if([$4], , :, [$4]) 2467else 2468 m4_if([$5], , :, [$5]) 2469fi 2470])# _LT_LINKER_OPTION 2471 2472# Old name: 2473AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION]) 2474dnl aclocal-1.4 backwards compatibility: 2475dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], []) 2476 2477 2478# LT_CMD_MAX_LEN 2479#--------------- 2480AC_DEFUN([LT_CMD_MAX_LEN], 2481[AC_REQUIRE([AC_CANONICAL_HOST])dnl 2482# find the maximum length of command line arguments 2483AC_MSG_CHECKING([the maximum length of command line arguments]) 2484AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl 2485 i=0 2486 teststring="ABCD" 2487 2488 case $build_os in 2489 msdosdjgpp*) 2490 # On DJGPP, this test can blow up pretty badly due to problems in libc 2491 # (any single argument exceeding 2000 bytes causes a buffer overrun 2492 # during glob expansion). Even if it were fixed, the result of this 2493 # check would be larger than it should be. 2494 lt_cv_sys_max_cmd_len=12288; # 12K is about right 2495 ;; 2496 2497 gnu*) 2498 # Under GNU Hurd, this test is not required because there is 2499 # no limit to the length of command line arguments. 2500 # Libtool will interpret -1 as no limit whatsoever 2501 lt_cv_sys_max_cmd_len=-1; 2502 ;; 2503 2504 cygwin* | mingw* | cegcc*) 2505 # On Win9x/ME, this test blows up -- it succeeds, but takes 2506 # about 5 minutes as the teststring grows exponentially. 2507 # Worse, since 9x/ME are not pre-emptively multitasking, 2508 # you end up with a "frozen" computer, even though with patience 2509 # the test eventually succeeds (with a max line length of 256k). 2510 # Instead, let's just punt: use the minimum linelength reported by 2511 # all of the supported platforms: 8192 (on NT/2K/XP). 2512 lt_cv_sys_max_cmd_len=8192; 2513 ;; 2514 2515 amigaos*) 2516 # On AmigaOS with pdksh, this test takes hours, literally. 2517 # So we just punt and use a minimum line length of 8192. 2518 lt_cv_sys_max_cmd_len=8192; 2519 ;; 2520 2521 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 2522 # This has been around since 386BSD, at least. Likely further. 2523 if test -x /sbin/sysctl; then 2524 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 2525 elif test -x /usr/sbin/sysctl; then 2526 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 2527 else 2528 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 2529 fi 2530 # And add a safety zone 2531 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 2532 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 2533 ;; 2534 2535 interix*) 2536 # We know the value 262144 and hardcode it with a safety zone (like BSD) 2537 lt_cv_sys_max_cmd_len=196608 2538 ;; 2539 2540 osf*) 2541 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 2542 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 2543 # nice to cause kernel panics so lets avoid the loop below. 2544 # First set a reasonable default. 2545 lt_cv_sys_max_cmd_len=16384 2546 # 2547 if test -x /sbin/sysconfig; then 2548 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 2549 *1*) lt_cv_sys_max_cmd_len=-1 ;; 2550 esac 2551 fi 2552 ;; 2553 sco3.2v5*) 2554 lt_cv_sys_max_cmd_len=102400 2555 ;; 2556 sysv5* | sco5v6* | sysv4.2uw2*) 2557 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 2558 if test -n "$kargmax"; then 2559 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` 2560 else 2561 lt_cv_sys_max_cmd_len=32768 2562 fi 2563 ;; 2564 *) 2565 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 2566 if test -n "$lt_cv_sys_max_cmd_len"; then 2567 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 2568 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 2569 else 2570 # Make teststring a little bigger before we do anything with it. 2571 # a 1K string should be a reasonable start. 2572 for i in 1 2 3 4 5 6 7 8 ; do 2573 teststring=$teststring$teststring 2574 done 2575 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 2576 # If test is not a shell built-in, we'll probably end up computing a 2577 # maximum length that is only half of the actual maximum length, but 2578 # we can't tell. 2579 while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ 2580 = "XX$teststring$teststring"; } >/dev/null 2>&1 && 2581 test $i != 17 # 1/2 MB should be enough 2582 do 2583 i=`expr $i + 1` 2584 teststring=$teststring$teststring 2585 done 2586 # Only check the string length outside the loop. 2587 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 2588 teststring= 2589 # Add a significant safety factor because C++ compilers can tack on 2590 # massive amounts of additional arguments before passing them to the 2591 # linker. It appears as though 1/2 is a usable value. 2592 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 2593 fi 2594 ;; 2595 esac 2596]) 2597if test -n $lt_cv_sys_max_cmd_len ; then 2598 AC_MSG_RESULT($lt_cv_sys_max_cmd_len) 2599else 2600 AC_MSG_RESULT(none) 2601fi 2602max_cmd_len=$lt_cv_sys_max_cmd_len 2603_LT_DECL([], [max_cmd_len], [0], 2604 [What is the maximum length of a command?]) 2605])# LT_CMD_MAX_LEN 2606 2607# Old name: 2608AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN]) 2609dnl aclocal-1.4 backwards compatibility: 2610dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], []) 2611 2612 2613# _LT_HEADER_DLFCN 2614# ---------------- 2615m4_defun([_LT_HEADER_DLFCN], 2616[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl 2617])# _LT_HEADER_DLFCN 2618 2619 2620# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, 2621# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) 2622# ---------------------------------------------------------------- 2623m4_defun([_LT_TRY_DLOPEN_SELF], 2624[m4_require([_LT_HEADER_DLFCN])dnl 2625if test "$cross_compiling" = yes; then : 2626 [$4] 2627else 2628 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 2629 lt_status=$lt_dlunknown 2630 cat > conftest.$ac_ext <<_LT_EOF 2631[#line __oline__ "configure" 2632#include "confdefs.h" 2633 2634#if HAVE_DLFCN_H 2635#include <dlfcn.h> 2636#endif 2637 2638#include <stdio.h> 2639 2640#ifdef RTLD_GLOBAL 2641# define LT_DLGLOBAL RTLD_GLOBAL 2642#else 2643# ifdef DL_GLOBAL 2644# define LT_DLGLOBAL DL_GLOBAL 2645# else 2646# define LT_DLGLOBAL 0 2647# endif 2648#endif 2649 2650/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 2651 find out it does not work in some platform. */ 2652#ifndef LT_DLLAZY_OR_NOW 2653# ifdef RTLD_LAZY 2654# define LT_DLLAZY_OR_NOW RTLD_LAZY 2655# else 2656# ifdef DL_LAZY 2657# define LT_DLLAZY_OR_NOW DL_LAZY 2658# else 2659# ifdef RTLD_NOW 2660# define LT_DLLAZY_OR_NOW RTLD_NOW 2661# else 2662# ifdef DL_NOW 2663# define LT_DLLAZY_OR_NOW DL_NOW 2664# else 2665# define LT_DLLAZY_OR_NOW 0 2666# endif 2667# endif 2668# endif 2669# endif 2670#endif 2671 2672void fnord() { int i=42;} 2673int main () 2674{ 2675 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 2676 int status = $lt_dlunknown; 2677 2678 if (self) 2679 { 2680 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 2681 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 2682 /* dlclose (self); */ 2683 } 2684 else 2685 puts (dlerror ()); 2686 2687 return status; 2688}] 2689_LT_EOF 2690 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then 2691 (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null 2692 lt_status=$? 2693 case x$lt_status in 2694 x$lt_dlno_uscore) $1 ;; 2695 x$lt_dlneed_uscore) $2 ;; 2696 x$lt_dlunknown|x*) $3 ;; 2697 esac 2698 else : 2699 # compilation failed 2700 $3 2701 fi 2702fi 2703rm -fr conftest* 2704])# _LT_TRY_DLOPEN_SELF 2705 2706 2707# LT_SYS_DLOPEN_SELF 2708# ------------------ 2709AC_DEFUN([LT_SYS_DLOPEN_SELF], 2710[m4_require([_LT_HEADER_DLFCN])dnl 2711if test "x$enable_dlopen" != xyes; then 2712 enable_dlopen=unknown 2713 enable_dlopen_self=unknown 2714 enable_dlopen_self_static=unknown 2715else 2716 lt_cv_dlopen=no 2717 lt_cv_dlopen_libs= 2718 2719 case $host_os in 2720 beos*) 2721 lt_cv_dlopen="load_add_on" 2722 lt_cv_dlopen_libs= 2723 lt_cv_dlopen_self=yes 2724 ;; 2725 2726 mingw* | pw32* | cegcc*) 2727 lt_cv_dlopen="LoadLibrary" 2728 lt_cv_dlopen_libs= 2729 ;; 2730 2731 cygwin*) 2732 lt_cv_dlopen="dlopen" 2733 lt_cv_dlopen_libs= 2734 ;; 2735 2736 darwin*) 2737 # if libdl is installed we need to link against it 2738 AC_CHECK_LIB([dl], [dlopen], 2739 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[ 2740 lt_cv_dlopen="dyld" 2741 lt_cv_dlopen_libs= 2742 lt_cv_dlopen_self=yes 2743 ]) 2744 ;; 2745 2746 *) 2747 AC_CHECK_FUNC([shl_load], 2748 [lt_cv_dlopen="shl_load"], 2749 [AC_CHECK_LIB([dld], [shl_load], 2750 [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"], 2751 [AC_CHECK_FUNC([dlopen], 2752 [lt_cv_dlopen="dlopen"], 2753 [AC_CHECK_LIB([dl], [dlopen], 2754 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], 2755 [AC_CHECK_LIB([svld], [dlopen], 2756 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], 2757 [AC_CHECK_LIB([dld], [dld_link], 2758 [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"]) 2759 ]) 2760 ]) 2761 ]) 2762 ]) 2763 ]) 2764 ;; 2765 esac 2766 2767 if test "x$lt_cv_dlopen" != xno; then 2768 enable_dlopen=yes 2769 else 2770 enable_dlopen=no 2771 fi 2772 2773 case $lt_cv_dlopen in 2774 dlopen) 2775 save_CPPFLAGS="$CPPFLAGS" 2776 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 2777 2778 save_LDFLAGS="$LDFLAGS" 2779 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 2780 2781 save_LIBS="$LIBS" 2782 LIBS="$lt_cv_dlopen_libs $LIBS" 2783 2784 AC_CACHE_CHECK([whether a program can dlopen itself], 2785 lt_cv_dlopen_self, [dnl 2786 _LT_TRY_DLOPEN_SELF( 2787 lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, 2788 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) 2789 ]) 2790 2791 if test "x$lt_cv_dlopen_self" = xyes; then 2792 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 2793 AC_CACHE_CHECK([whether a statically linked program can dlopen itself], 2794 lt_cv_dlopen_self_static, [dnl 2795 _LT_TRY_DLOPEN_SELF( 2796 lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, 2797 lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) 2798 ]) 2799 fi 2800 2801 CPPFLAGS="$save_CPPFLAGS" 2802 LDFLAGS="$save_LDFLAGS" 2803 LIBS="$save_LIBS" 2804 ;; 2805 esac 2806 2807 case $lt_cv_dlopen_self in 2808 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 2809 *) enable_dlopen_self=unknown ;; 2810 esac 2811 2812 case $lt_cv_dlopen_self_static in 2813 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 2814 *) enable_dlopen_self_static=unknown ;; 2815 esac 2816fi 2817_LT_DECL([dlopen_support], [enable_dlopen], [0], 2818 [Whether dlopen is supported]) 2819_LT_DECL([dlopen_self], [enable_dlopen_self], [0], 2820 [Whether dlopen of programs is supported]) 2821_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0], 2822 [Whether dlopen of statically linked programs is supported]) 2823])# LT_SYS_DLOPEN_SELF 2824 2825# Old name: 2826AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF]) 2827dnl aclocal-1.4 backwards compatibility: 2828dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], []) 2829 2830 2831# _LT_COMPILER_C_O([TAGNAME]) 2832# --------------------------- 2833# Check to see if options -c and -o are simultaneously supported by compiler. 2834# This macro does not hard code the compiler like AC_PROG_CC_C_O. 2835m4_defun([_LT_COMPILER_C_O], 2836[m4_require([_LT_DECL_SED])dnl 2837m4_require([_LT_FILEUTILS_DEFAULTS])dnl 2838m4_require([_LT_TAG_COMPILER])dnl 2839AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], 2840 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)], 2841 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no 2842 $RM -r conftest 2>/dev/null 2843 mkdir conftest 2844 cd conftest 2845 mkdir out 2846 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 2847 2848 lt_compiler_flag="-o out/conftest2.$ac_objext" 2849 # Insert the option either (1) after the last *FLAGS variable, or 2850 # (2) before a word containing "conftest.", or (3) at the end. 2851 # Note that $ac_compile itself does not contain backslashes and begins 2852 # with a dollar sign (not a hyphen), so the echo should work correctly. 2853 lt_compile=`echo "$ac_compile" | $SED \ 2854 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 2855 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ 2856 -e 's:$: $lt_compiler_flag:'` 2857 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) 2858 (eval "$lt_compile" 2>out/conftest.err) 2859 ac_status=$? 2860 cat out/conftest.err >&AS_MESSAGE_LOG_FD 2861 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 2862 if (exit $ac_status) && test -s out/conftest2.$ac_objext 2863 then 2864 # The compiler can only warn and ignore the option if not recognized 2865 # So say no if there are warnings 2866 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 2867 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 2868 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 2869 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes 2870 fi 2871 fi 2872 chmod u+w . 2>&AS_MESSAGE_LOG_FD 2873 $RM conftest* 2874 # SGI C++ compiler will create directory out/ii_files/ for 2875 # template instantiation 2876 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 2877 $RM out/* && rmdir out 2878 cd .. 2879 $RM -r conftest 2880 $RM conftest* 2881]) 2882_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1], 2883 [Does compiler simultaneously support -c and -o options?]) 2884])# _LT_COMPILER_C_O 2885 2886 2887# _LT_COMPILER_FILE_LOCKS([TAGNAME]) 2888# ---------------------------------- 2889# Check to see if we can do hard links to lock some files if needed 2890m4_defun([_LT_COMPILER_FILE_LOCKS], 2891[m4_require([_LT_ENABLE_LOCK])dnl 2892m4_require([_LT_FILEUTILS_DEFAULTS])dnl 2893_LT_COMPILER_C_O([$1]) 2894 2895hard_links="nottested" 2896if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then 2897 # do not overwrite the value of need_locks provided by the user 2898 AC_MSG_CHECKING([if we can lock with hard links]) 2899 hard_links=yes 2900 $RM conftest* 2901 ln conftest.a conftest.b 2>/dev/null && hard_links=no 2902 touch conftest.a 2903 ln conftest.a conftest.b 2>&5 || hard_links=no 2904 ln conftest.a conftest.b 2>/dev/null && hard_links=no 2905 AC_MSG_RESULT([$hard_links]) 2906 if test "$hard_links" = no; then 2907 AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe]) 2908 need_locks=warn 2909 fi 2910else 2911 need_locks=no 2912fi 2913_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?]) 2914])# _LT_COMPILER_FILE_LOCKS 2915 2916 2917# _LT_CHECK_OBJDIR 2918# ---------------- 2919m4_defun([_LT_CHECK_OBJDIR], 2920[AC_CACHE_CHECK([for objdir], [lt_cv_objdir], 2921[rm -f .libs 2>/dev/null 2922mkdir .libs 2>/dev/null 2923if test -d .libs; then 2924 lt_cv_objdir=.libs 2925else 2926 # MS-DOS does not allow filenames that begin with a dot. 2927 lt_cv_objdir=_libs 2928fi 2929rmdir .libs 2>/dev/null]) 2930objdir=$lt_cv_objdir 2931_LT_DECL([], [objdir], [0], 2932 [The name of the directory that contains temporary libtool files])dnl 2933m4_pattern_allow([LT_OBJDIR])dnl 2934AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/", 2935 [Define to the sub-directory in which libtool stores uninstalled libraries.]) 2936])# _LT_CHECK_OBJDIR 2937 2938 2939# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME]) 2940# -------------------------------------- 2941# Check hardcoding attributes. 2942m4_defun([_LT_LINKER_HARDCODE_LIBPATH], 2943[AC_MSG_CHECKING([how to hardcode library paths into programs]) 2944_LT_TAGVAR(hardcode_action, $1)= 2945if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" || 2946 test -n "$_LT_TAGVAR(runpath_var, $1)" || 2947 test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then 2948 2949 # We can hardcode non-existent directories. 2950 if test "$_LT_TAGVAR(hardcode_direct, $1)" != no && 2951 # If the only mechanism to avoid hardcoding is shlibpath_var, we 2952 # have to relink, otherwise we might link with an installed library 2953 # when we should be linking with a yet-to-be-installed one 2954 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no && 2955 test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then 2956 # Linking always hardcodes the temporary library directory. 2957 _LT_TAGVAR(hardcode_action, $1)=relink 2958 else 2959 # We can link without hardcoding, and we can hardcode nonexisting dirs. 2960 _LT_TAGVAR(hardcode_action, $1)=immediate 2961 fi 2962else 2963 # We cannot hardcode anything, or else we can only hardcode existing 2964 # directories. 2965 _LT_TAGVAR(hardcode_action, $1)=unsupported 2966fi 2967AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)]) 2968 2969if test "$_LT_TAGVAR(hardcode_action, $1)" = relink || 2970 test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then 2971 # Fast installation is not supported 2972 enable_fast_install=no 2973elif test "$shlibpath_overrides_runpath" = yes || 2974 test "$enable_shared" = no; then 2975 # Fast installation is not necessary 2976 enable_fast_install=needless 2977fi 2978_LT_TAGDECL([], [hardcode_action], [0], 2979 [How to hardcode a shared library path into an executable]) 2980])# _LT_LINKER_HARDCODE_LIBPATH 2981 2982 2983# _LT_CMD_STRIPLIB 2984# ---------------- 2985m4_defun([_LT_CMD_STRIPLIB], 2986[m4_require([_LT_DECL_EGREP]) 2987striplib= 2988old_striplib= 2989AC_MSG_CHECKING([whether stripping libraries is possible]) 2990if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 2991 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 2992 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 2993 AC_MSG_RESULT([yes]) 2994else 2995# FIXME - insert some real tests, host_os isn't really good enough 2996 case $host_os in 2997 darwin*) 2998 if test -n "$STRIP" ; then 2999 striplib="$STRIP -x" 3000 old_striplib="$STRIP -S" 3001 AC_MSG_RESULT([yes]) 3002 else 3003 AC_MSG_RESULT([no]) 3004 fi 3005 ;; 3006 *) 3007 AC_MSG_RESULT([no]) 3008 ;; 3009 esac 3010fi 3011_LT_DECL([], [old_striplib], [1], [Commands to strip libraries]) 3012_LT_DECL([], [striplib], [1]) 3013])# _LT_CMD_STRIPLIB 3014 3015 3016# _LT_SYS_DYNAMIC_LINKER([TAG]) 3017# ----------------------------- 3018# PORTME Fill in your ld.so characteristics 3019m4_defun([_LT_SYS_DYNAMIC_LINKER], 3020[AC_REQUIRE([AC_CANONICAL_HOST])dnl 3021m4_require([_LT_DECL_EGREP])dnl 3022m4_require([_LT_FILEUTILS_DEFAULTS])dnl 3023m4_require([_LT_DECL_OBJDUMP])dnl 3024m4_require([_LT_DECL_SED])dnl 3025AC_MSG_CHECKING([dynamic linker characteristics]) 3026m4_if([$1], 3027 [], [ 3028if test "$GCC" = yes; then 3029 case $host_os in 3030 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 3031 *) lt_awk_arg="/^libraries:/" ;; 3032 esac 3033 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 3034 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then 3035 # if the path contains ";" then we assume it to be the separator 3036 # otherwise default to the standard path separator (i.e. ":") - it is 3037 # assumed that no part of a normal pathname contains ";" but that should 3038 # okay in the real world where ";" in dirpaths is itself problematic. 3039 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` 3040 else 3041 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 3042 fi 3043 # Ok, now we have the path, separated by spaces, we can step through it 3044 # and add multilib dir if necessary. 3045 lt_tmp_lt_search_path_spec= 3046 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 3047 for lt_sys_path in $lt_search_path_spec; do 3048 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 3049 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 3050 else 3051 test -d "$lt_sys_path" && \ 3052 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 3053 fi 3054 done 3055 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' 3056BEGIN {RS=" "; FS="/|\n";} { 3057 lt_foo=""; 3058 lt_count=0; 3059 for (lt_i = NF; lt_i > 0; lt_i--) { 3060 if ($lt_i != "" && $lt_i != ".") { 3061 if ($lt_i == "..") { 3062 lt_count++; 3063 } else { 3064 if (lt_count == 0) { 3065 lt_foo="/" $lt_i lt_foo; 3066 } else { 3067 lt_count--; 3068 } 3069 } 3070 } 3071 } 3072 if (lt_foo != "") { lt_freq[[lt_foo]]++; } 3073 if (lt_freq[[lt_foo]] == 1) { print lt_foo; } 3074}'` 3075 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` 3076else 3077 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 3078fi]) 3079library_names_spec= 3080libname_spec='lib$name' 3081soname_spec= 3082shrext_cmds=".so" 3083postinstall_cmds= 3084postuninstall_cmds= 3085finish_cmds= 3086finish_eval= 3087shlibpath_var= 3088shlibpath_overrides_runpath=unknown 3089version_type=none 3090dynamic_linker="$host_os ld.so" 3091sys_lib_dlsearch_path_spec="/lib /usr/lib" 3092need_lib_prefix=unknown 3093hardcode_into_libs=no 3094 3095# when you set need_version to no, make sure it does not cause -set_version 3096# flags to be left without arguments 3097need_version=unknown 3098 3099case $host_os in 3100aix3*) 3101 version_type=linux 3102 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 3103 shlibpath_var=LIBPATH 3104 3105 # AIX 3 has no versioning support, so we append a major version to the name. 3106 soname_spec='${libname}${release}${shared_ext}$major' 3107 ;; 3108 3109aix[[4-9]]*) 3110 version_type=linux 3111 need_lib_prefix=no 3112 need_version=no 3113 hardcode_into_libs=yes 3114 if test "$host_cpu" = ia64; then 3115 # AIX 5 supports IA64 3116 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 3117 shlibpath_var=LD_LIBRARY_PATH 3118 else 3119 # With GCC up to 2.95.x, collect2 would create an import file 3120 # for dependence libraries. The import file would start with 3121 # the line `#! .'. This would cause the generated library to 3122 # depend on `.', always an invalid library. This was fixed in 3123 # development snapshots of GCC prior to 3.0. 3124 case $host_os in 3125 aix4 | aix4.[[01]] | aix4.[[01]].*) 3126 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 3127 echo ' yes ' 3128 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 3129 : 3130 else 3131 can_build_shared=no 3132 fi 3133 ;; 3134 esac 3135 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 3136 # soname into executable. Probably we can add versioning support to 3137 # collect2, so additional links can be useful in future. 3138 if test "$aix_use_runtimelinking" = yes; then 3139 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 3140 # instead of lib<name>.a to let people know that these are not 3141 # typical AIX shared libraries. 3142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 3143 else 3144 # We preserve .a as extension for shared libraries through AIX4.2 3145 # and later when we are not doing run time linking. 3146 library_names_spec='${libname}${release}.a $libname.a' 3147 soname_spec='${libname}${release}${shared_ext}$major' 3148 fi 3149 shlibpath_var=LIBPATH 3150 fi 3151 ;; 3152 3153amigaos*) 3154 case $host_cpu in 3155 powerpc) 3156 # Since July 2007 AmigaOS4 officially supports .so libraries. 3157 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 3158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 3159 ;; 3160 m68k) 3161 library_names_spec='$libname.ixlibrary $libname.a' 3162 # Create ${libname}_ixlibrary.a entries in /sys/libs. 3163 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' 3164 ;; 3165 esac 3166 ;; 3167 3168beos*) 3169 library_names_spec='${libname}${shared_ext}' 3170 dynamic_linker="$host_os ld.so" 3171 shlibpath_var=LIBRARY_PATH 3172 ;; 3173 3174bsdi[[45]]*) 3175 version_type=linux 3176 need_version=no 3177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 3178 soname_spec='${libname}${release}${shared_ext}$major' 3179 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 3180 shlibpath_var=LD_LIBRARY_PATH 3181 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 3182 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 3183 # the default ld.so.conf also contains /usr/contrib/lib and 3184 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 3185 # libtool to hard-code these into programs 3186 ;; 3187 3188cygwin* | mingw* | pw32* | cegcc*) 3189 version_type=windows 3190 shrext_cmds=".dll" 3191 need_version=no 3192 need_lib_prefix=no 3193 3194 case $GCC,$host_os in 3195 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 3196 library_names_spec='$libname.dll.a' 3197 # DLL is installed to $(libdir)/../bin by postinstall_cmds 3198 postinstall_cmds='base_file=`basename \${file}`~ 3199 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 3200 dldir=$destdir/`dirname \$dlpath`~ 3201 test -d \$dldir || mkdir -p \$dldir~ 3202 $install_prog $dir/$dlname \$dldir/$dlname~ 3203 chmod a+x \$dldir/$dlname~ 3204 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 3205 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 3206 fi' 3207 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 3208 dlpath=$dir/\$dldll~ 3209 $RM \$dlpath' 3210 shlibpath_overrides_runpath=yes 3211 3212 case $host_os in 3213 cygwin*) 3214 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 3215 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 3216 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 3217 ;; 3218 mingw* | cegcc*) 3219 # MinGW DLLs use traditional 'lib' prefix 3220 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 3221 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 3222 if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then 3223 # It is most probably a Windows format PATH printed by 3224 # mingw gcc, but we are running on Cygwin. Gcc prints its search 3225 # path with ; separators, and with drive letters. We can handle the 3226 # drive letters (cygwin fileutils understands them), so leave them, 3227 # especially as we might pass files found there to a mingw objdump, 3228 # which wouldn't understand a cygwinified path. Ahh. 3229 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 3230 else 3231 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 3232 fi 3233 ;; 3234 pw32*) 3235 # pw32 DLLs use 'pw' prefix rather than 'lib' 3236 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 3237 ;; 3238 esac 3239 ;; 3240 3241 *) 3242 library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' 3243 ;; 3244 esac 3245 dynamic_linker='Win32 ld.exe' 3246 # FIXME: first we should search . and the directory the executable is in 3247 shlibpath_var=PATH 3248 ;; 3249 3250darwin* | rhapsody*) 3251 dynamic_linker="$host_os dyld" 3252 version_type=darwin 3253 need_lib_prefix=no 3254 need_version=no 3255 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 3256 soname_spec='${libname}${release}${major}$shared_ext' 3257 shlibpath_overrides_runpath=yes 3258 shlibpath_var=DYLD_LIBRARY_PATH 3259 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 3260m4_if([$1], [],[ 3261 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) 3262 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 3263 ;; 3264 3265dgux*) 3266 version_type=linux 3267 need_lib_prefix=no 3268 need_version=no 3269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 3270 soname_spec='${libname}${release}${shared_ext}$major' 3271 shlibpath_var=LD_LIBRARY_PATH 3272 ;; 3273 3274freebsd1*) 3275 dynamic_linker=no 3276 ;; 3277 3278freebsd* | dragonfly*) 3279 # DragonFly does not have aout. When/if they implement a new 3280 # versioning mechanism, adjust this. 3281 if test -x /usr/bin/objformat; then 3282 objformat=`/usr/bin/objformat` 3283 else 3284 case $host_os in 3285 freebsd[[123]]*) objformat=aout ;; 3286 *) objformat=elf ;; 3287 esac 3288 fi 3289 version_type=freebsd-$objformat 3290 case $version_type in 3291 freebsd-elf*) 3292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 3293 need_version=no 3294 need_lib_prefix=no 3295 ;; 3296 freebsd-*) 3297 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 3298 need_version=yes 3299 ;; 3300 esac 3301 shlibpath_var=LD_LIBRARY_PATH 3302 case $host_os in 3303 freebsd2*) 3304 shlibpath_overrides_runpath=yes 3305 ;; 3306 freebsd3.[[01]]* | freebsdelf3.[[01]]*) 3307 shlibpath_overrides_runpath=yes 3308 hardcode_into_libs=yes 3309 ;; 3310 freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ 3311 freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) 3312 shlibpath_overrides_runpath=no 3313 hardcode_into_libs=yes 3314 ;; 3315 *) # from 4.6 on, and DragonFly 3316 shlibpath_overrides_runpath=yes 3317 hardcode_into_libs=yes 3318 ;; 3319 esac 3320 ;; 3321 3322gnu*) 3323 version_type=linux 3324 need_lib_prefix=no 3325 need_version=no 3326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 3327 soname_spec='${libname}${release}${shared_ext}$major' 3328 shlibpath_var=LD_LIBRARY_PATH 3329 hardcode_into_libs=yes 3330 ;; 3331 3332hpux9* | hpux10* | hpux11*) 3333 # Give a soname corresponding to the major version so that dld.sl refuses to 3334 # link against other versions. 3335 version_type=sunos 3336 need_lib_prefix=no 3337 need_version=no 3338 case $host_cpu in 3339 ia64*) 3340 shrext_cmds='.so' 3341 hardcode_into_libs=yes 3342 dynamic_linker="$host_os dld.so" 3343 shlibpath_var=LD_LIBRARY_PATH 3344 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 3345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 3346 soname_spec='${libname}${release}${shared_ext}$major' 3347 if test "X$HPUX_IA64_MODE" = X32; then 3348 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 3349 else 3350 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 3351 fi 3352 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 3353 ;; 3354 hppa*64*) 3355 shrext_cmds='.sl' 3356 hardcode_into_libs=yes 3357 dynamic_linker="$host_os dld.sl" 3358 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 3359 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 3360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 3361 soname_spec='${libname}${release}${shared_ext}$major' 3362 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 3363 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 3364 ;; 3365 *) 3366 shrext_cmds='.sl' 3367 dynamic_linker="$host_os dld.sl" 3368 shlibpath_var=SHLIB_PATH 3369 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 3370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 3371 soname_spec='${libname}${release}${shared_ext}$major' 3372 ;; 3373 esac 3374 # HP-UX runs *really* slowly unless shared libraries are mode 555. 3375 postinstall_cmds='chmod 555 $lib' 3376 ;; 3377 3378interix[[3-9]]*) 3379 version_type=linux 3380 need_lib_prefix=no 3381 need_version=no 3382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 3383 soname_spec='${libname}${release}${shared_ext}$major' 3384 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 3385 shlibpath_var=LD_LIBRARY_PATH 3386 shlibpath_overrides_runpath=no 3387 hardcode_into_libs=yes 3388 ;; 3389 3390irix5* | irix6* | nonstopux*) 3391 case $host_os in 3392 nonstopux*) version_type=nonstopux ;; 3393 *) 3394 if test "$lt_cv_prog_gnu_ld" = yes; then 3395 version_type=linux 3396 else 3397 version_type=irix 3398 fi ;; 3399 esac 3400 need_lib_prefix=no 3401 need_version=no 3402 soname_spec='${libname}${release}${shared_ext}$major' 3403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 3404 case $host_os in 3405 irix5* | nonstopux*) 3406 libsuff= shlibsuff= 3407 ;; 3408 *) 3409 case $LD in # libtool.m4 will add one of these switches to LD 3410 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 3411 libsuff= shlibsuff= libmagic=32-bit;; 3412 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 3413 libsuff=32 shlibsuff=N32 libmagic=N32;; 3414 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 3415 libsuff=64 shlibsuff=64 libmagic=64-bit;; 3416 *) libsuff= shlibsuff= libmagic=never-match;; 3417 esac 3418 ;; 3419 esac 3420 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 3421 shlibpath_overrides_runpath=no 3422 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 3423 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 3424 hardcode_into_libs=yes 3425 ;; 3426 3427# No shared lib support for Linux oldld, aout, or coff. 3428linux*oldld* | linux*aout* | linux*coff*) 3429 dynamic_linker=no 3430 ;; 3431 3432# This must be Linux ELF. 3433linux* | k*bsd*-gnu) 3434 version_type=linux 3435 need_lib_prefix=no 3436 need_version=no 3437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 3438 soname_spec='${libname}${release}${shared_ext}$major' 3439 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 3440 shlibpath_var=LD_LIBRARY_PATH 3441 shlibpath_overrides_runpath=no 3442 # Some binutils ld are patched to set DT_RUNPATH 3443 save_LDFLAGS=$LDFLAGS 3444 save_libdir=$libdir 3445 eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \ 3446 LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\"" 3447 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], 3448 [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null], 3449 [shlibpath_overrides_runpath=yes])]) 3450 LDFLAGS=$save_LDFLAGS 3451 libdir=$save_libdir 3452 3453 # This implies no fast_install, which is unacceptable. 3454 # Some rework will be needed to allow for fast_install 3455 # before this can be enabled. 3456 hardcode_into_libs=yes 3457 3458 # Append ld.so.conf contents to the search path 3459 if test -f /etc/ld.so.conf; then 3460 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 3461 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 3462 fi 3463 3464 # We used to test for /lib/ld.so.1 and disable shared libraries on 3465 # powerpc, because MkLinux only supported shared libraries with the 3466 # GNU dynamic linker. Since this was broken with cross compilers, 3467 # most powerpc-linux boxes support dynamic linking these days and 3468 # people can always --disable-shared, the test was removed, and we 3469 # assume the GNU/Linux dynamic linker is in use. 3470 dynamic_linker='GNU/Linux ld.so' 3471 ;; 3472 3473netbsd*) 3474 version_type=sunos 3475 need_lib_prefix=no 3476 need_version=no 3477 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 3478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 3479 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 3480 dynamic_linker='NetBSD (a.out) ld.so' 3481 else 3482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 3483 soname_spec='${libname}${release}${shared_ext}$major' 3484 dynamic_linker='NetBSD ld.elf_so' 3485 fi 3486 shlibpath_var=LD_LIBRARY_PATH 3487 shlibpath_overrides_runpath=yes 3488 hardcode_into_libs=yes 3489 ;; 3490 3491newsos6) 3492 version_type=linux 3493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 3494 shlibpath_var=LD_LIBRARY_PATH 3495 shlibpath_overrides_runpath=yes 3496 ;; 3497 3498*nto* | *qnx*) 3499 version_type=qnx 3500 need_lib_prefix=no 3501 need_version=no 3502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 3503 soname_spec='${libname}${release}${shared_ext}$major' 3504 shlibpath_var=LD_LIBRARY_PATH 3505 shlibpath_overrides_runpath=no 3506 hardcode_into_libs=yes 3507 dynamic_linker='ldqnx.so' 3508 ;; 3509 3510openbsd*) 3511 version_type=sunos 3512 sys_lib_dlsearch_path_spec="/usr/lib" 3513 need_lib_prefix=no 3514 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 3515 case $host_os in 3516 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 3517 *) need_version=no ;; 3518 esac 3519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 3520 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 3521 shlibpath_var=LD_LIBRARY_PATH 3522 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 3523 case $host_os in 3524 openbsd2.[[89]] | openbsd2.[[89]].*) 3525 shlibpath_overrides_runpath=no 3526 ;; 3527 *) 3528 shlibpath_overrides_runpath=yes 3529 ;; 3530 esac 3531 else 3532 shlibpath_overrides_runpath=yes 3533 fi 3534 ;; 3535 3536os2*) 3537 libname_spec='$name' 3538 shrext_cmds=".dll" 3539 need_lib_prefix=no 3540 library_names_spec='$libname${shared_ext} $libname.a' 3541 dynamic_linker='OS/2 ld.exe' 3542 shlibpath_var=LIBPATH 3543 ;; 3544 3545osf3* | osf4* | osf5*) 3546 version_type=osf 3547 need_lib_prefix=no 3548 need_version=no 3549 soname_spec='${libname}${release}${shared_ext}$major' 3550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 3551 shlibpath_var=LD_LIBRARY_PATH 3552 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 3553 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 3554 ;; 3555 3556rdos*) 3557 dynamic_linker=no 3558 ;; 3559 3560solaris*) 3561 version_type=linux 3562 need_lib_prefix=no 3563 need_version=no 3564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 3565 soname_spec='${libname}${release}${shared_ext}$major' 3566 shlibpath_var=LD_LIBRARY_PATH 3567 shlibpath_overrides_runpath=yes 3568 hardcode_into_libs=yes 3569 # ldd complains unless libraries are executable 3570 postinstall_cmds='chmod +x $lib' 3571 ;; 3572 3573sunos4*) 3574 version_type=sunos 3575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 3576 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 3577 shlibpath_var=LD_LIBRARY_PATH 3578 shlibpath_overrides_runpath=yes 3579 if test "$with_gnu_ld" = yes; then 3580 need_lib_prefix=no 3581 fi 3582 need_version=yes 3583 ;; 3584 3585sysv4 | sysv4.3*) 3586 version_type=linux 3587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 3588 soname_spec='${libname}${release}${shared_ext}$major' 3589 shlibpath_var=LD_LIBRARY_PATH 3590 case $host_vendor in 3591 sni) 3592 shlibpath_overrides_runpath=no 3593 need_lib_prefix=no 3594 runpath_var=LD_RUN_PATH 3595 ;; 3596 siemens) 3597 need_lib_prefix=no 3598 ;; 3599 motorola) 3600 need_lib_prefix=no 3601 need_version=no 3602 shlibpath_overrides_runpath=no 3603 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 3604 ;; 3605 esac 3606 ;; 3607 3608sysv4*MP*) 3609 if test -d /usr/nec ;then 3610 version_type=linux 3611 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 3612 soname_spec='$libname${shared_ext}.$major' 3613 shlibpath_var=LD_LIBRARY_PATH 3614 fi 3615 ;; 3616 3617sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 3618 version_type=freebsd-elf 3619 need_lib_prefix=no 3620 need_version=no 3621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 3622 soname_spec='${libname}${release}${shared_ext}$major' 3623 shlibpath_var=LD_LIBRARY_PATH 3624 shlibpath_overrides_runpath=yes 3625 hardcode_into_libs=yes 3626 if test "$with_gnu_ld" = yes; then 3627 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 3628 else 3629 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 3630 case $host_os in 3631 sco3.2v5*) 3632 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 3633 ;; 3634 esac 3635 fi 3636 sys_lib_dlsearch_path_spec='/usr/lib' 3637 ;; 3638 3639tpf*) 3640 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 3641 version_type=linux 3642 need_lib_prefix=no 3643 need_version=no 3644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 3645 shlibpath_var=LD_LIBRARY_PATH 3646 shlibpath_overrides_runpath=no 3647 hardcode_into_libs=yes 3648 ;; 3649 3650uts4*) 3651 version_type=linux 3652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 3653 soname_spec='${libname}${release}${shared_ext}$major' 3654 shlibpath_var=LD_LIBRARY_PATH 3655 ;; 3656 3657*) 3658 dynamic_linker=no 3659 ;; 3660esac 3661AC_MSG_RESULT([$dynamic_linker]) 3662test "$dynamic_linker" = no && can_build_shared=no 3663 3664variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 3665if test "$GCC" = yes; then 3666 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 3667fi 3668 3669if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 3670 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 3671fi 3672if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 3673 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 3674fi 3675 3676_LT_DECL([], [variables_saved_for_relink], [1], 3677 [Variables whose values should be saved in libtool wrapper scripts and 3678 restored at link time]) 3679_LT_DECL([], [need_lib_prefix], [0], 3680 [Do we need the "lib" prefix for modules?]) 3681_LT_DECL([], [need_version], [0], [Do we need a version for libraries?]) 3682_LT_DECL([], [version_type], [0], [Library versioning type]) 3683_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable]) 3684_LT_DECL([], [shlibpath_var], [0],[Shared library path variable]) 3685_LT_DECL([], [shlibpath_overrides_runpath], [0], 3686 [Is shlibpath searched before the hard-coded library search path?]) 3687_LT_DECL([], [libname_spec], [1], [Format of library name prefix]) 3688_LT_DECL([], [library_names_spec], [1], 3689 [[List of archive names. First name is the real one, the rest are links. 3690 The last name is the one that the linker finds with -lNAME]]) 3691_LT_DECL([], [soname_spec], [1], 3692 [[The coded name of the library, if different from the real name]]) 3693_LT_DECL([], [postinstall_cmds], [2], 3694 [Command to use after installation of a shared archive]) 3695_LT_DECL([], [postuninstall_cmds], [2], 3696 [Command to use after uninstallation of a shared archive]) 3697_LT_DECL([], [finish_cmds], [2], 3698 [Commands used to finish a libtool library installation in a directory]) 3699_LT_DECL([], [finish_eval], [1], 3700 [[As "finish_cmds", except a single script fragment to be evaled but 3701 not shown]]) 3702_LT_DECL([], [hardcode_into_libs], [0], 3703 [Whether we should hardcode library paths into libraries]) 3704_LT_DECL([], [sys_lib_search_path_spec], [2], 3705 [Compile-time system search path for libraries]) 3706_LT_DECL([], [sys_lib_dlsearch_path_spec], [2], 3707 [Run-time system search path for libraries]) 3708])# _LT_SYS_DYNAMIC_LINKER 3709 3710 3711# _LT_PATH_TOOL_PREFIX(TOOL) 3712# -------------------------- 3713# find a file program which can recognize shared library 3714AC_DEFUN([_LT_PATH_TOOL_PREFIX], 3715[m4_require([_LT_DECL_EGREP])dnl 3716AC_MSG_CHECKING([for $1]) 3717AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, 3718[case $MAGIC_CMD in 3719[[\\/*] | ?:[\\/]*]) 3720 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 3721 ;; 3722*) 3723 lt_save_MAGIC_CMD="$MAGIC_CMD" 3724 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3725dnl $ac_dummy forces splitting on constant user-supplied paths. 3726dnl POSIX.2 word splitting is done only on the output of word expansions, 3727dnl not every word. This closes a longstanding sh security hole. 3728 ac_dummy="m4_if([$2], , $PATH, [$2])" 3729 for ac_dir in $ac_dummy; do 3730 IFS="$lt_save_ifs" 3731 test -z "$ac_dir" && ac_dir=. 3732 if test -f $ac_dir/$1; then 3733 lt_cv_path_MAGIC_CMD="$ac_dir/$1" 3734 if test -n "$file_magic_test_file"; then 3735 case $deplibs_check_method in 3736 "file_magic "*) 3737 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 3738 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 3739 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 3740 $EGREP "$file_magic_regex" > /dev/null; then 3741 : 3742 else 3743 cat <<_LT_EOF 1>&2 3744 3745*** Warning: the command libtool uses to detect shared libraries, 3746*** $file_magic_cmd, produces output that libtool cannot recognize. 3747*** The result is that libtool may fail to recognize shared libraries 3748*** as such. This will affect the creation of libtool libraries that 3749*** depend on shared libraries, but programs linked with such libtool 3750*** libraries will work regardless of this problem. Nevertheless, you 3751*** may want to report the problem to your system manager and/or to 3752*** bug-libtool@gnu.org 3753 3754_LT_EOF 3755 fi ;; 3756 esac 3757 fi 3758 break 3759 fi 3760 done 3761 IFS="$lt_save_ifs" 3762 MAGIC_CMD="$lt_save_MAGIC_CMD" 3763 ;; 3764esac]) 3765MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 3766if test -n "$MAGIC_CMD"; then 3767 AC_MSG_RESULT($MAGIC_CMD) 3768else 3769 AC_MSG_RESULT(no) 3770fi 3771_LT_DECL([], [MAGIC_CMD], [0], 3772 [Used to examine libraries when file_magic_cmd begins with "file"])dnl 3773])# _LT_PATH_TOOL_PREFIX 3774 3775# Old name: 3776AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX]) 3777dnl aclocal-1.4 backwards compatibility: 3778dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], []) 3779 3780 3781# _LT_PATH_MAGIC 3782# -------------- 3783# find a file program which can recognize a shared library 3784m4_defun([_LT_PATH_MAGIC], 3785[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) 3786if test -z "$lt_cv_path_MAGIC_CMD"; then 3787 if test -n "$ac_tool_prefix"; then 3788 _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) 3789 else 3790 MAGIC_CMD=: 3791 fi 3792fi 3793])# _LT_PATH_MAGIC 3794 3795 3796# LT_PATH_LD 3797# ---------- 3798# find the pathname to the GNU or non-GNU linker 3799AC_DEFUN([LT_PATH_LD], 3800[AC_REQUIRE([AC_PROG_CC])dnl 3801AC_REQUIRE([AC_CANONICAL_HOST])dnl 3802AC_REQUIRE([AC_CANONICAL_BUILD])dnl 3803m4_require([_LT_DECL_SED])dnl 3804m4_require([_LT_DECL_EGREP])dnl 3805 3806AC_ARG_WITH([gnu-ld], 3807 [AS_HELP_STRING([--with-gnu-ld], 3808 [assume the C compiler uses GNU ld @<:@default=no@:>@])], 3809 [test "$withval" = no || with_gnu_ld=yes], 3810 [with_gnu_ld=no])dnl 3811 3812ac_prog=ld 3813if test "$GCC" = yes; then 3814 # Check if gcc -print-prog-name=ld gives a path. 3815 AC_MSG_CHECKING([for ld used by $CC]) 3816 case $host in 3817 *-*-mingw*) 3818 # gcc leaves a trailing carriage return which upsets mingw 3819 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 3820 *) 3821 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 3822 esac 3823 case $ac_prog in 3824 # Accept absolute paths. 3825 [[\\/]]* | ?:[[\\/]]*) 3826 re_direlt='/[[^/]][[^/]]*/\.\./' 3827 # Canonicalize the pathname of ld 3828 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 3829 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 3830 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 3831 done 3832 test -z "$LD" && LD="$ac_prog" 3833 ;; 3834 "") 3835 # If it fails, then pretend we aren't using GCC. 3836 ac_prog=ld 3837 ;; 3838 *) 3839 # If it is relative, then search for the first ld in PATH. 3840 with_gnu_ld=unknown 3841 ;; 3842 esac 3843elif test "$with_gnu_ld" = yes; then 3844 AC_MSG_CHECKING([for GNU ld]) 3845else 3846 AC_MSG_CHECKING([for non-GNU ld]) 3847fi 3848AC_CACHE_VAL(lt_cv_path_LD, 3849[if test -z "$LD"; then 3850 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3851 for ac_dir in $PATH; do 3852 IFS="$lt_save_ifs" 3853 test -z "$ac_dir" && ac_dir=. 3854 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 3855 lt_cv_path_LD="$ac_dir/$ac_prog" 3856 # Check to see if the program is GNU ld. I'd rather use --version, 3857 # but apparently some variants of GNU ld only accept -v. 3858 # Break only if it was the GNU/non-GNU ld that we prefer. 3859 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 3860 *GNU* | *'with BFD'*) 3861 test "$with_gnu_ld" != no && break 3862 ;; 3863 *) 3864 test "$with_gnu_ld" != yes && break 3865 ;; 3866 esac 3867 fi 3868 done 3869 IFS="$lt_save_ifs" 3870else 3871 lt_cv_path_LD="$LD" # Let the user override the test with a path. 3872fi]) 3873LD="$lt_cv_path_LD" 3874if test -n "$LD"; then 3875 AC_MSG_RESULT($LD) 3876else 3877 AC_MSG_RESULT(no) 3878fi 3879test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) 3880_LT_PATH_LD_GNU 3881AC_SUBST([LD]) 3882 3883_LT_TAGDECL([], [LD], [1], [The linker used to build libraries]) 3884])# LT_PATH_LD 3885 3886# Old names: 3887AU_ALIAS([AM_PROG_LD], [LT_PATH_LD]) 3888AU_ALIAS([AC_PROG_LD], [LT_PATH_LD]) 3889dnl aclocal-1.4 backwards compatibility: 3890dnl AC_DEFUN([AM_PROG_LD], []) 3891dnl AC_DEFUN([AC_PROG_LD], []) 3892 3893 3894# _LT_PATH_LD_GNU 3895#- -------------- 3896m4_defun([_LT_PATH_LD_GNU], 3897[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, 3898[# I'd rather use --version here, but apparently some GNU lds only accept -v. 3899case `$LD -v 2>&1 </dev/null` in 3900*GNU* | *'with BFD'*) 3901 lt_cv_prog_gnu_ld=yes 3902 ;; 3903*) 3904 lt_cv_prog_gnu_ld=no 3905 ;; 3906esac]) 3907with_gnu_ld=$lt_cv_prog_gnu_ld 3908])# _LT_PATH_LD_GNU 3909 3910 3911# _LT_CMD_RELOAD 3912# -------------- 3913# find reload flag for linker 3914# -- PORTME Some linkers may need a different reload flag. 3915m4_defun([_LT_CMD_RELOAD], 3916[AC_CACHE_CHECK([for $LD option to reload object files], 3917 lt_cv_ld_reload_flag, 3918 [lt_cv_ld_reload_flag='-r']) 3919reload_flag=$lt_cv_ld_reload_flag 3920case $reload_flag in 3921"" | " "*) ;; 3922*) reload_flag=" $reload_flag" ;; 3923esac 3924reload_cmds='$LD$reload_flag -o $output$reload_objs' 3925case $host_os in 3926 darwin*) 3927 if test "$GCC" = yes; then 3928 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 3929 else 3930 reload_cmds='$LD$reload_flag -o $output$reload_objs' 3931 fi 3932 ;; 3933esac 3934_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl 3935_LT_DECL([], [reload_cmds], [2])dnl 3936])# _LT_CMD_RELOAD 3937 3938 3939# _LT_CHECK_MAGIC_METHOD 3940# ---------------------- 3941# how to check for library dependencies 3942# -- PORTME fill in with the dynamic library characteristics 3943m4_defun([_LT_CHECK_MAGIC_METHOD], 3944[m4_require([_LT_DECL_EGREP]) 3945m4_require([_LT_DECL_OBJDUMP]) 3946AC_CACHE_CHECK([how to recognize dependent libraries], 3947lt_cv_deplibs_check_method, 3948[lt_cv_file_magic_cmd='$MAGIC_CMD' 3949lt_cv_file_magic_test_file= 3950lt_cv_deplibs_check_method='unknown' 3951# Need to set the preceding variable on all platforms that support 3952# interlibrary dependencies. 3953# 'none' -- dependencies not supported. 3954# `unknown' -- same as none, but documents that we really don't know. 3955# 'pass_all' -- all dependencies passed with no checks. 3956# 'test_compile' -- check by making test program. 3957# 'file_magic [[regex]]' -- check by looking for files in library path 3958# which responds to the $file_magic_cmd with a given extended regex. 3959# If you have `file' or equivalent on your system and you're not sure 3960# whether `pass_all' will *always* work, you probably want this one. 3961 3962case $host_os in 3963aix[[4-9]]*) 3964 lt_cv_deplibs_check_method=pass_all 3965 ;; 3966 3967beos*) 3968 lt_cv_deplibs_check_method=pass_all 3969 ;; 3970 3971bsdi[[45]]*) 3972 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' 3973 lt_cv_file_magic_cmd='/usr/bin/file -L' 3974 lt_cv_file_magic_test_file=/shlib/libc.so 3975 ;; 3976 3977cygwin*) 3978 # func_win32_libid is a shell function defined in ltmain.sh 3979 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 3980 lt_cv_file_magic_cmd='func_win32_libid' 3981 ;; 3982 3983mingw* | pw32*) 3984 # Base MSYS/MinGW do not provide the 'file' command needed by 3985 # func_win32_libid shell function, so use a weaker test based on 'objdump', 3986 # unless we find 'file', for example because we are cross-compiling. 3987 if ( file / ) >/dev/null 2>&1; then 3988 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 3989 lt_cv_file_magic_cmd='func_win32_libid' 3990 else 3991 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 3992 lt_cv_file_magic_cmd='$OBJDUMP -f' 3993 fi 3994 ;; 3995 3996cegcc) 3997 # use the weaker test based on 'objdump'. See mingw*. 3998 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 3999 lt_cv_file_magic_cmd='$OBJDUMP -f' 4000 ;; 4001 4002darwin* | rhapsody*) 4003 lt_cv_deplibs_check_method=pass_all 4004 ;; 4005 4006freebsd* | dragonfly*) 4007 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 4008 case $host_cpu in 4009 i*86 ) 4010 # Not sure whether the presence of OpenBSD here was a mistake. 4011 # Let's accept both of them until this is cleared up. 4012 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' 4013 lt_cv_file_magic_cmd=/usr/bin/file 4014 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4015 ;; 4016 esac 4017 else 4018 lt_cv_deplibs_check_method=pass_all 4019 fi 4020 ;; 4021 4022gnu*) 4023 lt_cv_deplibs_check_method=pass_all 4024 ;; 4025 4026hpux10.20* | hpux11*) 4027 lt_cv_file_magic_cmd=/usr/bin/file 4028 case $host_cpu in 4029 ia64*) 4030 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' 4031 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4032 ;; 4033 hppa*64*) 4034 [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]'] 4035 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4036 ;; 4037 *) 4038 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library' 4039 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4040 ;; 4041 esac 4042 ;; 4043 4044interix[[3-9]]*) 4045 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 4046 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' 4047 ;; 4048 4049irix5* | irix6* | nonstopux*) 4050 case $LD in 4051 *-32|*"-32 ") libmagic=32-bit;; 4052 *-n32|*"-n32 ") libmagic=N32;; 4053 *-64|*"-64 ") libmagic=64-bit;; 4054 *) libmagic=never-match;; 4055 esac 4056 lt_cv_deplibs_check_method=pass_all 4057 ;; 4058 4059# This must be Linux ELF. 4060linux* | k*bsd*-gnu) 4061 lt_cv_deplibs_check_method=pass_all 4062 ;; 4063 4064netbsd*) 4065 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 4066 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' 4067 else 4068 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' 4069 fi 4070 ;; 4071 4072newos6*) 4073 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' 4074 lt_cv_file_magic_cmd=/usr/bin/file 4075 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4076 ;; 4077 4078*nto* | *qnx*) 4079 lt_cv_deplibs_check_method=pass_all 4080 ;; 4081 4082openbsd*) 4083 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4084 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' 4085 else 4086 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' 4087 fi 4088 ;; 4089 4090osf3* | osf4* | osf5*) 4091 lt_cv_deplibs_check_method=pass_all 4092 ;; 4093 4094rdos*) 4095 lt_cv_deplibs_check_method=pass_all 4096 ;; 4097 4098solaris*) 4099 lt_cv_deplibs_check_method=pass_all 4100 ;; 4101 4102sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4103 lt_cv_deplibs_check_method=pass_all 4104 ;; 4105 4106sysv4 | sysv4.3*) 4107 case $host_vendor in 4108 motorola) 4109 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]]' 4110 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4111 ;; 4112 ncr) 4113 lt_cv_deplibs_check_method=pass_all 4114 ;; 4115 sequent) 4116 lt_cv_file_magic_cmd='/bin/file' 4117 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' 4118 ;; 4119 sni) 4120 lt_cv_file_magic_cmd='/bin/file' 4121 lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" 4122 lt_cv_file_magic_test_file=/lib/libc.so 4123 ;; 4124 siemens) 4125 lt_cv_deplibs_check_method=pass_all 4126 ;; 4127 pc) 4128 lt_cv_deplibs_check_method=pass_all 4129 ;; 4130 esac 4131 ;; 4132 4133tpf*) 4134 lt_cv_deplibs_check_method=pass_all 4135 ;; 4136esac 4137]) 4138file_magic_cmd=$lt_cv_file_magic_cmd 4139deplibs_check_method=$lt_cv_deplibs_check_method 4140test -z "$deplibs_check_method" && deplibs_check_method=unknown 4141 4142_LT_DECL([], [deplibs_check_method], [1], 4143 [Method to check whether dependent libraries are shared objects]) 4144_LT_DECL([], [file_magic_cmd], [1], 4145 [Command to use when deplibs_check_method == "file_magic"]) 4146])# _LT_CHECK_MAGIC_METHOD 4147 4148 4149# LT_PATH_NM 4150# ---------- 4151# find the pathname to a BSD- or MS-compatible name lister 4152AC_DEFUN([LT_PATH_NM], 4153[AC_REQUIRE([AC_PROG_CC])dnl 4154AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM, 4155[if test -n "$NM"; then 4156 # Let the user override the test. 4157 lt_cv_path_NM="$NM" 4158else 4159 lt_nm_to_check="${ac_tool_prefix}nm" 4160 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4161 lt_nm_to_check="$lt_nm_to_check nm" 4162 fi 4163 for lt_tmp_nm in $lt_nm_to_check; do 4164 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4165 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4166 IFS="$lt_save_ifs" 4167 test -z "$ac_dir" && ac_dir=. 4168 tmp_nm="$ac_dir/$lt_tmp_nm" 4169 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4170 # Check to see if the nm accepts a BSD-compat flag. 4171 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4172 # nm: unknown option "B" ignored 4173 # Tru64's nm complains that /dev/null is an invalid object file 4174 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4175 */dev/null* | *'Invalid file or object type'*) 4176 lt_cv_path_NM="$tmp_nm -B" 4177 break 4178 ;; 4179 *) 4180 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4181 */dev/null*) 4182 lt_cv_path_NM="$tmp_nm -p" 4183 break 4184 ;; 4185 *) 4186 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4187 continue # so that we can try to find one that supports BSD flags 4188 ;; 4189 esac 4190 ;; 4191 esac 4192 fi 4193 done 4194 IFS="$lt_save_ifs" 4195 done 4196 : ${lt_cv_path_NM=no} 4197fi]) 4198if test "$lt_cv_path_NM" != "no"; then 4199 NM="$lt_cv_path_NM" 4200else 4201 # Didn't find any BSD compatible name lister, look for dumpbin. 4202 AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :) 4203 AC_SUBST([DUMPBIN]) 4204 if test "$DUMPBIN" != ":"; then 4205 NM="$DUMPBIN" 4206 fi 4207fi 4208test -z "$NM" && NM=nm 4209AC_SUBST([NM]) 4210_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl 4211 4212AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface], 4213 [lt_cv_nm_interface="BSD nm" 4214 echo "int some_variable = 0;" > conftest.$ac_ext 4215 (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD) 4216 (eval "$ac_compile" 2>conftest.err) 4217 cat conftest.err >&AS_MESSAGE_LOG_FD 4218 (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD) 4219 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4220 cat conftest.err >&AS_MESSAGE_LOG_FD 4221 (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD) 4222 cat conftest.out >&AS_MESSAGE_LOG_FD 4223 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4224 lt_cv_nm_interface="MS dumpbin" 4225 fi 4226 rm -f conftest*]) 4227])# LT_PATH_NM 4228 4229# Old names: 4230AU_ALIAS([AM_PROG_NM], [LT_PATH_NM]) 4231AU_ALIAS([AC_PROG_NM], [LT_PATH_NM]) 4232dnl aclocal-1.4 backwards compatibility: 4233dnl AC_DEFUN([AM_PROG_NM], []) 4234dnl AC_DEFUN([AC_PROG_NM], []) 4235 4236 4237# LT_LIB_M 4238# -------- 4239# check for math library 4240AC_DEFUN([LT_LIB_M], 4241[AC_REQUIRE([AC_CANONICAL_HOST])dnl 4242LIBM= 4243case $host in 4244*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*) 4245 # These system don't have libm, or don't need it 4246 ;; 4247*-ncr-sysv4.3*) 4248 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") 4249 AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") 4250 ;; 4251*) 4252 AC_CHECK_LIB(m, cos, LIBM="-lm") 4253 ;; 4254esac 4255AC_SUBST([LIBM]) 4256])# LT_LIB_M 4257 4258# Old name: 4259AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M]) 4260dnl aclocal-1.4 backwards compatibility: 4261dnl AC_DEFUN([AC_CHECK_LIBM], []) 4262 4263 4264# _LT_COMPILER_NO_RTTI([TAGNAME]) 4265# ------------------------------- 4266m4_defun([_LT_COMPILER_NO_RTTI], 4267[m4_require([_LT_TAG_COMPILER])dnl 4268 4269_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= 4270 4271if test "$GCC" = yes; then 4272 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' 4273 4274 _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], 4275 lt_cv_prog_compiler_rtti_exceptions, 4276 [-fno-rtti -fno-exceptions], [], 4277 [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) 4278fi 4279_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1], 4280 [Compiler flag to turn off builtin functions]) 4281])# _LT_COMPILER_NO_RTTI 4282 4283 4284# _LT_CMD_GLOBAL_SYMBOLS 4285# ---------------------- 4286m4_defun([_LT_CMD_GLOBAL_SYMBOLS], 4287[AC_REQUIRE([AC_CANONICAL_HOST])dnl 4288AC_REQUIRE([AC_PROG_CC])dnl 4289AC_REQUIRE([LT_PATH_NM])dnl 4290AC_REQUIRE([LT_PATH_LD])dnl 4291m4_require([_LT_DECL_SED])dnl 4292m4_require([_LT_DECL_EGREP])dnl 4293m4_require([_LT_TAG_COMPILER])dnl 4294 4295# Check for command to grab the raw symbol name followed by C symbol from nm. 4296AC_MSG_CHECKING([command to parse $NM output from $compiler object]) 4297AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], 4298[ 4299# These are sane defaults that work on at least a few old systems. 4300# [They come from Ultrix. What could be older than Ultrix?!! ;)] 4301 4302# Character class describing NM global symbol codes. 4303symcode='[[BCDEGRST]]' 4304 4305# Regexp to match symbols that can be accessed directly from C. 4306sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' 4307 4308# Define system-specific variables. 4309case $host_os in 4310aix*) 4311 symcode='[[BCDT]]' 4312 ;; 4313cygwin* | mingw* | pw32* | cegcc*) 4314 symcode='[[ABCDGISTW]]' 4315 ;; 4316hpux*) 4317 if test "$host_cpu" = ia64; then 4318 symcode='[[ABCDEGRST]]' 4319 fi 4320 ;; 4321irix* | nonstopux*) 4322 symcode='[[BCDEGRST]]' 4323 ;; 4324osf*) 4325 symcode='[[BCDEGQRST]]' 4326 ;; 4327solaris*) 4328 symcode='[[BDRT]]' 4329 ;; 4330sco3.2v5*) 4331 symcode='[[DT]]' 4332 ;; 4333sysv4.2uw2*) 4334 symcode='[[DT]]' 4335 ;; 4336sysv5* | sco5v6* | unixware* | OpenUNIX*) 4337 symcode='[[ABDT]]' 4338 ;; 4339sysv4) 4340 symcode='[[DFNSTU]]' 4341 ;; 4342esac 4343 4344# If we're using GNU nm, then use its standard symbol codes. 4345case `$NM -V 2>&1` in 4346*GNU* | *'with BFD'*) 4347 symcode='[[ABCDGIRSTW]]' ;; 4348esac 4349 4350# Transform an extracted symbol line into a proper C declaration. 4351# Some systems (esp. on ia64) link data and code symbols differently, 4352# so use this general approach. 4353lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 4354 4355# Transform an extracted symbol line into symbol name and symbol address 4356lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'" 4357lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 4358 4359# Handle CRLF in mingw tool chain 4360opt_cr= 4361case $build_os in 4362mingw*) 4363 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 4364 ;; 4365esac 4366 4367# Try without a prefix underscore, then with it. 4368for ac_symprfx in "" "_"; do 4369 4370 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 4371 symxfrm="\\1 $ac_symprfx\\2 \\2" 4372 4373 # Write the raw and C identifiers. 4374 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 4375 # Fake it for dumpbin and say T for any non-static function 4376 # and D for any global variable. 4377 # Also find C++ and __fastcall symbols from MSVC++, 4378 # which start with @ or ?. 4379 lt_cv_sys_global_symbol_pipe="$AWK ['"\ 4380" {last_section=section; section=\$ 3};"\ 4381" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 4382" \$ 0!~/External *\|/{next};"\ 4383" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 4384" {if(hide[section]) next};"\ 4385" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 4386" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 4387" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 4388" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 4389" ' prfx=^$ac_symprfx]" 4390 else 4391 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 4392 fi 4393 4394 # Check to see that the pipe works correctly. 4395 pipe_works=no 4396 4397 rm -f conftest* 4398 cat > conftest.$ac_ext <<_LT_EOF 4399#ifdef __cplusplus 4400extern "C" { 4401#endif 4402char nm_test_var; 4403void nm_test_func(void); 4404void nm_test_func(void){} 4405#ifdef __cplusplus 4406} 4407#endif 4408int main(){nm_test_var='a';nm_test_func();return(0);} 4409_LT_EOF 4410 4411 if AC_TRY_EVAL(ac_compile); then 4412 # Now try to grab the symbols. 4413 nlist=conftest.nm 4414 if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then 4415 # Try sorting and uniquifying the output. 4416 if sort "$nlist" | uniq > "$nlist"T; then 4417 mv -f "$nlist"T "$nlist" 4418 else 4419 rm -f "$nlist"T 4420 fi 4421 4422 # Make sure that we snagged all the symbols we need. 4423 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 4424 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 4425 cat <<_LT_EOF > conftest.$ac_ext 4426#ifdef __cplusplus 4427extern "C" { 4428#endif 4429 4430_LT_EOF 4431 # Now generate the symbol file. 4432 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 4433 4434 cat <<_LT_EOF >> conftest.$ac_ext 4435 4436/* The mapping between symbol names and symbols. */ 4437const struct { 4438 const char *name; 4439 void *address; 4440} 4441lt__PROGRAM__LTX_preloaded_symbols[[]] = 4442{ 4443 { "@PROGRAM@", (void *) 0 }, 4444_LT_EOF 4445 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 4446 cat <<\_LT_EOF >> conftest.$ac_ext 4447 {0, (void *) 0} 4448}; 4449 4450/* This works around a problem in FreeBSD linker */ 4451#ifdef FREEBSD_WORKAROUND 4452static const void *lt_preloaded_setup() { 4453 return lt__PROGRAM__LTX_preloaded_symbols; 4454} 4455#endif 4456 4457#ifdef __cplusplus 4458} 4459#endif 4460_LT_EOF 4461 # Now try linking the two files. 4462 mv conftest.$ac_objext conftstm.$ac_objext 4463 lt_save_LIBS="$LIBS" 4464 lt_save_CFLAGS="$CFLAGS" 4465 LIBS="conftstm.$ac_objext" 4466 CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" 4467 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then 4468 pipe_works=yes 4469 fi 4470 LIBS="$lt_save_LIBS" 4471 CFLAGS="$lt_save_CFLAGS" 4472 else 4473 echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD 4474 fi 4475 else 4476 echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD 4477 fi 4478 else 4479 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD 4480 fi 4481 else 4482 echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD 4483 cat conftest.$ac_ext >&5 4484 fi 4485 rm -rf conftest* conftst* 4486 4487 # Do not use the global_symbol_pipe unless it works. 4488 if test "$pipe_works" = yes; then 4489 break 4490 else 4491 lt_cv_sys_global_symbol_pipe= 4492 fi 4493done 4494]) 4495if test -z "$lt_cv_sys_global_symbol_pipe"; then 4496 lt_cv_sys_global_symbol_to_cdecl= 4497fi 4498if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 4499 AC_MSG_RESULT(failed) 4500else 4501 AC_MSG_RESULT(ok) 4502fi 4503 4504_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1], 4505 [Take the output of nm and produce a listing of raw symbols and C names]) 4506_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1], 4507 [Transform the output of nm in a proper C declaration]) 4508_LT_DECL([global_symbol_to_c_name_address], 4509 [lt_cv_sys_global_symbol_to_c_name_address], [1], 4510 [Transform the output of nm in a C name address pair]) 4511_LT_DECL([global_symbol_to_c_name_address_lib_prefix], 4512 [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1], 4513 [Transform the output of nm in a C name address pair when lib prefix is needed]) 4514]) # _LT_CMD_GLOBAL_SYMBOLS 4515 4516 4517# _LT_COMPILER_PIC([TAGNAME]) 4518# --------------------------- 4519m4_defun([_LT_COMPILER_PIC], 4520[m4_require([_LT_TAG_COMPILER])dnl 4521_LT_TAGVAR(lt_prog_compiler_wl, $1)= 4522_LT_TAGVAR(lt_prog_compiler_pic, $1)= 4523_LT_TAGVAR(lt_prog_compiler_static, $1)= 4524 4525AC_MSG_CHECKING([for $compiler option to produce PIC]) 4526m4_if([$1], [CXX], [ 4527 # C++ specific cases for pic, static, wl, etc. 4528 if test "$GXX" = yes; then 4529 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4530 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 4531 4532 case $host_os in 4533 aix*) 4534 # All AIX code is PIC. 4535 if test "$host_cpu" = ia64; then 4536 # AIX 5 now supports IA64 processor 4537 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4538 fi 4539 ;; 4540 4541 amigaos*) 4542 case $host_cpu in 4543 powerpc) 4544 # see comment about AmigaOS4 .so support 4545 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 4546 ;; 4547 m68k) 4548 # FIXME: we need at least 68020 code to build shared libraries, but 4549 # adding the `-m68020' flag to GCC prevents building anything better, 4550 # like `-m68040'. 4551 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' 4552 ;; 4553 esac 4554 ;; 4555 4556 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 4557 # PIC is the default for these OSes. 4558 ;; 4559 mingw* | cygwin* | os2* | pw32* | cegcc*) 4560 # This hack is so that the source file can tell whether it is being 4561 # built for inclusion in a dll (and should export symbols for example). 4562 # Although the cygwin gcc ignores -fPIC, still need this for old-style 4563 # (--disable-auto-import) libraries 4564 m4_if([$1], [GCJ], [], 4565 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 4566 ;; 4567 darwin* | rhapsody*) 4568 # PIC is the default on this platform 4569 # Common symbols not allowed in MH_DYLIB files 4570 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' 4571 ;; 4572 *djgpp*) 4573 # DJGPP does not support shared libraries at all 4574 _LT_TAGVAR(lt_prog_compiler_pic, $1)= 4575 ;; 4576 interix[[3-9]]*) 4577 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 4578 # Instead, we relocate shared libraries at runtime. 4579 ;; 4580 sysv4*MP*) 4581 if test -d /usr/nec; then 4582 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic 4583 fi 4584 ;; 4585 hpux*) 4586 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 4587 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 4588 # sets the default TLS model and affects inlining. 4589 case $host_cpu in 4590 hppa*64*) 4591 ;; 4592 *) 4593 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 4594 ;; 4595 esac 4596 ;; 4597 *qnx* | *nto*) 4598 # QNX uses GNU C++, but need to define -shared option too, otherwise 4599 # it will coredump. 4600 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' 4601 ;; 4602 *) 4603 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 4604 ;; 4605 esac 4606 else 4607 case $host_os in 4608 aix[[4-9]]*) 4609 # All AIX code is PIC. 4610 if test "$host_cpu" = ia64; then 4611 # AIX 5 now supports IA64 processor 4612 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4613 else 4614 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' 4615 fi 4616 ;; 4617 chorus*) 4618 case $cc_basename in 4619 cxch68*) 4620 # Green Hills C++ Compiler 4621 # _LT_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" 4622 ;; 4623 esac 4624 ;; 4625 dgux*) 4626 case $cc_basename in 4627 ec++*) 4628 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4629 ;; 4630 ghcx*) 4631 # Green Hills C++ Compiler 4632 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 4633 ;; 4634 *) 4635 ;; 4636 esac 4637 ;; 4638 freebsd* | dragonfly*) 4639 # FreeBSD uses GNU C++ 4640 ;; 4641 hpux9* | hpux10* | hpux11*) 4642 case $cc_basename in 4643 CC*) 4644 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4645 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' 4646 if test "$host_cpu" != ia64; then 4647 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 4648 fi 4649 ;; 4650 aCC*) 4651 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4652 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' 4653 case $host_cpu in 4654 hppa*64*|ia64*) 4655 # +Z the default 4656 ;; 4657 *) 4658 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 4659 ;; 4660 esac 4661 ;; 4662 *) 4663 ;; 4664 esac 4665 ;; 4666 interix*) 4667 # This is c89, which is MS Visual C++ (no shared libs) 4668 # Anyone wants to do a port? 4669 ;; 4670 irix5* | irix6* | nonstopux*) 4671 case $cc_basename in 4672 CC*) 4673 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4674 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 4675 # CC pic flag -KPIC is the default. 4676 ;; 4677 *) 4678 ;; 4679 esac 4680 ;; 4681 linux* | k*bsd*-gnu) 4682 case $cc_basename in 4683 KCC*) 4684 # KAI C++ Compiler 4685 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' 4686 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 4687 ;; 4688 ecpc* ) 4689 # old Intel C++ for x86_64 which still supported -KPIC. 4690 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4691 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4692 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 4693 ;; 4694 icpc* ) 4695 # Intel C++, used to be incompatible with GCC. 4696 # ICC 10 doesn't accept -KPIC any more. 4697 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4698 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 4699 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 4700 ;; 4701 pgCC* | pgcpp*) 4702 # Portland Group C++ compiler 4703 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4704 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' 4705 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4706 ;; 4707 cxx*) 4708 # Compaq C++ 4709 # Make sure the PIC flag is empty. It appears that all Alpha 4710 # Linux and Compaq Tru64 Unix objects are PIC. 4711 _LT_TAGVAR(lt_prog_compiler_pic, $1)= 4712 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 4713 ;; 4714 xlc* | xlC*) 4715 # IBM XL 8.0 on PPC 4716 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4717 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' 4718 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' 4719 ;; 4720 *) 4721 case `$CC -V 2>&1 | sed 5q` in 4722 *Sun\ C*) 4723 # Sun C++ 5.9 4724 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4725 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4726 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 4727 ;; 4728 esac 4729 ;; 4730 esac 4731 ;; 4732 lynxos*) 4733 ;; 4734 m88k*) 4735 ;; 4736 mvs*) 4737 case $cc_basename in 4738 cxx*) 4739 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' 4740 ;; 4741 *) 4742 ;; 4743 esac 4744 ;; 4745 netbsd*) 4746 ;; 4747 *qnx* | *nto*) 4748 # QNX uses GNU C++, but need to define -shared option too, otherwise 4749 # it will coredump. 4750 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' 4751 ;; 4752 osf3* | osf4* | osf5*) 4753 case $cc_basename in 4754 KCC*) 4755 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' 4756 ;; 4757 RCC*) 4758 # Rational C++ 2.4.1 4759 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 4760 ;; 4761 cxx*) 4762 # Digital/Compaq C++ 4763 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4764 # Make sure the PIC flag is empty. It appears that all Alpha 4765 # Linux and Compaq Tru64 Unix objects are PIC. 4766 _LT_TAGVAR(lt_prog_compiler_pic, $1)= 4767 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 4768 ;; 4769 *) 4770 ;; 4771 esac 4772 ;; 4773 psos*) 4774 ;; 4775 solaris*) 4776 case $cc_basename in 4777 CC*) 4778 # Sun C++ 4.2, 5.x and Centerline C++ 4779 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4780 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4781 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 4782 ;; 4783 gcx*) 4784 # Green Hills C++ Compiler 4785 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' 4786 ;; 4787 *) 4788 ;; 4789 esac 4790 ;; 4791 sunos4*) 4792 case $cc_basename in 4793 CC*) 4794 # Sun C++ 4.x 4795 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 4796 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4797 ;; 4798 lcc*) 4799 # Lucid 4800 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 4801 ;; 4802 *) 4803 ;; 4804 esac 4805 ;; 4806 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 4807 case $cc_basename in 4808 CC*) 4809 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4810 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4811 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4812 ;; 4813 esac 4814 ;; 4815 tandem*) 4816 case $cc_basename in 4817 NCC*) 4818 # NonStop-UX NCC 3.20 4819 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4820 ;; 4821 *) 4822 ;; 4823 esac 4824 ;; 4825 vxworks*) 4826 ;; 4827 *) 4828 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 4829 ;; 4830 esac 4831 fi 4832], 4833[ 4834 if test "$GCC" = yes; then 4835 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4836 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 4837 4838 case $host_os in 4839 aix*) 4840 # All AIX code is PIC. 4841 if test "$host_cpu" = ia64; then 4842 # AIX 5 now supports IA64 processor 4843 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4844 fi 4845 ;; 4846 4847 amigaos*) 4848 case $host_cpu in 4849 powerpc) 4850 # see comment about AmigaOS4 .so support 4851 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 4852 ;; 4853 m68k) 4854 # FIXME: we need at least 68020 code to build shared libraries, but 4855 # adding the `-m68020' flag to GCC prevents building anything better, 4856 # like `-m68040'. 4857 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' 4858 ;; 4859 esac 4860 ;; 4861 4862 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 4863 # PIC is the default for these OSes. 4864 ;; 4865 4866 mingw* | cygwin* | pw32* | os2* | cegcc*) 4867 # This hack is so that the source file can tell whether it is being 4868 # built for inclusion in a dll (and should export symbols for example). 4869 # Although the cygwin gcc ignores -fPIC, still need this for old-style 4870 # (--disable-auto-import) libraries 4871 m4_if([$1], [GCJ], [], 4872 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 4873 ;; 4874 4875 darwin* | rhapsody*) 4876 # PIC is the default on this platform 4877 # Common symbols not allowed in MH_DYLIB files 4878 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' 4879 ;; 4880 4881 hpux*) 4882 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 4883 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 4884 # sets the default TLS model and affects inlining. 4885 case $host_cpu in 4886 hppa*64*) 4887 # +Z the default 4888 ;; 4889 *) 4890 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 4891 ;; 4892 esac 4893 ;; 4894 4895 interix[[3-9]]*) 4896 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 4897 # Instead, we relocate shared libraries at runtime. 4898 ;; 4899 4900 msdosdjgpp*) 4901 # Just because we use GCC doesn't mean we suddenly get shared libraries 4902 # on systems that don't support them. 4903 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 4904 enable_shared=no 4905 ;; 4906 4907 *nto* | *qnx*) 4908 # QNX uses GNU C++, but need to define -shared option too, otherwise 4909 # it will coredump. 4910 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' 4911 ;; 4912 4913 sysv4*MP*) 4914 if test -d /usr/nec; then 4915 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic 4916 fi 4917 ;; 4918 4919 *) 4920 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 4921 ;; 4922 esac 4923 else 4924 # PORTME Check for flag to pass linker flags through the system compiler. 4925 case $host_os in 4926 aix*) 4927 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4928 if test "$host_cpu" = ia64; then 4929 # AIX 5 now supports IA64 processor 4930 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4931 else 4932 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' 4933 fi 4934 ;; 4935 4936 mingw* | cygwin* | pw32* | os2* | cegcc*) 4937 # This hack is so that the source file can tell whether it is being 4938 # built for inclusion in a dll (and should export symbols for example). 4939 m4_if([$1], [GCJ], [], 4940 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 4941 ;; 4942 4943 hpux9* | hpux10* | hpux11*) 4944 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4945 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 4946 # not for PA HP-UX. 4947 case $host_cpu in 4948 hppa*64*|ia64*) 4949 # +Z the default 4950 ;; 4951 *) 4952 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 4953 ;; 4954 esac 4955 # Is there a better lt_prog_compiler_static that works with the bundled CC? 4956 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' 4957 ;; 4958 4959 irix5* | irix6* | nonstopux*) 4960 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4961 # PIC (with -KPIC) is the default. 4962 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 4963 ;; 4964 4965 linux* | k*bsd*-gnu) 4966 case $cc_basename in 4967 # old Intel for x86_64 which still supported -KPIC. 4968 ecc*) 4969 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4970 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4971 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 4972 ;; 4973 # icc used to be incompatible with GCC. 4974 # ICC 10 doesn't accept -KPIC any more. 4975 icc* | ifort*) 4976 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4977 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 4978 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 4979 ;; 4980 # Lahey Fortran 8.1. 4981 lf95*) 4982 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4983 _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared' 4984 _LT_TAGVAR(lt_prog_compiler_static, $1)='--static' 4985 ;; 4986 pgcc* | pgf77* | pgf90* | pgf95*) 4987 # Portland Group compilers (*not* the Pentium gcc compiler, 4988 # which looks to be a dead project) 4989 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4990 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' 4991 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4992 ;; 4993 ccc*) 4994 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4995 # All Alpha code is PIC. 4996 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 4997 ;; 4998 xl*) 4999 # IBM XL C 8.0/Fortran 10.1 on PPC 5000 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5001 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' 5002 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' 5003 ;; 5004 *) 5005 case `$CC -V 2>&1 | sed 5q` in 5006 *Sun\ C*) 5007 # Sun C 5.9 5008 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5009 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5010 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5011 ;; 5012 *Sun\ F*) 5013 # Sun Fortran 8.3 passes all unrecognized flags to the linker 5014 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5015 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5016 _LT_TAGVAR(lt_prog_compiler_wl, $1)='' 5017 ;; 5018 esac 5019 ;; 5020 esac 5021 ;; 5022 5023 newsos6) 5024 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5025 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5026 ;; 5027 5028 *nto* | *qnx*) 5029 # QNX uses GNU C++, but need to define -shared option too, otherwise 5030 # it will coredump. 5031 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' 5032 ;; 5033 5034 osf3* | osf4* | osf5*) 5035 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5036 # All OSF/1 code is PIC. 5037 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 5038 ;; 5039 5040 rdos*) 5041 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 5042 ;; 5043 5044 solaris*) 5045 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5046 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5047 case $cc_basename in 5048 f77* | f90* | f95*) 5049 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; 5050 *) 5051 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; 5052 esac 5053 ;; 5054 5055 sunos4*) 5056 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 5057 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' 5058 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5059 ;; 5060 5061 sysv4 | sysv4.2uw2* | sysv4.3*) 5062 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5063 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5064 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5065 ;; 5066 5067 sysv4*MP*) 5068 if test -d /usr/nec ;then 5069 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' 5070 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5071 fi 5072 ;; 5073 5074 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 5075 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5076 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5077 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5078 ;; 5079 5080 unicos*) 5081 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5082 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 5083 ;; 5084 5085 uts4*) 5086 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 5087 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5088 ;; 5089 5090 *) 5091 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 5092 ;; 5093 esac 5094 fi 5095]) 5096case $host_os in 5097 # For platforms which do not support PIC, -DPIC is meaningless: 5098 *djgpp*) 5099 _LT_TAGVAR(lt_prog_compiler_pic, $1)= 5100 ;; 5101 *) 5102 _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])" 5103 ;; 5104esac 5105AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)]) 5106_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1], 5107 [How to pass a linker flag through the compiler]) 5108 5109# 5110# Check to make sure the PIC flag actually works. 5111# 5112if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then 5113 _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works], 5114 [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)], 5115 [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [], 5116 [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in 5117 "" | " "*) ;; 5118 *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;; 5119 esac], 5120 [_LT_TAGVAR(lt_prog_compiler_pic, $1)= 5121 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) 5122fi 5123_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1], 5124 [Additional compiler flags for building library objects]) 5125 5126# 5127# Check to make sure the static flag actually works. 5128# 5129wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\" 5130_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], 5131 _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1), 5132 $lt_tmp_static_flag, 5133 [], 5134 [_LT_TAGVAR(lt_prog_compiler_static, $1)=]) 5135_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1], 5136 [Compiler flag to prevent dynamic linking]) 5137])# _LT_COMPILER_PIC 5138 5139 5140# _LT_LINKER_SHLIBS([TAGNAME]) 5141# ---------------------------- 5142# See if the linker supports building shared libraries. 5143m4_defun([_LT_LINKER_SHLIBS], 5144[AC_REQUIRE([LT_PATH_LD])dnl 5145AC_REQUIRE([LT_PATH_NM])dnl 5146m4_require([_LT_FILEUTILS_DEFAULTS])dnl 5147m4_require([_LT_DECL_EGREP])dnl 5148m4_require([_LT_DECL_SED])dnl 5149m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl 5150m4_require([_LT_TAG_COMPILER])dnl 5151AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) 5152m4_if([$1], [CXX], [ 5153 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 5154 case $host_os in 5155 aix[[4-9]]*) 5156 # If we're using GNU nm, then we don't want the "-C" option. 5157 # -C means demangle to AIX nm, but means don't demangle with GNU nm 5158 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 5159 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 5160 else 5161 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 5162 fi 5163 ;; 5164 pw32*) 5165 _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" 5166 ;; 5167 cygwin* | mingw* | cegcc*) 5168 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols' 5169 ;; 5170 *) 5171 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 5172 ;; 5173 esac 5174 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] 5175], [ 5176 runpath_var= 5177 _LT_TAGVAR(allow_undefined_flag, $1)= 5178 _LT_TAGVAR(always_export_symbols, $1)=no 5179 _LT_TAGVAR(archive_cmds, $1)= 5180 _LT_TAGVAR(archive_expsym_cmds, $1)= 5181 _LT_TAGVAR(compiler_needs_object, $1)=no 5182 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no 5183 _LT_TAGVAR(export_dynamic_flag_spec, $1)= 5184 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 5185 _LT_TAGVAR(hardcode_automatic, $1)=no 5186 _LT_TAGVAR(hardcode_direct, $1)=no 5187 _LT_TAGVAR(hardcode_direct_absolute, $1)=no 5188 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 5189 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= 5190 _LT_TAGVAR(hardcode_libdir_separator, $1)= 5191 _LT_TAGVAR(hardcode_minus_L, $1)=no 5192 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 5193 _LT_TAGVAR(inherit_rpath, $1)=no 5194 _LT_TAGVAR(link_all_deplibs, $1)=unknown 5195 _LT_TAGVAR(module_cmds, $1)= 5196 _LT_TAGVAR(module_expsym_cmds, $1)= 5197 _LT_TAGVAR(old_archive_from_new_cmds, $1)= 5198 _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)= 5199 _LT_TAGVAR(thread_safe_flag_spec, $1)= 5200 _LT_TAGVAR(whole_archive_flag_spec, $1)= 5201 # include_expsyms should be a list of space-separated symbols to be *always* 5202 # included in the symbol list 5203 _LT_TAGVAR(include_expsyms, $1)= 5204 # exclude_expsyms can be an extended regexp of symbols to exclude 5205 # it will be wrapped by ` (' and `)$', so one must not match beginning or 5206 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 5207 # as well as any symbol that contains `d'. 5208 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] 5209 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 5210 # platforms (ab)use it in PIC code, but their linkers get confused if 5211 # the symbol is explicitly referenced. Since portable code cannot 5212 # rely on this symbol name, it's probably fine to never include it in 5213 # preloaded symbol tables. 5214 # Exclude shared library initialization/finalization symbols. 5215dnl Note also adjust exclude_expsyms for C++ above. 5216 extract_expsyms_cmds= 5217 5218 case $host_os in 5219 cygwin* | mingw* | pw32* | cegcc*) 5220 # FIXME: the MSVC++ port hasn't been tested in a loooong time 5221 # When not using gcc, we currently assume that we are using 5222 # Microsoft Visual C++. 5223 if test "$GCC" != yes; then 5224 with_gnu_ld=no 5225 fi 5226 ;; 5227 interix*) 5228 # we just hope/assume this is gcc and not c89 (= MSVC++) 5229 with_gnu_ld=yes 5230 ;; 5231 openbsd*) 5232 with_gnu_ld=no 5233 ;; 5234 esac 5235 5236 _LT_TAGVAR(ld_shlibs, $1)=yes 5237 if test "$with_gnu_ld" = yes; then 5238 # If archive_cmds runs LD, not CC, wlarc should be empty 5239 wlarc='${wl}' 5240 5241 # Set some defaults for GNU ld with shared library support. These 5242 # are reset later if shared libraries are not supported. Putting them 5243 # here allows them to be overridden if necessary. 5244 runpath_var=LD_RUN_PATH 5245 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 5246 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 5247 # ancient GNU ld didn't support --whole-archive et. al. 5248 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 5249 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 5250 else 5251 _LT_TAGVAR(whole_archive_flag_spec, $1)= 5252 fi 5253 supports_anon_versioning=no 5254 case `$LD -v 2>&1` in 5255 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 5256 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 5257 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 5258 *\ 2.11.*) ;; # other 2.11 versions 5259 *) supports_anon_versioning=yes ;; 5260 esac 5261 5262 # See if GNU ld supports shared libraries. 5263 case $host_os in 5264 aix[[3-9]]*) 5265 # On AIX/PPC, the GNU linker is very broken 5266 if test "$host_cpu" != ia64; then 5267 _LT_TAGVAR(ld_shlibs, $1)=no 5268 cat <<_LT_EOF 1>&2 5269 5270*** Warning: the GNU linker, at least up to release 2.9.1, is reported 5271*** to be unable to reliably create shared libraries on AIX. 5272*** Therefore, libtool is disabling shared libraries support. If you 5273*** really care for shared libraries, you may want to modify your PATH 5274*** so that a non-GNU linker is found, and then restart. 5275 5276_LT_EOF 5277 fi 5278 ;; 5279 5280 amigaos*) 5281 case $host_cpu in 5282 powerpc) 5283 # see comment about AmigaOS4 .so support 5284 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 5285 _LT_TAGVAR(archive_expsym_cmds, $1)='' 5286 ;; 5287 m68k) 5288 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 5289 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 5290 _LT_TAGVAR(hardcode_minus_L, $1)=yes 5291 ;; 5292 esac 5293 ;; 5294 5295 beos*) 5296 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 5297 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 5298 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 5299 # support --undefined. This deserves some investigation. FIXME 5300 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 5301 else 5302 _LT_TAGVAR(ld_shlibs, $1)=no 5303 fi 5304 ;; 5305 5306 cygwin* | mingw* | pw32* | cegcc*) 5307 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, 5308 # as there is no search path for DLLs. 5309 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 5310 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 5311 _LT_TAGVAR(always_export_symbols, $1)=no 5312 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 5313 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols' 5314 5315 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 5316 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 5317 # If the export-symbols file already is a .def file (1st line 5318 # is EXPORTS), use it as is; otherwise, prepend... 5319 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 5320 cp $export_symbols $output_objdir/$soname.def; 5321 else 5322 echo EXPORTS > $output_objdir/$soname.def; 5323 cat $export_symbols >> $output_objdir/$soname.def; 5324 fi~ 5325 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 5326 else 5327 _LT_TAGVAR(ld_shlibs, $1)=no 5328 fi 5329 ;; 5330 5331 interix[[3-9]]*) 5332 _LT_TAGVAR(hardcode_direct, $1)=no 5333 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5334 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 5335 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 5336 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 5337 # Instead, shared libraries are loaded at an image base (0x10000000 by 5338 # default) and relocated if they conflict, which is a slow very memory 5339 # consuming and fragmenting process. To avoid this, we pick a random, 5340 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 5341 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 5342 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 5343 _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 5344 ;; 5345 5346 gnu* | linux* | tpf* | k*bsd*-gnu) 5347 tmp_diet=no 5348 if test "$host_os" = linux-dietlibc; then 5349 case $cc_basename in 5350 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 5351 esac 5352 fi 5353 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 5354 && test "$tmp_diet" = no 5355 then 5356 tmp_addflag= 5357 tmp_sharedflag='-shared' 5358 case $cc_basename,$host_cpu in 5359 pgcc*) # Portland Group C compiler 5360 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 5361 tmp_addflag=' $pic_flag' 5362 ;; 5363 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 5364 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 5365 tmp_addflag=' $pic_flag -Mnomain' ;; 5366 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 5367 tmp_addflag=' -i_dynamic' ;; 5368 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 5369 tmp_addflag=' -i_dynamic -nofor_main' ;; 5370 ifc* | ifort*) # Intel Fortran compiler 5371 tmp_addflag=' -nofor_main' ;; 5372 lf95*) # Lahey Fortran 8.1 5373 _LT_TAGVAR(whole_archive_flag_spec, $1)= 5374 tmp_sharedflag='--shared' ;; 5375 xl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below) 5376 tmp_sharedflag='-qmkshrobj' 5377 tmp_addflag= ;; 5378 esac 5379 case `$CC -V 2>&1 | sed 5q` in 5380 *Sun\ C*) # Sun C 5.9 5381 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 5382 _LT_TAGVAR(compiler_needs_object, $1)=yes 5383 tmp_sharedflag='-G' ;; 5384 *Sun\ F*) # Sun Fortran 8.3 5385 tmp_sharedflag='-G' ;; 5386 esac 5387 _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 5388 5389 if test "x$supports_anon_versioning" = xyes; then 5390 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ 5391 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 5392 echo "local: *; };" >> $output_objdir/$libname.ver~ 5393 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 5394 fi 5395 5396 case $cc_basename in 5397 xlf*) 5398 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 5399 _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive' 5400 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 5401 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir' 5402 _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 5403 if test "x$supports_anon_versioning" = xyes; then 5404 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ 5405 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 5406 echo "local: *; };" >> $output_objdir/$libname.ver~ 5407 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 5408 fi 5409 ;; 5410 esac 5411 else 5412 _LT_TAGVAR(ld_shlibs, $1)=no 5413 fi 5414 ;; 5415 5416 netbsd*) 5417 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 5418 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 5419 wlarc= 5420 else 5421 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 5422 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 5423 fi 5424 ;; 5425 5426 solaris*) 5427 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 5428 _LT_TAGVAR(ld_shlibs, $1)=no 5429 cat <<_LT_EOF 1>&2 5430 5431*** Warning: The releases 2.8.* of the GNU linker cannot reliably 5432*** create shared libraries on Solaris systems. Therefore, libtool 5433*** is disabling shared libraries support. We urge you to upgrade GNU 5434*** binutils to release 2.9.1 or newer. Another option is to modify 5435*** your PATH or compiler configuration so that the native linker is 5436*** used, and then restart. 5437 5438_LT_EOF 5439 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 5440 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 5441 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 5442 else 5443 _LT_TAGVAR(ld_shlibs, $1)=no 5444 fi 5445 ;; 5446 5447 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 5448 case `$LD -v 2>&1` in 5449 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) 5450 _LT_TAGVAR(ld_shlibs, $1)=no 5451 cat <<_LT_EOF 1>&2 5452 5453*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 5454*** reliably create shared libraries on SCO systems. Therefore, libtool 5455*** is disabling shared libraries support. We urge you to upgrade GNU 5456*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 5457*** your PATH or compiler configuration so that the native linker is 5458*** used, and then restart. 5459 5460_LT_EOF 5461 ;; 5462 *) 5463 # For security reasons, it is highly recommended that you always 5464 # use absolute paths for naming shared libraries, and exclude the 5465 # DT_RUNPATH tag from executables and libraries. But doing so 5466 # requires that you compile everything twice, which is a pain. 5467 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 5468 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 5469 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 5470 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 5471 else 5472 _LT_TAGVAR(ld_shlibs, $1)=no 5473 fi 5474 ;; 5475 esac 5476 ;; 5477 5478 sunos4*) 5479 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 5480 wlarc= 5481 _LT_TAGVAR(hardcode_direct, $1)=yes 5482 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5483 ;; 5484 5485 *) 5486 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 5487 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 5488 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 5489 else 5490 _LT_TAGVAR(ld_shlibs, $1)=no 5491 fi 5492 ;; 5493 esac 5494 5495 if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then 5496 runpath_var= 5497 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 5498 _LT_TAGVAR(export_dynamic_flag_spec, $1)= 5499 _LT_TAGVAR(whole_archive_flag_spec, $1)= 5500 fi 5501 else 5502 # PORTME fill in a description of your system's linker (not GNU ld) 5503 case $host_os in 5504 aix3*) 5505 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 5506 _LT_TAGVAR(always_export_symbols, $1)=yes 5507 _LT_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' 5508 # Note: this linker hardcodes the directories in LIBPATH if there 5509 # are no directories specified by -L. 5510 _LT_TAGVAR(hardcode_minus_L, $1)=yes 5511 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 5512 # Neither direct hardcoding nor static linking is supported with a 5513 # broken collect2. 5514 _LT_TAGVAR(hardcode_direct, $1)=unsupported 5515 fi 5516 ;; 5517 5518 aix[[4-9]]*) 5519 if test "$host_cpu" = ia64; then 5520 # On IA64, the linker does run time linking by default, so we don't 5521 # have to do anything special. 5522 aix_use_runtimelinking=no 5523 exp_sym_flag='-Bexport' 5524 no_entry_flag="" 5525 else 5526 # If we're using GNU nm, then we don't want the "-C" option. 5527 # -C means demangle to AIX nm, but means don't demangle with GNU nm 5528 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 5529 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 5530 else 5531 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 5532 fi 5533 aix_use_runtimelinking=no 5534 5535 # Test if we are trying to use run time linking or normal 5536 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 5537 # need to do runtime linking. 5538 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) 5539 for ld_flag in $LDFLAGS; do 5540 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 5541 aix_use_runtimelinking=yes 5542 break 5543 fi 5544 done 5545 ;; 5546 esac 5547 5548 exp_sym_flag='-bexport' 5549 no_entry_flag='-bnoentry' 5550 fi 5551 5552 # When large executables or shared objects are built, AIX ld can 5553 # have problems creating the table of contents. If linking a library 5554 # or program results in "error TOC overflow" add -mminimal-toc to 5555 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 5556 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 5557 5558 _LT_TAGVAR(archive_cmds, $1)='' 5559 _LT_TAGVAR(hardcode_direct, $1)=yes 5560 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 5561 _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 5562 _LT_TAGVAR(link_all_deplibs, $1)=yes 5563 _LT_TAGVAR(file_list_spec, $1)='${wl}-f,' 5564 5565 if test "$GCC" = yes; then 5566 case $host_os in aix4.[[012]]|aix4.[[012]].*) 5567 # We only want to do this on AIX 4.2 and lower, the check 5568 # below for broken collect2 doesn't work under 4.3+ 5569 collect2name=`${CC} -print-prog-name=collect2` 5570 if test -f "$collect2name" && 5571 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 5572 then 5573 # We have reworked collect2 5574 : 5575 else 5576 # We have old collect2 5577 _LT_TAGVAR(hardcode_direct, $1)=unsupported 5578 # It fails to find uninstalled libraries when the uninstalled 5579 # path is not listed in the libpath. Setting hardcode_minus_L 5580 # to unsupported forces relinking 5581 _LT_TAGVAR(hardcode_minus_L, $1)=yes 5582 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 5583 _LT_TAGVAR(hardcode_libdir_separator, $1)= 5584 fi 5585 ;; 5586 esac 5587 shared_flag='-shared' 5588 if test "$aix_use_runtimelinking" = yes; then 5589 shared_flag="$shared_flag "'${wl}-G' 5590 fi 5591 else 5592 # not using gcc 5593 if test "$host_cpu" = ia64; then 5594 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 5595 # chokes on -Wl,-G. The following line is correct: 5596 shared_flag='-G' 5597 else 5598 if test "$aix_use_runtimelinking" = yes; then 5599 shared_flag='${wl}-G' 5600 else 5601 shared_flag='${wl}-bM:SRE' 5602 fi 5603 fi 5604 fi 5605 5606 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall' 5607 # It seems that -bexpall does not export symbols beginning with 5608 # underscore (_), so it is better to generate a list of symbols to export. 5609 _LT_TAGVAR(always_export_symbols, $1)=yes 5610 if test "$aix_use_runtimelinking" = yes; then 5611 # Warning - without using the other runtime loading flags (-brtl), 5612 # -berok will link without error, but may produce a broken library. 5613 _LT_TAGVAR(allow_undefined_flag, $1)='-berok' 5614 # Determine the default libpath from the value encoded in an 5615 # empty executable. 5616 _LT_SYS_MODULE_PATH_AIX 5617 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 5618 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 5619 else 5620 if test "$host_cpu" = ia64; then 5621 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' 5622 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" 5623 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 5624 else 5625 # Determine the default libpath from the value encoded in an 5626 # empty executable. 5627 _LT_SYS_MODULE_PATH_AIX 5628 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 5629 # Warning - without using the other run time loading flags, 5630 # -berok will link without error, but may produce a broken library. 5631 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' 5632 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' 5633 # Exported symbols can be pulled into shared objects from archives 5634 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' 5635 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes 5636 # This is similar to how AIX traditionally builds its shared libraries. 5637 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 5638 fi 5639 fi 5640 ;; 5641 5642 amigaos*) 5643 case $host_cpu in 5644 powerpc) 5645 # see comment about AmigaOS4 .so support 5646 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 5647 _LT_TAGVAR(archive_expsym_cmds, $1)='' 5648 ;; 5649 m68k) 5650 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 5651 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 5652 _LT_TAGVAR(hardcode_minus_L, $1)=yes 5653 ;; 5654 esac 5655 ;; 5656 5657 bsdi[[45]]*) 5658 _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic 5659 ;; 5660 5661 cygwin* | mingw* | pw32* | cegcc*) 5662 # When not using gcc, we currently assume that we are using 5663 # Microsoft Visual C++. 5664 # hardcode_libdir_flag_spec is actually meaningless, as there is 5665 # no search path for DLLs. 5666 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' 5667 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 5668 # Tell ltmain to make .lib files, not .a files. 5669 libext=lib 5670 # Tell ltmain to make .dll files, not .so files. 5671 shrext_cmds=".dll" 5672 # FIXME: Setting linknames here is a bad hack. 5673 _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' 5674 # The linker will automatically build a .lib file if we build a DLL. 5675 _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' 5676 # FIXME: Should let the user specify the lib program. 5677 _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs' 5678 _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`' 5679 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 5680 ;; 5681 5682 darwin* | rhapsody*) 5683 _LT_DARWIN_LINKER_FEATURES($1) 5684 ;; 5685 5686 dgux*) 5687 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 5688 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 5689 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5690 ;; 5691 5692 freebsd1*) 5693 _LT_TAGVAR(ld_shlibs, $1)=no 5694 ;; 5695 5696 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 5697 # support. Future versions do this automatically, but an explicit c++rt0.o 5698 # does not break anything, and helps significantly (at the cost of a little 5699 # extra space). 5700 freebsd2.2*) 5701 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 5702 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 5703 _LT_TAGVAR(hardcode_direct, $1)=yes 5704 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5705 ;; 5706 5707 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 5708 freebsd2*) 5709 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 5710 _LT_TAGVAR(hardcode_direct, $1)=yes 5711 _LT_TAGVAR(hardcode_minus_L, $1)=yes 5712 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5713 ;; 5714 5715 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 5716 freebsd* | dragonfly*) 5717 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 5718 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 5719 _LT_TAGVAR(hardcode_direct, $1)=yes 5720 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5721 ;; 5722 5723 hpux9*) 5724 if test "$GCC" = yes; then 5725 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 5726 else 5727 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 5728 fi 5729 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 5730 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 5731 _LT_TAGVAR(hardcode_direct, $1)=yes 5732 5733 # hardcode_minus_L: Not really in the search PATH, 5734 # but as the default location of the library. 5735 _LT_TAGVAR(hardcode_minus_L, $1)=yes 5736 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 5737 ;; 5738 5739 hpux10*) 5740 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 5741 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 5742 else 5743 _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 5744 fi 5745 if test "$with_gnu_ld" = no; then 5746 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 5747 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' 5748 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 5749 _LT_TAGVAR(hardcode_direct, $1)=yes 5750 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 5751 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 5752 # hardcode_minus_L: Not really in the search PATH, 5753 # but as the default location of the library. 5754 _LT_TAGVAR(hardcode_minus_L, $1)=yes 5755 fi 5756 ;; 5757 5758 hpux11*) 5759 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 5760 case $host_cpu in 5761 hppa*64*) 5762 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 5763 ;; 5764 ia64*) 5765 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 5766 ;; 5767 *) 5768 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 5769 ;; 5770 esac 5771 else 5772 case $host_cpu in 5773 hppa*64*) 5774 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 5775 ;; 5776 ia64*) 5777 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 5778 ;; 5779 *) 5780 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 5781 ;; 5782 esac 5783 fi 5784 if test "$with_gnu_ld" = no; then 5785 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 5786 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 5787 5788 case $host_cpu in 5789 hppa*64*|ia64*) 5790 _LT_TAGVAR(hardcode_direct, $1)=no 5791 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5792 ;; 5793 *) 5794 _LT_TAGVAR(hardcode_direct, $1)=yes 5795 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 5796 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 5797 5798 # hardcode_minus_L: Not really in the search PATH, 5799 # but as the default location of the library. 5800 _LT_TAGVAR(hardcode_minus_L, $1)=yes 5801 ;; 5802 esac 5803 fi 5804 ;; 5805 5806 irix5* | irix6* | nonstopux*) 5807 if test "$GCC" = yes; then 5808 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 5809 # Try to use the -exported_symbol ld option, if it does not 5810 # work, assume that -exports_file does not work either and 5811 # implicitly export all symbols. 5812 save_LDFLAGS="$LDFLAGS" 5813 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 5814 AC_LINK_IFELSE(int foo(void) {}, 5815 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' 5816 ) 5817 LDFLAGS="$save_LDFLAGS" 5818 else 5819 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 5820 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' 5821 fi 5822 _LT_TAGVAR(archive_cmds_need_lc, $1)='no' 5823 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 5824 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 5825 _LT_TAGVAR(inherit_rpath, $1)=yes 5826 _LT_TAGVAR(link_all_deplibs, $1)=yes 5827 ;; 5828 5829 netbsd*) 5830 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 5831 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 5832 else 5833 _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 5834 fi 5835 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 5836 _LT_TAGVAR(hardcode_direct, $1)=yes 5837 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5838 ;; 5839 5840 newsos6) 5841 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 5842 _LT_TAGVAR(hardcode_direct, $1)=yes 5843 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 5844 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 5845 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5846 ;; 5847 5848 *nto* | *qnx*) 5849 ;; 5850 5851 openbsd*) 5852 if test -f /usr/libexec/ld.so; then 5853 _LT_TAGVAR(hardcode_direct, $1)=yes 5854 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5855 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 5856 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5857 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 5858 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 5859 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 5860 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 5861 else 5862 case $host_os in 5863 openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) 5864 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 5865 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 5866 ;; 5867 *) 5868 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 5869 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 5870 ;; 5871 esac 5872 fi 5873 else 5874 _LT_TAGVAR(ld_shlibs, $1)=no 5875 fi 5876 ;; 5877 5878 os2*) 5879 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 5880 _LT_TAGVAR(hardcode_minus_L, $1)=yes 5881 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 5882 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 5883 _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 5884 ;; 5885 5886 osf3*) 5887 if test "$GCC" = yes; then 5888 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 5889 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 5890 else 5891 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 5892 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 5893 fi 5894 _LT_TAGVAR(archive_cmds_need_lc, $1)='no' 5895 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 5896 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 5897 ;; 5898 5899 osf4* | osf5*) # as osf3* with the addition of -msym flag 5900 if test "$GCC" = yes; then 5901 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 5902 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 5903 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 5904 else 5905 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 5906 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 5907 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ 5908 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' 5909 5910 # Both c and cxx compiler support -rpath directly 5911 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 5912 fi 5913 _LT_TAGVAR(archive_cmds_need_lc, $1)='no' 5914 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 5915 ;; 5916 5917 solaris*) 5918 _LT_TAGVAR(no_undefined_flag, $1)=' -z defs' 5919 if test "$GCC" = yes; then 5920 wlarc='${wl}' 5921 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 5922 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 5923 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 5924 else 5925 case `$CC -V 2>&1` in 5926 *"Compilers 5.0"*) 5927 wlarc='' 5928 _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 5929 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 5930 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 5931 ;; 5932 *) 5933 wlarc='${wl}' 5934 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 5935 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 5936 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 5937 ;; 5938 esac 5939 fi 5940 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 5941 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5942 case $host_os in 5943 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 5944 *) 5945 # The compiler driver will combine and reorder linker options, 5946 # but understands `-z linker_flag'. GCC discards it without `$wl', 5947 # but is careful enough not to reorder. 5948 # Supported since Solaris 2.6 (maybe 2.5.1?) 5949 if test "$GCC" = yes; then 5950 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 5951 else 5952 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' 5953 fi 5954 ;; 5955 esac 5956 _LT_TAGVAR(link_all_deplibs, $1)=yes 5957 ;; 5958 5959 sunos4*) 5960 if test "x$host_vendor" = xsequent; then 5961 # Use $CC to link under sequent, because it throws in some extra .o 5962 # files that make .init and .fini sections work. 5963 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 5964 else 5965 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 5966 fi 5967 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 5968 _LT_TAGVAR(hardcode_direct, $1)=yes 5969 _LT_TAGVAR(hardcode_minus_L, $1)=yes 5970 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5971 ;; 5972 5973 sysv4) 5974 case $host_vendor in 5975 sni) 5976 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 5977 _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true??? 5978 ;; 5979 siemens) 5980 ## LD is ld it makes a PLAMLIB 5981 ## CC just makes a GrossModule. 5982 _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' 5983 _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' 5984 _LT_TAGVAR(hardcode_direct, $1)=no 5985 ;; 5986 motorola) 5987 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 5988 _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie 5989 ;; 5990 esac 5991 runpath_var='LD_RUN_PATH' 5992 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5993 ;; 5994 5995 sysv4.3*) 5996 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 5997 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5998 _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' 5999 ;; 6000 6001 sysv4*MP*) 6002 if test -d /usr/nec; then 6003 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6004 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6005 runpath_var=LD_RUN_PATH 6006 hardcode_runpath_var=yes 6007 _LT_TAGVAR(ld_shlibs, $1)=yes 6008 fi 6009 ;; 6010 6011 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) 6012 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 6013 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 6014 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6015 runpath_var='LD_RUN_PATH' 6016 6017 if test "$GCC" = yes; then 6018 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6019 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6020 else 6021 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6022 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6023 fi 6024 ;; 6025 6026 sysv5* | sco3.2v5* | sco5v6*) 6027 # Note: We can NOT use -z defs as we might desire, because we do not 6028 # link with -lc, and that would cause any symbols used from libc to 6029 # always be unresolved, which means just about no library would 6030 # ever link correctly. If we're not using GNU ld we use -z text 6031 # though, which does catch some bad symbols but isn't as heavy-handed 6032 # as -z defs. 6033 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 6034 _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' 6035 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 6036 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6037 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir' 6038 _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 6039 _LT_TAGVAR(link_all_deplibs, $1)=yes 6040 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' 6041 runpath_var='LD_RUN_PATH' 6042 6043 if test "$GCC" = yes; then 6044 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6045 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6046 else 6047 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6048 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6049 fi 6050 ;; 6051 6052 uts4*) 6053 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6054 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 6055 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6056 ;; 6057 6058 *) 6059 _LT_TAGVAR(ld_shlibs, $1)=no 6060 ;; 6061 esac 6062 6063 if test x$host_vendor = xsni; then 6064 case $host in 6065 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 6066 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym' 6067 ;; 6068 esac 6069 fi 6070 fi 6071]) 6072AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) 6073test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no 6074 6075_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld 6076 6077_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl 6078_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl 6079_LT_DECL([], [extract_expsyms_cmds], [2], 6080 [The commands to extract the exported symbol list from a shared archive]) 6081 6082# 6083# Do we need to explicitly link libc? 6084# 6085case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in 6086x|xyes) 6087 # Assume -lc should be added 6088 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes 6089 6090 if test "$enable_shared" = yes && test "$GCC" = yes; then 6091 case $_LT_TAGVAR(archive_cmds, $1) in 6092 *'~'*) 6093 # FIXME: we may have to deal with multi-command sequences. 6094 ;; 6095 '$CC '*) 6096 # Test whether the compiler implicitly links with -lc since on some 6097 # systems, -lgcc has to come before -lc. If gcc already passes -lc 6098 # to ld, don't add -lc before -lgcc. 6099 AC_MSG_CHECKING([whether -lc should be explicitly linked in]) 6100 $RM conftest* 6101 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 6102 6103 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then 6104 soname=conftest 6105 lib=conftest 6106 libobjs=conftest.$ac_objext 6107 deplibs= 6108 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) 6109 pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1) 6110 compiler_flags=-v 6111 linker_flags=-v 6112 verstring= 6113 output_objdir=. 6114 libname=conftest 6115 lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1) 6116 _LT_TAGVAR(allow_undefined_flag, $1)= 6117 if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 6118 then 6119 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 6120 else 6121 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes 6122 fi 6123 _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag 6124 else 6125 cat conftest.err 1>&5 6126 fi 6127 $RM conftest* 6128 AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)]) 6129 ;; 6130 esac 6131 fi 6132 ;; 6133esac 6134 6135_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0], 6136 [Whether or not to add -lc for building shared libraries]) 6137_LT_TAGDECL([allow_libtool_libs_with_static_runtimes], 6138 [enable_shared_with_static_runtimes], [0], 6139 [Whether or not to disallow shared libs when runtime libs are static]) 6140_LT_TAGDECL([], [export_dynamic_flag_spec], [1], 6141 [Compiler flag to allow reflexive dlopens]) 6142_LT_TAGDECL([], [whole_archive_flag_spec], [1], 6143 [Compiler flag to generate shared objects directly from archives]) 6144_LT_TAGDECL([], [compiler_needs_object], [1], 6145 [Whether the compiler copes with passing no objects directly]) 6146_LT_TAGDECL([], [old_archive_from_new_cmds], [2], 6147 [Create an old-style archive from a shared archive]) 6148_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2], 6149 [Create a temporary old-style archive to link instead of a shared archive]) 6150_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive]) 6151_LT_TAGDECL([], [archive_expsym_cmds], [2]) 6152_LT_TAGDECL([], [module_cmds], [2], 6153 [Commands used to build a loadable module if different from building 6154 a shared archive.]) 6155_LT_TAGDECL([], [module_expsym_cmds], [2]) 6156_LT_TAGDECL([], [with_gnu_ld], [1], 6157 [Whether we are building with GNU ld or not]) 6158_LT_TAGDECL([], [allow_undefined_flag], [1], 6159 [Flag that allows shared libraries with undefined symbols to be built]) 6160_LT_TAGDECL([], [no_undefined_flag], [1], 6161 [Flag that enforces no undefined symbols]) 6162_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1], 6163 [Flag to hardcode $libdir into a binary during linking. 6164 This must work even if $libdir does not exist]) 6165_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1], 6166 [[If ld is used when linking, flag to hardcode $libdir into a binary 6167 during linking. This must work even if $libdir does not exist]]) 6168_LT_TAGDECL([], [hardcode_libdir_separator], [1], 6169 [Whether we need a single "-rpath" flag with a separated argument]) 6170_LT_TAGDECL([], [hardcode_direct], [0], 6171 [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes 6172 DIR into the resulting binary]) 6173_LT_TAGDECL([], [hardcode_direct_absolute], [0], 6174 [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes 6175 DIR into the resulting binary and the resulting library dependency is 6176 "absolute", i.e impossible to change by setting ${shlibpath_var} if the 6177 library is relocated]) 6178_LT_TAGDECL([], [hardcode_minus_L], [0], 6179 [Set to "yes" if using the -LDIR flag during linking hardcodes DIR 6180 into the resulting binary]) 6181_LT_TAGDECL([], [hardcode_shlibpath_var], [0], 6182 [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 6183 into the resulting binary]) 6184_LT_TAGDECL([], [hardcode_automatic], [0], 6185 [Set to "yes" if building a shared library automatically hardcodes DIR 6186 into the library and all subsequent libraries and executables linked 6187 against it]) 6188_LT_TAGDECL([], [inherit_rpath], [0], 6189 [Set to yes if linker adds runtime paths of dependent libraries 6190 to runtime path list]) 6191_LT_TAGDECL([], [link_all_deplibs], [0], 6192 [Whether libtool must link a program against all its dependency libraries]) 6193_LT_TAGDECL([], [fix_srcfile_path], [1], 6194 [Fix the shell variable $srcfile for the compiler]) 6195_LT_TAGDECL([], [always_export_symbols], [0], 6196 [Set to "yes" if exported symbols are required]) 6197_LT_TAGDECL([], [export_symbols_cmds], [2], 6198 [The commands to list exported symbols]) 6199_LT_TAGDECL([], [exclude_expsyms], [1], 6200 [Symbols that should not be listed in the preloaded symbols]) 6201_LT_TAGDECL([], [include_expsyms], [1], 6202 [Symbols that must always be exported]) 6203_LT_TAGDECL([], [prelink_cmds], [2], 6204 [Commands necessary for linking programs (against libraries) with templates]) 6205_LT_TAGDECL([], [file_list_spec], [1], 6206 [Specify filename containing input files]) 6207dnl FIXME: Not yet implemented 6208dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1], 6209dnl [Compiler flag to generate thread safe objects]) 6210])# _LT_LINKER_SHLIBS 6211 6212 6213# _LT_LANG_C_CONFIG([TAG]) 6214# ------------------------ 6215# Ensure that the configuration variables for a C compiler are suitably 6216# defined. These variables are subsequently used by _LT_CONFIG to write 6217# the compiler configuration to `libtool'. 6218m4_defun([_LT_LANG_C_CONFIG], 6219[m4_require([_LT_DECL_EGREP])dnl 6220lt_save_CC="$CC" 6221AC_LANG_PUSH(C) 6222 6223# Source file extension for C test sources. 6224ac_ext=c 6225 6226# Object file extension for compiled C test sources. 6227objext=o 6228_LT_TAGVAR(objext, $1)=$objext 6229 6230# Code to be used in simple compile tests 6231lt_simple_compile_test_code="int some_variable = 0;" 6232 6233# Code to be used in simple link tests 6234lt_simple_link_test_code='int main(){return(0);}' 6235 6236_LT_TAG_COMPILER 6237# Save the default compiler, since it gets overwritten when the other 6238# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 6239compiler_DEFAULT=$CC 6240 6241# save warnings/boilerplate of simple test code 6242_LT_COMPILER_BOILERPLATE 6243_LT_LINKER_BOILERPLATE 6244 6245if test -n "$compiler"; then 6246 _LT_COMPILER_NO_RTTI($1) 6247 _LT_COMPILER_PIC($1) 6248 _LT_COMPILER_C_O($1) 6249 _LT_COMPILER_FILE_LOCKS($1) 6250 _LT_LINKER_SHLIBS($1) 6251 _LT_SYS_DYNAMIC_LINKER($1) 6252 _LT_LINKER_HARDCODE_LIBPATH($1) 6253 LT_SYS_DLOPEN_SELF 6254 _LT_CMD_STRIPLIB 6255 6256 # Report which library types will actually be built 6257 AC_MSG_CHECKING([if libtool supports shared libraries]) 6258 AC_MSG_RESULT([$can_build_shared]) 6259 6260 AC_MSG_CHECKING([whether to build shared libraries]) 6261 test "$can_build_shared" = "no" && enable_shared=no 6262 6263 # On AIX, shared libraries and static libraries use the same namespace, and 6264 # are all built from PIC. 6265 case $host_os in 6266 aix3*) 6267 test "$enable_shared" = yes && enable_static=no 6268 if test -n "$RANLIB"; then 6269 archive_cmds="$archive_cmds~\$RANLIB \$lib" 6270 postinstall_cmds='$RANLIB $lib' 6271 fi 6272 ;; 6273 6274 aix[[4-9]]*) 6275 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 6276 test "$enable_shared" = yes && enable_static=no 6277 fi 6278 ;; 6279 esac 6280 AC_MSG_RESULT([$enable_shared]) 6281 6282 AC_MSG_CHECKING([whether to build static libraries]) 6283 # Make sure either enable_shared or enable_static is yes. 6284 test "$enable_shared" = yes || enable_static=yes 6285 AC_MSG_RESULT([$enable_static]) 6286 6287 _LT_CONFIG($1) 6288fi 6289AC_LANG_POP 6290CC="$lt_save_CC" 6291])# _LT_LANG_C_CONFIG 6292 6293 6294# _LT_PROG_CXX 6295# ------------ 6296# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++ 6297# compiler, we have our own version here. 6298m4_defun([_LT_PROG_CXX], 6299[ 6300pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes]) 6301AC_PROG_CXX 6302if test -n "$CXX" && ( test "X$CXX" != "Xno" && 6303 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 6304 (test "X$CXX" != "Xg++"))) ; then 6305 AC_PROG_CXXCPP 6306else 6307 _lt_caught_CXX_error=yes 6308fi 6309popdef([AC_MSG_ERROR]) 6310])# _LT_PROG_CXX 6311 6312dnl aclocal-1.4 backwards compatibility: 6313dnl AC_DEFUN([_LT_PROG_CXX], []) 6314 6315 6316# _LT_LANG_CXX_CONFIG([TAG]) 6317# -------------------------- 6318# Ensure that the configuration variables for a C++ compiler are suitably 6319# defined. These variables are subsequently used by _LT_CONFIG to write 6320# the compiler configuration to `libtool'. 6321m4_defun([_LT_LANG_CXX_CONFIG], 6322[AC_REQUIRE([_LT_PROG_CXX])dnl 6323m4_require([_LT_FILEUTILS_DEFAULTS])dnl 6324m4_require([_LT_DECL_EGREP])dnl 6325 6326AC_LANG_PUSH(C++) 6327_LT_TAGVAR(archive_cmds_need_lc, $1)=no 6328_LT_TAGVAR(allow_undefined_flag, $1)= 6329_LT_TAGVAR(always_export_symbols, $1)=no 6330_LT_TAGVAR(archive_expsym_cmds, $1)= 6331_LT_TAGVAR(compiler_needs_object, $1)=no 6332_LT_TAGVAR(export_dynamic_flag_spec, $1)= 6333_LT_TAGVAR(hardcode_direct, $1)=no 6334_LT_TAGVAR(hardcode_direct_absolute, $1)=no 6335_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 6336_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= 6337_LT_TAGVAR(hardcode_libdir_separator, $1)= 6338_LT_TAGVAR(hardcode_minus_L, $1)=no 6339_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 6340_LT_TAGVAR(hardcode_automatic, $1)=no 6341_LT_TAGVAR(inherit_rpath, $1)=no 6342_LT_TAGVAR(module_cmds, $1)= 6343_LT_TAGVAR(module_expsym_cmds, $1)= 6344_LT_TAGVAR(link_all_deplibs, $1)=unknown 6345_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 6346_LT_TAGVAR(no_undefined_flag, $1)= 6347_LT_TAGVAR(whole_archive_flag_spec, $1)= 6348_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no 6349 6350# Source file extension for C++ test sources. 6351ac_ext=cpp 6352 6353# Object file extension for compiled C++ test sources. 6354objext=o 6355_LT_TAGVAR(objext, $1)=$objext 6356 6357# No sense in running all these tests if we already determined that 6358# the CXX compiler isn't working. Some variables (like enable_shared) 6359# are currently assumed to apply to all compilers on this platform, 6360# and will be corrupted by setting them based on a non-working compiler. 6361if test "$_lt_caught_CXX_error" != yes; then 6362 # Code to be used in simple compile tests 6363 lt_simple_compile_test_code="int some_variable = 0;" 6364 6365 # Code to be used in simple link tests 6366 lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }' 6367 6368 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 6369 _LT_TAG_COMPILER 6370 6371 # save warnings/boilerplate of simple test code 6372 _LT_COMPILER_BOILERPLATE 6373 _LT_LINKER_BOILERPLATE 6374 6375 # Allow CC to be a program name with arguments. 6376 lt_save_CC=$CC 6377 lt_save_LD=$LD 6378 lt_save_GCC=$GCC 6379 GCC=$GXX 6380 lt_save_with_gnu_ld=$with_gnu_ld 6381 lt_save_path_LD=$lt_cv_path_LD 6382 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 6383 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 6384 else 6385 $as_unset lt_cv_prog_gnu_ld 6386 fi 6387 if test -n "${lt_cv_path_LDCXX+set}"; then 6388 lt_cv_path_LD=$lt_cv_path_LDCXX 6389 else 6390 $as_unset lt_cv_path_LD 6391 fi 6392 test -z "${LDCXX+set}" || LD=$LDCXX 6393 CC=${CXX-"c++"} 6394 compiler=$CC 6395 _LT_TAGVAR(compiler, $1)=$CC 6396 _LT_CC_BASENAME([$compiler]) 6397 6398 if test -n "$compiler"; then 6399 # We don't want -fno-exception when compiling C++ code, so set the 6400 # no_builtin_flag separately 6401 if test "$GXX" = yes; then 6402 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' 6403 else 6404 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= 6405 fi 6406 6407 if test "$GXX" = yes; then 6408 # Set up default GNU C++ configuration 6409 6410 LT_PATH_LD 6411 6412 # Check if GNU C++ uses GNU ld as the underlying linker, since the 6413 # archiving commands below assume that GNU ld is being used. 6414 if test "$with_gnu_ld" = yes; then 6415 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 6416 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 6417 6418 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 6419 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 6420 6421 # If archive_cmds runs LD, not CC, wlarc should be empty 6422 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 6423 # investigate it a little bit more. (MM) 6424 wlarc='${wl}' 6425 6426 # ancient GNU ld didn't support --whole-archive et. al. 6427 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 6428 $GREP 'no-whole-archive' > /dev/null; then 6429 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 6430 else 6431 _LT_TAGVAR(whole_archive_flag_spec, $1)= 6432 fi 6433 else 6434 with_gnu_ld=no 6435 wlarc= 6436 6437 # A generic and very simple default shared library creation 6438 # command for GNU C++ for the case where it uses the native 6439 # linker, instead of GNU ld. If possible, this setting should 6440 # overridden to take advantage of the native linker features on 6441 # the platform it is being used on. 6442 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 6443 fi 6444 6445 # Commands to make compiler produce verbose output that lists 6446 # what "hidden" libraries, object files and flags are used when 6447 # linking a shared library. 6448 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' 6449 6450 else 6451 GXX=no 6452 with_gnu_ld=no 6453 wlarc= 6454 fi 6455 6456 # PORTME: fill in a description of your system's C++ link characteristics 6457 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) 6458 _LT_TAGVAR(ld_shlibs, $1)=yes 6459 case $host_os in 6460 aix3*) 6461 # FIXME: insert proper C++ library support 6462 _LT_TAGVAR(ld_shlibs, $1)=no 6463 ;; 6464 aix[[4-9]]*) 6465 if test "$host_cpu" = ia64; then 6466 # On IA64, the linker does run time linking by default, so we don't 6467 # have to do anything special. 6468 aix_use_runtimelinking=no 6469 exp_sym_flag='-Bexport' 6470 no_entry_flag="" 6471 else 6472 aix_use_runtimelinking=no 6473 6474 # Test if we are trying to use run time linking or normal 6475 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 6476 # need to do runtime linking. 6477 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) 6478 for ld_flag in $LDFLAGS; do 6479 case $ld_flag in 6480 *-brtl*) 6481 aix_use_runtimelinking=yes 6482 break 6483 ;; 6484 esac 6485 done 6486 ;; 6487 esac 6488 6489 exp_sym_flag='-bexport' 6490 no_entry_flag='-bnoentry' 6491 fi 6492 6493 # When large executables or shared objects are built, AIX ld can 6494 # have problems creating the table of contents. If linking a library 6495 # or program results in "error TOC overflow" add -mminimal-toc to 6496 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 6497 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 6498 6499 _LT_TAGVAR(archive_cmds, $1)='' 6500 _LT_TAGVAR(hardcode_direct, $1)=yes 6501 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 6502 _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 6503 _LT_TAGVAR(link_all_deplibs, $1)=yes 6504 _LT_TAGVAR(file_list_spec, $1)='${wl}-f,' 6505 6506 if test "$GXX" = yes; then 6507 case $host_os in aix4.[[012]]|aix4.[[012]].*) 6508 # We only want to do this on AIX 4.2 and lower, the check 6509 # below for broken collect2 doesn't work under 4.3+ 6510 collect2name=`${CC} -print-prog-name=collect2` 6511 if test -f "$collect2name" && 6512 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 6513 then 6514 # We have reworked collect2 6515 : 6516 else 6517 # We have old collect2 6518 _LT_TAGVAR(hardcode_direct, $1)=unsupported 6519 # It fails to find uninstalled libraries when the uninstalled 6520 # path is not listed in the libpath. Setting hardcode_minus_L 6521 # to unsupported forces relinking 6522 _LT_TAGVAR(hardcode_minus_L, $1)=yes 6523 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 6524 _LT_TAGVAR(hardcode_libdir_separator, $1)= 6525 fi 6526 esac 6527 shared_flag='-shared' 6528 if test "$aix_use_runtimelinking" = yes; then 6529 shared_flag="$shared_flag "'${wl}-G' 6530 fi 6531 else 6532 # not using gcc 6533 if test "$host_cpu" = ia64; then 6534 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 6535 # chokes on -Wl,-G. The following line is correct: 6536 shared_flag='-G' 6537 else 6538 if test "$aix_use_runtimelinking" = yes; then 6539 shared_flag='${wl}-G' 6540 else 6541 shared_flag='${wl}-bM:SRE' 6542 fi 6543 fi 6544 fi 6545 6546 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall' 6547 # It seems that -bexpall does not export symbols beginning with 6548 # underscore (_), so it is better to generate a list of symbols to 6549 # export. 6550 _LT_TAGVAR(always_export_symbols, $1)=yes 6551 if test "$aix_use_runtimelinking" = yes; then 6552 # Warning - without using the other runtime loading flags (-brtl), 6553 # -berok will link without error, but may produce a broken library. 6554 _LT_TAGVAR(allow_undefined_flag, $1)='-berok' 6555 # Determine the default libpath from the value encoded in an empty 6556 # executable. 6557 _LT_SYS_MODULE_PATH_AIX 6558 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 6559 6560 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 6561 else 6562 if test "$host_cpu" = ia64; then 6563 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' 6564 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" 6565 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 6566 else 6567 # Determine the default libpath from the value encoded in an 6568 # empty executable. 6569 _LT_SYS_MODULE_PATH_AIX 6570 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 6571 # Warning - without using the other run time loading flags, 6572 # -berok will link without error, but may produce a broken library. 6573 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' 6574 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' 6575 # Exported symbols can be pulled into shared objects from archives 6576 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' 6577 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes 6578 # This is similar to how AIX traditionally builds its shared 6579 # libraries. 6580 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 6581 fi 6582 fi 6583 ;; 6584 6585 beos*) 6586 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 6587 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 6588 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 6589 # support --undefined. This deserves some investigation. FIXME 6590 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6591 else 6592 _LT_TAGVAR(ld_shlibs, $1)=no 6593 fi 6594 ;; 6595 6596 chorus*) 6597 case $cc_basename in 6598 *) 6599 # FIXME: insert proper C++ library support 6600 _LT_TAGVAR(ld_shlibs, $1)=no 6601 ;; 6602 esac 6603 ;; 6604 6605 cygwin* | mingw* | pw32* | cegcc*) 6606 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, 6607 # as there is no search path for DLLs. 6608 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 6609 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 6610 _LT_TAGVAR(always_export_symbols, $1)=no 6611 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 6612 6613 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 6614 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 6615 # If the export-symbols file already is a .def file (1st line 6616 # is EXPORTS), use it as is; otherwise, prepend... 6617 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 6618 cp $export_symbols $output_objdir/$soname.def; 6619 else 6620 echo EXPORTS > $output_objdir/$soname.def; 6621 cat $export_symbols >> $output_objdir/$soname.def; 6622 fi~ 6623 $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' 6624 else 6625 _LT_TAGVAR(ld_shlibs, $1)=no 6626 fi 6627 ;; 6628 darwin* | rhapsody*) 6629 _LT_DARWIN_LINKER_FEATURES($1) 6630 ;; 6631 6632 dgux*) 6633 case $cc_basename in 6634 ec++*) 6635 # FIXME: insert proper C++ library support 6636 _LT_TAGVAR(ld_shlibs, $1)=no 6637 ;; 6638 ghcx*) 6639 # Green Hills C++ Compiler 6640 # FIXME: insert proper C++ library support 6641 _LT_TAGVAR(ld_shlibs, $1)=no 6642 ;; 6643 *) 6644 # FIXME: insert proper C++ library support 6645 _LT_TAGVAR(ld_shlibs, $1)=no 6646 ;; 6647 esac 6648 ;; 6649 6650 freebsd[[12]]*) 6651 # C++ shared libraries reported to be fairly broken before 6652 # switch to ELF 6653 _LT_TAGVAR(ld_shlibs, $1)=no 6654 ;; 6655 6656 freebsd-elf*) 6657 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 6658 ;; 6659 6660 freebsd* | dragonfly*) 6661 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 6662 # conventions 6663 _LT_TAGVAR(ld_shlibs, $1)=yes 6664 ;; 6665 6666 gnu*) 6667 ;; 6668 6669 hpux9*) 6670 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 6671 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 6672 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 6673 _LT_TAGVAR(hardcode_direct, $1)=yes 6674 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, 6675 # but as the default 6676 # location of the library. 6677 6678 case $cc_basename in 6679 CC*) 6680 # FIXME: insert proper C++ library support 6681 _LT_TAGVAR(ld_shlibs, $1)=no 6682 ;; 6683 aCC*) 6684 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 6685 # Commands to make compiler produce verbose output that lists 6686 # what "hidden" libraries, object files and flags are used when 6687 # linking a shared library. 6688 # 6689 # There doesn't appear to be a way to prevent this compiler from 6690 # explicitly linking system object files so we need to strip them 6691 # from the output so that they don't get included in the library 6692 # dependencies. 6693 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' 6694 ;; 6695 *) 6696 if test "$GXX" = yes; then 6697 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 6698 else 6699 # FIXME: insert proper C++ library support 6700 _LT_TAGVAR(ld_shlibs, $1)=no 6701 fi 6702 ;; 6703 esac 6704 ;; 6705 6706 hpux10*|hpux11*) 6707 if test $with_gnu_ld = no; then 6708 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 6709 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 6710 6711 case $host_cpu in 6712 hppa*64*|ia64*) 6713 ;; 6714 *) 6715 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 6716 ;; 6717 esac 6718 fi 6719 case $host_cpu in 6720 hppa*64*|ia64*) 6721 _LT_TAGVAR(hardcode_direct, $1)=no 6722 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6723 ;; 6724 *) 6725 _LT_TAGVAR(hardcode_direct, $1)=yes 6726 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 6727 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, 6728 # but as the default 6729 # location of the library. 6730 ;; 6731 esac 6732 6733 case $cc_basename in 6734 CC*) 6735 # FIXME: insert proper C++ library support 6736 _LT_TAGVAR(ld_shlibs, $1)=no 6737 ;; 6738 aCC*) 6739 case $host_cpu in 6740 hppa*64*) 6741 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 6742 ;; 6743 ia64*) 6744 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 6745 ;; 6746 *) 6747 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 6748 ;; 6749 esac 6750 # Commands to make compiler produce verbose output that lists 6751 # what "hidden" libraries, object files and flags are used when 6752 # linking a shared library. 6753 # 6754 # There doesn't appear to be a way to prevent this compiler from 6755 # explicitly linking system object files so we need to strip them 6756 # from the output so that they don't get included in the library 6757 # dependencies. 6758 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' 6759 ;; 6760 *) 6761 if test "$GXX" = yes; then 6762 if test $with_gnu_ld = no; then 6763 case $host_cpu in 6764 hppa*64*) 6765 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 6766 ;; 6767 ia64*) 6768 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 6769 ;; 6770 *) 6771 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 6772 ;; 6773 esac 6774 fi 6775 else 6776 # FIXME: insert proper C++ library support 6777 _LT_TAGVAR(ld_shlibs, $1)=no 6778 fi 6779 ;; 6780 esac 6781 ;; 6782 6783 interix[[3-9]]*) 6784 _LT_TAGVAR(hardcode_direct, $1)=no 6785 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6786 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 6787 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 6788 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 6789 # Instead, shared libraries are loaded at an image base (0x10000000 by 6790 # default) and relocated if they conflict, which is a slow very memory 6791 # consuming and fragmenting process. To avoid this, we pick a random, 6792 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 6793 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 6794 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 6795 _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 6796 ;; 6797 irix5* | irix6*) 6798 case $cc_basename in 6799 CC*) 6800 # SGI C++ 6801 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 6802 6803 # Archives containing C++ object files must be created using 6804 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 6805 # necessary to make sure instantiated templates are included 6806 # in the archive. 6807 _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' 6808 ;; 6809 *) 6810 if test "$GXX" = yes; then 6811 if test "$with_gnu_ld" = no; then 6812 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 6813 else 6814 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib' 6815 fi 6816 fi 6817 _LT_TAGVAR(link_all_deplibs, $1)=yes 6818 ;; 6819 esac 6820 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 6821 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 6822 _LT_TAGVAR(inherit_rpath, $1)=yes 6823 ;; 6824 6825 linux* | k*bsd*-gnu) 6826 case $cc_basename in 6827 KCC*) 6828 # Kuck and Associates, Inc. (KAI) C++ Compiler 6829 6830 # KCC will only create a shared library if the output file 6831 # ends with ".so" (or ".sl" for HP-UX), so rename the library 6832 # to its proper name (with version) after linking. 6833 _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 6834 _LT_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' 6835 # Commands to make compiler produce verbose output that lists 6836 # what "hidden" libraries, object files and flags are used when 6837 # linking a shared library. 6838 # 6839 # There doesn't appear to be a way to prevent this compiler from 6840 # explicitly linking system object files so we need to strip them 6841 # from the output so that they don't get included in the library 6842 # dependencies. 6843 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' 6844 6845 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 6846 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 6847 6848 # Archives containing C++ object files must be created using 6849 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 6850 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' 6851 ;; 6852 icpc* | ecpc* ) 6853 # Intel C++ 6854 with_gnu_ld=yes 6855 # version 8.0 and above of icpc choke on multiply defined symbols 6856 # if we add $predep_objects and $postdep_objects, however 7.1 and 6857 # earlier do not add the objects themselves. 6858 case `$CC -V 2>&1` in 6859 *"Version 7."*) 6860 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 6861 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 6862 ;; 6863 *) # Version 8.0 or newer 6864 tmp_idyn= 6865 case $host_cpu in 6866 ia64*) tmp_idyn=' -i_dynamic';; 6867 esac 6868 _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6869 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 6870 ;; 6871 esac 6872 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 6873 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 6874 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 6875 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 6876 ;; 6877 pgCC* | pgcpp*) 6878 # Portland Group C++ compiler 6879 case `$CC -V` in 6880 *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*) 6881 _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~ 6882 rm -rf $tpldir~ 6883 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 6884 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"' 6885 _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~ 6886 rm -rf $tpldir~ 6887 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 6888 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~ 6889 $RANLIB $oldlib' 6890 _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~ 6891 rm -rf $tpldir~ 6892 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 6893 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 6894 _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~ 6895 rm -rf $tpldir~ 6896 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 6897 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' 6898 ;; 6899 *) # Version 6 will use weak symbols 6900 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 6901 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' 6902 ;; 6903 esac 6904 6905 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' 6906 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 6907 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 6908 ;; 6909 cxx*) 6910 # Compaq C++ 6911 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 6912 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' 6913 6914 runpath_var=LD_RUN_PATH 6915 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 6916 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 6917 6918 # Commands to make compiler produce verbose output that lists 6919 # what "hidden" libraries, object files and flags are used when 6920 # linking a shared library. 6921 # 6922 # There doesn't appear to be a way to prevent this compiler from 6923 # explicitly linking system object files so we need to strip them 6924 # from the output so that they don't get included in the library 6925 # dependencies. 6926 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' 6927 ;; 6928 xl*) 6929 # IBM XL 8.0 on PPC, with GNU ld 6930 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 6931 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 6932 _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6933 if test "x$supports_anon_versioning" = xyes; then 6934 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ 6935 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 6936 echo "local: *; };" >> $output_objdir/$libname.ver~ 6937 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 6938 fi 6939 ;; 6940 *) 6941 case `$CC -V 2>&1 | sed 5q` in 6942 *Sun\ C*) 6943 # Sun C++ 5.9 6944 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' 6945 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 6946 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' 6947 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 6948 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 6949 _LT_TAGVAR(compiler_needs_object, $1)=yes 6950 6951 # Not sure whether something based on 6952 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 6953 # would be better. 6954 output_verbose_link_cmd='echo' 6955 6956 # Archives containing C++ object files must be created using 6957 # "CC -xar", where "CC" is the Sun C++ compiler. This is 6958 # necessary to make sure instantiated templates are included 6959 # in the archive. 6960 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' 6961 ;; 6962 esac 6963 ;; 6964 esac 6965 ;; 6966 6967 lynxos*) 6968 # FIXME: insert proper C++ library support 6969 _LT_TAGVAR(ld_shlibs, $1)=no 6970 ;; 6971 6972 m88k*) 6973 # FIXME: insert proper C++ library support 6974 _LT_TAGVAR(ld_shlibs, $1)=no 6975 ;; 6976 6977 mvs*) 6978 case $cc_basename in 6979 cxx*) 6980 # FIXME: insert proper C++ library support 6981 _LT_TAGVAR(ld_shlibs, $1)=no 6982 ;; 6983 *) 6984 # FIXME: insert proper C++ library support 6985 _LT_TAGVAR(ld_shlibs, $1)=no 6986 ;; 6987 esac 6988 ;; 6989 6990 netbsd*) 6991 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 6992 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 6993 wlarc= 6994 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 6995 _LT_TAGVAR(hardcode_direct, $1)=yes 6996 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6997 fi 6998 # Workaround some broken pre-1.5 toolchains 6999 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 7000 ;; 7001 7002 *nto* | *qnx*) 7003 _LT_TAGVAR(ld_shlibs, $1)=yes 7004 ;; 7005 7006 openbsd2*) 7007 # C++ shared libraries are fairly broken 7008 _LT_TAGVAR(ld_shlibs, $1)=no 7009 ;; 7010 7011 openbsd*) 7012 if test -f /usr/libexec/ld.so; then 7013 _LT_TAGVAR(hardcode_direct, $1)=yes 7014 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7015 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 7016 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 7017 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 7018 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 7019 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 7020 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 7021 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 7022 fi 7023 output_verbose_link_cmd=echo 7024 else 7025 _LT_TAGVAR(ld_shlibs, $1)=no 7026 fi 7027 ;; 7028 7029 osf3* | osf4* | osf5*) 7030 case $cc_basename in 7031 KCC*) 7032 # Kuck and Associates, Inc. (KAI) C++ Compiler 7033 7034 # KCC will only create a shared library if the output file 7035 # ends with ".so" (or ".sl" for HP-UX), so rename the library 7036 # to its proper name (with version) after linking. 7037 _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 7038 7039 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 7040 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 7041 7042 # Archives containing C++ object files must be created using 7043 # the KAI C++ compiler. 7044 case $host in 7045 osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;; 7046 *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;; 7047 esac 7048 ;; 7049 RCC*) 7050 # Rational C++ 2.4.1 7051 # FIXME: insert proper C++ library support 7052 _LT_TAGVAR(ld_shlibs, $1)=no 7053 ;; 7054 cxx*) 7055 case $host in 7056 osf3*) 7057 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 7058 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 7059 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 7060 ;; 7061 *) 7062 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 7063 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 7064 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 7065 echo "-hidden">> $lib.exp~ 7066 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~ 7067 $RM $lib.exp' 7068 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 7069 ;; 7070 esac 7071 7072 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 7073 7074 # Commands to make compiler produce verbose output that lists 7075 # what "hidden" libraries, object files and flags are used when 7076 # linking a shared library. 7077 # 7078 # There doesn't appear to be a way to prevent this compiler from 7079 # explicitly linking system object files so we need to strip them 7080 # from the output so that they don't get included in the library 7081 # dependencies. 7082 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' 7083 ;; 7084 *) 7085 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 7086 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 7087 case $host in 7088 osf3*) 7089 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 7090 ;; 7091 *) 7092 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 7093 ;; 7094 esac 7095 7096 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 7097 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 7098 7099 # Commands to make compiler produce verbose output that lists 7100 # what "hidden" libraries, object files and flags are used when 7101 # linking a shared library. 7102 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' 7103 7104 else 7105 # FIXME: insert proper C++ library support 7106 _LT_TAGVAR(ld_shlibs, $1)=no 7107 fi 7108 ;; 7109 esac 7110 ;; 7111 7112 psos*) 7113 # FIXME: insert proper C++ library support 7114 _LT_TAGVAR(ld_shlibs, $1)=no 7115 ;; 7116 7117 sunos4*) 7118 case $cc_basename in 7119 CC*) 7120 # Sun C++ 4.x 7121 # FIXME: insert proper C++ library support 7122 _LT_TAGVAR(ld_shlibs, $1)=no 7123 ;; 7124 lcc*) 7125 # Lucid 7126 # FIXME: insert proper C++ library support 7127 _LT_TAGVAR(ld_shlibs, $1)=no 7128 ;; 7129 *) 7130 # FIXME: insert proper C++ library support 7131 _LT_TAGVAR(ld_shlibs, $1)=no 7132 ;; 7133 esac 7134 ;; 7135 7136 solaris*) 7137 case $cc_basename in 7138 CC*) 7139 # Sun C++ 4.2, 5.x and Centerline C++ 7140 _LT_TAGVAR(archive_cmds_need_lc,$1)=yes 7141 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' 7142 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 7143 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 7144 $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' 7145 7146 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 7147 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7148 case $host_os in 7149 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 7150 *) 7151 # The compiler driver will combine and reorder linker options, 7152 # but understands `-z linker_flag'. 7153 # Supported since Solaris 2.6 (maybe 2.5.1?) 7154 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' 7155 ;; 7156 esac 7157 _LT_TAGVAR(link_all_deplibs, $1)=yes 7158 7159 output_verbose_link_cmd='echo' 7160 7161 # Archives containing C++ object files must be created using 7162 # "CC -xar", where "CC" is the Sun C++ compiler. This is 7163 # necessary to make sure instantiated templates are included 7164 # in the archive. 7165 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' 7166 ;; 7167 gcx*) 7168 # Green Hills C++ Compiler 7169 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 7170 7171 # The C++ compiler must be used to create the archive. 7172 _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 7173 ;; 7174 *) 7175 # GNU C++ compiler with Solaris linker 7176 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 7177 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' 7178 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 7179 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 7180 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 7181 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 7182 7183 # Commands to make compiler produce verbose output that lists 7184 # what "hidden" libraries, object files and flags are used when 7185 # linking a shared library. 7186 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' 7187 else 7188 # g++ 2.7 appears to require `-G' NOT `-shared' on this 7189 # platform. 7190 _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 7191 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 7192 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 7193 7194 # Commands to make compiler produce verbose output that lists 7195 # what "hidden" libraries, object files and flags are used when 7196 # linking a shared library. 7197 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' 7198 fi 7199 7200 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' 7201 case $host_os in 7202 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 7203 *) 7204 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 7205 ;; 7206 esac 7207 fi 7208 ;; 7209 esac 7210 ;; 7211 7212 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) 7213 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 7214 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 7215 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7216 runpath_var='LD_RUN_PATH' 7217 7218 case $cc_basename in 7219 CC*) 7220 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7221 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7222 ;; 7223 *) 7224 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7225 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7226 ;; 7227 esac 7228 ;; 7229 7230 sysv5* | sco3.2v5* | sco5v6*) 7231 # Note: We can NOT use -z defs as we might desire, because we do not 7232 # link with -lc, and that would cause any symbols used from libc to 7233 # always be unresolved, which means just about no library would 7234 # ever link correctly. If we're not using GNU ld we use -z text 7235 # though, which does catch some bad symbols but isn't as heavy-handed 7236 # as -z defs. 7237 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 7238 _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' 7239 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 7240 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7241 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir' 7242 _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 7243 _LT_TAGVAR(link_all_deplibs, $1)=yes 7244 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' 7245 runpath_var='LD_RUN_PATH' 7246 7247 case $cc_basename in 7248 CC*) 7249 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7250 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7251 ;; 7252 *) 7253 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7254 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7255 ;; 7256 esac 7257 ;; 7258 7259 tandem*) 7260 case $cc_basename in 7261 NCC*) 7262 # NonStop-UX NCC 3.20 7263 # FIXME: insert proper C++ library support 7264 _LT_TAGVAR(ld_shlibs, $1)=no 7265 ;; 7266 *) 7267 # FIXME: insert proper C++ library support 7268 _LT_TAGVAR(ld_shlibs, $1)=no 7269 ;; 7270 esac 7271 ;; 7272 7273 vxworks*) 7274 # FIXME: insert proper C++ library support 7275 _LT_TAGVAR(ld_shlibs, $1)=no 7276 ;; 7277 7278 *) 7279 # FIXME: insert proper C++ library support 7280 _LT_TAGVAR(ld_shlibs, $1)=no 7281 ;; 7282 esac 7283 7284 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) 7285 test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no 7286 7287 _LT_TAGVAR(GCC, $1)="$GXX" 7288 _LT_TAGVAR(LD, $1)="$LD" 7289 7290 ## CAVEAT EMPTOR: 7291 ## There is no encapsulation within the following macros, do not change 7292 ## the running order or otherwise move them around unless you know exactly 7293 ## what you are doing... 7294 _LT_SYS_HIDDEN_LIBDEPS($1) 7295 _LT_COMPILER_PIC($1) 7296 _LT_COMPILER_C_O($1) 7297 _LT_COMPILER_FILE_LOCKS($1) 7298 _LT_LINKER_SHLIBS($1) 7299 _LT_SYS_DYNAMIC_LINKER($1) 7300 _LT_LINKER_HARDCODE_LIBPATH($1) 7301 7302 _LT_CONFIG($1) 7303 fi # test -n "$compiler" 7304 7305 CC=$lt_save_CC 7306 LDCXX=$LD 7307 LD=$lt_save_LD 7308 GCC=$lt_save_GCC 7309 with_gnu_ld=$lt_save_with_gnu_ld 7310 lt_cv_path_LDCXX=$lt_cv_path_LD 7311 lt_cv_path_LD=$lt_save_path_LD 7312 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 7313 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 7314fi # test "$_lt_caught_CXX_error" != yes 7315 7316AC_LANG_POP 7317])# _LT_LANG_CXX_CONFIG 7318 7319 7320# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME]) 7321# --------------------------------- 7322# Figure out "hidden" library dependencies from verbose 7323# compiler output when linking a shared library. 7324# Parse the compiler output and extract the necessary 7325# objects, libraries and library flags. 7326m4_defun([_LT_SYS_HIDDEN_LIBDEPS], 7327[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 7328# Dependencies to place before and after the object being linked: 7329_LT_TAGVAR(predep_objects, $1)= 7330_LT_TAGVAR(postdep_objects, $1)= 7331_LT_TAGVAR(predeps, $1)= 7332_LT_TAGVAR(postdeps, $1)= 7333_LT_TAGVAR(compiler_lib_search_path, $1)= 7334 7335dnl we can't use the lt_simple_compile_test_code here, 7336dnl because it contains code intended for an executable, 7337dnl not a library. It's possible we should let each 7338dnl tag define a new lt_????_link_test_code variable, 7339dnl but it's only used here... 7340m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF 7341int a; 7342void foo (void) { a = 0; } 7343_LT_EOF 7344], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF 7345class Foo 7346{ 7347public: 7348 Foo (void) { a = 0; } 7349private: 7350 int a; 7351}; 7352_LT_EOF 7353], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF 7354 subroutine foo 7355 implicit none 7356 integer*4 a 7357 a=0 7358 return 7359 end 7360_LT_EOF 7361], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF 7362 subroutine foo 7363 implicit none 7364 integer a 7365 a=0 7366 return 7367 end 7368_LT_EOF 7369], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF 7370public class foo { 7371 private int a; 7372 public void bar (void) { 7373 a = 0; 7374 } 7375}; 7376_LT_EOF 7377]) 7378dnl Parse the compiler output and extract the necessary 7379dnl objects, libraries and library flags. 7380if AC_TRY_EVAL(ac_compile); then 7381 # Parse the compiler output and extract the necessary 7382 # objects, libraries and library flags. 7383 7384 # Sentinel used to keep track of whether or not we are before 7385 # the conftest object file. 7386 pre_test_object_deps_done=no 7387 7388 for p in `eval "$output_verbose_link_cmd"`; do 7389 case $p in 7390 7391 -L* | -R* | -l*) 7392 # Some compilers place space between "-{L,R}" and the path. 7393 # Remove the space. 7394 if test $p = "-L" || 7395 test $p = "-R"; then 7396 prev=$p 7397 continue 7398 else 7399 prev= 7400 fi 7401 7402 if test "$pre_test_object_deps_done" = no; then 7403 case $p in 7404 -L* | -R*) 7405 # Internal compiler library paths should come after those 7406 # provided the user. The postdeps already come after the 7407 # user supplied libs so there is no need to process them. 7408 if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then 7409 _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}" 7410 else 7411 _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}" 7412 fi 7413 ;; 7414 # The "-l" case would never come before the object being 7415 # linked, so don't bother handling this case. 7416 esac 7417 else 7418 if test -z "$_LT_TAGVAR(postdeps, $1)"; then 7419 _LT_TAGVAR(postdeps, $1)="${prev}${p}" 7420 else 7421 _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}" 7422 fi 7423 fi 7424 ;; 7425 7426 *.$objext) 7427 # This assumes that the test object file only shows up 7428 # once in the compiler output. 7429 if test "$p" = "conftest.$objext"; then 7430 pre_test_object_deps_done=yes 7431 continue 7432 fi 7433 7434 if test "$pre_test_object_deps_done" = no; then 7435 if test -z "$_LT_TAGVAR(predep_objects, $1)"; then 7436 _LT_TAGVAR(predep_objects, $1)="$p" 7437 else 7438 _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p" 7439 fi 7440 else 7441 if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then 7442 _LT_TAGVAR(postdep_objects, $1)="$p" 7443 else 7444 _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p" 7445 fi 7446 fi 7447 ;; 7448 7449 *) ;; # Ignore the rest. 7450 7451 esac 7452 done 7453 7454 # Clean up. 7455 rm -f a.out a.exe 7456else 7457 echo "libtool.m4: error: problem compiling $1 test program" 7458fi 7459 7460$RM -f confest.$objext 7461 7462# PORTME: override above test on systems where it is broken 7463m4_if([$1], [CXX], 7464[case $host_os in 7465interix[[3-9]]*) 7466 # Interix 3.5 installs completely hosed .la files for C++, so rather than 7467 # hack all around it, let's just trust "g++" to DTRT. 7468 _LT_TAGVAR(predep_objects,$1)= 7469 _LT_TAGVAR(postdep_objects,$1)= 7470 _LT_TAGVAR(postdeps,$1)= 7471 ;; 7472 7473linux*) 7474 case `$CC -V 2>&1 | sed 5q` in 7475 *Sun\ C*) 7476 # Sun C++ 5.9 7477 7478 # The more standards-conforming stlport4 library is 7479 # incompatible with the Cstd library. Avoid specifying 7480 # it if it's in CXXFLAGS. Ignore libCrun as 7481 # -library=stlport4 depends on it. 7482 case " $CXX $CXXFLAGS " in 7483 *" -library=stlport4 "*) 7484 solaris_use_stlport4=yes 7485 ;; 7486 esac 7487 7488 if test "$solaris_use_stlport4" != yes; then 7489 _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' 7490 fi 7491 ;; 7492 esac 7493 ;; 7494 7495solaris*) 7496 case $cc_basename in 7497 CC*) 7498 # The more standards-conforming stlport4 library is 7499 # incompatible with the Cstd library. Avoid specifying 7500 # it if it's in CXXFLAGS. Ignore libCrun as 7501 # -library=stlport4 depends on it. 7502 case " $CXX $CXXFLAGS " in 7503 *" -library=stlport4 "*) 7504 solaris_use_stlport4=yes 7505 ;; 7506 esac 7507 7508 # Adding this requires a known-good setup of shared libraries for 7509 # Sun compiler versions before 5.6, else PIC objects from an old 7510 # archive will be linked into the output, leading to subtle bugs. 7511 if test "$solaris_use_stlport4" != yes; then 7512 _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' 7513 fi 7514 ;; 7515 esac 7516 ;; 7517esac 7518]) 7519 7520case " $_LT_TAGVAR(postdeps, $1) " in 7521*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;; 7522esac 7523 _LT_TAGVAR(compiler_lib_search_dirs, $1)= 7524if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then 7525 _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 7526fi 7527_LT_TAGDECL([], [compiler_lib_search_dirs], [1], 7528 [The directories searched by this compiler when creating a shared library]) 7529_LT_TAGDECL([], [predep_objects], [1], 7530 [Dependencies to place before and after the objects being linked to 7531 create a shared library]) 7532_LT_TAGDECL([], [postdep_objects], [1]) 7533_LT_TAGDECL([], [predeps], [1]) 7534_LT_TAGDECL([], [postdeps], [1]) 7535_LT_TAGDECL([], [compiler_lib_search_path], [1], 7536 [The library search path used internally by the compiler when linking 7537 a shared library]) 7538])# _LT_SYS_HIDDEN_LIBDEPS 7539 7540 7541# _LT_PROG_F77 7542# ------------ 7543# Since AC_PROG_F77 is broken, in that it returns the empty string 7544# if there is no fortran compiler, we have our own version here. 7545m4_defun([_LT_PROG_F77], 7546[ 7547pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes]) 7548AC_PROG_F77 7549if test -z "$F77" || test "X$F77" = "Xno"; then 7550 _lt_disable_F77=yes 7551fi 7552popdef([AC_MSG_ERROR]) 7553])# _LT_PROG_F77 7554 7555dnl aclocal-1.4 backwards compatibility: 7556dnl AC_DEFUN([_LT_PROG_F77], []) 7557 7558 7559# _LT_LANG_F77_CONFIG([TAG]) 7560# -------------------------- 7561# Ensure that the configuration variables for a Fortran 77 compiler are 7562# suitably defined. These variables are subsequently used by _LT_CONFIG 7563# to write the compiler configuration to `libtool'. 7564m4_defun([_LT_LANG_F77_CONFIG], 7565[AC_REQUIRE([_LT_PROG_F77])dnl 7566AC_LANG_PUSH(Fortran 77) 7567 7568_LT_TAGVAR(archive_cmds_need_lc, $1)=no 7569_LT_TAGVAR(allow_undefined_flag, $1)= 7570_LT_TAGVAR(always_export_symbols, $1)=no 7571_LT_TAGVAR(archive_expsym_cmds, $1)= 7572_LT_TAGVAR(export_dynamic_flag_spec, $1)= 7573_LT_TAGVAR(hardcode_direct, $1)=no 7574_LT_TAGVAR(hardcode_direct_absolute, $1)=no 7575_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 7576_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= 7577_LT_TAGVAR(hardcode_libdir_separator, $1)= 7578_LT_TAGVAR(hardcode_minus_L, $1)=no 7579_LT_TAGVAR(hardcode_automatic, $1)=no 7580_LT_TAGVAR(inherit_rpath, $1)=no 7581_LT_TAGVAR(module_cmds, $1)= 7582_LT_TAGVAR(module_expsym_cmds, $1)= 7583_LT_TAGVAR(link_all_deplibs, $1)=unknown 7584_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 7585_LT_TAGVAR(no_undefined_flag, $1)= 7586_LT_TAGVAR(whole_archive_flag_spec, $1)= 7587_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no 7588 7589# Source file extension for f77 test sources. 7590ac_ext=f 7591 7592# Object file extension for compiled f77 test sources. 7593objext=o 7594_LT_TAGVAR(objext, $1)=$objext 7595 7596# No sense in running all these tests if we already determined that 7597# the F77 compiler isn't working. Some variables (like enable_shared) 7598# are currently assumed to apply to all compilers on this platform, 7599# and will be corrupted by setting them based on a non-working compiler. 7600if test "$_lt_disable_F77" != yes; then 7601 # Code to be used in simple compile tests 7602 lt_simple_compile_test_code="\ 7603 subroutine t 7604 return 7605 end 7606" 7607 7608 # Code to be used in simple link tests 7609 lt_simple_link_test_code="\ 7610 program t 7611 end 7612" 7613 7614 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 7615 _LT_TAG_COMPILER 7616 7617 # save warnings/boilerplate of simple test code 7618 _LT_COMPILER_BOILERPLATE 7619 _LT_LINKER_BOILERPLATE 7620 7621 # Allow CC to be a program name with arguments. 7622 lt_save_CC="$CC" 7623 lt_save_GCC=$GCC 7624 CC=${F77-"f77"} 7625 compiler=$CC 7626 _LT_TAGVAR(compiler, $1)=$CC 7627 _LT_CC_BASENAME([$compiler]) 7628 GCC=$G77 7629 if test -n "$compiler"; then 7630 AC_MSG_CHECKING([if libtool supports shared libraries]) 7631 AC_MSG_RESULT([$can_build_shared]) 7632 7633 AC_MSG_CHECKING([whether to build shared libraries]) 7634 test "$can_build_shared" = "no" && enable_shared=no 7635 7636 # On AIX, shared libraries and static libraries use the same namespace, and 7637 # are all built from PIC. 7638 case $host_os in 7639 aix3*) 7640 test "$enable_shared" = yes && enable_static=no 7641 if test -n "$RANLIB"; then 7642 archive_cmds="$archive_cmds~\$RANLIB \$lib" 7643 postinstall_cmds='$RANLIB $lib' 7644 fi 7645 ;; 7646 aix[[4-9]]*) 7647 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 7648 test "$enable_shared" = yes && enable_static=no 7649 fi 7650 ;; 7651 esac 7652 AC_MSG_RESULT([$enable_shared]) 7653 7654 AC_MSG_CHECKING([whether to build static libraries]) 7655 # Make sure either enable_shared or enable_static is yes. 7656 test "$enable_shared" = yes || enable_static=yes 7657 AC_MSG_RESULT([$enable_static]) 7658 7659 _LT_TAGVAR(GCC, $1)="$G77" 7660 _LT_TAGVAR(LD, $1)="$LD" 7661 7662 ## CAVEAT EMPTOR: 7663 ## There is no encapsulation within the following macros, do not change 7664 ## the running order or otherwise move them around unless you know exactly 7665 ## what you are doing... 7666 _LT_COMPILER_PIC($1) 7667 _LT_COMPILER_C_O($1) 7668 _LT_COMPILER_FILE_LOCKS($1) 7669 _LT_LINKER_SHLIBS($1) 7670 _LT_SYS_DYNAMIC_LINKER($1) 7671 _LT_LINKER_HARDCODE_LIBPATH($1) 7672 7673 _LT_CONFIG($1) 7674 fi # test -n "$compiler" 7675 7676 GCC=$lt_save_GCC 7677 CC="$lt_save_CC" 7678fi # test "$_lt_disable_F77" != yes 7679 7680AC_LANG_POP 7681])# _LT_LANG_F77_CONFIG 7682 7683 7684# _LT_PROG_FC 7685# ----------- 7686# Since AC_PROG_FC is broken, in that it returns the empty string 7687# if there is no fortran compiler, we have our own version here. 7688m4_defun([_LT_PROG_FC], 7689[ 7690pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes]) 7691AC_PROG_FC 7692if test -z "$FC" || test "X$FC" = "Xno"; then 7693 _lt_disable_FC=yes 7694fi 7695popdef([AC_MSG_ERROR]) 7696])# _LT_PROG_FC 7697 7698dnl aclocal-1.4 backwards compatibility: 7699dnl AC_DEFUN([_LT_PROG_FC], []) 7700 7701 7702# _LT_LANG_FC_CONFIG([TAG]) 7703# ------------------------- 7704# Ensure that the configuration variables for a Fortran compiler are 7705# suitably defined. These variables are subsequently used by _LT_CONFIG 7706# to write the compiler configuration to `libtool'. 7707m4_defun([_LT_LANG_FC_CONFIG], 7708[AC_REQUIRE([_LT_PROG_FC])dnl 7709AC_LANG_PUSH(Fortran) 7710 7711_LT_TAGVAR(archive_cmds_need_lc, $1)=no 7712_LT_TAGVAR(allow_undefined_flag, $1)= 7713_LT_TAGVAR(always_export_symbols, $1)=no 7714_LT_TAGVAR(archive_expsym_cmds, $1)= 7715_LT_TAGVAR(export_dynamic_flag_spec, $1)= 7716_LT_TAGVAR(hardcode_direct, $1)=no 7717_LT_TAGVAR(hardcode_direct_absolute, $1)=no 7718_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 7719_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= 7720_LT_TAGVAR(hardcode_libdir_separator, $1)= 7721_LT_TAGVAR(hardcode_minus_L, $1)=no 7722_LT_TAGVAR(hardcode_automatic, $1)=no 7723_LT_TAGVAR(inherit_rpath, $1)=no 7724_LT_TAGVAR(module_cmds, $1)= 7725_LT_TAGVAR(module_expsym_cmds, $1)= 7726_LT_TAGVAR(link_all_deplibs, $1)=unknown 7727_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 7728_LT_TAGVAR(no_undefined_flag, $1)= 7729_LT_TAGVAR(whole_archive_flag_spec, $1)= 7730_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no 7731 7732# Source file extension for fc test sources. 7733ac_ext=${ac_fc_srcext-f} 7734 7735# Object file extension for compiled fc test sources. 7736objext=o 7737_LT_TAGVAR(objext, $1)=$objext 7738 7739# No sense in running all these tests if we already determined that 7740# the FC compiler isn't working. Some variables (like enable_shared) 7741# are currently assumed to apply to all compilers on this platform, 7742# and will be corrupted by setting them based on a non-working compiler. 7743if test "$_lt_disable_FC" != yes; then 7744 # Code to be used in simple compile tests 7745 lt_simple_compile_test_code="\ 7746 subroutine t 7747 return 7748 end 7749" 7750 7751 # Code to be used in simple link tests 7752 lt_simple_link_test_code="\ 7753 program t 7754 end 7755" 7756 7757 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 7758 _LT_TAG_COMPILER 7759 7760 # save warnings/boilerplate of simple test code 7761 _LT_COMPILER_BOILERPLATE 7762 _LT_LINKER_BOILERPLATE 7763 7764 # Allow CC to be a program name with arguments. 7765 lt_save_CC="$CC" 7766 lt_save_GCC=$GCC 7767 CC=${FC-"f95"} 7768 compiler=$CC 7769 GCC=$ac_cv_fc_compiler_gnu 7770 7771 _LT_TAGVAR(compiler, $1)=$CC 7772 _LT_CC_BASENAME([$compiler]) 7773 7774 if test -n "$compiler"; then 7775 AC_MSG_CHECKING([if libtool supports shared libraries]) 7776 AC_MSG_RESULT([$can_build_shared]) 7777 7778 AC_MSG_CHECKING([whether to build shared libraries]) 7779 test "$can_build_shared" = "no" && enable_shared=no 7780 7781 # On AIX, shared libraries and static libraries use the same namespace, and 7782 # are all built from PIC. 7783 case $host_os in 7784 aix3*) 7785 test "$enable_shared" = yes && enable_static=no 7786 if test -n "$RANLIB"; then 7787 archive_cmds="$archive_cmds~\$RANLIB \$lib" 7788 postinstall_cmds='$RANLIB $lib' 7789 fi 7790 ;; 7791 aix[[4-9]]*) 7792 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 7793 test "$enable_shared" = yes && enable_static=no 7794 fi 7795 ;; 7796 esac 7797 AC_MSG_RESULT([$enable_shared]) 7798 7799 AC_MSG_CHECKING([whether to build static libraries]) 7800 # Make sure either enable_shared or enable_static is yes. 7801 test "$enable_shared" = yes || enable_static=yes 7802 AC_MSG_RESULT([$enable_static]) 7803 7804 _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu" 7805 _LT_TAGVAR(LD, $1)="$LD" 7806 7807 ## CAVEAT EMPTOR: 7808 ## There is no encapsulation within the following macros, do not change 7809 ## the running order or otherwise move them around unless you know exactly 7810 ## what you are doing... 7811 _LT_SYS_HIDDEN_LIBDEPS($1) 7812 _LT_COMPILER_PIC($1) 7813 _LT_COMPILER_C_O($1) 7814 _LT_COMPILER_FILE_LOCKS($1) 7815 _LT_LINKER_SHLIBS($1) 7816 _LT_SYS_DYNAMIC_LINKER($1) 7817 _LT_LINKER_HARDCODE_LIBPATH($1) 7818 7819 _LT_CONFIG($1) 7820 fi # test -n "$compiler" 7821 7822 GCC=$lt_save_GCC 7823 CC="$lt_save_CC" 7824fi # test "$_lt_disable_FC" != yes 7825 7826AC_LANG_POP 7827])# _LT_LANG_FC_CONFIG 7828 7829 7830# _LT_LANG_GCJ_CONFIG([TAG]) 7831# -------------------------- 7832# Ensure that the configuration variables for the GNU Java Compiler compiler 7833# are suitably defined. These variables are subsequently used by _LT_CONFIG 7834# to write the compiler configuration to `libtool'. 7835m4_defun([_LT_LANG_GCJ_CONFIG], 7836[AC_REQUIRE([LT_PROG_GCJ])dnl 7837AC_LANG_SAVE 7838 7839# Source file extension for Java test sources. 7840ac_ext=java 7841 7842# Object file extension for compiled Java test sources. 7843objext=o 7844_LT_TAGVAR(objext, $1)=$objext 7845 7846# Code to be used in simple compile tests 7847lt_simple_compile_test_code="class foo {}" 7848 7849# Code to be used in simple link tests 7850lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }' 7851 7852# ltmain only uses $CC for tagged configurations so make sure $CC is set. 7853_LT_TAG_COMPILER 7854 7855# save warnings/boilerplate of simple test code 7856_LT_COMPILER_BOILERPLATE 7857_LT_LINKER_BOILERPLATE 7858 7859# Allow CC to be a program name with arguments. 7860lt_save_CC="$CC" 7861lt_save_GCC=$GCC 7862GCC=yes 7863CC=${GCJ-"gcj"} 7864compiler=$CC 7865_LT_TAGVAR(compiler, $1)=$CC 7866_LT_TAGVAR(LD, $1)="$LD" 7867_LT_CC_BASENAME([$compiler]) 7868 7869# GCJ did not exist at the time GCC didn't implicitly link libc in. 7870_LT_TAGVAR(archive_cmds_need_lc, $1)=no 7871 7872_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 7873 7874if test -n "$compiler"; then 7875 _LT_COMPILER_NO_RTTI($1) 7876 _LT_COMPILER_PIC($1) 7877 _LT_COMPILER_C_O($1) 7878 _LT_COMPILER_FILE_LOCKS($1) 7879 _LT_LINKER_SHLIBS($1) 7880 _LT_LINKER_HARDCODE_LIBPATH($1) 7881 7882 _LT_CONFIG($1) 7883fi 7884 7885AC_LANG_RESTORE 7886 7887GCC=$lt_save_GCC 7888CC="$lt_save_CC" 7889])# _LT_LANG_GCJ_CONFIG 7890 7891 7892# _LT_LANG_RC_CONFIG([TAG]) 7893# ------------------------- 7894# Ensure that the configuration variables for the Windows resource compiler 7895# are suitably defined. These variables are subsequently used by _LT_CONFIG 7896# to write the compiler configuration to `libtool'. 7897m4_defun([_LT_LANG_RC_CONFIG], 7898[AC_REQUIRE([LT_PROG_RC])dnl 7899AC_LANG_SAVE 7900 7901# Source file extension for RC test sources. 7902ac_ext=rc 7903 7904# Object file extension for compiled RC test sources. 7905objext=o 7906_LT_TAGVAR(objext, $1)=$objext 7907 7908# Code to be used in simple compile tests 7909lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' 7910 7911# Code to be used in simple link tests 7912lt_simple_link_test_code="$lt_simple_compile_test_code" 7913 7914# ltmain only uses $CC for tagged configurations so make sure $CC is set. 7915_LT_TAG_COMPILER 7916 7917# save warnings/boilerplate of simple test code 7918_LT_COMPILER_BOILERPLATE 7919_LT_LINKER_BOILERPLATE 7920 7921# Allow CC to be a program name with arguments. 7922lt_save_CC="$CC" 7923lt_save_GCC=$GCC 7924GCC= 7925CC=${RC-"windres"} 7926compiler=$CC 7927_LT_TAGVAR(compiler, $1)=$CC 7928_LT_CC_BASENAME([$compiler]) 7929_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes 7930 7931if test -n "$compiler"; then 7932 : 7933 _LT_CONFIG($1) 7934fi 7935 7936GCC=$lt_save_GCC 7937AC_LANG_RESTORE 7938CC="$lt_save_CC" 7939])# _LT_LANG_RC_CONFIG 7940 7941 7942# LT_PROG_GCJ 7943# ----------- 7944AC_DEFUN([LT_PROG_GCJ], 7945[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ], 7946 [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ], 7947 [AC_CHECK_TOOL(GCJ, gcj,) 7948 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2" 7949 AC_SUBST(GCJFLAGS)])])[]dnl 7950]) 7951 7952# Old name: 7953AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ]) 7954dnl aclocal-1.4 backwards compatibility: 7955dnl AC_DEFUN([LT_AC_PROG_GCJ], []) 7956 7957 7958# LT_PROG_RC 7959# ---------- 7960AC_DEFUN([LT_PROG_RC], 7961[AC_CHECK_TOOL(RC, windres,) 7962]) 7963 7964# Old name: 7965AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC]) 7966dnl aclocal-1.4 backwards compatibility: 7967dnl AC_DEFUN([LT_AC_PROG_RC], []) 7968 7969 7970# _LT_DECL_EGREP 7971# -------------- 7972# If we don't have a new enough Autoconf to choose the best grep 7973# available, choose the one first in the user's PATH. 7974m4_defun([_LT_DECL_EGREP], 7975[AC_REQUIRE([AC_PROG_EGREP])dnl 7976AC_REQUIRE([AC_PROG_FGREP])dnl 7977test -z "$GREP" && GREP=grep 7978_LT_DECL([], [GREP], [1], [A grep program that handles long lines]) 7979_LT_DECL([], [EGREP], [1], [An ERE matcher]) 7980_LT_DECL([], [FGREP], [1], [A literal string matcher]) 7981dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too 7982AC_SUBST([GREP]) 7983]) 7984 7985 7986# _LT_DECL_OBJDUMP 7987# -------------- 7988# If we don't have a new enough Autoconf to choose the best objdump 7989# available, choose the one first in the user's PATH. 7990m4_defun([_LT_DECL_OBJDUMP], 7991[AC_CHECK_TOOL(OBJDUMP, objdump, false) 7992test -z "$OBJDUMP" && OBJDUMP=objdump 7993_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper]) 7994AC_SUBST([OBJDUMP]) 7995]) 7996 7997 7998# _LT_DECL_SED 7999# ------------ 8000# Check for a fully-functional sed program, that truncates 8001# as few characters as possible. Prefer GNU sed if found. 8002m4_defun([_LT_DECL_SED], 8003[AC_PROG_SED 8004test -z "$SED" && SED=sed 8005Xsed="$SED -e 1s/^X//" 8006_LT_DECL([], [SED], [1], [A sed program that does not truncate output]) 8007_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"], 8008 [Sed that helps us avoid accidentally triggering echo(1) options like -n]) 8009])# _LT_DECL_SED 8010 8011m4_ifndef([AC_PROG_SED], [ 8012# NOTE: This macro has been submitted for inclusion into # 8013# GNU Autoconf as AC_PROG_SED. When it is available in # 8014# a released version of Autoconf we should remove this # 8015# macro and use it instead. # 8016 8017m4_defun([AC_PROG_SED], 8018[AC_MSG_CHECKING([for a sed that does not truncate output]) 8019AC_CACHE_VAL(lt_cv_path_SED, 8020[# Loop through the user's path and test for sed and gsed. 8021# Then use that list of sed's as ones to test for truncation. 8022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8023for as_dir in $PATH 8024do 8025 IFS=$as_save_IFS 8026 test -z "$as_dir" && as_dir=. 8027 for lt_ac_prog in sed gsed; do 8028 for ac_exec_ext in '' $ac_executable_extensions; do 8029 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 8030 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 8031 fi 8032 done 8033 done 8034done 8035IFS=$as_save_IFS 8036lt_ac_max=0 8037lt_ac_count=0 8038# Add /usr/xpg4/bin/sed as it is typically found on Solaris 8039# along with /bin/sed that truncates output. 8040for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 8041 test ! -f $lt_ac_sed && continue 8042 cat /dev/null > conftest.in 8043 lt_ac_count=0 8044 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 8045 # Check for GNU sed and select it if it is found. 8046 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 8047 lt_cv_path_SED=$lt_ac_sed 8048 break 8049 fi 8050 while true; do 8051 cat conftest.in conftest.in >conftest.tmp 8052 mv conftest.tmp conftest.in 8053 cp conftest.in conftest.nl 8054 echo >>conftest.nl 8055 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 8056 cmp -s conftest.out conftest.nl || break 8057 # 10000 chars as input seems more than enough 8058 test $lt_ac_count -gt 10 && break 8059 lt_ac_count=`expr $lt_ac_count + 1` 8060 if test $lt_ac_count -gt $lt_ac_max; then 8061 lt_ac_max=$lt_ac_count 8062 lt_cv_path_SED=$lt_ac_sed 8063 fi 8064 done 8065done 8066]) 8067SED=$lt_cv_path_SED 8068AC_SUBST([SED]) 8069AC_MSG_RESULT([$SED]) 8070])#AC_PROG_SED 8071])#m4_ifndef 8072 8073# Old name: 8074AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED]) 8075dnl aclocal-1.4 backwards compatibility: 8076dnl AC_DEFUN([LT_AC_PROG_SED], []) 8077 8078 8079# _LT_CHECK_SHELL_FEATURES 8080# ------------------------ 8081# Find out whether the shell is Bourne or XSI compatible, 8082# or has some other useful features. 8083m4_defun([_LT_CHECK_SHELL_FEATURES], 8084[AC_MSG_CHECKING([whether the shell understands some XSI constructs]) 8085# Try some XSI features 8086xsi_shell=no 8087( _lt_dummy="a/b/c" 8088 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 8089 = c,a/b,, \ 8090 && eval 'test $(( 1 + 1 )) -eq 2 \ 8091 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 8092 && xsi_shell=yes 8093AC_MSG_RESULT([$xsi_shell]) 8094_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell']) 8095 8096AC_MSG_CHECKING([whether the shell understands "+="]) 8097lt_shell_append=no 8098( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \ 8099 >/dev/null 2>&1 \ 8100 && lt_shell_append=yes 8101AC_MSG_RESULT([$lt_shell_append]) 8102_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append']) 8103 8104if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 8105 lt_unset=unset 8106else 8107 lt_unset=false 8108fi 8109_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl 8110 8111# test EBCDIC or ASCII 8112case `echo X|tr X '\101'` in 8113 A) # ASCII based system 8114 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 8115 lt_SP2NL='tr \040 \012' 8116 lt_NL2SP='tr \015\012 \040\040' 8117 ;; 8118 *) # EBCDIC based system 8119 lt_SP2NL='tr \100 \n' 8120 lt_NL2SP='tr \r\n \100\100' 8121 ;; 8122esac 8123_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl 8124_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl 8125])# _LT_CHECK_SHELL_FEATURES 8126 8127 8128# _LT_PROG_XSI_SHELLFNS 8129# --------------------- 8130# Bourne and XSI compatible variants of some useful shell functions. 8131m4_defun([_LT_PROG_XSI_SHELLFNS], 8132[case $xsi_shell in 8133 yes) 8134 cat << \_LT_EOF >> "$cfgfile" 8135 8136# func_dirname file append nondir_replacement 8137# Compute the dirname of FILE. If nonempty, add APPEND to the result, 8138# otherwise set result to NONDIR_REPLACEMENT. 8139func_dirname () 8140{ 8141 case ${1} in 8142 */*) func_dirname_result="${1%/*}${2}" ;; 8143 * ) func_dirname_result="${3}" ;; 8144 esac 8145} 8146 8147# func_basename file 8148func_basename () 8149{ 8150 func_basename_result="${1##*/}" 8151} 8152 8153# func_dirname_and_basename file append nondir_replacement 8154# perform func_basename and func_dirname in a single function 8155# call: 8156# dirname: Compute the dirname of FILE. If nonempty, 8157# add APPEND to the result, otherwise set result 8158# to NONDIR_REPLACEMENT. 8159# value returned in "$func_dirname_result" 8160# basename: Compute filename of FILE. 8161# value retuned in "$func_basename_result" 8162# Implementation must be kept synchronized with func_dirname 8163# and func_basename. For efficiency, we do not delegate to 8164# those functions but instead duplicate the functionality here. 8165func_dirname_and_basename () 8166{ 8167 case ${1} in 8168 */*) func_dirname_result="${1%/*}${2}" ;; 8169 * ) func_dirname_result="${3}" ;; 8170 esac 8171 func_basename_result="${1##*/}" 8172} 8173 8174# func_stripname prefix suffix name 8175# strip PREFIX and SUFFIX off of NAME. 8176# PREFIX and SUFFIX must not contain globbing or regex special 8177# characters, hashes, percent signs, but SUFFIX may contain a leading 8178# dot (in which case that matches only a dot). 8179func_stripname () 8180{ 8181 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 8182 # positional parameters, so assign one to ordinary parameter first. 8183 func_stripname_result=${3} 8184 func_stripname_result=${func_stripname_result#"${1}"} 8185 func_stripname_result=${func_stripname_result%"${2}"} 8186} 8187 8188# func_opt_split 8189func_opt_split () 8190{ 8191 func_opt_split_opt=${1%%=*} 8192 func_opt_split_arg=${1#*=} 8193} 8194 8195# func_lo2o object 8196func_lo2o () 8197{ 8198 case ${1} in 8199 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 8200 *) func_lo2o_result=${1} ;; 8201 esac 8202} 8203 8204# func_xform libobj-or-source 8205func_xform () 8206{ 8207 func_xform_result=${1%.*}.lo 8208} 8209 8210# func_arith arithmetic-term... 8211func_arith () 8212{ 8213 func_arith_result=$(( $[*] )) 8214} 8215 8216# func_len string 8217# STRING may not start with a hyphen. 8218func_len () 8219{ 8220 func_len_result=${#1} 8221} 8222 8223_LT_EOF 8224 ;; 8225 *) # Bourne compatible functions. 8226 cat << \_LT_EOF >> "$cfgfile" 8227 8228# func_dirname file append nondir_replacement 8229# Compute the dirname of FILE. If nonempty, add APPEND to the result, 8230# otherwise set result to NONDIR_REPLACEMENT. 8231func_dirname () 8232{ 8233 # Extract subdirectory from the argument. 8234 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` 8235 if test "X$func_dirname_result" = "X${1}"; then 8236 func_dirname_result="${3}" 8237 else 8238 func_dirname_result="$func_dirname_result${2}" 8239 fi 8240} 8241 8242# func_basename file 8243func_basename () 8244{ 8245 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` 8246} 8247 8248dnl func_dirname_and_basename 8249dnl A portable version of this function is already defined in general.m4sh 8250dnl so there is no need for it here. 8251 8252# func_stripname prefix suffix name 8253# strip PREFIX and SUFFIX off of NAME. 8254# PREFIX and SUFFIX must not contain globbing or regex special 8255# characters, hashes, percent signs, but SUFFIX may contain a leading 8256# dot (in which case that matches only a dot). 8257# func_strip_suffix prefix name 8258func_stripname () 8259{ 8260 case ${2} in 8261 .*) func_stripname_result=`$ECHO "X${3}" \ 8262 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; 8263 *) func_stripname_result=`$ECHO "X${3}" \ 8264 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; 8265 esac 8266} 8267 8268# sed scripts: 8269my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q' 8270my_sed_long_arg='1s/^-[[^=]]*=//' 8271 8272# func_opt_split 8273func_opt_split () 8274{ 8275 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` 8276 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` 8277} 8278 8279# func_lo2o object 8280func_lo2o () 8281{ 8282 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` 8283} 8284 8285# func_xform libobj-or-source 8286func_xform () 8287{ 8288 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'` 8289} 8290 8291# func_arith arithmetic-term... 8292func_arith () 8293{ 8294 func_arith_result=`expr "$[@]"` 8295} 8296 8297# func_len string 8298# STRING may not start with a hyphen. 8299func_len () 8300{ 8301 func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len` 8302} 8303 8304_LT_EOF 8305esac 8306 8307case $lt_shell_append in 8308 yes) 8309 cat << \_LT_EOF >> "$cfgfile" 8310 8311# func_append var value 8312# Append VALUE to the end of shell variable VAR. 8313func_append () 8314{ 8315 eval "$[1]+=\$[2]" 8316} 8317_LT_EOF 8318 ;; 8319 *) 8320 cat << \_LT_EOF >> "$cfgfile" 8321 8322# func_append var value 8323# Append VALUE to the end of shell variable VAR. 8324func_append () 8325{ 8326 eval "$[1]=\$$[1]\$[2]" 8327} 8328 8329_LT_EOF 8330 ;; 8331 esac 8332]) 8333 8334# Helper functions for option handling. -*- Autoconf -*- 8335# 8336# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc. 8337# Written by Gary V. Vaughan, 2004 8338# 8339# This file is free software; the Free Software Foundation gives 8340# unlimited permission to copy and/or distribute it, with or without 8341# modifications, as long as this notice is preserved. 8342 8343# serial 6 ltoptions.m4 8344 8345# This is to help aclocal find these macros, as it can't see m4_define. 8346AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])]) 8347 8348 8349# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME) 8350# ------------------------------------------ 8351m4_define([_LT_MANGLE_OPTION], 8352[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])]) 8353 8354 8355# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME) 8356# --------------------------------------- 8357# Set option OPTION-NAME for macro MACRO-NAME, and if there is a 8358# matching handler defined, dispatch to it. Other OPTION-NAMEs are 8359# saved as a flag. 8360m4_define([_LT_SET_OPTION], 8361[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl 8362m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]), 8363 _LT_MANGLE_DEFUN([$1], [$2]), 8364 [m4_warning([Unknown $1 option `$2'])])[]dnl 8365]) 8366 8367 8368# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET]) 8369# ------------------------------------------------------------ 8370# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. 8371m4_define([_LT_IF_OPTION], 8372[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])]) 8373 8374 8375# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET) 8376# ------------------------------------------------------- 8377# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME 8378# are set. 8379m4_define([_LT_UNLESS_OPTIONS], 8380[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), 8381 [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option), 8382 [m4_define([$0_found])])])[]dnl 8383m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3 8384])[]dnl 8385]) 8386 8387 8388# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST) 8389# ---------------------------------------- 8390# OPTION-LIST is a space-separated list of Libtool options associated 8391# with MACRO-NAME. If any OPTION has a matching handler declared with 8392# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about 8393# the unknown option and exit. 8394m4_defun([_LT_SET_OPTIONS], 8395[# Set options 8396m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), 8397 [_LT_SET_OPTION([$1], _LT_Option)]) 8398 8399m4_if([$1],[LT_INIT],[ 8400 dnl 8401 dnl Simply set some default values (i.e off) if boolean options were not 8402 dnl specified: 8403 _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no 8404 ]) 8405 _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no 8406 ]) 8407 dnl 8408 dnl If no reference was made to various pairs of opposing options, then 8409 dnl we run the default mode handler for the pair. For example, if neither 8410 dnl `shared' nor `disable-shared' was passed, we enable building of shared 8411 dnl archives by default: 8412 _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED]) 8413 _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC]) 8414 _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC]) 8415 _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install], 8416 [_LT_ENABLE_FAST_INSTALL]) 8417 ]) 8418])# _LT_SET_OPTIONS 8419 8420 8421 8422# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME) 8423# ----------------------------------------- 8424m4_define([_LT_MANGLE_DEFUN], 8425[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])]) 8426 8427 8428# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE) 8429# ----------------------------------------------- 8430m4_define([LT_OPTION_DEFINE], 8431[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl 8432])# LT_OPTION_DEFINE 8433 8434 8435# dlopen 8436# ------ 8437LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes 8438]) 8439 8440AU_DEFUN([AC_LIBTOOL_DLOPEN], 8441[_LT_SET_OPTION([LT_INIT], [dlopen]) 8442AC_DIAGNOSE([obsolete], 8443[$0: Remove this warning and the call to _LT_SET_OPTION when you 8444put the `dlopen' option into LT_INIT's first parameter.]) 8445]) 8446 8447dnl aclocal-1.4 backwards compatibility: 8448dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], []) 8449 8450 8451# win32-dll 8452# --------- 8453# Declare package support for building win32 dll's. 8454LT_OPTION_DEFINE([LT_INIT], [win32-dll], 8455[enable_win32_dll=yes 8456 8457case $host in 8458*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*) 8459 AC_CHECK_TOOL(AS, as, false) 8460 AC_CHECK_TOOL(DLLTOOL, dlltool, false) 8461 AC_CHECK_TOOL(OBJDUMP, objdump, false) 8462 ;; 8463esac 8464 8465test -z "$AS" && AS=as 8466_LT_DECL([], [AS], [0], [Assembler program])dnl 8467 8468test -z "$DLLTOOL" && DLLTOOL=dlltool 8469_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl 8470 8471test -z "$OBJDUMP" && OBJDUMP=objdump 8472_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl 8473])# win32-dll 8474 8475AU_DEFUN([AC_LIBTOOL_WIN32_DLL], 8476[AC_REQUIRE([AC_CANONICAL_HOST])dnl 8477_LT_SET_OPTION([LT_INIT], [win32-dll]) 8478AC_DIAGNOSE([obsolete], 8479[$0: Remove this warning and the call to _LT_SET_OPTION when you 8480put the `win32-dll' option into LT_INIT's first parameter.]) 8481]) 8482 8483dnl aclocal-1.4 backwards compatibility: 8484dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], []) 8485 8486 8487# _LT_ENABLE_SHARED([DEFAULT]) 8488# ---------------------------- 8489# implement the --enable-shared flag, and supports the `shared' and 8490# `disable-shared' LT_INIT options. 8491# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. 8492m4_define([_LT_ENABLE_SHARED], 8493[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl 8494AC_ARG_ENABLE([shared], 8495 [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@], 8496 [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])], 8497 [p=${PACKAGE-default} 8498 case $enableval in 8499 yes) enable_shared=yes ;; 8500 no) enable_shared=no ;; 8501 *) 8502 enable_shared=no 8503 # Look at the argument we got. We use all the common list separators. 8504 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8505 for pkg in $enableval; do 8506 IFS="$lt_save_ifs" 8507 if test "X$pkg" = "X$p"; then 8508 enable_shared=yes 8509 fi 8510 done 8511 IFS="$lt_save_ifs" 8512 ;; 8513 esac], 8514 [enable_shared=]_LT_ENABLE_SHARED_DEFAULT) 8515 8516 _LT_DECL([build_libtool_libs], [enable_shared], [0], 8517 [Whether or not to build shared libraries]) 8518])# _LT_ENABLE_SHARED 8519 8520LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])]) 8521LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])]) 8522 8523# Old names: 8524AC_DEFUN([AC_ENABLE_SHARED], 8525[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared]) 8526]) 8527 8528AC_DEFUN([AC_DISABLE_SHARED], 8529[_LT_SET_OPTION([LT_INIT], [disable-shared]) 8530]) 8531 8532AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) 8533AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) 8534 8535dnl aclocal-1.4 backwards compatibility: 8536dnl AC_DEFUN([AM_ENABLE_SHARED], []) 8537dnl AC_DEFUN([AM_DISABLE_SHARED], []) 8538 8539 8540 8541# _LT_ENABLE_STATIC([DEFAULT]) 8542# ---------------------------- 8543# implement the --enable-static flag, and support the `static' and 8544# `disable-static' LT_INIT options. 8545# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. 8546m4_define([_LT_ENABLE_STATIC], 8547[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl 8548AC_ARG_ENABLE([static], 8549 [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@], 8550 [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])], 8551 [p=${PACKAGE-default} 8552 case $enableval in 8553 yes) enable_static=yes ;; 8554 no) enable_static=no ;; 8555 *) 8556 enable_static=no 8557 # Look at the argument we got. We use all the common list separators. 8558 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8559 for pkg in $enableval; do 8560 IFS="$lt_save_ifs" 8561 if test "X$pkg" = "X$p"; then 8562 enable_static=yes 8563 fi 8564 done 8565 IFS="$lt_save_ifs" 8566 ;; 8567 esac], 8568 [enable_static=]_LT_ENABLE_STATIC_DEFAULT) 8569 8570 _LT_DECL([build_old_libs], [enable_static], [0], 8571 [Whether or not to build static libraries]) 8572])# _LT_ENABLE_STATIC 8573 8574LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])]) 8575LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])]) 8576 8577# Old names: 8578AC_DEFUN([AC_ENABLE_STATIC], 8579[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static]) 8580]) 8581 8582AC_DEFUN([AC_DISABLE_STATIC], 8583[_LT_SET_OPTION([LT_INIT], [disable-static]) 8584]) 8585 8586AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) 8587AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) 8588 8589dnl aclocal-1.4 backwards compatibility: 8590dnl AC_DEFUN([AM_ENABLE_STATIC], []) 8591dnl AC_DEFUN([AM_DISABLE_STATIC], []) 8592 8593 8594 8595# _LT_ENABLE_FAST_INSTALL([DEFAULT]) 8596# ---------------------------------- 8597# implement the --enable-fast-install flag, and support the `fast-install' 8598# and `disable-fast-install' LT_INIT options. 8599# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. 8600m4_define([_LT_ENABLE_FAST_INSTALL], 8601[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl 8602AC_ARG_ENABLE([fast-install], 8603 [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], 8604 [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], 8605 [p=${PACKAGE-default} 8606 case $enableval in 8607 yes) enable_fast_install=yes ;; 8608 no) enable_fast_install=no ;; 8609 *) 8610 enable_fast_install=no 8611 # Look at the argument we got. We use all the common list separators. 8612 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8613 for pkg in $enableval; do 8614 IFS="$lt_save_ifs" 8615 if test "X$pkg" = "X$p"; then 8616 enable_fast_install=yes 8617 fi 8618 done 8619 IFS="$lt_save_ifs" 8620 ;; 8621 esac], 8622 [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT) 8623 8624_LT_DECL([fast_install], [enable_fast_install], [0], 8625 [Whether or not to optimize for fast installation])dnl 8626])# _LT_ENABLE_FAST_INSTALL 8627 8628LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])]) 8629LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])]) 8630 8631# Old names: 8632AU_DEFUN([AC_ENABLE_FAST_INSTALL], 8633[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install]) 8634AC_DIAGNOSE([obsolete], 8635[$0: Remove this warning and the call to _LT_SET_OPTION when you put 8636the `fast-install' option into LT_INIT's first parameter.]) 8637]) 8638 8639AU_DEFUN([AC_DISABLE_FAST_INSTALL], 8640[_LT_SET_OPTION([LT_INIT], [disable-fast-install]) 8641AC_DIAGNOSE([obsolete], 8642[$0: Remove this warning and the call to _LT_SET_OPTION when you put 8643the `disable-fast-install' option into LT_INIT's first parameter.]) 8644]) 8645 8646dnl aclocal-1.4 backwards compatibility: 8647dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], []) 8648dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], []) 8649 8650 8651# _LT_WITH_PIC([MODE]) 8652# -------------------- 8653# implement the --with-pic flag, and support the `pic-only' and `no-pic' 8654# LT_INIT options. 8655# MODE is either `yes' or `no'. If omitted, it defaults to `both'. 8656m4_define([_LT_WITH_PIC], 8657[AC_ARG_WITH([pic], 8658 [AS_HELP_STRING([--with-pic], 8659 [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], 8660 [pic_mode="$withval"], 8661 [pic_mode=default]) 8662 8663test -z "$pic_mode" && pic_mode=m4_default([$1], [default]) 8664 8665_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl 8666])# _LT_WITH_PIC 8667 8668LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])]) 8669LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])]) 8670 8671# Old name: 8672AU_DEFUN([AC_LIBTOOL_PICMODE], 8673[_LT_SET_OPTION([LT_INIT], [pic-only]) 8674AC_DIAGNOSE([obsolete], 8675[$0: Remove this warning and the call to _LT_SET_OPTION when you 8676put the `pic-only' option into LT_INIT's first parameter.]) 8677]) 8678 8679dnl aclocal-1.4 backwards compatibility: 8680dnl AC_DEFUN([AC_LIBTOOL_PICMODE], []) 8681 8682 8683m4_define([_LTDL_MODE], []) 8684LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive], 8685 [m4_define([_LTDL_MODE], [nonrecursive])]) 8686LT_OPTION_DEFINE([LTDL_INIT], [recursive], 8687 [m4_define([_LTDL_MODE], [recursive])]) 8688LT_OPTION_DEFINE([LTDL_INIT], [subproject], 8689 [m4_define([_LTDL_MODE], [subproject])]) 8690 8691m4_define([_LTDL_TYPE], []) 8692LT_OPTION_DEFINE([LTDL_INIT], [installable], 8693 [m4_define([_LTDL_TYPE], [installable])]) 8694LT_OPTION_DEFINE([LTDL_INIT], [convenience], 8695 [m4_define([_LTDL_TYPE], [convenience])]) 8696 8697# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*- 8698# 8699# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc. 8700# Written by Gary V. Vaughan, 2004 8701# 8702# This file is free software; the Free Software Foundation gives 8703# unlimited permission to copy and/or distribute it, with or without 8704# modifications, as long as this notice is preserved. 8705 8706# serial 6 ltsugar.m4 8707 8708# This is to help aclocal find these macros, as it can't see m4_define. 8709AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])]) 8710 8711 8712# lt_join(SEP, ARG1, [ARG2...]) 8713# ----------------------------- 8714# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their 8715# associated separator. 8716# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier 8717# versions in m4sugar had bugs. 8718m4_define([lt_join], 8719[m4_if([$#], [1], [], 8720 [$#], [2], [[$2]], 8721 [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])]) 8722m4_define([_lt_join], 8723[m4_if([$#$2], [2], [], 8724 [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])]) 8725 8726 8727# lt_car(LIST) 8728# lt_cdr(LIST) 8729# ------------ 8730# Manipulate m4 lists. 8731# These macros are necessary as long as will still need to support 8732# Autoconf-2.59 which quotes differently. 8733m4_define([lt_car], [[$1]]) 8734m4_define([lt_cdr], 8735[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])], 8736 [$#], 1, [], 8737 [m4_dquote(m4_shift($@))])]) 8738m4_define([lt_unquote], $1) 8739 8740 8741# lt_append(MACRO-NAME, STRING, [SEPARATOR]) 8742# ------------------------------------------ 8743# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'. 8744# Note that neither SEPARATOR nor STRING are expanded; they are appended 8745# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked). 8746# No SEPARATOR is output if MACRO-NAME was previously undefined (different 8747# than defined and empty). 8748# 8749# This macro is needed until we can rely on Autoconf 2.62, since earlier 8750# versions of m4sugar mistakenly expanded SEPARATOR but not STRING. 8751m4_define([lt_append], 8752[m4_define([$1], 8753 m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])]) 8754 8755 8756 8757# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...]) 8758# ---------------------------------------------------------- 8759# Produce a SEP delimited list of all paired combinations of elements of 8760# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list 8761# has the form PREFIXmINFIXSUFFIXn. 8762# Needed until we can rely on m4_combine added in Autoconf 2.62. 8763m4_define([lt_combine], 8764[m4_if(m4_eval([$# > 3]), [1], 8765 [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl 8766[[m4_foreach([_Lt_prefix], [$2], 8767 [m4_foreach([_Lt_suffix], 8768 ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[, 8769 [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])]) 8770 8771 8772# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ]) 8773# ----------------------------------------------------------------------- 8774# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited 8775# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ. 8776m4_define([lt_if_append_uniq], 8777[m4_ifdef([$1], 8778 [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1], 8779 [lt_append([$1], [$2], [$3])$4], 8780 [$5])], 8781 [lt_append([$1], [$2], [$3])$4])]) 8782 8783 8784# lt_dict_add(DICT, KEY, VALUE) 8785# ----------------------------- 8786m4_define([lt_dict_add], 8787[m4_define([$1($2)], [$3])]) 8788 8789 8790# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE) 8791# -------------------------------------------- 8792m4_define([lt_dict_add_subkey], 8793[m4_define([$1($2:$3)], [$4])]) 8794 8795 8796# lt_dict_fetch(DICT, KEY, [SUBKEY]) 8797# ---------------------------------- 8798m4_define([lt_dict_fetch], 8799[m4_ifval([$3], 8800 m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]), 8801 m4_ifdef([$1($2)], [m4_defn([$1($2)])]))]) 8802 8803 8804# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE]) 8805# ----------------------------------------------------------------- 8806m4_define([lt_if_dict_fetch], 8807[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4], 8808 [$5], 8809 [$6])]) 8810 8811 8812# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...]) 8813# -------------------------------------------------------------- 8814m4_define([lt_dict_filter], 8815[m4_if([$5], [], [], 8816 [lt_join(m4_quote(m4_default([$4], [[, ]])), 8817 lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]), 8818 [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl 8819]) 8820 8821# ltversion.m4 -- version numbers -*- Autoconf -*- 8822# 8823# Copyright (C) 2004 Free Software Foundation, Inc. 8824# Written by Scott James Remnant, 2004 8825# 8826# This file is free software; the Free Software Foundation gives 8827# unlimited permission to copy and/or distribute it, with or without 8828# modifications, as long as this notice is preserved. 8829 8830# Generated from ltversion.in. 8831 8832# serial 3012 ltversion.m4 8833# This file is part of GNU Libtool 8834 8835m4_define([LT_PACKAGE_VERSION], [2.2.6]) 8836m4_define([LT_PACKAGE_REVISION], [1.3012]) 8837 8838AC_DEFUN([LTVERSION_VERSION], 8839[macro_version='2.2.6' 8840macro_revision='1.3012' 8841_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?]) 8842_LT_DECL(, macro_revision, 0) 8843]) 8844 8845# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*- 8846# 8847# Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc. 8848# Written by Scott James Remnant, 2004. 8849# 8850# This file is free software; the Free Software Foundation gives 8851# unlimited permission to copy and/or distribute it, with or without 8852# modifications, as long as this notice is preserved. 8853 8854# serial 4 lt~obsolete.m4 8855 8856# These exist entirely to fool aclocal when bootstrapping libtool. 8857# 8858# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN) 8859# which have later been changed to m4_define as they aren't part of the 8860# exported API, or moved to Autoconf or Automake where they belong. 8861# 8862# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN 8863# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us 8864# using a macro with the same name in our local m4/libtool.m4 it'll 8865# pull the old libtool.m4 in (it doesn't see our shiny new m4_define 8866# and doesn't know about Autoconf macros at all.) 8867# 8868# So we provide this file, which has a silly filename so it's always 8869# included after everything else. This provides aclocal with the 8870# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything 8871# because those macros already exist, or will be overwritten later. 8872# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6. 8873# 8874# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here. 8875# Yes, that means every name once taken will need to remain here until 8876# we give up compatibility with versions before 1.7, at which point 8877# we need to keep only those names which we still refer to. 8878 8879# This is to help aclocal find these macros, as it can't see m4_define. 8880AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])]) 8881 8882m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])]) 8883m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])]) 8884m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])]) 8885m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])]) 8886m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])]) 8887m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])]) 8888m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])]) 8889m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])]) 8890m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])]) 8891m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])]) 8892m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])]) 8893m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])]) 8894m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])]) 8895m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])]) 8896m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])]) 8897m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])]) 8898m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])]) 8899m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])]) 8900m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])]) 8901m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])]) 8902m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])]) 8903m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])]) 8904m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])]) 8905m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])]) 8906m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])]) 8907m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])]) 8908m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])]) 8909m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])]) 8910m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])]) 8911m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])]) 8912m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])]) 8913m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])]) 8914m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])]) 8915m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])]) 8916m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])]) 8917m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])]) 8918m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])]) 8919m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])]) 8920m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])]) 8921m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])]) 8922m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])]) 8923m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])]) 8924m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])]) 8925m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])]) 8926m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])]) 8927m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])]) 8928m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])]) 8929m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])]) 8930m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])]) 8931m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])]) 8932m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])]) 8933m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])]) 8934m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])]) 8935m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])]) 8936m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])]) 8937 8938