Mercurial > dropbear
changeset 122:cb7ef2f63bf0 private-rez
propagate of f51a272341ee12268fe7028bc2f2bad66c603069 and ab35ee4292ea910d4871c3609d6100fe34300720 from branch 'matt.dbclient.rez' to 'matt.dbclient.work'
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Tue, 14 Sep 2004 13:09:29 +0000 |
parents | 18b261b1dea2 (diff) 9337c9f9a607 (current diff) |
children | a0db9a23f6d4 |
files | configure.in |
diffstat | 1 files changed, 9 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/configure.in Tue Sep 14 12:51:16 2004 +0000 +++ b/configure.in Tue Sep 14 13:09:29 2004 +0000 @@ -135,21 +135,22 @@ ] ) + AC_ARG_ENABLE(pam, - [ --disable-pam Don't include PAM support], + [ --enable-pam Try to include PAM support], [ - if test "x$enableval" = "xno"; then + if test "x$enableval" = "xyes"; then + AC_CHECK_LIB(pam, pam_authenticate, , AC_MSG_ERROR([*** PAM missing - install first or check config.log ***])) + AC_MSG_RESULT(Enabling PAM) + else AC_DEFINE(DISABLE_PAM,, Use PAM) AC_MSG_RESULT(Disabling PAM) - else - AC_CHECK_LIB(pam, pam_authenticate, , AC_MSG_ERROR([*** PAM missing - install first or check config.log ***])) - AC_MSG_RESULT(Enabling PAM) fi ], [ - # if not disabled, check for pam - AC_CHECK_LIB(pam, pam_authenticate, , AC_MSG_ERROR([*** PAM missing - install first or check config.log ***])) - AC_MSG_RESULT(Enabling PAM) + # disable it by default + AC_DEFINE(DISABLE_PAM,, Use PAM) + AC_MSG_RESULT(Disabling PAM) ] )