ftp://ftp.uni-heidelberg.de/pub/X11/contrib/applications/xscreensaver-2.07.tar.gz
[xscreensaver] / config.h.in
1 /* config.h.in --- xscreensaver, Copyright (c) 1997 Jamie Zawinski.
2  *
3  *  The best way to set these parameters is by running the included `configure'
4  *  script.  That examines your system, and generates `config.h' from 
5  *  `config.h.in'.
6  *
7  *  If something goes very wrong, you can edit `config.h' directly, but beware
8  *  that your changes will be lost if you ever run `configure' again.
9  */
10
11
12 /* *************************************************************************
13                           CONFIGURING SERVER EXTENSIONS
14    ************************************************************************* */
15
16 /* Define this if you have the XReadDisplay extension (I think this is an
17    SGI-only thing; it's in <X11/extensions/readdisplay.h>.)  A couple of
18    the screenhacks will take advantage of this if it's available.
19  */
20 #undef HAVE_READ_DISPLAY_EXTENSION
21
22 /* Define this if you have the XHPDisableReset function (an HP only thing.)
23  */
24 #undef HAVE_XHPDISABLERESET
25
26 /*  First, some background: there are three distinct server extensions which
27  *  are useful to a screen saver program: they are XIDLE, MIT-SCREEN-SAVER, 
28  *  and SCREEN_SAVER.
29  *
30  *  The XIDLE extension resides in .../contrib/extensions/xidle/ on the X11R5
31  *  contrib tape.  This extension lets the client get accurate idle-time 
32  *  information from the X server in a potentially more reliable way than by
33  *  simply watching for keyboard and mouse activity.  However, the XIDLE 
34  *  extension has apparently not been ported to X11R6.
35  *
36  *  The SCREEN_SAVER extension is found (as far as I know) only in the SGI
37  *  X server, and it exists in all releases since (at least) Irix 5.  The
38  *  relevant header file is /usr/include/X11/extensions/XScreenSaver.h.
39  *
40  *  The similarly-named MIT-SCREEN-SAVER extension came into existence long
41  *  after the SGI SCREEN_SAVER extension was already in use, and resides in
42  *  .../contrib/extensions/screensaver/ on the X11R6 contrib tape.  It is
43  *  also found in certain recent X servers built in to NCD X terminals.
44  *
45  *     The MIT extension does basically the same thing that the XIDLE extension
46  *     does, but there are two things wrong with it: first, because of the way
47  *     the extension was designed, the `fade' option to XScreenSaver will be
48  *     uglier: just before the screen fades out, there will be an unattractive
49  *     flicker to black, because this extension blanks the screen *before*
50  *     telling us that it is time to do so.  Second, this extension is known to
51  *     be buggy; on the systems I use, it works, but some people have reported
52  *     X server crashes as a result of using it.  XScreenSaver uses this
53  *     extension rather conservatively, because when I tried to use any of its
54  *     more complicated features, I could get it to crash the server at the
55  *     drop of a hat.
56  *
57  *     In short, the MIT-SCREEN-SAVER extension is a piece of junk.  The older
58  *     SGI SCREEN_SAVER extension works great, as does XIDLE.  It would be nice
59  *     If those two existed on more systems, that is, would be adopted by the
60  *     X Consortium in favor of their inferior "not-invented-here" entry.
61  */
62
63 /*  Define this if you have the XIDLE extension installed. If you have the
64  *  XIDLE extension, this is recommended.  (You have this extension if the
65  *  file /usr/include/X11/extensions/xidle.h exists.)  Turning on this flag
66  *  lets XScreenSaver work better with servers which support this extension; 
67  *  but it will still work with servers which do not suport it, so it's a good
68  *  idea to compile in support for it if you can.
69  */
70 #undef HAVE_XIDLE_EXTENSION
71
72 /*  Define this if you have the MIT-SCREEN-SAVER extension installed.  See the
73  *  caveats about this extension, above.  (It's available if the file
74  *  /usr/include/X11/extensions/scrnsaver.h exists.)
75  */
76 #undef HAVE_MIT_SAVER_EXTENSION
77
78 /*  Define this if you have the SGI SCREEN_SAVER extension.  This is standard
79  *  on Irix systems, and not available elsewhere.
80  */
81 #undef HAVE_SGI_SAVER_EXTENSION
82
83
84
85 /* *************************************************************************
86                           CONFIGURING GRAPHICS TOOLKITS
87    ************************************************************************* */
88
89 /*  Define this if you have Motif.
90  */
91 #undef HAVE_MOTIF
92
93 /*  Define this if you don't have Motif, but you have Athena (-Xaw).
94  */
95 #undef HAVE_ATHENA
96
97 /*  Define this if you have Athena, and the version you have includes the
98  *  XawViewportSetCoordinates function in Viewport.h (some old versions of
99  *  the library didn't have this function.)
100  */
101 #undef HAVE_XawViewportSetCoordinates
102
103 /*  Define this if you have the XPM library installed.  Some of the demos can
104  *  make use of this if it is available.
105  */
106 #undef HAVE_XPM
107
108 /*  Define this if you have the Xmu library.  This is standard part of X, and
109  *  if your vendor doesn't ship it, you should report that as a bug.
110  */
111 #undef HAVE_XMU
112
113 /*  Define this if you have OpenGL.  Some of the demos require it, so if you
114  *  don't have it, then those particular demos won't be built.  (This won't
115  *  affect the screen saver as a whole.)
116  */
117 #undef HAVE_GL
118
119 /*  Define this if you have GL, but it's the MesaGL variant.  (The libraries
120     have different names.)  (HAVE_GL should be defined too.)
121  */
122 #undef HAVE_MESA_GL
123
124 /*  Some screenhacks like to run an external program to generate random pieces
125     of text; set this to the one you like ("yow" and "fortune" are the most
126     likely prospects.)  Note that this is just the default; X resources can
127     be used to override it.
128  */
129 #define ZIPPY_PROGRAM "fortune"
130
131
132
133 /* *************************************************************************
134                        CONFIGURING PASSWORD AUTHENTICATION
135    ************************************************************************* */
136
137 /* Define this to remove the option of locking the screen at all.
138  */
139 #undef NO_LOCKING
140
141 /*  Define this if you want to use Kerberos authentication to lock/unlock the
142  *  screen instead of your local password.  This currently uses Kerberos V4, 
143  *  but a V5 server with V4 compatibility will work.  WARNING: DO NOT USE AFS
144  *  string-to-key passwords with this option. This option currently *only* 
145  *  works with standard Kerberos des_string_to_key.  If your password is an
146  *  AFS password and not a kerberos password, it will not authenticate 
147  *  properly. See the comments in driver/kpasswd.c for more information if you
148  *  need it. 
149  */
150 #undef HAVE_KERBEROS
151
152
153 /*  Define this if your system uses `shadow' passwords, that is, the passwords
154  *  live in /etc/shadow instead of /etc/passwd, and one reads them with
155  *  getspnam() instead of getpwnam().  (Note that SCO systems do some random
156  *  other thing; others might as well.  See the ifdefs in driver/passwd.c if
157  *  you're having trouble related to reading passwords.)
158  */
159 #undef HAVE_SHADOW_PASSWD
160
161 /*  Define this if your system is Digital or SCO Unix with so-called ``Enhanced
162     Security'', that is, the passwords live in /tcb/files/auth/<x>/<xyz> 
163     instead of in /etc/passwd, and one reads them with getprpwnam() instead 
164     of getpwnam().
165  */
166 #undef HAVE_ENHANCED_PASSWD
167
168 /*  Define this if your system is Solaris with ``adjunct'' passwords (this is
169     the version where one gets at the passwords with getpwanam() instead of
170     getpwnam().)  I haven't tested this one, let me know if it works.
171  */
172 #undef HAVE_ADJUNCT_PASSWD
173
174 /*  Define this if you are running HPUX with so-called ``Secure Passwords'' 
175     (if you have /usr/include/hpsecurity.h, you probably have this.)  I
176     haven't tested this one, let me know if it works.
177  */
178 #undef HAVE_HPUX_PASSWD
179
180
181 /* *************************************************************************
182                             OTHER C ENVIRONMENT JUNK
183    ************************************************************************* */
184
185 /* Define this to void* if you're using X11R4 or earlier.  */
186 #undef XPointer
187
188 /* Define if you have the nice function.  */
189 #undef HAVE_NICE
190
191 /* Define if you have the setpriority function.  */
192 #undef HAVE_SETPRIORITY
193
194 /* Define to empty if the keyword does not work.  */
195 #undef const
196
197 /* Define if you have <sys/wait.h> that is POSIX.1 compatible.  */
198 #undef HAVE_SYS_WAIT_H
199
200 /* Define as __inline if that's what the C compiler calls it.  */
201 #undef inline
202
203 /* Define to `int' if <sys/types.h> doesn't define.  */
204 #undef mode_t
205
206 /* Define to `int' if <sys/types.h> doesn't define.  */
207 #undef pid_t
208
209 /* Define as the return type of signal handlers (int or void).  */
210 #undef RETSIGTYPE
211
212 /* Define to `unsigned' if <sys/types.h> doesn't define.  */
213 #undef size_t
214
215 /* Define if you have the ANSI C header files.  */
216 #undef STDC_HEADERS
217
218 /* Define if you can safely include both <sys/time.h> and <time.h>.  */
219 #undef TIME_WITH_SYS_TIME
220
221 /* Define if you have the gettimeofday function.  */
222 #undef HAVE_GETTIMEOFDAY
223
224 /* Define if gettimeofday requires two arguments.  */
225 #undef GETTIMEOFDAY_TWO_ARGS
226
227 /* Define if you have the putenv function.  */
228 #undef HAVE_PUTENV
229
230 /* Define if you have the select function.  */
231 #undef HAVE_SELECT
232
233 /* Define if you have the getcwd function.  */
234 #undef HAVE_GETCWD
235
236 /* Define if you have the getcwd function.  */
237 #undef HAVE_GETWD
238
239 /* Define if you have the uname function.  */
240 #undef HAVE_UNAME
241
242 /* Define if you have the fcntl function.  */
243 #undef HAVE_FCNTL
244
245 /* Define if you have the <unistd.h> header file.  */
246 #undef HAVE_UNISTD_H