Changeset 18603 for trunk/FACT++/.macro_dir
- Timestamp:
- 09/17/16 18:59:54 (8 years ago)
- Location:
- trunk/FACT++/.macro_dir
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/.macro_dir/libtool.m4
r12832 r18603 1 1 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- 2 2 # 3 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 4 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation, 5 # Inc. 3 # Copyright (C) 1996-2001, 2003-2015 Free Software Foundation, Inc. 6 4 # Written by Gordon Matzigkeit, 1996 7 5 # … … 11 9 12 10 m4_define([_LT_COPYING], [dnl 13 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 14 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation, 15 # Inc. 16 # Written by Gordon Matzigkeit, 1996 11 # Copyright (C) 2014 Free Software Foundation, Inc. 12 # This is free software; see the source for copying conditions. There is NO 13 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 14 15 # GNU Libtool is free software; you can redistribute it and/or modify 16 # it under the terms of the GNU General Public License as published by 17 # the Free Software Foundation; either version 2 of of the License, or 18 # (at your option) any later version. 17 19 # 18 # This file is part of GNU Libtool. 20 # As a special exception to the GNU General Public License, if you 21 # distribute this file as part of a program or library that is built 22 # using GNU Libtool, you may include this file under the same 23 # distribution terms that you use for the rest of that program. 19 24 # 20 # GNU Libtool is free software; you can redistribute it and/or 21 # modify it under the terms of the GNU General Public License as 22 # published by the Free Software Foundation; either version 2 of 23 # the License, or (at your option) any later version. 24 # 25 # As a special exception to the GNU General Public License, 26 # if you distribute this file as part of a program or library that 27 # is built using GNU Libtool, you may include this file under the 28 # same distribution terms that you use for the rest of that program. 29 # 30 # GNU Libtool is distributed in the hope that it will be useful, 31 # but WITHOUT ANY WARRANTY; without even the implied warranty of 25 # GNU Libtool is distributed in the hope that it will be useful, but 26 # WITHOUT ANY WARRANTY; without even the implied warranty of 32 27 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 33 28 # GNU General Public License for more details. 34 29 # 35 30 # You should have received a copy of the GNU General Public License 36 # along with GNU Libtool; see the file COPYING. If not, a copy 37 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or 38 # obtained by writing to the Free Software Foundation, Inc., 39 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 31 # along with this program. If not, see <http://www.gnu.org/licenses/>. 40 32 ]) 41 33 42 # serial 5 7LT_INIT34 # serial 58 LT_INIT 43 35 44 36 … … 68 60 # ------------------ 69 61 AC_DEFUN([LT_INIT], 70 [AC_PREREQ([2. 58])dnl We use AC_INCLUDES_DEFAULT62 [AC_PREREQ([2.62])dnl We use AC_PATH_PROGS_FEATURE_CHECK 71 63 AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl 72 64 AC_BEFORE([$0], [LT_LANG])dnl … … 92 84 93 85 # This can be used to rebuild libtool when needed 94 LIBTOOL_DEPS= "$ltmain"86 LIBTOOL_DEPS=$ltmain 95 87 96 88 # Always use our own libtool. … … 112 104 113 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 114 125 # _LT_CC_BASENAME(CC) 115 126 # ------------------- 116 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 127 # It would be clearer to call AC_REQUIREs from _LT_PREPARE_CC_BASENAME, 128 # but that macro is also expanded into generated libtool script, which 129 # arranges for $SED and $ECHO to be set by different means. 117 130 m4_defun([_LT_CC_BASENAME], 118 [for cc_temp in $1""; do 119 case $cc_temp in 120 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; 121 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; 122 \-*) ;; 123 *) break;; 124 esac 125 done 126 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 131 [m4_require([_LT_PREPARE_CC_BASENAME])dnl 132 AC_REQUIRE([_LT_DECL_SED])dnl 133 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl 134 func_cc_basename $1 135 cc_basename=$func_cc_basename_result 127 136 ]) 128 137 … … 131 140 # ---------------------- 132 141 # It is okay to use these file commands and assume they have been set 133 # sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.142 # sensibly after 'm4_require([_LT_FILEUTILS_DEFAULTS])'. 134 143 m4_defun([_LT_FILEUTILS_DEFAULTS], 135 144 [: ${CP="cp -f"} … … 147 156 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl 148 157 158 _LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl 159 dnl 149 160 _LT_DECL([], [host_alias], [0], [The host system])dnl 150 161 _LT_DECL([], [host], [0])dnl … … 176 187 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl 177 188 m4_require([_LT_WITH_SYSROOT])dnl 189 m4_require([_LT_CMD_TRUNCATE])dnl 178 190 179 191 _LT_CONFIG_LIBTOOL_INIT([ 180 # See if we are running on zsh, and set the options whichallow our192 # See if we are running on zsh, and set the options that allow our 181 193 # commands through without removal of \ escapes INIT. 182 if test -n "\${ZSH_VERSION+set}" 194 if test -n "\${ZSH_VERSION+set}"; then 183 195 setopt NO_GLOB_SUBST 184 196 fi 185 197 ]) 186 if test -n "${ZSH_VERSION+set}" 198 if test -n "${ZSH_VERSION+set}"; then 187 199 setopt NO_GLOB_SUBST 188 200 fi … … 197 209 # reason, if we set the COLLECT_NAMES environment variable, the problems 198 210 # vanish in a puff of smoke. 199 if test "X${COLLECT_NAMES+set}" != Xset; then211 if test set != "${COLLECT_NAMES+set}"; then 200 212 COLLECT_NAMES= 201 213 export COLLECT_NAMES … … 208 220 can_build_shared=yes 209 221 210 # 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, 211 223 # which needs '.lib'). 212 224 libext=a 213 225 214 with_gnu_ld= "$lt_cv_prog_gnu_ld"215 216 old_CC= "$CC"217 old_CFLAGS= "$CFLAGS"226 with_gnu_ld=$lt_cv_prog_gnu_ld 227 228 old_CC=$CC 229 old_CFLAGS=$CFLAGS 218 230 219 231 # Set sane defaults for various variables … … 268 280 # _LT_PROG_LTMAIN 269 281 # --------------- 270 # 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' 271 283 # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably, 272 # `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, 273 285 # so we pass a copy along to make sure it has a sensible value anyway. 274 286 m4_defun([_LT_PROG_LTMAIN], 275 287 [m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl 276 288 _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir']) 277 ltmain= "$ac_aux_dir/ltmain.sh"289 ltmain=$ac_aux_dir/ltmain.sh 278 290 ])# _LT_PROG_LTMAIN 279 291 … … 285 297 # So that we can recreate a full libtool script including additional 286 298 # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS 287 # 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' 288 300 # label. 289 301 … … 420 432 # _LT_CONFIG_STATUS_DECLARE([VARNAME]) 421 433 # ------------------------------------ 422 # Quote a variable value, and forward it to `config.status' so that its423 # declaration there will have the same value as in `configure'. VARNAME434 # Quote a variable value, and forward it to 'config.status' so that its 435 # declaration there will have the same value as in 'configure'. VARNAME 424 436 # must have a single quote delimited value for this to work. 425 437 m4_define([_LT_CONFIG_STATUS_DECLARE], … … 445 457 m4_defun([_LT_LIBTOOL_TAGS], 446 458 [_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl 447 available_tags= "_LT_TAGS"dnl459 available_tags='_LT_TAGS'dnl 448 460 ]) 449 461 … … 473 485 # ----------------------- 474 486 # Produce commented declarations of non-tagged libtool config variables 475 # suitable for insertion in the LIBTOOL CONFIG section of the `libtool'487 # suitable for insertion in the LIBTOOL CONFIG section of the 'libtool' 476 488 # script. Tagged libtool config variables (even for the LIBTOOL CONFIG 477 489 # section) are produced by _LT_LIBTOOL_TAG_VARS. … … 499 511 # variables for single and double quote escaping we saved from calls 500 512 # to _LT_DECL, we can put quote escaped variables declarations 501 # into `config.status', and then the shell code to quote escape them in502 # for loops in `config.status'. Finally, any additional code accumulated513 # into 'config.status', and then the shell code to quote escape them in 514 # for loops in 'config.status'. Finally, any additional code accumulated 503 515 # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded. 504 516 m4_defun([_LT_CONFIG_COMMANDS], … … 546 558 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 547 559 *[[\\\\\\\`\\"\\\$]]*) 548 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 560 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 549 561 ;; 550 562 *) … … 559 571 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 560 572 *[[\\\\\\\`\\"\\\$]]*) 561 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 573 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 562 574 ;; 563 575 *) … … 575 587 # reuse the environment learned by the parent script, and make the 576 588 # file executable. If COMMENT is supplied, it is inserted after the 577 # `#!' sequence but before initialization text begins. After this589 # '#!' sequence but before initialization text begins. After this 578 590 # macro, additional text can be appended to FILE to form the body of 579 591 # the child script. The macro ends with non-zero status if the … … 597 609 exec AS_MESSAGE_FD>&1 598 610 _ASEOF 599 test $lt_write_fail = 0&& chmod +x $1[]dnl611 test 0 = "$lt_write_fail" && chmod +x $1[]dnl 600 612 m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT 601 613 … … 620 632 621 633 lt_cl_help="\ 622 \`$as_me' creates a local libtool stub from the current configuration,634 '$as_me' creates a local libtool stub from the current configuration, 623 635 for use in further configure time tests before the real libtool is 624 636 generated. … … 638 650 configured by $[0], generated by m4_PACKAGE_STRING. 639 651 640 Copyright (C) 201 0Free Software Foundation, Inc.652 Copyright (C) 2011 Free Software Foundation, Inc. 641 653 This config.lt script is free software; the Free Software Foundation 642 654 gives unlimited permision to copy, distribute and modify it." 643 655 644 while test $[#] != 0656 while test 0 != $[#] 645 657 do 646 658 case $[1] in … … 655 667 656 668 -*) AC_MSG_ERROR([unrecognized option: $[1] 657 Try \`$[0] --help' for more information.]) ;;669 Try '$[0] --help' for more information.]) ;; 658 670 659 671 *) AC_MSG_ERROR([unrecognized argument: $[1] 660 Try \`$[0] --help' for more information.]) ;;672 Try '$[0] --help' for more information.]) ;; 661 673 esac 662 674 shift … … 684 696 # config.log, so it can be properly (re)opened and appended to by config.lt. 685 697 lt_cl_success=: 686 test "$silent" = yes&&698 test yes = "$silent" && 687 699 lt_config_lt_args="$lt_config_lt_args --quiet" 688 700 exec AS_MESSAGE_LOG_FD>/dev/null … … 704 716 m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl 705 717 m4_if(_LT_TAG, [C], [ 706 # See if we are running on zsh, and set the options whichallow our718 # See if we are running on zsh, and set the options that allow our 707 719 # commands through without removal of \ escapes. 708 if test -n "${ZSH_VERSION+set}" 720 if test -n "${ZSH_VERSION+set}"; then 709 721 setopt NO_GLOB_SUBST 710 722 fi 711 723 712 cfgfile= "${ofile}T"724 cfgfile=${ofile}T 713 725 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 714 726 $RM "$cfgfile" … … 716 728 cat <<_LT_EOF >> "$cfgfile" 717 729 #! $SHELL 718 719 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 720 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 730 # Generated automatically by $as_me ($PACKAGE) $VERSION 721 731 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 722 732 # NOTE: Changes made to this file will be lost: look at ltmain.sh. 723 # 733 734 # Provide generalized library-building support services. 735 # Written by Gordon Matzigkeit, 1996 736 724 737 _LT_COPYING 725 738 _LT_LIBTOOL_TAGS 739 740 # Configured defaults for sys_lib_dlsearch_path munging. 741 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 726 742 727 743 # ### BEGIN LIBTOOL CONFIG … … 729 745 _LT_LIBTOOL_TAG_VARS 730 746 # ### END LIBTOOL CONFIG 747 748 _LT_EOF 749 750 cat <<'_LT_EOF' >> "$cfgfile" 751 752 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 753 754 _LT_PREPARE_MUNGE_PATH_LIST 755 _LT_PREPARE_CC_BASENAME 756 757 # ### END FUNCTIONS SHARED WITH CONFIGURE 731 758 732 759 _LT_EOF … … 738 765 # reason, if we set the COLLECT_NAMES environment variable, the problems 739 766 # vanish in a puff of smoke. 740 if test "X${COLLECT_NAMES+set}" != Xset; then767 if test set != "${COLLECT_NAMES+set}"; then 741 768 COLLECT_NAMES= 742 769 export COLLECT_NAMES … … 754 781 sed '$q' "$ltmain" >> "$cfgfile" \ 755 782 || (rm -f "$cfgfile"; exit 1) 756 757 _LT_PROG_REPLACE_SHELLFNS758 783 759 784 mv -f "$cfgfile" "$ofile" || … … 774 799 PACKAGE='$PACKAGE' 775 800 VERSION='$VERSION' 776 TIMESTAMP='$TIMESTAMP'777 801 RM='$RM' 778 802 ofile='$ofile'], []) … … 802 826 [C], [_LT_LANG(C)], 803 827 [C++], [_LT_LANG(CXX)], 828 [Go], [_LT_LANG(GO)], 804 829 [Java], [_LT_LANG(GCJ)], 805 830 [Fortran 77], [_LT_LANG(F77)], … … 821 846 _LT_LANG_$1_CONFIG($1)])dnl 822 847 ])# _LT_LANG 848 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 823 873 824 874 … … 852 902 m4_ifdef([LT_PROG_GCJ], 853 903 [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])]) 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)])]) 854 908 855 909 AC_PROVIDE_IFELSE([LT_PROG_RC], … … 943 997 AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod], 944 998 [lt_cv_apple_cc_single_mod=no 945 if test -z "$ {LT_MULTI_MODULE}"; then999 if test -z "$LT_MULTI_MODULE"; then 946 1000 # By default we will add the -single_module flag. You can override 947 1001 # by either setting the environment variable LT_MULTI_MODULE … … 955 1009 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 956 1010 _lt_result=$? 957 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 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 958 1018 lt_cv_apple_cc_single_mod=yes 959 1019 else … … 963 1023 rm -f conftest.* 964 1024 fi]) 1025 965 1026 AC_CACHE_CHECK([for -exported_symbols_list linker flag], 966 1027 [lt_cv_ld_exported_symbols_list], … … 972 1033 [lt_cv_ld_exported_symbols_list=yes], 973 1034 [lt_cv_ld_exported_symbols_list=no]) 974 LDFLAGS= "$save_LDFLAGS"1035 LDFLAGS=$save_LDFLAGS 975 1036 ]) 1037 976 1038 AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load], 977 1039 [lt_cv_ld_force_load=no … … 991 1053 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 992 1054 _lt_result=$? 993 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then 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 conftest >/dev/null 2>&1; then 994 1058 lt_cv_ld_force_load=yes 995 1059 else … … 1001 1065 case $host_os in 1002 1066 rhapsody* | darwin1.[[012]]) 1003 _lt_dar_allow_undefined='$ {wl}-undefined ${wl}suppress' ;;1067 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 1004 1068 darwin1.*) 1005 _lt_dar_allow_undefined='$ {wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;1069 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 1006 1070 darwin*) # darwin 5.x on 1007 1071 # if running on 10.5 or later, the deployment target defaults … … 1010 1074 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 1011 1075 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*) 1012 _lt_dar_allow_undefined='$ {wl}-undefined ${wl}dynamic_lookup' ;;1013 10.[[012]] *)1014 _lt_dar_allow_undefined='$ {wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;1076 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 1077 10.[[012]][[,.]]*) 1078 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 1015 1079 10.*) 1016 _lt_dar_allow_undefined='$ {wl}-undefined ${wl}dynamic_lookup' ;;1080 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 1017 1081 esac 1018 1082 ;; 1019 1083 esac 1020 if test "$lt_cv_apple_cc_single_mod" = "yes"; then1084 if test yes = "$lt_cv_apple_cc_single_mod"; then 1021 1085 _lt_dar_single_mod='$single_module' 1022 1086 fi 1023 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then1024 _lt_dar_export_syms=' $ {wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'1087 if test yes = "$lt_cv_ld_exported_symbols_list"; then 1088 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 1025 1089 else 1026 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$ {libname}-symbols.expsym ${lib}'1090 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 1027 1091 fi 1028 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then1092 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 1029 1093 _lt_dsymutil='~$DSYMUTIL $lib || :' 1030 1094 else … … 1036 1100 1037 1101 1038 # _LT_DARWIN_LINKER_FEATURES 1039 # -------------------------- 1102 # _LT_DARWIN_LINKER_FEATURES([TAG]) 1103 # --------------------------------- 1040 1104 # Checks for linker and compiler features on darwin 1041 1105 m4_defun([_LT_DARWIN_LINKER_FEATURES], … … 1046 1110 _LT_TAGVAR(hardcode_automatic, $1)=yes 1047 1111 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 1048 if test "$lt_cv_ld_force_load" = "yes"; then 1049 _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 1112 if test yes = "$lt_cv_ld_force_load"; then 1113 _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 1114 m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes], 1115 [FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes]) 1050 1116 else 1051 1117 _LT_TAGVAR(whole_archive_flag_spec, $1)='' 1052 1118 fi 1053 1119 _LT_TAGVAR(link_all_deplibs, $1)=yes 1054 _LT_TAGVAR(allow_undefined_flag, $1)= "$_lt_dar_allow_undefined"1120 _LT_TAGVAR(allow_undefined_flag, $1)=$_lt_dar_allow_undefined 1055 1121 case $cc_basename in 1056 ifort* ) _lt_dar_can_shared=yes ;;1122 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 1057 1123 *) _lt_dar_can_shared=$GCC ;; 1058 1124 esac 1059 if test "$_lt_dar_can_shared" = "yes"; then1125 if test yes = "$_lt_dar_can_shared"; then 1060 1126 output_verbose_link_cmd=func_echo_all 1061 _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$ {_lt_dsymutil}"1062 _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$ {_lt_dsymutil}"1063 _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's ,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"1064 _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's ,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"1127 _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 1128 _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 1129 _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil" 1130 _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil" 1065 1131 m4_if([$1], [CXX], 1066 [ if test "$lt_cv_apple_cc_single_mod" != "yes"; then1067 _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \$ {lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"1068 _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's ,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"1132 [ if test yes != "$lt_cv_apple_cc_single_mod"; then 1133 _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil" 1134 _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil" 1069 1135 fi 1070 1136 ],[]) … … 1086 1152 m4_defun([_LT_SYS_MODULE_PATH_AIX], 1087 1153 [m4_require([_LT_DECL_SED])dnl 1088 if test "${lt_cv_aix_libpath+set}" = set; then1154 if test set = "${lt_cv_aix_libpath+set}"; then 1089 1155 aix_libpath=$lt_cv_aix_libpath 1090 1156 else … … 1104 1170 fi],[]) 1105 1171 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then 1106 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])= "/usr/lib:/lib"1172 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=/usr/lib:/lib 1107 1173 fi 1108 1174 ]) … … 1124 1190 # Find how we can fake an echo command that does not interpret backslash. 1125 1191 # In particular, with Autoconf 2.60 or later we add some code to the start 1126 # of the generated configure script whichwill find a shell with a builtin1127 # printf ( whichwe can use as an echo command).1192 # of the generated configure script that will find a shell with a builtin 1193 # printf (that we can use as an echo command). 1128 1194 m4_defun([_LT_PROG_ECHO_BACKSLASH], 1129 1195 [ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' … … 1153 1219 func_echo_all () 1154 1220 { 1155 $ECHO "$*" 1221 $ECHO "$*" 1156 1222 } 1157 1223 1158 case "$ECHO"in1224 case $ECHO in 1159 1225 printf*) AC_MSG_RESULT([printf]) ;; 1160 1226 print*) AC_MSG_RESULT([print -r]) ;; … … 1182 1248 [AC_MSG_CHECKING([for sysroot]) 1183 1249 AC_ARG_WITH([sysroot], 1184 [ --with-sysroot[=DIR] Search for dependent libraries within DIR 1185 (or the compiler's sysroot if not specified).], 1250 [AS_HELP_STRING([--with-sysroot@<:@=DIR@:>@], 1251 [Search for dependent libraries within DIR (or the compiler's sysroot 1252 if not specified).])], 1186 1253 [], [with_sysroot=no]) 1187 1254 … … 1189 1256 dnl in case the user passed a directory name. 1190 1257 lt_sysroot= 1191 case $ {with_sysroot}in #(1258 case $with_sysroot in #( 1192 1259 yes) 1193 if test "$GCC" = yes; then1260 if test yes = "$GCC"; then 1194 1261 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 1195 1262 fi … … 1201 1268 ;; #( 1202 1269 *) 1203 AC_MSG_RESULT([$ {with_sysroot}])1270 AC_MSG_RESULT([$with_sysroot]) 1204 1271 AC_MSG_ERROR([The sysroot must be an absolute path.]) 1205 1272 ;; … … 1208 1275 AC_MSG_RESULT([${lt_sysroot:-no}]) 1209 1276 _LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl 1210 [dependent libraries, and in whichour libraries should be installed.])])1277 [dependent libraries, and where our libraries should be installed.])]) 1211 1278 1212 1279 # _LT_ENABLE_LOCK … … 1216 1283 [AS_HELP_STRING([--disable-libtool-lock], 1217 1284 [avoid locking (might break parallel builds)])]) 1218 test "x$enable_libtool_lock" != xno &&enable_libtool_lock=yes1285 test no = "$enable_libtool_lock" || enable_libtool_lock=yes 1219 1286 1220 1287 # Some flags need to be propagated to the compiler or linker for good … … 1222 1289 case $host in 1223 1290 ia64-*-hpux*) 1224 # Find out which ABI we are using. 1291 # Find out what ABI is being produced by ac_compile, and set mode 1292 # options accordingly. 1225 1293 echo 'int i;' > conftest.$ac_ext 1226 1294 if AC_TRY_EVAL(ac_compile); then 1227 1295 case `/usr/bin/file conftest.$ac_objext` in 1228 1296 *ELF-32*) 1229 HPUX_IA64_MODE= "32"1297 HPUX_IA64_MODE=32 1230 1298 ;; 1231 1299 *ELF-64*) 1232 HPUX_IA64_MODE= "64"1300 HPUX_IA64_MODE=64 1233 1301 ;; 1234 1302 esac … … 1237 1305 ;; 1238 1306 *-*-irix6*) 1239 # Find out which ABI we are using. 1307 # Find out what ABI is being produced by ac_compile, and set linker 1308 # options accordingly. 1240 1309 echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext 1241 1310 if AC_TRY_EVAL(ac_compile); then 1242 if test "$lt_cv_prog_gnu_ld" = yes; then1311 if test yes = "$lt_cv_prog_gnu_ld"; then 1243 1312 case `/usr/bin/file conftest.$ac_objext` in 1244 1313 *32-bit*) … … 1269 1338 ;; 1270 1339 1271 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*| \ 1272 1373 s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 1273 # 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. 1274 1380 echo 'int i;' > conftest.$ac_ext 1275 1381 if AC_TRY_EVAL(ac_compile); then … … 1281 1387 ;; 1282 1388 x86_64-*linux*) 1283 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 1284 1397 ;; 1285 ppc64-*linux*|powerpc64-*linux*) 1398 powerpc64le-*linux*) 1399 LD="${LD-ld} -m elf32lppclinux" 1400 ;; 1401 powerpc64-*linux*) 1286 1402 LD="${LD-ld} -m elf32ppclinux" 1287 1403 ;; … … 1302 1418 LD="${LD-ld} -m elf_x86_64" 1303 1419 ;; 1304 ppc*-*linux*|powerpc*-*linux*) 1420 powerpcle-*linux*) 1421 LD="${LD-ld} -m elf64lppc" 1422 ;; 1423 powerpc-*linux*) 1305 1424 LD="${LD-ld} -m elf64ppc" 1306 1425 ;; … … 1320 1439 *-*-sco3.2v5*) 1321 1440 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 1322 SAVE_CFLAGS= "$CFLAGS"1441 SAVE_CFLAGS=$CFLAGS 1323 1442 CFLAGS="$CFLAGS -belf" 1324 1443 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, … … 1326 1445 AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) 1327 1446 AC_LANG_POP]) 1328 if test x"$lt_cv_cc_needs_belf" != x"yes"; then1447 if test yes != "$lt_cv_cc_needs_belf"; then 1329 1448 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 1330 CFLAGS= "$SAVE_CFLAGS"1449 CFLAGS=$SAVE_CFLAGS 1331 1450 fi 1332 1451 ;; 1333 sparc*-*solaris*) 1334 # Find out which ABI we are using. 1452 *-*solaris*) 1453 # Find out what ABI is being produced by ac_compile, and set linker 1454 # options accordingly. 1335 1455 echo 'int i;' > conftest.$ac_ext 1336 1456 if AC_TRY_EVAL(ac_compile); then … … 1338 1458 *64-bit*) 1339 1459 case $lt_cv_prog_gnu_ld in 1340 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 ;; 1341 1474 *) 1342 1475 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then … … 1352 1485 esac 1353 1486 1354 need_locks= "$enable_libtool_lock"1487 need_locks=$enable_libtool_lock 1355 1488 ])# _LT_ENABLE_LOCK 1356 1489 … … 1371 1504 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD' 1372 1505 AC_TRY_EVAL([lt_ar_try]) 1373 if test "$ac_status" -eq 0; then1506 if test 0 -eq "$ac_status"; then 1374 1507 # Ensure the archiver fails upon bogus file names. 1375 1508 rm -f conftest.$ac_objext libconftest.a 1376 1509 AC_TRY_EVAL([lt_ar_try]) 1377 if test "$ac_status" -ne 0; then1510 if test 0 -ne "$ac_status"; then 1378 1511 lt_cv_ar_at_file=@ 1379 1512 fi … … 1383 1516 ]) 1384 1517 1385 if test "x$lt_cv_ar_at_file" = xno; then1518 if test no = "$lt_cv_ar_at_file"; then 1386 1519 archiver_list_spec= 1387 1520 else … … 1414 1547 if test -n "$RANLIB"; then 1415 1548 case $host_os in 1416 openbsd*)1417 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$ oldlib"1549 bitrig* | openbsd*) 1550 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 1418 1551 ;; 1419 1552 *) 1420 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$ oldlib"1553 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 1421 1554 ;; 1422 1555 esac 1423 old_archive_cmds="$old_archive_cmds~\$RANLIB \$ oldlib"1556 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 1424 1557 fi 1425 1558 … … 1450 1583 m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) 1451 1584 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 1452 lt_compiler_flag="$3" 1585 lt_compiler_flag="$3" ## exclude from sc_useless_quotes_in_assignment 1453 1586 # Insert the option either (1) after the last *FLAGS variable, or 1454 1587 # (2) before a word containing "conftest.", or (3) at the end. … … 1477 1610 ]) 1478 1611 1479 if test x"[$]$2" = xyes; then1612 if test yes = "[$]$2"; then 1480 1613 m4_if([$5], , :, [$5]) 1481 1614 else … … 1499 1632 AC_CACHE_CHECK([$1], [$2], 1500 1633 [$2=no 1501 save_LDFLAGS= "$LDFLAGS"1634 save_LDFLAGS=$LDFLAGS 1502 1635 LDFLAGS="$LDFLAGS $3" 1503 1636 echo "$lt_simple_link_test_code" > conftest.$ac_ext … … 1518 1651 fi 1519 1652 $RM -r conftest* 1520 LDFLAGS= "$save_LDFLAGS"1653 LDFLAGS=$save_LDFLAGS 1521 1654 ]) 1522 1655 1523 if test x"[$]$2" = xyes; then1656 if test yes = "[$]$2"; then 1524 1657 m4_if([$4], , :, [$4]) 1525 1658 else … … 1542 1675 AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl 1543 1676 i=0 1544 teststring= "ABCD"1677 teststring=ABCD 1545 1678 1546 1679 case $build_os in … … 1582 1715 ;; 1583 1716 1584 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)1717 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 1585 1718 # This has been around since 386BSD, at least. Likely further. 1586 1719 if test -x /sbin/sysctl; then … … 1599 1732 # We know the value 262144 and hardcode it with a safety zone (like BSD) 1600 1733 lt_cv_sys_max_cmd_len=196608 1734 ;; 1735 1736 os2*) 1737 # The test takes a long time on OS/2. 1738 lt_cv_sys_max_cmd_len=8192 1601 1739 ;; 1602 1740 … … 1627 1765 *) 1628 1766 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 1629 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 1630 1769 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 1631 1770 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` … … 1633 1772 # Make teststring a little bigger before we do anything with it. 1634 1773 # a 1K string should be a reasonable start. 1635 for i in 1 2 3 4 5 6 7 8 1774 for i in 1 2 3 4 5 6 7 8; do 1636 1775 teststring=$teststring$teststring 1637 1776 done … … 1640 1779 # maximum length that is only half of the actual maximum length, but 1641 1780 # we can't tell. 1642 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \1781 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 1643 1782 = "X$teststring$teststring"; } >/dev/null 2>&1 && 1644 test $i != 17# 1/2 MB should be enough1783 test 17 != "$i" # 1/2 MB should be enough 1645 1784 do 1646 1785 i=`expr $i + 1` … … 1658 1797 esac 1659 1798 ]) 1660 if test -n $lt_cv_sys_max_cmd_len; then1799 if test -n "$lt_cv_sys_max_cmd_len"; then 1661 1800 AC_MSG_RESULT($lt_cv_sys_max_cmd_len) 1662 1801 else … … 1686 1825 m4_defun([_LT_TRY_DLOPEN_SELF], 1687 1826 [m4_require([_LT_HEADER_DLFCN])dnl 1688 if test "$cross_compiling" = yes; then :1827 if test yes = "$cross_compiling"; then : 1689 1828 [$4] 1690 1829 else … … 1733 1872 #endif 1734 1873 1735 /* When -fvis bility=hidden is used, assume the code has been annotated1874 /* When -fvisibility=hidden is used, assume the code has been annotated 1736 1875 correspondingly for the symbols needed. */ 1737 #if defined (__GNUC__)&& (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))1876 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 1738 1877 int fnord () __attribute__((visibility("default"))); 1739 1878 #endif … … 1761 1900 }] 1762 1901 _LT_EOF 1763 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}2>/dev/null; then1902 if AC_TRY_EVAL(ac_link) && test -s "conftest$ac_exeext" 2>/dev/null; then 1764 1903 (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null 1765 1904 lt_status=$? … … 1782 1921 AC_DEFUN([LT_SYS_DLOPEN_SELF], 1783 1922 [m4_require([_LT_HEADER_DLFCN])dnl 1784 if test "x$enable_dlopen" != xyes; then1923 if test yes != "$enable_dlopen"; then 1785 1924 enable_dlopen=unknown 1786 1925 enable_dlopen_self=unknown … … 1792 1931 case $host_os in 1793 1932 beos*) 1794 lt_cv_dlopen= "load_add_on"1933 lt_cv_dlopen=load_add_on 1795 1934 lt_cv_dlopen_libs= 1796 1935 lt_cv_dlopen_self=yes … … 1798 1937 1799 1938 mingw* | pw32* | cegcc*) 1800 lt_cv_dlopen= "LoadLibrary"1939 lt_cv_dlopen=LoadLibrary 1801 1940 lt_cv_dlopen_libs= 1802 1941 ;; 1803 1942 1804 1943 cygwin*) 1805 lt_cv_dlopen= "dlopen"1944 lt_cv_dlopen=dlopen 1806 1945 lt_cv_dlopen_libs= 1807 1946 ;; 1808 1947 1809 1948 darwin*) 1810 # if libdl is installed we need to link against it1949 # if libdl is installed we need to link against it 1811 1950 AC_CHECK_LIB([dl], [dlopen], 1812 [lt_cv_dlopen= "dlopen" lt_cv_dlopen_libs="-ldl"],[1813 lt_cv_dlopen= "dyld"1951 [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl],[ 1952 lt_cv_dlopen=dyld 1814 1953 lt_cv_dlopen_libs= 1815 1954 lt_cv_dlopen_self=yes … … 1817 1956 ;; 1818 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 1819 1966 *) 1820 1967 AC_CHECK_FUNC([shl_load], 1821 [lt_cv_dlopen= "shl_load"],1968 [lt_cv_dlopen=shl_load], 1822 1969 [AC_CHECK_LIB([dld], [shl_load], 1823 [lt_cv_dlopen= "shl_load" lt_cv_dlopen_libs="-ldld"],1970 [lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld], 1824 1971 [AC_CHECK_FUNC([dlopen], 1825 [lt_cv_dlopen= "dlopen"],1972 [lt_cv_dlopen=dlopen], 1826 1973 [AC_CHECK_LIB([dl], [dlopen], 1827 [lt_cv_dlopen= "dlopen" lt_cv_dlopen_libs="-ldl"],1974 [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl], 1828 1975 [AC_CHECK_LIB([svld], [dlopen], 1829 [lt_cv_dlopen= "dlopen" lt_cv_dlopen_libs="-lsvld"],1976 [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld], 1830 1977 [AC_CHECK_LIB([dld], [dld_link], 1831 [lt_cv_dlopen= "dld_link" lt_cv_dlopen_libs="-ldld"])1978 [lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld]) 1832 1979 ]) 1833 1980 ]) … … 1838 1985 esac 1839 1986 1840 if test "x$lt_cv_dlopen" != xno; then 1987 if test no = "$lt_cv_dlopen"; then 1988 enable_dlopen=no 1989 else 1841 1990 enable_dlopen=yes 1842 else1843 enable_dlopen=no1844 1991 fi 1845 1992 1846 1993 case $lt_cv_dlopen in 1847 1994 dlopen) 1848 save_CPPFLAGS= "$CPPFLAGS"1849 test "x$ac_cv_header_dlfcn_h" = xyes&& CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"1850 1851 save_LDFLAGS= "$LDFLAGS"1995 save_CPPFLAGS=$CPPFLAGS 1996 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 1997 1998 save_LDFLAGS=$LDFLAGS 1852 1999 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 1853 2000 1854 save_LIBS= "$LIBS"2001 save_LIBS=$LIBS 1855 2002 LIBS="$lt_cv_dlopen_libs $LIBS" 1856 2003 … … 1862 2009 ]) 1863 2010 1864 if test "x$lt_cv_dlopen_self" = xyes; then2011 if test yes = "$lt_cv_dlopen_self"; then 1865 2012 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 1866 2013 AC_CACHE_CHECK([whether a statically linked program can dlopen itself], … … 1872 2019 fi 1873 2020 1874 CPPFLAGS= "$save_CPPFLAGS"1875 LDFLAGS= "$save_LDFLAGS"1876 LIBS= "$save_LIBS"2021 CPPFLAGS=$save_CPPFLAGS 2022 LDFLAGS=$save_LDFLAGS 2023 LIBS=$save_LIBS 1877 2024 ;; 1878 2025 esac … … 1966 2113 _LT_COMPILER_C_O([$1]) 1967 2114 1968 hard_links= "nottested"1969 if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then2115 hard_links=nottested 2116 if test no = "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" && test no != "$need_locks"; then 1970 2117 # do not overwrite the value of need_locks provided by the user 1971 2118 AC_MSG_CHECKING([if we can lock with hard links]) … … 1977 2124 ln conftest.a conftest.b 2>/dev/null && hard_links=no 1978 2125 AC_MSG_RESULT([$hard_links]) 1979 if test "$hard_links" = no; then1980 AC_MSG_WARN([ `$CC' does not support `-c -o', so `make -j' may be unsafe])2126 if test no = "$hard_links"; then 2127 AC_MSG_WARN(['$CC' does not support '-c -o', so 'make -j' may be unsafe]) 1981 2128 need_locks=warn 1982 2129 fi … … 2005 2152 [The name of the directory that contains temporary libtool files])dnl 2006 2153 m4_pattern_allow([LT_OBJDIR])dnl 2007 AC_DEFINE_UNQUOTED( LT_OBJDIR, "$lt_cv_objdir/",2008 [Define to the sub-directory in whichlibtool stores uninstalled libraries.])2154 AC_DEFINE_UNQUOTED([LT_OBJDIR], "$lt_cv_objdir/", 2155 [Define to the sub-directory where libtool stores uninstalled libraries.]) 2009 2156 ])# _LT_CHECK_OBJDIR 2010 2157 … … 2018 2165 if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" || 2019 2166 test -n "$_LT_TAGVAR(runpath_var, $1)" || 2020 test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes"; then2167 test yes = "$_LT_TAGVAR(hardcode_automatic, $1)"; then 2021 2168 2022 2169 # We can hardcode non-existent directories. 2023 if test "$_LT_TAGVAR(hardcode_direct, $1)" != no&&2170 if test no != "$_LT_TAGVAR(hardcode_direct, $1)" && 2024 2171 # If the only mechanism to avoid hardcoding is shlibpath_var, we 2025 2172 # have to relink, otherwise we might link with an installed library 2026 2173 # when we should be linking with a yet-to-be-installed one 2027 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no&&2028 test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then2174 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" && 2175 test no != "$_LT_TAGVAR(hardcode_minus_L, $1)"; then 2029 2176 # Linking always hardcodes the temporary library directory. 2030 2177 _LT_TAGVAR(hardcode_action, $1)=relink … … 2040 2187 AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)]) 2041 2188 2042 if test "$_LT_TAGVAR(hardcode_action, $1)" = relink||2043 test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then2189 if test relink = "$_LT_TAGVAR(hardcode_action, $1)" || 2190 test yes = "$_LT_TAGVAR(inherit_rpath, $1)"; then 2044 2191 # Fast installation is not supported 2045 2192 enable_fast_install=no 2046 elif test "$shlibpath_overrides_runpath" = yes||2047 test "$enable_shared" = no; then2193 elif test yes = "$shlibpath_overrides_runpath" || 2194 test no = "$enable_shared"; then 2048 2195 # Fast installation is not necessary 2049 2196 enable_fast_install=needless … … 2069 2216 case $host_os in 2070 2217 darwin*) 2071 if test -n "$STRIP" 2218 if test -n "$STRIP"; then 2072 2219 striplib="$STRIP -x" 2073 2220 old_striplib="$STRIP -S" … … 2087 2234 2088 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 2089 2277 # _LT_SYS_DYNAMIC_LINKER([TAG]) 2090 2278 # ----------------------------- … … 2097 2285 m4_require([_LT_DECL_SED])dnl 2098 2286 m4_require([_LT_CHECK_SHELL_FEATURES])dnl 2287 m4_require([_LT_PREPARE_MUNGE_PATH_LIST])dnl 2099 2288 AC_MSG_CHECKING([dynamic linker characteristics]) 2100 2289 m4_if([$1], 2101 2290 [], [ 2102 if test "$GCC" = yes; then2291 if test yes = "$GCC"; then 2103 2292 case $host_os in 2104 darwin*) lt_awk_arg= "/^libraries:/,/LR/";;2105 *) lt_awk_arg= "/^libraries:/";;2293 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 2294 *) lt_awk_arg='/^libraries:/' ;; 2106 2295 esac 2107 2296 case $host_os in 2108 mingw* | cegcc*) lt_sed_strip_eq= "s,=\([[A-Za-z]]:\),\1,g";;2109 *) lt_sed_strip_eq= "s,=/,/,g";;2297 mingw* | cegcc*) lt_sed_strip_eq='s|=\([[A-Za-z]]:\)|\1|g' ;; 2298 *) lt_sed_strip_eq='s|=/|/|g' ;; 2110 2299 esac 2111 2300 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` … … 2123 2312 esac 2124 2313 # Ok, now we have the path, separated by spaces, we can step through it 2125 # and add multilib dir if necessary. 2314 # and add multilib dir if necessary... 2126 2315 lt_tmp_lt_search_path_spec= 2127 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 2316 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 2317 # ...but if some path component already ends with the multilib dir we assume 2318 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 2319 case "$lt_multi_os_dir; $lt_search_path_spec " in 2320 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 2321 lt_multi_os_dir= 2322 ;; 2323 esac 2128 2324 for lt_sys_path in $lt_search_path_spec; do 2129 if test -d "$lt_sys_path /$lt_multi_os_dir"; then2130 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path /$lt_multi_os_dir"2131 el se2325 if test -d "$lt_sys_path$lt_multi_os_dir"; then 2326 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 2327 elif test -n "$lt_multi_os_dir"; then 2132 2328 test -d "$lt_sys_path" && \ 2133 2329 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" … … 2135 2331 done 2136 2332 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 2137 BEGIN {RS =" "; FS="/|\n";} {2138 lt_foo ="";2139 lt_count =0;2333 BEGIN {RS = " "; FS = "/|\n";} { 2334 lt_foo = ""; 2335 lt_count = 0; 2140 2336 for (lt_i = NF; lt_i > 0; lt_i--) { 2141 2337 if ($lt_i != "" && $lt_i != ".") { … … 2144 2340 } else { 2145 2341 if (lt_count == 0) { 2146 lt_foo ="/" $lt_i lt_foo;2342 lt_foo = "/" $lt_i lt_foo; 2147 2343 } else { 2148 2344 lt_count--; … … 2158 2354 case $host_os in 2159 2355 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 2160 $SED 's ,/\([[A-Za-z]]:\),\1,g'` ;;2356 $SED 's|/\([[A-Za-z]]:\)|\1|g'` ;; 2161 2357 esac 2162 2358 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` … … 2167 2363 libname_spec='lib$name' 2168 2364 soname_spec= 2169 shrext_cmds= ".so"2365 shrext_cmds=.so 2170 2366 postinstall_cmds= 2171 2367 postuninstall_cmds= … … 2184 2380 need_version=unknown 2185 2381 2382 AC_ARG_VAR([LT_SYS_LIBRARY_PATH], 2383 [User-defined run-time library search path.]) 2384 2186 2385 case $host_os in 2187 2386 aix3*) 2188 version_type=linux 2189 library_names_spec='$ {libname}${release}${shared_ext}$versuffix $libname.a'2387 version_type=linux # correct to gnu/linux during the next big refactor 2388 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 2190 2389 shlibpath_var=LIBPATH 2191 2390 2192 2391 # AIX 3 has no versioning support, so we append a major version to the name. 2193 soname_spec='$ {libname}${release}${shared_ext}$major'2392 soname_spec='$libname$release$shared_ext$major' 2194 2393 ;; 2195 2394 2196 2395 aix[[4-9]]*) 2197 version_type=linux 2396 version_type=linux # correct to gnu/linux during the next big refactor 2198 2397 need_lib_prefix=no 2199 2398 need_version=no 2200 2399 hardcode_into_libs=yes 2201 if test "$host_cpu" = ia64; then2400 if test ia64 = "$host_cpu"; then 2202 2401 # AIX 5 supports IA64 2203 library_names_spec='$ {libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'2402 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 2204 2403 shlibpath_var=LD_LIBRARY_PATH 2205 2404 else 2206 2405 # With GCC up to 2.95.x, collect2 would create an import file 2207 2406 # for dependence libraries. The import file would start with 2208 # the line `#! .'. This would cause the generated library to2209 # depend on `.', always an invalid library. This was fixed in2407 # the line '#! .'. This would cause the generated library to 2408 # depend on '.', always an invalid library. This was fixed in 2210 2409 # development snapshots of GCC prior to 3.0. 2211 2410 case $host_os in … … 2213 2412 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 2214 2413 echo ' yes ' 2215 echo '#endif'; } | $ {CC}-E - | $GREP yes > /dev/null; then2414 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 2216 2415 : 2217 2416 else … … 2220 2419 ;; 2221 2420 esac 2222 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 2421 # Using Import Files as archive members, it is possible to support 2422 # filename-based versioning of shared library archives on AIX. While 2423 # this would work for both with and without runtime linking, it will 2424 # prevent static linking of such archives. So we do filename-based 2425 # shared library versioning with .so extension only, which is used 2426 # when both runtime linking and shared linking is enabled. 2427 # Unfortunately, runtime linking may impact performance, so we do 2428 # not want this to be the default eventually. Also, we use the 2429 # versioned .so libs for executables only if there is the -brtl 2430 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 2431 # To allow for filename-based versioning support, we need to create 2432 # libNAME.so.V as an archive file, containing: 2433 # *) an Import File, referring to the versioned filename of the 2434 # archive as well as the shared archive member, telling the 2435 # bitwidth (32 or 64) of that shared object, and providing the 2436 # list of exported symbols of that shared object, eventually 2437 # decorated with the 'weak' keyword 2438 # *) the shared object with the F_LOADONLY flag set, to really avoid 2439 # it being seen by the linker. 2440 # At run time we better use the real file rather than another symlink, 2441 # but for link time we create the symlink libNAME.so -> libNAME.so.V 2442 2443 case $with_aix_soname,$aix_use_runtimelinking in 2444 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 2223 2445 # soname into executable. Probably we can add versioning support to 2224 2446 # collect2, so additional links can be useful in future. 2225 if test "$aix_use_runtimelinking" = yes; then 2447 aix,yes) # traditional libtool 2448 dynamic_linker='AIX unversionable lib.so' 2226 2449 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 2227 2450 # instead of lib<name>.a to let people know that these are not 2228 2451 # typical AIX shared libraries. 2229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2230 else 2452 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 2453 ;; 2454 aix,no) # traditional AIX only 2455 dynamic_linker='AIX lib.a[(]lib.so.V[)]' 2231 2456 # We preserve .a as extension for shared libraries through AIX4.2 2232 2457 # and later when we are not doing run time linking. 2233 library_names_spec='${libname}${release}.a $libname.a' 2234 soname_spec='${libname}${release}${shared_ext}$major' 2235 fi 2458 library_names_spec='$libname$release.a $libname.a' 2459 soname_spec='$libname$release$shared_ext$major' 2460 ;; 2461 svr4,*) # full svr4 only 2462 dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)]" 2463 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 2464 # We do not specify a path in Import Files, so LIBPATH fires. 2465 shlibpath_overrides_runpath=yes 2466 ;; 2467 *,yes) # both, prefer svr4 2468 dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)], lib.a[(]lib.so.V[)]" 2469 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 2470 # unpreferred sharedlib libNAME.a needs extra handling 2471 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 2472 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 2473 # We do not specify a path in Import Files, so LIBPATH fires. 2474 shlibpath_overrides_runpath=yes 2475 ;; 2476 *,no) # both, prefer aix 2477 dynamic_linker="AIX lib.a[(]lib.so.V[)], lib.so.V[(]$shared_archive_member_spec.o[)]" 2478 library_names_spec='$libname$release.a $libname.a' 2479 soname_spec='$libname$release$shared_ext$major' 2480 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 2481 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 2482 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 2483 ;; 2484 esac 2236 2485 shlibpath_var=LIBPATH 2237 2486 fi … … 2243 2492 # Since July 2007 AmigaOS4 officially supports .so libraries. 2244 2493 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 2245 library_names_spec='$ {libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'2494 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 2246 2495 ;; 2247 2496 m68k) 2248 2497 library_names_spec='$libname.ixlibrary $libname.a' 2249 2498 # Create ${libname}_ixlibrary.a entries in /sys/libs. 2250 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test$RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'2499 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 2251 2500 ;; 2252 2501 esac … … 2254 2503 2255 2504 beos*) 2256 library_names_spec='$ {libname}${shared_ext}'2505 library_names_spec='$libname$shared_ext' 2257 2506 dynamic_linker="$host_os ld.so" 2258 2507 shlibpath_var=LIBRARY_PATH … … 2260 2509 2261 2510 bsdi[[45]]*) 2262 version_type=linux 2511 version_type=linux # correct to gnu/linux during the next big refactor 2263 2512 need_version=no 2264 library_names_spec='$ {libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'2265 soname_spec='$ {libname}${release}${shared_ext}$major'2513 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 2514 soname_spec='$libname$release$shared_ext$major' 2266 2515 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 2267 2516 shlibpath_var=LD_LIBRARY_PATH … … 2275 2524 cygwin* | mingw* | pw32* | cegcc*) 2276 2525 version_type=windows 2277 shrext_cmds= ".dll"2526 shrext_cmds=.dll 2278 2527 need_version=no 2279 2528 need_lib_prefix=no … … 2284 2533 library_names_spec='$libname.dll.a' 2285 2534 # DLL is installed to $(libdir)/../bin by postinstall_cmds 2286 postinstall_cmds='base_file=`basename \$ {file}`~2287 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$ {base_file}'\''i; echo \$dlname'\''`~2535 postinstall_cmds='base_file=`basename \$file`~ 2536 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 2288 2537 dldir=$destdir/`dirname \$dlpath`~ 2289 2538 test -d \$dldir || mkdir -p \$dldir~ … … 2301 2550 cygwin*) 2302 2551 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 2303 soname_spec='`echo $ {libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'2552 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' 2304 2553 m4_if([$1], [],[ 2305 2554 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"]) … … 2307 2556 mingw* | cegcc*) 2308 2557 # MinGW DLLs use traditional 'lib' prefix 2309 soname_spec='$ {libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'2558 soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' 2310 2559 ;; 2311 2560 pw32*) 2312 2561 # pw32 DLLs use 'pw' prefix rather than 'lib' 2313 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' 2314 2563 ;; 2315 2564 esac … … 2320 2569 # Native MSVC 2321 2570 libname_spec='$name' 2322 soname_spec='$ {libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'2323 library_names_spec='$ {libname}.dll.lib'2571 soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' 2572 library_names_spec='$libname.dll.lib' 2324 2573 2325 2574 case $build_os in … … 2348 2597 ;; 2349 2598 *) 2350 sys_lib_search_path_spec= "$LIB"2599 sys_lib_search_path_spec=$LIB 2351 2600 if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then 2352 2601 # It is most probably a Windows format PATH. … … 2361 2610 2362 2611 # DLL is installed to $(libdir)/../bin by postinstall_cmds 2363 postinstall_cmds='base_file=`basename \$ {file}`~2364 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$ {base_file}'\''i; echo \$dlname'\''`~2612 postinstall_cmds='base_file=`basename \$file`~ 2613 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 2365 2614 dldir=$destdir/`dirname \$dlpath`~ 2366 2615 test -d \$dldir || mkdir -p \$dldir~ … … 2375 2624 *) 2376 2625 # Assume MSVC wrapper 2377 library_names_spec='$ {libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}$libname.lib'2626 library_names_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext $libname.lib' 2378 2627 dynamic_linker='Win32 ld.exe' 2379 2628 ;; … … 2388 2637 need_lib_prefix=no 2389 2638 need_version=no 2390 library_names_spec='$ {libname}${release}${major}$shared_ext ${libname}$shared_ext'2391 soname_spec='$ {libname}${release}${major}$shared_ext'2639 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 2640 soname_spec='$libname$release$major$shared_ext' 2392 2641 shlibpath_overrides_runpath=yes 2393 2642 shlibpath_var=DYLD_LIBRARY_PATH … … 2399 2648 2400 2649 dgux*) 2401 version_type=linux 2650 version_type=linux # correct to gnu/linux during the next big refactor 2402 2651 need_lib_prefix=no 2403 2652 need_version=no 2404 library_names_spec='$ {libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'2405 soname_spec='$ {libname}${release}${shared_ext}$major'2653 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 2654 soname_spec='$libname$release$shared_ext$major' 2406 2655 shlibpath_var=LD_LIBRARY_PATH 2407 ;;2408 2409 freebsd1*)2410 dynamic_linker=no2411 2656 ;; 2412 2657 … … 2418 2663 else 2419 2664 case $host_os in 2420 freebsd[[ 123]]*) objformat=aout ;;2665 freebsd[[23]].*) objformat=aout ;; 2421 2666 *) objformat=elf ;; 2422 2667 esac … … 2425 2670 case $version_type in 2426 2671 freebsd-elf*) 2427 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' 2428 2674 need_version=no 2429 2675 need_lib_prefix=no 2430 2676 ;; 2431 2677 freebsd-*) 2432 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' 2433 2679 need_version=yes 2434 2680 ;; … … 2436 2682 shlibpath_var=LD_LIBRARY_PATH 2437 2683 case $host_os in 2438 freebsd2 *)2684 freebsd2.*) 2439 2685 shlibpath_overrides_runpath=yes 2440 2686 ;; … … 2455 2701 ;; 2456 2702 2457 gnu*)2458 version_type=linux2459 need_lib_prefix=no2460 need_version=no2461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'2462 soname_spec='${libname}${release}${shared_ext}$major'2463 shlibpath_var=LD_LIBRARY_PATH2464 shlibpath_overrides_runpath=no2465 hardcode_into_libs=yes2466 ;;2467 2468 2703 haiku*) 2469 version_type=linux 2704 version_type=linux # correct to gnu/linux during the next big refactor 2470 2705 need_lib_prefix=no 2471 2706 need_version=no 2472 2707 dynamic_linker="$host_os runtime_loader" 2473 library_names_spec='$ {libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'2474 soname_spec='$ {libname}${release}${shared_ext}$major'2708 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 2709 soname_spec='$libname$release$shared_ext$major' 2475 2710 shlibpath_var=LIBRARY_PATH 2476 shlibpath_overrides_runpath= yes2711 shlibpath_overrides_runpath=no 2477 2712 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 2478 2713 hardcode_into_libs=yes … … 2492 2727 shlibpath_var=LD_LIBRARY_PATH 2493 2728 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 2494 library_names_spec='$ {libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'2495 soname_spec='$ {libname}${release}${shared_ext}$major'2496 if test "X$HPUX_IA64_MODE" = X32; then2729 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 2730 soname_spec='$libname$release$shared_ext$major' 2731 if test 32 = "$HPUX_IA64_MODE"; then 2497 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 2498 2734 else 2499 2735 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 2736 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 2500 2737 fi 2501 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec2502 2738 ;; 2503 2739 hppa*64*) … … 2507 2743 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 2508 2744 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 2509 library_names_spec='$ {libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'2510 soname_spec='$ {libname}${release}${shared_ext}$major'2745 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 2746 soname_spec='$libname$release$shared_ext$major' 2511 2747 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 2512 2748 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec … … 2517 2753 shlibpath_var=SHLIB_PATH 2518 2754 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 2519 library_names_spec='$ {libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'2520 soname_spec='$ {libname}${release}${shared_ext}$major'2755 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 2756 soname_spec='$libname$release$shared_ext$major' 2521 2757 ;; 2522 2758 esac … … 2528 2764 2529 2765 interix[[3-9]]*) 2530 version_type=linux 2766 version_type=linux # correct to gnu/linux during the next big refactor 2531 2767 need_lib_prefix=no 2532 2768 need_version=no 2533 library_names_spec='$ {libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'2534 soname_spec='$ {libname}${release}${shared_ext}$major'2769 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 2770 soname_spec='$libname$release$shared_ext$major' 2535 2771 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 2536 2772 shlibpath_var=LD_LIBRARY_PATH … … 2543 2779 nonstopux*) version_type=nonstopux ;; 2544 2780 *) 2545 if test "$lt_cv_prog_gnu_ld" = yes; then2546 version_type=linux 2781 if test yes = "$lt_cv_prog_gnu_ld"; then 2782 version_type=linux # correct to gnu/linux during the next big refactor 2547 2783 else 2548 2784 version_type=irix … … 2551 2787 need_lib_prefix=no 2552 2788 need_version=no 2553 soname_spec='$ {libname}${release}${shared_ext}$major'2554 library_names_spec='$ {libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'2789 soname_spec='$libname$release$shared_ext$major' 2790 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 2555 2791 case $host_os in 2556 2792 irix5* | nonstopux*) … … 2571 2807 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 2572 2808 shlibpath_overrides_runpath=no 2573 sys_lib_search_path_spec="/usr/lib$ {libsuff} /lib${libsuff} /usr/local/lib${libsuff}"2574 sys_lib_dlsearch_path_spec="/usr/lib$ {libsuff} /lib${libsuff}"2809 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 2810 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 2575 2811 hardcode_into_libs=yes 2576 2812 ;; … … 2581 2817 ;; 2582 2818 2583 # This must be Linux ELF. 2584 linux* | k*bsd*-gnu | kopensolaris*-gnu) 2585 version_type=linux 2819 linux*android*) 2820 version_type=none # Android doesn't support versioned libraries. 2586 2821 need_lib_prefix=no 2587 2822 need_version=no 2588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2589 soname_spec='${libname}${release}${shared_ext}$major' 2823 library_names_spec='$libname$release$shared_ext' 2824 soname_spec='$libname$release$shared_ext' 2825 finish_cmds= 2826 shlibpath_var=LD_LIBRARY_PATH 2827 shlibpath_overrides_runpath=yes 2828 2829 # This implies no fast_install, which is unacceptable. 2830 # Some rework will be needed to allow for fast_install 2831 # before this can be enabled. 2832 hardcode_into_libs=yes 2833 2834 dynamic_linker='Android linker' 2835 # Don't embed -rpath directories since the linker doesn't support them. 2836 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 2837 ;; 2838 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$shared_ext$major $libname$shared_ext' 2845 soname_spec='$libname$release$shared_ext$major' 2590 2846 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 2591 2847 shlibpath_var=LD_LIBRARY_PATH … … 2612 2868 hardcode_into_libs=yes 2613 2869 2614 # Append ld.so.conf contents to the search path 2870 # Ideally, we could use ldconfig to report *all* directores which are 2871 # searched for libraries, however this is still not possible. Aside from not 2872 # being certain /sbin/ldconfig is available, command 2873 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 2874 # even though it is searched at run-time. Try to do the best guess by 2875 # appending ld.so.conf contents (and includes) to the search path. 2615 2876 if test -f /etc/ld.so.conf; then 2616 2877 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` … … 2644 2905 need_version=no 2645 2906 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 2646 library_names_spec='$ {libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'2907 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 2647 2908 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 2648 2909 dynamic_linker='NetBSD (a.out) ld.so' 2649 2910 else 2650 library_names_spec='$ {libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'2651 soname_spec='$ {libname}${release}${shared_ext}$major'2911 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 2912 soname_spec='$libname$release$shared_ext$major' 2652 2913 dynamic_linker='NetBSD ld.elf_so' 2653 2914 fi … … 2658 2919 2659 2920 newsos6) 2660 version_type=linux 2661 library_names_spec='$ {libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'2921 version_type=linux # correct to gnu/linux during the next big refactor 2922 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 2662 2923 shlibpath_var=LD_LIBRARY_PATH 2663 2924 shlibpath_overrides_runpath=yes … … 2668 2929 need_lib_prefix=no 2669 2930 need_version=no 2670 library_names_spec='$ {libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'2671 soname_spec='$ {libname}${release}${shared_ext}$major'2931 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 2932 soname_spec='$libname$release$shared_ext$major' 2672 2933 shlibpath_var=LD_LIBRARY_PATH 2673 2934 shlibpath_overrides_runpath=no … … 2676 2937 ;; 2677 2938 2678 openbsd* )2939 openbsd* | bitrig*) 2679 2940 version_type=sunos 2680 sys_lib_dlsearch_path_spec= "/usr/lib"2941 sys_lib_dlsearch_path_spec=/usr/lib 2681 2942 need_lib_prefix=no 2682 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.2683 case $host_os in2684 openbsd3.3 | openbsd3.3.*) need_version=yes ;;2685 *) need_version=no ;;2686 esac2687 library_names_spec='$ {libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'2943 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 2944 need_version=no 2945 else 2946 need_version=yes 2947 fi 2948 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 2688 2949 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 2689 2950 shlibpath_var=LD_LIBRARY_PATH 2690 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 2691 case $host_os in 2692 openbsd2.[[89]] | openbsd2.[[89]].*) 2693 shlibpath_overrides_runpath=no 2694 ;; 2695 *) 2696 shlibpath_overrides_runpath=yes 2697 ;; 2698 esac 2699 else 2700 shlibpath_overrides_runpath=yes 2701 fi 2951 shlibpath_overrides_runpath=yes 2702 2952 ;; 2703 2953 2704 2954 os2*) 2705 2955 libname_spec='$name' 2706 shrext_cmds=".dll" 2956 version_type=windows 2957 shrext_cmds=.dll 2958 need_version=no 2707 2959 need_lib_prefix=no 2708 library_names_spec='$libname${shared_ext} $libname.a' 2960 # OS/2 can only load a DLL with a base name of 8 characters or less. 2961 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 2962 v=$($ECHO $release$versuffix | tr -d .-); 2963 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 2964 $ECHO $n$v`$shared_ext' 2965 library_names_spec='${libname}_dll.$libext' 2709 2966 dynamic_linker='OS/2 ld.exe' 2710 shlibpath_var=LIBPATH 2967 shlibpath_var=BEGINLIBPATH 2968 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 2969 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 2970 postinstall_cmds='base_file=`basename \$file`~ 2971 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 2972 dldir=$destdir/`dirname \$dlpath`~ 2973 test -d \$dldir || mkdir -p \$dldir~ 2974 $install_prog $dir/$dlname \$dldir/$dlname~ 2975 chmod a+x \$dldir/$dlname~ 2976 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 2977 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 2978 fi' 2979 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 2980 dlpath=$dir/\$dldll~ 2981 $RM \$dlpath' 2711 2982 ;; 2712 2983 … … 2715 2986 need_lib_prefix=no 2716 2987 need_version=no 2717 soname_spec='$ {libname}${release}${shared_ext}$major'2718 library_names_spec='$ {libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'2988 soname_spec='$libname$release$shared_ext$major' 2989 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 2719 2990 shlibpath_var=LD_LIBRARY_PATH 2720 2991 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 2721 sys_lib_dlsearch_path_spec= "$sys_lib_search_path_spec"2992 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 2722 2993 ;; 2723 2994 … … 2727 2998 2728 2999 solaris*) 2729 version_type=linux 3000 version_type=linux # correct to gnu/linux during the next big refactor 2730 3001 need_lib_prefix=no 2731 3002 need_version=no 2732 library_names_spec='$ {libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'2733 soname_spec='$ {libname}${release}${shared_ext}$major'3003 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 3004 soname_spec='$libname$release$shared_ext$major' 2734 3005 shlibpath_var=LD_LIBRARY_PATH 2735 3006 shlibpath_overrides_runpath=yes … … 2741 3012 sunos4*) 2742 3013 version_type=sunos 2743 library_names_spec='$ {libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'3014 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 2744 3015 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 2745 3016 shlibpath_var=LD_LIBRARY_PATH 2746 3017 shlibpath_overrides_runpath=yes 2747 if test "$with_gnu_ld" = yes; then3018 if test yes = "$with_gnu_ld"; then 2748 3019 need_lib_prefix=no 2749 3020 fi … … 2752 3023 2753 3024 sysv4 | sysv4.3*) 2754 version_type=linux 2755 library_names_spec='$ {libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'2756 soname_spec='$ {libname}${release}${shared_ext}$major'3025 version_type=linux # correct to gnu/linux during the next big refactor 3026 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 3027 soname_spec='$libname$release$shared_ext$major' 2757 3028 shlibpath_var=LD_LIBRARY_PATH 2758 3029 case $host_vendor in … … 2775 3046 2776 3047 sysv4*MP*) 2777 if test -d /usr/nec ;then2778 version_type=linux 2779 library_names_spec='$libname$ {shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'2780 soname_spec='$libname$ {shared_ext}.$major'3048 if test -d /usr/nec; then 3049 version_type=linux # correct to gnu/linux during the next big refactor 3050 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 3051 soname_spec='$libname$shared_ext.$major' 2781 3052 shlibpath_var=LD_LIBRARY_PATH 2782 3053 fi … … 2784 3055 2785 3056 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 2786 version_type= freebsd-elf3057 version_type=sco 2787 3058 need_lib_prefix=no 2788 3059 need_version=no 2789 library_names_spec='$ {libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'2790 soname_spec='$ {libname}${release}${shared_ext}$major'3060 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 3061 soname_spec='$libname$release$shared_ext$major' 2791 3062 shlibpath_var=LD_LIBRARY_PATH 2792 3063 shlibpath_overrides_runpath=yes 2793 3064 hardcode_into_libs=yes 2794 if test "$with_gnu_ld" = yes; then3065 if test yes = "$with_gnu_ld"; then 2795 3066 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 2796 3067 else … … 2807 3078 tpf*) 2808 3079 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 2809 version_type=linux 3080 version_type=linux # correct to gnu/linux during the next big refactor 2810 3081 need_lib_prefix=no 2811 3082 need_version=no 2812 library_names_spec='$ {libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'3083 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 2813 3084 shlibpath_var=LD_LIBRARY_PATH 2814 3085 shlibpath_overrides_runpath=no … … 2817 3088 2818 3089 uts4*) 2819 version_type=linux 2820 library_names_spec='$ {libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'2821 soname_spec='$ {libname}${release}${shared_ext}$major'3090 version_type=linux # correct to gnu/linux during the next big refactor 3091 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 3092 soname_spec='$libname$release$shared_ext$major' 2822 3093 shlibpath_var=LD_LIBRARY_PATH 2823 3094 ;; … … 2828 3099 esac 2829 3100 AC_MSG_RESULT([$dynamic_linker]) 2830 test "$dynamic_linker" = no&& can_build_shared=no3101 test no = "$dynamic_linker" && can_build_shared=no 2831 3102 2832 3103 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 2833 if test "$GCC" = yes; then3104 if test yes = "$GCC"; then 2834 3105 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 2835 3106 fi 2836 3107 2837 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then2838 sys_lib_search_path_spec= "$lt_cv_sys_lib_search_path_spec"3108 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 3109 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 2839 3110 fi 2840 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 2841 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 3111 3112 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 3113 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 2842 3114 fi 3115 3116 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 3117 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 3118 3119 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 3120 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 3121 3122 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 3123 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 2843 3124 2844 3125 _LT_DECL([], [variables_saved_for_relink], [1], … … 2874 3155 _LT_DECL([], [sys_lib_search_path_spec], [2], 2875 3156 [Compile-time system search path for libraries]) 2876 _LT_DECL([], [sys_lib_dlsearch_path_spec], [2], 2877 [Run-time system search path for libraries]) 3157 _LT_DECL([sys_lib_dlsearch_path_spec], [configure_time_dlsearch_path], [2], 3158 [Detected run-time system search path for libraries]) 3159 _LT_DECL([], [configure_time_lt_sys_library_path], [2], 3160 [Explicit LT_SYS_LIBRARY_PATH set during ./configure time]) 2878 3161 ])# _LT_SYS_DYNAMIC_LINKER 2879 3162 … … 2881 3164 # _LT_PATH_TOOL_PREFIX(TOOL) 2882 3165 # -------------------------- 2883 # find a file program whichcan recognize shared library3166 # find a file program that can recognize shared library 2884 3167 AC_DEFUN([_LT_PATH_TOOL_PREFIX], 2885 3168 [m4_require([_LT_DECL_EGREP])dnl … … 2888 3171 [case $MAGIC_CMD in 2889 3172 [[\\/*] | ?:[\\/]*]) 2890 lt_cv_path_MAGIC_CMD= "$MAGIC_CMD"# Let the user override the test with a path.3173 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 2891 3174 ;; 2892 3175 *) 2893 lt_save_MAGIC_CMD= "$MAGIC_CMD"2894 lt_save_ifs= "$IFS"; IFS=$PATH_SEPARATOR3176 lt_save_MAGIC_CMD=$MAGIC_CMD 3177 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 2895 3178 dnl $ac_dummy forces splitting on constant user-supplied paths. 2896 3179 dnl POSIX.2 word splitting is done only on the output of word expansions, … … 2898 3181 ac_dummy="m4_if([$2], , $PATH, [$2])" 2899 3182 for ac_dir in $ac_dummy; do 2900 IFS= "$lt_save_ifs"3183 IFS=$lt_save_ifs 2901 3184 test -z "$ac_dir" && ac_dir=. 2902 if test -f $ac_dir/$1; then2903 lt_cv_path_MAGIC_CMD= "$ac_dir/$1"3185 if test -f "$ac_dir/$1"; then 3186 lt_cv_path_MAGIC_CMD=$ac_dir/"$1" 2904 3187 if test -n "$file_magic_test_file"; then 2905 3188 case $deplibs_check_method in 2906 3189 "file_magic "*) 2907 3190 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 2908 MAGIC_CMD= "$lt_cv_path_MAGIC_CMD"3191 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 2909 3192 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 2910 3193 $EGREP "$file_magic_regex" > /dev/null; then … … 2929 3212 fi 2930 3213 done 2931 IFS= "$lt_save_ifs"2932 MAGIC_CMD= "$lt_save_MAGIC_CMD"3214 IFS=$lt_save_ifs 3215 MAGIC_CMD=$lt_save_MAGIC_CMD 2933 3216 ;; 2934 3217 esac]) 2935 MAGIC_CMD= "$lt_cv_path_MAGIC_CMD"3218 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 2936 3219 if test -n "$MAGIC_CMD"; then 2937 3220 AC_MSG_RESULT($MAGIC_CMD) … … 2951 3234 # _LT_PATH_MAGIC 2952 3235 # -------------- 2953 # find a file program whichcan recognize a shared library3236 # find a file program that can recognize a shared library 2954 3237 m4_defun([_LT_PATH_MAGIC], 2955 3238 [_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) … … 2978 3261 [AS_HELP_STRING([--with-gnu-ld], 2979 3262 [assume the C compiler uses GNU ld @<:@default=no@:>@])], 2980 [test "$withval" = no|| with_gnu_ld=yes],3263 [test no = "$withval" || with_gnu_ld=yes], 2981 3264 [with_gnu_ld=no])dnl 2982 3265 2983 3266 ac_prog=ld 2984 if test "$GCC" = yes; then3267 if test yes = "$GCC"; then 2985 3268 # Check if gcc -print-prog-name=ld gives a path. 2986 3269 AC_MSG_CHECKING([for ld used by $CC]) 2987 3270 case $host in 2988 3271 *-*-mingw*) 2989 # gcc leaves a trailing carriage return which upsets mingw3272 # gcc leaves a trailing carriage return, which upsets mingw 2990 3273 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 2991 3274 *) … … 3001 3284 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 3002 3285 done 3003 test -z "$LD" && LD= "$ac_prog"3286 test -z "$LD" && LD=$ac_prog 3004 3287 ;; 3005 3288 "") … … 3012 3295 ;; 3013 3296 esac 3014 elif test "$with_gnu_ld" = yes; then3297 elif test yes = "$with_gnu_ld"; then 3015 3298 AC_MSG_CHECKING([for GNU ld]) 3016 3299 else … … 3019 3302 AC_CACHE_VAL(lt_cv_path_LD, 3020 3303 [if test -z "$LD"; then 3021 lt_save_ifs= "$IFS"; IFS=$PATH_SEPARATOR3304 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 3022 3305 for ac_dir in $PATH; do 3023 IFS= "$lt_save_ifs"3306 IFS=$lt_save_ifs 3024 3307 test -z "$ac_dir" && ac_dir=. 3025 3308 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 3026 lt_cv_path_LD= "$ac_dir/$ac_prog"3309 lt_cv_path_LD=$ac_dir/$ac_prog 3027 3310 # Check to see if the program is GNU ld. I'd rather use --version, 3028 3311 # but apparently some variants of GNU ld only accept -v. … … 3030 3313 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 3031 3314 *GNU* | *'with BFD'*) 3032 test "$with_gnu_ld" != no&& break3315 test no != "$with_gnu_ld" && break 3033 3316 ;; 3034 3317 *) 3035 test "$with_gnu_ld" != yes&& break3318 test yes != "$with_gnu_ld" && break 3036 3319 ;; 3037 3320 esac 3038 3321 fi 3039 3322 done 3040 IFS= "$lt_save_ifs"3323 IFS=$lt_save_ifs 3041 3324 else 3042 lt_cv_path_LD= "$LD"# Let the user override the test with a path.3325 lt_cv_path_LD=$LD # Let the user override the test with a path. 3043 3326 fi]) 3044 LD= "$lt_cv_path_LD"3327 LD=$lt_cv_path_LD 3045 3328 if test -n "$LD"; then 3046 3329 AC_MSG_RESULT($LD) … … 3096 3379 case $host_os in 3097 3380 cygwin* | mingw* | pw32* | cegcc*) 3098 if test "$GCC" != yes; then3381 if test yes != "$GCC"; then 3099 3382 reload_cmds=false 3100 3383 fi 3101 3384 ;; 3102 3385 darwin*) 3103 if test "$GCC" = yes; then3104 reload_cmds='$LTCC $LTCFLAGS -nostdlib $ {wl}-r -o $output$reload_objs'3386 if test yes = "$GCC"; then 3387 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 3105 3388 else 3106 3389 reload_cmds='$LD$reload_flag -o $output$reload_objs' … … 3111 3394 _LT_TAGDECL([], [reload_cmds], [2])dnl 3112 3395 ])# _LT_CMD_RELOAD 3396 3397 3398 # _LT_PATH_DD 3399 # ----------- 3400 # find a working dd 3401 m4_defun([_LT_PATH_DD], 3402 [AC_CACHE_CHECK([for a working dd], [ac_cv_path_lt_DD], 3403 [printf 0123456789abcdef0123456789abcdef >conftest.i 3404 cat conftest.i conftest.i >conftest2.i 3405 : ${lt_DD:=$DD} 3406 AC_PATH_PROGS_FEATURE_CHECK([lt_DD], [dd], 3407 [if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 3408 cmp -s conftest.i conftest.out \ 3409 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 3410 fi]) 3411 rm -f conftest.i conftest2.i conftest.out]) 3412 ])# _LT_PATH_DD 3413 3414 3415 # _LT_CMD_TRUNCATE 3416 # ---------------- 3417 # find command to truncate a binary pipe 3418 m4_defun([_LT_CMD_TRUNCATE], 3419 [m4_require([_LT_PATH_DD]) 3420 AC_CACHE_CHECK([how to truncate binary pipes], [lt_cv_truncate_bin], 3421 [printf 0123456789abcdef0123456789abcdef >conftest.i 3422 cat conftest.i conftest.i >conftest2.i 3423 lt_cv_truncate_bin= 3424 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 3425 cmp -s conftest.i conftest.out \ 3426 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 3427 fi 3428 rm -f conftest.i conftest2.i conftest.out 3429 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"]) 3430 _LT_DECL([lt_truncate_bin], [lt_cv_truncate_bin], [1], 3431 [Command to truncate a binary pipe]) 3432 ])# _LT_CMD_TRUNCATE 3113 3433 3114 3434 … … 3128 3448 # interlibrary dependencies. 3129 3449 # 'none' -- dependencies not supported. 3130 # `unknown' -- same as none, but documents that we really don't know.3450 # 'unknown' -- same as none, but documents that we really don't know. 3131 3451 # 'pass_all' -- all dependencies passed with no checks. 3132 3452 # 'test_compile' -- check by making test program. 3133 3453 # 'file_magic [[regex]]' -- check by looking for files in library path 3134 # whichresponds to the $file_magic_cmd with a given extended regex.3135 # If you have `file' or equivalent on your system and you're not sure3136 # whether `pass_all' will *always* work, you probably want this one.3454 # that responds to the $file_magic_cmd with a given extended regex. 3455 # If you have 'file' or equivalent on your system and you're not sure 3456 # whether 'pass_all' will *always* work, you probably want this one. 3137 3457 3138 3458 case $host_os in … … 3161 3481 # func_win32_libid shell function, so use a weaker test based on 'objdump', 3162 3482 # unless we find 'file', for example because we are cross-compiling. 3163 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 3164 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 3483 if ( file / ) >/dev/null 2>&1; then 3165 3484 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 3166 3485 lt_cv_file_magic_cmd='func_win32_libid' … … 3196 3515 lt_cv_deplibs_check_method=pass_all 3197 3516 fi 3198 ;;3199 3200 gnu*)3201 lt_cv_deplibs_check_method=pass_all3202 3517 ;; 3203 3518 … … 3239 3554 ;; 3240 3555 3241 # This must be LinuxELF.3242 linux* | k*bsd*-gnu | kopensolaris*-gnu )3556 # This must be glibc/ELF. 3557 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 3243 3558 lt_cv_deplibs_check_method=pass_all 3244 3559 ;; … … 3262 3577 ;; 3263 3578 3264 openbsd* )3265 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then3579 openbsd* | bitrig*) 3580 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 3266 3581 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' 3267 3582 else … … 3316 3631 lt_cv_deplibs_check_method=pass_all 3317 3632 ;; 3633 os2*) 3634 lt_cv_deplibs_check_method=pass_all 3635 ;; 3318 3636 esac 3319 3637 ]) … … 3356 3674 [if test -n "$NM"; then 3357 3675 # Let the user override the test. 3358 lt_cv_path_NM= "$NM"3676 lt_cv_path_NM=$NM 3359 3677 else 3360 lt_nm_to_check= "${ac_tool_prefix}nm"3678 lt_nm_to_check=${ac_tool_prefix}nm 3361 3679 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 3362 3680 lt_nm_to_check="$lt_nm_to_check nm" 3363 3681 fi 3364 3682 for lt_tmp_nm in $lt_nm_to_check; do 3365 lt_save_ifs= "$IFS"; IFS=$PATH_SEPARATOR3683 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 3366 3684 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 3367 IFS= "$lt_save_ifs"3685 IFS=$lt_save_ifs 3368 3686 test -z "$ac_dir" && ac_dir=. 3369 tmp_nm= "$ac_dir/$lt_tmp_nm"3370 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" 3687 tmp_nm=$ac_dir/$lt_tmp_nm 3688 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 3371 3689 # Check to see if the nm accepts a BSD-compat flag. 3372 # Adding the `sed 1q' prevents false positives on HP-UX, which says:3690 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 3373 3691 # nm: unknown option "B" ignored 3374 3692 # Tru64's nm complains that /dev/null is an invalid object file 3375 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 3376 */dev/null* | *'Invalid file or object type'*) 3693 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 3694 case $build_os in 3695 mingw*) lt_bad_file=conftest.nm/nofile ;; 3696 *) lt_bad_file=/dev/null ;; 3697 esac 3698 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 3699 *$lt_bad_file* | *'Invalid file or object type'*) 3377 3700 lt_cv_path_NM="$tmp_nm -B" 3378 break 3701 break 2 3379 3702 ;; 3380 3703 *) … … 3382 3705 */dev/null*) 3383 3706 lt_cv_path_NM="$tmp_nm -p" 3384 break 3707 break 2 3385 3708 ;; 3386 3709 *) … … 3393 3716 fi 3394 3717 done 3395 IFS= "$lt_save_ifs"3718 IFS=$lt_save_ifs 3396 3719 done 3397 3720 : ${lt_cv_path_NM=no} 3398 3721 fi]) 3399 if test "$lt_cv_path_NM" != "no"; then3400 NM= "$lt_cv_path_NM"3722 if test no != "$lt_cv_path_NM"; then 3723 NM=$lt_cv_path_NM 3401 3724 else 3402 3725 # Didn't find any BSD compatible name lister, look for dumpbin. … … 3405 3728 else 3406 3729 AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :) 3407 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in3730 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 3408 3731 *COFF*) 3409 DUMPBIN="$DUMPBIN -symbols "3732 DUMPBIN="$DUMPBIN -symbols -headers" 3410 3733 ;; 3411 3734 *) … … 3415 3738 fi 3416 3739 AC_SUBST([DUMPBIN]) 3417 if test "$DUMPBIN" != ":"; then3418 NM= "$DUMPBIN"3740 if test : != "$DUMPBIN"; then 3741 NM=$DUMPBIN 3419 3742 fi 3420 3743 fi … … 3462 3785 case $host_os in 3463 3786 cygwin* | mingw* | pw32* | cegcc*) 3464 # two different shell functions defined in ltmain.sh 3465 # decide which to use based on capabilities of $DLLTOOL3787 # two different shell functions defined in ltmain.sh; 3788 # decide which one to use based on capabilities of $DLLTOOL 3466 3789 case `$DLLTOOL --help 2>&1` in 3467 3790 *--identify-strict*) … … 3475 3798 *) 3476 3799 # fallback: assume linklib IS sharedlib 3477 lt_cv_sharedlib_from_linklib_cmd= "$ECHO"3800 lt_cv_sharedlib_from_linklib_cmd=$ECHO 3478 3801 ;; 3479 3802 esac … … 3502 3825 fi 3503 3826 rm -f conftest*]) 3504 if test "x$lt_cv_path_mainfest_tool" != xyes; then3827 if test yes != "$lt_cv_path_mainfest_tool"; then 3505 3828 MANIFEST_TOOL=: 3506 3829 fi 3507 3830 _LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl 3508 3831 ])# _LT_PATH_MANIFEST_TOOL 3832 3833 3834 # _LT_DLL_DEF_P([FILE]) 3835 # --------------------- 3836 # True iff FILE is a Windows DLL '.def' file. 3837 # Keep in sync with func_dll_def_p in the libtool script 3838 AC_DEFUN([_LT_DLL_DEF_P], 3839 [dnl 3840 test DEF = "`$SED -n dnl 3841 -e '\''s/^[[ ]]*//'\'' dnl Strip leading whitespace 3842 -e '\''/^\(;.*\)*$/d'\'' dnl Delete empty lines and comments 3843 -e '\''s/^\(EXPORTS\|LIBRARY\)\([[ ]].*\)*$/DEF/p'\'' dnl 3844 -e q dnl Only consider the first "real" line 3845 $1`" dnl 3846 ])# _LT_DLL_DEF_P 3509 3847 3510 3848 … … 3520 3858 ;; 3521 3859 *-ncr-sysv4.3*) 3522 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM= "-lmw")3860 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM=-lmw) 3523 3861 AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") 3524 3862 ;; 3525 3863 *) 3526 AC_CHECK_LIB(m, cos, LIBM= "-lm")3864 AC_CHECK_LIB(m, cos, LIBM=-lm) 3527 3865 ;; 3528 3866 esac … … 3543 3881 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= 3544 3882 3545 if test "$GCC" = yes; then3883 if test yes = "$GCC"; then 3546 3884 case $cc_basename in 3547 3885 nvcc*) … … 3595 3933 ;; 3596 3934 hpux*) 3597 if test "$host_cpu" = ia64; then3935 if test ia64 = "$host_cpu"; then 3598 3936 symcode='[[ABCDEGRST]]' 3599 3937 fi … … 3628 3966 esac 3629 3967 3968 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 3969 # Gets list of data symbols to import. 3970 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 3971 # Adjust the below global symbol transforms to fixup imported variables. 3972 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 3973 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 3974 lt_c_name_lib_hook="\ 3975 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 3976 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 3977 else 3978 # Disable hooks by default. 3979 lt_cv_sys_global_symbol_to_import= 3980 lt_cdecl_hook= 3981 lt_c_name_hook= 3982 lt_c_name_lib_hook= 3983 fi 3984 3630 3985 # Transform an extracted symbol line into a proper C declaration. 3631 3986 # Some systems (esp. on ia64) link data and code symbols differently, 3632 3987 # so use this general approach. 3633 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 3988 lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 3989 $lt_cdecl_hook\ 3990 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 3991 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 3634 3992 3635 3993 # Transform an extracted symbol line into symbol name and symbol address 3636 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'" 3637 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'" 3994 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 3995 $lt_c_name_hook\ 3996 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 3997 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 3998 3999 # Transform an extracted symbol line into symbol name with lib prefix and 4000 # symbol address. 4001 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 4002 $lt_c_name_lib_hook\ 4003 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 4004 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 4005 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 3638 4006 3639 4007 # Handle CRLF in mingw tool chain … … 3653 4021 # Write the raw and C identifiers. 3654 4022 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 3655 # Fake it for dumpbin and say T for any non-static function 3656 # and D for any globalvariable.4023 # Fake it for dumpbin and say T for any non-static function, 4024 # D for any global variable and I for any imported variable. 3657 4025 # Also find C++ and __fastcall symbols from MSVC++, 3658 4026 # which start with @ or ?. 3659 4027 lt_cv_sys_global_symbol_pipe="$AWK ['"\ 3660 4028 " {last_section=section; section=\$ 3};"\ 4029 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 3661 4030 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 4031 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 4032 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 4033 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 3662 4034 " \$ 0!~/External *\|/{next};"\ 3663 4035 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 3664 4036 " {if(hide[section]) next};"\ 3665 " {f= 0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D\"};"\3666 " {split(\$ 0, a, /\||\r/); split(a[2],s)};"\3667 " s[1]~/^[@?]/{print s[1],s[1]; next};"\3668 " s[1]~prfx {split(s[1],t,\"@\"); print t[1],substr(t[1],length(prfx))}"\4037 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 4038 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 4039 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 4040 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 3669 4041 " ' prfx=^$ac_symprfx]" 3670 4042 else … … 3706 4078 cat <<_LT_EOF > conftest.$ac_ext 3707 4079 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 3708 #if defined (_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)3709 /* DATA imports from DLLs on WIN32 c on't be const, because runtime4080 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 4081 /* DATA imports from DLLs on WIN32 can't be const, because runtime 3710 4082 relocations are performed -- see ld's documentation on pseudo-relocs. */ 3711 4083 # define LT@&t@_DLSYM_CONST 3712 #elif defined (__osf__)4084 #elif defined __osf__ 3713 4085 /* This system does not cope well with relocations in const data. */ 3714 4086 # define LT@&t@_DLSYM_CONST … … 3736 4108 { "@PROGRAM@", (void *) 0 }, 3737 4109 _LT_EOF 3738 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext4110 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 3739 4111 cat <<\_LT_EOF >> conftest.$ac_ext 3740 4112 {0, (void *) 0} … … 3756 4128 lt_globsym_save_LIBS=$LIBS 3757 4129 lt_globsym_save_CFLAGS=$CFLAGS 3758 LIBS= "conftstm.$ac_objext"4130 LIBS=conftstm.$ac_objext 3759 4131 CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" 3760 if AC_TRY_EVAL(ac_link) && test -s conftest$ {ac_exeext}; then4132 if AC_TRY_EVAL(ac_link) && test -s conftest$ac_exeext; then 3761 4133 pipe_works=yes 3762 4134 fi … … 3779 4151 3780 4152 # Do not use the global_symbol_pipe unless it works. 3781 if test "$pipe_works" = yes; then4153 if test yes = "$pipe_works"; then 3782 4154 break 3783 4155 else … … 3806 4178 _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1], 3807 4179 [Transform the output of nm in a proper C declaration]) 4180 _LT_DECL([global_symbol_to_import], [lt_cv_sys_global_symbol_to_import], [1], 4181 [Transform the output of nm into a list of symbols to manually relocate]) 3808 4182 _LT_DECL([global_symbol_to_c_name_address], 3809 4183 [lt_cv_sys_global_symbol_to_c_name_address], [1], … … 3812 4186 [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1], 3813 4187 [Transform the output of nm in a C name address pair when lib prefix is needed]) 4188 _LT_DECL([nm_interface], [lt_cv_nm_interface], [1], 4189 [The name lister interface]) 3814 4190 _LT_DECL([], [nm_file_list_spec], [1], 3815 4191 [Specify filename containing input files for $NM]) … … 3827 4203 m4_if([$1], [CXX], [ 3828 4204 # C++ specific cases for pic, static, wl, etc. 3829 if test "$GXX" = yes; then4205 if test yes = "$GXX"; then 3830 4206 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 3831 4207 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' … … 3834 4210 aix*) 3835 4211 # All AIX code is PIC. 3836 if test "$host_cpu" = ia64; then4212 if test ia64 = "$host_cpu"; then 3837 4213 # AIX 5 now supports IA64 processor 3838 4214 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 3839 4215 fi 4216 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 3840 4217 ;; 3841 4218 … … 3848 4225 m68k) 3849 4226 # FIXME: we need at least 68020 code to build shared libraries, but 3850 # adding the `-m68020' flag to GCC prevents building anything better,3851 # like `-m68040'.4227 # adding the '-m68020' flag to GCC prevents building anything better, 4228 # like '-m68040'. 3852 4229 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' 3853 4230 ;; … … 3865 4242 m4_if([$1], [GCJ], [], 3866 4243 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 4244 case $host_os in 4245 os2*) 4246 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static' 4247 ;; 4248 esac 3867 4249 ;; 3868 4250 darwin* | rhapsody*) … … 3914 4296 aix[[4-9]]*) 3915 4297 # All AIX code is PIC. 3916 if test "$host_cpu" = ia64; then4298 if test ia64 = "$host_cpu"; then 3917 4299 # AIX 5 now supports IA64 processor 3918 4300 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' … … 3955 4337 CC*) 3956 4338 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 3957 _LT_TAGVAR(lt_prog_compiler_static, $1)='$ {wl}-a ${wl}archive'3958 if test "$host_cpu" != ia64; then4339 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive' 4340 if test ia64 != "$host_cpu"; then 3959 4341 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 3960 4342 fi … … 3962 4344 aCC*) 3963 4345 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 3964 _LT_TAGVAR(lt_prog_compiler_static, $1)='$ {wl}-a ${wl}archive'4346 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive' 3965 4347 case $host_cpu in 3966 4348 hppa*64*|ia64*) … … 3991 4373 esac 3992 4374 ;; 3993 linux* | k*bsd*-gnu | kopensolaris*-gnu )4375 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 3994 4376 case $cc_basename in 3995 4377 KCC*) … … 3999 4381 ;; 4000 4382 ecpc* ) 4001 # old Intel C++ for x86_64 which still supported -KPIC.4383 # old Intel C++ for x86_64, which still supported -KPIC. 4002 4384 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4003 4385 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' … … 4144 4526 ], 4145 4527 [ 4146 if test "$GCC" = yes; then4528 if test yes = "$GCC"; then 4147 4529 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4148 4530 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' … … 4151 4533 aix*) 4152 4534 # All AIX code is PIC. 4153 if test "$host_cpu" = ia64; then4535 if test ia64 = "$host_cpu"; then 4154 4536 # AIX 5 now supports IA64 processor 4155 4537 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4156 4538 fi 4539 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 4157 4540 ;; 4158 4541 … … 4165 4548 m68k) 4166 4549 # FIXME: we need at least 68020 code to build shared libraries, but 4167 # adding the `-m68020' flag to GCC prevents building anything better,4168 # like `-m68040'.4550 # adding the '-m68020' flag to GCC prevents building anything better, 4551 # like '-m68040'. 4169 4552 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' 4170 4553 ;; … … 4183 4566 m4_if([$1], [GCJ], [], 4184 4567 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 4568 case $host_os in 4569 os2*) 4570 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static' 4571 ;; 4572 esac 4185 4573 ;; 4186 4574 … … 4243 4631 nvcc*) # Cuda Compiler Driver 2.2 4244 4632 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker ' 4245 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Xcompiler -fPIC' 4633 if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then 4634 _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)" 4635 fi 4246 4636 ;; 4247 4637 esac … … 4251 4641 aix*) 4252 4642 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4253 if test "$host_cpu" = ia64; then4643 if test ia64 = "$host_cpu"; then 4254 4644 # AIX 5 now supports IA64 processor 4255 4645 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' … … 4259 4649 ;; 4260 4650 4651 darwin* | rhapsody*) 4652 # PIC is the default on this platform 4653 # Common symbols not allowed in MH_DYLIB files 4654 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' 4655 case $cc_basename in 4656 nagfor*) 4657 # NAG Fortran compiler 4658 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,' 4659 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' 4660 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4661 ;; 4662 esac 4663 ;; 4664 4261 4665 mingw* | cygwin* | pw32* | os2* | cegcc*) 4262 4666 # This hack is so that the source file can tell whether it is being … … 4264 4668 m4_if([$1], [GCJ], [], 4265 4669 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 4670 case $host_os in 4671 os2*) 4672 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static' 4673 ;; 4674 esac 4266 4675 ;; 4267 4676 … … 4279 4688 esac 4280 4689 # Is there a better lt_prog_compiler_static that works with the bundled CC? 4281 _LT_TAGVAR(lt_prog_compiler_static, $1)='$ {wl}-a ${wl}archive'4690 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive' 4282 4691 ;; 4283 4692 … … 4288 4697 ;; 4289 4698 4290 linux* | k*bsd*-gnu | kopensolaris*-gnu )4699 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 4291 4700 case $cc_basename in 4292 # old Intel for x86_64 which still supported -KPIC.4701 # old Intel for x86_64, which still supported -KPIC. 4293 4702 ecc*) 4294 4703 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' … … 4315 4724 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4316 4725 ;; 4726 tcc*) 4727 # Fabrice Bellard et al's Tiny C Compiler 4728 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4729 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 4730 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 4731 ;; 4317 4732 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 4318 4733 # Portland Group compilers (*not* the Pentium gcc compiler, … … 4335 4750 *) 4336 4751 case `$CC -V 2>&1 | sed 5q` in 4337 *Sun\ F* | *Sun*Fortran*)4752 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*) 4338 4753 # Sun Fortran 8.3 passes all unrecognized flags to the linker 4339 4754 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4340 4755 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4341 4756 _LT_TAGVAR(lt_prog_compiler_wl, $1)='' 4757 ;; 4758 *Sun\ F* | *Sun*Fortran*) 4759 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4760 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4761 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 4342 4762 ;; 4343 4763 *Sun\ C*) … … 4346 4766 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4347 4767 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4768 ;; 4769 *Intel*\ [[CF]]*Compiler*) 4770 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4771 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 4772 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 4773 ;; 4774 *Portland\ Group*) 4775 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4776 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' 4777 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4348 4778 ;; 4349 4779 esac … … 4397 4827 4398 4828 sysv4*MP*) 4399 if test -d /usr/nec ;then4829 if test -d /usr/nec; then 4400 4830 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' 4401 4831 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' … … 4426 4856 ]) 4427 4857 case $host_os in 4428 # For platforms whichdo not support PIC, -DPIC is meaningless:4858 # For platforms that do not support PIC, -DPIC is meaningless: 4429 4859 *djgpp*) 4430 4860 _LT_TAGVAR(lt_prog_compiler_pic, $1)= … … 4492 4922 aix[[4-9]]*) 4493 4923 # If we're using GNU nm, then we don't want the "-C" option. 4494 # -C means demangle to AIX nm, but means don't demangle with GNU nm 4495 # Also, AIX nm treats weak defined symbols like other global defined 4496 # symbols, whereas GNU nm marks them as "W". 4924 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 4925 # Without the "-l" option, or with the "-B" option, AIX nm treats 4926 # weak defined symbols like other global defined symbols, whereas 4927 # GNU nm marks them as "W". 4928 # While the 'weak' keyword is ignored in the Export File, we need 4929 # it in the Import File for the 'aix-soname' feature, so we have 4930 # to replace the "-B" option with "-P" for AIX nm. 4497 4931 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 4498 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3} }'\'' | sort -u > $export_symbols'4932 _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' 4499 4933 else 4500 _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'4934 _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' 4501 4935 fi 4502 4936 ;; 4503 4937 pw32*) 4504 _LT_TAGVAR(export_symbols_cmds, $1)= "$ltdll_cmds"4938 _LT_TAGVAR(export_symbols_cmds, $1)=$ltdll_cmds 4505 4939 ;; 4506 4940 cygwin* | mingw* | cegcc*) 4507 4941 case $cc_basename in 4508 cl*) ;; 4942 cl*) 4943 _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 4944 ;; 4509 4945 *) 4510 4946 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols' … … 4534 4970 _LT_TAGVAR(hardcode_direct_absolute, $1)=no 4535 4971 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 4536 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=4537 4972 _LT_TAGVAR(hardcode_libdir_separator, $1)= 4538 4973 _LT_TAGVAR(hardcode_minus_L, $1)=no … … 4550 4985 _LT_TAGVAR(include_expsyms, $1)= 4551 4986 # exclude_expsyms can be an extended regexp of symbols to exclude 4552 # it will be wrapped by ` (' and `)$', so one must not match beginning or4553 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',4554 # as well as any symbol that contains `d'.4987 # it will be wrapped by ' (' and ')$', so one must not match beginning or 4988 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 4989 # as well as any symbol that contains 'd'. 4555 4990 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] 4556 4991 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out … … 4568 5003 # When not using gcc, we currently assume that we are using 4569 5004 # Microsoft Visual C++. 4570 if test "$GCC" != yes; then5005 if test yes != "$GCC"; then 4571 5006 with_gnu_ld=no 4572 5007 fi … … 4576 5011 with_gnu_ld=yes 4577 5012 ;; 4578 openbsd* )5013 openbsd* | bitrig*) 4579 5014 with_gnu_ld=no 4580 5015 ;; … … 4589 5024 # that we're better off using the native interface for both. 4590 5025 lt_use_gnu_ld_interface=no 4591 if test "$with_gnu_ld" = yes; then5026 if test yes = "$with_gnu_ld"; then 4592 5027 case $host_os in 4593 5028 aix*) … … 4611 5046 fi 4612 5047 4613 if test "$lt_use_gnu_ld_interface" = yes; then5048 if test yes = "$lt_use_gnu_ld_interface"; then 4614 5049 # If archive_cmds runs LD, not CC, wlarc should be empty 4615 wlarc='$ {wl}'5050 wlarc='$wl' 4616 5051 4617 5052 # Set some defaults for GNU ld with shared library support. These … … 4619 5054 # here allows them to be overridden if necessary. 4620 5055 runpath_var=LD_RUN_PATH 4621 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$ {wl}-rpath ${wl}$libdir'4622 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$ {wl}--export-dynamic'5056 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 5057 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' 4623 5058 # ancient GNU ld didn't support --whole-archive et. al. 4624 5059 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 4625 _LT_TAGVAR(whole_archive_flag_spec, $1)= "$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'5060 _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 4626 5061 else 4627 5062 _LT_TAGVAR(whole_archive_flag_spec, $1)= 4628 5063 fi 4629 5064 supports_anon_versioning=no 4630 case `$LD -v 2>&1` in5065 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in 4631 5066 *GNU\ gold*) supports_anon_versioning=yes ;; 4632 5067 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 … … 4641 5076 aix[[3-9]]*) 4642 5077 # On AIX/PPC, the GNU linker is very broken 4643 if test "$host_cpu" != ia64; then5078 if test ia64 != "$host_cpu"; then 4644 5079 _LT_TAGVAR(ld_shlibs, $1)=no 4645 5080 cat <<_LT_EOF 1>&2 … … 4660 5095 powerpc) 4661 5096 # see comment about AmigaOS4 .so support 4662 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $ {wl}-soname $wl$soname -o $lib'5097 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 4663 5098 _LT_TAGVAR(archive_expsym_cmds, $1)='' 4664 5099 ;; … … 4676 5111 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 4677 5112 # support --undefined. This deserves some investigation. FIXME 4678 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $ {wl}-soname $wl$soname -o $lib'5113 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 4679 5114 else 4680 5115 _LT_TAGVAR(ld_shlibs, $1)=no … … 4686 5121 # as there is no search path for DLLs. 4687 5122 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 4688 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$ {wl}--export-all-symbols'5123 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols' 4689 5124 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 4690 5125 _LT_TAGVAR(always_export_symbols, $1)=no … … 4694 5129 4695 5130 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 4696 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $ {wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'4697 # If the export-symbols file already is a .def file (1st line4698 # is EXPORTS), use it as is; otherwise, prepend...4699 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then4700 4701 4702 4703 4704 4705 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'5131 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 5132 # If the export-symbols file already is a .def file, use it as 5133 # is; otherwise, prepend EXPORTS... 5134 _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then 5135 cp $export_symbols $output_objdir/$soname.def; 5136 else 5137 echo EXPORTS > $output_objdir/$soname.def; 5138 cat $export_symbols >> $output_objdir/$soname.def; 5139 fi~ 5140 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 4706 5141 else 4707 5142 _LT_TAGVAR(ld_shlibs, $1)=no … … 4710 5145 4711 5146 haiku*) 4712 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $ {wl}-soname $wl$soname -o $lib'5147 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 4713 5148 _LT_TAGVAR(link_all_deplibs, $1)=yes 5149 ;; 5150 5151 os2*) 5152 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 5153 _LT_TAGVAR(hardcode_minus_L, $1)=yes 5154 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 5155 shrext_cmds=.dll 5156 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 5157 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 5158 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 5159 $ECHO EXPORTS >> $output_objdir/$libname.def~ 5160 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 5161 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 5162 emximp -o $lib $output_objdir/$libname.def' 5163 _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 5164 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 5165 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 5166 $ECHO EXPORTS >> $output_objdir/$libname.def~ 5167 prefix_cmds="$SED"~ 5168 if test EXPORTS = "`$SED 1q $export_symbols`"; then 5169 prefix_cmds="$prefix_cmds -e 1d"; 5170 fi~ 5171 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 5172 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 5173 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 5174 emximp -o $lib $output_objdir/$libname.def' 5175 _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 5176 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 4714 5177 ;; 4715 5178 … … 4717 5180 _LT_TAGVAR(hardcode_direct, $1)=no 4718 5181 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 4719 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$ {wl}-rpath,$libdir'4720 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$ {wl}-E'5182 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' 5183 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' 4721 5184 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 4722 5185 # Instead, shared libraries are loaded at an image base (0x10000000 by … … 4725 5188 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 4726 5189 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 4727 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $ {wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'4728 _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s ,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'5190 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 5191 _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 4729 5192 ;; 4730 5193 4731 5194 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 4732 5195 tmp_diet=no 4733 if test "$host_os" = linux-dietlibc; then5196 if test linux-dietlibc = "$host_os"; then 4734 5197 case $cc_basename in 4735 5198 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) … … 4737 5200 fi 4738 5201 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 4739 && test "$tmp_diet" = no5202 && test no = "$tmp_diet" 4740 5203 then 4741 5204 tmp_addflag=' $pic_flag' … … 4743 5206 case $cc_basename,$host_cpu in 4744 5207 pgcc*) # Portland Group C compiler 4745 _LT_TAGVAR(whole_archive_flag_spec, $1)='$ {wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'5208 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 4746 5209 tmp_addflag=' $pic_flag' 4747 5210 ;; 4748 5211 pgf77* | pgf90* | pgf95* | pgfortran*) 4749 5212 # Portland Group f77 and f90 compilers 4750 _LT_TAGVAR(whole_archive_flag_spec, $1)='$ {wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'5213 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 4751 5214 tmp_addflag=' $pic_flag -Mnomain' ;; 4752 5215 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 … … 4759 5222 _LT_TAGVAR(whole_archive_flag_spec, $1)= 4760 5223 tmp_sharedflag='--shared' ;; 5224 nagfor*) # NAGFOR 5.3 5225 tmp_sharedflag='-Wl,-shared' ;; 4761 5226 xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below) 4762 5227 tmp_sharedflag='-qmkshrobj' 4763 5228 tmp_addflag= ;; 4764 5229 nvcc*) # Cuda Compiler Driver 2.2 4765 _LT_TAGVAR(whole_archive_flag_spec, $1)='$ {wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'5230 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 4766 5231 _LT_TAGVAR(compiler_needs_object, $1)=yes 4767 5232 ;; … … 4769 5234 case `$CC -V 2>&1 | sed 5q` in 4770 5235 *Sun\ C*) # Sun C 5.9 4771 _LT_TAGVAR(whole_archive_flag_spec, $1)='$ {wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'5236 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 4772 5237 _LT_TAGVAR(compiler_needs_object, $1)=yes 4773 5238 tmp_sharedflag='-G' ;; … … 4775 5240 tmp_sharedflag='-G' ;; 4776 5241 esac 4777 _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $ {wl}-soname $wl$soname -o $lib'4778 4779 if test "x$supports_anon_versioning" = xyes; then5242 _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 5243 5244 if test yes = "$supports_anon_versioning"; then 4780 5245 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ 4781 4782 4783 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'5246 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 5247 echo "local: *; };" >> $output_objdir/$libname.ver~ 5248 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 4784 5249 fi 4785 5250 4786 5251 case $cc_basename in 5252 tcc*) 5253 _LT_TAGVAR(export_dynamic_flag_spec, $1)='-rdynamic' 5254 ;; 4787 5255 xlf* | bgf* | bgxlf* | mpixlf*) 4788 5256 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 4789 5257 _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive' 4790 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 4791 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir' 5258 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 4792 5259 _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 4793 if test "x$supports_anon_versioning" = xyes; then5260 if test yes = "$supports_anon_versioning"; then 4794 5261 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ 4795 4796 4797 5262 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 5263 echo "local: *; };" >> $output_objdir/$libname.ver~ 5264 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 4798 5265 fi 4799 5266 ;; … … 4809 5276 wlarc= 4810 5277 else 4811 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $ {wl}-soname $wl$soname -o $lib'4812 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $ {wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'5278 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 5279 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 4813 5280 fi 4814 5281 ;; … … 4828 5295 _LT_EOF 4829 5296 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 4830 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $ {wl}-soname $wl$soname -o $lib'4831 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $ {wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'5297 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 5298 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 4832 5299 else 4833 5300 _LT_TAGVAR(ld_shlibs, $1)=no … … 4841 5308 cat <<_LT_EOF 1>&2 4842 5309 4843 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can 5310 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 4844 5311 *** reliably create shared libraries on SCO systems. Therefore, libtool 4845 5312 *** is disabling shared libraries support. We urge you to upgrade GNU … … 4856 5323 # requires that you compile everything twice, which is a pain. 4857 5324 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 4858 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$ {wl}-rpath ${wl}$libdir'4859 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $ {wl}-soname $wl$soname -o $lib'4860 _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'5325 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 5326 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 5327 _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' 4861 5328 else 4862 5329 _LT_TAGVAR(ld_shlibs, $1)=no … … 4875 5342 *) 4876 5343 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 4877 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $ {wl}-soname $wl$soname -o $lib'4878 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $ {wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'5344 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 5345 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 4879 5346 else 4880 5347 _LT_TAGVAR(ld_shlibs, $1)=no … … 4883 5350 esac 4884 5351 4885 if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then5352 if test no = "$_LT_TAGVAR(ld_shlibs, $1)"; then 4886 5353 runpath_var= 4887 5354 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= … … 4899 5366 # are no directories specified by -L. 4900 5367 _LT_TAGVAR(hardcode_minus_L, $1)=yes 4901 if test "$GCC" = yes&& test -z "$lt_prog_compiler_static"; then5368 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 4902 5369 # Neither direct hardcoding nor static linking is supported with a 4903 5370 # broken collect2. … … 4907 5374 4908 5375 aix[[4-9]]*) 4909 if test "$host_cpu" = ia64; then5376 if test ia64 = "$host_cpu"; then 4910 5377 # On IA64, the linker does run time linking by default, so we don't 4911 5378 # have to do anything special. 4912 5379 aix_use_runtimelinking=no 4913 5380 exp_sym_flag='-Bexport' 4914 no_entry_flag= ""5381 no_entry_flag= 4915 5382 else 4916 5383 # If we're using GNU nm, then we don't want the "-C" option. 4917 # -C means demangle to AIX nm, but means don't demangle with GNU nm 4918 # Also, AIX nm treats weak defined symbols like other global 4919 # defined symbols, whereas GNU nm marks them as "W". 5384 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 5385 # Without the "-l" option, or with the "-B" option, AIX nm treats 5386 # weak defined symbols like other global defined symbols, whereas 5387 # GNU nm marks them as "W". 5388 # While the 'weak' keyword is ignored in the Export File, we need 5389 # it in the Import File for the 'aix-soname' feature, so we have 5390 # to replace the "-B" option with "-P" for AIX nm. 4920 5391 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 4921 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3} }'\'' | sort -u > $export_symbols'5392 _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' 4922 5393 else 4923 _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'5394 _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' 4924 5395 fi 4925 5396 aix_use_runtimelinking=no … … 4927 5398 # Test if we are trying to use run time linking or normal 4928 5399 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 4929 # need to do runtime linking. 5400 # have runtime linking enabled, and use it for executables. 5401 # For shared libraries, we enable/disable runtime linking 5402 # depending on the kind of the shared library created - 5403 # when "with_aix_soname,aix_use_runtimelinking" is: 5404 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 5405 # "aix,yes" lib.so shared, rtl:yes, for executables 5406 # lib.a static archive 5407 # "both,no" lib.so.V(shr.o) shared, rtl:yes 5408 # lib.a(lib.so.V) shared, rtl:no, for executables 5409 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 5410 # lib.a(lib.so.V) shared, rtl:no 5411 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 5412 # lib.a static archive 4930 5413 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) 4931 5414 for ld_flag in $LDFLAGS; do 4932 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then5415 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 4933 5416 aix_use_runtimelinking=yes 4934 5417 break 4935 5418 fi 4936 5419 done 5420 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 5421 # With aix-soname=svr4, we create the lib.so.V shared archives only, 5422 # so we don't have lib.a shared libs to link our executables. 5423 # We have to force runtime linking in this case. 5424 aix_use_runtimelinking=yes 5425 LDFLAGS="$LDFLAGS -Wl,-brtl" 5426 fi 4937 5427 ;; 4938 5428 esac … … 4953 5443 _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 4954 5444 _LT_TAGVAR(link_all_deplibs, $1)=yes 4955 _LT_TAGVAR(file_list_spec, $1)='${wl}-f,' 4956 4957 if test "$GCC" = yes; then 5445 _LT_TAGVAR(file_list_spec, $1)='$wl-f,' 5446 case $with_aix_soname,$aix_use_runtimelinking in 5447 aix,*) ;; # traditional, no import file 5448 svr4,* | *,yes) # use import file 5449 # The Import File defines what to hardcode. 5450 _LT_TAGVAR(hardcode_direct, $1)=no 5451 _LT_TAGVAR(hardcode_direct_absolute, $1)=no 5452 ;; 5453 esac 5454 5455 if test yes = "$GCC"; then 4958 5456 case $host_os in aix4.[[012]]|aix4.[[012]].*) 4959 5457 # We only want to do this on AIX 4.2 and lower, the check 4960 5458 # below for broken collect2 doesn't work under 4.3+ 4961 collect2name=`$ {CC}-print-prog-name=collect2`5459 collect2name=`$CC -print-prog-name=collect2` 4962 5460 if test -f "$collect2name" && 4963 5461 strings "$collect2name" | $GREP resolve_lib_name >/dev/null … … 4978 5476 esac 4979 5477 shared_flag='-shared' 4980 if test "$aix_use_runtimelinking" = yes; then4981 shared_flag="$shared_flag "'$ {wl}-G'5478 if test yes = "$aix_use_runtimelinking"; then 5479 shared_flag="$shared_flag "'$wl-G' 4982 5480 fi 4983 _LT_TAGVAR(link_all_deplibs, $1)=no 5481 # Need to ensure runtime linking is disabled for the traditional 5482 # shared library, or the linker may eventually find shared libraries 5483 # /with/ Import File - we do not want to mix them. 5484 shared_flag_aix='-shared' 5485 shared_flag_svr4='-shared $wl-G' 4984 5486 else 4985 5487 # not using gcc 4986 if test "$host_cpu" = ia64; then5488 if test ia64 = "$host_cpu"; then 4987 5489 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 4988 5490 # chokes on -Wl,-G. The following line is correct: 4989 5491 shared_flag='-G' 4990 5492 else 4991 if test "$aix_use_runtimelinking" = yes; then4992 shared_flag='$ {wl}-G'5493 if test yes = "$aix_use_runtimelinking"; then 5494 shared_flag='$wl-G' 4993 5495 else 4994 shared_flag='$ {wl}-bM:SRE'5496 shared_flag='$wl-bM:SRE' 4995 5497 fi 5498 shared_flag_aix='$wl-bM:SRE' 5499 shared_flag_svr4='$wl-G' 4996 5500 fi 4997 5501 fi 4998 5502 4999 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$ {wl}-bexpall'5503 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall' 5000 5504 # It seems that -bexpall does not export symbols beginning with 5001 5505 # underscore (_), so it is better to generate a list of symbols to export. 5002 5506 _LT_TAGVAR(always_export_symbols, $1)=yes 5003 if test "$aix_use_runtimelinking" = yes; then5507 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 5004 5508 # Warning - without using the other runtime loading flags (-brtl), 5005 5509 # -berok will link without error, but may produce a broken library. … … 5008 5512 # empty executable. 5009 5513 _LT_SYS_MODULE_PATH_AIX([$1]) 5010 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$ {wl}-blibpath:$libdir:'"$aix_libpath"5011 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"5514 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath" 5515 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 5012 5516 else 5013 if test "$host_cpu" = ia64; then5014 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$ {wl}-R $libdir:/usr/lib:/lib'5517 if test ia64 = "$host_cpu"; then 5518 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib' 5015 5519 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" 5016 _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"5520 _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" 5017 5521 else 5018 5522 # Determine the default libpath from the value encoded in an 5019 5523 # empty executable. 5020 5524 _LT_SYS_MODULE_PATH_AIX([$1]) 5021 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$ {wl}-blibpath:$libdir:'"$aix_libpath"5525 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath" 5022 5526 # Warning - without using the other run time loading flags, 5023 5527 # -berok will link without error, but may produce a broken library. 5024 _LT_TAGVAR(no_undefined_flag, $1)=' $ {wl}-bernotok'5025 _LT_TAGVAR(allow_undefined_flag, $1)=' $ {wl}-berok'5026 if test "$with_gnu_ld" = yes; then5528 _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok' 5529 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok' 5530 if test yes = "$with_gnu_ld"; then 5027 5531 # We only use this code for GNU lds that support --whole-archive. 5028 _LT_TAGVAR(whole_archive_flag_spec, $1)='$ {wl}--whole-archive$convenience ${wl}--no-whole-archive'5532 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive' 5029 5533 else 5030 5534 # Exported symbols can be pulled into shared objects from archives … … 5032 5536 fi 5033 5537 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes 5034 # This is similar to how AIX traditionally builds its shared libraries. 5035 _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' 5538 _LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 5539 # -brtl affects multiple linker settings, -berok does not and is overridden later 5540 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\1%g"`' 5541 if test svr4 != "$with_aix_soname"; then 5542 # This is similar to how AIX traditionally builds its shared libraries. 5543 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 5544 fi 5545 if test aix != "$with_aix_soname"; then 5546 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 5547 else 5548 # used by -dlpreopen to get the symbols 5549 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 5550 fi 5551 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/$realname.d' 5036 5552 fi 5037 5553 fi … … 5042 5558 powerpc) 5043 5559 # see comment about AmigaOS4 .so support 5044 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $ {wl}-soname $wl$soname -o $lib'5560 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 5045 5561 _LT_TAGVAR(archive_expsym_cmds, $1)='' 5046 5562 ;; … … 5072 5588 libext=lib 5073 5589 # Tell ltmain to make .dll files, not .so files. 5074 shrext_cmds= ".dll"5590 shrext_cmds=.dll 5075 5591 # FIXME: Setting linknames here is a bad hack. 5076 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 5077 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 5078 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 5079 else 5080 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 5081 fi~ 5082 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 5083 linknames=' 5592 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 5593 _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then 5594 cp "$export_symbols" "$output_objdir/$soname.def"; 5595 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 5596 else 5597 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 5598 fi~ 5599 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 5600 linknames=' 5084 5601 # The linker will not automatically build a static lib if we build a DLL. 5085 5602 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' 5086 5603 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 5604 _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 5087 5605 _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' 5088 5606 # Don't use ranlib 5089 5607 _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' 5090 5608 _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~ 5091 5092 5093 5094 5095 lt_outputfile="$lt_outputfile.exe" 5096 lt_tool_outputfile="$lt_tool_outputfile.exe" 5097 5098 5099 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then5100 5101 5102 5609 lt_tool_outputfile="@TOOL_OUTPUT@"~ 5610 case $lt_outputfile in 5611 *.exe|*.EXE) ;; 5612 *) 5613 lt_outputfile=$lt_outputfile.exe 5614 lt_tool_outputfile=$lt_tool_outputfile.exe 5615 ;; 5616 esac~ 5617 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 5618 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 5619 $RM "$lt_outputfile.manifest"; 5620 fi' 5103 5621 ;; 5104 5622 *) … … 5109 5627 libext=lib 5110 5628 # Tell ltmain to make .dll files, not .so files. 5111 shrext_cmds= ".dll"5629 shrext_cmds=.dll 5112 5630 # FIXME: Setting linknames here is a bad hack. 5113 5631 _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' … … 5131 5649 ;; 5132 5650 5133 freebsd1*)5134 _LT_TAGVAR(ld_shlibs, $1)=no5135 ;;5136 5137 5651 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 5138 5652 # support. Future versions do this automatically, but an explicit c++rt0.o … … 5147 5661 5148 5662 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 5149 freebsd2 *)5663 freebsd2.*) 5150 5664 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 5151 5665 _LT_TAGVAR(hardcode_direct, $1)=yes … … 5163 5677 5164 5678 hpux9*) 5165 if test "$GCC" = yes; then5166 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag $ {wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib|| mv $output_objdir/$soname $lib'5679 if test yes = "$GCC"; then 5680 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 5167 5681 else 5168 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib|| mv $output_objdir/$soname $lib'5682 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 5169 5683 fi 5170 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$ {wl}+b ${wl}$libdir'5684 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' 5171 5685 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 5172 5686 _LT_TAGVAR(hardcode_direct, $1)=yes … … 5175 5689 # but as the default location of the library. 5176 5690 _LT_TAGVAR(hardcode_minus_L, $1)=yes 5177 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$ {wl}-E'5691 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' 5178 5692 ;; 5179 5693 5180 5694 hpux10*) 5181 if test "$GCC" = yes && test "$with_gnu_ld" = no; then5182 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $ {wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'5695 if test yes,no = "$GCC,$with_gnu_ld"; then 5696 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 5183 5697 else 5184 5698 _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 5185 5699 fi 5186 if test "$with_gnu_ld" = no; then 5187 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 5188 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' 5700 if test no = "$with_gnu_ld"; then 5701 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' 5189 5702 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 5190 5703 _LT_TAGVAR(hardcode_direct, $1)=yes 5191 5704 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 5192 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$ {wl}-E'5705 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' 5193 5706 # hardcode_minus_L: Not really in the search PATH, 5194 5707 # but as the default location of the library. … … 5198 5711 5199 5712 hpux11*) 5200 if test "$GCC" = yes && test "$with_gnu_ld" = no; then5713 if test yes,no = "$GCC,$with_gnu_ld"; then 5201 5714 case $host_cpu in 5202 5715 hppa*64*) 5203 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $ {wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'5716 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 5204 5717 ;; 5205 5718 ia64*) 5206 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $ {wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'5719 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 5207 5720 ;; 5208 5721 *) 5209 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $ {wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'5722 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 5210 5723 ;; 5211 5724 esac … … 5213 5726 case $host_cpu in 5214 5727 hppa*64*) 5215 _LT_TAGVAR(archive_cmds, $1)='$CC -b $ {wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'5728 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 5216 5729 ;; 5217 5730 ia64*) 5218 _LT_TAGVAR(archive_cmds, $1)='$CC -b $ {wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'5731 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 5219 5732 ;; 5220 5733 *) … … 5224 5737 _LT_LINKER_OPTION([if $CC understands -b], 5225 5738 _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b], 5226 [_LT_TAGVAR(archive_cmds, $1)='$CC -b $ {wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],5739 [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'], 5227 5740 [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])], 5228 [_LT_TAGVAR(archive_cmds, $1)='$CC -b $ {wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])5741 [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags']) 5229 5742 ;; 5230 5743 esac 5231 5744 fi 5232 if test "$with_gnu_ld" = no; then5233 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$ {wl}+b ${wl}$libdir'5745 if test no = "$with_gnu_ld"; then 5746 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' 5234 5747 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 5235 5748 … … 5242 5755 _LT_TAGVAR(hardcode_direct, $1)=yes 5243 5756 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 5244 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$ {wl}-E'5757 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' 5245 5758 5246 5759 # hardcode_minus_L: Not really in the search PATH, … … 5253 5766 5254 5767 irix5* | irix6* | nonstopux*) 5255 if test "$GCC" = yes; then5256 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $ {wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'5768 if test yes = "$GCC"; then 5769 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 5257 5770 # Try to use the -exported_symbol ld option, if it does not 5258 5771 # work, assume that -exports_file does not work either and … … 5261 5774 AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol], 5262 5775 [lt_cv_irix_exported_symbol], 5263 [save_LDFLAGS= "$LDFLAGS"5264 LDFLAGS="$LDFLAGS -shared $ {wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"5776 [save_LDFLAGS=$LDFLAGS 5777 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 5265 5778 AC_LINK_IFELSE( 5266 5779 [AC_LANG_SOURCE( … … 5275 5788 [lt_cv_irix_exported_symbol=yes], 5276 5789 [lt_cv_irix_exported_symbol=no]) 5277 LDFLAGS= "$save_LDFLAGS"])5278 if test "$lt_cv_irix_exported_symbol" = yes; then5279 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $ {wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'5790 LDFLAGS=$save_LDFLAGS]) 5791 if test yes = "$lt_cv_irix_exported_symbol"; then 5792 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib' 5280 5793 fi 5794 _LT_TAGVAR(link_all_deplibs, $1)=no 5281 5795 else 5282 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $ {output_objdir}/so_locations -o $lib'5283 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $ {output_objdir}/so_locations -exports_file $export_symbols -o $lib'5796 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 5797 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib' 5284 5798 fi 5285 5799 _LT_TAGVAR(archive_cmds_need_lc, $1)='no' 5286 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$ {wl}-rpath ${wl}$libdir'5800 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 5287 5801 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 5288 5802 _LT_TAGVAR(inherit_rpath, $1)=yes 5289 5803 _LT_TAGVAR(link_all_deplibs, $1)=yes 5804 ;; 5805 5806 linux*) 5807 case $cc_basename in 5808 tcc*) 5809 # Fabrice Bellard et al's Tiny C Compiler 5810 _LT_TAGVAR(ld_shlibs, $1)=yes 5811 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 5812 ;; 5813 esac 5290 5814 ;; 5291 5815 … … 5304 5828 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 5305 5829 _LT_TAGVAR(hardcode_direct, $1)=yes 5306 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$ {wl}-rpath ${wl}$libdir'5830 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 5307 5831 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 5308 5832 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no … … 5312 5836 ;; 5313 5837 5314 openbsd* )5838 openbsd* | bitrig*) 5315 5839 if test -f /usr/libexec/ld.so; then 5316 5840 _LT_TAGVAR(hardcode_direct, $1)=yes 5317 5841 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5318 5842 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 5319 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then5843 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 5320 5844 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 5321 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $ {wl}-retain-symbols-file,$export_symbols'5322 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$ {wl}-rpath,$libdir'5323 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$ {wl}-E'5845 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 5846 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' 5847 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' 5324 5848 else 5325 case $host_os in 5326 openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) 5327 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 5328 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 5329 ;; 5330 *) 5331 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 5332 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 5333 ;; 5334 esac 5849 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 5850 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' 5335 5851 fi 5336 5852 else … … 5343 5859 _LT_TAGVAR(hardcode_minus_L, $1)=yes 5344 5860 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 5345 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 5346 _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 5861 shrext_cmds=.dll 5862 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 5863 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 5864 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 5865 $ECHO EXPORTS >> $output_objdir/$libname.def~ 5866 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 5867 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 5868 emximp -o $lib $output_objdir/$libname.def' 5869 _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 5870 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 5871 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 5872 $ECHO EXPORTS >> $output_objdir/$libname.def~ 5873 prefix_cmds="$SED"~ 5874 if test EXPORTS = "`$SED 1q $export_symbols`"; then 5875 prefix_cmds="$prefix_cmds -e 1d"; 5876 fi~ 5877 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 5878 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 5879 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 5880 emximp -o $lib $output_objdir/$libname.def' 5881 _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 5882 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 5347 5883 ;; 5348 5884 5349 5885 osf3*) 5350 if test "$GCC" = yes; then5351 _LT_TAGVAR(allow_undefined_flag, $1)=' $ {wl}-expect_unresolved ${wl}\*'5352 _LT_TAGVAR(archive_cmds, $1)='$CC -shared$ {allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'5886 if test yes = "$GCC"; then 5887 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*' 5888 _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 5353 5889 else 5354 5890 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 5355 _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'5891 _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' 5356 5892 fi 5357 5893 _LT_TAGVAR(archive_cmds_need_lc, $1)='no' 5358 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$ {wl}-rpath ${wl}$libdir'5894 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 5359 5895 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 5360 5896 ;; 5361 5897 5362 5898 osf4* | osf5*) # as osf3* with the addition of -msym flag 5363 if test "$GCC" = yes; then5364 _LT_TAGVAR(allow_undefined_flag, $1)=' $ {wl}-expect_unresolved ${wl}\*'5365 _LT_TAGVAR(archive_cmds, $1)='$CC -shared$ {allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'5366 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$ {wl}-rpath ${wl}$libdir'5899 if test yes = "$GCC"; then 5900 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*' 5901 _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 5902 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 5367 5903 else 5368 5904 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 5369 _LT_TAGVAR(archive_cmds, $1)='$CC -shared$ {allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'5905 _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 5370 5906 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ 5371 $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'5907 $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' 5372 5908 5373 5909 # Both c and cxx compiler support -rpath directly … … 5380 5916 solaris*) 5381 5917 _LT_TAGVAR(no_undefined_flag, $1)=' -z defs' 5382 if test "$GCC" = yes; then5383 wlarc='$ {wl}'5384 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $ {wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'5918 if test yes = "$GCC"; then 5919 wlarc='$wl' 5920 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 5385 5921 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 5386 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'5922 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 5387 5923 else 5388 5924 case `$CC -V 2>&1` in 5389 5925 *"Compilers 5.0"*) 5390 5926 wlarc='' 5391 _LT_TAGVAR(archive_cmds, $1)='$LD -G$ {allow_undefined_flag}-h $soname -o $lib $libobjs $deplibs $linker_flags'5927 _LT_TAGVAR(archive_cmds, $1)='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 5392 5928 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 5393 $LD -G${allow_undefined_flag}-M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'5929 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 5394 5930 ;; 5395 5931 *) 5396 wlarc='$ {wl}'5397 _LT_TAGVAR(archive_cmds, $1)='$CC -G$ {allow_undefined_flag}-h $soname -o $lib $libobjs $deplibs $compiler_flags'5932 wlarc='$wl' 5933 _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 5398 5934 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 5399 $CC -G${allow_undefined_flag}-M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'5935 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 5400 5936 ;; 5401 5937 esac … … 5407 5943 *) 5408 5944 # The compiler driver will combine and reorder linker options, 5409 # but understands `-z linker_flag'. GCC discards it without `$wl',5945 # but understands '-z linker_flag'. GCC discards it without '$wl', 5410 5946 # but is careful enough not to reorder. 5411 5947 # Supported since Solaris 2.6 (maybe 2.5.1?) 5412 if test "$GCC" = yes; then5413 _LT_TAGVAR(whole_archive_flag_spec, $1)='$ {wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'5948 if test yes = "$GCC"; then 5949 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 5414 5950 else 5415 5951 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' … … 5421 5957 5422 5958 sunos4*) 5423 if test "x$host_vendor" = xsequent; then5959 if test sequent = "$host_vendor"; then 5424 5960 # Use $CC to link under sequent, because it throws in some extra .o 5425 5961 # files that make .init and .fini sections work. 5426 _LT_TAGVAR(archive_cmds, $1)='$CC -G $ {wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'5962 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 5427 5963 else 5428 5964 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' … … 5473 6009 5474 6010 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) 5475 _LT_TAGVAR(no_undefined_flag, $1)='$ {wl}-z,text'6011 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text' 5476 6012 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 5477 6013 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5478 6014 runpath_var='LD_RUN_PATH' 5479 6015 5480 if test "$GCC" = yes; then5481 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $ {wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'5482 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $ {wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'6016 if test yes = "$GCC"; then 6017 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6018 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 5483 6019 else 5484 _LT_TAGVAR(archive_cmds, $1)='$CC -G $ {wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'5485 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $ {wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'6020 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6021 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 5486 6022 fi 5487 6023 ;; 5488 6024 5489 6025 sysv5* | sco3.2v5* | sco5v6*) 5490 # Note: We canNOT use -z defs as we might desire, because we do not6026 # Note: We CANNOT use -z defs as we might desire, because we do not 5491 6027 # link with -lc, and that would cause any symbols used from libc to 5492 6028 # always be unresolved, which means just about no library would … … 5494 6030 # though, which does catch some bad symbols but isn't as heavy-handed 5495 6031 # as -z defs. 5496 _LT_TAGVAR(no_undefined_flag, $1)='$ {wl}-z,text'5497 _LT_TAGVAR(allow_undefined_flag, $1)='$ {wl}-z,nodefs'6032 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text' 6033 _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs' 5498 6034 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 5499 6035 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5500 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$ {wl}-R,$libdir'6036 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir' 5501 6037 _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 5502 6038 _LT_TAGVAR(link_all_deplibs, $1)=yes 5503 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$ {wl}-Bexport'6039 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport' 5504 6040 runpath_var='LD_RUN_PATH' 5505 6041 5506 if test "$GCC" = yes; then5507 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $ {wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'5508 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $ {wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'6042 if test yes = "$GCC"; then 6043 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6044 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 5509 6045 else 5510 _LT_TAGVAR(archive_cmds, $1)='$CC -G $ {wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'5511 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $ {wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'6046 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6047 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 5512 6048 fi 5513 6049 ;; … … 5524 6060 esac 5525 6061 5526 if test x$host_vendor = xsni; then6062 if test sni = "$host_vendor"; then 5527 6063 case $host in 5528 6064 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 5529 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$ {wl}-Blargedynsym'6065 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Blargedynsym' 5530 6066 ;; 5531 6067 esac … … 5534 6070 ]) 5535 6071 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) 5536 test "$_LT_TAGVAR(ld_shlibs, $1)" = no&& can_build_shared=no6072 test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no 5537 6073 5538 6074 _LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld … … 5551 6087 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes 5552 6088 5553 if test "$enable_shared" = yes && test "$GCC" = yes; then6089 if test yes,yes = "$GCC,$enable_shared"; then 5554 6090 case $_LT_TAGVAR(archive_cmds, $1) in 5555 6091 *'~'*) … … 5628 6164 [Flag to hardcode $libdir into a binary during linking. 5629 6165 This must work even if $libdir does not exist]) 5630 _LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],5631 [[If ld is used when linking, flag to hardcode $libdir into a binary5632 during linking. This must work even if $libdir does not exist]])5633 6166 _LT_TAGDECL([], [hardcode_libdir_separator], [1], 5634 6167 [Whether we need a single "-rpath" flag with a separated argument]) 5635 6168 _LT_TAGDECL([], [hardcode_direct], [0], 5636 [Set to "yes" if using DIR/libNAME$ {shared_ext}during linking hardcodes6169 [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes 5637 6170 DIR into the resulting binary]) 5638 6171 _LT_TAGDECL([], [hardcode_direct_absolute], [0], 5639 [Set to "yes" if using DIR/libNAME$ {shared_ext}during linking hardcodes6172 [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes 5640 6173 DIR into the resulting binary and the resulting library dependency is 5641 "absolute", i.e impossible to change by setting $ {shlibpath_var}if the6174 "absolute", i.e impossible to change by setting $shlibpath_var if the 5642 6175 library is relocated]) 5643 6176 _LT_TAGDECL([], [hardcode_minus_L], [0], … … 5680 6213 # Ensure that the configuration variables for a C compiler are suitably 5681 6214 # defined. These variables are subsequently used by _LT_CONFIG to write 5682 # the compiler configuration to `libtool'.6215 # the compiler configuration to 'libtool'. 5683 6216 m4_defun([_LT_LANG_C_CONFIG], 5684 6217 [m4_require([_LT_DECL_EGREP])dnl 5685 lt_save_CC= "$CC"6218 lt_save_CC=$CC 5686 6219 AC_LANG_PUSH(C) 5687 6220 … … 5723 6256 _LT_CMD_STRIPLIB 5724 6257 5725 # Report wh ichlibrary types will actually be built6258 # Report what library types will actually be built 5726 6259 AC_MSG_CHECKING([if libtool supports shared libraries]) 5727 6260 AC_MSG_RESULT([$can_build_shared]) 5728 6261 5729 6262 AC_MSG_CHECKING([whether to build shared libraries]) 5730 test "$can_build_shared" = "no" && enable_shared=no6263 test no = "$can_build_shared" && enable_shared=no 5731 6264 5732 6265 # On AIX, shared libraries and static libraries use the same namespace, and … … 5734 6267 case $host_os in 5735 6268 aix3*) 5736 test "$enable_shared" = yes&& enable_static=no6269 test yes = "$enable_shared" && enable_static=no 5737 6270 if test -n "$RANLIB"; then 5738 6271 archive_cmds="$archive_cmds~\$RANLIB \$lib" … … 5742 6275 5743 6276 aix[[4-9]]*) 5744 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 5745 test "$enable_shared" = yes && enable_static=no 6277 if test ia64 != "$host_cpu"; then 6278 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 6279 yes,aix,yes) ;; # shared object as lib.so file only 6280 yes,svr4,*) ;; # shared object as lib.so archive member only 6281 yes,*) enable_static=no ;; # shared object in lib.a archive as well 6282 esac 5746 6283 fi 5747 6284 ;; … … 5751 6288 AC_MSG_CHECKING([whether to build static libraries]) 5752 6289 # Make sure either enable_shared or enable_static is yes. 5753 test "$enable_shared" = yes|| enable_static=yes6290 test yes = "$enable_shared" || enable_static=yes 5754 6291 AC_MSG_RESULT([$enable_static]) 5755 6292 … … 5757 6294 fi 5758 6295 AC_LANG_POP 5759 CC= "$lt_save_CC"6296 CC=$lt_save_CC 5760 6297 ])# _LT_LANG_C_CONFIG 5761 6298 … … 5765 6302 # Ensure that the configuration variables for a C++ compiler are suitably 5766 6303 # defined. These variables are subsequently used by _LT_CONFIG to write 5767 # the compiler configuration to `libtool'.6304 # the compiler configuration to 'libtool'. 5768 6305 m4_defun([_LT_LANG_CXX_CONFIG], 5769 6306 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl 5770 6307 m4_require([_LT_DECL_EGREP])dnl 5771 6308 m4_require([_LT_PATH_MANIFEST_TOOL])dnl 5772 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&5773 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||5774 (test "X$CXX" != "Xg++"))); then6309 if test -n "$CXX" && ( test no != "$CXX" && 6310 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || 6311 (test g++ != "$CXX"))); then 5775 6312 AC_PROG_CXXCPP 5776 6313 else … … 5788 6325 _LT_TAGVAR(hardcode_direct_absolute, $1)=no 5789 6326 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 5790 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=5791 6327 _LT_TAGVAR(hardcode_libdir_separator, $1)= 5792 6328 _LT_TAGVAR(hardcode_minus_L, $1)=no … … 5815 6351 # are currently assumed to apply to all compilers on this platform, 5816 6352 # and will be corrupted by setting them based on a non-working compiler. 5817 if test "$_lt_caught_CXX_error" != yes; then6353 if test yes != "$_lt_caught_CXX_error"; then 5818 6354 # Code to be used in simple compile tests 5819 6355 lt_simple_compile_test_code="int some_variable = 0;" … … 5857 6393 # We don't want -fno-exception when compiling C++ code, so set the 5858 6394 # no_builtin_flag separately 5859 if test "$GXX" = yes; then6395 if test yes = "$GXX"; then 5860 6396 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' 5861 6397 else … … 5863 6399 fi 5864 6400 5865 if test "$GXX" = yes; then6401 if test yes = "$GXX"; then 5866 6402 # Set up default GNU C++ configuration 5867 6403 … … 5870 6406 # Check if GNU C++ uses GNU ld as the underlying linker, since the 5871 6407 # archiving commands below assume that GNU ld is being used. 5872 if test "$with_gnu_ld" = yes; then5873 _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $ {wl}-soname $wl$soname -o $lib'5874 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $ {wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'5875 5876 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$ {wl}-rpath ${wl}$libdir'5877 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$ {wl}--export-dynamic'6408 if test yes = "$with_gnu_ld"; then 6409 _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 6410 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 6411 6412 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 6413 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' 5878 6414 5879 6415 # If archive_cmds runs LD, not CC, wlarc should be empty 5880 6416 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 5881 6417 # investigate it a little bit more. (MM) 5882 wlarc='$ {wl}'6418 wlarc='$wl' 5883 6419 5884 6420 # ancient GNU ld didn't support --whole-archive et. al. 5885 6421 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 5886 6422 $GREP 'no-whole-archive' > /dev/null; then 5887 _LT_TAGVAR(whole_archive_flag_spec, $1)= "$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'6423 _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 5888 6424 else 5889 6425 _LT_TAGVAR(whole_archive_flag_spec, $1)= … … 5921 6457 ;; 5922 6458 aix[[4-9]]*) 5923 if test "$host_cpu" = ia64; then6459 if test ia64 = "$host_cpu"; then 5924 6460 # On IA64, the linker does run time linking by default, so we don't 5925 6461 # have to do anything special. 5926 6462 aix_use_runtimelinking=no 5927 6463 exp_sym_flag='-Bexport' 5928 no_entry_flag= ""6464 no_entry_flag= 5929 6465 else 5930 6466 aix_use_runtimelinking=no … … 5932 6468 # Test if we are trying to use run time linking or normal 5933 6469 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 5934 # need to do runtime linking. 6470 # have runtime linking enabled, and use it for executables. 6471 # For shared libraries, we enable/disable runtime linking 6472 # depending on the kind of the shared library created - 6473 # when "with_aix_soname,aix_use_runtimelinking" is: 6474 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 6475 # "aix,yes" lib.so shared, rtl:yes, for executables 6476 # lib.a static archive 6477 # "both,no" lib.so.V(shr.o) shared, rtl:yes 6478 # lib.a(lib.so.V) shared, rtl:no, for executables 6479 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 6480 # lib.a(lib.so.V) shared, rtl:no 6481 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 6482 # lib.a static archive 5935 6483 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) 5936 6484 for ld_flag in $LDFLAGS; do … … 5942 6490 esac 5943 6491 done 6492 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 6493 # With aix-soname=svr4, we create the lib.so.V shared archives only, 6494 # so we don't have lib.a shared libs to link our executables. 6495 # We have to force runtime linking in this case. 6496 aix_use_runtimelinking=yes 6497 LDFLAGS="$LDFLAGS -Wl,-brtl" 6498 fi 5944 6499 ;; 5945 6500 esac … … 5960 6515 _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 5961 6516 _LT_TAGVAR(link_all_deplibs, $1)=yes 5962 _LT_TAGVAR(file_list_spec, $1)='${wl}-f,' 5963 5964 if test "$GXX" = yes; then 6517 _LT_TAGVAR(file_list_spec, $1)='$wl-f,' 6518 case $with_aix_soname,$aix_use_runtimelinking in 6519 aix,*) ;; # no import file 6520 svr4,* | *,yes) # use import file 6521 # The Import File defines what to hardcode. 6522 _LT_TAGVAR(hardcode_direct, $1)=no 6523 _LT_TAGVAR(hardcode_direct_absolute, $1)=no 6524 ;; 6525 esac 6526 6527 if test yes = "$GXX"; then 5965 6528 case $host_os in aix4.[[012]]|aix4.[[012]].*) 5966 6529 # We only want to do this on AIX 4.2 and lower, the check 5967 6530 # below for broken collect2 doesn't work under 4.3+ 5968 collect2name=`$ {CC}-print-prog-name=collect2`6531 collect2name=`$CC -print-prog-name=collect2` 5969 6532 if test -f "$collect2name" && 5970 6533 strings "$collect2name" | $GREP resolve_lib_name >/dev/null … … 5984 6547 esac 5985 6548 shared_flag='-shared' 5986 if test "$aix_use_runtimelinking" = yes; then5987 shared_flag= "$shared_flag "'${wl}-G'6549 if test yes = "$aix_use_runtimelinking"; then 6550 shared_flag=$shared_flag' $wl-G' 5988 6551 fi 6552 # Need to ensure runtime linking is disabled for the traditional 6553 # shared library, or the linker may eventually find shared libraries 6554 # /with/ Import File - we do not want to mix them. 6555 shared_flag_aix='-shared' 6556 shared_flag_svr4='-shared $wl-G' 5989 6557 else 5990 6558 # not using gcc 5991 if test "$host_cpu" = ia64; then6559 if test ia64 = "$host_cpu"; then 5992 6560 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 5993 6561 # chokes on -Wl,-G. The following line is correct: 5994 6562 shared_flag='-G' 5995 6563 else 5996 if test "$aix_use_runtimelinking" = yes; then5997 shared_flag='$ {wl}-G'6564 if test yes = "$aix_use_runtimelinking"; then 6565 shared_flag='$wl-G' 5998 6566 else 5999 shared_flag='$ {wl}-bM:SRE'6567 shared_flag='$wl-bM:SRE' 6000 6568 fi 6569 shared_flag_aix='$wl-bM:SRE' 6570 shared_flag_svr4='$wl-G' 6001 6571 fi 6002 6572 fi 6003 6573 6004 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$ {wl}-bexpall'6574 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall' 6005 6575 # It seems that -bexpall does not export symbols beginning with 6006 6576 # underscore (_), so it is better to generate a list of symbols to 6007 6577 # export. 6008 6578 _LT_TAGVAR(always_export_symbols, $1)=yes 6009 if test "$aix_use_runtimelinking" = yes; then6579 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 6010 6580 # Warning - without using the other runtime loading flags (-brtl), 6011 6581 # -berok will link without error, but may produce a broken library. 6012 _LT_TAGVAR(allow_undefined_flag, $1)='-berok' 6582 # The "-G" linker flag allows undefined symbols. 6583 _LT_TAGVAR(no_undefined_flag, $1)='-bernotok' 6013 6584 # Determine the default libpath from the value encoded in an empty 6014 6585 # executable. 6015 6586 _LT_SYS_MODULE_PATH_AIX([$1]) 6016 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$ {wl}-blibpath:$libdir:'"$aix_libpath"6017 6018 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"6587 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath" 6588 6589 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 6019 6590 else 6020 if test "$host_cpu" = ia64; then6021 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$ {wl}-R $libdir:/usr/lib:/lib'6591 if test ia64 = "$host_cpu"; then 6592 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib' 6022 6593 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" 6023 _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"6594 _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" 6024 6595 else 6025 6596 # Determine the default libpath from the value encoded in an 6026 6597 # empty executable. 6027 6598 _LT_SYS_MODULE_PATH_AIX([$1]) 6028 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$ {wl}-blibpath:$libdir:'"$aix_libpath"6599 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath" 6029 6600 # Warning - without using the other run time loading flags, 6030 6601 # -berok will link without error, but may produce a broken library. 6031 _LT_TAGVAR(no_undefined_flag, $1)=' $ {wl}-bernotok'6032 _LT_TAGVAR(allow_undefined_flag, $1)=' $ {wl}-berok'6033 if test "$with_gnu_ld" = yes; then6602 _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok' 6603 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok' 6604 if test yes = "$with_gnu_ld"; then 6034 6605 # We only use this code for GNU lds that support --whole-archive. 6035 _LT_TAGVAR(whole_archive_flag_spec, $1)='$ {wl}--whole-archive$convenience ${wl}--no-whole-archive'6606 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive' 6036 6607 else 6037 6608 # Exported symbols can be pulled into shared objects from archives … … 6039 6610 fi 6040 6611 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes 6041 # This is similar to how AIX traditionally builds its shared 6042 # libraries. 6043 _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' 6612 _LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 6613 # -brtl affects multiple linker settings, -berok does not and is overridden later 6614 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\1%g"`' 6615 if test svr4 != "$with_aix_soname"; then 6616 # This is similar to how AIX traditionally builds its shared 6617 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. 6618 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 6619 fi 6620 if test aix != "$with_aix_soname"; then 6621 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 6622 else 6623 # used by -dlpreopen to get the symbols 6624 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 6625 fi 6626 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/$realname.d' 6044 6627 fi 6045 6628 fi … … 6051 6634 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 6052 6635 # support --undefined. This deserves some investigation. FIXME 6053 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $ {wl}-soname $wl$soname -o $lib'6636 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 6054 6637 else 6055 6638 _LT_TAGVAR(ld_shlibs, $1)=no … … 6079 6662 libext=lib 6080 6663 # Tell ltmain to make .dll files, not .so files. 6081 shrext_cmds= ".dll"6664 shrext_cmds=.dll 6082 6665 # FIXME: Setting linknames here is a bad hack. 6083 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 6084 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 6085 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 6086 else 6087 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 6088 fi~ 6089 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 6090 linknames=' 6666 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 6667 _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then 6668 cp "$export_symbols" "$output_objdir/$soname.def"; 6669 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 6670 else 6671 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 6672 fi~ 6673 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 6674 linknames=' 6091 6675 # The linker will not automatically build a static lib if we build a DLL. 6092 6676 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' … … 6095 6679 _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' 6096 6680 _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~ 6097 6098 6099 6100 6101 lt_outputfile="$lt_outputfile.exe" 6102 lt_tool_outputfile="$lt_tool_outputfile.exe" 6103 6104 6105 6106 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then6107 6108 6109 6681 lt_tool_outputfile="@TOOL_OUTPUT@"~ 6682 case $lt_outputfile in 6683 *.exe|*.EXE) ;; 6684 *) 6685 lt_outputfile=$lt_outputfile.exe 6686 lt_tool_outputfile=$lt_tool_outputfile.exe 6687 ;; 6688 esac~ 6689 func_to_tool_file "$lt_outputfile"~ 6690 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 6691 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 6692 $RM "$lt_outputfile.manifest"; 6693 fi' 6110 6694 ;; 6111 6695 *) … … 6114 6698 # as there is no search path for DLLs. 6115 6699 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 6116 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$ {wl}--export-all-symbols'6700 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols' 6117 6701 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 6118 6702 _LT_TAGVAR(always_export_symbols, $1)=no … … 6120 6704 6121 6705 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 6122 _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'6123 # If the export-symbols file already is a .def file (1st line6124 # is EXPORTS), use it as is; otherwise, prepend...6125 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then6126 6127 6128 6129 6130 6131 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'6706 _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' 6707 # If the export-symbols file already is a .def file, use it as 6708 # is; otherwise, prepend EXPORTS... 6709 _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then 6710 cp $export_symbols $output_objdir/$soname.def; 6711 else 6712 echo EXPORTS > $output_objdir/$soname.def; 6713 cat $export_symbols >> $output_objdir/$soname.def; 6714 fi~ 6715 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 6132 6716 else 6133 6717 _LT_TAGVAR(ld_shlibs, $1)=no … … 6138 6722 darwin* | rhapsody*) 6139 6723 _LT_DARWIN_LINKER_FEATURES($1) 6724 ;; 6725 6726 os2*) 6727 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 6728 _LT_TAGVAR(hardcode_minus_L, $1)=yes 6729 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 6730 shrext_cmds=.dll 6731 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 6732 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 6733 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 6734 $ECHO EXPORTS >> $output_objdir/$libname.def~ 6735 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 6736 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 6737 emximp -o $lib $output_objdir/$libname.def' 6738 _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 6739 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 6740 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 6741 $ECHO EXPORTS >> $output_objdir/$libname.def~ 6742 prefix_cmds="$SED"~ 6743 if test EXPORTS = "`$SED 1q $export_symbols`"; then 6744 prefix_cmds="$prefix_cmds -e 1d"; 6745 fi~ 6746 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 6747 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 6748 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 6749 emximp -o $lib $output_objdir/$libname.def' 6750 _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 6751 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 6140 6752 ;; 6141 6753 … … 6158 6770 ;; 6159 6771 6160 freebsd [[12]]*)6772 freebsd2.*) 6161 6773 # C++ shared libraries reported to be fairly broken before 6162 6774 # switch to ELF … … 6174 6786 ;; 6175 6787 6176 gnu*)6177 ;;6178 6179 6788 haiku*) 6180 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $ {wl}-soname $wl$soname -o $lib'6789 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 6181 6790 _LT_TAGVAR(link_all_deplibs, $1)=yes 6182 6791 ;; 6183 6792 6184 6793 hpux9*) 6185 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$ {wl}+b ${wl}$libdir'6794 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' 6186 6795 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 6187 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$ {wl}-E'6796 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' 6188 6797 _LT_TAGVAR(hardcode_direct, $1)=yes 6189 6798 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, … … 6197 6806 ;; 6198 6807 aCC*) 6199 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b $ {wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib|| mv $output_objdir/$soname $lib'6808 _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' 6200 6809 # Commands to make compiler produce verbose output that lists 6201 6810 # what "hidden" libraries, object files and flags are used when … … 6206 6815 # from the output so that they don't get included in the library 6207 6816 # dependencies. 6208 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'6817 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 6209 6818 ;; 6210 6819 *) 6211 if test "$GXX" = yes; then6212 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $ {wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib|| mv $output_objdir/$soname $lib'6820 if test yes = "$GXX"; then 6821 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 6213 6822 else 6214 6823 # FIXME: insert proper C++ library support … … 6220 6829 6221 6830 hpux10*|hpux11*) 6222 if test $with_gnu_ld = no; then6223 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$ {wl}+b ${wl}$libdir'6831 if test no = "$with_gnu_ld"; then 6832 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' 6224 6833 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 6225 6834 … … 6228 6837 ;; 6229 6838 *) 6230 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$ {wl}-E'6839 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' 6231 6840 ;; 6232 6841 esac … … 6254 6863 case $host_cpu in 6255 6864 hppa*64*) 6256 _LT_TAGVAR(archive_cmds, $1)='$CC -b $ {wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'6865 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 6257 6866 ;; 6258 6867 ia64*) 6259 _LT_TAGVAR(archive_cmds, $1)='$CC -b $ {wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'6868 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 6260 6869 ;; 6261 6870 *) 6262 _LT_TAGVAR(archive_cmds, $1)='$CC -b $ {wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'6871 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 6263 6872 ;; 6264 6873 esac … … 6271 6880 # from the output so that they don't get included in the library 6272 6881 # dependencies. 6273 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list= ""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'6882 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 6274 6883 ;; 6275 6884 *) 6276 if test "$GXX" = yes; then6277 if test $with_gnu_ld = no; then6885 if test yes = "$GXX"; then 6886 if test no = "$with_gnu_ld"; then 6278 6887 case $host_cpu in 6279 6888 hppa*64*) 6280 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC $ {wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'6889 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 6281 6890 ;; 6282 6891 ia64*) 6283 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag $ {wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'6892 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 6284 6893 ;; 6285 6894 *) 6286 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag $ {wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'6895 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 6287 6896 ;; 6288 6897 esac … … 6299 6908 _LT_TAGVAR(hardcode_direct, $1)=no 6300 6909 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6301 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$ {wl}-rpath,$libdir'6302 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$ {wl}-E'6910 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' 6911 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' 6303 6912 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 6304 6913 # Instead, shared libraries are loaded at an image base (0x10000000 by … … 6307 6916 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 6308 6917 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 6309 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $ {wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'6310 _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s ,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'6918 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 6919 _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 6311 6920 ;; 6312 6921 irix5* | irix6*) … … 6314 6923 CC*) 6315 6924 # SGI C++ 6316 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $ {output_objdir}/so_locations -o $lib'6925 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 6317 6926 6318 6927 # Archives containing C++ object files must be created using … … 6323 6932 ;; 6324 6933 *) 6325 if test "$GXX" = yes; then6326 if test "$with_gnu_ld" = no; then6327 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $ {wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'6934 if test yes = "$GXX"; then 6935 if test no = "$with_gnu_ld"; then 6936 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 6328 6937 else 6329 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $ {wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'6938 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib' 6330 6939 fi 6331 6940 fi … … 6333 6942 ;; 6334 6943 esac 6335 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$ {wl}-rpath ${wl}$libdir'6944 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 6336 6945 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 6337 6946 _LT_TAGVAR(inherit_rpath, $1)=yes 6338 6947 ;; 6339 6948 6340 linux* | k*bsd*-gnu | kopensolaris*-gnu )6949 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6341 6950 case $cc_basename in 6342 6951 KCC*) … … 6346 6955 # ends with ".so" (or ".sl" for HP-UX), so rename the library 6347 6956 # to its proper name (with version) after linking. 6348 _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$ {tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'6349 _LT_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$ {tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'6957 _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 6958 _LT_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib' 6350 6959 # Commands to make compiler produce verbose output that lists 6351 6960 # what "hidden" libraries, object files and flags are used when … … 6356 6965 # from the output so that they don't get included in the library 6357 6966 # dependencies. 6358 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'6359 6360 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$ {wl}-rpath,$libdir'6361 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$ {wl}--export-dynamic'6967 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 6968 6969 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' 6970 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' 6362 6971 6363 6972 # Archives containing C++ object files must be created using … … 6373 6982 case `$CC -V 2>&1` in 6374 6983 *"Version 7."*) 6375 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $ {wl}-soname $wl$soname -o $lib'6376 _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'6984 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 6985 _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' 6377 6986 ;; 6378 6987 *) # Version 8.0 or newer … … 6381 6990 ia64*) tmp_idyn=' -i_dynamic';; 6382 6991 esac 6383 _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $ {wl}-soname $wl$soname -o $lib'6384 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $ {wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'6992 _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 6993 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 6385 6994 ;; 6386 6995 esac 6387 6996 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 6388 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$ {wl}-rpath,$libdir'6389 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$ {wl}--export-dynamic'6390 _LT_TAGVAR(whole_archive_flag_spec, $1)='$ {wl}--whole-archive$convenience ${wl}--no-whole-archive'6997 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' 6998 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' 6999 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive' 6391 7000 ;; 6392 7001 pgCC* | pgcpp*) … … 6395 7004 *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*) 6396 7005 _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~ 6397 6398 6399 7006 rm -rf $tpldir~ 7007 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 7008 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 6400 7009 _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~ 6401 6402 6403 6404 7010 rm -rf $tpldir~ 7011 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 7012 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 7013 $RANLIB $oldlib' 6405 7014 _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~ 6406 6407 6408 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'7015 rm -rf $tpldir~ 7016 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 7017 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 6409 7018 _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~ 6410 6411 6412 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'7019 rm -rf $tpldir~ 7020 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 7021 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 6413 7022 ;; 6414 7023 *) # Version 6 and above use weak symbols 6415 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $ {wl}-soname ${wl}$soname -o $lib'6416 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $ {wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'7024 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 7025 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 6417 7026 ;; 6418 7027 esac 6419 7028 6420 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$ {wl}--rpath ${wl}$libdir'6421 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$ {wl}--export-dynamic'6422 _LT_TAGVAR(whole_archive_flag_spec, $1)='$ {wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'7029 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl--rpath $wl$libdir' 7030 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' 7031 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 6423 7032 ;; 6424 7033 cxx*) 6425 7034 # Compaq C++ 6426 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $ {wl}-soname $wl$soname -o $lib'6427 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $ {wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'7035 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 7036 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib $wl-retain-symbols-file $wl$export_symbols' 6428 7037 6429 7038 runpath_var=LD_RUN_PATH … … 6439 7048 # from the output so that they don't get included in the library 6440 7049 # dependencies. 6441 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'7050 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed' 6442 7051 ;; 6443 7052 xl* | mpixl* | bgxl*) 6444 7053 # IBM XL 8.0 on PPC, with GNU ld 6445 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$ {wl}-rpath ${wl}$libdir'6446 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$ {wl}--export-dynamic'6447 _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $ {wl}-soname $wl$soname -o $lib'6448 if test "x$supports_anon_versioning" = xyes; then7054 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 7055 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' 7056 _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 7057 if test yes = "$supports_anon_versioning"; then 6449 7058 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ 6450 6451 6452 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'7059 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 7060 echo "local: *; };" >> $output_objdir/$libname.ver~ 7061 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 6453 7062 fi 6454 7063 ;; … … 6458 7067 # Sun C++ 5.9 6459 7068 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' 6460 _LT_TAGVAR(archive_cmds, $1)='$CC -G$ {allow_undefined_flag}-h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'6461 _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'7069 _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 7070 _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' 6462 7071 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 6463 _LT_TAGVAR(whole_archive_flag_spec, $1)='$ {wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'7072 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 6464 7073 _LT_TAGVAR(compiler_needs_object, $1)=yes 6465 7074 … … 6519 7128 ;; 6520 7129 6521 openbsd2*) 6522 # C++ shared libraries are fairly broken 6523 _LT_TAGVAR(ld_shlibs, $1)=no 6524 ;; 6525 6526 openbsd*) 7130 openbsd* | bitrig*) 6527 7131 if test -f /usr/libexec/ld.so; then 6528 7132 _LT_TAGVAR(hardcode_direct, $1)=yes … … 6530 7134 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 6531 7135 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 6532 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$ {wl}-rpath,$libdir'6533 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then6534 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $ {wl}-retain-symbols-file,$export_symbols -o $lib'6535 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$ {wl}-E'6536 _LT_TAGVAR(whole_archive_flag_spec, $1)= "$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'7136 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' 7137 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then 7138 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib' 7139 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' 7140 _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 6537 7141 fi 6538 7142 output_verbose_link_cmd=func_echo_all … … 6550 7154 # ends with ".so" (or ".sl" for HP-UX), so rename the library 6551 7155 # to its proper name (with version) after linking. 6552 _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$ {tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'6553 6554 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$ {wl}-rpath,$libdir'7156 _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 7157 7158 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' 6555 7159 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 6556 7160 … … 6570 7174 case $host in 6571 7175 osf3*) 6572 _LT_TAGVAR(allow_undefined_flag, $1)=' $ {wl}-expect_unresolved ${wl}\*'6573 _LT_TAGVAR(archive_cmds, $1)='$CC -shared$ {allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'6574 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$ {wl}-rpath ${wl}$libdir'7176 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*' 7177 _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 7178 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 6575 7179 ;; 6576 7180 *) 6577 7181 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 6578 _LT_TAGVAR(archive_cmds, $1)='$CC -shared$ {allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'7182 _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 6579 7183 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 6580 6581 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~6582 7184 echo "-hidden">> $lib.exp~ 7185 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~ 7186 $RM $lib.exp' 6583 7187 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 6584 7188 ;; … … 6595 7199 # from the output so that they don't get included in the library 6596 7200 # dependencies. 6597 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'7201 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 6598 7202 ;; 6599 7203 *) 6600 if test "$GXX" = yes && test "$with_gnu_ld" = no; then6601 _LT_TAGVAR(allow_undefined_flag, $1)=' $ {wl}-expect_unresolved ${wl}\*'7204 if test yes,no = "$GXX,$with_gnu_ld"; then 7205 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*' 6602 7206 case $host in 6603 7207 osf3*) 6604 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $ {allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'7208 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 6605 7209 ;; 6606 7210 *) 6607 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $ {allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'7211 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 6608 7212 ;; 6609 7213 esac 6610 7214 6611 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$ {wl}-rpath ${wl}$libdir'7215 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 6612 7216 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 6613 7217 … … 6655 7259 _LT_TAGVAR(archive_cmds_need_lc,$1)=yes 6656 7260 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' 6657 _LT_TAGVAR(archive_cmds, $1)='$CC -G$ {allow_undefined_flag}-h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'7261 _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 6658 7262 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 6659 $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'7263 $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' 6660 7264 6661 7265 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' … … 6665 7269 *) 6666 7270 # The compiler driver will combine and reorder linker options, 6667 # but understands `-z linker_flag'.7271 # but understands '-z linker_flag'. 6668 7272 # Supported since Solaris 2.6 (maybe 2.5.1?) 6669 7273 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' … … 6682 7286 gcx*) 6683 7287 # Green Hills C++ Compiler 6684 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $ {wl}-h $wl$soname -o $lib'7288 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 6685 7289 6686 7290 # The C++ compiler must be used to create the archive. … … 6689 7293 *) 6690 7294 # GNU C++ compiler with Solaris linker 6691 if test "$GXX" = yes && test "$with_gnu_ld" = no; then6692 _LT_TAGVAR(no_undefined_flag, $1)=' $ {wl}-z ${wl}defs'7295 if test yes,no = "$GXX,$with_gnu_ld"; then 7296 _LT_TAGVAR(no_undefined_flag, $1)=' $wl-z ${wl}defs' 6693 7297 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 6694 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $ LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'7298 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 6695 7299 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 6696 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp-o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'7300 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 6697 7301 6698 7302 # Commands to make compiler produce verbose output that lists … … 6701 7305 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 6702 7306 else 6703 # g++ 2.7 appears to require `-G' NOT `-shared' on this7307 # g++ 2.7 appears to require '-G' NOT '-shared' on this 6704 7308 # platform. 6705 _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $ LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'7309 _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 6706 7310 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 6707 $CC -G -nostdlib ${wl}-M $wl$lib.exp-o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'7311 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 6708 7312 6709 7313 # Commands to make compiler produce verbose output that lists … … 6713 7317 fi 6714 7318 6715 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$ {wl}-R $wl$libdir'7319 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $wl$libdir' 6716 7320 case $host_os in 6717 7321 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 6718 7322 *) 6719 _LT_TAGVAR(whole_archive_flag_spec, $1)='$ {wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'7323 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 6720 7324 ;; 6721 7325 esac … … 6726 7330 6727 7331 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) 6728 _LT_TAGVAR(no_undefined_flag, $1)='$ {wl}-z,text'7332 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text' 6729 7333 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 6730 7334 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no … … 6733 7337 case $cc_basename in 6734 7338 CC*) 6735 _LT_TAGVAR(archive_cmds, $1)='$CC -G $ {wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'6736 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $ {wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'7339 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7340 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6737 7341 ;; 6738 7342 *) 6739 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $ {wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'6740 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $ {wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'7343 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7344 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6741 7345 ;; 6742 7346 esac … … 6744 7348 6745 7349 sysv5* | sco3.2v5* | sco5v6*) 6746 # Note: We canNOT use -z defs as we might desire, because we do not7350 # Note: We CANNOT use -z defs as we might desire, because we do not 6747 7351 # link with -lc, and that would cause any symbols used from libc to 6748 7352 # always be unresolved, which means just about no library would … … 6750 7354 # though, which does catch some bad symbols but isn't as heavy-handed 6751 7355 # as -z defs. 6752 _LT_TAGVAR(no_undefined_flag, $1)='$ {wl}-z,text'6753 _LT_TAGVAR(allow_undefined_flag, $1)='$ {wl}-z,nodefs'7356 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text' 7357 _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs' 6754 7358 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 6755 7359 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6756 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$ {wl}-R,$libdir'7360 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir' 6757 7361 _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 6758 7362 _LT_TAGVAR(link_all_deplibs, $1)=yes 6759 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$ {wl}-Bexport'7363 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport' 6760 7364 runpath_var='LD_RUN_PATH' 6761 7365 6762 7366 case $cc_basename in 6763 7367 CC*) 6764 _LT_TAGVAR(archive_cmds, $1)='$CC -G $ {wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'6765 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $ {wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'7368 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7369 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6766 7370 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~ 6767 7371 '"$_LT_TAGVAR(old_archive_cmds, $1)" 6768 7372 _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~ 6769 7373 '"$_LT_TAGVAR(reload_cmds, $1)" 6770 7374 ;; 6771 7375 *) 6772 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $ {wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'6773 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $ {wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'7376 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7377 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6774 7378 ;; 6775 7379 esac … … 6802 7406 6803 7407 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) 6804 test "$_LT_TAGVAR(ld_shlibs, $1)" = no&& can_build_shared=no6805 6806 _LT_TAGVAR(GCC, $1)= "$GXX"6807 _LT_TAGVAR(LD, $1)= "$LD"7408 test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no 7409 7410 _LT_TAGVAR(GCC, $1)=$GXX 7411 _LT_TAGVAR(LD, $1)=$LD 6808 7412 6809 7413 ## CAVEAT EMPTOR: … … 6832 7436 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 6833 7437 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 6834 fi # test "$_lt_caught_CXX_error" != yes7438 fi # test yes != "$_lt_caught_CXX_error" 6835 7439 6836 7440 AC_LANG_POP … … 6854 7458 func_stripname_cnf () 6855 7459 { 6856 case ${2}in6857 .*) func_stripname_result=`$ECHO " ${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;6858 *) func_stripname_result=`$ECHO " ${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;7460 case @S|@2 in 7461 .*) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%\\\\@S|@2\$%%"`;; 7462 *) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%@S|@2\$%%"`;; 6859 7463 esac 6860 7464 } # func_stripname_cnf 6861 7465 ])# _LT_FUNC_STRIPNAME_CNF 7466 6862 7467 6863 7468 # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME]) … … 6919 7524 }; 6920 7525 _LT_EOF 7526 ], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF 7527 package foo 7528 func foo() { 7529 } 7530 _LT_EOF 6921 7531 ]) 6922 7532 … … 6925 7535 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 6926 7536 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 7537 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 6927 7538 esac 6928 7539 … … 6938 7549 6939 7550 for p in `eval "$output_verbose_link_cmd"`; do 6940 case $ {prev}${p}in7551 case $prev$p in 6941 7552 6942 7553 -L* | -R* | -l*) 6943 7554 # Some compilers place space between "-{L,R}" and the path. 6944 7555 # Remove the space. 6945 if test $p = "-L" ||6946 test $p = "-R"; then7556 if test x-L = "$p" || 7557 test x-R = "$p"; then 6947 7558 prev=$p 6948 7559 continue … … 6960 7571 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 6961 7572 esac 6962 if test "$pre_test_object_deps_done" = no; then6963 case $ {prev}in7573 if test no = "$pre_test_object_deps_done"; then 7574 case $prev in 6964 7575 -L | -R) 6965 7576 # Internal compiler library paths should come after those … … 6967 7578 # user supplied libs so there is no need to process them. 6968 7579 if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then 6969 _LT_TAGVAR(compiler_lib_search_path, $1)= "${prev}${p}"7580 _LT_TAGVAR(compiler_lib_search_path, $1)=$prev$p 6970 7581 else 6971 _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} $ {prev}${p}"7582 _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} $prev$p" 6972 7583 fi 6973 7584 ;; … … 6977 7588 else 6978 7589 if test -z "$_LT_TAGVAR(postdeps, $1)"; then 6979 _LT_TAGVAR(postdeps, $1)= "${prev}${p}"7590 _LT_TAGVAR(postdeps, $1)=$prev$p 6980 7591 else 6981 _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} $ {prev}${p}"7592 _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} $prev$p" 6982 7593 fi 6983 7594 fi … … 6994 7605 fi 6995 7606 6996 if test "$pre_test_object_deps_done" = no; then7607 if test no = "$pre_test_object_deps_done"; then 6997 7608 if test -z "$_LT_TAGVAR(predep_objects, $1)"; then 6998 _LT_TAGVAR(predep_objects, $1)= "$p"7609 _LT_TAGVAR(predep_objects, $1)=$p 6999 7610 else 7000 7611 _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p" … … 7002 7613 else 7003 7614 if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then 7004 _LT_TAGVAR(postdep_objects, $1)= "$p"7615 _LT_TAGVAR(postdep_objects, $1)=$p 7005 7616 else 7006 7617 _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p" … … 7033 7644 _LT_TAGVAR(postdeps,$1)= 7034 7645 ;; 7035 7036 linux*)7037 case `$CC -V 2>&1 | sed 5q` in7038 *Sun\ C*)7039 # Sun C++ 5.97040 7041 # The more standards-conforming stlport4 library is7042 # incompatible with the Cstd library. Avoid specifying7043 # it if it's in CXXFLAGS. Ignore libCrun as7044 # -library=stlport4 depends on it.7045 case " $CXX $CXXFLAGS " in7046 *" -library=stlport4 "*)7047 solaris_use_stlport4=yes7048 ;;7049 esac7050 7051 if test "$solaris_use_stlport4" != yes; then7052 _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'7053 fi7054 ;;7055 esac7056 ;;7057 7058 solaris*)7059 case $cc_basename in7060 CC* | sunCC*)7061 # The more standards-conforming stlport4 library is7062 # incompatible with the Cstd library. Avoid specifying7063 # it if it's in CXXFLAGS. Ignore libCrun as7064 # -library=stlport4 depends on it.7065 case " $CXX $CXXFLAGS " in7066 *" -library=stlport4 "*)7067 solaris_use_stlport4=yes7068 ;;7069 esac7070 7071 # Adding this requires a known-good setup of shared libraries for7072 # Sun compiler versions before 5.6, else PIC objects from an old7073 # archive will be linked into the output, leading to subtle bugs.7074 if test "$solaris_use_stlport4" != yes; then7075 _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'7076 fi7077 ;;7078 esac7079 ;;7080 7646 esac 7081 7647 ]) … … 7086 7652 _LT_TAGVAR(compiler_lib_search_dirs, $1)= 7087 7653 if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then 7088 _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | $ {SED}-e 's! -L! !g' -e 's!^ !!'`7654 _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | $SED -e 's! -L! !g' -e 's!^ !!'` 7089 7655 fi 7090 7656 _LT_TAGDECL([], [compiler_lib_search_dirs], [1], … … 7106 7672 # Ensure that the configuration variables for a Fortran 77 compiler are 7107 7673 # suitably defined. These variables are subsequently used by _LT_CONFIG 7108 # to write the compiler configuration to `libtool'.7674 # to write the compiler configuration to 'libtool'. 7109 7675 m4_defun([_LT_LANG_F77_CONFIG], 7110 7676 [AC_LANG_PUSH(Fortran 77) 7111 if test -z "$F77" || test "X$F77" = "Xno"; then7677 if test -z "$F77" || test no = "$F77"; then 7112 7678 _lt_disable_F77=yes 7113 7679 fi … … 7121 7687 _LT_TAGVAR(hardcode_direct_absolute, $1)=no 7122 7688 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 7123 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=7124 7689 _LT_TAGVAR(hardcode_libdir_separator, $1)= 7125 7690 _LT_TAGVAR(hardcode_minus_L, $1)=no … … 7147 7712 # are currently assumed to apply to all compilers on this platform, 7148 7713 # and will be corrupted by setting them based on a non-working compiler. 7149 if test "$_lt_disable_F77" != yes; then7714 if test yes != "$_lt_disable_F77"; then 7150 7715 # Code to be used in simple compile tests 7151 7716 lt_simple_compile_test_code="\ … … 7169 7734 7170 7735 # Allow CC to be a program name with arguments. 7171 lt_save_CC= "$CC"7736 lt_save_CC=$CC 7172 7737 lt_save_GCC=$GCC 7173 7738 lt_save_CFLAGS=$CFLAGS … … 7183 7748 7184 7749 AC_MSG_CHECKING([whether to build shared libraries]) 7185 test "$can_build_shared" = "no" && enable_shared=no7750 test no = "$can_build_shared" && enable_shared=no 7186 7751 7187 7752 # On AIX, shared libraries and static libraries use the same namespace, and … … 7189 7754 case $host_os in 7190 7755 aix3*) 7191 test "$enable_shared" = yes&& enable_static=no7756 test yes = "$enable_shared" && enable_static=no 7192 7757 if test -n "$RANLIB"; then 7193 7758 archive_cmds="$archive_cmds~\$RANLIB \$lib" … … 7196 7761 ;; 7197 7762 aix[[4-9]]*) 7198 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 7199 test "$enable_shared" = yes && enable_static=no 7763 if test ia64 != "$host_cpu"; then 7764 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 7765 yes,aix,yes) ;; # shared object as lib.so file only 7766 yes,svr4,*) ;; # shared object as lib.so archive member only 7767 yes,*) enable_static=no ;; # shared object in lib.a archive as well 7768 esac 7200 7769 fi 7201 7770 ;; … … 7205 7774 AC_MSG_CHECKING([whether to build static libraries]) 7206 7775 # Make sure either enable_shared or enable_static is yes. 7207 test "$enable_shared" = yes|| enable_static=yes7776 test yes = "$enable_shared" || enable_static=yes 7208 7777 AC_MSG_RESULT([$enable_static]) 7209 7778 7210 _LT_TAGVAR(GCC, $1)= "$G77"7211 _LT_TAGVAR(LD, $1)= "$LD"7779 _LT_TAGVAR(GCC, $1)=$G77 7780 _LT_TAGVAR(LD, $1)=$LD 7212 7781 7213 7782 ## CAVEAT EMPTOR: … … 7226 7795 7227 7796 GCC=$lt_save_GCC 7228 CC= "$lt_save_CC"7229 CFLAGS= "$lt_save_CFLAGS"7230 fi # test "$_lt_disable_F77" != yes7797 CC=$lt_save_CC 7798 CFLAGS=$lt_save_CFLAGS 7799 fi # test yes != "$_lt_disable_F77" 7231 7800 7232 7801 AC_LANG_POP … … 7238 7807 # Ensure that the configuration variables for a Fortran compiler are 7239 7808 # suitably defined. These variables are subsequently used by _LT_CONFIG 7240 # to write the compiler configuration to `libtool'.7809 # to write the compiler configuration to 'libtool'. 7241 7810 m4_defun([_LT_LANG_FC_CONFIG], 7242 7811 [AC_LANG_PUSH(Fortran) 7243 7812 7244 if test -z "$FC" || test "X$FC" = "Xno"; then7813 if test -z "$FC" || test no = "$FC"; then 7245 7814 _lt_disable_FC=yes 7246 7815 fi … … 7254 7823 _LT_TAGVAR(hardcode_direct_absolute, $1)=no 7255 7824 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 7256 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=7257 7825 _LT_TAGVAR(hardcode_libdir_separator, $1)= 7258 7826 _LT_TAGVAR(hardcode_minus_L, $1)=no … … 7280 7848 # are currently assumed to apply to all compilers on this platform, 7281 7849 # and will be corrupted by setting them based on a non-working compiler. 7282 if test "$_lt_disable_FC" != yes; then7850 if test yes != "$_lt_disable_FC"; then 7283 7851 # Code to be used in simple compile tests 7284 7852 lt_simple_compile_test_code="\ … … 7302 7870 7303 7871 # Allow CC to be a program name with arguments. 7304 lt_save_CC= "$CC"7872 lt_save_CC=$CC 7305 7873 lt_save_GCC=$GCC 7306 7874 lt_save_CFLAGS=$CFLAGS … … 7318 7886 7319 7887 AC_MSG_CHECKING([whether to build shared libraries]) 7320 test "$can_build_shared" = "no" && enable_shared=no7888 test no = "$can_build_shared" && enable_shared=no 7321 7889 7322 7890 # On AIX, shared libraries and static libraries use the same namespace, and … … 7324 7892 case $host_os in 7325 7893 aix3*) 7326 test "$enable_shared" = yes&& enable_static=no7894 test yes = "$enable_shared" && enable_static=no 7327 7895 if test -n "$RANLIB"; then 7328 7896 archive_cmds="$archive_cmds~\$RANLIB \$lib" … … 7331 7899 ;; 7332 7900 aix[[4-9]]*) 7333 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 7334 test "$enable_shared" = yes && enable_static=no 7901 if test ia64 != "$host_cpu"; then 7902 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 7903 yes,aix,yes) ;; # shared object as lib.so file only 7904 yes,svr4,*) ;; # shared object as lib.so archive member only 7905 yes,*) enable_static=no ;; # shared object in lib.a archive as well 7906 esac 7335 7907 fi 7336 7908 ;; … … 7340 7912 AC_MSG_CHECKING([whether to build static libraries]) 7341 7913 # Make sure either enable_shared or enable_static is yes. 7342 test "$enable_shared" = yes|| enable_static=yes7914 test yes = "$enable_shared" || enable_static=yes 7343 7915 AC_MSG_RESULT([$enable_static]) 7344 7916 7345 _LT_TAGVAR(GCC, $1)= "$ac_cv_fc_compiler_gnu"7346 _LT_TAGVAR(LD, $1)= "$LD"7917 _LT_TAGVAR(GCC, $1)=$ac_cv_fc_compiler_gnu 7918 _LT_TAGVAR(LD, $1)=$LD 7347 7919 7348 7920 ## CAVEAT EMPTOR: … … 7364 7936 CC=$lt_save_CC 7365 7937 CFLAGS=$lt_save_CFLAGS 7366 fi # test "$_lt_disable_FC" != yes7938 fi # test yes != "$_lt_disable_FC" 7367 7939 7368 7940 AC_LANG_POP … … 7374 7946 # Ensure that the configuration variables for the GNU Java Compiler compiler 7375 7947 # are suitably defined. These variables are subsequently used by _LT_CONFIG 7376 # to write the compiler configuration to `libtool'.7948 # to write the compiler configuration to 'libtool'. 7377 7949 m4_defun([_LT_LANG_GCJ_CONFIG], 7378 7950 [AC_REQUIRE([LT_PROG_GCJ])dnl … … 7408 7980 compiler=$CC 7409 7981 _LT_TAGVAR(compiler, $1)=$CC 7410 _LT_TAGVAR(LD, $1)= "$LD"7982 _LT_TAGVAR(LD, $1)=$LD 7411 7983 _LT_CC_BASENAME([$compiler]) 7412 7984 … … 7441 8013 7442 8014 8015 # _LT_LANG_GO_CONFIG([TAG]) 8016 # -------------------------- 8017 # Ensure that the configuration variables for the GNU Go compiler 8018 # are suitably defined. These variables are subsequently used by _LT_CONFIG 8019 # to write the compiler configuration to 'libtool'. 8020 m4_defun([_LT_LANG_GO_CONFIG], 8021 [AC_REQUIRE([LT_PROG_GO])dnl 8022 AC_LANG_SAVE 8023 8024 # Source file extension for Go test sources. 8025 ac_ext=go 8026 8027 # Object file extension for compiled Go test sources. 8028 objext=o 8029 _LT_TAGVAR(objext, $1)=$objext 8030 8031 # Code to be used in simple compile tests 8032 lt_simple_compile_test_code="package main; func main() { }" 8033 8034 # Code to be used in simple link tests 8035 lt_simple_link_test_code='package main; func main() { }' 8036 8037 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 8038 _LT_TAG_COMPILER 8039 8040 # save warnings/boilerplate of simple test code 8041 _LT_COMPILER_BOILERPLATE 8042 _LT_LINKER_BOILERPLATE 8043 8044 # Allow CC to be a program name with arguments. 8045 lt_save_CC=$CC 8046 lt_save_CFLAGS=$CFLAGS 8047 lt_save_GCC=$GCC 8048 GCC=yes 8049 CC=${GOC-"gccgo"} 8050 CFLAGS=$GOFLAGS 8051 compiler=$CC 8052 _LT_TAGVAR(compiler, $1)=$CC 8053 _LT_TAGVAR(LD, $1)=$LD 8054 _LT_CC_BASENAME([$compiler]) 8055 8056 # Go did not exist at the time GCC didn't implicitly link libc in. 8057 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 8058 8059 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 8060 _LT_TAGVAR(reload_flag, $1)=$reload_flag 8061 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds 8062 8063 ## CAVEAT EMPTOR: 8064 ## There is no encapsulation within the following macros, do not change 8065 ## the running order or otherwise move them around unless you know exactly 8066 ## what you are doing... 8067 if test -n "$compiler"; then 8068 _LT_COMPILER_NO_RTTI($1) 8069 _LT_COMPILER_PIC($1) 8070 _LT_COMPILER_C_O($1) 8071 _LT_COMPILER_FILE_LOCKS($1) 8072 _LT_LINKER_SHLIBS($1) 8073 _LT_LINKER_HARDCODE_LIBPATH($1) 8074 8075 _LT_CONFIG($1) 8076 fi 8077 8078 AC_LANG_RESTORE 8079 8080 GCC=$lt_save_GCC 8081 CC=$lt_save_CC 8082 CFLAGS=$lt_save_CFLAGS 8083 ])# _LT_LANG_GO_CONFIG 8084 8085 7443 8086 # _LT_LANG_RC_CONFIG([TAG]) 7444 8087 # ------------------------- 7445 8088 # Ensure that the configuration variables for the Windows resource compiler 7446 8089 # are suitably defined. These variables are subsequently used by _LT_CONFIG 7447 # to write the compiler configuration to `libtool'.8090 # to write the compiler configuration to 'libtool'. 7448 8091 m4_defun([_LT_LANG_RC_CONFIG], 7449 8092 [AC_REQUIRE([LT_PROG_RC])dnl … … 7461 8104 7462 8105 # Code to be used in simple link tests 7463 lt_simple_link_test_code= "$lt_simple_compile_test_code"8106 lt_simple_link_test_code=$lt_simple_compile_test_code 7464 8107 7465 8108 # ltmain only uses $CC for tagged configurations so make sure $CC is set. … … 7471 8114 7472 8115 # Allow CC to be a program name with arguments. 7473 lt_save_CC= "$CC"8116 lt_save_CC=$CC 7474 8117 lt_save_CFLAGS=$CFLAGS 7475 8118 lt_save_GCC=$GCC … … 7500 8143 [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ], 7501 8144 [AC_CHECK_TOOL(GCJ, gcj,) 7502 test "x${GCJFLAGS+set}" = xset|| GCJFLAGS="-g -O2"8145 test set = "${GCJFLAGS+set}" || GCJFLAGS="-g -O2" 7503 8146 AC_SUBST(GCJFLAGS)])])[]dnl 7504 8147 ]) … … 7508 8151 dnl aclocal-1.4 backwards compatibility: 7509 8152 dnl AC_DEFUN([LT_AC_PROG_GCJ], []) 8153 8154 8155 # LT_PROG_GO 8156 # ---------- 8157 AC_DEFUN([LT_PROG_GO], 8158 [AC_CHECK_TOOL(GOC, gccgo,) 8159 ]) 7510 8160 7511 8161 … … 7604 8254 # along with /bin/sed that truncates output. 7605 8255 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 7606 test ! -f $lt_ac_sed&& continue8256 test ! -f "$lt_ac_sed" && continue 7607 8257 cat /dev/null > conftest.in 7608 8258 lt_ac_count=0 … … 7621 8271 cmp -s conftest.out conftest.nl || break 7622 8272 # 10000 chars as input seems more than enough 7623 test $lt_ac_count -gt 10&& break8273 test 10 -lt "$lt_ac_count" && break 7624 8274 lt_ac_count=`expr $lt_ac_count + 1` 7625 if test $lt_ac_count -gt $lt_ac_max; then8275 if test "$lt_ac_count" -gt "$lt_ac_max"; then 7626 8276 lt_ac_max=$lt_ac_count 7627 8277 lt_cv_path_SED=$lt_ac_sed … … 7647 8297 # or has some other useful features. 7648 8298 m4_defun([_LT_CHECK_SHELL_FEATURES], 7649 [AC_MSG_CHECKING([whether the shell understands some XSI constructs]) 7650 # Try some XSI features 7651 xsi_shell=no 7652 ( _lt_dummy="a/b/c" 7653 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 7654 = c,a/b,b/c, \ 7655 && eval 'test $(( 1 + 1 )) -eq 2 \ 7656 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 7657 && xsi_shell=yes 7658 AC_MSG_RESULT([$xsi_shell]) 7659 _LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell']) 7660 7661 AC_MSG_CHECKING([whether the shell understands "+="]) 7662 lt_shell_append=no 7663 ( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \ 7664 >/dev/null 2>&1 \ 7665 && lt_shell_append=yes 7666 AC_MSG_RESULT([$lt_shell_append]) 7667 _LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append']) 7668 7669 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 8299 [if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 7670 8300 lt_unset=unset 7671 8301 else … … 7691 8321 7692 8322 7693 # _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY)7694 # ------------------------------------------------------7695 # In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and7696 # '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY.7697 m4_defun([_LT_PROG_FUNCTION_REPLACE],7698 [dnl {7699 sed -e '/^$1 ()$/,/^} # $1 /c\7700 $1 ()\7701 {\7702 m4_bpatsubsts([$2], [$], [\\], [^\([ ]\)], [\\\1])7703 } # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \7704 && mv -f "$cfgfile.tmp" "$cfgfile" \7705 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")7706 test 0 -eq $? || _lt_function_replace_fail=:7707 ])7708 7709 7710 # _LT_PROG_REPLACE_SHELLFNS7711 # -------------------------7712 # Replace existing portable implementations of several shell functions with7713 # equivalent extended shell implementations where those features are available..7714 m4_defun([_LT_PROG_REPLACE_SHELLFNS],7715 [if test x"$xsi_shell" = xyes; then7716 _LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl7717 case ${1} in7718 */*) func_dirname_result="${1%/*}${2}" ;;7719 * ) func_dirname_result="${3}" ;;7720 esac])7721 7722 _LT_PROG_FUNCTION_REPLACE([func_basename], [dnl7723 func_basename_result="${1##*/}"])7724 7725 _LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl7726 case ${1} in7727 */*) func_dirname_result="${1%/*}${2}" ;;7728 * ) func_dirname_result="${3}" ;;7729 esac7730 func_basename_result="${1##*/}"])7731 7732 _LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl7733 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are7734 # positional parameters, so assign one to ordinary parameter first.7735 func_stripname_result=${3}7736 func_stripname_result=${func_stripname_result#"${1}"}7737 func_stripname_result=${func_stripname_result%"${2}"}])7738 7739 _LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl7740 func_split_long_opt_name=${1%%=*}7741 func_split_long_opt_arg=${1#*=}])7742 7743 _LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl7744 func_split_short_opt_arg=${1#??}7745 func_split_short_opt_name=${1%"$func_split_short_opt_arg"}])7746 7747 _LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl7748 case ${1} in7749 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;7750 *) func_lo2o_result=${1} ;;7751 esac])7752 7753 _LT_PROG_FUNCTION_REPLACE([func_xform], [ func_xform_result=${1%.*}.lo])7754 7755 _LT_PROG_FUNCTION_REPLACE([func_arith], [ func_arith_result=$(( $[*] ))])7756 7757 _LT_PROG_FUNCTION_REPLACE([func_len], [ func_len_result=${#1}])7758 fi7759 7760 if test x"$lt_shell_append" = xyes; then7761 _LT_PROG_FUNCTION_REPLACE([func_append], [ eval "${1}+=\\${2}"])7762 7763 _LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl7764 func_quote_for_eval "${2}"7765 dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \7766 eval "${1}+=\\\\ \\$func_quote_for_eval_result"])7767 7768 # Save a `func_append' function call where possible by direct use of '+='7769 sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \7770 && mv -f "$cfgfile.tmp" "$cfgfile" \7771 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")7772 test 0 -eq $? || _lt_function_replace_fail=:7773 else7774 # Save a `func_append' function call even when '+=' is not available7775 sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \7776 && mv -f "$cfgfile.tmp" "$cfgfile" \7777 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")7778 test 0 -eq $? || _lt_function_replace_fail=:7779 fi7780 7781 if test x"$_lt_function_replace_fail" = x":"; then7782 AC_MSG_WARN([Unable to substitute extended shell functions in $ofile])7783 fi7784 ])7785 7786 8323 # _LT_PATH_CONVERSION_FUNCTIONS 7787 8324 # ----------------------------- 7788 # Determine wh ichfile name conversion functions should be used by8325 # Determine what file name conversion functions should be used by 7789 8326 # func_to_host_file (and, implicitly, by func_to_host_path). These are needed 7790 8327 # for certain cross-compile configurations and native mingw. -
trunk/FACT++/.macro_dir/ltoptions.m4
r12832 r18603 1 1 # Helper functions for option handling. -*- Autoconf -*- 2 2 # 3 # Copyright (C) 2004 , 2005, 2007, 2008, 2009 Free Software Foundation,4 # Inc.3 # Copyright (C) 2004-2005, 2007-2009, 2011-2015 Free Software 4 # Foundation, Inc. 5 5 # Written by Gary V. Vaughan, 2004 6 6 # … … 9 9 # modifications, as long as this notice is preserved. 10 10 11 # serial 7ltoptions.m411 # serial 8 ltoptions.m4 12 12 13 13 # This is to help aclocal find these macros, as it can't see m4_define. … … 30 30 m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]), 31 31 _LT_MANGLE_DEFUN([$1], [$2]), 32 [m4_warning([Unknown $1 option `$2'])])[]dnl32 [m4_warning([Unknown $1 option '$2'])])[]dnl 33 33 ]) 34 34 … … 76 76 dnl If no reference was made to various pairs of opposing options, then 77 77 dnl we run the default mode handler for the pair. For example, if neither 78 dnl `shared' nor `disable-shared' was passed, we enable building of shared78 dnl 'shared' nor 'disable-shared' was passed, we enable building of shared 79 79 dnl archives by default: 80 80 _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED]) … … 82 82 _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC]) 83 83 _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install], 84 [_LT_ENABLE_FAST_INSTALL]) 84 [_LT_ENABLE_FAST_INSTALL]) 85 _LT_UNLESS_OPTIONS([LT_INIT], [aix-soname=aix aix-soname=both aix-soname=svr4], 86 [_LT_WITH_AIX_SONAME([aix])]) 85 87 ]) 86 88 ])# _LT_SET_OPTIONS … … 113 115 AC_DIAGNOSE([obsolete], 114 116 [$0: Remove this warning and the call to _LT_SET_OPTION when you 115 put the `dlopen' option into LT_INIT's first parameter.])117 put the 'dlopen' option into LT_INIT's first parameter.]) 116 118 ]) 117 119 … … 149 151 AC_DIAGNOSE([obsolete], 150 152 [$0: Remove this warning and the call to _LT_SET_OPTION when you 151 put the `win32-dll' option into LT_INIT's first parameter.])153 put the 'win32-dll' option into LT_INIT's first parameter.]) 152 154 ]) 153 155 … … 158 160 # _LT_ENABLE_SHARED([DEFAULT]) 159 161 # ---------------------------- 160 # implement the --enable-shared flag, and supports the `shared' and161 # `disable-shared' LT_INIT options.162 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.162 # implement the --enable-shared flag, and supports the 'shared' and 163 # 'disable-shared' LT_INIT options. 164 # DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'. 163 165 m4_define([_LT_ENABLE_SHARED], 164 166 [m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl … … 173 175 enable_shared=no 174 176 # Look at the argument we got. We use all the common list separators. 175 lt_save_ifs= "$IFS"; IFS="${IFS}$PATH_SEPARATOR,"177 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 176 178 for pkg in $enableval; do 177 IFS= "$lt_save_ifs"179 IFS=$lt_save_ifs 178 180 if test "X$pkg" = "X$p"; then 179 181 enable_shared=yes 180 182 fi 181 183 done 182 IFS= "$lt_save_ifs"184 IFS=$lt_save_ifs 183 185 ;; 184 186 esac], … … 212 214 # _LT_ENABLE_STATIC([DEFAULT]) 213 215 # ---------------------------- 214 # implement the --enable-static flag, and support the `static' and215 # `disable-static' LT_INIT options.216 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.216 # implement the --enable-static flag, and support the 'static' and 217 # 'disable-static' LT_INIT options. 218 # DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'. 217 219 m4_define([_LT_ENABLE_STATIC], 218 220 [m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl … … 227 229 enable_static=no 228 230 # Look at the argument we got. We use all the common list separators. 229 lt_save_ifs= "$IFS"; IFS="${IFS}$PATH_SEPARATOR,"231 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 230 232 for pkg in $enableval; do 231 IFS= "$lt_save_ifs"233 IFS=$lt_save_ifs 232 234 if test "X$pkg" = "X$p"; then 233 235 enable_static=yes 234 236 fi 235 237 done 236 IFS= "$lt_save_ifs"238 IFS=$lt_save_ifs 237 239 ;; 238 240 esac], … … 266 268 # _LT_ENABLE_FAST_INSTALL([DEFAULT]) 267 269 # ---------------------------------- 268 # implement the --enable-fast-install flag, and support the `fast-install'269 # and `disable-fast-install' LT_INIT options.270 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.270 # implement the --enable-fast-install flag, and support the 'fast-install' 271 # and 'disable-fast-install' LT_INIT options. 272 # DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'. 271 273 m4_define([_LT_ENABLE_FAST_INSTALL], 272 274 [m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl … … 281 283 enable_fast_install=no 282 284 # Look at the argument we got. We use all the common list separators. 283 lt_save_ifs= "$IFS"; IFS="${IFS}$PATH_SEPARATOR,"285 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 284 286 for pkg in $enableval; do 285 IFS= "$lt_save_ifs"287 IFS=$lt_save_ifs 286 288 if test "X$pkg" = "X$p"; then 287 289 enable_fast_install=yes 288 290 fi 289 291 done 290 IFS= "$lt_save_ifs"292 IFS=$lt_save_ifs 291 293 ;; 292 294 esac], … … 305 307 AC_DIAGNOSE([obsolete], 306 308 [$0: Remove this warning and the call to _LT_SET_OPTION when you put 307 the `fast-install' option into LT_INIT's first parameter.])309 the 'fast-install' option into LT_INIT's first parameter.]) 308 310 ]) 309 311 … … 312 314 AC_DIAGNOSE([obsolete], 313 315 [$0: Remove this warning and the call to _LT_SET_OPTION when you put 314 the `disable-fast-install' option into LT_INIT's first parameter.])316 the 'disable-fast-install' option into LT_INIT's first parameter.]) 315 317 ]) 316 318 … … 320 322 321 323 324 # _LT_WITH_AIX_SONAME([DEFAULT]) 325 # ---------------------------------- 326 # implement the --with-aix-soname flag, and support the `aix-soname=aix' 327 # and `aix-soname=both' and `aix-soname=svr4' LT_INIT options. DEFAULT 328 # is either `aix', `both' or `svr4'. If omitted, it defaults to `aix'. 329 m4_define([_LT_WITH_AIX_SONAME], 330 [m4_define([_LT_WITH_AIX_SONAME_DEFAULT], [m4_if($1, svr4, svr4, m4_if($1, both, both, aix))])dnl 331 shared_archive_member_spec= 332 case $host,$enable_shared in 333 power*-*-aix[[5-9]]*,yes) 334 AC_MSG_CHECKING([which variant of shared library versioning to provide]) 335 AC_ARG_WITH([aix-soname], 336 [AS_HELP_STRING([--with-aix-soname=aix|svr4|both], 337 [shared library versioning (aka "SONAME") variant to provide on AIX, @<:@default=]_LT_WITH_AIX_SONAME_DEFAULT[@:>@.])], 338 [case $withval in 339 aix|svr4|both) 340 ;; 341 *) 342 AC_MSG_ERROR([Unknown argument to --with-aix-soname]) 343 ;; 344 esac 345 lt_cv_with_aix_soname=$with_aix_soname], 346 [AC_CACHE_VAL([lt_cv_with_aix_soname], 347 [lt_cv_with_aix_soname=]_LT_WITH_AIX_SONAME_DEFAULT) 348 with_aix_soname=$lt_cv_with_aix_soname]) 349 AC_MSG_RESULT([$with_aix_soname]) 350 if test aix != "$with_aix_soname"; then 351 # For the AIX way of multilib, we name the shared archive member 352 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 353 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 354 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 355 # the AIX toolchain works better with OBJECT_MODE set (default 32). 356 if test 64 = "${OBJECT_MODE-32}"; then 357 shared_archive_member_spec=shr_64 358 else 359 shared_archive_member_spec=shr 360 fi 361 fi 362 ;; 363 *) 364 with_aix_soname=aix 365 ;; 366 esac 367 368 _LT_DECL([], [shared_archive_member_spec], [0], 369 [Shared archive member basename, for filename based shared library versioning on AIX])dnl 370 ])# _LT_WITH_AIX_SONAME 371 372 LT_OPTION_DEFINE([LT_INIT], [aix-soname=aix], [_LT_WITH_AIX_SONAME([aix])]) 373 LT_OPTION_DEFINE([LT_INIT], [aix-soname=both], [_LT_WITH_AIX_SONAME([both])]) 374 LT_OPTION_DEFINE([LT_INIT], [aix-soname=svr4], [_LT_WITH_AIX_SONAME([svr4])]) 375 376 322 377 # _LT_WITH_PIC([MODE]) 323 378 # -------------------- 324 # implement the --with-pic flag, and support the `pic-only' and `no-pic'379 # implement the --with-pic flag, and support the 'pic-only' and 'no-pic' 325 380 # LT_INIT options. 326 # MODE is either `yes' or `no'. If omitted, it defaults to `both'.381 # MODE is either 'yes' or 'no'. If omitted, it defaults to 'both'. 327 382 m4_define([_LT_WITH_PIC], 328 383 [AC_ARG_WITH([pic], 329 [AS_HELP_STRING([--with-pic ],384 [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@], 330 385 [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], 331 [pic_mode="$withval"], 332 [pic_mode=default]) 333 334 test -z "$pic_mode" && pic_mode=m4_default([$1], [default]) 386 [lt_p=${PACKAGE-default} 387 case $withval in 388 yes|no) pic_mode=$withval ;; 389 *) 390 pic_mode=default 391 # Look at the argument we got. We use all the common list separators. 392 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 393 for lt_pkg in $withval; do 394 IFS=$lt_save_ifs 395 if test "X$lt_pkg" = "X$lt_p"; then 396 pic_mode=yes 397 fi 398 done 399 IFS=$lt_save_ifs 400 ;; 401 esac], 402 [pic_mode=m4_default([$1], [default])]) 335 403 336 404 _LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl … … 345 413 AC_DIAGNOSE([obsolete], 346 414 [$0: Remove this warning and the call to _LT_SET_OPTION when you 347 put the `pic-only' option into LT_INIT's first parameter.])415 put the 'pic-only' option into LT_INIT's first parameter.]) 348 416 ]) 349 417 -
trunk/FACT++/.macro_dir/ltversion.m4
r14328 r18603 1 1 # ltversion.m4 -- version numbers -*- Autoconf -*- 2 2 # 3 # Copyright (C) 2004 Free Software Foundation, Inc.3 # Copyright (C) 2004, 2011-2015 Free Software Foundation, Inc. 4 4 # Written by Scott James Remnant, 2004 5 5 # … … 10 10 # @configure_input@ 11 11 12 # serial 3337ltversion.m412 # serial 4179 ltversion.m4 13 13 # This file is part of GNU Libtool 14 14 15 m4_define([LT_PACKAGE_VERSION], [2.4. 2])16 m4_define([LT_PACKAGE_REVISION], [ 1.3337])15 m4_define([LT_PACKAGE_VERSION], [2.4.6]) 16 m4_define([LT_PACKAGE_REVISION], [2.4.6]) 17 17 18 18 AC_DEFUN([LTVERSION_VERSION], 19 [macro_version='2.4. 2'20 macro_revision=' 1.3337'19 [macro_version='2.4.6' 20 macro_revision='2.4.6' 21 21 _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?]) 22 22 _LT_DECL(, macro_revision, 0)
Note:
See TracChangeset
for help on using the changeset viewer.