File: ai_constants.m4

package info (click to toggle)
nc6 1.0-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 2,108 kB
  • ctags: 1,581
  • sloc: ansic: 12,966; sh: 6,695; makefile: 541; yacc: 288; sed: 16
file content (121 lines) | stat: -rw-r--r-- 1,995 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
AC_DEFUN([GETADDRINFO_AI_ADDRCONFIG],[
  AC_CACHE_CHECK([if getaddrinfo supports AI_ADDRCONFIG],
    [ds6_cv_gai_ai_addrconfig],[
    AC_TRY_CPP([
#include <netdb.h>

#ifndef AI_ADDRCONFIG
#error Missing AI_ADDRCONFIG
#endif
    ],[
      ds6_cv_gai_ai_addrconfig=yes
    ],[
      ds6_cv_gai_ai_addrconfig=no
    ])
  ])

  if test "X$ds6_cv_gai_ai_addrconfig" = "Xyes"; then :
    $1
  else :
    $2
  fi
])



AC_DEFUN([GETADDRINFO_AI_ALL],[
  AC_CACHE_CHECK([if getaddrinfo supports AI_ALL],[ds6_cv_gai_ai_all],[
    AC_TRY_CPP([
#include <netdb.h>

#ifndef AI_ALL
#error Missing AI_ALL
#endif
    ],[
      ds6_cv_gai_ai_all=yes
    ],[
      ds6_cv_gai_ai_all=no
    ])
  ])

  if test "X$ds6_cv_gai_ai_all" = "Xyes"; then :
    $1
  else :
    $2
  fi
])



AC_DEFUN([GETADDRINFO_AI_V4MAPPED],[
  AC_CACHE_CHECK([if getaddrinfo supports AI_V4MAPPED],[ds6_cv_gai_ai_v4mapped],[
    AC_TRY_CPP([
#include <netdb.h>

#ifndef AI_V4MAPPED
#error Missing AI_V4MAPPED
#endif
    ],[
      ds6_cv_gai_ai_v4mapped=yes
    ],[
      ds6_cv_gai_ai_v4mapped=no
    ])
  ])

  if test "X$ds6_cv_gai_ai_v4mapped" = "Xyes"; then :
    $1
  else :
    $2
  fi
])



AC_DEFUN([GETADDRINFO_EAI_ADDRFAMILY],[
  AC_CACHE_CHECK([if getaddrinfo returns the EAI_ADDRFAMILY error code],
    [ds6_cv_gai_eai_addrfamily],[
    AC_TRY_CPP([
#include <netdb.h>

#ifndef EAI_ADDRFAMILY 
#error Missing EAI_ADDRFAMILY 
#endif
    ],[
      ds6_cv_gai_eai_addrfamily=yes
    ],[
      ds6_cv_gai_eai_addrfamily=no
    ])
  ])

  if test "X$ds6_cv_gai_eai_addrfamily" = "Xyes"; then :
    $1
  else :
    $2
  fi
])



AC_DEFUN([GETADDRINFO_EAI_NODATA],[
  AC_CACHE_CHECK([if getaddrinfo returns the EAI_NODATA error code],
    [ds6_cv_gai_eai_nodata],[
    AC_TRY_CPP([
#include <netdb.h>

#ifndef EAI_NODATA
#error Missing EAI_NODATA
#endif
    ],[
      ds6_cv_gai_eai_nodata=yes
    ],[
      ds6_cv_gai_eai_nodata=no
    ])
  ])

  if test "X$ds6_cv_gai_eai_nodata" = "Xyes"; then :
    $1
  else :
    $2
  fi
])