blob: afe79e48b7807e75f71e2a8649b42b584699d509 [file] [log] [blame]
Andrew MacIntyre41d97d62002-02-17 05:23:30 +00001#ifndef Py_CONFIG_H
2#define Py_CONFIG_H
3
Andrew MacIntyred4c9b162003-04-21 14:28:01 +00004/* config.h.
5 * At some time in the past, generated automatically by/from configure.
6 * now maintained manually.
7 */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +00008
Andrew MacIntyred4c9b162003-04-21 14:28:01 +00009/* build environment */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +000010#define PLATFORM "os2emx"
11#define COMPILER "[EMX GCC " __VERSION__ "]"
Andrew MacIntyred4c9b162003-04-21 14:28:01 +000012#define PYOS_OS2 1
13#define PYCC_GCC 1
14
15/* default location(s) */
16#ifndef PREFIX
17#define PREFIX ""
18#endif
19#ifndef PYTHONPATH
20#define PYTHONPATH "./Lib;./Lib/plat-" PLATFORM \
21 ";./Lib/lib-dynload;./Lib/site-packages"
22#endif
Andrew MacIntyre41d97d62002-02-17 05:23:30 +000023
24/* Debugging */
25#ifndef Py_DEBUG
26/*#define Py_DEBUG 1*/
27#endif
28
Andrew MacIntyre4ee893f2003-07-13 13:41:59 +000029/* if building an extension or wrapper executable,
30 * mark Python API symbols "extern" so that symbols
31 * imported from the Python core DLL aren't duplicated.
32 */
33#ifdef Py_BUILD_CORE
Andrew MacIntyrebac1ea92003-07-16 13:31:11 +000034# define PyAPI_FUNC(RTYPE) RTYPE
Andrew MacIntyre4ee893f2003-07-13 13:41:59 +000035#else
Andrew MacIntyrebac1ea92003-07-16 13:31:11 +000036# define PyAPI_FUNC(RTYPE) extern RTYPE
Andrew MacIntyre4ee893f2003-07-13 13:41:59 +000037#endif
Andrew MacIntyrebac1ea92003-07-16 13:31:11 +000038#define PyAPI_DATA(RTYPE) extern RTYPE
39#define PyMODINIT_FUNC void
Andrew MacIntyre4ee893f2003-07-13 13:41:59 +000040
Andrew MacIntyre41d97d62002-02-17 05:23:30 +000041/* Use OS/2 flavour of threads */
Andrew MacIntyred4c9b162003-04-21 14:28:01 +000042#define WITH_THREAD 1
43#define OS2_THREADS 1
Andrew MacIntyree52aa5c2002-12-31 11:24:43 +000044
Andrew MacIntyre41d97d62002-02-17 05:23:30 +000045/* We want sockets */
Andrew MacIntyred4c9b162003-04-21 14:28:01 +000046#define TCPIPV4 1
47#define USE_SOCKET 1
48#define socklen_t int
49
50/* enable the Python object allocator */
51#define WITH_PYMALLOC 1
Andrew MacIntyre41d97d62002-02-17 05:23:30 +000052
53/* enable the GC module */
54#define WITH_CYCLE_GC 1
55
Martin v. Löwis2befa482002-06-09 13:41:37 +000056/* Define if you want documentation strings in extension modules */
57#define WITH_DOC_STRINGS 1
58
Andrew MacIntyre41d97d62002-02-17 05:23:30 +000059/* Unicode related */
Andrew MacIntyred4c9b162003-04-21 14:28:01 +000060#define Py_USING_UNICODE 1
61#define PY_UNICODE_TYPE wchar_t
Andrew MacIntyre41d97d62002-02-17 05:23:30 +000062#define Py_UNICODE_SIZE SIZEOF_SHORT
63
Andrew MacIntyred4c9b162003-04-21 14:28:01 +000064/* system capabilities */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +000065#define HAVE_TTYNAME 1
66#define HAVE_WAIT 1
67#define HAVE_GETEGID 1
68#define HAVE_GETEUID 1
69#define HAVE_GETGID 1
70#define HAVE_GETPPID 1
71#define HAVE_GETUID 1
72#define HAVE_OPENDIR 1
73#define HAVE_PIPE 1
74#define HAVE_POPEN 1
75#define HAVE_SYSTEM 1
76#define HAVE_TTYNAME 1
77#define HAVE_DYNAMIC_LOADING 1
78
79/* if port of GDBM installed, it includes NDBM emulation */
Andrew MacIntyred4c9b162003-04-21 14:28:01 +000080#define HAVE_NDBM_H 1
Andrew MacIntyre41d97d62002-02-17 05:23:30 +000081
82/* need this for spawnv code in posixmodule (cloned from WIN32 def'n) */
83typedef long intptr_t;
84
Andrew MacIntyred4c9b162003-04-21 14:28:01 +000085/* we don't have tm_zone but do have the external array tzname */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +000086#define HAVE_TZNAME 1
87
Andrew MacIntyred4c9b162003-04-21 14:28:01 +000088/* Define as the return type of signal handlers (int or void). */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +000089#define RETSIGTYPE void
90
Andrew MacIntyred4c9b162003-04-21 14:28:01 +000091/* Define if you have the ANSI C header files. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +000092#define STDC_HEADERS 1
93
Andrew MacIntyred4c9b162003-04-21 14:28:01 +000094/* Define if you can safely include both <sys/time.h> and <time.h>. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +000095#define TIME_WITH_SYS_TIME 1
96
Andrew MacIntyred4c9b162003-04-21 14:28:01 +000097/* Define this if you have the type long long. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +000098#define HAVE_LONG_LONG 1
99
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000100/* Define if your compiler supports function prototypes. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000101#define HAVE_PROTOTYPES 1
102
103/* Define if your compiler supports variable length function prototypes
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000104 * (e.g. void fprintf(FILE *, char *, ...);) *and* <stdarg.h>.
105 */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000106#define HAVE_STDARG_PROTOTYPES 1
107
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000108/* Define if malloc(0) returns a NULL pointer. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000109#define MALLOC_ZERO_RETURNS_NULL 1
110
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000111/* Define to force use of thread-safe errno, h_errno, and other functions. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000112#define _REENTRANT 1
113
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000114/* Define if you can safely include both <sys/select.h> and <sys/time.h>
115 * (which you can't on SCO ODT 3.0).
116 */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000117#define SYS_SELECT_WITH_SYS_TIME 1
118
119/* The number of bytes in an off_t. */
120#define SIZEOF_OFF_T 4
121
122/* The number of bytes in an time_t. */
123#define SIZEOF_TIME_T 4
124
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000125/* The number of bytes in a short. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000126#define SIZEOF_SHORT 2
127
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000128/* The number of bytes in a int. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000129#define SIZEOF_INT 4
130
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000131/* The number of bytes in a long. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000132#define SIZEOF_LONG 4
133
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000134/* The number of bytes in a long long. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000135#define SIZEOF_LONG_LONG 8
136
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000137/* The number of bytes in a void *. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000138#define SIZEOF_VOID_P 4
139
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000140/* Define if you have the alarm function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000141#define HAVE_ALARM 1
142
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000143/* Define if you have the clock function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000144#define HAVE_CLOCK 1
145
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000146/* Define if you have the dup2 function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000147#define HAVE_DUP2 1
148
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000149/* Define if you have the execv function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000150#define HAVE_EXECV 1
151
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000152/* Define if you have the spawnv function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000153#define HAVE_SPAWNV 1
154
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000155/* Define if you have the flock function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000156#define HAVE_FLOCK 1
157
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000158/* Define if you have the fork function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000159#define HAVE_FORK 1
160
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000161/* Define if you have the fsync function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000162#define HAVE_FSYNC 1
163
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000164/* Define if you have the ftime function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000165#define HAVE_FTIME 1
166
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000167/* Define if you have the ftruncate function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000168#define HAVE_FTRUNCATE 1
169
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000170/* Define if you have the getcwd function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000171#define HAVE_GETCWD 1
172
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000173/* Define if you have the getpeername function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000174#define HAVE_GETPEERNAME 1
175
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000176/* Define if you have the getpgrp function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000177#define HAVE_GETPGRP 1
178
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000179/* Define if you have the getpid function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000180#define HAVE_GETPID 1
181
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000182/* Define if you have the getpwent function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000183#define HAVE_GETPWENT 1
184
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000185/* Define if you have the gettimeofday function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000186#define HAVE_GETTIMEOFDAY 1
187
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000188/* Define if you have the getwd function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000189#define HAVE_GETWD 1
190
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000191/* Define if you have the hypot function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000192#define HAVE_HYPOT 1
193
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000194/* Define if you have the kill function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000195#define HAVE_KILL 1
196
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000197/* Define if you have the memmove function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000198#define HAVE_MEMMOVE 1
199
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000200/* Define if you have the mktime function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000201#define HAVE_MKTIME 1
202
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000203/* Define if you have the pause function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000204#define HAVE_PAUSE 1
205
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000206/* Define if you have the putenv function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000207#define HAVE_PUTENV 1
208
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000209/* Define if you have the select function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000210#define HAVE_SELECT 1
211
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000212/* Define if you have the setgid function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000213#define HAVE_SETGID 1
214
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000215/* Define if you have the setlocale function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000216#define HAVE_SETLOCALE 1
217
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000218/* Define if you have the setpgid function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000219#define HAVE_SETPGID 1
220
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000221/* Define if you have the setuid function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000222#define HAVE_SETUID 1
223
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000224/* Define if you have the setvbuf function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000225#define HAVE_SETVBUF 1
226
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000227/* Define if you have the sigaction function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000228#define HAVE_SIGACTION 1
229
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000230/* Define if you have the strerror function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000231#define HAVE_STRERROR 1
232
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000233/* Define if you have the strftime function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000234#define HAVE_STRFTIME 1
235
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000236/* Define if you have the tcgetpgrp function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000237#define HAVE_TCGETPGRP 1
238
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000239/* Define if you have the tcsetpgrp function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000240#define HAVE_TCSETPGRP 1
241
Andrew MacIntyre0dda4002003-06-09 08:16:59 +0000242/* Define if you have the tmpfile function. */
243#define HAVE_TMPFILE 1
244
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000245/* Define if you have the times function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000246#define HAVE_TIMES 1
247
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000248/* Define if you have the truncate function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000249#define HAVE_TRUNCATE 1
250
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000251/* Define if you have the uname function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000252#define HAVE_UNAME 1
253
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000254/* Define if you have the waitpid function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000255#define HAVE_WAITPID 1
256
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000257/* Define if you have the <dirent.h> header file. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000258#define HAVE_DIRENT_H 1
259
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000260/* Define if you have the <fcntl.h> header file. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000261#define HAVE_FCNTL_H 1
262
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000263/* Define if you have the <ncurses.h> header file. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000264#define HAVE_NCURSES_H 1
265
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000266/* Define if you have the <sys/file.h> header file. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000267#define HAVE_SYS_FILE_H 1
268
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000269/* Define if you have the <sys/param.h> header file. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000270#define HAVE_SYS_PARAM_H 1
271
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000272/* Define if you have the <sys/select.h> header file. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000273#define HAVE_SYS_SELECT_H 1
274
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000275/* Define if you have the <sys/time.h> header file. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000276#define HAVE_SYS_TIME_H 1
277
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000278/* Define if you have the <sys/times.h> header file. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000279#define HAVE_SYS_TIMES_H 1
280
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000281/* Define if you have the <sys/un.h> header file. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000282#define HAVE_SYS_UN_H 1
283
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000284/* Define if you have the <sys/utsname.h> header file. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000285#define HAVE_SYS_UTSNAME_H 1
286
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000287/* Define if you have the <sys/wait.h> header file. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000288#define HAVE_SYS_WAIT_H 1
289
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000290/* Define if you have the <unistd.h> header file. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000291#define HAVE_UNISTD_H 1
292
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000293/* Define if you have the <utime.h> header file. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000294#define HAVE_UTIME_H 1
295
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000296/* EMX has an snprintf(). */
297#define HAVE_SNPRINTF 1
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000298
299#endif /* !Py_CONFIG_H */
300