--- xtrans-X11R7.0-1.0.0/xtrans.m4	2005-08-17 20:10:49.000000000 +0100
+++ xtrans-X11R7.0-1.0.0.decnet/xtrans.m4	2006-04-22 17:14:13.000000000 +0100
@@ -66,6 +66,9 @@
  AC_ARG_ENABLE(tcp-transport, 
 	AC_HELP_STRING([--enable-tcp-transport],[Enable TCP socket transport]),
 	[TCPCONN=$enableval], [TCPCONN=yes])
+ AC_ARG_ENABLE(decnet-transport, 
+	AC_HELP_STRING([--enable-decnet-transport],[Enable DECnet socket transport]),
+	[DNETCONN=$enableval], [DNETCONN=yes])
  AC_MSG_CHECKING([if Xtrans should support UNIX socket connections])
  if test "$UNIXCONN" = "yes"; then
 	AC_DEFINE(UNIXCONN,1,[Support UNIX socket connections])
@@ -77,6 +80,12 @@
 	AC_DEFINE(TCPCONN,1,[Support TCP socket connections])
 	XTRANS_TCP_FLAGS
  fi
+ AC_MSG_CHECKING([if Xtrans should support DECnet socket connections])
+ AC_MSG_RESULT($DNETCONN)
+ if test "$DNETCONN" = "yes"; then
+	AC_DEFINE(DNETCONN,1,[Support DECnet socket connections])
+	AC_SEARCH_LIBS(getnodebyname, [dnet])
+ fi
 ]) # XTRANS_CONNECTION_FLAGS
 
 
