]> git.pld-linux.org Git - packages/tcpdump.git/commitdiff
- allow build without libsmi
authorJan Rękorajski <baggins@pld-linux.org>
Thu, 28 Dec 2000 14:39:44 +0000 (14:39 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    tcpdump-no-libsmi.patch -> 1.1

tcpdump-no-libsmi.patch [new file with mode: 0644]

diff --git a/tcpdump-no-libsmi.patch b/tcpdump-no-libsmi.patch
new file mode 100644 (file)
index 0000000..4f3c2ca
--- /dev/null
@@ -0,0 +1,41 @@
+--- tcpdump-cvs20001217/configure.in~  Wed Dec 27 17:56:21 2000
++++ tcpdump-cvs20001217/configure.in   Wed Dec 27 17:56:47 2000
+@@ -44,38 +44,6 @@
+       ;;
+ esac
+-
+-AC_CHECK_HEADERS(smi.h)
+-AC_CHECK_LIB(smi, smiInit)
+-AC_MSG_CHECKING([whether to enable libsmi])
+-        AC_TRY_RUN([ /* libsmi available check */
+-#include <smi.h>
+-main()
+-{
+-  int current, revision, age, n;
+-  const int required = 2;
+-  if (smiInit("")) 
+-    exit(1);
+-  if (strcmp(SMI_LIBRARY_VERSION, smi_library_version))
+-    exit(2);
+-  n = sscanf(smi_library_version, "%d:%d:%d", &current, &revision, &age);
+-  if (n != 3)
+-    exit(3);
+-  if (required < current - age || required > current)
+-    exit(4);
+-  exit(0);
+-}
+-],
+-[ AC_MSG_RESULT(yes)
+-  AC_DEFINE(LIBSMI)
+-  libsmi=yes],
+-[ AC_MSG_RESULT(no)
+-  libsmi=no],
+-[ AC_MSG_RESULT(not when cross-compiling)
+-  libsmi=no]
+-)
+-
+-
+ CFLAGS="$CFLAGS -Dss_family=__ss_family -Dss_len=__ss_len"
+ AC_MSG_CHECKING([whether to enable ipv6])
+ AC_ARG_ENABLE(ipv6,
This page took 0.030205 seconds and 4 git commands to generate.