]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Don't care about the Linux kernel version number.
authorGuy Harris <[email protected]>
Sat, 3 May 2014 18:10:54 +0000 (11:10 -0700)
committerGuy Harris <[email protected]>
Sat, 3 May 2014 18:10:54 +0000 (11:10 -0700)
What OS-specific and OS-version-specific features tcpdump uses
*directly* should be checked for specifically; if it *requires* features
not available with systems using a 1.x kernel, the configure should fail
because of *that*, and if it doesn't require any such features, we
should allow building on/for systems with a 1.x kernel.

If there are issues with *libpcap* on systems with a 1.x kernel, then
that should be handled in the libpcap configure script - and, even if
it's impossible to capture traffic on such a system, you can build a
version of libpcap that can read files but not capture, which would give
you a tcpdump that could, at least, read files from other machines.

configure
configure.in

index 65d2f298b8788def2ae69c829b3b0d6e1b0bbbcc..559c873134ed970a31475d779a233dca7ddbbbd7 100755 (executable)
--- a/configure
+++ b/configure
@@ -4320,38 +4320,6 @@ fi
                esac
        fi
        ;;
-
-linux*)
-       { $as_echo "$as_me:${as_lineno-$LINENO}: checking Linux kernel version" >&5
-$as_echo_n "checking Linux kernel version... " >&6; }
-       if test "$cross_compiling" = yes; then
-               if ${ac_cv_linux_vers+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  ac_cv_linux_vers=unknown
-fi
-
-       else
-               if ${ac_cv_linux_vers+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  ac_cv_linux_vers=`uname -r 2>&1 | \
-                       sed -n -e '$s/.* //' -e '$s/\..*//p'`
-fi
-
-       fi
-       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_linux_vers" >&5
-$as_echo "$ac_cv_linux_vers" >&6; }
-       if test $ac_cv_linux_vers = unknown ; then
-               as_fn_error $? "cannot determine linux version when cross-compiling" "$LINENO" 5
-       fi
-       if test $ac_cv_linux_vers -lt 2 ; then
-               as_fn_error $? "version 2 or higher required; see the INSTALL doc for more info" "$LINENO" 5
-       fi
-       ;;
-
-*)
-       ;;
 esac
 
 
index 31d75112a23c90a99d6281b1cffbb3b7d0a709e4..dd384d500652f9c06eee182358407157e7bceba5 100644 (file)
@@ -89,28 +89,6 @@ darwin*)
                esac
        fi
        ;;
-
-linux*)
-       AC_MSG_CHECKING(Linux kernel version)
-       if test "$cross_compiling" = yes; then
-               AC_CACHE_VAL(ac_cv_linux_vers,
-                   ac_cv_linux_vers=unknown)
-       else
-               AC_CACHE_VAL(ac_cv_linux_vers,
-                   ac_cv_linux_vers=`uname -r 2>&1 | \
-                       sed -n -e '$s/.* //' -e '$s/\..*//p'`)
-       fi
-       AC_MSG_RESULT($ac_cv_linux_vers)
-       if test $ac_cv_linux_vers = unknown ; then
-               AC_MSG_ERROR(cannot determine linux version when cross-compiling)
-       fi
-       if test $ac_cv_linux_vers -lt 2 ; then
-               AC_MSG_ERROR(version 2 or higher required; see the INSTALL doc for more info)
-       fi
-       ;;
-
-*)
-       ;;
 esac