| Andrew MacIntyre | 41d97d6 | 2002-02-17 05:23:30 +0000 | [diff] [blame] | 1 | #ifndef Py_CONFIG_H | 
|  | 2 | #define Py_CONFIG_H | 
|  | 3 |  | 
|  | 4 | /* | 
|  | 5 | config.h. | 
|  | 6 | At some time in the past, generated automatically by configure. | 
|  | 7 | Maintained manually for better results. | 
|  | 8 | */ | 
|  | 9 |  | 
|  | 10 | #define PLATFORM	"os2emx" | 
|  | 11 | #define COMPILER	"[EMX GCC " __VERSION__ "]" | 
|  | 12 | #define PYOS_OS2 | 
|  | 13 | #define PYCC_GCC | 
|  | 14 | #define PREFIX		"/usr" | 
|  | 15 |  | 
|  | 16 | /* Debugging */ | 
|  | 17 | #ifndef Py_DEBUG | 
|  | 18 | /*#define Py_DEBUG 1*/ | 
|  | 19 | #endif | 
|  | 20 |  | 
|  | 21 | /* so that emx socket headers will define IP V4 socket types */ | 
|  | 22 | #define TCPIPV4 | 
|  | 23 |  | 
|  | 24 | /* Use OS/2 flavour of threads */ | 
|  | 25 | #define WITH_THREAD | 
|  | 26 | #define OS2_THREADS | 
|  | 27 |  | 
|  | 28 | /* We want sockets */ | 
|  | 29 | #define USE_SOCKET | 
|  | 30 | #define socklen_t int | 
|  | 31 |  | 
|  | 32 | /* enable the GC module */ | 
|  | 33 | #define WITH_CYCLE_GC	1 | 
|  | 34 |  | 
|  | 35 | /* Unicode related */ | 
|  | 36 | #define Py_USING_UNICODE | 
|  | 37 | #define PY_UNICODE_TYPE    wchar_t | 
|  | 38 | #define Py_UNICODE_SIZE SIZEOF_SHORT | 
|  | 39 |  | 
|  | 40 | /* enable the Python object allocator */ | 
|  | 41 | /*#define	WITH_PYMALLOC	1*/ | 
|  | 42 |  | 
|  | 43 | #define PYTHONPATH  ".;./Lib;./Lib/plat-" PLATFORM ";./Lib/lib-dynload;./Lib/site-packages" | 
|  | 44 |  | 
|  | 45 | #define HAVE_TTYNAME	1 | 
|  | 46 | #define HAVE_WAIT	1 | 
|  | 47 | #define HAVE_GETEGID    1 | 
|  | 48 | #define HAVE_GETEUID    1 | 
|  | 49 | #define HAVE_GETGID     1 | 
|  | 50 | #define HAVE_GETPPID    1 | 
|  | 51 | #define HAVE_GETUID     1 | 
|  | 52 | #define HAVE_OPENDIR    1 | 
|  | 53 | #define HAVE_PIPE       1 | 
|  | 54 | #define HAVE_POPEN      1 | 
|  | 55 | #define HAVE_SYSTEM	1 | 
|  | 56 | #define HAVE_TTYNAME	1 | 
|  | 57 | #define HAVE_DYNAMIC_LOADING	1 | 
|  | 58 |  | 
|  | 59 | /* if port of GDBM installed, it includes NDBM emulation */ | 
|  | 60 | #define HAVE_NDBM_H	1 | 
|  | 61 |  | 
|  | 62 | /* need this for spawnv code in posixmodule (cloned from WIN32 def'n) */ | 
|  | 63 | typedef long intptr_t; | 
|  | 64 |  | 
|  | 65 | /* we don't have tm_zone but do have the external array | 
|  | 66 | tzname.  */ | 
|  | 67 | #define HAVE_TZNAME 1 | 
|  | 68 |  | 
|  | 69 | /* Define as the return type of signal handlers (int or void).  */ | 
|  | 70 | #define RETSIGTYPE void | 
|  | 71 |  | 
|  | 72 | /* Define if you have the ANSI C header files.  */ | 
|  | 73 | #define STDC_HEADERS 1 | 
|  | 74 |  | 
|  | 75 | /* Define if you can safely include both <sys/time.h> and <time.h>.  */ | 
|  | 76 | #define TIME_WITH_SYS_TIME 1 | 
|  | 77 |  | 
|  | 78 | /* Used for BeOS configuration */ | 
|  | 79 | /* #undef DL_EXPORT_HEADER */ | 
|  | 80 | #ifdef DL_EXPORT_HEADER | 
|  | 81 | #include DL_EXPORT_HEADER | 
|  | 82 | #endif | 
|  | 83 |  | 
|  | 84 | /* Define this if you have the type long long */ | 
|  | 85 | #define HAVE_LONG_LONG 1 | 
|  | 86 |  | 
|  | 87 | /* Define if your compiler supports function prototypes */ | 
|  | 88 | #define HAVE_PROTOTYPES 1 | 
|  | 89 |  | 
|  | 90 | /* Define if your compiler supports variable length function prototypes | 
|  | 91 | (e.g. void fprintf(FILE *, char *, ...);) *and* <stdarg.h> */ | 
|  | 92 | #define HAVE_STDARG_PROTOTYPES 1 | 
|  | 93 |  | 
|  | 94 | /* Define if malloc(0) returns a NULL pointer */ | 
|  | 95 | #define MALLOC_ZERO_RETURNS_NULL 1 | 
|  | 96 |  | 
|  | 97 | /* Define to force use of thread-safe errno, h_errno, and other functions */ | 
|  | 98 | #define _REENTRANT 1 | 
|  | 99 |  | 
|  | 100 | /* Define if  you can safely include both <sys/select.h> and <sys/time.h> | 
|  | 101 | (which you can't on SCO ODT 3.0). */ | 
|  | 102 | #define SYS_SELECT_WITH_SYS_TIME 1 | 
|  | 103 |  | 
|  | 104 | /* The number of bytes in an off_t. */ | 
|  | 105 | #define SIZEOF_OFF_T 4 | 
|  | 106 |  | 
|  | 107 | /* The number of bytes in an time_t. */ | 
|  | 108 | #define SIZEOF_TIME_T 4 | 
|  | 109 |  | 
|  | 110 | /* The number of bytes in a short.  */ | 
|  | 111 | #define SIZEOF_SHORT 2 | 
|  | 112 |  | 
|  | 113 | /* The number of bytes in a int.  */ | 
|  | 114 | #define SIZEOF_INT 4 | 
|  | 115 |  | 
|  | 116 | /* The number of bytes in a long.  */ | 
|  | 117 | #define SIZEOF_LONG 4 | 
|  | 118 |  | 
|  | 119 | /* The number of bytes in a long long.  */ | 
|  | 120 | #define SIZEOF_LONG_LONG 8 | 
|  | 121 |  | 
|  | 122 | /* The number of bytes in a void *.  */ | 
|  | 123 | #define SIZEOF_VOID_P 4 | 
|  | 124 |  | 
|  | 125 | /* Define if you have the alarm function.  */ | 
|  | 126 | #define HAVE_ALARM 1 | 
|  | 127 |  | 
|  | 128 | /* Define if you have the clock function.  */ | 
|  | 129 | #define HAVE_CLOCK 1 | 
|  | 130 |  | 
|  | 131 | /* Define if you have the dup2 function.  */ | 
|  | 132 | #define HAVE_DUP2 1 | 
|  | 133 |  | 
|  | 134 | /* Define if you have the execv function.  */ | 
|  | 135 | #define HAVE_EXECV 1 | 
|  | 136 |  | 
|  | 137 | /* Define if you have the spawnv function.  */ | 
|  | 138 | #define HAVE_SPAWNV 1 | 
|  | 139 |  | 
|  | 140 | /* Define if you have the flock function.  */ | 
|  | 141 | #define HAVE_FLOCK 1 | 
|  | 142 |  | 
|  | 143 | /* Define if you have the fork function.  */ | 
|  | 144 | #define HAVE_FORK 1 | 
|  | 145 |  | 
|  | 146 | /* Define if you have the fsync function.  */ | 
|  | 147 | #define HAVE_FSYNC 1 | 
|  | 148 |  | 
|  | 149 | /* Define if you have the ftime function.  */ | 
|  | 150 | #define HAVE_FTIME 1 | 
|  | 151 |  | 
|  | 152 | /* Define if you have the ftruncate function.  */ | 
|  | 153 | #define HAVE_FTRUNCATE 1 | 
|  | 154 |  | 
|  | 155 | /* Define if you have the getcwd function.  */ | 
|  | 156 | #define HAVE_GETCWD 1 | 
|  | 157 |  | 
|  | 158 | /* Define if you have the getpeername function.  */ | 
|  | 159 | #define HAVE_GETPEERNAME 1 | 
|  | 160 |  | 
|  | 161 | /* Define if you have the getpgrp function.  */ | 
|  | 162 | #define HAVE_GETPGRP 1 | 
|  | 163 |  | 
|  | 164 | /* Define if you have the getpid function.  */ | 
|  | 165 | #define HAVE_GETPID 1 | 
|  | 166 |  | 
|  | 167 | /* Define if you have the getpwent function.  */ | 
|  | 168 | #define HAVE_GETPWENT 1 | 
|  | 169 |  | 
|  | 170 | /* Define if you have the gettimeofday function.  */ | 
|  | 171 | #define HAVE_GETTIMEOFDAY 1 | 
|  | 172 |  | 
|  | 173 | /* Define if you have the getwd function.  */ | 
|  | 174 | #define HAVE_GETWD 1 | 
|  | 175 |  | 
|  | 176 | /* Define if you have the hypot function.  */ | 
|  | 177 | #define HAVE_HYPOT 1 | 
|  | 178 |  | 
|  | 179 | /* Define if you have the kill function.  */ | 
|  | 180 | #define HAVE_KILL 1 | 
|  | 181 |  | 
|  | 182 | /* Define if you have the memmove function.  */ | 
|  | 183 | #define HAVE_MEMMOVE 1 | 
|  | 184 |  | 
|  | 185 | /* Define if you have the mktime function.  */ | 
|  | 186 | #define HAVE_MKTIME 1 | 
|  | 187 |  | 
|  | 188 | /* Define if you have the pause function.  */ | 
|  | 189 | #define HAVE_PAUSE 1 | 
|  | 190 |  | 
|  | 191 | /* Define if you have the putenv function.  */ | 
|  | 192 | #define HAVE_PUTENV 1 | 
|  | 193 |  | 
|  | 194 | /* Define if you have the select function.  */ | 
|  | 195 | #define HAVE_SELECT 1 | 
|  | 196 |  | 
|  | 197 | /* Define if you have the setgid function.  */ | 
|  | 198 | #define HAVE_SETGID 1 | 
|  | 199 |  | 
|  | 200 | /* Define if you have the setlocale function.  */ | 
|  | 201 | #define HAVE_SETLOCALE 1 | 
|  | 202 |  | 
|  | 203 | /* Define if you have the setpgid function.  */ | 
|  | 204 | #define HAVE_SETPGID 1 | 
|  | 205 |  | 
|  | 206 | /* Define if you have the setuid function.  */ | 
|  | 207 | #define HAVE_SETUID 1 | 
|  | 208 |  | 
|  | 209 | /* Define if you have the setvbuf function.  */ | 
|  | 210 | #define HAVE_SETVBUF 1 | 
|  | 211 |  | 
|  | 212 | /* Define if you have the sigaction function.  */ | 
|  | 213 | #define HAVE_SIGACTION 1 | 
|  | 214 |  | 
|  | 215 | /* Define if you have the strdup function.  */ | 
|  | 216 | #define HAVE_STRDUP 1 | 
|  | 217 |  | 
|  | 218 | /* Define if you have the strerror function.  */ | 
|  | 219 | #define HAVE_STRERROR 1 | 
|  | 220 |  | 
|  | 221 | /* Define if you have the strftime function.  */ | 
|  | 222 | #define HAVE_STRFTIME 1 | 
|  | 223 |  | 
|  | 224 | /* Define if you have the strptime function.  */ | 
|  | 225 | #define HAVE_STRPTIME 1 | 
|  | 226 |  | 
|  | 227 | /* Define if you have the tcgetpgrp function.  */ | 
|  | 228 | #define HAVE_TCGETPGRP 1 | 
|  | 229 |  | 
|  | 230 | /* Define if you have the tcsetpgrp function.  */ | 
|  | 231 | #define HAVE_TCSETPGRP 1 | 
|  | 232 |  | 
|  | 233 | /* Define if you have the times function.  */ | 
|  | 234 | #define HAVE_TIMES 1 | 
|  | 235 |  | 
|  | 236 | /* Define if you have the truncate function.  */ | 
|  | 237 | #define HAVE_TRUNCATE 1 | 
|  | 238 |  | 
|  | 239 | /* Define if you have the uname function.  */ | 
|  | 240 | #define HAVE_UNAME 1 | 
|  | 241 |  | 
|  | 242 | /* Define if you have the waitpid function.  */ | 
|  | 243 | #define HAVE_WAITPID 1 | 
|  | 244 |  | 
|  | 245 | /* Define if you have the <dirent.h> header file.  */ | 
|  | 246 | #define HAVE_DIRENT_H 1 | 
|  | 247 |  | 
|  | 248 | /* Define if you have the <fcntl.h> header file.  */ | 
|  | 249 | #define HAVE_FCNTL_H 1 | 
|  | 250 |  | 
|  | 251 | /* Define if you have the <limits.h> header file.  */ | 
|  | 252 | #define HAVE_LIMITS_H 1 | 
|  | 253 |  | 
|  | 254 | /* Define if you have the <locale.h> header file.  */ | 
|  | 255 | #define HAVE_LOCALE_H 1 | 
|  | 256 |  | 
|  | 257 | /* Define if you have the <ncurses.h> header file.  */ | 
|  | 258 | #define HAVE_NCURSES_H 1 | 
|  | 259 |  | 
|  | 260 | /* Define if you have the <signal.h> header file.  */ | 
|  | 261 | #define HAVE_SIGNAL_H 1 | 
|  | 262 |  | 
|  | 263 | /* Define if you have the <stdarg.h> header file.  */ | 
|  | 264 | #define HAVE_STDARG_H 1 | 
|  | 265 |  | 
|  | 266 | /* Define if you have the <stddef.h> header file.  */ | 
|  | 267 | #define HAVE_STDDEF_H 1 | 
|  | 268 |  | 
|  | 269 | /* Define if you have the <stdlib.h> header file.  */ | 
|  | 270 | #define HAVE_STDLIB_H 1 | 
|  | 271 |  | 
|  | 272 | /* Define if you have the <sys/file.h> header file.  */ | 
|  | 273 | #define HAVE_SYS_FILE_H 1 | 
|  | 274 |  | 
|  | 275 | /* Define if you have the <sys/param.h> header file.  */ | 
|  | 276 | #define HAVE_SYS_PARAM_H 1 | 
|  | 277 |  | 
|  | 278 | /* Define if you have the <sys/select.h> header file.  */ | 
|  | 279 | #define HAVE_SYS_SELECT_H 1 | 
|  | 280 |  | 
|  | 281 | /* Define if you have the <sys/time.h> header file.  */ | 
|  | 282 | #define HAVE_SYS_TIME_H 1 | 
|  | 283 |  | 
|  | 284 | /* Define if you have the <sys/times.h> header file.  */ | 
|  | 285 | #define HAVE_SYS_TIMES_H 1 | 
|  | 286 |  | 
|  | 287 | /* Define if you have the <sys/un.h> header file.  */ | 
|  | 288 | #define HAVE_SYS_UN_H 1 | 
|  | 289 |  | 
|  | 290 | /* Define if you have the <sys/utsname.h> header file.  */ | 
|  | 291 | #define HAVE_SYS_UTSNAME_H 1 | 
|  | 292 |  | 
|  | 293 | /* Define if you have the <sys/wait.h> header file.  */ | 
|  | 294 | #define HAVE_SYS_WAIT_H 1 | 
|  | 295 |  | 
|  | 296 | /* Define if you have the <unistd.h> header file.  */ | 
|  | 297 | #define HAVE_UNISTD_H 1 | 
|  | 298 |  | 
|  | 299 | /* Define if you have the <utime.h> header file.  */ | 
|  | 300 | #define HAVE_UTIME_H 1 | 
|  | 301 |  | 
|  | 302 | /* EMX has an snprintf() */ | 
|  | 303 | #define HAVE_SNPRINTF | 
|  | 304 |  | 
|  | 305 | #endif /* !Py_CONFIG_H */ | 
|  | 306 |  |