| 1 |
#! /bin/bash |
| 2 |
# .COPYRIGHT: Copyright (c) 1988-2011 European Southern Observatory, |
| 3 |
# all rights reserved |
| 4 |
# .TYPE command |
| 5 |
# .NAME install1.sh |
| 6 |
# .LANGUAGE shell script |
| 7 |
# .ENVIRONMENT Unix Systems. Executable under SHELL and C-SHELL |
| 8 |
# .COMMENTS Installation procedure of the MIDAS system starting from |
| 9 |
# scratch. |
| 10 |
# Usage: install system [options] |
| 11 |
# |
| 12 |
# .AUTHOR Carlos Guirao |
| 13 |
# .VERSION 1.1 25-Oct-1989: Implementation |
| 14 |
# .VERSION 1.2 05-Dec-1989: Adding "echo" definition |
| 15 |
# .VERSION 1.3 910219: Removing System name argument |
| 16 |
# .VERSION 1.4 911004: Removing "set -x +x" ignored by some |
| 17 |
# .VERSION 1.5 911118: Checking Fortran and C compiler. |
| 18 |
# .VERSION 2.1 920324: Creating makemidas first. |
| 19 |
# .VERSION 3.1 930325: Using default.mk. CG. |
| 20 |
# .VERSION 4.1 940124: OS library does not require computer.h |
| 21 |
# .VERSION 4.2 021028: Using -a argument for automatic |
| 22 |
# |
| 23 |
# 111116 last modif |
| 24 |
|
| 25 |
# the install1 script is called with one parameter |
| 26 |
# from script config (a) or autoconfig (b) |
| 27 |
# |
| 28 |
# par1 = auto - use automatic (default) compiler checks for setting |
| 29 |
# up /midas/version/local/make_options |
| 30 |
# and start Midas installation (a) |
| 31 |
# = manual - use make_options file as it is, no further checks, |
| 32 |
# and start Midas installation (a) |
| 33 |
# |
| 34 |
# or = -a - as 'auto' but with no interaction (b) |
| 35 |
# |
| 36 |
# this parameter is saved as option INSTALL_FLAG in |
| 37 |
# the file /midas/version/local/make_options |
| 38 |
|
| 39 |
INSTALL_FLAG=$1 |
| 40 |
|
| 41 |
echo=echo |
| 42 |
if [ "`echo -n`" = "-n" ] ; then |
| 43 |
SV_NONL="\c" |
| 44 |
else |
| 45 |
echo="echo -n" |
| 46 |
fi |
| 47 |
|
| 48 |
# |
| 49 |
# First of all, goto the config directory MID_INSTALL |
| 50 |
# <dirname> & <basename> commands emulated with <sed> |
| 51 |
# cd `dirname $0` |
| 52 |
# MIDVERS=`basename $VERSDIR` |
| 53 |
# MIDASHOME=`dirname $VERSDIR` |
| 54 |
# |
| 55 |
if [ -z "$MIDASHOME" -o -z "$MIDVERS" ] ; then |
| 56 |
cd `echo $0 | sed -e 's/[^\/]*$//' -e 's/^$/./' -e 's/\/$//'` |
| 57 |
MID_INSTALL=`pwd` |
| 58 |
VERSDIR=`echo $MID_INSTALL | sed 's/\/install\/unix$//'` |
| 59 |
MIDVERS=`echo $VERSDIR | sed -e 's/^.*\///'` |
| 60 |
MIDASHOME=`echo $VERSDIR | sed -e 's/[^\/]*$//' -e 's/^$/./' -e 's/\/$//'` |
| 61 |
else |
| 62 |
cd $MIDASHOME/$MIDVERS/install/unix |
| 63 |
fi |
| 64 |
|
| 65 |
MID_INSTALL=$MIDASHOME/$MIDVERS/install/unix |
| 66 |
MID_HOME=$MIDASHOME/$MIDVERS |
| 67 |
PATH=$PATH:$MID_INSTALL |
| 68 |
export MIDASHOME MIDVERS MID_HOME MID_INSTALL |
| 69 |
|
| 70 |
clear |
| 71 |
|
| 72 |
# ************** make_options file already final ************* |
| 73 |
if [ $INSTALL_FLAG = "67" ]; then |
| 74 |
export SV_NONL CMND_YES |
| 75 |
$MID_INSTALL/install3 manual |
| 76 |
exit 0 |
| 77 |
fi |
| 78 |
# ************************************************************ |
| 79 |
|
| 80 |
if [ ! -f "$MID_HOME/local/default.mk" ] ; then |
| 81 |
echo "*** ERROR: File <$MID_HOME/local/default.mk> does not exist." |
| 82 |
echo "*** You need to run <preinstall> before continuing with <install>" |
| 83 |
exit 1 |
| 84 |
fi |
| 85 |
|
| 86 |
if [ -f "$MID_HOME/local/make_options" ] ; then |
| 87 |
echo "Your current MAKE_OPTIONS:" |
| 88 |
awk -F# '{if ($1 != "") {printf "\t %s\n",$1} }' $MID_HOME/local/make_options |
| 89 |
echo "" |
| 90 |
else |
| 91 |
touch $MID_HOME/local/make_options |
| 92 |
fi |
| 93 |
|
| 94 |
chmod +x $MID_HOME/local/make_shared |
| 95 |
|
| 96 |
echo "*** MIDAS INSTALLATION TESTS ***" |
| 97 |
|
| 98 |
#*************** START: Checking existence of make, time commands ********* |
| 99 |
|
| 100 |
CMND_YES=1 |
| 101 |
|
| 102 |
which time > /dev/null 2>&1 |
| 103 |
if [ $? = 1 ] ; then |
| 104 |
echo "*** WARNING: Unix command 'time' not found" |
| 105 |
CMND_YES=2 |
| 106 |
fi |
| 107 |
|
| 108 |
which make > /dev/null 2>&1 |
| 109 |
if [ $? = 1 ] ; then |
| 110 |
echo "*** ERROR: Unix command 'make' not found" |
| 111 |
CMND_YES=0 |
| 112 |
fi |
| 113 |
|
| 114 |
if [ $CMND_YES = 0 ] ; then |
| 115 |
echo ">>> Please install the missing command(s), and redo the installation." |
| 116 |
exit 1 |
| 117 |
fi |
| 118 |
#*************** END: Checking existence of make, time commands ********* |
| 119 |
|
| 120 |
|
| 121 |
# All test modules are in the test directory |
| 122 |
|
| 123 |
cd test |
| 124 |
make clean >/dev/null 2>&1 |
| 125 |
|
| 126 |
|
| 127 |
#*************** START: Checking the C compiler ******************** |
| 128 |
$echo "*** Checking the C compiler...." $SV_NONL |
| 129 |
rm -f testc.o 2>/dev/null |
| 130 |
if (make testc.o) >/dev/null 2>&1 |
| 131 |
then |
| 132 |
echo "OK." |
| 133 |
else |
| 134 |
CC=`ed_moptions get CC` |
| 135 |
while : |
| 136 |
do |
| 137 |
echo "NOT FOUND." |
| 138 |
echo "" |
| 139 |
echo "ERROR using CC=$CC (or no 'make' command installed)" |
| 140 |
echo "Type the name of your C compiler," |
| 141 |
echo "or CR to exit." |
| 142 |
$echo "C compiler: " $SV_NONL |
| 143 |
unset answ |
| 144 |
read answ |
| 145 |
if [ -z "$answ" ]; then |
| 146 |
echo "No C compiler -> No MIDAS. Exit." |
| 147 |
$echo "Type return to exit: " $SV_NONL |
| 148 |
read return |
| 149 |
exit 1 |
| 150 |
fi |
| 151 |
CC="$answ" |
| 152 |
ed_moptions delete '^CC' >/dev/null |
| 153 |
$echo "*** Checking the C compiler...." $SV_NONL |
| 154 |
rm -f testc.o 2>/dev/null |
| 155 |
if (make CC="$CC" testc.o) |
| 156 |
then |
| 157 |
echo "OK." |
| 158 |
ed_moptions add CC="$CC" >/dev/null |
| 159 |
break |
| 160 |
fi |
| 161 |
done |
| 162 |
fi |
| 163 |
|
| 164 |
# test, if we include <varargs.h> or <stdarg.h> |
| 165 |
|
| 166 |
rm -f testvar.o 2>/dev/null |
| 167 |
if (make testvar.o) >/dev/null 2>&1 |
| 168 |
then |
| 169 |
varargs=VARARGS |
| 170 |
echo "*** Use <varargs.h>" |
| 171 |
else |
| 172 |
varargs=NOVARARGS |
| 173 |
echo "*** Use <stdarg.h>" |
| 174 |
fi |
| 175 |
|
| 176 |
# adapt all potential ftoc_xyz files accordingly |
| 177 |
|
| 178 |
rm -f ./temp.out |
| 179 |
|
| 180 |
for myfile in amd64 alfa alliant hp hpn hpr pc pc3 sun solaris |
| 181 |
do |
| 182 |
incfile=$MID_HOME/incl/ftoc_${myfile}.h |
| 183 |
chmod +w $incfile |
| 184 |
if [ "$varargs" = "VARARGS" ]; then |
| 185 |
sed 's/stdarg.h/varargs.h/' $incfile > ./temp.out |
| 186 |
else |
| 187 |
sed 's/varargs.h/stdarg.h/' $incfile > ./temp.out |
| 188 |
fi |
| 189 |
mv ./temp.out $incfile |
| 190 |
done |
| 191 |
|
| 192 |
ed_moptions add "VARARGS=-D$varargs" >/dev/null |
| 193 |
|
| 194 |
# link correct ftoc dir to good-ftoc |
| 195 |
# and copy relevant .fc files (+ correct y123.for files) |
| 196 |
|
| 197 |
$MID_INSTALL/install2 |
| 198 |
|
| 199 |
|
| 200 |
#*************** END: Checking the C compiler ******************** |
| 201 |
|
| 202 |
#*************** START: Checking the C linker ******************** |
| 203 |
$echo "*** Checking the C linker...." $SV_NONL |
| 204 |
rm -f testc.exe 2>/dev/null |
| 205 |
if (make testc.exe) >/dev/null 2>&1 |
| 206 |
then |
| 207 |
echo "OK." |
| 208 |
else |
| 209 |
LDCC=`ed_moptions get LDCC` |
| 210 |
while : |
| 211 |
do |
| 212 |
echo "NOT FOUND." |
| 213 |
echo "" |
| 214 |
echo "ERROR using LDCC=$LDCC" |
| 215 |
echo "Type the name of your C linker," |
| 216 |
echo "or CR to exit." |
| 217 |
$echo "C linker: " $SV_NONL |
| 218 |
unset answ |
| 219 |
read answ |
| 220 |
if [ -z "$answ" ]; then |
| 221 |
echo "No C linker no MIDAS. Exit." |
| 222 |
$echo "Type return to exit: " $SV_NONL |
| 223 |
read return |
| 224 |
exit 1 |
| 225 |
fi |
| 226 |
LDCC="$answ" |
| 227 |
ed_moptions delete '^LDCC' >/dev/null |
| 228 |
$echo "*** Checking the C linker...." $SV_NONL |
| 229 |
rm -f testc.exe 2>/dev/null |
| 230 |
if (make LDCC="$LDCC" testc.exe) |
| 231 |
then |
| 232 |
echo "OK." |
| 233 |
ed_moptions add LDCC="$LDCC" >/dev/null |
| 234 |
break |
| 235 |
fi |
| 236 |
done |
| 237 |
fi |
| 238 |
#*************** END: Checking the C linker ******************* |
| 239 |
|
| 240 |
#*************** START: Checking oserror definition ***************** |
| 241 |
LSYS="" |
| 242 |
while : |
| 243 |
do |
| 244 |
$echo "*** Checking the MIDAS oserror definition...." $SV_NONL |
| 245 |
rm -f oserror.o oserror.exe 2>/dev/null |
| 246 |
if (make LSYS="$LSYS" oserror.exe) >/dev/null 2>&1 |
| 247 |
then |
| 248 |
echo "OK." |
| 249 |
if [ -n "$LSYS" ] ; then |
| 250 |
ed_moptions add SYS="$LSYS" >/dev/null |
| 251 |
fi |
| 252 |
break |
| 253 |
else |
| 254 |
if [ -z "$LSYS" ]; then |
| 255 |
echo "NOT FOUND." |
| 256 |
echo "*** Trying now with LSYS=-DOSERROR_D option:" |
| 257 |
LSYS="-DOSERROR_D" |
| 258 |
else |
| 259 |
echo "NOT FOUND." |
| 260 |
echo "###############################################################" |
| 261 |
echo "# WARNING #" |
| 262 |
echo "# I could not run the following command: #" |
| 263 |
echo "# make LSYS=-DOSERROR_D oserror.exe #" |
| 264 |
echo "# #" |
| 265 |
echo "# For help contact ESO's Midas support: [email protected] #" |
| 266 |
echo "###############################################################" |
| 267 |
$echo "Type return to exit: " $SV_NONL |
| 268 |
read return |
| 269 |
exit 1 |
| 270 |
fi |
| 271 |
fi |
| 272 |
done |
| 273 |
#*************** END: Checking oserror definition ******************* |
| 274 |
|
| 275 |
#************* START: Checking for 32/64bit C compiler ************* |
| 276 |
|
| 277 |
cd $MIDASHOME/$MIDVERS/install/unix/test |
| 278 |
|
| 279 |
echo " " |
| 280 |
|
| 281 |
X_OPT=`ed_moptions get C_OPT` |
| 282 |
#echo X_OPT = [$X_OPT] |
| 283 |
|
| 284 |
# if C_OPT=-O ... skip the "-O" substring |
| 285 |
ksize=${#X_OPT} #length of X_OPT |
| 286 |
c2=${X_OPT:0:2} #extract first 2 chars |
| 287 |
#echo c2 = [$c2] |
| 288 |
#echo ksize = $ksize |
| 289 |
|
| 290 |
if [ "$c2" = "-O" ]; then #extract chars from 3rd char. on |
| 291 |
if [ $ksize = 2 ]; then |
| 292 |
X_OPT=" " |
| 293 |
else |
| 294 |
cafter=${X_OPT:2:$ksize} |
| 295 |
X_OPT=$cafter #shift left over the first 2 chars... |
| 296 |
fi |
| 297 |
fi |
| 298 |
#echo now X_OPT = [$X_OPT] |
| 299 |
|
| 300 |
ed_moptions delete '^F77' >/dev/null |
| 301 |
ed_moptions delete '^LD77_CMD' >/dev/null |
| 302 |
ed_moptions delete '^E_OPT' >/dev/null |
| 303 |
ed_moptions delete '^K_OPT' >/dev/null |
| 304 |
ed_moptions delete '^INSTALL_FLAG' >/dev/null |
| 305 |
|
| 306 |
ed_moptions add "K_OPT= $X_OPT" >/dev/null |
| 307 |
ed_moptions add "INSTALL_FLAG=auto" >/dev/null |
| 308 |
|
| 309 |
|
| 310 |
rm -f testsiz.exe 2>/dev/null |
| 311 |
|
| 312 |
# here we use already the compiler chosen for Midas |
| 313 |
if ! (make testsiz.exe) >/dev/null 2>&1 |
| 314 |
then |
| 315 |
echo " " |
| 316 |
echo "could not build testsiz.exe" |
| 317 |
echo "check directory $MID_HOME/install/unix/test !!" |
| 318 |
exit 7 |
| 319 |
fi |
| 320 |
|
| 321 |
./testsiz.exe |
| 322 |
|
| 323 |
# |
| 324 |
# 32 bit compiler |
| 325 |
if [ $? = 4 ]; then |
| 326 |
echo installing Midas on a 32 bit system |
| 327 |
MACH=" " |
| 328 |
EO=" " |
| 329 |
# |
| 330 |
# 64 bit compiler |
| 331 |
else |
| 332 |
echo installing Midas on a 64 bit system |
| 333 |
MACH=" " |
| 334 |
EO="-Z" |
| 335 |
fi |
| 336 |
|
| 337 |
ed_moptions add "F77=gfortran $MACH" >/dev/null |
| 338 |
ed_moptions add "LD77_CMD=gfortran $MACH $LDFLAGS" >/dev/null |
| 339 |
#ed_moptions add "LDCC=gcc $LDFLAGS" >/dev/null |
| 340 |
ed_moptions add "E_OPT= $EO" >/dev/null |
| 341 |
|
| 342 |
|
| 343 |
#if [ $? = 4 ]; then |
| 344 |
# echo installing Midas on a 32 bit system |
| 345 |
# ed_moptions add "F77=gfortran" >/dev/null |
| 346 |
# ed_moptions add "LD77_CMD=gfortran" >/dev/null |
| 347 |
# ed_moptions add "C_OPT=-O -fPIC $X_OPT" >/dev/null |
| 348 |
# ed_moptions add "K_OPT=-fPIC $X_OPT" >/dev/null |
| 349 |
# ed_moptions add "E_OPT= " >/dev/null |
| 350 |
# ed_moptions add "INSTALL_FLAG=auto" >/dev/null |
| 351 |
#else |
| 352 |
# echo installing Midas on a 64 bit system |
| 353 |
# ed_moptions add "F77=gfortran -m64" >/dev/null |
| 354 |
# ed_moptions add "LD77_CMD=gfortran -m64" >/dev/null |
| 355 |
# ed_moptions add 'C_OPT=-m64 -O -fPIC $X_OPT' >/dev/null |
| 356 |
# ed_moptions add "K_OPT=-m64 -fPIC $X_OPT" >/dev/null |
| 357 |
# ed_moptions add "E_OPT=-Z" >/dev/null |
| 358 |
# ed_moptions add "INSTALL_FLAG=auto" >/dev/null |
| 359 |
#fi |
| 360 |
|
| 361 |
echo " " |
| 362 |
|
| 363 |
#*************** END: Checking 32/64bit C compiler **************** |
| 364 |
|
| 365 |
|
| 366 |
#*************** START: Checking the Fortran compiler ******************** |
| 367 |
$echo "*** Checking the Fortran compiler...." $SV_NONL |
| 368 |
rm -f testf.o 2>/dev/null |
| 369 |
if (make testf.o) >/dev/null 2>&1 |
| 370 |
then |
| 371 |
echo "OK." |
| 372 |
else |
| 373 |
F77=`ed_moptions get F77` |
| 374 |
while : |
| 375 |
do |
| 376 |
echo "NOT FOUND." |
| 377 |
echo "" |
| 378 |
echo "ERROR using F77=$F77" |
| 379 |
echo "Type the name of your Fortran compiler," |
| 380 |
echo "or CR to exit." |
| 381 |
$echo "Fortran compiler: " $SV_NONL |
| 382 |
unset answ |
| 383 |
read answ |
| 384 |
if [ -z "$answ" ]; then |
| 385 |
echo "No Fortran compiler -> No MIDAS. Exit." |
| 386 |
$echo "Type return to exit: " $SV_NONL |
| 387 |
read return |
| 388 |
exit 1 |
| 389 |
fi |
| 390 |
F77="$answ" |
| 391 |
ed_moptions delete '^F77' >/dev/null |
| 392 |
$echo "*** Checking the Fortran compiler...." $SV_NONL |
| 393 |
rm -f testf.o 2>/dev/null |
| 394 |
if (make F77="$F77" testf.o) |
| 395 |
then |
| 396 |
echo "OK." |
| 397 |
ed_moptions add F77="$F77" >/dev/null |
| 398 |
break |
| 399 |
fi |
| 400 |
done |
| 401 |
fi |
| 402 |
#*************** END: Checking the Fortran compiler ******************** |
| 403 |
|
| 404 |
#*************** START: Checking the Fortran linker ******************** |
| 405 |
$echo "*** Checking the Fortran linker...." $SV_NONL |
| 406 |
rm -f testf.exe 2>/dev/null |
| 407 |
if (make testf.exe) >/dev/null 2>&1 |
| 408 |
then |
| 409 |
echo "OK." |
| 410 |
else |
| 411 |
LD77_CMD=`ed_moptions get LD77_CMD` |
| 412 |
while : |
| 413 |
do |
| 414 |
echo "NOT FOUND." |
| 415 |
echo "" |
| 416 |
echo "ERROR using LD77_CMD=$LD77_CMD" |
| 417 |
echo "Type the name of your Fortran linker," |
| 418 |
echo "or CR to exit." |
| 419 |
$echo "Fortran linker: " $SV_NONL |
| 420 |
unset answ |
| 421 |
read answ |
| 422 |
if [ -z "$answ" ]; then |
| 423 |
echo "No Fortran linker no MIDAS. Exit." |
| 424 |
$echo "Type return to exit: " $SV_NONL |
| 425 |
read return |
| 426 |
exit 1 |
| 427 |
fi |
| 428 |
LD77_CMD="$answ" |
| 429 |
ed_moptions delete '^LD77_CMD' >/dev/null |
| 430 |
$echo "*** Checking the Fortran linker...." $SV_NONL |
| 431 |
rm -f testf.exe 2>/dev/null |
| 432 |
if (make LD77_CMD="$LD77_CMD" testf.exe) |
| 433 |
then |
| 434 |
echo "OK." |
| 435 |
ed_moptions add LD77_CMD="$LD77_CMD" >/dev/null |
| 436 |
break |
| 437 |
fi |
| 438 |
done |
| 439 |
fi |
| 440 |
#*************** END: Checking the Fortran linker ******************* |
| 441 |
|
| 442 |
#*************** START: Checking math routines ***************** |
| 443 |
$echo "*** Checking some standard math routines...." $SV_NONL |
| 444 |
rm -f mathc.o mathf.o math.exe 2>/dev/null |
| 445 |
## if (make math.exe) >/dev/null 2>&1 |
| 446 |
if (make math.exe) |
| 447 |
then |
| 448 |
echo "OK." |
| 449 |
else |
| 450 |
echo "mathlib NOT FOUND." |
| 451 |
echo "*** Trying now with -lm option:" |
| 452 |
SLIB_ORG=`ed_moptions delete '^SLIB'` |
| 453 |
SLIB=`eval echo $SLIB_ORG -lm` |
| 454 |
$echo "*** Checking some standard math routines...." $SV_NONL |
| 455 |
rm -f math.exe 2>/dev/null |
| 456 |
if (make SLIB="$SLIB" math.exe) >/dev/null 2>&1 |
| 457 |
then |
| 458 |
ed_moptions add SLIB="$SLIB" >/dev/null |
| 459 |
echo "OK." |
| 460 |
else |
| 461 |
ed_moptions add SLIB="$SLIB_ORG" >/dev/null |
| 462 |
echo "mathlib NOT FOUND." |
| 463 |
echo "###############################################################" |
| 464 |
echo "# WARNING #" |
| 465 |
echo "# I could not run the following commands: #" |
| 466 |
echo "# make math.exe #" |
| 467 |
echo "# make SLIB=$SLIB math.exe #" |
| 468 |
echo "# a) probably the mathematical library libm.a is not found - #" |
| 469 |
echo "# edit the file $MID_HOME/local/make_options #" |
| 470 |
echo "# and set SLIB=<new libm.a path>. #" |
| 471 |
echo "# b) or if this happens on a Mac - #" |
| 472 |
echo "# maybe you have non-matching C compiler (gcc) and #" |
| 473 |
echo "# Fortran frontend (gfortran). #" |
| 474 |
echo "# E.g. 64bit C compiler and 32bit Fortran, in that case #" |
| 475 |
echo "# set in /midas/version/local/make_options: #" |
| 476 |
echo "# F77=gfortran -m64 #" |
| 477 |
echo "# LD77_CMD77=gfortran -m64 #" |
| 478 |
echo "# #" |
| 479 |
echo "# For help contact ESO's Midas support: [email protected] #" |
| 480 |
echo "###############################################################" |
| 481 |
$echo "Type return to exit: " $SV_NONL |
| 482 |
read return |
| 483 |
exit 1 |
| 484 |
fi |
| 485 |
fi |
| 486 |
#*************** END: Checking math routines ******************* |
| 487 |
|
| 488 |
#*************** START: Checking the ln command ************* |
| 489 |
ed_moptions delete '^LN' >/dev/null |
| 490 |
rm -f aaa bbb 2>/dev/null |
| 491 |
touch aaa |
| 492 |
$echo "*** Checking the ln command...." $SV_NONL |
| 493 |
if (ln -s aaa bbb ) >/dev/null 2>&1 |
| 494 |
then |
| 495 |
echo "(soft) OK." |
| 496 |
else |
| 497 |
if (ln aaa bbb ) >/dev/null 2>&1 |
| 498 |
then |
| 499 |
echo "(hard) OK." |
| 500 |
echo "*** LN set to ln." |
| 501 |
ed_moptions add LN="ln" >/dev/null |
| 502 |
else |
| 503 |
echo "NOT FOUND." |
| 504 |
echo "###############################################################" |
| 505 |
echo "# WARNING #" |
| 506 |
echo "# I could neither set the hard nor symbolic link between #" |
| 507 |
echo "# files: ln -s aaa bbb #" |
| 508 |
echo "# ln aaa bbb #" |
| 509 |
echo "# Probably the command is not found or its path not included #" |
| 510 |
echo "# in the PATH variable. Without this command makefiles in #" |
| 511 |
echo "# proc and help directories will fail #" |
| 512 |
echo "# #" |
| 513 |
echo "# For help contact ESO's Midas support: [email protected] #" |
| 514 |
echo "###############################################################" |
| 515 |
$echo "Type return to exit: " $SV_NONL |
| 516 |
read return |
| 517 |
exit 1 |
| 518 |
fi |
| 519 |
fi |
| 520 |
#*************** END: Checking the ln command ************** |
| 521 |
|
| 522 |
#*************** START: Checking the strip command ************* |
| 523 |
ed_moptions delete '^STRIP' >/dev/null |
| 524 |
$echo "*** Checking the strip command...." $SV_NONL |
| 525 |
before=`du -s testc.exe | awk '{print $1}'` |
| 526 |
if (strip testc.exe) >/dev/null 2>&1 |
| 527 |
then |
| 528 |
now=`du -s testc.exe | awk '{print $1}'` |
| 529 |
if [ "$before" != "$now" ]; then |
| 530 |
echo "OK." |
| 531 |
else |
| 532 |
echo "NOT STRIPPED." |
| 533 |
echo "*** STRIP set to echo." |
| 534 |
ed_moptions add STRIP=echo >/dev/null |
| 535 |
fi |
| 536 |
else |
| 537 |
echo "NOT FOUND." |
| 538 |
fi |
| 539 |
echo "*** STRIP set to echo." |
| 540 |
ed_moptions add STRIP=echo >/dev/null |
| 541 |
#*************** END: Checking the strip command ************** |
| 542 |
|
| 543 |
#*************** START: Checking the ranlib command *********** |
| 544 |
ed_moptions delete '^RANLIB' >/dev/null |
| 545 |
$echo "*** Checking the ranlib command...." $SV_NONL |
| 546 |
rm -f testlib.a 2>/dev/null |
| 547 |
if (make testlib.a) >/dev/null 2>&1 |
| 548 |
then |
| 549 |
before=`sum testlib.a | awk '{print $1}'` |
| 550 |
sleep 1 |
| 551 |
if (ranlib testlib.a) >/dev/null 2>&1 |
| 552 |
then |
| 553 |
now=`sum testlib.a | awk '{print $1}'` |
| 554 |
if [ "$before" != "$now" ]; then |
| 555 |
echo "OK." |
| 556 |
else |
| 557 |
echo "NO EFFECT." |
| 558 |
echo "*** RANLIB set to echo." |
| 559 |
ed_moptions replace RANLIB=echo >/dev/null |
| 560 |
fi |
| 561 |
else |
| 562 |
echo "NOT FOUND." |
| 563 |
echo "*** RANLIB set to echo" |
| 564 |
ed_moptions replace RANLIB=echo >/dev/null |
| 565 |
fi |
| 566 |
fi |
| 567 |
#*************** END: Checking the ranlib command ************** |
| 568 |
|
| 569 |
#*************** START: Checking the ncurses development library ********* |
| 570 |
x11incl="" |
| 571 |
$echo "*** Checking ncurses development library...." $SV_NONL |
| 572 |
|
| 573 |
rm -f testncurs.o 2>/dev/null |
| 574 |
if (make testncurs.exe) >/dev/null 2>&1 |
| 575 |
then |
| 576 |
echo "OK." |
| 577 |
ed_moptions replace "EDITSWITCH=-DEdit_dummy" >/dev/null |
| 578 |
ed_moptions replace "EDITLIBS=-lreadline -lncurses" >/dev/null |
| 579 |
else |
| 580 |
echo "Not found." |
| 581 |
echo "*** WARNING: You'll not be able to edit Midas commands in the monitor." |
| 582 |
|
| 583 |
unset answ |
| 584 |
if [ "$1" != "-a" ]; then #interactive mode |
| 585 |
echo "*** If that's o.k., just continue." |
| 586 |
echo "*** Otherwise, quit and install first this development library." |
| 587 |
echo "*** Type 'c' or q' (without ') to continue or quit: " $SV_NONL |
| 588 |
read answ |
| 589 |
if [ -z "$answ" ]; then #by default continue |
| 590 |
answ="c" |
| 591 |
fi |
| 592 |
else #always continue for autoconfigure |
| 593 |
answ="c" |
| 594 |
fi |
| 595 |
|
| 596 |
if [ $answ = "c" -o $answ = "C" ]; then |
| 597 |
ed_moptions replace "EDITSWITCH=-DNO_READLINE" >/dev/null |
| 598 |
ed_moptions replace "EDITLIBS=-lreadline" >/dev/null |
| 599 |
else |
| 600 |
exit 1 |
| 601 |
fi |
| 602 |
fi |
| 603 |
# |
| 604 |
#*************** END: Checking the ncurses development library *********** |
| 605 |
|
| 606 |
#*************** START: Checking the X11 include directory ********* |
| 607 |
x11incl="" |
| 608 |
$echo "*** Checking X11 include directory...." $SV_NONL |
| 609 |
# |
| 610 |
rm -f testx11.o 2>/dev/null |
| 611 |
if (make LSYS=-DONLY_INCLUDES testx11.o) >/dev/null 2>&1 |
| 612 |
then |
| 613 |
echo "OK." |
| 614 |
x11incl="found" |
| 615 |
else |
| 616 |
ed_moptions delete '^X11INC' >/dev/null |
| 617 |
x11inclpth='/usr/include/X11 /usr/include/X11R6 /usr/include/X11R5 /usr/X11R6/include /usr/X11R6/include/X11 /usr/X11R5/include /usr/local/include /include /usr/X/include /opt/X-local/include' |
| 618 |
for dir in $x11inclpth |
| 619 |
do |
| 620 |
if [ ! -d $dir ]; then |
| 621 |
continue |
| 622 |
fi |
| 623 |
X11INC="X11INC=-I$dir" |
| 624 |
rm -f testx11.o 2>/dev/null |
| 625 |
if (make "$X11INC" LSYS=-DONLY_INCLUDES testx11.o) >/dev/null 2>&1 |
| 626 |
then |
| 627 |
echo "OK." |
| 628 |
ed_moptions add "$X11INC" >/dev/null |
| 629 |
x11incl="found" |
| 630 |
break; |
| 631 |
fi |
| 632 |
done |
| 633 |
fi |
| 634 |
# |
| 635 |
# The X11 include file was not found in $x11inclpth, so ask the operator |
| 636 |
# where it could be. |
| 637 |
# |
| 638 |
if [ "$x11incl" != "found" ]; then |
| 639 |
echo "NOT FOUND." |
| 640 |
echo "" |
| 641 |
echo "*** WARNING: X11 include directory not found." |
| 642 |
echo "*** I checked in paths:" |
| 643 |
echo "$x11inclpth" |
| 644 |
while : |
| 645 |
do |
| 646 |
echo "": |
| 647 |
echo "Type the full pathname for the X11 include directory," |
| 648 |
echo "or CR if you do not have any." |
| 649 |
while : |
| 650 |
do |
| 651 |
$echo "Pathname: " $SV_NONL |
| 652 |
unset answ |
| 653 |
read answ |
| 654 |
if [ -z "$answ" -o -d "$answ" ]; then |
| 655 |
break |
| 656 |
else |
| 657 |
echo "$answ no such directory." |
| 658 |
continue |
| 659 |
fi |
| 660 |
done |
| 661 |
if [ -z "$answ" ]; then |
| 662 |
echo "*** WARNING: MIDAS will be installed without X11." |
| 663 |
break |
| 664 |
fi |
| 665 |
$echo "*** Checking X11 include files...." $SV_NONL |
| 666 |
rm -f testx11.o 2>/dev/null |
| 667 |
answ=`echo $answ | sed -e 's/[^\/]*$//' -e 's/^$/./' -e 's/\/$//'` |
| 668 |
X11INC="X11INC=-I$answ" |
| 669 |
if (make "$X11INC" LSYS=-DONLY_INCLUDES testx11.o) |
| 670 |
then |
| 671 |
echo "OK." |
| 672 |
ed_moptions add "$X11INC" >/dev/null |
| 673 |
x11incl="found" |
| 674 |
break |
| 675 |
else |
| 676 |
echo "NOT FOUND." |
| 677 |
fi |
| 678 |
done |
| 679 |
fi |
| 680 |
#*************** END: Checking the X11 include directory *********** |
| 681 |
|
| 682 |
#*************** START: Checking the X11 libraries *************** |
| 683 |
# Run this check only if include directory was found previosly |
| 684 |
# |
| 685 |
if [ "$x11incl" = "found" ]; then |
| 686 |
# |
| 687 |
x11lib="" |
| 688 |
$echo "*** Checking X11 libraries...." $SV_NONL |
| 689 |
rm -f testx11.exe 2>/dev/null |
| 690 |
if (make testx11.exe) >/dev/null 2>&1 |
| 691 |
then |
| 692 |
X11RELEASE=`./testx11.exe` |
| 693 |
echo "OK." |
| 694 |
echo "*** X11 release $X11RELEASE found." |
| 695 |
x11lib="found" |
| 696 |
else |
| 697 |
ed_moptions delete '^X11_LIBPATH' >/dev/null |
| 698 |
x11libpth='/lib /usr/lib /usr/local/lib /usr/openwin/lib /usr/lib/X11R6 /usr/lib/X11R5 /usr/X11R6/lib64 /usr/X11R6/lib /usr/X11R5/lib /usr/lib/Motif1.2 /usr/X/lib /usr/X11/lib /usr/lpp/X11/lib /usr/lib/Motif1.1 /opt/X-local/lib' |
| 699 |
for dir in $x11libpth |
| 700 |
do |
| 701 |
if [ ! -d $dir ]; then |
| 702 |
continue |
| 703 |
fi |
| 704 |
X11_LIBPATH="X11_LIBPATH=-L$dir" |
| 705 |
rm -f testx11.exe 2>/dev/null |
| 706 |
if (make "$X11_LIBPATH" testx11.exe) >/dev/null 2>&1 |
| 707 |
then |
| 708 |
X11RELEASE=`./testx11.exe` |
| 709 |
echo "OK." |
| 710 |
echo "*** X11 release $X11RELEASE found." |
| 711 |
ed_moptions add "$X11_LIBPATH" >/dev/null |
| 712 |
x11lib="found" |
| 713 |
break |
| 714 |
fi |
| 715 |
done |
| 716 |
fi |
| 717 |
# |
| 718 |
# The X11/Xt libraries not found in $x11libpth, so ask the operator |
| 719 |
# where it could be. |
| 720 |
# |
| 721 |
if [ "$x11lib" != "found" ]; then |
| 722 |
echo "NOT FOUND." |
| 723 |
echo "*** WARNING: X11 library not found." |
| 724 |
echo "*** I checked in paths:" |
| 725 |
echo "$x11libpth" |
| 726 |
while : |
| 727 |
do |
| 728 |
echo "" |
| 729 |
echo "Type the full pathname for the directory containing the X11 library," |
| 730 |
echo "or CR if you do not have any." |
| 731 |
while : |
| 732 |
do |
| 733 |
$echo "Pathname: " $SV_NONL |
| 734 |
unset answ |
| 735 |
read answ |
| 736 |
if [ -z "$answ" -o -d "$answ" ]; then |
| 737 |
break |
| 738 |
else |
| 739 |
echo "$answ no such directory." |
| 740 |
continue |
| 741 |
fi |
| 742 |
done |
| 743 |
if [ -z "$answ" ]; then |
| 744 |
echo "*** WARNING: MIDAS will be installed without X11." |
| 745 |
break |
| 746 |
fi |
| 747 |
X11_LIBPATH="X11_LIBPATH=-L$answ" |
| 748 |
$echo "*** Checking X11 libraries...." $SV_NONL |
| 749 |
rm -f testx11.exe 2>/dev/null |
| 750 |
if (make "$X11_LIBPATH" testx11.exe) |
| 751 |
then |
| 752 |
X11RELEASE=`./testx11.exe` |
| 753 |
echo "OK." |
| 754 |
echo "*** X11 release $X11RELEASE found." |
| 755 |
ed_moptions add "$X11_LIBPATH" >/dev/null |
| 756 |
break |
| 757 |
else |
| 758 |
echo "NOT FOUND." |
| 759 |
fi |
| 760 |
done |
| 761 |
fi |
| 762 |
fi |
| 763 |
#*************** END: Checking the X11 library ******************* |
| 764 |
|
| 765 |
if [ "$X11RELEASE" = "4" ]; then |
| 766 |
MOTIF_RELEASE1="1001" |
| 767 |
MOTIF_RELEASE2="1001" |
| 768 |
MOTIF_RELEASE3="1001" |
| 769 |
MOTIF_RELEASE4="1001" |
| 770 |
MOTIF_RELEASE5="1001" |
| 771 |
echo "*** Motif release 1.1 ($MOTIF_RELEASE1) expected." |
| 772 |
elif [ "$X11RELEASE" = "5" ]; then |
| 773 |
MOTIF_RELEASE1="1002" |
| 774 |
MOTIF_RELEASE2="1002" |
| 775 |
MOTIF_RELEASE3="1002" |
| 776 |
MOTIF_RELEASE4="1002" |
| 777 |
MOTIF_RELEASE5="1002" |
| 778 |
echo "*** Motif release 1.2 ($MOTIF_RELEASE1) expected." |
| 779 |
elif [ "$X11RELEASE" = "6" ]; then |
| 780 |
MOTIF_RELEASE1="2000" |
| 781 |
MOTIF_RELEASE2="2001" |
| 782 |
MOTIF_RELEASE3="2002" |
| 783 |
MOTIF_RELEASE4="2003" |
| 784 |
# apparently used in Alpha/OSF4 in combination with X11 release 6 |
| 785 |
MOTIF_RELEASE5="1002" |
| 786 |
echo "*** Motif release 2.0 ($MOTIF_RELEASE1) expected." |
| 787 |
else |
| 788 |
X11RELEASE="UNKNOWN" |
| 789 |
MOTIF_RELEASE1="UNKNOWN" |
| 790 |
echo "*** WARNING: X11 release 4, 5 or 6 expected" |
| 791 |
fi |
| 792 |
|
| 793 |
#*************** START: Checking the Motif include directory ********* |
| 794 |
if [ "$x11incl" = "found" -a "$x11lib" = "found" ]; then |
| 795 |
xmincl="" |
| 796 |
$echo "*** Checking Motif Xm include directory...." $SV_NONL |
| 797 |
# |
| 798 |
rm -f testxm.o motif_rel.exe 2>/dev/null |
| 799 |
if (make LSYS=-DONLY_INCLUDES motif_rel.exe) >/dev/null 2>&1 |
| 800 |
then |
| 801 |
xmincl="found" |
| 802 |
MOTIFRELEASE=`./motif_rel.exe` |
| 803 |
fi |
| 804 |
if [ "$xmincl" = "found" -a \( "$MOTIFRELEASE" = "$MOTIF_RELEASE1" -o "$MOTIFRELEASE" = "$MOTIF_RELEASE2" -o "$MOTIFRELEASE" = "$MOTIF_RELEASE3" -o "$MOTIFRELEASE" = "$MOTIF_RELEASE4" -o "$MOTIFRELEASE" = "$MOTIF_RELEASE5" \) ]; then |
| 805 |
echo "OK." |
| 806 |
echo "*** Motif release $MOTIFRELEASE found." |
| 807 |
else |
| 808 |
xmincl="" |
| 809 |
ed_moptions delete '^XMINC' >/dev/null |
| 810 |
xminclpth='/usr/include/X11R6 /usr/include/X11R5 /usr/include/X11R4 /usr/include/X11 /usr/include/Xm /usr/include/Motif1.2 usr/include/Motif1.1 /usr/local/include /include /usr/X/include /usr/X11/include /usr/X11R5/include /usr/X11R6/include /usr/dt/include /sw/include /sw/lib' |
| 811 |
for dir in $xminclpth |
| 812 |
do |
| 813 |
if [ ! -d $dir ]; then |
| 814 |
continue |
| 815 |
fi |
| 816 |
XMINC="XMINC=-I$dir" |
| 817 |
rm -f testxm.o motif_rel.exe 2>/dev/null |
| 818 |
if (make "$XMINC" LSYS=-DONLY_INCLUDES motif_rel.exe) >/dev/null 2>&1 |
| 819 |
then |
| 820 |
xmincl="found" |
| 821 |
MOTIFRELEASE=`./motif_rel.exe` |
| 822 |
fi |
| 823 |
if [ "$xmincl" = "found" -a \( "$MOTIFRELEASE" = "$MOTIF_RELEASE1" -o "$MOTIFRELEASE" = "$MOTIF_RELEASE2" -o "$MOTIFRELEASE" = "$MOTIF_RELEASE3" -o "$MOTIFRELEASE" = "$MOTIF_RELEASE4" -o "$MOTIFRELEASE" = "$MOTIF_RELEASE5" \) ]; then |
| 824 |
echo "OK." |
| 825 |
echo "*** Motif release $MOTIFRELEASE found." |
| 826 |
ed_moptions add "$XMINC" >/dev/null |
| 827 |
xmincl="found" |
| 828 |
break; |
| 829 |
else |
| 830 |
xmincl="" |
| 831 |
fi |
| 832 |
done |
| 833 |
fi |
| 834 |
# |
| 835 |
# The Motif include file not found in $xminclpth, so ask the operator |
| 836 |
# where it could be. |
| 837 |
# |
| 838 |
if [ "$xmincl" != "found" ]; then |
| 839 |
echo "NOT FOUND." |
| 840 |
echo "" |
| 841 |
echo "*** WARNING: Motif release $MOTIF_RELEASE1 include directory Xm not found." |
| 842 |
echo "*** I checked in paths:" |
| 843 |
echo "$xminclpth" |
| 844 |
while : |
| 845 |
do |
| 846 |
echo "" |
| 847 |
echo "Type the full pathname for the Motif release $MOTIF_RELEASE1 include directory, e.g. /sw/include/" |
| 848 |
echo "or CR if you do not have any." |
| 849 |
while : |
| 850 |
do |
| 851 |
$echo "Pathname: " $SV_NONL |
| 852 |
unset answ |
| 853 |
read answ |
| 854 |
if [ -z "$answ" -o -d "$answ" ]; then |
| 855 |
break |
| 856 |
else |
| 857 |
echo "$answ no such directory." |
| 858 |
continue |
| 859 |
fi |
| 860 |
done |
| 861 |
if [ -z "$answ" ]; then |
| 862 |
echo "*** WARNING: MIDAS will be installed without Motif applications." |
| 863 |
break |
| 864 |
fi |
| 865 |
$echo "*** Checking Motif include files...." $SV_NONL |
| 866 |
rm -f testxm.o motif_rel.exe 2>/dev/null |
| 867 |
answ=`echo $answ | sed -e 's/[^\/]*$//' -e 's/^$/./' -e 's/\/$//'` |
| 868 |
XMINC="XMINC=-I$answ" |
| 869 |
if (make "$XMINC" LSYS=-DONLY_INCLUDES motif_rel.exe) |
| 870 |
then |
| 871 |
xmincl="found" |
| 872 |
MOTIFRELEASE=`./motif_rel.exe` |
| 873 |
fi |
| 874 |
if [ "$xmincl" = "found" -a \( "$MOTIFRELEASE" = "$MOTIF_RELEASE1" -o "$MOTIFRELEASE" = "$MOTIF_RELEASE2" -o "$MOTIFRELEASE" = "$MOTIF_RELEASE3" -o "$MOTIFRELEASE" = "$MOTIF_RELEASE4" -o "$MOTIFRELEASE" = "$MOTIF_RELEASE5" \) ]; then |
| 875 |
echo "OK." |
| 876 |
echo "*** Motif release $MOTIFRELEASE found." |
| 877 |
ed_moptions add "$XMINC" >/dev/null |
| 878 |
xmincl="found" |
| 879 |
break |
| 880 |
else |
| 881 |
xmincl="" |
| 882 |
echo "NOT FOUND." |
| 883 |
fi |
| 884 |
done |
| 885 |
fi |
| 886 |
fi |
| 887 |
#*************** END: Checking the Motif include directory *********** |
| 888 |
|
| 889 |
#*************** START: Checking the Motif library *************** |
| 890 |
# Run this check only if include directory was found previosly |
| 891 |
# |
| 892 |
if [ "$xmincl" = "found" ]; then |
| 893 |
# |
| 894 |
xmlib="" |
| 895 |
$echo "*** Checking Motif library...." $SV_NONL |
| 896 |
rm -f testxm.o testxm.exe 2>/dev/null |
| 897 |
if (make testxm.exe) >/dev/null 2>&1 |
| 898 |
then |
| 899 |
echo "OK." |
| 900 |
xmlib="found" |
| 901 |
else |
| 902 |
ed_moptions delete '^MOTIF_LIBPATH' >/dev/null |
| 903 |
xmlibpth='/lib /usr/lib /usr/local/lib /usr/dt/lib /usr/lib/X11R6 /usr/lib/X11/R5 /usr/X11R6/lib /usr/X11R5/lib /usr/lib/X11/R4 /usr/lib/Motif1.2 /usr/X/lib /usr/X11/lib /usr/lpp/X11/lib /usr/lib/Motif1.1' |
| 904 |
for dir in $xmlibpth |
| 905 |
do |
| 906 |
if [ ! -d $dir ]; then |
| 907 |
continue |
| 908 |
fi |
| 909 |
MOTIF_LIBPATH="MOTIF_LIBPATH=-L$dir" |
| 910 |
rm -f testxm.o testxm.exe 2>/dev/null |
| 911 |
if (make "$MOTIF_LIBPATH" testxm.exe) >/dev/null 2>&1 |
| 912 |
then |
| 913 |
echo "OK." |
| 914 |
ed_moptions add "$MOTIF_LIBPATH" >/dev/null |
| 915 |
xmlib="found" |
| 916 |
break |
| 917 |
fi |
| 918 |
done |
| 919 |
fi |
| 920 |
# |
| 921 |
# The Xm library not found in $x11libpth, so ask the operator |
| 922 |
# where it could be. |
| 923 |
# |
| 924 |
if [ "$xmlib" != "found" ]; then |
| 925 |
echo "NOT FOUND." |
| 926 |
echo "*** WARNING: Motif library release $MOTIF_RELEASE not found." |
| 927 |
echo "*** I checked in paths:" |
| 928 |
echo "$xmlibpth" |
| 929 |
while : |
| 930 |
do |
| 931 |
echo "Type the full pathname for the directory containing the Motif library, e.g. /sw/lib/" |
| 932 |
echo "or CR if you do not have any." |
| 933 |
while : |
| 934 |
do |
| 935 |
$echo "Pathname: " $SV_NONL |
| 936 |
unset answ |
| 937 |
read answ |
| 938 |
if [ -z "$answ" -o -d "$answ" ]; then |
| 939 |
break |
| 940 |
else |
| 941 |
echo "$answ no such directory." |
| 942 |
continue |
| 943 |
fi |
| 944 |
done |
| 945 |
if [ -z "$answ" ]; then |
| 946 |
echo "*** WARNING: MIDAS will be installed without Motif applications." |
| 947 |
break |
| 948 |
fi |
| 949 |
MOTIF_LIBPATH="MOTIF_LIBPATH=-L$answ" |
| 950 |
$echo "*** Checking Motif library...." $SV_NONL |
| 951 |
rm -f testxm.exe 2>/dev/null |
| 952 |
if (make "$MOTIF_LIBPATH" testxm.exe) |
| 953 |
then |
| 954 |
echo "OK." |
| 955 |
ed_moptions add "$MOTIF_LIBPATH" >/dev/null |
| 956 |
break |
| 957 |
else |
| 958 |
echo "NOT FOUND." |
| 959 |
fi |
| 960 |
done |
| 961 |
fi |
| 962 |
fi |
| 963 |
#*************** END: Checking the Motif library ******************* |
| 964 |
|
| 965 |
# |
| 966 |
# Default UIMX=uimxR4 in default.mk |
| 967 |
# Set UIMX=uimxR5 in make_options if X11RELEASE=5 |
| 968 |
# |
| 969 |
if [ "$X11RELEASE" = "5" -o "$X11RELEASE" = "6" ]; then |
| 970 |
ed_moptions delete '^UIMX' >/dev/null |
| 971 |
ed_moptions add "UIMX=uimxR5" >/dev/null |
| 972 |
fi |
| 973 |
|
| 974 |
#*************** for manually edited MAKE_OPTIONS *************** |
| 975 |
|
| 976 |
if [ $INSTALL_FLAG = "own" ] ; then |
| 977 |
ed_moptions delete '^INSTALL_FLAG' >/dev/null |
| 978 |
ed_moptions add "INSTALL_FLAG=user-choice" >/dev/null |
| 979 |
echo " " |
| 980 |
echo "------------------------------------------------------------" |
| 981 |
echo "=== now, you can edit $MID_HOME/local/make_options" |
| 982 |
echo "=== and adapt it to your special needs" |
| 983 |
echo "=== to continue, use step 67 of the config script" |
| 984 |
echo "------------------------------------------------------------" |
| 985 |
echo " " |
| 986 |
exit 0 |
| 987 |
fi |
| 988 |
|
| 989 |
# ******** now the actual installation (in background) ********* |
| 990 |
|
| 991 |
export SV_NONL CMND_YES |
| 992 |
$MID_INSTALL/install3 $1 |
| 993 |
exit 0 |
| 994 |
|
| 995 |
|