1 |
pva 10/04/02 05:58:19 |
2 |
|
3 |
Added: libpcap-1.1-cross-linux.patch |
4 |
Log: |
5 |
Version bump, bug #312337, thank Richard Hartmann for report. Fixes compatibility issue with autoconf-2.64, bug #281690, dropped Mike's patch for that. |
6 |
(Portage version: 2.1.8.3/cvs/Linux x86_64) |
7 |
|
8 |
Revision Changes Path |
9 |
1.1 net-libs/libpcap/files/libpcap-1.1-cross-linux.patch |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/libpcap/files/libpcap-1.1-cross-linux.patch?rev=1.1&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/libpcap/files/libpcap-1.1-cross-linux.patch?rev=1.1&content-type=text/plain |
13 |
|
14 |
Index: libpcap-1.1-cross-linux.patch |
15 |
=================================================================== |
16 |
=== modified file 'configure.in' |
17 |
--- configure.in 2010-04-02 04:52:17 +0000 |
18 |
+++ configure.in 2010-04-02 04:52:22 +0000 |
19 |
@@ -291,7 +291,12 @@ |
20 |
dnl XXX This could be done for cross-compiling, but for now it's not. |
21 |
dnl |
22 |
if test -z "$with_pcap" && test "$cross_compiling" = yes; then |
23 |
- AC_MSG_ERROR(pcap type not determined when cross-compiling; use --with-pcap=...) |
24 |
+ if test -z "$with_pcap" ; then |
25 |
+ case $host in |
26 |
+ *-linux*) with_pcap="linux";; |
27 |
+ *) AC_MSG_ERROR(pcap type not determined when cross-compiling; use --with-pcap=...);; |
28 |
+ esac |
29 |
+ fi |
30 |
fi |
31 |
AC_ARG_WITH(pcap, |
32 |
AC_HELP_STRING([--with-pcap=TYPE],[use packet capture TYPE])) |
33 |
@@ -412,8 +417,10 @@ |
34 |
linux) |
35 |
AC_MSG_CHECKING(Linux kernel version) |
36 |
if test "$cross_compiling" = yes; then |
37 |
+ dnl we could check linux/version.h here, but who runs |
38 |
+ dnl versions of linux older than 2.0.x anymore to bother ? |
39 |
AC_CACHE_VAL(ac_cv_linux_vers, |
40 |
- ac_cv_linux_vers=unknown) |
41 |
+ ac_cv_linux_vers=2) |
42 |
else |
43 |
AC_CACHE_VAL(ac_cv_linux_vers, |
44 |
ac_cv_linux_vers=`uname -r 2>&1 | \ |