There are a number of options to configure
which you can use to
control how the Kerberos distribution is built. The following table
lists the most commonly used options to Kerberos V5's configure
program.
--help
--prefix=PREFIX
--exec-prefix=EXECPREFIX
--localstatedir=LOCALSTATEDIR
LOCALSTATEDIR/krb5kdc
, which is by default
PREFIX/var/krb5kdc
.
CC=COMPILER
COMPILER
as the C compiler.
CFLAGS=FLAGS
FLAGS
as the default set of C compiler flags.
Note that if you use the native Ultrix compiler on a
DECstation you are likely to lose if you pass no flags to cc; md4.c
takes an estimated 3,469 billion years to compile if you provide neither
the -g
flag nor the -O
flag to cc
.
CPPFLAGS=CPPOPTS
CPPOPTS
as the default set of C preprocessor flags. The most
common use of this option is to select certain #define
's for use
with the operating system's include files.
LD=LINKER
LINKER
as the default loader if it should be different from C
compiler as specified above.
LDFLAGS=LDOPTS
--with-krb4
--with-krb4=KRB4DIR
KRB4DIR
specifies where the V4 header files should be found
(KRB4DIR/include
) as well as where the V4 Kerberos library should
be found (KRB4DIR/lib
).
--without-krb4
--with-netlib[=libs]
-lnsl
and
-lsocket
. If your operating system has a broken resolver library
(see Solaris versions 2.0 through 2.3) or fails to pass the tests in
src/tests/resolv
you will need to use this option.
--with-tcl=TCLPATH
TCLPATH
specifies where the Tcl
header file (TCLPATH/include/tcl.h
as well as where the Tcl
library should be found (TCLPATH/lib
).
--enable-shared
--enable-dns
--enable-dns-for-kdc
--enable-dns-for-realm
--enable-kdc-replay-cache
--with-system-et
compile_et
program, the com_err.h
header file and the
com_err
library. If these are not in the default locations,
you may wish to specify CPPFLAGS=-I/some/dir
and
LDFLAGS=-L/some/other/dir
options at configuration time as
well.
If this option is not given, a version supplied with the Kerberos
sources will be built and installed along with the rest of the
Kerberos tree, for Kerberos applications to link against.
--with-system-ss
mk_cmds
program, the ss/ss.h
header file
and the ss
library. If these are not in the default locations,
you may wish to specify CPPFLAGS=-I/some/dir
and
LDFLAGS=-L/some/other/dir
options at configuration time as
well. See also the SS_LIB
option.
If this option is not given, the ss
library supplied with the
Kerberos sources will be compiled and linked into those programs that
need it; it will not be installed separately.
SS_LIB=libs...
-lss
is not the correct way to link in your installed
ss
library, for example if additional support libraries are
needed, specify the correct link options here. Some variants of this
library are around which allow for Emacs-like line editing, but
different versions require different support libraries to be
explicitly specified.
This option is ignored if --with-system-ss
is not specified.
--with-system-db
If this option is not given, a version supplied with the Kerberos
sources will be built and installed. (We are not updating this
version at this time because of licensing issues with newer versions
that we haven't investigated sufficiently yet.)
DB_HEADER=headername.h
db.h
is not the correct header file to include to compile
against the Berkeley DB 1.85 API, specify the correct header file name
with this option. For example, DB_HEADER=db3/db_185.h
.
DB_LIB=libs...
-ldb
is not the correct library specification for the
Berkeley DB library version to be used, override it with this option.
For example, DB_LIB=-ldb-3.3
.
For example, in order to configure Kerberos on a Solaris machine using
the suncc
compiler with the optimizer turned on, run the configure
script with the following options:
% ./configure CC=suncc CFLAGS=-O
For a slightly more complicated example, consider a system where
several packages to be used by Kerberos are installed in
/usr/foobar
, including Berkeley DB 3.3, and an ss
library that needs to link against the curses
library. The
configuration of Kerberos might be done thus:
% ./configure CPPFLAGS=-I/usr/foobar/include LDFLAGS=-L/usr/foobar/lib \ --with-system-et --with-system-ss --with-system-db \ SS_LIB='-lss -lcurses' \ DB_HEADER=db3/db_185.h DB_LIB=-ldb-3.3
In previous releases, --with-
options were used to specify the
compiler and linker and their options.