[MPlayer-dev-eng] [PATCH] Use XScreenSaverSuspend if supported

Diego Biurrun diego at biurrun.de
Thu Apr 13 22:05:43 CEST 2006


On Tue, Apr 11, 2006 at 11:06:00PM +0300, Ismail Donmez wrote:
> 
> Please review/comment.
> 
> --- configure	4 Apr 2006 05:09:12 -0000	1.1159
> +++ configure	11 Apr 2006 20:06:09 -0000
> @@ -6802,6 +6802,30 @@
>  
> +echocheck "XScreenSaverSuspend"
> +cat > $TMPC << EOF
> +#include <X11/Xlib.h>
> +#include <X11/extensions/scrnsaver.h>
> +int main(void) {
> +    XScreenSaverSuspend(NULL,True);
> +    return 0;
> +}
> +EOF

Put the test under a _xss_suspend=auto check.

> +_ld_xss='-lXss'

Skip this variable, you only need the value once.

> +if cc_check $_inc_x11 $_ld_x11 $_ld_xss; then
> + _xss_suspend=yes
> +fi

simpler:

  cc_check $_inc_x11 $_ld_x11 $_ld_xss && _xss_suspend=yes

Diego




More information about the MPlayer-dev-eng mailing list