Changeset 3219
- Timestamp:
- Feb 14, 2005, 4:16:45 PM (21 years ago)
- Location:
- trunk/psLib
- Files:
-
- 4 edited
-
config.guess (modified) (27 diffs)
-
config.sub (modified) (35 diffs)
-
configure.ac (modified) (5 diffs)
-
ltmain.sh (modified) (188 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/config.guess
r3199 r3219 2 2 # Attempt to guess a canonical system name. 3 3 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 4 # 2000, 2001, 2002, 2003 Free Software Foundation, Inc.5 6 timestamp='200 3-02-22'4 # 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc. 5 6 timestamp='2004-08-11' 7 7 8 8 # This file is free software; you can redistribute it and/or modify it … … 54 54 55 55 Originally written by Per Bothner. 56 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 56 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004 57 57 Free Software Foundation, Inc. 58 58 … … 107 107 { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || 108 108 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || 109 { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || 109 110 { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; 110 111 dummy=$tmp/dummy ; … … 135 136 UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown 136 137 UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown 138 139 case "${UNAME_MACHINE}" in 140 i?86) 141 test -z "$VENDOR" && VENDOR=pc 142 ;; 143 *) 144 test -z "$VENDOR" && VENDOR=unknown 145 ;; 146 esac 147 test -f /etc/SuSE-release -o -f /.buildenv && VENDOR=suse 137 148 138 149 # Note: order is significant - the case branches are not exclusive. … … 197 208 echo "${machine}-${os}${release}" 198 209 exit 0 ;; 210 amd64:OpenBSD:*:*) 211 echo x86_64-unknown-openbsd${UNAME_RELEASE} 212 exit 0 ;; 199 213 amiga:OpenBSD:*:*) 200 214 echo m68k-unknown-openbsd${UNAME_RELEASE} … … 203 217 echo mipsel-unknown-openbsd${UNAME_RELEASE} 204 218 exit 0 ;; 219 cats:OpenBSD:*:*) 220 echo arm-unknown-openbsd${UNAME_RELEASE} 221 exit 0 ;; 205 222 hp300:OpenBSD:*:*) 206 223 echo m68k-unknown-openbsd${UNAME_RELEASE} 207 224 exit 0 ;; 225 luna88k:OpenBSD:*:*) 226 echo m88k-unknown-openbsd${UNAME_RELEASE} 227 exit 0 ;; 208 228 mac68k:OpenBSD:*:*) 209 229 echo m68k-unknown-openbsd${UNAME_RELEASE} … … 236 256 echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE} 237 257 exit 0 ;; 258 *:ekkoBSD:*:*) 259 echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} 260 exit 0 ;; 261 macppc:MirBSD:*:*) 262 echo powerppc-unknown-mirbsd${UNAME_RELEASE} 263 exit 0 ;; 264 *:MirBSD:*:*) 265 echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} 266 exit 0 ;; 238 267 alpha:OSF1:*:*) 239 if test $UNAME_RELEASE = "V4.0"; then 268 case $UNAME_RELEASE in 269 *4.0) 240 270 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` 241 fi 271 ;; 272 *5.*) 273 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` 274 ;; 275 esac 242 276 # According to Compaq, /usr/sbin/psrinfo has been available on 243 277 # OSF/1 and Tru64 systems produced since 1995. I hope that … … 277 311 UNAME_MACHINE="alphaev79" ;; 278 312 esac 313 # A Pn.n version is a patched version. 279 314 # A Vn.n version is a released version. 280 315 # A Tn.n version is a released field test version. 281 316 # A Xn.n version is an unreleased experimental baselevel. 282 317 # 1.2 uses "1.2" for uname -r. 283 echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[ VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`318 echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 284 319 exit 0 ;; 285 320 Alpha\ *:Windows_NT*:*) … … 303 338 *:OS/390:*:*) 304 339 echo i370-ibm-openedition 340 exit 0 ;; 341 *:OS400:*:*) 342 echo powerpc-ibm-os400 305 343 exit 0 ;; 306 344 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) … … 321 359 echo pyramid-pyramid-svr4 322 360 exit 0 ;; 361 DRS?6000:unix:4.0:6*) 362 echo sparc-icl-nx6 363 exit 0 ;; 323 364 DRS?6000:UNIX_SV:4.2*:7*) 324 365 case `/usr/bin/uname -p` in … … 393 434 echo m68k-unknown-mint${UNAME_RELEASE} 394 435 exit 0 ;; 436 m68k:machten:*:*) 437 echo m68k-apple-machten${UNAME_RELEASE} 438 exit 0 ;; 395 439 powerpc:machten:*:*) 396 440 echo powerpc-apple-machten${UNAME_RELEASE} … … 728 772 exit 0 ;; 729 773 *:UNICOS/mp:*:*) 730 echo nv1-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'774 echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 731 775 exit 0 ;; 732 776 F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) … … 736 780 echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" 737 781 exit 0 ;; 782 5000:UNIX_System_V:4.*:*) 783 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` 784 FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` 785 echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" 786 exit 0 ;; 738 787 i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) 739 788 echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} … … 746 795 exit 0 ;; 747 796 *:FreeBSD:*:*) 748 # Determine whether the default compiler uses glibc. 749 eval $set_cc_for_build 750 sed 's/^ //' << EOF >$dummy.c 751 #include <features.h> 752 #if __GLIBC__ >= 2 753 LIBC=gnu 754 #else 755 LIBC= 756 #endif 757 EOF 758 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=` 759 echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC} 797 echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` 760 798 exit 0 ;; 761 799 i*:CYGWIN*:*) … … 768 806 echo ${UNAME_MACHINE}-pc-pw32 769 807 exit 0 ;; 770 x86:Interix*: 3*)771 echo i586-pc-interix 3808 x86:Interix*:[34]*) 809 echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//' 772 810 exit 0 ;; 773 811 [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) … … 790 828 exit 0 ;; 791 829 *:GNU:*:*) 830 # the GNU system 792 831 echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` 832 exit 0 ;; 833 *:GNU/*:*:*) 834 # other systems with GNU libc and userland 835 echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu 793 836 exit 0 ;; 794 837 i*86:Minix:*:*) … … 796 839 exit 0 ;; 797 840 arm*:Linux:*:*) 798 echo ${UNAME_MACHINE}-unknown-linux-gnu 841 echo ${UNAME_MACHINE}-${VENDOR}-linux 842 exit 0 ;; 843 cris:Linux:*:*) 844 echo cris-axis-linux 799 845 exit 0 ;; 800 846 ia64:Linux:*:*) 801 echo ${UNAME_MACHINE}-unknown-linux-gnu 847 echo ${UNAME_MACHINE}-${VENDOR}-linux 848 exit 0 ;; 849 m32r*:Linux:*:*) 850 echo ${UNAME_MACHINE}-${VENDOR}-linux 802 851 exit 0 ;; 803 852 m68*:Linux:*:*) 804 echo ${UNAME_MACHINE}- unknown-linux-gnu853 echo ${UNAME_MACHINE}-${VENDOR}-linux 805 854 exit 0 ;; 806 855 mips:Linux:*:*) … … 821 870 EOF 822 871 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=` 823 test x"${CPU}" != x && echo "${CPU}- unknown-linux-gnu" && exit 0872 test x"${CPU}" != x && echo "${CPU}-${VENDOR}-linux" && exit 0 824 873 ;; 825 874 mips64:Linux:*:*) … … 840 889 EOF 841 890 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=` 842 test x"${CPU}" != x && echo "${CPU}- unknown-linux-gnu" && exit 0891 test x"${CPU}" != x && echo "${CPU}-${VENDOR}-linux" && exit 0 843 892 ;; 844 893 ppc:Linux:*:*) 845 echo powerpc- unknown-linux-gnu894 echo powerpc-${VENDOR}-linux 846 895 exit 0 ;; 847 896 ppc64:Linux:*:*) 848 echo powerpc64- unknown-linux-gnu897 echo powerpc64-${VENDOR}-linux 849 898 exit 0 ;; 850 899 alpha:Linux:*:*) … … 859 908 esac 860 909 objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null 861 if test "$?" = 0 ; then LIBC=" libc1" ; else LIBC="" ; fi862 echo ${UNAME_MACHINE}- unknown-linux-gnu${LIBC}910 if test "$?" = 0 ; then LIBC="-libc1" ; else LIBC="" ; fi 911 echo ${UNAME_MACHINE}-${VENDOR}-linux${LIBC} 863 912 exit 0 ;; 864 913 parisc:Linux:*:* | hppa:Linux:*:*) 865 914 # Look for CPU level 866 915 case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in 867 PA7*) echo hppa1.1- unknown-linux-gnu;;868 PA8*) echo hppa2.0- unknown-linux-gnu;;869 *) echo hppa- unknown-linux-gnu;;916 PA7*) echo hppa1.1-${VENDOR}-linux ;; 917 PA8*) echo hppa2.0-${VENDOR}-linux ;; 918 *) echo hppa-${VENDOR}-linux ;; 870 919 esac 871 920 exit 0 ;; 872 921 parisc64:Linux:*:* | hppa64:Linux:*:*) 873 echo hppa64- unknown-linux-gnu922 echo hppa64-${VENDOR}-linux 874 923 exit 0 ;; 875 924 s390:Linux:*:* | s390x:Linux:*:*) 876 925 echo ${UNAME_MACHINE}-ibm-linux 877 926 exit 0 ;; 927 sh64*:Linux:*:*) 928 echo ${UNAME_MACHINE}-${VENDOR}-linux 929 exit 0 ;; 878 930 sh*:Linux:*:*) 879 echo ${UNAME_MACHINE}- unknown-linux-gnu931 echo ${UNAME_MACHINE}-${VENDOR}-linux 880 932 exit 0 ;; 881 933 sparc:Linux:*:* | sparc64:Linux:*:*) 882 echo ${UNAME_MACHINE}- unknown-linux-gnu934 echo ${UNAME_MACHINE}-${VENDOR}-linux 883 935 exit 0 ;; 884 936 x86_64:Linux:*:*) 885 echo x86_64- unknown-linux-gnu937 echo x86_64-${VENDOR}-linux 886 938 exit 0 ;; 887 939 i*86:Linux:*:*) … … 898 950 case "$ld_supported_targets" in 899 951 elf32-i386) 900 TENTATIVE="${UNAME_MACHINE}- pc-linux-gnu"952 TENTATIVE="${UNAME_MACHINE}-${VENDOR}-linux" 901 953 ;; 902 954 a.out-i386-linux) 903 echo "${UNAME_MACHINE}- pc-linux-gnuaout"955 echo "${UNAME_MACHINE}-${VENDOR}-linuxaout" 904 956 exit 0 ;; 905 957 coff-i386) 906 echo "${UNAME_MACHINE}- pc-linux-gnucoff"958 echo "${UNAME_MACHINE}-${VENDOR}-linuxcoff" 907 959 exit 0 ;; 908 960 "") 909 # Either a pre-BFD a.out linker (linux -gnuoldld) or961 # Either a pre-BFD a.out linker (linuxoldld) or 910 962 # one that does not give us useful --help. 911 echo "${UNAME_MACHINE}- pc-linux-gnuoldld"963 echo "${UNAME_MACHINE}-${VENDOR}-linuxoldld" 912 964 exit 0 ;; 913 965 esac … … 933 985 #endif 934 986 #endif 987 #ifdef __dietlibc__ 988 LIBC=dietlibc 989 #endif 935 990 EOF 936 991 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=` 937 test x"${LIBC}" != x && echo "${UNAME_MACHINE}- pc-linux-${LIBC}"&& exit 0992 test x"${LIBC}" != x && echo "${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}" | sed 's/linux-gnu/linux/' && exit 0 938 993 test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0 939 994 ;; … … 962 1017 i*86:atheos:*:*) 963 1018 echo ${UNAME_MACHINE}-unknown-atheos 1019 exit 0 ;; 1020 i*86:syllable:*:*) 1021 echo ${UNAME_MACHINE}-pc-syllable 964 1022 exit 0 ;; 965 1023 i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*) … … 1032 1090 echo m68k-diab-dnix 1033 1091 exit 0 ;; 1034 M68*:*:R3V[567 ]*:*)1092 M68*:*:R3V[5678]*:*) 1035 1093 test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;; 1036 3[34 ]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0)1094 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0) 1037 1095 OS_REL='' 1038 1096 test -r /etc/.relid \ … … 1132 1190 exit 0 ;; 1133 1191 *:Darwin:*:*) 1134 case `uname -p` in 1192 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown 1193 case $UNAME_PROCESSOR in 1135 1194 *86) UNAME_PROCESSOR=i686 ;; 1136 powerpc) UNAME_PROCESSOR=powerpc ;;1195 unknown) UNAME_PROCESSOR=powerpc ;; 1137 1196 esac 1138 1197 echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} … … 1149 1208 echo i386-pc-qnx 1150 1209 exit 0 ;; 1151 NSR- [DGKLNPTVW]:NONSTOP_KERNEL:*:*)1210 NSR-?:NONSTOP_KERNEL:*:*) 1152 1211 echo nsr-tandem-nsk${UNAME_RELEASE} 1153 1212 exit 0 ;; … … 1190 1249 echo pdp10-unknown-its 1191 1250 exit 0 ;; 1251 SEI:*:*:SEIUX) 1252 echo mips-sei-seiux${UNAME_RELEASE} 1253 exit 0 ;; 1254 *:DragonFly:*:*) 1255 echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` 1256 exit 0 ;; 1257 *:*VMS:*:*) 1258 UNAME_MACHINE=`(uname -p) 2>/dev/null` 1259 case "${UNAME_MACHINE}" in 1260 A*) echo alpha-dec-vms && exit 0 ;; 1261 I*) echo ia64-dec-vms && exit 0 ;; 1262 V*) echo vax-dec-vms && exit 0 ;; 1263 esac 1192 1264 esac 1193 1265 -
trunk/psLib/config.sub
r3199 r3219 2 2 # Configuration validation subroutine script. 3 3 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 4 # 2000, 2001, 2002, 2003 Free Software Foundation, Inc.5 6 timestamp='200 3-02-22'4 # 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc. 5 6 timestamp='2004-06-24' 7 7 8 8 # This file is (in principle) common to ALL GNU software. … … 71 71 GNU config.sub ($timestamp) 72 72 73 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 73 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004 74 74 Free Software Foundation, Inc. 75 75 … … 119 119 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` 120 120 case $maybe_os in 121 nto-qnx* | linux-gnu* | freebsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*) 121 nto-qnx* | linux-gnu* | linux-dietlibc | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | \ 122 kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*) 122 123 os=-$maybe_os 123 124 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` … … 145 146 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ 146 147 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ 147 -apple | -axis )148 -apple | -axis | -knuth | -cray) 148 149 os= 149 150 basic_machine=$1 … … 229 230 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ 230 231 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ 232 | am33_2.0 \ 231 233 | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \ 232 | c lipper \234 | c4x | clipper \ 233 235 | d10v | d30v | dlx | dsp16xx \ 234 236 | fr30 | frv \ 235 237 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ 236 238 | i370 | i860 | i960 | ia64 \ 237 | ip2k \238 | m32r | m 68000 | m68k | m88k | mcore \239 | ip2k | iq2000 \ 240 | m32r | m32rle | m68000 | m68k | m88k | mcore \ 239 241 | mips | mipsbe | mipseb | mipsel | mipsle \ 240 242 | mips16 \ … … 248 250 | mipsisa32r2 | mipsisa32r2el \ 249 251 | mipsisa64 | mipsisa64el \ 252 | mipsisa64r2 | mipsisa64r2el \ 250 253 | mipsisa64sb1 | mipsisa64sb1el \ 251 254 | mipsisa64sr71k | mipsisa64sr71kel \ … … 260 263 | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \ 261 264 | sh64 | sh64le \ 262 | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv 9 | sparcv9b \265 | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv8 | sparcv9 | sparcv9b \ 263 266 | strongarm \ 264 | tahoe | thumb | tic 80 | tron \267 | tahoe | thumb | tic4x | tic80 | tron \ 265 268 | v850 | v850e \ 266 269 | we32k \ … … 298 301 | bs2000-* \ 299 302 | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ 300 | clipper-* | c ydra-* \303 | clipper-* | craynv-* | cydra-* \ 301 304 | d10v-* | d30v-* | dlx-* \ 302 305 | elxsi-* \ … … 305 308 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ 306 309 | i*86-* | i860-* | i960-* | ia64-* \ 307 | ip2k-* \308 | m32r-* \310 | ip2k-* | iq2000-* \ 311 | m32r-* | m32rle-* \ 309 312 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ 310 313 | m88110-* | m88k-* | mcore-* \ … … 320 323 | mipsisa32r2-* | mipsisa32r2el-* \ 321 324 | mipsisa64-* | mipsisa64el-* \ 325 | mipsisa64r2-* | mipsisa64r2el-* \ 322 326 | mipsisa64sb1-* | mipsisa64sb1el-* \ 323 327 | mipsisa64sr71k-* | mipsisa64sr71kel-* \ 324 328 | mipstx39-* | mipstx39el-* \ 329 | mmix-* \ 325 330 | msp430-* \ 326 | none-* | np1-* | n v1-* | ns16k-* | ns32k-* \331 | none-* | np1-* | ns16k-* | ns32k-* \ 327 332 | orion-* \ 328 333 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ … … 333 338 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ 334 339 | sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \ 335 | sparcv 9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \340 | sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \ 336 341 | tahoe-* | thumb-* \ 337 342 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ … … 360 365 os=-udi 361 366 ;; 367 abacus) 368 basic_machine=abacus-unknown 369 ;; 362 370 adobe68k) 363 371 basic_machine=m68010-adobe … … 374 382 os=-bsd 375 383 ;; 384 amd64) 385 basic_machine=x86_64-pc 386 ;; 387 amd64-*) 388 basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'` 389 ;; 376 390 amdahl) 377 391 basic_machine=580-amdahl … … 433 447 os=-unicos 434 448 ;; 449 craynv) 450 basic_machine=craynv-cray 451 os=-unicosmp 452 ;; 453 cr16c) 454 basic_machine=cr16c-unknown 455 os=-elf 456 ;; 435 457 crds | unos) 436 458 basic_machine=m68k-crds … … 438 460 cris | cris-* | etrax*) 439 461 basic_machine=cris-axis 462 ;; 463 crx) 464 basic_machine=crx-unknown 465 os=-elf 440 466 ;; 441 467 da30 | da30-*) … … 638 664 mips3*) 639 665 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown 640 ;;641 mmix*)642 basic_machine=mmix-knuth643 os=-mmixware644 666 ;; 645 667 monitor) … … 723 745 basic_machine=np1-gould 724 746 ;; 725 nv1)726 basic_machine=nv1-cray727 os=-unicosmp728 ;;729 747 nsr-tandem) 730 748 basic_machine=nsr-tandem … … 738 756 os=-coff 739 757 ;; 758 os400) 759 basic_machine=powerpc-ibm 760 os=-os400 761 ;; 740 762 OSE68000 | ose68000) 741 763 basic_machine=m68000-ericsson … … 769 791 basic_machine=i686-pc 770 792 ;; 771 pentiumii | pentium2 )793 pentiumii | pentium2 | pentiumiii | pentium3) 772 794 basic_machine=i686-pc 795 ;; 796 pentium4) 797 basic_machine=i786-pc 773 798 ;; 774 799 pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) … … 778 803 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` 779 804 ;; 780 pentiumii-* | pentium2-* )805 pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) 781 806 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` 807 ;; 808 pentium4-*) 809 basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` 782 810 ;; 783 811 pn) … … 839 867 basic_machine=mipsisa64sb1el-unknown 840 868 ;; 869 sei) 870 basic_machine=mips-sei 871 os=-seiux 872 ;; 841 873 sequent) 842 874 basic_machine=i386-sequent … … 846 878 os=-hms 847 879 ;; 880 sh64) 881 basic_machine=sh64-unknown 882 ;; 848 883 sparclite-wrs | simso-wrs) 849 884 basic_machine=sparclite-wrs … … 920 955 os=-unicos 921 956 ;; 922 tic4x | c4x*)923 basic_machine=tic4x-unknown924 os=-coff925 ;;926 957 tic54x | c54x*) 927 958 basic_machine=tic54x-unknown … … 948 979 tower | tower-32) 949 980 basic_machine=m68k-ncr 981 ;; 982 tpf) 983 basic_machine=s390x-ibm 984 os=-tpf 950 985 ;; 951 986 udi29k) … … 1022 1057 basic_machine=romp-ibm 1023 1058 ;; 1059 mmix) 1060 basic_machine=mmix-knuth 1061 ;; 1024 1062 rs6000) 1025 1063 basic_machine=rs6000-ibm … … 1044 1082 basic_machine=sh64-unknown 1045 1083 ;; 1046 sparc | sparcv 9 | sparcv9b)1084 sparc | sparcv8 | sparcv9 | sparcv9b) 1047 1085 basic_machine=sparc-sun 1048 1086 ;; … … 1117 1155 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ 1118 1156 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ 1119 | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \ 1120 | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ 1157 | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* | -openbsd* \ 1158 | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ 1159 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ 1121 1160 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ 1122 1161 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ 1123 1162 | -chorusos* | -chorusrdb* \ 1124 1163 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ 1125 | -mingw32* | -linux -gnu* | -uxpv* | -beos* | -mpeix* | -udk* \1164 | -mingw32* | -linux* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \ 1126 1165 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ 1127 1166 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ … … 1129 1168 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ 1130 1169 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ 1131 | -powermax* | -dnix* )1170 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly*) 1132 1171 # Remember, each alternative MUST END IN *, to match a version number. 1133 1172 ;; … … 1153 1192 os=`echo $os | sed -e 's|mac|macos|'` 1154 1193 ;; 1155 -linux *)1156 os= `echo $os | sed -e 's|linux|linux-gnu|'`1194 -linux-dietlibc) 1195 os=-linux-dietlibc 1157 1196 ;; 1158 1197 -sunos5*) … … 1165 1204 os=-openedition 1166 1205 ;; 1206 -os400*) 1207 os=-os400 1208 ;; 1167 1209 -wince*) 1168 1210 os=-wince … … 1185 1227 -atheos*) 1186 1228 os=-atheos 1229 ;; 1230 -syllable*) 1231 os=-syllable 1187 1232 ;; 1188 1233 -386bsd) … … 1207 1252 -sinix*) 1208 1253 os=-sysv4 1254 ;; 1255 -tpf*) 1256 os=-tpf 1209 1257 ;; 1210 1258 -triton*) … … 1275 1323 os=-aout 1276 1324 ;; 1325 c4x-* | tic4x-*) 1326 os=-coff 1327 ;; 1277 1328 # This must come before the *-dec entry. 1278 1329 pdp10-*) … … 1320 1371 *-ibm) 1321 1372 os=-aix 1373 ;; 1374 *-knuth) 1375 os=-mmixware 1322 1376 ;; 1323 1377 *-wec) … … 1453 1507 vendor=ibm 1454 1508 ;; 1509 -os400*) 1510 vendor=ibm 1511 ;; 1455 1512 -ptx*) 1456 1513 vendor=sequent 1514 ;; 1515 -tpf*) 1516 vendor=ibm 1457 1517 ;; 1458 1518 -vxsim* | -vxworks* | -windiss*) -
trunk/psLib/configure.ac
r3218 r3219 7 7 8 8 dnl Setup CFLAGS with project-particulars 9 CFLAGS="${CFLAGS=} -std=c99 "9 CFLAGS="${CFLAGS=} -std=c99 -D_GNU_SOURCE" 10 10 SUBDIR="etc src test" dnl don't include 'swig', as it is optional 11 11 AH_VERBATIM([_GNU_SOURCE], … … 20 20 21 21 dnl handle debug building 22 AC_ARG_ENABLE(debug, 23 [AC_HELP_STRING([--enable-debug],[enable debug information])], 24 [AC_MSG_RESULT(debug information enabled) 25 AC_DEFINE(DEBUG,[], [debug information requested]) 26 CFLAGS="${CFLAGS=} -O0 -g"], 27 [AC_MSG_RESULT(debug information disabled) 28 CFLAGS="${CFLAGS=} -O "] 22 AC_ARG_ENABLE(optimize, 23 [AC_HELP_STRING([--enable-optimize],[enable compiler optimization])], 24 [AC_MSG_RESULT(compile optimization enabled) 25 CFLAGS="${CFLAGS=} -O2"], 26 [AC_MSG_RESULT([compile optimization disabled]) 27 CFLAGS="${CFLAGS=} -O0 -g"] 29 28 ) 30 29 … … 36 35 AC_PROG_INSTALL 37 36 AC_PROG_LIBTOOL 38 AC_CHECK_FUNC(strtoll)39 AC_CHECK_FUNC(strtoull)40 37 41 38 AC_PREFIX_DEFAULT([`pwd`]) … … 138 135 dnl ---------------- PERLPREFIX option ------------------- 139 136 AC_ARG_WITH(perlprefix, 140 [AC_HELP_STRING([--with-perlprefix=DIR],[Specify prefix of Perl Module's installation. ])],137 [AC_HELP_STRING([--with-perlprefix=DIR],[Specify prefix of Perl Module's installation. (default=PREFIX)])], 141 138 [PERL_PREFIX="$withval"], 142 [PERL_PREFIX=" "])139 [PERL_PREFIX="$prefix"]) 143 140 AC_SUBST(PERL_PREFIX,$PERL_PREFIX) 144 141 fi … … 153 150 154 151 CFLAGS="${CFLAGS=} -Wall -Werror" 155 CFLAGS="${CFLAGS=} -DCONFIG_FILE=\\ "$sysconfdir/pslib/psTime.config\\""156 CFLAGS="${CFLAGS=} -DXML_CONFIG_FILE=\\ "$sysconfdir/pslib/psTime.xml\\""157 CFLAGS="${CFLAGS=} -DUTC_DAT_FILE=\\ "$datadir/pslib/tai_utc.dat\\""152 CFLAGS="${CFLAGS=} -DCONFIG_FILE=\\\"$sysconfdir/pslib/psTime.config\\\"" 153 CFLAGS="${CFLAGS=} -DXML_CONFIG_FILE=\\\"$sysconfdir/pslib/psTime.xml\\\"" 154 CFLAGS="${CFLAGS=} -DUTC_DAT_FILE=\\\"$datadir/pslib/tai_utc.dat\\\"" 158 155 159 156 -
trunk/psLib/ltmain.sh
r3199 r3219 2 2 # NOTE: Changing this file will not affect anything until you rerun configure. 3 3 # 4 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003 4 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004 5 5 # Free Software Foundation, Inc. 6 6 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 … … 25 25 # the same distribution terms that you use for the rest of that program. 26 26 27 basename="s,^.*/,,g" 28 29 # Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh 30 # is ksh but when the shell is invoked as "sh" and the current value of 31 # the _XPG environment variable is not equal to 1 (one), the special 32 # positional parameter $0, within a function call, is the name of the 33 # function. 34 progpath="$0" 35 36 # The name of this program: 37 progname=`echo "$progpath" | $SED $basename` 38 modename="$progname" 39 40 # Global variables: 41 EXIT_SUCCESS=0 42 EXIT_FAILURE=1 43 44 PROGRAM=ltmain.sh 45 PACKAGE=libtool 46 VERSION=1.5.8 47 TIMESTAMP=" (1.1220.2.118 2004/08/07 12:24:38)" 48 49 # See if we are running on zsh, and set the options which allow our 50 # commands through without removal of \ escapes. 51 if test -n "${ZSH_VERSION+set}" ; then 52 setopt NO_GLOB_SUBST 53 fi 54 27 55 # Check that we have a working $echo. 28 56 if test "X$1" = X--no-reexec; then … … 37 65 else 38 66 # Restart under the correct shell, and then maybe $echo will work. 39 exec $SHELL "$ 0" --no-reexec ${1+"$@"}67 exec $SHELL "$progpath" --no-reexec ${1+"$@"} 40 68 fi 41 69 … … 46 74 $* 47 75 EOF 48 exit 076 exit $EXIT_SUCCESS 49 77 fi 50 51 # The name of this program.52 progname=`$echo "$0" | ${SED} 's%^.*/%%'`53 modename="$progname"54 55 # Constants.56 PROGRAM=ltmain.sh57 PACKAGE=libtool58 VERSION=1.559 TIMESTAMP=" (1.1220 2003/04/05 19:32:58)"60 78 61 79 default_mode= … … 71 89 sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g' 72 90 # test EBCDIC or ASCII 73 case `echo A| od -x` in74 *[Cc]1*) # EBCDIC based system91 case `echo A|tr A '\301'` in 92 A) # EBCDIC based system 75 93 SP2NL="tr '\100' '\n'" 76 94 NL2SP="tr '\r\n' '\100\100'" … … 95 113 96 114 # Make sure IFS has a sensible default 97 : ${IFS=" "} 115 : ${IFS=" 116 "} 98 117 99 118 if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then 100 119 $echo "$modename: not configured to build any kind of library" 1>&2 101 120 $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2 102 exit 1121 exit $EXIT_FAILURE 103 122 fi 104 123 … … 119 138 # This seems to be the best place for them 120 139 140 # func_win32_libid arg 141 # return the library type of file 'arg' 142 # 121 143 # Need a lot of goo to handle *both* DLLs and import libs 122 144 # Has to be a shell function in order to 'eat' the argument 123 145 # that is supplied when $file_magic_command is called. 124 win32_libid () {146 func_win32_libid () { 125 147 win32_libid_type="unknown" 126 148 win32_fileres=`file -L $1 2>/dev/null` … … 131 153 *ar\ archive*) # could be an import, or static 132 154 if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \ 133 grep -E'file format pe-i386(.*architecture: i386)?' >/dev/null ; then155 $EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then 134 156 win32_nmres=`eval $NM -f posix -A $1 | \ 135 157 sed -n -e '1,100{/ I /{x;/import/!{s/^/import/;h;p;};x;};}'` … … 141 163 fi 142 164 ;; 143 *DLL*) 165 *DLL*) 144 166 win32_libid_type="x86 DLL" 145 167 ;; … … 155 177 } 156 178 179 180 # func_infer_tag arg 181 # Infer tagged configuration to use if any are available and 182 # if one wasn't chosen via the "--tag" command line option. 183 # Only attempt this if the compiler in the base compile 184 # command doesn't match the default compiler. 185 # arg is usually of the form 'gcc ...' 186 func_infer_tag () { 187 if test -n "$available_tags" && test -z "$tagname"; then 188 CC_quoted= 189 for arg in $CC; do 190 case $arg in 191 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") 192 arg="\"$arg\"" 193 ;; 194 esac 195 CC_quoted="$CC_quoted $arg" 196 done 197 case $@ in 198 # Blanks in the command may have been stripped by the calling shell, 199 # but not from the CC environment variable when configure was run. 200 " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*) ;; 201 # Blanks at the start of $base_compile will cause this to fail 202 # if we don't check for them as well. 203 *) 204 for z in $available_tags; do 205 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then 206 # Evaluate the configuration. 207 eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`" 208 CC_quoted= 209 for arg in $CC; do 210 # Double-quote args containing other shell metacharacters. 211 case $arg in 212 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") 213 arg="\"$arg\"" 214 ;; 215 esac 216 CC_quoted="$CC_quoted $arg" 217 done 218 case "$@ " in 219 " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*) 220 # The compiler in the base compile command matches 221 # the one in the tagged configuration. 222 # Assume this is the tagged configuration we want. 223 tagname=$z 224 break 225 ;; 226 esac 227 fi 228 done 229 # If $tagname still isn't set, then no tagged configuration 230 # was found and let the user know that the "--tag" command 231 # line option must be used. 232 if test -z "$tagname"; then 233 $echo "$modename: unable to infer tagged configuration" 234 $echo "$modename: specify a tag with \`--tag'" 1>&2 235 exit $EXIT_FAILURE 236 # else 237 # $echo "$modename: using $tagname tagged configuration" 238 fi 239 ;; 240 esac 241 fi 242 } 243 244 245 # func_extract_archives gentop oldlib ... 246 func_extract_archives () { 247 my_gentop="$1"; shift 248 my_oldlibs=${1+"$@"} 249 my_oldobjs="" 250 my_xlib="" 251 my_xabs="" 252 my_xdir="" 253 my_status="" 254 255 $show "${rm}r $my_gentop" 256 $run ${rm}r "$my_gentop" 257 $show "$mkdir $my_gentop" 258 $run $mkdir "$my_gentop" 259 my_status=$? 260 if test "$my_status" -ne 0 && test ! -d "$my_gentop"; then 261 exit $my_status 262 fi 263 264 for my_xlib in $my_oldlibs; do 265 # Extract the objects. 266 case $my_xlib in 267 [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;; 268 *) my_xabs=`pwd`"/$my_xlib" ;; 269 esac 270 my_xlib=`$echo "X$my_xlib" | $Xsed -e 's%^.*/%%'` 271 my_xdir="$my_gentop/$my_xlib" 272 273 $show "${rm}r $my_xdir" 274 $run ${rm}r "$my_xdir" 275 $show "$mkdir $my_xdir" 276 $run $mkdir "$my_xdir" 277 status=$? 278 if test "$status" -ne 0 && test ! -d "$my_xdir"; then 279 exit $status 280 fi 281 case $host in 282 *-darwin*) 283 $show "Extracting $my_xabs" 284 # Do not bother doing anything if just a dry run 285 if test -z "$run"; then 286 darwin_orig_dir=`pwd` 287 cd $my_xdir || exit $? 288 darwin_archive=$my_xabs 289 darwin_curdir=`pwd` 290 darwin_base_archive=`basename $darwin_archive` 291 darwin_arches=`lipo -info "$darwin_archive" 2>/dev/null | $EGREP Architectures 2>/dev/null` 292 if test -n "$darwin_arches"; then 293 darwin_arches=`echo "$darwin_arches" | $SED -e 's/.*are://'` 294 darwin_arch= 295 $show "$darwin_base_archive has multiple architectures $darwin_arches" 296 for darwin_arch in $darwin_arches ; do 297 mkdir -p "unfat-$$/${darwin_base_archive}-${darwin_arch}" 298 lipo -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}" 299 # Remove the table of contents from the thin files. 300 $AR -d "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" __.SYMDEF 2>/dev/null || true 301 $AR -d "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" __.SYMDEF\ SORTED 2>/dev/null || true 302 cd "unfat-$$/${darwin_base_archive}-${darwin_arch}" 303 $AR -xo "${darwin_base_archive}" 304 rm "${darwin_base_archive}" 305 cd "$darwin_curdir" 306 done # $darwin_arches 307 ## Okay now we have a bunch of thin objects, gotta fatten them up :) 308 darwin_filelist=`find unfat-$$ -type f | xargs basename | sort -u | $NL2SP` 309 darwin_file= 310 darwin_files= 311 for darwin_file in $darwin_filelist; do 312 darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP` 313 lipo -create -output "$darwin_file" $darwin_files 314 done # $darwin_filelist 315 rm -rf unfat-$$ 316 cd "$darwin_orig_dir" 317 else 318 cd $darwin_orig_dir 319 (cd $my_xdir && $AR x $my_xabs) || exit $? 320 fi # $darwin_arches 321 fi # $run 322 ;; 323 *) 324 # We will extract separately just the conflicting names and we will 325 # no longer touch any unique names. It is faster to leave these 326 # extract automatically by $AR in one run. 327 $show "(cd $my_xdir && $AR x $my_xabs)" 328 $run eval "(cd \$my_xdir && $AR x \$my_xabs)" || exit $? 329 if ($AR t "$my_xabs" | sort | sort -uc >/dev/null 2>&1); then 330 : 331 else 332 $echo "$modename: warning: object name conflicts; renaming object files" 1>&2 333 $echo "$modename: warning: to ensure that they will not overwrite" 1>&2 334 $AR t "$my_xabs" | sort | uniq -cd | while read -r count name 335 do 336 i=1 337 while test "$i" -le "$count" 338 do 339 # Put our $i before any first dot (extension) 340 # Never overwrite any file 341 name_to="$name" 342 while test "X$name_to" = "X$name" || test -f "$my_xdir/$name_to" 343 do 344 name_to=`$echo "X$name_to" | $Xsed -e "s/\([^.]*\)/\1-$i/"` 345 done 346 $show "(cd $my_xdir && $AR xN $i $my_xabs '$name' && $mv '$name' '$name_to')" 347 $run eval "(cd \$my_xdir && $AR xN $i \$my_xabs '$name' && $mv '$name' '$name_to')" || exit $? 348 i=`expr $i + 1` 349 done 350 done 351 fi 352 ;; 353 esac 354 my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP` 355 done 356 357 func_extract_archives_result="$my_oldobjs" 358 } 157 359 # End of Shell function definitions 158 360 ##################################### 361 362 # Darwin sucks 363 eval std_shrext=\"$shrext_cmds\" 159 364 160 365 # Parse our command line options once, thoroughly. … … 177 382 tag) 178 383 tagname="$arg" 384 preserve_args="${preserve_args}=$arg" 179 385 180 386 # Check whether tagname contains only valid characters … … 182 388 *[!-_A-Za-z0-9,/]*) 183 389 $echo "$progname: invalid tag name: $tagname" 1>&2 184 exit 1390 exit $EXIT_FAILURE 185 391 ;; 186 392 esac … … 192 398 ;; 193 399 *) 194 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "$ 0" > /dev/null; then400 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "$progpath" > /dev/null; then 195 401 taglist="$taglist $tagname" 196 402 # Evaluate the configuration. 197 eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$tagname'$/,/^# ### END LIBTOOL TAG CONFIG: '$tagname'$/p' < $ 0`"403 eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$tagname'$/,/^# ### END LIBTOOL TAG CONFIG: '$tagname'$/p' < $progpath`" 198 404 else 199 405 $echo "$progname: ignoring unknown tag $tagname" 1>&2 … … 224 430 $echo "This is free software; see the source for copying conditions. There is NO" 225 431 $echo "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." 226 exit 0432 exit $EXIT_SUCCESS 227 433 ;; 228 434 229 435 --config) 230 ${SED} -e '1,/^# ### BEGIN LIBTOOL CONFIG/d' -e '/^# ### END LIBTOOL CONFIG/,$d' $ 0436 ${SED} -e '1,/^# ### BEGIN LIBTOOL CONFIG/d' -e '/^# ### END LIBTOOL CONFIG/,$d' $progpath 231 437 # Now print the configurations for the tags. 232 438 for tagname in $taglist; do 233 ${SED} -n -e "/^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$/,/^# ### END LIBTOOL TAG CONFIG: $tagname$/p" < "$ 0"439 ${SED} -n -e "/^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$/,/^# ### END LIBTOOL TAG CONFIG: $tagname$/p" < "$progpath" 234 440 done 235 exit 0441 exit $EXIT_SUCCESS 236 442 ;; 237 443 … … 239 445 $echo "$progname: enabling shell trace mode" 240 446 set -x 447 preserve_args="$preserve_args $arg" 241 448 ;; 242 449 … … 257 464 $echo "disable static libraries" 258 465 fi 259 exit 0466 exit $EXIT_SUCCESS 260 467 ;; 261 468 … … 269 476 --quiet | --silent) 270 477 show=: 478 preserve_args="$preserve_args $arg" 271 479 ;; 272 480 … … 276 484 shift 277 485 prev=tag 486 preserve_args="$preserve_args --tag" 278 487 ;; 279 488 … … 286 495 $echo "$modename: unrecognized option \`$arg'" 1>&2 287 496 $echo "$help" 1>&2 288 exit 1497 exit $EXIT_FAILURE 289 498 ;; 290 499 … … 299 508 $echo "$modename: option \`$prevopt' requires an argument" 1>&2 300 509 $echo "$help" 1>&2 301 exit 1510 exit $EXIT_FAILURE 302 511 fi 303 512 … … 308 517 309 518 if test -z "$show_help"; then 310 archargs=311 case $host in312 *-*-darwin*)313 # For darwin, separate arch arguments and apply them to all compile/link314 # commands315 doarch=316 for arg; do317 if test -n "$doarch"; then318 archargs="$archargs -arch $arg"319 doarch=320 continue321 fi322 case $arg in323 -arch) doarch=y;;324 esac325 done326 esac327 519 328 520 # Infer the operation mode. … … 372 564 $echo "$modename: unrecognized option \`-dlopen'" 1>&2 373 565 $echo "$help" 1>&2 374 exit 1566 exit $EXIT_FAILURE 375 567 fi 376 568 … … 387 579 base_compile= 388 580 srcfile="$nonopt" # always keep a non-empty value in "srcfile" 581 suppress_opt=yes 389 582 suppress_output= 390 583 arg_mode=normal 391 584 libobj= 585 later= 392 586 393 587 for arg … … 412 606 if test -n "$libobj" ; then 413 607 $echo "$modename: you cannot specify \`-o' more than once" 1>&2 414 exit 1608 exit $EXIT_FAILURE 415 609 fi 416 610 arg_mode=target … … 418 612 ;; 419 613 420 -static )421 build_old_libs=yes614 -static | -prefer-pic | -prefer-non-pic) 615 later="$later $arg" 422 616 continue 423 617 ;; 424 618 425 -prefer-pic) 426 pic_mode=yes 427 continue 428 ;; 429 430 -prefer-non-pic) 431 pic_mode=no 619 -no-suppress) 620 suppress_opt=no 432 621 continue 433 622 ;; … … 442 631 lastarg= 443 632 save_ifs="$IFS"; IFS=',' 444 for arg in $args; do633 for arg in $args; do 445 634 IFS="$save_ifs" 446 635 … … 492 681 arg) 493 682 $echo "$modename: you must specify an argument for -Xcompile" 494 exit 1683 exit $EXIT_FAILURE 495 684 ;; 496 685 target) 497 686 $echo "$modename: you must specify a target with \`-o'" 1>&2 498 exit 1687 exit $EXIT_FAILURE 499 688 ;; 500 689 *) … … 529 718 *) 530 719 $echo "$modename: cannot determine name of library object from \`$libobj'" 1>&2 531 exit 1720 exit $EXIT_FAILURE 532 721 ;; 533 722 esac 534 723 535 # Infer tagged configuration to use if any are available and 536 # if one wasn't chosen via the "--tag" command line option. 537 # Only attempt this if the compiler in the base compile 538 # command doesn't match the default compiler. 539 if test -n "$available_tags" && test -z "$tagname"; then 540 case $base_compile in 541 # Blanks in the command may have been stripped by the calling shell, 542 # but not from the CC environment variable when configure was run. 543 " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "*) ;; 544 # Blanks at the start of $base_compile will cause this to fail 545 # if we don't check for them as well. 546 *) 547 for z in $available_tags; do 548 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$0" > /dev/null; then 549 # Evaluate the configuration. 550 eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $0`" 551 case "$base_compile " in 552 "$CC "* | " $CC "* | "`$echo $CC` "* | " `$echo $CC` "*) 553 # The compiler in the base compile command matches 554 # the one in the tagged configuration. 555 # Assume this is the tagged configuration we want. 556 tagname=$z 557 break 558 ;; 559 esac 560 fi 561 done 562 # If $tagname still isn't set, then no tagged configuration 563 # was found and let the user know that the "--tag" command 564 # line option must be used. 565 if test -z "$tagname"; then 566 $echo "$modename: unable to infer tagged configuration" 567 $echo "$modename: specify a tag with \`--tag'" 1>&2 568 exit 1 569 # else 570 # $echo "$modename: using $tagname tagged configuration" 571 fi 724 func_infer_tag $base_compile 725 726 for arg in $later; do 727 case $arg in 728 -static) 729 build_old_libs=yes 730 continue 731 ;; 732 733 -prefer-pic) 734 pic_mode=yes 735 continue 736 ;; 737 738 -prefer-non-pic) 739 pic_mode=no 740 continue 572 741 ;; 573 742 esac 574 fi743 done 575 744 576 745 objname=`$echo "X$obj" | $Xsed -e 's%^.*/%%'` … … 586 755 $echo "$modename: you must specify a compilation command" 1>&2 587 756 $echo "$help" 1>&2 588 exit 1757 exit $EXIT_FAILURE 589 758 fi 590 759 … … 597 766 598 767 $run $rm $removelist 599 trap "$run $rm $removelist; exit 1" 1 2 15768 trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15 600 769 601 770 # On Cygwin there's no "real" PIC flag so we must build both object types … … 616 785 lockfile="$output_obj.lock" 617 786 removelist="$removelist $output_obj $lockfile" 618 trap "$run $rm $removelist; exit 1" 1 2 15787 trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15 619 788 else 620 789 output_obj= … … 626 795 # We use this script file to make the link, it avoids creating a new file 627 796 if test "$need_locks" = yes; then 628 until $run ln "$ 0" "$lockfile" 2>/dev/null; do797 until $run ln "$progpath" "$lockfile" 2>/dev/null; do 629 798 $show "Waiting for $lockfile to be removed" 630 799 sleep 2 … … 644 813 645 814 $run $rm $removelist 646 exit 1815 exit $EXIT_FAILURE 647 816 fi 648 817 $echo $srcfile > "$lockfile" … … 699 868 else 700 869 test -n "$output_obj" && $run $rm $removelist 701 exit 1870 exit $EXIT_FAILURE 702 871 fi 703 872 … … 719 888 720 889 $run $rm $removelist 721 exit 1890 exit $EXIT_FAILURE 722 891 fi 723 892 … … 740 909 741 910 # Allow error messages only from the first compilation. 742 suppress_output=' >/dev/null 2>&1' 911 if test "$suppress_opt" = yes; then 912 suppress_output=' >/dev/null 2>&1' 913 fi 743 914 else 744 915 # No PIC object so indicate it doesn't exist in the libtool … … 769 940 else 770 941 $run $rm $removelist 771 exit 1942 exit $EXIT_FAILURE 772 943 fi 773 944 … … 789 960 790 961 $run $rm $removelist 791 exit 1962 exit $EXIT_FAILURE 792 963 fi 793 964 … … 827 998 fi 828 999 829 exit 01000 exit $EXIT_SUCCESS 830 1001 ;; 831 1002 … … 853 1024 esac 854 1025 libtool_args="$nonopt" 855 base_compile="$nonopt "1026 base_compile="$nonopt $@" 856 1027 compile_command="$nonopt" 857 1028 finalize_command="$nonopt" … … 885 1056 objs= 886 1057 non_pic_objects= 1058 precious_files_regex= 887 1059 prefer_static_libs=no 888 1060 preload=no … … 898 1070 vinfo_number=no 899 1071 1072 func_infer_tag $base_compile 1073 900 1074 # We need to know -static, to get the right output filenames. 901 1075 for arg … … 929 1103 while test "$#" -gt 0; do 930 1104 arg="$1" 931 base_compile="$base_compile $arg"932 1105 shift 933 1106 case $arg in … … 993 1166 if test ! -f "$arg"; then 994 1167 $echo "$modename: symbol file \`$arg' does not exist" 995 exit 11168 exit $EXIT_FAILURE 996 1169 fi 997 1170 prev= … … 1005 1178 inst_prefix) 1006 1179 inst_prefix_dir="$arg" 1180 prev= 1181 continue 1182 ;; 1183 precious_regex) 1184 precious_files_regex="$arg" 1007 1185 prev= 1008 1186 continue … … 1040 1218 test "$non_pic_object" = none; then 1041 1219 $echo "$modename: cannot find name of object for \`$arg'" 1>&2 1042 exit 11220 exit $EXIT_FAILURE 1043 1221 fi 1044 1222 … … 1093 1271 if test -z "$run"; then 1094 1272 $echo "$modename: \`$arg' is not a valid libtool object" 1>&2 1095 exit 11273 exit $EXIT_FAILURE 1096 1274 else 1097 1275 # Dry-run case. … … 1114 1292 else 1115 1293 $echo "$modename: link input file \`$save_arg' does not exist" 1116 exit 11294 exit $EXIT_FAILURE 1117 1295 fi 1118 1296 arg=$save_arg … … 1126 1304 *) 1127 1305 $echo "$modename: only absolute run-paths are allowed" 1>&2 1128 exit 11306 exit $EXIT_FAILURE 1129 1307 ;; 1130 1308 esac … … 1166 1344 continue 1167 1345 ;; 1346 shrext) 1347 shrext_cmds="$arg" 1348 prev= 1349 continue 1350 ;; 1168 1351 *) 1169 1352 eval "$prev=\"\$arg\"" … … 1214 1397 if test -n "$export_symbols" || test -n "$export_symbols_regex"; then 1215 1398 $echo "$modename: more than one -exported-symbols argument is not allowed" 1216 exit 11399 exit $EXIT_FAILURE 1217 1400 fi 1218 1401 if test "X$arg" = "X-export-symbols"; then … … 1250 1433 if test -z "$absdir"; then 1251 1434 $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2 1252 exit 11435 exit $EXIT_FAILURE 1253 1436 fi 1254 1437 dir="$absdir" … … 1305 1488 ;; 1306 1489 1490 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe) 1491 deplibs="$deplibs $arg" 1492 continue 1493 ;; 1494 1307 1495 -module) 1308 1496 module=yes … … 1369 1557 -o) prev=output ;; 1370 1558 1559 -precious-files-regex) 1560 prev=precious_regex 1561 continue 1562 ;; 1563 1371 1564 -release) 1372 1565 prev=release … … 1391 1584 *) 1392 1585 $echo "$modename: only absolute run-paths are allowed" 1>&2 1393 exit 11586 exit $EXIT_FAILURE 1394 1587 ;; 1395 1588 esac … … 1514 1707 test "$non_pic_object" = none; then 1515 1708 $echo "$modename: cannot find name of object for \`$arg'" 1>&2 1516 exit 11709 exit $EXIT_FAILURE 1517 1710 fi 1518 1711 … … 1567 1760 if test -z "$run"; then 1568 1761 $echo "$modename: \`$arg' is not a valid libtool object" 1>&2 1569 exit 11762 exit $EXIT_FAILURE 1570 1763 else 1571 1764 # Dry-run case. … … 1634 1827 $echo "$modename: the \`$prevarg' option requires an argument" 1>&2 1635 1828 $echo "$help" 1>&2 1636 exit 1 1637 fi 1638 1639 # Infer tagged configuration to use if any are available and 1640 # if one wasn't chosen via the "--tag" command line option. 1641 # Only attempt this if the compiler in the base link 1642 # command doesn't match the default compiler. 1643 if test -n "$available_tags" && test -z "$tagname"; then 1644 case $base_compile in 1645 # Blanks in the command may have been stripped by the calling shell, 1646 # but not from the CC environment variable when configure was run. 1647 "$CC "* | " $CC "* | "`$echo $CC` "* | " `$echo $CC` "*) ;; 1648 # Blanks at the start of $base_compile will cause this to fail 1649 # if we don't check for them as well. 1650 *) 1651 for z in $available_tags; do 1652 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$0" > /dev/null; then 1653 # Evaluate the configuration. 1654 eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $0`" 1655 case $base_compile in 1656 "$CC "* | " $CC "* | "`$echo $CC` "* | " `$echo $CC` "*) 1657 # The compiler in $compile_command matches 1658 # the one in the tagged configuration. 1659 # Assume this is the tagged configuration we want. 1660 tagname=$z 1661 break 1662 ;; 1663 esac 1664 fi 1665 done 1666 # If $tagname still isn't set, then no tagged configuration 1667 # was found and let the user know that the "--tag" command 1668 # line option must be used. 1669 if test -z "$tagname"; then 1670 $echo "$modename: unable to infer tagged configuration" 1671 $echo "$modename: specify a tag with \`--tag'" 1>&2 1672 exit 1 1673 # else 1674 # $echo "$modename: using $tagname tagged configuration" 1675 fi 1676 ;; 1677 esac 1829 exit $EXIT_FAILURE 1678 1830 fi 1679 1831 … … 1719 1871 $echo "$modename: you must specify an output file" 1>&2 1720 1872 $echo "$help" 1>&2 1721 exit 11873 exit $EXIT_FAILURE 1722 1874 ;; 1723 1875 *.$libext) linkmode=oldlib ;; … … 1729 1881 case $host in 1730 1882 *cygwin* | *mingw* | *pw32*) 1731 # don't eliminate dupl cations in $postdeps and $predeps1883 # don't eliminate duplications in $postdeps and $predeps 1732 1884 duplicate_compiler_generated_deps=yes 1733 1885 ;; … … 1782 1934 *) 1783 1935 $echo "$modename: libraries can \`-dlopen' only libtool libraries: $file" 1>&2 1784 exit 11936 exit $EXIT_FAILURE 1785 1937 ;; 1786 1938 esac … … 1820 1972 found=no 1821 1973 case $deplib in 1974 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe) 1975 if test "$linkmode,$pass" = "prog,link"; then 1976 compile_deplibs="$deplib $compile_deplibs" 1977 finalize_deplibs="$deplib $finalize_deplibs" 1978 else 1979 deplibs="$deplib $deplibs" 1980 fi 1981 continue 1982 ;; 1822 1983 -l*) 1823 1984 if test "$linkmode" != lib && test "$linkmode" != prog; then … … 1831 1992 name=`$echo "X$deplib" | $Xsed -e 's/^-l//'` 1832 1993 for searchdir in $newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path; do 1833 # Search the libtool library 1834 lib="$searchdir/lib${name}.la" 1835 if test -f "$lib"; then 1836 found=yes 1837 break 1838 fi 1994 for search_ext in .la $std_shrext .so .a; do 1995 # Search the libtool library 1996 lib="$searchdir/lib${name}${search_ext}" 1997 if test -f "$lib"; then 1998 if test "$search_ext" = ".la"; then 1999 found=yes 2000 else 2001 found=no 2002 fi 2003 break 2 2004 fi 2005 done 1839 2006 done 1840 2007 if test "$found" != yes; then … … 1901 2068 if test "$pass" = scan; then 1902 2069 deplibs="$deplib $deplibs" 1903 newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`1904 2070 else 1905 2071 compile_deplibs="$deplib $compile_deplibs" 1906 2072 finalize_deplibs="$deplib $finalize_deplibs" 1907 2073 fi 2074 newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'` 1908 2075 ;; 1909 2076 *) … … 1933 2100 case $linkmode in 1934 2101 lib) 1935 if test "$deplibs_check_method" != pass_all; then 2102 valid_a_lib=no 2103 case $deplibs_check_method in 2104 match_pattern*) 2105 set dummy $deplibs_check_method 2106 match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"` 2107 if eval $echo \"$deplib\" 2>/dev/null \ 2108 | $SED 10q \ 2109 | $EGREP "$match_pattern_regex" > /dev/null; then 2110 valid_a_lib=yes 2111 fi 2112 ;; 2113 pass_all) 2114 valid_a_lib=yes 2115 ;; 2116 esac 2117 if test "$valid_a_lib" != yes; then 1936 2118 $echo 1937 2119 $echo "*** Warning: Trying to link with static lib archive $deplib." … … 1984 2166 else 1985 2167 $echo "$modename: cannot find the library \`$lib'" 1>&2 1986 exit 12168 exit $EXIT_FAILURE 1987 2169 fi 1988 2170 … … 1991 2173 else 1992 2174 $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2 1993 exit 12175 exit $EXIT_FAILURE 1994 2176 fi 1995 2177 … … 2027 2209 if test -z "$old_library"; then 2028 2210 $echo "$modename: cannot find name of link library for \`$lib'" 1>&2 2029 exit 12211 exit $EXIT_FAILURE 2030 2212 fi 2031 2213 # It is a libtool convenience library, so add in its objects. … … 2044 2226 elif test "$linkmode" != prog && test "$linkmode" != lib; then 2045 2227 $echo "$modename: \`$lib' is not a convenience library" 1>&2 2046 exit 12228 exit $EXIT_FAILURE 2047 2229 fi 2048 2230 continue 2049 2231 fi # $pass = conv 2050 2232 2051 2233 2052 2234 # Get the name of the library we link against. 2053 2235 linklib= … … 2057 2239 if test -z "$linklib"; then 2058 2240 $echo "$modename: cannot find name of link library for \`$lib'" 1>&2 2059 exit 12241 exit $EXIT_FAILURE 2060 2242 fi 2061 2243 … … 2064 2246 if test -z "$libdir"; then 2065 2247 $echo "$modename: cannot -dlopen a convenience library: \`$lib'" 1>&2 2066 exit 1 2067 fi 2068 if test -z "$dlname" || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then 2248 exit $EXIT_FAILURE 2249 fi 2250 if test -z "$dlname" || 2251 test "$dlopen_support" != yes || 2252 test "$build_libtool_libs" = no; then 2069 2253 # If there is no dlname, no dlopen support or we're linking 2070 2254 # statically, we need to preload. We also need to preload any … … 2104 2288 fi 2105 2289 else 2106 dir="$ladir/$objdir" 2107 absdir="$abs_ladir/$objdir" 2108 # Remove this search path later 2109 notinst_path="$notinst_path $abs_ladir" 2290 if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then 2291 dir="$ladir" 2292 absdir="$abs_ladir" 2293 # Remove this search path later 2294 notinst_path="$notinst_path $abs_ladir" 2295 else 2296 dir="$ladir/$objdir" 2297 absdir="$abs_ladir/$objdir" 2298 # Remove this search path later 2299 notinst_path="$notinst_path $abs_ladir" 2300 fi 2110 2301 fi # $installed = yes 2111 2302 name=`$echo "X$laname" | $Xsed -e 's/\.la$//' -e 's/^lib//'` … … 2115 2306 if test -z "$libdir"; then 2116 2307 $echo "$modename: cannot -dlpreopen a convenience library: \`$lib'" 1>&2 2117 exit 12308 exit $EXIT_FAILURE 2118 2309 fi 2119 2310 # Prefer using a static library (so that no silly _DYNAMIC symbols … … 2142 2333 fi 2143 2334 2144 2335 2145 2336 if test "$linkmode" = prog && test "$pass" != link; then 2146 2337 newlib_search_path="$newlib_search_path $ladir" … … 2229 2420 fi 2230 2421 # This is a shared library 2231 2232 # Warn about portability, can't link against -module's on some systems (darwin) 2233 if test "$shouldnotlink" = yes && test "$pass" = link ; then 2422 2423 # Warn about portability, can't link against -module's on 2424 # some systems (darwin) 2425 if test "$shouldnotlink" = yes && test "$pass" = link ; then 2234 2426 $echo 2235 2427 if test "$linkmode" = prog; then … … 2238 2430 $echo "*** Warning: Linking the shared library $output against the loadable module" 2239 2431 fi 2240 $echo "*** $linklib is not portable!" 2241 fi 2432 $echo "*** $linklib is not portable!" 2433 fi 2242 2434 if test "$linkmode" = lib && 2243 2435 test "$hardcode_into_libs" = yes; then … … 2296 2488 else 2297 2489 $show "extracting exported symbol list from \`$soname'" 2298 save_ifs="$IFS"; IFS= $_S_2299 eval cmds=\"$extract_expsyms_cmds\"2490 save_ifs="$IFS"; IFS='~' 2491 cmds=$extract_expsyms_cmds 2300 2492 for cmd in $cmds; do 2301 2493 IFS="$save_ifs" 2494 eval cmd=\"$cmd\" 2302 2495 $show "$cmd" 2303 2496 $run eval "$cmd" || exit $? … … 2309 2502 if test -f "$output_objdir/$newlib"; then :; else 2310 2503 $show "generating import library for \`$soname'" 2311 save_ifs="$IFS"; IFS= $_S_2312 eval cmds=\"$old_archive_from_expsyms_cmds\"2504 save_ifs="$IFS"; IFS='~' 2505 cmds=$old_archive_from_expsyms_cmds 2313 2506 for cmd in $cmds; do 2314 2507 IFS="$save_ifs" 2508 eval cmd=\"$cmd\" 2315 2509 $show "$cmd" 2316 2510 $run eval "$cmd" || exit $? … … 2335 2529 *-*-sco3.2v5* ) add_dir="-L$dir" ;; 2336 2530 *-*-darwin* ) 2337 # if the lib is a module then we can not link against it, someone2338 # i s ignoring the new warnings I added2339 if /usr/bin/file -L $add 2> /dev/null | grep"bundle" >/dev/null ; then2531 # if the lib is a module then we can not link against 2532 # it, someone is ignoring the new warnings I added 2533 if /usr/bin/file -L $add 2> /dev/null | $EGREP "bundle" >/dev/null ; then 2340 2534 $echo "** Warning, lib $linklib is a module, not a shared library" 2341 2535 if test -z "$old_library" ; then … … 2345 2539 else 2346 2540 add="$dir/$old_library" 2347 fi 2541 fi 2348 2542 fi 2349 2543 esac … … 2370 2564 case "$libdir" in 2371 2565 [\\/]*) 2372 add_dir=" -L$inst_prefix_dir$libdir $add_dir"2566 add_dir="$add_dir -L$inst_prefix_dir$libdir" 2373 2567 ;; 2374 2568 esac … … 2387 2581 if test "$lib_linked" != yes; then 2388 2582 $echo "$modename: configuration error: unsupported hardcode properties" 2389 exit 12583 exit $EXIT_FAILURE 2390 2584 fi 2391 2585 … … 2430 2624 add="-l$name" 2431 2625 elif test "$hardcode_automatic" = yes; then 2432 if test -n "$inst_prefix_dir" && test -f "$inst_prefix_dir$libdir/$linklib" ; then 2626 if test -n "$inst_prefix_dir" && 2627 test -f "$inst_prefix_dir$libdir/$linklib" ; then 2433 2628 add="$inst_prefix_dir$libdir/$linklib" 2434 2629 else … … 2442 2637 case "$libdir" in 2443 2638 [\\/]*) 2444 add_dir=" -L$inst_prefix_dir$libdir $add_dir"2639 add_dir="$add_dir -L$inst_prefix_dir$libdir" 2445 2640 ;; 2446 2641 esac … … 2510 2705 if test "$linkmode" = lib; then 2511 2706 if test -n "$dependency_libs" && 2512 { test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes || 2707 { test "$hardcode_into_libs" != yes || 2708 test "$build_old_libs" = yes || 2513 2709 test "$link_static" = yes; }; then 2514 2710 # Extract -R from dependency_libs … … 2567 2763 if test -z "$libdir"; then 2568 2764 $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2 2569 exit 12765 exit $EXIT_FAILURE 2570 2766 fi 2571 2767 if test "$absdir" != "$libdir"; then … … 2577 2773 case $host in 2578 2774 *-*-darwin*) 2579 # we do not want to link against static libs, but need to link against shared 2775 # we do not want to link against static libs, 2776 # but need to link against shared 2580 2777 eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib` 2581 2778 if test -n "$deplibrary_names" ; then … … 2585 2782 if test -f "$path/$depdepl" ; then 2586 2783 depdepl="$path/$depdepl" 2587 fi 2588 newlib_search_path="$newlib_search_path $path" 2589 path="" 2784 fi 2785 # do not add paths which are already there 2786 case " $newlib_search_path " in 2787 *" $path "*) ;; 2788 *) newlib_search_path="$newlib_search_path $path";; 2789 esac 2590 2790 fi 2791 path="" 2591 2792 ;; 2592 2793 *) 2593 path="-L$path" 2794 path="-L$path" 2795 ;; 2796 esac 2594 2797 ;; 2595 esac 2596 2597 ;; 2598 -l*) 2798 -l*) 2599 2799 case $host in 2600 2800 *-*-darwin*) 2601 # Again, we only want to link against shared libraries2602 eval tmp_libs=`$echo "X$deplib" | $Xsed -e "s,^\-l,,"`2603 for tmp in $newlib_search_path ; do2604 if test -f "$tmp/lib$tmp_libs.dylib" ; then2605 eval depdepl="$tmp/lib$tmp_libs.dylib"2606 break2607 fi2608 done2609 path=""2801 # Again, we only want to link against shared libraries 2802 eval tmp_libs=`$echo "X$deplib" | $Xsed -e "s,^\-l,,"` 2803 for tmp in $newlib_search_path ; do 2804 if test -f "$tmp/lib$tmp_libs.dylib" ; then 2805 eval depdepl="$tmp/lib$tmp_libs.dylib" 2806 break 2807 fi 2808 done 2809 path="" 2610 2810 ;; 2611 2811 *) continue ;; 2612 esac 2812 esac 2613 2813 ;; 2614 2814 *) continue ;; … … 2616 2816 case " $deplibs " in 2617 2817 *" $depdepl "*) ;; 2618 *) deplibs="$dep libs $depdepl" ;;2619 esac 2818 *) deplibs="$depdepl $deplibs" ;; 2819 esac 2620 2820 case " $deplibs " in 2621 2821 *" $path "*) ;; … … 2707 2907 done # for var 2708 2908 fi 2709 # Last step: remove runtime libs from dependency_libs (they stay in deplibs) 2909 # Last step: remove runtime libs from dependency_libs 2910 # (they stay in deplibs) 2710 2911 tmp_libs= 2711 2912 for i in $dependency_libs ; do … … 2767 2968 lib*) 2768 2969 name=`$echo "X$outputname" | $Xsed -e 's/\.la$//' -e 's/^lib//'` 2769 eval shared_ext=\"$shrext \"2970 eval shared_ext=\"$shrext_cmds\" 2770 2971 eval libname=\"$libname_spec\" 2771 2972 ;; … … 2774 2975 $echo "$modename: libtool library \`$output' must begin with \`lib'" 1>&2 2775 2976 $echo "$help" 1>&2 2776 exit 12977 exit $EXIT_FAILURE 2777 2978 fi 2778 2979 if test "$need_lib_prefix" != no; then 2779 2980 # Add the "lib" prefix for modules if required 2780 2981 name=`$echo "X$outputname" | $Xsed -e 's/\.la$//'` 2781 eval shared_ext=\"$shrext \"2982 eval shared_ext=\"$shrext_cmds\" 2782 2983 eval libname=\"$libname_spec\" 2783 2984 else … … 2790 2991 if test "$deplibs_check_method" != pass_all; then 2791 2992 $echo "$modename: cannot build libtool library \`$output' from non-libtool objects on this host:$objs" 2>&1 2792 exit 12993 exit $EXIT_FAILURE 2793 2994 else 2794 2995 $echo … … 2838 3039 $echo "$modename: too many parameters to \`-version-info'" 1>&2 2839 3040 $echo "$help" 1>&2 2840 exit 13041 exit $EXIT_FAILURE 2841 3042 fi 2842 3043 … … 2844 3045 # this retains compatibility with .la files and attempts 2845 3046 # to make the code below a bit more comprehensible 2846 3047 2847 3048 case $vinfo_number in 2848 3049 yes) … … 2888 3089 $echo "$modename: CURRENT \`$current' is not a nonnegative integer" 1>&2 2889 3090 $echo "$modename: \`$vinfo' is not valid version information" 1>&2 2890 exit 13091 exit $EXIT_FAILURE 2891 3092 ;; 2892 3093 esac … … 2897 3098 $echo "$modename: REVISION \`$revision' is not a nonnegative integer" 1>&2 2898 3099 $echo "$modename: \`$vinfo' is not valid version information" 1>&2 2899 exit 13100 exit $EXIT_FAILURE 2900 3101 ;; 2901 3102 esac … … 2906 3107 $echo "$modename: AGE \`$age' is not a nonnegative integer" 1>&2 2907 3108 $echo "$modename: \`$vinfo' is not valid version information" 1>&2 2908 exit 13109 exit $EXIT_FAILURE 2909 3110 ;; 2910 3111 esac … … 2913 3114 $echo "$modename: AGE \`$age' is greater than the current interface number \`$current'" 1>&2 2914 3115 $echo "$modename: \`$vinfo' is not valid version information" 1>&2 2915 exit 13116 exit $EXIT_FAILURE 2916 3117 fi 2917 3118 … … 2930 3131 # Darwin ld doesn't like 0 for these options... 2931 3132 minor_current=`expr $current + 1` 2932 verstring=" -compatibility_version $minor_current -current_version$minor_current.$revision"3133 verstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision" 2933 3134 ;; 2934 3135 … … 3002 3203 $echo "$modename: unknown library version type \`$version_type'" 1>&2 3003 3204 $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2 3004 exit 13205 exit $EXIT_FAILURE 3005 3206 ;; 3006 3207 esac … … 3056 3257 ;; 3057 3258 $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*) 3259 if test "X$precious_files_regex" != "X"; then 3260 if echo $p | $EGREP -e "$precious_files_regex" >/dev/null 2>&1 3261 then 3262 continue 3263 fi 3264 fi 3058 3265 removelist="$removelist $p" 3059 3266 ;; … … 3176 3383 EOF 3177 3384 $rm conftest 3178 $LTCC $archargs-o conftest conftest.c $deplibs3385 $LTCC -o conftest conftest.c $deplibs 3179 3386 if test "$?" -eq 0 ; then 3180 3387 ldd_output=`ldd conftest` … … 3221 3428 if test "$name" != "" && test "$name" != "0"; then 3222 3429 $rm conftest 3223 $LTCC $archargs-o conftest conftest.c $i3430 $LTCC -o conftest conftest.c $i 3224 3431 # Did it work? 3225 3432 if test "$?" -eq 0 ; then … … 3535 3742 3536 3743 # Get the real and link names of the library. 3537 eval shared_ext=\"$shrext \"3744 eval shared_ext=\"$shrext_cmds\" 3538 3745 eval library_names=\"$library_names_spec\" 3539 3746 set dummy $library_names … … 3565 3772 export_symbols="$output_objdir/$libname.exp" 3566 3773 $run $rm $export_symbols 3567 eval cmds=\"$export_symbols_cmds\"3568 save_ifs="$IFS"; IFS= $_S_3774 cmds=$export_symbols_cmds 3775 save_ifs="$IFS"; IFS='~' 3569 3776 for cmd in $cmds; do 3570 3777 IFS="$save_ifs" 3778 eval cmd=\"$cmd\" 3571 3779 if len=`expr "X$cmd" : ".*"` && 3572 3780 test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then … … 3598 3806 case " $convenience " in 3599 3807 *" $test_deplib "*) ;; 3600 *) 3808 *) 3601 3809 tmp_deplibs="$tmp_deplibs $test_deplib" 3602 3810 ;; 3603 3811 esac 3604 3812 done 3605 deplibs="$tmp_deplibs" 3813 deplibs="$tmp_deplibs" 3606 3814 3607 3815 if test -n "$convenience"; then … … 3611 3819 else 3612 3820 gentop="$output_objdir/${outputname}x" 3613 $show "${rm}r $gentop"3614 $run ${rm}r "$gentop"3615 $show "$mkdir $gentop"3616 $run $mkdir "$gentop"3617 status=$?3618 if test "$status" -ne 0 && test ! -d "$gentop"; then3619 exit $status3620 fi3621 3821 generated="$generated $gentop" 3622 3822 3623 for xlib in $convenience; do 3624 # Extract the objects. 3625 case $xlib in 3626 [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;; 3627 *) xabs=`pwd`"/$xlib" ;; 3628 esac 3629 xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'` 3630 xdir="$gentop/$xlib" 3631 3632 $show "${rm}r $xdir" 3633 $run ${rm}r "$xdir" 3634 $show "$mkdir $xdir" 3635 $run $mkdir "$xdir" 3636 status=$? 3637 if test "$status" -ne 0 && test ! -d "$xdir"; then 3638 exit $status 3639 fi 3640 case $host in 3641 *-*-darwin*) 3642 # ranlib-ed archives of fat binaries are converted to a fat xabs that 3643 # ar can't use. So we to split the fat xabs into non-fat ones to unpack. 3644 # We can't deal with duplicate names, since 'ar xN' and 'uniq -cd' don't work. 3645 d_archs=`lipo -info $xabs 2> /dev/null | grep '^Architectures' | sed 's/^.*: //'` 3646 if test -n "$d_archs"; then 3647 $echo "$modename: manually unpacking fat archive $xabs" 1>&2 3648 d_name=`basename $xabs` 3649 d_dir="/tmp/fat_ar.$$" 3650 d_files='' 3651 3652 for d_arch in $d_archs; do 3653 d_archdir="$d_dir/$d_arch" 3654 $show "$mkdir -p $d_archdir" 3655 $run $mkdir -p "$d_archdir" 3656 3657 $show "lipo -thin $d_arch $xabs -o $d_dir/$d_name" 3658 $run lipo -thin $d_arch "$xabs" -o "$d_dir/$d_name" 3659 3660 $show "(cd $d_archdir && $AR x $d_dir/$d_name)" 3661 $run eval "(cd \$d_archdir && \$AR x \$d_dir/\$d_name)" || exit $? 3662 3663 $show "${rm} $d_dir/$d_name" 3664 $run ${rm} "$d_dir/$d_name" 3665 done 3666 3667 # Can't deal with blanks in file names 3668 $run eval "d_files=\`find \$d_dir -type f | sed -e 's,.*/,,' -e '/ /d' | sort -u\`" || exit $? 3669 3670 for d_file in $d_files; do 3671 $run eval "d_f=\`find \$d_dir -name \$d_file -print\`" || exit $? 3672 $show "lipo -create $d_f -o $xdir/$d_file" 3673 $run eval "lipo -create \$d_f -o \"\$xdir/\$d_file\"" || exit $? 3674 done 3675 3676 $show "${rm}r $d_dir" 3677 $run ${rm}r "$d_dir" 3678 else 3679 $show "(cd $xdir && $AR x $xabs)" 3680 $run eval "(cd \$xdir && $AR x \$xabs)" || exit $? 3681 fi 3682 ;; 3683 *) 3684 # We will extract separately just the conflicting names and we will no 3685 # longer touch any unique names. It is faster to leave these extract 3686 # automatically by $AR in one run. 3687 $show "(cd $xdir && $AR x $xabs)" 3688 $run eval "(cd \$xdir && $AR x \$xabs)" || exit $? 3689 if ($AR t "$xabs" | sort | sort -uc >/dev/null 2>&1); then 3690 : 3691 else 3692 $echo "$modename: warning: object name conflicts; renaming object files" 1>&2 3693 $echo "$modename: warning: to ensure that they will not overwrite" 1>&2 3694 $AR t "$xabs" | sort | uniq -cd | while read -r count name 3695 do 3696 i=1 3697 while test "$i" -le "$count" 3698 do 3699 # Put our $i before any first dot (extension) 3700 # Never overwrite any file 3701 name_to="$name" 3702 while test "X$name_to" = "X$name" || test -f "$xdir/$name_to" 3703 do 3704 name_to=`$echo "X$name_to" | $Xsed -e "s/\([^.]*\)/\1-$i/"` 3705 done 3706 $show "(cd $xdir && $AR xN $i $xabs '$name' && $mv '$name' '$name_to')" 3707 $run eval "(cd \$xdir && $AR xN $i \$xabs '$name' && $mv '$name' '$name_to')" || exit $? 3708 i=`expr $i + 1` 3709 done 3710 done 3711 fi 3712 ;; 3713 esac 3714 3715 libobjs="$libobjs "`find $xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP` 3716 done 3717 fi 3718 fi 3719 3823 func_extract_archives $gentop $convenience 3824 libobjs="$libobjs $func_extract_archives_result" 3825 fi 3826 fi 3827 3720 3828 if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then 3721 3829 eval flag=\"$thread_safe_flag_spec\" … … 3731 3839 if test "$module" = yes && test -n "$module_cmds" ; then 3732 3840 if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then 3733 eval cmds=\"$module_expsym_cmds\" 3841 eval test_cmds=\"$module_expsym_cmds\" 3842 cmds=$module_expsym_cmds 3734 3843 else 3735 eval cmds=\"$module_cmds\" 3844 eval test_cmds=\"$module_cmds\" 3845 cmds=$module_cmds 3736 3846 fi 3737 3847 else 3738 3848 if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then 3739 eval cmds=\"$archive_expsym_cmds\" 3849 eval test_cmds=\"$archive_expsym_cmds\" 3850 cmds=$archive_expsym_cmds 3740 3851 else 3741 eval cmds=\"$archive_cmds\" 3742 fi 3743 fi 3744 3745 if test "X$skipped_export" != "X:" && len=`expr "X$cmds" : ".*"` && 3852 eval test_cmds=\"$archive_cmds\" 3853 cmds=$archive_cmds 3854 fi 3855 fi 3856 3857 if test "X$skipped_export" != "X:" && len=`expr "X$test_cmds" : ".*"` && 3746 3858 test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then 3747 3859 : … … 3789 3901 # All subsequent reloadable object files will link in 3790 3902 # the last one created. 3791 eval concat_cmds=\"\$concat_cmds ${_S_}$reload_cmds $objlist $last_robj\"3903 eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj\" 3792 3904 fi 3793 3905 last_robj=$output_objdir/$save_output-${k}.$objext … … 3801 3913 # reloadable object file. All subsequent reloadable object 3802 3914 # files will link in the last one created. 3803 test -z "$concat_cmds" || concat_cmds=$concat_cmds ${_S_}3915 test -z "$concat_cmds" || concat_cmds=$concat_cmds~ 3804 3916 eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\" 3805 3917 … … 3810 3922 libobjs=$output 3811 3923 # Append the command to create the export file. 3812 eval concat_cmds=\"\$concat_cmds ${_S_}$export_symbols_cmds\"3924 eval concat_cmds=\"\$concat_cmds~$export_symbols_cmds\" 3813 3925 fi 3814 3926 … … 3825 3937 3826 3938 # Loop through the commands generated above and execute them. 3827 save_ifs="$IFS"; IFS= $_S_3939 save_ifs="$IFS"; IFS='~' 3828 3940 for cmd in $concat_cmds; do 3829 3941 IFS="$save_ifs" … … 3844 3956 3845 3957 # Do each of the archive commands. 3958 if test "$module" = yes && test -n "$module_cmds" ; then 3959 if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then 3960 cmds=$module_expsym_cmds 3961 else 3962 cmds=$module_cmds 3963 fi 3964 else 3846 3965 if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then 3847 eval cmds=\"$archive_expsym_cmds\"3966 cmds=$archive_expsym_cmds 3848 3967 else 3849 eval cmds=\"$archive_cmds\" 3968 cmds=$archive_cmds 3969 fi 3850 3970 fi 3851 3971 3852 3972 # Append the command to remove the reloadable object files 3853 3973 # to the just-reset $cmds. 3854 eval cmds=\"\$cmds ${_S_}$rm $delfiles\"3855 fi 3856 save_ifs="$IFS"; IFS= $_S_3974 eval cmds=\"\$cmds~\$rm $delfiles\" 3975 fi 3976 save_ifs="$IFS"; IFS='~' 3857 3977 for cmd in $cmds; do 3858 3978 IFS="$save_ifs" 3979 eval cmd=\"$cmd\" 3859 3980 $show "$cmd" 3860 3981 $run eval "$cmd" || exit $? … … 3865 3986 if test "$mode" = relink; then 3866 3987 $run eval '(cd $output_objdir && $rm ${realname}T && $mv $realname ${realname}T && $mv "$realname"U $realname)' || exit $? 3867 exit 03988 exit $EXIT_SUCCESS 3868 3989 fi 3869 3990 … … 3913 4034 if test -n "$objs$old_deplibs"; then 3914 4035 $echo "$modename: cannot build library object \`$output' from non-libtool objects" 1>&2 3915 exit 14036 exit $EXIT_FAILURE 3916 4037 fi 3917 4038 libobj="$output" … … 3942 4063 else 3943 4064 gentop="$output_objdir/${obj}x" 3944 $show "${rm}r $gentop"3945 $run ${rm}r "$gentop"3946 $show "$mkdir $gentop"3947 $run $mkdir "$gentop"3948 status=$?3949 if test "$status" -ne 0 && test ! -d "$gentop"; then3950 exit $status3951 fi3952 4065 generated="$generated $gentop" 3953 4066 3954 for xlib in $convenience; do 3955 # Extract the objects. 3956 case $xlib in 3957 [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;; 3958 *) xabs=`pwd`"/$xlib" ;; 3959 esac 3960 xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'` 3961 xdir="$gentop/$xlib" 3962 3963 $show "${rm}r $xdir" 3964 $run ${rm}r "$xdir" 3965 $show "$mkdir $xdir" 3966 $run $mkdir "$xdir" 3967 status=$? 3968 if test "$status" -ne 0 && test ! -d "$xdir"; then 3969 exit $status 3970 fi 3971 case $host in 3972 *-*-darwin*) 3973 # ranlib-ed archives of fat binaries are converted to a fat xabs that 3974 # ar can't use. So we to split the fat xabs into non-fat ones to unpack. 3975 # We can't deal with duplicate names, since 'ar xN' and 'uniq -cd' don't work. 3976 d_archs=`lipo -info $xabs 2> /dev/null | grep '^Architectures' | sed 's/^.*: //'` 3977 if test -n "$d_archs"; then 3978 $echo "$modename: manually unpacking fat archive $xabs" 1>&2 3979 d_name=`basename $xabs` 3980 d_dir="/tmp/fat_ar.$$" 3981 d_files='' 3982 3983 for d_arch in $d_archs; do 3984 d_archdir="$d_dir/$d_arch" 3985 $show "$mkdir -p $d_archdir" 3986 $run $mkdir -p "$d_archdir" 3987 3988 $show "lipo -thin $d_arch $xabs -o $d_dir/$d_name" 3989 $run lipo -thin $d_arch "$xabs" -o "$d_dir/$d_name" 3990 3991 $show "(cd $d_archdir && $AR x $d_dir/$d_name)" 3992 $run eval "(cd \$d_archdir && \$AR x \$d_dir/\$d_name)" || exit $? 3993 3994 $show "${rm} $d_dir/$d_name" 3995 $run ${rm} "$d_dir/$d_name" 3996 done 3997 3998 # Can't deal with blanks in file names 3999 $run eval "d_files=\`find \$d_dir -type f | sed -e 's,.*/,,' -e '/ /d' | sort -u\`" || exit $? 4000 4001 for d_file in $d_files; do 4002 $run eval "d_f=\`find \$d_dir -name \$d_file -print\`" || exit $? 4003 $show "lipo -create $d_f -o $xdir/$d_file" 4004 $run eval "lipo -create \$d_f -o \"\$xdir/\$d_file\"" || exit $? 4005 done 4006 4007 $show "${rm}r $d_dir" 4008 $run ${rm}r "$d_dir" 4009 else 4010 $show "(cd $xdir && $AR x $xabs)" 4011 $run eval "(cd \$xdir && $AR x \$xabs)" || exit $? 4012 fi 4013 ;; 4014 *) 4015 # We will extract separately just the conflicting names and we will no 4016 # longer touch any unique names. It is faster to leave these extract 4017 # automatically by $AR in one run. 4018 $show "(cd $xdir && $AR x $xabs)" 4019 $run eval "(cd \$xdir && $AR x \$xabs)" || exit $? 4020 if ($AR t "$xabs" | sort | sort -uc >/dev/null 2>&1); then 4021 : 4022 else 4023 $echo "$modename: warning: object name conflicts; renaming object files" 1>&2 4024 $echo "$modename: warning: to ensure that they will not overwrite" 1>&2 4025 $AR t "$xabs" | sort | uniq -cd | while read -r count name 4026 do 4027 i=1 4028 while test "$i" -le "$count" 4029 do 4030 # Put our $i before any first dot (extension) 4031 # Never overwrite any file 4032 name_to="$name" 4033 while test "X$name_to" = "X$name" || test -f "$xdir/$name_to" 4034 do 4035 name_to=`$echo "X$name_to" | $Xsed -e "s/\([^.]*\)/\1-$i/"` 4036 done 4037 $show "(cd $xdir && $AR xN $i $xabs '$name' && $mv '$name' '$name_to')" 4038 $run eval "(cd \$xdir && $AR xN $i \$xabs '$name' && $mv '$name' '$name_to')" || exit $? 4039 i=`expr $i + 1` 4040 done 4041 done 4042 fi 4043 ;; 4044 esac 4045 4046 reload_conv_objs="$reload_objs "`find $xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP` 4047 done 4067 func_extract_archives $gentop $convenience 4068 reload_conv_objs="$reload_objs $func_extract_archives_result" 4048 4069 fi 4049 4070 fi … … 4053 4074 4054 4075 output="$obj" 4055 eval cmds=\"$reload_cmds\"4056 save_ifs="$IFS"; IFS= $_S_4076 cmds=$reload_cmds 4077 save_ifs="$IFS"; IFS='~' 4057 4078 for cmd in $cmds; do 4058 4079 IFS="$save_ifs" 4080 eval cmd=\"$cmd\" 4059 4081 $show "$cmd" 4060 4082 $run eval "$cmd" || exit $? … … 4069 4091 fi 4070 4092 4071 exit 04093 exit $EXIT_SUCCESS 4072 4094 fi 4073 4095 … … 4082 4104 # $show "echo timestamp > $libobj" 4083 4105 # $run eval "echo timestamp > $libobj" || exit $? 4084 exit 04106 exit $EXIT_SUCCESS 4085 4107 fi 4086 4108 … … 4089 4111 reload_objs="$libobjs $reload_conv_objs" 4090 4112 output="$libobj" 4091 eval cmds=\"$reload_cmds\"4092 save_ifs="$IFS"; IFS= $_S_4113 cmds=$reload_cmds 4114 save_ifs="$IFS"; IFS='~' 4093 4115 for cmd in $cmds; do 4094 4116 IFS="$save_ifs" 4117 eval cmd=\"$cmd\" 4095 4118 $show "$cmd" 4096 4119 $run eval "$cmd" || exit $? … … 4104 4127 fi 4105 4128 4106 exit 04129 exit $EXIT_SUCCESS 4107 4130 ;; 4108 4131 … … 4409 4432 4410 4433 # Now compile the dynamic symbol file. 4411 $show "(cd $output_objdir && $LTCC $archargs-c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")"4412 $run eval '(cd $output_objdir && $LTCC $archargs-c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $?4434 $show "(cd $output_objdir && $LTCC -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")" 4435 $run eval '(cd $output_objdir && $LTCC -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $? 4413 4436 4414 4437 # Clean up the generated files. … … 4422 4445 *) 4423 4446 $echo "$modename: unknown suffix for \`$dlsyms'" 1>&2 4424 exit 14447 exit $EXIT_FAILURE 4425 4448 ;; 4426 4449 esac … … 4510 4533 $show "$link_command" 4511 4534 $run eval "$link_command" || exit $? 4512 exit 04535 exit $EXIT_SUCCESS 4513 4536 fi 4514 4537 … … 4565 4588 4566 4589 # Quote $echo for shipping. 4567 if test "X$echo" = "X$SHELL $ 0--fallback-echo"; then4568 case $ 0in4569 [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $ 0--fallback-echo";;4570 *) qecho="$SHELL `pwd`/$ 0--fallback-echo";;4590 if test "X$echo" = "X$SHELL $progpath --fallback-echo"; then 4591 case $progpath in 4592 [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";; 4593 *) qecho="$SHELL `pwd`/$progpath --fallback-echo";; 4571 4594 esac 4572 4595 qecho=`$echo "X$qecho" | $Xsed -e "$sed_quote_subst"` … … 4594 4617 cwrapper=`$echo ${output}.exe` 4595 4618 $rm $cwrappersource $cwrapper 4596 trap "$rm $cwrappersource $cwrapper; exit 1" 1 2 154619 trap "$rm $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15 4597 4620 4598 4621 cat > $cwrappersource <<EOF … … 4603 4626 The $output program cannot be directly executed until all the libtool 4604 4627 libraries that it depends on are installed. 4605 4628 4606 4629 This wrapper executable should never be moved out of the build directory. 4607 4630 If it is, it will not operate correctly. … … 4635 4658 defined (__OS2__) 4636 4659 #define HAVE_DOS_BASED_FILE_SYSTEM 4637 #ifndef DIR_SEPARATOR_2 4660 #ifndef DIR_SEPARATOR_2 4638 4661 #define DIR_SEPARATOR_2 '\\' 4639 4662 #endif … … 4666 4689 char **newargz; 4667 4690 int i; 4668 4691 4669 4692 program_name = (char *) xstrdup ((char *) basename (argv[0])); 4670 4693 newargz = XMALLOC(char *, argc+2); … … 4679 4702 /* we know the script has the same name, without the .exe */ 4680 4703 /* so make sure newargz[1] doesn't end in .exe */ 4681 strendzap(newargz[1],".exe"); 4704 strendzap(newargz[1],".exe"); 4682 4705 for (i = 1; i < argc; i++) 4683 4706 newargz[i+1] = xstrdup(argv[i]); … … 4702 4725 } 4703 4726 4704 char * 4727 char * 4705 4728 xstrdup (const char *string) 4706 4729 { … … 4716 4739 #if defined (HAVE_DOS_BASED_FILE_SYSTEM) 4717 4740 /* Skip over the disk name in MSDOS pathnames. */ 4718 if (isalpha (name[0]) && name[1] == ':') 4741 if (isalpha (name[0]) && name[1] == ':') 4719 4742 name += 2; 4720 4743 #endif … … 4726 4749 } 4727 4750 4728 char * 4751 char * 4729 4752 fnqualify(const char *path) 4730 4753 { … … 4754 4777 4755 4778 char * 4756 strendzap(char *str, const char *pat) 4779 strendzap(char *str, const char *pat) 4757 4780 { 4758 4781 size_t len, patlen; … … 4774 4797 4775 4798 static void 4776 lt_error_core (int exit_status, const char * mode, 4799 lt_error_core (int exit_status, const char * mode, 4777 4800 const char * message, va_list ap) 4778 4801 { … … 4799 4822 # Since the "real" binary is built for $host, then this 4800 4823 # wrapper might as well be built for $host, too. 4801 $run $LTCC $archargs-s -o $cwrapper $cwrappersource4824 $run $LTCC -s -o $cwrapper $cwrappersource 4802 4825 ;; 4803 4826 esac 4804 4827 $rm $output 4805 trap "$rm $output; exit 1" 1 2 154828 trap "$rm $output; exit $EXIT_FAILURE" 1 2 15 4806 4829 4807 4830 $echo > $output "\ … … 4824 4847 # The HP-UX ksh and POSIX shell print the target directory to stdout 4825 4848 # if CDPATH is set. 4826 if test \"\${CDPATH+set}\" = set; then CDPATH=:; export CDPATH; fi 4849 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 4827 4850 4828 4851 relink_command=\"$relink_command\" … … 4903 4926 $echo \"\$relink_command_output\" >&2 4904 4927 $rm \"\$progdir/\$file\" 4905 exit 14928 exit $EXIT_FAILURE 4906 4929 fi 4907 4930 fi … … 4965 4988 $echo >> $output "\ 4966 4989 \$echo \"\$0: cannot exec \$program \${1+\"\$@\"}\" 4967 exit 14990 exit $EXIT_FAILURE 4968 4991 fi 4969 4992 else … … 4972 4995 \$echo \"This script is just a wrapper for \$program.\" 1>&2 4973 4996 $echo \"See the $PACKAGE documentation for more information.\" 1>&2 4974 exit 14997 exit $EXIT_FAILURE 4975 4998 fi 4976 4999 fi\ … … 4978 5001 chmod +x $output 4979 5002 fi 4980 exit 05003 exit $EXIT_SUCCESS 4981 5004 ;; 4982 5005 esac … … 5001 5024 if test -n "$addlibs"; then 5002 5025 gentop="$output_objdir/${outputname}x" 5003 $show "${rm}r $gentop"5004 $run ${rm}r "$gentop"5005 $show "$mkdir $gentop"5006 $run $mkdir "$gentop"5007 status=$?5008 if test "$status" -ne 0 && test ! -d "$gentop"; then5009 exit $status5010 fi5011 5026 generated="$generated $gentop" 5012 5027 5013 # Add in members from convenience archives. 5014 for xlib in $addlibs; do 5015 # Extract the objects. 5016 case $xlib in 5017 [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;; 5018 *) xabs=`pwd`"/$xlib" ;; 5019 esac 5020 xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'` 5021 xdir="$gentop/$xlib" 5022 5023 $show "${rm}r $xdir" 5024 $run ${rm}r "$xdir" 5025 $show "$mkdir $xdir" 5026 $run $mkdir "$xdir" 5027 status=$? 5028 if test "$status" -ne 0 && test ! -d "$xdir"; then 5029 exit $status 5030 fi 5031 case $host in 5032 *-*-darwin*) 5033 # ranlib-ed archives of fat binaries are converted to a fat xabs that 5034 # ar can't use. So we to split the fat xabs into non-fat ones to unpack. 5035 # We can't deal with duplicate names, since 'ar xN' and 'uniq -cd' don't work. 5036 d_archs=`lipo -info $xabs 2> /dev/null | grep '^Architectures' | sed 's/^.*: //'` 5037 if test -n "$d_archs"; then 5038 $echo "$modename: manually unpacking fat archive $xabs" 1>&2 5039 d_name=`basename $xabs` 5040 d_dir="/tmp/fat_ar.$$" 5041 d_files='' 5042 5043 for d_arch in $d_archs; do 5044 d_archdir="$d_dir/$d_arch" 5045 $show "$mkdir -p $d_archdir" 5046 $run $mkdir -p "$d_archdir" 5047 5048 $show "lipo -thin $d_arch $xabs -o $d_dir/$d_name" 5049 $run lipo -thin $d_arch "$xabs" -o "$d_dir/$d_name" 5050 5051 $show "(cd $d_archdir && $AR x $d_dir/$d_name)" 5052 $run eval "(cd \$d_archdir && \$AR x \$d_dir/\$d_name)" || exit $? 5053 5054 $show "${rm} $d_dir/$d_name" 5055 $run ${rm} "$d_dir/$d_name" 5056 done 5057 5058 # Can't deal with blanks in file names 5059 $run eval "d_files=\`find \$d_dir -type f | sed -e 's,.*/,,' -e '/ /d' | sort -u\`" || exit $? 5060 5061 for d_file in $d_files; do 5062 $run eval "d_f=\`find \$d_dir -name \$d_file -print\`" || exit $? 5063 $show "lipo -create $d_f -o $xdir/$d_file" 5064 $run eval "lipo -create \$d_f -o \"\$xdir/\$d_file\"" || exit $? 5065 done 5066 5067 $show "${rm}r $d_dir" 5068 $run ${rm}r "$d_dir" 5069 else 5070 $show "(cd $xdir && $AR x $xabs)" 5071 $run eval "(cd \$xdir && $AR x \$xabs)" || exit $? 5072 fi 5073 ;; 5074 *) 5075 # We will extract separately just the conflicting names and we will no 5076 # longer touch any unique names. It is faster to leave these extract 5077 # automatically by $AR in one run. 5078 $show "(cd $xdir && $AR x $xabs)" 5079 $run eval "(cd \$xdir && $AR x \$xabs)" || exit $? 5080 if ($AR t "$xabs" | sort | sort -uc >/dev/null 2>&1); then 5081 : 5082 else 5083 $echo "$modename: warning: object name conflicts; renaming object files" 1>&2 5084 $echo "$modename: warning: to ensure that they will not overwrite" 1>&2 5085 $AR t "$xabs" | sort | uniq -cd | while read -r count name 5086 do 5087 i=1 5088 while test "$i" -le "$count" 5089 do 5090 # Put our $i before any first dot (extension) 5091 # Never overwrite any file 5092 name_to="$name" 5093 while test "X$name_to" = "X$name" || test -f "$xdir/$name_to" 5094 do 5095 name_to=`$echo "X$name_to" | $Xsed -e "s/\([^.]*\)/\1-$i/"` 5096 done 5097 $show "(cd $xdir && $AR xN $i $xabs '$name' && $mv '$name' '$name_to')" 5098 $run eval "(cd \$xdir && $AR xN $i \$xabs '$name' && $mv '$name' '$name_to')" || exit $? 5099 i=`expr $i + 1` 5100 done 5101 done 5102 fi 5103 ;; 5104 esac 5105 5106 oldobjs="$oldobjs "`find $xdir -name \*.${objext} -print -o -name \*.lo -print | $NL2SP` 5107 done 5028 func_extract_archives $gentop $addlibs 5029 oldobjs="$oldobjs $func_extract_archives_result" 5108 5030 fi 5109 5031 5110 5032 # Do each command in the archive commands. 5111 5033 if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then 5112 eval cmds=\"$old_archive_from_new_cmds\" 5034 cmds=$old_archive_from_new_cmds 5113 5035 else 5114 5036 eval cmds=\"$old_archive_cmds\" … … 5116 5038 if len=`expr "X$cmds" : ".*"` && 5117 5039 test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then 5118 :5040 cmds=$old_archive_cmds 5119 5041 else 5120 5042 # the command line is too long to link in one step, link in parts … … 5143 5065 do 5144 5066 last_oldobj=$obj 5145 done 5067 done 5146 5068 for obj in $save_oldobjs 5147 5069 do … … 5157 5079 if test "$obj" = "$last_oldobj" ; then 5158 5080 RANLIB=$save_RANLIB 5159 fi 5160 test -z "$concat_cmds" || concat_cmds=$concat_cmds ${_S_}5081 fi 5082 test -z "$concat_cmds" || concat_cmds=$concat_cmds~ 5161 5083 eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\" 5162 5084 objlist= … … 5168 5090 eval cmds=\"\$concat_cmds\" 5169 5091 else 5170 eval cmds=\"\$concat_cmds ${_S_}$old_archive_cmds\"5171 fi 5172 fi 5173 fi 5174 save_ifs="$IFS"; IFS= $_S_5092 eval cmds=\"\$concat_cmds~\$old_archive_cmds\" 5093 fi 5094 fi 5095 fi 5096 save_ifs="$IFS"; IFS='~' 5175 5097 for cmd in $cmds; do 5098 eval cmd=\"$cmd\" 5176 5099 IFS="$save_ifs" 5177 5100 $show "$cmd" … … 5205 5128 done 5206 5129 # Quote the link command for shipping. 5207 relink_command="(cd `pwd`; $SHELL $ 0--mode=relink $libtool_args @inst_prefix_dir@)"5130 relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)" 5208 5131 relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"` 5132 if test "$hardcode_automatic" = yes ; then 5133 relink_command= 5134 fi 5135 5209 5136 5210 5137 # Only create the output if not a dry run. … … 5225 5152 if test -z "$libdir"; then 5226 5153 $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2 5227 exit 15154 exit $EXIT_FAILURE 5228 5155 fi 5229 5156 newdependency_libs="$newdependency_libs $libdir/$name" … … 5239 5166 if test -z "$libdir"; then 5240 5167 $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2 5241 exit 15168 exit $EXIT_FAILURE 5242 5169 fi 5243 5170 newdlfiles="$newdlfiles $libdir/$name" … … 5250 5177 if test -z "$libdir"; then 5251 5178 $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2 5252 exit 15179 exit $EXIT_FAILURE 5253 5180 fi 5254 5181 newdlprefiles="$newdlprefiles $libdir/$name" 5182 done 5183 dlprefiles="$newdlprefiles" 5184 else 5185 newdlfiles= 5186 for lib in $dlfiles; do 5187 case $lib in 5188 [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;; 5189 *) abs=`pwd`"/$lib" ;; 5190 esac 5191 newdlfiles="$newdlfiles $abs" 5192 done 5193 dlfiles="$newdlfiles" 5194 newdlprefiles= 5195 for lib in $dlprefiles; do 5196 case $lib in 5197 [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;; 5198 *) abs=`pwd`"/$lib" ;; 5199 esac 5200 newdlprefiles="$newdlprefiles $abs" 5255 5201 done 5256 5202 dlprefiles="$newdlprefiles" … … 5311 5257 ;; 5312 5258 esac 5313 exit 05259 exit $EXIT_SUCCESS 5314 5260 ;; 5315 5261 … … 5400 5346 $echo "$modename: you must specify an install program" 1>&2 5401 5347 $echo "$help" 1>&2 5402 exit 15348 exit $EXIT_FAILURE 5403 5349 fi 5404 5350 … … 5406 5352 $echo "$modename: the \`$prev' option requires an argument" 1>&2 5407 5353 $echo "$help" 1>&2 5408 exit 15354 exit $EXIT_FAILURE 5409 5355 fi 5410 5356 … … 5416 5362 fi 5417 5363 $echo "$help" 1>&2 5418 exit 15364 exit $EXIT_FAILURE 5419 5365 fi 5420 5366 … … 5437 5383 $echo "$modename: \`$dest' is not a directory" 1>&2 5438 5384 $echo "$help" 1>&2 5439 exit 15385 exit $EXIT_FAILURE 5440 5386 fi 5441 5387 fi … … 5449 5395 $echo "$modename: \`$destdir' must be an absolute directory name" 1>&2 5450 5396 $echo "$help" 1>&2 5451 exit 15397 exit $EXIT_FAILURE 5452 5398 ;; 5453 5399 esac … … 5478 5424 $echo "$modename: \`$file' is not a valid libtool archive" 1>&2 5479 5425 $echo "$help" 1>&2 5480 exit 15426 exit $EXIT_FAILURE 5481 5427 fi 5482 5428 … … 5520 5466 if test "$inst_prefix_dir" = "$destdir"; then 5521 5467 $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2 5522 exit 15468 exit $EXIT_FAILURE 5523 5469 fi 5524 5470 … … 5535 5481 else 5536 5482 $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2 5537 exit 15483 exit $EXIT_FAILURE 5538 5484 fi 5539 5485 fi … … 5570 5516 # Do each command in the postinstall commands. 5571 5517 lib="$destdir/$realname" 5572 eval cmds=\"$postinstall_cmds\"5573 save_ifs="$IFS"; IFS= $_S_5518 cmds=$postinstall_cmds 5519 save_ifs="$IFS"; IFS='~' 5574 5520 for cmd in $cmds; do 5575 5521 IFS="$save_ifs" 5522 eval cmd=\"$cmd\" 5576 5523 $show "$cmd" 5577 5524 $run eval "$cmd" || exit $? … … 5613 5560 $echo "$modename: cannot copy a libtool object to \`$destfile'" 1>&2 5614 5561 $echo "$help" 1>&2 5615 exit 15562 exit $EXIT_FAILURE 5616 5563 ;; 5617 5564 esac … … 5631 5578 $run eval "$install_prog \$staticobj \$staticdest" || exit $? 5632 5579 fi 5633 exit 05580 exit $EXIT_SUCCESS 5634 5581 ;; 5635 5582 … … 5685 5632 if test -z "$notinst_deplibs"; then 5686 5633 $echo "$modename: invalid libtool wrapper script \`$wrapper'" 1>&2 5687 exit 15634 exit $EXIT_FAILURE 5688 5635 fi 5689 5636 … … 5726 5673 test -n "$TMPDIR" && tmpdir="$TMPDIR" 5727 5674 tmpdir="$tmpdir/libtool-$$" 5728 if $mkdir -p "$tmpdir" && chmod 700 "$tmpdir"; then : 5675 save_umask=`umask` 5676 umask 0077 5677 if $mkdir "$tmpdir"; then 5678 umask $save_umask 5729 5679 else 5680 umask $save_umask 5730 5681 $echo "$modename: error: cannot create temporary directory \`$tmpdir'" 1>&2 5731 5682 continue … … 5786 5737 $run eval "$install_prog \$file \$oldlib" || exit $? 5787 5738 5788 if test -n "$stripme" && test -n "$ striplib"; then5739 if test -n "$stripme" && test -n "$old_striplib"; then 5789 5740 $show "$old_striplib $oldlib" 5790 5741 $run eval "$old_striplib $oldlib" || exit $? … … 5792 5743 5793 5744 # Do each command in the postinstall commands. 5794 eval cmds=\"$old_postinstall_cmds\"5795 save_ifs="$IFS"; IFS= $_S_5745 cmds=$old_postinstall_cmds 5746 save_ifs="$IFS"; IFS='~' 5796 5747 for cmd in $cmds; do 5797 5748 IFS="$save_ifs" 5749 eval cmd=\"$cmd\" 5798 5750 $show "$cmd" 5799 5751 $run eval "$cmd" || exit $? … … 5809 5761 # Maybe just do a dry run. 5810 5762 test -n "$run" && current_libdirs=" -n$current_libdirs" 5811 exec_cmd='$SHELL $ 0--finish$current_libdirs'5763 exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs' 5812 5764 else 5813 exit 05765 exit $EXIT_SUCCESS 5814 5766 fi 5815 5767 ;; … … 5830 5782 if test -n "$finish_cmds"; then 5831 5783 # Do each command in the finish commands. 5832 eval cmds=\"$finish_cmds\"5833 save_ifs="$IFS"; IFS= $_S_5784 cmds=$finish_cmds 5785 save_ifs="$IFS"; IFS='~' 5834 5786 for cmd in $cmds; do 5835 5787 IFS="$save_ifs" 5788 eval cmd=\"$cmd\" 5836 5789 $show "$cmd" 5837 5790 $run eval "$cmd" || admincmds="$admincmds … … 5850 5803 5851 5804 # Exit here if they wanted silent mode. 5852 test "$show" = : && exit 05805 test "$show" = : && exit $EXIT_SUCCESS 5853 5806 5854 5807 $echo "----------------------------------------------------------------------" … … 5886 5839 $echo "more information, such as the ld(1) and ld.so(8) manual pages." 5887 5840 $echo "----------------------------------------------------------------------" 5888 exit 05841 exit $EXIT_SUCCESS 5889 5842 ;; 5890 5843 … … 5898 5851 $echo "$modename: you must specify a COMMAND" 1>&2 5899 5852 $echo "$help" 5900 exit 15853 exit $EXIT_FAILURE 5901 5854 fi 5902 5855 … … 5906 5859 $echo "$modename: \`$file' is not a file" 1>&2 5907 5860 $echo "$help" 1>&2 5908 exit 15861 exit $EXIT_FAILURE 5909 5862 fi 5910 5863 … … 5917 5870 $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2 5918 5871 $echo "$help" 1>&2 5919 exit 15872 exit $EXIT_FAILURE 5920 5873 fi 5921 5874 … … 5944 5897 else 5945 5898 $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2 5946 exit 15899 exit $EXIT_FAILURE 5947 5900 fi 5948 5901 ;; … … 6016 5969 6017 5970 # Now prepare to actually exec the command. 6018 exec_cmd="\ $cmd$args"5971 exec_cmd="\"\$cmd\"$args" 6019 5972 else 6020 5973 # Display what would be done. … … 6023 5976 $echo "export $shlibpath_var" 6024 5977 fi 6025 $echo "$cmd$args"6026 exit 05978 eval \$echo \"\$cmd\"$args 5979 exit $EXIT_SUCCESS 6027 5980 fi 6028 5981 ;; … … 6052 6005 $echo "$modename: you must specify an RM program" 1>&2 6053 6006 $echo "$help" 1>&2 6054 exit 16007 exit $EXIT_FAILURE 6055 6008 fi 6056 6009 … … 6107 6060 if test -n "$library_names"; then 6108 6061 # Do each command in the postuninstall commands. 6109 eval cmds=\"$postuninstall_cmds\"6110 save_ifs="$IFS"; IFS= $_S_6062 cmds=$postuninstall_cmds 6063 save_ifs="$IFS"; IFS='~' 6111 6064 for cmd in $cmds; do 6112 6065 IFS="$save_ifs" 6066 eval cmd=\"$cmd\" 6113 6067 $show "$cmd" 6114 6068 $run eval "$cmd" … … 6122 6076 if test -n "$old_library"; then 6123 6077 # Do each command in the old_postuninstall commands. 6124 eval cmds=\"$old_postuninstall_cmds\"6125 save_ifs="$IFS"; IFS= $_S_6078 cmds=$old_postuninstall_cmds 6079 save_ifs="$IFS"; IFS='~' 6126 6080 for cmd in $cmds; do 6127 6081 IFS="$save_ifs" 6082 eval cmd=\"$cmd\" 6128 6083 $show "$cmd" 6129 6084 $run eval "$cmd" … … 6164 6119 noexename=$name 6165 6120 case $file in 6166 *.exe) 6121 *.exe) 6167 6122 file=`$echo $file|${SED} 's,.exe$,,'` 6168 6123 noexename=`$echo $name|${SED} 's,.exe$,,'` … … 6209 6164 $echo "$modename: you must specify a MODE" 1>&2 6210 6165 $echo "$generic_help" 1>&2 6211 exit 16166 exit $EXIT_FAILURE 6212 6167 ;; 6213 6168 esac … … 6216 6171 $echo "$modename: invalid operation mode \`$mode'" 1>&2 6217 6172 $echo "$generic_help" 1>&2 6218 exit 16173 exit $EXIT_FAILURE 6219 6174 fi 6220 6175 fi # test -z "$show_help" … … 6222 6177 if test -n "$exec_cmd"; then 6223 6178 eval exec $exec_cmd 6224 exit 16179 exit $EXIT_FAILURE 6225 6180 fi 6226 6181 … … 6258 6213 6259 6214 Report bugs to <bug-libtool@gnu.org>." 6260 exit 06215 exit $EXIT_SUCCESS 6261 6216 ;; 6262 6217 … … 6370 6325 -o OUTPUT-FILE create OUTPUT-FILE from the specified objects 6371 6326 -objectlist FILE Use a list of object files found in FILE to specify objects 6327 -precious-files-regex REGEX 6328 don't remove output files matching REGEX 6372 6329 -release RELEASE specify package release information 6373 6330 -rpath LIBDIR the created library will eventually be installed in LIBDIR … … 6411 6368 $echo "$modename: invalid operation mode \`$mode'" 1>&2 6412 6369 $echo "$help" 1>&2 6413 exit 16370 exit $EXIT_FAILURE 6414 6371 ;; 6415 6372 esac … … 6418 6375 $echo "Try \`$modename --help' for more information about other modes." 6419 6376 6420 exit 06377 exit $EXIT_SUCCESS 6421 6378 6422 6379 # The TAGs below are defined such that we never get into a situation
Note:
See TracChangeset
for help on using the changeset viewer.
