Code

Merge branch 'upstream'
[pkg-rrdtool.git] / rrd_config.h.in
1 /* rrd_config.h.in.  Generated from configure.ac by autoheader.  */
5 #ifndef RRD_CONFIG_H
6 #define RRD_CONFIG_H
7 /* IEEE can be prevented from raising signals with fpsetmask(0) */
8 #undef MUST_DISABLE_FPMASK
10 /* IEEE math only works if SIGFPE gets actively set to IGNORE */
12 #undef MUST_DISABLE_SIGFPE
14 /* realloc does not support NULL as argument */
15 #undef NO_NULL_REALLOC
17 /* lets enable madvise defines in NetBSD */
18 #if defined(__NetBSD__)
19 # if !defined(_NETBSD_SOURCE)
20 #  define _NETBSD_SOURCE
21 # endif
22 #endif
24  
26 /* Define to 1 if you have the `chdir' function. */
27 #undef HAVE_CHDIR
29 /* Define to 1 if you have the `chroot' function. */
30 #undef HAVE_CHROOT
32 /* Define to 1 if you have the `class' function. */
33 #undef HAVE_CLASS
35 /* Define to 1 if you have the declaration of `fdatasync', and to 0 if you
36    don't. */
37 #undef HAVE_DECL_FDATASYNC
39 /* Define to 1 if you have the declaration of `madvise', and to 0 if you
40    don't. */
41 #undef HAVE_DECL_MADVISE
43 /* Define to 1 if you have the declaration of `posix_fadvise', and to 0 if you
44    don't. */
45 #undef HAVE_DECL_POSIX_FADVISE
47 /* Define to 1 if you have the <dirent.h> header file, and it defines `DIR'.
48    */
49 #undef HAVE_DIRENT_H
51 /* Define to 1 if you have the <dlfcn.h> header file. */
52 #undef HAVE_DLFCN_H
54 /* Define to 1 if you don't have `vprintf' but do have `_doprnt.' */
55 #undef HAVE_DOPRNT
57 /* Define to 1 if you have the <fcntl.h> header file. */
58 #undef HAVE_FCNTL_H
60 /* Define to 1 if you have the <features.h> header file. */
61 #undef HAVE_FEATURES_H
63 /* Define to 1 if you have the `finite' function. */
64 #undef HAVE_FINITE
66 /* Define to 1 if you have the <float.h> header file. */
67 #undef HAVE_FLOAT_H
69 /* Define to 1 if you have the `fpclass' function. */
70 #undef HAVE_FPCLASS
72 /* Define to 1 if you have the `fpclassify' function. */
73 #undef HAVE_FPCLASSIFY
75 /* Define to 1 if you have the `fp_class' function. */
76 #undef HAVE_FP_CLASS
78 /* Define to 1 if you have the <fp_class.h> header file. */
79 #undef HAVE_FP_CLASS_H
81 /* Define to 1 if you have the `getpagesize' function. */
82 #undef HAVE_GETPAGESIZE
84 /* Define to 1 if you have the `getrusage' function. */
85 #undef HAVE_GETRUSAGE
87 /* Define to 1 if you have the `gettimeofday' function. */
88 #undef HAVE_GETTIMEOFDAY
90 /* Define to 1 if you have the `getuid' function. */
91 #undef HAVE_GETUID
93 /* Define to 1 if you have the <ieeefp.h> header file. */
94 #undef HAVE_IEEEFP_H
96 /* Define to 1 if you have the <inttypes.h> header file. */
97 #undef HAVE_INTTYPES_H
99 /* Define to 1 if you have the `isfinite' function. */
100 #undef HAVE_ISFINITE
102 /* Define to 1 if you have the `isinf' function. */
103 #undef HAVE_ISINF
105 /* Define to 1 if you have the `isnan' function. */
106 #undef HAVE_ISNAN
108 /* Define to 1 if you have the `m' library (-lm). */
109 #undef HAVE_LIBM
111 /* Define to 1 if you have the <locale.h> header file. */
112 #undef HAVE_LOCALE_H
114 /* Define to 1 if you have the `madvise' function. */
115 #undef HAVE_MADVISE
117 /* Define to 1 if you have the <malloc.h> header file. */
118 #undef HAVE_MALLOC_H
120 /* Define to 1 if you have the <math.h> header file. */
121 #undef HAVE_MATH_H
123 /* Define to 1 if you have the `mbstowcs' function. */
124 #undef HAVE_MBSTOWCS
126 /* Define to 1 if you have the `memmove' function. */
127 #undef HAVE_MEMMOVE
129 /* Define to 1 if you have the <memory.h> header file. */
130 #undef HAVE_MEMORY_H
132 /* Define to 1 if you have the `mktime' function. */
133 #undef HAVE_MKTIME
135 /* Define to 1 if you have a working `mmap' system call. */
136 #undef HAVE_MMAP
138 /* Define to 1 if you have the `msync' function. */
139 #undef HAVE_MSYNC
141 /* Define to 1 if you have the `munmap' function. */
142 #undef HAVE_MUNMAP
144 /* Define to 1 if you have the <ndir.h> header file, and it defines `DIR'. */
145 #undef HAVE_NDIR_H
147 /* Define to 1 if you have the `opendir' function. */
148 #undef HAVE_OPENDIR
150 /* Define to 1 if you have the `posix_fadvise' function. */
151 #undef HAVE_POSIX_FADVISE
153 /* Define to 1 if you have the `posix_madvise' function. */
154 #undef HAVE_POSIX_MADVISE
156 /* Define if you have POSIX threads libraries and header files. */
157 #undef HAVE_PTHREAD
159 /* Define to 1 if you have the `readdir' function. */
160 #undef HAVE_READDIR
162 /* Define to 1 if you have the `setlocale' function. */
163 #undef HAVE_SETLOCALE
165 /* Define to 1 if you have the `snprintf' function. */
166 #undef HAVE_SNPRINTF
168 /* Define to 1 if you have the <stdint.h> header file. */
169 #undef HAVE_STDINT_H
171 /* Define to 1 if you have the <stdlib.h> header file. */
172 #undef HAVE_STDLIB_H
174 /* Define to 1 if you have the `strchr' function. */
175 #undef HAVE_STRCHR
177 /* Define to 1 if you have the `strerror' function. */
178 #undef HAVE_STRERROR
180 /* Define to 1 if you have the `strerror_r' function. */
181 #undef HAVE_STRERROR_R
183 /* Define to 1 if you have the `strftime' function. */
184 #undef HAVE_STRFTIME
186 /* Define to 1 if you have the <strings.h> header file. */
187 #undef HAVE_STRINGS_H
189 /* Define to 1 if you have the <string.h> header file. */
190 #undef HAVE_STRING_H
192 /* Define to 1 if you have the <sys/dir.h> header file, and it defines `DIR'.
193    */
194 #undef HAVE_SYS_DIR_H
196 /* Define to 1 if you have the <sys/mman.h> header file. */
197 #undef HAVE_SYS_MMAN_H
199 /* Define to 1 if you have the <sys/ndir.h> header file, and it defines `DIR'.
200    */
201 #undef HAVE_SYS_NDIR_H
203 /* Define to 1 if you have the <sys/param.h> header file. */
204 #undef HAVE_SYS_PARAM_H
206 /* Define to 1 if you have the <sys/resource.h> header file. */
207 #undef HAVE_SYS_RESOURCE_H
209 /* Define to 1 if you have the <sys/stat.h> header file. */
210 #undef HAVE_SYS_STAT_H
212 /* Define to 1 if you have the <sys/times.h> header file. */
213 #undef HAVE_SYS_TIMES_H
215 /* Define to 1 if you have the <sys/types.h> header file. */
216 #undef HAVE_SYS_TYPES_H
218 /* Define to 1 if you have the `tzset' function. */
219 #undef HAVE_TZSET
221 /* Define to 1 if you have the <unistd.h> header file. */
222 #undef HAVE_UNISTD_H
224 /* Define to 1 if you have the `vprintf' function. */
225 #undef HAVE_VPRINTF
227 /* Define to 1 if you have the `vsnprintf' function. */
228 #undef HAVE_VSNPRINTF
230 /* Name of package */
231 #undef PACKAGE
233 /* Define to the address where bug reports for this package should be sent. */
234 #undef PACKAGE_BUGREPORT
236 /* Define to the full name of this package. */
237 #undef PACKAGE_NAME
239 /* Define to the full name and version of this package. */
240 #undef PACKAGE_STRING
242 /* Define to the one symbol short name of this package. */
243 #undef PACKAGE_TARNAME
245 /* Define to the version of this package. */
246 #undef PACKAGE_VERSION
248 /* Define to necessary symbol if this constant uses a non-standard name on
249    your system. */
250 #undef PTHREAD_CREATE_JOINABLE
252 /* Vertical label angle: 90.0 (default) or 270.0 */
253 #undef RRDGRAPH_YLEGEND_ANGLE
255 /* Define to 1 if you have the ANSI C header files. */
256 #undef STDC_HEADERS
258 /* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
259 #undef TIME_WITH_SYS_TIME
261 /* Define to 1 if your <sys/time.h> declares `struct tm'. */
262 #undef TM_IN_SYS_TIME
264 /* Version number of package */
265 #undef VERSION
267 /* Define to 1 if your processor stores words with the most significant byte
268    first (like Motorola and SPARC, unlike Intel and VAX). */
269 #undef WORDS_BIGENDIAN
271 /* Define to empty if `const' does not conform to ANSI C. */
272 #undef const
275 #ifdef HAVE_FEATURES_H
276 #define _XOPEN_SOURCE 600
277 #undef _BSD_SOURCE /* comment to prevent configure from modifying this line */   
278 #define _BSD_SOURCE 1
279 # include <features.h>
280 #endif
282 #ifdef HAVE_ERRNO_H
283 # include <errno.h>
284 #endif
286 #if defined(HAVE_SYS_MMAN_H)
287 #include <sys/mman.h>
288 #endif
290 #ifdef HAVE_SYS_TYPES_H
291 # include <sys/types.h>
292 #endif
294 #ifdef HAVE_SYS_PARAM_H
295 # include <sys/param.h>
296 #endif
297 #ifndef MAXPATH
298 # ifdef PATH_MAX
299 #  define MAXPATH PATH_MAX
300 # endif
301 #endif
302 #ifndef MAXPATH
303 /* else try the BSD variant */
304 # ifdef MAXPATHLEN
305 #  define MAXPATH MAXPATHLEN
306 # endif
307 #endif
309 #if !defined HAVE_MADVISE && defined HAVE_POSIX_MADVISE
310 /* use posix_madvise family */
311 # define madvise posix_madvise
312 # define MADV_NORMAL POSIX_MADV_NORMAL
313 # define MADV_RANDOM POSIX_MADV_RANDOM
314 # define MADV_SEQUENTIAL POSIX_MADV_SEQUENTIAL
315 # define MADV_WILLNEED POSIX_MADV_WILLNEED
316 # define MADV_DONTNEED POSIX_MADV_DONTNEED
317 #endif
319 #if defined POSIX_MADV_RANDOM && !defined MADV_RANDOM
320 #define MADV_RANDOM POSIX_MADV_RANDOM
321 #endif
325 #if defined HAVE_MADVISE || defined HAVE_POSIX_MADVISE
326 # define USE_MADVISE 1
327 #endif
329 #ifdef HAVE_SYS_STAT_H
330 # include <sys/stat.h>
331 #endif
333 #ifdef HAVE_FCNTL_H
334 #include <fcntl.h>
335 #endif
337 #ifdef HAVE_UNISTD_H
338 # include <unistd.h>
339 #endif
341 #ifdef TIME_WITH_SYS_TIME
342 # include <sys/time.h>
343 # include <time.h>
344 #else
345 # ifdef HAVE_SYS_TIME_H
346 #  include <sys/time.h>
347 # else
348 #  include <time.h>
349 # endif
350 #endif
352 #ifdef HAVE_SYS_TIMES_H
353 # include <sys/times.h>
354 #endif
356 #ifdef HAVE_SYS_RESOURCE_H
357 # include <sys/resource.h>
358 #if (defined(__svr4__) && defined(__sun__))
359 /* Solaris headers (pre 2.6) don't have a getrusage prototype.
360    Use this instead. */
361 extern int getrusage(int, struct rusage *);
362 #endif /* __svr4__ && __sun__ */
363 #endif
365 /* define strrchr, strchr and memcpy, memmove in terms of bsd funcs
366    make sure you are NOT using bcopy, index or rindex in the code */
367       
368 #ifdef STDC_HEADERS
369 # include <string.h>
370 #else
371 # ifndef HAVE_STRCHR
372 #  define strchr index
373 #  define strrchr rindex
374 # endif
375 char *strchr (), *strrchr ();
376 # ifndef HAVE_MEMMOVE
377 #  define memcpy(d, s, n) bcopy ((s), (d), (n))
378 #  define memmove(d, s, n) bcopy ((s), (d), (n))
379 # endif
380 #endif
382 #ifdef NO_NULL_REALLOC
383 # define rrd_realloc(a,b) ( (a) == NULL ? malloc( (b) ) : realloc( (a) , (b) ))
384 #else
385 # define rrd_realloc(a,b) realloc((a), (b))
386 #endif
388 #ifdef NEED_MALLOC_MALLOC_H
389 #  include <malloc/malloc.h>
390 #endif
392 #ifdef HAVE_MATH_H
393 #  include <math.h>
394 #endif
396 #ifdef HAVE_FLOAT_H
397 #  include <float.h>
398 #endif
400 #ifdef HAVE_IEEEFP_H
401 #  include <ieeefp.h>
402 #endif
404 #ifdef HAVE_FP_CLASS_H
405 #  include <fp_class.h>
406 #endif
408 /* for Solaris */
409 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
410 #  define HAVE_ISINF 1
411 #  ifdef isinf
412 #  undef isinf /* confuse autoconf */
413 #  endif
414 #  define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
415 #endif
417 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad  */
418 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS))
419 #  undef isnan  /* confuse autoconf to NOT remove this */
420 #  define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
421 #endif
423 /* for OSF1 Digital Unix */
424 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H))
425 #  define HAVE_ISINF 1
426 #  define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
427 #endif
429 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
430 #  define HAVE_ISINF 1
431 #  define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
432 #endif
434 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
435 #  define HAVE_ISINF 1
436 #  define isinf(a) (fpclassify(a) == FP_INFINITE)
437 #endif
439 /* for AIX */
440 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
441 #  define HAVE_ISINF 1
442 #  define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
443 #endif
445 #if (! defined (HAVE_FINITE) && defined (HAVE_ISFINITE))
446 #  define HAVE_FINITE 1
447 #  define finite(a) isfinite(a)
448 #endif
450 #if (! defined(HAVE_FINITE) && defined(HAVE_ISNAN) && defined(HAVE_ISINF))
451 #  define HAVE_FINITE 1
452 #  define finite(a) (! isnan(a) && ! isinf(a))
453 #endif
455 #ifndef HAVE_FINITE
456 #error "Can't compile without finite function"
457 #endif
459 #ifndef HAVE_ISINF
460 #error "Can't compile without isinf function"
461 #endif
463 #endif /* RRD_CONFIG_H */