summaryrefslogtreecommitdiffstats
path: root/ConfigureChecks.cmake
diff options
context:
space:
mode:
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 )