Commit | Line | Data |
---|---|---|
805e021f CE |
1 | AC_DEFUN([OPENAFS_HEADER_CHECKS],[ |
2 | dnl checks for header files. | |
3 | AC_HEADER_STDC | |
4 | AC_HEADER_SYS_WAIT | |
5 | AC_HEADER_DIRENT | |
6 | AC_CHECK_HEADERS([ \ | |
7 | arpa/inet.h \ | |
8 | arpa/nameser.h \ | |
9 | curses.h\ | |
10 | direct.h \ | |
11 | errno.h \ | |
12 | fcntl.h \ | |
13 | grp.h \ | |
14 | math.h \ | |
15 | mntent.h \ | |
16 | ncurses.h \ | |
17 | ncurses/ncurses.h \ | |
18 | netdb.h \ | |
19 | netinet/in.h \ | |
20 | pthread_np.h \ | |
21 | pwd.h \ | |
22 | regex.h \ | |
23 | security/pam_appl.h \ | |
24 | signal.h \ | |
25 | stdint.h \ | |
26 | stdio_ext.h \ | |
27 | stdlib.h \ | |
28 | string.h \ | |
29 | strings.h \ | |
30 | sys/bitypes.h \ | |
31 | sys/bswap.h \ | |
32 | sys/dk.h \ | |
33 | sys/fcntl.h \ | |
34 | sys/file.h \ | |
35 | sys/fs_types.h \ | |
36 | sys/fstyp.h \ | |
37 | sys/ioctl.h \ | |
38 | sys/ipc.h \ | |
39 | sys/lockf.h \ | |
40 | sys/map.h \ | |
41 | sys/mount.h \ | |
42 | sys/mntent.h \ | |
43 | sys/mnttab.h \ | |
44 | sys/pag.h \ | |
45 | sys/param.h \ | |
46 | sys/resource.h \ | |
47 | sys/select.h \ | |
48 | sys/statfs.h \ | |
49 | sys/statvfs.h \ | |
50 | sys/socket.h \ | |
51 | sys/sysctl.h \ | |
52 | sys/time.h \ | |
53 | sys/types.h \ | |
54 | sys/uio.h \ | |
55 | sys/un.h \ | |
56 | sys/vfs.h \ | |
57 | syslog.h \ | |
58 | termios.h \ | |
59 | time.h \ | |
60 | ucontext.h \ | |
61 | unistd.h \ | |
62 | windows.h \ | |
63 | ]) | |
64 | ||
65 | AC_CHECK_HEADERS([resolv.h], [], [], [AC_INCLUDES_DEFAULT | |
66 | #ifdef HAVE_NETINET_IN_H | |
67 | # include <netinet/in.h> | |
68 | #endif]) | |
69 | ||
70 | AC_CHECK_HEADERS([net/if.h],[],[],[AC_INCLUDES_DEFAULT | |
71 | #ifdef HAVE_SYS_SOCKET_H | |
72 | # include <sys/socket.h> | |
73 | #endif]) | |
74 | ||
75 | AC_CHECK_HEADERS([netinet/if_ether.h],[],[],[AC_INCLUDES_DEFAULT | |
76 | #ifdef HAVE_SYS_SOCKET_H | |
77 | # include <sys/socket.h> | |
78 | #endif | |
79 | #ifdef HAVE_NETINET_IN_H | |
80 | # include <netinet/in.h> | |
81 | #endif | |
82 | #ifdef HAVE_NET_IF_H | |
83 | # include <net/if.h> | |
84 | #endif]) | |
85 | ||
86 | AC_CHECK_HEADERS([security/pam_modules.h],[],[],[AC_INCLUDES_DEFAULT | |
87 | #ifdef HAVE_SECURITY_PAM_APPL_H | |
88 | # include <security/pam_appl.h> | |
89 | #endif]) | |
90 | ||
91 | AC_CHECK_HEADERS(linux/errqueue.h,,,[#include <linux/types.h>]) | |
92 | ||
93 | AC_CHECK_TYPES([fsblkcnt_t],,,[ | |
94 | #include <sys/types.h> | |
95 | #ifdef HAVE_SYS_BITYPES_H | |
96 | #include <sys/bitypes.h> | |
97 | #endif | |
98 | #ifdef HAVE_SYS_STATFS_H | |
99 | #include <sys/statfs.h> | |
100 | #endif | |
101 | #ifdef HAVE_SYS_STATVFS_H | |
102 | #include <sys/statvfs.h> | |
103 | #endif | |
104 | ]) | |
105 | ]) | |
106 | ||
107 | AC_DEFUN([OPENAFS_NETDB_CHECKS],[ | |
108 | AC_CHECK_DECLS([h_errno], [], [], [ | |
109 | #include <sys/types.h> | |
110 | #ifdef HAVE_NETDB_H | |
111 | #include <netdb.h> | |
112 | #endif | |
113 | ]) | |
114 | ]) |