No empty .Rs/.Re
[netbsd-mini2440.git] / crypto / dist / heimdal / cf / resolv.m4
blob13f38fd924b8cc1813104dcaef1bcb1effe2b052
1 dnl stuff used by DNS resolv code in roken
2 dnl
3 dnl $Heimdal: resolv.m4 16009 2005-09-02 10:17:38Z lha $
4 dnl $NetBSD$
5 dnl
7 AC_DEFUN([rk_RESOLV],[
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>
14 #endif
15 #ifdef HAVE_NETINET_IN_H
16 #include <netinet/in.h>
17 #endif
18 #ifdef HAVE_ARPA_NAMESER_H
19 #include <arpa/nameser.h>
20 #endif
23 AC_FIND_FUNC(res_search, resolv,
25 #include <stdio.h>
26 #ifdef HAVE_SYS_TYPES_H
27 #include <sys/types.h>
28 #endif
29 #ifdef HAVE_NETINET_IN_H
30 #include <netinet/in.h>
31 #endif
32 #ifdef HAVE_ARPA_NAMESER_H
33 #include <arpa/nameser.h>
34 #endif
35 #ifdef HAVE_RESOLV_H
36 #include <resolv.h>
37 #endif
39 [0,0,0,0,0])
41 AC_FIND_FUNC(res_nsearch, resolv,
43 #include <stdio.h>
44 #ifdef HAVE_SYS_TYPES_H
45 #include <sys/types.h>
46 #endif
47 #ifdef HAVE_NETINET_IN_H
48 #include <netinet/in.h>
49 #endif
50 #ifdef HAVE_ARPA_NAMESER_H
51 #include <arpa/nameser.h>
52 #endif
53 #ifdef HAVE_RESOLV_H
54 #include <resolv.h>
55 #endif
57 [0,0,0,0,0,0])
59 AC_FIND_FUNC(res_ndestroy, resolv,
61 #include <stdio.h>
62 #ifdef HAVE_SYS_TYPES_H
63 #include <sys/types.h>
64 #endif
65 #ifdef HAVE_NETINET_IN_H
66 #include <netinet/in.h>
67 #endif
68 #ifdef HAVE_ARPA_NAMESER_H
69 #include <arpa/nameser.h>
70 #endif
71 #ifdef HAVE_RESOLV_H
72 #include <resolv.h>
73 #endif
75 [0])
77 AC_FIND_FUNC(dn_expand, resolv,
79 #include <stdio.h>
80 #ifdef HAVE_SYS_TYPES_H
81 #include <sys/types.h>
82 #endif
83 #ifdef HAVE_NETINET_IN_H
84 #include <netinet/in.h>
85 #endif
86 #ifdef HAVE_ARPA_NAMESER_H
87 #include <arpa/nameser.h>
88 #endif
89 #ifdef HAVE_RESOLV_H
90 #include <resolv.h>
91 #endif
93 [0,0,0,0,0])
95 rk_CHECK_VAR(_res, 
96 [#include <stdio.h>
97 #ifdef HAVE_SYS_TYPES_H
98 #include <sys/types.h>
99 #endif
100 #ifdef HAVE_NETINET_IN_H
101 #include <netinet/in.h>
102 #endif
103 #ifdef HAVE_ARPA_NAMESER_H
104 #include <arpa/nameser.h>
105 #endif
106 #ifdef HAVE_RESOLV_H
107 #include <resolv.h>
108 #endif])