fix printf
[metze/heimdal/wip.git] / configure.in
index 5fd4e848acbc466d41f7afa16e1b8f8fe6e638ca..b8ebc02415e46242fb0eb2dfbc8eef0b1a5070a1 100644 (file)
@@ -2,9 +2,10 @@ dnl Process this file with autoconf to produce a configure script.
 AC_REVISION($Revision$)
 AC_PREREQ(2.62)
 test -z "$CFLAGS" && CFLAGS="-g"
-AC_INIT([Heimdal],[1.1.99],[heimdal-bugs@h5l.org])
+AC_INIT([Heimdal],[1.2.99],[heimdal-bugs@h5l.org])
 AC_CONFIG_SRCDIR([kuser/kinit.c])
 AC_CONFIG_HEADERS(include/config.h)
+AC_CONFIG_MACRO_DIR([cf])
 
 AM_INIT_AUTOMAKE([foreign 1.10])
 AM_MAINTAINER_MODE
@@ -28,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
@@ -69,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]))
@@ -77,6 +86,46 @@ 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>
+#ifndef SQLITE_OPEN_CREATE
+#error "old version"
+#endif],
+[-lsqlite3],,,SQLITE3)
+
+if test "X$with_sqlite3" != Xyes ; then
+   INCLUDE_sqlite3="-I\$(top_srcdir)/lib/sqlite"
+   LIB_sqlite3="\$(top_builddir)/lib/sqlite/libheimsqlite.la"
+fi
+AM_CONDITIONAL(SQLITE3,  test "X$with_sqlite3" = Xyes)
+
+dnl check for libintl
+rk_TEST_PACKAGE(libintl,
+[#include <libintl.h>],
+[-lintl],,,LIBINTL)
 
 dnl path where the hdb directory is stored
 AC_ARG_WITH([hdbdir], 
@@ -170,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)
@@ -197,7 +242,6 @@ AC_HEADER_STDC
 AC_CHECK_HEADERS([\
        arpa/ftp.h                              \
        arpa/telnet.h                           \
-       asl.h                                   \
        bind/bitypes.h                          \
        bsdsetjmp.h                             \
        curses.h                                \
@@ -239,6 +283,7 @@ AC_CHECK_HEADERS([\
        sys/times.h                             \
        sys/types.h                             \
        sys/un.h                                \
+       locale.h                                \
        termcap.h                               \
        termio.h                                \
        termios.h                               \
@@ -254,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>
@@ -293,8 +345,9 @@ if test "$ac_cv_header_netinfo_ni_h" = yes -a "$enable_netinfo" = yes; then
 fi
 
 dnl export symbols
-rk_WIN32_EXPORT(BUILD_KRB5_LIB, KRB5_LIB_FUNCTION)
-rk_WIN32_EXPORT(BUILD_ROKEN_LIB, ROKEN_LIB_FUNCTION)
+rk_WIN32_EXPORT(BUILD_KRB5_LIB, KRB5_LIB)
+rk_WIN32_EXPORT(BUILD_ROKEN_LIB, ROKEN_LIB)
+rk_WIN32_EXPORT(BUILD_GSSAPI_LIB, GSSAPI_LIB)
 
 dnl Checks for libraries.
 
@@ -477,6 +530,7 @@ AC_CONFIG_FILES(Makefile            \
        lib/sqlite/Makefile             \
        lib/vers/Makefile               \
        lib/wind/Makefile               \
+       po/Makefile                     \
        kuser/Makefile                  \
        kpasswd/Makefile                \
        kadmin/Makefile                 \
@@ -516,7 +570,6 @@ AC_CONFIG_FILES(Makefile            \
        tests/plugin/Makefile           \
        packages/Makefile               \
        packages/mac/Makefile           \
-       packages/debian/Makefile        \
        doc/Makefile                    \
        tools/Makefile                  \
 )