add DragonFly support.

from Joerg Sonnenberger.
This commit is contained in:
grant 2005-07-01 03:27:49 +00:00
parent 7962aa7c12
commit 40429dd365
2 changed files with 45 additions and 1 deletions

View file

@ -1,9 +1,10 @@
$NetBSD: distinfo,v 1.27 2005/06/24 05:58:42 grant Exp $
$NetBSD: distinfo,v 1.28 2005/07/01 03:27:49 grant Exp $
SHA1 (clamav-0.86.1.tar.gz) = a534111f09bfc1ba91479f6004c45b5ebb834ba1
RMD160 (clamav-0.86.1.tar.gz) = 2f82b329eaa1aa9bfc3ae1c39624ba873f0a82d9
Size (clamav-0.86.1.tar.gz) = 4016724 bytes
SHA1 (patch-aa) = 17c713c3b5833f895b7caa470ae31f3d45d60643
SHA1 (patch-ab) = afe9915e3fbed6c8dee93101149206a9b2f5c13c
SHA1 (patch-ad) = 3723ad7212f15ba4e2690127515bfb1f37b97f71
SHA1 (patch-af) = 605728b133ddb95827285d06bfeec9400222f874
SHA1 (patch-ah) = ab0bb5ccef06ad4fc37cc0210f939c00a9a2e052

View file

@ -0,0 +1,43 @@
$NetBSD: patch-ab,v 1.8 2005/07/01 03:27:49 grant Exp $
--- configure.orig 2005-07-01 13:22:45.000000000 +1000
+++ configure
@@ -11818,6 +11818,38 @@ _ACEOF
use_gethostbyname_r="no"
;;
+
+dragonfly*)
+ if test "$have_pthreads" = "yes"; then
+ LIBCLAMAV_LIBS="$LIBCLAMAV_LIBS -pthread"
+ CLAMD_LIBS="$CLAMD_LIBS -pthread"
+ CLAMAV_MILTER_LIBS="$CLAMAV_MILTER_LIBS -pthread"
+ TH_SAFE="-thread-safe"
+
+cat >>confdefs.h <<\_ACEOF
+#define CL_THREAD_SAFE 1
+_ACEOF
+
+
+cat >>confdefs.h <<\_ACEOF
+#define _REENTRANT 1
+_ACEOF
+
+ if test "$want_clamuko" = "yes"; then
+
+cat >>confdefs.h <<\_ACEOF
+#define CLAMUKO 1
+_ACEOF
+
+ fi
+ fi
+
+cat >>confdefs.h <<\_ACEOF
+#define C_BSD 1
+_ACEOF
+
+ disable_gethostbyname_r="yes"
+ ;;
openbsd*)
if test "$have_pthreads" = "yes"; then
LIBCLAMAV_LIBS="$LIBCLAMAV_LIBS -pthread"