configure.in
branchSDL-1.2
changeset 4139 568c9b3c0167
parent 4134 31c7c57af8a4
child 4164 7a4c511c980a
--- a/configure.in	Tue Feb 26 10:50:28 2008 +0000
+++ b/configure.in	Fri Feb 29 13:55:44 2008 +0000
@@ -1090,19 +1090,6 @@
             if test x$definitely_enable_video_x11_xrandr = xyes; then
                 AC_DEFINE(SDL_VIDEO_DRIVER_X11_XRANDR)
             fi
-            AC_ARG_ENABLE(video-x11-dpms,
-AC_HELP_STRING([--enable-video-x11-dpms], [enable X11 DPMS extension [[default=yes]]]),
-                            , enable_video_x11_dpms=yes)
-            if test x$enable_video_x11_dpms = xyes; then
-                AC_CHECK_HEADER(X11/extensions/dpms.h,
-                                have_dpms_h_hdr=yes,
-                                have_dpms_h_hdr=no,
-                                [#include <X11/Xlib.h>
-                                ])
-                if test x$have_dpms_h_hdr = xyes; then
-                    AC_DEFINE(SDL_VIDEO_DRIVER_X11_DPMS)
-                fi
-            fi
         fi
     fi
 }
@@ -1673,6 +1660,13 @@
     fi
 }
 
+AC_ARG_ENABLE(screensaver,
+AC_HELP_STRING([--enable-screensaver], [enable screensaver by default while any SDL application is running [[default=no]]]),
+              , enable_screensaver=no)
+if test x$enable_screensaver = xno; then
+    AC_DEFINE(SDL_VIDEO_DISABLE_SCREENSAVER)
+fi
+
 dnl See if we can use the new unified event interface in Linux 2.4
 CheckInputEvents()
 {