ftp://ftp.uni-heidelberg.de/pub/X11/contrib/applications/xscreensaver-1.25.tar.Z
[xscreensaver] / config.h
1 /*
2  * Config file for xscreensaver, Copyright (c) 1991-1995 Jamie Zawinski.
3  * This file is included by the various Imakefiles.
4  */
5
6 /*  Uncomment the following line if you have the MIT-SCREEN-SAVER extension
7  *  installed.  This extension resides in .../contrib/extensions/screensaver/
8  *  on the X11R6 contrib tape.  (Turning on this flag lets XScreenSaver work
9  *  better with servers which support this extension; but it will still work
10  *  with servers which do not suport this extension, so it's a good idea to
11  *  compile in support for it if you can.)
12  */
13 /* #define HAVE_SAVER_EXTENSION */
14
15 /*  Uncomment the following line if you have the XIDLE extension installed.
16  *  This extension resides in .../contrib/extensions/xidle/ on the X11R5
17  *  contrib tape.  (Turning on this flag lets XScreenSaver work better with
18  *  servers which support this extension; but it will still work with servers
19  *  which do not suport this extension, so it's a good idea to compile in
20  *  support for it if you can.)
21  */
22 /* #define HAVE_XIDLE_EXTENSION */
23
24 /*  Uncomment the following line if you have the XPM library installed.
25  *  Some of the demos can make use of this if it is available.
26  */
27 #define HAVE_XPM
28
29 /*  Uncomment the following line if you don't have Motif.  If you don't have
30  *  Motif, then the screensaver won't have any dialog boxes, which means
31  *  that it won't be compiled with support for demo-mode or display-locking.
32  *  But other than that, it will work fine.
33  */
34 /* #define NO_MOTIF */
35
36 /*  Uncomment the following line if for some reason the locking code doesn't
37  *  work (for example, if you don't have the crypt() system call, or if you
38  *  don't use standard passwd files.)  If you need to do this, please let me
39  *  know.
40  */
41 /* #define NO_LOCKING */
42
43 /*  Uncomment the following line if your system doesn't have the select()
44  *  system call.  If you need to do this, please let me know.
45  */
46 /* #define NO_SELECT */
47
48 /*  Uncomment the following line if your system doesn't have the setuid(),
49  *  setregid(), and getpwnam() library routines.
50  *
51  *  WARNING: if you do this, it will be unsafe to run xscreensaver as root
52  *  (which probably means you can't have it be started by xdm.)  If you are
53  *  on such a system, please try to find the corresponding way to do this,
54  *  and then tell me what it is.
55  */
56 /* #define NO_SETUID */
57
58 /*  Uncomment the following line if your system uses `shadow' passwords,
59  *  that is, the passwords live in /etc/shadow instead of /etc/passwd,
60  *  and one reads them with getspnam() instead of getpwnam().
61  */
62 /* #define HAVE_SHADOW */
63
64 /*  You may need to edit these to correspond to where Motif is installed.
65  */
66 #ifndef NO_MOTIF
67   MOTIFINCLUDES = -I/usr/local/include/
68  MOTIFLDOPTIONS = -L/usr/local/lib/
69       MOTIFLIBS = -lXm
70 #endif
71
72 /*  On some systems, only programs running as root can use the getpwent()
73     library routine.  This means that, in order for locking to work, the
74     screensaver must be installed as setuid to root.  Define this to make
75     that happen.  (You must run "make install" as root for it to work.)
76     (What systems other than HP and AIX need this?  Let me know.)
77  */
78 #if defined(HPArchitecture) || defined(AIXArchitecture) || defined(HAVE_SHADOW)
79 # define INSTALL_SETUID
80 #endif
81
82 #ifdef HPArchitecture
83       CCOPTIONS = -Aa -D_HPUX_SOURCE    /* eat me */
84 # if (ProjectX <= 4)
85   MOTIFINCLUDES = -I/usr/include/Motif1.1
86  MOTIFLDOPTIONS = -L/usr/lib/Motif1.1
87 # else /* R5 */
88   MOTIFINCLUDES = -I/usr/include/Motif1.2
89  MOTIFLDOPTIONS = -L/usr/lib/Motif1.2
90 # endif /* R5 */
91 #endif /* HPArchitecture */
92
93 #ifdef MacIIArchitecture
94       CCOPTIONS = -D_POSIX_SOURCE
95 #endif /* MacIIArchitecture */
96
97 #if (ProjectX <= 4)
98 # define R5ISMS -DXPointer="char*"
99 #else /* r5 or better */
100 # define R5ISMS
101 #endif
102
103 /* It seems that some versions of Sun's dynamic X libraries are broken; if
104    you get link errors about _get_wmShellWidgetClass being undefined, try
105    adding -Bstatic to the link command.
106  */