ftp://ftp.uni-heidelberg.de/pub/X11/contrib/applications/xscreensaver-1.25.tar.Z
[xscreensaver] / config.h
index dd54ba3832efc9234069aa0918d7c9d79fd02dbe..02ca5f4c3ee4edf330385b635d66fa4388580b4f 100644 (file)
--- a/config.h
+++ b/config.h
@@ -1,34 +1,47 @@
 /*
- * Config file for xscreensaver, Copyright (c) 1991-1993 Jamie Zawinski.
+ * Config file for xscreensaver, Copyright (c) 1991-1995 Jamie Zawinski.
  * This file is included by the various Imakefiles.
  */
 
-/*  Uncomment the following line if you have the XIdle extension installed.
- *  XIdle comes on the X11r5 contrib tape, in .../contrib/extensions/xidle/.
- *  Installing it is the morally superior thing to do, but xscreensaver will
- *  work without it.
+/*  Uncomment the following line if you have the MIT-SCREEN-SAVER extension
+ *  installed.  This extension resides in .../contrib/extensions/screensaver/
+ *  on the X11R6 contrib tape.  (Turning on this flag lets XScreenSaver work
+ *  better with servers which support this extension; but it will still work
+ *  with servers which do not suport this extension, so it's a good idea to
+ *  compile in support for it if you can.)
  */
-/* #define HAVE_XIDLE */
+/* #define HAVE_SAVER_EXTENSION */
+
+/*  Uncomment the following line if you have the XIDLE extension installed.
+ *  This extension resides in .../contrib/extensions/xidle/ on the X11R5
+ *  contrib tape.  (Turning on this flag lets XScreenSaver work better with
+ *  servers which support this extension; but it will still work with servers
+ *  which do not suport this extension, so it's a good idea to compile in
+ *  support for it if you can.)
+ */
+/* #define HAVE_XIDLE_EXTENSION */
 
 /*  Uncomment the following line if you have the XPM library installed.
- *  Some of the demos can make use of this.
+ *  Some of the demos can make use of this if it is available.
  */
-#define HAVE_XPM 
+#define HAVE_XPM
 
 /*  Uncomment the following line if you don't have Motif.  If you don't have
  *  Motif, then the screensaver won't have any dialog boxes, which means
  *  that it won't be compiled with support for demo-mode or display-locking.
+ *  But other than that, it will work fine.
  */
-/*#define NO_MOTIF */
+/* #define NO_MOTIF */
 
-/* Uncomment the following line if for some reason the locking code doesn't
- * work (for example, if you don't have the crypt() system call, or if you
- * don't use standard passwd files.)
+/*  Uncomment the following line if for some reason the locking code doesn't
+ *  work (for example, if you don't have the crypt() system call, or if you
+ *  don't use standard passwd files.)  If you need to do this, please let me
+ *  know.
  */
-#define NO_LOCKING
+/* #define NO_LOCKING */
 
 /*  Uncomment the following line if your system doesn't have the select()
- *  system call.
+ *  system call.  If you need to do this, please let me know.
  */
 /* #define NO_SELECT */
 
  *  that is, the passwords live in /etc/shadow instead of /etc/passwd,
  *  and one reads them with getspnam() instead of getpwnam().
  */
-#define HAVE_SHADOW 
+/* #define HAVE_SHADOW */
 
 /*  You may need to edit these to correspond to where Motif is installed.
  */
 #ifndef NO_MOTIF
-  MOTIFINCLUDES = -I/usr/X/include
- MOTIFLDOPTIONS = -L/usr/X/lib
-      MOTIFLIBS = -lXm 
+  MOTIFINCLUDES = -I/usr/local/include/
+ MOTIFLDOPTIONS = -L/usr/local/lib/
+      MOTIFLIBS = -lXm
 #endif
 
 /*  On some systems, only programs running as root can use the getpwent()
     library routine.  This means that, in order for locking to work, the
     screensaver must be installed as setuid to root.  Define this to make
     that happen.  (You must run "make install" as root for it to work.)
-    (What systems other than HP need this?  Let me know.)
+    (What systems other than HP and AIX need this?  Let me know.)
  */
-#if defined(HPArchitecture) || defined(HAVE_SHADOW)
+#if defined(HPArchitecture) || defined(AIXArchitecture) || defined(HAVE_SHADOW)
 # define INSTALL_SETUID
 #endif
 
@@ -86,5 +99,8 @@
 #else /* r5 or better */
 # define R5ISMS
 #endif
-/*EXTRA_LIBRARIES=-L/usr/ucblib -lucb -lnsl*/
-EXTRA_LIBRARIES= -lgen -L/usr/ucblib -lucb -lnsl
+
+/* It seems that some versions of Sun's dynamic X libraries are broken; if
+   you get link errors about _get_wmShellWidgetClass being undefined, try
+   adding -Bstatic to the link command.
+ */