http://se.aminet.net/pub/X11/ftp.x.org/contrib/vms/xscreensaver-124.zip
[xscreensaver] / driver / config.h
1 /*
2  * Config file for xscreensaver, Copyright (c) 1991-1994 Jamie Zawinski.
3  * This file is included by the various Imakefiles.
4  */
5
6 /*  Uncomment the following line if you have the XIdle extension installed.
7  *  XIdle comes on the X11r5 contrib tape, in .../contrib/extensions/xidle/
8  *  (and maybe it will be on the r6 tape as well but I'm not sure where.)
9  *  Installing it is the morally superior thing to do, but xscreensaver will
10  *  work without it.
11  *
12  *  Actually it's likely that the R6 `screensaver' server extension will turn
13  *  out to be the better thing to use, but I haven't had time to add support
14  *  for it yet.  (See README to find the latest version of this program.)
15  */
16 /* #define HAVE_XIDLE */
17
18 /*  Uncomment the following line if you have the XPM library installed.
19  *  Some of the demos can make use of this.
20  */
21 #define HAVE_XPM
22
23 /*  Uncomment the following line if you don't have Motif.  If you don't have
24  *  Motif, then the screensaver won't have any dialog boxes, which means
25  *  that it won't be compiled with support for demo-mode or display-locking.
26  */
27 /* #define NO_MOTIF */
28
29 /* Uncomment the following line if for some reason the locking code doesn't
30  * work (for example, if you don't have the crypt() system call, or if you
31  * don't use standard passwd files.)
32  */
33 /* #define NO_LOCKING   */
34
35 /*  Uncomment the following line if your system doesn't have the select()
36  *  system call.
37  */
38 #define NO_SELECT
39
40 /*  Uncomment the following line if your system doesn't have the setuid(),
41  *  setregid(), and getpwnam() library routines.
42  *
43  *  WARNING: if you do this, it will be unsafe to run xscreensaver as root
44  *  (which probably means you can't have it be started by xdm.)  If you are
45  *  on such a system, please try to find the corresponding way to do this,
46  *  and then tell me what it is.
47  */
48 #define NO_SETUID
49
50 /*  Uncomment the following line if your system uses `shadow' passwords,
51  *  that is, the passwords live in /etc/shadow instead of /etc/passwd,
52  *  and one reads them with getspnam() instead of getpwnam().
53  */
54 /* #define HAVE_SHADOW */
55
56 /*  You may need to edit these to correspond to where Motif is installed.
57  */
58 /*#ifndef NO_MOTIF                          */
59 /*  MOTIFINCLUDES = -I/usr/local/include/   */
60 /* MOTIFLDOPTIONS = -L/usr/local/lib/       */
61 /*      MOTIFLIBS = -lXm                    */
62 /*#endif                                    */
63
64 /*  On some systems, only programs running as root can use the getpwent()
65     library routine.  This means that, in order for locking to work, the
66     screensaver must be installed as setuid to root.  Define this to make
67     that happen.  (You must run "make install" as root for it to work.)
68     (What systems other than HP and AIX need this?  Let me know.)
69  */
70 #if defined(HPArchitecture) || defined(AIXArchitecture) || defined(HAVE_SHADOW)
71 # define INSTALL_SETUID
72 #endif
73
74 #ifdef HPArchitecture
75       CCOPTIONS = -Aa -D_HPUX_SOURCE    /* eat me */
76 # if (ProjectX <= 4)
77   MOTIFINCLUDES = -I/usr/include/Motif1.1
78  MOTIFLDOPTIONS = -L/usr/lib/Motif1.1
79 # else /* R5 */
80   MOTIFINCLUDES = -I/usr/include/Motif1.2
81  MOTIFLDOPTIONS = -L/usr/lib/Motif1.2
82 # endif /* R5 */
83 #endif /* HPArchitecture */
84
85 #ifdef MacIIArchitecture
86       CCOPTIONS = -D_POSIX_SOURCE
87 #endif /* MacIIArchitecture */
88
89 #if (ProjectX <= 4)
90 # define R5ISMS -DXPointer="char*"
91 #else /* r5 or better */
92 # define R5ISMS
93 #endif
94
95 /* It seems that some versions of Sun's dynamic X libraries are broken; if
96    you get link errors about _get_wmShellWidgetClass being undefined, try
97    adding -Bstatic to the link command.
98  */