summaryrefslogtreecommitdiff
blob: 314b58050673fc00078f5839a445d0498ac63454 (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
=== modified file 'configure.in'
--- configure.in	2008-11-02 07:39:02 +0000
+++ configure.in	2008-11-02 07:45:33 +0000
@@ -218,7 +218,12 @@
 dnl XXX This could be done for cross-compiling, but for now it's not.
 dnl
 if test -z "$with_pcap" && test "$cross_compiling" = yes; then
-	AC_MSG_ERROR(pcap type not determined when cross-compiling; use --with-pcap=...)
+	if test -z "$with_pcap" ; then
+		case $host in
+			*-linux*) with_pcap="linux";;
+			*) AC_MSG_ERROR(pcap type not determined when cross-compiling; use --with-pcap=...);;
+		esac
+	fi
 fi
 AC_ARG_WITH(pcap, [  --with-pcap=TYPE        use packet capture TYPE])
 AC_MSG_CHECKING(packet capture type)
@@ -338,8 +343,10 @@
 linux)
 	AC_MSG_CHECKING(Linux kernel version)
  	if test "$cross_compiling" = yes; then
+		dnl we could check linux/version.h here, but who runs
+		dnl versions of linux older than 2.0.x anymore to bother ?
  		AC_CACHE_VAL(ac_cv_linux_vers,
- 		    ac_cv_linux_vers=unknown)
+ 		    ac_cv_linux_vers=2)
  	else
  		AC_CACHE_VAL(ac_cv_linux_vers,
  		    ac_cv_linux_vers=`uname -r 2>&1 | \