1 /* config.h.in. Generated from configure.ac by autoheader. */
3 /* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP
4 systems. This function is required for `alloca.c' support on those systems.
6 #undef CRAY_STACKSEG_END
8 /* Define if for loop scoping is broken */
9 #undef CXX_HAS_BUGGY_FOR_LOOPS
11 /* Define if C++ is missing bool type */
12 #undef CXX_HAS_NO_BOOL
14 /* Define if has std::isnan */
15 #undef CXX_HAS_STD_ISNAN
17 /* Define to 1 if using `alloca.c'. */
20 /* Define to 1 if you have `alloca', as a function or macro. */
23 /* Define to 1 if you have <alloca.h> and it should be used (not on Ultrix).
27 /* Define to 1 if you have the <AudioToolbox/AudioToolbox.h> header file. */
28 #undef HAVE_AUDIOTOOLBOX_AUDIOTOOLBOX_H
30 /* Define to 1 if you have the <AudioUnit/AudioUnit.h> header file. */
31 #undef HAVE_AUDIOUNIT_AUDIOUNIT_H
33 /* Define to 1 if you have the <byteswap.h> header file. */
34 #undef HAVE_BYTESWAP_H
36 /* Define to 1 if you have the `clock_gettime' function. */
37 #undef HAVE_CLOCK_GETTIME
39 /* Define to 1 if your system has `cosf'. */
42 /* Define if you have the CreateFilemapping function(win32). */
43 #undef HAVE_CREATEFILEMAPPING
45 /* Define to 1 if you have the declaration of `getenv', and to 0 if you don't.
47 #undef HAVE_DECL_GETENV
49 /* Define to 1 if you have the <dlfcn.h> header file. */
52 /* Define to 1 if you don't have `vprintf' but do have `_doprnt.' */
55 /* Define to 1 if your system has 'exp10'. */
58 /* Define to 1 if you have the <fcntl.h> header file. */
61 /* Define to 1 if you have the `getopt' function. */
64 /* Define to 1 if you have the `getpagesize' function. */
65 #undef HAVE_GETPAGESIZE
67 /* Define to 1 if you have the `getrusage' function. */
70 /* Define to 1 if you have the `gettimeofday' function. */
71 #undef HAVE_GETTIMEOFDAY
73 /* Define to 1 if you have the <inttypes.h> header file. */
74 #undef HAVE_INTTYPES_H
76 /* Define to 1 if you have the <io.h> header file. */
79 /* Define to 1 if you have the `ossaudio' library (-lossaudio). */
80 #undef HAVE_LIBOSSAUDIO
82 /* Define to 1 if you have the `socket' library (-lsocket). */
85 /* Define to 1 if you have the `winmm' library (-lwinmm). */
88 /* Define to 1 if you have the <limits.h> header file. */
91 /* Define to 1 if you have the <linux/compiler.h> header file. */
92 #undef HAVE_LINUX_COMPILER_H
94 /* Define to 1 if you have the <linux/ppdev.h> header file. */
95 #undef HAVE_LINUX_PPDEV_H
97 /* Define to 1 if you have the `lstat' function. */
100 /* Define to 1 if you have the <memory.h> header file. */
103 /* Define to 1 if you have the `mkstemp' function. */
106 /* Define to 1 if you have the `mmap' function. */
109 /* Define to 1 if you have the `modf' function. */
112 /* Define to 1 if you have the `nanosleep' function. */
113 #undef HAVE_NANOSLEEP
115 /* Define if you have POSIX threads libraries and header files. */
118 /* Define to 1 if you have the <Python.h> header file. */
121 /* Define to 1 if you have the `rand' function. */
124 /* Define to 1 if you have the `random' function. */
127 /* Define to 1 if you have the <sched.h> header file. */
130 /* Define to 1 if you have the `sched_setscheduler' function. */
131 #undef HAVE_SCHED_SETSCHEDULER
133 /* Define to 1 if you have the `select' function. */
136 /* Define to 1 if you have the `shm_open' function. */
139 /* Define to 1 if you have the `sigaction' function. */
140 #undef HAVE_SIGACTION
142 /* Define to 1 if your system has `sincos'. */
145 /* Define to 1 if your system has `sincosf'. */
148 /* Define to 1 if your system has `sinf'. */
151 /* Define to 1 if you have the `sleep' function. */
154 /* Define to 1 if you have the `snprintf' function. */
157 /* Define to 1 if you have the `socket' function. */
160 /* Define to 1 if you have the `sqrt' function. */
163 /* Define to 1 if you have the `srand' function. */
166 /* Define to 1 if you have the `srandom' function. */
169 /* Define to 1 if the system has the type `ssize_t'. */
172 /* Define to 1 if you have win32 Sleep */
175 /* Define to 1 if you have the <stdint.h> header file. */
178 /* Define to 1 if you have the <stdlib.h> header file. */
181 /* Define to 1 if you have the `strcspn' function. */
184 /* Define to 1 if you have the `strerror' function. */
187 /* Define to 1 if you have the <strings.h> header file. */
188 #undef HAVE_STRINGS_H
190 /* Define to 1 if you have the <string.h> header file. */
193 /* Define to 1 if you have the `strspn' function. */
196 /* Define to 1 if the system has the type `struct timespec'. */
197 #undef HAVE_STRUCT_TIMESPEC
199 /* Define to 1 if the system has the type `struct timezone'. */
200 #undef HAVE_STRUCT_TIMEZONE
202 /* Define to 1 if you have the `sysconf' function. */
205 /* Define to 1 if you have the <sys/ioctl.h> header file. */
206 #undef HAVE_SYS_IOCTL_H
208 /* Define to 1 if you have the <sys/ipc.h> header file. */
209 #undef HAVE_SYS_IPC_H
211 /* Define to 1 if you have the <sys/mman.h> header file. */
212 #undef HAVE_SYS_MMAN_H
214 /* Define to 1 if you have the <sys/resource.h> header file. */
215 #undef HAVE_SYS_RESOURCE_H
217 /* Define to 1 if you have the <sys/select.h> header file. */
218 #undef HAVE_SYS_SELECT_H
220 /* Define to 1 if you have the <sys/shm.h> header file. */
221 #undef HAVE_SYS_SHM_H
223 /* Define to 1 if you have the <sys/stat.h> header file. */
224 #undef HAVE_SYS_STAT_H
226 /* Define to 1 if you have the <sys/time.h> header file. */
227 #undef HAVE_SYS_TIME_H
229 /* Define to 1 if you have the <sys/types.h> header file. */
230 #undef HAVE_SYS_TYPES_H
232 /* Define to 1 if you have <sys/wait.h> that is POSIX.1 compatible. */
233 #undef HAVE_SYS_WAIT_H
235 /* Define to 1 if you have the <time.h> header file. */
238 /* Define to 1 if your system has `trunc'. */
241 /* Define to 1 if you have the <unistd.h> header file. */
244 /* Define to 1 if you have the <usb.h> header file. */
247 /* Define to 1 if you have the `usleep' function. */
250 /* Define to 1 if you have the `vprintf' function. */
253 /* Define to 1 if you have the <winbase.h> header file. */
254 #undef HAVE_WINBASE_H
256 /* Define to 1 if you have the <windows.h> header file. */
257 #undef HAVE_WINDOWS_H
259 /* Define to 1 if you have the <winioctl.h> header file. */
260 #undef HAVE_WINIOCTL_H
262 /* Define to 1 if you have the `__secure_getenv' function. */
263 #undef HAVE___SECURE_GETENV
265 /* Define if mkdir accepts only one arg */
266 #undef MKDIR_TAKES_ONE_ARG
268 /* Define to disable asserts (don't doit!) */
271 /* Define to 1 to enable NT thread */
274 /* Define to 1 to enable pthread */
275 #undef OMNITHREAD_POSIX
277 /* Name of package */
280 /* Define to the address where bug reports for this package should be sent. */
281 #undef PACKAGE_BUGREPORT
283 /* Define to the full name of this package. */
286 /* Define to the full name and version of this package. */
287 #undef PACKAGE_STRING
289 /* Define to the one symbol short name of this package. */
290 #undef PACKAGE_TARNAME
292 /* Define to the version of this package. */
293 #undef PACKAGE_VERSION
295 /* Define to 1 if the C compiler supports function prototypes. */
298 /* Define to the necessary symbol if this constant uses a non-standard name on
300 #undef PTHREAD_CREATE_JOINABLE
302 /* Define to 1 if the `setvbuf' function takes the buffering type as its
303 second argument and the buffer pointer as the third, as on System V before
305 #undef SETVBUF_REVERSED
307 /* If using the C implementation of alloca, define if you know the
308 direction of stack growth for your system; otherwise it will be
309 automatically deduced at runtime.
310 STACK_DIRECTION > 0 => grows toward higher addresses
311 STACK_DIRECTION < 0 => grows toward lower addresses
312 STACK_DIRECTION = 0 => direction of growth unknown */
313 #undef STACK_DIRECTION
315 /* Define to 1 if the `S_IS*' macros in <sys/stat.h> do not work properly. */
316 #undef STAT_MACROS_BROKEN
318 /* Define to 1 if you have the ANSI C header files. */
321 /* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
322 #undef TIME_WITH_SYS_TIME
324 /* Define to 1 if your <sys/time.h> declares `struct tm'. */
325 #undef TM_IN_SYS_TIME
327 /* Version number of package */
330 /* Define to 1 if your processor stores words with the most significant byte
331 first (like Motorola and SPARC, unlike Intel and VAX). */
332 #undef WORDS_BIGENDIAN
334 /* Define to 1 if on AIX 3.
335 System headers sometimes define this.
336 We just want to avoid a redefinition error message. */
341 /* Define to 1 if on MINIX. */
344 /* Define to 2 if the system does not provide POSIX.1 features except with
346 #undef _POSIX_1_SOURCE
348 /* Define to 1 if you need to in order for `stat' and other things to work. */
351 /* Define like PROTOTYPES; this can be used by system headers. */
354 /* Define to empty if `const' does not conform to ANSI C. */
357 /* Define to `__inline__' or `__inline' if that's what the C compiler
358 calls it, or to nothing if 'inline' is not supported under any name. */
363 /* Define to rpl_mkstemp if the replacement function should be used. */
366 /* Define to `unsigned int' if <sys/types.h> does not define. */
369 // Workaround for compilers with buggy for-loop scoping
370 // That's quite a few compilers actually including recent versions of
371 // Dec Alpha cxx, HP-UX CC and SGI CC.
372 // The trivial "if" statement provides the correct scoping to the
375 #ifdef CXX_HAS_BUGGY_FOR_LOOPS
377 #define for if(1) for
381 // If the C++ compiler we use doesn't have bool, then
382 // the following is a near-perfect work-around.
383 // You must make sure your code does not depend on "int" and "bool"
384 // being two different types, in overloading for instance.
386 #ifdef CXX_HAS_NO_BOOL
396 inline static double trunc(double x)
398 return x >= 0 ? floor(x) : ceil(x);
404 inline static double exp10(double x)
412 /* Define missing prototypes, implemented in replacement lib */
418 int getopt (int argc, char * const argv[], const char * optstring);
419 extern char * optarg;
420 extern int optind, opterr, optopt;
424 int usleep(unsigned long usec); /* SUSv2 */
427 #ifndef HAVE_NANOSLEEP
428 #ifndef HAVE_STRUCT_TIMESPEC
430 # include <sys/types.h> /* need time_t */
437 static inline int nanosleep(const struct timespec *req, struct timespec *rem) { return usleep(req->tv_sec*1000000+req->tv_nsec/1000); }
440 #if defined(HAVE_SSLEEP) && !defined(HAVE_SLEEP)
441 #ifdef HAVE_WINBASE_H
445 /* TODO: what about SleepEx? */
446 static inline unsigned int sleep (unsigned int nb_sec) { Sleep(nb_sec*1000); return 0; }
449 #ifndef HAVE_GETTIMEOFDAY
450 #ifdef HAVE_SYS_TIME_H
451 #include <sys/time.h>
453 #ifndef HAVE_STRUCT_TIMEZONE
459 int gettimeofday(struct timeval *tv, struct timezone *tz);
462 #if !defined(HAVE_RANDOM) && defined(HAVE_RAND)
464 static inline long int random (void) { return rand(); }
467 #if !defined(HAVE_SRANDOM) && defined(HAVE_SRAND)
468 static inline void srandom (unsigned int seed) { srand(seed); }
472 typedef size_t ssize_t;
485 int rpl_mkstemp (char *templ);