summaryrefslogtreecommitdiff
path: root/net/ntop/patches/patch-aa
blob: aa0ec65eaa1f4b5809157aea457e69682f889d9c (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
$NetBSD: patch-aa,v 1.9 2005/11/18 13:03:53 rillig Exp $

The "gcc -o /dev/null" led to /dev/null be unlinked on Solaris.

--- configure.orig	Thu Oct 20 22:07:43 2005
+++ configure	Fri Nov 18 13:59:35 2005
@@ -21625,9 +21625,9 @@ fi;
 # Check whether --enable-jumbo-frames or --disable-jumbo-frames was given.
 if test "${enable_jumbo_frames+set}" = set; then
   enableval="$enable_jumbo_frames"
-  ac_enable_jumbo-frames="yes"
+  ac_enable_jumbo_frames="yes"
 else
-  ac_enable_jumbo-frames="no"
+  ac_enable_jumbo_frames="no"
 fi;
 
 # Check whether --enable-ipv6 or --disable-ipv6 was given.
@@ -22985,6 +22985,15 @@ case "${target}:${CC}" in
         echo "* This appears to be ${DEFINEOS} (release not checked)"
       ;;
 
+    *-*-netbsd*:* )
+	DEFINEOS="NETBSD"
+        echo "* This appears to be ${DEFINEOS}"
+      ;;
+    *-*-openbsd*:* )
+	DEFINEOS="OPENBSD"
+        echo "* This appears to be ${DEFINEOS}"
+      ;;
+
     * )
         echo "* ${target} is an unknown/unsupported OS"
         echo "*"
@@ -41690,8 +41699,6 @@ fi
 done
 
 
-case "${CC}" in
-  *gcc* )
         echo "$as_me:$LINENO: checking for mallinfo in malloc.h" >&5
 echo $ECHO_N "checking for mallinfo in malloc.h... $ECHO_C" >&6
     cat >conftest.$ac_ext <<_ACEOF
@@ -41709,9 +41716,7 @@ struct mallinfo memStats = mallinfo();
   return 0;
 }
 _ACEOF
-    gcc conftest.c -o /dev/null > /dev/null 2> /dev/null
-    rc=$?
-    if test ".${rc}" = ".0"; then
+    if eval "$ac_link"; then
         echo "$as_me:$LINENO: result: yes" >&5
 echo "${ECHO_T}yes" >&6
 
@@ -41723,7 +41728,6 @@ _ACEOF
         echo "$as_me:$LINENO: result: no" >&5
 echo "${ECHO_T}no" >&6
     fi
-esac
 
 # Expansion of NTOPCONFIGDEBUG_SETTINGS()
 if test ".${NTOPCONFIGDEBUG}" = ".yes"; then