summaryrefslogtreecommitdiff
path: root/net/ettercap-NG/patches/patch-ae
blob: a4d9c71255a25970a2df9b4720f1227cd445835b (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
$NetBSD: patch-ae,v 1.2 2007/02/18 18:50:43 adrianp Exp $

--- configure.orig	2005-05-27 16:11:45.000000000 +0100
+++ configure
@@ -2169,7 +2169,7 @@ fi
 
    OS="LINUX"
    ;;
-*freebsd*)
+*freebsd* | *dragonfly*)
    cat >>confdefs.h <<\_ACEOF
 #define OS_BSD 1
 _ACEOF
@@ -31721,11 +31721,11 @@ echo "$as_me: error: \"*** ettercap cann
         ac_ec_libnet=$withval
         echo "$as_me:$LINENO: result: $withval" >&5
 echo "${ECHO_T}$withval" >&6
-     elif test -f $withval/include/libnet.h; then
+     elif test -f @@LN_INC@@/libnet.h; then
         owd=`pwd`
         if cd $withval; then withval=`pwd`; cd $owd; fi
-        LNETINC="-I$withval/include"
-        LNETLIB="-L$withval/lib -L$withval/src -lnet"
+        LNETINC="-I@@LN_INC@@"
+        LNETLIB="-L@@_LNLIB@@ -L$withval/src -lnet"
         ac_ec_libnet=$withval
         echo "$as_me:$LINENO: result: $withval" >&5
 echo "${ECHO_T}$withval" >&6