The following options are for compiling and installing a working version of the xntp3 distribution. In most cases, the build process is completely automatic and requires only that the user specify where to put the binaries during the installation process. In some cases where memory space is at a premium, it is possible to tailor the configuration to remove such features as reference clock driver support, debugging support, and so forth.
The global configuration file
Config.local defines the
build environment and any exceptions to the autoconfiguration process.
Normally, this is the only file that needs to be edited by the user. The
following lines are used in this file:
BINDIR line specifies where to put the binaries for
make install command. The default is
DEFS_LOCAL line defines global flags that apply to
all machines. Ordinarily, the only flags included are the
-DDEBUG, which includes the debugging code, and
-DREFCLOCK, which includes basic reference clock support.
Omit either or both flags to save some space in the binaries. The
DEFS_LOCAL= -DEBUG -DREFCLOCK
CLOCKDEFS line defines which reference
clock drivers to include in the build process. This can be done either
by default, which includes all drivers specific to each machine, or by
CLOCKDEFS line in the
file, which overrides the default
Additional symbols are defined in the
directory. These are machine specific and associated with the file name
of the machine.
RANLIB line specifies the name and flags for by the
ranlib function. If no ranlib function is required, use a
RANLIB= : line.
DEFS line specifies local options peculiar to each
machine and operating system type. The following flags can be used on
this line. Additional flags are defined and explained in the
./include/ntp_machine.h header file.
/etc. Use an argument like
-DHAVE_SYSV_TTYSfor basic System V compatibility; define
-DSTREAMfor POSIX compatibility including System V Streams, and
HAVE_BSD_TTYSfor 4.3bsd compatibility. Use
HAVE_TERMIOSfor POSIX (
termios.h) without System V Streams. Only one of these three should be defined. If none are defined,
AUTHDEFS line specifies which of two cryptographic
algorithms are to be used for NTP message authentication. The following
flags can be used on this line
CLOCKDEFSline defines which reference clock drivers to include in the default build process. Each driver has an identifier, which can be found in the Reference Clock Drivers page. Ordinarily, all the drivers that apply to each machine are included.
DAEMONLIBS line specifies the library options for
the xntpd build process.
RESLIBS line specifies additional library options
for the xntpd build process.
COPTS line specifies C compiler options for the
chosen compiler (cc or gcc), as defined in the respective compiler man
DEFS_INCLUDE line is constructed automatically by
./scripts/makeconfig.sh. The following flags may
appear on this line
-DKERNEL_PLLflag is set if the file
/usr/include/sys/timex.his present. The
-DNTP_SYSCALLS_LIBCflag is set if either the file
/usr/include/sys/syscall.his not present or it is present and does not contain the definitions of the
tty_clkline discipline support code. It indicates that the file
chu_clkline discipline support code. It indicates that the file
ppsclockstreams module support code. It indicates that the file
/usr/include/netinet/in.his present and contains the definition of