- Timestamp:
- Jan 11, 2013, 12:58:31 AM (8 years ago)
- Branches:
- debian/master, debian/stretch-backports, jessie-backports, upstream
- Children:
- 2b1118c, ae29683
- Parents:
- 17eb1a1
- Location:
- m4
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
m4/libtool.m4
r17eb1a1 r180e49f 2 2 # 3 3 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 4 # 2006, 2007, 2008 Free Software Foundation, Inc. 4 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation, 5 # Inc. 5 6 # Written by Gordon Matzigkeit, 1996 6 7 # … … 11 12 m4_define([_LT_COPYING], [dnl 12 13 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 13 # 2006, 2007, 2008 Free Software Foundation, Inc. 14 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation, 15 # Inc. 14 16 # Written by Gordon Matzigkeit, 1996 15 17 # … … 38 40 ]) 39 41 40 # serial 5 6LT_INIT42 # serial 57 LT_INIT 41 43 42 44 … … 67 69 AC_DEFUN([LT_INIT], 68 70 [AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT 71 AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl 69 72 AC_BEFORE([$0], [LT_LANG])dnl 70 73 AC_BEFORE([$0], [LT_OUTPUT])dnl … … 82 85 AC_REQUIRE([LTOBSOLETE_VERSION])dnl 83 86 m4_require([_LT_PROG_LTMAIN])dnl 87 88 _LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}]) 84 89 85 90 dnl Parse OPTIONS … … 119 124 esac 120 125 done 121 cc_basename=`$ECHO " X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`126 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 122 127 ]) 123 128 … … 139 144 [AC_REQUIRE([AC_CANONICAL_HOST])dnl 140 145 AC_REQUIRE([AC_CANONICAL_BUILD])dnl 146 AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl 147 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl 148 141 149 _LT_DECL([], [host_alias], [0], [The host system])dnl 142 150 _LT_DECL([], [host], [0])dnl … … 180 188 181 189 m4_require([_LT_TAG_COMPILER])dnl 182 _LT_PROG_ECHO_BACKSLASH183 190 184 191 case $host_os in … … 194 201 esac 195 202 196 # Sed substitution that helps us do robust quoting. It backslashifies197 # metacharacters that are still active within double-quoted strings.198 sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'199 200 # Same as above, but do not quote variable references.201 double_quote_subst='s/\([["`\\]]\)/\\\1/g'202 203 # Sed substitution to delay expansion of an escaped shell variable in a204 # double_quote_subst'ed string.205 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'206 207 # Sed substitution to delay expansion of an escaped single quote.208 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'209 210 # Sed substitution to avoid accidental globbing in evaled expressions211 no_glob_subst='s/\*/\\\*/g'212 213 203 # Global variables: 214 204 ofile=libtool … … 250 240 ])# _LT_SETUP 251 241 242 243 # _LT_PREPARE_SED_QUOTE_VARS 244 # -------------------------- 245 # Define a few sed substitution that help us do robust quoting. 246 m4_defun([_LT_PREPARE_SED_QUOTE_VARS], 247 [# Backslashify metacharacters that are still active within 248 # double-quoted strings. 249 sed_quote_subst='s/\([["`$\\]]\)/\\\1/g' 250 251 # Same as above, but do not quote variable references. 252 double_quote_subst='s/\([["`\\]]\)/\\\1/g' 253 254 # Sed substitution to delay expansion of an escaped shell variable in a 255 # double_quote_subst'ed string. 256 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 257 258 # Sed substitution to delay expansion of an escaped single quote. 259 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 260 261 # Sed substitution to avoid accidental globbing in evaled expressions 262 no_glob_subst='s/\*/\\\*/g' 263 ]) 252 264 253 265 # _LT_PROG_LTMAIN … … 409 421 # must have a single quote delimited value for this to work. 410 422 m4_define([_LT_CONFIG_STATUS_DECLARE], 411 [$1='`$ECHO " X$][$1" | $Xsed -e"$delay_single_quote_subst"`'])423 [$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`']) 412 424 413 425 … … 419 431 # each variable declared with _LT_DECL (and _LT_TAGDECL) into: 420 432 # 421 # <var>='`$ECHO " X$<var>" | $Xsed -e"$delay_single_quote_subst"`'433 # <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`' 422 434 m4_defun([_LT_CONFIG_STATUS_DECLARATIONS], 423 435 [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames), … … 518 530 compiler='$compiler_DEFAULT' 519 531 532 # A function that is used when there is no print builtin or printf. 533 func_fallback_echo () 534 { 535 eval 'cat <<_LTECHO_EOF 536 \$[]1 537 _LTECHO_EOF' 538 } 539 520 540 # Quote evaled strings. 521 541 for var in lt_decl_all_varnames([[ \ 522 542 ]], lt_decl_quote_varnames); do 523 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in543 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 524 544 *[[\\\\\\\`\\"\\\$]]*) 525 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\" X\\\$\$var\\" | \\\$Xsed -e\\"\\\$sed_quote_subst\\"\\\`\\\\\\""545 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 526 546 ;; 527 547 *) … … 534 554 for var in lt_decl_all_varnames([[ \ 535 555 ]], lt_decl_dquote_varnames); do 536 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in556 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 537 557 *[[\\\\\\\`\\"\\\$]]*) 538 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\" X\\\$\$var\\" | \\\$Xsed-e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""558 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 539 559 ;; 540 560 *) … … 544 564 done 545 565 546 # Fix-up fallback echo if it was mangled by the above quoting rules.547 case \$lt_ECHO in548 *'\\\[$]0 --fallback-echo"')dnl "549 lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`550 ;;551 esac552 553 566 _LT_OUTPUT_LIBTOOL_INIT 554 567 ]) 555 568 569 # _LT_GENERATED_FILE_INIT(FILE, [COMMENT]) 570 # ------------------------------------ 571 # Generate a child script FILE with all initialization necessary to 572 # reuse the environment learned by the parent script, and make the 573 # file executable. If COMMENT is supplied, it is inserted after the 574 # `#!' sequence but before initialization text begins. After this 575 # macro, additional text can be appended to FILE to form the body of 576 # the child script. The macro ends with non-zero status if the 577 # file could not be fully written (such as if the disk is full). 578 m4_ifdef([AS_INIT_GENERATED], 579 [m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])], 580 [m4_defun([_LT_GENERATED_FILE_INIT], 581 [m4_require([AS_PREPARE])]dnl 582 [m4_pushdef([AS_MESSAGE_LOG_FD])]dnl 583 [lt_write_fail=0 584 cat >$1 <<_ASEOF || lt_write_fail=1 585 #! $SHELL 586 # Generated by $as_me. 587 $2 588 SHELL=\${CONFIG_SHELL-$SHELL} 589 export SHELL 590 _ASEOF 591 cat >>$1 <<\_ASEOF || lt_write_fail=1 592 AS_SHELL_SANITIZE 593 _AS_PREPARE 594 exec AS_MESSAGE_FD>&1 595 _ASEOF 596 test $lt_write_fail = 0 && chmod +x $1[]dnl 597 m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT 556 598 557 599 # LT_OUTPUT … … 563 605 [: ${CONFIG_LT=./config.lt} 564 606 AC_MSG_NOTICE([creating $CONFIG_LT]) 565 cat >"$CONFIG_LT" <<_LTEOF 566 #! $SHELL 567 # Generated by $as_me. 568 # Run this file to recreate a libtool stub with the current configuration. 569 607 _LT_GENERATED_FILE_INIT(["$CONFIG_LT"], 608 [# Run this file to recreate a libtool stub with the current configuration.]) 609 610 cat >>"$CONFIG_LT" <<\_LTEOF 570 611 lt_cl_silent=false 571 SHELL=\${CONFIG_SHELL-$SHELL}572 _LTEOF573 574 cat >>"$CONFIG_LT" <<\_LTEOF575 AS_SHELL_SANITIZE576 _AS_PREPARE577 578 exec AS_MESSAGE_FD>&1579 612 exec AS_MESSAGE_LOG_FD>>config.log 580 613 { … … 602 635 configured by $[0], generated by m4_PACKAGE_STRING. 603 636 604 Copyright (C) 20 08Free Software Foundation, Inc.637 Copyright (C) 2010 Free Software Foundation, Inc. 605 638 This config.lt script is free software; the Free Software Foundation 606 639 gives unlimited permision to copy, distribute and modify it." … … 647 680 # open by configure. Here we exec the FD to /dev/null, effectively closing 648 681 # config.log, so it can be properly (re)opened and appended to by config.lt. 649 if test "$no_create" != yes; then 650 lt_cl_success=: 651 test "$silent" = yes && 652 lt_config_lt_args="$lt_config_lt_args --quiet" 653 exec AS_MESSAGE_LOG_FD>/dev/null 654 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false 655 exec AS_MESSAGE_LOG_FD>>config.log 656 $lt_cl_success || AS_EXIT(1) 657 fi 682 lt_cl_success=: 683 test "$silent" = yes && 684 lt_config_lt_args="$lt_config_lt_args --quiet" 685 exec AS_MESSAGE_LOG_FD>/dev/null 686 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false 687 exec AS_MESSAGE_LOG_FD>>config.log 688 $lt_cl_success || AS_EXIT(1) 658 689 ])# LT_OUTPUT 659 690 … … 832 863 AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)]) 833 864 AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)]) 865 AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)]) 834 866 dnl aclocal-1.4 backwards compatibility: 835 867 dnl AC_DEFUN([AC_LIBTOOL_CXX], []) … … 837 869 dnl AC_DEFUN([AC_LIBTOOL_FC], []) 838 870 dnl AC_DEFUN([AC_LIBTOOL_GCJ], []) 871 dnl AC_DEFUN([AC_LIBTOOL_RC], []) 839 872 840 873 … … 941 974 LDFLAGS="$save_LDFLAGS" 942 975 ]) 976 AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load], 977 [lt_cv_ld_force_load=no 978 cat > conftest.c << _LT_EOF 979 int forced_loaded() { return 2;} 980 _LT_EOF 981 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD 982 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD 983 echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD 984 $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD 985 echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD 986 $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD 987 cat > conftest.c << _LT_EOF 988 int main() { return 0;} 989 _LT_EOF 990 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD 991 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 992 _lt_result=$? 993 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then 994 lt_cv_ld_force_load=yes 995 else 996 cat conftest.err >&AS_MESSAGE_LOG_FD 997 fi 998 rm -f conftest.err libconftest.a conftest conftest.c 999 rm -rf conftest.dSYM 1000 ]) 943 1001 case $host_os in 944 1002 rhapsody* | darwin1.[[012]]) … … 968 1026 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 969 1027 fi 970 if test "$DSYMUTIL" != ":" ; then1028 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 971 1029 _lt_dsymutil='~$DSYMUTIL $lib || :' 972 1030 else … … 988 1046 _LT_TAGVAR(hardcode_automatic, $1)=yes 989 1047 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 990 _LT_TAGVAR(whole_archive_flag_spec, $1)='' 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\"`' 1050 else 1051 _LT_TAGVAR(whole_archive_flag_spec, $1)='' 1052 fi 991 1053 _LT_TAGVAR(link_all_deplibs, $1)=yes 992 1054 _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined" … … 996 1058 esac 997 1059 if test "$_lt_dar_can_shared" = "yes"; then 998 output_verbose_link_cmd= echo1060 output_verbose_link_cmd=func_echo_all 999 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}" 1000 1062 _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" … … 1042 1104 # ------------------- 1043 1105 m4_define([_LT_SHELL_INIT], 1044 [ifdef([AC_DIVERSION_NOTICE], 1045 [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], 1046 [AC_DIVERT_PUSH(NOTICE)]) 1047 $1 1048 AC_DIVERT_POP 1049 ])# _LT_SHELL_INIT 1106 [m4_divert_text([M4SH-INIT], [$1 1107 ])])# _LT_SHELL_INIT 1108 1050 1109 1051 1110 1052 1111 # _LT_PROG_ECHO_BACKSLASH 1053 1112 # ----------------------- 1054 # Add some code to the start of the generated configure script which 1055 # will find an echo command which doesn't interpret backslashes. 1113 # Find how we can fake an echo command that does not interpret backslash. 1114 # In particular, with Autoconf 2.60 or later we add some code to the start 1115 # of the generated configure script which will find a shell with a builtin 1116 # printf (which we can use as an echo command). 1056 1117 m4_defun([_LT_PROG_ECHO_BACKSLASH], 1057 [_LT_SHELL_INIT([ 1058 # Check that we are running under the correct shell. 1059 SHELL=${CONFIG_SHELL-/bin/sh} 1060 1061 case X$lt_ECHO in 1062 X*--fallback-echo) 1063 # Remove one level of quotation (which was required for Make). 1064 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','` 1065 ;; 1118 [ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 1119 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 1120 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 1121 1122 AC_MSG_CHECKING([how to print strings]) 1123 # Test print first, because it will be a builtin if present. 1124 if test "X`print -r -- -n 2>/dev/null`" = X-n && \ 1125 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 1126 ECHO='print -r --' 1127 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 1128 ECHO='printf %s\n' 1129 else 1130 # Use this function as a fallback that always works. 1131 func_fallback_echo () 1132 { 1133 eval 'cat <<_LTECHO_EOF 1134 $[]1 1135 _LTECHO_EOF' 1136 } 1137 ECHO='func_fallback_echo' 1138 fi 1139 1140 # func_echo_all arg... 1141 # Invoke $ECHO with all args, space-separated. 1142 func_echo_all () 1143 { 1144 $ECHO "$*" 1145 } 1146 1147 case "$ECHO" in 1148 printf*) AC_MSG_RESULT([printf]) ;; 1149 print*) AC_MSG_RESULT([print -r]) ;; 1150 *) AC_MSG_RESULT([cat]) ;; 1066 1151 esac 1067 1152 1068 ECHO=${lt_ECHO-echo} 1069 if test "X[$]1" = X--no-reexec; then 1070 # Discard the --no-reexec flag, and continue. 1071 shift 1072 elif test "X[$]1" = X--fallback-echo; then 1073 # Avoid inline document here, it may be left over 1074 : 1075 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then 1076 # Yippee, $ECHO works! 1077 : 1078 else 1079 # Restart under the correct shell. 1080 exec $SHELL "[$]0" --no-reexec ${1+"[$]@"} 1081 fi 1082 1083 if test "X[$]1" = X--fallback-echo; then 1084 # used as fallback echo 1085 shift 1086 cat <<_LT_EOF 1087 [$]* 1088 _LT_EOF 1089 exit 0 1090 fi 1091 1092 # The HP-UX ksh and POSIX shell print the target directory to stdout 1093 # if CDPATH is set. 1094 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 1095 1096 if test -z "$lt_ECHO"; then 1097 if test "X${echo_test_string+set}" != Xset; then 1098 # find a string as large as possible, as long as the shell can cope with it 1099 for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do 1100 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 1101 if { echo_test_string=`eval $cmd`; } 2>/dev/null && 1102 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null 1103 then 1104 break 1105 fi 1106 done 1107 fi 1108 1109 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 1110 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 1111 test "X$echo_testing_string" = "X$echo_test_string"; then 1112 : 1113 else 1114 # The Solaris, AIX, and Digital Unix default echo programs unquote 1115 # backslashes. This makes it impossible to quote backslashes using 1116 # echo "$something" | sed 's/\\/\\\\/g' 1117 # 1118 # So, first we look for a working echo in the user's PATH. 1119 1120 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 1121 for dir in $PATH /usr/ucb; do 1122 IFS="$lt_save_ifs" 1123 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 1124 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 1125 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 1126 test "X$echo_testing_string" = "X$echo_test_string"; then 1127 ECHO="$dir/echo" 1128 break 1129 fi 1130 done 1131 IFS="$lt_save_ifs" 1132 1133 if test "X$ECHO" = Xecho; then 1134 # We didn't find a better echo, so look for alternatives. 1135 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && 1136 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && 1137 test "X$echo_testing_string" = "X$echo_test_string"; then 1138 # This shell has a builtin print -r that does the trick. 1139 ECHO='print -r' 1140 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && 1141 test "X$CONFIG_SHELL" != X/bin/ksh; then 1142 # If we have ksh, try running configure again with it. 1143 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 1144 export ORIGINAL_CONFIG_SHELL 1145 CONFIG_SHELL=/bin/ksh 1146 export CONFIG_SHELL 1147 exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"} 1148 else 1149 # Try using printf. 1150 ECHO='printf %s\n' 1151 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 1152 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 1153 test "X$echo_testing_string" = "X$echo_test_string"; then 1154 # Cool, printf works 1155 : 1156 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && 1157 test "X$echo_testing_string" = 'X\t' && 1158 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && 1159 test "X$echo_testing_string" = "X$echo_test_string"; then 1160 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 1161 export CONFIG_SHELL 1162 SHELL="$CONFIG_SHELL" 1163 export SHELL 1164 ECHO="$CONFIG_SHELL [$]0 --fallback-echo" 1165 elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && 1166 test "X$echo_testing_string" = 'X\t' && 1167 echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && 1168 test "X$echo_testing_string" = "X$echo_test_string"; then 1169 ECHO="$CONFIG_SHELL [$]0 --fallback-echo" 1170 else 1171 # maybe with a smaller string... 1172 prev=: 1173 1174 for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do 1175 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null 1176 then 1177 break 1178 fi 1179 prev="$cmd" 1180 done 1181 1182 if test "$prev" != 'sed 50q "[$]0"'; then 1183 echo_test_string=`eval $prev` 1184 export echo_test_string 1185 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"} 1186 else 1187 # Oops. We lost completely, so just stick with echo. 1188 ECHO=echo 1189 fi 1190 fi 1191 fi 1192 fi 1193 fi 1194 fi 1195 1196 # Copy echo and quote the copy suitably for passing to libtool from 1197 # the Makefile, instead of quoting the original, which is used later. 1198 lt_ECHO=$ECHO 1199 if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then 1200 lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo" 1201 fi 1202 1203 AC_SUBST(lt_ECHO) 1204 ]) 1153 m4_ifdef([_AS_DETECT_SUGGESTED], 1154 [_AS_DETECT_SUGGESTED([ 1155 test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || ( 1156 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 1157 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 1158 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 1159 PATH=/empty FPATH=/empty; export PATH FPATH 1160 test "X`printf %s $ECHO`" = "X$ECHO" \ 1161 || test "X`print -r -- $ECHO`" = "X$ECHO" )])]) 1162 1205 1163 _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts]) 1206 _LT_DECL([], [ECHO], [1], 1207 [An echo program that does not interpret backslashes]) 1164 _LT_DECL([], [ECHO], [1], [An echo program that protects backslashes]) 1208 1165 ])# _LT_PROG_ECHO_BACKSLASH 1209 1166 … … 1237 1194 *-*-irix6*) 1238 1195 # Find out which ABI we are using. 1239 echo '[#]line __oline__"configure"' > conftest.$ac_ext1196 echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext 1240 1197 if AC_TRY_EVAL(ac_compile); then 1241 1198 if test "$lt_cv_prog_gnu_ld" = yes; then … … 1389 1346 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 1390 1347 fi 1348 1349 case $host_os in 1350 darwin*) 1351 lock_old_archive_extraction=yes ;; 1352 *) 1353 lock_old_archive_extraction=no ;; 1354 esac 1391 1355 _LT_DECL([], [old_postinstall_cmds], [2]) 1392 1356 _LT_DECL([], [old_postuninstall_cmds], [2]) 1393 1357 _LT_TAGDECL([], [old_archive_cmds], [2], 1394 1358 [Commands used to build an old-style archive]) 1359 _LT_DECL([], [lock_old_archive_extraction], [0], 1360 [Whether to use a lock for old archive extraction]) 1395 1361 ])# _LT_CMD_OLD_ARCHIVE 1396 1362 … … 1417 1383 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ 1418 1384 -e 's:$: $lt_compiler_flag:'` 1419 (eval echo "\"\$as_me: __oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)1385 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) 1420 1386 (eval "$lt_compile" 2>conftest.err) 1421 1387 ac_status=$? 1422 1388 cat conftest.err >&AS_MESSAGE_LOG_FD 1423 echo "$as_me: __oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD1389 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 1424 1390 if (exit $ac_status) && test -s "$ac_outfile"; then 1425 1391 # The compiler can only warn and ignore the option if not recognized 1426 1392 # So say no if there are warnings other than the usual output. 1427 $ECHO " X$_lt_compiler_boilerplate" | $Xsed -e'/^$/d' >conftest.exp1393 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 1428 1394 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 1429 1395 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then … … 1465 1431 # Append any errors to the config.log. 1466 1432 cat conftest.err 1>&AS_MESSAGE_LOG_FD 1467 $ECHO " X$_lt_linker_boilerplate" | $Xsed -e'/^$/d' > conftest.exp1433 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 1468 1434 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 1469 1435 if diff conftest.exp conftest.er2 >/dev/null; then … … 1525 1491 # Instead, let's just punt: use the minimum linelength reported by 1526 1492 # all of the supported platforms: 8192 (on NT/2K/XP). 1493 lt_cv_sys_max_cmd_len=8192; 1494 ;; 1495 1496 mint*) 1497 # On MiNT this can take a long time and run out of memory. 1527 1498 lt_cv_sys_max_cmd_len=8192; 1528 1499 ;; … … 1592 1563 # maximum length that is only half of the actual maximum length, but 1593 1564 # we can't tell. 1594 while { test "X"` $SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \1595 = "X X$teststring$teststring"; } >/dev/null 2>&1 &&1565 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ 1566 = "X$teststring$teststring"; } >/dev/null 2>&1 && 1596 1567 test $i != 17 # 1/2 MB should be enough 1597 1568 do … … 1644 1615 lt_status=$lt_dlunknown 1645 1616 cat > conftest.$ac_ext <<_LT_EOF 1646 [#line __oline__"configure"1617 [#line $LINENO "configure" 1647 1618 #include "confdefs.h" 1648 1619 … … 1685 1656 #endif 1686 1657 1687 void fnord() { int i=42;} 1658 /* When -fvisbility=hidden is used, assume the code has been annotated 1659 correspondingly for the symbols needed. */ 1660 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 1661 void fnord () __attribute__((visibility("default"))); 1662 #endif 1663 1664 void fnord () { int i=42; } 1688 1665 int main () 1689 1666 { … … 1694 1671 { 1695 1672 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 1696 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 1673 else 1674 { 1675 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 1676 else puts (dlerror ()); 1677 } 1697 1678 /* dlclose (self); */ 1698 1679 } … … 1870 1851 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ 1871 1852 -e 's:$: $lt_compiler_flag:'` 1872 (eval echo "\"\$as_me: __oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)1853 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) 1873 1854 (eval "$lt_compile" 2>out/conftest.err) 1874 1855 ac_status=$? 1875 1856 cat out/conftest.err >&AS_MESSAGE_LOG_FD 1876 echo "$as_me: __oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD1857 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 1877 1858 if (exit $ac_status) && test -s out/conftest2.$ac_objext 1878 1859 then 1879 1860 # The compiler can only warn and ignore the option if not recognized 1880 1861 # So say no if there are warnings 1881 $ECHO " X$_lt_compiler_boilerplate" | $Xsed -e'/^$/d' > out/conftest.exp1862 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 1882 1863 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 1883 1864 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then … … 2038 2019 m4_require([_LT_DECL_OBJDUMP])dnl 2039 2020 m4_require([_LT_DECL_SED])dnl 2021 m4_require([_LT_CHECK_SHELL_FEATURES])dnl 2040 2022 AC_MSG_CHECKING([dynamic linker characteristics]) 2041 2023 m4_if([$1], … … 2046 2028 *) lt_awk_arg="/^libraries:/" ;; 2047 2029 esac 2048 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 2049 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then 2030 case $host_os in 2031 mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;; 2032 *) lt_sed_strip_eq="s,=/,/,g" ;; 2033 esac 2034 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 2035 case $lt_search_path_spec in 2036 *\;*) 2050 2037 # if the path contains ";" then we assume it to be the separator 2051 2038 # otherwise default to the standard path separator (i.e. ":") - it is 2052 2039 # assumed that no part of a normal pathname contains ";" but that should 2053 2040 # okay in the real world where ";" in dirpaths is itself problematic. 2054 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` 2055 else 2056 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 2057 fi 2041 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 2042 ;; 2043 *) 2044 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 2045 ;; 2046 esac 2058 2047 # Ok, now we have the path, separated by spaces, we can step through it 2059 2048 # and add multilib dir if necessary. … … 2068 2057 fi 2069 2058 done 2070 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec| awk '2059 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 2071 2060 BEGIN {RS=" "; FS="/|\n";} { 2072 2061 lt_foo=""; … … 2088 2077 if (lt_freq[[lt_foo]] == 1) { print lt_foo; } 2089 2078 }'` 2090 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` 2079 # AWK program above erroneously prepends '/' to C:/dos/paths 2080 # for these hosts. 2081 case $host_os in 2082 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 2083 $SED 's,/\([[A-Za-z]]:\),\1,g'` ;; 2084 esac 2085 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 2091 2086 else 2092 2087 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" … … 2176 2171 library_names_spec='$libname.ixlibrary $libname.a' 2177 2172 # Create ${libname}_ixlibrary.a entries in /sys/libs. 2178 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=` $ECHO "X$lib" | $Xsed -e'\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'2173 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' 2179 2174 ;; 2180 2175 esac … … 2229 2224 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 2230 2225 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 2231 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 2226 m4_if([$1], [],[ 2227 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"]) 2232 2228 ;; 2233 2229 mingw* | cegcc*) 2234 2230 # MinGW DLLs use traditional 'lib' prefix 2235 2231 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 2236 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`2237 if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then2238 # It is most probably a Windows format PATH printed by2239 # mingw gcc, but we are running on Cygwin. Gcc prints its search2240 # path with ; separators, and with drive letters. We can handle the2241 # drive letters (cygwin fileutils understands them), so leave them,2242 # especially as we might pass files found there to a mingw objdump,2243 # which wouldn't understand a cygwinified path. Ahh.2244 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`2245 else2246 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`2247 fi2248 2232 ;; 2249 2233 pw32*) … … 2342 2326 soname_spec='${libname}${release}${shared_ext}$major' 2343 2327 shlibpath_var=LD_LIBRARY_PATH 2328 hardcode_into_libs=yes 2329 ;; 2330 2331 haiku*) 2332 version_type=linux 2333 need_lib_prefix=no 2334 need_version=no 2335 dynamic_linker="$host_os runtime_loader" 2336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 2337 soname_spec='${libname}${release}${shared_ext}$major' 2338 shlibpath_var=LIBRARY_PATH 2339 shlibpath_overrides_runpath=yes 2340 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 2344 2341 hardcode_into_libs=yes 2345 2342 ;; … … 2387 2384 ;; 2388 2385 esac 2389 # HP-UX runs *really* slowly unless shared libraries are mode 555 .2386 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 2390 2387 postinstall_cmds='chmod 555 $lib' 2388 # or fails outright, so override atomically: 2389 install_override_mode=555 2391 2390 ;; 2392 2391 … … 2455 2454 shlibpath_var=LD_LIBRARY_PATH 2456 2455 shlibpath_overrides_runpath=no 2456 2457 2457 # Some binutils ld are patched to set DT_RUNPATH 2458 save_LDFLAGS=$LDFLAGS 2459 save_libdir=$libdir 2460 eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \ 2461 LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\"" 2462 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], 2463 [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null], 2464 [shlibpath_overrides_runpath=yes])]) 2465 LDFLAGS=$save_LDFLAGS 2466 libdir=$save_libdir 2458 AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath], 2459 [lt_cv_shlibpath_overrides_runpath=no 2460 save_LDFLAGS=$LDFLAGS 2461 save_libdir=$libdir 2462 eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \ 2463 LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\"" 2464 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], 2465 [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null], 2466 [lt_cv_shlibpath_overrides_runpath=yes])]) 2467 LDFLAGS=$save_LDFLAGS 2468 libdir=$save_libdir 2469 ]) 2470 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 2467 2471 2468 2472 # This implies no fast_install, which is unacceptable. … … 2471 2475 hardcode_into_libs=yes 2472 2476 2477 # Add ABI-specific directories to the system library path. 2478 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 2479 2473 2480 # Append ld.so.conf contents to the search path 2474 2481 if test -f /etc/ld.so.conf; then 2475 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 2476 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 2482 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' ' '` 2483 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 2484 2477 2485 fi 2478 2486 … … 2484 2492 # assume the GNU/Linux dynamic linker is in use. 2485 2493 dynamic_linker='GNU/Linux ld.so' 2486 ;;2487 2488 netbsdelf*-gnu)2489 version_type=linux2490 need_lib_prefix=no2491 need_version=no2492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'2493 soname_spec='${libname}${release}${shared_ext}$major'2494 shlibpath_var=LD_LIBRARY_PATH2495 shlibpath_overrides_runpath=no2496 hardcode_into_libs=yes2497 dynamic_linker='NetBSD ld.elf_so'2498 2494 ;; 2499 2495 … … 2718 2714 _LT_DECL([], [soname_spec], [1], 2719 2715 [[The coded name of the library, if different from the real name]]) 2716 _LT_DECL([], [install_override_mode], [1], 2717 [Permission mode override for installation of shared libraries]) 2720 2718 _LT_DECL([], [postinstall_cmds], [2], 2721 2719 [Command to use after installation of a shared archive]) … … 2830 2828 m4_require([_LT_DECL_SED])dnl 2831 2829 m4_require([_LT_DECL_EGREP])dnl 2830 m4_require([_LT_PROG_ECHO_BACKSLASH])dnl 2832 2831 2833 2832 AC_ARG_WITH([gnu-ld], … … 2959 2958 ;; 2960 2959 esac 2961 _LT_ DECL([], [reload_flag], [1], [How to create reloadable object files])dnl2962 _LT_ DECL([], [reload_cmds], [2])dnl2960 _LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl 2961 _LT_TAGDECL([], [reload_cmds], [2])dnl 2963 2962 ])# _LT_CMD_RELOAD 2964 2963 … … 3012 3011 # func_win32_libid shell function, so use a weaker test based on 'objdump', 3013 3012 # unless we find 'file', for example because we are cross-compiling. 3014 if ( file / ) >/dev/null 2>&1; then 3013 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 3014 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 3015 3015 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 3016 3016 lt_cv_file_magic_cmd='func_win32_libid' 3017 3017 else 3018 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 3018 # Keep this pattern in sync with the one in func_win32_libid. 3019 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 3019 3020 lt_cv_file_magic_cmd='$OBJDUMP -f' 3020 3021 fi 3021 3022 ;; 3022 3023 3023 cegcc )3024 cegcc*) 3024 3025 # use the weaker test based on 'objdump'. See mingw*. 3025 3026 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' … … 3051 3052 ;; 3052 3053 3054 haiku*) 3055 lt_cv_deplibs_check_method=pass_all 3056 ;; 3057 3053 3058 hpux10.20* | hpux11*) 3054 3059 lt_cv_file_magic_cmd=/usr/bin/file … … 3059 3064 ;; 3060 3065 hppa*64*) 3061 [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF -[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]']3066 [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'] 3062 3067 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 3063 3068 ;; 3064 3069 *) 3065 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]] .[[0-9]]) shared library'3070 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library' 3066 3071 lt_cv_file_magic_test_file=/usr/lib/libc.sl 3067 3072 ;; … … 3089 3094 ;; 3090 3095 3091 netbsd* | netbsdelf*-gnu)3096 netbsd*) 3092 3097 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 3093 3098 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' … … 3227 3232 else 3228 3233 # Didn't find any BSD compatible name lister, look for dumpbin. 3229 AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :) 3234 if test -n "$DUMPBIN"; then : 3235 # Let the user override the test. 3236 else 3237 AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :) 3238 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 3239 *COFF*) 3240 DUMPBIN="$DUMPBIN -symbols" 3241 ;; 3242 *) 3243 DUMPBIN=: 3244 ;; 3245 esac 3246 fi 3230 3247 AC_SUBST([DUMPBIN]) 3231 3248 if test "$DUMPBIN" != ":"; then … … 3240 3257 [lt_cv_nm_interface="BSD nm" 3241 3258 echo "int some_variable = 0;" > conftest.$ac_ext 3242 (eval echo "\"\$as_me: __oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)3259 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD) 3243 3260 (eval "$ac_compile" 2>conftest.err) 3244 3261 cat conftest.err >&AS_MESSAGE_LOG_FD 3245 (eval echo "\"\$as_me: __oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)3262 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD) 3246 3263 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 3247 3264 cat conftest.err >&AS_MESSAGE_LOG_FD 3248 (eval echo "\"\$as_me: __oline__: output\"" >&AS_MESSAGE_LOG_FD)3265 (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD) 3249 3266 cat conftest.out >&AS_MESSAGE_LOG_FD 3250 3267 if $GREP 'External.*some_variable' conftest.out > /dev/null; then … … 3269 3286 LIBM= 3270 3287 case $host in 3271 *-*-beos* | *-*-c ygwin* | *-*-pw32* | *-*-darwin*)3288 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*) 3272 3289 # These system don't have libm, or don't need it 3273 3290 ;; … … 3297 3314 3298 3315 if test "$GCC" = yes; then 3299 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' 3316 case $cc_basename in 3317 nvcc*) 3318 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;; 3319 *) 3320 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;; 3321 esac 3300 3322 3301 3323 _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], … … 3314 3336 [AC_REQUIRE([AC_CANONICAL_HOST])dnl 3315 3337 AC_REQUIRE([AC_PROG_CC])dnl 3338 AC_REQUIRE([AC_PROG_AWK])dnl 3316 3339 AC_REQUIRE([LT_PATH_NM])dnl 3317 3340 AC_REQUIRE([LT_PATH_LD])dnl … … 3439 3462 # Now try to grab the symbols. 3440 3463 nlist=conftest.nm 3441 if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe\> $nlist) && test -s "$nlist"; then3464 if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then 3442 3465 # Try sorting and uniquifying the output. 3443 3466 if sort "$nlist" | uniq > "$nlist"T; then … … 3600 3623 # DJGPP does not support shared libraries at all 3601 3624 _LT_TAGVAR(lt_prog_compiler_pic, $1)= 3625 ;; 3626 haiku*) 3627 # PIC is the default for Haiku. 3628 # The "-static" flag exists, but is broken. 3629 _LT_TAGVAR(lt_prog_compiler_static, $1)= 3602 3630 ;; 3603 3631 interix[[3-9]]*) … … 3739 3767 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 3740 3768 ;; 3741 xlc* | xlC* )3742 # IBM XL 8.0 on PPC3769 xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*) 3770 # IBM XL 8.0, 9.0 on PPC and BlueGene 3743 3771 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 3744 3772 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' … … 3770 3798 esac 3771 3799 ;; 3772 netbsd* | netbsdelf*-gnu)3800 netbsd*) 3773 3801 ;; 3774 3802 *qnx* | *nto*) … … 3802 3830 solaris*) 3803 3831 case $cc_basename in 3804 CC* )3832 CC* | sunCC*) 3805 3833 # Sun C++ 4.2, 5.x and Centerline C++ 3806 3834 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' … … 3906 3934 ;; 3907 3935 3936 haiku*) 3937 # PIC is the default for Haiku. 3938 # The "-static" flag exists, but is broken. 3939 _LT_TAGVAR(lt_prog_compiler_static, $1)= 3940 ;; 3941 3908 3942 hpux*) 3909 3943 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit … … 3946 3980 *) 3947 3981 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 3982 ;; 3983 esac 3984 3985 case $cc_basename in 3986 nvcc*) # Cuda Compiler Driver 2.2 3987 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker ' 3988 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Xcompiler -fPIC' 3948 3989 ;; 3949 3990 esac … … 4011 4052 _LT_TAGVAR(lt_prog_compiler_static, $1)='--static' 4012 4053 ;; 4013 pgcc* | pgf77* | pgf90* | pgf95* )4054 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 4014 4055 # Portland Group compilers (*not* the Pentium gcc compiler, 4015 4056 # which looks to be a dead project) … … 4023 4064 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 4024 4065 ;; 4025 xl* )4026 # IBM XL C 8.0/Fortran 10.1 on PPC4066 xl* | bgxl* | bgf* | mpixl*) 4067 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 4027 4068 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4028 4069 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' … … 4031 4072 *) 4032 4073 case `$CC -V 2>&1 | sed 5q` in 4074 *Sun\ F* | *Sun*Fortran*) 4075 # Sun Fortran 8.3 passes all unrecognized flags to the linker 4076 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4077 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4078 _LT_TAGVAR(lt_prog_compiler_wl, $1)='' 4079 ;; 4033 4080 *Sun\ C*) 4034 4081 # Sun C 5.9 … … 4037 4084 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4038 4085 ;; 4039 *Sun\ F*)4040 # Sun Fortran 8.3 passes all unrecognized flags to the linker4041 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'4042 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'4043 _LT_TAGVAR(lt_prog_compiler_wl, $1)=''4044 ;;4045 4086 esac 4046 4087 ;; … … 4073 4114 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4074 4115 case $cc_basename in 4075 f77* | f90* | f95* )4116 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 4076 4117 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; 4077 4118 *) … … 4183 4224 # If we're using GNU nm, then we don't want the "-C" option. 4184 4225 # -C means demangle to AIX nm, but means don't demangle with GNU nm 4226 # Also, AIX nm treats weak defined symbols like other global defined 4227 # symbols, whereas GNU nm marks them as "W". 4185 4228 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 4186 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") ) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'4229 _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' 4187 4230 else 4188 4231 _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' … … 4194 4237 cygwin* | mingw* | cegcc*) 4195 4238 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols' 4196 ;;4197 linux* | k*bsd*-gnu)4198 _LT_TAGVAR(link_all_deplibs, $1)=no4199 4239 ;; 4200 4240 *) … … 4262 4302 with_gnu_ld=no 4263 4303 ;; 4264 linux* | k*bsd*-gnu)4265 _LT_TAGVAR(link_all_deplibs, $1)=no4266 ;;4267 4304 esac 4268 4305 4269 4306 _LT_TAGVAR(ld_shlibs, $1)=yes 4307 4308 # On some targets, GNU ld is compatible enough with the native linker 4309 # that we're better off using the native interface for both. 4310 lt_use_gnu_ld_interface=no 4270 4311 if test "$with_gnu_ld" = yes; then 4312 case $host_os in 4313 aix*) 4314 # The AIX port of GNU ld has always aspired to compatibility 4315 # with the native linker. However, as the warning in the GNU ld 4316 # block says, versions before 2.19.5* couldn't really create working 4317 # shared libraries, regardless of the interface used. 4318 case `$LD -v 2>&1` in 4319 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 4320 *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;; 4321 *\ \(GNU\ Binutils\)\ [[3-9]]*) ;; 4322 *) 4323 lt_use_gnu_ld_interface=yes 4324 ;; 4325 esac 4326 ;; 4327 *) 4328 lt_use_gnu_ld_interface=yes 4329 ;; 4330 esac 4331 fi 4332 4333 if test "$lt_use_gnu_ld_interface" = yes; then 4271 4334 # If archive_cmds runs LD, not CC, wlarc should be empty 4272 4335 wlarc='${wl}' … … 4302 4365 cat <<_LT_EOF 1>&2 4303 4366 4304 *** Warning: the GNU linker, at least up to release 2. 9.1, is reported4367 *** Warning: the GNU linker, at least up to release 2.19, is reported 4305 4368 *** to be unable to reliably create shared libraries on AIX. 4306 4369 *** Therefore, libtool is disabling shared libraries support. If you 4307 *** really care for shared libraries, you may want to modify your PATH 4308 *** so that a non-GNU linker is found, and then restart. 4370 *** really care for shared libraries, you may want to install binutils 4371 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 4372 *** You will then need to restart the configuration process. 4309 4373 4310 4374 _LT_EOF … … 4342 4406 # as there is no search path for DLLs. 4343 4407 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 4408 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols' 4344 4409 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 4345 4410 _LT_TAGVAR(always_export_symbols, $1)=no … … 4363 4428 ;; 4364 4429 4430 haiku*) 4431 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 4432 _LT_TAGVAR(link_all_deplibs, $1)=yes 4433 ;; 4434 4365 4435 interix[[3-9]]*) 4366 4436 _LT_TAGVAR(hardcode_direct, $1)=no … … 4392 4462 case $cc_basename,$host_cpu in 4393 4463 pgcc*) # Portland Group C compiler 4394 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO\"$new_convenience\"` ${wl}--no-whole-archive'4464 _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' 4395 4465 tmp_addflag=' $pic_flag' 4396 4466 ;; 4397 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 4398 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 4467 pgf77* | pgf90* | pgf95* | pgfortran*) 4468 # Portland Group f77 and f90 compilers 4469 _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' 4399 4470 tmp_addflag=' $pic_flag -Mnomain' ;; 4400 4471 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 … … 4407 4478 _LT_TAGVAR(whole_archive_flag_spec, $1)= 4408 4479 tmp_sharedflag='--shared' ;; 4409 xl[[cC]]* )# IBM XL C 8.0 on PPC (deal with xlf below)4480 xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below) 4410 4481 tmp_sharedflag='-qmkshrobj' 4411 4482 tmp_addflag= ;; 4483 nvcc*) # Cuda Compiler Driver 2.2 4484 _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' 4485 _LT_TAGVAR(compiler_needs_object, $1)=yes 4486 ;; 4412 4487 esac 4413 4488 case `$CC -V 2>&1 | sed 5q` in 4414 4489 *Sun\ C*) # Sun C 5.9 4415 _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; $ECHO\"$new_convenience\"` ${wl}--no-whole-archive'4490 _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' 4416 4491 _LT_TAGVAR(compiler_needs_object, $1)=yes 4417 4492 tmp_sharedflag='-G' ;; … … 4429 4504 4430 4505 case $cc_basename in 4431 xlf* )4506 xlf* | bgf* | bgxlf* | mpixlf*) 4432 4507 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 4433 4508 _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive' 4434 4509 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 4435 4510 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir' 4436 _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $ compiler_flags -soname $soname -o $lib'4511 _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 4437 4512 if test "x$supports_anon_versioning" = xyes; then 4438 4513 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ 4439 4514 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 4440 4515 echo "local: *; };" >> $output_objdir/$libname.ver~ 4441 $LD -shared $libobjs $deplibs $ compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'4516 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 4442 4517 fi 4443 4518 ;; … … 4448 4523 ;; 4449 4524 4450 netbsd* | netbsdelf*-gnu)4525 netbsd*) 4451 4526 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 4452 4527 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' … … 4560 4635 # If we're using GNU nm, then we don't want the "-C" option. 4561 4636 # -C means demangle to AIX nm, but means don't demangle with GNU nm 4637 # Also, AIX nm treats weak defined symbols like other global 4638 # defined symbols, whereas GNU nm marks them as "W". 4562 4639 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 4563 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") ) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'4640 _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' 4564 4641 else 4565 4642 _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' … … 4623 4700 shared_flag="$shared_flag "'${wl}-G' 4624 4701 fi 4625 _LT_TAGVAR(link_all_deplibs, $1)=no4626 4702 else 4627 4703 # not using gcc … … 4651 4727 _LT_SYS_MODULE_PATH_AIX 4652 4728 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 4653 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"4729 _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" 4654 4730 else 4655 4731 if test "$host_cpu" = ia64; then … … 4666 4742 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' 4667 4743 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' 4668 # Exported symbols can be pulled into shared objects from archives 4669 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' 4744 if test "$with_gnu_ld" = yes; then 4745 # We only use this code for GNU lds that support --whole-archive. 4746 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 4747 else 4748 # Exported symbols can be pulled into shared objects from archives 4749 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' 4750 fi 4670 4751 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes 4671 4752 # This is similar to how AIX traditionally builds its shared libraries. … … 4706 4787 shrext_cmds=".dll" 4707 4788 # FIXME: Setting linknames here is a bad hack. 4708 _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags ` $ECHO "X$deplibs" | $Xsed -e'\''s/ -lc$//'\''` -link -dll~linknames='4789 _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 4709 4790 # The linker will automatically build a .lib file if we build a DLL. 4710 4791 _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' … … 4773 4854 4774 4855 hpux10*) 4775 if test "$GCC" = yes -a"$with_gnu_ld" = no; then4856 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 4776 4857 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 4777 4858 else … … 4792 4873 4793 4874 hpux11*) 4794 if test "$GCC" = yes -a"$with_gnu_ld" = no; then4875 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 4795 4876 case $host_cpu in 4796 4877 hppa*64*) … … 4813 4894 ;; 4814 4895 *) 4815 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 4896 m4_if($1, [], [ 4897 # Older versions of the 11.00 compiler do not understand -b yet 4898 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 4899 _LT_LINKER_OPTION([if $CC understands -b], 4900 _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b], 4901 [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'], 4902 [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])], 4903 [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags']) 4816 4904 ;; 4817 4905 esac … … 4841 4929 irix5* | irix6* | nonstopux*) 4842 4930 if test "$GCC" = yes; then 4843 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'4931 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $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' 4844 4932 # Try to use the -exported_symbol ld option, if it does not 4845 4933 # work, assume that -exports_file does not work either and … … 4848 4936 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 4849 4937 AC_LINK_IFELSE(int foo(void) {}, 4850 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'4938 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $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' 4851 4939 ) 4852 4940 LDFLAGS="$save_LDFLAGS" 4853 4941 else 4854 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'4855 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'4942 _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' 4943 _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' 4856 4944 fi 4857 4945 _LT_TAGVAR(archive_cmds_need_lc, $1)='no' … … 4862 4950 ;; 4863 4951 4864 netbsd* | netbsdelf*-gnu)4952 netbsd*) 4865 4953 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 4866 4954 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out … … 4915 5003 _LT_TAGVAR(hardcode_minus_L, $1)=yes 4916 5004 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 4917 _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~$ECHOEXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'5005 _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' 4918 5006 _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 4919 5007 ;; … … 4922 5010 if test "$GCC" = yes; then 4923 5011 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 4924 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'5012 _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' 4925 5013 else 4926 5014 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 4927 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'5015 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 4928 5016 fi 4929 5017 _LT_TAGVAR(archive_cmds_need_lc, $1)='no' … … 4935 5023 if test "$GCC" = yes; then 4936 5024 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 4937 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'5025 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_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' 4938 5026 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 4939 5027 else 4940 5028 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 4941 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'5029 _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' 4942 5030 _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~ 4943 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO " X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'5031 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' 4944 5032 4945 5033 # Both c and cxx compiler support -rpath directly … … 5132 5220 # systems, -lgcc has to come before -lc. If gcc already passes -lc 5133 5221 # to ld, don't add -lc before -lgcc. 5134 AC_MSG_CHECKING([whether -lc should be explicitly linked in]) 5135 $RM conftest* 5136 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 5137 5138 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then 5139 soname=conftest 5140 lib=conftest 5141 libobjs=conftest.$ac_objext 5142 deplibs= 5143 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) 5144 pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1) 5145 compiler_flags=-v 5146 linker_flags=-v 5147 verstring= 5148 output_objdir=. 5149 libname=conftest 5150 lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1) 5151 _LT_TAGVAR(allow_undefined_flag, $1)= 5152 if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 5153 then 5154 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 5155 else 5156 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes 5157 fi 5158 _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag 5159 else 5160 cat conftest.err 1>&5 5161 fi 5162 $RM conftest* 5163 AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)]) 5222 AC_CACHE_CHECK([whether -lc should be explicitly linked in], 5223 [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1), 5224 [$RM conftest* 5225 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 5226 5227 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then 5228 soname=conftest 5229 lib=conftest 5230 libobjs=conftest.$ac_objext 5231 deplibs= 5232 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) 5233 pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1) 5234 compiler_flags=-v 5235 linker_flags=-v 5236 verstring= 5237 output_objdir=. 5238 libname=conftest 5239 lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1) 5240 _LT_TAGVAR(allow_undefined_flag, $1)= 5241 if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 5242 then 5243 lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no 5244 else 5245 lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes 5246 fi 5247 _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag 5248 else 5249 cat conftest.err 1>&5 5250 fi 5251 $RM conftest* 5252 ]) 5253 _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1) 5164 5254 ;; 5165 5255 esac … … 5331 5421 5332 5422 5333 # _LT_ PROG_CXX5334 # ------------ 5335 # Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++5336 # compiler, we have our own version here.5337 m4_defun([_LT_PROG_CXX], 5338 [ 5339 pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes]) 5340 AC_PROG_CXX 5423 # _LT_LANG_CXX_CONFIG([TAG]) 5424 # -------------------------- 5425 # Ensure that the configuration variables for a C++ compiler are suitably 5426 # defined. These variables are subsequently used by _LT_CONFIG to write 5427 # the compiler configuration to `libtool'. 5428 m4_defun([_LT_LANG_CXX_CONFIG], 5429 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl 5430 m4_require([_LT_DECL_EGREP])dnl 5341 5431 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 5342 5432 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || … … 5346 5436 _lt_caught_CXX_error=yes 5347 5437 fi 5348 popdef([AC_MSG_ERROR])5349 ])# _LT_PROG_CXX5350 5351 dnl aclocal-1.4 backwards compatibility:5352 dnl AC_DEFUN([_LT_PROG_CXX], [])5353 5354 5355 # _LT_LANG_CXX_CONFIG([TAG])5356 # --------------------------5357 # Ensure that the configuration variables for a C++ compiler are suitably5358 # defined. These variables are subsequently used by _LT_CONFIG to write5359 # the compiler configuration to `libtool'.5360 m4_defun([_LT_LANG_CXX_CONFIG],5361 [AC_REQUIRE([_LT_PROG_CXX])dnl5362 m4_require([_LT_FILEUTILS_DEFAULTS])dnl5363 m4_require([_LT_DECL_EGREP])dnl5364 5438 5365 5439 AC_LANG_PUSH(C++) … … 5383 5457 _LT_TAGVAR(link_all_deplibs, $1)=unknown 5384 5458 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 5459 _LT_TAGVAR(reload_flag, $1)=$reload_flag 5460 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds 5385 5461 _LT_TAGVAR(no_undefined_flag, $1)= 5386 5462 _LT_TAGVAR(whole_archive_flag_spec, $1)= … … 5485 5561 # what "hidden" libraries, object files and flags are used when 5486 5562 # linking a shared library. 5487 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'5563 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 5488 5564 5489 5565 else … … 5597 5673 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 5598 5674 5599 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"5675 _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" 5600 5676 else 5601 5677 if test "$host_cpu" = ia64; then … … 5612 5688 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' 5613 5689 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' 5614 # Exported symbols can be pulled into shared objects from archives 5615 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' 5690 if test "$with_gnu_ld" = yes; then 5691 # We only use this code for GNU lds that support --whole-archive. 5692 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 5693 else 5694 # Exported symbols can be pulled into shared objects from archives 5695 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' 5696 fi 5616 5697 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes 5617 5698 # This is similar to how AIX traditionally builds its shared … … 5646 5727 # as there is no search path for DLLs. 5647 5728 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 5729 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols' 5648 5730 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 5649 5731 _LT_TAGVAR(always_export_symbols, $1)=no … … 5706 5788 ;; 5707 5789 5790 haiku*) 5791 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 5792 _LT_TAGVAR(link_all_deplibs, $1)=yes 5793 ;; 5794 5708 5795 hpux9*) 5709 5796 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' … … 5730 5817 # from the output so that they don't get included in the library 5731 5818 # dependencies. 5732 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'5819 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"' 5733 5820 ;; 5734 5821 *) … … 5795 5882 # from the output so that they don't get included in the library 5796 5883 # dependencies. 5797 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'5884 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"' 5798 5885 ;; 5799 5886 *) … … 5838 5925 CC*) 5839 5926 # SGI C++ 5840 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'5927 _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' 5841 5928 5842 5929 # Archives containing C++ object files must be created using … … 5849 5936 if test "$GXX" = yes; then 5850 5937 if test "$with_gnu_ld" = no; then 5851 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'5938 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -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' 5852 5939 else 5853 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'5940 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -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' 5854 5941 fi 5855 5942 fi … … 5880 5967 # from the output so that they don't get included in the library 5881 5968 # dependencies. 5882 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'5969 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"' 5883 5970 5884 5971 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' … … 5917 6004 # Portland Group C++ compiler 5918 6005 case `$CC -V` in 5919 *pgCC\ [[1-5]] * | *pgcpp\ [[1-5]]*)6006 *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*) 5920 6007 _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~ 5921 6008 rm -rf $tpldir~ 5922 6009 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 5923 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'6010 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 5924 6011 _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~ 5925 6012 rm -rf $tpldir~ 5926 6013 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 5927 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~6014 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 5928 6015 $RANLIB $oldlib' 5929 6016 _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~ 5930 6017 rm -rf $tpldir~ 5931 6018 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 5932 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'6019 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 5933 6020 _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~ 5934 6021 rm -rf $tpldir~ 5935 6022 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 5936 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'6023 $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' 5937 6024 ;; 5938 *) # Version 6 willuse weak symbols6025 *) # Version 6 and above use weak symbols 5939 6026 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 5940 6027 _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' … … 5944 6031 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' 5945 6032 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 5946 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO\"$new_convenience\"` ${wl}--no-whole-archive'6033 _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' 5947 6034 ;; 5948 6035 cxx*) … … 5963 6050 # from the output so that they don't get included in the library 5964 6051 # dependencies. 5965 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=` $ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO"X$list" | $Xsed'6052 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' 5966 6053 ;; 5967 xl* )6054 xl* | mpixl* | bgxl*) 5968 6055 # IBM XL 8.0 on PPC, with GNU ld 5969 6056 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' … … 5985 6072 _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' 5986 6073 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 5987 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO\"$new_convenience\"` ${wl}--no-whole-archive'6074 _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' 5988 6075 _LT_TAGVAR(compiler_needs_object, $1)=yes 5989 6076 … … 5991 6078 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 5992 6079 # would be better. 5993 output_verbose_link_cmd=' echo'6080 output_verbose_link_cmd='func_echo_all' 5994 6081 5995 6082 # Archives containing C++ object files must be created using … … 6060 6147 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 6061 6148 fi 6062 output_verbose_link_cmd= echo6149 output_verbose_link_cmd=func_echo_all 6063 6150 else 6064 6151 _LT_TAGVAR(ld_shlibs, $1)=no … … 6095 6182 osf3*) 6096 6183 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 6097 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'6184 _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' 6098 6185 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 6099 6186 ;; 6100 6187 *) 6101 6188 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 6102 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'6189 _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' 6103 6190 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 6104 6191 echo "-hidden">> $lib.exp~ 6105 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO " X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~6192 $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~ 6106 6193 $RM $lib.exp' 6107 6194 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' … … 6119 6206 # from the output so that they don't get included in the library 6120 6207 # dependencies. 6121 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=` $ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'6208 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"' 6122 6209 ;; 6123 6210 *) … … 6126 6213 case $host in 6127 6214 osf3*) 6128 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'6215 _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' 6129 6216 ;; 6130 6217 *) 6131 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'6218 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 6132 6219 ;; 6133 6220 esac … … 6139 6226 # what "hidden" libraries, object files and flags are used when 6140 6227 # linking a shared library. 6141 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'6228 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 6142 6229 6143 6230 else … … 6175 6262 solaris*) 6176 6263 case $cc_basename in 6177 CC* )6264 CC* | sunCC*) 6178 6265 # Sun C++ 4.2, 5.x and Centerline C++ 6179 6266 _LT_TAGVAR(archive_cmds_need_lc,$1)=yes … … 6196 6283 _LT_TAGVAR(link_all_deplibs, $1)=yes 6197 6284 6198 output_verbose_link_cmd=' echo'6285 output_verbose_link_cmd='func_echo_all' 6199 6286 6200 6287 # Archives containing C++ object files must be created using … … 6223 6310 # what "hidden" libraries, object files and flags are used when 6224 6311 # linking a shared library. 6225 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'6312 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 6226 6313 else 6227 6314 # g++ 2.7 appears to require `-G' NOT `-shared' on this … … 6234 6321 # what "hidden" libraries, object files and flags are used when 6235 6322 # linking a shared library. 6236 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'6323 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 6237 6324 fi 6238 6325 … … 6288 6375 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6289 6376 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6377 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~ 6378 '"$_LT_TAGVAR(old_archive_cmds, $1)" 6379 _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~ 6380 '"$_LT_TAGVAR(reload_cmds, $1)" 6290 6381 ;; 6291 6382 *) … … 6534 6625 solaris*) 6535 6626 case $cc_basename in 6536 CC* )6627 CC* | sunCC*) 6537 6628 # The more standards-conforming stlport4 library is 6538 6629 # incompatible with the Cstd library. Avoid specifying … … 6578 6669 6579 6670 6580 # _LT_PROG_F776581 # ------------6582 # Since AC_PROG_F77 is broken, in that it returns the empty string6583 # if there is no fortran compiler, we have our own version here.6584 m4_defun([_LT_PROG_F77],6585 [6586 pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])6587 AC_PROG_F776588 if test -z "$F77" || test "X$F77" = "Xno"; then6589 _lt_disable_F77=yes6590 fi6591 popdef([AC_MSG_ERROR])6592 ])# _LT_PROG_F776593 6594 dnl aclocal-1.4 backwards compatibility:6595 dnl AC_DEFUN([_LT_PROG_F77], [])6596 6597 6598 6671 # _LT_LANG_F77_CONFIG([TAG]) 6599 6672 # -------------------------- … … 6602 6675 # to write the compiler configuration to `libtool'. 6603 6676 m4_defun([_LT_LANG_F77_CONFIG], 6604 [AC_REQUIRE([_LT_PROG_F77])dnl 6605 AC_LANG_PUSH(Fortran 77) 6677 [AC_LANG_PUSH(Fortran 77) 6678 if test -z "$F77" || test "X$F77" = "Xno"; then 6679 _lt_disable_F77=yes 6680 fi 6606 6681 6607 6682 _LT_TAGVAR(archive_cmds_need_lc, $1)=no … … 6622 6697 _LT_TAGVAR(link_all_deplibs, $1)=unknown 6623 6698 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 6699 _LT_TAGVAR(reload_flag, $1)=$reload_flag 6700 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds 6624 6701 _LT_TAGVAR(no_undefined_flag, $1)= 6625 6702 _LT_TAGVAR(whole_archive_flag_spec, $1)= … … 6721 6798 6722 6799 6723 # _LT_PROG_FC6724 # -----------6725 # Since AC_PROG_FC is broken, in that it returns the empty string6726 # if there is no fortran compiler, we have our own version here.6727 m4_defun([_LT_PROG_FC],6728 [6729 pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])6730 AC_PROG_FC6731 if test -z "$FC" || test "X$FC" = "Xno"; then6732 _lt_disable_FC=yes6733 fi6734 popdef([AC_MSG_ERROR])6735 ])# _LT_PROG_FC6736 6737 dnl aclocal-1.4 backwards compatibility:6738 dnl AC_DEFUN([_LT_PROG_FC], [])6739 6740 6741 6800 # _LT_LANG_FC_CONFIG([TAG]) 6742 6801 # ------------------------- … … 6745 6804 # to write the compiler configuration to `libtool'. 6746 6805 m4_defun([_LT_LANG_FC_CONFIG], 6747 [AC_REQUIRE([_LT_PROG_FC])dnl 6748 AC_LANG_PUSH(Fortran) 6806 [AC_LANG_PUSH(Fortran) 6807 6808 if test -z "$FC" || test "X$FC" = "Xno"; then 6809 _lt_disable_FC=yes 6810 fi 6749 6811 6750 6812 _LT_TAGVAR(archive_cmds_need_lc, $1)=no … … 6765 6827 _LT_TAGVAR(link_all_deplibs, $1)=unknown 6766 6828 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 6829 _LT_TAGVAR(reload_flag, $1)=$reload_flag 6830 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds 6767 6831 _LT_TAGVAR(no_undefined_flag, $1)= 6768 6832 _LT_TAGVAR(whole_archive_flag_spec, $1)= … … 6910 6974 6911 6975 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 6976 _LT_TAGVAR(reload_flag, $1)=$reload_flag 6977 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds 6912 6978 6913 6979 ## CAVEAT EMPTOR: … … 7277 7343 { 7278 7344 # Extract subdirectory from the argument. 7279 func_dirname_result=`$ECHO " X${1}" | $Xsed -e"$dirname"`7345 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` 7280 7346 if test "X$func_dirname_result" = "X${1}"; then 7281 7347 func_dirname_result="${3}" … … 7288 7354 func_basename () 7289 7355 { 7290 func_basename_result=`$ECHO " X${1}" | $Xsed -e"$basename"`7356 func_basename_result=`$ECHO "${1}" | $SED "$basename"` 7291 7357 } 7292 7358 … … 7304 7370 { 7305 7371 case ${2} in 7306 .*) func_stripname_result=`$ECHO "X${3}" \ 7307 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; 7308 *) func_stripname_result=`$ECHO "X${3}" \ 7309 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; 7372 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 7373 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 7310 7374 esac 7311 7375 } … … 7318 7382 func_opt_split () 7319 7383 { 7320 func_opt_split_opt=`$ECHO " X${1}" | $Xsed -e"$my_sed_long_opt"`7321 func_opt_split_arg=`$ECHO " X${1}" | $Xsed -e"$my_sed_long_arg"`7384 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` 7385 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` 7322 7386 } 7323 7387 … … 7325 7389 func_lo2o () 7326 7390 { 7327 func_lo2o_result=`$ECHO " X${1}" | $Xsed -e"$lo2o"`7391 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` 7328 7392 } 7329 7393 … … 7331 7395 func_xform () 7332 7396 { 7333 func_xform_result=`$ECHO " X${1}" | $Xsed -e's/\.[[^.]]*$/.lo/'`7397 func_xform_result=`$ECHO "${1}" | $SED 's/\.[[^.]]*$/.lo/'` 7334 7398 } 7335 7399 -
m4/ltoptions.m4
r17eb1a1 r180e49f 1 1 # Helper functions for option handling. -*- Autoconf -*- 2 2 # 3 # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc. 3 # Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation, 4 # Inc. 4 5 # Written by Gary V. Vaughan, 2004 5 6 # … … 8 9 # modifications, as long as this notice is preserved. 9 10 10 # serial 6ltoptions.m411 # serial 7 ltoptions.m4 11 12 12 13 # This is to help aclocal find these macros, as it can't see m4_define. … … 126 127 127 128 case $host in 128 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *- cegcc*)129 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 129 130 AC_CHECK_TOOL(AS, as, false) 130 131 AC_CHECK_TOOL(DLLTOOL, dlltool, false) … … 134 135 135 136 test -z "$AS" && AS=as 136 _LT_DECL([], [AS], [ 0], [Assembler program])dnl137 _LT_DECL([], [AS], [1], [Assembler program])dnl 137 138 138 139 test -z "$DLLTOOL" && DLLTOOL=dlltool 139 _LT_DECL([], [DLLTOOL], [ 0], [DLL creation program])dnl140 _LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl 140 141 141 142 test -z "$OBJDUMP" && OBJDUMP=objdump 142 _LT_DECL([], [OBJDUMP], [ 0], [Object dumper program])dnl143 _LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl 143 144 ])# win32-dll 144 145 -
m4/ltversion.m4
r17eb1a1 r180e49f 10 10 # Generated from ltversion.in. 11 11 12 # serial 3 017ltversion.m412 # serial 3175 ltversion.m4 13 13 # This file is part of GNU Libtool 14 14 15 m4_define([LT_PACKAGE_VERSION], [2.2. 6b])16 m4_define([LT_PACKAGE_REVISION], [1.3 017])15 m4_define([LT_PACKAGE_VERSION], [2.2.10]) 16 m4_define([LT_PACKAGE_REVISION], [1.3175]) 17 17 18 18 AC_DEFUN([LTVERSION_VERSION], 19 [macro_version='2.2. 6b'20 macro_revision='1.3 017'19 [macro_version='2.2.10' 20 macro_revision='1.3175' 21 21 _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?]) 22 22 _LT_DECL(, macro_revision, 0) -
m4/lt~obsolete.m4
r17eb1a1 r180e49f 1 1 # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*- 2 2 # 3 # Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.3 # Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc. 4 4 # Written by Scott James Remnant, 2004. 5 5 # … … 8 8 # modifications, as long as this notice is preserved. 9 9 10 # serial 4lt~obsolete.m410 # serial 5 lt~obsolete.m4 11 11 12 12 # These exist entirely to fool aclocal when bootstrapping libtool. … … 78 78 m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])]) 79 79 m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])]) 80 m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])])81 80 m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])]) 82 81 m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])]) … … 91 90 m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])]) 92 91 m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])]) 92 m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])]) 93 m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])]) 94 m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])]) 95 m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])]) 96 m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])]) 97 m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])]) 98 m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])])
Note: See TracChangeset
for help on using the changeset viewer.