24ddc71998-03-28Henrik Grubbström (Grubba) /*
71ac9e1999-08-29Fredrik Hübinette (Hubbe)  * $Id: acconfig.h,v 1.48 1999/08/30 06:23:46 hubbe Exp $
24ddc71998-03-28Henrik Grubbström (Grubba)  */
fda9ae1997-01-28Fredrik Hübinette (Hubbe) #ifndef MACHINE_H #define MACHINE_H
99ed771997-06-03Fredrik Hübinette (Hubbe) /* We must define this *always* */
be478c1997-08-30Henrik Grubbström (Grubba) #ifndef POSIX_SOURCE
99ed771997-06-03Fredrik Hübinette (Hubbe) #define POSIX_SOURCE
be478c1997-08-30Henrik Grubbström (Grubba) #endif
99ed771997-06-03Fredrik Hübinette (Hubbe) 
fda9ae1997-01-28Fredrik Hübinette (Hubbe) /* Where's the master.pike file installed? */ #define DEFAULT_MASTER "@prefix@/lib/pike/master.pike" /* Define this if you want run time self tests */
71f3a21998-11-22Fredrik Hübinette (Hubbe) #undef PIKE_DEBUG
fda9ae1997-01-28Fredrik Hübinette (Hubbe) 
106aca1999-02-06Henrik Grubbström (Grubba) /* Define this if you are going to use a memory access checker (like Purify) */ #undef __CHECKER__
61e9a01998-01-25Fredrik Hübinette (Hubbe) /* Define this if you want malloc debugging */ #undef DEBUG_MALLOC
632add1999-01-07Fredrik Hübinette (Hubbe) /* Define this to enable the internal Pike security system */ #undef PIKE_SECURITY
d1e3fe1999-03-06Henrik Grubbström (Grubba) /* The following four are used by smartlink */ /* Define this if your ld sets the run path with -rpath */ #undef USE_RPATH /* Define this if your ld sets the run path with -R */ #undef USE_R /* Define this if your ld uses -rpath, but your cc wants -Wl,-rpath, */ #undef USE_Wl
69e31d1999-05-12Henrik Grubbström (Grubba) /* Define this if your ld uses -R, but your cc wants -Wl,-R */ #undef USE_Wl_R
d1e3fe1999-03-06Henrik Grubbström (Grubba) /* Define this if your ld doesn't have an option to set the run path */ #undef USE_LD_LIBRARY_PATH
fda9ae1997-01-28Fredrik Hübinette (Hubbe) @TOP@
32629a1997-10-15Henrik Grubbström (Grubba) /* Enable profiling */ #undef PROFILING
fda9ae1997-01-28Fredrik Hübinette (Hubbe) /* Define for solaris */ #undef SOLARIS /* Define if the closedir function returns void instead of int. */ #undef VOID_CLOSEDIR /* Define to 'int' if <sys/time.h> doesn't */ #undef time_t
550b7f1999-07-08Fredrik Hübinette (Hubbe) /* Define to 'short' if <sys/types.h> doesn't */ #undef pri_t
1e577b1999-07-15Fredrik Hübinette (Hubbe) /* Define to 'int' if <sys/types.h> doesn't */ #undef uid_t /* Define to 'int' if <sys/types.h> doesn't */ #undef gid_t /* Define to 'int' if <sys/types.h> doesn't */ #undef pid_t /* Define to 'long' if <sys/types.h> doesn't */ #undef size_t /* Define to 'long' if <sys/types.h> doesn't */ #undef off_t
61d3cf1998-02-27Marcus Comstedt /* Define to 'int' if <signal.h> doesn't */ #undef sig_atomic_t
fda9ae1997-01-28Fredrik Hübinette (Hubbe) /* Define as the return type of signal handlers (int or void). */ #undef RETSIGTYPE
71b44e1998-06-05Fredrik Hübinette (Hubbe) /* define this if igonoring SIGFPE helps with core dumps */ #undef IGNORE_SIGFPE
fda9ae1997-01-28Fredrik Hübinette (Hubbe) /* If using the C implementation of alloca, define if you know the
83591e1998-09-05Henrik Grubbström (Grubba)  * direction of stack growth for your system; otherwise it will be * automatically deduced at run-time. * STACK_DIRECTION > 0 => grows toward higher addresses * STACK_DIRECTION < 0 => grows toward lower addresses * STACK_DIRECTION = 0 => direction of growth unknown * * Also used by Pike's runtime C-stack checker.
fda9ae1997-01-28Fredrik Hübinette (Hubbe)  */ #undef STACK_DIRECTION /* If so, is it restricted to user and system time? */ #undef GETRUSAGE_RESTRICTED /* Solaris has rusage as an ioctl on procfs */ #undef GETRUSAGE_THROUGH_PROCFS
05030b1998-11-18Marcus Comstedt /* Define if you have fork */ #undef HAVE_FORK
fda9ae1997-01-28Fredrik Hübinette (Hubbe) /* Define if you have isspace */ #undef HAVE_ISSPACE
e261f01998-07-22Fredrik Hübinette (Hubbe) /* Define if you have fpsetmask */ #undef HAVE_FPSETMASK
fda9ae1997-01-28Fredrik Hübinette (Hubbe) /* Define if you have crypt. */ #undef HAVE_CRYPT
83591e1998-09-05Henrik Grubbström (Grubba) /* Define if you have ualarm. */
fda9ae1997-01-28Fredrik Hübinette (Hubbe) #undef HAVE_UALARM /* Define if your ualarm takes two args.. */ #undef UALARM_TAKES_TWO_ARGS /* Define if gettimeofday takes to arguments */ #undef GETTIMEOFDAY_TAKES_TWO_ARGS /* Define if you have a working, 8-bit-clean memcmp */ #undef HAVE_MEMCMP
9649491998-02-27Fredrik Hübinette (Hubbe) /* Define if you have gethostname */ #undef HAVE_GETHOSTNAME
fda9ae1997-01-28Fredrik Hübinette (Hubbe) /* Define if you have memmove. */ #ifndef __CHECKER__ #undef HAVE_MEMMOVE #endif /* Define if you have memmem. */ #undef HAVE_MEMMEM
de16081997-06-03Fredrik Hübinette (Hubbe) /* Define this if you have dlopen */ #undef HAVE_DLOPEN
c411dc1997-04-21Fredrik Hübinette (Hubbe) /* Define if you have ldexp. */ #undef HAVE_LDEXP
1e18021999-06-19Fredrik Hübinette (Hubbe) /* Define if you have rint. */ #undef HAVE_RINT
c411dc1997-04-21Fredrik Hübinette (Hubbe) /* Define if you have frexp. */ #undef HAVE_FREXP
fda9ae1997-01-28Fredrik Hübinette (Hubbe) /* Define if your signals are one-shot */ #undef SIGNAL_ONESHOT /* You have gcc stype function attributes? */ #undef HAVE_FUNCTION_ATTRIBUTES /* Do your compiler grock 'volatile' */ #define VOLATILE volatile
6a2ad71999-04-25Henrik Grubbström (Grubba) /* Define this if your compiler doesn't allow cast of void * to function pointer */ #undef NO_CAST_TO_FUN
fda9ae1997-01-28Fredrik Hübinette (Hubbe) /* How to extract a char and an unsigned char from a char * */ #undef EXTRACT_CHAR_BY_CAST #undef EXTRACT_UCHAR_BY_CAST
5ff14f1998-05-25Marcus Comstedt /* Do you have IEEE floats and/or doubles (either big or little endian) ? */ #undef FLOAT_IS_IEEE_BIG #undef FLOAT_IS_IEEE_LITTLE #undef DOUBLE_IS_IEEE_BIG #undef DOUBLE_IS_IEEE_LITTLE
de087e1998-05-29Henrik Grubbström (Grubba) /* Define this if strtol exists, and doesn't cut at 0x7fffffff */ #undef HAVE_WORKING_STRTOL
fda9ae1997-01-28Fredrik Hübinette (Hubbe) /* The rest of this file is just to eliminate warnings */ /* define if declaration of strchr is missing */ #undef STRCHR_DECL_MISSING /* define if declaration of malloc is missing */ #undef MALLOC_DECL_MISSING /* define if declaration of getpeername is missing */ #undef GETPEERNAME_DECL_MISSING /* define if declaration of gethostname is missing */ #undef GETHOSTNAME_DECL_MISSING /* define if declaration of popen is missing */ #undef POPEN_DECL_MISSING /* define if declaration of getenv is missing */ #undef GETENV_DECL_MISSING
5027721998-01-08Fredrik Hübinette (Hubbe) /* Define if we can declare 'extern char **environ' */ #undef DECLARE_ENVIRON
fda9ae1997-01-28Fredrik Hübinette (Hubbe) /* What byteorder does your machie use most machines use 4321, PC use 1234 */
71f3a21998-11-22Fredrik Hübinette (Hubbe) #define PIKE_BYTEORDER 0
fda9ae1997-01-28Fredrik Hübinette (Hubbe)  /* Number of possible filedesriptors */ #define MAX_OPEN_FILEDESCRIPTORS 1024 /* define this if #include <time.h> provides an external int timezone */ #undef HAVE_EXTERNAL_TIMEZONE /* define this if your struct tm has a tm_gmtoff */ #undef STRUCT_TM_HAS_GMTOFF /* Define if you have struct timeval */ #undef HAVE_STRUCT_TIMEVAL /* Define this to the max value of an unsigned short unles <limits.h> does.. */ #undef USHRT_MAX /* Define these if you are going to use threads */
53ffab1999-08-10Martin Stjernholm #undef PIKE_THREADS
fda9ae1997-01-28Fredrik Hübinette (Hubbe) #undef _REENTRANT #undef _THREAD_SAFE /* Define this if you want the UNIX taste of threads */ #undef _UNIX_THREADS /* Define this if you want the POSIX taste of threads */ #undef _MIT_POSIX_THREADS /* Define this if you want the SGI sproc taste of threads */ #undef _SGI_SPROC_THREADS
c1d2c71997-01-31Fredrik Hübinette (Hubbe) #undef _SGI_MP_SOURCE
fda9ae1997-01-28Fredrik Hübinette (Hubbe) 
b1f4eb1998-01-13Fredrik Hübinette (Hubbe) /* Define this if you have Windows NT threads */ #undef NT_THREADS
5377b91997-02-01Henrik Grubbström (Grubba) /* Define this if your pthreads have pthread_condattr_default */ #undef HAVE_PTHREAD_CONDATTR_DEFAULT
3bd5ab1998-08-31Henrik Grubbström (Grubba) /* Define this if you need to use &pthread_condattr_default in cond_init() */ #undef HAVE_PTHREAD_CONDATTR_DEFAULT_AIX
c7117f1997-04-10Fredrik Hübinette (Hubbe) /* Define if you have the pthread_attr_setstacksize function. */ #undef HAVE_PTHREAD_ATTR_SETSTACKSIZE
71ac9e1999-08-29Fredrik Hübinette (Hubbe) /* Define if you have the pthread_atfork function. */ #undef HAVE_PTHREAD_ATFORK
c7117f1997-04-10Fredrik Hübinette (Hubbe) /* Define if you have the pthread_cond_init function. */ #undef HAVE_PTHREAD_COND_INIT /* Define if you have the pthread_yield function. */ #undef HAVE_PTHREAD_YIELD
752e101999-04-30Fredrik Hübinette (Hubbe) /* Hack for stupid glibc linuxthreads */ #undef HAVE_PTHREAD_INITIAL_THREAD_BOS
bd775d1998-05-17Henrik Grubbström (Grubba) /* Define if your OS has the union wait. */ #undef HAVE_UNION_WAIT
0d4d5d1998-05-18Henrik Grubbström (Grubba) /* Define if you have isgraph */ #undef HAVE_ISGRAPH
cf3ba01997-09-12Henrik Grubbström (Grubba) /* Define if your cpp supports the ANSI concatenation operator ## */ #undef HAVE_ANSI_CONCAT
5539c51998-06-08Henrik Grubbström (Grubba) /* Define if you don't have F_SETFD, or it doesn't work */ #undef HAVE_BROKEN_F_SETFD
cf3ba01997-09-12Henrik Grubbström (Grubba) /* Define if your cpp supports K&R-style concatenation */ #undef HAVE_KR_CONCAT
9649491998-02-27Fredrik Hübinette (Hubbe) /* Use poll() instead of select() ? */ #undef HAVE_AND_USE_POLL
d561d61999-03-07Fredrik Hübinette (Hubbe) /* This works on Solaris or any UNIX where * waitpid can report ECHILD when running more than one at once * (or any UNIX where waitpid actually works) */ #undef USE_WAIT_THREAD /* This works on Linux or any UNIX where * waitpid works or where threads and signals bugs in * less annoying ways than Solaris. */ #undef USE_SIGCHILD
c201101998-03-25Henrik Grubbström (Grubba) /* Enable code to handle Out-Of-Band data */ #undef WITH_OOB
e0212b1998-04-13Henrik Grubbström (Grubba) /* Enable individual tracing of threads */ #undef TRACE_THREADS /* Enable tracing of the compiler */ #undef YYDEBUG
6ba8441998-07-11Henrik Grubbström (Grubba) /* Define if your compiler has a symbol __func__ */ #undef HAVE_WORKING___FUNC__ /* Define if your compiler has a symbol __FUNCTION__ */ #undef HAVE_WORKING___FUNCTION__
5f4f991998-08-07Henrik Grubbström (Grubba) /* The last argument to accept() is an ACCEPT_SIZE_T * */ #define ACCEPT_SIZE_T int
9debfa1999-08-11Fredrik Hübinette (Hubbe) /* Can we compile in MMX support? */ #undef TRY_USE_MMX
fda9ae1997-01-28Fredrik Hübinette (Hubbe) @BOTTOM@
9649491998-02-27Fredrik Hübinette (Hubbe) /* NT stuff */ #undef HAVE_GETSYSTEMTIMEASFILETIME #undef HAVE_LOADLIBRARY #undef HAVE_FREELIBRARY #undef HAVE_GETPROCADDRESS #undef DL_EXPORT
fda9ae1997-01-28Fredrik Hübinette (Hubbe) /* How to set a socket non-blocking */ #undef USE_IOCTL_FIONBIO
bdfb861997-12-22Fredrik Hübinette (Hubbe) #undef USE_IOCTLSOCKET_FIONBIO
fda9ae1997-01-28Fredrik Hübinette (Hubbe) #undef USE_FCNTL_O_NDELAY #undef USE_FCNTL_FNDELAY #undef USE_FCNTL_O_NONBLOCK /* We want to use errno later */
70c4151997-02-01Henrik Grubbström (Grubba) #ifdef _SGI_SPROC_THREADS /* Magic define of _SGI_MP_SOURCE above might redefine errno below */ #include <errno.h> #if defined(HAVE_OSERROR) && !defined(errno)
fda9ae1997-01-28Fredrik Hübinette (Hubbe) #define errno (oserror())
70c4151997-02-01Henrik Grubbström (Grubba) #endif /* HAVE_OSERROR && !errno */ #endif /* _SGI_SPROC_THREADS */
fda9ae1997-01-28Fredrik Hübinette (Hubbe)  #ifdef HAVE_FUNCTION_ATTRIBUTES #define ATTRIBUTE(X) __attribute__ (X) #else #define ATTRIBUTE(X) #endif
6ba8441998-07-11Henrik Grubbström (Grubba) #ifndef HAVE_WORKING___FUNC__ #ifdef HAVE_WORKING___FUNCTION__ #define __func__ __FUNCTION__ #else /* !HAVE_WORKING___FUNCTION__ */ #define __func__ "unknown" #endif /* HAVE_WORKING___FUNCTION__ */ #endif /* !HAVE_WORKING___FUNC__ */
cf3ba01997-09-12Henrik Grubbström (Grubba) /* NOTE: * PIKE_CONCAT doesn't get defined if there isn't any way to * concatenate symbols */ #ifdef HAVE_ANSI_CONCAT #define PIKE_CONCAT(X,Y) X##Y #define PIKE_CONCAT3(X,Y,Z) X##Y##Z
91224b1998-10-11Fredrik Hübinette (Hubbe) #define PIKE_CONCAT4(X,Y,Z,Q) X##Y##Z##Q
cf3ba01997-09-12Henrik Grubbström (Grubba) #else #ifdef HAVE_KR_CONCAT #define PIKE_CONCAT(X,Y) X/**/Y #define PIKE_CONCAT3(X,Y,Z) X/**/Y/**/Z
91224b1998-10-11Fredrik Hübinette (Hubbe) #define PIKE_CONCAT4(X,Y,Z,Q) X/**/Y/**/Z/**/Q
cf3ba01997-09-12Henrik Grubbström (Grubba) #endif /* HAVE_KR_CONCAT */ #endif /* HAVE_ANSI_CONCAT */
fda9ae1997-01-28Fredrik Hübinette (Hubbe) #endif /* MACHINE_H */