Home | History | Annotate | Line # | Download | only in cf
auth-modules.m4 revision 1.1
      1  1.1  elric dnl $Id: auth-modules.m4,v 1.1 2011/04/13 18:14:32 elric Exp $
      2  1.1  elric dnl
      3  1.1  elric dnl Figure what authentication modules should be built
      4  1.1  elric dnl
      5  1.1  elric dnl rk_AUTH_MODULES(module-list)
      6  1.1  elric 
      7  1.1  elric AC_DEFUN([rk_AUTH_MODULES],[
      8  1.1  elric AC_MSG_CHECKING([which authentication modules should be built])
      9  1.1  elric 
     10  1.1  elric z='m4_ifval([$1], $1, [sia pam afskauthlib])'
     11  1.1  elric LIB_AUTH_SUBDIRS=
     12  1.1  elric for i in $z; do
     13  1.1  elric case $i in
     14  1.1  elric sia)
     15  1.1  elric if test "$ac_cv_header_siad_h" = yes; then
     16  1.1  elric 	LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS sia"
     17  1.1  elric fi
     18  1.1  elric ;;
     19  1.1  elric pam)
     20  1.1  elric case "${host}" in
     21  1.1  elric *-*-freebsd*)	ac_cv_want_pam_krb4=no ;;
     22  1.1  elric *)		ac_cv_want_pam_krb4=yes ;;
     23  1.1  elric esac
     24  1.1  elric 
     25  1.1  elric if test "$ac_cv_want_pam_krb4" = yes -a \
     26  1.1  elric     "$ac_cv_header_security_pam_modules_h" = yes -a \
     27  1.1  elric     "$enable_shared" = yes; then
     28  1.1  elric 	LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS pam"
     29  1.1  elric fi
     30  1.1  elric ;;
     31  1.1  elric afskauthlib)
     32  1.1  elric case "${host}" in
     33  1.1  elric *-*-irix[[56]]*) LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS afskauthlib" ;;
     34  1.1  elric esac
     35  1.1  elric ;;
     36  1.1  elric esac
     37  1.1  elric done
     38  1.1  elric if test "$LIB_AUTH_SUBDIRS"; then
     39  1.1  elric 	AC_MSG_RESULT($LIB_AUTH_SUBDIRS)
     40  1.1  elric else
     41  1.1  elric 	AC_MSG_RESULT(none)
     42  1.1  elric fi
     43  1.1  elric 
     44  1.1  elric AC_SUBST(LIB_AUTH_SUBDIRS)dnl
     45  1.1  elric ])
     46