libtool.m4 (246e7a2b6494cd991b08ac669ed761ecea0cc98c) | libtool.m4 (d38c30c092828f4882ce13b08d0bd3fd6dc7afb5) |
---|---|
1# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- 2# | 1# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- 2# |
3# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 4# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 5# Foundation, Inc. | 3# Copyright (C) 1996-2001, 2003-2015 Free Software Foundation, Inc. |
6# Written by Gordon Matzigkeit, 1996 7# 8# This file is free software; the Free Software Foundation gives 9# unlimited permission to copy and/or distribute it, with or without 10# modifications, as long as this notice is preserved. 11 12m4_define([_LT_COPYING], [dnl | 4# Written by Gordon Matzigkeit, 1996 5# 6# This file is free software; the Free Software Foundation gives 7# unlimited permission to copy and/or distribute it, with or without 8# modifications, as long as this notice is preserved. 9 10m4_define([_LT_COPYING], [dnl |
13# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 14# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 15# Foundation, Inc. 16# Written by Gordon Matzigkeit, 1996 | 11# Copyright (C) 2014 Free Software Foundation, Inc. 12# This is free software; see the source for copying conditions. There is NO 13# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 14 15# GNU Libtool is free software; you can redistribute it and/or modify 16# it under the terms of the GNU General Public License as published by 17# the Free Software Foundation; either version 2 of of the License, or 18# (at your option) any later version. |
17# | 19# |
18# This file is part of GNU Libtool. | 20# As a special exception to the GNU General Public License, if you 21# distribute this file as part of a program or library that is built 22# using GNU Libtool, you may include this file under the same 23# distribution terms that you use for the rest of that program. |
19# | 24# |
20# GNU Libtool is free software; you can redistribute it and/or 21# modify it under the terms of the GNU General Public License as 22# published by the Free Software Foundation; either version 2 of 23# the License, or (at your option) any later version. 24# 25# As a special exception to the GNU General Public License, 26# if you distribute this file as part of a program or library that 27# is built using GNU Libtool, you may include this file under the 28# same distribution terms that you use for the rest of that program. 29# 30# GNU Libtool is distributed in the hope that it will be useful, 31# but WITHOUT ANY WARRANTY; without even the implied warranty of | 25# GNU Libtool is distributed in the hope that it will be useful, but 26# WITHOUT ANY WARRANTY; without even the implied warranty of |
32# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 33# GNU General Public License for more details. 34# 35# You should have received a copy of the GNU General Public License | 27# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 28# GNU General Public License for more details. 29# 30# You should have received a copy of the GNU General Public License |
36# along with GNU Libtool; see the file COPYING. If not, a copy 37# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 38# obtained by writing to the Free Software Foundation, Inc., 39# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | 31# along with this program. If not, see <http://www.gnu.org/licenses/>. |
40]) 41 | 32]) 33 |
42# serial 57 LT_INIT | 34# serial 58 LT_INIT |
43 44 45# LT_PREREQ(VERSION) 46# ------------------ 47# Complain and exit if this libtool version is less that VERSION. 48m4_defun([LT_PREREQ], 49[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1, 50 [m4_default([$3], --- 11 unchanged lines hidden (view full) --- 62 AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;; 63esac 64]) 65 66 67# LT_INIT([OPTIONS]) 68# ------------------ 69AC_DEFUN([LT_INIT], | 35 36 37# LT_PREREQ(VERSION) 38# ------------------ 39# Complain and exit if this libtool version is less that VERSION. 40m4_defun([LT_PREREQ], 41[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1, 42 [m4_default([$3], --- 11 unchanged lines hidden (view full) --- 54 AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;; 55esac 56]) 57 58 59# LT_INIT([OPTIONS]) 60# ------------------ 61AC_DEFUN([LT_INIT], |
70[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT | 62[AC_PREREQ([2.62])dnl We use AC_PATH_PROGS_FEATURE_CHECK |
71AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl 72AC_BEFORE([$0], [LT_LANG])dnl 73AC_BEFORE([$0], [LT_OUTPUT])dnl 74AC_BEFORE([$0], [LTDL_INIT])dnl 75m4_require([_LT_CHECK_BUILDDIR])dnl 76 77dnl Autoconf doesn't catch unexpanded LT_ macros by default: 78m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl --- 7 unchanged lines hidden (view full) --- 86m4_require([_LT_PROG_LTMAIN])dnl 87 88_LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}]) 89 90dnl Parse OPTIONS 91_LT_SET_OPTIONS([$0], [$1]) 92 93# This can be used to rebuild libtool when needed | 63AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl 64AC_BEFORE([$0], [LT_LANG])dnl 65AC_BEFORE([$0], [LT_OUTPUT])dnl 66AC_BEFORE([$0], [LTDL_INIT])dnl 67m4_require([_LT_CHECK_BUILDDIR])dnl 68 69dnl Autoconf doesn't catch unexpanded LT_ macros by default: 70m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl --- 7 unchanged lines hidden (view full) --- 78m4_require([_LT_PROG_LTMAIN])dnl 79 80_LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}]) 81 82dnl Parse OPTIONS 83_LT_SET_OPTIONS([$0], [$1]) 84 85# This can be used to rebuild libtool when needed |
94LIBTOOL_DEPS="$ltmain" | 86LIBTOOL_DEPS=$ltmain |
95 96# Always use our own libtool. 97LIBTOOL='$(SHELL) $(top_builddir)/libtool' 98AC_SUBST(LIBTOOL)dnl 99 100_LT_SETUP 101 102# Only expand once: 103m4_define([LT_INIT]) 104])# LT_INIT 105 106# Old names: 107AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT]) 108AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT]) 109dnl aclocal-1.4 backwards compatibility: 110dnl AC_DEFUN([AC_PROG_LIBTOOL], []) 111dnl AC_DEFUN([AM_PROG_LIBTOOL], []) 112 113 | 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_PREPARE_CC_BASENAME 107# ----------------------- 108m4_defun([_LT_PREPARE_CC_BASENAME], [ 109# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 110func_cc_basename () 111{ 112 for cc_temp in @S|@*""; do 113 case $cc_temp in 114 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; 115 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; 116 \-*) ;; 117 *) break;; 118 esac 119 done 120 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 121} 122])# _LT_PREPARE_CC_BASENAME 123 124 |
|
114# _LT_CC_BASENAME(CC) 115# ------------------- | 125# _LT_CC_BASENAME(CC) 126# ------------------- |
116# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. | 127# It would be clearer to call AC_REQUIREs from _LT_PREPARE_CC_BASENAME, 128# but that macro is also expanded into generated libtool script, which 129# arranges for $SED and $ECHO to be set by different means. |
117m4_defun([_LT_CC_BASENAME], | 130m4_defun([_LT_CC_BASENAME], |
118[for cc_temp in $1""; do 119 case $cc_temp in 120 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; 121 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; 122 \-*) ;; 123 *) break;; 124 esac 125done 126cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | 131[m4_require([_LT_PREPARE_CC_BASENAME])dnl 132AC_REQUIRE([_LT_DECL_SED])dnl 133AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl 134func_cc_basename $1 135cc_basename=$func_cc_basename_result |
127]) 128 129 130# _LT_FILEUTILS_DEFAULTS 131# ---------------------- 132# It is okay to use these file commands and assume they have been set | 136]) 137 138 139# _LT_FILEUTILS_DEFAULTS 140# ---------------------- 141# It is okay to use these file commands and assume they have been set |
133# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'. | 142# sensibly after 'm4_require([_LT_FILEUTILS_DEFAULTS])'. |
134m4_defun([_LT_FILEUTILS_DEFAULTS], 135[: ${CP="cp -f"} 136: ${MV="mv -f"} 137: ${RM="rm -f"} 138])# _LT_FILEUTILS_DEFAULTS 139 140 141# _LT_SETUP --- 30 unchanged lines hidden (view full) --- 172m4_require([_LT_CHECK_SHELL_FEATURES])dnl 173m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl 174m4_require([_LT_CMD_RELOAD])dnl 175m4_require([_LT_CHECK_MAGIC_METHOD])dnl 176m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl 177m4_require([_LT_CMD_OLD_ARCHIVE])dnl 178m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl 179m4_require([_LT_WITH_SYSROOT])dnl | 143m4_defun([_LT_FILEUTILS_DEFAULTS], 144[: ${CP="cp -f"} 145: ${MV="mv -f"} 146: ${RM="rm -f"} 147])# _LT_FILEUTILS_DEFAULTS 148 149 150# _LT_SETUP --- 30 unchanged lines hidden (view full) --- 181m4_require([_LT_CHECK_SHELL_FEATURES])dnl 182m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl 183m4_require([_LT_CMD_RELOAD])dnl 184m4_require([_LT_CHECK_MAGIC_METHOD])dnl 185m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl 186m4_require([_LT_CMD_OLD_ARCHIVE])dnl 187m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl 188m4_require([_LT_WITH_SYSROOT])dnl |
189m4_require([_LT_CMD_TRUNCATE])dnl |
|
180 181_LT_CONFIG_LIBTOOL_INIT([ | 190 191_LT_CONFIG_LIBTOOL_INIT([ |
182# See if we are running on zsh, and set the options which allow our | 192# See if we are running on zsh, and set the options that allow our |
183# commands through without removal of \ escapes INIT. | 193# commands through without removal of \ escapes INIT. |
184if test -n "\${ZSH_VERSION+set}" ; then | 194if test -n "\${ZSH_VERSION+set}"; then |
185 setopt NO_GLOB_SUBST 186fi 187]) | 195 setopt NO_GLOB_SUBST 196fi 197]) |
188if test -n "${ZSH_VERSION+set}" ; then | 198if test -n "${ZSH_VERSION+set}"; then |
189 setopt NO_GLOB_SUBST 190fi 191 192_LT_CHECK_OBJDIR 193 194m4_require([_LT_TAG_COMPILER])dnl 195 196case $host_os in 197aix3*) 198 # AIX sometimes has problems with the GCC collect2 program. For some 199 # reason, if we set the COLLECT_NAMES environment variable, the problems 200 # vanish in a puff of smoke. | 199 setopt NO_GLOB_SUBST 200fi 201 202_LT_CHECK_OBJDIR 203 204m4_require([_LT_TAG_COMPILER])dnl 205 206case $host_os in 207aix3*) 208 # AIX sometimes has problems with the GCC collect2 program. For some 209 # reason, if we set the COLLECT_NAMES environment variable, the problems 210 # vanish in a puff of smoke. |
201 if test "X${COLLECT_NAMES+set}" != Xset; then | 211 if test set != "${COLLECT_NAMES+set}"; then |
202 COLLECT_NAMES= 203 export COLLECT_NAMES 204 fi 205 ;; 206esac 207 208# Global variables: 209ofile=libtool 210can_build_shared=yes 211 | 212 COLLECT_NAMES= 213 export COLLECT_NAMES 214 fi 215 ;; 216esac 217 218# Global variables: 219ofile=libtool 220can_build_shared=yes 221 |
212# All known linkers require a `.a' archive for static linking (except MSVC, | 222# All known linkers require a '.a' archive for static linking (except MSVC, |
213# which needs '.lib'). 214libext=a 215 | 223# which needs '.lib'). 224libext=a 225 |
216with_gnu_ld="$lt_cv_prog_gnu_ld" | 226with_gnu_ld=$lt_cv_prog_gnu_ld |
217 | 227 |
218old_CC="$CC" 219old_CFLAGS="$CFLAGS" | 228old_CC=$CC 229old_CFLAGS=$CFLAGS |
220 221# Set sane defaults for various variables 222test -z "$CC" && CC=cc 223test -z "$LTCC" && LTCC=$CC 224test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 225test -z "$LD" && LD=ld 226test -z "$ac_objext" && ac_objext=o 227 --- 36 unchanged lines hidden (view full) --- 264delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 265 266# Sed substitution to avoid accidental globbing in evaled expressions 267no_glob_subst='s/\*/\\\*/g' 268]) 269 270# _LT_PROG_LTMAIN 271# --------------- | 230 231# Set sane defaults for various variables 232test -z "$CC" && CC=cc 233test -z "$LTCC" && LTCC=$CC 234test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 235test -z "$LD" && LD=ld 236test -z "$ac_objext" && ac_objext=o 237 --- 36 unchanged lines hidden (view full) --- 274delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 275 276# Sed substitution to avoid accidental globbing in evaled expressions 277no_glob_subst='s/\*/\\\*/g' 278]) 279 280# _LT_PROG_LTMAIN 281# --------------- |
272# Note that this code is called both from `configure', and `config.status' | 282# Note that this code is called both from 'configure', and 'config.status' |
273# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably, | 283# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably, |
274# `config.status' has no value for ac_aux_dir unless we are using Automake, | 284# 'config.status' has no value for ac_aux_dir unless we are using Automake, |
275# so we pass a copy along to make sure it has a sensible value anyway. 276m4_defun([_LT_PROG_LTMAIN], 277[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl 278_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir']) | 285# so we pass a copy along to make sure it has a sensible value anyway. 286m4_defun([_LT_PROG_LTMAIN], 287[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl 288_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir']) |
279ltmain="$ac_aux_dir/ltmain.sh" | 289ltmain=$ac_aux_dir/ltmain.sh |
280])# _LT_PROG_LTMAIN 281 282 283## ------------------------------------- ## 284## Accumulate code for creating libtool. ## 285## ------------------------------------- ## 286 287# So that we can recreate a full libtool script including additional 288# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS | 290])# _LT_PROG_LTMAIN 291 292 293## ------------------------------------- ## 294## Accumulate code for creating libtool. ## 295## ------------------------------------- ## 296 297# So that we can recreate a full libtool script including additional 298# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS |
289# in macros and then make a single call at the end using the `libtool' | 299# in macros and then make a single call at the end using the 'libtool' |
290# label. 291 292 293# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS]) 294# ---------------------------------------- 295# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later. 296m4_define([_LT_CONFIG_LIBTOOL_INIT], 297[m4_ifval([$1], --- 118 unchanged lines hidden (view full) --- 416m4_define([_lt_decl_all_varnames], 417[lt_join($@, lt_decl_varnames_tagged([$1], 418 lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl 419]) 420 421 422# _LT_CONFIG_STATUS_DECLARE([VARNAME]) 423# ------------------------------------ | 300# label. 301 302 303# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS]) 304# ---------------------------------------- 305# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later. 306m4_define([_LT_CONFIG_LIBTOOL_INIT], 307[m4_ifval([$1], --- 118 unchanged lines hidden (view full) --- 426m4_define([_lt_decl_all_varnames], 427[lt_join($@, lt_decl_varnames_tagged([$1], 428 lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl 429]) 430 431 432# _LT_CONFIG_STATUS_DECLARE([VARNAME]) 433# ------------------------------------ |
424# Quote a variable value, and forward it to `config.status' so that its 425# declaration there will have the same value as in `configure'. VARNAME | 434# Quote a variable value, and forward it to 'config.status' so that its 435# declaration there will have the same value as in 'configure'. VARNAME |
426# must have a single quote delimited value for this to work. 427m4_define([_LT_CONFIG_STATUS_DECLARE], 428[$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`']) 429 430 431# _LT_CONFIG_STATUS_DECLARATIONS 432# ------------------------------ 433# We delimit libtool config variables with single quotes, so when --- 7 unchanged lines hidden (view full) --- 441 [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])]) 442 443 444# _LT_LIBTOOL_TAGS 445# ---------------- 446# Output comment and list of tags supported by the script 447m4_defun([_LT_LIBTOOL_TAGS], 448[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl | 436# must have a single quote delimited value for this to work. 437m4_define([_LT_CONFIG_STATUS_DECLARE], 438[$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`']) 439 440 441# _LT_CONFIG_STATUS_DECLARATIONS 442# ------------------------------ 443# We delimit libtool config variables with single quotes, so when --- 7 unchanged lines hidden (view full) --- 451 [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])]) 452 453 454# _LT_LIBTOOL_TAGS 455# ---------------- 456# Output comment and list of tags supported by the script 457m4_defun([_LT_LIBTOOL_TAGS], 458[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl |
449available_tags="_LT_TAGS"dnl | 459available_tags='_LT_TAGS'dnl |
450]) 451 452 453# _LT_LIBTOOL_DECLARE(VARNAME, [TAG]) 454# ----------------------------------- 455# Extract the dictionary values for VARNAME (optionally with TAG) and 456# expand to a commented shell variable setting: 457# --- 11 unchanged lines hidden (view full) --- 469 [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl 470m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl 471]) 472 473 474# _LT_LIBTOOL_CONFIG_VARS 475# ----------------------- 476# Produce commented declarations of non-tagged libtool config variables | 460]) 461 462 463# _LT_LIBTOOL_DECLARE(VARNAME, [TAG]) 464# ----------------------------------- 465# Extract the dictionary values for VARNAME (optionally with TAG) and 466# expand to a commented shell variable setting: 467# --- 11 unchanged lines hidden (view full) --- 479 [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl 480m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl 481]) 482 483 484# _LT_LIBTOOL_CONFIG_VARS 485# ----------------------- 486# Produce commented declarations of non-tagged libtool config variables |
477# suitable for insertion in the LIBTOOL CONFIG section of the `libtool' | 487# suitable for insertion in the LIBTOOL CONFIG section of the 'libtool' |
478# script. Tagged libtool config variables (even for the LIBTOOL CONFIG 479# section) are produced by _LT_LIBTOOL_TAG_VARS. 480m4_defun([_LT_LIBTOOL_CONFIG_VARS], 481[m4_foreach([_lt_var], 482 m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)), 483 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])]) 484 485 --- 9 unchanged lines hidden (view full) --- 495m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])]) 496 497 498# _LT_CONFIG_COMMANDS 499# ------------------- 500# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of 501# variables for single and double quote escaping we saved from calls 502# to _LT_DECL, we can put quote escaped variables declarations | 488# script. Tagged libtool config variables (even for the LIBTOOL CONFIG 489# section) are produced by _LT_LIBTOOL_TAG_VARS. 490m4_defun([_LT_LIBTOOL_CONFIG_VARS], 491[m4_foreach([_lt_var], 492 m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)), 493 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])]) 494 495 --- 9 unchanged lines hidden (view full) --- 505m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])]) 506 507 508# _LT_CONFIG_COMMANDS 509# ------------------- 510# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of 511# variables for single and double quote escaping we saved from calls 512# to _LT_DECL, we can put quote escaped variables declarations |
503# into `config.status', and then the shell code to quote escape them in 504# for loops in `config.status'. Finally, any additional code accumulated | 513# into 'config.status', and then the shell code to quote escape them in 514# for loops in 'config.status'. Finally, any additional code accumulated |
505# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded. 506m4_defun([_LT_CONFIG_COMMANDS], 507[AC_PROVIDE_IFELSE([LT_OUTPUT], 508 dnl If the libtool generation code has been placed in $CONFIG_LT, 509 dnl instead of duplicating it all over again into config.status, 510 dnl then we will have config.status run $CONFIG_LT later, so it 511 dnl needs to know what name is stored there: 512 [AC_CONFIG_COMMANDS([libtool], --- 29 unchanged lines hidden (view full) --- 542_LTECHO_EOF' 543} 544 545# Quote evaled strings. 546for var in lt_decl_all_varnames([[ \ 547]], lt_decl_quote_varnames); do 548 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 549 *[[\\\\\\\`\\"\\\$]]*) | 515# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded. 516m4_defun([_LT_CONFIG_COMMANDS], 517[AC_PROVIDE_IFELSE([LT_OUTPUT], 518 dnl If the libtool generation code has been placed in $CONFIG_LT, 519 dnl instead of duplicating it all over again into config.status, 520 dnl then we will have config.status run $CONFIG_LT later, so it 521 dnl needs to know what name is stored there: 522 [AC_CONFIG_COMMANDS([libtool], --- 29 unchanged lines hidden (view full) --- 552_LTECHO_EOF' 553} 554 555# Quote evaled strings. 556for var in lt_decl_all_varnames([[ \ 557]], lt_decl_quote_varnames); do 558 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 559 *[[\\\\\\\`\\"\\\$]]*) |
550 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | 560 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes |
551 ;; 552 *) 553 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 554 ;; 555 esac 556done 557 558# Double-quote double-evaled strings. 559for var in lt_decl_all_varnames([[ \ 560]], lt_decl_dquote_varnames); do 561 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 562 *[[\\\\\\\`\\"\\\$]]*) | 561 ;; 562 *) 563 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 564 ;; 565 esac 566done 567 568# Double-quote double-evaled strings. 569for var in lt_decl_all_varnames([[ \ 570]], lt_decl_dquote_varnames); do 571 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 572 *[[\\\\\\\`\\"\\\$]]*) |
563 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | 573 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes |
564 ;; 565 *) 566 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 567 ;; 568 esac 569done 570 571_LT_OUTPUT_LIBTOOL_INIT 572]) 573 574# _LT_GENERATED_FILE_INIT(FILE, [COMMENT]) 575# ------------------------------------ 576# Generate a child script FILE with all initialization necessary to 577# reuse the environment learned by the parent script, and make the 578# file executable. If COMMENT is supplied, it is inserted after the | 574 ;; 575 *) 576 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 577 ;; 578 esac 579done 580 581_LT_OUTPUT_LIBTOOL_INIT 582]) 583 584# _LT_GENERATED_FILE_INIT(FILE, [COMMENT]) 585# ------------------------------------ 586# Generate a child script FILE with all initialization necessary to 587# reuse the environment learned by the parent script, and make the 588# file executable. If COMMENT is supplied, it is inserted after the |
579# `#!' sequence but before initialization text begins. After this | 589# '#!' sequence but before initialization text begins. After this |
580# macro, additional text can be appended to FILE to form the body of 581# the child script. The macro ends with non-zero status if the 582# file could not be fully written (such as if the disk is full). 583m4_ifdef([AS_INIT_GENERATED], 584[m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])], 585[m4_defun([_LT_GENERATED_FILE_INIT], 586[m4_require([AS_PREPARE])]dnl 587[m4_pushdef([AS_MESSAGE_LOG_FD])]dnl --- 5 unchanged lines hidden (view full) --- 593SHELL=\${CONFIG_SHELL-$SHELL} 594export SHELL 595_ASEOF 596cat >>$1 <<\_ASEOF || lt_write_fail=1 597AS_SHELL_SANITIZE 598_AS_PREPARE 599exec AS_MESSAGE_FD>&1 600_ASEOF | 590# macro, additional text can be appended to FILE to form the body of 591# the child script. The macro ends with non-zero status if the 592# file could not be fully written (such as if the disk is full). 593m4_ifdef([AS_INIT_GENERATED], 594[m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])], 595[m4_defun([_LT_GENERATED_FILE_INIT], 596[m4_require([AS_PREPARE])]dnl 597[m4_pushdef([AS_MESSAGE_LOG_FD])]dnl --- 5 unchanged lines hidden (view full) --- 603SHELL=\${CONFIG_SHELL-$SHELL} 604export SHELL 605_ASEOF 606cat >>$1 <<\_ASEOF || lt_write_fail=1 607AS_SHELL_SANITIZE 608_AS_PREPARE 609exec AS_MESSAGE_FD>&1 610_ASEOF |
601test $lt_write_fail = 0 && chmod +x $1[]dnl | 611test 0 = "$lt_write_fail" && chmod +x $1[]dnl |
602m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT 603 604# LT_OUTPUT 605# --------- 606# This macro allows early generation of the libtool script (before 607# AC_OUTPUT is called), incase it is used in configure for compilation 608# tests. 609AC_DEFUN([LT_OUTPUT], --- 6 unchanged lines hidden (view full) --- 616lt_cl_silent=false 617exec AS_MESSAGE_LOG_FD>>config.log 618{ 619 echo 620 AS_BOX([Running $as_me.]) 621} >&AS_MESSAGE_LOG_FD 622 623lt_cl_help="\ | 612m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT 613 614# LT_OUTPUT 615# --------- 616# This macro allows early generation of the libtool script (before 617# AC_OUTPUT is called), incase it is used in configure for compilation 618# tests. 619AC_DEFUN([LT_OUTPUT], --- 6 unchanged lines hidden (view full) --- 626lt_cl_silent=false 627exec AS_MESSAGE_LOG_FD>>config.log 628{ 629 echo 630 AS_BOX([Running $as_me.]) 631} >&AS_MESSAGE_LOG_FD 632 633lt_cl_help="\ |
624\`$as_me' creates a local libtool stub from the current configuration, | 634'$as_me' creates a local libtool stub from the current configuration, |
625for use in further configure time tests before the real libtool is 626generated. 627 628Usage: $[0] [[OPTIONS]] 629 630 -h, --help print this help, then exit 631 -V, --version print version number, then exit 632 -q, --quiet do not print progress messages --- 5 unchanged lines hidden (view full) --- 638m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl 639m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION]) 640configured by $[0], generated by m4_PACKAGE_STRING. 641 642Copyright (C) 2011 Free Software Foundation, Inc. 643This config.lt script is free software; the Free Software Foundation 644gives unlimited permision to copy, distribute and modify it." 645 | 635for use in further configure time tests before the real libtool is 636generated. 637 638Usage: $[0] [[OPTIONS]] 639 640 -h, --help print this help, then exit 641 -V, --version print version number, then exit 642 -q, --quiet do not print progress messages --- 5 unchanged lines hidden (view full) --- 648m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl 649m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION]) 650configured by $[0], generated by m4_PACKAGE_STRING. 651 652Copyright (C) 2011 Free Software Foundation, Inc. 653This config.lt script is free software; the Free Software Foundation 654gives unlimited permision to copy, distribute and modify it." 655 |
646while test $[#] != 0 | 656while test 0 != $[#] |
647do 648 case $[1] in 649 --version | --v* | -V ) 650 echo "$lt_cl_version"; exit 0 ;; 651 --help | --h* | -h ) 652 echo "$lt_cl_help"; exit 0 ;; 653 --debug | --d* | -d ) 654 debug=: ;; 655 --quiet | --q* | --silent | --s* | -q ) 656 lt_cl_silent=: ;; 657 658 -*) AC_MSG_ERROR([unrecognized option: $[1] | 657do 658 case $[1] in 659 --version | --v* | -V ) 660 echo "$lt_cl_version"; exit 0 ;; 661 --help | --h* | -h ) 662 echo "$lt_cl_help"; exit 0 ;; 663 --debug | --d* | -d ) 664 debug=: ;; 665 --quiet | --q* | --silent | --s* | -q ) 666 lt_cl_silent=: ;; 667 668 -*) AC_MSG_ERROR([unrecognized option: $[1] |
659Try \`$[0] --help' for more information.]) ;; | 669Try '$[0] --help' for more information.]) ;; |
660 661 *) AC_MSG_ERROR([unrecognized argument: $[1] | 670 671 *) AC_MSG_ERROR([unrecognized argument: $[1] |
662Try \`$[0] --help' for more information.]) ;; | 672Try '$[0] --help' for more information.]) ;; |
663 esac 664 shift 665done 666 667if $lt_cl_silent; then 668 exec AS_MESSAGE_FD>/dev/null 669fi 670_LTEOF --- 9 unchanged lines hidden (view full) --- 680_LTEOF 681chmod +x "$CONFIG_LT" 682 683# configure is writing to config.log, but config.lt does its own redirection, 684# appending to config.log, which fails on DOS, as config.log is still kept 685# open by configure. Here we exec the FD to /dev/null, effectively closing 686# config.log, so it can be properly (re)opened and appended to by config.lt. 687lt_cl_success=: | 673 esac 674 shift 675done 676 677if $lt_cl_silent; then 678 exec AS_MESSAGE_FD>/dev/null 679fi 680_LTEOF --- 9 unchanged lines hidden (view full) --- 690_LTEOF 691chmod +x "$CONFIG_LT" 692 693# configure is writing to config.log, but config.lt does its own redirection, 694# appending to config.log, which fails on DOS, as config.log is still kept 695# open by configure. Here we exec the FD to /dev/null, effectively closing 696# config.log, so it can be properly (re)opened and appended to by config.lt. 697lt_cl_success=: |
688test "$silent" = yes && | 698test yes = "$silent" && |
689 lt_config_lt_args="$lt_config_lt_args --quiet" 690exec AS_MESSAGE_LOG_FD>/dev/null 691$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false 692exec AS_MESSAGE_LOG_FD>>config.log 693$lt_cl_success || AS_EXIT(1) 694])# LT_OUTPUT 695 696 697# _LT_CONFIG(TAG) 698# --------------- 699# If TAG is the built-in tag, create an initial libtool script with a 700# default configuration from the untagged config vars. Otherwise add code 701# to config.status for appending the configuration named by TAG from the 702# matching tagged config vars. 703m4_defun([_LT_CONFIG], 704[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 705_LT_CONFIG_SAVE_COMMANDS([ 706 m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl 707 m4_if(_LT_TAG, [C], [ | 699 lt_config_lt_args="$lt_config_lt_args --quiet" 700exec AS_MESSAGE_LOG_FD>/dev/null 701$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false 702exec AS_MESSAGE_LOG_FD>>config.log 703$lt_cl_success || AS_EXIT(1) 704])# LT_OUTPUT 705 706 707# _LT_CONFIG(TAG) 708# --------------- 709# If TAG is the built-in tag, create an initial libtool script with a 710# default configuration from the untagged config vars. Otherwise add code 711# to config.status for appending the configuration named by TAG from the 712# matching tagged config vars. 713m4_defun([_LT_CONFIG], 714[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 715_LT_CONFIG_SAVE_COMMANDS([ 716 m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl 717 m4_if(_LT_TAG, [C], [ |
708 # See if we are running on zsh, and set the options which allow our | 718 # See if we are running on zsh, and set the options that allow our |
709 # commands through without removal of \ escapes. | 719 # commands through without removal of \ escapes. |
710 if test -n "${ZSH_VERSION+set}" ; then | 720 if test -n "${ZSH_VERSION+set}"; then |
711 setopt NO_GLOB_SUBST 712 fi 713 | 721 setopt NO_GLOB_SUBST 722 fi 723 |
714 cfgfile="${ofile}T" | 724 cfgfile=${ofile}T |
715 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 716 $RM "$cfgfile" 717 718 cat <<_LT_EOF >> "$cfgfile" 719#! $SHELL | 725 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 726 $RM "$cfgfile" 727 728 cat <<_LT_EOF >> "$cfgfile" 729#! $SHELL |
720 721# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 722# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION | 730# Generated automatically by $as_me ($PACKAGE) $VERSION |
723# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 724# NOTE: Changes made to this file will be lost: look at ltmain.sh. | 731# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 732# NOTE: Changes made to this file will be lost: look at ltmain.sh. |
725# | 733 734# Provide generalized library-building support services. 735# Written by Gordon Matzigkeit, 1996 736 |
726_LT_COPYING 727_LT_LIBTOOL_TAGS 728 | 737_LT_COPYING 738_LT_LIBTOOL_TAGS 739 |
740# Configured defaults for sys_lib_dlsearch_path munging. 741: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 742 |
|
729# ### BEGIN LIBTOOL CONFIG 730_LT_LIBTOOL_CONFIG_VARS 731_LT_LIBTOOL_TAG_VARS 732# ### END LIBTOOL CONFIG 733 734_LT_EOF 735 | 743# ### BEGIN LIBTOOL CONFIG 744_LT_LIBTOOL_CONFIG_VARS 745_LT_LIBTOOL_TAG_VARS 746# ### END LIBTOOL CONFIG 747 748_LT_EOF 749 |
750 cat <<'_LT_EOF' >> "$cfgfile" 751 752# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 753 754_LT_PREPARE_MUNGE_PATH_LIST 755_LT_PREPARE_CC_BASENAME 756 757# ### END FUNCTIONS SHARED WITH CONFIGURE 758 759_LT_EOF 760 |
|
736 case $host_os in 737 aix3*) 738 cat <<\_LT_EOF >> "$cfgfile" 739# AIX sometimes has problems with the GCC collect2 program. For some 740# reason, if we set the COLLECT_NAMES environment variable, the problems 741# vanish in a puff of smoke. | 761 case $host_os in 762 aix3*) 763 cat <<\_LT_EOF >> "$cfgfile" 764# AIX sometimes has problems with the GCC collect2 program. For some 765# reason, if we set the COLLECT_NAMES environment variable, the problems 766# vanish in a puff of smoke. |
742if test "X${COLLECT_NAMES+set}" != Xset; then | 767if test set != "${COLLECT_NAMES+set}"; then |
743 COLLECT_NAMES= 744 export COLLECT_NAMES 745fi 746_LT_EOF 747 ;; 748 esac 749 750 _LT_PROG_LTMAIN 751 752 # We use sed instead of cat because bash on DJGPP gets confused if 753 # if finds mixed CR/LF and LF-only lines. Since sed operates in 754 # text mode, it properly converts lines to CR/LF. This bash problem 755 # is reportedly fixed, but why not run on old versions too? 756 sed '$q' "$ltmain" >> "$cfgfile" \ 757 || (rm -f "$cfgfile"; exit 1) 758 | 768 COLLECT_NAMES= 769 export COLLECT_NAMES 770fi 771_LT_EOF 772 ;; 773 esac 774 775 _LT_PROG_LTMAIN 776 777 # We use sed instead of cat because bash on DJGPP gets confused if 778 # if finds mixed CR/LF and LF-only lines. Since sed operates in 779 # text mode, it properly converts lines to CR/LF. This bash problem 780 # is reportedly fixed, but why not run on old versions too? 781 sed '$q' "$ltmain" >> "$cfgfile" \ 782 || (rm -f "$cfgfile"; exit 1) 783 |
759 _LT_PROG_REPLACE_SHELLFNS 760 | |
761 mv -f "$cfgfile" "$ofile" || 762 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 763 chmod +x "$ofile" 764], 765[cat <<_LT_EOF >> "$ofile" 766 767dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded 768dnl in a comment (ie after a #). 769# ### BEGIN LIBTOOL TAG CONFIG: $1 770_LT_LIBTOOL_TAG_VARS(_LT_TAG) 771# ### END LIBTOOL TAG CONFIG: $1 772_LT_EOF 773])dnl /m4_if 774], 775[m4_if([$1], [], [ 776 PACKAGE='$PACKAGE' 777 VERSION='$VERSION' | 784 mv -f "$cfgfile" "$ofile" || 785 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 786 chmod +x "$ofile" 787], 788[cat <<_LT_EOF >> "$ofile" 789 790dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded 791dnl in a comment (ie after a #). 792# ### BEGIN LIBTOOL TAG CONFIG: $1 793_LT_LIBTOOL_TAG_VARS(_LT_TAG) 794# ### END LIBTOOL TAG CONFIG: $1 795_LT_EOF 796])dnl /m4_if 797], 798[m4_if([$1], [], [ 799 PACKAGE='$PACKAGE' 800 VERSION='$VERSION' |
778 TIMESTAMP='$TIMESTAMP' | |
779 RM='$RM' 780 ofile='$ofile'], []) 781])dnl /_LT_CONFIG_SAVE_COMMANDS 782])# _LT_CONFIG 783 784 785# LT_SUPPORTED_TAG(TAG) 786# --------------------- --- 182 unchanged lines hidden (view full) --- 969 [Tool to manipulate fat objects and archives on Mac OS X]) 970 _LT_DECL([], [OTOOL], [1], 971 [ldd/readelf like tool for Mach-O binaries on Mac OS X]) 972 _LT_DECL([], [OTOOL64], [1], 973 [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4]) 974 975 AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod], 976 [lt_cv_apple_cc_single_mod=no | 801 RM='$RM' 802 ofile='$ofile'], []) 803])dnl /_LT_CONFIG_SAVE_COMMANDS 804])# _LT_CONFIG 805 806 807# LT_SUPPORTED_TAG(TAG) 808# --------------------- --- 182 unchanged lines hidden (view full) --- 991 [Tool to manipulate fat objects and archives on Mac OS X]) 992 _LT_DECL([], [OTOOL], [1], 993 [ldd/readelf like tool for Mach-O binaries on Mac OS X]) 994 _LT_DECL([], [OTOOL64], [1], 995 [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4]) 996 997 AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod], 998 [lt_cv_apple_cc_single_mod=no |
977 if test -z "${LT_MULTI_MODULE}"; then | 999 if test -z "$LT_MULTI_MODULE"; then |
978 # By default we will add the -single_module flag. You can override 979 # by either setting the environment variable LT_MULTI_MODULE 980 # non-empty at configure time, or by adding -multi_module to the 981 # link flags. 982 rm -rf libconftest.dylib* 983 echo "int foo(void){return 1;}" > conftest.c 984 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 985-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD 986 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 987 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 988 _lt_result=$? 989 # If there is a non-empty error log, and "single_module" 990 # appears in it, assume the flag caused a linker warning 991 if test -s conftest.err && $GREP single_module conftest.err; then 992 cat conftest.err >&AS_MESSAGE_LOG_FD 993 # Otherwise, if the output was created with a 0 exit code from 994 # the compiler, it worked. | 1000 # By default we will add the -single_module flag. You can override 1001 # by either setting the environment variable LT_MULTI_MODULE 1002 # non-empty at configure time, or by adding -multi_module to the 1003 # link flags. 1004 rm -rf libconftest.dylib* 1005 echo "int foo(void){return 1;}" > conftest.c 1006 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 1007-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD 1008 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 1009 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 1010 _lt_result=$? 1011 # If there is a non-empty error log, and "single_module" 1012 # appears in it, assume the flag caused a linker warning 1013 if test -s conftest.err && $GREP single_module conftest.err; then 1014 cat conftest.err >&AS_MESSAGE_LOG_FD 1015 # Otherwise, if the output was created with a 0 exit code from 1016 # the compiler, it worked. |
995 elif test -f libconftest.dylib && test $_lt_result -eq 0; then | 1017 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then |
996 lt_cv_apple_cc_single_mod=yes 997 else 998 cat conftest.err >&AS_MESSAGE_LOG_FD 999 fi 1000 rm -rf libconftest.dylib* 1001 rm -f conftest.* 1002 fi]) 1003 1004 AC_CACHE_CHECK([for -exported_symbols_list linker flag], 1005 [lt_cv_ld_exported_symbols_list], 1006 [lt_cv_ld_exported_symbols_list=no 1007 save_LDFLAGS=$LDFLAGS 1008 echo "_main" > conftest.sym 1009 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 1010 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], 1011 [lt_cv_ld_exported_symbols_list=yes], 1012 [lt_cv_ld_exported_symbols_list=no]) | 1018 lt_cv_apple_cc_single_mod=yes 1019 else 1020 cat conftest.err >&AS_MESSAGE_LOG_FD 1021 fi 1022 rm -rf libconftest.dylib* 1023 rm -f conftest.* 1024 fi]) 1025 1026 AC_CACHE_CHECK([for -exported_symbols_list linker flag], 1027 [lt_cv_ld_exported_symbols_list], 1028 [lt_cv_ld_exported_symbols_list=no 1029 save_LDFLAGS=$LDFLAGS 1030 echo "_main" > conftest.sym 1031 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 1032 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], 1033 [lt_cv_ld_exported_symbols_list=yes], 1034 [lt_cv_ld_exported_symbols_list=no]) |
1013 LDFLAGS="$save_LDFLAGS" | 1035 LDFLAGS=$save_LDFLAGS |
1014 ]) 1015 1016 AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load], 1017 [lt_cv_ld_force_load=no 1018 cat > conftest.c << _LT_EOF 1019int forced_loaded() { return 2;} 1020_LT_EOF 1021 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD --- 5 unchanged lines hidden (view full) --- 1027 cat > conftest.c << _LT_EOF 1028int main() { return 0;} 1029_LT_EOF 1030 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD 1031 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 1032 _lt_result=$? 1033 if test -s conftest.err && $GREP force_load conftest.err; then 1034 cat conftest.err >&AS_MESSAGE_LOG_FD | 1036 ]) 1037 1038 AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load], 1039 [lt_cv_ld_force_load=no 1040 cat > conftest.c << _LT_EOF 1041int forced_loaded() { return 2;} 1042_LT_EOF 1043 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD --- 5 unchanged lines hidden (view full) --- 1049 cat > conftest.c << _LT_EOF 1050int main() { return 0;} 1051_LT_EOF 1052 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD 1053 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 1054 _lt_result=$? 1055 if test -s conftest.err && $GREP force_load conftest.err; then 1056 cat conftest.err >&AS_MESSAGE_LOG_FD |
1035 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then | 1057 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then |
1036 lt_cv_ld_force_load=yes 1037 else 1038 cat conftest.err >&AS_MESSAGE_LOG_FD 1039 fi 1040 rm -f conftest.err libconftest.a conftest conftest.c 1041 rm -rf conftest.dSYM 1042 ]) 1043 case $host_os in 1044 rhapsody* | darwin1.[[012]]) | 1058 lt_cv_ld_force_load=yes 1059 else 1060 cat conftest.err >&AS_MESSAGE_LOG_FD 1061 fi 1062 rm -f conftest.err libconftest.a conftest conftest.c 1063 rm -rf conftest.dSYM 1064 ]) 1065 case $host_os in 1066 rhapsody* | darwin1.[[012]]) |
1045 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | 1067 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; |
1046 darwin1.*) | 1068 darwin1.*) |
1047 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | 1069 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; |
1048 darwin*) # darwin 5.x on 1049 # if running on 10.5 or later, the deployment target defaults 1050 # to the OS version, if on x86, and 10.4, the deployment 1051 # target defaults to 10.4. Don't you love it? 1052 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 1053 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*) | 1070 darwin*) # darwin 5.x on 1071 # if running on 10.5 or later, the deployment target defaults 1072 # to the OS version, if on x86, and 10.4, the deployment 1073 # target defaults to 10.4. Don't you love it? 1074 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 1075 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*) |
1054 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 1055 10.[[012]]*) 1056 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | 1076 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 1077 10.[[012]][[,.]]*) 1078 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; |
1057 10.*) | 1079 10.*) |
1058 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | 1080 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; |
1059 esac 1060 ;; 1061 esac | 1081 esac 1082 ;; 1083 esac |
1062 if test "$lt_cv_apple_cc_single_mod" = "yes"; then | 1084 if test yes = "$lt_cv_apple_cc_single_mod"; then |
1063 _lt_dar_single_mod='$single_module' 1064 fi | 1085 _lt_dar_single_mod='$single_module' 1086 fi |
1065 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 1066 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | 1087 if test yes = "$lt_cv_ld_exported_symbols_list"; then 1088 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' |
1067 else | 1089 else |
1068 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | 1090 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' |
1069 fi | 1091 fi |
1070 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then | 1092 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then |
1071 _lt_dsymutil='~$DSYMUTIL $lib || :' 1072 else 1073 _lt_dsymutil= 1074 fi 1075 ;; 1076 esac 1077]) 1078 1079 1080# _LT_DARWIN_LINKER_FEATURES([TAG]) 1081# --------------------------------- 1082# Checks for linker and compiler features on darwin 1083m4_defun([_LT_DARWIN_LINKER_FEATURES], 1084[ 1085 m4_require([_LT_REQUIRED_DARWIN_CHECKS]) 1086 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 1087 _LT_TAGVAR(hardcode_direct, $1)=no 1088 _LT_TAGVAR(hardcode_automatic, $1)=yes 1089 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported | 1093 _lt_dsymutil='~$DSYMUTIL $lib || :' 1094 else 1095 _lt_dsymutil= 1096 fi 1097 ;; 1098 esac 1099]) 1100 1101 1102# _LT_DARWIN_LINKER_FEATURES([TAG]) 1103# --------------------------------- 1104# Checks for linker and compiler features on darwin 1105m4_defun([_LT_DARWIN_LINKER_FEATURES], 1106[ 1107 m4_require([_LT_REQUIRED_DARWIN_CHECKS]) 1108 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 1109 _LT_TAGVAR(hardcode_direct, $1)=no 1110 _LT_TAGVAR(hardcode_automatic, $1)=yes 1111 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
1090 if test "$lt_cv_ld_force_load" = "yes"; then 1091 _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' | 1112 if test yes = "$lt_cv_ld_force_load"; then 1113 _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' |
1092 m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes], 1093 [FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes]) 1094 else 1095 _LT_TAGVAR(whole_archive_flag_spec, $1)='' 1096 fi 1097 _LT_TAGVAR(link_all_deplibs, $1)=yes | 1114 m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes], 1115 [FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes]) 1116 else 1117 _LT_TAGVAR(whole_archive_flag_spec, $1)='' 1118 fi 1119 _LT_TAGVAR(link_all_deplibs, $1)=yes |
1098 _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined" | 1120 _LT_TAGVAR(allow_undefined_flag, $1)=$_lt_dar_allow_undefined |
1099 case $cc_basename in | 1121 case $cc_basename in |
1100 ifort*) _lt_dar_can_shared=yes ;; | 1122 ifort*|nagfor*) _lt_dar_can_shared=yes ;; |
1101 *) _lt_dar_can_shared=$GCC ;; 1102 esac | 1123 *) _lt_dar_can_shared=$GCC ;; 1124 esac |
1103 if test "$_lt_dar_can_shared" = "yes"; then | 1125 if test yes = "$_lt_dar_can_shared"; then |
1104 output_verbose_link_cmd=func_echo_all | 1126 output_verbose_link_cmd=func_echo_all |
1105 _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 1106 _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 1107 _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" 1108 _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" | 1127 _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 1128 _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 1129 _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil" 1130 _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil" |
1109 m4_if([$1], [CXX], | 1131 m4_if([$1], [CXX], |
1110[ if test "$lt_cv_apple_cc_single_mod" != "yes"; then 1111 _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}" 1112 _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}" | 1132[ if test yes != "$lt_cv_apple_cc_single_mod"; then 1133 _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil" 1134 _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil" |
1113 fi 1114],[]) 1115 else 1116 _LT_TAGVAR(ld_shlibs, $1)=no 1117 fi 1118]) 1119 1120# _LT_SYS_MODULE_PATH_AIX([TAGNAME]) 1121# ---------------------------------- 1122# Links a minimal program and checks the executable 1123# for the system default hardcoded library path. In most cases, 1124# this is /usr/lib:/lib, but when the MPI compilers are used 1125# the location of the communication and MPI libs are included too. 1126# If we don't find anything, use the default library path according 1127# to the aix ld manual. 1128# Store the results from the different compilers for each TAGNAME. 1129# Allow to override them for all tags through lt_cv_aix_libpath. 1130m4_defun([_LT_SYS_MODULE_PATH_AIX], 1131[m4_require([_LT_DECL_SED])dnl | 1135 fi 1136],[]) 1137 else 1138 _LT_TAGVAR(ld_shlibs, $1)=no 1139 fi 1140]) 1141 1142# _LT_SYS_MODULE_PATH_AIX([TAGNAME]) 1143# ---------------------------------- 1144# Links a minimal program and checks the executable 1145# for the system default hardcoded library path. In most cases, 1146# this is /usr/lib:/lib, but when the MPI compilers are used 1147# the location of the communication and MPI libs are included too. 1148# If we don't find anything, use the default library path according 1149# to the aix ld manual. 1150# Store the results from the different compilers for each TAGNAME. 1151# Allow to override them for all tags through lt_cv_aix_libpath. 1152m4_defun([_LT_SYS_MODULE_PATH_AIX], 1153[m4_require([_LT_DECL_SED])dnl |
1132if test "${lt_cv_aix_libpath+set}" = set; then | 1154if test set = "${lt_cv_aix_libpath+set}"; then |
1133 aix_libpath=$lt_cv_aix_libpath 1134else 1135 AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])], 1136 [AC_LINK_IFELSE([AC_LANG_PROGRAM],[ 1137 lt_aix_libpath_sed='[ 1138 /Import File Strings/,/^$/ { 1139 /^0/ { 1140 s/^0 *\([^ ]*\) *$/\1/ 1141 p 1142 } 1143 }]' 1144 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 1145 # Check for a 64-bit object if we didn't find anything. 1146 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then 1147 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 1148 fi],[]) 1149 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then | 1155 aix_libpath=$lt_cv_aix_libpath 1156else 1157 AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])], 1158 [AC_LINK_IFELSE([AC_LANG_PROGRAM],[ 1159 lt_aix_libpath_sed='[ 1160 /Import File Strings/,/^$/ { 1161 /^0/ { 1162 s/^0 *\([^ ]*\) *$/\1/ 1163 p 1164 } 1165 }]' 1166 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 1167 # Check for a 64-bit object if we didn't find anything. 1168 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then 1169 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 1170 fi],[]) 1171 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then |
1150 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib" | 1172 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=/usr/lib:/lib |
1151 fi 1152 ]) 1153 aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1]) 1154fi 1155])# _LT_SYS_MODULE_PATH_AIX 1156 1157 1158# _LT_SHELL_INIT(ARG) 1159# ------------------- 1160m4_define([_LT_SHELL_INIT], 1161[m4_divert_text([M4SH-INIT], [$1 1162])])# _LT_SHELL_INIT 1163 1164 1165 1166# _LT_PROG_ECHO_BACKSLASH 1167# ----------------------- 1168# Find how we can fake an echo command that does not interpret backslash. 1169# In particular, with Autoconf 2.60 or later we add some code to the start | 1173 fi 1174 ]) 1175 aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1]) 1176fi 1177])# _LT_SYS_MODULE_PATH_AIX 1178 1179 1180# _LT_SHELL_INIT(ARG) 1181# ------------------- 1182m4_define([_LT_SHELL_INIT], 1183[m4_divert_text([M4SH-INIT], [$1 1184])])# _LT_SHELL_INIT 1185 1186 1187 1188# _LT_PROG_ECHO_BACKSLASH 1189# ----------------------- 1190# Find how we can fake an echo command that does not interpret backslash. 1191# In particular, with Autoconf 2.60 or later we add some code to the start |
1170# of the generated configure script which will find a shell with a builtin 1171# printf (which we can use as an echo command). | 1192# of the generated configure script that will find a shell with a builtin 1193# printf (that we can use as an echo command). |
1172m4_defun([_LT_PROG_ECHO_BACKSLASH], 1173[ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 1174ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 1175ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 1176 1177AC_MSG_CHECKING([how to print strings]) 1178# Test print first, because it will be a builtin if present. 1179if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ --- 11 unchanged lines hidden (view full) --- 1191 } 1192 ECHO='func_fallback_echo' 1193fi 1194 1195# func_echo_all arg... 1196# Invoke $ECHO with all args, space-separated. 1197func_echo_all () 1198{ | 1194m4_defun([_LT_PROG_ECHO_BACKSLASH], 1195[ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 1196ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 1197ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 1198 1199AC_MSG_CHECKING([how to print strings]) 1200# Test print first, because it will be a builtin if present. 1201if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ --- 11 unchanged lines hidden (view full) --- 1213 } 1214 ECHO='func_fallback_echo' 1215fi 1216 1217# func_echo_all arg... 1218# Invoke $ECHO with all args, space-separated. 1219func_echo_all () 1220{ |
1199 $ECHO "$*" | 1221 $ECHO "$*" |
1200} 1201 | 1222} 1223 |
1202case "$ECHO" in | 1224case $ECHO in |
1203 printf*) AC_MSG_RESULT([printf]) ;; 1204 print*) AC_MSG_RESULT([print -r]) ;; 1205 *) AC_MSG_RESULT([cat]) ;; 1206esac 1207 1208m4_ifdef([_AS_DETECT_SUGGESTED], 1209[_AS_DETECT_SUGGESTED([ 1210 test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || ( --- 9 unchanged lines hidden (view full) --- 1220])# _LT_PROG_ECHO_BACKSLASH 1221 1222 1223# _LT_WITH_SYSROOT 1224# ---------------- 1225AC_DEFUN([_LT_WITH_SYSROOT], 1226[AC_MSG_CHECKING([for sysroot]) 1227AC_ARG_WITH([sysroot], | 1225 printf*) AC_MSG_RESULT([printf]) ;; 1226 print*) AC_MSG_RESULT([print -r]) ;; 1227 *) AC_MSG_RESULT([cat]) ;; 1228esac 1229 1230m4_ifdef([_AS_DETECT_SUGGESTED], 1231[_AS_DETECT_SUGGESTED([ 1232 test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || ( --- 9 unchanged lines hidden (view full) --- 1242])# _LT_PROG_ECHO_BACKSLASH 1243 1244 1245# _LT_WITH_SYSROOT 1246# ---------------- 1247AC_DEFUN([_LT_WITH_SYSROOT], 1248[AC_MSG_CHECKING([for sysroot]) 1249AC_ARG_WITH([sysroot], |
1228[ --with-sysroot[=DIR] Search for dependent libraries within DIR 1229 (or the compiler's sysroot if not specified).], | 1250[AS_HELP_STRING([--with-sysroot@<:@=DIR@:>@], 1251 [Search for dependent libraries within DIR (or the compiler's sysroot 1252 if not specified).])], |
1230[], [with_sysroot=no]) 1231 1232dnl lt_sysroot will always be passed unquoted. We quote it here 1233dnl in case the user passed a directory name. 1234lt_sysroot= | 1253[], [with_sysroot=no]) 1254 1255dnl lt_sysroot will always be passed unquoted. We quote it here 1256dnl in case the user passed a directory name. 1257lt_sysroot= |
1235case ${with_sysroot} in #( | 1258case $with_sysroot in #( |
1236 yes) | 1259 yes) |
1237 if test "$GCC" = yes; then | 1260 if test yes = "$GCC"; then |
1238 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 1239 fi 1240 ;; #( 1241 /*) 1242 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 1243 ;; #( 1244 no|'') 1245 ;; #( 1246 *) | 1261 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 1262 fi 1263 ;; #( 1264 /*) 1265 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 1266 ;; #( 1267 no|'') 1268 ;; #( 1269 *) |
1247 AC_MSG_RESULT([${with_sysroot}]) | 1270 AC_MSG_RESULT([$with_sysroot]) |
1248 AC_MSG_ERROR([The sysroot must be an absolute path.]) 1249 ;; 1250esac 1251 1252 AC_MSG_RESULT([${lt_sysroot:-no}]) 1253_LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl | 1271 AC_MSG_ERROR([The sysroot must be an absolute path.]) 1272 ;; 1273esac 1274 1275 AC_MSG_RESULT([${lt_sysroot:-no}]) 1276_LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl |
1254[dependent libraries, and in which our libraries should be installed.])]) | 1277[dependent libraries, and where our libraries should be installed.])]) |
1255 1256# _LT_ENABLE_LOCK 1257# --------------- 1258m4_defun([_LT_ENABLE_LOCK], 1259[AC_ARG_ENABLE([libtool-lock], 1260 [AS_HELP_STRING([--disable-libtool-lock], 1261 [avoid locking (might break parallel builds)])]) | 1278 1279# _LT_ENABLE_LOCK 1280# --------------- 1281m4_defun([_LT_ENABLE_LOCK], 1282[AC_ARG_ENABLE([libtool-lock], 1283 [AS_HELP_STRING([--disable-libtool-lock], 1284 [avoid locking (might break parallel builds)])]) |
1262test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | 1285test no = "$enable_libtool_lock" || enable_libtool_lock=yes |
1263 1264# Some flags need to be propagated to the compiler or linker for good 1265# libtool support. 1266case $host in 1267ia64-*-hpux*) | 1286 1287# Some flags need to be propagated to the compiler or linker for good 1288# libtool support. 1289case $host in 1290ia64-*-hpux*) |
1268 # Find out which ABI we are using. | 1291 # Find out what ABI is being produced by ac_compile, and set mode 1292 # options accordingly. |
1269 echo 'int i;' > conftest.$ac_ext 1270 if AC_TRY_EVAL(ac_compile); then 1271 case `/usr/bin/file conftest.$ac_objext` in 1272 *ELF-32*) | 1293 echo 'int i;' > conftest.$ac_ext 1294 if AC_TRY_EVAL(ac_compile); then 1295 case `/usr/bin/file conftest.$ac_objext` in 1296 *ELF-32*) |
1273 HPUX_IA64_MODE="32" | 1297 HPUX_IA64_MODE=32 |
1274 ;; 1275 *ELF-64*) | 1298 ;; 1299 *ELF-64*) |
1276 HPUX_IA64_MODE="64" | 1300 HPUX_IA64_MODE=64 |
1277 ;; 1278 esac 1279 fi 1280 rm -rf conftest* 1281 ;; 1282*-*-irix6*) | 1301 ;; 1302 esac 1303 fi 1304 rm -rf conftest* 1305 ;; 1306*-*-irix6*) |
1283 # Find out which ABI we are using. | 1307 # Find out what ABI is being produced by ac_compile, and set linker 1308 # options accordingly. |
1284 echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext 1285 if AC_TRY_EVAL(ac_compile); then | 1309 echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext 1310 if AC_TRY_EVAL(ac_compile); then |
1286 if test "$lt_cv_prog_gnu_ld" = yes; then | 1311 if test yes = "$lt_cv_prog_gnu_ld"; then |
1287 case `/usr/bin/file conftest.$ac_objext` in 1288 *32-bit*) 1289 LD="${LD-ld} -melf32bsmip" 1290 ;; 1291 *N32*) 1292 LD="${LD-ld} -melf32bmipn32" 1293 ;; 1294 *64-bit*) --- 12 unchanged lines hidden (view full) --- 1307 LD="${LD-ld} -64" 1308 ;; 1309 esac 1310 fi 1311 fi 1312 rm -rf conftest* 1313 ;; 1314 | 1312 case `/usr/bin/file conftest.$ac_objext` in 1313 *32-bit*) 1314 LD="${LD-ld} -melf32bsmip" 1315 ;; 1316 *N32*) 1317 LD="${LD-ld} -melf32bmipn32" 1318 ;; 1319 *64-bit*) --- 12 unchanged lines hidden (view full) --- 1332 LD="${LD-ld} -64" 1333 ;; 1334 esac 1335 fi 1336 fi 1337 rm -rf conftest* 1338 ;; 1339 |
1315x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ | 1340mips64*-*linux*) 1341 # Find out what ABI is being produced by ac_compile, and set linker 1342 # options accordingly. 1343 echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext 1344 if AC_TRY_EVAL(ac_compile); then 1345 emul=elf 1346 case `/usr/bin/file conftest.$ac_objext` in 1347 *32-bit*) 1348 emul="${emul}32" 1349 ;; 1350 *64-bit*) 1351 emul="${emul}64" 1352 ;; 1353 esac 1354 case `/usr/bin/file conftest.$ac_objext` in 1355 *MSB*) 1356 emul="${emul}btsmip" 1357 ;; 1358 *LSB*) 1359 emul="${emul}ltsmip" 1360 ;; 1361 esac 1362 case `/usr/bin/file conftest.$ac_objext` in 1363 *N32*) 1364 emul="${emul}n32" 1365 ;; 1366 esac 1367 LD="${LD-ld} -m $emul" 1368 fi 1369 rm -rf conftest* 1370 ;; 1371 1372x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ |
1316s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | 1373s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
1317 # Find out which ABI we are using. | 1374 # Find out what ABI is being produced by ac_compile, and set linker 1375 # options accordingly. Note that the listed cases only cover the 1376 # situations where additional linker options are needed (such as when 1377 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 1378 # vice versa); the common cases where no linker options are needed do 1379 # not appear in the list. |
1318 echo 'int i;' > conftest.$ac_ext 1319 if AC_TRY_EVAL(ac_compile); then 1320 case `/usr/bin/file conftest.o` in 1321 *32-bit*) 1322 case $host in 1323 x86_64-*kfreebsd*-gnu) 1324 LD="${LD-ld} -m elf_i386_fbsd" 1325 ;; 1326 x86_64-*linux*) | 1380 echo 'int i;' > conftest.$ac_ext 1381 if AC_TRY_EVAL(ac_compile); then 1382 case `/usr/bin/file conftest.o` in 1383 *32-bit*) 1384 case $host in 1385 x86_64-*kfreebsd*-gnu) 1386 LD="${LD-ld} -m elf_i386_fbsd" 1387 ;; 1388 x86_64-*linux*) |
1327 LD="${LD-ld} -m elf_i386" | 1389 case `/usr/bin/file conftest.o` in 1390 *x86-64*) 1391 LD="${LD-ld} -m elf32_x86_64" 1392 ;; 1393 *) 1394 LD="${LD-ld} -m elf_i386" 1395 ;; 1396 esac |
1328 ;; | 1397 ;; |
1329 ppc64-*linux*|powerpc64-*linux*) | 1398 powerpc64le-*linux*) 1399 LD="${LD-ld} -m elf32lppclinux" 1400 ;; 1401 powerpc64-*linux*) |
1330 LD="${LD-ld} -m elf32ppclinux" 1331 ;; 1332 s390x-*linux*) 1333 LD="${LD-ld} -m elf_s390" 1334 ;; 1335 sparc64-*linux*) 1336 LD="${LD-ld} -m elf32_sparc" 1337 ;; 1338 esac 1339 ;; 1340 *64-bit*) 1341 case $host in 1342 x86_64-*kfreebsd*-gnu) 1343 LD="${LD-ld} -m elf_x86_64_fbsd" 1344 ;; 1345 x86_64-*linux*) 1346 LD="${LD-ld} -m elf_x86_64" 1347 ;; | 1402 LD="${LD-ld} -m elf32ppclinux" 1403 ;; 1404 s390x-*linux*) 1405 LD="${LD-ld} -m elf_s390" 1406 ;; 1407 sparc64-*linux*) 1408 LD="${LD-ld} -m elf32_sparc" 1409 ;; 1410 esac 1411 ;; 1412 *64-bit*) 1413 case $host in 1414 x86_64-*kfreebsd*-gnu) 1415 LD="${LD-ld} -m elf_x86_64_fbsd" 1416 ;; 1417 x86_64-*linux*) 1418 LD="${LD-ld} -m elf_x86_64" 1419 ;; |
1348 ppc*-*linux*|powerpc*-*linux*) | 1420 powerpcle-*linux*) 1421 LD="${LD-ld} -m elf64lppc" 1422 ;; 1423 powerpc-*linux*) |
1349 LD="${LD-ld} -m elf64ppc" 1350 ;; 1351 s390*-*linux*|s390*-*tpf*) 1352 LD="${LD-ld} -m elf64_s390" 1353 ;; 1354 sparc*-*linux*) 1355 LD="${LD-ld} -m elf64_sparc" 1356 ;; 1357 esac 1358 ;; 1359 esac 1360 fi 1361 rm -rf conftest* 1362 ;; 1363 1364*-*-sco3.2v5*) 1365 # On SCO OpenServer 5, we need -belf to get full-featured binaries. | 1424 LD="${LD-ld} -m elf64ppc" 1425 ;; 1426 s390*-*linux*|s390*-*tpf*) 1427 LD="${LD-ld} -m elf64_s390" 1428 ;; 1429 sparc*-*linux*) 1430 LD="${LD-ld} -m elf64_sparc" 1431 ;; 1432 esac 1433 ;; 1434 esac 1435 fi 1436 rm -rf conftest* 1437 ;; 1438 1439*-*-sco3.2v5*) 1440 # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
1366 SAVE_CFLAGS="$CFLAGS" | 1441 SAVE_CFLAGS=$CFLAGS |
1367 CFLAGS="$CFLAGS -belf" 1368 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, 1369 [AC_LANG_PUSH(C) 1370 AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) 1371 AC_LANG_POP]) | 1442 CFLAGS="$CFLAGS -belf" 1443 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, 1444 [AC_LANG_PUSH(C) 1445 AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) 1446 AC_LANG_POP]) |
1372 if test x"$lt_cv_cc_needs_belf" != x"yes"; then | 1447 if test yes != "$lt_cv_cc_needs_belf"; then |
1373 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | 1448 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
1374 CFLAGS="$SAVE_CFLAGS" | 1449 CFLAGS=$SAVE_CFLAGS |
1375 fi 1376 ;; 1377*-*solaris*) | 1450 fi 1451 ;; 1452*-*solaris*) |
1378 # Find out which ABI we are using. | 1453 # Find out what ABI is being produced by ac_compile, and set linker 1454 # options accordingly. |
1379 echo 'int i;' > conftest.$ac_ext 1380 if AC_TRY_EVAL(ac_compile); then 1381 case `/usr/bin/file conftest.o` in 1382 *64-bit*) 1383 case $lt_cv_prog_gnu_ld in 1384 yes*) 1385 case $host in | 1455 echo 'int i;' > conftest.$ac_ext 1456 if AC_TRY_EVAL(ac_compile); then 1457 case `/usr/bin/file conftest.o` in 1458 *64-bit*) 1459 case $lt_cv_prog_gnu_ld in 1460 yes*) 1461 case $host in |
1386 i?86-*-solaris*) | 1462 i?86-*-solaris*|x86_64-*-solaris*) |
1387 LD="${LD-ld} -m elf_x86_64" 1388 ;; 1389 sparc*-*-solaris*) 1390 LD="${LD-ld} -m elf64_sparc" 1391 ;; 1392 esac 1393 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 1394 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then | 1463 LD="${LD-ld} -m elf_x86_64" 1464 ;; 1465 sparc*-*-solaris*) 1466 LD="${LD-ld} -m elf64_sparc" 1467 ;; 1468 esac 1469 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 1470 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then |
1395 LD="${LD-ld}_sol2" | 1471 LD=${LD-ld}_sol2 |
1396 fi 1397 ;; 1398 *) 1399 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 1400 LD="${LD-ld} -64" 1401 fi 1402 ;; 1403 esac 1404 ;; 1405 esac 1406 fi 1407 rm -rf conftest* 1408 ;; 1409esac 1410 | 1472 fi 1473 ;; 1474 *) 1475 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 1476 LD="${LD-ld} -64" 1477 fi 1478 ;; 1479 esac 1480 ;; 1481 esac 1482 fi 1483 rm -rf conftest* 1484 ;; 1485esac 1486 |
1411need_locks="$enable_libtool_lock" | 1487need_locks=$enable_libtool_lock |
1412])# _LT_ENABLE_LOCK 1413 1414 1415# _LT_PROG_AR 1416# ----------- 1417m4_defun([_LT_PROG_AR], 1418[AC_CHECK_TOOLS(AR, [ar], false) 1419: ${AR=ar} 1420: ${AR_FLAGS=cru} 1421_LT_DECL([], [AR], [1], [The archiver]) 1422_LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive]) 1423 1424AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file], 1425 [lt_cv_ar_at_file=no 1426 AC_COMPILE_IFELSE([AC_LANG_PROGRAM], 1427 [echo conftest.$ac_objext > conftest.lst 1428 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD' 1429 AC_TRY_EVAL([lt_ar_try]) | 1488])# _LT_ENABLE_LOCK 1489 1490 1491# _LT_PROG_AR 1492# ----------- 1493m4_defun([_LT_PROG_AR], 1494[AC_CHECK_TOOLS(AR, [ar], false) 1495: ${AR=ar} 1496: ${AR_FLAGS=cru} 1497_LT_DECL([], [AR], [1], [The archiver]) 1498_LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive]) 1499 1500AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file], 1501 [lt_cv_ar_at_file=no 1502 AC_COMPILE_IFELSE([AC_LANG_PROGRAM], 1503 [echo conftest.$ac_objext > conftest.lst 1504 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD' 1505 AC_TRY_EVAL([lt_ar_try]) |
1430 if test "$ac_status" -eq 0; then | 1506 if test 0 -eq "$ac_status"; then |
1431 # Ensure the archiver fails upon bogus file names. 1432 rm -f conftest.$ac_objext libconftest.a 1433 AC_TRY_EVAL([lt_ar_try]) | 1507 # Ensure the archiver fails upon bogus file names. 1508 rm -f conftest.$ac_objext libconftest.a 1509 AC_TRY_EVAL([lt_ar_try]) |
1434 if test "$ac_status" -ne 0; then | 1510 if test 0 -ne "$ac_status"; then |
1435 lt_cv_ar_at_file=@ 1436 fi 1437 fi 1438 rm -f conftest.* libconftest.a 1439 ]) 1440 ]) 1441 | 1511 lt_cv_ar_at_file=@ 1512 fi 1513 fi 1514 rm -f conftest.* libconftest.a 1515 ]) 1516 ]) 1517 |
1442if test "x$lt_cv_ar_at_file" = xno; then | 1518if test no = "$lt_cv_ar_at_file"; then |
1443 archiver_list_spec= 1444else 1445 archiver_list_spec=$lt_cv_ar_at_file 1446fi 1447_LT_DECL([], [archiver_list_spec], [1], 1448 [How to feed a file listing to the archiver]) 1449])# _LT_PROG_AR 1450 --- 14 unchanged lines hidden (view full) --- 1465 1466# Determine commands to create old-style static archives. 1467old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 1468old_postinstall_cmds='chmod 644 $oldlib' 1469old_postuninstall_cmds= 1470 1471if test -n "$RANLIB"; then 1472 case $host_os in | 1519 archiver_list_spec= 1520else 1521 archiver_list_spec=$lt_cv_ar_at_file 1522fi 1523_LT_DECL([], [archiver_list_spec], [1], 1524 [How to feed a file listing to the archiver]) 1525])# _LT_PROG_AR 1526 --- 14 unchanged lines hidden (view full) --- 1541 1542# Determine commands to create old-style static archives. 1543old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 1544old_postinstall_cmds='chmod 644 $oldlib' 1545old_postuninstall_cmds= 1546 1547if test -n "$RANLIB"; then 1548 case $host_os in |
1473 openbsd*) | 1549 bitrig* | openbsd*) |
1474 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 1475 ;; 1476 *) 1477 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 1478 ;; 1479 esac 1480 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 1481fi --- 19 unchanged lines hidden (view full) --- 1501# Check whether the given compiler option works 1502AC_DEFUN([_LT_COMPILER_OPTION], 1503[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 1504m4_require([_LT_DECL_SED])dnl 1505AC_CACHE_CHECK([$1], [$2], 1506 [$2=no 1507 m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) 1508 echo "$lt_simple_compile_test_code" > conftest.$ac_ext | 1550 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 1551 ;; 1552 *) 1553 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 1554 ;; 1555 esac 1556 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 1557fi --- 19 unchanged lines hidden (view full) --- 1577# Check whether the given compiler option works 1578AC_DEFUN([_LT_COMPILER_OPTION], 1579[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 1580m4_require([_LT_DECL_SED])dnl 1581AC_CACHE_CHECK([$1], [$2], 1582 [$2=no 1583 m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) 1584 echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
1509 lt_compiler_flag="$3" | 1585 lt_compiler_flag="$3" ## exclude from sc_useless_quotes_in_assignment |
1510 # Insert the option either (1) after the last *FLAGS variable, or 1511 # (2) before a word containing "conftest.", or (3) at the end. 1512 # Note that $ac_compile itself does not contain backslashes and begins 1513 # with a dollar sign (not a hyphen), so the echo should work correctly. 1514 # The option is referenced via a variable to avoid confusing sed. 1515 lt_compile=`echo "$ac_compile" | $SED \ 1516 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 1517 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ --- 10 unchanged lines hidden (view full) --- 1528 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 1529 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 1530 $2=yes 1531 fi 1532 fi 1533 $RM conftest* 1534]) 1535 | 1586 # Insert the option either (1) after the last *FLAGS variable, or 1587 # (2) before a word containing "conftest.", or (3) at the end. 1588 # Note that $ac_compile itself does not contain backslashes and begins 1589 # with a dollar sign (not a hyphen), so the echo should work correctly. 1590 # The option is referenced via a variable to avoid confusing sed. 1591 lt_compile=`echo "$ac_compile" | $SED \ 1592 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 1593 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ --- 10 unchanged lines hidden (view full) --- 1604 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 1605 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 1606 $2=yes 1607 fi 1608 fi 1609 $RM conftest* 1610]) 1611 |
1536if test x"[$]$2" = xyes; then | 1612if test yes = "[$]$2"; then |
1537 m4_if([$5], , :, [$5]) 1538else 1539 m4_if([$6], , :, [$6]) 1540fi 1541])# _LT_COMPILER_OPTION 1542 1543# Old name: 1544AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION]) --- 5 unchanged lines hidden (view full) --- 1550# [ACTION-SUCCESS], [ACTION-FAILURE]) 1551# ---------------------------------------------------- 1552# Check whether the given linker option works 1553AC_DEFUN([_LT_LINKER_OPTION], 1554[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 1555m4_require([_LT_DECL_SED])dnl 1556AC_CACHE_CHECK([$1], [$2], 1557 [$2=no | 1613 m4_if([$5], , :, [$5]) 1614else 1615 m4_if([$6], , :, [$6]) 1616fi 1617])# _LT_COMPILER_OPTION 1618 1619# Old name: 1620AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION]) --- 5 unchanged lines hidden (view full) --- 1626# [ACTION-SUCCESS], [ACTION-FAILURE]) 1627# ---------------------------------------------------- 1628# Check whether the given linker option works 1629AC_DEFUN([_LT_LINKER_OPTION], 1630[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 1631m4_require([_LT_DECL_SED])dnl 1632AC_CACHE_CHECK([$1], [$2], 1633 [$2=no |
1558 save_LDFLAGS="$LDFLAGS" | 1634 save_LDFLAGS=$LDFLAGS |
1559 LDFLAGS="$LDFLAGS $3" 1560 echo "$lt_simple_link_test_code" > conftest.$ac_ext 1561 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 1562 # The linker can only warn and ignore the option if not recognized 1563 # So say no if there are warnings 1564 if test -s conftest.err; then 1565 # Append any errors to the config.log. 1566 cat conftest.err 1>&AS_MESSAGE_LOG_FD 1567 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 1568 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 1569 if diff conftest.exp conftest.er2 >/dev/null; then 1570 $2=yes 1571 fi 1572 else 1573 $2=yes 1574 fi 1575 fi 1576 $RM -r conftest* | 1635 LDFLAGS="$LDFLAGS $3" 1636 echo "$lt_simple_link_test_code" > conftest.$ac_ext 1637 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 1638 # The linker can only warn and ignore the option if not recognized 1639 # So say no if there are warnings 1640 if test -s conftest.err; then 1641 # Append any errors to the config.log. 1642 cat conftest.err 1>&AS_MESSAGE_LOG_FD 1643 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 1644 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 1645 if diff conftest.exp conftest.er2 >/dev/null; then 1646 $2=yes 1647 fi 1648 else 1649 $2=yes 1650 fi 1651 fi 1652 $RM -r conftest* |
1577 LDFLAGS="$save_LDFLAGS" | 1653 LDFLAGS=$save_LDFLAGS |
1578]) 1579 | 1654]) 1655 |
1580if test x"[$]$2" = xyes; then | 1656if test yes = "[$]$2"; then |
1581 m4_if([$4], , :, [$4]) 1582else 1583 m4_if([$5], , :, [$5]) 1584fi 1585])# _LT_LINKER_OPTION 1586 1587# Old name: 1588AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION]) --- 4 unchanged lines hidden (view full) --- 1593# LT_CMD_MAX_LEN 1594#--------------- 1595AC_DEFUN([LT_CMD_MAX_LEN], 1596[AC_REQUIRE([AC_CANONICAL_HOST])dnl 1597# find the maximum length of command line arguments 1598AC_MSG_CHECKING([the maximum length of command line arguments]) 1599AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl 1600 i=0 | 1657 m4_if([$4], , :, [$4]) 1658else 1659 m4_if([$5], , :, [$5]) 1660fi 1661])# _LT_LINKER_OPTION 1662 1663# Old name: 1664AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION]) --- 4 unchanged lines hidden (view full) --- 1669# LT_CMD_MAX_LEN 1670#--------------- 1671AC_DEFUN([LT_CMD_MAX_LEN], 1672[AC_REQUIRE([AC_CANONICAL_HOST])dnl 1673# find the maximum length of command line arguments 1674AC_MSG_CHECKING([the maximum length of command line arguments]) 1675AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl 1676 i=0 |
1601 teststring="ABCD" | 1677 teststring=ABCD |
1602 1603 case $build_os in 1604 msdosdjgpp*) 1605 # On DJGPP, this test can blow up pretty badly due to problems in libc 1606 # (any single argument exceeding 2000 bytes causes a buffer overrun 1607 # during glob expansion). Even if it were fixed, the result of this 1608 # check would be larger than it should be. 1609 lt_cv_sys_max_cmd_len=12288; # 12K is about right --- 23 unchanged lines hidden (view full) --- 1633 ;; 1634 1635 amigaos*) 1636 # On AmigaOS with pdksh, this test takes hours, literally. 1637 # So we just punt and use a minimum line length of 8192. 1638 lt_cv_sys_max_cmd_len=8192; 1639 ;; 1640 | 1678 1679 case $build_os in 1680 msdosdjgpp*) 1681 # On DJGPP, this test can blow up pretty badly due to problems in libc 1682 # (any single argument exceeding 2000 bytes causes a buffer overrun 1683 # during glob expansion). Even if it were fixed, the result of this 1684 # check would be larger than it should be. 1685 lt_cv_sys_max_cmd_len=12288; # 12K is about right --- 23 unchanged lines hidden (view full) --- 1709 ;; 1710 1711 amigaos*) 1712 # On AmigaOS with pdksh, this test takes hours, literally. 1713 # So we just punt and use a minimum line length of 8192. 1714 lt_cv_sys_max_cmd_len=8192; 1715 ;; 1716 |
1641 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | 1717 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) |
1642 # This has been around since 386BSD, at least. Likely further. 1643 if test -x /sbin/sysctl; then 1644 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 1645 elif test -x /usr/sbin/sysctl; then 1646 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 1647 else 1648 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 1649 fi --- 33 unchanged lines hidden (view full) --- 1683 if test -n "$kargmax"; then 1684 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` 1685 else 1686 lt_cv_sys_max_cmd_len=32768 1687 fi 1688 ;; 1689 *) 1690 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` | 1718 # This has been around since 386BSD, at least. Likely further. 1719 if test -x /sbin/sysctl; then 1720 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 1721 elif test -x /usr/sbin/sysctl; then 1722 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 1723 else 1724 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 1725 fi --- 33 unchanged lines hidden (view full) --- 1759 if test -n "$kargmax"; then 1760 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` 1761 else 1762 lt_cv_sys_max_cmd_len=32768 1763 fi 1764 ;; 1765 *) 1766 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
1691 if test -n "$lt_cv_sys_max_cmd_len"; then | 1767 if test -n "$lt_cv_sys_max_cmd_len" && \ 1768 test undefined != "$lt_cv_sys_max_cmd_len"; then |
1692 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 1693 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 1694 else 1695 # Make teststring a little bigger before we do anything with it. 1696 # a 1K string should be a reasonable start. | 1769 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 1770 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 1771 else 1772 # Make teststring a little bigger before we do anything with it. 1773 # a 1K string should be a reasonable start. |
1697 for i in 1 2 3 4 5 6 7 8 ; do | 1774 for i in 1 2 3 4 5 6 7 8; do |
1698 teststring=$teststring$teststring 1699 done 1700 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 1701 # If test is not a shell built-in, we'll probably end up computing a 1702 # maximum length that is only half of the actual maximum length, but 1703 # we can't tell. | 1775 teststring=$teststring$teststring 1776 done 1777 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 1778 # If test is not a shell built-in, we'll probably end up computing a 1779 # maximum length that is only half of the actual maximum length, but 1780 # we can't tell. |
1704 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ | 1781 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ |
1705 = "X$teststring$teststring"; } >/dev/null 2>&1 && | 1782 = "X$teststring$teststring"; } >/dev/null 2>&1 && |
1706 test $i != 17 # 1/2 MB should be enough | 1783 test 17 != "$i" # 1/2 MB should be enough |
1707 do 1708 i=`expr $i + 1` 1709 teststring=$teststring$teststring 1710 done 1711 # Only check the string length outside the loop. 1712 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 1713 teststring= 1714 # Add a significant safety factor because C++ compilers can tack on 1715 # massive amounts of additional arguments before passing them to the 1716 # linker. It appears as though 1/2 is a usable value. 1717 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 1718 fi 1719 ;; 1720 esac 1721]) | 1784 do 1785 i=`expr $i + 1` 1786 teststring=$teststring$teststring 1787 done 1788 # Only check the string length outside the loop. 1789 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 1790 teststring= 1791 # Add a significant safety factor because C++ compilers can tack on 1792 # massive amounts of additional arguments before passing them to the 1793 # linker. It appears as though 1/2 is a usable value. 1794 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 1795 fi 1796 ;; 1797 esac 1798]) |
1722if test -n $lt_cv_sys_max_cmd_len ; then | 1799if test -n "$lt_cv_sys_max_cmd_len"; then |
1723 AC_MSG_RESULT($lt_cv_sys_max_cmd_len) 1724else 1725 AC_MSG_RESULT(none) 1726fi 1727max_cmd_len=$lt_cv_sys_max_cmd_len 1728_LT_DECL([], [max_cmd_len], [0], 1729 [What is the maximum length of a command?]) 1730])# LT_CMD_MAX_LEN --- 11 unchanged lines hidden (view full) --- 1742])# _LT_HEADER_DLFCN 1743 1744 1745# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, 1746# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) 1747# ---------------------------------------------------------------- 1748m4_defun([_LT_TRY_DLOPEN_SELF], 1749[m4_require([_LT_HEADER_DLFCN])dnl | 1800 AC_MSG_RESULT($lt_cv_sys_max_cmd_len) 1801else 1802 AC_MSG_RESULT(none) 1803fi 1804max_cmd_len=$lt_cv_sys_max_cmd_len 1805_LT_DECL([], [max_cmd_len], [0], 1806 [What is the maximum length of a command?]) 1807])# LT_CMD_MAX_LEN --- 11 unchanged lines hidden (view full) --- 1819])# _LT_HEADER_DLFCN 1820 1821 1822# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, 1823# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) 1824# ---------------------------------------------------------------- 1825m4_defun([_LT_TRY_DLOPEN_SELF], 1826[m4_require([_LT_HEADER_DLFCN])dnl |
1750if test "$cross_compiling" = yes; then : | 1827if test yes = "$cross_compiling"; then : |
1751 [$4] 1752else 1753 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 1754 lt_status=$lt_dlunknown 1755 cat > conftest.$ac_ext <<_LT_EOF 1756[#line $LINENO "configure" 1757#include "confdefs.h" 1758 --- 30 unchanged lines hidden (view full) --- 1789# else 1790# define LT_DLLAZY_OR_NOW 0 1791# endif 1792# endif 1793# endif 1794# endif 1795#endif 1796 | 1828 [$4] 1829else 1830 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 1831 lt_status=$lt_dlunknown 1832 cat > conftest.$ac_ext <<_LT_EOF 1833[#line $LINENO "configure" 1834#include "confdefs.h" 1835 --- 30 unchanged lines hidden (view full) --- 1866# else 1867# define LT_DLLAZY_OR_NOW 0 1868# endif 1869# endif 1870# endif 1871# endif 1872#endif 1873 |
1797/* When -fvisbility=hidden is used, assume the code has been annotated | 1874/* When -fvisibility=hidden is used, assume the code has been annotated |
1798 correspondingly for the symbols needed. */ | 1875 correspondingly for the symbols needed. */ |
1799#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | 1876#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
1800int fnord () __attribute__((visibility("default"))); 1801#endif 1802 1803int fnord () { return 42; } 1804int main () 1805{ 1806 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 1807 int status = $lt_dlunknown; --- 9 unchanged lines hidden (view full) --- 1817 /* dlclose (self); */ 1818 } 1819 else 1820 puts (dlerror ()); 1821 1822 return status; 1823}] 1824_LT_EOF | 1877int fnord () __attribute__((visibility("default"))); 1878#endif 1879 1880int fnord () { return 42; } 1881int main () 1882{ 1883 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 1884 int status = $lt_dlunknown; --- 9 unchanged lines hidden (view full) --- 1894 /* dlclose (self); */ 1895 } 1896 else 1897 puts (dlerror ()); 1898 1899 return status; 1900}] 1901_LT_EOF |
1825 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then | 1902 if AC_TRY_EVAL(ac_link) && test -s "conftest$ac_exeext" 2>/dev/null; then |
1826 (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null 1827 lt_status=$? 1828 case x$lt_status in 1829 x$lt_dlno_uscore) $1 ;; 1830 x$lt_dlneed_uscore) $2 ;; 1831 x$lt_dlunknown|x*) $3 ;; 1832 esac 1833 else : --- 4 unchanged lines hidden (view full) --- 1838rm -fr conftest* 1839])# _LT_TRY_DLOPEN_SELF 1840 1841 1842# LT_SYS_DLOPEN_SELF 1843# ------------------ 1844AC_DEFUN([LT_SYS_DLOPEN_SELF], 1845[m4_require([_LT_HEADER_DLFCN])dnl | 1903 (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null 1904 lt_status=$? 1905 case x$lt_status in 1906 x$lt_dlno_uscore) $1 ;; 1907 x$lt_dlneed_uscore) $2 ;; 1908 x$lt_dlunknown|x*) $3 ;; 1909 esac 1910 else : --- 4 unchanged lines hidden (view full) --- 1915rm -fr conftest* 1916])# _LT_TRY_DLOPEN_SELF 1917 1918 1919# LT_SYS_DLOPEN_SELF 1920# ------------------ 1921AC_DEFUN([LT_SYS_DLOPEN_SELF], 1922[m4_require([_LT_HEADER_DLFCN])dnl |
1846if test "x$enable_dlopen" != xyes; then | 1923if test yes != "$enable_dlopen"; then |
1847 enable_dlopen=unknown 1848 enable_dlopen_self=unknown 1849 enable_dlopen_self_static=unknown 1850else 1851 lt_cv_dlopen=no 1852 lt_cv_dlopen_libs= 1853 1854 case $host_os in 1855 beos*) | 1924 enable_dlopen=unknown 1925 enable_dlopen_self=unknown 1926 enable_dlopen_self_static=unknown 1927else 1928 lt_cv_dlopen=no 1929 lt_cv_dlopen_libs= 1930 1931 case $host_os in 1932 beos*) |
1856 lt_cv_dlopen="load_add_on" | 1933 lt_cv_dlopen=load_add_on |
1857 lt_cv_dlopen_libs= 1858 lt_cv_dlopen_self=yes 1859 ;; 1860 1861 mingw* | pw32* | cegcc*) | 1934 lt_cv_dlopen_libs= 1935 lt_cv_dlopen_self=yes 1936 ;; 1937 1938 mingw* | pw32* | cegcc*) |
1862 lt_cv_dlopen="LoadLibrary" | 1939 lt_cv_dlopen=LoadLibrary |
1863 lt_cv_dlopen_libs= 1864 ;; 1865 1866 cygwin*) | 1940 lt_cv_dlopen_libs= 1941 ;; 1942 1943 cygwin*) |
1867 lt_cv_dlopen="dlopen" | 1944 lt_cv_dlopen=dlopen |
1868 lt_cv_dlopen_libs= 1869 ;; 1870 1871 darwin*) | 1945 lt_cv_dlopen_libs= 1946 ;; 1947 1948 darwin*) |
1872 # if libdl is installed we need to link against it | 1949 # if libdl is installed we need to link against it |
1873 AC_CHECK_LIB([dl], [dlopen], | 1950 AC_CHECK_LIB([dl], [dlopen], |
1874 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[ 1875 lt_cv_dlopen="dyld" | 1951 [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl],[ 1952 lt_cv_dlopen=dyld |
1876 lt_cv_dlopen_libs= 1877 lt_cv_dlopen_self=yes 1878 ]) 1879 ;; 1880 | 1953 lt_cv_dlopen_libs= 1954 lt_cv_dlopen_self=yes 1955 ]) 1956 ;; 1957 |
1958 tpf*) 1959 # Don't try to run any link tests for TPF. We know it's impossible 1960 # because TPF is a cross-compiler, and we know how we open DSOs. 1961 lt_cv_dlopen=dlopen 1962 lt_cv_dlopen_libs= 1963 lt_cv_dlopen_self=no 1964 ;; 1965 |
|
1881 *) 1882 AC_CHECK_FUNC([shl_load], | 1966 *) 1967 AC_CHECK_FUNC([shl_load], |
1883 [lt_cv_dlopen="shl_load"], | 1968 [lt_cv_dlopen=shl_load], |
1884 [AC_CHECK_LIB([dld], [shl_load], | 1969 [AC_CHECK_LIB([dld], [shl_load], |
1885 [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"], | 1970 [lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld], |
1886 [AC_CHECK_FUNC([dlopen], | 1971 [AC_CHECK_FUNC([dlopen], |
1887 [lt_cv_dlopen="dlopen"], | 1972 [lt_cv_dlopen=dlopen], |
1888 [AC_CHECK_LIB([dl], [dlopen], | 1973 [AC_CHECK_LIB([dl], [dlopen], |
1889 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], | 1974 [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl], |
1890 [AC_CHECK_LIB([svld], [dlopen], | 1975 [AC_CHECK_LIB([svld], [dlopen], |
1891 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], | 1976 [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld], |
1892 [AC_CHECK_LIB([dld], [dld_link], | 1977 [AC_CHECK_LIB([dld], [dld_link], |
1893 [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"]) | 1978 [lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld]) |
1894 ]) 1895 ]) 1896 ]) 1897 ]) 1898 ]) 1899 ;; 1900 esac 1901 | 1979 ]) 1980 ]) 1981 ]) 1982 ]) 1983 ]) 1984 ;; 1985 esac 1986 |
1902 if test "x$lt_cv_dlopen" != xno; then 1903 enable_dlopen=yes 1904 else | 1987 if test no = "$lt_cv_dlopen"; then |
1905 enable_dlopen=no | 1988 enable_dlopen=no |
1989 else 1990 enable_dlopen=yes |
|
1906 fi 1907 1908 case $lt_cv_dlopen in 1909 dlopen) | 1991 fi 1992 1993 case $lt_cv_dlopen in 1994 dlopen) |
1910 save_CPPFLAGS="$CPPFLAGS" 1911 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | 1995 save_CPPFLAGS=$CPPFLAGS 1996 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
1912 | 1997 |
1913 save_LDFLAGS="$LDFLAGS" | 1998 save_LDFLAGS=$LDFLAGS |
1914 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 1915 | 1999 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 2000 |
1916 save_LIBS="$LIBS" | 2001 save_LIBS=$LIBS |
1917 LIBS="$lt_cv_dlopen_libs $LIBS" 1918 1919 AC_CACHE_CHECK([whether a program can dlopen itself], 1920 lt_cv_dlopen_self, [dnl 1921 _LT_TRY_DLOPEN_SELF( 1922 lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, 1923 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) 1924 ]) 1925 | 2002 LIBS="$lt_cv_dlopen_libs $LIBS" 2003 2004 AC_CACHE_CHECK([whether a program can dlopen itself], 2005 lt_cv_dlopen_self, [dnl 2006 _LT_TRY_DLOPEN_SELF( 2007 lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, 2008 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) 2009 ]) 2010 |
1926 if test "x$lt_cv_dlopen_self" = xyes; then | 2011 if test yes = "$lt_cv_dlopen_self"; then |
1927 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 1928 AC_CACHE_CHECK([whether a statically linked program can dlopen itself], 1929 lt_cv_dlopen_self_static, [dnl 1930 _LT_TRY_DLOPEN_SELF( 1931 lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, 1932 lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) 1933 ]) 1934 fi 1935 | 2012 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 2013 AC_CACHE_CHECK([whether a statically linked program can dlopen itself], 2014 lt_cv_dlopen_self_static, [dnl 2015 _LT_TRY_DLOPEN_SELF( 2016 lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, 2017 lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) 2018 ]) 2019 fi 2020 |
1936 CPPFLAGS="$save_CPPFLAGS" 1937 LDFLAGS="$save_LDFLAGS" 1938 LIBS="$save_LIBS" | 2021 CPPFLAGS=$save_CPPFLAGS 2022 LDFLAGS=$save_LDFLAGS 2023 LIBS=$save_LIBS |
1939 ;; 1940 esac 1941 1942 case $lt_cv_dlopen_self in 1943 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 1944 *) enable_dlopen_self=unknown ;; 1945 esac 1946 --- 75 unchanged lines hidden (view full) --- 2022# _LT_COMPILER_FILE_LOCKS([TAGNAME]) 2023# ---------------------------------- 2024# Check to see if we can do hard links to lock some files if needed 2025m4_defun([_LT_COMPILER_FILE_LOCKS], 2026[m4_require([_LT_ENABLE_LOCK])dnl 2027m4_require([_LT_FILEUTILS_DEFAULTS])dnl 2028_LT_COMPILER_C_O([$1]) 2029 | 2024 ;; 2025 esac 2026 2027 case $lt_cv_dlopen_self in 2028 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 2029 *) enable_dlopen_self=unknown ;; 2030 esac 2031 --- 75 unchanged lines hidden (view full) --- 2107# _LT_COMPILER_FILE_LOCKS([TAGNAME]) 2108# ---------------------------------- 2109# Check to see if we can do hard links to lock some files if needed 2110m4_defun([_LT_COMPILER_FILE_LOCKS], 2111[m4_require([_LT_ENABLE_LOCK])dnl 2112m4_require([_LT_FILEUTILS_DEFAULTS])dnl 2113_LT_COMPILER_C_O([$1]) 2114 |
2030hard_links="nottested" 2031if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then | 2115hard_links=nottested 2116if test no = "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" && test no != "$need_locks"; then |
2032 # do not overwrite the value of need_locks provided by the user 2033 AC_MSG_CHECKING([if we can lock with hard links]) 2034 hard_links=yes 2035 $RM conftest* 2036 ln conftest.a conftest.b 2>/dev/null && hard_links=no 2037 touch conftest.a 2038 ln conftest.a conftest.b 2>&5 || hard_links=no 2039 ln conftest.a conftest.b 2>/dev/null && hard_links=no 2040 AC_MSG_RESULT([$hard_links]) | 2117 # do not overwrite the value of need_locks provided by the user 2118 AC_MSG_CHECKING([if we can lock with hard links]) 2119 hard_links=yes 2120 $RM conftest* 2121 ln conftest.a conftest.b 2>/dev/null && hard_links=no 2122 touch conftest.a 2123 ln conftest.a conftest.b 2>&5 || hard_links=no 2124 ln conftest.a conftest.b 2>/dev/null && hard_links=no 2125 AC_MSG_RESULT([$hard_links]) |
2041 if test "$hard_links" = no; then 2042 AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe]) | 2126 if test no = "$hard_links"; then 2127 AC_MSG_WARN(['$CC' does not support '-c -o', so 'make -j' may be unsafe]) |
2043 need_locks=warn 2044 fi 2045else 2046 need_locks=no 2047fi 2048_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?]) 2049])# _LT_COMPILER_FILE_LOCKS 2050 --- 10 unchanged lines hidden (view full) --- 2061 # MS-DOS does not allow filenames that begin with a dot. 2062 lt_cv_objdir=_libs 2063fi 2064rmdir .libs 2>/dev/null]) 2065objdir=$lt_cv_objdir 2066_LT_DECL([], [objdir], [0], 2067 [The name of the directory that contains temporary libtool files])dnl 2068m4_pattern_allow([LT_OBJDIR])dnl | 2128 need_locks=warn 2129 fi 2130else 2131 need_locks=no 2132fi 2133_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?]) 2134])# _LT_COMPILER_FILE_LOCKS 2135 --- 10 unchanged lines hidden (view full) --- 2146 # MS-DOS does not allow filenames that begin with a dot. 2147 lt_cv_objdir=_libs 2148fi 2149rmdir .libs 2>/dev/null]) 2150objdir=$lt_cv_objdir 2151_LT_DECL([], [objdir], [0], 2152 [The name of the directory that contains temporary libtool files])dnl 2153m4_pattern_allow([LT_OBJDIR])dnl |
2069AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/", 2070 [Define to the sub-directory in which libtool stores uninstalled libraries.]) | 2154AC_DEFINE_UNQUOTED([LT_OBJDIR], "$lt_cv_objdir/", 2155 [Define to the sub-directory where libtool stores uninstalled libraries.]) |
2071])# _LT_CHECK_OBJDIR 2072 2073 2074# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME]) 2075# -------------------------------------- 2076# Check hardcoding attributes. 2077m4_defun([_LT_LINKER_HARDCODE_LIBPATH], 2078[AC_MSG_CHECKING([how to hardcode library paths into programs]) 2079_LT_TAGVAR(hardcode_action, $1)= 2080if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" || 2081 test -n "$_LT_TAGVAR(runpath_var, $1)" || | 2156])# _LT_CHECK_OBJDIR 2157 2158 2159# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME]) 2160# -------------------------------------- 2161# Check hardcoding attributes. 2162m4_defun([_LT_LINKER_HARDCODE_LIBPATH], 2163[AC_MSG_CHECKING([how to hardcode library paths into programs]) 2164_LT_TAGVAR(hardcode_action, $1)= 2165if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" || 2166 test -n "$_LT_TAGVAR(runpath_var, $1)" || |
2082 test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then | 2167 test yes = "$_LT_TAGVAR(hardcode_automatic, $1)"; then |
2083 2084 # We can hardcode non-existent directories. | 2168 2169 # We can hardcode non-existent directories. |
2085 if test "$_LT_TAGVAR(hardcode_direct, $1)" != no && | 2170 if test no != "$_LT_TAGVAR(hardcode_direct, $1)" && |
2086 # If the only mechanism to avoid hardcoding is shlibpath_var, we 2087 # have to relink, otherwise we might link with an installed library 2088 # when we should be linking with a yet-to-be-installed one | 2171 # If the only mechanism to avoid hardcoding is shlibpath_var, we 2172 # have to relink, otherwise we might link with an installed library 2173 # when we should be linking with a yet-to-be-installed one |
2089 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no && 2090 test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then | 2174 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" && 2175 test no != "$_LT_TAGVAR(hardcode_minus_L, $1)"; then |
2091 # Linking always hardcodes the temporary library directory. 2092 _LT_TAGVAR(hardcode_action, $1)=relink 2093 else 2094 # We can link without hardcoding, and we can hardcode nonexisting dirs. 2095 _LT_TAGVAR(hardcode_action, $1)=immediate 2096 fi 2097else 2098 # We cannot hardcode anything, or else we can only hardcode existing 2099 # directories. 2100 _LT_TAGVAR(hardcode_action, $1)=unsupported 2101fi 2102AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)]) 2103 | 2176 # Linking always hardcodes the temporary library directory. 2177 _LT_TAGVAR(hardcode_action, $1)=relink 2178 else 2179 # We can link without hardcoding, and we can hardcode nonexisting dirs. 2180 _LT_TAGVAR(hardcode_action, $1)=immediate 2181 fi 2182else 2183 # We cannot hardcode anything, or else we can only hardcode existing 2184 # directories. 2185 _LT_TAGVAR(hardcode_action, $1)=unsupported 2186fi 2187AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)]) 2188 |
2104if test "$_LT_TAGVAR(hardcode_action, $1)" = relink || 2105 test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then | 2189if test relink = "$_LT_TAGVAR(hardcode_action, $1)" || 2190 test yes = "$_LT_TAGVAR(inherit_rpath, $1)"; then |
2106 # Fast installation is not supported 2107 enable_fast_install=no | 2191 # Fast installation is not supported 2192 enable_fast_install=no |
2108elif test "$shlibpath_overrides_runpath" = yes || 2109 test "$enable_shared" = no; then | 2193elif test yes = "$shlibpath_overrides_runpath" || 2194 test no = "$enable_shared"; then |
2110 # Fast installation is not necessary 2111 enable_fast_install=needless 2112fi 2113_LT_TAGDECL([], [hardcode_action], [0], 2114 [How to hardcode a shared library path into an executable]) 2115])# _LT_LINKER_HARDCODE_LIBPATH 2116 2117 --- 7 unchanged lines hidden (view full) --- 2125if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 2126 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 2127 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 2128 AC_MSG_RESULT([yes]) 2129else 2130# FIXME - insert some real tests, host_os isn't really good enough 2131 case $host_os in 2132 darwin*) | 2195 # Fast installation is not necessary 2196 enable_fast_install=needless 2197fi 2198_LT_TAGDECL([], [hardcode_action], [0], 2199 [How to hardcode a shared library path into an executable]) 2200])# _LT_LINKER_HARDCODE_LIBPATH 2201 2202 --- 7 unchanged lines hidden (view full) --- 2210if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 2211 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 2212 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 2213 AC_MSG_RESULT([yes]) 2214else 2215# FIXME - insert some real tests, host_os isn't really good enough 2216 case $host_os in 2217 darwin*) |
2133 if test -n "$STRIP" ; then | 2218 if test -n "$STRIP"; then |
2134 striplib="$STRIP -x" 2135 old_striplib="$STRIP -S" 2136 AC_MSG_RESULT([yes]) 2137 else 2138 AC_MSG_RESULT([no]) 2139 fi 2140 ;; 2141 *) 2142 AC_MSG_RESULT([no]) 2143 ;; 2144 esac 2145fi 2146_LT_DECL([], [old_striplib], [1], [Commands to strip libraries]) 2147_LT_DECL([], [striplib], [1]) 2148])# _LT_CMD_STRIPLIB 2149 2150 | 2219 striplib="$STRIP -x" 2220 old_striplib="$STRIP -S" 2221 AC_MSG_RESULT([yes]) 2222 else 2223 AC_MSG_RESULT([no]) 2224 fi 2225 ;; 2226 *) 2227 AC_MSG_RESULT([no]) 2228 ;; 2229 esac 2230fi 2231_LT_DECL([], [old_striplib], [1], [Commands to strip libraries]) 2232_LT_DECL([], [striplib], [1]) 2233])# _LT_CMD_STRIPLIB 2234 2235 |
2236# _LT_PREPARE_MUNGE_PATH_LIST 2237# --------------------------- 2238# Make sure func_munge_path_list() is defined correctly. 2239m4_defun([_LT_PREPARE_MUNGE_PATH_LIST], 2240[[# func_munge_path_list VARIABLE PATH 2241# ----------------------------------- 2242# VARIABLE is name of variable containing _space_ separated list of 2243# directories to be munged by the contents of PATH, which is string 2244# having a format: 2245# "DIR[:DIR]:" 2246# string "DIR[ DIR]" will be prepended to VARIABLE 2247# ":DIR[:DIR]" 2248# string "DIR[ DIR]" will be appended to VARIABLE 2249# "DIRP[:DIRP]::[DIRA:]DIRA" 2250# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 2251# "DIRA[ DIRA]" will be appended to VARIABLE 2252# "DIR[:DIR]" 2253# VARIABLE will be replaced by "DIR[ DIR]" 2254func_munge_path_list () 2255{ 2256 case x@S|@2 in 2257 x) 2258 ;; 2259 *:) 2260 eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'` \@S|@@S|@1\" 2261 ;; 2262 x:*) 2263 eval @S|@1=\"\@S|@@S|@1 `$ECHO @S|@2 | $SED 's/:/ /g'`\" 2264 ;; 2265 *::*) 2266 eval @S|@1=\"\@S|@@S|@1\ `$ECHO @S|@2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 2267 eval @S|@1=\"`$ECHO @S|@2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \@S|@@S|@1\" 2268 ;; 2269 *) 2270 eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'`\" 2271 ;; 2272 esac 2273} 2274]])# _LT_PREPARE_PATH_LIST 2275 2276 |
|
2151# _LT_SYS_DYNAMIC_LINKER([TAG]) 2152# ----------------------------- 2153# PORTME Fill in your ld.so characteristics 2154m4_defun([_LT_SYS_DYNAMIC_LINKER], 2155[AC_REQUIRE([AC_CANONICAL_HOST])dnl 2156m4_require([_LT_DECL_EGREP])dnl 2157m4_require([_LT_FILEUTILS_DEFAULTS])dnl 2158m4_require([_LT_DECL_OBJDUMP])dnl 2159m4_require([_LT_DECL_SED])dnl 2160m4_require([_LT_CHECK_SHELL_FEATURES])dnl | 2277# _LT_SYS_DYNAMIC_LINKER([TAG]) 2278# ----------------------------- 2279# PORTME Fill in your ld.so characteristics 2280m4_defun([_LT_SYS_DYNAMIC_LINKER], 2281[AC_REQUIRE([AC_CANONICAL_HOST])dnl 2282m4_require([_LT_DECL_EGREP])dnl 2283m4_require([_LT_FILEUTILS_DEFAULTS])dnl 2284m4_require([_LT_DECL_OBJDUMP])dnl 2285m4_require([_LT_DECL_SED])dnl 2286m4_require([_LT_CHECK_SHELL_FEATURES])dnl |
2287m4_require([_LT_PREPARE_MUNGE_PATH_LIST])dnl |
|
2161AC_MSG_CHECKING([dynamic linker characteristics]) 2162m4_if([$1], 2163 [], [ | 2288AC_MSG_CHECKING([dynamic linker characteristics]) 2289m4_if([$1], 2290 [], [ |
2164if test "$GCC" = yes; then | 2291if test yes = "$GCC"; then |
2165 case $host_os in | 2292 case $host_os in |
2166 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 2167 *) lt_awk_arg="/^libraries:/" ;; | 2293 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 2294 *) lt_awk_arg='/^libraries:/' ;; |
2168 esac 2169 case $host_os in | 2295 esac 2296 case $host_os in |
2170 mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;; 2171 *) lt_sed_strip_eq="s,=/,/,g" ;; | 2297 mingw* | cegcc*) lt_sed_strip_eq='s|=\([[A-Za-z]]:\)|\1|g' ;; 2298 *) lt_sed_strip_eq='s|=/|/|g' ;; |
2172 esac 2173 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 2174 case $lt_search_path_spec in 2175 *\;*) 2176 # if the path contains ";" then we assume it to be the separator 2177 # otherwise default to the standard path separator (i.e. ":") - it is 2178 # assumed that no part of a normal pathname contains ";" but that should 2179 # okay in the real world where ";" in dirpaths is itself problematic. 2180 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 2181 ;; 2182 *) 2183 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 2184 ;; 2185 esac 2186 # Ok, now we have the path, separated by spaces, we can step through it | 2299 esac 2300 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 2301 case $lt_search_path_spec in 2302 *\;*) 2303 # if the path contains ";" then we assume it to be the separator 2304 # otherwise default to the standard path separator (i.e. ":") - it is 2305 # assumed that no part of a normal pathname contains ";" but that should 2306 # okay in the real world where ";" in dirpaths is itself problematic. 2307 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 2308 ;; 2309 *) 2310 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 2311 ;; 2312 esac 2313 # Ok, now we have the path, separated by spaces, we can step through it |
2187 # and add multilib dir if necessary. | 2314 # and add multilib dir if necessary... |
2188 lt_tmp_lt_search_path_spec= | 2315 lt_tmp_lt_search_path_spec= |
2189 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | 2316 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 2317 # ...but if some path component already ends with the multilib dir we assume 2318 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 2319 case "$lt_multi_os_dir; $lt_search_path_spec " in 2320 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 2321 lt_multi_os_dir= 2322 ;; 2323 esac |
2190 for lt_sys_path in $lt_search_path_spec; do | 2324 for lt_sys_path in $lt_search_path_spec; do |
2191 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 2192 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 2193 else | 2325 if test -d "$lt_sys_path$lt_multi_os_dir"; then 2326 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 2327 elif test -n "$lt_multi_os_dir"; then |
2194 test -d "$lt_sys_path" && \ 2195 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 2196 fi 2197 done 2198 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' | 2328 test -d "$lt_sys_path" && \ 2329 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 2330 fi 2331 done 2332 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' |
2199BEGIN {RS=" "; FS="/|\n";} { 2200 lt_foo=""; 2201 lt_count=0; | 2333BEGIN {RS = " "; FS = "/|\n";} { 2334 lt_foo = ""; 2335 lt_count = 0; |
2202 for (lt_i = NF; lt_i > 0; lt_i--) { 2203 if ($lt_i != "" && $lt_i != ".") { 2204 if ($lt_i == "..") { 2205 lt_count++; 2206 } else { 2207 if (lt_count == 0) { | 2336 for (lt_i = NF; lt_i > 0; lt_i--) { 2337 if ($lt_i != "" && $lt_i != ".") { 2338 if ($lt_i == "..") { 2339 lt_count++; 2340 } else { 2341 if (lt_count == 0) { |
2208 lt_foo="/" $lt_i lt_foo; | 2342 lt_foo = "/" $lt_i lt_foo; |
2209 } else { 2210 lt_count--; 2211 } 2212 } 2213 } 2214 } 2215 if (lt_foo != "") { lt_freq[[lt_foo]]++; } 2216 if (lt_freq[[lt_foo]] == 1) { print lt_foo; } 2217}'` 2218 # AWK program above erroneously prepends '/' to C:/dos/paths 2219 # for these hosts. 2220 case $host_os in 2221 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | 2343 } else { 2344 lt_count--; 2345 } 2346 } 2347 } 2348 } 2349 if (lt_foo != "") { lt_freq[[lt_foo]]++; } 2350 if (lt_freq[[lt_foo]] == 1) { print lt_foo; } 2351}'` 2352 # AWK program above erroneously prepends '/' to C:/dos/paths 2353 # for these hosts. 2354 case $host_os in 2355 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ |
2222 $SED 's,/\([[A-Za-z]]:\),\1,g'` ;; | 2356 $SED 's|/\([[A-Za-z]]:\)|\1|g'` ;; |
2223 esac 2224 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 2225else 2226 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 2227fi]) 2228library_names_spec= 2229libname_spec='lib$name' 2230soname_spec= | 2357 esac 2358 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 2359else 2360 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 2361fi]) 2362library_names_spec= 2363libname_spec='lib$name' 2364soname_spec= |
2231shrext_cmds=".so" | 2365shrext_cmds=.so |
2232postinstall_cmds= 2233postuninstall_cmds= 2234finish_cmds= 2235finish_eval= 2236shlibpath_var= 2237shlibpath_overrides_runpath=unknown 2238version_type=none 2239dynamic_linker="$host_os ld.so" 2240sys_lib_dlsearch_path_spec="/lib /usr/lib" 2241need_lib_prefix=unknown 2242hardcode_into_libs=no 2243 2244# when you set need_version to no, make sure it does not cause -set_version 2245# flags to be left without arguments 2246need_version=unknown 2247 | 2366postinstall_cmds= 2367postuninstall_cmds= 2368finish_cmds= 2369finish_eval= 2370shlibpath_var= 2371shlibpath_overrides_runpath=unknown 2372version_type=none 2373dynamic_linker="$host_os ld.so" 2374sys_lib_dlsearch_path_spec="/lib /usr/lib" 2375need_lib_prefix=unknown 2376hardcode_into_libs=no 2377 2378# when you set need_version to no, make sure it does not cause -set_version 2379# flags to be left without arguments 2380need_version=unknown 2381 |
2382AC_ARG_VAR([LT_SYS_LIBRARY_PATH], 2383[User-defined run-time library search path.]) 2384 |
|
2248case $host_os in 2249aix3*) 2250 version_type=linux # correct to gnu/linux during the next big refactor | 2385case $host_os in 2386aix3*) 2387 version_type=linux # correct to gnu/linux during the next big refactor |
2251 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | 2388 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' |
2252 shlibpath_var=LIBPATH 2253 2254 # AIX 3 has no versioning support, so we append a major version to the name. | 2389 shlibpath_var=LIBPATH 2390 2391 # AIX 3 has no versioning support, so we append a major version to the name. |
2255 soname_spec='${libname}${release}${shared_ext}$major' | 2392 soname_spec='$libname$release$shared_ext$major' |
2256 ;; 2257 2258aix[[4-9]]*) 2259 version_type=linux # correct to gnu/linux during the next big refactor 2260 need_lib_prefix=no 2261 need_version=no 2262 hardcode_into_libs=yes | 2393 ;; 2394 2395aix[[4-9]]*) 2396 version_type=linux # correct to gnu/linux during the next big refactor 2397 need_lib_prefix=no 2398 need_version=no 2399 hardcode_into_libs=yes |
2263 if test "$host_cpu" = ia64; then | 2400 if test ia64 = "$host_cpu"; then |
2264 # AIX 5 supports IA64 | 2401 # AIX 5 supports IA64 |
2265 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | 2402 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' |
2266 shlibpath_var=LD_LIBRARY_PATH 2267 else 2268 # With GCC up to 2.95.x, collect2 would create an import file 2269 # for dependence libraries. The import file would start with | 2403 shlibpath_var=LD_LIBRARY_PATH 2404 else 2405 # With GCC up to 2.95.x, collect2 would create an import file 2406 # for dependence libraries. The import file would start with |
2270 # the line `#! .'. This would cause the generated library to 2271 # depend on `.', always an invalid library. This was fixed in | 2407 # the line '#! .'. This would cause the generated library to 2408 # depend on '.', always an invalid library. This was fixed in |
2272 # development snapshots of GCC prior to 3.0. 2273 case $host_os in 2274 aix4 | aix4.[[01]] | aix4.[[01]].*) 2275 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 2276 echo ' yes ' | 2409 # development snapshots of GCC prior to 3.0. 2410 case $host_os in 2411 aix4 | aix4.[[01]] | aix4.[[01]].*) 2412 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 2413 echo ' yes ' |
2277 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | 2414 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then |
2278 : 2279 else 2280 can_build_shared=no 2281 fi 2282 ;; 2283 esac | 2415 : 2416 else 2417 can_build_shared=no 2418 fi 2419 ;; 2420 esac |
2284 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | 2421 # Using Import Files as archive members, it is possible to support 2422 # filename-based versioning of shared library archives on AIX. While 2423 # this would work for both with and without runtime linking, it will 2424 # prevent static linking of such archives. So we do filename-based 2425 # shared library versioning with .so extension only, which is used 2426 # when both runtime linking and shared linking is enabled. 2427 # Unfortunately, runtime linking may impact performance, so we do 2428 # not want this to be the default eventually. Also, we use the 2429 # versioned .so libs for executables only if there is the -brtl 2430 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 2431 # To allow for filename-based versioning support, we need to create 2432 # libNAME.so.V as an archive file, containing: 2433 # *) an Import File, referring to the versioned filename of the 2434 # archive as well as the shared archive member, telling the 2435 # bitwidth (32 or 64) of that shared object, and providing the 2436 # list of exported symbols of that shared object, eventually 2437 # decorated with the 'weak' keyword 2438 # *) the shared object with the F_LOADONLY flag set, to really avoid 2439 # it being seen by the linker. 2440 # At run time we better use the real file rather than another symlink, 2441 # but for link time we create the symlink libNAME.so -> libNAME.so.V 2442 2443 case $with_aix_soname,$aix_use_runtimelinking in 2444 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct |
2285 # soname into executable. Probably we can add versioning support to 2286 # collect2, so additional links can be useful in future. | 2445 # soname into executable. Probably we can add versioning support to 2446 # collect2, so additional links can be useful in future. |
2287 if test "$aix_use_runtimelinking" = yes; then | 2447 aix,yes) # traditional libtool 2448 dynamic_linker='AIX unversionable lib.so' |
2288 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 2289 # instead of lib<name>.a to let people know that these are not 2290 # typical AIX shared libraries. | 2449 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 2450 # instead of lib<name>.a to let people know that these are not 2451 # typical AIX shared libraries. |
2291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2292 else | 2452 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 2453 ;; 2454 aix,no) # traditional AIX only 2455 dynamic_linker='AIX lib.a[(]lib.so.V[)]' |
2293 # We preserve .a as extension for shared libraries through AIX4.2 2294 # and later when we are not doing run time linking. | 2456 # We preserve .a as extension for shared libraries through AIX4.2 2457 # and later when we are not doing run time linking. |
2295 library_names_spec='${libname}${release}.a $libname.a' 2296 soname_spec='${libname}${release}${shared_ext}$major' 2297 fi | 2458 library_names_spec='$libname$release.a $libname.a' 2459 soname_spec='$libname$release$shared_ext$major' 2460 ;; 2461 svr4,*) # full svr4 only 2462 dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)]" 2463 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 2464 # We do not specify a path in Import Files, so LIBPATH fires. 2465 shlibpath_overrides_runpath=yes 2466 ;; 2467 *,yes) # both, prefer svr4 2468 dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)], lib.a[(]lib.so.V[)]" 2469 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 2470 # unpreferred sharedlib libNAME.a needs extra handling 2471 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 2472 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 2473 # We do not specify a path in Import Files, so LIBPATH fires. 2474 shlibpath_overrides_runpath=yes 2475 ;; 2476 *,no) # both, prefer aix 2477 dynamic_linker="AIX lib.a[(]lib.so.V[)], lib.so.V[(]$shared_archive_member_spec.o[)]" 2478 library_names_spec='$libname$release.a $libname.a' 2479 soname_spec='$libname$release$shared_ext$major' 2480 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 2481 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 2482 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 2483 ;; 2484 esac |
2298 shlibpath_var=LIBPATH 2299 fi 2300 ;; 2301 2302amigaos*) 2303 case $host_cpu in 2304 powerpc) 2305 # Since July 2007 AmigaOS4 officially supports .so libraries. 2306 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | 2485 shlibpath_var=LIBPATH 2486 fi 2487 ;; 2488 2489amigaos*) 2490 case $host_cpu in 2491 powerpc) 2492 # Since July 2007 AmigaOS4 officially supports .so libraries. 2493 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. |
2307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 2494 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
2308 ;; 2309 m68k) 2310 library_names_spec='$libname.ixlibrary $libname.a' 2311 # Create ${libname}_ixlibrary.a entries in /sys/libs. | 2495 ;; 2496 m68k) 2497 library_names_spec='$libname.ixlibrary $libname.a' 2498 # Create ${libname}_ixlibrary.a entries in /sys/libs. |
2312 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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' | 2499 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' |
2313 ;; 2314 esac 2315 ;; 2316 2317beos*) | 2500 ;; 2501 esac 2502 ;; 2503 2504beos*) |
2318 library_names_spec='${libname}${shared_ext}' | 2505 library_names_spec='$libname$shared_ext' |
2319 dynamic_linker="$host_os ld.so" 2320 shlibpath_var=LIBRARY_PATH 2321 ;; 2322 2323bsdi[[45]]*) 2324 version_type=linux # correct to gnu/linux during the next big refactor 2325 need_version=no | 2506 dynamic_linker="$host_os ld.so" 2507 shlibpath_var=LIBRARY_PATH 2508 ;; 2509 2510bsdi[[45]]*) 2511 version_type=linux # correct to gnu/linux during the next big refactor 2512 need_version=no |
2326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2327 soname_spec='${libname}${release}${shared_ext}$major' | 2513 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 2514 soname_spec='$libname$release$shared_ext$major' |
2328 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 2329 shlibpath_var=LD_LIBRARY_PATH 2330 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 2331 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 2332 # the default ld.so.conf also contains /usr/contrib/lib and 2333 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 2334 # libtool to hard-code these into programs 2335 ;; 2336 2337cygwin* | mingw* | pw32* | cegcc*) 2338 version_type=windows | 2515 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 2516 shlibpath_var=LD_LIBRARY_PATH 2517 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 2518 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 2519 # the default ld.so.conf also contains /usr/contrib/lib and 2520 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 2521 # libtool to hard-code these into programs 2522 ;; 2523 2524cygwin* | mingw* | pw32* | cegcc*) 2525 version_type=windows |
2339 shrext_cmds=".dll" | 2526 shrext_cmds=.dll |
2340 need_version=no 2341 need_lib_prefix=no 2342 2343 case $GCC,$cc_basename in 2344 yes,*) 2345 # gcc 2346 library_names_spec='$libname.dll.a' 2347 # DLL is installed to $(libdir)/../bin by postinstall_cmds | 2527 need_version=no 2528 need_lib_prefix=no 2529 2530 case $GCC,$cc_basename in 2531 yes,*) 2532 # gcc 2533 library_names_spec='$libname.dll.a' 2534 # DLL is installed to $(libdir)/../bin by postinstall_cmds |
2348 postinstall_cmds='base_file=`basename \${file}`~ 2349 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | 2535 postinstall_cmds='base_file=`basename \$file`~ 2536 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ |
2350 dldir=$destdir/`dirname \$dlpath`~ 2351 test -d \$dldir || mkdir -p \$dldir~ 2352 $install_prog $dir/$dlname \$dldir/$dlname~ 2353 chmod a+x \$dldir/$dlname~ 2354 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 2355 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 2356 fi' 2357 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 2358 dlpath=$dir/\$dldll~ 2359 $RM \$dlpath' 2360 shlibpath_overrides_runpath=yes 2361 2362 case $host_os in 2363 cygwin*) 2364 # Cygwin DLLs use 'cyg' prefix rather than 'lib' | 2537 dldir=$destdir/`dirname \$dlpath`~ 2538 test -d \$dldir || mkdir -p \$dldir~ 2539 $install_prog $dir/$dlname \$dldir/$dlname~ 2540 chmod a+x \$dldir/$dlname~ 2541 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 2542 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 2543 fi' 2544 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 2545 dlpath=$dir/\$dldll~ 2546 $RM \$dlpath' 2547 shlibpath_overrides_runpath=yes 2548 2549 case $host_os in 2550 cygwin*) 2551 # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
2365 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' | 2552 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' |
2366m4_if([$1], [],[ 2367 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"]) 2368 ;; 2369 mingw* | cegcc*) 2370 # MinGW DLLs use traditional 'lib' prefix | 2553m4_if([$1], [],[ 2554 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"]) 2555 ;; 2556 mingw* | cegcc*) 2557 # MinGW DLLs use traditional 'lib' prefix |
2371 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' | 2558 soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' |
2372 ;; 2373 pw32*) 2374 # pw32 DLLs use 'pw' prefix rather than 'lib' | 2559 ;; 2560 pw32*) 2561 # pw32 DLLs use 'pw' prefix rather than 'lib' |
2375 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' | 2562 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' |
2376 ;; 2377 esac 2378 dynamic_linker='Win32 ld.exe' 2379 ;; 2380 2381 *,cl*) 2382 # Native MSVC 2383 libname_spec='$name' | 2563 ;; 2564 esac 2565 dynamic_linker='Win32 ld.exe' 2566 ;; 2567 2568 *,cl*) 2569 # Native MSVC 2570 libname_spec='$name' |
2384 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 2385 library_names_spec='${libname}.dll.lib' | 2571 soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' 2572 library_names_spec='$libname.dll.lib' |
2386 2387 case $build_os in 2388 mingw*) 2389 sys_lib_search_path_spec= 2390 lt_save_ifs=$IFS 2391 IFS=';' 2392 for lt_path in $LIB 2393 do --- 10 unchanged lines hidden (view full) --- 2404 # Convert to unix form, then to dos form, then back to unix form 2405 # but this time dos style (no spaces!) so that the unix form looks 2406 # like /cygdrive/c/PROGRA~1:/cygdr... 2407 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 2408 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 2409 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 2410 ;; 2411 *) | 2573 2574 case $build_os in 2575 mingw*) 2576 sys_lib_search_path_spec= 2577 lt_save_ifs=$IFS 2578 IFS=';' 2579 for lt_path in $LIB 2580 do --- 10 unchanged lines hidden (view full) --- 2591 # Convert to unix form, then to dos form, then back to unix form 2592 # but this time dos style (no spaces!) so that the unix form looks 2593 # like /cygdrive/c/PROGRA~1:/cygdr... 2594 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 2595 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 2596 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 2597 ;; 2598 *) |
2412 sys_lib_search_path_spec="$LIB" | 2599 sys_lib_search_path_spec=$LIB |
2413 if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then 2414 # It is most probably a Windows format PATH. 2415 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 2416 else 2417 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 2418 fi 2419 # FIXME: find the short name or the path components, as spaces are 2420 # common. (e.g. "Program Files" -> "PROGRA~1") 2421 ;; 2422 esac 2423 2424 # DLL is installed to $(libdir)/../bin by postinstall_cmds | 2600 if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then 2601 # It is most probably a Windows format PATH. 2602 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 2603 else 2604 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 2605 fi 2606 # FIXME: find the short name or the path components, as spaces are 2607 # common. (e.g. "Program Files" -> "PROGRA~1") 2608 ;; 2609 esac 2610 2611 # DLL is installed to $(libdir)/../bin by postinstall_cmds |
2425 postinstall_cmds='base_file=`basename \${file}`~ 2426 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | 2612 postinstall_cmds='base_file=`basename \$file`~ 2613 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ |
2427 dldir=$destdir/`dirname \$dlpath`~ 2428 test -d \$dldir || mkdir -p \$dldir~ 2429 $install_prog $dir/$dlname \$dldir/$dlname' 2430 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 2431 dlpath=$dir/\$dldll~ 2432 $RM \$dlpath' 2433 shlibpath_overrides_runpath=yes 2434 dynamic_linker='Win32 link.exe' 2435 ;; 2436 2437 *) 2438 # Assume MSVC wrapper | 2614 dldir=$destdir/`dirname \$dlpath`~ 2615 test -d \$dldir || mkdir -p \$dldir~ 2616 $install_prog $dir/$dlname \$dldir/$dlname' 2617 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 2618 dlpath=$dir/\$dldll~ 2619 $RM \$dlpath' 2620 shlibpath_overrides_runpath=yes 2621 dynamic_linker='Win32 link.exe' 2622 ;; 2623 2624 *) 2625 # Assume MSVC wrapper |
2439 library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' | 2626 library_names_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext $libname.lib' |
2440 dynamic_linker='Win32 ld.exe' 2441 ;; 2442 esac 2443 # FIXME: first we should search . and the directory the executable is in 2444 shlibpath_var=PATH 2445 ;; 2446 2447darwin* | rhapsody*) 2448 dynamic_linker="$host_os dyld" 2449 version_type=darwin 2450 need_lib_prefix=no 2451 need_version=no | 2627 dynamic_linker='Win32 ld.exe' 2628 ;; 2629 esac 2630 # FIXME: first we should search . and the directory the executable is in 2631 shlibpath_var=PATH 2632 ;; 2633 2634darwin* | rhapsody*) 2635 dynamic_linker="$host_os dyld" 2636 version_type=darwin 2637 need_lib_prefix=no 2638 need_version=no |
2452 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 2453 soname_spec='${libname}${release}${major}$shared_ext' | 2639 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 2640 soname_spec='$libname$release$major$shared_ext' |
2454 shlibpath_overrides_runpath=yes 2455 shlibpath_var=DYLD_LIBRARY_PATH 2456 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 2457m4_if([$1], [],[ 2458 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) 2459 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 2460 ;; 2461 2462dgux*) 2463 version_type=linux # correct to gnu/linux during the next big refactor 2464 need_lib_prefix=no 2465 need_version=no | 2641 shlibpath_overrides_runpath=yes 2642 shlibpath_var=DYLD_LIBRARY_PATH 2643 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 2644m4_if([$1], [],[ 2645 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) 2646 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 2647 ;; 2648 2649dgux*) 2650 version_type=linux # correct to gnu/linux during the next big refactor 2651 need_lib_prefix=no 2652 need_version=no |
2466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 2467 soname_spec='${libname}${release}${shared_ext}$major' | 2653 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 2654 soname_spec='$libname$release$shared_ext$major' |
2468 shlibpath_var=LD_LIBRARY_PATH 2469 ;; 2470 2471freebsd* | dragonfly*) 2472 # DragonFly does not have aout. When/if they implement a new 2473 # versioning mechanism, adjust this. 2474 if test -x /usr/bin/objformat; then 2475 objformat=`/usr/bin/objformat` 2476 else 2477 case $host_os in 2478 freebsd[[23]].*) objformat=aout ;; 2479 *) objformat=elf ;; 2480 esac 2481 fi 2482 version_type=freebsd-$objformat 2483 case $version_type in 2484 freebsd-elf*) | 2655 shlibpath_var=LD_LIBRARY_PATH 2656 ;; 2657 2658freebsd* | dragonfly*) 2659 # DragonFly does not have aout. When/if they implement a new 2660 # versioning mechanism, adjust this. 2661 if test -x /usr/bin/objformat; then 2662 objformat=`/usr/bin/objformat` 2663 else 2664 case $host_os in 2665 freebsd[[23]].*) objformat=aout ;; 2666 *) objformat=elf ;; 2667 esac 2668 fi 2669 version_type=freebsd-$objformat 2670 case $version_type in 2671 freebsd-elf*) |
2485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | 2672 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 2673 soname_spec='$libname$release$shared_ext$major' |
2486 need_version=no 2487 need_lib_prefix=no 2488 ;; 2489 freebsd-*) | 2674 need_version=no 2675 need_lib_prefix=no 2676 ;; 2677 freebsd-*) |
2490 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | 2678 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
2491 need_version=yes 2492 ;; 2493 esac 2494 shlibpath_var=LD_LIBRARY_PATH 2495 case $host_os in 2496 freebsd2.*) 2497 shlibpath_overrides_runpath=yes 2498 ;; --- 8 unchanged lines hidden (view full) --- 2507 ;; 2508 *) # from 4.6 on, and DragonFly 2509 shlibpath_overrides_runpath=yes 2510 hardcode_into_libs=yes 2511 ;; 2512 esac 2513 ;; 2514 | 2679 need_version=yes 2680 ;; 2681 esac 2682 shlibpath_var=LD_LIBRARY_PATH 2683 case $host_os in 2684 freebsd2.*) 2685 shlibpath_overrides_runpath=yes 2686 ;; --- 8 unchanged lines hidden (view full) --- 2695 ;; 2696 *) # from 4.6 on, and DragonFly 2697 shlibpath_overrides_runpath=yes 2698 hardcode_into_libs=yes 2699 ;; 2700 esac 2701 ;; 2702 |
2515gnu*) 2516 version_type=linux # correct to gnu/linux during the next big refactor 2517 need_lib_prefix=no 2518 need_version=no 2519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 2520 soname_spec='${libname}${release}${shared_ext}$major' 2521 shlibpath_var=LD_LIBRARY_PATH 2522 shlibpath_overrides_runpath=no 2523 hardcode_into_libs=yes 2524 ;; 2525 | |
2526haiku*) 2527 version_type=linux # correct to gnu/linux during the next big refactor 2528 need_lib_prefix=no 2529 need_version=no 2530 dynamic_linker="$host_os runtime_loader" | 2703haiku*) 2704 version_type=linux # correct to gnu/linux during the next big refactor 2705 need_lib_prefix=no 2706 need_version=no 2707 dynamic_linker="$host_os runtime_loader" |
2531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 2532 soname_spec='${libname}${release}${shared_ext}$major' | 2708 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 2709 soname_spec='$libname$release$shared_ext$major' |
2533 shlibpath_var=LIBRARY_PATH | 2710 shlibpath_var=LIBRARY_PATH |
2534 shlibpath_overrides_runpath=yes | 2711 shlibpath_overrides_runpath=no |
2535 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 2536 hardcode_into_libs=yes 2537 ;; 2538 2539hpux9* | hpux10* | hpux11*) 2540 # Give a soname corresponding to the major version so that dld.sl refuses to 2541 # link against other versions. 2542 version_type=sunos 2543 need_lib_prefix=no 2544 need_version=no 2545 case $host_cpu in 2546 ia64*) 2547 shrext_cmds='.so' 2548 hardcode_into_libs=yes 2549 dynamic_linker="$host_os dld.so" 2550 shlibpath_var=LD_LIBRARY_PATH 2551 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | 2712 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 2713 hardcode_into_libs=yes 2714 ;; 2715 2716hpux9* | hpux10* | hpux11*) 2717 # Give a soname corresponding to the major version so that dld.sl refuses to 2718 # link against other versions. 2719 version_type=sunos 2720 need_lib_prefix=no 2721 need_version=no 2722 case $host_cpu in 2723 ia64*) 2724 shrext_cmds='.so' 2725 hardcode_into_libs=yes 2726 dynamic_linker="$host_os dld.so" 2727 shlibpath_var=LD_LIBRARY_PATH 2728 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
2552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2553 soname_spec='${libname}${release}${shared_ext}$major' 2554 if test "X$HPUX_IA64_MODE" = X32; then | 2729 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 2730 soname_spec='$libname$release$shared_ext$major' 2731 if test 32 = "$HPUX_IA64_MODE"; then |
2555 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | 2732 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
2733 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 |
|
2556 else 2557 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | 2734 else 2735 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
2736 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 |
|
2558 fi | 2737 fi |
2559 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
2560 ;; 2561 hppa*64*) 2562 shrext_cmds='.sl' 2563 hardcode_into_libs=yes 2564 dynamic_linker="$host_os dld.sl" 2565 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 2566 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | 2738 ;; 2739 hppa*64*) 2740 shrext_cmds='.sl' 2741 hardcode_into_libs=yes 2742 dynamic_linker="$host_os dld.sl" 2743 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 2744 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
2567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2568 soname_spec='${libname}${release}${shared_ext}$major' | 2745 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 2746 soname_spec='$libname$release$shared_ext$major' |
2569 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 2570 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 2571 ;; 2572 *) 2573 shrext_cmds='.sl' 2574 dynamic_linker="$host_os dld.sl" 2575 shlibpath_var=SHLIB_PATH 2576 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | 2747 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 2748 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 2749 ;; 2750 *) 2751 shrext_cmds='.sl' 2752 dynamic_linker="$host_os dld.sl" 2753 shlibpath_var=SHLIB_PATH 2754 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
2577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2578 soname_spec='${libname}${release}${shared_ext}$major' | 2755 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 2756 soname_spec='$libname$release$shared_ext$major' |
2579 ;; 2580 esac 2581 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 2582 postinstall_cmds='chmod 555 $lib' 2583 # or fails outright, so override atomically: 2584 install_override_mode=555 2585 ;; 2586 2587interix[[3-9]]*) 2588 version_type=linux # correct to gnu/linux during the next big refactor 2589 need_lib_prefix=no 2590 need_version=no | 2757 ;; 2758 esac 2759 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 2760 postinstall_cmds='chmod 555 $lib' 2761 # or fails outright, so override atomically: 2762 install_override_mode=555 2763 ;; 2764 2765interix[[3-9]]*) 2766 version_type=linux # correct to gnu/linux during the next big refactor 2767 need_lib_prefix=no 2768 need_version=no |
2591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 2592 soname_spec='${libname}${release}${shared_ext}$major' | 2769 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 2770 soname_spec='$libname$release$shared_ext$major' |
2593 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 2594 shlibpath_var=LD_LIBRARY_PATH 2595 shlibpath_overrides_runpath=no 2596 hardcode_into_libs=yes 2597 ;; 2598 2599irix5* | irix6* | nonstopux*) 2600 case $host_os in 2601 nonstopux*) version_type=nonstopux ;; 2602 *) | 2771 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 2772 shlibpath_var=LD_LIBRARY_PATH 2773 shlibpath_overrides_runpath=no 2774 hardcode_into_libs=yes 2775 ;; 2776 2777irix5* | irix6* | nonstopux*) 2778 case $host_os in 2779 nonstopux*) version_type=nonstopux ;; 2780 *) |
2603 if test "$lt_cv_prog_gnu_ld" = yes; then | 2781 if test yes = "$lt_cv_prog_gnu_ld"; then |
2604 version_type=linux # correct to gnu/linux during the next big refactor 2605 else 2606 version_type=irix 2607 fi ;; 2608 esac 2609 need_lib_prefix=no 2610 need_version=no | 2782 version_type=linux # correct to gnu/linux during the next big refactor 2783 else 2784 version_type=irix 2785 fi ;; 2786 esac 2787 need_lib_prefix=no 2788 need_version=no |
2611 soname_spec='${libname}${release}${shared_ext}$major' 2612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | 2789 soname_spec='$libname$release$shared_ext$major' 2790 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' |
2613 case $host_os in 2614 irix5* | nonstopux*) 2615 libsuff= shlibsuff= 2616 ;; 2617 *) 2618 case $LD in # libtool.m4 will add one of these switches to LD 2619 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 2620 libsuff= shlibsuff= libmagic=32-bit;; 2621 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 2622 libsuff=32 shlibsuff=N32 libmagic=N32;; 2623 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 2624 libsuff=64 shlibsuff=64 libmagic=64-bit;; 2625 *) libsuff= shlibsuff= libmagic=never-match;; 2626 esac 2627 ;; 2628 esac 2629 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 2630 shlibpath_overrides_runpath=no | 2791 case $host_os in 2792 irix5* | nonstopux*) 2793 libsuff= shlibsuff= 2794 ;; 2795 *) 2796 case $LD in # libtool.m4 will add one of these switches to LD 2797 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 2798 libsuff= shlibsuff= libmagic=32-bit;; 2799 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 2800 libsuff=32 shlibsuff=N32 libmagic=N32;; 2801 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 2802 libsuff=64 shlibsuff=64 libmagic=64-bit;; 2803 *) libsuff= shlibsuff= libmagic=never-match;; 2804 esac 2805 ;; 2806 esac 2807 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 2808 shlibpath_overrides_runpath=no |
2631 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 2632 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | 2809 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 2810 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" |
2633 hardcode_into_libs=yes 2634 ;; 2635 2636# No shared lib support for Linux oldld, aout, or coff. 2637linux*oldld* | linux*aout* | linux*coff*) 2638 dynamic_linker=no 2639 ;; 2640 | 2811 hardcode_into_libs=yes 2812 ;; 2813 2814# No shared lib support for Linux oldld, aout, or coff. 2815linux*oldld* | linux*aout* | linux*coff*) 2816 dynamic_linker=no 2817 ;; 2818 |
2819linux*android*) 2820 version_type=none # Android doesn't support versioned libraries. 2821 need_lib_prefix=no 2822 need_version=no 2823 library_names_spec='$libname$release$shared_ext' 2824 soname_spec='$libname$release$shared_ext' 2825 finish_cmds= 2826 shlibpath_var=LD_LIBRARY_PATH 2827 shlibpath_overrides_runpath=yes 2828 2829 # This implies no fast_install, which is unacceptable. 2830 # Some rework will be needed to allow for fast_install 2831 # before this can be enabled. 2832 hardcode_into_libs=yes 2833 2834 dynamic_linker='Android linker' 2835 # Don't embed -rpath directories since the linker doesn't support them. 2836 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 2837 ;; 2838 |
|
2641# This must be glibc/ELF. | 2839# This must be glibc/ELF. |
2642linux* | k*bsd*-gnu | kopensolaris*-gnu) | 2840linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
2643 version_type=linux # correct to gnu/linux during the next big refactor 2644 need_lib_prefix=no 2645 need_version=no | 2841 version_type=linux # correct to gnu/linux during the next big refactor 2842 need_lib_prefix=no 2843 need_version=no |
2646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2647 soname_spec='${libname}${release}${shared_ext}$major' | 2844 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 2845 soname_spec='$libname$release$shared_ext$major' |
2648 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 2649 shlibpath_var=LD_LIBRARY_PATH 2650 shlibpath_overrides_runpath=no 2651 2652 # Some binutils ld are patched to set DT_RUNPATH 2653 AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath], 2654 [lt_cv_shlibpath_overrides_runpath=no 2655 save_LDFLAGS=$LDFLAGS --- 8 unchanged lines hidden (view full) --- 2664 ]) 2665 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 2666 2667 # This implies no fast_install, which is unacceptable. 2668 # Some rework will be needed to allow for fast_install 2669 # before this can be enabled. 2670 hardcode_into_libs=yes 2671 | 2846 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 2847 shlibpath_var=LD_LIBRARY_PATH 2848 shlibpath_overrides_runpath=no 2849 2850 # Some binutils ld are patched to set DT_RUNPATH 2851 AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath], 2852 [lt_cv_shlibpath_overrides_runpath=no 2853 save_LDFLAGS=$LDFLAGS --- 8 unchanged lines hidden (view full) --- 2862 ]) 2863 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 2864 2865 # This implies no fast_install, which is unacceptable. 2866 # Some rework will be needed to allow for fast_install 2867 # before this can be enabled. 2868 hardcode_into_libs=yes 2869 |
2672 # Append ld.so.conf contents to the search path | 2870 # Ideally, we could use ldconfig to report *all* directores which are 2871 # searched for libraries, however this is still not possible. Aside from not 2872 # being certain /sbin/ldconfig is available, command 2873 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 2874 # even though it is searched at run-time. Try to do the best guess by 2875 # appending ld.so.conf contents (and includes) to the search path. |
2673 if test -f /etc/ld.so.conf; then 2674 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` 2675 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 2676 fi 2677 2678 # We used to test for /lib/ld.so.1 and disable shared libraries on 2679 # powerpc, because MkLinux only supported shared libraries with the 2680 # GNU dynamic linker. Since this was broken with cross compilers, 2681 # most powerpc-linux boxes support dynamic linking these days and 2682 # people can always --disable-shared, the test was removed, and we 2683 # assume the GNU/Linux dynamic linker is in use. 2684 dynamic_linker='GNU/Linux ld.so' 2685 ;; 2686 2687netbsd*) 2688 version_type=sunos 2689 need_lib_prefix=no 2690 need_version=no 2691 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | 2876 if test -f /etc/ld.so.conf; then 2877 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` 2878 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 2879 fi 2880 2881 # We used to test for /lib/ld.so.1 and disable shared libraries on 2882 # powerpc, because MkLinux only supported shared libraries with the 2883 # GNU dynamic linker. Since this was broken with cross compilers, 2884 # most powerpc-linux boxes support dynamic linking these days and 2885 # people can always --disable-shared, the test was removed, and we 2886 # assume the GNU/Linux dynamic linker is in use. 2887 dynamic_linker='GNU/Linux ld.so' 2888 ;; 2889 2890netbsd*) 2891 version_type=sunos 2892 need_lib_prefix=no 2893 need_version=no 2894 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
2692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 2895 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
2693 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 2694 dynamic_linker='NetBSD (a.out) ld.so' 2695 else | 2896 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 2897 dynamic_linker='NetBSD (a.out) ld.so' 2898 else |
2696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 2697 soname_spec='${libname}${release}${shared_ext}$major' | 2899 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 2900 soname_spec='$libname$release$shared_ext$major' |
2698 dynamic_linker='NetBSD ld.elf_so' 2699 fi 2700 shlibpath_var=LD_LIBRARY_PATH 2701 shlibpath_overrides_runpath=yes 2702 hardcode_into_libs=yes 2703 ;; 2704 2705newsos6) 2706 version_type=linux # correct to gnu/linux during the next big refactor | 2901 dynamic_linker='NetBSD ld.elf_so' 2902 fi 2903 shlibpath_var=LD_LIBRARY_PATH 2904 shlibpath_overrides_runpath=yes 2905 hardcode_into_libs=yes 2906 ;; 2907 2908newsos6) 2909 version_type=linux # correct to gnu/linux during the next big refactor |
2707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 2910 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
2708 shlibpath_var=LD_LIBRARY_PATH 2709 shlibpath_overrides_runpath=yes 2710 ;; 2711 2712*nto* | *qnx*) 2713 version_type=qnx 2714 need_lib_prefix=no 2715 need_version=no | 2911 shlibpath_var=LD_LIBRARY_PATH 2912 shlibpath_overrides_runpath=yes 2913 ;; 2914 2915*nto* | *qnx*) 2916 version_type=qnx 2917 need_lib_prefix=no 2918 need_version=no |
2716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2717 soname_spec='${libname}${release}${shared_ext}$major' | 2919 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 2920 soname_spec='$libname$release$shared_ext$major' |
2718 shlibpath_var=LD_LIBRARY_PATH 2719 shlibpath_overrides_runpath=no 2720 hardcode_into_libs=yes 2721 dynamic_linker='ldqnx.so' 2722 ;; 2723 | 2921 shlibpath_var=LD_LIBRARY_PATH 2922 shlibpath_overrides_runpath=no 2923 hardcode_into_libs=yes 2924 dynamic_linker='ldqnx.so' 2925 ;; 2926 |
2724openbsd*) | 2927openbsd* | bitrig*) |
2725 version_type=sunos | 2928 version_type=sunos |
2726 sys_lib_dlsearch_path_spec="/usr/lib" | 2929 sys_lib_dlsearch_path_spec=/usr/lib |
2727 need_lib_prefix=no | 2930 need_lib_prefix=no |
2728 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 2729 case $host_os in 2730 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 2731 *) need_version=no ;; 2732 esac 2733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 2734 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 2735 shlibpath_var=LD_LIBRARY_PATH 2736 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 2737 case $host_os in 2738 openbsd2.[[89]] | openbsd2.[[89]].*) 2739 shlibpath_overrides_runpath=no 2740 ;; 2741 *) 2742 shlibpath_overrides_runpath=yes 2743 ;; 2744 esac | 2931 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 2932 need_version=no |
2745 else | 2933 else |
2746 shlibpath_overrides_runpath=yes | 2934 need_version=yes |
2747 fi | 2935 fi |
2936 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 2937 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 2938 shlibpath_var=LD_LIBRARY_PATH 2939 shlibpath_overrides_runpath=yes |
|
2748 ;; 2749 2750os2*) 2751 libname_spec='$name' | 2940 ;; 2941 2942os2*) 2943 libname_spec='$name' |
2752 shrext_cmds=".dll" | 2944 version_type=windows 2945 shrext_cmds=.dll 2946 need_version=no |
2753 need_lib_prefix=no | 2947 need_lib_prefix=no |
2754 library_names_spec='$libname${shared_ext} $libname.a' | 2948 # OS/2 can only load a DLL with a base name of 8 characters or less. 2949 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 2950 v=$($ECHO $release$versuffix | tr -d .-); 2951 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 2952 $ECHO $n$v`$shared_ext' 2953 library_names_spec='${libname}_dll.$libext' |
2755 dynamic_linker='OS/2 ld.exe' | 2954 dynamic_linker='OS/2 ld.exe' |
2756 shlibpath_var=LIBPATH | 2955 shlibpath_var=BEGINLIBPATH 2956 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 2957 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 2958 postinstall_cmds='base_file=`basename \$file`~ 2959 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 2960 dldir=$destdir/`dirname \$dlpath`~ 2961 test -d \$dldir || mkdir -p \$dldir~ 2962 $install_prog $dir/$dlname \$dldir/$dlname~ 2963 chmod a+x \$dldir/$dlname~ 2964 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 2965 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 2966 fi' 2967 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 2968 dlpath=$dir/\$dldll~ 2969 $RM \$dlpath' |
2757 ;; 2758 2759osf3* | osf4* | osf5*) 2760 version_type=osf 2761 need_lib_prefix=no 2762 need_version=no | 2970 ;; 2971 2972osf3* | osf4* | osf5*) 2973 version_type=osf 2974 need_lib_prefix=no 2975 need_version=no |
2763 soname_spec='${libname}${release}${shared_ext}$major' 2764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 2976 soname_spec='$libname$release$shared_ext$major' 2977 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
2765 shlibpath_var=LD_LIBRARY_PATH 2766 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | 2978 shlibpath_var=LD_LIBRARY_PATH 2979 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
2767 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | 2980 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
2768 ;; 2769 2770rdos*) 2771 dynamic_linker=no 2772 ;; 2773 2774solaris*) 2775 version_type=linux # correct to gnu/linux during the next big refactor 2776 need_lib_prefix=no 2777 need_version=no | 2981 ;; 2982 2983rdos*) 2984 dynamic_linker=no 2985 ;; 2986 2987solaris*) 2988 version_type=linux # correct to gnu/linux during the next big refactor 2989 need_lib_prefix=no 2990 need_version=no |
2778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2779 soname_spec='${libname}${release}${shared_ext}$major' | 2991 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 2992 soname_spec='$libname$release$shared_ext$major' |
2780 shlibpath_var=LD_LIBRARY_PATH 2781 shlibpath_overrides_runpath=yes 2782 hardcode_into_libs=yes 2783 # ldd complains unless libraries are executable 2784 postinstall_cmds='chmod +x $lib' 2785 ;; 2786 2787sunos4*) 2788 version_type=sunos | 2993 shlibpath_var=LD_LIBRARY_PATH 2994 shlibpath_overrides_runpath=yes 2995 hardcode_into_libs=yes 2996 # ldd complains unless libraries are executable 2997 postinstall_cmds='chmod +x $lib' 2998 ;; 2999 3000sunos4*) 3001 version_type=sunos |
2789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 3002 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
2790 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 2791 shlibpath_var=LD_LIBRARY_PATH 2792 shlibpath_overrides_runpath=yes | 3003 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 3004 shlibpath_var=LD_LIBRARY_PATH 3005 shlibpath_overrides_runpath=yes |
2793 if test "$with_gnu_ld" = yes; then | 3006 if test yes = "$with_gnu_ld"; then |
2794 need_lib_prefix=no 2795 fi 2796 need_version=yes 2797 ;; 2798 2799sysv4 | sysv4.3*) 2800 version_type=linux # correct to gnu/linux during the next big refactor | 3007 need_lib_prefix=no 3008 fi 3009 need_version=yes 3010 ;; 3011 3012sysv4 | sysv4.3*) 3013 version_type=linux # correct to gnu/linux during the next big refactor |
2801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2802 soname_spec='${libname}${release}${shared_ext}$major' | 3014 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 3015 soname_spec='$libname$release$shared_ext$major' |
2803 shlibpath_var=LD_LIBRARY_PATH 2804 case $host_vendor in 2805 sni) 2806 shlibpath_overrides_runpath=no 2807 need_lib_prefix=no 2808 runpath_var=LD_RUN_PATH 2809 ;; 2810 siemens) --- 4 unchanged lines hidden (view full) --- 2815 need_version=no 2816 shlibpath_overrides_runpath=no 2817 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 2818 ;; 2819 esac 2820 ;; 2821 2822sysv4*MP*) | 3016 shlibpath_var=LD_LIBRARY_PATH 3017 case $host_vendor in 3018 sni) 3019 shlibpath_overrides_runpath=no 3020 need_lib_prefix=no 3021 runpath_var=LD_RUN_PATH 3022 ;; 3023 siemens) --- 4 unchanged lines hidden (view full) --- 3028 need_version=no 3029 shlibpath_overrides_runpath=no 3030 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 3031 ;; 3032 esac 3033 ;; 3034 3035sysv4*MP*) |
2823 if test -d /usr/nec ;then | 3036 if test -d /usr/nec; then |
2824 version_type=linux # correct to gnu/linux during the next big refactor | 3037 version_type=linux # correct to gnu/linux during the next big refactor |
2825 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 2826 soname_spec='$libname${shared_ext}.$major' | 3038 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 3039 soname_spec='$libname$shared_ext.$major' |
2827 shlibpath_var=LD_LIBRARY_PATH 2828 fi 2829 ;; 2830 2831sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | 3040 shlibpath_var=LD_LIBRARY_PATH 3041 fi 3042 ;; 3043 3044sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
2832 version_type=freebsd-elf | 3045 version_type=sco |
2833 need_lib_prefix=no 2834 need_version=no | 3046 need_lib_prefix=no 3047 need_version=no |
2835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 2836 soname_spec='${libname}${release}${shared_ext}$major' | 3048 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 3049 soname_spec='$libname$release$shared_ext$major' |
2837 shlibpath_var=LD_LIBRARY_PATH 2838 shlibpath_overrides_runpath=yes 2839 hardcode_into_libs=yes | 3050 shlibpath_var=LD_LIBRARY_PATH 3051 shlibpath_overrides_runpath=yes 3052 hardcode_into_libs=yes |
2840 if test "$with_gnu_ld" = yes; then | 3053 if test yes = "$with_gnu_ld"; then |
2841 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 2842 else 2843 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 2844 case $host_os in 2845 sco3.2v5*) 2846 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 2847 ;; 2848 esac 2849 fi 2850 sys_lib_dlsearch_path_spec='/usr/lib' 2851 ;; 2852 2853tpf*) 2854 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 2855 version_type=linux # correct to gnu/linux during the next big refactor 2856 need_lib_prefix=no 2857 need_version=no | 3054 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 3055 else 3056 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 3057 case $host_os in 3058 sco3.2v5*) 3059 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 3060 ;; 3061 esac 3062 fi 3063 sys_lib_dlsearch_path_spec='/usr/lib' 3064 ;; 3065 3066tpf*) 3067 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 3068 version_type=linux # correct to gnu/linux during the next big refactor 3069 need_lib_prefix=no 3070 need_version=no |
2858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 3071 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
2859 shlibpath_var=LD_LIBRARY_PATH 2860 shlibpath_overrides_runpath=no 2861 hardcode_into_libs=yes 2862 ;; 2863 2864uts4*) 2865 version_type=linux # correct to gnu/linux during the next big refactor | 3072 shlibpath_var=LD_LIBRARY_PATH 3073 shlibpath_overrides_runpath=no 3074 hardcode_into_libs=yes 3075 ;; 3076 3077uts4*) 3078 version_type=linux # correct to gnu/linux during the next big refactor |
2866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2867 soname_spec='${libname}${release}${shared_ext}$major' | 3079 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 3080 soname_spec='$libname$release$shared_ext$major' |
2868 shlibpath_var=LD_LIBRARY_PATH 2869 ;; 2870 2871*) 2872 dynamic_linker=no 2873 ;; 2874esac 2875AC_MSG_RESULT([$dynamic_linker]) | 3081 shlibpath_var=LD_LIBRARY_PATH 3082 ;; 3083 3084*) 3085 dynamic_linker=no 3086 ;; 3087esac 3088AC_MSG_RESULT([$dynamic_linker]) |
2876test "$dynamic_linker" = no && can_build_shared=no | 3089test no = "$dynamic_linker" && can_build_shared=no |
2877 2878variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | 3090 3091variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
2879if test "$GCC" = yes; then | 3092if test yes = "$GCC"; then |
2880 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 2881fi 2882 | 3093 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 3094fi 3095 |
2883if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 2884 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | 3096if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 3097 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec |
2885fi | 3098fi |
2886if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 2887 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | 3099 3100if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 3101 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec |
2888fi 2889 | 3102fi 3103 |
3104# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 3105configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 3106 3107# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 3108func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 3109 3110# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 3111configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 3112 |
|
2890_LT_DECL([], [variables_saved_for_relink], [1], 2891 [Variables whose values should be saved in libtool wrapper scripts and 2892 restored at link time]) 2893_LT_DECL([], [need_lib_prefix], [0], 2894 [Do we need the "lib" prefix for modules?]) 2895_LT_DECL([], [need_version], [0], [Do we need a version for libraries?]) 2896_LT_DECL([], [version_type], [0], [Library versioning type]) 2897_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable]) --- 16 unchanged lines hidden (view full) --- 2914 [Commands used to finish a libtool library installation in a directory]) 2915_LT_DECL([], [finish_eval], [1], 2916 [[As "finish_cmds", except a single script fragment to be evaled but 2917 not shown]]) 2918_LT_DECL([], [hardcode_into_libs], [0], 2919 [Whether we should hardcode library paths into libraries]) 2920_LT_DECL([], [sys_lib_search_path_spec], [2], 2921 [Compile-time system search path for libraries]) | 3113_LT_DECL([], [variables_saved_for_relink], [1], 3114 [Variables whose values should be saved in libtool wrapper scripts and 3115 restored at link time]) 3116_LT_DECL([], [need_lib_prefix], [0], 3117 [Do we need the "lib" prefix for modules?]) 3118_LT_DECL([], [need_version], [0], [Do we need a version for libraries?]) 3119_LT_DECL([], [version_type], [0], [Library versioning type]) 3120_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable]) --- 16 unchanged lines hidden (view full) --- 3137 [Commands used to finish a libtool library installation in a directory]) 3138_LT_DECL([], [finish_eval], [1], 3139 [[As "finish_cmds", except a single script fragment to be evaled but 3140 not shown]]) 3141_LT_DECL([], [hardcode_into_libs], [0], 3142 [Whether we should hardcode library paths into libraries]) 3143_LT_DECL([], [sys_lib_search_path_spec], [2], 3144 [Compile-time system search path for libraries]) |
2922_LT_DECL([], [sys_lib_dlsearch_path_spec], [2], 2923 [Run-time system search path for libraries]) | 3145_LT_DECL([sys_lib_dlsearch_path_spec], [configure_time_dlsearch_path], [2], 3146 [Detected run-time system search path for libraries]) 3147_LT_DECL([], [configure_time_lt_sys_library_path], [2], 3148 [Explicit LT_SYS_LIBRARY_PATH set during ./configure time]) |
2924])# _LT_SYS_DYNAMIC_LINKER 2925 2926 2927# _LT_PATH_TOOL_PREFIX(TOOL) 2928# -------------------------- | 3149])# _LT_SYS_DYNAMIC_LINKER 3150 3151 3152# _LT_PATH_TOOL_PREFIX(TOOL) 3153# -------------------------- |
2929# find a file program which can recognize shared library | 3154# find a file program that can recognize shared library |
2930AC_DEFUN([_LT_PATH_TOOL_PREFIX], 2931[m4_require([_LT_DECL_EGREP])dnl 2932AC_MSG_CHECKING([for $1]) 2933AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, 2934[case $MAGIC_CMD in 2935[[\\/*] | ?:[\\/]*]) | 3155AC_DEFUN([_LT_PATH_TOOL_PREFIX], 3156[m4_require([_LT_DECL_EGREP])dnl 3157AC_MSG_CHECKING([for $1]) 3158AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, 3159[case $MAGIC_CMD in 3160[[\\/*] | ?:[\\/]*]) |
2936 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | 3161 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. |
2937 ;; 2938*) | 3162 ;; 3163*) |
2939 lt_save_MAGIC_CMD="$MAGIC_CMD" 2940 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | 3164 lt_save_MAGIC_CMD=$MAGIC_CMD 3165 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
2941dnl $ac_dummy forces splitting on constant user-supplied paths. 2942dnl POSIX.2 word splitting is done only on the output of word expansions, 2943dnl not every word. This closes a longstanding sh security hole. 2944 ac_dummy="m4_if([$2], , $PATH, [$2])" 2945 for ac_dir in $ac_dummy; do | 3166dnl $ac_dummy forces splitting on constant user-supplied paths. 3167dnl POSIX.2 word splitting is done only on the output of word expansions, 3168dnl not every word. This closes a longstanding sh security hole. 3169 ac_dummy="m4_if([$2], , $PATH, [$2])" 3170 for ac_dir in $ac_dummy; do |
2946 IFS="$lt_save_ifs" | 3171 IFS=$lt_save_ifs |
2947 test -z "$ac_dir" && ac_dir=. | 3172 test -z "$ac_dir" && ac_dir=. |
2948 if test -f $ac_dir/$1; then 2949 lt_cv_path_MAGIC_CMD="$ac_dir/$1" | 3173 if test -f "$ac_dir/$1"; then 3174 lt_cv_path_MAGIC_CMD=$ac_dir/"$1" |
2950 if test -n "$file_magic_test_file"; then 2951 case $deplibs_check_method in 2952 "file_magic "*) 2953 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | 3175 if test -n "$file_magic_test_file"; then 3176 case $deplibs_check_method in 3177 "file_magic "*) 3178 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
2954 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | 3179 MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
2955 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 2956 $EGREP "$file_magic_regex" > /dev/null; then 2957 : 2958 else 2959 cat <<_LT_EOF 1>&2 2960 2961*** Warning: the command libtool uses to detect shared libraries, 2962*** $file_magic_cmd, produces output that libtool cannot recognize. --- 6 unchanged lines hidden (view full) --- 2969 2970_LT_EOF 2971 fi ;; 2972 esac 2973 fi 2974 break 2975 fi 2976 done | 3180 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 3181 $EGREP "$file_magic_regex" > /dev/null; then 3182 : 3183 else 3184 cat <<_LT_EOF 1>&2 3185 3186*** Warning: the command libtool uses to detect shared libraries, 3187*** $file_magic_cmd, produces output that libtool cannot recognize. --- 6 unchanged lines hidden (view full) --- 3194 3195_LT_EOF 3196 fi ;; 3197 esac 3198 fi 3199 break 3200 fi 3201 done |
2977 IFS="$lt_save_ifs" 2978 MAGIC_CMD="$lt_save_MAGIC_CMD" | 3202 IFS=$lt_save_ifs 3203 MAGIC_CMD=$lt_save_MAGIC_CMD |
2979 ;; 2980esac]) | 3204 ;; 3205esac]) |
2981MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | 3206MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
2982if test -n "$MAGIC_CMD"; then 2983 AC_MSG_RESULT($MAGIC_CMD) 2984else 2985 AC_MSG_RESULT(no) 2986fi 2987_LT_DECL([], [MAGIC_CMD], [0], 2988 [Used to examine libraries when file_magic_cmd begins with "file"])dnl 2989])# _LT_PATH_TOOL_PREFIX 2990 2991# Old name: 2992AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX]) 2993dnl aclocal-1.4 backwards compatibility: 2994dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], []) 2995 2996 2997# _LT_PATH_MAGIC 2998# -------------- | 3207if test -n "$MAGIC_CMD"; then 3208 AC_MSG_RESULT($MAGIC_CMD) 3209else 3210 AC_MSG_RESULT(no) 3211fi 3212_LT_DECL([], [MAGIC_CMD], [0], 3213 [Used to examine libraries when file_magic_cmd begins with "file"])dnl 3214])# _LT_PATH_TOOL_PREFIX 3215 3216# Old name: 3217AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX]) 3218dnl aclocal-1.4 backwards compatibility: 3219dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], []) 3220 3221 3222# _LT_PATH_MAGIC 3223# -------------- |
2999# find a file program which can recognize a shared library | 3224# find a file program that can recognize a shared library |
3000m4_defun([_LT_PATH_MAGIC], 3001[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) 3002if test -z "$lt_cv_path_MAGIC_CMD"; then 3003 if test -n "$ac_tool_prefix"; then 3004 _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) 3005 else 3006 MAGIC_CMD=: 3007 fi --- 10 unchanged lines hidden (view full) --- 3018AC_REQUIRE([AC_CANONICAL_BUILD])dnl 3019m4_require([_LT_DECL_SED])dnl 3020m4_require([_LT_DECL_EGREP])dnl 3021m4_require([_LT_PROG_ECHO_BACKSLASH])dnl 3022 3023AC_ARG_WITH([gnu-ld], 3024 [AS_HELP_STRING([--with-gnu-ld], 3025 [assume the C compiler uses GNU ld @<:@default=no@:>@])], | 3225m4_defun([_LT_PATH_MAGIC], 3226[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) 3227if test -z "$lt_cv_path_MAGIC_CMD"; then 3228 if test -n "$ac_tool_prefix"; then 3229 _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) 3230 else 3231 MAGIC_CMD=: 3232 fi --- 10 unchanged lines hidden (view full) --- 3243AC_REQUIRE([AC_CANONICAL_BUILD])dnl 3244m4_require([_LT_DECL_SED])dnl 3245m4_require([_LT_DECL_EGREP])dnl 3246m4_require([_LT_PROG_ECHO_BACKSLASH])dnl 3247 3248AC_ARG_WITH([gnu-ld], 3249 [AS_HELP_STRING([--with-gnu-ld], 3250 [assume the C compiler uses GNU ld @<:@default=no@:>@])], |
3026 [test "$withval" = no || with_gnu_ld=yes], | 3251 [test no = "$withval" || with_gnu_ld=yes], |
3027 [with_gnu_ld=no])dnl 3028 3029ac_prog=ld | 3252 [with_gnu_ld=no])dnl 3253 3254ac_prog=ld |
3030if test "$GCC" = yes; then | 3255if test yes = "$GCC"; then |
3031 # Check if gcc -print-prog-name=ld gives a path. 3032 AC_MSG_CHECKING([for ld used by $CC]) 3033 case $host in 3034 *-*-mingw*) | 3256 # Check if gcc -print-prog-name=ld gives a path. 3257 AC_MSG_CHECKING([for ld used by $CC]) 3258 case $host in 3259 *-*-mingw*) |
3035 # gcc leaves a trailing carriage return which upsets mingw | 3260 # gcc leaves a trailing carriage return, which upsets mingw |
3036 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 3037 *) 3038 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 3039 esac 3040 case $ac_prog in 3041 # Accept absolute paths. 3042 [[\\/]]* | ?:[[\\/]]*) 3043 re_direlt='/[[^/]][[^/]]*/\.\./' 3044 # Canonicalize the pathname of ld 3045 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 3046 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 3047 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 3048 done | 3261 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 3262 *) 3263 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 3264 esac 3265 case $ac_prog in 3266 # Accept absolute paths. 3267 [[\\/]]* | ?:[[\\/]]*) 3268 re_direlt='/[[^/]][[^/]]*/\.\./' 3269 # Canonicalize the pathname of ld 3270 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 3271 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 3272 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 3273 done |
3049 test -z "$LD" && LD="$ac_prog" | 3274 test -z "$LD" && LD=$ac_prog |
3050 ;; 3051 "") 3052 # If it fails, then pretend we aren't using GCC. 3053 ac_prog=ld 3054 ;; 3055 *) 3056 # If it is relative, then search for the first ld in PATH. 3057 with_gnu_ld=unknown 3058 ;; 3059 esac | 3275 ;; 3276 "") 3277 # If it fails, then pretend we aren't using GCC. 3278 ac_prog=ld 3279 ;; 3280 *) 3281 # If it is relative, then search for the first ld in PATH. 3282 with_gnu_ld=unknown 3283 ;; 3284 esac |
3060elif test "$with_gnu_ld" = yes; then | 3285elif test yes = "$with_gnu_ld"; then |
3061 AC_MSG_CHECKING([for GNU ld]) 3062else 3063 AC_MSG_CHECKING([for non-GNU ld]) 3064fi 3065AC_CACHE_VAL(lt_cv_path_LD, 3066[if test -z "$LD"; then | 3286 AC_MSG_CHECKING([for GNU ld]) 3287else 3288 AC_MSG_CHECKING([for non-GNU ld]) 3289fi 3290AC_CACHE_VAL(lt_cv_path_LD, 3291[if test -z "$LD"; then |
3067 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | 3292 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
3068 for ac_dir in $PATH; do | 3293 for ac_dir in $PATH; do |
3069 IFS="$lt_save_ifs" | 3294 IFS=$lt_save_ifs |
3070 test -z "$ac_dir" && ac_dir=. 3071 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | 3295 test -z "$ac_dir" && ac_dir=. 3296 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
3072 lt_cv_path_LD="$ac_dir/$ac_prog" | 3297 lt_cv_path_LD=$ac_dir/$ac_prog |
3073 # Check to see if the program is GNU ld. I'd rather use --version, 3074 # but apparently some variants of GNU ld only accept -v. 3075 # Break only if it was the GNU/non-GNU ld that we prefer. 3076 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 3077 *GNU* | *'with BFD'*) | 3298 # Check to see if the program is GNU ld. I'd rather use --version, 3299 # but apparently some variants of GNU ld only accept -v. 3300 # Break only if it was the GNU/non-GNU ld that we prefer. 3301 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 3302 *GNU* | *'with BFD'*) |
3078 test "$with_gnu_ld" != no && break | 3303 test no != "$with_gnu_ld" && break |
3079 ;; 3080 *) | 3304 ;; 3305 *) |
3081 test "$with_gnu_ld" != yes && break | 3306 test yes != "$with_gnu_ld" && break |
3082 ;; 3083 esac 3084 fi 3085 done | 3307 ;; 3308 esac 3309 fi 3310 done |
3086 IFS="$lt_save_ifs" | 3311 IFS=$lt_save_ifs |
3087else | 3312else |
3088 lt_cv_path_LD="$LD" # Let the user override the test with a path. | 3313 lt_cv_path_LD=$LD # Let the user override the test with a path. |
3089fi]) | 3314fi]) |
3090LD="$lt_cv_path_LD" | 3315LD=$lt_cv_path_LD |
3091if test -n "$LD"; then 3092 AC_MSG_RESULT($LD) 3093else 3094 AC_MSG_RESULT(no) 3095fi 3096test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) 3097_LT_PATH_LD_GNU 3098AC_SUBST([LD]) --- 37 unchanged lines hidden (view full) --- 3136reload_flag=$lt_cv_ld_reload_flag 3137case $reload_flag in 3138"" | " "*) ;; 3139*) reload_flag=" $reload_flag" ;; 3140esac 3141reload_cmds='$LD$reload_flag -o $output$reload_objs' 3142case $host_os in 3143 cygwin* | mingw* | pw32* | cegcc*) | 3316if test -n "$LD"; then 3317 AC_MSG_RESULT($LD) 3318else 3319 AC_MSG_RESULT(no) 3320fi 3321test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) 3322_LT_PATH_LD_GNU 3323AC_SUBST([LD]) --- 37 unchanged lines hidden (view full) --- 3361reload_flag=$lt_cv_ld_reload_flag 3362case $reload_flag in 3363"" | " "*) ;; 3364*) reload_flag=" $reload_flag" ;; 3365esac 3366reload_cmds='$LD$reload_flag -o $output$reload_objs' 3367case $host_os in 3368 cygwin* | mingw* | pw32* | cegcc*) |
3144 if test "$GCC" != yes; then | 3369 if test yes != "$GCC"; then |
3145 reload_cmds=false 3146 fi 3147 ;; 3148 darwin*) | 3370 reload_cmds=false 3371 fi 3372 ;; 3373 darwin*) |
3149 if test "$GCC" = yes; then 3150 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | 3374 if test yes = "$GCC"; then 3375 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' |
3151 else 3152 reload_cmds='$LD$reload_flag -o $output$reload_objs' 3153 fi 3154 ;; 3155esac 3156_LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl 3157_LT_TAGDECL([], [reload_cmds], [2])dnl 3158])# _LT_CMD_RELOAD 3159 3160 | 3376 else 3377 reload_cmds='$LD$reload_flag -o $output$reload_objs' 3378 fi 3379 ;; 3380esac 3381_LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl 3382_LT_TAGDECL([], [reload_cmds], [2])dnl 3383])# _LT_CMD_RELOAD 3384 3385 |
3386# _LT_PATH_DD 3387# ----------- 3388# find a working dd 3389m4_defun([_LT_PATH_DD], 3390[AC_CACHE_CHECK([for a working dd], [ac_cv_path_lt_DD], 3391[printf 0123456789abcdef0123456789abcdef >conftest.i 3392cat conftest.i conftest.i >conftest2.i 3393: ${lt_DD:=$DD} 3394AC_PATH_PROGS_FEATURE_CHECK([lt_DD], [dd], 3395[if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 3396 cmp -s conftest.i conftest.out \ 3397 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 3398fi]) 3399rm -f conftest.i conftest2.i conftest.out]) 3400])# _LT_PATH_DD 3401 3402 3403# _LT_CMD_TRUNCATE 3404# ---------------- 3405# find command to truncate a binary pipe 3406m4_defun([_LT_CMD_TRUNCATE], 3407[m4_require([_LT_PATH_DD]) 3408AC_CACHE_CHECK([how to truncate binary pipes], [lt_cv_truncate_bin], 3409[printf 0123456789abcdef0123456789abcdef >conftest.i 3410cat conftest.i conftest.i >conftest2.i 3411lt_cv_truncate_bin= 3412if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 3413 cmp -s conftest.i conftest.out \ 3414 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 3415fi 3416rm -f conftest.i conftest2.i conftest.out 3417test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"]) 3418_LT_DECL([lt_truncate_bin], [lt_cv_truncate_bin], [1], 3419 [Command to truncate a binary pipe]) 3420])# _LT_CMD_TRUNCATE 3421 3422 |
|
3161# _LT_CHECK_MAGIC_METHOD 3162# ---------------------- 3163# how to check for library dependencies 3164# -- PORTME fill in with the dynamic library characteristics 3165m4_defun([_LT_CHECK_MAGIC_METHOD], 3166[m4_require([_LT_DECL_EGREP]) 3167m4_require([_LT_DECL_OBJDUMP]) 3168AC_CACHE_CHECK([how to recognize dependent libraries], 3169lt_cv_deplibs_check_method, 3170[lt_cv_file_magic_cmd='$MAGIC_CMD' 3171lt_cv_file_magic_test_file= 3172lt_cv_deplibs_check_method='unknown' 3173# Need to set the preceding variable on all platforms that support 3174# interlibrary dependencies. 3175# 'none' -- dependencies not supported. | 3423# _LT_CHECK_MAGIC_METHOD 3424# ---------------------- 3425# how to check for library dependencies 3426# -- PORTME fill in with the dynamic library characteristics 3427m4_defun([_LT_CHECK_MAGIC_METHOD], 3428[m4_require([_LT_DECL_EGREP]) 3429m4_require([_LT_DECL_OBJDUMP]) 3430AC_CACHE_CHECK([how to recognize dependent libraries], 3431lt_cv_deplibs_check_method, 3432[lt_cv_file_magic_cmd='$MAGIC_CMD' 3433lt_cv_file_magic_test_file= 3434lt_cv_deplibs_check_method='unknown' 3435# Need to set the preceding variable on all platforms that support 3436# interlibrary dependencies. 3437# 'none' -- dependencies not supported. |
3176# `unknown' -- same as none, but documents that we really don't know. | 3438# 'unknown' -- same as none, but documents that we really don't know. |
3177# 'pass_all' -- all dependencies passed with no checks. 3178# 'test_compile' -- check by making test program. 3179# 'file_magic [[regex]]' -- check by looking for files in library path | 3439# 'pass_all' -- all dependencies passed with no checks. 3440# 'test_compile' -- check by making test program. 3441# 'file_magic [[regex]]' -- check by looking for files in library path |
3180# which responds to the $file_magic_cmd with a given extended regex. 3181# If you have `file' or equivalent on your system and you're not sure 3182# whether `pass_all' will *always* work, you probably want this one. | 3442# that responds to the $file_magic_cmd with a given extended regex. 3443# If you have 'file' or equivalent on your system and you're not sure 3444# whether 'pass_all' will *always* work, you probably want this one. |
3183 3184case $host_os in 3185aix[[4-9]]*) 3186 lt_cv_deplibs_check_method=pass_all 3187 ;; 3188 3189beos*) 3190 lt_cv_deplibs_check_method=pass_all --- 10 unchanged lines hidden (view full) --- 3201 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 3202 lt_cv_file_magic_cmd='func_win32_libid' 3203 ;; 3204 3205mingw* | pw32*) 3206 # Base MSYS/MinGW do not provide the 'file' command needed by 3207 # func_win32_libid shell function, so use a weaker test based on 'objdump', 3208 # unless we find 'file', for example because we are cross-compiling. | 3445 3446case $host_os in 3447aix[[4-9]]*) 3448 lt_cv_deplibs_check_method=pass_all 3449 ;; 3450 3451beos*) 3452 lt_cv_deplibs_check_method=pass_all --- 10 unchanged lines hidden (view full) --- 3463 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 3464 lt_cv_file_magic_cmd='func_win32_libid' 3465 ;; 3466 3467mingw* | pw32*) 3468 # Base MSYS/MinGW do not provide the 'file' command needed by 3469 # func_win32_libid shell function, so use a weaker test based on 'objdump', 3470 # unless we find 'file', for example because we are cross-compiling. |
3209 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 3210 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then | 3471 if ( file / ) >/dev/null 2>&1; then |
3211 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 3212 lt_cv_file_magic_cmd='func_win32_libid' 3213 else 3214 # Keep this pattern in sync with the one in func_win32_libid. 3215 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 3216 lt_cv_file_magic_cmd='$OBJDUMP -f' 3217 fi 3218 ;; --- 19 unchanged lines hidden (view full) --- 3238 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 3239 ;; 3240 esac 3241 else 3242 lt_cv_deplibs_check_method=pass_all 3243 fi 3244 ;; 3245 | 3472 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 3473 lt_cv_file_magic_cmd='func_win32_libid' 3474 else 3475 # Keep this pattern in sync with the one in func_win32_libid. 3476 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 3477 lt_cv_file_magic_cmd='$OBJDUMP -f' 3478 fi 3479 ;; --- 19 unchanged lines hidden (view full) --- 3499 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 3500 ;; 3501 esac 3502 else 3503 lt_cv_deplibs_check_method=pass_all 3504 fi 3505 ;; 3506 |
3246gnu*) 3247 lt_cv_deplibs_check_method=pass_all 3248 ;; 3249 | |
3250haiku*) 3251 lt_cv_deplibs_check_method=pass_all 3252 ;; 3253 3254hpux10.20* | hpux11*) 3255 lt_cv_file_magic_cmd=/usr/bin/file 3256 case $host_cpu in 3257 ia64*) --- 22 unchanged lines hidden (view full) --- 3280 *-n32|*"-n32 ") libmagic=N32;; 3281 *-64|*"-64 ") libmagic=64-bit;; 3282 *) libmagic=never-match;; 3283 esac 3284 lt_cv_deplibs_check_method=pass_all 3285 ;; 3286 3287# This must be glibc/ELF. | 3507haiku*) 3508 lt_cv_deplibs_check_method=pass_all 3509 ;; 3510 3511hpux10.20* | hpux11*) 3512 lt_cv_file_magic_cmd=/usr/bin/file 3513 case $host_cpu in 3514 ia64*) --- 22 unchanged lines hidden (view full) --- 3537 *-n32|*"-n32 ") libmagic=N32;; 3538 *-64|*"-64 ") libmagic=64-bit;; 3539 *) libmagic=never-match;; 3540 esac 3541 lt_cv_deplibs_check_method=pass_all 3542 ;; 3543 3544# This must be glibc/ELF. |
3288linux* | k*bsd*-gnu | kopensolaris*-gnu) | 3545linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
3289 lt_cv_deplibs_check_method=pass_all 3290 ;; 3291 3292netbsd*) 3293 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 3294 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' 3295 else 3296 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' --- 5 unchanged lines hidden (view full) --- 3302 lt_cv_file_magic_cmd=/usr/bin/file 3303 lt_cv_file_magic_test_file=/usr/lib/libnls.so 3304 ;; 3305 3306*nto* | *qnx*) 3307 lt_cv_deplibs_check_method=pass_all 3308 ;; 3309 | 3546 lt_cv_deplibs_check_method=pass_all 3547 ;; 3548 3549netbsd*) 3550 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 3551 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' 3552 else 3553 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' --- 5 unchanged lines hidden (view full) --- 3559 lt_cv_file_magic_cmd=/usr/bin/file 3560 lt_cv_file_magic_test_file=/usr/lib/libnls.so 3561 ;; 3562 3563*nto* | *qnx*) 3564 lt_cv_deplibs_check_method=pass_all 3565 ;; 3566 |
3310openbsd*) 3311 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | 3567openbsd* | bitrig*) 3568 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then |
3312 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' 3313 else 3314 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' 3315 fi 3316 ;; 3317 3318osf3* | osf4* | osf5*) 3319 lt_cv_deplibs_check_method=pass_all --- 36 unchanged lines hidden (view full) --- 3356 lt_cv_deplibs_check_method=pass_all 3357 ;; 3358 esac 3359 ;; 3360 3361tpf*) 3362 lt_cv_deplibs_check_method=pass_all 3363 ;; | 3569 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' 3570 else 3571 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' 3572 fi 3573 ;; 3574 3575osf3* | osf4* | osf5*) 3576 lt_cv_deplibs_check_method=pass_all --- 36 unchanged lines hidden (view full) --- 3613 lt_cv_deplibs_check_method=pass_all 3614 ;; 3615 esac 3616 ;; 3617 3618tpf*) 3619 lt_cv_deplibs_check_method=pass_all 3620 ;; |
3621os2*) 3622 lt_cv_deplibs_check_method=pass_all 3623 ;; |
|
3364esac 3365]) 3366 3367file_magic_glob= 3368want_nocaseglob=no 3369if test "$build" = "$host"; then 3370 case $host_os in 3371 mingw* | pw32*) --- 24 unchanged lines hidden (view full) --- 3396# LT_PATH_NM 3397# ---------- 3398# find the pathname to a BSD- or MS-compatible name lister 3399AC_DEFUN([LT_PATH_NM], 3400[AC_REQUIRE([AC_PROG_CC])dnl 3401AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM, 3402[if test -n "$NM"; then 3403 # Let the user override the test. | 3624esac 3625]) 3626 3627file_magic_glob= 3628want_nocaseglob=no 3629if test "$build" = "$host"; then 3630 case $host_os in 3631 mingw* | pw32*) --- 24 unchanged lines hidden (view full) --- 3656# LT_PATH_NM 3657# ---------- 3658# find the pathname to a BSD- or MS-compatible name lister 3659AC_DEFUN([LT_PATH_NM], 3660[AC_REQUIRE([AC_PROG_CC])dnl 3661AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM, 3662[if test -n "$NM"; then 3663 # Let the user override the test. |
3404 lt_cv_path_NM="$NM" | 3664 lt_cv_path_NM=$NM |
3405else | 3665else |
3406 lt_nm_to_check="${ac_tool_prefix}nm" | 3666 lt_nm_to_check=${ac_tool_prefix}nm |
3407 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 3408 lt_nm_to_check="$lt_nm_to_check nm" 3409 fi 3410 for lt_tmp_nm in $lt_nm_to_check; do | 3667 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 3668 lt_nm_to_check="$lt_nm_to_check nm" 3669 fi 3670 for lt_tmp_nm in $lt_nm_to_check; do |
3411 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | 3671 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
3412 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | 3672 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
3413 IFS="$lt_save_ifs" | 3673 IFS=$lt_save_ifs |
3414 test -z "$ac_dir" && ac_dir=. | 3674 test -z "$ac_dir" && ac_dir=. |
3415 tmp_nm="$ac_dir/$lt_tmp_nm" 3416 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | 3675 tmp_nm=$ac_dir/$lt_tmp_nm 3676 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then |
3417 # Check to see if the nm accepts a BSD-compat flag. | 3677 # Check to see if the nm accepts a BSD-compat flag. |
3418 # Adding the `sed 1q' prevents false positives on HP-UX, which says: | 3678 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: |
3419 # nm: unknown option "B" ignored 3420 # Tru64's nm complains that /dev/null is an invalid object file | 3679 # nm: unknown option "B" ignored 3680 # Tru64's nm complains that /dev/null is an invalid object file |
3421 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 3422 */dev/null* | *'Invalid file or object type'*) | 3681 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 3682 case $build_os in 3683 mingw*) lt_bad_file=conftest.nm/nofile ;; 3684 *) lt_bad_file=/dev/null ;; 3685 esac 3686 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 3687 *$lt_bad_file* | *'Invalid file or object type'*) |
3423 lt_cv_path_NM="$tmp_nm -B" | 3688 lt_cv_path_NM="$tmp_nm -B" |
3424 break | 3689 break 2 |
3425 ;; 3426 *) 3427 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 3428 */dev/null*) 3429 lt_cv_path_NM="$tmp_nm -p" | 3690 ;; 3691 *) 3692 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 3693 */dev/null*) 3694 lt_cv_path_NM="$tmp_nm -p" |
3430 break | 3695 break 2 |
3431 ;; 3432 *) 3433 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 3434 continue # so that we can try to find one that supports BSD flags 3435 ;; 3436 esac 3437 ;; 3438 esac 3439 fi 3440 done | 3696 ;; 3697 *) 3698 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 3699 continue # so that we can try to find one that supports BSD flags 3700 ;; 3701 esac 3702 ;; 3703 esac 3704 fi 3705 done |
3441 IFS="$lt_save_ifs" | 3706 IFS=$lt_save_ifs |
3442 done 3443 : ${lt_cv_path_NM=no} 3444fi]) | 3707 done 3708 : ${lt_cv_path_NM=no} 3709fi]) |
3445if test "$lt_cv_path_NM" != "no"; then 3446 NM="$lt_cv_path_NM" | 3710if test no != "$lt_cv_path_NM"; then 3711 NM=$lt_cv_path_NM |
3447else 3448 # Didn't find any BSD compatible name lister, look for dumpbin. 3449 if test -n "$DUMPBIN"; then : 3450 # Let the user override the test. 3451 else 3452 AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :) | 3712else 3713 # Didn't find any BSD compatible name lister, look for dumpbin. 3714 if test -n "$DUMPBIN"; then : 3715 # Let the user override the test. 3716 else 3717 AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :) |
3453 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in | 3718 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in |
3454 *COFF*) | 3719 *COFF*) |
3455 DUMPBIN="$DUMPBIN -symbols" | 3720 DUMPBIN="$DUMPBIN -symbols -headers" |
3456 ;; 3457 *) 3458 DUMPBIN=: 3459 ;; 3460 esac 3461 fi 3462 AC_SUBST([DUMPBIN]) | 3721 ;; 3722 *) 3723 DUMPBIN=: 3724 ;; 3725 esac 3726 fi 3727 AC_SUBST([DUMPBIN]) |
3463 if test "$DUMPBIN" != ":"; then 3464 NM="$DUMPBIN" | 3728 if test : != "$DUMPBIN"; then 3729 NM=$DUMPBIN |
3465 fi 3466fi 3467test -z "$NM" && NM=nm 3468AC_SUBST([NM]) 3469_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl 3470 3471AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface], 3472 [lt_cv_nm_interface="BSD nm" --- 29 unchanged lines hidden (view full) --- 3502m4_require([_LT_DECL_OBJDUMP]) 3503m4_require([_LT_DECL_DLLTOOL]) 3504AC_CACHE_CHECK([how to associate runtime and link libraries], 3505lt_cv_sharedlib_from_linklib_cmd, 3506[lt_cv_sharedlib_from_linklib_cmd='unknown' 3507 3508case $host_os in 3509cygwin* | mingw* | pw32* | cegcc*) | 3730 fi 3731fi 3732test -z "$NM" && NM=nm 3733AC_SUBST([NM]) 3734_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl 3735 3736AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface], 3737 [lt_cv_nm_interface="BSD nm" --- 29 unchanged lines hidden (view full) --- 3767m4_require([_LT_DECL_OBJDUMP]) 3768m4_require([_LT_DECL_DLLTOOL]) 3769AC_CACHE_CHECK([how to associate runtime and link libraries], 3770lt_cv_sharedlib_from_linklib_cmd, 3771[lt_cv_sharedlib_from_linklib_cmd='unknown' 3772 3773case $host_os in 3774cygwin* | mingw* | pw32* | cegcc*) |
3510 # two different shell functions defined in ltmain.sh 3511 # decide which to use based on capabilities of $DLLTOOL | 3775 # two different shell functions defined in ltmain.sh; 3776 # decide which one to use based on capabilities of $DLLTOOL |
3512 case `$DLLTOOL --help 2>&1` in 3513 *--identify-strict*) 3514 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 3515 ;; 3516 *) 3517 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 3518 ;; 3519 esac 3520 ;; 3521*) 3522 # fallback: assume linklib IS sharedlib | 3777 case `$DLLTOOL --help 2>&1` in 3778 *--identify-strict*) 3779 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 3780 ;; 3781 *) 3782 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 3783 ;; 3784 esac 3785 ;; 3786*) 3787 # fallback: assume linklib IS sharedlib |
3523 lt_cv_sharedlib_from_linklib_cmd="$ECHO" | 3788 lt_cv_sharedlib_from_linklib_cmd=$ECHO |
3524 ;; 3525esac 3526]) 3527sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 3528test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 3529 3530_LT_DECL([], [sharedlib_from_linklib_cmd], [1], 3531 [Command to associate shared and link libraries]) --- 10 unchanged lines hidden (view full) --- 3542 [lt_cv_path_mainfest_tool=no 3543 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD 3544 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 3545 cat conftest.err >&AS_MESSAGE_LOG_FD 3546 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 3547 lt_cv_path_mainfest_tool=yes 3548 fi 3549 rm -f conftest*]) | 3789 ;; 3790esac 3791]) 3792sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 3793test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 3794 3795_LT_DECL([], [sharedlib_from_linklib_cmd], [1], 3796 [Command to associate shared and link libraries]) --- 10 unchanged lines hidden (view full) --- 3807 [lt_cv_path_mainfest_tool=no 3808 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD 3809 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 3810 cat conftest.err >&AS_MESSAGE_LOG_FD 3811 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 3812 lt_cv_path_mainfest_tool=yes 3813 fi 3814 rm -f conftest*]) |
3550if test "x$lt_cv_path_mainfest_tool" != xyes; then | 3815if test yes != "$lt_cv_path_mainfest_tool"; then |
3551 MANIFEST_TOOL=: 3552fi 3553_LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl 3554])# _LT_PATH_MANIFEST_TOOL 3555 3556 | 3816 MANIFEST_TOOL=: 3817fi 3818_LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl 3819])# _LT_PATH_MANIFEST_TOOL 3820 3821 |
3822# _LT_DLL_DEF_P([FILE]) 3823# --------------------- 3824# True iff FILE is a Windows DLL '.def' file. 3825# Keep in sync with func_dll_def_p in the libtool script 3826AC_DEFUN([_LT_DLL_DEF_P], 3827[dnl 3828 test DEF = "`$SED -n dnl 3829 -e '\''s/^[[ ]]*//'\'' dnl Strip leading whitespace 3830 -e '\''/^\(;.*\)*$/d'\'' dnl Delete empty lines and comments 3831 -e '\''s/^\(EXPORTS\|LIBRARY\)\([[ ]].*\)*$/DEF/p'\'' dnl 3832 -e q dnl Only consider the first "real" line 3833 $1`" dnl 3834])# _LT_DLL_DEF_P 3835 3836 |
|
3557# LT_LIB_M 3558# -------- 3559# check for math library 3560AC_DEFUN([LT_LIB_M], 3561[AC_REQUIRE([AC_CANONICAL_HOST])dnl 3562LIBM= 3563case $host in 3564*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*) 3565 # These system don't have libm, or don't need it 3566 ;; 3567*-ncr-sysv4.3*) | 3837# LT_LIB_M 3838# -------- 3839# check for math library 3840AC_DEFUN([LT_LIB_M], 3841[AC_REQUIRE([AC_CANONICAL_HOST])dnl 3842LIBM= 3843case $host in 3844*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*) 3845 # These system don't have libm, or don't need it 3846 ;; 3847*-ncr-sysv4.3*) |
3568 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") | 3848 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM=-lmw) |
3569 AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") 3570 ;; 3571*) | 3849 AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") 3850 ;; 3851*) |
3572 AC_CHECK_LIB(m, cos, LIBM="-lm") | 3852 AC_CHECK_LIB(m, cos, LIBM=-lm) |
3573 ;; 3574esac 3575AC_SUBST([LIBM]) 3576])# LT_LIB_M 3577 3578# Old name: 3579AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M]) 3580dnl aclocal-1.4 backwards compatibility: 3581dnl AC_DEFUN([AC_CHECK_LIBM], []) 3582 3583 3584# _LT_COMPILER_NO_RTTI([TAGNAME]) 3585# ------------------------------- 3586m4_defun([_LT_COMPILER_NO_RTTI], 3587[m4_require([_LT_TAG_COMPILER])dnl 3588 3589_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= 3590 | 3853 ;; 3854esac 3855AC_SUBST([LIBM]) 3856])# LT_LIB_M 3857 3858# Old name: 3859AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M]) 3860dnl aclocal-1.4 backwards compatibility: 3861dnl AC_DEFUN([AC_CHECK_LIBM], []) 3862 3863 3864# _LT_COMPILER_NO_RTTI([TAGNAME]) 3865# ------------------------------- 3866m4_defun([_LT_COMPILER_NO_RTTI], 3867[m4_require([_LT_TAG_COMPILER])dnl 3868 3869_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= 3870 |
3591if test "$GCC" = yes; then | 3871if test yes = "$GCC"; then |
3592 case $cc_basename in 3593 nvcc*) 3594 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;; 3595 *) 3596 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;; 3597 esac 3598 3599 _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], --- 35 unchanged lines hidden (view full) --- 3635case $host_os in 3636aix*) 3637 symcode='[[BCDT]]' 3638 ;; 3639cygwin* | mingw* | pw32* | cegcc*) 3640 symcode='[[ABCDGISTW]]' 3641 ;; 3642hpux*) | 3872 case $cc_basename in 3873 nvcc*) 3874 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;; 3875 *) 3876 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;; 3877 esac 3878 3879 _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], --- 35 unchanged lines hidden (view full) --- 3915case $host_os in 3916aix*) 3917 symcode='[[BCDT]]' 3918 ;; 3919cygwin* | mingw* | pw32* | cegcc*) 3920 symcode='[[ABCDGISTW]]' 3921 ;; 3922hpux*) |
3643 if test "$host_cpu" = ia64; then | 3923 if test ia64 = "$host_cpu"; then |
3644 symcode='[[ABCDEGRST]]' 3645 fi 3646 ;; 3647irix* | nonstopux*) 3648 symcode='[[BCDEGRST]]' 3649 ;; 3650osf*) 3651 symcode='[[BCDEGQRST]]' --- 16 unchanged lines hidden (view full) --- 3668esac 3669 3670# If we're using GNU nm, then use its standard symbol codes. 3671case `$NM -V 2>&1` in 3672*GNU* | *'with BFD'*) 3673 symcode='[[ABCDGIRSTW]]' ;; 3674esac 3675 | 3924 symcode='[[ABCDEGRST]]' 3925 fi 3926 ;; 3927irix* | nonstopux*) 3928 symcode='[[BCDEGRST]]' 3929 ;; 3930osf*) 3931 symcode='[[BCDEGQRST]]' --- 16 unchanged lines hidden (view full) --- 3948esac 3949 3950# If we're using GNU nm, then use its standard symbol codes. 3951case `$NM -V 2>&1` in 3952*GNU* | *'with BFD'*) 3953 symcode='[[ABCDGIRSTW]]' ;; 3954esac 3955 |
3956if test "$lt_cv_nm_interface" = "MS dumpbin"; then 3957 # Gets list of data symbols to import. 3958 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 3959 # Adjust the below global symbol transforms to fixup imported variables. 3960 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 3961 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 3962 lt_c_name_lib_hook="\ 3963 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 3964 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 3965else 3966 # Disable hooks by default. 3967 lt_cv_sys_global_symbol_to_import= 3968 lt_cdecl_hook= 3969 lt_c_name_hook= 3970 lt_c_name_lib_hook= 3971fi 3972 |
|
3676# Transform an extracted symbol line into a proper C declaration. 3677# Some systems (esp. on ia64) link data and code symbols differently, 3678# so use this general approach. | 3973# Transform an extracted symbol line into a proper C declaration. 3974# Some systems (esp. on ia64) link data and code symbols differently, 3975# so use this general approach. |
3679lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | 3976lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 3977$lt_cdecl_hook\ 3978" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 3979" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" |
3680 3681# Transform an extracted symbol line into symbol name and symbol address | 3980 3981# Transform an extracted symbol line into symbol name and symbol address |
3682lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'" 3683lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'" | 3982lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 3983$lt_c_name_hook\ 3984" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 3985" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" |
3684 | 3986 |
3987# Transform an extracted symbol line into symbol name with lib prefix and 3988# symbol address. 3989lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 3990$lt_c_name_lib_hook\ 3991" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 3992" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 3993" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 3994 |
|
3685# Handle CRLF in mingw tool chain 3686opt_cr= 3687case $build_os in 3688mingw*) 3689 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 3690 ;; 3691esac 3692 3693# Try without a prefix underscore, then with it. 3694for ac_symprfx in "" "_"; do 3695 3696 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 3697 symxfrm="\\1 $ac_symprfx\\2 \\2" 3698 3699 # Write the raw and C identifiers. 3700 if test "$lt_cv_nm_interface" = "MS dumpbin"; then | 3995# Handle CRLF in mingw tool chain 3996opt_cr= 3997case $build_os in 3998mingw*) 3999 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 4000 ;; 4001esac 4002 4003# Try without a prefix underscore, then with it. 4004for ac_symprfx in "" "_"; do 4005 4006 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 4007 symxfrm="\\1 $ac_symprfx\\2 \\2" 4008 4009 # Write the raw and C identifiers. 4010 if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
3701 # Fake it for dumpbin and say T for any non-static function 3702 # and D for any global variable. | 4011 # Fake it for dumpbin and say T for any non-static function, 4012 # D for any global variable and I for any imported variable. |
3703 # Also find C++ and __fastcall symbols from MSVC++, 3704 # which start with @ or ?. 3705 lt_cv_sys_global_symbol_pipe="$AWK ['"\ 3706" {last_section=section; section=\$ 3};"\ 3707" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 3708" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | 4013 # Also find C++ and __fastcall symbols from MSVC++, 4014 # which start with @ or ?. 4015 lt_cv_sys_global_symbol_pipe="$AWK ['"\ 4016" {last_section=section; section=\$ 3};"\ 4017" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 4018" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ |
4019" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 4020" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 4021" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ |
|
3709" \$ 0!~/External *\|/{next};"\ 3710" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 3711" {if(hide[section]) next};"\ | 4022" \$ 0!~/External *\|/{next};"\ 4023" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 4024" {if(hide[section]) next};"\ |
3712" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 3713" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 3714" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 3715" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | 4025" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 4026" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 4027" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 4028" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ |
3716" ' prfx=^$ac_symprfx]" 3717 else 3718 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 3719 fi 3720 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 3721 3722 # Check to see that the pipe works correctly. 3723 pipe_works=no --- 23 unchanged lines hidden (view full) --- 3747 rm -f "$nlist"T 3748 fi 3749 3750 # Make sure that we snagged all the symbols we need. 3751 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 3752 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 3753 cat <<_LT_EOF > conftest.$ac_ext 3754/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ | 4029" ' prfx=^$ac_symprfx]" 4030 else 4031 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 4032 fi 4033 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 4034 4035 # Check to see that the pipe works correctly. 4036 pipe_works=no --- 23 unchanged lines hidden (view full) --- 4060 rm -f "$nlist"T 4061 fi 4062 4063 # Make sure that we snagged all the symbols we need. 4064 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 4065 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 4066 cat <<_LT_EOF > conftest.$ac_ext 4067/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ |
3755#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 3756/* DATA imports from DLLs on WIN32 con't be const, because runtime | 4068#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 4069/* DATA imports from DLLs on WIN32 can't be const, because runtime |
3757 relocations are performed -- see ld's documentation on pseudo-relocs. */ 3758# define LT@&t@_DLSYM_CONST | 4070 relocations are performed -- see ld's documentation on pseudo-relocs. */ 4071# define LT@&t@_DLSYM_CONST |
3759#elif defined(__osf__) | 4072#elif defined __osf__ |
3760/* This system does not cope well with relocations in const data. */ 3761# define LT@&t@_DLSYM_CONST 3762#else 3763# define LT@&t@_DLSYM_CONST const 3764#endif 3765 3766#ifdef __cplusplus 3767extern "C" { --- 9 unchanged lines hidden (view full) --- 3777LT@&t@_DLSYM_CONST struct { 3778 const char *name; 3779 void *address; 3780} 3781lt__PROGRAM__LTX_preloaded_symbols[[]] = 3782{ 3783 { "@PROGRAM@", (void *) 0 }, 3784_LT_EOF | 4073/* This system does not cope well with relocations in const data. */ 4074# define LT@&t@_DLSYM_CONST 4075#else 4076# define LT@&t@_DLSYM_CONST const 4077#endif 4078 4079#ifdef __cplusplus 4080extern "C" { --- 9 unchanged lines hidden (view full) --- 4090LT@&t@_DLSYM_CONST struct { 4091 const char *name; 4092 void *address; 4093} 4094lt__PROGRAM__LTX_preloaded_symbols[[]] = 4095{ 4096 { "@PROGRAM@", (void *) 0 }, 4097_LT_EOF |
3785 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | 4098 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext |
3786 cat <<\_LT_EOF >> conftest.$ac_ext 3787 {0, (void *) 0} 3788}; 3789 3790/* This works around a problem in FreeBSD linker */ 3791#ifdef FREEBSD_WORKAROUND 3792static const void *lt_preloaded_setup() { 3793 return lt__PROGRAM__LTX_preloaded_symbols; 3794} 3795#endif 3796 3797#ifdef __cplusplus 3798} 3799#endif 3800_LT_EOF 3801 # Now try linking the two files. 3802 mv conftest.$ac_objext conftstm.$ac_objext 3803 lt_globsym_save_LIBS=$LIBS 3804 lt_globsym_save_CFLAGS=$CFLAGS | 4099 cat <<\_LT_EOF >> conftest.$ac_ext 4100 {0, (void *) 0} 4101}; 4102 4103/* This works around a problem in FreeBSD linker */ 4104#ifdef FREEBSD_WORKAROUND 4105static const void *lt_preloaded_setup() { 4106 return lt__PROGRAM__LTX_preloaded_symbols; 4107} 4108#endif 4109 4110#ifdef __cplusplus 4111} 4112#endif 4113_LT_EOF 4114 # Now try linking the two files. 4115 mv conftest.$ac_objext conftstm.$ac_objext 4116 lt_globsym_save_LIBS=$LIBS 4117 lt_globsym_save_CFLAGS=$CFLAGS |
3805 LIBS="conftstm.$ac_objext" | 4118 LIBS=conftstm.$ac_objext |
3806 CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" | 4119 CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" |
3807 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then | 4120 if AC_TRY_EVAL(ac_link) && test -s conftest$ac_exeext; then |
3808 pipe_works=yes 3809 fi 3810 LIBS=$lt_globsym_save_LIBS 3811 CFLAGS=$lt_globsym_save_CFLAGS 3812 else 3813 echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD 3814 fi 3815 else --- 4 unchanged lines hidden (view full) --- 3820 fi 3821 else 3822 echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD 3823 cat conftest.$ac_ext >&5 3824 fi 3825 rm -rf conftest* conftst* 3826 3827 # Do not use the global_symbol_pipe unless it works. | 4121 pipe_works=yes 4122 fi 4123 LIBS=$lt_globsym_save_LIBS 4124 CFLAGS=$lt_globsym_save_CFLAGS 4125 else 4126 echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD 4127 fi 4128 else --- 4 unchanged lines hidden (view full) --- 4133 fi 4134 else 4135 echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD 4136 cat conftest.$ac_ext >&5 4137 fi 4138 rm -rf conftest* conftst* 4139 4140 # Do not use the global_symbol_pipe unless it works. |
3828 if test "$pipe_works" = yes; then | 4141 if test yes = "$pipe_works"; then |
3829 break 3830 else 3831 lt_cv_sys_global_symbol_pipe= 3832 fi 3833done 3834]) 3835if test -z "$lt_cv_sys_global_symbol_pipe"; then 3836 lt_cv_sys_global_symbol_to_cdecl= --- 10 unchanged lines hidden (view full) --- 3847elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then 3848 nm_file_list_spec='@' 3849fi 3850 3851_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1], 3852 [Take the output of nm and produce a listing of raw symbols and C names]) 3853_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1], 3854 [Transform the output of nm in a proper C declaration]) | 4142 break 4143 else 4144 lt_cv_sys_global_symbol_pipe= 4145 fi 4146done 4147]) 4148if test -z "$lt_cv_sys_global_symbol_pipe"; then 4149 lt_cv_sys_global_symbol_to_cdecl= --- 10 unchanged lines hidden (view full) --- 4160elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then 4161 nm_file_list_spec='@' 4162fi 4163 4164_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1], 4165 [Take the output of nm and produce a listing of raw symbols and C names]) 4166_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1], 4167 [Transform the output of nm in a proper C declaration]) |
4168_LT_DECL([global_symbol_to_import], [lt_cv_sys_global_symbol_to_import], [1], 4169 [Transform the output of nm into a list of symbols to manually relocate]) |
|
3855_LT_DECL([global_symbol_to_c_name_address], 3856 [lt_cv_sys_global_symbol_to_c_name_address], [1], 3857 [Transform the output of nm in a C name address pair]) 3858_LT_DECL([global_symbol_to_c_name_address_lib_prefix], 3859 [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1], 3860 [Transform the output of nm in a C name address pair when lib prefix is needed]) | 4170_LT_DECL([global_symbol_to_c_name_address], 4171 [lt_cv_sys_global_symbol_to_c_name_address], [1], 4172 [Transform the output of nm in a C name address pair]) 4173_LT_DECL([global_symbol_to_c_name_address_lib_prefix], 4174 [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1], 4175 [Transform the output of nm in a C name address pair when lib prefix is needed]) |
4176_LT_DECL([nm_interface], [lt_cv_nm_interface], [1], 4177 [The name lister interface]) |
|
3861_LT_DECL([], [nm_file_list_spec], [1], 3862 [Specify filename containing input files for $NM]) 3863]) # _LT_CMD_GLOBAL_SYMBOLS 3864 3865 3866# _LT_COMPILER_PIC([TAGNAME]) 3867# --------------------------- 3868m4_defun([_LT_COMPILER_PIC], 3869[m4_require([_LT_TAG_COMPILER])dnl 3870_LT_TAGVAR(lt_prog_compiler_wl, $1)= 3871_LT_TAGVAR(lt_prog_compiler_pic, $1)= 3872_LT_TAGVAR(lt_prog_compiler_static, $1)= 3873 3874m4_if([$1], [CXX], [ 3875 # C++ specific cases for pic, static, wl, etc. | 4178_LT_DECL([], [nm_file_list_spec], [1], 4179 [Specify filename containing input files for $NM]) 4180]) # _LT_CMD_GLOBAL_SYMBOLS 4181 4182 4183# _LT_COMPILER_PIC([TAGNAME]) 4184# --------------------------- 4185m4_defun([_LT_COMPILER_PIC], 4186[m4_require([_LT_TAG_COMPILER])dnl 4187_LT_TAGVAR(lt_prog_compiler_wl, $1)= 4188_LT_TAGVAR(lt_prog_compiler_pic, $1)= 4189_LT_TAGVAR(lt_prog_compiler_static, $1)= 4190 4191m4_if([$1], [CXX], [ 4192 # C++ specific cases for pic, static, wl, etc. |
3876 if test "$GXX" = yes; then | 4193 if test yes = "$GXX"; then |
3877 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 3878 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 3879 3880 case $host_os in 3881 aix*) 3882 # All AIX code is PIC. | 4194 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4195 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 4196 4197 case $host_os in 4198 aix*) 4199 # All AIX code is PIC. |
3883 if test "$host_cpu" = ia64; then | 4200 if test ia64 = "$host_cpu"; then |
3884 # AIX 5 now supports IA64 processor 3885 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 3886 fi | 4201 # AIX 5 now supports IA64 processor 4202 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4203 fi |
4204 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
|
3887 ;; 3888 3889 amigaos*) 3890 case $host_cpu in 3891 powerpc) 3892 # see comment about AmigaOS4 .so support 3893 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 3894 ;; 3895 m68k) 3896 # FIXME: we need at least 68020 code to build shared libraries, but | 4205 ;; 4206 4207 amigaos*) 4208 case $host_cpu in 4209 powerpc) 4210 # see comment about AmigaOS4 .so support 4211 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 4212 ;; 4213 m68k) 4214 # FIXME: we need at least 68020 code to build shared libraries, but |
3897 # adding the `-m68020' flag to GCC prevents building anything better, 3898 # like `-m68040'. | 4215 # adding the '-m68020' flag to GCC prevents building anything better, 4216 # like '-m68040'. |
3899 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' 3900 ;; 3901 esac 3902 ;; 3903 3904 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 3905 # PIC is the default for these OSes. 3906 ;; 3907 mingw* | cygwin* | os2* | pw32* | cegcc*) 3908 # This hack is so that the source file can tell whether it is being 3909 # built for inclusion in a dll (and should export symbols for example). 3910 # Although the cygwin gcc ignores -fPIC, still need this for old-style 3911 # (--disable-auto-import) libraries 3912 m4_if([$1], [GCJ], [], 3913 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) | 4217 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' 4218 ;; 4219 esac 4220 ;; 4221 4222 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 4223 # PIC is the default for these OSes. 4224 ;; 4225 mingw* | cygwin* | os2* | pw32* | cegcc*) 4226 # This hack is so that the source file can tell whether it is being 4227 # built for inclusion in a dll (and should export symbols for example). 4228 # Although the cygwin gcc ignores -fPIC, still need this for old-style 4229 # (--disable-auto-import) libraries 4230 m4_if([$1], [GCJ], [], 4231 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) |
4232 case $host_os in 4233 os2*) 4234 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static' 4235 ;; 4236 esac |
|
3914 ;; 3915 darwin* | rhapsody*) 3916 # PIC is the default on this platform 3917 # Common symbols not allowed in MH_DYLIB files 3918 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' 3919 ;; 3920 *djgpp*) 3921 # DJGPP does not support shared libraries at all --- 33 unchanged lines hidden (view full) --- 3955 *) 3956 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 3957 ;; 3958 esac 3959 else 3960 case $host_os in 3961 aix[[4-9]]*) 3962 # All AIX code is PIC. | 4237 ;; 4238 darwin* | rhapsody*) 4239 # PIC is the default on this platform 4240 # Common symbols not allowed in MH_DYLIB files 4241 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' 4242 ;; 4243 *djgpp*) 4244 # DJGPP does not support shared libraries at all --- 33 unchanged lines hidden (view full) --- 4278 *) 4279 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 4280 ;; 4281 esac 4282 else 4283 case $host_os in 4284 aix[[4-9]]*) 4285 # All AIX code is PIC. |
3963 if test "$host_cpu" = ia64; then | 4286 if test ia64 = "$host_cpu"; then |
3964 # AIX 5 now supports IA64 processor 3965 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 3966 else 3967 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' 3968 fi 3969 ;; 3970 chorus*) 3971 case $cc_basename in --- 24 unchanged lines hidden (view full) --- 3996 ;; 3997 freebsd* | dragonfly*) 3998 # FreeBSD uses GNU C++ 3999 ;; 4000 hpux9* | hpux10* | hpux11*) 4001 case $cc_basename in 4002 CC*) 4003 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | 4287 # AIX 5 now supports IA64 processor 4288 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4289 else 4290 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' 4291 fi 4292 ;; 4293 chorus*) 4294 case $cc_basename in --- 24 unchanged lines hidden (view full) --- 4319 ;; 4320 freebsd* | dragonfly*) 4321 # FreeBSD uses GNU C++ 4322 ;; 4323 hpux9* | hpux10* | hpux11*) 4324 case $cc_basename in 4325 CC*) 4326 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4004 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' 4005 if test "$host_cpu" != ia64; then | 4327 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive' 4328 if test ia64 != "$host_cpu"; then |
4006 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 4007 fi 4008 ;; 4009 aCC*) 4010 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | 4329 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 4330 fi 4331 ;; 4332 aCC*) 4333 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4011 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' | 4334 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive' |
4012 case $host_cpu in 4013 hppa*64*|ia64*) 4014 # +Z the default 4015 ;; 4016 *) 4017 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 4018 ;; 4019 esac --- 12 unchanged lines hidden (view full) --- 4032 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4033 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 4034 # CC pic flag -KPIC is the default. 4035 ;; 4036 *) 4037 ;; 4038 esac 4039 ;; | 4335 case $host_cpu in 4336 hppa*64*|ia64*) 4337 # +Z the default 4338 ;; 4339 *) 4340 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 4341 ;; 4342 esac --- 12 unchanged lines hidden (view full) --- 4355 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4356 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 4357 # CC pic flag -KPIC is the default. 4358 ;; 4359 *) 4360 ;; 4361 esac 4362 ;; |
4040 linux* | k*bsd*-gnu | kopensolaris*-gnu) | 4363 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
4041 case $cc_basename in 4042 KCC*) 4043 # KAI C++ Compiler 4044 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' 4045 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 4046 ;; 4047 ecpc* ) | 4364 case $cc_basename in 4365 KCC*) 4366 # KAI C++ Compiler 4367 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' 4368 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 4369 ;; 4370 ecpc* ) |
4048 # old Intel C++ for x86_64 which still supported -KPIC. | 4371 # old Intel C++ for x86_64, which still supported -KPIC. |
4049 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4050 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4051 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 4052 ;; 4053 icpc* ) 4054 # Intel C++, used to be incompatible with GCC. 4055 # ICC 10 doesn't accept -KPIC any more. 4056 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' --- 128 unchanged lines hidden (view full) --- 4185 ;; 4186 *) 4187 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 4188 ;; 4189 esac 4190 fi 4191], 4192[ | 4372 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4373 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4374 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 4375 ;; 4376 icpc* ) 4377 # Intel C++, used to be incompatible with GCC. 4378 # ICC 10 doesn't accept -KPIC any more. 4379 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' --- 128 unchanged lines hidden (view full) --- 4508 ;; 4509 *) 4510 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 4511 ;; 4512 esac 4513 fi 4514], 4515[ |
4193 if test "$GCC" = yes; then | 4516 if test yes = "$GCC"; then |
4194 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4195 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 4196 4197 case $host_os in 4198 aix*) 4199 # All AIX code is PIC. | 4517 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4518 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 4519 4520 case $host_os in 4521 aix*) 4522 # All AIX code is PIC. |
4200 if test "$host_cpu" = ia64; then | 4523 if test ia64 = "$host_cpu"; then |
4201 # AIX 5 now supports IA64 processor 4202 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4203 fi | 4524 # AIX 5 now supports IA64 processor 4525 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4526 fi |
4527 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
|
4204 ;; 4205 4206 amigaos*) 4207 case $host_cpu in 4208 powerpc) 4209 # see comment about AmigaOS4 .so support 4210 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 4211 ;; 4212 m68k) 4213 # FIXME: we need at least 68020 code to build shared libraries, but | 4528 ;; 4529 4530 amigaos*) 4531 case $host_cpu in 4532 powerpc) 4533 # see comment about AmigaOS4 .so support 4534 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 4535 ;; 4536 m68k) 4537 # FIXME: we need at least 68020 code to build shared libraries, but |
4214 # adding the `-m68020' flag to GCC prevents building anything better, 4215 # like `-m68040'. | 4538 # adding the '-m68020' flag to GCC prevents building anything better, 4539 # like '-m68040'. |
4216 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' 4217 ;; 4218 esac 4219 ;; 4220 4221 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 4222 # PIC is the default for these OSes. 4223 ;; 4224 4225 mingw* | cygwin* | pw32* | os2* | cegcc*) 4226 # This hack is so that the source file can tell whether it is being 4227 # built for inclusion in a dll (and should export symbols for example). 4228 # Although the cygwin gcc ignores -fPIC, still need this for old-style 4229 # (--disable-auto-import) libraries 4230 m4_if([$1], [GCJ], [], 4231 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) | 4540 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' 4541 ;; 4542 esac 4543 ;; 4544 4545 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 4546 # PIC is the default for these OSes. 4547 ;; 4548 4549 mingw* | cygwin* | pw32* | os2* | cegcc*) 4550 # This hack is so that the source file can tell whether it is being 4551 # built for inclusion in a dll (and should export symbols for example). 4552 # Although the cygwin gcc ignores -fPIC, still need this for old-style 4553 # (--disable-auto-import) libraries 4554 m4_if([$1], [GCJ], [], 4555 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) |
4556 case $host_os in 4557 os2*) 4558 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static' 4559 ;; 4560 esac |
|
4232 ;; 4233 4234 darwin* | rhapsody*) 4235 # PIC is the default on this platform 4236 # Common symbols not allowed in MH_DYLIB files 4237 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' 4238 ;; 4239 --- 54 unchanged lines hidden (view full) --- 4294 fi 4295 ;; 4296 esac 4297 else 4298 # PORTME Check for flag to pass linker flags through the system compiler. 4299 case $host_os in 4300 aix*) 4301 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | 4561 ;; 4562 4563 darwin* | rhapsody*) 4564 # PIC is the default on this platform 4565 # Common symbols not allowed in MH_DYLIB files 4566 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' 4567 ;; 4568 --- 54 unchanged lines hidden (view full) --- 4623 fi 4624 ;; 4625 esac 4626 else 4627 # PORTME Check for flag to pass linker flags through the system compiler. 4628 case $host_os in 4629 aix*) 4630 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4302 if test "$host_cpu" = ia64; then | 4631 if test ia64 = "$host_cpu"; then |
4303 # AIX 5 now supports IA64 processor 4304 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4305 else 4306 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' 4307 fi 4308 ;; 4309 | 4632 # AIX 5 now supports IA64 processor 4633 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4634 else 4635 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' 4636 fi 4637 ;; 4638 |
4639 darwin* | rhapsody*) 4640 # PIC is the default on this platform 4641 # Common symbols not allowed in MH_DYLIB files 4642 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' 4643 case $cc_basename in 4644 nagfor*) 4645 # NAG Fortran compiler 4646 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,' 4647 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' 4648 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4649 ;; 4650 esac 4651 ;; 4652 |
|
4310 mingw* | cygwin* | pw32* | os2* | cegcc*) 4311 # This hack is so that the source file can tell whether it is being 4312 # built for inclusion in a dll (and should export symbols for example). 4313 m4_if([$1], [GCJ], [], 4314 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) | 4653 mingw* | cygwin* | pw32* | os2* | cegcc*) 4654 # This hack is so that the source file can tell whether it is being 4655 # built for inclusion in a dll (and should export symbols for example). 4656 m4_if([$1], [GCJ], [], 4657 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) |
4658 case $host_os in 4659 os2*) 4660 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static' 4661 ;; 4662 esac |
|
4315 ;; 4316 4317 hpux9* | hpux10* | hpux11*) 4318 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4319 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 4320 # not for PA HP-UX. 4321 case $host_cpu in 4322 hppa*64*|ia64*) 4323 # +Z the default 4324 ;; 4325 *) 4326 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 4327 ;; 4328 esac 4329 # Is there a better lt_prog_compiler_static that works with the bundled CC? | 4663 ;; 4664 4665 hpux9* | hpux10* | hpux11*) 4666 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4667 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 4668 # not for PA HP-UX. 4669 case $host_cpu in 4670 hppa*64*|ia64*) 4671 # +Z the default 4672 ;; 4673 *) 4674 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 4675 ;; 4676 esac 4677 # Is there a better lt_prog_compiler_static that works with the bundled CC? |
4330 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' | 4678 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive' |
4331 ;; 4332 4333 irix5* | irix6* | nonstopux*) 4334 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4335 # PIC (with -KPIC) is the default. 4336 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 4337 ;; 4338 | 4679 ;; 4680 4681 irix5* | irix6* | nonstopux*) 4682 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4683 # PIC (with -KPIC) is the default. 4684 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 4685 ;; 4686 |
4339 linux* | k*bsd*-gnu | kopensolaris*-gnu) | 4687 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
4340 case $cc_basename in | 4688 case $cc_basename in |
4341 # old Intel for x86_64 which still supported -KPIC. | 4689 # old Intel for x86_64, which still supported -KPIC. |
4342 ecc*) 4343 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4344 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4345 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 4346 ;; 4347 # icc used to be incompatible with GCC. 4348 # ICC 10 doesn't accept -KPIC any more. 4349 icc* | ifort*) --- 8 unchanged lines hidden (view full) --- 4358 _LT_TAGVAR(lt_prog_compiler_static, $1)='--static' 4359 ;; 4360 nagfor*) 4361 # NAG Fortran compiler 4362 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,' 4363 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' 4364 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4365 ;; | 4690 ecc*) 4691 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4692 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4693 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 4694 ;; 4695 # icc used to be incompatible with GCC. 4696 # ICC 10 doesn't accept -KPIC any more. 4697 icc* | ifort*) --- 8 unchanged lines hidden (view full) --- 4706 _LT_TAGVAR(lt_prog_compiler_static, $1)='--static' 4707 ;; 4708 nagfor*) 4709 # NAG Fortran compiler 4710 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,' 4711 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' 4712 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4713 ;; |
4714 tcc*) 4715 # Fabrice Bellard et al's Tiny C Compiler 4716 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4717 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 4718 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 4719 ;; |
|
4366 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 4367 # Portland Group compilers (*not* the Pentium gcc compiler, 4368 # which looks to be a dead project) 4369 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4370 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' 4371 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4372 ;; 4373 ccc*) --- 81 unchanged lines hidden (view full) --- 4455 4456 sysv4 | sysv4.2uw2* | sysv4.3*) 4457 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4458 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4459 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4460 ;; 4461 4462 sysv4*MP*) | 4720 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 4721 # Portland Group compilers (*not* the Pentium gcc compiler, 4722 # which looks to be a dead project) 4723 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4724 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' 4725 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4726 ;; 4727 ccc*) --- 81 unchanged lines hidden (view full) --- 4809 4810 sysv4 | sysv4.2uw2* | sysv4.3*) 4811 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4812 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4813 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4814 ;; 4815 4816 sysv4*MP*) |
4463 if test -d /usr/nec ;then | 4817 if test -d /usr/nec; then |
4464 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' 4465 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4466 fi 4467 ;; 4468 4469 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 4470 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4471 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' --- 12 unchanged lines hidden (view full) --- 4484 4485 *) 4486 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 4487 ;; 4488 esac 4489 fi 4490]) 4491case $host_os in | 4818 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' 4819 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4820 fi 4821 ;; 4822 4823 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 4824 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4825 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' --- 12 unchanged lines hidden (view full) --- 4838 4839 *) 4840 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 4841 ;; 4842 esac 4843 fi 4844]) 4845case $host_os in |
4492 # For platforms which do not support PIC, -DPIC is meaningless: | 4846 # For platforms that do not support PIC, -DPIC is meaningless: |
4493 *djgpp*) 4494 _LT_TAGVAR(lt_prog_compiler_pic, $1)= 4495 ;; 4496 *) 4497 _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])" 4498 ;; 4499esac 4500 --- 49 unchanged lines hidden (view full) --- 4550m4_require([_LT_TAG_COMPILER])dnl 4551AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) 4552m4_if([$1], [CXX], [ 4553 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 4554 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] 4555 case $host_os in 4556 aix[[4-9]]*) 4557 # If we're using GNU nm, then we don't want the "-C" option. | 4847 *djgpp*) 4848 _LT_TAGVAR(lt_prog_compiler_pic, $1)= 4849 ;; 4850 *) 4851 _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])" 4852 ;; 4853esac 4854 --- 49 unchanged lines hidden (view full) --- 4904m4_require([_LT_TAG_COMPILER])dnl 4905AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) 4906m4_if([$1], [CXX], [ 4907 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 4908 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] 4909 case $host_os in 4910 aix[[4-9]]*) 4911 # If we're using GNU nm, then we don't want the "-C" option. |
4558 # -C means demangle to AIX nm, but means don't demangle with GNU nm 4559 # Also, AIX nm treats weak defined symbols like other global defined 4560 # symbols, whereas GNU nm marks them as "W". | 4912 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 4913 # Without the "-l" option, or with the "-B" option, AIX nm treats 4914 # weak defined symbols like other global defined symbols, whereas 4915 # GNU nm marks them as "W". 4916 # While the 'weak' keyword is ignored in the Export File, we need 4917 # it in the Import File for the 'aix-soname' feature, so we have 4918 # to replace the "-B" option with "-P" for AIX nm. |
4561 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | 4919 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
4562 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | 4920 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' |
4563 else | 4921 else |
4564 _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' | 4922 _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' |
4565 fi 4566 ;; 4567 pw32*) | 4923 fi 4924 ;; 4925 pw32*) |
4568 _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" | 4926 _LT_TAGVAR(export_symbols_cmds, $1)=$ltdll_cmds |
4569 ;; 4570 cygwin* | mingw* | cegcc*) 4571 case $cc_basename in 4572 cl*) 4573 _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 4574 ;; 4575 *) 4576 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols' --- 29 unchanged lines hidden (view full) --- 4606 _LT_TAGVAR(old_archive_from_new_cmds, $1)= 4607 _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)= 4608 _LT_TAGVAR(thread_safe_flag_spec, $1)= 4609 _LT_TAGVAR(whole_archive_flag_spec, $1)= 4610 # include_expsyms should be a list of space-separated symbols to be *always* 4611 # included in the symbol list 4612 _LT_TAGVAR(include_expsyms, $1)= 4613 # exclude_expsyms can be an extended regexp of symbols to exclude | 4927 ;; 4928 cygwin* | mingw* | cegcc*) 4929 case $cc_basename in 4930 cl*) 4931 _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 4932 ;; 4933 *) 4934 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols' --- 29 unchanged lines hidden (view full) --- 4964 _LT_TAGVAR(old_archive_from_new_cmds, $1)= 4965 _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)= 4966 _LT_TAGVAR(thread_safe_flag_spec, $1)= 4967 _LT_TAGVAR(whole_archive_flag_spec, $1)= 4968 # include_expsyms should be a list of space-separated symbols to be *always* 4969 # included in the symbol list 4970 _LT_TAGVAR(include_expsyms, $1)= 4971 # exclude_expsyms can be an extended regexp of symbols to exclude |
4614 # it will be wrapped by ` (' and `)$', so one must not match beginning or 4615 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 4616 # as well as any symbol that contains `d'. | 4972 # it will be wrapped by ' (' and ')$', so one must not match beginning or 4973 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 4974 # as well as any symbol that contains 'd'. |
4617 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] 4618 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 4619 # platforms (ab)use it in PIC code, but their linkers get confused if 4620 # the symbol is explicitly referenced. Since portable code cannot 4621 # rely on this symbol name, it's probably fine to never include it in 4622 # preloaded symbol tables. 4623 # Exclude shared library initialization/finalization symbols. 4624dnl Note also adjust exclude_expsyms for C++ above. 4625 extract_expsyms_cmds= 4626 4627 case $host_os in 4628 cygwin* | mingw* | pw32* | cegcc*) 4629 # FIXME: the MSVC++ port hasn't been tested in a loooong time 4630 # When not using gcc, we currently assume that we are using 4631 # Microsoft Visual C++. | 4975 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] 4976 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 4977 # platforms (ab)use it in PIC code, but their linkers get confused if 4978 # the symbol is explicitly referenced. Since portable code cannot 4979 # rely on this symbol name, it's probably fine to never include it in 4980 # preloaded symbol tables. 4981 # Exclude shared library initialization/finalization symbols. 4982dnl Note also adjust exclude_expsyms for C++ above. 4983 extract_expsyms_cmds= 4984 4985 case $host_os in 4986 cygwin* | mingw* | pw32* | cegcc*) 4987 # FIXME: the MSVC++ port hasn't been tested in a loooong time 4988 # When not using gcc, we currently assume that we are using 4989 # Microsoft Visual C++. |
4632 if test "$GCC" != yes; then | 4990 if test yes != "$GCC"; then |
4633 with_gnu_ld=no 4634 fi 4635 ;; 4636 interix*) 4637 # we just hope/assume this is gcc and not c89 (= MSVC++) 4638 with_gnu_ld=yes 4639 ;; | 4991 with_gnu_ld=no 4992 fi 4993 ;; 4994 interix*) 4995 # we just hope/assume this is gcc and not c89 (= MSVC++) 4996 with_gnu_ld=yes 4997 ;; |
4640 openbsd*) | 4998 openbsd* | bitrig*) |
4641 with_gnu_ld=no 4642 ;; 4643 esac 4644 4645 _LT_TAGVAR(ld_shlibs, $1)=yes 4646 4647 # On some targets, GNU ld is compatible enough with the native linker 4648 # that we're better off using the native interface for both. 4649 lt_use_gnu_ld_interface=no | 4999 with_gnu_ld=no 5000 ;; 5001 esac 5002 5003 _LT_TAGVAR(ld_shlibs, $1)=yes 5004 5005 # On some targets, GNU ld is compatible enough with the native linker 5006 # that we're better off using the native interface for both. 5007 lt_use_gnu_ld_interface=no |
4650 if test "$with_gnu_ld" = yes; then | 5008 if test yes = "$with_gnu_ld"; then |
4651 case $host_os in 4652 aix*) 4653 # The AIX port of GNU ld has always aspired to compatibility 4654 # with the native linker. However, as the warning in the GNU ld 4655 # block says, versions before 2.19.5* couldn't really create working 4656 # shared libraries, regardless of the interface used. 4657 case `$LD -v 2>&1` in 4658 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; --- 5 unchanged lines hidden (view full) --- 4664 esac 4665 ;; 4666 *) 4667 lt_use_gnu_ld_interface=yes 4668 ;; 4669 esac 4670 fi 4671 | 5009 case $host_os in 5010 aix*) 5011 # The AIX port of GNU ld has always aspired to compatibility 5012 # with the native linker. However, as the warning in the GNU ld 5013 # block says, versions before 2.19.5* couldn't really create working 5014 # shared libraries, regardless of the interface used. 5015 case `$LD -v 2>&1` in 5016 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; --- 5 unchanged lines hidden (view full) --- 5022 esac 5023 ;; 5024 *) 5025 lt_use_gnu_ld_interface=yes 5026 ;; 5027 esac 5028 fi 5029 |
4672 if test "$lt_use_gnu_ld_interface" = yes; then | 5030 if test yes = "$lt_use_gnu_ld_interface"; then |
4673 # If archive_cmds runs LD, not CC, wlarc should be empty | 5031 # If archive_cmds runs LD, not CC, wlarc should be empty |
4674 wlarc='${wl}' | 5032 wlarc='$wl' |
4675 4676 # Set some defaults for GNU ld with shared library support. These 4677 # are reset later if shared libraries are not supported. Putting them 4678 # here allows them to be overridden if necessary. 4679 runpath_var=LD_RUN_PATH | 5033 5034 # Set some defaults for GNU ld with shared library support. These 5035 # are reset later if shared libraries are not supported. Putting them 5036 # here allows them to be overridden if necessary. 5037 runpath_var=LD_RUN_PATH |
4680 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 4681 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' | 5038 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 5039 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' |
4682 # ancient GNU ld didn't support --whole-archive et. al. 4683 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | 5040 # ancient GNU ld didn't support --whole-archive et. al. 5041 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then |
4684 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | 5042 _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' |
4685 else 4686 _LT_TAGVAR(whole_archive_flag_spec, $1)= 4687 fi 4688 supports_anon_versioning=no | 5043 else 5044 _LT_TAGVAR(whole_archive_flag_spec, $1)= 5045 fi 5046 supports_anon_versioning=no |
4689 case `$LD -v 2>&1` in | 5047 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in |
4690 *GNU\ gold*) supports_anon_versioning=yes ;; 4691 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 4692 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 4693 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 4694 *\ 2.11.*) ;; # other 2.11 versions 4695 *) supports_anon_versioning=yes ;; 4696 esac 4697 4698 # See if GNU ld supports shared libraries. 4699 case $host_os in 4700 aix[[3-9]]*) 4701 # On AIX/PPC, the GNU linker is very broken | 5048 *GNU\ gold*) supports_anon_versioning=yes ;; 5049 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 5050 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 5051 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 5052 *\ 2.11.*) ;; # other 2.11 versions 5053 *) supports_anon_versioning=yes ;; 5054 esac 5055 5056 # See if GNU ld supports shared libraries. 5057 case $host_os in 5058 aix[[3-9]]*) 5059 # On AIX/PPC, the GNU linker is very broken |
4702 if test "$host_cpu" != ia64; then | 5060 if test ia64 != "$host_cpu"; then |
4703 _LT_TAGVAR(ld_shlibs, $1)=no 4704 cat <<_LT_EOF 1>&2 4705 4706*** Warning: the GNU linker, at least up to release 2.19, is reported 4707*** to be unable to reliably create shared libraries on AIX. 4708*** Therefore, libtool is disabling shared libraries support. If you 4709*** really care for shared libraries, you may want to install binutils 4710*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 4711*** You will then need to restart the configuration process. 4712 4713_LT_EOF 4714 fi 4715 ;; 4716 4717 amigaos*) 4718 case $host_cpu in 4719 powerpc) 4720 # see comment about AmigaOS4 .so support | 5061 _LT_TAGVAR(ld_shlibs, $1)=no 5062 cat <<_LT_EOF 1>&2 5063 5064*** Warning: the GNU linker, at least up to release 2.19, is reported 5065*** to be unable to reliably create shared libraries on AIX. 5066*** Therefore, libtool is disabling shared libraries support. If you 5067*** really care for shared libraries, you may want to install binutils 5068*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 5069*** You will then need to restart the configuration process. 5070 5071_LT_EOF 5072 fi 5073 ;; 5074 5075 amigaos*) 5076 case $host_cpu in 5077 powerpc) 5078 # see comment about AmigaOS4 .so support |
4721 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 5079 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
4722 _LT_TAGVAR(archive_expsym_cmds, $1)='' 4723 ;; 4724 m68k) 4725 _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)' 4726 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 4727 _LT_TAGVAR(hardcode_minus_L, $1)=yes 4728 ;; 4729 esac 4730 ;; 4731 4732 beos*) 4733 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 4734 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 4735 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 4736 # support --undefined. This deserves some investigation. FIXME | 5080 _LT_TAGVAR(archive_expsym_cmds, $1)='' 5081 ;; 5082 m68k) 5083 _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)' 5084 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 5085 _LT_TAGVAR(hardcode_minus_L, $1)=yes 5086 ;; 5087 esac 5088 ;; 5089 5090 beos*) 5091 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 5092 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 5093 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 5094 # support --undefined. This deserves some investigation. FIXME |
4737 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 5095 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
4738 else 4739 _LT_TAGVAR(ld_shlibs, $1)=no 4740 fi 4741 ;; 4742 4743 cygwin* | mingw* | pw32* | cegcc*) 4744 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, 4745 # as there is no search path for DLLs. 4746 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | 5096 else 5097 _LT_TAGVAR(ld_shlibs, $1)=no 5098 fi 5099 ;; 5100 5101 cygwin* | mingw* | pw32* | cegcc*) 5102 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, 5103 # as there is no search path for DLLs. 5104 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
4747 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols' | 5105 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols' |
4748 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 4749 _LT_TAGVAR(always_export_symbols, $1)=no 4750 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 4751 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols' 4752 _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'] 4753 4754 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | 5106 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 5107 _LT_TAGVAR(always_export_symbols, $1)=no 5108 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 5109 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols' 5110 _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'] 5111 5112 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
4755 _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' 4756 # If the export-symbols file already is a .def file (1st line 4757 # is EXPORTS), use it as is; otherwise, prepend... 4758 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 4759 cp $export_symbols $output_objdir/$soname.def; 4760 else 4761 echo EXPORTS > $output_objdir/$soname.def; 4762 cat $export_symbols >> $output_objdir/$soname.def; 4763 fi~ 4764 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | 5113 _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' 5114 # If the export-symbols file already is a .def file, use it as 5115 # is; otherwise, prepend EXPORTS... 5116 _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then 5117 cp $export_symbols $output_objdir/$soname.def; 5118 else 5119 echo EXPORTS > $output_objdir/$soname.def; 5120 cat $export_symbols >> $output_objdir/$soname.def; 5121 fi~ 5122 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
4765 else 4766 _LT_TAGVAR(ld_shlibs, $1)=no 4767 fi 4768 ;; 4769 4770 haiku*) | 5123 else 5124 _LT_TAGVAR(ld_shlibs, $1)=no 5125 fi 5126 ;; 5127 5128 haiku*) |
4771 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 5129 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
4772 _LT_TAGVAR(link_all_deplibs, $1)=yes 4773 ;; 4774 | 5130 _LT_TAGVAR(link_all_deplibs, $1)=yes 5131 ;; 5132 |
5133 os2*) 5134 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 5135 _LT_TAGVAR(hardcode_minus_L, $1)=yes 5136 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 5137 shrext_cmds=.dll 5138 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 5139 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 5140 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 5141 $ECHO EXPORTS >> $output_objdir/$libname.def~ 5142 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 5143 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 5144 emximp -o $lib $output_objdir/$libname.def' 5145 _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 5146 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 5147 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 5148 $ECHO EXPORTS >> $output_objdir/$libname.def~ 5149 prefix_cmds="$SED"~ 5150 if test EXPORTS = "`$SED 1q $export_symbols`"; then 5151 prefix_cmds="$prefix_cmds -e 1d"; 5152 fi~ 5153 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 5154 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 5155 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 5156 emximp -o $lib $output_objdir/$libname.def' 5157 _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 5158 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 5159 ;; 5160 |
|
4775 interix[[3-9]]*) 4776 _LT_TAGVAR(hardcode_direct, $1)=no 4777 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | 5161 interix[[3-9]]*) 5162 _LT_TAGVAR(hardcode_direct, $1)=no 5163 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
4778 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 4779 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | 5164 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' 5165 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' |
4780 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 4781 # Instead, shared libraries are loaded at an image base (0x10000000 by 4782 # default) and relocated if they conflict, which is a slow very memory 4783 # consuming and fragmenting process. To avoid this, we pick a random, 4784 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 4785 # time. Moving up from 0x10000000 also allows more sbrk(2) space. | 5166 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 5167 # Instead, shared libraries are loaded at an image base (0x10000000 by 5168 # default) and relocated if they conflict, which is a slow very memory 5169 # consuming and fragmenting process. To avoid this, we pick a random, 5170 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 5171 # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
4786 _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' 4787 _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' | 5172 _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' 5173 _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' |
4788 ;; 4789 4790 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 4791 tmp_diet=no | 5174 ;; 5175 5176 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 5177 tmp_diet=no |
4792 if test "$host_os" = linux-dietlibc; then | 5178 if test linux-dietlibc = "$host_os"; then |
4793 case $cc_basename in 4794 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 4795 esac 4796 fi 4797 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | 5179 case $cc_basename in 5180 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 5181 esac 5182 fi 5183 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ |
4798 && test "$tmp_diet" = no | 5184 && test no = "$tmp_diet" |
4799 then 4800 tmp_addflag=' $pic_flag' 4801 tmp_sharedflag='-shared' 4802 case $cc_basename,$host_cpu in 4803 pgcc*) # Portland Group C compiler | 5185 then 5186 tmp_addflag=' $pic_flag' 5187 tmp_sharedflag='-shared' 5188 case $cc_basename,$host_cpu in 5189 pgcc*) # Portland Group C compiler |
4804 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' | 5190 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' |
4805 tmp_addflag=' $pic_flag' 4806 ;; 4807 pgf77* | pgf90* | pgf95* | pgfortran*) 4808 # Portland Group f77 and f90 compilers | 5191 tmp_addflag=' $pic_flag' 5192 ;; 5193 pgf77* | pgf90* | pgf95* | pgfortran*) 5194 # Portland Group f77 and f90 compilers |
4809 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' | 5195 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' |
4810 tmp_addflag=' $pic_flag -Mnomain' ;; 4811 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 4812 tmp_addflag=' -i_dynamic' ;; 4813 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 4814 tmp_addflag=' -i_dynamic -nofor_main' ;; 4815 ifc* | ifort*) # Intel Fortran compiler 4816 tmp_addflag=' -nofor_main' ;; 4817 lf95*) # Lahey Fortran 8.1 4818 _LT_TAGVAR(whole_archive_flag_spec, $1)= 4819 tmp_sharedflag='--shared' ;; | 5196 tmp_addflag=' $pic_flag -Mnomain' ;; 5197 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 5198 tmp_addflag=' -i_dynamic' ;; 5199 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 5200 tmp_addflag=' -i_dynamic -nofor_main' ;; 5201 ifc* | ifort*) # Intel Fortran compiler 5202 tmp_addflag=' -nofor_main' ;; 5203 lf95*) # Lahey Fortran 8.1 5204 _LT_TAGVAR(whole_archive_flag_spec, $1)= 5205 tmp_sharedflag='--shared' ;; |
5206 nagfor*) # NAGFOR 5.3 5207 tmp_sharedflag='-Wl,-shared' ;; |
|
4820 xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below) 4821 tmp_sharedflag='-qmkshrobj' 4822 tmp_addflag= ;; 4823 nvcc*) # Cuda Compiler Driver 2.2 | 5208 xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below) 5209 tmp_sharedflag='-qmkshrobj' 5210 tmp_addflag= ;; 5211 nvcc*) # Cuda Compiler Driver 2.2 |
4824 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' | 5212 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' |
4825 _LT_TAGVAR(compiler_needs_object, $1)=yes 4826 ;; 4827 esac 4828 case `$CC -V 2>&1 | sed 5q` in 4829 *Sun\ C*) # Sun C 5.9 | 5213 _LT_TAGVAR(compiler_needs_object, $1)=yes 5214 ;; 5215 esac 5216 case `$CC -V 2>&1 | sed 5q` in 5217 *Sun\ C*) # Sun C 5.9 |
4830 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' | 5218 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' |
4831 _LT_TAGVAR(compiler_needs_object, $1)=yes 4832 tmp_sharedflag='-G' ;; 4833 *Sun\ F*) # Sun Fortran 8.3 4834 tmp_sharedflag='-G' ;; 4835 esac | 5219 _LT_TAGVAR(compiler_needs_object, $1)=yes 5220 tmp_sharedflag='-G' ;; 5221 *Sun\ F*) # Sun Fortran 8.3 5222 tmp_sharedflag='-G' ;; 5223 esac |
4836 _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 5224 _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
4837 | 5225 |
4838 if test "x$supports_anon_versioning" = xyes; then | 5226 if test yes = "$supports_anon_versioning"; then |
4839 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ | 5227 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ |
4840 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 4841 echo "local: *; };" >> $output_objdir/$libname.ver~ 4842 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | 5228 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 5229 echo "local: *; };" >> $output_objdir/$libname.ver~ 5230 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' |
4843 fi 4844 4845 case $cc_basename in | 5231 fi 5232 5233 case $cc_basename in |
5234 tcc*) 5235 _LT_TAGVAR(export_dynamic_flag_spec, $1)='-rdynamic' 5236 ;; |
|
4846 xlf* | bgf* | bgxlf* | mpixlf*) 4847 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 4848 _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive' | 5237 xlf* | bgf* | bgxlf* | mpixlf*) 5238 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 5239 _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive' |
4849 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | 5240 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' |
4850 _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' | 5241 _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' |
4851 if test "x$supports_anon_versioning" = xyes; then | 5242 if test yes = "$supports_anon_versioning"; then |
4852 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ | 5243 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ |
4853 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 4854 echo "local: *; };" >> $output_objdir/$libname.ver~ 4855 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | 5244 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 5245 echo "local: *; };" >> $output_objdir/$libname.ver~ 5246 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' |
4856 fi 4857 ;; 4858 esac 4859 else 4860 _LT_TAGVAR(ld_shlibs, $1)=no 4861 fi 4862 ;; 4863 4864 netbsd*) 4865 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 4866 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 4867 wlarc= 4868 else | 5247 fi 5248 ;; 5249 esac 5250 else 5251 _LT_TAGVAR(ld_shlibs, $1)=no 5252 fi 5253 ;; 5254 5255 netbsd*) 5256 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 5257 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 5258 wlarc= 5259 else |
4869 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 4870 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 5260 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 5261 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' |
4871 fi 4872 ;; 4873 4874 solaris*) 4875 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 4876 _LT_TAGVAR(ld_shlibs, $1)=no 4877 cat <<_LT_EOF 1>&2 4878 4879*** Warning: The releases 2.8.* of the GNU linker cannot reliably 4880*** create shared libraries on Solaris systems. Therefore, libtool 4881*** is disabling shared libraries support. We urge you to upgrade GNU 4882*** binutils to release 2.9.1 or newer. Another option is to modify 4883*** your PATH or compiler configuration so that the native linker is 4884*** used, and then restart. 4885 4886_LT_EOF 4887 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | 5262 fi 5263 ;; 5264 5265 solaris*) 5266 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 5267 _LT_TAGVAR(ld_shlibs, $1)=no 5268 cat <<_LT_EOF 1>&2 5269 5270*** Warning: The releases 2.8.* of the GNU linker cannot reliably 5271*** create shared libraries on Solaris systems. Therefore, libtool 5272*** is disabling shared libraries support. We urge you to upgrade GNU 5273*** binutils to release 2.9.1 or newer. Another option is to modify 5274*** your PATH or compiler configuration so that the native linker is 5275*** used, and then restart. 5276 5277_LT_EOF 5278 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
4888 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 4889 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 5279 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 5280 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' |
4890 else 4891 _LT_TAGVAR(ld_shlibs, $1)=no 4892 fi 4893 ;; 4894 4895 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 4896 case `$LD -v 2>&1` in 4897 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) 4898 _LT_TAGVAR(ld_shlibs, $1)=no 4899 cat <<_LT_EOF 1>&2 4900 | 5281 else 5282 _LT_TAGVAR(ld_shlibs, $1)=no 5283 fi 5284 ;; 5285 5286 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 5287 case `$LD -v 2>&1` in 5288 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) 5289 _LT_TAGVAR(ld_shlibs, $1)=no 5290 cat <<_LT_EOF 1>&2 5291 |
4901*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | 5292*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot |
4902*** reliably create shared libraries on SCO systems. Therefore, libtool 4903*** is disabling shared libraries support. We urge you to upgrade GNU 4904*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 4905*** your PATH or compiler configuration so that the native linker is 4906*** used, and then restart. 4907 4908_LT_EOF 4909 ;; 4910 *) 4911 # For security reasons, it is highly recommended that you always 4912 # use absolute paths for naming shared libraries, and exclude the 4913 # DT_RUNPATH tag from executables and libraries. But doing so 4914 # requires that you compile everything twice, which is a pain. 4915 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | 5293*** reliably create shared libraries on SCO systems. Therefore, libtool 5294*** is disabling shared libraries support. We urge you to upgrade GNU 5295*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 5296*** your PATH or compiler configuration so that the native linker is 5297*** used, and then restart. 5298 5299_LT_EOF 5300 ;; 5301 *) 5302 # For security reasons, it is highly recommended that you always 5303 # use absolute paths for naming shared libraries, and exclude the 5304 # DT_RUNPATH tag from executables and libraries. But doing so 5305 # requires that you compile everything twice, which is a pain. 5306 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
4916 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 4917 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 4918 _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' | 5307 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 5308 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 5309 _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' |
4919 else 4920 _LT_TAGVAR(ld_shlibs, $1)=no 4921 fi 4922 ;; 4923 esac 4924 ;; 4925 4926 sunos4*) 4927 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 4928 wlarc= 4929 _LT_TAGVAR(hardcode_direct, $1)=yes 4930 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 4931 ;; 4932 4933 *) 4934 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | 5310 else 5311 _LT_TAGVAR(ld_shlibs, $1)=no 5312 fi 5313 ;; 5314 esac 5315 ;; 5316 5317 sunos4*) 5318 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 5319 wlarc= 5320 _LT_TAGVAR(hardcode_direct, $1)=yes 5321 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5322 ;; 5323 5324 *) 5325 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
4935 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 4936 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 5326 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 5327 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' |
4937 else 4938 _LT_TAGVAR(ld_shlibs, $1)=no 4939 fi 4940 ;; 4941 esac 4942 | 5328 else 5329 _LT_TAGVAR(ld_shlibs, $1)=no 5330 fi 5331 ;; 5332 esac 5333 |
4943 if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then | 5334 if test no = "$_LT_TAGVAR(ld_shlibs, $1)"; then |
4944 runpath_var= 4945 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 4946 _LT_TAGVAR(export_dynamic_flag_spec, $1)= 4947 _LT_TAGVAR(whole_archive_flag_spec, $1)= 4948 fi 4949 else 4950 # PORTME fill in a description of your system's linker (not GNU ld) 4951 case $host_os in 4952 aix3*) 4953 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 4954 _LT_TAGVAR(always_export_symbols, $1)=yes 4955 _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' 4956 # Note: this linker hardcodes the directories in LIBPATH if there 4957 # are no directories specified by -L. 4958 _LT_TAGVAR(hardcode_minus_L, $1)=yes | 5335 runpath_var= 5336 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 5337 _LT_TAGVAR(export_dynamic_flag_spec, $1)= 5338 _LT_TAGVAR(whole_archive_flag_spec, $1)= 5339 fi 5340 else 5341 # PORTME fill in a description of your system's linker (not GNU ld) 5342 case $host_os in 5343 aix3*) 5344 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 5345 _LT_TAGVAR(always_export_symbols, $1)=yes 5346 _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' 5347 # Note: this linker hardcodes the directories in LIBPATH if there 5348 # are no directories specified by -L. 5349 _LT_TAGVAR(hardcode_minus_L, $1)=yes |
4959 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | 5350 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then |
4960 # Neither direct hardcoding nor static linking is supported with a 4961 # broken collect2. 4962 _LT_TAGVAR(hardcode_direct, $1)=unsupported 4963 fi 4964 ;; 4965 4966 aix[[4-9]]*) | 5351 # Neither direct hardcoding nor static linking is supported with a 5352 # broken collect2. 5353 _LT_TAGVAR(hardcode_direct, $1)=unsupported 5354 fi 5355 ;; 5356 5357 aix[[4-9]]*) |
4967 if test "$host_cpu" = ia64; then | 5358 if test ia64 = "$host_cpu"; then |
4968 # On IA64, the linker does run time linking by default, so we don't 4969 # have to do anything special. 4970 aix_use_runtimelinking=no 4971 exp_sym_flag='-Bexport' | 5359 # On IA64, the linker does run time linking by default, so we don't 5360 # have to do anything special. 5361 aix_use_runtimelinking=no 5362 exp_sym_flag='-Bexport' |
4972 no_entry_flag="" | 5363 no_entry_flag= |
4973 else 4974 # If we're using GNU nm, then we don't want the "-C" option. | 5364 else 5365 # If we're using GNU nm, then we don't want the "-C" option. |
4975 # -C means demangle to AIX nm, but means don't demangle with GNU nm 4976 # Also, AIX nm treats weak defined symbols like other global 4977 # defined symbols, whereas GNU nm marks them as "W". | 5366 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 5367 # Without the "-l" option, or with the "-B" option, AIX nm treats 5368 # weak defined symbols like other global defined symbols, whereas 5369 # GNU nm marks them as "W". 5370 # While the 'weak' keyword is ignored in the Export File, we need 5371 # it in the Import File for the 'aix-soname' feature, so we have 5372 # to replace the "-B" option with "-P" for AIX nm. |
4978 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | 5373 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
4979 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | 5374 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' |
4980 else | 5375 else |
4981 _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' | 5376 _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' |
4982 fi 4983 aix_use_runtimelinking=no 4984 4985 # Test if we are trying to use run time linking or normal 4986 # AIX style linking. If -brtl is somewhere in LDFLAGS, we | 5377 fi 5378 aix_use_runtimelinking=no 5379 5380 # Test if we are trying to use run time linking or normal 5381 # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
4987 # need to do runtime linking. | 5382 # have runtime linking enabled, and use it for executables. 5383 # For shared libraries, we enable/disable runtime linking 5384 # depending on the kind of the shared library created - 5385 # when "with_aix_soname,aix_use_runtimelinking" is: 5386 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 5387 # "aix,yes" lib.so shared, rtl:yes, for executables 5388 # lib.a static archive 5389 # "both,no" lib.so.V(shr.o) shared, rtl:yes 5390 # lib.a(lib.so.V) shared, rtl:no, for executables 5391 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 5392 # lib.a(lib.so.V) shared, rtl:no 5393 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 5394 # lib.a static archive |
4988 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) 4989 for ld_flag in $LDFLAGS; do | 5395 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) 5396 for ld_flag in $LDFLAGS; do |
4990 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | 5397 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then |
4991 aix_use_runtimelinking=yes 4992 break 4993 fi 4994 done | 5398 aix_use_runtimelinking=yes 5399 break 5400 fi 5401 done |
5402 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 5403 # With aix-soname=svr4, we create the lib.so.V shared archives only, 5404 # so we don't have lib.a shared libs to link our executables. 5405 # We have to force runtime linking in this case. 5406 aix_use_runtimelinking=yes 5407 LDFLAGS="$LDFLAGS -Wl,-brtl" 5408 fi |
|
4995 ;; 4996 esac 4997 4998 exp_sym_flag='-bexport' 4999 no_entry_flag='-bnoentry' 5000 fi 5001 5002 # When large executables or shared objects are built, AIX ld can 5003 # have problems creating the table of contents. If linking a library 5004 # or program results in "error TOC overflow" add -mminimal-toc to 5005 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 5006 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 5007 5008 _LT_TAGVAR(archive_cmds, $1)='' 5009 _LT_TAGVAR(hardcode_direct, $1)=yes 5010 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 5011 _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 5012 _LT_TAGVAR(link_all_deplibs, $1)=yes | 5409 ;; 5410 esac 5411 5412 exp_sym_flag='-bexport' 5413 no_entry_flag='-bnoentry' 5414 fi 5415 5416 # When large executables or shared objects are built, AIX ld can 5417 # have problems creating the table of contents. If linking a library 5418 # or program results in "error TOC overflow" add -mminimal-toc to 5419 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 5420 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 5421 5422 _LT_TAGVAR(archive_cmds, $1)='' 5423 _LT_TAGVAR(hardcode_direct, $1)=yes 5424 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 5425 _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 5426 _LT_TAGVAR(link_all_deplibs, $1)=yes |
5013 _LT_TAGVAR(file_list_spec, $1)='${wl}-f,' | 5427 _LT_TAGVAR(file_list_spec, $1)='$wl-f,' 5428 case $with_aix_soname,$aix_use_runtimelinking in 5429 aix,*) ;; # traditional, no import file 5430 svr4,* | *,yes) # use import file 5431 # The Import File defines what to hardcode. 5432 _LT_TAGVAR(hardcode_direct, $1)=no 5433 _LT_TAGVAR(hardcode_direct_absolute, $1)=no 5434 ;; 5435 esac |
5014 | 5436 |
5015 if test "$GCC" = yes; then | 5437 if test yes = "$GCC"; then |
5016 case $host_os in aix4.[[012]]|aix4.[[012]].*) 5017 # We only want to do this on AIX 4.2 and lower, the check 5018 # below for broken collect2 doesn't work under 4.3+ | 5438 case $host_os in aix4.[[012]]|aix4.[[012]].*) 5439 # We only want to do this on AIX 4.2 and lower, the check 5440 # below for broken collect2 doesn't work under 4.3+ |
5019 collect2name=`${CC} -print-prog-name=collect2` | 5441 collect2name=`$CC -print-prog-name=collect2` |
5020 if test -f "$collect2name" && 5021 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 5022 then 5023 # We have reworked collect2 5024 : 5025 else 5026 # We have old collect2 5027 _LT_TAGVAR(hardcode_direct, $1)=unsupported 5028 # It fails to find uninstalled libraries when the uninstalled 5029 # path is not listed in the libpath. Setting hardcode_minus_L 5030 # to unsupported forces relinking 5031 _LT_TAGVAR(hardcode_minus_L, $1)=yes 5032 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 5033 _LT_TAGVAR(hardcode_libdir_separator, $1)= 5034 fi 5035 ;; 5036 esac 5037 shared_flag='-shared' | 5442 if test -f "$collect2name" && 5443 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 5444 then 5445 # We have reworked collect2 5446 : 5447 else 5448 # We have old collect2 5449 _LT_TAGVAR(hardcode_direct, $1)=unsupported 5450 # It fails to find uninstalled libraries when the uninstalled 5451 # path is not listed in the libpath. Setting hardcode_minus_L 5452 # to unsupported forces relinking 5453 _LT_TAGVAR(hardcode_minus_L, $1)=yes 5454 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 5455 _LT_TAGVAR(hardcode_libdir_separator, $1)= 5456 fi 5457 ;; 5458 esac 5459 shared_flag='-shared' |
5038 if test "$aix_use_runtimelinking" = yes; then 5039 shared_flag="$shared_flag "'${wl}-G' | 5460 if test yes = "$aix_use_runtimelinking"; then 5461 shared_flag="$shared_flag "'$wl-G' |
5040 fi | 5462 fi |
5463 # Need to ensure runtime linking is disabled for the traditional 5464 # shared library, or the linker may eventually find shared libraries 5465 # /with/ Import File - we do not want to mix them. 5466 shared_flag_aix='-shared' 5467 shared_flag_svr4='-shared $wl-G' |
|
5041 else 5042 # not using gcc | 5468 else 5469 # not using gcc |
5043 if test "$host_cpu" = ia64; then | 5470 if test ia64 = "$host_cpu"; then |
5044 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 5045 # chokes on -Wl,-G. The following line is correct: 5046 shared_flag='-G' 5047 else | 5471 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 5472 # chokes on -Wl,-G. The following line is correct: 5473 shared_flag='-G' 5474 else |
5048 if test "$aix_use_runtimelinking" = yes; then 5049 shared_flag='${wl}-G' | 5475 if test yes = "$aix_use_runtimelinking"; then 5476 shared_flag='$wl-G' |
5050 else | 5477 else |
5051 shared_flag='${wl}-bM:SRE' | 5478 shared_flag='$wl-bM:SRE' |
5052 fi | 5479 fi |
5480 shared_flag_aix='$wl-bM:SRE' 5481 shared_flag_svr4='$wl-G' |
|
5053 fi 5054 fi 5055 | 5482 fi 5483 fi 5484 |
5056 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall' | 5485 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall' |
5057 # It seems that -bexpall does not export symbols beginning with 5058 # underscore (_), so it is better to generate a list of symbols to export. 5059 _LT_TAGVAR(always_export_symbols, $1)=yes | 5486 # It seems that -bexpall does not export symbols beginning with 5487 # underscore (_), so it is better to generate a list of symbols to export. 5488 _LT_TAGVAR(always_export_symbols, $1)=yes |
5060 if test "$aix_use_runtimelinking" = yes; then | 5489 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then |
5061 # Warning - without using the other runtime loading flags (-brtl), 5062 # -berok will link without error, but may produce a broken library. 5063 _LT_TAGVAR(allow_undefined_flag, $1)='-berok' 5064 # Determine the default libpath from the value encoded in an 5065 # empty executable. 5066 _LT_SYS_MODULE_PATH_AIX([$1]) | 5490 # Warning - without using the other runtime loading flags (-brtl), 5491 # -berok will link without error, but may produce a broken library. 5492 _LT_TAGVAR(allow_undefined_flag, $1)='-berok' 5493 # Determine the default libpath from the value encoded in an 5494 # empty executable. 5495 _LT_SYS_MODULE_PATH_AIX([$1]) |
5067 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 5068 _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 func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | 5496 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath" 5497 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag |
5069 else | 5498 else |
5070 if test "$host_cpu" = ia64; then 5071 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' | 5499 if test ia64 = "$host_cpu"; then 5500 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib' |
5072 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" | 5501 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" |
5073 _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" | 5502 _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" |
5074 else 5075 # Determine the default libpath from the value encoded in an 5076 # empty executable. 5077 _LT_SYS_MODULE_PATH_AIX([$1]) | 5503 else 5504 # Determine the default libpath from the value encoded in an 5505 # empty executable. 5506 _LT_SYS_MODULE_PATH_AIX([$1]) |
5078 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" | 5507 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath" |
5079 # Warning - without using the other run time loading flags, 5080 # -berok will link without error, but may produce a broken library. | 5508 # Warning - without using the other run time loading flags, 5509 # -berok will link without error, but may produce a broken library. |
5081 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' 5082 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' 5083 if test "$with_gnu_ld" = yes; then | 5510 _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok' 5511 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok' 5512 if test yes = "$with_gnu_ld"; then |
5084 # We only use this code for GNU lds that support --whole-archive. | 5513 # We only use this code for GNU lds that support --whole-archive. |
5085 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | 5514 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive' |
5086 else 5087 # Exported symbols can be pulled into shared objects from archives 5088 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' 5089 fi 5090 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes | 5515 else 5516 # Exported symbols can be pulled into shared objects from archives 5517 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' 5518 fi 5519 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes |
5091 # This is similar to how AIX traditionally builds its shared libraries. 5092 _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' | 5520 _LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 5521 # -brtl affects multiple linker settings, -berok does not and is overridden later 5522 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\1%g"`' 5523 if test svr4 != "$with_aix_soname"; then 5524 # This is similar to how AIX traditionally builds its shared libraries. 5525 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 5526 fi 5527 if test aix != "$with_aix_soname"; then 5528 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 5529 else 5530 # used by -dlpreopen to get the symbols 5531 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 5532 fi 5533 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/$realname.d' |
5093 fi 5094 fi 5095 ;; 5096 5097 amigaos*) 5098 case $host_cpu in 5099 powerpc) 5100 # see comment about AmigaOS4 .so support | 5534 fi 5535 fi 5536 ;; 5537 5538 amigaos*) 5539 case $host_cpu in 5540 powerpc) 5541 # see comment about AmigaOS4 .so support |
5101 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 5542 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
5102 _LT_TAGVAR(archive_expsym_cmds, $1)='' 5103 ;; 5104 m68k) 5105 _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)' 5106 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 5107 _LT_TAGVAR(hardcode_minus_L, $1)=yes 5108 ;; 5109 esac --- 13 unchanged lines hidden (view full) --- 5123 # Native MSVC 5124 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' 5125 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 5126 _LT_TAGVAR(always_export_symbols, $1)=yes 5127 _LT_TAGVAR(file_list_spec, $1)='@' 5128 # Tell ltmain to make .lib files, not .a files. 5129 libext=lib 5130 # Tell ltmain to make .dll files, not .so files. | 5543 _LT_TAGVAR(archive_expsym_cmds, $1)='' 5544 ;; 5545 m68k) 5546 _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)' 5547 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 5548 _LT_TAGVAR(hardcode_minus_L, $1)=yes 5549 ;; 5550 esac --- 13 unchanged lines hidden (view full) --- 5564 # Native MSVC 5565 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' 5566 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 5567 _LT_TAGVAR(always_export_symbols, $1)=yes 5568 _LT_TAGVAR(file_list_spec, $1)='@' 5569 # Tell ltmain to make .lib files, not .a files. 5570 libext=lib 5571 # Tell ltmain to make .dll files, not .so files. |
5131 shrext_cmds=".dll" | 5572 shrext_cmds=.dll |
5132 # FIXME: Setting linknames here is a bad hack. | 5573 # FIXME: Setting linknames here is a bad hack. |
5133 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 5134 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 5135 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 5136 else 5137 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 5138 fi~ 5139 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 5140 linknames=' | 5574 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 5575 _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then 5576 cp "$export_symbols" "$output_objdir/$soname.def"; 5577 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 5578 else 5579 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 5580 fi~ 5581 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 5582 linknames=' |
5141 # The linker will not automatically build a static lib if we build a DLL. 5142 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' 5143 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 5144 _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 5145 _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' 5146 # Don't use ranlib 5147 _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' 5148 _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~ | 5583 # The linker will not automatically build a static lib if we build a DLL. 5584 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' 5585 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 5586 _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 5587 _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' 5588 # Don't use ranlib 5589 _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' 5590 _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~ |
5149 lt_tool_outputfile="@TOOL_OUTPUT@"~ 5150 case $lt_outputfile in 5151 *.exe|*.EXE) ;; 5152 *) 5153 lt_outputfile="$lt_outputfile.exe" 5154 lt_tool_outputfile="$lt_tool_outputfile.exe" 5155 ;; 5156 esac~ 5157 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 5158 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 5159 $RM "$lt_outputfile.manifest"; 5160 fi' | 5591 lt_tool_outputfile="@TOOL_OUTPUT@"~ 5592 case $lt_outputfile in 5593 *.exe|*.EXE) ;; 5594 *) 5595 lt_outputfile=$lt_outputfile.exe 5596 lt_tool_outputfile=$lt_tool_outputfile.exe 5597 ;; 5598 esac~ 5599 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 5600 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 5601 $RM "$lt_outputfile.manifest"; 5602 fi' |
5161 ;; 5162 *) 5163 # Assume MSVC wrapper 5164 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' 5165 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 5166 # Tell ltmain to make .lib files, not .a files. 5167 libext=lib 5168 # Tell ltmain to make .dll files, not .so files. | 5603 ;; 5604 *) 5605 # Assume MSVC wrapper 5606 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' 5607 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 5608 # Tell ltmain to make .lib files, not .a files. 5609 libext=lib 5610 # Tell ltmain to make .dll files, not .so files. |
5169 shrext_cmds=".dll" | 5611 shrext_cmds=.dll |
5170 # FIXME: Setting linknames here is a bad hack. 5171 _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 5172 # The linker will automatically build a .lib file if we build a DLL. 5173 _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' 5174 # FIXME: Should let the user specify the lib program. 5175 _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs' 5176 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 5177 ;; --- 33 unchanged lines hidden (view full) --- 5211 freebsd* | dragonfly*) 5212 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 5213 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 5214 _LT_TAGVAR(hardcode_direct, $1)=yes 5215 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5216 ;; 5217 5218 hpux9*) | 5612 # FIXME: Setting linknames here is a bad hack. 5613 _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 5614 # The linker will automatically build a .lib file if we build a DLL. 5615 _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' 5616 # FIXME: Should let the user specify the lib program. 5617 _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs' 5618 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 5619 ;; --- 33 unchanged lines hidden (view full) --- 5653 freebsd* | dragonfly*) 5654 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 5655 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 5656 _LT_TAGVAR(hardcode_direct, $1)=yes 5657 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5658 ;; 5659 5660 hpux9*) |
5219 if test "$GCC" = yes; then 5220 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | 5661 if test yes = "$GCC"; then 5662 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' |
5221 else | 5663 else |
5222 _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' | 5664 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' |
5223 fi | 5665 fi |
5224 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' | 5666 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' |
5225 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 5226 _LT_TAGVAR(hardcode_direct, $1)=yes 5227 5228 # hardcode_minus_L: Not really in the search PATH, 5229 # but as the default location of the library. 5230 _LT_TAGVAR(hardcode_minus_L, $1)=yes | 5667 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 5668 _LT_TAGVAR(hardcode_direct, $1)=yes 5669 5670 # hardcode_minus_L: Not really in the search PATH, 5671 # but as the default location of the library. 5672 _LT_TAGVAR(hardcode_minus_L, $1)=yes |
5231 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | 5673 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' |
5232 ;; 5233 5234 hpux10*) | 5674 ;; 5675 5676 hpux10*) |
5235 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 5236 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | 5677 if test yes,no = "$GCC,$with_gnu_ld"; then 5678 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
5237 else 5238 _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 5239 fi | 5679 else 5680 _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 5681 fi |
5240 if test "$with_gnu_ld" = no; then 5241 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' | 5682 if test no = "$with_gnu_ld"; then 5683 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' |
5242 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 5243 _LT_TAGVAR(hardcode_direct, $1)=yes 5244 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes | 5684 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 5685 _LT_TAGVAR(hardcode_direct, $1)=yes 5686 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes |
5245 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | 5687 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' |
5246 # hardcode_minus_L: Not really in the search PATH, 5247 # but as the default location of the library. 5248 _LT_TAGVAR(hardcode_minus_L, $1)=yes 5249 fi 5250 ;; 5251 5252 hpux11*) | 5688 # hardcode_minus_L: Not really in the search PATH, 5689 # but as the default location of the library. 5690 _LT_TAGVAR(hardcode_minus_L, $1)=yes 5691 fi 5692 ;; 5693 5694 hpux11*) |
5253 if test "$GCC" = yes && test "$with_gnu_ld" = no; then | 5695 if test yes,no = "$GCC,$with_gnu_ld"; then |
5254 case $host_cpu in 5255 hppa*64*) | 5696 case $host_cpu in 5697 hppa*64*) |
5256 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 5698 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' |
5257 ;; 5258 ia64*) | 5699 ;; 5700 ia64*) |
5259 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | 5701 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
5260 ;; 5261 *) | 5702 ;; 5703 *) |
5262 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | 5704 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
5263 ;; 5264 esac 5265 else 5266 case $host_cpu in 5267 hppa*64*) | 5705 ;; 5706 esac 5707 else 5708 case $host_cpu in 5709 hppa*64*) |
5268 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 5710 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' |
5269 ;; 5270 ia64*) | 5711 ;; 5712 ia64*) |
5271 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | 5713 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
5272 ;; 5273 *) 5274 m4_if($1, [], [ 5275 # Older versions of the 11.00 compiler do not understand -b yet 5276 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 5277 _LT_LINKER_OPTION([if $CC understands -b], 5278 _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b], | 5714 ;; 5715 *) 5716 m4_if($1, [], [ 5717 # Older versions of the 11.00 compiler do not understand -b yet 5718 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 5719 _LT_LINKER_OPTION([if $CC understands -b], 5720 _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b], |
5279 [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'], | 5721 [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'], |
5280 [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])], | 5722 [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])], |
5281 [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags']) | 5723 [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags']) |
5282 ;; 5283 esac 5284 fi | 5724 ;; 5725 esac 5726 fi |
5285 if test "$with_gnu_ld" = no; then 5286 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' | 5727 if test no = "$with_gnu_ld"; then 5728 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' |
5287 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 5288 5289 case $host_cpu in 5290 hppa*64*|ia64*) 5291 _LT_TAGVAR(hardcode_direct, $1)=no 5292 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5293 ;; 5294 *) 5295 _LT_TAGVAR(hardcode_direct, $1)=yes 5296 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes | 5729 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 5730 5731 case $host_cpu in 5732 hppa*64*|ia64*) 5733 _LT_TAGVAR(hardcode_direct, $1)=no 5734 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5735 ;; 5736 *) 5737 _LT_TAGVAR(hardcode_direct, $1)=yes 5738 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes |
5297 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | 5739 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' |
5298 5299 # hardcode_minus_L: Not really in the search PATH, 5300 # but as the default location of the library. 5301 _LT_TAGVAR(hardcode_minus_L, $1)=yes 5302 ;; 5303 esac 5304 fi 5305 ;; 5306 5307 irix5* | irix6* | nonstopux*) | 5740 5741 # hardcode_minus_L: Not really in the search PATH, 5742 # but as the default location of the library. 5743 _LT_TAGVAR(hardcode_minus_L, $1)=yes 5744 ;; 5745 esac 5746 fi 5747 ;; 5748 5749 irix5* | irix6* | nonstopux*) |
5308 if test "$GCC" = yes; then 5309 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | 5750 if test yes = "$GCC"; then 5751 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' |
5310 # Try to use the -exported_symbol ld option, if it does not 5311 # work, assume that -exports_file does not work either and 5312 # implicitly export all symbols. 5313 # This should be the same for all languages, so no per-tag cache variable. 5314 AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol], 5315 [lt_cv_irix_exported_symbol], | 5752 # Try to use the -exported_symbol ld option, if it does not 5753 # work, assume that -exports_file does not work either and 5754 # implicitly export all symbols. 5755 # This should be the same for all languages, so no per-tag cache variable. 5756 AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol], 5757 [lt_cv_irix_exported_symbol], |
5316 [save_LDFLAGS="$LDFLAGS" 5317 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | 5758 [save_LDFLAGS=$LDFLAGS 5759 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" |
5318 AC_LINK_IFELSE( 5319 [AC_LANG_SOURCE( 5320 [AC_LANG_CASE([C], [[int foo (void) { return 0; }]], 5321 [C++], [[int foo (void) { return 0; }]], 5322 [Fortran 77], [[ 5323 subroutine foo 5324 end]], 5325 [Fortran], [[ 5326 subroutine foo 5327 end]])])], 5328 [lt_cv_irix_exported_symbol=yes], 5329 [lt_cv_irix_exported_symbol=no]) | 5760 AC_LINK_IFELSE( 5761 [AC_LANG_SOURCE( 5762 [AC_LANG_CASE([C], [[int foo (void) { return 0; }]], 5763 [C++], [[int foo (void) { return 0; }]], 5764 [Fortran 77], [[ 5765 subroutine foo 5766 end]], 5767 [Fortran], [[ 5768 subroutine foo 5769 end]])])], 5770 [lt_cv_irix_exported_symbol=yes], 5771 [lt_cv_irix_exported_symbol=no]) |
5330 LDFLAGS="$save_LDFLAGS"]) 5331 if test "$lt_cv_irix_exported_symbol" = yes; then 5332 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' | 5772 LDFLAGS=$save_LDFLAGS]) 5773 if test yes = "$lt_cv_irix_exported_symbol"; then 5774 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib' |
5333 fi 5334 else | 5775 fi 5776 else |
5335 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 5336 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' | 5777 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 5778 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib' |
5337 fi 5338 _LT_TAGVAR(archive_cmds_need_lc, $1)='no' | 5779 fi 5780 _LT_TAGVAR(archive_cmds_need_lc, $1)='no' |
5339 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | 5781 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' |
5340 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 5341 _LT_TAGVAR(inherit_rpath, $1)=yes 5342 _LT_TAGVAR(link_all_deplibs, $1)=yes 5343 ;; 5344 | 5782 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 5783 _LT_TAGVAR(inherit_rpath, $1)=yes 5784 _LT_TAGVAR(link_all_deplibs, $1)=yes 5785 ;; 5786 |
5787 linux*) 5788 case $cc_basename in 5789 tcc*) 5790 # Fabrice Bellard et al's Tiny C Compiler 5791 _LT_TAGVAR(ld_shlibs, $1)=yes 5792 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 5793 ;; 5794 esac 5795 ;; 5796 |
|
5345 netbsd*) 5346 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 5347 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 5348 else 5349 _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 5350 fi 5351 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 5352 _LT_TAGVAR(hardcode_direct, $1)=yes 5353 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5354 ;; 5355 5356 newsos6) 5357 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 5358 _LT_TAGVAR(hardcode_direct, $1)=yes | 5797 netbsd*) 5798 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 5799 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 5800 else 5801 _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 5802 fi 5803 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 5804 _LT_TAGVAR(hardcode_direct, $1)=yes 5805 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5806 ;; 5807 5808 newsos6) 5809 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 5810 _LT_TAGVAR(hardcode_direct, $1)=yes |
5359 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | 5811 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' |
5360 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 5361 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5362 ;; 5363 5364 *nto* | *qnx*) 5365 ;; 5366 | 5812 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 5813 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5814 ;; 5815 5816 *nto* | *qnx*) 5817 ;; 5818 |
5367 openbsd*) | 5819 openbsd* | bitrig*) |
5368 if test -f /usr/libexec/ld.so; then 5369 _LT_TAGVAR(hardcode_direct, $1)=yes 5370 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5371 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes | 5820 if test -f /usr/libexec/ld.so; then 5821 _LT_TAGVAR(hardcode_direct, $1)=yes 5822 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5823 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes |
5372 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | 5824 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then |
5373 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | 5825 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
5374 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 5375 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 5376 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | 5826 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 5827 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' 5828 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' |
5377 else | 5829 else |
5378 case $host_os in 5379 openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) 5380 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 5381 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 5382 ;; 5383 *) 5384 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 5385 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 5386 ;; 5387 esac | 5830 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 5831 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' |
5388 fi 5389 else 5390 _LT_TAGVAR(ld_shlibs, $1)=no 5391 fi 5392 ;; 5393 5394 os2*) 5395 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 5396 _LT_TAGVAR(hardcode_minus_L, $1)=yes 5397 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported | 5832 fi 5833 else 5834 _LT_TAGVAR(ld_shlibs, $1)=no 5835 fi 5836 ;; 5837 5838 os2*) 5839 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 5840 _LT_TAGVAR(hardcode_minus_L, $1)=yes 5841 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported |
5398 _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' 5399 _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | 5842 shrext_cmds=.dll 5843 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 5844 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 5845 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 5846 $ECHO EXPORTS >> $output_objdir/$libname.def~ 5847 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 5848 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 5849 emximp -o $lib $output_objdir/$libname.def' 5850 _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 5851 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 5852 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 5853 $ECHO EXPORTS >> $output_objdir/$libname.def~ 5854 prefix_cmds="$SED"~ 5855 if test EXPORTS = "`$SED 1q $export_symbols`"; then 5856 prefix_cmds="$prefix_cmds -e 1d"; 5857 fi~ 5858 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 5859 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 5860 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 5861 emximp -o $lib $output_objdir/$libname.def' 5862 _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 5863 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes |
5400 ;; 5401 5402 osf3*) | 5864 ;; 5865 5866 osf3*) |
5403 if test "$GCC" = yes; then 5404 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 5405 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | 5867 if test yes = "$GCC"; then 5868 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*' 5869 _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' |
5406 else 5407 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' | 5870 else 5871 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' |
5408 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' | 5872 _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' |
5409 fi 5410 _LT_TAGVAR(archive_cmds_need_lc, $1)='no' | 5873 fi 5874 _LT_TAGVAR(archive_cmds_need_lc, $1)='no' |
5411 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | 5875 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' |
5412 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 5413 ;; 5414 5415 osf4* | osf5*) # as osf3* with the addition of -msym flag | 5876 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 5877 ;; 5878 5879 osf4* | osf5*) # as osf3* with the addition of -msym flag |
5416 if test "$GCC" = yes; then 5417 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 5418 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 5419 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | 5880 if test yes = "$GCC"; then 5881 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*' 5882 _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 5883 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' |
5420 else 5421 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' | 5884 else 5885 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' |
5422 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' | 5886 _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' |
5423 _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~ | 5887 _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~ |
5424 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' | 5888 $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp' |
5425 5426 # Both c and cxx compiler support -rpath directly 5427 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 5428 fi 5429 _LT_TAGVAR(archive_cmds_need_lc, $1)='no' 5430 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 5431 ;; 5432 5433 solaris*) 5434 _LT_TAGVAR(no_undefined_flag, $1)=' -z defs' | 5889 5890 # Both c and cxx compiler support -rpath directly 5891 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 5892 fi 5893 _LT_TAGVAR(archive_cmds_need_lc, $1)='no' 5894 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 5895 ;; 5896 5897 solaris*) 5898 _LT_TAGVAR(no_undefined_flag, $1)=' -z defs' |
5435 if test "$GCC" = yes; then 5436 wlarc='${wl}' 5437 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 5899 if test yes = "$GCC"; then 5900 wlarc='$wl' 5901 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' |
5438 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | 5902 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
5439 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | 5903 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
5440 else 5441 case `$CC -V 2>&1` in 5442 *"Compilers 5.0"*) 5443 wlarc='' | 5904 else 5905 case `$CC -V 2>&1` in 5906 *"Compilers 5.0"*) 5907 wlarc='' |
5444 _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | 5908 _LT_TAGVAR(archive_cmds, $1)='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' |
5445 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | 5909 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
5446 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | 5910 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' |
5447 ;; 5448 *) | 5911 ;; 5912 *) |
5449 wlarc='${wl}' 5450 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | 5913 wlarc='$wl' 5914 _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' |
5451 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | 5915 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
5452 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | 5916 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
5453 ;; 5454 esac 5455 fi 5456 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 5457 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5458 case $host_os in 5459 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 5460 *) 5461 # The compiler driver will combine and reorder linker options, | 5917 ;; 5918 esac 5919 fi 5920 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 5921 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5922 case $host_os in 5923 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 5924 *) 5925 # The compiler driver will combine and reorder linker options, |
5462 # but understands `-z linker_flag'. GCC discards it without `$wl', | 5926 # but understands '-z linker_flag'. GCC discards it without '$wl', |
5463 # but is careful enough not to reorder. 5464 # Supported since Solaris 2.6 (maybe 2.5.1?) | 5927 # but is careful enough not to reorder. 5928 # Supported since Solaris 2.6 (maybe 2.5.1?) |
5465 if test "$GCC" = yes; then 5466 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | 5929 if test yes = "$GCC"; then 5930 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' |
5467 else 5468 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' 5469 fi 5470 ;; 5471 esac 5472 _LT_TAGVAR(link_all_deplibs, $1)=yes 5473 ;; 5474 5475 sunos4*) | 5931 else 5932 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' 5933 fi 5934 ;; 5935 esac 5936 _LT_TAGVAR(link_all_deplibs, $1)=yes 5937 ;; 5938 5939 sunos4*) |
5476 if test "x$host_vendor" = xsequent; then | 5940 if test sequent = "$host_vendor"; then |
5477 # Use $CC to link under sequent, because it throws in some extra .o 5478 # files that make .init and .fini sections work. | 5941 # Use $CC to link under sequent, because it throws in some extra .o 5942 # files that make .init and .fini sections work. |
5479 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | 5943 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
5480 else 5481 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 5482 fi 5483 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 5484 _LT_TAGVAR(hardcode_direct, $1)=yes 5485 _LT_TAGVAR(hardcode_minus_L, $1)=yes 5486 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5487 ;; --- 32 unchanged lines hidden (view full) --- 5520 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5521 runpath_var=LD_RUN_PATH 5522 hardcode_runpath_var=yes 5523 _LT_TAGVAR(ld_shlibs, $1)=yes 5524 fi 5525 ;; 5526 5527 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) | 5944 else 5945 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 5946 fi 5947 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 5948 _LT_TAGVAR(hardcode_direct, $1)=yes 5949 _LT_TAGVAR(hardcode_minus_L, $1)=yes 5950 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5951 ;; --- 32 unchanged lines hidden (view full) --- 5984 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5985 runpath_var=LD_RUN_PATH 5986 hardcode_runpath_var=yes 5987 _LT_TAGVAR(ld_shlibs, $1)=yes 5988 fi 5989 ;; 5990 5991 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) |
5528 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' | 5992 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text' |
5529 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 5530 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5531 runpath_var='LD_RUN_PATH' 5532 | 5993 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 5994 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5995 runpath_var='LD_RUN_PATH' 5996 |
5533 if test "$GCC" = yes; then 5534 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 5535 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | 5997 if test yes = "$GCC"; then 5998 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 5999 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
5536 else | 6000 else |
5537 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 5538 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | 6001 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6002 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
5539 fi 5540 ;; 5541 5542 sysv5* | sco3.2v5* | sco5v6*) | 6003 fi 6004 ;; 6005 6006 sysv5* | sco3.2v5* | sco5v6*) |
5543 # Note: We can NOT use -z defs as we might desire, because we do not | 6007 # Note: We CANNOT use -z defs as we might desire, because we do not |
5544 # link with -lc, and that would cause any symbols used from libc to 5545 # always be unresolved, which means just about no library would 5546 # ever link correctly. If we're not using GNU ld we use -z text 5547 # though, which does catch some bad symbols but isn't as heavy-handed 5548 # as -z defs. | 6008 # link with -lc, and that would cause any symbols used from libc to 6009 # always be unresolved, which means just about no library would 6010 # ever link correctly. If we're not using GNU ld we use -z text 6011 # though, which does catch some bad symbols but isn't as heavy-handed 6012 # as -z defs. |
5549 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 5550 _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' | 6013 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text' 6014 _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs' |
5551 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 5552 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | 6015 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 6016 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
5553 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir' | 6017 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir' |
5554 _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 5555 _LT_TAGVAR(link_all_deplibs, $1)=yes | 6018 _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 6019 _LT_TAGVAR(link_all_deplibs, $1)=yes |
5556 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' | 6020 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport' |
5557 runpath_var='LD_RUN_PATH' 5558 | 6021 runpath_var='LD_RUN_PATH' 6022 |
5559 if test "$GCC" = yes; then 5560 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 5561 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | 6023 if test yes = "$GCC"; then 6024 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6025 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
5562 else | 6026 else |
5563 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 5564 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | 6027 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6028 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
5565 fi 5566 ;; 5567 5568 uts4*) 5569 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 5570 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 5571 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5572 ;; 5573 5574 *) 5575 _LT_TAGVAR(ld_shlibs, $1)=no 5576 ;; 5577 esac 5578 | 6029 fi 6030 ;; 6031 6032 uts4*) 6033 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6034 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 6035 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6036 ;; 6037 6038 *) 6039 _LT_TAGVAR(ld_shlibs, $1)=no 6040 ;; 6041 esac 6042 |
5579 if test x$host_vendor = xsni; then | 6043 if test sni = "$host_vendor"; then |
5580 case $host in 5581 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | 6044 case $host in 6045 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
5582 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym' | 6046 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Blargedynsym' |
5583 ;; 5584 esac 5585 fi 5586 fi 5587]) 5588AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) | 6047 ;; 6048 esac 6049 fi 6050 fi 6051]) 6052AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) |
5589test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no | 6053test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no |
5590 5591_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld 5592 5593_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl 5594_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl 5595_LT_DECL([], [extract_expsyms_cmds], [2], 5596 [The commands to extract the exported symbol list from a shared archive]) 5597 5598# 5599# Do we need to explicitly link libc? 5600# 5601case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in 5602x|xyes) 5603 # Assume -lc should be added 5604 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes 5605 | 6054 6055_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld 6056 6057_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl 6058_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl 6059_LT_DECL([], [extract_expsyms_cmds], [2], 6060 [The commands to extract the exported symbol list from a shared archive]) 6061 6062# 6063# Do we need to explicitly link libc? 6064# 6065case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in 6066x|xyes) 6067 # Assume -lc should be added 6068 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes 6069 |
5606 if test "$enable_shared" = yes && test "$GCC" = yes; then | 6070 if test yes,yes = "$GCC,$enable_shared"; then |
5607 case $_LT_TAGVAR(archive_cmds, $1) in 5608 *'~'*) 5609 # FIXME: we may have to deal with multi-command sequences. 5610 ;; 5611 '$CC '*) 5612 # Test whether the compiler implicitly links with -lc since on some 5613 # systems, -lgcc has to come before -lc. If gcc already passes -lc 5614 # to ld, don't add -lc before -lgcc. --- 63 unchanged lines hidden (view full) --- 5678_LT_TAGDECL([], [no_undefined_flag], [1], 5679 [Flag that enforces no undefined symbols]) 5680_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1], 5681 [Flag to hardcode $libdir into a binary during linking. 5682 This must work even if $libdir does not exist]) 5683_LT_TAGDECL([], [hardcode_libdir_separator], [1], 5684 [Whether we need a single "-rpath" flag with a separated argument]) 5685_LT_TAGDECL([], [hardcode_direct], [0], | 6071 case $_LT_TAGVAR(archive_cmds, $1) in 6072 *'~'*) 6073 # FIXME: we may have to deal with multi-command sequences. 6074 ;; 6075 '$CC '*) 6076 # Test whether the compiler implicitly links with -lc since on some 6077 # systems, -lgcc has to come before -lc. If gcc already passes -lc 6078 # to ld, don't add -lc before -lgcc. --- 63 unchanged lines hidden (view full) --- 6142_LT_TAGDECL([], [no_undefined_flag], [1], 6143 [Flag that enforces no undefined symbols]) 6144_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1], 6145 [Flag to hardcode $libdir into a binary during linking. 6146 This must work even if $libdir does not exist]) 6147_LT_TAGDECL([], [hardcode_libdir_separator], [1], 6148 [Whether we need a single "-rpath" flag with a separated argument]) 6149_LT_TAGDECL([], [hardcode_direct], [0], |
5686 [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes | 6150 [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes |
5687 DIR into the resulting binary]) 5688_LT_TAGDECL([], [hardcode_direct_absolute], [0], | 6151 DIR into the resulting binary]) 6152_LT_TAGDECL([], [hardcode_direct_absolute], [0], |
5689 [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes | 6153 [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes |
5690 DIR into the resulting binary and the resulting library dependency is | 6154 DIR into the resulting binary and the resulting library dependency is |
5691 "absolute", i.e impossible to change by setting ${shlibpath_var} if the | 6155 "absolute", i.e impossible to change by setting $shlibpath_var if the |
5692 library is relocated]) 5693_LT_TAGDECL([], [hardcode_minus_L], [0], 5694 [Set to "yes" if using the -LDIR flag during linking hardcodes DIR 5695 into the resulting binary]) 5696_LT_TAGDECL([], [hardcode_shlibpath_var], [0], 5697 [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 5698 into the resulting binary]) 5699_LT_TAGDECL([], [hardcode_automatic], [0], --- 24 unchanged lines hidden (view full) --- 5724dnl [Compiler flag to generate thread safe objects]) 5725])# _LT_LINKER_SHLIBS 5726 5727 5728# _LT_LANG_C_CONFIG([TAG]) 5729# ------------------------ 5730# Ensure that the configuration variables for a C compiler are suitably 5731# defined. These variables are subsequently used by _LT_CONFIG to write | 6156 library is relocated]) 6157_LT_TAGDECL([], [hardcode_minus_L], [0], 6158 [Set to "yes" if using the -LDIR flag during linking hardcodes DIR 6159 into the resulting binary]) 6160_LT_TAGDECL([], [hardcode_shlibpath_var], [0], 6161 [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 6162 into the resulting binary]) 6163_LT_TAGDECL([], [hardcode_automatic], [0], --- 24 unchanged lines hidden (view full) --- 6188dnl [Compiler flag to generate thread safe objects]) 6189])# _LT_LINKER_SHLIBS 6190 6191 6192# _LT_LANG_C_CONFIG([TAG]) 6193# ------------------------ 6194# Ensure that the configuration variables for a C compiler are suitably 6195# defined. These variables are subsequently used by _LT_CONFIG to write |
5732# the compiler configuration to `libtool'. | 6196# the compiler configuration to 'libtool'. |
5733m4_defun([_LT_LANG_C_CONFIG], 5734[m4_require([_LT_DECL_EGREP])dnl | 6197m4_defun([_LT_LANG_C_CONFIG], 6198[m4_require([_LT_DECL_EGREP])dnl |
5735lt_save_CC="$CC" | 6199lt_save_CC=$CC |
5736AC_LANG_PUSH(C) 5737 5738# Source file extension for C test sources. 5739ac_ext=c 5740 5741# Object file extension for compiled C test sources. 5742objext=o 5743_LT_TAGVAR(objext, $1)=$objext --- 23 unchanged lines hidden (view full) --- 5767 _LT_COMPILER_C_O($1) 5768 _LT_COMPILER_FILE_LOCKS($1) 5769 _LT_LINKER_SHLIBS($1) 5770 _LT_SYS_DYNAMIC_LINKER($1) 5771 _LT_LINKER_HARDCODE_LIBPATH($1) 5772 LT_SYS_DLOPEN_SELF 5773 _LT_CMD_STRIPLIB 5774 | 6200AC_LANG_PUSH(C) 6201 6202# Source file extension for C test sources. 6203ac_ext=c 6204 6205# Object file extension for compiled C test sources. 6206objext=o 6207_LT_TAGVAR(objext, $1)=$objext --- 23 unchanged lines hidden (view full) --- 6231 _LT_COMPILER_C_O($1) 6232 _LT_COMPILER_FILE_LOCKS($1) 6233 _LT_LINKER_SHLIBS($1) 6234 _LT_SYS_DYNAMIC_LINKER($1) 6235 _LT_LINKER_HARDCODE_LIBPATH($1) 6236 LT_SYS_DLOPEN_SELF 6237 _LT_CMD_STRIPLIB 6238 |
5775 # Report which library types will actually be built | 6239 # Report what library types will actually be built |
5776 AC_MSG_CHECKING([if libtool supports shared libraries]) 5777 AC_MSG_RESULT([$can_build_shared]) 5778 5779 AC_MSG_CHECKING([whether to build shared libraries]) | 6240 AC_MSG_CHECKING([if libtool supports shared libraries]) 6241 AC_MSG_RESULT([$can_build_shared]) 6242 6243 AC_MSG_CHECKING([whether to build shared libraries]) |
5780 test "$can_build_shared" = "no" && enable_shared=no | 6244 test no = "$can_build_shared" && enable_shared=no |
5781 5782 # On AIX, shared libraries and static libraries use the same namespace, and 5783 # are all built from PIC. 5784 case $host_os in 5785 aix3*) | 6245 6246 # On AIX, shared libraries and static libraries use the same namespace, and 6247 # are all built from PIC. 6248 case $host_os in 6249 aix3*) |
5786 test "$enable_shared" = yes && enable_static=no | 6250 test yes = "$enable_shared" && enable_static=no |
5787 if test -n "$RANLIB"; then 5788 archive_cmds="$archive_cmds~\$RANLIB \$lib" 5789 postinstall_cmds='$RANLIB $lib' 5790 fi 5791 ;; 5792 5793 aix[[4-9]]*) | 6251 if test -n "$RANLIB"; then 6252 archive_cmds="$archive_cmds~\$RANLIB \$lib" 6253 postinstall_cmds='$RANLIB $lib' 6254 fi 6255 ;; 6256 6257 aix[[4-9]]*) |
5794 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 5795 test "$enable_shared" = yes && enable_static=no | 6258 if test ia64 != "$host_cpu"; then 6259 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 6260 yes,aix,yes) ;; # shared object as lib.so file only 6261 yes,svr4,*) ;; # shared object as lib.so archive member only 6262 yes,*) enable_static=no ;; # shared object in lib.a archive as well 6263 esac |
5796 fi 5797 ;; 5798 esac 5799 AC_MSG_RESULT([$enable_shared]) 5800 5801 AC_MSG_CHECKING([whether to build static libraries]) 5802 # Make sure either enable_shared or enable_static is yes. | 6264 fi 6265 ;; 6266 esac 6267 AC_MSG_RESULT([$enable_shared]) 6268 6269 AC_MSG_CHECKING([whether to build static libraries]) 6270 # Make sure either enable_shared or enable_static is yes. |
5803 test "$enable_shared" = yes || enable_static=yes | 6271 test yes = "$enable_shared" || enable_static=yes |
5804 AC_MSG_RESULT([$enable_static]) 5805 5806 _LT_CONFIG($1) 5807fi 5808AC_LANG_POP | 6272 AC_MSG_RESULT([$enable_static]) 6273 6274 _LT_CONFIG($1) 6275fi 6276AC_LANG_POP |
5809CC="$lt_save_CC" | 6277CC=$lt_save_CC |
5810])# _LT_LANG_C_CONFIG 5811 5812 5813# _LT_LANG_CXX_CONFIG([TAG]) 5814# -------------------------- 5815# Ensure that the configuration variables for a C++ compiler are suitably 5816# defined. These variables are subsequently used by _LT_CONFIG to write | 6278])# _LT_LANG_C_CONFIG 6279 6280 6281# _LT_LANG_CXX_CONFIG([TAG]) 6282# -------------------------- 6283# Ensure that the configuration variables for a C++ compiler are suitably 6284# defined. These variables are subsequently used by _LT_CONFIG to write |
5817# the compiler configuration to `libtool'. | 6285# the compiler configuration to 'libtool'. |
5818m4_defun([_LT_LANG_CXX_CONFIG], 5819[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 5820m4_require([_LT_DECL_EGREP])dnl 5821m4_require([_LT_PATH_MANIFEST_TOOL])dnl | 6286m4_defun([_LT_LANG_CXX_CONFIG], 6287[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 6288m4_require([_LT_DECL_EGREP])dnl 6289m4_require([_LT_PATH_MANIFEST_TOOL])dnl |
5822if test -n "$CXX" && ( test "X$CXX" != "Xno" && 5823 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 5824 (test "X$CXX" != "Xg++"))) ; then | 6290if test -n "$CXX" && ( test no != "$CXX" && 6291 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || 6292 (test g++ != "$CXX"))); then |
5825 AC_PROG_CXXCPP 5826else 5827 _lt_caught_CXX_error=yes 5828fi 5829 5830AC_LANG_PUSH(C++) 5831_LT_TAGVAR(archive_cmds_need_lc, $1)=no 5832_LT_TAGVAR(allow_undefined_flag, $1)= --- 25 unchanged lines hidden (view full) --- 5858# Object file extension for compiled C++ test sources. 5859objext=o 5860_LT_TAGVAR(objext, $1)=$objext 5861 5862# No sense in running all these tests if we already determined that 5863# the CXX compiler isn't working. Some variables (like enable_shared) 5864# are currently assumed to apply to all compilers on this platform, 5865# and will be corrupted by setting them based on a non-working compiler. | 6293 AC_PROG_CXXCPP 6294else 6295 _lt_caught_CXX_error=yes 6296fi 6297 6298AC_LANG_PUSH(C++) 6299_LT_TAGVAR(archive_cmds_need_lc, $1)=no 6300_LT_TAGVAR(allow_undefined_flag, $1)= --- 25 unchanged lines hidden (view full) --- 6326# Object file extension for compiled C++ test sources. 6327objext=o 6328_LT_TAGVAR(objext, $1)=$objext 6329 6330# No sense in running all these tests if we already determined that 6331# the CXX compiler isn't working. Some variables (like enable_shared) 6332# are currently assumed to apply to all compilers on this platform, 6333# and will be corrupted by setting them based on a non-working compiler. |
5866if test "$_lt_caught_CXX_error" != yes; then | 6334if test yes != "$_lt_caught_CXX_error"; then |
5867 # Code to be used in simple compile tests 5868 lt_simple_compile_test_code="int some_variable = 0;" 5869 5870 # Code to be used in simple link tests 5871 lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }' 5872 5873 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 5874 _LT_TAG_COMPILER --- 25 unchanged lines hidden (view full) --- 5900 CFLAGS=$CXXFLAGS 5901 compiler=$CC 5902 _LT_TAGVAR(compiler, $1)=$CC 5903 _LT_CC_BASENAME([$compiler]) 5904 5905 if test -n "$compiler"; then 5906 # We don't want -fno-exception when compiling C++ code, so set the 5907 # no_builtin_flag separately | 6335 # Code to be used in simple compile tests 6336 lt_simple_compile_test_code="int some_variable = 0;" 6337 6338 # Code to be used in simple link tests 6339 lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }' 6340 6341 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 6342 _LT_TAG_COMPILER --- 25 unchanged lines hidden (view full) --- 6368 CFLAGS=$CXXFLAGS 6369 compiler=$CC 6370 _LT_TAGVAR(compiler, $1)=$CC 6371 _LT_CC_BASENAME([$compiler]) 6372 6373 if test -n "$compiler"; then 6374 # We don't want -fno-exception when compiling C++ code, so set the 6375 # no_builtin_flag separately |
5908 if test "$GXX" = yes; then | 6376 if test yes = "$GXX"; then |
5909 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' 5910 else 5911 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= 5912 fi 5913 | 6377 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' 6378 else 6379 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= 6380 fi 6381 |
5914 if test "$GXX" = yes; then | 6382 if test yes = "$GXX"; then |
5915 # Set up default GNU C++ configuration 5916 5917 LT_PATH_LD 5918 5919 # Check if GNU C++ uses GNU ld as the underlying linker, since the 5920 # archiving commands below assume that GNU ld is being used. | 6383 # Set up default GNU C++ configuration 6384 6385 LT_PATH_LD 6386 6387 # Check if GNU C++ uses GNU ld as the underlying linker, since the 6388 # archiving commands below assume that GNU ld is being used. |
5921 if test "$with_gnu_ld" = yes; then 5922 _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 5923 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 6389 if test yes = "$with_gnu_ld"; then 6390 _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 6391 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' |
5924 | 6392 |
5925 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 5926 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' | 6393 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 6394 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' |
5927 5928 # If archive_cmds runs LD, not CC, wlarc should be empty 5929 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 5930 # investigate it a little bit more. (MM) | 6395 6396 # If archive_cmds runs LD, not CC, wlarc should be empty 6397 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 6398 # investigate it a little bit more. (MM) |
5931 wlarc='${wl}' | 6399 wlarc='$wl' |
5932 5933 # ancient GNU ld didn't support --whole-archive et. al. 5934 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 5935 $GREP 'no-whole-archive' > /dev/null; then | 6400 6401 # ancient GNU ld didn't support --whole-archive et. al. 6402 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 6403 $GREP 'no-whole-archive' > /dev/null; then |
5936 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | 6404 _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' |
5937 else 5938 _LT_TAGVAR(whole_archive_flag_spec, $1)= 5939 fi 5940 else 5941 with_gnu_ld=no 5942 wlarc= 5943 5944 # A generic and very simple default shared library creation --- 19 unchanged lines hidden (view full) --- 5964 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) 5965 _LT_TAGVAR(ld_shlibs, $1)=yes 5966 case $host_os in 5967 aix3*) 5968 # FIXME: insert proper C++ library support 5969 _LT_TAGVAR(ld_shlibs, $1)=no 5970 ;; 5971 aix[[4-9]]*) | 6405 else 6406 _LT_TAGVAR(whole_archive_flag_spec, $1)= 6407 fi 6408 else 6409 with_gnu_ld=no 6410 wlarc= 6411 6412 # A generic and very simple default shared library creation --- 19 unchanged lines hidden (view full) --- 6432 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) 6433 _LT_TAGVAR(ld_shlibs, $1)=yes 6434 case $host_os in 6435 aix3*) 6436 # FIXME: insert proper C++ library support 6437 _LT_TAGVAR(ld_shlibs, $1)=no 6438 ;; 6439 aix[[4-9]]*) |
5972 if test "$host_cpu" = ia64; then | 6440 if test ia64 = "$host_cpu"; then |
5973 # On IA64, the linker does run time linking by default, so we don't 5974 # have to do anything special. 5975 aix_use_runtimelinking=no 5976 exp_sym_flag='-Bexport' | 6441 # On IA64, the linker does run time linking by default, so we don't 6442 # have to do anything special. 6443 aix_use_runtimelinking=no 6444 exp_sym_flag='-Bexport' |
5977 no_entry_flag="" | 6445 no_entry_flag= |
5978 else 5979 aix_use_runtimelinking=no 5980 5981 # Test if we are trying to use run time linking or normal 5982 # AIX style linking. If -brtl is somewhere in LDFLAGS, we | 6446 else 6447 aix_use_runtimelinking=no 6448 6449 # Test if we are trying to use run time linking or normal 6450 # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
5983 # need to do runtime linking. | 6451 # have runtime linking enabled, and use it for executables. 6452 # For shared libraries, we enable/disable runtime linking 6453 # depending on the kind of the shared library created - 6454 # when "with_aix_soname,aix_use_runtimelinking" is: 6455 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 6456 # "aix,yes" lib.so shared, rtl:yes, for executables 6457 # lib.a static archive 6458 # "both,no" lib.so.V(shr.o) shared, rtl:yes 6459 # lib.a(lib.so.V) shared, rtl:no, for executables 6460 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 6461 # lib.a(lib.so.V) shared, rtl:no 6462 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 6463 # lib.a static archive |
5984 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) 5985 for ld_flag in $LDFLAGS; do 5986 case $ld_flag in 5987 *-brtl*) 5988 aix_use_runtimelinking=yes 5989 break 5990 ;; 5991 esac 5992 done | 6464 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) 6465 for ld_flag in $LDFLAGS; do 6466 case $ld_flag in 6467 *-brtl*) 6468 aix_use_runtimelinking=yes 6469 break 6470 ;; 6471 esac 6472 done |
6473 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 6474 # With aix-soname=svr4, we create the lib.so.V shared archives only, 6475 # so we don't have lib.a shared libs to link our executables. 6476 # We have to force runtime linking in this case. 6477 aix_use_runtimelinking=yes 6478 LDFLAGS="$LDFLAGS -Wl,-brtl" 6479 fi |
|
5993 ;; 5994 esac 5995 5996 exp_sym_flag='-bexport' 5997 no_entry_flag='-bnoentry' 5998 fi 5999 6000 # When large executables or shared objects are built, AIX ld can 6001 # have problems creating the table of contents. If linking a library 6002 # or program results in "error TOC overflow" add -mminimal-toc to 6003 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 6004 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 6005 6006 _LT_TAGVAR(archive_cmds, $1)='' 6007 _LT_TAGVAR(hardcode_direct, $1)=yes 6008 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 6009 _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 6010 _LT_TAGVAR(link_all_deplibs, $1)=yes | 6480 ;; 6481 esac 6482 6483 exp_sym_flag='-bexport' 6484 no_entry_flag='-bnoentry' 6485 fi 6486 6487 # When large executables or shared objects are built, AIX ld can 6488 # have problems creating the table of contents. If linking a library 6489 # or program results in "error TOC overflow" add -mminimal-toc to 6490 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 6491 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 6492 6493 _LT_TAGVAR(archive_cmds, $1)='' 6494 _LT_TAGVAR(hardcode_direct, $1)=yes 6495 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 6496 _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 6497 _LT_TAGVAR(link_all_deplibs, $1)=yes |
6011 _LT_TAGVAR(file_list_spec, $1)='${wl}-f,' | 6498 _LT_TAGVAR(file_list_spec, $1)='$wl-f,' 6499 case $with_aix_soname,$aix_use_runtimelinking in 6500 aix,*) ;; # no import file 6501 svr4,* | *,yes) # use import file 6502 # The Import File defines what to hardcode. 6503 _LT_TAGVAR(hardcode_direct, $1)=no 6504 _LT_TAGVAR(hardcode_direct_absolute, $1)=no 6505 ;; 6506 esac |
6012 | 6507 |
6013 if test "$GXX" = yes; then | 6508 if test yes = "$GXX"; then |
6014 case $host_os in aix4.[[012]]|aix4.[[012]].*) 6015 # We only want to do this on AIX 4.2 and lower, the check 6016 # below for broken collect2 doesn't work under 4.3+ | 6509 case $host_os in aix4.[[012]]|aix4.[[012]].*) 6510 # We only want to do this on AIX 4.2 and lower, the check 6511 # below for broken collect2 doesn't work under 4.3+ |
6017 collect2name=`${CC} -print-prog-name=collect2` | 6512 collect2name=`$CC -print-prog-name=collect2` |
6018 if test -f "$collect2name" && 6019 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 6020 then 6021 # We have reworked collect2 6022 : 6023 else 6024 # We have old collect2 6025 _LT_TAGVAR(hardcode_direct, $1)=unsupported 6026 # It fails to find uninstalled libraries when the uninstalled 6027 # path is not listed in the libpath. Setting hardcode_minus_L 6028 # to unsupported forces relinking 6029 _LT_TAGVAR(hardcode_minus_L, $1)=yes 6030 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 6031 _LT_TAGVAR(hardcode_libdir_separator, $1)= 6032 fi 6033 esac 6034 shared_flag='-shared' | 6513 if test -f "$collect2name" && 6514 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 6515 then 6516 # We have reworked collect2 6517 : 6518 else 6519 # We have old collect2 6520 _LT_TAGVAR(hardcode_direct, $1)=unsupported 6521 # It fails to find uninstalled libraries when the uninstalled 6522 # path is not listed in the libpath. Setting hardcode_minus_L 6523 # to unsupported forces relinking 6524 _LT_TAGVAR(hardcode_minus_L, $1)=yes 6525 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 6526 _LT_TAGVAR(hardcode_libdir_separator, $1)= 6527 fi 6528 esac 6529 shared_flag='-shared' |
6035 if test "$aix_use_runtimelinking" = yes; then 6036 shared_flag="$shared_flag "'${wl}-G' | 6530 if test yes = "$aix_use_runtimelinking"; then 6531 shared_flag=$shared_flag' $wl-G' |
6037 fi | 6532 fi |
6533 # Need to ensure runtime linking is disabled for the traditional 6534 # shared library, or the linker may eventually find shared libraries 6535 # /with/ Import File - we do not want to mix them. 6536 shared_flag_aix='-shared' 6537 shared_flag_svr4='-shared $wl-G' |
|
6038 else 6039 # not using gcc | 6538 else 6539 # not using gcc |
6040 if test "$host_cpu" = ia64; then | 6540 if test ia64 = "$host_cpu"; then |
6041 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 6042 # chokes on -Wl,-G. The following line is correct: 6043 shared_flag='-G' 6044 else | 6541 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 6542 # chokes on -Wl,-G. The following line is correct: 6543 shared_flag='-G' 6544 else |
6045 if test "$aix_use_runtimelinking" = yes; then 6046 shared_flag='${wl}-G' | 6545 if test yes = "$aix_use_runtimelinking"; then 6546 shared_flag='$wl-G' |
6047 else | 6547 else |
6048 shared_flag='${wl}-bM:SRE' | 6548 shared_flag='$wl-bM:SRE' |
6049 fi | 6549 fi |
6550 shared_flag_aix='$wl-bM:SRE' 6551 shared_flag_svr4='$wl-G' |
|
6050 fi 6051 fi 6052 | 6552 fi 6553 fi 6554 |
6053 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall' | 6555 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall' |
6054 # It seems that -bexpall does not export symbols beginning with 6055 # underscore (_), so it is better to generate a list of symbols to 6056 # export. 6057 _LT_TAGVAR(always_export_symbols, $1)=yes | 6556 # It seems that -bexpall does not export symbols beginning with 6557 # underscore (_), so it is better to generate a list of symbols to 6558 # export. 6559 _LT_TAGVAR(always_export_symbols, $1)=yes |
6058 if test "$aix_use_runtimelinking" = yes; then | 6560 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then |
6059 # Warning - without using the other runtime loading flags (-brtl), 6060 # -berok will link without error, but may produce a broken library. | 6561 # Warning - without using the other runtime loading flags (-brtl), 6562 # -berok will link without error, but may produce a broken library. |
6061 _LT_TAGVAR(allow_undefined_flag, $1)='-berok' | 6563 # The "-G" linker flag allows undefined symbols. 6564 _LT_TAGVAR(no_undefined_flag, $1)='-bernotok' |
6062 # Determine the default libpath from the value encoded in an empty 6063 # executable. 6064 _LT_SYS_MODULE_PATH_AIX([$1]) | 6565 # Determine the default libpath from the value encoded in an empty 6566 # executable. 6567 _LT_SYS_MODULE_PATH_AIX([$1]) |
6065 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" | 6568 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath" |
6066 | 6569 |
6067 _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 func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | 6570 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag |
6068 else | 6571 else |
6069 if test "$host_cpu" = ia64; then 6070 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' | 6572 if test ia64 = "$host_cpu"; then 6573 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib' |
6071 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" | 6574 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" |
6072 _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" | 6575 _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" |
6073 else 6074 # Determine the default libpath from the value encoded in an 6075 # empty executable. 6076 _LT_SYS_MODULE_PATH_AIX([$1]) | 6576 else 6577 # Determine the default libpath from the value encoded in an 6578 # empty executable. 6579 _LT_SYS_MODULE_PATH_AIX([$1]) |
6077 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" | 6580 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath" |
6078 # Warning - without using the other run time loading flags, 6079 # -berok will link without error, but may produce a broken library. | 6581 # Warning - without using the other run time loading flags, 6582 # -berok will link without error, but may produce a broken library. |
6080 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' 6081 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' 6082 if test "$with_gnu_ld" = yes; then | 6583 _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok' 6584 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok' 6585 if test yes = "$with_gnu_ld"; then |
6083 # We only use this code for GNU lds that support --whole-archive. | 6586 # We only use this code for GNU lds that support --whole-archive. |
6084 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | 6587 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive' |
6085 else 6086 # Exported symbols can be pulled into shared objects from archives 6087 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' 6088 fi 6089 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes | 6588 else 6589 # Exported symbols can be pulled into shared objects from archives 6590 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' 6591 fi 6592 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes |
6090 # This is similar to how AIX traditionally builds its shared 6091 # libraries. 6092 _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' | 6593 _LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 6594 # -brtl affects multiple linker settings, -berok does not and is overridden later 6595 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\1%g"`' 6596 if test svr4 != "$with_aix_soname"; then 6597 # This is similar to how AIX traditionally builds its shared 6598 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. 6599 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 6600 fi 6601 if test aix != "$with_aix_soname"; then 6602 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 6603 else 6604 # used by -dlpreopen to get the symbols 6605 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 6606 fi 6607 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/$realname.d' |
6093 fi 6094 fi 6095 ;; 6096 6097 beos*) 6098 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 6099 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 6100 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 6101 # support --undefined. This deserves some investigation. FIXME | 6608 fi 6609 fi 6610 ;; 6611 6612 beos*) 6613 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 6614 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 6615 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 6616 # support --undefined. This deserves some investigation. FIXME |
6102 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 6617 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
6103 else 6104 _LT_TAGVAR(ld_shlibs, $1)=no 6105 fi 6106 ;; 6107 6108 chorus*) 6109 case $cc_basename in 6110 *) --- 11 unchanged lines hidden (view full) --- 6122 # no search path for DLLs. 6123 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' 6124 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 6125 _LT_TAGVAR(always_export_symbols, $1)=yes 6126 _LT_TAGVAR(file_list_spec, $1)='@' 6127 # Tell ltmain to make .lib files, not .a files. 6128 libext=lib 6129 # Tell ltmain to make .dll files, not .so files. | 6618 else 6619 _LT_TAGVAR(ld_shlibs, $1)=no 6620 fi 6621 ;; 6622 6623 chorus*) 6624 case $cc_basename in 6625 *) --- 11 unchanged lines hidden (view full) --- 6637 # no search path for DLLs. 6638 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' 6639 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 6640 _LT_TAGVAR(always_export_symbols, $1)=yes 6641 _LT_TAGVAR(file_list_spec, $1)='@' 6642 # Tell ltmain to make .lib files, not .a files. 6643 libext=lib 6644 # Tell ltmain to make .dll files, not .so files. |
6130 shrext_cmds=".dll" | 6645 shrext_cmds=.dll |
6131 # FIXME: Setting linknames here is a bad hack. | 6646 # FIXME: Setting linknames here is a bad hack. |
6132 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 6133 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 6134 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 6135 else 6136 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 6137 fi~ 6138 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 6139 linknames=' | 6647 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 6648 _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then 6649 cp "$export_symbols" "$output_objdir/$soname.def"; 6650 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 6651 else 6652 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 6653 fi~ 6654 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 6655 linknames=' |
6140 # The linker will not automatically build a static lib if we build a DLL. 6141 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' 6142 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 6143 # Don't use ranlib 6144 _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' 6145 _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~ | 6656 # The linker will not automatically build a static lib if we build a DLL. 6657 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' 6658 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 6659 # Don't use ranlib 6660 _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' 6661 _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~ |
6146 lt_tool_outputfile="@TOOL_OUTPUT@"~ 6147 case $lt_outputfile in 6148 *.exe|*.EXE) ;; 6149 *) 6150 lt_outputfile="$lt_outputfile.exe" 6151 lt_tool_outputfile="$lt_tool_outputfile.exe" 6152 ;; 6153 esac~ 6154 func_to_tool_file "$lt_outputfile"~ 6155 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 6156 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 6157 $RM "$lt_outputfile.manifest"; 6158 fi' | 6662 lt_tool_outputfile="@TOOL_OUTPUT@"~ 6663 case $lt_outputfile in 6664 *.exe|*.EXE) ;; 6665 *) 6666 lt_outputfile=$lt_outputfile.exe 6667 lt_tool_outputfile=$lt_tool_outputfile.exe 6668 ;; 6669 esac~ 6670 func_to_tool_file "$lt_outputfile"~ 6671 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 6672 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 6673 $RM "$lt_outputfile.manifest"; 6674 fi' |
6159 ;; 6160 *) 6161 # g++ 6162 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, 6163 # as there is no search path for DLLs. 6164 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | 6675 ;; 6676 *) 6677 # g++ 6678 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, 6679 # as there is no search path for DLLs. 6680 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
6165 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols' | 6681 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols' |
6166 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 6167 _LT_TAGVAR(always_export_symbols, $1)=no 6168 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 6169 6170 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | 6682 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 6683 _LT_TAGVAR(always_export_symbols, $1)=no 6684 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 6685 6686 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
6171 _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' 6172 # If the export-symbols file already is a .def file (1st line 6173 # is EXPORTS), use it as is; otherwise, prepend... 6174 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 6175 cp $export_symbols $output_objdir/$soname.def; 6176 else 6177 echo EXPORTS > $output_objdir/$soname.def; 6178 cat $export_symbols >> $output_objdir/$soname.def; 6179 fi~ 6180 $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' | 6687 _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' 6688 # If the export-symbols file already is a .def file, use it as 6689 # is; otherwise, prepend EXPORTS... 6690 _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then 6691 cp $export_symbols $output_objdir/$soname.def; 6692 else 6693 echo EXPORTS > $output_objdir/$soname.def; 6694 cat $export_symbols >> $output_objdir/$soname.def; 6695 fi~ 6696 $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' |
6181 else 6182 _LT_TAGVAR(ld_shlibs, $1)=no 6183 fi 6184 ;; 6185 esac 6186 ;; 6187 darwin* | rhapsody*) 6188 _LT_DARWIN_LINKER_FEATURES($1) 6189 ;; 6190 | 6697 else 6698 _LT_TAGVAR(ld_shlibs, $1)=no 6699 fi 6700 ;; 6701 esac 6702 ;; 6703 darwin* | rhapsody*) 6704 _LT_DARWIN_LINKER_FEATURES($1) 6705 ;; 6706 |
6707 os2*) 6708 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 6709 _LT_TAGVAR(hardcode_minus_L, $1)=yes 6710 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 6711 shrext_cmds=.dll 6712 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 6713 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 6714 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 6715 $ECHO EXPORTS >> $output_objdir/$libname.def~ 6716 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 6717 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 6718 emximp -o $lib $output_objdir/$libname.def' 6719 _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 6720 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 6721 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 6722 $ECHO EXPORTS >> $output_objdir/$libname.def~ 6723 prefix_cmds="$SED"~ 6724 if test EXPORTS = "`$SED 1q $export_symbols`"; then 6725 prefix_cmds="$prefix_cmds -e 1d"; 6726 fi~ 6727 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 6728 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 6729 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 6730 emximp -o $lib $output_objdir/$libname.def' 6731 _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 6732 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 6733 ;; 6734 |
|
6191 dgux*) 6192 case $cc_basename in 6193 ec++*) 6194 # FIXME: insert proper C++ library support 6195 _LT_TAGVAR(ld_shlibs, $1)=no 6196 ;; 6197 ghcx*) 6198 # Green Hills C++ Compiler --- 18 unchanged lines hidden (view full) --- 6217 ;; 6218 6219 freebsd* | dragonfly*) 6220 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 6221 # conventions 6222 _LT_TAGVAR(ld_shlibs, $1)=yes 6223 ;; 6224 | 6735 dgux*) 6736 case $cc_basename in 6737 ec++*) 6738 # FIXME: insert proper C++ library support 6739 _LT_TAGVAR(ld_shlibs, $1)=no 6740 ;; 6741 ghcx*) 6742 # Green Hills C++ Compiler --- 18 unchanged lines hidden (view full) --- 6761 ;; 6762 6763 freebsd* | dragonfly*) 6764 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 6765 # conventions 6766 _LT_TAGVAR(ld_shlibs, $1)=yes 6767 ;; 6768 |
6225 gnu*) 6226 ;; 6227 | |
6228 haiku*) | 6769 haiku*) |
6229 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 6770 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
6230 _LT_TAGVAR(link_all_deplibs, $1)=yes 6231 ;; 6232 6233 hpux9*) | 6771 _LT_TAGVAR(link_all_deplibs, $1)=yes 6772 ;; 6773 6774 hpux9*) |
6234 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' | 6775 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' |
6235 _LT_TAGVAR(hardcode_libdir_separator, $1)=: | 6776 _LT_TAGVAR(hardcode_libdir_separator, $1)=: |
6236 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | 6777 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' |
6237 _LT_TAGVAR(hardcode_direct, $1)=yes 6238 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, 6239 # but as the default 6240 # location of the library. 6241 6242 case $cc_basename in 6243 CC*) 6244 # FIXME: insert proper C++ library support 6245 _LT_TAGVAR(ld_shlibs, $1)=no 6246 ;; 6247 aCC*) | 6778 _LT_TAGVAR(hardcode_direct, $1)=yes 6779 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, 6780 # but as the default 6781 # location of the library. 6782 6783 case $cc_basename in 6784 CC*) 6785 # FIXME: insert proper C++ library support 6786 _LT_TAGVAR(ld_shlibs, $1)=no 6787 ;; 6788 aCC*) |
6248 _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' | 6789 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' |
6249 # Commands to make compiler produce verbose output that lists 6250 # what "hidden" libraries, object files and flags are used when 6251 # linking a shared library. 6252 # 6253 # There doesn't appear to be a way to prevent this compiler from 6254 # explicitly linking system object files so we need to strip them 6255 # from the output so that they don't get included in the library 6256 # dependencies. | 6790 # Commands to make compiler produce verbose output that lists 6791 # what "hidden" libraries, object files and flags are used when 6792 # linking a shared library. 6793 # 6794 # There doesn't appear to be a way to prevent this compiler from 6795 # explicitly linking system object files so we need to strip them 6796 # from the output so that they don't get included in the library 6797 # dependencies. |
6257 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' | 6798 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' |
6258 ;; 6259 *) | 6799 ;; 6800 *) |
6260 if test "$GXX" = yes; then 6261 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | 6801 if test yes = "$GXX"; then 6802 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' |
6262 else 6263 # FIXME: insert proper C++ library support 6264 _LT_TAGVAR(ld_shlibs, $1)=no 6265 fi 6266 ;; 6267 esac 6268 ;; 6269 6270 hpux10*|hpux11*) | 6803 else 6804 # FIXME: insert proper C++ library support 6805 _LT_TAGVAR(ld_shlibs, $1)=no 6806 fi 6807 ;; 6808 esac 6809 ;; 6810 6811 hpux10*|hpux11*) |
6271 if test $with_gnu_ld = no; then 6272 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' | 6812 if test no = "$with_gnu_ld"; then 6813 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' |
6273 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 6274 6275 case $host_cpu in 6276 hppa*64*|ia64*) 6277 ;; 6278 *) | 6814 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 6815 6816 case $host_cpu in 6817 hppa*64*|ia64*) 6818 ;; 6819 *) |
6279 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | 6820 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' |
6280 ;; 6281 esac 6282 fi 6283 case $host_cpu in 6284 hppa*64*|ia64*) 6285 _LT_TAGVAR(hardcode_direct, $1)=no 6286 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6287 ;; --- 9 unchanged lines hidden (view full) --- 6297 case $cc_basename in 6298 CC*) 6299 # FIXME: insert proper C++ library support 6300 _LT_TAGVAR(ld_shlibs, $1)=no 6301 ;; 6302 aCC*) 6303 case $host_cpu in 6304 hppa*64*) | 6821 ;; 6822 esac 6823 fi 6824 case $host_cpu in 6825 hppa*64*|ia64*) 6826 _LT_TAGVAR(hardcode_direct, $1)=no 6827 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6828 ;; --- 9 unchanged lines hidden (view full) --- 6838 case $cc_basename in 6839 CC*) 6840 # FIXME: insert proper C++ library support 6841 _LT_TAGVAR(ld_shlibs, $1)=no 6842 ;; 6843 aCC*) 6844 case $host_cpu in 6845 hppa*64*) |
6305 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | 6846 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
6306 ;; 6307 ia64*) | 6847 ;; 6848 ia64*) |
6308 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | 6849 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
6309 ;; 6310 *) | 6850 ;; 6851 *) |
6311 _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' | 6852 _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' |
6312 ;; 6313 esac 6314 # Commands to make compiler produce verbose output that lists 6315 # what "hidden" libraries, object files and flags are used when 6316 # linking a shared library. 6317 # 6318 # There doesn't appear to be a way to prevent this compiler from 6319 # explicitly linking system object files so we need to strip them 6320 # from the output so that they don't get included in the library 6321 # dependencies. | 6853 ;; 6854 esac 6855 # Commands to make compiler produce verbose output that lists 6856 # what "hidden" libraries, object files and flags are used when 6857 # linking a shared library. 6858 # 6859 # There doesn't appear to be a way to prevent this compiler from 6860 # explicitly linking system object files so we need to strip them 6861 # from the output so that they don't get included in the library 6862 # dependencies. |
6322 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' | 6863 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' |
6323 ;; 6324 *) | 6864 ;; 6865 *) |
6325 if test "$GXX" = yes; then 6326 if test $with_gnu_ld = no; then | 6866 if test yes = "$GXX"; then 6867 if test no = "$with_gnu_ld"; then |
6327 case $host_cpu in 6328 hppa*64*) | 6868 case $host_cpu in 6869 hppa*64*) |
6329 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | 6870 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
6330 ;; 6331 ia64*) | 6871 ;; 6872 ia64*) |
6332 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | 6873 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
6333 ;; 6334 *) | 6874 ;; 6875 *) |
6335 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | 6876 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
6336 ;; 6337 esac 6338 fi 6339 else 6340 # FIXME: insert proper C++ library support 6341 _LT_TAGVAR(ld_shlibs, $1)=no 6342 fi 6343 ;; 6344 esac 6345 ;; 6346 6347 interix[[3-9]]*) 6348 _LT_TAGVAR(hardcode_direct, $1)=no 6349 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | 6877 ;; 6878 esac 6879 fi 6880 else 6881 # FIXME: insert proper C++ library support 6882 _LT_TAGVAR(ld_shlibs, $1)=no 6883 fi 6884 ;; 6885 esac 6886 ;; 6887 6888 interix[[3-9]]*) 6889 _LT_TAGVAR(hardcode_direct, $1)=no 6890 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
6350 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 6351 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | 6891 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' 6892 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' |
6352 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 6353 # Instead, shared libraries are loaded at an image base (0x10000000 by 6354 # default) and relocated if they conflict, which is a slow very memory 6355 # consuming and fragmenting process. To avoid this, we pick a random, 6356 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 6357 # time. Moving up from 0x10000000 also allows more sbrk(2) space. | 6893 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 6894 # Instead, shared libraries are loaded at an image base (0x10000000 by 6895 # default) and relocated if they conflict, which is a slow very memory 6896 # consuming and fragmenting process. To avoid this, we pick a random, 6897 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 6898 # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
6358 _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' 6359 _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' | 6899 _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' 6900 _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' |
6360 ;; 6361 irix5* | irix6*) 6362 case $cc_basename in 6363 CC*) 6364 # SGI C++ | 6901 ;; 6902 irix5* | irix6*) 6903 case $cc_basename in 6904 CC*) 6905 # SGI C++ |
6365 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' | 6906 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' |
6366 6367 # Archives containing C++ object files must be created using 6368 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 6369 # necessary to make sure instantiated templates are included 6370 # in the archive. 6371 _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' 6372 ;; 6373 *) | 6907 6908 # Archives containing C++ object files must be created using 6909 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 6910 # necessary to make sure instantiated templates are included 6911 # in the archive. 6912 _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' 6913 ;; 6914 *) |
6374 if test "$GXX" = yes; then 6375 if test "$with_gnu_ld" = no; then 6376 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | 6915 if test yes = "$GXX"; then 6916 if test no = "$with_gnu_ld"; then 6917 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' |
6377 else | 6918 else |
6378 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib' | 6919 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib' |
6379 fi 6380 fi 6381 _LT_TAGVAR(link_all_deplibs, $1)=yes 6382 ;; 6383 esac | 6920 fi 6921 fi 6922 _LT_TAGVAR(link_all_deplibs, $1)=yes 6923 ;; 6924 esac |
6384 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | 6925 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' |
6385 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 6386 _LT_TAGVAR(inherit_rpath, $1)=yes 6387 ;; 6388 | 6926 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 6927 _LT_TAGVAR(inherit_rpath, $1)=yes 6928 ;; 6929 |
6389 linux* | k*bsd*-gnu | kopensolaris*-gnu) | 6930 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
6390 case $cc_basename in 6391 KCC*) 6392 # Kuck and Associates, Inc. (KAI) C++ Compiler 6393 6394 # KCC will only create a shared library if the output file 6395 # ends with ".so" (or ".sl" for HP-UX), so rename the library 6396 # to its proper name (with version) after linking. | 6931 case $cc_basename in 6932 KCC*) 6933 # Kuck and Associates, Inc. (KAI) C++ Compiler 6934 6935 # KCC will only create a shared library if the output file 6936 # ends with ".so" (or ".sl" for HP-UX), so rename the library 6937 # to its proper name (with version) after linking. |
6397 _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' 6398 _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' | 6938 _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' 6939 _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' |
6399 # Commands to make compiler produce verbose output that lists 6400 # what "hidden" libraries, object files and flags are used when 6401 # linking a shared library. 6402 # 6403 # There doesn't appear to be a way to prevent this compiler from 6404 # explicitly linking system object files so we need to strip them 6405 # from the output so that they don't get included in the library 6406 # dependencies. | 6940 # Commands to make compiler produce verbose output that lists 6941 # what "hidden" libraries, object files and flags are used when 6942 # linking a shared library. 6943 # 6944 # There doesn't appear to be a way to prevent this compiler from 6945 # explicitly linking system object files so we need to strip them 6946 # from the output so that they don't get included in the library 6947 # dependencies. |
6407 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' | 6948 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' |
6408 | 6949 |
6409 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 6410 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' | 6950 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' 6951 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' |
6411 6412 # Archives containing C++ object files must be created using 6413 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 6414 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' 6415 ;; 6416 icpc* | ecpc* ) 6417 # Intel C++ 6418 with_gnu_ld=yes 6419 # version 8.0 and above of icpc choke on multiply defined symbols 6420 # if we add $predep_objects and $postdep_objects, however 7.1 and 6421 # earlier do not add the objects themselves. 6422 case `$CC -V 2>&1` in 6423 *"Version 7."*) | 6952 6953 # Archives containing C++ object files must be created using 6954 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 6955 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' 6956 ;; 6957 icpc* | ecpc* ) 6958 # Intel C++ 6959 with_gnu_ld=yes 6960 # version 8.0 and above of icpc choke on multiply defined symbols 6961 # if we add $predep_objects and $postdep_objects, however 7.1 and 6962 # earlier do not add the objects themselves. 6963 case `$CC -V 2>&1` in 6964 *"Version 7."*) |
6424 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 6425 _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' | 6965 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 6966 _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' |
6426 ;; 6427 *) # Version 8.0 or newer 6428 tmp_idyn= 6429 case $host_cpu in 6430 ia64*) tmp_idyn=' -i_dynamic';; 6431 esac | 6967 ;; 6968 *) # Version 8.0 or newer 6969 tmp_idyn= 6970 case $host_cpu in 6971 ia64*) tmp_idyn=' -i_dynamic';; 6972 esac |
6432 _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6433 _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' | 6973 _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 6974 _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' |
6434 ;; 6435 esac 6436 _LT_TAGVAR(archive_cmds_need_lc, $1)=no | 6975 ;; 6976 esac 6977 _LT_TAGVAR(archive_cmds_need_lc, $1)=no |
6437 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 6438 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 6439 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | 6978 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' 6979 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' 6980 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive' |
6440 ;; 6441 pgCC* | pgcpp*) 6442 # Portland Group C++ compiler 6443 case `$CC -V` in 6444 *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*) 6445 _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~ | 6981 ;; 6982 pgCC* | pgcpp*) 6983 # Portland Group C++ compiler 6984 case `$CC -V` in 6985 *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*) 6986 _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~ |
6446 rm -rf $tpldir~ 6447 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 6448 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' | 6987 rm -rf $tpldir~ 6988 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 6989 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' |
6449 _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~ | 6990 _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~ |
6450 rm -rf $tpldir~ 6451 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 6452 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 6453 $RANLIB $oldlib' | 6991 rm -rf $tpldir~ 6992 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 6993 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 6994 $RANLIB $oldlib' |
6454 _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~ | 6995 _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~ |
6455 rm -rf $tpldir~ 6456 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 6457 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' | 6996 rm -rf $tpldir~ 6997 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 6998 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' |
6458 _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~ | 6999 _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~ |
6459 rm -rf $tpldir~ 6460 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 6461 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' | 7000 rm -rf $tpldir~ 7001 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 7002 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' |
6462 ;; 6463 *) # Version 6 and above use weak symbols | 7003 ;; 7004 *) # Version 6 and above use weak symbols |
6464 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 6465 _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' | 7005 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 7006 _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' |
6466 ;; 6467 esac 6468 | 7007 ;; 7008 esac 7009 |
6469 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' 6470 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 6471 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' | 7010 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl--rpath $wl$libdir' 7011 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' 7012 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' |
6472 ;; 6473 cxx*) 6474 # Compaq C++ | 7013 ;; 7014 cxx*) 7015 # Compaq C++ |
6475 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 6476 _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' | 7016 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 7017 _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' |
6477 6478 runpath_var=LD_RUN_PATH 6479 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 6480 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 6481 6482 # Commands to make compiler produce verbose output that lists 6483 # what "hidden" libraries, object files and flags are used when 6484 # linking a shared library. 6485 # 6486 # There doesn't appear to be a way to prevent this compiler from 6487 # explicitly linking system object files so we need to strip them 6488 # from the output so that they don't get included in the library 6489 # dependencies. | 7018 7019 runpath_var=LD_RUN_PATH 7020 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 7021 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 7022 7023 # Commands to make compiler produce verbose output that lists 7024 # what "hidden" libraries, object files and flags are used when 7025 # linking a shared library. 7026 # 7027 # There doesn't appear to be a way to prevent this compiler from 7028 # explicitly linking system object files so we need to strip them 7029 # from the output so that they don't get included in the library 7030 # dependencies. |
6490 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed' | 7031 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed' |
6491 ;; 6492 xl* | mpixl* | bgxl*) 6493 # IBM XL 8.0 on PPC, with GNU ld | 7032 ;; 7033 xl* | mpixl* | bgxl*) 7034 # IBM XL 8.0 on PPC, with GNU ld |
6494 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 6495 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 6496 _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6497 if test "x$supports_anon_versioning" = xyes; then | 7035 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 7036 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' 7037 _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 7038 if test yes = "$supports_anon_versioning"; then |
6498 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ | 7039 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ |
6499 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 6500 echo "local: *; };" >> $output_objdir/$libname.ver~ 6501 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | 7040 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 7041 echo "local: *; };" >> $output_objdir/$libname.ver~ 7042 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' |
6502 fi 6503 ;; 6504 *) 6505 case `$CC -V 2>&1 | sed 5q` in 6506 *Sun\ C*) 6507 # Sun C++ 5.9 6508 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' | 7043 fi 7044 ;; 7045 *) 7046 case `$CC -V 2>&1 | sed 5q` in 7047 *Sun\ C*) 7048 # Sun C++ 5.9 7049 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' |
6509 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 6510 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' | 7050 _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 7051 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols' |
6511 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' | 7052 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
6512 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' | 7053 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' |
6513 _LT_TAGVAR(compiler_needs_object, $1)=yes 6514 6515 # Not sure whether something based on 6516 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 6517 # would be better. 6518 output_verbose_link_cmd='func_echo_all' 6519 6520 # Archives containing C++ object files must be created using --- 41 unchanged lines hidden (view full) --- 6562 # Workaround some broken pre-1.5 toolchains 6563 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 6564 ;; 6565 6566 *nto* | *qnx*) 6567 _LT_TAGVAR(ld_shlibs, $1)=yes 6568 ;; 6569 | 7054 _LT_TAGVAR(compiler_needs_object, $1)=yes 7055 7056 # Not sure whether something based on 7057 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 7058 # would be better. 7059 output_verbose_link_cmd='func_echo_all' 7060 7061 # Archives containing C++ object files must be created using --- 41 unchanged lines hidden (view full) --- 7103 # Workaround some broken pre-1.5 toolchains 7104 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 7105 ;; 7106 7107 *nto* | *qnx*) 7108 _LT_TAGVAR(ld_shlibs, $1)=yes 7109 ;; 7110 |
6570 openbsd2*) 6571 # C++ shared libraries are fairly broken 6572 _LT_TAGVAR(ld_shlibs, $1)=no 6573 ;; 6574 6575 openbsd*) | 7111 openbsd* | bitrig*) |
6576 if test -f /usr/libexec/ld.so; then 6577 _LT_TAGVAR(hardcode_direct, $1)=yes 6578 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6579 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 6580 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | 7112 if test -f /usr/libexec/ld.so; then 7113 _LT_TAGVAR(hardcode_direct, $1)=yes 7114 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7115 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 7116 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
6581 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 6582 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6583 _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' 6584 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 6585 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | 7117 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' 7118 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then 7119 _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' 7120 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' 7121 _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' |
6586 fi 6587 output_verbose_link_cmd=func_echo_all 6588 else 6589 _LT_TAGVAR(ld_shlibs, $1)=no 6590 fi 6591 ;; 6592 6593 osf3* | osf4* | osf5*) 6594 case $cc_basename in 6595 KCC*) 6596 # Kuck and Associates, Inc. (KAI) C++ Compiler 6597 6598 # KCC will only create a shared library if the output file 6599 # ends with ".so" (or ".sl" for HP-UX), so rename the library 6600 # to its proper name (with version) after linking. | 7122 fi 7123 output_verbose_link_cmd=func_echo_all 7124 else 7125 _LT_TAGVAR(ld_shlibs, $1)=no 7126 fi 7127 ;; 7128 7129 osf3* | osf4* | osf5*) 7130 case $cc_basename in 7131 KCC*) 7132 # Kuck and Associates, Inc. (KAI) C++ Compiler 7133 7134 # KCC will only create a shared library if the output file 7135 # ends with ".so" (or ".sl" for HP-UX), so rename the library 7136 # to its proper name (with version) after linking. |
6601 _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' | 7137 _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' |
6602 | 7138 |
6603 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' | 7139 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' |
6604 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 6605 6606 # Archives containing C++ object files must be created using 6607 # the KAI C++ compiler. 6608 case $host in 6609 osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;; 6610 *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;; 6611 esac 6612 ;; 6613 RCC*) 6614 # Rational C++ 2.4.1 6615 # FIXME: insert proper C++ library support 6616 _LT_TAGVAR(ld_shlibs, $1)=no 6617 ;; 6618 cxx*) 6619 case $host in 6620 osf3*) | 7140 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 7141 7142 # Archives containing C++ object files must be created using 7143 # the KAI C++ compiler. 7144 case $host in 7145 osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;; 7146 *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;; 7147 esac 7148 ;; 7149 RCC*) 7150 # Rational C++ 2.4.1 7151 # FIXME: insert proper C++ library support 7152 _LT_TAGVAR(ld_shlibs, $1)=no 7153 ;; 7154 cxx*) 7155 case $host in 7156 osf3*) |
6621 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 6622 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 6623 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | 7157 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*' 7158 _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 7159 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' |
6624 ;; 6625 *) 6626 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' | 7160 ;; 7161 *) 7162 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' |
6627 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' | 7163 _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' |
6628 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ | 7164 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
6629 echo "-hidden">> $lib.exp~ 6630 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~ 6631 $RM $lib.exp' | 7165 echo "-hidden">> $lib.exp~ 7166 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~ 7167 $RM $lib.exp' |
6632 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 6633 ;; 6634 esac 6635 6636 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 6637 6638 # Commands to make compiler produce verbose output that lists 6639 # what "hidden" libraries, object files and flags are used when 6640 # linking a shared library. 6641 # 6642 # There doesn't appear to be a way to prevent this compiler from 6643 # explicitly linking system object files so we need to strip them 6644 # from the output so that they don't get included in the library 6645 # dependencies. | 7168 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 7169 ;; 7170 esac 7171 7172 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 7173 7174 # Commands to make compiler produce verbose output that lists 7175 # what "hidden" libraries, object files and flags are used when 7176 # linking a shared library. 7177 # 7178 # There doesn't appear to be a way to prevent this compiler from 7179 # explicitly linking system object files so we need to strip them 7180 # from the output so that they don't get included in the library 7181 # dependencies. |
6646 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' | 7182 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' |
6647 ;; 6648 *) | 7183 ;; 7184 *) |
6649 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 6650 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' | 7185 if test yes,no = "$GXX,$with_gnu_ld"; then 7186 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*' |
6651 case $host in 6652 osf3*) | 7187 case $host in 7188 osf3*) |
6653 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | 7189 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' |
6654 ;; 6655 *) | 7190 ;; 7191 *) |
6656 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | 7192 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' |
6657 ;; 6658 esac 6659 | 7193 ;; 7194 esac 7195 |
6660 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | 7196 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' |
6661 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 6662 6663 # Commands to make compiler produce verbose output that lists 6664 # what "hidden" libraries, object files and flags are used when 6665 # linking a shared library. 6666 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 6667 6668 else --- 29 unchanged lines hidden (view full) --- 6698 ;; 6699 6700 solaris*) 6701 case $cc_basename in 6702 CC* | sunCC*) 6703 # Sun C++ 4.2, 5.x and Centerline C++ 6704 _LT_TAGVAR(archive_cmds_need_lc,$1)=yes 6705 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' | 7197 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 7198 7199 # Commands to make compiler produce verbose output that lists 7200 # what "hidden" libraries, object files and flags are used when 7201 # linking a shared library. 7202 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 7203 7204 else --- 29 unchanged lines hidden (view full) --- 7234 ;; 7235 7236 solaris*) 7237 case $cc_basename in 7238 CC* | sunCC*) 7239 # Sun C++ 4.2, 5.x and Centerline C++ 7240 _LT_TAGVAR(archive_cmds_need_lc,$1)=yes 7241 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' |
6706 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | 7242 _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
6707 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | 7243 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
6708 $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' | 7244 $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' |
6709 6710 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 6711 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6712 case $host_os in 6713 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 6714 *) 6715 # The compiler driver will combine and reorder linker options, | 7245 7246 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 7247 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7248 case $host_os in 7249 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 7250 *) 7251 # The compiler driver will combine and reorder linker options, |
6716 # but understands `-z linker_flag'. | 7252 # but understands '-z linker_flag'. |
6717 # Supported since Solaris 2.6 (maybe 2.5.1?) 6718 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' 6719 ;; 6720 esac 6721 _LT_TAGVAR(link_all_deplibs, $1)=yes 6722 6723 output_verbose_link_cmd='func_echo_all' 6724 6725 # Archives containing C++ object files must be created using 6726 # "CC -xar", where "CC" is the Sun C++ compiler. This is 6727 # necessary to make sure instantiated templates are included 6728 # in the archive. 6729 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' 6730 ;; 6731 gcx*) 6732 # Green Hills C++ Compiler | 7253 # Supported since Solaris 2.6 (maybe 2.5.1?) 7254 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' 7255 ;; 7256 esac 7257 _LT_TAGVAR(link_all_deplibs, $1)=yes 7258 7259 output_verbose_link_cmd='func_echo_all' 7260 7261 # Archives containing C++ object files must be created using 7262 # "CC -xar", where "CC" is the Sun C++ compiler. This is 7263 # necessary to make sure instantiated templates are included 7264 # in the archive. 7265 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' 7266 ;; 7267 gcx*) 7268 # Green Hills C++ Compiler |
6733 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | 7269 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' |
6734 6735 # The C++ compiler must be used to create the archive. 6736 _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 6737 ;; 6738 *) 6739 # GNU C++ compiler with Solaris linker | 7270 7271 # The C++ compiler must be used to create the archive. 7272 _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 7273 ;; 7274 *) 7275 # GNU C++ compiler with Solaris linker |
6740 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 6741 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' | 7276 if test yes,no = "$GXX,$with_gnu_ld"; then 7277 _LT_TAGVAR(no_undefined_flag, $1)=' $wl-z ${wl}defs' |
6742 if $CC --version | $GREP -v '^2\.7' > /dev/null; then | 7278 if $CC --version | $GREP -v '^2\.7' > /dev/null; then |
6743 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | 7279 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' |
6744 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | 7280 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
6745 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' | 7281 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' |
6746 6747 # Commands to make compiler produce verbose output that lists 6748 # what "hidden" libraries, object files and flags are used when 6749 # linking a shared library. 6750 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 6751 else | 7282 7283 # Commands to make compiler produce verbose output that lists 7284 # what "hidden" libraries, object files and flags are used when 7285 # linking a shared library. 7286 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 7287 else |
6752 # g++ 2.7 appears to require `-G' NOT `-shared' on this | 7288 # g++ 2.7 appears to require '-G' NOT '-shared' on this |
6753 # platform. | 7289 # platform. |
6754 _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | 7290 _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' |
6755 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | 7291 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
6756 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' | 7292 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' |
6757 6758 # Commands to make compiler produce verbose output that lists 6759 # what "hidden" libraries, object files and flags are used when 6760 # linking a shared library. 6761 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 6762 fi 6763 | 7293 7294 # Commands to make compiler produce verbose output that lists 7295 # what "hidden" libraries, object files and flags are used when 7296 # linking a shared library. 7297 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 7298 fi 7299 |
6764 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' | 7300 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $wl$libdir' |
6765 case $host_os in 6766 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 6767 *) | 7301 case $host_os in 7302 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 7303 *) |
6768 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | 7304 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' |
6769 ;; 6770 esac 6771 fi 6772 ;; 6773 esac 6774 ;; 6775 6776 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) | 7305 ;; 7306 esac 7307 fi 7308 ;; 7309 esac 7310 ;; 7311 7312 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) |
6777 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' | 7313 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text' |
6778 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 6779 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6780 runpath_var='LD_RUN_PATH' 6781 6782 case $cc_basename in 6783 CC*) | 7314 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 7315 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7316 runpath_var='LD_RUN_PATH' 7317 7318 case $cc_basename in 7319 CC*) |
6784 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6785 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | 7320 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7321 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
6786 ;; 6787 *) | 7322 ;; 7323 *) |
6788 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6789 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | 7324 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7325 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
6790 ;; 6791 esac 6792 ;; 6793 6794 sysv5* | sco3.2v5* | sco5v6*) | 7326 ;; 7327 esac 7328 ;; 7329 7330 sysv5* | sco3.2v5* | sco5v6*) |
6795 # Note: We can NOT use -z defs as we might desire, because we do not | 7331 # Note: We CANNOT use -z defs as we might desire, because we do not |
6796 # link with -lc, and that would cause any symbols used from libc to 6797 # always be unresolved, which means just about no library would 6798 # ever link correctly. If we're not using GNU ld we use -z text 6799 # though, which does catch some bad symbols but isn't as heavy-handed 6800 # as -z defs. | 7332 # link with -lc, and that would cause any symbols used from libc to 7333 # always be unresolved, which means just about no library would 7334 # ever link correctly. If we're not using GNU ld we use -z text 7335 # though, which does catch some bad symbols but isn't as heavy-handed 7336 # as -z defs. |
6801 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 6802 _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' | 7337 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text' 7338 _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs' |
6803 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 6804 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | 7339 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 7340 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
6805 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir' | 7341 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir' |
6806 _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 6807 _LT_TAGVAR(link_all_deplibs, $1)=yes | 7342 _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 7343 _LT_TAGVAR(link_all_deplibs, $1)=yes |
6808 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' | 7344 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport' |
6809 runpath_var='LD_RUN_PATH' 6810 6811 case $cc_basename in 6812 CC*) | 7345 runpath_var='LD_RUN_PATH' 7346 7347 case $cc_basename in 7348 CC*) |
6813 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6814 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | 7349 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7350 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
6815 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~ | 7351 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~ |
6816 '"$_LT_TAGVAR(old_archive_cmds, $1)" | 7352 '"$_LT_TAGVAR(old_archive_cmds, $1)" |
6817 _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~ | 7353 _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~ |
6818 '"$_LT_TAGVAR(reload_cmds, $1)" | 7354 '"$_LT_TAGVAR(reload_cmds, $1)" |
6819 ;; 6820 *) | 7355 ;; 7356 *) |
6821 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6822 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | 7357 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7358 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
6823 ;; 6824 esac 6825 ;; 6826 6827 tandem*) 6828 case $cc_basename in 6829 NCC*) 6830 # NonStop-UX NCC 3.20 --- 14 unchanged lines hidden (view full) --- 6845 6846 *) 6847 # FIXME: insert proper C++ library support 6848 _LT_TAGVAR(ld_shlibs, $1)=no 6849 ;; 6850 esac 6851 6852 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) | 7359 ;; 7360 esac 7361 ;; 7362 7363 tandem*) 7364 case $cc_basename in 7365 NCC*) 7366 # NonStop-UX NCC 3.20 --- 14 unchanged lines hidden (view full) --- 7381 7382 *) 7383 # FIXME: insert proper C++ library support 7384 _LT_TAGVAR(ld_shlibs, $1)=no 7385 ;; 7386 esac 7387 7388 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) |
6853 test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no | 7389 test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no |
6854 | 7390 |
6855 _LT_TAGVAR(GCC, $1)="$GXX" 6856 _LT_TAGVAR(LD, $1)="$LD" | 7391 _LT_TAGVAR(GCC, $1)=$GXX 7392 _LT_TAGVAR(LD, $1)=$LD |
6857 6858 ## CAVEAT EMPTOR: 6859 ## There is no encapsulation within the following macros, do not change 6860 ## the running order or otherwise move them around unless you know exactly 6861 ## what you are doing... 6862 _LT_SYS_HIDDEN_LIBDEPS($1) 6863 _LT_COMPILER_PIC($1) 6864 _LT_COMPILER_C_O($1) --- 10 unchanged lines hidden (view full) --- 6875 LDCXX=$LD 6876 LD=$lt_save_LD 6877 GCC=$lt_save_GCC 6878 with_gnu_ld=$lt_save_with_gnu_ld 6879 lt_cv_path_LDCXX=$lt_cv_path_LD 6880 lt_cv_path_LD=$lt_save_path_LD 6881 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 6882 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld | 7393 7394 ## CAVEAT EMPTOR: 7395 ## There is no encapsulation within the following macros, do not change 7396 ## the running order or otherwise move them around unless you know exactly 7397 ## what you are doing... 7398 _LT_SYS_HIDDEN_LIBDEPS($1) 7399 _LT_COMPILER_PIC($1) 7400 _LT_COMPILER_C_O($1) --- 10 unchanged lines hidden (view full) --- 7411 LDCXX=$LD 7412 LD=$lt_save_LD 7413 GCC=$lt_save_GCC 7414 with_gnu_ld=$lt_save_with_gnu_ld 7415 lt_cv_path_LDCXX=$lt_cv_path_LD 7416 lt_cv_path_LD=$lt_save_path_LD 7417 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 7418 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
6883fi # test "$_lt_caught_CXX_error" != yes | 7419fi # test yes != "$_lt_caught_CXX_error" |
6884 6885AC_LANG_POP 6886])# _LT_LANG_CXX_CONFIG 6887 6888 6889# _LT_FUNC_STRIPNAME_CNF 6890# ---------------------- 6891# func_stripname_cnf prefix suffix name --- 5 unchanged lines hidden (view full) --- 6897# This function is identical to the (non-XSI) version of func_stripname, 6898# except this one can be used by m4 code that may be executed by configure, 6899# rather than the libtool script. 6900m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl 6901AC_REQUIRE([_LT_DECL_SED]) 6902AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH]) 6903func_stripname_cnf () 6904{ | 7420 7421AC_LANG_POP 7422])# _LT_LANG_CXX_CONFIG 7423 7424 7425# _LT_FUNC_STRIPNAME_CNF 7426# ---------------------- 7427# func_stripname_cnf prefix suffix name --- 5 unchanged lines hidden (view full) --- 7433# This function is identical to the (non-XSI) version of func_stripname, 7434# except this one can be used by m4 code that may be executed by configure, 7435# rather than the libtool script. 7436m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl 7437AC_REQUIRE([_LT_DECL_SED]) 7438AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH]) 7439func_stripname_cnf () 7440{ |
6905 case ${2} in 6906 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 6907 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; | 7441 case @S|@2 in 7442 .*) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%\\\\@S|@2\$%%"`;; 7443 *) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%@S|@2\$%%"`;; |
6908 esac 6909} # func_stripname_cnf 6910])# _LT_FUNC_STRIPNAME_CNF 6911 | 7444 esac 7445} # func_stripname_cnf 7446])# _LT_FUNC_STRIPNAME_CNF 7447 |
7448 |
|
6912# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME]) 6913# --------------------------------- 6914# Figure out "hidden" library dependencies from verbose 6915# compiler output when linking a shared library. 6916# Parse the compiler output and extract the necessary 6917# objects, libraries and library flags. 6918m4_defun([_LT_SYS_HIDDEN_LIBDEPS], 6919[m4_require([_LT_FILEUTILS_DEFAULTS])dnl --- 67 unchanged lines hidden (view full) --- 6987 # Parse the compiler output and extract the necessary 6988 # objects, libraries and library flags. 6989 6990 # Sentinel used to keep track of whether or not we are before 6991 # the conftest object file. 6992 pre_test_object_deps_done=no 6993 6994 for p in `eval "$output_verbose_link_cmd"`; do | 7449# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME]) 7450# --------------------------------- 7451# Figure out "hidden" library dependencies from verbose 7452# compiler output when linking a shared library. 7453# Parse the compiler output and extract the necessary 7454# objects, libraries and library flags. 7455m4_defun([_LT_SYS_HIDDEN_LIBDEPS], 7456[m4_require([_LT_FILEUTILS_DEFAULTS])dnl --- 67 unchanged lines hidden (view full) --- 7524 # Parse the compiler output and extract the necessary 7525 # objects, libraries and library flags. 7526 7527 # Sentinel used to keep track of whether or not we are before 7528 # the conftest object file. 7529 pre_test_object_deps_done=no 7530 7531 for p in `eval "$output_verbose_link_cmd"`; do |
6995 case ${prev}${p} in | 7532 case $prev$p in |
6996 6997 -L* | -R* | -l*) 6998 # Some compilers place space between "-{L,R}" and the path. 6999 # Remove the space. | 7533 7534 -L* | -R* | -l*) 7535 # Some compilers place space between "-{L,R}" and the path. 7536 # Remove the space. |
7000 if test $p = "-L" || 7001 test $p = "-R"; then | 7537 if test x-L = "$p" || 7538 test x-R = "$p"; then |
7002 prev=$p 7003 continue 7004 fi 7005 7006 # Expand the sysroot to ease extracting the directories later. 7007 if test -z "$prev"; then 7008 case $p in 7009 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 7010 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 7011 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 7012 esac 7013 fi 7014 case $p in 7015 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 7016 esac | 7539 prev=$p 7540 continue 7541 fi 7542 7543 # Expand the sysroot to ease extracting the directories later. 7544 if test -z "$prev"; then 7545 case $p in 7546 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 7547 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 7548 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 7549 esac 7550 fi 7551 case $p in 7552 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 7553 esac |
7017 if test "$pre_test_object_deps_done" = no; then 7018 case ${prev} in | 7554 if test no = "$pre_test_object_deps_done"; then 7555 case $prev in |
7019 -L | -R) 7020 # Internal compiler library paths should come after those 7021 # provided the user. The postdeps already come after the 7022 # user supplied libs so there is no need to process them. 7023 if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then | 7556 -L | -R) 7557 # Internal compiler library paths should come after those 7558 # provided the user. The postdeps already come after the 7559 # user supplied libs so there is no need to process them. 7560 if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then |
7024 _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}" | 7561 _LT_TAGVAR(compiler_lib_search_path, $1)=$prev$p |
7025 else | 7562 else |
7026 _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}" | 7563 _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} $prev$p" |
7027 fi 7028 ;; 7029 # The "-l" case would never come before the object being 7030 # linked, so don't bother handling this case. 7031 esac 7032 else 7033 if test -z "$_LT_TAGVAR(postdeps, $1)"; then | 7564 fi 7565 ;; 7566 # The "-l" case would never come before the object being 7567 # linked, so don't bother handling this case. 7568 esac 7569 else 7570 if test -z "$_LT_TAGVAR(postdeps, $1)"; then |
7034 _LT_TAGVAR(postdeps, $1)="${prev}${p}" | 7571 _LT_TAGVAR(postdeps, $1)=$prev$p |
7035 else | 7572 else |
7036 _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}" | 7573 _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} $prev$p" |
7037 fi 7038 fi 7039 prev= 7040 ;; 7041 7042 *.lto.$objext) ;; # Ignore GCC LTO objects 7043 *.$objext) 7044 # This assumes that the test object file only shows up 7045 # once in the compiler output. 7046 if test "$p" = "conftest.$objext"; then 7047 pre_test_object_deps_done=yes 7048 continue 7049 fi 7050 | 7574 fi 7575 fi 7576 prev= 7577 ;; 7578 7579 *.lto.$objext) ;; # Ignore GCC LTO objects 7580 *.$objext) 7581 # This assumes that the test object file only shows up 7582 # once in the compiler output. 7583 if test "$p" = "conftest.$objext"; then 7584 pre_test_object_deps_done=yes 7585 continue 7586 fi 7587 |
7051 if test "$pre_test_object_deps_done" = no; then | 7588 if test no = "$pre_test_object_deps_done"; then |
7052 if test -z "$_LT_TAGVAR(predep_objects, $1)"; then | 7589 if test -z "$_LT_TAGVAR(predep_objects, $1)"; then |
7053 _LT_TAGVAR(predep_objects, $1)="$p" | 7590 _LT_TAGVAR(predep_objects, $1)=$p |
7054 else 7055 _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p" 7056 fi 7057 else 7058 if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then | 7591 else 7592 _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p" 7593 fi 7594 else 7595 if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then |
7059 _LT_TAGVAR(postdep_objects, $1)="$p" | 7596 _LT_TAGVAR(postdep_objects, $1)=$p |
7060 else 7061 _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p" 7062 fi 7063 fi 7064 ;; 7065 7066 *) ;; # Ignore the rest. 7067 --- 14 unchanged lines hidden (view full) --- 7082[case $host_os in 7083interix[[3-9]]*) 7084 # Interix 3.5 installs completely hosed .la files for C++, so rather than 7085 # hack all around it, let's just trust "g++" to DTRT. 7086 _LT_TAGVAR(predep_objects,$1)= 7087 _LT_TAGVAR(postdep_objects,$1)= 7088 _LT_TAGVAR(postdeps,$1)= 7089 ;; | 7597 else 7598 _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p" 7599 fi 7600 fi 7601 ;; 7602 7603 *) ;; # Ignore the rest. 7604 --- 14 unchanged lines hidden (view full) --- 7619[case $host_os in 7620interix[[3-9]]*) 7621 # Interix 3.5 installs completely hosed .la files for C++, so rather than 7622 # hack all around it, let's just trust "g++" to DTRT. 7623 _LT_TAGVAR(predep_objects,$1)= 7624 _LT_TAGVAR(postdep_objects,$1)= 7625 _LT_TAGVAR(postdeps,$1)= 7626 ;; |
7090 7091linux*) 7092 case `$CC -V 2>&1 | sed 5q` in 7093 *Sun\ C*) 7094 # Sun C++ 5.9 7095 7096 # The more standards-conforming stlport4 library is 7097 # incompatible with the Cstd library. Avoid specifying 7098 # it if it's in CXXFLAGS. Ignore libCrun as 7099 # -library=stlport4 depends on it. 7100 case " $CXX $CXXFLAGS " in 7101 *" -library=stlport4 "*) 7102 solaris_use_stlport4=yes 7103 ;; 7104 esac 7105 7106 if test "$solaris_use_stlport4" != yes; then 7107 _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' 7108 fi 7109 ;; 7110 esac 7111 ;; 7112 7113solaris*) 7114 case $cc_basename in 7115 CC* | sunCC*) 7116 # The more standards-conforming stlport4 library is 7117 # incompatible with the Cstd library. Avoid specifying 7118 # it if it's in CXXFLAGS. Ignore libCrun as 7119 # -library=stlport4 depends on it. 7120 case " $CXX $CXXFLAGS " in 7121 *" -library=stlport4 "*) 7122 solaris_use_stlport4=yes 7123 ;; 7124 esac 7125 7126 # Adding this requires a known-good setup of shared libraries for 7127 # Sun compiler versions before 5.6, else PIC objects from an old 7128 # archive will be linked into the output, leading to subtle bugs. 7129 if test "$solaris_use_stlport4" != yes; then 7130 _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' 7131 fi 7132 ;; 7133 esac 7134 ;; | |
7135esac 7136]) 7137 7138case " $_LT_TAGVAR(postdeps, $1) " in 7139*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;; 7140esac 7141 _LT_TAGVAR(compiler_lib_search_dirs, $1)= 7142if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then | 7627esac 7628]) 7629 7630case " $_LT_TAGVAR(postdeps, $1) " in 7631*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;; 7632esac 7633 _LT_TAGVAR(compiler_lib_search_dirs, $1)= 7634if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then |
7143 _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` | 7635 _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | $SED -e 's! -L! !g' -e 's!^ !!'` |
7144fi 7145_LT_TAGDECL([], [compiler_lib_search_dirs], [1], 7146 [The directories searched by this compiler when creating a shared library]) 7147_LT_TAGDECL([], [predep_objects], [1], 7148 [Dependencies to place before and after the objects being linked to 7149 create a shared library]) 7150_LT_TAGDECL([], [postdep_objects], [1]) 7151_LT_TAGDECL([], [predeps], [1]) 7152_LT_TAGDECL([], [postdeps], [1]) 7153_LT_TAGDECL([], [compiler_lib_search_path], [1], 7154 [The library search path used internally by the compiler when linking 7155 a shared library]) 7156])# _LT_SYS_HIDDEN_LIBDEPS 7157 7158 7159# _LT_LANG_F77_CONFIG([TAG]) 7160# -------------------------- 7161# Ensure that the configuration variables for a Fortran 77 compiler are 7162# suitably defined. These variables are subsequently used by _LT_CONFIG | 7636fi 7637_LT_TAGDECL([], [compiler_lib_search_dirs], [1], 7638 [The directories searched by this compiler when creating a shared library]) 7639_LT_TAGDECL([], [predep_objects], [1], 7640 [Dependencies to place before and after the objects being linked to 7641 create a shared library]) 7642_LT_TAGDECL([], [postdep_objects], [1]) 7643_LT_TAGDECL([], [predeps], [1]) 7644_LT_TAGDECL([], [postdeps], [1]) 7645_LT_TAGDECL([], [compiler_lib_search_path], [1], 7646 [The library search path used internally by the compiler when linking 7647 a shared library]) 7648])# _LT_SYS_HIDDEN_LIBDEPS 7649 7650 7651# _LT_LANG_F77_CONFIG([TAG]) 7652# -------------------------- 7653# Ensure that the configuration variables for a Fortran 77 compiler are 7654# suitably defined. These variables are subsequently used by _LT_CONFIG |
7163# to write the compiler configuration to `libtool'. | 7655# to write the compiler configuration to 'libtool'. |
7164m4_defun([_LT_LANG_F77_CONFIG], 7165[AC_LANG_PUSH(Fortran 77) | 7656m4_defun([_LT_LANG_F77_CONFIG], 7657[AC_LANG_PUSH(Fortran 77) |
7166if test -z "$F77" || test "X$F77" = "Xno"; then | 7658if test -z "$F77" || test no = "$F77"; then |
7167 _lt_disable_F77=yes 7168fi 7169 7170_LT_TAGVAR(archive_cmds_need_lc, $1)=no 7171_LT_TAGVAR(allow_undefined_flag, $1)= 7172_LT_TAGVAR(always_export_symbols, $1)=no 7173_LT_TAGVAR(archive_expsym_cmds, $1)= 7174_LT_TAGVAR(export_dynamic_flag_spec, $1)= --- 20 unchanged lines hidden (view full) --- 7195# Object file extension for compiled f77 test sources. 7196objext=o 7197_LT_TAGVAR(objext, $1)=$objext 7198 7199# No sense in running all these tests if we already determined that 7200# the F77 compiler isn't working. Some variables (like enable_shared) 7201# are currently assumed to apply to all compilers on this platform, 7202# and will be corrupted by setting them based on a non-working compiler. | 7659 _lt_disable_F77=yes 7660fi 7661 7662_LT_TAGVAR(archive_cmds_need_lc, $1)=no 7663_LT_TAGVAR(allow_undefined_flag, $1)= 7664_LT_TAGVAR(always_export_symbols, $1)=no 7665_LT_TAGVAR(archive_expsym_cmds, $1)= 7666_LT_TAGVAR(export_dynamic_flag_spec, $1)= --- 20 unchanged lines hidden (view full) --- 7687# Object file extension for compiled f77 test sources. 7688objext=o 7689_LT_TAGVAR(objext, $1)=$objext 7690 7691# No sense in running all these tests if we already determined that 7692# the F77 compiler isn't working. Some variables (like enable_shared) 7693# are currently assumed to apply to all compilers on this platform, 7694# and will be corrupted by setting them based on a non-working compiler. |
7203if test "$_lt_disable_F77" != yes; then | 7695if test yes != "$_lt_disable_F77"; then |
7204 # Code to be used in simple compile tests 7205 lt_simple_compile_test_code="\ 7206 subroutine t 7207 return 7208 end 7209" 7210 7211 # Code to be used in simple link tests --- 5 unchanged lines hidden (view full) --- 7217 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 7218 _LT_TAG_COMPILER 7219 7220 # save warnings/boilerplate of simple test code 7221 _LT_COMPILER_BOILERPLATE 7222 _LT_LINKER_BOILERPLATE 7223 7224 # Allow CC to be a program name with arguments. | 7696 # Code to be used in simple compile tests 7697 lt_simple_compile_test_code="\ 7698 subroutine t 7699 return 7700 end 7701" 7702 7703 # Code to be used in simple link tests --- 5 unchanged lines hidden (view full) --- 7709 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 7710 _LT_TAG_COMPILER 7711 7712 # save warnings/boilerplate of simple test code 7713 _LT_COMPILER_BOILERPLATE 7714 _LT_LINKER_BOILERPLATE 7715 7716 # Allow CC to be a program name with arguments. |
7225 lt_save_CC="$CC" | 7717 lt_save_CC=$CC |
7226 lt_save_GCC=$GCC 7227 lt_save_CFLAGS=$CFLAGS 7228 CC=${F77-"f77"} 7229 CFLAGS=$FFLAGS 7230 compiler=$CC 7231 _LT_TAGVAR(compiler, $1)=$CC 7232 _LT_CC_BASENAME([$compiler]) 7233 GCC=$G77 7234 if test -n "$compiler"; then 7235 AC_MSG_CHECKING([if libtool supports shared libraries]) 7236 AC_MSG_RESULT([$can_build_shared]) 7237 7238 AC_MSG_CHECKING([whether to build shared libraries]) | 7718 lt_save_GCC=$GCC 7719 lt_save_CFLAGS=$CFLAGS 7720 CC=${F77-"f77"} 7721 CFLAGS=$FFLAGS 7722 compiler=$CC 7723 _LT_TAGVAR(compiler, $1)=$CC 7724 _LT_CC_BASENAME([$compiler]) 7725 GCC=$G77 7726 if test -n "$compiler"; then 7727 AC_MSG_CHECKING([if libtool supports shared libraries]) 7728 AC_MSG_RESULT([$can_build_shared]) 7729 7730 AC_MSG_CHECKING([whether to build shared libraries]) |
7239 test "$can_build_shared" = "no" && enable_shared=no | 7731 test no = "$can_build_shared" && enable_shared=no |
7240 7241 # On AIX, shared libraries and static libraries use the same namespace, and 7242 # are all built from PIC. 7243 case $host_os in 7244 aix3*) | 7732 7733 # On AIX, shared libraries and static libraries use the same namespace, and 7734 # are all built from PIC. 7735 case $host_os in 7736 aix3*) |
7245 test "$enable_shared" = yes && enable_static=no | 7737 test yes = "$enable_shared" && enable_static=no |
7246 if test -n "$RANLIB"; then 7247 archive_cmds="$archive_cmds~\$RANLIB \$lib" 7248 postinstall_cmds='$RANLIB $lib' 7249 fi 7250 ;; 7251 aix[[4-9]]*) | 7738 if test -n "$RANLIB"; then 7739 archive_cmds="$archive_cmds~\$RANLIB \$lib" 7740 postinstall_cmds='$RANLIB $lib' 7741 fi 7742 ;; 7743 aix[[4-9]]*) |
7252 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 7253 test "$enable_shared" = yes && enable_static=no | 7744 if test ia64 != "$host_cpu"; then 7745 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 7746 yes,aix,yes) ;; # shared object as lib.so file only 7747 yes,svr4,*) ;; # shared object as lib.so archive member only 7748 yes,*) enable_static=no ;; # shared object in lib.a archive as well 7749 esac |
7254 fi 7255 ;; 7256 esac 7257 AC_MSG_RESULT([$enable_shared]) 7258 7259 AC_MSG_CHECKING([whether to build static libraries]) 7260 # Make sure either enable_shared or enable_static is yes. | 7750 fi 7751 ;; 7752 esac 7753 AC_MSG_RESULT([$enable_shared]) 7754 7755 AC_MSG_CHECKING([whether to build static libraries]) 7756 # Make sure either enable_shared or enable_static is yes. |
7261 test "$enable_shared" = yes || enable_static=yes | 7757 test yes = "$enable_shared" || enable_static=yes |
7262 AC_MSG_RESULT([$enable_static]) 7263 | 7758 AC_MSG_RESULT([$enable_static]) 7759 |
7264 _LT_TAGVAR(GCC, $1)="$G77" 7265 _LT_TAGVAR(LD, $1)="$LD" | 7760 _LT_TAGVAR(GCC, $1)=$G77 7761 _LT_TAGVAR(LD, $1)=$LD |
7266 7267 ## CAVEAT EMPTOR: 7268 ## There is no encapsulation within the following macros, do not change 7269 ## the running order or otherwise move them around unless you know exactly 7270 ## what you are doing... 7271 _LT_COMPILER_PIC($1) 7272 _LT_COMPILER_C_O($1) 7273 _LT_COMPILER_FILE_LOCKS($1) 7274 _LT_LINKER_SHLIBS($1) 7275 _LT_SYS_DYNAMIC_LINKER($1) 7276 _LT_LINKER_HARDCODE_LIBPATH($1) 7277 7278 _LT_CONFIG($1) 7279 fi # test -n "$compiler" 7280 7281 GCC=$lt_save_GCC | 7762 7763 ## CAVEAT EMPTOR: 7764 ## There is no encapsulation within the following macros, do not change 7765 ## the running order or otherwise move them around unless you know exactly 7766 ## what you are doing... 7767 _LT_COMPILER_PIC($1) 7768 _LT_COMPILER_C_O($1) 7769 _LT_COMPILER_FILE_LOCKS($1) 7770 _LT_LINKER_SHLIBS($1) 7771 _LT_SYS_DYNAMIC_LINKER($1) 7772 _LT_LINKER_HARDCODE_LIBPATH($1) 7773 7774 _LT_CONFIG($1) 7775 fi # test -n "$compiler" 7776 7777 GCC=$lt_save_GCC |
7282 CC="$lt_save_CC" 7283 CFLAGS="$lt_save_CFLAGS" 7284fi # test "$_lt_disable_F77" != yes | 7778 CC=$lt_save_CC 7779 CFLAGS=$lt_save_CFLAGS 7780fi # test yes != "$_lt_disable_F77" |
7285 7286AC_LANG_POP 7287])# _LT_LANG_F77_CONFIG 7288 7289 7290# _LT_LANG_FC_CONFIG([TAG]) 7291# ------------------------- 7292# Ensure that the configuration variables for a Fortran compiler are 7293# suitably defined. These variables are subsequently used by _LT_CONFIG | 7781 7782AC_LANG_POP 7783])# _LT_LANG_F77_CONFIG 7784 7785 7786# _LT_LANG_FC_CONFIG([TAG]) 7787# ------------------------- 7788# Ensure that the configuration variables for a Fortran compiler are 7789# suitably defined. These variables are subsequently used by _LT_CONFIG |
7294# to write the compiler configuration to `libtool'. | 7790# to write the compiler configuration to 'libtool'. |
7295m4_defun([_LT_LANG_FC_CONFIG], 7296[AC_LANG_PUSH(Fortran) 7297 | 7791m4_defun([_LT_LANG_FC_CONFIG], 7792[AC_LANG_PUSH(Fortran) 7793 |
7298if test -z "$FC" || test "X$FC" = "Xno"; then | 7794if test -z "$FC" || test no = "$FC"; then |
7299 _lt_disable_FC=yes 7300fi 7301 7302_LT_TAGVAR(archive_cmds_need_lc, $1)=no 7303_LT_TAGVAR(allow_undefined_flag, $1)= 7304_LT_TAGVAR(always_export_symbols, $1)=no 7305_LT_TAGVAR(archive_expsym_cmds, $1)= 7306_LT_TAGVAR(export_dynamic_flag_spec, $1)= --- 20 unchanged lines hidden (view full) --- 7327# Object file extension for compiled fc test sources. 7328objext=o 7329_LT_TAGVAR(objext, $1)=$objext 7330 7331# No sense in running all these tests if we already determined that 7332# the FC compiler isn't working. Some variables (like enable_shared) 7333# are currently assumed to apply to all compilers on this platform, 7334# and will be corrupted by setting them based on a non-working compiler. | 7795 _lt_disable_FC=yes 7796fi 7797 7798_LT_TAGVAR(archive_cmds_need_lc, $1)=no 7799_LT_TAGVAR(allow_undefined_flag, $1)= 7800_LT_TAGVAR(always_export_symbols, $1)=no 7801_LT_TAGVAR(archive_expsym_cmds, $1)= 7802_LT_TAGVAR(export_dynamic_flag_spec, $1)= --- 20 unchanged lines hidden (view full) --- 7823# Object file extension for compiled fc test sources. 7824objext=o 7825_LT_TAGVAR(objext, $1)=$objext 7826 7827# No sense in running all these tests if we already determined that 7828# the FC compiler isn't working. Some variables (like enable_shared) 7829# are currently assumed to apply to all compilers on this platform, 7830# and will be corrupted by setting them based on a non-working compiler. |
7335if test "$_lt_disable_FC" != yes; then | 7831if test yes != "$_lt_disable_FC"; then |
7336 # Code to be used in simple compile tests 7337 lt_simple_compile_test_code="\ 7338 subroutine t 7339 return 7340 end 7341" 7342 7343 # Code to be used in simple link tests --- 5 unchanged lines hidden (view full) --- 7349 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 7350 _LT_TAG_COMPILER 7351 7352 # save warnings/boilerplate of simple test code 7353 _LT_COMPILER_BOILERPLATE 7354 _LT_LINKER_BOILERPLATE 7355 7356 # Allow CC to be a program name with arguments. | 7832 # Code to be used in simple compile tests 7833 lt_simple_compile_test_code="\ 7834 subroutine t 7835 return 7836 end 7837" 7838 7839 # Code to be used in simple link tests --- 5 unchanged lines hidden (view full) --- 7845 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 7846 _LT_TAG_COMPILER 7847 7848 # save warnings/boilerplate of simple test code 7849 _LT_COMPILER_BOILERPLATE 7850 _LT_LINKER_BOILERPLATE 7851 7852 # Allow CC to be a program name with arguments. |
7357 lt_save_CC="$CC" | 7853 lt_save_CC=$CC |
7358 lt_save_GCC=$GCC 7359 lt_save_CFLAGS=$CFLAGS 7360 CC=${FC-"f95"} 7361 CFLAGS=$FCFLAGS 7362 compiler=$CC 7363 GCC=$ac_cv_fc_compiler_gnu 7364 7365 _LT_TAGVAR(compiler, $1)=$CC 7366 _LT_CC_BASENAME([$compiler]) 7367 7368 if test -n "$compiler"; then 7369 AC_MSG_CHECKING([if libtool supports shared libraries]) 7370 AC_MSG_RESULT([$can_build_shared]) 7371 7372 AC_MSG_CHECKING([whether to build shared libraries]) | 7854 lt_save_GCC=$GCC 7855 lt_save_CFLAGS=$CFLAGS 7856 CC=${FC-"f95"} 7857 CFLAGS=$FCFLAGS 7858 compiler=$CC 7859 GCC=$ac_cv_fc_compiler_gnu 7860 7861 _LT_TAGVAR(compiler, $1)=$CC 7862 _LT_CC_BASENAME([$compiler]) 7863 7864 if test -n "$compiler"; then 7865 AC_MSG_CHECKING([if libtool supports shared libraries]) 7866 AC_MSG_RESULT([$can_build_shared]) 7867 7868 AC_MSG_CHECKING([whether to build shared libraries]) |
7373 test "$can_build_shared" = "no" && enable_shared=no | 7869 test no = "$can_build_shared" && enable_shared=no |
7374 7375 # On AIX, shared libraries and static libraries use the same namespace, and 7376 # are all built from PIC. 7377 case $host_os in 7378 aix3*) | 7870 7871 # On AIX, shared libraries and static libraries use the same namespace, and 7872 # are all built from PIC. 7873 case $host_os in 7874 aix3*) |
7379 test "$enable_shared" = yes && enable_static=no | 7875 test yes = "$enable_shared" && enable_static=no |
7380 if test -n "$RANLIB"; then 7381 archive_cmds="$archive_cmds~\$RANLIB \$lib" 7382 postinstall_cmds='$RANLIB $lib' 7383 fi 7384 ;; 7385 aix[[4-9]]*) | 7876 if test -n "$RANLIB"; then 7877 archive_cmds="$archive_cmds~\$RANLIB \$lib" 7878 postinstall_cmds='$RANLIB $lib' 7879 fi 7880 ;; 7881 aix[[4-9]]*) |
7386 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 7387 test "$enable_shared" = yes && enable_static=no | 7882 if test ia64 != "$host_cpu"; then 7883 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 7884 yes,aix,yes) ;; # shared object as lib.so file only 7885 yes,svr4,*) ;; # shared object as lib.so archive member only 7886 yes,*) enable_static=no ;; # shared object in lib.a archive as well 7887 esac |
7388 fi 7389 ;; 7390 esac 7391 AC_MSG_RESULT([$enable_shared]) 7392 7393 AC_MSG_CHECKING([whether to build static libraries]) 7394 # Make sure either enable_shared or enable_static is yes. | 7888 fi 7889 ;; 7890 esac 7891 AC_MSG_RESULT([$enable_shared]) 7892 7893 AC_MSG_CHECKING([whether to build static libraries]) 7894 # Make sure either enable_shared or enable_static is yes. |
7395 test "$enable_shared" = yes || enable_static=yes | 7895 test yes = "$enable_shared" || enable_static=yes |
7396 AC_MSG_RESULT([$enable_static]) 7397 | 7896 AC_MSG_RESULT([$enable_static]) 7897 |
7398 _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu" 7399 _LT_TAGVAR(LD, $1)="$LD" | 7898 _LT_TAGVAR(GCC, $1)=$ac_cv_fc_compiler_gnu 7899 _LT_TAGVAR(LD, $1)=$LD |
7400 7401 ## CAVEAT EMPTOR: 7402 ## There is no encapsulation within the following macros, do not change 7403 ## the running order or otherwise move them around unless you know exactly 7404 ## what you are doing... 7405 _LT_SYS_HIDDEN_LIBDEPS($1) 7406 _LT_COMPILER_PIC($1) 7407 _LT_COMPILER_C_O($1) 7408 _LT_COMPILER_FILE_LOCKS($1) 7409 _LT_LINKER_SHLIBS($1) 7410 _LT_SYS_DYNAMIC_LINKER($1) 7411 _LT_LINKER_HARDCODE_LIBPATH($1) 7412 7413 _LT_CONFIG($1) 7414 fi # test -n "$compiler" 7415 7416 GCC=$lt_save_GCC 7417 CC=$lt_save_CC 7418 CFLAGS=$lt_save_CFLAGS | 7900 7901 ## CAVEAT EMPTOR: 7902 ## There is no encapsulation within the following macros, do not change 7903 ## the running order or otherwise move them around unless you know exactly 7904 ## what you are doing... 7905 _LT_SYS_HIDDEN_LIBDEPS($1) 7906 _LT_COMPILER_PIC($1) 7907 _LT_COMPILER_C_O($1) 7908 _LT_COMPILER_FILE_LOCKS($1) 7909 _LT_LINKER_SHLIBS($1) 7910 _LT_SYS_DYNAMIC_LINKER($1) 7911 _LT_LINKER_HARDCODE_LIBPATH($1) 7912 7913 _LT_CONFIG($1) 7914 fi # test -n "$compiler" 7915 7916 GCC=$lt_save_GCC 7917 CC=$lt_save_CC 7918 CFLAGS=$lt_save_CFLAGS |
7419fi # test "$_lt_disable_FC" != yes | 7919fi # test yes != "$_lt_disable_FC" |
7420 7421AC_LANG_POP 7422])# _LT_LANG_FC_CONFIG 7423 7424 7425# _LT_LANG_GCJ_CONFIG([TAG]) 7426# -------------------------- 7427# Ensure that the configuration variables for the GNU Java Compiler compiler 7428# are suitably defined. These variables are subsequently used by _LT_CONFIG | 7920 7921AC_LANG_POP 7922])# _LT_LANG_FC_CONFIG 7923 7924 7925# _LT_LANG_GCJ_CONFIG([TAG]) 7926# -------------------------- 7927# Ensure that the configuration variables for the GNU Java Compiler compiler 7928# are suitably defined. These variables are subsequently used by _LT_CONFIG |
7429# to write the compiler configuration to `libtool'. | 7929# to write the compiler configuration to 'libtool'. |
7430m4_defun([_LT_LANG_GCJ_CONFIG], 7431[AC_REQUIRE([LT_PROG_GCJ])dnl 7432AC_LANG_SAVE 7433 7434# Source file extension for Java test sources. 7435ac_ext=java 7436 7437# Object file extension for compiled Java test sources. --- 17 unchanged lines hidden (view full) --- 7455lt_save_CC=$CC 7456lt_save_CFLAGS=$CFLAGS 7457lt_save_GCC=$GCC 7458GCC=yes 7459CC=${GCJ-"gcj"} 7460CFLAGS=$GCJFLAGS 7461compiler=$CC 7462_LT_TAGVAR(compiler, $1)=$CC | 7930m4_defun([_LT_LANG_GCJ_CONFIG], 7931[AC_REQUIRE([LT_PROG_GCJ])dnl 7932AC_LANG_SAVE 7933 7934# Source file extension for Java test sources. 7935ac_ext=java 7936 7937# Object file extension for compiled Java test sources. --- 17 unchanged lines hidden (view full) --- 7955lt_save_CC=$CC 7956lt_save_CFLAGS=$CFLAGS 7957lt_save_GCC=$GCC 7958GCC=yes 7959CC=${GCJ-"gcj"} 7960CFLAGS=$GCJFLAGS 7961compiler=$CC 7962_LT_TAGVAR(compiler, $1)=$CC |
7463_LT_TAGVAR(LD, $1)="$LD" | 7963_LT_TAGVAR(LD, $1)=$LD |
7464_LT_CC_BASENAME([$compiler]) 7465 7466# GCJ did not exist at the time GCC didn't implicitly link libc in. 7467_LT_TAGVAR(archive_cmds_need_lc, $1)=no 7468 7469_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 7470_LT_TAGVAR(reload_flag, $1)=$reload_flag 7471_LT_TAGVAR(reload_cmds, $1)=$reload_cmds --- 20 unchanged lines hidden (view full) --- 7492CFLAGS=$lt_save_CFLAGS 7493])# _LT_LANG_GCJ_CONFIG 7494 7495 7496# _LT_LANG_GO_CONFIG([TAG]) 7497# -------------------------- 7498# Ensure that the configuration variables for the GNU Go compiler 7499# are suitably defined. These variables are subsequently used by _LT_CONFIG | 7964_LT_CC_BASENAME([$compiler]) 7965 7966# GCJ did not exist at the time GCC didn't implicitly link libc in. 7967_LT_TAGVAR(archive_cmds_need_lc, $1)=no 7968 7969_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 7970_LT_TAGVAR(reload_flag, $1)=$reload_flag 7971_LT_TAGVAR(reload_cmds, $1)=$reload_cmds --- 20 unchanged lines hidden (view full) --- 7992CFLAGS=$lt_save_CFLAGS 7993])# _LT_LANG_GCJ_CONFIG 7994 7995 7996# _LT_LANG_GO_CONFIG([TAG]) 7997# -------------------------- 7998# Ensure that the configuration variables for the GNU Go compiler 7999# are suitably defined. These variables are subsequently used by _LT_CONFIG |
7500# to write the compiler configuration to `libtool'. | 8000# to write the compiler configuration to 'libtool'. |
7501m4_defun([_LT_LANG_GO_CONFIG], 7502[AC_REQUIRE([LT_PROG_GO])dnl 7503AC_LANG_SAVE 7504 7505# Source file extension for Go test sources. 7506ac_ext=go 7507 7508# Object file extension for compiled Go test sources. --- 17 unchanged lines hidden (view full) --- 7526lt_save_CC=$CC 7527lt_save_CFLAGS=$CFLAGS 7528lt_save_GCC=$GCC 7529GCC=yes 7530CC=${GOC-"gccgo"} 7531CFLAGS=$GOFLAGS 7532compiler=$CC 7533_LT_TAGVAR(compiler, $1)=$CC | 8001m4_defun([_LT_LANG_GO_CONFIG], 8002[AC_REQUIRE([LT_PROG_GO])dnl 8003AC_LANG_SAVE 8004 8005# Source file extension for Go test sources. 8006ac_ext=go 8007 8008# Object file extension for compiled Go test sources. --- 17 unchanged lines hidden (view full) --- 8026lt_save_CC=$CC 8027lt_save_CFLAGS=$CFLAGS 8028lt_save_GCC=$GCC 8029GCC=yes 8030CC=${GOC-"gccgo"} 8031CFLAGS=$GOFLAGS 8032compiler=$CC 8033_LT_TAGVAR(compiler, $1)=$CC |
7534_LT_TAGVAR(LD, $1)="$LD" | 8034_LT_TAGVAR(LD, $1)=$LD |
7535_LT_CC_BASENAME([$compiler]) 7536 7537# Go did not exist at the time GCC didn't implicitly link libc in. 7538_LT_TAGVAR(archive_cmds_need_lc, $1)=no 7539 7540_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 7541_LT_TAGVAR(reload_flag, $1)=$reload_flag 7542_LT_TAGVAR(reload_cmds, $1)=$reload_cmds --- 20 unchanged lines hidden (view full) --- 7563CFLAGS=$lt_save_CFLAGS 7564])# _LT_LANG_GO_CONFIG 7565 7566 7567# _LT_LANG_RC_CONFIG([TAG]) 7568# ------------------------- 7569# Ensure that the configuration variables for the Windows resource compiler 7570# are suitably defined. These variables are subsequently used by _LT_CONFIG | 8035_LT_CC_BASENAME([$compiler]) 8036 8037# Go did not exist at the time GCC didn't implicitly link libc in. 8038_LT_TAGVAR(archive_cmds_need_lc, $1)=no 8039 8040_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 8041_LT_TAGVAR(reload_flag, $1)=$reload_flag 8042_LT_TAGVAR(reload_cmds, $1)=$reload_cmds --- 20 unchanged lines hidden (view full) --- 8063CFLAGS=$lt_save_CFLAGS 8064])# _LT_LANG_GO_CONFIG 8065 8066 8067# _LT_LANG_RC_CONFIG([TAG]) 8068# ------------------------- 8069# Ensure that the configuration variables for the Windows resource compiler 8070# are suitably defined. These variables are subsequently used by _LT_CONFIG |
7571# to write the compiler configuration to `libtool'. | 8071# to write the compiler configuration to 'libtool'. |
7572m4_defun([_LT_LANG_RC_CONFIG], 7573[AC_REQUIRE([LT_PROG_RC])dnl 7574AC_LANG_SAVE 7575 7576# Source file extension for RC test sources. 7577ac_ext=rc 7578 7579# Object file extension for compiled RC test sources. 7580objext=o 7581_LT_TAGVAR(objext, $1)=$objext 7582 7583# Code to be used in simple compile tests 7584lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' 7585 7586# Code to be used in simple link tests | 8072m4_defun([_LT_LANG_RC_CONFIG], 8073[AC_REQUIRE([LT_PROG_RC])dnl 8074AC_LANG_SAVE 8075 8076# Source file extension for RC test sources. 8077ac_ext=rc 8078 8079# Object file extension for compiled RC test sources. 8080objext=o 8081_LT_TAGVAR(objext, $1)=$objext 8082 8083# Code to be used in simple compile tests 8084lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' 8085 8086# Code to be used in simple link tests |
7587lt_simple_link_test_code="$lt_simple_compile_test_code" | 8087lt_simple_link_test_code=$lt_simple_compile_test_code |
7588 7589# ltmain only uses $CC for tagged configurations so make sure $CC is set. 7590_LT_TAG_COMPILER 7591 7592# save warnings/boilerplate of simple test code 7593_LT_COMPILER_BOILERPLATE 7594_LT_LINKER_BOILERPLATE 7595 7596# Allow CC to be a program name with arguments. | 8088 8089# ltmain only uses $CC for tagged configurations so make sure $CC is set. 8090_LT_TAG_COMPILER 8091 8092# save warnings/boilerplate of simple test code 8093_LT_COMPILER_BOILERPLATE 8094_LT_LINKER_BOILERPLATE 8095 8096# Allow CC to be a program name with arguments. |
7597lt_save_CC="$CC" | 8097lt_save_CC=$CC |
7598lt_save_CFLAGS=$CFLAGS 7599lt_save_GCC=$GCC 7600GCC= 7601CC=${RC-"windres"} 7602CFLAGS= 7603compiler=$CC 7604_LT_TAGVAR(compiler, $1)=$CC 7605_LT_CC_BASENAME([$compiler]) --- 12 unchanged lines hidden (view full) --- 7618 7619 7620# LT_PROG_GCJ 7621# ----------- 7622AC_DEFUN([LT_PROG_GCJ], 7623[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ], 7624 [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ], 7625 [AC_CHECK_TOOL(GCJ, gcj,) | 8098lt_save_CFLAGS=$CFLAGS 8099lt_save_GCC=$GCC 8100GCC= 8101CC=${RC-"windres"} 8102CFLAGS= 8103compiler=$CC 8104_LT_TAGVAR(compiler, $1)=$CC 8105_LT_CC_BASENAME([$compiler]) --- 12 unchanged lines hidden (view full) --- 8118 8119 8120# LT_PROG_GCJ 8121# ----------- 8122AC_DEFUN([LT_PROG_GCJ], 8123[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ], 8124 [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ], 8125 [AC_CHECK_TOOL(GCJ, gcj,) |
7626 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2" | 8126 test set = "${GCJFLAGS+set}" || GCJFLAGS="-g -O2" |
7627 AC_SUBST(GCJFLAGS)])])[]dnl 7628]) 7629 7630# Old name: 7631AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ]) 7632dnl aclocal-1.4 backwards compatibility: 7633dnl AC_DEFUN([LT_AC_PROG_GCJ], []) 7634 --- 94 unchanged lines hidden (view full) --- 7729 done 7730done 7731IFS=$as_save_IFS 7732lt_ac_max=0 7733lt_ac_count=0 7734# Add /usr/xpg4/bin/sed as it is typically found on Solaris 7735# along with /bin/sed that truncates output. 7736for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do | 8127 AC_SUBST(GCJFLAGS)])])[]dnl 8128]) 8129 8130# Old name: 8131AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ]) 8132dnl aclocal-1.4 backwards compatibility: 8133dnl AC_DEFUN([LT_AC_PROG_GCJ], []) 8134 --- 94 unchanged lines hidden (view full) --- 8229 done 8230done 8231IFS=$as_save_IFS 8232lt_ac_max=0 8233lt_ac_count=0 8234# Add /usr/xpg4/bin/sed as it is typically found on Solaris 8235# along with /bin/sed that truncates output. 8236for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do |
7737 test ! -f $lt_ac_sed && continue | 8237 test ! -f "$lt_ac_sed" && continue |
7738 cat /dev/null > conftest.in 7739 lt_ac_count=0 7740 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 7741 # Check for GNU sed and select it if it is found. 7742 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 7743 lt_cv_path_SED=$lt_ac_sed 7744 break 7745 fi 7746 while true; do 7747 cat conftest.in conftest.in >conftest.tmp 7748 mv conftest.tmp conftest.in 7749 cp conftest.in conftest.nl 7750 echo >>conftest.nl 7751 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 7752 cmp -s conftest.out conftest.nl || break 7753 # 10000 chars as input seems more than enough | 8238 cat /dev/null > conftest.in 8239 lt_ac_count=0 8240 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 8241 # Check for GNU sed and select it if it is found. 8242 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 8243 lt_cv_path_SED=$lt_ac_sed 8244 break 8245 fi 8246 while true; do 8247 cat conftest.in conftest.in >conftest.tmp 8248 mv conftest.tmp conftest.in 8249 cp conftest.in conftest.nl 8250 echo >>conftest.nl 8251 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 8252 cmp -s conftest.out conftest.nl || break 8253 # 10000 chars as input seems more than enough |
7754 test $lt_ac_count -gt 10 && break | 8254 test 10 -lt "$lt_ac_count" && break |
7755 lt_ac_count=`expr $lt_ac_count + 1` | 8255 lt_ac_count=`expr $lt_ac_count + 1` |
7756 if test $lt_ac_count -gt $lt_ac_max; then | 8256 if test "$lt_ac_count" -gt "$lt_ac_max"; then |
7757 lt_ac_max=$lt_ac_count 7758 lt_cv_path_SED=$lt_ac_sed 7759 fi 7760 done 7761done 7762]) 7763SED=$lt_cv_path_SED 7764AC_SUBST([SED]) --- 7 unchanged lines hidden (view full) --- 7772dnl AC_DEFUN([LT_AC_PROG_SED], []) 7773 7774 7775# _LT_CHECK_SHELL_FEATURES 7776# ------------------------ 7777# Find out whether the shell is Bourne or XSI compatible, 7778# or has some other useful features. 7779m4_defun([_LT_CHECK_SHELL_FEATURES], | 8257 lt_ac_max=$lt_ac_count 8258 lt_cv_path_SED=$lt_ac_sed 8259 fi 8260 done 8261done 8262]) 8263SED=$lt_cv_path_SED 8264AC_SUBST([SED]) --- 7 unchanged lines hidden (view full) --- 8272dnl AC_DEFUN([LT_AC_PROG_SED], []) 8273 8274 8275# _LT_CHECK_SHELL_FEATURES 8276# ------------------------ 8277# Find out whether the shell is Bourne or XSI compatible, 8278# or has some other useful features. 8279m4_defun([_LT_CHECK_SHELL_FEATURES], |
7780[AC_MSG_CHECKING([whether the shell understands some XSI constructs]) 7781# Try some XSI features 7782xsi_shell=no 7783( _lt_dummy="a/b/c" 7784 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 7785 = c,a/b,b/c, \ 7786 && eval 'test $(( 1 + 1 )) -eq 2 \ 7787 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 7788 && xsi_shell=yes 7789AC_MSG_RESULT([$xsi_shell]) 7790_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell']) 7791 7792AC_MSG_CHECKING([whether the shell understands "+="]) 7793lt_shell_append=no 7794( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \ 7795 >/dev/null 2>&1 \ 7796 && lt_shell_append=yes 7797AC_MSG_RESULT([$lt_shell_append]) 7798_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append']) 7799 7800if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | 8280[if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
7801 lt_unset=unset 7802else 7803 lt_unset=false 7804fi 7805_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl 7806 7807# test EBCDIC or ASCII 7808case `echo X|tr X '\101'` in --- 7 unchanged lines hidden (view full) --- 7816 lt_NL2SP='tr \r\n \100\100' 7817 ;; 7818esac 7819_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl 7820_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl 7821])# _LT_CHECK_SHELL_FEATURES 7822 7823 | 8281 lt_unset=unset 8282else 8283 lt_unset=false 8284fi 8285_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl 8286 8287# test EBCDIC or ASCII 8288case `echo X|tr X '\101'` in --- 7 unchanged lines hidden (view full) --- 8296 lt_NL2SP='tr \r\n \100\100' 8297 ;; 8298esac 8299_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl 8300_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl 8301])# _LT_CHECK_SHELL_FEATURES 8302 8303 |
7824# _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY) 7825# ------------------------------------------------------ 7826# In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and 7827# '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY. 7828m4_defun([_LT_PROG_FUNCTION_REPLACE], 7829[dnl { 7830sed -e '/^$1 ()$/,/^} # $1 /c\ 7831$1 ()\ 7832{\ 7833m4_bpatsubsts([$2], [$], [\\], [^\([ ]\)], [\\\1]) 7834} # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \ 7835 && mv -f "$cfgfile.tmp" "$cfgfile" \ 7836 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 7837test 0 -eq $? || _lt_function_replace_fail=: 7838]) 7839 7840 7841# _LT_PROG_REPLACE_SHELLFNS 7842# ------------------------- 7843# Replace existing portable implementations of several shell functions with 7844# equivalent extended shell implementations where those features are available.. 7845m4_defun([_LT_PROG_REPLACE_SHELLFNS], 7846[if test x"$xsi_shell" = xyes; then 7847 _LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl 7848 case ${1} in 7849 */*) func_dirname_result="${1%/*}${2}" ;; 7850 * ) func_dirname_result="${3}" ;; 7851 esac]) 7852 7853 _LT_PROG_FUNCTION_REPLACE([func_basename], [dnl 7854 func_basename_result="${1##*/}"]) 7855 7856 _LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl 7857 case ${1} in 7858 */*) func_dirname_result="${1%/*}${2}" ;; 7859 * ) func_dirname_result="${3}" ;; 7860 esac 7861 func_basename_result="${1##*/}"]) 7862 7863 _LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl 7864 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 7865 # positional parameters, so assign one to ordinary parameter first. 7866 func_stripname_result=${3} 7867 func_stripname_result=${func_stripname_result#"${1}"} 7868 func_stripname_result=${func_stripname_result%"${2}"}]) 7869 7870 _LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl 7871 func_split_long_opt_name=${1%%=*} 7872 func_split_long_opt_arg=${1#*=}]) 7873 7874 _LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl 7875 func_split_short_opt_arg=${1#??} 7876 func_split_short_opt_name=${1%"$func_split_short_opt_arg"}]) 7877 7878 _LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl 7879 case ${1} in 7880 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 7881 *) func_lo2o_result=${1} ;; 7882 esac]) 7883 7884 _LT_PROG_FUNCTION_REPLACE([func_xform], [ func_xform_result=${1%.*}.lo]) 7885 7886 _LT_PROG_FUNCTION_REPLACE([func_arith], [ func_arith_result=$(( $[*] ))]) 7887 7888 _LT_PROG_FUNCTION_REPLACE([func_len], [ func_len_result=${#1}]) 7889fi 7890 7891if test x"$lt_shell_append" = xyes; then 7892 _LT_PROG_FUNCTION_REPLACE([func_append], [ eval "${1}+=\\${2}"]) 7893 7894 _LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl 7895 func_quote_for_eval "${2}" 7896dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \ 7897 eval "${1}+=\\\\ \\$func_quote_for_eval_result"]) 7898 7899 # Save a `func_append' function call where possible by direct use of '+=' 7900 sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 7901 && mv -f "$cfgfile.tmp" "$cfgfile" \ 7902 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 7903 test 0 -eq $? || _lt_function_replace_fail=: 7904else 7905 # Save a `func_append' function call even when '+=' is not available 7906 sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 7907 && mv -f "$cfgfile.tmp" "$cfgfile" \ 7908 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 7909 test 0 -eq $? || _lt_function_replace_fail=: 7910fi 7911 7912if test x"$_lt_function_replace_fail" = x":"; then 7913 AC_MSG_WARN([Unable to substitute extended shell functions in $ofile]) 7914fi 7915]) 7916 | |
7917# _LT_PATH_CONVERSION_FUNCTIONS 7918# ----------------------------- | 8304# _LT_PATH_CONVERSION_FUNCTIONS 8305# ----------------------------- |
7919# Determine which file name conversion functions should be used by | 8306# Determine what file name conversion functions should be used by |
7920# func_to_host_file (and, implicitly, by func_to_host_path). These are needed 7921# for certain cross-compile configurations and native mingw. 7922m4_defun([_LT_PATH_CONVERSION_FUNCTIONS], 7923[AC_REQUIRE([AC_CANONICAL_HOST])dnl 7924AC_REQUIRE([AC_CANONICAL_BUILD])dnl 7925AC_MSG_CHECKING([how to convert $build file names to $host format]) 7926AC_CACHE_VAL(lt_cv_to_host_file_cmd, 7927[case $host in --- 55 unchanged lines hidden --- | 8307# func_to_host_file (and, implicitly, by func_to_host_path). These are needed 8308# for certain cross-compile configurations and native mingw. 8309m4_defun([_LT_PATH_CONVERSION_FUNCTIONS], 8310[AC_REQUIRE([AC_CANONICAL_HOST])dnl 8311AC_REQUIRE([AC_CANONICAL_BUILD])dnl 8312AC_MSG_CHECKING([how to convert $build file names to $host format]) 8313AC_CACHE_VAL(lt_cv_to_host_file_cmd, 8314[case $host in --- 55 unchanged lines hidden --- |