| OLD | NEW |
| 1 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- | 1 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- |
| 2 # | 2 # |
| 3 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | 3 # Copyright (C) 1996-2001, 2003-2015 Free Software Foundation, Inc. |
| 4 # 2006, 2007, 2008 Free Software Foundation, Inc. | |
| 5 # Written by Gordon Matzigkeit, 1996 | 4 # Written by Gordon Matzigkeit, 1996 |
| 6 # | 5 # |
| 7 # This file is free software; the Free Software Foundation gives | 6 # This file is free software; the Free Software Foundation gives |
| 8 # unlimited permission to copy and/or distribute it, with or without | 7 # unlimited permission to copy and/or distribute it, with or without |
| 9 # modifications, as long as this notice is preserved. | 8 # modifications, as long as this notice is preserved. |
| 10 | 9 |
| 11 m4_define([_LT_COPYING], [dnl | 10 m4_define([_LT_COPYING], [dnl |
| 12 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | 11 # Copyright (C) 2014 Free Software Foundation, Inc. |
| 13 # 2006, 2007, 2008 Free Software Foundation, Inc. | 12 # This is free software; see the source for copying conditions. There is NO |
| 14 # Written by Gordon Matzigkeit, 1996 | 13 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| 14 |
| 15 # GNU Libtool is free software; you can redistribute it and/or modify |
| 16 # it under the terms of the GNU General Public License as published by |
| 17 # the Free Software Foundation; either version 2 of of the License, or |
| 18 # (at your option) any later version. |
| 15 # | 19 # |
| 16 # This file is part of GNU Libtool. | 20 # As a special exception to the GNU General Public License, if you |
| 21 # distribute this file as part of a program or library that is built |
| 22 # using GNU Libtool, you may include this file under the same |
| 23 # distribution terms that you use for the rest of that program. |
| 17 # | 24 # |
| 18 # GNU Libtool is free software; you can redistribute it and/or | 25 # GNU Libtool is distributed in the hope that it will be useful, but |
| 19 # modify it under the terms of the GNU General Public License as | 26 # WITHOUT ANY WARRANTY; without even the implied warranty of |
| 20 # published by the Free Software Foundation; either version 2 of | |
| 21 # the License, or (at your option) any later version. | |
| 22 # | |
| 23 # As a special exception to the GNU General Public License, | |
| 24 # if you distribute this file as part of a program or library that | |
| 25 # is built using GNU Libtool, you may include this file under the | |
| 26 # same distribution terms that you use for the rest of that program. | |
| 27 # | |
| 28 # GNU Libtool is distributed in the hope that it will be useful, | |
| 29 # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 30 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 27 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 31 # GNU General Public License for more details. | 28 # GNU General Public License for more details. |
| 32 # | 29 # |
| 33 # You should have received a copy of the GNU General Public License | 30 # You should have received a copy of the GNU General Public License |
| 34 # along with GNU Libtool; see the file COPYING. If not, a copy | 31 # along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 35 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | |
| 36 # obtained by writing to the Free Software Foundation, Inc., | |
| 37 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
| 38 ]) | 32 ]) |
| 39 | 33 |
| 40 # serial 56 LT_INIT | 34 # serial 58 LT_INIT |
| 41 | 35 |
| 42 | 36 |
| 43 # LT_PREREQ(VERSION) | 37 # LT_PREREQ(VERSION) |
| 44 # ------------------ | 38 # ------------------ |
| 45 # Complain and exit if this libtool version is less that VERSION. | 39 # Complain and exit if this libtool version is less that VERSION. |
| 46 m4_defun([LT_PREREQ], | 40 m4_defun([LT_PREREQ], |
| 47 [m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1, | 41 [m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1, |
| 48 [m4_default([$3], | 42 [m4_default([$3], |
| 49 [m4_fatal([Libtool version $1 or higher is required], | 43 [m4_fatal([Libtool version $1 or higher is required], |
| 50 63)])], | 44 63)])], |
| 51 [$2])]) | 45 [$2])]) |
| 52 | 46 |
| 53 | 47 |
| 54 # _LT_CHECK_BUILDDIR | 48 # _LT_CHECK_BUILDDIR |
| 55 # ------------------ | 49 # ------------------ |
| 56 # Complain if the absolute build directory name contains unusual characters | 50 # Complain if the absolute build directory name contains unusual characters |
| 57 m4_defun([_LT_CHECK_BUILDDIR], | 51 m4_defun([_LT_CHECK_BUILDDIR], |
| 58 [case `pwd` in | 52 [case `pwd` in |
| 59 *\ * | *\ *) | 53 *\ * | *\ *) |
| 60 AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;; | 54 AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;; |
| 61 esac | 55 esac |
| 62 ]) | 56 ]) |
| 63 | 57 |
| 64 | 58 |
| 65 # LT_INIT([OPTIONS]) | 59 # LT_INIT([OPTIONS]) |
| 66 # ------------------ | 60 # ------------------ |
| 67 AC_DEFUN([LT_INIT], | 61 AC_DEFUN([LT_INIT], |
| 68 [AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT | 62 [AC_PREREQ([2.62])dnl We use AC_PATH_PROGS_FEATURE_CHECK |
| 63 AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl |
| 69 AC_BEFORE([$0], [LT_LANG])dnl | 64 AC_BEFORE([$0], [LT_LANG])dnl |
| 70 AC_BEFORE([$0], [LT_OUTPUT])dnl | 65 AC_BEFORE([$0], [LT_OUTPUT])dnl |
| 71 AC_BEFORE([$0], [LTDL_INIT])dnl | 66 AC_BEFORE([$0], [LTDL_INIT])dnl |
| 72 m4_require([_LT_CHECK_BUILDDIR])dnl | 67 m4_require([_LT_CHECK_BUILDDIR])dnl |
| 73 | 68 |
| 74 dnl Autoconf doesn't catch unexpanded LT_ macros by default: | 69 dnl Autoconf doesn't catch unexpanded LT_ macros by default: |
| 75 m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl | 70 m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl |
| 76 m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl | 71 m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl |
| 77 dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4 | 72 dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4 |
| 78 dnl unless we require an AC_DEFUNed macro: | 73 dnl unless we require an AC_DEFUNed macro: |
| 79 AC_REQUIRE([LTOPTIONS_VERSION])dnl | 74 AC_REQUIRE([LTOPTIONS_VERSION])dnl |
| 80 AC_REQUIRE([LTSUGAR_VERSION])dnl | 75 AC_REQUIRE([LTSUGAR_VERSION])dnl |
| 81 AC_REQUIRE([LTVERSION_VERSION])dnl | 76 AC_REQUIRE([LTVERSION_VERSION])dnl |
| 82 AC_REQUIRE([LTOBSOLETE_VERSION])dnl | 77 AC_REQUIRE([LTOBSOLETE_VERSION])dnl |
| 83 m4_require([_LT_PROG_LTMAIN])dnl | 78 m4_require([_LT_PROG_LTMAIN])dnl |
| 84 | 79 |
| 80 _LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}]) |
| 81 |
| 85 dnl Parse OPTIONS | 82 dnl Parse OPTIONS |
| 86 _LT_SET_OPTIONS([$0], [$1]) | 83 _LT_SET_OPTIONS([$0], [$1]) |
| 87 | 84 |
| 88 # This can be used to rebuild libtool when needed | 85 # This can be used to rebuild libtool when needed |
| 89 LIBTOOL_DEPS="$ltmain" | 86 LIBTOOL_DEPS=$ltmain |
| 90 | 87 |
| 91 # Always use our own libtool. | 88 # Always use our own libtool. |
| 92 LIBTOOL='$(SHELL) $(top_builddir)/libtool' | 89 LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
| 93 AC_SUBST(LIBTOOL)dnl | 90 AC_SUBST(LIBTOOL)dnl |
| 94 | 91 |
| 95 _LT_SETUP | 92 _LT_SETUP |
| 96 | 93 |
| 97 # Only expand once: | 94 # Only expand once: |
| 98 m4_define([LT_INIT]) | 95 m4_define([LT_INIT]) |
| 99 ])# LT_INIT | 96 ])# LT_INIT |
| 100 | 97 |
| 101 # Old names: | 98 # Old names: |
| 102 AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT]) | 99 AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT]) |
| 103 AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT]) | 100 AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT]) |
| 104 dnl aclocal-1.4 backwards compatibility: | 101 dnl aclocal-1.4 backwards compatibility: |
| 105 dnl AC_DEFUN([AC_PROG_LIBTOOL], []) | 102 dnl AC_DEFUN([AC_PROG_LIBTOOL], []) |
| 106 dnl AC_DEFUN([AM_PROG_LIBTOOL], []) | 103 dnl AC_DEFUN([AM_PROG_LIBTOOL], []) |
| 107 | 104 |
| 108 | 105 |
| 106 # _LT_PREPARE_CC_BASENAME |
| 107 # ----------------------- |
| 108 m4_defun([_LT_PREPARE_CC_BASENAME], [ |
| 109 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. |
| 110 func_cc_basename () |
| 111 { |
| 112 for cc_temp in @S|@*""; do |
| 113 case $cc_temp in |
| 114 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; |
| 115 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; |
| 116 \-*) ;; |
| 117 *) break;; |
| 118 esac |
| 119 done |
| 120 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%
"` |
| 121 } |
| 122 ])# _LT_PREPARE_CC_BASENAME |
| 123 |
| 124 |
| 109 # _LT_CC_BASENAME(CC) | 125 # _LT_CC_BASENAME(CC) |
| 110 # ------------------- | 126 # ------------------- |
| 111 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. | 127 # It would be clearer to call AC_REQUIREs from _LT_PREPARE_CC_BASENAME, |
| 128 # but that macro is also expanded into generated libtool script, which |
| 129 # arranges for $SED and $ECHO to be set by different means. |
| 112 m4_defun([_LT_CC_BASENAME], | 130 m4_defun([_LT_CC_BASENAME], |
| 113 [for cc_temp in $1""; do | 131 [m4_require([_LT_PREPARE_CC_BASENAME])dnl |
| 114 case $cc_temp in | 132 AC_REQUIRE([_LT_DECL_SED])dnl |
| 115 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; | 133 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl |
| 116 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; | 134 func_cc_basename $1 |
| 117 \-*) ;; | 135 cc_basename=$func_cc_basename_result |
| 118 *) break;; | |
| 119 esac | |
| 120 done | |
| 121 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
| 122 ]) | 136 ]) |
| 123 | 137 |
| 124 | 138 |
| 125 # _LT_FILEUTILS_DEFAULTS | 139 # _LT_FILEUTILS_DEFAULTS |
| 126 # ---------------------- | 140 # ---------------------- |
| 127 # It is okay to use these file commands and assume they have been set | 141 # It is okay to use these file commands and assume they have been set |
| 128 # sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'. | 142 # sensibly after 'm4_require([_LT_FILEUTILS_DEFAULTS])'. |
| 129 m4_defun([_LT_FILEUTILS_DEFAULTS], | 143 m4_defun([_LT_FILEUTILS_DEFAULTS], |
| 130 [: ${CP="cp -f"} | 144 [: ${CP="cp -f"} |
| 131 : ${MV="mv -f"} | 145 : ${MV="mv -f"} |
| 132 : ${RM="rm -f"} | 146 : ${RM="rm -f"} |
| 133 ])# _LT_FILEUTILS_DEFAULTS | 147 ])# _LT_FILEUTILS_DEFAULTS |
| 134 | 148 |
| 135 | 149 |
| 136 # _LT_SETUP | 150 # _LT_SETUP |
| 137 # --------- | 151 # --------- |
| 138 m4_defun([_LT_SETUP], | 152 m4_defun([_LT_SETUP], |
| 139 [AC_REQUIRE([AC_CANONICAL_HOST])dnl | 153 [AC_REQUIRE([AC_CANONICAL_HOST])dnl |
| 140 AC_REQUIRE([AC_CANONICAL_BUILD])dnl | 154 AC_REQUIRE([AC_CANONICAL_BUILD])dnl |
| 155 AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl |
| 156 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl |
| 157 |
| 158 _LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dn
l |
| 159 dnl |
| 141 _LT_DECL([], [host_alias], [0], [The host system])dnl | 160 _LT_DECL([], [host_alias], [0], [The host system])dnl |
| 142 _LT_DECL([], [host], [0])dnl | 161 _LT_DECL([], [host], [0])dnl |
| 143 _LT_DECL([], [host_os], [0])dnl | 162 _LT_DECL([], [host_os], [0])dnl |
| 144 dnl | 163 dnl |
| 145 _LT_DECL([], [build_alias], [0], [The build system])dnl | 164 _LT_DECL([], [build_alias], [0], [The build system])dnl |
| 146 _LT_DECL([], [build], [0])dnl | 165 _LT_DECL([], [build], [0])dnl |
| 147 _LT_DECL([], [build_os], [0])dnl | 166 _LT_DECL([], [build_os], [0])dnl |
| 148 dnl | 167 dnl |
| 149 AC_REQUIRE([AC_PROG_CC])dnl | 168 AC_REQUIRE([AC_PROG_CC])dnl |
| 150 AC_REQUIRE([LT_PATH_LD])dnl | 169 AC_REQUIRE([LT_PATH_LD])dnl |
| 151 AC_REQUIRE([LT_PATH_NM])dnl | 170 AC_REQUIRE([LT_PATH_NM])dnl |
| 152 dnl | 171 dnl |
| 153 AC_REQUIRE([AC_PROG_LN_S])dnl | 172 AC_REQUIRE([AC_PROG_LN_S])dnl |
| 154 test -z "$LN_S" && LN_S="ln -s" | 173 test -z "$LN_S" && LN_S="ln -s" |
| 155 _LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl | 174 _LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl |
| 156 dnl | 175 dnl |
| 157 AC_REQUIRE([LT_CMD_MAX_LEN])dnl | 176 AC_REQUIRE([LT_CMD_MAX_LEN])dnl |
| 158 _LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl | 177 _LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl |
| 159 _LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl | 178 _LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl |
| 160 dnl | 179 dnl |
| 161 m4_require([_LT_FILEUTILS_DEFAULTS])dnl | 180 m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
| 162 m4_require([_LT_CHECK_SHELL_FEATURES])dnl | 181 m4_require([_LT_CHECK_SHELL_FEATURES])dnl |
| 182 m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl |
| 163 m4_require([_LT_CMD_RELOAD])dnl | 183 m4_require([_LT_CMD_RELOAD])dnl |
| 164 m4_require([_LT_CHECK_MAGIC_METHOD])dnl | 184 m4_require([_LT_CHECK_MAGIC_METHOD])dnl |
| 185 m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl |
| 165 m4_require([_LT_CMD_OLD_ARCHIVE])dnl | 186 m4_require([_LT_CMD_OLD_ARCHIVE])dnl |
| 166 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl | 187 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl |
| 188 m4_require([_LT_WITH_SYSROOT])dnl |
| 189 m4_require([_LT_CMD_TRUNCATE])dnl |
| 167 | 190 |
| 168 _LT_CONFIG_LIBTOOL_INIT([ | 191 _LT_CONFIG_LIBTOOL_INIT([ |
| 169 # See if we are running on zsh, and set the options which allow our | 192 # See if we are running on zsh, and set the options that allow our |
| 170 # commands through without removal of \ escapes INIT. | 193 # commands through without removal of \ escapes INIT. |
| 171 if test -n "\${ZSH_VERSION+set}" ; then | 194 if test -n "\${ZSH_VERSION+set}"; then |
| 172 setopt NO_GLOB_SUBST | 195 setopt NO_GLOB_SUBST |
| 173 fi | 196 fi |
| 174 ]) | 197 ]) |
| 175 if test -n "${ZSH_VERSION+set}" ; then | 198 if test -n "${ZSH_VERSION+set}"; then |
| 176 setopt NO_GLOB_SUBST | 199 setopt NO_GLOB_SUBST |
| 177 fi | 200 fi |
| 178 | 201 |
| 179 _LT_CHECK_OBJDIR | 202 _LT_CHECK_OBJDIR |
| 180 | 203 |
| 181 m4_require([_LT_TAG_COMPILER])dnl | 204 m4_require([_LT_TAG_COMPILER])dnl |
| 182 _LT_PROG_ECHO_BACKSLASH | |
| 183 | 205 |
| 184 case $host_os in | 206 case $host_os in |
| 185 aix3*) | 207 aix3*) |
| 186 # AIX sometimes has problems with the GCC collect2 program. For some | 208 # AIX sometimes has problems with the GCC collect2 program. For some |
| 187 # reason, if we set the COLLECT_NAMES environment variable, the problems | 209 # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 188 # vanish in a puff of smoke. | 210 # vanish in a puff of smoke. |
| 189 if test "X${COLLECT_NAMES+set}" != Xset; then | 211 if test set != "${COLLECT_NAMES+set}"; then |
| 190 COLLECT_NAMES= | 212 COLLECT_NAMES= |
| 191 export COLLECT_NAMES | 213 export COLLECT_NAMES |
| 192 fi | 214 fi |
| 193 ;; | 215 ;; |
| 194 esac | 216 esac |
| 195 | 217 |
| 196 # Sed substitution that helps us do robust quoting. It backslashifies | |
| 197 # metacharacters that are still active within double-quoted strings. | |
| 198 sed_quote_subst='s/\([["`$\\]]\)/\\\1/g' | |
| 199 | |
| 200 # Same as above, but do not quote variable references. | |
| 201 double_quote_subst='s/\([["`\\]]\)/\\\1/g' | |
| 202 | |
| 203 # Sed substitution to delay expansion of an escaped shell variable in a | |
| 204 # double_quote_subst'ed string. | |
| 205 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
| 206 | |
| 207 # Sed substitution to delay expansion of an escaped single quote. | |
| 208 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
| 209 | |
| 210 # Sed substitution to avoid accidental globbing in evaled expressions | |
| 211 no_glob_subst='s/\*/\\\*/g' | |
| 212 | |
| 213 # Global variables: | 218 # Global variables: |
| 214 ofile=libtool | 219 ofile=libtool |
| 215 can_build_shared=yes | 220 can_build_shared=yes |
| 216 | 221 |
| 217 # All known linkers require a `.a' archive for static linking (except MSVC, | 222 # All known linkers require a '.a' archive for static linking (except MSVC, |
| 218 # which needs '.lib'). | 223 # which needs '.lib'). |
| 219 libext=a | 224 libext=a |
| 220 | 225 |
| 221 with_gnu_ld="$lt_cv_prog_gnu_ld" | 226 with_gnu_ld=$lt_cv_prog_gnu_ld |
| 222 | 227 |
| 223 old_CC="$CC" | 228 old_CC=$CC |
| 224 old_CFLAGS="$CFLAGS" | 229 old_CFLAGS=$CFLAGS |
| 225 | 230 |
| 226 # Set sane defaults for various variables | 231 # Set sane defaults for various variables |
| 227 test -z "$CC" && CC=cc | 232 test -z "$CC" && CC=cc |
| 228 test -z "$LTCC" && LTCC=$CC | 233 test -z "$LTCC" && LTCC=$CC |
| 229 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | 234 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
| 230 test -z "$LD" && LD=ld | 235 test -z "$LD" && LD=ld |
| 231 test -z "$ac_objext" && ac_objext=o | 236 test -z "$ac_objext" && ac_objext=o |
| 232 | 237 |
| 233 _LT_CC_BASENAME([$compiler]) | 238 _LT_CC_BASENAME([$compiler]) |
| 234 | 239 |
| 235 # Only perform the check for file, if the check method requires it | 240 # Only perform the check for file, if the check method requires it |
| 236 test -z "$MAGIC_CMD" && MAGIC_CMD=file | 241 test -z "$MAGIC_CMD" && MAGIC_CMD=file |
| 237 case $deplibs_check_method in | 242 case $deplibs_check_method in |
| 238 file_magic*) | 243 file_magic*) |
| 239 if test "$file_magic_cmd" = '$MAGIC_CMD'; then | 244 if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
| 240 _LT_PATH_MAGIC | 245 _LT_PATH_MAGIC |
| 241 fi | 246 fi |
| 242 ;; | 247 ;; |
| 243 esac | 248 esac |
| 244 | 249 |
| 245 # Use C for the default configuration in the libtool script | 250 # Use C for the default configuration in the libtool script |
| 246 LT_SUPPORTED_TAG([CC]) | 251 LT_SUPPORTED_TAG([CC]) |
| 247 _LT_LANG_C_CONFIG | 252 _LT_LANG_C_CONFIG |
| 248 _LT_LANG_DEFAULT_CONFIG | 253 _LT_LANG_DEFAULT_CONFIG |
| 249 _LT_CONFIG_COMMANDS | 254 _LT_CONFIG_COMMANDS |
| 250 ])# _LT_SETUP | 255 ])# _LT_SETUP |
| 251 | 256 |
| 252 | 257 |
| 258 # _LT_PREPARE_SED_QUOTE_VARS |
| 259 # -------------------------- |
| 260 # Define a few sed substitution that help us do robust quoting. |
| 261 m4_defun([_LT_PREPARE_SED_QUOTE_VARS], |
| 262 [# Backslashify metacharacters that are still active within |
| 263 # double-quoted strings. |
| 264 sed_quote_subst='s/\([["`$\\]]\)/\\\1/g' |
| 265 |
| 266 # Same as above, but do not quote variable references. |
| 267 double_quote_subst='s/\([["`\\]]\)/\\\1/g' |
| 268 |
| 269 # Sed substitution to delay expansion of an escaped shell variable in a |
| 270 # double_quote_subst'ed string. |
| 271 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
| 272 |
| 273 # Sed substitution to delay expansion of an escaped single quote. |
| 274 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' |
| 275 |
| 276 # Sed substitution to avoid accidental globbing in evaled expressions |
| 277 no_glob_subst='s/\*/\\\*/g' |
| 278 ]) |
| 279 |
| 253 # _LT_PROG_LTMAIN | 280 # _LT_PROG_LTMAIN |
| 254 # --------------- | 281 # --------------- |
| 255 # Note that this code is called both from `configure', and `config.status' | 282 # Note that this code is called both from 'configure', and 'config.status' |
| 256 # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably, | 283 # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably, |
| 257 # `config.status' has no value for ac_aux_dir unless we are using Automake, | 284 # 'config.status' has no value for ac_aux_dir unless we are using Automake, |
| 258 # so we pass a copy along to make sure it has a sensible value anyway. | 285 # so we pass a copy along to make sure it has a sensible value anyway. |
| 259 m4_defun([_LT_PROG_LTMAIN], | 286 m4_defun([_LT_PROG_LTMAIN], |
| 260 [m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl | 287 [m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl |
| 261 _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir']) | 288 _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir']) |
| 262 ltmain="$ac_aux_dir/ltmain.sh" | 289 ltmain=$ac_aux_dir/ltmain.sh |
| 263 ])# _LT_PROG_LTMAIN | 290 ])# _LT_PROG_LTMAIN |
| 264 | 291 |
| 265 | 292 |
| 266 ## ------------------------------------- ## | 293 ## ------------------------------------- ## |
| 267 ## Accumulate code for creating libtool. ## | 294 ## Accumulate code for creating libtool. ## |
| 268 ## ------------------------------------- ## | 295 ## ------------------------------------- ## |
| 269 | 296 |
| 270 # So that we can recreate a full libtool script including additional | 297 # So that we can recreate a full libtool script including additional |
| 271 # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS | 298 # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS |
| 272 # in macros and then make a single call at the end using the `libtool' | 299 # in macros and then make a single call at the end using the 'libtool' |
| 273 # label. | 300 # label. |
| 274 | 301 |
| 275 | 302 |
| 276 # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS]) | 303 # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS]) |
| 277 # ---------------------------------------- | 304 # ---------------------------------------- |
| 278 # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later. | 305 # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later. |
| 279 m4_define([_LT_CONFIG_LIBTOOL_INIT], | 306 m4_define([_LT_CONFIG_LIBTOOL_INIT], |
| 280 [m4_ifval([$1], | 307 [m4_ifval([$1], |
| 281 [m4_append([_LT_OUTPUT_LIBTOOL_INIT], | 308 [m4_append([_LT_OUTPUT_LIBTOOL_INIT], |
| 282 [$1 | 309 [$1 |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 397 m4_quote(m4_shift($@))))[]dnl | 424 m4_quote(m4_shift($@))))[]dnl |
| 398 ]) | 425 ]) |
| 399 m4_define([_lt_decl_all_varnames], | 426 m4_define([_lt_decl_all_varnames], |
| 400 [lt_join($@, lt_decl_varnames_tagged([$1], | 427 [lt_join($@, lt_decl_varnames_tagged([$1], |
| 401 lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl | 428 lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl |
| 402 ]) | 429 ]) |
| 403 | 430 |
| 404 | 431 |
| 405 # _LT_CONFIG_STATUS_DECLARE([VARNAME]) | 432 # _LT_CONFIG_STATUS_DECLARE([VARNAME]) |
| 406 # ------------------------------------ | 433 # ------------------------------------ |
| 407 # Quote a variable value, and forward it to `config.status' so that its | 434 # Quote a variable value, and forward it to 'config.status' so that its |
| 408 # declaration there will have the same value as in `configure'. VARNAME | 435 # declaration there will have the same value as in 'configure'. VARNAME |
| 409 # must have a single quote delimited value for this to work. | 436 # must have a single quote delimited value for this to work. |
| 410 m4_define([_LT_CONFIG_STATUS_DECLARE], | 437 m4_define([_LT_CONFIG_STATUS_DECLARE], |
| 411 [$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`']) | 438 [$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`']) |
| 412 | 439 |
| 413 | 440 |
| 414 # _LT_CONFIG_STATUS_DECLARATIONS | 441 # _LT_CONFIG_STATUS_DECLARATIONS |
| 415 # ------------------------------ | 442 # ------------------------------ |
| 416 # We delimit libtool config variables with single quotes, so when | 443 # We delimit libtool config variables with single quotes, so when |
| 417 # we write them to config.status, we have to be sure to quote all | 444 # we write them to config.status, we have to be sure to quote all |
| 418 # embedded single quotes properly. In configure, this macro expands | 445 # embedded single quotes properly. In configure, this macro expands |
| 419 # each variable declared with _LT_DECL (and _LT_TAGDECL) into: | 446 # each variable declared with _LT_DECL (and _LT_TAGDECL) into: |
| 420 # | 447 # |
| 421 # <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`' | 448 # <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`' |
| 422 m4_defun([_LT_CONFIG_STATUS_DECLARATIONS], | 449 m4_defun([_LT_CONFIG_STATUS_DECLARATIONS], |
| 423 [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames), | 450 [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames), |
| 424 [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])]) | 451 [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])]) |
| 425 | 452 |
| 426 | 453 |
| 427 # _LT_LIBTOOL_TAGS | 454 # _LT_LIBTOOL_TAGS |
| 428 # ---------------- | 455 # ---------------- |
| 429 # Output comment and list of tags supported by the script | 456 # Output comment and list of tags supported by the script |
| 430 m4_defun([_LT_LIBTOOL_TAGS], | 457 m4_defun([_LT_LIBTOOL_TAGS], |
| 431 [_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this sc
ript])dnl | 458 [_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this sc
ript])dnl |
| 432 available_tags="_LT_TAGS"dnl | 459 available_tags='_LT_TAGS'dnl |
| 433 ]) | 460 ]) |
| 434 | 461 |
| 435 | 462 |
| 436 # _LT_LIBTOOL_DECLARE(VARNAME, [TAG]) | 463 # _LT_LIBTOOL_DECLARE(VARNAME, [TAG]) |
| 437 # ----------------------------------- | 464 # ----------------------------------- |
| 438 # Extract the dictionary values for VARNAME (optionally with TAG) and | 465 # Extract the dictionary values for VARNAME (optionally with TAG) and |
| 439 # expand to a commented shell variable setting: | 466 # expand to a commented shell variable setting: |
| 440 # | 467 # |
| 441 # # Some comment about what VAR is for. | 468 # # Some comment about what VAR is for. |
| 442 # visible_name=$lt_internal_name | 469 # visible_name=$lt_internal_name |
| 443 m4_define([_LT_LIBTOOL_DECLARE], | 470 m4_define([_LT_LIBTOOL_DECLARE], |
| 444 [_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], | 471 [_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], |
| 445 [description])))[]dnl | 472 [description])))[]dnl |
| 446 m4_pushdef([_libtool_name], | 473 m4_pushdef([_libtool_name], |
| 447 m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl | 474 m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl |
| 448 m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])), | 475 m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])), |
| 449 [0], [_libtool_name=[$]$1], | 476 [0], [_libtool_name=[$]$1], |
| 450 [1], [_libtool_name=$lt_[]$1], | 477 [1], [_libtool_name=$lt_[]$1], |
| 451 [2], [_libtool_name=$lt_[]$1], | 478 [2], [_libtool_name=$lt_[]$1], |
| 452 [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl | 479 [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl |
| 453 m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl | 480 m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl |
| 454 ]) | 481 ]) |
| 455 | 482 |
| 456 | 483 |
| 457 # _LT_LIBTOOL_CONFIG_VARS | 484 # _LT_LIBTOOL_CONFIG_VARS |
| 458 # ----------------------- | 485 # ----------------------- |
| 459 # Produce commented declarations of non-tagged libtool config variables | 486 # Produce commented declarations of non-tagged libtool config variables |
| 460 # suitable for insertion in the LIBTOOL CONFIG section of the `libtool' | 487 # suitable for insertion in the LIBTOOL CONFIG section of the 'libtool' |
| 461 # script. Tagged libtool config variables (even for the LIBTOOL CONFIG | 488 # script. Tagged libtool config variables (even for the LIBTOOL CONFIG |
| 462 # section) are produced by _LT_LIBTOOL_TAG_VARS. | 489 # section) are produced by _LT_LIBTOOL_TAG_VARS. |
| 463 m4_defun([_LT_LIBTOOL_CONFIG_VARS], | 490 m4_defun([_LT_LIBTOOL_CONFIG_VARS], |
| 464 [m4_foreach([_lt_var], | 491 [m4_foreach([_lt_var], |
| 465 m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)), | 492 m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)), |
| 466 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])]) | 493 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])]) |
| 467 | 494 |
| 468 | 495 |
| 469 # _LT_LIBTOOL_TAG_VARS(TAG) | 496 # _LT_LIBTOOL_TAG_VARS(TAG) |
| 470 # ------------------------- | 497 # ------------------------- |
| 471 m4_define([_LT_LIBTOOL_TAG_VARS], | 498 m4_define([_LT_LIBTOOL_TAG_VARS], |
| 472 [m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames), | 499 [m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames), |
| 473 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])]) | 500 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])]) |
| 474 | 501 |
| 475 | 502 |
| 476 # _LT_TAGVAR(VARNAME, [TAGNAME]) | 503 # _LT_TAGVAR(VARNAME, [TAGNAME]) |
| 477 # ------------------------------ | 504 # ------------------------------ |
| 478 m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])]) | 505 m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])]) |
| 479 | 506 |
| 480 | 507 |
| 481 # _LT_CONFIG_COMMANDS | 508 # _LT_CONFIG_COMMANDS |
| 482 # ------------------- | 509 # ------------------- |
| 483 # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of | 510 # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of |
| 484 # variables for single and double quote escaping we saved from calls | 511 # variables for single and double quote escaping we saved from calls |
| 485 # to _LT_DECL, we can put quote escaped variables declarations | 512 # to _LT_DECL, we can put quote escaped variables declarations |
| 486 # into `config.status', and then the shell code to quote escape them in | 513 # into 'config.status', and then the shell code to quote escape them in |
| 487 # for loops in `config.status'. Finally, any additional code accumulated | 514 # for loops in 'config.status'. Finally, any additional code accumulated |
| 488 # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded. | 515 # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded. |
| 489 m4_defun([_LT_CONFIG_COMMANDS], | 516 m4_defun([_LT_CONFIG_COMMANDS], |
| 490 [AC_PROVIDE_IFELSE([LT_OUTPUT], | 517 [AC_PROVIDE_IFELSE([LT_OUTPUT], |
| 491 dnl If the libtool generation code has been placed in $CONFIG_LT, | 518 dnl If the libtool generation code has been placed in $CONFIG_LT, |
| 492 dnl instead of duplicating it all over again into config.status, | 519 dnl instead of duplicating it all over again into config.status, |
| 493 dnl then we will have config.status run $CONFIG_LT later, so it | 520 dnl then we will have config.status run $CONFIG_LT later, so it |
| 494 dnl needs to know what name is stored there: | 521 dnl needs to know what name is stored there: |
| 495 [AC_CONFIG_COMMANDS([libtool], | 522 [AC_CONFIG_COMMANDS([libtool], |
| 496 [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])], | 523 [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])], |
| 497 dnl If the libtool generation code is destined for config.status, | 524 dnl If the libtool generation code is destined for config.status, |
| (...skipping 12 matching lines...) Expand all Loading... |
| 510 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | 537 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 511 | 538 |
| 512 sed_quote_subst='$sed_quote_subst' | 539 sed_quote_subst='$sed_quote_subst' |
| 513 double_quote_subst='$double_quote_subst' | 540 double_quote_subst='$double_quote_subst' |
| 514 delay_variable_subst='$delay_variable_subst' | 541 delay_variable_subst='$delay_variable_subst' |
| 515 _LT_CONFIG_STATUS_DECLARATIONS | 542 _LT_CONFIG_STATUS_DECLARATIONS |
| 516 LTCC='$LTCC' | 543 LTCC='$LTCC' |
| 517 LTCFLAGS='$LTCFLAGS' | 544 LTCFLAGS='$LTCFLAGS' |
| 518 compiler='$compiler_DEFAULT' | 545 compiler='$compiler_DEFAULT' |
| 519 | 546 |
| 547 # A function that is used when there is no print builtin or printf. |
| 548 func_fallback_echo () |
| 549 { |
| 550 eval 'cat <<_LTECHO_EOF |
| 551 \$[]1 |
| 552 _LTECHO_EOF' |
| 553 } |
| 554 |
| 520 # Quote evaled strings. | 555 # Quote evaled strings. |
| 521 for var in lt_decl_all_varnames([[ \ | 556 for var in lt_decl_all_varnames([[ \ |
| 522 ]], lt_decl_quote_varnames); do | 557 ]], lt_decl_quote_varnames); do |
| 523 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | 558 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
| 524 *[[\\\\\\\`\\"\\\$]]*) | 559 *[[\\\\\\\`\\"\\\$]]*) |
| 525 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$s
ed_quote_subst\\"\\\`\\\\\\"" | 560 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_qu
ote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes |
| 526 ;; | 561 ;; |
| 527 *) | 562 *) |
| 528 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | 563 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
| 529 ;; | 564 ;; |
| 530 esac | 565 esac |
| 531 done | 566 done |
| 532 | 567 |
| 533 # Double-quote double-evaled strings. | 568 # Double-quote double-evaled strings. |
| 534 for var in lt_decl_all_varnames([[ \ | 569 for var in lt_decl_all_varnames([[ \ |
| 535 ]], lt_decl_dquote_varnames); do | 570 ]], lt_decl_dquote_varnames); do |
| 536 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | 571 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
| 537 *[[\\\\\\\`\\"\\\$]]*) | 572 *[[\\\\\\\`\\"\\\$]]*) |
| 538 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$d
ouble_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst
\\"\\\`\\\\\\"" | 573 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$dou
ble_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\
"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes |
| 539 ;; | 574 ;; |
| 540 *) | 575 *) |
| 541 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | 576 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
| 542 ;; | 577 ;; |
| 543 esac | 578 esac |
| 544 done | 579 done |
| 545 | 580 |
| 546 # Fix-up fallback echo if it was mangled by the above quoting rules. | |
| 547 case \$lt_ECHO in | |
| 548 *'\\\[$]0 --fallback-echo"')dnl " | |
| 549 lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-ec
ho"\[$]/\[$]0 --fallback-echo"/'\` | |
| 550 ;; | |
| 551 esac | |
| 552 | |
| 553 _LT_OUTPUT_LIBTOOL_INIT | 581 _LT_OUTPUT_LIBTOOL_INIT |
| 554 ]) | 582 ]) |
| 555 | 583 |
| 584 # _LT_GENERATED_FILE_INIT(FILE, [COMMENT]) |
| 585 # ------------------------------------ |
| 586 # Generate a child script FILE with all initialization necessary to |
| 587 # reuse the environment learned by the parent script, and make the |
| 588 # file executable. If COMMENT is supplied, it is inserted after the |
| 589 # '#!' sequence but before initialization text begins. After this |
| 590 # macro, additional text can be appended to FILE to form the body of |
| 591 # the child script. The macro ends with non-zero status if the |
| 592 # file could not be fully written (such as if the disk is full). |
| 593 m4_ifdef([AS_INIT_GENERATED], |
| 594 [m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])], |
| 595 [m4_defun([_LT_GENERATED_FILE_INIT], |
| 596 [m4_require([AS_PREPARE])]dnl |
| 597 [m4_pushdef([AS_MESSAGE_LOG_FD])]dnl |
| 598 [lt_write_fail=0 |
| 599 cat >$1 <<_ASEOF || lt_write_fail=1 |
| 600 #! $SHELL |
| 601 # Generated by $as_me. |
| 602 $2 |
| 603 SHELL=\${CONFIG_SHELL-$SHELL} |
| 604 export SHELL |
| 605 _ASEOF |
| 606 cat >>$1 <<\_ASEOF || lt_write_fail=1 |
| 607 AS_SHELL_SANITIZE |
| 608 _AS_PREPARE |
| 609 exec AS_MESSAGE_FD>&1 |
| 610 _ASEOF |
| 611 test 0 = "$lt_write_fail" && chmod +x $1[]dnl |
| 612 m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT |
| 556 | 613 |
| 557 # LT_OUTPUT | 614 # LT_OUTPUT |
| 558 # --------- | 615 # --------- |
| 559 # This macro allows early generation of the libtool script (before | 616 # This macro allows early generation of the libtool script (before |
| 560 # AC_OUTPUT is called), incase it is used in configure for compilation | 617 # AC_OUTPUT is called), incase it is used in configure for compilation |
| 561 # tests. | 618 # tests. |
| 562 AC_DEFUN([LT_OUTPUT], | 619 AC_DEFUN([LT_OUTPUT], |
| 563 [: ${CONFIG_LT=./config.lt} | 620 [: ${CONFIG_LT=./config.lt} |
| 564 AC_MSG_NOTICE([creating $CONFIG_LT]) | 621 AC_MSG_NOTICE([creating $CONFIG_LT]) |
| 565 cat >"$CONFIG_LT" <<_LTEOF | 622 _LT_GENERATED_FILE_INIT(["$CONFIG_LT"], |
| 566 #! $SHELL | 623 [# Run this file to recreate a libtool stub with the current configuration.]) |
| 567 # Generated by $as_me. | |
| 568 # Run this file to recreate a libtool stub with the current configuration. | |
| 569 | |
| 570 lt_cl_silent=false | |
| 571 SHELL=\${CONFIG_SHELL-$SHELL} | |
| 572 _LTEOF | |
| 573 | 624 |
| 574 cat >>"$CONFIG_LT" <<\_LTEOF | 625 cat >>"$CONFIG_LT" <<\_LTEOF |
| 575 AS_SHELL_SANITIZE | 626 lt_cl_silent=false |
| 576 _AS_PREPARE | |
| 577 | |
| 578 exec AS_MESSAGE_FD>&1 | |
| 579 exec AS_MESSAGE_LOG_FD>>config.log | 627 exec AS_MESSAGE_LOG_FD>>config.log |
| 580 { | 628 { |
| 581 echo | 629 echo |
| 582 AS_BOX([Running $as_me.]) | 630 AS_BOX([Running $as_me.]) |
| 583 } >&AS_MESSAGE_LOG_FD | 631 } >&AS_MESSAGE_LOG_FD |
| 584 | 632 |
| 585 lt_cl_help="\ | 633 lt_cl_help="\ |
| 586 \`$as_me' creates a local libtool stub from the current configuration, | 634 '$as_me' creates a local libtool stub from the current configuration, |
| 587 for use in further configure time tests before the real libtool is | 635 for use in further configure time tests before the real libtool is |
| 588 generated. | 636 generated. |
| 589 | 637 |
| 590 Usage: $[0] [[OPTIONS]] | 638 Usage: $[0] [[OPTIONS]] |
| 591 | 639 |
| 592 -h, --help print this help, then exit | 640 -h, --help print this help, then exit |
| 593 -V, --version print version number, then exit | 641 -V, --version print version number, then exit |
| 594 -q, --quiet do not print progress messages | 642 -q, --quiet do not print progress messages |
| 595 -d, --debug don't remove temporary files | 643 -d, --debug don't remove temporary files |
| 596 | 644 |
| 597 Report bugs to <bug-libtool@gnu.org>." | 645 Report bugs to <bug-libtool@gnu.org>." |
| 598 | 646 |
| 599 lt_cl_version="\ | 647 lt_cl_version="\ |
| 600 m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl | 648 m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl |
| 601 m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION]) | 649 m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION]) |
| 602 configured by $[0], generated by m4_PACKAGE_STRING. | 650 configured by $[0], generated by m4_PACKAGE_STRING. |
| 603 | 651 |
| 604 Copyright (C) 2008 Free Software Foundation, Inc. | 652 Copyright (C) 2011 Free Software Foundation, Inc. |
| 605 This config.lt script is free software; the Free Software Foundation | 653 This config.lt script is free software; the Free Software Foundation |
| 606 gives unlimited permision to copy, distribute and modify it." | 654 gives unlimited permision to copy, distribute and modify it." |
| 607 | 655 |
| 608 while test $[#] != 0 | 656 while test 0 != $[#] |
| 609 do | 657 do |
| 610 case $[1] in | 658 case $[1] in |
| 611 --version | --v* | -V ) | 659 --version | --v* | -V ) |
| 612 echo "$lt_cl_version"; exit 0 ;; | 660 echo "$lt_cl_version"; exit 0 ;; |
| 613 --help | --h* | -h ) | 661 --help | --h* | -h ) |
| 614 echo "$lt_cl_help"; exit 0 ;; | 662 echo "$lt_cl_help"; exit 0 ;; |
| 615 --debug | --d* | -d ) | 663 --debug | --d* | -d ) |
| 616 debug=: ;; | 664 debug=: ;; |
| 617 --quiet | --q* | --silent | --s* | -q ) | 665 --quiet | --q* | --silent | --s* | -q ) |
| 618 lt_cl_silent=: ;; | 666 lt_cl_silent=: ;; |
| 619 | 667 |
| 620 -*) AC_MSG_ERROR([unrecognized option: $[1] | 668 -*) AC_MSG_ERROR([unrecognized option: $[1] |
| 621 Try \`$[0] --help' for more information.]) ;; | 669 Try '$[0] --help' for more information.]) ;; |
| 622 | 670 |
| 623 *) AC_MSG_ERROR([unrecognized argument: $[1] | 671 *) AC_MSG_ERROR([unrecognized argument: $[1] |
| 624 Try \`$[0] --help' for more information.]) ;; | 672 Try '$[0] --help' for more information.]) ;; |
| 625 esac | 673 esac |
| 626 shift | 674 shift |
| 627 done | 675 done |
| 628 | 676 |
| 629 if $lt_cl_silent; then | 677 if $lt_cl_silent; then |
| 630 exec AS_MESSAGE_FD>/dev/null | 678 exec AS_MESSAGE_FD>/dev/null |
| 631 fi | 679 fi |
| 632 _LTEOF | 680 _LTEOF |
| 633 | 681 |
| 634 cat >>"$CONFIG_LT" <<_LTEOF | 682 cat >>"$CONFIG_LT" <<_LTEOF |
| 635 _LT_OUTPUT_LIBTOOL_COMMANDS_INIT | 683 _LT_OUTPUT_LIBTOOL_COMMANDS_INIT |
| 636 _LTEOF | 684 _LTEOF |
| 637 | 685 |
| 638 cat >>"$CONFIG_LT" <<\_LTEOF | 686 cat >>"$CONFIG_LT" <<\_LTEOF |
| 639 AC_MSG_NOTICE([creating $ofile]) | 687 AC_MSG_NOTICE([creating $ofile]) |
| 640 _LT_OUTPUT_LIBTOOL_COMMANDS | 688 _LT_OUTPUT_LIBTOOL_COMMANDS |
| 641 AS_EXIT(0) | 689 AS_EXIT(0) |
| 642 _LTEOF | 690 _LTEOF |
| 643 chmod +x "$CONFIG_LT" | 691 chmod +x "$CONFIG_LT" |
| 644 | 692 |
| 645 # configure is writing to config.log, but config.lt does its own redirection, | 693 # configure is writing to config.log, but config.lt does its own redirection, |
| 646 # appending to config.log, which fails on DOS, as config.log is still kept | 694 # appending to config.log, which fails on DOS, as config.log is still kept |
| 647 # open by configure. Here we exec the FD to /dev/null, effectively closing | 695 # open by configure. Here we exec the FD to /dev/null, effectively closing |
| 648 # config.log, so it can be properly (re)opened and appended to by config.lt. | 696 # config.log, so it can be properly (re)opened and appended to by config.lt. |
| 649 if test "$no_create" != yes; then | 697 lt_cl_success=: |
| 650 lt_cl_success=: | 698 test yes = "$silent" && |
| 651 test "$silent" = yes && | 699 lt_config_lt_args="$lt_config_lt_args --quiet" |
| 652 lt_config_lt_args="$lt_config_lt_args --quiet" | 700 exec AS_MESSAGE_LOG_FD>/dev/null |
| 653 exec AS_MESSAGE_LOG_FD>/dev/null | 701 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false |
| 654 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false | 702 exec AS_MESSAGE_LOG_FD>>config.log |
| 655 exec AS_MESSAGE_LOG_FD>>config.log | 703 $lt_cl_success || AS_EXIT(1) |
| 656 $lt_cl_success || AS_EXIT(1) | |
| 657 fi | |
| 658 ])# LT_OUTPUT | 704 ])# LT_OUTPUT |
| 659 | 705 |
| 660 | 706 |
| 661 # _LT_CONFIG(TAG) | 707 # _LT_CONFIG(TAG) |
| 662 # --------------- | 708 # --------------- |
| 663 # If TAG is the built-in tag, create an initial libtool script with a | 709 # If TAG is the built-in tag, create an initial libtool script with a |
| 664 # default configuration from the untagged config vars. Otherwise add code | 710 # default configuration from the untagged config vars. Otherwise add code |
| 665 # to config.status for appending the configuration named by TAG from the | 711 # to config.status for appending the configuration named by TAG from the |
| 666 # matching tagged config vars. | 712 # matching tagged config vars. |
| 667 m4_defun([_LT_CONFIG], | 713 m4_defun([_LT_CONFIG], |
| 668 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl | 714 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
| 669 _LT_CONFIG_SAVE_COMMANDS([ | 715 _LT_CONFIG_SAVE_COMMANDS([ |
| 670 m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl | 716 m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl |
| 671 m4_if(_LT_TAG, [C], [ | 717 m4_if(_LT_TAG, [C], [ |
| 672 # See if we are running on zsh, and set the options which allow our | 718 # See if we are running on zsh, and set the options that allow our |
| 673 # commands through without removal of \ escapes. | 719 # commands through without removal of \ escapes. |
| 674 if test -n "${ZSH_VERSION+set}" ; then | 720 if test -n "${ZSH_VERSION+set}"; then |
| 675 setopt NO_GLOB_SUBST | 721 setopt NO_GLOB_SUBST |
| 676 fi | 722 fi |
| 677 | 723 |
| 678 cfgfile="${ofile}T" | 724 cfgfile=${ofile}T |
| 679 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | 725 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 |
| 680 $RM "$cfgfile" | 726 $RM "$cfgfile" |
| 681 | 727 |
| 682 cat <<_LT_EOF >> "$cfgfile" | 728 cat <<_LT_EOF >> "$cfgfile" |
| 683 #! $SHELL | 729 #! $SHELL |
| 684 | 730 # Generated automatically by $as_me ($PACKAGE) $VERSION |
| 685 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building suppo
rt services. | |
| 686 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION | |
| 687 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | 731 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 688 # NOTE: Changes made to this file will be lost: look at ltmain.sh. | 732 # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
| 689 # | 733 |
| 734 # Provide generalized library-building support services. |
| 735 # Written by Gordon Matzigkeit, 1996 |
| 736 |
| 690 _LT_COPYING | 737 _LT_COPYING |
| 691 _LT_LIBTOOL_TAGS | 738 _LT_LIBTOOL_TAGS |
| 692 | 739 |
| 740 # Configured defaults for sys_lib_dlsearch_path munging. |
| 741 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} |
| 742 |
| 693 # ### BEGIN LIBTOOL CONFIG | 743 # ### BEGIN LIBTOOL CONFIG |
| 694 _LT_LIBTOOL_CONFIG_VARS | 744 _LT_LIBTOOL_CONFIG_VARS |
| 695 _LT_LIBTOOL_TAG_VARS | 745 _LT_LIBTOOL_TAG_VARS |
| 696 # ### END LIBTOOL CONFIG | 746 # ### END LIBTOOL CONFIG |
| 697 | 747 |
| 698 _LT_EOF | 748 _LT_EOF |
| 699 | 749 |
| 750 cat <<'_LT_EOF' >> "$cfgfile" |
| 751 |
| 752 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE |
| 753 |
| 754 _LT_PREPARE_MUNGE_PATH_LIST |
| 755 _LT_PREPARE_CC_BASENAME |
| 756 |
| 757 # ### END FUNCTIONS SHARED WITH CONFIGURE |
| 758 |
| 759 _LT_EOF |
| 760 |
| 700 case $host_os in | 761 case $host_os in |
| 701 aix3*) | 762 aix3*) |
| 702 cat <<\_LT_EOF >> "$cfgfile" | 763 cat <<\_LT_EOF >> "$cfgfile" |
| 703 # AIX sometimes has problems with the GCC collect2 program. For some | 764 # AIX sometimes has problems with the GCC collect2 program. For some |
| 704 # reason, if we set the COLLECT_NAMES environment variable, the problems | 765 # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 705 # vanish in a puff of smoke. | 766 # vanish in a puff of smoke. |
| 706 if test "X${COLLECT_NAMES+set}" != Xset; then | 767 if test set != "${COLLECT_NAMES+set}"; then |
| 707 COLLECT_NAMES= | 768 COLLECT_NAMES= |
| 708 export COLLECT_NAMES | 769 export COLLECT_NAMES |
| 709 fi | 770 fi |
| 710 _LT_EOF | 771 _LT_EOF |
| 711 ;; | 772 ;; |
| 712 esac | 773 esac |
| 713 | 774 |
| 714 _LT_PROG_LTMAIN | 775 _LT_PROG_LTMAIN |
| 715 | 776 |
| 716 # We use sed instead of cat because bash on DJGPP gets confused if | 777 # We use sed instead of cat because bash on DJGPP gets confused if |
| 717 # if finds mixed CR/LF and LF-only lines. Since sed operates in | 778 # if finds mixed CR/LF and LF-only lines. Since sed operates in |
| 718 # text mode, it properly converts lines to CR/LF. This bash problem | 779 # text mode, it properly converts lines to CR/LF. This bash problem |
| 719 # is reportedly fixed, but why not run on old versions too? | 780 # is reportedly fixed, but why not run on old versions too? |
| 720 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | 781 sed '$q' "$ltmain" >> "$cfgfile" \ |
| 721 || (rm -f "$cfgfile"; exit 1) | 782 || (rm -f "$cfgfile"; exit 1) |
| 722 | 783 |
| 723 _LT_PROG_XSI_SHELLFNS | 784 mv -f "$cfgfile" "$ofile" || |
| 724 | |
| 725 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfil
e" \ | |
| 726 || (rm -f "$cfgfile"; exit 1) | |
| 727 | |
| 728 mv -f "$cfgfile" "$ofile" || | |
| 729 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | 785 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
| 730 chmod +x "$ofile" | 786 chmod +x "$ofile" |
| 731 ], | 787 ], |
| 732 [cat <<_LT_EOF >> "$ofile" | 788 [cat <<_LT_EOF >> "$ofile" |
| 733 | 789 |
| 734 dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded | 790 dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded |
| 735 dnl in a comment (ie after a #). | 791 dnl in a comment (ie after a #). |
| 736 # ### BEGIN LIBTOOL TAG CONFIG: $1 | 792 # ### BEGIN LIBTOOL TAG CONFIG: $1 |
| 737 _LT_LIBTOOL_TAG_VARS(_LT_TAG) | 793 _LT_LIBTOOL_TAG_VARS(_LT_TAG) |
| 738 # ### END LIBTOOL TAG CONFIG: $1 | 794 # ### END LIBTOOL TAG CONFIG: $1 |
| 739 _LT_EOF | 795 _LT_EOF |
| 740 ])dnl /m4_if | 796 ])dnl /m4_if |
| 741 ], | 797 ], |
| 742 [m4_if([$1], [], [ | 798 [m4_if([$1], [], [ |
| 743 PACKAGE='$PACKAGE' | 799 PACKAGE='$PACKAGE' |
| 744 VERSION='$VERSION' | 800 VERSION='$VERSION' |
| 745 TIMESTAMP='$TIMESTAMP' | |
| 746 RM='$RM' | 801 RM='$RM' |
| 747 ofile='$ofile'], []) | 802 ofile='$ofile'], []) |
| 748 ])dnl /_LT_CONFIG_SAVE_COMMANDS | 803 ])dnl /_LT_CONFIG_SAVE_COMMANDS |
| 749 ])# _LT_CONFIG | 804 ])# _LT_CONFIG |
| 750 | 805 |
| 751 | 806 |
| 752 # LT_SUPPORTED_TAG(TAG) | 807 # LT_SUPPORTED_TAG(TAG) |
| 753 # --------------------- | 808 # --------------------- |
| 754 # Trace this macro to discover what tags are supported by the libtool | 809 # Trace this macro to discover what tags are supported by the libtool |
| 755 # --tag option, using: | 810 # --tag option, using: |
| 756 # autoconf --trace 'LT_SUPPORTED_TAG:$1' | 811 # autoconf --trace 'LT_SUPPORTED_TAG:$1' |
| 757 AC_DEFUN([LT_SUPPORTED_TAG], []) | 812 AC_DEFUN([LT_SUPPORTED_TAG], []) |
| 758 | 813 |
| 759 | 814 |
| 760 # C support is built-in for now | 815 # C support is built-in for now |
| 761 m4_define([_LT_LANG_C_enabled], []) | 816 m4_define([_LT_LANG_C_enabled], []) |
| 762 m4_define([_LT_TAGS], []) | 817 m4_define([_LT_TAGS], []) |
| 763 | 818 |
| 764 | 819 |
| 765 # LT_LANG(LANG) | 820 # LT_LANG(LANG) |
| 766 # ------------- | 821 # ------------- |
| 767 # Enable libtool support for the given language if not already enabled. | 822 # Enable libtool support for the given language if not already enabled. |
| 768 AC_DEFUN([LT_LANG], | 823 AC_DEFUN([LT_LANG], |
| 769 [AC_BEFORE([$0], [LT_OUTPUT])dnl | 824 [AC_BEFORE([$0], [LT_OUTPUT])dnl |
| 770 m4_case([$1], | 825 m4_case([$1], |
| 771 [C], [_LT_LANG(C)], | 826 [C], [_LT_LANG(C)], |
| 772 [C++], [_LT_LANG(CXX)], | 827 [C++], [_LT_LANG(CXX)], |
| 828 [Go], [_LT_LANG(GO)], |
| 773 [Java], [_LT_LANG(GCJ)], | 829 [Java], [_LT_LANG(GCJ)], |
| 774 [Fortran 77], [_LT_LANG(F77)], | 830 [Fortran 77], [_LT_LANG(F77)], |
| 775 [Fortran], [_LT_LANG(FC)], | 831 [Fortran], [_LT_LANG(FC)], |
| 776 [Windows Resource], [_LT_LANG(RC)], | 832 [Windows Resource], [_LT_LANG(RC)], |
| 777 [m4_ifdef([_LT_LANG_]$1[_CONFIG], | 833 [m4_ifdef([_LT_LANG_]$1[_CONFIG], |
| 778 [_LT_LANG($1)], | 834 [_LT_LANG($1)], |
| 779 [m4_fatal([$0: unsupported language: "$1"])])])dnl | 835 [m4_fatal([$0: unsupported language: "$1"])])])dnl |
| 780 ])# LT_LANG | 836 ])# LT_LANG |
| 781 | 837 |
| 782 | 838 |
| 783 # _LT_LANG(LANGNAME) | 839 # _LT_LANG(LANGNAME) |
| 784 # ------------------ | 840 # ------------------ |
| 785 m4_defun([_LT_LANG], | 841 m4_defun([_LT_LANG], |
| 786 [m4_ifdef([_LT_LANG_]$1[_enabled], [], | 842 [m4_ifdef([_LT_LANG_]$1[_enabled], [], |
| 787 [LT_SUPPORTED_TAG([$1])dnl | 843 [LT_SUPPORTED_TAG([$1])dnl |
| 788 m4_append([_LT_TAGS], [$1 ])dnl | 844 m4_append([_LT_TAGS], [$1 ])dnl |
| 789 m4_define([_LT_LANG_]$1[_enabled], [])dnl | 845 m4_define([_LT_LANG_]$1[_enabled], [])dnl |
| 790 _LT_LANG_$1_CONFIG($1)])dnl | 846 _LT_LANG_$1_CONFIG($1)])dnl |
| 791 ])# _LT_LANG | 847 ])# _LT_LANG |
| 792 | 848 |
| 793 | 849 |
| 850 m4_ifndef([AC_PROG_GO], [ |
| 851 ############################################################ |
| 852 # NOTE: This macro has been submitted for inclusion into # |
| 853 # GNU Autoconf as AC_PROG_GO. When it is available in # |
| 854 # a released version of Autoconf we should remove this # |
| 855 # macro and use it instead. # |
| 856 ############################################################ |
| 857 m4_defun([AC_PROG_GO], |
| 858 [AC_LANG_PUSH(Go)dnl |
| 859 AC_ARG_VAR([GOC], [Go compiler command])dnl |
| 860 AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl |
| 861 _AC_ARG_VAR_LDFLAGS()dnl |
| 862 AC_CHECK_TOOL(GOC, gccgo) |
| 863 if test -z "$GOC"; then |
| 864 if test -n "$ac_tool_prefix"; then |
| 865 AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo]) |
| 866 fi |
| 867 fi |
| 868 if test -z "$GOC"; then |
| 869 AC_CHECK_PROG(GOC, gccgo, gccgo, false) |
| 870 fi |
| 871 ])#m4_defun |
| 872 ])#m4_ifndef |
| 873 |
| 874 |
| 794 # _LT_LANG_DEFAULT_CONFIG | 875 # _LT_LANG_DEFAULT_CONFIG |
| 795 # ----------------------- | 876 # ----------------------- |
| 796 m4_defun([_LT_LANG_DEFAULT_CONFIG], | 877 m4_defun([_LT_LANG_DEFAULT_CONFIG], |
| 797 [AC_PROVIDE_IFELSE([AC_PROG_CXX], | 878 [AC_PROVIDE_IFELSE([AC_PROG_CXX], |
| 798 [LT_LANG(CXX)], | 879 [LT_LANG(CXX)], |
| 799 [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])]) | 880 [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])]) |
| 800 | 881 |
| 801 AC_PROVIDE_IFELSE([AC_PROG_F77], | 882 AC_PROVIDE_IFELSE([AC_PROG_F77], |
| 802 [LT_LANG(F77)], | 883 [LT_LANG(F77)], |
| 803 [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])]) | 884 [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])]) |
| (...skipping 10 matching lines...) Expand all Loading... |
| 814 [LT_LANG(GCJ)], | 895 [LT_LANG(GCJ)], |
| 815 [AC_PROVIDE_IFELSE([LT_PROG_GCJ], | 896 [AC_PROVIDE_IFELSE([LT_PROG_GCJ], |
| 816 [LT_LANG(GCJ)], | 897 [LT_LANG(GCJ)], |
| 817 [m4_ifdef([AC_PROG_GCJ], | 898 [m4_ifdef([AC_PROG_GCJ], |
| 818 [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])]) | 899 [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])]) |
| 819 m4_ifdef([A][M_PROG_GCJ], | 900 m4_ifdef([A][M_PROG_GCJ], |
| 820 [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])]) | 901 [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])]) |
| 821 m4_ifdef([LT_PROG_GCJ], | 902 m4_ifdef([LT_PROG_GCJ], |
| 822 [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])]) | 903 [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])]) |
| 823 | 904 |
| 905 AC_PROVIDE_IFELSE([AC_PROG_GO], |
| 906 [LT_LANG(GO)], |
| 907 [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])]) |
| 908 |
| 824 AC_PROVIDE_IFELSE([LT_PROG_RC], | 909 AC_PROVIDE_IFELSE([LT_PROG_RC], |
| 825 [LT_LANG(RC)], | 910 [LT_LANG(RC)], |
| 826 [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])]) | 911 [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])]) |
| 827 ])# _LT_LANG_DEFAULT_CONFIG | 912 ])# _LT_LANG_DEFAULT_CONFIG |
| 828 | 913 |
| 829 # Obsolete macros: | 914 # Obsolete macros: |
| 830 AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)]) | 915 AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)]) |
| 831 AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)]) | 916 AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)]) |
| 832 AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)]) | 917 AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)]) |
| 833 AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)]) | 918 AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)]) |
| 919 AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)]) |
| 834 dnl aclocal-1.4 backwards compatibility: | 920 dnl aclocal-1.4 backwards compatibility: |
| 835 dnl AC_DEFUN([AC_LIBTOOL_CXX], []) | 921 dnl AC_DEFUN([AC_LIBTOOL_CXX], []) |
| 836 dnl AC_DEFUN([AC_LIBTOOL_F77], []) | 922 dnl AC_DEFUN([AC_LIBTOOL_F77], []) |
| 837 dnl AC_DEFUN([AC_LIBTOOL_FC], []) | 923 dnl AC_DEFUN([AC_LIBTOOL_FC], []) |
| 838 dnl AC_DEFUN([AC_LIBTOOL_GCJ], []) | 924 dnl AC_DEFUN([AC_LIBTOOL_GCJ], []) |
| 925 dnl AC_DEFUN([AC_LIBTOOL_RC], []) |
| 839 | 926 |
| 840 | 927 |
| 841 # _LT_TAG_COMPILER | 928 # _LT_TAG_COMPILER |
| 842 # ---------------- | 929 # ---------------- |
| 843 m4_defun([_LT_TAG_COMPILER], | 930 m4_defun([_LT_TAG_COMPILER], |
| 844 [AC_REQUIRE([AC_PROG_CC])dnl | 931 [AC_REQUIRE([AC_PROG_CC])dnl |
| 845 | 932 |
| 846 _LT_DECL([LTCC], [CC], [1], [A C compiler])dnl | 933 _LT_DECL([LTCC], [CC], [1], [A C compiler])dnl |
| 847 _LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl | 934 _LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl |
| 848 _LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl | 935 _LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 902 [Tool to change global to local symbols on Mac OS X]) | 989 [Tool to change global to local symbols on Mac OS X]) |
| 903 _LT_DECL([], [LIPO], [1], | 990 _LT_DECL([], [LIPO], [1], |
| 904 [Tool to manipulate fat objects and archives on Mac OS X]) | 991 [Tool to manipulate fat objects and archives on Mac OS X]) |
| 905 _LT_DECL([], [OTOOL], [1], | 992 _LT_DECL([], [OTOOL], [1], |
| 906 [ldd/readelf like tool for Mach-O binaries on Mac OS X]) | 993 [ldd/readelf like tool for Mach-O binaries on Mac OS X]) |
| 907 _LT_DECL([], [OTOOL64], [1], | 994 _LT_DECL([], [OTOOL64], [1], |
| 908 [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4]) | 995 [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4]) |
| 909 | 996 |
| 910 AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod], | 997 AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod], |
| 911 [lt_cv_apple_cc_single_mod=no | 998 [lt_cv_apple_cc_single_mod=no |
| 912 if test -z "${LT_MULTI_MODULE}"; then | 999 if test -z "$LT_MULTI_MODULE"; then |
| 913 # By default we will add the -single_module flag. You can override | 1000 # By default we will add the -single_module flag. You can override |
| 914 # by either setting the environment variable LT_MULTI_MODULE | 1001 # by either setting the environment variable LT_MULTI_MODULE |
| 915 # non-empty at configure time, or by adding -multi_module to the | 1002 # non-empty at configure time, or by adding -multi_module to the |
| 916 # link flags. | 1003 # link flags. |
| 917 rm -rf libconftest.dylib* | 1004 rm -rf libconftest.dylib* |
| 918 echo "int foo(void){return 1;}" > conftest.c | 1005 echo "int foo(void){return 1;}" > conftest.c |
| 919 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | 1006 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
| 920 -dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD | 1007 -dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD |
| 921 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | 1008 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
| 922 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | 1009 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err |
| 923 _lt_result=$? | 1010 _lt_result=$? |
| 924 » if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_resu
lt = 0; then | 1011 » # If there is a non-empty error log, and "single_module" |
| 1012 » # appears in it, assume the flag caused a linker warning |
| 1013 if test -s conftest.err && $GREP single_module conftest.err; then |
| 1014 » cat conftest.err >&AS_MESSAGE_LOG_FD |
| 1015 » # Otherwise, if the output was created with a 0 exit code from |
| 1016 » # the compiler, it worked. |
| 1017 » elif test -f libconftest.dylib && test 0 = "$_lt_result"; then |
| 925 lt_cv_apple_cc_single_mod=yes | 1018 lt_cv_apple_cc_single_mod=yes |
| 926 else | 1019 else |
| 927 cat conftest.err >&AS_MESSAGE_LOG_FD | 1020 cat conftest.err >&AS_MESSAGE_LOG_FD |
| 928 fi | 1021 fi |
| 929 rm -rf libconftest.dylib* | 1022 rm -rf libconftest.dylib* |
| 930 rm -f conftest.* | 1023 rm -f conftest.* |
| 931 fi]) | 1024 fi]) |
| 1025 |
| 932 AC_CACHE_CHECK([for -exported_symbols_list linker flag], | 1026 AC_CACHE_CHECK([for -exported_symbols_list linker flag], |
| 933 [lt_cv_ld_exported_symbols_list], | 1027 [lt_cv_ld_exported_symbols_list], |
| 934 [lt_cv_ld_exported_symbols_list=no | 1028 [lt_cv_ld_exported_symbols_list=no |
| 935 save_LDFLAGS=$LDFLAGS | 1029 save_LDFLAGS=$LDFLAGS |
| 936 echo "_main" > conftest.sym | 1030 echo "_main" > conftest.sym |
| 937 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | 1031 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" |
| 938 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], | 1032 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], |
| 939 [lt_cv_ld_exported_symbols_list=yes], | 1033 [lt_cv_ld_exported_symbols_list=yes], |
| 940 [lt_cv_ld_exported_symbols_list=no]) | 1034 [lt_cv_ld_exported_symbols_list=no]) |
| 941 » LDFLAGS="$save_LDFLAGS" | 1035 » LDFLAGS=$save_LDFLAGS |
| 1036 ]) |
| 1037 |
| 1038 AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load], |
| 1039 [lt_cv_ld_force_load=no |
| 1040 cat > conftest.c << _LT_EOF |
| 1041 int forced_loaded() { return 2;} |
| 1042 _LT_EOF |
| 1043 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD |
| 1044 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD |
| 1045 echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD |
| 1046 $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD |
| 1047 echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD |
| 1048 $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD |
| 1049 cat > conftest.c << _LT_EOF |
| 1050 int main() { return 0;} |
| 1051 _LT_EOF |
| 1052 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./li
bconftest.a" >&AS_MESSAGE_LOG_FD |
| 1053 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconft
est.a 2>conftest.err |
| 1054 _lt_result=$? |
| 1055 if test -s conftest.err && $GREP force_load conftest.err; then |
| 1056 » cat conftest.err >&AS_MESSAGE_LOG_FD |
| 1057 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conft
est >/dev/null 2>&1; then |
| 1058 » lt_cv_ld_force_load=yes |
| 1059 else |
| 1060 » cat conftest.err >&AS_MESSAGE_LOG_FD |
| 1061 fi |
| 1062 rm -f conftest.err libconftest.a conftest conftest.c |
| 1063 rm -rf conftest.dSYM |
| 942 ]) | 1064 ]) |
| 943 case $host_os in | 1065 case $host_os in |
| 944 rhapsody* | darwin1.[[012]]) | 1066 rhapsody* | darwin1.[[012]]) |
| 945 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | 1067 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; |
| 946 darwin1.*) | 1068 darwin1.*) |
| 947 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppres
s' ;; | 1069 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;
; |
| 948 darwin*) # darwin 5.x on | 1070 darwin*) # darwin 5.x on |
| 949 # if running on 10.5 or later, the deployment target defaults | 1071 # if running on 10.5 or later, the deployment target defaults |
| 950 # to the OS version, if on x86, and 10.4, the deployment | 1072 # to the OS version, if on x86, and 10.4, the deployment |
| 951 # target defaults to 10.4. Don't you love it? | 1073 # target defaults to 10.4. Don't you love it? |
| 952 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | 1074 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in |
| 953 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*) | 1075 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*) |
| 954 » _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | 1076 » _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; |
| 955 » 10.[[012]]*) | 1077 » 10.[[012]][[,.]]*) |
| 956 » _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}sup
press' ;; | 1078 » _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppres
s' ;; |
| 957 10.*) | 1079 10.*) |
| 958 » _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | 1080 » _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; |
| 959 esac | 1081 esac |
| 960 ;; | 1082 ;; |
| 961 esac | 1083 esac |
| 962 if test "$lt_cv_apple_cc_single_mod" = "yes"; then | 1084 if test yes = "$lt_cv_apple_cc_single_mod"; then |
| 963 _lt_dar_single_mod='$single_module' | 1085 _lt_dar_single_mod='$single_module' |
| 964 fi | 1086 fi |
| 965 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | 1087 if test yes = "$lt_cv_ld_exported_symbols_list"; then |
| 966 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname
}-symbols.expsym' | 1088 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-sy
mbols.expsym' |
| 967 else | 1089 else |
| 968 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym
${lib}' | 1090 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $l
ib' |
| 969 fi | 1091 fi |
| 970 if test "$DSYMUTIL" != ":"; then | 1092 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then |
| 971 _lt_dsymutil='~$DSYMUTIL $lib || :' | 1093 _lt_dsymutil='~$DSYMUTIL $lib || :' |
| 972 else | 1094 else |
| 973 _lt_dsymutil= | 1095 _lt_dsymutil= |
| 974 fi | 1096 fi |
| 975 ;; | 1097 ;; |
| 976 esac | 1098 esac |
| 977 ]) | 1099 ]) |
| 978 | 1100 |
| 979 | 1101 |
| 980 # _LT_DARWIN_LINKER_FEATURES | 1102 # _LT_DARWIN_LINKER_FEATURES([TAG]) |
| 981 # -------------------------- | 1103 # --------------------------------- |
| 982 # Checks for linker and compiler features on darwin | 1104 # Checks for linker and compiler features on darwin |
| 983 m4_defun([_LT_DARWIN_LINKER_FEATURES], | 1105 m4_defun([_LT_DARWIN_LINKER_FEATURES], |
| 984 [ | 1106 [ |
| 985 m4_require([_LT_REQUIRED_DARWIN_CHECKS]) | 1107 m4_require([_LT_REQUIRED_DARWIN_CHECKS]) |
| 986 _LT_TAGVAR(archive_cmds_need_lc, $1)=no | 1108 _LT_TAGVAR(archive_cmds_need_lc, $1)=no |
| 987 _LT_TAGVAR(hardcode_direct, $1)=no | 1109 _LT_TAGVAR(hardcode_direct, $1)=no |
| 988 _LT_TAGVAR(hardcode_automatic, $1)=yes | 1110 _LT_TAGVAR(hardcode_automatic, $1)=yes |
| 989 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported | 1111 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
| 990 _LT_TAGVAR(whole_archive_flag_spec, $1)='' | 1112 if test yes = "$lt_cv_ld_force_load"; then |
| 1113 _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do t
est -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\";
done; func_echo_all \"$new_convenience\"`' |
| 1114 m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes], |
| 1115 [FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes]) |
| 1116 else |
| 1117 _LT_TAGVAR(whole_archive_flag_spec, $1)='' |
| 1118 fi |
| 991 _LT_TAGVAR(link_all_deplibs, $1)=yes | 1119 _LT_TAGVAR(link_all_deplibs, $1)=yes |
| 992 _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined" | 1120 _LT_TAGVAR(allow_undefined_flag, $1)=$_lt_dar_allow_undefined |
| 993 case $cc_basename in | 1121 case $cc_basename in |
| 994 ifort*) _lt_dar_can_shared=yes ;; | 1122 ifort*|nagfor*) _lt_dar_can_shared=yes ;; |
| 995 *) _lt_dar_can_shared=$GCC ;; | 1123 *) _lt_dar_can_shared=$GCC ;; |
| 996 esac | 1124 esac |
| 997 if test "$_lt_dar_can_shared" = "yes"; then | 1125 if test yes = "$_lt_dar_can_shared"; then |
| 998 output_verbose_link_cmd=echo | 1126 output_verbose_link_cmd=func_echo_all |
| 999 _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$l
ib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstri
ng $_lt_dar_single_mod${_lt_dsymutil}" | 1127 _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$l
ib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstri
ng $_lt_dar_single_mod$_lt_dsymutil" |
| 1000 _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$
libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | 1128 _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$
libobjs \$deplibs \$compiler_flags$_lt_dsymutil" |
| 1001 _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$out
put_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o
\$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$ver
string ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" | 1129 _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's|^|_|' < \$export_symbols > \$out
put_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \
$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verst
ring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil" |
| 1002 _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$o
utput_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bu
ndle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" | 1130 _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's|^|_|' < \$export_symbols > \$o
utput_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bund
le \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil" |
| 1003 m4_if([$1], [CXX], | 1131 m4_if([$1], [CXX], |
| 1004 [ if test "$lt_cv_apple_cc_single_mod" != "yes"; then | 1132 [ if test yes != "$lt_cv_apple_cc_single_mod"; then |
| 1005 _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \
${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${li
b}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstrin
g${_lt_dsymutil}" | 1133 _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \
$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-m
aster.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_l
t_dsymutil" |
| 1006 _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$o
utput_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 \$vers
tring${_lt_dar_export_syms}${_lt_dsymutil}" | 1134 _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's|^|_|' < \$export_symbols > \$o
utput_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" |
| 1007 fi | 1135 fi |
| 1008 ],[]) | 1136 ],[]) |
| 1009 else | 1137 else |
| 1010 _LT_TAGVAR(ld_shlibs, $1)=no | 1138 _LT_TAGVAR(ld_shlibs, $1)=no |
| 1011 fi | 1139 fi |
| 1012 ]) | 1140 ]) |
| 1013 | 1141 |
| 1014 # _LT_SYS_MODULE_PATH_AIX | 1142 # _LT_SYS_MODULE_PATH_AIX([TAGNAME]) |
| 1015 # ----------------------- | 1143 # ---------------------------------- |
| 1016 # Links a minimal program and checks the executable | 1144 # Links a minimal program and checks the executable |
| 1017 # for the system default hardcoded library path. In most cases, | 1145 # for the system default hardcoded library path. In most cases, |
| 1018 # this is /usr/lib:/lib, but when the MPI compilers are used | 1146 # this is /usr/lib:/lib, but when the MPI compilers are used |
| 1019 # the location of the communication and MPI libs are included too. | 1147 # the location of the communication and MPI libs are included too. |
| 1020 # If we don't find anything, use the default library path according | 1148 # If we don't find anything, use the default library path according |
| 1021 # to the aix ld manual. | 1149 # to the aix ld manual. |
| 1150 # Store the results from the different compilers for each TAGNAME. |
| 1151 # Allow to override them for all tags through lt_cv_aix_libpath. |
| 1022 m4_defun([_LT_SYS_MODULE_PATH_AIX], | 1152 m4_defun([_LT_SYS_MODULE_PATH_AIX], |
| 1023 [m4_require([_LT_DECL_SED])dnl | 1153 [m4_require([_LT_DECL_SED])dnl |
| 1024 AC_LINK_IFELSE(AC_LANG_PROGRAM,[ | 1154 if test set = "${lt_cv_aix_libpath+set}"; then |
| 1025 lt_aix_libpath_sed=' | 1155 aix_libpath=$lt_cv_aix_libpath |
| 1026 /Import File Strings/,/^$/ { | 1156 else |
| 1027 » /^0/ { | 1157 AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])], |
| 1028 » s/^0 *\(.*\)$/\1/ | 1158 [AC_LINK_IFELSE([AC_LANG_PROGRAM],[ |
| 1029 » p | 1159 lt_aix_libpath_sed='[ |
| 1030 » } | 1160 /Import File Strings/,/^$/ { |
| 1031 }' | 1161 » /^0/ { |
| 1032 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpat
h_sed"` | 1162 » s/^0 *\([^ ]*\) *$/\1/ |
| 1033 # Check for a 64-bit object if we didn't find anything. | 1163 » p |
| 1034 if test -z "$aix_libpath"; then | 1164 » } |
| 1035 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_l
ibpath_sed"` | 1165 }]' |
| 1036 fi],[]) | 1166 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null
| $SED -n -e "$lt_aix_libpath_sed"` |
| 1037 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | 1167 # Check for a 64-bit object if we didn't find anything. |
| 1168 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then |
| 1169 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev
/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 1170 fi],[]) |
| 1171 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then |
| 1172 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=/usr/lib:/lib |
| 1173 fi |
| 1174 ]) |
| 1175 aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1]) |
| 1176 fi |
| 1038 ])# _LT_SYS_MODULE_PATH_AIX | 1177 ])# _LT_SYS_MODULE_PATH_AIX |
| 1039 | 1178 |
| 1040 | 1179 |
| 1041 # _LT_SHELL_INIT(ARG) | 1180 # _LT_SHELL_INIT(ARG) |
| 1042 # ------------------- | 1181 # ------------------- |
| 1043 m4_define([_LT_SHELL_INIT], | 1182 m4_define([_LT_SHELL_INIT], |
| 1044 [ifdef([AC_DIVERSION_NOTICE], | 1183 [m4_divert_text([M4SH-INIT], [$1 |
| 1045 » [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], | 1184 ])])# _LT_SHELL_INIT |
| 1046 » [AC_DIVERT_PUSH(NOTICE)]) | 1185 |
| 1047 $1 | |
| 1048 AC_DIVERT_POP | |
| 1049 ])# _LT_SHELL_INIT | |
| 1050 | 1186 |
| 1051 | 1187 |
| 1052 # _LT_PROG_ECHO_BACKSLASH | 1188 # _LT_PROG_ECHO_BACKSLASH |
| 1053 # ----------------------- | 1189 # ----------------------- |
| 1054 # Add some code to the start of the generated configure script which | 1190 # Find how we can fake an echo command that does not interpret backslash. |
| 1055 # will find an echo command which doesn't interpret backslashes. | 1191 # In particular, with Autoconf 2.60 or later we add some code to the start |
| 1192 # of the generated configure script that will find a shell with a builtin |
| 1193 # printf (that we can use as an echo command). |
| 1056 m4_defun([_LT_PROG_ECHO_BACKSLASH], | 1194 m4_defun([_LT_PROG_ECHO_BACKSLASH], |
| 1057 [_LT_SHELL_INIT([ | 1195 [ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 1058 # Check that we are running under the correct shell. | 1196 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO |
| 1059 SHELL=${CONFIG_SHELL-/bin/sh} | 1197 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO |
| 1060 | 1198 |
| 1061 case X$lt_ECHO in | 1199 AC_MSG_CHECKING([how to print strings]) |
| 1062 X*--fallback-echo) | 1200 # Test print first, because it will be a builtin if present. |
| 1063 # Remove one level of quotation (which was required for Make). | 1201 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ |
| 1064 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','` | 1202 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then |
| 1065 ;; | 1203 ECHO='print -r --' |
| 1204 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then |
| 1205 ECHO='printf %s\n' |
| 1206 else |
| 1207 # Use this function as a fallback that always works. |
| 1208 func_fallback_echo () |
| 1209 { |
| 1210 eval 'cat <<_LTECHO_EOF |
| 1211 $[]1 |
| 1212 _LTECHO_EOF' |
| 1213 } |
| 1214 ECHO='func_fallback_echo' |
| 1215 fi |
| 1216 |
| 1217 # func_echo_all arg... |
| 1218 # Invoke $ECHO with all args, space-separated. |
| 1219 func_echo_all () |
| 1220 { |
| 1221 $ECHO "$*" |
| 1222 } |
| 1223 |
| 1224 case $ECHO in |
| 1225 printf*) AC_MSG_RESULT([printf]) ;; |
| 1226 print*) AC_MSG_RESULT([print -r]) ;; |
| 1227 *) AC_MSG_RESULT([cat]) ;; |
| 1066 esac | 1228 esac |
| 1067 | 1229 |
| 1068 ECHO=${lt_ECHO-echo} | 1230 m4_ifdef([_AS_DETECT_SUGGESTED], |
| 1069 if test "X[$]1" = X--no-reexec; then | 1231 [_AS_DETECT_SUGGESTED([ |
| 1070 # Discard the --no-reexec flag, and continue. | 1232 test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || ( |
| 1071 shift | 1233 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 1072 elif test "X[$]1" = X--fallback-echo; then | 1234 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO |
| 1073 # Avoid inline document here, it may be left over | 1235 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO |
| 1074 : | 1236 PATH=/empty FPATH=/empty; export PATH FPATH |
| 1075 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then | 1237 test "X`printf %s $ECHO`" = "X$ECHO" \ |
| 1076 # Yippee, $ECHO works! | 1238 || test "X`print -r -- $ECHO`" = "X$ECHO" )])]) |
| 1077 : | |
| 1078 else | |
| 1079 # Restart under the correct shell. | |
| 1080 exec $SHELL "[$]0" --no-reexec ${1+"[$]@"} | |
| 1081 fi | |
| 1082 | 1239 |
| 1083 if test "X[$]1" = X--fallback-echo; then | |
| 1084 # used as fallback echo | |
| 1085 shift | |
| 1086 cat <<_LT_EOF | |
| 1087 [$]* | |
| 1088 _LT_EOF | |
| 1089 exit 0 | |
| 1090 fi | |
| 1091 | |
| 1092 # The HP-UX ksh and POSIX shell print the target directory to stdout | |
| 1093 # if CDPATH is set. | |
| 1094 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
| 1095 | |
| 1096 if test -z "$lt_ECHO"; then | |
| 1097 if test "X${echo_test_string+set}" != Xset; then | |
| 1098 # find a string as large as possible, as long as the shell can cope with it | |
| 1099 for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"
' 'echo test'; do | |
| 1100 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... | |
| 1101 if { echo_test_string=`eval $cmd`; } 2>/dev/null && | |
| 1102 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null | |
| 1103 then | |
| 1104 break | |
| 1105 fi | |
| 1106 done | |
| 1107 fi | |
| 1108 | |
| 1109 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && | |
| 1110 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && | |
| 1111 test "X$echo_testing_string" = "X$echo_test_string"; then | |
| 1112 : | |
| 1113 else | |
| 1114 # The Solaris, AIX, and Digital Unix default echo programs unquote | |
| 1115 # backslashes. This makes it impossible to quote backslashes using | |
| 1116 # echo "$something" | sed 's/\\/\\\\/g' | |
| 1117 # | |
| 1118 # So, first we look for a working echo in the user's PATH. | |
| 1119 | |
| 1120 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
| 1121 for dir in $PATH /usr/ucb; do | |
| 1122 IFS="$lt_save_ifs" | |
| 1123 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && | |
| 1124 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && | |
| 1125 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && | |
| 1126 test "X$echo_testing_string" = "X$echo_test_string"; then | |
| 1127 ECHO="$dir/echo" | |
| 1128 break | |
| 1129 fi | |
| 1130 done | |
| 1131 IFS="$lt_save_ifs" | |
| 1132 | |
| 1133 if test "X$ECHO" = Xecho; then | |
| 1134 # We didn't find a better echo, so look for alternatives. | |
| 1135 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && | |
| 1136 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && | |
| 1137 test "X$echo_testing_string" = "X$echo_test_string"; then | |
| 1138 # This shell has a builtin print -r that does the trick. | |
| 1139 ECHO='print -r' | |
| 1140 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && | |
| 1141 test "X$CONFIG_SHELL" != X/bin/ksh; then | |
| 1142 # If we have ksh, try running configure again with it. | |
| 1143 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | |
| 1144 export ORIGINAL_CONFIG_SHELL | |
| 1145 CONFIG_SHELL=/bin/ksh | |
| 1146 export CONFIG_SHELL | |
| 1147 exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"} | |
| 1148 else | |
| 1149 # Try using printf. | |
| 1150 ECHO='printf %s\n' | |
| 1151 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && | |
| 1152 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && | |
| 1153 test "X$echo_testing_string" = "X$echo_test_string"; then | |
| 1154 # Cool, printf works | |
| 1155 : | |
| 1156 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo
'\t') 2>/dev/null` && | |
| 1157 test "X$echo_testing_string" = 'X\t' && | |
| 1158 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo
"$echo_test_string") 2>/dev/null` && | |
| 1159 test "X$echo_testing_string" = "X$echo_test_string"; then | |
| 1160 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL | |
| 1161 export CONFIG_SHELL | |
| 1162 SHELL="$CONFIG_SHELL" | |
| 1163 export SHELL | |
| 1164 ECHO="$CONFIG_SHELL [$]0 --fallback-echo" | |
| 1165 elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>
/dev/null` && | |
| 1166 test "X$echo_testing_string" = 'X\t' && | |
| 1167 echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_t
est_string") 2>/dev/null` && | |
| 1168 test "X$echo_testing_string" = "X$echo_test_string"; then | |
| 1169 ECHO="$CONFIG_SHELL [$]0 --fallback-echo" | |
| 1170 else | |
| 1171 # maybe with a smaller string... | |
| 1172 prev=: | |
| 1173 | |
| 1174 for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0
"' 'sed 50q "[$]0"'; do | |
| 1175 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null | |
| 1176 then | |
| 1177 break | |
| 1178 fi | |
| 1179 prev="$cmd" | |
| 1180 done | |
| 1181 | |
| 1182 if test "$prev" != 'sed 50q "[$]0"'; then | |
| 1183 echo_test_string=`eval $prev` | |
| 1184 export echo_test_string | |
| 1185 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$
]@"} | |
| 1186 else | |
| 1187 # Oops. We lost completely, so just stick with echo. | |
| 1188 ECHO=echo | |
| 1189 fi | |
| 1190 fi | |
| 1191 fi | |
| 1192 fi | |
| 1193 fi | |
| 1194 fi | |
| 1195 | |
| 1196 # Copy echo and quote the copy suitably for passing to libtool from | |
| 1197 # the Makefile, instead of quoting the original, which is used later. | |
| 1198 lt_ECHO=$ECHO | |
| 1199 if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then | |
| 1200 lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo" | |
| 1201 fi | |
| 1202 | |
| 1203 AC_SUBST(lt_ECHO) | |
| 1204 ]) | |
| 1205 _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts]) | 1240 _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts]) |
| 1206 _LT_DECL([], [ECHO], [1], | 1241 _LT_DECL([], [ECHO], [1], [An echo program that protects backslashes]) |
| 1207 [An echo program that does not interpret backslashes]) | |
| 1208 ])# _LT_PROG_ECHO_BACKSLASH | 1242 ])# _LT_PROG_ECHO_BACKSLASH |
| 1209 | 1243 |
| 1210 | 1244 |
| 1245 # _LT_WITH_SYSROOT |
| 1246 # ---------------- |
| 1247 AC_DEFUN([_LT_WITH_SYSROOT], |
| 1248 [AC_MSG_CHECKING([for sysroot]) |
| 1249 AC_ARG_WITH([sysroot], |
| 1250 [AS_HELP_STRING([--with-sysroot@<:@=DIR@:>@], |
| 1251 [Search for dependent libraries within DIR (or the compiler's sysroot |
| 1252 if not specified).])], |
| 1253 [], [with_sysroot=no]) |
| 1254 |
| 1255 dnl lt_sysroot will always be passed unquoted. We quote it here |
| 1256 dnl in case the user passed a directory name. |
| 1257 lt_sysroot= |
| 1258 case $with_sysroot in #( |
| 1259 yes) |
| 1260 if test yes = "$GCC"; then |
| 1261 lt_sysroot=`$CC --print-sysroot 2>/dev/null` |
| 1262 fi |
| 1263 ;; #( |
| 1264 /*) |
| 1265 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` |
| 1266 ;; #( |
| 1267 no|'') |
| 1268 ;; #( |
| 1269 *) |
| 1270 AC_MSG_RESULT([$with_sysroot]) |
| 1271 AC_MSG_ERROR([The sysroot must be an absolute path.]) |
| 1272 ;; |
| 1273 esac |
| 1274 |
| 1275 AC_MSG_RESULT([${lt_sysroot:-no}]) |
| 1276 _LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl |
| 1277 [dependent libraries, and where our libraries should be installed.])]) |
| 1278 |
| 1211 # _LT_ENABLE_LOCK | 1279 # _LT_ENABLE_LOCK |
| 1212 # --------------- | 1280 # --------------- |
| 1213 m4_defun([_LT_ENABLE_LOCK], | 1281 m4_defun([_LT_ENABLE_LOCK], |
| 1214 [AC_ARG_ENABLE([libtool-lock], | 1282 [AC_ARG_ENABLE([libtool-lock], |
| 1215 [AS_HELP_STRING([--disable-libtool-lock], | 1283 [AS_HELP_STRING([--disable-libtool-lock], |
| 1216 [avoid locking (might break parallel builds)])]) | 1284 [avoid locking (might break parallel builds)])]) |
| 1217 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | 1285 test no = "$enable_libtool_lock" || enable_libtool_lock=yes |
| 1218 | 1286 |
| 1219 # Some flags need to be propagated to the compiler or linker for good | 1287 # Some flags need to be propagated to the compiler or linker for good |
| 1220 # libtool support. | 1288 # libtool support. |
| 1221 case $host in | 1289 case $host in |
| 1222 ia64-*-hpux*) | 1290 ia64-*-hpux*) |
| 1223 # Find out which ABI we are using. | 1291 # Find out what ABI is being produced by ac_compile, and set mode |
| 1292 # options accordingly. |
| 1224 echo 'int i;' > conftest.$ac_ext | 1293 echo 'int i;' > conftest.$ac_ext |
| 1225 if AC_TRY_EVAL(ac_compile); then | 1294 if AC_TRY_EVAL(ac_compile); then |
| 1226 case `/usr/bin/file conftest.$ac_objext` in | 1295 case `/usr/bin/file conftest.$ac_objext` in |
| 1227 *ELF-32*) | 1296 *ELF-32*) |
| 1228 » HPUX_IA64_MODE="32" | 1297 » HPUX_IA64_MODE=32 |
| 1229 ;; | 1298 ;; |
| 1230 *ELF-64*) | 1299 *ELF-64*) |
| 1231 » HPUX_IA64_MODE="64" | 1300 » HPUX_IA64_MODE=64 |
| 1232 ;; | 1301 ;; |
| 1233 esac | 1302 esac |
| 1234 fi | 1303 fi |
| 1235 rm -rf conftest* | 1304 rm -rf conftest* |
| 1236 ;; | 1305 ;; |
| 1237 *-*-irix6*) | 1306 *-*-irix6*) |
| 1238 # Find out which ABI we are using. | 1307 # Find out what ABI is being produced by ac_compile, and set linker |
| 1239 echo '[#]line __oline__ "configure"' > conftest.$ac_ext | 1308 # options accordingly. |
| 1309 echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext |
| 1240 if AC_TRY_EVAL(ac_compile); then | 1310 if AC_TRY_EVAL(ac_compile); then |
| 1241 if test "$lt_cv_prog_gnu_ld" = yes; then | 1311 if test yes = "$lt_cv_prog_gnu_ld"; then |
| 1242 case `/usr/bin/file conftest.$ac_objext` in | 1312 case `/usr/bin/file conftest.$ac_objext` in |
| 1243 *32-bit*) | 1313 *32-bit*) |
| 1244 LD="${LD-ld} -melf32bsmip" | 1314 LD="${LD-ld} -melf32bsmip" |
| 1245 ;; | 1315 ;; |
| 1246 *N32*) | 1316 *N32*) |
| 1247 LD="${LD-ld} -melf32bmipn32" | 1317 LD="${LD-ld} -melf32bmipn32" |
| 1248 ;; | 1318 ;; |
| 1249 *64-bit*) | 1319 *64-bit*) |
| 1250 LD="${LD-ld} -melf64bmip" | 1320 LD="${LD-ld} -melf64bmip" |
| 1251 ;; | 1321 ;; |
| 1252 esac | 1322 esac |
| 1253 else | 1323 else |
| 1254 case `/usr/bin/file conftest.$ac_objext` in | 1324 case `/usr/bin/file conftest.$ac_objext` in |
| 1255 *32-bit*) | 1325 *32-bit*) |
| 1256 LD="${LD-ld} -32" | 1326 LD="${LD-ld} -32" |
| 1257 ;; | 1327 ;; |
| 1258 *N32*) | 1328 *N32*) |
| 1259 LD="${LD-ld} -n32" | 1329 LD="${LD-ld} -n32" |
| 1260 ;; | 1330 ;; |
| 1261 *64-bit*) | 1331 *64-bit*) |
| 1262 LD="${LD-ld} -64" | 1332 LD="${LD-ld} -64" |
| 1263 ;; | 1333 ;; |
| 1264 esac | 1334 esac |
| 1265 fi | 1335 fi |
| 1266 fi | 1336 fi |
| 1267 rm -rf conftest* | 1337 rm -rf conftest* |
| 1268 ;; | 1338 ;; |
| 1269 | 1339 |
| 1270 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ | 1340 mips64*-*linux*) |
| 1341 # Find out what ABI is being produced by ac_compile, and set linker |
| 1342 # options accordingly. |
| 1343 echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext |
| 1344 if AC_TRY_EVAL(ac_compile); then |
| 1345 emul=elf |
| 1346 case `/usr/bin/file conftest.$ac_objext` in |
| 1347 *32-bit*) |
| 1348 » emul="${emul}32" |
| 1349 » ;; |
| 1350 *64-bit*) |
| 1351 » emul="${emul}64" |
| 1352 » ;; |
| 1353 esac |
| 1354 case `/usr/bin/file conftest.$ac_objext` in |
| 1355 *MSB*) |
| 1356 » emul="${emul}btsmip" |
| 1357 » ;; |
| 1358 *LSB*) |
| 1359 » emul="${emul}ltsmip" |
| 1360 » ;; |
| 1361 esac |
| 1362 case `/usr/bin/file conftest.$ac_objext` in |
| 1363 *N32*) |
| 1364 » emul="${emul}n32" |
| 1365 » ;; |
| 1366 esac |
| 1367 LD="${LD-ld} -m $emul" |
| 1368 fi |
| 1369 rm -rf conftest* |
| 1370 ;; |
| 1371 |
| 1372 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ |
| 1271 s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | 1373 s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
| 1272 # Find out which ABI we are using. | 1374 # Find out what ABI is being produced by ac_compile, and set linker |
| 1375 # options accordingly. Note that the listed cases only cover the |
| 1376 # situations where additional linker options are needed (such as when |
| 1377 # doing 32-bit compilation for a host where ld defaults to 64-bit, or |
| 1378 # vice versa); the common cases where no linker options are needed do |
| 1379 # not appear in the list. |
| 1273 echo 'int i;' > conftest.$ac_ext | 1380 echo 'int i;' > conftest.$ac_ext |
| 1274 if AC_TRY_EVAL(ac_compile); then | 1381 if AC_TRY_EVAL(ac_compile); then |
| 1275 case `/usr/bin/file conftest.o` in | 1382 case `/usr/bin/file conftest.o` in |
| 1276 *32-bit*) | 1383 *32-bit*) |
| 1277 case $host in | 1384 case $host in |
| 1278 x86_64-*kfreebsd*-gnu) | 1385 x86_64-*kfreebsd*-gnu) |
| 1279 LD="${LD-ld} -m elf_i386_fbsd" | 1386 LD="${LD-ld} -m elf_i386_fbsd" |
| 1280 ;; | 1387 ;; |
| 1281 x86_64-*linux*) | 1388 x86_64-*linux*) |
| 1282 » LD="${LD-ld} -m elf_i386" | 1389 » case `/usr/bin/file conftest.o` in |
| 1390 » *x86-64*) |
| 1391 » » LD="${LD-ld} -m elf32_x86_64" |
| 1392 » » ;; |
| 1393 » *) |
| 1394 » » LD="${LD-ld} -m elf_i386" |
| 1395 » » ;; |
| 1396 » esac |
| 1283 ;; | 1397 ;; |
| 1284 » ppc64-*linux*|powerpc64-*linux*) | 1398 » powerpc64le-*linux*) |
| 1399 » LD="${LD-ld} -m elf32lppclinux" |
| 1400 » ;; |
| 1401 » powerpc64-*linux*) |
| 1285 LD="${LD-ld} -m elf32ppclinux" | 1402 LD="${LD-ld} -m elf32ppclinux" |
| 1286 ;; | 1403 ;; |
| 1287 s390x-*linux*) | 1404 s390x-*linux*) |
| 1288 LD="${LD-ld} -m elf_s390" | 1405 LD="${LD-ld} -m elf_s390" |
| 1289 ;; | 1406 ;; |
| 1290 sparc64-*linux*) | 1407 sparc64-*linux*) |
| 1291 LD="${LD-ld} -m elf32_sparc" | 1408 LD="${LD-ld} -m elf32_sparc" |
| 1292 ;; | 1409 ;; |
| 1293 esac | 1410 esac |
| 1294 ;; | 1411 ;; |
| 1295 *64-bit*) | 1412 *64-bit*) |
| 1296 case $host in | 1413 case $host in |
| 1297 x86_64-*kfreebsd*-gnu) | 1414 x86_64-*kfreebsd*-gnu) |
| 1298 LD="${LD-ld} -m elf_x86_64_fbsd" | 1415 LD="${LD-ld} -m elf_x86_64_fbsd" |
| 1299 ;; | 1416 ;; |
| 1300 x86_64-*linux*) | 1417 x86_64-*linux*) |
| 1301 LD="${LD-ld} -m elf_x86_64" | 1418 LD="${LD-ld} -m elf_x86_64" |
| 1302 ;; | 1419 ;; |
| 1303 » ppc*-*linux*|powerpc*-*linux*) | 1420 » powerpcle-*linux*) |
| 1421 » LD="${LD-ld} -m elf64lppc" |
| 1422 » ;; |
| 1423 » powerpc-*linux*) |
| 1304 LD="${LD-ld} -m elf64ppc" | 1424 LD="${LD-ld} -m elf64ppc" |
| 1305 ;; | 1425 ;; |
| 1306 s390*-*linux*|s390*-*tpf*) | 1426 s390*-*linux*|s390*-*tpf*) |
| 1307 LD="${LD-ld} -m elf64_s390" | 1427 LD="${LD-ld} -m elf64_s390" |
| 1308 ;; | 1428 ;; |
| 1309 sparc*-*linux*) | 1429 sparc*-*linux*) |
| 1310 LD="${LD-ld} -m elf64_sparc" | 1430 LD="${LD-ld} -m elf64_sparc" |
| 1311 ;; | 1431 ;; |
| 1312 esac | 1432 esac |
| 1313 ;; | 1433 ;; |
| 1314 esac | 1434 esac |
| 1315 fi | 1435 fi |
| 1316 rm -rf conftest* | 1436 rm -rf conftest* |
| 1317 ;; | 1437 ;; |
| 1318 | 1438 |
| 1319 *-*-sco3.2v5*) | 1439 *-*-sco3.2v5*) |
| 1320 # On SCO OpenServer 5, we need -belf to get full-featured binaries. | 1440 # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
| 1321 SAVE_CFLAGS="$CFLAGS" | 1441 SAVE_CFLAGS=$CFLAGS |
| 1322 CFLAGS="$CFLAGS -belf" | 1442 CFLAGS="$CFLAGS -belf" |
| 1323 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, | 1443 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, |
| 1324 [AC_LANG_PUSH(C) | 1444 [AC_LANG_PUSH(C) |
| 1325 AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_c
v_cc_needs_belf=no]) | 1445 AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_c
v_cc_needs_belf=no]) |
| 1326 AC_LANG_POP]) | 1446 AC_LANG_POP]) |
| 1327 if test x"$lt_cv_cc_needs_belf" != x"yes"; then | 1447 if test yes != "$lt_cv_cc_needs_belf"; then |
| 1328 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | 1448 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
| 1329 CFLAGS="$SAVE_CFLAGS" | 1449 CFLAGS=$SAVE_CFLAGS |
| 1330 fi | 1450 fi |
| 1331 ;; | 1451 ;; |
| 1332 sparc*-*solaris*) | 1452 *-*solaris*) |
| 1333 # Find out which ABI we are using. | 1453 # Find out what ABI is being produced by ac_compile, and set linker |
| 1454 # options accordingly. |
| 1334 echo 'int i;' > conftest.$ac_ext | 1455 echo 'int i;' > conftest.$ac_ext |
| 1335 if AC_TRY_EVAL(ac_compile); then | 1456 if AC_TRY_EVAL(ac_compile); then |
| 1336 case `/usr/bin/file conftest.o` in | 1457 case `/usr/bin/file conftest.o` in |
| 1337 *64-bit*) | 1458 *64-bit*) |
| 1338 case $lt_cv_prog_gnu_ld in | 1459 case $lt_cv_prog_gnu_ld in |
| 1339 yes*) LD="${LD-ld} -m elf64_sparc" ;; | 1460 yes*) |
| 1461 case $host in |
| 1462 i?86-*-solaris*|x86_64-*-solaris*) |
| 1463 LD="${LD-ld} -m elf_x86_64" |
| 1464 ;; |
| 1465 sparc*-*-solaris*) |
| 1466 LD="${LD-ld} -m elf64_sparc" |
| 1467 ;; |
| 1468 esac |
| 1469 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. |
| 1470 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then |
| 1471 LD=${LD-ld}_sol2 |
| 1472 fi |
| 1473 ;; |
| 1340 *) | 1474 *) |
| 1341 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | 1475 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then |
| 1342 LD="${LD-ld} -64" | 1476 LD="${LD-ld} -64" |
| 1343 fi | 1477 fi |
| 1344 ;; | 1478 ;; |
| 1345 esac | 1479 esac |
| 1346 ;; | 1480 ;; |
| 1347 esac | 1481 esac |
| 1348 fi | 1482 fi |
| 1349 rm -rf conftest* | 1483 rm -rf conftest* |
| 1350 ;; | 1484 ;; |
| 1351 esac | 1485 esac |
| 1352 | 1486 |
| 1353 need_locks="$enable_libtool_lock" | 1487 need_locks=$enable_libtool_lock |
| 1354 ])# _LT_ENABLE_LOCK | 1488 ])# _LT_ENABLE_LOCK |
| 1355 | 1489 |
| 1356 | 1490 |
| 1491 # _LT_PROG_AR |
| 1492 # ----------- |
| 1493 m4_defun([_LT_PROG_AR], |
| 1494 [AC_CHECK_TOOLS(AR, [ar], false) |
| 1495 : ${AR=ar} |
| 1496 : ${AR_FLAGS=cru} |
| 1497 _LT_DECL([], [AR], [1], [The archiver]) |
| 1498 _LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive]) |
| 1499 |
| 1500 AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file], |
| 1501 [lt_cv_ar_at_file=no |
| 1502 AC_COMPILE_IFELSE([AC_LANG_PROGRAM], |
| 1503 [echo conftest.$ac_objext > conftest.lst |
| 1504 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD' |
| 1505 AC_TRY_EVAL([lt_ar_try]) |
| 1506 if test 0 -eq "$ac_status"; then |
| 1507 # Ensure the archiver fails upon bogus file names. |
| 1508 rm -f conftest.$ac_objext libconftest.a |
| 1509 AC_TRY_EVAL([lt_ar_try]) |
| 1510 if test 0 -ne "$ac_status"; then |
| 1511 lt_cv_ar_at_file=@ |
| 1512 fi |
| 1513 fi |
| 1514 rm -f conftest.* libconftest.a |
| 1515 ]) |
| 1516 ]) |
| 1517 |
| 1518 if test no = "$lt_cv_ar_at_file"; then |
| 1519 archiver_list_spec= |
| 1520 else |
| 1521 archiver_list_spec=$lt_cv_ar_at_file |
| 1522 fi |
| 1523 _LT_DECL([], [archiver_list_spec], [1], |
| 1524 [How to feed a file listing to the archiver]) |
| 1525 ])# _LT_PROG_AR |
| 1526 |
| 1527 |
| 1357 # _LT_CMD_OLD_ARCHIVE | 1528 # _LT_CMD_OLD_ARCHIVE |
| 1358 # ------------------- | 1529 # ------------------- |
| 1359 m4_defun([_LT_CMD_OLD_ARCHIVE], | 1530 m4_defun([_LT_CMD_OLD_ARCHIVE], |
| 1360 [AC_CHECK_TOOL(AR, ar, false) | 1531 [_LT_PROG_AR |
| 1361 test -z "$AR" && AR=ar | |
| 1362 test -z "$AR_FLAGS" && AR_FLAGS=cru | |
| 1363 _LT_DECL([], [AR], [1], [The archiver]) | |
| 1364 _LT_DECL([], [AR_FLAGS], [1]) | |
| 1365 | 1532 |
| 1366 AC_CHECK_TOOL(STRIP, strip, :) | 1533 AC_CHECK_TOOL(STRIP, strip, :) |
| 1367 test -z "$STRIP" && STRIP=: | 1534 test -z "$STRIP" && STRIP=: |
| 1368 _LT_DECL([], [STRIP], [1], [A symbol stripping program]) | 1535 _LT_DECL([], [STRIP], [1], [A symbol stripping program]) |
| 1369 | 1536 |
| 1370 AC_CHECK_TOOL(RANLIB, ranlib, :) | 1537 AC_CHECK_TOOL(RANLIB, ranlib, :) |
| 1371 test -z "$RANLIB" && RANLIB=: | 1538 test -z "$RANLIB" && RANLIB=: |
| 1372 _LT_DECL([], [RANLIB], [1], | 1539 _LT_DECL([], [RANLIB], [1], |
| 1373 [Commands used to install an old-style archive]) | 1540 [Commands used to install an old-style archive]) |
| 1374 | 1541 |
| 1375 # Determine commands to create old-style static archives. | 1542 # Determine commands to create old-style static archives. |
| 1376 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | 1543 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
| 1377 old_postinstall_cmds='chmod 644 $oldlib' | 1544 old_postinstall_cmds='chmod 644 $oldlib' |
| 1378 old_postuninstall_cmds= | 1545 old_postuninstall_cmds= |
| 1379 | 1546 |
| 1380 if test -n "$RANLIB"; then | 1547 if test -n "$RANLIB"; then |
| 1381 case $host_os in | 1548 case $host_os in |
| 1382 openbsd*) | 1549 bitrig* | openbsd*) |
| 1383 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | 1550 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" |
| 1384 ;; | 1551 ;; |
| 1385 *) | 1552 *) |
| 1386 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | 1553 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" |
| 1387 ;; | 1554 ;; |
| 1388 esac | 1555 esac |
| 1389 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | 1556 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" |
| 1390 fi | 1557 fi |
| 1558 |
| 1559 case $host_os in |
| 1560 darwin*) |
| 1561 lock_old_archive_extraction=yes ;; |
| 1562 *) |
| 1563 lock_old_archive_extraction=no ;; |
| 1564 esac |
| 1391 _LT_DECL([], [old_postinstall_cmds], [2]) | 1565 _LT_DECL([], [old_postinstall_cmds], [2]) |
| 1392 _LT_DECL([], [old_postuninstall_cmds], [2]) | 1566 _LT_DECL([], [old_postuninstall_cmds], [2]) |
| 1393 _LT_TAGDECL([], [old_archive_cmds], [2], | 1567 _LT_TAGDECL([], [old_archive_cmds], [2], |
| 1394 [Commands used to build an old-style archive]) | 1568 [Commands used to build an old-style archive]) |
| 1569 _LT_DECL([], [lock_old_archive_extraction], [0], |
| 1570 [Whether to use a lock for old archive extraction]) |
| 1395 ])# _LT_CMD_OLD_ARCHIVE | 1571 ])# _LT_CMD_OLD_ARCHIVE |
| 1396 | 1572 |
| 1397 | 1573 |
| 1398 # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, | 1574 # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, |
| 1399 # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) | 1575 # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) |
| 1400 # ---------------------------------------------------------------- | 1576 # ---------------------------------------------------------------- |
| 1401 # Check whether the given compiler option works | 1577 # Check whether the given compiler option works |
| 1402 AC_DEFUN([_LT_COMPILER_OPTION], | 1578 AC_DEFUN([_LT_COMPILER_OPTION], |
| 1403 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl | 1579 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
| 1404 m4_require([_LT_DECL_SED])dnl | 1580 m4_require([_LT_DECL_SED])dnl |
| 1405 AC_CACHE_CHECK([$1], [$2], | 1581 AC_CACHE_CHECK([$1], [$2], |
| 1406 [$2=no | 1582 [$2=no |
| 1407 m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) | 1583 m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) |
| 1408 echo "$lt_simple_compile_test_code" > conftest.$ac_ext | 1584 echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 1409 lt_compiler_flag="$3" | 1585 lt_compiler_flag="$3" ## exclude from sc_useless_quotes_in_assignment |
| 1410 # Insert the option either (1) after the last *FLAGS variable, or | 1586 # Insert the option either (1) after the last *FLAGS variable, or |
| 1411 # (2) before a word containing "conftest.", or (3) at the end. | 1587 # (2) before a word containing "conftest.", or (3) at the end. |
| 1412 # Note that $ac_compile itself does not contain backslashes and begins | 1588 # Note that $ac_compile itself does not contain backslashes and begins |
| 1413 # with a dollar sign (not a hyphen), so the echo should work correctly. | 1589 # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 1414 # The option is referenced via a variable to avoid confusing sed. | 1590 # The option is referenced via a variable to avoid confusing sed. |
| 1415 lt_compile=`echo "$ac_compile" | $SED \ | 1591 lt_compile=`echo "$ac_compile" | $SED \ |
| 1416 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | 1592 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 1417 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ | 1593 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ |
| 1418 -e 's:$: $lt_compiler_flag:'` | 1594 -e 's:$: $lt_compiler_flag:'` |
| 1419 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) | 1595 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) |
| 1420 (eval "$lt_compile" 2>conftest.err) | 1596 (eval "$lt_compile" 2>conftest.err) |
| 1421 ac_status=$? | 1597 ac_status=$? |
| 1422 cat conftest.err >&AS_MESSAGE_LOG_FD | 1598 cat conftest.err >&AS_MESSAGE_LOG_FD |
| 1423 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD | 1599 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD |
| 1424 if (exit $ac_status) && test -s "$ac_outfile"; then | 1600 if (exit $ac_status) && test -s "$ac_outfile"; then |
| 1425 # The compiler can only warn and ignore the option if not recognized | 1601 # The compiler can only warn and ignore the option if not recognized |
| 1426 # So say no if there are warnings other than the usual output. | 1602 # So say no if there are warnings other than the usual output. |
| 1427 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | 1603 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
| 1428 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | 1604 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 1429 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; the
n | 1605 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; the
n |
| 1430 $2=yes | 1606 $2=yes |
| 1431 fi | 1607 fi |
| 1432 fi | 1608 fi |
| 1433 $RM conftest* | 1609 $RM conftest* |
| 1434 ]) | 1610 ]) |
| 1435 | 1611 |
| 1436 if test x"[$]$2" = xyes; then | 1612 if test yes = "[$]$2"; then |
| 1437 m4_if([$5], , :, [$5]) | 1613 m4_if([$5], , :, [$5]) |
| 1438 else | 1614 else |
| 1439 m4_if([$6], , :, [$6]) | 1615 m4_if([$6], , :, [$6]) |
| 1440 fi | 1616 fi |
| 1441 ])# _LT_COMPILER_OPTION | 1617 ])# _LT_COMPILER_OPTION |
| 1442 | 1618 |
| 1443 # Old name: | 1619 # Old name: |
| 1444 AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION]) | 1620 AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION]) |
| 1445 dnl aclocal-1.4 backwards compatibility: | 1621 dnl aclocal-1.4 backwards compatibility: |
| 1446 dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], []) | 1622 dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], []) |
| 1447 | 1623 |
| 1448 | 1624 |
| 1449 # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, | 1625 # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, |
| 1450 # [ACTION-SUCCESS], [ACTION-FAILURE]) | 1626 # [ACTION-SUCCESS], [ACTION-FAILURE]) |
| 1451 # ---------------------------------------------------- | 1627 # ---------------------------------------------------- |
| 1452 # Check whether the given linker option works | 1628 # Check whether the given linker option works |
| 1453 AC_DEFUN([_LT_LINKER_OPTION], | 1629 AC_DEFUN([_LT_LINKER_OPTION], |
| 1454 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl | 1630 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
| 1455 m4_require([_LT_DECL_SED])dnl | 1631 m4_require([_LT_DECL_SED])dnl |
| 1456 AC_CACHE_CHECK([$1], [$2], | 1632 AC_CACHE_CHECK([$1], [$2], |
| 1457 [$2=no | 1633 [$2=no |
| 1458 save_LDFLAGS="$LDFLAGS" | 1634 save_LDFLAGS=$LDFLAGS |
| 1459 LDFLAGS="$LDFLAGS $3" | 1635 LDFLAGS="$LDFLAGS $3" |
| 1460 echo "$lt_simple_link_test_code" > conftest.$ac_ext | 1636 echo "$lt_simple_link_test_code" > conftest.$ac_ext |
| 1461 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | 1637 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 1462 # The linker can only warn and ignore the option if not recognized | 1638 # The linker can only warn and ignore the option if not recognized |
| 1463 # So say no if there are warnings | 1639 # So say no if there are warnings |
| 1464 if test -s conftest.err; then | 1640 if test -s conftest.err; then |
| 1465 # Append any errors to the config.log. | 1641 # Append any errors to the config.log. |
| 1466 cat conftest.err 1>&AS_MESSAGE_LOG_FD | 1642 cat conftest.err 1>&AS_MESSAGE_LOG_FD |
| 1467 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | 1643 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
| 1468 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | 1644 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 1469 if diff conftest.exp conftest.er2 >/dev/null; then | 1645 if diff conftest.exp conftest.er2 >/dev/null; then |
| 1470 $2=yes | 1646 $2=yes |
| 1471 fi | 1647 fi |
| 1472 else | 1648 else |
| 1473 $2=yes | 1649 $2=yes |
| 1474 fi | 1650 fi |
| 1475 fi | 1651 fi |
| 1476 $RM -r conftest* | 1652 $RM -r conftest* |
| 1477 LDFLAGS="$save_LDFLAGS" | 1653 LDFLAGS=$save_LDFLAGS |
| 1478 ]) | 1654 ]) |
| 1479 | 1655 |
| 1480 if test x"[$]$2" = xyes; then | 1656 if test yes = "[$]$2"; then |
| 1481 m4_if([$4], , :, [$4]) | 1657 m4_if([$4], , :, [$4]) |
| 1482 else | 1658 else |
| 1483 m4_if([$5], , :, [$5]) | 1659 m4_if([$5], , :, [$5]) |
| 1484 fi | 1660 fi |
| 1485 ])# _LT_LINKER_OPTION | 1661 ])# _LT_LINKER_OPTION |
| 1486 | 1662 |
| 1487 # Old name: | 1663 # Old name: |
| 1488 AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION]) | 1664 AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION]) |
| 1489 dnl aclocal-1.4 backwards compatibility: | 1665 dnl aclocal-1.4 backwards compatibility: |
| 1490 dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], []) | 1666 dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], []) |
| 1491 | 1667 |
| 1492 | 1668 |
| 1493 # LT_CMD_MAX_LEN | 1669 # LT_CMD_MAX_LEN |
| 1494 #--------------- | 1670 #--------------- |
| 1495 AC_DEFUN([LT_CMD_MAX_LEN], | 1671 AC_DEFUN([LT_CMD_MAX_LEN], |
| 1496 [AC_REQUIRE([AC_CANONICAL_HOST])dnl | 1672 [AC_REQUIRE([AC_CANONICAL_HOST])dnl |
| 1497 # find the maximum length of command line arguments | 1673 # find the maximum length of command line arguments |
| 1498 AC_MSG_CHECKING([the maximum length of command line arguments]) | 1674 AC_MSG_CHECKING([the maximum length of command line arguments]) |
| 1499 AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl | 1675 AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl |
| 1500 i=0 | 1676 i=0 |
| 1501 teststring="ABCD" | 1677 teststring=ABCD |
| 1502 | 1678 |
| 1503 case $build_os in | 1679 case $build_os in |
| 1504 msdosdjgpp*) | 1680 msdosdjgpp*) |
| 1505 # On DJGPP, this test can blow up pretty badly due to problems in libc | 1681 # On DJGPP, this test can blow up pretty badly due to problems in libc |
| 1506 # (any single argument exceeding 2000 bytes causes a buffer overrun | 1682 # (any single argument exceeding 2000 bytes causes a buffer overrun |
| 1507 # during glob expansion). Even if it were fixed, the result of this | 1683 # during glob expansion). Even if it were fixed, the result of this |
| 1508 # check would be larger than it should be. | 1684 # check would be larger than it should be. |
| 1509 lt_cv_sys_max_cmd_len=12288; # 12K is about right | 1685 lt_cv_sys_max_cmd_len=12288; # 12K is about right |
| 1510 ;; | 1686 ;; |
| 1511 | 1687 |
| 1512 gnu*) | 1688 gnu*) |
| 1513 # Under GNU Hurd, this test is not required because there is | 1689 # Under GNU Hurd, this test is not required because there is |
| 1514 # no limit to the length of command line arguments. | 1690 # no limit to the length of command line arguments. |
| 1515 # Libtool will interpret -1 as no limit whatsoever | 1691 # Libtool will interpret -1 as no limit whatsoever |
| 1516 lt_cv_sys_max_cmd_len=-1; | 1692 lt_cv_sys_max_cmd_len=-1; |
| 1517 ;; | 1693 ;; |
| 1518 | 1694 |
| 1519 cygwin* | mingw* | cegcc*) | 1695 cygwin* | mingw* | cegcc*) |
| 1520 # On Win9x/ME, this test blows up -- it succeeds, but takes | 1696 # On Win9x/ME, this test blows up -- it succeeds, but takes |
| 1521 # about 5 minutes as the teststring grows exponentially. | 1697 # about 5 minutes as the teststring grows exponentially. |
| 1522 # Worse, since 9x/ME are not pre-emptively multitasking, | 1698 # Worse, since 9x/ME are not pre-emptively multitasking, |
| 1523 # you end up with a "frozen" computer, even though with patience | 1699 # you end up with a "frozen" computer, even though with patience |
| 1524 # the test eventually succeeds (with a max line length of 256k). | 1700 # the test eventually succeeds (with a max line length of 256k). |
| 1525 # Instead, let's just punt: use the minimum linelength reported by | 1701 # Instead, let's just punt: use the minimum linelength reported by |
| 1526 # all of the supported platforms: 8192 (on NT/2K/XP). | 1702 # all of the supported platforms: 8192 (on NT/2K/XP). |
| 1527 lt_cv_sys_max_cmd_len=8192; | 1703 lt_cv_sys_max_cmd_len=8192; |
| 1528 ;; | 1704 ;; |
| 1529 | 1705 |
| 1706 mint*) |
| 1707 # On MiNT this can take a long time and run out of memory. |
| 1708 lt_cv_sys_max_cmd_len=8192; |
| 1709 ;; |
| 1710 |
| 1530 amigaos*) | 1711 amigaos*) |
| 1531 # On AmigaOS with pdksh, this test takes hours, literally. | 1712 # On AmigaOS with pdksh, this test takes hours, literally. |
| 1532 # So we just punt and use a minimum line length of 8192. | 1713 # So we just punt and use a minimum line length of 8192. |
| 1533 lt_cv_sys_max_cmd_len=8192; | 1714 lt_cv_sys_max_cmd_len=8192; |
| 1534 ;; | 1715 ;; |
| 1535 | 1716 |
| 1536 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | 1717 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) |
| 1537 # This has been around since 386BSD, at least. Likely further. | 1718 # This has been around since 386BSD, at least. Likely further. |
| 1538 if test -x /sbin/sysctl; then | 1719 if test -x /sbin/sysctl; then |
| 1539 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | 1720 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
| 1540 elif test -x /usr/sbin/sysctl; then | 1721 elif test -x /usr/sbin/sysctl; then |
| 1541 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | 1722 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
| 1542 else | 1723 else |
| 1543 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | 1724 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
| 1544 fi | 1725 fi |
| 1545 # And add a safety zone | 1726 # And add a safety zone |
| 1546 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | 1727 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 1547 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | 1728 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 1548 ;; | 1729 ;; |
| 1549 | 1730 |
| 1550 interix*) | 1731 interix*) |
| 1551 # We know the value 262144 and hardcode it with a safety zone (like BSD) | 1732 # We know the value 262144 and hardcode it with a safety zone (like BSD) |
| 1552 lt_cv_sys_max_cmd_len=196608 | 1733 lt_cv_sys_max_cmd_len=196608 |
| 1553 ;; | 1734 ;; |
| 1554 | 1735 |
| 1736 os2*) |
| 1737 # The test takes a long time on OS/2. |
| 1738 lt_cv_sys_max_cmd_len=8192 |
| 1739 ;; |
| 1740 |
| 1555 osf*) | 1741 osf*) |
| 1556 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | 1742 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
| 1557 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | 1743 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
| 1558 # nice to cause kernel panics so lets avoid the loop below. | 1744 # nice to cause kernel panics so lets avoid the loop below. |
| 1559 # First set a reasonable default. | 1745 # First set a reasonable default. |
| 1560 lt_cv_sys_max_cmd_len=16384 | 1746 lt_cv_sys_max_cmd_len=16384 |
| 1561 # | 1747 # |
| 1562 if test -x /sbin/sysconfig; then | 1748 if test -x /sbin/sysconfig; then |
| 1563 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | 1749 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
| 1564 *1*) lt_cv_sys_max_cmd_len=-1 ;; | 1750 *1*) lt_cv_sys_max_cmd_len=-1 ;; |
| 1565 esac | 1751 esac |
| 1566 fi | 1752 fi |
| 1567 ;; | 1753 ;; |
| 1568 sco3.2v5*) | 1754 sco3.2v5*) |
| 1569 lt_cv_sys_max_cmd_len=102400 | 1755 lt_cv_sys_max_cmd_len=102400 |
| 1570 ;; | 1756 ;; |
| 1571 sysv5* | sco5v6* | sysv4.2uw2*) | 1757 sysv5* | sco5v6* | sysv4.2uw2*) |
| 1572 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | 1758 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
| 1573 if test -n "$kargmax"; then | 1759 if test -n "$kargmax"; then |
| 1574 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` | 1760 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` |
| 1575 else | 1761 else |
| 1576 lt_cv_sys_max_cmd_len=32768 | 1762 lt_cv_sys_max_cmd_len=32768 |
| 1577 fi | 1763 fi |
| 1578 ;; | 1764 ;; |
| 1579 *) | 1765 *) |
| 1580 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` | 1766 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
| 1581 if test -n "$lt_cv_sys_max_cmd_len"; then | 1767 if test -n "$lt_cv_sys_max_cmd_len" && \ |
| 1768 test undefined != "$lt_cv_sys_max_cmd_len"; then |
| 1582 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | 1769 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 1583 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | 1770 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 1584 else | 1771 else |
| 1585 # Make teststring a little bigger before we do anything with it. | 1772 # Make teststring a little bigger before we do anything with it. |
| 1586 # a 1K string should be a reasonable start. | 1773 # a 1K string should be a reasonable start. |
| 1587 for i in 1 2 3 4 5 6 7 8 ; do | 1774 for i in 1 2 3 4 5 6 7 8; do |
| 1588 teststring=$teststring$teststring | 1775 teststring=$teststring$teststring |
| 1589 done | 1776 done |
| 1590 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | 1777 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
| 1591 # If test is not a shell built-in, we'll probably end up computing a | 1778 # If test is not a shell built-in, we'll probably end up computing a |
| 1592 # maximum length that is only half of the actual maximum length, but | 1779 # maximum length that is only half of the actual maximum length, but |
| 1593 # we can't tell. | 1780 # we can't tell. |
| 1594 while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/
dev/null` \ | 1781 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ |
| 1595 » = "XX$teststring$teststring"; } >/dev/null 2>&1 && | 1782 » = "X$teststring$teststring"; } >/dev/null 2>&1 && |
| 1596 » test $i != 17 # 1/2 MB should be enough | 1783 » test 17 != "$i" # 1/2 MB should be enough |
| 1597 do | 1784 do |
| 1598 i=`expr $i + 1` | 1785 i=`expr $i + 1` |
| 1599 teststring=$teststring$teststring | 1786 teststring=$teststring$teststring |
| 1600 done | 1787 done |
| 1601 # Only check the string length outside the loop. | 1788 # Only check the string length outside the loop. |
| 1602 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | 1789 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` |
| 1603 teststring= | 1790 teststring= |
| 1604 # Add a significant safety factor because C++ compilers can tack on | 1791 # Add a significant safety factor because C++ compilers can tack on |
| 1605 # massive amounts of additional arguments before passing them to the | 1792 # massive amounts of additional arguments before passing them to the |
| 1606 # linker. It appears as though 1/2 is a usable value. | 1793 # linker. It appears as though 1/2 is a usable value. |
| 1607 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | 1794 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
| 1608 fi | 1795 fi |
| 1609 ;; | 1796 ;; |
| 1610 esac | 1797 esac |
| 1611 ]) | 1798 ]) |
| 1612 if test -n $lt_cv_sys_max_cmd_len ; then | 1799 if test -n "$lt_cv_sys_max_cmd_len"; then |
| 1613 AC_MSG_RESULT($lt_cv_sys_max_cmd_len) | 1800 AC_MSG_RESULT($lt_cv_sys_max_cmd_len) |
| 1614 else | 1801 else |
| 1615 AC_MSG_RESULT(none) | 1802 AC_MSG_RESULT(none) |
| 1616 fi | 1803 fi |
| 1617 max_cmd_len=$lt_cv_sys_max_cmd_len | 1804 max_cmd_len=$lt_cv_sys_max_cmd_len |
| 1618 _LT_DECL([], [max_cmd_len], [0], | 1805 _LT_DECL([], [max_cmd_len], [0], |
| 1619 [What is the maximum length of a command?]) | 1806 [What is the maximum length of a command?]) |
| 1620 ])# LT_CMD_MAX_LEN | 1807 ])# LT_CMD_MAX_LEN |
| 1621 | 1808 |
| 1622 # Old name: | 1809 # Old name: |
| 1623 AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN]) | 1810 AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN]) |
| 1624 dnl aclocal-1.4 backwards compatibility: | 1811 dnl aclocal-1.4 backwards compatibility: |
| 1625 dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], []) | 1812 dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], []) |
| 1626 | 1813 |
| 1627 | 1814 |
| 1628 # _LT_HEADER_DLFCN | 1815 # _LT_HEADER_DLFCN |
| 1629 # ---------------- | 1816 # ---------------- |
| 1630 m4_defun([_LT_HEADER_DLFCN], | 1817 m4_defun([_LT_HEADER_DLFCN], |
| 1631 [AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl | 1818 [AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl |
| 1632 ])# _LT_HEADER_DLFCN | 1819 ])# _LT_HEADER_DLFCN |
| 1633 | 1820 |
| 1634 | 1821 |
| 1635 # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, | 1822 # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, |
| 1636 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) | 1823 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) |
| 1637 # ---------------------------------------------------------------- | 1824 # ---------------------------------------------------------------- |
| 1638 m4_defun([_LT_TRY_DLOPEN_SELF], | 1825 m4_defun([_LT_TRY_DLOPEN_SELF], |
| 1639 [m4_require([_LT_HEADER_DLFCN])dnl | 1826 [m4_require([_LT_HEADER_DLFCN])dnl |
| 1640 if test "$cross_compiling" = yes; then : | 1827 if test yes = "$cross_compiling"; then : |
| 1641 [$4] | 1828 [$4] |
| 1642 else | 1829 else |
| 1643 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | 1830 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 1644 lt_status=$lt_dlunknown | 1831 lt_status=$lt_dlunknown |
| 1645 cat > conftest.$ac_ext <<_LT_EOF | 1832 cat > conftest.$ac_ext <<_LT_EOF |
| 1646 [#line __oline__ "configure" | 1833 [#line $LINENO "configure" |
| 1647 #include "confdefs.h" | 1834 #include "confdefs.h" |
| 1648 | 1835 |
| 1649 #if HAVE_DLFCN_H | 1836 #if HAVE_DLFCN_H |
| 1650 #include <dlfcn.h> | 1837 #include <dlfcn.h> |
| 1651 #endif | 1838 #endif |
| 1652 | 1839 |
| 1653 #include <stdio.h> | 1840 #include <stdio.h> |
| 1654 | 1841 |
| 1655 #ifdef RTLD_GLOBAL | 1842 #ifdef RTLD_GLOBAL |
| 1656 # define LT_DLGLOBAL RTLD_GLOBAL | 1843 # define LT_DLGLOBAL RTLD_GLOBAL |
| (...skipping 20 matching lines...) Expand all Loading... |
| 1677 # ifdef DL_NOW | 1864 # ifdef DL_NOW |
| 1678 # define LT_DLLAZY_OR_NOW DL_NOW | 1865 # define LT_DLLAZY_OR_NOW DL_NOW |
| 1679 # else | 1866 # else |
| 1680 # define LT_DLLAZY_OR_NOW 0 | 1867 # define LT_DLLAZY_OR_NOW 0 |
| 1681 # endif | 1868 # endif |
| 1682 # endif | 1869 # endif |
| 1683 # endif | 1870 # endif |
| 1684 # endif | 1871 # endif |
| 1685 #endif | 1872 #endif |
| 1686 | 1873 |
| 1687 void fnord() { int i=42;} | 1874 /* When -fvisibility=hidden is used, assume the code has been annotated |
| 1875 correspondingly for the symbols needed. */ |
| 1876 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__
> 3)) |
| 1877 int fnord () __attribute__((visibility("default"))); |
| 1878 #endif |
| 1879 |
| 1880 int fnord () { return 42; } |
| 1688 int main () | 1881 int main () |
| 1689 { | 1882 { |
| 1690 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | 1883 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 1691 int status = $lt_dlunknown; | 1884 int status = $lt_dlunknown; |
| 1692 | 1885 |
| 1693 if (self) | 1886 if (self) |
| 1694 { | 1887 { |
| 1695 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | 1888 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 1696 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | 1889 else |
| 1890 { |
| 1891 » if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 1892 else puts (dlerror ()); |
| 1893 » } |
| 1697 /* dlclose (self); */ | 1894 /* dlclose (self); */ |
| 1698 } | 1895 } |
| 1699 else | 1896 else |
| 1700 puts (dlerror ()); | 1897 puts (dlerror ()); |
| 1701 | 1898 |
| 1702 return status; | 1899 return status; |
| 1703 }] | 1900 }] |
| 1704 _LT_EOF | 1901 _LT_EOF |
| 1705 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then | 1902 if AC_TRY_EVAL(ac_link) && test -s "conftest$ac_exeext" 2>/dev/null; then |
| 1706 (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null | 1903 (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null |
| 1707 lt_status=$? | 1904 lt_status=$? |
| 1708 case x$lt_status in | 1905 case x$lt_status in |
| 1709 x$lt_dlno_uscore) $1 ;; | 1906 x$lt_dlno_uscore) $1 ;; |
| 1710 x$lt_dlneed_uscore) $2 ;; | 1907 x$lt_dlneed_uscore) $2 ;; |
| 1711 x$lt_dlunknown|x*) $3 ;; | 1908 x$lt_dlunknown|x*) $3 ;; |
| 1712 esac | 1909 esac |
| 1713 else : | 1910 else : |
| 1714 # compilation failed | 1911 # compilation failed |
| 1715 $3 | 1912 $3 |
| 1716 fi | 1913 fi |
| 1717 fi | 1914 fi |
| 1718 rm -fr conftest* | 1915 rm -fr conftest* |
| 1719 ])# _LT_TRY_DLOPEN_SELF | 1916 ])# _LT_TRY_DLOPEN_SELF |
| 1720 | 1917 |
| 1721 | 1918 |
| 1722 # LT_SYS_DLOPEN_SELF | 1919 # LT_SYS_DLOPEN_SELF |
| 1723 # ------------------ | 1920 # ------------------ |
| 1724 AC_DEFUN([LT_SYS_DLOPEN_SELF], | 1921 AC_DEFUN([LT_SYS_DLOPEN_SELF], |
| 1725 [m4_require([_LT_HEADER_DLFCN])dnl | 1922 [m4_require([_LT_HEADER_DLFCN])dnl |
| 1726 if test "x$enable_dlopen" != xyes; then | 1923 if test yes != "$enable_dlopen"; then |
| 1727 enable_dlopen=unknown | 1924 enable_dlopen=unknown |
| 1728 enable_dlopen_self=unknown | 1925 enable_dlopen_self=unknown |
| 1729 enable_dlopen_self_static=unknown | 1926 enable_dlopen_self_static=unknown |
| 1730 else | 1927 else |
| 1731 lt_cv_dlopen=no | 1928 lt_cv_dlopen=no |
| 1732 lt_cv_dlopen_libs= | 1929 lt_cv_dlopen_libs= |
| 1733 | 1930 |
| 1734 case $host_os in | 1931 case $host_os in |
| 1735 beos*) | 1932 beos*) |
| 1736 lt_cv_dlopen="load_add_on" | 1933 lt_cv_dlopen=load_add_on |
| 1737 lt_cv_dlopen_libs= | 1934 lt_cv_dlopen_libs= |
| 1738 lt_cv_dlopen_self=yes | 1935 lt_cv_dlopen_self=yes |
| 1739 ;; | 1936 ;; |
| 1740 | 1937 |
| 1741 mingw* | pw32* | cegcc*) | 1938 mingw* | pw32* | cegcc*) |
| 1742 lt_cv_dlopen="LoadLibrary" | 1939 lt_cv_dlopen=LoadLibrary |
| 1743 lt_cv_dlopen_libs= | 1940 lt_cv_dlopen_libs= |
| 1744 ;; | 1941 ;; |
| 1745 | 1942 |
| 1746 cygwin*) | 1943 cygwin*) |
| 1747 lt_cv_dlopen="dlopen" | 1944 lt_cv_dlopen=dlopen |
| 1748 lt_cv_dlopen_libs= | 1945 lt_cv_dlopen_libs= |
| 1749 ;; | 1946 ;; |
| 1750 | 1947 |
| 1751 darwin*) | 1948 darwin*) |
| 1752 # if libdl is installed we need to link against it | 1949 # if libdl is installed we need to link against it |
| 1753 AC_CHECK_LIB([dl], [dlopen], | 1950 AC_CHECK_LIB([dl], [dlopen], |
| 1754 » » [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[ | 1951 » » [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl],[ |
| 1755 lt_cv_dlopen="dyld" | 1952 lt_cv_dlopen=dyld |
| 1756 lt_cv_dlopen_libs= | 1953 lt_cv_dlopen_libs= |
| 1757 lt_cv_dlopen_self=yes | 1954 lt_cv_dlopen_self=yes |
| 1758 ]) | 1955 ]) |
| 1759 ;; | 1956 ;; |
| 1760 | 1957 |
| 1958 tpf*) |
| 1959 # Don't try to run any link tests for TPF. We know it's impossible |
| 1960 # because TPF is a cross-compiler, and we know how we open DSOs. |
| 1961 lt_cv_dlopen=dlopen |
| 1962 lt_cv_dlopen_libs= |
| 1963 lt_cv_dlopen_self=no |
| 1964 ;; |
| 1965 |
| 1761 *) | 1966 *) |
| 1762 AC_CHECK_FUNC([shl_load], | 1967 AC_CHECK_FUNC([shl_load], |
| 1763 » [lt_cv_dlopen="shl_load"], | 1968 » [lt_cv_dlopen=shl_load], |
| 1764 [AC_CHECK_LIB([dld], [shl_load], | 1969 [AC_CHECK_LIB([dld], [shl_load], |
| 1765 » [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"], | 1970 » [lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld], |
| 1766 [AC_CHECK_FUNC([dlopen], | 1971 [AC_CHECK_FUNC([dlopen], |
| 1767 » [lt_cv_dlopen="dlopen"], | 1972 » [lt_cv_dlopen=dlopen], |
| 1768 [AC_CHECK_LIB([dl], [dlopen], | 1973 [AC_CHECK_LIB([dl], [dlopen], |
| 1769 » » [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], | 1974 » » [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl], |
| 1770 [AC_CHECK_LIB([svld], [dlopen], | 1975 [AC_CHECK_LIB([svld], [dlopen], |
| 1771 » » [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], | 1976 » » [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld], |
| 1772 [AC_CHECK_LIB([dld], [dld_link], | 1977 [AC_CHECK_LIB([dld], [dld_link], |
| 1773 » » [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"]) | 1978 » » [lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld]) |
| 1774 ]) | 1979 ]) |
| 1775 ]) | 1980 ]) |
| 1776 ]) | 1981 ]) |
| 1777 ]) | 1982 ]) |
| 1778 ]) | 1983 ]) |
| 1779 ;; | 1984 ;; |
| 1780 esac | 1985 esac |
| 1781 | 1986 |
| 1782 if test "x$lt_cv_dlopen" != xno; then | 1987 if test no = "$lt_cv_dlopen"; then |
| 1988 enable_dlopen=no |
| 1989 else |
| 1783 enable_dlopen=yes | 1990 enable_dlopen=yes |
| 1784 else | |
| 1785 enable_dlopen=no | |
| 1786 fi | 1991 fi |
| 1787 | 1992 |
| 1788 case $lt_cv_dlopen in | 1993 case $lt_cv_dlopen in |
| 1789 dlopen) | 1994 dlopen) |
| 1790 save_CPPFLAGS="$CPPFLAGS" | 1995 save_CPPFLAGS=$CPPFLAGS |
| 1791 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | 1996 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
| 1792 | 1997 |
| 1793 save_LDFLAGS="$LDFLAGS" | 1998 save_LDFLAGS=$LDFLAGS |
| 1794 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | 1999 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
| 1795 | 2000 |
| 1796 save_LIBS="$LIBS" | 2001 save_LIBS=$LIBS |
| 1797 LIBS="$lt_cv_dlopen_libs $LIBS" | 2002 LIBS="$lt_cv_dlopen_libs $LIBS" |
| 1798 | 2003 |
| 1799 AC_CACHE_CHECK([whether a program can dlopen itself], | 2004 AC_CACHE_CHECK([whether a program can dlopen itself], |
| 1800 lt_cv_dlopen_self, [dnl | 2005 lt_cv_dlopen_self, [dnl |
| 1801 _LT_TRY_DLOPEN_SELF( | 2006 _LT_TRY_DLOPEN_SELF( |
| 1802 lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, | 2007 lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, |
| 1803 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) | 2008 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) |
| 1804 ]) | 2009 ]) |
| 1805 | 2010 |
| 1806 if test "x$lt_cv_dlopen_self" = xyes; then | 2011 if test yes = "$lt_cv_dlopen_self"; then |
| 1807 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\
" | 2012 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\
" |
| 1808 AC_CACHE_CHECK([whether a statically linked program can dlopen itself], | 2013 AC_CACHE_CHECK([whether a statically linked program can dlopen itself], |
| 1809 lt_cv_dlopen_self_static, [dnl | 2014 lt_cv_dlopen_self_static, [dnl |
| 1810 _LT_TRY_DLOPEN_SELF( | 2015 _LT_TRY_DLOPEN_SELF( |
| 1811 lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, | 2016 lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, |
| 1812 lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) | 2017 lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) |
| 1813 ]) | 2018 ]) |
| 1814 fi | 2019 fi |
| 1815 | 2020 |
| 1816 CPPFLAGS="$save_CPPFLAGS" | 2021 CPPFLAGS=$save_CPPFLAGS |
| 1817 LDFLAGS="$save_LDFLAGS" | 2022 LDFLAGS=$save_LDFLAGS |
| 1818 LIBS="$save_LIBS" | 2023 LIBS=$save_LIBS |
| 1819 ;; | 2024 ;; |
| 1820 esac | 2025 esac |
| 1821 | 2026 |
| 1822 case $lt_cv_dlopen_self in | 2027 case $lt_cv_dlopen_self in |
| 1823 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | 2028 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 1824 *) enable_dlopen_self=unknown ;; | 2029 *) enable_dlopen_self=unknown ;; |
| 1825 esac | 2030 esac |
| 1826 | 2031 |
| 1827 case $lt_cv_dlopen_self_static in | 2032 case $lt_cv_dlopen_self_static in |
| 1828 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | 2033 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1862 | 2067 |
| 1863 lt_compiler_flag="-o out/conftest2.$ac_objext" | 2068 lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 1864 # Insert the option either (1) after the last *FLAGS variable, or | 2069 # Insert the option either (1) after the last *FLAGS variable, or |
| 1865 # (2) before a word containing "conftest.", or (3) at the end. | 2070 # (2) before a word containing "conftest.", or (3) at the end. |
| 1866 # Note that $ac_compile itself does not contain backslashes and begins | 2071 # Note that $ac_compile itself does not contain backslashes and begins |
| 1867 # with a dollar sign (not a hyphen), so the echo should work correctly. | 2072 # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 1868 lt_compile=`echo "$ac_compile" | $SED \ | 2073 lt_compile=`echo "$ac_compile" | $SED \ |
| 1869 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | 2074 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 1870 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ | 2075 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ |
| 1871 -e 's:$: $lt_compiler_flag:'` | 2076 -e 's:$: $lt_compiler_flag:'` |
| 1872 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) | 2077 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) |
| 1873 (eval "$lt_compile" 2>out/conftest.err) | 2078 (eval "$lt_compile" 2>out/conftest.err) |
| 1874 ac_status=$? | 2079 ac_status=$? |
| 1875 cat out/conftest.err >&AS_MESSAGE_LOG_FD | 2080 cat out/conftest.err >&AS_MESSAGE_LOG_FD |
| 1876 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD | 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD |
| 1877 if (exit $ac_status) && test -s out/conftest2.$ac_objext | 2082 if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 1878 then | 2083 then |
| 1879 # The compiler can only warn and ignore the option if not recognized | 2084 # The compiler can only warn and ignore the option if not recognized |
| 1880 # So say no if there are warnings | 2085 # So say no if there are warnings |
| 1881 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | 2086 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
| 1882 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | 2087 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 1883 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/d
ev/null; then | 2088 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/d
ev/null; then |
| 1884 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes | 2089 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes |
| 1885 fi | 2090 fi |
| 1886 fi | 2091 fi |
| 1887 chmod u+w . 2>&AS_MESSAGE_LOG_FD | 2092 chmod u+w . 2>&AS_MESSAGE_LOG_FD |
| 1888 $RM conftest* | 2093 $RM conftest* |
| 1889 # SGI C++ compiler will create directory out/ii_files/ for | 2094 # SGI C++ compiler will create directory out/ii_files/ for |
| 1890 # template instantiation | 2095 # template instantiation |
| 1891 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | 2096 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 1892 $RM out/* && rmdir out | 2097 $RM out/* && rmdir out |
| 1893 cd .. | 2098 cd .. |
| 1894 $RM -r conftest | 2099 $RM -r conftest |
| 1895 $RM conftest* | 2100 $RM conftest* |
| 1896 ]) | 2101 ]) |
| 1897 _LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1], | 2102 _LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1], |
| 1898 [Does compiler simultaneously support -c and -o options?]) | 2103 [Does compiler simultaneously support -c and -o options?]) |
| 1899 ])# _LT_COMPILER_C_O | 2104 ])# _LT_COMPILER_C_O |
| 1900 | 2105 |
| 1901 | 2106 |
| 1902 # _LT_COMPILER_FILE_LOCKS([TAGNAME]) | 2107 # _LT_COMPILER_FILE_LOCKS([TAGNAME]) |
| 1903 # ---------------------------------- | 2108 # ---------------------------------- |
| 1904 # Check to see if we can do hard links to lock some files if needed | 2109 # Check to see if we can do hard links to lock some files if needed |
| 1905 m4_defun([_LT_COMPILER_FILE_LOCKS], | 2110 m4_defun([_LT_COMPILER_FILE_LOCKS], |
| 1906 [m4_require([_LT_ENABLE_LOCK])dnl | 2111 [m4_require([_LT_ENABLE_LOCK])dnl |
| 1907 m4_require([_LT_FILEUTILS_DEFAULTS])dnl | 2112 m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
| 1908 _LT_COMPILER_C_O([$1]) | 2113 _LT_COMPILER_C_O([$1]) |
| 1909 | 2114 |
| 1910 hard_links="nottested" | 2115 hard_links=nottested |
| 1911 if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" !=
no; then | 2116 if test no = "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" && test no != "$need_loc
ks"; then |
| 1912 # do not overwrite the value of need_locks provided by the user | 2117 # do not overwrite the value of need_locks provided by the user |
| 1913 AC_MSG_CHECKING([if we can lock with hard links]) | 2118 AC_MSG_CHECKING([if we can lock with hard links]) |
| 1914 hard_links=yes | 2119 hard_links=yes |
| 1915 $RM conftest* | 2120 $RM conftest* |
| 1916 ln conftest.a conftest.b 2>/dev/null && hard_links=no | 2121 ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 1917 touch conftest.a | 2122 touch conftest.a |
| 1918 ln conftest.a conftest.b 2>&5 || hard_links=no | 2123 ln conftest.a conftest.b 2>&5 || hard_links=no |
| 1919 ln conftest.a conftest.b 2>/dev/null && hard_links=no | 2124 ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 1920 AC_MSG_RESULT([$hard_links]) | 2125 AC_MSG_RESULT([$hard_links]) |
| 1921 if test "$hard_links" = no; then | 2126 if test no = "$hard_links"; then |
| 1922 AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe]) | 2127 AC_MSG_WARN(['$CC' does not support '-c -o', so 'make -j' may be unsafe]) |
| 1923 need_locks=warn | 2128 need_locks=warn |
| 1924 fi | 2129 fi |
| 1925 else | 2130 else |
| 1926 need_locks=no | 2131 need_locks=no |
| 1927 fi | 2132 fi |
| 1928 _LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?]) | 2133 _LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?]) |
| 1929 ])# _LT_COMPILER_FILE_LOCKS | 2134 ])# _LT_COMPILER_FILE_LOCKS |
| 1930 | 2135 |
| 1931 | 2136 |
| 1932 # _LT_CHECK_OBJDIR | 2137 # _LT_CHECK_OBJDIR |
| 1933 # ---------------- | 2138 # ---------------- |
| 1934 m4_defun([_LT_CHECK_OBJDIR], | 2139 m4_defun([_LT_CHECK_OBJDIR], |
| 1935 [AC_CACHE_CHECK([for objdir], [lt_cv_objdir], | 2140 [AC_CACHE_CHECK([for objdir], [lt_cv_objdir], |
| 1936 [rm -f .libs 2>/dev/null | 2141 [rm -f .libs 2>/dev/null |
| 1937 mkdir .libs 2>/dev/null | 2142 mkdir .libs 2>/dev/null |
| 1938 if test -d .libs; then | 2143 if test -d .libs; then |
| 1939 lt_cv_objdir=.libs | 2144 lt_cv_objdir=.libs |
| 1940 else | 2145 else |
| 1941 # MS-DOS does not allow filenames that begin with a dot. | 2146 # MS-DOS does not allow filenames that begin with a dot. |
| 1942 lt_cv_objdir=_libs | 2147 lt_cv_objdir=_libs |
| 1943 fi | 2148 fi |
| 1944 rmdir .libs 2>/dev/null]) | 2149 rmdir .libs 2>/dev/null]) |
| 1945 objdir=$lt_cv_objdir | 2150 objdir=$lt_cv_objdir |
| 1946 _LT_DECL([], [objdir], [0], | 2151 _LT_DECL([], [objdir], [0], |
| 1947 [The name of the directory that contains temporary libtool files])dnl | 2152 [The name of the directory that contains temporary libtool files])dnl |
| 1948 m4_pattern_allow([LT_OBJDIR])dnl | 2153 m4_pattern_allow([LT_OBJDIR])dnl |
| 1949 AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/", | 2154 AC_DEFINE_UNQUOTED([LT_OBJDIR], "$lt_cv_objdir/", |
| 1950 [Define to the sub-directory in which libtool stores uninstalled libraries.]) | 2155 [Define to the sub-directory where libtool stores uninstalled libraries.]) |
| 1951 ])# _LT_CHECK_OBJDIR | 2156 ])# _LT_CHECK_OBJDIR |
| 1952 | 2157 |
| 1953 | 2158 |
| 1954 # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME]) | 2159 # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME]) |
| 1955 # -------------------------------------- | 2160 # -------------------------------------- |
| 1956 # Check hardcoding attributes. | 2161 # Check hardcoding attributes. |
| 1957 m4_defun([_LT_LINKER_HARDCODE_LIBPATH], | 2162 m4_defun([_LT_LINKER_HARDCODE_LIBPATH], |
| 1958 [AC_MSG_CHECKING([how to hardcode library paths into programs]) | 2163 [AC_MSG_CHECKING([how to hardcode library paths into programs]) |
| 1959 _LT_TAGVAR(hardcode_action, $1)= | 2164 _LT_TAGVAR(hardcode_action, $1)= |
| 1960 if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" || | 2165 if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" || |
| 1961 test -n "$_LT_TAGVAR(runpath_var, $1)" || | 2166 test -n "$_LT_TAGVAR(runpath_var, $1)" || |
| 1962 test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then | 2167 test yes = "$_LT_TAGVAR(hardcode_automatic, $1)"; then |
| 1963 | 2168 |
| 1964 # We can hardcode non-existent directories. | 2169 # We can hardcode non-existent directories. |
| 1965 if test "$_LT_TAGVAR(hardcode_direct, $1)" != no && | 2170 if test no != "$_LT_TAGVAR(hardcode_direct, $1)" && |
| 1966 # If the only mechanism to avoid hardcoding is shlibpath_var, we | 2171 # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 1967 # have to relink, otherwise we might link with an installed library | 2172 # have to relink, otherwise we might link with an installed library |
| 1968 # when we should be linking with a yet-to-be-installed one | 2173 # when we should be linking with a yet-to-be-installed one |
| 1969 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no && | 2174 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" && |
| 1970 test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then | 2175 test no != "$_LT_TAGVAR(hardcode_minus_L, $1)"; then |
| 1971 # Linking always hardcodes the temporary library directory. | 2176 # Linking always hardcodes the temporary library directory. |
| 1972 _LT_TAGVAR(hardcode_action, $1)=relink | 2177 _LT_TAGVAR(hardcode_action, $1)=relink |
| 1973 else | 2178 else |
| 1974 # We can link without hardcoding, and we can hardcode nonexisting dirs. | 2179 # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 1975 _LT_TAGVAR(hardcode_action, $1)=immediate | 2180 _LT_TAGVAR(hardcode_action, $1)=immediate |
| 1976 fi | 2181 fi |
| 1977 else | 2182 else |
| 1978 # We cannot hardcode anything, or else we can only hardcode existing | 2183 # We cannot hardcode anything, or else we can only hardcode existing |
| 1979 # directories. | 2184 # directories. |
| 1980 _LT_TAGVAR(hardcode_action, $1)=unsupported | 2185 _LT_TAGVAR(hardcode_action, $1)=unsupported |
| 1981 fi | 2186 fi |
| 1982 AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)]) | 2187 AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)]) |
| 1983 | 2188 |
| 1984 if test "$_LT_TAGVAR(hardcode_action, $1)" = relink || | 2189 if test relink = "$_LT_TAGVAR(hardcode_action, $1)" || |
| 1985 test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then | 2190 test yes = "$_LT_TAGVAR(inherit_rpath, $1)"; then |
| 1986 # Fast installation is not supported | 2191 # Fast installation is not supported |
| 1987 enable_fast_install=no | 2192 enable_fast_install=no |
| 1988 elif test "$shlibpath_overrides_runpath" = yes || | 2193 elif test yes = "$shlibpath_overrides_runpath" || |
| 1989 test "$enable_shared" = no; then | 2194 test no = "$enable_shared"; then |
| 1990 # Fast installation is not necessary | 2195 # Fast installation is not necessary |
| 1991 enable_fast_install=needless | 2196 enable_fast_install=needless |
| 1992 fi | 2197 fi |
| 1993 _LT_TAGDECL([], [hardcode_action], [0], | 2198 _LT_TAGDECL([], [hardcode_action], [0], |
| 1994 [How to hardcode a shared library path into an executable]) | 2199 [How to hardcode a shared library path into an executable]) |
| 1995 ])# _LT_LINKER_HARDCODE_LIBPATH | 2200 ])# _LT_LINKER_HARDCODE_LIBPATH |
| 1996 | 2201 |
| 1997 | 2202 |
| 1998 # _LT_CMD_STRIPLIB | 2203 # _LT_CMD_STRIPLIB |
| 1999 # ---------------- | 2204 # ---------------- |
| 2000 m4_defun([_LT_CMD_STRIPLIB], | 2205 m4_defun([_LT_CMD_STRIPLIB], |
| 2001 [m4_require([_LT_DECL_EGREP]) | 2206 [m4_require([_LT_DECL_EGREP]) |
| 2002 striplib= | 2207 striplib= |
| 2003 old_striplib= | 2208 old_striplib= |
| 2004 AC_MSG_CHECKING([whether stripping libraries is possible]) | 2209 AC_MSG_CHECKING([whether stripping libraries is possible]) |
| 2005 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | 2210 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then |
| 2006 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | 2211 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 2007 test -z "$striplib" && striplib="$STRIP --strip-unneeded" | 2212 test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
| 2008 AC_MSG_RESULT([yes]) | 2213 AC_MSG_RESULT([yes]) |
| 2009 else | 2214 else |
| 2010 # FIXME - insert some real tests, host_os isn't really good enough | 2215 # FIXME - insert some real tests, host_os isn't really good enough |
| 2011 case $host_os in | 2216 case $host_os in |
| 2012 darwin*) | 2217 darwin*) |
| 2013 if test -n "$STRIP" ; then | 2218 if test -n "$STRIP"; then |
| 2014 striplib="$STRIP -x" | 2219 striplib="$STRIP -x" |
| 2015 old_striplib="$STRIP -S" | 2220 old_striplib="$STRIP -S" |
| 2016 AC_MSG_RESULT([yes]) | 2221 AC_MSG_RESULT([yes]) |
| 2017 else | 2222 else |
| 2018 AC_MSG_RESULT([no]) | 2223 AC_MSG_RESULT([no]) |
| 2019 fi | 2224 fi |
| 2020 ;; | 2225 ;; |
| 2021 *) | 2226 *) |
| 2022 AC_MSG_RESULT([no]) | 2227 AC_MSG_RESULT([no]) |
| 2023 ;; | 2228 ;; |
| 2024 esac | 2229 esac |
| 2025 fi | 2230 fi |
| 2026 _LT_DECL([], [old_striplib], [1], [Commands to strip libraries]) | 2231 _LT_DECL([], [old_striplib], [1], [Commands to strip libraries]) |
| 2027 _LT_DECL([], [striplib], [1]) | 2232 _LT_DECL([], [striplib], [1]) |
| 2028 ])# _LT_CMD_STRIPLIB | 2233 ])# _LT_CMD_STRIPLIB |
| 2029 | 2234 |
| 2030 | 2235 |
| 2236 # _LT_PREPARE_MUNGE_PATH_LIST |
| 2237 # --------------------------- |
| 2238 # Make sure func_munge_path_list() is defined correctly. |
| 2239 m4_defun([_LT_PREPARE_MUNGE_PATH_LIST], |
| 2240 [[# func_munge_path_list VARIABLE PATH |
| 2241 # ----------------------------------- |
| 2242 # VARIABLE is name of variable containing _space_ separated list of |
| 2243 # directories to be munged by the contents of PATH, which is string |
| 2244 # having a format: |
| 2245 # "DIR[:DIR]:" |
| 2246 # string "DIR[ DIR]" will be prepended to VARIABLE |
| 2247 # ":DIR[:DIR]" |
| 2248 # string "DIR[ DIR]" will be appended to VARIABLE |
| 2249 # "DIRP[:DIRP]::[DIRA:]DIRA" |
| 2250 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string |
| 2251 # "DIRA[ DIRA]" will be appended to VARIABLE |
| 2252 # "DIR[:DIR]" |
| 2253 # VARIABLE will be replaced by "DIR[ DIR]" |
| 2254 func_munge_path_list () |
| 2255 { |
| 2256 case x@S|@2 in |
| 2257 x) |
| 2258 ;; |
| 2259 *:) |
| 2260 eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'` \@S|@@S|@1\" |
| 2261 ;; |
| 2262 x:*) |
| 2263 eval @S|@1=\"\@S|@@S|@1 `$ECHO @S|@2 | $SED 's/:/ /g'`\" |
| 2264 ;; |
| 2265 *::*) |
| 2266 eval @S|@1=\"\@S|@@S|@1\ `$ECHO @S|@2 | $SED -e 's/.*:://' -e 's/:/ /g'`
\" |
| 2267 eval @S|@1=\"`$ECHO @S|@2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \@S|@@S|@1
\" |
| 2268 ;; |
| 2269 *) |
| 2270 eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'`\" |
| 2271 ;; |
| 2272 esac |
| 2273 } |
| 2274 ]])# _LT_PREPARE_PATH_LIST |
| 2275 |
| 2276 |
| 2031 # _LT_SYS_DYNAMIC_LINKER([TAG]) | 2277 # _LT_SYS_DYNAMIC_LINKER([TAG]) |
| 2032 # ----------------------------- | 2278 # ----------------------------- |
| 2033 # PORTME Fill in your ld.so characteristics | 2279 # PORTME Fill in your ld.so characteristics |
| 2034 m4_defun([_LT_SYS_DYNAMIC_LINKER], | 2280 m4_defun([_LT_SYS_DYNAMIC_LINKER], |
| 2035 [AC_REQUIRE([AC_CANONICAL_HOST])dnl | 2281 [AC_REQUIRE([AC_CANONICAL_HOST])dnl |
| 2036 m4_require([_LT_DECL_EGREP])dnl | 2282 m4_require([_LT_DECL_EGREP])dnl |
| 2037 m4_require([_LT_FILEUTILS_DEFAULTS])dnl | 2283 m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
| 2038 m4_require([_LT_DECL_OBJDUMP])dnl | 2284 m4_require([_LT_DECL_OBJDUMP])dnl |
| 2039 m4_require([_LT_DECL_SED])dnl | 2285 m4_require([_LT_DECL_SED])dnl |
| 2286 m4_require([_LT_CHECK_SHELL_FEATURES])dnl |
| 2287 m4_require([_LT_PREPARE_MUNGE_PATH_LIST])dnl |
| 2040 AC_MSG_CHECKING([dynamic linker characteristics]) | 2288 AC_MSG_CHECKING([dynamic linker characteristics]) |
| 2041 m4_if([$1], | 2289 m4_if([$1], |
| 2042 [], [ | 2290 [], [ |
| 2043 if test "$GCC" = yes; then | 2291 if test yes = "$GCC"; then |
| 2044 case $host_os in | 2292 case $host_os in |
| 2045 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | 2293 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; |
| 2046 *) lt_awk_arg="/^libraries:/" ;; | 2294 *) lt_awk_arg='/^libraries:/' ;; |
| 2047 esac | 2295 esac |
| 2048 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^li
braries://" -e "s,=/,/,g"` | 2296 case $host_os in |
| 2049 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then | 2297 mingw* | cegcc*) lt_sed_strip_eq='s|=\([[A-Za-z]]:\)|\1|g' ;; |
| 2298 *) lt_sed_strip_eq='s|=/|/|g' ;; |
| 2299 esac |
| 2300 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^li
braries://" -e $lt_sed_strip_eq` |
| 2301 case $lt_search_path_spec in |
| 2302 *\;*) |
| 2050 # if the path contains ";" then we assume it to be the separator | 2303 # if the path contains ";" then we assume it to be the separator |
| 2051 # otherwise default to the standard path separator (i.e. ":") - it is | 2304 # otherwise default to the standard path separator (i.e. ":") - it is |
| 2052 # assumed that no part of a normal pathname contains ";" but that should | 2305 # assumed that no part of a normal pathname contains ";" but that should |
| 2053 # okay in the real world where ";" in dirpaths is itself problematic. | 2306 # okay in the real world where ";" in dirpaths is itself problematic. |
| 2054 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` | 2307 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` |
| 2055 else | 2308 ;; |
| 2056 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARA
TOR/ /g"` | 2309 *) |
| 2057 fi | 2310 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/
/g"` |
| 2311 ;; |
| 2312 esac |
| 2058 # Ok, now we have the path, separated by spaces, we can step through it | 2313 # Ok, now we have the path, separated by spaces, we can step through it |
| 2059 # and add multilib dir if necessary. | 2314 # and add multilib dir if necessary... |
| 2060 lt_tmp_lt_search_path_spec= | 2315 lt_tmp_lt_search_path_spec= |
| 2061 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/d
ev/null` | 2316 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/
dev/null` |
| 2317 # ...but if some path component already ends with the multilib dir we assume |
| 2318 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). |
| 2319 case "$lt_multi_os_dir; $lt_search_path_spec " in |
| 2320 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) |
| 2321 lt_multi_os_dir= |
| 2322 ;; |
| 2323 esac |
| 2062 for lt_sys_path in $lt_search_path_spec; do | 2324 for lt_sys_path in $lt_search_path_spec; do |
| 2063 if test -d "$lt_sys_path/$lt_multi_os_dir"; then | 2325 if test -d "$lt_sys_path$lt_multi_os_dir"; then |
| 2064 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_m
ulti_os_dir" | 2326 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_mu
lti_os_dir" |
| 2065 else | 2327 elif test -n "$lt_multi_os_dir"; then |
| 2066 test -d "$lt_sys_path" && \ | 2328 test -d "$lt_sys_path" && \ |
| 2067 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | 2329 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" |
| 2068 fi | 2330 fi |
| 2069 done | 2331 done |
| 2070 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' | 2332 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' |
| 2071 BEGIN {RS=" "; FS="/|\n";} { | 2333 BEGIN {RS = " "; FS = "/|\n";} { |
| 2072 lt_foo=""; | 2334 lt_foo = ""; |
| 2073 lt_count=0; | 2335 lt_count = 0; |
| 2074 for (lt_i = NF; lt_i > 0; lt_i--) { | 2336 for (lt_i = NF; lt_i > 0; lt_i--) { |
| 2075 if ($lt_i != "" && $lt_i != ".") { | 2337 if ($lt_i != "" && $lt_i != ".") { |
| 2076 if ($lt_i == "..") { | 2338 if ($lt_i == "..") { |
| 2077 lt_count++; | 2339 lt_count++; |
| 2078 } else { | 2340 } else { |
| 2079 if (lt_count == 0) { | 2341 if (lt_count == 0) { |
| 2080 lt_foo="/" $lt_i lt_foo; | 2342 lt_foo = "/" $lt_i lt_foo; |
| 2081 } else { | 2343 } else { |
| 2082 lt_count--; | 2344 lt_count--; |
| 2083 } | 2345 } |
| 2084 } | 2346 } |
| 2085 } | 2347 } |
| 2086 } | 2348 } |
| 2087 if (lt_foo != "") { lt_freq[[lt_foo]]++; } | 2349 if (lt_foo != "") { lt_freq[[lt_foo]]++; } |
| 2088 if (lt_freq[[lt_foo]] == 1) { print lt_foo; } | 2350 if (lt_freq[[lt_foo]] == 1) { print lt_foo; } |
| 2089 }'` | 2351 }'` |
| 2090 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` | 2352 # AWK program above erroneously prepends '/' to C:/dos/paths |
| 2353 # for these hosts. |
| 2354 case $host_os in |
| 2355 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ |
| 2356 $SED 's|/\([[A-Za-z]]:\)|\1|g'` ;; |
| 2357 esac |
| 2358 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` |
| 2091 else | 2359 else |
| 2092 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | 2360 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 2093 fi]) | 2361 fi]) |
| 2094 library_names_spec= | 2362 library_names_spec= |
| 2095 libname_spec='lib$name' | 2363 libname_spec='lib$name' |
| 2096 soname_spec= | 2364 soname_spec= |
| 2097 shrext_cmds=".so" | 2365 shrext_cmds=.so |
| 2098 postinstall_cmds= | 2366 postinstall_cmds= |
| 2099 postuninstall_cmds= | 2367 postuninstall_cmds= |
| 2100 finish_cmds= | 2368 finish_cmds= |
| 2101 finish_eval= | 2369 finish_eval= |
| 2102 shlibpath_var= | 2370 shlibpath_var= |
| 2103 shlibpath_overrides_runpath=unknown | 2371 shlibpath_overrides_runpath=unknown |
| 2104 version_type=none | 2372 version_type=none |
| 2105 dynamic_linker="$host_os ld.so" | 2373 dynamic_linker="$host_os ld.so" |
| 2106 sys_lib_dlsearch_path_spec="/lib /usr/lib" | 2374 sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 2107 need_lib_prefix=unknown | 2375 need_lib_prefix=unknown |
| 2108 hardcode_into_libs=no | 2376 hardcode_into_libs=no |
| 2109 | 2377 |
| 2110 # when you set need_version to no, make sure it does not cause -set_version | 2378 # when you set need_version to no, make sure it does not cause -set_version |
| 2111 # flags to be left without arguments | 2379 # flags to be left without arguments |
| 2112 need_version=unknown | 2380 need_version=unknown |
| 2113 | 2381 |
| 2382 AC_ARG_VAR([LT_SYS_LIBRARY_PATH], |
| 2383 [User-defined run-time library search path.]) |
| 2384 |
| 2114 case $host_os in | 2385 case $host_os in |
| 2115 aix3*) | 2386 aix3*) |
| 2116 version_type=linux | 2387 version_type=linux # correct to gnu/linux during the next big refactor |
| 2117 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | 2388 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' |
| 2118 shlibpath_var=LIBPATH | 2389 shlibpath_var=LIBPATH |
| 2119 | 2390 |
| 2120 # AIX 3 has no versioning support, so we append a major version to the name. | 2391 # AIX 3 has no versioning support, so we append a major version to the name. |
| 2121 soname_spec='${libname}${release}${shared_ext}$major' | 2392 soname_spec='$libname$release$shared_ext$major' |
| 2122 ;; | 2393 ;; |
| 2123 | 2394 |
| 2124 aix[[4-9]]*) | 2395 aix[[4-9]]*) |
| 2125 version_type=linux | 2396 version_type=linux # correct to gnu/linux during the next big refactor |
| 2126 need_lib_prefix=no | 2397 need_lib_prefix=no |
| 2127 need_version=no | 2398 need_version=no |
| 2128 hardcode_into_libs=yes | 2399 hardcode_into_libs=yes |
| 2129 if test "$host_cpu" = ia64; then | 2400 if test ia64 = "$host_cpu"; then |
| 2130 # AIX 5 supports IA64 | 2401 # AIX 5 supports IA64 |
| 2131 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${rele
ase}${shared_ext}$versuffix $libname${shared_ext}' | 2402 library_names_spec='$libname$release$shared_ext$major $libname$release$share
d_ext$versuffix $libname$shared_ext' |
| 2132 shlibpath_var=LD_LIBRARY_PATH | 2403 shlibpath_var=LD_LIBRARY_PATH |
| 2133 else | 2404 else |
| 2134 # With GCC up to 2.95.x, collect2 would create an import file | 2405 # With GCC up to 2.95.x, collect2 would create an import file |
| 2135 # for dependence libraries. The import file would start with | 2406 # for dependence libraries. The import file would start with |
| 2136 # the line `#! .'. This would cause the generated library to | 2407 # the line '#! .'. This would cause the generated library to |
| 2137 # depend on `.', always an invalid library. This was fixed in | 2408 # depend on '.', always an invalid library. This was fixed in |
| 2138 # development snapshots of GCC prior to 3.0. | 2409 # development snapshots of GCC prior to 3.0. |
| 2139 case $host_os in | 2410 case $host_os in |
| 2140 aix4 | aix4.[[01]] | aix4.[[01]].*) | 2411 aix4 | aix4.[[01]] | aix4.[[01]].*) |
| 2141 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | 2412 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 2142 echo ' yes ' | 2413 echo ' yes ' |
| 2143 » echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | 2414 » echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then |
| 2144 : | 2415 : |
| 2145 else | 2416 else |
| 2146 can_build_shared=no | 2417 can_build_shared=no |
| 2147 fi | 2418 fi |
| 2148 ;; | 2419 ;; |
| 2149 esac | 2420 esac |
| 2150 # AIX (on Power*) has no versioning support, so currently we can not hardcod
e correct | 2421 # Using Import Files as archive members, it is possible to support |
| 2422 # filename-based versioning of shared library archives on AIX. While |
| 2423 # this would work for both with and without runtime linking, it will |
| 2424 # prevent static linking of such archives. So we do filename-based |
| 2425 # shared library versioning with .so extension only, which is used |
| 2426 # when both runtime linking and shared linking is enabled. |
| 2427 # Unfortunately, runtime linking may impact performance, so we do |
| 2428 # not want this to be the default eventually. Also, we use the |
| 2429 # versioned .so libs for executables only if there is the -brtl |
| 2430 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. |
| 2431 # To allow for filename-based versioning support, we need to create |
| 2432 # libNAME.so.V as an archive file, containing: |
| 2433 # *) an Import File, referring to the versioned filename of the |
| 2434 # archive as well as the shared archive member, telling the |
| 2435 # bitwidth (32 or 64) of that shared object, and providing the |
| 2436 # list of exported symbols of that shared object, eventually |
| 2437 # decorated with the 'weak' keyword |
| 2438 # *) the shared object with the F_LOADONLY flag set, to really avoid |
| 2439 # it being seen by the linker. |
| 2440 # At run time we better use the real file rather than another symlink, |
| 2441 # but for link time we create the symlink libNAME.so -> libNAME.so.V |
| 2442 |
| 2443 case $with_aix_soname,$aix_use_runtimelinking in |
| 2444 # AIX (on Power*) has no versioning support, so currently we cannot hardcode
correct |
| 2151 # soname into executable. Probably we can add versioning support to | 2445 # soname into executable. Probably we can add versioning support to |
| 2152 # collect2, so additional links can be useful in future. | 2446 # collect2, so additional links can be useful in future. |
| 2153 if test "$aix_use_runtimelinking" = yes; then | 2447 aix,yes) # traditional libtool |
| 2448 dynamic_linker='AIX unversionable lib.so' |
| 2154 # If using run time linking (on AIX 4.2 or later) use lib<name>.so | 2449 # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 2155 # instead of lib<name>.a to let people know that these are not | 2450 # instead of lib<name>.a to let people know that these are not |
| 2156 # typical AIX shared libraries. | 2451 # typical AIX shared libraries. |
| 2157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}
${release}${shared_ext}$major $libname${shared_ext}' | 2452 library_names_spec='$libname$release$shared_ext$versuffix $libname$release
$shared_ext$major $libname$shared_ext' |
| 2158 else | 2453 ;; |
| 2454 aix,no) # traditional AIX only |
| 2455 dynamic_linker='AIX lib.a[(]lib.so.V[)]' |
| 2159 # We preserve .a as extension for shared libraries through AIX4.2 | 2456 # We preserve .a as extension for shared libraries through AIX4.2 |
| 2160 # and later when we are not doing run time linking. | 2457 # and later when we are not doing run time linking. |
| 2161 library_names_spec='${libname}${release}.a $libname.a' | 2458 library_names_spec='$libname$release.a $libname.a' |
| 2162 soname_spec='${libname}${release}${shared_ext}$major' | 2459 soname_spec='$libname$release$shared_ext$major' |
| 2163 fi | 2460 ;; |
| 2461 svr4,*) # full svr4 only |
| 2462 dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)]" |
| 2463 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' |
| 2464 # We do not specify a path in Import Files, so LIBPATH fires. |
| 2465 shlibpath_overrides_runpath=yes |
| 2466 ;; |
| 2467 *,yes) # both, prefer svr4 |
| 2468 dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)], lib.a[(]l
ib.so.V[)]" |
| 2469 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' |
| 2470 # unpreferred sharedlib libNAME.a needs extra handling |
| 2471 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripna
me "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libex
t" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$st
riplib" || $striplib "$destdir/$func_stripname_result.$libext"' |
| 2472 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_
stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfi
les " $odir/$func_stripname_result.$libext"' |
| 2473 # We do not specify a path in Import Files, so LIBPATH fires. |
| 2474 shlibpath_overrides_runpath=yes |
| 2475 ;; |
| 2476 *,no) # both, prefer aix |
| 2477 dynamic_linker="AIX lib.a[(]lib.so.V[)], lib.so.V[(]$shared_archive_member
_spec.o[)]" |
| 2478 library_names_spec='$libname$release.a $libname.a' |
| 2479 soname_spec='$libname$release$shared_ext$major' |
| 2480 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra han
dling |
| 2481 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $
destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir
/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$link
name"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' |
| 2482 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlna
me"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"
~func_append rmfiles " $odir/$func_stripname_result.so"' |
| 2483 ;; |
| 2484 esac |
| 2164 shlibpath_var=LIBPATH | 2485 shlibpath_var=LIBPATH |
| 2165 fi | 2486 fi |
| 2166 ;; | 2487 ;; |
| 2167 | 2488 |
| 2168 amigaos*) | 2489 amigaos*) |
| 2169 case $host_cpu in | 2490 case $host_cpu in |
| 2170 powerpc) | 2491 powerpc) |
| 2171 # Since July 2007 AmigaOS4 officially supports .so libraries. | 2492 # Since July 2007 AmigaOS4 officially supports .so libraries. |
| 2172 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | 2493 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. |
| 2173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${
release}${shared_ext}$major $libname${shared_ext}' | 2494 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$s
hared_ext$major $libname$shared_ext' |
| 2174 ;; | 2495 ;; |
| 2175 m68k) | 2496 m68k) |
| 2176 library_names_spec='$libname.ixlibrary $libname.a' | 2497 library_names_spec='$libname.ixlibrary $libname.a' |
| 2177 # Create ${libname}_ixlibrary.a entries in /sys/libs. | 2498 # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 2178 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$E
CHO "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys
/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlib
rary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' | 2499 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`fu
nc_echo_all "$lib" | $SED '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; $RM /sys/l
ibs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibra
ry.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' |
| 2179 ;; | 2500 ;; |
| 2180 esac | 2501 esac |
| 2181 ;; | 2502 ;; |
| 2182 | 2503 |
| 2183 beos*) | 2504 beos*) |
| 2184 library_names_spec='${libname}${shared_ext}' | 2505 library_names_spec='$libname$shared_ext' |
| 2185 dynamic_linker="$host_os ld.so" | 2506 dynamic_linker="$host_os ld.so" |
| 2186 shlibpath_var=LIBRARY_PATH | 2507 shlibpath_var=LIBRARY_PATH |
| 2187 ;; | 2508 ;; |
| 2188 | 2509 |
| 2189 bsdi[[45]]*) | 2510 bsdi[[45]]*) |
| 2190 version_type=linux | 2511 version_type=linux # correct to gnu/linux during the next big refactor |
| 2191 need_version=no | 2512 need_version=no |
| 2192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major $libname${shared_ext}' | 2513 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$sha
red_ext$major $libname$shared_ext' |
| 2193 soname_spec='${libname}${release}${shared_ext}$major' | 2514 soname_spec='$libname$release$shared_ext$major' |
| 2194 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | 2515 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 2195 shlibpath_var=LD_LIBRARY_PATH | 2516 shlibpath_var=LD_LIBRARY_PATH |
| 2196 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /
usr/local/lib" | 2517 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /
usr/local/lib" |
| 2197 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | 2518 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 2198 # the default ld.so.conf also contains /usr/contrib/lib and | 2519 # the default ld.so.conf also contains /usr/contrib/lib and |
| 2199 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | 2520 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 2200 # libtool to hard-code these into programs | 2521 # libtool to hard-code these into programs |
| 2201 ;; | 2522 ;; |
| 2202 | 2523 |
| 2203 cygwin* | mingw* | pw32* | cegcc*) | 2524 cygwin* | mingw* | pw32* | cegcc*) |
| 2204 version_type=windows | 2525 version_type=windows |
| 2205 shrext_cmds=".dll" | 2526 shrext_cmds=.dll |
| 2206 need_version=no | 2527 need_version=no |
| 2207 need_lib_prefix=no | 2528 need_lib_prefix=no |
| 2208 | 2529 |
| 2209 case $GCC,$host_os in | 2530 case $GCC,$cc_basename in |
| 2210 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | 2531 yes,*) |
| 2532 # gcc |
| 2211 library_names_spec='$libname.dll.a' | 2533 library_names_spec='$libname.dll.a' |
| 2212 # DLL is installed to $(libdir)/../bin by postinstall_cmds | 2534 # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 2213 postinstall_cmds='base_file=`basename \${file}`~ | 2535 postinstall_cmds='base_file=`basename \$file`~ |
| 2214 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\'
'`~ | 2536 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`
~ |
| 2215 dldir=$destdir/`dirname \$dlpath`~ | 2537 dldir=$destdir/`dirname \$dlpath`~ |
| 2216 test -d \$dldir || mkdir -p \$dldir~ | 2538 test -d \$dldir || mkdir -p \$dldir~ |
| 2217 $install_prog $dir/$dlname \$dldir/$dlname~ | 2539 $install_prog $dir/$dlname \$dldir/$dlname~ |
| 2218 chmod a+x \$dldir/$dlname~ | 2540 chmod a+x \$dldir/$dlname~ |
| 2219 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | 2541 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
| 2220 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | 2542 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
| 2221 fi' | 2543 fi' |
| 2222 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | 2544 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 2223 dlpath=$dir/\$dldll~ | 2545 dlpath=$dir/\$dldll~ |
| 2224 $RM \$dlpath' | 2546 $RM \$dlpath' |
| 2225 shlibpath_overrides_runpath=yes | 2547 shlibpath_overrides_runpath=yes |
| 2226 | 2548 |
| 2227 case $host_os in | 2549 case $host_os in |
| 2228 cygwin*) | 2550 cygwin*) |
| 2229 # Cygwin DLLs use 'cyg' prefix rather than 'lib' | 2551 # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 2230 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $S
ED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' | 2552 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -
e 's/[[.]]/-/g'`$versuffix$shared_ext' |
| 2231 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | 2553 m4_if([$1], [],[ |
| 2554 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"]) |
| 2232 ;; | 2555 ;; |
| 2233 mingw* | cegcc*) | 2556 mingw* | cegcc*) |
| 2234 # MinGW DLLs use traditional 'lib' prefix | 2557 # MinGW DLLs use traditional 'lib' prefix |
| 2235 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffi
x}${shared_ext}' | 2558 soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$sha
red_ext' |
| 2236 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $
SED -e "s/^libraries://" -e "s,=/,/,g"` | |
| 2237 if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; t
hen | |
| 2238 # It is most probably a Windows format PATH printed by | |
| 2239 # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
| 2240 # path with ; separators, and with drive letters. We can handle the | |
| 2241 # drive letters (cygwin fileutils understands them), so leave them, | |
| 2242 # especially as we might pass files found there to a mingw objdump, | |
| 2243 # which wouldn't understand a cygwinified path. Ahh. | |
| 2244 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's
/;/ /g'` | |
| 2245 else | |
| 2246 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "
s/$PATH_SEPARATOR/ /g"` | |
| 2247 fi | |
| 2248 ;; | 2559 ;; |
| 2249 pw32*) | 2560 pw32*) |
| 2250 # pw32 DLLs use 'pw' prefix rather than 'lib' | 2561 # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 2251 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release
} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' | 2562 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release |
$SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' |
| 2252 ;; | 2563 ;; |
| 2253 esac | 2564 esac |
| 2565 dynamic_linker='Win32 ld.exe' |
| 2566 ;; |
| 2567 |
| 2568 *,cl*) |
| 2569 # Native MSVC |
| 2570 libname_spec='$name' |
| 2571 soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$share
d_ext' |
| 2572 library_names_spec='$libname.dll.lib' |
| 2573 |
| 2574 case $build_os in |
| 2575 mingw*) |
| 2576 sys_lib_search_path_spec= |
| 2577 lt_save_ifs=$IFS |
| 2578 IFS=';' |
| 2579 for lt_path in $LIB |
| 2580 do |
| 2581 IFS=$lt_save_ifs |
| 2582 # Let DOS variable expansion print the short 8.3 style file name. |
| 2583 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo
%~si"` |
| 2584 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" |
| 2585 done |
| 2586 IFS=$lt_save_ifs |
| 2587 # Convert to MSYS style. |
| 2588 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\
\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'` |
| 2589 ;; |
| 2590 cygwin*) |
| 2591 # Convert to unix form, then to dos form, then back to unix form |
| 2592 # but this time dos style (no spaces!) so that the unix form looks |
| 2593 # like /cygdrive/c/PROGRA~1:/cygdr... |
| 2594 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` |
| 2595 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec"
2>/dev/null` |
| 2596 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec
" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 2597 ;; |
| 2598 *) |
| 2599 sys_lib_search_path_spec=$LIB |
| 2600 if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; t
hen |
| 2601 # It is most probably a Windows format PATH. |
| 2602 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's
/;/ /g'` |
| 2603 else |
| 2604 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s
/$PATH_SEPARATOR/ /g"` |
| 2605 fi |
| 2606 # FIXME: find the short name or the path components, as spaces are |
| 2607 # common. (e.g. "Program Files" -> "PROGRA~1") |
| 2608 ;; |
| 2609 esac |
| 2610 |
| 2611 # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 2612 postinstall_cmds='base_file=`basename \$file`~ |
| 2613 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`
~ |
| 2614 dldir=$destdir/`dirname \$dlpath`~ |
| 2615 test -d \$dldir || mkdir -p \$dldir~ |
| 2616 $install_prog $dir/$dlname \$dldir/$dlname' |
| 2617 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 2618 dlpath=$dir/\$dldll~ |
| 2619 $RM \$dlpath' |
| 2620 shlibpath_overrides_runpath=yes |
| 2621 dynamic_linker='Win32 link.exe' |
| 2254 ;; | 2622 ;; |
| 2255 | 2623 |
| 2256 *) | 2624 *) |
| 2257 library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${ver
suffix}${shared_ext} $libname.lib' | 2625 # Assume MSVC wrapper |
| 2626 library_names_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffi
x$shared_ext $libname.lib' |
| 2627 dynamic_linker='Win32 ld.exe' |
| 2258 ;; | 2628 ;; |
| 2259 esac | 2629 esac |
| 2260 dynamic_linker='Win32 ld.exe' | |
| 2261 # FIXME: first we should search . and the directory the executable is in | 2630 # FIXME: first we should search . and the directory the executable is in |
| 2262 shlibpath_var=PATH | 2631 shlibpath_var=PATH |
| 2263 ;; | 2632 ;; |
| 2264 | 2633 |
| 2265 darwin* | rhapsody*) | 2634 darwin* | rhapsody*) |
| 2266 dynamic_linker="$host_os dyld" | 2635 dynamic_linker="$host_os dyld" |
| 2267 version_type=darwin | 2636 version_type=darwin |
| 2268 need_lib_prefix=no | 2637 need_lib_prefix=no |
| 2269 need_version=no | 2638 need_version=no |
| 2270 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_
ext' | 2639 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' |
| 2271 soname_spec='${libname}${release}${major}$shared_ext' | 2640 soname_spec='$libname$release$major$shared_ext' |
| 2272 shlibpath_overrides_runpath=yes | 2641 shlibpath_overrides_runpath=yes |
| 2273 shlibpath_var=DYLD_LIBRARY_PATH | 2642 shlibpath_var=DYLD_LIBRARY_PATH |
| 2274 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | 2643 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
| 2275 m4_if([$1], [],[ | 2644 m4_if([$1], [],[ |
| 2276 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) | 2645 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) |
| 2277 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | 2646 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 2278 ;; | 2647 ;; |
| 2279 | 2648 |
| 2280 dgux*) | 2649 dgux*) |
| 2281 version_type=linux | 2650 version_type=linux # correct to gnu/linux during the next big refactor |
| 2282 need_lib_prefix=no | 2651 need_lib_prefix=no |
| 2283 need_version=no | 2652 need_version=no |
| 2284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major $libname$shared_ext' | 2653 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$sha
red_ext$major $libname$shared_ext' |
| 2285 soname_spec='${libname}${release}${shared_ext}$major' | 2654 soname_spec='$libname$release$shared_ext$major' |
| 2286 shlibpath_var=LD_LIBRARY_PATH | 2655 shlibpath_var=LD_LIBRARY_PATH |
| 2287 ;; | 2656 ;; |
| 2288 | 2657 |
| 2289 freebsd1*) | |
| 2290 dynamic_linker=no | |
| 2291 ;; | |
| 2292 | |
| 2293 freebsd* | dragonfly*) | 2658 freebsd* | dragonfly*) |
| 2294 # DragonFly does not have aout. When/if they implement a new | 2659 # DragonFly does not have aout. When/if they implement a new |
| 2295 # versioning mechanism, adjust this. | 2660 # versioning mechanism, adjust this. |
| 2296 if test -x /usr/bin/objformat; then | 2661 if test -x /usr/bin/objformat; then |
| 2297 objformat=`/usr/bin/objformat` | 2662 objformat=`/usr/bin/objformat` |
| 2298 else | 2663 else |
| 2299 case $host_os in | 2664 case $host_os in |
| 2300 freebsd[[123]]*) objformat=aout ;; | 2665 freebsd[[23]].*) objformat=aout ;; |
| 2301 *) objformat=elf ;; | 2666 *) objformat=elf ;; |
| 2302 esac | 2667 esac |
| 2303 fi | 2668 fi |
| 2304 version_type=freebsd-$objformat | 2669 version_type=freebsd-$objformat |
| 2305 case $version_type in | 2670 case $version_type in |
| 2306 freebsd-elf*) | 2671 freebsd-elf*) |
| 2307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}
${release}${shared_ext} $libname${shared_ext}' | 2672 library_names_spec='$libname$release$shared_ext$versuffix $libname$release
$shared_ext$major $libname$shared_ext' |
| 2673 soname_spec='$libname$release$shared_ext$major' |
| 2308 need_version=no | 2674 need_version=no |
| 2309 need_lib_prefix=no | 2675 need_lib_prefix=no |
| 2310 ;; | 2676 ;; |
| 2311 freebsd-*) | 2677 freebsd-*) |
| 2312 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${
shared_ext}$versuffix' | 2678 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_
ext$versuffix' |
| 2313 need_version=yes | 2679 need_version=yes |
| 2314 ;; | 2680 ;; |
| 2315 esac | 2681 esac |
| 2316 shlibpath_var=LD_LIBRARY_PATH | 2682 shlibpath_var=LD_LIBRARY_PATH |
| 2317 case $host_os in | 2683 case $host_os in |
| 2318 freebsd2*) | 2684 freebsd2.*) |
| 2319 shlibpath_overrides_runpath=yes | 2685 shlibpath_overrides_runpath=yes |
| 2320 ;; | 2686 ;; |
| 2321 freebsd3.[[01]]* | freebsdelf3.[[01]]*) | 2687 freebsd3.[[01]]* | freebsdelf3.[[01]]*) |
| 2322 shlibpath_overrides_runpath=yes | 2688 shlibpath_overrides_runpath=yes |
| 2323 hardcode_into_libs=yes | 2689 hardcode_into_libs=yes |
| 2324 ;; | 2690 ;; |
| 2325 freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ | 2691 freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ |
| 2326 freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) | 2692 freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) |
| 2327 shlibpath_overrides_runpath=no | 2693 shlibpath_overrides_runpath=no |
| 2328 hardcode_into_libs=yes | 2694 hardcode_into_libs=yes |
| 2329 ;; | 2695 ;; |
| 2330 *) # from 4.6 on, and DragonFly | 2696 *) # from 4.6 on, and DragonFly |
| 2331 shlibpath_overrides_runpath=yes | 2697 shlibpath_overrides_runpath=yes |
| 2332 hardcode_into_libs=yes | 2698 hardcode_into_libs=yes |
| 2333 ;; | 2699 ;; |
| 2334 esac | 2700 esac |
| 2335 ;; | 2701 ;; |
| 2336 | 2702 |
| 2337 gnu*) | 2703 haiku*) |
| 2338 version_type=linux | 2704 version_type=linux # correct to gnu/linux during the next big refactor |
| 2339 need_lib_prefix=no | 2705 need_lib_prefix=no |
| 2340 need_version=no | 2706 need_version=no |
| 2341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}${major} ${libname}${shared_ext}' | 2707 dynamic_linker="$host_os runtime_loader" |
| 2342 soname_spec='${libname}${release}${shared_ext}$major' | 2708 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$sha
red_ext$major $libname$shared_ext' |
| 2343 shlibpath_var=LD_LIBRARY_PATH | 2709 soname_spec='$libname$release$shared_ext$major' |
| 2710 shlibpath_var=LIBRARY_PATH |
| 2711 shlibpath_overrides_runpath=no |
| 2712 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/syste
m/lib' |
| 2344 hardcode_into_libs=yes | 2713 hardcode_into_libs=yes |
| 2345 ;; | 2714 ;; |
| 2346 | 2715 |
| 2347 hpux9* | hpux10* | hpux11*) | 2716 hpux9* | hpux10* | hpux11*) |
| 2348 # Give a soname corresponding to the major version so that dld.sl refuses to | 2717 # Give a soname corresponding to the major version so that dld.sl refuses to |
| 2349 # link against other versions. | 2718 # link against other versions. |
| 2350 version_type=sunos | 2719 version_type=sunos |
| 2351 need_lib_prefix=no | 2720 need_lib_prefix=no |
| 2352 need_version=no | 2721 need_version=no |
| 2353 case $host_cpu in | 2722 case $host_cpu in |
| 2354 ia64*) | 2723 ia64*) |
| 2355 shrext_cmds='.so' | 2724 shrext_cmds='.so' |
| 2356 hardcode_into_libs=yes | 2725 hardcode_into_libs=yes |
| 2357 dynamic_linker="$host_os dld.so" | 2726 dynamic_linker="$host_os dld.so" |
| 2358 shlibpath_var=LD_LIBRARY_PATH | 2727 shlibpath_var=LD_LIBRARY_PATH |
| 2359 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | 2728 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 2360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${
release}${shared_ext}$major $libname${shared_ext}' | 2729 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$s
hared_ext$major $libname$shared_ext' |
| 2361 soname_spec='${libname}${release}${shared_ext}$major' | 2730 soname_spec='$libname$release$shared_ext$major' |
| 2362 if test "X$HPUX_IA64_MODE" = X32; then | 2731 if test 32 = "$HPUX_IA64_MODE"; then |
| 2363 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local
/lib" | 2732 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local
/lib" |
| 2733 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 |
| 2364 else | 2734 else |
| 2365 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | 2735 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 2736 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 |
| 2366 fi | 2737 fi |
| 2367 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
| 2368 ;; | 2738 ;; |
| 2369 hppa*64*) | 2739 hppa*64*) |
| 2370 shrext_cmds='.sl' | 2740 shrext_cmds='.sl' |
| 2371 hardcode_into_libs=yes | 2741 hardcode_into_libs=yes |
| 2372 dynamic_linker="$host_os dld.sl" | 2742 dynamic_linker="$host_os dld.sl" |
| 2373 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | 2743 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 2374 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | 2744 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 2375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${
release}${shared_ext}$major $libname${shared_ext}' | 2745 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$s
hared_ext$major $libname$shared_ext' |
| 2376 soname_spec='${libname}${release}${shared_ext}$major' | 2746 soname_spec='$libname$release$shared_ext$major' |
| 2377 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | 2747 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 2378 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | 2748 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 2379 ;; | 2749 ;; |
| 2380 *) | 2750 *) |
| 2381 shrext_cmds='.sl' | 2751 shrext_cmds='.sl' |
| 2382 dynamic_linker="$host_os dld.sl" | 2752 dynamic_linker="$host_os dld.sl" |
| 2383 shlibpath_var=SHLIB_PATH | 2753 shlibpath_var=SHLIB_PATH |
| 2384 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | 2754 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 2385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${
release}${shared_ext}$major $libname${shared_ext}' | 2755 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$s
hared_ext$major $libname$shared_ext' |
| 2386 soname_spec='${libname}${release}${shared_ext}$major' | 2756 soname_spec='$libname$release$shared_ext$major' |
| 2387 ;; | 2757 ;; |
| 2388 esac | 2758 esac |
| 2389 # HP-UX runs *really* slowly unless shared libraries are mode 555. | 2759 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
| 2390 postinstall_cmds='chmod 555 $lib' | 2760 postinstall_cmds='chmod 555 $lib' |
| 2761 # or fails outright, so override atomically: |
| 2762 install_override_mode=555 |
| 2391 ;; | 2763 ;; |
| 2392 | 2764 |
| 2393 interix[[3-9]]*) | 2765 interix[[3-9]]*) |
| 2394 version_type=linux | 2766 version_type=linux # correct to gnu/linux during the next big refactor |
| 2395 need_lib_prefix=no | 2767 need_lib_prefix=no |
| 2396 need_version=no | 2768 need_version=no |
| 2397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major ${libname}${shared_ext}' | 2769 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$sha
red_ext$major $libname$shared_ext' |
| 2398 soname_spec='${libname}${release}${shared_ext}$major' | 2770 soname_spec='$libname$release$shared_ext$major' |
| 2399 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | 2771 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 2400 shlibpath_var=LD_LIBRARY_PATH | 2772 shlibpath_var=LD_LIBRARY_PATH |
| 2401 shlibpath_overrides_runpath=no | 2773 shlibpath_overrides_runpath=no |
| 2402 hardcode_into_libs=yes | 2774 hardcode_into_libs=yes |
| 2403 ;; | 2775 ;; |
| 2404 | 2776 |
| 2405 irix5* | irix6* | nonstopux*) | 2777 irix5* | irix6* | nonstopux*) |
| 2406 case $host_os in | 2778 case $host_os in |
| 2407 nonstopux*) version_type=nonstopux ;; | 2779 nonstopux*) version_type=nonstopux ;; |
| 2408 *) | 2780 *) |
| 2409 » if test "$lt_cv_prog_gnu_ld" = yes; then | 2781 » if test yes = "$lt_cv_prog_gnu_ld"; then |
| 2410 » » version_type=linux | 2782 » » version_type=linux # correct to gnu/linux during the next big re
factor |
| 2411 else | 2783 else |
| 2412 version_type=irix | 2784 version_type=irix |
| 2413 fi ;; | 2785 fi ;; |
| 2414 esac | 2786 esac |
| 2415 need_lib_prefix=no | 2787 need_lib_prefix=no |
| 2416 need_version=no | 2788 need_version=no |
| 2417 soname_spec='${libname}${release}${shared_ext}$major' | 2789 soname_spec='$libname$release$shared_ext$major' |
| 2418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext
}' | 2790 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$sha
red_ext$major $libname$release$shared_ext $libname$shared_ext' |
| 2419 case $host_os in | 2791 case $host_os in |
| 2420 irix5* | nonstopux*) | 2792 irix5* | nonstopux*) |
| 2421 libsuff= shlibsuff= | 2793 libsuff= shlibsuff= |
| 2422 ;; | 2794 ;; |
| 2423 *) | 2795 *) |
| 2424 case $LD in # libtool.m4 will add one of these switches to LD | 2796 case $LD in # libtool.m4 will add one of these switches to LD |
| 2425 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | 2797 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 2426 libsuff= shlibsuff= libmagic=32-bit;; | 2798 libsuff= shlibsuff= libmagic=32-bit;; |
| 2427 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | 2799 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 2428 libsuff=32 shlibsuff=N32 libmagic=N32;; | 2800 libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 2429 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | 2801 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 2430 libsuff=64 shlibsuff=64 libmagic=64-bit;; | 2802 libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 2431 *) libsuff= shlibsuff= libmagic=never-match;; | 2803 *) libsuff= shlibsuff= libmagic=never-match;; |
| 2432 esac | 2804 esac |
| 2433 ;; | 2805 ;; |
| 2434 esac | 2806 esac |
| 2435 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | 2807 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 2436 shlibpath_overrides_runpath=no | 2808 shlibpath_overrides_runpath=no |
| 2437 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${li
bsuff}" | 2809 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff
" |
| 2438 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | 2810 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" |
| 2439 hardcode_into_libs=yes | 2811 hardcode_into_libs=yes |
| 2440 ;; | 2812 ;; |
| 2441 | 2813 |
| 2442 # No shared lib support for Linux oldld, aout, or coff. | 2814 # No shared lib support for Linux oldld, aout, or coff. |
| 2443 linux*oldld* | linux*aout* | linux*coff*) | 2815 linux*oldld* | linux*aout* | linux*coff*) |
| 2444 dynamic_linker=no | 2816 dynamic_linker=no |
| 2445 ;; | 2817 ;; |
| 2446 | 2818 |
| 2447 # This must be Linux ELF. | 2819 linux*android*) |
| 2448 linux* | k*bsd*-gnu | kopensolaris*-gnu) | 2820 version_type=none # Android doesn't support versioned libraries. |
| 2449 version_type=linux | |
| 2450 need_lib_prefix=no | 2821 need_lib_prefix=no |
| 2451 need_version=no | 2822 need_version=no |
| 2452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major $libname${shared_ext}' | 2823 library_names_spec='$libname$release$shared_ext' |
| 2453 soname_spec='${libname}${release}${shared_ext}$major' | 2824 soname_spec='$libname$release$shared_ext' |
| 2454 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | 2825 finish_cmds= |
| 2455 shlibpath_var=LD_LIBRARY_PATH | 2826 shlibpath_var=LD_LIBRARY_PATH |
| 2456 shlibpath_overrides_runpath=no | 2827 shlibpath_overrides_runpath=yes |
| 2457 # Some binutils ld are patched to set DT_RUNPATH | |
| 2458 save_LDFLAGS=$LDFLAGS | |
| 2459 save_libdir=$libdir | |
| 2460 eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \ | |
| 2461 LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\"" | |
| 2462 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], | |
| 2463 [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libd
ir" >/dev/null], | |
| 2464 [shlibpath_overrides_runpath=yes])]) | |
| 2465 LDFLAGS=$save_LDFLAGS | |
| 2466 libdir=$save_libdir | |
| 2467 | 2828 |
| 2468 # This implies no fast_install, which is unacceptable. | 2829 # This implies no fast_install, which is unacceptable. |
| 2469 # Some rework will be needed to allow for fast_install | 2830 # Some rework will be needed to allow for fast_install |
| 2470 # before this can be enabled. | 2831 # before this can be enabled. |
| 2471 hardcode_into_libs=yes | 2832 hardcode_into_libs=yes |
| 2472 | 2833 |
| 2473 # Append ld.so.conf contents to the search path | 2834 dynamic_linker='Android linker' |
| 2835 # Don't embed -rpath directories since the linker doesn't support them. |
| 2836 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
| 2837 ;; |
| 2838 |
| 2839 # This must be glibc/ELF. |
| 2840 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
| 2841 version_type=linux # correct to gnu/linux during the next big refactor |
| 2842 need_lib_prefix=no |
| 2843 need_version=no |
| 2844 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$sha
red_ext$major $libname$shared_ext' |
| 2845 soname_spec='$libname$release$shared_ext$major' |
| 2846 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 2847 shlibpath_var=LD_LIBRARY_PATH |
| 2848 shlibpath_overrides_runpath=no |
| 2849 |
| 2850 # Some binutils ld are patched to set DT_RUNPATH |
| 2851 AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath], |
| 2852 [lt_cv_shlibpath_overrides_runpath=no |
| 2853 save_LDFLAGS=$LDFLAGS |
| 2854 save_libdir=$libdir |
| 2855 eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \ |
| 2856 » LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\"" |
| 2857 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], |
| 2858 [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$li
bdir" >/dev/null], |
| 2859 » [lt_cv_shlibpath_overrides_runpath=yes])]) |
| 2860 LDFLAGS=$save_LDFLAGS |
| 2861 libdir=$save_libdir |
| 2862 ]) |
| 2863 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath |
| 2864 |
| 2865 # This implies no fast_install, which is unacceptable. |
| 2866 # Some rework will be needed to allow for fast_install |
| 2867 # before this can be enabled. |
| 2868 hardcode_into_libs=yes |
| 2869 |
| 2870 # Add ABI-specific directories to the system library path. |
| 2871 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" |
| 2872 |
| 2873 # Ideally, we could use ldconfig to report *all* directores which are |
| 2874 # searched for libraries, however this is still not possible. Aside from not |
| 2875 # being certain /sbin/ldconfig is available, command |
| 2876 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, |
| 2877 # even though it is searched at run-time. Try to do the best guess by |
| 2878 # appending ld.so.conf contents (and includes) to the search path. |
| 2474 if test -f /etc/ld.so.conf; then | 2879 if test -f /etc/ld.so.conf; then |
| 2475 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null"
, \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf
| $SED -e 's/#.*//;/^[» ]*hwcap[» ]/d;s/[:,» ]/ /g;s/=[^=]*$//;s/=[^=
]* / /g;/^$/d' | tr '\n' ' '` | 2880 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' ' '` |
| 2476 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | 2881 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" |
| 2477 fi | 2882 fi |
| 2478 | 2883 |
| 2479 # We used to test for /lib/ld.so.1 and disable shared libraries on | 2884 # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 2480 # powerpc, because MkLinux only supported shared libraries with the | 2885 # powerpc, because MkLinux only supported shared libraries with the |
| 2481 # GNU dynamic linker. Since this was broken with cross compilers, | 2886 # GNU dynamic linker. Since this was broken with cross compilers, |
| 2482 # most powerpc-linux boxes support dynamic linking these days and | 2887 # most powerpc-linux boxes support dynamic linking these days and |
| 2483 # people can always --disable-shared, the test was removed, and we | 2888 # people can always --disable-shared, the test was removed, and we |
| 2484 # assume the GNU/Linux dynamic linker is in use. | 2889 # assume the GNU/Linux dynamic linker is in use. |
| 2485 dynamic_linker='GNU/Linux ld.so' | 2890 dynamic_linker='GNU/Linux ld.so' |
| 2486 ;; | 2891 ;; |
| 2487 | 2892 |
| 2488 netbsdelf*-gnu) | |
| 2489 version_type=linux | |
| 2490 need_lib_prefix=no | |
| 2491 need_version=no | |
| 2492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major ${libname}${shared_ext}' | |
| 2493 soname_spec='${libname}${release}${shared_ext}$major' | |
| 2494 shlibpath_var=LD_LIBRARY_PATH | |
| 2495 shlibpath_overrides_runpath=no | |
| 2496 hardcode_into_libs=yes | |
| 2497 dynamic_linker='NetBSD ld.elf_so' | |
| 2498 ;; | |
| 2499 | |
| 2500 netbsd*) | 2893 netbsd*) |
| 2501 version_type=sunos | 2894 version_type=sunos |
| 2502 need_lib_prefix=no | 2895 need_lib_prefix=no |
| 2503 need_version=no | 2896 need_version=no |
| 2504 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | 2897 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 2505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${
shared_ext}$versuffix' | 2898 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ex
t$versuffix' |
| 2506 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | 2899 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 2507 dynamic_linker='NetBSD (a.out) ld.so' | 2900 dynamic_linker='NetBSD (a.out) ld.so' |
| 2508 else | 2901 else |
| 2509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${
release}${shared_ext}$major ${libname}${shared_ext}' | 2902 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$s
hared_ext$major $libname$shared_ext' |
| 2510 soname_spec='${libname}${release}${shared_ext}$major' | 2903 soname_spec='$libname$release$shared_ext$major' |
| 2511 dynamic_linker='NetBSD ld.elf_so' | 2904 dynamic_linker='NetBSD ld.elf_so' |
| 2512 fi | 2905 fi |
| 2513 shlibpath_var=LD_LIBRARY_PATH | 2906 shlibpath_var=LD_LIBRARY_PATH |
| 2514 shlibpath_overrides_runpath=yes | 2907 shlibpath_overrides_runpath=yes |
| 2515 hardcode_into_libs=yes | 2908 hardcode_into_libs=yes |
| 2516 ;; | 2909 ;; |
| 2517 | 2910 |
| 2518 newsos6) | 2911 newsos6) |
| 2519 version_type=linux | 2912 version_type=linux # correct to gnu/linux during the next big refactor |
| 2520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major $libname${shared_ext}' | 2913 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$sha
red_ext$major $libname$shared_ext' |
| 2521 shlibpath_var=LD_LIBRARY_PATH | 2914 shlibpath_var=LD_LIBRARY_PATH |
| 2522 shlibpath_overrides_runpath=yes | 2915 shlibpath_overrides_runpath=yes |
| 2523 ;; | 2916 ;; |
| 2524 | 2917 |
| 2525 *nto* | *qnx*) | 2918 *nto* | *qnx*) |
| 2526 version_type=qnx | 2919 version_type=qnx |
| 2527 need_lib_prefix=no | 2920 need_lib_prefix=no |
| 2528 need_version=no | 2921 need_version=no |
| 2529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major $libname${shared_ext}' | 2922 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$sha
red_ext$major $libname$shared_ext' |
| 2530 soname_spec='${libname}${release}${shared_ext}$major' | 2923 soname_spec='$libname$release$shared_ext$major' |
| 2531 shlibpath_var=LD_LIBRARY_PATH | 2924 shlibpath_var=LD_LIBRARY_PATH |
| 2532 shlibpath_overrides_runpath=no | 2925 shlibpath_overrides_runpath=no |
| 2533 hardcode_into_libs=yes | 2926 hardcode_into_libs=yes |
| 2534 dynamic_linker='ldqnx.so' | 2927 dynamic_linker='ldqnx.so' |
| 2535 ;; | 2928 ;; |
| 2536 | 2929 |
| 2537 openbsd*) | 2930 openbsd* | bitrig*) |
| 2538 version_type=sunos | 2931 version_type=sunos |
| 2539 sys_lib_dlsearch_path_spec="/usr/lib" | 2932 sys_lib_dlsearch_path_spec=/usr/lib |
| 2540 need_lib_prefix=no | 2933 need_lib_prefix=no |
| 2541 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | 2934 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then |
| 2542 case $host_os in | 2935 need_version=no |
| 2543 openbsd3.3 | openbsd3.3.*)» need_version=yes ;; | 2936 else |
| 2544 *)» » » » need_version=no ;; | 2937 need_version=yes |
| 2545 esac | 2938 fi |
| 2546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${sh
ared_ext}$versuffix' | 2939 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$
versuffix' |
| 2547 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | 2940 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 2548 shlibpath_var=LD_LIBRARY_PATH | 2941 shlibpath_var=LD_LIBRARY_PATH |
| 2549 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host
_cpu" = "openbsd2.8-powerpc"; then | 2942 shlibpath_overrides_runpath=yes |
| 2550 case $host_os in | |
| 2551 openbsd2.[[89]] | openbsd2.[[89]].*) | |
| 2552 » shlibpath_overrides_runpath=no | |
| 2553 » ;; | |
| 2554 *) | |
| 2555 » shlibpath_overrides_runpath=yes | |
| 2556 » ;; | |
| 2557 esac | |
| 2558 else | |
| 2559 shlibpath_overrides_runpath=yes | |
| 2560 fi | |
| 2561 ;; | 2943 ;; |
| 2562 | 2944 |
| 2563 os2*) | 2945 os2*) |
| 2564 libname_spec='$name' | 2946 libname_spec='$name' |
| 2565 shrext_cmds=".dll" | 2947 version_type=windows |
| 2948 shrext_cmds=.dll |
| 2949 need_version=no |
| 2566 need_lib_prefix=no | 2950 need_lib_prefix=no |
| 2567 library_names_spec='$libname${shared_ext} $libname.a' | 2951 # OS/2 can only load a DLL with a base name of 8 characters or less. |
| 2952 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; |
| 2953 v=$($ECHO $release$versuffix | tr -d .-); |
| 2954 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); |
| 2955 $ECHO $n$v`$shared_ext' |
| 2956 library_names_spec='${libname}_dll.$libext' |
| 2568 dynamic_linker='OS/2 ld.exe' | 2957 dynamic_linker='OS/2 ld.exe' |
| 2569 shlibpath_var=LIBPATH | 2958 shlibpath_var=BEGINLIBPATH |
| 2959 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 2960 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 2961 postinstall_cmds='base_file=`basename \$file`~ |
| 2962 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ |
| 2963 dldir=$destdir/`dirname \$dlpath`~ |
| 2964 test -d \$dldir || mkdir -p \$dldir~ |
| 2965 $install_prog $dir/$dlname \$dldir/$dlname~ |
| 2966 chmod a+x \$dldir/$dlname~ |
| 2967 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
| 2968 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
| 2969 fi' |
| 2970 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ |
| 2971 dlpath=$dir/\$dldll~ |
| 2972 $RM \$dlpath' |
| 2570 ;; | 2973 ;; |
| 2571 | 2974 |
| 2572 osf3* | osf4* | osf5*) | 2975 osf3* | osf4* | osf5*) |
| 2573 version_type=osf | 2976 version_type=osf |
| 2574 need_lib_prefix=no | 2977 need_lib_prefix=no |
| 2575 need_version=no | 2978 need_version=no |
| 2576 soname_spec='${libname}${release}${shared_ext}$major' | 2979 soname_spec='$libname$release$shared_ext$major' |
| 2577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major $libname${shared_ext}' | 2980 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$sha
red_ext$major $libname$shared_ext' |
| 2578 shlibpath_var=LD_LIBRARY_PATH | 2981 shlibpath_var=LD_LIBRARY_PATH |
| 2579 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib
/usr/local/lib /var/shlib" | 2982 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib
/usr/local/lib /var/shlib" |
| 2580 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | 2983 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 2581 ;; | 2984 ;; |
| 2582 | 2985 |
| 2583 rdos*) | 2986 rdos*) |
| 2584 dynamic_linker=no | 2987 dynamic_linker=no |
| 2585 ;; | 2988 ;; |
| 2586 | 2989 |
| 2587 solaris*) | 2990 solaris*) |
| 2588 version_type=linux | 2991 version_type=linux # correct to gnu/linux during the next big refactor |
| 2589 need_lib_prefix=no | 2992 need_lib_prefix=no |
| 2590 need_version=no | 2993 need_version=no |
| 2591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major $libname${shared_ext}' | 2994 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$sha
red_ext$major $libname$shared_ext' |
| 2592 soname_spec='${libname}${release}${shared_ext}$major' | 2995 soname_spec='$libname$release$shared_ext$major' |
| 2593 shlibpath_var=LD_LIBRARY_PATH | 2996 shlibpath_var=LD_LIBRARY_PATH |
| 2594 shlibpath_overrides_runpath=yes | 2997 shlibpath_overrides_runpath=yes |
| 2595 hardcode_into_libs=yes | 2998 hardcode_into_libs=yes |
| 2596 # ldd complains unless libraries are executable | 2999 # ldd complains unless libraries are executable |
| 2597 postinstall_cmds='chmod +x $lib' | 3000 postinstall_cmds='chmod +x $lib' |
| 2598 ;; | 3001 ;; |
| 2599 | 3002 |
| 2600 sunos4*) | 3003 sunos4*) |
| 2601 version_type=sunos | 3004 version_type=sunos |
| 2602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${sh
ared_ext}$versuffix' | 3005 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$
versuffix' |
| 2603 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | 3006 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 2604 shlibpath_var=LD_LIBRARY_PATH | 3007 shlibpath_var=LD_LIBRARY_PATH |
| 2605 shlibpath_overrides_runpath=yes | 3008 shlibpath_overrides_runpath=yes |
| 2606 if test "$with_gnu_ld" = yes; then | 3009 if test yes = "$with_gnu_ld"; then |
| 2607 need_lib_prefix=no | 3010 need_lib_prefix=no |
| 2608 fi | 3011 fi |
| 2609 need_version=yes | 3012 need_version=yes |
| 2610 ;; | 3013 ;; |
| 2611 | 3014 |
| 2612 sysv4 | sysv4.3*) | 3015 sysv4 | sysv4.3*) |
| 2613 version_type=linux | 3016 version_type=linux # correct to gnu/linux during the next big refactor |
| 2614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major $libname${shared_ext}' | 3017 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$sha
red_ext$major $libname$shared_ext' |
| 2615 soname_spec='${libname}${release}${shared_ext}$major' | 3018 soname_spec='$libname$release$shared_ext$major' |
| 2616 shlibpath_var=LD_LIBRARY_PATH | 3019 shlibpath_var=LD_LIBRARY_PATH |
| 2617 case $host_vendor in | 3020 case $host_vendor in |
| 2618 sni) | 3021 sni) |
| 2619 shlibpath_overrides_runpath=no | 3022 shlibpath_overrides_runpath=no |
| 2620 need_lib_prefix=no | 3023 need_lib_prefix=no |
| 2621 runpath_var=LD_RUN_PATH | 3024 runpath_var=LD_RUN_PATH |
| 2622 ;; | 3025 ;; |
| 2623 siemens) | 3026 siemens) |
| 2624 need_lib_prefix=no | 3027 need_lib_prefix=no |
| 2625 ;; | 3028 ;; |
| 2626 motorola) | 3029 motorola) |
| 2627 need_lib_prefix=no | 3030 need_lib_prefix=no |
| 2628 need_version=no | 3031 need_version=no |
| 2629 shlibpath_overrides_runpath=no | 3032 shlibpath_overrides_runpath=no |
| 2630 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | 3033 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 2631 ;; | 3034 ;; |
| 2632 esac | 3035 esac |
| 2633 ;; | 3036 ;; |
| 2634 | 3037 |
| 2635 sysv4*MP*) | 3038 sysv4*MP*) |
| 2636 if test -d /usr/nec ;then | 3039 if test -d /usr/nec; then |
| 2637 version_type=linux | 3040 version_type=linux # correct to gnu/linux during the next big refactor |
| 2638 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$
major $libname${shared_ext}' | 3041 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$majo
r $libname$shared_ext' |
| 2639 soname_spec='$libname${shared_ext}.$major' | 3042 soname_spec='$libname$shared_ext.$major' |
| 2640 shlibpath_var=LD_LIBRARY_PATH | 3043 shlibpath_var=LD_LIBRARY_PATH |
| 2641 fi | 3044 fi |
| 2642 ;; | 3045 ;; |
| 2643 | 3046 |
| 2644 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | 3047 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 2645 version_type=freebsd-elf | 3048 version_type=sco |
| 2646 need_lib_prefix=no | 3049 need_lib_prefix=no |
| 2647 need_version=no | 3050 need_version=no |
| 2648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext} $libname${shared_ext}' | 3051 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$sha
red_ext $libname$shared_ext' |
| 2649 soname_spec='${libname}${release}${shared_ext}$major' | 3052 soname_spec='$libname$release$shared_ext$major' |
| 2650 shlibpath_var=LD_LIBRARY_PATH | 3053 shlibpath_var=LD_LIBRARY_PATH |
| 2651 shlibpath_overrides_runpath=yes | 3054 shlibpath_overrides_runpath=yes |
| 2652 hardcode_into_libs=yes | 3055 hardcode_into_libs=yes |
| 2653 if test "$with_gnu_ld" = yes; then | 3056 if test yes = "$with_gnu_ld"; then |
| 2654 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib
/lib' | 3057 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib
/lib' |
| 2655 else | 3058 else |
| 2656 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | 3059 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 2657 case $host_os in | 3060 case $host_os in |
| 2658 sco3.2v5*) | 3061 sco3.2v5*) |
| 2659 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | 3062 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 2660 ;; | 3063 ;; |
| 2661 esac | 3064 esac |
| 2662 fi | 3065 fi |
| 2663 sys_lib_dlsearch_path_spec='/usr/lib' | 3066 sys_lib_dlsearch_path_spec='/usr/lib' |
| 2664 ;; | 3067 ;; |
| 2665 | 3068 |
| 2666 tpf*) | 3069 tpf*) |
| 2667 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | 3070 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. |
| 2668 version_type=linux | 3071 version_type=linux # correct to gnu/linux during the next big refactor |
| 2669 need_lib_prefix=no | 3072 need_lib_prefix=no |
| 2670 need_version=no | 3073 need_version=no |
| 2671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major $libname${shared_ext}' | 3074 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$sha
red_ext$major $libname$shared_ext' |
| 2672 shlibpath_var=LD_LIBRARY_PATH | 3075 shlibpath_var=LD_LIBRARY_PATH |
| 2673 shlibpath_overrides_runpath=no | 3076 shlibpath_overrides_runpath=no |
| 2674 hardcode_into_libs=yes | 3077 hardcode_into_libs=yes |
| 2675 ;; | 3078 ;; |
| 2676 | 3079 |
| 2677 uts4*) | 3080 uts4*) |
| 2678 version_type=linux | 3081 version_type=linux # correct to gnu/linux during the next big refactor |
| 2679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major $libname${shared_ext}' | 3082 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$sha
red_ext$major $libname$shared_ext' |
| 2680 soname_spec='${libname}${release}${shared_ext}$major' | 3083 soname_spec='$libname$release$shared_ext$major' |
| 2681 shlibpath_var=LD_LIBRARY_PATH | 3084 shlibpath_var=LD_LIBRARY_PATH |
| 2682 ;; | 3085 ;; |
| 2683 | 3086 |
| 2684 *) | 3087 *) |
| 2685 dynamic_linker=no | 3088 dynamic_linker=no |
| 2686 ;; | 3089 ;; |
| 2687 esac | 3090 esac |
| 2688 AC_MSG_RESULT([$dynamic_linker]) | 3091 AC_MSG_RESULT([$dynamic_linker]) |
| 2689 test "$dynamic_linker" = no && can_build_shared=no | 3092 test no = "$dynamic_linker" && can_build_shared=no |
| 2690 | 3093 |
| 2691 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | 3094 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 2692 if test "$GCC" = yes; then | 3095 if test yes = "$GCC"; then |
| 2693 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPIL
ER_PATH LIBRARY_PATH" | 3096 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPIL
ER_PATH LIBRARY_PATH" |
| 2694 fi | 3097 fi |
| 2695 | 3098 |
| 2696 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then | 3099 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then |
| 2697 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | 3100 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec |
| 2698 fi | 3101 fi |
| 2699 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | 3102 |
| 2700 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | 3103 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then |
| 3104 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec |
| 2701 fi | 3105 fi |
| 2702 | 3106 |
| 3107 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... |
| 3108 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec |
| 3109 |
| 3110 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code |
| 3111 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" |
| 3112 |
| 3113 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool |
| 3114 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH |
| 3115 |
| 2703 _LT_DECL([], [variables_saved_for_relink], [1], | 3116 _LT_DECL([], [variables_saved_for_relink], [1], |
| 2704 [Variables whose values should be saved in libtool wrapper scripts and | 3117 [Variables whose values should be saved in libtool wrapper scripts and |
| 2705 restored at link time]) | 3118 restored at link time]) |
| 2706 _LT_DECL([], [need_lib_prefix], [0], | 3119 _LT_DECL([], [need_lib_prefix], [0], |
| 2707 [Do we need the "lib" prefix for modules?]) | 3120 [Do we need the "lib" prefix for modules?]) |
| 2708 _LT_DECL([], [need_version], [0], [Do we need a version for libraries?]) | 3121 _LT_DECL([], [need_version], [0], [Do we need a version for libraries?]) |
| 2709 _LT_DECL([], [version_type], [0], [Library versioning type]) | 3122 _LT_DECL([], [version_type], [0], [Library versioning type]) |
| 2710 _LT_DECL([], [runpath_var], [0], [Shared library runtime path variable]) | 3123 _LT_DECL([], [runpath_var], [0], [Shared library runtime path variable]) |
| 2711 _LT_DECL([], [shlibpath_var], [0],[Shared library path variable]) | 3124 _LT_DECL([], [shlibpath_var], [0],[Shared library path variable]) |
| 2712 _LT_DECL([], [shlibpath_overrides_runpath], [0], | 3125 _LT_DECL([], [shlibpath_overrides_runpath], [0], |
| 2713 [Is shlibpath searched before the hard-coded library search path?]) | 3126 [Is shlibpath searched before the hard-coded library search path?]) |
| 2714 _LT_DECL([], [libname_spec], [1], [Format of library name prefix]) | 3127 _LT_DECL([], [libname_spec], [1], [Format of library name prefix]) |
| 2715 _LT_DECL([], [library_names_spec], [1], | 3128 _LT_DECL([], [library_names_spec], [1], |
| 2716 [[List of archive names. First name is the real one, the rest are links. | 3129 [[List of archive names. First name is the real one, the rest are links. |
| 2717 The last name is the one that the linker finds with -lNAME]]) | 3130 The last name is the one that the linker finds with -lNAME]]) |
| 2718 _LT_DECL([], [soname_spec], [1], | 3131 _LT_DECL([], [soname_spec], [1], |
| 2719 [[The coded name of the library, if different from the real name]]) | 3132 [[The coded name of the library, if different from the real name]]) |
| 3133 _LT_DECL([], [install_override_mode], [1], |
| 3134 [Permission mode override for installation of shared libraries]) |
| 2720 _LT_DECL([], [postinstall_cmds], [2], | 3135 _LT_DECL([], [postinstall_cmds], [2], |
| 2721 [Command to use after installation of a shared archive]) | 3136 [Command to use after installation of a shared archive]) |
| 2722 _LT_DECL([], [postuninstall_cmds], [2], | 3137 _LT_DECL([], [postuninstall_cmds], [2], |
| 2723 [Command to use after uninstallation of a shared archive]) | 3138 [Command to use after uninstallation of a shared archive]) |
| 2724 _LT_DECL([], [finish_cmds], [2], | 3139 _LT_DECL([], [finish_cmds], [2], |
| 2725 [Commands used to finish a libtool library installation in a directory]) | 3140 [Commands used to finish a libtool library installation in a directory]) |
| 2726 _LT_DECL([], [finish_eval], [1], | 3141 _LT_DECL([], [finish_eval], [1], |
| 2727 [[As "finish_cmds", except a single script fragment to be evaled but | 3142 [[As "finish_cmds", except a single script fragment to be evaled but |
| 2728 not shown]]) | 3143 not shown]]) |
| 2729 _LT_DECL([], [hardcode_into_libs], [0], | 3144 _LT_DECL([], [hardcode_into_libs], [0], |
| 2730 [Whether we should hardcode library paths into libraries]) | 3145 [Whether we should hardcode library paths into libraries]) |
| 2731 _LT_DECL([], [sys_lib_search_path_spec], [2], | 3146 _LT_DECL([], [sys_lib_search_path_spec], [2], |
| 2732 [Compile-time system search path for libraries]) | 3147 [Compile-time system search path for libraries]) |
| 2733 _LT_DECL([], [sys_lib_dlsearch_path_spec], [2], | 3148 _LT_DECL([sys_lib_dlsearch_path_spec], [configure_time_dlsearch_path], [2], |
| 2734 [Run-time system search path for libraries]) | 3149 [Detected run-time system search path for libraries]) |
| 3150 _LT_DECL([], [configure_time_lt_sys_library_path], [2], |
| 3151 [Explicit LT_SYS_LIBRARY_PATH set during ./configure time]) |
| 2735 ])# _LT_SYS_DYNAMIC_LINKER | 3152 ])# _LT_SYS_DYNAMIC_LINKER |
| 2736 | 3153 |
| 2737 | 3154 |
| 2738 # _LT_PATH_TOOL_PREFIX(TOOL) | 3155 # _LT_PATH_TOOL_PREFIX(TOOL) |
| 2739 # -------------------------- | 3156 # -------------------------- |
| 2740 # find a file program which can recognize shared library | 3157 # find a file program that can recognize shared library |
| 2741 AC_DEFUN([_LT_PATH_TOOL_PREFIX], | 3158 AC_DEFUN([_LT_PATH_TOOL_PREFIX], |
| 2742 [m4_require([_LT_DECL_EGREP])dnl | 3159 [m4_require([_LT_DECL_EGREP])dnl |
| 2743 AC_MSG_CHECKING([for $1]) | 3160 AC_MSG_CHECKING([for $1]) |
| 2744 AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, | 3161 AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, |
| 2745 [case $MAGIC_CMD in | 3162 [case $MAGIC_CMD in |
| 2746 [[\\/*] | ?:[\\/]*]) | 3163 [[\\/*] | ?:[\\/]*]) |
| 2747 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path
. | 3164 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. |
| 2748 ;; | 3165 ;; |
| 2749 *) | 3166 *) |
| 2750 lt_save_MAGIC_CMD="$MAGIC_CMD" | 3167 lt_save_MAGIC_CMD=$MAGIC_CMD |
| 2751 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | 3168 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
| 2752 dnl $ac_dummy forces splitting on constant user-supplied paths. | 3169 dnl $ac_dummy forces splitting on constant user-supplied paths. |
| 2753 dnl POSIX.2 word splitting is done only on the output of word expansions, | 3170 dnl POSIX.2 word splitting is done only on the output of word expansions, |
| 2754 dnl not every word. This closes a longstanding sh security hole. | 3171 dnl not every word. This closes a longstanding sh security hole. |
| 2755 ac_dummy="m4_if([$2], , $PATH, [$2])" | 3172 ac_dummy="m4_if([$2], , $PATH, [$2])" |
| 2756 for ac_dir in $ac_dummy; do | 3173 for ac_dir in $ac_dummy; do |
| 2757 IFS="$lt_save_ifs" | 3174 IFS=$lt_save_ifs |
| 2758 test -z "$ac_dir" && ac_dir=. | 3175 test -z "$ac_dir" && ac_dir=. |
| 2759 if test -f $ac_dir/$1; then | 3176 if test -f "$ac_dir/$1"; then |
| 2760 lt_cv_path_MAGIC_CMD="$ac_dir/$1" | 3177 lt_cv_path_MAGIC_CMD=$ac_dir/"$1" |
| 2761 if test -n "$file_magic_test_file"; then | 3178 if test -n "$file_magic_test_file"; then |
| 2762 case $deplibs_check_method in | 3179 case $deplibs_check_method in |
| 2763 "file_magic "*) | 3180 "file_magic "*) |
| 2764 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | 3181 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
| 2765 » MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | 3182 » MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
| 2766 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | 3183 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 2767 $EGREP "$file_magic_regex" > /dev/null; then | 3184 $EGREP "$file_magic_regex" > /dev/null; then |
| 2768 : | 3185 : |
| 2769 else | 3186 else |
| 2770 cat <<_LT_EOF 1>&2 | 3187 cat <<_LT_EOF 1>&2 |
| 2771 | 3188 |
| 2772 *** Warning: the command libtool uses to detect shared libraries, | 3189 *** Warning: the command libtool uses to detect shared libraries, |
| 2773 *** $file_magic_cmd, produces output that libtool cannot recognize. | 3190 *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 2774 *** The result is that libtool may fail to recognize shared libraries | 3191 *** The result is that libtool may fail to recognize shared libraries |
| 2775 *** as such. This will affect the creation of libtool libraries that | 3192 *** as such. This will affect the creation of libtool libraries that |
| 2776 *** depend on shared libraries, but programs linked with such libtool | 3193 *** depend on shared libraries, but programs linked with such libtool |
| 2777 *** libraries will work regardless of this problem. Nevertheless, you | 3194 *** libraries will work regardless of this problem. Nevertheless, you |
| 2778 *** may want to report the problem to your system manager and/or to | 3195 *** may want to report the problem to your system manager and/or to |
| 2779 *** bug-libtool@gnu.org | 3196 *** bug-libtool@gnu.org |
| 2780 | 3197 |
| 2781 _LT_EOF | 3198 _LT_EOF |
| 2782 fi ;; | 3199 fi ;; |
| 2783 esac | 3200 esac |
| 2784 fi | 3201 fi |
| 2785 break | 3202 break |
| 2786 fi | 3203 fi |
| 2787 done | 3204 done |
| 2788 IFS="$lt_save_ifs" | 3205 IFS=$lt_save_ifs |
| 2789 MAGIC_CMD="$lt_save_MAGIC_CMD" | 3206 MAGIC_CMD=$lt_save_MAGIC_CMD |
| 2790 ;; | 3207 ;; |
| 2791 esac]) | 3208 esac]) |
| 2792 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | 3209 MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
| 2793 if test -n "$MAGIC_CMD"; then | 3210 if test -n "$MAGIC_CMD"; then |
| 2794 AC_MSG_RESULT($MAGIC_CMD) | 3211 AC_MSG_RESULT($MAGIC_CMD) |
| 2795 else | 3212 else |
| 2796 AC_MSG_RESULT(no) | 3213 AC_MSG_RESULT(no) |
| 2797 fi | 3214 fi |
| 2798 _LT_DECL([], [MAGIC_CMD], [0], | 3215 _LT_DECL([], [MAGIC_CMD], [0], |
| 2799 [Used to examine libraries when file_magic_cmd begins with "file"])dnl | 3216 [Used to examine libraries when file_magic_cmd begins with "file"])dnl |
| 2800 ])# _LT_PATH_TOOL_PREFIX | 3217 ])# _LT_PATH_TOOL_PREFIX |
| 2801 | 3218 |
| 2802 # Old name: | 3219 # Old name: |
| 2803 AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX]) | 3220 AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX]) |
| 2804 dnl aclocal-1.4 backwards compatibility: | 3221 dnl aclocal-1.4 backwards compatibility: |
| 2805 dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], []) | 3222 dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], []) |
| 2806 | 3223 |
| 2807 | 3224 |
| 2808 # _LT_PATH_MAGIC | 3225 # _LT_PATH_MAGIC |
| 2809 # -------------- | 3226 # -------------- |
| 2810 # find a file program which can recognize a shared library | 3227 # find a file program that can recognize a shared library |
| 2811 m4_defun([_LT_PATH_MAGIC], | 3228 m4_defun([_LT_PATH_MAGIC], |
| 2812 [_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) | 3229 [_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) |
| 2813 if test -z "$lt_cv_path_MAGIC_CMD"; then | 3230 if test -z "$lt_cv_path_MAGIC_CMD"; then |
| 2814 if test -n "$ac_tool_prefix"; then | 3231 if test -n "$ac_tool_prefix"; then |
| 2815 _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) | 3232 _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) |
| 2816 else | 3233 else |
| 2817 MAGIC_CMD=: | 3234 MAGIC_CMD=: |
| 2818 fi | 3235 fi |
| 2819 fi | 3236 fi |
| 2820 ])# _LT_PATH_MAGIC | 3237 ])# _LT_PATH_MAGIC |
| 2821 | 3238 |
| 2822 | 3239 |
| 2823 # LT_PATH_LD | 3240 # LT_PATH_LD |
| 2824 # ---------- | 3241 # ---------- |
| 2825 # find the pathname to the GNU or non-GNU linker | 3242 # find the pathname to the GNU or non-GNU linker |
| 2826 AC_DEFUN([LT_PATH_LD], | 3243 AC_DEFUN([LT_PATH_LD], |
| 2827 [AC_REQUIRE([AC_PROG_CC])dnl | 3244 [AC_REQUIRE([AC_PROG_CC])dnl |
| 2828 AC_REQUIRE([AC_CANONICAL_HOST])dnl | 3245 AC_REQUIRE([AC_CANONICAL_HOST])dnl |
| 2829 AC_REQUIRE([AC_CANONICAL_BUILD])dnl | 3246 AC_REQUIRE([AC_CANONICAL_BUILD])dnl |
| 2830 m4_require([_LT_DECL_SED])dnl | 3247 m4_require([_LT_DECL_SED])dnl |
| 2831 m4_require([_LT_DECL_EGREP])dnl | 3248 m4_require([_LT_DECL_EGREP])dnl |
| 3249 m4_require([_LT_PROG_ECHO_BACKSLASH])dnl |
| 2832 | 3250 |
| 2833 AC_ARG_WITH([gnu-ld], | 3251 AC_ARG_WITH([gnu-ld], |
| 2834 [AS_HELP_STRING([--with-gnu-ld], | 3252 [AS_HELP_STRING([--with-gnu-ld], |
| 2835 [assume the C compiler uses GNU ld @<:@default=no@:>@])], | 3253 [assume the C compiler uses GNU ld @<:@default=no@:>@])], |
| 2836 [test "$withval" = no || with_gnu_ld=yes], | 3254 [test no = "$withval" || with_gnu_ld=yes], |
| 2837 [with_gnu_ld=no])dnl | 3255 [with_gnu_ld=no])dnl |
| 2838 | 3256 |
| 2839 ac_prog=ld | 3257 ac_prog=ld |
| 2840 if test "$GCC" = yes; then | 3258 if test yes = "$GCC"; then |
| 2841 # Check if gcc -print-prog-name=ld gives a path. | 3259 # Check if gcc -print-prog-name=ld gives a path. |
| 2842 AC_MSG_CHECKING([for ld used by $CC]) | 3260 AC_MSG_CHECKING([for ld used by $CC]) |
| 2843 case $host in | 3261 case $host in |
| 2844 *-*-mingw*) | 3262 *-*-mingw*) |
| 2845 # gcc leaves a trailing carriage return which upsets mingw | 3263 # gcc leaves a trailing carriage return, which upsets mingw |
| 2846 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | 3264 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 2847 *) | 3265 *) |
| 2848 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | 3266 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 2849 esac | 3267 esac |
| 2850 case $ac_prog in | 3268 case $ac_prog in |
| 2851 # Accept absolute paths. | 3269 # Accept absolute paths. |
| 2852 [[\\/]]* | ?:[[\\/]]*) | 3270 [[\\/]]* | ?:[[\\/]]*) |
| 2853 re_direlt='/[[^/]][[^/]]*/\.\./' | 3271 re_direlt='/[[^/]][[^/]]*/\.\./' |
| 2854 # Canonicalize the pathname of ld | 3272 # Canonicalize the pathname of ld |
| 2855 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | 3273 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` |
| 2856 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | 3274 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do |
| 2857 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | 3275 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` |
| 2858 done | 3276 done |
| 2859 test -z "$LD" && LD="$ac_prog" | 3277 test -z "$LD" && LD=$ac_prog |
| 2860 ;; | 3278 ;; |
| 2861 "") | 3279 "") |
| 2862 # If it fails, then pretend we aren't using GCC. | 3280 # If it fails, then pretend we aren't using GCC. |
| 2863 ac_prog=ld | 3281 ac_prog=ld |
| 2864 ;; | 3282 ;; |
| 2865 *) | 3283 *) |
| 2866 # If it is relative, then search for the first ld in PATH. | 3284 # If it is relative, then search for the first ld in PATH. |
| 2867 with_gnu_ld=unknown | 3285 with_gnu_ld=unknown |
| 2868 ;; | 3286 ;; |
| 2869 esac | 3287 esac |
| 2870 elif test "$with_gnu_ld" = yes; then | 3288 elif test yes = "$with_gnu_ld"; then |
| 2871 AC_MSG_CHECKING([for GNU ld]) | 3289 AC_MSG_CHECKING([for GNU ld]) |
| 2872 else | 3290 else |
| 2873 AC_MSG_CHECKING([for non-GNU ld]) | 3291 AC_MSG_CHECKING([for non-GNU ld]) |
| 2874 fi | 3292 fi |
| 2875 AC_CACHE_VAL(lt_cv_path_LD, | 3293 AC_CACHE_VAL(lt_cv_path_LD, |
| 2876 [if test -z "$LD"; then | 3294 [if test -z "$LD"; then |
| 2877 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | 3295 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
| 2878 for ac_dir in $PATH; do | 3296 for ac_dir in $PATH; do |
| 2879 IFS="$lt_save_ifs" | 3297 IFS=$lt_save_ifs |
| 2880 test -z "$ac_dir" && ac_dir=. | 3298 test -z "$ac_dir" && ac_dir=. |
| 2881 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | 3299 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 2882 lt_cv_path_LD="$ac_dir/$ac_prog" | 3300 lt_cv_path_LD=$ac_dir/$ac_prog |
| 2883 # Check to see if the program is GNU ld. I'd rather use --version, | 3301 # Check to see if the program is GNU ld. I'd rather use --version, |
| 2884 # but apparently some variants of GNU ld only accept -v. | 3302 # but apparently some variants of GNU ld only accept -v. |
| 2885 # Break only if it was the GNU/non-GNU ld that we prefer. | 3303 # Break only if it was the GNU/non-GNU ld that we prefer. |
| 2886 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | 3304 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 2887 *GNU* | *'with BFD'*) | 3305 *GNU* | *'with BFD'*) |
| 2888 » test "$with_gnu_ld" != no && break | 3306 » test no != "$with_gnu_ld" && break |
| 2889 ;; | 3307 ;; |
| 2890 *) | 3308 *) |
| 2891 » test "$with_gnu_ld" != yes && break | 3309 » test yes != "$with_gnu_ld" && break |
| 2892 ;; | 3310 ;; |
| 2893 esac | 3311 esac |
| 2894 fi | 3312 fi |
| 2895 done | 3313 done |
| 2896 IFS="$lt_save_ifs" | 3314 IFS=$lt_save_ifs |
| 2897 else | 3315 else |
| 2898 lt_cv_path_LD="$LD" # Let the user override the test with a path. | 3316 lt_cv_path_LD=$LD # Let the user override the test with a path. |
| 2899 fi]) | 3317 fi]) |
| 2900 LD="$lt_cv_path_LD" | 3318 LD=$lt_cv_path_LD |
| 2901 if test -n "$LD"; then | 3319 if test -n "$LD"; then |
| 2902 AC_MSG_RESULT($LD) | 3320 AC_MSG_RESULT($LD) |
| 2903 else | 3321 else |
| 2904 AC_MSG_RESULT(no) | 3322 AC_MSG_RESULT(no) |
| 2905 fi | 3323 fi |
| 2906 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) | 3324 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) |
| 2907 _LT_PATH_LD_GNU | 3325 _LT_PATH_LD_GNU |
| 2908 AC_SUBST([LD]) | 3326 AC_SUBST([LD]) |
| 2909 | 3327 |
| 2910 _LT_TAGDECL([], [LD], [1], [The linker used to build libraries]) | 3328 _LT_TAGDECL([], [LD], [1], [The linker used to build libraries]) |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2943 [AC_CACHE_CHECK([for $LD option to reload object files], | 3361 [AC_CACHE_CHECK([for $LD option to reload object files], |
| 2944 lt_cv_ld_reload_flag, | 3362 lt_cv_ld_reload_flag, |
| 2945 [lt_cv_ld_reload_flag='-r']) | 3363 [lt_cv_ld_reload_flag='-r']) |
| 2946 reload_flag=$lt_cv_ld_reload_flag | 3364 reload_flag=$lt_cv_ld_reload_flag |
| 2947 case $reload_flag in | 3365 case $reload_flag in |
| 2948 "" | " "*) ;; | 3366 "" | " "*) ;; |
| 2949 *) reload_flag=" $reload_flag" ;; | 3367 *) reload_flag=" $reload_flag" ;; |
| 2950 esac | 3368 esac |
| 2951 reload_cmds='$LD$reload_flag -o $output$reload_objs' | 3369 reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 2952 case $host_os in | 3370 case $host_os in |
| 3371 cygwin* | mingw* | pw32* | cegcc*) |
| 3372 if test yes != "$GCC"; then |
| 3373 reload_cmds=false |
| 3374 fi |
| 3375 ;; |
| 2953 darwin*) | 3376 darwin*) |
| 2954 if test "$GCC" = yes; then | 3377 if test yes = "$GCC"; then |
| 2955 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | 3378 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' |
| 2956 else | 3379 else |
| 2957 reload_cmds='$LD$reload_flag -o $output$reload_objs' | 3380 reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 2958 fi | 3381 fi |
| 2959 ;; | 3382 ;; |
| 2960 esac | 3383 esac |
| 2961 _LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl | 3384 _LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl |
| 2962 _LT_DECL([], [reload_cmds], [2])dnl | 3385 _LT_TAGDECL([], [reload_cmds], [2])dnl |
| 2963 ])# _LT_CMD_RELOAD | 3386 ])# _LT_CMD_RELOAD |
| 2964 | 3387 |
| 2965 | 3388 |
| 3389 # _LT_PATH_DD |
| 3390 # ----------- |
| 3391 # find a working dd |
| 3392 m4_defun([_LT_PATH_DD], |
| 3393 [AC_CACHE_CHECK([for a working dd], [ac_cv_path_lt_DD], |
| 3394 [printf 0123456789abcdef0123456789abcdef >conftest.i |
| 3395 cat conftest.i conftest.i >conftest2.i |
| 3396 : ${lt_DD:=$DD} |
| 3397 AC_PATH_PROGS_FEATURE_CHECK([lt_DD], [dd], |
| 3398 [if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then |
| 3399 cmp -s conftest.i conftest.out \ |
| 3400 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: |
| 3401 fi]) |
| 3402 rm -f conftest.i conftest2.i conftest.out]) |
| 3403 ])# _LT_PATH_DD |
| 3404 |
| 3405 |
| 3406 # _LT_CMD_TRUNCATE |
| 3407 # ---------------- |
| 3408 # find command to truncate a binary pipe |
| 3409 m4_defun([_LT_CMD_TRUNCATE], |
| 3410 [m4_require([_LT_PATH_DD]) |
| 3411 AC_CACHE_CHECK([how to truncate binary pipes], [lt_cv_truncate_bin], |
| 3412 [printf 0123456789abcdef0123456789abcdef >conftest.i |
| 3413 cat conftest.i conftest.i >conftest2.i |
| 3414 lt_cv_truncate_bin= |
| 3415 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; the
n |
| 3416 cmp -s conftest.i conftest.out \ |
| 3417 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" |
| 3418 fi |
| 3419 rm -f conftest.i conftest2.i conftest.out |
| 3420 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"]) |
| 3421 _LT_DECL([lt_truncate_bin], [lt_cv_truncate_bin], [1], |
| 3422 [Command to truncate a binary pipe]) |
| 3423 ])# _LT_CMD_TRUNCATE |
| 3424 |
| 3425 |
| 2966 # _LT_CHECK_MAGIC_METHOD | 3426 # _LT_CHECK_MAGIC_METHOD |
| 2967 # ---------------------- | 3427 # ---------------------- |
| 2968 # how to check for library dependencies | 3428 # how to check for library dependencies |
| 2969 # -- PORTME fill in with the dynamic library characteristics | 3429 # -- PORTME fill in with the dynamic library characteristics |
| 2970 m4_defun([_LT_CHECK_MAGIC_METHOD], | 3430 m4_defun([_LT_CHECK_MAGIC_METHOD], |
| 2971 [m4_require([_LT_DECL_EGREP]) | 3431 [m4_require([_LT_DECL_EGREP]) |
| 2972 m4_require([_LT_DECL_OBJDUMP]) | 3432 m4_require([_LT_DECL_OBJDUMP]) |
| 2973 AC_CACHE_CHECK([how to recognize dependent libraries], | 3433 AC_CACHE_CHECK([how to recognize dependent libraries], |
| 2974 lt_cv_deplibs_check_method, | 3434 lt_cv_deplibs_check_method, |
| 2975 [lt_cv_file_magic_cmd='$MAGIC_CMD' | 3435 [lt_cv_file_magic_cmd='$MAGIC_CMD' |
| 2976 lt_cv_file_magic_test_file= | 3436 lt_cv_file_magic_test_file= |
| 2977 lt_cv_deplibs_check_method='unknown' | 3437 lt_cv_deplibs_check_method='unknown' |
| 2978 # Need to set the preceding variable on all platforms that support | 3438 # Need to set the preceding variable on all platforms that support |
| 2979 # interlibrary dependencies. | 3439 # interlibrary dependencies. |
| 2980 # 'none' -- dependencies not supported. | 3440 # 'none' -- dependencies not supported. |
| 2981 # `unknown' -- same as none, but documents that we really don't know. | 3441 # 'unknown' -- same as none, but documents that we really don't know. |
| 2982 # 'pass_all' -- all dependencies passed with no checks. | 3442 # 'pass_all' -- all dependencies passed with no checks. |
| 2983 # 'test_compile' -- check by making test program. | 3443 # 'test_compile' -- check by making test program. |
| 2984 # 'file_magic [[regex]]' -- check by looking for files in library path | 3444 # 'file_magic [[regex]]' -- check by looking for files in library path |
| 2985 # which responds to the $file_magic_cmd with a given extended regex. | 3445 # that responds to the $file_magic_cmd with a given extended regex. |
| 2986 # If you have `file' or equivalent on your system and you're not sure | 3446 # If you have 'file' or equivalent on your system and you're not sure |
| 2987 # whether `pass_all' will *always* work, you probably want this one. | 3447 # whether 'pass_all' will *always* work, you probably want this one. |
| 2988 | 3448 |
| 2989 case $host_os in | 3449 case $host_os in |
| 2990 aix[[4-9]]*) | 3450 aix[[4-9]]*) |
| 2991 lt_cv_deplibs_check_method=pass_all | 3451 lt_cv_deplibs_check_method=pass_all |
| 2992 ;; | 3452 ;; |
| 2993 | 3453 |
| 2994 beos*) | 3454 beos*) |
| 2995 lt_cv_deplibs_check_method=pass_all | 3455 lt_cv_deplibs_check_method=pass_all |
| 2996 ;; | 3456 ;; |
| 2997 | 3457 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 3008 ;; | 3468 ;; |
| 3009 | 3469 |
| 3010 mingw* | pw32*) | 3470 mingw* | pw32*) |
| 3011 # Base MSYS/MinGW do not provide the 'file' command needed by | 3471 # Base MSYS/MinGW do not provide the 'file' command needed by |
| 3012 # func_win32_libid shell function, so use a weaker test based on 'objdump', | 3472 # func_win32_libid shell function, so use a weaker test based on 'objdump', |
| 3013 # unless we find 'file', for example because we are cross-compiling. | 3473 # unless we find 'file', for example because we are cross-compiling. |
| 3014 if ( file / ) >/dev/null 2>&1; then | 3474 if ( file / ) >/dev/null 2>&1; then |
| 3015 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | 3475 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 3016 lt_cv_file_magic_cmd='func_win32_libid' | 3476 lt_cv_file_magic_cmd='func_win32_libid' |
| 3017 else | 3477 else |
| 3018 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture:
i386)?' | 3478 # Keep this pattern in sync with the one in func_win32_libid. |
| 3479 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture
: i386)?|pe-arm-wince|pe-x86-64)' |
| 3019 lt_cv_file_magic_cmd='$OBJDUMP -f' | 3480 lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 3020 fi | 3481 fi |
| 3021 ;; | 3482 ;; |
| 3022 | 3483 |
| 3023 cegcc) | 3484 cegcc*) |
| 3024 # use the weaker test based on 'objdump'. See mingw*. | 3485 # use the weaker test based on 'objdump'. See mingw*. |
| 3025 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architect
ure: arm)?' | 3486 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architect
ure: arm)?' |
| 3026 lt_cv_file_magic_cmd='$OBJDUMP -f' | 3487 lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 3027 ;; | 3488 ;; |
| 3028 | 3489 |
| 3029 darwin* | rhapsody*) | 3490 darwin* | rhapsody*) |
| 3030 lt_cv_deplibs_check_method=pass_all | 3491 lt_cv_deplibs_check_method=pass_all |
| 3031 ;; | 3492 ;; |
| 3032 | 3493 |
| 3033 freebsd* | dragonfly*) | 3494 freebsd* | dragonfly*) |
| 3034 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | 3495 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
| 3035 case $host_cpu in | 3496 case $host_cpu in |
| 3036 i*86 ) | 3497 i*86 ) |
| 3037 # Not sure whether the presence of OpenBSD here was a mistake. | 3498 # Not sure whether the presence of OpenBSD here was a mistake. |
| 3038 # Let's accept both of them until this is cleared up. | 3499 # Let's accept both of them until this is cleared up. |
| 3039 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]
]86 (compact )?demand paged shared library' | 3500 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]
]86 (compact )?demand paged shared library' |
| 3040 lt_cv_file_magic_cmd=/usr/bin/file | 3501 lt_cv_file_magic_cmd=/usr/bin/file |
| 3041 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | 3502 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 3042 ;; | 3503 ;; |
| 3043 esac | 3504 esac |
| 3044 else | 3505 else |
| 3045 lt_cv_deplibs_check_method=pass_all | 3506 lt_cv_deplibs_check_method=pass_all |
| 3046 fi | 3507 fi |
| 3047 ;; | 3508 ;; |
| 3048 | 3509 |
| 3049 gnu*) | 3510 haiku*) |
| 3050 lt_cv_deplibs_check_method=pass_all | 3511 lt_cv_deplibs_check_method=pass_all |
| 3051 ;; | 3512 ;; |
| 3052 | 3513 |
| 3053 hpux10.20* | hpux11*) | 3514 hpux10.20* | hpux11*) |
| 3054 lt_cv_file_magic_cmd=/usr/bin/file | 3515 lt_cv_file_magic_cmd=/usr/bin/file |
| 3055 case $host_cpu in | 3516 case $host_cpu in |
| 3056 ia64*) | 3517 ia64*) |
| 3057 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[
0-9]]) shared object file - IA64' | 3518 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[
0-9]]) shared object file - IA64' |
| 3058 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | 3519 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
| 3059 ;; | 3520 ;; |
| 3060 hppa*64*) | 3521 hppa*64*) |
| 3061 [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) sh
ared object file - PA-RISC [0-9].[0-9]'] | 3522 [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]'] |
| 3062 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | 3523 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
| 3063 ;; | 3524 ;; |
| 3064 *) | 3525 *) |
| 3065 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]
].[[0-9]]) shared library' | 3526 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]
]\.[[0-9]]) shared library' |
| 3066 lt_cv_file_magic_test_file=/usr/lib/libc.sl | 3527 lt_cv_file_magic_test_file=/usr/lib/libc.sl |
| 3067 ;; | 3528 ;; |
| 3068 esac | 3529 esac |
| 3069 ;; | 3530 ;; |
| 3070 | 3531 |
| 3071 interix[[3-9]]*) | 3532 interix[[3-9]]*) |
| 3072 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | 3533 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
| 3073 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' | 3534 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' |
| 3074 ;; | 3535 ;; |
| 3075 | 3536 |
| 3076 irix5* | irix6* | nonstopux*) | 3537 irix5* | irix6* | nonstopux*) |
| 3077 case $LD in | 3538 case $LD in |
| 3078 *-32|*"-32 ") libmagic=32-bit;; | 3539 *-32|*"-32 ") libmagic=32-bit;; |
| 3079 *-n32|*"-n32 ") libmagic=N32;; | 3540 *-n32|*"-n32 ") libmagic=N32;; |
| 3080 *-64|*"-64 ") libmagic=64-bit;; | 3541 *-64|*"-64 ") libmagic=64-bit;; |
| 3081 *) libmagic=never-match;; | 3542 *) libmagic=never-match;; |
| 3082 esac | 3543 esac |
| 3083 lt_cv_deplibs_check_method=pass_all | 3544 lt_cv_deplibs_check_method=pass_all |
| 3084 ;; | 3545 ;; |
| 3085 | 3546 |
| 3086 # This must be Linux ELF. | 3547 # This must be glibc/ELF. |
| 3087 linux* | k*bsd*-gnu | kopensolaris*-gnu) | 3548 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
| 3088 lt_cv_deplibs_check_method=pass_all | 3549 lt_cv_deplibs_check_method=pass_all |
| 3089 ;; | 3550 ;; |
| 3090 | 3551 |
| 3091 netbsd* | netbsdelf*-gnu) | 3552 netbsd*) |
| 3092 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | 3553 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
| 3093 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]
]+|_pic\.a)$' | 3554 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]
]+|_pic\.a)$' |
| 3094 else | 3555 else |
| 3095 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' | 3556 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' |
| 3096 fi | 3557 fi |
| 3097 ;; | 3558 ;; |
| 3098 | 3559 |
| 3099 newos6*) | 3560 newos6*) |
| 3100 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (execu
table|dynamic lib)' | 3561 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (execu
table|dynamic lib)' |
| 3101 lt_cv_file_magic_cmd=/usr/bin/file | 3562 lt_cv_file_magic_cmd=/usr/bin/file |
| 3102 lt_cv_file_magic_test_file=/usr/lib/libnls.so | 3563 lt_cv_file_magic_test_file=/usr/lib/libnls.so |
| 3103 ;; | 3564 ;; |
| 3104 | 3565 |
| 3105 *nto* | *qnx*) | 3566 *nto* | *qnx*) |
| 3106 lt_cv_deplibs_check_method=pass_all | 3567 lt_cv_deplibs_check_method=pass_all |
| 3107 ;; | 3568 ;; |
| 3108 | 3569 |
| 3109 openbsd*) | 3570 openbsd* | bitrig*) |
| 3110 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host
_cpu" = "openbsd2.8-powerpc"; then | 3571 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then |
| 3111 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]
]+|\.so|_pic\.a)$' | 3572 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]
]+|\.so|_pic\.a)$' |
| 3112 else | 3573 else |
| 3113 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]
]+|_pic\.a)$' | 3574 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]
]+|_pic\.a)$' |
| 3114 fi | 3575 fi |
| 3115 ;; | 3576 ;; |
| 3116 | 3577 |
| 3117 osf3* | osf4* | osf5*) | 3578 osf3* | osf4* | osf5*) |
| 3118 lt_cv_deplibs_check_method=pass_all | 3579 lt_cv_deplibs_check_method=pass_all |
| 3119 ;; | 3580 ;; |
| 3120 | 3581 |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3153 ;; | 3614 ;; |
| 3154 pc) | 3615 pc) |
| 3155 lt_cv_deplibs_check_method=pass_all | 3616 lt_cv_deplibs_check_method=pass_all |
| 3156 ;; | 3617 ;; |
| 3157 esac | 3618 esac |
| 3158 ;; | 3619 ;; |
| 3159 | 3620 |
| 3160 tpf*) | 3621 tpf*) |
| 3161 lt_cv_deplibs_check_method=pass_all | 3622 lt_cv_deplibs_check_method=pass_all |
| 3162 ;; | 3623 ;; |
| 3624 os2*) |
| 3625 lt_cv_deplibs_check_method=pass_all |
| 3626 ;; |
| 3163 esac | 3627 esac |
| 3164 ]) | 3628 ]) |
| 3629 |
| 3630 file_magic_glob= |
| 3631 want_nocaseglob=no |
| 3632 if test "$build" = "$host"; then |
| 3633 case $host_os in |
| 3634 mingw* | pw32*) |
| 3635 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then |
| 3636 want_nocaseglob=yes |
| 3637 else |
| 3638 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ
| $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"` |
| 3639 fi |
| 3640 ;; |
| 3641 esac |
| 3642 fi |
| 3643 |
| 3165 file_magic_cmd=$lt_cv_file_magic_cmd | 3644 file_magic_cmd=$lt_cv_file_magic_cmd |
| 3166 deplibs_check_method=$lt_cv_deplibs_check_method | 3645 deplibs_check_method=$lt_cv_deplibs_check_method |
| 3167 test -z "$deplibs_check_method" && deplibs_check_method=unknown | 3646 test -z "$deplibs_check_method" && deplibs_check_method=unknown |
| 3168 | 3647 |
| 3169 _LT_DECL([], [deplibs_check_method], [1], | 3648 _LT_DECL([], [deplibs_check_method], [1], |
| 3170 [Method to check whether dependent libraries are shared objects]) | 3649 [Method to check whether dependent libraries are shared objects]) |
| 3171 _LT_DECL([], [file_magic_cmd], [1], | 3650 _LT_DECL([], [file_magic_cmd], [1], |
| 3172 [Command to use when deplibs_check_method == "file_magic"]) | 3651 [Command to use when deplibs_check_method = "file_magic"]) |
| 3652 _LT_DECL([], [file_magic_glob], [1], |
| 3653 [How to find potential files when deplibs_check_method = "file_magic"]) |
| 3654 _LT_DECL([], [want_nocaseglob], [1], |
| 3655 [Find potential files using nocaseglob when deplibs_check_method = "file_mag
ic"]) |
| 3173 ])# _LT_CHECK_MAGIC_METHOD | 3656 ])# _LT_CHECK_MAGIC_METHOD |
| 3174 | 3657 |
| 3175 | 3658 |
| 3176 # LT_PATH_NM | 3659 # LT_PATH_NM |
| 3177 # ---------- | 3660 # ---------- |
| 3178 # find the pathname to a BSD- or MS-compatible name lister | 3661 # find the pathname to a BSD- or MS-compatible name lister |
| 3179 AC_DEFUN([LT_PATH_NM], | 3662 AC_DEFUN([LT_PATH_NM], |
| 3180 [AC_REQUIRE([AC_PROG_CC])dnl | 3663 [AC_REQUIRE([AC_PROG_CC])dnl |
| 3181 AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM, | 3664 AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM, |
| 3182 [if test -n "$NM"; then | 3665 [if test -n "$NM"; then |
| 3183 # Let the user override the test. | 3666 # Let the user override the test. |
| 3184 lt_cv_path_NM="$NM" | 3667 lt_cv_path_NM=$NM |
| 3185 else | 3668 else |
| 3186 lt_nm_to_check="${ac_tool_prefix}nm" | 3669 lt_nm_to_check=${ac_tool_prefix}nm |
| 3187 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | 3670 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
| 3188 lt_nm_to_check="$lt_nm_to_check nm" | 3671 lt_nm_to_check="$lt_nm_to_check nm" |
| 3189 fi | 3672 fi |
| 3190 for lt_tmp_nm in $lt_nm_to_check; do | 3673 for lt_tmp_nm in $lt_nm_to_check; do |
| 3191 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | 3674 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
| 3192 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | 3675 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
| 3193 IFS="$lt_save_ifs" | 3676 IFS=$lt_save_ifs |
| 3194 test -z "$ac_dir" && ac_dir=. | 3677 test -z "$ac_dir" && ac_dir=. |
| 3195 tmp_nm="$ac_dir/$lt_tmp_nm" | 3678 tmp_nm=$ac_dir/$lt_tmp_nm |
| 3196 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | 3679 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then |
| 3197 # Check to see if the nm accepts a BSD-compat flag. | 3680 # Check to see if the nm accepts a BSD-compat flag. |
| 3198 » # Adding the `sed 1q' prevents false positives on HP-UX, which says: | 3681 » # Adding the 'sed 1q' prevents false positives on HP-UX, which says: |
| 3199 # nm: unknown option "B" ignored | 3682 # nm: unknown option "B" ignored |
| 3200 # Tru64's nm complains that /dev/null is an invalid object file | 3683 # Tru64's nm complains that /dev/null is an invalid object file |
| 3201 » case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | 3684 » # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty |
| 3202 » */dev/null* | *'Invalid file or object type'*) | 3685 » case $build_os in |
| 3686 » mingw*) lt_bad_file=conftest.nm/nofile ;; |
| 3687 » *) lt_bad_file=/dev/null ;; |
| 3688 » esac |
| 3689 » case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in |
| 3690 » *$lt_bad_file* | *'Invalid file or object type'*) |
| 3203 lt_cv_path_NM="$tmp_nm -B" | 3691 lt_cv_path_NM="$tmp_nm -B" |
| 3204 » break | 3692 » break 2 |
| 3205 ;; | 3693 ;; |
| 3206 *) | 3694 *) |
| 3207 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | 3695 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 3208 */dev/null*) | 3696 */dev/null*) |
| 3209 lt_cv_path_NM="$tmp_nm -p" | 3697 lt_cv_path_NM="$tmp_nm -p" |
| 3210 » break | 3698 » break 2 |
| 3211 ;; | 3699 ;; |
| 3212 *) | 3700 *) |
| 3213 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | 3701 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 3214 continue # so that we can try to find one that supports BSD flags | 3702 continue # so that we can try to find one that supports BSD flags |
| 3215 ;; | 3703 ;; |
| 3216 esac | 3704 esac |
| 3217 ;; | 3705 ;; |
| 3218 esac | 3706 esac |
| 3219 fi | 3707 fi |
| 3220 done | 3708 done |
| 3221 IFS="$lt_save_ifs" | 3709 IFS=$lt_save_ifs |
| 3222 done | 3710 done |
| 3223 : ${lt_cv_path_NM=no} | 3711 : ${lt_cv_path_NM=no} |
| 3224 fi]) | 3712 fi]) |
| 3225 if test "$lt_cv_path_NM" != "no"; then | 3713 if test no != "$lt_cv_path_NM"; then |
| 3226 NM="$lt_cv_path_NM" | 3714 NM=$lt_cv_path_NM |
| 3227 else | 3715 else |
| 3228 # Didn't find any BSD compatible name lister, look for dumpbin. | 3716 # Didn't find any BSD compatible name lister, look for dumpbin. |
| 3229 AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :) | 3717 if test -n "$DUMPBIN"; then : |
| 3718 # Let the user override the test. |
| 3719 else |
| 3720 AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :) |
| 3721 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in |
| 3722 *COFF*) |
| 3723 DUMPBIN="$DUMPBIN -symbols -headers" |
| 3724 ;; |
| 3725 *) |
| 3726 DUMPBIN=: |
| 3727 ;; |
| 3728 esac |
| 3729 fi |
| 3230 AC_SUBST([DUMPBIN]) | 3730 AC_SUBST([DUMPBIN]) |
| 3231 if test "$DUMPBIN" != ":"; then | 3731 if test : != "$DUMPBIN"; then |
| 3232 NM="$DUMPBIN" | 3732 NM=$DUMPBIN |
| 3233 fi | 3733 fi |
| 3234 fi | 3734 fi |
| 3235 test -z "$NM" && NM=nm | 3735 test -z "$NM" && NM=nm |
| 3236 AC_SUBST([NM]) | 3736 AC_SUBST([NM]) |
| 3237 _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl | 3737 _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl |
| 3238 | 3738 |
| 3239 AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface], | 3739 AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface], |
| 3240 [lt_cv_nm_interface="BSD nm" | 3740 [lt_cv_nm_interface="BSD nm" |
| 3241 echo "int some_variable = 0;" > conftest.$ac_ext | 3741 echo "int some_variable = 0;" > conftest.$ac_ext |
| 3242 (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD) | 3742 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD) |
| 3243 (eval "$ac_compile" 2>conftest.err) | 3743 (eval "$ac_compile" 2>conftest.err) |
| 3244 cat conftest.err >&AS_MESSAGE_LOG_FD | 3744 cat conftest.err >&AS_MESSAGE_LOG_FD |
| 3245 (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSA
GE_LOG_FD) | 3745 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE
_LOG_FD) |
| 3246 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) | 3746 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
| 3247 cat conftest.err >&AS_MESSAGE_LOG_FD | 3747 cat conftest.err >&AS_MESSAGE_LOG_FD |
| 3248 (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD) | 3748 (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD) |
| 3249 cat conftest.out >&AS_MESSAGE_LOG_FD | 3749 cat conftest.out >&AS_MESSAGE_LOG_FD |
| 3250 if $GREP 'External.*some_variable' conftest.out > /dev/null; then | 3750 if $GREP 'External.*some_variable' conftest.out > /dev/null; then |
| 3251 lt_cv_nm_interface="MS dumpbin" | 3751 lt_cv_nm_interface="MS dumpbin" |
| 3252 fi | 3752 fi |
| 3253 rm -f conftest*]) | 3753 rm -f conftest*]) |
| 3254 ])# LT_PATH_NM | 3754 ])# LT_PATH_NM |
| 3255 | 3755 |
| 3256 # Old names: | 3756 # Old names: |
| 3257 AU_ALIAS([AM_PROG_NM], [LT_PATH_NM]) | 3757 AU_ALIAS([AM_PROG_NM], [LT_PATH_NM]) |
| 3258 AU_ALIAS([AC_PROG_NM], [LT_PATH_NM]) | 3758 AU_ALIAS([AC_PROG_NM], [LT_PATH_NM]) |
| 3259 dnl aclocal-1.4 backwards compatibility: | 3759 dnl aclocal-1.4 backwards compatibility: |
| 3260 dnl AC_DEFUN([AM_PROG_NM], []) | 3760 dnl AC_DEFUN([AM_PROG_NM], []) |
| 3261 dnl AC_DEFUN([AC_PROG_NM], []) | 3761 dnl AC_DEFUN([AC_PROG_NM], []) |
| 3262 | 3762 |
| 3763 # _LT_CHECK_SHAREDLIB_FROM_LINKLIB |
| 3764 # -------------------------------- |
| 3765 # how to determine the name of the shared library |
| 3766 # associated with a specific link library. |
| 3767 # -- PORTME fill in with the dynamic library characteristics |
| 3768 m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB], |
| 3769 [m4_require([_LT_DECL_EGREP]) |
| 3770 m4_require([_LT_DECL_OBJDUMP]) |
| 3771 m4_require([_LT_DECL_DLLTOOL]) |
| 3772 AC_CACHE_CHECK([how to associate runtime and link libraries], |
| 3773 lt_cv_sharedlib_from_linklib_cmd, |
| 3774 [lt_cv_sharedlib_from_linklib_cmd='unknown' |
| 3775 |
| 3776 case $host_os in |
| 3777 cygwin* | mingw* | pw32* | cegcc*) |
| 3778 # two different shell functions defined in ltmain.sh; |
| 3779 # decide which one to use based on capabilities of $DLLTOOL |
| 3780 case `$DLLTOOL --help 2>&1` in |
| 3781 *--identify-strict*) |
| 3782 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib |
| 3783 ;; |
| 3784 *) |
| 3785 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback |
| 3786 ;; |
| 3787 esac |
| 3788 ;; |
| 3789 *) |
| 3790 # fallback: assume linklib IS sharedlib |
| 3791 lt_cv_sharedlib_from_linklib_cmd=$ECHO |
| 3792 ;; |
| 3793 esac |
| 3794 ]) |
| 3795 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd |
| 3796 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO |
| 3797 |
| 3798 _LT_DECL([], [sharedlib_from_linklib_cmd], [1], |
| 3799 [Command to associate shared and link libraries]) |
| 3800 ])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB |
| 3801 |
| 3802 |
| 3803 # _LT_PATH_MANIFEST_TOOL |
| 3804 # ---------------------- |
| 3805 # locate the manifest tool |
| 3806 m4_defun([_LT_PATH_MANIFEST_TOOL], |
| 3807 [AC_CHECK_TOOL(MANIFEST_TOOL, mt, :) |
| 3808 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt |
| 3809 AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool
], |
| 3810 [lt_cv_path_mainfest_tool=no |
| 3811 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD |
| 3812 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out |
| 3813 cat conftest.err >&AS_MESSAGE_LOG_FD |
| 3814 if $GREP 'Manifest Tool' conftest.out > /dev/null; then |
| 3815 lt_cv_path_mainfest_tool=yes |
| 3816 fi |
| 3817 rm -f conftest*]) |
| 3818 if test yes != "$lt_cv_path_mainfest_tool"; then |
| 3819 MANIFEST_TOOL=: |
| 3820 fi |
| 3821 _LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl |
| 3822 ])# _LT_PATH_MANIFEST_TOOL |
| 3823 |
| 3824 |
| 3825 # _LT_DLL_DEF_P([FILE]) |
| 3826 # --------------------- |
| 3827 # True iff FILE is a Windows DLL '.def' file. |
| 3828 # Keep in sync with func_dll_def_p in the libtool script |
| 3829 AC_DEFUN([_LT_DLL_DEF_P], |
| 3830 [dnl |
| 3831 test DEF = "`$SED -n dnl |
| 3832 -e '\''s/^[[ ]]*//'\'' dnl Strip leading whitespace |
| 3833 -e '\''/^\(;.*\)*$/d'\'' dnl Delete empty lines and comments |
| 3834 -e '\''s/^\(EXPORTS\|LIBRARY\)\([[ ]].*\)*$/DEF/p'\'' dnl |
| 3835 -e q dnl Only consider the first "real" line |
| 3836 $1`" dnl |
| 3837 ])# _LT_DLL_DEF_P |
| 3838 |
| 3263 | 3839 |
| 3264 # LT_LIB_M | 3840 # LT_LIB_M |
| 3265 # -------- | 3841 # -------- |
| 3266 # check for math library | 3842 # check for math library |
| 3267 AC_DEFUN([LT_LIB_M], | 3843 AC_DEFUN([LT_LIB_M], |
| 3268 [AC_REQUIRE([AC_CANONICAL_HOST])dnl | 3844 [AC_REQUIRE([AC_CANONICAL_HOST])dnl |
| 3269 LIBM= | 3845 LIBM= |
| 3270 case $host in | 3846 case $host in |
| 3271 *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*) | 3847 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*) |
| 3272 # These system don't have libm, or don't need it | 3848 # These system don't have libm, or don't need it |
| 3273 ;; | 3849 ;; |
| 3274 *-ncr-sysv4.3*) | 3850 *-ncr-sysv4.3*) |
| 3275 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") | 3851 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM=-lmw) |
| 3276 AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") | 3852 AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") |
| 3277 ;; | 3853 ;; |
| 3278 *) | 3854 *) |
| 3279 AC_CHECK_LIB(m, cos, LIBM="-lm") | 3855 AC_CHECK_LIB(m, cos, LIBM=-lm) |
| 3280 ;; | 3856 ;; |
| 3281 esac | 3857 esac |
| 3282 AC_SUBST([LIBM]) | 3858 AC_SUBST([LIBM]) |
| 3283 ])# LT_LIB_M | 3859 ])# LT_LIB_M |
| 3284 | 3860 |
| 3285 # Old name: | 3861 # Old name: |
| 3286 AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M]) | 3862 AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M]) |
| 3287 dnl aclocal-1.4 backwards compatibility: | 3863 dnl aclocal-1.4 backwards compatibility: |
| 3288 dnl AC_DEFUN([AC_CHECK_LIBM], []) | 3864 dnl AC_DEFUN([AC_CHECK_LIBM], []) |
| 3289 | 3865 |
| 3290 | 3866 |
| 3291 # _LT_COMPILER_NO_RTTI([TAGNAME]) | 3867 # _LT_COMPILER_NO_RTTI([TAGNAME]) |
| 3292 # ------------------------------- | 3868 # ------------------------------- |
| 3293 m4_defun([_LT_COMPILER_NO_RTTI], | 3869 m4_defun([_LT_COMPILER_NO_RTTI], |
| 3294 [m4_require([_LT_TAG_COMPILER])dnl | 3870 [m4_require([_LT_TAG_COMPILER])dnl |
| 3295 | 3871 |
| 3296 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= | 3872 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= |
| 3297 | 3873 |
| 3298 if test "$GCC" = yes; then | 3874 if test yes = "$GCC"; then |
| 3299 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' | 3875 case $cc_basename in |
| 3876 nvcc*) |
| 3877 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin'
;; |
| 3878 *) |
| 3879 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;; |
| 3880 esac |
| 3300 | 3881 |
| 3301 _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], | 3882 _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], |
| 3302 lt_cv_prog_compiler_rtti_exceptions, | 3883 lt_cv_prog_compiler_rtti_exceptions, |
| 3303 [-fno-rtti -fno-exceptions], [], | 3884 [-fno-rtti -fno-exceptions], [], |
| 3304 [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compi
ler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) | 3885 [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compi
ler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) |
| 3305 fi | 3886 fi |
| 3306 _LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1], | 3887 _LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1], |
| 3307 [Compiler flag to turn off builtin functions]) | 3888 [Compiler flag to turn off builtin functions]) |
| 3308 ])# _LT_COMPILER_NO_RTTI | 3889 ])# _LT_COMPILER_NO_RTTI |
| 3309 | 3890 |
| 3310 | 3891 |
| 3311 # _LT_CMD_GLOBAL_SYMBOLS | 3892 # _LT_CMD_GLOBAL_SYMBOLS |
| 3312 # ---------------------- | 3893 # ---------------------- |
| 3313 m4_defun([_LT_CMD_GLOBAL_SYMBOLS], | 3894 m4_defun([_LT_CMD_GLOBAL_SYMBOLS], |
| 3314 [AC_REQUIRE([AC_CANONICAL_HOST])dnl | 3895 [AC_REQUIRE([AC_CANONICAL_HOST])dnl |
| 3315 AC_REQUIRE([AC_PROG_CC])dnl | 3896 AC_REQUIRE([AC_PROG_CC])dnl |
| 3897 AC_REQUIRE([AC_PROG_AWK])dnl |
| 3316 AC_REQUIRE([LT_PATH_NM])dnl | 3898 AC_REQUIRE([LT_PATH_NM])dnl |
| 3317 AC_REQUIRE([LT_PATH_LD])dnl | 3899 AC_REQUIRE([LT_PATH_LD])dnl |
| 3318 m4_require([_LT_DECL_SED])dnl | 3900 m4_require([_LT_DECL_SED])dnl |
| 3319 m4_require([_LT_DECL_EGREP])dnl | 3901 m4_require([_LT_DECL_EGREP])dnl |
| 3320 m4_require([_LT_TAG_COMPILER])dnl | 3902 m4_require([_LT_TAG_COMPILER])dnl |
| 3321 | 3903 |
| 3322 # Check for command to grab the raw symbol name followed by C symbol from nm. | 3904 # Check for command to grab the raw symbol name followed by C symbol from nm. |
| 3323 AC_MSG_CHECKING([command to parse $NM output from $compiler object]) | 3905 AC_MSG_CHECKING([command to parse $NM output from $compiler object]) |
| 3324 AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], | 3906 AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], |
| 3325 [ | 3907 [ |
| 3326 # These are sane defaults that work on at least a few old systems. | 3908 # These are sane defaults that work on at least a few old systems. |
| 3327 # [They come from Ultrix. What could be older than Ultrix?!! ;)] | 3909 # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 3328 | 3910 |
| 3329 # Character class describing NM global symbol codes. | 3911 # Character class describing NM global symbol codes. |
| 3330 symcode='[[BCDEGRST]]' | 3912 symcode='[[BCDEGRST]]' |
| 3331 | 3913 |
| 3332 # Regexp to match symbols that can be accessed directly from C. | 3914 # Regexp to match symbols that can be accessed directly from C. |
| 3333 sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' | 3915 sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' |
| 3334 | 3916 |
| 3335 # Define system-specific variables. | 3917 # Define system-specific variables. |
| 3336 case $host_os in | 3918 case $host_os in |
| 3337 aix*) | 3919 aix*) |
| 3338 symcode='[[BCDT]]' | 3920 symcode='[[BCDT]]' |
| 3339 ;; | 3921 ;; |
| 3340 cygwin* | mingw* | pw32* | cegcc*) | 3922 cygwin* | mingw* | pw32* | cegcc*) |
| 3341 symcode='[[ABCDGISTW]]' | 3923 symcode='[[ABCDGISTW]]' |
| 3342 ;; | 3924 ;; |
| 3343 hpux*) | 3925 hpux*) |
| 3344 if test "$host_cpu" = ia64; then | 3926 if test ia64 = "$host_cpu"; then |
| 3345 symcode='[[ABCDEGRST]]' | 3927 symcode='[[ABCDEGRST]]' |
| 3346 fi | 3928 fi |
| 3347 ;; | 3929 ;; |
| 3348 irix* | nonstopux*) | 3930 irix* | nonstopux*) |
| 3349 symcode='[[BCDEGRST]]' | 3931 symcode='[[BCDEGRST]]' |
| 3350 ;; | 3932 ;; |
| 3351 osf*) | 3933 osf*) |
| 3352 symcode='[[BCDEGQRST]]' | 3934 symcode='[[BCDEGQRST]]' |
| 3353 ;; | 3935 ;; |
| 3354 solaris*) | 3936 solaris*) |
| (...skipping 12 matching lines...) Expand all Loading... |
| 3367 symcode='[[DFNSTU]]' | 3949 symcode='[[DFNSTU]]' |
| 3368 ;; | 3950 ;; |
| 3369 esac | 3951 esac |
| 3370 | 3952 |
| 3371 # If we're using GNU nm, then use its standard symbol codes. | 3953 # If we're using GNU nm, then use its standard symbol codes. |
| 3372 case `$NM -V 2>&1` in | 3954 case `$NM -V 2>&1` in |
| 3373 *GNU* | *'with BFD'*) | 3955 *GNU* | *'with BFD'*) |
| 3374 symcode='[[ABCDGIRSTW]]' ;; | 3956 symcode='[[ABCDGIRSTW]]' ;; |
| 3375 esac | 3957 esac |
| 3376 | 3958 |
| 3959 if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
| 3960 # Gets list of data symbols to import. |
| 3961 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" |
| 3962 # Adjust the below global symbol transforms to fixup imported variables. |
| 3963 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" |
| 3964 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" |
| 3965 lt_c_name_lib_hook="\ |
| 3966 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ |
| 3967 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" |
| 3968 else |
| 3969 # Disable hooks by default. |
| 3970 lt_cv_sys_global_symbol_to_import= |
| 3971 lt_cdecl_hook= |
| 3972 lt_c_name_hook= |
| 3973 lt_c_name_lib_hook= |
| 3974 fi |
| 3975 |
| 3377 # Transform an extracted symbol line into a proper C declaration. | 3976 # Transform an extracted symbol line into a proper C declaration. |
| 3378 # Some systems (esp. on ia64) link data and code symbols differently, | 3977 # Some systems (esp. on ia64) link data and code symbols differently, |
| 3379 # so use this general approach. | 3978 # so use this general approach. |
| 3380 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p'
-e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | 3979 lt_cv_sys_global_symbol_to_cdecl="sed -n"\ |
| 3980 $lt_cdecl_hook\ |
| 3981 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ |
| 3982 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" |
| 3381 | 3983 |
| 3382 # Transform an extracted symbol line into symbol name and symbol address | 3984 # Transform an extracted symbol line into symbol name and symbol address |
| 3383 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"
\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (vo
id *) \&\2},/p'" | 3985 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ |
| 3384 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\
) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/
{\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib
\2\", (void *) \&\2},/p'" | 3986 $lt_c_name_hook\ |
| 3987 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ |
| 3988 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" |
| 3989 |
| 3990 # Transform an extracted symbol line into symbol name with lib prefix and |
| 3991 # symbol address. |
| 3992 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ |
| 3993 $lt_c_name_lib_hook\ |
| 3994 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ |
| 3995 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ |
| 3996 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" |
| 3385 | 3997 |
| 3386 # Handle CRLF in mingw tool chain | 3998 # Handle CRLF in mingw tool chain |
| 3387 opt_cr= | 3999 opt_cr= |
| 3388 case $build_os in | 4000 case $build_os in |
| 3389 mingw*) | 4001 mingw*) |
| 3390 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | 4002 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 3391 ;; | 4003 ;; |
| 3392 esac | 4004 esac |
| 3393 | 4005 |
| 3394 # Try without a prefix underscore, then with it. | 4006 # Try without a prefix underscore, then with it. |
| 3395 for ac_symprfx in "" "_"; do | 4007 for ac_symprfx in "" "_"; do |
| 3396 | 4008 |
| 3397 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | 4009 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 3398 symxfrm="\\1 $ac_symprfx\\2 \\2" | 4010 symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 3399 | 4011 |
| 3400 # Write the raw and C identifiers. | 4012 # Write the raw and C identifiers. |
| 3401 if test "$lt_cv_nm_interface" = "MS dumpbin"; then | 4013 if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
| 3402 # Fake it for dumpbin and say T for any non-static function | 4014 # Fake it for dumpbin and say T for any non-static function, |
| 3403 # and D for any global variable. | 4015 # D for any global variable and I for any imported variable. |
| 3404 # Also find C++ and __fastcall symbols from MSVC++, | 4016 # Also find C++ and __fastcall symbols from MSVC++, |
| 3405 # which start with @ or ?. | 4017 # which start with @ or ?. |
| 3406 lt_cv_sys_global_symbol_pipe="$AWK ['"\ | 4018 lt_cv_sys_global_symbol_pipe="$AWK ['"\ |
| 3407 " {last_section=section; section=\$ 3};"\ | 4019 " {last_section=section; section=\$ 3};"\ |
| 4020 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ |
| 3408 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | 4021 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ |
| 4022 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ |
| 4023 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ |
| 4024 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ |
| 3409 " \$ 0!~/External *\|/{next};"\ | 4025 " \$ 0!~/External *\|/{next};"\ |
| 3410 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | 4026 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ |
| 3411 " {if(hide[section]) next};"\ | 4027 " {if(hide[section]) next};"\ |
| 3412 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | 4028 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ |
| 3413 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | 4029 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ |
| 3414 " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | 4030 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ |
| 3415 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | 4031 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ |
| 3416 " ' prfx=^$ac_symprfx]" | 4032 " ' prfx=^$ac_symprfx]" |
| 3417 else | 4033 else |
| 3418 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)
[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | 4034 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)
[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
| 3419 fi | 4035 fi |
| 4036 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto
/d'" |
| 3420 | 4037 |
| 3421 # Check to see that the pipe works correctly. | 4038 # Check to see that the pipe works correctly. |
| 3422 pipe_works=no | 4039 pipe_works=no |
| 3423 | 4040 |
| 3424 rm -f conftest* | 4041 rm -f conftest* |
| 3425 cat > conftest.$ac_ext <<_LT_EOF | 4042 cat > conftest.$ac_ext <<_LT_EOF |
| 3426 #ifdef __cplusplus | 4043 #ifdef __cplusplus |
| 3427 extern "C" { | 4044 extern "C" { |
| 3428 #endif | 4045 #endif |
| 3429 char nm_test_var; | 4046 char nm_test_var; |
| 3430 void nm_test_func(void); | 4047 void nm_test_func(void); |
| 3431 void nm_test_func(void){} | 4048 void nm_test_func(void){} |
| 3432 #ifdef __cplusplus | 4049 #ifdef __cplusplus |
| 3433 } | 4050 } |
| 3434 #endif | 4051 #endif |
| 3435 int main(){nm_test_var='a';nm_test_func();return(0);} | 4052 int main(){nm_test_var='a';nm_test_func();return(0);} |
| 3436 _LT_EOF | 4053 _LT_EOF |
| 3437 | 4054 |
| 3438 if AC_TRY_EVAL(ac_compile); then | 4055 if AC_TRY_EVAL(ac_compile); then |
| 3439 # Now try to grab the symbols. | 4056 # Now try to grab the symbols. |
| 3440 nlist=conftest.nm | 4057 nlist=conftest.nm |
| 3441 if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $n
list) && test -s "$nlist"; then | 4058 if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \>
$nlist) && test -s "$nlist"; then |
| 3442 # Try sorting and uniquifying the output. | 4059 # Try sorting and uniquifying the output. |
| 3443 if sort "$nlist" | uniq > "$nlist"T; then | 4060 if sort "$nlist" | uniq > "$nlist"T; then |
| 3444 mv -f "$nlist"T "$nlist" | 4061 mv -f "$nlist"T "$nlist" |
| 3445 else | 4062 else |
| 3446 rm -f "$nlist"T | 4063 rm -f "$nlist"T |
| 3447 fi | 4064 fi |
| 3448 | 4065 |
| 3449 # Make sure that we snagged all the symbols we need. | 4066 # Make sure that we snagged all the symbols we need. |
| 3450 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | 4067 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then |
| 3451 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | 4068 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then |
| 3452 cat <<_LT_EOF > conftest.$ac_ext | 4069 cat <<_LT_EOF > conftest.$ac_ext |
| 4070 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. *
/ |
| 4071 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE |
| 4072 /* DATA imports from DLLs on WIN32 can't be const, because runtime |
| 4073 relocations are performed -- see ld's documentation on pseudo-relocs. */ |
| 4074 # define LT@&t@_DLSYM_CONST |
| 4075 #elif defined __osf__ |
| 4076 /* This system does not cope well with relocations in const data. */ |
| 4077 # define LT@&t@_DLSYM_CONST |
| 4078 #else |
| 4079 # define LT@&t@_DLSYM_CONST const |
| 4080 #endif |
| 4081 |
| 3453 #ifdef __cplusplus | 4082 #ifdef __cplusplus |
| 3454 extern "C" { | 4083 extern "C" { |
| 3455 #endif | 4084 #endif |
| 3456 | 4085 |
| 3457 _LT_EOF | 4086 _LT_EOF |
| 3458 # Now generate the symbol file. | 4087 # Now generate the symbol file. |
| 3459 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >
> conftest.$ac_ext' | 4088 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >
> conftest.$ac_ext' |
| 3460 | 4089 |
| 3461 cat <<_LT_EOF >> conftest.$ac_ext | 4090 cat <<_LT_EOF >> conftest.$ac_ext |
| 3462 | 4091 |
| 3463 /* The mapping between symbol names and symbols. */ | 4092 /* The mapping between symbol names and symbols. */ |
| 3464 const struct { | 4093 LT@&t@_DLSYM_CONST struct { |
| 3465 const char *name; | 4094 const char *name; |
| 3466 void *address; | 4095 void *address; |
| 3467 } | 4096 } |
| 3468 lt__PROGRAM__LTX_preloaded_symbols[[]] = | 4097 lt__PROGRAM__LTX_preloaded_symbols[[]] = |
| 3469 { | 4098 { |
| 3470 { "@PROGRAM@", (void *) 0 }, | 4099 { "@PROGRAM@", (void *) 0 }, |
| 3471 _LT_EOF | 4100 _LT_EOF |
| 3472 » $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/"
< "$nlist" | $GREP -v main >> conftest.$ac_ext | 4101 » $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "
$nlist" | $GREP -v main >> conftest.$ac_ext |
| 3473 cat <<\_LT_EOF >> conftest.$ac_ext | 4102 cat <<\_LT_EOF >> conftest.$ac_ext |
| 3474 {0, (void *) 0} | 4103 {0, (void *) 0} |
| 3475 }; | 4104 }; |
| 3476 | 4105 |
| 3477 /* This works around a problem in FreeBSD linker */ | 4106 /* This works around a problem in FreeBSD linker */ |
| 3478 #ifdef FREEBSD_WORKAROUND | 4107 #ifdef FREEBSD_WORKAROUND |
| 3479 static const void *lt_preloaded_setup() { | 4108 static const void *lt_preloaded_setup() { |
| 3480 return lt__PROGRAM__LTX_preloaded_symbols; | 4109 return lt__PROGRAM__LTX_preloaded_symbols; |
| 3481 } | 4110 } |
| 3482 #endif | 4111 #endif |
| 3483 | 4112 |
| 3484 #ifdef __cplusplus | 4113 #ifdef __cplusplus |
| 3485 } | 4114 } |
| 3486 #endif | 4115 #endif |
| 3487 _LT_EOF | 4116 _LT_EOF |
| 3488 # Now try linking the two files. | 4117 # Now try linking the two files. |
| 3489 mv conftest.$ac_objext conftstm.$ac_objext | 4118 mv conftest.$ac_objext conftstm.$ac_objext |
| 3490 » lt_save_LIBS="$LIBS" | 4119 » lt_globsym_save_LIBS=$LIBS |
| 3491 » lt_save_CFLAGS="$CFLAGS" | 4120 » lt_globsym_save_CFLAGS=$CFLAGS |
| 3492 » LIBS="conftstm.$ac_objext" | 4121 » LIBS=conftstm.$ac_objext |
| 3493 CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" | 4122 CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" |
| 3494 » if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then | 4123 » if AC_TRY_EVAL(ac_link) && test -s conftest$ac_exeext; then |
| 3495 pipe_works=yes | 4124 pipe_works=yes |
| 3496 fi | 4125 fi |
| 3497 » LIBS="$lt_save_LIBS" | 4126 » LIBS=$lt_globsym_save_LIBS |
| 3498 » CFLAGS="$lt_save_CFLAGS" | 4127 » CFLAGS=$lt_globsym_save_CFLAGS |
| 3499 else | 4128 else |
| 3500 echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD | 4129 echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD |
| 3501 fi | 4130 fi |
| 3502 else | 4131 else |
| 3503 echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD | 4132 echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD |
| 3504 fi | 4133 fi |
| 3505 else | 4134 else |
| 3506 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD | 4135 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD |
| 3507 fi | 4136 fi |
| 3508 else | 4137 else |
| 3509 echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD | 4138 echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD |
| 3510 cat conftest.$ac_ext >&5 | 4139 cat conftest.$ac_ext >&5 |
| 3511 fi | 4140 fi |
| 3512 rm -rf conftest* conftst* | 4141 rm -rf conftest* conftst* |
| 3513 | 4142 |
| 3514 # Do not use the global_symbol_pipe unless it works. | 4143 # Do not use the global_symbol_pipe unless it works. |
| 3515 if test "$pipe_works" = yes; then | 4144 if test yes = "$pipe_works"; then |
| 3516 break | 4145 break |
| 3517 else | 4146 else |
| 3518 lt_cv_sys_global_symbol_pipe= | 4147 lt_cv_sys_global_symbol_pipe= |
| 3519 fi | 4148 fi |
| 3520 done | 4149 done |
| 3521 ]) | 4150 ]) |
| 3522 if test -z "$lt_cv_sys_global_symbol_pipe"; then | 4151 if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 3523 lt_cv_sys_global_symbol_to_cdecl= | 4152 lt_cv_sys_global_symbol_to_cdecl= |
| 3524 fi | 4153 fi |
| 3525 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; the
n | 4154 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; the
n |
| 3526 AC_MSG_RESULT(failed) | 4155 AC_MSG_RESULT(failed) |
| 3527 else | 4156 else |
| 3528 AC_MSG_RESULT(ok) | 4157 AC_MSG_RESULT(ok) |
| 3529 fi | 4158 fi |
| 3530 | 4159 |
| 4160 # Response file support. |
| 4161 if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
| 4162 nm_file_list_spec='@' |
| 4163 elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then |
| 4164 nm_file_list_spec='@' |
| 4165 fi |
| 4166 |
| 3531 _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1], | 4167 _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1], |
| 3532 [Take the output of nm and produce a listing of raw symbols and C names]) | 4168 [Take the output of nm and produce a listing of raw symbols and C names]) |
| 3533 _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1], | 4169 _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1], |
| 3534 [Transform the output of nm in a proper C declaration]) | 4170 [Transform the output of nm in a proper C declaration]) |
| 4171 _LT_DECL([global_symbol_to_import], [lt_cv_sys_global_symbol_to_import], [1], |
| 4172 [Transform the output of nm into a list of symbols to manually relocate]) |
| 3535 _LT_DECL([global_symbol_to_c_name_address], | 4173 _LT_DECL([global_symbol_to_c_name_address], |
| 3536 [lt_cv_sys_global_symbol_to_c_name_address], [1], | 4174 [lt_cv_sys_global_symbol_to_c_name_address], [1], |
| 3537 [Transform the output of nm in a C name address pair]) | 4175 [Transform the output of nm in a C name address pair]) |
| 3538 _LT_DECL([global_symbol_to_c_name_address_lib_prefix], | 4176 _LT_DECL([global_symbol_to_c_name_address_lib_prefix], |
| 3539 [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1], | 4177 [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1], |
| 3540 [Transform the output of nm in a C name address pair when lib prefix is need
ed]) | 4178 [Transform the output of nm in a C name address pair when lib prefix is need
ed]) |
| 4179 _LT_DECL([nm_interface], [lt_cv_nm_interface], [1], |
| 4180 [The name lister interface]) |
| 4181 _LT_DECL([], [nm_file_list_spec], [1], |
| 4182 [Specify filename containing input files for $NM]) |
| 3541 ]) # _LT_CMD_GLOBAL_SYMBOLS | 4183 ]) # _LT_CMD_GLOBAL_SYMBOLS |
| 3542 | 4184 |
| 3543 | 4185 |
| 3544 # _LT_COMPILER_PIC([TAGNAME]) | 4186 # _LT_COMPILER_PIC([TAGNAME]) |
| 3545 # --------------------------- | 4187 # --------------------------- |
| 3546 m4_defun([_LT_COMPILER_PIC], | 4188 m4_defun([_LT_COMPILER_PIC], |
| 3547 [m4_require([_LT_TAG_COMPILER])dnl | 4189 [m4_require([_LT_TAG_COMPILER])dnl |
| 3548 _LT_TAGVAR(lt_prog_compiler_wl, $1)= | 4190 _LT_TAGVAR(lt_prog_compiler_wl, $1)= |
| 3549 _LT_TAGVAR(lt_prog_compiler_pic, $1)= | 4191 _LT_TAGVAR(lt_prog_compiler_pic, $1)= |
| 3550 _LT_TAGVAR(lt_prog_compiler_static, $1)= | 4192 _LT_TAGVAR(lt_prog_compiler_static, $1)= |
| 3551 | 4193 |
| 3552 AC_MSG_CHECKING([for $compiler option to produce PIC]) | |
| 3553 m4_if([$1], [CXX], [ | 4194 m4_if([$1], [CXX], [ |
| 3554 # C++ specific cases for pic, static, wl, etc. | 4195 # C++ specific cases for pic, static, wl, etc. |
| 3555 if test "$GXX" = yes; then | 4196 if test yes = "$GXX"; then |
| 3556 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | 4197 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 3557 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' | 4198 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' |
| 3558 | 4199 |
| 3559 case $host_os in | 4200 case $host_os in |
| 3560 aix*) | 4201 aix*) |
| 3561 # All AIX code is PIC. | 4202 # All AIX code is PIC. |
| 3562 if test "$host_cpu" = ia64; then | 4203 if test ia64 = "$host_cpu"; then |
| 3563 # AIX 5 now supports IA64 processor | 4204 # AIX 5 now supports IA64 processor |
| 3564 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | 4205 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 3565 fi | 4206 fi |
| 4207 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
| 3566 ;; | 4208 ;; |
| 3567 | 4209 |
| 3568 amigaos*) | 4210 amigaos*) |
| 3569 case $host_cpu in | 4211 case $host_cpu in |
| 3570 powerpc) | 4212 powerpc) |
| 3571 # see comment about AmigaOS4 .so support | 4213 # see comment about AmigaOS4 .so support |
| 3572 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | 4214 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
| 3573 ;; | 4215 ;; |
| 3574 m68k) | 4216 m68k) |
| 3575 # FIXME: we need at least 68020 code to build shared libraries, but | 4217 # FIXME: we need at least 68020 code to build shared libraries, but |
| 3576 # adding the `-m68020' flag to GCC prevents building anything better
, | 4218 # adding the '-m68020' flag to GCC prevents building anything better
, |
| 3577 # like `-m68040'. | 4219 # like '-m68040'. |
| 3578 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-r
estore-a4' | 4220 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-r
estore-a4' |
| 3579 ;; | 4221 ;; |
| 3580 esac | 4222 esac |
| 3581 ;; | 4223 ;; |
| 3582 | 4224 |
| 3583 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | 4225 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 3584 # PIC is the default for these OSes. | 4226 # PIC is the default for these OSes. |
| 3585 ;; | 4227 ;; |
| 3586 mingw* | cygwin* | os2* | pw32* | cegcc*) | 4228 mingw* | cygwin* | os2* | pw32* | cegcc*) |
| 3587 # This hack is so that the source file can tell whether it is being | 4229 # This hack is so that the source file can tell whether it is being |
| 3588 # built for inclusion in a dll (and should export symbols for example). | 4230 # built for inclusion in a dll (and should export symbols for example). |
| 3589 # Although the cygwin gcc ignores -fPIC, still need this for old-style | 4231 # Although the cygwin gcc ignores -fPIC, still need this for old-style |
| 3590 # (--disable-auto-import) libraries | 4232 # (--disable-auto-import) libraries |
| 3591 m4_if([$1], [GCJ], [], | 4233 m4_if([$1], [GCJ], [], |
| 3592 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) | 4234 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) |
| 4235 case $host_os in |
| 4236 os2*) |
| 4237 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static' |
| 4238 ;; |
| 4239 esac |
| 3593 ;; | 4240 ;; |
| 3594 darwin* | rhapsody*) | 4241 darwin* | rhapsody*) |
| 3595 # PIC is the default on this platform | 4242 # PIC is the default on this platform |
| 3596 # Common symbols not allowed in MH_DYLIB files | 4243 # Common symbols not allowed in MH_DYLIB files |
| 3597 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' | 4244 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' |
| 3598 ;; | 4245 ;; |
| 3599 *djgpp*) | 4246 *djgpp*) |
| 3600 # DJGPP does not support shared libraries at all | 4247 # DJGPP does not support shared libraries at all |
| 3601 _LT_TAGVAR(lt_prog_compiler_pic, $1)= | 4248 _LT_TAGVAR(lt_prog_compiler_pic, $1)= |
| 3602 ;; | 4249 ;; |
| 4250 haiku*) |
| 4251 # PIC is the default for Haiku. |
| 4252 # The "-static" flag exists, but is broken. |
| 4253 _LT_TAGVAR(lt_prog_compiler_static, $1)= |
| 4254 ;; |
| 3603 interix[[3-9]]*) | 4255 interix[[3-9]]*) |
| 3604 # Interix 3.x gcc -fpic/-fPIC options generate broken code. | 4256 # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 3605 # Instead, we relocate shared libraries at runtime. | 4257 # Instead, we relocate shared libraries at runtime. |
| 3606 ;; | 4258 ;; |
| 3607 sysv4*MP*) | 4259 sysv4*MP*) |
| 3608 if test -d /usr/nec; then | 4260 if test -d /usr/nec; then |
| 3609 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic | 4261 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic |
| 3610 fi | 4262 fi |
| 3611 ;; | 4263 ;; |
| 3612 hpux*) | 4264 hpux*) |
| (...skipping 14 matching lines...) Expand all Loading... |
| 3627 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' | 4279 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' |
| 3628 ;; | 4280 ;; |
| 3629 *) | 4281 *) |
| 3630 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | 4282 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
| 3631 ;; | 4283 ;; |
| 3632 esac | 4284 esac |
| 3633 else | 4285 else |
| 3634 case $host_os in | 4286 case $host_os in |
| 3635 aix[[4-9]]*) | 4287 aix[[4-9]]*) |
| 3636 # All AIX code is PIC. | 4288 # All AIX code is PIC. |
| 3637 » if test "$host_cpu" = ia64; then | 4289 » if test ia64 = "$host_cpu"; then |
| 3638 # AIX 5 now supports IA64 processor | 4290 # AIX 5 now supports IA64 processor |
| 3639 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | 4291 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 3640 else | 4292 else |
| 3641 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' | 4293 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' |
| 3642 fi | 4294 fi |
| 3643 ;; | 4295 ;; |
| 3644 chorus*) | 4296 chorus*) |
| 3645 case $cc_basename in | 4297 case $cc_basename in |
| 3646 cxch68*) | 4298 cxch68*) |
| 3647 # Green Hills C++ Compiler | 4299 # Green Hills C++ Compiler |
| 3648 # _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" | 4300 # _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" |
| 3649 ;; | 4301 ;; |
| 3650 esac | 4302 esac |
| 3651 ;; | 4303 ;; |
| 4304 mingw* | cygwin* | os2* | pw32* | cegcc*) |
| 4305 # This hack is so that the source file can tell whether it is being |
| 4306 # built for inclusion in a dll (and should export symbols for example). |
| 4307 m4_if([$1], [GCJ], [], |
| 4308 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) |
| 4309 ;; |
| 3652 dgux*) | 4310 dgux*) |
| 3653 case $cc_basename in | 4311 case $cc_basename in |
| 3654 ec++*) | 4312 ec++*) |
| 3655 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | 4313 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
| 3656 ;; | 4314 ;; |
| 3657 ghcx*) | 4315 ghcx*) |
| 3658 # Green Hills C++ Compiler | 4316 # Green Hills C++ Compiler |
| 3659 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' | 4317 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' |
| 3660 ;; | 4318 ;; |
| 3661 *) | 4319 *) |
| 3662 ;; | 4320 ;; |
| 3663 esac | 4321 esac |
| 3664 ;; | 4322 ;; |
| 3665 freebsd* | dragonfly*) | 4323 freebsd* | dragonfly*) |
| 3666 # FreeBSD uses GNU C++ | 4324 # FreeBSD uses GNU C++ |
| 3667 ;; | 4325 ;; |
| 3668 hpux9* | hpux10* | hpux11*) | 4326 hpux9* | hpux10* | hpux11*) |
| 3669 case $cc_basename in | 4327 case $cc_basename in |
| 3670 CC*) | 4328 CC*) |
| 3671 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | 4329 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 3672 » _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' | 4330 » _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive' |
| 3673 » if test "$host_cpu" != ia64; then | 4331 » if test ia64 != "$host_cpu"; then |
| 3674 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' | 4332 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' |
| 3675 fi | 4333 fi |
| 3676 ;; | 4334 ;; |
| 3677 aCC*) | 4335 aCC*) |
| 3678 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | 4336 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 3679 » _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' | 4337 » _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive' |
| 3680 case $host_cpu in | 4338 case $host_cpu in |
| 3681 hppa*64*|ia64*) | 4339 hppa*64*|ia64*) |
| 3682 # +Z the default | 4340 # +Z the default |
| 3683 ;; | 4341 ;; |
| 3684 *) | 4342 *) |
| 3685 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' | 4343 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' |
| 3686 ;; | 4344 ;; |
| 3687 esac | 4345 esac |
| 3688 ;; | 4346 ;; |
| 3689 *) | 4347 *) |
| 3690 ;; | 4348 ;; |
| 3691 esac | 4349 esac |
| 3692 ;; | 4350 ;; |
| 3693 interix*) | 4351 interix*) |
| 3694 # This is c89, which is MS Visual C++ (no shared libs) | 4352 # This is c89, which is MS Visual C++ (no shared libs) |
| 3695 # Anyone wants to do a port? | 4353 # Anyone wants to do a port? |
| 3696 ;; | 4354 ;; |
| 3697 irix5* | irix6* | nonstopux*) | 4355 irix5* | irix6* | nonstopux*) |
| 3698 case $cc_basename in | 4356 case $cc_basename in |
| 3699 CC*) | 4357 CC*) |
| 3700 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | 4358 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 3701 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' | 4359 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
| 3702 # CC pic flag -KPIC is the default. | 4360 # CC pic flag -KPIC is the default. |
| 3703 ;; | 4361 ;; |
| 3704 *) | 4362 *) |
| 3705 ;; | 4363 ;; |
| 3706 esac | 4364 esac |
| 3707 ;; | 4365 ;; |
| 3708 linux* | k*bsd*-gnu | kopensolaris*-gnu) | 4366 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
| 3709 case $cc_basename in | 4367 case $cc_basename in |
| 3710 KCC*) | 4368 KCC*) |
| 3711 # KAI C++ Compiler | 4369 # KAI C++ Compiler |
| 3712 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' | 4370 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' |
| 3713 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | 4371 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
| 3714 ;; | 4372 ;; |
| 3715 ecpc* ) | 4373 ecpc* ) |
| 3716 » # old Intel C++ for x86_64 which still supported -KPIC. | 4374 » # old Intel C++ for x86_64, which still supported -KPIC. |
| 3717 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | 4375 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 3718 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | 4376 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
| 3719 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' | 4377 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' |
| 3720 ;; | 4378 ;; |
| 3721 icpc* ) | 4379 icpc* ) |
| 3722 # Intel C++, used to be incompatible with GCC. | 4380 # Intel C++, used to be incompatible with GCC. |
| 3723 # ICC 10 doesn't accept -KPIC any more. | 4381 # ICC 10 doesn't accept -KPIC any more. |
| 3724 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | 4382 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 3725 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | 4383 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
| 3726 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' | 4384 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' |
| 3727 ;; | 4385 ;; |
| 3728 pgCC* | pgcpp*) | 4386 pgCC* | pgcpp*) |
| 3729 # Portland Group C++ compiler | 4387 # Portland Group C++ compiler |
| 3730 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | 4388 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 3731 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' | 4389 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' |
| 3732 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | 4390 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 3733 ;; | 4391 ;; |
| 3734 cxx*) | 4392 cxx*) |
| 3735 # Compaq C++ | 4393 # Compaq C++ |
| 3736 # Make sure the PIC flag is empty. It appears that all Alpha | 4394 # Make sure the PIC flag is empty. It appears that all Alpha |
| 3737 # Linux and Compaq Tru64 Unix objects are PIC. | 4395 # Linux and Compaq Tru64 Unix objects are PIC. |
| 3738 _LT_TAGVAR(lt_prog_compiler_pic, $1)= | 4396 _LT_TAGVAR(lt_prog_compiler_pic, $1)= |
| 3739 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' | 4397 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
| 3740 ;; | 4398 ;; |
| 3741 » xlc* | xlC*) | 4399 » xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*) |
| 3742 » # IBM XL 8.0 on PPC | 4400 » # IBM XL 8.0, 9.0 on PPC and BlueGene |
| 3743 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | 4401 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 3744 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' | 4402 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' |
| 3745 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' | 4403 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' |
| 3746 ;; | 4404 ;; |
| 3747 *) | 4405 *) |
| 3748 case `$CC -V 2>&1 | sed 5q` in | 4406 case `$CC -V 2>&1 | sed 5q` in |
| 3749 *Sun\ C*) | 4407 *Sun\ C*) |
| 3750 # Sun C++ 5.9 | 4408 # Sun C++ 5.9 |
| 3751 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | 4409 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
| 3752 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | 4410 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 3753 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' | 4411 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' |
| 3754 ;; | 4412 ;; |
| 3755 esac | 4413 esac |
| 3756 ;; | 4414 ;; |
| 3757 esac | 4415 esac |
| 3758 ;; | 4416 ;; |
| 3759 lynxos*) | 4417 lynxos*) |
| 3760 ;; | 4418 ;; |
| 3761 m88k*) | 4419 m88k*) |
| 3762 ;; | 4420 ;; |
| 3763 mvs*) | 4421 mvs*) |
| 3764 case $cc_basename in | 4422 case $cc_basename in |
| 3765 cxx*) | 4423 cxx*) |
| 3766 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' | 4424 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' |
| 3767 ;; | 4425 ;; |
| 3768 *) | 4426 *) |
| 3769 ;; | 4427 ;; |
| 3770 esac | 4428 esac |
| 3771 ;; | 4429 ;; |
| 3772 netbsd* | netbsdelf*-gnu) | 4430 netbsd*) |
| 3773 ;; | 4431 ;; |
| 3774 *qnx* | *nto*) | 4432 *qnx* | *nto*) |
| 3775 # QNX uses GNU C++, but need to define -shared option too, otherwise | 4433 # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 3776 # it will coredump. | 4434 # it will coredump. |
| 3777 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' | 4435 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' |
| 3778 ;; | 4436 ;; |
| 3779 osf3* | osf4* | osf5*) | 4437 osf3* | osf4* | osf5*) |
| 3780 case $cc_basename in | 4438 case $cc_basename in |
| 3781 KCC*) | 4439 KCC*) |
| 3782 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' | 4440 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' |
| (...skipping 11 matching lines...) Expand all Loading... |
| 3794 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' | 4452 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
| 3795 ;; | 4453 ;; |
| 3796 *) | 4454 *) |
| 3797 ;; | 4455 ;; |
| 3798 esac | 4456 esac |
| 3799 ;; | 4457 ;; |
| 3800 psos*) | 4458 psos*) |
| 3801 ;; | 4459 ;; |
| 3802 solaris*) | 4460 solaris*) |
| 3803 case $cc_basename in | 4461 case $cc_basename in |
| 3804 » CC*) | 4462 » CC* | sunCC*) |
| 3805 # Sun C++ 4.2, 5.x and Centerline C++ | 4463 # Sun C++ 4.2, 5.x and Centerline C++ |
| 3806 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | 4464 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
| 3807 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | 4465 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 3808 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' | 4466 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' |
| 3809 ;; | 4467 ;; |
| 3810 gcx*) | 4468 gcx*) |
| 3811 # Green Hills C++ Compiler | 4469 # Green Hills C++ Compiler |
| 3812 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' | 4470 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' |
| 3813 ;; | 4471 ;; |
| 3814 *) | 4472 *) |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3851 ;; | 4509 ;; |
| 3852 vxworks*) | 4510 vxworks*) |
| 3853 ;; | 4511 ;; |
| 3854 *) | 4512 *) |
| 3855 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no | 4513 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no |
| 3856 ;; | 4514 ;; |
| 3857 esac | 4515 esac |
| 3858 fi | 4516 fi |
| 3859 ], | 4517 ], |
| 3860 [ | 4518 [ |
| 3861 if test "$GCC" = yes; then | 4519 if test yes = "$GCC"; then |
| 3862 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | 4520 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 3863 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' | 4521 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' |
| 3864 | 4522 |
| 3865 case $host_os in | 4523 case $host_os in |
| 3866 aix*) | 4524 aix*) |
| 3867 # All AIX code is PIC. | 4525 # All AIX code is PIC. |
| 3868 if test "$host_cpu" = ia64; then | 4526 if test ia64 = "$host_cpu"; then |
| 3869 # AIX 5 now supports IA64 processor | 4527 # AIX 5 now supports IA64 processor |
| 3870 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | 4528 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 3871 fi | 4529 fi |
| 4530 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
| 3872 ;; | 4531 ;; |
| 3873 | 4532 |
| 3874 amigaos*) | 4533 amigaos*) |
| 3875 case $host_cpu in | 4534 case $host_cpu in |
| 3876 powerpc) | 4535 powerpc) |
| 3877 # see comment about AmigaOS4 .so support | 4536 # see comment about AmigaOS4 .so support |
| 3878 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | 4537 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
| 3879 ;; | 4538 ;; |
| 3880 m68k) | 4539 m68k) |
| 3881 # FIXME: we need at least 68020 code to build shared libraries, but | 4540 # FIXME: we need at least 68020 code to build shared libraries, but |
| 3882 # adding the `-m68020' flag to GCC prevents building anything better
, | 4541 # adding the '-m68020' flag to GCC prevents building anything better
, |
| 3883 # like `-m68040'. | 4542 # like '-m68040'. |
| 3884 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-r
estore-a4' | 4543 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-r
estore-a4' |
| 3885 ;; | 4544 ;; |
| 3886 esac | 4545 esac |
| 3887 ;; | 4546 ;; |
| 3888 | 4547 |
| 3889 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | 4548 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 3890 # PIC is the default for these OSes. | 4549 # PIC is the default for these OSes. |
| 3891 ;; | 4550 ;; |
| 3892 | 4551 |
| 3893 mingw* | cygwin* | pw32* | os2* | cegcc*) | 4552 mingw* | cygwin* | pw32* | os2* | cegcc*) |
| 3894 # This hack is so that the source file can tell whether it is being | 4553 # This hack is so that the source file can tell whether it is being |
| 3895 # built for inclusion in a dll (and should export symbols for example). | 4554 # built for inclusion in a dll (and should export symbols for example). |
| 3896 # Although the cygwin gcc ignores -fPIC, still need this for old-style | 4555 # Although the cygwin gcc ignores -fPIC, still need this for old-style |
| 3897 # (--disable-auto-import) libraries | 4556 # (--disable-auto-import) libraries |
| 3898 m4_if([$1], [GCJ], [], | 4557 m4_if([$1], [GCJ], [], |
| 3899 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) | 4558 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) |
| 4559 case $host_os in |
| 4560 os2*) |
| 4561 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static' |
| 4562 ;; |
| 4563 esac |
| 3900 ;; | 4564 ;; |
| 3901 | 4565 |
| 3902 darwin* | rhapsody*) | 4566 darwin* | rhapsody*) |
| 3903 # PIC is the default on this platform | 4567 # PIC is the default on this platform |
| 3904 # Common symbols not allowed in MH_DYLIB files | 4568 # Common symbols not allowed in MH_DYLIB files |
| 3905 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' | 4569 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' |
| 3906 ;; | 4570 ;; |
| 3907 | 4571 |
| 4572 haiku*) |
| 4573 # PIC is the default for Haiku. |
| 4574 # The "-static" flag exists, but is broken. |
| 4575 _LT_TAGVAR(lt_prog_compiler_static, $1)= |
| 4576 ;; |
| 4577 |
| 3908 hpux*) | 4578 hpux*) |
| 3909 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | 4579 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
| 3910 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | 4580 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag |
| 3911 # sets the default TLS model and affects inlining. | 4581 # sets the default TLS model and affects inlining. |
| 3912 case $host_cpu in | 4582 case $host_cpu in |
| 3913 hppa*64*) | 4583 hppa*64*) |
| 3914 # +Z the default | 4584 # +Z the default |
| 3915 ;; | 4585 ;; |
| 3916 *) | 4586 *) |
| 3917 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | 4587 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
| (...skipping 22 matching lines...) Expand all Loading... |
| 3940 sysv4*MP*) | 4610 sysv4*MP*) |
| 3941 if test -d /usr/nec; then | 4611 if test -d /usr/nec; then |
| 3942 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic | 4612 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic |
| 3943 fi | 4613 fi |
| 3944 ;; | 4614 ;; |
| 3945 | 4615 |
| 3946 *) | 4616 *) |
| 3947 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | 4617 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
| 3948 ;; | 4618 ;; |
| 3949 esac | 4619 esac |
| 4620 |
| 4621 case $cc_basename in |
| 4622 nvcc*) # Cuda Compiler Driver 2.2 |
| 4623 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker ' |
| 4624 if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then |
| 4625 _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_com
piler_pic, $1)" |
| 4626 fi |
| 4627 ;; |
| 4628 esac |
| 3950 else | 4629 else |
| 3951 # PORTME Check for flag to pass linker flags through the system compiler. | 4630 # PORTME Check for flag to pass linker flags through the system compiler. |
| 3952 case $host_os in | 4631 case $host_os in |
| 3953 aix*) | 4632 aix*) |
| 3954 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | 4633 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 3955 if test "$host_cpu" = ia64; then | 4634 if test ia64 = "$host_cpu"; then |
| 3956 # AIX 5 now supports IA64 processor | 4635 # AIX 5 now supports IA64 processor |
| 3957 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | 4636 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 3958 else | 4637 else |
| 3959 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' | 4638 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' |
| 3960 fi | 4639 fi |
| 3961 ;; | 4640 ;; |
| 3962 | 4641 |
| 4642 darwin* | rhapsody*) |
| 4643 # PIC is the default on this platform |
| 4644 # Common symbols not allowed in MH_DYLIB files |
| 4645 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' |
| 4646 case $cc_basename in |
| 4647 nagfor*) |
| 4648 # NAG Fortran compiler |
| 4649 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,' |
| 4650 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' |
| 4651 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 4652 ;; |
| 4653 esac |
| 4654 ;; |
| 4655 |
| 3963 mingw* | cygwin* | pw32* | os2* | cegcc*) | 4656 mingw* | cygwin* | pw32* | os2* | cegcc*) |
| 3964 # This hack is so that the source file can tell whether it is being | 4657 # This hack is so that the source file can tell whether it is being |
| 3965 # built for inclusion in a dll (and should export symbols for example). | 4658 # built for inclusion in a dll (and should export symbols for example). |
| 3966 m4_if([$1], [GCJ], [], | 4659 m4_if([$1], [GCJ], [], |
| 3967 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) | 4660 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) |
| 4661 case $host_os in |
| 4662 os2*) |
| 4663 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static' |
| 4664 ;; |
| 4665 esac |
| 3968 ;; | 4666 ;; |
| 3969 | 4667 |
| 3970 hpux9* | hpux10* | hpux11*) | 4668 hpux9* | hpux10* | hpux11*) |
| 3971 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | 4669 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 3972 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | 4670 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 3973 # not for PA HP-UX. | 4671 # not for PA HP-UX. |
| 3974 case $host_cpu in | 4672 case $host_cpu in |
| 3975 hppa*64*|ia64*) | 4673 hppa*64*|ia64*) |
| 3976 # +Z the default | 4674 # +Z the default |
| 3977 ;; | 4675 ;; |
| 3978 *) | 4676 *) |
| 3979 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' | 4677 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' |
| 3980 ;; | 4678 ;; |
| 3981 esac | 4679 esac |
| 3982 # Is there a better lt_prog_compiler_static that works with the bundled CC
? | 4680 # Is there a better lt_prog_compiler_static that works with the bundled CC
? |
| 3983 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' | 4681 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive' |
| 3984 ;; | 4682 ;; |
| 3985 | 4683 |
| 3986 irix5* | irix6* | nonstopux*) | 4684 irix5* | irix6* | nonstopux*) |
| 3987 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | 4685 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 3988 # PIC (with -KPIC) is the default. | 4686 # PIC (with -KPIC) is the default. |
| 3989 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' | 4687 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
| 3990 ;; | 4688 ;; |
| 3991 | 4689 |
| 3992 linux* | k*bsd*-gnu | kopensolaris*-gnu) | 4690 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
| 3993 case $cc_basename in | 4691 case $cc_basename in |
| 3994 # old Intel for x86_64 which still supported -KPIC. | 4692 # old Intel for x86_64, which still supported -KPIC. |
| 3995 ecc*) | 4693 ecc*) |
| 3996 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | 4694 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 3997 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | 4695 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
| 3998 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' | 4696 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' |
| 3999 ;; | 4697 ;; |
| 4000 # icc used to be incompatible with GCC. | 4698 # icc used to be incompatible with GCC. |
| 4001 # ICC 10 doesn't accept -KPIC any more. | 4699 # ICC 10 doesn't accept -KPIC any more. |
| 4002 icc* | ifort*) | 4700 icc* | ifort*) |
| 4003 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | 4701 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 4004 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | 4702 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
| 4005 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' | 4703 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' |
| 4006 ;; | 4704 ;; |
| 4007 # Lahey Fortran 8.1. | 4705 # Lahey Fortran 8.1. |
| 4008 lf95*) | 4706 lf95*) |
| 4009 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | 4707 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 4010 _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared' | 4708 _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared' |
| 4011 _LT_TAGVAR(lt_prog_compiler_static, $1)='--static' | 4709 _LT_TAGVAR(lt_prog_compiler_static, $1)='--static' |
| 4012 ;; | 4710 ;; |
| 4013 pgcc* | pgf77* | pgf90* | pgf95*) | 4711 nagfor*) |
| 4712 » # NAG Fortran compiler |
| 4713 » _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,' |
| 4714 » _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' |
| 4715 » _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 4716 » ;; |
| 4717 tcc*) |
| 4718 » # Fabrice Bellard et al's Tiny C Compiler |
| 4719 » _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 4720 » _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
| 4721 » _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' |
| 4722 » ;; |
| 4723 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
| 4014 # Portland Group compilers (*not* the Pentium gcc compiler, | 4724 # Portland Group compilers (*not* the Pentium gcc compiler, |
| 4015 # which looks to be a dead project) | 4725 # which looks to be a dead project) |
| 4016 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | 4726 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 4017 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' | 4727 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' |
| 4018 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | 4728 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 4019 ;; | 4729 ;; |
| 4020 ccc*) | 4730 ccc*) |
| 4021 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | 4731 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 4022 # All Alpha code is PIC. | 4732 # All Alpha code is PIC. |
| 4023 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' | 4733 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
| 4024 ;; | 4734 ;; |
| 4025 xl*) | 4735 xl* | bgxl* | bgf* | mpixl*) |
| 4026 » # IBM XL C 8.0/Fortran 10.1 on PPC | 4736 » # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene |
| 4027 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | 4737 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 4028 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' | 4738 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' |
| 4029 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' | 4739 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' |
| 4030 ;; | 4740 ;; |
| 4031 *) | 4741 *) |
| 4032 case `$CC -V 2>&1 | sed 5q` in | 4742 case `$CC -V 2>&1 | sed 5q` in |
| 4743 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-
3]]*) |
| 4744 # Sun Fortran 8.3 passes all unrecognized flags to the linker |
| 4745 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
| 4746 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 4747 _LT_TAGVAR(lt_prog_compiler_wl, $1)='' |
| 4748 ;; |
| 4749 *Sun\ F* | *Sun*Fortran*) |
| 4750 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
| 4751 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 4752 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' |
| 4753 ;; |
| 4033 *Sun\ C*) | 4754 *Sun\ C*) |
| 4034 # Sun C 5.9 | 4755 # Sun C 5.9 |
| 4035 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | 4756 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
| 4036 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | 4757 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 4037 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | 4758 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 4038 ;; | 4759 ;; |
| 4039 » *Sun\ F*) | 4760 *Intel*\ [[CF]]*Compiler*) |
| 4040 » # Sun Fortran 8.3 passes all unrecognized flags to the linker | 4761 » _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 4041 » _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | 4762 » _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
| 4763 » _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' |
| 4764 » ;; |
| 4765 » *Portland\ Group*) |
| 4766 » _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 4767 » _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' |
| 4042 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | 4768 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 4043 _LT_TAGVAR(lt_prog_compiler_wl, $1)='' | |
| 4044 ;; | 4769 ;; |
| 4045 esac | 4770 esac |
| 4046 ;; | 4771 ;; |
| 4047 esac | 4772 esac |
| 4048 ;; | 4773 ;; |
| 4049 | 4774 |
| 4050 newsos6) | 4775 newsos6) |
| 4051 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | 4776 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
| 4052 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | 4777 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 4053 ;; | 4778 ;; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 4065 ;; | 4790 ;; |
| 4066 | 4791 |
| 4067 rdos*) | 4792 rdos*) |
| 4068 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' | 4793 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
| 4069 ;; | 4794 ;; |
| 4070 | 4795 |
| 4071 solaris*) | 4796 solaris*) |
| 4072 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | 4797 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
| 4073 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | 4798 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 4074 case $cc_basename in | 4799 case $cc_basename in |
| 4075 f77* | f90* | f95*) | 4800 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) |
| 4076 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; | 4801 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; |
| 4077 *) | 4802 *) |
| 4078 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; | 4803 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; |
| 4079 esac | 4804 esac |
| 4080 ;; | 4805 ;; |
| 4081 | 4806 |
| 4082 sunos4*) | 4807 sunos4*) |
| 4083 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' | 4808 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' |
| 4084 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' | 4809 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' |
| 4085 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | 4810 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 4086 ;; | 4811 ;; |
| 4087 | 4812 |
| 4088 sysv4 | sysv4.2uw2* | sysv4.3*) | 4813 sysv4 | sysv4.2uw2* | sysv4.3*) |
| 4089 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | 4814 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 4090 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | 4815 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
| 4091 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | 4816 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 4092 ;; | 4817 ;; |
| 4093 | 4818 |
| 4094 sysv4*MP*) | 4819 sysv4*MP*) |
| 4095 if test -d /usr/nec ;then | 4820 if test -d /usr/nec; then |
| 4096 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' | 4821 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' |
| 4097 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | 4822 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 4098 fi | 4823 fi |
| 4099 ;; | 4824 ;; |
| 4100 | 4825 |
| 4101 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | 4826 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 4102 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | 4827 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 4103 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | 4828 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
| 4104 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | 4829 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 4105 ;; | 4830 ;; |
| 4106 | 4831 |
| 4107 unicos*) | 4832 unicos*) |
| 4108 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | 4833 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 4109 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no | 4834 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no |
| 4110 ;; | 4835 ;; |
| 4111 | 4836 |
| 4112 uts4*) | 4837 uts4*) |
| 4113 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' | 4838 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' |
| 4114 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | 4839 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 4115 ;; | 4840 ;; |
| 4116 | 4841 |
| 4117 *) | 4842 *) |
| 4118 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no | 4843 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no |
| 4119 ;; | 4844 ;; |
| 4120 esac | 4845 esac |
| 4121 fi | 4846 fi |
| 4122 ]) | 4847 ]) |
| 4123 case $host_os in | 4848 case $host_os in |
| 4124 # For platforms which do not support PIC, -DPIC is meaningless: | 4849 # For platforms that do not support PIC, -DPIC is meaningless: |
| 4125 *djgpp*) | 4850 *djgpp*) |
| 4126 _LT_TAGVAR(lt_prog_compiler_pic, $1)= | 4851 _LT_TAGVAR(lt_prog_compiler_pic, $1)= |
| 4127 ;; | 4852 ;; |
| 4128 *) | 4853 *) |
| 4129 _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@
&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])" | 4854 _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@
&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])" |
| 4130 ;; | 4855 ;; |
| 4131 esac | 4856 esac |
| 4132 AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)]) | 4857 |
| 4133 _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1], | 4858 AC_CACHE_CHECK([for $compiler option to produce PIC], |
| 4134 » [How to pass a linker flag through the compiler]) | 4859 [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)], |
| 4860 [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
]) |
| 4861 _LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1) |
| 4135 | 4862 |
| 4136 # | 4863 # |
| 4137 # Check to make sure the PIC flag actually works. | 4864 # Check to make sure the PIC flag actually works. |
| 4138 # | 4865 # |
| 4139 if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then | 4866 if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then |
| 4140 _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $
1) works], | 4867 _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $
1) works], |
| 4141 [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)], | 4868 [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)], |
| 4142 [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1]
,[CXX],[ -DPIC],[])])], [], | 4869 [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1]
,[CXX],[ -DPIC],[])])], [], |
| 4143 [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in | 4870 [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in |
| 4144 "" | " "*) ;; | 4871 "" | " "*) ;; |
| 4145 *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic,
$1)" ;; | 4872 *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic,
$1)" ;; |
| 4146 esac], | 4873 esac], |
| 4147 [_LT_TAGVAR(lt_prog_compiler_pic, $1)= | 4874 [_LT_TAGVAR(lt_prog_compiler_pic, $1)= |
| 4148 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) | 4875 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) |
| 4149 fi | 4876 fi |
| 4150 _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1], | 4877 _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1], |
| 4151 [Additional compiler flags for building library objects]) | 4878 [Additional compiler flags for building library objects]) |
| 4152 | 4879 |
| 4880 _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1], |
| 4881 [How to pass a linker flag through the compiler]) |
| 4153 # | 4882 # |
| 4154 # Check to make sure the static flag actually works. | 4883 # Check to make sure the static flag actually works. |
| 4155 # | 4884 # |
| 4156 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt
_prog_compiler_static, $1)\" | 4885 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt
_prog_compiler_static, $1)\" |
| 4157 _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], | 4886 _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], |
| 4158 _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1), | 4887 _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1), |
| 4159 $lt_tmp_static_flag, | 4888 $lt_tmp_static_flag, |
| 4160 [], | 4889 [], |
| 4161 [_LT_TAGVAR(lt_prog_compiler_static, $1)=]) | 4890 [_LT_TAGVAR(lt_prog_compiler_static, $1)=]) |
| 4162 _LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1], | 4891 _LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1], |
| 4163 [Compiler flag to prevent dynamic linking]) | 4892 [Compiler flag to prevent dynamic linking]) |
| 4164 ])# _LT_COMPILER_PIC | 4893 ])# _LT_COMPILER_PIC |
| 4165 | 4894 |
| 4166 | 4895 |
| 4167 # _LT_LINKER_SHLIBS([TAGNAME]) | 4896 # _LT_LINKER_SHLIBS([TAGNAME]) |
| 4168 # ---------------------------- | 4897 # ---------------------------- |
| 4169 # See if the linker supports building shared libraries. | 4898 # See if the linker supports building shared libraries. |
| 4170 m4_defun([_LT_LINKER_SHLIBS], | 4899 m4_defun([_LT_LINKER_SHLIBS], |
| 4171 [AC_REQUIRE([LT_PATH_LD])dnl | 4900 [AC_REQUIRE([LT_PATH_LD])dnl |
| 4172 AC_REQUIRE([LT_PATH_NM])dnl | 4901 AC_REQUIRE([LT_PATH_NM])dnl |
| 4902 m4_require([_LT_PATH_MANIFEST_TOOL])dnl |
| 4173 m4_require([_LT_FILEUTILS_DEFAULTS])dnl | 4903 m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
| 4174 m4_require([_LT_DECL_EGREP])dnl | 4904 m4_require([_LT_DECL_EGREP])dnl |
| 4175 m4_require([_LT_DECL_SED])dnl | 4905 m4_require([_LT_DECL_SED])dnl |
| 4176 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl | 4906 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl |
| 4177 m4_require([_LT_TAG_COMPILER])dnl | 4907 m4_require([_LT_TAG_COMPILER])dnl |
| 4178 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) | 4908 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) |
| 4179 m4_if([$1], [CXX], [ | 4909 m4_if([$1], [CXX], [ |
| 4180 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbo
l_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | 4910 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbo
l_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 4911 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] |
| 4181 case $host_os in | 4912 case $host_os in |
| 4182 aix[[4-9]]*) | 4913 aix[[4-9]]*) |
| 4183 # If we're using GNU nm, then we don't want the "-C" option. | 4914 # If we're using GNU nm, then we don't want the "-C" option. |
| 4184 # -C means demangle to AIX nm, but means don't demangle with GNU nm | 4915 # -C means demangle to GNU nm, but means don't demangle to AIX nm. |
| 4916 # Without the "-l" option, or with the "-B" option, AIX nm treats |
| 4917 # weak defined symbols like other global defined symbols, whereas |
| 4918 # GNU nm marks them as "W". |
| 4919 # While the 'weak' keyword is ignored in the Export File, we need |
| 4920 # it in the Import File for the 'aix-soname' feature, so we have |
| 4921 # to replace the "-B" option with "-P" for AIX nm. |
| 4185 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | 4922 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
| 4186 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk
'\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,
1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | 4923 _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 { pr
int \$ 3 } } }'\'' | sort -u > $export_symbols' |
| 4187 else | 4924 else |
| 4188 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk
'\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1
,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | 4925 _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\''s/B\
([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T"
) || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 =
= "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") ||
(\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $e
xport_symbols' |
| 4189 fi | 4926 fi |
| 4190 ;; | 4927 ;; |
| 4191 pw32*) | 4928 pw32*) |
| 4192 _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" | 4929 _LT_TAGVAR(export_symbols_cmds, $1)=$ltdll_cmds |
| 4193 ;; | 4930 ;; |
| 4194 cygwin* | mingw* | cegcc*) | 4931 cygwin* | mingw* | cegcc*) |
| 4195 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_sym
bol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]
__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[
]]/s/.* //'\'' | sort | uniq > $export_symbols' | 4932 case $cc_basename in |
| 4196 ;; | 4933 cl*) |
| 4197 linux* | k*bsd*-gnu) | 4934 _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTO
R_.*' |
| 4198 _LT_TAGVAR(link_all_deplibs, $1)=no | 4935 ;; |
| 4199 ;; | 4936 *) |
| 4937 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_s
ymbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[
]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\''
| sort | uniq > $export_symbols' |
| 4938 _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FI
D]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'] |
| 4939 ;; |
| 4940 esac |
| 4941 ;; |
| 4200 *) | 4942 *) |
| 4201 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_sym
bol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | 4943 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_sym
bol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 4202 ;; | 4944 ;; |
| 4203 esac | 4945 esac |
| 4204 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] | |
| 4205 ], [ | 4946 ], [ |
| 4206 runpath_var= | 4947 runpath_var= |
| 4207 _LT_TAGVAR(allow_undefined_flag, $1)= | 4948 _LT_TAGVAR(allow_undefined_flag, $1)= |
| 4208 _LT_TAGVAR(always_export_symbols, $1)=no | 4949 _LT_TAGVAR(always_export_symbols, $1)=no |
| 4209 _LT_TAGVAR(archive_cmds, $1)= | 4950 _LT_TAGVAR(archive_cmds, $1)= |
| 4210 _LT_TAGVAR(archive_expsym_cmds, $1)= | 4951 _LT_TAGVAR(archive_expsym_cmds, $1)= |
| 4211 _LT_TAGVAR(compiler_needs_object, $1)=no | 4952 _LT_TAGVAR(compiler_needs_object, $1)=no |
| 4212 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no | 4953 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no |
| 4213 _LT_TAGVAR(export_dynamic_flag_spec, $1)= | 4954 _LT_TAGVAR(export_dynamic_flag_spec, $1)= |
| 4214 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbo
l_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | 4955 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbo
l_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 4215 _LT_TAGVAR(hardcode_automatic, $1)=no | 4956 _LT_TAGVAR(hardcode_automatic, $1)=no |
| 4216 _LT_TAGVAR(hardcode_direct, $1)=no | 4957 _LT_TAGVAR(hardcode_direct, $1)=no |
| 4217 _LT_TAGVAR(hardcode_direct_absolute, $1)=no | 4958 _LT_TAGVAR(hardcode_direct_absolute, $1)=no |
| 4218 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= | 4959 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= |
| 4219 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= | |
| 4220 _LT_TAGVAR(hardcode_libdir_separator, $1)= | 4960 _LT_TAGVAR(hardcode_libdir_separator, $1)= |
| 4221 _LT_TAGVAR(hardcode_minus_L, $1)=no | 4961 _LT_TAGVAR(hardcode_minus_L, $1)=no |
| 4222 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported | 4962 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
| 4223 _LT_TAGVAR(inherit_rpath, $1)=no | 4963 _LT_TAGVAR(inherit_rpath, $1)=no |
| 4224 _LT_TAGVAR(link_all_deplibs, $1)=unknown | 4964 _LT_TAGVAR(link_all_deplibs, $1)=unknown |
| 4225 _LT_TAGVAR(module_cmds, $1)= | 4965 _LT_TAGVAR(module_cmds, $1)= |
| 4226 _LT_TAGVAR(module_expsym_cmds, $1)= | 4966 _LT_TAGVAR(module_expsym_cmds, $1)= |
| 4227 _LT_TAGVAR(old_archive_from_new_cmds, $1)= | 4967 _LT_TAGVAR(old_archive_from_new_cmds, $1)= |
| 4228 _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)= | 4968 _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)= |
| 4229 _LT_TAGVAR(thread_safe_flag_spec, $1)= | 4969 _LT_TAGVAR(thread_safe_flag_spec, $1)= |
| 4230 _LT_TAGVAR(whole_archive_flag_spec, $1)= | 4970 _LT_TAGVAR(whole_archive_flag_spec, $1)= |
| 4231 # include_expsyms should be a list of space-separated symbols to be *always* | 4971 # include_expsyms should be a list of space-separated symbols to be *always* |
| 4232 # included in the symbol list | 4972 # included in the symbol list |
| 4233 _LT_TAGVAR(include_expsyms, $1)= | 4973 _LT_TAGVAR(include_expsyms, $1)= |
| 4234 # exclude_expsyms can be an extended regexp of symbols to exclude | 4974 # exclude_expsyms can be an extended regexp of symbols to exclude |
| 4235 # it will be wrapped by ` (' and `)$', so one must not match beginning or | 4975 # it will be wrapped by ' (' and ')$', so one must not match beginning or |
| 4236 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | 4976 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', |
| 4237 # as well as any symbol that contains `d'. | 4977 # as well as any symbol that contains 'd'. |
| 4238 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] | 4978 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] |
| 4239 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | 4979 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 4240 # platforms (ab)use it in PIC code, but their linkers get confused if | 4980 # platforms (ab)use it in PIC code, but their linkers get confused if |
| 4241 # the symbol is explicitly referenced. Since portable code cannot | 4981 # the symbol is explicitly referenced. Since portable code cannot |
| 4242 # rely on this symbol name, it's probably fine to never include it in | 4982 # rely on this symbol name, it's probably fine to never include it in |
| 4243 # preloaded symbol tables. | 4983 # preloaded symbol tables. |
| 4244 # Exclude shared library initialization/finalization symbols. | 4984 # Exclude shared library initialization/finalization symbols. |
| 4245 dnl Note also adjust exclude_expsyms for C++ above. | 4985 dnl Note also adjust exclude_expsyms for C++ above. |
| 4246 extract_expsyms_cmds= | 4986 extract_expsyms_cmds= |
| 4247 | 4987 |
| 4248 case $host_os in | 4988 case $host_os in |
| 4249 cygwin* | mingw* | pw32* | cegcc*) | 4989 cygwin* | mingw* | pw32* | cegcc*) |
| 4250 # FIXME: the MSVC++ port hasn't been tested in a loooong time | 4990 # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 4251 # When not using gcc, we currently assume that we are using | 4991 # When not using gcc, we currently assume that we are using |
| 4252 # Microsoft Visual C++. | 4992 # Microsoft Visual C++. |
| 4253 if test "$GCC" != yes; then | 4993 if test yes != "$GCC"; then |
| 4254 with_gnu_ld=no | 4994 with_gnu_ld=no |
| 4255 fi | 4995 fi |
| 4256 ;; | 4996 ;; |
| 4257 interix*) | 4997 interix*) |
| 4258 # we just hope/assume this is gcc and not c89 (= MSVC++) | 4998 # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 4259 with_gnu_ld=yes | 4999 with_gnu_ld=yes |
| 4260 ;; | 5000 ;; |
| 4261 openbsd*) | 5001 openbsd* | bitrig*) |
| 4262 with_gnu_ld=no | 5002 with_gnu_ld=no |
| 4263 ;; | 5003 ;; |
| 4264 linux* | k*bsd*-gnu) | |
| 4265 _LT_TAGVAR(link_all_deplibs, $1)=no | |
| 4266 ;; | |
| 4267 esac | 5004 esac |
| 4268 | 5005 |
| 4269 _LT_TAGVAR(ld_shlibs, $1)=yes | 5006 _LT_TAGVAR(ld_shlibs, $1)=yes |
| 4270 if test "$with_gnu_ld" = yes; then | 5007 |
| 5008 # On some targets, GNU ld is compatible enough with the native linker |
| 5009 # that we're better off using the native interface for both. |
| 5010 lt_use_gnu_ld_interface=no |
| 5011 if test yes = "$with_gnu_ld"; then |
| 5012 case $host_os in |
| 5013 aix*) |
| 5014 » # The AIX port of GNU ld has always aspired to compatibility |
| 5015 » # with the native linker. However, as the warning in the GNU ld |
| 5016 » # block says, versions before 2.19.5* couldn't really create working |
| 5017 » # shared libraries, regardless of the interface used. |
| 5018 » case `$LD -v 2>&1` in |
| 5019 » *\ \(GNU\ Binutils\)\ 2.19.5*) ;; |
| 5020 » *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;; |
| 5021 » *\ \(GNU\ Binutils\)\ [[3-9]]*) ;; |
| 5022 » *) |
| 5023 » lt_use_gnu_ld_interface=yes |
| 5024 » ;; |
| 5025 » esac |
| 5026 » ;; |
| 5027 *) |
| 5028 » lt_use_gnu_ld_interface=yes |
| 5029 » ;; |
| 5030 esac |
| 5031 fi |
| 5032 |
| 5033 if test yes = "$lt_use_gnu_ld_interface"; then |
| 4271 # If archive_cmds runs LD, not CC, wlarc should be empty | 5034 # If archive_cmds runs LD, not CC, wlarc should be empty |
| 4272 wlarc='${wl}' | 5035 wlarc='$wl' |
| 4273 | 5036 |
| 4274 # Set some defaults for GNU ld with shared library support. These | 5037 # Set some defaults for GNU ld with shared library support. These |
| 4275 # are reset later if shared libraries are not supported. Putting them | 5038 # are reset later if shared libraries are not supported. Putting them |
| 4276 # here allows them to be overridden if necessary. | 5039 # here allows them to be overridden if necessary. |
| 4277 runpath_var=LD_RUN_PATH | 5040 runpath_var=LD_RUN_PATH |
| 4278 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | 5041 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' |
| 4279 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' | 5042 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' |
| 4280 # ancient GNU ld didn't support --whole-archive et. al. | 5043 # ancient GNU ld didn't support --whole-archive et. al. |
| 4281 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | 5044 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then |
| 4282 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenien
ce '"$wlarc"'--no-whole-archive' | 5045 _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience
'$wlarc'--no-whole-archive' |
| 4283 else | 5046 else |
| 4284 _LT_TAGVAR(whole_archive_flag_spec, $1)= | 5047 _LT_TAGVAR(whole_archive_flag_spec, $1)= |
| 4285 fi | 5048 fi |
| 4286 supports_anon_versioning=no | 5049 supports_anon_versioning=no |
| 4287 case `$LD -v 2>&1` in | 5050 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in |
| 4288 *GNU\ gold*) supports_anon_versioning=yes ;; | 5051 *GNU\ gold*) supports_anon_versioning=yes ;; |
| 4289 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 | 5052 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 4290 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | 5053 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 4291 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | 5054 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 4292 *\ 2.11.*) ;; # other 2.11 versions | 5055 *\ 2.11.*) ;; # other 2.11 versions |
| 4293 *) supports_anon_versioning=yes ;; | 5056 *) supports_anon_versioning=yes ;; |
| 4294 esac | 5057 esac |
| 4295 | 5058 |
| 4296 # See if GNU ld supports shared libraries. | 5059 # See if GNU ld supports shared libraries. |
| 4297 case $host_os in | 5060 case $host_os in |
| 4298 aix[[3-9]]*) | 5061 aix[[3-9]]*) |
| 4299 # On AIX/PPC, the GNU linker is very broken | 5062 # On AIX/PPC, the GNU linker is very broken |
| 4300 if test "$host_cpu" != ia64; then | 5063 if test ia64 != "$host_cpu"; then |
| 4301 _LT_TAGVAR(ld_shlibs, $1)=no | 5064 _LT_TAGVAR(ld_shlibs, $1)=no |
| 4302 cat <<_LT_EOF 1>&2 | 5065 cat <<_LT_EOF 1>&2 |
| 4303 | 5066 |
| 4304 *** Warning: the GNU linker, at least up to release 2.9.1, is reported | 5067 *** Warning: the GNU linker, at least up to release 2.19, is reported |
| 4305 *** to be unable to reliably create shared libraries on AIX. | 5068 *** to be unable to reliably create shared libraries on AIX. |
| 4306 *** Therefore, libtool is disabling shared libraries support. If you | 5069 *** Therefore, libtool is disabling shared libraries support. If you |
| 4307 *** really care for shared libraries, you may want to modify your PATH | 5070 *** really care for shared libraries, you may want to install binutils |
| 4308 *** so that a non-GNU linker is found, and then restart. | 5071 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. |
| 5072 *** You will then need to restart the configuration process. |
| 4309 | 5073 |
| 4310 _LT_EOF | 5074 _LT_EOF |
| 4311 fi | 5075 fi |
| 4312 ;; | 5076 ;; |
| 4313 | 5077 |
| 4314 amigaos*) | 5078 amigaos*) |
| 4315 case $host_cpu in | 5079 case $host_cpu in |
| 4316 powerpc) | 5080 powerpc) |
| 4317 # see comment about AmigaOS4 .so support | 5081 # see comment about AmigaOS4 .so support |
| 4318 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compile
r_flags ${wl}-soname $wl$soname -o $lib' | 5082 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compile
r_flags $wl-soname $wl$soname -o $lib' |
| 4319 _LT_TAGVAR(archive_expsym_cmds, $1)='' | 5083 _LT_TAGVAR(archive_expsym_cmds, $1)='' |
| 4320 ;; | 5084 ;; |
| 4321 m68k) | 5085 m68k) |
| 4322 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$E
CHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIB
RARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >>
$output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_ob
jdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdi
r && a2ixlibrary -32)' | 5086 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$E
CHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIB
RARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >>
$output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_ob
jdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdi
r && a2ixlibrary -32)' |
| 4323 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | 5087 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
| 4324 _LT_TAGVAR(hardcode_minus_L, $1)=yes | 5088 _LT_TAGVAR(hardcode_minus_L, $1)=yes |
| 4325 ;; | 5089 ;; |
| 4326 esac | 5090 esac |
| 4327 ;; | 5091 ;; |
| 4328 | 5092 |
| 4329 beos*) | 5093 beos*) |
| 4330 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | 5094 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 4331 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported | 5095 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported |
| 4332 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | 5096 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 4333 # support --undefined. This deserves some investigation. FIXME | 5097 # support --undefined. This deserves some investigation. FIXME |
| 4334 » _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_f
lags ${wl}-soname $wl$soname -o $lib' | 5098 » _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_f
lags $wl-soname $wl$soname -o $lib' |
| 4335 else | 5099 else |
| 4336 _LT_TAGVAR(ld_shlibs, $1)=no | 5100 _LT_TAGVAR(ld_shlibs, $1)=no |
| 4337 fi | 5101 fi |
| 4338 ;; | 5102 ;; |
| 4339 | 5103 |
| 4340 cygwin* | mingw* | pw32* | cegcc*) | 5104 cygwin* | mingw* | pw32* | cegcc*) |
| 4341 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, | 5105 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, |
| 4342 # as there is no search path for DLLs. | 5106 # as there is no search path for DLLs. |
| 4343 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | 5107 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
| 5108 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols' |
| 4344 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported | 5109 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported |
| 4345 _LT_TAGVAR(always_export_symbols, $1)=no | 5110 _LT_TAGVAR(always_export_symbols, $1)=no |
| 4346 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes | 5111 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes |
| 4347 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_s
ymbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' | $
SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols' | 5112 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_s
ymbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[
]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\''
| sort | uniq > $export_symbols' |
| 5113 _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FI
D]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'] |
| 4348 | 5114 |
| 4349 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | 5115 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
| 4350 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_fl
ags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-impli
b -Xlinker $lib' | 5116 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_fl
ags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib
-Xlinker $lib' |
| 4351 » # If the export-symbols file already is a .def file (1st line | 5117 » # If the export-symbols file already is a .def file, use it as |
| 4352 » # is EXPORTS), use it as is; otherwise, prepend... | 5118 » # is; otherwise, prepend EXPORTS... |
| 4353 » _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`
" = xEXPORTS; then | 5119 » _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols])
; then |
| 4354 » cp $export_symbols $output_objdir/$soname.def; | 5120 cp $export_symbols $output_objdir/$soname.def; |
| 4355 » else | 5121 else |
| 4356 » echo EXPORTS > $output_objdir/$soname.def; | 5122 echo EXPORTS > $output_objdir/$soname.def; |
| 4357 » cat $export_symbols >> $output_objdir/$soname.def; | 5123 cat $export_symbols >> $output_objdir/$soname.def; |
| 4358 » fi~ | 5124 fi~ |
| 4359 » $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags
-o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -
Xlinker $lib' | 5125 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags
-o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xl
inker $lib' |
| 4360 else | 5126 else |
| 4361 _LT_TAGVAR(ld_shlibs, $1)=no | 5127 _LT_TAGVAR(ld_shlibs, $1)=no |
| 4362 fi | 5128 fi |
| 4363 ;; | 5129 ;; |
| 4364 | 5130 |
| 5131 haiku*) |
| 5132 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flag
s $wl-soname $wl$soname -o $lib' |
| 5133 _LT_TAGVAR(link_all_deplibs, $1)=yes |
| 5134 ;; |
| 5135 |
| 5136 os2*) |
| 5137 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
| 5138 _LT_TAGVAR(hardcode_minus_L, $1)=yes |
| 5139 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported |
| 5140 shrext_cmds=.dll |
| 5141 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINS
TANCE TERMINSTANCE" > $output_objdir/$libname.def~ |
| 5142 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ |
| 5143 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ |
| 5144 $ECHO EXPORTS >> $output_objdir/$libname.def~ |
| 5145 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def
~ |
| 5146 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler
_flags $output_objdir/$libname.def~ |
| 5147 emximp -o $lib $output_objdir/$libname.def' |
| 5148 _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext}
INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ |
| 5149 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ |
| 5150 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ |
| 5151 $ECHO EXPORTS >> $output_objdir/$libname.def~ |
| 5152 prefix_cmds="$SED"~ |
| 5153 if test EXPORTS = "`$SED 1q $export_symbols`"; then |
| 5154 prefix_cmds="$prefix_cmds -e 1d"; |
| 5155 fi~ |
| 5156 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ |
| 5157 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ |
| 5158 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler
_flags $output_objdir/$libname.def~ |
| 5159 emximp -o $lib $output_objdir/$libname.def' |
| 5160 _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libn
ame}_dll.a $output_objdir/$libname.def' |
| 5161 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes |
| 5162 ;; |
| 5163 |
| 4365 interix[[3-9]]*) | 5164 interix[[3-9]]*) |
| 4366 _LT_TAGVAR(hardcode_direct, $1)=no | 5165 _LT_TAGVAR(hardcode_direct, $1)=no |
| 4367 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | 5166 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 4368 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' | 5167 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' |
| 4369 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | 5168 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' |
| 4370 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | 5169 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 4371 # Instead, shared libraries are loaded at an image base (0x10000000 by | 5170 # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 4372 # default) and relocated if they conflict, which is a slow very memory | 5171 # default) and relocated if they conflict, which is a slow very memory |
| 4373 # consuming and fragmenting process. To avoid this, we pick a random, | 5172 # consuming and fragmenting process. To avoid this, we pick a random, |
| 4374 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | 5173 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 4375 # time. Moving up from 0x10000000 also allows more sbrk(2) space. | 5174 # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 4376 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $com
piler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 2
62144 + 1342177280` -o $lib' | 5175 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $com
piler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 26214
4 + 1342177280` -o $lib' |
| 4377 _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}--i
mage-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | 5176 _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-b
ase,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 4378 ;; | 5177 ;; |
| 4379 | 5178 |
| 4380 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) | 5179 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
| 4381 tmp_diet=no | 5180 tmp_diet=no |
| 4382 if test "$host_os" = linux-dietlibc; then | 5181 if test linux-dietlibc = "$host_os"; then |
| 4383 case $cc_basename in | 5182 case $cc_basename in |
| 4384 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!d
iet-dyn) | 5183 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!d
iet-dyn) |
| 4385 esac | 5184 esac |
| 4386 fi | 5185 fi |
| 4387 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | 5186 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ |
| 4388 » && test "$tmp_diet" = no | 5187 » && test no = "$tmp_diet" |
| 4389 then | 5188 then |
| 4390 » tmp_addflag= | 5189 » tmp_addflag=' $pic_flag' |
| 4391 tmp_sharedflag='-shared' | 5190 tmp_sharedflag='-shared' |
| 4392 case $cc_basename,$host_cpu in | 5191 case $cc_basename,$host_cpu in |
| 4393 pgcc*) # Portland Group C compiler | 5192 pgcc*) # Portland Group C compiler |
| 4394 » _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv
in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenienc
e,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | 5193 » _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv i
n $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,
$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' |
| 4395 tmp_addflag=' $pic_flag' | 5194 tmp_addflag=' $pic_flag' |
| 4396 ;; | 5195 ;; |
| 4397 » pgf77* | pgf90* | pgf95*)» # Portland Group f77 and f90 compilers | 5196 » pgf77* | pgf90* | pgf95* | pgfortran*) |
| 4398 » _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv
in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenienc
e,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | 5197 » » » » » # Portland Group f77 and f90 compilers |
| 5198 » _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv i
n $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,
$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' |
| 4399 tmp_addflag=' $pic_flag -Mnomain' ;; | 5199 tmp_addflag=' $pic_flag -Mnomain' ;; |
| 4400 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | 5200 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| 4401 tmp_addflag=' -i_dynamic' ;; | 5201 tmp_addflag=' -i_dynamic' ;; |
| 4402 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | 5202 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 4403 tmp_addflag=' -i_dynamic -nofor_main' ;; | 5203 tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 4404 ifc* | ifort*) # Intel Fortran compiler | 5204 ifc* | ifort*) # Intel Fortran compiler |
| 4405 tmp_addflag=' -nofor_main' ;; | 5205 tmp_addflag=' -nofor_main' ;; |
| 4406 lf95*) # Lahey Fortran 8.1 | 5206 lf95*) # Lahey Fortran 8.1 |
| 4407 _LT_TAGVAR(whole_archive_flag_spec, $1)= | 5207 _LT_TAGVAR(whole_archive_flag_spec, $1)= |
| 4408 tmp_sharedflag='--shared' ;; | 5208 tmp_sharedflag='--shared' ;; |
| 4409 » xl[[cC]]*)» » » # IBM XL C 8.0 on PPC (deal with xlf bel
ow) | 5209 nagfor*) # NAGFOR 5.3 |
| 5210 tmp_sharedflag='-Wl,-shared' ;; |
| 5211 » xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with
xlf below) |
| 4410 tmp_sharedflag='-qmkshrobj' | 5212 tmp_sharedflag='-qmkshrobj' |
| 4411 tmp_addflag= ;; | 5213 tmp_addflag= ;; |
| 5214 nvcc*) # Cuda Compiler Driver 2.2 |
| 5215 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv i
n $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,
$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' |
| 5216 _LT_TAGVAR(compiler_needs_object, $1)=yes |
| 5217 ;; |
| 4412 esac | 5218 esac |
| 4413 case `$CC -V 2>&1 | sed 5q` in | 5219 case `$CC -V 2>&1 | sed 5q` in |
| 4414 *Sun\ C*) # Sun C 5.9 | 5220 *Sun\ C*) # Sun C 5.9 |
| 4415 » _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_conv
enience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=
\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-ar
chive' | 5221 » _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`new_conven
ience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"
$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whol
e-archive' |
| 4416 _LT_TAGVAR(compiler_needs_object, $1)=yes | 5222 _LT_TAGVAR(compiler_needs_object, $1)=yes |
| 4417 tmp_sharedflag='-G' ;; | 5223 tmp_sharedflag='-G' ;; |
| 4418 *Sun\ F*) # Sun Fortran 8.3 | 5224 *Sun\ F*) # Sun Fortran 8.3 |
| 4419 tmp_sharedflag='-G' ;; | 5225 tmp_sharedflag='-G' ;; |
| 4420 esac | 5226 esac |
| 4421 » _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $lib
objs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 5227 » _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $lib
objs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 4422 | 5228 |
| 4423 if test "x$supports_anon_versioning" = xyes; then | 5229 if test yes = "$supports_anon_versioning"; then |
| 4424 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir
/$libname.ver~ | 5230 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir
/$libname.ver~ |
| 4425 » cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libn
ame.ver~ | 5231 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libn
ame.ver~ |
| 4426 » echo "local: *; };" >> $output_objdir/$libname.ver~ | 5232 echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 4427 » $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_fl
ags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ve
r -o $lib' | 5233 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_fl
ags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $
lib' |
| 4428 fi | 5234 fi |
| 4429 | 5235 |
| 4430 case $cc_basename in | 5236 case $cc_basename in |
| 4431 » xlf*) | 5237 » tcc*) |
| 5238 » _LT_TAGVAR(export_dynamic_flag_spec, $1)='-rdynamic' |
| 5239 » ;; |
| 5240 » xlf* | bgf* | bgxlf* | mpixlf*) |
| 4432 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | 5241 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
| 4433 _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience -
-no-whole-archive' | 5242 _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience -
-no-whole-archive' |
| 4434 » _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= | 5243 » _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' |
| 4435 » _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir' | 5244 » _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_fl
ags -soname $soname -o $lib' |
| 4436 » _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_
flags -soname $soname -o $lib' | 5245 » if test yes = "$supports_anon_versioning"; then |
| 4437 » if test "x$supports_anon_versioning" = xyes; then | |
| 4438 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objd
ir/$libname.ver~ | 5246 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objd
ir/$libname.ver~ |
| 4439 » cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$li
bname.ver~ | 5247 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$li
bname.ver~ |
| 4440 » echo "local: *; };" >> $output_objdir/$libname.ver~ | 5248 echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 4441 » $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -ver
sion-script $output_objdir/$libname.ver -o $lib' | 5249 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -versi
on-script $output_objdir/$libname.ver -o $lib' |
| 4442 fi | 5250 fi |
| 4443 ;; | 5251 ;; |
| 4444 esac | 5252 esac |
| 4445 else | 5253 else |
| 4446 _LT_TAGVAR(ld_shlibs, $1)=no | 5254 _LT_TAGVAR(ld_shlibs, $1)=no |
| 4447 fi | 5255 fi |
| 4448 ;; | 5256 ;; |
| 4449 | 5257 |
| 4450 netbsd* | netbsdelf*-gnu) | 5258 netbsd*) |
| 4451 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | 5259 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 4452 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_
flags -o $lib' | 5260 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_
flags -o $lib' |
| 4453 wlarc= | 5261 wlarc= |
| 4454 else | 5262 else |
| 4455 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_fl
ags ${wl}-soname $wl$soname -o $lib' | 5263 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $c
ompiler_flags $wl-soname $wl$soname -o $lib' |
| 4456 » _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $comp
iler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols
-o $lib' | 5264 » _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $dep
libs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_sy
mbols -o $lib' |
| 4457 fi | 5265 fi |
| 4458 ;; | 5266 ;; |
| 4459 | 5267 |
| 4460 solaris*) | 5268 solaris*) |
| 4461 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | 5269 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then |
| 4462 _LT_TAGVAR(ld_shlibs, $1)=no | 5270 _LT_TAGVAR(ld_shlibs, $1)=no |
| 4463 cat <<_LT_EOF 1>&2 | 5271 cat <<_LT_EOF 1>&2 |
| 4464 | 5272 |
| 4465 *** Warning: The releases 2.8.* of the GNU linker cannot reliably | 5273 *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 4466 *** create shared libraries on Solaris systems. Therefore, libtool | 5274 *** create shared libraries on Solaris systems. Therefore, libtool |
| 4467 *** is disabling shared libraries support. We urge you to upgrade GNU | 5275 *** is disabling shared libraries support. We urge you to upgrade GNU |
| 4468 *** binutils to release 2.9.1 or newer. Another option is to modify | 5276 *** binutils to release 2.9.1 or newer. Another option is to modify |
| 4469 *** your PATH or compiler configuration so that the native linker is | 5277 *** your PATH or compiler configuration so that the native linker is |
| 4470 *** used, and then restart. | 5278 *** used, and then restart. |
| 4471 | 5279 |
| 4472 _LT_EOF | 5280 _LT_EOF |
| 4473 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; the
n | 5281 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; the
n |
| 4474 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_fl
ags ${wl}-soname $wl$soname -o $lib' | 5282 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $c
ompiler_flags $wl-soname $wl$soname -o $lib' |
| 4475 » _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $comp
iler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols
-o $lib' | 5283 » _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $dep
libs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_sy
mbols -o $lib' |
| 4476 else | 5284 else |
| 4477 _LT_TAGVAR(ld_shlibs, $1)=no | 5285 _LT_TAGVAR(ld_shlibs, $1)=no |
| 4478 fi | 5286 fi |
| 4479 ;; | 5287 ;; |
| 4480 | 5288 |
| 4481 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | 5289 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 4482 case `$LD -v 2>&1` in | 5290 case `$LD -v 2>&1` in |
| 4483 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) | 5291 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) |
| 4484 _LT_TAGVAR(ld_shlibs, $1)=no | 5292 _LT_TAGVAR(ld_shlibs, $1)=no |
| 4485 cat <<_LT_EOF 1>&2 | 5293 cat <<_LT_EOF 1>&2 |
| 4486 | 5294 |
| 4487 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | 5295 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot |
| 4488 *** reliably create shared libraries on SCO systems. Therefore, libtool | 5296 *** reliably create shared libraries on SCO systems. Therefore, libtool |
| 4489 *** is disabling shared libraries support. We urge you to upgrade GNU | 5297 *** is disabling shared libraries support. We urge you to upgrade GNU |
| 4490 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | 5298 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 4491 *** your PATH or compiler configuration so that the native linker is | 5299 *** your PATH or compiler configuration so that the native linker is |
| 4492 *** used, and then restart. | 5300 *** used, and then restart. |
| 4493 | 5301 |
| 4494 _LT_EOF | 5302 _LT_EOF |
| 4495 ;; | 5303 ;; |
| 4496 *) | 5304 *) |
| 4497 # For security reasons, it is highly recommended that you always | 5305 # For security reasons, it is highly recommended that you always |
| 4498 # use absolute paths for naming shared libraries, and exclude the | 5306 # use absolute paths for naming shared libraries, and exclude the |
| 4499 # DT_RUNPATH tag from executables and libraries. But doing so | 5307 # DT_RUNPATH tag from executables and libraries. But doing so |
| 4500 # requires that you compile everything twice, which is a pain. | 5308 # requires that you compile everything twice, which is a pain. |
| 4501 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; t
hen | 5309 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; t
hen |
| 4502 » _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | 5310 » _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' |
| 4503 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compile
r_flags ${wl}-soname $wl$soname -o $lib' | 5311 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compile
r_flags $wl-soname $wl$soname -o $lib' |
| 4504 » _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $
compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symb
ols -o $lib' | 5312 » _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' |
| 4505 else | 5313 else |
| 4506 _LT_TAGVAR(ld_shlibs, $1)=no | 5314 _LT_TAGVAR(ld_shlibs, $1)=no |
| 4507 fi | 5315 fi |
| 4508 ;; | 5316 ;; |
| 4509 esac | 5317 esac |
| 4510 ;; | 5318 ;; |
| 4511 | 5319 |
| 4512 sunos4*) | 5320 sunos4*) |
| 4513 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $l
ibobjs $deplibs $linker_flags' | 5321 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $l
ibobjs $deplibs $linker_flags' |
| 4514 wlarc= | 5322 wlarc= |
| 4515 _LT_TAGVAR(hardcode_direct, $1)=yes | 5323 _LT_TAGVAR(hardcode_direct, $1)=yes |
| 4516 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | 5324 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 4517 ;; | 5325 ;; |
| 4518 | 5326 |
| 4519 *) | 5327 *) |
| 4520 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | 5328 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 4521 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_fl
ags ${wl}-soname $wl$soname -o $lib' | 5329 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $c
ompiler_flags $wl-soname $wl$soname -o $lib' |
| 4522 » _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $comp
iler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols
-o $lib' | 5330 » _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $dep
libs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_sy
mbols -o $lib' |
| 4523 else | 5331 else |
| 4524 _LT_TAGVAR(ld_shlibs, $1)=no | 5332 _LT_TAGVAR(ld_shlibs, $1)=no |
| 4525 fi | 5333 fi |
| 4526 ;; | 5334 ;; |
| 4527 esac | 5335 esac |
| 4528 | 5336 |
| 4529 if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then | 5337 if test no = "$_LT_TAGVAR(ld_shlibs, $1)"; then |
| 4530 runpath_var= | 5338 runpath_var= |
| 4531 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= | 5339 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= |
| 4532 _LT_TAGVAR(export_dynamic_flag_spec, $1)= | 5340 _LT_TAGVAR(export_dynamic_flag_spec, $1)= |
| 4533 _LT_TAGVAR(whole_archive_flag_spec, $1)= | 5341 _LT_TAGVAR(whole_archive_flag_spec, $1)= |
| 4534 fi | 5342 fi |
| 4535 else | 5343 else |
| 4536 # PORTME fill in a description of your system's linker (not GNU ld) | 5344 # PORTME fill in a description of your system's linker (not GNU ld) |
| 4537 case $host_os in | 5345 case $host_os in |
| 4538 aix3*) | 5346 aix3*) |
| 4539 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported | 5347 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported |
| 4540 _LT_TAGVAR(always_export_symbols, $1)=yes | 5348 _LT_TAGVAR(always_export_symbols, $1)=yes |
| 4541 _LT_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobj
s $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $
lib $output_objdir/$soname' | 5349 _LT_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobj
s $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $
lib $output_objdir/$soname' |
| 4542 # Note: this linker hardcodes the directories in LIBPATH if there | 5350 # Note: this linker hardcodes the directories in LIBPATH if there |
| 4543 # are no directories specified by -L. | 5351 # are no directories specified by -L. |
| 4544 _LT_TAGVAR(hardcode_minus_L, $1)=yes | 5352 _LT_TAGVAR(hardcode_minus_L, $1)=yes |
| 4545 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | 5353 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then |
| 4546 # Neither direct hardcoding nor static linking is supported with a | 5354 # Neither direct hardcoding nor static linking is supported with a |
| 4547 # broken collect2. | 5355 # broken collect2. |
| 4548 _LT_TAGVAR(hardcode_direct, $1)=unsupported | 5356 _LT_TAGVAR(hardcode_direct, $1)=unsupported |
| 4549 fi | 5357 fi |
| 4550 ;; | 5358 ;; |
| 4551 | 5359 |
| 4552 aix[[4-9]]*) | 5360 aix[[4-9]]*) |
| 4553 if test "$host_cpu" = ia64; then | 5361 if test ia64 = "$host_cpu"; then |
| 4554 # On IA64, the linker does run time linking by default, so we don't | 5362 # On IA64, the linker does run time linking by default, so we don't |
| 4555 # have to do anything special. | 5363 # have to do anything special. |
| 4556 aix_use_runtimelinking=no | 5364 aix_use_runtimelinking=no |
| 4557 exp_sym_flag='-Bexport' | 5365 exp_sym_flag='-Bexport' |
| 4558 » no_entry_flag="" | 5366 » no_entry_flag= |
| 4559 else | 5367 else |
| 4560 # If we're using GNU nm, then we don't want the "-C" option. | 5368 # If we're using GNU nm, then we don't want the "-C" option. |
| 4561 » # -C means demangle to AIX nm, but means don't demangle with GNU nm | 5369 » # -C means demangle to GNU nm, but means don't demangle to AIX nm. |
| 5370 » # Without the "-l" option, or with the "-B" option, AIX nm treats |
| 5371 » # weak defined symbols like other global defined symbols, whereas |
| 5372 » # GNU nm marks them as "W". |
| 5373 » # While the 'weak' keyword is ignored in the Export File, we need |
| 5374 » # it in the Import File for the 'aix-soname' feature, so we have |
| 5375 » # to replace the "-B" option with "-P" for AIX nm. |
| 4562 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | 5376 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
| 4563 » _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience |
awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$
3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | 5377 » _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' |
| 4564 else | 5378 else |
| 4565 » _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience |
awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$
3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | 5379 » _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\''
s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 ==
"T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$
2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V")
|| (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u
> $export_symbols' |
| 4566 fi | 5380 fi |
| 4567 aix_use_runtimelinking=no | 5381 aix_use_runtimelinking=no |
| 4568 | 5382 |
| 4569 # Test if we are trying to use run time linking or normal | 5383 # Test if we are trying to use run time linking or normal |
| 4570 # AIX style linking. If -brtl is somewhere in LDFLAGS, we | 5384 # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 4571 » # need to do runtime linking. | 5385 » # have runtime linking enabled, and use it for executables. |
| 5386 » # For shared libraries, we enable/disable runtime linking |
| 5387 » # depending on the kind of the shared library created - |
| 5388 » # when "with_aix_soname,aix_use_runtimelinking" is: |
| 5389 » # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables |
| 5390 » # "aix,yes" lib.so shared, rtl:yes, for executables |
| 5391 » # lib.a static archive |
| 5392 » # "both,no" lib.so.V(shr.o) shared, rtl:yes |
| 5393 » # lib.a(lib.so.V) shared, rtl:no, for executables |
| 5394 » # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables |
| 5395 » # lib.a(lib.so.V) shared, rtl:no |
| 5396 » # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables |
| 5397 » # lib.a static archive |
| 4572 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) | 5398 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) |
| 4573 for ld_flag in $LDFLAGS; do | 5399 for ld_flag in $LDFLAGS; do |
| 4574 » if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | 5400 » if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then |
| 4575 aix_use_runtimelinking=yes | 5401 aix_use_runtimelinking=yes |
| 4576 break | 5402 break |
| 4577 fi | 5403 fi |
| 4578 done | 5404 done |
| 5405 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then |
| 5406 # With aix-soname=svr4, we create the lib.so.V shared archives only, |
| 5407 # so we don't have lib.a shared libs to link our executables. |
| 5408 # We have to force runtime linking in this case. |
| 5409 aix_use_runtimelinking=yes |
| 5410 LDFLAGS="$LDFLAGS -Wl,-brtl" |
| 5411 fi |
| 4579 ;; | 5412 ;; |
| 4580 esac | 5413 esac |
| 4581 | 5414 |
| 4582 exp_sym_flag='-bexport' | 5415 exp_sym_flag='-bexport' |
| 4583 no_entry_flag='-bnoentry' | 5416 no_entry_flag='-bnoentry' |
| 4584 fi | 5417 fi |
| 4585 | 5418 |
| 4586 # When large executables or shared objects are built, AIX ld can | 5419 # When large executables or shared objects are built, AIX ld can |
| 4587 # have problems creating the table of contents. If linking a library | 5420 # have problems creating the table of contents. If linking a library |
| 4588 # or program results in "error TOC overflow" add -mminimal-toc to | 5421 # or program results in "error TOC overflow" add -mminimal-toc to |
| 4589 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | 5422 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 4590 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | 5423 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 4591 | 5424 |
| 4592 _LT_TAGVAR(archive_cmds, $1)='' | 5425 _LT_TAGVAR(archive_cmds, $1)='' |
| 4593 _LT_TAGVAR(hardcode_direct, $1)=yes | 5426 _LT_TAGVAR(hardcode_direct, $1)=yes |
| 4594 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes | 5427 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes |
| 4595 _LT_TAGVAR(hardcode_libdir_separator, $1)=':' | 5428 _LT_TAGVAR(hardcode_libdir_separator, $1)=':' |
| 4596 _LT_TAGVAR(link_all_deplibs, $1)=yes | 5429 _LT_TAGVAR(link_all_deplibs, $1)=yes |
| 4597 _LT_TAGVAR(file_list_spec, $1)='${wl}-f,' | 5430 _LT_TAGVAR(file_list_spec, $1)='$wl-f,' |
| 5431 case $with_aix_soname,$aix_use_runtimelinking in |
| 5432 aix,*) ;; # traditional, no import file |
| 5433 svr4,* | *,yes) # use import file |
| 5434 » # The Import File defines what to hardcode. |
| 5435 » _LT_TAGVAR(hardcode_direct, $1)=no |
| 5436 » _LT_TAGVAR(hardcode_direct_absolute, $1)=no |
| 5437 » ;; |
| 5438 esac |
| 4598 | 5439 |
| 4599 if test "$GCC" = yes; then | 5440 if test yes = "$GCC"; then |
| 4600 case $host_os in aix4.[[012]]|aix4.[[012]].*) | 5441 case $host_os in aix4.[[012]]|aix4.[[012]].*) |
| 4601 # We only want to do this on AIX 4.2 and lower, the check | 5442 # We only want to do this on AIX 4.2 and lower, the check |
| 4602 # below for broken collect2 doesn't work under 4.3+ | 5443 # below for broken collect2 doesn't work under 4.3+ |
| 4603 » collect2name=`${CC} -print-prog-name=collect2` | 5444 » collect2name=`$CC -print-prog-name=collect2` |
| 4604 if test -f "$collect2name" && | 5445 if test -f "$collect2name" && |
| 4605 strings "$collect2name" | $GREP resolve_lib_name >/dev/null | 5446 strings "$collect2name" | $GREP resolve_lib_name >/dev/null |
| 4606 then | 5447 then |
| 4607 # We have reworked collect2 | 5448 # We have reworked collect2 |
| 4608 : | 5449 : |
| 4609 else | 5450 else |
| 4610 # We have old collect2 | 5451 # We have old collect2 |
| 4611 _LT_TAGVAR(hardcode_direct, $1)=unsupported | 5452 _LT_TAGVAR(hardcode_direct, $1)=unsupported |
| 4612 # It fails to find uninstalled libraries when the uninstalled | 5453 # It fails to find uninstalled libraries when the uninstalled |
| 4613 # path is not listed in the libpath. Setting hardcode_minus_L | 5454 # path is not listed in the libpath. Setting hardcode_minus_L |
| 4614 # to unsupported forces relinking | 5455 # to unsupported forces relinking |
| 4615 _LT_TAGVAR(hardcode_minus_L, $1)=yes | 5456 _LT_TAGVAR(hardcode_minus_L, $1)=yes |
| 4616 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | 5457 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
| 4617 _LT_TAGVAR(hardcode_libdir_separator, $1)= | 5458 _LT_TAGVAR(hardcode_libdir_separator, $1)= |
| 4618 fi | 5459 fi |
| 4619 ;; | 5460 ;; |
| 4620 esac | 5461 esac |
| 4621 shared_flag='-shared' | 5462 shared_flag='-shared' |
| 4622 » if test "$aix_use_runtimelinking" = yes; then | 5463 » if test yes = "$aix_use_runtimelinking"; then |
| 4623 » shared_flag="$shared_flag "'${wl}-G' | 5464 » shared_flag="$shared_flag "'$wl-G' |
| 4624 fi | 5465 fi |
| 4625 » _LT_TAGVAR(link_all_deplibs, $1)=no | 5466 » # Need to ensure runtime linking is disabled for the traditional |
| 5467 » # shared library, or the linker may eventually find shared libraries |
| 5468 » # /with/ Import File - we do not want to mix them. |
| 5469 » shared_flag_aix='-shared' |
| 5470 » shared_flag_svr4='-shared $wl-G' |
| 4626 else | 5471 else |
| 4627 # not using gcc | 5472 # not using gcc |
| 4628 » if test "$host_cpu" = ia64; then | 5473 » if test ia64 = "$host_cpu"; then |
| 4629 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | 5474 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 4630 # chokes on -Wl,-G. The following line is correct: | 5475 # chokes on -Wl,-G. The following line is correct: |
| 4631 shared_flag='-G' | 5476 shared_flag='-G' |
| 4632 else | 5477 else |
| 4633 » if test "$aix_use_runtimelinking" = yes; then | 5478 » if test yes = "$aix_use_runtimelinking"; then |
| 4634 » shared_flag='${wl}-G' | 5479 » shared_flag='$wl-G' |
| 4635 else | 5480 else |
| 4636 » shared_flag='${wl}-bM:SRE' | 5481 » shared_flag='$wl-bM:SRE' |
| 4637 fi | 5482 fi |
| 5483 shared_flag_aix='$wl-bM:SRE' |
| 5484 shared_flag_svr4='$wl-G' |
| 4638 fi | 5485 fi |
| 4639 fi | 5486 fi |
| 4640 | 5487 |
| 4641 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall' | 5488 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall' |
| 4642 # It seems that -bexpall does not export symbols beginning with | 5489 # It seems that -bexpall does not export symbols beginning with |
| 4643 # underscore (_), so it is better to generate a list of symbols to export. | 5490 # underscore (_), so it is better to generate a list of symbols to export. |
| 4644 _LT_TAGVAR(always_export_symbols, $1)=yes | 5491 _LT_TAGVAR(always_export_symbols, $1)=yes |
| 4645 if test "$aix_use_runtimelinking" = yes; then | 5492 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then |
| 4646 # Warning - without using the other runtime loading flags (-brtl), | 5493 # Warning - without using the other runtime loading flags (-brtl), |
| 4647 # -berok will link without error, but may produce a broken library. | 5494 # -berok will link without error, but may produce a broken library. |
| 4648 _LT_TAGVAR(allow_undefined_flag, $1)='-berok' | 5495 _LT_TAGVAR(allow_undefined_flag, $1)='-berok' |
| 4649 # Determine the default libpath from the value encoded in an | 5496 # Determine the default libpath from the value encoded in an |
| 4650 # empty executable. | 5497 # empty executable. |
| 4651 _LT_SYS_MODULE_PATH_AIX | 5498 _LT_SYS_MODULE_PATH_AIX([$1]) |
| 4652 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix
_libpath" | 5499 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_l
ibpath" |
| 4653 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libo
bjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefin
ed_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi
` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | 5500 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libo
bjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_f
lag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_fl
ag:\$export_symbols' '$shared_flag |
| 4654 else | 5501 else |
| 4655 » if test "$host_cpu" = ia64; then | 5502 » if test ia64 = "$host_cpu"; then |
| 4656 » _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/l
ib' | 5503 » _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib
' |
| 4657 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" | 5504 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" |
| 4658 » _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_ob
jdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${a
llow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" | 5505 » _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_ob
jdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_
undefined_flag '"\$wl$exp_sym_flag:\$export_symbols" |
| 4659 else | 5506 else |
| 4660 # Determine the default libpath from the value encoded in an | 5507 # Determine the default libpath from the value encoded in an |
| 4661 # empty executable. | 5508 # empty executable. |
| 4662 » _LT_SYS_MODULE_PATH_AIX | 5509 » _LT_SYS_MODULE_PATH_AIX([$1]) |
| 4663 » _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$ai
x_libpath" | 5510 » _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_
libpath" |
| 4664 # Warning - without using the other run time loading flags, | 5511 # Warning - without using the other run time loading flags, |
| 4665 # -berok will link without error, but may produce a broken library. | 5512 # -berok will link without error, but may produce a broken library. |
| 4666 » _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' | 5513 » _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok' |
| 4667 » _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' | 5514 » _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok' |
| 4668 » # Exported symbols can be pulled into shared objects from archives | 5515 » if test yes = "$with_gnu_ld"; then |
| 4669 » _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' | 5516 » # We only use this code for GNU lds that support --whole-archive. |
| 5517 » _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenie
nce $wl--no-whole-archive' |
| 5518 » else |
| 5519 » # Exported symbols can be pulled into shared objects from archives |
| 5520 » _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' |
| 5521 » fi |
| 4670 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes | 5522 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes |
| 4671 » # This is similar to how AIX traditionally builds its shared libraries
. | 5523 » _LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d
~$MKDIR $output_objdir/$realname.d' |
| 4672 » _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_ob
jdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_s
ymbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $o
utput_objdir/$soname' | 5524 » # -brtl affects multiple linker settings, -berok does not and is overr
idden later |
| 5525 » compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "
s%-brtl\\([[, ]]\\)%-berok\\1%g"`' |
| 5526 » if test svr4 != "$with_aix_soname"; then |
| 5527 » # This is similar to how AIX traditionally builds its shared librari
es. |
| 5528 » _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds
, $1)"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $d
eplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undef
ined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realna
me.d/$soname' |
| 5529 » fi |
| 5530 » if test aix != "$with_aix_soname"; then |
| 5531 » _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds
, $1)"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_me
mber_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$exp
ort_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_ar
chive_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/$s
hared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdi
r/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_a
rchive_member_spec.imp' |
| 5532 » else |
| 5533 » # used by -dlpreopen to get the symbols |
| 5534 » _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds
, $1)"'~$MV $output_objdir/$realname.d/$soname $output_objdir' |
| 5535 » fi |
| 5536 » _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds,
$1)"'~$RM -r $output_objdir/$realname.d' |
| 4673 fi | 5537 fi |
| 4674 fi | 5538 fi |
| 4675 ;; | 5539 ;; |
| 4676 | 5540 |
| 4677 amigaos*) | 5541 amigaos*) |
| 4678 case $host_cpu in | 5542 case $host_cpu in |
| 4679 powerpc) | 5543 powerpc) |
| 4680 # see comment about AmigaOS4 .so support | 5544 # see comment about AmigaOS4 .so support |
| 4681 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compile
r_flags ${wl}-soname $wl$soname -o $lib' | 5545 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compile
r_flags $wl-soname $wl$soname -o $lib' |
| 4682 _LT_TAGVAR(archive_expsym_cmds, $1)='' | 5546 _LT_TAGVAR(archive_expsym_cmds, $1)='' |
| 4683 ;; | 5547 ;; |
| 4684 m68k) | 5548 m68k) |
| 4685 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$E
CHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIB
RARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >>
$output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_ob
jdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdi
r && a2ixlibrary -32)' | 5549 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$E
CHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIB
RARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >>
$output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_ob
jdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdi
r && a2ixlibrary -32)' |
| 4686 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | 5550 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
| 4687 _LT_TAGVAR(hardcode_minus_L, $1)=yes | 5551 _LT_TAGVAR(hardcode_minus_L, $1)=yes |
| 4688 ;; | 5552 ;; |
| 4689 esac | 5553 esac |
| 4690 ;; | 5554 ;; |
| 4691 | 5555 |
| 4692 bsdi[[45]]*) | 5556 bsdi[[45]]*) |
| 4693 _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic | 5557 _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic |
| 4694 ;; | 5558 ;; |
| 4695 | 5559 |
| 4696 cygwin* | mingw* | pw32* | cegcc*) | 5560 cygwin* | mingw* | pw32* | cegcc*) |
| 4697 # When not using gcc, we currently assume that we are using | 5561 # When not using gcc, we currently assume that we are using |
| 4698 # Microsoft Visual C++. | 5562 # Microsoft Visual C++. |
| 4699 # hardcode_libdir_flag_spec is actually meaningless, as there is | 5563 # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 4700 # no search path for DLLs. | 5564 # no search path for DLLs. |
| 4701 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' | 5565 case $cc_basename in |
| 4702 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported | 5566 cl*) |
| 4703 # Tell ltmain to make .lib files, not .a files. | 5567 » # Native MSVC |
| 4704 libext=lib | 5568 » _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' |
| 4705 # Tell ltmain to make .dll files, not .so files. | 5569 » _LT_TAGVAR(allow_undefined_flag, $1)=unsupported |
| 4706 shrext_cmds=".dll" | 5570 » _LT_TAGVAR(always_export_symbols, $1)=yes |
| 4707 # FIXME: Setting linknames here is a bad hack. | 5571 » _LT_TAGVAR(file_list_spec, $1)='@' |
| 4708 _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO
"X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' | 5572 » # Tell ltmain to make .lib files, not .a files. |
| 4709 # The linker will automatically build a .lib file if we build a DLL. | 5573 » libext=lib |
| 4710 _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' | 5574 » # Tell ltmain to make .dll files, not .so files. |
| 4711 # FIXME: Should let the user specify the lib program. | 5575 » shrext_cmds=.dll |
| 4712 _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs' | 5576 » # FIXME: Setting linknames here is a bad hack. |
| 4713 _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`' | 5577 » _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $co
mpiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~lin
knames=' |
| 4714 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes | 5578 » _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols])
; then |
| 5579 cp "$export_symbols" "$output_objdir/$soname.def"; |
| 5580 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"
; |
| 5581 else |
| 5582 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objd
ir/$soname.exp; |
| 5583 fi~ |
| 5584 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@
$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dl
l.lib"~ |
| 5585 linknames=' |
| 5586 » # The linker will not automatically build a static lib if we build a DLL
. |
| 5587 » # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' |
| 5588 » _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes |
| 5589 » _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIP
TOR_.*' |
| 5590 » _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' |
| 5591 » # Don't use ranlib |
| 5592 » _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' |
| 5593 » _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~ |
| 5594 lt_tool_outputfile="@TOOL_OUTPUT@"~ |
| 5595 case $lt_outputfile in |
| 5596 *.exe|*.EXE) ;; |
| 5597 *) |
| 5598 lt_outputfile=$lt_outputfile.exe |
| 5599 lt_tool_outputfile=$lt_tool_outputfile.exe |
| 5600 ;; |
| 5601 esac~ |
| 5602 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; th
en |
| 5603 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresou
rce:"$lt_tool_outputfile" || exit 1; |
| 5604 $RM "$lt_outputfile.manifest"; |
| 5605 fi' |
| 5606 » ;; |
| 5607 *) |
| 5608 » # Assume MSVC wrapper |
| 5609 » _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' |
| 5610 » _LT_TAGVAR(allow_undefined_flag, $1)=unsupported |
| 5611 » # Tell ltmain to make .lib files, not .a files. |
| 5612 » libext=lib |
| 5613 » # Tell ltmain to make .dll files, not .so files. |
| 5614 » shrext_cmds=.dll |
| 5615 » # FIXME: Setting linknames here is a bad hack. |
| 5616 » _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func
_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 5617 » # The linker will automatically build a .lib file if we build a DLL. |
| 5618 » _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' |
| 5619 » # FIXME: Should let the user specify the lib program. |
| 5620 » _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs' |
| 5621 » _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes |
| 5622 » ;; |
| 5623 esac |
| 4715 ;; | 5624 ;; |
| 4716 | 5625 |
| 4717 darwin* | rhapsody*) | 5626 darwin* | rhapsody*) |
| 4718 _LT_DARWIN_LINKER_FEATURES($1) | 5627 _LT_DARWIN_LINKER_FEATURES($1) |
| 4719 ;; | 5628 ;; |
| 4720 | 5629 |
| 4721 dgux*) | 5630 dgux*) |
| 4722 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs
$linker_flags' | 5631 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs
$linker_flags' |
| 4723 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | 5632 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
| 4724 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | 5633 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 4725 ;; | 5634 ;; |
| 4726 | 5635 |
| 4727 freebsd1*) | |
| 4728 _LT_TAGVAR(ld_shlibs, $1)=no | |
| 4729 ;; | |
| 4730 | |
| 4731 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | 5636 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 4732 # support. Future versions do this automatically, but an explicit c++rt0.o | 5637 # support. Future versions do this automatically, but an explicit c++rt0.o |
| 4733 # does not break anything, and helps significantly (at the cost of a little | 5638 # does not break anything, and helps significantly (at the cost of a little |
| 4734 # extra space). | 5639 # extra space). |
| 4735 freebsd2.2*) | 5640 freebsd2.2*) |
| 4736 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $l
inker_flags /usr/lib/c++rt0.o' | 5641 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $l
inker_flags /usr/lib/c++rt0.o' |
| 4737 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' | 5642 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
| 4738 _LT_TAGVAR(hardcode_direct, $1)=yes | 5643 _LT_TAGVAR(hardcode_direct, $1)=yes |
| 4739 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | 5644 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 4740 ;; | 5645 ;; |
| 4741 | 5646 |
| 4742 # Unfortunately, older versions of FreeBSD 2 do not have this feature. | 5647 # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 4743 freebsd2*) | 5648 freebsd2.*) |
| 4744 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $l
inker_flags' | 5649 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $l
inker_flags' |
| 4745 _LT_TAGVAR(hardcode_direct, $1)=yes | 5650 _LT_TAGVAR(hardcode_direct, $1)=yes |
| 4746 _LT_TAGVAR(hardcode_minus_L, $1)=yes | 5651 _LT_TAGVAR(hardcode_minus_L, $1)=yes |
| 4747 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | 5652 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 4748 ;; | 5653 ;; |
| 4749 | 5654 |
| 4750 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | 5655 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
| 4751 freebsd* | dragonfly*) | 5656 freebsd* | dragonfly*) |
| 4752 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compi
ler_flags' | 5657 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $depl
ibs $compiler_flags' |
| 4753 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' | 5658 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
| 4754 _LT_TAGVAR(hardcode_direct, $1)=yes | 5659 _LT_TAGVAR(hardcode_direct, $1)=yes |
| 4755 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | 5660 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 4756 ;; | 5661 ;; |
| 4757 | 5662 |
| 4758 hpux9*) | 5663 hpux9*) |
| 4759 if test "$GCC" = yes; then | 5664 if test yes = "$GCC"; then |
| 4760 » _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -fP
IC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $com
piler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib
' | 5665 » _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pi
c_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $com
piler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$sonam
e $lib' |
| 4761 else | 5666 else |
| 4762 » _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $inst
all_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $outpu
t_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | 5667 » _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $inst
all_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$out
put_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' |
| 4763 fi | 5668 fi |
| 4764 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' | 5669 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' |
| 4765 _LT_TAGVAR(hardcode_libdir_separator, $1)=: | 5670 _LT_TAGVAR(hardcode_libdir_separator, $1)=: |
| 4766 _LT_TAGVAR(hardcode_direct, $1)=yes | 5671 _LT_TAGVAR(hardcode_direct, $1)=yes |
| 4767 | 5672 |
| 4768 # hardcode_minus_L: Not really in the search PATH, | 5673 # hardcode_minus_L: Not really in the search PATH, |
| 4769 # but as the default location of the library. | 5674 # but as the default location of the library. |
| 4770 _LT_TAGVAR(hardcode_minus_L, $1)=yes | 5675 _LT_TAGVAR(hardcode_minus_L, $1)=yes |
| 4771 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | 5676 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' |
| 4772 ;; | 5677 ;; |
| 4773 | 5678 |
| 4774 hpux10*) | 5679 hpux10*) |
| 4775 if test "$GCC" = yes -a "$with_gnu_ld" = no; then | 5680 if test yes,no = "$GCC,$with_gnu_ld"; then |
| 4776 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${w
l}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | 5681 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl
+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 4777 else | 5682 else |
| 4778 _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $l
ib $libobjs $deplibs $linker_flags' | 5683 _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $l
ib $libobjs $deplibs $linker_flags' |
| 4779 fi | 5684 fi |
| 4780 if test "$with_gnu_ld" = no; then | 5685 if test no = "$with_gnu_ld"; then |
| 4781 » _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' | 5686 » _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' |
| 4782 » _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' | |
| 4783 _LT_TAGVAR(hardcode_libdir_separator, $1)=: | 5687 _LT_TAGVAR(hardcode_libdir_separator, $1)=: |
| 4784 _LT_TAGVAR(hardcode_direct, $1)=yes | 5688 _LT_TAGVAR(hardcode_direct, $1)=yes |
| 4785 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes | 5689 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes |
| 4786 » _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | 5690 » _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' |
| 4787 # hardcode_minus_L: Not really in the search PATH, | 5691 # hardcode_minus_L: Not really in the search PATH, |
| 4788 # but as the default location of the library. | 5692 # but as the default location of the library. |
| 4789 _LT_TAGVAR(hardcode_minus_L, $1)=yes | 5693 _LT_TAGVAR(hardcode_minus_L, $1)=yes |
| 4790 fi | 5694 fi |
| 4791 ;; | 5695 ;; |
| 4792 | 5696 |
| 4793 hpux11*) | 5697 hpux11*) |
| 4794 if test "$GCC" = yes -a "$with_gnu_ld" = no; then | 5698 if test yes,no = "$GCC,$with_gnu_ld"; then |
| 4795 case $host_cpu in | 5699 case $host_cpu in |
| 4796 hppa*64*) | 5700 hppa*64*) |
| 4797 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib
$libobjs $deplibs $compiler_flags' | 5701 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl+h $wl$soname -o $lib $li
bobjs $deplibs $compiler_flags' |
| 4798 ;; | 5702 ;; |
| 4799 ia64*) | 5703 ia64*) |
| 4800 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname $
{wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | 5704 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $
wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 4801 ;; | 5705 ;; |
| 4802 *) | 5706 *) |
| 4803 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname $
{wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | 5707 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $
wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 4804 ;; | 5708 ;; |
| 4805 esac | 5709 esac |
| 4806 else | 5710 else |
| 4807 case $host_cpu in | 5711 case $host_cpu in |
| 4808 hppa*64*) | 5712 hppa*64*) |
| 4809 » _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $lib
objs $deplibs $compiler_flags' | 5713 » _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $libobjs
$deplibs $compiler_flags' |
| 4810 ;; | 5714 ;; |
| 4811 ia64*) | 5715 ia64*) |
| 4812 » _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefa
ultrpath -o $lib $libobjs $deplibs $compiler_flags' | 5716 » _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpa
th -o $lib $libobjs $deplibs $compiler_flags' |
| 4813 ;; | 5717 ;; |
| 4814 *) | 5718 *) |
| 4815 » _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl
}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | 5719 » m4_if($1, [], [ |
| 5720 » # Older versions of the 11.00 compiler do not understand -b yet |
| 5721 » # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP doe
s) |
| 5722 » _LT_LINKER_OPTION([if $CC understands -b], |
| 5723 » _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b], |
| 5724 » [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$ins
tall_libdir -o $lib $libobjs $deplibs $compiler_flags'], |
| 5725 » [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir
-o $lib $libobjs $deplibs $linker_flags'])], |
| 5726 » [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$insta
ll_libdir -o $lib $libobjs $deplibs $compiler_flags']) |
| 4816 ;; | 5727 ;; |
| 4817 esac | 5728 esac |
| 4818 fi | 5729 fi |
| 4819 if test "$with_gnu_ld" = no; then | 5730 if test no = "$with_gnu_ld"; then |
| 4820 » _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' | 5731 » _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' |
| 4821 _LT_TAGVAR(hardcode_libdir_separator, $1)=: | 5732 _LT_TAGVAR(hardcode_libdir_separator, $1)=: |
| 4822 | 5733 |
| 4823 case $host_cpu in | 5734 case $host_cpu in |
| 4824 hppa*64*|ia64*) | 5735 hppa*64*|ia64*) |
| 4825 _LT_TAGVAR(hardcode_direct, $1)=no | 5736 _LT_TAGVAR(hardcode_direct, $1)=no |
| 4826 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | 5737 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 4827 ;; | 5738 ;; |
| 4828 *) | 5739 *) |
| 4829 _LT_TAGVAR(hardcode_direct, $1)=yes | 5740 _LT_TAGVAR(hardcode_direct, $1)=yes |
| 4830 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes | 5741 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes |
| 4831 » _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | 5742 » _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' |
| 4832 | 5743 |
| 4833 # hardcode_minus_L: Not really in the search PATH, | 5744 # hardcode_minus_L: Not really in the search PATH, |
| 4834 # but as the default location of the library. | 5745 # but as the default location of the library. |
| 4835 _LT_TAGVAR(hardcode_minus_L, $1)=yes | 5746 _LT_TAGVAR(hardcode_minus_L, $1)=yes |
| 4836 ;; | 5747 ;; |
| 4837 esac | 5748 esac |
| 4838 fi | 5749 fi |
| 4839 ;; | 5750 ;; |
| 4840 | 5751 |
| 4841 irix5* | irix6* | nonstopux*) | 5752 irix5* | irix6* | nonstopux*) |
| 4842 if test "$GCC" = yes; then | 5753 if test yes = "$GCC"; then |
| 4843 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_fl
ags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version
${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locati
ons -o $lib' | 5754 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $c
ompiler_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' |
| 4844 # Try to use the -exported_symbol ld option, if it does not | 5755 # Try to use the -exported_symbol ld option, if it does not |
| 4845 # work, assume that -exports_file does not work either and | 5756 # work, assume that -exports_file does not work either and |
| 4846 # implicitly export all symbols. | 5757 # implicitly export all symbols. |
| 4847 save_LDFLAGS="$LDFLAGS" | 5758 » # This should be the same for all languages, so no per-tag cache variabl
e. |
| 4848 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_re
gistry ${wl}/dev/null" | 5759 » AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol], |
| 4849 AC_LINK_IFELSE(int foo(void) {}, | 5760 » [lt_cv_irix_exported_symbol], |
| 4850 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $co
mpiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-se
t_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/
so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' | 5761 » [save_LDFLAGS=$LDFLAGS |
| 4851 ) | 5762 » LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_reg
istry $wl/dev/null" |
| 4852 LDFLAGS="$save_LDFLAGS" | 5763 » AC_LINK_IFELSE( |
| 5764 » [AC_LANG_SOURCE( |
| 5765 » [AC_LANG_CASE([C], [[int foo (void) { return 0; }]], |
| 5766 » » » [C++], [[int foo (void) { return 0; }]], |
| 5767 » » » [Fortran 77], [[ |
| 5768 subroutine foo |
| 5769 end]], |
| 5770 » » » [Fortran], [[ |
| 5771 subroutine foo |
| 5772 end]])])], |
| 5773 » [lt_cv_irix_exported_symbol=yes], |
| 5774 » [lt_cv_irix_exported_symbol=no]) |
| 5775 LDFLAGS=$save_LDFLAGS]) |
| 5776 » if test yes = "$lt_cv_irix_exported_symbol"; then |
| 5777 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $d
eplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_
all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_lo
cations $wl-exports_file $wl$export_symbols -o $lib' |
| 5778 » fi |
| 4853 else | 5779 else |
| 4854 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_fl
ags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" |
$Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | 5780 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_fl
ags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstr
ing"` -update_registry $output_objdir/so_locations -o $lib' |
| 4855 » _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $comp
iler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstr
ing" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $expo
rt_symbols -o $lib' | 5781 » _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $comp
iler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version
$verstring"` -update_registry $output_objdir/so_locations -exports_file $export_
symbols -o $lib' |
| 4856 fi | 5782 fi |
| 4857 _LT_TAGVAR(archive_cmds_need_lc, $1)='no' | 5783 _LT_TAGVAR(archive_cmds_need_lc, $1)='no' |
| 4858 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | 5784 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' |
| 4859 _LT_TAGVAR(hardcode_libdir_separator, $1)=: | 5785 _LT_TAGVAR(hardcode_libdir_separator, $1)=: |
| 4860 _LT_TAGVAR(inherit_rpath, $1)=yes | 5786 _LT_TAGVAR(inherit_rpath, $1)=yes |
| 4861 _LT_TAGVAR(link_all_deplibs, $1)=yes | 5787 _LT_TAGVAR(link_all_deplibs, $1)=yes |
| 4862 ;; | 5788 ;; |
| 4863 | 5789 |
| 4864 netbsd* | netbsdelf*-gnu) | 5790 linux*) |
| 5791 case $cc_basename in |
| 5792 tcc*) |
| 5793 » # Fabrice Bellard et al's Tiny C Compiler |
| 5794 » _LT_TAGVAR(ld_shlibs, $1)=yes |
| 5795 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $de
plibs $compiler_flags' |
| 5796 » ;; |
| 5797 esac |
| 5798 ;; |
| 5799 |
| 5800 netbsd*) |
| 4865 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | 5801 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 4866 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs
$linker_flags' # a.out | 5802 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs
$linker_flags' # a.out |
| 4867 else | 5803 else |
| 4868 _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $lin
ker_flags' # ELF | 5804 _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $lin
ker_flags' # ELF |
| 4869 fi | 5805 fi |
| 4870 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' | 5806 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
| 4871 _LT_TAGVAR(hardcode_direct, $1)=yes | 5807 _LT_TAGVAR(hardcode_direct, $1)=yes |
| 4872 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | 5808 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 4873 ;; | 5809 ;; |
| 4874 | 5810 |
| 4875 newsos6) | 5811 newsos6) |
| 4876 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs
$linker_flags' | 5812 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs
$linker_flags' |
| 4877 _LT_TAGVAR(hardcode_direct, $1)=yes | 5813 _LT_TAGVAR(hardcode_direct, $1)=yes |
| 4878 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | 5814 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' |
| 4879 _LT_TAGVAR(hardcode_libdir_separator, $1)=: | 5815 _LT_TAGVAR(hardcode_libdir_separator, $1)=: |
| 4880 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | 5816 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 4881 ;; | 5817 ;; |
| 4882 | 5818 |
| 4883 *nto* | *qnx*) | 5819 *nto* | *qnx*) |
| 4884 ;; | 5820 ;; |
| 4885 | 5821 |
| 4886 openbsd*) | 5822 openbsd* | bitrig*) |
| 4887 if test -f /usr/libexec/ld.so; then | 5823 if test -f /usr/libexec/ld.so; then |
| 4888 _LT_TAGVAR(hardcode_direct, $1)=yes | 5824 _LT_TAGVAR(hardcode_direct, $1)=yes |
| 4889 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | 5825 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 4890 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes | 5826 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes |
| 4891 » if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os
-$host_cpu" = "openbsd2.8-powerpc"; then | 5827 » if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then |
| 4892 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $
deplibs $compiler_flags' | 5828 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $
deplibs $compiler_flags' |
| 4893 » _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $li
bobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | 5829 » _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $li
bobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' |
| 4894 » _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' | 5830 » _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' |
| 4895 » _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | 5831 » _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' |
| 4896 else | 5832 else |
| 4897 » case $host_os in | 5833 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $
deplibs $compiler_flags' |
| 4898 » openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) | 5834 » _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' |
| 4899 » _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $dep
libs $linker_flags' | |
| 4900 » _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' | |
| 4901 » ;; | |
| 4902 » *) | |
| 4903 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobj
s $deplibs $compiler_flags' | |
| 4904 » _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' | |
| 4905 » ;; | |
| 4906 » esac | |
| 4907 fi | 5835 fi |
| 4908 else | 5836 else |
| 4909 _LT_TAGVAR(ld_shlibs, $1)=no | 5837 _LT_TAGVAR(ld_shlibs, $1)=no |
| 4910 fi | 5838 fi |
| 4911 ;; | 5839 ;; |
| 4912 | 5840 |
| 4913 os2*) | 5841 os2*) |
| 4914 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | 5842 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
| 4915 _LT_TAGVAR(hardcode_minus_L, $1)=yes | 5843 _LT_TAGVAR(hardcode_minus_L, $1)=yes |
| 4916 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported | 5844 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported |
| 4917 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $out
put_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libn
ame.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $
output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $
libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $depl
ibs $compiler_flags $output_objdir/$libname.def' | 5845 shrext_cmds=.dll |
| 4918 _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libna
me.a $output_objdir/$libname.def' | 5846 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINS
TANCE TERMINSTANCE" > $output_objdir/$libname.def~ |
| 5847 » $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ |
| 5848 » $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ |
| 5849 » $ECHO EXPORTS >> $output_objdir/$libname.def~ |
| 5850 » emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def
~ |
| 5851 » $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler
_flags $output_objdir/$libname.def~ |
| 5852 » emximp -o $lib $output_objdir/$libname.def' |
| 5853 _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext}
INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ |
| 5854 » $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ |
| 5855 » $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ |
| 5856 » $ECHO EXPORTS >> $output_objdir/$libname.def~ |
| 5857 » prefix_cmds="$SED"~ |
| 5858 » if test EXPORTS = "`$SED 1q $export_symbols`"; then |
| 5859 » prefix_cmds="$prefix_cmds -e 1d"; |
| 5860 » fi~ |
| 5861 » prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ |
| 5862 » cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ |
| 5863 » $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler
_flags $output_objdir/$libname.def~ |
| 5864 » emximp -o $lib $output_objdir/$libname.def' |
| 5865 _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libn
ame}_dll.a $output_objdir/$libname.def' |
| 5866 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes |
| 4919 ;; | 5867 ;; |
| 4920 | 5868 |
| 4921 osf3*) | 5869 osf3*) |
| 4922 if test "$GCC" = yes; then | 5870 if test yes = "$GCC"; then |
| 4923 » _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' | 5871 » _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*' |
| 4924 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobj
s $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $E
CHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${o
utput_objdir}/so_locations -o $lib' | 5872 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libobjs
$deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_ech
o_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_
locations -o $lib' |
| 4925 else | 5873 else |
| 4926 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' | 5874 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' |
| 4927 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobj
s $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set
_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o
$lib' | 5875 » _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' |
| 4928 fi | 5876 fi |
| 4929 _LT_TAGVAR(archive_cmds_need_lc, $1)='no' | 5877 _LT_TAGVAR(archive_cmds_need_lc, $1)='no' |
| 4930 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | 5878 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' |
| 4931 _LT_TAGVAR(hardcode_libdir_separator, $1)=: | 5879 _LT_TAGVAR(hardcode_libdir_separator, $1)=: |
| 4932 ;; | 5880 ;; |
| 4933 | 5881 |
| 4934 osf4* | osf5*) # as osf3* with the addition of -msym flag | 5882 osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 4935 if test "$GCC" = yes; then | 5883 if test yes = "$GCC"; then |
| 4936 » _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' | 5884 » _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*' |
| 4937 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobj
s $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verst
ring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_regist
ry ${wl}${output_objdir}/so_locations -o $lib' | 5885 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $pic_flag
$libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$ver
string" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $w
l$output_objdir/so_locations -o $lib' |
| 4938 » _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | 5886 » _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' |
| 4939 else | 5887 else |
| 4940 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' | 5888 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' |
| 4941 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobj
s $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO
"X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locatio
ns -o $lib' | 5889 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libobjs
$deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_ech
o_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o
$lib' |
| 4942 _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" "-hid
den">> $lib.exp~ | 5890 _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" "-hid
den">> $lib.exp~ |
| 4943 » $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_f
lags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_ver
sion $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib
~$RM $lib.exp' | 5891 $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' |
| 4944 | 5892 |
| 4945 # Both c and cxx compiler support -rpath directly | 5893 # Both c and cxx compiler support -rpath directly |
| 4946 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' | 5894 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' |
| 4947 fi | 5895 fi |
| 4948 _LT_TAGVAR(archive_cmds_need_lc, $1)='no' | 5896 _LT_TAGVAR(archive_cmds_need_lc, $1)='no' |
| 4949 _LT_TAGVAR(hardcode_libdir_separator, $1)=: | 5897 _LT_TAGVAR(hardcode_libdir_separator, $1)=: |
| 4950 ;; | 5898 ;; |
| 4951 | 5899 |
| 4952 solaris*) | 5900 solaris*) |
| 4953 _LT_TAGVAR(no_undefined_flag, $1)=' -z defs' | 5901 _LT_TAGVAR(no_undefined_flag, $1)=' -z defs' |
| 4954 if test "$GCC" = yes; then | 5902 if test yes = "$GCC"; then |
| 4955 » wlarc='${wl}' | 5903 » wlarc='$wl' |
| 4956 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl
}$soname -o $lib $libobjs $deplibs $compiler_flags' | 5904 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl-z ${wl}text $wl-
h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 4957 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $ex
port_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.e
xp~ | 5905 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $ex
port_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.e
xp~ |
| 4958 » $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$sona
me -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | 5906 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$sona
me -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
| 4959 else | 5907 else |
| 4960 case `$CC -V 2>&1` in | 5908 case `$CC -V 2>&1` in |
| 4961 *"Compilers 5.0"*) | 5909 *"Compilers 5.0"*) |
| 4962 wlarc='' | 5910 wlarc='' |
| 4963 » _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname
-o $lib $libobjs $deplibs $linker_flags' | 5911 » _LT_TAGVAR(archive_cmds, $1)='$LD -G$allow_undefined_flag -h $soname -
o $lib $libobjs $deplibs $linker_flags' |
| 4964 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $
export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib
.exp~ | 5912 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $
export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib
.exp~ |
| 4965 » $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs
$deplibs $linker_flags~$RM $lib.exp' | 5913 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs
$deplibs $linker_flags~$RM $lib.exp' |
| 4966 ;; | 5914 ;; |
| 4967 *) | 5915 *) |
| 4968 » wlarc='${wl}' | 5916 » wlarc='$wl' |
| 4969 » _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname
-o $lib $libobjs $deplibs $compiler_flags' | 5917 » _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h $soname -
o $lib $libobjs $deplibs $compiler_flags' |
| 4970 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $
export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib
.exp~ | 5918 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $
export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib
.exp~ |
| 4971 » $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs
$deplibs $compiler_flags~$RM $lib.exp' | 5919 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs
$deplibs $compiler_flags~$RM $lib.exp' |
| 4972 ;; | 5920 ;; |
| 4973 esac | 5921 esac |
| 4974 fi | 5922 fi |
| 4975 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' | 5923 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
| 4976 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | 5924 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 4977 case $host_os in | 5925 case $host_os in |
| 4978 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; | 5926 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; |
| 4979 *) | 5927 *) |
| 4980 # The compiler driver will combine and reorder linker options, | 5928 # The compiler driver will combine and reorder linker options, |
| 4981 » # but understands `-z linker_flag'. GCC discards it without `$wl', | 5929 » # but understands '-z linker_flag'. GCC discards it without '$wl', |
| 4982 # but is careful enough not to reorder. | 5930 # but is careful enough not to reorder. |
| 4983 # Supported since Solaris 2.6 (maybe 2.5.1?) | 5931 # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 4984 » if test "$GCC" = yes; then | 5932 » if test yes = "$GCC"; then |
| 4985 » _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$conve
nience ${wl}-z ${wl}defaultextract' | 5933 » _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$conveni
ence $wl-z ${wl}defaultextract' |
| 4986 else | 5934 else |
| 4987 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z
defaultextract' | 5935 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z
defaultextract' |
| 4988 fi | 5936 fi |
| 4989 ;; | 5937 ;; |
| 4990 esac | 5938 esac |
| 4991 _LT_TAGVAR(link_all_deplibs, $1)=yes | 5939 _LT_TAGVAR(link_all_deplibs, $1)=yes |
| 4992 ;; | 5940 ;; |
| 4993 | 5941 |
| 4994 sunos4*) | 5942 sunos4*) |
| 4995 if test "x$host_vendor" = xsequent; then | 5943 if test sequent = "$host_vendor"; then |
| 4996 # Use $CC to link under sequent, because it throws in some extra .o | 5944 # Use $CC to link under sequent, because it throws in some extra .o |
| 4997 # files that make .init and .fini sections work. | 5945 # files that make .init and .fini sections work. |
| 4998 » _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $d
eplibs $compiler_flags' | 5946 » _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h $soname -o $lib $libobjs $dep
libs $compiler_flags' |
| 4999 else | 5947 else |
| 5000 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $li
bobjs $deplibs $linker_flags' | 5948 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $li
bobjs $deplibs $linker_flags' |
| 5001 fi | 5949 fi |
| 5002 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | 5950 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
| 5003 _LT_TAGVAR(hardcode_direct, $1)=yes | 5951 _LT_TAGVAR(hardcode_direct, $1)=yes |
| 5004 _LT_TAGVAR(hardcode_minus_L, $1)=yes | 5952 _LT_TAGVAR(hardcode_minus_L, $1)=yes |
| 5005 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | 5953 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 5006 ;; | 5954 ;; |
| 5007 | 5955 |
| 5008 sysv4) | 5956 sysv4) |
| (...skipping 28 matching lines...) Expand all Loading... |
| 5037 if test -d /usr/nec; then | 5985 if test -d /usr/nec; then |
| 5038 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplib
s $linker_flags' | 5986 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplib
s $linker_flags' |
| 5039 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | 5987 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 5040 runpath_var=LD_RUN_PATH | 5988 runpath_var=LD_RUN_PATH |
| 5041 hardcode_runpath_var=yes | 5989 hardcode_runpath_var=yes |
| 5042 _LT_TAGVAR(ld_shlibs, $1)=yes | 5990 _LT_TAGVAR(ld_shlibs, $1)=yes |
| 5043 fi | 5991 fi |
| 5044 ;; | 5992 ;; |
| 5045 | 5993 |
| 5046 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | s
co3.2v5.0.[[024]]*) | 5994 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | s
co3.2v5.0.[[024]]*) |
| 5047 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' | 5995 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text' |
| 5048 _LT_TAGVAR(archive_cmds_need_lc, $1)=no | 5996 _LT_TAGVAR(archive_cmds_need_lc, $1)=no |
| 5049 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | 5997 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 5050 runpath_var='LD_RUN_PATH' | 5998 runpath_var='LD_RUN_PATH' |
| 5051 | 5999 |
| 5052 if test "$GCC" = yes; then | 6000 if test yes = "$GCC"; then |
| 5053 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libob
js $deplibs $compiler_flags' | 6001 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs
$deplibs $compiler_flags' |
| 5054 » _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_s
ymbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | 6002 » _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_sym
bols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 5055 else | 6003 else |
| 5056 » _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $d
eplibs $compiler_flags' | 6004 » _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $dep
libs $compiler_flags' |
| 5057 » _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbol
s ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | 6005 » _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols
$wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 5058 fi | 6006 fi |
| 5059 ;; | 6007 ;; |
| 5060 | 6008 |
| 5061 sysv5* | sco3.2v5* | sco5v6*) | 6009 sysv5* | sco3.2v5* | sco5v6*) |
| 5062 # Note: We can NOT use -z defs as we might desire, because we do not | 6010 # Note: We CANNOT use -z defs as we might desire, because we do not |
| 5063 # link with -lc, and that would cause any symbols used from libc to | 6011 # link with -lc, and that would cause any symbols used from libc to |
| 5064 # always be unresolved, which means just about no library would | 6012 # always be unresolved, which means just about no library would |
| 5065 # ever link correctly. If we're not using GNU ld we use -z text | 6013 # ever link correctly. If we're not using GNU ld we use -z text |
| 5066 # though, which does catch some bad symbols but isn't as heavy-handed | 6014 # though, which does catch some bad symbols but isn't as heavy-handed |
| 5067 # as -z defs. | 6015 # as -z defs. |
| 5068 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' | 6016 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text' |
| 5069 _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' | 6017 _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs' |
| 5070 _LT_TAGVAR(archive_cmds_need_lc, $1)=no | 6018 _LT_TAGVAR(archive_cmds_need_lc, $1)=no |
| 5071 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | 6019 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 5072 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir' | 6020 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir' |
| 5073 _LT_TAGVAR(hardcode_libdir_separator, $1)=':' | 6021 _LT_TAGVAR(hardcode_libdir_separator, $1)=':' |
| 5074 _LT_TAGVAR(link_all_deplibs, $1)=yes | 6022 _LT_TAGVAR(link_all_deplibs, $1)=yes |
| 5075 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' | 6023 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport' |
| 5076 runpath_var='LD_RUN_PATH' | 6024 runpath_var='LD_RUN_PATH' |
| 5077 | 6025 |
| 5078 if test "$GCC" = yes; then | 6026 if test yes = "$GCC"; then |
| 5079 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libob
js $deplibs $compiler_flags' | 6027 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs
$deplibs $compiler_flags' |
| 5080 » _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_s
ymbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | 6028 » _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_sym
bols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 5081 else | 6029 else |
| 5082 » _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $d
eplibs $compiler_flags' | 6030 » _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $dep
libs $compiler_flags' |
| 5083 » _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbol
s ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | 6031 » _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols
$wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 5084 fi | 6032 fi |
| 5085 ;; | 6033 ;; |
| 5086 | 6034 |
| 5087 uts4*) | 6035 uts4*) |
| 5088 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs
$linker_flags' | 6036 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs
$linker_flags' |
| 5089 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | 6037 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
| 5090 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | 6038 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 5091 ;; | 6039 ;; |
| 5092 | 6040 |
| 5093 *) | 6041 *) |
| 5094 _LT_TAGVAR(ld_shlibs, $1)=no | 6042 _LT_TAGVAR(ld_shlibs, $1)=no |
| 5095 ;; | 6043 ;; |
| 5096 esac | 6044 esac |
| 5097 | 6045 |
| 5098 if test x$host_vendor = xsni; then | 6046 if test sni = "$host_vendor"; then |
| 5099 case $host in | 6047 case $host in |
| 5100 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | 6048 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 5101 » _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym' | 6049 » _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Blargedynsym' |
| 5102 ;; | 6050 ;; |
| 5103 esac | 6051 esac |
| 5104 fi | 6052 fi |
| 5105 fi | 6053 fi |
| 5106 ]) | 6054 ]) |
| 5107 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) | 6055 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) |
| 5108 test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no | 6056 test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no |
| 5109 | 6057 |
| 5110 _LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld | 6058 _LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld |
| 5111 | 6059 |
| 5112 _LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl | 6060 _LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl |
| 5113 _LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl | 6061 _LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl |
| 5114 _LT_DECL([], [extract_expsyms_cmds], [2], | 6062 _LT_DECL([], [extract_expsyms_cmds], [2], |
| 5115 [The commands to extract the exported symbol list from a shared archive]) | 6063 [The commands to extract the exported symbol list from a shared archive]) |
| 5116 | 6064 |
| 5117 # | 6065 # |
| 5118 # Do we need to explicitly link libc? | 6066 # Do we need to explicitly link libc? |
| 5119 # | 6067 # |
| 5120 case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in | 6068 case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in |
| 5121 x|xyes) | 6069 x|xyes) |
| 5122 # Assume -lc should be added | 6070 # Assume -lc should be added |
| 5123 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes | 6071 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes |
| 5124 | 6072 |
| 5125 if test "$enable_shared" = yes && test "$GCC" = yes; then | 6073 if test yes,yes = "$GCC,$enable_shared"; then |
| 5126 case $_LT_TAGVAR(archive_cmds, $1) in | 6074 case $_LT_TAGVAR(archive_cmds, $1) in |
| 5127 *'~'*) | 6075 *'~'*) |
| 5128 # FIXME: we may have to deal with multi-command sequences. | 6076 # FIXME: we may have to deal with multi-command sequences. |
| 5129 ;; | 6077 ;; |
| 5130 '$CC '*) | 6078 '$CC '*) |
| 5131 # Test whether the compiler implicitly links with -lc since on some | 6079 # Test whether the compiler implicitly links with -lc since on some |
| 5132 # systems, -lgcc has to come before -lc. If gcc already passes -lc | 6080 # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 5133 # to ld, don't add -lc before -lgcc. | 6081 # to ld, don't add -lc before -lgcc. |
| 5134 AC_MSG_CHECKING([whether -lc should be explicitly linked in]) | 6082 AC_CACHE_CHECK([whether -lc should be explicitly linked in], |
| 5135 $RM conftest* | 6083 » [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1), |
| 5136 echo "$lt_simple_compile_test_code" > conftest.$ac_ext | 6084 » [$RM conftest* |
| 6085 » echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 5137 | 6086 |
| 5138 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then | 6087 » if AC_TRY_EVAL(ac_compile) 2>conftest.err; then |
| 5139 soname=conftest | 6088 » soname=conftest |
| 5140 lib=conftest | 6089 » lib=conftest |
| 5141 libobjs=conftest.$ac_objext | 6090 » libobjs=conftest.$ac_objext |
| 5142 deplibs= | 6091 » deplibs= |
| 5143 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) | 6092 » wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) |
| 5144 » pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1) | 6093 » pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1) |
| 5145 compiler_flags=-v | 6094 » compiler_flags=-v |
| 5146 linker_flags=-v | 6095 » linker_flags=-v |
| 5147 verstring= | 6096 » verstring= |
| 5148 output_objdir=. | 6097 » output_objdir=. |
| 5149 libname=conftest | 6098 » libname=conftest |
| 5150 lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1) | 6099 » lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1) |
| 5151 _LT_TAGVAR(allow_undefined_flag, $1)= | 6100 » _LT_TAGVAR(allow_undefined_flag, $1)= |
| 5152 if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>
/dev/null 2\>\&1) | 6101 » if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \"
\>/dev/null 2\>\&1) |
| 5153 then | 6102 » then |
| 5154 » _LT_TAGVAR(archive_cmds_need_lc, $1)=no | 6103 » lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no |
| 5155 else | 6104 » else |
| 5156 » _LT_TAGVAR(archive_cmds_need_lc, $1)=yes | 6105 » lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes |
| 5157 fi | 6106 » fi |
| 5158 _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag | 6107 » _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag |
| 5159 else | 6108 » else |
| 5160 cat conftest.err 1>&5 | 6109 » cat conftest.err 1>&5 |
| 5161 fi | 6110 » fi |
| 5162 $RM conftest* | 6111 » $RM conftest* |
| 5163 AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)]) | 6112 » ]) |
| 6113 _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need
_lc, $1) |
| 5164 ;; | 6114 ;; |
| 5165 esac | 6115 esac |
| 5166 fi | 6116 fi |
| 5167 ;; | 6117 ;; |
| 5168 esac | 6118 esac |
| 5169 | 6119 |
| 5170 _LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0], | 6120 _LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0], |
| 5171 [Whether or not to add -lc for building shared libraries]) | 6121 [Whether or not to add -lc for building shared libraries]) |
| 5172 _LT_TAGDECL([allow_libtool_libs_with_static_runtimes], | 6122 _LT_TAGDECL([allow_libtool_libs_with_static_runtimes], |
| 5173 [enable_shared_with_static_runtimes], [0], | 6123 [enable_shared_with_static_runtimes], [0], |
| (...skipping 16 matching lines...) Expand all Loading... |
| 5190 _LT_TAGDECL([], [module_expsym_cmds], [2]) | 6140 _LT_TAGDECL([], [module_expsym_cmds], [2]) |
| 5191 _LT_TAGDECL([], [with_gnu_ld], [1], | 6141 _LT_TAGDECL([], [with_gnu_ld], [1], |
| 5192 [Whether we are building with GNU ld or not]) | 6142 [Whether we are building with GNU ld or not]) |
| 5193 _LT_TAGDECL([], [allow_undefined_flag], [1], | 6143 _LT_TAGDECL([], [allow_undefined_flag], [1], |
| 5194 [Flag that allows shared libraries with undefined symbols to be built]) | 6144 [Flag that allows shared libraries with undefined symbols to be built]) |
| 5195 _LT_TAGDECL([], [no_undefined_flag], [1], | 6145 _LT_TAGDECL([], [no_undefined_flag], [1], |
| 5196 [Flag that enforces no undefined symbols]) | 6146 [Flag that enforces no undefined symbols]) |
| 5197 _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1], | 6147 _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1], |
| 5198 [Flag to hardcode $libdir into a binary during linking. | 6148 [Flag to hardcode $libdir into a binary during linking. |
| 5199 This must work even if $libdir does not exist]) | 6149 This must work even if $libdir does not exist]) |
| 5200 _LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1], | |
| 5201 [[If ld is used when linking, flag to hardcode $libdir into a binary | |
| 5202 during linking. This must work even if $libdir does not exist]]) | |
| 5203 _LT_TAGDECL([], [hardcode_libdir_separator], [1], | 6150 _LT_TAGDECL([], [hardcode_libdir_separator], [1], |
| 5204 [Whether we need a single "-rpath" flag with a separated argument]) | 6151 [Whether we need a single "-rpath" flag with a separated argument]) |
| 5205 _LT_TAGDECL([], [hardcode_direct], [0], | 6152 _LT_TAGDECL([], [hardcode_direct], [0], |
| 5206 [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes | 6153 [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes |
| 5207 DIR into the resulting binary]) | 6154 DIR into the resulting binary]) |
| 5208 _LT_TAGDECL([], [hardcode_direct_absolute], [0], | 6155 _LT_TAGDECL([], [hardcode_direct_absolute], [0], |
| 5209 [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes | 6156 [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes |
| 5210 DIR into the resulting binary and the resulting library dependency is | 6157 DIR into the resulting binary and the resulting library dependency is |
| 5211 "absolute", i.e impossible to change by setting ${shlibpath_var} if the | 6158 "absolute", i.e impossible to change by setting $shlibpath_var if the |
| 5212 library is relocated]) | 6159 library is relocated]) |
| 5213 _LT_TAGDECL([], [hardcode_minus_L], [0], | 6160 _LT_TAGDECL([], [hardcode_minus_L], [0], |
| 5214 [Set to "yes" if using the -LDIR flag during linking hardcodes DIR | 6161 [Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
| 5215 into the resulting binary]) | 6162 into the resulting binary]) |
| 5216 _LT_TAGDECL([], [hardcode_shlibpath_var], [0], | 6163 _LT_TAGDECL([], [hardcode_shlibpath_var], [0], |
| 5217 [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | 6164 [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
| 5218 into the resulting binary]) | 6165 into the resulting binary]) |
| 5219 _LT_TAGDECL([], [hardcode_automatic], [0], | 6166 _LT_TAGDECL([], [hardcode_automatic], [0], |
| 5220 [Set to "yes" if building a shared library automatically hardcodes DIR | 6167 [Set to "yes" if building a shared library automatically hardcodes DIR |
| 5221 into the library and all subsequent libraries and executables linked | 6168 into the library and all subsequent libraries and executables linked |
| 5222 against it]) | 6169 against it]) |
| 5223 _LT_TAGDECL([], [inherit_rpath], [0], | 6170 _LT_TAGDECL([], [inherit_rpath], [0], |
| 5224 [Set to yes if linker adds runtime paths of dependent libraries | 6171 [Set to yes if linker adds runtime paths of dependent libraries |
| 5225 to runtime path list]) | 6172 to runtime path list]) |
| 5226 _LT_TAGDECL([], [link_all_deplibs], [0], | 6173 _LT_TAGDECL([], [link_all_deplibs], [0], |
| 5227 [Whether libtool must link a program against all its dependency libraries]) | 6174 [Whether libtool must link a program against all its dependency libraries]) |
| 5228 _LT_TAGDECL([], [fix_srcfile_path], [1], | |
| 5229 [Fix the shell variable $srcfile for the compiler]) | |
| 5230 _LT_TAGDECL([], [always_export_symbols], [0], | 6175 _LT_TAGDECL([], [always_export_symbols], [0], |
| 5231 [Set to "yes" if exported symbols are required]) | 6176 [Set to "yes" if exported symbols are required]) |
| 5232 _LT_TAGDECL([], [export_symbols_cmds], [2], | 6177 _LT_TAGDECL([], [export_symbols_cmds], [2], |
| 5233 [The commands to list exported symbols]) | 6178 [The commands to list exported symbols]) |
| 5234 _LT_TAGDECL([], [exclude_expsyms], [1], | 6179 _LT_TAGDECL([], [exclude_expsyms], [1], |
| 5235 [Symbols that should not be listed in the preloaded symbols]) | 6180 [Symbols that should not be listed in the preloaded symbols]) |
| 5236 _LT_TAGDECL([], [include_expsyms], [1], | 6181 _LT_TAGDECL([], [include_expsyms], [1], |
| 5237 [Symbols that must always be exported]) | 6182 [Symbols that must always be exported]) |
| 5238 _LT_TAGDECL([], [prelink_cmds], [2], | 6183 _LT_TAGDECL([], [prelink_cmds], [2], |
| 5239 [Commands necessary for linking programs (against libraries) with templates]
) | 6184 [Commands necessary for linking programs (against libraries) with templates]
) |
| 6185 _LT_TAGDECL([], [postlink_cmds], [2], |
| 6186 [Commands necessary for finishing linking programs]) |
| 5240 _LT_TAGDECL([], [file_list_spec], [1], | 6187 _LT_TAGDECL([], [file_list_spec], [1], |
| 5241 [Specify filename containing input files]) | 6188 [Specify filename containing input files]) |
| 5242 dnl FIXME: Not yet implemented | 6189 dnl FIXME: Not yet implemented |
| 5243 dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1], | 6190 dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1], |
| 5244 dnl [Compiler flag to generate thread safe objects]) | 6191 dnl [Compiler flag to generate thread safe objects]) |
| 5245 ])# _LT_LINKER_SHLIBS | 6192 ])# _LT_LINKER_SHLIBS |
| 5246 | 6193 |
| 5247 | 6194 |
| 5248 # _LT_LANG_C_CONFIG([TAG]) | 6195 # _LT_LANG_C_CONFIG([TAG]) |
| 5249 # ------------------------ | 6196 # ------------------------ |
| 5250 # Ensure that the configuration variables for a C compiler are suitably | 6197 # Ensure that the configuration variables for a C compiler are suitably |
| 5251 # defined. These variables are subsequently used by _LT_CONFIG to write | 6198 # defined. These variables are subsequently used by _LT_CONFIG to write |
| 5252 # the compiler configuration to `libtool'. | 6199 # the compiler configuration to 'libtool'. |
| 5253 m4_defun([_LT_LANG_C_CONFIG], | 6200 m4_defun([_LT_LANG_C_CONFIG], |
| 5254 [m4_require([_LT_DECL_EGREP])dnl | 6201 [m4_require([_LT_DECL_EGREP])dnl |
| 5255 lt_save_CC="$CC" | 6202 lt_save_CC=$CC |
| 5256 AC_LANG_PUSH(C) | 6203 AC_LANG_PUSH(C) |
| 5257 | 6204 |
| 5258 # Source file extension for C test sources. | 6205 # Source file extension for C test sources. |
| 5259 ac_ext=c | 6206 ac_ext=c |
| 5260 | 6207 |
| 5261 # Object file extension for compiled C test sources. | 6208 # Object file extension for compiled C test sources. |
| 5262 objext=o | 6209 objext=o |
| 5263 _LT_TAGVAR(objext, $1)=$objext | 6210 _LT_TAGVAR(objext, $1)=$objext |
| 5264 | 6211 |
| 5265 # Code to be used in simple compile tests | 6212 # Code to be used in simple compile tests |
| (...skipping 19 matching lines...) Expand all Loading... |
| 5285 _LT_COMPILER_NO_RTTI($1) | 6232 _LT_COMPILER_NO_RTTI($1) |
| 5286 _LT_COMPILER_PIC($1) | 6233 _LT_COMPILER_PIC($1) |
| 5287 _LT_COMPILER_C_O($1) | 6234 _LT_COMPILER_C_O($1) |
| 5288 _LT_COMPILER_FILE_LOCKS($1) | 6235 _LT_COMPILER_FILE_LOCKS($1) |
| 5289 _LT_LINKER_SHLIBS($1) | 6236 _LT_LINKER_SHLIBS($1) |
| 5290 _LT_SYS_DYNAMIC_LINKER($1) | 6237 _LT_SYS_DYNAMIC_LINKER($1) |
| 5291 _LT_LINKER_HARDCODE_LIBPATH($1) | 6238 _LT_LINKER_HARDCODE_LIBPATH($1) |
| 5292 LT_SYS_DLOPEN_SELF | 6239 LT_SYS_DLOPEN_SELF |
| 5293 _LT_CMD_STRIPLIB | 6240 _LT_CMD_STRIPLIB |
| 5294 | 6241 |
| 5295 # Report which library types will actually be built | 6242 # Report what library types will actually be built |
| 5296 AC_MSG_CHECKING([if libtool supports shared libraries]) | 6243 AC_MSG_CHECKING([if libtool supports shared libraries]) |
| 5297 AC_MSG_RESULT([$can_build_shared]) | 6244 AC_MSG_RESULT([$can_build_shared]) |
| 5298 | 6245 |
| 5299 AC_MSG_CHECKING([whether to build shared libraries]) | 6246 AC_MSG_CHECKING([whether to build shared libraries]) |
| 5300 test "$can_build_shared" = "no" && enable_shared=no | 6247 test no = "$can_build_shared" && enable_shared=no |
| 5301 | 6248 |
| 5302 # On AIX, shared libraries and static libraries use the same namespace, and | 6249 # On AIX, shared libraries and static libraries use the same namespace, and |
| 5303 # are all built from PIC. | 6250 # are all built from PIC. |
| 5304 case $host_os in | 6251 case $host_os in |
| 5305 aix3*) | 6252 aix3*) |
| 5306 test "$enable_shared" = yes && enable_static=no | 6253 test yes = "$enable_shared" && enable_static=no |
| 5307 if test -n "$RANLIB"; then | 6254 if test -n "$RANLIB"; then |
| 5308 archive_cmds="$archive_cmds~\$RANLIB \$lib" | 6255 archive_cmds="$archive_cmds~\$RANLIB \$lib" |
| 5309 postinstall_cmds='$RANLIB $lib' | 6256 postinstall_cmds='$RANLIB $lib' |
| 5310 fi | 6257 fi |
| 5311 ;; | 6258 ;; |
| 5312 | 6259 |
| 5313 aix[[4-9]]*) | 6260 aix[[4-9]]*) |
| 5314 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | 6261 if test ia64 != "$host_cpu"; then |
| 5315 test "$enable_shared" = yes && enable_static=no | 6262 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in |
| 6263 yes,aix,yes) ;;» » » # shared object as lib.so file only |
| 6264 yes,svr4,*) ;;» » » # shared object as lib.so archive member
only |
| 6265 yes,*) enable_static=no ;;» # shared object in lib.a archive as well |
| 6266 esac |
| 5316 fi | 6267 fi |
| 5317 ;; | 6268 ;; |
| 5318 esac | 6269 esac |
| 5319 AC_MSG_RESULT([$enable_shared]) | 6270 AC_MSG_RESULT([$enable_shared]) |
| 5320 | 6271 |
| 5321 AC_MSG_CHECKING([whether to build static libraries]) | 6272 AC_MSG_CHECKING([whether to build static libraries]) |
| 5322 # Make sure either enable_shared or enable_static is yes. | 6273 # Make sure either enable_shared or enable_static is yes. |
| 5323 test "$enable_shared" = yes || enable_static=yes | 6274 test yes = "$enable_shared" || enable_static=yes |
| 5324 AC_MSG_RESULT([$enable_static]) | 6275 AC_MSG_RESULT([$enable_static]) |
| 5325 | 6276 |
| 5326 _LT_CONFIG($1) | 6277 _LT_CONFIG($1) |
| 5327 fi | 6278 fi |
| 5328 AC_LANG_POP | 6279 AC_LANG_POP |
| 5329 CC="$lt_save_CC" | 6280 CC=$lt_save_CC |
| 5330 ])# _LT_LANG_C_CONFIG | 6281 ])# _LT_LANG_C_CONFIG |
| 5331 | 6282 |
| 5332 | 6283 |
| 5333 # _LT_PROG_CXX | |
| 5334 # ------------ | |
| 5335 # Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++ | |
| 5336 # compiler, we have our own version here. | |
| 5337 m4_defun([_LT_PROG_CXX], | |
| 5338 [ | |
| 5339 pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes]) | |
| 5340 AC_PROG_CXX | |
| 5341 if test -n "$CXX" && ( test "X$CXX" != "Xno" && | |
| 5342 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || | |
| 5343 (test "X$CXX" != "Xg++"))) ; then | |
| 5344 AC_PROG_CXXCPP | |
| 5345 else | |
| 5346 _lt_caught_CXX_error=yes | |
| 5347 fi | |
| 5348 popdef([AC_MSG_ERROR]) | |
| 5349 ])# _LT_PROG_CXX | |
| 5350 | |
| 5351 dnl aclocal-1.4 backwards compatibility: | |
| 5352 dnl AC_DEFUN([_LT_PROG_CXX], []) | |
| 5353 | |
| 5354 | |
| 5355 # _LT_LANG_CXX_CONFIG([TAG]) | 6284 # _LT_LANG_CXX_CONFIG([TAG]) |
| 5356 # -------------------------- | 6285 # -------------------------- |
| 5357 # Ensure that the configuration variables for a C++ compiler are suitably | 6286 # Ensure that the configuration variables for a C++ compiler are suitably |
| 5358 # defined. These variables are subsequently used by _LT_CONFIG to write | 6287 # defined. These variables are subsequently used by _LT_CONFIG to write |
| 5359 # the compiler configuration to `libtool'. | 6288 # the compiler configuration to 'libtool'. |
| 5360 m4_defun([_LT_LANG_CXX_CONFIG], | 6289 m4_defun([_LT_LANG_CXX_CONFIG], |
| 5361 [AC_REQUIRE([_LT_PROG_CXX])dnl | 6290 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
| 5362 m4_require([_LT_FILEUTILS_DEFAULTS])dnl | |
| 5363 m4_require([_LT_DECL_EGREP])dnl | 6291 m4_require([_LT_DECL_EGREP])dnl |
| 6292 m4_require([_LT_PATH_MANIFEST_TOOL])dnl |
| 6293 if test -n "$CXX" && ( test no != "$CXX" && |
| 6294 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || |
| 6295 (test g++ != "$CXX"))); then |
| 6296 AC_PROG_CXXCPP |
| 6297 else |
| 6298 _lt_caught_CXX_error=yes |
| 6299 fi |
| 5364 | 6300 |
| 5365 AC_LANG_PUSH(C++) | 6301 AC_LANG_PUSH(C++) |
| 5366 _LT_TAGVAR(archive_cmds_need_lc, $1)=no | 6302 _LT_TAGVAR(archive_cmds_need_lc, $1)=no |
| 5367 _LT_TAGVAR(allow_undefined_flag, $1)= | 6303 _LT_TAGVAR(allow_undefined_flag, $1)= |
| 5368 _LT_TAGVAR(always_export_symbols, $1)=no | 6304 _LT_TAGVAR(always_export_symbols, $1)=no |
| 5369 _LT_TAGVAR(archive_expsym_cmds, $1)= | 6305 _LT_TAGVAR(archive_expsym_cmds, $1)= |
| 5370 _LT_TAGVAR(compiler_needs_object, $1)=no | 6306 _LT_TAGVAR(compiler_needs_object, $1)=no |
| 5371 _LT_TAGVAR(export_dynamic_flag_spec, $1)= | 6307 _LT_TAGVAR(export_dynamic_flag_spec, $1)= |
| 5372 _LT_TAGVAR(hardcode_direct, $1)=no | 6308 _LT_TAGVAR(hardcode_direct, $1)=no |
| 5373 _LT_TAGVAR(hardcode_direct_absolute, $1)=no | 6309 _LT_TAGVAR(hardcode_direct_absolute, $1)=no |
| 5374 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= | 6310 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= |
| 5375 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= | |
| 5376 _LT_TAGVAR(hardcode_libdir_separator, $1)= | 6311 _LT_TAGVAR(hardcode_libdir_separator, $1)= |
| 5377 _LT_TAGVAR(hardcode_minus_L, $1)=no | 6312 _LT_TAGVAR(hardcode_minus_L, $1)=no |
| 5378 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported | 6313 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
| 5379 _LT_TAGVAR(hardcode_automatic, $1)=no | 6314 _LT_TAGVAR(hardcode_automatic, $1)=no |
| 5380 _LT_TAGVAR(inherit_rpath, $1)=no | 6315 _LT_TAGVAR(inherit_rpath, $1)=no |
| 5381 _LT_TAGVAR(module_cmds, $1)= | 6316 _LT_TAGVAR(module_cmds, $1)= |
| 5382 _LT_TAGVAR(module_expsym_cmds, $1)= | 6317 _LT_TAGVAR(module_expsym_cmds, $1)= |
| 5383 _LT_TAGVAR(link_all_deplibs, $1)=unknown | 6318 _LT_TAGVAR(link_all_deplibs, $1)=unknown |
| 5384 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds | 6319 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds |
| 6320 _LT_TAGVAR(reload_flag, $1)=$reload_flag |
| 6321 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds |
| 5385 _LT_TAGVAR(no_undefined_flag, $1)= | 6322 _LT_TAGVAR(no_undefined_flag, $1)= |
| 5386 _LT_TAGVAR(whole_archive_flag_spec, $1)= | 6323 _LT_TAGVAR(whole_archive_flag_spec, $1)= |
| 5387 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no | 6324 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no |
| 5388 | 6325 |
| 5389 # Source file extension for C++ test sources. | 6326 # Source file extension for C++ test sources. |
| 5390 ac_ext=cpp | 6327 ac_ext=cpp |
| 5391 | 6328 |
| 5392 # Object file extension for compiled C++ test sources. | 6329 # Object file extension for compiled C++ test sources. |
| 5393 objext=o | 6330 objext=o |
| 5394 _LT_TAGVAR(objext, $1)=$objext | 6331 _LT_TAGVAR(objext, $1)=$objext |
| 5395 | 6332 |
| 5396 # No sense in running all these tests if we already determined that | 6333 # No sense in running all these tests if we already determined that |
| 5397 # the CXX compiler isn't working. Some variables (like enable_shared) | 6334 # the CXX compiler isn't working. Some variables (like enable_shared) |
| 5398 # are currently assumed to apply to all compilers on this platform, | 6335 # are currently assumed to apply to all compilers on this platform, |
| 5399 # and will be corrupted by setting them based on a non-working compiler. | 6336 # and will be corrupted by setting them based on a non-working compiler. |
| 5400 if test "$_lt_caught_CXX_error" != yes; then | 6337 if test yes != "$_lt_caught_CXX_error"; then |
| 5401 # Code to be used in simple compile tests | 6338 # Code to be used in simple compile tests |
| 5402 lt_simple_compile_test_code="int some_variable = 0;" | 6339 lt_simple_compile_test_code="int some_variable = 0;" |
| 5403 | 6340 |
| 5404 # Code to be used in simple link tests | 6341 # Code to be used in simple link tests |
| 5405 lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }' | 6342 lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }' |
| 5406 | 6343 |
| 5407 # ltmain only uses $CC for tagged configurations so make sure $CC is set. | 6344 # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 5408 _LT_TAG_COMPILER | 6345 _LT_TAG_COMPILER |
| 5409 | 6346 |
| 5410 # save warnings/boilerplate of simple test code | 6347 # save warnings/boilerplate of simple test code |
| 5411 _LT_COMPILER_BOILERPLATE | 6348 _LT_COMPILER_BOILERPLATE |
| 5412 _LT_LINKER_BOILERPLATE | 6349 _LT_LINKER_BOILERPLATE |
| 5413 | 6350 |
| 5414 # Allow CC to be a program name with arguments. | 6351 # Allow CC to be a program name with arguments. |
| 5415 lt_save_CC=$CC | 6352 lt_save_CC=$CC |
| 6353 lt_save_CFLAGS=$CFLAGS |
| 5416 lt_save_LD=$LD | 6354 lt_save_LD=$LD |
| 5417 lt_save_GCC=$GCC | 6355 lt_save_GCC=$GCC |
| 5418 GCC=$GXX | 6356 GCC=$GXX |
| 5419 lt_save_with_gnu_ld=$with_gnu_ld | 6357 lt_save_with_gnu_ld=$with_gnu_ld |
| 5420 lt_save_path_LD=$lt_cv_path_LD | 6358 lt_save_path_LD=$lt_cv_path_LD |
| 5421 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then | 6359 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
| 5422 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx | 6360 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
| 5423 else | 6361 else |
| 5424 $as_unset lt_cv_prog_gnu_ld | 6362 $as_unset lt_cv_prog_gnu_ld |
| 5425 fi | 6363 fi |
| 5426 if test -n "${lt_cv_path_LDCXX+set}"; then | 6364 if test -n "${lt_cv_path_LDCXX+set}"; then |
| 5427 lt_cv_path_LD=$lt_cv_path_LDCXX | 6365 lt_cv_path_LD=$lt_cv_path_LDCXX |
| 5428 else | 6366 else |
| 5429 $as_unset lt_cv_path_LD | 6367 $as_unset lt_cv_path_LD |
| 5430 fi | 6368 fi |
| 5431 test -z "${LDCXX+set}" || LD=$LDCXX | 6369 test -z "${LDCXX+set}" || LD=$LDCXX |
| 5432 CC=${CXX-"c++"} | 6370 CC=${CXX-"c++"} |
| 6371 CFLAGS=$CXXFLAGS |
| 5433 compiler=$CC | 6372 compiler=$CC |
| 5434 _LT_TAGVAR(compiler, $1)=$CC | 6373 _LT_TAGVAR(compiler, $1)=$CC |
| 5435 _LT_CC_BASENAME([$compiler]) | 6374 _LT_CC_BASENAME([$compiler]) |
| 5436 | 6375 |
| 5437 if test -n "$compiler"; then | 6376 if test -n "$compiler"; then |
| 5438 # We don't want -fno-exception when compiling C++ code, so set the | 6377 # We don't want -fno-exception when compiling C++ code, so set the |
| 5439 # no_builtin_flag separately | 6378 # no_builtin_flag separately |
| 5440 if test "$GXX" = yes; then | 6379 if test yes = "$GXX"; then |
| 5441 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' | 6380 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' |
| 5442 else | 6381 else |
| 5443 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= | 6382 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= |
| 5444 fi | 6383 fi |
| 5445 | 6384 |
| 5446 if test "$GXX" = yes; then | 6385 if test yes = "$GXX"; then |
| 5447 # Set up default GNU C++ configuration | 6386 # Set up default GNU C++ configuration |
| 5448 | 6387 |
| 5449 LT_PATH_LD | 6388 LT_PATH_LD |
| 5450 | 6389 |
| 5451 # Check if GNU C++ uses GNU ld as the underlying linker, since the | 6390 # Check if GNU C++ uses GNU ld as the underlying linker, since the |
| 5452 # archiving commands below assume that GNU ld is being used. | 6391 # archiving commands below assume that GNU ld is being used. |
| 5453 if test "$with_gnu_ld" = yes; then | 6392 if test yes = "$with_gnu_ld"; then |
| 5454 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $lib
objs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | 6393 _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_ob
jects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -
o $lib' |
| 5455 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objec
ts $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${
wl}-retain-symbols-file $wl$export_symbols -o $lib' | 6394 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $pr
edep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$s
oname $wl-retain-symbols-file $wl$export_symbols -o $lib' |
| 5456 | 6395 |
| 5457 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | 6396 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' |
| 5458 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' | 6397 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' |
| 5459 | 6398 |
| 5460 # If archive_cmds runs LD, not CC, wlarc should be empty | 6399 # If archive_cmds runs LD, not CC, wlarc should be empty |
| 5461 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to | 6400 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
| 5462 # investigate it a little bit more. (MM) | 6401 # investigate it a little bit more. (MM) |
| 5463 wlarc='${wl}' | 6402 wlarc='$wl' |
| 5464 | 6403 |
| 5465 # ancient GNU ld didn't support --whole-archive et. al. | 6404 # ancient GNU ld didn't support --whole-archive et. al. |
| 5466 if eval "`$CC -print-prog-name=ld` --help 2>&1" | | 6405 if eval "`$CC -print-prog-name=ld` --help 2>&1" | |
| 5467 $GREP 'no-whole-archive' > /dev/null; then | 6406 $GREP 'no-whole-archive' > /dev/null; then |
| 5468 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$conve
nience '"$wlarc"'--no-whole-archive' | 6407 _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$conveni
ence '$wlarc'--no-whole-archive' |
| 5469 else | 6408 else |
| 5470 _LT_TAGVAR(whole_archive_flag_spec, $1)= | 6409 _LT_TAGVAR(whole_archive_flag_spec, $1)= |
| 5471 fi | 6410 fi |
| 5472 else | 6411 else |
| 5473 with_gnu_ld=no | 6412 with_gnu_ld=no |
| 5474 wlarc= | 6413 wlarc= |
| 5475 | 6414 |
| 5476 # A generic and very simple default shared library creation | 6415 # A generic and very simple default shared library creation |
| 5477 # command for GNU C++ for the case where it uses the native | 6416 # command for GNU C++ for the case where it uses the native |
| 5478 # linker, instead of GNU ld. If possible, this setting should | 6417 # linker, instead of GNU ld. If possible, this setting should |
| 5479 # overridden to take advantage of the native linker features on | 6418 # overridden to take advantage of the native linker features on |
| 5480 # the platform it is being used on. | 6419 # the platform it is being used on. |
| 5481 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $lib
objs $deplibs $postdep_objects $compiler_flags -o $lib' | 6420 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $lib
objs $deplibs $postdep_objects $compiler_flags -o $lib' |
| 5482 fi | 6421 fi |
| 5483 | 6422 |
| 5484 # Commands to make compiler produce verbose output that lists | 6423 # Commands to make compiler produce verbose output that lists |
| 5485 # what "hidden" libraries, object files and flags are used when | 6424 # what "hidden" libraries, object files and flags are used when |
| 5486 # linking a shared library. | 6425 # linking a shared library. |
| 5487 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $G
REP "\-L"' | 6426 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $G
REP -v "^Configured with:" | $GREP "\-L"' |
| 5488 | 6427 |
| 5489 else | 6428 else |
| 5490 GXX=no | 6429 GXX=no |
| 5491 with_gnu_ld=no | 6430 with_gnu_ld=no |
| 5492 wlarc= | 6431 wlarc= |
| 5493 fi | 6432 fi |
| 5494 | 6433 |
| 5495 # PORTME: fill in a description of your system's C++ link characteristics | 6434 # PORTME: fill in a description of your system's C++ link characteristics |
| 5496 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared librarie
s]) | 6435 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared librarie
s]) |
| 5497 _LT_TAGVAR(ld_shlibs, $1)=yes | 6436 _LT_TAGVAR(ld_shlibs, $1)=yes |
| 5498 case $host_os in | 6437 case $host_os in |
| 5499 aix3*) | 6438 aix3*) |
| 5500 # FIXME: insert proper C++ library support | 6439 # FIXME: insert proper C++ library support |
| 5501 _LT_TAGVAR(ld_shlibs, $1)=no | 6440 _LT_TAGVAR(ld_shlibs, $1)=no |
| 5502 ;; | 6441 ;; |
| 5503 aix[[4-9]]*) | 6442 aix[[4-9]]*) |
| 5504 if test "$host_cpu" = ia64; then | 6443 if test ia64 = "$host_cpu"; then |
| 5505 # On IA64, the linker does run time linking by default, so we don't | 6444 # On IA64, the linker does run time linking by default, so we don't |
| 5506 # have to do anything special. | 6445 # have to do anything special. |
| 5507 aix_use_runtimelinking=no | 6446 aix_use_runtimelinking=no |
| 5508 exp_sym_flag='-Bexport' | 6447 exp_sym_flag='-Bexport' |
| 5509 no_entry_flag="" | 6448 no_entry_flag= |
| 5510 else | 6449 else |
| 5511 aix_use_runtimelinking=no | 6450 aix_use_runtimelinking=no |
| 5512 | 6451 |
| 5513 # Test if we are trying to use run time linking or normal | 6452 # Test if we are trying to use run time linking or normal |
| 5514 # AIX style linking. If -brtl is somewhere in LDFLAGS, we | 6453 # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 5515 # need to do runtime linking. | 6454 # have runtime linking enabled, and use it for executables. |
| 6455 # For shared libraries, we enable/disable runtime linking |
| 6456 # depending on the kind of the shared library created - |
| 6457 # when "with_aix_soname,aix_use_runtimelinking" is: |
| 6458 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables |
| 6459 # "aix,yes" lib.so shared, rtl:yes, for executables |
| 6460 # lib.a static archive |
| 6461 # "both,no" lib.so.V(shr.o) shared, rtl:yes |
| 6462 # lib.a(lib.so.V) shared, rtl:no, for executables |
| 6463 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables |
| 6464 # lib.a(lib.so.V) shared, rtl:no |
| 6465 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables |
| 6466 # lib.a static archive |
| 5516 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) | 6467 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) |
| 5517 for ld_flag in $LDFLAGS; do | 6468 for ld_flag in $LDFLAGS; do |
| 5518 case $ld_flag in | 6469 case $ld_flag in |
| 5519 *-brtl*) | 6470 *-brtl*) |
| 5520 aix_use_runtimelinking=yes | 6471 aix_use_runtimelinking=yes |
| 5521 break | 6472 break |
| 5522 ;; | 6473 ;; |
| 5523 esac | 6474 esac |
| 5524 done | 6475 done |
| 6476 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then |
| 6477 # With aix-soname=svr4, we create the lib.so.V shared archives onl
y, |
| 6478 # so we don't have lib.a shared libs to link our executables. |
| 6479 # We have to force runtime linking in this case. |
| 6480 aix_use_runtimelinking=yes |
| 6481 LDFLAGS="$LDFLAGS -Wl,-brtl" |
| 6482 fi |
| 5525 ;; | 6483 ;; |
| 5526 esac | 6484 esac |
| 5527 | 6485 |
| 5528 exp_sym_flag='-bexport' | 6486 exp_sym_flag='-bexport' |
| 5529 no_entry_flag='-bnoentry' | 6487 no_entry_flag='-bnoentry' |
| 5530 fi | 6488 fi |
| 5531 | 6489 |
| 5532 # When large executables or shared objects are built, AIX ld can | 6490 # When large executables or shared objects are built, AIX ld can |
| 5533 # have problems creating the table of contents. If linking a library | 6491 # have problems creating the table of contents. If linking a library |
| 5534 # or program results in "error TOC overflow" add -mminimal-toc to | 6492 # or program results in "error TOC overflow" add -mminimal-toc to |
| 5535 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | 6493 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 5536 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | 6494 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 5537 | 6495 |
| 5538 _LT_TAGVAR(archive_cmds, $1)='' | 6496 _LT_TAGVAR(archive_cmds, $1)='' |
| 5539 _LT_TAGVAR(hardcode_direct, $1)=yes | 6497 _LT_TAGVAR(hardcode_direct, $1)=yes |
| 5540 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes | 6498 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes |
| 5541 _LT_TAGVAR(hardcode_libdir_separator, $1)=':' | 6499 _LT_TAGVAR(hardcode_libdir_separator, $1)=':' |
| 5542 _LT_TAGVAR(link_all_deplibs, $1)=yes | 6500 _LT_TAGVAR(link_all_deplibs, $1)=yes |
| 5543 _LT_TAGVAR(file_list_spec, $1)='${wl}-f,' | 6501 _LT_TAGVAR(file_list_spec, $1)='$wl-f,' |
| 6502 case $with_aix_soname,$aix_use_runtimelinking in |
| 6503 aix,*) ;;» # no import file |
| 6504 svr4,* | *,yes) # use import file |
| 6505 # The Import File defines what to hardcode. |
| 6506 _LT_TAGVAR(hardcode_direct, $1)=no |
| 6507 _LT_TAGVAR(hardcode_direct_absolute, $1)=no |
| 6508 ;; |
| 6509 esac |
| 5544 | 6510 |
| 5545 if test "$GXX" = yes; then | 6511 if test yes = "$GXX"; then |
| 5546 case $host_os in aix4.[[012]]|aix4.[[012]].*) | 6512 case $host_os in aix4.[[012]]|aix4.[[012]].*) |
| 5547 # We only want to do this on AIX 4.2 and lower, the check | 6513 # We only want to do this on AIX 4.2 and lower, the check |
| 5548 # below for broken collect2 doesn't work under 4.3+ | 6514 # below for broken collect2 doesn't work under 4.3+ |
| 5549 » collect2name=`${CC} -print-prog-name=collect2` | 6515 » collect2name=`$CC -print-prog-name=collect2` |
| 5550 if test -f "$collect2name" && | 6516 if test -f "$collect2name" && |
| 5551 strings "$collect2name" | $GREP resolve_lib_name >/dev/null | 6517 strings "$collect2name" | $GREP resolve_lib_name >/dev/null |
| 5552 then | 6518 then |
| 5553 # We have reworked collect2 | 6519 # We have reworked collect2 |
| 5554 : | 6520 : |
| 5555 else | 6521 else |
| 5556 # We have old collect2 | 6522 # We have old collect2 |
| 5557 _LT_TAGVAR(hardcode_direct, $1)=unsupported | 6523 _LT_TAGVAR(hardcode_direct, $1)=unsupported |
| 5558 # It fails to find uninstalled libraries when the uninstalled | 6524 # It fails to find uninstalled libraries when the uninstalled |
| 5559 # path is not listed in the libpath. Setting hardcode_minus_L | 6525 # path is not listed in the libpath. Setting hardcode_minus_L |
| 5560 # to unsupported forces relinking | 6526 # to unsupported forces relinking |
| 5561 _LT_TAGVAR(hardcode_minus_L, $1)=yes | 6527 _LT_TAGVAR(hardcode_minus_L, $1)=yes |
| 5562 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | 6528 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
| 5563 _LT_TAGVAR(hardcode_libdir_separator, $1)= | 6529 _LT_TAGVAR(hardcode_libdir_separator, $1)= |
| 5564 fi | 6530 fi |
| 5565 esac | 6531 esac |
| 5566 shared_flag='-shared' | 6532 shared_flag='-shared' |
| 5567 » if test "$aix_use_runtimelinking" = yes; then | 6533 » if test yes = "$aix_use_runtimelinking"; then |
| 5568 » shared_flag="$shared_flag "'${wl}-G' | 6534 » shared_flag=$shared_flag' $wl-G' |
| 5569 fi | 6535 fi |
| 6536 # Need to ensure runtime linking is disabled for the traditional |
| 6537 # shared library, or the linker may eventually find shared libraries |
| 6538 # /with/ Import File - we do not want to mix them. |
| 6539 shared_flag_aix='-shared' |
| 6540 shared_flag_svr4='-shared $wl-G' |
| 5570 else | 6541 else |
| 5571 # not using gcc | 6542 # not using gcc |
| 5572 if test "$host_cpu" = ia64; then | 6543 if test ia64 = "$host_cpu"; then |
| 5573 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | 6544 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 5574 # chokes on -Wl,-G. The following line is correct: | 6545 # chokes on -Wl,-G. The following line is correct: |
| 5575 shared_flag='-G' | 6546 shared_flag='-G' |
| 5576 else | 6547 else |
| 5577 » if test "$aix_use_runtimelinking" = yes; then | 6548 » if test yes = "$aix_use_runtimelinking"; then |
| 5578 » shared_flag='${wl}-G' | 6549 » shared_flag='$wl-G' |
| 5579 else | 6550 else |
| 5580 » shared_flag='${wl}-bM:SRE' | 6551 » shared_flag='$wl-bM:SRE' |
| 5581 fi | 6552 fi |
| 6553 shared_flag_aix='$wl-bM:SRE' |
| 6554 shared_flag_svr4='$wl-G' |
| 5582 fi | 6555 fi |
| 5583 fi | 6556 fi |
| 5584 | 6557 |
| 5585 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall' | 6558 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall' |
| 5586 # It seems that -bexpall does not export symbols beginning with | 6559 # It seems that -bexpall does not export symbols beginning with |
| 5587 # underscore (_), so it is better to generate a list of symbols to | 6560 # underscore (_), so it is better to generate a list of symbols to |
| 5588 # export. | 6561 # export. |
| 5589 _LT_TAGVAR(always_export_symbols, $1)=yes | 6562 _LT_TAGVAR(always_export_symbols, $1)=yes |
| 5590 if test "$aix_use_runtimelinking" = yes; then | 6563 » if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then |
| 5591 # Warning - without using the other runtime loading flags (-brtl), | 6564 # Warning - without using the other runtime loading flags (-brtl), |
| 5592 # -berok will link without error, but may produce a broken library. | 6565 # -berok will link without error, but may produce a broken library. |
| 5593 _LT_TAGVAR(allow_undefined_flag, $1)='-berok' | 6566 # The "-G" linker flag allows undefined symbols. |
| 6567 _LT_TAGVAR(no_undefined_flag, $1)='-bernotok' |
| 5594 # Determine the default libpath from the value encoded in an empty | 6568 # Determine the default libpath from the value encoded in an empty |
| 5595 # executable. | 6569 # executable. |
| 5596 _LT_SYS_MODULE_PATH_AIX | 6570 _LT_SYS_MODULE_PATH_AIX([$1]) |
| 5597 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$a
ix_libpath" | 6571 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix
_libpath" |
| 5598 | 6572 |
| 5599 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $li
bobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undef
ined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :;
fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | 6573 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $li
bobjs $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 |
| 5600 else | 6574 else |
| 5601 if test "$host_cpu" = ia64; then | 6575 if test ia64 = "$host_cpu"; then |
| 5602 » _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:
/lib' | 6576 » _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/l
ib' |
| 5603 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" | 6577 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" |
| 5604 » _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" | 6578 » _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_
objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allo
w_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols" |
| 5605 else | 6579 else |
| 5606 # Determine the default libpath from the value encoded in an | 6580 # Determine the default libpath from the value encoded in an |
| 5607 # empty executable. | 6581 # empty executable. |
| 5608 » _LT_SYS_MODULE_PATH_AIX | 6582 » _LT_SYS_MODULE_PATH_AIX([$1]) |
| 5609 » _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"
$aix_libpath" | 6583 » _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$a
ix_libpath" |
| 5610 # Warning - without using the other run time loading flags, | 6584 # Warning - without using the other run time loading flags, |
| 5611 # -berok will link without error, but may produce a broken library. | 6585 # -berok will link without error, but may produce a broken library. |
| 5612 » _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' | 6586 » _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok' |
| 5613 » _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' | 6587 » _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok' |
| 5614 » # Exported symbols can be pulled into shared objects from archives | 6588 » if test yes = "$with_gnu_ld"; then |
| 5615 » _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' | 6589 » # We only use this code for GNU lds that support --whole-archive. |
| 6590 » _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$conven
ience $wl--no-whole-archive' |
| 6591 » else |
| 6592 » # Exported symbols can be pulled into shared objects from archives |
| 6593 » _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' |
| 6594 » fi |
| 5616 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes | 6595 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes |
| 5617 » # This is similar to how AIX traditionally builds its shared | 6596 » _LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname
.d~$MKDIR $output_objdir/$realname.d' |
| 5618 » # libraries. | 6597 » # -brtl affects multiple linker settings, -berok does not and is ove
rridden later |
| 5619 » _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_
objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export
_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a
$output_objdir/$soname' | 6598 » compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e
"s%-brtl\\([[, ]]\\)%-berok\\1%g"`' |
| 6599 » if test svr4 != "$with_aix_soname"; then |
| 6600 » # This is similar to how AIX traditionally builds its shared |
| 6601 » # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. |
| 6602 » _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cm
ds, $1)"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs
$deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_und
efined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$real
name.d/$soname' |
| 6603 » fi |
| 6604 » if test aix != "$with_aix_soname"; then |
| 6605 » _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cm
ds, $1)"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_
member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$e
xport_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"; el
se func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/
$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_obj
dir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared
_archive_member_spec.imp' |
| 6606 » else |
| 6607 » # used by -dlpreopen to get the symbols |
| 6608 » _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cm
ds, $1)"'~$MV $output_objdir/$realname.d/$soname $output_objdir' |
| 6609 » fi |
| 6610 » _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds
, $1)"'~$RM -r $output_objdir/$realname.d' |
| 5620 fi | 6611 fi |
| 5621 fi | 6612 fi |
| 5622 ;; | 6613 ;; |
| 5623 | 6614 |
| 5624 beos*) | 6615 beos*) |
| 5625 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; the
n | 6616 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; the
n |
| 5626 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported | 6617 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported |
| 5627 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | 6618 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 5628 # support --undefined. This deserves some investigation. FIXME | 6619 # support --undefined. This deserves some investigation. FIXME |
| 5629 » _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler
_flags ${wl}-soname $wl$soname -o $lib' | 6620 » _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler
_flags $wl-soname $wl$soname -o $lib' |
| 5630 else | 6621 else |
| 5631 _LT_TAGVAR(ld_shlibs, $1)=no | 6622 _LT_TAGVAR(ld_shlibs, $1)=no |
| 5632 fi | 6623 fi |
| 5633 ;; | 6624 ;; |
| 5634 | 6625 |
| 5635 chorus*) | 6626 chorus*) |
| 5636 case $cc_basename in | 6627 case $cc_basename in |
| 5637 *) | 6628 *) |
| 5638 # FIXME: insert proper C++ library support | 6629 # FIXME: insert proper C++ library support |
| 5639 _LT_TAGVAR(ld_shlibs, $1)=no | 6630 _LT_TAGVAR(ld_shlibs, $1)=no |
| 5640 ;; | 6631 ;; |
| 5641 esac | 6632 esac |
| 5642 ;; | 6633 ;; |
| 5643 | 6634 |
| 5644 cygwin* | mingw* | pw32* | cegcc*) | 6635 cygwin* | mingw* | pw32* | cegcc*) |
| 5645 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, | 6636 » case $GXX,$cc_basename in |
| 5646 # as there is no search path for DLLs. | 6637 » ,cl* | no,cl*) |
| 5647 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | 6638 » # Native MSVC |
| 5648 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported | 6639 » # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 5649 _LT_TAGVAR(always_export_symbols, $1)=no | 6640 » # no search path for DLLs. |
| 5650 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes | 6641 » _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' |
| 6642 » _LT_TAGVAR(allow_undefined_flag, $1)=unsupported |
| 6643 » _LT_TAGVAR(always_export_symbols, $1)=yes |
| 6644 » _LT_TAGVAR(file_list_spec, $1)='@' |
| 6645 » # Tell ltmain to make .lib files, not .a files. |
| 6646 » libext=lib |
| 6647 » # Tell ltmain to make .dll files, not .so files. |
| 6648 » shrext_cmds=.dll |
| 6649 » # FIXME: Setting linknames here is a bad hack. |
| 6650 » _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $
compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~l
inknames=' |
| 6651 » _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols
]); then |
| 6652 cp "$export_symbols" "$output_objdir/$soname.def"; |
| 6653 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.ex
p"; |
| 6654 else |
| 6655 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_ob
jdir/$soname.exp; |
| 6656 fi~ |
| 6657 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs
"@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.
dll.lib"~ |
| 6658 linknames=' |
| 6659 » # The linker will not automatically build a static lib if we build a D
LL. |
| 6660 » # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' |
| 6661 » _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes |
| 6662 » # Don't use ranlib |
| 6663 » _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' |
| 6664 » _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~ |
| 6665 lt_tool_outputfile="@TOOL_OUTPUT@"~ |
| 6666 case $lt_outputfile in |
| 6667 *.exe|*.EXE) ;; |
| 6668 *) |
| 6669 lt_outputfile=$lt_outputfile.exe |
| 6670 lt_tool_outputfile=$lt_tool_outputfile.exe |
| 6671 ;; |
| 6672 esac~ |
| 6673 func_to_tool_file "$lt_outputfile"~ |
| 6674 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest";
then |
| 6675 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputres
ource:"$lt_tool_outputfile" || exit 1; |
| 6676 $RM "$lt_outputfile.manifest"; |
| 6677 fi' |
| 6678 » ;; |
| 6679 » *) |
| 6680 » # g++ |
| 6681 » # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, |
| 6682 » # as there is no search path for DLLs. |
| 6683 » _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
| 6684 » _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols' |
| 6685 » _LT_TAGVAR(allow_undefined_flag, $1)=unsupported |
| 6686 » _LT_TAGVAR(always_export_symbols, $1)=no |
| 6687 » _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes |
| 5651 | 6688 |
| 5652 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | 6689 » if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
| 5653 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $l
ibobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}
--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | 6690 » _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' |
| 5654 # If the export-symbols file already is a .def file (1st line | 6691 » # If the export-symbols file already is a .def file, use it as |
| 5655 # is EXPORTS), use it as is; otherwise, prepend... | 6692 » # is; otherwise, prepend EXPORTS... |
| 5656 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbol
s`" = xEXPORTS; then | 6693 » _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbo
ls]); then |
| 5657 » cp $export_symbols $output_objdir/$soname.def; | 6694 cp $export_symbols $output_objdir/$soname.def; |
| 5658 else | 6695 else |
| 5659 » echo EXPORTS > $output_objdir/$soname.def; | 6696 echo EXPORTS > $output_objdir/$soname.def; |
| 5660 » cat $export_symbols >> $output_objdir/$soname.def; | 6697 cat $export_symbols >> $output_objdir/$soname.def; |
| 5661 fi~ | 6698 fi~ |
| 5662 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libo
bjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--e
nable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | 6699 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $li
bobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--e
nable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 5663 else | 6700 » else |
| 5664 _LT_TAGVAR(ld_shlibs, $1)=no | 6701 » _LT_TAGVAR(ld_shlibs, $1)=no |
| 5665 fi | 6702 » fi |
| 5666 ;; | 6703 » ;; |
| 6704 » esac |
| 6705 » ;; |
| 5667 darwin* | rhapsody*) | 6706 darwin* | rhapsody*) |
| 5668 _LT_DARWIN_LINKER_FEATURES($1) | 6707 _LT_DARWIN_LINKER_FEATURES($1) |
| 5669 ;; | 6708 ;; |
| 5670 | 6709 |
| 6710 os2*) |
| 6711 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
| 6712 _LT_TAGVAR(hardcode_minus_L, $1)=yes |
| 6713 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported |
| 6714 shrext_cmds=.dll |
| 6715 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITI
NSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ |
| 6716 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ |
| 6717 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ |
| 6718 $ECHO EXPORTS >> $output_objdir/$libname.def~ |
| 6719 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.d
ef~ |
| 6720 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compil
er_flags $output_objdir/$libname.def~ |
| 6721 emximp -o $lib $output_objdir/$libname.def' |
| 6722 _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext
} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ |
| 6723 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ |
| 6724 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ |
| 6725 $ECHO EXPORTS >> $output_objdir/$libname.def~ |
| 6726 prefix_cmds="$SED"~ |
| 6727 if test EXPORTS = "`$SED 1q $export_symbols`"; then |
| 6728 prefix_cmds="$prefix_cmds -e 1d"; |
| 6729 fi~ |
| 6730 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ |
| 6731 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ |
| 6732 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compil
er_flags $output_objdir/$libname.def~ |
| 6733 emximp -o $lib $output_objdir/$libname.def' |
| 6734 _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${li
bname}_dll.a $output_objdir/$libname.def' |
| 6735 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes |
| 6736 ;; |
| 6737 |
| 5671 dgux*) | 6738 dgux*) |
| 5672 case $cc_basename in | 6739 case $cc_basename in |
| 5673 ec++*) | 6740 ec++*) |
| 5674 # FIXME: insert proper C++ library support | 6741 # FIXME: insert proper C++ library support |
| 5675 _LT_TAGVAR(ld_shlibs, $1)=no | 6742 _LT_TAGVAR(ld_shlibs, $1)=no |
| 5676 ;; | 6743 ;; |
| 5677 ghcx*) | 6744 ghcx*) |
| 5678 # Green Hills C++ Compiler | 6745 # Green Hills C++ Compiler |
| 5679 # FIXME: insert proper C++ library support | 6746 # FIXME: insert proper C++ library support |
| 5680 _LT_TAGVAR(ld_shlibs, $1)=no | 6747 _LT_TAGVAR(ld_shlibs, $1)=no |
| 5681 ;; | 6748 ;; |
| 5682 *) | 6749 *) |
| 5683 # FIXME: insert proper C++ library support | 6750 # FIXME: insert proper C++ library support |
| 5684 _LT_TAGVAR(ld_shlibs, $1)=no | 6751 _LT_TAGVAR(ld_shlibs, $1)=no |
| 5685 ;; | 6752 ;; |
| 5686 esac | 6753 esac |
| 5687 ;; | 6754 ;; |
| 5688 | 6755 |
| 5689 freebsd[[12]]*) | 6756 freebsd2.*) |
| 5690 # C++ shared libraries reported to be fairly broken before | 6757 # C++ shared libraries reported to be fairly broken before |
| 5691 # switch to ELF | 6758 # switch to ELF |
| 5692 _LT_TAGVAR(ld_shlibs, $1)=no | 6759 _LT_TAGVAR(ld_shlibs, $1)=no |
| 5693 ;; | 6760 ;; |
| 5694 | 6761 |
| 5695 freebsd-elf*) | 6762 freebsd-elf*) |
| 5696 _LT_TAGVAR(archive_cmds_need_lc, $1)=no | 6763 _LT_TAGVAR(archive_cmds_need_lc, $1)=no |
| 5697 ;; | 6764 ;; |
| 5698 | 6765 |
| 5699 freebsd* | dragonfly*) | 6766 freebsd* | dragonfly*) |
| 5700 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF | 6767 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
| 5701 # conventions | 6768 # conventions |
| 5702 _LT_TAGVAR(ld_shlibs, $1)=yes | 6769 _LT_TAGVAR(ld_shlibs, $1)=yes |
| 5703 ;; | 6770 ;; |
| 5704 | 6771 |
| 5705 gnu*) | 6772 haiku*) |
| 6773 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_fl
ags $wl-soname $wl$soname -o $lib' |
| 6774 _LT_TAGVAR(link_all_deplibs, $1)=yes |
| 5706 ;; | 6775 ;; |
| 5707 | 6776 |
| 5708 hpux9*) | 6777 hpux9*) |
| 5709 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' | 6778 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' |
| 5710 _LT_TAGVAR(hardcode_libdir_separator, $1)=: | 6779 _LT_TAGVAR(hardcode_libdir_separator, $1)=: |
| 5711 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | 6780 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' |
| 5712 _LT_TAGVAR(hardcode_direct, $1)=yes | 6781 _LT_TAGVAR(hardcode_direct, $1)=yes |
| 5713 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, | 6782 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, |
| 5714 # but as the default | 6783 # but as the default |
| 5715 # location of the library. | 6784 # location of the library. |
| 5716 | 6785 |
| 5717 case $cc_basename in | 6786 case $cc_basename in |
| 5718 CC*) | 6787 CC*) |
| 5719 # FIXME: insert proper C++ library support | 6788 # FIXME: insert proper C++ library support |
| 5720 _LT_TAGVAR(ld_shlibs, $1)=no | 6789 _LT_TAGVAR(ld_shlibs, $1)=no |
| 5721 ;; | 6790 ;; |
| 5722 aCC*) | 6791 aCC*) |
| 5723 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b ${wl
}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $dep
libs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $
output_objdir/$soname $lib' | 6792 _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' |
| 5724 # Commands to make compiler produce verbose output that lists | 6793 # Commands to make compiler produce verbose output that lists |
| 5725 # what "hidden" libraries, object files and flags are used when | 6794 # what "hidden" libraries, object files and flags are used when |
| 5726 # linking a shared library. | 6795 # linking a shared library. |
| 5727 # | 6796 # |
| 5728 # There doesn't appear to be a way to prevent this compiler from | 6797 # There doesn't appear to be a way to prevent this compiler from |
| 5729 # explicitly linking system object files so we need to strip them | 6798 # explicitly linking system object files so we need to strip them |
| 5730 # from the output so that they don't get included in the library | 6799 # from the output so that they don't get included in the library |
| 5731 # dependencies. | 6800 # dependencies. |
| 5732 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$obje
xt 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$o
bjext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$l
ist" | $Xsed' | 6801 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$obje
xt 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$ob
jext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_a
ll "$list"' |
| 5733 ;; | 6802 ;; |
| 5734 *) | 6803 *) |
| 5735 if test "$GXX" = yes; then | 6804 if test yes = "$GXX"; then |
| 5736 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shar
ed -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $prede
p_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir
/$soname = $lib || mv $output_objdir/$soname $lib' | 6805 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shar
ed -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $prede
p_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objd
ir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' |
| 5737 else | 6806 else |
| 5738 # FIXME: insert proper C++ library support | 6807 # FIXME: insert proper C++ library support |
| 5739 _LT_TAGVAR(ld_shlibs, $1)=no | 6808 _LT_TAGVAR(ld_shlibs, $1)=no |
| 5740 fi | 6809 fi |
| 5741 ;; | 6810 ;; |
| 5742 esac | 6811 esac |
| 5743 ;; | 6812 ;; |
| 5744 | 6813 |
| 5745 hpux10*|hpux11*) | 6814 hpux10*|hpux11*) |
| 5746 if test $with_gnu_ld = no; then | 6815 if test no = "$with_gnu_ld"; then |
| 5747 » _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' | 6816 » _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' |
| 5748 _LT_TAGVAR(hardcode_libdir_separator, $1)=: | 6817 _LT_TAGVAR(hardcode_libdir_separator, $1)=: |
| 5749 | 6818 |
| 5750 case $host_cpu in | 6819 case $host_cpu in |
| 5751 hppa*64*|ia64*) | 6820 hppa*64*|ia64*) |
| 5752 ;; | 6821 ;; |
| 5753 *) | 6822 *) |
| 5754 » _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | 6823 » _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' |
| 5755 ;; | 6824 ;; |
| 5756 esac | 6825 esac |
| 5757 fi | 6826 fi |
| 5758 case $host_cpu in | 6827 case $host_cpu in |
| 5759 hppa*64*|ia64*) | 6828 hppa*64*|ia64*) |
| 5760 _LT_TAGVAR(hardcode_direct, $1)=no | 6829 _LT_TAGVAR(hardcode_direct, $1)=no |
| 5761 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | 6830 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 5762 ;; | 6831 ;; |
| 5763 *) | 6832 *) |
| 5764 _LT_TAGVAR(hardcode_direct, $1)=yes | 6833 _LT_TAGVAR(hardcode_direct, $1)=yes |
| 5765 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes | 6834 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes |
| 5766 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, | 6835 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, |
| 5767 # but as the default | 6836 # but as the default |
| 5768 # location of the library. | 6837 # location of the library. |
| 5769 ;; | 6838 ;; |
| 5770 esac | 6839 esac |
| 5771 | 6840 |
| 5772 case $cc_basename in | 6841 case $cc_basename in |
| 5773 CC*) | 6842 CC*) |
| 5774 # FIXME: insert proper C++ library support | 6843 # FIXME: insert proper C++ library support |
| 5775 _LT_TAGVAR(ld_shlibs, $1)=no | 6844 _LT_TAGVAR(ld_shlibs, $1)=no |
| 5776 ;; | 6845 ;; |
| 5777 aCC*) | 6846 aCC*) |
| 5778 case $host_cpu in | 6847 case $host_cpu in |
| 5779 hppa*64*) | 6848 hppa*64*) |
| 5780 » _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $li
b $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | 6849 » _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $p
redep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 5781 ;; | 6850 ;; |
| 5782 ia64*) | 6851 ia64*) |
| 5783 » _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+
nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compi
ler_flags' | 6852 » _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefa
ultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_fl
ags' |
| 5784 ;; | 6853 ;; |
| 5785 *) | 6854 *) |
| 5786 » _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+
b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_object
s $compiler_flags' | 6855 » _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$
install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compi
ler_flags' |
| 5787 ;; | 6856 ;; |
| 5788 esac | 6857 esac |
| 5789 # Commands to make compiler produce verbose output that lists | 6858 # Commands to make compiler produce verbose output that lists |
| 5790 # what "hidden" libraries, object files and flags are used when | 6859 # what "hidden" libraries, object files and flags are used when |
| 5791 # linking a shared library. | 6860 # linking a shared library. |
| 5792 # | 6861 # |
| 5793 # There doesn't appear to be a way to prevent this compiler from | 6862 # There doesn't appear to be a way to prevent this compiler from |
| 5794 # explicitly linking system object files so we need to strip them | 6863 # explicitly linking system object files so we need to strip them |
| 5795 # from the output so that they don't get included in the library | 6864 # from the output so that they don't get included in the library |
| 5796 # dependencies. | 6865 # dependencies. |
| 5797 » output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$obje
xt 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$ob
jext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$li
st" | $Xsed' | 6866 » output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$obje
xt 2>&1) | $GREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$obj
ext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_al
l "$list"' |
| 5798 ;; | 6867 ;; |
| 5799 *) | 6868 *) |
| 5800 » if test "$GXX" = yes; then | 6869 » if test yes = "$GXX"; then |
| 5801 » if test $with_gnu_ld = no; then | 6870 » if test no = "$with_gnu_ld"; then |
| 5802 case $host_cpu in | 6871 case $host_cpu in |
| 5803 hppa*64*) | 6872 hppa*64*) |
| 5804 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${
wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $c
ompiler_flags' | 6873 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC $w
l+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compi
ler_flags' |
| 5805 ;; | 6874 ;; |
| 5806 ia64*) | 6875 ia64*) |
| 5807 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${
wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplib
s $postdep_objects $compiler_flags' | 6876 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_fla
g $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs
$postdep_objects $compiler_flags' |
| 5808 ;; | 6877 ;; |
| 5809 *) | 6878 *) |
| 5810 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${
wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs
$deplibs $postdep_objects $compiler_flags' | 6879 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_fla
g $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $de
plibs $postdep_objects $compiler_flags' |
| 5811 ;; | 6880 ;; |
| 5812 esac | 6881 esac |
| 5813 fi | 6882 fi |
| 5814 else | 6883 else |
| 5815 # FIXME: insert proper C++ library support | 6884 # FIXME: insert proper C++ library support |
| 5816 _LT_TAGVAR(ld_shlibs, $1)=no | 6885 _LT_TAGVAR(ld_shlibs, $1)=no |
| 5817 fi | 6886 fi |
| 5818 ;; | 6887 ;; |
| 5819 esac | 6888 esac |
| 5820 ;; | 6889 ;; |
| 5821 | 6890 |
| 5822 interix[[3-9]]*) | 6891 interix[[3-9]]*) |
| 5823 _LT_TAGVAR(hardcode_direct, $1)=no | 6892 _LT_TAGVAR(hardcode_direct, $1)=no |
| 5824 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | 6893 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 5825 » _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' | 6894 » _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' |
| 5826 » _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | 6895 » _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' |
| 5827 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | 6896 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 5828 # Instead, shared libraries are loaded at an image base (0x10000000 by | 6897 # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 5829 # default) and relocated if they conflict, which is a slow very memory | 6898 # default) and relocated if they conflict, which is a slow very memory |
| 5830 # consuming and fragmenting process. To avoid this, we pick a random, | 6899 # consuming and fragmenting process. To avoid this, we pick a random, |
| 5831 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | 6900 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 5832 # time. Moving up from 0x10000000 also allows more sbrk(2) space. | 6901 # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 5833 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $c
ompiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \*
262144 + 1342177280` -o $lib' | 6902 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $c
ompiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262
144 + 1342177280` -o $lib' |
| 5834 » _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$outp
ut_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' | 6903 » _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s|^|_|" $export_symbols >$outp
ut_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' |
| 5835 ;; | 6904 ;; |
| 5836 irix5* | irix6*) | 6905 irix5* | irix6*) |
| 5837 case $cc_basename in | 6906 case $cc_basename in |
| 5838 CC*) | 6907 CC*) |
| 5839 # SGI C++ | 6908 # SGI C++ |
| 5840 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_obj
ects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n
"$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${ou
tput_objdir}/so_locations -o $lib' | 6909 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_obj
ects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n
"$verstring" && func_echo_all "-set_version $verstring"` -update_registry $outp
ut_objdir/so_locations -o $lib' |
| 5841 | 6910 |
| 5842 # Archives containing C++ object files must be created using | 6911 # Archives containing C++ object files must be created using |
| 5843 # "CC -ar", where "CC" is the IRIX C++ compiler. This is | 6912 # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
| 5844 # necessary to make sure instantiated templates are included | 6913 # necessary to make sure instantiated templates are included |
| 5845 # in the archive. | 6914 # in the archive. |
| 5846 _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs
' | 6915 _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs
' |
| 5847 ;; | 6916 ;; |
| 5848 *) | 6917 *) |
| 5849 » if test "$GXX" = yes; then | 6918 » if test yes = "$GXX"; then |
| 5850 » if test "$with_gnu_ld" = no; then | 6919 » if test no = "$with_gnu_ld"; then |
| 5851 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_obje
cts $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname
`test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${
wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | 6920 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $p
redep_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' |
| 5852 else | 6921 else |
| 5853 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_obje
cts $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname
`test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o
$lib' | 6922 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $p
redep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$
soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -
o $lib' |
| 5854 fi | 6923 fi |
| 5855 fi | 6924 fi |
| 5856 _LT_TAGVAR(link_all_deplibs, $1)=yes | 6925 _LT_TAGVAR(link_all_deplibs, $1)=yes |
| 5857 ;; | 6926 ;; |
| 5858 esac | 6927 esac |
| 5859 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | 6928 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' |
| 5860 _LT_TAGVAR(hardcode_libdir_separator, $1)=: | 6929 _LT_TAGVAR(hardcode_libdir_separator, $1)=: |
| 5861 _LT_TAGVAR(inherit_rpath, $1)=yes | 6930 _LT_TAGVAR(inherit_rpath, $1)=yes |
| 5862 ;; | 6931 ;; |
| 5863 | 6932 |
| 5864 linux* | k*bsd*-gnu | kopensolaris*-gnu) | 6933 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
| 5865 case $cc_basename in | 6934 case $cc_basename in |
| 5866 KCC*) | 6935 KCC*) |
| 5867 # Kuck and Associates, Inc. (KAI) C++ Compiler | 6936 # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 5868 | 6937 |
| 5869 # KCC will only create a shared library if the output file | 6938 # KCC will only create a shared library if the output file |
| 5870 # ends with ".so" (or ".sl" for HP-UX), so rename the library | 6939 # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 5871 # to its proper name (with version) after linking. | 6940 # to its proper name (with version) after linking. |
| 5872 » _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\
''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tem
pext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compil
er_flags --soname $soname -o \$templib; mv \$templib $lib' | 6941 » _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\
''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$temp
ext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler
_flags --soname $soname -o \$templib; mv \$templib $lib' |
| 5873 » _LT_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SE
D -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' | 6942 » _LT_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SE
D -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s
/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $c
ompiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symb
ols; mv \$templib $lib' |
| 5874 # Commands to make compiler produce verbose output that lists | 6943 # Commands to make compiler produce verbose output that lists |
| 5875 # what "hidden" libraries, object files and flags are used when | 6944 # what "hidden" libraries, object files and flags are used when |
| 5876 # linking a shared library. | 6945 # linking a shared library. |
| 5877 # | 6946 # |
| 5878 # There doesn't appear to be a way to prevent this compiler from | 6947 # There doesn't appear to be a way to prevent this compiler from |
| 5879 # explicitly linking system object files so we need to strip them | 6948 # explicitly linking system object files so we need to strip them |
| 5880 # from the output so that they don't get included in the library | 6949 # from the output so that they don't get included in the library |
| 5881 # dependencies. | 6950 # dependencies. |
| 5882 » 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";; *.$obj
ext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' | 6951 » 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";; *.$obje
xt);; *) list="$list $z";;esac; done; func_echo_all "$list"' |
| 5883 | 6952 |
| 5884 » _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' | 6953 » _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' |
| 5885 » _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' | 6954 » _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' |
| 5886 | 6955 |
| 5887 # Archives containing C++ object files must be created using | 6956 # Archives containing C++ object files must be created using |
| 5888 # "CC -Bstatic", where "CC" is the KAI C++ compiler. | 6957 # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| 5889 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' | 6958 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' |
| 5890 ;; | 6959 ;; |
| 5891 icpc* | ecpc* ) | 6960 icpc* | ecpc* ) |
| 5892 # Intel C++ | 6961 # Intel C++ |
| 5893 with_gnu_ld=yes | 6962 with_gnu_ld=yes |
| 5894 # version 8.0 and above of icpc choke on multiply defined symbols | 6963 # version 8.0 and above of icpc choke on multiply defined symbols |
| 5895 # if we add $predep_objects and $postdep_objects, however 7.1 and | 6964 # if we add $predep_objects and $postdep_objects, however 7.1 and |
| 5896 # earlier do not add the objects themselves. | 6965 # earlier do not add the objects themselves. |
| 5897 case `$CC -V 2>&1` in | 6966 case `$CC -V 2>&1` in |
| 5898 *"Version 7."*) | 6967 *"Version 7."*) |
| 5899 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libob
js $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | 6968 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libob
js $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' |
| 5900 » » _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' | 6969 » » _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects
$libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-re
tain-symbols-file $wl$export_symbols -o $lib' |
| 5901 ;; | 6970 ;; |
| 5902 *) # Version 8.0 or newer | 6971 *) # Version 8.0 or newer |
| 5903 tmp_idyn= | 6972 tmp_idyn= |
| 5904 case $host_cpu in | 6973 case $host_cpu in |
| 5905 ia64*) tmp_idyn=' -i_dynamic';; | 6974 ia64*) tmp_idyn=' -i_dynamic';; |
| 5906 esac | 6975 esac |
| 5907 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs
$deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 6976 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs
$deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 5908 » » _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $l
ibobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-fil
e $wl$export_symbols -o $lib' | 6977 » » _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $l
ibobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $w
l$export_symbols -o $lib' |
| 5909 ;; | 6978 ;; |
| 5910 esac | 6979 esac |
| 5911 _LT_TAGVAR(archive_cmds_need_lc, $1)=no | 6980 _LT_TAGVAR(archive_cmds_need_lc, $1)=no |
| 5912 » _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' | 6981 » _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' |
| 5913 » _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' | 6982 » _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' |
| 5914 » _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$conven
ience ${wl}--no-whole-archive' | 6983 » _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenie
nce $wl--no-whole-archive' |
| 5915 ;; | 6984 ;; |
| 5916 pgCC* | pgcpp*) | 6985 pgCC* | pgcpp*) |
| 5917 # Portland Group C++ compiler | 6986 # Portland Group C++ compiler |
| 5918 case `$CC -V` in | 6987 case `$CC -V` in |
| 5919 » *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*) | 6988 » *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*) |
| 5920 _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~ | 6989 _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~ |
| 5921 » » rm -rf $tpldir~ | 6990 rm -rf $tpldir~ |
| 5922 » » $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs
$compile_deplibs~ | 6991 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs
$compile_deplibs~ |
| 5923 » » compile_command="$compile_command `find $tpldir -name \*.o | $NL
2SP`"' | 6992 compile_command="$compile_command `find $tpldir -name \*.o | sort
| $NL2SP`"' |
| 5924 _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~ | 6993 _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~ |
| 5925 » » rm -rf $tpldir~ | 6994 rm -rf $tpldir~ |
| 5926 » » $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_d
eplibs~ | 6995 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_d
eplibs~ |
| 5927 » » $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*
.o | $NL2SP`~ | 6996 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*
.o | sort | $NL2SP`~ |
| 5928 » » $RANLIB $oldlib' | 6997 $RANLIB $oldlib' |
| 5929 _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~ | 6998 _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~ |
| 5930 » » rm -rf $tpldir~ | 6999 rm -rf $tpldir~ |
| 5931 » » $CC --prelink_objects --instantiation_dir $tpldir $predep_object
s $libobjs $deplibs $convenience $postdep_objects~ | 7000 $CC --prelink_objects --instantiation_dir $tpldir $predep_object
s $libobjs $deplibs $convenience $postdep_objects~ |
| 5932 » » $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $t
pldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$s
oname -o $lib' | 7001 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $t
pldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $w
l$soname -o $lib' |
| 5933 _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~ | 7002 _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~ |
| 5934 » » rm -rf $tpldir~ | 7003 rm -rf $tpldir~ |
| 5935 » » $CC --prelink_objects --instantiation_dir $tpldir $predep_object
s $libobjs $deplibs $convenience $postdep_objects~ | 7004 $CC --prelink_objects --instantiation_dir $tpldir $predep_object
s $libobjs $deplibs $convenience $postdep_objects~ |
| 5936 » » $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $t
pldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$s
oname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' | 7005 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $t
pldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $w
l$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' |
| 5937 ;; | 7006 ;; |
| 5938 » *) # Version 6 will use weak symbols | 7007 » *) # Version 6 and above use weak symbols |
| 5939 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_object
s $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -
o $lib' | 7008 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_object
s $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $l
ib' |
| 5940 » _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep
_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$s
oname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' | 7009 » _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep
_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$sonam
e $wl-retain-symbols-file $wl$export_symbols -o $lib' |
| 5941 ;; | 7010 ;; |
| 5942 esac | 7011 esac |
| 5943 | 7012 |
| 5944 » _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir
' | 7013 » _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl--rpath $wl$libdir' |
| 5945 » _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' | 7014 » _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' |
| 5946 » _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for co
nv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenie
nce,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | 7015 » _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv
in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenienc
e,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' |
| 5947 ;; | 7016 ;; |
| 5948 cxx*) | 7017 cxx*) |
| 5949 # Compaq C++ | 7018 # Compaq C++ |
| 5950 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $
deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | 7019 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $
deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' |
| 5951 » _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $li
bobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib
${wl}-retain-symbols-file $wl$export_symbols' | 7020 » _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $li
bobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib $
wl-retain-symbols-file $wl$export_symbols' |
| 5952 | 7021 |
| 5953 runpath_var=LD_RUN_PATH | 7022 runpath_var=LD_RUN_PATH |
| 5954 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' | 7023 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' |
| 5955 _LT_TAGVAR(hardcode_libdir_separator, $1)=: | 7024 _LT_TAGVAR(hardcode_libdir_separator, $1)=: |
| 5956 | 7025 |
| 5957 # Commands to make compiler produce verbose output that lists | 7026 # Commands to make compiler produce verbose output that lists |
| 5958 # what "hidden" libraries, object files and flags are used when | 7027 # what "hidden" libraries, object files and flags are used when |
| 5959 # linking a shared library. | 7028 # linking a shared library. |
| 5960 # | 7029 # |
| 5961 # There doesn't appear to be a way to prevent this compiler from | 7030 # There doesn't appear to be a way to prevent this compiler from |
| 5962 # explicitly linking system object files so we need to strip them | 7031 # explicitly linking system object files so we need to strip them |
| 5963 # from the output so that they don't get included in the library | 7032 # from the output so that they don't get included in the library |
| 5964 # dependencies. | 7033 # dependencies. |
| 5965 » output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$
objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\
)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objex
t) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list"
| $Xsed' | 7034 » 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.$obj
ext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_al
l "X$list" | $Xsed' |
| 5966 ;; | 7035 ;; |
| 5967 » xl*) | 7036 » xl* | mpixl* | bgxl*) |
| 5968 # IBM XL 8.0 on PPC, with GNU ld | 7037 # IBM XL 8.0 on PPC, with GNU ld |
| 5969 » _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | 7038 » _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' |
| 5970 » _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' | 7039 » _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' |
| 5971 » _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $comp
iler_flags ${wl}-soname $wl$soname -o $lib' | 7040 » _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $comp
iler_flags $wl-soname $wl$soname -o $lib' |
| 5972 » if test "x$supports_anon_versioning" = xyes; then | 7041 » if test yes = "$supports_anon_versioning"; then |
| 5973 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_ob
jdir/$libname.ver~ | 7042 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_ob
jdir/$libname.ver~ |
| 5974 » » cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$
libname.ver~ | 7043 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$
libname.ver~ |
| 5975 » » echo "local: *; };" >> $output_objdir/$libname.ver~ | 7044 echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 5976 » » $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $w
l$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | 7045 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$
soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' |
| 5977 fi | 7046 fi |
| 5978 ;; | 7047 ;; |
| 5979 *) | 7048 *) |
| 5980 case `$CC -V 2>&1 | sed 5q` in | 7049 case `$CC -V 2>&1 | sed 5q` in |
| 5981 *Sun\ C*) | 7050 *Sun\ C*) |
| 5982 # Sun C++ 5.9 | 7051 # Sun C++ 5.9 |
| 5983 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' | 7052 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' |
| 5984 » _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$son
ame -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | 7053 » _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$sonam
e -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 5985 » _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' | 7054 » _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G$allow_undefined_flag -
h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_fl
ags $wl-retain-symbols-file $wl$export_symbols' |
| 5986 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' | 7055 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
| 5987 » _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_
convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenie
nce=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whol
e-archive' | 7056 » _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`new_co
nvenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenienc
e=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-
whole-archive' |
| 5988 _LT_TAGVAR(compiler_needs_object, $1)=yes | 7057 _LT_TAGVAR(compiler_needs_object, $1)=yes |
| 5989 | 7058 |
| 5990 # Not sure whether something based on | 7059 # Not sure whether something based on |
| 5991 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | 7060 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 |
| 5992 # would be better. | 7061 # would be better. |
| 5993 » output_verbose_link_cmd='echo' | 7062 » output_verbose_link_cmd='func_echo_all' |
| 5994 | 7063 |
| 5995 # Archives containing C++ object files must be created using | 7064 # Archives containing C++ object files must be created using |
| 5996 # "CC -xar", where "CC" is the Sun C++ compiler. This is | 7065 # "CC -xar", where "CC" is the Sun C++ compiler. This is |
| 5997 # necessary to make sure instantiated templates are included | 7066 # necessary to make sure instantiated templates are included |
| 5998 # in the archive. | 7067 # in the archive. |
| 5999 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' | 7068 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' |
| 6000 ;; | 7069 ;; |
| 6001 esac | 7070 esac |
| 6002 ;; | 7071 ;; |
| 6003 esac | 7072 esac |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6035 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | 7104 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 6036 fi | 7105 fi |
| 6037 # Workaround some broken pre-1.5 toolchains | 7106 # Workaround some broken pre-1.5 toolchains |
| 6038 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 |
$GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' | 7107 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 |
$GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
| 6039 ;; | 7108 ;; |
| 6040 | 7109 |
| 6041 *nto* | *qnx*) | 7110 *nto* | *qnx*) |
| 6042 _LT_TAGVAR(ld_shlibs, $1)=yes | 7111 _LT_TAGVAR(ld_shlibs, $1)=yes |
| 6043 ;; | 7112 ;; |
| 6044 | 7113 |
| 6045 openbsd2*) | 7114 openbsd* | bitrig*) |
| 6046 # C++ shared libraries are fairly broken | |
| 6047 » _LT_TAGVAR(ld_shlibs, $1)=no | |
| 6048 » ;; | |
| 6049 | |
| 6050 openbsd*) | |
| 6051 if test -f /usr/libexec/ld.so; then | 7115 if test -f /usr/libexec/ld.so; then |
| 6052 _LT_TAGVAR(hardcode_direct, $1)=yes | 7116 _LT_TAGVAR(hardcode_direct, $1)=yes |
| 6053 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | 7117 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 6054 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes | 7118 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes |
| 6055 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $l
ibobjs $deplibs $postdep_objects $compiler_flags -o $lib' | 7119 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $l
ibobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
| 6056 » _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' | 7120 » _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' |
| 6057 » if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_o
s-$host_cpu" = "openbsd2.8-powerpc"; then | 7121 » if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then |
| 6058 » _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_o
bjects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-f
ile,$export_symbols -o $lib' | 7122 » _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_o
bjects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-fil
e,$export_symbols -o $lib' |
| 6059 » _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | 7123 » _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' |
| 6060 » _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$con
venience '"$wlarc"'--no-whole-archive' | 7124 » _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$conve
nience '$wlarc'--no-whole-archive' |
| 6061 fi | 7125 fi |
| 6062 » output_verbose_link_cmd=echo | 7126 » output_verbose_link_cmd=func_echo_all |
| 6063 else | 7127 else |
| 6064 _LT_TAGVAR(ld_shlibs, $1)=no | 7128 _LT_TAGVAR(ld_shlibs, $1)=no |
| 6065 fi | 7129 fi |
| 6066 ;; | 7130 ;; |
| 6067 | 7131 |
| 6068 osf3* | osf4* | osf5*) | 7132 osf3* | osf4* | osf5*) |
| 6069 case $cc_basename in | 7133 case $cc_basename in |
| 6070 KCC*) | 7134 KCC*) |
| 6071 # Kuck and Associates, Inc. (KAI) C++ Compiler | 7135 # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 6072 | 7136 |
| 6073 # KCC will only create a shared library if the output file | 7137 # KCC will only create a shared library if the output file |
| 6074 # ends with ".so" (or ".sl" for HP-UX), so rename the library | 7138 # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 6075 # to its proper name (with version) after linking. | 7139 # to its proper name (with version) after linking. |
| 6076 » _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\
''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${t
empext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $comp
iler_flags --soname $soname -o \$templib; mv \$templib $lib' | 7140 » _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\
''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$te
mpext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compil
er_flags --soname $soname -o \$templib; mv \$templib $lib' |
| 6077 | 7141 |
| 6078 » _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' | 7142 » _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' |
| 6079 _LT_TAGVAR(hardcode_libdir_separator, $1)=: | 7143 _LT_TAGVAR(hardcode_libdir_separator, $1)=: |
| 6080 | 7144 |
| 6081 # Archives containing C++ object files must be created using | 7145 # Archives containing C++ object files must be created using |
| 6082 # the KAI C++ compiler. | 7146 # the KAI C++ compiler. |
| 6083 case $host in | 7147 case $host in |
| 6084 osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $
oldobjs' ;; | 7148 osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $
oldobjs' ;; |
| 6085 *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;; | 7149 *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;; |
| 6086 esac | 7150 esac |
| 6087 ;; | 7151 ;; |
| 6088 RCC*) | 7152 RCC*) |
| 6089 # Rational C++ 2.4.1 | 7153 # Rational C++ 2.4.1 |
| 6090 # FIXME: insert proper C++ library support | 7154 # FIXME: insert proper C++ library support |
| 6091 _LT_TAGVAR(ld_shlibs, $1)=no | 7155 _LT_TAGVAR(ld_shlibs, $1)=no |
| 6092 ;; | 7156 ;; |
| 6093 cxx*) | 7157 cxx*) |
| 6094 case $host in | 7158 case $host in |
| 6095 osf3*) | 7159 osf3*) |
| 6096 » _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved $
{wl}\*' | 7160 » _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl
\*' |
| 6097 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag}
$predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname
$soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed`
-update_registry ${output_objdir}/so_locations -o $lib' | 7161 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $
predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $so
name `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -updat
e_registry $output_objdir/so_locations -o $lib' |
| 6098 » _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$lib
dir' | 7162 » _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' |
| 6099 ;; | 7163 ;; |
| 6100 *) | 7164 *) |
| 6101 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' | 7165 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' |
| 6102 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag}
$predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -sonam
e $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -up
date_registry ${output_objdir}/so_locations -o $lib' | 7166 » _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"` -updat
e_registry $output_objdir/so_locations -o $lib' |
| 6103 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbo
ls`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ | 7167 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbo
ls`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
| 6104 » echo "-hidden">> $lib.exp~ | 7168 echo "-hidden">> $lib.exp~ |
| 6105 » $CC -shared$allow_undefined_flag $predep_objects $libobjs $dep
libs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$li
b.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -updat
e_registry ${output_objdir}/so_locations -o $lib~ | 7169 $CC -shared$allow_undefined_flag $predep_objects $libobjs $dep
libs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.ex
p `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $o
utput_objdir/so_locations -o $lib~ |
| 6106 » $RM $lib.exp' | 7170 $RM $lib.exp' |
| 6107 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' | 7171 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' |
| 6108 ;; | 7172 ;; |
| 6109 esac | 7173 esac |
| 6110 | 7174 |
| 6111 _LT_TAGVAR(hardcode_libdir_separator, $1)=: | 7175 _LT_TAGVAR(hardcode_libdir_separator, $1)=: |
| 6112 | 7176 |
| 6113 # Commands to make compiler produce verbose output that lists | 7177 # Commands to make compiler produce verbose output that lists |
| 6114 # what "hidden" libraries, object files and flags are used when | 7178 # what "hidden" libraries, object files and flags are used when |
| 6115 # linking a shared library. | 7179 # linking a shared library. |
| 6116 # | 7180 # |
| 6117 # There doesn't appear to be a way to prevent this compiler from | 7181 # There doesn't appear to be a way to prevent this compiler from |
| 6118 # explicitly linking system object files so we need to strip them | 7182 # explicitly linking system object files so we need to strip them |
| 6119 # from the output so that they don't get included in the library | 7183 # from the output so that they don't get included in the library |
| 6120 # dependencies. | 7184 # dependencies. |
| 6121 » output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$
objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed
-e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in
conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done
; $ECHO "X$list" | $Xsed' | 7185 » 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; do
ne; func_echo_all "$list"' |
| 6122 ;; | 7186 ;; |
| 6123 *) | 7187 *) |
| 6124 » if test "$GXX" = yes && test "$with_gnu_ld" = no; then | 7188 » if test yes,no = "$GXX,$with_gnu_ld"; then |
| 6125 » _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${w
l}\*' | 7189 » _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*
' |
| 6126 case $host in | 7190 case $host in |
| 6127 osf3*) | 7191 osf3*) |
| 6128 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_un
defined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags
${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${
wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations
-o $lib' | 7192 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $allow_und
efined_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' |
| 6129 ;; | 7193 ;; |
| 6130 *) | 7194 *) |
| 6131 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_un
defined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags
${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_
version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so
_locations -o $lib' | 7195 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib
$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compil
er_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_locatio
ns -o $lib' |
| 6132 ;; | 7196 ;; |
| 6133 esac | 7197 esac |
| 6134 | 7198 |
| 6135 » _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdi
r' | 7199 » _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' |
| 6136 _LT_TAGVAR(hardcode_libdir_separator, $1)=: | 7200 _LT_TAGVAR(hardcode_libdir_separator, $1)=: |
| 6137 | 7201 |
| 6138 # Commands to make compiler produce verbose output that lists | 7202 # Commands to make compiler produce verbose output that lists |
| 6139 # what "hidden" libraries, object files and flags are used when | 7203 # what "hidden" libraries, object files and flags are used when |
| 6140 # linking a shared library. | 7204 # linking a shared library. |
| 6141 » output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2
>&1 | $GREP "\-L"' | 7205 » output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2
>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' |
| 6142 | 7206 |
| 6143 else | 7207 else |
| 6144 # FIXME: insert proper C++ library support | 7208 # FIXME: insert proper C++ library support |
| 6145 _LT_TAGVAR(ld_shlibs, $1)=no | 7209 _LT_TAGVAR(ld_shlibs, $1)=no |
| 6146 fi | 7210 fi |
| 6147 ;; | 7211 ;; |
| 6148 esac | 7212 esac |
| 6149 ;; | 7213 ;; |
| 6150 | 7214 |
| 6151 psos*) | 7215 psos*) |
| (...skipping 15 matching lines...) Expand all Loading... |
| 6167 ;; | 7231 ;; |
| 6168 *) | 7232 *) |
| 6169 # FIXME: insert proper C++ library support | 7233 # FIXME: insert proper C++ library support |
| 6170 _LT_TAGVAR(ld_shlibs, $1)=no | 7234 _LT_TAGVAR(ld_shlibs, $1)=no |
| 6171 ;; | 7235 ;; |
| 6172 esac | 7236 esac |
| 6173 ;; | 7237 ;; |
| 6174 | 7238 |
| 6175 solaris*) | 7239 solaris*) |
| 6176 case $cc_basename in | 7240 case $cc_basename in |
| 6177 CC*) | 7241 CC* | sunCC*) |
| 6178 # Sun C++ 4.2, 5.x and Centerline C++ | 7242 # Sun C++ 4.2, 5.x and Centerline C++ |
| 6179 _LT_TAGVAR(archive_cmds_need_lc,$1)=yes | 7243 _LT_TAGVAR(archive_cmds_need_lc,$1)=yes |
| 6180 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' | 7244 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' |
| 6181 » _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$sona
me -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | 7245 » _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname
-o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 6182 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat
$export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $l
ib.exp~ | 7246 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat
$export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $l
ib.exp~ |
| 6183 » $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' | 7247 $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $p
redep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' |
| 6184 | 7248 |
| 6185 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' | 7249 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
| 6186 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | 7250 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 6187 case $host_os in | 7251 case $host_os in |
| 6188 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; | 7252 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; |
| 6189 *) | 7253 *) |
| 6190 # The compiler driver will combine and reorder linker options, | 7254 # The compiler driver will combine and reorder linker options, |
| 6191 » » # but understands `-z linker_flag'. | 7255 » » # but understands '-z linker_flag'. |
| 6192 # Supported since Solaris 2.6 (maybe 2.5.1?) | 7256 # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 6193 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenien
ce -z defaultextract' | 7257 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenien
ce -z defaultextract' |
| 6194 ;; | 7258 ;; |
| 6195 esac | 7259 esac |
| 6196 _LT_TAGVAR(link_all_deplibs, $1)=yes | 7260 _LT_TAGVAR(link_all_deplibs, $1)=yes |
| 6197 | 7261 |
| 6198 » output_verbose_link_cmd='echo' | 7262 » output_verbose_link_cmd='func_echo_all' |
| 6199 | 7263 |
| 6200 # Archives containing C++ object files must be created using | 7264 # Archives containing C++ object files must be created using |
| 6201 # "CC -xar", where "CC" is the Sun C++ compiler. This is | 7265 # "CC -xar", where "CC" is the Sun C++ compiler. This is |
| 6202 # necessary to make sure instantiated templates are included | 7266 # necessary to make sure instantiated templates are included |
| 6203 # in the archive. | 7267 # in the archive. |
| 6204 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' | 7268 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' |
| 6205 ;; | 7269 ;; |
| 6206 gcx*) | 7270 gcx*) |
| 6207 # Green Hills C++ Compiler | 7271 # Green Hills C++ Compiler |
| 6208 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $
deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | 7272 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $
deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' |
| 6209 | 7273 |
| 6210 # The C++ compiler must be used to create the archive. | 7274 # The C++ compiler must be used to create the archive. |
| 6211 _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $
oldobjs' | 7275 _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $
oldobjs' |
| 6212 ;; | 7276 ;; |
| 6213 *) | 7277 *) |
| 6214 # GNU C++ compiler with Solaris linker | 7278 # GNU C++ compiler with Solaris linker |
| 6215 » if test "$GXX" = yes && test "$with_gnu_ld" = no; then | 7279 » if test yes,no = "$GXX,$with_gnu_ld"; then |
| 6216 » _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' | 7280 » _LT_TAGVAR(no_undefined_flag, $1)=' $wl-z ${wl}defs' |
| 6217 if $CC --version | $GREP -v '^2\.7' > /dev/null; then | 7281 if $CC --version | $GREP -v '^2\.7' > /dev/null; then |
| 6218 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $pr
edep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$sona
me -o $lib' | 7282 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $p
redep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$sonam
e -o $lib' |
| 6219 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp
~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >
> $lib.exp~ | 7283 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp
~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >
> $lib.exp~ |
| 6220 » » $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_obje
cts $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' | 7284 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$so
name -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~
$RM $lib.exp' |
| 6221 | 7285 |
| 6222 # Commands to make compiler produce verbose output that lists | 7286 # Commands to make compiler produce verbose output that lists |
| 6223 # what "hidden" libraries, object files and flags are used when | 7287 # what "hidden" libraries, object files and flags are used when |
| 6224 # linking a shared library. | 7288 # linking a shared library. |
| 6225 » output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext
2>&1 | $GREP "\-L"' | 7289 » output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext
2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' |
| 6226 else | 7290 else |
| 6227 » # g++ 2.7 appears to require `-G' NOT `-shared' on this | 7291 » # g++ 2.7 appears to require '-G' NOT '-shared' on this |
| 6228 # platform. | 7292 # platform. |
| 6229 » _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_
objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o
$lib' | 7293 » _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $predep_objects $
libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' |
| 6230 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp
~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >
> $lib.exp~ | 7294 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp
~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >
> $lib.exp~ |
| 6231 » » $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $
libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' | 7295 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $p
redep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' |
| 6232 | 7296 |
| 6233 # Commands to make compiler produce verbose output that lists | 7297 # Commands to make compiler produce verbose output that lists |
| 6234 # what "hidden" libraries, object files and flags are used when | 7298 # what "hidden" libraries, object files and flags are used when |
| 6235 # linking a shared library. | 7299 # linking a shared library. |
| 6236 » output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1
| $GREP "\-L"' | 7300 » output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1
| $GREP -v "^Configured with:" | $GREP "\-L"' |
| 6237 fi | 7301 fi |
| 6238 | 7302 |
| 6239 » _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' | 7303 » _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $wl$libdir' |
| 6240 case $host_os in | 7304 case $host_os in |
| 6241 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; | 7305 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; |
| 6242 *) | 7306 *) |
| 6243 » » _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextra
ct$convenience ${wl}-z ${wl}defaultextract' | 7307 » » _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract
$convenience $wl-z ${wl}defaultextract' |
| 6244 ;; | 7308 ;; |
| 6245 esac | 7309 esac |
| 6246 fi | 7310 fi |
| 6247 ;; | 7311 ;; |
| 6248 esac | 7312 esac |
| 6249 ;; | 7313 ;; |
| 6250 | 7314 |
| 6251 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | s
co3.2v5.0.[[024]]*) | 7315 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | s
co3.2v5.0.[[024]]*) |
| 6252 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' | 7316 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text' |
| 6253 _LT_TAGVAR(archive_cmds_need_lc, $1)=no | 7317 _LT_TAGVAR(archive_cmds_need_lc, $1)=no |
| 6254 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | 7318 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 6255 runpath_var='LD_RUN_PATH' | 7319 runpath_var='LD_RUN_PATH' |
| 6256 | 7320 |
| 6257 case $cc_basename in | 7321 case $cc_basename in |
| 6258 CC*) | 7322 CC*) |
| 6259 » _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs
$deplibs $compiler_flags' | 7323 » _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $d
eplibs $compiler_flags' |
| 6260 » _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symb
ols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | 7324 » _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbol
s $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 6261 ;; | 7325 ;; |
| 6262 *) | 7326 *) |
| 6263 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $lib
objs $deplibs $compiler_flags' | 7327 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libob
js $deplibs $compiler_flags' |
| 6264 » _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export
_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | 7328 » _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_s
ymbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 6265 ;; | 7329 ;; |
| 6266 esac | 7330 esac |
| 6267 ;; | 7331 ;; |
| 6268 | 7332 |
| 6269 sysv5* | sco3.2v5* | sco5v6*) | 7333 sysv5* | sco3.2v5* | sco5v6*) |
| 6270 » # Note: We can NOT use -z defs as we might desire, because we do not | 7334 » # Note: We CANNOT use -z defs as we might desire, because we do not |
| 6271 # link with -lc, and that would cause any symbols used from libc to | 7335 # link with -lc, and that would cause any symbols used from libc to |
| 6272 # always be unresolved, which means just about no library would | 7336 # always be unresolved, which means just about no library would |
| 6273 # ever link correctly. If we're not using GNU ld we use -z text | 7337 # ever link correctly. If we're not using GNU ld we use -z text |
| 6274 # though, which does catch some bad symbols but isn't as heavy-handed | 7338 # though, which does catch some bad symbols but isn't as heavy-handed |
| 6275 # as -z defs. | 7339 # as -z defs. |
| 6276 » _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' | 7340 » _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text' |
| 6277 » _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' | 7341 » _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs' |
| 6278 _LT_TAGVAR(archive_cmds_need_lc, $1)=no | 7342 _LT_TAGVAR(archive_cmds_need_lc, $1)=no |
| 6279 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | 7343 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 6280 » _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir' | 7344 » _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir' |
| 6281 _LT_TAGVAR(hardcode_libdir_separator, $1)=':' | 7345 _LT_TAGVAR(hardcode_libdir_separator, $1)=':' |
| 6282 _LT_TAGVAR(link_all_deplibs, $1)=yes | 7346 _LT_TAGVAR(link_all_deplibs, $1)=yes |
| 6283 » _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' | 7347 » _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport' |
| 6284 runpath_var='LD_RUN_PATH' | 7348 runpath_var='LD_RUN_PATH' |
| 6285 | 7349 |
| 6286 case $cc_basename in | 7350 case $cc_basename in |
| 6287 CC*) | 7351 CC*) |
| 6288 » _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobj
s $deplibs $compiler_flags' | 7352 » _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs
$deplibs $compiler_flags' |
| 6289 » _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_sy
mbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | 7353 » _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symb
ols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 7354 » _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~ |
| 7355 '"$_LT_TAGVAR(old_archive_cmds, $1)" |
| 7356 » _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~ |
| 7357 '"$_LT_TAGVAR(reload_cmds, $1)" |
| 6290 ;; | 7358 ;; |
| 6291 *) | 7359 *) |
| 6292 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $l
ibobjs $deplibs $compiler_flags' | 7360 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $lib
objs $deplibs $compiler_flags' |
| 6293 » _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$expo
rt_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | 7361 » _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export
_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 6294 ;; | 7362 ;; |
| 6295 esac | 7363 esac |
| 6296 ;; | 7364 ;; |
| 6297 | 7365 |
| 6298 tandem*) | 7366 tandem*) |
| 6299 case $cc_basename in | 7367 case $cc_basename in |
| 6300 NCC*) | 7368 NCC*) |
| 6301 # NonStop-UX NCC 3.20 | 7369 # NonStop-UX NCC 3.20 |
| 6302 # FIXME: insert proper C++ library support | 7370 # FIXME: insert proper C++ library support |
| 6303 _LT_TAGVAR(ld_shlibs, $1)=no | 7371 _LT_TAGVAR(ld_shlibs, $1)=no |
| (...skipping 10 matching lines...) Expand all Loading... |
| 6314 _LT_TAGVAR(ld_shlibs, $1)=no | 7382 _LT_TAGVAR(ld_shlibs, $1)=no |
| 6315 ;; | 7383 ;; |
| 6316 | 7384 |
| 6317 *) | 7385 *) |
| 6318 # FIXME: insert proper C++ library support | 7386 # FIXME: insert proper C++ library support |
| 6319 _LT_TAGVAR(ld_shlibs, $1)=no | 7387 _LT_TAGVAR(ld_shlibs, $1)=no |
| 6320 ;; | 7388 ;; |
| 6321 esac | 7389 esac |
| 6322 | 7390 |
| 6323 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) | 7391 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) |
| 6324 test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no | 7392 test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no |
| 6325 | 7393 |
| 6326 _LT_TAGVAR(GCC, $1)="$GXX" | 7394 _LT_TAGVAR(GCC, $1)=$GXX |
| 6327 _LT_TAGVAR(LD, $1)="$LD" | 7395 _LT_TAGVAR(LD, $1)=$LD |
| 6328 | 7396 |
| 6329 ## CAVEAT EMPTOR: | 7397 ## CAVEAT EMPTOR: |
| 6330 ## There is no encapsulation within the following macros, do not change | 7398 ## There is no encapsulation within the following macros, do not change |
| 6331 ## the running order or otherwise move them around unless you know exactly | 7399 ## the running order or otherwise move them around unless you know exactly |
| 6332 ## what you are doing... | 7400 ## what you are doing... |
| 6333 _LT_SYS_HIDDEN_LIBDEPS($1) | 7401 _LT_SYS_HIDDEN_LIBDEPS($1) |
| 6334 _LT_COMPILER_PIC($1) | 7402 _LT_COMPILER_PIC($1) |
| 6335 _LT_COMPILER_C_O($1) | 7403 _LT_COMPILER_C_O($1) |
| 6336 _LT_COMPILER_FILE_LOCKS($1) | 7404 _LT_COMPILER_FILE_LOCKS($1) |
| 6337 _LT_LINKER_SHLIBS($1) | 7405 _LT_LINKER_SHLIBS($1) |
| 6338 _LT_SYS_DYNAMIC_LINKER($1) | 7406 _LT_SYS_DYNAMIC_LINKER($1) |
| 6339 _LT_LINKER_HARDCODE_LIBPATH($1) | 7407 _LT_LINKER_HARDCODE_LIBPATH($1) |
| 6340 | 7408 |
| 6341 _LT_CONFIG($1) | 7409 _LT_CONFIG($1) |
| 6342 fi # test -n "$compiler" | 7410 fi # test -n "$compiler" |
| 6343 | 7411 |
| 6344 CC=$lt_save_CC | 7412 CC=$lt_save_CC |
| 7413 CFLAGS=$lt_save_CFLAGS |
| 6345 LDCXX=$LD | 7414 LDCXX=$LD |
| 6346 LD=$lt_save_LD | 7415 LD=$lt_save_LD |
| 6347 GCC=$lt_save_GCC | 7416 GCC=$lt_save_GCC |
| 6348 with_gnu_ld=$lt_save_with_gnu_ld | 7417 with_gnu_ld=$lt_save_with_gnu_ld |
| 6349 lt_cv_path_LDCXX=$lt_cv_path_LD | 7418 lt_cv_path_LDCXX=$lt_cv_path_LD |
| 6350 lt_cv_path_LD=$lt_save_path_LD | 7419 lt_cv_path_LD=$lt_save_path_LD |
| 6351 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld | 7420 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
| 6352 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld | 7421 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
| 6353 fi # test "$_lt_caught_CXX_error" != yes | 7422 fi # test yes != "$_lt_caught_CXX_error" |
| 6354 | 7423 |
| 6355 AC_LANG_POP | 7424 AC_LANG_POP |
| 6356 ])# _LT_LANG_CXX_CONFIG | 7425 ])# _LT_LANG_CXX_CONFIG |
| 6357 | 7426 |
| 6358 | 7427 |
| 7428 # _LT_FUNC_STRIPNAME_CNF |
| 7429 # ---------------------- |
| 7430 # func_stripname_cnf prefix suffix name |
| 7431 # strip PREFIX and SUFFIX off of NAME. |
| 7432 # PREFIX and SUFFIX must not contain globbing or regex special |
| 7433 # characters, hashes, percent signs, but SUFFIX may contain a leading |
| 7434 # dot (in which case that matches only a dot). |
| 7435 # |
| 7436 # This function is identical to the (non-XSI) version of func_stripname, |
| 7437 # except this one can be used by m4 code that may be executed by configure, |
| 7438 # rather than the libtool script. |
| 7439 m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl |
| 7440 AC_REQUIRE([_LT_DECL_SED]) |
| 7441 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH]) |
| 7442 func_stripname_cnf () |
| 7443 { |
| 7444 case @S|@2 in |
| 7445 .*) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%\\\\@S|@2\$%%"`
;; |
| 7446 *) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%@S|@2\$%%"`;; |
| 7447 esac |
| 7448 } # func_stripname_cnf |
| 7449 ])# _LT_FUNC_STRIPNAME_CNF |
| 7450 |
| 7451 |
| 6359 # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME]) | 7452 # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME]) |
| 6360 # --------------------------------- | 7453 # --------------------------------- |
| 6361 # Figure out "hidden" library dependencies from verbose | 7454 # Figure out "hidden" library dependencies from verbose |
| 6362 # compiler output when linking a shared library. | 7455 # compiler output when linking a shared library. |
| 6363 # Parse the compiler output and extract the necessary | 7456 # Parse the compiler output and extract the necessary |
| 6364 # objects, libraries and library flags. | 7457 # objects, libraries and library flags. |
| 6365 m4_defun([_LT_SYS_HIDDEN_LIBDEPS], | 7458 m4_defun([_LT_SYS_HIDDEN_LIBDEPS], |
| 6366 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl | 7459 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
| 7460 AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl |
| 6367 # Dependencies to place before and after the object being linked: | 7461 # Dependencies to place before and after the object being linked: |
| 6368 _LT_TAGVAR(predep_objects, $1)= | 7462 _LT_TAGVAR(predep_objects, $1)= |
| 6369 _LT_TAGVAR(postdep_objects, $1)= | 7463 _LT_TAGVAR(postdep_objects, $1)= |
| 6370 _LT_TAGVAR(predeps, $1)= | 7464 _LT_TAGVAR(predeps, $1)= |
| 6371 _LT_TAGVAR(postdeps, $1)= | 7465 _LT_TAGVAR(postdeps, $1)= |
| 6372 _LT_TAGVAR(compiler_lib_search_path, $1)= | 7466 _LT_TAGVAR(compiler_lib_search_path, $1)= |
| 6373 | 7467 |
| 6374 dnl we can't use the lt_simple_compile_test_code here, | 7468 dnl we can't use the lt_simple_compile_test_code here, |
| 6375 dnl because it contains code intended for an executable, | 7469 dnl because it contains code intended for an executable, |
| 6376 dnl not a library. It's possible we should let each | 7470 dnl not a library. It's possible we should let each |
| (...skipping 29 matching lines...) Expand all Loading... |
| 6406 end | 7500 end |
| 6407 _LT_EOF | 7501 _LT_EOF |
| 6408 ], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF | 7502 ], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF |
| 6409 public class foo { | 7503 public class foo { |
| 6410 private int a; | 7504 private int a; |
| 6411 public void bar (void) { | 7505 public void bar (void) { |
| 6412 a = 0; | 7506 a = 0; |
| 6413 } | 7507 } |
| 6414 }; | 7508 }; |
| 6415 _LT_EOF | 7509 _LT_EOF |
| 7510 ], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF |
| 7511 package foo |
| 7512 func foo() { |
| 7513 } |
| 7514 _LT_EOF |
| 6416 ]) | 7515 ]) |
| 7516 |
| 7517 _lt_libdeps_save_CFLAGS=$CFLAGS |
| 7518 case "$CC $CFLAGS " in #( |
| 7519 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; |
| 7520 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; |
| 7521 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; |
| 7522 esac |
| 7523 |
| 6417 dnl Parse the compiler output and extract the necessary | 7524 dnl Parse the compiler output and extract the necessary |
| 6418 dnl objects, libraries and library flags. | 7525 dnl objects, libraries and library flags. |
| 6419 if AC_TRY_EVAL(ac_compile); then | 7526 if AC_TRY_EVAL(ac_compile); then |
| 6420 # Parse the compiler output and extract the necessary | 7527 # Parse the compiler output and extract the necessary |
| 6421 # objects, libraries and library flags. | 7528 # objects, libraries and library flags. |
| 6422 | 7529 |
| 6423 # Sentinel used to keep track of whether or not we are before | 7530 # Sentinel used to keep track of whether or not we are before |
| 6424 # the conftest object file. | 7531 # the conftest object file. |
| 6425 pre_test_object_deps_done=no | 7532 pre_test_object_deps_done=no |
| 6426 | 7533 |
| 6427 for p in `eval "$output_verbose_link_cmd"`; do | 7534 for p in `eval "$output_verbose_link_cmd"`; do |
| 6428 case $p in | 7535 case $prev$p in |
| 6429 | 7536 |
| 6430 -L* | -R* | -l*) | 7537 -L* | -R* | -l*) |
| 6431 # Some compilers place space between "-{L,R}" and the path. | 7538 # Some compilers place space between "-{L,R}" and the path. |
| 6432 # Remove the space. | 7539 # Remove the space. |
| 6433 if test $p = "-L" || | 7540 if test x-L = "$p" || |
| 6434 test $p = "-R"; then | 7541 test x-R = "$p"; then |
| 6435 prev=$p | 7542 prev=$p |
| 6436 continue | 7543 continue |
| 6437 else | |
| 6438 prev= | |
| 6439 fi | 7544 fi |
| 6440 | 7545 |
| 6441 if test "$pre_test_object_deps_done" = no; then | 7546 # Expand the sysroot to ease extracting the directories later. |
| 6442 » case $p in | 7547 if test -z "$prev"; then |
| 6443 » -L* | -R*) | 7548 case $p in |
| 7549 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result
;; |
| 7550 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result
;; |
| 7551 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result
;; |
| 7552 esac |
| 7553 fi |
| 7554 case $p in |
| 7555 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;
; |
| 7556 esac |
| 7557 if test no = "$pre_test_object_deps_done"; then |
| 7558 » case $prev in |
| 7559 » -L | -R) |
| 6444 # Internal compiler library paths should come after those | 7560 # Internal compiler library paths should come after those |
| 6445 # provided the user. The postdeps already come after the | 7561 # provided the user. The postdeps already come after the |
| 6446 # user supplied libs so there is no need to process them. | 7562 # user supplied libs so there is no need to process them. |
| 6447 if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then | 7563 if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then |
| 6448 » _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}" | 7564 » _LT_TAGVAR(compiler_lib_search_path, $1)=$prev$p |
| 6449 else | 7565 else |
| 6450 » _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib
_search_path, $1)} ${prev}${p}" | 7566 » _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib
_search_path, $1)} $prev$p" |
| 6451 fi | 7567 fi |
| 6452 ;; | 7568 ;; |
| 6453 # The "-l" case would never come before the object being | 7569 # The "-l" case would never come before the object being |
| 6454 # linked, so don't bother handling this case. | 7570 # linked, so don't bother handling this case. |
| 6455 esac | 7571 esac |
| 6456 else | 7572 else |
| 6457 if test -z "$_LT_TAGVAR(postdeps, $1)"; then | 7573 if test -z "$_LT_TAGVAR(postdeps, $1)"; then |
| 6458 » _LT_TAGVAR(postdeps, $1)="${prev}${p}" | 7574 » _LT_TAGVAR(postdeps, $1)=$prev$p |
| 6459 else | 7575 else |
| 6460 » _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}" | 7576 » _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} $prev$p" |
| 6461 fi | 7577 fi |
| 6462 fi | 7578 fi |
| 7579 prev= |
| 6463 ;; | 7580 ;; |
| 6464 | 7581 |
| 7582 *.lto.$objext) ;; # Ignore GCC LTO objects |
| 6465 *.$objext) | 7583 *.$objext) |
| 6466 # This assumes that the test object file only shows up | 7584 # This assumes that the test object file only shows up |
| 6467 # once in the compiler output. | 7585 # once in the compiler output. |
| 6468 if test "$p" = "conftest.$objext"; then | 7586 if test "$p" = "conftest.$objext"; then |
| 6469 pre_test_object_deps_done=yes | 7587 pre_test_object_deps_done=yes |
| 6470 continue | 7588 continue |
| 6471 fi | 7589 fi |
| 6472 | 7590 |
| 6473 if test "$pre_test_object_deps_done" = no; then | 7591 if test no = "$pre_test_object_deps_done"; then |
| 6474 if test -z "$_LT_TAGVAR(predep_objects, $1)"; then | 7592 if test -z "$_LT_TAGVAR(predep_objects, $1)"; then |
| 6475 » _LT_TAGVAR(predep_objects, $1)="$p" | 7593 » _LT_TAGVAR(predep_objects, $1)=$p |
| 6476 else | 7594 else |
| 6477 _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p" | 7595 _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p" |
| 6478 fi | 7596 fi |
| 6479 else | 7597 else |
| 6480 if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then | 7598 if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then |
| 6481 » _LT_TAGVAR(postdep_objects, $1)="$p" | 7599 » _LT_TAGVAR(postdep_objects, $1)=$p |
| 6482 else | 7600 else |
| 6483 _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p" | 7601 _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p" |
| 6484 fi | 7602 fi |
| 6485 fi | 7603 fi |
| 6486 ;; | 7604 ;; |
| 6487 | 7605 |
| 6488 *) ;; # Ignore the rest. | 7606 *) ;; # Ignore the rest. |
| 6489 | 7607 |
| 6490 esac | 7608 esac |
| 6491 done | 7609 done |
| 6492 | 7610 |
| 6493 # Clean up. | 7611 # Clean up. |
| 6494 rm -f a.out a.exe | 7612 rm -f a.out a.exe |
| 6495 else | 7613 else |
| 6496 echo "libtool.m4: error: problem compiling $1 test program" | 7614 echo "libtool.m4: error: problem compiling $1 test program" |
| 6497 fi | 7615 fi |
| 6498 | 7616 |
| 6499 $RM -f confest.$objext | 7617 $RM -f confest.$objext |
| 7618 CFLAGS=$_lt_libdeps_save_CFLAGS |
| 6500 | 7619 |
| 6501 # PORTME: override above test on systems where it is broken | 7620 # PORTME: override above test on systems where it is broken |
| 6502 m4_if([$1], [CXX], | 7621 m4_if([$1], [CXX], |
| 6503 [case $host_os in | 7622 [case $host_os in |
| 6504 interix[[3-9]]*) | 7623 interix[[3-9]]*) |
| 6505 # Interix 3.5 installs completely hosed .la files for C++, so rather than | 7624 # Interix 3.5 installs completely hosed .la files for C++, so rather than |
| 6506 # hack all around it, let's just trust "g++" to DTRT. | 7625 # hack all around it, let's just trust "g++" to DTRT. |
| 6507 _LT_TAGVAR(predep_objects,$1)= | 7626 _LT_TAGVAR(predep_objects,$1)= |
| 6508 _LT_TAGVAR(postdep_objects,$1)= | 7627 _LT_TAGVAR(postdep_objects,$1)= |
| 6509 _LT_TAGVAR(postdeps,$1)= | 7628 _LT_TAGVAR(postdeps,$1)= |
| 6510 ;; | 7629 ;; |
| 6511 | |
| 6512 linux*) | |
| 6513 case `$CC -V 2>&1 | sed 5q` in | |
| 6514 *Sun\ C*) | |
| 6515 # Sun C++ 5.9 | |
| 6516 | |
| 6517 # The more standards-conforming stlport4 library is | |
| 6518 # incompatible with the Cstd library. Avoid specifying | |
| 6519 # it if it's in CXXFLAGS. Ignore libCrun as | |
| 6520 # -library=stlport4 depends on it. | |
| 6521 case " $CXX $CXXFLAGS " in | |
| 6522 *" -library=stlport4 "*) | |
| 6523 solaris_use_stlport4=yes | |
| 6524 ;; | |
| 6525 esac | |
| 6526 | |
| 6527 if test "$solaris_use_stlport4" != yes; then | |
| 6528 _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' | |
| 6529 fi | |
| 6530 ;; | |
| 6531 esac | |
| 6532 ;; | |
| 6533 | |
| 6534 solaris*) | |
| 6535 case $cc_basename in | |
| 6536 CC*) | |
| 6537 # The more standards-conforming stlport4 library is | |
| 6538 # incompatible with the Cstd library. Avoid specifying | |
| 6539 # it if it's in CXXFLAGS. Ignore libCrun as | |
| 6540 # -library=stlport4 depends on it. | |
| 6541 case " $CXX $CXXFLAGS " in | |
| 6542 *" -library=stlport4 "*) | |
| 6543 solaris_use_stlport4=yes | |
| 6544 ;; | |
| 6545 esac | |
| 6546 | |
| 6547 # Adding this requires a known-good setup of shared libraries for | |
| 6548 # Sun compiler versions before 5.6, else PIC objects from an old | |
| 6549 # archive will be linked into the output, leading to subtle bugs. | |
| 6550 if test "$solaris_use_stlport4" != yes; then | |
| 6551 _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' | |
| 6552 fi | |
| 6553 ;; | |
| 6554 esac | |
| 6555 ;; | |
| 6556 esac | 7630 esac |
| 6557 ]) | 7631 ]) |
| 6558 | 7632 |
| 6559 case " $_LT_TAGVAR(postdeps, $1) " in | 7633 case " $_LT_TAGVAR(postdeps, $1) " in |
| 6560 *" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;; | 7634 *" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;; |
| 6561 esac | 7635 esac |
| 6562 _LT_TAGVAR(compiler_lib_search_dirs, $1)= | 7636 _LT_TAGVAR(compiler_lib_search_dirs, $1)= |
| 6563 if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then | 7637 if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then |
| 6564 _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_sear
ch_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` | 7638 _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_sear
ch_path, $1)}" | $SED -e 's! -L! !g' -e 's!^ !!'` |
| 6565 fi | 7639 fi |
| 6566 _LT_TAGDECL([], [compiler_lib_search_dirs], [1], | 7640 _LT_TAGDECL([], [compiler_lib_search_dirs], [1], |
| 6567 [The directories searched by this compiler when creating a shared library]) | 7641 [The directories searched by this compiler when creating a shared library]) |
| 6568 _LT_TAGDECL([], [predep_objects], [1], | 7642 _LT_TAGDECL([], [predep_objects], [1], |
| 6569 [Dependencies to place before and after the objects being linked to | 7643 [Dependencies to place before and after the objects being linked to |
| 6570 create a shared library]) | 7644 create a shared library]) |
| 6571 _LT_TAGDECL([], [postdep_objects], [1]) | 7645 _LT_TAGDECL([], [postdep_objects], [1]) |
| 6572 _LT_TAGDECL([], [predeps], [1]) | 7646 _LT_TAGDECL([], [predeps], [1]) |
| 6573 _LT_TAGDECL([], [postdeps], [1]) | 7647 _LT_TAGDECL([], [postdeps], [1]) |
| 6574 _LT_TAGDECL([], [compiler_lib_search_path], [1], | 7648 _LT_TAGDECL([], [compiler_lib_search_path], [1], |
| 6575 [The library search path used internally by the compiler when linking | 7649 [The library search path used internally by the compiler when linking |
| 6576 a shared library]) | 7650 a shared library]) |
| 6577 ])# _LT_SYS_HIDDEN_LIBDEPS | 7651 ])# _LT_SYS_HIDDEN_LIBDEPS |
| 6578 | 7652 |
| 6579 | 7653 |
| 6580 # _LT_PROG_F77 | |
| 6581 # ------------ | |
| 6582 # Since AC_PROG_F77 is broken, in that it returns the empty string | |
| 6583 # if there is no fortran compiler, we have our own version here. | |
| 6584 m4_defun([_LT_PROG_F77], | |
| 6585 [ | |
| 6586 pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes]) | |
| 6587 AC_PROG_F77 | |
| 6588 if test -z "$F77" || test "X$F77" = "Xno"; then | |
| 6589 _lt_disable_F77=yes | |
| 6590 fi | |
| 6591 popdef([AC_MSG_ERROR]) | |
| 6592 ])# _LT_PROG_F77 | |
| 6593 | |
| 6594 dnl aclocal-1.4 backwards compatibility: | |
| 6595 dnl AC_DEFUN([_LT_PROG_F77], []) | |
| 6596 | |
| 6597 | |
| 6598 # _LT_LANG_F77_CONFIG([TAG]) | 7654 # _LT_LANG_F77_CONFIG([TAG]) |
| 6599 # -------------------------- | 7655 # -------------------------- |
| 6600 # Ensure that the configuration variables for a Fortran 77 compiler are | 7656 # Ensure that the configuration variables for a Fortran 77 compiler are |
| 6601 # suitably defined. These variables are subsequently used by _LT_CONFIG | 7657 # suitably defined. These variables are subsequently used by _LT_CONFIG |
| 6602 # to write the compiler configuration to `libtool'. | 7658 # to write the compiler configuration to 'libtool'. |
| 6603 m4_defun([_LT_LANG_F77_CONFIG], | 7659 m4_defun([_LT_LANG_F77_CONFIG], |
| 6604 [AC_REQUIRE([_LT_PROG_F77])dnl | 7660 [AC_LANG_PUSH(Fortran 77) |
| 6605 AC_LANG_PUSH(Fortran 77) | 7661 if test -z "$F77" || test no = "$F77"; then |
| 7662 _lt_disable_F77=yes |
| 7663 fi |
| 6606 | 7664 |
| 6607 _LT_TAGVAR(archive_cmds_need_lc, $1)=no | 7665 _LT_TAGVAR(archive_cmds_need_lc, $1)=no |
| 6608 _LT_TAGVAR(allow_undefined_flag, $1)= | 7666 _LT_TAGVAR(allow_undefined_flag, $1)= |
| 6609 _LT_TAGVAR(always_export_symbols, $1)=no | 7667 _LT_TAGVAR(always_export_symbols, $1)=no |
| 6610 _LT_TAGVAR(archive_expsym_cmds, $1)= | 7668 _LT_TAGVAR(archive_expsym_cmds, $1)= |
| 6611 _LT_TAGVAR(export_dynamic_flag_spec, $1)= | 7669 _LT_TAGVAR(export_dynamic_flag_spec, $1)= |
| 6612 _LT_TAGVAR(hardcode_direct, $1)=no | 7670 _LT_TAGVAR(hardcode_direct, $1)=no |
| 6613 _LT_TAGVAR(hardcode_direct_absolute, $1)=no | 7671 _LT_TAGVAR(hardcode_direct_absolute, $1)=no |
| 6614 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= | 7672 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= |
| 6615 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= | |
| 6616 _LT_TAGVAR(hardcode_libdir_separator, $1)= | 7673 _LT_TAGVAR(hardcode_libdir_separator, $1)= |
| 6617 _LT_TAGVAR(hardcode_minus_L, $1)=no | 7674 _LT_TAGVAR(hardcode_minus_L, $1)=no |
| 6618 _LT_TAGVAR(hardcode_automatic, $1)=no | 7675 _LT_TAGVAR(hardcode_automatic, $1)=no |
| 6619 _LT_TAGVAR(inherit_rpath, $1)=no | 7676 _LT_TAGVAR(inherit_rpath, $1)=no |
| 6620 _LT_TAGVAR(module_cmds, $1)= | 7677 _LT_TAGVAR(module_cmds, $1)= |
| 6621 _LT_TAGVAR(module_expsym_cmds, $1)= | 7678 _LT_TAGVAR(module_expsym_cmds, $1)= |
| 6622 _LT_TAGVAR(link_all_deplibs, $1)=unknown | 7679 _LT_TAGVAR(link_all_deplibs, $1)=unknown |
| 6623 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds | 7680 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds |
| 7681 _LT_TAGVAR(reload_flag, $1)=$reload_flag |
| 7682 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds |
| 6624 _LT_TAGVAR(no_undefined_flag, $1)= | 7683 _LT_TAGVAR(no_undefined_flag, $1)= |
| 6625 _LT_TAGVAR(whole_archive_flag_spec, $1)= | 7684 _LT_TAGVAR(whole_archive_flag_spec, $1)= |
| 6626 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no | 7685 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no |
| 6627 | 7686 |
| 6628 # Source file extension for f77 test sources. | 7687 # Source file extension for f77 test sources. |
| 6629 ac_ext=f | 7688 ac_ext=f |
| 6630 | 7689 |
| 6631 # Object file extension for compiled f77 test sources. | 7690 # Object file extension for compiled f77 test sources. |
| 6632 objext=o | 7691 objext=o |
| 6633 _LT_TAGVAR(objext, $1)=$objext | 7692 _LT_TAGVAR(objext, $1)=$objext |
| 6634 | 7693 |
| 6635 # No sense in running all these tests if we already determined that | 7694 # No sense in running all these tests if we already determined that |
| 6636 # the F77 compiler isn't working. Some variables (like enable_shared) | 7695 # the F77 compiler isn't working. Some variables (like enable_shared) |
| 6637 # are currently assumed to apply to all compilers on this platform, | 7696 # are currently assumed to apply to all compilers on this platform, |
| 6638 # and will be corrupted by setting them based on a non-working compiler. | 7697 # and will be corrupted by setting them based on a non-working compiler. |
| 6639 if test "$_lt_disable_F77" != yes; then | 7698 if test yes != "$_lt_disable_F77"; then |
| 6640 # Code to be used in simple compile tests | 7699 # Code to be used in simple compile tests |
| 6641 lt_simple_compile_test_code="\ | 7700 lt_simple_compile_test_code="\ |
| 6642 subroutine t | 7701 subroutine t |
| 6643 return | 7702 return |
| 6644 end | 7703 end |
| 6645 " | 7704 " |
| 6646 | 7705 |
| 6647 # Code to be used in simple link tests | 7706 # Code to be used in simple link tests |
| 6648 lt_simple_link_test_code="\ | 7707 lt_simple_link_test_code="\ |
| 6649 program t | 7708 program t |
| 6650 end | 7709 end |
| 6651 " | 7710 " |
| 6652 | 7711 |
| 6653 # ltmain only uses $CC for tagged configurations so make sure $CC is set. | 7712 # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 6654 _LT_TAG_COMPILER | 7713 _LT_TAG_COMPILER |
| 6655 | 7714 |
| 6656 # save warnings/boilerplate of simple test code | 7715 # save warnings/boilerplate of simple test code |
| 6657 _LT_COMPILER_BOILERPLATE | 7716 _LT_COMPILER_BOILERPLATE |
| 6658 _LT_LINKER_BOILERPLATE | 7717 _LT_LINKER_BOILERPLATE |
| 6659 | 7718 |
| 6660 # Allow CC to be a program name with arguments. | 7719 # Allow CC to be a program name with arguments. |
| 6661 lt_save_CC="$CC" | 7720 lt_save_CC=$CC |
| 6662 lt_save_GCC=$GCC | 7721 lt_save_GCC=$GCC |
| 7722 lt_save_CFLAGS=$CFLAGS |
| 6663 CC=${F77-"f77"} | 7723 CC=${F77-"f77"} |
| 7724 CFLAGS=$FFLAGS |
| 6664 compiler=$CC | 7725 compiler=$CC |
| 6665 _LT_TAGVAR(compiler, $1)=$CC | 7726 _LT_TAGVAR(compiler, $1)=$CC |
| 6666 _LT_CC_BASENAME([$compiler]) | 7727 _LT_CC_BASENAME([$compiler]) |
| 6667 GCC=$G77 | 7728 GCC=$G77 |
| 6668 if test -n "$compiler"; then | 7729 if test -n "$compiler"; then |
| 6669 AC_MSG_CHECKING([if libtool supports shared libraries]) | 7730 AC_MSG_CHECKING([if libtool supports shared libraries]) |
| 6670 AC_MSG_RESULT([$can_build_shared]) | 7731 AC_MSG_RESULT([$can_build_shared]) |
| 6671 | 7732 |
| 6672 AC_MSG_CHECKING([whether to build shared libraries]) | 7733 AC_MSG_CHECKING([whether to build shared libraries]) |
| 6673 test "$can_build_shared" = "no" && enable_shared=no | 7734 test no = "$can_build_shared" && enable_shared=no |
| 6674 | 7735 |
| 6675 # On AIX, shared libraries and static libraries use the same namespace, and | 7736 # On AIX, shared libraries and static libraries use the same namespace, and |
| 6676 # are all built from PIC. | 7737 # are all built from PIC. |
| 6677 case $host_os in | 7738 case $host_os in |
| 6678 aix3*) | 7739 aix3*) |
| 6679 test "$enable_shared" = yes && enable_static=no | 7740 test yes = "$enable_shared" && enable_static=no |
| 6680 if test -n "$RANLIB"; then | 7741 if test -n "$RANLIB"; then |
| 6681 archive_cmds="$archive_cmds~\$RANLIB \$lib" | 7742 archive_cmds="$archive_cmds~\$RANLIB \$lib" |
| 6682 postinstall_cmds='$RANLIB $lib' | 7743 postinstall_cmds='$RANLIB $lib' |
| 6683 fi | 7744 fi |
| 6684 ;; | 7745 ;; |
| 6685 aix[[4-9]]*) | 7746 aix[[4-9]]*) |
| 6686 » if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; the
n | 7747 » if test ia64 != "$host_cpu"; then |
| 6687 » test "$enable_shared" = yes && enable_static=no | 7748 » case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in |
| 7749 » yes,aix,yes) ;;» » # shared object as lib.so file only |
| 7750 » yes,svr4,*) ;;» » # shared object as lib.so archive member
only |
| 7751 » yes,*) enable_static=no ;;» # shared object in lib.a archive as well |
| 7752 » esac |
| 6688 fi | 7753 fi |
| 6689 ;; | 7754 ;; |
| 6690 esac | 7755 esac |
| 6691 AC_MSG_RESULT([$enable_shared]) | 7756 AC_MSG_RESULT([$enable_shared]) |
| 6692 | 7757 |
| 6693 AC_MSG_CHECKING([whether to build static libraries]) | 7758 AC_MSG_CHECKING([whether to build static libraries]) |
| 6694 # Make sure either enable_shared or enable_static is yes. | 7759 # Make sure either enable_shared or enable_static is yes. |
| 6695 test "$enable_shared" = yes || enable_static=yes | 7760 test yes = "$enable_shared" || enable_static=yes |
| 6696 AC_MSG_RESULT([$enable_static]) | 7761 AC_MSG_RESULT([$enable_static]) |
| 6697 | 7762 |
| 6698 _LT_TAGVAR(GCC, $1)="$G77" | 7763 _LT_TAGVAR(GCC, $1)=$G77 |
| 6699 _LT_TAGVAR(LD, $1)="$LD" | 7764 _LT_TAGVAR(LD, $1)=$LD |
| 6700 | 7765 |
| 6701 ## CAVEAT EMPTOR: | 7766 ## CAVEAT EMPTOR: |
| 6702 ## There is no encapsulation within the following macros, do not change | 7767 ## There is no encapsulation within the following macros, do not change |
| 6703 ## the running order or otherwise move them around unless you know exactly | 7768 ## the running order or otherwise move them around unless you know exactly |
| 6704 ## what you are doing... | 7769 ## what you are doing... |
| 6705 _LT_COMPILER_PIC($1) | 7770 _LT_COMPILER_PIC($1) |
| 6706 _LT_COMPILER_C_O($1) | 7771 _LT_COMPILER_C_O($1) |
| 6707 _LT_COMPILER_FILE_LOCKS($1) | 7772 _LT_COMPILER_FILE_LOCKS($1) |
| 6708 _LT_LINKER_SHLIBS($1) | 7773 _LT_LINKER_SHLIBS($1) |
| 6709 _LT_SYS_DYNAMIC_LINKER($1) | 7774 _LT_SYS_DYNAMIC_LINKER($1) |
| 6710 _LT_LINKER_HARDCODE_LIBPATH($1) | 7775 _LT_LINKER_HARDCODE_LIBPATH($1) |
| 6711 | 7776 |
| 6712 _LT_CONFIG($1) | 7777 _LT_CONFIG($1) |
| 6713 fi # test -n "$compiler" | 7778 fi # test -n "$compiler" |
| 6714 | 7779 |
| 6715 GCC=$lt_save_GCC | 7780 GCC=$lt_save_GCC |
| 6716 CC="$lt_save_CC" | 7781 CC=$lt_save_CC |
| 6717 fi # test "$_lt_disable_F77" != yes | 7782 CFLAGS=$lt_save_CFLAGS |
| 7783 fi # test yes != "$_lt_disable_F77" |
| 6718 | 7784 |
| 6719 AC_LANG_POP | 7785 AC_LANG_POP |
| 6720 ])# _LT_LANG_F77_CONFIG | 7786 ])# _LT_LANG_F77_CONFIG |
| 6721 | 7787 |
| 6722 | 7788 |
| 6723 # _LT_PROG_FC | |
| 6724 # ----------- | |
| 6725 # Since AC_PROG_FC is broken, in that it returns the empty string | |
| 6726 # if there is no fortran compiler, we have our own version here. | |
| 6727 m4_defun([_LT_PROG_FC], | |
| 6728 [ | |
| 6729 pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes]) | |
| 6730 AC_PROG_FC | |
| 6731 if test -z "$FC" || test "X$FC" = "Xno"; then | |
| 6732 _lt_disable_FC=yes | |
| 6733 fi | |
| 6734 popdef([AC_MSG_ERROR]) | |
| 6735 ])# _LT_PROG_FC | |
| 6736 | |
| 6737 dnl aclocal-1.4 backwards compatibility: | |
| 6738 dnl AC_DEFUN([_LT_PROG_FC], []) | |
| 6739 | |
| 6740 | |
| 6741 # _LT_LANG_FC_CONFIG([TAG]) | 7789 # _LT_LANG_FC_CONFIG([TAG]) |
| 6742 # ------------------------- | 7790 # ------------------------- |
| 6743 # Ensure that the configuration variables for a Fortran compiler are | 7791 # Ensure that the configuration variables for a Fortran compiler are |
| 6744 # suitably defined. These variables are subsequently used by _LT_CONFIG | 7792 # suitably defined. These variables are subsequently used by _LT_CONFIG |
| 6745 # to write the compiler configuration to `libtool'. | 7793 # to write the compiler configuration to 'libtool'. |
| 6746 m4_defun([_LT_LANG_FC_CONFIG], | 7794 m4_defun([_LT_LANG_FC_CONFIG], |
| 6747 [AC_REQUIRE([_LT_PROG_FC])dnl | 7795 [AC_LANG_PUSH(Fortran) |
| 6748 AC_LANG_PUSH(Fortran) | 7796 |
| 7797 if test -z "$FC" || test no = "$FC"; then |
| 7798 _lt_disable_FC=yes |
| 7799 fi |
| 6749 | 7800 |
| 6750 _LT_TAGVAR(archive_cmds_need_lc, $1)=no | 7801 _LT_TAGVAR(archive_cmds_need_lc, $1)=no |
| 6751 _LT_TAGVAR(allow_undefined_flag, $1)= | 7802 _LT_TAGVAR(allow_undefined_flag, $1)= |
| 6752 _LT_TAGVAR(always_export_symbols, $1)=no | 7803 _LT_TAGVAR(always_export_symbols, $1)=no |
| 6753 _LT_TAGVAR(archive_expsym_cmds, $1)= | 7804 _LT_TAGVAR(archive_expsym_cmds, $1)= |
| 6754 _LT_TAGVAR(export_dynamic_flag_spec, $1)= | 7805 _LT_TAGVAR(export_dynamic_flag_spec, $1)= |
| 6755 _LT_TAGVAR(hardcode_direct, $1)=no | 7806 _LT_TAGVAR(hardcode_direct, $1)=no |
| 6756 _LT_TAGVAR(hardcode_direct_absolute, $1)=no | 7807 _LT_TAGVAR(hardcode_direct_absolute, $1)=no |
| 6757 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= | 7808 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= |
| 6758 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= | |
| 6759 _LT_TAGVAR(hardcode_libdir_separator, $1)= | 7809 _LT_TAGVAR(hardcode_libdir_separator, $1)= |
| 6760 _LT_TAGVAR(hardcode_minus_L, $1)=no | 7810 _LT_TAGVAR(hardcode_minus_L, $1)=no |
| 6761 _LT_TAGVAR(hardcode_automatic, $1)=no | 7811 _LT_TAGVAR(hardcode_automatic, $1)=no |
| 6762 _LT_TAGVAR(inherit_rpath, $1)=no | 7812 _LT_TAGVAR(inherit_rpath, $1)=no |
| 6763 _LT_TAGVAR(module_cmds, $1)= | 7813 _LT_TAGVAR(module_cmds, $1)= |
| 6764 _LT_TAGVAR(module_expsym_cmds, $1)= | 7814 _LT_TAGVAR(module_expsym_cmds, $1)= |
| 6765 _LT_TAGVAR(link_all_deplibs, $1)=unknown | 7815 _LT_TAGVAR(link_all_deplibs, $1)=unknown |
| 6766 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds | 7816 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds |
| 7817 _LT_TAGVAR(reload_flag, $1)=$reload_flag |
| 7818 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds |
| 6767 _LT_TAGVAR(no_undefined_flag, $1)= | 7819 _LT_TAGVAR(no_undefined_flag, $1)= |
| 6768 _LT_TAGVAR(whole_archive_flag_spec, $1)= | 7820 _LT_TAGVAR(whole_archive_flag_spec, $1)= |
| 6769 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no | 7821 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no |
| 6770 | 7822 |
| 6771 # Source file extension for fc test sources. | 7823 # Source file extension for fc test sources. |
| 6772 ac_ext=${ac_fc_srcext-f} | 7824 ac_ext=${ac_fc_srcext-f} |
| 6773 | 7825 |
| 6774 # Object file extension for compiled fc test sources. | 7826 # Object file extension for compiled fc test sources. |
| 6775 objext=o | 7827 objext=o |
| 6776 _LT_TAGVAR(objext, $1)=$objext | 7828 _LT_TAGVAR(objext, $1)=$objext |
| 6777 | 7829 |
| 6778 # No sense in running all these tests if we already determined that | 7830 # No sense in running all these tests if we already determined that |
| 6779 # the FC compiler isn't working. Some variables (like enable_shared) | 7831 # the FC compiler isn't working. Some variables (like enable_shared) |
| 6780 # are currently assumed to apply to all compilers on this platform, | 7832 # are currently assumed to apply to all compilers on this platform, |
| 6781 # and will be corrupted by setting them based on a non-working compiler. | 7833 # and will be corrupted by setting them based on a non-working compiler. |
| 6782 if test "$_lt_disable_FC" != yes; then | 7834 if test yes != "$_lt_disable_FC"; then |
| 6783 # Code to be used in simple compile tests | 7835 # Code to be used in simple compile tests |
| 6784 lt_simple_compile_test_code="\ | 7836 lt_simple_compile_test_code="\ |
| 6785 subroutine t | 7837 subroutine t |
| 6786 return | 7838 return |
| 6787 end | 7839 end |
| 6788 " | 7840 " |
| 6789 | 7841 |
| 6790 # Code to be used in simple link tests | 7842 # Code to be used in simple link tests |
| 6791 lt_simple_link_test_code="\ | 7843 lt_simple_link_test_code="\ |
| 6792 program t | 7844 program t |
| 6793 end | 7845 end |
| 6794 " | 7846 " |
| 6795 | 7847 |
| 6796 # ltmain only uses $CC for tagged configurations so make sure $CC is set. | 7848 # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 6797 _LT_TAG_COMPILER | 7849 _LT_TAG_COMPILER |
| 6798 | 7850 |
| 6799 # save warnings/boilerplate of simple test code | 7851 # save warnings/boilerplate of simple test code |
| 6800 _LT_COMPILER_BOILERPLATE | 7852 _LT_COMPILER_BOILERPLATE |
| 6801 _LT_LINKER_BOILERPLATE | 7853 _LT_LINKER_BOILERPLATE |
| 6802 | 7854 |
| 6803 # Allow CC to be a program name with arguments. | 7855 # Allow CC to be a program name with arguments. |
| 6804 lt_save_CC="$CC" | 7856 lt_save_CC=$CC |
| 6805 lt_save_GCC=$GCC | 7857 lt_save_GCC=$GCC |
| 7858 lt_save_CFLAGS=$CFLAGS |
| 6806 CC=${FC-"f95"} | 7859 CC=${FC-"f95"} |
| 7860 CFLAGS=$FCFLAGS |
| 6807 compiler=$CC | 7861 compiler=$CC |
| 6808 GCC=$ac_cv_fc_compiler_gnu | 7862 GCC=$ac_cv_fc_compiler_gnu |
| 6809 | 7863 |
| 6810 _LT_TAGVAR(compiler, $1)=$CC | 7864 _LT_TAGVAR(compiler, $1)=$CC |
| 6811 _LT_CC_BASENAME([$compiler]) | 7865 _LT_CC_BASENAME([$compiler]) |
| 6812 | 7866 |
| 6813 if test -n "$compiler"; then | 7867 if test -n "$compiler"; then |
| 6814 AC_MSG_CHECKING([if libtool supports shared libraries]) | 7868 AC_MSG_CHECKING([if libtool supports shared libraries]) |
| 6815 AC_MSG_RESULT([$can_build_shared]) | 7869 AC_MSG_RESULT([$can_build_shared]) |
| 6816 | 7870 |
| 6817 AC_MSG_CHECKING([whether to build shared libraries]) | 7871 AC_MSG_CHECKING([whether to build shared libraries]) |
| 6818 test "$can_build_shared" = "no" && enable_shared=no | 7872 test no = "$can_build_shared" && enable_shared=no |
| 6819 | 7873 |
| 6820 # On AIX, shared libraries and static libraries use the same namespace, and | 7874 # On AIX, shared libraries and static libraries use the same namespace, and |
| 6821 # are all built from PIC. | 7875 # are all built from PIC. |
| 6822 case $host_os in | 7876 case $host_os in |
| 6823 aix3*) | 7877 aix3*) |
| 6824 test "$enable_shared" = yes && enable_static=no | 7878 test yes = "$enable_shared" && enable_static=no |
| 6825 if test -n "$RANLIB"; then | 7879 if test -n "$RANLIB"; then |
| 6826 archive_cmds="$archive_cmds~\$RANLIB \$lib" | 7880 archive_cmds="$archive_cmds~\$RANLIB \$lib" |
| 6827 postinstall_cmds='$RANLIB $lib' | 7881 postinstall_cmds='$RANLIB $lib' |
| 6828 fi | 7882 fi |
| 6829 ;; | 7883 ;; |
| 6830 aix[[4-9]]*) | 7884 aix[[4-9]]*) |
| 6831 » if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; the
n | 7885 » if test ia64 != "$host_cpu"; then |
| 6832 » test "$enable_shared" = yes && enable_static=no | 7886 » case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in |
| 7887 » yes,aix,yes) ;;» » # shared object as lib.so file only |
| 7888 » yes,svr4,*) ;;» » # shared object as lib.so archive member
only |
| 7889 » yes,*) enable_static=no ;;» # shared object in lib.a archive as well |
| 7890 » esac |
| 6833 fi | 7891 fi |
| 6834 ;; | 7892 ;; |
| 6835 esac | 7893 esac |
| 6836 AC_MSG_RESULT([$enable_shared]) | 7894 AC_MSG_RESULT([$enable_shared]) |
| 6837 | 7895 |
| 6838 AC_MSG_CHECKING([whether to build static libraries]) | 7896 AC_MSG_CHECKING([whether to build static libraries]) |
| 6839 # Make sure either enable_shared or enable_static is yes. | 7897 # Make sure either enable_shared or enable_static is yes. |
| 6840 test "$enable_shared" = yes || enable_static=yes | 7898 test yes = "$enable_shared" || enable_static=yes |
| 6841 AC_MSG_RESULT([$enable_static]) | 7899 AC_MSG_RESULT([$enable_static]) |
| 6842 | 7900 |
| 6843 _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu" | 7901 _LT_TAGVAR(GCC, $1)=$ac_cv_fc_compiler_gnu |
| 6844 _LT_TAGVAR(LD, $1)="$LD" | 7902 _LT_TAGVAR(LD, $1)=$LD |
| 6845 | 7903 |
| 6846 ## CAVEAT EMPTOR: | 7904 ## CAVEAT EMPTOR: |
| 6847 ## There is no encapsulation within the following macros, do not change | 7905 ## There is no encapsulation within the following macros, do not change |
| 6848 ## the running order or otherwise move them around unless you know exactly | 7906 ## the running order or otherwise move them around unless you know exactly |
| 6849 ## what you are doing... | 7907 ## what you are doing... |
| 6850 _LT_SYS_HIDDEN_LIBDEPS($1) | 7908 _LT_SYS_HIDDEN_LIBDEPS($1) |
| 6851 _LT_COMPILER_PIC($1) | 7909 _LT_COMPILER_PIC($1) |
| 6852 _LT_COMPILER_C_O($1) | 7910 _LT_COMPILER_C_O($1) |
| 6853 _LT_COMPILER_FILE_LOCKS($1) | 7911 _LT_COMPILER_FILE_LOCKS($1) |
| 6854 _LT_LINKER_SHLIBS($1) | 7912 _LT_LINKER_SHLIBS($1) |
| 6855 _LT_SYS_DYNAMIC_LINKER($1) | 7913 _LT_SYS_DYNAMIC_LINKER($1) |
| 6856 _LT_LINKER_HARDCODE_LIBPATH($1) | 7914 _LT_LINKER_HARDCODE_LIBPATH($1) |
| 6857 | 7915 |
| 6858 _LT_CONFIG($1) | 7916 _LT_CONFIG($1) |
| 6859 fi # test -n "$compiler" | 7917 fi # test -n "$compiler" |
| 6860 | 7918 |
| 6861 GCC=$lt_save_GCC | 7919 GCC=$lt_save_GCC |
| 6862 CC="$lt_save_CC" | 7920 CC=$lt_save_CC |
| 6863 fi # test "$_lt_disable_FC" != yes | 7921 CFLAGS=$lt_save_CFLAGS |
| 7922 fi # test yes != "$_lt_disable_FC" |
| 6864 | 7923 |
| 6865 AC_LANG_POP | 7924 AC_LANG_POP |
| 6866 ])# _LT_LANG_FC_CONFIG | 7925 ])# _LT_LANG_FC_CONFIG |
| 6867 | 7926 |
| 6868 | 7927 |
| 6869 # _LT_LANG_GCJ_CONFIG([TAG]) | 7928 # _LT_LANG_GCJ_CONFIG([TAG]) |
| 6870 # -------------------------- | 7929 # -------------------------- |
| 6871 # Ensure that the configuration variables for the GNU Java Compiler compiler | 7930 # Ensure that the configuration variables for the GNU Java Compiler compiler |
| 6872 # are suitably defined. These variables are subsequently used by _LT_CONFIG | 7931 # are suitably defined. These variables are subsequently used by _LT_CONFIG |
| 6873 # to write the compiler configuration to `libtool'. | 7932 # to write the compiler configuration to 'libtool'. |
| 6874 m4_defun([_LT_LANG_GCJ_CONFIG], | 7933 m4_defun([_LT_LANG_GCJ_CONFIG], |
| 6875 [AC_REQUIRE([LT_PROG_GCJ])dnl | 7934 [AC_REQUIRE([LT_PROG_GCJ])dnl |
| 6876 AC_LANG_SAVE | 7935 AC_LANG_SAVE |
| 6877 | 7936 |
| 6878 # Source file extension for Java test sources. | 7937 # Source file extension for Java test sources. |
| 6879 ac_ext=java | 7938 ac_ext=java |
| 6880 | 7939 |
| 6881 # Object file extension for compiled Java test sources. | 7940 # Object file extension for compiled Java test sources. |
| 6882 objext=o | 7941 objext=o |
| 6883 _LT_TAGVAR(objext, $1)=$objext | 7942 _LT_TAGVAR(objext, $1)=$objext |
| 6884 | 7943 |
| 6885 # Code to be used in simple compile tests | 7944 # Code to be used in simple compile tests |
| 6886 lt_simple_compile_test_code="class foo {}" | 7945 lt_simple_compile_test_code="class foo {}" |
| 6887 | 7946 |
| 6888 # Code to be used in simple link tests | 7947 # Code to be used in simple link tests |
| 6889 lt_simple_link_test_code='public class conftest { public static void main(String
[[]] argv) {}; }' | 7948 lt_simple_link_test_code='public class conftest { public static void main(String
[[]] argv) {}; }' |
| 6890 | 7949 |
| 6891 # ltmain only uses $CC for tagged configurations so make sure $CC is set. | 7950 # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 6892 _LT_TAG_COMPILER | 7951 _LT_TAG_COMPILER |
| 6893 | 7952 |
| 6894 # save warnings/boilerplate of simple test code | 7953 # save warnings/boilerplate of simple test code |
| 6895 _LT_COMPILER_BOILERPLATE | 7954 _LT_COMPILER_BOILERPLATE |
| 6896 _LT_LINKER_BOILERPLATE | 7955 _LT_LINKER_BOILERPLATE |
| 6897 | 7956 |
| 6898 # Allow CC to be a program name with arguments. | 7957 # Allow CC to be a program name with arguments. |
| 6899 lt_save_CC="$CC" | 7958 lt_save_CC=$CC |
| 7959 lt_save_CFLAGS=$CFLAGS |
| 6900 lt_save_GCC=$GCC | 7960 lt_save_GCC=$GCC |
| 6901 GCC=yes | 7961 GCC=yes |
| 6902 CC=${GCJ-"gcj"} | 7962 CC=${GCJ-"gcj"} |
| 7963 CFLAGS=$GCJFLAGS |
| 6903 compiler=$CC | 7964 compiler=$CC |
| 6904 _LT_TAGVAR(compiler, $1)=$CC | 7965 _LT_TAGVAR(compiler, $1)=$CC |
| 6905 _LT_TAGVAR(LD, $1)="$LD" | 7966 _LT_TAGVAR(LD, $1)=$LD |
| 6906 _LT_CC_BASENAME([$compiler]) | 7967 _LT_CC_BASENAME([$compiler]) |
| 6907 | 7968 |
| 6908 # GCJ did not exist at the time GCC didn't implicitly link libc in. | 7969 # GCJ did not exist at the time GCC didn't implicitly link libc in. |
| 6909 _LT_TAGVAR(archive_cmds_need_lc, $1)=no | 7970 _LT_TAGVAR(archive_cmds_need_lc, $1)=no |
| 6910 | 7971 |
| 6911 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds | 7972 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds |
| 7973 _LT_TAGVAR(reload_flag, $1)=$reload_flag |
| 7974 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds |
| 6912 | 7975 |
| 6913 ## CAVEAT EMPTOR: | 7976 ## CAVEAT EMPTOR: |
| 6914 ## There is no encapsulation within the following macros, do not change | 7977 ## There is no encapsulation within the following macros, do not change |
| 6915 ## the running order or otherwise move them around unless you know exactly | 7978 ## the running order or otherwise move them around unless you know exactly |
| 6916 ## what you are doing... | 7979 ## what you are doing... |
| 6917 if test -n "$compiler"; then | 7980 if test -n "$compiler"; then |
| 6918 _LT_COMPILER_NO_RTTI($1) | 7981 _LT_COMPILER_NO_RTTI($1) |
| 6919 _LT_COMPILER_PIC($1) | 7982 _LT_COMPILER_PIC($1) |
| 6920 _LT_COMPILER_C_O($1) | 7983 _LT_COMPILER_C_O($1) |
| 6921 _LT_COMPILER_FILE_LOCKS($1) | 7984 _LT_COMPILER_FILE_LOCKS($1) |
| 6922 _LT_LINKER_SHLIBS($1) | 7985 _LT_LINKER_SHLIBS($1) |
| 6923 _LT_LINKER_HARDCODE_LIBPATH($1) | 7986 _LT_LINKER_HARDCODE_LIBPATH($1) |
| 6924 | 7987 |
| 6925 _LT_CONFIG($1) | 7988 _LT_CONFIG($1) |
| 6926 fi | 7989 fi |
| 6927 | 7990 |
| 6928 AC_LANG_RESTORE | 7991 AC_LANG_RESTORE |
| 6929 | 7992 |
| 6930 GCC=$lt_save_GCC | 7993 GCC=$lt_save_GCC |
| 6931 CC="$lt_save_CC" | 7994 CC=$lt_save_CC |
| 7995 CFLAGS=$lt_save_CFLAGS |
| 6932 ])# _LT_LANG_GCJ_CONFIG | 7996 ])# _LT_LANG_GCJ_CONFIG |
| 6933 | 7997 |
| 6934 | 7998 |
| 7999 # _LT_LANG_GO_CONFIG([TAG]) |
| 8000 # -------------------------- |
| 8001 # Ensure that the configuration variables for the GNU Go compiler |
| 8002 # are suitably defined. These variables are subsequently used by _LT_CONFIG |
| 8003 # to write the compiler configuration to 'libtool'. |
| 8004 m4_defun([_LT_LANG_GO_CONFIG], |
| 8005 [AC_REQUIRE([LT_PROG_GO])dnl |
| 8006 AC_LANG_SAVE |
| 8007 |
| 8008 # Source file extension for Go test sources. |
| 8009 ac_ext=go |
| 8010 |
| 8011 # Object file extension for compiled Go test sources. |
| 8012 objext=o |
| 8013 _LT_TAGVAR(objext, $1)=$objext |
| 8014 |
| 8015 # Code to be used in simple compile tests |
| 8016 lt_simple_compile_test_code="package main; func main() { }" |
| 8017 |
| 8018 # Code to be used in simple link tests |
| 8019 lt_simple_link_test_code='package main; func main() { }' |
| 8020 |
| 8021 # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 8022 _LT_TAG_COMPILER |
| 8023 |
| 8024 # save warnings/boilerplate of simple test code |
| 8025 _LT_COMPILER_BOILERPLATE |
| 8026 _LT_LINKER_BOILERPLATE |
| 8027 |
| 8028 # Allow CC to be a program name with arguments. |
| 8029 lt_save_CC=$CC |
| 8030 lt_save_CFLAGS=$CFLAGS |
| 8031 lt_save_GCC=$GCC |
| 8032 GCC=yes |
| 8033 CC=${GOC-"gccgo"} |
| 8034 CFLAGS=$GOFLAGS |
| 8035 compiler=$CC |
| 8036 _LT_TAGVAR(compiler, $1)=$CC |
| 8037 _LT_TAGVAR(LD, $1)=$LD |
| 8038 _LT_CC_BASENAME([$compiler]) |
| 8039 |
| 8040 # Go did not exist at the time GCC didn't implicitly link libc in. |
| 8041 _LT_TAGVAR(archive_cmds_need_lc, $1)=no |
| 8042 |
| 8043 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds |
| 8044 _LT_TAGVAR(reload_flag, $1)=$reload_flag |
| 8045 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds |
| 8046 |
| 8047 ## CAVEAT EMPTOR: |
| 8048 ## There is no encapsulation within the following macros, do not change |
| 8049 ## the running order or otherwise move them around unless you know exactly |
| 8050 ## what you are doing... |
| 8051 if test -n "$compiler"; then |
| 8052 _LT_COMPILER_NO_RTTI($1) |
| 8053 _LT_COMPILER_PIC($1) |
| 8054 _LT_COMPILER_C_O($1) |
| 8055 _LT_COMPILER_FILE_LOCKS($1) |
| 8056 _LT_LINKER_SHLIBS($1) |
| 8057 _LT_LINKER_HARDCODE_LIBPATH($1) |
| 8058 |
| 8059 _LT_CONFIG($1) |
| 8060 fi |
| 8061 |
| 8062 AC_LANG_RESTORE |
| 8063 |
| 8064 GCC=$lt_save_GCC |
| 8065 CC=$lt_save_CC |
| 8066 CFLAGS=$lt_save_CFLAGS |
| 8067 ])# _LT_LANG_GO_CONFIG |
| 8068 |
| 8069 |
| 6935 # _LT_LANG_RC_CONFIG([TAG]) | 8070 # _LT_LANG_RC_CONFIG([TAG]) |
| 6936 # ------------------------- | 8071 # ------------------------- |
| 6937 # Ensure that the configuration variables for the Windows resource compiler | 8072 # Ensure that the configuration variables for the Windows resource compiler |
| 6938 # are suitably defined. These variables are subsequently used by _LT_CONFIG | 8073 # are suitably defined. These variables are subsequently used by _LT_CONFIG |
| 6939 # to write the compiler configuration to `libtool'. | 8074 # to write the compiler configuration to 'libtool'. |
| 6940 m4_defun([_LT_LANG_RC_CONFIG], | 8075 m4_defun([_LT_LANG_RC_CONFIG], |
| 6941 [AC_REQUIRE([LT_PROG_RC])dnl | 8076 [AC_REQUIRE([LT_PROG_RC])dnl |
| 6942 AC_LANG_SAVE | 8077 AC_LANG_SAVE |
| 6943 | 8078 |
| 6944 # Source file extension for RC test sources. | 8079 # Source file extension for RC test sources. |
| 6945 ac_ext=rc | 8080 ac_ext=rc |
| 6946 | 8081 |
| 6947 # Object file extension for compiled RC test sources. | 8082 # Object file extension for compiled RC test sources. |
| 6948 objext=o | 8083 objext=o |
| 6949 _LT_TAGVAR(objext, $1)=$objext | 8084 _LT_TAGVAR(objext, $1)=$objext |
| 6950 | 8085 |
| 6951 # Code to be used in simple compile tests | 8086 # Code to be used in simple compile tests |
| 6952 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' | 8087 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' |
| 6953 | 8088 |
| 6954 # Code to be used in simple link tests | 8089 # Code to be used in simple link tests |
| 6955 lt_simple_link_test_code="$lt_simple_compile_test_code" | 8090 lt_simple_link_test_code=$lt_simple_compile_test_code |
| 6956 | 8091 |
| 6957 # ltmain only uses $CC for tagged configurations so make sure $CC is set. | 8092 # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 6958 _LT_TAG_COMPILER | 8093 _LT_TAG_COMPILER |
| 6959 | 8094 |
| 6960 # save warnings/boilerplate of simple test code | 8095 # save warnings/boilerplate of simple test code |
| 6961 _LT_COMPILER_BOILERPLATE | 8096 _LT_COMPILER_BOILERPLATE |
| 6962 _LT_LINKER_BOILERPLATE | 8097 _LT_LINKER_BOILERPLATE |
| 6963 | 8098 |
| 6964 # Allow CC to be a program name with arguments. | 8099 # Allow CC to be a program name with arguments. |
| 6965 lt_save_CC="$CC" | 8100 lt_save_CC=$CC |
| 8101 lt_save_CFLAGS=$CFLAGS |
| 6966 lt_save_GCC=$GCC | 8102 lt_save_GCC=$GCC |
| 6967 GCC= | 8103 GCC= |
| 6968 CC=${RC-"windres"} | 8104 CC=${RC-"windres"} |
| 8105 CFLAGS= |
| 6969 compiler=$CC | 8106 compiler=$CC |
| 6970 _LT_TAGVAR(compiler, $1)=$CC | 8107 _LT_TAGVAR(compiler, $1)=$CC |
| 6971 _LT_CC_BASENAME([$compiler]) | 8108 _LT_CC_BASENAME([$compiler]) |
| 6972 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes | 8109 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes |
| 6973 | 8110 |
| 6974 if test -n "$compiler"; then | 8111 if test -n "$compiler"; then |
| 6975 : | 8112 : |
| 6976 _LT_CONFIG($1) | 8113 _LT_CONFIG($1) |
| 6977 fi | 8114 fi |
| 6978 | 8115 |
| 6979 GCC=$lt_save_GCC | 8116 GCC=$lt_save_GCC |
| 6980 AC_LANG_RESTORE | 8117 AC_LANG_RESTORE |
| 6981 CC="$lt_save_CC" | 8118 CC=$lt_save_CC |
| 8119 CFLAGS=$lt_save_CFLAGS |
| 6982 ])# _LT_LANG_RC_CONFIG | 8120 ])# _LT_LANG_RC_CONFIG |
| 6983 | 8121 |
| 6984 | 8122 |
| 6985 # LT_PROG_GCJ | 8123 # LT_PROG_GCJ |
| 6986 # ----------- | 8124 # ----------- |
| 6987 AC_DEFUN([LT_PROG_GCJ], | 8125 AC_DEFUN([LT_PROG_GCJ], |
| 6988 [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ], | 8126 [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ], |
| 6989 [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ], | 8127 [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ], |
| 6990 [AC_CHECK_TOOL(GCJ, gcj,) | 8128 [AC_CHECK_TOOL(GCJ, gcj,) |
| 6991 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2" | 8129 test set = "${GCJFLAGS+set}" || GCJFLAGS="-g -O2" |
| 6992 AC_SUBST(GCJFLAGS)])])[]dnl | 8130 AC_SUBST(GCJFLAGS)])])[]dnl |
| 6993 ]) | 8131 ]) |
| 6994 | 8132 |
| 6995 # Old name: | 8133 # Old name: |
| 6996 AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ]) | 8134 AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ]) |
| 6997 dnl aclocal-1.4 backwards compatibility: | 8135 dnl aclocal-1.4 backwards compatibility: |
| 6998 dnl AC_DEFUN([LT_AC_PROG_GCJ], []) | 8136 dnl AC_DEFUN([LT_AC_PROG_GCJ], []) |
| 6999 | 8137 |
| 7000 | 8138 |
| 8139 # LT_PROG_GO |
| 8140 # ---------- |
| 8141 AC_DEFUN([LT_PROG_GO], |
| 8142 [AC_CHECK_TOOL(GOC, gccgo,) |
| 8143 ]) |
| 8144 |
| 8145 |
| 7001 # LT_PROG_RC | 8146 # LT_PROG_RC |
| 7002 # ---------- | 8147 # ---------- |
| 7003 AC_DEFUN([LT_PROG_RC], | 8148 AC_DEFUN([LT_PROG_RC], |
| 7004 [AC_CHECK_TOOL(RC, windres,) | 8149 [AC_CHECK_TOOL(RC, windres,) |
| 7005 ]) | 8150 ]) |
| 7006 | 8151 |
| 7007 # Old name: | 8152 # Old name: |
| 7008 AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC]) | 8153 AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC]) |
| 7009 dnl aclocal-1.4 backwards compatibility: | 8154 dnl aclocal-1.4 backwards compatibility: |
| 7010 dnl AC_DEFUN([LT_AC_PROG_RC], []) | 8155 dnl AC_DEFUN([LT_AC_PROG_RC], []) |
| (...skipping 19 matching lines...) Expand all Loading... |
| 7030 # -------------- | 8175 # -------------- |
| 7031 # If we don't have a new enough Autoconf to choose the best objdump | 8176 # If we don't have a new enough Autoconf to choose the best objdump |
| 7032 # available, choose the one first in the user's PATH. | 8177 # available, choose the one first in the user's PATH. |
| 7033 m4_defun([_LT_DECL_OBJDUMP], | 8178 m4_defun([_LT_DECL_OBJDUMP], |
| 7034 [AC_CHECK_TOOL(OBJDUMP, objdump, false) | 8179 [AC_CHECK_TOOL(OBJDUMP, objdump, false) |
| 7035 test -z "$OBJDUMP" && OBJDUMP=objdump | 8180 test -z "$OBJDUMP" && OBJDUMP=objdump |
| 7036 _LT_DECL([], [OBJDUMP], [1], [An object symbol dumper]) | 8181 _LT_DECL([], [OBJDUMP], [1], [An object symbol dumper]) |
| 7037 AC_SUBST([OBJDUMP]) | 8182 AC_SUBST([OBJDUMP]) |
| 7038 ]) | 8183 ]) |
| 7039 | 8184 |
| 8185 # _LT_DECL_DLLTOOL |
| 8186 # ---------------- |
| 8187 # Ensure DLLTOOL variable is set. |
| 8188 m4_defun([_LT_DECL_DLLTOOL], |
| 8189 [AC_CHECK_TOOL(DLLTOOL, dlltool, false) |
| 8190 test -z "$DLLTOOL" && DLLTOOL=dlltool |
| 8191 _LT_DECL([], [DLLTOOL], [1], [DLL creation program]) |
| 8192 AC_SUBST([DLLTOOL]) |
| 8193 ]) |
| 7040 | 8194 |
| 7041 # _LT_DECL_SED | 8195 # _LT_DECL_SED |
| 7042 # ------------ | 8196 # ------------ |
| 7043 # Check for a fully-functional sed program, that truncates | 8197 # Check for a fully-functional sed program, that truncates |
| 7044 # as few characters as possible. Prefer GNU sed if found. | 8198 # as few characters as possible. Prefer GNU sed if found. |
| 7045 m4_defun([_LT_DECL_SED], | 8199 m4_defun([_LT_DECL_SED], |
| 7046 [AC_PROG_SED | 8200 [AC_PROG_SED |
| 7047 test -z "$SED" && SED=sed | 8201 test -z "$SED" && SED=sed |
| 7048 Xsed="$SED -e 1s/^X//" | 8202 Xsed="$SED -e 1s/^X//" |
| 7049 _LT_DECL([], [SED], [1], [A sed program that does not truncate output]) | 8203 _LT_DECL([], [SED], [1], [A sed program that does not truncate output]) |
| (...skipping 26 matching lines...) Expand all Loading... |
| 7076 fi | 8230 fi |
| 7077 done | 8231 done |
| 7078 done | 8232 done |
| 7079 done | 8233 done |
| 7080 IFS=$as_save_IFS | 8234 IFS=$as_save_IFS |
| 7081 lt_ac_max=0 | 8235 lt_ac_max=0 |
| 7082 lt_ac_count=0 | 8236 lt_ac_count=0 |
| 7083 # Add /usr/xpg4/bin/sed as it is typically found on Solaris | 8237 # Add /usr/xpg4/bin/sed as it is typically found on Solaris |
| 7084 # along with /bin/sed that truncates output. | 8238 # along with /bin/sed that truncates output. |
| 7085 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do | 8239 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do |
| 7086 test ! -f $lt_ac_sed && continue | 8240 test ! -f "$lt_ac_sed" && continue |
| 7087 cat /dev/null > conftest.in | 8241 cat /dev/null > conftest.in |
| 7088 lt_ac_count=0 | 8242 lt_ac_count=0 |
| 7089 echo $ECHO_N "0123456789$ECHO_C" >conftest.in | 8243 echo $ECHO_N "0123456789$ECHO_C" >conftest.in |
| 7090 # Check for GNU sed and select it if it is found. | 8244 # Check for GNU sed and select it if it is found. |
| 7091 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then | 8245 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then |
| 7092 lt_cv_path_SED=$lt_ac_sed | 8246 lt_cv_path_SED=$lt_ac_sed |
| 7093 break | 8247 break |
| 7094 fi | 8248 fi |
| 7095 while true; do | 8249 while true; do |
| 7096 cat conftest.in conftest.in >conftest.tmp | 8250 cat conftest.in conftest.in >conftest.tmp |
| 7097 mv conftest.tmp conftest.in | 8251 mv conftest.tmp conftest.in |
| 7098 cp conftest.in conftest.nl | 8252 cp conftest.in conftest.nl |
| 7099 echo >>conftest.nl | 8253 echo >>conftest.nl |
| 7100 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break | 8254 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break |
| 7101 cmp -s conftest.out conftest.nl || break | 8255 cmp -s conftest.out conftest.nl || break |
| 7102 # 10000 chars as input seems more than enough | 8256 # 10000 chars as input seems more than enough |
| 7103 test $lt_ac_count -gt 10 && break | 8257 test 10 -lt "$lt_ac_count" && break |
| 7104 lt_ac_count=`expr $lt_ac_count + 1` | 8258 lt_ac_count=`expr $lt_ac_count + 1` |
| 7105 if test $lt_ac_count -gt $lt_ac_max; then | 8259 if test "$lt_ac_count" -gt "$lt_ac_max"; then |
| 7106 lt_ac_max=$lt_ac_count | 8260 lt_ac_max=$lt_ac_count |
| 7107 lt_cv_path_SED=$lt_ac_sed | 8261 lt_cv_path_SED=$lt_ac_sed |
| 7108 fi | 8262 fi |
| 7109 done | 8263 done |
| 7110 done | 8264 done |
| 7111 ]) | 8265 ]) |
| 7112 SED=$lt_cv_path_SED | 8266 SED=$lt_cv_path_SED |
| 7113 AC_SUBST([SED]) | 8267 AC_SUBST([SED]) |
| 7114 AC_MSG_RESULT([$SED]) | 8268 AC_MSG_RESULT([$SED]) |
| 7115 ])#AC_PROG_SED | 8269 ])#AC_PROG_SED |
| 7116 ])#m4_ifndef | 8270 ])#m4_ifndef |
| 7117 | 8271 |
| 7118 # Old name: | 8272 # Old name: |
| 7119 AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED]) | 8273 AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED]) |
| 7120 dnl aclocal-1.4 backwards compatibility: | 8274 dnl aclocal-1.4 backwards compatibility: |
| 7121 dnl AC_DEFUN([LT_AC_PROG_SED], []) | 8275 dnl AC_DEFUN([LT_AC_PROG_SED], []) |
| 7122 | 8276 |
| 7123 | 8277 |
| 7124 # _LT_CHECK_SHELL_FEATURES | 8278 # _LT_CHECK_SHELL_FEATURES |
| 7125 # ------------------------ | 8279 # ------------------------ |
| 7126 # Find out whether the shell is Bourne or XSI compatible, | 8280 # Find out whether the shell is Bourne or XSI compatible, |
| 7127 # or has some other useful features. | 8281 # or has some other useful features. |
| 7128 m4_defun([_LT_CHECK_SHELL_FEATURES], | 8282 m4_defun([_LT_CHECK_SHELL_FEATURES], |
| 7129 [AC_MSG_CHECKING([whether the shell understands some XSI constructs]) | 8283 [if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 7130 # Try some XSI features | |
| 7131 xsi_shell=no | |
| 7132 ( _lt_dummy="a/b/c" | |
| 7133 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | |
| 7134 = c,a/b,, \ | |
| 7135 && eval 'test $(( 1 + 1 )) -eq 2 \ | |
| 7136 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | |
| 7137 && xsi_shell=yes | |
| 7138 AC_MSG_RESULT([$xsi_shell]) | |
| 7139 _LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell']) | |
| 7140 | |
| 7141 AC_MSG_CHECKING([whether the shell understands "+="]) | |
| 7142 lt_shell_append=no | |
| 7143 ( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \ | |
| 7144 >/dev/null 2>&1 \ | |
| 7145 && lt_shell_append=yes | |
| 7146 AC_MSG_RESULT([$lt_shell_append]) | |
| 7147 _LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append']) | |
| 7148 | |
| 7149 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
| 7150 lt_unset=unset | 8284 lt_unset=unset |
| 7151 else | 8285 else |
| 7152 lt_unset=false | 8286 lt_unset=false |
| 7153 fi | 8287 fi |
| 7154 _LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl | 8288 _LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl |
| 7155 | 8289 |
| 7156 # test EBCDIC or ASCII | 8290 # test EBCDIC or ASCII |
| 7157 case `echo X|tr X '\101'` in | 8291 case `echo X|tr X '\101'` in |
| 7158 A) # ASCII based system | 8292 A) # ASCII based system |
| 7159 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | 8293 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr |
| 7160 lt_SP2NL='tr \040 \012' | 8294 lt_SP2NL='tr \040 \012' |
| 7161 lt_NL2SP='tr \015\012 \040\040' | 8295 lt_NL2SP='tr \015\012 \040\040' |
| 7162 ;; | 8296 ;; |
| 7163 *) # EBCDIC based system | 8297 *) # EBCDIC based system |
| 7164 lt_SP2NL='tr \100 \n' | 8298 lt_SP2NL='tr \100 \n' |
| 7165 lt_NL2SP='tr \r\n \100\100' | 8299 lt_NL2SP='tr \r\n \100\100' |
| 7166 ;; | 8300 ;; |
| 7167 esac | 8301 esac |
| 7168 _LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl | 8302 _LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl |
| 7169 _LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl | 8303 _LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl |
| 7170 ])# _LT_CHECK_SHELL_FEATURES | 8304 ])# _LT_CHECK_SHELL_FEATURES |
| 7171 | 8305 |
| 7172 | 8306 |
| 7173 # _LT_PROG_XSI_SHELLFNS | 8307 # _LT_PATH_CONVERSION_FUNCTIONS |
| 7174 # --------------------- | 8308 # ----------------------------- |
| 7175 # Bourne and XSI compatible variants of some useful shell functions. | 8309 # Determine what file name conversion functions should be used by |
| 7176 m4_defun([_LT_PROG_XSI_SHELLFNS], | 8310 # func_to_host_file (and, implicitly, by func_to_host_path). These are needed |
| 7177 [case $xsi_shell in | 8311 # for certain cross-compile configurations and native mingw. |
| 7178 yes) | 8312 m4_defun([_LT_PATH_CONVERSION_FUNCTIONS], |
| 7179 cat << \_LT_EOF >> "$cfgfile" | 8313 [AC_REQUIRE([AC_CANONICAL_HOST])dnl |
| 8314 AC_REQUIRE([AC_CANONICAL_BUILD])dnl |
| 8315 AC_MSG_CHECKING([how to convert $build file names to $host format]) |
| 8316 AC_CACHE_VAL(lt_cv_to_host_file_cmd, |
| 8317 [case $host in |
| 8318 *-*-mingw* ) |
| 8319 case $build in |
| 8320 *-*-mingw* ) # actually msys |
| 8321 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 |
| 8322 ;; |
| 8323 *-*-cygwin* ) |
| 8324 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 |
| 8325 ;; |
| 8326 * ) # otherwise, assume *nix |
| 8327 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 |
| 8328 ;; |
| 8329 esac |
| 8330 ;; |
| 8331 *-*-cygwin* ) |
| 8332 case $build in |
| 8333 *-*-mingw* ) # actually msys |
| 8334 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin |
| 8335 ;; |
| 8336 *-*-cygwin* ) |
| 8337 lt_cv_to_host_file_cmd=func_convert_file_noop |
| 8338 ;; |
| 8339 * ) # otherwise, assume *nix |
| 8340 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin |
| 8341 ;; |
| 8342 esac |
| 8343 ;; |
| 8344 * ) # unhandled hosts (and "normal" native builds) |
| 8345 lt_cv_to_host_file_cmd=func_convert_file_noop |
| 8346 ;; |
| 8347 esac |
| 8348 ]) |
| 8349 to_host_file_cmd=$lt_cv_to_host_file_cmd |
| 8350 AC_MSG_RESULT([$lt_cv_to_host_file_cmd]) |
| 8351 _LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd], |
| 8352 [0], [convert $build file names to $host format])dnl |
| 7180 | 8353 |
| 7181 # func_dirname file append nondir_replacement | 8354 AC_MSG_CHECKING([how to convert $build file names to toolchain format]) |
| 7182 # Compute the dirname of FILE. If nonempty, add APPEND to the result, | 8355 AC_CACHE_VAL(lt_cv_to_tool_file_cmd, |
| 7183 # otherwise set result to NONDIR_REPLACEMENT. | 8356 [#assume ordinary cross tools, or native build. |
| 7184 func_dirname () | 8357 lt_cv_to_tool_file_cmd=func_convert_file_noop |
| 7185 { | 8358 case $host in |
| 7186 case ${1} in | 8359 *-*-mingw* ) |
| 7187 */*) func_dirname_result="${1%/*}${2}" ;; | 8360 case $build in |
| 7188 * ) func_dirname_result="${3}" ;; | 8361 *-*-mingw* ) # actually msys |
| 7189 esac | 8362 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 |
| 7190 } | 8363 ;; |
| 7191 | 8364 esac |
| 7192 # func_basename file | |
| 7193 func_basename () | |
| 7194 { | |
| 7195 func_basename_result="${1##*/}" | |
| 7196 } | |
| 7197 | |
| 7198 # func_dirname_and_basename file append nondir_replacement | |
| 7199 # perform func_basename and func_dirname in a single function | |
| 7200 # call: | |
| 7201 # dirname: Compute the dirname of FILE. If nonempty, | |
| 7202 # add APPEND to the result, otherwise set result | |
| 7203 # to NONDIR_REPLACEMENT. | |
| 7204 # value returned in "$func_dirname_result" | |
| 7205 # basename: Compute filename of FILE. | |
| 7206 # value retuned in "$func_basename_result" | |
| 7207 # Implementation must be kept synchronized with func_dirname | |
| 7208 # and func_basename. For efficiency, we do not delegate to | |
| 7209 # those functions but instead duplicate the functionality here. | |
| 7210 func_dirname_and_basename () | |
| 7211 { | |
| 7212 case ${1} in | |
| 7213 */*) func_dirname_result="${1%/*}${2}" ;; | |
| 7214 * ) func_dirname_result="${3}" ;; | |
| 7215 esac | |
| 7216 func_basename_result="${1##*/}" | |
| 7217 } | |
| 7218 | |
| 7219 # func_stripname prefix suffix name | |
| 7220 # strip PREFIX and SUFFIX off of NAME. | |
| 7221 # PREFIX and SUFFIX must not contain globbing or regex special | |
| 7222 # characters, hashes, percent signs, but SUFFIX may contain a leading | |
| 7223 # dot (in which case that matches only a dot). | |
| 7224 func_stripname () | |
| 7225 { | |
| 7226 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | |
| 7227 # positional parameters, so assign one to ordinary parameter first. | |
| 7228 func_stripname_result=${3} | |
| 7229 func_stripname_result=${func_stripname_result#"${1}"} | |
| 7230 func_stripname_result=${func_stripname_result%"${2}"} | |
| 7231 } | |
| 7232 | |
| 7233 # func_opt_split | |
| 7234 func_opt_split () | |
| 7235 { | |
| 7236 func_opt_split_opt=${1%%=*} | |
| 7237 func_opt_split_arg=${1#*=} | |
| 7238 } | |
| 7239 | |
| 7240 # func_lo2o object | |
| 7241 func_lo2o () | |
| 7242 { | |
| 7243 case ${1} in | |
| 7244 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | |
| 7245 *) func_lo2o_result=${1} ;; | |
| 7246 esac | |
| 7247 } | |
| 7248 | |
| 7249 # func_xform libobj-or-source | |
| 7250 func_xform () | |
| 7251 { | |
| 7252 func_xform_result=${1%.*}.lo | |
| 7253 } | |
| 7254 | |
| 7255 # func_arith arithmetic-term... | |
| 7256 func_arith () | |
| 7257 { | |
| 7258 func_arith_result=$(( $[*] )) | |
| 7259 } | |
| 7260 | |
| 7261 # func_len string | |
| 7262 # STRING may not start with a hyphen. | |
| 7263 func_len () | |
| 7264 { | |
| 7265 func_len_result=${#1} | |
| 7266 } | |
| 7267 | |
| 7268 _LT_EOF | |
| 7269 ;; | 8365 ;; |
| 7270 *) # Bourne compatible functions. | |
| 7271 cat << \_LT_EOF >> "$cfgfile" | |
| 7272 | |
| 7273 # func_dirname file append nondir_replacement | |
| 7274 # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
| 7275 # otherwise set result to NONDIR_REPLACEMENT. | |
| 7276 func_dirname () | |
| 7277 { | |
| 7278 # Extract subdirectory from the argument. | |
| 7279 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` | |
| 7280 if test "X$func_dirname_result" = "X${1}"; then | |
| 7281 func_dirname_result="${3}" | |
| 7282 else | |
| 7283 func_dirname_result="$func_dirname_result${2}" | |
| 7284 fi | |
| 7285 } | |
| 7286 | |
| 7287 # func_basename file | |
| 7288 func_basename () | |
| 7289 { | |
| 7290 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` | |
| 7291 } | |
| 7292 | |
| 7293 dnl func_dirname_and_basename | |
| 7294 dnl A portable version of this function is already defined in general.m4sh | |
| 7295 dnl so there is no need for it here. | |
| 7296 | |
| 7297 # func_stripname prefix suffix name | |
| 7298 # strip PREFIX and SUFFIX off of NAME. | |
| 7299 # PREFIX and SUFFIX must not contain globbing or regex special | |
| 7300 # characters, hashes, percent signs, but SUFFIX may contain a leading | |
| 7301 # dot (in which case that matches only a dot). | |
| 7302 # func_strip_suffix prefix name | |
| 7303 func_stripname () | |
| 7304 { | |
| 7305 case ${2} in | |
| 7306 .*) func_stripname_result=`$ECHO "X${3}" \ | |
| 7307 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; | |
| 7308 *) func_stripname_result=`$ECHO "X${3}" \ | |
| 7309 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; | |
| 7310 esac | |
| 7311 } | |
| 7312 | |
| 7313 # sed scripts: | |
| 7314 my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q' | |
| 7315 my_sed_long_arg='1s/^-[[^=]]*=//' | |
| 7316 | |
| 7317 # func_opt_split | |
| 7318 func_opt_split () | |
| 7319 { | |
| 7320 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` | |
| 7321 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` | |
| 7322 } | |
| 7323 | |
| 7324 # func_lo2o object | |
| 7325 func_lo2o () | |
| 7326 { | |
| 7327 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` | |
| 7328 } | |
| 7329 | |
| 7330 # func_xform libobj-or-source | |
| 7331 func_xform () | |
| 7332 { | |
| 7333 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'` | |
| 7334 } | |
| 7335 | |
| 7336 # func_arith arithmetic-term... | |
| 7337 func_arith () | |
| 7338 { | |
| 7339 func_arith_result=`expr "$[@]"` | |
| 7340 } | |
| 7341 | |
| 7342 # func_len string | |
| 7343 # STRING may not start with a hyphen. | |
| 7344 func_len () | |
| 7345 { | |
| 7346 func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len` | |
| 7347 } | |
| 7348 | |
| 7349 _LT_EOF | |
| 7350 esac | 8366 esac |
| 7351 | |
| 7352 case $lt_shell_append in | |
| 7353 yes) | |
| 7354 cat << \_LT_EOF >> "$cfgfile" | |
| 7355 | |
| 7356 # func_append var value | |
| 7357 # Append VALUE to the end of shell variable VAR. | |
| 7358 func_append () | |
| 7359 { | |
| 7360 eval "$[1]+=\$[2]" | |
| 7361 } | |
| 7362 _LT_EOF | |
| 7363 ;; | |
| 7364 *) | |
| 7365 cat << \_LT_EOF >> "$cfgfile" | |
| 7366 | |
| 7367 # func_append var value | |
| 7368 # Append VALUE to the end of shell variable VAR. | |
| 7369 func_append () | |
| 7370 { | |
| 7371 eval "$[1]=\$$[1]\$[2]" | |
| 7372 } | |
| 7373 | |
| 7374 _LT_EOF | |
| 7375 ;; | |
| 7376 esac | |
| 7377 ]) | 8367 ]) |
| 8368 to_tool_file_cmd=$lt_cv_to_tool_file_cmd |
| 8369 AC_MSG_RESULT([$lt_cv_to_tool_file_cmd]) |
| 8370 _LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd], |
| 8371 [0], [convert $build files to toolchain format])dnl |
| 8372 ])# _LT_PATH_CONVERSION_FUNCTIONS |
| OLD | NEW |