Go backward to Configuration Philosophy.
Go up to Unix Installation.
Configuring `gawk' for a New System
-----------------------------------
(This section is of interest only if you know something about using
the C language and the Unix operating system, and if you have to install
`gawk' on a system that is not supported by the `gawk' distribution.
If you are a C or Unix novice, get help from a local expert.)
If you need to configure `gawk' for a Unix system that is not
supported in the distribution, first see *Note The Configuration
Process: Configuration Philosophy. Then, copy `config.in' to
`config.h', and copy `Makefile.in' to `Makefile'.
Next, edit both files. Both files are liberally commented, and the
necessary changes should be straightforward.
While editing `config.h', you need to determine what library
routines you do or do not have by consulting your system documentation,
or by perusing your actual libraries using the `ar' or `nm' utilities.
In the worst case, simply do not define *any* of the macros for missing
subroutines. When you compile `gawk', the final link-editing step will
fail. The link editor will provide you with a list of unresolved
external references--these are the missing subroutines. Edit
`config.h' again and recompile, and you should be set.
Editing the `Makefile' should also be straightforward. Enable or
disable the lines that begin with `##MAKE_WHATEVER##', as appropriate.
Select the correct C compiler and `CFLAGS' for it. Then run `make'.
Getting a correct configuration is likely to be an iterative process.
Do not be discouraged if it takes you several tries. If you have no
luck whatsoever, please report your system type, and the steps you took.
Once you do have a working configuration, please send it to the
maintainers so that support for your system can be added to the
official release.
See Reporting Problems and Bugs: Bugs, for information on how to
report problems in configuring `gawk'. You may also use the same
mechanisms for sending in new configurations.