move generation of session key to preauth hook.
[metze/heimdal/wip.git] / configure.in
index 1c6beb21f4da4a25d690e3d805821f023ffebcba..b8ebc02415e46242fb0eb2dfbc8eef0b1a5070a1 100644 (file)
@@ -29,6 +29,10 @@ AB_INIT
 
 rk_SYS_LARGEFILE
 
+rk_AIX
+rk_IRIX
+rk_SUNOS
+
 dnl
 dnl this is needed to run the configure tests against glibc
 dnl
@@ -70,6 +74,10 @@ if test "$enable_hdb_openldap_module" = yes -a "$with_openldap" = yes; then
 fi
 AM_CONDITIONAL(OPENLDAP_MODULE, test "$enable_hdb_openldap_module" = yes -a "$with_openldap" = yes)
 
+dnl
+dnl Optional modules, pk-init, digest, kx509
+dnl
+
 AC_ARG_ENABLE(pk-init, 
        AS_HELP_STRING([--disable-pk-init],
                [if you want disable to PK-INIT support]))
@@ -78,6 +86,28 @@ if test "$enable_pk_init" != no ;then
 fi
 AM_CONDITIONAL(PKINIT, test "$enable_pk_init" != no)
 
+AC_ARG_ENABLE(digest, 
+       AS_HELP_STRING([--disable-digest],
+               [if you want disable to DIGEST support]))
+if test "$enable_digest" != no ;then
+       AC_DEFINE([DIGEST], 1, [Define to enable DIGEST.])
+fi
+
+AC_ARG_ENABLE(kx509, 
+       AS_HELP_STRING([--disable-kx509],
+               [if you want disable to kx509 support]))
+if test "$enable_kx509" != no ;then
+       AC_DEFINE([KX509], 1, [Define to enable kx509.])
+fi
+
+AC_ARG_ENABLE(krb4, 
+       AS_HELP_STRING([--disable-krb4],
+               [if you want disable to krb4 support]))
+if test "$enable_krb4" != no ;then
+       AC_DEFINE([KRB4], 1, [Define to enable Kerberos 4.])
+fi
+
+
 dnl Check for sqlite
 rk_TEST_PACKAGE(sqlite3,
 [#include <sqlite3.h>
@@ -86,10 +116,9 @@ rk_TEST_PACKAGE(sqlite3,
 #endif],
 [-lsqlite3],,,SQLITE3)
 
-if test "X$with_sqlite3" != Xno ; then
+if test "X$with_sqlite3" != Xyes ; then
    INCLUDE_sqlite3="-I\$(top_srcdir)/lib/sqlite"
    LIB_sqlite3="\$(top_builddir)/lib/sqlite/libheimsqlite.la"
-   with_sqlite3=yes
 fi
 AM_CONDITIONAL(SQLITE3,  test "X$with_sqlite3" = Xyes)
 
@@ -190,10 +219,6 @@ rk_TEST_PACKAGE(hesiod,[#include <hesiod.h>],-lhesiod,,, HESIOD)
 KRB_C_BIGENDIAN
 AC_C_INLINE
 
-rk_AIX
-rk_IRIX
-rk_SUNOS
-
 KRB_CHECK_X
 
 AM_CONDITIONAL(HAVE_X, test "$no_x" != yes)
@@ -217,7 +242,6 @@ AC_HEADER_STDC
 AC_CHECK_HEADERS([\
        arpa/ftp.h                              \
        arpa/telnet.h                           \
-       asl.h                                   \
        bind/bitypes.h                          \
        bsdsetjmp.h                             \
        curses.h                                \
@@ -275,6 +299,13 @@ dnl On Solaris 8 there's a compilation warning for term.h because
 dnl it doesn't define `bool'.
 AC_CHECK_HEADERS(term.h, , , -)
 
+dnl aix have asl.h (A/IX screen library) that we don't want
+AC_CHECK_HEADERS(asl.h, , , [
+#include <asl.h>
+#ifndef ASL_STRING_EMERG
+#error ASL_STRING_EMERG missing
+#endif])
+
 AC_CHECK_HEADERS(net/if.h, , , [AC_INCLUDES_DEFAULT
 #if HAVE_SYS_SOCKET_H
 #include <sys/socket.h>