If you don't have /usr/include/bsd_auth.h then you cannot
use this.
+ --disable-root-mailer
+ By default sudo will run the mailer as root when tattling
+ on a user so as to prevent that user from killing the mailer.
+ With this option, sudo will run the mailer as the invoking
+ user which some people consider to be safer.
+
--disable-saved-ids
Disable use of POSIX saved IDs. Normally, sudo will try to
use POSIX saved IDs if they are supported. However, some
esac
], AC_MSG_RESULT(yes))
+AC_MSG_CHECKING(whether to disable running the mailer as root)
+AC_ARG_ENABLE(root-mailer,
+[ --disable-root-mailer Don't run the mailer as root, run as the user],
+[ case "$enableval" in
+ yes) AC_MSG_RESULT(no)
+ ;;
+ no) AC_MSG_RESULT(yes)
+ AC_DEFINE(NO_ROOT_MAILER, 1, [Define to avoid runing the mailer as root.])
+ ;;
+ *) AC_MSG_RESULT(no)
+ echo "Ignoring unknown argument to --enable-root-mailer: $enableval"
+ ;;
+ esac
+], AC_MSG_RESULT(no))
+
AC_MSG_CHECKING(whether to disable use of POSIX saved ids)
AC_ARG_ENABLE(saved-ids,
-[ --saved-ids Don't try to use POSIX saved ids],
+[ --disable-saved-ids Don't try to use POSIX saved ids],
[ case "$enableval" in
yes) AC_MSG_RESULT(no)
;;
AC_MSG_CHECKING(whether root should be allowed to use sudo)
AC_ARG_ENABLE(root-sudo,
-[ --disable-root-sudo don't allow root to run sudo],
+[ --disable-root-sudo Don't allow root to run sudo],
[ case "$enableval" in
yes) AC_MSG_RESULT(yes)
;;