Mercurial > hgrepos > Python2 > PyMuPDF
comparison mupdf-source/thirdparty/lcms2/m4/libtool.m4 @ 2:b50eed0cc0ef upstream
ADD: MuPDF v1.26.7: the MuPDF source as downloaded by a default build of PyMuPDF 1.26.4.
The directory name has changed: no version number in the expanded directory now.
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Mon, 15 Sep 2025 11:43:07 +0200 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 1:1d09e1dec1d9 | 2:b50eed0cc0ef |
|---|---|
| 1 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- | |
| 2 # | |
| 3 # Copyright (C) 1996-2001, 2003-2019, 2021-2022 Free Software | |
| 4 # Foundation, Inc. | |
| 5 # Written by Gordon Matzigkeit, 1996 | |
| 6 # | |
| 7 # This file is free software; the Free Software Foundation gives | |
| 8 # unlimited permission to copy and/or distribute it, with or without | |
| 9 # modifications, as long as this notice is preserved. | |
| 10 | |
| 11 m4_define([_LT_COPYING], [dnl | |
| 12 # Copyright (C) 2014 Free Software Foundation, Inc. | |
| 13 # This is free software; see the source for copying conditions. There is NO | |
| 14 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | |
| 15 | |
| 16 # GNU Libtool is free software; you can redistribute it and/or modify | |
| 17 # it under the terms of the GNU General Public License as published by | |
| 18 # the Free Software Foundation; either version 2 of of the License, or | |
| 19 # (at your option) any later version. | |
| 20 # | |
| 21 # As a special exception to the GNU General Public License, if you | |
| 22 # distribute this file as part of a program or library that is built | |
| 23 # using GNU Libtool, you may include this file under the same | |
| 24 # distribution terms that you use for the rest of that program. | |
| 25 # | |
| 26 # GNU Libtool is distributed in the hope that it will be useful, but | |
| 27 # WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 28 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 29 # GNU General Public License for more details. | |
| 30 # | |
| 31 # You should have received a copy of the GNU General Public License | |
| 32 # along with this program. If not, see <http://www.gnu.org/licenses/>. | |
| 33 ]) | |
| 34 | |
| 35 # serial 59 LT_INIT | |
| 36 | |
| 37 | |
| 38 # LT_PREREQ(VERSION) | |
| 39 # ------------------ | |
| 40 # Complain and exit if this libtool version is less that VERSION. | |
| 41 m4_defun([LT_PREREQ], | |
| 42 [m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1, | |
| 43 [m4_default([$3], | |
| 44 [m4_fatal([Libtool version $1 or higher is required], | |
| 45 63)])], | |
| 46 [$2])]) | |
| 47 | |
| 48 | |
| 49 # _LT_CHECK_BUILDDIR | |
| 50 # ------------------ | |
| 51 # Complain if the absolute build directory name contains unusual characters | |
| 52 m4_defun([_LT_CHECK_BUILDDIR], | |
| 53 [case `pwd` in | |
| 54 *\ * | *\ *) | |
| 55 AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;; | |
| 56 esac | |
| 57 ]) | |
| 58 | |
| 59 | |
| 60 # LT_INIT([OPTIONS]) | |
| 61 # ------------------ | |
| 62 AC_DEFUN([LT_INIT], | |
| 63 [AC_PREREQ([2.62])dnl We use AC_PATH_PROGS_FEATURE_CHECK | |
| 64 AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl | |
| 65 AC_BEFORE([$0], [LT_LANG])dnl | |
| 66 AC_BEFORE([$0], [LT_OUTPUT])dnl | |
| 67 AC_BEFORE([$0], [LTDL_INIT])dnl | |
| 68 m4_require([_LT_CHECK_BUILDDIR])dnl | |
| 69 | |
| 70 dnl Autoconf doesn't catch unexpanded LT_ macros by default: | |
| 71 m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl | |
| 72 m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl | |
| 73 dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4 | |
| 74 dnl unless we require an AC_DEFUNed macro: | |
| 75 AC_REQUIRE([LTOPTIONS_VERSION])dnl | |
| 76 AC_REQUIRE([LTSUGAR_VERSION])dnl | |
| 77 AC_REQUIRE([LTVERSION_VERSION])dnl | |
| 78 AC_REQUIRE([LTOBSOLETE_VERSION])dnl | |
| 79 m4_require([_LT_PROG_LTMAIN])dnl | |
| 80 | |
| 81 _LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}]) | |
| 82 | |
| 83 dnl Parse OPTIONS | |
| 84 _LT_SET_OPTIONS([$0], [$1]) | |
| 85 | |
| 86 # This can be used to rebuild libtool when needed | |
| 87 LIBTOOL_DEPS=$ltmain | |
| 88 | |
| 89 # Always use our own libtool. | |
| 90 LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
| 91 AC_SUBST(LIBTOOL)dnl | |
| 92 | |
| 93 _LT_SETUP | |
| 94 | |
| 95 # Only expand once: | |
| 96 m4_define([LT_INIT]) | |
| 97 ])# LT_INIT | |
| 98 | |
| 99 # Old names: | |
| 100 AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT]) | |
| 101 AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT]) | |
| 102 dnl aclocal-1.4 backwards compatibility: | |
| 103 dnl AC_DEFUN([AC_PROG_LIBTOOL], []) | |
| 104 dnl AC_DEFUN([AM_PROG_LIBTOOL], []) | |
| 105 | |
| 106 | |
| 107 # _LT_PREPARE_CC_BASENAME | |
| 108 # ----------------------- | |
| 109 m4_defun([_LT_PREPARE_CC_BASENAME], [ | |
| 110 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. | |
| 111 func_cc_basename () | |
| 112 { | |
| 113 for cc_temp in @S|@*""; do | |
| 114 case $cc_temp in | |
| 115 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; | |
| 116 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; | |
| 117 \-*) ;; | |
| 118 *) break;; | |
| 119 esac | |
| 120 done | |
| 121 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | |
| 122 } | |
| 123 ])# _LT_PREPARE_CC_BASENAME | |
| 124 | |
| 125 | |
| 126 # _LT_CC_BASENAME(CC) | |
| 127 # ------------------- | |
| 128 # It would be clearer to call AC_REQUIREs from _LT_PREPARE_CC_BASENAME, | |
| 129 # but that macro is also expanded into generated libtool script, which | |
| 130 # arranges for $SED and $ECHO to be set by different means. | |
| 131 m4_defun([_LT_CC_BASENAME], | |
| 132 [m4_require([_LT_PREPARE_CC_BASENAME])dnl | |
| 133 AC_REQUIRE([_LT_DECL_SED])dnl | |
| 134 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl | |
| 135 func_cc_basename $1 | |
| 136 cc_basename=$func_cc_basename_result | |
| 137 ]) | |
| 138 | |
| 139 | |
| 140 # _LT_FILEUTILS_DEFAULTS | |
| 141 # ---------------------- | |
| 142 # It is okay to use these file commands and assume they have been set | |
| 143 # sensibly after 'm4_require([_LT_FILEUTILS_DEFAULTS])'. | |
| 144 m4_defun([_LT_FILEUTILS_DEFAULTS], | |
| 145 [: ${CP="cp -f"} | |
| 146 : ${MV="mv -f"} | |
| 147 : ${RM="rm -f"} | |
| 148 ])# _LT_FILEUTILS_DEFAULTS | |
| 149 | |
| 150 | |
| 151 # _LT_SETUP | |
| 152 # --------- | |
| 153 m4_defun([_LT_SETUP], | |
| 154 [AC_REQUIRE([AC_CANONICAL_HOST])dnl | |
| 155 AC_REQUIRE([AC_CANONICAL_BUILD])dnl | |
| 156 AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl | |
| 157 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl | |
| 158 | |
| 159 _LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl | |
| 160 dnl | |
| 161 _LT_DECL([], [host_alias], [0], [The host system])dnl | |
| 162 _LT_DECL([], [host], [0])dnl | |
| 163 _LT_DECL([], [host_os], [0])dnl | |
| 164 dnl | |
| 165 _LT_DECL([], [build_alias], [0], [The build system])dnl | |
| 166 _LT_DECL([], [build], [0])dnl | |
| 167 _LT_DECL([], [build_os], [0])dnl | |
| 168 dnl | |
| 169 AC_REQUIRE([AC_PROG_CC])dnl | |
| 170 AC_REQUIRE([LT_PATH_LD])dnl | |
| 171 AC_REQUIRE([LT_PATH_NM])dnl | |
| 172 dnl | |
| 173 AC_REQUIRE([AC_PROG_LN_S])dnl | |
| 174 test -z "$LN_S" && LN_S="ln -s" | |
| 175 _LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl | |
| 176 dnl | |
| 177 AC_REQUIRE([LT_CMD_MAX_LEN])dnl | |
| 178 _LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl | |
| 179 _LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl | |
| 180 dnl | |
| 181 m4_require([_LT_FILEUTILS_DEFAULTS])dnl | |
| 182 m4_require([_LT_CHECK_SHELL_FEATURES])dnl | |
| 183 m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl | |
| 184 m4_require([_LT_CMD_RELOAD])dnl | |
| 185 m4_require([_LT_DECL_FILECMD])dnl | |
| 186 m4_require([_LT_CHECK_MAGIC_METHOD])dnl | |
| 187 m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl | |
| 188 m4_require([_LT_CMD_OLD_ARCHIVE])dnl | |
| 189 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl | |
| 190 m4_require([_LT_WITH_SYSROOT])dnl | |
| 191 m4_require([_LT_CMD_TRUNCATE])dnl | |
| 192 | |
| 193 _LT_CONFIG_LIBTOOL_INIT([ | |
| 194 # See if we are running on zsh, and set the options that allow our | |
| 195 # commands through without removal of \ escapes INIT. | |
| 196 if test -n "\${ZSH_VERSION+set}"; then | |
| 197 setopt NO_GLOB_SUBST | |
| 198 fi | |
| 199 ]) | |
| 200 if test -n "${ZSH_VERSION+set}"; then | |
| 201 setopt NO_GLOB_SUBST | |
| 202 fi | |
| 203 | |
| 204 _LT_CHECK_OBJDIR | |
| 205 | |
| 206 m4_require([_LT_TAG_COMPILER])dnl | |
| 207 | |
| 208 case $host_os in | |
| 209 aix3*) | |
| 210 # AIX sometimes has problems with the GCC collect2 program. For some | |
| 211 # reason, if we set the COLLECT_NAMES environment variable, the problems | |
| 212 # vanish in a puff of smoke. | |
| 213 if test set != "${COLLECT_NAMES+set}"; then | |
| 214 COLLECT_NAMES= | |
| 215 export COLLECT_NAMES | |
| 216 fi | |
| 217 ;; | |
| 218 esac | |
| 219 | |
| 220 # Global variables: | |
| 221 ofile=libtool | |
| 222 can_build_shared=yes | |
| 223 | |
| 224 # All known linkers require a '.a' archive for static linking (except MSVC and | |
| 225 # ICC, which need '.lib'). | |
| 226 libext=a | |
| 227 | |
| 228 with_gnu_ld=$lt_cv_prog_gnu_ld | |
| 229 | |
| 230 old_CC=$CC | |
| 231 old_CFLAGS=$CFLAGS | |
| 232 | |
| 233 # Set sane defaults for various variables | |
| 234 test -z "$CC" && CC=cc | |
| 235 test -z "$LTCC" && LTCC=$CC | |
| 236 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
| 237 test -z "$LD" && LD=ld | |
| 238 test -z "$ac_objext" && ac_objext=o | |
| 239 | |
| 240 _LT_CC_BASENAME([$compiler]) | |
| 241 | |
| 242 # Only perform the check for file, if the check method requires it | |
| 243 test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
| 244 case $deplibs_check_method in | |
| 245 file_magic*) | |
| 246 if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
| 247 _LT_PATH_MAGIC | |
| 248 fi | |
| 249 ;; | |
| 250 esac | |
| 251 | |
| 252 # Use C for the default configuration in the libtool script | |
| 253 LT_SUPPORTED_TAG([CC]) | |
| 254 _LT_LANG_C_CONFIG | |
| 255 _LT_LANG_DEFAULT_CONFIG | |
| 256 _LT_CONFIG_COMMANDS | |
| 257 ])# _LT_SETUP | |
| 258 | |
| 259 | |
| 260 # _LT_PREPARE_SED_QUOTE_VARS | |
| 261 # -------------------------- | |
| 262 # Define a few sed substitution that help us do robust quoting. | |
| 263 m4_defun([_LT_PREPARE_SED_QUOTE_VARS], | |
| 264 [# Backslashify metacharacters that are still active within | |
| 265 # double-quoted strings. | |
| 266 sed_quote_subst='s/\([["`$\\]]\)/\\\1/g' | |
| 267 | |
| 268 # Same as above, but do not quote variable references. | |
| 269 double_quote_subst='s/\([["`\\]]\)/\\\1/g' | |
| 270 | |
| 271 # Sed substitution to delay expansion of an escaped shell variable in a | |
| 272 # double_quote_subst'ed string. | |
| 273 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
| 274 | |
| 275 # Sed substitution to delay expansion of an escaped single quote. | |
| 276 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
| 277 | |
| 278 # Sed substitution to avoid accidental globbing in evaled expressions | |
| 279 no_glob_subst='s/\*/\\\*/g' | |
| 280 ]) | |
| 281 | |
| 282 # _LT_PROG_LTMAIN | |
| 283 # --------------- | |
| 284 # Note that this code is called both from 'configure', and 'config.status' | |
| 285 # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably, | |
| 286 # 'config.status' has no value for ac_aux_dir unless we are using Automake, | |
| 287 # so we pass a copy along to make sure it has a sensible value anyway. | |
| 288 m4_defun([_LT_PROG_LTMAIN], | |
| 289 [m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl | |
| 290 _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir']) | |
| 291 ltmain=$ac_aux_dir/ltmain.sh | |
| 292 ])# _LT_PROG_LTMAIN | |
| 293 | |
| 294 | |
| 295 ## ------------------------------------- ## | |
| 296 ## Accumulate code for creating libtool. ## | |
| 297 ## ------------------------------------- ## | |
| 298 | |
| 299 # So that we can recreate a full libtool script including additional | |
| 300 # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS | |
| 301 # in macros and then make a single call at the end using the 'libtool' | |
| 302 # label. | |
| 303 | |
| 304 | |
| 305 # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS]) | |
| 306 # ---------------------------------------- | |
| 307 # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later. | |
| 308 m4_define([_LT_CONFIG_LIBTOOL_INIT], | |
| 309 [m4_ifval([$1], | |
| 310 [m4_append([_LT_OUTPUT_LIBTOOL_INIT], | |
| 311 [$1 | |
| 312 ])])]) | |
| 313 | |
| 314 # Initialize. | |
| 315 m4_define([_LT_OUTPUT_LIBTOOL_INIT]) | |
| 316 | |
| 317 | |
| 318 # _LT_CONFIG_LIBTOOL([COMMANDS]) | |
| 319 # ------------------------------ | |
| 320 # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later. | |
| 321 m4_define([_LT_CONFIG_LIBTOOL], | |
| 322 [m4_ifval([$1], | |
| 323 [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS], | |
| 324 [$1 | |
| 325 ])])]) | |
| 326 | |
| 327 # Initialize. | |
| 328 m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS]) | |
| 329 | |
| 330 | |
| 331 # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS]) | |
| 332 # ----------------------------------------------------- | |
| 333 m4_defun([_LT_CONFIG_SAVE_COMMANDS], | |
| 334 [_LT_CONFIG_LIBTOOL([$1]) | |
| 335 _LT_CONFIG_LIBTOOL_INIT([$2]) | |
| 336 ]) | |
| 337 | |
| 338 | |
| 339 # _LT_FORMAT_COMMENT([COMMENT]) | |
| 340 # ----------------------------- | |
| 341 # Add leading comment marks to the start of each line, and a trailing | |
| 342 # full-stop to the whole comment if one is not present already. | |
| 343 m4_define([_LT_FORMAT_COMMENT], | |
| 344 [m4_ifval([$1], [ | |
| 345 m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])], | |
| 346 [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.]) | |
| 347 )]) | |
| 348 | |
| 349 | |
| 350 | |
| 351 ## ------------------------ ## | |
| 352 ## FIXME: Eliminate VARNAME ## | |
| 353 ## ------------------------ ## | |
| 354 | |
| 355 | |
| 356 # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?]) | |
| 357 # ------------------------------------------------------------------- | |
| 358 # CONFIGNAME is the name given to the value in the libtool script. | |
| 359 # VARNAME is the (base) name used in the configure script. | |
| 360 # VALUE may be 0, 1 or 2 for a computed quote escaped value based on | |
| 361 # VARNAME. Any other value will be used directly. | |
| 362 m4_define([_LT_DECL], | |
| 363 [lt_if_append_uniq([lt_decl_varnames], [$2], [, ], | |
| 364 [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name], | |
| 365 [m4_ifval([$1], [$1], [$2])]) | |
| 366 lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3]) | |
| 367 m4_ifval([$4], | |
| 368 [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])]) | |
| 369 lt_dict_add_subkey([lt_decl_dict], [$2], | |
| 370 [tagged?], [m4_ifval([$5], [yes], [no])])]) | |
| 371 ]) | |
| 372 | |
| 373 | |
| 374 # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION]) | |
| 375 # -------------------------------------------------------- | |
| 376 m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])]) | |
| 377 | |
| 378 | |
| 379 # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...]) | |
| 380 # ------------------------------------------------ | |
| 381 m4_define([lt_decl_tag_varnames], | |
| 382 [_lt_decl_filter([tagged?], [yes], $@)]) | |
| 383 | |
| 384 | |
| 385 # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..]) | |
| 386 # --------------------------------------------------------- | |
| 387 m4_define([_lt_decl_filter], | |
| 388 [m4_case([$#], | |
| 389 [0], [m4_fatal([$0: too few arguments: $#])], | |
| 390 [1], [m4_fatal([$0: too few arguments: $#: $1])], | |
| 391 [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)], | |
| 392 [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)], | |
| 393 [lt_dict_filter([lt_decl_dict], $@)])[]dnl | |
| 394 ]) | |
| 395 | |
| 396 | |
| 397 # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...]) | |
| 398 # -------------------------------------------------- | |
| 399 m4_define([lt_decl_quote_varnames], | |
| 400 [_lt_decl_filter([value], [1], $@)]) | |
| 401 | |
| 402 | |
| 403 # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...]) | |
| 404 # --------------------------------------------------- | |
| 405 m4_define([lt_decl_dquote_varnames], | |
| 406 [_lt_decl_filter([value], [2], $@)]) | |
| 407 | |
| 408 | |
| 409 # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...]) | |
| 410 # --------------------------------------------------- | |
| 411 m4_define([lt_decl_varnames_tagged], | |
| 412 [m4_assert([$# <= 2])dnl | |
| 413 _$0(m4_quote(m4_default([$1], [[, ]])), | |
| 414 m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]), | |
| 415 m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))]) | |
| 416 m4_define([_lt_decl_varnames_tagged], | |
| 417 [m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])]) | |
| 418 | |
| 419 | |
| 420 # lt_decl_all_varnames([SEPARATOR], [VARNAME1...]) | |
| 421 # ------------------------------------------------ | |
| 422 m4_define([lt_decl_all_varnames], | |
| 423 [_$0(m4_quote(m4_default([$1], [[, ]])), | |
| 424 m4_if([$2], [], | |
| 425 m4_quote(lt_decl_varnames), | |
| 426 m4_quote(m4_shift($@))))[]dnl | |
| 427 ]) | |
| 428 m4_define([_lt_decl_all_varnames], | |
| 429 [lt_join($@, lt_decl_varnames_tagged([$1], | |
| 430 lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl | |
| 431 ]) | |
| 432 | |
| 433 | |
| 434 # _LT_CONFIG_STATUS_DECLARE([VARNAME]) | |
| 435 # ------------------------------------ | |
| 436 # Quote a variable value, and forward it to 'config.status' so that its | |
| 437 # declaration there will have the same value as in 'configure'. VARNAME | |
| 438 # must have a single quote delimited value for this to work. | |
| 439 m4_define([_LT_CONFIG_STATUS_DECLARE], | |
| 440 [$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`']) | |
| 441 | |
| 442 | |
| 443 # _LT_CONFIG_STATUS_DECLARATIONS | |
| 444 # ------------------------------ | |
| 445 # We delimit libtool config variables with single quotes, so when | |
| 446 # we write them to config.status, we have to be sure to quote all | |
| 447 # embedded single quotes properly. In configure, this macro expands | |
| 448 # each variable declared with _LT_DECL (and _LT_TAGDECL) into: | |
| 449 # | |
| 450 # <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`' | |
| 451 m4_defun([_LT_CONFIG_STATUS_DECLARATIONS], | |
| 452 [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames), | |
| 453 [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])]) | |
| 454 | |
| 455 | |
| 456 # _LT_LIBTOOL_TAGS | |
| 457 # ---------------- | |
| 458 # Output comment and list of tags supported by the script | |
| 459 m4_defun([_LT_LIBTOOL_TAGS], | |
| 460 [_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl | |
| 461 available_tags='_LT_TAGS'dnl | |
| 462 ]) | |
| 463 | |
| 464 | |
| 465 # _LT_LIBTOOL_DECLARE(VARNAME, [TAG]) | |
| 466 # ----------------------------------- | |
| 467 # Extract the dictionary values for VARNAME (optionally with TAG) and | |
| 468 # expand to a commented shell variable setting: | |
| 469 # | |
| 470 # # Some comment about what VAR is for. | |
| 471 # visible_name=$lt_internal_name | |
| 472 m4_define([_LT_LIBTOOL_DECLARE], | |
| 473 [_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], | |
| 474 [description])))[]dnl | |
| 475 m4_pushdef([_libtool_name], | |
| 476 m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl | |
| 477 m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])), | |
| 478 [0], [_libtool_name=[$]$1], | |
| 479 [1], [_libtool_name=$lt_[]$1], | |
| 480 [2], [_libtool_name=$lt_[]$1], | |
| 481 [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl | |
| 482 m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl | |
| 483 ]) | |
| 484 | |
| 485 | |
| 486 # _LT_LIBTOOL_CONFIG_VARS | |
| 487 # ----------------------- | |
| 488 # Produce commented declarations of non-tagged libtool config variables | |
| 489 # suitable for insertion in the LIBTOOL CONFIG section of the 'libtool' | |
| 490 # script. Tagged libtool config variables (even for the LIBTOOL CONFIG | |
| 491 # section) are produced by _LT_LIBTOOL_TAG_VARS. | |
| 492 m4_defun([_LT_LIBTOOL_CONFIG_VARS], | |
| 493 [m4_foreach([_lt_var], | |
| 494 m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)), | |
| 495 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])]) | |
| 496 | |
| 497 | |
| 498 # _LT_LIBTOOL_TAG_VARS(TAG) | |
| 499 # ------------------------- | |
| 500 m4_define([_LT_LIBTOOL_TAG_VARS], | |
| 501 [m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames), | |
| 502 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])]) | |
| 503 | |
| 504 | |
| 505 # _LT_TAGVAR(VARNAME, [TAGNAME]) | |
| 506 # ------------------------------ | |
| 507 m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])]) | |
| 508 | |
| 509 | |
| 510 # _LT_CONFIG_COMMANDS | |
| 511 # ------------------- | |
| 512 # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of | |
| 513 # variables for single and double quote escaping we saved from calls | |
| 514 # to _LT_DECL, we can put quote escaped variables declarations | |
| 515 # into 'config.status', and then the shell code to quote escape them in | |
| 516 # for loops in 'config.status'. Finally, any additional code accumulated | |
| 517 # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded. | |
| 518 m4_defun([_LT_CONFIG_COMMANDS], | |
| 519 [AC_PROVIDE_IFELSE([LT_OUTPUT], | |
| 520 dnl If the libtool generation code has been placed in $CONFIG_LT, | |
| 521 dnl instead of duplicating it all over again into config.status, | |
| 522 dnl then we will have config.status run $CONFIG_LT later, so it | |
| 523 dnl needs to know what name is stored there: | |
| 524 [AC_CONFIG_COMMANDS([libtool], | |
| 525 [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])], | |
| 526 dnl If the libtool generation code is destined for config.status, | |
| 527 dnl expand the accumulated commands and init code now: | |
| 528 [AC_CONFIG_COMMANDS([libtool], | |
| 529 [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])]) | |
| 530 ])#_LT_CONFIG_COMMANDS | |
| 531 | |
| 532 | |
| 533 # Initialize. | |
| 534 m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT], | |
| 535 [ | |
| 536 | |
| 537 # The HP-UX ksh and POSIX shell print the target directory to stdout | |
| 538 # if CDPATH is set. | |
| 539 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
| 540 | |
| 541 sed_quote_subst='$sed_quote_subst' | |
| 542 double_quote_subst='$double_quote_subst' | |
| 543 delay_variable_subst='$delay_variable_subst' | |
| 544 _LT_CONFIG_STATUS_DECLARATIONS | |
| 545 LTCC='$LTCC' | |
| 546 LTCFLAGS='$LTCFLAGS' | |
| 547 compiler='$compiler_DEFAULT' | |
| 548 | |
| 549 # A function that is used when there is no print builtin or printf. | |
| 550 func_fallback_echo () | |
| 551 { | |
| 552 eval 'cat <<_LTECHO_EOF | |
| 553 \$[]1 | |
| 554 _LTECHO_EOF' | |
| 555 } | |
| 556 | |
| 557 # Quote evaled strings. | |
| 558 for var in lt_decl_all_varnames([[ \ | |
| 559 ]], lt_decl_quote_varnames); do | |
| 560 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | |
| 561 *[[\\\\\\\`\\"\\\$]]*) | |
| 562 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes | |
| 563 ;; | |
| 564 *) | |
| 565 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
| 566 ;; | |
| 567 esac | |
| 568 done | |
| 569 | |
| 570 # Double-quote double-evaled strings. | |
| 571 for var in lt_decl_all_varnames([[ \ | |
| 572 ]], lt_decl_dquote_varnames); do | |
| 573 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | |
| 574 *[[\\\\\\\`\\"\\\$]]*) | |
| 575 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes | |
| 576 ;; | |
| 577 *) | |
| 578 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
| 579 ;; | |
| 580 esac | |
| 581 done | |
| 582 | |
| 583 _LT_OUTPUT_LIBTOOL_INIT | |
| 584 ]) | |
| 585 | |
| 586 # _LT_GENERATED_FILE_INIT(FILE, [COMMENT]) | |
| 587 # ------------------------------------ | |
| 588 # Generate a child script FILE with all initialization necessary to | |
| 589 # reuse the environment learned by the parent script, and make the | |
| 590 # file executable. If COMMENT is supplied, it is inserted after the | |
| 591 # '#!' sequence but before initialization text begins. After this | |
| 592 # macro, additional text can be appended to FILE to form the body of | |
| 593 # the child script. The macro ends with non-zero status if the | |
| 594 # file could not be fully written (such as if the disk is full). | |
| 595 m4_ifdef([AS_INIT_GENERATED], | |
| 596 [m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])], | |
| 597 [m4_defun([_LT_GENERATED_FILE_INIT], | |
| 598 [m4_require([AS_PREPARE])]dnl | |
| 599 [m4_pushdef([AS_MESSAGE_LOG_FD])]dnl | |
| 600 [lt_write_fail=0 | |
| 601 cat >$1 <<_ASEOF || lt_write_fail=1 | |
| 602 #! $SHELL | |
| 603 # Generated by $as_me. | |
| 604 $2 | |
| 605 SHELL=\${CONFIG_SHELL-$SHELL} | |
| 606 export SHELL | |
| 607 _ASEOF | |
| 608 cat >>$1 <<\_ASEOF || lt_write_fail=1 | |
| 609 AS_SHELL_SANITIZE | |
| 610 _AS_PREPARE | |
| 611 exec AS_MESSAGE_FD>&1 | |
| 612 _ASEOF | |
| 613 test 0 = "$lt_write_fail" && chmod +x $1[]dnl | |
| 614 m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT | |
| 615 | |
| 616 # LT_OUTPUT | |
| 617 # --------- | |
| 618 # This macro allows early generation of the libtool script (before | |
| 619 # AC_OUTPUT is called), incase it is used in configure for compilation | |
| 620 # tests. | |
| 621 AC_DEFUN([LT_OUTPUT], | |
| 622 [: ${CONFIG_LT=./config.lt} | |
| 623 AC_MSG_NOTICE([creating $CONFIG_LT]) | |
| 624 _LT_GENERATED_FILE_INIT(["$CONFIG_LT"], | |
| 625 [# Run this file to recreate a libtool stub with the current configuration.]) | |
| 626 | |
| 627 cat >>"$CONFIG_LT" <<\_LTEOF | |
| 628 lt_cl_silent=false | |
| 629 exec AS_MESSAGE_LOG_FD>>config.log | |
| 630 { | |
| 631 echo | |
| 632 AS_BOX([Running $as_me.]) | |
| 633 } >&AS_MESSAGE_LOG_FD | |
| 634 | |
| 635 lt_cl_help="\ | |
| 636 '$as_me' creates a local libtool stub from the current configuration, | |
| 637 for use in further configure time tests before the real libtool is | |
| 638 generated. | |
| 639 | |
| 640 Usage: $[0] [[OPTIONS]] | |
| 641 | |
| 642 -h, --help print this help, then exit | |
| 643 -V, --version print version number, then exit | |
| 644 -q, --quiet do not print progress messages | |
| 645 -d, --debug don't remove temporary files | |
| 646 | |
| 647 Report bugs to <bug-libtool@gnu.org>." | |
| 648 | |
| 649 lt_cl_version="\ | |
| 650 m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl | |
| 651 m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION]) | |
| 652 configured by $[0], generated by m4_PACKAGE_STRING. | |
| 653 | |
| 654 Copyright (C) 2011 Free Software Foundation, Inc. | |
| 655 This config.lt script is free software; the Free Software Foundation | |
| 656 gives unlimited permision to copy, distribute and modify it." | |
| 657 | |
| 658 while test 0 != $[#] | |
| 659 do | |
| 660 case $[1] in | |
| 661 --version | --v* | -V ) | |
| 662 echo "$lt_cl_version"; exit 0 ;; | |
| 663 --help | --h* | -h ) | |
| 664 echo "$lt_cl_help"; exit 0 ;; | |
| 665 --debug | --d* | -d ) | |
| 666 debug=: ;; | |
| 667 --quiet | --q* | --silent | --s* | -q ) | |
| 668 lt_cl_silent=: ;; | |
| 669 | |
| 670 -*) AC_MSG_ERROR([unrecognized option: $[1] | |
| 671 Try '$[0] --help' for more information.]) ;; | |
| 672 | |
| 673 *) AC_MSG_ERROR([unrecognized argument: $[1] | |
| 674 Try '$[0] --help' for more information.]) ;; | |
| 675 esac | |
| 676 shift | |
| 677 done | |
| 678 | |
| 679 if $lt_cl_silent; then | |
| 680 exec AS_MESSAGE_FD>/dev/null | |
| 681 fi | |
| 682 _LTEOF | |
| 683 | |
| 684 cat >>"$CONFIG_LT" <<_LTEOF | |
| 685 _LT_OUTPUT_LIBTOOL_COMMANDS_INIT | |
| 686 _LTEOF | |
| 687 | |
| 688 cat >>"$CONFIG_LT" <<\_LTEOF | |
| 689 AC_MSG_NOTICE([creating $ofile]) | |
| 690 _LT_OUTPUT_LIBTOOL_COMMANDS | |
| 691 AS_EXIT(0) | |
| 692 _LTEOF | |
| 693 chmod +x "$CONFIG_LT" | |
| 694 | |
| 695 # configure is writing to config.log, but config.lt does its own redirection, | |
| 696 # appending to config.log, which fails on DOS, as config.log is still kept | |
| 697 # open by configure. Here we exec the FD to /dev/null, effectively closing | |
| 698 # config.log, so it can be properly (re)opened and appended to by config.lt. | |
| 699 lt_cl_success=: | |
| 700 test yes = "$silent" && | |
| 701 lt_config_lt_args="$lt_config_lt_args --quiet" | |
| 702 exec AS_MESSAGE_LOG_FD>/dev/null | |
| 703 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false | |
| 704 exec AS_MESSAGE_LOG_FD>>config.log | |
| 705 $lt_cl_success || AS_EXIT(1) | |
| 706 ])# LT_OUTPUT | |
| 707 | |
| 708 | |
| 709 # _LT_CONFIG(TAG) | |
| 710 # --------------- | |
| 711 # If TAG is the built-in tag, create an initial libtool script with a | |
| 712 # default configuration from the untagged config vars. Otherwise add code | |
| 713 # to config.status for appending the configuration named by TAG from the | |
| 714 # matching tagged config vars. | |
| 715 m4_defun([_LT_CONFIG], | |
| 716 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl | |
| 717 _LT_CONFIG_SAVE_COMMANDS([ | |
| 718 m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl | |
| 719 m4_if(_LT_TAG, [C], [ | |
| 720 # See if we are running on zsh, and set the options that allow our | |
| 721 # commands through without removal of \ escapes. | |
| 722 if test -n "${ZSH_VERSION+set}"; then | |
| 723 setopt NO_GLOB_SUBST | |
| 724 fi | |
| 725 | |
| 726 cfgfile=${ofile}T | |
| 727 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
| 728 $RM "$cfgfile" | |
| 729 | |
| 730 cat <<_LT_EOF >> "$cfgfile" | |
| 731 #! $SHELL | |
| 732 # Generated automatically by $as_me ($PACKAGE) $VERSION | |
| 733 # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
| 734 | |
| 735 # Provide generalized library-building support services. | |
| 736 # Written by Gordon Matzigkeit, 1996 | |
| 737 | |
| 738 _LT_COPYING | |
| 739 _LT_LIBTOOL_TAGS | |
| 740 | |
| 741 # Configured defaults for sys_lib_dlsearch_path munging. | |
| 742 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} | |
| 743 | |
| 744 # ### BEGIN LIBTOOL CONFIG | |
| 745 _LT_LIBTOOL_CONFIG_VARS | |
| 746 _LT_LIBTOOL_TAG_VARS | |
| 747 # ### END LIBTOOL CONFIG | |
| 748 | |
| 749 _LT_EOF | |
| 750 | |
| 751 cat <<'_LT_EOF' >> "$cfgfile" | |
| 752 | |
| 753 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE | |
| 754 | |
| 755 _LT_PREPARE_MUNGE_PATH_LIST | |
| 756 _LT_PREPARE_CC_BASENAME | |
| 757 | |
| 758 # ### END FUNCTIONS SHARED WITH CONFIGURE | |
| 759 | |
| 760 _LT_EOF | |
| 761 | |
| 762 case $host_os in | |
| 763 aix3*) | |
| 764 cat <<\_LT_EOF >> "$cfgfile" | |
| 765 # AIX sometimes has problems with the GCC collect2 program. For some | |
| 766 # reason, if we set the COLLECT_NAMES environment variable, the problems | |
| 767 # vanish in a puff of smoke. | |
| 768 if test set != "${COLLECT_NAMES+set}"; then | |
| 769 COLLECT_NAMES= | |
| 770 export COLLECT_NAMES | |
| 771 fi | |
| 772 _LT_EOF | |
| 773 ;; | |
| 774 esac | |
| 775 | |
| 776 _LT_PROG_LTMAIN | |
| 777 | |
| 778 # We use sed instead of cat because bash on DJGPP gets confused if | |
| 779 # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
| 780 # text mode, it properly converts lines to CR/LF. This bash problem | |
| 781 # is reportedly fixed, but why not run on old versions too? | |
| 782 $SED '$q' "$ltmain" >> "$cfgfile" \ | |
| 783 || (rm -f "$cfgfile"; exit 1) | |
| 784 | |
| 785 mv -f "$cfgfile" "$ofile" || | |
| 786 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
| 787 chmod +x "$ofile" | |
| 788 ], | |
| 789 [cat <<_LT_EOF >> "$ofile" | |
| 790 | |
| 791 dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded | |
| 792 dnl in a comment (ie after a #). | |
| 793 # ### BEGIN LIBTOOL TAG CONFIG: $1 | |
| 794 _LT_LIBTOOL_TAG_VARS(_LT_TAG) | |
| 795 # ### END LIBTOOL TAG CONFIG: $1 | |
| 796 _LT_EOF | |
| 797 ])dnl /m4_if | |
| 798 ], | |
| 799 [m4_if([$1], [], [ | |
| 800 PACKAGE='$PACKAGE' | |
| 801 VERSION='$VERSION' | |
| 802 RM='$RM' | |
| 803 ofile='$ofile'], []) | |
| 804 ])dnl /_LT_CONFIG_SAVE_COMMANDS | |
| 805 ])# _LT_CONFIG | |
| 806 | |
| 807 | |
| 808 # LT_SUPPORTED_TAG(TAG) | |
| 809 # --------------------- | |
| 810 # Trace this macro to discover what tags are supported by the libtool | |
| 811 # --tag option, using: | |
| 812 # autoconf --trace 'LT_SUPPORTED_TAG:$1' | |
| 813 AC_DEFUN([LT_SUPPORTED_TAG], []) | |
| 814 | |
| 815 | |
| 816 # C support is built-in for now | |
| 817 m4_define([_LT_LANG_C_enabled], []) | |
| 818 m4_define([_LT_TAGS], []) | |
| 819 | |
| 820 | |
| 821 # LT_LANG(LANG) | |
| 822 # ------------- | |
| 823 # Enable libtool support for the given language if not already enabled. | |
| 824 AC_DEFUN([LT_LANG], | |
| 825 [AC_BEFORE([$0], [LT_OUTPUT])dnl | |
| 826 m4_case([$1], | |
| 827 [C], [_LT_LANG(C)], | |
| 828 [C++], [_LT_LANG(CXX)], | |
| 829 [Go], [_LT_LANG(GO)], | |
| 830 [Java], [_LT_LANG(GCJ)], | |
| 831 [Fortran 77], [_LT_LANG(F77)], | |
| 832 [Fortran], [_LT_LANG(FC)], | |
| 833 [Windows Resource], [_LT_LANG(RC)], | |
| 834 [m4_ifdef([_LT_LANG_]$1[_CONFIG], | |
| 835 [_LT_LANG($1)], | |
| 836 [m4_fatal([$0: unsupported language: "$1"])])])dnl | |
| 837 ])# LT_LANG | |
| 838 | |
| 839 | |
| 840 # _LT_LANG(LANGNAME) | |
| 841 # ------------------ | |
| 842 m4_defun([_LT_LANG], | |
| 843 [m4_ifdef([_LT_LANG_]$1[_enabled], [], | |
| 844 [LT_SUPPORTED_TAG([$1])dnl | |
| 845 m4_append([_LT_TAGS], [$1 ])dnl | |
| 846 m4_define([_LT_LANG_]$1[_enabled], [])dnl | |
| 847 _LT_LANG_$1_CONFIG($1)])dnl | |
| 848 ])# _LT_LANG | |
| 849 | |
| 850 | |
| 851 m4_ifndef([AC_PROG_GO], [ | |
| 852 ############################################################ | |
| 853 # NOTE: This macro has been submitted for inclusion into # | |
| 854 # GNU Autoconf as AC_PROG_GO. When it is available in # | |
| 855 # a released version of Autoconf we should remove this # | |
| 856 # macro and use it instead. # | |
| 857 ############################################################ | |
| 858 m4_defun([AC_PROG_GO], | |
| 859 [AC_LANG_PUSH(Go)dnl | |
| 860 AC_ARG_VAR([GOC], [Go compiler command])dnl | |
| 861 AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl | |
| 862 _AC_ARG_VAR_LDFLAGS()dnl | |
| 863 AC_CHECK_TOOL(GOC, gccgo) | |
| 864 if test -z "$GOC"; then | |
| 865 if test -n "$ac_tool_prefix"; then | |
| 866 AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo]) | |
| 867 fi | |
| 868 fi | |
| 869 if test -z "$GOC"; then | |
| 870 AC_CHECK_PROG(GOC, gccgo, gccgo, false) | |
| 871 fi | |
| 872 ])#m4_defun | |
| 873 ])#m4_ifndef | |
| 874 | |
| 875 | |
| 876 # _LT_LANG_DEFAULT_CONFIG | |
| 877 # ----------------------- | |
| 878 m4_defun([_LT_LANG_DEFAULT_CONFIG], | |
| 879 [AC_PROVIDE_IFELSE([AC_PROG_CXX], | |
| 880 [LT_LANG(CXX)], | |
| 881 [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])]) | |
| 882 | |
| 883 AC_PROVIDE_IFELSE([AC_PROG_F77], | |
| 884 [LT_LANG(F77)], | |
| 885 [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])]) | |
| 886 | |
| 887 AC_PROVIDE_IFELSE([AC_PROG_FC], | |
| 888 [LT_LANG(FC)], | |
| 889 [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])]) | |
| 890 | |
| 891 dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal | |
| 892 dnl pulling things in needlessly. | |
| 893 AC_PROVIDE_IFELSE([AC_PROG_GCJ], | |
| 894 [LT_LANG(GCJ)], | |
| 895 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], | |
| 896 [LT_LANG(GCJ)], | |
| 897 [AC_PROVIDE_IFELSE([LT_PROG_GCJ], | |
| 898 [LT_LANG(GCJ)], | |
| 899 [m4_ifdef([AC_PROG_GCJ], | |
| 900 [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])]) | |
| 901 m4_ifdef([A][M_PROG_GCJ], | |
| 902 [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])]) | |
| 903 m4_ifdef([LT_PROG_GCJ], | |
| 904 [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])]) | |
| 905 | |
| 906 AC_PROVIDE_IFELSE([AC_PROG_GO], | |
| 907 [LT_LANG(GO)], | |
| 908 [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])]) | |
| 909 | |
| 910 AC_PROVIDE_IFELSE([LT_PROG_RC], | |
| 911 [LT_LANG(RC)], | |
| 912 [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])]) | |
| 913 ])# _LT_LANG_DEFAULT_CONFIG | |
| 914 | |
| 915 # Obsolete macros: | |
| 916 AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)]) | |
| 917 AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)]) | |
| 918 AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)]) | |
| 919 AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)]) | |
| 920 AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)]) | |
| 921 dnl aclocal-1.4 backwards compatibility: | |
| 922 dnl AC_DEFUN([AC_LIBTOOL_CXX], []) | |
| 923 dnl AC_DEFUN([AC_LIBTOOL_F77], []) | |
| 924 dnl AC_DEFUN([AC_LIBTOOL_FC], []) | |
| 925 dnl AC_DEFUN([AC_LIBTOOL_GCJ], []) | |
| 926 dnl AC_DEFUN([AC_LIBTOOL_RC], []) | |
| 927 | |
| 928 | |
| 929 # _LT_TAG_COMPILER | |
| 930 # ---------------- | |
| 931 m4_defun([_LT_TAG_COMPILER], | |
| 932 [AC_REQUIRE([AC_PROG_CC])dnl | |
| 933 | |
| 934 _LT_DECL([LTCC], [CC], [1], [A C compiler])dnl | |
| 935 _LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl | |
| 936 _LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl | |
| 937 _LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl | |
| 938 | |
| 939 # If no C compiler was specified, use CC. | |
| 940 LTCC=${LTCC-"$CC"} | |
| 941 | |
| 942 # If no C compiler flags were specified, use CFLAGS. | |
| 943 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
| 944 | |
| 945 # Allow CC to be a program name with arguments. | |
| 946 compiler=$CC | |
| 947 ])# _LT_TAG_COMPILER | |
| 948 | |
| 949 | |
| 950 # _LT_COMPILER_BOILERPLATE | |
| 951 # ------------------------ | |
| 952 # Check for compiler boilerplate output or warnings with | |
| 953 # the simple compiler test code. | |
| 954 m4_defun([_LT_COMPILER_BOILERPLATE], | |
| 955 [m4_require([_LT_DECL_SED])dnl | |
| 956 ac_outfile=conftest.$ac_objext | |
| 957 echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
| 958 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
| 959 _lt_compiler_boilerplate=`cat conftest.err` | |
| 960 $RM conftest* | |
| 961 ])# _LT_COMPILER_BOILERPLATE | |
| 962 | |
| 963 | |
| 964 # _LT_LINKER_BOILERPLATE | |
| 965 # ---------------------- | |
| 966 # Check for linker boilerplate output or warnings with | |
| 967 # the simple link test code. | |
| 968 m4_defun([_LT_LINKER_BOILERPLATE], | |
| 969 [m4_require([_LT_DECL_SED])dnl | |
| 970 ac_outfile=conftest.$ac_objext | |
| 971 echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
| 972 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
| 973 _lt_linker_boilerplate=`cat conftest.err` | |
| 974 $RM -r conftest* | |
| 975 ])# _LT_LINKER_BOILERPLATE | |
| 976 | |
| 977 # _LT_REQUIRED_DARWIN_CHECKS | |
| 978 # ------------------------- | |
| 979 m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[ | |
| 980 case $host_os in | |
| 981 rhapsody* | darwin*) | |
| 982 AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:]) | |
| 983 AC_CHECK_TOOL([NMEDIT], [nmedit], [:]) | |
| 984 AC_CHECK_TOOL([LIPO], [lipo], [:]) | |
| 985 AC_CHECK_TOOL([OTOOL], [otool], [:]) | |
| 986 AC_CHECK_TOOL([OTOOL64], [otool64], [:]) | |
| 987 _LT_DECL([], [DSYMUTIL], [1], | |
| 988 [Tool to manipulate archived DWARF debug symbol files on Mac OS X]) | |
| 989 _LT_DECL([], [NMEDIT], [1], | |
| 990 [Tool to change global to local symbols on Mac OS X]) | |
| 991 _LT_DECL([], [LIPO], [1], | |
| 992 [Tool to manipulate fat objects and archives on Mac OS X]) | |
| 993 _LT_DECL([], [OTOOL], [1], | |
| 994 [ldd/readelf like tool for Mach-O binaries on Mac OS X]) | |
| 995 _LT_DECL([], [OTOOL64], [1], | |
| 996 [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4]) | |
| 997 | |
| 998 AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod], | |
| 999 [lt_cv_apple_cc_single_mod=no | |
| 1000 if test -z "$LT_MULTI_MODULE"; then | |
| 1001 # By default we will add the -single_module flag. You can override | |
| 1002 # by either setting the environment variable LT_MULTI_MODULE | |
| 1003 # non-empty at configure time, or by adding -multi_module to the | |
| 1004 # link flags. | |
| 1005 rm -rf libconftest.dylib* | |
| 1006 echo "int foo(void){return 1;}" > conftest.c | |
| 1007 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
| 1008 -dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD | |
| 1009 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
| 1010 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
| 1011 _lt_result=$? | |
| 1012 # If there is a non-empty error log, and "single_module" | |
| 1013 # appears in it, assume the flag caused a linker warning | |
| 1014 if test -s conftest.err && $GREP single_module conftest.err; then | |
| 1015 cat conftest.err >&AS_MESSAGE_LOG_FD | |
| 1016 # Otherwise, if the output was created with a 0 exit code from | |
| 1017 # the compiler, it worked. | |
| 1018 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then | |
| 1019 lt_cv_apple_cc_single_mod=yes | |
| 1020 else | |
| 1021 cat conftest.err >&AS_MESSAGE_LOG_FD | |
| 1022 fi | |
| 1023 rm -rf libconftest.dylib* | |
| 1024 rm -f conftest.* | |
| 1025 fi]) | |
| 1026 | |
| 1027 AC_CACHE_CHECK([for -exported_symbols_list linker flag], | |
| 1028 [lt_cv_ld_exported_symbols_list], | |
| 1029 [lt_cv_ld_exported_symbols_list=no | |
| 1030 save_LDFLAGS=$LDFLAGS | |
| 1031 echo "_main" > conftest.sym | |
| 1032 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
| 1033 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], | |
| 1034 [lt_cv_ld_exported_symbols_list=yes], | |
| 1035 [lt_cv_ld_exported_symbols_list=no]) | |
| 1036 LDFLAGS=$save_LDFLAGS | |
| 1037 ]) | |
| 1038 | |
| 1039 AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load], | |
| 1040 [lt_cv_ld_force_load=no | |
| 1041 cat > conftest.c << _LT_EOF | |
| 1042 int forced_loaded() { return 2;} | |
| 1043 _LT_EOF | |
| 1044 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD | |
| 1045 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD | |
| 1046 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD | |
| 1047 $AR $AR_FLAGS libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD | |
| 1048 echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD | |
| 1049 $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD | |
| 1050 cat > conftest.c << _LT_EOF | |
| 1051 int main() { return 0;} | |
| 1052 _LT_EOF | |
| 1053 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD | |
| 1054 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | |
| 1055 _lt_result=$? | |
| 1056 if test -s conftest.err && $GREP force_load conftest.err; then | |
| 1057 cat conftest.err >&AS_MESSAGE_LOG_FD | |
| 1058 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then | |
| 1059 lt_cv_ld_force_load=yes | |
| 1060 else | |
| 1061 cat conftest.err >&AS_MESSAGE_LOG_FD | |
| 1062 fi | |
| 1063 rm -f conftest.err libconftest.a conftest conftest.c | |
| 1064 rm -rf conftest.dSYM | |
| 1065 ]) | |
| 1066 case $host_os in | |
| 1067 rhapsody* | darwin1.[[012]]) | |
| 1068 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; | |
| 1069 darwin1.*) | |
| 1070 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; | |
| 1071 darwin*) | |
| 1072 case $MACOSX_DEPLOYMENT_TARGET,$host in | |
| 1073 10.[[012]],*|,*powerpc*-darwin[[5-8]]*) | |
| 1074 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; | |
| 1075 *) | |
| 1076 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; | |
| 1077 esac | |
| 1078 ;; | |
| 1079 esac | |
| 1080 if test yes = "$lt_cv_apple_cc_single_mod"; then | |
| 1081 _lt_dar_single_mod='$single_module' | |
| 1082 fi | |
| 1083 if test yes = "$lt_cv_ld_exported_symbols_list"; then | |
| 1084 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' | |
| 1085 else | |
| 1086 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' | |
| 1087 fi | |
| 1088 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then | |
| 1089 _lt_dsymutil='~$DSYMUTIL $lib || :' | |
| 1090 else | |
| 1091 _lt_dsymutil= | |
| 1092 fi | |
| 1093 ;; | |
| 1094 esac | |
| 1095 ]) | |
| 1096 | |
| 1097 | |
| 1098 # _LT_DARWIN_LINKER_FEATURES([TAG]) | |
| 1099 # --------------------------------- | |
| 1100 # Checks for linker and compiler features on darwin | |
| 1101 m4_defun([_LT_DARWIN_LINKER_FEATURES], | |
| 1102 [ | |
| 1103 m4_require([_LT_REQUIRED_DARWIN_CHECKS]) | |
| 1104 _LT_TAGVAR(archive_cmds_need_lc, $1)=no | |
| 1105 _LT_TAGVAR(hardcode_direct, $1)=no | |
| 1106 _LT_TAGVAR(hardcode_automatic, $1)=yes | |
| 1107 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported | |
| 1108 if test yes = "$lt_cv_ld_force_load"; then | |
| 1109 _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\"`' | |
| 1110 m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes], | |
| 1111 [FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes]) | |
| 1112 else | |
| 1113 _LT_TAGVAR(whole_archive_flag_spec, $1)='' | |
| 1114 fi | |
| 1115 _LT_TAGVAR(link_all_deplibs, $1)=yes | |
| 1116 _LT_TAGVAR(allow_undefined_flag, $1)=$_lt_dar_allow_undefined | |
| 1117 case $cc_basename in | |
| 1118 ifort*|nagfor*) _lt_dar_can_shared=yes ;; | |
| 1119 *) _lt_dar_can_shared=$GCC ;; | |
| 1120 esac | |
| 1121 if test yes = "$_lt_dar_can_shared"; then | |
| 1122 output_verbose_link_cmd=func_echo_all | |
| 1123 _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" | |
| 1124 _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" | |
| 1125 _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" | |
| 1126 _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 m4_if([$1], [CXX], | |
| 1128 [ if test yes != "$lt_cv_apple_cc_single_mod"; then | |
| 1129 _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" | |
| 1130 _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" | |
| 1131 fi | |
| 1132 ],[]) | |
| 1133 else | |
| 1134 _LT_TAGVAR(ld_shlibs, $1)=no | |
| 1135 fi | |
| 1136 ]) | |
| 1137 | |
| 1138 # _LT_SYS_MODULE_PATH_AIX([TAGNAME]) | |
| 1139 # ---------------------------------- | |
| 1140 # Links a minimal program and checks the executable | |
| 1141 # for the system default hardcoded library path. In most cases, | |
| 1142 # this is /usr/lib:/lib, but when the MPI compilers are used | |
| 1143 # the location of the communication and MPI libs are included too. | |
| 1144 # If we don't find anything, use the default library path according | |
| 1145 # to the aix ld manual. | |
| 1146 # Store the results from the different compilers for each TAGNAME. | |
| 1147 # Allow to override them for all tags through lt_cv_aix_libpath. | |
| 1148 m4_defun([_LT_SYS_MODULE_PATH_AIX], | |
| 1149 [m4_require([_LT_DECL_SED])dnl | |
| 1150 if test set = "${lt_cv_aix_libpath+set}"; then | |
| 1151 aix_libpath=$lt_cv_aix_libpath | |
| 1152 else | |
| 1153 AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])], | |
| 1154 [AC_LINK_IFELSE([AC_LANG_PROGRAM],[ | |
| 1155 lt_aix_libpath_sed='[ | |
| 1156 /Import File Strings/,/^$/ { | |
| 1157 /^0/ { | |
| 1158 s/^0 *\([^ ]*\) *$/\1/ | |
| 1159 p | |
| 1160 } | |
| 1161 }]' | |
| 1162 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
| 1163 # Check for a 64-bit object if we didn't find anything. | |
| 1164 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then | |
| 1165 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
| 1166 fi],[]) | |
| 1167 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then | |
| 1168 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=/usr/lib:/lib | |
| 1169 fi | |
| 1170 ]) | |
| 1171 aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1]) | |
| 1172 fi | |
| 1173 ])# _LT_SYS_MODULE_PATH_AIX | |
| 1174 | |
| 1175 | |
| 1176 # _LT_SHELL_INIT(ARG) | |
| 1177 # ------------------- | |
| 1178 m4_define([_LT_SHELL_INIT], | |
| 1179 [m4_divert_text([M4SH-INIT], [$1 | |
| 1180 ])])# _LT_SHELL_INIT | |
| 1181 | |
| 1182 | |
| 1183 | |
| 1184 # _LT_PROG_ECHO_BACKSLASH | |
| 1185 # ----------------------- | |
| 1186 # Find how we can fake an echo command that does not interpret backslash. | |
| 1187 # In particular, with Autoconf 2.60 or later we add some code to the start | |
| 1188 # of the generated configure script that will find a shell with a builtin | |
| 1189 # printf (that we can use as an echo command). | |
| 1190 m4_defun([_LT_PROG_ECHO_BACKSLASH], | |
| 1191 [ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
| 1192 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | |
| 1193 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | |
| 1194 | |
| 1195 AC_MSG_CHECKING([how to print strings]) | |
| 1196 # Test print first, because it will be a builtin if present. | |
| 1197 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ | |
| 1198 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | |
| 1199 ECHO='print -r --' | |
| 1200 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | |
| 1201 ECHO='printf %s\n' | |
| 1202 else | |
| 1203 # Use this function as a fallback that always works. | |
| 1204 func_fallback_echo () | |
| 1205 { | |
| 1206 eval 'cat <<_LTECHO_EOF | |
| 1207 $[]1 | |
| 1208 _LTECHO_EOF' | |
| 1209 } | |
| 1210 ECHO='func_fallback_echo' | |
| 1211 fi | |
| 1212 | |
| 1213 # func_echo_all arg... | |
| 1214 # Invoke $ECHO with all args, space-separated. | |
| 1215 func_echo_all () | |
| 1216 { | |
| 1217 $ECHO "$*" | |
| 1218 } | |
| 1219 | |
| 1220 case $ECHO in | |
| 1221 printf*) AC_MSG_RESULT([printf]) ;; | |
| 1222 print*) AC_MSG_RESULT([print -r]) ;; | |
| 1223 *) AC_MSG_RESULT([cat]) ;; | |
| 1224 esac | |
| 1225 | |
| 1226 m4_ifdef([_AS_DETECT_SUGGESTED], | |
| 1227 [_AS_DETECT_SUGGESTED([ | |
| 1228 test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || ( | |
| 1229 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
| 1230 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | |
| 1231 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | |
| 1232 PATH=/empty FPATH=/empty; export PATH FPATH | |
| 1233 test "X`printf %s $ECHO`" = "X$ECHO" \ | |
| 1234 || test "X`print -r -- $ECHO`" = "X$ECHO" )])]) | |
| 1235 | |
| 1236 _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts]) | |
| 1237 _LT_DECL([], [ECHO], [1], [An echo program that protects backslashes]) | |
| 1238 ])# _LT_PROG_ECHO_BACKSLASH | |
| 1239 | |
| 1240 | |
| 1241 # _LT_WITH_SYSROOT | |
| 1242 # ---------------- | |
| 1243 AC_DEFUN([_LT_WITH_SYSROOT], | |
| 1244 [m4_require([_LT_DECL_SED])dnl | |
| 1245 AC_MSG_CHECKING([for sysroot]) | |
| 1246 AC_ARG_WITH([sysroot], | |
| 1247 [AS_HELP_STRING([--with-sysroot@<:@=DIR@:>@], | |
| 1248 [Search for dependent libraries within DIR (or the compiler's sysroot | |
| 1249 if not specified).])], | |
| 1250 [], [with_sysroot=no]) | |
| 1251 | |
| 1252 dnl lt_sysroot will always be passed unquoted. We quote it here | |
| 1253 dnl in case the user passed a directory name. | |
| 1254 lt_sysroot= | |
| 1255 case $with_sysroot in #( | |
| 1256 yes) | |
| 1257 if test yes = "$GCC"; then | |
| 1258 lt_sysroot=`$CC --print-sysroot 2>/dev/null` | |
| 1259 fi | |
| 1260 ;; #( | |
| 1261 /*) | |
| 1262 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"` | |
| 1263 ;; #( | |
| 1264 no|'') | |
| 1265 ;; #( | |
| 1266 *) | |
| 1267 AC_MSG_RESULT([$with_sysroot]) | |
| 1268 AC_MSG_ERROR([The sysroot must be an absolute path.]) | |
| 1269 ;; | |
| 1270 esac | |
| 1271 | |
| 1272 AC_MSG_RESULT([${lt_sysroot:-no}]) | |
| 1273 _LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl | |
| 1274 [dependent libraries, and where our libraries should be installed.])]) | |
| 1275 | |
| 1276 # _LT_ENABLE_LOCK | |
| 1277 # --------------- | |
| 1278 m4_defun([_LT_ENABLE_LOCK], | |
| 1279 [AC_ARG_ENABLE([libtool-lock], | |
| 1280 [AS_HELP_STRING([--disable-libtool-lock], | |
| 1281 [avoid locking (might break parallel builds)])]) | |
| 1282 test no = "$enable_libtool_lock" || enable_libtool_lock=yes | |
| 1283 | |
| 1284 # Some flags need to be propagated to the compiler or linker for good | |
| 1285 # libtool support. | |
| 1286 case $host in | |
| 1287 ia64-*-hpux*) | |
| 1288 # Find out what ABI is being produced by ac_compile, and set mode | |
| 1289 # options accordingly. | |
| 1290 echo 'int i;' > conftest.$ac_ext | |
| 1291 if AC_TRY_EVAL(ac_compile); then | |
| 1292 case `$FILECMD conftest.$ac_objext` in | |
| 1293 *ELF-32*) | |
| 1294 HPUX_IA64_MODE=32 | |
| 1295 ;; | |
| 1296 *ELF-64*) | |
| 1297 HPUX_IA64_MODE=64 | |
| 1298 ;; | |
| 1299 esac | |
| 1300 fi | |
| 1301 rm -rf conftest* | |
| 1302 ;; | |
| 1303 *-*-irix6*) | |
| 1304 # Find out what ABI is being produced by ac_compile, and set linker | |
| 1305 # options accordingly. | |
| 1306 echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext | |
| 1307 if AC_TRY_EVAL(ac_compile); then | |
| 1308 if test yes = "$lt_cv_prog_gnu_ld"; then | |
| 1309 case `$FILECMD conftest.$ac_objext` in | |
| 1310 *32-bit*) | |
| 1311 LD="${LD-ld} -melf32bsmip" | |
| 1312 ;; | |
| 1313 *N32*) | |
| 1314 LD="${LD-ld} -melf32bmipn32" | |
| 1315 ;; | |
| 1316 *64-bit*) | |
| 1317 LD="${LD-ld} -melf64bmip" | |
| 1318 ;; | |
| 1319 esac | |
| 1320 else | |
| 1321 case `$FILECMD conftest.$ac_objext` in | |
| 1322 *32-bit*) | |
| 1323 LD="${LD-ld} -32" | |
| 1324 ;; | |
| 1325 *N32*) | |
| 1326 LD="${LD-ld} -n32" | |
| 1327 ;; | |
| 1328 *64-bit*) | |
| 1329 LD="${LD-ld} -64" | |
| 1330 ;; | |
| 1331 esac | |
| 1332 fi | |
| 1333 fi | |
| 1334 rm -rf conftest* | |
| 1335 ;; | |
| 1336 | |
| 1337 mips64*-*linux*) | |
| 1338 # Find out what ABI is being produced by ac_compile, and set linker | |
| 1339 # options accordingly. | |
| 1340 echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext | |
| 1341 if AC_TRY_EVAL(ac_compile); then | |
| 1342 emul=elf | |
| 1343 case `$FILECMD conftest.$ac_objext` in | |
| 1344 *32-bit*) | |
| 1345 emul="${emul}32" | |
| 1346 ;; | |
| 1347 *64-bit*) | |
| 1348 emul="${emul}64" | |
| 1349 ;; | |
| 1350 esac | |
| 1351 case `$FILECMD conftest.$ac_objext` in | |
| 1352 *MSB*) | |
| 1353 emul="${emul}btsmip" | |
| 1354 ;; | |
| 1355 *LSB*) | |
| 1356 emul="${emul}ltsmip" | |
| 1357 ;; | |
| 1358 esac | |
| 1359 case `$FILECMD conftest.$ac_objext` in | |
| 1360 *N32*) | |
| 1361 emul="${emul}n32" | |
| 1362 ;; | |
| 1363 esac | |
| 1364 LD="${LD-ld} -m $emul" | |
| 1365 fi | |
| 1366 rm -rf conftest* | |
| 1367 ;; | |
| 1368 | |
| 1369 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ | |
| 1370 s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | |
| 1371 # Find out what ABI is being produced by ac_compile, and set linker | |
| 1372 # options accordingly. Note that the listed cases only cover the | |
| 1373 # situations where additional linker options are needed (such as when | |
| 1374 # doing 32-bit compilation for a host where ld defaults to 64-bit, or | |
| 1375 # vice versa); the common cases where no linker options are needed do | |
| 1376 # not appear in the list. | |
| 1377 echo 'int i;' > conftest.$ac_ext | |
| 1378 if AC_TRY_EVAL(ac_compile); then | |
| 1379 case `$FILECMD conftest.o` in | |
| 1380 *32-bit*) | |
| 1381 case $host in | |
| 1382 x86_64-*kfreebsd*-gnu) | |
| 1383 LD="${LD-ld} -m elf_i386_fbsd" | |
| 1384 ;; | |
| 1385 x86_64-*linux*) | |
| 1386 case `$FILECMD conftest.o` in | |
| 1387 *x86-64*) | |
| 1388 LD="${LD-ld} -m elf32_x86_64" | |
| 1389 ;; | |
| 1390 *) | |
| 1391 LD="${LD-ld} -m elf_i386" | |
| 1392 ;; | |
| 1393 esac | |
| 1394 ;; | |
| 1395 powerpc64le-*linux*) | |
| 1396 LD="${LD-ld} -m elf32lppclinux" | |
| 1397 ;; | |
| 1398 powerpc64-*linux*) | |
| 1399 LD="${LD-ld} -m elf32ppclinux" | |
| 1400 ;; | |
| 1401 s390x-*linux*) | |
| 1402 LD="${LD-ld} -m elf_s390" | |
| 1403 ;; | |
| 1404 sparc64-*linux*) | |
| 1405 LD="${LD-ld} -m elf32_sparc" | |
| 1406 ;; | |
| 1407 esac | |
| 1408 ;; | |
| 1409 *64-bit*) | |
| 1410 case $host in | |
| 1411 x86_64-*kfreebsd*-gnu) | |
| 1412 LD="${LD-ld} -m elf_x86_64_fbsd" | |
| 1413 ;; | |
| 1414 x86_64-*linux*) | |
| 1415 LD="${LD-ld} -m elf_x86_64" | |
| 1416 ;; | |
| 1417 powerpcle-*linux*) | |
| 1418 LD="${LD-ld} -m elf64lppc" | |
| 1419 ;; | |
| 1420 powerpc-*linux*) | |
| 1421 LD="${LD-ld} -m elf64ppc" | |
| 1422 ;; | |
| 1423 s390*-*linux*|s390*-*tpf*) | |
| 1424 LD="${LD-ld} -m elf64_s390" | |
| 1425 ;; | |
| 1426 sparc*-*linux*) | |
| 1427 LD="${LD-ld} -m elf64_sparc" | |
| 1428 ;; | |
| 1429 esac | |
| 1430 ;; | |
| 1431 esac | |
| 1432 fi | |
| 1433 rm -rf conftest* | |
| 1434 ;; | |
| 1435 | |
| 1436 *-*-sco3.2v5*) | |
| 1437 # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
| 1438 SAVE_CFLAGS=$CFLAGS | |
| 1439 CFLAGS="$CFLAGS -belf" | |
| 1440 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, | |
| 1441 [AC_LANG_PUSH(C) | |
| 1442 AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) | |
| 1443 AC_LANG_POP]) | |
| 1444 if test yes != "$lt_cv_cc_needs_belf"; then | |
| 1445 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
| 1446 CFLAGS=$SAVE_CFLAGS | |
| 1447 fi | |
| 1448 ;; | |
| 1449 *-*solaris*) | |
| 1450 # Find out what ABI is being produced by ac_compile, and set linker | |
| 1451 # options accordingly. | |
| 1452 echo 'int i;' > conftest.$ac_ext | |
| 1453 if AC_TRY_EVAL(ac_compile); then | |
| 1454 case `$FILECMD conftest.o` in | |
| 1455 *64-bit*) | |
| 1456 case $lt_cv_prog_gnu_ld in | |
| 1457 yes*) | |
| 1458 case $host in | |
| 1459 i?86-*-solaris*|x86_64-*-solaris*) | |
| 1460 LD="${LD-ld} -m elf_x86_64" | |
| 1461 ;; | |
| 1462 sparc*-*-solaris*) | |
| 1463 LD="${LD-ld} -m elf64_sparc" | |
| 1464 ;; | |
| 1465 esac | |
| 1466 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. | |
| 1467 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then | |
| 1468 LD=${LD-ld}_sol2 | |
| 1469 fi | |
| 1470 ;; | |
| 1471 *) | |
| 1472 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
| 1473 LD="${LD-ld} -64" | |
| 1474 fi | |
| 1475 ;; | |
| 1476 esac | |
| 1477 ;; | |
| 1478 esac | |
| 1479 fi | |
| 1480 rm -rf conftest* | |
| 1481 ;; | |
| 1482 esac | |
| 1483 | |
| 1484 need_locks=$enable_libtool_lock | |
| 1485 ])# _LT_ENABLE_LOCK | |
| 1486 | |
| 1487 | |
| 1488 # _LT_PROG_AR | |
| 1489 # ----------- | |
| 1490 m4_defun([_LT_PROG_AR], | |
| 1491 [AC_CHECK_TOOLS(AR, [ar], false) | |
| 1492 : ${AR=ar} | |
| 1493 _LT_DECL([], [AR], [1], [The archiver]) | |
| 1494 | |
| 1495 # Use ARFLAGS variable as AR's operation code to sync the variable naming with | |
| 1496 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have | |
| 1497 # higher priority because thats what people were doing historically (setting | |
| 1498 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS | |
| 1499 # variable obsoleted/removed. | |
| 1500 | |
| 1501 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} | |
| 1502 lt_ar_flags=$AR_FLAGS | |
| 1503 _LT_DECL([], [lt_ar_flags], [0], [Flags to create an archive (by configure)]) | |
| 1504 | |
| 1505 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override | |
| 1506 # by AR_FLAGS because that was never working and AR_FLAGS is about to die. | |
| 1507 _LT_DECL([], [AR_FLAGS], [\@S|@{ARFLAGS-"\@S|@lt_ar_flags"}], | |
| 1508 [Flags to create an archive]) | |
| 1509 | |
| 1510 AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file], | |
| 1511 [lt_cv_ar_at_file=no | |
| 1512 AC_COMPILE_IFELSE([AC_LANG_PROGRAM], | |
| 1513 [echo conftest.$ac_objext > conftest.lst | |
| 1514 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD' | |
| 1515 AC_TRY_EVAL([lt_ar_try]) | |
| 1516 if test 0 -eq "$ac_status"; then | |
| 1517 # Ensure the archiver fails upon bogus file names. | |
| 1518 rm -f conftest.$ac_objext libconftest.a | |
| 1519 AC_TRY_EVAL([lt_ar_try]) | |
| 1520 if test 0 -ne "$ac_status"; then | |
| 1521 lt_cv_ar_at_file=@ | |
| 1522 fi | |
| 1523 fi | |
| 1524 rm -f conftest.* libconftest.a | |
| 1525 ]) | |
| 1526 ]) | |
| 1527 | |
| 1528 if test no = "$lt_cv_ar_at_file"; then | |
| 1529 archiver_list_spec= | |
| 1530 else | |
| 1531 archiver_list_spec=$lt_cv_ar_at_file | |
| 1532 fi | |
| 1533 _LT_DECL([], [archiver_list_spec], [1], | |
| 1534 [How to feed a file listing to the archiver]) | |
| 1535 ])# _LT_PROG_AR | |
| 1536 | |
| 1537 | |
| 1538 # _LT_CMD_OLD_ARCHIVE | |
| 1539 # ------------------- | |
| 1540 m4_defun([_LT_CMD_OLD_ARCHIVE], | |
| 1541 [_LT_PROG_AR | |
| 1542 | |
| 1543 AC_CHECK_TOOL(STRIP, strip, :) | |
| 1544 test -z "$STRIP" && STRIP=: | |
| 1545 _LT_DECL([], [STRIP], [1], [A symbol stripping program]) | |
| 1546 | |
| 1547 AC_CHECK_TOOL(RANLIB, ranlib, :) | |
| 1548 test -z "$RANLIB" && RANLIB=: | |
| 1549 _LT_DECL([], [RANLIB], [1], | |
| 1550 [Commands used to install an old-style archive]) | |
| 1551 | |
| 1552 # Determine commands to create old-style static archives. | |
| 1553 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | |
| 1554 old_postinstall_cmds='chmod 644 $oldlib' | |
| 1555 old_postuninstall_cmds= | |
| 1556 | |
| 1557 if test -n "$RANLIB"; then | |
| 1558 case $host_os in | |
| 1559 bitrig* | openbsd*) | |
| 1560 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" | |
| 1561 ;; | |
| 1562 *) | |
| 1563 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" | |
| 1564 ;; | |
| 1565 esac | |
| 1566 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" | |
| 1567 fi | |
| 1568 | |
| 1569 case $host_os in | |
| 1570 darwin*) | |
| 1571 lock_old_archive_extraction=yes ;; | |
| 1572 *) | |
| 1573 lock_old_archive_extraction=no ;; | |
| 1574 esac | |
| 1575 _LT_DECL([], [old_postinstall_cmds], [2]) | |
| 1576 _LT_DECL([], [old_postuninstall_cmds], [2]) | |
| 1577 _LT_TAGDECL([], [old_archive_cmds], [2], | |
| 1578 [Commands used to build an old-style archive]) | |
| 1579 _LT_DECL([], [lock_old_archive_extraction], [0], | |
| 1580 [Whether to use a lock for old archive extraction]) | |
| 1581 ])# _LT_CMD_OLD_ARCHIVE | |
| 1582 | |
| 1583 | |
| 1584 # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, | |
| 1585 # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) | |
| 1586 # ---------------------------------------------------------------- | |
| 1587 # Check whether the given compiler option works | |
| 1588 AC_DEFUN([_LT_COMPILER_OPTION], | |
| 1589 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl | |
| 1590 m4_require([_LT_DECL_SED])dnl | |
| 1591 AC_CACHE_CHECK([$1], [$2], | |
| 1592 [$2=no | |
| 1593 m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) | |
| 1594 echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
| 1595 lt_compiler_flag="$3" ## exclude from sc_useless_quotes_in_assignment | |
| 1596 # Insert the option either (1) after the last *FLAGS variable, or | |
| 1597 # (2) before a word containing "conftest.", or (3) at the end. | |
| 1598 # Note that $ac_compile itself does not contain backslashes and begins | |
| 1599 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
| 1600 # The option is referenced via a variable to avoid confusing sed. | |
| 1601 lt_compile=`echo "$ac_compile" | $SED \ | |
| 1602 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
| 1603 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ | |
| 1604 -e 's:$: $lt_compiler_flag:'` | |
| 1605 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) | |
| 1606 (eval "$lt_compile" 2>conftest.err) | |
| 1607 ac_status=$? | |
| 1608 cat conftest.err >&AS_MESSAGE_LOG_FD | |
| 1609 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD | |
| 1610 if (exit $ac_status) && test -s "$ac_outfile"; then | |
| 1611 # The compiler can only warn and ignore the option if not recognized | |
| 1612 # So say no if there are warnings other than the usual output. | |
| 1613 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
| 1614 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
| 1615 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
| 1616 $2=yes | |
| 1617 fi | |
| 1618 fi | |
| 1619 $RM conftest* | |
| 1620 ]) | |
| 1621 | |
| 1622 if test yes = "[$]$2"; then | |
| 1623 m4_if([$5], , :, [$5]) | |
| 1624 else | |
| 1625 m4_if([$6], , :, [$6]) | |
| 1626 fi | |
| 1627 ])# _LT_COMPILER_OPTION | |
| 1628 | |
| 1629 # Old name: | |
| 1630 AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION]) | |
| 1631 dnl aclocal-1.4 backwards compatibility: | |
| 1632 dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], []) | |
| 1633 | |
| 1634 | |
| 1635 # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, | |
| 1636 # [ACTION-SUCCESS], [ACTION-FAILURE]) | |
| 1637 # ---------------------------------------------------- | |
| 1638 # Check whether the given linker option works | |
| 1639 AC_DEFUN([_LT_LINKER_OPTION], | |
| 1640 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl | |
| 1641 m4_require([_LT_DECL_SED])dnl | |
| 1642 AC_CACHE_CHECK([$1], [$2], | |
| 1643 [$2=no | |
| 1644 save_LDFLAGS=$LDFLAGS | |
| 1645 LDFLAGS="$LDFLAGS $3" | |
| 1646 echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
| 1647 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
| 1648 # The linker can only warn and ignore the option if not recognized | |
| 1649 # So say no if there are warnings | |
| 1650 if test -s conftest.err; then | |
| 1651 # Append any errors to the config.log. | |
| 1652 cat conftest.err 1>&AS_MESSAGE_LOG_FD | |
| 1653 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
| 1654 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
| 1655 if diff conftest.exp conftest.er2 >/dev/null; then | |
| 1656 $2=yes | |
| 1657 fi | |
| 1658 else | |
| 1659 $2=yes | |
| 1660 fi | |
| 1661 fi | |
| 1662 $RM -r conftest* | |
| 1663 LDFLAGS=$save_LDFLAGS | |
| 1664 ]) | |
| 1665 | |
| 1666 if test yes = "[$]$2"; then | |
| 1667 m4_if([$4], , :, [$4]) | |
| 1668 else | |
| 1669 m4_if([$5], , :, [$5]) | |
| 1670 fi | |
| 1671 ])# _LT_LINKER_OPTION | |
| 1672 | |
| 1673 # Old name: | |
| 1674 AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION]) | |
| 1675 dnl aclocal-1.4 backwards compatibility: | |
| 1676 dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], []) | |
| 1677 | |
| 1678 | |
| 1679 # LT_CMD_MAX_LEN | |
| 1680 #--------------- | |
| 1681 AC_DEFUN([LT_CMD_MAX_LEN], | |
| 1682 [AC_REQUIRE([AC_CANONICAL_HOST])dnl | |
| 1683 # find the maximum length of command line arguments | |
| 1684 AC_MSG_CHECKING([the maximum length of command line arguments]) | |
| 1685 AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl | |
| 1686 i=0 | |
| 1687 teststring=ABCD | |
| 1688 | |
| 1689 case $build_os in | |
| 1690 msdosdjgpp*) | |
| 1691 # On DJGPP, this test can blow up pretty badly due to problems in libc | |
| 1692 # (any single argument exceeding 2000 bytes causes a buffer overrun | |
| 1693 # during glob expansion). Even if it were fixed, the result of this | |
| 1694 # check would be larger than it should be. | |
| 1695 lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
| 1696 ;; | |
| 1697 | |
| 1698 gnu*) | |
| 1699 # Under GNU Hurd, this test is not required because there is | |
| 1700 # no limit to the length of command line arguments. | |
| 1701 # Libtool will interpret -1 as no limit whatsoever | |
| 1702 lt_cv_sys_max_cmd_len=-1; | |
| 1703 ;; | |
| 1704 | |
| 1705 cygwin* | mingw* | cegcc*) | |
| 1706 # On Win9x/ME, this test blows up -- it succeeds, but takes | |
| 1707 # about 5 minutes as the teststring grows exponentially. | |
| 1708 # Worse, since 9x/ME are not pre-emptively multitasking, | |
| 1709 # you end up with a "frozen" computer, even though with patience | |
| 1710 # the test eventually succeeds (with a max line length of 256k). | |
| 1711 # Instead, let's just punt: use the minimum linelength reported by | |
| 1712 # all of the supported platforms: 8192 (on NT/2K/XP). | |
| 1713 lt_cv_sys_max_cmd_len=8192; | |
| 1714 ;; | |
| 1715 | |
| 1716 mint*) | |
| 1717 # On MiNT this can take a long time and run out of memory. | |
| 1718 lt_cv_sys_max_cmd_len=8192; | |
| 1719 ;; | |
| 1720 | |
| 1721 amigaos*) | |
| 1722 # On AmigaOS with pdksh, this test takes hours, literally. | |
| 1723 # So we just punt and use a minimum line length of 8192. | |
| 1724 lt_cv_sys_max_cmd_len=8192; | |
| 1725 ;; | |
| 1726 | |
| 1727 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*) | |
| 1728 # This has been around since 386BSD, at least. Likely further. | |
| 1729 if test -x /sbin/sysctl; then | |
| 1730 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
| 1731 elif test -x /usr/sbin/sysctl; then | |
| 1732 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
| 1733 else | |
| 1734 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
| 1735 fi | |
| 1736 # And add a safety zone | |
| 1737 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
| 1738 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
| 1739 ;; | |
| 1740 | |
| 1741 interix*) | |
| 1742 # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
| 1743 lt_cv_sys_max_cmd_len=196608 | |
| 1744 ;; | |
| 1745 | |
| 1746 os2*) | |
| 1747 # The test takes a long time on OS/2. | |
| 1748 lt_cv_sys_max_cmd_len=8192 | |
| 1749 ;; | |
| 1750 | |
| 1751 osf*) | |
| 1752 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
| 1753 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
| 1754 # nice to cause kernel panics so lets avoid the loop below. | |
| 1755 # First set a reasonable default. | |
| 1756 lt_cv_sys_max_cmd_len=16384 | |
| 1757 # | |
| 1758 if test -x /sbin/sysconfig; then | |
| 1759 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
| 1760 *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
| 1761 esac | |
| 1762 fi | |
| 1763 ;; | |
| 1764 sco3.2v5*) | |
| 1765 lt_cv_sys_max_cmd_len=102400 | |
| 1766 ;; | |
| 1767 sysv5* | sco5v6* | sysv4.2uw2*) | |
| 1768 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
| 1769 if test -n "$kargmax"; then | |
| 1770 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[[ ]]//'` | |
| 1771 else | |
| 1772 lt_cv_sys_max_cmd_len=32768 | |
| 1773 fi | |
| 1774 ;; | |
| 1775 *) | |
| 1776 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` | |
| 1777 if test -n "$lt_cv_sys_max_cmd_len" && \ | |
| 1778 test undefined != "$lt_cv_sys_max_cmd_len"; then | |
| 1779 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
| 1780 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
| 1781 else | |
| 1782 # Make teststring a little bigger before we do anything with it. | |
| 1783 # a 1K string should be a reasonable start. | |
| 1784 for i in 1 2 3 4 5 6 7 8; do | |
| 1785 teststring=$teststring$teststring | |
| 1786 done | |
| 1787 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
| 1788 # If test is not a shell built-in, we'll probably end up computing a | |
| 1789 # maximum length that is only half of the actual maximum length, but | |
| 1790 # we can't tell. | |
| 1791 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ | |
| 1792 = "X$teststring$teststring"; } >/dev/null 2>&1 && | |
| 1793 test 17 != "$i" # 1/2 MB should be enough | |
| 1794 do | |
| 1795 i=`expr $i + 1` | |
| 1796 teststring=$teststring$teststring | |
| 1797 done | |
| 1798 # Only check the string length outside the loop. | |
| 1799 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
| 1800 teststring= | |
| 1801 # Add a significant safety factor because C++ compilers can tack on | |
| 1802 # massive amounts of additional arguments before passing them to the | |
| 1803 # linker. It appears as though 1/2 is a usable value. | |
| 1804 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
| 1805 fi | |
| 1806 ;; | |
| 1807 esac | |
| 1808 ]) | |
| 1809 if test -n "$lt_cv_sys_max_cmd_len"; then | |
| 1810 AC_MSG_RESULT($lt_cv_sys_max_cmd_len) | |
| 1811 else | |
| 1812 AC_MSG_RESULT(none) | |
| 1813 fi | |
| 1814 max_cmd_len=$lt_cv_sys_max_cmd_len | |
| 1815 _LT_DECL([], [max_cmd_len], [0], | |
| 1816 [What is the maximum length of a command?]) | |
| 1817 ])# LT_CMD_MAX_LEN | |
| 1818 | |
| 1819 # Old name: | |
| 1820 AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN]) | |
| 1821 dnl aclocal-1.4 backwards compatibility: | |
| 1822 dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], []) | |
| 1823 | |
| 1824 | |
| 1825 # _LT_HEADER_DLFCN | |
| 1826 # ---------------- | |
| 1827 m4_defun([_LT_HEADER_DLFCN], | |
| 1828 [AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl | |
| 1829 ])# _LT_HEADER_DLFCN | |
| 1830 | |
| 1831 | |
| 1832 # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, | |
| 1833 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) | |
| 1834 # ---------------------------------------------------------------- | |
| 1835 m4_defun([_LT_TRY_DLOPEN_SELF], | |
| 1836 [m4_require([_LT_HEADER_DLFCN])dnl | |
| 1837 if test yes = "$cross_compiling"; then : | |
| 1838 [$4] | |
| 1839 else | |
| 1840 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
| 1841 lt_status=$lt_dlunknown | |
| 1842 cat > conftest.$ac_ext <<_LT_EOF | |
| 1843 [#line $LINENO "configure" | |
| 1844 #include "confdefs.h" | |
| 1845 | |
| 1846 #if HAVE_DLFCN_H | |
| 1847 #include <dlfcn.h> | |
| 1848 #endif | |
| 1849 | |
| 1850 #include <stdio.h> | |
| 1851 | |
| 1852 #ifdef RTLD_GLOBAL | |
| 1853 # define LT_DLGLOBAL RTLD_GLOBAL | |
| 1854 #else | |
| 1855 # ifdef DL_GLOBAL | |
| 1856 # define LT_DLGLOBAL DL_GLOBAL | |
| 1857 # else | |
| 1858 # define LT_DLGLOBAL 0 | |
| 1859 # endif | |
| 1860 #endif | |
| 1861 | |
| 1862 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
| 1863 find out it does not work in some platform. */ | |
| 1864 #ifndef LT_DLLAZY_OR_NOW | |
| 1865 # ifdef RTLD_LAZY | |
| 1866 # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
| 1867 # else | |
| 1868 # ifdef DL_LAZY | |
| 1869 # define LT_DLLAZY_OR_NOW DL_LAZY | |
| 1870 # else | |
| 1871 # ifdef RTLD_NOW | |
| 1872 # define LT_DLLAZY_OR_NOW RTLD_NOW | |
| 1873 # else | |
| 1874 # ifdef DL_NOW | |
| 1875 # define LT_DLLAZY_OR_NOW DL_NOW | |
| 1876 # else | |
| 1877 # define LT_DLLAZY_OR_NOW 0 | |
| 1878 # endif | |
| 1879 # endif | |
| 1880 # endif | |
| 1881 # endif | |
| 1882 #endif | |
| 1883 | |
| 1884 /* When -fvisibility=hidden is used, assume the code has been annotated | |
| 1885 correspondingly for the symbols needed. */ | |
| 1886 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
| 1887 int fnord () __attribute__((visibility("default"))); | |
| 1888 #endif | |
| 1889 | |
| 1890 int fnord () { return 42; } | |
| 1891 int main () | |
| 1892 { | |
| 1893 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
| 1894 int status = $lt_dlunknown; | |
| 1895 | |
| 1896 if (self) | |
| 1897 { | |
| 1898 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
| 1899 else | |
| 1900 { | |
| 1901 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
| 1902 else puts (dlerror ()); | |
| 1903 } | |
| 1904 /* dlclose (self); */ | |
| 1905 } | |
| 1906 else | |
| 1907 puts (dlerror ()); | |
| 1908 | |
| 1909 return status; | |
| 1910 }] | |
| 1911 _LT_EOF | |
| 1912 if AC_TRY_EVAL(ac_link) && test -s "conftest$ac_exeext" 2>/dev/null; then | |
| 1913 (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null | |
| 1914 lt_status=$? | |
| 1915 case x$lt_status in | |
| 1916 x$lt_dlno_uscore) $1 ;; | |
| 1917 x$lt_dlneed_uscore) $2 ;; | |
| 1918 x$lt_dlunknown|x*) $3 ;; | |
| 1919 esac | |
| 1920 else : | |
| 1921 # compilation failed | |
| 1922 $3 | |
| 1923 fi | |
| 1924 fi | |
| 1925 rm -fr conftest* | |
| 1926 ])# _LT_TRY_DLOPEN_SELF | |
| 1927 | |
| 1928 | |
| 1929 # LT_SYS_DLOPEN_SELF | |
| 1930 # ------------------ | |
| 1931 AC_DEFUN([LT_SYS_DLOPEN_SELF], | |
| 1932 [m4_require([_LT_HEADER_DLFCN])dnl | |
| 1933 if test yes != "$enable_dlopen"; then | |
| 1934 enable_dlopen=unknown | |
| 1935 enable_dlopen_self=unknown | |
| 1936 enable_dlopen_self_static=unknown | |
| 1937 else | |
| 1938 lt_cv_dlopen=no | |
| 1939 lt_cv_dlopen_libs= | |
| 1940 | |
| 1941 case $host_os in | |
| 1942 beos*) | |
| 1943 lt_cv_dlopen=load_add_on | |
| 1944 lt_cv_dlopen_libs= | |
| 1945 lt_cv_dlopen_self=yes | |
| 1946 ;; | |
| 1947 | |
| 1948 mingw* | pw32* | cegcc*) | |
| 1949 lt_cv_dlopen=LoadLibrary | |
| 1950 lt_cv_dlopen_libs= | |
| 1951 ;; | |
| 1952 | |
| 1953 cygwin*) | |
| 1954 lt_cv_dlopen=dlopen | |
| 1955 lt_cv_dlopen_libs= | |
| 1956 ;; | |
| 1957 | |
| 1958 darwin*) | |
| 1959 # if libdl is installed we need to link against it | |
| 1960 AC_CHECK_LIB([dl], [dlopen], | |
| 1961 [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl],[ | |
| 1962 lt_cv_dlopen=dyld | |
| 1963 lt_cv_dlopen_libs= | |
| 1964 lt_cv_dlopen_self=yes | |
| 1965 ]) | |
| 1966 ;; | |
| 1967 | |
| 1968 tpf*) | |
| 1969 # Don't try to run any link tests for TPF. We know it's impossible | |
| 1970 # because TPF is a cross-compiler, and we know how we open DSOs. | |
| 1971 lt_cv_dlopen=dlopen | |
| 1972 lt_cv_dlopen_libs= | |
| 1973 lt_cv_dlopen_self=no | |
| 1974 ;; | |
| 1975 | |
| 1976 *) | |
| 1977 AC_CHECK_FUNC([shl_load], | |
| 1978 [lt_cv_dlopen=shl_load], | |
| 1979 [AC_CHECK_LIB([dld], [shl_load], | |
| 1980 [lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld], | |
| 1981 [AC_CHECK_FUNC([dlopen], | |
| 1982 [lt_cv_dlopen=dlopen], | |
| 1983 [AC_CHECK_LIB([dl], [dlopen], | |
| 1984 [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl], | |
| 1985 [AC_CHECK_LIB([svld], [dlopen], | |
| 1986 [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld], | |
| 1987 [AC_CHECK_LIB([dld], [dld_link], | |
| 1988 [lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld]) | |
| 1989 ]) | |
| 1990 ]) | |
| 1991 ]) | |
| 1992 ]) | |
| 1993 ]) | |
| 1994 ;; | |
| 1995 esac | |
| 1996 | |
| 1997 if test no = "$lt_cv_dlopen"; then | |
| 1998 enable_dlopen=no | |
| 1999 else | |
| 2000 enable_dlopen=yes | |
| 2001 fi | |
| 2002 | |
| 2003 case $lt_cv_dlopen in | |
| 2004 dlopen) | |
| 2005 save_CPPFLAGS=$CPPFLAGS | |
| 2006 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
| 2007 | |
| 2008 save_LDFLAGS=$LDFLAGS | |
| 2009 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
| 2010 | |
| 2011 save_LIBS=$LIBS | |
| 2012 LIBS="$lt_cv_dlopen_libs $LIBS" | |
| 2013 | |
| 2014 AC_CACHE_CHECK([whether a program can dlopen itself], | |
| 2015 lt_cv_dlopen_self, [dnl | |
| 2016 _LT_TRY_DLOPEN_SELF( | |
| 2017 lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, | |
| 2018 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) | |
| 2019 ]) | |
| 2020 | |
| 2021 if test yes = "$lt_cv_dlopen_self"; then | |
| 2022 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
| 2023 AC_CACHE_CHECK([whether a statically linked program can dlopen itself], | |
| 2024 lt_cv_dlopen_self_static, [dnl | |
| 2025 _LT_TRY_DLOPEN_SELF( | |
| 2026 lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, | |
| 2027 lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) | |
| 2028 ]) | |
| 2029 fi | |
| 2030 | |
| 2031 CPPFLAGS=$save_CPPFLAGS | |
| 2032 LDFLAGS=$save_LDFLAGS | |
| 2033 LIBS=$save_LIBS | |
| 2034 ;; | |
| 2035 esac | |
| 2036 | |
| 2037 case $lt_cv_dlopen_self in | |
| 2038 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
| 2039 *) enable_dlopen_self=unknown ;; | |
| 2040 esac | |
| 2041 | |
| 2042 case $lt_cv_dlopen_self_static in | |
| 2043 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
| 2044 *) enable_dlopen_self_static=unknown ;; | |
| 2045 esac | |
| 2046 fi | |
| 2047 _LT_DECL([dlopen_support], [enable_dlopen], [0], | |
| 2048 [Whether dlopen is supported]) | |
| 2049 _LT_DECL([dlopen_self], [enable_dlopen_self], [0], | |
| 2050 [Whether dlopen of programs is supported]) | |
| 2051 _LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0], | |
| 2052 [Whether dlopen of statically linked programs is supported]) | |
| 2053 ])# LT_SYS_DLOPEN_SELF | |
| 2054 | |
| 2055 # Old name: | |
| 2056 AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF]) | |
| 2057 dnl aclocal-1.4 backwards compatibility: | |
| 2058 dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], []) | |
| 2059 | |
| 2060 | |
| 2061 # _LT_COMPILER_C_O([TAGNAME]) | |
| 2062 # --------------------------- | |
| 2063 # Check to see if options -c and -o are simultaneously supported by compiler. | |
| 2064 # This macro does not hard code the compiler like AC_PROG_CC_C_O. | |
| 2065 m4_defun([_LT_COMPILER_C_O], | |
| 2066 [m4_require([_LT_DECL_SED])dnl | |
| 2067 m4_require([_LT_FILEUTILS_DEFAULTS])dnl | |
| 2068 m4_require([_LT_TAG_COMPILER])dnl | |
| 2069 AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], | |
| 2070 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)], | |
| 2071 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no | |
| 2072 $RM -r conftest 2>/dev/null | |
| 2073 mkdir conftest | |
| 2074 cd conftest | |
| 2075 mkdir out | |
| 2076 echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
| 2077 | |
| 2078 lt_compiler_flag="-o out/conftest2.$ac_objext" | |
| 2079 # Insert the option either (1) after the last *FLAGS variable, or | |
| 2080 # (2) before a word containing "conftest.", or (3) at the end. | |
| 2081 # Note that $ac_compile itself does not contain backslashes and begins | |
| 2082 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
| 2083 lt_compile=`echo "$ac_compile" | $SED \ | |
| 2084 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
| 2085 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ | |
| 2086 -e 's:$: $lt_compiler_flag:'` | |
| 2087 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) | |
| 2088 (eval "$lt_compile" 2>out/conftest.err) | |
| 2089 ac_status=$? | |
| 2090 cat out/conftest.err >&AS_MESSAGE_LOG_FD | |
| 2091 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD | |
| 2092 if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
| 2093 then | |
| 2094 # The compiler can only warn and ignore the option if not recognized | |
| 2095 # So say no if there are warnings | |
| 2096 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
| 2097 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
| 2098 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
| 2099 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes | |
| 2100 fi | |
| 2101 fi | |
| 2102 chmod u+w . 2>&AS_MESSAGE_LOG_FD | |
| 2103 $RM conftest* | |
| 2104 # SGI C++ compiler will create directory out/ii_files/ for | |
| 2105 # template instantiation | |
| 2106 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
| 2107 $RM out/* && rmdir out | |
| 2108 cd .. | |
| 2109 $RM -r conftest | |
| 2110 $RM conftest* | |
| 2111 ]) | |
| 2112 _LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1], | |
| 2113 [Does compiler simultaneously support -c and -o options?]) | |
| 2114 ])# _LT_COMPILER_C_O | |
| 2115 | |
| 2116 | |
| 2117 # _LT_COMPILER_FILE_LOCKS([TAGNAME]) | |
| 2118 # ---------------------------------- | |
| 2119 # Check to see if we can do hard links to lock some files if needed | |
| 2120 m4_defun([_LT_COMPILER_FILE_LOCKS], | |
| 2121 [m4_require([_LT_ENABLE_LOCK])dnl | |
| 2122 m4_require([_LT_FILEUTILS_DEFAULTS])dnl | |
| 2123 _LT_COMPILER_C_O([$1]) | |
| 2124 | |
| 2125 hard_links=nottested | |
| 2126 if test no = "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" && test no != "$need_locks"; then | |
| 2127 # do not overwrite the value of need_locks provided by the user | |
| 2128 AC_MSG_CHECKING([if we can lock with hard links]) | |
| 2129 hard_links=yes | |
| 2130 $RM conftest* | |
| 2131 ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
| 2132 touch conftest.a | |
| 2133 ln conftest.a conftest.b 2>&5 || hard_links=no | |
| 2134 ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
| 2135 AC_MSG_RESULT([$hard_links]) | |
| 2136 if test no = "$hard_links"; then | |
| 2137 AC_MSG_WARN(['$CC' does not support '-c -o', so 'make -j' may be unsafe]) | |
| 2138 need_locks=warn | |
| 2139 fi | |
| 2140 else | |
| 2141 need_locks=no | |
| 2142 fi | |
| 2143 _LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?]) | |
| 2144 ])# _LT_COMPILER_FILE_LOCKS | |
| 2145 | |
| 2146 | |
| 2147 # _LT_CHECK_OBJDIR | |
| 2148 # ---------------- | |
| 2149 m4_defun([_LT_CHECK_OBJDIR], | |
| 2150 [AC_CACHE_CHECK([for objdir], [lt_cv_objdir], | |
| 2151 [rm -f .libs 2>/dev/null | |
| 2152 mkdir .libs 2>/dev/null | |
| 2153 if test -d .libs; then | |
| 2154 lt_cv_objdir=.libs | |
| 2155 else | |
| 2156 # MS-DOS does not allow filenames that begin with a dot. | |
| 2157 lt_cv_objdir=_libs | |
| 2158 fi | |
| 2159 rmdir .libs 2>/dev/null]) | |
| 2160 objdir=$lt_cv_objdir | |
| 2161 _LT_DECL([], [objdir], [0], | |
| 2162 [The name of the directory that contains temporary libtool files])dnl | |
| 2163 m4_pattern_allow([LT_OBJDIR])dnl | |
| 2164 AC_DEFINE_UNQUOTED([LT_OBJDIR], "$lt_cv_objdir/", | |
| 2165 [Define to the sub-directory where libtool stores uninstalled libraries.]) | |
| 2166 ])# _LT_CHECK_OBJDIR | |
| 2167 | |
| 2168 | |
| 2169 # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME]) | |
| 2170 # -------------------------------------- | |
| 2171 # Check hardcoding attributes. | |
| 2172 m4_defun([_LT_LINKER_HARDCODE_LIBPATH], | |
| 2173 [AC_MSG_CHECKING([how to hardcode library paths into programs]) | |
| 2174 _LT_TAGVAR(hardcode_action, $1)= | |
| 2175 if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" || | |
| 2176 test -n "$_LT_TAGVAR(runpath_var, $1)" || | |
| 2177 test yes = "$_LT_TAGVAR(hardcode_automatic, $1)"; then | |
| 2178 | |
| 2179 # We can hardcode non-existent directories. | |
| 2180 if test no != "$_LT_TAGVAR(hardcode_direct, $1)" && | |
| 2181 # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
| 2182 # have to relink, otherwise we might link with an installed library | |
| 2183 # when we should be linking with a yet-to-be-installed one | |
| 2184 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" && | |
| 2185 test no != "$_LT_TAGVAR(hardcode_minus_L, $1)"; then | |
| 2186 # Linking always hardcodes the temporary library directory. | |
| 2187 _LT_TAGVAR(hardcode_action, $1)=relink | |
| 2188 else | |
| 2189 # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
| 2190 _LT_TAGVAR(hardcode_action, $1)=immediate | |
| 2191 fi | |
| 2192 else | |
| 2193 # We cannot hardcode anything, or else we can only hardcode existing | |
| 2194 # directories. | |
| 2195 _LT_TAGVAR(hardcode_action, $1)=unsupported | |
| 2196 fi | |
| 2197 AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)]) | |
| 2198 | |
| 2199 if test relink = "$_LT_TAGVAR(hardcode_action, $1)" || | |
| 2200 test yes = "$_LT_TAGVAR(inherit_rpath, $1)"; then | |
| 2201 # Fast installation is not supported | |
| 2202 enable_fast_install=no | |
| 2203 elif test yes = "$shlibpath_overrides_runpath" || | |
| 2204 test no = "$enable_shared"; then | |
| 2205 # Fast installation is not necessary | |
| 2206 enable_fast_install=needless | |
| 2207 fi | |
| 2208 _LT_TAGDECL([], [hardcode_action], [0], | |
| 2209 [How to hardcode a shared library path into an executable]) | |
| 2210 ])# _LT_LINKER_HARDCODE_LIBPATH | |
| 2211 | |
| 2212 | |
| 2213 # _LT_CMD_STRIPLIB | |
| 2214 # ---------------- | |
| 2215 m4_defun([_LT_CMD_STRIPLIB], | |
| 2216 [m4_require([_LT_DECL_EGREP]) | |
| 2217 striplib= | |
| 2218 old_striplib= | |
| 2219 AC_MSG_CHECKING([whether stripping libraries is possible]) | |
| 2220 if test -z "$STRIP"; then | |
| 2221 AC_MSG_RESULT([no]) | |
| 2222 else | |
| 2223 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | |
| 2224 old_striplib="$STRIP --strip-debug" | |
| 2225 striplib="$STRIP --strip-unneeded" | |
| 2226 AC_MSG_RESULT([yes]) | |
| 2227 else | |
| 2228 case $host_os in | |
| 2229 darwin*) | |
| 2230 # FIXME - insert some real tests, host_os isn't really good enough | |
| 2231 striplib="$STRIP -x" | |
| 2232 old_striplib="$STRIP -S" | |
| 2233 AC_MSG_RESULT([yes]) | |
| 2234 ;; | |
| 2235 freebsd*) | |
| 2236 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then | |
| 2237 old_striplib="$STRIP --strip-debug" | |
| 2238 striplib="$STRIP --strip-unneeded" | |
| 2239 AC_MSG_RESULT([yes]) | |
| 2240 else | |
| 2241 AC_MSG_RESULT([no]) | |
| 2242 fi | |
| 2243 ;; | |
| 2244 *) | |
| 2245 AC_MSG_RESULT([no]) | |
| 2246 ;; | |
| 2247 esac | |
| 2248 fi | |
| 2249 fi | |
| 2250 _LT_DECL([], [old_striplib], [1], [Commands to strip libraries]) | |
| 2251 _LT_DECL([], [striplib], [1]) | |
| 2252 ])# _LT_CMD_STRIPLIB | |
| 2253 | |
| 2254 | |
| 2255 # _LT_PREPARE_MUNGE_PATH_LIST | |
| 2256 # --------------------------- | |
| 2257 # Make sure func_munge_path_list() is defined correctly. | |
| 2258 m4_defun([_LT_PREPARE_MUNGE_PATH_LIST], | |
| 2259 [[# func_munge_path_list VARIABLE PATH | |
| 2260 # ----------------------------------- | |
| 2261 # VARIABLE is name of variable containing _space_ separated list of | |
| 2262 # directories to be munged by the contents of PATH, which is string | |
| 2263 # having a format: | |
| 2264 # "DIR[:DIR]:" | |
| 2265 # string "DIR[ DIR]" will be prepended to VARIABLE | |
| 2266 # ":DIR[:DIR]" | |
| 2267 # string "DIR[ DIR]" will be appended to VARIABLE | |
| 2268 # "DIRP[:DIRP]::[DIRA:]DIRA" | |
| 2269 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string | |
| 2270 # "DIRA[ DIRA]" will be appended to VARIABLE | |
| 2271 # "DIR[:DIR]" | |
| 2272 # VARIABLE will be replaced by "DIR[ DIR]" | |
| 2273 func_munge_path_list () | |
| 2274 { | |
| 2275 case x@S|@2 in | |
| 2276 x) | |
| 2277 ;; | |
| 2278 *:) | |
| 2279 eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'` \@S|@@S|@1\" | |
| 2280 ;; | |
| 2281 x:*) | |
| 2282 eval @S|@1=\"\@S|@@S|@1 `$ECHO @S|@2 | $SED 's/:/ /g'`\" | |
| 2283 ;; | |
| 2284 *::*) | |
| 2285 eval @S|@1=\"\@S|@@S|@1\ `$ECHO @S|@2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" | |
| 2286 eval @S|@1=\"`$ECHO @S|@2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \@S|@@S|@1\" | |
| 2287 ;; | |
| 2288 *) | |
| 2289 eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'`\" | |
| 2290 ;; | |
| 2291 esac | |
| 2292 } | |
| 2293 ]])# _LT_PREPARE_PATH_LIST | |
| 2294 | |
| 2295 | |
| 2296 # _LT_SYS_DYNAMIC_LINKER([TAG]) | |
| 2297 # ----------------------------- | |
| 2298 # PORTME Fill in your ld.so characteristics | |
| 2299 m4_defun([_LT_SYS_DYNAMIC_LINKER], | |
| 2300 [AC_REQUIRE([AC_CANONICAL_HOST])dnl | |
| 2301 m4_require([_LT_DECL_EGREP])dnl | |
| 2302 m4_require([_LT_FILEUTILS_DEFAULTS])dnl | |
| 2303 m4_require([_LT_DECL_OBJDUMP])dnl | |
| 2304 m4_require([_LT_DECL_SED])dnl | |
| 2305 m4_require([_LT_CHECK_SHELL_FEATURES])dnl | |
| 2306 m4_require([_LT_PREPARE_MUNGE_PATH_LIST])dnl | |
| 2307 AC_MSG_CHECKING([dynamic linker characteristics]) | |
| 2308 m4_if([$1], | |
| 2309 [], [ | |
| 2310 if test yes = "$GCC"; then | |
| 2311 case $host_os in | |
| 2312 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; | |
| 2313 *) lt_awk_arg='/^libraries:/' ;; | |
| 2314 esac | |
| 2315 case $host_os in | |
| 2316 mingw* | cegcc*) lt_sed_strip_eq='s|=\([[A-Za-z]]:\)|\1|g' ;; | |
| 2317 *) lt_sed_strip_eq='s|=/|/|g' ;; | |
| 2318 esac | |
| 2319 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | |
| 2320 case $lt_search_path_spec in | |
| 2321 *\;*) | |
| 2322 # if the path contains ";" then we assume it to be the separator | |
| 2323 # otherwise default to the standard path separator (i.e. ":") - it is | |
| 2324 # assumed that no part of a normal pathname contains ";" but that should | |
| 2325 # okay in the real world where ";" in dirpaths is itself problematic. | |
| 2326 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` | |
| 2327 ;; | |
| 2328 *) | |
| 2329 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` | |
| 2330 ;; | |
| 2331 esac | |
| 2332 # Ok, now we have the path, separated by spaces, we can step through it | |
| 2333 # and add multilib dir if necessary... | |
| 2334 lt_tmp_lt_search_path_spec= | |
| 2335 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
| 2336 # ...but if some path component already ends with the multilib dir we assume | |
| 2337 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). | |
| 2338 case "$lt_multi_os_dir; $lt_search_path_spec " in | |
| 2339 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) | |
| 2340 lt_multi_os_dir= | |
| 2341 ;; | |
| 2342 esac | |
| 2343 for lt_sys_path in $lt_search_path_spec; do | |
| 2344 if test -d "$lt_sys_path$lt_multi_os_dir"; then | |
| 2345 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" | |
| 2346 elif test -n "$lt_multi_os_dir"; then | |
| 2347 test -d "$lt_sys_path" && \ | |
| 2348 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
| 2349 fi | |
| 2350 done | |
| 2351 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' | |
| 2352 BEGIN {RS = " "; FS = "/|\n";} { | |
| 2353 lt_foo = ""; | |
| 2354 lt_count = 0; | |
| 2355 for (lt_i = NF; lt_i > 0; lt_i--) { | |
| 2356 if ($lt_i != "" && $lt_i != ".") { | |
| 2357 if ($lt_i == "..") { | |
| 2358 lt_count++; | |
| 2359 } else { | |
| 2360 if (lt_count == 0) { | |
| 2361 lt_foo = "/" $lt_i lt_foo; | |
| 2362 } else { | |
| 2363 lt_count--; | |
| 2364 } | |
| 2365 } | |
| 2366 } | |
| 2367 } | |
| 2368 if (lt_foo != "") { lt_freq[[lt_foo]]++; } | |
| 2369 if (lt_freq[[lt_foo]] == 1) { print lt_foo; } | |
| 2370 }'` | |
| 2371 # AWK program above erroneously prepends '/' to C:/dos/paths | |
| 2372 # for these hosts. | |
| 2373 case $host_os in | |
| 2374 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | |
| 2375 $SED 's|/\([[A-Za-z]]:\)|\1|g'` ;; | |
| 2376 esac | |
| 2377 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | |
| 2378 else | |
| 2379 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
| 2380 fi]) | |
| 2381 library_names_spec= | |
| 2382 libname_spec='lib$name' | |
| 2383 soname_spec= | |
| 2384 shrext_cmds=.so | |
| 2385 postinstall_cmds= | |
| 2386 postuninstall_cmds= | |
| 2387 finish_cmds= | |
| 2388 finish_eval= | |
| 2389 shlibpath_var= | |
| 2390 shlibpath_overrides_runpath=unknown | |
| 2391 version_type=none | |
| 2392 dynamic_linker="$host_os ld.so" | |
| 2393 sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
| 2394 need_lib_prefix=unknown | |
| 2395 hardcode_into_libs=no | |
| 2396 | |
| 2397 # when you set need_version to no, make sure it does not cause -set_version | |
| 2398 # flags to be left without arguments | |
| 2399 need_version=unknown | |
| 2400 | |
| 2401 AC_ARG_VAR([LT_SYS_LIBRARY_PATH], | |
| 2402 [User-defined run-time library search path.]) | |
| 2403 | |
| 2404 case $host_os in | |
| 2405 aix3*) | |
| 2406 version_type=linux # correct to gnu/linux during the next big refactor | |
| 2407 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' | |
| 2408 shlibpath_var=LIBPATH | |
| 2409 | |
| 2410 # AIX 3 has no versioning support, so we append a major version to the name. | |
| 2411 soname_spec='$libname$release$shared_ext$major' | |
| 2412 ;; | |
| 2413 | |
| 2414 aix[[4-9]]*) | |
| 2415 version_type=linux # correct to gnu/linux during the next big refactor | |
| 2416 need_lib_prefix=no | |
| 2417 need_version=no | |
| 2418 hardcode_into_libs=yes | |
| 2419 if test ia64 = "$host_cpu"; then | |
| 2420 # AIX 5 supports IA64 | |
| 2421 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' | |
| 2422 shlibpath_var=LD_LIBRARY_PATH | |
| 2423 else | |
| 2424 # With GCC up to 2.95.x, collect2 would create an import file | |
| 2425 # for dependence libraries. The import file would start with | |
| 2426 # the line '#! .'. This would cause the generated library to | |
| 2427 # depend on '.', always an invalid library. This was fixed in | |
| 2428 # development snapshots of GCC prior to 3.0. | |
| 2429 case $host_os in | |
| 2430 aix4 | aix4.[[01]] | aix4.[[01]].*) | |
| 2431 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
| 2432 echo ' yes ' | |
| 2433 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then | |
| 2434 : | |
| 2435 else | |
| 2436 can_build_shared=no | |
| 2437 fi | |
| 2438 ;; | |
| 2439 esac | |
| 2440 # Using Import Files as archive members, it is possible to support | |
| 2441 # filename-based versioning of shared library archives on AIX. While | |
| 2442 # this would work for both with and without runtime linking, it will | |
| 2443 # prevent static linking of such archives. So we do filename-based | |
| 2444 # shared library versioning with .so extension only, which is used | |
| 2445 # when both runtime linking and shared linking is enabled. | |
| 2446 # Unfortunately, runtime linking may impact performance, so we do | |
| 2447 # not want this to be the default eventually. Also, we use the | |
| 2448 # versioned .so libs for executables only if there is the -brtl | |
| 2449 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. | |
| 2450 # To allow for filename-based versioning support, we need to create | |
| 2451 # libNAME.so.V as an archive file, containing: | |
| 2452 # *) an Import File, referring to the versioned filename of the | |
| 2453 # archive as well as the shared archive member, telling the | |
| 2454 # bitwidth (32 or 64) of that shared object, and providing the | |
| 2455 # list of exported symbols of that shared object, eventually | |
| 2456 # decorated with the 'weak' keyword | |
| 2457 # *) the shared object with the F_LOADONLY flag set, to really avoid | |
| 2458 # it being seen by the linker. | |
| 2459 # At run time we better use the real file rather than another symlink, | |
| 2460 # but for link time we create the symlink libNAME.so -> libNAME.so.V | |
| 2461 | |
| 2462 case $with_aix_soname,$aix_use_runtimelinking in | |
| 2463 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct | |
| 2464 # soname into executable. Probably we can add versioning support to | |
| 2465 # collect2, so additional links can be useful in future. | |
| 2466 aix,yes) # traditional libtool | |
| 2467 dynamic_linker='AIX unversionable lib.so' | |
| 2468 # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
| 2469 # instead of lib<name>.a to let people know that these are not | |
| 2470 # typical AIX shared libraries. | |
| 2471 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
| 2472 ;; | |
| 2473 aix,no) # traditional AIX only | |
| 2474 dynamic_linker='AIX lib.a[(]lib.so.V[)]' | |
| 2475 # We preserve .a as extension for shared libraries through AIX4.2 | |
| 2476 # and later when we are not doing run time linking. | |
| 2477 library_names_spec='$libname$release.a $libname.a' | |
| 2478 soname_spec='$libname$release$shared_ext$major' | |
| 2479 ;; | |
| 2480 svr4,*) # full svr4 only | |
| 2481 dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)]" | |
| 2482 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' | |
| 2483 # We do not specify a path in Import Files, so LIBPATH fires. | |
| 2484 shlibpath_overrides_runpath=yes | |
| 2485 ;; | |
| 2486 *,yes) # both, prefer svr4 | |
| 2487 dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)], lib.a[(]lib.so.V[)]" | |
| 2488 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' | |
| 2489 # unpreferred sharedlib libNAME.a needs extra handling | |
| 2490 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"' | |
| 2491 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"' | |
| 2492 # We do not specify a path in Import Files, so LIBPATH fires. | |
| 2493 shlibpath_overrides_runpath=yes | |
| 2494 ;; | |
| 2495 *,no) # both, prefer aix | |
| 2496 dynamic_linker="AIX lib.a[(]lib.so.V[)], lib.so.V[(]$shared_archive_member_spec.o[)]" | |
| 2497 library_names_spec='$libname$release.a $libname.a' | |
| 2498 soname_spec='$libname$release$shared_ext$major' | |
| 2499 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling | |
| 2500 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)' | |
| 2501 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"' | |
| 2502 ;; | |
| 2503 esac | |
| 2504 shlibpath_var=LIBPATH | |
| 2505 fi | |
| 2506 ;; | |
| 2507 | |
| 2508 amigaos*) | |
| 2509 case $host_cpu in | |
| 2510 powerpc) | |
| 2511 # Since July 2007 AmigaOS4 officially supports .so libraries. | |
| 2512 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
| 2513 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
| 2514 ;; | |
| 2515 m68k) | |
| 2516 library_names_spec='$libname.ixlibrary $libname.a' | |
| 2517 # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
| 2518 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' | |
| 2519 ;; | |
| 2520 esac | |
| 2521 ;; | |
| 2522 | |
| 2523 beos*) | |
| 2524 library_names_spec='$libname$shared_ext' | |
| 2525 dynamic_linker="$host_os ld.so" | |
| 2526 shlibpath_var=LIBRARY_PATH | |
| 2527 ;; | |
| 2528 | |
| 2529 bsdi[[45]]*) | |
| 2530 version_type=linux # correct to gnu/linux during the next big refactor | |
| 2531 need_version=no | |
| 2532 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
| 2533 soname_spec='$libname$release$shared_ext$major' | |
| 2534 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
| 2535 shlibpath_var=LD_LIBRARY_PATH | |
| 2536 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
| 2537 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
| 2538 # the default ld.so.conf also contains /usr/contrib/lib and | |
| 2539 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
| 2540 # libtool to hard-code these into programs | |
| 2541 ;; | |
| 2542 | |
| 2543 cygwin* | mingw* | pw32* | cegcc*) | |
| 2544 version_type=windows | |
| 2545 shrext_cmds=.dll | |
| 2546 need_version=no | |
| 2547 need_lib_prefix=no | |
| 2548 | |
| 2549 case $GCC,$cc_basename in | |
| 2550 yes,*) | |
| 2551 # gcc | |
| 2552 library_names_spec='$libname.dll.a' | |
| 2553 # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
| 2554 postinstall_cmds='base_file=`basename \$file`~ | |
| 2555 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ | |
| 2556 dldir=$destdir/`dirname \$dlpath`~ | |
| 2557 test -d \$dldir || mkdir -p \$dldir~ | |
| 2558 $install_prog $dir/$dlname \$dldir/$dlname~ | |
| 2559 chmod a+x \$dldir/$dlname~ | |
| 2560 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
| 2561 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
| 2562 fi' | |
| 2563 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
| 2564 dlpath=$dir/\$dldll~ | |
| 2565 $RM \$dlpath' | |
| 2566 shlibpath_overrides_runpath=yes | |
| 2567 | |
| 2568 case $host_os in | |
| 2569 cygwin*) | |
| 2570 # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
| 2571 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' | |
| 2572 m4_if([$1], [],[ | |
| 2573 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"]) | |
| 2574 ;; | |
| 2575 mingw* | cegcc*) | |
| 2576 # MinGW DLLs use traditional 'lib' prefix | |
| 2577 soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' | |
| 2578 ;; | |
| 2579 pw32*) | |
| 2580 # pw32 DLLs use 'pw' prefix rather than 'lib' | |
| 2581 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' | |
| 2582 ;; | |
| 2583 esac | |
| 2584 dynamic_linker='Win32 ld.exe' | |
| 2585 ;; | |
| 2586 | |
| 2587 *,cl* | *,icl*) | |
| 2588 # Native MSVC or ICC | |
| 2589 libname_spec='$name' | |
| 2590 soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' | |
| 2591 library_names_spec='$libname.dll.lib' | |
| 2592 | |
| 2593 case $build_os in | |
| 2594 mingw*) | |
| 2595 sys_lib_search_path_spec= | |
| 2596 lt_save_ifs=$IFS | |
| 2597 IFS=';' | |
| 2598 for lt_path in $LIB | |
| 2599 do | |
| 2600 IFS=$lt_save_ifs | |
| 2601 # Let DOS variable expansion print the short 8.3 style file name. | |
| 2602 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` | |
| 2603 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" | |
| 2604 done | |
| 2605 IFS=$lt_save_ifs | |
| 2606 # Convert to MSYS style. | |
| 2607 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'` | |
| 2608 ;; | |
| 2609 cygwin*) | |
| 2610 # Convert to unix form, then to dos form, then back to unix form | |
| 2611 # but this time dos style (no spaces!) so that the unix form looks | |
| 2612 # like /cygdrive/c/PROGRA~1:/cygdr... | |
| 2613 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` | |
| 2614 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` | |
| 2615 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
| 2616 ;; | |
| 2617 *) | |
| 2618 sys_lib_search_path_spec=$LIB | |
| 2619 if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then | |
| 2620 # It is most probably a Windows format PATH. | |
| 2621 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
| 2622 else | |
| 2623 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
| 2624 fi | |
| 2625 # FIXME: find the short name or the path components, as spaces are | |
| 2626 # common. (e.g. "Program Files" -> "PROGRA~1") | |
| 2627 ;; | |
| 2628 esac | |
| 2629 | |
| 2630 # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
| 2631 postinstall_cmds='base_file=`basename \$file`~ | |
| 2632 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ | |
| 2633 dldir=$destdir/`dirname \$dlpath`~ | |
| 2634 test -d \$dldir || mkdir -p \$dldir~ | |
| 2635 $install_prog $dir/$dlname \$dldir/$dlname' | |
| 2636 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
| 2637 dlpath=$dir/\$dldll~ | |
| 2638 $RM \$dlpath' | |
| 2639 shlibpath_overrides_runpath=yes | |
| 2640 dynamic_linker='Win32 link.exe' | |
| 2641 ;; | |
| 2642 | |
| 2643 *) | |
| 2644 # Assume MSVC and ICC wrapper | |
| 2645 library_names_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext $libname.lib' | |
| 2646 dynamic_linker='Win32 ld.exe' | |
| 2647 ;; | |
| 2648 esac | |
| 2649 # FIXME: first we should search . and the directory the executable is in | |
| 2650 shlibpath_var=PATH | |
| 2651 ;; | |
| 2652 | |
| 2653 darwin* | rhapsody*) | |
| 2654 dynamic_linker="$host_os dyld" | |
| 2655 version_type=darwin | |
| 2656 need_lib_prefix=no | |
| 2657 need_version=no | |
| 2658 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' | |
| 2659 soname_spec='$libname$release$major$shared_ext' | |
| 2660 shlibpath_overrides_runpath=yes | |
| 2661 shlibpath_var=DYLD_LIBRARY_PATH | |
| 2662 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
| 2663 m4_if([$1], [],[ | |
| 2664 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) | |
| 2665 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
| 2666 ;; | |
| 2667 | |
| 2668 dgux*) | |
| 2669 version_type=linux # correct to gnu/linux during the next big refactor | |
| 2670 need_lib_prefix=no | |
| 2671 need_version=no | |
| 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' | |
| 2674 shlibpath_var=LD_LIBRARY_PATH | |
| 2675 ;; | |
| 2676 | |
| 2677 freebsd* | dragonfly* | midnightbsd*) | |
| 2678 # DragonFly does not have aout. When/if they implement a new | |
| 2679 # versioning mechanism, adjust this. | |
| 2680 if test -x /usr/bin/objformat; then | |
| 2681 objformat=`/usr/bin/objformat` | |
| 2682 else | |
| 2683 case $host_os in | |
| 2684 freebsd[[23]].*) objformat=aout ;; | |
| 2685 *) objformat=elf ;; | |
| 2686 esac | |
| 2687 fi | |
| 2688 version_type=freebsd-$objformat | |
| 2689 case $version_type in | |
| 2690 freebsd-elf*) | |
| 2691 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
| 2692 soname_spec='$libname$release$shared_ext$major' | |
| 2693 need_version=no | |
| 2694 need_lib_prefix=no | |
| 2695 ;; | |
| 2696 freebsd-*) | |
| 2697 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' | |
| 2698 need_version=yes | |
| 2699 ;; | |
| 2700 esac | |
| 2701 shlibpath_var=LD_LIBRARY_PATH | |
| 2702 case $host_os in | |
| 2703 freebsd2.*) | |
| 2704 shlibpath_overrides_runpath=yes | |
| 2705 ;; | |
| 2706 freebsd3.[[01]]* | freebsdelf3.[[01]]*) | |
| 2707 shlibpath_overrides_runpath=yes | |
| 2708 hardcode_into_libs=yes | |
| 2709 ;; | |
| 2710 freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ | |
| 2711 freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) | |
| 2712 shlibpath_overrides_runpath=no | |
| 2713 hardcode_into_libs=yes | |
| 2714 ;; | |
| 2715 *) # from 4.6 on, and DragonFly | |
| 2716 shlibpath_overrides_runpath=yes | |
| 2717 hardcode_into_libs=yes | |
| 2718 ;; | |
| 2719 esac | |
| 2720 ;; | |
| 2721 | |
| 2722 haiku*) | |
| 2723 version_type=linux # correct to gnu/linux during the next big refactor | |
| 2724 need_lib_prefix=no | |
| 2725 need_version=no | |
| 2726 dynamic_linker="$host_os runtime_loader" | |
| 2727 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
| 2728 soname_spec='$libname$release$shared_ext$major' | |
| 2729 shlibpath_var=LIBRARY_PATH | |
| 2730 shlibpath_overrides_runpath=no | |
| 2731 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' | |
| 2732 hardcode_into_libs=yes | |
| 2733 ;; | |
| 2734 | |
| 2735 hpux9* | hpux10* | hpux11*) | |
| 2736 # Give a soname corresponding to the major version so that dld.sl refuses to | |
| 2737 # link against other versions. | |
| 2738 version_type=sunos | |
| 2739 need_lib_prefix=no | |
| 2740 need_version=no | |
| 2741 case $host_cpu in | |
| 2742 ia64*) | |
| 2743 shrext_cmds='.so' | |
| 2744 hardcode_into_libs=yes | |
| 2745 dynamic_linker="$host_os dld.so" | |
| 2746 shlibpath_var=LD_LIBRARY_PATH | |
| 2747 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
| 2748 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
| 2749 soname_spec='$libname$release$shared_ext$major' | |
| 2750 if test 32 = "$HPUX_IA64_MODE"; then | |
| 2751 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
| 2752 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 | |
| 2753 else | |
| 2754 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
| 2755 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 | |
| 2756 fi | |
| 2757 ;; | |
| 2758 hppa*64*) | |
| 2759 shrext_cmds='.sl' | |
| 2760 hardcode_into_libs=yes | |
| 2761 dynamic_linker="$host_os dld.sl" | |
| 2762 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
| 2763 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
| 2764 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
| 2765 soname_spec='$libname$release$shared_ext$major' | |
| 2766 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
| 2767 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
| 2768 ;; | |
| 2769 *) | |
| 2770 shrext_cmds='.sl' | |
| 2771 dynamic_linker="$host_os dld.sl" | |
| 2772 shlibpath_var=SHLIB_PATH | |
| 2773 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
| 2774 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
| 2775 soname_spec='$libname$release$shared_ext$major' | |
| 2776 ;; | |
| 2777 esac | |
| 2778 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... | |
| 2779 postinstall_cmds='chmod 555 $lib' | |
| 2780 # or fails outright, so override atomically: | |
| 2781 install_override_mode=555 | |
| 2782 ;; | |
| 2783 | |
| 2784 interix[[3-9]]*) | |
| 2785 version_type=linux # correct to gnu/linux during the next big refactor | |
| 2786 need_lib_prefix=no | |
| 2787 need_version=no | |
| 2788 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
| 2789 soname_spec='$libname$release$shared_ext$major' | |
| 2790 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
| 2791 shlibpath_var=LD_LIBRARY_PATH | |
| 2792 shlibpath_overrides_runpath=no | |
| 2793 hardcode_into_libs=yes | |
| 2794 ;; | |
| 2795 | |
| 2796 irix5* | irix6* | nonstopux*) | |
| 2797 case $host_os in | |
| 2798 nonstopux*) version_type=nonstopux ;; | |
| 2799 *) | |
| 2800 if test yes = "$lt_cv_prog_gnu_ld"; then | |
| 2801 version_type=linux # correct to gnu/linux during the next big refactor | |
| 2802 else | |
| 2803 version_type=irix | |
| 2804 fi ;; | |
| 2805 esac | |
| 2806 need_lib_prefix=no | |
| 2807 need_version=no | |
| 2808 soname_spec='$libname$release$shared_ext$major' | |
| 2809 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' | |
| 2810 case $host_os in | |
| 2811 irix5* | nonstopux*) | |
| 2812 libsuff= shlibsuff= | |
| 2813 ;; | |
| 2814 *) | |
| 2815 case $LD in # libtool.m4 will add one of these switches to LD | |
| 2816 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
| 2817 libsuff= shlibsuff= libmagic=32-bit;; | |
| 2818 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
| 2819 libsuff=32 shlibsuff=N32 libmagic=N32;; | |
| 2820 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
| 2821 libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
| 2822 *) libsuff= shlibsuff= libmagic=never-match;; | |
| 2823 esac | |
| 2824 ;; | |
| 2825 esac | |
| 2826 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
| 2827 shlibpath_overrides_runpath=no | |
| 2828 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" | |
| 2829 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" | |
| 2830 hardcode_into_libs=yes | |
| 2831 ;; | |
| 2832 | |
| 2833 # No shared lib support for Linux oldld, aout, or coff. | |
| 2834 linux*oldld* | linux*aout* | linux*coff*) | |
| 2835 dynamic_linker=no | |
| 2836 ;; | |
| 2837 | |
| 2838 linux*android*) | |
| 2839 version_type=none # Android doesn't support versioned libraries. | |
| 2840 need_lib_prefix=no | |
| 2841 need_version=no | |
| 2842 library_names_spec='$libname$release$shared_ext' | |
| 2843 soname_spec='$libname$release$shared_ext' | |
| 2844 finish_cmds= | |
| 2845 shlibpath_var=LD_LIBRARY_PATH | |
| 2846 shlibpath_overrides_runpath=yes | |
| 2847 | |
| 2848 # This implies no fast_install, which is unacceptable. | |
| 2849 # Some rework will be needed to allow for fast_install | |
| 2850 # before this can be enabled. | |
| 2851 hardcode_into_libs=yes | |
| 2852 | |
| 2853 dynamic_linker='Android linker' | |
| 2854 # Don't embed -rpath directories since the linker doesn't support them. | |
| 2855 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | |
| 2856 ;; | |
| 2857 | |
| 2858 # This must be glibc/ELF. | |
| 2859 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) | |
| 2860 version_type=linux # correct to gnu/linux during the next big refactor | |
| 2861 need_lib_prefix=no | |
| 2862 need_version=no | |
| 2863 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
| 2864 soname_spec='$libname$release$shared_ext$major' | |
| 2865 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
| 2866 shlibpath_var=LD_LIBRARY_PATH | |
| 2867 shlibpath_overrides_runpath=no | |
| 2868 | |
| 2869 # Some binutils ld are patched to set DT_RUNPATH | |
| 2870 AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath], | |
| 2871 [lt_cv_shlibpath_overrides_runpath=no | |
| 2872 save_LDFLAGS=$LDFLAGS | |
| 2873 save_libdir=$libdir | |
| 2874 eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \ | |
| 2875 LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\"" | |
| 2876 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], | |
| 2877 [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null], | |
| 2878 [lt_cv_shlibpath_overrides_runpath=yes])]) | |
| 2879 LDFLAGS=$save_LDFLAGS | |
| 2880 libdir=$save_libdir | |
| 2881 ]) | |
| 2882 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
| 2883 | |
| 2884 # This implies no fast_install, which is unacceptable. | |
| 2885 # Some rework will be needed to allow for fast_install | |
| 2886 # before this can be enabled. | |
| 2887 hardcode_into_libs=yes | |
| 2888 | |
| 2889 # Ideally, we could use ldconfig to report *all* directores which are | |
| 2890 # searched for libraries, however this is still not possible. Aside from not | |
| 2891 # being certain /sbin/ldconfig is available, command | |
| 2892 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, | |
| 2893 # even though it is searched at run-time. Try to do the best guess by | |
| 2894 # appending ld.so.conf contents (and includes) to the search path. | |
| 2895 if test -f /etc/ld.so.conf; then | |
| 2896 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' ' '` | |
| 2897 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
| 2898 fi | |
| 2899 | |
| 2900 # We used to test for /lib/ld.so.1 and disable shared libraries on | |
| 2901 # powerpc, because MkLinux only supported shared libraries with the | |
| 2902 # GNU dynamic linker. Since this was broken with cross compilers, | |
| 2903 # most powerpc-linux boxes support dynamic linking these days and | |
| 2904 # people can always --disable-shared, the test was removed, and we | |
| 2905 # assume the GNU/Linux dynamic linker is in use. | |
| 2906 dynamic_linker='GNU/Linux ld.so' | |
| 2907 ;; | |
| 2908 | |
| 2909 netbsdelf*-gnu) | |
| 2910 version_type=linux | |
| 2911 need_lib_prefix=no | |
| 2912 need_version=no | |
| 2913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
| 2914 soname_spec='${libname}${release}${shared_ext}$major' | |
| 2915 shlibpath_var=LD_LIBRARY_PATH | |
| 2916 shlibpath_overrides_runpath=no | |
| 2917 hardcode_into_libs=yes | |
| 2918 dynamic_linker='NetBSD ld.elf_so' | |
| 2919 ;; | |
| 2920 | |
| 2921 netbsd*) | |
| 2922 version_type=sunos | |
| 2923 need_lib_prefix=no | |
| 2924 need_version=no | |
| 2925 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
| 2926 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' | |
| 2927 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
| 2928 dynamic_linker='NetBSD (a.out) ld.so' | |
| 2929 else | |
| 2930 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
| 2931 soname_spec='$libname$release$shared_ext$major' | |
| 2932 dynamic_linker='NetBSD ld.elf_so' | |
| 2933 fi | |
| 2934 shlibpath_var=LD_LIBRARY_PATH | |
| 2935 shlibpath_overrides_runpath=yes | |
| 2936 hardcode_into_libs=yes | |
| 2937 ;; | |
| 2938 | |
| 2939 newsos6) | |
| 2940 version_type=linux # correct to gnu/linux during the next big refactor | |
| 2941 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
| 2942 shlibpath_var=LD_LIBRARY_PATH | |
| 2943 shlibpath_overrides_runpath=yes | |
| 2944 ;; | |
| 2945 | |
| 2946 *nto* | *qnx*) | |
| 2947 version_type=qnx | |
| 2948 need_lib_prefix=no | |
| 2949 need_version=no | |
| 2950 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
| 2951 soname_spec='$libname$release$shared_ext$major' | |
| 2952 shlibpath_var=LD_LIBRARY_PATH | |
| 2953 shlibpath_overrides_runpath=no | |
| 2954 hardcode_into_libs=yes | |
| 2955 dynamic_linker='ldqnx.so' | |
| 2956 ;; | |
| 2957 | |
| 2958 openbsd* | bitrig*) | |
| 2959 version_type=sunos | |
| 2960 sys_lib_dlsearch_path_spec=/usr/lib | |
| 2961 need_lib_prefix=no | |
| 2962 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then | |
| 2963 need_version=no | |
| 2964 else | |
| 2965 need_version=yes | |
| 2966 fi | |
| 2967 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' | |
| 2968 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
| 2969 shlibpath_var=LD_LIBRARY_PATH | |
| 2970 shlibpath_overrides_runpath=yes | |
| 2971 ;; | |
| 2972 | |
| 2973 os2*) | |
| 2974 libname_spec='$name' | |
| 2975 version_type=windows | |
| 2976 shrext_cmds=.dll | |
| 2977 need_version=no | |
| 2978 need_lib_prefix=no | |
| 2979 # OS/2 can only load a DLL with a base name of 8 characters or less. | |
| 2980 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; | |
| 2981 v=$($ECHO $release$versuffix | tr -d .-); | |
| 2982 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); | |
| 2983 $ECHO $n$v`$shared_ext' | |
| 2984 library_names_spec='${libname}_dll.$libext' | |
| 2985 dynamic_linker='OS/2 ld.exe' | |
| 2986 shlibpath_var=BEGINLIBPATH | |
| 2987 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
| 2988 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
| 2989 postinstall_cmds='base_file=`basename \$file`~ | |
| 2990 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ | |
| 2991 dldir=$destdir/`dirname \$dlpath`~ | |
| 2992 test -d \$dldir || mkdir -p \$dldir~ | |
| 2993 $install_prog $dir/$dlname \$dldir/$dlname~ | |
| 2994 chmod a+x \$dldir/$dlname~ | |
| 2995 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
| 2996 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
| 2997 fi' | |
| 2998 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ | |
| 2999 dlpath=$dir/\$dldll~ | |
| 3000 $RM \$dlpath' | |
| 3001 ;; | |
| 3002 | |
| 3003 osf3* | osf4* | osf5*) | |
| 3004 version_type=osf | |
| 3005 need_lib_prefix=no | |
| 3006 need_version=no | |
| 3007 soname_spec='$libname$release$shared_ext$major' | |
| 3008 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
| 3009 shlibpath_var=LD_LIBRARY_PATH | |
| 3010 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
| 3011 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
| 3012 ;; | |
| 3013 | |
| 3014 rdos*) | |
| 3015 dynamic_linker=no | |
| 3016 ;; | |
| 3017 | |
| 3018 solaris*) | |
| 3019 version_type=linux # correct to gnu/linux during the next big refactor | |
| 3020 need_lib_prefix=no | |
| 3021 need_version=no | |
| 3022 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
| 3023 soname_spec='$libname$release$shared_ext$major' | |
| 3024 shlibpath_var=LD_LIBRARY_PATH | |
| 3025 shlibpath_overrides_runpath=yes | |
| 3026 hardcode_into_libs=yes | |
| 3027 # ldd complains unless libraries are executable | |
| 3028 postinstall_cmds='chmod +x $lib' | |
| 3029 ;; | |
| 3030 | |
| 3031 sunos4*) | |
| 3032 version_type=sunos | |
| 3033 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' | |
| 3034 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
| 3035 shlibpath_var=LD_LIBRARY_PATH | |
| 3036 shlibpath_overrides_runpath=yes | |
| 3037 if test yes = "$with_gnu_ld"; then | |
| 3038 need_lib_prefix=no | |
| 3039 fi | |
| 3040 need_version=yes | |
| 3041 ;; | |
| 3042 | |
| 3043 sysv4 | sysv4.3*) | |
| 3044 version_type=linux # correct to gnu/linux during the next big refactor | |
| 3045 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
| 3046 soname_spec='$libname$release$shared_ext$major' | |
| 3047 shlibpath_var=LD_LIBRARY_PATH | |
| 3048 case $host_vendor in | |
| 3049 sni) | |
| 3050 shlibpath_overrides_runpath=no | |
| 3051 need_lib_prefix=no | |
| 3052 runpath_var=LD_RUN_PATH | |
| 3053 ;; | |
| 3054 siemens) | |
| 3055 need_lib_prefix=no | |
| 3056 ;; | |
| 3057 motorola) | |
| 3058 need_lib_prefix=no | |
| 3059 need_version=no | |
| 3060 shlibpath_overrides_runpath=no | |
| 3061 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
| 3062 ;; | |
| 3063 esac | |
| 3064 ;; | |
| 3065 | |
| 3066 sysv4*MP*) | |
| 3067 if test -d /usr/nec; then | |
| 3068 version_type=linux # correct to gnu/linux during the next big refactor | |
| 3069 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' | |
| 3070 soname_spec='$libname$shared_ext.$major' | |
| 3071 shlibpath_var=LD_LIBRARY_PATH | |
| 3072 fi | |
| 3073 ;; | |
| 3074 | |
| 3075 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
| 3076 version_type=sco | |
| 3077 need_lib_prefix=no | |
| 3078 need_version=no | |
| 3079 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' | |
| 3080 soname_spec='$libname$release$shared_ext$major' | |
| 3081 shlibpath_var=LD_LIBRARY_PATH | |
| 3082 shlibpath_overrides_runpath=yes | |
| 3083 hardcode_into_libs=yes | |
| 3084 if test yes = "$with_gnu_ld"; then | |
| 3085 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
| 3086 else | |
| 3087 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
| 3088 case $host_os in | |
| 3089 sco3.2v5*) | |
| 3090 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
| 3091 ;; | |
| 3092 esac | |
| 3093 fi | |
| 3094 sys_lib_dlsearch_path_spec='/usr/lib' | |
| 3095 ;; | |
| 3096 | |
| 3097 tpf*) | |
| 3098 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
| 3099 version_type=linux # correct to gnu/linux during the next big refactor | |
| 3100 need_lib_prefix=no | |
| 3101 need_version=no | |
| 3102 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
| 3103 shlibpath_var=LD_LIBRARY_PATH | |
| 3104 shlibpath_overrides_runpath=no | |
| 3105 hardcode_into_libs=yes | |
| 3106 ;; | |
| 3107 | |
| 3108 uts4*) | |
| 3109 version_type=linux # correct to gnu/linux during the next big refactor | |
| 3110 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
| 3111 soname_spec='$libname$release$shared_ext$major' | |
| 3112 shlibpath_var=LD_LIBRARY_PATH | |
| 3113 ;; | |
| 3114 | |
| 3115 *) | |
| 3116 dynamic_linker=no | |
| 3117 ;; | |
| 3118 esac | |
| 3119 AC_MSG_RESULT([$dynamic_linker]) | |
| 3120 test no = "$dynamic_linker" && can_build_shared=no | |
| 3121 | |
| 3122 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
| 3123 if test yes = "$GCC"; then | |
| 3124 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
| 3125 fi | |
| 3126 | |
| 3127 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then | |
| 3128 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec | |
| 3129 fi | |
| 3130 | |
| 3131 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then | |
| 3132 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec | |
| 3133 fi | |
| 3134 | |
| 3135 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... | |
| 3136 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec | |
| 3137 | |
| 3138 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code | |
| 3139 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" | |
| 3140 | |
| 3141 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool | |
| 3142 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH | |
| 3143 | |
| 3144 _LT_DECL([], [variables_saved_for_relink], [1], | |
| 3145 [Variables whose values should be saved in libtool wrapper scripts and | |
| 3146 restored at link time]) | |
| 3147 _LT_DECL([], [need_lib_prefix], [0], | |
| 3148 [Do we need the "lib" prefix for modules?]) | |
| 3149 _LT_DECL([], [need_version], [0], [Do we need a version for libraries?]) | |
| 3150 _LT_DECL([], [version_type], [0], [Library versioning type]) | |
| 3151 _LT_DECL([], [runpath_var], [0], [Shared library runtime path variable]) | |
| 3152 _LT_DECL([], [shlibpath_var], [0],[Shared library path variable]) | |
| 3153 _LT_DECL([], [shlibpath_overrides_runpath], [0], | |
| 3154 [Is shlibpath searched before the hard-coded library search path?]) | |
| 3155 _LT_DECL([], [libname_spec], [1], [Format of library name prefix]) | |
| 3156 _LT_DECL([], [library_names_spec], [1], | |
| 3157 [[List of archive names. First name is the real one, the rest are links. | |
| 3158 The last name is the one that the linker finds with -lNAME]]) | |
| 3159 _LT_DECL([], [soname_spec], [1], | |
| 3160 [[The coded name of the library, if different from the real name]]) | |
| 3161 _LT_DECL([], [install_override_mode], [1], | |
| 3162 [Permission mode override for installation of shared libraries]) | |
| 3163 _LT_DECL([], [postinstall_cmds], [2], | |
| 3164 [Command to use after installation of a shared archive]) | |
| 3165 _LT_DECL([], [postuninstall_cmds], [2], | |
| 3166 [Command to use after uninstallation of a shared archive]) | |
| 3167 _LT_DECL([], [finish_cmds], [2], | |
| 3168 [Commands used to finish a libtool library installation in a directory]) | |
| 3169 _LT_DECL([], [finish_eval], [1], | |
| 3170 [[As "finish_cmds", except a single script fragment to be evaled but | |
| 3171 not shown]]) | |
| 3172 _LT_DECL([], [hardcode_into_libs], [0], | |
| 3173 [Whether we should hardcode library paths into libraries]) | |
| 3174 _LT_DECL([], [sys_lib_search_path_spec], [2], | |
| 3175 [Compile-time system search path for libraries]) | |
| 3176 _LT_DECL([sys_lib_dlsearch_path_spec], [configure_time_dlsearch_path], [2], | |
| 3177 [Detected run-time system search path for libraries]) | |
| 3178 _LT_DECL([], [configure_time_lt_sys_library_path], [2], | |
| 3179 [Explicit LT_SYS_LIBRARY_PATH set during ./configure time]) | |
| 3180 ])# _LT_SYS_DYNAMIC_LINKER | |
| 3181 | |
| 3182 | |
| 3183 # _LT_PATH_TOOL_PREFIX(TOOL) | |
| 3184 # -------------------------- | |
| 3185 # find a file program that can recognize shared library | |
| 3186 AC_DEFUN([_LT_PATH_TOOL_PREFIX], | |
| 3187 [m4_require([_LT_DECL_EGREP])dnl | |
| 3188 AC_MSG_CHECKING([for $1]) | |
| 3189 AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, | |
| 3190 [case $MAGIC_CMD in | |
| 3191 [[\\/*] | ?:[\\/]*]) | |
| 3192 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. | |
| 3193 ;; | |
| 3194 *) | |
| 3195 lt_save_MAGIC_CMD=$MAGIC_CMD | |
| 3196 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR | |
| 3197 dnl $ac_dummy forces splitting on constant user-supplied paths. | |
| 3198 dnl POSIX.2 word splitting is done only on the output of word expansions, | |
| 3199 dnl not every word. This closes a longstanding sh security hole. | |
| 3200 ac_dummy="m4_if([$2], , $PATH, [$2])" | |
| 3201 for ac_dir in $ac_dummy; do | |
| 3202 IFS=$lt_save_ifs | |
| 3203 test -z "$ac_dir" && ac_dir=. | |
| 3204 if test -f "$ac_dir/$1"; then | |
| 3205 lt_cv_path_MAGIC_CMD=$ac_dir/"$1" | |
| 3206 if test -n "$file_magic_test_file"; then | |
| 3207 case $deplibs_check_method in | |
| 3208 "file_magic "*) | |
| 3209 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
| 3210 MAGIC_CMD=$lt_cv_path_MAGIC_CMD | |
| 3211 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
| 3212 $EGREP "$file_magic_regex" > /dev/null; then | |
| 3213 : | |
| 3214 else | |
| 3215 cat <<_LT_EOF 1>&2 | |
| 3216 | |
| 3217 *** Warning: the command libtool uses to detect shared libraries, | |
| 3218 *** $file_magic_cmd, produces output that libtool cannot recognize. | |
| 3219 *** The result is that libtool may fail to recognize shared libraries | |
| 3220 *** as such. This will affect the creation of libtool libraries that | |
| 3221 *** depend on shared libraries, but programs linked with such libtool | |
| 3222 *** libraries will work regardless of this problem. Nevertheless, you | |
| 3223 *** may want to report the problem to your system manager and/or to | |
| 3224 *** bug-libtool@gnu.org | |
| 3225 | |
| 3226 _LT_EOF | |
| 3227 fi ;; | |
| 3228 esac | |
| 3229 fi | |
| 3230 break | |
| 3231 fi | |
| 3232 done | |
| 3233 IFS=$lt_save_ifs | |
| 3234 MAGIC_CMD=$lt_save_MAGIC_CMD | |
| 3235 ;; | |
| 3236 esac]) | |
| 3237 MAGIC_CMD=$lt_cv_path_MAGIC_CMD | |
| 3238 if test -n "$MAGIC_CMD"; then | |
| 3239 AC_MSG_RESULT($MAGIC_CMD) | |
| 3240 else | |
| 3241 AC_MSG_RESULT(no) | |
| 3242 fi | |
| 3243 _LT_DECL([], [MAGIC_CMD], [0], | |
| 3244 [Used to examine libraries when file_magic_cmd begins with "file"])dnl | |
| 3245 ])# _LT_PATH_TOOL_PREFIX | |
| 3246 | |
| 3247 # Old name: | |
| 3248 AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX]) | |
| 3249 dnl aclocal-1.4 backwards compatibility: | |
| 3250 dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], []) | |
| 3251 | |
| 3252 | |
| 3253 # _LT_PATH_MAGIC | |
| 3254 # -------------- | |
| 3255 # find a file program that can recognize a shared library | |
| 3256 m4_defun([_LT_PATH_MAGIC], | |
| 3257 [_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) | |
| 3258 if test -z "$lt_cv_path_MAGIC_CMD"; then | |
| 3259 if test -n "$ac_tool_prefix"; then | |
| 3260 _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) | |
| 3261 else | |
| 3262 MAGIC_CMD=: | |
| 3263 fi | |
| 3264 fi | |
| 3265 ])# _LT_PATH_MAGIC | |
| 3266 | |
| 3267 | |
| 3268 # LT_PATH_LD | |
| 3269 # ---------- | |
| 3270 # find the pathname to the GNU or non-GNU linker | |
| 3271 AC_DEFUN([LT_PATH_LD], | |
| 3272 [AC_REQUIRE([AC_PROG_CC])dnl | |
| 3273 AC_REQUIRE([AC_CANONICAL_HOST])dnl | |
| 3274 AC_REQUIRE([AC_CANONICAL_BUILD])dnl | |
| 3275 m4_require([_LT_DECL_SED])dnl | |
| 3276 m4_require([_LT_DECL_EGREP])dnl | |
| 3277 m4_require([_LT_PROG_ECHO_BACKSLASH])dnl | |
| 3278 | |
| 3279 AC_ARG_WITH([gnu-ld], | |
| 3280 [AS_HELP_STRING([--with-gnu-ld], | |
| 3281 [assume the C compiler uses GNU ld @<:@default=no@:>@])], | |
| 3282 [test no = "$withval" || with_gnu_ld=yes], | |
| 3283 [with_gnu_ld=no])dnl | |
| 3284 | |
| 3285 ac_prog=ld | |
| 3286 if test yes = "$GCC"; then | |
| 3287 # Check if gcc -print-prog-name=ld gives a path. | |
| 3288 AC_MSG_CHECKING([for ld used by $CC]) | |
| 3289 case $host in | |
| 3290 *-*-mingw*) | |
| 3291 # gcc leaves a trailing carriage return, which upsets mingw | |
| 3292 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
| 3293 *) | |
| 3294 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
| 3295 esac | |
| 3296 case $ac_prog in | |
| 3297 # Accept absolute paths. | |
| 3298 [[\\/]]* | ?:[[\\/]]*) | |
| 3299 re_direlt='/[[^/]][[^/]]*/\.\./' | |
| 3300 # Canonicalize the pathname of ld | |
| 3301 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
| 3302 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
| 3303 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
| 3304 done | |
| 3305 test -z "$LD" && LD=$ac_prog | |
| 3306 ;; | |
| 3307 "") | |
| 3308 # If it fails, then pretend we aren't using GCC. | |
| 3309 ac_prog=ld | |
| 3310 ;; | |
| 3311 *) | |
| 3312 # If it is relative, then search for the first ld in PATH. | |
| 3313 with_gnu_ld=unknown | |
| 3314 ;; | |
| 3315 esac | |
| 3316 elif test yes = "$with_gnu_ld"; then | |
| 3317 AC_MSG_CHECKING([for GNU ld]) | |
| 3318 else | |
| 3319 AC_MSG_CHECKING([for non-GNU ld]) | |
| 3320 fi | |
| 3321 AC_CACHE_VAL(lt_cv_path_LD, | |
| 3322 [if test -z "$LD"; then | |
| 3323 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR | |
| 3324 for ac_dir in $PATH; do | |
| 3325 IFS=$lt_save_ifs | |
| 3326 test -z "$ac_dir" && ac_dir=. | |
| 3327 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
| 3328 lt_cv_path_LD=$ac_dir/$ac_prog | |
| 3329 # Check to see if the program is GNU ld. I'd rather use --version, | |
| 3330 # but apparently some variants of GNU ld only accept -v. | |
| 3331 # Break only if it was the GNU/non-GNU ld that we prefer. | |
| 3332 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
| 3333 *GNU* | *'with BFD'*) | |
| 3334 test no != "$with_gnu_ld" && break | |
| 3335 ;; | |
| 3336 *) | |
| 3337 test yes != "$with_gnu_ld" && break | |
| 3338 ;; | |
| 3339 esac | |
| 3340 fi | |
| 3341 done | |
| 3342 IFS=$lt_save_ifs | |
| 3343 else | |
| 3344 lt_cv_path_LD=$LD # Let the user override the test with a path. | |
| 3345 fi]) | |
| 3346 LD=$lt_cv_path_LD | |
| 3347 if test -n "$LD"; then | |
| 3348 AC_MSG_RESULT($LD) | |
| 3349 else | |
| 3350 AC_MSG_RESULT(no) | |
| 3351 fi | |
| 3352 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) | |
| 3353 _LT_PATH_LD_GNU | |
| 3354 AC_SUBST([LD]) | |
| 3355 | |
| 3356 _LT_TAGDECL([], [LD], [1], [The linker used to build libraries]) | |
| 3357 ])# LT_PATH_LD | |
| 3358 | |
| 3359 # Old names: | |
| 3360 AU_ALIAS([AM_PROG_LD], [LT_PATH_LD]) | |
| 3361 AU_ALIAS([AC_PROG_LD], [LT_PATH_LD]) | |
| 3362 dnl aclocal-1.4 backwards compatibility: | |
| 3363 dnl AC_DEFUN([AM_PROG_LD], []) | |
| 3364 dnl AC_DEFUN([AC_PROG_LD], []) | |
| 3365 | |
| 3366 | |
| 3367 # _LT_PATH_LD_GNU | |
| 3368 #- -------------- | |
| 3369 m4_defun([_LT_PATH_LD_GNU], | |
| 3370 [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, | |
| 3371 [# I'd rather use --version here, but apparently some GNU lds only accept -v. | |
| 3372 case `$LD -v 2>&1 </dev/null` in | |
| 3373 *GNU* | *'with BFD'*) | |
| 3374 lt_cv_prog_gnu_ld=yes | |
| 3375 ;; | |
| 3376 *) | |
| 3377 lt_cv_prog_gnu_ld=no | |
| 3378 ;; | |
| 3379 esac]) | |
| 3380 with_gnu_ld=$lt_cv_prog_gnu_ld | |
| 3381 ])# _LT_PATH_LD_GNU | |
| 3382 | |
| 3383 | |
| 3384 # _LT_CMD_RELOAD | |
| 3385 # -------------- | |
| 3386 # find reload flag for linker | |
| 3387 # -- PORTME Some linkers may need a different reload flag. | |
| 3388 m4_defun([_LT_CMD_RELOAD], | |
| 3389 [AC_CACHE_CHECK([for $LD option to reload object files], | |
| 3390 lt_cv_ld_reload_flag, | |
| 3391 [lt_cv_ld_reload_flag='-r']) | |
| 3392 reload_flag=$lt_cv_ld_reload_flag | |
| 3393 case $reload_flag in | |
| 3394 "" | " "*) ;; | |
| 3395 *) reload_flag=" $reload_flag" ;; | |
| 3396 esac | |
| 3397 reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
| 3398 case $host_os in | |
| 3399 cygwin* | mingw* | pw32* | cegcc*) | |
| 3400 if test yes != "$GCC"; then | |
| 3401 reload_cmds=false | |
| 3402 fi | |
| 3403 ;; | |
| 3404 darwin*) | |
| 3405 if test yes = "$GCC"; then | |
| 3406 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' | |
| 3407 else | |
| 3408 reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
| 3409 fi | |
| 3410 ;; | |
| 3411 esac | |
| 3412 _LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl | |
| 3413 _LT_TAGDECL([], [reload_cmds], [2])dnl | |
| 3414 ])# _LT_CMD_RELOAD | |
| 3415 | |
| 3416 | |
| 3417 # _LT_PATH_DD | |
| 3418 # ----------- | |
| 3419 # find a working dd | |
| 3420 m4_defun([_LT_PATH_DD], | |
| 3421 [AC_CACHE_CHECK([for a working dd], [ac_cv_path_lt_DD], | |
| 3422 [printf 0123456789abcdef0123456789abcdef >conftest.i | |
| 3423 cat conftest.i conftest.i >conftest2.i | |
| 3424 : ${lt_DD:=$DD} | |
| 3425 AC_PATH_PROGS_FEATURE_CHECK([lt_DD], [dd], | |
| 3426 [if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then | |
| 3427 cmp -s conftest.i conftest.out \ | |
| 3428 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: | |
| 3429 fi]) | |
| 3430 rm -f conftest.i conftest2.i conftest.out]) | |
| 3431 ])# _LT_PATH_DD | |
| 3432 | |
| 3433 | |
| 3434 # _LT_CMD_TRUNCATE | |
| 3435 # ---------------- | |
| 3436 # find command to truncate a binary pipe | |
| 3437 m4_defun([_LT_CMD_TRUNCATE], | |
| 3438 [m4_require([_LT_PATH_DD]) | |
| 3439 AC_CACHE_CHECK([how to truncate binary pipes], [lt_cv_truncate_bin], | |
| 3440 [printf 0123456789abcdef0123456789abcdef >conftest.i | |
| 3441 cat conftest.i conftest.i >conftest2.i | |
| 3442 lt_cv_truncate_bin= | |
| 3443 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then | |
| 3444 cmp -s conftest.i conftest.out \ | |
| 3445 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" | |
| 3446 fi | |
| 3447 rm -f conftest.i conftest2.i conftest.out | |
| 3448 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"]) | |
| 3449 _LT_DECL([lt_truncate_bin], [lt_cv_truncate_bin], [1], | |
| 3450 [Command to truncate a binary pipe]) | |
| 3451 ])# _LT_CMD_TRUNCATE | |
| 3452 | |
| 3453 | |
| 3454 # _LT_CHECK_MAGIC_METHOD | |
| 3455 # ---------------------- | |
| 3456 # how to check for library dependencies | |
| 3457 # -- PORTME fill in with the dynamic library characteristics | |
| 3458 m4_defun([_LT_CHECK_MAGIC_METHOD], | |
| 3459 [m4_require([_LT_DECL_EGREP]) | |
| 3460 m4_require([_LT_DECL_OBJDUMP]) | |
| 3461 AC_CACHE_CHECK([how to recognize dependent libraries], | |
| 3462 lt_cv_deplibs_check_method, | |
| 3463 [lt_cv_file_magic_cmd='$MAGIC_CMD' | |
| 3464 lt_cv_file_magic_test_file= | |
| 3465 lt_cv_deplibs_check_method='unknown' | |
| 3466 # Need to set the preceding variable on all platforms that support | |
| 3467 # interlibrary dependencies. | |
| 3468 # 'none' -- dependencies not supported. | |
| 3469 # 'unknown' -- same as none, but documents that we really don't know. | |
| 3470 # 'pass_all' -- all dependencies passed with no checks. | |
| 3471 # 'test_compile' -- check by making test program. | |
| 3472 # 'file_magic [[regex]]' -- check by looking for files in library path | |
| 3473 # that responds to the $file_magic_cmd with a given extended regex. | |
| 3474 # If you have 'file' or equivalent on your system and you're not sure | |
| 3475 # whether 'pass_all' will *always* work, you probably want this one. | |
| 3476 | |
| 3477 case $host_os in | |
| 3478 aix[[4-9]]*) | |
| 3479 lt_cv_deplibs_check_method=pass_all | |
| 3480 ;; | |
| 3481 | |
| 3482 beos*) | |
| 3483 lt_cv_deplibs_check_method=pass_all | |
| 3484 ;; | |
| 3485 | |
| 3486 bsdi[[45]]*) | |
| 3487 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' | |
| 3488 lt_cv_file_magic_cmd='$FILECMD -L' | |
| 3489 lt_cv_file_magic_test_file=/shlib/libc.so | |
| 3490 ;; | |
| 3491 | |
| 3492 cygwin*) | |
| 3493 # func_win32_libid is a shell function defined in ltmain.sh | |
| 3494 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
| 3495 lt_cv_file_magic_cmd='func_win32_libid' | |
| 3496 ;; | |
| 3497 | |
| 3498 mingw* | pw32*) | |
| 3499 # Base MSYS/MinGW do not provide the 'file' command needed by | |
| 3500 # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
| 3501 # unless we find 'file', for example because we are cross-compiling. | |
| 3502 if ( file / ) >/dev/null 2>&1; then | |
| 3503 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
| 3504 lt_cv_file_magic_cmd='func_win32_libid' | |
| 3505 else | |
| 3506 # Keep this pattern in sync with the one in func_win32_libid. | |
| 3507 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' | |
| 3508 lt_cv_file_magic_cmd='$OBJDUMP -f' | |
| 3509 fi | |
| 3510 ;; | |
| 3511 | |
| 3512 cegcc*) | |
| 3513 # use the weaker test based on 'objdump'. See mingw*. | |
| 3514 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
| 3515 lt_cv_file_magic_cmd='$OBJDUMP -f' | |
| 3516 ;; | |
| 3517 | |
| 3518 darwin* | rhapsody*) | |
| 3519 lt_cv_deplibs_check_method=pass_all | |
| 3520 ;; | |
| 3521 | |
| 3522 freebsd* | dragonfly* | midnightbsd*) | |
| 3523 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
| 3524 case $host_cpu in | |
| 3525 i*86 ) | |
| 3526 # Not sure whether the presence of OpenBSD here was a mistake. | |
| 3527 # Let's accept both of them until this is cleared up. | |
| 3528 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' | |
| 3529 lt_cv_file_magic_cmd=$FILECMD | |
| 3530 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
| 3531 ;; | |
| 3532 esac | |
| 3533 else | |
| 3534 lt_cv_deplibs_check_method=pass_all | |
| 3535 fi | |
| 3536 ;; | |
| 3537 | |
| 3538 haiku*) | |
| 3539 lt_cv_deplibs_check_method=pass_all | |
| 3540 ;; | |
| 3541 | |
| 3542 hpux10.20* | hpux11*) | |
| 3543 lt_cv_file_magic_cmd=$FILECMD | |
| 3544 case $host_cpu in | |
| 3545 ia64*) | |
| 3546 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' | |
| 3547 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
| 3548 ;; | |
| 3549 hppa*64*) | |
| 3550 [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'] | |
| 3551 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | |
| 3552 ;; | |
| 3553 *) | |
| 3554 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library' | |
| 3555 lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
| 3556 ;; | |
| 3557 esac | |
| 3558 ;; | |
| 3559 | |
| 3560 interix[[3-9]]*) | |
| 3561 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
| 3562 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' | |
| 3563 ;; | |
| 3564 | |
| 3565 irix5* | irix6* | nonstopux*) | |
| 3566 case $LD in | |
| 3567 *-32|*"-32 ") libmagic=32-bit;; | |
| 3568 *-n32|*"-n32 ") libmagic=N32;; | |
| 3569 *-64|*"-64 ") libmagic=64-bit;; | |
| 3570 *) libmagic=never-match;; | |
| 3571 esac | |
| 3572 lt_cv_deplibs_check_method=pass_all | |
| 3573 ;; | |
| 3574 | |
| 3575 # This must be glibc/ELF. | |
| 3576 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) | |
| 3577 lt_cv_deplibs_check_method=pass_all | |
| 3578 ;; | |
| 3579 | |
| 3580 netbsd* | netbsdelf*-gnu) | |
| 3581 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
| 3582 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' | |
| 3583 else | |
| 3584 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' | |
| 3585 fi | |
| 3586 ;; | |
| 3587 | |
| 3588 newos6*) | |
| 3589 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' | |
| 3590 lt_cv_file_magic_cmd=$FILECMD | |
| 3591 lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
| 3592 ;; | |
| 3593 | |
| 3594 *nto* | *qnx*) | |
| 3595 lt_cv_deplibs_check_method=pass_all | |
| 3596 ;; | |
| 3597 | |
| 3598 openbsd* | bitrig*) | |
| 3599 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then | |
| 3600 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' | |
| 3601 else | |
| 3602 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' | |
| 3603 fi | |
| 3604 ;; | |
| 3605 | |
| 3606 osf3* | osf4* | osf5*) | |
| 3607 lt_cv_deplibs_check_method=pass_all | |
| 3608 ;; | |
| 3609 | |
| 3610 rdos*) | |
| 3611 lt_cv_deplibs_check_method=pass_all | |
| 3612 ;; | |
| 3613 | |
| 3614 solaris*) | |
| 3615 lt_cv_deplibs_check_method=pass_all | |
| 3616 ;; | |
| 3617 | |
| 3618 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
| 3619 lt_cv_deplibs_check_method=pass_all | |
| 3620 ;; | |
| 3621 | |
| 3622 sysv4 | sysv4.3*) | |
| 3623 case $host_vendor in | |
| 3624 motorola) | |
| 3625 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]' | |
| 3626 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
| 3627 ;; | |
| 3628 ncr) | |
| 3629 lt_cv_deplibs_check_method=pass_all | |
| 3630 ;; | |
| 3631 sequent) | |
| 3632 lt_cv_file_magic_cmd='/bin/file' | |
| 3633 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' | |
| 3634 ;; | |
| 3635 sni) | |
| 3636 lt_cv_file_magic_cmd='/bin/file' | |
| 3637 lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" | |
| 3638 lt_cv_file_magic_test_file=/lib/libc.so | |
| 3639 ;; | |
| 3640 siemens) | |
| 3641 lt_cv_deplibs_check_method=pass_all | |
| 3642 ;; | |
| 3643 pc) | |
| 3644 lt_cv_deplibs_check_method=pass_all | |
| 3645 ;; | |
| 3646 esac | |
| 3647 ;; | |
| 3648 | |
| 3649 tpf*) | |
| 3650 lt_cv_deplibs_check_method=pass_all | |
| 3651 ;; | |
| 3652 os2*) | |
| 3653 lt_cv_deplibs_check_method=pass_all | |
| 3654 ;; | |
| 3655 esac | |
| 3656 ]) | |
| 3657 | |
| 3658 file_magic_glob= | |
| 3659 want_nocaseglob=no | |
| 3660 if test "$build" = "$host"; then | |
| 3661 case $host_os in | |
| 3662 mingw* | pw32*) | |
| 3663 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then | |
| 3664 want_nocaseglob=yes | |
| 3665 else | |
| 3666 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"` | |
| 3667 fi | |
| 3668 ;; | |
| 3669 esac | |
| 3670 fi | |
| 3671 | |
| 3672 file_magic_cmd=$lt_cv_file_magic_cmd | |
| 3673 deplibs_check_method=$lt_cv_deplibs_check_method | |
| 3674 test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
| 3675 | |
| 3676 _LT_DECL([], [deplibs_check_method], [1], | |
| 3677 [Method to check whether dependent libraries are shared objects]) | |
| 3678 _LT_DECL([], [file_magic_cmd], [1], | |
| 3679 [Command to use when deplibs_check_method = "file_magic"]) | |
| 3680 _LT_DECL([], [file_magic_glob], [1], | |
| 3681 [How to find potential files when deplibs_check_method = "file_magic"]) | |
| 3682 _LT_DECL([], [want_nocaseglob], [1], | |
| 3683 [Find potential files using nocaseglob when deplibs_check_method = "file_magic"]) | |
| 3684 ])# _LT_CHECK_MAGIC_METHOD | |
| 3685 | |
| 3686 | |
| 3687 # LT_PATH_NM | |
| 3688 # ---------- | |
| 3689 # find the pathname to a BSD- or MS-compatible name lister | |
| 3690 AC_DEFUN([LT_PATH_NM], | |
| 3691 [AC_REQUIRE([AC_PROG_CC])dnl | |
| 3692 AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM, | |
| 3693 [if test -n "$NM"; then | |
| 3694 # Let the user override the test. | |
| 3695 lt_cv_path_NM=$NM | |
| 3696 else | |
| 3697 lt_nm_to_check=${ac_tool_prefix}nm | |
| 3698 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
| 3699 lt_nm_to_check="$lt_nm_to_check nm" | |
| 3700 fi | |
| 3701 for lt_tmp_nm in $lt_nm_to_check; do | |
| 3702 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR | |
| 3703 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
| 3704 IFS=$lt_save_ifs | |
| 3705 test -z "$ac_dir" && ac_dir=. | |
| 3706 tmp_nm=$ac_dir/$lt_tmp_nm | |
| 3707 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then | |
| 3708 # Check to see if the nm accepts a BSD-compat flag. | |
| 3709 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: | |
| 3710 # nm: unknown option "B" ignored | |
| 3711 # Tru64's nm complains that /dev/null is an invalid object file | |
| 3712 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty | |
| 3713 case $build_os in | |
| 3714 mingw*) lt_bad_file=conftest.nm/nofile ;; | |
| 3715 *) lt_bad_file=/dev/null ;; | |
| 3716 esac | |
| 3717 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in | |
| 3718 *$lt_bad_file* | *'Invalid file or object type'*) | |
| 3719 lt_cv_path_NM="$tmp_nm -B" | |
| 3720 break 2 | |
| 3721 ;; | |
| 3722 *) | |
| 3723 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in | |
| 3724 */dev/null*) | |
| 3725 lt_cv_path_NM="$tmp_nm -p" | |
| 3726 break 2 | |
| 3727 ;; | |
| 3728 *) | |
| 3729 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
| 3730 continue # so that we can try to find one that supports BSD flags | |
| 3731 ;; | |
| 3732 esac | |
| 3733 ;; | |
| 3734 esac | |
| 3735 fi | |
| 3736 done | |
| 3737 IFS=$lt_save_ifs | |
| 3738 done | |
| 3739 : ${lt_cv_path_NM=no} | |
| 3740 fi]) | |
| 3741 if test no != "$lt_cv_path_NM"; then | |
| 3742 NM=$lt_cv_path_NM | |
| 3743 else | |
| 3744 # Didn't find any BSD compatible name lister, look for dumpbin. | |
| 3745 if test -n "$DUMPBIN"; then : | |
| 3746 # Let the user override the test. | |
| 3747 else | |
| 3748 AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :) | |
| 3749 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in | |
| 3750 *COFF*) | |
| 3751 DUMPBIN="$DUMPBIN -symbols -headers" | |
| 3752 ;; | |
| 3753 *) | |
| 3754 DUMPBIN=: | |
| 3755 ;; | |
| 3756 esac | |
| 3757 fi | |
| 3758 AC_SUBST([DUMPBIN]) | |
| 3759 if test : != "$DUMPBIN"; then | |
| 3760 NM=$DUMPBIN | |
| 3761 fi | |
| 3762 fi | |
| 3763 test -z "$NM" && NM=nm | |
| 3764 AC_SUBST([NM]) | |
| 3765 _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl | |
| 3766 | |
| 3767 AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface], | |
| 3768 [lt_cv_nm_interface="BSD nm" | |
| 3769 echo "int some_variable = 0;" > conftest.$ac_ext | |
| 3770 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD) | |
| 3771 (eval "$ac_compile" 2>conftest.err) | |
| 3772 cat conftest.err >&AS_MESSAGE_LOG_FD | |
| 3773 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD) | |
| 3774 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) | |
| 3775 cat conftest.err >&AS_MESSAGE_LOG_FD | |
| 3776 (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD) | |
| 3777 cat conftest.out >&AS_MESSAGE_LOG_FD | |
| 3778 if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
| 3779 lt_cv_nm_interface="MS dumpbin" | |
| 3780 fi | |
| 3781 rm -f conftest*]) | |
| 3782 ])# LT_PATH_NM | |
| 3783 | |
| 3784 # Old names: | |
| 3785 AU_ALIAS([AM_PROG_NM], [LT_PATH_NM]) | |
| 3786 AU_ALIAS([AC_PROG_NM], [LT_PATH_NM]) | |
| 3787 dnl aclocal-1.4 backwards compatibility: | |
| 3788 dnl AC_DEFUN([AM_PROG_NM], []) | |
| 3789 dnl AC_DEFUN([AC_PROG_NM], []) | |
| 3790 | |
| 3791 # _LT_CHECK_SHAREDLIB_FROM_LINKLIB | |
| 3792 # -------------------------------- | |
| 3793 # how to determine the name of the shared library | |
| 3794 # associated with a specific link library. | |
| 3795 # -- PORTME fill in with the dynamic library characteristics | |
| 3796 m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB], | |
| 3797 [m4_require([_LT_DECL_EGREP]) | |
| 3798 m4_require([_LT_DECL_OBJDUMP]) | |
| 3799 m4_require([_LT_DECL_DLLTOOL]) | |
| 3800 AC_CACHE_CHECK([how to associate runtime and link libraries], | |
| 3801 lt_cv_sharedlib_from_linklib_cmd, | |
| 3802 [lt_cv_sharedlib_from_linklib_cmd='unknown' | |
| 3803 | |
| 3804 case $host_os in | |
| 3805 cygwin* | mingw* | pw32* | cegcc*) | |
| 3806 # two different shell functions defined in ltmain.sh; | |
| 3807 # decide which one to use based on capabilities of $DLLTOOL | |
| 3808 case `$DLLTOOL --help 2>&1` in | |
| 3809 *--identify-strict*) | |
| 3810 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib | |
| 3811 ;; | |
| 3812 *) | |
| 3813 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback | |
| 3814 ;; | |
| 3815 esac | |
| 3816 ;; | |
| 3817 *) | |
| 3818 # fallback: assume linklib IS sharedlib | |
| 3819 lt_cv_sharedlib_from_linklib_cmd=$ECHO | |
| 3820 ;; | |
| 3821 esac | |
| 3822 ]) | |
| 3823 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd | |
| 3824 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO | |
| 3825 | |
| 3826 _LT_DECL([], [sharedlib_from_linklib_cmd], [1], | |
| 3827 [Command to associate shared and link libraries]) | |
| 3828 ])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB | |
| 3829 | |
| 3830 | |
| 3831 # _LT_PATH_MANIFEST_TOOL | |
| 3832 # ---------------------- | |
| 3833 # locate the manifest tool | |
| 3834 m4_defun([_LT_PATH_MANIFEST_TOOL], | |
| 3835 [AC_CHECK_TOOL(MANIFEST_TOOL, mt, :) | |
| 3836 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt | |
| 3837 AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool], | |
| 3838 [lt_cv_path_mainfest_tool=no | |
| 3839 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD | |
| 3840 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out | |
| 3841 cat conftest.err >&AS_MESSAGE_LOG_FD | |
| 3842 if $GREP 'Manifest Tool' conftest.out > /dev/null; then | |
| 3843 lt_cv_path_mainfest_tool=yes | |
| 3844 fi | |
| 3845 rm -f conftest*]) | |
| 3846 if test yes != "$lt_cv_path_mainfest_tool"; then | |
| 3847 MANIFEST_TOOL=: | |
| 3848 fi | |
| 3849 _LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl | |
| 3850 ])# _LT_PATH_MANIFEST_TOOL | |
| 3851 | |
| 3852 | |
| 3853 # _LT_DLL_DEF_P([FILE]) | |
| 3854 # --------------------- | |
| 3855 # True iff FILE is a Windows DLL '.def' file. | |
| 3856 # Keep in sync with func_dll_def_p in the libtool script | |
| 3857 AC_DEFUN([_LT_DLL_DEF_P], | |
| 3858 [dnl | |
| 3859 test DEF = "`$SED -n dnl | |
| 3860 -e '\''s/^[[ ]]*//'\'' dnl Strip leading whitespace | |
| 3861 -e '\''/^\(;.*\)*$/d'\'' dnl Delete empty lines and comments | |
| 3862 -e '\''s/^\(EXPORTS\|LIBRARY\)\([[ ]].*\)*$/DEF/p'\'' dnl | |
| 3863 -e q dnl Only consider the first "real" line | |
| 3864 $1`" dnl | |
| 3865 ])# _LT_DLL_DEF_P | |
| 3866 | |
| 3867 | |
| 3868 # LT_LIB_M | |
| 3869 # -------- | |
| 3870 # check for math library | |
| 3871 AC_DEFUN([LT_LIB_M], | |
| 3872 [AC_REQUIRE([AC_CANONICAL_HOST])dnl | |
| 3873 LIBM= | |
| 3874 case $host in | |
| 3875 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*) | |
| 3876 # These system don't have libm, or don't need it | |
| 3877 ;; | |
| 3878 *-ncr-sysv4.3*) | |
| 3879 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM=-lmw) | |
| 3880 AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") | |
| 3881 ;; | |
| 3882 *) | |
| 3883 AC_CHECK_LIB(m, cos, LIBM=-lm) | |
| 3884 ;; | |
| 3885 esac | |
| 3886 AC_SUBST([LIBM]) | |
| 3887 ])# LT_LIB_M | |
| 3888 | |
| 3889 # Old name: | |
| 3890 AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M]) | |
| 3891 dnl aclocal-1.4 backwards compatibility: | |
| 3892 dnl AC_DEFUN([AC_CHECK_LIBM], []) | |
| 3893 | |
| 3894 | |
| 3895 # _LT_COMPILER_NO_RTTI([TAGNAME]) | |
| 3896 # ------------------------------- | |
| 3897 m4_defun([_LT_COMPILER_NO_RTTI], | |
| 3898 [m4_require([_LT_TAG_COMPILER])dnl | |
| 3899 | |
| 3900 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= | |
| 3901 | |
| 3902 if test yes = "$GCC"; then | |
| 3903 case $cc_basename in | |
| 3904 nvcc*) | |
| 3905 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;; | |
| 3906 *) | |
| 3907 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;; | |
| 3908 esac | |
| 3909 | |
| 3910 _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], | |
| 3911 lt_cv_prog_compiler_rtti_exceptions, | |
| 3912 [-fno-rtti -fno-exceptions], [], | |
| 3913 [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) | |
| 3914 fi | |
| 3915 _LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1], | |
| 3916 [Compiler flag to turn off builtin functions]) | |
| 3917 ])# _LT_COMPILER_NO_RTTI | |
| 3918 | |
| 3919 | |
| 3920 # _LT_CMD_GLOBAL_SYMBOLS | |
| 3921 # ---------------------- | |
| 3922 m4_defun([_LT_CMD_GLOBAL_SYMBOLS], | |
| 3923 [AC_REQUIRE([AC_CANONICAL_HOST])dnl | |
| 3924 AC_REQUIRE([AC_PROG_CC])dnl | |
| 3925 AC_REQUIRE([AC_PROG_AWK])dnl | |
| 3926 AC_REQUIRE([LT_PATH_NM])dnl | |
| 3927 AC_REQUIRE([LT_PATH_LD])dnl | |
| 3928 m4_require([_LT_DECL_SED])dnl | |
| 3929 m4_require([_LT_DECL_EGREP])dnl | |
| 3930 m4_require([_LT_TAG_COMPILER])dnl | |
| 3931 | |
| 3932 # Check for command to grab the raw symbol name followed by C symbol from nm. | |
| 3933 AC_MSG_CHECKING([command to parse $NM output from $compiler object]) | |
| 3934 AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], | |
| 3935 [ | |
| 3936 # These are sane defaults that work on at least a few old systems. | |
| 3937 # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
| 3938 | |
| 3939 # Character class describing NM global symbol codes. | |
| 3940 symcode='[[BCDEGRST]]' | |
| 3941 | |
| 3942 # Regexp to match symbols that can be accessed directly from C. | |
| 3943 sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' | |
| 3944 | |
| 3945 # Define system-specific variables. | |
| 3946 case $host_os in | |
| 3947 aix*) | |
| 3948 symcode='[[BCDT]]' | |
| 3949 ;; | |
| 3950 cygwin* | mingw* | pw32* | cegcc*) | |
| 3951 symcode='[[ABCDGISTW]]' | |
| 3952 ;; | |
| 3953 hpux*) | |
| 3954 if test ia64 = "$host_cpu"; then | |
| 3955 symcode='[[ABCDEGRST]]' | |
| 3956 fi | |
| 3957 ;; | |
| 3958 irix* | nonstopux*) | |
| 3959 symcode='[[BCDEGRST]]' | |
| 3960 ;; | |
| 3961 osf*) | |
| 3962 symcode='[[BCDEGQRST]]' | |
| 3963 ;; | |
| 3964 solaris*) | |
| 3965 symcode='[[BDRT]]' | |
| 3966 ;; | |
| 3967 sco3.2v5*) | |
| 3968 symcode='[[DT]]' | |
| 3969 ;; | |
| 3970 sysv4.2uw2*) | |
| 3971 symcode='[[DT]]' | |
| 3972 ;; | |
| 3973 sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
| 3974 symcode='[[ABDT]]' | |
| 3975 ;; | |
| 3976 sysv4) | |
| 3977 symcode='[[DFNSTU]]' | |
| 3978 ;; | |
| 3979 esac | |
| 3980 | |
| 3981 # If we're using GNU nm, then use its standard symbol codes. | |
| 3982 case `$NM -V 2>&1` in | |
| 3983 *GNU* | *'with BFD'*) | |
| 3984 symcode='[[ABCDGIRSTW]]' ;; | |
| 3985 esac | |
| 3986 | |
| 3987 if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
| 3988 # Gets list of data symbols to import. | |
| 3989 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'" | |
| 3990 # Adjust the below global symbol transforms to fixup imported variables. | |
| 3991 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" | |
| 3992 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" | |
| 3993 lt_c_name_lib_hook="\ | |
| 3994 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ | |
| 3995 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" | |
| 3996 else | |
| 3997 # Disable hooks by default. | |
| 3998 lt_cv_sys_global_symbol_to_import= | |
| 3999 lt_cdecl_hook= | |
| 4000 lt_c_name_hook= | |
| 4001 lt_c_name_lib_hook= | |
| 4002 fi | |
| 4003 | |
| 4004 # Transform an extracted symbol line into a proper C declaration. | |
| 4005 # Some systems (esp. on ia64) link data and code symbols differently, | |
| 4006 # so use this general approach. | |
| 4007 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ | |
| 4008 $lt_cdecl_hook\ | |
| 4009 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ | |
| 4010 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" | |
| 4011 | |
| 4012 # Transform an extracted symbol line into symbol name and symbol address | |
| 4013 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\ | |
| 4014 $lt_c_name_hook\ | |
| 4015 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ | |
| 4016 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" | |
| 4017 | |
| 4018 # Transform an extracted symbol line into symbol name with lib prefix and | |
| 4019 # symbol address. | |
| 4020 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\ | |
| 4021 $lt_c_name_lib_hook\ | |
| 4022 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ | |
| 4023 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ | |
| 4024 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" | |
| 4025 | |
| 4026 # Handle CRLF in mingw tool chain | |
| 4027 opt_cr= | |
| 4028 case $build_os in | |
| 4029 mingw*) | |
| 4030 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
| 4031 ;; | |
| 4032 esac | |
| 4033 | |
| 4034 # Try without a prefix underscore, then with it. | |
| 4035 for ac_symprfx in "" "_"; do | |
| 4036 | |
| 4037 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | |
| 4038 symxfrm="\\1 $ac_symprfx\\2 \\2" | |
| 4039 | |
| 4040 # Write the raw and C identifiers. | |
| 4041 if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
| 4042 # Fake it for dumpbin and say T for any non-static function, | |
| 4043 # D for any global variable and I for any imported variable. | |
| 4044 # Also find C++ and __fastcall symbols from MSVC++ or ICC, | |
| 4045 # which start with @ or ?. | |
| 4046 lt_cv_sys_global_symbol_pipe="$AWK ['"\ | |
| 4047 " {last_section=section; section=\$ 3};"\ | |
| 4048 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ | |
| 4049 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
| 4050 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ | |
| 4051 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ | |
| 4052 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ | |
| 4053 " \$ 0!~/External *\|/{next};"\ | |
| 4054 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
| 4055 " {if(hide[section]) next};"\ | |
| 4056 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ | |
| 4057 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ | |
| 4058 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ | |
| 4059 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ | |
| 4060 " ' prfx=^$ac_symprfx]" | |
| 4061 else | |
| 4062 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
| 4063 fi | |
| 4064 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'" | |
| 4065 | |
| 4066 # Check to see that the pipe works correctly. | |
| 4067 pipe_works=no | |
| 4068 | |
| 4069 rm -f conftest* | |
| 4070 cat > conftest.$ac_ext <<_LT_EOF | |
| 4071 #ifdef __cplusplus | |
| 4072 extern "C" { | |
| 4073 #endif | |
| 4074 char nm_test_var; | |
| 4075 void nm_test_func(void); | |
| 4076 void nm_test_func(void){} | |
| 4077 #ifdef __cplusplus | |
| 4078 } | |
| 4079 #endif | |
| 4080 int main(){nm_test_var='a';nm_test_func();return(0);} | |
| 4081 _LT_EOF | |
| 4082 | |
| 4083 if AC_TRY_EVAL(ac_compile); then | |
| 4084 # Now try to grab the symbols. | |
| 4085 nlist=conftest.nm | |
| 4086 if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then | |
| 4087 # Try sorting and uniquifying the output. | |
| 4088 if sort "$nlist" | uniq > "$nlist"T; then | |
| 4089 mv -f "$nlist"T "$nlist" | |
| 4090 else | |
| 4091 rm -f "$nlist"T | |
| 4092 fi | |
| 4093 | |
| 4094 # Make sure that we snagged all the symbols we need. | |
| 4095 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
| 4096 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
| 4097 cat <<_LT_EOF > conftest.$ac_ext | |
| 4098 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ | |
| 4099 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE | |
| 4100 /* DATA imports from DLLs on WIN32 can't be const, because runtime | |
| 4101 relocations are performed -- see ld's documentation on pseudo-relocs. */ | |
| 4102 # define LT@&t@_DLSYM_CONST | |
| 4103 #elif defined __osf__ | |
| 4104 /* This system does not cope well with relocations in const data. */ | |
| 4105 # define LT@&t@_DLSYM_CONST | |
| 4106 #else | |
| 4107 # define LT@&t@_DLSYM_CONST const | |
| 4108 #endif | |
| 4109 | |
| 4110 #ifdef __cplusplus | |
| 4111 extern "C" { | |
| 4112 #endif | |
| 4113 | |
| 4114 _LT_EOF | |
| 4115 # Now generate the symbol file. | |
| 4116 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
| 4117 | |
| 4118 cat <<_LT_EOF >> conftest.$ac_ext | |
| 4119 | |
| 4120 /* The mapping between symbol names and symbols. */ | |
| 4121 LT@&t@_DLSYM_CONST struct { | |
| 4122 const char *name; | |
| 4123 void *address; | |
| 4124 } | |
| 4125 lt__PROGRAM__LTX_preloaded_symbols[[]] = | |
| 4126 { | |
| 4127 { "@PROGRAM@", (void *) 0 }, | |
| 4128 _LT_EOF | |
| 4129 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
| 4130 cat <<\_LT_EOF >> conftest.$ac_ext | |
| 4131 {0, (void *) 0} | |
| 4132 }; | |
| 4133 | |
| 4134 /* This works around a problem in FreeBSD linker */ | |
| 4135 #ifdef FREEBSD_WORKAROUND | |
| 4136 static const void *lt_preloaded_setup() { | |
| 4137 return lt__PROGRAM__LTX_preloaded_symbols; | |
| 4138 } | |
| 4139 #endif | |
| 4140 | |
| 4141 #ifdef __cplusplus | |
| 4142 } | |
| 4143 #endif | |
| 4144 _LT_EOF | |
| 4145 # Now try linking the two files. | |
| 4146 mv conftest.$ac_objext conftstm.$ac_objext | |
| 4147 lt_globsym_save_LIBS=$LIBS | |
| 4148 lt_globsym_save_CFLAGS=$CFLAGS | |
| 4149 LIBS=conftstm.$ac_objext | |
| 4150 CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" | |
| 4151 if AC_TRY_EVAL(ac_link) && test -s conftest$ac_exeext; then | |
| 4152 pipe_works=yes | |
| 4153 fi | |
| 4154 LIBS=$lt_globsym_save_LIBS | |
| 4155 CFLAGS=$lt_globsym_save_CFLAGS | |
| 4156 else | |
| 4157 echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD | |
| 4158 fi | |
| 4159 else | |
| 4160 echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD | |
| 4161 fi | |
| 4162 else | |
| 4163 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD | |
| 4164 fi | |
| 4165 else | |
| 4166 echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD | |
| 4167 cat conftest.$ac_ext >&5 | |
| 4168 fi | |
| 4169 rm -rf conftest* conftst* | |
| 4170 | |
| 4171 # Do not use the global_symbol_pipe unless it works. | |
| 4172 if test yes = "$pipe_works"; then | |
| 4173 break | |
| 4174 else | |
| 4175 lt_cv_sys_global_symbol_pipe= | |
| 4176 fi | |
| 4177 done | |
| 4178 ]) | |
| 4179 if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
| 4180 lt_cv_sys_global_symbol_to_cdecl= | |
| 4181 fi | |
| 4182 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
| 4183 AC_MSG_RESULT(failed) | |
| 4184 else | |
| 4185 AC_MSG_RESULT(ok) | |
| 4186 fi | |
| 4187 | |
| 4188 # Response file support. | |
| 4189 if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
| 4190 nm_file_list_spec='@' | |
| 4191 elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then | |
| 4192 nm_file_list_spec='@' | |
| 4193 fi | |
| 4194 | |
| 4195 _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1], | |
| 4196 [Take the output of nm and produce a listing of raw symbols and C names]) | |
| 4197 _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1], | |
| 4198 [Transform the output of nm in a proper C declaration]) | |
| 4199 _LT_DECL([global_symbol_to_import], [lt_cv_sys_global_symbol_to_import], [1], | |
| 4200 [Transform the output of nm into a list of symbols to manually relocate]) | |
| 4201 _LT_DECL([global_symbol_to_c_name_address], | |
| 4202 [lt_cv_sys_global_symbol_to_c_name_address], [1], | |
| 4203 [Transform the output of nm in a C name address pair]) | |
| 4204 _LT_DECL([global_symbol_to_c_name_address_lib_prefix], | |
| 4205 [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1], | |
| 4206 [Transform the output of nm in a C name address pair when lib prefix is needed]) | |
| 4207 _LT_DECL([nm_interface], [lt_cv_nm_interface], [1], | |
| 4208 [The name lister interface]) | |
| 4209 _LT_DECL([], [nm_file_list_spec], [1], | |
| 4210 [Specify filename containing input files for $NM]) | |
| 4211 ]) # _LT_CMD_GLOBAL_SYMBOLS | |
| 4212 | |
| 4213 | |
| 4214 # _LT_COMPILER_PIC([TAGNAME]) | |
| 4215 # --------------------------- | |
| 4216 m4_defun([_LT_COMPILER_PIC], | |
| 4217 [m4_require([_LT_TAG_COMPILER])dnl | |
| 4218 _LT_TAGVAR(lt_prog_compiler_wl, $1)= | |
| 4219 _LT_TAGVAR(lt_prog_compiler_pic, $1)= | |
| 4220 _LT_TAGVAR(lt_prog_compiler_static, $1)= | |
| 4221 | |
| 4222 m4_if([$1], [CXX], [ | |
| 4223 # C++ specific cases for pic, static, wl, etc. | |
| 4224 if test yes = "$GXX"; then | |
| 4225 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
| 4226 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' | |
| 4227 | |
| 4228 case $host_os in | |
| 4229 aix*) | |
| 4230 # All AIX code is PIC. | |
| 4231 if test ia64 = "$host_cpu"; then | |
| 4232 # AIX 5 now supports IA64 processor | |
| 4233 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | |
| 4234 fi | |
| 4235 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | |
| 4236 ;; | |
| 4237 | |
| 4238 amigaos*) | |
| 4239 case $host_cpu in | |
| 4240 powerpc) | |
| 4241 # see comment about AmigaOS4 .so support | |
| 4242 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | |
| 4243 ;; | |
| 4244 m68k) | |
| 4245 # FIXME: we need at least 68020 code to build shared libraries, but | |
| 4246 # adding the '-m68020' flag to GCC prevents building anything better, | |
| 4247 # like '-m68040'. | |
| 4248 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' | |
| 4249 ;; | |
| 4250 esac | |
| 4251 ;; | |
| 4252 | |
| 4253 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
| 4254 # PIC is the default for these OSes. | |
| 4255 ;; | |
| 4256 mingw* | cygwin* | os2* | pw32* | cegcc*) | |
| 4257 # This hack is so that the source file can tell whether it is being | |
| 4258 # built for inclusion in a dll (and should export symbols for example). | |
| 4259 # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
| 4260 # (--disable-auto-import) libraries | |
| 4261 m4_if([$1], [GCJ], [], | |
| 4262 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) | |
| 4263 case $host_os in | |
| 4264 os2*) | |
| 4265 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static' | |
| 4266 ;; | |
| 4267 esac | |
| 4268 ;; | |
| 4269 darwin* | rhapsody*) | |
| 4270 # PIC is the default on this platform | |
| 4271 # Common symbols not allowed in MH_DYLIB files | |
| 4272 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' | |
| 4273 ;; | |
| 4274 *djgpp*) | |
| 4275 # DJGPP does not support shared libraries at all | |
| 4276 _LT_TAGVAR(lt_prog_compiler_pic, $1)= | |
| 4277 ;; | |
| 4278 haiku*) | |
| 4279 # PIC is the default for Haiku. | |
| 4280 # The "-static" flag exists, but is broken. | |
| 4281 _LT_TAGVAR(lt_prog_compiler_static, $1)= | |
| 4282 ;; | |
| 4283 interix[[3-9]]*) | |
| 4284 # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
| 4285 # Instead, we relocate shared libraries at runtime. | |
| 4286 ;; | |
| 4287 sysv4*MP*) | |
| 4288 if test -d /usr/nec; then | |
| 4289 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic | |
| 4290 fi | |
| 4291 ;; | |
| 4292 hpux*) | |
| 4293 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
| 4294 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
| 4295 # sets the default TLS model and affects inlining. | |
| 4296 case $host_cpu in | |
| 4297 hppa*64*) | |
| 4298 ;; | |
| 4299 *) | |
| 4300 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | |
| 4301 ;; | |
| 4302 esac | |
| 4303 ;; | |
| 4304 *qnx* | *nto*) | |
| 4305 # QNX uses GNU C++, but need to define -shared option too, otherwise | |
| 4306 # it will coredump. | |
| 4307 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' | |
| 4308 ;; | |
| 4309 *) | |
| 4310 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | |
| 4311 ;; | |
| 4312 esac | |
| 4313 else | |
| 4314 case $host_os in | |
| 4315 aix[[4-9]]*) | |
| 4316 # All AIX code is PIC. | |
| 4317 if test ia64 = "$host_cpu"; then | |
| 4318 # AIX 5 now supports IA64 processor | |
| 4319 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | |
| 4320 else | |
| 4321 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' | |
| 4322 fi | |
| 4323 ;; | |
| 4324 chorus*) | |
| 4325 case $cc_basename in | |
| 4326 cxch68*) | |
| 4327 # Green Hills C++ Compiler | |
| 4328 # _LT_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" | |
| 4329 ;; | |
| 4330 esac | |
| 4331 ;; | |
| 4332 mingw* | cygwin* | os2* | pw32* | cegcc*) | |
| 4333 # This hack is so that the source file can tell whether it is being | |
| 4334 # built for inclusion in a dll (and should export symbols for example). | |
| 4335 m4_if([$1], [GCJ], [], | |
| 4336 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) | |
| 4337 ;; | |
| 4338 dgux*) | |
| 4339 case $cc_basename in | |
| 4340 ec++*) | |
| 4341 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | |
| 4342 ;; | |
| 4343 ghcx*) | |
| 4344 # Green Hills C++ Compiler | |
| 4345 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' | |
| 4346 ;; | |
| 4347 *) | |
| 4348 ;; | |
| 4349 esac | |
| 4350 ;; | |
| 4351 freebsd* | dragonfly* | midnightbsd*) | |
| 4352 # FreeBSD uses GNU C++ | |
| 4353 ;; | |
| 4354 hpux9* | hpux10* | hpux11*) | |
| 4355 case $cc_basename in | |
| 4356 CC*) | |
| 4357 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
| 4358 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive' | |
| 4359 if test ia64 != "$host_cpu"; then | |
| 4360 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' | |
| 4361 fi | |
| 4362 ;; | |
| 4363 aCC*) | |
| 4364 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
| 4365 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive' | |
| 4366 case $host_cpu in | |
| 4367 hppa*64*|ia64*) | |
| 4368 # +Z the default | |
| 4369 ;; | |
| 4370 *) | |
| 4371 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' | |
| 4372 ;; | |
| 4373 esac | |
| 4374 ;; | |
| 4375 *) | |
| 4376 ;; | |
| 4377 esac | |
| 4378 ;; | |
| 4379 interix*) | |
| 4380 # This is c89, which is MS Visual C++ (no shared libs) | |
| 4381 # Anyone wants to do a port? | |
| 4382 ;; | |
| 4383 irix5* | irix6* | nonstopux*) | |
| 4384 case $cc_basename in | |
| 4385 CC*) | |
| 4386 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
| 4387 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' | |
| 4388 # CC pic flag -KPIC is the default. | |
| 4389 ;; | |
| 4390 *) | |
| 4391 ;; | |
| 4392 esac | |
| 4393 ;; | |
| 4394 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) | |
| 4395 case $cc_basename in | |
| 4396 KCC*) | |
| 4397 # KAI C++ Compiler | |
| 4398 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' | |
| 4399 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | |
| 4400 ;; | |
| 4401 ecpc* ) | |
| 4402 # old Intel C++ for x86_64, which still supported -KPIC. | |
| 4403 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
| 4404 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | |
| 4405 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' | |
| 4406 ;; | |
| 4407 icpc* ) | |
| 4408 # Intel C++, used to be incompatible with GCC. | |
| 4409 # ICC 10 doesn't accept -KPIC any more. | |
| 4410 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
| 4411 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | |
| 4412 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' | |
| 4413 ;; | |
| 4414 pgCC* | pgcpp*) | |
| 4415 # Portland Group C++ compiler | |
| 4416 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
| 4417 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' | |
| 4418 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | |
| 4419 ;; | |
| 4420 cxx*) | |
| 4421 # Compaq C++ | |
| 4422 # Make sure the PIC flag is empty. It appears that all Alpha | |
| 4423 # Linux and Compaq Tru64 Unix objects are PIC. | |
| 4424 _LT_TAGVAR(lt_prog_compiler_pic, $1)= | |
| 4425 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' | |
| 4426 ;; | |
| 4427 xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*) | |
| 4428 # IBM XL 8.0, 9.0 on PPC and BlueGene | |
| 4429 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
| 4430 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' | |
| 4431 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' | |
| 4432 ;; | |
| 4433 *) | |
| 4434 case `$CC -V 2>&1 | $SED 5q` in | |
| 4435 *Sun\ C*) | |
| 4436 # Sun C++ 5.9 | |
| 4437 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | |
| 4438 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | |
| 4439 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' | |
| 4440 ;; | |
| 4441 esac | |
| 4442 ;; | |
| 4443 esac | |
| 4444 ;; | |
| 4445 lynxos*) | |
| 4446 ;; | |
| 4447 m88k*) | |
| 4448 ;; | |
| 4449 mvs*) | |
| 4450 case $cc_basename in | |
| 4451 cxx*) | |
| 4452 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' | |
| 4453 ;; | |
| 4454 *) | |
| 4455 ;; | |
| 4456 esac | |
| 4457 ;; | |
| 4458 netbsd* | netbsdelf*-gnu) | |
| 4459 ;; | |
| 4460 *qnx* | *nto*) | |
| 4461 # QNX uses GNU C++, but need to define -shared option too, otherwise | |
| 4462 # it will coredump. | |
| 4463 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' | |
| 4464 ;; | |
| 4465 osf3* | osf4* | osf5*) | |
| 4466 case $cc_basename in | |
| 4467 KCC*) | |
| 4468 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' | |
| 4469 ;; | |
| 4470 RCC*) | |
| 4471 # Rational C++ 2.4.1 | |
| 4472 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' | |
| 4473 ;; | |
| 4474 cxx*) | |
| 4475 # Digital/Compaq C++ | |
| 4476 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
| 4477 # Make sure the PIC flag is empty. It appears that all Alpha | |
| 4478 # Linux and Compaq Tru64 Unix objects are PIC. | |
| 4479 _LT_TAGVAR(lt_prog_compiler_pic, $1)= | |
| 4480 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' | |
| 4481 ;; | |
| 4482 *) | |
| 4483 ;; | |
| 4484 esac | |
| 4485 ;; | |
| 4486 psos*) | |
| 4487 ;; | |
| 4488 solaris*) | |
| 4489 case $cc_basename in | |
| 4490 CC* | sunCC*) | |
| 4491 # Sun C++ 4.2, 5.x and Centerline C++ | |
| 4492 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | |
| 4493 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | |
| 4494 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' | |
| 4495 ;; | |
| 4496 gcx*) | |
| 4497 # Green Hills C++ Compiler | |
| 4498 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' | |
| 4499 ;; | |
| 4500 *) | |
| 4501 ;; | |
| 4502 esac | |
| 4503 ;; | |
| 4504 sunos4*) | |
| 4505 case $cc_basename in | |
| 4506 CC*) | |
| 4507 # Sun C++ 4.x | |
| 4508 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' | |
| 4509 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | |
| 4510 ;; | |
| 4511 lcc*) | |
| 4512 # Lucid | |
| 4513 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' | |
| 4514 ;; | |
| 4515 *) | |
| 4516 ;; | |
| 4517 esac | |
| 4518 ;; | |
| 4519 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
| 4520 case $cc_basename in | |
| 4521 CC*) | |
| 4522 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
| 4523 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | |
| 4524 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | |
| 4525 ;; | |
| 4526 esac | |
| 4527 ;; | |
| 4528 tandem*) | |
| 4529 case $cc_basename in | |
| 4530 NCC*) | |
| 4531 # NonStop-UX NCC 3.20 | |
| 4532 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | |
| 4533 ;; | |
| 4534 *) | |
| 4535 ;; | |
| 4536 esac | |
| 4537 ;; | |
| 4538 vxworks*) | |
| 4539 ;; | |
| 4540 *) | |
| 4541 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no | |
| 4542 ;; | |
| 4543 esac | |
| 4544 fi | |
| 4545 ], | |
| 4546 [ | |
| 4547 if test yes = "$GCC"; then | |
| 4548 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
| 4549 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' | |
| 4550 | |
| 4551 case $host_os in | |
| 4552 aix*) | |
| 4553 # All AIX code is PIC. | |
| 4554 if test ia64 = "$host_cpu"; then | |
| 4555 # AIX 5 now supports IA64 processor | |
| 4556 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | |
| 4557 fi | |
| 4558 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | |
| 4559 ;; | |
| 4560 | |
| 4561 amigaos*) | |
| 4562 case $host_cpu in | |
| 4563 powerpc) | |
| 4564 # see comment about AmigaOS4 .so support | |
| 4565 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | |
| 4566 ;; | |
| 4567 m68k) | |
| 4568 # FIXME: we need at least 68020 code to build shared libraries, but | |
| 4569 # adding the '-m68020' flag to GCC prevents building anything better, | |
| 4570 # like '-m68040'. | |
| 4571 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' | |
| 4572 ;; | |
| 4573 esac | |
| 4574 ;; | |
| 4575 | |
| 4576 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
| 4577 # PIC is the default for these OSes. | |
| 4578 ;; | |
| 4579 | |
| 4580 mingw* | cygwin* | pw32* | os2* | cegcc*) | |
| 4581 # This hack is so that the source file can tell whether it is being | |
| 4582 # built for inclusion in a dll (and should export symbols for example). | |
| 4583 # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
| 4584 # (--disable-auto-import) libraries | |
| 4585 m4_if([$1], [GCJ], [], | |
| 4586 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) | |
| 4587 case $host_os in | |
| 4588 os2*) | |
| 4589 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static' | |
| 4590 ;; | |
| 4591 esac | |
| 4592 ;; | |
| 4593 | |
| 4594 darwin* | rhapsody*) | |
| 4595 # PIC is the default on this platform | |
| 4596 # Common symbols not allowed in MH_DYLIB files | |
| 4597 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' | |
| 4598 ;; | |
| 4599 | |
| 4600 haiku*) | |
| 4601 # PIC is the default for Haiku. | |
| 4602 # The "-static" flag exists, but is broken. | |
| 4603 _LT_TAGVAR(lt_prog_compiler_static, $1)= | |
| 4604 ;; | |
| 4605 | |
| 4606 hpux*) | |
| 4607 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
| 4608 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
| 4609 # sets the default TLS model and affects inlining. | |
| 4610 case $host_cpu in | |
| 4611 hppa*64*) | |
| 4612 # +Z the default | |
| 4613 ;; | |
| 4614 *) | |
| 4615 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | |
| 4616 ;; | |
| 4617 esac | |
| 4618 ;; | |
| 4619 | |
| 4620 interix[[3-9]]*) | |
| 4621 # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
| 4622 # Instead, we relocate shared libraries at runtime. | |
| 4623 ;; | |
| 4624 | |
| 4625 msdosdjgpp*) | |
| 4626 # Just because we use GCC doesn't mean we suddenly get shared libraries | |
| 4627 # on systems that don't support them. | |
| 4628 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no | |
| 4629 enable_shared=no | |
| 4630 ;; | |
| 4631 | |
| 4632 *nto* | *qnx*) | |
| 4633 # QNX uses GNU C++, but need to define -shared option too, otherwise | |
| 4634 # it will coredump. | |
| 4635 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' | |
| 4636 ;; | |
| 4637 | |
| 4638 sysv4*MP*) | |
| 4639 if test -d /usr/nec; then | |
| 4640 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic | |
| 4641 fi | |
| 4642 ;; | |
| 4643 | |
| 4644 *) | |
| 4645 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | |
| 4646 ;; | |
| 4647 esac | |
| 4648 | |
| 4649 case $cc_basename in | |
| 4650 nvcc*) # Cuda Compiler Driver 2.2 | |
| 4651 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker ' | |
| 4652 if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then | |
| 4653 _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)" | |
| 4654 fi | |
| 4655 ;; | |
| 4656 esac | |
| 4657 else | |
| 4658 # PORTME Check for flag to pass linker flags through the system compiler. | |
| 4659 case $host_os in | |
| 4660 aix*) | |
| 4661 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
| 4662 if test ia64 = "$host_cpu"; then | |
| 4663 # AIX 5 now supports IA64 processor | |
| 4664 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | |
| 4665 else | |
| 4666 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' | |
| 4667 fi | |
| 4668 ;; | |
| 4669 | |
| 4670 darwin* | rhapsody*) | |
| 4671 # PIC is the default on this platform | |
| 4672 # Common symbols not allowed in MH_DYLIB files | |
| 4673 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' | |
| 4674 case $cc_basename in | |
| 4675 nagfor*) | |
| 4676 # NAG Fortran compiler | |
| 4677 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,' | |
| 4678 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' | |
| 4679 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | |
| 4680 ;; | |
| 4681 esac | |
| 4682 ;; | |
| 4683 | |
| 4684 mingw* | cygwin* | pw32* | os2* | cegcc*) | |
| 4685 # This hack is so that the source file can tell whether it is being | |
| 4686 # built for inclusion in a dll (and should export symbols for example). | |
| 4687 m4_if([$1], [GCJ], [], | |
| 4688 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) | |
| 4689 case $host_os in | |
| 4690 os2*) | |
| 4691 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static' | |
| 4692 ;; | |
| 4693 esac | |
| 4694 ;; | |
| 4695 | |
| 4696 hpux9* | hpux10* | hpux11*) | |
| 4697 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
| 4698 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
| 4699 # not for PA HP-UX. | |
| 4700 case $host_cpu in | |
| 4701 hppa*64*|ia64*) | |
| 4702 # +Z the default | |
| 4703 ;; | |
| 4704 *) | |
| 4705 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' | |
| 4706 ;; | |
| 4707 esac | |
| 4708 # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
| 4709 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive' | |
| 4710 ;; | |
| 4711 | |
| 4712 irix5* | irix6* | nonstopux*) | |
| 4713 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
| 4714 # PIC (with -KPIC) is the default. | |
| 4715 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' | |
| 4716 ;; | |
| 4717 | |
| 4718 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) | |
| 4719 case $cc_basename in | |
| 4720 # old Intel for x86_64, which still supported -KPIC. | |
| 4721 ecc*) | |
| 4722 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
| 4723 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | |
| 4724 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' | |
| 4725 ;; | |
| 4726 # flang / f18. f95 an alias for gfortran or flang on Debian | |
| 4727 flang* | f18* | f95*) | |
| 4728 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
| 4729 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | |
| 4730 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' | |
| 4731 ;; | |
| 4732 # icc used to be incompatible with GCC. | |
| 4733 # ICC 10 doesn't accept -KPIC any more. | |
| 4734 icc* | ifort*) | |
| 4735 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
| 4736 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | |
| 4737 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' | |
| 4738 ;; | |
| 4739 # Lahey Fortran 8.1. | |
| 4740 lf95*) | |
| 4741 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
| 4742 _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared' | |
| 4743 _LT_TAGVAR(lt_prog_compiler_static, $1)='--static' | |
| 4744 ;; | |
| 4745 nagfor*) | |
| 4746 # NAG Fortran compiler | |
| 4747 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,' | |
| 4748 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' | |
| 4749 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | |
| 4750 ;; | |
| 4751 tcc*) | |
| 4752 # Fabrice Bellard et al's Tiny C Compiler | |
| 4753 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
| 4754 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | |
| 4755 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' | |
| 4756 ;; | |
| 4757 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) | |
| 4758 # Portland Group compilers (*not* the Pentium gcc compiler, | |
| 4759 # which looks to be a dead project) | |
| 4760 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
| 4761 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' | |
| 4762 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | |
| 4763 ;; | |
| 4764 ccc*) | |
| 4765 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
| 4766 # All Alpha code is PIC. | |
| 4767 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' | |
| 4768 ;; | |
| 4769 xl* | bgxl* | bgf* | mpixl*) | |
| 4770 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
| 4771 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
| 4772 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' | |
| 4773 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' | |
| 4774 ;; | |
| 4775 *) | |
| 4776 case `$CC -V 2>&1 | $SED 5q` in | |
| 4777 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*) | |
| 4778 # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
| 4779 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | |
| 4780 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | |
| 4781 _LT_TAGVAR(lt_prog_compiler_wl, $1)='' | |
| 4782 ;; | |
| 4783 *Sun\ F* | *Sun*Fortran*) | |
| 4784 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | |
| 4785 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | |
| 4786 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' | |
| 4787 ;; | |
| 4788 *Sun\ C*) | |
| 4789 # Sun C 5.9 | |
| 4790 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | |
| 4791 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | |
| 4792 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
| 4793 ;; | |
| 4794 *Intel*\ [[CF]]*Compiler*) | |
| 4795 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
| 4796 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | |
| 4797 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' | |
| 4798 ;; | |
| 4799 *Portland\ Group*) | |
| 4800 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
| 4801 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' | |
| 4802 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | |
| 4803 ;; | |
| 4804 esac | |
| 4805 ;; | |
| 4806 esac | |
| 4807 ;; | |
| 4808 | |
| 4809 newsos6) | |
| 4810 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | |
| 4811 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | |
| 4812 ;; | |
| 4813 | |
| 4814 *nto* | *qnx*) | |
| 4815 # QNX uses GNU C++, but need to define -shared option too, otherwise | |
| 4816 # it will coredump. | |
| 4817 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' | |
| 4818 ;; | |
| 4819 | |
| 4820 osf3* | osf4* | osf5*) | |
| 4821 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
| 4822 # All OSF/1 code is PIC. | |
| 4823 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' | |
| 4824 ;; | |
| 4825 | |
| 4826 rdos*) | |
| 4827 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' | |
| 4828 ;; | |
| 4829 | |
| 4830 solaris*) | |
| 4831 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | |
| 4832 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | |
| 4833 case $cc_basename in | |
| 4834 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) | |
| 4835 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; | |
| 4836 *) | |
| 4837 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; | |
| 4838 esac | |
| 4839 ;; | |
| 4840 | |
| 4841 sunos4*) | |
| 4842 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' | |
| 4843 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' | |
| 4844 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | |
| 4845 ;; | |
| 4846 | |
| 4847 sysv4 | sysv4.2uw2* | sysv4.3*) | |
| 4848 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
| 4849 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | |
| 4850 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | |
| 4851 ;; | |
| 4852 | |
| 4853 sysv4*MP*) | |
| 4854 if test -d /usr/nec; then | |
| 4855 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' | |
| 4856 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | |
| 4857 fi | |
| 4858 ;; | |
| 4859 | |
| 4860 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
| 4861 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
| 4862 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | |
| 4863 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | |
| 4864 ;; | |
| 4865 | |
| 4866 unicos*) | |
| 4867 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
| 4868 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no | |
| 4869 ;; | |
| 4870 | |
| 4871 uts4*) | |
| 4872 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' | |
| 4873 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | |
| 4874 ;; | |
| 4875 | |
| 4876 *) | |
| 4877 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no | |
| 4878 ;; | |
| 4879 esac | |
| 4880 fi | |
| 4881 ]) | |
| 4882 case $host_os in | |
| 4883 # For platforms that do not support PIC, -DPIC is meaningless: | |
| 4884 *djgpp*) | |
| 4885 _LT_TAGVAR(lt_prog_compiler_pic, $1)= | |
| 4886 ;; | |
| 4887 *) | |
| 4888 _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])" | |
| 4889 ;; | |
| 4890 esac | |
| 4891 | |
| 4892 AC_CACHE_CHECK([for $compiler option to produce PIC], | |
| 4893 [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)], | |
| 4894 [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)]) | |
| 4895 _LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1) | |
| 4896 | |
| 4897 # | |
| 4898 # Check to make sure the PIC flag actually works. | |
| 4899 # | |
| 4900 if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then | |
| 4901 _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works], | |
| 4902 [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)], | |
| 4903 [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [], | |
| 4904 [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in | |
| 4905 "" | " "*) ;; | |
| 4906 *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;; | |
| 4907 esac], | |
| 4908 [_LT_TAGVAR(lt_prog_compiler_pic, $1)= | |
| 4909 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) | |
| 4910 fi | |
| 4911 _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1], | |
| 4912 [Additional compiler flags for building library objects]) | |
| 4913 | |
| 4914 _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1], | |
| 4915 [How to pass a linker flag through the compiler]) | |
| 4916 # | |
| 4917 # Check to make sure the static flag actually works. | |
| 4918 # | |
| 4919 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\" | |
| 4920 _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], | |
| 4921 _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1), | |
| 4922 $lt_tmp_static_flag, | |
| 4923 [], | |
| 4924 [_LT_TAGVAR(lt_prog_compiler_static, $1)=]) | |
| 4925 _LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1], | |
| 4926 [Compiler flag to prevent dynamic linking]) | |
| 4927 ])# _LT_COMPILER_PIC | |
| 4928 | |
| 4929 | |
| 4930 # _LT_LINKER_SHLIBS([TAGNAME]) | |
| 4931 # ---------------------------- | |
| 4932 # See if the linker supports building shared libraries. | |
| 4933 m4_defun([_LT_LINKER_SHLIBS], | |
| 4934 [AC_REQUIRE([LT_PATH_LD])dnl | |
| 4935 AC_REQUIRE([LT_PATH_NM])dnl | |
| 4936 m4_require([_LT_PATH_MANIFEST_TOOL])dnl | |
| 4937 m4_require([_LT_FILEUTILS_DEFAULTS])dnl | |
| 4938 m4_require([_LT_DECL_EGREP])dnl | |
| 4939 m4_require([_LT_DECL_SED])dnl | |
| 4940 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl | |
| 4941 m4_require([_LT_TAG_COMPILER])dnl | |
| 4942 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) | |
| 4943 m4_if([$1], [CXX], [ | |
| 4944 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
| 4945 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] | |
| 4946 case $host_os in | |
| 4947 aix[[4-9]]*) | |
| 4948 # If we're using GNU nm, then we don't want the "-C" option. | |
| 4949 # -C means demangle to GNU nm, but means don't demangle to AIX nm. | |
| 4950 # Without the "-l" option, or with the "-B" option, AIX nm treats | |
| 4951 # weak defined symbols like other global defined symbols, whereas | |
| 4952 # GNU nm marks them as "W". | |
| 4953 # While the 'weak' keyword is ignored in the Export File, we need | |
| 4954 # it in the Import File for the 'aix-soname' feature, so we have | |
| 4955 # to replace the "-B" option with "-P" for AIX nm. | |
| 4956 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
| 4957 _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' | |
| 4958 else | |
| 4959 _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 == "L") || (\$ 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' | |
| 4960 fi | |
| 4961 ;; | |
| 4962 pw32*) | |
| 4963 _LT_TAGVAR(export_symbols_cmds, $1)=$ltdll_cmds | |
| 4964 ;; | |
| 4965 cygwin* | mingw* | cegcc*) | |
| 4966 case $cc_basename in | |
| 4967 cl* | icl*) | |
| 4968 _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' | |
| 4969 ;; | |
| 4970 *) | |
| 4971 _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' | |
| 4972 _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'] | |
| 4973 ;; | |
| 4974 esac | |
| 4975 ;; | |
| 4976 linux* | k*bsd*-gnu | gnu*) | |
| 4977 _LT_TAGVAR(link_all_deplibs, $1)=no | |
| 4978 ;; | |
| 4979 *) | |
| 4980 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
| 4981 ;; | |
| 4982 esac | |
| 4983 ], [ | |
| 4984 runpath_var= | |
| 4985 _LT_TAGVAR(allow_undefined_flag, $1)= | |
| 4986 _LT_TAGVAR(always_export_symbols, $1)=no | |
| 4987 _LT_TAGVAR(archive_cmds, $1)= | |
| 4988 _LT_TAGVAR(archive_expsym_cmds, $1)= | |
| 4989 _LT_TAGVAR(compiler_needs_object, $1)=no | |
| 4990 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no | |
| 4991 _LT_TAGVAR(export_dynamic_flag_spec, $1)= | |
| 4992 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
| 4993 _LT_TAGVAR(hardcode_automatic, $1)=no | |
| 4994 _LT_TAGVAR(hardcode_direct, $1)=no | |
| 4995 _LT_TAGVAR(hardcode_direct_absolute, $1)=no | |
| 4996 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= | |
| 4997 _LT_TAGVAR(hardcode_libdir_separator, $1)= | |
| 4998 _LT_TAGVAR(hardcode_minus_L, $1)=no | |
| 4999 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported | |
| 5000 _LT_TAGVAR(inherit_rpath, $1)=no | |
| 5001 _LT_TAGVAR(link_all_deplibs, $1)=unknown | |
| 5002 _LT_TAGVAR(module_cmds, $1)= | |
| 5003 _LT_TAGVAR(module_expsym_cmds, $1)= | |
| 5004 _LT_TAGVAR(old_archive_from_new_cmds, $1)= | |
| 5005 _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)= | |
| 5006 _LT_TAGVAR(thread_safe_flag_spec, $1)= | |
| 5007 _LT_TAGVAR(whole_archive_flag_spec, $1)= | |
| 5008 # include_expsyms should be a list of space-separated symbols to be *always* | |
| 5009 # included in the symbol list | |
| 5010 _LT_TAGVAR(include_expsyms, $1)= | |
| 5011 # exclude_expsyms can be an extended regexp of symbols to exclude | |
| 5012 # it will be wrapped by ' (' and ')$', so one must not match beginning or | |
| 5013 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', | |
| 5014 # as well as any symbol that contains 'd'. | |
| 5015 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] | |
| 5016 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
| 5017 # platforms (ab)use it in PIC code, but their linkers get confused if | |
| 5018 # the symbol is explicitly referenced. Since portable code cannot | |
| 5019 # rely on this symbol name, it's probably fine to never include it in | |
| 5020 # preloaded symbol tables. | |
| 5021 # Exclude shared library initialization/finalization symbols. | |
| 5022 dnl Note also adjust exclude_expsyms for C++ above. | |
| 5023 extract_expsyms_cmds= | |
| 5024 | |
| 5025 case $host_os in | |
| 5026 cygwin* | mingw* | pw32* | cegcc*) | |
| 5027 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time | |
| 5028 # When not using gcc, we currently assume that we are using | |
| 5029 # Microsoft Visual C++ or Intel C++ Compiler. | |
| 5030 if test yes != "$GCC"; then | |
| 5031 with_gnu_ld=no | |
| 5032 fi | |
| 5033 ;; | |
| 5034 interix*) | |
| 5035 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) | |
| 5036 with_gnu_ld=yes | |
| 5037 ;; | |
| 5038 openbsd* | bitrig*) | |
| 5039 with_gnu_ld=no | |
| 5040 ;; | |
| 5041 linux* | k*bsd*-gnu | gnu*) | |
| 5042 _LT_TAGVAR(link_all_deplibs, $1)=no | |
| 5043 ;; | |
| 5044 esac | |
| 5045 | |
| 5046 _LT_TAGVAR(ld_shlibs, $1)=yes | |
| 5047 | |
| 5048 # On some targets, GNU ld is compatible enough with the native linker | |
| 5049 # that we're better off using the native interface for both. | |
| 5050 lt_use_gnu_ld_interface=no | |
| 5051 if test yes = "$with_gnu_ld"; then | |
| 5052 case $host_os in | |
| 5053 aix*) | |
| 5054 # The AIX port of GNU ld has always aspired to compatibility | |
| 5055 # with the native linker. However, as the warning in the GNU ld | |
| 5056 # block says, versions before 2.19.5* couldn't really create working | |
| 5057 # shared libraries, regardless of the interface used. | |
| 5058 case `$LD -v 2>&1` in | |
| 5059 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
| 5060 *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;; | |
| 5061 *\ \(GNU\ Binutils\)\ [[3-9]]*) ;; | |
| 5062 *) | |
| 5063 lt_use_gnu_ld_interface=yes | |
| 5064 ;; | |
| 5065 esac | |
| 5066 ;; | |
| 5067 *) | |
| 5068 lt_use_gnu_ld_interface=yes | |
| 5069 ;; | |
| 5070 esac | |
| 5071 fi | |
| 5072 | |
| 5073 if test yes = "$lt_use_gnu_ld_interface"; then | |
| 5074 # If archive_cmds runs LD, not CC, wlarc should be empty | |
| 5075 wlarc='$wl' | |
| 5076 | |
| 5077 # Set some defaults for GNU ld with shared library support. These | |
| 5078 # are reset later if shared libraries are not supported. Putting them | |
| 5079 # here allows them to be overridden if necessary. | |
| 5080 runpath_var=LD_RUN_PATH | |
| 5081 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' | |
| 5082 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' | |
| 5083 # ancient GNU ld didn't support --whole-archive et. al. | |
| 5084 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
| 5085 _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' | |
| 5086 else | |
| 5087 _LT_TAGVAR(whole_archive_flag_spec, $1)= | |
| 5088 fi | |
| 5089 supports_anon_versioning=no | |
| 5090 case `$LD -v | $SED -e 's/([[^)]]\+)\s\+//' 2>&1` in | |
| 5091 *GNU\ gold*) supports_anon_versioning=yes ;; | |
| 5092 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
| 5093 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
| 5094 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
| 5095 *\ 2.11.*) ;; # other 2.11 versions | |
| 5096 *) supports_anon_versioning=yes ;; | |
| 5097 esac | |
| 5098 | |
| 5099 # See if GNU ld supports shared libraries. | |
| 5100 case $host_os in | |
| 5101 aix[[3-9]]*) | |
| 5102 # On AIX/PPC, the GNU linker is very broken | |
| 5103 if test ia64 != "$host_cpu"; then | |
| 5104 _LT_TAGVAR(ld_shlibs, $1)=no | |
| 5105 cat <<_LT_EOF 1>&2 | |
| 5106 | |
| 5107 *** Warning: the GNU linker, at least up to release 2.19, is reported | |
| 5108 *** to be unable to reliably create shared libraries on AIX. | |
| 5109 *** Therefore, libtool is disabling shared libraries support. If you | |
| 5110 *** really care for shared libraries, you may want to install binutils | |
| 5111 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
| 5112 *** You will then need to restart the configuration process. | |
| 5113 | |
| 5114 _LT_EOF | |
| 5115 fi | |
| 5116 ;; | |
| 5117 | |
| 5118 amigaos*) | |
| 5119 case $host_cpu in | |
| 5120 powerpc) | |
| 5121 # see comment about AmigaOS4 .so support | |
| 5122 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | |
| 5123 _LT_TAGVAR(archive_expsym_cmds, $1)='' | |
| 5124 ;; | |
| 5125 m68k) | |
| 5126 _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)' | |
| 5127 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | |
| 5128 _LT_TAGVAR(hardcode_minus_L, $1)=yes | |
| 5129 ;; | |
| 5130 esac | |
| 5131 ;; | |
| 5132 | |
| 5133 beos*) | |
| 5134 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
| 5135 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported | |
| 5136 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
| 5137 # support --undefined. This deserves some investigation. FIXME | |
| 5138 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | |
| 5139 else | |
| 5140 _LT_TAGVAR(ld_shlibs, $1)=no | |
| 5141 fi | |
| 5142 ;; | |
| 5143 | |
| 5144 cygwin* | mingw* | pw32* | cegcc*) | |
| 5145 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, | |
| 5146 # as there is no search path for DLLs. | |
| 5147 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | |
| 5148 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols' | |
| 5149 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported | |
| 5150 _LT_TAGVAR(always_export_symbols, $1)=no | |
| 5151 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes | |
| 5152 _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' | |
| 5153 _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'] | |
| 5154 | |
| 5155 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
| 5156 _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' | |
| 5157 # If the export-symbols file already is a .def file, use it as | |
| 5158 # is; otherwise, prepend EXPORTS... | |
| 5159 _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then | |
| 5160 cp $export_symbols $output_objdir/$soname.def; | |
| 5161 else | |
| 5162 echo EXPORTS > $output_objdir/$soname.def; | |
| 5163 cat $export_symbols >> $output_objdir/$soname.def; | |
| 5164 fi~ | |
| 5165 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
| 5166 else | |
| 5167 _LT_TAGVAR(ld_shlibs, $1)=no | |
| 5168 fi | |
| 5169 ;; | |
| 5170 | |
| 5171 haiku*) | |
| 5172 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | |
| 5173 _LT_TAGVAR(link_all_deplibs, $1)=yes | |
| 5174 ;; | |
| 5175 | |
| 5176 os2*) | |
| 5177 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | |
| 5178 _LT_TAGVAR(hardcode_minus_L, $1)=yes | |
| 5179 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported | |
| 5180 shrext_cmds=.dll | |
| 5181 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ | |
| 5182 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ | |
| 5183 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ | |
| 5184 $ECHO EXPORTS >> $output_objdir/$libname.def~ | |
| 5185 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ | |
| 5186 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ | |
| 5187 emximp -o $lib $output_objdir/$libname.def' | |
| 5188 _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ | |
| 5189 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ | |
| 5190 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ | |
| 5191 $ECHO EXPORTS >> $output_objdir/$libname.def~ | |
| 5192 prefix_cmds="$SED"~ | |
| 5193 if test EXPORTS = "`$SED 1q $export_symbols`"; then | |
| 5194 prefix_cmds="$prefix_cmds -e 1d"; | |
| 5195 fi~ | |
| 5196 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ | |
| 5197 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ | |
| 5198 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ | |
| 5199 emximp -o $lib $output_objdir/$libname.def' | |
| 5200 _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' | |
| 5201 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes | |
| 5202 _LT_TAGVAR(file_list_spec, $1)='@' | |
| 5203 ;; | |
| 5204 | |
| 5205 interix[[3-9]]*) | |
| 5206 _LT_TAGVAR(hardcode_direct, $1)=no | |
| 5207 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | |
| 5208 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' | |
| 5209 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' | |
| 5210 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
| 5211 # Instead, shared libraries are loaded at an image base (0x10000000 by | |
| 5212 # default) and relocated if they conflict, which is a slow very memory | |
| 5213 # consuming and fragmenting process. To avoid this, we pick a random, | |
| 5214 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
| 5215 # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
| 5216 _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' | |
| 5217 _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' | |
| 5218 ;; | |
| 5219 | |
| 5220 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) | |
| 5221 tmp_diet=no | |
| 5222 if test linux-dietlibc = "$host_os"; then | |
| 5223 case $cc_basename in | |
| 5224 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
| 5225 esac | |
| 5226 fi | |
| 5227 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
| 5228 && test no = "$tmp_diet" | |
| 5229 then | |
| 5230 tmp_addflag=' $pic_flag' | |
| 5231 tmp_sharedflag='-shared' | |
| 5232 case $cc_basename,$host_cpu in | |
| 5233 pgcc*) # Portland Group C compiler | |
| 5234 _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' | |
| 5235 tmp_addflag=' $pic_flag' | |
| 5236 ;; | |
| 5237 pgf77* | pgf90* | pgf95* | pgfortran*) | |
| 5238 # Portland Group f77 and f90 compilers | |
| 5239 _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' | |
| 5240 tmp_addflag=' $pic_flag -Mnomain' ;; | |
| 5241 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
| 5242 tmp_addflag=' -i_dynamic' ;; | |
| 5243 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
| 5244 tmp_addflag=' -i_dynamic -nofor_main' ;; | |
| 5245 ifc* | ifort*) # Intel Fortran compiler | |
| 5246 tmp_addflag=' -nofor_main' ;; | |
| 5247 lf95*) # Lahey Fortran 8.1 | |
| 5248 _LT_TAGVAR(whole_archive_flag_spec, $1)= | |
| 5249 tmp_sharedflag='--shared' ;; | |
| 5250 nagfor*) # NAGFOR 5.3 | |
| 5251 tmp_sharedflag='-Wl,-shared' ;; | |
| 5252 xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below) | |
| 5253 tmp_sharedflag='-qmkshrobj' | |
| 5254 tmp_addflag= ;; | |
| 5255 nvcc*) # Cuda Compiler Driver 2.2 | |
| 5256 _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' | |
| 5257 _LT_TAGVAR(compiler_needs_object, $1)=yes | |
| 5258 ;; | |
| 5259 esac | |
| 5260 case `$CC -V 2>&1 | $SED 5q` in | |
| 5261 *Sun\ C*) # Sun C 5.9 | |
| 5262 _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' | |
| 5263 _LT_TAGVAR(compiler_needs_object, $1)=yes | |
| 5264 tmp_sharedflag='-G' ;; | |
| 5265 *Sun\ F*) # Sun Fortran 8.3 | |
| 5266 tmp_sharedflag='-G' ;; | |
| 5267 esac | |
| 5268 _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | |
| 5269 | |
| 5270 if test yes = "$supports_anon_versioning"; then | |
| 5271 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ | |
| 5272 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
| 5273 echo "local: *; };" >> $output_objdir/$libname.ver~ | |
| 5274 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' | |
| 5275 fi | |
| 5276 | |
| 5277 case $cc_basename in | |
| 5278 tcc*) | |
| 5279 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' | |
| 5280 _LT_TAGVAR(export_dynamic_flag_spec, $1)='-rdynamic' | |
| 5281 ;; | |
| 5282 xlf* | bgf* | bgxlf* | mpixlf*) | |
| 5283 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | |
| 5284 _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive' | |
| 5285 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' | |
| 5286 _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' | |
| 5287 if test yes = "$supports_anon_versioning"; then | |
| 5288 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ | |
| 5289 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
| 5290 echo "local: *; };" >> $output_objdir/$libname.ver~ | |
| 5291 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
| 5292 fi | |
| 5293 ;; | |
| 5294 esac | |
| 5295 else | |
| 5296 _LT_TAGVAR(ld_shlibs, $1)=no | |
| 5297 fi | |
| 5298 ;; | |
| 5299 | |
| 5300 netbsd* | netbsdelf*-gnu) | |
| 5301 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
| 5302 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
| 5303 wlarc= | |
| 5304 else | |
| 5305 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | |
| 5306 _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' | |
| 5307 fi | |
| 5308 ;; | |
| 5309 | |
| 5310 solaris*) | |
| 5311 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
| 5312 _LT_TAGVAR(ld_shlibs, $1)=no | |
| 5313 cat <<_LT_EOF 1>&2 | |
| 5314 | |
| 5315 *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
| 5316 *** create shared libraries on Solaris systems. Therefore, libtool | |
| 5317 *** is disabling shared libraries support. We urge you to upgrade GNU | |
| 5318 *** binutils to release 2.9.1 or newer. Another option is to modify | |
| 5319 *** your PATH or compiler configuration so that the native linker is | |
| 5320 *** used, and then restart. | |
| 5321 | |
| 5322 _LT_EOF | |
| 5323 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
| 5324 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | |
| 5325 _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 else | |
| 5327 _LT_TAGVAR(ld_shlibs, $1)=no | |
| 5328 fi | |
| 5329 ;; | |
| 5330 | |
| 5331 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
| 5332 case `$LD -v 2>&1` in | |
| 5333 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) | |
| 5334 _LT_TAGVAR(ld_shlibs, $1)=no | |
| 5335 cat <<_LT_EOF 1>&2 | |
| 5336 | |
| 5337 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot | |
| 5338 *** reliably create shared libraries on SCO systems. Therefore, libtool | |
| 5339 *** is disabling shared libraries support. We urge you to upgrade GNU | |
| 5340 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
| 5341 *** your PATH or compiler configuration so that the native linker is | |
| 5342 *** used, and then restart. | |
| 5343 | |
| 5344 _LT_EOF | |
| 5345 ;; | |
| 5346 *) | |
| 5347 # For security reasons, it is highly recommended that you always | |
| 5348 # use absolute paths for naming shared libraries, and exclude the | |
| 5349 # DT_RUNPATH tag from executables and libraries. But doing so | |
| 5350 # requires that you compile everything twice, which is a pain. | |
| 5351 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
| 5352 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' | |
| 5353 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | |
| 5354 _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' | |
| 5355 else | |
| 5356 _LT_TAGVAR(ld_shlibs, $1)=no | |
| 5357 fi | |
| 5358 ;; | |
| 5359 esac | |
| 5360 ;; | |
| 5361 | |
| 5362 sunos4*) | |
| 5363 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
| 5364 wlarc= | |
| 5365 _LT_TAGVAR(hardcode_direct, $1)=yes | |
| 5366 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | |
| 5367 ;; | |
| 5368 | |
| 5369 *) | |
| 5370 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
| 5371 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | |
| 5372 _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' | |
| 5373 else | |
| 5374 _LT_TAGVAR(ld_shlibs, $1)=no | |
| 5375 fi | |
| 5376 ;; | |
| 5377 esac | |
| 5378 | |
| 5379 if test no = "$_LT_TAGVAR(ld_shlibs, $1)"; then | |
| 5380 runpath_var= | |
| 5381 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= | |
| 5382 _LT_TAGVAR(export_dynamic_flag_spec, $1)= | |
| 5383 _LT_TAGVAR(whole_archive_flag_spec, $1)= | |
| 5384 fi | |
| 5385 else | |
| 5386 # PORTME fill in a description of your system's linker (not GNU ld) | |
| 5387 case $host_os in | |
| 5388 aix3*) | |
| 5389 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported | |
| 5390 _LT_TAGVAR(always_export_symbols, $1)=yes | |
| 5391 _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' | |
| 5392 # Note: this linker hardcodes the directories in LIBPATH if there | |
| 5393 # are no directories specified by -L. | |
| 5394 _LT_TAGVAR(hardcode_minus_L, $1)=yes | |
| 5395 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then | |
| 5396 # Neither direct hardcoding nor static linking is supported with a | |
| 5397 # broken collect2. | |
| 5398 _LT_TAGVAR(hardcode_direct, $1)=unsupported | |
| 5399 fi | |
| 5400 ;; | |
| 5401 | |
| 5402 aix[[4-9]]*) | |
| 5403 if test ia64 = "$host_cpu"; then | |
| 5404 # On IA64, the linker does run time linking by default, so we don't | |
| 5405 # have to do anything special. | |
| 5406 aix_use_runtimelinking=no | |
| 5407 exp_sym_flag='-Bexport' | |
| 5408 no_entry_flag= | |
| 5409 else | |
| 5410 # If we're using GNU nm, then we don't want the "-C" option. | |
| 5411 # -C means demangle to GNU nm, but means don't demangle to AIX nm. | |
| 5412 # Without the "-l" option, or with the "-B" option, AIX nm treats | |
| 5413 # weak defined symbols like other global defined symbols, whereas | |
| 5414 # GNU nm marks them as "W". | |
| 5415 # While the 'weak' keyword is ignored in the Export File, we need | |
| 5416 # it in the Import File for the 'aix-soname' feature, so we have | |
| 5417 # to replace the "-B" option with "-P" for AIX nm. | |
| 5418 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
| 5419 _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' | |
| 5420 else | |
| 5421 _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 == "L") || (\$ 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' | |
| 5422 fi | |
| 5423 aix_use_runtimelinking=no | |
| 5424 | |
| 5425 # Test if we are trying to use run time linking or normal | |
| 5426 # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
| 5427 # have runtime linking enabled, and use it for executables. | |
| 5428 # For shared libraries, we enable/disable runtime linking | |
| 5429 # depending on the kind of the shared library created - | |
| 5430 # when "with_aix_soname,aix_use_runtimelinking" is: | |
| 5431 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables | |
| 5432 # "aix,yes" lib.so shared, rtl:yes, for executables | |
| 5433 # lib.a static archive | |
| 5434 # "both,no" lib.so.V(shr.o) shared, rtl:yes | |
| 5435 # lib.a(lib.so.V) shared, rtl:no, for executables | |
| 5436 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables | |
| 5437 # lib.a(lib.so.V) shared, rtl:no | |
| 5438 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables | |
| 5439 # lib.a static archive | |
| 5440 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) | |
| 5441 for ld_flag in $LDFLAGS; do | |
| 5442 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then | |
| 5443 aix_use_runtimelinking=yes | |
| 5444 break | |
| 5445 fi | |
| 5446 done | |
| 5447 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then | |
| 5448 # With aix-soname=svr4, we create the lib.so.V shared archives only, | |
| 5449 # so we don't have lib.a shared libs to link our executables. | |
| 5450 # We have to force runtime linking in this case. | |
| 5451 aix_use_runtimelinking=yes | |
| 5452 LDFLAGS="$LDFLAGS -Wl,-brtl" | |
| 5453 fi | |
| 5454 ;; | |
| 5455 esac | |
| 5456 | |
| 5457 exp_sym_flag='-bexport' | |
| 5458 no_entry_flag='-bnoentry' | |
| 5459 fi | |
| 5460 | |
| 5461 # When large executables or shared objects are built, AIX ld can | |
| 5462 # have problems creating the table of contents. If linking a library | |
| 5463 # or program results in "error TOC overflow" add -mminimal-toc to | |
| 5464 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
| 5465 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
| 5466 | |
| 5467 _LT_TAGVAR(archive_cmds, $1)='' | |
| 5468 _LT_TAGVAR(hardcode_direct, $1)=yes | |
| 5469 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes | |
| 5470 _LT_TAGVAR(hardcode_libdir_separator, $1)=':' | |
| 5471 _LT_TAGVAR(link_all_deplibs, $1)=yes | |
| 5472 _LT_TAGVAR(file_list_spec, $1)='$wl-f,' | |
| 5473 case $with_aix_soname,$aix_use_runtimelinking in | |
| 5474 aix,*) ;; # traditional, no import file | |
| 5475 svr4,* | *,yes) # use import file | |
| 5476 # The Import File defines what to hardcode. | |
| 5477 _LT_TAGVAR(hardcode_direct, $1)=no | |
| 5478 _LT_TAGVAR(hardcode_direct_absolute, $1)=no | |
| 5479 ;; | |
| 5480 esac | |
| 5481 | |
| 5482 if test yes = "$GCC"; then | |
| 5483 case $host_os in aix4.[[012]]|aix4.[[012]].*) | |
| 5484 # We only want to do this on AIX 4.2 and lower, the check | |
| 5485 # below for broken collect2 doesn't work under 4.3+ | |
| 5486 collect2name=`$CC -print-prog-name=collect2` | |
| 5487 if test -f "$collect2name" && | |
| 5488 strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
| 5489 then | |
| 5490 # We have reworked collect2 | |
| 5491 : | |
| 5492 else | |
| 5493 # We have old collect2 | |
| 5494 _LT_TAGVAR(hardcode_direct, $1)=unsupported | |
| 5495 # It fails to find uninstalled libraries when the uninstalled | |
| 5496 # path is not listed in the libpath. Setting hardcode_minus_L | |
| 5497 # to unsupported forces relinking | |
| 5498 _LT_TAGVAR(hardcode_minus_L, $1)=yes | |
| 5499 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | |
| 5500 _LT_TAGVAR(hardcode_libdir_separator, $1)= | |
| 5501 fi | |
| 5502 ;; | |
| 5503 esac | |
| 5504 shared_flag='-shared' | |
| 5505 if test yes = "$aix_use_runtimelinking"; then | |
| 5506 shared_flag="$shared_flag "'$wl-G' | |
| 5507 fi | |
| 5508 # Need to ensure runtime linking is disabled for the traditional | |
| 5509 # shared library, or the linker may eventually find shared libraries | |
| 5510 # /with/ Import File - we do not want to mix them. | |
| 5511 shared_flag_aix='-shared' | |
| 5512 shared_flag_svr4='-shared $wl-G' | |
| 5513 else | |
| 5514 # not using gcc | |
| 5515 if test ia64 = "$host_cpu"; then | |
| 5516 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
| 5517 # chokes on -Wl,-G. The following line is correct: | |
| 5518 shared_flag='-G' | |
| 5519 else | |
| 5520 if test yes = "$aix_use_runtimelinking"; then | |
| 5521 shared_flag='$wl-G' | |
| 5522 else | |
| 5523 shared_flag='$wl-bM:SRE' | |
| 5524 fi | |
| 5525 shared_flag_aix='$wl-bM:SRE' | |
| 5526 shared_flag_svr4='$wl-G' | |
| 5527 fi | |
| 5528 fi | |
| 5529 | |
| 5530 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall' | |
| 5531 # It seems that -bexpall does not export symbols beginning with | |
| 5532 # underscore (_), so it is better to generate a list of symbols to export. | |
| 5533 _LT_TAGVAR(always_export_symbols, $1)=yes | |
| 5534 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then | |
| 5535 # Warning - without using the other runtime loading flags (-brtl), | |
| 5536 # -berok will link without error, but may produce a broken library. | |
| 5537 _LT_TAGVAR(allow_undefined_flag, $1)='-berok' | |
| 5538 # Determine the default libpath from the value encoded in an | |
| 5539 # empty executable. | |
| 5540 _LT_SYS_MODULE_PATH_AIX([$1]) | |
| 5541 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath" | |
| 5542 _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 | |
| 5543 else | |
| 5544 if test ia64 = "$host_cpu"; then | |
| 5545 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib' | |
| 5546 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" | |
| 5547 _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" | |
| 5548 else | |
| 5549 # Determine the default libpath from the value encoded in an | |
| 5550 # empty executable. | |
| 5551 _LT_SYS_MODULE_PATH_AIX([$1]) | |
| 5552 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath" | |
| 5553 # Warning - without using the other run time loading flags, | |
| 5554 # -berok will link without error, but may produce a broken library. | |
| 5555 _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok' | |
| 5556 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok' | |
| 5557 if test yes = "$with_gnu_ld"; then | |
| 5558 # We only use this code for GNU lds that support --whole-archive. | |
| 5559 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive' | |
| 5560 else | |
| 5561 # Exported symbols can be pulled into shared objects from archives | |
| 5562 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' | |
| 5563 fi | |
| 5564 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes | |
| 5565 _LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' | |
| 5566 # -brtl affects multiple linker settings, -berok does not and is overridden later | |
| 5567 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\1%g"`' | |
| 5568 if test svr4 != "$with_aix_soname"; then | |
| 5569 # This is similar to how AIX traditionally builds its shared libraries. | |
| 5570 _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' | |
| 5571 fi | |
| 5572 if test aix != "$with_aix_soname"; then | |
| 5573 _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' | |
| 5574 else | |
| 5575 # used by -dlpreopen to get the symbols | |
| 5576 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$MV $output_objdir/$realname.d/$soname $output_objdir' | |
| 5577 fi | |
| 5578 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/$realname.d' | |
| 5579 fi | |
| 5580 fi | |
| 5581 ;; | |
| 5582 | |
| 5583 amigaos*) | |
| 5584 case $host_cpu in | |
| 5585 powerpc) | |
| 5586 # see comment about AmigaOS4 .so support | |
| 5587 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | |
| 5588 _LT_TAGVAR(archive_expsym_cmds, $1)='' | |
| 5589 ;; | |
| 5590 m68k) | |
| 5591 _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)' | |
| 5592 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | |
| 5593 _LT_TAGVAR(hardcode_minus_L, $1)=yes | |
| 5594 ;; | |
| 5595 esac | |
| 5596 ;; | |
| 5597 | |
| 5598 bsdi[[45]]*) | |
| 5599 _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic | |
| 5600 ;; | |
| 5601 | |
| 5602 cygwin* | mingw* | pw32* | cegcc*) | |
| 5603 # When not using gcc, we currently assume that we are using | |
| 5604 # Microsoft Visual C++ or Intel C++ Compiler. | |
| 5605 # hardcode_libdir_flag_spec is actually meaningless, as there is | |
| 5606 # no search path for DLLs. | |
| 5607 case $cc_basename in | |
| 5608 cl* | icl*) | |
| 5609 # Native MSVC or ICC | |
| 5610 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' | |
| 5611 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported | |
| 5612 _LT_TAGVAR(always_export_symbols, $1)=yes | |
| 5613 _LT_TAGVAR(file_list_spec, $1)='@' | |
| 5614 # Tell ltmain to make .lib files, not .a files. | |
| 5615 libext=lib | |
| 5616 # Tell ltmain to make .dll files, not .so files. | |
| 5617 shrext_cmds=.dll | |
| 5618 # FIXME: Setting linknames here is a bad hack. | |
| 5619 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' | |
| 5620 _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then | |
| 5621 cp "$export_symbols" "$output_objdir/$soname.def"; | |
| 5622 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; | |
| 5623 else | |
| 5624 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; | |
| 5625 fi~ | |
| 5626 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ | |
| 5627 linknames=' | |
| 5628 # The linker will not automatically build a static lib if we build a DLL. | |
| 5629 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' | |
| 5630 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes | |
| 5631 _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' | |
| 5632 _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' | |
| 5633 # Don't use ranlib | |
| 5634 _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' | |
| 5635 _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~ | |
| 5636 lt_tool_outputfile="@TOOL_OUTPUT@"~ | |
| 5637 case $lt_outputfile in | |
| 5638 *.exe|*.EXE) ;; | |
| 5639 *) | |
| 5640 lt_outputfile=$lt_outputfile.exe | |
| 5641 lt_tool_outputfile=$lt_tool_outputfile.exe | |
| 5642 ;; | |
| 5643 esac~ | |
| 5644 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then | |
| 5645 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; | |
| 5646 $RM "$lt_outputfile.manifest"; | |
| 5647 fi' | |
| 5648 ;; | |
| 5649 *) | |
| 5650 # Assume MSVC and ICC wrapper | |
| 5651 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' | |
| 5652 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported | |
| 5653 # Tell ltmain to make .lib files, not .a files. | |
| 5654 libext=lib | |
| 5655 # Tell ltmain to make .dll files, not .so files. | |
| 5656 shrext_cmds=.dll | |
| 5657 # FIXME: Setting linknames here is a bad hack. | |
| 5658 _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' | |
| 5659 # The linker will automatically build a .lib file if we build a DLL. | |
| 5660 _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' | |
| 5661 # FIXME: Should let the user specify the lib program. | |
| 5662 _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
| 5663 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes | |
| 5664 ;; | |
| 5665 esac | |
| 5666 ;; | |
| 5667 | |
| 5668 darwin* | rhapsody*) | |
| 5669 _LT_DARWIN_LINKER_FEATURES($1) | |
| 5670 ;; | |
| 5671 | |
| 5672 dgux*) | |
| 5673 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
| 5674 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | |
| 5675 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | |
| 5676 ;; | |
| 5677 | |
| 5678 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
| 5679 # support. Future versions do this automatically, but an explicit c++rt0.o | |
| 5680 # does not break anything, and helps significantly (at the cost of a little | |
| 5681 # extra space). | |
| 5682 freebsd2.2*) | |
| 5683 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
| 5684 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' | |
| 5685 _LT_TAGVAR(hardcode_direct, $1)=yes | |
| 5686 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | |
| 5687 ;; | |
| 5688 | |
| 5689 # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
| 5690 freebsd2.*) | |
| 5691 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
| 5692 _LT_TAGVAR(hardcode_direct, $1)=yes | |
| 5693 _LT_TAGVAR(hardcode_minus_L, $1)=yes | |
| 5694 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | |
| 5695 ;; | |
| 5696 | |
| 5697 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
| 5698 freebsd* | dragonfly* | midnightbsd*) | |
| 5699 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
| 5700 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' | |
| 5701 _LT_TAGVAR(hardcode_direct, $1)=yes | |
| 5702 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | |
| 5703 ;; | |
| 5704 | |
| 5705 hpux9*) | |
| 5706 if test yes = "$GCC"; then | |
| 5707 _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' | |
| 5708 else | |
| 5709 _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' | |
| 5710 fi | |
| 5711 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' | |
| 5712 _LT_TAGVAR(hardcode_libdir_separator, $1)=: | |
| 5713 _LT_TAGVAR(hardcode_direct, $1)=yes | |
| 5714 | |
| 5715 # hardcode_minus_L: Not really in the search PATH, | |
| 5716 # but as the default location of the library. | |
| 5717 _LT_TAGVAR(hardcode_minus_L, $1)=yes | |
| 5718 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' | |
| 5719 ;; | |
| 5720 | |
| 5721 hpux10*) | |
| 5722 if test yes,no = "$GCC,$with_gnu_ld"; then | |
| 5723 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
| 5724 else | |
| 5725 _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
| 5726 fi | |
| 5727 if test no = "$with_gnu_ld"; then | |
| 5728 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' | |
| 5729 _LT_TAGVAR(hardcode_libdir_separator, $1)=: | |
| 5730 _LT_TAGVAR(hardcode_direct, $1)=yes | |
| 5731 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes | |
| 5732 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' | |
| 5733 # hardcode_minus_L: Not really in the search PATH, | |
| 5734 # but as the default location of the library. | |
| 5735 _LT_TAGVAR(hardcode_minus_L, $1)=yes | |
| 5736 fi | |
| 5737 ;; | |
| 5738 | |
| 5739 hpux11*) | |
| 5740 if test yes,no = "$GCC,$with_gnu_ld"; then | |
| 5741 case $host_cpu in | |
| 5742 hppa*64*) | |
| 5743 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' | |
| 5744 ;; | |
| 5745 ia64*) | |
| 5746 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
| 5747 ;; | |
| 5748 *) | |
| 5749 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
| 5750 ;; | |
| 5751 esac | |
| 5752 else | |
| 5753 case $host_cpu in | |
| 5754 hppa*64*) | |
| 5755 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' | |
| 5756 ;; | |
| 5757 ia64*) | |
| 5758 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
| 5759 ;; | |
| 5760 *) | |
| 5761 m4_if($1, [], [ | |
| 5762 # Older versions of the 11.00 compiler do not understand -b yet | |
| 5763 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) | |
| 5764 _LT_LINKER_OPTION([if $CC understands -b], | |
| 5765 _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b], | |
| 5766 [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'], | |
| 5767 [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])], | |
| 5768 [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags']) | |
| 5769 ;; | |
| 5770 esac | |
| 5771 fi | |
| 5772 if test no = "$with_gnu_ld"; then | |
| 5773 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' | |
| 5774 _LT_TAGVAR(hardcode_libdir_separator, $1)=: | |
| 5775 | |
| 5776 case $host_cpu in | |
| 5777 hppa*64*|ia64*) | |
| 5778 _LT_TAGVAR(hardcode_direct, $1)=no | |
| 5779 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | |
| 5780 ;; | |
| 5781 *) | |
| 5782 _LT_TAGVAR(hardcode_direct, $1)=yes | |
| 5783 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes | |
| 5784 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' | |
| 5785 | |
| 5786 # hardcode_minus_L: Not really in the search PATH, | |
| 5787 # but as the default location of the library. | |
| 5788 _LT_TAGVAR(hardcode_minus_L, $1)=yes | |
| 5789 ;; | |
| 5790 esac | |
| 5791 fi | |
| 5792 ;; | |
| 5793 | |
| 5794 irix5* | irix6* | nonstopux*) | |
| 5795 if test yes = "$GCC"; then | |
| 5796 _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' | |
| 5797 # Try to use the -exported_symbol ld option, if it does not | |
| 5798 # work, assume that -exports_file does not work either and | |
| 5799 # implicitly export all symbols. | |
| 5800 # This should be the same for all languages, so no per-tag cache variable. | |
| 5801 AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol], | |
| 5802 [lt_cv_irix_exported_symbol], | |
| 5803 [save_LDFLAGS=$LDFLAGS | |
| 5804 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" | |
| 5805 AC_LINK_IFELSE( | |
| 5806 [AC_LANG_SOURCE( | |
| 5807 [AC_LANG_CASE([C], [[int foo (void) { return 0; }]], | |
| 5808 [C++], [[int foo (void) { return 0; }]], | |
| 5809 [Fortran 77], [[ | |
| 5810 subroutine foo | |
| 5811 end]], | |
| 5812 [Fortran], [[ | |
| 5813 subroutine foo | |
| 5814 end]])])], | |
| 5815 [lt_cv_irix_exported_symbol=yes], | |
| 5816 [lt_cv_irix_exported_symbol=no]) | |
| 5817 LDFLAGS=$save_LDFLAGS]) | |
| 5818 if test yes = "$lt_cv_irix_exported_symbol"; then | |
| 5819 _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' | |
| 5820 fi | |
| 5821 _LT_TAGVAR(link_all_deplibs, $1)=no | |
| 5822 else | |
| 5823 _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' | |
| 5824 _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' | |
| 5825 fi | |
| 5826 _LT_TAGVAR(archive_cmds_need_lc, $1)='no' | |
| 5827 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' | |
| 5828 _LT_TAGVAR(hardcode_libdir_separator, $1)=: | |
| 5829 _LT_TAGVAR(inherit_rpath, $1)=yes | |
| 5830 _LT_TAGVAR(link_all_deplibs, $1)=yes | |
| 5831 ;; | |
| 5832 | |
| 5833 linux*) | |
| 5834 case $cc_basename in | |
| 5835 tcc*) | |
| 5836 # Fabrice Bellard et al's Tiny C Compiler | |
| 5837 _LT_TAGVAR(ld_shlibs, $1)=yes | |
| 5838 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
| 5839 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' | |
| 5840 ;; | |
| 5841 esac | |
| 5842 ;; | |
| 5843 | |
| 5844 netbsd* | netbsdelf*-gnu) | |
| 5845 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
| 5846 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
| 5847 else | |
| 5848 _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
| 5849 fi | |
| 5850 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' | |
| 5851 _LT_TAGVAR(hardcode_direct, $1)=yes | |
| 5852 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | |
| 5853 ;; | |
| 5854 | |
| 5855 newsos6) | |
| 5856 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
| 5857 _LT_TAGVAR(hardcode_direct, $1)=yes | |
| 5858 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' | |
| 5859 _LT_TAGVAR(hardcode_libdir_separator, $1)=: | |
| 5860 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | |
| 5861 ;; | |
| 5862 | |
| 5863 *nto* | *qnx*) | |
| 5864 ;; | |
| 5865 | |
| 5866 openbsd* | bitrig*) | |
| 5867 if test -f /usr/libexec/ld.so; then | |
| 5868 _LT_TAGVAR(hardcode_direct, $1)=yes | |
| 5869 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | |
| 5870 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes | |
| 5871 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then | |
| 5872 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
| 5873 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' | |
| 5874 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' | |
| 5875 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' | |
| 5876 else | |
| 5877 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
| 5878 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' | |
| 5879 fi | |
| 5880 else | |
| 5881 _LT_TAGVAR(ld_shlibs, $1)=no | |
| 5882 fi | |
| 5883 ;; | |
| 5884 | |
| 5885 os2*) | |
| 5886 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | |
| 5887 _LT_TAGVAR(hardcode_minus_L, $1)=yes | |
| 5888 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported | |
| 5889 shrext_cmds=.dll | |
| 5890 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ | |
| 5891 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ | |
| 5892 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ | |
| 5893 $ECHO EXPORTS >> $output_objdir/$libname.def~ | |
| 5894 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ | |
| 5895 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ | |
| 5896 emximp -o $lib $output_objdir/$libname.def' | |
| 5897 _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ | |
| 5898 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ | |
| 5899 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ | |
| 5900 $ECHO EXPORTS >> $output_objdir/$libname.def~ | |
| 5901 prefix_cmds="$SED"~ | |
| 5902 if test EXPORTS = "`$SED 1q $export_symbols`"; then | |
| 5903 prefix_cmds="$prefix_cmds -e 1d"; | |
| 5904 fi~ | |
| 5905 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ | |
| 5906 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ | |
| 5907 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ | |
| 5908 emximp -o $lib $output_objdir/$libname.def' | |
| 5909 _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' | |
| 5910 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes | |
| 5911 _LT_TAGVAR(file_list_spec, $1)='@' | |
| 5912 ;; | |
| 5913 | |
| 5914 osf3*) | |
| 5915 if test yes = "$GCC"; then | |
| 5916 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*' | |
| 5917 _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' | |
| 5918 else | |
| 5919 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' | |
| 5920 _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' | |
| 5921 fi | |
| 5922 _LT_TAGVAR(archive_cmds_need_lc, $1)='no' | |
| 5923 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' | |
| 5924 _LT_TAGVAR(hardcode_libdir_separator, $1)=: | |
| 5925 ;; | |
| 5926 | |
| 5927 osf4* | osf5*) # as osf3* with the addition of -msym flag | |
| 5928 if test yes = "$GCC"; then | |
| 5929 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*' | |
| 5930 _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' | |
| 5931 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' | |
| 5932 else | |
| 5933 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' | |
| 5934 _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' | |
| 5935 _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~ | |
| 5936 $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' | |
| 5937 | |
| 5938 # Both c and cxx compiler support -rpath directly | |
| 5939 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' | |
| 5940 fi | |
| 5941 _LT_TAGVAR(archive_cmds_need_lc, $1)='no' | |
| 5942 _LT_TAGVAR(hardcode_libdir_separator, $1)=: | |
| 5943 ;; | |
| 5944 | |
| 5945 solaris*) | |
| 5946 _LT_TAGVAR(no_undefined_flag, $1)=' -z defs' | |
| 5947 if test yes = "$GCC"; then | |
| 5948 wlarc='$wl' | |
| 5949 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' | |
| 5950 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
| 5951 $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' | |
| 5952 else | |
| 5953 case `$CC -V 2>&1` in | |
| 5954 *"Compilers 5.0"*) | |
| 5955 wlarc='' | |
| 5956 _LT_TAGVAR(archive_cmds, $1)='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
| 5957 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
| 5958 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
| 5959 ;; | |
| 5960 *) | |
| 5961 wlarc='$wl' | |
| 5962 _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
| 5963 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
| 5964 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
| 5965 ;; | |
| 5966 esac | |
| 5967 fi | |
| 5968 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' | |
| 5969 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | |
| 5970 case $host_os in | |
| 5971 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; | |
| 5972 *) | |
| 5973 # The compiler driver will combine and reorder linker options, | |
| 5974 # but understands '-z linker_flag'. GCC discards it without '$wl', | |
| 5975 # but is careful enough not to reorder. | |
| 5976 # Supported since Solaris 2.6 (maybe 2.5.1?) | |
| 5977 if test yes = "$GCC"; then | |
| 5978 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' | |
| 5979 else | |
| 5980 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' | |
| 5981 fi | |
| 5982 ;; | |
| 5983 esac | |
| 5984 _LT_TAGVAR(link_all_deplibs, $1)=yes | |
| 5985 ;; | |
| 5986 | |
| 5987 sunos4*) | |
| 5988 if test sequent = "$host_vendor"; then | |
| 5989 # Use $CC to link under sequent, because it throws in some extra .o | |
| 5990 # files that make .init and .fini sections work. | |
| 5991 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
| 5992 else | |
| 5993 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
| 5994 fi | |
| 5995 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | |
| 5996 _LT_TAGVAR(hardcode_direct, $1)=yes | |
| 5997 _LT_TAGVAR(hardcode_minus_L, $1)=yes | |
| 5998 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | |
| 5999 ;; | |
| 6000 | |
| 6001 sysv4) | |
| 6002 case $host_vendor in | |
| 6003 sni) | |
| 6004 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
| 6005 _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true??? | |
| 6006 ;; | |
| 6007 siemens) | |
| 6008 ## LD is ld it makes a PLAMLIB | |
| 6009 ## CC just makes a GrossModule. | |
| 6010 _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
| 6011 _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' | |
| 6012 _LT_TAGVAR(hardcode_direct, $1)=no | |
| 6013 ;; | |
| 6014 motorola) | |
| 6015 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
| 6016 _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie | |
| 6017 ;; | |
| 6018 esac | |
| 6019 runpath_var='LD_RUN_PATH' | |
| 6020 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | |
| 6021 ;; | |
| 6022 | |
| 6023 sysv4.3*) | |
| 6024 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
| 6025 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | |
| 6026 _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' | |
| 6027 ;; | |
| 6028 | |
| 6029 sysv4*MP*) | |
| 6030 if test -d /usr/nec; then | |
| 6031 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
| 6032 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | |
| 6033 runpath_var=LD_RUN_PATH | |
| 6034 hardcode_runpath_var=yes | |
| 6035 _LT_TAGVAR(ld_shlibs, $1)=yes | |
| 6036 fi | |
| 6037 ;; | |
| 6038 | |
| 6039 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) | |
| 6040 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text' | |
| 6041 _LT_TAGVAR(archive_cmds_need_lc, $1)=no | |
| 6042 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | |
| 6043 runpath_var='LD_RUN_PATH' | |
| 6044 | |
| 6045 if test yes = "$GCC"; then | |
| 6046 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
| 6047 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
| 6048 else | |
| 6049 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
| 6050 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
| 6051 fi | |
| 6052 ;; | |
| 6053 | |
| 6054 sysv5* | sco3.2v5* | sco5v6*) | |
| 6055 # Note: We CANNOT use -z defs as we might desire, because we do not | |
| 6056 # link with -lc, and that would cause any symbols used from libc to | |
| 6057 # always be unresolved, which means just about no library would | |
| 6058 # ever link correctly. If we're not using GNU ld we use -z text | |
| 6059 # though, which does catch some bad symbols but isn't as heavy-handed | |
| 6060 # as -z defs. | |
| 6061 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text' | |
| 6062 _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs' | |
| 6063 _LT_TAGVAR(archive_cmds_need_lc, $1)=no | |
| 6064 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | |
| 6065 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir' | |
| 6066 _LT_TAGVAR(hardcode_libdir_separator, $1)=':' | |
| 6067 _LT_TAGVAR(link_all_deplibs, $1)=yes | |
| 6068 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport' | |
| 6069 runpath_var='LD_RUN_PATH' | |
| 6070 | |
| 6071 if test yes = "$GCC"; then | |
| 6072 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
| 6073 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
| 6074 else | |
| 6075 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
| 6076 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
| 6077 fi | |
| 6078 ;; | |
| 6079 | |
| 6080 uts4*) | |
| 6081 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
| 6082 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | |
| 6083 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | |
| 6084 ;; | |
| 6085 | |
| 6086 *) | |
| 6087 _LT_TAGVAR(ld_shlibs, $1)=no | |
| 6088 ;; | |
| 6089 esac | |
| 6090 | |
| 6091 if test sni = "$host_vendor"; then | |
| 6092 case $host in | |
| 6093 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
| 6094 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Blargedynsym' | |
| 6095 ;; | |
| 6096 esac | |
| 6097 fi | |
| 6098 fi | |
| 6099 ]) | |
| 6100 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) | |
| 6101 test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no | |
| 6102 | |
| 6103 _LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld | |
| 6104 | |
| 6105 _LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl | |
| 6106 _LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl | |
| 6107 _LT_DECL([], [extract_expsyms_cmds], [2], | |
| 6108 [The commands to extract the exported symbol list from a shared archive]) | |
| 6109 | |
| 6110 # | |
| 6111 # Do we need to explicitly link libc? | |
| 6112 # | |
| 6113 case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in | |
| 6114 x|xyes) | |
| 6115 # Assume -lc should be added | |
| 6116 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes | |
| 6117 | |
| 6118 if test yes,yes = "$GCC,$enable_shared"; then | |
| 6119 case $_LT_TAGVAR(archive_cmds, $1) in | |
| 6120 *'~'*) | |
| 6121 # FIXME: we may have to deal with multi-command sequences. | |
| 6122 ;; | |
| 6123 '$CC '*) | |
| 6124 # Test whether the compiler implicitly links with -lc since on some | |
| 6125 # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
| 6126 # to ld, don't add -lc before -lgcc. | |
| 6127 AC_CACHE_CHECK([whether -lc should be explicitly linked in], | |
| 6128 [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1), | |
| 6129 [$RM conftest* | |
| 6130 echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
| 6131 | |
| 6132 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then | |
| 6133 soname=conftest | |
| 6134 lib=conftest | |
| 6135 libobjs=conftest.$ac_objext | |
| 6136 deplibs= | |
| 6137 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) | |
| 6138 pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1) | |
| 6139 compiler_flags=-v | |
| 6140 linker_flags=-v | |
| 6141 verstring= | |
| 6142 output_objdir=. | |
| 6143 libname=conftest | |
| 6144 lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1) | |
| 6145 _LT_TAGVAR(allow_undefined_flag, $1)= | |
| 6146 if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) | |
| 6147 then | |
| 6148 lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no | |
| 6149 else | |
| 6150 lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes | |
| 6151 fi | |
| 6152 _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag | |
| 6153 else | |
| 6154 cat conftest.err 1>&5 | |
| 6155 fi | |
| 6156 $RM conftest* | |
| 6157 ]) | |
| 6158 _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1) | |
| 6159 ;; | |
| 6160 esac | |
| 6161 fi | |
| 6162 ;; | |
| 6163 esac | |
| 6164 | |
| 6165 _LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0], | |
| 6166 [Whether or not to add -lc for building shared libraries]) | |
| 6167 _LT_TAGDECL([allow_libtool_libs_with_static_runtimes], | |
| 6168 [enable_shared_with_static_runtimes], [0], | |
| 6169 [Whether or not to disallow shared libs when runtime libs are static]) | |
| 6170 _LT_TAGDECL([], [export_dynamic_flag_spec], [1], | |
| 6171 [Compiler flag to allow reflexive dlopens]) | |
| 6172 _LT_TAGDECL([], [whole_archive_flag_spec], [1], | |
| 6173 [Compiler flag to generate shared objects directly from archives]) | |
| 6174 _LT_TAGDECL([], [compiler_needs_object], [1], | |
| 6175 [Whether the compiler copes with passing no objects directly]) | |
| 6176 _LT_TAGDECL([], [old_archive_from_new_cmds], [2], | |
| 6177 [Create an old-style archive from a shared archive]) | |
| 6178 _LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2], | |
| 6179 [Create a temporary old-style archive to link instead of a shared archive]) | |
| 6180 _LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive]) | |
| 6181 _LT_TAGDECL([], [archive_expsym_cmds], [2]) | |
| 6182 _LT_TAGDECL([], [module_cmds], [2], | |
| 6183 [Commands used to build a loadable module if different from building | |
| 6184 a shared archive.]) | |
| 6185 _LT_TAGDECL([], [module_expsym_cmds], [2]) | |
| 6186 _LT_TAGDECL([], [with_gnu_ld], [1], | |
| 6187 [Whether we are building with GNU ld or not]) | |
| 6188 _LT_TAGDECL([], [allow_undefined_flag], [1], | |
| 6189 [Flag that allows shared libraries with undefined symbols to be built]) | |
| 6190 _LT_TAGDECL([], [no_undefined_flag], [1], | |
| 6191 [Flag that enforces no undefined symbols]) | |
| 6192 _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1], | |
| 6193 [Flag to hardcode $libdir into a binary during linking. | |
| 6194 This must work even if $libdir does not exist]) | |
| 6195 _LT_TAGDECL([], [hardcode_libdir_separator], [1], | |
| 6196 [Whether we need a single "-rpath" flag with a separated argument]) | |
| 6197 _LT_TAGDECL([], [hardcode_direct], [0], | |
| 6198 [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes | |
| 6199 DIR into the resulting binary]) | |
| 6200 _LT_TAGDECL([], [hardcode_direct_absolute], [0], | |
| 6201 [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes | |
| 6202 DIR into the resulting binary and the resulting library dependency is | |
| 6203 "absolute", i.e impossible to change by setting $shlibpath_var if the | |
| 6204 library is relocated]) | |
| 6205 _LT_TAGDECL([], [hardcode_minus_L], [0], | |
| 6206 [Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
| 6207 into the resulting binary]) | |
| 6208 _LT_TAGDECL([], [hardcode_shlibpath_var], [0], | |
| 6209 [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
| 6210 into the resulting binary]) | |
| 6211 _LT_TAGDECL([], [hardcode_automatic], [0], | |
| 6212 [Set to "yes" if building a shared library automatically hardcodes DIR | |
| 6213 into the library and all subsequent libraries and executables linked | |
| 6214 against it]) | |
| 6215 _LT_TAGDECL([], [inherit_rpath], [0], | |
| 6216 [Set to yes if linker adds runtime paths of dependent libraries | |
| 6217 to runtime path list]) | |
| 6218 _LT_TAGDECL([], [link_all_deplibs], [0], | |
| 6219 [Whether libtool must link a program against all its dependency libraries]) | |
| 6220 _LT_TAGDECL([], [always_export_symbols], [0], | |
| 6221 [Set to "yes" if exported symbols are required]) | |
| 6222 _LT_TAGDECL([], [export_symbols_cmds], [2], | |
| 6223 [The commands to list exported symbols]) | |
| 6224 _LT_TAGDECL([], [exclude_expsyms], [1], | |
| 6225 [Symbols that should not be listed in the preloaded symbols]) | |
| 6226 _LT_TAGDECL([], [include_expsyms], [1], | |
| 6227 [Symbols that must always be exported]) | |
| 6228 _LT_TAGDECL([], [prelink_cmds], [2], | |
| 6229 [Commands necessary for linking programs (against libraries) with templates]) | |
| 6230 _LT_TAGDECL([], [postlink_cmds], [2], | |
| 6231 [Commands necessary for finishing linking programs]) | |
| 6232 _LT_TAGDECL([], [file_list_spec], [1], | |
| 6233 [Specify filename containing input files]) | |
| 6234 dnl FIXME: Not yet implemented | |
| 6235 dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1], | |
| 6236 dnl [Compiler flag to generate thread safe objects]) | |
| 6237 ])# _LT_LINKER_SHLIBS | |
| 6238 | |
| 6239 | |
| 6240 # _LT_LANG_C_CONFIG([TAG]) | |
| 6241 # ------------------------ | |
| 6242 # Ensure that the configuration variables for a C compiler are suitably | |
| 6243 # defined. These variables are subsequently used by _LT_CONFIG to write | |
| 6244 # the compiler configuration to 'libtool'. | |
| 6245 m4_defun([_LT_LANG_C_CONFIG], | |
| 6246 [m4_require([_LT_DECL_EGREP])dnl | |
| 6247 lt_save_CC=$CC | |
| 6248 AC_LANG_PUSH(C) | |
| 6249 | |
| 6250 # Source file extension for C test sources. | |
| 6251 ac_ext=c | |
| 6252 | |
| 6253 # Object file extension for compiled C test sources. | |
| 6254 objext=o | |
| 6255 _LT_TAGVAR(objext, $1)=$objext | |
| 6256 | |
| 6257 # Code to be used in simple compile tests | |
| 6258 lt_simple_compile_test_code="int some_variable = 0;" | |
| 6259 | |
| 6260 # Code to be used in simple link tests | |
| 6261 lt_simple_link_test_code='int main(){return(0);}' | |
| 6262 | |
| 6263 _LT_TAG_COMPILER | |
| 6264 # Save the default compiler, since it gets overwritten when the other | |
| 6265 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
| 6266 compiler_DEFAULT=$CC | |
| 6267 | |
| 6268 # save warnings/boilerplate of simple test code | |
| 6269 _LT_COMPILER_BOILERPLATE | |
| 6270 _LT_LINKER_BOILERPLATE | |
| 6271 | |
| 6272 ## CAVEAT EMPTOR: | |
| 6273 ## There is no encapsulation within the following macros, do not change | |
| 6274 ## the running order or otherwise move them around unless you know exactly | |
| 6275 ## what you are doing... | |
| 6276 if test -n "$compiler"; then | |
| 6277 _LT_COMPILER_NO_RTTI($1) | |
| 6278 _LT_COMPILER_PIC($1) | |
| 6279 _LT_COMPILER_C_O($1) | |
| 6280 _LT_COMPILER_FILE_LOCKS($1) | |
| 6281 _LT_LINKER_SHLIBS($1) | |
| 6282 _LT_SYS_DYNAMIC_LINKER($1) | |
| 6283 _LT_LINKER_HARDCODE_LIBPATH($1) | |
| 6284 LT_SYS_DLOPEN_SELF | |
| 6285 _LT_CMD_STRIPLIB | |
| 6286 | |
| 6287 # Report what library types will actually be built | |
| 6288 AC_MSG_CHECKING([if libtool supports shared libraries]) | |
| 6289 AC_MSG_RESULT([$can_build_shared]) | |
| 6290 | |
| 6291 AC_MSG_CHECKING([whether to build shared libraries]) | |
| 6292 test no = "$can_build_shared" && enable_shared=no | |
| 6293 | |
| 6294 # On AIX, shared libraries and static libraries use the same namespace, and | |
| 6295 # are all built from PIC. | |
| 6296 case $host_os in | |
| 6297 aix3*) | |
| 6298 test yes = "$enable_shared" && enable_static=no | |
| 6299 if test -n "$RANLIB"; then | |
| 6300 archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
| 6301 postinstall_cmds='$RANLIB $lib' | |
| 6302 fi | |
| 6303 ;; | |
| 6304 | |
| 6305 aix[[4-9]]*) | |
| 6306 if test ia64 != "$host_cpu"; then | |
| 6307 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in | |
| 6308 yes,aix,yes) ;; # shared object as lib.so file only | |
| 6309 yes,svr4,*) ;; # shared object as lib.so archive member only | |
| 6310 yes,*) enable_static=no ;; # shared object in lib.a archive as well | |
| 6311 esac | |
| 6312 fi | |
| 6313 ;; | |
| 6314 esac | |
| 6315 AC_MSG_RESULT([$enable_shared]) | |
| 6316 | |
| 6317 AC_MSG_CHECKING([whether to build static libraries]) | |
| 6318 # Make sure either enable_shared or enable_static is yes. | |
| 6319 test yes = "$enable_shared" || enable_static=yes | |
| 6320 AC_MSG_RESULT([$enable_static]) | |
| 6321 | |
| 6322 _LT_CONFIG($1) | |
| 6323 fi | |
| 6324 AC_LANG_POP | |
| 6325 CC=$lt_save_CC | |
| 6326 ])# _LT_LANG_C_CONFIG | |
| 6327 | |
| 6328 | |
| 6329 # _LT_LANG_CXX_CONFIG([TAG]) | |
| 6330 # -------------------------- | |
| 6331 # Ensure that the configuration variables for a C++ compiler are suitably | |
| 6332 # defined. These variables are subsequently used by _LT_CONFIG to write | |
| 6333 # the compiler configuration to 'libtool'. | |
| 6334 m4_defun([_LT_LANG_CXX_CONFIG], | |
| 6335 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl | |
| 6336 m4_require([_LT_DECL_EGREP])dnl | |
| 6337 m4_require([_LT_PATH_MANIFEST_TOOL])dnl | |
| 6338 if test -n "$CXX" && ( test no != "$CXX" && | |
| 6339 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || | |
| 6340 (test g++ != "$CXX"))); then | |
| 6341 AC_PROG_CXXCPP | |
| 6342 else | |
| 6343 _lt_caught_CXX_error=yes | |
| 6344 fi | |
| 6345 | |
| 6346 AC_LANG_PUSH(C++) | |
| 6347 _LT_TAGVAR(archive_cmds_need_lc, $1)=no | |
| 6348 _LT_TAGVAR(allow_undefined_flag, $1)= | |
| 6349 _LT_TAGVAR(always_export_symbols, $1)=no | |
| 6350 _LT_TAGVAR(archive_expsym_cmds, $1)= | |
| 6351 _LT_TAGVAR(compiler_needs_object, $1)=no | |
| 6352 _LT_TAGVAR(export_dynamic_flag_spec, $1)= | |
| 6353 _LT_TAGVAR(hardcode_direct, $1)=no | |
| 6354 _LT_TAGVAR(hardcode_direct_absolute, $1)=no | |
| 6355 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= | |
| 6356 _LT_TAGVAR(hardcode_libdir_separator, $1)= | |
| 6357 _LT_TAGVAR(hardcode_minus_L, $1)=no | |
| 6358 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported | |
| 6359 _LT_TAGVAR(hardcode_automatic, $1)=no | |
| 6360 _LT_TAGVAR(inherit_rpath, $1)=no | |
| 6361 _LT_TAGVAR(module_cmds, $1)= | |
| 6362 _LT_TAGVAR(module_expsym_cmds, $1)= | |
| 6363 _LT_TAGVAR(link_all_deplibs, $1)=unknown | |
| 6364 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds | |
| 6365 _LT_TAGVAR(reload_flag, $1)=$reload_flag | |
| 6366 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds | |
| 6367 _LT_TAGVAR(no_undefined_flag, $1)= | |
| 6368 _LT_TAGVAR(whole_archive_flag_spec, $1)= | |
| 6369 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no | |
| 6370 | |
| 6371 # Source file extension for C++ test sources. | |
| 6372 ac_ext=cpp | |
| 6373 | |
| 6374 # Object file extension for compiled C++ test sources. | |
| 6375 objext=o | |
| 6376 _LT_TAGVAR(objext, $1)=$objext | |
| 6377 | |
| 6378 # No sense in running all these tests if we already determined that | |
| 6379 # the CXX compiler isn't working. Some variables (like enable_shared) | |
| 6380 # are currently assumed to apply to all compilers on this platform, | |
| 6381 # and will be corrupted by setting them based on a non-working compiler. | |
| 6382 if test yes != "$_lt_caught_CXX_error"; then | |
| 6383 # Code to be used in simple compile tests | |
| 6384 lt_simple_compile_test_code="int some_variable = 0;" | |
| 6385 | |
| 6386 # Code to be used in simple link tests | |
| 6387 lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }' | |
| 6388 | |
| 6389 # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
| 6390 _LT_TAG_COMPILER | |
| 6391 | |
| 6392 # save warnings/boilerplate of simple test code | |
| 6393 _LT_COMPILER_BOILERPLATE | |
| 6394 _LT_LINKER_BOILERPLATE | |
| 6395 | |
| 6396 # Allow CC to be a program name with arguments. | |
| 6397 lt_save_CC=$CC | |
| 6398 lt_save_CFLAGS=$CFLAGS | |
| 6399 lt_save_LD=$LD | |
| 6400 lt_save_GCC=$GCC | |
| 6401 GCC=$GXX | |
| 6402 lt_save_with_gnu_ld=$with_gnu_ld | |
| 6403 lt_save_path_LD=$lt_cv_path_LD | |
| 6404 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then | |
| 6405 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx | |
| 6406 else | |
| 6407 $as_unset lt_cv_prog_gnu_ld | |
| 6408 fi | |
| 6409 if test -n "${lt_cv_path_LDCXX+set}"; then | |
| 6410 lt_cv_path_LD=$lt_cv_path_LDCXX | |
| 6411 else | |
| 6412 $as_unset lt_cv_path_LD | |
| 6413 fi | |
| 6414 test -z "${LDCXX+set}" || LD=$LDCXX | |
| 6415 CC=${CXX-"c++"} | |
| 6416 CFLAGS=$CXXFLAGS | |
| 6417 compiler=$CC | |
| 6418 _LT_TAGVAR(compiler, $1)=$CC | |
| 6419 _LT_CC_BASENAME([$compiler]) | |
| 6420 | |
| 6421 if test -n "$compiler"; then | |
| 6422 # We don't want -fno-exception when compiling C++ code, so set the | |
| 6423 # no_builtin_flag separately | |
| 6424 if test yes = "$GXX"; then | |
| 6425 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' | |
| 6426 else | |
| 6427 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= | |
| 6428 fi | |
| 6429 | |
| 6430 if test yes = "$GXX"; then | |
| 6431 # Set up default GNU C++ configuration | |
| 6432 | |
| 6433 LT_PATH_LD | |
| 6434 | |
| 6435 # Check if GNU C++ uses GNU ld as the underlying linker, since the | |
| 6436 # archiving commands below assume that GNU ld is being used. | |
| 6437 if test yes = "$with_gnu_ld"; then | |
| 6438 _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' | |
| 6439 _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' | |
| 6440 | |
| 6441 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' | |
| 6442 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' | |
| 6443 | |
| 6444 # If archive_cmds runs LD, not CC, wlarc should be empty | |
| 6445 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to | |
| 6446 # investigate it a little bit more. (MM) | |
| 6447 wlarc='$wl' | |
| 6448 | |
| 6449 # ancient GNU ld didn't support --whole-archive et. al. | |
| 6450 if eval "`$CC -print-prog-name=ld` --help 2>&1" | | |
| 6451 $GREP 'no-whole-archive' > /dev/null; then | |
| 6452 _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' | |
| 6453 else | |
| 6454 _LT_TAGVAR(whole_archive_flag_spec, $1)= | |
| 6455 fi | |
| 6456 else | |
| 6457 with_gnu_ld=no | |
| 6458 wlarc= | |
| 6459 | |
| 6460 # A generic and very simple default shared library creation | |
| 6461 # command for GNU C++ for the case where it uses the native | |
| 6462 # linker, instead of GNU ld. If possible, this setting should | |
| 6463 # overridden to take advantage of the native linker features on | |
| 6464 # the platform it is being used on. | |
| 6465 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
| 6466 fi | |
| 6467 | |
| 6468 # Commands to make compiler produce verbose output that lists | |
| 6469 # what "hidden" libraries, object files and flags are used when | |
| 6470 # linking a shared library. | |
| 6471 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' | |
| 6472 | |
| 6473 else | |
| 6474 GXX=no | |
| 6475 with_gnu_ld=no | |
| 6476 wlarc= | |
| 6477 fi | |
| 6478 | |
| 6479 # PORTME: fill in a description of your system's C++ link characteristics | |
| 6480 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) | |
| 6481 _LT_TAGVAR(ld_shlibs, $1)=yes | |
| 6482 case $host_os in | |
| 6483 aix3*) | |
| 6484 # FIXME: insert proper C++ library support | |
| 6485 _LT_TAGVAR(ld_shlibs, $1)=no | |
| 6486 ;; | |
| 6487 aix[[4-9]]*) | |
| 6488 if test ia64 = "$host_cpu"; then | |
| 6489 # On IA64, the linker does run time linking by default, so we don't | |
| 6490 # have to do anything special. | |
| 6491 aix_use_runtimelinking=no | |
| 6492 exp_sym_flag='-Bexport' | |
| 6493 no_entry_flag= | |
| 6494 else | |
| 6495 aix_use_runtimelinking=no | |
| 6496 | |
| 6497 # Test if we are trying to use run time linking or normal | |
| 6498 # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
| 6499 # have runtime linking enabled, and use it for executables. | |
| 6500 # For shared libraries, we enable/disable runtime linking | |
| 6501 # depending on the kind of the shared library created - | |
| 6502 # when "with_aix_soname,aix_use_runtimelinking" is: | |
| 6503 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables | |
| 6504 # "aix,yes" lib.so shared, rtl:yes, for executables | |
| 6505 # lib.a static archive | |
| 6506 # "both,no" lib.so.V(shr.o) shared, rtl:yes | |
| 6507 # lib.a(lib.so.V) shared, rtl:no, for executables | |
| 6508 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables | |
| 6509 # lib.a(lib.so.V) shared, rtl:no | |
| 6510 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables | |
| 6511 # lib.a static archive | |
| 6512 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) | |
| 6513 for ld_flag in $LDFLAGS; do | |
| 6514 case $ld_flag in | |
| 6515 *-brtl*) | |
| 6516 aix_use_runtimelinking=yes | |
| 6517 break | |
| 6518 ;; | |
| 6519 esac | |
| 6520 done | |
| 6521 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then | |
| 6522 # With aix-soname=svr4, we create the lib.so.V shared archives only, | |
| 6523 # so we don't have lib.a shared libs to link our executables. | |
| 6524 # We have to force runtime linking in this case. | |
| 6525 aix_use_runtimelinking=yes | |
| 6526 LDFLAGS="$LDFLAGS -Wl,-brtl" | |
| 6527 fi | |
| 6528 ;; | |
| 6529 esac | |
| 6530 | |
| 6531 exp_sym_flag='-bexport' | |
| 6532 no_entry_flag='-bnoentry' | |
| 6533 fi | |
| 6534 | |
| 6535 # When large executables or shared objects are built, AIX ld can | |
| 6536 # have problems creating the table of contents. If linking a library | |
| 6537 # or program results in "error TOC overflow" add -mminimal-toc to | |
| 6538 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
| 6539 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
| 6540 | |
| 6541 _LT_TAGVAR(archive_cmds, $1)='' | |
| 6542 _LT_TAGVAR(hardcode_direct, $1)=yes | |
| 6543 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes | |
| 6544 _LT_TAGVAR(hardcode_libdir_separator, $1)=':' | |
| 6545 _LT_TAGVAR(link_all_deplibs, $1)=yes | |
| 6546 _LT_TAGVAR(file_list_spec, $1)='$wl-f,' | |
| 6547 case $with_aix_soname,$aix_use_runtimelinking in | |
| 6548 aix,*) ;; # no import file | |
| 6549 svr4,* | *,yes) # use import file | |
| 6550 # The Import File defines what to hardcode. | |
| 6551 _LT_TAGVAR(hardcode_direct, $1)=no | |
| 6552 _LT_TAGVAR(hardcode_direct_absolute, $1)=no | |
| 6553 ;; | |
| 6554 esac | |
| 6555 | |
| 6556 if test yes = "$GXX"; then | |
| 6557 case $host_os in aix4.[[012]]|aix4.[[012]].*) | |
| 6558 # We only want to do this on AIX 4.2 and lower, the check | |
| 6559 # below for broken collect2 doesn't work under 4.3+ | |
| 6560 collect2name=`$CC -print-prog-name=collect2` | |
| 6561 if test -f "$collect2name" && | |
| 6562 strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
| 6563 then | |
| 6564 # We have reworked collect2 | |
| 6565 : | |
| 6566 else | |
| 6567 # We have old collect2 | |
| 6568 _LT_TAGVAR(hardcode_direct, $1)=unsupported | |
| 6569 # It fails to find uninstalled libraries when the uninstalled | |
| 6570 # path is not listed in the libpath. Setting hardcode_minus_L | |
| 6571 # to unsupported forces relinking | |
| 6572 _LT_TAGVAR(hardcode_minus_L, $1)=yes | |
| 6573 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | |
| 6574 _LT_TAGVAR(hardcode_libdir_separator, $1)= | |
| 6575 fi | |
| 6576 esac | |
| 6577 shared_flag='-shared' | |
| 6578 if test yes = "$aix_use_runtimelinking"; then | |
| 6579 shared_flag=$shared_flag' $wl-G' | |
| 6580 fi | |
| 6581 # Need to ensure runtime linking is disabled for the traditional | |
| 6582 # shared library, or the linker may eventually find shared libraries | |
| 6583 # /with/ Import File - we do not want to mix them. | |
| 6584 shared_flag_aix='-shared' | |
| 6585 shared_flag_svr4='-shared $wl-G' | |
| 6586 else | |
| 6587 # not using gcc | |
| 6588 if test ia64 = "$host_cpu"; then | |
| 6589 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
| 6590 # chokes on -Wl,-G. The following line is correct: | |
| 6591 shared_flag='-G' | |
| 6592 else | |
| 6593 if test yes = "$aix_use_runtimelinking"; then | |
| 6594 shared_flag='$wl-G' | |
| 6595 else | |
| 6596 shared_flag='$wl-bM:SRE' | |
| 6597 fi | |
| 6598 shared_flag_aix='$wl-bM:SRE' | |
| 6599 shared_flag_svr4='$wl-G' | |
| 6600 fi | |
| 6601 fi | |
| 6602 | |
| 6603 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall' | |
| 6604 # It seems that -bexpall does not export symbols beginning with | |
| 6605 # underscore (_), so it is better to generate a list of symbols to | |
| 6606 # export. | |
| 6607 _LT_TAGVAR(always_export_symbols, $1)=yes | |
| 6608 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then | |
| 6609 # Warning - without using the other runtime loading flags (-brtl), | |
| 6610 # -berok will link without error, but may produce a broken library. | |
| 6611 # The "-G" linker flag allows undefined symbols. | |
| 6612 _LT_TAGVAR(no_undefined_flag, $1)='-bernotok' | |
| 6613 # Determine the default libpath from the value encoded in an empty | |
| 6614 # executable. | |
| 6615 _LT_SYS_MODULE_PATH_AIX([$1]) | |
| 6616 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath" | |
| 6617 | |
| 6618 _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 | |
| 6619 else | |
| 6620 if test ia64 = "$host_cpu"; then | |
| 6621 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib' | |
| 6622 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" | |
| 6623 _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" | |
| 6624 else | |
| 6625 # Determine the default libpath from the value encoded in an | |
| 6626 # empty executable. | |
| 6627 _LT_SYS_MODULE_PATH_AIX([$1]) | |
| 6628 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath" | |
| 6629 # Warning - without using the other run time loading flags, | |
| 6630 # -berok will link without error, but may produce a broken library. | |
| 6631 _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok' | |
| 6632 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok' | |
| 6633 if test yes = "$with_gnu_ld"; then | |
| 6634 # We only use this code for GNU lds that support --whole-archive. | |
| 6635 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive' | |
| 6636 else | |
| 6637 # Exported symbols can be pulled into shared objects from archives | |
| 6638 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' | |
| 6639 fi | |
| 6640 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes | |
| 6641 _LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' | |
| 6642 # -brtl affects multiple linker settings, -berok does not and is overridden later | |
| 6643 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\1%g"`' | |
| 6644 if test svr4 != "$with_aix_soname"; then | |
| 6645 # This is similar to how AIX traditionally builds its shared | |
| 6646 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. | |
| 6647 _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' | |
| 6648 fi | |
| 6649 if test aix != "$with_aix_soname"; then | |
| 6650 _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' | |
| 6651 else | |
| 6652 # used by -dlpreopen to get the symbols | |
| 6653 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$MV $output_objdir/$realname.d/$soname $output_objdir' | |
| 6654 fi | |
| 6655 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/$realname.d' | |
| 6656 fi | |
| 6657 fi | |
| 6658 ;; | |
| 6659 | |
| 6660 beos*) | |
| 6661 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
| 6662 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported | |
| 6663 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
| 6664 # support --undefined. This deserves some investigation. FIXME | |
| 6665 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | |
| 6666 else | |
| 6667 _LT_TAGVAR(ld_shlibs, $1)=no | |
| 6668 fi | |
| 6669 ;; | |
| 6670 | |
| 6671 chorus*) | |
| 6672 case $cc_basename in | |
| 6673 *) | |
| 6674 # FIXME: insert proper C++ library support | |
| 6675 _LT_TAGVAR(ld_shlibs, $1)=no | |
| 6676 ;; | |
| 6677 esac | |
| 6678 ;; | |
| 6679 | |
| 6680 cygwin* | mingw* | pw32* | cegcc*) | |
| 6681 case $GXX,$cc_basename in | |
| 6682 ,cl* | no,cl* | ,icl* | no,icl*) | |
| 6683 # Native MSVC or ICC | |
| 6684 # hardcode_libdir_flag_spec is actually meaningless, as there is | |
| 6685 # no search path for DLLs. | |
| 6686 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' | |
| 6687 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported | |
| 6688 _LT_TAGVAR(always_export_symbols, $1)=yes | |
| 6689 _LT_TAGVAR(file_list_spec, $1)='@' | |
| 6690 # Tell ltmain to make .lib files, not .a files. | |
| 6691 libext=lib | |
| 6692 # Tell ltmain to make .dll files, not .so files. | |
| 6693 shrext_cmds=.dll | |
| 6694 # FIXME: Setting linknames here is a bad hack. | |
| 6695 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' | |
| 6696 _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then | |
| 6697 cp "$export_symbols" "$output_objdir/$soname.def"; | |
| 6698 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; | |
| 6699 else | |
| 6700 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; | |
| 6701 fi~ | |
| 6702 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ | |
| 6703 linknames=' | |
| 6704 # The linker will not automatically build a static lib if we build a DLL. | |
| 6705 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' | |
| 6706 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes | |
| 6707 # Don't use ranlib | |
| 6708 _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' | |
| 6709 _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~ | |
| 6710 lt_tool_outputfile="@TOOL_OUTPUT@"~ | |
| 6711 case $lt_outputfile in | |
| 6712 *.exe|*.EXE) ;; | |
| 6713 *) | |
| 6714 lt_outputfile=$lt_outputfile.exe | |
| 6715 lt_tool_outputfile=$lt_tool_outputfile.exe | |
| 6716 ;; | |
| 6717 esac~ | |
| 6718 func_to_tool_file "$lt_outputfile"~ | |
| 6719 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then | |
| 6720 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; | |
| 6721 $RM "$lt_outputfile.manifest"; | |
| 6722 fi' | |
| 6723 ;; | |
| 6724 *) | |
| 6725 # g++ | |
| 6726 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, | |
| 6727 # as there is no search path for DLLs. | |
| 6728 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | |
| 6729 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols' | |
| 6730 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported | |
| 6731 _LT_TAGVAR(always_export_symbols, $1)=no | |
| 6732 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes | |
| 6733 | |
| 6734 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
| 6735 _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' | |
| 6736 # If the export-symbols file already is a .def file, use it as | |
| 6737 # is; otherwise, prepend EXPORTS... | |
| 6738 _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then | |
| 6739 cp $export_symbols $output_objdir/$soname.def; | |
| 6740 else | |
| 6741 echo EXPORTS > $output_objdir/$soname.def; | |
| 6742 cat $export_symbols >> $output_objdir/$soname.def; | |
| 6743 fi~ | |
| 6744 $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' | |
| 6745 else | |
| 6746 _LT_TAGVAR(ld_shlibs, $1)=no | |
| 6747 fi | |
| 6748 ;; | |
| 6749 esac | |
| 6750 ;; | |
| 6751 darwin* | rhapsody*) | |
| 6752 _LT_DARWIN_LINKER_FEATURES($1) | |
| 6753 ;; | |
| 6754 | |
| 6755 os2*) | |
| 6756 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | |
| 6757 _LT_TAGVAR(hardcode_minus_L, $1)=yes | |
| 6758 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported | |
| 6759 shrext_cmds=.dll | |
| 6760 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ | |
| 6761 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ | |
| 6762 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ | |
| 6763 $ECHO EXPORTS >> $output_objdir/$libname.def~ | |
| 6764 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ | |
| 6765 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ | |
| 6766 emximp -o $lib $output_objdir/$libname.def' | |
| 6767 _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ | |
| 6768 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ | |
| 6769 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ | |
| 6770 $ECHO EXPORTS >> $output_objdir/$libname.def~ | |
| 6771 prefix_cmds="$SED"~ | |
| 6772 if test EXPORTS = "`$SED 1q $export_symbols`"; then | |
| 6773 prefix_cmds="$prefix_cmds -e 1d"; | |
| 6774 fi~ | |
| 6775 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ | |
| 6776 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ | |
| 6777 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ | |
| 6778 emximp -o $lib $output_objdir/$libname.def' | |
| 6779 _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' | |
| 6780 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes | |
| 6781 _LT_TAGVAR(file_list_spec, $1)='@' | |
| 6782 ;; | |
| 6783 | |
| 6784 dgux*) | |
| 6785 case $cc_basename in | |
| 6786 ec++*) | |
| 6787 # FIXME: insert proper C++ library support | |
| 6788 _LT_TAGVAR(ld_shlibs, $1)=no | |
| 6789 ;; | |
| 6790 ghcx*) | |
| 6791 # Green Hills C++ Compiler | |
| 6792 # FIXME: insert proper C++ library support | |
| 6793 _LT_TAGVAR(ld_shlibs, $1)=no | |
| 6794 ;; | |
| 6795 *) | |
| 6796 # FIXME: insert proper C++ library support | |
| 6797 _LT_TAGVAR(ld_shlibs, $1)=no | |
| 6798 ;; | |
| 6799 esac | |
| 6800 ;; | |
| 6801 | |
| 6802 freebsd2.*) | |
| 6803 # C++ shared libraries reported to be fairly broken before | |
| 6804 # switch to ELF | |
| 6805 _LT_TAGVAR(ld_shlibs, $1)=no | |
| 6806 ;; | |
| 6807 | |
| 6808 freebsd-elf*) | |
| 6809 _LT_TAGVAR(archive_cmds_need_lc, $1)=no | |
| 6810 ;; | |
| 6811 | |
| 6812 freebsd* | dragonfly* | midnightbsd*) | |
| 6813 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF | |
| 6814 # conventions | |
| 6815 _LT_TAGVAR(ld_shlibs, $1)=yes | |
| 6816 ;; | |
| 6817 | |
| 6818 haiku*) | |
| 6819 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | |
| 6820 _LT_TAGVAR(link_all_deplibs, $1)=yes | |
| 6821 ;; | |
| 6822 | |
| 6823 hpux9*) | |
| 6824 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' | |
| 6825 _LT_TAGVAR(hardcode_libdir_separator, $1)=: | |
| 6826 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' | |
| 6827 _LT_TAGVAR(hardcode_direct, $1)=yes | |
| 6828 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, | |
| 6829 # but as the default | |
| 6830 # location of the library. | |
| 6831 | |
| 6832 case $cc_basename in | |
| 6833 CC*) | |
| 6834 # FIXME: insert proper C++ library support | |
| 6835 _LT_TAGVAR(ld_shlibs, $1)=no | |
| 6836 ;; | |
| 6837 aCC*) | |
| 6838 _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' | |
| 6839 # Commands to make compiler produce verbose output that lists | |
| 6840 # what "hidden" libraries, object files and flags are used when | |
| 6841 # linking a shared library. | |
| 6842 # | |
| 6843 # There doesn't appear to be a way to prevent this compiler from | |
| 6844 # explicitly linking system object files so we need to strip them | |
| 6845 # from the output so that they don't get included in the library | |
| 6846 # dependencies. | |
| 6847 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"' | |
| 6848 ;; | |
| 6849 *) | |
| 6850 if test yes = "$GXX"; then | |
| 6851 _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' | |
| 6852 else | |
| 6853 # FIXME: insert proper C++ library support | |
| 6854 _LT_TAGVAR(ld_shlibs, $1)=no | |
| 6855 fi | |
| 6856 ;; | |
| 6857 esac | |
| 6858 ;; | |
| 6859 | |
| 6860 hpux10*|hpux11*) | |
| 6861 if test no = "$with_gnu_ld"; then | |
| 6862 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' | |
| 6863 _LT_TAGVAR(hardcode_libdir_separator, $1)=: | |
| 6864 | |
| 6865 case $host_cpu in | |
| 6866 hppa*64*|ia64*) | |
| 6867 ;; | |
| 6868 *) | |
| 6869 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' | |
| 6870 ;; | |
| 6871 esac | |
| 6872 fi | |
| 6873 case $host_cpu in | |
| 6874 hppa*64*|ia64*) | |
| 6875 _LT_TAGVAR(hardcode_direct, $1)=no | |
| 6876 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | |
| 6877 ;; | |
| 6878 *) | |
| 6879 _LT_TAGVAR(hardcode_direct, $1)=yes | |
| 6880 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes | |
| 6881 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, | |
| 6882 # but as the default | |
| 6883 # location of the library. | |
| 6884 ;; | |
| 6885 esac | |
| 6886 | |
| 6887 case $cc_basename in | |
| 6888 CC*) | |
| 6889 # FIXME: insert proper C++ library support | |
| 6890 _LT_TAGVAR(ld_shlibs, $1)=no | |
| 6891 ;; | |
| 6892 aCC*) | |
| 6893 case $host_cpu in | |
| 6894 hppa*64*) | |
| 6895 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
| 6896 ;; | |
| 6897 ia64*) | |
| 6898 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
| 6899 ;; | |
| 6900 *) | |
| 6901 _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' | |
| 6902 ;; | |
| 6903 esac | |
| 6904 # Commands to make compiler produce verbose output that lists | |
| 6905 # what "hidden" libraries, object files and flags are used when | |
| 6906 # linking a shared library. | |
| 6907 # | |
| 6908 # There doesn't appear to be a way to prevent this compiler from | |
| 6909 # explicitly linking system object files so we need to strip them | |
| 6910 # from the output so that they don't get included in the library | |
| 6911 # dependencies. | |
| 6912 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"' | |
| 6913 ;; | |
| 6914 *) | |
| 6915 if test yes = "$GXX"; then | |
| 6916 if test no = "$with_gnu_ld"; then | |
| 6917 case $host_cpu in | |
| 6918 hppa*64*) | |
| 6919 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
| 6920 ;; | |
| 6921 ia64*) | |
| 6922 _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' | |
| 6923 ;; | |
| 6924 *) | |
| 6925 _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' | |
| 6926 ;; | |
| 6927 esac | |
| 6928 fi | |
| 6929 else | |
| 6930 # FIXME: insert proper C++ library support | |
| 6931 _LT_TAGVAR(ld_shlibs, $1)=no | |
| 6932 fi | |
| 6933 ;; | |
| 6934 esac | |
| 6935 ;; | |
| 6936 | |
| 6937 interix[[3-9]]*) | |
| 6938 _LT_TAGVAR(hardcode_direct, $1)=no | |
| 6939 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | |
| 6940 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' | |
| 6941 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' | |
| 6942 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
| 6943 # Instead, shared libraries are loaded at an image base (0x10000000 by | |
| 6944 # default) and relocated if they conflict, which is a slow very memory | |
| 6945 # consuming and fragmenting process. To avoid this, we pick a random, | |
| 6946 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
| 6947 # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
| 6948 _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' | |
| 6949 _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' | |
| 6950 ;; | |
| 6951 irix5* | irix6*) | |
| 6952 case $cc_basename in | |
| 6953 CC*) | |
| 6954 # SGI C++ | |
| 6955 _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' | |
| 6956 | |
| 6957 # Archives containing C++ object files must be created using | |
| 6958 # "CC -ar", where "CC" is the IRIX C++ compiler. This is | |
| 6959 # necessary to make sure instantiated templates are included | |
| 6960 # in the archive. | |
| 6961 _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' | |
| 6962 ;; | |
| 6963 *) | |
| 6964 if test yes = "$GXX"; then | |
| 6965 if test no = "$with_gnu_ld"; then | |
| 6966 _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' | |
| 6967 else | |
| 6968 _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' | |
| 6969 fi | |
| 6970 fi | |
| 6971 _LT_TAGVAR(link_all_deplibs, $1)=yes | |
| 6972 ;; | |
| 6973 esac | |
| 6974 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' | |
| 6975 _LT_TAGVAR(hardcode_libdir_separator, $1)=: | |
| 6976 _LT_TAGVAR(inherit_rpath, $1)=yes | |
| 6977 ;; | |
| 6978 | |
| 6979 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) | |
| 6980 case $cc_basename in | |
| 6981 KCC*) | |
| 6982 # Kuck and Associates, Inc. (KAI) C++ Compiler | |
| 6983 | |
| 6984 # KCC will only create a shared library if the output file | |
| 6985 # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
| 6986 # to its proper name (with version) after linking. | |
| 6987 _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' | |
| 6988 _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' | |
| 6989 # Commands to make compiler produce verbose output that lists | |
| 6990 # what "hidden" libraries, object files and flags are used when | |
| 6991 # linking a shared library. | |
| 6992 # | |
| 6993 # There doesn't appear to be a way to prevent this compiler from | |
| 6994 # explicitly linking system object files so we need to strip them | |
| 6995 # from the output so that they don't get included in the library | |
| 6996 # dependencies. | |
| 6997 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"' | |
| 6998 | |
| 6999 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' | |
| 7000 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' | |
| 7001 | |
| 7002 # Archives containing C++ object files must be created using | |
| 7003 # "CC -Bstatic", where "CC" is the KAI C++ compiler. | |
| 7004 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' | |
| 7005 ;; | |
| 7006 icpc* | ecpc* ) | |
| 7007 # Intel C++ | |
| 7008 with_gnu_ld=yes | |
| 7009 # version 8.0 and above of icpc choke on multiply defined symbols | |
| 7010 # if we add $predep_objects and $postdep_objects, however 7.1 and | |
| 7011 # earlier do not add the objects themselves. | |
| 7012 case `$CC -V 2>&1` in | |
| 7013 *"Version 7."*) | |
| 7014 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' | |
| 7015 _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' | |
| 7016 ;; | |
| 7017 *) # Version 8.0 or newer | |
| 7018 tmp_idyn= | |
| 7019 case $host_cpu in | |
| 7020 ia64*) tmp_idyn=' -i_dynamic';; | |
| 7021 esac | |
| 7022 _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | |
| 7023 _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' | |
| 7024 ;; | |
| 7025 esac | |
| 7026 _LT_TAGVAR(archive_cmds_need_lc, $1)=no | |
| 7027 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' | |
| 7028 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' | |
| 7029 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive' | |
| 7030 ;; | |
| 7031 pgCC* | pgcpp*) | |
| 7032 # Portland Group C++ compiler | |
| 7033 case `$CC -V` in | |
| 7034 *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*) | |
| 7035 _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~ | |
| 7036 rm -rf $tpldir~ | |
| 7037 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ | |
| 7038 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' | |
| 7039 _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~ | |
| 7040 rm -rf $tpldir~ | |
| 7041 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ | |
| 7042 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ | |
| 7043 $RANLIB $oldlib' | |
| 7044 _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~ | |
| 7045 rm -rf $tpldir~ | |
| 7046 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ | |
| 7047 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' | |
| 7048 _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~ | |
| 7049 rm -rf $tpldir~ | |
| 7050 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ | |
| 7051 $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' | |
| 7052 ;; | |
| 7053 *) # Version 6 and above use weak symbols | |
| 7054 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' | |
| 7055 _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' | |
| 7056 ;; | |
| 7057 esac | |
| 7058 | |
| 7059 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl--rpath $wl$libdir' | |
| 7060 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' | |
| 7061 _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' | |
| 7062 ;; | |
| 7063 cxx*) | |
| 7064 # Compaq C++ | |
| 7065 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' | |
| 7066 _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' | |
| 7067 | |
| 7068 runpath_var=LD_RUN_PATH | |
| 7069 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' | |
| 7070 _LT_TAGVAR(hardcode_libdir_separator, $1)=: | |
| 7071 | |
| 7072 # Commands to make compiler produce verbose output that lists | |
| 7073 # what "hidden" libraries, object files and flags are used when | |
| 7074 # linking a shared library. | |
| 7075 # | |
| 7076 # There doesn't appear to be a way to prevent this compiler from | |
| 7077 # explicitly linking system object files so we need to strip them | |
| 7078 # from the output so that they don't get included in the library | |
| 7079 # dependencies. | |
| 7080 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' | |
| 7081 ;; | |
| 7082 xl* | mpixl* | bgxl*) | |
| 7083 # IBM XL 8.0 on PPC, with GNU ld | |
| 7084 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' | |
| 7085 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' | |
| 7086 _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | |
| 7087 if test yes = "$supports_anon_versioning"; then | |
| 7088 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ | |
| 7089 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
| 7090 echo "local: *; };" >> $output_objdir/$libname.ver~ | |
| 7091 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' | |
| 7092 fi | |
| 7093 ;; | |
| 7094 *) | |
| 7095 case `$CC -V 2>&1 | $SED 5q` in | |
| 7096 *Sun\ C*) | |
| 7097 # Sun C++ 5.9 | |
| 7098 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' | |
| 7099 _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
| 7100 _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' | |
| 7101 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' | |
| 7102 _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' | |
| 7103 _LT_TAGVAR(compiler_needs_object, $1)=yes | |
| 7104 | |
| 7105 # Not sure whether something based on | |
| 7106 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | |
| 7107 # would be better. | |
| 7108 output_verbose_link_cmd='func_echo_all' | |
| 7109 | |
| 7110 # Archives containing C++ object files must be created using | |
| 7111 # "CC -xar", where "CC" is the Sun C++ compiler. This is | |
| 7112 # necessary to make sure instantiated templates are included | |
| 7113 # in the archive. | |
| 7114 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' | |
| 7115 ;; | |
| 7116 esac | |
| 7117 ;; | |
| 7118 esac | |
| 7119 ;; | |
| 7120 | |
| 7121 lynxos*) | |
| 7122 # FIXME: insert proper C++ library support | |
| 7123 _LT_TAGVAR(ld_shlibs, $1)=no | |
| 7124 ;; | |
| 7125 | |
| 7126 m88k*) | |
| 7127 # FIXME: insert proper C++ library support | |
| 7128 _LT_TAGVAR(ld_shlibs, $1)=no | |
| 7129 ;; | |
| 7130 | |
| 7131 mvs*) | |
| 7132 case $cc_basename in | |
| 7133 cxx*) | |
| 7134 # FIXME: insert proper C++ library support | |
| 7135 _LT_TAGVAR(ld_shlibs, $1)=no | |
| 7136 ;; | |
| 7137 *) | |
| 7138 # FIXME: insert proper C++ library support | |
| 7139 _LT_TAGVAR(ld_shlibs, $1)=no | |
| 7140 ;; | |
| 7141 esac | |
| 7142 ;; | |
| 7143 | |
| 7144 netbsd*) | |
| 7145 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
| 7146 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' | |
| 7147 wlarc= | |
| 7148 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' | |
| 7149 _LT_TAGVAR(hardcode_direct, $1)=yes | |
| 7150 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | |
| 7151 fi | |
| 7152 # Workaround some broken pre-1.5 toolchains | |
| 7153 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' | |
| 7154 ;; | |
| 7155 | |
| 7156 *nto* | *qnx*) | |
| 7157 _LT_TAGVAR(ld_shlibs, $1)=yes | |
| 7158 ;; | |
| 7159 | |
| 7160 openbsd* | bitrig*) | |
| 7161 if test -f /usr/libexec/ld.so; then | |
| 7162 _LT_TAGVAR(hardcode_direct, $1)=yes | |
| 7163 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | |
| 7164 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes | |
| 7165 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
| 7166 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' | |
| 7167 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then | |
| 7168 _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' | |
| 7169 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' | |
| 7170 _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' | |
| 7171 fi | |
| 7172 output_verbose_link_cmd=func_echo_all | |
| 7173 else | |
| 7174 _LT_TAGVAR(ld_shlibs, $1)=no | |
| 7175 fi | |
| 7176 ;; | |
| 7177 | |
| 7178 osf3* | osf4* | osf5*) | |
| 7179 case $cc_basename in | |
| 7180 KCC*) | |
| 7181 # Kuck and Associates, Inc. (KAI) C++ Compiler | |
| 7182 | |
| 7183 # KCC will only create a shared library if the output file | |
| 7184 # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
| 7185 # to its proper name (with version) after linking. | |
| 7186 _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' | |
| 7187 | |
| 7188 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' | |
| 7189 _LT_TAGVAR(hardcode_libdir_separator, $1)=: | |
| 7190 | |
| 7191 # Archives containing C++ object files must be created using | |
| 7192 # the KAI C++ compiler. | |
| 7193 case $host in | |
| 7194 osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;; | |
| 7195 *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;; | |
| 7196 esac | |
| 7197 ;; | |
| 7198 RCC*) | |
| 7199 # Rational C++ 2.4.1 | |
| 7200 # FIXME: insert proper C++ library support | |
| 7201 _LT_TAGVAR(ld_shlibs, $1)=no | |
| 7202 ;; | |
| 7203 cxx*) | |
| 7204 case $host in | |
| 7205 osf3*) | |
| 7206 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*' | |
| 7207 _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' | |
| 7208 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' | |
| 7209 ;; | |
| 7210 *) | |
| 7211 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' | |
| 7212 _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' | |
| 7213 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ | |
| 7214 echo "-hidden">> $lib.exp~ | |
| 7215 $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~ | |
| 7216 $RM $lib.exp' | |
| 7217 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' | |
| 7218 ;; | |
| 7219 esac | |
| 7220 | |
| 7221 _LT_TAGVAR(hardcode_libdir_separator, $1)=: | |
| 7222 | |
| 7223 # Commands to make compiler produce verbose output that lists | |
| 7224 # what "hidden" libraries, object files and flags are used when | |
| 7225 # linking a shared library. | |
| 7226 # | |
| 7227 # There doesn't appear to be a way to prevent this compiler from | |
| 7228 # explicitly linking system object files so we need to strip them | |
| 7229 # from the output so that they don't get included in the library | |
| 7230 # dependencies. | |
| 7231 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"' | |
| 7232 ;; | |
| 7233 *) | |
| 7234 if test yes,no = "$GXX,$with_gnu_ld"; then | |
| 7235 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*' | |
| 7236 case $host in | |
| 7237 osf3*) | |
| 7238 _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' | |
| 7239 ;; | |
| 7240 *) | |
| 7241 _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' | |
| 7242 ;; | |
| 7243 esac | |
| 7244 | |
| 7245 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' | |
| 7246 _LT_TAGVAR(hardcode_libdir_separator, $1)=: | |
| 7247 | |
| 7248 # Commands to make compiler produce verbose output that lists | |
| 7249 # what "hidden" libraries, object files and flags are used when | |
| 7250 # linking a shared library. | |
| 7251 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' | |
| 7252 | |
| 7253 else | |
| 7254 # FIXME: insert proper C++ library support | |
| 7255 _LT_TAGVAR(ld_shlibs, $1)=no | |
| 7256 fi | |
| 7257 ;; | |
| 7258 esac | |
| 7259 ;; | |
| 7260 | |
| 7261 psos*) | |
| 7262 # FIXME: insert proper C++ library support | |
| 7263 _LT_TAGVAR(ld_shlibs, $1)=no | |
| 7264 ;; | |
| 7265 | |
| 7266 sunos4*) | |
| 7267 case $cc_basename in | |
| 7268 CC*) | |
| 7269 # Sun C++ 4.x | |
| 7270 # FIXME: insert proper C++ library support | |
| 7271 _LT_TAGVAR(ld_shlibs, $1)=no | |
| 7272 ;; | |
| 7273 lcc*) | |
| 7274 # Lucid | |
| 7275 # FIXME: insert proper C++ library support | |
| 7276 _LT_TAGVAR(ld_shlibs, $1)=no | |
| 7277 ;; | |
| 7278 *) | |
| 7279 # FIXME: insert proper C++ library support | |
| 7280 _LT_TAGVAR(ld_shlibs, $1)=no | |
| 7281 ;; | |
| 7282 esac | |
| 7283 ;; | |
| 7284 | |
| 7285 solaris*) | |
| 7286 case $cc_basename in | |
| 7287 CC* | sunCC*) | |
| 7288 # Sun C++ 4.2, 5.x and Centerline C++ | |
| 7289 _LT_TAGVAR(archive_cmds_need_lc,$1)=yes | |
| 7290 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' | |
| 7291 _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
| 7292 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
| 7293 $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' | |
| 7294 | |
| 7295 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' | |
| 7296 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | |
| 7297 case $host_os in | |
| 7298 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; | |
| 7299 *) | |
| 7300 # The compiler driver will combine and reorder linker options, | |
| 7301 # but understands '-z linker_flag'. | |
| 7302 # Supported since Solaris 2.6 (maybe 2.5.1?) | |
| 7303 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' | |
| 7304 ;; | |
| 7305 esac | |
| 7306 _LT_TAGVAR(link_all_deplibs, $1)=yes | |
| 7307 | |
| 7308 output_verbose_link_cmd='func_echo_all' | |
| 7309 | |
| 7310 # Archives containing C++ object files must be created using | |
| 7311 # "CC -xar", where "CC" is the Sun C++ compiler. This is | |
| 7312 # necessary to make sure instantiated templates are included | |
| 7313 # in the archive. | |
| 7314 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' | |
| 7315 ;; | |
| 7316 gcx*) | |
| 7317 # Green Hills C++ Compiler | |
| 7318 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' | |
| 7319 | |
| 7320 # The C++ compiler must be used to create the archive. | |
| 7321 _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' | |
| 7322 ;; | |
| 7323 *) | |
| 7324 # GNU C++ compiler with Solaris linker | |
| 7325 if test yes,no = "$GXX,$with_gnu_ld"; then | |
| 7326 _LT_TAGVAR(no_undefined_flag, $1)=' $wl-z ${wl}defs' | |
| 7327 if $CC --version | $GREP -v '^2\.7' > /dev/null; then | |
| 7328 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' | |
| 7329 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
| 7330 $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' | |
| 7331 | |
| 7332 # Commands to make compiler produce verbose output that lists | |
| 7333 # what "hidden" libraries, object files and flags are used when | |
| 7334 # linking a shared library. | |
| 7335 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' | |
| 7336 else | |
| 7337 # g++ 2.7 appears to require '-G' NOT '-shared' on this | |
| 7338 # platform. | |
| 7339 _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' | |
| 7340 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
| 7341 $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' | |
| 7342 | |
| 7343 # Commands to make compiler produce verbose output that lists | |
| 7344 # what "hidden" libraries, object files and flags are used when | |
| 7345 # linking a shared library. | |
| 7346 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' | |
| 7347 fi | |
| 7348 | |
| 7349 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $wl$libdir' | |
| 7350 case $host_os in | |
| 7351 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; | |
| 7352 *) | |
| 7353 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' | |
| 7354 ;; | |
| 7355 esac | |
| 7356 fi | |
| 7357 ;; | |
| 7358 esac | |
| 7359 ;; | |
| 7360 | |
| 7361 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) | |
| 7362 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text' | |
| 7363 _LT_TAGVAR(archive_cmds_need_lc, $1)=no | |
| 7364 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | |
| 7365 runpath_var='LD_RUN_PATH' | |
| 7366 | |
| 7367 case $cc_basename in | |
| 7368 CC*) | |
| 7369 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
| 7370 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
| 7371 ;; | |
| 7372 *) | |
| 7373 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
| 7374 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
| 7375 ;; | |
| 7376 esac | |
| 7377 ;; | |
| 7378 | |
| 7379 sysv5* | sco3.2v5* | sco5v6*) | |
| 7380 # Note: We CANNOT use -z defs as we might desire, because we do not | |
| 7381 # link with -lc, and that would cause any symbols used from libc to | |
| 7382 # always be unresolved, which means just about no library would | |
| 7383 # ever link correctly. If we're not using GNU ld we use -z text | |
| 7384 # though, which does catch some bad symbols but isn't as heavy-handed | |
| 7385 # as -z defs. | |
| 7386 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text' | |
| 7387 _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs' | |
| 7388 _LT_TAGVAR(archive_cmds_need_lc, $1)=no | |
| 7389 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | |
| 7390 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir' | |
| 7391 _LT_TAGVAR(hardcode_libdir_separator, $1)=':' | |
| 7392 _LT_TAGVAR(link_all_deplibs, $1)=yes | |
| 7393 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport' | |
| 7394 runpath_var='LD_RUN_PATH' | |
| 7395 | |
| 7396 case $cc_basename in | |
| 7397 CC*) | |
| 7398 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
| 7399 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
| 7400 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~ | |
| 7401 '"$_LT_TAGVAR(old_archive_cmds, $1)" | |
| 7402 _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~ | |
| 7403 '"$_LT_TAGVAR(reload_cmds, $1)" | |
| 7404 ;; | |
| 7405 *) | |
| 7406 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
| 7407 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
| 7408 ;; | |
| 7409 esac | |
| 7410 ;; | |
| 7411 | |
| 7412 tandem*) | |
| 7413 case $cc_basename in | |
| 7414 NCC*) | |
| 7415 # NonStop-UX NCC 3.20 | |
| 7416 # FIXME: insert proper C++ library support | |
| 7417 _LT_TAGVAR(ld_shlibs, $1)=no | |
| 7418 ;; | |
| 7419 *) | |
| 7420 # FIXME: insert proper C++ library support | |
| 7421 _LT_TAGVAR(ld_shlibs, $1)=no | |
| 7422 ;; | |
| 7423 esac | |
| 7424 ;; | |
| 7425 | |
| 7426 vxworks*) | |
| 7427 # FIXME: insert proper C++ library support | |
| 7428 _LT_TAGVAR(ld_shlibs, $1)=no | |
| 7429 ;; | |
| 7430 | |
| 7431 *) | |
| 7432 # FIXME: insert proper C++ library support | |
| 7433 _LT_TAGVAR(ld_shlibs, $1)=no | |
| 7434 ;; | |
| 7435 esac | |
| 7436 | |
| 7437 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) | |
| 7438 test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no | |
| 7439 | |
| 7440 _LT_TAGVAR(GCC, $1)=$GXX | |
| 7441 _LT_TAGVAR(LD, $1)=$LD | |
| 7442 | |
| 7443 ## CAVEAT EMPTOR: | |
| 7444 ## There is no encapsulation within the following macros, do not change | |
| 7445 ## the running order or otherwise move them around unless you know exactly | |
| 7446 ## what you are doing... | |
| 7447 _LT_SYS_HIDDEN_LIBDEPS($1) | |
| 7448 _LT_COMPILER_PIC($1) | |
| 7449 _LT_COMPILER_C_O($1) | |
| 7450 _LT_COMPILER_FILE_LOCKS($1) | |
| 7451 _LT_LINKER_SHLIBS($1) | |
| 7452 _LT_SYS_DYNAMIC_LINKER($1) | |
| 7453 _LT_LINKER_HARDCODE_LIBPATH($1) | |
| 7454 | |
| 7455 _LT_CONFIG($1) | |
| 7456 fi # test -n "$compiler" | |
| 7457 | |
| 7458 CC=$lt_save_CC | |
| 7459 CFLAGS=$lt_save_CFLAGS | |
| 7460 LDCXX=$LD | |
| 7461 LD=$lt_save_LD | |
| 7462 GCC=$lt_save_GCC | |
| 7463 with_gnu_ld=$lt_save_with_gnu_ld | |
| 7464 lt_cv_path_LDCXX=$lt_cv_path_LD | |
| 7465 lt_cv_path_LD=$lt_save_path_LD | |
| 7466 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld | |
| 7467 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld | |
| 7468 fi # test yes != "$_lt_caught_CXX_error" | |
| 7469 | |
| 7470 AC_LANG_POP | |
| 7471 ])# _LT_LANG_CXX_CONFIG | |
| 7472 | |
| 7473 | |
| 7474 # _LT_FUNC_STRIPNAME_CNF | |
| 7475 # ---------------------- | |
| 7476 # func_stripname_cnf prefix suffix name | |
| 7477 # strip PREFIX and SUFFIX off of NAME. | |
| 7478 # PREFIX and SUFFIX must not contain globbing or regex special | |
| 7479 # characters, hashes, percent signs, but SUFFIX may contain a leading | |
| 7480 # dot (in which case that matches only a dot). | |
| 7481 # | |
| 7482 # This function is identical to the (non-XSI) version of func_stripname, | |
| 7483 # except this one can be used by m4 code that may be executed by configure, | |
| 7484 # rather than the libtool script. | |
| 7485 m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl | |
| 7486 AC_REQUIRE([_LT_DECL_SED]) | |
| 7487 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH]) | |
| 7488 func_stripname_cnf () | |
| 7489 { | |
| 7490 case @S|@2 in | |
| 7491 .*) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%\\\\@S|@2\$%%"`;; | |
| 7492 *) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%@S|@2\$%%"`;; | |
| 7493 esac | |
| 7494 } # func_stripname_cnf | |
| 7495 ])# _LT_FUNC_STRIPNAME_CNF | |
| 7496 | |
| 7497 | |
| 7498 # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME]) | |
| 7499 # --------------------------------- | |
| 7500 # Figure out "hidden" library dependencies from verbose | |
| 7501 # compiler output when linking a shared library. | |
| 7502 # Parse the compiler output and extract the necessary | |
| 7503 # objects, libraries and library flags. | |
| 7504 m4_defun([_LT_SYS_HIDDEN_LIBDEPS], | |
| 7505 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl | |
| 7506 AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl | |
| 7507 # Dependencies to place before and after the object being linked: | |
| 7508 _LT_TAGVAR(predep_objects, $1)= | |
| 7509 _LT_TAGVAR(postdep_objects, $1)= | |
| 7510 _LT_TAGVAR(predeps, $1)= | |
| 7511 _LT_TAGVAR(postdeps, $1)= | |
| 7512 _LT_TAGVAR(compiler_lib_search_path, $1)= | |
| 7513 | |
| 7514 dnl we can't use the lt_simple_compile_test_code here, | |
| 7515 dnl because it contains code intended for an executable, | |
| 7516 dnl not a library. It's possible we should let each | |
| 7517 dnl tag define a new lt_????_link_test_code variable, | |
| 7518 dnl but it's only used here... | |
| 7519 m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF | |
| 7520 int a; | |
| 7521 void foo (void) { a = 0; } | |
| 7522 _LT_EOF | |
| 7523 ], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF | |
| 7524 class Foo | |
| 7525 { | |
| 7526 public: | |
| 7527 Foo (void) { a = 0; } | |
| 7528 private: | |
| 7529 int a; | |
| 7530 }; | |
| 7531 _LT_EOF | |
| 7532 ], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF | |
| 7533 subroutine foo | |
| 7534 implicit none | |
| 7535 integer*4 a | |
| 7536 a=0 | |
| 7537 return | |
| 7538 end | |
| 7539 _LT_EOF | |
| 7540 ], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF | |
| 7541 subroutine foo | |
| 7542 implicit none | |
| 7543 integer a | |
| 7544 a=0 | |
| 7545 return | |
| 7546 end | |
| 7547 _LT_EOF | |
| 7548 ], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF | |
| 7549 public class foo { | |
| 7550 private int a; | |
| 7551 public void bar (void) { | |
| 7552 a = 0; | |
| 7553 } | |
| 7554 }; | |
| 7555 _LT_EOF | |
| 7556 ], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF | |
| 7557 package foo | |
| 7558 func foo() { | |
| 7559 } | |
| 7560 _LT_EOF | |
| 7561 ]) | |
| 7562 | |
| 7563 _lt_libdeps_save_CFLAGS=$CFLAGS | |
| 7564 case "$CC $CFLAGS " in #( | |
| 7565 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; | |
| 7566 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; | |
| 7567 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; | |
| 7568 esac | |
| 7569 | |
| 7570 dnl Parse the compiler output and extract the necessary | |
| 7571 dnl objects, libraries and library flags. | |
| 7572 if AC_TRY_EVAL(ac_compile); then | |
| 7573 # Parse the compiler output and extract the necessary | |
| 7574 # objects, libraries and library flags. | |
| 7575 | |
| 7576 # Sentinel used to keep track of whether or not we are before | |
| 7577 # the conftest object file. | |
| 7578 pre_test_object_deps_done=no | |
| 7579 | |
| 7580 for p in `eval "$output_verbose_link_cmd"`; do | |
| 7581 case $prev$p in | |
| 7582 | |
| 7583 -L* | -R* | -l*) | |
| 7584 # Some compilers place space between "-{L,R}" and the path. | |
| 7585 # Remove the space. | |
| 7586 if test x-L = "$p" || | |
| 7587 test x-R = "$p"; then | |
| 7588 prev=$p | |
| 7589 continue | |
| 7590 fi | |
| 7591 | |
| 7592 # Expand the sysroot to ease extracting the directories later. | |
| 7593 if test -z "$prev"; then | |
| 7594 case $p in | |
| 7595 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; | |
| 7596 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; | |
| 7597 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; | |
| 7598 esac | |
| 7599 fi | |
| 7600 case $p in | |
| 7601 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; | |
| 7602 esac | |
| 7603 if test no = "$pre_test_object_deps_done"; then | |
| 7604 case $prev in | |
| 7605 -L | -R) | |
| 7606 # Internal compiler library paths should come after those | |
| 7607 # provided the user. The postdeps already come after the | |
| 7608 # user supplied libs so there is no need to process them. | |
| 7609 if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then | |
| 7610 _LT_TAGVAR(compiler_lib_search_path, $1)=$prev$p | |
| 7611 else | |
| 7612 _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} $prev$p" | |
| 7613 fi | |
| 7614 ;; | |
| 7615 # The "-l" case would never come before the object being | |
| 7616 # linked, so don't bother handling this case. | |
| 7617 esac | |
| 7618 else | |
| 7619 if test -z "$_LT_TAGVAR(postdeps, $1)"; then | |
| 7620 _LT_TAGVAR(postdeps, $1)=$prev$p | |
| 7621 else | |
| 7622 _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} $prev$p" | |
| 7623 fi | |
| 7624 fi | |
| 7625 prev= | |
| 7626 ;; | |
| 7627 | |
| 7628 *.lto.$objext) ;; # Ignore GCC LTO objects | |
| 7629 *.$objext) | |
| 7630 # This assumes that the test object file only shows up | |
| 7631 # once in the compiler output. | |
| 7632 if test "$p" = "conftest.$objext"; then | |
| 7633 pre_test_object_deps_done=yes | |
| 7634 continue | |
| 7635 fi | |
| 7636 | |
| 7637 if test no = "$pre_test_object_deps_done"; then | |
| 7638 if test -z "$_LT_TAGVAR(predep_objects, $1)"; then | |
| 7639 _LT_TAGVAR(predep_objects, $1)=$p | |
| 7640 else | |
| 7641 _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p" | |
| 7642 fi | |
| 7643 else | |
| 7644 if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then | |
| 7645 _LT_TAGVAR(postdep_objects, $1)=$p | |
| 7646 else | |
| 7647 _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p" | |
| 7648 fi | |
| 7649 fi | |
| 7650 ;; | |
| 7651 | |
| 7652 *) ;; # Ignore the rest. | |
| 7653 | |
| 7654 esac | |
| 7655 done | |
| 7656 | |
| 7657 # Clean up. | |
| 7658 rm -f a.out a.exe | |
| 7659 else | |
| 7660 echo "libtool.m4: error: problem compiling $1 test program" | |
| 7661 fi | |
| 7662 | |
| 7663 $RM -f confest.$objext | |
| 7664 CFLAGS=$_lt_libdeps_save_CFLAGS | |
| 7665 | |
| 7666 # PORTME: override above test on systems where it is broken | |
| 7667 m4_if([$1], [CXX], | |
| 7668 [case $host_os in | |
| 7669 interix[[3-9]]*) | |
| 7670 # Interix 3.5 installs completely hosed .la files for C++, so rather than | |
| 7671 # hack all around it, let's just trust "g++" to DTRT. | |
| 7672 _LT_TAGVAR(predep_objects,$1)= | |
| 7673 _LT_TAGVAR(postdep_objects,$1)= | |
| 7674 _LT_TAGVAR(postdeps,$1)= | |
| 7675 ;; | |
| 7676 esac | |
| 7677 ]) | |
| 7678 | |
| 7679 case " $_LT_TAGVAR(postdeps, $1) " in | |
| 7680 *" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;; | |
| 7681 esac | |
| 7682 _LT_TAGVAR(compiler_lib_search_dirs, $1)= | |
| 7683 if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then | |
| 7684 _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | $SED -e 's! -L! !g' -e 's!^ !!'` | |
| 7685 fi | |
| 7686 _LT_TAGDECL([], [compiler_lib_search_dirs], [1], | |
| 7687 [The directories searched by this compiler when creating a shared library]) | |
| 7688 _LT_TAGDECL([], [predep_objects], [1], | |
| 7689 [Dependencies to place before and after the objects being linked to | |
| 7690 create a shared library]) | |
| 7691 _LT_TAGDECL([], [postdep_objects], [1]) | |
| 7692 _LT_TAGDECL([], [predeps], [1]) | |
| 7693 _LT_TAGDECL([], [postdeps], [1]) | |
| 7694 _LT_TAGDECL([], [compiler_lib_search_path], [1], | |
| 7695 [The library search path used internally by the compiler when linking | |
| 7696 a shared library]) | |
| 7697 ])# _LT_SYS_HIDDEN_LIBDEPS | |
| 7698 | |
| 7699 | |
| 7700 # _LT_LANG_F77_CONFIG([TAG]) | |
| 7701 # -------------------------- | |
| 7702 # Ensure that the configuration variables for a Fortran 77 compiler are | |
| 7703 # suitably defined. These variables are subsequently used by _LT_CONFIG | |
| 7704 # to write the compiler configuration to 'libtool'. | |
| 7705 m4_defun([_LT_LANG_F77_CONFIG], | |
| 7706 [AC_LANG_PUSH(Fortran 77) | |
| 7707 if test -z "$F77" || test no = "$F77"; then | |
| 7708 _lt_disable_F77=yes | |
| 7709 fi | |
| 7710 | |
| 7711 _LT_TAGVAR(archive_cmds_need_lc, $1)=no | |
| 7712 _LT_TAGVAR(allow_undefined_flag, $1)= | |
| 7713 _LT_TAGVAR(always_export_symbols, $1)=no | |
| 7714 _LT_TAGVAR(archive_expsym_cmds, $1)= | |
| 7715 _LT_TAGVAR(export_dynamic_flag_spec, $1)= | |
| 7716 _LT_TAGVAR(hardcode_direct, $1)=no | |
| 7717 _LT_TAGVAR(hardcode_direct_absolute, $1)=no | |
| 7718 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= | |
| 7719 _LT_TAGVAR(hardcode_libdir_separator, $1)= | |
| 7720 _LT_TAGVAR(hardcode_minus_L, $1)=no | |
| 7721 _LT_TAGVAR(hardcode_automatic, $1)=no | |
| 7722 _LT_TAGVAR(inherit_rpath, $1)=no | |
| 7723 _LT_TAGVAR(module_cmds, $1)= | |
| 7724 _LT_TAGVAR(module_expsym_cmds, $1)= | |
| 7725 _LT_TAGVAR(link_all_deplibs, $1)=unknown | |
| 7726 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds | |
| 7727 _LT_TAGVAR(reload_flag, $1)=$reload_flag | |
| 7728 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds | |
| 7729 _LT_TAGVAR(no_undefined_flag, $1)= | |
| 7730 _LT_TAGVAR(whole_archive_flag_spec, $1)= | |
| 7731 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no | |
| 7732 | |
| 7733 # Source file extension for f77 test sources. | |
| 7734 ac_ext=f | |
| 7735 | |
| 7736 # Object file extension for compiled f77 test sources. | |
| 7737 objext=o | |
| 7738 _LT_TAGVAR(objext, $1)=$objext | |
| 7739 | |
| 7740 # No sense in running all these tests if we already determined that | |
| 7741 # the F77 compiler isn't working. Some variables (like enable_shared) | |
| 7742 # are currently assumed to apply to all compilers on this platform, | |
| 7743 # and will be corrupted by setting them based on a non-working compiler. | |
| 7744 if test yes != "$_lt_disable_F77"; then | |
| 7745 # Code to be used in simple compile tests | |
| 7746 lt_simple_compile_test_code="\ | |
| 7747 subroutine t | |
| 7748 return | |
| 7749 end | |
| 7750 " | |
| 7751 | |
| 7752 # Code to be used in simple link tests | |
| 7753 lt_simple_link_test_code="\ | |
| 7754 program t | |
| 7755 end | |
| 7756 " | |
| 7757 | |
| 7758 # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
| 7759 _LT_TAG_COMPILER | |
| 7760 | |
| 7761 # save warnings/boilerplate of simple test code | |
| 7762 _LT_COMPILER_BOILERPLATE | |
| 7763 _LT_LINKER_BOILERPLATE | |
| 7764 | |
| 7765 # Allow CC to be a program name with arguments. | |
| 7766 lt_save_CC=$CC | |
| 7767 lt_save_GCC=$GCC | |
| 7768 lt_save_CFLAGS=$CFLAGS | |
| 7769 CC=${F77-"f77"} | |
| 7770 CFLAGS=$FFLAGS | |
| 7771 compiler=$CC | |
| 7772 _LT_TAGVAR(compiler, $1)=$CC | |
| 7773 _LT_CC_BASENAME([$compiler]) | |
| 7774 GCC=$G77 | |
| 7775 if test -n "$compiler"; then | |
| 7776 AC_MSG_CHECKING([if libtool supports shared libraries]) | |
| 7777 AC_MSG_RESULT([$can_build_shared]) | |
| 7778 | |
| 7779 AC_MSG_CHECKING([whether to build shared libraries]) | |
| 7780 test no = "$can_build_shared" && enable_shared=no | |
| 7781 | |
| 7782 # On AIX, shared libraries and static libraries use the same namespace, and | |
| 7783 # are all built from PIC. | |
| 7784 case $host_os in | |
| 7785 aix3*) | |
| 7786 test yes = "$enable_shared" && enable_static=no | |
| 7787 if test -n "$RANLIB"; then | |
| 7788 archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
| 7789 postinstall_cmds='$RANLIB $lib' | |
| 7790 fi | |
| 7791 ;; | |
| 7792 aix[[4-9]]*) | |
| 7793 if test ia64 != "$host_cpu"; then | |
| 7794 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in | |
| 7795 yes,aix,yes) ;; # shared object as lib.so file only | |
| 7796 yes,svr4,*) ;; # shared object as lib.so archive member only | |
| 7797 yes,*) enable_static=no ;; # shared object in lib.a archive as well | |
| 7798 esac | |
| 7799 fi | |
| 7800 ;; | |
| 7801 esac | |
| 7802 AC_MSG_RESULT([$enable_shared]) | |
| 7803 | |
| 7804 AC_MSG_CHECKING([whether to build static libraries]) | |
| 7805 # Make sure either enable_shared or enable_static is yes. | |
| 7806 test yes = "$enable_shared" || enable_static=yes | |
| 7807 AC_MSG_RESULT([$enable_static]) | |
| 7808 | |
| 7809 _LT_TAGVAR(GCC, $1)=$G77 | |
| 7810 _LT_TAGVAR(LD, $1)=$LD | |
| 7811 | |
| 7812 ## CAVEAT EMPTOR: | |
| 7813 ## There is no encapsulation within the following macros, do not change | |
| 7814 ## the running order or otherwise move them around unless you know exactly | |
| 7815 ## what you are doing... | |
| 7816 _LT_COMPILER_PIC($1) | |
| 7817 _LT_COMPILER_C_O($1) | |
| 7818 _LT_COMPILER_FILE_LOCKS($1) | |
| 7819 _LT_LINKER_SHLIBS($1) | |
| 7820 _LT_SYS_DYNAMIC_LINKER($1) | |
| 7821 _LT_LINKER_HARDCODE_LIBPATH($1) | |
| 7822 | |
| 7823 _LT_CONFIG($1) | |
| 7824 fi # test -n "$compiler" | |
| 7825 | |
| 7826 GCC=$lt_save_GCC | |
| 7827 CC=$lt_save_CC | |
| 7828 CFLAGS=$lt_save_CFLAGS | |
| 7829 fi # test yes != "$_lt_disable_F77" | |
| 7830 | |
| 7831 AC_LANG_POP | |
| 7832 ])# _LT_LANG_F77_CONFIG | |
| 7833 | |
| 7834 | |
| 7835 # _LT_LANG_FC_CONFIG([TAG]) | |
| 7836 # ------------------------- | |
| 7837 # Ensure that the configuration variables for a Fortran compiler are | |
| 7838 # suitably defined. These variables are subsequently used by _LT_CONFIG | |
| 7839 # to write the compiler configuration to 'libtool'. | |
| 7840 m4_defun([_LT_LANG_FC_CONFIG], | |
| 7841 [AC_LANG_PUSH(Fortran) | |
| 7842 | |
| 7843 if test -z "$FC" || test no = "$FC"; then | |
| 7844 _lt_disable_FC=yes | |
| 7845 fi | |
| 7846 | |
| 7847 _LT_TAGVAR(archive_cmds_need_lc, $1)=no | |
| 7848 _LT_TAGVAR(allow_undefined_flag, $1)= | |
| 7849 _LT_TAGVAR(always_export_symbols, $1)=no | |
| 7850 _LT_TAGVAR(archive_expsym_cmds, $1)= | |
| 7851 _LT_TAGVAR(export_dynamic_flag_spec, $1)= | |
| 7852 _LT_TAGVAR(hardcode_direct, $1)=no | |
| 7853 _LT_TAGVAR(hardcode_direct_absolute, $1)=no | |
| 7854 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= | |
| 7855 _LT_TAGVAR(hardcode_libdir_separator, $1)= | |
| 7856 _LT_TAGVAR(hardcode_minus_L, $1)=no | |
| 7857 _LT_TAGVAR(hardcode_automatic, $1)=no | |
| 7858 _LT_TAGVAR(inherit_rpath, $1)=no | |
| 7859 _LT_TAGVAR(module_cmds, $1)= | |
| 7860 _LT_TAGVAR(module_expsym_cmds, $1)= | |
| 7861 _LT_TAGVAR(link_all_deplibs, $1)=unknown | |
| 7862 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds | |
| 7863 _LT_TAGVAR(reload_flag, $1)=$reload_flag | |
| 7864 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds | |
| 7865 _LT_TAGVAR(no_undefined_flag, $1)= | |
| 7866 _LT_TAGVAR(whole_archive_flag_spec, $1)= | |
| 7867 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no | |
| 7868 | |
| 7869 # Source file extension for fc test sources. | |
| 7870 ac_ext=${ac_fc_srcext-f} | |
| 7871 | |
| 7872 # Object file extension for compiled fc test sources. | |
| 7873 objext=o | |
| 7874 _LT_TAGVAR(objext, $1)=$objext | |
| 7875 | |
| 7876 # No sense in running all these tests if we already determined that | |
| 7877 # the FC compiler isn't working. Some variables (like enable_shared) | |
| 7878 # are currently assumed to apply to all compilers on this platform, | |
| 7879 # and will be corrupted by setting them based on a non-working compiler. | |
| 7880 if test yes != "$_lt_disable_FC"; then | |
| 7881 # Code to be used in simple compile tests | |
| 7882 lt_simple_compile_test_code="\ | |
| 7883 subroutine t | |
| 7884 return | |
| 7885 end | |
| 7886 " | |
| 7887 | |
| 7888 # Code to be used in simple link tests | |
| 7889 lt_simple_link_test_code="\ | |
| 7890 program t | |
| 7891 end | |
| 7892 " | |
| 7893 | |
| 7894 # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
| 7895 _LT_TAG_COMPILER | |
| 7896 | |
| 7897 # save warnings/boilerplate of simple test code | |
| 7898 _LT_COMPILER_BOILERPLATE | |
| 7899 _LT_LINKER_BOILERPLATE | |
| 7900 | |
| 7901 # Allow CC to be a program name with arguments. | |
| 7902 lt_save_CC=$CC | |
| 7903 lt_save_GCC=$GCC | |
| 7904 lt_save_CFLAGS=$CFLAGS | |
| 7905 CC=${FC-"f95"} | |
| 7906 CFLAGS=$FCFLAGS | |
| 7907 compiler=$CC | |
| 7908 GCC=$ac_cv_fc_compiler_gnu | |
| 7909 | |
| 7910 _LT_TAGVAR(compiler, $1)=$CC | |
| 7911 _LT_CC_BASENAME([$compiler]) | |
| 7912 | |
| 7913 if test -n "$compiler"; then | |
| 7914 AC_MSG_CHECKING([if libtool supports shared libraries]) | |
| 7915 AC_MSG_RESULT([$can_build_shared]) | |
| 7916 | |
| 7917 AC_MSG_CHECKING([whether to build shared libraries]) | |
| 7918 test no = "$can_build_shared" && enable_shared=no | |
| 7919 | |
| 7920 # On AIX, shared libraries and static libraries use the same namespace, and | |
| 7921 # are all built from PIC. | |
| 7922 case $host_os in | |
| 7923 aix3*) | |
| 7924 test yes = "$enable_shared" && enable_static=no | |
| 7925 if test -n "$RANLIB"; then | |
| 7926 archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
| 7927 postinstall_cmds='$RANLIB $lib' | |
| 7928 fi | |
| 7929 ;; | |
| 7930 aix[[4-9]]*) | |
| 7931 if test ia64 != "$host_cpu"; then | |
| 7932 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in | |
| 7933 yes,aix,yes) ;; # shared object as lib.so file only | |
| 7934 yes,svr4,*) ;; # shared object as lib.so archive member only | |
| 7935 yes,*) enable_static=no ;; # shared object in lib.a archive as well | |
| 7936 esac | |
| 7937 fi | |
| 7938 ;; | |
| 7939 esac | |
| 7940 AC_MSG_RESULT([$enable_shared]) | |
| 7941 | |
| 7942 AC_MSG_CHECKING([whether to build static libraries]) | |
| 7943 # Make sure either enable_shared or enable_static is yes. | |
| 7944 test yes = "$enable_shared" || enable_static=yes | |
| 7945 AC_MSG_RESULT([$enable_static]) | |
| 7946 | |
| 7947 _LT_TAGVAR(GCC, $1)=$ac_cv_fc_compiler_gnu | |
| 7948 _LT_TAGVAR(LD, $1)=$LD | |
| 7949 | |
| 7950 ## CAVEAT EMPTOR: | |
| 7951 ## There is no encapsulation within the following macros, do not change | |
| 7952 ## the running order or otherwise move them around unless you know exactly | |
| 7953 ## what you are doing... | |
| 7954 _LT_SYS_HIDDEN_LIBDEPS($1) | |
| 7955 _LT_COMPILER_PIC($1) | |
| 7956 _LT_COMPILER_C_O($1) | |
| 7957 _LT_COMPILER_FILE_LOCKS($1) | |
| 7958 _LT_LINKER_SHLIBS($1) | |
| 7959 _LT_SYS_DYNAMIC_LINKER($1) | |
| 7960 _LT_LINKER_HARDCODE_LIBPATH($1) | |
| 7961 | |
| 7962 _LT_CONFIG($1) | |
| 7963 fi # test -n "$compiler" | |
| 7964 | |
| 7965 GCC=$lt_save_GCC | |
| 7966 CC=$lt_save_CC | |
| 7967 CFLAGS=$lt_save_CFLAGS | |
| 7968 fi # test yes != "$_lt_disable_FC" | |
| 7969 | |
| 7970 AC_LANG_POP | |
| 7971 ])# _LT_LANG_FC_CONFIG | |
| 7972 | |
| 7973 | |
| 7974 # _LT_LANG_GCJ_CONFIG([TAG]) | |
| 7975 # -------------------------- | |
| 7976 # Ensure that the configuration variables for the GNU Java Compiler compiler | |
| 7977 # are suitably defined. These variables are subsequently used by _LT_CONFIG | |
| 7978 # to write the compiler configuration to 'libtool'. | |
| 7979 m4_defun([_LT_LANG_GCJ_CONFIG], | |
| 7980 [AC_REQUIRE([LT_PROG_GCJ])dnl | |
| 7981 AC_LANG_SAVE | |
| 7982 | |
| 7983 # Source file extension for Java test sources. | |
| 7984 ac_ext=java | |
| 7985 | |
| 7986 # Object file extension for compiled Java test sources. | |
| 7987 objext=o | |
| 7988 _LT_TAGVAR(objext, $1)=$objext | |
| 7989 | |
| 7990 # Code to be used in simple compile tests | |
| 7991 lt_simple_compile_test_code="class foo {}" | |
| 7992 | |
| 7993 # Code to be used in simple link tests | |
| 7994 lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }' | |
| 7995 | |
| 7996 # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
| 7997 _LT_TAG_COMPILER | |
| 7998 | |
| 7999 # save warnings/boilerplate of simple test code | |
| 8000 _LT_COMPILER_BOILERPLATE | |
| 8001 _LT_LINKER_BOILERPLATE | |
| 8002 | |
| 8003 # Allow CC to be a program name with arguments. | |
| 8004 lt_save_CC=$CC | |
| 8005 lt_save_CFLAGS=$CFLAGS | |
| 8006 lt_save_GCC=$GCC | |
| 8007 GCC=yes | |
| 8008 CC=${GCJ-"gcj"} | |
| 8009 CFLAGS=$GCJFLAGS | |
| 8010 compiler=$CC | |
| 8011 _LT_TAGVAR(compiler, $1)=$CC | |
| 8012 _LT_TAGVAR(LD, $1)=$LD | |
| 8013 _LT_CC_BASENAME([$compiler]) | |
| 8014 | |
| 8015 # GCJ did not exist at the time GCC didn't implicitly link libc in. | |
| 8016 _LT_TAGVAR(archive_cmds_need_lc, $1)=no | |
| 8017 | |
| 8018 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds | |
| 8019 _LT_TAGVAR(reload_flag, $1)=$reload_flag | |
| 8020 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds | |
| 8021 | |
| 8022 ## CAVEAT EMPTOR: | |
| 8023 ## There is no encapsulation within the following macros, do not change | |
| 8024 ## the running order or otherwise move them around unless you know exactly | |
| 8025 ## what you are doing... | |
| 8026 if test -n "$compiler"; then | |
| 8027 _LT_COMPILER_NO_RTTI($1) | |
| 8028 _LT_COMPILER_PIC($1) | |
| 8029 _LT_COMPILER_C_O($1) | |
| 8030 _LT_COMPILER_FILE_LOCKS($1) | |
| 8031 _LT_LINKER_SHLIBS($1) | |
| 8032 _LT_LINKER_HARDCODE_LIBPATH($1) | |
| 8033 | |
| 8034 _LT_CONFIG($1) | |
| 8035 fi | |
| 8036 | |
| 8037 AC_LANG_RESTORE | |
| 8038 | |
| 8039 GCC=$lt_save_GCC | |
| 8040 CC=$lt_save_CC | |
| 8041 CFLAGS=$lt_save_CFLAGS | |
| 8042 ])# _LT_LANG_GCJ_CONFIG | |
| 8043 | |
| 8044 | |
| 8045 # _LT_LANG_GO_CONFIG([TAG]) | |
| 8046 # -------------------------- | |
| 8047 # Ensure that the configuration variables for the GNU Go compiler | |
| 8048 # are suitably defined. These variables are subsequently used by _LT_CONFIG | |
| 8049 # to write the compiler configuration to 'libtool'. | |
| 8050 m4_defun([_LT_LANG_GO_CONFIG], | |
| 8051 [AC_REQUIRE([LT_PROG_GO])dnl | |
| 8052 AC_LANG_SAVE | |
| 8053 | |
| 8054 # Source file extension for Go test sources. | |
| 8055 ac_ext=go | |
| 8056 | |
| 8057 # Object file extension for compiled Go test sources. | |
| 8058 objext=o | |
| 8059 _LT_TAGVAR(objext, $1)=$objext | |
| 8060 | |
| 8061 # Code to be used in simple compile tests | |
| 8062 lt_simple_compile_test_code="package main; func main() { }" | |
| 8063 | |
| 8064 # Code to be used in simple link tests | |
| 8065 lt_simple_link_test_code='package main; func main() { }' | |
| 8066 | |
| 8067 # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
| 8068 _LT_TAG_COMPILER | |
| 8069 | |
| 8070 # save warnings/boilerplate of simple test code | |
| 8071 _LT_COMPILER_BOILERPLATE | |
| 8072 _LT_LINKER_BOILERPLATE | |
| 8073 | |
| 8074 # Allow CC to be a program name with arguments. | |
| 8075 lt_save_CC=$CC | |
| 8076 lt_save_CFLAGS=$CFLAGS | |
| 8077 lt_save_GCC=$GCC | |
| 8078 GCC=yes | |
| 8079 CC=${GOC-"gccgo"} | |
| 8080 CFLAGS=$GOFLAGS | |
| 8081 compiler=$CC | |
| 8082 _LT_TAGVAR(compiler, $1)=$CC | |
| 8083 _LT_TAGVAR(LD, $1)=$LD | |
| 8084 _LT_CC_BASENAME([$compiler]) | |
| 8085 | |
| 8086 # Go did not exist at the time GCC didn't implicitly link libc in. | |
| 8087 _LT_TAGVAR(archive_cmds_need_lc, $1)=no | |
| 8088 | |
| 8089 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds | |
| 8090 _LT_TAGVAR(reload_flag, $1)=$reload_flag | |
| 8091 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds | |
| 8092 | |
| 8093 ## CAVEAT EMPTOR: | |
| 8094 ## There is no encapsulation within the following macros, do not change | |
| 8095 ## the running order or otherwise move them around unless you know exactly | |
| 8096 ## what you are doing... | |
| 8097 if test -n "$compiler"; then | |
| 8098 _LT_COMPILER_NO_RTTI($1) | |
| 8099 _LT_COMPILER_PIC($1) | |
| 8100 _LT_COMPILER_C_O($1) | |
| 8101 _LT_COMPILER_FILE_LOCKS($1) | |
| 8102 _LT_LINKER_SHLIBS($1) | |
| 8103 _LT_LINKER_HARDCODE_LIBPATH($1) | |
| 8104 | |
| 8105 _LT_CONFIG($1) | |
| 8106 fi | |
| 8107 | |
| 8108 AC_LANG_RESTORE | |
| 8109 | |
| 8110 GCC=$lt_save_GCC | |
| 8111 CC=$lt_save_CC | |
| 8112 CFLAGS=$lt_save_CFLAGS | |
| 8113 ])# _LT_LANG_GO_CONFIG | |
| 8114 | |
| 8115 | |
| 8116 # _LT_LANG_RC_CONFIG([TAG]) | |
| 8117 # ------------------------- | |
| 8118 # Ensure that the configuration variables for the Windows resource compiler | |
| 8119 # are suitably defined. These variables are subsequently used by _LT_CONFIG | |
| 8120 # to write the compiler configuration to 'libtool'. | |
| 8121 m4_defun([_LT_LANG_RC_CONFIG], | |
| 8122 [AC_REQUIRE([LT_PROG_RC])dnl | |
| 8123 AC_LANG_SAVE | |
| 8124 | |
| 8125 # Source file extension for RC test sources. | |
| 8126 ac_ext=rc | |
| 8127 | |
| 8128 # Object file extension for compiled RC test sources. | |
| 8129 objext=o | |
| 8130 _LT_TAGVAR(objext, $1)=$objext | |
| 8131 | |
| 8132 # Code to be used in simple compile tests | |
| 8133 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' | |
| 8134 | |
| 8135 # Code to be used in simple link tests | |
| 8136 lt_simple_link_test_code=$lt_simple_compile_test_code | |
| 8137 | |
| 8138 # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
| 8139 _LT_TAG_COMPILER | |
| 8140 | |
| 8141 # save warnings/boilerplate of simple test code | |
| 8142 _LT_COMPILER_BOILERPLATE | |
| 8143 _LT_LINKER_BOILERPLATE | |
| 8144 | |
| 8145 # Allow CC to be a program name with arguments. | |
| 8146 lt_save_CC=$CC | |
| 8147 lt_save_CFLAGS=$CFLAGS | |
| 8148 lt_save_GCC=$GCC | |
| 8149 GCC= | |
| 8150 CC=${RC-"windres"} | |
| 8151 CFLAGS= | |
| 8152 compiler=$CC | |
| 8153 _LT_TAGVAR(compiler, $1)=$CC | |
| 8154 _LT_CC_BASENAME([$compiler]) | |
| 8155 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes | |
| 8156 | |
| 8157 if test -n "$compiler"; then | |
| 8158 : | |
| 8159 _LT_CONFIG($1) | |
| 8160 fi | |
| 8161 | |
| 8162 GCC=$lt_save_GCC | |
| 8163 AC_LANG_RESTORE | |
| 8164 CC=$lt_save_CC | |
| 8165 CFLAGS=$lt_save_CFLAGS | |
| 8166 ])# _LT_LANG_RC_CONFIG | |
| 8167 | |
| 8168 | |
| 8169 # LT_PROG_GCJ | |
| 8170 # ----------- | |
| 8171 AC_DEFUN([LT_PROG_GCJ], | |
| 8172 [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ], | |
| 8173 [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ], | |
| 8174 [AC_CHECK_TOOL(GCJ, gcj,) | |
| 8175 test set = "${GCJFLAGS+set}" || GCJFLAGS="-g -O2" | |
| 8176 AC_SUBST(GCJFLAGS)])])[]dnl | |
| 8177 ]) | |
| 8178 | |
| 8179 # Old name: | |
| 8180 AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ]) | |
| 8181 dnl aclocal-1.4 backwards compatibility: | |
| 8182 dnl AC_DEFUN([LT_AC_PROG_GCJ], []) | |
| 8183 | |
| 8184 | |
| 8185 # LT_PROG_GO | |
| 8186 # ---------- | |
| 8187 AC_DEFUN([LT_PROG_GO], | |
| 8188 [AC_CHECK_TOOL(GOC, gccgo,) | |
| 8189 ]) | |
| 8190 | |
| 8191 | |
| 8192 # LT_PROG_RC | |
| 8193 # ---------- | |
| 8194 AC_DEFUN([LT_PROG_RC], | |
| 8195 [AC_CHECK_TOOL(RC, windres,) | |
| 8196 ]) | |
| 8197 | |
| 8198 # Old name: | |
| 8199 AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC]) | |
| 8200 dnl aclocal-1.4 backwards compatibility: | |
| 8201 dnl AC_DEFUN([LT_AC_PROG_RC], []) | |
| 8202 | |
| 8203 | |
| 8204 # _LT_DECL_EGREP | |
| 8205 # -------------- | |
| 8206 # If we don't have a new enough Autoconf to choose the best grep | |
| 8207 # available, choose the one first in the user's PATH. | |
| 8208 m4_defun([_LT_DECL_EGREP], | |
| 8209 [AC_REQUIRE([AC_PROG_EGREP])dnl | |
| 8210 AC_REQUIRE([AC_PROG_FGREP])dnl | |
| 8211 test -z "$GREP" && GREP=grep | |
| 8212 _LT_DECL([], [GREP], [1], [A grep program that handles long lines]) | |
| 8213 _LT_DECL([], [EGREP], [1], [An ERE matcher]) | |
| 8214 _LT_DECL([], [FGREP], [1], [A literal string matcher]) | |
| 8215 dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too | |
| 8216 AC_SUBST([GREP]) | |
| 8217 ]) | |
| 8218 | |
| 8219 | |
| 8220 # _LT_DECL_OBJDUMP | |
| 8221 # -------------- | |
| 8222 # If we don't have a new enough Autoconf to choose the best objdump | |
| 8223 # available, choose the one first in the user's PATH. | |
| 8224 m4_defun([_LT_DECL_OBJDUMP], | |
| 8225 [AC_CHECK_TOOL(OBJDUMP, objdump, false) | |
| 8226 test -z "$OBJDUMP" && OBJDUMP=objdump | |
| 8227 _LT_DECL([], [OBJDUMP], [1], [An object symbol dumper]) | |
| 8228 AC_SUBST([OBJDUMP]) | |
| 8229 ]) | |
| 8230 | |
| 8231 # _LT_DECL_DLLTOOL | |
| 8232 # ---------------- | |
| 8233 # Ensure DLLTOOL variable is set. | |
| 8234 m4_defun([_LT_DECL_DLLTOOL], | |
| 8235 [AC_CHECK_TOOL(DLLTOOL, dlltool, false) | |
| 8236 test -z "$DLLTOOL" && DLLTOOL=dlltool | |
| 8237 _LT_DECL([], [DLLTOOL], [1], [DLL creation program]) | |
| 8238 AC_SUBST([DLLTOOL]) | |
| 8239 ]) | |
| 8240 | |
| 8241 # _LT_DECL_FILECMD | |
| 8242 # ---------------- | |
| 8243 # Check for a file(cmd) program that can be used to detect file type and magic | |
| 8244 m4_defun([_LT_DECL_FILECMD], | |
| 8245 [AC_CHECK_TOOL([FILECMD], [file], [:]) | |
| 8246 _LT_DECL([], [FILECMD], [1], [A file(cmd) program that detects file types]) | |
| 8247 ])# _LD_DECL_FILECMD | |
| 8248 | |
| 8249 # _LT_DECL_SED | |
| 8250 # ------------ | |
| 8251 # Check for a fully-functional sed program, that truncates | |
| 8252 # as few characters as possible. Prefer GNU sed if found. | |
| 8253 m4_defun([_LT_DECL_SED], | |
| 8254 [AC_PROG_SED | |
| 8255 test -z "$SED" && SED=sed | |
| 8256 Xsed="$SED -e 1s/^X//" | |
| 8257 _LT_DECL([], [SED], [1], [A sed program that does not truncate output]) | |
| 8258 _LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"], | |
| 8259 [Sed that helps us avoid accidentally triggering echo(1) options like -n]) | |
| 8260 ])# _LT_DECL_SED | |
| 8261 | |
| 8262 m4_ifndef([AC_PROG_SED], [ | |
| 8263 ############################################################ | |
| 8264 # NOTE: This macro has been submitted for inclusion into # | |
| 8265 # GNU Autoconf as AC_PROG_SED. When it is available in # | |
| 8266 # a released version of Autoconf we should remove this # | |
| 8267 # macro and use it instead. # | |
| 8268 ############################################################ | |
| 8269 | |
| 8270 m4_defun([AC_PROG_SED], | |
| 8271 [AC_MSG_CHECKING([for a sed that does not truncate output]) | |
| 8272 AC_CACHE_VAL(lt_cv_path_SED, | |
| 8273 [# Loop through the user's path and test for sed and gsed. | |
| 8274 # Then use that list of sed's as ones to test for truncation. | |
| 8275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
| 8276 for as_dir in $PATH | |
| 8277 do | |
| 8278 IFS=$as_save_IFS | |
| 8279 test -z "$as_dir" && as_dir=. | |
| 8280 for lt_ac_prog in sed gsed; do | |
| 8281 for ac_exec_ext in '' $ac_executable_extensions; do | |
| 8282 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then | |
| 8283 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" | |
| 8284 fi | |
| 8285 done | |
| 8286 done | |
| 8287 done | |
| 8288 IFS=$as_save_IFS | |
| 8289 lt_ac_max=0 | |
| 8290 lt_ac_count=0 | |
| 8291 # Add /usr/xpg4/bin/sed as it is typically found on Solaris | |
| 8292 # along with /bin/sed that truncates output. | |
| 8293 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do | |
| 8294 test ! -f "$lt_ac_sed" && continue | |
| 8295 cat /dev/null > conftest.in | |
| 8296 lt_ac_count=0 | |
| 8297 echo $ECHO_N "0123456789$ECHO_C" >conftest.in | |
| 8298 # Check for GNU sed and select it if it is found. | |
| 8299 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then | |
| 8300 lt_cv_path_SED=$lt_ac_sed | |
| 8301 break | |
| 8302 fi | |
| 8303 while true; do | |
| 8304 cat conftest.in conftest.in >conftest.tmp | |
| 8305 mv conftest.tmp conftest.in | |
| 8306 cp conftest.in conftest.nl | |
| 8307 echo >>conftest.nl | |
| 8308 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break | |
| 8309 cmp -s conftest.out conftest.nl || break | |
| 8310 # 10000 chars as input seems more than enough | |
| 8311 test 10 -lt "$lt_ac_count" && break | |
| 8312 lt_ac_count=`expr $lt_ac_count + 1` | |
| 8313 if test "$lt_ac_count" -gt "$lt_ac_max"; then | |
| 8314 lt_ac_max=$lt_ac_count | |
| 8315 lt_cv_path_SED=$lt_ac_sed | |
| 8316 fi | |
| 8317 done | |
| 8318 done | |
| 8319 ]) | |
| 8320 SED=$lt_cv_path_SED | |
| 8321 AC_SUBST([SED]) | |
| 8322 AC_MSG_RESULT([$SED]) | |
| 8323 ])#AC_PROG_SED | |
| 8324 ])#m4_ifndef | |
| 8325 | |
| 8326 # Old name: | |
| 8327 AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED]) | |
| 8328 dnl aclocal-1.4 backwards compatibility: | |
| 8329 dnl AC_DEFUN([LT_AC_PROG_SED], []) | |
| 8330 | |
| 8331 | |
| 8332 # _LT_CHECK_SHELL_FEATURES | |
| 8333 # ------------------------ | |
| 8334 # Find out whether the shell is Bourne or XSI compatible, | |
| 8335 # or has some other useful features. | |
| 8336 m4_defun([_LT_CHECK_SHELL_FEATURES], | |
| 8337 [if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
| 8338 lt_unset=unset | |
| 8339 else | |
| 8340 lt_unset=false | |
| 8341 fi | |
| 8342 _LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl | |
| 8343 | |
| 8344 # test EBCDIC or ASCII | |
| 8345 case `echo X|tr X '\101'` in | |
| 8346 A) # ASCII based system | |
| 8347 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
| 8348 lt_SP2NL='tr \040 \012' | |
| 8349 lt_NL2SP='tr \015\012 \040\040' | |
| 8350 ;; | |
| 8351 *) # EBCDIC based system | |
| 8352 lt_SP2NL='tr \100 \n' | |
| 8353 lt_NL2SP='tr \r\n \100\100' | |
| 8354 ;; | |
| 8355 esac | |
| 8356 _LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl | |
| 8357 _LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl | |
| 8358 ])# _LT_CHECK_SHELL_FEATURES | |
| 8359 | |
| 8360 | |
| 8361 # _LT_PATH_CONVERSION_FUNCTIONS | |
| 8362 # ----------------------------- | |
| 8363 # Determine what file name conversion functions should be used by | |
| 8364 # func_to_host_file (and, implicitly, by func_to_host_path). These are needed | |
| 8365 # for certain cross-compile configurations and native mingw. | |
| 8366 m4_defun([_LT_PATH_CONVERSION_FUNCTIONS], | |
| 8367 [AC_REQUIRE([AC_CANONICAL_HOST])dnl | |
| 8368 AC_REQUIRE([AC_CANONICAL_BUILD])dnl | |
| 8369 AC_MSG_CHECKING([how to convert $build file names to $host format]) | |
| 8370 AC_CACHE_VAL(lt_cv_to_host_file_cmd, | |
| 8371 [case $host in | |
| 8372 *-*-mingw* ) | |
| 8373 case $build in | |
| 8374 *-*-mingw* ) # actually msys | |
| 8375 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 | |
| 8376 ;; | |
| 8377 *-*-cygwin* ) | |
| 8378 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 | |
| 8379 ;; | |
| 8380 * ) # otherwise, assume *nix | |
| 8381 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 | |
| 8382 ;; | |
| 8383 esac | |
| 8384 ;; | |
| 8385 *-*-cygwin* ) | |
| 8386 case $build in | |
| 8387 *-*-mingw* ) # actually msys | |
| 8388 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin | |
| 8389 ;; | |
| 8390 *-*-cygwin* ) | |
| 8391 lt_cv_to_host_file_cmd=func_convert_file_noop | |
| 8392 ;; | |
| 8393 * ) # otherwise, assume *nix | |
| 8394 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin | |
| 8395 ;; | |
| 8396 esac | |
| 8397 ;; | |
| 8398 * ) # unhandled hosts (and "normal" native builds) | |
| 8399 lt_cv_to_host_file_cmd=func_convert_file_noop | |
| 8400 ;; | |
| 8401 esac | |
| 8402 ]) | |
| 8403 to_host_file_cmd=$lt_cv_to_host_file_cmd | |
| 8404 AC_MSG_RESULT([$lt_cv_to_host_file_cmd]) | |
| 8405 _LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd], | |
| 8406 [0], [convert $build file names to $host format])dnl | |
| 8407 | |
| 8408 AC_MSG_CHECKING([how to convert $build file names to toolchain format]) | |
| 8409 AC_CACHE_VAL(lt_cv_to_tool_file_cmd, | |
| 8410 [#assume ordinary cross tools, or native build. | |
| 8411 lt_cv_to_tool_file_cmd=func_convert_file_noop | |
| 8412 case $host in | |
| 8413 *-*-mingw* ) | |
| 8414 case $build in | |
| 8415 *-*-mingw* ) # actually msys | |
| 8416 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 | |
| 8417 ;; | |
| 8418 esac | |
| 8419 ;; | |
| 8420 esac | |
| 8421 ]) | |
| 8422 to_tool_file_cmd=$lt_cv_to_tool_file_cmd | |
| 8423 AC_MSG_RESULT([$lt_cv_to_tool_file_cmd]) | |
| 8424 _LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd], | |
| 8425 [0], [convert $build files to toolchain format])dnl | |
| 8426 ])# _LT_PATH_CONVERSION_FUNCTIONS |
