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