1 dnl stuff used by DNS resolv code in roken
3 dnl $Heimdal: resolv.m4 16009 2005-09-02 10:17:38Z lha $
9 AC_CHECK_HEADERS([arpa/nameser.h])
11 AC_CHECK_HEADERS(resolv.h, , , [AC_INCLUDES_DEFAULT
12 #ifdef HAVE_SYS_TYPES_H
13 #include <sys/types.h>
15 #ifdef HAVE_NETINET_IN_H
16 #include <netinet/in.h>
18 #ifdef HAVE_ARPA_NAMESER_H
19 #include <arpa/nameser.h>
23 AC_FIND_FUNC(res_search, resolv,
26 #ifdef HAVE_SYS_TYPES_H
27 #include <sys/types.h>
29 #ifdef HAVE_NETINET_IN_H
30 #include <netinet/in.h>
32 #ifdef HAVE_ARPA_NAMESER_H
33 #include <arpa/nameser.h>
41 AC_FIND_FUNC(res_nsearch, resolv,
44 #ifdef HAVE_SYS_TYPES_H
45 #include <sys/types.h>
47 #ifdef HAVE_NETINET_IN_H
48 #include <netinet/in.h>
50 #ifdef HAVE_ARPA_NAMESER_H
51 #include <arpa/nameser.h>
59 AC_FIND_FUNC(res_ndestroy, resolv,
62 #ifdef HAVE_SYS_TYPES_H
63 #include <sys/types.h>
65 #ifdef HAVE_NETINET_IN_H
66 #include <netinet/in.h>
68 #ifdef HAVE_ARPA_NAMESER_H
69 #include <arpa/nameser.h>
77 AC_FIND_FUNC(dn_expand, resolv,
80 #ifdef HAVE_SYS_TYPES_H
81 #include <sys/types.h>
83 #ifdef HAVE_NETINET_IN_H
84 #include <netinet/in.h>
86 #ifdef HAVE_ARPA_NAMESER_H
87 #include <arpa/nameser.h>
97 #ifdef HAVE_SYS_TYPES_H
98 #include <sys/types.h>
100 #ifdef HAVE_NETINET_IN_H
101 #include <netinet/in.h>
103 #ifdef HAVE_ARPA_NAMESER_H
104 #include <arpa/nameser.h>