2 * Config file for xscreensaver, Copyright (c) 1991-1994 Jamie Zawinski.
3 * This file is included by the various Imakefiles.
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
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.)
16 /* #define HAVE_XIDLE */
18 /* Uncomment the following line if you have the XPM library installed.
19 * Some of the demos can make use of this.
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.
27 /* #define NO_MOTIF */
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.)
33 /* #define NO_LOCKING */
35 /* Uncomment the following line if your system doesn't have the select()
40 /* Uncomment the following line if your system doesn't have the setuid(),
41 * setregid(), and getpwnam() library routines.
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.
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().
54 /* #define HAVE_SHADOW */
56 /* You may need to edit these to correspond to where Motif is installed.
59 /* MOTIFINCLUDES = -I/usr/local/include/ */
60 /* MOTIFLDOPTIONS = -L/usr/local/lib/ */
61 /* MOTIFLIBS = -lXm */
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.)
70 #if defined(HPArchitecture) || defined(AIXArchitecture) || defined(HAVE_SHADOW)
71 # define INSTALL_SETUID
75 CCOPTIONS = -Aa -D_HPUX_SOURCE /* eat me */
77 MOTIFINCLUDES = -I/usr/include/Motif1.1
78 MOTIFLDOPTIONS = -L/usr/lib/Motif1.1
80 MOTIFINCLUDES = -I/usr/include/Motif1.2
81 MOTIFLDOPTIONS = -L/usr/lib/Motif1.2
83 #endif /* HPArchitecture */
85 #ifdef MacIIArchitecture
86 CCOPTIONS = -D_POSIX_SOURCE
87 #endif /* MacIIArchitecture */
90 # define R5ISMS -DXPointer="char*"
91 #else /* r5 or better */
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.