1 /***********************************************************
2 Copyright 1991-1997 by Stichting Mathematisch Centrum, Amsterdam,
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) */
39 #if defined(USE_GUSI1) || defined(USE_GUSI2)
44 #define DONT_HAVE_SYS_TYPES_H
45 #define DONT_HAVE_SYS_STAT_H
49 /* Define if on AIX 3.
50 System headers sometimes define this.
51 We just want to avoid a redefinition error message. */
56 /* Define if type char is unsigned and you are not using gcc. */
57 #ifndef __CHAR_UNSIGNED__
58 #undef __CHAR_UNSIGNED__
61 /* Define to empty if the keyword does not work. */
64 /* Define to `int' if <sys/types.h> doesn't define. */
67 /* Define if your struct tm has tm_zone. */
70 /* Define if you don't have tm_zone but do have the external array
74 /* Define if on MINIX. */
77 /* Define to `int' if <sys/types.h> doesn't define. */
80 /* Define to `long' if <sys/types.h> doesn't define. */
83 /* Define to `int' if <sys/types.h> doesn't define. */
86 /* Define if the system does not provide POSIX.1 features except
88 #undef _POSIX_1_SOURCE
90 /* Define if you need to in order for stat and other things to work. */
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. */
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. */
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 */
129 /* Define if you have the Mach cthreads package */
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. */
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 */
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" \
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 */
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
215 #undef MALLOC_ZERO_RETURNS_NULL
218 /* Define if you have POSIX threads */
220 #define _POSIX_THREADS
223 /* Define if you want to build an interpreter with many run-time checks */
226 /* Define to force use of thread-safe errno, h_errno, and other functions */
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. */
235 /* Define if i>>j for signed int i does not extend the sign bit
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. */
248 #define SIZEOF_PTHREAD_T 4
251 /* Define to `int' if <sys/types.h> doesn't define. */
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. */
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 */
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
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. */
290 /* Define if you want to compile in Python-specific mallocs */
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 */
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. */
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. */
340 /* Define if you have the alarm function. */
343 /* Define if you have the chown function. */
346 /* Define if you have clock. */
349 /* Define if you have the confstr function. */
352 /* Define if you have the ctermid function. */
355 /* Define if you have the ctermid_r function. */
356 #undef HAVE_CTERMID_R
358 /* Define if you have the dlopen function. */
361 /* Define if you have the dup2 function. */
364 /* Define if you have the execv function. */
367 /* Define if you have the fdatasync function. */
368 #undef HAVE_FDATASYNC
370 /* Define if you have the flock function. */
373 /* Define if you have the fork function. */
376 /* Define if you have the forkpty function. */
379 /* Define if you have the fpathconf function. */
380 #undef HAVE_FPATHCONF
382 /* Define if you have the fseek64 function. */
385 /* Define if you have the fseeko function. */
388 /* Define if you have the fstatvfs function. */
391 /* Define if you have the fsync function. */
394 /* Define if you have the ftell64 function. */
397 /* Define if you have the ftello function. */
400 /* Define if you have the ftime function. */
403 /* Define if you have the ftruncate function. */
405 #define HAVE_FTRUNCATE
408 /* Define if you have the getcwd function. */
411 /* Define if you have the getgroups function. */
412 #undef HAVE_GETGROUPS
414 /* Define if you have the gethostbyname function. */
416 #define HAVE_GETHOSTBYNAME 1
419 /* Define if you have the getlogin function. */
422 /* Define if you have the getpeername function. */
424 #define HAVE_GETPEERNAME
427 /* Define if you have the getpgrp function. */
430 /* Define if you have the getpid function. */
433 /* Define if you have the getpwent function. */
436 /* Define if you have the gettimeofday function. */
438 #define HAVE_GETTIMEOFDAY
441 /* Define if you have the getwd function. */
444 /* Define if you have the hypot function. */
446 /* 68K hypot definition (and implementation) are unuseable
447 ** because they use 10-byte floats.
452 /* Define if you have the kill function. */
455 /* Define if you have the link function. */
458 /* Define if you have the lstat function. */
461 /* Define if you have the memmove function. */
464 /* Define if you have the mkfifo function. */
467 /* Define if you have the mktime function. */
470 /* Define if you have the mremap function. */
473 /* Define if you have the nice function. */
476 /* Define if you have the openpty function. */
479 /* Define if you have the pathconf function. */
482 /* Define if you have the pause function. */
485 /* Define if you have the plock function. */
488 /* Define if you have the poll function. */
491 /* Define if you have the pthread_init function. */
492 #undef HAVE_PTHREAD_INIT
494 /* Define if you have the putenv function. */
497 /* Define if you have the readlink function. */
500 /* Define if you have the select function. */
505 /* Define if you have the setegid function. */
508 /* Define if you have the seteuid function. */
511 /* Define if you have the setgid function. */
514 /* Define if you have the setlocale function. */
515 #undef HAVE_SETLOCALE
517 /* Define if you have the setpgid function. */
520 /* Define if you have the setpgrp function. */
523 /* Define if you have the setregid function. */
526 /* Define if you have the setreuid function. */
529 /* Define if you have the setsid function. */
532 /* Define if you have the setuid function. */
535 /* Define if you have the setvbuf function. */
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. */
547 /* Define if you have the statvfs function. */
550 /* Define if you have the strdup function. */
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. */
562 /* Define if you have the symlink function. */
565 /* Define if you have the sysconf function. */
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. */
577 /* Define if you have the timegm function. */
580 /* Define if you have the times function. */
583 /* Define if you have the tmpfile function. */
586 /* Define if you have the tmpnam function. */
589 /* Define if you have the tmpnam_r function. */
592 /* Define if you have the truncate function. */
593 #define HAVE_TRUNCATE
595 /* Define if you have the uname function. */
598 /* Define if you have the waitpid function. */
601 /* Define if you have the <db.h> header file. */
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. */
610 /* Define if you have the <dirent.h> header file. */
612 #define HAVE_DIRENT_H
615 /* Define if you have the <dlfcn.h> header file. */
618 /* Define if you have the <fcntl.h> header file. */
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. */
639 /* Define if you have the <ndir.h> header file. */
642 /* Define if you have the <poll.h> header file. */
645 /* Define if you have the <pthread.h> header file. */
647 #define HAVE_PTHREAD_H
650 /* Define if you have the <pty.h> header file. */
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. */
691 #define HAVE_SYS_SOCKET_H
694 /* Define if you have the <sys/time.h> header file. */
696 #define HAVE_SYS_TIME_H
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. */
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. */
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. */
723 /* Define if you have the dl library (-ldl). */
726 /* Define if you have the dld library (-ldld). */
729 /* Define if you have the ieee library (-lieee). */
734 #define DL_IMPORT(RTYPE) __declspec(dllimport) RTYPE
735 #define DL_EXPORT(RTYPE) __declspec(dllexport) RTYPE
737 #define DL_IMPORT(RTYPE) __declspec(dllexport) RTYPE
738 #define DL_EXPORT(RTYPE) __declspec(dllexport) RTYPE