
-----------------------------------------------------------------------------

This file is part of the computer algebra system SIMATH.

SIMATH is a common software product of the SIMATH group in Saarbruecken
and the Siemens AG. Copyright (C) 1992-1994 by the SIMATH group in
Saarbruecken and the Siemens AG/Munich.

The computer algebra system SIMATH is free software for universities
and scientific research institutions as long as it is used for purely
scientific purposes only. This software is distributed in the hope that
it will be useful, but

			WITHOUT ANY WARRANTY.


Permission is hereby granted to copy the system for any 

			PURELY SCIENTIFIC

purposes, provided the above notices are retained on all copies.

If you intend to use SIMATH for other applications, please contact
	
	SIEMENS AG
	Corporate Research and Development
	Dept. ZFE ST SN 3
	D-81730 Munich

Upon reception of this software, please send e-mail messages to

	simath@math.uni-sb.de 			and to	
	Heribert.Peuckert@zfe.siemens.de

to inform us that you got a copy of the system. 

Redistribution of this software - either in source or binary form - is
not permitted.
	
---------------------------------------------------------------------------

  If you have any problems in installing the system, consult this file.
It might help you.
  
  WARNING: These hints refer to the older installation procedure which
was driven by shell scripts and not by Makefiles. You will have to
modify these suggestions according to the errors occuring when
installing the system. 

  If the installation of SIMATH fails for some reason or if you have 
problems to get the system running, please mail to
	simath@math.uni-sb.de
We will try to help you. We will use your suggestions to update this
file in the next version.

===========================================================================

  Be sure that you have got the file ./sources/srclib.kern from the
SIMATH group. If you haven't, see the file INSTALLATION.

===========================================================================

Some (newer) SPARCstations fail to translate the assembly source file
'sprod.s' into an object file 'sprod.o'. In case this happens on your
machine, type
	"make clean"
in the directory that holds the SIMATH sources. Copy the file
'config.sun3' to 'config.h' and try again. (If you use 'config.sun3'
instead of 'config.sparc', "make" will compile the C version of sprod
instead of the assembly version.) If you do not want to recompile the
complete system, do the following:

  1. After the installation procedure has failed, go to the directory
holding the SIMATH sources and type
	"ar xv sources/srclib.arith1 sprod.s"
to get the assembly language source code of sprod. Try to compile it by
        "as -o sprod.o -P sprod.s -I./header".
Now you should have a file 'sprod.o'. Type 
	"ar rv modlib/lib_arith1.a sprod.o"
        "ranlib modlib/lib_arith1.a".
to put this file into the object library './modlib/lib_arith1.a'. If
you do not succeed in assembling sprod.s, continue with 3.

  2. Recompile simcalc typing
	"cc_simcalc".
Now you should succeed. Go on installing SIMATH using the Makefile and
its target "SIMATH_install".

  3. If the assembler 
	"as -o sprod.o -P sprod.s -I./header"
fails, you should try to compile the C version of the function sprod.
Type
        "ar xv sources/srclib.arith1 sprod.S"
to get the C code  of 'sprod'. (Note the difference between '.s' and '.S'.) 
Then compile it by
        "./proc/preproc.x sprod.S sprod.P"
        "./proc/preV3_1.x sprod.P sprod.c"
        "cc -c sprod.c -I./header"
and type
        "ar rv modlib/lib_arith1.a sprod.o"
        "ranlib modlib/lib_arith1.a".
to put the file 'sprod.o' into the object library
'./modlib/lib_arith1.a'.  Continue with 2. (In "normal" applications,
the system will not become slower, if you use the C version of sprod,
since the assembly version is only used when dealing with numbers with
more than 15000 digits.)
	
===========================================================================

On some machines "HZ" is defined in '/usr/include/curses.h' and not in
'/usr/include/sys/param.h'. Go to the directory holding the SIMATH
sources and add the line
 	#define TIME_HZ 60
to config.h. Then type 
	"ar xv sources/srclib.kern gc.S lend.S"
	"ar xv sources/srclib.list settime.S".
Now edit the files 'gc.S', 'lend.S' and 'settime.S' and replace every
occurrence of "HZ" by "TIME_HZ". Put the files back into the libraries
typing
	"ar rv sources/srclib.kern gc.S lend.S"
	"ar rv sources/srclib.list settime.S".
There is another file 'gc.S' that contains the constant "HZ". Type 
	"ar xv sim/srclib.simuv gc.S"
and replace every occurrence of "HZ" by "TIME_HZ". Type         	
	"ar rv sim/srclib.simuv gc.S"
to put the file back into the library and try again. Now try to "make"
the system.

===========================================================================
