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