now that plug-ins are loaded with RTLD_GLOBAL.
# We already link with -ldl (see LIBDL below) so no need for that here.
SUDOERS_LIBS="${SUDOERS_LIBS} -lpam"
- # There should be no need to link the sudo front-end with PAM
- # as all PAM calls happen via the sudoers plugin.
- # Unfortunately, not doing so causes problems on FreeBSD at least.
- case "$OS" in
- freebsd)
- LIBS="${LIBS} -lpam";;
- esac
-
for ac_header in security/pam_appl.h pam/pam_appl.h
do :
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
# We already link with -ldl (see LIBDL below) so no need for that here.
SUDOERS_LIBS="${SUDOERS_LIBS} -lpam"
- # There should be no need to link the sudo front-end with PAM
- # as all PAM calls happen via the sudoers plugin.
- # Unfortunately, not doing so causes problems on FreeBSD at least.
- case "$OS" in
- freebsd)
- LIBS="${LIBS} -lpam";;
- esac
-
dnl
dnl Some PAM implementations (MacOS X for example) put the PAM headers
dnl in /usr/include/pam instead of /usr/include/security...