gcc/libf2c/libF77
Craig Burley f30bc2e7f5 Makefile.in (install): Don't install if $(libsubdir) is empty...
Sat Jun 13 03:46:40 1998  Craig Burley  <burley@gnu.org>
	* Makefile.in (install): Don't install if $(libsubdir)
	is empty; issue a diagnostic saying top-level Makefile
	must pass it in instead, and exit.
	* Makefile.in (g2c.h): Rename from f2c.h.
	* Makefile.in, libF77/Makefile.in, libI77/Makefile.in,
	libU77/Makefile.in: Rewrite config and var assignment
	sections to be even more minimal than before, and to
	more clearly documented what macros are expected to be
	set and to what sorts of values.  Eliminate CROSS and
	related stuff, since there's no such things as CROSS
	in egcs.  Rename GCC_FOR_TARGET to CC throughout.
	* Makefile.in (stamp-libi77, stamp-libf77, stamp-libu77):
	Eliminate CROSS.
	* configure.in: Eliminate CROSS.
	Rename libf2c.a and f2c.h to libg2c.a and g2c.h,
	normalize and simplify g77/libg2c build process:
	* Makefile.in: Remove all stuff pertaining to
	installation, cleaning, and so on.  Parent Makefile
	does all that now.  Pass F2C_H_DIR,
	G2C_H_DIR, and GCC_H_DIR, the pathnames for the
	directories containing f2c.h, g2c.h, and other
	#include files, to subdirectory Makefiles.
	(stamp-libf77, stamp-libi77, stamp-libu77):
	Don't specify `-f Makefile' anymore, it's not needed
	now that subdirectory makefile's from netlib are
	renamed to makefile.netlib in g77 source (and to
	makefile.ori by configuration process, in case they're
	still around somehow).
	(stamp-libe77): Don't make libE77 dir unless it doesn't
	exist, if it does just delete all objects in it.
	Compile using $(GCC_FOR_TARGET), not $(CC).
	(rebuilt): Remove this and all subordinate targets,
	as parent Makefile now handles all that.
	(*clean): Remove.
	* configure.in (Pad_UDread, ALWAYS_FLUSH, WANT_LEAD_0):
	Remove these and commentary to new f2c.h file.
	AC_OUTPUT g2c.h instead of f2c.h.  Remove old commentary
	regarding concatenation.
	* g2c.h.in: Rename from f2c.h.in, add appropriate
	commentary.
	* f2c.h: New file, a wrapper for g2c.h that does
	libg2c-specific stuff.
	* libF77/Makefile.in, libI77/Makefile.in, libU77/Makefile.in:
	Change $(ALL_CFLAGS) to use F2C_H_DIR, G2C_H_DIR, and GCC_H_DIR
	macros.  Remove F2C_H macro, replace use with explicit
	dependencies on f2c.h and g2c.h.
	(*clean): Remove.

From-SVN: r20507
1998-06-15 07:52:05 +00:00
..
abort_.c
c_abs.c
c_cos.c
c_div.c
c_exp.c
c_log.c
c_sin.c
c_sqrt.c
cabs.c
d_abs.c
d_acos.c
d_asin.c
d_atan.c
d_atn2.c
d_cnjg.c
d_cos.c
d_cosh.c
d_dim.c
d_exp.c
d_imag.c
d_int.c
d_lg10.c
d_log.c
d_mod.c
d_nint.c
d_prod.c
d_sign.c
d_sin.c
d_sinh.c
d_sqrt.c
d_tan.c
d_tanh.c
derf_.c
derfc_.c
dtime_.c Update to Netlib version of 1998-04-20 1998-05-19 10:52:03 +00:00
ef1asc_.c
ef1cmc_.c
erf_.c
erfc_.c
etime_.c Update to Netlib version of 1998-04-20 1998-05-19 10:52:03 +00:00
exit_.c
f2ch.add
F77_aloc.c
getarg_.c Break up main() into separate .o's so making and linking against shared... 1998-05-22 10:32:18 +00:00
getenv_.c
h_abs.c
h_dim.c
h_dnnt.c Update to Netlib version of 1998-04-20 1998-05-19 10:52:03 +00:00
h_indx.c
h_len.c
h_mod.c
h_nint.c Update to Netlib version of 1998-04-20 1998-05-19 10:52:03 +00:00
h_sign.c
hl_ge.c
hl_gt.c
hl_le.c
hl_lt.c
i_abs.c
i_dim.c
i_dnnt.c Update to Netlib version of 1998-04-20 1998-05-19 10:52:03 +00:00
i_indx.c
i_len.c
i_mod.c
i_nint.c Update to Netlib version of 1998-04-20 1998-05-19 10:52:03 +00:00
i_sign.c
iargc_.c Break up main() into separate .o's so making and linking against shared... 1998-05-22 10:32:18 +00:00
l_ge.c
l_gt.c
l_le.c
l_lt.c
lbitbits.c
lbitshft.c
main.c Break up main() into separate .o's so making and linking against shared... 1998-05-22 10:32:18 +00:00
Makefile.in Makefile.in (install): Don't install if $(libsubdir) is empty... 1998-06-15 07:52:05 +00:00
makefile.netlib
Notice
pow_ci.c
pow_dd.c
pow_di.c
pow_hh.c
pow_ii.c
pow_qq.c
pow_ri.c
pow_zi.c
pow_zz.c
qbitbits.c
qbitshft.c
r_abs.c
r_acos.c
r_asin.c
r_atan.c
r_atn2.c
r_cnjg.c
r_cos.c
r_cosh.c
r_dim.c
r_exp.c
r_imag.c
r_int.c
r_lg10.c
r_log.c
r_mod.c
r_nint.c
r_sign.c
r_sin.c
r_sinh.c
r_sqrt.c
r_tan.c
r_tanh.c
README.netlib
s_cat.c
s_cmp.c
s_copy.c
s_paus.c Update to Netlib version of 1998-04-20 1998-05-19 10:52:03 +00:00
s_rnge.c
s_stop.c
setarg.c Break up main() into separate .o's so making and linking against shared... 1998-05-22 10:32:18 +00:00
setsig.c Break up main() into separate .o's so making and linking against shared... 1998-05-22 10:32:18 +00:00
sig_die.c
signal1.h
signal1.h0 Update to Netlib version of 1998-04-20 1998-05-19 10:52:03 +00:00
signal_.c Tweaks to eliminate unnecessary differences vs. 1998-05-19 11:01:52 +00:00
system_.c
Version.c Tweaks to eliminate unnecessary differences vs. 1998-05-19 11:01:52 +00:00
z_abs.c
z_cos.c
z_div.c
z_exp.c
z_log.c
z_sin.c
z_sqrt.c

