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/ppdev.h> header file. */
92 #undef HAVE_LINUX_PPDEV_H
94 /* Define to 1 if you have the `lstat' function. */
97 /* Define to 1 if you have the <memory.h> header file. */
100 /* Define to 1 if you have the `mkstemp' function. */
103 /* Define to 1 if you have the `mmap' function. */
106 /* Define to 1 if you have the `modf' function. */
109 /* Define to 1 if you have the `nanosleep' function. */
110 #undef HAVE_NANOSLEEP
112 /* Define if you have POSIX threads libraries and header files. */
115 /* Define to 1 if you have the <Python.h> header file. */
118 /* Define to 1 if you have the `rand' function. */
121 /* Define to 1 if you have the `random' function. */
124 /* Define to 1 if you have the <sched.h> header file. */
127 /* Define to 1 if you have the `sched_setscheduler' function. */
128 #undef HAVE_SCHED_SETSCHEDULER
130 /* Define to 1 if you have the `select' function. */
133 /* Define to 1 if you have the `shm_open' function. */
136 /* Define to 1 if you have the `sigaction' function. */
137 #undef HAVE_SIGACTION
139 /* Define to 1 if your system has `sincos'. */
142 /* Define to 1 if your system has `sincosf'. */
145 /* Define to 1 if your system has `sinf'. */
148 /* Define to 1 if you have the `sleep' function. */
151 /* Define to 1 if you have the `snprintf' function. */
154 /* Define to 1 if you have the `socket' function. */
157 /* Define to 1 if you have the `sqrt' function. */
160 /* Define to 1 if you have the `srand' function. */
163 /* Define to 1 if you have the `srandom' function. */
166 /* Define to 1 if the system has the type `ssize_t'. */
169 /* Define to 1 if you have win32 Sleep */
172 /* Define to 1 if you have the <stdint.h> header file. */
175 /* Define to 1 if you have the <stdlib.h> header file. */
178 /* Define to 1 if you have the `strcspn' function. */
181 /* Define to 1 if you have the `strerror' function. */
184 /* Define to 1 if you have the <strings.h> header file. */
185 #undef HAVE_STRINGS_H
187 /* Define to 1 if you have the <string.h> header file. */
190 /* Define to 1 if you have the `strspn' function. */
193 /* Define to 1 if the system has the type `struct timespec'. */
194 #undef HAVE_STRUCT_TIMESPEC
196 /* Define to 1 if the system has the type `struct timezone'. */
197 #undef HAVE_STRUCT_TIMEZONE
199 /* Define to 1 if you have the `sysconf' function. */
202 /* Define to 1 if you have the <sys/ioctl.h> header file. */
203 #undef HAVE_SYS_IOCTL_H
205 /* Define to 1 if you have the <sys/ipc.h> header file. */
206 #undef HAVE_SYS_IPC_H
208 /* Define to 1 if you have the <sys/mman.h> header file. */
209 #undef HAVE_SYS_MMAN_H
211 /* Define to 1 if you have the <sys/resource.h> header file. */
212 #undef HAVE_SYS_RESOURCE_H
214 /* Define to 1 if you have the <sys/select.h> header file. */
215 #undef HAVE_SYS_SELECT_H
217 /* Define to 1 if you have the <sys/shm.h> header file. */
218 #undef HAVE_SYS_SHM_H
220 /* Define to 1 if you have the <sys/stat.h> header file. */
221 #undef HAVE_SYS_STAT_H
223 /* Define to 1 if you have the <sys/time.h> header file. */
224 #undef HAVE_SYS_TIME_H
226 /* Define to 1 if you have the <sys/types.h> header file. */
227 #undef HAVE_SYS_TYPES_H
229 /* Define to 1 if you have <sys/wait.h> that is POSIX.1 compatible. */
230 #undef HAVE_SYS_WAIT_H
232 /* Define to 1 if you have the <time.h> header file. */
235 /* Define to 1 if your system has `trunc'. */
238 /* Define to 1 if you have the <unistd.h> header file. */
241 /* Define to 1 if you have the <usb.h> header file. */
244 /* Define to 1 if you have the `usleep' function. */
247 /* Define to 1 if you have the `vprintf' function. */
250 /* Define to 1 if you have the <winbase.h> header file. */
251 #undef HAVE_WINBASE_H
253 /* Define to 1 if you have the <windows.h> header file. */
254 #undef HAVE_WINDOWS_H
256 /* Define to 1 if you have the <winioctl.h> header file. */
257 #undef HAVE_WINIOCTL_H
259 /* Define to 1 if you have the `__secure_getenv' function. */
260 #undef HAVE___SECURE_GETENV
262 /* Define if mkdir accepts only one arg */
263 #undef MKDIR_TAKES_ONE_ARG
265 /* Define to disable asserts (don't doit!) */
268 /* Define to 1 to enable NT thread */
271 /* Define to 1 to enable pthread */
272 #undef OMNITHREAD_POSIX
274 /* Name of package */
277 /* Define to the address where bug reports for this package should be sent. */
278 #undef PACKAGE_BUGREPORT
280 /* Define to the full name of this package. */
283 /* Define to the full name and version of this package. */
284 #undef PACKAGE_STRING
286 /* Define to the one symbol short name of this package. */
287 #undef PACKAGE_TARNAME
289 /* Define to the version of this package. */
290 #undef PACKAGE_VERSION
292 /* Define to 1 if the C compiler supports function prototypes. */
295 /* Define to the necessary symbol if this constant uses a non-standard name on
297 #undef PTHREAD_CREATE_JOINABLE
299 /* Define to 1 if the `setvbuf' function takes the buffering type as its
300 second argument and the buffer pointer as the third, as on System V before
302 #undef SETVBUF_REVERSED
304 /* If using the C implementation of alloca, define if you know the
305 direction of stack growth for your system; otherwise it will be
306 automatically deduced at runtime.
307 STACK_DIRECTION > 0 => grows toward higher addresses
308 STACK_DIRECTION < 0 => grows toward lower addresses
309 STACK_DIRECTION = 0 => direction of growth unknown */
310 #undef STACK_DIRECTION
312 /* Define to 1 if the `S_IS*' macros in <sys/stat.h> do not work properly. */
313 #undef STAT_MACROS_BROKEN
315 /* Define to 1 if you have the ANSI C header files. */
318 /* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
319 #undef TIME_WITH_SYS_TIME
321 /* Define to 1 if your <sys/time.h> declares `struct tm'. */
322 #undef TM_IN_SYS_TIME
324 /* Version number of package */
327 /* Define to 1 if your processor stores words with the most significant byte
328 first (like Motorola and SPARC, unlike Intel and VAX). */
329 #undef WORDS_BIGENDIAN
331 /* Define to 1 if on AIX 3.
332 System headers sometimes define this.
333 We just want to avoid a redefinition error message. */
338 /* Define to 1 if on MINIX. */
341 /* Define to 2 if the system does not provide POSIX.1 features except with
343 #undef _POSIX_1_SOURCE
345 /* Define to 1 if you need to in order for `stat' and other things to work. */
348 /* Define like PROTOTYPES; this can be used by system headers. */
351 /* Define to empty if `const' does not conform to ANSI C. */
354 /* Define to `__inline__' or `__inline' if that's what the C compiler
355 calls it, or to nothing if 'inline' is not supported under any name. */
360 /* Define to rpl_mkstemp if the replacement function should be used. */
363 /* Define to `unsigned int' if <sys/types.h> does not define. */
366 // Workaround for compilers with buggy for-loop scoping
367 // That's quite a few compilers actually including recent versions of
368 // Dec Alpha cxx, HP-UX CC and SGI CC.
369 // The trivial "if" statement provides the correct scoping to the
372 #ifdef CXX_HAS_BUGGY_FOR_LOOPS
374 #define for if(1) for
378 // If the C++ compiler we use doesn't have bool, then
379 // the following is a near-perfect work-around.
380 // You must make sure your code does not depend on "int" and "bool"
381 // being two different types, in overloading for instance.
383 #ifdef CXX_HAS_NO_BOOL
393 inline static double trunc(double x)
395 return x >= 0 ? floor(x) : ceil(x);
401 inline static double exp10(double x)
409 /* Define missing prototypes, implemented in replacement lib */
415 int getopt (int argc, char * const argv[], const char * optstring);
416 extern char * optarg;
417 extern int optind, opterr, optopt;
421 int usleep(unsigned long usec); /* SUSv2 */
424 #ifndef HAVE_NANOSLEEP
425 #ifndef HAVE_STRUCT_TIMESPEC
427 # include <sys/types.h> /* need time_t */
434 static inline int nanosleep(const struct timespec *req, struct timespec *rem) { return usleep(req->tv_sec*1000000+req->tv_nsec/1000); }
437 #if defined(HAVE_SSLEEP) && !defined(HAVE_SLEEP)
438 #ifdef HAVE_WINBASE_H
442 /* TODO: what about SleepEx? */
443 static inline unsigned int sleep (unsigned int nb_sec) { Sleep(nb_sec*1000); return 0; }
446 #ifndef HAVE_GETTIMEOFDAY
447 #ifdef HAVE_SYS_TIME_H
448 #include <sys/time.h>
450 #ifndef HAVE_STRUCT_TIMEZONE
456 int gettimeofday(struct timeval *tv, struct timezone *tz);
459 #if !defined(HAVE_RANDOM) && defined(HAVE_RAND)
461 static inline long int random (void) { return rand(); }
464 #if !defined(HAVE_SRANDOM) && defined(HAVE_SRAND)
465 static inline void srandom (unsigned int seed) { srand(seed); }
469 typedef size_t ssize_t;
482 int rpl_mkstemp (char *templ);