From xemacs-m  Thu Apr 17 14:42:15 1997
Received: from server21.digital.fr (server21.digital.fr [193.56.15.21])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id OAA09615
	for <xemacs-beta@xemacs.org>; Thu, 17 Apr 1997 14:42:11 -0500 (CDT)
Received: from mail.vbo.dec.com (mail.vbo.dec.com [16.36.208.34]) by server21.digital.fr (8.7.5/8.7) with ESMTP id VAA21222 for <xemacs-beta@xemacs.org>; Thu, 17 Apr 1997 21:47:54 +0200 (MET DST)
Received: from vbormc.vbo.dec.com (vbormc.vbo.dec.com [16.36.208.94]) by mail.vbo.dec.com (8.7.3/8.7) with ESMTP id VAA23835 for <xemacs-beta@xemacs.org>; Thu, 17 Apr 1997 21:42:10 +0200 (MET DST)
Received: from clusaz.gvc.dec.com ([16.184.176.21]) by vbormc.vbo.dec.com (8.7.3/8.7) with SMTP id TAA25533 for <xemacs-beta@xemacs.org>; Thu, 17 Apr 1997 19:08:48 +0200
Received: by clusaz.gvc.dec.com (5.65v3.2/1.1.10.5/04Jan97-0611PM)
	id AA11143; Thu, 17 Apr 1997 19:16:18 +0200
Date: Thu, 17 Apr 1997 19:16:18 +0200
Message-Id: <9704171716.AA11143@clusaz.gvc.dec.com>
From: Steve Carney <carney@gvc.dec.com>
To: xemacs-beta@xemacs.org
Subject: --with-dnet option for configure
Reply-To: carney@gvc.dec.com
X-Face: (d*XRr}%:j,s*8+_o];-"-<<Sd1>H?Ds*>_vV}6DVjhNkjSRW0z^9[WBrbtMma>lyW6u>r(
 9U_m6J0kh7U=q?(h[7<YtS!Cu[Yl)D_XSCy5+tw>_2qr&4S=n|A*ScV]5BR{3]YXk$!,4l2vh9B]}&
 0p"&#\I

The following is a patch to make configuring the DECnet library
selectable.  Previously, there was no was to say "I don't want DECnet,
even if it is installed".  This makes is easier when building binaries
for distribution, which shouldn't have include DECnet.  Sound OK?

        Steve


*** configure.in.dist	Wed Apr 16 06:07:28 1997
--- configure.in	Thu Apr 17 18:33:40 1997
***************
*** 136,141 ****
--- 136,142 ----
  with_toolbars=''
  with_tty='yes'
  use_union_type='no'
+ with_dnet=''
  
  # # gnu echo silently eats `--help', `--version', `-n', `-e', `-E', `-n'.
  # # other versions of echo eat any strings beginning with `-n'.
***************
*** 279,284 ****
--- 280,286 ----
  --with-pop		support POP for mail retrieval
  --with-kerberos		support Kerberos-authenticated POP
  --with-hesiod		support Hesiod to get the POP server host
+ --with-dnet (*)		Compile with support for DECnet.
  
  Internationalization options:
  
***************
*** 453,458 ****
--- 455,461 ----
  	with_pop	| \
  	with_kerberos	| \
  	with_hesiod	| \
+ 	with_dnet	| \
  	external_widget | \
  	verbose		| \
  	extra_verbose	| \
***************
*** 2069,2075 ****
  dnl If found, this defines HAVE_LIBDNET, which m/pmax.h checks,
  dnl and also adds -ldnet to LIBS, which Autoconf uses for checks.
  dnl FSF 19.29 also checks for function dnet_ntoa.
! AC_HAVE_LIBRARY(-ldnet)
  dnl This causes -lresolv to get used in subsequent tests,
  dnl which causes failures on some systems such as HPUX 9.
  dnl FSF 19.29 also checks for function gethostbyname.
--- 2072,2081 ----
  dnl If found, this defines HAVE_LIBDNET, which m/pmax.h checks,
  dnl and also adds -ldnet to LIBS, which Autoconf uses for checks.
  dnl FSF 19.29 also checks for function dnet_ntoa.
! test "${with_dnet}"      != "no"   -a \
!      "${with_dnet}"      != "yes" && { AC_HAVE_LIBRARY(-ldnet, with_dnet="yes") }
! IF_YES_AC_DEFINE(with_dnet, HAVE_LIBDNET)
! 
  dnl This causes -lresolv to get used in subsequent tests,
  dnl which causes failures on some systems such as HPUX 9.
  dnl FSF 19.29 also checks for function gethostbyname.
***************
*** 3196,3201 ****
--- 3202,3208 ----
  elif test -n "$site_runtime_libraries"; then
    echo "  Additional libraries:                                   ${site_runtime_libraries}"
  fi
+ test "$with_dnet"  = yes && echo "  Compiling in support for DNET."
  test "$with_socks" = yes && echo "  Compiling in support for SOCKS."
  test "$with_term"  = yes && echo "  Compiling in support for TERM."
  test "$with_xauth" = yes && echo "  Compiling in support for XAUTH."

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Steve Carney        TEL:[41](22)782.90.60  http://www-digital.cern.ch/carney/
carney@gvc.dec.com  FAX:[41](22)782.94.92 

