blob: ac043ebcd2df6885d3c0da413606de24c228b61f [file] [log] [blame]
Guido van Rossum87d5e701996-05-28 22:50:17 +00001#ifndef Py_CONFIG_H
2#define Py_CONFIG_H
Guido van Rossum87d5e701996-05-28 22:50:17 +00003
Tim Peters76f373d2001-07-26 21:34:59 +00004/* pyconfig.h. NOT Generated automatically by configure.
Guido van Rossum87d5e701996-05-28 22:50:17 +00005
6This is a manually maintained version used for the Watcom,
7Borland and and Microsoft Visual C++ compilers. It is a
8standard part of the Python distribution.
9
Guido van Rossum950a1261996-07-30 17:38:17 +000010WINDOWS DEFINES:
11The code specific to Windows should be wrapped around one of
12the following #defines
13
Guido van Rossumc66ae962000-05-08 14:14:48 +000014MS_WIN64 - Code specific to the MS Win64 API
Martin v. Löwis6238d2b2002-06-30 15:26:10 +000015MS_WIN32 - Code specific to the MS Win32 (and Win64) API (obsolete, this covers all supported APIs)
Guido van Rossum950a1261996-07-30 17:38:17 +000016MS_WINDOWS - Code specific to Windows, but all versions.
17MS_COREDLL - Code if the Python core is built as a DLL.
18
19Note that the old defines "NT" and "WIN32" are still supported, but
20will soon be dropped.
21
22Also note that neither "_M_IX86" or "_MSC_VER" should be used for
23any purpose other than "Windows Intel x86 specific" and "Microsoft
24compiler specific". Therefore, these should be very rare.
25
Guido van Rossum87d5e701996-05-28 22:50:17 +000026*/
27
Fred Drake91c4e2b2000-06-19 13:41:54 +000028
Guido van Rossum87d5e701996-05-28 22:50:17 +000029/*
30 Some systems require special declarations for data items imported
31 or exported from dynamic link libraries. Note that the definition
32 of DL_IMPORT covers both cases. Define USE_DL_IMPORT for the client
33 of a DLL. Define USE_DL_EXPORT when making a DLL.
34*/
35
36#include <io.h>
37#define HAVE_LIMITS_H
Tim Peters58e0a8c2001-05-14 22:32:33 +000038#define HAVE_SYS_UTIME_H
Guido van Rossum87d5e701996-05-28 22:50:17 +000039#define HAVE_HYPOT
Fred Drake832181e2001-07-17 20:35:59 +000040#define HAVE_TEMPNAM
41#define HAVE_TMPFILE
42#define HAVE_TMPNAM
Guido van Rossum87d5e701996-05-28 22:50:17 +000043#define DONT_HAVE_SIG_ALARM
44#define DONT_HAVE_SIG_PAUSE
Guido van Rossum1bc716f1996-06-28 19:12:06 +000045#define LONG_BIT 32
Guido van Rossum950a1261996-07-30 17:38:17 +000046#define PREFIX ""
47#define EXEC_PREFIX ""
Guido van Rossum87d5e701996-05-28 22:50:17 +000048
49/* Microsoft C defines _MSC_VER */
Guido van Rossumc66ae962000-05-08 14:14:48 +000050#ifdef _MSC_VER
51
52/* MSVC defines _WINxx to differentiate the windows platform types
53
54 Note that for compatibility reasons _WIN32 is defined on Win32
55 *and* on Win64. For the same reasons, in Python, MS_WIN32 is
56 defined on Win32 *and* Win64. Win32 only code must therefore be
57 guarded as follows:
58 #if defined(MS_WIN32) && !defined(MS_WIN64)
59*/
60#ifdef _WIN64
61#define MS_WIN64
62#endif
63#ifdef _WIN32
64#define NT /* NT is obsolete - please use MS_WIN32 instead */
65#define MS_WIN32
66#endif
Guido van Rossumc66ae962000-05-08 14:14:48 +000067#define MS_WINDOWS
68
69/* set the COMPILER */
70#ifdef MS_WIN64
71#ifdef _M_IX86
72#define COMPILER "[MSC 64 bit (Intel)]"
73#elif defined(_M_ALPHA)
74#define COMPILER "[MSC 64 bit (Alpha)]"
75#else
76#define COMPILER "[MSC 64 bit (Unknown)]"
77#endif
78#endif /* MS_WIN64 */
79
80#if defined(MS_WIN32) && !defined(MS_WIN64)
81#ifdef _M_IX86
82#define COMPILER "[MSC 32 bit (Intel)]"
83#elif defined(_M_ALPHA)
84#define COMPILER "[MSC 32 bit (Alpha)]"
85#else
86#define COMPILER "[MSC (Unknown)]"
87#endif
88#endif /* MS_WIN32 && !MS_WIN64 */
89
90#endif /* _MSC_VER */
Guido van Rossum87d5e701996-05-28 22:50:17 +000091
92#if defined(_MSC_VER) && _MSC_VER > 850
Guido van Rossum1bc716f1996-06-28 19:12:06 +000093/* Start of defines for MS_WIN32 using VC++ 2.0 and up */
Guido van Rossum950a1261996-07-30 17:38:17 +000094
Guido van Rossumeaf9b6c1996-08-22 00:06:59 +000095/* For NT the Python core is in a DLL by default. Test the
96standard macro MS_COREDLL to find out. If you have an exception
97you must define MS_NO_COREDLL (do not test this macro) */
98#ifndef MS_NO_COREDLL
99#define MS_COREDLL /* Python core is in a DLL */
Guido van Rossum950a1261996-07-30 17:38:17 +0000100#ifndef USE_DL_EXPORT
101#define USE_DL_IMPORT
102#endif /* !USE_DL_EXPORT */
Guido van Rossumeaf9b6c1996-08-22 00:06:59 +0000103#endif /* !MS_NO_COREDLL */
Guido van Rossum950a1261996-07-30 17:38:17 +0000104
Guido van Rossum52f49151998-04-11 02:31:30 +0000105#define PYTHONPATH ".\\DLLs;.\\lib;.\\lib\\plat-win;.\\lib\\lib-tk"
Guido van Rossum87d5e701996-05-28 22:50:17 +0000106typedef int pid_t;
Guido van Rossum1bc716f1996-06-28 19:12:06 +0000107#define WORD_BIT 32
Guido van Rossum87d5e701996-05-28 22:50:17 +0000108#pragma warning(disable:4113)
109#define hypot _hypot
110#include <stdio.h>
111#define HAVE_CLOCK
112#define HAVE_STRFTIME
Guido van Rossum9b499d21998-08-12 02:10:05 +0000113#define HAVE_STRERROR
Guido van Rossum87d5e701996-05-28 22:50:17 +0000114#define NT_THREADS
115#define WITH_THREAD
116#ifndef NETSCAPE_PI
117#define USE_SOCKET
Guido van Rossum87d5e701996-05-28 22:50:17 +0000118#endif
119#ifdef USE_DL_IMPORT
120#define DL_IMPORT(RTYPE) __declspec(dllimport) RTYPE
121#endif
122#ifdef USE_DL_EXPORT
123#define DL_IMPORT(RTYPE) __declspec(dllexport) RTYPE
Guido van Rossum9df827f1998-12-10 16:50:49 +0000124#define DL_EXPORT(RTYPE) __declspec(dllexport) RTYPE
Guido van Rossum87d5e701996-05-28 22:50:17 +0000125#endif
Guido van Rossum950a1261996-07-30 17:38:17 +0000126
Guido van Rossum3293b071998-08-25 16:07:15 +0000127#define HAVE_LONG_LONG 1
128#define LONG_LONG __int64
Guido van Rossum950a1261996-07-30 17:38:17 +0000129#endif /* _MSC_VER && > 850 */
Guido van Rossum87d5e701996-05-28 22:50:17 +0000130
Guido van Rossum87d5e701996-05-28 22:50:17 +0000131/* The Borland compiler defines __BORLANDC__ */
Guido van Rossumcf6c0ea1996-10-21 14:52:24 +0000132/* XXX These defines are likely incomplete, but should be easy to fix. */
Guido van Rossum87d5e701996-05-28 22:50:17 +0000133#ifdef __BORLANDC__
134#define COMPILER "[Borland]"
Guido van Rossum87d5e701996-05-28 22:50:17 +0000135#define HAVE_CLOCK
136#define HAVE_STRFTIME
Mark Hammondc756bdb2000-08-15 22:33:59 +0000137
138#ifdef _WIN32
139
140/* tested with BCC 5.5 (__BORLANDC__ >= 0x0550)
141 */
142#define NT /* NT is obsolete - please use MS_WIN32 instead */
143#define MS_WIN32
144#define MS_WINDOWS
145
146/* For NT the Python core is in a DLL by default. Test the
147standard macro MS_COREDLL to find out. If you have an exception
148you must define MS_NO_COREDLL (do not test this macro) */
149#ifndef MS_NO_COREDLL
150#define MS_COREDLL /* Python core is in a DLL */
151#ifndef USE_DL_EXPORT
152#define USE_DL_IMPORT
153#endif /* !USE_DL_EXPORT */
154#endif /* !MS_NO_COREDLL */
155
156#define PYTHONPATH ".\\DLLs;.\\lib;.\\lib\\plat-win;.\\lib\\lib-tk"
157typedef int pid_t;
158#define WORD_BIT 32
159#include <stdio.h>
160#define HAVE_STRERROR
161#define NT_THREADS
162#define WITH_THREAD
163#ifndef NETSCAPE_PI
164#define USE_SOCKET
165#endif
166/* BCC55 seems to understand __declspec(dllimport), it is used in its
167 own header files (winnt.h, ...) */
168#ifdef USE_DL_IMPORT
169#define DL_IMPORT(RTYPE) __declspec(dllimport) RTYPE
170#endif
171#ifdef USE_DL_EXPORT
172#define DL_IMPORT(RTYPE) __declspec(dllexport) RTYPE
173#define DL_EXPORT(RTYPE) __declspec(dllexport) RTYPE
174#endif
175
176#define HAVE_LONG_LONG 1
177#define LONG_LONG __int64
178
Tim Peters58e0a8c2001-05-14 22:32:33 +0000179#undef HAVE_SYS_UTIME_H
180#define HAVE_UTIME_H
181#define HAVE_DIRENT_H
182#define HAVE_CLOCK
Tim Peters7f00deb2001-04-21 03:20:47 +0000183
Mark Hammondc756bdb2000-08-15 22:33:59 +0000184#else /* !_WIN32 */
Guido van Rossum60427412000-11-13 17:29:30 +0000185#error "Only Win32 and later are supported"
Mark Hammondc756bdb2000-08-15 22:33:59 +0000186#endif /* !_WIN32 */
187
Guido van Rossum87d5e701996-05-28 22:50:17 +0000188#endif /* BORLANDC */
189
Mark Hammondc756bdb2000-08-15 22:33:59 +0000190/* egcs/gnu-win32 defines __GNUC__ and _WIN32 */
191#if defined(__GNUC__) && defined(_WIN32)
Tim Petersb26f3632002-03-22 06:32:32 +0000192/* XXX These defines are likely incomplete, but should be easy to fix.
Mark Hammondc756bdb2000-08-15 22:33:59 +0000193 They should be complete enough to build extension modules. */
194/* Suggested by Rene Liebscher <R.Liebscher@gmx.de> to avoid a GCC 2.91.*
195 bug that requires structure imports. More recent versions of the
196 compiler don't exhibit this bug.
197*/
198#if (__GNUC__==2) && (__GNUC_MINOR__<=91)
199#warning "Please use an up-to-date version of gcc! (>2.91 recommended)"
200#endif
201
202#define NT /* NT is obsolete - please use MS_WIN32 instead */
203#define MS_WIN32
204#define MS_WINDOWS
205
206/* For NT the Python core is in a DLL by default. Test the
207standard macro MS_COREDLL to find out. If you have an exception
208you must define MS_NO_COREDLL (do not test this macro) */
209#ifndef MS_NO_COREDLL
210#define MS_COREDLL /* Python core is in a DLL */
211#ifndef USE_DL_EXPORT
212#define USE_DL_IMPORT
213#endif /* !USE_DL_EXPORT */
214#endif /* !MS_NO_COREDLL */
215
216#define COMPILER "[gcc]"
217#define PYTHONPATH ".\\DLLs;.\\lib;.\\lib\\plat-win;.\\lib\\lib-tk"
218#define WORD_BIT 32
219#define hypot _hypot
220#include <stdio.h>
221#define HAVE_CLOCK
222#define HAVE_STRFTIME
223#define HAVE_STRERROR
224#define NT_THREADS
225#define WITH_THREAD
226#ifndef NETSCAPE_PI
227#define USE_SOCKET
228#endif
229#ifdef USE_DL_IMPORT
230#define DL_IMPORT(RTYPE) __declspec(dllimport) RTYPE
231#endif
232#ifdef USE_DL_EXPORT
233#define DL_IMPORT(RTYPE) __declspec(dllexport) RTYPE
234#define DL_EXPORT(RTYPE) __declspec(dllexport) RTYPE
235#endif
236
237#define HAVE_LONG_LONG 1
Tim Petersb26f3632002-03-22 06:32:32 +0000238#define LONG_LONG long long
Mark Hammondc756bdb2000-08-15 22:33:59 +0000239#endif /* GNUC */
240
241/* lcc-win32 defines __LCC__ */
242
243#if defined(__LCC__)
Tim Petersb26f3632002-03-22 06:32:32 +0000244/* XXX These defines are likely incomplete, but should be easy to fix.
Mark Hammondc756bdb2000-08-15 22:33:59 +0000245 They should be complete enough to build extension modules. */
246
247#define NT /* NT is obsolete - please use MS_WIN32 instead */
248#define MS_WIN32
249#define MS_WINDOWS
250
251/* For NT the Python core is in a DLL by default. Test the
252standard macro MS_COREDLL to find out. If you have an exception
253you must define MS_NO_COREDLL (do not test this macro) */
254#ifndef MS_NO_COREDLL
255#define MS_COREDLL /* Python core is in a DLL */
256#ifndef USE_DL_EXPORT
257#define USE_DL_IMPORT
258#endif /* !USE_DL_EXPORT */
259#endif /* !MS_NO_COREDLL */
260
261#define COMPILER "[lcc-win32]"
262#define PYTHONPATH ".\\DLLs;.\\lib;.\\lib\\plat-win;.\\lib\\lib-tk"
263typedef int pid_t;
264#define WORD_BIT 32
265#include <stdio.h>
266#define HAVE_CLOCK
267#define HAVE_STRFTIME
268#define HAVE_STRERROR
269#define NT_THREADS
270#define WITH_THREAD
271#ifndef NETSCAPE_PI
272#define USE_SOCKET
273#endif
274#ifdef USE_DL_IMPORT
275#define DL_IMPORT(RTYPE) __declspec(dllimport) RTYPE
276#endif
277#ifdef USE_DL_EXPORT
278#define DL_IMPORT(RTYPE) __declspec(dllexport) RTYPE
279#define DL_EXPORT(RTYPE) __declspec(dllexport) RTYPE
280#endif
281
282#define HAVE_LONG_LONG 1
283#define LONG_LONG __int64
284#endif /* LCC */
285
Guido van Rossum950a1261996-07-30 17:38:17 +0000286/* End of compilers - finish up */
287
Fredrik Lundh6947d0b2000-08-07 20:16:28 +0000288/* define some ANSI types that are not defined in earlier Win headers */
Guido van Rossum361b5832000-06-30 22:17:53 +0000289#if _MSC_VER >= 1200 /* This file only exists in VC 6.0 or higher */
Fred Drakea3f6e912000-06-29 20:44:47 +0000290#include <basetsd.h>
Guido van Rossum361b5832000-06-30 22:17:53 +0000291#endif
Fred Drakea3f6e912000-06-29 20:44:47 +0000292
Guido van Rossumc66ae962000-05-08 14:14:48 +0000293#if defined(MS_WIN64)
Guido van Rossumda5cc822000-05-10 13:25:32 +0000294/* maintain "win32" sys.platform for backward compatibility of Python code,
295 the Win64 API should be close enough to the Win32 API to make this
296 preferable */
Fred Drakea3f6e912000-06-29 20:44:47 +0000297# define PLATFORM "win32"
298# define SIZEOF_VOID_P 8
299# define SIZEOF_TIME_T 8
300# define SIZEOF_OFF_T 4
301# define SIZEOF_FPOS_T 8
302# define SIZEOF_HKEY 8
303/* configure.in defines HAVE_LARGEFILE_SUPPORT iff HAVE_LONG_LONG,
304 sizeof(off_t) > sizeof(long), and sizeof(LONG_LONG) >= sizeof(off_t).
305 On Win64 the second condition is not true, but if fpos_t replaces off_t
306 then this is true. The uses of HAVE_LARGEFILE_SUPPORT imply that Win64
307 should define this. */
308# define HAVE_LARGEFILE_SUPPORT
Guido van Rossumc66ae962000-05-08 14:14:48 +0000309#elif defined(MS_WIN32)
Fred Drakea3f6e912000-06-29 20:44:47 +0000310# define PLATFORM "win32"
Tim Peters6e13a562001-09-06 00:32:15 +0000311# define HAVE_LARGEFILE_SUPPORT
Fred Drakea3f6e912000-06-29 20:44:47 +0000312# ifdef _M_ALPHA
313# define SIZEOF_VOID_P 8
314# define SIZEOF_TIME_T 8
315# else
316# define SIZEOF_VOID_P 4
317# define SIZEOF_TIME_T 4
318# define SIZEOF_OFF_T 4
319# define SIZEOF_FPOS_T 8
320# define SIZEOF_HKEY 4
321# endif
Guido van Rossumc66ae962000-05-08 14:14:48 +0000322#endif
323
Guido van Rossum950a1261996-07-30 17:38:17 +0000324
Guido van Rossumf4aeb841998-02-19 20:59:23 +0000325#ifdef MS_WIN32
Guido van Rossumd3ab1011998-05-29 02:53:29 +0000326
Greg Wardff7b5622000-08-05 00:58:14 +0000327#if !defined(USE_DL_EXPORT) && defined(_MSC_VER)
328/* So nobody using MSVC needs to specify the .lib in their Makefile any
329 more (other compilers will still need to do so, but that's taken care
330 of by the Distutils, so it's not a problem). */
Guido van Rossum446f0331998-08-07 15:32:00 +0000331#ifdef _DEBUG
Tim Peters83a3f0c2001-12-21 22:06:12 +0000332#pragma comment(lib,"python23_d.lib")
Guido van Rossum446f0331998-08-07 15:32:00 +0000333#else
Tim Peters83a3f0c2001-12-21 22:06:12 +0000334#pragma comment(lib,"python23.lib")
Guido van Rossum446f0331998-08-07 15:32:00 +0000335#endif
Guido van Rossum1a87be11998-08-08 18:25:43 +0000336#endif /* USE_DL_EXPORT */
Guido van Rossum446f0331998-08-07 15:32:00 +0000337
Guido van Rossumbffd6832000-01-20 22:32:56 +0000338#ifdef _DEBUG
339#define Py_DEBUG
340#endif
341
Tim Peters208efe52001-06-26 22:40:47 +0000342#define SIZEOF_SHORT 2
Guido van Rossumd3ab1011998-05-29 02:53:29 +0000343#define SIZEOF_INT 4
344#define SIZEOF_LONG 4
Guido van Rossumb00d2521998-09-17 13:19:36 +0000345#define SIZEOF_LONG_LONG 8
Guido van Rossumd3ab1011998-05-29 02:53:29 +0000346
Guido van Rossumf4aeb841998-02-19 20:59:23 +0000347#endif
348
Guido van Rossum87d5e701996-05-28 22:50:17 +0000349/* Fairly standard from here! */
350
351/* Define if on AIX 3.
352 System headers sometimes define this.
353 We just want to avoid a redefinition error message. */
354#ifndef _ALL_SOURCE
355/* #undef _ALL_SOURCE */
356#endif
357
358/* Define to empty if the keyword does not work. */
359/* #define const */
360
361/* Define if you have dirent.h. */
362/* #define DIRENT 1 */
363
364/* Define to the type of elements in the array set by `getgroups'.
365 Usually this is either `int' or `gid_t'. */
366/* #undef GETGROUPS_T */
367
368/* Define to `int' if <sys/types.h> doesn't define. */
369/* #undef gid_t */
370
371/* Define if your struct tm has tm_zone. */
372/* #undef HAVE_TM_ZONE */
373
374/* Define if you don't have tm_zone but do have the external array
375 tzname. */
376#define HAVE_TZNAME
377
378/* Define if on MINIX. */
379/* #undef _MINIX */
380
381/* Define to `int' if <sys/types.h> doesn't define. */
382/* #undef mode_t */
383
384/* Define if you don't have dirent.h, but have ndir.h. */
385/* #undef NDIR */
386
387/* Define to `long' if <sys/types.h> doesn't define. */
388/* #undef off_t */
389
390/* Define to `int' if <sys/types.h> doesn't define. */
391/* #undef pid_t */
392
393/* Define if the system does not provide POSIX.1 features except
394 with this defined. */
395/* #undef _POSIX_1_SOURCE */
396
397/* Define if you need to in order for stat and other things to work. */
398/* #undef _POSIX_SOURCE */
399
400/* Define as the return type of signal handlers (int or void). */
401#define RETSIGTYPE void
402
403/* Define to `unsigned' if <sys/types.h> doesn't define. */
404/* #undef size_t */
405
Guido van Rossumdb575db2000-04-24 15:37:34 +0000406/* Define to `int' if <sys/types.h> doesn't define. */
Martin v. Löwis272cb402002-03-01 08:31:07 +0000407#if _MSC_VER + 0 >= 1300
408/* VC.NET typedefs socklen_t in ws2tcpip.h. */
409#else
Guido van Rossumdb575db2000-04-24 15:37:34 +0000410#define socklen_t int
Martin v. Löwis272cb402002-03-01 08:31:07 +0000411#endif
Guido van Rossumdb575db2000-04-24 15:37:34 +0000412
Guido van Rossum87d5e701996-05-28 22:50:17 +0000413/* Define if you have the ANSI C header files. */
414#define STDC_HEADERS 1
415
416/* Define if you don't have dirent.h, but have sys/dir.h. */
417/* #undef SYSDIR */
418
419/* Define if you don't have dirent.h, but have sys/ndir.h. */
420/* #undef SYSNDIR */
421
422/* Define if you can safely include both <sys/time.h> and <time.h>. */
423/* #undef TIME_WITH_SYS_TIME */
424
425/* Define if your <sys/time.h> declares struct tm. */
426/* #define TM_IN_SYS_TIME 1 */
427
428/* Define to `int' if <sys/types.h> doesn't define. */
429/* #undef uid_t */
430
431/* Define if the closedir function returns void instead of int. */
432/* #undef VOID_CLOSEDIR */
433
434/* Define if your <unistd.h> contains bad prototypes for exec*()
435 (as it does on SGI IRIX 4.x) */
436/* #undef BAD_EXEC_PROTOTYPES */
437
438/* Define if your compiler botches static forward declarations
439 (as it does on SCI ODT 3.0) */
440#define BAD_STATIC_FORWARD 1
441
442/* Define if getpgrp() must be called as getpgrp(0)
443 and (consequently) setpgrp() as setpgrp(0, 0). */
444/* #undef GETPGRP_HAVE_ARGS */
445
446/* Define this if your time.h defines altzone */
447/* #define HAVE_ALTZONE */
448
Guido van Rossumeaf9b6c1996-08-22 00:06:59 +0000449/* Define if you have the putenv function. */
Guido van Rossumeaf9b6c1996-08-22 00:06:59 +0000450#define HAVE_PUTENV
Guido van Rossumeaf9b6c1996-08-22 00:06:59 +0000451
Guido van Rossum87d5e701996-05-28 22:50:17 +0000452/* Define if your compiler supports function prototypes */
453#define HAVE_PROTOTYPES
454
455/* Define if you can safely include both <sys/select.h> and <sys/time.h>
456 (which you can't on SCO ODT 3.0). */
457/* #undef SYS_SELECT_WITH_SYS_TIME */
458
459/* Define if you want to use SGI (IRIX 4) dynamic linking.
460 This requires the "dl" library by Jack Jansen,
461 ftp://ftp.cwi.nl/pub/dynload/dl-1.6.tar.Z.
462 Don't bother on IRIX 5, it already has dynamic linking using SunOS
Guido van Rossum950a1261996-07-30 17:38:17 +0000463 style shared libraries */
Guido van Rossum87d5e701996-05-28 22:50:17 +0000464/* #undef WITH_SGI_DL */
465
466/* Define if you want to emulate SGI (IRIX 4) dynamic linking.
467 This is rumoured to work on VAX (Ultrix), Sun3 (SunOS 3.4),
468 Sequent Symmetry (Dynix), and Atari ST.
469 This requires the "dl-dld" library,
470 ftp://ftp.cwi.nl/pub/dynload/dl-dld-1.1.tar.Z,
471 as well as the "GNU dld" library,
472 ftp://ftp.cwi.nl/pub/dynload/dld-3.2.3.tar.Z.
473 Don't bother on SunOS 4 or 5, they already have dynamic linking using
Guido van Rossum950a1261996-07-30 17:38:17 +0000474 shared libraries */
Guido van Rossum87d5e701996-05-28 22:50:17 +0000475/* #undef WITH_DL_DLD */
476
Martin v. Löwis2befa482002-06-09 13:41:37 +0000477/* Define if you want documentation strings in extension modules */
478#define WITH_DOC_STRINGS 1
479
Guido van Rossum87d5e701996-05-28 22:50:17 +0000480/* Define if you want to compile in rudimentary thread support */
481/* #undef WITH_THREAD */
482
483/* Define if you want to use the GNU readline library */
484/* #define WITH_READLINE 1 */
485
Fredrik Lundh9b14ab32001-06-26 22:59:49 +0000486/* Define if you want to have a Unicode type. */
487#define Py_USING_UNICODE
488
489/* Define as the integral type used for Unicode representation. */
490#define PY_UNICODE_TYPE unsigned short
491
492/* Define as the size of the unicode type. */
493#define Py_UNICODE_SIZE SIZEOF_SHORT
494
Fredrik Lundh793c1972001-06-27 19:49:17 +0000495/* Define if you have a useable wchar_t type defined in wchar.h; useable
496 means wchar_t must be 16-bit unsigned type. (see
497 Include/unicodeobject.h). */
498#if Py_UNICODE_SIZE == 2
499#define HAVE_USABLE_WCHAR_T
500#endif
501
Jeremy Hyltonc5007aa2000-06-30 05:02:53 +0000502/* Define if you want cycle garbage collection */
Guido van Rossum47674022000-06-30 20:31:50 +0000503#define WITH_CYCLE_GC 1
Jeremy Hyltonc5007aa2000-06-30 05:02:53 +0000504
Tim Petersb26f3632002-03-22 06:32:32 +0000505/* Use Python's own small-block memory-allocator. */
506#define WITH_PYMALLOC 1
507
Tim Peters639295f2002-04-21 07:30:30 +0000508/* Enable \n, \r, \r\n line ends on import; also the 'U' mode flag for open. */
509#define WITH_UNIVERSAL_NEWLINES 1
510
Guido van Rossum87d5e701996-05-28 22:50:17 +0000511/* Define if you have clock. */
512/* #define HAVE_CLOCK */
513
Guido van Rossum9f9fa6d1999-12-20 22:57:41 +0000514/* Define when any dynamic module loading is enabled */
515#define HAVE_DYNAMIC_LOADING
516
Guido van Rossum87d5e701996-05-28 22:50:17 +0000517/* Define if you have ftime. */
518#define HAVE_FTIME
519
520/* Define if you have getpeername. */
Guido van Rossumc3397531997-05-06 15:58:18 +0000521#define HAVE_GETPEERNAME
Guido van Rossum87d5e701996-05-28 22:50:17 +0000522
523/* Define if you have getpgrp. */
524/* #undef HAVE_GETPGRP */
525
526/* Define if you have getpid. */
Guido van Rossumc3397531997-05-06 15:58:18 +0000527#define HAVE_GETPID
Guido van Rossum87d5e701996-05-28 22:50:17 +0000528
529/* Define if you have gettimeofday. */
530/* #undef HAVE_GETTIMEOFDAY */
531
532/* Define if you have getwd. */
533/* #undef HAVE_GETWD */
534
535/* Define if you have lstat. */
536/* #undef HAVE_LSTAT */
537
Guido van Rossum63096d41998-04-10 21:28:49 +0000538/* Define if you have the mktime function. */
539#define HAVE_MKTIME
540
Guido van Rossum87d5e701996-05-28 22:50:17 +0000541/* Define if you have nice. */
542/* #undef HAVE_NICE */
543
544/* Define if you have readlink. */
545/* #undef HAVE_READLINK */
546
547/* Define if you have select. */
548/* #undef HAVE_SELECT */
549
550/* Define if you have setpgid. */
551/* #undef HAVE_SETPGID */
552
553/* Define if you have setpgrp. */
554/* #undef HAVE_SETPGRP */
555
556/* Define if you have setsid. */
557/* #undef HAVE_SETSID */
558
Guido van Rossumc3397531997-05-06 15:58:18 +0000559/* Define if you have setvbuf. */
560#define HAVE_SETVBUF
561
Guido van Rossum87d5e701996-05-28 22:50:17 +0000562/* Define if you have siginterrupt. */
563/* #undef HAVE_SIGINTERRUPT */
564
565/* Define if you have symlink. */
566/* #undef HAVE_SYMLINK */
567
568/* Define if you have tcgetpgrp. */
569/* #undef HAVE_TCGETPGRP */
570
571/* Define if you have tcsetpgrp. */
572/* #undef HAVE_TCSETPGRP */
573
574/* Define if you have times. */
575/* #undef HAVE_TIMES */
576
577/* Define if you have uname. */
578/* #undef HAVE_UNAME */
579
580/* Define if you have waitpid. */
581/* #undef HAVE_WAITPID */
582
583/* Define if you have the <dlfcn.h> header file. */
584/* #undef HAVE_DLFCN_H */
585
586/* Define if you have the <fcntl.h> header file. */
587#define HAVE_FCNTL_H 1
588
589/* Define if you have the <signal.h> header file. */
590#define HAVE_SIGNAL_H 1
591
592/* Define if you have the <stdarg.h> header file. */
593#define HAVE_STDARG_H 1
594
595/* Define if you have the <stdarg.h> prototypes. */
596#define HAVE_STDARG_PROTOTYPES
597
Guido van Rossum4da55f01998-09-23 13:35:45 +0000598/* Define if you have the <stddef.h> header file. */
599#define HAVE_STDDEF_H 1
600
Guido van Rossum87d5e701996-05-28 22:50:17 +0000601/* Define if you have the <stdlib.h> header file. */
602#define HAVE_STDLIB_H 1
603
604/* Define if you have the <sys/audioio.h> header file. */
605/* #undef HAVE_SYS_AUDIOIO_H */
606
607/* Define if you have the <sys/param.h> header file. */
608/* #define HAVE_SYS_PARAM_H 1 */
609
610/* Define if you have the <sys/select.h> header file. */
611/* #define HAVE_SYS_SELECT_H 1 */
612
613/* Define if you have the <sys/time.h> header file. */
614/* #define HAVE_SYS_TIME_H 1 */
615
616/* Define if you have the <sys/times.h> header file. */
617/* #define HAVE_SYS_TIMES_H 1 */
618
619/* Define if you have the <sys/un.h> header file. */
620/* #define HAVE_SYS_UN_H 1 */
621
622/* Define if you have the <sys/utime.h> header file. */
Tim Peters58e0a8c2001-05-14 22:32:33 +0000623/* #define HAVE_SYS_UTIME_H 1 */
Guido van Rossum87d5e701996-05-28 22:50:17 +0000624
625/* Define if you have the <sys/utsname.h> header file. */
626/* #define HAVE_SYS_UTSNAME_H 1 */
627
628/* Define if you have the <thread.h> header file. */
629/* #undef HAVE_THREAD_H */
630
631/* Define if you have the <unistd.h> header file. */
632/* #define HAVE_UNISTD_H 1 */
633
634/* Define if you have the <utime.h> header file. */
635/* #define HAVE_UTIME_H 1 */
636
637/* Define if you have the dl library (-ldl). */
638/* #undef HAVE_LIBDL */
639
640/* Define if you have the mpc library (-lmpc). */
641/* #undef HAVE_LIBMPC */
642
643/* Define if you have the nsl library (-lnsl). */
644#define HAVE_LIBNSL 1
645
646/* Define if you have the seq library (-lseq). */
647/* #undef HAVE_LIBSEQ */
648
649/* Define if you have the socket library (-lsocket). */
650#define HAVE_LIBSOCKET 1
651
652/* Define if you have the sun library (-lsun). */
653/* #undef HAVE_LIBSUN */
654
655/* Define if you have the termcap library (-ltermcap). */
656/* #undef HAVE_LIBTERMCAP */
657
658/* Define if you have the termlib library (-ltermlib). */
659/* #undef HAVE_LIBTERMLIB */
660
661/* Define if you have the thread library (-lthread). */
662/* #undef HAVE_LIBTHREAD */
Guido van Rossum87d5e701996-05-28 22:50:17 +0000663#endif /* !Py_CONFIG_H */