If your compiler does not recognize ANSI C headers,
compile with KR_headers defined:  either add -DKR_headers
to the definition of CFLAGS in the makefile, or insert

#define KR_headers

at the top of f2c.h , cabs.c , main.c , and sig_die.c .

Under MS-DOS, compile s_paus.c with -DMSDOS.

If you have a really ancient K&R C compiler that does not understand
void, add -Dvoid=int to the definition of CFLAGS in the makefile.

If you use a C++ compiler, first create a local f2c.h by appending
f2ch.add to the usual f2c.h, e.g., by issuing the command
	make f2c.h
which assumes f2c.h is installed in /usr/include .

If your system lacks onexit() and you are not using an ANSI C
compiler, then you should compile main.c, s_paus.c, s_stop.c, and
sig_die.c with NO_ONEXIT defined.  See the comments about onexit in
the makefile.

If your system has a double drem() function such that drem(a,b)
is the IEEE remainder function (with double a, b), then you may
wish to compile r_mod.c and d_mod.c with IEEE_drem defined.
On some systems, you may also need to compile with -Ddrem=remainder .

To check for transmission errors, issue the command
	make check
This assumes you have the xsum program whose source, xsum.c,
is distributed as part of "all from f2c/src".  If you do not
have xsum, you can obtain xsum.c by sending the following E-mail
message to netlib@netlib.bell-labs.com
	send xsum.c from f2c/src

The makefile assumes you have installed f2c.h in a standard
place (and does not cause recompilation when f2c.h is changed);
f2c.h comes with "all from f2c" (the source for f2c) and is
available separately ("f2c.h from f2c").

Most of the routines in libF77 are support routines for Fortran
intrinsic functions or for operations that f2c chooses not
to do "in line".  There are a few exceptions, summarized below --
functions and subroutines that appear to your program as ordinary
external Fortran routines.

1.	CALL ABORT prints a message and causes a core dump.

2.	ERF(r) and DERF(d) and the REAL and DOUBLE PRECISION
	error functions (with x REAL and d DOUBLE PRECISION);
	DERF must be declared DOUBLE PRECISION in your program.
	Both ERF and DERF assume your C library provides the
	underlying erf() function (which not all systems do).

3.	ERFC(r) and DERFC(d) are the complementary error functions:
	ERFC(r) = 1 - ERF(r) and DERFC(d) = 1.d0 - DERFC(d)
	(except that their results may be more accurate than
	explicitly evaluating the above formulae would give).
	Again, ERFC and r are REAL, and DERFC and d are DOUBLE
	PRECISION (and must be declared as such in your program),
	and ERFC and DERFC rely on your system's erfc().

4.	CALL GETARG(n,s), where n is an INTEGER and s is a CHARACTER
	variable, sets s to the n-th command-line argument (or to
	all blanks if there are fewer than n command-line arguments);
	CALL GETARG(0,s) sets s to the name of the program (on systems
	that support this feature).  See IARGC below.

5.	CALL GETENV(name, value), where name and value are of type
	CHARACTER, sets value to the environment value, $name, of
	name (or to blanks if $name has not been set).

6.	NARGS = IARGC() sets NARGS to the number of command-line
	arguments (an INTEGER value).

7.	CALL SIGNAL(n,func), where n is an INTEGER and func is an
	EXTERNAL procedure, arranges for func to be invoked when
	signal n occurs (on systems where this makes sense).

8.	CALL SYSTEM(cmd), where cmd is of type CHARACTER, passes
	cmd to the system's command processor (on systems where
	this can be done).

The makefile does not attempt to compile pow_qq.c, qbitbits.c,
and qbitshft.c, which are meant for use with INTEGER*8.  To use
INTEGER*8, you must modify f2c.h to declare longint and ulongint
appropriately; then add pow_qq.o to the POW = line in the makefile,
and add " qbitbits.o qbitshft.o" to the makefile's F90BIT = line.

Following Fortran 90, s_cat.c and s_copy.c allow the target of a
(character string) assignment to be appear on its right-hand, at
the cost of some extra overhead for all run-time concatenations.
If you prefer the  extra efficiency that comes with the Fortran 77
requirement that the left-hand side of a character assignment not
be involved in the right-hand side, compile s_cat.c and s_copy.c
with -DNO_OVERWRITE .

If your system lacks a ranlib command, you don't need it.
Either comment out the makefile's ranlib invocation, or install
a harmless "ranlib" command somewhere in your PATH, such as the
one-line shell script

	exit 0

or (on some systems)

	exec /usr/bin/ar lts $1 >/dev/null