-dnl --- Libraries ---
-
-MDW_CHECK_MANYLIBS(socket, socket,,
- AC_MSG_ERROR([Socket library not found]))
-
-MDW_CHECK_MANYLIBS(gethostbyname, resolv nsl,,
- AC_MSG_ERROR([Resolver library not found]))
-
-MDW_CHECK_MANYLIBS(yp_all, nsl, AC_DEFINE(HAVE_YP))
-
-dnl --- Types ---
-
-AC_TYPE_PID_T
-AC_TYPE_UID_T
-AC_CHECK_TYPE(ssize_t, int)
-
-dnl --- Check on type sizes ---
-
-AC_CHECK_SIZEOF(int, 2)
-
-dnl --- Set the path separator ---
-
-AC_DEFINE(PATHSEP, '/')
-
-dnl --- Check for some useful functions ---
-
-AC_CHECK_FUNCS(getrusage vtimes)
+dnl --- Set default become style ---
+
+AC_ARG_ENABLE([style],
+[ --enable-style=STYLE set default style to preserve, setuser, or login],
+[case "$enableval" in
+ preserve) style="l_preserve" ;;
+ su|setuser) style="l_setuser" ;;
+ login) style="l_login" ;;
+ *) AC_MSG_ERROR([unknown login style: choose preserve, setuser, or login])
+ ;;
+esac],
+[style="l_preserve"])
+AC_DEFINE_UNQUOTED(DEFAULT_LOGIN_STYLE, $style)
+
+dnl --- Set configuration directory ---
+
+AC_ARG_WITH([etcdir],
+[ --with-etcdir=PATH set directory for configuration and key files
+ [default is /etc/become]],
+[etcdir="$withval"], [etcdir="/etc/become"])
+AC_SUBST(etcdir)
+AC_DEFINE_UNQUOTED(ETCDIR, "$etcdir")
+
+AC_ARG_WITH([htmldir],
+[ --with-htmldir=PATH set directory for HTML documentation
+ [default is PREFIX/html/become]],
+[htmldir="$withval"], [htmldir='${prefix}/html/become'])
+AC_SUBST(htmldir)