next up previous contents
Next: Installation Up: Installation of the News Previous: Setting Up the Target

Subsections

Compile Time Options

You may now want to edit Configure.h, Makefile and NVClasses-1.0/Makefile to your needs. The configuration options of these files are explained as comments within the configuration files.

Configure.h

The following variables have to be defined:

SASIZE_T
This gives the type pointed to by the third argument of the function accept. This is int on most systems and size_t on linux-alpha (and possibly on other 64bit architectures).
CONF_ServerRoot
The root directory of the News Cache. The News Cache searches for its configuration files relative to this directory.
CONF_NVActiveDB_HASHSIZE
This variable gives the size of the hash table used for the active database. Bigger values give more performance but use more memory. A good value is the number of newsgroups divided by a number between 2 and 5.

Makefile

The following variables have to be defined:

PREFIX
Defines the directory where the News Cache will be installed.
BINDIR
All the News Cache's binaries go into this directory.
ETCDIR
All the News Cache's configuration files go into this directory.
MANDIR
All the News Cache's manual pages go into this directory.
ASSERT
Defines whether the News Cache is compiled with assertions. The assertions perform consistency checks on the database. If the database gets corrupt the News Cache exits with an error message. If compiled without assertions the News Cache continues to work and may produce garbage in case of a program error.
VERBOSITY
Defines whether the News Cache should be compiled with debug and trace messages.
ODEBUG
Defines other debug parameters used to compile the News Cache.

Compiling with assertions and verbosity makes the News Cache slower. However, without assertions the News Cache will happily produce garbage if the code contains still bugs.


next up previous contents
Next: Installation Up: Installation of the News Previous: Setting Up the Target
gschwind@infosys.tuwien.ac.at