root/src/noit_config.h.in

Revision 900807db5ba0078fc316a960ab8276bda1ba6681, 5.2 kB (checked in by Theo Schlossnagle <jesus@omniti.com>, 6 years ago)

allow for node-local config settings. determine if we have uuid_unparse_lower

  • Property mode set to 100644
Line 
1 /*
2  * Copyright (c) 2005-2007, OmniTI Computer Consulting, Inc.
3  * All rights reserved.
4  *
5  * Redistribution and use in source and binary forms, with or without
6  * modification, are permitted provided that the following conditions are
7  * met:
8  *
9  *    * Redistributions of source code must retain the above copyright
10  *      notice, this list of conditions and the following disclaimer.
11  *    * Redistributions in binary form must reproduce the above
12  *      copyright notice, this list of conditions and the following
13  *      disclaimer in the documentation and/or other materials provided
14  *      with the distribution.
15  *    * Neither the name OmniTI Computer Consulting, Inc. nor the names
16  *      of its contributors may be used to endorse or promote products
17  *      derived from this software without specific prior written
18  *      permission.
19  *
20  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
23  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
24  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
25  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
26  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31  */
32
33 #ifndef __NOIT_CONFIG_H
34 #define __NOIT_CONFIG_H
35
36 /* define inline unless that is what the compiler already calls it. */
37 #undef inline
38
39 #undef MODULEEXT
40 #undef MODULES_DIR
41 #undef ETC_DIR
42
43 #undef HAVE_FCNTL_H
44 #undef HAVE_UNISTD_H
45 #undef HAVE_SYS_TYPES_H
46 #undef HAVE_TERM_H
47 #undef HAVE_TERMIO_H
48 #undef HAVE_TERMIOS_H
49 #undef HAVE_UTIL_H
50 #undef HAVE_CURSES_H
51 #undef HAVE_DIRENT_H
52 #undef HAVE_PWD_H
53 #undef HAVE_ERRNO_H
54 #undef HAVE_STRING_H
55 #undef HAVE_STDLIB_H
56 #undef HAVE_SYS_PARAM_H
57 #undef HAVE_SEMAPHORE_H
58 #undef HAVE_TIME_H
59 #undef HAVE_SYS_STAT_H
60 #undef HAVE_SYS_RESOURCE_H
61 #undef HAVE_SYS_CDEFS_H
62 #undef HAVE_LIBKERN_OSATOMIC_H
63 #undef HAVE_NETINET_IN_SYSTM_H
64 #undef HAVE_INT64_T
65 #undef HAVE_INTXX_T
66 #undef HAVE_LONG_LONG_INT
67 #undef HAVE_UINTXX_T
68 #undef HAVE_U_INT
69 #undef HAVE_U_INT64_T
70 #undef HAVE_U_INTXX_T
71 #undef HAVE_UUID_UNPARSE_LOWER
72 #define IFS_CH '/'
73 #undef BROKEN_SEM_INIT
74
75 #ifdef HAVE_STRING_H
76 #include <string.h>
77 #endif
78 #ifdef HAVE_STDLIB_H
79 #include <stdlib.h>
80 #endif
81 #ifdef HAVE_SYS_PARAM_H
82 #include <sys/param.h>
83 #endif
84 #ifdef HAVE_SYS_TYPES_H
85 #include <sys/types.h>
86 #endif
87 #ifdef HAVE_SYS_STAT_H
88 #include <sys/stat.h>
89 #endif
90 #ifdef HAVE_SYS_RESOURCE_H
91 #include <sys/resource.h>
92 #endif
93
94 #undef HAVE_ISSETUGID
95 #undef HAVE_STRLCPY
96
97 /* Kernel kqueue() support */
98 #undef HAVE_KQUEUE
99
100 /* The number of bytes in a char.  */
101 #undef SIZEOF_CHAR
102
103 /* The number of bytes in a int.  */
104 #undef SIZEOF_INT
105
106 /* The number of bytes in a size_t.  */
107 #undef SIZEOF_SIZE_T
108
109
110 /* The number of bytes in a long int.  */
111 #undef SIZEOF_LONG_INT
112
113 /* The number of bytes in a long long int.  */
114 #undef SIZEOF_LONG_LONG_INT
115
116 /* The number of bytes in a short int.  */
117 #undef SIZEOF_SHORT_INT
118
119 /* The number of bytes in a void *.  */
120 #undef SIZEOF_VOID_P
121
122 #ifndef HAVE_U_INT
123 typedef unsigned int u_int;
124 #endif
125
126 #undef HAVE_INTXX_T
127 #ifndef HAVE_INTXX_T
128 #if (SIZEOF_CHAR == 1)
129 typedef char int8_t;
130 #else
131 #error "8 bit int type not found."
132 #endif
133 #if (SIZEOF_SHORT_INT == 2)
134 typedef short int int16_t;
135 #else
136 #ifdef _CRAY
137 typedef long int16_t;
138 #else
139 #warning "16 bit int type not found."
140 #endif /* _CRAY */
141 #endif
142 #if (SIZEOF_INT == 4)
143 typedef int int32_t;
144 #else
145 #ifdef _CRAY
146 typedef long int32_t;
147 #else
148 #error "32 bit int type not found."
149 #endif /* _CRAY */
150 #endif
151 #endif
152
153 /* If sys/types.h does not supply u_intXX_t, supply them ourselves */
154 #ifndef HAVE_U_INTXX_T
155 #ifdef HAVE_UINTXX_T
156 typedef uint8_t u_int8_t;
157 typedef uint16_t u_int16_t;
158 typedef uint32_t u_int32_t;
159 #define HAVE_U_INTXX_T 1
160 #else
161 #if (SIZEOF_CHAR == 1)
162 typedef unsigned char u_int8_t;
163 #else
164 #error "8 bit int type not found."
165 #endif
166 #if (SIZEOF_SHORT_INT == 2)
167 typedef unsigned short int u_int16_t;
168 #else
169 #ifdef _CRAY
170 typedef unsigned long u_int16_t;
171 #else
172 #warning "16 bit int type not found."
173 #endif
174 #endif
175 #if (SIZEOF_INT == 4)
176 typedef unsigned int u_int32_t;
177 #else
178 #ifdef _CRAY
179 typedef unsigned long u_int32_t;
180 #else
181 #error "32 bit int type not found."
182 #endif
183 #endif
184 #endif
185 #endif
186
187 /* 64-bit types */
188 #ifndef HAVE_INT64_T
189 #if (SIZEOF_LONG_INT == 8)
190 typedef long int int64_t;
191 #define HAVE_INT64_T 1
192 #else
193 #if (SIZEOF_LONG_LONG_INT == 8)
194 typedef long long int int64_t;
195 #define HAVE_INT64_T 1
196 #define HAVE_LONG_LONG_INT
197 #endif
198 #endif
199 #endif
200 #ifndef HAVE_U_INT64_T
201 #if (SIZEOF_LONG_INT == 8)
202 typedef unsigned long int u_int64_t;
203 #define HAVE_U_INT64_T 1
204 #else
205 #if (SIZEOF_LONG_LONG_INT == 8)
206 typedef unsigned long long int u_int64_t;
207 #define HAVE_U_INT64_T 1
208 #endif
209 #endif
210 #endif
211
212 #if (SIZEOF_VOID_P == 8)
213 typedef u_int64_t vpsized_uint;
214 typedef int64_t vpsized_int;
215 #elif (SIZEOF_VOID_P == 4)
216 typedef u_int32_t vpsized_uint;
217 typedef int32_t vpsized_int;
218 #else
219 #error Unsupported size of void ptr
220 #endif
221
222 #endif
Note: See TracBrowser for help on using the browser.