2002-09-16 21:04:40 +00:00
|
|
|
dnl $Id: auth-modules.m4,v 1.5 2002/09/09 13:31:45 joda Exp $
|
2000-01-09 20:58:00 +00:00
|
|
|
dnl
|
|
|
|
dnl Figure what authentication modules should be built
|
2002-09-16 21:04:40 +00:00
|
|
|
dnl
|
|
|
|
dnl rk_AUTH_MODULES(module-list)
|
2000-01-09 20:58:00 +00:00
|
|
|
|
2002-09-16 21:04:40 +00:00
|
|
|
AC_DEFUN(rk_AUTH_MODULES,[
|
|
|
|
AC_MSG_CHECKING([which authentication modules should be built])
|
2000-01-09 20:58:00 +00:00
|
|
|
|
2002-09-16 21:04:40 +00:00
|
|
|
z='m4_ifval([$1], $1, [sia pam afskauthlib])'
|
2000-01-09 20:58:00 +00:00
|
|
|
LIB_AUTH_SUBDIRS=
|
2002-09-16 21:04:40 +00:00
|
|
|
for i in $z; do
|
|
|
|
case $i in
|
|
|
|
sia)
|
2000-01-09 20:58:00 +00:00
|
|
|
if test "$ac_cv_header_siad_h" = yes; then
|
|
|
|
LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS sia"
|
|
|
|
fi
|
2002-09-16 21:04:40 +00:00
|
|
|
;;
|
|
|
|
pam)
|
2002-08-30 21:23:27 +00:00
|
|
|
case "${host}" in
|
|
|
|
*-*-freebsd*) ac_cv_want_pam_krb4=no ;;
|
|
|
|
*) ac_cv_want_pam_krb4=yes ;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
if test "$ac_cv_want_pam_krb4" = yes -a \
|
|
|
|
"$ac_cv_header_security_pam_modules_h" = yes -a \
|
|
|
|
"$enable_shared" = yes; then
|
2000-01-09 20:58:00 +00:00
|
|
|
LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS pam"
|
|
|
|
fi
|
2002-09-16 21:04:40 +00:00
|
|
|
;;
|
|
|
|
afskauthlib)
|
2000-01-09 20:58:00 +00:00
|
|
|
case "${host}" in
|
2002-02-19 15:46:56 +00:00
|
|
|
*-*-irix[[56]]*) LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS afskauthlib" ;;
|
2000-01-09 20:58:00 +00:00
|
|
|
esac
|
2002-09-16 21:04:40 +00:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
done
|
|
|
|
if test "$LIB_AUTH_SUBDIRS"; then
|
|
|
|
AC_MSG_RESULT($LIB_AUTH_SUBDIRS)
|
|
|
|
else
|
|
|
|
AC_MSG_RESULT(none)
|
|
|
|
fi
|
2000-01-09 20:58:00 +00:00
|
|
|
|
|
|
|
AC_SUBST(LIB_AUTH_SUBDIRS)dnl
|
|
|
|
])
|