3 # AMANDA_BSDTCP_SECURITY
7 # Handle configuration for BSDTCP security, implementing the
8 # --with-bsdtcp-security option.
10 # Defines and substitutes BSDTCP_SECURITY, and sets AM_CONDITIONAL
11 # WANT_BSDTCP_SECURITY, if the user has selected this mechanism.
13 AC_DEFUN([AMANDA_BSDTCP_SECURITY],
16 AC_ARG_WITH(bsdtcp-security,
17 AS_HELP_STRING([--with-bsdtcp-security],
18 [include BSDTCP authentication]),
21 n | no) BSDTCP_SECURITY=no ;;
22 y | ye | yes) BSDTCP_SECURITY=yes ;;
23 *) AC_MSG_ERROR([*** You must not supply an argument to --with-bsdtcp-security.])
29 if test "x$BSDTCP_SECURITY" = "xyes"; then
30 AC_DEFINE(BSDTCP_SECURITY,1,
31 [Define if BSDTCP transport should be enabled.])
34 AM_CONDITIONAL(WANT_BSDTCP_SECURITY, test x"$BSDTCP_SECURITY" = x"yes")
35 AC_SUBST(BSDTCP_SECURITY)