Add new build option WITH_XRANDR

This resolves Bug 1553
(cherry picked from commit 4626871a9d)
v3.5.13-sru
Alexander Golubev 12 years ago committed by Slávek Banko
parent f2208fe7d1
commit 20d7a10943

@ -84,6 +84,7 @@ OPTION( WITH_INOTIFY "Enable inotify support for kio" ON )
OPTION( WITH_GAMIN "Enable FAM/GAMIN support" ${WITH_ALL_OPTIONS} ) OPTION( WITH_GAMIN "Enable FAM/GAMIN support" ${WITH_ALL_OPTIONS} )
OPTION( WITH_SUDO_KDESU_BACKEND "Use sudo as backend for kdesu (default is su)" OFF ) OPTION( WITH_SUDO_KDESU_BACKEND "Use sudo as backend for kdesu (default is su)" OFF )
OPTION( WITH_LZMA "Enable support for LZMA/XZ" ${WITH_ALL_OPTIONS} ) OPTION( WITH_LZMA "Enable support for LZMA/XZ" ${WITH_ALL_OPTIONS} )
OPTION( WITH_XRANDR "Build the krandr library" ON )
OPTION( WITH_ASPELL "Enable aspell support" ${WITH_ALL_OPTIONS} ) OPTION( WITH_ASPELL "Enable aspell support" ${WITH_ALL_OPTIONS} )
OPTION( WITH_HSPELL "Enable hspell support" ${WITH_ALL_OPTIONS} ) OPTION( WITH_HSPELL "Enable hspell support" ${WITH_ALL_OPTIONS} )
@ -575,10 +576,14 @@ endif( NOT FONTCONFIG_FOUND )
##### check for Xrandr ########################## ##### check for Xrandr ##########################
if( WITH_XRANDR )
pkg_search_module( XRANDR xrandr>=1.2 ) pkg_search_module( XRANDR xrandr>=1.2 )
if( XRANDR_FOUND ) if( XRANDR_FOUND )
set( XRANDR_SUPPORT 1 ) set( XRANDR_SUPPORT 1 )
else( XRANDR_FOUND )
tde_message_fatal( "xrandr support was required, but not found on your system" )
endif( XRANDR_FOUND ) endif( XRANDR_FOUND )
endif( WITH_XRANDR )
##### check for xrender ######################### ##### check for xrender #########################
@ -909,9 +914,7 @@ add_subdirectory( arts )
add_subdirectory( interfaces ) add_subdirectory( interfaces )
add_subdirectory( kate ) add_subdirectory( kate )
add_subdirectory( kcert ) add_subdirectory( kcert )
if( XRANDR_FOUND ) tde_conditional_add_subdirectory( WITH_XRANDR krandr )
add_subdirectory( krandr )
endif( XRANDR_FOUND )
add_subdirectory( khtml ) add_subdirectory( khtml )
add_subdirectory( kcmshell ) add_subdirectory( kcmshell )
add_subdirectory( kconf_update ) add_subdirectory( kconf_update )

Loading…
Cancel
Save