summaryrefslogtreecommitdiffstats
path: root/ConfigureChecks.cmake
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2014-04-01 21:50:50 +0000
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2014-04-01 21:51:38 +0000
commit98f8df6427a933ee405537128e7e913684a6d791 (patch)
tree5aa29ea4230e99ff8a9bb23abe355bed747b9aeb /ConfigureChecks.cmake
parent8083ca83aef5f36ccf7e51e6db8f0310b208f929 (diff)
downloadtdebase-98f8df6427a933ee405537128e7e913684a6d791.tar.gz
tdebase-98f8df6427a933ee405537128e7e913684a6d791.zip
Fix compton-tde FTBFS on older systems
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r--ConfigureChecks.cmake19
1 files changed, 18 insertions, 1 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
index 4fa14ed1e..9dfb6d137 100644
--- a/ConfigureChecks.cmake
+++ b/ConfigureChecks.cmake
@@ -3,6 +3,9 @@
# (C) 2010-2012 Serghei Amelian
# serghei (DOT) amelian (AT) gmail.com
#
+# (C) 2014 Timothy Pearson
+# kb9vqf (AT) pearsoncomputing (DOT) net
+#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
@@ -133,6 +136,20 @@ if( WITH_XEXT )
endif( )
+# libconfig (twin/compton-tde)
+if( WITH_LIBCONFIG )
+ pkg_search_module( LIBCONFIG libconfig )
+ if( LIBCONFIG_FOUND )
+ set( HAVE_LIBCONFIG 1 )
+ if( LIBCONFIG_VERSION VERSION_LESS 1.5.0 )
+ set( HAVE_LIBCONFIG_OLD_API 1 )
+ endif( )
+ else( LIBCONFIG_FOUND )
+ tde_message_fatal( "libconfig is requested, but was not found on your system" )
+ endif( )
+endif( )
+
+
# xtest (kxkb)
if( WITH_XTEST )
pkg_search_module( XTEST xtst )
@@ -322,4 +339,4 @@ if( WITH_ELFICON )
message(FATAL_ERROR "\nelficon support was requested, but the libr version on your system may not be compatible with TDE" )
endif( NOT "${LIBR_VERSION}" STREQUAL "0.6.0" )
set( HAVE_ELFICON 1 )
-endif( ) \ No newline at end of file
+endif( )