mhonek / rpms / openldap

Forked from rpms/openldap 3 years ago
Clone
01084b3
Check for __res_query in libresolv before we check for it in libbind.
01084b3
--- openldap-2.2.23/configure.in	2005-03-01 19:57:10.053436724 -0500
01084b3
+++ openldap-2.2.23/configure.in	2005-03-01 19:57:27.663137034 -0500
01084b3
@@ -873,16 +873,6 @@
01084b3
 fi
01084b3
 
01084b3
 if test $ac_cv_func_res_query = no ; then 
01084b3
-	AC_CHECK_LIB(bind, res_query)
01084b3
-	ac_cv_func_res_query=$ac_cv_lib_bind_res_query
01084b3
-fi
01084b3
-
01084b3
-if test $ac_cv_func_res_query = no ; then 
01084b3
-	AC_CHECK_LIB(bind, __res_query)
01084b3
-	ac_cv_func_res_query=$ac_cv_lib_bind___res_query
01084b3
-fi
01084b3
-
01084b3
-if test $ac_cv_func_res_query = no ; then 
01084b3
 	AC_CHECK_LIB(resolv, res_query)
01084b3
 	ac_cv_func_res_query=$ac_cv_lib_resolv_res_query
01084b3
 fi
01084b3
@@ -897,6 +887,16 @@
01084b3
 	ac_cv_func_res_query=$ac_cv_lib_resolv_res_9_query
01084b3
 fi
01084b3
 
01084b3
+if test $ac_cv_func_res_query = no ; then 
01084b3
+	AC_CHECK_LIB(bind, res_query)
01084b3
+	ac_cv_func_res_query=$ac_cv_lib_bind_res_query
01084b3
+fi
01084b3
+
01084b3
+if test $ac_cv_func_res_query = no ; then 
01084b3
+	AC_CHECK_LIB(bind, __res_query)
01084b3
+	ac_cv_func_res_query=$ac_cv_lib_bind___res_query
01084b3
+fi
01084b3
+
01084b3
 if test "$ac_cv_func_res_query" = yes ; then
01084b3
 	AC_DEFINE(HAVE_RES_QUERY,1,
01084b3
 		[define if you have res_query()])