comparison include/dcc_config.h.in @ 0:c7f6b056b673

First import of vendor version
author Peter Gervai <grin@grin.hu>
date Tue, 10 Mar 2009 13:49:58 +0100
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:c7f6b056b673
1 /* Distributed Checksum Clearinghouse
2 *
3 * autoconf configuration settings
4 *
5 * Copyright (c) 2008 by Rhyolite Software, LLC
6 *
7 * This agreement is not applicable to any entity which sells anti-spam
8 * solutions to others or provides an anti-spam solution as part of a
9 * security solution sold to other entities, or to a private network
10 * which employs the DCC or uses data provided by operation of the DCC
11 * but does not provide corresponding data to other users.
12 *
13 * Permission to use, copy, modify, and distribute this software without
14 * changes for any purpose with or without fee is hereby granted, provided
15 * that the above copyright notice and this permission notice appear in all
16 * copies and any distributed versions or copies are either unchanged
17 * or not called anything similar to "DCC" or "Distributed Checksum
18 * Clearinghouse".
19 *
20 * Parties not eligible to receive a license under this agreement can
21 * obtain a commercial license to use DCC by contacting Rhyolite Software
22 * at sales@rhyolite.com.
23 *
24 * A commercial license would be for Distributed Checksum and Reputation
25 * Clearinghouse software. That software includes additional features. This
26 * free license for Distributed ChecksumClearinghouse Software does not in any
27 * way grant permision to use Distributed Checksum and Reputation Clearinghouse
28 * software
29 *
30 * THE SOFTWARE IS PROVIDED "AS IS" AND RHYOLITE SOFTWARE, LLC DISCLAIMS ALL
31 * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
32 * OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL RHYOLITE SOFTWARE, LLC
33 * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
34 * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
35 * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
36 * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
37 * SOFTWARE.
38 *
39 * Rhyolite Software DCC 1.3.103-1.112 $Revision$
40 * @configure_input@
41 */
42
43 #ifndef DCC_CONFIG_H
44 #define DCC_CONFIG_H
45
46 #define UNIX
47 #undef DCC_WIN32
48
49 #define DCC_HOMEDIR "/var/dcc"
50 #define DCC_LIBEXECDIR "/var/dcc/libexec"
51 #define DCC_RUNDIR "/var/run/dcc"
52
53 /* use kludge file if asked */
54 #undef NEED_KLUDGE_H
55
56 /* deal with systems such as Solaris that do not have a __P() macro
57 * assume they understand prototypes */
58 #undef HAVE_SYS_CDEFS_H
59 #if !defined(HAVE_SYS_CDEFS_H) && !defined(__P)
60 #define __P(protos) protos
61 #endif
62
63 /* some systems have uint32_t, others have u_int32_t, and some have both */
64 #undef DCC_HAVE_U_INT32_T
65 /* and then there is u_*int64_t */
66 #undef DCC_HAVE_U_INT64_T
67
68 /* 64-bit long int */
69 #undef HAVE_64BIT_LONG
70
71 /* 64-bit void* */
72 #undef HAVE_64BIT_PTR
73
74 /* ./configure does not check for pid_t on the grounds that only WIN32
75 * lacks it, and Windows is handled by the genbundle script */
76 #undef HAVE_PID_T
77
78 /* maximum number of DCC server rate-limiting blocks */
79 #undef RL_MIN_MAX
80
81 /* turn off dccifd AF_UNIX sockets on HP-UX */
82 #undef HP_UX_BAD_AF_UNIX
83
84 /* Use poll() instead of select() on Solaris and some other systems
85 * because socket() can yield file descripters larger than FD_SETSIZE. */
86 #undef HAVE_POLL
87 #undef USE_POLL
88
89 /* number of cached open per-user whitelist files */
90 #define NUM_CWFS 20
91
92 #undef TIME_WITH_SYS_TIME
93 #undef HAVE_UTIME_H
94 #undef HAVE_FUTIMES
95
96 #undef HAVE_SETPGID
97
98 #undef HAVE_GCC_ATTRIBUTES
99 #undef HAVE_GCC_INLINE
100
101 /* fill holes in the target */
102 #undef HAVE_DAEMON
103 #undef HAVE_VSYSLOG
104 #undef HAVE_HSTRERROR
105 #undef HAVE_INET_NTOP
106 #undef HAVE_GETHOSTID
107 #undef HAVE_LOCALTIME_R
108 #undef HAVE_GMTIME_R
109 #undef HAVE_TIMEGM
110 #undef HAVE_EACCESS
111 #undef HAVE_ALTZONE
112
113 #undef NEED_STRINGS_H
114 #undef HAVE_STRLCPY
115 #undef HAVE_STRLCAT
116
117 /* A way to get the size of physical memory
118 * Linux and Solaris have sysconf(_SC_PHYS_PAGES)
119 * BSD systems have sysctl(HW_PHYSMEM)
120 * HP-UX has pstat_getstatic() */
121 #undef HAVE_PHYSMEM_TOTAL
122 #undef HAVE__SC_PHYS_PAGES
123 #undef HAVE_HW_PHYSMEM
124 #undef HAVE_PSTAT_GETSTATIC
125 #undef GOT_PHYSMEM
126 /* use `dbclean -F` on Solaris to force less unneeded disk I/O */
127 #undef USE_DBCLEAN_F
128
129 /* can assume the hash table is junk after a reboot */
130 #undef HAVE_BOOTTIME
131
132
133 /* files with 64-bit offsets */
134 #undef HAVE_BIG_FILES
135
136 /* 0 or minimum size of server database buffer or window */
137 #define DB_MIN_MBYTE 0
138 /* 0 or maximum size of server database buffer */
139 #define DB_MAX_MBYTE 0
140
141
142 /* 4.4BSD sockets */
143 #undef HAVE_SA_LEN
144 #undef HAVE_SOCKLEN_T
145 #undef HAVE_AF_LOCAL
146
147 #undef HAVE_INET_ATON
148
149 #undef HAVE_GETIPNODEBYNAME
150 #undef HAVE_GETIPNODEBYADDR
151 #undef HAVE_FREEHOSTENT
152
153 #undef HAVE_GETADDRINFO
154 #undef HAVE_GETNAMEINFO
155 #undef HAVE_FREEADDRINFO
156 #undef HAVE_GAI_STRERROR
157
158 #undef NO_IPV6
159 #undef NO_AF_INET6
160 #define CONF_S6_ADDR32 __u6_addr.__u6_addr32
161
162 /* use getifaddrs() to get list of interface addresses */
163 #undef HAVE_GETIFADDRS
164 #undef USE_DCC_GETIFADDRS
165 /* Some systems have getifaddrs() but not freeifaddrs() */
166 #undef HAVE_FREEIFADDRS
167
168 /* BIND resolver library */
169 #undef HAVE_RESOLV_H
170 #undef HAVE_ARPA_NAMESER_H
171 #undef HAVE__RES
172 #undef HAVE_RES_INIT
173 #undef HAVE_RES_QUERY
174 #undef HAVE_DN_EXPAND
175
176 /* Solaris and WIN32 do not have paths.h */
177 #undef HAVE_PATHS_H
178
179 /* Some systems have their own MD5 libraries */
180 #undef HAVE_MD5
181
182 #undef HAVE_SIGINTERRUPT
183
184 #undef HAVE_PTHREADS
185
186 /* HP_UX has sys/pthread.h instead of pthread.h */
187 #undef HAVE_PTHREAD_H
188
189 /* Windows systems lack UNIX permission bits */
190 #undef HAVE_PRIVATE_FILES
191
192 /* __progname defined by crt0 and so a reasonable default for syslog */
193 #undef HAVE___PROGNAME
194 /* slightly more portable way to get the program name */
195 #undef HAVE_GETPROGNAME
196
197 /* very old BSD/OS has only 2 parameters for msync()
198 * and newer versions ignore the third parameter */
199 #undef HAVE_OLD_MSYNC
200
201 #undef HAVE_COHERENT_MMAP
202
203 /* use SOCKS */
204 #undef HAVE_RSENDTO
205
206 /* save only this much of mail messages in log files */
207 #define MAX_LOG_KBYTE 32
208
209
210 #endif /* DCC_CONFIG_H */