summaryrefslogtreecommitdiff
path: root/mail/clamav/patches/patch-aa
blob: 6570423f96884bffc2f3e7d6f9d8a8f9561bbbe2 (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
$NetBSD: patch-aa,v 1.1.1.1 2003/03/26 18:55:17 agc Exp $

--- configure.in.orig	Thu Nov 21 01:43:16 2002
+++ configure.in	Tue Mar 11 17:48:07 2003
@@ -137,12 +137,7 @@
 AC_SUBST(DBDIR)
 
 # config file
-cfg_dir=`echo $sysconfdir | grep prefix`
-if test -n "$cfg_dir"; then
-    cfg_dir="$ac_default_prefix/etc"
-else
-    cfg_dir="$sysconfdir"
-fi
+cfg_dir=$prefix/etc
 
 CFGDIR=$cfg_dir
 AC_SUBST(CFGDIR)
@@ -224,9 +219,13 @@
     AC_DEFINE(C_BSD)
     ;;
 netbsd*)
-    AC_MSG_RESULT(NetBSD detected. Disabling thread support.)
+    AC_MSG_RESULT(NetBSD detected. Adding pth stuff.)
     have_pthreads="no"
     AC_DEFINE(C_BSD)
+    LIBCLAMAV_LIBS="$LIBCLAMAV_LIBS -L/usr/pkg/lib -lpthread"
+    AC_DEFINE(CL_THREAD_SAFE)
+    CLAMD_LIBS="-lpthread -L/usr/pkg/lib"
+    CFLAGS="$CFLAGS -I/usr/pkg/include"
     ;;
 bsd*)
     AC_MSG_RESULT(Unknown BSD detected. Disabling thread support.)