1# generated automatically by aclocal 1.16.2 -*- Autoconf -*- 2 3# Copyright (C) 1996-2020 Free Software Foundation, Inc. 4 5# This file is free software; the Free Software Foundation 6# gives unlimited permission to copy and/or distribute it, 7# with or without modifications, as long as this notice is preserved. 8 9# This program is distributed in the hope that it will be useful, 10# but WITHOUT ANY WARRANTY, to the extent permitted by law; without 11# even the implied warranty of MERCHANTABILITY or FITNESS FOR A 12# PARTICULAR PURPOSE. 13 14m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])]) 15m4_ifndef([AC_AUTOCONF_VERSION], 16 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl 17m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],, 18[m4_warning([this file was generated for autoconf 2.69. 19You have another version of autoconf. It may work, but is not guaranteed to. 20If you have problems, you may need to regenerate the build system entirely. 21To do so, use the procedure documented by the package, typically 'autoreconf'.])]) 22 23dnl Sets the COURIER_UNICODE_CXXFLAGS variable to any additional compiler 24dnl flags needed to build the courier-unicode package and packages that 25dnl use the courier-unicode package. 26 27AC_DEFUN([AX_COURIER_UNICODE_CXXFLAGS],[ 28 29save_FLAGS="$CXXFLAGS" 30 31AC_LANG_PUSH([C++]) 32 33AC_TRY_COMPILE([ 34#include <string> 35], [ 36 std::u32string s; 37 char32_t c; 38 ], 39 [ 40 ], 41 [ 42 43COURIER_UNICODE_CXXFLAGS="-std=c++11" 44CXXFLAGS="$save_CFLAGS $COURIER_UNICODE_CXXFLAGS" 45 46AC_TRY_COMPILE([ 47#include <string> 48], [ 49 std::u32string s; 50 char32_t c; 51 ], 52 [ 53 ], 54 [ 55 56COURIER_UNICODE_CXXFLAGS="-std=c++0x" 57CXXFLAGS="$save_CFLAGS $COURIER_UNICODE_CXXFLAGS" 58 59AC_TRY_COMPILE([ 60#include <string> 61], [ 62 std::u32string s; 63 char32_t c; 64 ], 65 [ 66 ], 67 [ 68AC_MSG_ERROR([*** A compiler with C++11 Unicode support was not found]) 69]) 70]) 71]) 72CXXFLAGS="$save_FLAGS" 73AC_LANG_POP([C++]) 74]) 75 76# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- 77# 78# Copyright (C) 1996-2001, 2003-2015 Free Software Foundation, Inc. 79# Written by Gordon Matzigkeit, 1996 80# 81# This file is free software; the Free Software Foundation gives 82# unlimited permission to copy and/or distribute it, with or without 83# modifications, as long as this notice is preserved. 84 85m4_define([_LT_COPYING], [dnl 86# Copyright (C) 2014 Free Software Foundation, Inc. 87# This is free software; see the source for copying conditions. There is NO 88# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 89 90# GNU Libtool is free software; you can redistribute it and/or modify 91# it under the terms of the GNU General Public License as published by 92# the Free Software Foundation; either version 2 of of the License, or 93# (at your option) any later version. 94# 95# As a special exception to the GNU General Public License, if you 96# distribute this file as part of a program or library that is built 97# using GNU Libtool, you may include this file under the same 98# distribution terms that you use for the rest of that program. 99# 100# GNU Libtool is distributed in the hope that it will be useful, but 101# WITHOUT ANY WARRANTY; without even the implied warranty of 102# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 103# GNU General Public License for more details. 104# 105# You should have received a copy of the GNU General Public License 106# along with this program. If not, see <http://www.gnu.org/licenses/>. 107]) 108 109# serial 58 LT_INIT 110 111 112# LT_PREREQ(VERSION) 113# ------------------ 114# Complain and exit if this libtool version is less that VERSION. 115m4_defun([LT_PREREQ], 116[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1, 117 [m4_default([$3], 118 [m4_fatal([Libtool version $1 or higher is required], 119 63)])], 120 [$2])]) 121 122 123# _LT_CHECK_BUILDDIR 124# ------------------ 125# Complain if the absolute build directory name contains unusual characters 126m4_defun([_LT_CHECK_BUILDDIR], 127[case `pwd` in 128 *\ * | *\ *) 129 AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;; 130esac 131]) 132 133 134# LT_INIT([OPTIONS]) 135# ------------------ 136AC_DEFUN([LT_INIT], 137[AC_PREREQ([2.62])dnl We use AC_PATH_PROGS_FEATURE_CHECK 138AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl 139AC_BEFORE([$0], [LT_LANG])dnl 140AC_BEFORE([$0], [LT_OUTPUT])dnl 141AC_BEFORE([$0], [LTDL_INIT])dnl 142m4_require([_LT_CHECK_BUILDDIR])dnl 143 144dnl Autoconf doesn't catch unexpanded LT_ macros by default: 145m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl 146m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl 147dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4 148dnl unless we require an AC_DEFUNed macro: 149AC_REQUIRE([LTOPTIONS_VERSION])dnl 150AC_REQUIRE([LTSUGAR_VERSION])dnl 151AC_REQUIRE([LTVERSION_VERSION])dnl 152AC_REQUIRE([LTOBSOLETE_VERSION])dnl 153m4_require([_LT_PROG_LTMAIN])dnl 154 155_LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}]) 156 157dnl Parse OPTIONS 158_LT_SET_OPTIONS([$0], [$1]) 159 160# This can be used to rebuild libtool when needed 161LIBTOOL_DEPS=$ltmain 162 163# Always use our own libtool. 164LIBTOOL='$(SHELL) $(top_builddir)/libtool' 165AC_SUBST(LIBTOOL)dnl 166 167_LT_SETUP 168 169# Only expand once: 170m4_define([LT_INIT]) 171])# LT_INIT 172 173# Old names: 174AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT]) 175AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT]) 176dnl aclocal-1.4 backwards compatibility: 177dnl AC_DEFUN([AC_PROG_LIBTOOL], []) 178dnl AC_DEFUN([AM_PROG_LIBTOOL], []) 179 180 181# _LT_PREPARE_CC_BASENAME 182# ----------------------- 183m4_defun([_LT_PREPARE_CC_BASENAME], [ 184# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 185func_cc_basename () 186{ 187 for cc_temp in @S|@*""; do 188 case $cc_temp in 189 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; 190 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; 191 \-*) ;; 192 *) break;; 193 esac 194 done 195 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 196} 197])# _LT_PREPARE_CC_BASENAME 198 199 200# _LT_CC_BASENAME(CC) 201# ------------------- 202# It would be clearer to call AC_REQUIREs from _LT_PREPARE_CC_BASENAME, 203# but that macro is also expanded into generated libtool script, which 204# arranges for $SED and $ECHO to be set by different means. 205m4_defun([_LT_CC_BASENAME], 206[m4_require([_LT_PREPARE_CC_BASENAME])dnl 207AC_REQUIRE([_LT_DECL_SED])dnl 208AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl 209func_cc_basename $1 210cc_basename=$func_cc_basename_result 211]) 212 213 214# _LT_FILEUTILS_DEFAULTS 215# ---------------------- 216# It is okay to use these file commands and assume they have been set 217# sensibly after 'm4_require([_LT_FILEUTILS_DEFAULTS])'. 218m4_defun([_LT_FILEUTILS_DEFAULTS], 219[: ${CP="cp -f"} 220: ${MV="mv -f"} 221: ${RM="rm -f"} 222])# _LT_FILEUTILS_DEFAULTS 223 224 225# _LT_SETUP 226# --------- 227m4_defun([_LT_SETUP], 228[AC_REQUIRE([AC_CANONICAL_HOST])dnl 229AC_REQUIRE([AC_CANONICAL_BUILD])dnl 230AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl 231AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl 232 233_LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl 234dnl 235_LT_DECL([], [host_alias], [0], [The host system])dnl 236_LT_DECL([], [host], [0])dnl 237_LT_DECL([], [host_os], [0])dnl 238dnl 239_LT_DECL([], [build_alias], [0], [The build system])dnl 240_LT_DECL([], [build], [0])dnl 241_LT_DECL([], [build_os], [0])dnl 242dnl 243AC_REQUIRE([AC_PROG_CC])dnl 244AC_REQUIRE([LT_PATH_LD])dnl 245AC_REQUIRE([LT_PATH_NM])dnl 246dnl 247AC_REQUIRE([AC_PROG_LN_S])dnl 248test -z "$LN_S" && LN_S="ln -s" 249_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl 250dnl 251AC_REQUIRE([LT_CMD_MAX_LEN])dnl 252_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl 253_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl 254dnl 255m4_require([_LT_FILEUTILS_DEFAULTS])dnl 256m4_require([_LT_CHECK_SHELL_FEATURES])dnl 257m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl 258m4_require([_LT_CMD_RELOAD])dnl 259m4_require([_LT_CHECK_MAGIC_METHOD])dnl 260m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl 261m4_require([_LT_CMD_OLD_ARCHIVE])dnl 262m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl 263m4_require([_LT_WITH_SYSROOT])dnl 264m4_require([_LT_CMD_TRUNCATE])dnl 265 266_LT_CONFIG_LIBTOOL_INIT([ 267# See if we are running on zsh, and set the options that allow our 268# commands through without removal of \ escapes INIT. 269if test -n "\${ZSH_VERSION+set}"; then 270 setopt NO_GLOB_SUBST 271fi 272]) 273if test -n "${ZSH_VERSION+set}"; then 274 setopt NO_GLOB_SUBST 275fi 276 277_LT_CHECK_OBJDIR 278 279m4_require([_LT_TAG_COMPILER])dnl 280 281case $host_os in 282aix3*) 283 # AIX sometimes has problems with the GCC collect2 program. For some 284 # reason, if we set the COLLECT_NAMES environment variable, the problems 285 # vanish in a puff of smoke. 286 if test set != "${COLLECT_NAMES+set}"; then 287 COLLECT_NAMES= 288 export COLLECT_NAMES 289 fi 290 ;; 291esac 292 293# Global variables: 294ofile=libtool 295can_build_shared=yes 296 297# All known linkers require a '.a' archive for static linking (except MSVC, 298# which needs '.lib'). 299libext=a 300 301with_gnu_ld=$lt_cv_prog_gnu_ld 302 303old_CC=$CC 304old_CFLAGS=$CFLAGS 305 306# Set sane defaults for various variables 307test -z "$CC" && CC=cc 308test -z "$LTCC" && LTCC=$CC 309test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 310test -z "$LD" && LD=ld 311test -z "$ac_objext" && ac_objext=o 312 313_LT_CC_BASENAME([$compiler]) 314 315# Only perform the check for file, if the check method requires it 316test -z "$MAGIC_CMD" && MAGIC_CMD=file 317case $deplibs_check_method in 318file_magic*) 319 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 320 _LT_PATH_MAGIC 321 fi 322 ;; 323esac 324 325# Use C for the default configuration in the libtool script 326LT_SUPPORTED_TAG([CC]) 327_LT_LANG_C_CONFIG 328_LT_LANG_DEFAULT_CONFIG 329_LT_CONFIG_COMMANDS 330])# _LT_SETUP 331 332 333# _LT_PREPARE_SED_QUOTE_VARS 334# -------------------------- 335# Define a few sed substitution that help us do robust quoting. 336m4_defun([_LT_PREPARE_SED_QUOTE_VARS], 337[# Backslashify metacharacters that are still active within 338# double-quoted strings. 339sed_quote_subst='s/\([["`$\\]]\)/\\\1/g' 340 341# Same as above, but do not quote variable references. 342double_quote_subst='s/\([["`\\]]\)/\\\1/g' 343 344# Sed substitution to delay expansion of an escaped shell variable in a 345# double_quote_subst'ed string. 346delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 347 348# Sed substitution to delay expansion of an escaped single quote. 349delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 350 351# Sed substitution to avoid accidental globbing in evaled expressions 352no_glob_subst='s/\*/\\\*/g' 353]) 354 355# _LT_PROG_LTMAIN 356# --------------- 357# Note that this code is called both from 'configure', and 'config.status' 358# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably, 359# 'config.status' has no value for ac_aux_dir unless we are using Automake, 360# so we pass a copy along to make sure it has a sensible value anyway. 361m4_defun([_LT_PROG_LTMAIN], 362[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl 363_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir']) 364ltmain=$ac_aux_dir/ltmain.sh 365])# _LT_PROG_LTMAIN 366 367 368 369# So that we can recreate a full libtool script including additional 370# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS 371# in macros and then make a single call at the end using the 'libtool' 372# label. 373 374 375# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS]) 376# ---------------------------------------- 377# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later. 378m4_define([_LT_CONFIG_LIBTOOL_INIT], 379[m4_ifval([$1], 380 [m4_append([_LT_OUTPUT_LIBTOOL_INIT], 381 [$1 382])])]) 383 384# Initialize. 385m4_define([_LT_OUTPUT_LIBTOOL_INIT]) 386 387 388# _LT_CONFIG_LIBTOOL([COMMANDS]) 389# ------------------------------ 390# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later. 391m4_define([_LT_CONFIG_LIBTOOL], 392[m4_ifval([$1], 393 [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS], 394 [$1 395])])]) 396 397# Initialize. 398m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS]) 399 400 401# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS]) 402# ----------------------------------------------------- 403m4_defun([_LT_CONFIG_SAVE_COMMANDS], 404[_LT_CONFIG_LIBTOOL([$1]) 405_LT_CONFIG_LIBTOOL_INIT([$2]) 406]) 407 408 409# _LT_FORMAT_COMMENT([COMMENT]) 410# ----------------------------- 411# Add leading comment marks to the start of each line, and a trailing 412# full-stop to the whole comment if one is not present already. 413m4_define([_LT_FORMAT_COMMENT], 414[m4_ifval([$1], [ 415m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])], 416 [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.]) 417)]) 418 419 420 421 422 423# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?]) 424# ------------------------------------------------------------------- 425# CONFIGNAME is the name given to the value in the libtool script. 426# VARNAME is the (base) name used in the configure script. 427# VALUE may be 0, 1 or 2 for a computed quote escaped value based on 428# VARNAME. Any other value will be used directly. 429m4_define([_LT_DECL], 430[lt_if_append_uniq([lt_decl_varnames], [$2], [, ], 431 [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name], 432 [m4_ifval([$1], [$1], [$2])]) 433 lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3]) 434 m4_ifval([$4], 435 [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])]) 436 lt_dict_add_subkey([lt_decl_dict], [$2], 437 [tagged?], [m4_ifval([$5], [yes], [no])])]) 438]) 439 440 441# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION]) 442# -------------------------------------------------------- 443m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])]) 444 445 446# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...]) 447# ------------------------------------------------ 448m4_define([lt_decl_tag_varnames], 449[_lt_decl_filter([tagged?], [yes], $@)]) 450 451 452# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..]) 453# --------------------------------------------------------- 454m4_define([_lt_decl_filter], 455[m4_case([$#], 456 [0], [m4_fatal([$0: too few arguments: $#])], 457 [1], [m4_fatal([$0: too few arguments: $#: $1])], 458 [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)], 459 [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)], 460 [lt_dict_filter([lt_decl_dict], $@)])[]dnl 461]) 462 463 464# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...]) 465# -------------------------------------------------- 466m4_define([lt_decl_quote_varnames], 467[_lt_decl_filter([value], [1], $@)]) 468 469 470# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...]) 471# --------------------------------------------------- 472m4_define([lt_decl_dquote_varnames], 473[_lt_decl_filter([value], [2], $@)]) 474 475 476# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...]) 477# --------------------------------------------------- 478m4_define([lt_decl_varnames_tagged], 479[m4_assert([$# <= 2])dnl 480_$0(m4_quote(m4_default([$1], [[, ]])), 481 m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]), 482 m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))]) 483m4_define([_lt_decl_varnames_tagged], 484[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])]) 485 486 487# lt_decl_all_varnames([SEPARATOR], [VARNAME1...]) 488# ------------------------------------------------ 489m4_define([lt_decl_all_varnames], 490[_$0(m4_quote(m4_default([$1], [[, ]])), 491 m4_if([$2], [], 492 m4_quote(lt_decl_varnames), 493 m4_quote(m4_shift($@))))[]dnl 494]) 495m4_define([_lt_decl_all_varnames], 496[lt_join($@, lt_decl_varnames_tagged([$1], 497 lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl 498]) 499 500 501# _LT_CONFIG_STATUS_DECLARE([VARNAME]) 502# ------------------------------------ 503# Quote a variable value, and forward it to 'config.status' so that its 504# declaration there will have the same value as in 'configure'. VARNAME 505# must have a single quote delimited value for this to work. 506m4_define([_LT_CONFIG_STATUS_DECLARE], 507[$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`']) 508 509 510# _LT_CONFIG_STATUS_DECLARATIONS 511# ------------------------------ 512# We delimit libtool config variables with single quotes, so when 513# we write them to config.status, we have to be sure to quote all 514# embedded single quotes properly. In configure, this macro expands 515# each variable declared with _LT_DECL (and _LT_TAGDECL) into: 516# 517# <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`' 518m4_defun([_LT_CONFIG_STATUS_DECLARATIONS], 519[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames), 520 [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])]) 521 522 523# _LT_LIBTOOL_TAGS 524# ---------------- 525# Output comment and list of tags supported by the script 526m4_defun([_LT_LIBTOOL_TAGS], 527[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl 528available_tags='_LT_TAGS'dnl 529]) 530 531 532# _LT_LIBTOOL_DECLARE(VARNAME, [TAG]) 533# ----------------------------------- 534# Extract the dictionary values for VARNAME (optionally with TAG) and 535# expand to a commented shell variable setting: 536# 537# # Some comment about what VAR is for. 538# visible_name=$lt_internal_name 539m4_define([_LT_LIBTOOL_DECLARE], 540[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], 541 [description])))[]dnl 542m4_pushdef([_libtool_name], 543 m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl 544m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])), 545 [0], [_libtool_name=[$]$1], 546 [1], [_libtool_name=$lt_[]$1], 547 [2], [_libtool_name=$lt_[]$1], 548 [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl 549m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl 550]) 551 552 553# _LT_LIBTOOL_CONFIG_VARS 554# ----------------------- 555# Produce commented declarations of non-tagged libtool config variables 556# suitable for insertion in the LIBTOOL CONFIG section of the 'libtool' 557# script. Tagged libtool config variables (even for the LIBTOOL CONFIG 558# section) are produced by _LT_LIBTOOL_TAG_VARS. 559m4_defun([_LT_LIBTOOL_CONFIG_VARS], 560[m4_foreach([_lt_var], 561 m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)), 562 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])]) 563 564 565# _LT_LIBTOOL_TAG_VARS(TAG) 566# ------------------------- 567m4_define([_LT_LIBTOOL_TAG_VARS], 568[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames), 569 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])]) 570 571 572# _LT_TAGVAR(VARNAME, [TAGNAME]) 573# ------------------------------ 574m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])]) 575 576 577# _LT_CONFIG_COMMANDS 578# ------------------- 579# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of 580# variables for single and double quote escaping we saved from calls 581# to _LT_DECL, we can put quote escaped variables declarations 582# into 'config.status', and then the shell code to quote escape them in 583# for loops in 'config.status'. Finally, any additional code accumulated 584# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded. 585m4_defun([_LT_CONFIG_COMMANDS], 586[AC_PROVIDE_IFELSE([LT_OUTPUT], 587 dnl If the libtool generation code has been placed in $CONFIG_LT, 588 dnl instead of duplicating it all over again into config.status, 589 dnl then we will have config.status run $CONFIG_LT later, so it 590 dnl needs to know what name is stored there: 591 [AC_CONFIG_COMMANDS([libtool], 592 [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])], 593 dnl If the libtool generation code is destined for config.status, 594 dnl expand the accumulated commands and init code now: 595 [AC_CONFIG_COMMANDS([libtool], 596 [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])]) 597])#_LT_CONFIG_COMMANDS 598 599 600# Initialize. 601m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT], 602[ 603 604# The HP-UX ksh and POSIX shell print the target directory to stdout 605# if CDPATH is set. 606(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 607 608sed_quote_subst='$sed_quote_subst' 609double_quote_subst='$double_quote_subst' 610delay_variable_subst='$delay_variable_subst' 611_LT_CONFIG_STATUS_DECLARATIONS 612LTCC='$LTCC' 613LTCFLAGS='$LTCFLAGS' 614compiler='$compiler_DEFAULT' 615 616# A function that is used when there is no print builtin or printf. 617func_fallback_echo () 618{ 619 eval 'cat <<_LTECHO_EOF 620\$[]1 621_LTECHO_EOF' 622} 623 624# Quote evaled strings. 625for var in lt_decl_all_varnames([[ \ 626]], lt_decl_quote_varnames); do 627 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 628 *[[\\\\\\\`\\"\\\$]]*) 629 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 630 ;; 631 *) 632 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 633 ;; 634 esac 635done 636 637# Double-quote double-evaled strings. 638for var in lt_decl_all_varnames([[ \ 639]], lt_decl_dquote_varnames); do 640 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 641 *[[\\\\\\\`\\"\\\$]]*) 642 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 643 ;; 644 *) 645 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 646 ;; 647 esac 648done 649 650_LT_OUTPUT_LIBTOOL_INIT 651]) 652 653# _LT_GENERATED_FILE_INIT(FILE, [COMMENT]) 654# ------------------------------------ 655# Generate a child script FILE with all initialization necessary to 656# reuse the environment learned by the parent script, and make the 657# file executable. If COMMENT is supplied, it is inserted after the 658# '#!' sequence but before initialization text begins. After this 659# macro, additional text can be appended to FILE to form the body of 660# the child script. The macro ends with non-zero status if the 661# file could not be fully written (such as if the disk is full). 662m4_ifdef([AS_INIT_GENERATED], 663[m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])], 664[m4_defun([_LT_GENERATED_FILE_INIT], 665[m4_require([AS_PREPARE])]dnl 666[m4_pushdef([AS_MESSAGE_LOG_FD])]dnl 667[lt_write_fail=0 668cat >$1 <<_ASEOF || lt_write_fail=1 669#! $SHELL 670# Generated by $as_me. 671$2 672SHELL=\${CONFIG_SHELL-$SHELL} 673export SHELL 674_ASEOF 675cat >>$1 <<\_ASEOF || lt_write_fail=1 676AS_SHELL_SANITIZE 677_AS_PREPARE 678exec AS_MESSAGE_FD>&1 679_ASEOF 680test 0 = "$lt_write_fail" && chmod +x $1[]dnl 681m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT 682 683# LT_OUTPUT 684# --------- 685# This macro allows early generation of the libtool script (before 686# AC_OUTPUT is called), incase it is used in configure for compilation 687# tests. 688AC_DEFUN([LT_OUTPUT], 689[: ${CONFIG_LT=./config.lt} 690AC_MSG_NOTICE([creating $CONFIG_LT]) 691_LT_GENERATED_FILE_INIT(["$CONFIG_LT"], 692[# Run this file to recreate a libtool stub with the current configuration.]) 693 694cat >>"$CONFIG_LT" <<\_LTEOF 695lt_cl_silent=false 696exec AS_MESSAGE_LOG_FD>>config.log 697{ 698 echo 699 AS_BOX([Running $as_me.]) 700} >&AS_MESSAGE_LOG_FD 701 702lt_cl_help="\ 703'$as_me' creates a local libtool stub from the current configuration, 704for use in further configure time tests before the real libtool is 705generated. 706 707Usage: $[0] [[OPTIONS]] 708 709 -h, --help print this help, then exit 710 -V, --version print version number, then exit 711 -q, --quiet do not print progress messages 712 -d, --debug don't remove temporary files 713 714Report bugs to <bug-libtool@gnu.org>." 715 716lt_cl_version="\ 717m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl 718m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION]) 719configured by $[0], generated by m4_PACKAGE_STRING. 720 721Copyright (C) 2011 Free Software Foundation, Inc. 722This config.lt script is free software; the Free Software Foundation 723gives unlimited permision to copy, distribute and modify it." 724 725while test 0 != $[#] 726do 727 case $[1] in 728 --version | --v* | -V ) 729 echo "$lt_cl_version"; exit 0 ;; 730 --help | --h* | -h ) 731 echo "$lt_cl_help"; exit 0 ;; 732 --debug | --d* | -d ) 733 debug=: ;; 734 --quiet | --q* | --silent | --s* | -q ) 735 lt_cl_silent=: ;; 736 737 -*) AC_MSG_ERROR([unrecognized option: $[1] 738Try '$[0] --help' for more information.]) ;; 739 740 *) AC_MSG_ERROR([unrecognized argument: $[1] 741Try '$[0] --help' for more information.]) ;; 742 esac 743 shift 744done 745 746if $lt_cl_silent; then 747 exec AS_MESSAGE_FD>/dev/null 748fi 749_LTEOF 750 751cat >>"$CONFIG_LT" <<_LTEOF 752_LT_OUTPUT_LIBTOOL_COMMANDS_INIT 753_LTEOF 754 755cat >>"$CONFIG_LT" <<\_LTEOF 756AC_MSG_NOTICE([creating $ofile]) 757_LT_OUTPUT_LIBTOOL_COMMANDS 758AS_EXIT(0) 759_LTEOF 760chmod +x "$CONFIG_LT" 761 762# configure is writing to config.log, but config.lt does its own redirection, 763# appending to config.log, which fails on DOS, as config.log is still kept 764# open by configure. Here we exec the FD to /dev/null, effectively closing 765# config.log, so it can be properly (re)opened and appended to by config.lt. 766lt_cl_success=: 767test yes = "$silent" && 768 lt_config_lt_args="$lt_config_lt_args --quiet" 769exec AS_MESSAGE_LOG_FD>/dev/null 770$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false 771exec AS_MESSAGE_LOG_FD>>config.log 772$lt_cl_success || AS_EXIT(1) 773])# LT_OUTPUT 774 775 776# _LT_CONFIG(TAG) 777# --------------- 778# If TAG is the built-in tag, create an initial libtool script with a 779# default configuration from the untagged config vars. Otherwise add code 780# to config.status for appending the configuration named by TAG from the 781# matching tagged config vars. 782m4_defun([_LT_CONFIG], 783[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 784_LT_CONFIG_SAVE_COMMANDS([ 785 m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl 786 m4_if(_LT_TAG, [C], [ 787 # See if we are running on zsh, and set the options that allow our 788 # commands through without removal of \ escapes. 789 if test -n "${ZSH_VERSION+set}"; then 790 setopt NO_GLOB_SUBST 791 fi 792 793 cfgfile=${ofile}T 794 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 795 $RM "$cfgfile" 796 797 cat <<_LT_EOF >> "$cfgfile" 798#! $SHELL 799# Generated automatically by $as_me ($PACKAGE) $VERSION 800# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 801# NOTE: Changes made to this file will be lost: look at ltmain.sh. 802 803# Provide generalized library-building support services. 804# Written by Gordon Matzigkeit, 1996 805 806_LT_COPYING 807_LT_LIBTOOL_TAGS 808 809# Configured defaults for sys_lib_dlsearch_path munging. 810: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 811 812# ### BEGIN LIBTOOL CONFIG 813_LT_LIBTOOL_CONFIG_VARS 814_LT_LIBTOOL_TAG_VARS 815# ### END LIBTOOL CONFIG 816 817_LT_EOF 818 819 cat <<'_LT_EOF' >> "$cfgfile" 820 821# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 822 823_LT_PREPARE_MUNGE_PATH_LIST 824_LT_PREPARE_CC_BASENAME 825 826# ### END FUNCTIONS SHARED WITH CONFIGURE 827 828_LT_EOF 829 830 case $host_os in 831 aix3*) 832 cat <<\_LT_EOF >> "$cfgfile" 833# AIX sometimes has problems with the GCC collect2 program. For some 834# reason, if we set the COLLECT_NAMES environment variable, the problems 835# vanish in a puff of smoke. 836if test set != "${COLLECT_NAMES+set}"; then 837 COLLECT_NAMES= 838 export COLLECT_NAMES 839fi 840_LT_EOF 841 ;; 842 esac 843 844 _LT_PROG_LTMAIN 845 846 # We use sed instead of cat because bash on DJGPP gets confused if 847 # if finds mixed CR/LF and LF-only lines. Since sed operates in 848 # text mode, it properly converts lines to CR/LF. This bash problem 849 # is reportedly fixed, but why not run on old versions too? 850 sed '$q' "$ltmain" >> "$cfgfile" \ 851 || (rm -f "$cfgfile"; exit 1) 852 853 mv -f "$cfgfile" "$ofile" || 854 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 855 chmod +x "$ofile" 856], 857[cat <<_LT_EOF >> "$ofile" 858 859dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded 860dnl in a comment (ie after a #). 861# ### BEGIN LIBTOOL TAG CONFIG: $1 862_LT_LIBTOOL_TAG_VARS(_LT_TAG) 863# ### END LIBTOOL TAG CONFIG: $1 864_LT_EOF 865])dnl /m4_if 866], 867[m4_if([$1], [], [ 868 PACKAGE='$PACKAGE' 869 VERSION='$VERSION' 870 RM='$RM' 871 ofile='$ofile'], []) 872])dnl /_LT_CONFIG_SAVE_COMMANDS 873])# _LT_CONFIG 874 875 876# LT_SUPPORTED_TAG(TAG) 877# --------------------- 878# Trace this macro to discover what tags are supported by the libtool 879# --tag option, using: 880# autoconf --trace 'LT_SUPPORTED_TAG:$1' 881AC_DEFUN([LT_SUPPORTED_TAG], []) 882 883 884# C support is built-in for now 885m4_define([_LT_LANG_C_enabled], []) 886m4_define([_LT_TAGS], []) 887 888 889# LT_LANG(LANG) 890# ------------- 891# Enable libtool support for the given language if not already enabled. 892AC_DEFUN([LT_LANG], 893[AC_BEFORE([$0], [LT_OUTPUT])dnl 894m4_case([$1], 895 [C], [_LT_LANG(C)], 896 [C++], [_LT_LANG(CXX)], 897 [Go], [_LT_LANG(GO)], 898 [Java], [_LT_LANG(GCJ)], 899 [Fortran 77], [_LT_LANG(F77)], 900 [Fortran], [_LT_LANG(FC)], 901 [Windows Resource], [_LT_LANG(RC)], 902 [m4_ifdef([_LT_LANG_]$1[_CONFIG], 903 [_LT_LANG($1)], 904 [m4_fatal([$0: unsupported language: "$1"])])])dnl 905])# LT_LANG 906 907 908# _LT_LANG(LANGNAME) 909# ------------------ 910m4_defun([_LT_LANG], 911[m4_ifdef([_LT_LANG_]$1[_enabled], [], 912 [LT_SUPPORTED_TAG([$1])dnl 913 m4_append([_LT_TAGS], [$1 ])dnl 914 m4_define([_LT_LANG_]$1[_enabled], [])dnl 915 _LT_LANG_$1_CONFIG($1)])dnl 916])# _LT_LANG 917 918 919m4_ifndef([AC_PROG_GO], [ 920# NOTE: This macro has been submitted for inclusion into # 921# GNU Autoconf as AC_PROG_GO. When it is available in # 922# a released version of Autoconf we should remove this # 923# macro and use it instead. # 924m4_defun([AC_PROG_GO], 925[AC_LANG_PUSH(Go)dnl 926AC_ARG_VAR([GOC], [Go compiler command])dnl 927AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl 928_AC_ARG_VAR_LDFLAGS()dnl 929AC_CHECK_TOOL(GOC, gccgo) 930if test -z "$GOC"; then 931 if test -n "$ac_tool_prefix"; then 932 AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo]) 933 fi 934fi 935if test -z "$GOC"; then 936 AC_CHECK_PROG(GOC, gccgo, gccgo, false) 937fi 938])#m4_defun 939])#m4_ifndef 940 941 942# _LT_LANG_DEFAULT_CONFIG 943# ----------------------- 944m4_defun([_LT_LANG_DEFAULT_CONFIG], 945[AC_PROVIDE_IFELSE([AC_PROG_CXX], 946 [LT_LANG(CXX)], 947 [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])]) 948 949AC_PROVIDE_IFELSE([AC_PROG_F77], 950 [LT_LANG(F77)], 951 [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])]) 952 953AC_PROVIDE_IFELSE([AC_PROG_FC], 954 [LT_LANG(FC)], 955 [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])]) 956 957dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal 958dnl pulling things in needlessly. 959AC_PROVIDE_IFELSE([AC_PROG_GCJ], 960 [LT_LANG(GCJ)], 961 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], 962 [LT_LANG(GCJ)], 963 [AC_PROVIDE_IFELSE([LT_PROG_GCJ], 964 [LT_LANG(GCJ)], 965 [m4_ifdef([AC_PROG_GCJ], 966 [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])]) 967 m4_ifdef([A][M_PROG_GCJ], 968 [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])]) 969 m4_ifdef([LT_PROG_GCJ], 970 [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])]) 971 972AC_PROVIDE_IFELSE([AC_PROG_GO], 973 [LT_LANG(GO)], 974 [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])]) 975 976AC_PROVIDE_IFELSE([LT_PROG_RC], 977 [LT_LANG(RC)], 978 [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])]) 979])# _LT_LANG_DEFAULT_CONFIG 980 981# Obsolete macros: 982AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)]) 983AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)]) 984AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)]) 985AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)]) 986AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)]) 987dnl aclocal-1.4 backwards compatibility: 988dnl AC_DEFUN([AC_LIBTOOL_CXX], []) 989dnl AC_DEFUN([AC_LIBTOOL_F77], []) 990dnl AC_DEFUN([AC_LIBTOOL_FC], []) 991dnl AC_DEFUN([AC_LIBTOOL_GCJ], []) 992dnl AC_DEFUN([AC_LIBTOOL_RC], []) 993 994 995# _LT_TAG_COMPILER 996# ---------------- 997m4_defun([_LT_TAG_COMPILER], 998[AC_REQUIRE([AC_PROG_CC])dnl 999 1000_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl 1001_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl 1002_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl 1003_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl 1004 1005# If no C compiler was specified, use CC. 1006LTCC=${LTCC-"$CC"} 1007 1008# If no C compiler flags were specified, use CFLAGS. 1009LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 1010 1011# Allow CC to be a program name with arguments. 1012compiler=$CC 1013])# _LT_TAG_COMPILER 1014 1015 1016# _LT_COMPILER_BOILERPLATE 1017# ------------------------ 1018# Check for compiler boilerplate output or warnings with 1019# the simple compiler test code. 1020m4_defun([_LT_COMPILER_BOILERPLATE], 1021[m4_require([_LT_DECL_SED])dnl 1022ac_outfile=conftest.$ac_objext 1023echo "$lt_simple_compile_test_code" >conftest.$ac_ext 1024eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 1025_lt_compiler_boilerplate=`cat conftest.err` 1026$RM conftest* 1027])# _LT_COMPILER_BOILERPLATE 1028 1029 1030# _LT_LINKER_BOILERPLATE 1031# ---------------------- 1032# Check for linker boilerplate output or warnings with 1033# the simple link test code. 1034m4_defun([_LT_LINKER_BOILERPLATE], 1035[m4_require([_LT_DECL_SED])dnl 1036ac_outfile=conftest.$ac_objext 1037echo "$lt_simple_link_test_code" >conftest.$ac_ext 1038eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 1039_lt_linker_boilerplate=`cat conftest.err` 1040$RM -r conftest* 1041])# _LT_LINKER_BOILERPLATE 1042 1043# _LT_REQUIRED_DARWIN_CHECKS 1044# ------------------------- 1045m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[ 1046 case $host_os in 1047 rhapsody* | darwin*) 1048 AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:]) 1049 AC_CHECK_TOOL([NMEDIT], [nmedit], [:]) 1050 AC_CHECK_TOOL([LIPO], [lipo], [:]) 1051 AC_CHECK_TOOL([OTOOL], [otool], [:]) 1052 AC_CHECK_TOOL([OTOOL64], [otool64], [:]) 1053 _LT_DECL([], [DSYMUTIL], [1], 1054 [Tool to manipulate archived DWARF debug symbol files on Mac OS X]) 1055 _LT_DECL([], [NMEDIT], [1], 1056 [Tool to change global to local symbols on Mac OS X]) 1057 _LT_DECL([], [LIPO], [1], 1058 [Tool to manipulate fat objects and archives on Mac OS X]) 1059 _LT_DECL([], [OTOOL], [1], 1060 [ldd/readelf like tool for Mach-O binaries on Mac OS X]) 1061 _LT_DECL([], [OTOOL64], [1], 1062 [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4]) 1063 1064 AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod], 1065 [lt_cv_apple_cc_single_mod=no 1066 if test -z "$LT_MULTI_MODULE"; then 1067 # By default we will add the -single_module flag. You can override 1068 # by either setting the environment variable LT_MULTI_MODULE 1069 # non-empty at configure time, or by adding -multi_module to the 1070 # link flags. 1071 rm -rf libconftest.dylib* 1072 echo "int foo(void){return 1;}" > conftest.c 1073 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 1074-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD 1075 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 1076 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 1077 _lt_result=$? 1078 # If there is a non-empty error log, and "single_module" 1079 # appears in it, assume the flag caused a linker warning 1080 if test -s conftest.err && $GREP single_module conftest.err; then 1081 cat conftest.err >&AS_MESSAGE_LOG_FD 1082 # Otherwise, if the output was created with a 0 exit code from 1083 # the compiler, it worked. 1084 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 1085 lt_cv_apple_cc_single_mod=yes 1086 else 1087 cat conftest.err >&AS_MESSAGE_LOG_FD 1088 fi 1089 rm -rf libconftest.dylib* 1090 rm -f conftest.* 1091 fi]) 1092 1093 AC_CACHE_CHECK([for -exported_symbols_list linker flag], 1094 [lt_cv_ld_exported_symbols_list], 1095 [lt_cv_ld_exported_symbols_list=no 1096 save_LDFLAGS=$LDFLAGS 1097 echo "_main" > conftest.sym 1098 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 1099 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], 1100 [lt_cv_ld_exported_symbols_list=yes], 1101 [lt_cv_ld_exported_symbols_list=no]) 1102 LDFLAGS=$save_LDFLAGS 1103 ]) 1104 1105 AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load], 1106 [lt_cv_ld_force_load=no 1107 cat > conftest.c << _LT_EOF 1108int forced_loaded() { return 2;} 1109_LT_EOF 1110 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD 1111 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD 1112 echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD 1113 $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD 1114 echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD 1115 $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD 1116 cat > conftest.c << _LT_EOF 1117int main() { return 0;} 1118_LT_EOF 1119 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD 1120 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 1121 _lt_result=$? 1122 if test -s conftest.err && $GREP force_load conftest.err; then 1123 cat conftest.err >&AS_MESSAGE_LOG_FD 1124 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 1125 lt_cv_ld_force_load=yes 1126 else 1127 cat conftest.err >&AS_MESSAGE_LOG_FD 1128 fi 1129 rm -f conftest.err libconftest.a conftest conftest.c 1130 rm -rf conftest.dSYM 1131 ]) 1132 case $host_os in 1133 rhapsody* | darwin1.[[012]]) 1134 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 1135 darwin1.*) 1136 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 1137 darwin*) # darwin 5.x on 1138 # if running on 10.5 or later, the deployment target defaults 1139 # to the OS version, if on x86, and 10.4, the deployment 1140 # target defaults to 10.4. Don't you love it? 1141 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 1142 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*) 1143 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 1144 10.[[012]][[,.]]*) 1145 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 1146 10.*) 1147 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 1148 esac 1149 ;; 1150 esac 1151 if test yes = "$lt_cv_apple_cc_single_mod"; then 1152 _lt_dar_single_mod='$single_module' 1153 fi 1154 if test yes = "$lt_cv_ld_exported_symbols_list"; then 1155 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 1156 else 1157 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 1158 fi 1159 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 1160 _lt_dsymutil='~$DSYMUTIL $lib || :' 1161 else 1162 _lt_dsymutil= 1163 fi 1164 ;; 1165 esac 1166]) 1167 1168 1169# _LT_DARWIN_LINKER_FEATURES([TAG]) 1170# --------------------------------- 1171# Checks for linker and compiler features on darwin 1172m4_defun([_LT_DARWIN_LINKER_FEATURES], 1173[ 1174 m4_require([_LT_REQUIRED_DARWIN_CHECKS]) 1175 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 1176 _LT_TAGVAR(hardcode_direct, $1)=no 1177 _LT_TAGVAR(hardcode_automatic, $1)=yes 1178 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 1179 if test yes = "$lt_cv_ld_force_load"; then 1180 _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 1181 m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes], 1182 [FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes]) 1183 else 1184 _LT_TAGVAR(whole_archive_flag_spec, $1)='' 1185 fi 1186 _LT_TAGVAR(link_all_deplibs, $1)=yes 1187 _LT_TAGVAR(allow_undefined_flag, $1)=$_lt_dar_allow_undefined 1188 case $cc_basename in 1189 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 1190 *) _lt_dar_can_shared=$GCC ;; 1191 esac 1192 if test yes = "$_lt_dar_can_shared"; then 1193 output_verbose_link_cmd=func_echo_all 1194 _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" 1195 _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 1196 _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" 1197 _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" 1198 m4_if([$1], [CXX], 1199[ if test yes != "$lt_cv_apple_cc_single_mod"; then 1200 _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" 1201 _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" 1202 fi 1203],[]) 1204 else 1205 _LT_TAGVAR(ld_shlibs, $1)=no 1206 fi 1207]) 1208 1209# _LT_SYS_MODULE_PATH_AIX([TAGNAME]) 1210# ---------------------------------- 1211# Links a minimal program and checks the executable 1212# for the system default hardcoded library path. In most cases, 1213# this is /usr/lib:/lib, but when the MPI compilers are used 1214# the location of the communication and MPI libs are included too. 1215# If we don't find anything, use the default library path according 1216# to the aix ld manual. 1217# Store the results from the different compilers for each TAGNAME. 1218# Allow to override them for all tags through lt_cv_aix_libpath. 1219m4_defun([_LT_SYS_MODULE_PATH_AIX], 1220[m4_require([_LT_DECL_SED])dnl 1221if test set = "${lt_cv_aix_libpath+set}"; then 1222 aix_libpath=$lt_cv_aix_libpath 1223else 1224 AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])], 1225 [AC_LINK_IFELSE([AC_LANG_PROGRAM],[ 1226 lt_aix_libpath_sed='[ 1227 /Import File Strings/,/^$/ { 1228 /^0/ { 1229 s/^0 *\([^ ]*\) *$/\1/ 1230 p 1231 } 1232 }]' 1233 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 1234 # Check for a 64-bit object if we didn't find anything. 1235 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then 1236 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 1237 fi],[]) 1238 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then 1239 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=/usr/lib:/lib 1240 fi 1241 ]) 1242 aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1]) 1243fi 1244])# _LT_SYS_MODULE_PATH_AIX 1245 1246 1247# _LT_SHELL_INIT(ARG) 1248# ------------------- 1249m4_define([_LT_SHELL_INIT], 1250[m4_divert_text([M4SH-INIT], [$1 1251])])# _LT_SHELL_INIT 1252 1253 1254 1255# _LT_PROG_ECHO_BACKSLASH 1256# ----------------------- 1257# Find how we can fake an echo command that does not interpret backslash. 1258# In particular, with Autoconf 2.60 or later we add some code to the start 1259# of the generated configure script that will find a shell with a builtin 1260# printf (that we can use as an echo command). 1261m4_defun([_LT_PROG_ECHO_BACKSLASH], 1262[ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 1263ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 1264ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 1265 1266AC_MSG_CHECKING([how to print strings]) 1267# Test print first, because it will be a builtin if present. 1268if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 1269 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 1270 ECHO='print -r --' 1271elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 1272 ECHO='printf %s\n' 1273else 1274 # Use this function as a fallback that always works. 1275 func_fallback_echo () 1276 { 1277 eval 'cat <<_LTECHO_EOF 1278$[]1 1279_LTECHO_EOF' 1280 } 1281 ECHO='func_fallback_echo' 1282fi 1283 1284# func_echo_all arg... 1285# Invoke $ECHO with all args, space-separated. 1286func_echo_all () 1287{ 1288 $ECHO "$*" 1289} 1290 1291case $ECHO in 1292 printf*) AC_MSG_RESULT([printf]) ;; 1293 print*) AC_MSG_RESULT([print -r]) ;; 1294 *) AC_MSG_RESULT([cat]) ;; 1295esac 1296 1297m4_ifdef([_AS_DETECT_SUGGESTED], 1298[_AS_DETECT_SUGGESTED([ 1299 test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || ( 1300 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 1301 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 1302 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 1303 PATH=/empty FPATH=/empty; export PATH FPATH 1304 test "X`printf %s $ECHO`" = "X$ECHO" \ 1305 || test "X`print -r -- $ECHO`" = "X$ECHO" )])]) 1306 1307_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts]) 1308_LT_DECL([], [ECHO], [1], [An echo program that protects backslashes]) 1309])# _LT_PROG_ECHO_BACKSLASH 1310 1311 1312# _LT_WITH_SYSROOT 1313# ---------------- 1314AC_DEFUN([_LT_WITH_SYSROOT], 1315[AC_MSG_CHECKING([for sysroot]) 1316AC_ARG_WITH([sysroot], 1317[AS_HELP_STRING([--with-sysroot@<:@=DIR@:>@], 1318 [Search for dependent libraries within DIR (or the compiler's sysroot 1319 if not specified).])], 1320[], [with_sysroot=no]) 1321 1322dnl lt_sysroot will always be passed unquoted. We quote it here 1323dnl in case the user passed a directory name. 1324lt_sysroot= 1325case $with_sysroot in #( 1326 yes) 1327 if test yes = "$GCC"; then 1328 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 1329 fi 1330 ;; #( 1331 /*) 1332 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 1333 ;; #( 1334 no|'') 1335 ;; #( 1336 *) 1337 AC_MSG_RESULT([$with_sysroot]) 1338 AC_MSG_ERROR([The sysroot must be an absolute path.]) 1339 ;; 1340esac 1341 1342 AC_MSG_RESULT([${lt_sysroot:-no}]) 1343_LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl 1344[dependent libraries, and where our libraries should be installed.])]) 1345 1346# _LT_ENABLE_LOCK 1347# --------------- 1348m4_defun([_LT_ENABLE_LOCK], 1349[AC_ARG_ENABLE([libtool-lock], 1350 [AS_HELP_STRING([--disable-libtool-lock], 1351 [avoid locking (might break parallel builds)])]) 1352test no = "$enable_libtool_lock" || enable_libtool_lock=yes 1353 1354# Some flags need to be propagated to the compiler or linker for good 1355# libtool support. 1356case $host in 1357ia64-*-hpux*) 1358 # Find out what ABI is being produced by ac_compile, and set mode 1359 # options accordingly. 1360 echo 'int i;' > conftest.$ac_ext 1361 if AC_TRY_EVAL(ac_compile); then 1362 case `/usr/bin/file conftest.$ac_objext` in 1363 *ELF-32*) 1364 HPUX_IA64_MODE=32 1365 ;; 1366 *ELF-64*) 1367 HPUX_IA64_MODE=64 1368 ;; 1369 esac 1370 fi 1371 rm -rf conftest* 1372 ;; 1373*-*-irix6*) 1374 # Find out what ABI is being produced by ac_compile, and set linker 1375 # options accordingly. 1376 echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext 1377 if AC_TRY_EVAL(ac_compile); then 1378 if test yes = "$lt_cv_prog_gnu_ld"; then 1379 case `/usr/bin/file conftest.$ac_objext` in 1380 *32-bit*) 1381 LD="${LD-ld} -melf32bsmip" 1382 ;; 1383 *N32*) 1384 LD="${LD-ld} -melf32bmipn32" 1385 ;; 1386 *64-bit*) 1387 LD="${LD-ld} -melf64bmip" 1388 ;; 1389 esac 1390 else 1391 case `/usr/bin/file conftest.$ac_objext` in 1392 *32-bit*) 1393 LD="${LD-ld} -32" 1394 ;; 1395 *N32*) 1396 LD="${LD-ld} -n32" 1397 ;; 1398 *64-bit*) 1399 LD="${LD-ld} -64" 1400 ;; 1401 esac 1402 fi 1403 fi 1404 rm -rf conftest* 1405 ;; 1406 1407mips64*-*linux*) 1408 # Find out what ABI is being produced by ac_compile, and set linker 1409 # options accordingly. 1410 echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext 1411 if AC_TRY_EVAL(ac_compile); then 1412 emul=elf 1413 case `/usr/bin/file conftest.$ac_objext` in 1414 *32-bit*) 1415 emul="${emul}32" 1416 ;; 1417 *64-bit*) 1418 emul="${emul}64" 1419 ;; 1420 esac 1421 case `/usr/bin/file conftest.$ac_objext` in 1422 *MSB*) 1423 emul="${emul}btsmip" 1424 ;; 1425 *LSB*) 1426 emul="${emul}ltsmip" 1427 ;; 1428 esac 1429 case `/usr/bin/file conftest.$ac_objext` in 1430 *N32*) 1431 emul="${emul}n32" 1432 ;; 1433 esac 1434 LD="${LD-ld} -m $emul" 1435 fi 1436 rm -rf conftest* 1437 ;; 1438 1439x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 1440s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 1441 # Find out what ABI is being produced by ac_compile, and set linker 1442 # options accordingly. Note that the listed cases only cover the 1443 # situations where additional linker options are needed (such as when 1444 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 1445 # vice versa); the common cases where no linker options are needed do 1446 # not appear in the list. 1447 echo 'int i;' > conftest.$ac_ext 1448 if AC_TRY_EVAL(ac_compile); then 1449 case `/usr/bin/file conftest.o` in 1450 *32-bit*) 1451 case $host in 1452 x86_64-*kfreebsd*-gnu) 1453 LD="${LD-ld} -m elf_i386_fbsd" 1454 ;; 1455 x86_64-*linux*) 1456 case `/usr/bin/file conftest.o` in 1457 *x86-64*) 1458 LD="${LD-ld} -m elf32_x86_64" 1459 ;; 1460 *) 1461 LD="${LD-ld} -m elf_i386" 1462 ;; 1463 esac 1464 ;; 1465 powerpc64le-*linux*) 1466 LD="${LD-ld} -m elf32lppclinux" 1467 ;; 1468 powerpc64-*linux*) 1469 LD="${LD-ld} -m elf32ppclinux" 1470 ;; 1471 s390x-*linux*) 1472 LD="${LD-ld} -m elf_s390" 1473 ;; 1474 sparc64-*linux*) 1475 LD="${LD-ld} -m elf32_sparc" 1476 ;; 1477 esac 1478 ;; 1479 *64-bit*) 1480 case $host in 1481 x86_64-*kfreebsd*-gnu) 1482 LD="${LD-ld} -m elf_x86_64_fbsd" 1483 ;; 1484 x86_64-*linux*) 1485 LD="${LD-ld} -m elf_x86_64" 1486 ;; 1487 powerpcle-*linux*) 1488 LD="${LD-ld} -m elf64lppc" 1489 ;; 1490 powerpc-*linux*) 1491 LD="${LD-ld} -m elf64ppc" 1492 ;; 1493 s390*-*linux*|s390*-*tpf*) 1494 LD="${LD-ld} -m elf64_s390" 1495 ;; 1496 sparc*-*linux*) 1497 LD="${LD-ld} -m elf64_sparc" 1498 ;; 1499 esac 1500 ;; 1501 esac 1502 fi 1503 rm -rf conftest* 1504 ;; 1505 1506*-*-sco3.2v5*) 1507 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 1508 SAVE_CFLAGS=$CFLAGS 1509 CFLAGS="$CFLAGS -belf" 1510 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, 1511 [AC_LANG_PUSH(C) 1512 AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) 1513 AC_LANG_POP]) 1514 if test yes != "$lt_cv_cc_needs_belf"; then 1515 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 1516 CFLAGS=$SAVE_CFLAGS 1517 fi 1518 ;; 1519*-*solaris*) 1520 # Find out what ABI is being produced by ac_compile, and set linker 1521 # options accordingly. 1522 echo 'int i;' > conftest.$ac_ext 1523 if AC_TRY_EVAL(ac_compile); then 1524 case `/usr/bin/file conftest.o` in 1525 *64-bit*) 1526 case $lt_cv_prog_gnu_ld in 1527 yes*) 1528 case $host in 1529 i?86-*-solaris*|x86_64-*-solaris*) 1530 LD="${LD-ld} -m elf_x86_64" 1531 ;; 1532 sparc*-*-solaris*) 1533 LD="${LD-ld} -m elf64_sparc" 1534 ;; 1535 esac 1536 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 1537 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 1538 LD=${LD-ld}_sol2 1539 fi 1540 ;; 1541 *) 1542 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 1543 LD="${LD-ld} -64" 1544 fi 1545 ;; 1546 esac 1547 ;; 1548 esac 1549 fi 1550 rm -rf conftest* 1551 ;; 1552esac 1553 1554need_locks=$enable_libtool_lock 1555])# _LT_ENABLE_LOCK 1556 1557 1558# _LT_PROG_AR 1559# ----------- 1560m4_defun([_LT_PROG_AR], 1561[AC_CHECK_TOOLS(AR, [ar], false) 1562: ${AR=ar} 1563: ${AR_FLAGS=cru} 1564_LT_DECL([], [AR], [1], [The archiver]) 1565_LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive]) 1566 1567AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file], 1568 [lt_cv_ar_at_file=no 1569 AC_COMPILE_IFELSE([AC_LANG_PROGRAM], 1570 [echo conftest.$ac_objext > conftest.lst 1571 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD' 1572 AC_TRY_EVAL([lt_ar_try]) 1573 if test 0 -eq "$ac_status"; then 1574 # Ensure the archiver fails upon bogus file names. 1575 rm -f conftest.$ac_objext libconftest.a 1576 AC_TRY_EVAL([lt_ar_try]) 1577 if test 0 -ne "$ac_status"; then 1578 lt_cv_ar_at_file=@ 1579 fi 1580 fi 1581 rm -f conftest.* libconftest.a 1582 ]) 1583 ]) 1584 1585if test no = "$lt_cv_ar_at_file"; then 1586 archiver_list_spec= 1587else 1588 archiver_list_spec=$lt_cv_ar_at_file 1589fi 1590_LT_DECL([], [archiver_list_spec], [1], 1591 [How to feed a file listing to the archiver]) 1592])# _LT_PROG_AR 1593 1594 1595# _LT_CMD_OLD_ARCHIVE 1596# ------------------- 1597m4_defun([_LT_CMD_OLD_ARCHIVE], 1598[_LT_PROG_AR 1599 1600AC_CHECK_TOOL(STRIP, strip, :) 1601test -z "$STRIP" && STRIP=: 1602_LT_DECL([], [STRIP], [1], [A symbol stripping program]) 1603 1604AC_CHECK_TOOL(RANLIB, ranlib, :) 1605test -z "$RANLIB" && RANLIB=: 1606_LT_DECL([], [RANLIB], [1], 1607 [Commands used to install an old-style archive]) 1608 1609# Determine commands to create old-style static archives. 1610old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 1611old_postinstall_cmds='chmod 644 $oldlib' 1612old_postuninstall_cmds= 1613 1614if test -n "$RANLIB"; then 1615 case $host_os in 1616 bitrig* | openbsd*) 1617 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 1618 ;; 1619 *) 1620 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 1621 ;; 1622 esac 1623 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 1624fi 1625 1626case $host_os in 1627 darwin*) 1628 lock_old_archive_extraction=yes ;; 1629 *) 1630 lock_old_archive_extraction=no ;; 1631esac 1632_LT_DECL([], [old_postinstall_cmds], [2]) 1633_LT_DECL([], [old_postuninstall_cmds], [2]) 1634_LT_TAGDECL([], [old_archive_cmds], [2], 1635 [Commands used to build an old-style archive]) 1636_LT_DECL([], [lock_old_archive_extraction], [0], 1637 [Whether to use a lock for old archive extraction]) 1638])# _LT_CMD_OLD_ARCHIVE 1639 1640 1641# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, 1642# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) 1643# ---------------------------------------------------------------- 1644# Check whether the given compiler option works 1645AC_DEFUN([_LT_COMPILER_OPTION], 1646[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 1647m4_require([_LT_DECL_SED])dnl 1648AC_CACHE_CHECK([$1], [$2], 1649 [$2=no 1650 m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) 1651 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 1652 lt_compiler_flag="$3" ## exclude from sc_useless_quotes_in_assignment 1653 # Insert the option either (1) after the last *FLAGS variable, or 1654 # (2) before a word containing "conftest.", or (3) at the end. 1655 # Note that $ac_compile itself does not contain backslashes and begins 1656 # with a dollar sign (not a hyphen), so the echo should work correctly. 1657 # The option is referenced via a variable to avoid confusing sed. 1658 lt_compile=`echo "$ac_compile" | $SED \ 1659 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 1660 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ 1661 -e 's:$: $lt_compiler_flag:'` 1662 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) 1663 (eval "$lt_compile" 2>conftest.err) 1664 ac_status=$? 1665 cat conftest.err >&AS_MESSAGE_LOG_FD 1666 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 1667 if (exit $ac_status) && test -s "$ac_outfile"; then 1668 # The compiler can only warn and ignore the option if not recognized 1669 # So say no if there are warnings other than the usual output. 1670 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 1671 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 1672 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 1673 $2=yes 1674 fi 1675 fi 1676 $RM conftest* 1677]) 1678 1679if test yes = "[$]$2"; then 1680 m4_if([$5], , :, [$5]) 1681else 1682 m4_if([$6], , :, [$6]) 1683fi 1684])# _LT_COMPILER_OPTION 1685 1686# Old name: 1687AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION]) 1688dnl aclocal-1.4 backwards compatibility: 1689dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], []) 1690 1691 1692# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, 1693# [ACTION-SUCCESS], [ACTION-FAILURE]) 1694# ---------------------------------------------------- 1695# Check whether the given linker option works 1696AC_DEFUN([_LT_LINKER_OPTION], 1697[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 1698m4_require([_LT_DECL_SED])dnl 1699AC_CACHE_CHECK([$1], [$2], 1700 [$2=no 1701 save_LDFLAGS=$LDFLAGS 1702 LDFLAGS="$LDFLAGS $3" 1703 echo "$lt_simple_link_test_code" > conftest.$ac_ext 1704 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 1705 # The linker can only warn and ignore the option if not recognized 1706 # So say no if there are warnings 1707 if test -s conftest.err; then 1708 # Append any errors to the config.log. 1709 cat conftest.err 1>&AS_MESSAGE_LOG_FD 1710 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 1711 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 1712 if diff conftest.exp conftest.er2 >/dev/null; then 1713 $2=yes 1714 fi 1715 else 1716 $2=yes 1717 fi 1718 fi 1719 $RM -r conftest* 1720 LDFLAGS=$save_LDFLAGS 1721]) 1722 1723if test yes = "[$]$2"; then 1724 m4_if([$4], , :, [$4]) 1725else 1726 m4_if([$5], , :, [$5]) 1727fi 1728])# _LT_LINKER_OPTION 1729 1730# Old name: 1731AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION]) 1732dnl aclocal-1.4 backwards compatibility: 1733dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], []) 1734 1735 1736# LT_CMD_MAX_LEN 1737#--------------- 1738AC_DEFUN([LT_CMD_MAX_LEN], 1739[AC_REQUIRE([AC_CANONICAL_HOST])dnl 1740# find the maximum length of command line arguments 1741AC_MSG_CHECKING([the maximum length of command line arguments]) 1742AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl 1743 i=0 1744 teststring=ABCD 1745 1746 case $build_os in 1747 msdosdjgpp*) 1748 # On DJGPP, this test can blow up pretty badly due to problems in libc 1749 # (any single argument exceeding 2000 bytes causes a buffer overrun 1750 # during glob expansion). Even if it were fixed, the result of this 1751 # check would be larger than it should be. 1752 lt_cv_sys_max_cmd_len=12288; # 12K is about right 1753 ;; 1754 1755 gnu*) 1756 # Under GNU Hurd, this test is not required because there is 1757 # no limit to the length of command line arguments. 1758 # Libtool will interpret -1 as no limit whatsoever 1759 lt_cv_sys_max_cmd_len=-1; 1760 ;; 1761 1762 cygwin* | mingw* | cegcc*) 1763 # On Win9x/ME, this test blows up -- it succeeds, but takes 1764 # about 5 minutes as the teststring grows exponentially. 1765 # Worse, since 9x/ME are not pre-emptively multitasking, 1766 # you end up with a "frozen" computer, even though with patience 1767 # the test eventually succeeds (with a max line length of 256k). 1768 # Instead, let's just punt: use the minimum linelength reported by 1769 # all of the supported platforms: 8192 (on NT/2K/XP). 1770 lt_cv_sys_max_cmd_len=8192; 1771 ;; 1772 1773 mint*) 1774 # On MiNT this can take a long time and run out of memory. 1775 lt_cv_sys_max_cmd_len=8192; 1776 ;; 1777 1778 amigaos*) 1779 # On AmigaOS with pdksh, this test takes hours, literally. 1780 # So we just punt and use a minimum line length of 8192. 1781 lt_cv_sys_max_cmd_len=8192; 1782 ;; 1783 1784 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 1785 # This has been around since 386BSD, at least. Likely further. 1786 if test -x /sbin/sysctl; then 1787 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 1788 elif test -x /usr/sbin/sysctl; then 1789 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 1790 else 1791 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 1792 fi 1793 # And add a safety zone 1794 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 1795 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 1796 ;; 1797 1798 interix*) 1799 # We know the value 262144 and hardcode it with a safety zone (like BSD) 1800 lt_cv_sys_max_cmd_len=196608 1801 ;; 1802 1803 os2*) 1804 # The test takes a long time on OS/2. 1805 lt_cv_sys_max_cmd_len=8192 1806 ;; 1807 1808 osf*) 1809 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 1810 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 1811 # nice to cause kernel panics so lets avoid the loop below. 1812 # First set a reasonable default. 1813 lt_cv_sys_max_cmd_len=16384 1814 # 1815 if test -x /sbin/sysconfig; then 1816 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 1817 *1*) lt_cv_sys_max_cmd_len=-1 ;; 1818 esac 1819 fi 1820 ;; 1821 sco3.2v5*) 1822 lt_cv_sys_max_cmd_len=102400 1823 ;; 1824 sysv5* | sco5v6* | sysv4.2uw2*) 1825 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 1826 if test -n "$kargmax"; then 1827 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` 1828 else 1829 lt_cv_sys_max_cmd_len=32768 1830 fi 1831 ;; 1832 *) 1833 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 1834 if test -n "$lt_cv_sys_max_cmd_len" && \ 1835 test undefined != "$lt_cv_sys_max_cmd_len"; then 1836 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 1837 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 1838 else 1839 # Make teststring a little bigger before we do anything with it. 1840 # a 1K string should be a reasonable start. 1841 for i in 1 2 3 4 5 6 7 8; do 1842 teststring=$teststring$teststring 1843 done 1844 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 1845 # If test is not a shell built-in, we'll probably end up computing a 1846 # maximum length that is only half of the actual maximum length, but 1847 # we can't tell. 1848 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 1849 = "X$teststring$teststring"; } >/dev/null 2>&1 && 1850 test 17 != "$i" # 1/2 MB should be enough 1851 do 1852 i=`expr $i + 1` 1853 teststring=$teststring$teststring 1854 done 1855 # Only check the string length outside the loop. 1856 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 1857 teststring= 1858 # Add a significant safety factor because C++ compilers can tack on 1859 # massive amounts of additional arguments before passing them to the 1860 # linker. It appears as though 1/2 is a usable value. 1861 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 1862 fi 1863 ;; 1864 esac 1865]) 1866if test -n "$lt_cv_sys_max_cmd_len"; then 1867 AC_MSG_RESULT($lt_cv_sys_max_cmd_len) 1868else 1869 AC_MSG_RESULT(none) 1870fi 1871max_cmd_len=$lt_cv_sys_max_cmd_len 1872_LT_DECL([], [max_cmd_len], [0], 1873 [What is the maximum length of a command?]) 1874])# LT_CMD_MAX_LEN 1875 1876# Old name: 1877AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN]) 1878dnl aclocal-1.4 backwards compatibility: 1879dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], []) 1880 1881 1882# _LT_HEADER_DLFCN 1883# ---------------- 1884m4_defun([_LT_HEADER_DLFCN], 1885[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl 1886])# _LT_HEADER_DLFCN 1887 1888 1889# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, 1890# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) 1891# ---------------------------------------------------------------- 1892m4_defun([_LT_TRY_DLOPEN_SELF], 1893[m4_require([_LT_HEADER_DLFCN])dnl 1894if test yes = "$cross_compiling"; then : 1895 [$4] 1896else 1897 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 1898 lt_status=$lt_dlunknown 1899 cat > conftest.$ac_ext <<_LT_EOF 1900[#line $LINENO "configure" 1901#include "confdefs.h" 1902 1903#if HAVE_DLFCN_H 1904#include <dlfcn.h> 1905#endif 1906 1907#include <stdio.h> 1908 1909#ifdef RTLD_GLOBAL 1910# define LT_DLGLOBAL RTLD_GLOBAL 1911#else 1912# ifdef DL_GLOBAL 1913# define LT_DLGLOBAL DL_GLOBAL 1914# else 1915# define LT_DLGLOBAL 0 1916# endif 1917#endif 1918 1919/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 1920 find out it does not work in some platform. */ 1921#ifndef LT_DLLAZY_OR_NOW 1922# ifdef RTLD_LAZY 1923# define LT_DLLAZY_OR_NOW RTLD_LAZY 1924# else 1925# ifdef DL_LAZY 1926# define LT_DLLAZY_OR_NOW DL_LAZY 1927# else 1928# ifdef RTLD_NOW 1929# define LT_DLLAZY_OR_NOW RTLD_NOW 1930# else 1931# ifdef DL_NOW 1932# define LT_DLLAZY_OR_NOW DL_NOW 1933# else 1934# define LT_DLLAZY_OR_NOW 0 1935# endif 1936# endif 1937# endif 1938# endif 1939#endif 1940 1941/* When -fvisibility=hidden is used, assume the code has been annotated 1942 correspondingly for the symbols needed. */ 1943#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 1944int fnord () __attribute__((visibility("default"))); 1945#endif 1946 1947int fnord () { return 42; } 1948int main () 1949{ 1950 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 1951 int status = $lt_dlunknown; 1952 1953 if (self) 1954 { 1955 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 1956 else 1957 { 1958 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 1959 else puts (dlerror ()); 1960 } 1961 /* dlclose (self); */ 1962 } 1963 else 1964 puts (dlerror ()); 1965 1966 return status; 1967}] 1968_LT_EOF 1969 if AC_TRY_EVAL(ac_link) && test -s "conftest$ac_exeext" 2>/dev/null; then 1970 (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null 1971 lt_status=$? 1972 case x$lt_status in 1973 x$lt_dlno_uscore) $1 ;; 1974 x$lt_dlneed_uscore) $2 ;; 1975 x$lt_dlunknown|x*) $3 ;; 1976 esac 1977 else : 1978 # compilation failed 1979 $3 1980 fi 1981fi 1982rm -fr conftest* 1983])# _LT_TRY_DLOPEN_SELF 1984 1985 1986# LT_SYS_DLOPEN_SELF 1987# ------------------ 1988AC_DEFUN([LT_SYS_DLOPEN_SELF], 1989[m4_require([_LT_HEADER_DLFCN])dnl 1990if test yes != "$enable_dlopen"; then 1991 enable_dlopen=unknown 1992 enable_dlopen_self=unknown 1993 enable_dlopen_self_static=unknown 1994else 1995 lt_cv_dlopen=no 1996 lt_cv_dlopen_libs= 1997 1998 case $host_os in 1999 beos*) 2000 lt_cv_dlopen=load_add_on 2001 lt_cv_dlopen_libs= 2002 lt_cv_dlopen_self=yes 2003 ;; 2004 2005 mingw* | pw32* | cegcc*) 2006 lt_cv_dlopen=LoadLibrary 2007 lt_cv_dlopen_libs= 2008 ;; 2009 2010 cygwin*) 2011 lt_cv_dlopen=dlopen 2012 lt_cv_dlopen_libs= 2013 ;; 2014 2015 darwin*) 2016 # if libdl is installed we need to link against it 2017 AC_CHECK_LIB([dl], [dlopen], 2018 [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl],[ 2019 lt_cv_dlopen=dyld 2020 lt_cv_dlopen_libs= 2021 lt_cv_dlopen_self=yes 2022 ]) 2023 ;; 2024 2025 tpf*) 2026 # Don't try to run any link tests for TPF. We know it's impossible 2027 # because TPF is a cross-compiler, and we know how we open DSOs. 2028 lt_cv_dlopen=dlopen 2029 lt_cv_dlopen_libs= 2030 lt_cv_dlopen_self=no 2031 ;; 2032 2033 *) 2034 AC_CHECK_FUNC([shl_load], 2035 [lt_cv_dlopen=shl_load], 2036 [AC_CHECK_LIB([dld], [shl_load], 2037 [lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld], 2038 [AC_CHECK_FUNC([dlopen], 2039 [lt_cv_dlopen=dlopen], 2040 [AC_CHECK_LIB([dl], [dlopen], 2041 [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl], 2042 [AC_CHECK_LIB([svld], [dlopen], 2043 [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld], 2044 [AC_CHECK_LIB([dld], [dld_link], 2045 [lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld]) 2046 ]) 2047 ]) 2048 ]) 2049 ]) 2050 ]) 2051 ;; 2052 esac 2053 2054 if test no = "$lt_cv_dlopen"; then 2055 enable_dlopen=no 2056 else 2057 enable_dlopen=yes 2058 fi 2059 2060 case $lt_cv_dlopen in 2061 dlopen) 2062 save_CPPFLAGS=$CPPFLAGS 2063 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 2064 2065 save_LDFLAGS=$LDFLAGS 2066 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 2067 2068 save_LIBS=$LIBS 2069 LIBS="$lt_cv_dlopen_libs $LIBS" 2070 2071 AC_CACHE_CHECK([whether a program can dlopen itself], 2072 lt_cv_dlopen_self, [dnl 2073 _LT_TRY_DLOPEN_SELF( 2074 lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, 2075 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) 2076 ]) 2077 2078 if test yes = "$lt_cv_dlopen_self"; then 2079 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 2080 AC_CACHE_CHECK([whether a statically linked program can dlopen itself], 2081 lt_cv_dlopen_self_static, [dnl 2082 _LT_TRY_DLOPEN_SELF( 2083 lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, 2084 lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) 2085 ]) 2086 fi 2087 2088 CPPFLAGS=$save_CPPFLAGS 2089 LDFLAGS=$save_LDFLAGS 2090 LIBS=$save_LIBS 2091 ;; 2092 esac 2093 2094 case $lt_cv_dlopen_self in 2095 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 2096 *) enable_dlopen_self=unknown ;; 2097 esac 2098 2099 case $lt_cv_dlopen_self_static in 2100 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 2101 *) enable_dlopen_self_static=unknown ;; 2102 esac 2103fi 2104_LT_DECL([dlopen_support], [enable_dlopen], [0], 2105 [Whether dlopen is supported]) 2106_LT_DECL([dlopen_self], [enable_dlopen_self], [0], 2107 [Whether dlopen of programs is supported]) 2108_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0], 2109 [Whether dlopen of statically linked programs is supported]) 2110])# LT_SYS_DLOPEN_SELF 2111 2112# Old name: 2113AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF]) 2114dnl aclocal-1.4 backwards compatibility: 2115dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], []) 2116 2117 2118# _LT_COMPILER_C_O([TAGNAME]) 2119# --------------------------- 2120# Check to see if options -c and -o are simultaneously supported by compiler. 2121# This macro does not hard code the compiler like AC_PROG_CC_C_O. 2122m4_defun([_LT_COMPILER_C_O], 2123[m4_require([_LT_DECL_SED])dnl 2124m4_require([_LT_FILEUTILS_DEFAULTS])dnl 2125m4_require([_LT_TAG_COMPILER])dnl 2126AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], 2127 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)], 2128 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no 2129 $RM -r conftest 2>/dev/null 2130 mkdir conftest 2131 cd conftest 2132 mkdir out 2133 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 2134 2135 lt_compiler_flag="-o out/conftest2.$ac_objext" 2136 # Insert the option either (1) after the last *FLAGS variable, or 2137 # (2) before a word containing "conftest.", or (3) at the end. 2138 # Note that $ac_compile itself does not contain backslashes and begins 2139 # with a dollar sign (not a hyphen), so the echo should work correctly. 2140 lt_compile=`echo "$ac_compile" | $SED \ 2141 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 2142 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ 2143 -e 's:$: $lt_compiler_flag:'` 2144 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) 2145 (eval "$lt_compile" 2>out/conftest.err) 2146 ac_status=$? 2147 cat out/conftest.err >&AS_MESSAGE_LOG_FD 2148 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 2149 if (exit $ac_status) && test -s out/conftest2.$ac_objext 2150 then 2151 # The compiler can only warn and ignore the option if not recognized 2152 # So say no if there are warnings 2153 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 2154 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 2155 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 2156 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes 2157 fi 2158 fi 2159 chmod u+w . 2>&AS_MESSAGE_LOG_FD 2160 $RM conftest* 2161 # SGI C++ compiler will create directory out/ii_files/ for 2162 # template instantiation 2163 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 2164 $RM out/* && rmdir out 2165 cd .. 2166 $RM -r conftest 2167 $RM conftest* 2168]) 2169_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1], 2170 [Does compiler simultaneously support -c and -o options?]) 2171])# _LT_COMPILER_C_O 2172 2173 2174# _LT_COMPILER_FILE_LOCKS([TAGNAME]) 2175# ---------------------------------- 2176# Check to see if we can do hard links to lock some files if needed 2177m4_defun([_LT_COMPILER_FILE_LOCKS], 2178[m4_require([_LT_ENABLE_LOCK])dnl 2179m4_require([_LT_FILEUTILS_DEFAULTS])dnl 2180_LT_COMPILER_C_O([$1]) 2181 2182hard_links=nottested 2183if test no = "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" && test no != "$need_locks"; then 2184 # do not overwrite the value of need_locks provided by the user 2185 AC_MSG_CHECKING([if we can lock with hard links]) 2186 hard_links=yes 2187 $RM conftest* 2188 ln conftest.a conftest.b 2>/dev/null && hard_links=no 2189 touch conftest.a 2190 ln conftest.a conftest.b 2>&5 || hard_links=no 2191 ln conftest.a conftest.b 2>/dev/null && hard_links=no 2192 AC_MSG_RESULT([$hard_links]) 2193 if test no = "$hard_links"; then 2194 AC_MSG_WARN(['$CC' does not support '-c -o', so 'make -j' may be unsafe]) 2195 need_locks=warn 2196 fi 2197else 2198 need_locks=no 2199fi 2200_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?]) 2201])# _LT_COMPILER_FILE_LOCKS 2202 2203 2204# _LT_CHECK_OBJDIR 2205# ---------------- 2206m4_defun([_LT_CHECK_OBJDIR], 2207[AC_CACHE_CHECK([for objdir], [lt_cv_objdir], 2208[rm -f .libs 2>/dev/null 2209mkdir .libs 2>/dev/null 2210if test -d .libs; then 2211 lt_cv_objdir=.libs 2212else 2213 # MS-DOS does not allow filenames that begin with a dot. 2214 lt_cv_objdir=_libs 2215fi 2216rmdir .libs 2>/dev/null]) 2217objdir=$lt_cv_objdir 2218_LT_DECL([], [objdir], [0], 2219 [The name of the directory that contains temporary libtool files])dnl 2220m4_pattern_allow([LT_OBJDIR])dnl 2221AC_DEFINE_UNQUOTED([LT_OBJDIR], "$lt_cv_objdir/", 2222 [Define to the sub-directory where libtool stores uninstalled libraries.]) 2223])# _LT_CHECK_OBJDIR 2224 2225 2226# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME]) 2227# -------------------------------------- 2228# Check hardcoding attributes. 2229m4_defun([_LT_LINKER_HARDCODE_LIBPATH], 2230[AC_MSG_CHECKING([how to hardcode library paths into programs]) 2231_LT_TAGVAR(hardcode_action, $1)= 2232if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" || 2233 test -n "$_LT_TAGVAR(runpath_var, $1)" || 2234 test yes = "$_LT_TAGVAR(hardcode_automatic, $1)"; then 2235 2236 # We can hardcode non-existent directories. 2237 if test no != "$_LT_TAGVAR(hardcode_direct, $1)" && 2238 # If the only mechanism to avoid hardcoding is shlibpath_var, we 2239 # have to relink, otherwise we might link with an installed library 2240 # when we should be linking with a yet-to-be-installed one 2241 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" && 2242 test no != "$_LT_TAGVAR(hardcode_minus_L, $1)"; then 2243 # Linking always hardcodes the temporary library directory. 2244 _LT_TAGVAR(hardcode_action, $1)=relink 2245 else 2246 # We can link without hardcoding, and we can hardcode nonexisting dirs. 2247 _LT_TAGVAR(hardcode_action, $1)=immediate 2248 fi 2249else 2250 # We cannot hardcode anything, or else we can only hardcode existing 2251 # directories. 2252 _LT_TAGVAR(hardcode_action, $1)=unsupported 2253fi 2254AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)]) 2255 2256if test relink = "$_LT_TAGVAR(hardcode_action, $1)" || 2257 test yes = "$_LT_TAGVAR(inherit_rpath, $1)"; then 2258 # Fast installation is not supported 2259 enable_fast_install=no 2260elif test yes = "$shlibpath_overrides_runpath" || 2261 test no = "$enable_shared"; then 2262 # Fast installation is not necessary 2263 enable_fast_install=needless 2264fi 2265_LT_TAGDECL([], [hardcode_action], [0], 2266 [How to hardcode a shared library path into an executable]) 2267])# _LT_LINKER_HARDCODE_LIBPATH 2268 2269 2270# _LT_CMD_STRIPLIB 2271# ---------------- 2272m4_defun([_LT_CMD_STRIPLIB], 2273[m4_require([_LT_DECL_EGREP]) 2274striplib= 2275old_striplib= 2276AC_MSG_CHECKING([whether stripping libraries is possible]) 2277if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 2278 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 2279 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 2280 AC_MSG_RESULT([yes]) 2281else 2282# FIXME - insert some real tests, host_os isn't really good enough 2283 case $host_os in 2284 darwin*) 2285 if test -n "$STRIP"; then 2286 striplib="$STRIP -x" 2287 old_striplib="$STRIP -S" 2288 AC_MSG_RESULT([yes]) 2289 else 2290 AC_MSG_RESULT([no]) 2291 fi 2292 ;; 2293 *) 2294 AC_MSG_RESULT([no]) 2295 ;; 2296 esac 2297fi 2298_LT_DECL([], [old_striplib], [1], [Commands to strip libraries]) 2299_LT_DECL([], [striplib], [1]) 2300])# _LT_CMD_STRIPLIB 2301 2302 2303# _LT_PREPARE_MUNGE_PATH_LIST 2304# --------------------------- 2305# Make sure func_munge_path_list() is defined correctly. 2306m4_defun([_LT_PREPARE_MUNGE_PATH_LIST], 2307[[# func_munge_path_list VARIABLE PATH 2308# ----------------------------------- 2309# VARIABLE is name of variable containing _space_ separated list of 2310# directories to be munged by the contents of PATH, which is string 2311# having a format: 2312# "DIR[:DIR]:" 2313# string "DIR[ DIR]" will be prepended to VARIABLE 2314# ":DIR[:DIR]" 2315# string "DIR[ DIR]" will be appended to VARIABLE 2316# "DIRP[:DIRP]::[DIRA:]DIRA" 2317# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 2318# "DIRA[ DIRA]" will be appended to VARIABLE 2319# "DIR[:DIR]" 2320# VARIABLE will be replaced by "DIR[ DIR]" 2321func_munge_path_list () 2322{ 2323 case x@S|@2 in 2324 x) 2325 ;; 2326 *:) 2327 eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'` \@S|@@S|@1\" 2328 ;; 2329 x:*) 2330 eval @S|@1=\"\@S|@@S|@1 `$ECHO @S|@2 | $SED 's/:/ /g'`\" 2331 ;; 2332 *::*) 2333 eval @S|@1=\"\@S|@@S|@1\ `$ECHO @S|@2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 2334 eval @S|@1=\"`$ECHO @S|@2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \@S|@@S|@1\" 2335 ;; 2336 *) 2337 eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'`\" 2338 ;; 2339 esac 2340} 2341]])# _LT_PREPARE_PATH_LIST 2342 2343 2344# _LT_SYS_DYNAMIC_LINKER([TAG]) 2345# ----------------------------- 2346# PORTME Fill in your ld.so characteristics 2347m4_defun([_LT_SYS_DYNAMIC_LINKER], 2348[AC_REQUIRE([AC_CANONICAL_HOST])dnl 2349m4_require([_LT_DECL_EGREP])dnl 2350m4_require([_LT_FILEUTILS_DEFAULTS])dnl 2351m4_require([_LT_DECL_OBJDUMP])dnl 2352m4_require([_LT_DECL_SED])dnl 2353m4_require([_LT_CHECK_SHELL_FEATURES])dnl 2354m4_require([_LT_PREPARE_MUNGE_PATH_LIST])dnl 2355AC_MSG_CHECKING([dynamic linker characteristics]) 2356m4_if([$1], 2357 [], [ 2358if test yes = "$GCC"; then 2359 case $host_os in 2360 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 2361 *) lt_awk_arg='/^libraries:/' ;; 2362 esac 2363 case $host_os in 2364 mingw* | cegcc*) lt_sed_strip_eq='s|=\([[A-Za-z]]:\)|\1|g' ;; 2365 *) lt_sed_strip_eq='s|=/|/|g' ;; 2366 esac 2367 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 2368 case $lt_search_path_spec in 2369 *\;*) 2370 # if the path contains ";" then we assume it to be the separator 2371 # otherwise default to the standard path separator (i.e. ":") - it is 2372 # assumed that no part of a normal pathname contains ";" but that should 2373 # okay in the real world where ";" in dirpaths is itself problematic. 2374 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 2375 ;; 2376 *) 2377 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 2378 ;; 2379 esac 2380 # Ok, now we have the path, separated by spaces, we can step through it 2381 # and add multilib dir if necessary... 2382 lt_tmp_lt_search_path_spec= 2383 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 2384 # ...but if some path component already ends with the multilib dir we assume 2385 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 2386 case "$lt_multi_os_dir; $lt_search_path_spec " in 2387 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 2388 lt_multi_os_dir= 2389 ;; 2390 esac 2391 for lt_sys_path in $lt_search_path_spec; do 2392 if test -d "$lt_sys_path$lt_multi_os_dir"; then 2393 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 2394 elif test -n "$lt_multi_os_dir"; then 2395 test -d "$lt_sys_path" && \ 2396 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 2397 fi 2398 done 2399 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 2400BEGIN {RS = " "; FS = "/|\n";} { 2401 lt_foo = ""; 2402 lt_count = 0; 2403 for (lt_i = NF; lt_i > 0; lt_i--) { 2404 if ($lt_i != "" && $lt_i != ".") { 2405 if ($lt_i == "..") { 2406 lt_count++; 2407 } else { 2408 if (lt_count == 0) { 2409 lt_foo = "/" $lt_i lt_foo; 2410 } else { 2411 lt_count--; 2412 } 2413 } 2414 } 2415 } 2416 if (lt_foo != "") { lt_freq[[lt_foo]]++; } 2417 if (lt_freq[[lt_foo]] == 1) { print lt_foo; } 2418}'` 2419 # AWK program above erroneously prepends '/' to C:/dos/paths 2420 # for these hosts. 2421 case $host_os in 2422 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 2423 $SED 's|/\([[A-Za-z]]:\)|\1|g'` ;; 2424 esac 2425 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 2426else 2427 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 2428fi]) 2429library_names_spec= 2430libname_spec='lib$name' 2431soname_spec= 2432shrext_cmds=.so 2433postinstall_cmds= 2434postuninstall_cmds= 2435finish_cmds= 2436finish_eval= 2437shlibpath_var= 2438shlibpath_overrides_runpath=unknown 2439version_type=none 2440dynamic_linker="$host_os ld.so" 2441sys_lib_dlsearch_path_spec="/lib /usr/lib" 2442need_lib_prefix=unknown 2443hardcode_into_libs=no 2444 2445# when you set need_version to no, make sure it does not cause -set_version 2446# flags to be left without arguments 2447need_version=unknown 2448 2449AC_ARG_VAR([LT_SYS_LIBRARY_PATH], 2450[User-defined run-time library search path.]) 2451 2452case $host_os in 2453aix3*) 2454 version_type=linux # correct to gnu/linux during the next big refactor 2455 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 2456 shlibpath_var=LIBPATH 2457 2458 # AIX 3 has no versioning support, so we append a major version to the name. 2459 soname_spec='$libname$release$shared_ext$major' 2460 ;; 2461 2462aix[[4-9]]*) 2463 version_type=linux # correct to gnu/linux during the next big refactor 2464 need_lib_prefix=no 2465 need_version=no 2466 hardcode_into_libs=yes 2467 if test ia64 = "$host_cpu"; then 2468 # AIX 5 supports IA64 2469 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 2470 shlibpath_var=LD_LIBRARY_PATH 2471 else 2472 # With GCC up to 2.95.x, collect2 would create an import file 2473 # for dependence libraries. The import file would start with 2474 # the line '#! .'. This would cause the generated library to 2475 # depend on '.', always an invalid library. This was fixed in 2476 # development snapshots of GCC prior to 3.0. 2477 case $host_os in 2478 aix4 | aix4.[[01]] | aix4.[[01]].*) 2479 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 2480 echo ' yes ' 2481 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 2482 : 2483 else 2484 can_build_shared=no 2485 fi 2486 ;; 2487 esac 2488 # Using Import Files as archive members, it is possible to support 2489 # filename-based versioning of shared library archives on AIX. While 2490 # this would work for both with and without runtime linking, it will 2491 # prevent static linking of such archives. So we do filename-based 2492 # shared library versioning with .so extension only, which is used 2493 # when both runtime linking and shared linking is enabled. 2494 # Unfortunately, runtime linking may impact performance, so we do 2495 # not want this to be the default eventually. Also, we use the 2496 # versioned .so libs for executables only if there is the -brtl 2497 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 2498 # To allow for filename-based versioning support, we need to create 2499 # libNAME.so.V as an archive file, containing: 2500 # *) an Import File, referring to the versioned filename of the 2501 # archive as well as the shared archive member, telling the 2502 # bitwidth (32 or 64) of that shared object, and providing the 2503 # list of exported symbols of that shared object, eventually 2504 # decorated with the 'weak' keyword 2505 # *) the shared object with the F_LOADONLY flag set, to really avoid 2506 # it being seen by the linker. 2507 # At run time we better use the real file rather than another symlink, 2508 # but for link time we create the symlink libNAME.so -> libNAME.so.V 2509 2510 case $with_aix_soname,$aix_use_runtimelinking in 2511 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 2512 # soname into executable. Probably we can add versioning support to 2513 # collect2, so additional links can be useful in future. 2514 aix,yes) # traditional libtool 2515 dynamic_linker='AIX unversionable lib.so' 2516 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 2517 # instead of lib<name>.a to let people know that these are not 2518 # typical AIX shared libraries. 2519 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 2520 ;; 2521 aix,no) # traditional AIX only 2522 dynamic_linker='AIX lib.a[(]lib.so.V[)]' 2523 # We preserve .a as extension for shared libraries through AIX4.2 2524 # and later when we are not doing run time linking. 2525 library_names_spec='$libname$release.a $libname.a' 2526 soname_spec='$libname$release$shared_ext$major' 2527 ;; 2528 svr4,*) # full svr4 only 2529 dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)]" 2530 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 2531 # We do not specify a path in Import Files, so LIBPATH fires. 2532 shlibpath_overrides_runpath=yes 2533 ;; 2534 *,yes) # both, prefer svr4 2535 dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)], lib.a[(]lib.so.V[)]" 2536 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 2537 # unpreferred sharedlib libNAME.a needs extra handling 2538 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 2539 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 2540 # We do not specify a path in Import Files, so LIBPATH fires. 2541 shlibpath_overrides_runpath=yes 2542 ;; 2543 *,no) # both, prefer aix 2544 dynamic_linker="AIX lib.a[(]lib.so.V[)], lib.so.V[(]$shared_archive_member_spec.o[)]" 2545 library_names_spec='$libname$release.a $libname.a' 2546 soname_spec='$libname$release$shared_ext$major' 2547 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 2548 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 2549 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 2550 ;; 2551 esac 2552 shlibpath_var=LIBPATH 2553 fi 2554 ;; 2555 2556amigaos*) 2557 case $host_cpu in 2558 powerpc) 2559 # Since July 2007 AmigaOS4 officially supports .so libraries. 2560 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 2561 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 2562 ;; 2563 m68k) 2564 library_names_spec='$libname.ixlibrary $libname.a' 2565 # Create ${libname}_ixlibrary.a entries in /sys/libs. 2566 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; $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' 2567 ;; 2568 esac 2569 ;; 2570 2571beos*) 2572 library_names_spec='$libname$shared_ext' 2573 dynamic_linker="$host_os ld.so" 2574 shlibpath_var=LIBRARY_PATH 2575 ;; 2576 2577bsdi[[45]]*) 2578 version_type=linux # correct to gnu/linux during the next big refactor 2579 need_version=no 2580 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 2581 soname_spec='$libname$release$shared_ext$major' 2582 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 2583 shlibpath_var=LD_LIBRARY_PATH 2584 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 2585 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 2586 # the default ld.so.conf also contains /usr/contrib/lib and 2587 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 2588 # libtool to hard-code these into programs 2589 ;; 2590 2591cygwin* | mingw* | pw32* | cegcc*) 2592 version_type=windows 2593 shrext_cmds=.dll 2594 need_version=no 2595 need_lib_prefix=no 2596 2597 case $GCC,$cc_basename in 2598 yes,*) 2599 # gcc 2600 library_names_spec='$libname.dll.a' 2601 # DLL is installed to $(libdir)/../bin by postinstall_cmds 2602 postinstall_cmds='base_file=`basename \$file`~ 2603 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 2604 dldir=$destdir/`dirname \$dlpath`~ 2605 test -d \$dldir || mkdir -p \$dldir~ 2606 $install_prog $dir/$dlname \$dldir/$dlname~ 2607 chmod a+x \$dldir/$dlname~ 2608 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 2609 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 2610 fi' 2611 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 2612 dlpath=$dir/\$dldll~ 2613 $RM \$dlpath' 2614 shlibpath_overrides_runpath=yes 2615 2616 case $host_os in 2617 cygwin*) 2618 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 2619 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' 2620m4_if([$1], [],[ 2621 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"]) 2622 ;; 2623 mingw* | cegcc*) 2624 # MinGW DLLs use traditional 'lib' prefix 2625 soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' 2626 ;; 2627 pw32*) 2628 # pw32 DLLs use 'pw' prefix rather than 'lib' 2629 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' 2630 ;; 2631 esac 2632 dynamic_linker='Win32 ld.exe' 2633 ;; 2634 2635 *,cl*) 2636 # Native MSVC 2637 libname_spec='$name' 2638 soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' 2639 library_names_spec='$libname.dll.lib' 2640 2641 case $build_os in 2642 mingw*) 2643 sys_lib_search_path_spec= 2644 lt_save_ifs=$IFS 2645 IFS=';' 2646 for lt_path in $LIB 2647 do 2648 IFS=$lt_save_ifs 2649 # Let DOS variable expansion print the short 8.3 style file name. 2650 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 2651 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 2652 done 2653 IFS=$lt_save_ifs 2654 # Convert to MSYS style. 2655 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'` 2656 ;; 2657 cygwin*) 2658 # Convert to unix form, then to dos form, then back to unix form 2659 # but this time dos style (no spaces!) so that the unix form looks 2660 # like /cygdrive/c/PROGRA~1:/cygdr... 2661 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 2662 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 2663 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 2664 ;; 2665 *) 2666 sys_lib_search_path_spec=$LIB 2667 if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then 2668 # It is most probably a Windows format PATH. 2669 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 2670 else 2671 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 2672 fi 2673 # FIXME: find the short name or the path components, as spaces are 2674 # common. (e.g. "Program Files" -> "PROGRA~1") 2675 ;; 2676 esac 2677 2678 # DLL is installed to $(libdir)/../bin by postinstall_cmds 2679 postinstall_cmds='base_file=`basename \$file`~ 2680 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 2681 dldir=$destdir/`dirname \$dlpath`~ 2682 test -d \$dldir || mkdir -p \$dldir~ 2683 $install_prog $dir/$dlname \$dldir/$dlname' 2684 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 2685 dlpath=$dir/\$dldll~ 2686 $RM \$dlpath' 2687 shlibpath_overrides_runpath=yes 2688 dynamic_linker='Win32 link.exe' 2689 ;; 2690 2691 *) 2692 # Assume MSVC wrapper 2693 library_names_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext $libname.lib' 2694 dynamic_linker='Win32 ld.exe' 2695 ;; 2696 esac 2697 # FIXME: first we should search . and the directory the executable is in 2698 shlibpath_var=PATH 2699 ;; 2700 2701darwin* | rhapsody*) 2702 dynamic_linker="$host_os dyld" 2703 version_type=darwin 2704 need_lib_prefix=no 2705 need_version=no 2706 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 2707 soname_spec='$libname$release$major$shared_ext' 2708 shlibpath_overrides_runpath=yes 2709 shlibpath_var=DYLD_LIBRARY_PATH 2710 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 2711m4_if([$1], [],[ 2712 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) 2713 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 2714 ;; 2715 2716dgux*) 2717 version_type=linux # correct to gnu/linux during the next big refactor 2718 need_lib_prefix=no 2719 need_version=no 2720 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 2721 soname_spec='$libname$release$shared_ext$major' 2722 shlibpath_var=LD_LIBRARY_PATH 2723 ;; 2724 2725freebsd* | dragonfly*) 2726 # DragonFly does not have aout. When/if they implement a new 2727 # versioning mechanism, adjust this. 2728 if test -x /usr/bin/objformat; then 2729 objformat=`/usr/bin/objformat` 2730 else 2731 case $host_os in 2732 freebsd[[23]].*) objformat=aout ;; 2733 *) objformat=elf ;; 2734 esac 2735 fi 2736 version_type=freebsd-$objformat 2737 case $version_type in 2738 freebsd-elf*) 2739 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 2740 soname_spec='$libname$release$shared_ext$major' 2741 need_version=no 2742 need_lib_prefix=no 2743 ;; 2744 freebsd-*) 2745 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 2746 need_version=yes 2747 ;; 2748 esac 2749 shlibpath_var=LD_LIBRARY_PATH 2750 case $host_os in 2751 freebsd2.*) 2752 shlibpath_overrides_runpath=yes 2753 ;; 2754 freebsd3.[[01]]* | freebsdelf3.[[01]]*) 2755 shlibpath_overrides_runpath=yes 2756 hardcode_into_libs=yes 2757 ;; 2758 freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ 2759 freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) 2760 shlibpath_overrides_runpath=no 2761 hardcode_into_libs=yes 2762 ;; 2763 *) # from 4.6 on, and DragonFly 2764 shlibpath_overrides_runpath=yes 2765 hardcode_into_libs=yes 2766 ;; 2767 esac 2768 ;; 2769 2770haiku*) 2771 version_type=linux # correct to gnu/linux during the next big refactor 2772 need_lib_prefix=no 2773 need_version=no 2774 dynamic_linker="$host_os runtime_loader" 2775 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 2776 soname_spec='$libname$release$shared_ext$major' 2777 shlibpath_var=LIBRARY_PATH 2778 shlibpath_overrides_runpath=no 2779 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 2780 hardcode_into_libs=yes 2781 ;; 2782 2783hpux9* | hpux10* | hpux11*) 2784 # Give a soname corresponding to the major version so that dld.sl refuses to 2785 # link against other versions. 2786 version_type=sunos 2787 need_lib_prefix=no 2788 need_version=no 2789 case $host_cpu in 2790 ia64*) 2791 shrext_cmds='.so' 2792 hardcode_into_libs=yes 2793 dynamic_linker="$host_os dld.so" 2794 shlibpath_var=LD_LIBRARY_PATH 2795 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 2796 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 2797 soname_spec='$libname$release$shared_ext$major' 2798 if test 32 = "$HPUX_IA64_MODE"; then 2799 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 2800 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 2801 else 2802 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 2803 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 2804 fi 2805 ;; 2806 hppa*64*) 2807 shrext_cmds='.sl' 2808 hardcode_into_libs=yes 2809 dynamic_linker="$host_os dld.sl" 2810 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 2811 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 2812 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 2813 soname_spec='$libname$release$shared_ext$major' 2814 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 2815 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 2816 ;; 2817 *) 2818 shrext_cmds='.sl' 2819 dynamic_linker="$host_os dld.sl" 2820 shlibpath_var=SHLIB_PATH 2821 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 2822 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 2823 soname_spec='$libname$release$shared_ext$major' 2824 ;; 2825 esac 2826 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 2827 postinstall_cmds='chmod 555 $lib' 2828 # or fails outright, so override atomically: 2829 install_override_mode=555 2830 ;; 2831 2832interix[[3-9]]*) 2833 version_type=linux # correct to gnu/linux during the next big refactor 2834 need_lib_prefix=no 2835 need_version=no 2836 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 2837 soname_spec='$libname$release$shared_ext$major' 2838 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 2839 shlibpath_var=LD_LIBRARY_PATH 2840 shlibpath_overrides_runpath=no 2841 hardcode_into_libs=yes 2842 ;; 2843 2844irix5* | irix6* | nonstopux*) 2845 case $host_os in 2846 nonstopux*) version_type=nonstopux ;; 2847 *) 2848 if test yes = "$lt_cv_prog_gnu_ld"; then 2849 version_type=linux # correct to gnu/linux during the next big refactor 2850 else 2851 version_type=irix 2852 fi ;; 2853 esac 2854 need_lib_prefix=no 2855 need_version=no 2856 soname_spec='$libname$release$shared_ext$major' 2857 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 2858 case $host_os in 2859 irix5* | nonstopux*) 2860 libsuff= shlibsuff= 2861 ;; 2862 *) 2863 case $LD in # libtool.m4 will add one of these switches to LD 2864 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 2865 libsuff= shlibsuff= libmagic=32-bit;; 2866 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 2867 libsuff=32 shlibsuff=N32 libmagic=N32;; 2868 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 2869 libsuff=64 shlibsuff=64 libmagic=64-bit;; 2870 *) libsuff= shlibsuff= libmagic=never-match;; 2871 esac 2872 ;; 2873 esac 2874 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 2875 shlibpath_overrides_runpath=no 2876 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 2877 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 2878 hardcode_into_libs=yes 2879 ;; 2880 2881# No shared lib support for Linux oldld, aout, or coff. 2882linux*oldld* | linux*aout* | linux*coff*) 2883 dynamic_linker=no 2884 ;; 2885 2886linux*android*) 2887 version_type=none # Android doesn't support versioned libraries. 2888 need_lib_prefix=no 2889 need_version=no 2890 library_names_spec='$libname$release$shared_ext' 2891 soname_spec='$libname$release$shared_ext' 2892 finish_cmds= 2893 shlibpath_var=LD_LIBRARY_PATH 2894 shlibpath_overrides_runpath=yes 2895 2896 # This implies no fast_install, which is unacceptable. 2897 # Some rework will be needed to allow for fast_install 2898 # before this can be enabled. 2899 hardcode_into_libs=yes 2900 2901 dynamic_linker='Android linker' 2902 # Don't embed -rpath directories since the linker doesn't support them. 2903 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 2904 ;; 2905 2906# This must be glibc/ELF. 2907linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 2908 version_type=linux # correct to gnu/linux during the next big refactor 2909 need_lib_prefix=no 2910 need_version=no 2911 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 2912 soname_spec='$libname$release$shared_ext$major' 2913 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 2914 shlibpath_var=LD_LIBRARY_PATH 2915 shlibpath_overrides_runpath=no 2916 2917 # Some binutils ld are patched to set DT_RUNPATH 2918 AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath], 2919 [lt_cv_shlibpath_overrides_runpath=no 2920 save_LDFLAGS=$LDFLAGS 2921 save_libdir=$libdir 2922 eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \ 2923 LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\"" 2924 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], 2925 [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null], 2926 [lt_cv_shlibpath_overrides_runpath=yes])]) 2927 LDFLAGS=$save_LDFLAGS 2928 libdir=$save_libdir 2929 ]) 2930 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 2931 2932 # This implies no fast_install, which is unacceptable. 2933 # Some rework will be needed to allow for fast_install 2934 # before this can be enabled. 2935 hardcode_into_libs=yes 2936 2937 # Add ABI-specific directories to the system library path. 2938 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 2939 2940 # Ideally, we could use ldconfig to report *all* directores which are 2941 # searched for libraries, however this is still not possible. Aside from not 2942 # being certain /sbin/ldconfig is available, command 2943 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 2944 # even though it is searched at run-time. Try to do the best guess by 2945 # appending ld.so.conf contents (and includes) to the search path. 2946 if test -f /etc/ld.so.conf; then 2947 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;s/"//g;/^$/d' | tr '\n' ' '` 2948 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 2949 fi 2950 2951 # We used to test for /lib/ld.so.1 and disable shared libraries on 2952 # powerpc, because MkLinux only supported shared libraries with the 2953 # GNU dynamic linker. Since this was broken with cross compilers, 2954 # most powerpc-linux boxes support dynamic linking these days and 2955 # people can always --disable-shared, the test was removed, and we 2956 # assume the GNU/Linux dynamic linker is in use. 2957 dynamic_linker='GNU/Linux ld.so' 2958 ;; 2959 2960netbsd*) 2961 version_type=sunos 2962 need_lib_prefix=no 2963 need_version=no 2964 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 2965 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 2966 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 2967 dynamic_linker='NetBSD (a.out) ld.so' 2968 else 2969 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 2970 soname_spec='$libname$release$shared_ext$major' 2971 dynamic_linker='NetBSD ld.elf_so' 2972 fi 2973 shlibpath_var=LD_LIBRARY_PATH 2974 shlibpath_overrides_runpath=yes 2975 hardcode_into_libs=yes 2976 ;; 2977 2978newsos6) 2979 version_type=linux # correct to gnu/linux during the next big refactor 2980 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 2981 shlibpath_var=LD_LIBRARY_PATH 2982 shlibpath_overrides_runpath=yes 2983 ;; 2984 2985*nto* | *qnx*) 2986 version_type=qnx 2987 need_lib_prefix=no 2988 need_version=no 2989 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 2990 soname_spec='$libname$release$shared_ext$major' 2991 shlibpath_var=LD_LIBRARY_PATH 2992 shlibpath_overrides_runpath=no 2993 hardcode_into_libs=yes 2994 dynamic_linker='ldqnx.so' 2995 ;; 2996 2997openbsd* | bitrig*) 2998 version_type=sunos 2999 sys_lib_dlsearch_path_spec=/usr/lib 3000 need_lib_prefix=no 3001 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 3002 need_version=no 3003 else 3004 need_version=yes 3005 fi 3006 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 3007 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 3008 shlibpath_var=LD_LIBRARY_PATH 3009 shlibpath_overrides_runpath=yes 3010 ;; 3011 3012os2*) 3013 libname_spec='$name' 3014 version_type=windows 3015 shrext_cmds=.dll 3016 need_version=no 3017 need_lib_prefix=no 3018 # OS/2 can only load a DLL with a base name of 8 characters or less. 3019 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 3020 v=$($ECHO $release$versuffix | tr -d .-); 3021 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 3022 $ECHO $n$v`$shared_ext' 3023 library_names_spec='${libname}_dll.$libext' 3024 dynamic_linker='OS/2 ld.exe' 3025 shlibpath_var=BEGINLIBPATH 3026 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 3027 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 3028 postinstall_cmds='base_file=`basename \$file`~ 3029 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 3030 dldir=$destdir/`dirname \$dlpath`~ 3031 test -d \$dldir || mkdir -p \$dldir~ 3032 $install_prog $dir/$dlname \$dldir/$dlname~ 3033 chmod a+x \$dldir/$dlname~ 3034 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 3035 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 3036 fi' 3037 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 3038 dlpath=$dir/\$dldll~ 3039 $RM \$dlpath' 3040 ;; 3041 3042osf3* | osf4* | osf5*) 3043 version_type=osf 3044 need_lib_prefix=no 3045 need_version=no 3046 soname_spec='$libname$release$shared_ext$major' 3047 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 3048 shlibpath_var=LD_LIBRARY_PATH 3049 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 3050 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 3051 ;; 3052 3053rdos*) 3054 dynamic_linker=no 3055 ;; 3056 3057solaris*) 3058 version_type=linux # correct to gnu/linux during the next big refactor 3059 need_lib_prefix=no 3060 need_version=no 3061 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 3062 soname_spec='$libname$release$shared_ext$major' 3063 shlibpath_var=LD_LIBRARY_PATH 3064 shlibpath_overrides_runpath=yes 3065 hardcode_into_libs=yes 3066 # ldd complains unless libraries are executable 3067 postinstall_cmds='chmod +x $lib' 3068 ;; 3069 3070sunos4*) 3071 version_type=sunos 3072 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 3073 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 3074 shlibpath_var=LD_LIBRARY_PATH 3075 shlibpath_overrides_runpath=yes 3076 if test yes = "$with_gnu_ld"; then 3077 need_lib_prefix=no 3078 fi 3079 need_version=yes 3080 ;; 3081 3082sysv4 | sysv4.3*) 3083 version_type=linux # correct to gnu/linux during the next big refactor 3084 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 3085 soname_spec='$libname$release$shared_ext$major' 3086 shlibpath_var=LD_LIBRARY_PATH 3087 case $host_vendor in 3088 sni) 3089 shlibpath_overrides_runpath=no 3090 need_lib_prefix=no 3091 runpath_var=LD_RUN_PATH 3092 ;; 3093 siemens) 3094 need_lib_prefix=no 3095 ;; 3096 motorola) 3097 need_lib_prefix=no 3098 need_version=no 3099 shlibpath_overrides_runpath=no 3100 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 3101 ;; 3102 esac 3103 ;; 3104 3105sysv4*MP*) 3106 if test -d /usr/nec; then 3107 version_type=linux # correct to gnu/linux during the next big refactor 3108 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 3109 soname_spec='$libname$shared_ext.$major' 3110 shlibpath_var=LD_LIBRARY_PATH 3111 fi 3112 ;; 3113 3114sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 3115 version_type=sco 3116 need_lib_prefix=no 3117 need_version=no 3118 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 3119 soname_spec='$libname$release$shared_ext$major' 3120 shlibpath_var=LD_LIBRARY_PATH 3121 shlibpath_overrides_runpath=yes 3122 hardcode_into_libs=yes 3123 if test yes = "$with_gnu_ld"; then 3124 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 3125 else 3126 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 3127 case $host_os in 3128 sco3.2v5*) 3129 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 3130 ;; 3131 esac 3132 fi 3133 sys_lib_dlsearch_path_spec='/usr/lib' 3134 ;; 3135 3136tpf*) 3137 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 3138 version_type=linux # correct to gnu/linux during the next big refactor 3139 need_lib_prefix=no 3140 need_version=no 3141 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 3142 shlibpath_var=LD_LIBRARY_PATH 3143 shlibpath_overrides_runpath=no 3144 hardcode_into_libs=yes 3145 ;; 3146 3147uts4*) 3148 version_type=linux # correct to gnu/linux during the next big refactor 3149 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 3150 soname_spec='$libname$release$shared_ext$major' 3151 shlibpath_var=LD_LIBRARY_PATH 3152 ;; 3153 3154*) 3155 dynamic_linker=no 3156 ;; 3157esac 3158AC_MSG_RESULT([$dynamic_linker]) 3159test no = "$dynamic_linker" && can_build_shared=no 3160 3161variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 3162if test yes = "$GCC"; then 3163 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 3164fi 3165 3166if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 3167 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 3168fi 3169 3170if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 3171 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 3172fi 3173 3174# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 3175configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 3176 3177# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 3178func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 3179 3180# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 3181configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 3182 3183_LT_DECL([], [variables_saved_for_relink], [1], 3184 [Variables whose values should be saved in libtool wrapper scripts and 3185 restored at link time]) 3186_LT_DECL([], [need_lib_prefix], [0], 3187 [Do we need the "lib" prefix for modules?]) 3188_LT_DECL([], [need_version], [0], [Do we need a version for libraries?]) 3189_LT_DECL([], [version_type], [0], [Library versioning type]) 3190_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable]) 3191_LT_DECL([], [shlibpath_var], [0],[Shared library path variable]) 3192_LT_DECL([], [shlibpath_overrides_runpath], [0], 3193 [Is shlibpath searched before the hard-coded library search path?]) 3194_LT_DECL([], [libname_spec], [1], [Format of library name prefix]) 3195_LT_DECL([], [library_names_spec], [1], 3196 [[List of archive names. First name is the real one, the rest are links. 3197 The last name is the one that the linker finds with -lNAME]]) 3198_LT_DECL([], [soname_spec], [1], 3199 [[The coded name of the library, if different from the real name]]) 3200_LT_DECL([], [install_override_mode], [1], 3201 [Permission mode override for installation of shared libraries]) 3202_LT_DECL([], [postinstall_cmds], [2], 3203 [Command to use after installation of a shared archive]) 3204_LT_DECL([], [postuninstall_cmds], [2], 3205 [Command to use after uninstallation of a shared archive]) 3206_LT_DECL([], [finish_cmds], [2], 3207 [Commands used to finish a libtool library installation in a directory]) 3208_LT_DECL([], [finish_eval], [1], 3209 [[As "finish_cmds", except a single script fragment to be evaled but 3210 not shown]]) 3211_LT_DECL([], [hardcode_into_libs], [0], 3212 [Whether we should hardcode library paths into libraries]) 3213_LT_DECL([], [sys_lib_search_path_spec], [2], 3214 [Compile-time system search path for libraries]) 3215_LT_DECL([sys_lib_dlsearch_path_spec], [configure_time_dlsearch_path], [2], 3216 [Detected run-time system search path for libraries]) 3217_LT_DECL([], [configure_time_lt_sys_library_path], [2], 3218 [Explicit LT_SYS_LIBRARY_PATH set during ./configure time]) 3219])# _LT_SYS_DYNAMIC_LINKER 3220 3221 3222# _LT_PATH_TOOL_PREFIX(TOOL) 3223# -------------------------- 3224# find a file program that can recognize shared library 3225AC_DEFUN([_LT_PATH_TOOL_PREFIX], 3226[m4_require([_LT_DECL_EGREP])dnl 3227AC_MSG_CHECKING([for $1]) 3228AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, 3229[case $MAGIC_CMD in 3230[[\\/*] | ?:[\\/]*]) 3231 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 3232 ;; 3233*) 3234 lt_save_MAGIC_CMD=$MAGIC_CMD 3235 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 3236dnl $ac_dummy forces splitting on constant user-supplied paths. 3237dnl POSIX.2 word splitting is done only on the output of word expansions, 3238dnl not every word. This closes a longstanding sh security hole. 3239 ac_dummy="m4_if([$2], , $PATH, [$2])" 3240 for ac_dir in $ac_dummy; do 3241 IFS=$lt_save_ifs 3242 test -z "$ac_dir" && ac_dir=. 3243 if test -f "$ac_dir/$1"; then 3244 lt_cv_path_MAGIC_CMD=$ac_dir/"$1" 3245 if test -n "$file_magic_test_file"; then 3246 case $deplibs_check_method in 3247 "file_magic "*) 3248 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 3249 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 3250 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 3251 $EGREP "$file_magic_regex" > /dev/null; then 3252 : 3253 else 3254 cat <<_LT_EOF 1>&2 3255 3256*** Warning: the command libtool uses to detect shared libraries, 3257*** $file_magic_cmd, produces output that libtool cannot recognize. 3258*** The result is that libtool may fail to recognize shared libraries 3259*** as such. This will affect the creation of libtool libraries that 3260*** depend on shared libraries, but programs linked with such libtool 3261*** libraries will work regardless of this problem. Nevertheless, you 3262*** may want to report the problem to your system manager and/or to 3263*** bug-libtool@gnu.org 3264 3265_LT_EOF 3266 fi ;; 3267 esac 3268 fi 3269 break 3270 fi 3271 done 3272 IFS=$lt_save_ifs 3273 MAGIC_CMD=$lt_save_MAGIC_CMD 3274 ;; 3275esac]) 3276MAGIC_CMD=$lt_cv_path_MAGIC_CMD 3277if test -n "$MAGIC_CMD"; then 3278 AC_MSG_RESULT($MAGIC_CMD) 3279else 3280 AC_MSG_RESULT(no) 3281fi 3282_LT_DECL([], [MAGIC_CMD], [0], 3283 [Used to examine libraries when file_magic_cmd begins with "file"])dnl 3284])# _LT_PATH_TOOL_PREFIX 3285 3286# Old name: 3287AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX]) 3288dnl aclocal-1.4 backwards compatibility: 3289dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], []) 3290 3291 3292# _LT_PATH_MAGIC 3293# -------------- 3294# find a file program that can recognize a shared library 3295m4_defun([_LT_PATH_MAGIC], 3296[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) 3297if test -z "$lt_cv_path_MAGIC_CMD"; then 3298 if test -n "$ac_tool_prefix"; then 3299 _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) 3300 else 3301 MAGIC_CMD=: 3302 fi 3303fi 3304])# _LT_PATH_MAGIC 3305 3306 3307# LT_PATH_LD 3308# ---------- 3309# find the pathname to the GNU or non-GNU linker 3310AC_DEFUN([LT_PATH_LD], 3311[AC_REQUIRE([AC_PROG_CC])dnl 3312AC_REQUIRE([AC_CANONICAL_HOST])dnl 3313AC_REQUIRE([AC_CANONICAL_BUILD])dnl 3314m4_require([_LT_DECL_SED])dnl 3315m4_require([_LT_DECL_EGREP])dnl 3316m4_require([_LT_PROG_ECHO_BACKSLASH])dnl 3317 3318AC_ARG_WITH([gnu-ld], 3319 [AS_HELP_STRING([--with-gnu-ld], 3320 [assume the C compiler uses GNU ld @<:@default=no@:>@])], 3321 [test no = "$withval" || with_gnu_ld=yes], 3322 [with_gnu_ld=no])dnl 3323 3324ac_prog=ld 3325if test yes = "$GCC"; then 3326 # Check if gcc -print-prog-name=ld gives a path. 3327 AC_MSG_CHECKING([for ld used by $CC]) 3328 case $host in 3329 *-*-mingw*) 3330 # gcc leaves a trailing carriage return, which upsets mingw 3331 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 3332 *) 3333 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 3334 esac 3335 case $ac_prog in 3336 # Accept absolute paths. 3337 [[\\/]]* | ?:[[\\/]]*) 3338 re_direlt='/[[^/]][[^/]]*/\.\./' 3339 # Canonicalize the pathname of ld 3340 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 3341 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 3342 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 3343 done 3344 test -z "$LD" && LD=$ac_prog 3345 ;; 3346 "") 3347 # If it fails, then pretend we aren't using GCC. 3348 ac_prog=ld 3349 ;; 3350 *) 3351 # If it is relative, then search for the first ld in PATH. 3352 with_gnu_ld=unknown 3353 ;; 3354 esac 3355elif test yes = "$with_gnu_ld"; then 3356 AC_MSG_CHECKING([for GNU ld]) 3357else 3358 AC_MSG_CHECKING([for non-GNU ld]) 3359fi 3360AC_CACHE_VAL(lt_cv_path_LD, 3361[if test -z "$LD"; then 3362 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 3363 for ac_dir in $PATH; do 3364 IFS=$lt_save_ifs 3365 test -z "$ac_dir" && ac_dir=. 3366 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 3367 lt_cv_path_LD=$ac_dir/$ac_prog 3368 # Check to see if the program is GNU ld. I'd rather use --version, 3369 # but apparently some variants of GNU ld only accept -v. 3370 # Break only if it was the GNU/non-GNU ld that we prefer. 3371 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 3372 *GNU* | *'with BFD'*) 3373 test no != "$with_gnu_ld" && break 3374 ;; 3375 *) 3376 test yes != "$with_gnu_ld" && break 3377 ;; 3378 esac 3379 fi 3380 done 3381 IFS=$lt_save_ifs 3382else 3383 lt_cv_path_LD=$LD # Let the user override the test with a path. 3384fi]) 3385LD=$lt_cv_path_LD 3386if test -n "$LD"; then 3387 AC_MSG_RESULT($LD) 3388else 3389 AC_MSG_RESULT(no) 3390fi 3391test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) 3392_LT_PATH_LD_GNU 3393AC_SUBST([LD]) 3394 3395_LT_TAGDECL([], [LD], [1], [The linker used to build libraries]) 3396])# LT_PATH_LD 3397 3398# Old names: 3399AU_ALIAS([AM_PROG_LD], [LT_PATH_LD]) 3400AU_ALIAS([AC_PROG_LD], [LT_PATH_LD]) 3401dnl aclocal-1.4 backwards compatibility: 3402dnl AC_DEFUN([AM_PROG_LD], []) 3403dnl AC_DEFUN([AC_PROG_LD], []) 3404 3405 3406# _LT_PATH_LD_GNU 3407#- -------------- 3408m4_defun([_LT_PATH_LD_GNU], 3409[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, 3410[# I'd rather use --version here, but apparently some GNU lds only accept -v. 3411case `$LD -v 2>&1 </dev/null` in 3412*GNU* | *'with BFD'*) 3413 lt_cv_prog_gnu_ld=yes 3414 ;; 3415*) 3416 lt_cv_prog_gnu_ld=no 3417 ;; 3418esac]) 3419with_gnu_ld=$lt_cv_prog_gnu_ld 3420])# _LT_PATH_LD_GNU 3421 3422 3423# _LT_CMD_RELOAD 3424# -------------- 3425# find reload flag for linker 3426# -- PORTME Some linkers may need a different reload flag. 3427m4_defun([_LT_CMD_RELOAD], 3428[AC_CACHE_CHECK([for $LD option to reload object files], 3429 lt_cv_ld_reload_flag, 3430 [lt_cv_ld_reload_flag='-r']) 3431reload_flag=$lt_cv_ld_reload_flag 3432case $reload_flag in 3433"" | " "*) ;; 3434*) reload_flag=" $reload_flag" ;; 3435esac 3436reload_cmds='$LD$reload_flag -o $output$reload_objs' 3437case $host_os in 3438 cygwin* | mingw* | pw32* | cegcc*) 3439 if test yes != "$GCC"; then 3440 reload_cmds=false 3441 fi 3442 ;; 3443 darwin*) 3444 if test yes = "$GCC"; then 3445 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 3446 else 3447 reload_cmds='$LD$reload_flag -o $output$reload_objs' 3448 fi 3449 ;; 3450esac 3451_LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl 3452_LT_TAGDECL([], [reload_cmds], [2])dnl 3453])# _LT_CMD_RELOAD 3454 3455 3456# _LT_PATH_DD 3457# ----------- 3458# find a working dd 3459m4_defun([_LT_PATH_DD], 3460[AC_CACHE_CHECK([for a working dd], [ac_cv_path_lt_DD], 3461[printf 0123456789abcdef0123456789abcdef >conftest.i 3462cat conftest.i conftest.i >conftest2.i 3463: ${lt_DD:=$DD} 3464AC_PATH_PROGS_FEATURE_CHECK([lt_DD], [dd], 3465[if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 3466 cmp -s conftest.i conftest.out \ 3467 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 3468fi]) 3469rm -f conftest.i conftest2.i conftest.out]) 3470])# _LT_PATH_DD 3471 3472 3473# _LT_CMD_TRUNCATE 3474# ---------------- 3475# find command to truncate a binary pipe 3476m4_defun([_LT_CMD_TRUNCATE], 3477[m4_require([_LT_PATH_DD]) 3478AC_CACHE_CHECK([how to truncate binary pipes], [lt_cv_truncate_bin], 3479[printf 0123456789abcdef0123456789abcdef >conftest.i 3480cat conftest.i conftest.i >conftest2.i 3481lt_cv_truncate_bin= 3482if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 3483 cmp -s conftest.i conftest.out \ 3484 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 3485fi 3486rm -f conftest.i conftest2.i conftest.out 3487test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"]) 3488_LT_DECL([lt_truncate_bin], [lt_cv_truncate_bin], [1], 3489 [Command to truncate a binary pipe]) 3490])# _LT_CMD_TRUNCATE 3491 3492 3493# _LT_CHECK_MAGIC_METHOD 3494# ---------------------- 3495# how to check for library dependencies 3496# -- PORTME fill in with the dynamic library characteristics 3497m4_defun([_LT_CHECK_MAGIC_METHOD], 3498[m4_require([_LT_DECL_EGREP]) 3499m4_require([_LT_DECL_OBJDUMP]) 3500AC_CACHE_CHECK([how to recognize dependent libraries], 3501lt_cv_deplibs_check_method, 3502[lt_cv_file_magic_cmd='$MAGIC_CMD' 3503lt_cv_file_magic_test_file= 3504lt_cv_deplibs_check_method='unknown' 3505# Need to set the preceding variable on all platforms that support 3506# interlibrary dependencies. 3507# 'none' -- dependencies not supported. 3508# 'unknown' -- same as none, but documents that we really don't know. 3509# 'pass_all' -- all dependencies passed with no checks. 3510# 'test_compile' -- check by making test program. 3511# 'file_magic [[regex]]' -- check by looking for files in library path 3512# that responds to the $file_magic_cmd with a given extended regex. 3513# If you have 'file' or equivalent on your system and you're not sure 3514# whether 'pass_all' will *always* work, you probably want this one. 3515 3516case $host_os in 3517aix[[4-9]]*) 3518 lt_cv_deplibs_check_method=pass_all 3519 ;; 3520 3521beos*) 3522 lt_cv_deplibs_check_method=pass_all 3523 ;; 3524 3525bsdi[[45]]*) 3526 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' 3527 lt_cv_file_magic_cmd='/usr/bin/file -L' 3528 lt_cv_file_magic_test_file=/shlib/libc.so 3529 ;; 3530 3531cygwin*) 3532 # func_win32_libid is a shell function defined in ltmain.sh 3533 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 3534 lt_cv_file_magic_cmd='func_win32_libid' 3535 ;; 3536 3537mingw* | pw32*) 3538 # Base MSYS/MinGW do not provide the 'file' command needed by 3539 # func_win32_libid shell function, so use a weaker test based on 'objdump', 3540 # unless we find 'file', for example because we are cross-compiling. 3541 if ( file / ) >/dev/null 2>&1; then 3542 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 3543 lt_cv_file_magic_cmd='func_win32_libid' 3544 else 3545 # Keep this pattern in sync with the one in func_win32_libid. 3546 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 3547 lt_cv_file_magic_cmd='$OBJDUMP -f' 3548 fi 3549 ;; 3550 3551cegcc*) 3552 # use the weaker test based on 'objdump'. See mingw*. 3553 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 3554 lt_cv_file_magic_cmd='$OBJDUMP -f' 3555 ;; 3556 3557darwin* | rhapsody*) 3558 lt_cv_deplibs_check_method=pass_all 3559 ;; 3560 3561freebsd* | dragonfly*) 3562 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 3563 case $host_cpu in 3564 i*86 ) 3565 # Not sure whether the presence of OpenBSD here was a mistake. 3566 # Let's accept both of them until this is cleared up. 3567 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' 3568 lt_cv_file_magic_cmd=/usr/bin/file 3569 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 3570 ;; 3571 esac 3572 else 3573 lt_cv_deplibs_check_method=pass_all 3574 fi 3575 ;; 3576 3577haiku*) 3578 lt_cv_deplibs_check_method=pass_all 3579 ;; 3580 3581hpux10.20* | hpux11*) 3582 lt_cv_file_magic_cmd=/usr/bin/file 3583 case $host_cpu in 3584 ia64*) 3585 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' 3586 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 3587 ;; 3588 hppa*64*) 3589 [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'] 3590 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 3591 ;; 3592 *) 3593 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library' 3594 lt_cv_file_magic_test_file=/usr/lib/libc.sl 3595 ;; 3596 esac 3597 ;; 3598 3599interix[[3-9]]*) 3600 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 3601 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' 3602 ;; 3603 3604irix5* | irix6* | nonstopux*) 3605 case $LD in 3606 *-32|*"-32 ") libmagic=32-bit;; 3607 *-n32|*"-n32 ") libmagic=N32;; 3608 *-64|*"-64 ") libmagic=64-bit;; 3609 *) libmagic=never-match;; 3610 esac 3611 lt_cv_deplibs_check_method=pass_all 3612 ;; 3613 3614# This must be glibc/ELF. 3615linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 3616 lt_cv_deplibs_check_method=pass_all 3617 ;; 3618 3619netbsd*) 3620 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 3621 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' 3622 else 3623 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' 3624 fi 3625 ;; 3626 3627newos6*) 3628 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' 3629 lt_cv_file_magic_cmd=/usr/bin/file 3630 lt_cv_file_magic_test_file=/usr/lib/libnls.so 3631 ;; 3632 3633*nto* | *qnx*) 3634 lt_cv_deplibs_check_method=pass_all 3635 ;; 3636 3637openbsd* | bitrig*) 3638 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 3639 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' 3640 else 3641 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' 3642 fi 3643 ;; 3644 3645osf3* | osf4* | osf5*) 3646 lt_cv_deplibs_check_method=pass_all 3647 ;; 3648 3649rdos*) 3650 lt_cv_deplibs_check_method=pass_all 3651 ;; 3652 3653solaris*) 3654 lt_cv_deplibs_check_method=pass_all 3655 ;; 3656 3657sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 3658 lt_cv_deplibs_check_method=pass_all 3659 ;; 3660 3661sysv4 | sysv4.3*) 3662 case $host_vendor in 3663 motorola) 3664 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]]' 3665 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 3666 ;; 3667 ncr) 3668 lt_cv_deplibs_check_method=pass_all 3669 ;; 3670 sequent) 3671 lt_cv_file_magic_cmd='/bin/file' 3672 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' 3673 ;; 3674 sni) 3675 lt_cv_file_magic_cmd='/bin/file' 3676 lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" 3677 lt_cv_file_magic_test_file=/lib/libc.so 3678 ;; 3679 siemens) 3680 lt_cv_deplibs_check_method=pass_all 3681 ;; 3682 pc) 3683 lt_cv_deplibs_check_method=pass_all 3684 ;; 3685 esac 3686 ;; 3687 3688tpf*) 3689 lt_cv_deplibs_check_method=pass_all 3690 ;; 3691os2*) 3692 lt_cv_deplibs_check_method=pass_all 3693 ;; 3694esac 3695]) 3696 3697file_magic_glob= 3698want_nocaseglob=no 3699if test "$build" = "$host"; then 3700 case $host_os in 3701 mingw* | pw32*) 3702 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 3703 want_nocaseglob=yes 3704 else 3705 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"` 3706 fi 3707 ;; 3708 esac 3709fi 3710 3711file_magic_cmd=$lt_cv_file_magic_cmd 3712deplibs_check_method=$lt_cv_deplibs_check_method 3713test -z "$deplibs_check_method" && deplibs_check_method=unknown 3714 3715_LT_DECL([], [deplibs_check_method], [1], 3716 [Method to check whether dependent libraries are shared objects]) 3717_LT_DECL([], [file_magic_cmd], [1], 3718 [Command to use when deplibs_check_method = "file_magic"]) 3719_LT_DECL([], [file_magic_glob], [1], 3720 [How to find potential files when deplibs_check_method = "file_magic"]) 3721_LT_DECL([], [want_nocaseglob], [1], 3722 [Find potential files using nocaseglob when deplibs_check_method = "file_magic"]) 3723])# _LT_CHECK_MAGIC_METHOD 3724 3725 3726# LT_PATH_NM 3727# ---------- 3728# find the pathname to a BSD- or MS-compatible name lister 3729AC_DEFUN([LT_PATH_NM], 3730[AC_REQUIRE([AC_PROG_CC])dnl 3731AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM, 3732[if test -n "$NM"; then 3733 # Let the user override the test. 3734 lt_cv_path_NM=$NM 3735else 3736 lt_nm_to_check=${ac_tool_prefix}nm 3737 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 3738 lt_nm_to_check="$lt_nm_to_check nm" 3739 fi 3740 for lt_tmp_nm in $lt_nm_to_check; do 3741 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 3742 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 3743 IFS=$lt_save_ifs 3744 test -z "$ac_dir" && ac_dir=. 3745 tmp_nm=$ac_dir/$lt_tmp_nm 3746 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 3747 # Check to see if the nm accepts a BSD-compat flag. 3748 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 3749 # nm: unknown option "B" ignored 3750 # Tru64's nm complains that /dev/null is an invalid object file 3751 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 3752 case $build_os in 3753 mingw*) lt_bad_file=conftest.nm/nofile ;; 3754 *) lt_bad_file=/dev/null ;; 3755 esac 3756 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 3757 *$lt_bad_file* | *'Invalid file or object type'*) 3758 lt_cv_path_NM="$tmp_nm -B" 3759 break 2 3760 ;; 3761 *) 3762 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 3763 */dev/null*) 3764 lt_cv_path_NM="$tmp_nm -p" 3765 break 2 3766 ;; 3767 *) 3768 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 3769 continue # so that we can try to find one that supports BSD flags 3770 ;; 3771 esac 3772 ;; 3773 esac 3774 fi 3775 done 3776 IFS=$lt_save_ifs 3777 done 3778 : ${lt_cv_path_NM=no} 3779fi]) 3780if test no != "$lt_cv_path_NM"; then 3781 NM=$lt_cv_path_NM 3782else 3783 # Didn't find any BSD compatible name lister, look for dumpbin. 3784 if test -n "$DUMPBIN"; then : 3785 # Let the user override the test. 3786 else 3787 AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :) 3788 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 3789 *COFF*) 3790 DUMPBIN="$DUMPBIN -symbols -headers" 3791 ;; 3792 *) 3793 DUMPBIN=: 3794 ;; 3795 esac 3796 fi 3797 AC_SUBST([DUMPBIN]) 3798 if test : != "$DUMPBIN"; then 3799 NM=$DUMPBIN 3800 fi 3801fi 3802test -z "$NM" && NM=nm 3803AC_SUBST([NM]) 3804_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl 3805 3806AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface], 3807 [lt_cv_nm_interface="BSD nm" 3808 echo "int some_variable = 0;" > conftest.$ac_ext 3809 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD) 3810 (eval "$ac_compile" 2>conftest.err) 3811 cat conftest.err >&AS_MESSAGE_LOG_FD 3812 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD) 3813 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 3814 cat conftest.err >&AS_MESSAGE_LOG_FD 3815 (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD) 3816 cat conftest.out >&AS_MESSAGE_LOG_FD 3817 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 3818 lt_cv_nm_interface="MS dumpbin" 3819 fi 3820 rm -f conftest*]) 3821])# LT_PATH_NM 3822 3823# Old names: 3824AU_ALIAS([AM_PROG_NM], [LT_PATH_NM]) 3825AU_ALIAS([AC_PROG_NM], [LT_PATH_NM]) 3826dnl aclocal-1.4 backwards compatibility: 3827dnl AC_DEFUN([AM_PROG_NM], []) 3828dnl AC_DEFUN([AC_PROG_NM], []) 3829 3830# _LT_CHECK_SHAREDLIB_FROM_LINKLIB 3831# -------------------------------- 3832# how to determine the name of the shared library 3833# associated with a specific link library. 3834# -- PORTME fill in with the dynamic library characteristics 3835m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB], 3836[m4_require([_LT_DECL_EGREP]) 3837m4_require([_LT_DECL_OBJDUMP]) 3838m4_require([_LT_DECL_DLLTOOL]) 3839AC_CACHE_CHECK([how to associate runtime and link libraries], 3840lt_cv_sharedlib_from_linklib_cmd, 3841[lt_cv_sharedlib_from_linklib_cmd='unknown' 3842 3843case $host_os in 3844cygwin* | mingw* | pw32* | cegcc*) 3845 # two different shell functions defined in ltmain.sh; 3846 # decide which one to use based on capabilities of $DLLTOOL 3847 case `$DLLTOOL --help 2>&1` in 3848 *--identify-strict*) 3849 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 3850 ;; 3851 *) 3852 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 3853 ;; 3854 esac 3855 ;; 3856*) 3857 # fallback: assume linklib IS sharedlib 3858 lt_cv_sharedlib_from_linklib_cmd=$ECHO 3859 ;; 3860esac 3861]) 3862sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 3863test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 3864 3865_LT_DECL([], [sharedlib_from_linklib_cmd], [1], 3866 [Command to associate shared and link libraries]) 3867])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB 3868 3869 3870# _LT_PATH_MANIFEST_TOOL 3871# ---------------------- 3872# locate the manifest tool 3873m4_defun([_LT_PATH_MANIFEST_TOOL], 3874[AC_CHECK_TOOL(MANIFEST_TOOL, mt, :) 3875test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 3876AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool], 3877 [lt_cv_path_mainfest_tool=no 3878 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD 3879 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 3880 cat conftest.err >&AS_MESSAGE_LOG_FD 3881 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 3882 lt_cv_path_mainfest_tool=yes 3883 fi 3884 rm -f conftest*]) 3885if test yes != "$lt_cv_path_mainfest_tool"; then 3886 MANIFEST_TOOL=: 3887fi 3888_LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl 3889])# _LT_PATH_MANIFEST_TOOL 3890 3891 3892# _LT_DLL_DEF_P([FILE]) 3893# --------------------- 3894# True iff FILE is a Windows DLL '.def' file. 3895# Keep in sync with func_dll_def_p in the libtool script 3896AC_DEFUN([_LT_DLL_DEF_P], 3897[dnl 3898 test DEF = "`$SED -n dnl 3899 -e '\''s/^[[ ]]*//'\'' dnl Strip leading whitespace 3900 -e '\''/^\(;.*\)*$/d'\'' dnl Delete empty lines and comments 3901 -e '\''s/^\(EXPORTS\|LIBRARY\)\([[ ]].*\)*$/DEF/p'\'' dnl 3902 -e q dnl Only consider the first "real" line 3903 $1`" dnl 3904])# _LT_DLL_DEF_P 3905 3906 3907# LT_LIB_M 3908# -------- 3909# check for math library 3910AC_DEFUN([LT_LIB_M], 3911[AC_REQUIRE([AC_CANONICAL_HOST])dnl 3912LIBM= 3913case $host in 3914*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*) 3915 # These system don't have libm, or don't need it 3916 ;; 3917*-ncr-sysv4.3*) 3918 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM=-lmw) 3919 AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") 3920 ;; 3921*) 3922 AC_CHECK_LIB(m, cos, LIBM=-lm) 3923 ;; 3924esac 3925AC_SUBST([LIBM]) 3926])# LT_LIB_M 3927 3928# Old name: 3929AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M]) 3930dnl aclocal-1.4 backwards compatibility: 3931dnl AC_DEFUN([AC_CHECK_LIBM], []) 3932 3933 3934# _LT_COMPILER_NO_RTTI([TAGNAME]) 3935# ------------------------------- 3936m4_defun([_LT_COMPILER_NO_RTTI], 3937[m4_require([_LT_TAG_COMPILER])dnl 3938 3939_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= 3940 3941if test yes = "$GCC"; then 3942 case $cc_basename in 3943 nvcc*) 3944 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;; 3945 *) 3946 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;; 3947 esac 3948 3949 _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], 3950 lt_cv_prog_compiler_rtti_exceptions, 3951 [-fno-rtti -fno-exceptions], [], 3952 [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) 3953fi 3954_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1], 3955 [Compiler flag to turn off builtin functions]) 3956])# _LT_COMPILER_NO_RTTI 3957 3958 3959# _LT_CMD_GLOBAL_SYMBOLS 3960# ---------------------- 3961m4_defun([_LT_CMD_GLOBAL_SYMBOLS], 3962[AC_REQUIRE([AC_CANONICAL_HOST])dnl 3963AC_REQUIRE([AC_PROG_CC])dnl 3964AC_REQUIRE([AC_PROG_AWK])dnl 3965AC_REQUIRE([LT_PATH_NM])dnl 3966AC_REQUIRE([LT_PATH_LD])dnl 3967m4_require([_LT_DECL_SED])dnl 3968m4_require([_LT_DECL_EGREP])dnl 3969m4_require([_LT_TAG_COMPILER])dnl 3970 3971# Check for command to grab the raw symbol name followed by C symbol from nm. 3972AC_MSG_CHECKING([command to parse $NM output from $compiler object]) 3973AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], 3974[ 3975# These are sane defaults that work on at least a few old systems. 3976# [They come from Ultrix. What could be older than Ultrix?!! ;)] 3977 3978# Character class describing NM global symbol codes. 3979symcode='[[BCDEGRST]]' 3980 3981# Regexp to match symbols that can be accessed directly from C. 3982sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' 3983 3984# Define system-specific variables. 3985case $host_os in 3986aix*) 3987 symcode='[[BCDT]]' 3988 ;; 3989cygwin* | mingw* | pw32* | cegcc*) 3990 symcode='[[ABCDGISTW]]' 3991 ;; 3992hpux*) 3993 if test ia64 = "$host_cpu"; then 3994 symcode='[[ABCDEGRST]]' 3995 fi 3996 ;; 3997irix* | nonstopux*) 3998 symcode='[[BCDEGRST]]' 3999 ;; 4000osf*) 4001 symcode='[[BCDEGQRST]]' 4002 ;; 4003solaris*) 4004 symcode='[[BDRT]]' 4005 ;; 4006sco3.2v5*) 4007 symcode='[[DT]]' 4008 ;; 4009sysv4.2uw2*) 4010 symcode='[[DT]]' 4011 ;; 4012sysv5* | sco5v6* | unixware* | OpenUNIX*) 4013 symcode='[[ABDT]]' 4014 ;; 4015sysv4) 4016 symcode='[[DFNSTU]]' 4017 ;; 4018esac 4019 4020# If we're using GNU nm, then use its standard symbol codes. 4021case `$NM -V 2>&1` in 4022*GNU* | *'with BFD'*) 4023 symcode='[[ABCDGIRSTW]]' ;; 4024esac 4025 4026if test "$lt_cv_nm_interface" = "MS dumpbin"; then 4027 # Gets list of data symbols to import. 4028 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 4029 # Adjust the below global symbol transforms to fixup imported variables. 4030 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 4031 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 4032 lt_c_name_lib_hook="\ 4033 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 4034 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 4035else 4036 # Disable hooks by default. 4037 lt_cv_sys_global_symbol_to_import= 4038 lt_cdecl_hook= 4039 lt_c_name_hook= 4040 lt_c_name_lib_hook= 4041fi 4042 4043# Transform an extracted symbol line into a proper C declaration. 4044# Some systems (esp. on ia64) link data and code symbols differently, 4045# so use this general approach. 4046lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 4047$lt_cdecl_hook\ 4048" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 4049" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 4050 4051# Transform an extracted symbol line into symbol name and symbol address 4052lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 4053$lt_c_name_hook\ 4054" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 4055" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 4056 4057# Transform an extracted symbol line into symbol name with lib prefix and 4058# symbol address. 4059lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 4060$lt_c_name_lib_hook\ 4061" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 4062" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 4063" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 4064 4065# Handle CRLF in mingw tool chain 4066opt_cr= 4067case $build_os in 4068mingw*) 4069 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 4070 ;; 4071esac 4072 4073# Try without a prefix underscore, then with it. 4074for ac_symprfx in "" "_"; do 4075 4076 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 4077 symxfrm="\\1 $ac_symprfx\\2 \\2" 4078 4079 # Write the raw and C identifiers. 4080 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 4081 # Fake it for dumpbin and say T for any non-static function, 4082 # D for any global variable and I for any imported variable. 4083 # Also find C++ and __fastcall symbols from MSVC++, 4084 # which start with @ or ?. 4085 lt_cv_sys_global_symbol_pipe="$AWK ['"\ 4086" {last_section=section; section=\$ 3};"\ 4087" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 4088" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 4089" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 4090" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 4091" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 4092" \$ 0!~/External *\|/{next};"\ 4093" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 4094" {if(hide[section]) next};"\ 4095" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 4096" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 4097" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 4098" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 4099" ' prfx=^$ac_symprfx]" 4100 else 4101 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 4102 fi 4103 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 4104 4105 # Check to see that the pipe works correctly. 4106 pipe_works=no 4107 4108 rm -f conftest* 4109 cat > conftest.$ac_ext <<_LT_EOF 4110#ifdef __cplusplus 4111extern "C" { 4112#endif 4113char nm_test_var; 4114void nm_test_func(void); 4115void nm_test_func(void){} 4116#ifdef __cplusplus 4117} 4118#endif 4119int main(){nm_test_var='a';nm_test_func();return(0);} 4120_LT_EOF 4121 4122 if AC_TRY_EVAL(ac_compile); then 4123 # Now try to grab the symbols. 4124 nlist=conftest.nm 4125 if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then 4126 # Try sorting and uniquifying the output. 4127 if sort "$nlist" | uniq > "$nlist"T; then 4128 mv -f "$nlist"T "$nlist" 4129 else 4130 rm -f "$nlist"T 4131 fi 4132 4133 # Make sure that we snagged all the symbols we need. 4134 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 4135 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 4136 cat <<_LT_EOF > conftest.$ac_ext 4137/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 4138#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 4139/* DATA imports from DLLs on WIN32 can't be const, because runtime 4140 relocations are performed -- see ld's documentation on pseudo-relocs. */ 4141# define LT@&t@_DLSYM_CONST 4142#elif defined __osf__ 4143/* This system does not cope well with relocations in const data. */ 4144# define LT@&t@_DLSYM_CONST 4145#else 4146# define LT@&t@_DLSYM_CONST const 4147#endif 4148 4149#ifdef __cplusplus 4150extern "C" { 4151#endif 4152 4153_LT_EOF 4154 # Now generate the symbol file. 4155 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 4156 4157 cat <<_LT_EOF >> conftest.$ac_ext 4158 4159/* The mapping between symbol names and symbols. */ 4160LT@&t@_DLSYM_CONST struct { 4161 const char *name; 4162 void *address; 4163} 4164lt__PROGRAM__LTX_preloaded_symbols[[]] = 4165{ 4166 { "@PROGRAM@", (void *) 0 }, 4167_LT_EOF 4168 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 4169 cat <<\_LT_EOF >> conftest.$ac_ext 4170 {0, (void *) 0} 4171}; 4172 4173/* This works around a problem in FreeBSD linker */ 4174#ifdef FREEBSD_WORKAROUND 4175static const void *lt_preloaded_setup() { 4176 return lt__PROGRAM__LTX_preloaded_symbols; 4177} 4178#endif 4179 4180#ifdef __cplusplus 4181} 4182#endif 4183_LT_EOF 4184 # Now try linking the two files. 4185 mv conftest.$ac_objext conftstm.$ac_objext 4186 lt_globsym_save_LIBS=$LIBS 4187 lt_globsym_save_CFLAGS=$CFLAGS 4188 LIBS=conftstm.$ac_objext 4189 CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" 4190 if AC_TRY_EVAL(ac_link) && test -s conftest$ac_exeext; then 4191 pipe_works=yes 4192 fi 4193 LIBS=$lt_globsym_save_LIBS 4194 CFLAGS=$lt_globsym_save_CFLAGS 4195 else 4196 echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD 4197 fi 4198 else 4199 echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD 4200 fi 4201 else 4202 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD 4203 fi 4204 else 4205 echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD 4206 cat conftest.$ac_ext >&5 4207 fi 4208 rm -rf conftest* conftst* 4209 4210 # Do not use the global_symbol_pipe unless it works. 4211 if test yes = "$pipe_works"; then 4212 break 4213 else 4214 lt_cv_sys_global_symbol_pipe= 4215 fi 4216done 4217]) 4218if test -z "$lt_cv_sys_global_symbol_pipe"; then 4219 lt_cv_sys_global_symbol_to_cdecl= 4220fi 4221if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 4222 AC_MSG_RESULT(failed) 4223else 4224 AC_MSG_RESULT(ok) 4225fi 4226 4227# Response file support. 4228if test "$lt_cv_nm_interface" = "MS dumpbin"; then 4229 nm_file_list_spec='@' 4230elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then 4231 nm_file_list_spec='@' 4232fi 4233 4234_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1], 4235 [Take the output of nm and produce a listing of raw symbols and C names]) 4236_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1], 4237 [Transform the output of nm in a proper C declaration]) 4238_LT_DECL([global_symbol_to_import], [lt_cv_sys_global_symbol_to_import], [1], 4239 [Transform the output of nm into a list of symbols to manually relocate]) 4240_LT_DECL([global_symbol_to_c_name_address], 4241 [lt_cv_sys_global_symbol_to_c_name_address], [1], 4242 [Transform the output of nm in a C name address pair]) 4243_LT_DECL([global_symbol_to_c_name_address_lib_prefix], 4244 [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1], 4245 [Transform the output of nm in a C name address pair when lib prefix is needed]) 4246_LT_DECL([nm_interface], [lt_cv_nm_interface], [1], 4247 [The name lister interface]) 4248_LT_DECL([], [nm_file_list_spec], [1], 4249 [Specify filename containing input files for $NM]) 4250]) # _LT_CMD_GLOBAL_SYMBOLS 4251 4252 4253# _LT_COMPILER_PIC([TAGNAME]) 4254# --------------------------- 4255m4_defun([_LT_COMPILER_PIC], 4256[m4_require([_LT_TAG_COMPILER])dnl 4257_LT_TAGVAR(lt_prog_compiler_wl, $1)= 4258_LT_TAGVAR(lt_prog_compiler_pic, $1)= 4259_LT_TAGVAR(lt_prog_compiler_static, $1)= 4260 4261m4_if([$1], [CXX], [ 4262 # C++ specific cases for pic, static, wl, etc. 4263 if test yes = "$GXX"; then 4264 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4265 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 4266 4267 case $host_os in 4268 aix*) 4269 # All AIX code is PIC. 4270 if test ia64 = "$host_cpu"; then 4271 # AIX 5 now supports IA64 processor 4272 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4273 fi 4274 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 4275 ;; 4276 4277 amigaos*) 4278 case $host_cpu in 4279 powerpc) 4280 # see comment about AmigaOS4 .so support 4281 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 4282 ;; 4283 m68k) 4284 # FIXME: we need at least 68020 code to build shared libraries, but 4285 # adding the '-m68020' flag to GCC prevents building anything better, 4286 # like '-m68040'. 4287 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' 4288 ;; 4289 esac 4290 ;; 4291 4292 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 4293 # PIC is the default for these OSes. 4294 ;; 4295 mingw* | cygwin* | os2* | pw32* | cegcc*) 4296 # This hack is so that the source file can tell whether it is being 4297 # built for inclusion in a dll (and should export symbols for example). 4298 # Although the cygwin gcc ignores -fPIC, still need this for old-style 4299 # (--disable-auto-import) libraries 4300 m4_if([$1], [GCJ], [], 4301 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 4302 case $host_os in 4303 os2*) 4304 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static' 4305 ;; 4306 esac 4307 ;; 4308 darwin* | rhapsody*) 4309 # PIC is the default on this platform 4310 # Common symbols not allowed in MH_DYLIB files 4311 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' 4312 ;; 4313 *djgpp*) 4314 # DJGPP does not support shared libraries at all 4315 _LT_TAGVAR(lt_prog_compiler_pic, $1)= 4316 ;; 4317 haiku*) 4318 # PIC is the default for Haiku. 4319 # The "-static" flag exists, but is broken. 4320 _LT_TAGVAR(lt_prog_compiler_static, $1)= 4321 ;; 4322 interix[[3-9]]*) 4323 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 4324 # Instead, we relocate shared libraries at runtime. 4325 ;; 4326 sysv4*MP*) 4327 if test -d /usr/nec; then 4328 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic 4329 fi 4330 ;; 4331 hpux*) 4332 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 4333 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 4334 # sets the default TLS model and affects inlining. 4335 case $host_cpu in 4336 hppa*64*) 4337 ;; 4338 *) 4339 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 4340 ;; 4341 esac 4342 ;; 4343 *qnx* | *nto*) 4344 # QNX uses GNU C++, but need to define -shared option too, otherwise 4345 # it will coredump. 4346 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' 4347 ;; 4348 *) 4349 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 4350 ;; 4351 esac 4352 else 4353 case $host_os in 4354 aix[[4-9]]*) 4355 # All AIX code is PIC. 4356 if test ia64 = "$host_cpu"; then 4357 # AIX 5 now supports IA64 processor 4358 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4359 else 4360 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' 4361 fi 4362 ;; 4363 chorus*) 4364 case $cc_basename in 4365 cxch68*) 4366 # Green Hills C++ Compiler 4367 # _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" 4368 ;; 4369 esac 4370 ;; 4371 mingw* | cygwin* | os2* | pw32* | cegcc*) 4372 # This hack is so that the source file can tell whether it is being 4373 # built for inclusion in a dll (and should export symbols for example). 4374 m4_if([$1], [GCJ], [], 4375 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 4376 ;; 4377 dgux*) 4378 case $cc_basename in 4379 ec++*) 4380 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4381 ;; 4382 ghcx*) 4383 # Green Hills C++ Compiler 4384 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 4385 ;; 4386 *) 4387 ;; 4388 esac 4389 ;; 4390 freebsd* | dragonfly*) 4391 # FreeBSD uses GNU C++ 4392 ;; 4393 hpux9* | hpux10* | hpux11*) 4394 case $cc_basename in 4395 CC*) 4396 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4397 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive' 4398 if test ia64 != "$host_cpu"; then 4399 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 4400 fi 4401 ;; 4402 aCC*) 4403 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4404 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive' 4405 case $host_cpu in 4406 hppa*64*|ia64*) 4407 # +Z the default 4408 ;; 4409 *) 4410 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 4411 ;; 4412 esac 4413 ;; 4414 *) 4415 ;; 4416 esac 4417 ;; 4418 interix*) 4419 # This is c89, which is MS Visual C++ (no shared libs) 4420 # Anyone wants to do a port? 4421 ;; 4422 irix5* | irix6* | nonstopux*) 4423 case $cc_basename in 4424 CC*) 4425 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4426 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 4427 # CC pic flag -KPIC is the default. 4428 ;; 4429 *) 4430 ;; 4431 esac 4432 ;; 4433 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 4434 case $cc_basename in 4435 KCC*) 4436 # KAI C++ Compiler 4437 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' 4438 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 4439 ;; 4440 ecpc* ) 4441 # old Intel C++ for x86_64, which still supported -KPIC. 4442 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4443 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4444 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 4445 ;; 4446 icpc* ) 4447 # Intel C++, used to be incompatible with GCC. 4448 # ICC 10 doesn't accept -KPIC any more. 4449 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4450 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 4451 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 4452 ;; 4453 pgCC* | pgcpp*) 4454 # Portland Group C++ compiler 4455 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4456 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' 4457 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4458 ;; 4459 cxx*) 4460 # Compaq C++ 4461 # Make sure the PIC flag is empty. It appears that all Alpha 4462 # Linux and Compaq Tru64 Unix objects are PIC. 4463 _LT_TAGVAR(lt_prog_compiler_pic, $1)= 4464 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 4465 ;; 4466 xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*) 4467 # IBM XL 8.0, 9.0 on PPC and BlueGene 4468 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4469 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' 4470 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' 4471 ;; 4472 *) 4473 case `$CC -V 2>&1 | sed 5q` in 4474 *Sun\ C*) 4475 # Sun C++ 5.9 4476 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4477 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4478 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 4479 ;; 4480 esac 4481 ;; 4482 esac 4483 ;; 4484 lynxos*) 4485 ;; 4486 m88k*) 4487 ;; 4488 mvs*) 4489 case $cc_basename in 4490 cxx*) 4491 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' 4492 ;; 4493 *) 4494 ;; 4495 esac 4496 ;; 4497 netbsd*) 4498 ;; 4499 *qnx* | *nto*) 4500 # QNX uses GNU C++, but need to define -shared option too, otherwise 4501 # it will coredump. 4502 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' 4503 ;; 4504 osf3* | osf4* | osf5*) 4505 case $cc_basename in 4506 KCC*) 4507 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' 4508 ;; 4509 RCC*) 4510 # Rational C++ 2.4.1 4511 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 4512 ;; 4513 cxx*) 4514 # Digital/Compaq C++ 4515 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4516 # Make sure the PIC flag is empty. It appears that all Alpha 4517 # Linux and Compaq Tru64 Unix objects are PIC. 4518 _LT_TAGVAR(lt_prog_compiler_pic, $1)= 4519 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 4520 ;; 4521 *) 4522 ;; 4523 esac 4524 ;; 4525 psos*) 4526 ;; 4527 solaris*) 4528 case $cc_basename in 4529 CC* | sunCC*) 4530 # Sun C++ 4.2, 5.x and Centerline C++ 4531 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4532 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4533 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 4534 ;; 4535 gcx*) 4536 # Green Hills C++ Compiler 4537 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' 4538 ;; 4539 *) 4540 ;; 4541 esac 4542 ;; 4543 sunos4*) 4544 case $cc_basename in 4545 CC*) 4546 # Sun C++ 4.x 4547 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 4548 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4549 ;; 4550 lcc*) 4551 # Lucid 4552 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 4553 ;; 4554 *) 4555 ;; 4556 esac 4557 ;; 4558 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 4559 case $cc_basename in 4560 CC*) 4561 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4562 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4563 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4564 ;; 4565 esac 4566 ;; 4567 tandem*) 4568 case $cc_basename in 4569 NCC*) 4570 # NonStop-UX NCC 3.20 4571 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4572 ;; 4573 *) 4574 ;; 4575 esac 4576 ;; 4577 vxworks*) 4578 ;; 4579 *) 4580 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 4581 ;; 4582 esac 4583 fi 4584], 4585[ 4586 if test yes = "$GCC"; then 4587 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4588 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 4589 4590 case $host_os in 4591 aix*) 4592 # All AIX code is PIC. 4593 if test ia64 = "$host_cpu"; then 4594 # AIX 5 now supports IA64 processor 4595 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4596 fi 4597 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 4598 ;; 4599 4600 amigaos*) 4601 case $host_cpu in 4602 powerpc) 4603 # see comment about AmigaOS4 .so support 4604 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 4605 ;; 4606 m68k) 4607 # FIXME: we need at least 68020 code to build shared libraries, but 4608 # adding the '-m68020' flag to GCC prevents building anything better, 4609 # like '-m68040'. 4610 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' 4611 ;; 4612 esac 4613 ;; 4614 4615 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 4616 # PIC is the default for these OSes. 4617 ;; 4618 4619 mingw* | cygwin* | pw32* | os2* | cegcc*) 4620 # This hack is so that the source file can tell whether it is being 4621 # built for inclusion in a dll (and should export symbols for example). 4622 # Although the cygwin gcc ignores -fPIC, still need this for old-style 4623 # (--disable-auto-import) libraries 4624 m4_if([$1], [GCJ], [], 4625 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 4626 case $host_os in 4627 os2*) 4628 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static' 4629 ;; 4630 esac 4631 ;; 4632 4633 darwin* | rhapsody*) 4634 # PIC is the default on this platform 4635 # Common symbols not allowed in MH_DYLIB files 4636 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' 4637 ;; 4638 4639 haiku*) 4640 # PIC is the default for Haiku. 4641 # The "-static" flag exists, but is broken. 4642 _LT_TAGVAR(lt_prog_compiler_static, $1)= 4643 ;; 4644 4645 hpux*) 4646 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 4647 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 4648 # sets the default TLS model and affects inlining. 4649 case $host_cpu in 4650 hppa*64*) 4651 # +Z the default 4652 ;; 4653 *) 4654 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 4655 ;; 4656 esac 4657 ;; 4658 4659 interix[[3-9]]*) 4660 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 4661 # Instead, we relocate shared libraries at runtime. 4662 ;; 4663 4664 msdosdjgpp*) 4665 # Just because we use GCC doesn't mean we suddenly get shared libraries 4666 # on systems that don't support them. 4667 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 4668 enable_shared=no 4669 ;; 4670 4671 *nto* | *qnx*) 4672 # QNX uses GNU C++, but need to define -shared option too, otherwise 4673 # it will coredump. 4674 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' 4675 ;; 4676 4677 sysv4*MP*) 4678 if test -d /usr/nec; then 4679 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic 4680 fi 4681 ;; 4682 4683 *) 4684 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 4685 ;; 4686 esac 4687 4688 case $cc_basename in 4689 nvcc*) # Cuda Compiler Driver 2.2 4690 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker ' 4691 if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then 4692 _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)" 4693 fi 4694 ;; 4695 esac 4696 else 4697 # PORTME Check for flag to pass linker flags through the system compiler. 4698 case $host_os in 4699 aix*) 4700 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4701 if test ia64 = "$host_cpu"; then 4702 # AIX 5 now supports IA64 processor 4703 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4704 else 4705 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' 4706 fi 4707 ;; 4708 4709 darwin* | rhapsody*) 4710 # PIC is the default on this platform 4711 # Common symbols not allowed in MH_DYLIB files 4712 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' 4713 case $cc_basename in 4714 nagfor*) 4715 # NAG Fortran compiler 4716 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,' 4717 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' 4718 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4719 ;; 4720 esac 4721 ;; 4722 4723 mingw* | cygwin* | pw32* | os2* | cegcc*) 4724 # This hack is so that the source file can tell whether it is being 4725 # built for inclusion in a dll (and should export symbols for example). 4726 m4_if([$1], [GCJ], [], 4727 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 4728 case $host_os in 4729 os2*) 4730 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static' 4731 ;; 4732 esac 4733 ;; 4734 4735 hpux9* | hpux10* | hpux11*) 4736 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4737 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 4738 # not for PA HP-UX. 4739 case $host_cpu in 4740 hppa*64*|ia64*) 4741 # +Z the default 4742 ;; 4743 *) 4744 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 4745 ;; 4746 esac 4747 # Is there a better lt_prog_compiler_static that works with the bundled CC? 4748 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive' 4749 ;; 4750 4751 irix5* | irix6* | nonstopux*) 4752 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4753 # PIC (with -KPIC) is the default. 4754 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 4755 ;; 4756 4757 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 4758 case $cc_basename in 4759 # old Intel for x86_64, which still supported -KPIC. 4760 ecc*) 4761 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4762 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4763 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 4764 ;; 4765 # icc used to be incompatible with GCC. 4766 # ICC 10 doesn't accept -KPIC any more. 4767 icc* | ifort*) 4768 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4769 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 4770 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 4771 ;; 4772 # Lahey Fortran 8.1. 4773 lf95*) 4774 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4775 _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared' 4776 _LT_TAGVAR(lt_prog_compiler_static, $1)='--static' 4777 ;; 4778 nagfor*) 4779 # NAG Fortran compiler 4780 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,' 4781 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' 4782 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4783 ;; 4784 tcc*) 4785 # Fabrice Bellard et al's Tiny C Compiler 4786 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4787 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 4788 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 4789 ;; 4790 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 4791 # Portland Group compilers (*not* the Pentium gcc compiler, 4792 # which looks to be a dead project) 4793 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4794 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' 4795 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4796 ;; 4797 ccc*) 4798 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4799 # All Alpha code is PIC. 4800 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 4801 ;; 4802 xl* | bgxl* | bgf* | mpixl*) 4803 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 4804 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4805 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' 4806 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' 4807 ;; 4808 *) 4809 case `$CC -V 2>&1 | sed 5q` in 4810 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*) 4811 # Sun Fortran 8.3 passes all unrecognized flags to the linker 4812 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4813 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4814 _LT_TAGVAR(lt_prog_compiler_wl, $1)='' 4815 ;; 4816 *Sun\ F* | *Sun*Fortran*) 4817 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4818 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4819 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 4820 ;; 4821 *Sun\ C*) 4822 # Sun C 5.9 4823 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4824 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4825 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4826 ;; 4827 *Intel*\ [[CF]]*Compiler*) 4828 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4829 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 4830 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 4831 ;; 4832 *Portland\ Group*) 4833 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4834 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' 4835 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4836 ;; 4837 esac 4838 ;; 4839 esac 4840 ;; 4841 4842 newsos6) 4843 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4844 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4845 ;; 4846 4847 *nto* | *qnx*) 4848 # QNX uses GNU C++, but need to define -shared option too, otherwise 4849 # it will coredump. 4850 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' 4851 ;; 4852 4853 osf3* | osf4* | osf5*) 4854 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4855 # All OSF/1 code is PIC. 4856 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 4857 ;; 4858 4859 rdos*) 4860 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 4861 ;; 4862 4863 solaris*) 4864 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4865 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4866 case $cc_basename in 4867 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 4868 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; 4869 *) 4870 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; 4871 esac 4872 ;; 4873 4874 sunos4*) 4875 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 4876 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' 4877 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4878 ;; 4879 4880 sysv4 | sysv4.2uw2* | sysv4.3*) 4881 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4882 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4883 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4884 ;; 4885 4886 sysv4*MP*) 4887 if test -d /usr/nec; then 4888 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' 4889 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4890 fi 4891 ;; 4892 4893 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 4894 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4895 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4896 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4897 ;; 4898 4899 unicos*) 4900 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4901 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 4902 ;; 4903 4904 uts4*) 4905 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 4906 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4907 ;; 4908 4909 *) 4910 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 4911 ;; 4912 esac 4913 fi 4914]) 4915case $host_os in 4916 # For platforms that do not support PIC, -DPIC is meaningless: 4917 *djgpp*) 4918 _LT_TAGVAR(lt_prog_compiler_pic, $1)= 4919 ;; 4920 *) 4921 _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])" 4922 ;; 4923esac 4924 4925AC_CACHE_CHECK([for $compiler option to produce PIC], 4926 [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)], 4927 [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)]) 4928_LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1) 4929 4930# 4931# Check to make sure the PIC flag actually works. 4932# 4933if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then 4934 _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works], 4935 [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)], 4936 [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [], 4937 [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in 4938 "" | " "*) ;; 4939 *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;; 4940 esac], 4941 [_LT_TAGVAR(lt_prog_compiler_pic, $1)= 4942 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) 4943fi 4944_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1], 4945 [Additional compiler flags for building library objects]) 4946 4947_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1], 4948 [How to pass a linker flag through the compiler]) 4949# 4950# Check to make sure the static flag actually works. 4951# 4952wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\" 4953_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], 4954 _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1), 4955 $lt_tmp_static_flag, 4956 [], 4957 [_LT_TAGVAR(lt_prog_compiler_static, $1)=]) 4958_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1], 4959 [Compiler flag to prevent dynamic linking]) 4960])# _LT_COMPILER_PIC 4961 4962 4963# _LT_LINKER_SHLIBS([TAGNAME]) 4964# ---------------------------- 4965# See if the linker supports building shared libraries. 4966m4_defun([_LT_LINKER_SHLIBS], 4967[AC_REQUIRE([LT_PATH_LD])dnl 4968AC_REQUIRE([LT_PATH_NM])dnl 4969m4_require([_LT_PATH_MANIFEST_TOOL])dnl 4970m4_require([_LT_FILEUTILS_DEFAULTS])dnl 4971m4_require([_LT_DECL_EGREP])dnl 4972m4_require([_LT_DECL_SED])dnl 4973m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl 4974m4_require([_LT_TAG_COMPILER])dnl 4975AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) 4976m4_if([$1], [CXX], [ 4977 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 4978 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] 4979 case $host_os in 4980 aix[[4-9]]*) 4981 # If we're using GNU nm, then we don't want the "-C" option. 4982 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 4983 # Without the "-l" option, or with the "-B" option, AIX nm treats 4984 # weak defined symbols like other global defined symbols, whereas 4985 # GNU nm marks them as "W". 4986 # While the 'weak' keyword is ignored in the Export File, we need 4987 # it in the Import File for the 'aix-soname' feature, so we have 4988 # to replace the "-B" option with "-P" for AIX nm. 4989 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 4990 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 4991 else 4992 _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 4993 fi 4994 ;; 4995 pw32*) 4996 _LT_TAGVAR(export_symbols_cmds, $1)=$ltdll_cmds 4997 ;; 4998 cygwin* | mingw* | cegcc*) 4999 case $cc_basename in 5000 cl*) 5001 _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 5002 ;; 5003 *) 5004 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols' 5005 _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'] 5006 ;; 5007 esac 5008 ;; 5009 *) 5010 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 5011 ;; 5012 esac 5013], [ 5014 runpath_var= 5015 _LT_TAGVAR(allow_undefined_flag, $1)= 5016 _LT_TAGVAR(always_export_symbols, $1)=no 5017 _LT_TAGVAR(archive_cmds, $1)= 5018 _LT_TAGVAR(archive_expsym_cmds, $1)= 5019 _LT_TAGVAR(compiler_needs_object, $1)=no 5020 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no 5021 _LT_TAGVAR(export_dynamic_flag_spec, $1)= 5022 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 5023 _LT_TAGVAR(hardcode_automatic, $1)=no 5024 _LT_TAGVAR(hardcode_direct, $1)=no 5025 _LT_TAGVAR(hardcode_direct_absolute, $1)=no 5026 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 5027 _LT_TAGVAR(hardcode_libdir_separator, $1)= 5028 _LT_TAGVAR(hardcode_minus_L, $1)=no 5029 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 5030 _LT_TAGVAR(inherit_rpath, $1)=no 5031 _LT_TAGVAR(link_all_deplibs, $1)=unknown 5032 _LT_TAGVAR(module_cmds, $1)= 5033 _LT_TAGVAR(module_expsym_cmds, $1)= 5034 _LT_TAGVAR(old_archive_from_new_cmds, $1)= 5035 _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)= 5036 _LT_TAGVAR(thread_safe_flag_spec, $1)= 5037 _LT_TAGVAR(whole_archive_flag_spec, $1)= 5038 # include_expsyms should be a list of space-separated symbols to be *always* 5039 # included in the symbol list 5040 _LT_TAGVAR(include_expsyms, $1)= 5041 # exclude_expsyms can be an extended regexp of symbols to exclude 5042 # it will be wrapped by ' (' and ')$', so one must not match beginning or 5043 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 5044 # as well as any symbol that contains 'd'. 5045 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] 5046 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 5047 # platforms (ab)use it in PIC code, but their linkers get confused if 5048 # the symbol is explicitly referenced. Since portable code cannot 5049 # rely on this symbol name, it's probably fine to never include it in 5050 # preloaded symbol tables. 5051 # Exclude shared library initialization/finalization symbols. 5052dnl Note also adjust exclude_expsyms for C++ above. 5053 extract_expsyms_cmds= 5054 5055 case $host_os in 5056 cygwin* | mingw* | pw32* | cegcc*) 5057 # FIXME: the MSVC++ port hasn't been tested in a loooong time 5058 # When not using gcc, we currently assume that we are using 5059 # Microsoft Visual C++. 5060 if test yes != "$GCC"; then 5061 with_gnu_ld=no 5062 fi 5063 ;; 5064 interix*) 5065 # we just hope/assume this is gcc and not c89 (= MSVC++) 5066 with_gnu_ld=yes 5067 ;; 5068 openbsd* | bitrig*) 5069 with_gnu_ld=no 5070 ;; 5071 esac 5072 5073 _LT_TAGVAR(ld_shlibs, $1)=yes 5074 5075 # On some targets, GNU ld is compatible enough with the native linker 5076 # that we're better off using the native interface for both. 5077 lt_use_gnu_ld_interface=no 5078 if test yes = "$with_gnu_ld"; then 5079 case $host_os in 5080 aix*) 5081 # The AIX port of GNU ld has always aspired to compatibility 5082 # with the native linker. However, as the warning in the GNU ld 5083 # block says, versions before 2.19.5* couldn't really create working 5084 # shared libraries, regardless of the interface used. 5085 case `$LD -v 2>&1` in 5086 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 5087 *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;; 5088 *\ \(GNU\ Binutils\)\ [[3-9]]*) ;; 5089 *) 5090 lt_use_gnu_ld_interface=yes 5091 ;; 5092 esac 5093 ;; 5094 *) 5095 lt_use_gnu_ld_interface=yes 5096 ;; 5097 esac 5098 fi 5099 5100 if test yes = "$lt_use_gnu_ld_interface"; then 5101 # If archive_cmds runs LD, not CC, wlarc should be empty 5102 wlarc='$wl' 5103 5104 # Set some defaults for GNU ld with shared library support. These 5105 # are reset later if shared libraries are not supported. Putting them 5106 # here allows them to be overridden if necessary. 5107 runpath_var=LD_RUN_PATH 5108 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 5109 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' 5110 # ancient GNU ld didn't support --whole-archive et. al. 5111 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 5112 _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 5113 else 5114 _LT_TAGVAR(whole_archive_flag_spec, $1)= 5115 fi 5116 supports_anon_versioning=no 5117 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in 5118 *GNU\ gold*) supports_anon_versioning=yes ;; 5119 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 5120 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 5121 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 5122 *\ 2.11.*) ;; # other 2.11 versions 5123 *) supports_anon_versioning=yes ;; 5124 esac 5125 5126 # See if GNU ld supports shared libraries. 5127 case $host_os in 5128 aix[[3-9]]*) 5129 # On AIX/PPC, the GNU linker is very broken 5130 if test ia64 != "$host_cpu"; then 5131 _LT_TAGVAR(ld_shlibs, $1)=no 5132 cat <<_LT_EOF 1>&2 5133 5134*** Warning: the GNU linker, at least up to release 2.19, is reported 5135*** to be unable to reliably create shared libraries on AIX. 5136*** Therefore, libtool is disabling shared libraries support. If you 5137*** really care for shared libraries, you may want to install binutils 5138*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 5139*** You will then need to restart the configuration process. 5140 5141_LT_EOF 5142 fi 5143 ;; 5144 5145 amigaos*) 5146 case $host_cpu in 5147 powerpc) 5148 # see comment about AmigaOS4 .so support 5149 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 5150 _LT_TAGVAR(archive_expsym_cmds, $1)='' 5151 ;; 5152 m68k) 5153 _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)' 5154 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 5155 _LT_TAGVAR(hardcode_minus_L, $1)=yes 5156 ;; 5157 esac 5158 ;; 5159 5160 beos*) 5161 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 5162 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 5163 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 5164 # support --undefined. This deserves some investigation. FIXME 5165 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 5166 else 5167 _LT_TAGVAR(ld_shlibs, $1)=no 5168 fi 5169 ;; 5170 5171 cygwin* | mingw* | pw32* | cegcc*) 5172 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, 5173 # as there is no search path for DLLs. 5174 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 5175 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols' 5176 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 5177 _LT_TAGVAR(always_export_symbols, $1)=no 5178 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 5179 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols' 5180 _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'] 5181 5182 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 5183 _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' 5184 # If the export-symbols file already is a .def file, use it as 5185 # is; otherwise, prepend EXPORTS... 5186 _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then 5187 cp $export_symbols $output_objdir/$soname.def; 5188 else 5189 echo EXPORTS > $output_objdir/$soname.def; 5190 cat $export_symbols >> $output_objdir/$soname.def; 5191 fi~ 5192 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 5193 else 5194 _LT_TAGVAR(ld_shlibs, $1)=no 5195 fi 5196 ;; 5197 5198 haiku*) 5199 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 5200 _LT_TAGVAR(link_all_deplibs, $1)=yes 5201 ;; 5202 5203 os2*) 5204 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 5205 _LT_TAGVAR(hardcode_minus_L, $1)=yes 5206 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 5207 shrext_cmds=.dll 5208 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 5209 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 5210 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 5211 $ECHO EXPORTS >> $output_objdir/$libname.def~ 5212 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 5213 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 5214 emximp -o $lib $output_objdir/$libname.def' 5215 _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 5216 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 5217 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 5218 $ECHO EXPORTS >> $output_objdir/$libname.def~ 5219 prefix_cmds="$SED"~ 5220 if test EXPORTS = "`$SED 1q $export_symbols`"; then 5221 prefix_cmds="$prefix_cmds -e 1d"; 5222 fi~ 5223 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 5224 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 5225 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 5226 emximp -o $lib $output_objdir/$libname.def' 5227 _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 5228 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 5229 ;; 5230 5231 interix[[3-9]]*) 5232 _LT_TAGVAR(hardcode_direct, $1)=no 5233 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5234 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' 5235 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' 5236 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 5237 # Instead, shared libraries are loaded at an image base (0x10000000 by 5238 # default) and relocated if they conflict, which is a slow very memory 5239 # consuming and fragmenting process. To avoid this, we pick a random, 5240 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 5241 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 5242 _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' 5243 _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' 5244 ;; 5245 5246 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 5247 tmp_diet=no 5248 if test linux-dietlibc = "$host_os"; then 5249 case $cc_basename in 5250 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 5251 esac 5252 fi 5253 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 5254 && test no = "$tmp_diet" 5255 then 5256 tmp_addflag=' $pic_flag' 5257 tmp_sharedflag='-shared' 5258 case $cc_basename,$host_cpu in 5259 pgcc*) # Portland Group C compiler 5260 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 5261 tmp_addflag=' $pic_flag' 5262 ;; 5263 pgf77* | pgf90* | pgf95* | pgfortran*) 5264 # Portland Group f77 and f90 compilers 5265 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 5266 tmp_addflag=' $pic_flag -Mnomain' ;; 5267 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 5268 tmp_addflag=' -i_dynamic' ;; 5269 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 5270 tmp_addflag=' -i_dynamic -nofor_main' ;; 5271 ifc* | ifort*) # Intel Fortran compiler 5272 tmp_addflag=' -nofor_main' ;; 5273 lf95*) # Lahey Fortran 8.1 5274 _LT_TAGVAR(whole_archive_flag_spec, $1)= 5275 tmp_sharedflag='--shared' ;; 5276 nagfor*) # NAGFOR 5.3 5277 tmp_sharedflag='-Wl,-shared' ;; 5278 xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below) 5279 tmp_sharedflag='-qmkshrobj' 5280 tmp_addflag= ;; 5281 nvcc*) # Cuda Compiler Driver 2.2 5282 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 5283 _LT_TAGVAR(compiler_needs_object, $1)=yes 5284 ;; 5285 esac 5286 case `$CC -V 2>&1 | sed 5q` in 5287 *Sun\ C*) # Sun C 5.9 5288 _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; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 5289 _LT_TAGVAR(compiler_needs_object, $1)=yes 5290 tmp_sharedflag='-G' ;; 5291 *Sun\ F*) # Sun Fortran 8.3 5292 tmp_sharedflag='-G' ;; 5293 esac 5294 _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 5295 5296 if test yes = "$supports_anon_versioning"; then 5297 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ 5298 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 5299 echo "local: *; };" >> $output_objdir/$libname.ver~ 5300 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 5301 fi 5302 5303 case $cc_basename in 5304 tcc*) 5305 _LT_TAGVAR(export_dynamic_flag_spec, $1)='-rdynamic' 5306 ;; 5307 xlf* | bgf* | bgxlf* | mpixlf*) 5308 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 5309 _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive' 5310 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 5311 _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 5312 if test yes = "$supports_anon_versioning"; then 5313 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ 5314 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 5315 echo "local: *; };" >> $output_objdir/$libname.ver~ 5316 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 5317 fi 5318 ;; 5319 esac 5320 else 5321 _LT_TAGVAR(ld_shlibs, $1)=no 5322 fi 5323 ;; 5324 5325 netbsd*) 5326 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 5327 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 5328 wlarc= 5329 else 5330 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 5331 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 5332 fi 5333 ;; 5334 5335 solaris*) 5336 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 5337 _LT_TAGVAR(ld_shlibs, $1)=no 5338 cat <<_LT_EOF 1>&2 5339 5340*** Warning: The releases 2.8.* of the GNU linker cannot reliably 5341*** create shared libraries on Solaris systems. Therefore, libtool 5342*** is disabling shared libraries support. We urge you to upgrade GNU 5343*** binutils to release 2.9.1 or newer. Another option is to modify 5344*** your PATH or compiler configuration so that the native linker is 5345*** used, and then restart. 5346 5347_LT_EOF 5348 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 5349 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 5350 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 5351 else 5352 _LT_TAGVAR(ld_shlibs, $1)=no 5353 fi 5354 ;; 5355 5356 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 5357 case `$LD -v 2>&1` in 5358 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) 5359 _LT_TAGVAR(ld_shlibs, $1)=no 5360 cat <<_LT_EOF 1>&2 5361 5362*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 5363*** reliably create shared libraries on SCO systems. Therefore, libtool 5364*** is disabling shared libraries support. We urge you to upgrade GNU 5365*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 5366*** your PATH or compiler configuration so that the native linker is 5367*** used, and then restart. 5368 5369_LT_EOF 5370 ;; 5371 *) 5372 # For security reasons, it is highly recommended that you always 5373 # use absolute paths for naming shared libraries, and exclude the 5374 # DT_RUNPATH tag from executables and libraries. But doing so 5375 # requires that you compile everything twice, which is a pain. 5376 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 5377 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 5378 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 5379 _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' 5380 else 5381 _LT_TAGVAR(ld_shlibs, $1)=no 5382 fi 5383 ;; 5384 esac 5385 ;; 5386 5387 sunos4*) 5388 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 5389 wlarc= 5390 _LT_TAGVAR(hardcode_direct, $1)=yes 5391 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5392 ;; 5393 5394 *) 5395 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 5396 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 5397 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 5398 else 5399 _LT_TAGVAR(ld_shlibs, $1)=no 5400 fi 5401 ;; 5402 esac 5403 5404 if test no = "$_LT_TAGVAR(ld_shlibs, $1)"; then 5405 runpath_var= 5406 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 5407 _LT_TAGVAR(export_dynamic_flag_spec, $1)= 5408 _LT_TAGVAR(whole_archive_flag_spec, $1)= 5409 fi 5410 else 5411 # PORTME fill in a description of your system's linker (not GNU ld) 5412 case $host_os in 5413 aix3*) 5414 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 5415 _LT_TAGVAR(always_export_symbols, $1)=yes 5416 _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' 5417 # Note: this linker hardcodes the directories in LIBPATH if there 5418 # are no directories specified by -L. 5419 _LT_TAGVAR(hardcode_minus_L, $1)=yes 5420 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 5421 # Neither direct hardcoding nor static linking is supported with a 5422 # broken collect2. 5423 _LT_TAGVAR(hardcode_direct, $1)=unsupported 5424 fi 5425 ;; 5426 5427 aix[[4-9]]*) 5428 if test ia64 = "$host_cpu"; then 5429 # On IA64, the linker does run time linking by default, so we don't 5430 # have to do anything special. 5431 aix_use_runtimelinking=no 5432 exp_sym_flag='-Bexport' 5433 no_entry_flag= 5434 else 5435 # If we're using GNU nm, then we don't want the "-C" option. 5436 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 5437 # Without the "-l" option, or with the "-B" option, AIX nm treats 5438 # weak defined symbols like other global defined symbols, whereas 5439 # GNU nm marks them as "W". 5440 # While the 'weak' keyword is ignored in the Export File, we need 5441 # it in the Import File for the 'aix-soname' feature, so we have 5442 # to replace the "-B" option with "-P" for AIX nm. 5443 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 5444 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 5445 else 5446 _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 5447 fi 5448 aix_use_runtimelinking=no 5449 5450 # Test if we are trying to use run time linking or normal 5451 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 5452 # have runtime linking enabled, and use it for executables. 5453 # For shared libraries, we enable/disable runtime linking 5454 # depending on the kind of the shared library created - 5455 # when "with_aix_soname,aix_use_runtimelinking" is: 5456 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 5457 # "aix,yes" lib.so shared, rtl:yes, for executables 5458 # lib.a static archive 5459 # "both,no" lib.so.V(shr.o) shared, rtl:yes 5460 # lib.a(lib.so.V) shared, rtl:no, for executables 5461 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 5462 # lib.a(lib.so.V) shared, rtl:no 5463 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 5464 # lib.a static archive 5465 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) 5466 for ld_flag in $LDFLAGS; do 5467 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 5468 aix_use_runtimelinking=yes 5469 break 5470 fi 5471 done 5472 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 5473 # With aix-soname=svr4, we create the lib.so.V shared archives only, 5474 # so we don't have lib.a shared libs to link our executables. 5475 # We have to force runtime linking in this case. 5476 aix_use_runtimelinking=yes 5477 LDFLAGS="$LDFLAGS -Wl,-brtl" 5478 fi 5479 ;; 5480 esac 5481 5482 exp_sym_flag='-bexport' 5483 no_entry_flag='-bnoentry' 5484 fi 5485 5486 # When large executables or shared objects are built, AIX ld can 5487 # have problems creating the table of contents. If linking a library 5488 # or program results in "error TOC overflow" add -mminimal-toc to 5489 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 5490 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 5491 5492 _LT_TAGVAR(archive_cmds, $1)='' 5493 _LT_TAGVAR(hardcode_direct, $1)=yes 5494 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 5495 _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 5496 _LT_TAGVAR(link_all_deplibs, $1)=yes 5497 _LT_TAGVAR(file_list_spec, $1)='$wl-f,' 5498 case $with_aix_soname,$aix_use_runtimelinking in 5499 aix,*) ;; # traditional, no import file 5500 svr4,* | *,yes) # use import file 5501 # The Import File defines what to hardcode. 5502 _LT_TAGVAR(hardcode_direct, $1)=no 5503 _LT_TAGVAR(hardcode_direct_absolute, $1)=no 5504 ;; 5505 esac 5506 5507 if test yes = "$GCC"; then 5508 case $host_os in aix4.[[012]]|aix4.[[012]].*) 5509 # We only want to do this on AIX 4.2 and lower, the check 5510 # below for broken collect2 doesn't work under 4.3+ 5511 collect2name=`$CC -print-prog-name=collect2` 5512 if test -f "$collect2name" && 5513 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 5514 then 5515 # We have reworked collect2 5516 : 5517 else 5518 # We have old collect2 5519 _LT_TAGVAR(hardcode_direct, $1)=unsupported 5520 # It fails to find uninstalled libraries when the uninstalled 5521 # path is not listed in the libpath. Setting hardcode_minus_L 5522 # to unsupported forces relinking 5523 _LT_TAGVAR(hardcode_minus_L, $1)=yes 5524 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 5525 _LT_TAGVAR(hardcode_libdir_separator, $1)= 5526 fi 5527 ;; 5528 esac 5529 shared_flag='-shared' 5530 if test yes = "$aix_use_runtimelinking"; then 5531 shared_flag="$shared_flag "'$wl-G' 5532 fi 5533 # Need to ensure runtime linking is disabled for the traditional 5534 # shared library, or the linker may eventually find shared libraries 5535 # /with/ Import File - we do not want to mix them. 5536 shared_flag_aix='-shared' 5537 shared_flag_svr4='-shared $wl-G' 5538 else 5539 # not using gcc 5540 if test ia64 = "$host_cpu"; then 5541 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 5542 # chokes on -Wl,-G. The following line is correct: 5543 shared_flag='-G' 5544 else 5545 if test yes = "$aix_use_runtimelinking"; then 5546 shared_flag='$wl-G' 5547 else 5548 shared_flag='$wl-bM:SRE' 5549 fi 5550 shared_flag_aix='$wl-bM:SRE' 5551 shared_flag_svr4='$wl-G' 5552 fi 5553 fi 5554 5555 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall' 5556 # It seems that -bexpall does not export symbols beginning with 5557 # underscore (_), so it is better to generate a list of symbols to export. 5558 _LT_TAGVAR(always_export_symbols, $1)=yes 5559 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 5560 # Warning - without using the other runtime loading flags (-brtl), 5561 # -berok will link without error, but may produce a broken library. 5562 _LT_TAGVAR(allow_undefined_flag, $1)='-berok' 5563 # Determine the default libpath from the value encoded in an 5564 # empty executable. 5565 _LT_SYS_MODULE_PATH_AIX([$1]) 5566 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath" 5567 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 5568 else 5569 if test ia64 = "$host_cpu"; then 5570 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib' 5571 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" 5572 _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" 5573 else 5574 # Determine the default libpath from the value encoded in an 5575 # empty executable. 5576 _LT_SYS_MODULE_PATH_AIX([$1]) 5577 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath" 5578 # Warning - without using the other run time loading flags, 5579 # -berok will link without error, but may produce a broken library. 5580 _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok' 5581 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok' 5582 if test yes = "$with_gnu_ld"; then 5583 # We only use this code for GNU lds that support --whole-archive. 5584 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive' 5585 else 5586 # Exported symbols can be pulled into shared objects from archives 5587 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' 5588 fi 5589 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes 5590 _LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 5591 # -brtl affects multiple linker settings, -berok does not and is overridden later 5592 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\1%g"`' 5593 if test svr4 != "$with_aix_soname"; then 5594 # This is similar to how AIX traditionally builds its shared libraries. 5595 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 5596 fi 5597 if test aix != "$with_aix_soname"; then 5598 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 5599 else 5600 # used by -dlpreopen to get the symbols 5601 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 5602 fi 5603 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/$realname.d' 5604 fi 5605 fi 5606 ;; 5607 5608 amigaos*) 5609 case $host_cpu in 5610 powerpc) 5611 # see comment about AmigaOS4 .so support 5612 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 5613 _LT_TAGVAR(archive_expsym_cmds, $1)='' 5614 ;; 5615 m68k) 5616 _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)' 5617 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 5618 _LT_TAGVAR(hardcode_minus_L, $1)=yes 5619 ;; 5620 esac 5621 ;; 5622 5623 bsdi[[45]]*) 5624 _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic 5625 ;; 5626 5627 cygwin* | mingw* | pw32* | cegcc*) 5628 # When not using gcc, we currently assume that we are using 5629 # Microsoft Visual C++. 5630 # hardcode_libdir_flag_spec is actually meaningless, as there is 5631 # no search path for DLLs. 5632 case $cc_basename in 5633 cl*) 5634 # Native MSVC 5635 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' 5636 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 5637 _LT_TAGVAR(always_export_symbols, $1)=yes 5638 _LT_TAGVAR(file_list_spec, $1)='@' 5639 # Tell ltmain to make .lib files, not .a files. 5640 libext=lib 5641 # Tell ltmain to make .dll files, not .so files. 5642 shrext_cmds=.dll 5643 # FIXME: Setting linknames here is a bad hack. 5644 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 5645 _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then 5646 cp "$export_symbols" "$output_objdir/$soname.def"; 5647 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 5648 else 5649 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 5650 fi~ 5651 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 5652 linknames=' 5653 # The linker will not automatically build a static lib if we build a DLL. 5654 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' 5655 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 5656 _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 5657 _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' 5658 # Don't use ranlib 5659 _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' 5660 _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~ 5661 lt_tool_outputfile="@TOOL_OUTPUT@"~ 5662 case $lt_outputfile in 5663 *.exe|*.EXE) ;; 5664 *) 5665 lt_outputfile=$lt_outputfile.exe 5666 lt_tool_outputfile=$lt_tool_outputfile.exe 5667 ;; 5668 esac~ 5669 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 5670 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 5671 $RM "$lt_outputfile.manifest"; 5672 fi' 5673 ;; 5674 *) 5675 # Assume MSVC wrapper 5676 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' 5677 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 5678 # Tell ltmain to make .lib files, not .a files. 5679 libext=lib 5680 # Tell ltmain to make .dll files, not .so files. 5681 shrext_cmds=.dll 5682 # FIXME: Setting linknames here is a bad hack. 5683 _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 5684 # The linker will automatically build a .lib file if we build a DLL. 5685 _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' 5686 # FIXME: Should let the user specify the lib program. 5687 _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs' 5688 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 5689 ;; 5690 esac 5691 ;; 5692 5693 darwin* | rhapsody*) 5694 _LT_DARWIN_LINKER_FEATURES($1) 5695 ;; 5696 5697 dgux*) 5698 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 5699 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 5700 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5701 ;; 5702 5703 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 5704 # support. Future versions do this automatically, but an explicit c++rt0.o 5705 # does not break anything, and helps significantly (at the cost of a little 5706 # extra space). 5707 freebsd2.2*) 5708 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 5709 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 5710 _LT_TAGVAR(hardcode_direct, $1)=yes 5711 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5712 ;; 5713 5714 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 5715 freebsd2.*) 5716 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 5717 _LT_TAGVAR(hardcode_direct, $1)=yes 5718 _LT_TAGVAR(hardcode_minus_L, $1)=yes 5719 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5720 ;; 5721 5722 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 5723 freebsd* | dragonfly*) 5724 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 5725 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 5726 _LT_TAGVAR(hardcode_direct, $1)=yes 5727 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5728 ;; 5729 5730 hpux9*) 5731 if test yes = "$GCC"; then 5732 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 5733 else 5734 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 5735 fi 5736 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' 5737 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 5738 _LT_TAGVAR(hardcode_direct, $1)=yes 5739 5740 # hardcode_minus_L: Not really in the search PATH, 5741 # but as the default location of the library. 5742 _LT_TAGVAR(hardcode_minus_L, $1)=yes 5743 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' 5744 ;; 5745 5746 hpux10*) 5747 if test yes,no = "$GCC,$with_gnu_ld"; then 5748 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 5749 else 5750 _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 5751 fi 5752 if test no = "$with_gnu_ld"; then 5753 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' 5754 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 5755 _LT_TAGVAR(hardcode_direct, $1)=yes 5756 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 5757 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' 5758 # hardcode_minus_L: Not really in the search PATH, 5759 # but as the default location of the library. 5760 _LT_TAGVAR(hardcode_minus_L, $1)=yes 5761 fi 5762 ;; 5763 5764 hpux11*) 5765 if test yes,no = "$GCC,$with_gnu_ld"; then 5766 case $host_cpu in 5767 hppa*64*) 5768 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 5769 ;; 5770 ia64*) 5771 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 5772 ;; 5773 *) 5774 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 5775 ;; 5776 esac 5777 else 5778 case $host_cpu in 5779 hppa*64*) 5780 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 5781 ;; 5782 ia64*) 5783 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 5784 ;; 5785 *) 5786 m4_if($1, [], [ 5787 # Older versions of the 11.00 compiler do not understand -b yet 5788 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 5789 _LT_LINKER_OPTION([if $CC understands -b], 5790 _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b], 5791 [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'], 5792 [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])], 5793 [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags']) 5794 ;; 5795 esac 5796 fi 5797 if test no = "$with_gnu_ld"; then 5798 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' 5799 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 5800 5801 case $host_cpu in 5802 hppa*64*|ia64*) 5803 _LT_TAGVAR(hardcode_direct, $1)=no 5804 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5805 ;; 5806 *) 5807 _LT_TAGVAR(hardcode_direct, $1)=yes 5808 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 5809 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' 5810 5811 # hardcode_minus_L: Not really in the search PATH, 5812 # but as the default location of the library. 5813 _LT_TAGVAR(hardcode_minus_L, $1)=yes 5814 ;; 5815 esac 5816 fi 5817 ;; 5818 5819 irix5* | irix6* | nonstopux*) 5820 if test yes = "$GCC"; then 5821 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 5822 # Try to use the -exported_symbol ld option, if it does not 5823 # work, assume that -exports_file does not work either and 5824 # implicitly export all symbols. 5825 # This should be the same for all languages, so no per-tag cache variable. 5826 AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol], 5827 [lt_cv_irix_exported_symbol], 5828 [save_LDFLAGS=$LDFLAGS 5829 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 5830 AC_LINK_IFELSE( 5831 [AC_LANG_SOURCE( 5832 [AC_LANG_CASE([C], [[int foo (void) { return 0; }]], 5833 [C++], [[int foo (void) { return 0; }]], 5834 [Fortran 77], [[ 5835 subroutine foo 5836 end]], 5837 [Fortran], [[ 5838 subroutine foo 5839 end]])])], 5840 [lt_cv_irix_exported_symbol=yes], 5841 [lt_cv_irix_exported_symbol=no]) 5842 LDFLAGS=$save_LDFLAGS]) 5843 if test yes = "$lt_cv_irix_exported_symbol"; then 5844 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib' 5845 fi 5846 else 5847 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 5848 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib' 5849 fi 5850 _LT_TAGVAR(archive_cmds_need_lc, $1)='no' 5851 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 5852 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 5853 _LT_TAGVAR(inherit_rpath, $1)=yes 5854 _LT_TAGVAR(link_all_deplibs, $1)=yes 5855 ;; 5856 5857 linux*) 5858 case $cc_basename in 5859 tcc*) 5860 # Fabrice Bellard et al's Tiny C Compiler 5861 _LT_TAGVAR(ld_shlibs, $1)=yes 5862 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 5863 ;; 5864 esac 5865 ;; 5866 5867 netbsd*) 5868 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 5869 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 5870 else 5871 _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 5872 fi 5873 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 5874 _LT_TAGVAR(hardcode_direct, $1)=yes 5875 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5876 ;; 5877 5878 newsos6) 5879 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 5880 _LT_TAGVAR(hardcode_direct, $1)=yes 5881 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 5882 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 5883 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5884 ;; 5885 5886 *nto* | *qnx*) 5887 ;; 5888 5889 openbsd* | bitrig*) 5890 if test -f /usr/libexec/ld.so; then 5891 _LT_TAGVAR(hardcode_direct, $1)=yes 5892 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5893 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 5894 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 5895 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 5896 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 5897 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' 5898 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' 5899 else 5900 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 5901 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' 5902 fi 5903 else 5904 _LT_TAGVAR(ld_shlibs, $1)=no 5905 fi 5906 ;; 5907 5908 os2*) 5909 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 5910 _LT_TAGVAR(hardcode_minus_L, $1)=yes 5911 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 5912 shrext_cmds=.dll 5913 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 5914 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 5915 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 5916 $ECHO EXPORTS >> $output_objdir/$libname.def~ 5917 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 5918 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 5919 emximp -o $lib $output_objdir/$libname.def' 5920 _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 5921 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 5922 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 5923 $ECHO EXPORTS >> $output_objdir/$libname.def~ 5924 prefix_cmds="$SED"~ 5925 if test EXPORTS = "`$SED 1q $export_symbols`"; then 5926 prefix_cmds="$prefix_cmds -e 1d"; 5927 fi~ 5928 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 5929 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 5930 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 5931 emximp -o $lib $output_objdir/$libname.def' 5932 _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 5933 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 5934 ;; 5935 5936 osf3*) 5937 if test yes = "$GCC"; then 5938 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*' 5939 _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 5940 else 5941 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 5942 _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 5943 fi 5944 _LT_TAGVAR(archive_cmds_need_lc, $1)='no' 5945 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 5946 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 5947 ;; 5948 5949 osf4* | osf5*) # as osf3* with the addition of -msym flag 5950 if test yes = "$GCC"; then 5951 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*' 5952 _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 5953 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 5954 else 5955 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 5956 _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 5957 _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~ 5958 $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp' 5959 5960 # Both c and cxx compiler support -rpath directly 5961 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 5962 fi 5963 _LT_TAGVAR(archive_cmds_need_lc, $1)='no' 5964 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 5965 ;; 5966 5967 solaris*) 5968 _LT_TAGVAR(no_undefined_flag, $1)=' -z defs' 5969 if test yes = "$GCC"; then 5970 wlarc='$wl' 5971 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 5972 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 5973 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 5974 else 5975 case `$CC -V 2>&1` in 5976 *"Compilers 5.0"*) 5977 wlarc='' 5978 _LT_TAGVAR(archive_cmds, $1)='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 5979 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 5980 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 5981 ;; 5982 *) 5983 wlarc='$wl' 5984 _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 5985 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 5986 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 5987 ;; 5988 esac 5989 fi 5990 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 5991 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5992 case $host_os in 5993 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 5994 *) 5995 # The compiler driver will combine and reorder linker options, 5996 # but understands '-z linker_flag'. GCC discards it without '$wl', 5997 # but is careful enough not to reorder. 5998 # Supported since Solaris 2.6 (maybe 2.5.1?) 5999 if test yes = "$GCC"; then 6000 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 6001 else 6002 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' 6003 fi 6004 ;; 6005 esac 6006 _LT_TAGVAR(link_all_deplibs, $1)=yes 6007 ;; 6008 6009 sunos4*) 6010 if test sequent = "$host_vendor"; then 6011 # Use $CC to link under sequent, because it throws in some extra .o 6012 # files that make .init and .fini sections work. 6013 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 6014 else 6015 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 6016 fi 6017 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 6018 _LT_TAGVAR(hardcode_direct, $1)=yes 6019 _LT_TAGVAR(hardcode_minus_L, $1)=yes 6020 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6021 ;; 6022 6023 sysv4) 6024 case $host_vendor in 6025 sni) 6026 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6027 _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true??? 6028 ;; 6029 siemens) 6030 ## LD is ld it makes a PLAMLIB 6031 ## CC just makes a GrossModule. 6032 _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' 6033 _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' 6034 _LT_TAGVAR(hardcode_direct, $1)=no 6035 ;; 6036 motorola) 6037 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6038 _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie 6039 ;; 6040 esac 6041 runpath_var='LD_RUN_PATH' 6042 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6043 ;; 6044 6045 sysv4.3*) 6046 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6047 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6048 _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' 6049 ;; 6050 6051 sysv4*MP*) 6052 if test -d /usr/nec; then 6053 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6054 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6055 runpath_var=LD_RUN_PATH 6056 hardcode_runpath_var=yes 6057 _LT_TAGVAR(ld_shlibs, $1)=yes 6058 fi 6059 ;; 6060 6061 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) 6062 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text' 6063 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 6064 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6065 runpath_var='LD_RUN_PATH' 6066 6067 if test yes = "$GCC"; then 6068 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6069 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6070 else 6071 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6072 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6073 fi 6074 ;; 6075 6076 sysv5* | sco3.2v5* | sco5v6*) 6077 # Note: We CANNOT use -z defs as we might desire, because we do not 6078 # link with -lc, and that would cause any symbols used from libc to 6079 # always be unresolved, which means just about no library would 6080 # ever link correctly. If we're not using GNU ld we use -z text 6081 # though, which does catch some bad symbols but isn't as heavy-handed 6082 # as -z defs. 6083 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text' 6084 _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs' 6085 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 6086 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6087 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir' 6088 _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 6089 _LT_TAGVAR(link_all_deplibs, $1)=yes 6090 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport' 6091 runpath_var='LD_RUN_PATH' 6092 6093 if test yes = "$GCC"; then 6094 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6095 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6096 else 6097 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6098 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6099 fi 6100 ;; 6101 6102 uts4*) 6103 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6104 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 6105 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6106 ;; 6107 6108 *) 6109 _LT_TAGVAR(ld_shlibs, $1)=no 6110 ;; 6111 esac 6112 6113 if test sni = "$host_vendor"; then 6114 case $host in 6115 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 6116 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Blargedynsym' 6117 ;; 6118 esac 6119 fi 6120 fi 6121]) 6122AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) 6123test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no 6124 6125_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld 6126 6127_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl 6128_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl 6129_LT_DECL([], [extract_expsyms_cmds], [2], 6130 [The commands to extract the exported symbol list from a shared archive]) 6131 6132# 6133# Do we need to explicitly link libc? 6134# 6135case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in 6136x|xyes) 6137 # Assume -lc should be added 6138 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes 6139 6140 if test yes,yes = "$GCC,$enable_shared"; then 6141 case $_LT_TAGVAR(archive_cmds, $1) in 6142 *'~'*) 6143 # FIXME: we may have to deal with multi-command sequences. 6144 ;; 6145 '$CC '*) 6146 # Test whether the compiler implicitly links with -lc since on some 6147 # systems, -lgcc has to come before -lc. If gcc already passes -lc 6148 # to ld, don't add -lc before -lgcc. 6149 AC_CACHE_CHECK([whether -lc should be explicitly linked in], 6150 [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1), 6151 [$RM conftest* 6152 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 6153 6154 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then 6155 soname=conftest 6156 lib=conftest 6157 libobjs=conftest.$ac_objext 6158 deplibs= 6159 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) 6160 pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1) 6161 compiler_flags=-v 6162 linker_flags=-v 6163 verstring= 6164 output_objdir=. 6165 libname=conftest 6166 lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1) 6167 _LT_TAGVAR(allow_undefined_flag, $1)= 6168 if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 6169 then 6170 lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no 6171 else 6172 lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes 6173 fi 6174 _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag 6175 else 6176 cat conftest.err 1>&5 6177 fi 6178 $RM conftest* 6179 ]) 6180 _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1) 6181 ;; 6182 esac 6183 fi 6184 ;; 6185esac 6186 6187_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0], 6188 [Whether or not to add -lc for building shared libraries]) 6189_LT_TAGDECL([allow_libtool_libs_with_static_runtimes], 6190 [enable_shared_with_static_runtimes], [0], 6191 [Whether or not to disallow shared libs when runtime libs are static]) 6192_LT_TAGDECL([], [export_dynamic_flag_spec], [1], 6193 [Compiler flag to allow reflexive dlopens]) 6194_LT_TAGDECL([], [whole_archive_flag_spec], [1], 6195 [Compiler flag to generate shared objects directly from archives]) 6196_LT_TAGDECL([], [compiler_needs_object], [1], 6197 [Whether the compiler copes with passing no objects directly]) 6198_LT_TAGDECL([], [old_archive_from_new_cmds], [2], 6199 [Create an old-style archive from a shared archive]) 6200_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2], 6201 [Create a temporary old-style archive to link instead of a shared archive]) 6202_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive]) 6203_LT_TAGDECL([], [archive_expsym_cmds], [2]) 6204_LT_TAGDECL([], [module_cmds], [2], 6205 [Commands used to build a loadable module if different from building 6206 a shared archive.]) 6207_LT_TAGDECL([], [module_expsym_cmds], [2]) 6208_LT_TAGDECL([], [with_gnu_ld], [1], 6209 [Whether we are building with GNU ld or not]) 6210_LT_TAGDECL([], [allow_undefined_flag], [1], 6211 [Flag that allows shared libraries with undefined symbols to be built]) 6212_LT_TAGDECL([], [no_undefined_flag], [1], 6213 [Flag that enforces no undefined symbols]) 6214_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1], 6215 [Flag to hardcode $libdir into a binary during linking. 6216 This must work even if $libdir does not exist]) 6217_LT_TAGDECL([], [hardcode_libdir_separator], [1], 6218 [Whether we need a single "-rpath" flag with a separated argument]) 6219_LT_TAGDECL([], [hardcode_direct], [0], 6220 [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes 6221 DIR into the resulting binary]) 6222_LT_TAGDECL([], [hardcode_direct_absolute], [0], 6223 [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes 6224 DIR into the resulting binary and the resulting library dependency is 6225 "absolute", i.e impossible to change by setting $shlibpath_var if the 6226 library is relocated]) 6227_LT_TAGDECL([], [hardcode_minus_L], [0], 6228 [Set to "yes" if using the -LDIR flag during linking hardcodes DIR 6229 into the resulting binary]) 6230_LT_TAGDECL([], [hardcode_shlibpath_var], [0], 6231 [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 6232 into the resulting binary]) 6233_LT_TAGDECL([], [hardcode_automatic], [0], 6234 [Set to "yes" if building a shared library automatically hardcodes DIR 6235 into the library and all subsequent libraries and executables linked 6236 against it]) 6237_LT_TAGDECL([], [inherit_rpath], [0], 6238 [Set to yes if linker adds runtime paths of dependent libraries 6239 to runtime path list]) 6240_LT_TAGDECL([], [link_all_deplibs], [0], 6241 [Whether libtool must link a program against all its dependency libraries]) 6242_LT_TAGDECL([], [always_export_symbols], [0], 6243 [Set to "yes" if exported symbols are required]) 6244_LT_TAGDECL([], [export_symbols_cmds], [2], 6245 [The commands to list exported symbols]) 6246_LT_TAGDECL([], [exclude_expsyms], [1], 6247 [Symbols that should not be listed in the preloaded symbols]) 6248_LT_TAGDECL([], [include_expsyms], [1], 6249 [Symbols that must always be exported]) 6250_LT_TAGDECL([], [prelink_cmds], [2], 6251 [Commands necessary for linking programs (against libraries) with templates]) 6252_LT_TAGDECL([], [postlink_cmds], [2], 6253 [Commands necessary for finishing linking programs]) 6254_LT_TAGDECL([], [file_list_spec], [1], 6255 [Specify filename containing input files]) 6256dnl FIXME: Not yet implemented 6257dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1], 6258dnl [Compiler flag to generate thread safe objects]) 6259])# _LT_LINKER_SHLIBS 6260 6261 6262# _LT_LANG_C_CONFIG([TAG]) 6263# ------------------------ 6264# Ensure that the configuration variables for a C compiler are suitably 6265# defined. These variables are subsequently used by _LT_CONFIG to write 6266# the compiler configuration to 'libtool'. 6267m4_defun([_LT_LANG_C_CONFIG], 6268[m4_require([_LT_DECL_EGREP])dnl 6269lt_save_CC=$CC 6270AC_LANG_PUSH(C) 6271 6272# Source file extension for C test sources. 6273ac_ext=c 6274 6275# Object file extension for compiled C test sources. 6276objext=o 6277_LT_TAGVAR(objext, $1)=$objext 6278 6279# Code to be used in simple compile tests 6280lt_simple_compile_test_code="int some_variable = 0;" 6281 6282# Code to be used in simple link tests 6283lt_simple_link_test_code='int main(){return(0);}' 6284 6285_LT_TAG_COMPILER 6286# Save the default compiler, since it gets overwritten when the other 6287# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 6288compiler_DEFAULT=$CC 6289 6290# save warnings/boilerplate of simple test code 6291_LT_COMPILER_BOILERPLATE 6292_LT_LINKER_BOILERPLATE 6293 6294if test -n "$compiler"; then 6295 _LT_COMPILER_NO_RTTI($1) 6296 _LT_COMPILER_PIC($1) 6297 _LT_COMPILER_C_O($1) 6298 _LT_COMPILER_FILE_LOCKS($1) 6299 _LT_LINKER_SHLIBS($1) 6300 _LT_SYS_DYNAMIC_LINKER($1) 6301 _LT_LINKER_HARDCODE_LIBPATH($1) 6302 LT_SYS_DLOPEN_SELF 6303 _LT_CMD_STRIPLIB 6304 6305 # Report what library types will actually be built 6306 AC_MSG_CHECKING([if libtool supports shared libraries]) 6307 AC_MSG_RESULT([$can_build_shared]) 6308 6309 AC_MSG_CHECKING([whether to build shared libraries]) 6310 test no = "$can_build_shared" && enable_shared=no 6311 6312 # On AIX, shared libraries and static libraries use the same namespace, and 6313 # are all built from PIC. 6314 case $host_os in 6315 aix3*) 6316 test yes = "$enable_shared" && enable_static=no 6317 if test -n "$RANLIB"; then 6318 archive_cmds="$archive_cmds~\$RANLIB \$lib" 6319 postinstall_cmds='$RANLIB $lib' 6320 fi 6321 ;; 6322 6323 aix[[4-9]]*) 6324 if test ia64 != "$host_cpu"; then 6325 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 6326 yes,aix,yes) ;; # shared object as lib.so file only 6327 yes,svr4,*) ;; # shared object as lib.so archive member only 6328 yes,*) enable_static=no ;; # shared object in lib.a archive as well 6329 esac 6330 fi 6331 ;; 6332 esac 6333 AC_MSG_RESULT([$enable_shared]) 6334 6335 AC_MSG_CHECKING([whether to build static libraries]) 6336 # Make sure either enable_shared or enable_static is yes. 6337 test yes = "$enable_shared" || enable_static=yes 6338 AC_MSG_RESULT([$enable_static]) 6339 6340 _LT_CONFIG($1) 6341fi 6342AC_LANG_POP 6343CC=$lt_save_CC 6344])# _LT_LANG_C_CONFIG 6345 6346 6347# _LT_LANG_CXX_CONFIG([TAG]) 6348# -------------------------- 6349# Ensure that the configuration variables for a C++ compiler are suitably 6350# defined. These variables are subsequently used by _LT_CONFIG to write 6351# the compiler configuration to 'libtool'. 6352m4_defun([_LT_LANG_CXX_CONFIG], 6353[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 6354m4_require([_LT_DECL_EGREP])dnl 6355m4_require([_LT_PATH_MANIFEST_TOOL])dnl 6356if test -n "$CXX" && ( test no != "$CXX" && 6357 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || 6358 (test g++ != "$CXX"))); then 6359 AC_PROG_CXXCPP 6360else 6361 _lt_caught_CXX_error=yes 6362fi 6363 6364AC_LANG_PUSH(C++) 6365_LT_TAGVAR(archive_cmds_need_lc, $1)=no 6366_LT_TAGVAR(allow_undefined_flag, $1)= 6367_LT_TAGVAR(always_export_symbols, $1)=no 6368_LT_TAGVAR(archive_expsym_cmds, $1)= 6369_LT_TAGVAR(compiler_needs_object, $1)=no 6370_LT_TAGVAR(export_dynamic_flag_spec, $1)= 6371_LT_TAGVAR(hardcode_direct, $1)=no 6372_LT_TAGVAR(hardcode_direct_absolute, $1)=no 6373_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 6374_LT_TAGVAR(hardcode_libdir_separator, $1)= 6375_LT_TAGVAR(hardcode_minus_L, $1)=no 6376_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 6377_LT_TAGVAR(hardcode_automatic, $1)=no 6378_LT_TAGVAR(inherit_rpath, $1)=no 6379_LT_TAGVAR(module_cmds, $1)= 6380_LT_TAGVAR(module_expsym_cmds, $1)= 6381_LT_TAGVAR(link_all_deplibs, $1)=unknown 6382_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 6383_LT_TAGVAR(reload_flag, $1)=$reload_flag 6384_LT_TAGVAR(reload_cmds, $1)=$reload_cmds 6385_LT_TAGVAR(no_undefined_flag, $1)= 6386_LT_TAGVAR(whole_archive_flag_spec, $1)= 6387_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no 6388 6389# Source file extension for C++ test sources. 6390ac_ext=cpp 6391 6392# Object file extension for compiled C++ test sources. 6393objext=o 6394_LT_TAGVAR(objext, $1)=$objext 6395 6396# No sense in running all these tests if we already determined that 6397# the CXX compiler isn't working. Some variables (like enable_shared) 6398# are currently assumed to apply to all compilers on this platform, 6399# and will be corrupted by setting them based on a non-working compiler. 6400if test yes != "$_lt_caught_CXX_error"; then 6401 # Code to be used in simple compile tests 6402 lt_simple_compile_test_code="int some_variable = 0;" 6403 6404 # Code to be used in simple link tests 6405 lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }' 6406 6407 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 6408 _LT_TAG_COMPILER 6409 6410 # save warnings/boilerplate of simple test code 6411 _LT_COMPILER_BOILERPLATE 6412 _LT_LINKER_BOILERPLATE 6413 6414 # Allow CC to be a program name with arguments. 6415 lt_save_CC=$CC 6416 lt_save_CFLAGS=$CFLAGS 6417 lt_save_LD=$LD 6418 lt_save_GCC=$GCC 6419 GCC=$GXX 6420 lt_save_with_gnu_ld=$with_gnu_ld 6421 lt_save_path_LD=$lt_cv_path_LD 6422 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 6423 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 6424 else 6425 $as_unset lt_cv_prog_gnu_ld 6426 fi 6427 if test -n "${lt_cv_path_LDCXX+set}"; then 6428 lt_cv_path_LD=$lt_cv_path_LDCXX 6429 else 6430 $as_unset lt_cv_path_LD 6431 fi 6432 test -z "${LDCXX+set}" || LD=$LDCXX 6433 CC=${CXX-"c++"} 6434 CFLAGS=$CXXFLAGS 6435 compiler=$CC 6436 _LT_TAGVAR(compiler, $1)=$CC 6437 _LT_CC_BASENAME([$compiler]) 6438 6439 if test -n "$compiler"; then 6440 # We don't want -fno-exception when compiling C++ code, so set the 6441 # no_builtin_flag separately 6442 if test yes = "$GXX"; then 6443 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' 6444 else 6445 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= 6446 fi 6447 6448 if test yes = "$GXX"; then 6449 # Set up default GNU C++ configuration 6450 6451 LT_PATH_LD 6452 6453 # Check if GNU C++ uses GNU ld as the underlying linker, since the 6454 # archiving commands below assume that GNU ld is being used. 6455 if test yes = "$with_gnu_ld"; then 6456 _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 6457 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 6458 6459 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 6460 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' 6461 6462 # If archive_cmds runs LD, not CC, wlarc should be empty 6463 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 6464 # investigate it a little bit more. (MM) 6465 wlarc='$wl' 6466 6467 # ancient GNU ld didn't support --whole-archive et. al. 6468 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 6469 $GREP 'no-whole-archive' > /dev/null; then 6470 _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 6471 else 6472 _LT_TAGVAR(whole_archive_flag_spec, $1)= 6473 fi 6474 else 6475 with_gnu_ld=no 6476 wlarc= 6477 6478 # A generic and very simple default shared library creation 6479 # command for GNU C++ for the case where it uses the native 6480 # linker, instead of GNU ld. If possible, this setting should 6481 # overridden to take advantage of the native linker features on 6482 # the platform it is being used on. 6483 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 6484 fi 6485 6486 # Commands to make compiler produce verbose output that lists 6487 # what "hidden" libraries, object files and flags are used when 6488 # linking a shared library. 6489 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 6490 6491 else 6492 GXX=no 6493 with_gnu_ld=no 6494 wlarc= 6495 fi 6496 6497 # PORTME: fill in a description of your system's C++ link characteristics 6498 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) 6499 _LT_TAGVAR(ld_shlibs, $1)=yes 6500 case $host_os in 6501 aix3*) 6502 # FIXME: insert proper C++ library support 6503 _LT_TAGVAR(ld_shlibs, $1)=no 6504 ;; 6505 aix[[4-9]]*) 6506 if test ia64 = "$host_cpu"; then 6507 # On IA64, the linker does run time linking by default, so we don't 6508 # have to do anything special. 6509 aix_use_runtimelinking=no 6510 exp_sym_flag='-Bexport' 6511 no_entry_flag= 6512 else 6513 aix_use_runtimelinking=no 6514 6515 # Test if we are trying to use run time linking or normal 6516 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 6517 # have runtime linking enabled, and use it for executables. 6518 # For shared libraries, we enable/disable runtime linking 6519 # depending on the kind of the shared library created - 6520 # when "with_aix_soname,aix_use_runtimelinking" is: 6521 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 6522 # "aix,yes" lib.so shared, rtl:yes, for executables 6523 # lib.a static archive 6524 # "both,no" lib.so.V(shr.o) shared, rtl:yes 6525 # lib.a(lib.so.V) shared, rtl:no, for executables 6526 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 6527 # lib.a(lib.so.V) shared, rtl:no 6528 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 6529 # lib.a static archive 6530 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) 6531 for ld_flag in $LDFLAGS; do 6532 case $ld_flag in 6533 *-brtl*) 6534 aix_use_runtimelinking=yes 6535 break 6536 ;; 6537 esac 6538 done 6539 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 6540 # With aix-soname=svr4, we create the lib.so.V shared archives only, 6541 # so we don't have lib.a shared libs to link our executables. 6542 # We have to force runtime linking in this case. 6543 aix_use_runtimelinking=yes 6544 LDFLAGS="$LDFLAGS -Wl,-brtl" 6545 fi 6546 ;; 6547 esac 6548 6549 exp_sym_flag='-bexport' 6550 no_entry_flag='-bnoentry' 6551 fi 6552 6553 # When large executables or shared objects are built, AIX ld can 6554 # have problems creating the table of contents. If linking a library 6555 # or program results in "error TOC overflow" add -mminimal-toc to 6556 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 6557 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 6558 6559 _LT_TAGVAR(archive_cmds, $1)='' 6560 _LT_TAGVAR(hardcode_direct, $1)=yes 6561 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 6562 _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 6563 _LT_TAGVAR(link_all_deplibs, $1)=yes 6564 _LT_TAGVAR(file_list_spec, $1)='$wl-f,' 6565 case $with_aix_soname,$aix_use_runtimelinking in 6566 aix,*) ;; # no import file 6567 svr4,* | *,yes) # use import file 6568 # The Import File defines what to hardcode. 6569 _LT_TAGVAR(hardcode_direct, $1)=no 6570 _LT_TAGVAR(hardcode_direct_absolute, $1)=no 6571 ;; 6572 esac 6573 6574 if test yes = "$GXX"; then 6575 case $host_os in aix4.[[012]]|aix4.[[012]].*) 6576 # We only want to do this on AIX 4.2 and lower, the check 6577 # below for broken collect2 doesn't work under 4.3+ 6578 collect2name=`$CC -print-prog-name=collect2` 6579 if test -f "$collect2name" && 6580 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 6581 then 6582 # We have reworked collect2 6583 : 6584 else 6585 # We have old collect2 6586 _LT_TAGVAR(hardcode_direct, $1)=unsupported 6587 # It fails to find uninstalled libraries when the uninstalled 6588 # path is not listed in the libpath. Setting hardcode_minus_L 6589 # to unsupported forces relinking 6590 _LT_TAGVAR(hardcode_minus_L, $1)=yes 6591 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 6592 _LT_TAGVAR(hardcode_libdir_separator, $1)= 6593 fi 6594 esac 6595 shared_flag='-shared' 6596 if test yes = "$aix_use_runtimelinking"; then 6597 shared_flag=$shared_flag' $wl-G' 6598 fi 6599 # Need to ensure runtime linking is disabled for the traditional 6600 # shared library, or the linker may eventually find shared libraries 6601 # /with/ Import File - we do not want to mix them. 6602 shared_flag_aix='-shared' 6603 shared_flag_svr4='-shared $wl-G' 6604 else 6605 # not using gcc 6606 if test ia64 = "$host_cpu"; then 6607 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 6608 # chokes on -Wl,-G. The following line is correct: 6609 shared_flag='-G' 6610 else 6611 if test yes = "$aix_use_runtimelinking"; then 6612 shared_flag='$wl-G' 6613 else 6614 shared_flag='$wl-bM:SRE' 6615 fi 6616 shared_flag_aix='$wl-bM:SRE' 6617 shared_flag_svr4='$wl-G' 6618 fi 6619 fi 6620 6621 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall' 6622 # It seems that -bexpall does not export symbols beginning with 6623 # underscore (_), so it is better to generate a list of symbols to 6624 # export. 6625 _LT_TAGVAR(always_export_symbols, $1)=yes 6626 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 6627 # Warning - without using the other runtime loading flags (-brtl), 6628 # -berok will link without error, but may produce a broken library. 6629 # The "-G" linker flag allows undefined symbols. 6630 _LT_TAGVAR(no_undefined_flag, $1)='-bernotok' 6631 # Determine the default libpath from the value encoded in an empty 6632 # executable. 6633 _LT_SYS_MODULE_PATH_AIX([$1]) 6634 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath" 6635 6636 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 6637 else 6638 if test ia64 = "$host_cpu"; then 6639 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib' 6640 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" 6641 _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" 6642 else 6643 # Determine the default libpath from the value encoded in an 6644 # empty executable. 6645 _LT_SYS_MODULE_PATH_AIX([$1]) 6646 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath" 6647 # Warning - without using the other run time loading flags, 6648 # -berok will link without error, but may produce a broken library. 6649 _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok' 6650 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok' 6651 if test yes = "$with_gnu_ld"; then 6652 # We only use this code for GNU lds that support --whole-archive. 6653 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive' 6654 else 6655 # Exported symbols can be pulled into shared objects from archives 6656 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' 6657 fi 6658 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes 6659 _LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 6660 # -brtl affects multiple linker settings, -berok does not and is overridden later 6661 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\1%g"`' 6662 if test svr4 != "$with_aix_soname"; then 6663 # This is similar to how AIX traditionally builds its shared 6664 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. 6665 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 6666 fi 6667 if test aix != "$with_aix_soname"; then 6668 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 6669 else 6670 # used by -dlpreopen to get the symbols 6671 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 6672 fi 6673 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/$realname.d' 6674 fi 6675 fi 6676 ;; 6677 6678 beos*) 6679 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 6680 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 6681 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 6682 # support --undefined. This deserves some investigation. FIXME 6683 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 6684 else 6685 _LT_TAGVAR(ld_shlibs, $1)=no 6686 fi 6687 ;; 6688 6689 chorus*) 6690 case $cc_basename in 6691 *) 6692 # FIXME: insert proper C++ library support 6693 _LT_TAGVAR(ld_shlibs, $1)=no 6694 ;; 6695 esac 6696 ;; 6697 6698 cygwin* | mingw* | pw32* | cegcc*) 6699 case $GXX,$cc_basename in 6700 ,cl* | no,cl*) 6701 # Native MSVC 6702 # hardcode_libdir_flag_spec is actually meaningless, as there is 6703 # no search path for DLLs. 6704 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' 6705 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 6706 _LT_TAGVAR(always_export_symbols, $1)=yes 6707 _LT_TAGVAR(file_list_spec, $1)='@' 6708 # Tell ltmain to make .lib files, not .a files. 6709 libext=lib 6710 # Tell ltmain to make .dll files, not .so files. 6711 shrext_cmds=.dll 6712 # FIXME: Setting linknames here is a bad hack. 6713 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 6714 _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then 6715 cp "$export_symbols" "$output_objdir/$soname.def"; 6716 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 6717 else 6718 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 6719 fi~ 6720 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 6721 linknames=' 6722 # The linker will not automatically build a static lib if we build a DLL. 6723 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' 6724 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 6725 # Don't use ranlib 6726 _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' 6727 _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~ 6728 lt_tool_outputfile="@TOOL_OUTPUT@"~ 6729 case $lt_outputfile in 6730 *.exe|*.EXE) ;; 6731 *) 6732 lt_outputfile=$lt_outputfile.exe 6733 lt_tool_outputfile=$lt_tool_outputfile.exe 6734 ;; 6735 esac~ 6736 func_to_tool_file "$lt_outputfile"~ 6737 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 6738 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 6739 $RM "$lt_outputfile.manifest"; 6740 fi' 6741 ;; 6742 *) 6743 # g++ 6744 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, 6745 # as there is no search path for DLLs. 6746 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 6747 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols' 6748 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 6749 _LT_TAGVAR(always_export_symbols, $1)=no 6750 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 6751 6752 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 6753 _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' 6754 # If the export-symbols file already is a .def file, use it as 6755 # is; otherwise, prepend EXPORTS... 6756 _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then 6757 cp $export_symbols $output_objdir/$soname.def; 6758 else 6759 echo EXPORTS > $output_objdir/$soname.def; 6760 cat $export_symbols >> $output_objdir/$soname.def; 6761 fi~ 6762 $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' 6763 else 6764 _LT_TAGVAR(ld_shlibs, $1)=no 6765 fi 6766 ;; 6767 esac 6768 ;; 6769 darwin* | rhapsody*) 6770 _LT_DARWIN_LINKER_FEATURES($1) 6771 ;; 6772 6773 os2*) 6774 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 6775 _LT_TAGVAR(hardcode_minus_L, $1)=yes 6776 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 6777 shrext_cmds=.dll 6778 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 6779 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 6780 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 6781 $ECHO EXPORTS >> $output_objdir/$libname.def~ 6782 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 6783 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 6784 emximp -o $lib $output_objdir/$libname.def' 6785 _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 6786 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 6787 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 6788 $ECHO EXPORTS >> $output_objdir/$libname.def~ 6789 prefix_cmds="$SED"~ 6790 if test EXPORTS = "`$SED 1q $export_symbols`"; then 6791 prefix_cmds="$prefix_cmds -e 1d"; 6792 fi~ 6793 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 6794 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 6795 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 6796 emximp -o $lib $output_objdir/$libname.def' 6797 _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 6798 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 6799 ;; 6800 6801 dgux*) 6802 case $cc_basename in 6803 ec++*) 6804 # FIXME: insert proper C++ library support 6805 _LT_TAGVAR(ld_shlibs, $1)=no 6806 ;; 6807 ghcx*) 6808 # Green Hills C++ Compiler 6809 # FIXME: insert proper C++ library support 6810 _LT_TAGVAR(ld_shlibs, $1)=no 6811 ;; 6812 *) 6813 # FIXME: insert proper C++ library support 6814 _LT_TAGVAR(ld_shlibs, $1)=no 6815 ;; 6816 esac 6817 ;; 6818 6819 freebsd2.*) 6820 # C++ shared libraries reported to be fairly broken before 6821 # switch to ELF 6822 _LT_TAGVAR(ld_shlibs, $1)=no 6823 ;; 6824 6825 freebsd-elf*) 6826 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 6827 ;; 6828 6829 freebsd* | dragonfly*) 6830 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 6831 # conventions 6832 _LT_TAGVAR(ld_shlibs, $1)=yes 6833 ;; 6834 6835 haiku*) 6836 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 6837 _LT_TAGVAR(link_all_deplibs, $1)=yes 6838 ;; 6839 6840 hpux9*) 6841 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' 6842 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 6843 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' 6844 _LT_TAGVAR(hardcode_direct, $1)=yes 6845 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, 6846 # but as the default 6847 # location of the library. 6848 6849 case $cc_basename in 6850 CC*) 6851 # FIXME: insert proper C++ library support 6852 _LT_TAGVAR(ld_shlibs, $1)=no 6853 ;; 6854 aCC*) 6855 _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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 6856 # Commands to make compiler produce verbose output that lists 6857 # what "hidden" libraries, object files and flags are used when 6858 # linking a shared library. 6859 # 6860 # There doesn't appear to be a way to prevent this compiler from 6861 # explicitly linking system object files so we need to strip them 6862 # from the output so that they don't get included in the library 6863 # dependencies. 6864 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; func_echo_all "$list"' 6865 ;; 6866 *) 6867 if test yes = "$GXX"; then 6868 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 6869 else 6870 # FIXME: insert proper C++ library support 6871 _LT_TAGVAR(ld_shlibs, $1)=no 6872 fi 6873 ;; 6874 esac 6875 ;; 6876 6877 hpux10*|hpux11*) 6878 if test no = "$with_gnu_ld"; then 6879 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' 6880 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 6881 6882 case $host_cpu in 6883 hppa*64*|ia64*) 6884 ;; 6885 *) 6886 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' 6887 ;; 6888 esac 6889 fi 6890 case $host_cpu in 6891 hppa*64*|ia64*) 6892 _LT_TAGVAR(hardcode_direct, $1)=no 6893 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6894 ;; 6895 *) 6896 _LT_TAGVAR(hardcode_direct, $1)=yes 6897 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 6898 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, 6899 # but as the default 6900 # location of the library. 6901 ;; 6902 esac 6903 6904 case $cc_basename in 6905 CC*) 6906 # FIXME: insert proper C++ library support 6907 _LT_TAGVAR(ld_shlibs, $1)=no 6908 ;; 6909 aCC*) 6910 case $host_cpu in 6911 hppa*64*) 6912 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 6913 ;; 6914 ia64*) 6915 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 6916 ;; 6917 *) 6918 _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' 6919 ;; 6920 esac 6921 # Commands to make compiler produce verbose output that lists 6922 # what "hidden" libraries, object files and flags are used when 6923 # linking a shared library. 6924 # 6925 # There doesn't appear to be a way to prevent this compiler from 6926 # explicitly linking system object files so we need to strip them 6927 # from the output so that they don't get included in the library 6928 # dependencies. 6929 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; func_echo_all "$list"' 6930 ;; 6931 *) 6932 if test yes = "$GXX"; then 6933 if test no = "$with_gnu_ld"; then 6934 case $host_cpu in 6935 hppa*64*) 6936 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 6937 ;; 6938 ia64*) 6939 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 6940 ;; 6941 *) 6942 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 6943 ;; 6944 esac 6945 fi 6946 else 6947 # FIXME: insert proper C++ library support 6948 _LT_TAGVAR(ld_shlibs, $1)=no 6949 fi 6950 ;; 6951 esac 6952 ;; 6953 6954 interix[[3-9]]*) 6955 _LT_TAGVAR(hardcode_direct, $1)=no 6956 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6957 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' 6958 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' 6959 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 6960 # Instead, shared libraries are loaded at an image base (0x10000000 by 6961 # default) and relocated if they conflict, which is a slow very memory 6962 # consuming and fragmenting process. To avoid this, we pick a random, 6963 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 6964 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 6965 _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' 6966 _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' 6967 ;; 6968 irix5* | irix6*) 6969 case $cc_basename in 6970 CC*) 6971 # SGI C++ 6972 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 6973 6974 # Archives containing C++ object files must be created using 6975 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 6976 # necessary to make sure instantiated templates are included 6977 # in the archive. 6978 _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' 6979 ;; 6980 *) 6981 if test yes = "$GXX"; then 6982 if test no = "$with_gnu_ld"; then 6983 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 6984 else 6985 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib' 6986 fi 6987 fi 6988 _LT_TAGVAR(link_all_deplibs, $1)=yes 6989 ;; 6990 esac 6991 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 6992 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 6993 _LT_TAGVAR(inherit_rpath, $1)=yes 6994 ;; 6995 6996 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6997 case $cc_basename in 6998 KCC*) 6999 # Kuck and Associates, Inc. (KAI) C++ Compiler 7000 7001 # KCC will only create a shared library if the output file 7002 # ends with ".so" (or ".sl" for HP-UX), so rename the library 7003 # to its proper name (with version) after linking. 7004 _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' 7005 _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' 7006 # Commands to make compiler produce verbose output that lists 7007 # what "hidden" libraries, object files and flags are used when 7008 # linking a shared library. 7009 # 7010 # There doesn't appear to be a way to prevent this compiler from 7011 # explicitly linking system object files so we need to strip them 7012 # from the output so that they don't get included in the library 7013 # dependencies. 7014 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; func_echo_all "$list"' 7015 7016 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' 7017 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' 7018 7019 # Archives containing C++ object files must be created using 7020 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 7021 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' 7022 ;; 7023 icpc* | ecpc* ) 7024 # Intel C++ 7025 with_gnu_ld=yes 7026 # version 8.0 and above of icpc choke on multiply defined symbols 7027 # if we add $predep_objects and $postdep_objects, however 7.1 and 7028 # earlier do not add the objects themselves. 7029 case `$CC -V 2>&1` in 7030 *"Version 7."*) 7031 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 7032 _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' 7033 ;; 7034 *) # Version 8.0 or newer 7035 tmp_idyn= 7036 case $host_cpu in 7037 ia64*) tmp_idyn=' -i_dynamic';; 7038 esac 7039 _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 7040 _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' 7041 ;; 7042 esac 7043 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 7044 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' 7045 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' 7046 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive' 7047 ;; 7048 pgCC* | pgcpp*) 7049 # Portland Group C++ compiler 7050 case `$CC -V` in 7051 *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*) 7052 _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~ 7053 rm -rf $tpldir~ 7054 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 7055 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 7056 _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~ 7057 rm -rf $tpldir~ 7058 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 7059 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 7060 $RANLIB $oldlib' 7061 _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~ 7062 rm -rf $tpldir~ 7063 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 7064 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 7065 _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~ 7066 rm -rf $tpldir~ 7067 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 7068 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 7069 ;; 7070 *) # Version 6 and above use weak symbols 7071 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 7072 _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' 7073 ;; 7074 esac 7075 7076 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl--rpath $wl$libdir' 7077 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' 7078 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 7079 ;; 7080 cxx*) 7081 # Compaq C++ 7082 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 7083 _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' 7084 7085 runpath_var=LD_RUN_PATH 7086 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 7087 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 7088 7089 # Commands to make compiler produce verbose output that lists 7090 # what "hidden" libraries, object files and flags are used when 7091 # linking a shared library. 7092 # 7093 # There doesn't appear to be a way to prevent this compiler from 7094 # explicitly linking system object files so we need to strip them 7095 # from the output so that they don't get included in the library 7096 # dependencies. 7097 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed' 7098 ;; 7099 xl* | mpixl* | bgxl*) 7100 # IBM XL 8.0 on PPC, with GNU ld 7101 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 7102 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' 7103 _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 7104 if test yes = "$supports_anon_versioning"; then 7105 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ 7106 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 7107 echo "local: *; };" >> $output_objdir/$libname.ver~ 7108 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 7109 fi 7110 ;; 7111 *) 7112 case `$CC -V 2>&1 | sed 5q` in 7113 *Sun\ C*) 7114 # Sun C++ 5.9 7115 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' 7116 _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 7117 _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' 7118 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 7119 _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; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 7120 _LT_TAGVAR(compiler_needs_object, $1)=yes 7121 7122 # Not sure whether something based on 7123 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 7124 # would be better. 7125 output_verbose_link_cmd='func_echo_all' 7126 7127 # Archives containing C++ object files must be created using 7128 # "CC -xar", where "CC" is the Sun C++ compiler. This is 7129 # necessary to make sure instantiated templates are included 7130 # in the archive. 7131 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' 7132 ;; 7133 esac 7134 ;; 7135 esac 7136 ;; 7137 7138 lynxos*) 7139 # FIXME: insert proper C++ library support 7140 _LT_TAGVAR(ld_shlibs, $1)=no 7141 ;; 7142 7143 m88k*) 7144 # FIXME: insert proper C++ library support 7145 _LT_TAGVAR(ld_shlibs, $1)=no 7146 ;; 7147 7148 mvs*) 7149 case $cc_basename in 7150 cxx*) 7151 # FIXME: insert proper C++ library support 7152 _LT_TAGVAR(ld_shlibs, $1)=no 7153 ;; 7154 *) 7155 # FIXME: insert proper C++ library support 7156 _LT_TAGVAR(ld_shlibs, $1)=no 7157 ;; 7158 esac 7159 ;; 7160 7161 netbsd*) 7162 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 7163 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 7164 wlarc= 7165 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 7166 _LT_TAGVAR(hardcode_direct, $1)=yes 7167 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7168 fi 7169 # Workaround some broken pre-1.5 toolchains 7170 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 7171 ;; 7172 7173 *nto* | *qnx*) 7174 _LT_TAGVAR(ld_shlibs, $1)=yes 7175 ;; 7176 7177 openbsd* | bitrig*) 7178 if test -f /usr/libexec/ld.so; then 7179 _LT_TAGVAR(hardcode_direct, $1)=yes 7180 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7181 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 7182 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 7183 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' 7184 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then 7185 _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' 7186 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' 7187 _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 7188 fi 7189 output_verbose_link_cmd=func_echo_all 7190 else 7191 _LT_TAGVAR(ld_shlibs, $1)=no 7192 fi 7193 ;; 7194 7195 osf3* | osf4* | osf5*) 7196 case $cc_basename in 7197 KCC*) 7198 # Kuck and Associates, Inc. (KAI) C++ Compiler 7199 7200 # KCC will only create a shared library if the output file 7201 # ends with ".so" (or ".sl" for HP-UX), so rename the library 7202 # to its proper name (with version) after linking. 7203 _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' 7204 7205 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' 7206 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 7207 7208 # Archives containing C++ object files must be created using 7209 # the KAI C++ compiler. 7210 case $host in 7211 osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;; 7212 *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;; 7213 esac 7214 ;; 7215 RCC*) 7216 # Rational C++ 2.4.1 7217 # FIXME: insert proper C++ library support 7218 _LT_TAGVAR(ld_shlibs, $1)=no 7219 ;; 7220 cxx*) 7221 case $host in 7222 osf3*) 7223 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*' 7224 _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 7225 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 7226 ;; 7227 *) 7228 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 7229 _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 7230 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 7231 echo "-hidden">> $lib.exp~ 7232 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~ 7233 $RM $lib.exp' 7234 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 7235 ;; 7236 esac 7237 7238 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 7239 7240 # Commands to make compiler produce verbose output that lists 7241 # what "hidden" libraries, object files and flags are used when 7242 # linking a shared library. 7243 # 7244 # There doesn't appear to be a way to prevent this compiler from 7245 # explicitly linking system object files so we need to strip them 7246 # from the output so that they don't get included in the library 7247 # dependencies. 7248 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 7249 ;; 7250 *) 7251 if test yes,no = "$GXX,$with_gnu_ld"; then 7252 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*' 7253 case $host in 7254 osf3*) 7255 _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" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 7256 ;; 7257 *) 7258 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 7259 ;; 7260 esac 7261 7262 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 7263 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 7264 7265 # Commands to make compiler produce verbose output that lists 7266 # what "hidden" libraries, object files and flags are used when 7267 # linking a shared library. 7268 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 7269 7270 else 7271 # FIXME: insert proper C++ library support 7272 _LT_TAGVAR(ld_shlibs, $1)=no 7273 fi 7274 ;; 7275 esac 7276 ;; 7277 7278 psos*) 7279 # FIXME: insert proper C++ library support 7280 _LT_TAGVAR(ld_shlibs, $1)=no 7281 ;; 7282 7283 sunos4*) 7284 case $cc_basename in 7285 CC*) 7286 # Sun C++ 4.x 7287 # FIXME: insert proper C++ library support 7288 _LT_TAGVAR(ld_shlibs, $1)=no 7289 ;; 7290 lcc*) 7291 # Lucid 7292 # FIXME: insert proper C++ library support 7293 _LT_TAGVAR(ld_shlibs, $1)=no 7294 ;; 7295 *) 7296 # FIXME: insert proper C++ library support 7297 _LT_TAGVAR(ld_shlibs, $1)=no 7298 ;; 7299 esac 7300 ;; 7301 7302 solaris*) 7303 case $cc_basename in 7304 CC* | sunCC*) 7305 # Sun C++ 4.2, 5.x and Centerline C++ 7306 _LT_TAGVAR(archive_cmds_need_lc,$1)=yes 7307 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' 7308 _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 7309 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 7310 $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' 7311 7312 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 7313 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7314 case $host_os in 7315 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 7316 *) 7317 # The compiler driver will combine and reorder linker options, 7318 # but understands '-z linker_flag'. 7319 # Supported since Solaris 2.6 (maybe 2.5.1?) 7320 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' 7321 ;; 7322 esac 7323 _LT_TAGVAR(link_all_deplibs, $1)=yes 7324 7325 output_verbose_link_cmd='func_echo_all' 7326 7327 # Archives containing C++ object files must be created using 7328 # "CC -xar", where "CC" is the Sun C++ compiler. This is 7329 # necessary to make sure instantiated templates are included 7330 # in the archive. 7331 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' 7332 ;; 7333 gcx*) 7334 # Green Hills C++ Compiler 7335 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 7336 7337 # The C++ compiler must be used to create the archive. 7338 _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 7339 ;; 7340 *) 7341 # GNU C++ compiler with Solaris linker 7342 if test yes,no = "$GXX,$with_gnu_ld"; then 7343 _LT_TAGVAR(no_undefined_flag, $1)=' $wl-z ${wl}defs' 7344 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 7345 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 7346 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 7347 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 7348 7349 # Commands to make compiler produce verbose output that lists 7350 # what "hidden" libraries, object files and flags are used when 7351 # linking a shared library. 7352 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 7353 else 7354 # g++ 2.7 appears to require '-G' NOT '-shared' on this 7355 # platform. 7356 _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 7357 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 7358 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 7359 7360 # Commands to make compiler produce verbose output that lists 7361 # what "hidden" libraries, object files and flags are used when 7362 # linking a shared library. 7363 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 7364 fi 7365 7366 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $wl$libdir' 7367 case $host_os in 7368 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 7369 *) 7370 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 7371 ;; 7372 esac 7373 fi 7374 ;; 7375 esac 7376 ;; 7377 7378 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) 7379 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text' 7380 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 7381 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7382 runpath_var='LD_RUN_PATH' 7383 7384 case $cc_basename in 7385 CC*) 7386 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7387 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7388 ;; 7389 *) 7390 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7391 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7392 ;; 7393 esac 7394 ;; 7395 7396 sysv5* | sco3.2v5* | sco5v6*) 7397 # Note: We CANNOT use -z defs as we might desire, because we do not 7398 # link with -lc, and that would cause any symbols used from libc to 7399 # always be unresolved, which means just about no library would 7400 # ever link correctly. If we're not using GNU ld we use -z text 7401 # though, which does catch some bad symbols but isn't as heavy-handed 7402 # as -z defs. 7403 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text' 7404 _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs' 7405 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 7406 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7407 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir' 7408 _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 7409 _LT_TAGVAR(link_all_deplibs, $1)=yes 7410 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport' 7411 runpath_var='LD_RUN_PATH' 7412 7413 case $cc_basename in 7414 CC*) 7415 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7416 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7417 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~ 7418 '"$_LT_TAGVAR(old_archive_cmds, $1)" 7419 _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~ 7420 '"$_LT_TAGVAR(reload_cmds, $1)" 7421 ;; 7422 *) 7423 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7424 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7425 ;; 7426 esac 7427 ;; 7428 7429 tandem*) 7430 case $cc_basename in 7431 NCC*) 7432 # NonStop-UX NCC 3.20 7433 # FIXME: insert proper C++ library support 7434 _LT_TAGVAR(ld_shlibs, $1)=no 7435 ;; 7436 *) 7437 # FIXME: insert proper C++ library support 7438 _LT_TAGVAR(ld_shlibs, $1)=no 7439 ;; 7440 esac 7441 ;; 7442 7443 vxworks*) 7444 # FIXME: insert proper C++ library support 7445 _LT_TAGVAR(ld_shlibs, $1)=no 7446 ;; 7447 7448 *) 7449 # FIXME: insert proper C++ library support 7450 _LT_TAGVAR(ld_shlibs, $1)=no 7451 ;; 7452 esac 7453 7454 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) 7455 test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no 7456 7457 _LT_TAGVAR(GCC, $1)=$GXX 7458 _LT_TAGVAR(LD, $1)=$LD 7459 7460 ## CAVEAT EMPTOR: 7461 ## There is no encapsulation within the following macros, do not change 7462 ## the running order or otherwise move them around unless you know exactly 7463 ## what you are doing... 7464 _LT_SYS_HIDDEN_LIBDEPS($1) 7465 _LT_COMPILER_PIC($1) 7466 _LT_COMPILER_C_O($1) 7467 _LT_COMPILER_FILE_LOCKS($1) 7468 _LT_LINKER_SHLIBS($1) 7469 _LT_SYS_DYNAMIC_LINKER($1) 7470 _LT_LINKER_HARDCODE_LIBPATH($1) 7471 7472 _LT_CONFIG($1) 7473 fi # test -n "$compiler" 7474 7475 CC=$lt_save_CC 7476 CFLAGS=$lt_save_CFLAGS 7477 LDCXX=$LD 7478 LD=$lt_save_LD 7479 GCC=$lt_save_GCC 7480 with_gnu_ld=$lt_save_with_gnu_ld 7481 lt_cv_path_LDCXX=$lt_cv_path_LD 7482 lt_cv_path_LD=$lt_save_path_LD 7483 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 7484 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 7485fi # test yes != "$_lt_caught_CXX_error" 7486 7487AC_LANG_POP 7488])# _LT_LANG_CXX_CONFIG 7489 7490 7491# _LT_FUNC_STRIPNAME_CNF 7492# ---------------------- 7493# func_stripname_cnf prefix suffix name 7494# strip PREFIX and SUFFIX off of NAME. 7495# PREFIX and SUFFIX must not contain globbing or regex special 7496# characters, hashes, percent signs, but SUFFIX may contain a leading 7497# dot (in which case that matches only a dot). 7498# 7499# This function is identical to the (non-XSI) version of func_stripname, 7500# except this one can be used by m4 code that may be executed by configure, 7501# rather than the libtool script. 7502m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl 7503AC_REQUIRE([_LT_DECL_SED]) 7504AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH]) 7505func_stripname_cnf () 7506{ 7507 case @S|@2 in 7508 .*) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%\\\\@S|@2\$%%"`;; 7509 *) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%@S|@2\$%%"`;; 7510 esac 7511} # func_stripname_cnf 7512])# _LT_FUNC_STRIPNAME_CNF 7513 7514 7515# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME]) 7516# --------------------------------- 7517# Figure out "hidden" library dependencies from verbose 7518# compiler output when linking a shared library. 7519# Parse the compiler output and extract the necessary 7520# objects, libraries and library flags. 7521m4_defun([_LT_SYS_HIDDEN_LIBDEPS], 7522[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 7523AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl 7524# Dependencies to place before and after the object being linked: 7525_LT_TAGVAR(predep_objects, $1)= 7526_LT_TAGVAR(postdep_objects, $1)= 7527_LT_TAGVAR(predeps, $1)= 7528_LT_TAGVAR(postdeps, $1)= 7529_LT_TAGVAR(compiler_lib_search_path, $1)= 7530 7531dnl we can't use the lt_simple_compile_test_code here, 7532dnl because it contains code intended for an executable, 7533dnl not a library. It's possible we should let each 7534dnl tag define a new lt_????_link_test_code variable, 7535dnl but it's only used here... 7536m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF 7537int a; 7538void foo (void) { a = 0; } 7539_LT_EOF 7540], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF 7541class Foo 7542{ 7543public: 7544 Foo (void) { a = 0; } 7545private: 7546 int a; 7547}; 7548_LT_EOF 7549], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF 7550 subroutine foo 7551 implicit none 7552 integer*4 a 7553 a=0 7554 return 7555 end 7556_LT_EOF 7557], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF 7558 subroutine foo 7559 implicit none 7560 integer a 7561 a=0 7562 return 7563 end 7564_LT_EOF 7565], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF 7566public class foo { 7567 private int a; 7568 public void bar (void) { 7569 a = 0; 7570 } 7571}; 7572_LT_EOF 7573], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF 7574package foo 7575func foo() { 7576} 7577_LT_EOF 7578]) 7579 7580_lt_libdeps_save_CFLAGS=$CFLAGS 7581case "$CC $CFLAGS " in #( 7582*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 7583*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 7584*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 7585esac 7586 7587dnl Parse the compiler output and extract the necessary 7588dnl objects, libraries and library flags. 7589if AC_TRY_EVAL(ac_compile); then 7590 # Parse the compiler output and extract the necessary 7591 # objects, libraries and library flags. 7592 7593 # Sentinel used to keep track of whether or not we are before 7594 # the conftest object file. 7595 pre_test_object_deps_done=no 7596 7597 for p in `eval "$output_verbose_link_cmd"`; do 7598 case $prev$p in 7599 7600 -L* | -R* | -l*) 7601 # Some compilers place space between "-{L,R}" and the path. 7602 # Remove the space. 7603 if test x-L = "$p" || 7604 test x-R = "$p"; then 7605 prev=$p 7606 continue 7607 fi 7608 7609 # Expand the sysroot to ease extracting the directories later. 7610 if test -z "$prev"; then 7611 case $p in 7612 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 7613 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 7614 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 7615 esac 7616 fi 7617 case $p in 7618 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 7619 esac 7620 if test no = "$pre_test_object_deps_done"; then 7621 case $prev in 7622 -L | -R) 7623 # Internal compiler library paths should come after those 7624 # provided the user. The postdeps already come after the 7625 # user supplied libs so there is no need to process them. 7626 if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then 7627 _LT_TAGVAR(compiler_lib_search_path, $1)=$prev$p 7628 else 7629 _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} $prev$p" 7630 fi 7631 ;; 7632 # The "-l" case would never come before the object being 7633 # linked, so don't bother handling this case. 7634 esac 7635 else 7636 if test -z "$_LT_TAGVAR(postdeps, $1)"; then 7637 _LT_TAGVAR(postdeps, $1)=$prev$p 7638 else 7639 _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} $prev$p" 7640 fi 7641 fi 7642 prev= 7643 ;; 7644 7645 *.lto.$objext) ;; # Ignore GCC LTO objects 7646 *.$objext) 7647 # This assumes that the test object file only shows up 7648 # once in the compiler output. 7649 if test "$p" = "conftest.$objext"; then 7650 pre_test_object_deps_done=yes 7651 continue 7652 fi 7653 7654 if test no = "$pre_test_object_deps_done"; then 7655 if test -z "$_LT_TAGVAR(predep_objects, $1)"; then 7656 _LT_TAGVAR(predep_objects, $1)=$p 7657 else 7658 _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p" 7659 fi 7660 else 7661 if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then 7662 _LT_TAGVAR(postdep_objects, $1)=$p 7663 else 7664 _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p" 7665 fi 7666 fi 7667 ;; 7668 7669 *) ;; # Ignore the rest. 7670 7671 esac 7672 done 7673 7674 # Clean up. 7675 rm -f a.out a.exe 7676else 7677 echo "libtool.m4: error: problem compiling $1 test program" 7678fi 7679 7680$RM -f confest.$objext 7681CFLAGS=$_lt_libdeps_save_CFLAGS 7682 7683# PORTME: override above test on systems where it is broken 7684m4_if([$1], [CXX], 7685[case $host_os in 7686interix[[3-9]]*) 7687 # Interix 3.5 installs completely hosed .la files for C++, so rather than 7688 # hack all around it, let's just trust "g++" to DTRT. 7689 _LT_TAGVAR(predep_objects,$1)= 7690 _LT_TAGVAR(postdep_objects,$1)= 7691 _LT_TAGVAR(postdeps,$1)= 7692 ;; 7693esac 7694]) 7695 7696case " $_LT_TAGVAR(postdeps, $1) " in 7697*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;; 7698esac 7699 _LT_TAGVAR(compiler_lib_search_dirs, $1)= 7700if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then 7701 _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | $SED -e 's! -L! !g' -e 's!^ !!'` 7702fi 7703_LT_TAGDECL([], [compiler_lib_search_dirs], [1], 7704 [The directories searched by this compiler when creating a shared library]) 7705_LT_TAGDECL([], [predep_objects], [1], 7706 [Dependencies to place before and after the objects being linked to 7707 create a shared library]) 7708_LT_TAGDECL([], [postdep_objects], [1]) 7709_LT_TAGDECL([], [predeps], [1]) 7710_LT_TAGDECL([], [postdeps], [1]) 7711_LT_TAGDECL([], [compiler_lib_search_path], [1], 7712 [The library search path used internally by the compiler when linking 7713 a shared library]) 7714])# _LT_SYS_HIDDEN_LIBDEPS 7715 7716 7717# _LT_LANG_F77_CONFIG([TAG]) 7718# -------------------------- 7719# Ensure that the configuration variables for a Fortran 77 compiler are 7720# suitably defined. These variables are subsequently used by _LT_CONFIG 7721# to write the compiler configuration to 'libtool'. 7722m4_defun([_LT_LANG_F77_CONFIG], 7723[AC_LANG_PUSH(Fortran 77) 7724if test -z "$F77" || test no = "$F77"; then 7725 _lt_disable_F77=yes 7726fi 7727 7728_LT_TAGVAR(archive_cmds_need_lc, $1)=no 7729_LT_TAGVAR(allow_undefined_flag, $1)= 7730_LT_TAGVAR(always_export_symbols, $1)=no 7731_LT_TAGVAR(archive_expsym_cmds, $1)= 7732_LT_TAGVAR(export_dynamic_flag_spec, $1)= 7733_LT_TAGVAR(hardcode_direct, $1)=no 7734_LT_TAGVAR(hardcode_direct_absolute, $1)=no 7735_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 7736_LT_TAGVAR(hardcode_libdir_separator, $1)= 7737_LT_TAGVAR(hardcode_minus_L, $1)=no 7738_LT_TAGVAR(hardcode_automatic, $1)=no 7739_LT_TAGVAR(inherit_rpath, $1)=no 7740_LT_TAGVAR(module_cmds, $1)= 7741_LT_TAGVAR(module_expsym_cmds, $1)= 7742_LT_TAGVAR(link_all_deplibs, $1)=unknown 7743_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 7744_LT_TAGVAR(reload_flag, $1)=$reload_flag 7745_LT_TAGVAR(reload_cmds, $1)=$reload_cmds 7746_LT_TAGVAR(no_undefined_flag, $1)= 7747_LT_TAGVAR(whole_archive_flag_spec, $1)= 7748_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no 7749 7750# Source file extension for f77 test sources. 7751ac_ext=f 7752 7753# Object file extension for compiled f77 test sources. 7754objext=o 7755_LT_TAGVAR(objext, $1)=$objext 7756 7757# No sense in running all these tests if we already determined that 7758# the F77 compiler isn't working. Some variables (like enable_shared) 7759# are currently assumed to apply to all compilers on this platform, 7760# and will be corrupted by setting them based on a non-working compiler. 7761if test yes != "$_lt_disable_F77"; then 7762 # Code to be used in simple compile tests 7763 lt_simple_compile_test_code="\ 7764 subroutine t 7765 return 7766 end 7767" 7768 7769 # Code to be used in simple link tests 7770 lt_simple_link_test_code="\ 7771 program t 7772 end 7773" 7774 7775 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 7776 _LT_TAG_COMPILER 7777 7778 # save warnings/boilerplate of simple test code 7779 _LT_COMPILER_BOILERPLATE 7780 _LT_LINKER_BOILERPLATE 7781 7782 # Allow CC to be a program name with arguments. 7783 lt_save_CC=$CC 7784 lt_save_GCC=$GCC 7785 lt_save_CFLAGS=$CFLAGS 7786 CC=${F77-"f77"} 7787 CFLAGS=$FFLAGS 7788 compiler=$CC 7789 _LT_TAGVAR(compiler, $1)=$CC 7790 _LT_CC_BASENAME([$compiler]) 7791 GCC=$G77 7792 if test -n "$compiler"; then 7793 AC_MSG_CHECKING([if libtool supports shared libraries]) 7794 AC_MSG_RESULT([$can_build_shared]) 7795 7796 AC_MSG_CHECKING([whether to build shared libraries]) 7797 test no = "$can_build_shared" && enable_shared=no 7798 7799 # On AIX, shared libraries and static libraries use the same namespace, and 7800 # are all built from PIC. 7801 case $host_os in 7802 aix3*) 7803 test yes = "$enable_shared" && enable_static=no 7804 if test -n "$RANLIB"; then 7805 archive_cmds="$archive_cmds~\$RANLIB \$lib" 7806 postinstall_cmds='$RANLIB $lib' 7807 fi 7808 ;; 7809 aix[[4-9]]*) 7810 if test ia64 != "$host_cpu"; then 7811 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 7812 yes,aix,yes) ;; # shared object as lib.so file only 7813 yes,svr4,*) ;; # shared object as lib.so archive member only 7814 yes,*) enable_static=no ;; # shared object in lib.a archive as well 7815 esac 7816 fi 7817 ;; 7818 esac 7819 AC_MSG_RESULT([$enable_shared]) 7820 7821 AC_MSG_CHECKING([whether to build static libraries]) 7822 # Make sure either enable_shared or enable_static is yes. 7823 test yes = "$enable_shared" || enable_static=yes 7824 AC_MSG_RESULT([$enable_static]) 7825 7826 _LT_TAGVAR(GCC, $1)=$G77 7827 _LT_TAGVAR(LD, $1)=$LD 7828 7829 ## CAVEAT EMPTOR: 7830 ## There is no encapsulation within the following macros, do not change 7831 ## the running order or otherwise move them around unless you know exactly 7832 ## what you are doing... 7833 _LT_COMPILER_PIC($1) 7834 _LT_COMPILER_C_O($1) 7835 _LT_COMPILER_FILE_LOCKS($1) 7836 _LT_LINKER_SHLIBS($1) 7837 _LT_SYS_DYNAMIC_LINKER($1) 7838 _LT_LINKER_HARDCODE_LIBPATH($1) 7839 7840 _LT_CONFIG($1) 7841 fi # test -n "$compiler" 7842 7843 GCC=$lt_save_GCC 7844 CC=$lt_save_CC 7845 CFLAGS=$lt_save_CFLAGS 7846fi # test yes != "$_lt_disable_F77" 7847 7848AC_LANG_POP 7849])# _LT_LANG_F77_CONFIG 7850 7851 7852# _LT_LANG_FC_CONFIG([TAG]) 7853# ------------------------- 7854# Ensure that the configuration variables for a Fortran compiler are 7855# suitably defined. These variables are subsequently used by _LT_CONFIG 7856# to write the compiler configuration to 'libtool'. 7857m4_defun([_LT_LANG_FC_CONFIG], 7858[AC_LANG_PUSH(Fortran) 7859 7860if test -z "$FC" || test no = "$FC"; then 7861 _lt_disable_FC=yes 7862fi 7863 7864_LT_TAGVAR(archive_cmds_need_lc, $1)=no 7865_LT_TAGVAR(allow_undefined_flag, $1)= 7866_LT_TAGVAR(always_export_symbols, $1)=no 7867_LT_TAGVAR(archive_expsym_cmds, $1)= 7868_LT_TAGVAR(export_dynamic_flag_spec, $1)= 7869_LT_TAGVAR(hardcode_direct, $1)=no 7870_LT_TAGVAR(hardcode_direct_absolute, $1)=no 7871_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 7872_LT_TAGVAR(hardcode_libdir_separator, $1)= 7873_LT_TAGVAR(hardcode_minus_L, $1)=no 7874_LT_TAGVAR(hardcode_automatic, $1)=no 7875_LT_TAGVAR(inherit_rpath, $1)=no 7876_LT_TAGVAR(module_cmds, $1)= 7877_LT_TAGVAR(module_expsym_cmds, $1)= 7878_LT_TAGVAR(link_all_deplibs, $1)=unknown 7879_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 7880_LT_TAGVAR(reload_flag, $1)=$reload_flag 7881_LT_TAGVAR(reload_cmds, $1)=$reload_cmds 7882_LT_TAGVAR(no_undefined_flag, $1)= 7883_LT_TAGVAR(whole_archive_flag_spec, $1)= 7884_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no 7885 7886# Source file extension for fc test sources. 7887ac_ext=${ac_fc_srcext-f} 7888 7889# Object file extension for compiled fc test sources. 7890objext=o 7891_LT_TAGVAR(objext, $1)=$objext 7892 7893# No sense in running all these tests if we already determined that 7894# the FC compiler isn't working. Some variables (like enable_shared) 7895# are currently assumed to apply to all compilers on this platform, 7896# and will be corrupted by setting them based on a non-working compiler. 7897if test yes != "$_lt_disable_FC"; then 7898 # Code to be used in simple compile tests 7899 lt_simple_compile_test_code="\ 7900 subroutine t 7901 return 7902 end 7903" 7904 7905 # Code to be used in simple link tests 7906 lt_simple_link_test_code="\ 7907 program t 7908 end 7909" 7910 7911 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 7912 _LT_TAG_COMPILER 7913 7914 # save warnings/boilerplate of simple test code 7915 _LT_COMPILER_BOILERPLATE 7916 _LT_LINKER_BOILERPLATE 7917 7918 # Allow CC to be a program name with arguments. 7919 lt_save_CC=$CC 7920 lt_save_GCC=$GCC 7921 lt_save_CFLAGS=$CFLAGS 7922 CC=${FC-"f95"} 7923 CFLAGS=$FCFLAGS 7924 compiler=$CC 7925 GCC=$ac_cv_fc_compiler_gnu 7926 7927 _LT_TAGVAR(compiler, $1)=$CC 7928 _LT_CC_BASENAME([$compiler]) 7929 7930 if test -n "$compiler"; then 7931 AC_MSG_CHECKING([if libtool supports shared libraries]) 7932 AC_MSG_RESULT([$can_build_shared]) 7933 7934 AC_MSG_CHECKING([whether to build shared libraries]) 7935 test no = "$can_build_shared" && enable_shared=no 7936 7937 # On AIX, shared libraries and static libraries use the same namespace, and 7938 # are all built from PIC. 7939 case $host_os in 7940 aix3*) 7941 test yes = "$enable_shared" && enable_static=no 7942 if test -n "$RANLIB"; then 7943 archive_cmds="$archive_cmds~\$RANLIB \$lib" 7944 postinstall_cmds='$RANLIB $lib' 7945 fi 7946 ;; 7947 aix[[4-9]]*) 7948 if test ia64 != "$host_cpu"; then 7949 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 7950 yes,aix,yes) ;; # shared object as lib.so file only 7951 yes,svr4,*) ;; # shared object as lib.so archive member only 7952 yes,*) enable_static=no ;; # shared object in lib.a archive as well 7953 esac 7954 fi 7955 ;; 7956 esac 7957 AC_MSG_RESULT([$enable_shared]) 7958 7959 AC_MSG_CHECKING([whether to build static libraries]) 7960 # Make sure either enable_shared or enable_static is yes. 7961 test yes = "$enable_shared" || enable_static=yes 7962 AC_MSG_RESULT([$enable_static]) 7963 7964 _LT_TAGVAR(GCC, $1)=$ac_cv_fc_compiler_gnu 7965 _LT_TAGVAR(LD, $1)=$LD 7966 7967 ## CAVEAT EMPTOR: 7968 ## There is no encapsulation within the following macros, do not change 7969 ## the running order or otherwise move them around unless you know exactly 7970 ## what you are doing... 7971 _LT_SYS_HIDDEN_LIBDEPS($1) 7972 _LT_COMPILER_PIC($1) 7973 _LT_COMPILER_C_O($1) 7974 _LT_COMPILER_FILE_LOCKS($1) 7975 _LT_LINKER_SHLIBS($1) 7976 _LT_SYS_DYNAMIC_LINKER($1) 7977 _LT_LINKER_HARDCODE_LIBPATH($1) 7978 7979 _LT_CONFIG($1) 7980 fi # test -n "$compiler" 7981 7982 GCC=$lt_save_GCC 7983 CC=$lt_save_CC 7984 CFLAGS=$lt_save_CFLAGS 7985fi # test yes != "$_lt_disable_FC" 7986 7987AC_LANG_POP 7988])# _LT_LANG_FC_CONFIG 7989 7990 7991# _LT_LANG_GCJ_CONFIG([TAG]) 7992# -------------------------- 7993# Ensure that the configuration variables for the GNU Java Compiler compiler 7994# are suitably defined. These variables are subsequently used by _LT_CONFIG 7995# to write the compiler configuration to 'libtool'. 7996m4_defun([_LT_LANG_GCJ_CONFIG], 7997[AC_REQUIRE([LT_PROG_GCJ])dnl 7998AC_LANG_SAVE 7999 8000# Source file extension for Java test sources. 8001ac_ext=java 8002 8003# Object file extension for compiled Java test sources. 8004objext=o 8005_LT_TAGVAR(objext, $1)=$objext 8006 8007# Code to be used in simple compile tests 8008lt_simple_compile_test_code="class foo {}" 8009 8010# Code to be used in simple link tests 8011lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }' 8012 8013# ltmain only uses $CC for tagged configurations so make sure $CC is set. 8014_LT_TAG_COMPILER 8015 8016# save warnings/boilerplate of simple test code 8017_LT_COMPILER_BOILERPLATE 8018_LT_LINKER_BOILERPLATE 8019 8020# Allow CC to be a program name with arguments. 8021lt_save_CC=$CC 8022lt_save_CFLAGS=$CFLAGS 8023lt_save_GCC=$GCC 8024GCC=yes 8025CC=${GCJ-"gcj"} 8026CFLAGS=$GCJFLAGS 8027compiler=$CC 8028_LT_TAGVAR(compiler, $1)=$CC 8029_LT_TAGVAR(LD, $1)=$LD 8030_LT_CC_BASENAME([$compiler]) 8031 8032# GCJ did not exist at the time GCC didn't implicitly link libc in. 8033_LT_TAGVAR(archive_cmds_need_lc, $1)=no 8034 8035_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 8036_LT_TAGVAR(reload_flag, $1)=$reload_flag 8037_LT_TAGVAR(reload_cmds, $1)=$reload_cmds 8038 8039if test -n "$compiler"; then 8040 _LT_COMPILER_NO_RTTI($1) 8041 _LT_COMPILER_PIC($1) 8042 _LT_COMPILER_C_O($1) 8043 _LT_COMPILER_FILE_LOCKS($1) 8044 _LT_LINKER_SHLIBS($1) 8045 _LT_LINKER_HARDCODE_LIBPATH($1) 8046 8047 _LT_CONFIG($1) 8048fi 8049 8050AC_LANG_RESTORE 8051 8052GCC=$lt_save_GCC 8053CC=$lt_save_CC 8054CFLAGS=$lt_save_CFLAGS 8055])# _LT_LANG_GCJ_CONFIG 8056 8057 8058# _LT_LANG_GO_CONFIG([TAG]) 8059# -------------------------- 8060# Ensure that the configuration variables for the GNU Go compiler 8061# are suitably defined. These variables are subsequently used by _LT_CONFIG 8062# to write the compiler configuration to 'libtool'. 8063m4_defun([_LT_LANG_GO_CONFIG], 8064[AC_REQUIRE([LT_PROG_GO])dnl 8065AC_LANG_SAVE 8066 8067# Source file extension for Go test sources. 8068ac_ext=go 8069 8070# Object file extension for compiled Go test sources. 8071objext=o 8072_LT_TAGVAR(objext, $1)=$objext 8073 8074# Code to be used in simple compile tests 8075lt_simple_compile_test_code="package main; func main() { }" 8076 8077# Code to be used in simple link tests 8078lt_simple_link_test_code='package main; func main() { }' 8079 8080# ltmain only uses $CC for tagged configurations so make sure $CC is set. 8081_LT_TAG_COMPILER 8082 8083# save warnings/boilerplate of simple test code 8084_LT_COMPILER_BOILERPLATE 8085_LT_LINKER_BOILERPLATE 8086 8087# Allow CC to be a program name with arguments. 8088lt_save_CC=$CC 8089lt_save_CFLAGS=$CFLAGS 8090lt_save_GCC=$GCC 8091GCC=yes 8092CC=${GOC-"gccgo"} 8093CFLAGS=$GOFLAGS 8094compiler=$CC 8095_LT_TAGVAR(compiler, $1)=$CC 8096_LT_TAGVAR(LD, $1)=$LD 8097_LT_CC_BASENAME([$compiler]) 8098 8099# Go did not exist at the time GCC didn't implicitly link libc in. 8100_LT_TAGVAR(archive_cmds_need_lc, $1)=no 8101 8102_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 8103_LT_TAGVAR(reload_flag, $1)=$reload_flag 8104_LT_TAGVAR(reload_cmds, $1)=$reload_cmds 8105 8106if test -n "$compiler"; then 8107 _LT_COMPILER_NO_RTTI($1) 8108 _LT_COMPILER_PIC($1) 8109 _LT_COMPILER_C_O($1) 8110 _LT_COMPILER_FILE_LOCKS($1) 8111 _LT_LINKER_SHLIBS($1) 8112 _LT_LINKER_HARDCODE_LIBPATH($1) 8113 8114 _LT_CONFIG($1) 8115fi 8116 8117AC_LANG_RESTORE 8118 8119GCC=$lt_save_GCC 8120CC=$lt_save_CC 8121CFLAGS=$lt_save_CFLAGS 8122])# _LT_LANG_GO_CONFIG 8123 8124 8125# _LT_LANG_RC_CONFIG([TAG]) 8126# ------------------------- 8127# Ensure that the configuration variables for the Windows resource compiler 8128# are suitably defined. These variables are subsequently used by _LT_CONFIG 8129# to write the compiler configuration to 'libtool'. 8130m4_defun([_LT_LANG_RC_CONFIG], 8131[AC_REQUIRE([LT_PROG_RC])dnl 8132AC_LANG_SAVE 8133 8134# Source file extension for RC test sources. 8135ac_ext=rc 8136 8137# Object file extension for compiled RC test sources. 8138objext=o 8139_LT_TAGVAR(objext, $1)=$objext 8140 8141# Code to be used in simple compile tests 8142lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' 8143 8144# Code to be used in simple link tests 8145lt_simple_link_test_code=$lt_simple_compile_test_code 8146 8147# ltmain only uses $CC for tagged configurations so make sure $CC is set. 8148_LT_TAG_COMPILER 8149 8150# save warnings/boilerplate of simple test code 8151_LT_COMPILER_BOILERPLATE 8152_LT_LINKER_BOILERPLATE 8153 8154# Allow CC to be a program name with arguments. 8155lt_save_CC=$CC 8156lt_save_CFLAGS=$CFLAGS 8157lt_save_GCC=$GCC 8158GCC= 8159CC=${RC-"windres"} 8160CFLAGS= 8161compiler=$CC 8162_LT_TAGVAR(compiler, $1)=$CC 8163_LT_CC_BASENAME([$compiler]) 8164_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes 8165 8166if test -n "$compiler"; then 8167 : 8168 _LT_CONFIG($1) 8169fi 8170 8171GCC=$lt_save_GCC 8172AC_LANG_RESTORE 8173CC=$lt_save_CC 8174CFLAGS=$lt_save_CFLAGS 8175])# _LT_LANG_RC_CONFIG 8176 8177 8178# LT_PROG_GCJ 8179# ----------- 8180AC_DEFUN([LT_PROG_GCJ], 8181[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ], 8182 [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ], 8183 [AC_CHECK_TOOL(GCJ, gcj,) 8184 test set = "${GCJFLAGS+set}" || GCJFLAGS="-g -O2" 8185 AC_SUBST(GCJFLAGS)])])[]dnl 8186]) 8187 8188# Old name: 8189AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ]) 8190dnl aclocal-1.4 backwards compatibility: 8191dnl AC_DEFUN([LT_AC_PROG_GCJ], []) 8192 8193 8194# LT_PROG_GO 8195# ---------- 8196AC_DEFUN([LT_PROG_GO], 8197[AC_CHECK_TOOL(GOC, gccgo,) 8198]) 8199 8200 8201# LT_PROG_RC 8202# ---------- 8203AC_DEFUN([LT_PROG_RC], 8204[AC_CHECK_TOOL(RC, windres,) 8205]) 8206 8207# Old name: 8208AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC]) 8209dnl aclocal-1.4 backwards compatibility: 8210dnl AC_DEFUN([LT_AC_PROG_RC], []) 8211 8212 8213# _LT_DECL_EGREP 8214# -------------- 8215# If we don't have a new enough Autoconf to choose the best grep 8216# available, choose the one first in the user's PATH. 8217m4_defun([_LT_DECL_EGREP], 8218[AC_REQUIRE([AC_PROG_EGREP])dnl 8219AC_REQUIRE([AC_PROG_FGREP])dnl 8220test -z "$GREP" && GREP=grep 8221_LT_DECL([], [GREP], [1], [A grep program that handles long lines]) 8222_LT_DECL([], [EGREP], [1], [An ERE matcher]) 8223_LT_DECL([], [FGREP], [1], [A literal string matcher]) 8224dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too 8225AC_SUBST([GREP]) 8226]) 8227 8228 8229# _LT_DECL_OBJDUMP 8230# -------------- 8231# If we don't have a new enough Autoconf to choose the best objdump 8232# available, choose the one first in the user's PATH. 8233m4_defun([_LT_DECL_OBJDUMP], 8234[AC_CHECK_TOOL(OBJDUMP, objdump, false) 8235test -z "$OBJDUMP" && OBJDUMP=objdump 8236_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper]) 8237AC_SUBST([OBJDUMP]) 8238]) 8239 8240# _LT_DECL_DLLTOOL 8241# ---------------- 8242# Ensure DLLTOOL variable is set. 8243m4_defun([_LT_DECL_DLLTOOL], 8244[AC_CHECK_TOOL(DLLTOOL, dlltool, false) 8245test -z "$DLLTOOL" && DLLTOOL=dlltool 8246_LT_DECL([], [DLLTOOL], [1], [DLL creation program]) 8247AC_SUBST([DLLTOOL]) 8248]) 8249 8250# _LT_DECL_SED 8251# ------------ 8252# Check for a fully-functional sed program, that truncates 8253# as few characters as possible. Prefer GNU sed if found. 8254m4_defun([_LT_DECL_SED], 8255[AC_PROG_SED 8256test -z "$SED" && SED=sed 8257Xsed="$SED -e 1s/^X//" 8258_LT_DECL([], [SED], [1], [A sed program that does not truncate output]) 8259_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"], 8260 [Sed that helps us avoid accidentally triggering echo(1) options like -n]) 8261])# _LT_DECL_SED 8262 8263m4_ifndef([AC_PROG_SED], [ 8264# NOTE: This macro has been submitted for inclusion into # 8265# GNU Autoconf as AC_PROG_SED. When it is available in # 8266# a released version of Autoconf we should remove this # 8267# macro and use it instead. # 8268 8269m4_defun([AC_PROG_SED], 8270[AC_MSG_CHECKING([for a sed that does not truncate output]) 8271AC_CACHE_VAL(lt_cv_path_SED, 8272[# Loop through the user's path and test for sed and gsed. 8273# Then use that list of sed's as ones to test for truncation. 8274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8275for as_dir in $PATH 8276do 8277 IFS=$as_save_IFS 8278 test -z "$as_dir" && as_dir=. 8279 for lt_ac_prog in sed gsed; do 8280 for ac_exec_ext in '' $ac_executable_extensions; do 8281 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 8282 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 8283 fi 8284 done 8285 done 8286done 8287IFS=$as_save_IFS 8288lt_ac_max=0 8289lt_ac_count=0 8290# Add /usr/xpg4/bin/sed as it is typically found on Solaris 8291# along with /bin/sed that truncates output. 8292for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 8293 test ! -f "$lt_ac_sed" && continue 8294 cat /dev/null > conftest.in 8295 lt_ac_count=0 8296 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 8297 # Check for GNU sed and select it if it is found. 8298 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 8299 lt_cv_path_SED=$lt_ac_sed 8300 break 8301 fi 8302 while true; do 8303 cat conftest.in conftest.in >conftest.tmp 8304 mv conftest.tmp conftest.in 8305 cp conftest.in conftest.nl 8306 echo >>conftest.nl 8307 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 8308 cmp -s conftest.out conftest.nl || break 8309 # 10000 chars as input seems more than enough 8310 test 10 -lt "$lt_ac_count" && break 8311 lt_ac_count=`expr $lt_ac_count + 1` 8312 if test "$lt_ac_count" -gt "$lt_ac_max"; then 8313 lt_ac_max=$lt_ac_count 8314 lt_cv_path_SED=$lt_ac_sed 8315 fi 8316 done 8317done 8318]) 8319SED=$lt_cv_path_SED 8320AC_SUBST([SED]) 8321AC_MSG_RESULT([$SED]) 8322])#AC_PROG_SED 8323])#m4_ifndef 8324 8325# Old name: 8326AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED]) 8327dnl aclocal-1.4 backwards compatibility: 8328dnl AC_DEFUN([LT_AC_PROG_SED], []) 8329 8330 8331# _LT_CHECK_SHELL_FEATURES 8332# ------------------------ 8333# Find out whether the shell is Bourne or XSI compatible, 8334# or has some other useful features. 8335m4_defun([_LT_CHECK_SHELL_FEATURES], 8336[if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 8337 lt_unset=unset 8338else 8339 lt_unset=false 8340fi 8341_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl 8342 8343# test EBCDIC or ASCII 8344case `echo X|tr X '\101'` in 8345 A) # ASCII based system 8346 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 8347 lt_SP2NL='tr \040 \012' 8348 lt_NL2SP='tr \015\012 \040\040' 8349 ;; 8350 *) # EBCDIC based system 8351 lt_SP2NL='tr \100 \n' 8352 lt_NL2SP='tr \r\n \100\100' 8353 ;; 8354esac 8355_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl 8356_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl 8357])# _LT_CHECK_SHELL_FEATURES 8358 8359 8360# _LT_PATH_CONVERSION_FUNCTIONS 8361# ----------------------------- 8362# Determine what file name conversion functions should be used by 8363# func_to_host_file (and, implicitly, by func_to_host_path). These are needed 8364# for certain cross-compile configurations and native mingw. 8365m4_defun([_LT_PATH_CONVERSION_FUNCTIONS], 8366[AC_REQUIRE([AC_CANONICAL_HOST])dnl 8367AC_REQUIRE([AC_CANONICAL_BUILD])dnl 8368AC_MSG_CHECKING([how to convert $build file names to $host format]) 8369AC_CACHE_VAL(lt_cv_to_host_file_cmd, 8370[case $host in 8371 *-*-mingw* ) 8372 case $build in 8373 *-*-mingw* ) # actually msys 8374 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 8375 ;; 8376 *-*-cygwin* ) 8377 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 8378 ;; 8379 * ) # otherwise, assume *nix 8380 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 8381 ;; 8382 esac 8383 ;; 8384 *-*-cygwin* ) 8385 case $build in 8386 *-*-mingw* ) # actually msys 8387 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 8388 ;; 8389 *-*-cygwin* ) 8390 lt_cv_to_host_file_cmd=func_convert_file_noop 8391 ;; 8392 * ) # otherwise, assume *nix 8393 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 8394 ;; 8395 esac 8396 ;; 8397 * ) # unhandled hosts (and "normal" native builds) 8398 lt_cv_to_host_file_cmd=func_convert_file_noop 8399 ;; 8400esac 8401]) 8402to_host_file_cmd=$lt_cv_to_host_file_cmd 8403AC_MSG_RESULT([$lt_cv_to_host_file_cmd]) 8404_LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd], 8405 [0], [convert $build file names to $host format])dnl 8406 8407AC_MSG_CHECKING([how to convert $build file names to toolchain format]) 8408AC_CACHE_VAL(lt_cv_to_tool_file_cmd, 8409[#assume ordinary cross tools, or native build. 8410lt_cv_to_tool_file_cmd=func_convert_file_noop 8411case $host in 8412 *-*-mingw* ) 8413 case $build in 8414 *-*-mingw* ) # actually msys 8415 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 8416 ;; 8417 esac 8418 ;; 8419esac 8420]) 8421to_tool_file_cmd=$lt_cv_to_tool_file_cmd 8422AC_MSG_RESULT([$lt_cv_to_tool_file_cmd]) 8423_LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd], 8424 [0], [convert $build files to toolchain format])dnl 8425])# _LT_PATH_CONVERSION_FUNCTIONS 8426 8427# Helper functions for option handling. -*- Autoconf -*- 8428# 8429# Copyright (C) 2004-2005, 2007-2009, 2011-2015 Free Software 8430# Foundation, Inc. 8431# Written by Gary V. Vaughan, 2004 8432# 8433# This file is free software; the Free Software Foundation gives 8434# unlimited permission to copy and/or distribute it, with or without 8435# modifications, as long as this notice is preserved. 8436 8437# serial 8 ltoptions.m4 8438 8439# This is to help aclocal find these macros, as it can't see m4_define. 8440AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])]) 8441 8442 8443# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME) 8444# ------------------------------------------ 8445m4_define([_LT_MANGLE_OPTION], 8446[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])]) 8447 8448 8449# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME) 8450# --------------------------------------- 8451# Set option OPTION-NAME for macro MACRO-NAME, and if there is a 8452# matching handler defined, dispatch to it. Other OPTION-NAMEs are 8453# saved as a flag. 8454m4_define([_LT_SET_OPTION], 8455[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl 8456m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]), 8457 _LT_MANGLE_DEFUN([$1], [$2]), 8458 [m4_warning([Unknown $1 option '$2'])])[]dnl 8459]) 8460 8461 8462# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET]) 8463# ------------------------------------------------------------ 8464# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. 8465m4_define([_LT_IF_OPTION], 8466[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])]) 8467 8468 8469# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET) 8470# ------------------------------------------------------- 8471# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME 8472# are set. 8473m4_define([_LT_UNLESS_OPTIONS], 8474[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), 8475 [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option), 8476 [m4_define([$0_found])])])[]dnl 8477m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3 8478])[]dnl 8479]) 8480 8481 8482# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST) 8483# ---------------------------------------- 8484# OPTION-LIST is a space-separated list of Libtool options associated 8485# with MACRO-NAME. If any OPTION has a matching handler declared with 8486# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about 8487# the unknown option and exit. 8488m4_defun([_LT_SET_OPTIONS], 8489[# Set options 8490m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), 8491 [_LT_SET_OPTION([$1], _LT_Option)]) 8492 8493m4_if([$1],[LT_INIT],[ 8494 dnl 8495 dnl Simply set some default values (i.e off) if boolean options were not 8496 dnl specified: 8497 _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no 8498 ]) 8499 _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no 8500 ]) 8501 dnl 8502 dnl If no reference was made to various pairs of opposing options, then 8503 dnl we run the default mode handler for the pair. For example, if neither 8504 dnl 'shared' nor 'disable-shared' was passed, we enable building of shared 8505 dnl archives by default: 8506 _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED]) 8507 _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC]) 8508 _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC]) 8509 _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install], 8510 [_LT_ENABLE_FAST_INSTALL]) 8511 _LT_UNLESS_OPTIONS([LT_INIT], [aix-soname=aix aix-soname=both aix-soname=svr4], 8512 [_LT_WITH_AIX_SONAME([aix])]) 8513 ]) 8514])# _LT_SET_OPTIONS 8515 8516 8517 8518# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME) 8519# ----------------------------------------- 8520m4_define([_LT_MANGLE_DEFUN], 8521[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])]) 8522 8523 8524# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE) 8525# ----------------------------------------------- 8526m4_define([LT_OPTION_DEFINE], 8527[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl 8528])# LT_OPTION_DEFINE 8529 8530 8531# dlopen 8532# ------ 8533LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes 8534]) 8535 8536AU_DEFUN([AC_LIBTOOL_DLOPEN], 8537[_LT_SET_OPTION([LT_INIT], [dlopen]) 8538AC_DIAGNOSE([obsolete], 8539[$0: Remove this warning and the call to _LT_SET_OPTION when you 8540put the 'dlopen' option into LT_INIT's first parameter.]) 8541]) 8542 8543dnl aclocal-1.4 backwards compatibility: 8544dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], []) 8545 8546 8547# win32-dll 8548# --------- 8549# Declare package support for building win32 dll's. 8550LT_OPTION_DEFINE([LT_INIT], [win32-dll], 8551[enable_win32_dll=yes 8552 8553case $host in 8554*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 8555 AC_CHECK_TOOL(AS, as, false) 8556 AC_CHECK_TOOL(DLLTOOL, dlltool, false) 8557 AC_CHECK_TOOL(OBJDUMP, objdump, false) 8558 ;; 8559esac 8560 8561test -z "$AS" && AS=as 8562_LT_DECL([], [AS], [1], [Assembler program])dnl 8563 8564test -z "$DLLTOOL" && DLLTOOL=dlltool 8565_LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl 8566 8567test -z "$OBJDUMP" && OBJDUMP=objdump 8568_LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl 8569])# win32-dll 8570 8571AU_DEFUN([AC_LIBTOOL_WIN32_DLL], 8572[AC_REQUIRE([AC_CANONICAL_HOST])dnl 8573_LT_SET_OPTION([LT_INIT], [win32-dll]) 8574AC_DIAGNOSE([obsolete], 8575[$0: Remove this warning and the call to _LT_SET_OPTION when you 8576put the 'win32-dll' option into LT_INIT's first parameter.]) 8577]) 8578 8579dnl aclocal-1.4 backwards compatibility: 8580dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], []) 8581 8582 8583# _LT_ENABLE_SHARED([DEFAULT]) 8584# ---------------------------- 8585# implement the --enable-shared flag, and supports the 'shared' and 8586# 'disable-shared' LT_INIT options. 8587# DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'. 8588m4_define([_LT_ENABLE_SHARED], 8589[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl 8590AC_ARG_ENABLE([shared], 8591 [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@], 8592 [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])], 8593 [p=${PACKAGE-default} 8594 case $enableval in 8595 yes) enable_shared=yes ;; 8596 no) enable_shared=no ;; 8597 *) 8598 enable_shared=no 8599 # Look at the argument we got. We use all the common list separators. 8600 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8601 for pkg in $enableval; do 8602 IFS=$lt_save_ifs 8603 if test "X$pkg" = "X$p"; then 8604 enable_shared=yes 8605 fi 8606 done 8607 IFS=$lt_save_ifs 8608 ;; 8609 esac], 8610 [enable_shared=]_LT_ENABLE_SHARED_DEFAULT) 8611 8612 _LT_DECL([build_libtool_libs], [enable_shared], [0], 8613 [Whether or not to build shared libraries]) 8614])# _LT_ENABLE_SHARED 8615 8616LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])]) 8617LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])]) 8618 8619# Old names: 8620AC_DEFUN([AC_ENABLE_SHARED], 8621[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared]) 8622]) 8623 8624AC_DEFUN([AC_DISABLE_SHARED], 8625[_LT_SET_OPTION([LT_INIT], [disable-shared]) 8626]) 8627 8628AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) 8629AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) 8630 8631dnl aclocal-1.4 backwards compatibility: 8632dnl AC_DEFUN([AM_ENABLE_SHARED], []) 8633dnl AC_DEFUN([AM_DISABLE_SHARED], []) 8634 8635 8636 8637# _LT_ENABLE_STATIC([DEFAULT]) 8638# ---------------------------- 8639# implement the --enable-static flag, and support the 'static' and 8640# 'disable-static' LT_INIT options. 8641# DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'. 8642m4_define([_LT_ENABLE_STATIC], 8643[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl 8644AC_ARG_ENABLE([static], 8645 [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@], 8646 [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])], 8647 [p=${PACKAGE-default} 8648 case $enableval in 8649 yes) enable_static=yes ;; 8650 no) enable_static=no ;; 8651 *) 8652 enable_static=no 8653 # Look at the argument we got. We use all the common list separators. 8654 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8655 for pkg in $enableval; do 8656 IFS=$lt_save_ifs 8657 if test "X$pkg" = "X$p"; then 8658 enable_static=yes 8659 fi 8660 done 8661 IFS=$lt_save_ifs 8662 ;; 8663 esac], 8664 [enable_static=]_LT_ENABLE_STATIC_DEFAULT) 8665 8666 _LT_DECL([build_old_libs], [enable_static], [0], 8667 [Whether or not to build static libraries]) 8668])# _LT_ENABLE_STATIC 8669 8670LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])]) 8671LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])]) 8672 8673# Old names: 8674AC_DEFUN([AC_ENABLE_STATIC], 8675[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static]) 8676]) 8677 8678AC_DEFUN([AC_DISABLE_STATIC], 8679[_LT_SET_OPTION([LT_INIT], [disable-static]) 8680]) 8681 8682AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) 8683AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) 8684 8685dnl aclocal-1.4 backwards compatibility: 8686dnl AC_DEFUN([AM_ENABLE_STATIC], []) 8687dnl AC_DEFUN([AM_DISABLE_STATIC], []) 8688 8689 8690 8691# _LT_ENABLE_FAST_INSTALL([DEFAULT]) 8692# ---------------------------------- 8693# implement the --enable-fast-install flag, and support the 'fast-install' 8694# and 'disable-fast-install' LT_INIT options. 8695# DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'. 8696m4_define([_LT_ENABLE_FAST_INSTALL], 8697[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl 8698AC_ARG_ENABLE([fast-install], 8699 [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], 8700 [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], 8701 [p=${PACKAGE-default} 8702 case $enableval in 8703 yes) enable_fast_install=yes ;; 8704 no) enable_fast_install=no ;; 8705 *) 8706 enable_fast_install=no 8707 # Look at the argument we got. We use all the common list separators. 8708 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8709 for pkg in $enableval; do 8710 IFS=$lt_save_ifs 8711 if test "X$pkg" = "X$p"; then 8712 enable_fast_install=yes 8713 fi 8714 done 8715 IFS=$lt_save_ifs 8716 ;; 8717 esac], 8718 [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT) 8719 8720_LT_DECL([fast_install], [enable_fast_install], [0], 8721 [Whether or not to optimize for fast installation])dnl 8722])# _LT_ENABLE_FAST_INSTALL 8723 8724LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])]) 8725LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])]) 8726 8727# Old names: 8728AU_DEFUN([AC_ENABLE_FAST_INSTALL], 8729[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install]) 8730AC_DIAGNOSE([obsolete], 8731[$0: Remove this warning and the call to _LT_SET_OPTION when you put 8732the 'fast-install' option into LT_INIT's first parameter.]) 8733]) 8734 8735AU_DEFUN([AC_DISABLE_FAST_INSTALL], 8736[_LT_SET_OPTION([LT_INIT], [disable-fast-install]) 8737AC_DIAGNOSE([obsolete], 8738[$0: Remove this warning and the call to _LT_SET_OPTION when you put 8739the 'disable-fast-install' option into LT_INIT's first parameter.]) 8740]) 8741 8742dnl aclocal-1.4 backwards compatibility: 8743dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], []) 8744dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], []) 8745 8746 8747# _LT_WITH_AIX_SONAME([DEFAULT]) 8748# ---------------------------------- 8749# implement the --with-aix-soname flag, and support the `aix-soname=aix' 8750# and `aix-soname=both' and `aix-soname=svr4' LT_INIT options. DEFAULT 8751# is either `aix', `both' or `svr4'. If omitted, it defaults to `aix'. 8752m4_define([_LT_WITH_AIX_SONAME], 8753[m4_define([_LT_WITH_AIX_SONAME_DEFAULT], [m4_if($1, svr4, svr4, m4_if($1, both, both, aix))])dnl 8754shared_archive_member_spec= 8755case $host,$enable_shared in 8756power*-*-aix[[5-9]]*,yes) 8757 AC_MSG_CHECKING([which variant of shared library versioning to provide]) 8758 AC_ARG_WITH([aix-soname], 8759 [AS_HELP_STRING([--with-aix-soname=aix|svr4|both], 8760 [shared library versioning (aka "SONAME") variant to provide on AIX, @<:@default=]_LT_WITH_AIX_SONAME_DEFAULT[@:>@.])], 8761 [case $withval in 8762 aix|svr4|both) 8763 ;; 8764 *) 8765 AC_MSG_ERROR([Unknown argument to --with-aix-soname]) 8766 ;; 8767 esac 8768 lt_cv_with_aix_soname=$with_aix_soname], 8769 [AC_CACHE_VAL([lt_cv_with_aix_soname], 8770 [lt_cv_with_aix_soname=]_LT_WITH_AIX_SONAME_DEFAULT) 8771 with_aix_soname=$lt_cv_with_aix_soname]) 8772 AC_MSG_RESULT([$with_aix_soname]) 8773 if test aix != "$with_aix_soname"; then 8774 # For the AIX way of multilib, we name the shared archive member 8775 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8776 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8777 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8778 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8779 if test 64 = "${OBJECT_MODE-32}"; then 8780 shared_archive_member_spec=shr_64 8781 else 8782 shared_archive_member_spec=shr 8783 fi 8784 fi 8785 ;; 8786*) 8787 with_aix_soname=aix 8788 ;; 8789esac 8790 8791_LT_DECL([], [shared_archive_member_spec], [0], 8792 [Shared archive member basename, for filename based shared library versioning on AIX])dnl 8793])# _LT_WITH_AIX_SONAME 8794 8795LT_OPTION_DEFINE([LT_INIT], [aix-soname=aix], [_LT_WITH_AIX_SONAME([aix])]) 8796LT_OPTION_DEFINE([LT_INIT], [aix-soname=both], [_LT_WITH_AIX_SONAME([both])]) 8797LT_OPTION_DEFINE([LT_INIT], [aix-soname=svr4], [_LT_WITH_AIX_SONAME([svr4])]) 8798 8799 8800# _LT_WITH_PIC([MODE]) 8801# -------------------- 8802# implement the --with-pic flag, and support the 'pic-only' and 'no-pic' 8803# LT_INIT options. 8804# MODE is either 'yes' or 'no'. If omitted, it defaults to 'both'. 8805m4_define([_LT_WITH_PIC], 8806[AC_ARG_WITH([pic], 8807 [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@], 8808 [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], 8809 [lt_p=${PACKAGE-default} 8810 case $withval in 8811 yes|no) pic_mode=$withval ;; 8812 *) 8813 pic_mode=default 8814 # Look at the argument we got. We use all the common list separators. 8815 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8816 for lt_pkg in $withval; do 8817 IFS=$lt_save_ifs 8818 if test "X$lt_pkg" = "X$lt_p"; then 8819 pic_mode=yes 8820 fi 8821 done 8822 IFS=$lt_save_ifs 8823 ;; 8824 esac], 8825 [pic_mode=m4_default([$1], [default])]) 8826 8827_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl 8828])# _LT_WITH_PIC 8829 8830LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])]) 8831LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])]) 8832 8833# Old name: 8834AU_DEFUN([AC_LIBTOOL_PICMODE], 8835[_LT_SET_OPTION([LT_INIT], [pic-only]) 8836AC_DIAGNOSE([obsolete], 8837[$0: Remove this warning and the call to _LT_SET_OPTION when you 8838put the 'pic-only' option into LT_INIT's first parameter.]) 8839]) 8840 8841dnl aclocal-1.4 backwards compatibility: 8842dnl AC_DEFUN([AC_LIBTOOL_PICMODE], []) 8843 8844 8845m4_define([_LTDL_MODE], []) 8846LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive], 8847 [m4_define([_LTDL_MODE], [nonrecursive])]) 8848LT_OPTION_DEFINE([LTDL_INIT], [recursive], 8849 [m4_define([_LTDL_MODE], [recursive])]) 8850LT_OPTION_DEFINE([LTDL_INIT], [subproject], 8851 [m4_define([_LTDL_MODE], [subproject])]) 8852 8853m4_define([_LTDL_TYPE], []) 8854LT_OPTION_DEFINE([LTDL_INIT], [installable], 8855 [m4_define([_LTDL_TYPE], [installable])]) 8856LT_OPTION_DEFINE([LTDL_INIT], [convenience], 8857 [m4_define([_LTDL_TYPE], [convenience])]) 8858 8859# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*- 8860# 8861# Copyright (C) 2004-2005, 2007-2008, 2011-2015 Free Software 8862# Foundation, Inc. 8863# Written by Gary V. Vaughan, 2004 8864# 8865# This file is free software; the Free Software Foundation gives 8866# unlimited permission to copy and/or distribute it, with or without 8867# modifications, as long as this notice is preserved. 8868 8869# serial 6 ltsugar.m4 8870 8871# This is to help aclocal find these macros, as it can't see m4_define. 8872AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])]) 8873 8874 8875# lt_join(SEP, ARG1, [ARG2...]) 8876# ----------------------------- 8877# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their 8878# associated separator. 8879# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier 8880# versions in m4sugar had bugs. 8881m4_define([lt_join], 8882[m4_if([$#], [1], [], 8883 [$#], [2], [[$2]], 8884 [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])]) 8885m4_define([_lt_join], 8886[m4_if([$#$2], [2], [], 8887 [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])]) 8888 8889 8890# lt_car(LIST) 8891# lt_cdr(LIST) 8892# ------------ 8893# Manipulate m4 lists. 8894# These macros are necessary as long as will still need to support 8895# Autoconf-2.59, which quotes differently. 8896m4_define([lt_car], [[$1]]) 8897m4_define([lt_cdr], 8898[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])], 8899 [$#], 1, [], 8900 [m4_dquote(m4_shift($@))])]) 8901m4_define([lt_unquote], $1) 8902 8903 8904# lt_append(MACRO-NAME, STRING, [SEPARATOR]) 8905# ------------------------------------------ 8906# Redefine MACRO-NAME to hold its former content plus 'SEPARATOR''STRING'. 8907# Note that neither SEPARATOR nor STRING are expanded; they are appended 8908# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked). 8909# No SEPARATOR is output if MACRO-NAME was previously undefined (different 8910# than defined and empty). 8911# 8912# This macro is needed until we can rely on Autoconf 2.62, since earlier 8913# versions of m4sugar mistakenly expanded SEPARATOR but not STRING. 8914m4_define([lt_append], 8915[m4_define([$1], 8916 m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])]) 8917 8918 8919 8920# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...]) 8921# ---------------------------------------------------------- 8922# Produce a SEP delimited list of all paired combinations of elements of 8923# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list 8924# has the form PREFIXmINFIXSUFFIXn. 8925# Needed until we can rely on m4_combine added in Autoconf 2.62. 8926m4_define([lt_combine], 8927[m4_if(m4_eval([$# > 3]), [1], 8928 [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl 8929[[m4_foreach([_Lt_prefix], [$2], 8930 [m4_foreach([_Lt_suffix], 8931 ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[, 8932 [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])]) 8933 8934 8935# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ]) 8936# ----------------------------------------------------------------------- 8937# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited 8938# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ. 8939m4_define([lt_if_append_uniq], 8940[m4_ifdef([$1], 8941 [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1], 8942 [lt_append([$1], [$2], [$3])$4], 8943 [$5])], 8944 [lt_append([$1], [$2], [$3])$4])]) 8945 8946 8947# lt_dict_add(DICT, KEY, VALUE) 8948# ----------------------------- 8949m4_define([lt_dict_add], 8950[m4_define([$1($2)], [$3])]) 8951 8952 8953# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE) 8954# -------------------------------------------- 8955m4_define([lt_dict_add_subkey], 8956[m4_define([$1($2:$3)], [$4])]) 8957 8958 8959# lt_dict_fetch(DICT, KEY, [SUBKEY]) 8960# ---------------------------------- 8961m4_define([lt_dict_fetch], 8962[m4_ifval([$3], 8963 m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]), 8964 m4_ifdef([$1($2)], [m4_defn([$1($2)])]))]) 8965 8966 8967# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE]) 8968# ----------------------------------------------------------------- 8969m4_define([lt_if_dict_fetch], 8970[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4], 8971 [$5], 8972 [$6])]) 8973 8974 8975# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...]) 8976# -------------------------------------------------------------- 8977m4_define([lt_dict_filter], 8978[m4_if([$5], [], [], 8979 [lt_join(m4_quote(m4_default([$4], [[, ]])), 8980 lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]), 8981 [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl 8982]) 8983 8984# ltversion.m4 -- version numbers -*- Autoconf -*- 8985# 8986# Copyright (C) 2004, 2011-2015 Free Software Foundation, Inc. 8987# Written by Scott James Remnant, 2004 8988# 8989# This file is free software; the Free Software Foundation gives 8990# unlimited permission to copy and/or distribute it, with or without 8991# modifications, as long as this notice is preserved. 8992 8993# @configure_input@ 8994 8995# serial 4179 ltversion.m4 8996# This file is part of GNU Libtool 8997 8998m4_define([LT_PACKAGE_VERSION], [2.4.6]) 8999m4_define([LT_PACKAGE_REVISION], [2.4.6]) 9000 9001AC_DEFUN([LTVERSION_VERSION], 9002[macro_version='2.4.6' 9003macro_revision='2.4.6' 9004_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?]) 9005_LT_DECL(, macro_revision, 0) 9006]) 9007 9008# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*- 9009# 9010# Copyright (C) 2004-2005, 2007, 2009, 2011-2015 Free Software 9011# Foundation, Inc. 9012# Written by Scott James Remnant, 2004. 9013# 9014# This file is free software; the Free Software Foundation gives 9015# unlimited permission to copy and/or distribute it, with or without 9016# modifications, as long as this notice is preserved. 9017 9018# serial 5 lt~obsolete.m4 9019 9020# These exist entirely to fool aclocal when bootstrapping libtool. 9021# 9022# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN), 9023# which have later been changed to m4_define as they aren't part of the 9024# exported API, or moved to Autoconf or Automake where they belong. 9025# 9026# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN 9027# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us 9028# using a macro with the same name in our local m4/libtool.m4 it'll 9029# pull the old libtool.m4 in (it doesn't see our shiny new m4_define 9030# and doesn't know about Autoconf macros at all.) 9031# 9032# So we provide this file, which has a silly filename so it's always 9033# included after everything else. This provides aclocal with the 9034# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything 9035# because those macros already exist, or will be overwritten later. 9036# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6. 9037# 9038# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here. 9039# Yes, that means every name once taken will need to remain here until 9040# we give up compatibility with versions before 1.7, at which point 9041# we need to keep only those names which we still refer to. 9042 9043# This is to help aclocal find these macros, as it can't see m4_define. 9044AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])]) 9045 9046m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])]) 9047m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])]) 9048m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])]) 9049m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])]) 9050m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])]) 9051m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])]) 9052m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])]) 9053m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])]) 9054m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])]) 9055m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])]) 9056m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])]) 9057m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])]) 9058m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])]) 9059m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])]) 9060m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])]) 9061m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])]) 9062m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])]) 9063m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])]) 9064m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])]) 9065m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])]) 9066m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])]) 9067m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])]) 9068m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])]) 9069m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])]) 9070m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])]) 9071m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])]) 9072m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])]) 9073m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])]) 9074m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])]) 9075m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])]) 9076m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])]) 9077m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])]) 9078m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])]) 9079m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])]) 9080m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])]) 9081m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])]) 9082m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])]) 9083m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])]) 9084m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])]) 9085m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])]) 9086m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])]) 9087m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])]) 9088m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])]) 9089m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])]) 9090m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])]) 9091m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])]) 9092m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])]) 9093m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])]) 9094m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])]) 9095m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])]) 9096m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])]) 9097m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])]) 9098m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])]) 9099m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])]) 9100m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])]) 9101m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])]) 9102m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])]) 9103m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])]) 9104m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])]) 9105m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])]) 9106m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])]) 9107 9108# Copyright (C) 2002-2020 Free Software Foundation, Inc. 9109# 9110# This file is free software; the Free Software Foundation 9111# gives unlimited permission to copy and/or distribute it, 9112# with or without modifications, as long as this notice is preserved. 9113 9114# AM_AUTOMAKE_VERSION(VERSION) 9115# ---------------------------- 9116# Automake X.Y traces this macro to ensure aclocal.m4 has been 9117# generated from the m4 files accompanying Automake X.Y. 9118# (This private macro should not be called outside this file.) 9119AC_DEFUN([AM_AUTOMAKE_VERSION], 9120[am__api_version='1.16' 9121dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to 9122dnl require some minimum version. Point them to the right macro. 9123m4_if([$1], [1.16.2], [], 9124 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl 9125]) 9126 9127# _AM_AUTOCONF_VERSION(VERSION) 9128# ----------------------------- 9129# aclocal traces this macro to find the Autoconf version. 9130# This is a private macro too. Using m4_define simplifies 9131# the logic in aclocal, which can simply ignore this definition. 9132m4_define([_AM_AUTOCONF_VERSION], []) 9133 9134# AM_SET_CURRENT_AUTOMAKE_VERSION 9135# ------------------------------- 9136# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. 9137# This function is AC_REQUIREd by AM_INIT_AUTOMAKE. 9138AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], 9139[AM_AUTOMAKE_VERSION([1.16.2])dnl 9140m4_ifndef([AC_AUTOCONF_VERSION], 9141 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl 9142_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) 9143 9144# AM_AUX_DIR_EXPAND -*- Autoconf -*- 9145 9146# Copyright (C) 2001-2020 Free Software Foundation, Inc. 9147# 9148# This file is free software; the Free Software Foundation 9149# gives unlimited permission to copy and/or distribute it, 9150# with or without modifications, as long as this notice is preserved. 9151 9152# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets 9153# $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to 9154# '$srcdir', '$srcdir/..', or '$srcdir/../..'. 9155# 9156# Of course, Automake must honor this variable whenever it calls a 9157# tool from the auxiliary directory. The problem is that $srcdir (and 9158# therefore $ac_aux_dir as well) can be either absolute or relative, 9159# depending on how configure is run. This is pretty annoying, since 9160# it makes $ac_aux_dir quite unusable in subdirectories: in the top 9161# source directory, any form will work fine, but in subdirectories a 9162# relative path needs to be adjusted first. 9163# 9164# $ac_aux_dir/missing 9165# fails when called from a subdirectory if $ac_aux_dir is relative 9166# $top_srcdir/$ac_aux_dir/missing 9167# fails if $ac_aux_dir is absolute, 9168# fails when called from a subdirectory in a VPATH build with 9169# a relative $ac_aux_dir 9170# 9171# The reason of the latter failure is that $top_srcdir and $ac_aux_dir 9172# are both prefixed by $srcdir. In an in-source build this is usually 9173# harmless because $srcdir is '.', but things will broke when you 9174# start a VPATH build or use an absolute $srcdir. 9175# 9176# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, 9177# iff we strip the leading $srcdir from $ac_aux_dir. That would be: 9178# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` 9179# and then we would define $MISSING as 9180# MISSING="\${SHELL} $am_aux_dir/missing" 9181# This will work as long as MISSING is not called from configure, because 9182# unfortunately $(top_srcdir) has no meaning in configure. 9183# However there are other variables, like CC, which are often used in 9184# configure, and could therefore not use this "fixed" $ac_aux_dir. 9185# 9186# Another solution, used here, is to always expand $ac_aux_dir to an 9187# absolute PATH. The drawback is that using absolute paths prevent a 9188# configured tree to be moved without reconfiguration. 9189 9190AC_DEFUN([AM_AUX_DIR_EXPAND], 9191[AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl 9192# Expand $ac_aux_dir to an absolute path. 9193am_aux_dir=`cd "$ac_aux_dir" && pwd` 9194]) 9195 9196# AM_CONDITIONAL -*- Autoconf -*- 9197 9198# Copyright (C) 1997-2020 Free Software Foundation, Inc. 9199# 9200# This file is free software; the Free Software Foundation 9201# gives unlimited permission to copy and/or distribute it, 9202# with or without modifications, as long as this notice is preserved. 9203 9204# AM_CONDITIONAL(NAME, SHELL-CONDITION) 9205# ------------------------------------- 9206# Define a conditional. 9207AC_DEFUN([AM_CONDITIONAL], 9208[AC_PREREQ([2.52])dnl 9209 m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], 9210 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl 9211AC_SUBST([$1_TRUE])dnl 9212AC_SUBST([$1_FALSE])dnl 9213_AM_SUBST_NOTMAKE([$1_TRUE])dnl 9214_AM_SUBST_NOTMAKE([$1_FALSE])dnl 9215m4_define([_AM_COND_VALUE_$1], [$2])dnl 9216if $2; then 9217 $1_TRUE= 9218 $1_FALSE='#' 9219else 9220 $1_TRUE='#' 9221 $1_FALSE= 9222fi 9223AC_CONFIG_COMMANDS_PRE( 9224[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then 9225 AC_MSG_ERROR([[conditional "$1" was never defined. 9226Usually this means the macro was only invoked conditionally.]]) 9227fi])]) 9228 9229# Copyright (C) 1999-2020 Free Software Foundation, Inc. 9230# 9231# This file is free software; the Free Software Foundation 9232# gives unlimited permission to copy and/or distribute it, 9233# with or without modifications, as long as this notice is preserved. 9234 9235 9236# There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be 9237# written in clear, in which case automake, when reading aclocal.m4, 9238# will think it sees a *use*, and therefore will trigger all it's 9239# C support machinery. Also note that it means that autoscan, seeing 9240# CC etc. in the Makefile, will ask for an AC_PROG_CC use... 9241 9242 9243# _AM_DEPENDENCIES(NAME) 9244# ---------------------- 9245# See how the compiler implements dependency checking. 9246# NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC". 9247# We try a few techniques and use that to set a single cache variable. 9248# 9249# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was 9250# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular 9251# dependency, and given that the user is not expected to run this macro, 9252# just rely on AC_PROG_CC. 9253AC_DEFUN([_AM_DEPENDENCIES], 9254[AC_REQUIRE([AM_SET_DEPDIR])dnl 9255AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl 9256AC_REQUIRE([AM_MAKE_INCLUDE])dnl 9257AC_REQUIRE([AM_DEP_TRACK])dnl 9258 9259m4_if([$1], [CC], [depcc="$CC" am_compiler_list=], 9260 [$1], [CXX], [depcc="$CXX" am_compiler_list=], 9261 [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'], 9262 [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'], 9263 [$1], [UPC], [depcc="$UPC" am_compiler_list=], 9264 [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'], 9265 [depcc="$$1" am_compiler_list=]) 9266 9267AC_CACHE_CHECK([dependency style of $depcc], 9268 [am_cv_$1_dependencies_compiler_type], 9269[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 9270 # We make a subdir and do the tests there. Otherwise we can end up 9271 # making bogus files that we don't know about and never remove. For 9272 # instance it was reported that on HP-UX the gcc test will end up 9273 # making a dummy file named 'D' -- because '-MD' means "put the output 9274 # in D". 9275 rm -rf conftest.dir 9276 mkdir conftest.dir 9277 # Copy depcomp to subdir because otherwise we won't find it if we're 9278 # using a relative directory. 9279 cp "$am_depcomp" conftest.dir 9280 cd conftest.dir 9281 # We will build objects and dependencies in a subdirectory because 9282 # it helps to detect inapplicable dependency modes. For instance 9283 # both Tru64's cc and ICC support -MD to output dependencies as a 9284 # side effect of compilation, but ICC will put the dependencies in 9285 # the current directory while Tru64 will put them in the object 9286 # directory. 9287 mkdir sub 9288 9289 am_cv_$1_dependencies_compiler_type=none 9290 if test "$am_compiler_list" = ""; then 9291 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` 9292 fi 9293 am__universal=false 9294 m4_case([$1], [CC], 9295 [case " $depcc " in #( 9296 *\ -arch\ *\ -arch\ *) am__universal=true ;; 9297 esac], 9298 [CXX], 9299 [case " $depcc " in #( 9300 *\ -arch\ *\ -arch\ *) am__universal=true ;; 9301 esac]) 9302 9303 for depmode in $am_compiler_list; do 9304 # Setup a source with many dependencies, because some compilers 9305 # like to wrap large dependency lists on column 80 (with \), and 9306 # we should not choose a depcomp mode which is confused by this. 9307 # 9308 # We need to recreate these files for each test, as the compiler may 9309 # overwrite some of them when testing with obscure command lines. 9310 # This happens at least with the AIX C compiler. 9311 : > sub/conftest.c 9312 for i in 1 2 3 4 5 6; do 9313 echo '#include "conftst'$i'.h"' >> sub/conftest.c 9314 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 9315 # Solaris 10 /bin/sh. 9316 echo '/* dummy */' > sub/conftst$i.h 9317 done 9318 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 9319 9320 # We check with '-c' and '-o' for the sake of the "dashmstdout" 9321 # mode. It turns out that the SunPro C++ compiler does not properly 9322 # handle '-M -o', and we need to detect this. Also, some Intel 9323 # versions had trouble with output in subdirs. 9324 am__obj=sub/conftest.${OBJEXT-o} 9325 am__minus_obj="-o $am__obj" 9326 case $depmode in 9327 gcc) 9328 # This depmode causes a compiler race in universal mode. 9329 test "$am__universal" = false || continue 9330 ;; 9331 nosideeffect) 9332 # After this tag, mechanisms are not by side-effect, so they'll 9333 # only be used when explicitly requested. 9334 if test "x$enable_dependency_tracking" = xyes; then 9335 continue 9336 else 9337 break 9338 fi 9339 ;; 9340 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 9341 # This compiler won't grok '-c -o', but also, the minuso test has 9342 # not run yet. These depmodes are late enough in the game, and 9343 # so weak that their functioning should not be impacted. 9344 am__obj=conftest.${OBJEXT-o} 9345 am__minus_obj= 9346 ;; 9347 none) break ;; 9348 esac 9349 if depmode=$depmode \ 9350 source=sub/conftest.c object=$am__obj \ 9351 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 9352 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 9353 >/dev/null 2>conftest.err && 9354 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 9355 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 9356 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 9357 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 9358 # icc doesn't choke on unknown options, it will just issue warnings 9359 # or remarks (even with -Werror). So we grep stderr for any message 9360 # that says an option was ignored or not supported. 9361 # When given -MP, icc 7.0 and 7.1 complain thusly: 9362 # icc: Command line warning: ignoring option '-M'; no argument required 9363 # The diagnosis changed in icc 8.0: 9364 # icc: Command line remark: option '-MP' not supported 9365 if (grep 'ignoring option' conftest.err || 9366 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 9367 am_cv_$1_dependencies_compiler_type=$depmode 9368 break 9369 fi 9370 fi 9371 done 9372 9373 cd .. 9374 rm -rf conftest.dir 9375else 9376 am_cv_$1_dependencies_compiler_type=none 9377fi 9378]) 9379AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) 9380AM_CONDITIONAL([am__fastdep$1], [ 9381 test "x$enable_dependency_tracking" != xno \ 9382 && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) 9383]) 9384 9385 9386# AM_SET_DEPDIR 9387# ------------- 9388# Choose a directory name for dependency files. 9389# This macro is AC_REQUIREd in _AM_DEPENDENCIES. 9390AC_DEFUN([AM_SET_DEPDIR], 9391[AC_REQUIRE([AM_SET_LEADING_DOT])dnl 9392AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl 9393]) 9394 9395 9396# AM_DEP_TRACK 9397# ------------ 9398AC_DEFUN([AM_DEP_TRACK], 9399[AC_ARG_ENABLE([dependency-tracking], [dnl 9400AS_HELP_STRING( 9401 [--enable-dependency-tracking], 9402 [do not reject slow dependency extractors]) 9403AS_HELP_STRING( 9404 [--disable-dependency-tracking], 9405 [speeds up one-time build])]) 9406if test "x$enable_dependency_tracking" != xno; then 9407 am_depcomp="$ac_aux_dir/depcomp" 9408 AMDEPBACKSLASH='\' 9409 am__nodep='_no' 9410fi 9411AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) 9412AC_SUBST([AMDEPBACKSLASH])dnl 9413_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl 9414AC_SUBST([am__nodep])dnl 9415_AM_SUBST_NOTMAKE([am__nodep])dnl 9416]) 9417 9418# Generate code to set up dependency tracking. -*- Autoconf -*- 9419 9420# Copyright (C) 1999-2020 Free Software Foundation, Inc. 9421# 9422# This file is free software; the Free Software Foundation 9423# gives unlimited permission to copy and/or distribute it, 9424# with or without modifications, as long as this notice is preserved. 9425 9426# _AM_OUTPUT_DEPENDENCY_COMMANDS 9427# ------------------------------ 9428AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], 9429[{ 9430 # Older Autoconf quotes --file arguments for eval, but not when files 9431 # are listed without --file. Let's play safe and only enable the eval 9432 # if we detect the quoting. 9433 # TODO: see whether this extra hack can be removed once we start 9434 # requiring Autoconf 2.70 or later. 9435 AS_CASE([$CONFIG_FILES], 9436 [*\'*], [eval set x "$CONFIG_FILES"], 9437 [*], [set x $CONFIG_FILES]) 9438 shift 9439 # Used to flag and report bootstrapping failures. 9440 am_rc=0 9441 for am_mf 9442 do 9443 # Strip MF so we end up with the name of the file. 9444 am_mf=`AS_ECHO(["$am_mf"]) | sed -e 's/:.*$//'` 9445 # Check whether this is an Automake generated Makefile which includes 9446 # dependency-tracking related rules and includes. 9447 # Grep'ing the whole file directly is not great: AIX grep has a line 9448 # limit of 2048, but all sed's we know have understand at least 4000. 9449 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 9450 || continue 9451 am_dirpart=`AS_DIRNAME(["$am_mf"])` 9452 am_filepart=`AS_BASENAME(["$am_mf"])` 9453 AM_RUN_LOG([cd "$am_dirpart" \ 9454 && sed -e '/# am--include-marker/d' "$am_filepart" \ 9455 | $MAKE -f - am--depfiles]) || am_rc=$? 9456 done 9457 if test $am_rc -ne 0; then 9458 AC_MSG_FAILURE([Something went wrong bootstrapping makefile fragments 9459 for automatic dependency tracking. If GNU make was not used, consider 9460 re-running the configure script with MAKE="gmake" (or whatever is 9461 necessary). You can also try re-running configure with the 9462 '--disable-dependency-tracking' option to at least be able to build 9463 the package (albeit without support for automatic dependency tracking).]) 9464 fi 9465 AS_UNSET([am_dirpart]) 9466 AS_UNSET([am_filepart]) 9467 AS_UNSET([am_mf]) 9468 AS_UNSET([am_rc]) 9469 rm -f conftest-deps.mk 9470} 9471])# _AM_OUTPUT_DEPENDENCY_COMMANDS 9472 9473 9474# AM_OUTPUT_DEPENDENCY_COMMANDS 9475# ----------------------------- 9476# This macro should only be invoked once -- use via AC_REQUIRE. 9477# 9478# This code is only required when automatic dependency tracking is enabled. 9479# This creates each '.Po' and '.Plo' makefile fragment that we'll need in 9480# order to bootstrap the dependency handling code. 9481AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], 9482[AC_CONFIG_COMMANDS([depfiles], 9483 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], 9484 [AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"])]) 9485 9486# Do all the work for Automake. -*- Autoconf -*- 9487 9488# Copyright (C) 1996-2020 Free Software Foundation, Inc. 9489# 9490# This file is free software; the Free Software Foundation 9491# gives unlimited permission to copy and/or distribute it, 9492# with or without modifications, as long as this notice is preserved. 9493 9494# This macro actually does too much. Some checks are only needed if 9495# your package does certain things. But this isn't really a big deal. 9496 9497dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O. 9498m4_define([AC_PROG_CC], 9499m4_defn([AC_PROG_CC]) 9500[_AM_PROG_CC_C_O 9501]) 9502 9503# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) 9504# AM_INIT_AUTOMAKE([OPTIONS]) 9505# ----------------------------------------------- 9506# The call with PACKAGE and VERSION arguments is the old style 9507# call (pre autoconf-2.50), which is being phased out. PACKAGE 9508# and VERSION should now be passed to AC_INIT and removed from 9509# the call to AM_INIT_AUTOMAKE. 9510# We support both call styles for the transition. After 9511# the next Automake release, Autoconf can make the AC_INIT 9512# arguments mandatory, and then we can depend on a new Autoconf 9513# release and drop the old call support. 9514AC_DEFUN([AM_INIT_AUTOMAKE], 9515[AC_PREREQ([2.65])dnl 9516dnl Autoconf wants to disallow AM_ names. We explicitly allow 9517dnl the ones we care about. 9518m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl 9519AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl 9520AC_REQUIRE([AC_PROG_INSTALL])dnl 9521if test "`cd $srcdir && pwd`" != "`pwd`"; then 9522 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 9523 # is not polluted with repeated "-I." 9524 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl 9525 # test to see if srcdir already configured 9526 if test -f $srcdir/config.status; then 9527 AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) 9528 fi 9529fi 9530 9531# test whether we have cygpath 9532if test -z "$CYGPATH_W"; then 9533 if (cygpath --version) >/dev/null 2>/dev/null; then 9534 CYGPATH_W='cygpath -w' 9535 else 9536 CYGPATH_W=echo 9537 fi 9538fi 9539AC_SUBST([CYGPATH_W]) 9540 9541# Define the identity of the package. 9542dnl Distinguish between old-style and new-style calls. 9543m4_ifval([$2], 9544[AC_DIAGNOSE([obsolete], 9545 [$0: two- and three-arguments forms are deprecated.]) 9546m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl 9547 AC_SUBST([PACKAGE], [$1])dnl 9548 AC_SUBST([VERSION], [$2])], 9549[_AM_SET_OPTIONS([$1])dnl 9550dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. 9551m4_if( 9552 m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]), 9553 [ok:ok],, 9554 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl 9555 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl 9556 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl 9557 9558_AM_IF_OPTION([no-define],, 9559[AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package]) 9560 AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl 9561 9562# Some tools Automake needs. 9563AC_REQUIRE([AM_SANITY_CHECK])dnl 9564AC_REQUIRE([AC_ARG_PROGRAM])dnl 9565AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}]) 9566AM_MISSING_PROG([AUTOCONF], [autoconf]) 9567AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}]) 9568AM_MISSING_PROG([AUTOHEADER], [autoheader]) 9569AM_MISSING_PROG([MAKEINFO], [makeinfo]) 9570AC_REQUIRE([AM_PROG_INSTALL_SH])dnl 9571AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl 9572AC_REQUIRE([AC_PROG_MKDIR_P])dnl 9573# For better backward compatibility. To be removed once Automake 1.9.x 9574# dies out for good. For more background, see: 9575# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 9576# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 9577AC_SUBST([mkdir_p], ['$(MKDIR_P)']) 9578# We need awk for the "check" target (and possibly the TAP driver). The 9579# system "awk" is bad on some platforms. 9580AC_REQUIRE([AC_PROG_AWK])dnl 9581AC_REQUIRE([AC_PROG_MAKE_SET])dnl 9582AC_REQUIRE([AM_SET_LEADING_DOT])dnl 9583_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], 9584 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], 9585 [_AM_PROG_TAR([v7])])]) 9586_AM_IF_OPTION([no-dependencies],, 9587[AC_PROVIDE_IFELSE([AC_PROG_CC], 9588 [_AM_DEPENDENCIES([CC])], 9589 [m4_define([AC_PROG_CC], 9590 m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl 9591AC_PROVIDE_IFELSE([AC_PROG_CXX], 9592 [_AM_DEPENDENCIES([CXX])], 9593 [m4_define([AC_PROG_CXX], 9594 m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl 9595AC_PROVIDE_IFELSE([AC_PROG_OBJC], 9596 [_AM_DEPENDENCIES([OBJC])], 9597 [m4_define([AC_PROG_OBJC], 9598 m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl 9599AC_PROVIDE_IFELSE([AC_PROG_OBJCXX], 9600 [_AM_DEPENDENCIES([OBJCXX])], 9601 [m4_define([AC_PROG_OBJCXX], 9602 m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl 9603]) 9604AC_REQUIRE([AM_SILENT_RULES])dnl 9605dnl The testsuite driver may need to know about EXEEXT, so add the 9606dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This 9607dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below. 9608AC_CONFIG_COMMANDS_PRE(dnl 9609[m4_provide_if([_AM_COMPILER_EXEEXT], 9610 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl 9611 9612# POSIX will say in a future version that running "rm -f" with no argument 9613# is OK; and we want to be able to make that assumption in our Makefile 9614# recipes. So use an aggressive probe to check that the usage we want is 9615# actually supported "in the wild" to an acceptable degree. 9616# See automake bug#10828. 9617# To make any issue more visible, cause the running configure to be aborted 9618# by default if the 'rm' program in use doesn't match our expectations; the 9619# user can still override this though. 9620if rm -f && rm -fr && rm -rf; then : OK; else 9621 cat >&2 <<'END' 9622Oops! 9623 9624Your 'rm' program seems unable to run without file operands specified 9625on the command line, even when the '-f' option is present. This is contrary 9626to the behaviour of most rm programs out there, and not conforming with 9627the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 9628 9629Please tell bug-automake@gnu.org about your system, including the value 9630of your $PATH and any error possibly output before this message. This 9631can help us improve future automake versions. 9632 9633END 9634 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 9635 echo 'Configuration will proceed anyway, since you have set the' >&2 9636 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 9637 echo >&2 9638 else 9639 cat >&2 <<'END' 9640Aborting the configuration process, to ensure you take notice of the issue. 9641 9642You can download and install GNU coreutils to get an 'rm' implementation 9643that behaves properly: <https://www.gnu.org/software/coreutils/>. 9644 9645If you want to complete the configuration process using your problematic 9646'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 9647to "yes", and re-run configure. 9648 9649END 9650 AC_MSG_ERROR([Your 'rm' program is bad, sorry.]) 9651 fi 9652fi 9653dnl The trailing newline in this macro's definition is deliberate, for 9654dnl backward compatibility and to allow trailing 'dnl'-style comments 9655dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841. 9656]) 9657 9658dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not 9659dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further 9660dnl mangled by Autoconf and run in a shell conditional statement. 9661m4_define([_AC_COMPILER_EXEEXT], 9662m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) 9663 9664# When config.status generates a header, we must update the stamp-h file. 9665# This file resides in the same directory as the config header 9666# that is generated. The stamp files are numbered to have different names. 9667 9668# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the 9669# loop where config.status creates the headers, so we can generate 9670# our stamp files there. 9671AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], 9672[# Compute $1's index in $config_headers. 9673_am_arg=$1 9674_am_stamp_count=1 9675for _am_header in $config_headers :; do 9676 case $_am_header in 9677 $_am_arg | $_am_arg:* ) 9678 break ;; 9679 * ) 9680 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 9681 esac 9682done 9683echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) 9684 9685# Copyright (C) 2001-2020 Free Software Foundation, Inc. 9686# 9687# This file is free software; the Free Software Foundation 9688# gives unlimited permission to copy and/or distribute it, 9689# with or without modifications, as long as this notice is preserved. 9690 9691# AM_PROG_INSTALL_SH 9692# ------------------ 9693# Define $install_sh. 9694AC_DEFUN([AM_PROG_INSTALL_SH], 9695[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 9696if test x"${install_sh+set}" != xset; then 9697 case $am_aux_dir in 9698 *\ * | *\ *) 9699 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 9700 *) 9701 install_sh="\${SHELL} $am_aux_dir/install-sh" 9702 esac 9703fi 9704AC_SUBST([install_sh])]) 9705 9706# Copyright (C) 2003-2020 Free Software Foundation, Inc. 9707# 9708# This file is free software; the Free Software Foundation 9709# gives unlimited permission to copy and/or distribute it, 9710# with or without modifications, as long as this notice is preserved. 9711 9712# Check whether the underlying file-system supports filenames 9713# with a leading dot. For instance MS-DOS doesn't. 9714AC_DEFUN([AM_SET_LEADING_DOT], 9715[rm -rf .tst 2>/dev/null 9716mkdir .tst 2>/dev/null 9717if test -d .tst; then 9718 am__leading_dot=. 9719else 9720 am__leading_dot=_ 9721fi 9722rmdir .tst 2>/dev/null 9723AC_SUBST([am__leading_dot])]) 9724 9725# Check to see how 'make' treats includes. -*- Autoconf -*- 9726 9727# Copyright (C) 2001-2020 Free Software Foundation, Inc. 9728# 9729# This file is free software; the Free Software Foundation 9730# gives unlimited permission to copy and/or distribute it, 9731# with or without modifications, as long as this notice is preserved. 9732 9733# AM_MAKE_INCLUDE() 9734# ----------------- 9735# Check whether make has an 'include' directive that can support all 9736# the idioms we need for our automatic dependency tracking code. 9737AC_DEFUN([AM_MAKE_INCLUDE], 9738[AC_MSG_CHECKING([whether ${MAKE-make} supports the include directive]) 9739cat > confinc.mk << 'END' 9740am__doit: 9741 @echo this is the am__doit target >confinc.out 9742.PHONY: am__doit 9743END 9744am__include="#" 9745am__quote= 9746# BSD make does it like this. 9747echo '.include "confinc.mk" # ignored' > confmf.BSD 9748# Other make implementations (GNU, Solaris 10, AIX) do it like this. 9749echo 'include confinc.mk # ignored' > confmf.GNU 9750_am_result=no 9751for s in GNU BSD; do 9752 AM_RUN_LOG([${MAKE-make} -f confmf.$s && cat confinc.out]) 9753 AS_CASE([$?:`cat confinc.out 2>/dev/null`], 9754 ['0:this is the am__doit target'], 9755 [AS_CASE([$s], 9756 [BSD], [am__include='.include' am__quote='"'], 9757 [am__include='include' am__quote=''])]) 9758 if test "$am__include" != "#"; then 9759 _am_result="yes ($s style)" 9760 break 9761 fi 9762done 9763rm -f confinc.* confmf.* 9764AC_MSG_RESULT([${_am_result}]) 9765AC_SUBST([am__include])]) 9766AC_SUBST([am__quote])]) 9767 9768# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- 9769 9770# Copyright (C) 1997-2020 Free Software Foundation, Inc. 9771# 9772# This file is free software; the Free Software Foundation 9773# gives unlimited permission to copy and/or distribute it, 9774# with or without modifications, as long as this notice is preserved. 9775 9776# AM_MISSING_PROG(NAME, PROGRAM) 9777# ------------------------------ 9778AC_DEFUN([AM_MISSING_PROG], 9779[AC_REQUIRE([AM_MISSING_HAS_RUN]) 9780$1=${$1-"${am_missing_run}$2"} 9781AC_SUBST($1)]) 9782 9783# AM_MISSING_HAS_RUN 9784# ------------------ 9785# Define MISSING if not defined so far and test if it is modern enough. 9786# If it is, set am_missing_run to use it, otherwise, to nothing. 9787AC_DEFUN([AM_MISSING_HAS_RUN], 9788[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 9789AC_REQUIRE_AUX_FILE([missing])dnl 9790if test x"${MISSING+set}" != xset; then 9791 case $am_aux_dir in 9792 *\ * | *\ *) 9793 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 9794 *) 9795 MISSING="\${SHELL} $am_aux_dir/missing" ;; 9796 esac 9797fi 9798# Use eval to expand $SHELL 9799if eval "$MISSING --is-lightweight"; then 9800 am_missing_run="$MISSING " 9801else 9802 am_missing_run= 9803 AC_MSG_WARN(['missing' script is too old or missing]) 9804fi 9805]) 9806 9807# Helper functions for option handling. -*- Autoconf -*- 9808 9809# Copyright (C) 2001-2020 Free Software Foundation, Inc. 9810# 9811# This file is free software; the Free Software Foundation 9812# gives unlimited permission to copy and/or distribute it, 9813# with or without modifications, as long as this notice is preserved. 9814 9815# _AM_MANGLE_OPTION(NAME) 9816# ----------------------- 9817AC_DEFUN([_AM_MANGLE_OPTION], 9818[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) 9819 9820# _AM_SET_OPTION(NAME) 9821# -------------------- 9822# Set option NAME. Presently that only means defining a flag for this option. 9823AC_DEFUN([_AM_SET_OPTION], 9824[m4_define(_AM_MANGLE_OPTION([$1]), [1])]) 9825 9826# _AM_SET_OPTIONS(OPTIONS) 9827# ------------------------ 9828# OPTIONS is a space-separated list of Automake options. 9829AC_DEFUN([_AM_SET_OPTIONS], 9830[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) 9831 9832# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) 9833# ------------------------------------------- 9834# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. 9835AC_DEFUN([_AM_IF_OPTION], 9836[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) 9837 9838# Copyright (C) 1999-2020 Free Software Foundation, Inc. 9839# 9840# This file is free software; the Free Software Foundation 9841# gives unlimited permission to copy and/or distribute it, 9842# with or without modifications, as long as this notice is preserved. 9843 9844# _AM_PROG_CC_C_O 9845# --------------- 9846# Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC 9847# to automatically call this. 9848AC_DEFUN([_AM_PROG_CC_C_O], 9849[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 9850AC_REQUIRE_AUX_FILE([compile])dnl 9851AC_LANG_PUSH([C])dnl 9852AC_CACHE_CHECK( 9853 [whether $CC understands -c and -o together], 9854 [am_cv_prog_cc_c_o], 9855 [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])]) 9856 # Make sure it works both with $CC and with simple cc. 9857 # Following AC_PROG_CC_C_O, we do the test twice because some 9858 # compilers refuse to overwrite an existing .o file with -o, 9859 # though they will create one. 9860 am_cv_prog_cc_c_o=yes 9861 for am_i in 1 2; do 9862 if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \ 9863 && test -f conftest2.$ac_objext; then 9864 : OK 9865 else 9866 am_cv_prog_cc_c_o=no 9867 break 9868 fi 9869 done 9870 rm -f core conftest* 9871 unset am_i]) 9872if test "$am_cv_prog_cc_c_o" != yes; then 9873 # Losing compiler, so override with the script. 9874 # FIXME: It is wrong to rewrite CC. 9875 # But if we don't then we get into trouble of one sort or another. 9876 # A longer-term fix would be to have automake use am__CC in this case, 9877 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 9878 CC="$am_aux_dir/compile $CC" 9879fi 9880AC_LANG_POP([C])]) 9881 9882# For backward compatibility. 9883AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])]) 9884 9885# Copyright (C) 2001-2020 Free Software Foundation, Inc. 9886# 9887# This file is free software; the Free Software Foundation 9888# gives unlimited permission to copy and/or distribute it, 9889# with or without modifications, as long as this notice is preserved. 9890 9891# AM_RUN_LOG(COMMAND) 9892# ------------------- 9893# Run COMMAND, save the exit status in ac_status, and log it. 9894# (This has been adapted from Autoconf's _AC_RUN_LOG macro.) 9895AC_DEFUN([AM_RUN_LOG], 9896[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD 9897 ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD 9898 ac_status=$? 9899 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 9900 (exit $ac_status); }]) 9901 9902# Check to make sure that the build environment is sane. -*- Autoconf -*- 9903 9904# Copyright (C) 1996-2020 Free Software Foundation, Inc. 9905# 9906# This file is free software; the Free Software Foundation 9907# gives unlimited permission to copy and/or distribute it, 9908# with or without modifications, as long as this notice is preserved. 9909 9910# AM_SANITY_CHECK 9911# --------------- 9912AC_DEFUN([AM_SANITY_CHECK], 9913[AC_MSG_CHECKING([whether build environment is sane]) 9914# Reject unsafe characters in $srcdir or the absolute working directory 9915# name. Accept space and tab only in the latter. 9916am_lf=' 9917' 9918case `pwd` in 9919 *[[\\\"\#\$\&\'\`$am_lf]]*) 9920 AC_MSG_ERROR([unsafe absolute working directory name]);; 9921esac 9922case $srcdir in 9923 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) 9924 AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);; 9925esac 9926 9927# Do 'set' in a subshell so we don't clobber the current shell's 9928# arguments. Must try -L first in case configure is actually a 9929# symlink; some systems play weird games with the mod time of symlinks 9930# (eg FreeBSD returns the mod time of the symlink's containing 9931# directory). 9932if ( 9933 am_has_slept=no 9934 for am_try in 1 2; do 9935 echo "timestamp, slept: $am_has_slept" > conftest.file 9936 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 9937 if test "$[*]" = "X"; then 9938 # -L didn't work. 9939 set X `ls -t "$srcdir/configure" conftest.file` 9940 fi 9941 if test "$[*]" != "X $srcdir/configure conftest.file" \ 9942 && test "$[*]" != "X conftest.file $srcdir/configure"; then 9943 9944 # If neither matched, then we have a broken ls. This can happen 9945 # if, for instance, CONFIG_SHELL is bash and it inherits a 9946 # broken ls alias from the environment. This has actually 9947 # happened. Such a system could not be considered "sane". 9948 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken 9949 alias in your environment]) 9950 fi 9951 if test "$[2]" = conftest.file || test $am_try -eq 2; then 9952 break 9953 fi 9954 # Just in case. 9955 sleep 1 9956 am_has_slept=yes 9957 done 9958 test "$[2]" = conftest.file 9959 ) 9960then 9961 # Ok. 9962 : 9963else 9964 AC_MSG_ERROR([newly created file is older than distributed files! 9965Check your system clock]) 9966fi 9967AC_MSG_RESULT([yes]) 9968# If we didn't sleep, we still need to ensure time stamps of config.status and 9969# generated files are strictly newer. 9970am_sleep_pid= 9971if grep 'slept: no' conftest.file >/dev/null 2>&1; then 9972 ( sleep 1 ) & 9973 am_sleep_pid=$! 9974fi 9975AC_CONFIG_COMMANDS_PRE( 9976 [AC_MSG_CHECKING([that generated files are newer than configure]) 9977 if test -n "$am_sleep_pid"; then 9978 # Hide warnings about reused PIDs. 9979 wait $am_sleep_pid 2>/dev/null 9980 fi 9981 AC_MSG_RESULT([done])]) 9982rm -f conftest.file 9983]) 9984 9985# Copyright (C) 2009-2020 Free Software Foundation, Inc. 9986# 9987# This file is free software; the Free Software Foundation 9988# gives unlimited permission to copy and/or distribute it, 9989# with or without modifications, as long as this notice is preserved. 9990 9991# AM_SILENT_RULES([DEFAULT]) 9992# -------------------------- 9993# Enable less verbose build rules; with the default set to DEFAULT 9994# ("yes" being less verbose, "no" or empty being verbose). 9995AC_DEFUN([AM_SILENT_RULES], 9996[AC_ARG_ENABLE([silent-rules], [dnl 9997AS_HELP_STRING( 9998 [--enable-silent-rules], 9999 [less verbose build output (undo: "make V=1")]) 10000AS_HELP_STRING( 10001 [--disable-silent-rules], 10002 [verbose build output (undo: "make V=0")])dnl 10003]) 10004case $enable_silent_rules in @%:@ ((( 10005 yes) AM_DEFAULT_VERBOSITY=0;; 10006 no) AM_DEFAULT_VERBOSITY=1;; 10007 *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);; 10008esac 10009dnl 10010dnl A few 'make' implementations (e.g., NonStop OS and NextStep) 10011dnl do not support nested variable expansions. 10012dnl See automake bug#9928 and bug#10237. 10013am_make=${MAKE-make} 10014AC_CACHE_CHECK([whether $am_make supports nested variables], 10015 [am_cv_make_support_nested_variables], 10016 [if AS_ECHO([['TRUE=$(BAR$(V)) 10017BAR0=false 10018BAR1=true 10019V=1 10020am__doit: 10021 @$(TRUE) 10022.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then 10023 am_cv_make_support_nested_variables=yes 10024else 10025 am_cv_make_support_nested_variables=no 10026fi]) 10027if test $am_cv_make_support_nested_variables = yes; then 10028 dnl Using '$V' instead of '$(V)' breaks IRIX make. 10029 AM_V='$(V)' 10030 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 10031else 10032 AM_V=$AM_DEFAULT_VERBOSITY 10033 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 10034fi 10035AC_SUBST([AM_V])dnl 10036AM_SUBST_NOTMAKE([AM_V])dnl 10037AC_SUBST([AM_DEFAULT_V])dnl 10038AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl 10039AC_SUBST([AM_DEFAULT_VERBOSITY])dnl 10040AM_BACKSLASH='\' 10041AC_SUBST([AM_BACKSLASH])dnl 10042_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl 10043]) 10044 10045# Copyright (C) 2001-2020 Free Software Foundation, Inc. 10046# 10047# This file is free software; the Free Software Foundation 10048# gives unlimited permission to copy and/or distribute it, 10049# with or without modifications, as long as this notice is preserved. 10050 10051# AM_PROG_INSTALL_STRIP 10052# --------------------- 10053# One issue with vendor 'install' (even GNU) is that you can't 10054# specify the program used to strip binaries. This is especially 10055# annoying in cross-compiling environments, where the build's strip 10056# is unlikely to handle the host's binaries. 10057# Fortunately install-sh will honor a STRIPPROG variable, so we 10058# always use install-sh in "make install-strip", and initialize 10059# STRIPPROG with the value of the STRIP variable (set by the user). 10060AC_DEFUN([AM_PROG_INSTALL_STRIP], 10061[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl 10062# Installed binaries are usually stripped using 'strip' when the user 10063# run "make install-strip". However 'strip' might not be the right 10064# tool to use in cross-compilation environments, therefore Automake 10065# will honor the 'STRIP' environment variable to overrule this program. 10066dnl Don't test for $cross_compiling = yes, because it might be 'maybe'. 10067if test "$cross_compiling" != no; then 10068 AC_CHECK_TOOL([STRIP], [strip], :) 10069fi 10070INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 10071AC_SUBST([INSTALL_STRIP_PROGRAM])]) 10072 10073# Copyright (C) 2006-2020 Free Software Foundation, Inc. 10074# 10075# This file is free software; the Free Software Foundation 10076# gives unlimited permission to copy and/or distribute it, 10077# with or without modifications, as long as this notice is preserved. 10078 10079# _AM_SUBST_NOTMAKE(VARIABLE) 10080# --------------------------- 10081# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. 10082# This macro is traced by Automake. 10083AC_DEFUN([_AM_SUBST_NOTMAKE]) 10084 10085# AM_SUBST_NOTMAKE(VARIABLE) 10086# -------------------------- 10087# Public sister of _AM_SUBST_NOTMAKE. 10088AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) 10089 10090# Check how to create a tarball. -*- Autoconf -*- 10091 10092# Copyright (C) 2004-2020 Free Software Foundation, Inc. 10093# 10094# This file is free software; the Free Software Foundation 10095# gives unlimited permission to copy and/or distribute it, 10096# with or without modifications, as long as this notice is preserved. 10097 10098# _AM_PROG_TAR(FORMAT) 10099# -------------------- 10100# Check how to create a tarball in format FORMAT. 10101# FORMAT should be one of 'v7', 'ustar', or 'pax'. 10102# 10103# Substitute a variable $(am__tar) that is a command 10104# writing to stdout a FORMAT-tarball containing the directory 10105# $tardir. 10106# tardir=directory && $(am__tar) > result.tar 10107# 10108# Substitute a variable $(am__untar) that extract such 10109# a tarball read from stdin. 10110# $(am__untar) < result.tar 10111# 10112AC_DEFUN([_AM_PROG_TAR], 10113[# Always define AMTAR for backward compatibility. Yes, it's still used 10114# in the wild :-( We should find a proper way to deprecate it ... 10115AC_SUBST([AMTAR], ['$${TAR-tar}']) 10116 10117# We'll loop over all known methods to create a tar archive until one works. 10118_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' 10119 10120m4_if([$1], [v7], 10121 [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'], 10122 10123 [m4_case([$1], 10124 [ustar], 10125 [# The POSIX 1988 'ustar' format is defined with fixed-size fields. 10126 # There is notably a 21 bits limit for the UID and the GID. In fact, 10127 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 10128 # and bug#13588). 10129 am_max_uid=2097151 # 2^21 - 1 10130 am_max_gid=$am_max_uid 10131 # The $UID and $GID variables are not portable, so we need to resort 10132 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls 10133 # below are definitely unexpected, so allow the users to see them 10134 # (that is, avoid stderr redirection). 10135 am_uid=`id -u || echo unknown` 10136 am_gid=`id -g || echo unknown` 10137 AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format]) 10138 if test $am_uid -le $am_max_uid; then 10139 AC_MSG_RESULT([yes]) 10140 else 10141 AC_MSG_RESULT([no]) 10142 _am_tools=none 10143 fi 10144 AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format]) 10145 if test $am_gid -le $am_max_gid; then 10146 AC_MSG_RESULT([yes]) 10147 else 10148 AC_MSG_RESULT([no]) 10149 _am_tools=none 10150 fi], 10151 10152 [pax], 10153 [], 10154 10155 [m4_fatal([Unknown tar format])]) 10156 10157 AC_MSG_CHECKING([how to create a $1 tar archive]) 10158 10159 # Go ahead even if we have the value already cached. We do so because we 10160 # need to set the values for the 'am__tar' and 'am__untar' variables. 10161 _am_tools=${am_cv_prog_tar_$1-$_am_tools} 10162 10163 for _am_tool in $_am_tools; do 10164 case $_am_tool in 10165 gnutar) 10166 for _am_tar in tar gnutar gtar; do 10167 AM_RUN_LOG([$_am_tar --version]) && break 10168 done 10169 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' 10170 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' 10171 am__untar="$_am_tar -xf -" 10172 ;; 10173 plaintar) 10174 # Must skip GNU tar: if it does not support --format= it doesn't create 10175 # ustar tarball either. 10176 (tar --version) >/dev/null 2>&1 && continue 10177 am__tar='tar chf - "$$tardir"' 10178 am__tar_='tar chf - "$tardir"' 10179 am__untar='tar xf -' 10180 ;; 10181 pax) 10182 am__tar='pax -L -x $1 -w "$$tardir"' 10183 am__tar_='pax -L -x $1 -w "$tardir"' 10184 am__untar='pax -r' 10185 ;; 10186 cpio) 10187 am__tar='find "$$tardir" -print | cpio -o -H $1 -L' 10188 am__tar_='find "$tardir" -print | cpio -o -H $1 -L' 10189 am__untar='cpio -i -H $1 -d' 10190 ;; 10191 none) 10192 am__tar=false 10193 am__tar_=false 10194 am__untar=false 10195 ;; 10196 esac 10197 10198 # If the value was cached, stop now. We just wanted to have am__tar 10199 # and am__untar set. 10200 test -n "${am_cv_prog_tar_$1}" && break 10201 10202 # tar/untar a dummy directory, and stop if the command works. 10203 rm -rf conftest.dir 10204 mkdir conftest.dir 10205 echo GrepMe > conftest.dir/file 10206 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) 10207 rm -rf conftest.dir 10208 if test -s conftest.tar; then 10209 AM_RUN_LOG([$am__untar <conftest.tar]) 10210 AM_RUN_LOG([cat conftest.dir/file]) 10211 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 10212 fi 10213 done 10214 rm -rf conftest.dir 10215 10216 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) 10217 AC_MSG_RESULT([$am_cv_prog_tar_$1])]) 10218 10219AC_SUBST([am__tar]) 10220AC_SUBST([am__untar]) 10221]) # _AM_PROG_TAR 10222 10223