fi
if test ${with_pam-"no"} != "no"; then
- # Note: we already link the main sudo program with -ldl as needed
+ # 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`
dnl and we do the actual tests here.
dnl
if test ${with_pam-"no"} != "no"; then
- # Note: we already link the main sudo program with -ldl as needed
+ # 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...