diff --git a/configure.in b/configure.in
index 01032938de87d0ef774cde6537498e6f9e967172..e4eaab8054548bd5cf26eb69f5e9875c9681691e 100644
--- a/configure.in
+++ b/configure.in
@@ -992,11 +992,6 @@ if test $ac_cv_func_res_query = no ; then
 	ac_cv_func_res_query=$ac_cv_lib_resolv_res_query
 fi
 
-if test $ac_cv_func_res_query = no ; then 
-	AC_CHECK_LIB(resolv, res_9_query)
-	ac_cv_func_res_query=$ac_cv_lib_resolv_res_9_query
-fi
-
 if test $ac_cv_func_res_query = no ; then 
 	AC_CHECK_LIB(resolv, __res_query)
 	ac_cv_func_res_query=$ac_cv_lib_resolv___res_query
@@ -1004,7 +999,7 @@ fi
 
 if test $ac_cv_func_res_query = no ; then 
 	AC_CHECK_LIB(resolv, _res_9_query)
-	ac_cv_func_res_query=$ac_cv_lib_resolv__res_9_query
+	ac_cv_func_res_query=$ac_cv_lib_resolv_res_9_query
 fi
 
 if test "$ac_cv_func_res_query" = yes ; then