$NetBSD: patch-ac,v 1.3 2005/08/18 23:51:24 dmcmahill Exp $ --- rprgdef.h.orig 2002-09-20 13:26:57.000000000 -0400 +++ rprgdef.h @@ -22,16 +22,27 @@ //#define DEF_LESS_DIALOGS // Don't show the startup dialog +// Define one of +// DEF_LINUX +// DEF_SOLARIS +// DEF_WINDOWS +// DEF_BSD +// DEF_IRIX + +#define DEF_@OPSYS@ + // Uncomment for Linux -#define DEF_LINUX // Are we running Linux? +#ifdef DEF_LINUX // Are we running Linux? #define RUNNING_LINUX true #define RUNNING_WINDOWS false #define RUNNING_SOLARIS false #define RUNNING_IRIX false -#define DATADIR "/usr/share" +#endif +#define DATADIR "@PREFIX@/share" -#ifdef __FreeBSD__ + +#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) #define DEF_FREEBSD #undef DEF_LINUX #define RUNNING_LINUX true // close enough @@ -42,35 +53,30 @@ // Uncomment for Solaris -/* -#define DEF_SOLARIS // Are we running Solaris? +#ifdef DEF_SOLARIS // Are we running Solaris? #define RUNNING_SOLARIS true #define RUNNING_WINDOWS false #define RUNNING_LINUX false #define RUNNING_IRIX false -*/ +#endif // Uncomment for Windoze -/* -#define DEF_WINDOWS // Iiiik - we're running windoze!!! +#ifdef DEF_WINDOWS // Iiiik - we're running windoze!!! #define RUNNING_WINDOWS true #define RUNNING_LINUX false #define RUNNING_SOLARIS false #define RUNNING_IRIX false -*/ - +#endif // Uncomment for IRIX -/* -#define DEF_SGI // Are we running IRIX? +#ifdef DEF_SGI // Are we running IRIX? #define RUNNING_SOLARIS false #define RUNNING_WINDOWS false #define RUNNING_LINUX false #define RUNNING_IRIX true -*/ - +#endif #ifdef DEF_SOLARIS #define true 1