(or at least the library and header files).
--with-kerb4
- Enable kerberos v4 support. Tested only with the Cygnus Network
- Security package (CNS). This uses kerberos passphrases for
- authentication but does not use the kerberos cookie scheme.
+ Enable Kerberos IV support. Tested only with the Cygnus Network
+ Security package (CNS). This uses Kerberos passphrases for
+ authentication but does not use the Kerberos cookie scheme.
--with-kerb5
- Enable kerberos v5 support. Tested against MIT Kerberos V,
+ Enable Kerberos V support. Tested against MIT Kerberos V,
release 1.1, although also expected to work against CNS. This
- This uses kerberos passphrases for authentication but does not
- use the kerberos cookie scheme. Will not work for Kerberos V
+ This uses Kerberos passphrases for authentication but does not
+ use the Kerberos cookie scheme. Will not work for Kerberos V
older than version 1.1.
--with-authenticate
/etc/pam.conf to obtain syslog output for debugging purposes.
--with-AFS
- Enable AFS support with kerberos authentication. Should work under
+ Enable AFS support with Kerberos authentication. Should work under
AFS 3.3. If your AFS doesn't have -laudit you should be able to
link without it.
--with-otp-only
This option is now just an alias for --without-passwd.
+ --with-stow
+ Properly handle GNU stow packaging. The sudoers file will
+ physically live in ${prefix}/etc and /etc/sudoers will be
+ a symbolic link.
+
The following options are also configurable at runtime:
--with-long-otp-prompt
*/
#undef USE_INSULTS
+/* Define if you use stow packaging. */
+#undef USE_STOW
+
/* Define if you want a different ticket file for each tty. */
#undef USE_TTY_TICKETS
# endif
#endif
+/* GNU stow needs /etc/sudoers to be a symlink. */
+#ifdef HAVE_STOW
+# define stat_sudoers stat
+#else
+# define stat_sudoers lstat
+#endif
+
/* Solaris doesn't use const qualifiers in PAM. */
#ifdef sun
# define PAM_CONST
--with-goons-insults include the insults from the "Goon Show"
--with-secure-path override the user's path with a builtin one
--without-interfaces don't try to read the ip addr of ether interfaces
+ --with-stow properly handle GNU stow packaging
Some influential environment variables:
CC C compiler command
test "$mandir" = '${prefix}/man' && mandir='$(prefix)/man'
test "$bindir" = '${exec_prefix}/bin' && bindir='$(exec_prefix)/bin'
test "$sbindir" = '${exec_prefix}/sbin' && sbindir='$(exec_prefix)/sbin'
-
-if test "$sysconfdir" = '${prefix}/etc'; then
- if test "$prefix" = "NONE"; then
- sysconfdir='/etc'
- else
- sysconfdir='$(prefix)/etc'
- fi
-fi
+test "$sysconfdir" = '${prefix}/etc' -a X"$with_stow" != X"yes" && sysconfdir='/etc'
echo "${ECHO_T}yes" >&6
fi;
+echo "$as_me:$LINENO: checking whether stow should be used" >&5
+echo $ECHO_N "checking whether stow should be used... $ECHO_C" >&6
+
+# Check whether --with-stow or --without-stow was given.
+if test "${with_stow+set}" = set; then
+ withval="$with_stow"
+ case $with_stow in
+ yes) echo "$as_me:$LINENO: result: yes" >&5
+echo "${ECHO_T}yes" >&6
+
+cat >>confdefs.h <<\_ACEOF
+#define USE_STOW 1
+_ACEOF
+
+ ;;
+ no) echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
+ ;;
+ *) { { echo "$as_me:$LINENO: error: \"--with-stow does not take an argument.\"" >&5
+echo "$as_me: error: \"--with-stow does not take an argument.\"" >&2;}
+ { (exit 1); exit 1; }; }
+ ;;
+esac
+else
+ echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
+fi;
+
echo "$as_me:$LINENO: checking whether to do user authentication by default" >&5
echo $ECHO_N "checking whether to do user authentication by default... $ECHO_C" >&6
test "$mandir" = '${prefix}/man' && mandir='$(prefix)/man'
test "$bindir" = '${exec_prefix}/bin' && bindir='$(exec_prefix)/bin'
test "$sbindir" = '${exec_prefix}/sbin' && sbindir='$(exec_prefix)/sbin'
-test "$sysconfdir" = '${prefix}/etc' && sysconfdir='/etc'
+test "$sysconfdir" = '${prefix}/etc' -a X"$with_stow" != X"yes" && sysconfdir='/etc'
dnl
dnl Deprecated --with options (these all warn or generate an error)
;;
esac], AC_MSG_RESULT(yes))
+AC_MSG_CHECKING(whether stow should be used)
+AC_ARG_WITH(stow, [ --with-stow properly handle GNU stow packaging],
+[case $with_stow in
+ yes) AC_MSG_RESULT(yes)
+ AC_DEFINE(USE_STOW, 1, [Define if you use stow packaging.])
+ ;;
+ no) AC_MSG_RESULT(no)
+ ;;
+ *) AC_MSG_ERROR(["--with-stow does not take an argument."])
+ ;;
+esac], AC_MSG_RESULT(no))
+
dnl
dnl Options for --enable
dnl
# endif
#endif
+/* GNU stow needs /etc/sudoers to be a symlink. */
+#ifdef HAVE_STOW
+# define stat_sudoers stat
+#else
+# define stat_sudoers lstat
+#endif
+
/* Solaris doesn't use const qualifiers in PAM. */
#ifdef sun
# define PAM_CONST