Changeset 3700
- Timestamp:
- Apr 13, 2005, 5:23:55 PM (21 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
-
psLib/config.guess (modified) (24 diffs)
-
psLib/config.sub (modified) (32 diffs)
-
psLib/ltmain.sh (modified) (15 diffs)
-
psLib/src/dataManip/psConstants.h (modified) (3 diffs)
-
psLib/src/math/psConstants.h (modified) (3 diffs)
-
psModules/src/pmObjects.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/config.guess
r3407 r3700 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 , 2004Free Software Foundation, Inc.5 6 timestamp='200 4-08-11'4 # 2000, 2001, 2002, 2003 Free Software Foundation, Inc. 5 6 timestamp='2003-06-17' 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 , 2002, 2003, 200456 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 57 57 Free Software Foundation, Inc. 58 58 … … 137 137 UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown 138 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 139 ## for Red Hat Linux 140 if test -f /etc/redhat-release ; then 141 VENDOR=redhat ; 142 else 143 VENDOR= ; 144 fi 148 145 149 146 # Note: order is significant - the case branches are not exclusive. … … 208 205 echo "${machine}-${os}${release}" 209 206 exit 0 ;; 210 amd64:OpenBSD:*:*)211 echo x86_64-unknown-openbsd${UNAME_RELEASE}212 exit 0 ;;213 207 amiga:OpenBSD:*:*) 214 208 echo m68k-unknown-openbsd${UNAME_RELEASE} … … 217 211 echo mipsel-unknown-openbsd${UNAME_RELEASE} 218 212 exit 0 ;; 219 cats:OpenBSD:*:*)220 echo arm-unknown-openbsd${UNAME_RELEASE}221 exit 0 ;;222 213 hp300:OpenBSD:*:*) 223 214 echo m68k-unknown-openbsd${UNAME_RELEASE} 224 215 exit 0 ;; 225 luna88k:OpenBSD:*:*)226 echo m88k-unknown-openbsd${UNAME_RELEASE}227 exit 0 ;;228 216 mac68k:OpenBSD:*:*) 229 217 echo m68k-unknown-openbsd${UNAME_RELEASE} … … 256 244 echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE} 257 245 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 ;;267 246 alpha:OSF1:*:*) 268 case $UNAME_RELEASE in 269 *4.0) 247 if test $UNAME_RELEASE = "V4.0"; then 270 248 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` 271 ;; 272 *5.*) 273 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` 274 ;; 275 esac 249 fi 276 250 # According to Compaq, /usr/sbin/psrinfo has been available on 277 251 # OSF/1 and Tru64 systems produced since 1995. I hope that … … 311 285 UNAME_MACHINE="alphaev79" ;; 312 286 esac 313 # A Pn.n version is a patched version.314 287 # A Vn.n version is a released version. 315 288 # A Tn.n version is a released field test version. 316 289 # A Xn.n version is an unreleased experimental baselevel. 317 290 # 1.2 uses "1.2" for uname -r. 318 echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 291 echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 292 exit 0 ;; 293 Alpha*:OpenVMS:*:*) 294 echo alpha-hp-vms 319 295 exit 0 ;; 320 296 Alpha\ *:Windows_NT*:*) … … 338 314 *:OS/390:*:*) 339 315 echo i370-ibm-openedition 340 exit 0 ;;341 *:OS400:*:*)342 echo powerpc-ibm-os400343 316 exit 0 ;; 344 317 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) … … 434 407 echo m68k-unknown-mint${UNAME_RELEASE} 435 408 exit 0 ;; 436 m68k:machten:*:*)437 echo m68k-apple-machten${UNAME_RELEASE}438 exit 0 ;;439 409 powerpc:machten:*:*) 440 410 echo powerpc-apple-machten${UNAME_RELEASE} … … 772 742 exit 0 ;; 773 743 *:UNICOS/mp:*:*) 774 echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'744 echo nv1-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 775 745 exit 0 ;; 776 746 F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) … … 780 750 echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" 781 751 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 ;;787 752 i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) 788 753 echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} … … 794 759 echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} 795 760 exit 0 ;; 796 *:FreeBSD:*:*) 797 echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` 761 *:FreeBSD:*:*|*:GNU/FreeBSD:*:*) 762 # Determine whether the default compiler uses glibc. 763 eval $set_cc_for_build 764 sed 's/^ //' << EOF >$dummy.c 765 #include <features.h> 766 #if __GLIBC__ >= 2 767 LIBC=gnu 768 #else 769 LIBC= 770 #endif 771 EOF 772 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=` 773 echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC} 798 774 exit 0 ;; 799 775 i*:CYGWIN*:*) … … 828 804 exit 0 ;; 829 805 *:GNU:*:*) 830 # the GNU system831 806 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 userland835 echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu836 807 exit 0 ;; 837 808 i*86:Minix:*:*) … … 839 810 exit 0 ;; 840 811 arm*:Linux:*:*) 841 echo ${UNAME_MACHINE}- ${VENDOR}-linux812 echo ${UNAME_MACHINE}-unknown-linux-gnu 842 813 exit 0 ;; 843 814 cris:Linux:*:*) 844 echo cris-axis-linux 815 echo cris-axis-linux-gnu 845 816 exit 0 ;; 846 817 ia64:Linux:*:*) 847 echo ${UNAME_MACHINE}-${VENDOR}-linux 848 exit 0 ;; 849 m32r*:Linux:*:*) 850 echo ${UNAME_MACHINE}-${VENDOR}-linux 818 echo ${UNAME_MACHINE}-${VENDOR:-unknown}-linux-gnu 851 819 exit 0 ;; 852 820 m68*:Linux:*:*) 853 echo ${UNAME_MACHINE}- ${VENDOR}-linux821 echo ${UNAME_MACHINE}-unknown-linux-gnu 854 822 exit 0 ;; 855 823 mips:Linux:*:*) … … 870 838 EOF 871 839 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=` 872 test x"${CPU}" != x && echo "${CPU}- ${VENDOR}-linux" && exit 0840 test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0 873 841 ;; 874 842 mips64:Linux:*:*) … … 889 857 EOF 890 858 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=` 891 test x"${CPU}" != x && echo "${CPU}- ${VENDOR}-linux" && exit 0859 test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0 892 860 ;; 893 861 ppc:Linux:*:*) 894 echo powerpc-${VENDOR }-linux862 echo powerpc-${VENDOR:-unknown}-linux-gnu 895 863 exit 0 ;; 896 864 ppc64:Linux:*:*) 897 echo powerpc64-${VENDOR }-linux865 echo powerpc64-${VENDOR:-unknown}-linux-gnu 898 866 exit 0 ;; 899 867 alpha:Linux:*:*) … … 908 876 esac 909 877 objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null 910 if test "$?" = 0 ; then LIBC=" -libc1" ; else LIBC="" ; fi911 echo ${UNAME_MACHINE}- ${VENDOR}-linux${LIBC}878 if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi 879 echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} 912 880 exit 0 ;; 913 881 parisc:Linux:*:* | hppa:Linux:*:*) 914 882 # Look for CPU level 915 883 case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in 916 PA7*) echo hppa1.1- ${VENDOR}-linux;;917 PA8*) echo hppa2.0- ${VENDOR}-linux;;918 *) echo hppa- ${VENDOR}-linux;;884 PA7*) echo hppa1.1-unknown-linux-gnu ;; 885 PA8*) echo hppa2.0-unknown-linux-gnu ;; 886 *) echo hppa-unknown-linux-gnu ;; 919 887 esac 920 888 exit 0 ;; 921 889 parisc64:Linux:*:* | hppa64:Linux:*:*) 922 echo hppa64- ${VENDOR}-linux890 echo hppa64-unknown-linux-gnu 923 891 exit 0 ;; 924 892 s390:Linux:*:* | s390x:Linux:*:*) 925 echo ${UNAME_MACHINE}- ibm-linux893 echo ${UNAME_MACHINE}-${VENDOR:-ibm}-linux-gnu 926 894 exit 0 ;; 927 895 sh64*:Linux:*:*) 928 echo ${UNAME_MACHINE}- ${VENDOR}-linux896 echo ${UNAME_MACHINE}-unknown-linux-gnu 929 897 exit 0 ;; 930 898 sh*:Linux:*:*) 931 echo ${UNAME_MACHINE}- ${VENDOR}-linux899 echo ${UNAME_MACHINE}-unknown-linux-gnu 932 900 exit 0 ;; 933 901 sparc:Linux:*:* | sparc64:Linux:*:*) 934 echo ${UNAME_MACHINE}- ${VENDOR}-linux902 echo ${UNAME_MACHINE}-unknown-linux-gnu 935 903 exit 0 ;; 936 904 x86_64:Linux:*:*) 937 echo x86_64-${VENDOR }-linux905 echo x86_64-${VENDOR:-unknown}-linux-gnu 938 906 exit 0 ;; 939 907 i*86:Linux:*:*) … … 950 918 case "$ld_supported_targets" in 951 919 elf32-i386) 952 TENTATIVE="${UNAME_MACHINE}- ${VENDOR}-linux"920 TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu" 953 921 ;; 954 922 a.out-i386-linux) 955 echo "${UNAME_MACHINE}- ${VENDOR}-linuxaout"923 echo "${UNAME_MACHINE}-pc-linux-gnuaout" 956 924 exit 0 ;; 957 925 coff-i386) 958 echo "${UNAME_MACHINE}- ${VENDOR}-linuxcoff"926 echo "${UNAME_MACHINE}-pc-linux-gnucoff" 959 927 exit 0 ;; 960 928 "") 961 # Either a pre-BFD a.out linker (linux oldld) or929 # Either a pre-BFD a.out linker (linux-gnuoldld) or 962 930 # one that does not give us useful --help. 963 echo "${UNAME_MACHINE}- ${VENDOR}-linuxoldld"931 echo "${UNAME_MACHINE}-pc-linux-gnuoldld" 964 932 exit 0 ;; 965 933 esac … … 985 953 #endif 986 954 #endif 987 #ifdef __dietlibc__988 LIBC=dietlibc989 #endif990 955 EOF 991 956 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=` 992 test x"${LIBC}" != x && echo "${UNAME_MACHINE}-${VENDOR }-linux-${LIBC}" | sed 's/linux-gnu/linux/'&& exit 0957 test x"${LIBC}" != x && echo "${UNAME_MACHINE}-${VENDOR:-pc}-linux-${LIBC}" && exit 0 993 958 test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0 994 959 ;; … … 1017 982 i*86:atheos:*:*) 1018 983 echo ${UNAME_MACHINE}-unknown-atheos 1019 exit 0 ;;1020 i*86:syllable:*:*)1021 echo ${UNAME_MACHINE}-pc-syllable1022 984 exit 0 ;; 1023 985 i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*) … … 1090 1052 echo m68k-diab-dnix 1091 1053 exit 0 ;; 1092 M68*:*:R3V[567 8]*:*)1054 M68*:*:R3V[567]*:*) 1093 1055 test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;; 1094 3[34 5]??:*: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)1056 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 | SHG2:*:4.0:3.0) 1095 1057 OS_REL='' 1096 1058 test -r /etc/.relid \ … … 1190 1152 exit 0 ;; 1191 1153 *:Darwin:*:*) 1192 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown 1193 case $UNAME_PROCESSOR in 1154 case `uname -p` in 1194 1155 *86) UNAME_PROCESSOR=i686 ;; 1195 unknown) UNAME_PROCESSOR=powerpc ;;1156 powerpc) UNAME_PROCESSOR=powerpc ;; 1196 1157 esac 1197 1158 echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} … … 1208 1169 echo i386-pc-qnx 1209 1170 exit 0 ;; 1210 NSR- ?:NONSTOP_KERNEL:*:*)1171 NSR-[DGKLNPTVW]:NONSTOP_KERNEL:*:*) 1211 1172 echo nsr-tandem-nsk${UNAME_RELEASE} 1212 1173 exit 0 ;; … … 1252 1213 echo mips-sei-seiux${UNAME_RELEASE} 1253 1214 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}" in1260 A*) echo alpha-dec-vms && exit 0 ;;1261 I*) echo ia64-dec-vms && exit 0 ;;1262 V*) echo vax-dec-vms && exit 0 ;;1263 esac1264 1215 esac 1265 1216 -
trunk/psLib/config.sub
r3407 r3700 2 2 # Configuration validation subroutine script. 3 3 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 4 # 2000, 2001, 2002, 2003 , 2004Free Software Foundation, Inc.5 6 timestamp='200 4-06-24'4 # 2000, 2001, 2002, 2003 Free Software Foundation, Inc. 5 6 timestamp='2003-06-18' 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 , 2002, 2003, 200473 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 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* | linux-dietlibc | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | \ 122 kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*) 121 nto-qnx* | linux-gnu* | freebsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*) 123 122 os=-$maybe_os 124 123 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` … … 146 145 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ 147 146 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ 148 -apple | -axis | -knuth | -cray)147 -apple | -axis) 149 148 os= 150 149 basic_machine=$1 … … 230 229 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ 231 230 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ 232 | am33_2.0 \233 231 | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \ 234 232 | c4x | clipper \ … … 237 235 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ 238 236 | i370 | i860 | i960 | ia64 \ 239 | ip2k | iq2000\240 | m32r | m 32rle | m68000 | m68k | m88k | mcore \237 | ip2k \ 238 | m32r | m68000 | m68k | m88k | mcore \ 241 239 | mips | mipsbe | mipseb | mipsel | mipsle \ 242 240 | mips16 \ … … 250 248 | mipsisa32r2 | mipsisa32r2el \ 251 249 | mipsisa64 | mipsisa64el \ 252 | mipsisa64r2 | mipsisa64r2el \253 250 | mipsisa64sb1 | mipsisa64sb1el \ 254 251 | mipsisa64sr71k | mipsisa64sr71kel \ … … 261 258 | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ 262 259 | pyramid \ 260 | s390 | s390x \ 263 261 | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \ 264 262 | sh64 | sh64le \ 265 | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv 8 | sparcv9 | sparcv9b \263 | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv9 | sparcv9b \ 266 264 | strongarm \ 267 265 | tahoe | thumb | tic4x | tic80 | tron \ … … 301 299 | bs2000-* \ 302 300 | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ 303 | clipper-* | c raynv-* | cydra-* \301 | clipper-* | cydra-* \ 304 302 | d10v-* | d30v-* | dlx-* \ 305 303 | elxsi-* \ … … 308 306 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ 309 307 | i*86-* | i860-* | i960-* | ia64-* \ 310 | ip2k-* | iq2000-*\311 | m32r-* | m32rle-*\308 | ip2k-* \ 309 | m32r-* \ 312 310 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ 313 311 | m88110-* | m88k-* | mcore-* \ … … 323 321 | mipsisa32r2-* | mipsisa32r2el-* \ 324 322 | mipsisa64-* | mipsisa64el-* \ 325 | mipsisa64r2-* | mipsisa64r2el-* \326 323 | mipsisa64sb1-* | mipsisa64sb1el-* \ 327 324 | mipsisa64sr71k-* | mipsisa64sr71kel-* \ 328 325 | mipstx39-* | mipstx39el-* \ 329 | mmix-* \330 326 | msp430-* \ 331 | none-* | np1-* | n s16k-* | ns32k-* \327 | none-* | np1-* | nv1-* | ns16k-* | ns32k-* \ 332 328 | orion-* \ 333 329 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ … … 335 331 | pyramid-* \ 336 332 | romp-* | rs6000-* \ 333 | s390-* | s390x-* \ 337 334 | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \ 338 335 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ 339 336 | sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \ 340 | sparcv 8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \337 | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \ 341 338 | tahoe-* | thumb-* \ 342 339 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ … … 365 362 os=-udi 366 363 ;; 367 abacus)368 basic_machine=abacus-unknown369 ;;370 364 adobe68k) 371 365 basic_machine=m68010-adobe … … 385 379 basic_machine=x86_64-pc 386 380 ;; 387 amd64-*)388 basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`389 ;;390 381 amdahl) 391 382 basic_machine=580-amdahl … … 447 438 os=-unicos 448 439 ;; 449 craynv)450 basic_machine=craynv-cray451 os=-unicosmp452 ;;453 cr16c)454 basic_machine=cr16c-unknown455 os=-elf456 ;;457 440 crds | unos) 458 441 basic_machine=m68k-crds … … 460 443 cris | cris-* | etrax*) 461 444 basic_machine=cris-axis 462 ;;463 crx)464 basic_machine=crx-unknown465 os=-elf466 445 ;; 467 446 da30 | da30-*) … … 664 643 mips3*) 665 644 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown 645 ;; 646 mmix*) 647 basic_machine=mmix-knuth 648 os=-mmixware 666 649 ;; 667 650 monitor) … … 745 728 basic_machine=np1-gould 746 729 ;; 730 nv1) 731 basic_machine=nv1-cray 732 os=-unicosmp 733 ;; 747 734 nsr-tandem) 748 735 basic_machine=nsr-tandem … … 756 743 os=-coff 757 744 ;; 758 os400)759 basic_machine=powerpc-ibm760 os=-os400761 ;;762 745 OSE68000 | ose68000) 763 746 basic_machine=m68000-ericsson … … 851 834 basic_machine=romp-ibm 852 835 ;; 853 s390 | s390-*)854 basic_machine=s390-ibm855 ;;856 s390x | s390x-*)857 basic_machine=s390x-ibm858 ;;859 836 sa29200) 860 837 basic_machine=a29k-amd … … 979 956 tower | tower-32) 980 957 basic_machine=m68k-ncr 981 ;;982 tpf)983 basic_machine=s390x-ibm984 os=-tpf985 958 ;; 986 959 udi29k) … … 1057 1030 basic_machine=romp-ibm 1058 1031 ;; 1059 mmix)1060 basic_machine=mmix-knuth1061 ;;1062 1032 rs6000) 1063 1033 basic_machine=rs6000-ibm … … 1082 1052 basic_machine=sh64-unknown 1083 1053 ;; 1084 sparc | sparcv 8 | sparcv9 | sparcv9b)1054 sparc | sparcv9 | sparcv9b) 1085 1055 basic_machine=sparc-sun 1086 1056 ;; … … 1155 1125 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ 1156 1126 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ 1157 | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* | -openbsd* \ 1158 | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ 1159 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ 1127 | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \ 1128 | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ 1160 1129 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ 1161 1130 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ 1162 1131 | -chorusos* | -chorusrdb* \ 1163 1132 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ 1164 | -mingw32* | -linux * | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \1133 | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \ 1165 1134 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ 1166 1135 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ … … 1168 1137 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ 1169 1138 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ 1170 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly*)1139 | -powermax* | -dnix* | -nx6 | -nx7 | -sei*) 1171 1140 # Remember, each alternative MUST END IN *, to match a version number. 1172 1141 ;; … … 1192 1161 os=`echo $os | sed -e 's|mac|macos|'` 1193 1162 ;; 1194 -linux -dietlibc)1195 os= -linux-dietlibc1163 -linux*) 1164 os=`echo $os | sed -e 's|linux|linux-gnu|'` 1196 1165 ;; 1197 1166 -sunos5*) … … 1204 1173 os=-openedition 1205 1174 ;; 1206 -os400*)1207 os=-os4001208 ;;1209 1175 -wince*) 1210 1176 os=-wince … … 1227 1193 -atheos*) 1228 1194 os=-atheos 1229 ;;1230 -syllable*)1231 os=-syllable1232 1195 ;; 1233 1196 -386bsd) … … 1252 1215 -sinix*) 1253 1216 os=-sysv4 1254 ;;1255 -tpf*)1256 os=-tpf1257 1217 ;; 1258 1218 -triton*) … … 1323 1283 os=-aout 1324 1284 ;; 1325 c4x-* | tic4x-*)1326 os=-coff1327 ;;1285 c4x-* | tic4x-*) 1286 os=-coff 1287 ;; 1328 1288 # This must come before the *-dec entry. 1329 1289 pdp10-*) … … 1371 1331 *-ibm) 1372 1332 os=-aix 1373 ;;1374 *-knuth)1375 os=-mmixware1376 1333 ;; 1377 1334 *-wec) … … 1507 1464 vendor=ibm 1508 1465 ;; 1509 -os400*)1510 vendor=ibm1511 ;;1512 1466 -ptx*) 1513 1467 vendor=sequent 1514 ;;1515 -tpf*)1516 vendor=ibm1517 1468 ;; 1518 1469 -vxsim* | -vxworks* | -windiss*) -
trunk/psLib/ltmain.sh
r3407 r3700 34 34 progpath="$0" 35 35 36 # RH: define SED for historic ltconfig's generated by Libtool 1.3 37 [ -z "$SED" ] && SED=sed 38 36 39 # The name of this program: 37 40 progname=`echo "$progpath" | $SED $basename` … … 44 47 PROGRAM=ltmain.sh 45 48 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 49 VERSION=1.5.6 50 TIMESTAMP=" (1.1220.2.95 2004/04/11 05:50:42)" 51 54 52 55 53 # Check that we have a working $echo. … … 240 238 esac 241 239 fi 242 }243 244 245 # func_extract_archives gentop oldlib ...246 func_extract_archives () {247 my_gentop="$1"; shift248 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"; then261 exit $my_status262 fi263 264 for my_xlib in $my_oldlibs; do265 # Extract the objects.266 case $my_xlib in267 [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;;268 *) my_xabs=`pwd`"/$my_xlib" ;;269 esac270 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"; then279 exit $status280 fi281 case $host in282 *-darwin*)283 $show "Extracting $my_xabs"284 # Do not bother doing anything if just a dry run285 if test -z "$run"; then286 darwin_orig_dir=`pwd`287 cd $my_xdir || exit $?288 darwin_archive=$my_xabs289 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"; then293 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 ; do297 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 || true301 $AR -d "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" __.SYMDEF\ SORTED 2>/dev/null || true302 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_arches307 ## 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; do312 darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP`313 lipo -create -output "$darwin_file" $darwin_files314 done # $darwin_filelist315 rm -rf unfat-$$316 cd "$darwin_orig_dir"317 else318 cd $darwin_orig_dir319 (cd $my_xdir && $AR x $my_xabs) || exit $?320 fi # $darwin_arches321 fi # $run322 ;;323 *)324 # We will extract separately just the conflicting names and we will325 # no longer touch any unique names. It is faster to leave these326 # 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); then330 :331 else332 $echo "$modename: warning: object name conflicts; renaming object files" 1>&2333 $echo "$modename: warning: to ensure that they will not overwrite" 1>&2334 $AR t "$my_xabs" | sort | uniq -cd | while read -r count name335 do336 i=1337 while test "$i" -le "$count"338 do339 # Put our $i before any first dot (extension)340 # Never overwrite any file341 name_to="$name"342 while test "X$name_to" = "X$name" || test -f "$my_xdir/$name_to"343 do344 name_to=`$echo "X$name_to" | $Xsed -e "s/\([^.]*\)/\1-$i/"`345 done346 $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 done350 done351 fi352 ;;353 esac354 my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`355 done356 357 func_extract_archives_result="$my_oldobjs"358 240 } 359 241 # End of Shell function definitions … … 2100 1982 case $linkmode in 2101 1983 lib) 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 1984 if test "$deplibs_check_method" != pass_all; then 2118 1985 $echo 2119 1986 $echo "*** Warning: Trying to link with static lib archive $deplib." … … 2288 2155 fi 2289 2156 else 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 2157 dir="$ladir/$objdir" 2158 absdir="$abs_ladir/$objdir" 2159 # Remove this search path later 2160 notinst_path="$notinst_path $abs_ladir" 2301 2161 fi # $installed = yes 2302 2162 name=`$echo "X$laname" | $Xsed -e 's/\.la$//' -e 's/^lib//'` … … 3085 2945 # Check that each of the things are valid numbers. 3086 2946 case $current in 3087 0 | [1-9] | [1-9][0-9] | [1-9][0-9][0-9]) ;;2947 [0-9]*) ;; 3088 2948 *) 3089 2949 $echo "$modename: CURRENT \`$current' is not a nonnegative integer" 1>&2 … … 3094 2954 3095 2955 case $revision in 3096 0 | [1-9] | [1-9][0-9] | [1-9][0-9][0-9]) ;;2956 [0-9]*) ;; 3097 2957 *) 3098 2958 $echo "$modename: REVISION \`$revision' is not a nonnegative integer" 1>&2 … … 3103 2963 3104 2964 case $age in 3105 0 | [1-9] | [1-9][0-9] | [1-9][0-9][0-9]) ;;2965 [0-9]*) ;; 3106 2966 *) 3107 2967 $echo "$modename: AGE \`$age' is not a nonnegative integer" 1>&2 … … 3131 2991 # Darwin ld doesn't like 0 for these options... 3132 2992 minor_current=`expr $current + 1` 3133 verstring=" ${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"2993 verstring="-compatibility_version $minor_current -current_version $minor_current.$revision" 3134 2994 ;; 3135 2995 … … 3819 3679 else 3820 3680 gentop="$output_objdir/${outputname}x" 3681 $show "${rm}r $gentop" 3682 $run ${rm}r "$gentop" 3683 $show "$mkdir $gentop" 3684 $run $mkdir "$gentop" 3685 status=$? 3686 if test "$status" -ne 0 && test ! -d "$gentop"; then 3687 exit $status 3688 fi 3821 3689 generated="$generated $gentop" 3822 3690 3823 func_extract_archives $gentop $convenience 3824 libobjs="$libobjs $func_extract_archives_result" 3825 fi 3826 fi 3827 3691 for xlib in $convenience; do 3692 # Extract the objects. 3693 case $xlib in 3694 [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;; 3695 *) xabs=`pwd`"/$xlib" ;; 3696 esac 3697 xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'` 3698 xdir="$gentop/$xlib" 3699 3700 $show "${rm}r $xdir" 3701 $run ${rm}r "$xdir" 3702 $show "$mkdir $xdir" 3703 $run $mkdir "$xdir" 3704 status=$? 3705 if test "$status" -ne 0 && test ! -d "$xdir"; then 3706 exit $status 3707 fi 3708 # We will extract separately just the conflicting names and we will no 3709 # longer touch any unique names. It is faster to leave these extract 3710 # automatically by $AR in one run. 3711 $show "(cd $xdir && $AR x $xabs)" 3712 $run eval "(cd \$xdir && $AR x \$xabs)" || exit $? 3713 if ($AR t "$xabs" | sort | sort -uc >/dev/null 2>&1); then 3714 : 3715 else 3716 $echo "$modename: warning: object name conflicts; renaming object files" 1>&2 3717 $echo "$modename: warning: to ensure that they will not overwrite" 1>&2 3718 $AR t "$xabs" | sort | uniq -cd | while read -r count name 3719 do 3720 i=1 3721 while test "$i" -le "$count" 3722 do 3723 # Put our $i before any first dot (extension) 3724 # Never overwrite any file 3725 name_to="$name" 3726 while test "X$name_to" = "X$name" || test -f "$xdir/$name_to" 3727 do 3728 name_to=`$echo "X$name_to" | $Xsed -e "s/\([^.]*\)/\1-$i/"` 3729 done 3730 $show "(cd $xdir && $AR xN $i $xabs '$name' && $mv '$name' '$name_to')" 3731 $run eval "(cd \$xdir && $AR xN $i \$xabs '$name' && $mv '$name' '$name_to')" || exit $? 3732 i=`expr $i + 1` 3733 done 3734 done 3735 fi 3736 3737 libobjs="$libobjs "`find $xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP` 3738 done 3739 fi 3740 fi 3741 3828 3742 if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then 3829 3743 eval flag=\"$thread_safe_flag_spec\" … … 4063 3977 else 4064 3978 gentop="$output_objdir/${obj}x" 3979 $show "${rm}r $gentop" 3980 $run ${rm}r "$gentop" 3981 $show "$mkdir $gentop" 3982 $run $mkdir "$gentop" 3983 status=$? 3984 if test "$status" -ne 0 && test ! -d "$gentop"; then 3985 exit $status 3986 fi 4065 3987 generated="$generated $gentop" 4066 3988 4067 func_extract_archives $gentop $convenience 4068 reload_conv_objs="$reload_objs $func_extract_archives_result" 3989 for xlib in $convenience; do 3990 # Extract the objects. 3991 case $xlib in 3992 [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;; 3993 *) xabs=`pwd`"/$xlib" ;; 3994 esac 3995 xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'` 3996 xdir="$gentop/$xlib" 3997 3998 $show "${rm}r $xdir" 3999 $run ${rm}r "$xdir" 4000 $show "$mkdir $xdir" 4001 $run $mkdir "$xdir" 4002 status=$? 4003 if test "$status" -ne 0 && test ! -d "$xdir"; then 4004 exit $status 4005 fi 4006 # We will extract separately just the conflicting names and we will no 4007 # longer touch any unique names. It is faster to leave these extract 4008 # automatically by $AR in one run. 4009 $show "(cd $xdir && $AR x $xabs)" 4010 $run eval "(cd \$xdir && $AR x \$xabs)" || exit $? 4011 if ($AR t "$xabs" | sort | sort -uc >/dev/null 2>&1); then 4012 : 4013 else 4014 $echo "$modename: warning: object name conflicts; renaming object files" 1>&2 4015 $echo "$modename: warning: to ensure that they will not overwrite" 1>&2 4016 $AR t "$xabs" | sort | uniq -cd | while read -r count name 4017 do 4018 i=1 4019 while test "$i" -le "$count" 4020 do 4021 # Put our $i before any first dot (extension) 4022 # Never overwrite any file 4023 name_to="$name" 4024 while test "X$name_to" = "X$name" || test -f "$xdir/$name_to" 4025 do 4026 name_to=`$echo "X$name_to" | $Xsed -e "s/\([^.]*\)/\1-$i/"` 4027 done 4028 $show "(cd $xdir && $AR xN $i $xabs '$name' && $mv '$name' '$name_to')" 4029 $run eval "(cd \$xdir && $AR xN $i \$xabs '$name' && $mv '$name' '$name_to')" || exit $? 4030 i=`expr $i + 1` 4031 done 4032 done 4033 fi 4034 4035 reload_conv_objs="$reload_objs "`find $xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP` 4036 done 4069 4037 fi 4070 4038 fi … … 4847 4815 # The HP-UX ksh and POSIX shell print the target directory to stdout 4848 4816 # if CDPATH is set. 4849 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 4817 if test \"\${CDPATH+set}\" = set; then CDPATH=:; export CDPATH; fi 4850 4818 4851 4819 relink_command=\"$relink_command\" … … 5024 4992 if test -n "$addlibs"; then 5025 4993 gentop="$output_objdir/${outputname}x" 4994 $show "${rm}r $gentop" 4995 $run ${rm}r "$gentop" 4996 $show "$mkdir $gentop" 4997 $run $mkdir "$gentop" 4998 status=$? 4999 if test "$status" -ne 0 && test ! -d "$gentop"; then 5000 exit $status 5001 fi 5026 5002 generated="$generated $gentop" 5027 5003 5028 func_extract_archives $gentop $addlibs 5029 oldobjs="$oldobjs $func_extract_archives_result" 5004 # Add in members from convenience archives. 5005 for xlib in $addlibs; do 5006 # Extract the objects. 5007 case $xlib in 5008 [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;; 5009 *) xabs=`pwd`"/$xlib" ;; 5010 esac 5011 xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'` 5012 xdir="$gentop/$xlib" 5013 5014 $show "${rm}r $xdir" 5015 $run ${rm}r "$xdir" 5016 $show "$mkdir $xdir" 5017 $run $mkdir "$xdir" 5018 status=$? 5019 if test "$status" -ne 0 && test ! -d "$xdir"; then 5020 exit $status 5021 fi 5022 # We will extract separately just the conflicting names and we will no 5023 # longer touch any unique names. It is faster to leave these extract 5024 # automatically by $AR in one run. 5025 $show "(cd $xdir && $AR x $xabs)" 5026 $run eval "(cd \$xdir && $AR x \$xabs)" || exit $? 5027 if ($AR t "$xabs" | sort | sort -uc >/dev/null 2>&1); then 5028 : 5029 else 5030 $echo "$modename: warning: object name conflicts; renaming object files" 1>&2 5031 $echo "$modename: warning: to ensure that they will not overwrite" 1>&2 5032 $AR t "$xabs" | sort | uniq -cd | while read -r count name 5033 do 5034 i=1 5035 while test "$i" -le "$count" 5036 do 5037 # Put our $i before any first dot (extension) 5038 # Never overwrite any file 5039 name_to="$name" 5040 while test "X$name_to" = "X$name" || test -f "$xdir/$name_to" 5041 do 5042 name_to=`$echo "X$name_to" | $Xsed -e "s/\([^.]*\)/\1-$i/"` 5043 done 5044 $show "(cd $xdir && $AR xN $i $xabs '$name' && $mv '$name' '$name_to')" 5045 $run eval "(cd \$xdir && $AR xN $i \$xabs '$name' && $mv '$name' '$name_to')" || exit $? 5046 i=`expr $i + 1` 5047 done 5048 done 5049 fi 5050 5051 oldobjs="$oldobjs "`find $xdir -name \*.${objext} -print -o -name \*.lo -print | $NL2SP` 5052 done 5030 5053 fi 5031 5054 … … 5969 5992 5970 5993 # Now prepare to actually exec the command. 5971 exec_cmd="\ "\$cmd\"$args"5994 exec_cmd="\$cmd$args" 5972 5995 else 5973 5996 # Display what would be done. … … 5976 5999 $echo "export $shlibpath_var" 5977 6000 fi 5978 eval \$echo \"\$cmd\"$args6001 $echo "$cmd$args" 5979 6002 exit $EXIT_SUCCESS 5980 6003 fi -
trunk/psLib/src/dataManip/psConstants.h
r3598 r3700 6 6 * @author GLG, MHPCC 7 7 * 8 * @version $Revision: 1.6 3$ $Name: not supported by cvs2svn $9 * @date $Date: 2005-0 3-31 23:01:46$8 * @version $Revision: 1.64 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2005-04-14 03:23:55 $ 10 10 * 11 11 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 13 13 * XXX: Add parenthesis around all arguments so that these macros can be 14 14 * called with complex expressions. 15 * 16 * XXX: All functions which use the PS_CHECK macros must be scrutinized so 17 * that we ensure that an argument which is expected to be output is 18 * psFree'ed before reurning NULL. 15 19 * 16 20 */ … … 195 199 CLEANUP; \ 196 200 } \ 197 198 // XXX: The above macro is seg faulting on occasion in pmObjects.199 #define PS_ORIG_VECTOR_CHECK_NULL(NAME, RVAL) \200 if (NAME == NULL || NAME->data.U8 == NULL) { \201 psError(PS_ERR_BAD_PARAMETER_NULL, true, \202 "Unallowable operation: psVector %s or its data is NULL.", \203 #NAME); \204 return(RVAL); \205 } \206 207 201 208 202 #define PS_VECTOR_CHECK_EMPTY(NAME, RVAL) PS_VECTOR_CHECK_EMPTY_GENERAL(NAME, return RVAL) -
trunk/psLib/src/math/psConstants.h
r3598 r3700 6 6 * @author GLG, MHPCC 7 7 * 8 * @version $Revision: 1.6 3$ $Name: not supported by cvs2svn $9 * @date $Date: 2005-0 3-31 23:01:46$8 * @version $Revision: 1.64 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2005-04-14 03:23:55 $ 10 10 * 11 11 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 13 13 * XXX: Add parenthesis around all arguments so that these macros can be 14 14 * called with complex expressions. 15 * 16 * XXX: All functions which use the PS_CHECK macros must be scrutinized so 17 * that we ensure that an argument which is expected to be output is 18 * psFree'ed before reurning NULL. 15 19 * 16 20 */ … … 195 199 CLEANUP; \ 196 200 } \ 197 198 // XXX: The above macro is seg faulting on occasion in pmObjects.199 #define PS_ORIG_VECTOR_CHECK_NULL(NAME, RVAL) \200 if (NAME == NULL || NAME->data.U8 == NULL) { \201 psError(PS_ERR_BAD_PARAMETER_NULL, true, \202 "Unallowable operation: psVector %s or its data is NULL.", \203 #NAME); \204 return(RVAL); \205 } \206 207 201 208 202 #define PS_VECTOR_CHECK_EMPTY(NAME, RVAL) PS_VECTOR_CHECK_EMPTY_GENERAL(NAME, return RVAL) -
trunk/psModules/src/pmObjects.c
r3699 r3700 5 5 * @author GLG, MHPCC 6 6 * 7 * @version $Revision: 1.1 6$ $Name: not supported by cvs2svn $8 * @date $Date: 2005-04-14 0 2:42:41 $7 * @version $Revision: 1.17 $ $Name: not supported by cvs2svn $ 8 * @date $Date: 2005-04-14 03:22:51 $ 9 9 * 10 10 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii
Note:
See TracChangeset
for help on using the changeset viewer.
