The unified diff between revisions [c8f9300c..] and [23e9cf6a..] is displayed below. It can also be downloaded as a raw diff.
This diff has been restricted to the following files: 'configure.in'
# # # patch "configure.in" # from [4ead2d42d1e49714fe07a49ac8f0ead45cb3659f] # to [2dab0af5acf2a9845f1c249c5c10e0fc7b8c1e2e] # ============================================================ --- configure.in 4ead2d42d1e49714fe07a49ac8f0ead45cb3659f +++ configure.in 2dab0af5acf2a9845f1c249c5c10e0fc7b8c1e2e @@ -135,21 +135,22 @@ AC_ARG_WITH(pam, ] ) + 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) ] )