Line | |
---|
1 | dnl stuff used by DNS resolv code in roken
|
---|
2 | dnl
|
---|
3 | dnl $Id$
|
---|
4 | dnl
|
---|
5 |
|
---|
6 | AC_DEFUN([rk_RESOLV],[
|
---|
7 |
|
---|
8 | AC_CHECK_HEADERS([arpa/nameser.h dns.h])
|
---|
9 |
|
---|
10 | AC_CHECK_HEADERS(resolv.h, , , [AC_INCLUDES_DEFAULT
|
---|
11 | #ifdef HAVE_SYS_TYPES_H
|
---|
12 | #include <sys/types.h>
|
---|
13 | #endif
|
---|
14 | #ifdef HAVE_NETINET_IN_H
|
---|
15 | #include <netinet/in.h>
|
---|
16 | #endif
|
---|
17 | #ifdef HAVE_ARPA_NAMESER_H
|
---|
18 | #include <arpa/nameser.h>
|
---|
19 | #endif
|
---|
20 | ])
|
---|
21 |
|
---|
22 | AC_FIND_FUNC(res_search, resolv,
|
---|
23 | [
|
---|
24 | #include <stdio.h>
|
---|
25 | #ifdef HAVE_SYS_TYPES_H
|
---|
26 | #include <sys/types.h>
|
---|
27 | #endif
|
---|
28 | #ifdef HAVE_NETINET_IN_H
|
---|
29 | #include <netinet/in.h>
|
---|
30 | #endif
|
---|
31 | #ifdef HAVE_ARPA_NAMESER_H
|
---|
32 | #include <arpa/nameser.h>
|
---|
33 | #endif
|
---|
34 | #ifdef HAVE_RESOLV_H
|
---|
35 | #include <resolv.h>
|
---|
36 | #endif
|
---|
37 | ],
|
---|
38 | [0,0,0,0,0])
|
---|
39 |
|
---|
40 | AC_FIND_FUNC(res_nsearch, resolv,
|
---|
41 | [
|
---|
42 | #include <stdio.h>
|
---|
43 | #ifdef HAVE_SYS_TYPES_H
|
---|
44 | #include <sys/types.h>
|
---|
45 | #endif
|
---|
46 | #ifdef HAVE_NETINET_IN_H
|
---|
47 | #include <netinet/in.h>
|
---|
48 | #endif
|
---|
49 | #ifdef HAVE_ARPA_NAMESER_H
|
---|
50 | #include <arpa/nameser.h>
|
---|
51 | #endif
|
---|
52 | #ifdef HAVE_RESOLV_H
|
---|
53 | #include <resolv.h>
|
---|
54 | #endif
|
---|
55 | ],
|
---|
56 | [0,0,0,0,0,0])
|
---|
57 |
|
---|
58 | AC_FIND_FUNC(res_ndestroy, resolv,
|
---|
59 | [
|
---|
60 | #include <stdio.h>
|
---|
61 | #ifdef HAVE_SYS_TYPES_H
|
---|
62 | #include <sys/types.h>
|
---|
63 | #endif
|
---|
64 | #ifdef HAVE_NETINET_IN_H
|
---|
65 | #include <netinet/in.h>
|
---|
66 | #endif
|
---|
67 | #ifdef HAVE_ARPA_NAMESER_H
|
---|
68 | #include <arpa/nameser.h>
|
---|
69 | #endif
|
---|
70 | #ifdef HAVE_RESOLV_H
|
---|
71 | #include <resolv.h>
|
---|
72 | #endif
|
---|
73 | ],
|
---|
74 | [0])
|
---|
75 |
|
---|
76 | AC_FIND_FUNC_NO_LIBS(dns_search,,
|
---|
77 | [
|
---|
78 | #ifdef HAVE_DNS_H
|
---|
79 | #include <dns.h>
|
---|
80 | #endif
|
---|
81 | ],
|
---|
82 | [0,0,0,0,0,0,0,0])
|
---|
83 |
|
---|
84 |
|
---|
85 | AC_FIND_FUNC(dn_expand, resolv,
|
---|
86 | [
|
---|
87 | #include <stdio.h>
|
---|
88 | #ifdef HAVE_SYS_TYPES_H
|
---|
89 | #include <sys/types.h>
|
---|
90 | #endif
|
---|
91 | #ifdef HAVE_NETINET_IN_H
|
---|
92 | #include <netinet/in.h>
|
---|
93 | #endif
|
---|
94 | #ifdef HAVE_ARPA_NAMESER_H
|
---|
95 | #include <arpa/nameser.h>
|
---|
96 | #endif
|
---|
97 | #ifdef HAVE_RESOLV_H
|
---|
98 | #include <resolv.h>
|
---|
99 | #endif
|
---|
100 | ],
|
---|
101 | [0,0,0,0,0])
|
---|
102 |
|
---|
103 | rk_CHECK_VAR(_res,
|
---|
104 | [#include <stdio.h>
|
---|
105 | #ifdef HAVE_SYS_TYPES_H
|
---|
106 | #include <sys/types.h>
|
---|
107 | #endif
|
---|
108 | #ifdef HAVE_NETINET_IN_H
|
---|
109 | #include <netinet/in.h>
|
---|
110 | #endif
|
---|
111 | #ifdef HAVE_ARPA_NAMESER_H
|
---|
112 | #include <arpa/nameser.h>
|
---|
113 | #endif
|
---|
114 | #ifdef HAVE_RESOLV_H
|
---|
115 | #include <resolv.h>
|
---|
116 | #endif])
|
---|
117 |
|
---|
118 | ])
|
---|
Note:
See
TracBrowser
for help on using the repository browser.