# AC_HEADER_RESOLV # ---------------- AN_HEADER(resolv.h, AC_HEADER_RESOLV) AC_DEFUN(AC_HEADER_RESOLV, [AC_CHECK_HEADERS(sys/types.h netinet/in.h arpa/nameser.h sys/socket.h) AC_CACHE_CHECK(for resolv.h, ac_cv_header_resolv_h, AC_COMPILE_IFELSE(AC_LANG_PROGRAM([[ #if HAVE_SYS_TYPES_H # include #endif #ifdef HAVE_NETINET_IN_H # include /* inet_ functions / structs */ #endif #ifdef HAVE_ARPA_NAMESER_H # include /* DNS HEADER struct */ #endif #ifdef HAVE_SYS_SOCKET_H # include /* DNS HEADER struct */ #endif]]), ac_cv_header_resolv_h=yes, ac_cv_header_resolv_h=no)) if test $ac_cv_header_resolv_h = yes; then AC_DEFINE(HAVE_RESOLV_H, 1, [Define to 1 if you have the header file.]) fi ])# AC_HEADER_RESOLV