Code

Imported upstream version 1.2.26
[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  
19 /* Define to 1 if you have the `chdir' function. */
20 #undef HAVE_CHDIR
22 /* Define to 1 if you have the `chroot' function. */
23 #undef HAVE_CHROOT
25 /* Define to 1 if you have the `class' function. */
26 #undef HAVE_CLASS
28 /* Define to 1 if you have the declaration of `fdatasync', and to 0 if you
29    don't. */
30 #undef HAVE_DECL_FDATASYNC
32 /* Define to 1 if you have the declaration of `madvise', and to 0 if you
33    don't. */
34 #undef HAVE_DECL_MADVISE
36 /* Define to 1 if you have the declaration of `posix_fadvise', and to 0 if you
37    don't. */
38 #undef HAVE_DECL_POSIX_FADVISE
40 /* Define to 1 if you have the <dirent.h> header file, and it defines `DIR'.
41    */
42 #undef HAVE_DIRENT_H
44 /* Define to 1 if you have the <dlfcn.h> header file. */
45 #undef HAVE_DLFCN_H
47 /* Define to 1 if you don't have `vprintf' but do have `_doprnt.' */
48 #undef HAVE_DOPRNT
50 /* Define to 1 if you have the <fcntl.h> header file. */
51 #undef HAVE_FCNTL_H
53 /* Define to 1 if you have the `finite' function. */
54 #undef HAVE_FINITE
56 /* Define to 1 if you have the <float.h> header file. */
57 #undef HAVE_FLOAT_H
59 /* Define to 1 if you have the `fpclass' function. */
60 #undef HAVE_FPCLASS
62 /* Define to 1 if you have the `fpclassify' function. */
63 #undef HAVE_FPCLASSIFY
65 /* Define to 1 if you have the `fp_class' function. */
66 #undef HAVE_FP_CLASS
68 /* Define to 1 if you have the <fp_class.h> header file. */
69 #undef HAVE_FP_CLASS_H
71 /* Define to 1 if you have the `getpagesize' function. */
72 #undef HAVE_GETPAGESIZE
74 /* Define to 1 if you have the `getrusage' function. */
75 #undef HAVE_GETRUSAGE
77 /* Define to 1 if you have the `gettimeofday' function. */
78 #undef HAVE_GETTIMEOFDAY
80 /* Define to 1 if you have the `getuid' function. */
81 #undef HAVE_GETUID
83 /* Define to 1 if you have the <ieeefp.h> header file. */
84 #undef HAVE_IEEEFP_H
86 /* Define to 1 if you have the <inttypes.h> header file. */
87 #undef HAVE_INTTYPES_H
89 /* Define to 1 if you have the `isfinite' function. */
90 #undef HAVE_ISFINITE
92 /* Define to 1 if you have the `isinf' function. */
93 #undef HAVE_ISINF
95 /* Define to 1 if you have the `isnan' function. */
96 #undef HAVE_ISNAN
98 /* Define to 1 if you have the `m' library (-lm). */
99 #undef HAVE_LIBM
101 /* Define to 1 if you have the <locale.h> header file. */
102 #undef HAVE_LOCALE_H
104 /* Define to 1 if you have the `madvise' function. */
105 #undef HAVE_MADVISE
107 /* Define to 1 if you have the <malloc.h> header file. */
108 #undef HAVE_MALLOC_H
110 /* Define to 1 if you have the <math.h> header file. */
111 #undef HAVE_MATH_H
113 /* Define to 1 if you have the `mbstowcs' function. */
114 #undef HAVE_MBSTOWCS
116 /* Define to 1 if you have the `memmove' function. */
117 #undef HAVE_MEMMOVE
119 /* Define to 1 if you have the <memory.h> header file. */
120 #undef HAVE_MEMORY_H
122 /* Define to 1 if you have the `mktime' function. */
123 #undef HAVE_MKTIME
125 /* Define to 1 if you have a working `mmap' system call. */
126 #undef HAVE_MMAP
128 /* Define to 1 if you have the <ndir.h> header file, and it defines `DIR'. */
129 #undef HAVE_NDIR_H
131 /* Define to 1 if you have the `opendir' function. */
132 #undef HAVE_OPENDIR
134 /* Define to 1 if you have the `posix_fadvise' function. */
135 #undef HAVE_POSIX_FADVISE
137 /* Define if you have POSIX threads libraries and header files. */
138 #undef HAVE_PTHREAD
140 /* Define to 1 if you have the `readdir' function. */
141 #undef HAVE_READDIR
143 /* Define to 1 if you have the `setlocale' function. */
144 #undef HAVE_SETLOCALE
146 /* Define to 1 if you have the `snprintf' function. */
147 #undef HAVE_SNPRINTF
149 /* Define to 1 if you have the <stdint.h> header file. */
150 #undef HAVE_STDINT_H
152 /* Define to 1 if you have the <stdlib.h> header file. */
153 #undef HAVE_STDLIB_H
155 /* Define to 1 if you have the `strchr' function. */
156 #undef HAVE_STRCHR
158 /* Define to 1 if you have the `strerror' function. */
159 #undef HAVE_STRERROR
161 /* Define to 1 if you have the `strerror_r' function. */
162 #undef HAVE_STRERROR_R
164 /* Define to 1 if you have the `strftime' function. */
165 #undef HAVE_STRFTIME
167 /* Define to 1 if you have the <strings.h> header file. */
168 #undef HAVE_STRINGS_H
170 /* Define to 1 if you have the <string.h> header file. */
171 #undef HAVE_STRING_H
173 /* Define to 1 if you have the <sys/dir.h> header file, and it defines `DIR'.
174    */
175 #undef HAVE_SYS_DIR_H
177 /* Define to 1 if you have the <sys/ndir.h> header file, and it defines `DIR'.
178    */
179 #undef HAVE_SYS_NDIR_H
181 /* Define to 1 if you have the <sys/param.h> header file. */
182 #undef HAVE_SYS_PARAM_H
184 /* Define to 1 if you have the <sys/resource.h> header file. */
185 #undef HAVE_SYS_RESOURCE_H
187 /* Define to 1 if you have the <sys/stat.h> header file. */
188 #undef HAVE_SYS_STAT_H
190 /* Define to 1 if you have the <sys/times.h> header file. */
191 #undef HAVE_SYS_TIMES_H
193 /* Define to 1 if you have the <sys/types.h> header file. */
194 #undef HAVE_SYS_TYPES_H
196 /* Define to 1 if you have the `tzset' function. */
197 #undef HAVE_TZSET
199 /* Define to 1 if you have the <unistd.h> header file. */
200 #undef HAVE_UNISTD_H
202 /* Define to 1 if you have the `vprintf' function. */
203 #undef HAVE_VPRINTF
205 /* Define to 1 if you have the `vsnprintf' function. */
206 #undef HAVE_VSNPRINTF
208 /* Name of package */
209 #undef PACKAGE
211 /* Define to the address where bug reports for this package should be sent. */
212 #undef PACKAGE_BUGREPORT
214 /* Define to the full name of this package. */
215 #undef PACKAGE_NAME
217 /* Define to the full name and version of this package. */
218 #undef PACKAGE_STRING
220 /* Define to the one symbol short name of this package. */
221 #undef PACKAGE_TARNAME
223 /* Define to the version of this package. */
224 #undef PACKAGE_VERSION
226 /* Define to necessary symbol if this constant uses a non-standard name on
227    your system. */
228 #undef PTHREAD_CREATE_JOINABLE
230 /* Vertical label angle: 90.0 (default) or 270.0 */
231 #undef RRDGRAPH_YLEGEND_ANGLE
233 /* Define to 1 if you have the ANSI C header files. */
234 #undef STDC_HEADERS
236 /* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
237 #undef TIME_WITH_SYS_TIME
239 /* Define to 1 if your <sys/time.h> declares `struct tm'. */
240 #undef TM_IN_SYS_TIME
242 /* Version number of package */
243 #undef VERSION
245 /* Define to 1 if your processor stores words with the most significant byte
246    first (like Motorola and SPARC, unlike Intel and VAX). */
247 #undef WORDS_BIGENDIAN
249 /* Define to empty if `const' does not conform to ANSI C. */
250 #undef const
253 /* enable posix_fadvise on linux */
254 #if defined(HAVE_POSIX_FADVISE) && defined(HAVE_FCNTL_H)
255 #define _XOPEN_SOURCE 600
256 #include <fcntl.h>
257 #endif
259 /* define strrchr, strchr and memcpy, memmove in terms of bsd funcs
260    make sure you are NOT using bcopy, index or rindex in the code */
261       
262 #ifdef STDC_HEADERS
263 # include <string.h>
264 #else
265 # ifndef HAVE_STRCHR
266 #  define strchr index
267 #  define strrchr rindex
268 # endif
269 char *strchr (), *strrchr ();
270 # ifndef HAVE_MEMMOVE
271 #  define memcpy(d, s, n) bcopy ((s), (d), (n))
272 #  define memmove(d, s, n) bcopy ((s), (d), (n))
273 # endif
274 #endif
276 #ifdef NO_NULL_REALLOC
277 # define rrd_realloc(a,b) ( (a) == NULL ? malloc( (b) ) : realloc( (a) , (b) ))
278 #else
279 # define rrd_realloc(a,b) realloc((a), (b))
280 #endif
282 #ifdef NEED_MALLOC_MALLOC_H
283 #  include <malloc/malloc.h>
284 #endif
286 #ifdef HAVE_MATH_H
287 #  include <math.h>
288 #endif
290 #ifdef HAVE_FLOAT_H
291 #  include <float.h>
292 #endif
294 #ifdef HAVE_IEEEFP_H
295 #  include <ieeefp.h>
296 #endif
298 #ifdef HAVE_FP_CLASS_H
299 #  include <fp_class.h>
300 #endif
302 /* for Solaris */
303 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
304 #  define HAVE_ISINF 1
305 #  define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
306 #endif
308 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad  */
309 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS))
310 #  undef isnan
311 #  define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
312 #endif
314 /* for OSF1 Digital Unix */
315 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H))
316 #  define HAVE_ISINF 1
317 #  define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
318 #endif
320 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
321 #  define HAVE_ISINF 1
322 #  define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
323 #endif
325 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
326 #  define HAVE_ISINF 1
327 #  define isinf(a) (fpclassify(a) == FP_INFINITE)
328 #endif
330 /* for AIX */
331 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
332 #  define HAVE_ISINF 1
333 #  define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
334 #endif
336 #if (! defined (HAVE_FINITE) && defined (HAVE_ISFINITE))
337 #  define HAVE_FINITE 1
338 #  define finite(a) isfinite(a)
339 #endif
341 #if (! defined(HAVE_FINITE) && defined(HAVE_ISNAN) && defined(HAVE_ISINF))
342 #  define HAVE_FINITE 1
343 #  define finite(a) (! isnan(a) && ! isinf(a))
344 #endif
346 #ifndef HAVE_FINITE
347 #error "Can't compile without finite function"
348 #endif
350 #ifndef HAVE_ISINF
351 #error "Can't compile without isinf function"
352 #endif
354 #endif /* RRD_CONFIG_H */