summaryrefslogtreecommitdiffstats
path: root/ksnapshot/ConfigureChecks.cmake
diff options
context:
space:
mode:
authorDarrell Anderson <humanreadable@yahoo.com>2012-04-27 23:24:31 -0500
committerDarrell Anderson <humanreadable@yahoo.com>2012-04-27 23:24:31 -0500
commit0efb8a18d45f2432c9c796aa5ef7af3f124967ea (patch)
treeeb3903338e5ea8f1ab10de7095125197dc90ff9b /ksnapshot/ConfigureChecks.cmake
parent5ad5528b30fecd30c2cfdd25cb515385b84e1bfd (diff)
downloadtdegraphics-0efb8a18d45f2432c9c796aa5ef7af3f124967ea.tar.gz
tdegraphics-0efb8a18d45f2432c9c796aa5ef7af3f124967ea.zip
GCC 4.7 fix.
This partially resolves bug report 958. Thanks to David C. Rankin and Serghei Amelian.
Diffstat (limited to 'ksnapshot/ConfigureChecks.cmake')
-rw-r--r--ksnapshot/ConfigureChecks.cmake11
1 files changed, 10 insertions, 1 deletions
diff --git a/ksnapshot/ConfigureChecks.cmake b/ksnapshot/ConfigureChecks.cmake
index d9a7dd4a..469ba23d 100644
--- a/ksnapshot/ConfigureChecks.cmake
+++ b/ksnapshot/ConfigureChecks.cmake
@@ -9,4 +9,13 @@
#
#################################################
-check_include_file( X11/extensions/shape.h HAVE_X11_EXTENSIONS_SHAPE_H )
+## test for and explicitly include libXext
+if( WITH_XEXT )
+ pkg_search_module( XEXT xext )
+ if( XEXT_FOUND )
+ check_include_file( "X11/extensions/shape.h" HAVE_X11_EXTENSIONS_SHAPE_H )
+ endif( )
+ if( NOT XEXT_FOUND )
+ tde_message_fatal( "You requested Xext support, but was not found on your system." )
+ endif( )
+endif( )