This commit was manufactured by cvs2svn to create tag 'r212'.
[python/dscho.git] / Mac / Include / config.h
blob415887342e6856d8b45259e02b94cec9401cbb23
1 /***********************************************************
2 Copyright 1991-1997 by Stichting Mathematisch Centrum, Amsterdam,
3 The Netherlands.
5 All Rights Reserved
7 Permission to use, copy, modify, and distribute this software and its
8 documentation for any purpose and without fee is hereby granted,
9 provided that the above copyright notice appear in all copies and that
10 both that copyright notice and this permission notice appear in
11 supporting documentation, and that the names of Stichting Mathematisch
12 Centrum or CWI not be used in advertising or publicity pertaining to
13 distribution of the software without specific, written prior permission.
15 STICHTING MATHEMATISCH CENTRUM DISCLAIMS ALL WARRANTIES WITH REGARD TO
16 THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
17 FITNESS, IN NO EVENT SHALL STICHTING MATHEMATISCH CENTRUM BE LIABLE
18 FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
19 WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
20 ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
21 OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
23 ******************************************************************/
25 /* config.h for Macintosh.
26 Valid only for CodeWarrior.
27 There's no point in giving exact version numbers of the compilers
28 since we don't update this file as each compiler comes out;
29 with CodeWarrior, we generally use the most recent version.
32 #define USE_STACKCHECK
34 /* Define if on Macintosh (MPW or __MWERKS__ should also be defined) */
35 #ifndef macintosh
36 #define macintosh
37 #endif
39 #if defined(USE_GUSI1) || defined(USE_GUSI2)
40 #define USE_GUSI
41 #endif
43 #ifndef USE_GUSI
44 #define DONT_HAVE_SYS_TYPES_H
45 #define DONT_HAVE_SYS_STAT_H
46 #define HAVE_STAT_H
47 #endif
49 /* Define if on AIX 3.
50 System headers sometimes define this.
51 We just want to avoid a redefinition error message. */
52 #ifndef _ALL_SOURCE
53 #undef _ALL_SOURCE
54 #endif
56 /* Define if type char is unsigned and you are not using gcc. */
57 #ifndef __CHAR_UNSIGNED__
58 #undef __CHAR_UNSIGNED__
59 #endif
61 /* Define to empty if the keyword does not work. */
62 #undef const
64 /* Define to `int' if <sys/types.h> doesn't define. */
65 #undef gid_t
67 /* Define if your struct tm has tm_zone. */
68 #undef HAVE_TM_ZONE
70 /* Define if you don't have tm_zone but do have the external array
71 tzname. */
72 #undef HAVE_TZNAME
74 /* Define if on MINIX. */
75 #undef _MINIX
77 /* Define to `int' if <sys/types.h> doesn't define. */
78 #undef mode_t
80 /* Define to `long' if <sys/types.h> doesn't define. */
81 #undef off_t
83 /* Define to `int' if <sys/types.h> doesn't define. */
84 #undef pid_t
86 /* Define if the system does not provide POSIX.1 features except
87 with this defined. */
88 #undef _POSIX_1_SOURCE
90 /* Define if you need to in order for stat and other things to work. */
91 #undef _POSIX_SOURCE
93 /* Define as the return type of signal handlers (int or void). */
94 #define RETSIGTYPE void
96 /* Define to `unsigned' if <sys/types.h> doesn't define. */
97 #undef size_t
99 /* Define if you have the ANSI C header files. */
100 #define STDC_HEADERS 1
102 /* Define if you can safely include both <sys/time.h> and <time.h>. */
103 #undef TIME_WITH_SYS_TIME
105 /* Define if your <sys/time.h> declares struct tm. */
106 #undef TM_IN_SYS_TIME
108 /* Define to `int' if <sys/types.h> doesn't define. */
109 #undef uid_t
111 /* Define if your processor stores words with the most significant
112 byte first (like Motorola and SPARC, unlike Intel and VAX). */
113 #define WORDS_BIGENDIAN 1
115 /* Define for AIX if your compiler is a genuine IBM xlC/xlC_r
116 and you want support for AIX C++ shared extension modules. */
117 #undef AIX_GENUINE_CPLUSPLUS
119 /* Define if your <unistd.h> contains bad prototypes for exec*()
120 (as it does on SGI IRIX 4.x) */
121 #undef BAD_EXEC_PROTOTYPES
123 /* Define if your compiler botches static forward declarations */
124 #define BAD_STATIC_FORWARD
126 /* Define this if you have BeOS threads */
127 #undef BEOS_THREADS
129 /* Define if you have the Mach cthreads package */
130 #undef C_THREADS
132 /* Defined when case of imported modules are checked against case of file. */
133 #define CHECK_IMPORT_CASE
135 /* Define to `long' if <time.h> doesn't define. */
136 #undef clock_t
138 /* Defined on Solaris to see additional function prototypes. */
139 #undef __EXTENSIONS__
141 /* Define if getpgrp() must be called as getpgrp(0). */
142 #undef GETPGRP_HAVE_ARG
144 /* Define if gettimeofday() does not have second (timezone) argument
145 This is the case on Motorola V4 (R40V4.2) */
146 #undef GETTIMEOFDAY_NO_TZ
148 /* Define this if your time.h defines altzone */
149 #undef HAVE_ALTZONE
151 /* Defined when any dynamic module loading is enabled */
152 /* #undef HAVE_DYNAMIC_LOADING */
154 /* Define this if you have flockfile(), getc_unlocked(), and funlockfile() */
155 #undef HAVE_GETC_UNLOCKED
157 /* Define this if you have some version of gethostbyname_r() */
158 #undef HAVE_GETHOSTBYNAME_R
160 /* Define this if you have the 3-arg version of gethostbyname_r() */
161 #undef HAVE_GETHOSTBYNAME_R_3_ARG
163 /* Define this if you have the 5-arg version of gethostbyname_r() */
164 #undef HAVE_GETHOSTBYNAME_R_5_ARG
166 /* Define this if you have the 6-arg version of gethostbyname_r() */
167 #undef HAVE_GETHOSTBYNAME_R_6_ARG
169 /* Defined to enable large file support when an off_t is bigger than a long
170 and long long is available and at least as big as an off_t. You may need
171 to add some flags for configuration and compilation to enable this mode.
172 E.g, for Solaris 2.7:
173 CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" OPT="-O2 $CFLAGS" \
174 configure
176 #undef HAVE_LARGEFILE_SUPPORT
178 /* Define this if you have the type long long */
179 #undef HAVE_LONG_LONG
181 /* Define if your compiler supports function prototypes */
182 #define HAVE_PROTOTYPES 1
184 /* Define if you have GNU PTH threads */
185 #undef HAVE_PTH
187 /* Define if your compiler supports variable length function prototypes
188 (e.g. void fprintf(FILE *, char *, ...);) *and* <stdarg.h> */
189 #define HAVE_STDARG_PROTOTYPES
191 /* Define this if you have the type uintptr_t */
192 #undef HAVE_UINTPTR_T
194 /* Define if you have a useable wchar_t type defined in wchar.h; useable
195 means wchar_t must be 16-bit unsigned type. (see
196 Include/unicodeobject.h). */
197 #define HAVE_USABLE_WCHAR_T 1
199 /* Define if the compiler provides a wchar.h header file. */
200 #define HAVE_WCHAR_H 1
202 /* Define if you want to have a Unicode type. */
203 #define Py_USING_UNICODE 1
205 /* Define as the integral type used for Unicode representation. */
206 #define PY_UNICODE_TYPE wchar_t
208 /* Define as the size of the unicode type. */
209 #define Py_UNICODE_SIZE 2
211 /* Define if malloc(0) returns a NULL pointer */
212 #ifdef USE_MSL_MALLOC
213 #define MALLOC_ZERO_RETURNS_NULL
214 #else
215 #undef MALLOC_ZERO_RETURNS_NULL
216 #endif
218 /* Define if you have POSIX threads */
219 #ifdef USE_GUSI2
220 #define _POSIX_THREADS
221 #endif
223 /* Define if you want to build an interpreter with many run-time checks */
224 #undef Py_DEBUG
226 /* Define to force use of thread-safe errno, h_errno, and other functions */
227 #undef _REENTRANT
229 /* Define if setpgrp() must be called as setpgrp(0, 0). */
230 #undef SETPGRP_HAVE_ARG
232 /* Define to empty if the keyword does not work. */
233 #undef signed
235 /* Define if i>>j for signed int i does not extend the sign bit
236 when i < 0
238 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS
240 /* The number of bytes in an off_t. */
241 #define SIZEOF_OFF_T 4
243 /* The number of bytes in a time_t. */
244 #define SIZEOF_TIME_T 4
246 /* The number of bytes in a pthread_t. */
247 #ifdef USE_GUSI2
248 #define SIZEOF_PTHREAD_T 4
249 #endif
251 /* Define to `int' if <sys/types.h> doesn't define. */
252 #undef socklen_t
254 /* Define if you can safely include both <sys/select.h> and <sys/time.h>
255 (which you can't on SCO ODT 3.0). */
256 #undef SYS_SELECT_WITH_SYS_TIME
258 /* Define if a va_list is an array of some kind */
259 #undef VA_LIST_IS_ARRAY
261 /* Define to empty if the keyword does not work. */
262 #undef volatile
264 /* Define if you want SIGFPE handled (see Include/pyfpe.h). */
265 #undef WANT_SIGFPE_HANDLER
267 /* Define if you want wctype.h functions to be used instead of the
268 one supplied by Python itself. (see Include/unicodectype.h). */
269 #undef WANT_WCTYPE_FUNCTIONS
271 /* Define if you want to compile in cycle garbage collection */
272 #undef WITH_CYCLE_GC
274 /* Define if you want to emulate SGI (IRIX 4) dynamic linking.
275 This is rumoured to work on VAX (Ultrix), Sun3 (SunOS 3.4),
276 Sequent Symmetry (Dynix), and Atari ST.
277 This requires the "dl-dld" library,
278 ftp://ftp.cwi.nl/pub/dynload/dl-dld-1.1.tar.Z,
279 as well as the "GNU dld" library,
280 ftp://ftp.cwi.nl/pub/dynload/dld-3.2.3.tar.Z.
281 Don't bother on SunOS 4 or 5, they already have dynamic linking using
282 shared libraries */
283 #undef WITH_DL_DLD
285 /* Define if you want to use the new-style (Openstep, Rhapsody, MacOS)
286 dynamic linker (dyld) instead of the old-style (NextStep) dynamic
287 linker (rld). Dyld is necessary to support frameworks. */
288 #undef WITH_DYLD
290 /* Define if you want to compile in Python-specific mallocs */
291 #undef WITH_PYMALLOC
293 /* Define if you want to produce an OpenStep/Rhapsody framework
294 (shared library plus accessory files). */
295 #undef WITH_NEXT_FRAMEWORK
297 /* Define if you want to use SGI (IRIX 4) dynamic linking.
298 This requires the "dl" library by Jack Jansen,
299 ftp://ftp.cwi.nl/pub/dynload/dl-1.6.tar.Z.
300 Don't bother on IRIX 5, it already has dynamic linking using SunOS
301 style shared libraries */
302 #undef WITH_SGI_DL
304 /* Define if you want to compile in rudimentary thread support */
305 /* #undef WITH_THREAD */
307 /* The number of bytes in a char. */
308 #define SIZEOF_CHAR 1
310 /* The number of bytes in a double. */
311 #define SIZEOF_DOUBLE 8
313 /* The number of bytes in a float. */
314 #define SIZEOF_FLOAT 4
316 /* The number of bytes in a fpos_t. */
317 #define SIZEOF_FPOS_T 4
319 /* The number of bytes in a int. */
320 #define SIZEOF_INT 4
322 /* The number of bytes in a long. */
323 #define SIZEOF_LONG 4
325 /* The number of bytes in a long long. */
326 #undef SIZEOF_LONG_LONG
328 /* The number of bytes in a short. */
329 #define SIZEOF_SHORT 2
331 /* The number of bytes in a uintptr_t. */
332 #define SIZEOF_UINTPTR_T 4
334 /* The number of bytes in a void *. */
335 #define SIZEOF_VOID_P 4
337 /* Define if you have the _getpty function. */
338 #undef HAVE__GETPTY
340 /* Define if you have the alarm function. */
341 #undef HAVE_ALARM
343 /* Define if you have the chown function. */
344 #undef HAVE_CHOWN
346 /* Define if you have clock. */
347 #define HAVE_CLOCK
349 /* Define if you have the confstr function. */
350 #undef HAVE_CONFSTR
352 /* Define if you have the ctermid function. */
353 #undef HAVE_CTERMID
355 /* Define if you have the ctermid_r function. */
356 #undef HAVE_CTERMID_R
358 /* Define if you have the dlopen function. */
359 #undef HAVE_DLOPEN
361 /* Define if you have the dup2 function. */
362 #undef HAVE_DUP2
364 /* Define if you have the execv function. */
365 #undef HAVE_EXECV
367 /* Define if you have the fdatasync function. */
368 #undef HAVE_FDATASYNC
370 /* Define if you have the flock function. */
371 #undef HAVE_FLOCK
373 /* Define if you have the fork function. */
374 #undef HAVE_FORK
376 /* Define if you have the forkpty function. */
377 #undef HAVE_FORKPTY
379 /* Define if you have the fpathconf function. */
380 #undef HAVE_FPATHCONF
382 /* Define if you have the fseek64 function. */
383 #undef HAVE_FSEEK64
385 /* Define if you have the fseeko function. */
386 #undef HAVE_FSEEKO
388 /* Define if you have the fstatvfs function. */
389 #undef HAVE_FSTATVFS
391 /* Define if you have the fsync function. */
392 #define HAVE_FSYNC
394 /* Define if you have the ftell64 function. */
395 #undef HAVE_FTELL64
397 /* Define if you have the ftello function. */
398 #undef HAVE_FTELLO
400 /* Define if you have the ftime function. */
401 #undef HAVE_FTIME
403 /* Define if you have the ftruncate function. */
404 #ifdef USE_GUSI
405 #define HAVE_FTRUNCATE
406 #endif
408 /* Define if you have the getcwd function. */
409 #define HAVE_GETCWD
411 /* Define if you have the getgroups function. */
412 #undef HAVE_GETGROUPS
414 /* Define if you have the gethostbyname function. */
415 #ifdef USE_GUSI
416 #define HAVE_GETHOSTBYNAME 1
417 #endif
419 /* Define if you have the getlogin function. */
420 #undef HAVE_GETLOGIN
422 /* Define if you have the getpeername function. */
423 #ifdef USE_GUSI
424 #define HAVE_GETPEERNAME
425 #endif
427 /* Define if you have the getpgrp function. */
428 #undef HAVE_GETPGRP
430 /* Define if you have the getpid function. */
431 #undef HAVE_GETPID
433 /* Define if you have the getpwent function. */
434 #undef HAVE_GETPWENT
436 /* Define if you have the gettimeofday function. */
437 #ifdef USE_GUSI
438 #define HAVE_GETTIMEOFDAY
439 #endif
441 /* Define if you have the getwd function. */
442 #undef HAVE_GETWD
444 /* Define if you have the hypot function. */
445 #ifndef __MC68K__
446 /* 68K hypot definition (and implementation) are unuseable
447 ** because they use 10-byte floats.
449 #define HAVE_HYPOT
450 #endif
452 /* Define if you have the kill function. */
453 #undef HAVE_KILL
455 /* Define if you have the link function. */
456 #undef HAVE_LINK
458 /* Define if you have the lstat function. */
459 #undef HAVE_LSTAT
461 /* Define if you have the memmove function. */
462 #define HAVE_MEMMOVE
464 /* Define if you have the mkfifo function. */
465 #undef HAVE_MKFIFO
467 /* Define if you have the mktime function. */
468 #define HAVE_MKTIME
470 /* Define if you have the mremap function. */
471 #undef HAVE_MREMAP
473 /* Define if you have the nice function. */
474 #undef HAVE_NICE
476 /* Define if you have the openpty function. */
477 #undef HAVE_OPENPTY
479 /* Define if you have the pathconf function. */
480 #undef HAVE_PATHCONF
482 /* Define if you have the pause function. */
483 #undef HAVE_PAUSE
485 /* Define if you have the plock function. */
486 #undef HAVE_PLOCK
488 /* Define if you have the poll function. */
489 #undef HAVE_POLL
491 /* Define if you have the pthread_init function. */
492 #undef HAVE_PTHREAD_INIT
494 /* Define if you have the putenv function. */
495 #undef HAVE_PUTENV
497 /* Define if you have the readlink function. */
498 #undef HAVE_READLINK
500 /* Define if you have the select function. */
501 #ifdef USE_GUSI
502 #define HAVE_SELECT
503 #endif
505 /* Define if you have the setegid function. */
506 #undef HAVE_SETEGID
508 /* Define if you have the seteuid function. */
509 #undef HAVE_SETEUID
511 /* Define if you have the setgid function. */
512 #undef HAVE_SETGID
514 /* Define if you have the setlocale function. */
515 #undef HAVE_SETLOCALE
517 /* Define if you have the setpgid function. */
518 #undef HAVE_SETPGID
520 /* Define if you have the setpgrp function. */
521 #undef HAVE_SETPGRP
523 /* Define if you have the setregid function. */
524 #undef HAVE_SETREGID
526 /* Define if you have the setreuid function. */
527 #undef HAVE_SETREUID
529 /* Define if you have the setsid function. */
530 #undef HAVE_SETSID
532 /* Define if you have the setuid function. */
533 #undef HAVE_SETUID
535 /* Define if you have the setvbuf function. */
536 #define HAVE_SETVBUF
538 /* Define if you have the sigaction function. */
539 #undef HAVE_SIGACTION
541 /* Define if you have the siginterrupt function. */
542 #undef HAVE_SIGINTERRUPT
544 /* Define if you have the sigrelse function. */
545 #undef HAVE_SIGRELSE
547 /* Define if you have the statvfs function. */
548 #undef HAVE_STATVFS
550 /* Define if you have the strdup function. */
551 #undef HAVE_STRDUP
553 /* Define if you have the strerror function. */
554 #define HAVE_STRERROR
556 /* Define if you have the strftime function. */
557 #define HAVE_STRFTIME
559 /* Define if you have the strptime function. */
560 #undef HAVE_STRPTIME
562 /* Define if you have the symlink function. */
563 #undef HAVE_SYMLINK
565 /* Define if you have the sysconf function. */
566 #undef HAVE_SYSCONF
568 /* Define if you have the tcgetpgrp function. */
569 #undef HAVE_TCGETPGRP
571 /* Define if you have the tcsetpgrp function. */
572 #undef HAVE_TCSETPGRP
574 /* Define if you have the tempnam function. */
575 #undef HAVE_TEMPNAM
577 /* Define if you have the timegm function. */
578 #undef HAVE_TIMEGM
580 /* Define if you have the times function. */
581 #undef HAVE_TIMES
583 /* Define if you have the tmpfile function. */
584 #define HAVE_TMPFILE
586 /* Define if you have the tmpnam function. */
587 #define HAVE_TMPNAM
589 /* Define if you have the tmpnam_r function. */
590 #undef HAVE_TMPNAM_R
592 /* Define if you have the truncate function. */
593 #define HAVE_TRUNCATE
595 /* Define if you have the uname function. */
596 #undef HAVE_UNAME
598 /* Define if you have the waitpid function. */
599 #undef HAVE_WAITPID
601 /* Define if you have the <db.h> header file. */
602 #undef HAVE_DB_H
604 /* Define if you have the <db1/ndbm.h> header file. */
605 #undef HAVE_DB1_NDBM_H
607 /* Define if you have the <db_185.h> header file. */
608 #undef HAVE_DB_185_H
610 /* Define if you have the <dirent.h> header file. */
611 #ifdef USE_GUSI
612 #define HAVE_DIRENT_H
613 #endif
615 /* Define if you have the <dlfcn.h> header file. */
616 #undef HAVE_DLFCN_H
618 /* Define if you have the <fcntl.h> header file. */
619 #define HAVE_FCNTL_H
621 /* Define if you have the <gdbm/ndbm.h> header file. */
622 #undef HAVE_GDBM_NDBM_H
624 /* Define if you have the <libutil.h> header file. */
625 #undef HAVE_LIBUTIL_H
627 /* Define if you have the <limits.h> header file. */
628 #define HAVE_LIMITS_H
630 /* Define if you have the <locale.h> header file. */
631 #define HAVE_LOCALE_H
633 /* Define if you have the <ncurses.h> header file. */
634 #undef HAVE_NCURSES_H
636 /* Define if you have the <ndbm.h> header file. */
637 #undef HAVE_NDBM_H
639 /* Define if you have the <ndir.h> header file. */
640 #undef HAVE_NDIR_H
642 /* Define if you have the <poll.h> header file. */
643 #undef HAVE_POLL_H
645 /* Define if you have the <pthread.h> header file. */
646 #ifdef USE_GUSI2
647 #define HAVE_PTHREAD_H
648 #endif
650 /* Define if you have the <pty.h> header file. */
651 #undef HAVE_PTY_H
653 /* Define if you have the <signal.h> header file. */
654 #define HAVE_SIGNAL_H
656 /* Define if you have the <stdarg.h> header file. */
657 #define HAVE_STDARG_H
659 /* Define if you have the <stddef.h> header file. */
660 #define HAVE_STDDEF_H
662 /* Define if you have the <stdlib.h> header file. */
663 #define HAVE_STDLIB_H
665 /* Define if you have the <sys/audioio.h> header file. */
666 #undef HAVE_SYS_AUDIOIO_H
668 /* Define if you have the <sys/dir.h> header file. */
669 #undef HAVE_SYS_DIR_H
671 /* Define if you have the <sys/file.h> header file. */
672 #undef HAVE_SYS_FILE_H
674 /* Define if you have the <sys/lock.h> header file. */
675 #undef HAVE_SYS_LOCK_H
677 /* Define if you have the <sys/modem.h> header file. */
678 #undef HAVE_SYS_MODEM_H
680 /* Define if you have the <sys/ndir.h> header file. */
681 #undef HAVE_SYS_NDIR_H
683 /* Define if you have the <sys/param.h> header file. */
684 #undef HAVE_SYS_PARAM_H
686 /* Define if you have the <sys/select.h> header file. */
687 #undef HAVE_SYS_SELECT_H
689 /* Define if you have the <sys/socket.h> header file. */
690 #ifdef USE_GUSI
691 #define HAVE_SYS_SOCKET_H
692 #endif
694 /* Define if you have the <sys/time.h> header file. */
695 #ifdef USE_GUSI
696 #define HAVE_SYS_TIME_H
697 #endif
699 /* Define if you have the <sys/times.h> header file. */
700 #undef HAVE_SYS_TIMES_H
702 /* Define if you have the <sys/un.h> header file. */
703 #undef HAVE_SYS_UN_H
705 /* Define if you have the <sys/utsname.h> header file. */
706 #undef HAVE_SYS_UTSNAME_H
708 /* Define if you have the <sys/wait.h> header file. */
709 #undef HAVE_SYS_WAIT_H
711 /* Define if you have the <termios.h> header file. */
712 #undef HAVE_TERMIOS_H
714 /* Define if you have the <thread.h> header file. */
715 #undef HAVE_THREAD_H
717 /* Define if you have the <unistd.h> header file. */
718 #define HAVE_UNISTD_H
720 /* Define if you have the <utime.h> header file. */
721 #define HAVE_UTIME_H
723 /* Define if you have the dl library (-ldl). */
724 #undef HAVE_LIBDL
726 /* Define if you have the dld library (-ldld). */
727 #undef HAVE_LIBDLD
729 /* Define if you have the ieee library (-lieee). */
730 #undef HAVE_LIBIEEE
732 #ifdef __CYGWIN__
733 #ifdef USE_DL_IMPORT
734 #define DL_IMPORT(RTYPE) __declspec(dllimport) RTYPE
735 #define DL_EXPORT(RTYPE) __declspec(dllexport) RTYPE
736 #else
737 #define DL_IMPORT(RTYPE) __declspec(dllexport) RTYPE
738 #define DL_EXPORT(RTYPE) __declspec(dllexport) RTYPE
739 #endif
740 #endif