From 46c8d6d2bf2d8a90cd3db6f461fee8461651678e Mon Sep 17 00:00:00 2001 From: Christophe CURIS Date: Tue, 9 Apr 2013 08:54:48 +0200 Subject: [PATCH] configure: Add detection of library kvm that is used under OpenBSD As proposed by Christian Schulte, when compiling WindowMaker on BSD it uses the kvm library to gather information on processes (in the os-dependant file), so we must properly link against the corresponding library, which this patch adds. --- configure.ac | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/configure.ac b/configure.ac index 6820f150..734851ae 100644 --- a/configure.ac +++ b/configure.ac @@ -228,6 +228,11 @@ AS_IF([test "x$ac_cv_search_strlcat" = "x-lbsd" -o "x$ac_cv_search_strlcpy" = "x ) AC_SUBST(LIBBSD) +dnl Check for OpenBSD kernel memory interface - kvm(3) +dnl ================================================== +AS_IF([test "x$WM_OSDEP" = "xbsd"], + AC_SEARCH_LIBS([kvm_openfiles], [kvm]) ) + dnl Check for inotify dnl ================= AC_CHECK_HEADERS(sys/inotify.h, AC_DEFINE(HAVE_INOTIFY, 1, Check for inotify)) -- 2.11.4.GIT