summaryrefslogtreecommitdiffstats
path: root/ConfigureChecks.cmake
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2015-06-27 15:02:37 +0200
committerSlávek Banko <slavek.banko@axis.cz>2015-06-27 15:03:02 +0200
commitbdc3d0f043ce4dbcf25867cb79b097e8d433f64f (patch)
tree03595ff3e53350f7dc552c5a3d548e774c4fa8dc /ConfigureChecks.cmake
parent71d690a88f1fbbf94df42a9e479fabd036c676f7 (diff)
downloadtdeutils-bdc3d0f043ce4dbcf25867cb79b097e8d433f64f.tar.gz
tdeutils-bdc3d0f043ce4dbcf25867cb79b097e8d433f64f.zip
Fix build on freebsd
Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit 421c249f1ff8e75ce646b6d94c0e0a141b30f2a8)
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r--ConfigureChecks.cmake18
1 files changed, 18 insertions, 0 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
index 765f608..509362a 100644
--- a/ConfigureChecks.cmake
+++ b/ConfigureChecks.cmake
@@ -164,6 +164,17 @@ if ( BUILD_KSIM )
tde_message_fatal( "netsnmp is required, but was not found on your system" )
endif ()
endif( WITH_SNMP )
+
+ check_library_exists( devstat selectdevs "" HAVE_DEVSTAT_SELECTDEVS )
+ if( HAVE_DEVSTAT_SELECTDEVS )
+ set( DEVSTAT_LIBRARIES devstat )
+ else( )
+ check_library_exists( devstat devstat_selectdevs "" HAVE_DEVSTAT_DEVSTAT_SELECTDEVS )
+ if( HAVE_DEVSTAT_DEVSTAT_SELECTDEVS )
+ set( DEVSTAT_LIBRARIES devstat )
+ endif( )
+ endif( HAVE_DEVSTAT_SELECTDEVS )
+
endif ( BUILD_KSIM )
@@ -185,6 +196,13 @@ if ( BUILD_SUPERKARAMBA )
if( WITH_XMMS )
set( HAVE_XMMS 1 )
endif( WITH_XMMS )
+
+ if( ${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD" )
+ check_library_exists( kvm kvm_getswapinfo "" HAVE_LIBKVM )
+ if( HAVE_LIBKVM )
+ set( LIBKVM_LIBRARIES kvm )
+ endif( )
+ endif( )
endif ( BUILD_SUPERKARAMBA )