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