1 /* RISCOS/pyconfig.h: Python configuration for RISC OS */
7 System headers sometimes define this.
8 We just want to avoid a redefinition error message. */
13 /* Define if type char is unsigned and you are not using gcc. */
14 #ifndef __CHAR_UNSIGNED__
15 #undef __CHAR_UNSIGNED__
18 /* Define to empty if the keyword does not work. */
21 /* Define to `int' if <sys/types.h> doesn't define. */
24 /* Define if your struct tm has tm_zone. */
27 /* Define if you don't have tm_zone but do have the external array
31 /* Define to `int' if <sys/types.h> doesn't define. */
34 /* Define to `long' if <sys/types.h> doesn't define. */
37 /* Define to `int' if <sys/types.h> doesn't define. */
40 /* Define if the system does not provide POSIX.1 features except
42 #undef _POSIX_1_SOURCE
44 /* Define if you need to in order for stat and other things to work. */
47 /* Define as the return type of signal handlers (int or void). */
48 #define RETSIGTYPE void
50 /* Define to `unsigned' if <sys/types.h> doesn't define. */
53 /* Define if you have the ANSI C header files. */
54 #define STDC_HEADERS 1
56 /* Define if you can safely include both <sys/time.h> and <time.h>. */
57 #undef TIME_WITH_SYS_TIME
59 /* Define if your <sys/time.h> declares struct tm. */
60 #define TM_IN_SYS_TIME 1
62 /* Define to `int' if <sys/types.h> doesn't define. */
65 /* Define if your processor stores words with the most significant
66 byte first (like Motorola and SPARC, unlike Intel and VAX). */
67 #undef WORDS_BIGENDIAN
69 /* Define for AIX if your compiler is a genuine IBM xlC/xlC_r
70 and you want support for AIX C++ shared extension modules. */
71 #undef AIX_GENUINE_CPLUSPLUS
73 /* Define if your compiler botches static forward declarations
74 (as it does on SCI ODT 3.0) */
75 #undef BAD_STATIC_FORWARD
77 /* Define this if you have BeOS threads */
80 /* Define if you have the Mach cthreads package */
83 /* Define to `long' if <time.h> doesn't define. */
86 /* Defined on Solaris to see additional function prototypes. */
89 /* This must be set to 64 on some systems to enable large file support */
90 #undef _FILE_OFFSET_BITS
92 /* Define if getpgrp() must be called as getpgrp(0). */
93 #undef GETPGRP_HAVE_ARG
95 /* Define if gettimeofday() does not have second (timezone) argument
96 This is the case on Motorola V4 (R40V4.2) */
97 #undef GETTIMEOFDAY_NO_TZ
99 /* Define this if your time.h defines altzone */
102 /* Define if --enable-ipv6 is specified */
105 /* Define if sockaddr has sa_len member */
106 #undef HAVE_SOCKADDR_SA_LEN
108 /* struct addrinfo (netdb.h) */
111 /* struct sockaddr_storage (sys/socket.h) */
112 #undef HAVE_SOCKADDR_STORAGE
114 /* Defined when any dynamic module loading is enabled */
115 #define HAVE_DYNAMIC_LOADING 1
117 /* Define this if you have flockfile(), getc_unlocked(), and funlockfile() */
118 #undef HAVE_GETC_UNLOCKED
120 /* Define this if you have some version of gethostbyname_r() */
121 #undef HAVE_GETHOSTBYNAME_R
123 /* Define this if you have the 3-arg version of gethostbyname_r() */
124 #undef HAVE_GETHOSTBYNAME_R_3_ARG
126 /* Define this if you have the 5-arg version of gethostbyname_r() */
127 #undef HAVE_GETHOSTBYNAME_R_5_ARG
129 /* Define this if you have the 6-arg version of gethostbyname_r() */
130 #undef HAVE_GETHOSTBYNAME_R_6_ARG
132 /* Defined to enable large file support when an off_t is bigger than a long
133 and long long is available and at least as big as an off_t. You may need
134 to add some flags for configuration and compilation to enable this mode.
135 E.g, for Solaris 2.7:
136 CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" OPT="-O2 $CFLAGS" \
139 #undef HAVE_LARGEFILE_SUPPORT
141 /* Define this if you have the type long long */
142 #define HAVE_LONG_LONG
144 /* Define if your compiler supports function prototypes */
145 #define HAVE_PROTOTYPES 1
147 /* Define if you have GNU PTH threads */
150 /* Define if you have readline 4.2 */
151 #undef HAVE_RL_COMPLETION_MATCHES
153 /* Define if your compiler supports variable length function prototypes
154 (e.g. void fprintf(FILE *, char *, ...);) *and* <stdarg.h> */
155 #define HAVE_STDARG_PROTOTYPES 1
157 /* Define this if you have the type uintptr_t */
158 #undef HAVE_UINTPTR_T
160 /* Define if you have a useable wchar_t type defined in wchar.h; useable
161 means wchar_t must be 16-bit unsigned type. (see
162 Include/unicodeobject.h). */
163 #undef HAVE_USABLE_WCHAR_T
165 /* Define if the compiler provides a wchar.h header file. */
168 /* This must be defined on some systems to enable large file support */
169 #undef _LARGEFILE_SOURCE
171 /* Define if you want to have a Unicode type. */
172 #define Py_USING_UNICODE 1
174 /* Define as the integral type used for Unicode representation. */
175 #define PY_UNICODE_TYPE unsigned short
177 /* Define as the size of the unicode type. */
178 #define Py_UNICODE_SIZE 2
180 /* Define if nice() returns success/failure instead of the new priority. */
181 #undef HAVE_BROKEN_NICE
183 /* Define if you have POSIX threads */
184 #undef _POSIX_THREADS
186 /* Define if you want to build an interpreter with many run-time checks */
189 /* Define to force use of thread-safe errno, h_errno, and other functions */
192 /* Define if setpgrp() must be called as setpgrp(0, 0). */
193 #undef SETPGRP_HAVE_ARG
195 /* Define to empty if the keyword does not work. */
198 /* Define if i>>j for signed int i does not extend the sign bit
201 #undef SIGNED_RIGHT_SHIFT_ZERO_FILLS
203 /* The number of bytes in an off_t. */
204 #define SIZEOF_OFF_T 4
206 /* The number of bytes in a time_t. */
207 #define SIZEOF_TIME_T 4
209 /* The number of bytes in a pthread_t. */
210 #undef SIZEOF_PTHREAD_T
212 /* Define to `int' if <sys/types.h> doesn't define. */
213 #define socklen_t int
215 /* Define if you can safely include both <sys/select.h> and <sys/time.h>
216 (which you can't on SCO ODT 3.0). */
217 #undef SYS_SELECT_WITH_SYS_TIME
219 /* Define if a va_list is an array of some kind */
220 #define VA_LIST_IS_ARRAY 1
222 /* Define to empty if the keyword does not work. */
225 /* Define if you want SIGFPE handled (see Include/pyfpe.h). */
226 #undef WANT_SIGFPE_HANDLER
228 /* Define if you want wctype.h functions to be used instead of the
229 one supplied by Python itself. (see Include/unicodectype.h). */
230 #undef WANT_WCTYPE_FUNCTIONS
232 /* Define if you want documentation strings in extension modules */
233 #define WITH_DOC_STRINGS 1
235 /* Define if you want to use the new-style (Openstep, Rhapsody, MacOS)
236 dynamic linker (dyld) instead of the old-style (NextStep) dynamic
237 linker (rld). Dyld is necessary to support frameworks. */
240 /* Define if you want to compile in Python-specific mallocs */
241 #define WITH_PYMALLOC 1
243 /* Define if you want to produce an OpenStep/Rhapsody framework
244 (shared library plus accessory files). */
245 #undef WITH_NEXT_FRAMEWORK
247 /* Define if you want to use MacPython modules on MacOSX in unix-Python */
248 #undef USE_TOOLBOX_OBJECT_GLUE
250 /* Define if you want to compile in rudimentary thread support */
253 /* The number of bytes in a char. */
254 #define SIZEOF_CHAR 1
256 /* The number of bytes in a double. */
257 #define SIZEOF_DOUBLE 8
259 /* The number of bytes in a float. */
260 #define SIZEOF_FLOAT 4
262 /* The number of bytes in a fpos_t. */
265 /* The number of bytes in a int. */
268 /* The number of bytes in a long. */
269 #define SIZEOF_LONG 4
271 /* The number of bytes in a long long. */
272 #define SIZEOF_LONG_LONG 8
274 /* The number of bytes in a short. */
275 #define SIZEOF_SHORT 2
277 /* The number of bytes in a uintptr_t. */
278 #undef SIZEOF_UINTPTR_T
280 /* The number of bytes in a void *. */
281 #define SIZEOF_VOID_P 4
283 /* The number of bytes in a wchar_t. */
284 #undef SIZEOF_WCHAR_T
286 /* Define if you have the _getpty function. */
289 /* Define if you have the alarm function. */
292 /* Define if you have the chown function. */
295 /* Define if you have the clock function. */
298 /* Define if you have the confstr function. */
301 /* Define if you have the ctermid function. */
304 /* Define if you have the ctermid_r function. */
305 #undef HAVE_CTERMID_R
307 /* Define if you have the dlopen function. */
310 /* Define if you have the dup2 function. */
313 /* Define if you have the execv function. */
316 /* Define if you have the fdatasync function. */
317 #undef HAVE_FDATASYNC
319 /* Define if you have the flock function. */
322 /* Define if you have the fork function. */
325 /* Define if you have the forkpty function. */
328 /* Define if you have the fpathconf function. */
329 #undef HAVE_FPATHCONF
331 /* Define if you have the fseek64 function. */
334 /* Define if you have the fseeko function. */
337 /* Define if you have the fstatvfs function. */
340 /* Define if you have the fsync function. */
343 /* Define if you have the ftell64 function. */
346 /* Define if you have the ftello function. */
349 /* Define if you have the ftime function. */
352 /* Define if you have the ftruncate function. */
353 #undef HAVE_FTRUNCATE
355 /* Define if you have the gai_strerror function. */
356 #undef HAVE_GAI_STRERROR
358 /* Define if you have the getaddrinfo function. */
359 #undef HAVE_GETADDRINFO
361 /* Define if you have the getcwd function. */
364 /* Define if you have the getgroups function. */
365 #undef HAVE_GETGROUPS
367 /* Define if you have the gethostbyname function. */
368 #undef HAVE_GETHOSTBYNAME
370 /* Define if you have the getlogin function. */
373 /* Define if you have the getnameinfo function. */
374 #undef HAVE_GETNAMEINFO
376 /* Define if you have the getpeername function. */
377 #define HAVE_GETPEERNAME
379 /* Define if you have the getpgid function. */
382 /* Define if you have the getpgrp function. */
385 /* Define if you have the getpid function. */
388 /* Define if you have the getpriority function. */
389 #undef HAVE_GETPRIORITY
391 /* Define if you have the getpwent function. */
394 /* Define if you have the gettimeofday function. */
395 #undef HAVE_GETTIMEOFDAY
397 /* Define if you have the getwd function. */
400 /* Define if you have the hstrerror function. */
401 #undef HAVE_HSTRERROR
403 /* Define if you have the hypot function. */
406 /* Define if you have the inet_pton function. */
407 #define HAVE_INET_PTON 1
409 /* Define if you have the kill function. */
412 /* Define if you have the link function. */
415 /* Define if you have the lstat function. */
418 /* Define if you have the memmove function. */
419 #define HAVE_MEMMOVE 1
421 /* Define if you have the mkfifo function. */
424 /* Define if you have the mktime function. */
425 #define HAVE_MKTIME 1
427 /* Define if you have the mremap function. */
430 /* Define if you have the nice function. */
433 /* Define if you have the openpty function. */
436 /* Define if you have the pathconf function. */
439 /* Define if you have the pause function. */
442 /* Define if you have the plock function. */
445 /* Define if you have the poll function. */
448 /* Define if you have the pthread_init function. */
449 #undef HAVE_PTHREAD_INIT
451 /* Define if you have the putenv function. */
454 /* Define if you have the readlink function. */
457 /* Define if you have the select function. */
460 /* Define if you have the setegid function. */
463 /* Define if you have the seteuid function. */
466 /* Define if you have the setgid function. */
469 /* Define if you have the setlocale function. */
470 #define HAVE_SETLOCALE 1
472 /* Define if you have the setpgid function. */
475 /* Define if you have the setpgrp function. */
478 /* Define if you have the setregid function. */
481 /* Define if you have the setreuid function. */
484 /* Define if you have the setsid function. */
487 /* Define if you have the setuid function. */
490 /* Define if you have the setvbuf function. */
493 /* Define if you have the sigaction function. */
494 #undef HAVE_SIGACTION
496 /* Define if you have the siginterrupt function. */
497 #undef HAVE_SIGINTERRUPT
499 /* Define if you have the sigrelse function. */
502 /* Define if you have the snprintf function. */
505 /* Define if you have the statvfs function. */
508 /* Define if you have the strdup function. */
509 #define HAVE_STRDUP 1
511 /* Define if you have the strerror function. */
512 #define HAVE_STRERROR 1
514 /* Define if you have the strftime function. */
515 #define HAVE_STRFTIME 1
517 /* Define if you have the symlink function. */
520 /* Define if you have the sysconf function. */
523 /* Define if you have the tcgetpgrp function. */
524 #undef HAVE_TCGETPGRP
526 /* Define if you have the tcsetpgrp function. */
527 #undef HAVE_TCSETPGRP
529 /* Define if you have the tempnam function. */
532 /* Define if you have the timegm function. */
535 /* Define if you have the times function. */
538 /* Define if you have the tmpfile function. */
541 /* Define if you have the tmpnam function. */
544 /* Define if you have the tmpnam_r function. */
547 /* Define if you have the truncate function. */
550 /* Define if you have the uname function. */
553 /* Define if you have the waitpid function. */
556 /* Define if you have the <conio.h> header file. */
559 /* Define if you have the <db.h> header file. */
562 /* Define if you have the <db1/ndbm.h> header file. */
563 #undef HAVE_DB1_NDBM_H
565 /* Define if you have the <db_185.h> header file. */
568 /* Define if you have the <direct.h> header file. */
571 /* Define if you have the <dirent.h> header file. */
574 /* Define if you have the <dlfcn.h> header file. */
577 /* Define if you have the <errno.h> header file. */
578 #define HAVE_ERRNO_H 1
580 /* Define if you have the <fcntl.h> header file. */
583 /* Define if you have the <gdbm/ndbm.h> header file. */
584 #undef HAVE_GDBM_NDBM_H
586 /* Define if you have the <io.h> header file. */
589 /* Define if you have the <langinfo.h> header file. */
590 #undef HAVE_LANGINFO_H
592 /* Define if you have the <libutil.h> header file. */
593 #undef HAVE_LIBUTIL_H
595 /* Define if you have the <ncurses.h> header file. */
596 #undef HAVE_NCURSES_H
598 /* Define if you have the <ndbm.h> header file. */
601 /* Define if you have the <ndir.h> header file. */
604 /* Define if you have the <netpacket/packet.h> header file. */
605 #undef HAVE_NETPACKET_PACKET_H
607 /* Define if you have the <poll.h> header file. */
610 /* Define if you have the <process.h> header file. */
611 #undef HAVE_PROCESS_H
613 /* Define if you have the <pthread.h> header file. */
614 #undef HAVE_PTHREAD_H
616 /* Define if you have the <pty.h> header file. */
619 /* Define if you have the <signal.h> header file. */
620 #define HAVE_SIGNAL_H
622 /* Define if you have the <sys/audioio.h> header file. */
623 #undef HAVE_SYS_AUDIOIO_H
625 /* Define if you have the <sys/dir.h> header file. */
626 #undef HAVE_SYS_DIR_H
628 /* Define if you have the <sys/file.h> header file. */
629 #undef HAVE_SYS_FILE_H
631 /* Define if you have the <sys/lock.h> header file. */
632 #undef HAVE_SYS_LOCK_H
634 /* Define if you have the <sys/modem.h> header file. */
635 #undef HAVE_SYS_MODEM_H
637 /* Define if you have the <sys/ndir.h> header file. */
638 #undef HAVE_SYS_NDIR_H
640 /* Define if you have the <sys/param.h> header file. */
641 #undef HAVE_SYS_PARAM_H
643 /* Define if you have the <sys/poll.h> header file. */
644 #undef HAVE_SYS_POLL_H
646 /* Define if you have the <sys/resource.h> header file. */
647 #undef HAVE_SYS_RESOURCE_H
649 /* Define if you have the <sys/select.h> header file. */
650 #undef HAVE_SYS_SELECT_H
652 /* Define if you have the <sys/socket.h> header file. */
653 #undef HAVE_SYS_SOCKET_H
655 /* Define if you have the <sys/stat.h> header file. */
656 #define HAVE_SYS_STAT_H 1
658 /* Define if you have the <sys/time.h> header file. */
659 #undef HAVE_SYS_TIME_H
661 /* Define if you have the <sys/times.h> header file. */
662 #undef HAVE_SYS_TIMES_H
664 /* Define if you have the <sys/types.h> header file. */
665 #define HAVE_SYS_TYPES_H 1
667 /* Define if you have the <sys/un.h> header file. */
670 /* Define if you have the <sys/utsname.h> header file. */
671 #undef HAVE_SYS_UTSNAME_H
673 /* Define if you have the <sys/wait.h> header file. */
674 #undef HAVE_SYS_WAIT_H
676 /* Define if you have the <termios.h> header file. */
677 #undef HAVE_TERMIOS_H
679 /* Define if you have the <thread.h> header file. */
682 /* Define if you have the <unistd.h> header file. */
683 #define HAVE_UNISTD_H 1
685 /* Define if you have the <utime.h> header file. */
688 /* Define if you have the dl library (-ldl). */
691 /* Define if you have the dld library (-ldld). */
694 /* Define if you have the ieee library (-lieee). */
699 #define DL_IMPORT(RTYPE) __declspec(dllimport) RTYPE
700 #define DL_EXPORT(RTYPE) __declspec(dllexport) RTYPE
702 #define DL_IMPORT(RTYPE) __declspec(dllexport) RTYPE
703 #define DL_EXPORT(RTYPE) __declspec(dllexport) RTYPE
707 /* Define the macros needed if on a UnixWare 7.x system. */
708 #if defined(__USLC__) && defined(__SCO_VERSION__)
709 #define STRICT_SYSV_CURSES /* Don't use ncurses extensions */
713 #define DONT_HAVE_FSTAT 1
714 #define DONT_HAVE_STAT 1
716 #define PLATFORM "riscos"
718 #endif /* Py_PYCONFIG_H */