From 5bad61831b1c06888d80d92a0bf34acbeecda026 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sat, 18 Jun 2005 07:48:43 +0000 Subject: Move Secure RPC flags from X11/configure.ac to xtrans/xtrans.m4 since multiple modules will need them --- xtrans.m4 | 34 +++++++++++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) (limited to 'xtrans.m4') diff --git a/xtrans.m4 b/xtrans.m4 index c0c90f2..6319c33 100644 --- a/xtrans.m4 +++ b/xtrans.m4 @@ -49,4 +49,36 @@ AC_DEFUN([XTRANS_CONNECTION_FLAGS], if test "$IPV6CONN" = "yes"; then AC_DEFINE(IPv6,1,[Support IPv6 for TCP connections]) fi -]) # XTRANS_CONNECTION_FLAGS \ No newline at end of file +]) # XTRANS_CONNECTION_FLAGS + + +# XTRANS_SECURE_RPC_FLAGS() +# ------------------------- +# Check for Secure RPC functions - must come after XTRANS_CONNECTION_FLAGS +# so that any necessary networking libraries are already found +AC_DEFUN([XTRANS_SECURE_RPC_FLAGS], +[AC_REQUIRE([XTRANS_CONNECTION_FLAGS]) + AC_ARG_ENABLE(secure-rpc, + AC_HELP_STRING([--enable-secure-rpc],[Enable Secure RPC]), + [SECURE_RPC=$enableval], [SECURE_RPC="try"]) + + if test "x$SECURE_RPC" == "xyes" -o "x$SECURE_RPC" == "xtry" ; then + FOUND_SECURE_RPC="no" + AC_CHECK_FUNCS([authdes_seccreate authdes_create], + [FOUND_SECURE_RPC="yes"]) + if test "x$FOUND_SECURE_RPC" == "xno" ; then + if test "x$SECURE_RPC" == "xyes" ; then + AC_MSG_ERROR([Secure RPC requested, but required functions not found]) + fi + SECURE_RPC="no" + else + SECURE_RPC="yes" + fi + fi + AC_MSG_CHECKING([if Secure RPC authentication ("SUN-DES-1") should be supported for X11 clients]) + if test "x$SECURE_RPC" == "xyes" ; then + AC_DEFINE(SECURE_RPC, 1, [Support Secure RPC ("SUN-DES-1") authentication for X11 clients]) + fi + AC_MSG_RESULT($SECURE_RPC) +]) # XTRANS_SECURE_RPC_FLAGS + -- cgit v1.2.1