2 AC_CONFIG_SRCDIR([aclocal.m4])
4 dnl autoconf 2.49 defaults to a /dev/null cache file, which is what we
5 dnl do not want for performance reasons.
6 if test "x$cache_file" = "x/dev/null"; then
7 cache_file=./config.cache
13 dnl Determine version from patchlevel.h
14 eval `sed 's/#define \([A-Z0-9_]*\)[ \t]*\(.*\)/\1=\2/' < $srcdir/patchlevel.h`
15 KRB5_VERSION="$KRB5_MAJOR_RELEASE.$KRB5_MINOR_RELEASE.$KRB5_PATCHLEVEL"
16 AC_SUBST(KRB5_VERSION)
20 dnl The following lines are so that configure --help gives some global
21 dnl configuration options.
23 AC_ARG_ENABLE([kdc-replay-cache],
24 AC_HELP_STRING([--enable-kdc-replay-cache],[check for replayed/retransmitted KDC requests (recommended for replay attack detection when hardware preauthentication is in use)])
25 AC_HELP_STRING([--disable-kdc-replay-cache],[omit replay detection]))dnl
28 AC_ARG_ENABLE([athena],
29 [ --enable-athena build with MIT Project Athena configuration],,)
31 if test -z "$KRB4_LIB"; then
45 dnl Begin autoconf tests for the Makefiles generated out of the top-level
48 AC_CHECK_FUNCS(memmove)
53 HOST_TYPE=$krb5_cv_host
57 if test "$COM_ERR_VERSION" = k5 ; then
58 AC_CONFIG_SUBDIRS(util/et)
60 if test "$SS_VERSION" = k5 ; then
61 AC_CONFIG_SUBDIRS(util/ss)
63 AC_CONFIG_SUBDIRS(util/profile util/pty)
64 if test "$DB_VERSION" = k5 ; then
65 AC_CONFIG_SUBDIRS(util/db2)
67 AC_CONFIG_SUBDIRS(include lib/crypto lib/krb5 lib/des425)
68 if test -n "$KRB4_LIB"; then
69 AC_CONFIG_SUBDIRS(lib/krb4)
71 AC_CONFIG_SUBDIRS(lib/kdb lib/gssapi lib/rpc lib/kadm5)
72 if test -n "$KRB4_LIB"; then
73 AC_CONFIG_SUBDIRS(krb524)
77 if test "$krb5_cv_prog_gcc" = yes; then
78 DL_COMPILE='$(CC) -fpic -G -nostdlib'
79 DL_COMPILE_TAIL='-lc -ldl'
81 DL_COMPILE='$(CC) -Kpic -G'
82 DL_COMPILE_TAIL='-ldl'
84 EXITSLEEP_TARG=exitsleep
88 AC_SUBST(DL_COMPILE_TAIL)
89 AC_SUBST(EXITSLEEP_TARG)
91 AC_CONFIG_SUBDIRS(kdc kadmin slave clients appl tests)
92 AC_CONFIG_FILES(krb5-config, [chmod +x krb5-config])
93 V5_AC_OUTPUT_MAKEFILE(. util util/send-pr lib config-files gen-manpages)