From 421c249f1ff8e75ce646b6d94c0e0a141b30f2a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Sat, 27 Jun 2015 15:02:37 +0200 Subject: Fix build on freebsd MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- ConfigureChecks.cmake | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'ConfigureChecks.cmake') 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 ) -- cgit v1.2.1