--- cygnus/src/kdc/configure.in	Tue Jul  1 14:09:27 1997
+++ kerbnet-1.2/kdc/configure.in	Tue May 27 21:59:51 1997
@@ -2,8 +2,13 @@
 CONFIG_RULES
 AC_PROG_INSTALL
 AC_HEADER_CHECK(termios.h,AC_FUNC_CHECK([tcsetattr],AC_DEFINE(POSIX_TERMIOS)))
-AC_CHECK_HEADERS(sys/select.h)
-ET_RULES
+AC_CHECK_HEADERS(syslog.h stdarg.h sys/select.h)
+AC_CHECK_FUNCS(openlog syslog closelog strftime vsprintf)
+dnl
+dnl Cygwin32 library required for a service.
+dnl
+AC_CHECK_LIB(advapi32,main)
+AC_PROG_AWK
 HAS_ANSI_VOLATILE
 dnl
 dnl --with-vague-errors disables useful error messages.
@@ -31,7 +36,36 @@
 	AC_DEFINE(KRBCONF_KDC_MODIFIES_KDB)
 fi
 dnl
-USE_KADM_LIBRARY
+dnl
+dnl --with-predictive-securid uses code that depends on having the
+dnl proprietary "get_ace_passcode" function available.
+dnl
+AC_ARG_WITH([predictive-securid],
+[  --with-predictive-securid	use the securid code
+  --without-predictive-securid	do not support the securid mode (default)],
+,
+withval=no)dnl
+if test "$withval" = yes; then
+	AC_MSG_RESULT(Use predicitive securid code)
+	AC_DEFINE(WITH_PREDICTIVE_SECURID)
+fi
+dnl
+
+dnl
+dnl This is a horrible hack, based on the fact that we have to drag 
+dnl stuff from alt_prof.c, which depends on str_conv.c, which depends on
+dnl far too much other stuff!  The problem is that shared libraries require
+dnl that you link in all other libraries that depend on it.
+dnl
+dnl XXX we need to rethink where things go.
+dnl 
+USE_DYN_LIBRARY
+USE_KADMSRV_LIBRARY
+USE_GSSRPC_LIBRARY
+USE_GSSAPI_LIBRARY
+USE_DYN_LIBRARY
+dnl
+dnl
 USE_KDB5_LIBRARY
 USE_KRB4_LIBRARY
 KRB5_LIBRARIES
