blob: 1db7fab5336cec214e6e05cc309ad25212321799 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
--- configure.in.orig Thu Jul 29 08:30:12 2004
+++ configure.in Thu Jul 29 08:30:23 2004
@@ -9,7 +9,9 @@
Linux*)
WANT_SYSINFO=yes
;;
-
+ FreeBSD*)
+ WANT_KVM=yes
+ ;;
# Solaris doesn't work at all right now
# SunOS*)
# WANT_KSTAT=yes
@@ -24,6 +26,8 @@
AM_CONDITIONAL(BUILD_LINUX, test x$uname = xLinux)
AM_CONDITIONAL(BUILD_SOLARIS, test x$uname = xSunOS)
+AM_CONDITIONAL(BUILD_FREEBSD, test x$uname = xFreeBSD)
+
dnl OWN_WINDOW option
@@ -108,6 +112,12 @@
fi
fi
+if test x$WANT_KVM = xyes; then
+ AC_CHECK_LIB(kvm, kvm_open,
+ LIBS="$LIBS -lkvm",
+ AC_MSG_ERROR([Could not find kvm_open in -lkvm.])
+ )
+fi
dnl Check getloadavg
AC_MSG_CHECKING(for getloadavg)
|