Index: configure.ac
===================================================================
RCS file: /cvs/openssh/configure.ac,v
retrieving revision 1.129
diff -u -r1.129 configure.ac
--- configure.ac	29 Jun 2003 11:30:41 -0000	1.129
+++ configure.ac	30 Jun 2003 08:57:40 -0000
@@ -1876,7 +1876,13 @@
 			DNS_MSG="yes"
 			AC_DEFINE(DNS)
 			AC_SEARCH_LIBS(getrrsetbyname, resolv, 
-				[AC_DEFINE(HAVE_GETRRSETBYNAME)])
+				[AC_DEFINE(HAVE_GETRRSETBYNAME)],
+				[
+				dnl getrrsetbyname implementation need next functions
+				AC_SEARCH_LIBS(res_query, resolv)
+				AC_SEARCH_LIBS(dn_expand, resolv)
+				]
+			)
 		fi
 	]
 )
