This commit was manufactured by cvs2svn to create tag
[heimdal.git] / cf / auth-modules.m4
blobe27de4bd8ad6e94ee715826293c5f2f7f26bd9d5
1 dnl $Id$
2 dnl
3 dnl Figure what authentication modules should be built
4 dnl
5 dnl rk_AUTH_MODULES(module-list)
7 AC_DEFUN([rk_AUTH_MODULES],[
8 AC_MSG_CHECKING([which authentication modules should be built])
10 z='m4_ifval([$1], $1, [sia pam afskauthlib])'
11 LIB_AUTH_SUBDIRS=
12 for i in $z; do
13 case $i in
14 sia)
15 if test "$ac_cv_header_siad_h" = yes; then
16         LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS sia"
19 pam)
20 case "${host}" in
21 *-*-freebsd*)   ac_cv_want_pam_krb4=no ;;
22 *)              ac_cv_want_pam_krb4=yes ;;
23 esac
25 if test "$ac_cv_want_pam_krb4" = yes -a \
26     "$ac_cv_header_security_pam_modules_h" = yes -a \
27     "$enable_shared" = yes; then
28         LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS pam"
31 afskauthlib)
32 case "${host}" in
33 *-*-irix[[56]]*) LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS afskauthlib" ;;
34 esac
36 esac
37 done
38 if test "$LIB_AUTH_SUBDIRS"; then
39         AC_MSG_RESULT($LIB_AUTH_SUBDIRS)
40 else
41         AC_MSG_RESULT(none)
44 AC_SUBST(LIB_AUTH_SUBDIRS)dnl