summaryrefslogtreecommitdiff
path: root/sysutils/torsmo/patches/patch-ad
blob: 44e7440462ae9e79c13beb47b36efa0d9b1deecd (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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
$NetBSD: patch-ad,v 1.2 2007/02/19 19:50:48 joerg Exp $

--- configure.orig	2004-12-21 21:57:05.000000000 +0000
+++ configure
@@ -795,11 +795,15 @@ fi
 
 uname=`uname`
 
+if test "$uname" = "DragonFly"; then
+    LIBS="$LIBS -lkinfo"
+fi
+
 case $uname in
   Linux*)
     WANT_SYSINFO=yes
     ;;
-  FreeBSD*)
+  FreeBSD*|DragonFly*)
     WANT_KVM=yes
     ;;
   NetBSD*)
@@ -839,7 +843,7 @@ else
 fi
 
 
-if test x$uname = xFreeBSD; then
+if test x$uname = xFreeBSD || test x$uname = xDragonFly; then
   BUILD_FREEBSD_TRUE=
   BUILD_FREEBSD_FALSE='#'
 else
@@ -924,14 +928,14 @@ fi
 
 
 
-if test x$want_seti == xyes; then
+if test x$want_seti = xyes; then
   BUILD_SETI_TRUE=
   BUILD_SETI_FALSE='#'
 else
   BUILD_SETI_TRUE='#'
   BUILD_SETI_FALSE=
 fi
-if test x$want_seti == xyes; then
+if test x$want_seti = xyes; then
   cat >> confdefs.h <<\EOF
 #define SETI 1
 EOF
@@ -949,14 +953,14 @@ fi
 
 
 
-if test x$want_nvctrl == xyes; then
+if test x$want_nvctrl = xyes; then
   BUILD_NVCTRL_TRUE=
   BUILD_NVCTRL_FALSE='#'
 else
   BUILD_NVCTRL_TRUE='#'
   BUILD_NVCTRL_FALSE=
 fi
-if test x$want_nvctrl == xyes; then
+if test x$want_nvctrl = xyes; then
   cat >> confdefs.h <<\EOF
 #define NVCTRL 1
 EOF