Makefile: Add target to run sql-dependant tests
[nagios-reports-module.git] / nagios / config.h
blobf45f6f16c5a14593ddf4fa496fd076bec6a6f850
1 /* include/config.h. Generated by configure. */
2 /************************************************************************
4 * Nagios Config Header File
5 * Written By: Ethan Galstad (nagios@nagios.org)
6 * Last Modified: 11-10-2007
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License version 2 as
10 * published by the Free Software Foundation.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20 ************************************************************************/
23 /***** NAGIOS STUFF *****/
25 #define DEFAULT_NAGIOS_USER "nagios"
26 #define DEFAULT_NAGIOS_GROUP "nagios"
28 /* stop gcc from bitching about implicit asprintf declarations */
29 #define _GNU_SOURCE 1
31 /* Event broker integration */
32 #define USE_EVENT_BROKER 1
34 /* Embed a PERL interpreter into Nagios with optional cache for compiled code (contributed by Stephen Davies) */
35 /* #undef EMBEDDEDPERL */
36 /* #undef THREADEDPERL */
37 /* 0 = cache, 1 = do not cache */
38 #define DO_CLEAN "1"
40 /* commands used by CGIs */
41 #define TRACEROUTE_COMMAND "/bin/traceroute"
42 /* #undef PING_COMMAND */
43 /* #undef PING_PACKETS_FIRST */
45 /* Debugging options */
46 /* function entry and exit */
47 /* #undef DEBUG0 */
48 /* general info messages */
49 /* #undef DEBUG1 */
50 /* warning messages */
51 /* #undef DEBUG2 */
52 /* service and host checks, other events */
53 /* #undef DEBUG3 */
54 /* service and host notifications */
55 /* #undef DEBUG4 */
56 /* SQL queries (defunct) */
57 /* #undef DEBUG5 */
59 /* I/O implementations */
60 #define USE_XSDDEFAULT 1
61 #define USE_XCDDEFAULT 1
62 #define USE_XRDDEFAULT 1
63 #define USE_XODTEMPLATE 1
64 #define USE_XPDDEFAULT 1
65 #define USE_XDDDEFAULT 1
69 /***** FUNCTION DEFINITIONS *****/
71 #define HAVE_SETENV 1
72 #define HAVE_UNSETENV 1
73 /* #undef HAVE_SOCKET */
74 #define HAVE_STRDUP 1
75 #define HAVE_STRSTR 1
76 #define HAVE_STRTOUL 1
77 #define HAVE_INITGROUPS 1
78 /* #undef HAVE_GETLOADAVG */
79 /* #undef HAVE_GLIB */
83 /***** ASPRINTF() AND FRIENDS *****/
85 /* #undef HAVE_VSNPRINTF */
86 /* #undef HAVE_SNPRINTF */
87 /* #undef HAVE_ASPRINTF */
88 /* #undef HAVE_VASPRINTF */
89 #define HAVE_C99_VSNPRINTF 1
90 #define HAVE_VA_COPY 1
91 /* #undef HAVE___VA_COPY */
95 /***** MISC DEFINITIONS *****/
97 #define USE_NANOSLEEP 1
98 #define STDC_HEADERS 1
99 #define HAVE_TM_ZONE 1
100 /* #undef HAVE_TZNAME */
101 /* #undef USE_PROC */
102 #define SOCKET_SIZE_TYPE size_t
103 #define GETGROUPS_T gid_t
104 #define RETSIGTYPE void
107 /***** HEADER FILES *****/
109 #include <stdio.h>
110 #include <stdlib.h>
112 /* needed for the time_t structures we use later... */
113 /* this include must come before sys/resource.h or we can have problems on some OSes */
114 #define TIME_WITH_SYS_TIME 1
115 #define HAVE_SYS_TIME_H 1
116 #if TIME_WITH_SYS_TIME
117 #include <sys/time.h>
118 #include <time.h>
119 #else
120 #if HAVE_SYS_TIME_H
121 #include <sys/time.h>
122 #else
123 #include <time.h>
124 #endif
125 #endif
127 #define HAVE_SYS_RESOURCE_H 1
128 #ifdef HAVE_SYS_RESOURCE_H
129 #include <sys/resource.h>
130 #endif
132 #define HAVE_LIMITS_H 1
133 #ifdef HAVE_LIMITS_H
134 #include <limits.h>
135 #endif
137 #define HAVE_PWD_H 1
138 #ifdef HAVE_PWD_H
139 #include <pwd.h>
140 #endif
142 #define HAVE_GRP_H 1
143 #ifdef HAVE_GRP_H
144 #include <grp.h>
145 #endif
147 #define HAVE_STRINGS_H 1
148 #ifdef HAVE_STRINGS_H
149 #include <strings.h>
150 #endif
152 #define HAVE_STRING_H 1
153 #ifdef HAVE_STRINGS_H
154 #include <string.h>
155 #endif
157 #define HAVE_UNISTD_H 1
158 #ifdef HAVE_UNISTD_H
159 #include <unistd.h>
160 #endif
162 #define HAVE_SYSLOG_H 1
163 #ifdef HAVE_SYSLOG_H
164 #include <syslog.h>
165 #endif
167 #define HAVE_SIGNAL_H 1
168 #ifdef HAVE_SIGNAL_H
169 #include <signal.h>
170 #endif
172 #define HAVE_SYS_STAT_H 1
173 #ifdef HAVE_SYS_STAT_H
174 #include <sys/stat.h>
175 #endif
177 #define HAVE_SYS_MMAN_H 1
178 #ifdef HAVE_SYS_MMAN_H
179 #include <sys/mman.h>
180 #endif
182 #define HAVE_FCNTL_H 1
183 #ifdef HAVE_FCNTL_H
184 #include <fcntl.h>
185 #endif
187 #ifdef NSCORE
188 /* #undef HAVE_GLIB_H */
189 #endif
190 #ifdef NSCGI
191 /* #undef HAVE_GLIB_H */
192 #endif
193 #ifdef HAVE_GLIB_H
194 #include <glib.h>
195 #endif
197 #define HAVE_STDARG_H 1
198 #ifdef HAVE_STDARG_H
199 #include <stdarg.h>
200 #endif
202 #define HAVE_SYS_TYPES_H 1
203 #ifdef HAVE_SYS_TYPES_H
204 #include <sys/types.h>
205 #endif
207 #define HAVE_SYS_WAIT_H 1
208 #ifdef HAVE_SYS_WAIT_H
209 #include <sys/wait.h>
210 #endif
212 #define HAVE_ERRNO_H 1
213 #ifdef HAVE_ERRNO_H
214 #include <errno.h>
215 #endif
217 #define HAVE_SYS_TIMEB_H 1
218 #if HAVE_SYS_TIMEB_H
219 #include <sys/timeb.h>
220 #endif
222 #define HAVE_SYS_IPC_H 1
223 #ifdef HAVE_SYS_IPC_H
224 #include <sys/ipc.h>
225 #endif
227 #define HAVE_SYS_MSG_H 1
228 #ifdef HAVE_SYS_MSG_H
229 #include <sys/msg.h>
230 #endif
232 #define HAVE_MATH_H 1
233 #ifdef HAVE_MATH_H
234 #include <math.h>
235 #endif
237 #define HAVE_CTYPE_H 1
238 #ifdef HAVE_CTYPE_H
239 #include <ctype.h>
240 #endif
242 #define HAVE_DIRENT_H 1
243 #ifdef HAVE_DIRENT_H
244 #include <dirent.h>
245 #endif
247 #define HAVE_PTHREAD_H 1
248 #ifdef HAVE_PTHREAD_H
249 #include <pthread.h>
250 #endif
252 #define HAVE_REGEX_H 1
253 #ifdef HAVE_REGEX_H
254 #include <regex.h>
256 #define HAVE_SYS_SOCKET_H 1
257 #ifdef HAVE_SYS_SOCKET_H
258 #include <sys/socket.h>
259 #endif
261 /* #undef HAVE_SOCKET */
262 #ifdef HAVE_SOCKET_H
263 #include <socket.h>
264 #endif
266 #define HAVE_NETINET_IN_H 1
267 #ifdef HAVE_NETINET_IN_H
268 #include <netinet/in.h>
269 #endif
271 #define HAVE_ARPA_INET_H 1
272 #ifdef HAVE_ARPA_INET_H
273 #include <arpa/inet.h>
274 #endif
276 #define HAVE_NETDB_H 1
277 #ifdef HAVE_NETDB_H
278 #include <netdb.h>
279 #endif
281 #define HAVE_LIBGEN_H 1
282 #ifdef HAVE_LIBGEN_H
283 #include <libgen.h>
284 #endif
286 #define HAVE_SYS_UN_H 1
287 #ifdef HAVE_SYS_UN_H
288 #include <sys/un.h>
289 #endif
291 #define HAVE_SYS_POLL_H 1
292 #ifdef HAVE_SYS_POLL_H
293 #include <sys/poll.h>
294 #endif
296 #define HAVE_GETOPT_H 1
297 #ifdef HAVE_GETOPT_H
298 #include <getopt.h>
299 #endif
301 /* #undef HAVE_LINUX_MODULE_H */
302 #ifdef HAVE_LINUX_MODULE_H
303 #include <linux/module.h>
304 #endif
306 /* configure script should allow user to override ltdl choice, but this will do for now... */
307 /* #undef USE_LTDL */
308 /* #undef HAVE_LTDL_H */
309 #ifdef HAVE_LTDL_H
310 #define USE_LTDL
311 #endif
313 #ifdef USE_LTDL
314 #include <ltdl.h>
315 #else
316 #define HAVE_DLFCN_H 1
317 #ifdef HAVE_DLFCN_H
318 #include <dlfcn.h>
319 #endif
320 #endif
322 #ifndef RTLD_GLOBAL
323 #define RTLD_GLOBAL 0
324 #endif
326 #ifndef RTLD_NOW
327 #define RTLD_NOW 0
328 #endif
330 /***** MARO DEFINITIONS *****/
332 /* this needs to come after all system include files, so we don't accidentally attempt to redefine it */
333 #ifndef WEXITSTATUS
334 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
335 #endif
336 #ifndef WIFEXITED
337 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
338 #endif
341 #endif