1*ebfedea0SLionel Sambucdnl Id 2*ebfedea0SLionel Sambucdnl 3*ebfedea0SLionel Sambucdnl Figure what authentication modules should be built 4*ebfedea0SLionel Sambucdnl 5*ebfedea0SLionel Sambucdnl rk_AUTH_MODULES(module-list) 6*ebfedea0SLionel Sambuc 7*ebfedea0SLionel SambucAC_DEFUN([rk_AUTH_MODULES],[ 8*ebfedea0SLionel SambucAC_MSG_CHECKING([which authentication modules should be built]) 9*ebfedea0SLionel Sambuc 10*ebfedea0SLionel Sambucz='m4_ifval([$1], $1, [sia pam afskauthlib])' 11*ebfedea0SLionel SambucLIB_AUTH_SUBDIRS= 12*ebfedea0SLionel Sambucfor i in $z; do 13*ebfedea0SLionel Sambuccase $i in 14*ebfedea0SLionel Sambucsia) 15*ebfedea0SLionel Sambucif test "$ac_cv_header_siad_h" = yes; then 16*ebfedea0SLionel Sambuc LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS sia" 17*ebfedea0SLionel Sambucfi 18*ebfedea0SLionel Sambuc;; 19*ebfedea0SLionel Sambucpam) 20*ebfedea0SLionel Sambuccase "${host}" in 21*ebfedea0SLionel Sambuc*-*-freebsd*) ac_cv_want_pam_krb4=no ;; 22*ebfedea0SLionel Sambuc*) ac_cv_want_pam_krb4=yes ;; 23*ebfedea0SLionel Sambucesac 24*ebfedea0SLionel Sambuc 25*ebfedea0SLionel Sambucif test "$ac_cv_want_pam_krb4" = yes -a \ 26*ebfedea0SLionel Sambuc "$ac_cv_header_security_pam_modules_h" = yes -a \ 27*ebfedea0SLionel Sambuc "$enable_shared" = yes; then 28*ebfedea0SLionel Sambuc LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS pam" 29*ebfedea0SLionel Sambucfi 30*ebfedea0SLionel Sambuc;; 31*ebfedea0SLionel Sambucafskauthlib) 32*ebfedea0SLionel Sambuccase "${host}" in 33*ebfedea0SLionel Sambuc*-*-irix[[56]]*) LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS afskauthlib" ;; 34*ebfedea0SLionel Sambucesac 35*ebfedea0SLionel Sambuc;; 36*ebfedea0SLionel Sambucesac 37*ebfedea0SLionel Sambucdone 38*ebfedea0SLionel Sambucif test "$LIB_AUTH_SUBDIRS"; then 39*ebfedea0SLionel Sambuc AC_MSG_RESULT($LIB_AUTH_SUBDIRS) 40*ebfedea0SLionel Sambucelse 41*ebfedea0SLionel Sambuc AC_MSG_RESULT(none) 42*ebfedea0SLionel Sambucfi 43*ebfedea0SLionel Sambuc 44*ebfedea0SLionel SambucAC_SUBST(LIB_AUTH_SUBDIRS)dnl 45*ebfedea0SLionel Sambuc]) 46