From kde-devel Sat Aug 27 18:04:35 2005 From: Michael Olbrich Date: Sat, 27 Aug 2005 18:04:35 +0000 To: kde-devel Subject: DPMS detection Message-Id: <20050827180435.GA25393 () a168 ! apm ! etc ! tu-bs ! de> X-MARC-Message: https://marc.info/?l=kde-devel&m=112516589807771 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--NzB8fVQJ5HfG6fxh" --NzB8fVQJ5HfG6fxh Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi! The current check for DPMS doesn't work correctly for me. The main test includes: #include #include #include #include This part works. The checks for DPMSCapable and DPMSInfo hwoever only #include This doesn't compile for me. In my case adding X11/Xlib.h is enough (see patch). I'm not sure if there are situations where X11/Xproto.h and X11/X.h are needed as well. michael --NzB8fVQJ5HfG6fxh Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="admin.diff" Index: admin/acinclude.m4.in =================================================================== --- admin/acinclude.m4.in (revision 453897) +++ admin/acinclude.m4.in (working copy) @@ -3911,12 +3911,14 @@ [Define if you have the DPMSCapable prototype in ]) AC_CHECK_DECL(DPMSCapable, AC_DEFINE(HAVE_DPMSCAPABLE_PROTO),, - [#include ]) + [#include + #include ]) AH_TEMPLATE(HAVE_DPMSINFO_PROTO, [Define if you have the DPMSInfo prototype in ]) AC_CHECK_DECL(DPMSInfo, AC_DEFINE(HAVE_DPMSINFO_PROTO),, - [#include ]) + [#include + #include ]) CFLAGS="$ac_save_cflags" AC_SUBST(DPMSINC) AC_SUBST(DPMSLIB) --NzB8fVQJ5HfG6fxh Content-Type: text/plain; charset="iso-8859-1" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline = >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscrib= e << --NzB8fVQJ5HfG6fxh--