configure.in
changeset 1783 c546353b1ad4
parent 1745 741dc4e89f3a
child 1799 50e9cca3fe7b
     1.1 --- a/configure.in	Mon May 08 06:23:11 2006 +0000
     1.2 +++ b/configure.in	Mon May 08 06:38:13 2006 +0000
     1.3 @@ -927,10 +927,22 @@
     1.4                      fi
     1.5                  fi
     1.6              fi
     1.7 -
     1.8              if test x$definitely_enable_video_x11_xrandr = xyes; then
     1.9                  AC_DEFINE(SDL_VIDEO_DRIVER_X11_XRANDR)
    1.10              fi
    1.11 +            AC_ARG_ENABLE(video-x11-dpms,
    1.12 +AC_HELP_STRING([--enable-video-x11-dpms], [enable X11 DPMS extension [[default=yes]]]),
    1.13 +                            , enable_video_x11_dpms=yes)
    1.14 +            if test x$enable_video_x11_dpms = xyes; then
    1.15 +                AC_CHECK_HEADER(X11/extensions/dpms.h,
    1.16 +                                have_dpms_h_hdr=yes,
    1.17 +                                have_dpms_h_hdr=no,
    1.18 +                                [#include <X11/Xlib.h>
    1.19 +                                ])
    1.20 +                if test x$have_dpms_h_hdr = xyes; then
    1.21 +                    AC_DEFINE(SDL_VIDEO_DRIVER_X11_DPMS)
    1.22 +                fi
    1.23 +            fi
    1.24          fi
    1.25      fi
    1.26  }