@ -212,15 +212,23 @@ endif( )
if ( BUILD_KARM AND WITH_XSCREENSAVER )
if ( BUILD_KARM AND WITH_XSCREENSAVER )
check_library_exists ( Xss XScreenSaverQueryInfo "" HAVE_XSSLIB )
if ( HAVE_XSSLIB )
pkg_search_module ( XSS xscrnsaver )
pkg_search_module ( XSS xscrnsaver )
else ( )
check_library_exists ( Xext XScreenSaverQueryInfo "" HAVE_XSSLIB )
if ( XSS_FOUND )
tde_save_and_set ( CMAKE_REQUIRED_INCLUDES "${XSS_INCLUDE_DIRS}" )
check_library_exists ( Xss XScreenSaverQueryInfo "${XSS_LIBRARY_DIRS}" HAVE_XSSLIB )
tde_restore ( CMAKE_REQUIRED_INCLUDES )
else ( XSS_FOUND )
check_library_exists ( Xss XScreenSaverQueryInfo "" HAVE_XSSLIB )
endif ( XSS_FOUND )
if ( NOT HAVE_XSSLIB )
check_library_exists ( Xext XScreenSaverQueryInfo "$(XEXT_LIBRARY_DIRS}" HAVE_XSSLIB )
if ( HAVE_XSSLIB )
if ( HAVE_XSSLIB )
pkg_search_module ( XSS xext )
pkg_search_module ( XSS xext )
endif ( )
endif ( )
endif ( )
endif ( )
check_include_file ( X11/extensions/scrnsaver.h HAVE_XSCREENSAVER_H )
check_include_file ( X11/extensions/scrnsaver.h HAVE_XSCREENSAVER_H )
if ( HAVE_XSSLIB AND HAVE_XSCREENSAVER_H )
if ( HAVE_XSSLIB AND HAVE_XSCREENSAVER_H )
set ( HAVE_LIBXSS 1 )
set ( HAVE_LIBXSS 1 )