1 AC_DEFUN([AC_FUNC_RES_SEARCH], [
2 ac_cv_func_res_search=no
5 #include <netinet/in.h>
6 #include <arpa/nameser.h>
7 #ifdef HAVE_ARPA_NAMESER_COMPAT_H
8 #include <arpa/nameser_compat.h>
12 const char host[11]="openafs.org";
16 /* Capture result in r but return 0, since a working nameserver is
17 * not a requirement for compilation.
19 r = res_search( host, C_IN, T_MX, (u_char *)&ans, sizeof(ans));
22 ac_cv_func_res_search=yes)