| 16 |
|
echo "Set the environment variable RAYPATH=.:$ldir" |
| 17 |
|
echo 'For C-shell users, put the following into ~/.cshrc' |
| 18 |
|
echo " setenv RAYPATH .:$ldir" |
| 19 |
< |
echo 'For Bourne shell users, put the following into $HOME/profile' |
| 19 |
> |
echo 'For Bourne shell users, put the following into $HOME/.profile' |
| 20 |
|
echo " RAYPATH=.:$ldir" |
| 21 |
|
echo " export RAYPATH" |
| 22 |
|
echo "" |
| 23 |
|
exit 0 |
| 24 |
|
endif |
| 25 |
< |
set srcdirs=( common meta cv gen ot rt px hd util cal ) |
| 25 |
> |
set srcdirs=( common rt meta cv gen ot px hd util cal ) |
| 26 |
|
if ( "$1" == install ) then |
| 27 |
|
cat << _EOF_ |
| 28 |
|
|
| 100 |
|
Please select your system type from the following list: |
| 101 |
|
|
| 102 |
|
1) Sun Solaris |
| 103 |
< |
2) HP workstation |
| 104 |
< |
3) Silicon Graphics |
| 105 |
< |
4) AIX (RS/6000) |
| 106 |
< |
5) BSDI BSD/386 |
| 107 |
< |
6) Linux |
| 108 |
< |
7) MacOS X |
| 109 |
< |
8) FreeBSD |
| 110 |
< |
9) Cygwin |
| 111 |
< |
10) Other |
| 103 |
> |
2) Linux |
| 104 |
> |
3) MacOS X |
| 105 |
> |
4) FreeBSD |
| 106 |
> |
5) Cygwin |
| 107 |
> |
6) Other |
| 108 |
|
|
| 109 |
|
_EOF_ |
| 110 |
|
echo -n "Choice? " |
| 113 |
|
case 1: # SPARC Station |
| 114 |
|
set arch=sun |
| 115 |
|
set mach="-I/usr/openwin/include -L/usr/openwin/lib -DNOSTEREO" |
| 120 |
– |
set opt="-O -DSPEED=80" |
| 121 |
– |
set compat="bmalloc.o strcmp.o getpagesize.o" |
| 122 |
– |
breaksw |
| 123 |
– |
case 2: # HP workstation |
| 124 |
– |
set mach="" |
| 125 |
– |
set opt="-O -DSPEED=80 -Aa -D_HPUX_SOURCE" |
| 126 |
– |
set compat="bmalloc.o getpagesize.o strcmp.o" |
| 127 |
– |
set arch=hpux |
| 128 |
– |
breaksw |
| 129 |
– |
case 3: # Silicon Graphics |
| 130 |
– |
set arch=sgi |
| 131 |
– |
switch (`uname -r`) |
| 132 |
– |
case 3.*: |
| 133 |
– |
set mach="-noprototypes" |
| 134 |
– |
set opt="-O -DSPEED=80" |
| 135 |
– |
set special="sgi" |
| 136 |
– |
set compat="malloc.o strcmp.o" |
| 137 |
– |
breaksw |
| 138 |
– |
case 4.*: |
| 139 |
– |
set mach="" |
| 140 |
– |
set opt="-O2 -DSPEED=100" |
| 141 |
– |
set compat="malloc.o strcmp.o" |
| 142 |
– |
set extras='"MLIB=-lfastm -lm"' |
| 143 |
– |
breaksw |
| 144 |
– |
default: # 5.x or later |
| 145 |
– |
ln -s `which wish` $idir/wish4.0 |
| 146 |
– |
set path=($idir $path) |
| 147 |
– |
set mach="-w" |
| 148 |
– |
set opt="-O2 -DSPEED=200" |
| 149 |
– |
set special="ogl" |
| 150 |
– |
set compat="bmalloc.o strcmp.o" |
| 151 |
– |
breaksw |
| 152 |
– |
endsw |
| 153 |
– |
breaksw |
| 154 |
– |
case 4: # AIX |
| 116 |
|
set opt="-O" |
| 117 |
< |
set compat="bmalloc.o erf.o strcmp.o" |
| 157 |
< |
set arch=PowerPC |
| 117 |
> |
set compat="strcmp.o" |
| 118 |
|
breaksw |
| 119 |
< |
case 5: # BSDI BSD/386 |
| 160 |
< |
set mach="-DBSD -L/usr/X11/lib -I/usr/X11/include" |
| 161 |
< |
set opt="-O -DSPEED=100" |
| 162 |
< |
set arch=IBMPC |
| 163 |
< |
set compat="malloc.o erf.o strcmp.o" |
| 164 |
< |
breaksw |
| 165 |
< |
case 6: # Linux |
| 119 |
> |
case 2: # Linux |
| 120 |
|
set mach="-Dlinux -D_FILE_OFFSET_BITS=64 -L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO" |
| 121 |
< |
set opt="-O2 -DSPEED=200" |
| 121 |
> |
set opt="-O2" |
| 122 |
|
set arch=IBMPC |
| 123 |
< |
set compat="bmalloc.o erf.o getpagesize.o" |
| 123 |
> |
set compat="erf.o" |
| 124 |
|
set extras=CC=gcc |
| 125 |
|
breaksw |
| 126 |
< |
case 7: # MacOS X |
| 126 |
> |
case 3: # MacOS X |
| 127 |
|
set mach="-DBSD -DNOSTEREO -Dfreebsd -I/usr/X11R6/include -L/usr/X11R6/lib" |
| 128 |
< |
set opt="-O2 -DSPEED=200" |
| 129 |
< |
set arch=PowerPC |
| 130 |
< |
set compat="bmalloc.o" |
| 177 |
< |
set extras="CC=cc CONFIGURE_ARCH=powerpc" |
| 128 |
> |
set opt="-O2" |
| 129 |
> |
set arch=Intel |
| 130 |
> |
set extras="CC=cc CONFIGURE_ARCH=i386" |
| 131 |
|
set special="ogl" |
| 132 |
|
breaksw |
| 133 |
< |
case 8: # FreeBSD |
| 133 |
> |
case 4: # FreeBSD |
| 134 |
|
set mach="-DBSD -DNOSTEREO -Dfreebsd -I/usr/X11R6/include -L/usr/X11R6/lib" |
| 135 |
< |
set opt="-O -DSPEED=200" |
| 136 |
< |
set compat="bmalloc.o erf.o" |
| 137 |
< |
set extras="CC=cc" |
| 135 |
> |
set opt="-O" |
| 136 |
> |
set compat="erf.o" |
| 137 |
> |
set extras='CC=cc MLIB="-lcompat -lm"' |
| 138 |
|
set arch=IBMPC |
| 139 |
|
breaksw |
| 140 |
< |
case 9: # Cygwin |
| 140 |
> |
case 5: # Cygwin |
| 141 |
|
set mach="-Dfreebsd -L/usr/lib -L/usr/X11R6/lib -I/usr/include/X11 -I/usr/X11R6/include -DNOSTEREO" |
| 142 |
< |
set opt="-O2 -DSPEED=200" |
| 142 |
> |
set opt="-O2" |
| 143 |
|
set arch=IBMPC |
| 144 |
< |
set compat="bmalloc.o erf.o getpagesize.o" |
| 144 |
> |
set compat="erf.o" |
| 145 |
|
set extras="CC=gcc" |
| 146 |
|
set special="ogl" |
| 147 |
|
set esuffix=".exe" |
| 148 |
|
breaksw |
| 149 |
< |
case 10: # Other |
| 149 |
> |
case 6: # Other |
| 150 |
|
set opt="-O" |
| 151 |
< |
set compat="bmalloc.o erf.o strcmp.o" |
| 151 |
> |
set compat="erf.o strcmp.o" |
| 152 |
|
echo -n "Are you using the GNU C compiler [n]? " |
| 153 |
|
if ( "$<" =~ [yY]* ) then |
| 154 |
|
set extras="CC=gcc" |
| 214 |
|
echo "Add $idir to the beginning of your execution path:" |
| 215 |
|
echo 'For C-shell users, put the following into ~/.cshrc' |
| 216 |
|
echo " set path=( $idir "'$path )' |
| 217 |
< |
echo 'For Bourne shell users, put the following into $HOME/profile' |
| 217 |
> |
echo 'For Bourne shell users, put the following into $HOME/.profile' |
| 218 |
|
echo " PATH=$idir"':$PATH' |
| 219 |
|
echo " export PATH" |
| 220 |
|
endif |
| 230 |
|
foreach i ( $* ) |
| 231 |
|
if ( "$i" == clean ) then |
| 232 |
|
echo "Removing library archives..." |
| 233 |
< |
rm -f src/lib/*.[ao] |
| 233 |
> |
rm -f src/lib/*.{a,o,la} |
| 234 |
|
endif |
| 235 |
|
end |
| 236 |
|
echo "Done." |