1998-10-20 Nathan Bryant <bryant@cs.usm.maine.edu>
* Makefile.tmpl: fix to build client with old Configure script
+ * configure.in: autologin defaults to enabled if crypt() is available
Mon Oct 19 20:52:55 EDT 1998 Art Cancro <ajc@uncnsrd.mt-kisco.ny.us>
* Client ability to force display of prompts in Mail rooms, even when
AC_DEFINE_UNQUOTED(BBSDIR, "$prefix")
fi
-AC_ARG_ENABLE(autologin, [ --enable-autologin enable autologin (default is disabled)],[if test "$enableval" = yes; then
- AC_DEFINE(ENABLE_AUTOLOGIN)
-fi])
+AC_ARG_ENABLE(autologin, [ --disable-autologin disable autologin (default is enabled if possible)])
AC_ARG_ENABLE(ansi-color, [ --enable-ansi-color enable ANSI color (default is disabled)],[if test "$enableval" = yes; then
AC_DEFINE(ANSI_COLOR)
AC_PROG_RANLIB
dnl Checks for libraries.
-if test "$enable_autologin" = yes; then
+if test "$enable_autologin" != no; then
AC_CHECK_LIB(crypt, crypt)
fi
AC_CHECK_LIB(dl, dlopen)
AC_TYPE_SIGNAL
AC_FUNC_VPRINTF
AC_CHECK_FUNCS(snprintf mkdir mktime rmdir select socket strerror)
+if test "$enable_autologin" != no; then
+ AC_CHECK_FUNC(crypt, AC_DEFINE(ENABLE_AUTOLOGIN))
+fi
if test "$ac_cv_func_snprintf" = no; then
SNPRINTF=snprintf.o