PageRenderTime 18ms CodeModel.GetById 14ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/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
  1dnl stuff used by DNS resolv code in roken
  2dnl
  3dnl $Id: resolv.m4 16009 2005-09-02 10:17:38Z lha $
  4dnl
  5
  6AC_DEFUN([rk_RESOLV],[
  7
  8AC_CHECK_HEADERS([arpa/nameser.h])
  9
 10AC_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
 22AC_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
 40AC_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
 58AC_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
 76AC_FIND_FUNC(dn_expand, resolv,
 77[
 78#include <stdio.h>
 79#ifdef HAVE_SYS_TYPES_H
 80#include <sys/types.h>
 81#endif
 82#ifdef HAVE_NETINET_IN_H
 83#include <netinet/in.h>
 84#endif
 85#ifdef HAVE_ARPA_NAMESER_H
 86#include <arpa/nameser.h>
 87#endif
 88#ifdef HAVE_RESOLV_H
 89#include <resolv.h>
 90#endif
 91],
 92[0,0,0,0,0])
 93
 94rk_CHECK_VAR(_res, 
 95[#include <stdio.h>
 96#ifdef HAVE_SYS_TYPES_H
 97#include <sys/types.h>
 98#endif
 99#ifdef HAVE_NETINET_IN_H
100#include <netinet/in.h>
101#endif
102#ifdef HAVE_ARPA_NAMESER_H
103#include <arpa/nameser.h>
104#endif
105#ifdef HAVE_RESOLV_H
106#include <resolv.h>
107#endif])
108
109])