home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 15 / AACD15.ISO / AACD / Programming / Python2 / Python20_source / Include / config.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-10-25  |  14.5 KB  |  603 lines

  1. #ifndef Py_CONFIG_H
  2. #define Py_CONFIG_H
  3.  
  4. /* config.h. Edited by hand for Amiga SAS/C by Irmen de Jong */
  5. /* (adapted from: config.h.in) */
  6.  
  7. /* 27-mar-96: updated for AmiTCP (Irmen de Jong) */
  8. /*  8-dec-96: now for Python 1.4 */
  9. /* 11-jan-98: now for Python 1.5... for now, assumes AMITCP is used */
  10. /*            Looks much more like original config.h.in now */
  11. /* 24-dec-98: added some more #defines */
  12. /* 25-dec-98: added support for I-Net 225 (at the bottom) */
  13. /* 24-apr-99: added some defines for Python 1.5.2 */
  14. /* 16-okt-99: added 'network-free' options */
  15. /* 9-sep-00:  Python 1.6 */
  16.  
  17.  
  18. /*************************** ADDED STUFF FOR AMIGA PYTHON ****************/
  19.  
  20. /*  BUILTIN LIBRARY SEARCH PATH */
  21. /***#define PYTHONPATH "Python:Lib"***/
  22.  
  23. /************************* END ADDED STUFF FOR AMIGA PYTHON **************/
  24.  
  25. /* Must be defined if using UNSIGNED CHARACTERS: */
  26. /* (_UNSCHAR is SAS/C's defined symbol if using unsigned chars) */
  27.  
  28. #ifdef _UNSCHAR
  29. #define __CHAR_UNSIGNED__
  30. #endif
  31.  
  32.  
  33.  
  34. #if defined(AMITCP) || defined(INET225)
  35.  
  36. /* Define to empty if the keyword does not work.  */
  37. #undef const
  38.  
  39. /* Define to `int' if <sys/types.h> doesn't define.  */
  40. #undef gid_t
  41.  
  42. /* Define if your struct tm has tm_zone.  */
  43. #undef HAVE_TM_ZONE 
  44.  
  45. /* Define if you don't have tm_zone but do have the external array
  46.    tzname.  */
  47. #define HAVE_TZNAME 1
  48.  
  49. /* Define if on MINIX.  */
  50. #undef _MINIX
  51.  
  52. /* Define to `int' if <sys/types.h> doesn't define.  */
  53. #undef mode_t
  54.  
  55. /* Define to `long' if <sys/types.h> doesn't define.  */
  56. #undef off_t
  57.  
  58. /* Define to `int' if <sys/types.h> doesn't define.  */
  59. #undef pid_t
  60.  
  61. /* Define if the system does not provide POSIX.1 features except
  62.    with this defined.  */
  63. #undef _POSIX_1_SOURCE
  64.  
  65. /* Define if you need to in order for stat and other things to work.  */
  66. #undef _POSIX_SOURCE
  67.  
  68. /* Define as the return type of signal handlers (int or void).  */
  69. #define RETSIGTYPE void
  70.  
  71. /* Define to `unsigned' if <sys/types.h> doesn't define.  */
  72. #undef size_t
  73.  
  74. /* Define if you have the ANSI C header files.  */
  75. #define STDC_HEADERS 1
  76.  
  77. /* Define if you can safely include both <sys/time.h> and <time.h>.  */
  78. #define TIME_WITH_SYS_TIME 1
  79.  
  80. /* Define if your <sys/time.h> declares struct tm.  */
  81. #undef TM_IN_SYS_TIME
  82.  
  83. /* Define to `int' if <sys/types.h> doesn't define.  */
  84. #undef uid_t
  85.  
  86. /* Define if your processor stores words with the most significant
  87.    byte first (like Motorola and SPARC, unlike Intel and VAX).  */
  88. #define WORDS_BIGENDIAN 1
  89.  
  90. /* Define if your <unistd.h> contains bad prototypes for exec*()
  91.    (as it does on SGI IRIX 4.x) */
  92. #undef BAD_EXEC_PROTOTYPES
  93.  
  94. /* Define if your compiler botches static forward declarations
  95.    (as it does on SCI ODT 3.0) */
  96. #undef BAD_STATIC_FORWARD
  97.  
  98. /* Define if you have the Mach cthreads package */
  99. #undef C_THREADS
  100.  
  101. /* Define to `long' if <time.h> doesn't define.  */
  102. #undef clock_t
  103.  
  104. /* Define if gettimeofday() does not have second (timezone) argument
  105.    This is the case on Motorola V4 (R40V4.2) */
  106. #undef GETTIMEOFDAY_NO_TZ
  107.  
  108. /* Define this if your time.h defines altzone */
  109. #undef HAVE_ALTZONE
  110.  
  111. /* Define this if you have a K&R style C preprocessor */
  112. #undef HAVE_OLD_CPP
  113.  
  114. /* Define if your compiler supports function prototypes */
  115. #define HAVE_PROTOTYPES 1
  116.  
  117. /* Define if your compiler supports variable length function prototypes
  118.    (e.g. void fprintf(FILE *, char *, ...);) *and* <stdarg.h> */
  119. #define HAVE_STDARG_PROTOTYPES 1
  120.  
  121. /* Define if malloc(0) returns a NULL pointer */
  122. #define MALLOC_ZERO_RETURNS_NULL 1
  123.  
  124. /* Imports case sensitive? */
  125. #define CHECK_IMPORT_CASE 1
  126.  
  127. /* Define if you have POSIX threads */
  128. #undef _POSIX_THREADS
  129.  
  130. /* Define to force use of thread-safe errno, h_errno, and other functions */
  131. #undef _REENTRANT
  132.  
  133. /* Define if setpgrp() must be called as setpgrp(0, 0). */
  134. #undef SETPGRP_HAVE_ARG
  135.  
  136. /* Define to empty if the keyword does not work.  */
  137. #undef signed
  138.  
  139. /* Define if  you can safely include both <sys/select.h> and <sys/time.h>
  140.    (which you can't on SCO ODT 3.0). */
  141. #define SYS_SELECT_WITH_SYS_TIME 1
  142.  
  143. /* Define if a va_list is an array of some kind */
  144. #undef VA_LIST_IS_ARRAY
  145.  
  146. /* Define to empty if the keyword does not work.  */
  147. #undef volatile
  148.  
  149. /* Define if you want SIGFPE handled (see Include/pyfpe.h). */
  150. #undef WANT_SIGFPE_HANDLER
  151.  
  152. /* Define if you want to use SGI (IRIX 4) dynamic linking.
  153.    This requires the "dl" library by Jack Jansen,
  154.    ftp://ftp.cwi.nl/pub/dynload/dl-1.6.tar.Z.
  155.    Don't bother on IRIX 5, it already has dynamic linking using SunOS
  156.    style shared libraries */ 
  157. #undef WITH_SGI_DL
  158.  
  159. /* Define if you want to emulate SGI (IRIX 4) dynamic linking.
  160.    This is rumoured to work on VAX (Ultrix), Sun3 (SunOS 3.4),
  161.    Sequent Symmetry (Dynix), and Atari ST.
  162.    This requires the "dl-dld" library,
  163.    ftp://ftp.cwi.nl/pub/dynload/dl-dld-1.1.tar.Z,
  164.    as well as the "GNU dld" library,
  165.    ftp://ftp.cwi.nl/pub/dynload/dld-3.2.3.tar.Z.
  166.    Don't bother on SunOS 4 or 5, they already have dynamic linking using
  167.    shared libraries */ 
  168. #undef WITH_DL_DLD
  169.  
  170. /* Define if you want to compile in rudimentary thread support */
  171. #undef WITH_THREAD
  172.  
  173. /* Define this if you have BeOS threads */
  174. #undef BEOS_THREADS
  175.  
  176. /* The number of bytes in a int.  */
  177. #define SIZEOF_INT 4
  178.  
  179. /* The number of bytes in a long.  */
  180. #define SIZEOF_LONG 4
  181.  
  182. /* The number of bytes in an off_t. */
  183. #define SIZEOF_OFF_T 4
  184.  
  185. /* The number of bytes in a double.  */
  186. #define SIZEOF_DOUBLE 8
  187.  
  188. /* The number of bytes in a float.  */
  189. #define SIZEOF_FLOAT 4
  190.  
  191. /* The number of bytes in a long long.  */
  192. #undef SIZEOF_LONG_LONG
  193.  
  194. /* The number of bytes in a short.  */
  195. #define SIZEOF_SHORT 2
  196.  
  197. /* The number of bytes in a void *.  */
  198. #define SIZEOF_VOID_P 4
  199.  
  200. /* Define if you have the alarm function.  */
  201. #undef HAVE_ALARM
  202.  
  203. /* Define if you have the clock function.  */
  204. #define HAVE_CLOCK 1
  205.  
  206. /* Define if you have the dlopen function.  */
  207. #undef HAVE_DLOPEN
  208.  
  209. /* Define if you have the dup2 function.  */
  210. #undef HAVE_DUP2
  211.  
  212. /* Define if you have the execv function.  */
  213. #undef HAVE_EXECV
  214.  
  215. /* Define if you have the flock function.  */
  216. #undef HAVE_FLOCK
  217.  
  218. /* Define if you have the fork function.  */
  219. #undef HAVE_FORK
  220.  
  221. /* Define if you have the ftime function.  */
  222. #undef HAVE_FTIME
  223.  
  224. /* Define if you have the ftruncate function.  */
  225. #undef HAVE_FTRUNCATE
  226.  
  227. /* Define if you have the getcwd function.  */
  228. #define HAVE_GETCWD 1
  229.  
  230. /* Define if you have the gethostname_r function.  */
  231. #undef HAVE_GETHOSTNAME_R
  232.  
  233. /* Define if you have the getpeername function.  */
  234. #define HAVE_GETPEERNAME 1
  235.  
  236. /* Define if you have the getpid function.  */
  237. #define HAVE_GETPID 1
  238.  
  239. /* Define if you have the getpwent function.  */
  240. #define HAVE_GETPWENT 1
  241.  
  242. /* Define if you have the gettimeofday function.  */
  243. #define HAVE_GETTIMEOFDAY 1
  244.  
  245. /* Define if you have the getwd function.  */
  246. #undef HAVE_GETWD
  247.  
  248. /* Define if you have the hypot function.  */
  249. #undef HAVE_HYPOT
  250.  
  251. /* Define if you have the kill function.  */
  252. #undef HAVE_KILL
  253.  
  254. /* Define if you have the link function.  */
  255. #define HAVE_LINK 1
  256.  
  257. /* Define if you have the lstat function.  */
  258. #define HAVE_LSTAT 1
  259.  
  260. /* Define if you have the memmove function.  */
  261. #define HAVE_MEMMOVE 1
  262.  
  263. /* Define if you have the mkfifo function.  */
  264. #undef HAVE_MKFIFO
  265.  
  266. /* Define if you have the mktime function.  */
  267. #define HAVE_MKTIME 1
  268.  
  269. /* Define if you have the nice function.  */
  270. #undef HAVE_NICE
  271.  
  272. /* Define if you have the pause function.  */
  273. #undef HAVE_PAUSE
  274.  
  275. /* Define if you have the plock function.  */
  276. #undef HAVE_PLOCK
  277.  
  278. /* Define if you have the putenv function.  */
  279. #define HAVE_PUTENV 1
  280.  
  281. /* Define if you have the readlink function.  */
  282. #define HAVE_READLINK 1
  283.  
  284. /* Define if you have the select function.  */
  285. #define HAVE_SELECT 1
  286.  
  287. /* Define if you have the setgid function.  */
  288. #define HAVE_SETGID 1
  289.  
  290. /* Define if you have the setlocale function.  */
  291. #define HAVE_SETLOCALE 1
  292.  
  293. /* Define if you have the setpgid function.  */
  294. #undef HAVE_SETPGID
  295.  
  296. /* Define if you have the setpgrp function.  */
  297. #undef HAVE_SETPGRP
  298.  
  299. /* Define if you have the setuid function.  */
  300. #define HAVE_SETUID 1
  301.  
  302. /* Define if you have the setvbuf function.  */
  303. #define HAVE_SETVBUF 1
  304.  
  305. /* Define if you have the sigaction function.  */
  306. #undef HAVE_SIGACTION
  307.  
  308. /* Define if you have the siginterrupt function.  */
  309. #undef HAVE_SIGINTERRUPT
  310.  
  311. /* Define if you have the sigrelse function.  */
  312. #undef HAVE_SIGRELSE
  313.  
  314. /* Define if you have the strdup function.  */
  315. #define HAVE_STRDUP 1
  316.  
  317. /* Define if you have the strerror function.  */
  318. #define HAVE_STRERROR 1
  319.  
  320. /* Define if you have the strftime function.  */
  321. #define HAVE_STRFTIME 1
  322.  
  323. /* Define if you have the strptime function.  */
  324. #undef HAVE_STRPTIME
  325.  
  326. /* Define if you have the symlink function.  */
  327. #define HAVE_SYMLINK 1
  328.  
  329. /* Define if you have the tcgetpgrp function.  */
  330. #undef HAVE_TCGETPGRP
  331.  
  332. /* Define if you have the tcsetpgrp function.  */
  333. #undef HAVE_TCSETPGRP
  334.  
  335. /* Define if you have the times function.  */
  336. #undef HAVE_TIMES
  337.  
  338. /* Define if you have the truncate function.  */
  339. #undef HAVE_TRUNCATE
  340.  
  341. /* Define if you have the uname function.  */
  342. #define HAVE_UNAME 1
  343.  
  344. /* Define if you have the waitpid function.  */
  345. #undef HAVE_WAITPID
  346.  
  347. /* Define if you have the fseek64 function.  */
  348. #undef HAVE_FSEEK64
  349.  
  350. /* Define if you have the fseeko function.  */
  351. #undef HAVE_FSEEKO
  352.  
  353. /* Define if you have the fstatvfs function.  */
  354. #undef HAVE_FSTATVFS
  355.  
  356. /* Define if you have the fsync function.  */
  357. #undef HAVE_FSYNC
  358.  
  359. /* Define if you have the ftell64 function.  */
  360. #undef HAVE_FTELL64
  361.  
  362. /* Define if you have the ftello function.  */
  363. #undef HAVE_FTELLO
  364.  
  365. /* Define if you have the statvfs function.  */
  366. #undef HAVE_STATVFS
  367.  
  368. /* Define if you have the timegm function.  */
  369. #undef HAVE_TIMEGM
  370.  
  371. /* Define this if you have some version of gethostbyname_r() */
  372. #undef HAVE_GETHOSTBYNAME_R
  373.  
  374. /* Define this if you have the 3-arg version of gethostbyname_r() */
  375. #undef HAVE_GETHOSTBYNAME_R_3_ARG
  376.  
  377. /* Define this if you have the 5-arg version of gethostbyname_r() */
  378. #undef HAVE_GETHOSTBYNAME_R_5_ARG
  379.  
  380. /* Define this if you have the 6-arg version of gethostbyname_r() */
  381. #undef HAVE_GETHOSTBYNAME_R_6_ARG
  382.  
  383. /* Define this if you have the type long long */
  384. #undef HAVE_LONG_LONG
  385.  
  386. /* execv function? */
  387. #undef HAVE_EXECV
  388.  
  389. /* system function? */
  390. #define HAVE_SYSTEM 1
  391.  
  392. /* wait function? */
  393. #undef HAVE_WAIT
  394.  
  395. /* kill function? */
  396. #undef HAVE_KILL
  397.  
  398. /* pipe function? */
  399. #define HAVE_PIPE 1
  400.  
  401. /* popen function? */
  402. #define HAVE_POPEN 1
  403.  
  404. /* fork function? */
  405. #undef HAVE_FORK
  406.  
  407. /* getegid function? */
  408. #define HAVE_GETEGID 1
  409.  
  410. /* geteuid function? */
  411. #define HAVE_GETEUID 1
  412.  
  413. /* getgid function? */
  414. #define HAVE_GETGID 1
  415.  
  416. /* getppid function? */
  417. #undef HAVE_GETPPID
  418.  
  419. /* getuid function? */
  420. #define HAVE_GETUID 1
  421.  
  422. /* opendir function? */
  423. #define HAVE_OPENDIR 1
  424.  
  425.  
  426. /* Define if you have the <dirent.h> header file.  */
  427. #undef HAVE_DIRENT_H
  428.  
  429. /* Define if you have the <dlfcn.h> header file.  */
  430. #undef HAVE_DLFCN_H
  431.  
  432. /* Define if you have the <fcntl.h> header file.  */
  433. #define HAVE_FCNTL_H 1
  434.  
  435. /* Define if you have the <limits.h> header file.  */
  436. #define HAVE_LIMITS_H 1
  437.  
  438. /* Define if you have the <locale.h> header file.  */
  439. #define HAVE_LOCALE_H 1
  440.  
  441. /* Define if you have the <ncurses.h> header file.  */
  442. #undef HAVE_NCURSES_H
  443.  
  444. /* Define if you have the <ndir.h> header file.  */
  445. #undef HAVE_NDIR_H
  446.  
  447. /* Define if you have the <pthread.h> header file.  */
  448. #undef HAVE_PTHREAD_H
  449.  
  450. /* Define if you have the <signal.h> header file.  */
  451. #define HAVE_SIGNAL_H 1
  452.  
  453. /* Define if you have the <stdarg.h> header file.  */
  454. #define HAVE_STDARG_H 1
  455.  
  456. /* Define if you have the <stddef.h> header file.  */
  457. #define HAVE_STDDEF_H 1
  458.  
  459. /* Define if you have the <stdlib.h> header file.  */
  460. #define HAVE_STDLIB_H 1
  461.  
  462. /* Define if you have the <sys/audioio.h> header file.  */
  463. #undef HAVE_SYS_AUDIOIO_H
  464.  
  465. /* Define if you have the <sys/dir.h> header file.  */
  466. #define HAVE_SYS_DIR_H 1
  467.  
  468. /* Define if you have the <sys/file.h> header file.  */
  469. #define HAVE_SYS_FILE_H 1
  470.  
  471. /* Define if you have the <sys/lock.h> header file.  */
  472. #undef HAVE_SYS_LOCK_H
  473.  
  474. /* Define if you have the <sys/ndir.h> header file.  */
  475. #undef HAVE_SYS_NDIR_H
  476.  
  477. /* Define if you have the <sys/param.h> header file.  */
  478. #define HAVE_SYS_PARAM_H 1
  479.  
  480. /* Define if you have the <sys/select.h> header file.  */
  481. #undef HAVE_SYS_SELECT_H
  482.  
  483. /* Define if you have the <sys/time.h> header file.  */
  484. #define HAVE_SYS_TIME_H 1
  485.  
  486. /* Define if you have the <sys/times.h> header file.  */
  487. #undef HAVE_SYS_TIMES_H
  488.  
  489. /* Define if you have the <sys/un.h> header file.  */
  490. #undef HAVE_SYS_UN_H
  491.  
  492. /* Define if you have the <sys/utsname.h> header file.  */
  493. #undef HAVE_SYS_UTSNAME_H
  494.  
  495. /* Define if you have the <thread.h> header file.  */
  496. #undef HAVE_THREAD_H
  497.  
  498. /* Define if you have the <unistd.h> header file.  */
  499. #define HAVE_UNISTD_H 1
  500.  
  501. /* Define if you have the <utime.h> header file.  */
  502. #define HAVE_UTIME_H 1
  503.  
  504. /* Define if you have the dl library (-ldl).  */
  505. #undef HAVE_LIBDL
  506.  
  507. /* Define if you have the dld library (-ldld).  */
  508. #undef HAVE_LIBDLD
  509.  
  510. /* Define if you have the ieee library (-lieee).  */
  511. #undef HAVE_LIBIEEE
  512.  
  513. /* Define if you have the sun library (-lsun).  */
  514. #undef HAVE_LIBSUN
  515.  
  516.  
  517. #endif /* BOTH AMITCP OR INET */
  518.  
  519.  
  520. /************************* FROM HERE:   AMITCP stuff ********************/
  521.  
  522. #ifdef AMITCP
  523.  
  524. /* Define if you have the chown function.  */
  525. #define HAVE_CHOWN 1
  526.  
  527. /* Define if getpgrp() must be called as getpgrp(0). */
  528. /* #define GETPGRP_HAVE_ARG 1 */
  529.  
  530. /* Define if you have the getpgrp function.  */
  531. #define HAVE_GETPGRP 1
  532.  
  533. /* Define if you have the setsid function.  */
  534. #define HAVE_SETSID 1
  535.  
  536. #define HAVE_SYS_WAIT_H 1
  537.  
  538.  
  539. #endif /* AmiTCP only */
  540.  
  541. /************************* FROM HERE:   INET225 stuff ********************/
  542.  
  543. #ifdef INET225
  544.  
  545. /* Define if you have the <sys/wait.h> header file.  */
  546. #undef HAVE_SYS_WAIT_H
  547.  
  548. /* Actually we do have unistd.h but Inet chokes too often on it */
  549. #undef HAVE_UNISTD_H
  550.  
  551. #endif /* INET225 only */
  552.  
  553.  
  554. /************************* FROM HERE:   No-network stuff ********************/
  555.  
  556. #if !defined(AMITCP) && !defined(INET225)
  557.  
  558. #define HAVE_TZNAME 1
  559. #define RETSIGTYPE void
  560. #define STDC_HEADERS 1
  561. #define HAVE_PROTOTYPES 1
  562. #define HAVE_STDARG_PROTOTYPES 1
  563. #define MALLOC_ZERO_RETURNS_NULL 1
  564. #define SIZEOF_INT 4 
  565. #define SIZEOF_LONG 4
  566. #define SIZEOF_OFF_T 4
  567. #undef SIZEOF_LONG_LONG
  568. #define SIZEOF_VOID_P 4
  569. #define HAVE_CLOCK 1
  570. #define HAVE_GETCWD 1
  571. #define HAVE_GETPID 1
  572. #define HAVE_LINK 1
  573. #define HAVE_LSTAT 1
  574. #define HAVE_MEMMOVE 1
  575. #define HAVE_MKTIME 1
  576. #define HAVE_PUTENV 1
  577. #define HAVE_READLINK 1
  578. #define HAVE_SETLOCALE 1
  579. #define HAVE_SETVBUF 1
  580. #define HAVE_STRDUP 1
  581. #define HAVE_STRERROR 1
  582. #define HAVE_STRFTIME 1
  583. #define HAVE_SYMLINK 1
  584. #define HAVE_UNAME 1
  585. #define HAVE_SYSTEM 1
  586. #define HAVE_PIPE 1
  587. #define HAVE_POPEN 1
  588. #define HAVE_OPENDIR 1
  589. #define HAVE_FCNTL_H 1
  590. #define HAVE_LIMITS_H 1
  591. #define HAVE_LOCALE_H 1
  592. #define HAVE_SIGNAL_H 1
  593. #define HAVE_STDARG_H 1
  594. #define HAVE_STDDEF_H 1
  595. #define HAVE_STDLIB_H 1
  596. #define HAVE_SYS_DIR_H 1
  597. #define HAVE_SYS_FILE_H 1
  598. #define HAVE_UNISTD_H 1
  599.  
  600. #endif /* No networking */
  601.  
  602. #endif
  603.