better glue w/ jakob@
diff --git a/configure.ac b/configure.ac
index 000fb4b..c8a9913 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,4 +1,4 @@
-# $Id: configure.ac,v 1.118 2003/05/15 00:53:49 djm Exp $
+# $Id: configure.ac,v 1.119 2003/05/15 01:12:19 djm Exp $
 
 AC_INIT
 AC_CONFIG_SRCDIR([ssh.c])
@@ -1859,26 +1859,15 @@
 	[  --with-dns              Support for fetching keys from DNS (experimental)],
 	[
 		if test "x$withval" != "xno" ; then
-			AC_DEFINE(DNS)
-			DNS_MSG="yes" 
+			DNS_MSG="no (system lacks getrrsetbyname)"
+			AC_SEARCH_LIBS(getrrsetbyname, resolv, [
+				AC_DEFINE(DNS)
+				DNS_MSG="yes"
+			])
 		fi
 	]
 )
 
-LWRES_MSG=""
-AC_ARG_WITH(lwres,
-	[  --with-lwres            Use lwres library/headers for DNS support],
-	[
-		if test "x$withval" != "xno" -a "x$DNS_MSG" = "xyes"; then
-			AC_DEFINE(LWRES)
-			LWRES_MSG="(using liblwres)" 
-			AC_SEARCH_LIBS(lwres_herror, lwres)
-		fi
-	]
-)
-
-
-
 # Check whether user wants Kerberos 5 support
 KRB5_MSG="no" 
 AC_ARG_WITH(kerberos5,
@@ -2603,7 +2592,7 @@
 echo "          sshd superuser user PATH: $J"
 fi
 echo "                    Manpage format: $MANTYPE"
-echo "                       DNS support: $DNS_MSG $LWRES_MSG"
+echo "                       DNS support: $DNS_MSG"
 echo "                       PAM support: $PAM_MSG"
 echo "                KerberosIV support: $KRB4_MSG"
 echo "                 KerberosV support: $KRB5_MSG"