7 # Handle configuration for BSD security, implementing the
8 # --without-bsd-security option. Also supplies the --without-amandahosts
9 # option to use .rhosts instead of .amandahosts
11 # Note that the defaults for *both* of these options are "yes", unlike
12 # the remainder of the security implementations.
14 # Defines BSD_SECURITY, and sets AM_CONDITIONAL WANT_BSD_SECURITY,
15 # if the user has selected this mechanism. Also defines USE_AMANDAHOSTS
16 # unless the user has specified --without-amandahosts.
18 AC_DEFUN([AMANDA_BSD_SECURITY],
21 AC_ARG_WITH(bsd-security,
22 AS_HELP_STRING([--without-bsd-security],
23 [do not include BSD authentication]),
26 n | no) BSD_SECURITY=no ;;
28 *) AC_MSG_ERROR([*** You must not supply an argument to --without-bsd-security.])
35 AC_ARG_WITH(amandahosts,
36 AS_HELP_STRING([ --without-amandahosts],
37 [use ".rhosts" instead of ".amandahosts"]),
40 n | no ) USE_AMANDAHOSTS="no" ;;
42 *) AC_MSG_ERROR([*** You must not supply an argument to --without-amandahosts option.])
48 if test "x$BSD_SECURITY" = "xyes"; then
49 AC_DEFINE(BSD_SECURITY,1,
50 [Define to use BSD .rhosts/.amandahosts security. ])
51 if test "x$USE_AMANDAHOSTS" = "xyes"; then
52 AC_DEFINE(USE_AMANDAHOSTS,1,
53 [Define if you want to use the ".amandahosts" for BSD security. ])
57 AM_CONDITIONAL(WANT_BSD_SECURITY, test x"$BSD_SECURITY" = x"yes")