/crypto/heimdal/cf/resolv.m4

https://bitbucket.org/freebsd/freebsd-head/ · m4 · 109 lines · 27 code · 9 blank · 73 comment · 0 complexity · d827ccc98343f622275087c41094d0c1 MD5 · raw file

  1. dnl stuff used by DNS resolv code in roken
  2. dnl
  3. dnl $Id: resolv.m4 16009 2005-09-02 10:17:38Z lha $
  4. dnl
  5. AC_DEFUN([rk_RESOLV],[
  6. AC_CHECK_HEADERS([arpa/nameser.h])
  7. AC_CHECK_HEADERS(resolv.h, , , [AC_INCLUDES_DEFAULT
  8. #ifdef HAVE_SYS_TYPES_H
  9. #include <sys/types.h>
  10. #endif
  11. #ifdef HAVE_NETINET_IN_H
  12. #include <netinet/in.h>
  13. #endif
  14. #ifdef HAVE_ARPA_NAMESER_H
  15. #include <arpa/nameser.h>
  16. #endif
  17. ])
  18. AC_FIND_FUNC(res_search, resolv,
  19. [
  20. #include <stdio.h>
  21. #ifdef HAVE_SYS_TYPES_H
  22. #include <sys/types.h>
  23. #endif
  24. #ifdef HAVE_NETINET_IN_H
  25. #include <netinet/in.h>
  26. #endif
  27. #ifdef HAVE_ARPA_NAMESER_H
  28. #include <arpa/nameser.h>
  29. #endif
  30. #ifdef HAVE_RESOLV_H
  31. #include <resolv.h>
  32. #endif
  33. ],
  34. [0,0,0,0,0])
  35. AC_FIND_FUNC(res_nsearch, resolv,
  36. [
  37. #include <stdio.h>
  38. #ifdef HAVE_SYS_TYPES_H
  39. #include <sys/types.h>
  40. #endif
  41. #ifdef HAVE_NETINET_IN_H
  42. #include <netinet/in.h>
  43. #endif
  44. #ifdef HAVE_ARPA_NAMESER_H
  45. #include <arpa/nameser.h>
  46. #endif
  47. #ifdef HAVE_RESOLV_H
  48. #include <resolv.h>
  49. #endif
  50. ],
  51. [0,0,0,0,0,0])
  52. AC_FIND_FUNC(res_ndestroy, resolv,
  53. [
  54. #include <stdio.h>
  55. #ifdef HAVE_SYS_TYPES_H
  56. #include <sys/types.h>
  57. #endif
  58. #ifdef HAVE_NETINET_IN_H
  59. #include <netinet/in.h>
  60. #endif
  61. #ifdef HAVE_ARPA_NAMESER_H
  62. #include <arpa/nameser.h>
  63. #endif
  64. #ifdef HAVE_RESOLV_H
  65. #include <resolv.h>
  66. #endif
  67. ],
  68. [0])
  69. AC_FIND_FUNC(dn_expand, resolv,
  70. [
  71. #include <stdio.h>
  72. #ifdef HAVE_SYS_TYPES_H
  73. #include <sys/types.h>
  74. #endif
  75. #ifdef HAVE_NETINET_IN_H
  76. #include <netinet/in.h>
  77. #endif
  78. #ifdef HAVE_ARPA_NAMESER_H
  79. #include <arpa/nameser.h>
  80. #endif
  81. #ifdef HAVE_RESOLV_H
  82. #include <resolv.h>
  83. #endif
  84. ],
  85. [0,0,0,0,0])
  86. rk_CHECK_VAR(_res,
  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. ])