Changeset 618 for trunk/src/binutils/ltconfig
- Timestamp:
- Aug 16, 2003, 11:33:53 PM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/binutils/ltconfig
-
Property cvs2svn:cvs-rev
changed from
1.4
to1.5
r617 r618 2 2 3 3 # ltconfig - Create a system-specific libtool. 4 # Copyright (C) 1996-2000 Free Software Foundation, Inc. 4 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 5 # Free Software Foundation, Inc. 5 6 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 6 7 # … … 181 182 PROGRAM=ltconfig 182 183 PACKAGE=libtool 183 VERSION=1.4a 184 TIMESTAMP=" (1.641.2. 122 2000/09/30 05:27:52)"184 VERSION=1.4a-GCC3.0 185 TIMESTAMP=" (1.641.2.256 2001/05/28 20:09:07 with GCC-local changes)" 185 186 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 186 187 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' … … 217 218 libext=a 218 219 cache_file= 220 max_cmd_len= 219 221 220 222 ## Dependencies to place before and after the object being linked: … … 295 297 for option 296 298 do 297 case "$option"in299 case $option in 298 300 -*=*) optarg=`echo "$option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; 299 301 *) optarg= ;; … … 307 309 fi 308 310 309 case "$option"in311 case $option in 310 312 --help) cat <<EOM 311 313 Usage: $progname [OPTION]... LTMAIN [HOST] … … 423 425 if test -n "$tagname"; then 424 426 # Check whether tagname contains only valid characters 425 case "$tagname" in 426 *[!-_A-Za-z0-9,/]*) 427 case `$echo "X$tagname" | $Xsed -e 's/[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]//g'` in 428 "") ;; 429 *) 427 430 echo "$progname: invalid tag name: $tagname" 1>&2 428 431 exit 1 … … 453 456 for arg 454 457 do 455 case "$arg"in458 case $arg in 456 459 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) 457 460 ltconfig_args="$ltconfig_args '$arg'" ;; … … 536 539 537 540 host_alias=$host 538 case "$host_alias"in541 case $host_alias in 539 542 "") 540 543 # Force config.guess to use the C compiler. … … 564 567 565 568 build_alias=$build 566 case "$build_alias"in569 case $build_alias in 567 570 NONE) 568 571 case $nonopt in … … 599 602 600 603 # Transform linux* to *-*-linux-gnu*, to support old configure scripts. 601 case "$host_os"in604 case $host_os in 602 605 linux-gnu*) ;; 603 606 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'` 604 607 esac 605 608 606 case "$host_os"in609 case $host_os in 607 610 aix3*) 608 611 # AIX sometimes has problems with the GCC collect2 program. For some … … 673 676 # the associated values are set (in the cache) correctly too. 674 677 echo $ac_n "checking for $compiler option to produce PIC... $ac_c" 1>&6 675 echo "$progname:67 5:checking for $compiler option to produce PIC" 1>&5678 echo "$progname:678:checking for $compiler option to produce PIC" 1>&5 676 679 677 680 if test -z "$ac_cv_prog_cc_pic"; then … … 682 685 # Check to make sure the pic_flag actually works. 683 686 echo $ac_n "checking if $compiler PIC flag $ac_cv_prog_cc_pic works... $ac_c" 1>&6 684 echo "$progname:68 4:checking that $compiler PIC flag $ac_cv_prog_cc_pic works." 1>&5687 echo "$progname:687:checking that $compiler PIC flag $ac_cv_prog_cc_pic works." 1>&5 685 688 if test "X${ac_cv_prog_cc_pic_works+set}" = Xset && \ 686 689 test "X${ac_cv_prog_cc_pic_works}" != X; then … … 692 695 save_CFLAGS="$CFLAGS" 693 696 CFLAGS="$CFLAGS $ac_cv_prog_cc_pic -DPIC" 694 if { (eval echo $progname:69 4: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>conftest.err; } && test -s conftest.$objext; then697 if { (eval echo $progname:697: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>conftest.err; } && test -s conftest.$objext; then 695 698 # Append any warnings to the config.log. 696 699 cat conftest.err 1>&5 697 700 698 case "$host_os"in701 case $host_os in 699 702 hpux9* | hpux10* | hpux11*) 700 703 # On HP-UX, both CC and GCC only warn that PIC is supported... then … … 744 747 745 748 echo $ac_n "checking if $compiler static flag $ac_cv_prog_cc_static works... $ac_c" 1>&6 746 echo "$progname:74 6: checking if $compiler static flag $ac_cv_prog_cc_static works" >&5749 echo "$progname:749: checking if $compiler static flag $ac_cv_prog_cc_static works" >&5 747 750 if test "X${ac_cv_prog_cc_static_works+set}" = Xset && \ 748 751 test "X${ac_cv_prog_cc_static_works}" != X; then … … 753 756 save_LDFLAGS="$LDFLAGS" 754 757 LDFLAGS="$LDFLAGS $ac_cv_prog_cc_static" 755 if { (eval echo $progname:75 5: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then758 if { (eval echo $progname:758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 756 759 ac_cv_prog_cc_static_works=yes 757 760 else … … 774 777 can_build_shared="$ac_cv_prog_cc_can_build_shared" 775 778 779 # find the maximum length of command line arguments 780 echo "$progname:780: finding the maximum length of command line arguments" 1>&5 781 echo $ac_n "finding the maximum length of command line arguments... $ac_c" 1>&6 782 if test "${lt_cv_sys_max_cmd_len+set}" = set; then 783 echo $ac_n "(cached) $ac_c" 1>&6 784 else 785 i=0 786 testring="ABCD" 787 # If test is not a shell built-in, we'll probably end up computing a 788 # maximum length that is only half of the actual maximum length, but 789 # we can't tell. 790 while test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \ 791 = "XX$testring" && 792 new_result=`expr "X$testring" : ".*" 2>&1` && 793 lt_cv_sys_max_cmd_len=$new_result && 794 test $i != 17 # 1/2 MB should be enough 795 do 796 i=`expr $i + 1` 797 testring=$testring$testring 798 done 799 testring= 800 # add a significant safety factor because C++ compilers can tack on massive amounts 801 # of additional arguments before passing them to the linker. 1/4 should be good. 802 len=`expr $lt_cv_sys_max_cmd_len \/ 4` 803 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len - $len` 804 fi 805 echo "$progname:@lineno@: result: $lt_cv_sys_max_cmd_len" 1>&5 806 echo "${ac_t}$lt_cv_sys_max_cmd_len" 1>&6 807 808 if test -n $lt_cv_sys_max_cmd_len ; then 809 max_cmd_len=$lt_cv_sys_max_cmd_len 810 else 811 max_cmd_len=none 812 fi 813 776 814 # Check to see if options -o and -c are simultaneously supported by compiler 777 815 echo $ac_n "checking if $compiler supports -c -o file.$objext... $ac_c" 1>&6 778 $rm -r conftest 2>/dev/null 779 mkdir conftest 780 cd conftest 781 $rm conftest* 782 echo $lt_simple_compile_test_code > conftest.$ac_ext 783 mkdir out 784 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers 785 # that will create temporary files in the current directory regardless of 786 # the output directory. Thus, making CWD read-only will cause this test 787 # to fail, enabling locking or at least warning the user not to do parallel 788 # builds. 789 chmod -w . 790 save_CFLAGS="$CFLAGS" 791 CFLAGS="$CFLAGS -o out/conftest2.$objext" 792 echo "$progname:792: checking if $compiler supports -c -o file.$objext" >&5 793 if { (eval echo $progname:793: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$objext; then 794 795 # The compiler can only warn and ignore the option if not recognized 796 # So say no if there are warnings 797 if test -s out/conftest.err; then 798 echo "$ac_t"no 1>&6 799 compiler_c_o=no 800 else 801 echo "$ac_t"yes 1>&6 802 compiler_c_o=yes 803 fi 804 else 805 # Append any errors to the config.log. 806 cat out/conftest.err 1>&5 807 compiler_c_o=no 808 echo "$ac_t"no 1>&6 809 fi 810 CFLAGS="$save_CFLAGS" 811 chmod u+w . 812 $rm conftest* out/* 813 rmdir out 814 cd .. 815 rmdir conftest 816 $rm -r conftest 2>/dev/null 816 if test "${lt_cv_compiler_c_o+set}" = set; then 817 echo $ac_n "(cached) $ac_c" 1>&6 818 else 819 $rm -r conftest 2>/dev/null 820 mkdir conftest 821 cd conftest 822 $rm conftest* 823 echo $lt_simple_compile_test_code > conftest.$ac_ext 824 mkdir out 825 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers 826 # that will create temporary files in the current directory regardless of 827 # the output directory. Thus, making CWD read-only will cause this test 828 # to fail, enabling locking or at least warning the user not to do parallel 829 # builds. 830 chmod -w . 831 save_CFLAGS="$CFLAGS" 832 CFLAGS="$CFLAGS -o out/conftest2.$objext" 833 echo "$progname:833: checking if $compiler supports -c -o file.$objext" >&5 834 if { (eval echo $progname:834: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$objext; then 835 836 # The compiler can only warn and ignore the option if not recognized 837 # So say no if there are warnings 838 if test -s out/conftest.err; then 839 lt_cv_compiler_c_o=no 840 else 841 lt_cv_compiler_c_o=yes 842 fi 843 else 844 # Append any errors to the config.log. 845 cat out/conftest.err 1>&5 846 lt_cv_compiler_c_o=no 847 fi 848 CFLAGS="$save_CFLAGS" 849 chmod u+w . 850 $rm conftest* out/* 851 rmdir out 852 cd .. 853 rmdir conftest 854 $rm -r conftest 2>/dev/null 855 fi 856 compiler_c_o=$lt_cv_compiler_c_o 857 echo "${ac_t}$compiler_c_o" 1>&6 817 858 818 859 # Check to see if we can do hard links to lock some files if needed … … 844 885 save_CFLAGS="$CFLAGS" 845 886 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext" 846 echo "$progname:8 46: checking if $compiler supports -fno-rtti -fno-exceptions" >&5847 if { (eval echo $progname:8 47: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>conftest.err; } && test -s conftest.$objext; then887 echo "$progname:887: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 888 if { (eval echo $progname:888: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>conftest.err; } && test -s conftest.$objext; then 848 889 849 890 # The compiler can only warn and ignore the option if not recognized … … 914 955 fi 915 956 957 case $reload_flag in 958 "" | " "*) ;; 959 *) reload_flag=" $reload_flag" ;; 960 esac 916 961 reload_cmds='$LD$reload_flag -o $output$reload_objs' 917 962 test -z "$deplibs_check_method" && deplibs_check_method=unknown … … 933 978 934 979 echo $ac_n "checking dynamic linker characteristics... $ac_c" 1>&6 935 case "$host_os"in980 case $host_os in 936 981 aix3*) 937 982 version_type=linux … … 939 984 shlibpath_var=LIBPATH 940 985 941 # AIX has no versioning support, so we append a major version to the name.986 # AIX 3 has no versioning support, so we append a major version to the name. 942 987 soname_spec='${libname}${release}.so$major' 943 988 ;; 944 989 945 aix4* )990 aix4* | aix5*) 946 991 version_type=linux 947 # AIX has no versioning support, so currently we can not hardcode correct 948 # soname into executable. Probably we can add versioning support to 949 # collect2, so additional links can be useful in future. 950 # We preserve .a as extension for shared libraries though AIX4.2 951 # and later linker supports .so 952 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.a' 953 shlibpath_var=LIBPATH 992 if test "$host_cpu" = ia64; then 993 # AIX 5 supports IA64 994 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 995 shlibpath_var=LD_LIBRARY_PATH 996 else 997 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 998 # soname into executable. Probably we can add versioning support to 999 # collect2, so additional links can be useful in future. 1000 # We preserve .a as extension for shared libraries though AIX4.2 1001 # and later linker supports .so 1002 if test "$aix_use_runtimelinking" = yes; then 1003 # If using run time linking (on AIX 4.2 or later) use lib<name>.so instead of 1004 # lib<name>.a to let people know that these are not typical AIX shared libraries. 1005 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 1006 else 1007 # We preserve .a as extension for shared libraries though AIX4.2 1008 # and later when we are not doing run time linking. 1009 library_names_spec='${libname}${release}.a $libname.a' 1010 soname_spec='${libname}${release}.so$major' 1011 fi 1012 # If we're using GNU nm, then we don't want the "-C" option. 1013 # -C means demangle to AIX nm, but means don't demangle with GNU nm 1014 if $NM -V 2>&1 | egrep '(GNU)' > /dev/null; then 1015 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 1016 else 1017 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 1018 fi 1019 shlibpath_var=LIBPATH 1020 deplibs_check_method=pass_all 1021 case $host_os in 1022 aix4 | aix4.[01] | aix4.[01].*) 1023 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 1024 echo ' yes ' 1025 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 1026 : 1027 else 1028 # With GCC up to 2.95.x, collect2 would create an import file 1029 # for dependence libraries. The import file would start with 1030 # the line `#! .'. This would cause the generated library to 1031 # depend on `.', always an invalid library. This was fixed in 1032 # development snapshots of GCC prior to 3.0. 1033 can_build_shared=no 1034 fi 1035 ;; 1036 esac 1037 fi 954 1038 ;; 955 1039 … … 988 1072 need_version=no 989 1073 need_lib_prefix=no 990 if test "$with_gcc" = yes; then 1074 case $with_gcc,$host_os in 1075 yes,cygwin*) 1076 library_names_spec='$libname.dll.a' 1077 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | [sed -e 's/[.]/-/g']`${versuffix}.dll' 1078 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i; echo \$dlname'\''`~ 1079 dldir=$destdir/`dirname \$dlpath`~ 1080 test -d \$dldir || mkdir -p \$dldir~ 1081 $install_prog .libs/$dlname \$dldir/$dlname' 1082 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~ 1083 dlpath=$dir/\$dldll; $rm \$dlpath' 1084 ;; 1085 yes,mingw*) 991 1086 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' 992 else 1087 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"` 1088 ;; 1089 yes,pw32*) 1090 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' 1091 ;; 1092 *) 993 1093 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib' 994 fi 1094 ;; 1095 esac 995 1096 dynamic_linker='Win32 ld.exe' 996 1097 # FIXME: first we should search . and the directory the executable is in … … 1000 1101 ;; 1001 1102 1103 darwin* | rhapsody*) 1104 dynamic_linker="$host_os dyld" 1105 version_type=darwin 1106 need_lib_prefix=no 1107 need_version=no 1108 library_names_spec='${libname}${release}${versuffix}.`test .$module = .yes && echo so || echo dylib` ${libname}${release}${major}.$`test .$module = .yes && echo so || echo dylib` ${libname}.`test .$module = .yes && echo so || echo dylib`' 1109 soname_spec='${libname}${release}${major}.`test .$module = .yes && echo so || echo dylib`' 1110 shlibpath_overrides_runpath=yes 1111 shlibpath_var=DYLD_LIBRARY_PATH 1112 ;; 1113 1002 1114 freebsd1*) 1003 1115 dynamic_linker=no … … 1007 1119 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 1008 1120 version_type=freebsd-$objformat 1009 case "$version_type"in1121 case $version_type in 1010 1122 freebsd-elf*) 1011 1123 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' 1012 1124 need_version=no 1125 need_lc=no 1013 1126 need_lib_prefix=no 1014 1127 ;; … … 1019 1132 esac 1020 1133 shlibpath_var=LD_LIBRARY_PATH 1021 case "$host_os"in1134 case $host_os in 1022 1135 freebsd2*) 1023 1136 shlibpath_overrides_runpath=yes … … 1043 1156 # Give a soname corresponding to the major version so that dld.sl refuses to 1044 1157 # link against other versions. 1045 dynamic_linker="$host_os dld.sl"1046 1158 version_type=sunos 1047 1159 need_lib_prefix=no 1048 1160 need_version=no 1049 shlibpath_var=SHLIB_PATH 1050 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 1051 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl' 1052 soname_spec='${libname}${release}.sl$major' 1161 case "$host_cpu" in 1162 ia64*) 1163 dynamic_linker="$host_os dld.so" 1164 shlibpath_var=LD_LIBRARY_PATH 1165 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 1166 soname_spec='${libname}${release}.so$major' 1167 shlibpath_var=LD_LIBRARY_PATH 1168 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 1169 if test "X$HPUX_IA64_MODE" = X32; then 1170 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32/usr/local/lib" 1171 else 1172 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 1173 fi 1174 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 1175 ;; 1176 *) 1177 dynamic_linker="$host_os dld.sl" 1178 shlibpath_var=SHLIB_PATH 1179 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 1180 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl' 1181 soname_spec='${libname}${release}.sl$major' 1182 ;; 1183 esac 1053 1184 # HP-UX runs *really* slowly unless shared libraries are mode 555. 1054 1185 postinstall_cmds='chmod 555 $lib' … … 1056 1187 1057 1188 irix5* | irix6*) 1189 if test "$with_gnu_ld" = yes; then 1190 version_type=linux 1191 else 1192 version_type=irix 1193 fi 1058 1194 version_type=irix 1059 1195 need_lib_prefix=no … … 1061 1197 soname_spec='${libname}${release}.so$major' 1062 1198 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so' 1063 case "$host_os"in1199 case $host_os in 1064 1200 irix5*) 1065 1201 libsuff= shlibsuff= 1066 1202 ;; 1067 1203 *) 1068 case "$LD" in # libtool.m4 will add one of these switches to LD 1069 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;; 1070 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; 1071 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;; 1204 case $LD in # libtool.m4 will add one of these switches to LD 1205 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 1206 libsuff= shlibsuff= libmagic=32-bit;; 1207 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 1208 libsuff=32 shlibsuff=N32 libmagic=N32;; 1209 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 1210 libsuff=64 shlibsuff=64 libmagic=64-bit;; 1072 1211 *) libsuff= shlibsuff= libmagic=never-match;; 1073 1212 esac … … 1110 1249 1111 1250 netbsd*) 1251 need_lib_prefix=no 1252 need_version=no 1112 1253 version_type=sunos 1113 1254 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then … … 1125 1266 ;; 1126 1267 1268 newsos6) 1269 version_type=linux 1270 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 1271 shlibpath_var=LD_LIBRARY_PATH 1272 shlibpath_overrides_runpath=yes 1273 ;; 1274 1127 1275 openbsd*) 1128 1276 version_type=sunos … … 1140 1288 need_version=no 1141 1289 need_lib_prefix=no 1142 # embedd hexversionnumbers into the name as far as there is space for such.1290 # embedd versionnumbers into the name as far as there is space for such. 1143 1291 # old: libname_spec='$name' 1144 1292 # old: library_names_spec='$libname.dll $libname.a' … … 1211 1359 soname_spec='${libname}${release}.so$major' 1212 1360 shlibpath_var=LD_LIBRARY_PATH 1213 case "$host_vendor"in1361 case $host_vendor in 1214 1362 motorola) 1215 1363 need_lib_prefix=no … … 1272 1420 1273 1421 # Define system-specific variables. 1274 case "$host_os"in1422 case $host_os in 1275 1423 aix*) 1276 1424 symcode='[BCDT]' … … 1280 1428 ;; 1281 1429 hpux*) # Its linker distinguishes data from code symbols 1282 global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^ ..* \(.*\)$/extern char \1;/p'"1430 global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 1283 1431 ;; 1284 1432 irix*) … … 1293 1441 esac 1294 1442 1295 # Handle CRLF in mingw too chain1443 # Handle CRLF in mingw tool chain 1296 1444 opt_cr= 1297 case "$host_os"in1445 case $host_os in 1298 1446 mingw*) 1299 1447 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp … … 1310 1458 1311 1459 # Write the raw and C identifiers. 1312 global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"1460 global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" 1313 1461 1314 1462 # Check to see that the pipe works correctly. … … 1324 1472 } 1325 1473 #endif 1326 main(){nm_test_var='a';nm_test_func();return(0);}1474 int main(){nm_test_var='a';nm_test_func();return(0);} 1327 1475 EOF 1328 1476 1329 echo "$progname:1 309: checking if global_symbol_pipe works" >&51330 if { (eval echo $progname:1 310: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; } && test -s conftest.$objext; then1477 echo "$progname:1431: checking if global_symbol_pipe works" >&5 1478 if { (eval echo $progname:1432: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; } && test -s conftest.$objext; then 1331 1479 # Now try to grab the symbols. 1332 1480 nlist=conftest.nm 1333 if { echo "$progname:1 313: eval \"$NM conftest.$objext | $global_symbol_pipe > $nlist\"" >&5; eval "$NM conftest.$objext | $global_symbol_pipe > $nlist 2>&5"; } && test -s "$nlist"; then1481 if { echo "$progname:1435: eval \"$NM conftest.$objext | $global_symbol_pipe > $nlist\"" >&5; eval "$NM conftest.$objext | $global_symbol_pipe > $nlist 2>&5"; } && test -s "$nlist"; then 1334 1482 1335 1483 # Try sorting and uniquifying the output. … … 1368 1516 { 1369 1517 EOF 1370 sed 's/^. \(.*\) \(.*\)$/ {"\2", (lt_ptr_t) \&\2},/'< "$nlist" >> conftest.$ac_ext1518 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" >> conftest.$ac_ext 1371 1519 cat <<\EOF >> conftest.$ac_ext 1372 1520 {0, (lt_ptr_t) 0} … … 1383 1531 LIBS="conftstm.$objext" 1384 1532 CFLAGS="$CFLAGS$no_builtin_flag" 1385 if { (eval echo $progname:1 365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then1533 if { (eval echo $progname:1487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 1386 1534 pipe_works=yes 1387 1535 else … … 1427 1575 # Only try to build win32 dlls if AC_LIBTOOL_WIN32_DLL was used in 1428 1576 # configure.in, otherwise build static only libraries. 1429 case "$host_os"in1577 case $host_os in 1430 1578 cygwin* | mingw* | pw32*) 1431 1579 if test x$can_build_shared = xyes; then … … 1441 1589 # On AIX, shared libraries and static libraries use the same namespace, and 1442 1590 # are all built from PIC. 1443 case "$host_os"in1591 case $host_os in 1444 1592 aix3*) 1445 1593 test "$enable_shared" = yes && enable_static=no … … 1487 1635 lt_cv_dlopen=no lt_cv_dlopen_libs= 1488 1636 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 1489 echo "$progname:1 469: checking for dlopen in -ldl" >&51637 echo "$progname:1591: checking for dlopen in -ldl" >&5 1490 1638 if test "X${ac_cv_lib_dl_dlopen+set}" = Xset; then 1491 1639 echo $ac_n "(cached) $ac_c" 1>&6 … … 1494 1642 LIBS="-ldl $LIBS" 1495 1643 cat > conftest.$ac_ext <<EOF 1496 #line 1 476"ltconfig"1644 #line 1598 "ltconfig" 1497 1645 /* Override any gcc2 internal prototype to avoid an error. */ 1498 1646 /* We use char because int might match the return type of a gcc2 … … 1507 1655 ; return 0; } 1508 1656 EOF 1509 if { (eval echo $progname:1 489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then1657 if { (eval echo $progname:1611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1510 1658 rm -rf conftest* 1511 1659 ac_cv_lib_dl_dlopen=yes … … 1526 1674 echo "$ac_t""no" 1>&6 1527 1675 echo $ac_n "checking for dlopen""... $ac_c" 1>&6 1528 echo "$progname:1 508: checking for dlopen" >&51676 echo "$progname:1630: checking for dlopen" >&5 1529 1677 if test "X${ac_cv_func_dlopen+set}" = Xset; then 1530 1678 echo $ac_n "(cached) $ac_c" 1>&6 1531 1679 else 1532 1680 cat > conftest.$ac_ext <<EOF 1533 #line 1 513"ltconfig"1681 #line 1635 "ltconfig" 1534 1682 /* System header to define __stub macros and hopefully few prototypes, 1535 1683 which can conflict with char dlopen(); below. */ … … 1556 1704 ; return 0; } 1557 1705 EOF 1558 if { (eval echo $progname:1 538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then1706 if { (eval echo $progname:1660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1559 1707 rm -rf conftest* 1560 1708 ac_cv_func_dlopen=yes … … 1573 1721 echo "$ac_t""no" 1>&6 1574 1722 echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6 1575 echo "$progname:1 555: checking for dlopen in -lsvld" >&51723 echo "$progname:1677: checking for dlopen in -lsvld" >&5 1576 1724 if test "X${ac_cv_lib_svld_dlopen+set}" = Xset; then 1577 1725 echo $ac_n "(cached) $ac_c" 1>&6 … … 1580 1728 LIBS="-lsvld $LIBS" 1581 1729 cat > conftest.$ac_ext <<EOF 1582 #line 1 562"ltconfig"1730 #line 1684 "ltconfig" 1583 1731 /* Override any gcc2 internal prototype to avoid an error. */ 1584 1732 /* We use char because int might match the return type of a gcc2 … … 1593 1741 ; return 0; } 1594 1742 EOF 1595 if { (eval echo $progname:1 575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then1743 if { (eval echo $progname:1697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1596 1744 rm -rf conftest* 1597 1745 ac_cv_lib_svld_dlopen=yes … … 1612 1760 echo "$ac_t""no" 1>&6 1613 1761 echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6 1614 echo "$progname:1 594: checking for dld_link in -ldld" >&51762 echo "$progname:1716: checking for dld_link in -ldld" >&5 1615 1763 if test "X${ac_cv_lib_dld_dld_link+set}" = Xset; then 1616 1764 echo $ac_n "(cached) $ac_c" 1>&6 … … 1619 1767 LIBS="-ldld $LIBS" 1620 1768 cat > conftest.$ac_ext <<EOF 1621 #line 1 601"ltconfig"1769 #line 1723 "ltconfig" 1622 1770 /* Override any gcc2 internal prototype to avoid an error. */ 1623 1771 /* We use char because int might match the return type of a gcc2 … … 1632 1780 ; return 0; } 1633 1781 EOF 1634 if { (eval echo $progname:1 614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then1782 if { (eval echo $progname:1736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1635 1783 rm -rf conftest* 1636 1784 ac_cv_lib_dld_dld_link=yes … … 1651 1799 echo "$ac_t""no" 1>&6 1652 1800 echo $ac_n "checking for shl_load""... $ac_c" 1>&6 1653 echo "$progname:1 633: checking for shl_load" >&51801 echo "$progname:1755: checking for shl_load" >&5 1654 1802 if test "X${ac_cv_func_shl_load+set}" = Xset; then 1655 1803 echo $ac_n "(cached) $ac_c" 1>&6 1656 1804 else 1657 1805 cat > conftest.$ac_ext <<EOF 1658 #line 1 638"ltconfig"1806 #line 1760 "ltconfig" 1659 1807 /* System header to define __stub macros and hopefully few prototypes, 1660 1808 which can conflict with char shl_load(); below. */ … … 1681 1829 ; return 0; } 1682 1830 EOF 1683 if { (eval echo $progname:1 663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then1831 if { (eval echo $progname:1785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1684 1832 rm -rf conftest* 1685 1833 ac_cv_func_shl_load=yes … … 1699 1847 echo "$ac_t""no" 1>&6 1700 1848 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6 1701 echo "$progname:1 681: checking for shl_load in -ldld" >&51849 echo "$progname:1803: checking for shl_load in -ldld" >&5 1702 1850 if test "X${ac_cv_lib_dld_shl_load+set}" = Xset; then 1703 1851 echo $ac_n "(cached) $ac_c" 1>&6 … … 1706 1854 LIBS="-ldld $LIBS" 1707 1855 cat > conftest.$ac_ext <<EOF 1708 #line 1 688"ltconfig"1856 #line 1810 "ltconfig" 1709 1857 #include "confdefs.h" 1710 1858 /* Override any gcc2 internal prototype to avoid an error. */ … … 1720 1868 ; return 0; } 1721 1869 EOF 1722 if { (eval echo $progname:1 702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then1870 if { (eval echo $progname:1824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1723 1871 rm -rf conftest* 1724 1872 ac_cv_lib_dld_shl_load=yes … … 1762 1910 fi 1763 1911 1764 case "$lt_cv_dlopen"in1912 case $lt_cv_dlopen in 1765 1913 dlopen) 1766 1914 for ac_hdr in dlfcn.h; do 1767 1915 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1768 1916 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1769 echo "$progname:1 749: checking for $ac_hdr" >&51917 echo "$progname:1871: checking for $ac_hdr" >&5 1770 1918 if eval "test \"`echo 'X$''{'ac_cv_header_$ac_safe'+set}'`\" = Xset"; then 1771 1919 echo $ac_n "(cached) $ac_c" 1>&6 1772 1920 else 1773 1921 cat > conftest.$ac_ext <<EOF 1774 #line 1 754"ltconfig"1922 #line 1876 "ltconfig" 1775 1923 #include <$ac_hdr> 1776 1924 int fnord = 0; … … 1778 1926 EOF 1779 1927 ac_try="$ac_compile >/dev/null 2>conftest.out" 1780 { (eval echo $progname:1 760: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1928 { (eval echo $progname:1882: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1781 1929 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1782 1930 if test -z "$ac_err"; then … … 1806 1954 1807 1955 echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6 1808 echo "$progname:1 788: checking whether a program can dlopen itself" >&51956 echo "$progname:1910: checking whether a program can dlopen itself" >&5 1809 1957 if test "X${lt_cv_dlopen_self+set}" = Xset; then 1810 1958 echo $ac_n "(cached) $ac_c" 1>&6 … … 1814 1962 else 1815 1963 cat > conftest.$ac_ext <<EOF 1816 #line 1 796"ltconfig"1964 #line 1918 "ltconfig" 1817 1965 1818 1966 #if HAVE_DLFCN_H … … 1854 2002 #endif 1855 2003 1856 fnord() { int i=42;} 1857 main() { void *self, *ptr1, *ptr2; self=dlopen(0,LTDL_GLOBAL|LTDL_LAZY_OR_NOW); 2004 void fnord() { int i=42; } 2005 int main() { 2006 void *self, *ptr1, *ptr2; self=dlopen(0,LTDL_GLOBAL|LTDL_LAZY_OR_NOW); 1858 2007 if(self) { ptr1=dlsym(self,"fnord"); ptr2=dlsym(self,"_fnord"); 1859 2008 if(ptr1 || ptr2) { dlclose(self); exit(0); } } exit(1); } 1860 2009 1861 2010 EOF 1862 if { (eval echo $progname:1 842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null2011 if { (eval echo $progname:1965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null 1863 2012 then 1864 2013 lt_cv_dlopen_self=yes … … 1879 2028 LDFLAGS="$LDFLAGS $link_static_flag" 1880 2029 echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6 1881 echo "$progname:1 861: checking whether a statically linked program can dlopen itself" >&52030 echo "$progname:1984: checking whether a statically linked program can dlopen itself" >&5 1882 2031 if test "X${lt_cv_dlopen_self_static+set}" = Xset; then 1883 2032 echo $ac_n "(cached) $ac_c" 1>&6 … … 1887 2036 else 1888 2037 cat > conftest.$ac_ext <<EOF 1889 #line 1 869"ltconfig"2038 #line 1992 "ltconfig" 1890 2039 1891 2040 #if HAVE_DLFCN_H … … 1927 2076 #endif 1928 2077 1929 fnord() { int i=42;} 1930 main() { void *self, *ptr1, *ptr2; self=dlopen(0,LTDL_GLOBAL|LTDL_LAZY_OR_NOW); 2078 void fnord() { int i=42; } 2079 int main() { 2080 void *self, *ptr1, *ptr2; self=dlopen(0,LTDL_GLOBAL|LTDL_LAZY_OR_NOW); 1931 2081 if(self) { ptr1=dlsym(self,"fnord"); ptr2=dlsym(self,"_fnord"); 1932 2082 if(ptr1 || ptr2) { dlclose(self); exit(0); } } exit(1); } 1933 2083 1934 2084 EOF 1935 if { (eval echo $progname: 1915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null2085 if { (eval echo $progname:2039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null 1936 2086 then 1937 2087 lt_cv_dlopen_self_static=yes … … 1952 2102 esac 1953 2103 1954 case "$lt_cv_dlopen_self"in2104 case $lt_cv_dlopen_self in 1955 2105 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 1956 2106 *) enable_dlopen_self=unknown ;; 1957 2107 esac 1958 2108 1959 case "$lt_cv_dlopen_self_static"in2109 case $lt_cv_dlopen_self_static in 1960 2110 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 1961 2111 *) enable_dlopen_self_static=unknown ;; … … 1974 2124 1975 2125 # Only quote variables if we're using ltmain.sh. 1976 case "$ltmain"in2126 case $ltmain in 1977 2127 *.sh) 1978 2128 # Now quote all the things that may contain metacharacters. … … 1999 2149 compiler_c_o need_locks exclude_expsyms include_expsyms; do 2000 2150 2001 case "$var"in2151 case $var in 2002 2152 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \ 2003 2153 old_postinstall_cmds | old_postuninstall_cmds | \ … … 2015 2165 done 2016 2166 2017 case "$ltecho"in2167 case $ltecho in 2018 2168 *'\$0 --fallback-echo"') 2019 2169 ltecho=`$echo "X$ltecho" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` … … 2204 2354 pic_mode=$pic_mode 2205 2355 2356 # What is the maximum length of a command? 2357 max_cmd_len=$max_cmd_len 2358 2206 2359 # Does compiler simultaneously support -c and -o options? 2207 2360 compiler_c_o=$compiler_c_o … … 2392 2545 fi 2393 2546 2394 case "$ltmain"in2547 case $ltmain in 2395 2548 *.sh) 2396 2549 echo >> "$ofile" 2397 2550 if test -z "$tagname"; then 2398 case "$host_os"in2551 case $host_os in 2399 2552 aix3*) 2400 2553 cat <<\EOF >> "$ofile" … … 2410 2563 ;; 2411 2564 esac 2412 case "$host"in2565 case $host in 2413 2566 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*) 2414 2567 cat <<'EOF' >> "$ofile" … … 2526 2679 # 2527 2680 # dll = open(filename, O_RDONLY|O_BINARY); 2528 # if ( !dll)2681 # if (dll < 1) 2529 2682 # return 1; 2530 2683 # -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.