diff options
Diffstat (limited to 'src/include/config')
-rw-r--r-- | src/include/config/aconfig.std | 28 | ||||
-rw-r--r-- | src/include/config/config.autoconf | 141 | ||||
-rw-r--r-- | src/include/config/config.std | 28 |
3 files changed, 197 insertions, 0 deletions
diff --git a/src/include/config/aconfig.std b/src/include/config/aconfig.std new file mode 100644 index 0000000..9c10eed --- /dev/null +++ b/src/include/config/aconfig.std @@ -0,0 +1,28 @@ +/* aconfig.h. Generated automatically by configure. */ +#ifndef ACONFIG_H +#define DATAPATH "./" +#define ACONFIG_H +#define HAVE_LONG_DOUBLE 1 +#define USE_PNG +#define SIZEOF_INT 4 +#define HAVE_FINITE +#define USE_STDIO +#define SIZEOF_SHORT 2 +#define SIZEOF_LONG 4 +/* #undef inline */ +/* #undef _POSIX_SOURCE */ +#define STDC_HEADERS 1 +/* Define if you can safely include both <sys/time.h> and <time.h>. */ +#define TIME_WITH_SYS_TIME 1 +#define HAVE_GETTIMEOFDAY 1 +#define HAVE_MOUSEMASK 1 +#define HAVE_USLEEP 1 +#define USE_ALLEGRO 1 +#define HAVE_UCLOCK 1 +#define HAVE_TERMATTRS 1 +#define HAVE_SETITIMER 1 +#define HAVE_LIMITS_H 1 +#define HAVE_SYS_TIME_H 1 +#define HAVE_UNISTD_H 1 +#define AA_DRIVER 1 +#endif diff --git a/src/include/config/config.autoconf b/src/include/config/config.autoconf new file mode 100644 index 0000000..8553574 --- /dev/null +++ b/src/include/config/config.autoconf @@ -0,0 +1,141 @@ +#ifndef CONFIG_H +#define CONFIG_H +#define HOMEDIR + +#ifdef __BEOS__ +#define MAIN_FUNCTION be_main +#ifdef __POWERPC__ +# define SLOWCACHESYNC +# ifdef __MWERKS__ +# define INLINEFABS(x) __fabs(x) +# endif +#endif +#endif + +#ifdef _WIN32 +#define CONFIGFILE "XaoS.cfg" +#else +#define CONFIGFILE ".XaoSrc" +#endif + +/*For compilers that don't support nameless unions, do a +#define NONAMELESSUNION +before #include <ddraw.h>*/ +#ifdef _WIN32 +#define NONAMELESSUNION +#endif + +/*#define I_WAS_HERE */ /*uncoment this to disable changing of parameters by atoconf */ + +#define FPOINT_TYPE long double + /*floating point math type on computers + with medium speed floating point math should + use float instead */ +#include <aconfig.h> +#define USE_STDIO +#if !defined(HAVE_LONG_DOUBLE)&&!defined(I_WAS_HERE) +#undef FPOINT_TYPE +#define FPOINT_TYPE double +#endif +#define CONST const +#define INLINE inline + +/* BeOS have broken long double IO routines on i386. Use our replacements */ +#ifdef __BEOS__ +#ifdef __i386__ +#define USE_XLDIO +#endif +#endif + +/* Win32 don't support long double IO. Use our replacements if possible */ +#ifdef _WIN32 +#ifndef __GNUC__ +1 +/* You need to solve long double IO problems to compile XaoS on non-gcc + * compiler */ +#endif +#define USE_XLDIO +#endif + +#include "gccaccel.h" +#ifdef HAVE_MOUSEMASK +#define NCURSESMOUSE +#endif +#ifndef HAVE_LIMITS_H +#define INT_MAX 2127423647 +#endif +#ifdef SVGA_DRIVER +#define DESTICKY +#endif +#ifdef COCOA_DRIVER +#define SFIXEDCOLOR +#define STRUECOLOR +#define STRUECOLOR16 +#define STRUECOLOR24 +#define SMBITMAPS +#define SLBITMAPS +#endif +#ifdef GTK_DRIVER +#define SFIXEDCOLOR +#define STRUECOLOR +#define STRUECOLOR16 +#define STRUECOLOR24 +#define SMBITMAPS +#define SLBITMAPS +#endif +#ifdef X11_DRIVER +#define SFIXEDCOLOR +#define STRUECOLOR +#define STRUECOLOR16 +#define STRUECOLOR24 +#define SMBITMAPS +#define SLBITMAPS +#endif +#ifdef SVGA_DRIVER +#undef STRUECOLOR16 +#define STRUECOLOR16 +#undef STRUECOLOR24 +#define STRUECOLOR24 +#endif +#ifdef GGI_DRIVER +#undef STRUECOLOR16 +#define STRUECOLOR16 +#undef STRUECOLOR24 +#define STRUECOLOR24 +#undef SLBITMAPS +#define SLBITMAPS +#endif +#ifdef BEOS_DRIVER +#ifdef __cplusplus +extern "C" { +#endif +#ifdef __GNUC__ +void be_exit_xaos(int i) __attribute__ ((__noreturn__)); +#else +void be_exit_xaos(int i); +#endif +#ifdef __cplusplus +} +#endif +#define exit_xaos(i) be_exit_xaos(i) +#undef STRUECOLOR16 +#define STRUECOLOR16 +#undef SFIXEDCOLOR +#define SFIXEDCOLOR +#undef SMBITMAPS +#define SMBITMAPS +#undef SLBITMAPS +#define SLBITMAPS +#endif +#ifdef WIN32_DRIVER +#define MAIN_FUNCTION XaoS_main +#undef STRUECOLOR16 +#define STRUECOLOR16 +#undef STRUECOLOR24 +#define STRUECOLOR24 +#endif +#ifdef HAVE_SELECT +#define COMPILE_PIPE +#endif +#endif /*CONFIG_H */ + diff --git a/src/include/config/config.std b/src/include/config/config.std new file mode 100644 index 0000000..c5313e9 --- /dev/null +++ b/src/include/config/config.std @@ -0,0 +1,28 @@ +#ifndef CONFIG_H +#define CONFIG_H +#define CONFIGFILE "xaos.cfg" +#define FPOINT_TYPE long double + /*floating point math type on computers + with medium speed floating point math should + use float instead */ +#define USE_LONG /*for autoconf..undefine if + fpoint_type is set to other than + long_double */ +/*#define MITSHM */ + /*undefine this if you system does not + support shared memory */ +/* You don't need to change these lines unless you now what you are doing */ + +#include <aconfig.h> +#define USE_STDIO +#include <gccaccel.h> +#define HAVE_GETTIMEOFDAY +#define TIME_WITH_SYS_TIME +#define HAVE_LIMITS_H +#define HAVE_UNISTH_H +#define HAVE_SYS_TIME_H +#define +#define STRUECOLOR24 +#define STRUECOLOR +#define STRUECOLOR16 +#endif /*CONFIG_H */ |