diff options
Diffstat (limited to 'net/ntop/patches/patch-ab')
-rw-r--r-- | net/ntop/patches/patch-ab | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/net/ntop/patches/patch-ab b/net/ntop/patches/patch-ab new file mode 100644 index 00000000000..07add5a68ce --- /dev/null +++ b/net/ntop/patches/patch-ab @@ -0,0 +1,46 @@ +$NetBSD: patch-ab,v 1.11 2005/11/18 13:03:53 rillig Exp $ + +The "gcc -o /dev/null" led to /dev/null be unlinked on Solaris. + +This patch does not affect the build and is only intended to be reported +upstream. + +--- configure.in.orig Thu Oct 20 22:07:37 2005 ++++ configure.in Fri Nov 18 13:56:53 2005 +@@ -715,8 +715,8 @@ AC_ARG_ENABLE(i18n, + + AC_ARG_ENABLE(jumbo-frames, + [ --enable-jumbo-frames Enable Jumbo (9K) Ethernet frames [[default=disabled]]], +- ac_enable_jumbo-frames="yes", +- ac_enable_jumbo-frames="no") ++ ac_enable_jumbo_frames="yes", ++ ac_enable_jumbo_frames="no") + + AC_ARG_ENABLE(ipv6, + [ --disable-ipv6 use IPv6 [[default=enabled]]], +@@ -1988,16 +1988,12 @@ AC_CHECK_FUNCS([uname]) + dnl> Test for strtok_r (we have our own defn if it's not available)C_CHECK_FUNCS([strtok_r]) + AC_CHECK_FUNCS([strtok_r]) + +-case "${CC}" in +- *gcc* ) + dnl> Check if malloc.h has mallinfo... + AC_MSG_CHECKING([for mallinfo in malloc.h]) + AC_LANG_CONFTEST( + [AC_LANG_PROGRAM([[#include <malloc.h>]], + [[struct mallinfo memStats = mallinfo();]])]) +- gcc conftest.c -o /dev/null > /dev/null 2> /dev/null +- rc=$? +- if test ".${rc}" = ".0"; then ++ if (eval "$ac_link"); then + AC_MSG_RESULT(yes) + AC_DEFINE_UNQUOTED(HAVE_MALLINFO_MALLOC_H, + 1, +@@ -2005,7 +2001,6 @@ case "${CC}" in + else + AC_MSG_RESULT(no) + fi +-esac + + NTOPCONFIGDEBUG_SETTINGS([After all tests]) + |