]> code.citadel.org Git - citadel.git/commitdiff
* configure.in: autologin defaults to enabled if crypt() is available
authorNathan Bryant <loanshark@uncensored.citadel.org>
Wed, 21 Oct 1998 02:12:50 +0000 (02:12 +0000)
committerNathan Bryant <loanshark@uncensored.citadel.org>
Wed, 21 Oct 1998 02:12:50 +0000 (02:12 +0000)
citadel/ChangeLog
citadel/configure.in

index b605753754705aa2778e69afe9aa59db908f89f1..059884b63be93a4740b9d6c894069ef1fd2098cd 100644 (file)
@@ -1,5 +1,6 @@
 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
index 3a49103195f28419c021c3e6f2dac31ae6ead2c2..a519b3d32a1f03c43f2de65d95d46a670260a74e 100644 (file)
@@ -8,9 +8,7 @@ else
        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)
@@ -39,7 +37,7 @@ fi
 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)
@@ -71,6 +69,9 @@ AC_PROG_GCC_TRADITIONAL
 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