Go forward to Configuration Philosophy.
Go backward to Unix Installation.
Go up to Unix Installation.
Compiling `gawk' for a Supported Unix Version
---------------------------------------------
After you have extracted the `gawk' distribution, `cd' to
`gawk-2.15'. Look in the `config' subdirectory for a file that matches
your hardware/software combination. In general, only the software is
relevant; for example `sunos41' is used for SunOS 4.1, on both Sun 3
and Sun 4 hardware.
If you find such a file, run the command:
# assume you have SunOS 4.1
./configure sunos41
This produces a `Makefile' and `config.h' tailored to your system.
You may wish to edit the `Makefile' to use a different C compiler, such
as `gcc', the GNU C compiler, if you have it. You may also wish to
change the `CFLAGS' variable, which controls the command line options
that are passed to the C compiler (such as optimization levels, or
compiling for debugging).
After you have configured `Makefile' and `config.h', type:
make
and shortly thereafter, you should have an executable version of `gawk'.
That's all there is to it!