$NetBSD: patch-ab,v 1.6 2007/07/09 03:51:33 minskim Exp $ --- configure.in.orig 2002-07-08 23:17:13.000000000 -0700 +++ configure.in @@ -157,6 +157,10 @@ AC_ARG_ENABLE(lckpwdf, WITH_LCKPWDF=no, WITH_LCKPWDF=yes) AC_SUBST(WITH_LCKPWDF) +AC_ARG_ENABLE(crack, +[ --disable-crack do not use crack], + WITH_CRACK=no, WITH_CRACK=yes) + AC_CHECK_HEADERS(paths.h) AC_ARG_WITH(mailspool, [ --with-mailspool path to mail spool directory @@ -195,11 +199,15 @@ dnl dnl At least on Solaris, the existing libcrack must be dynamic. dnl Ought to introduce a check for this. dnl +if test "$WITH_CRACK" = "yes"; then AC_CHECK_LIB(crack, FascistCheck, HAVE_LIBCRACK=yes ; AC_DEFINE(HAVE_LIBCRACK), HAVE_LIBCRACK=no) +else +HAVE_LIBCRACK=no +fi AC_SUBST(HAVE_LIBCRACK) -AC_CHECK_LIB(crypt, fcrypt, HAVE_LIBCRYPT=yes ; AC_DEFINE(HAVE_LIBCRYPT), +AC_CHECK_LIB(crypt, crypt, HAVE_LIBCRYPT=yes ; AC_DEFINE(HAVE_LIBCRYPT), HAVE_LIBCRYPT=no) AC_SUBST(HAVE_LIBCRYPT) AC_CHECK_LIB(util, logwtmp, HAVE_LIBUTIL=yes ; AC_DEFINE(HAVE_LIBUTIL), @@ -215,6 +223,9 @@ if test x$HAVE_LIBDB != xyes ; then HAVE_LIBDB=no) fi AC_SUBST(HAVE_LIBDB) +AC_CHECK_LIB(db4, db_create, HAVE_LIBDB4=yes ; AC_DEFINE(HAVE_LIBDB4), + HAVE_LIBDB4=no) +AC_SUBST(HAVE_LIBDB4) AC_CHECK_LIB(fl, yylex, yyterminate, HAVE_LIBFL=yes ; AC_DEFINE(HAVE_LIBFL), HAVE_LIBFL=no) AC_SUBST(HAVE_LIBFL) @@ -240,6 +251,13 @@ AC_CHECK_HEADERS(fcntl.h limits.h malloc dnl Linux wants features.h in some of the source files. AC_CHECK_HEADERS(features.h) +dnl For module/pam_filter +AC_CHECK_HEADERS(termios.h) + +dnl For module/pam_unix +AC_CHECK_HEADERS(shadow.h) +AC_CHECK_FUNCS(getspnam) + dnl For module/pam_cracklib AC_CHECK_HEADERS(crypt.h) @@ -257,7 +275,7 @@ dnl being found. dnl Look for cracklib dictionary AC_MSG_CHECKING(path to cracklib dictionary) -DICT_DIR_CANDIDATES="/usr/lib /usr/share/dict /usr/share/lib \ +DICT_DIR_CANDIDATES="${prefix}/libdata /usr/lib /usr/share/dict /usr/share/lib \ /usr/local/lib /usr/local/share/lib" DICT_FILE_CANDIDATES="pw_dict cracklib_dict" CRACKLIB_DICTPATH=""