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