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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
#
# Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher
#
--- libnet/acinclude.m4~configure
+++ libnet/acinclude.m4
@@ -184,7 +184,7 @@
AC_CACHE_VAL(ac_cv_lbl_unaligned_fail,
[case "$target_cpu" in
- alpha|hp*|mips|sparc)
+ alpha|hp*|mips|sparc|arm)
ac_cv_lbl_unaligned_fail=yes
;;
@@ -259,7 +259,8 @@
dnl
AC_DEFUN(AC_LIBNET_ENDIAN_CHECK,
- [AC_MSG_CHECKING(machine endianess)
+ [AC_CACHE_CHECK([machine_endianness],
+ ac_cv_libnet_endianess, [
cat > conftest.c << EOF
# include <stdio.h>
@@ -312,8 +313,7 @@
fi
fi
rm -f conftest* core core.conftest
-
- AC_MSG_RESULT($ac_cv_libnet_endianess)
+ ])
if test $ac_cv_libnet_endianess = big ; then
AC_DEFINE(LIBNET_BIG_ENDIAN)
@@ -324,7 +324,7 @@
ENDIANESS="LIBNET_LIL_ENDIAN"
LIBNET_CONFIG_DEFINES="$LIBNET_CONFIG_DEFINES -DLIBNET_LIL_ENDIAN"
fi
- ])
+])
dnl
dnl Improved version of AC_CHECK_LIB
--- libnet/./configure.in~configure
+++ libnet/./configure.in
@@ -7,10 +7,11 @@
dnl Process this file with autoconf to produce a configure script.
-AC_INIT(src/libnet_build_ip.c)
+AC_INIT
+AC_CONFIG_SRCDIR([src/libnet_build_ip.c])
LIBNET_VERSION=`cat VERSION`
AC_MSG_RESULT(beginning autoconfiguration process for libnet-$LIBNET_VERSION...)
-AC_CANONICAL_SYSTEM
+AC_CANONICAL_TARGET([])
AM_INIT_AUTOMAKE(libnet, $LIBNET_VERSION)
AM_CONFIG_HEADER(include/config.h)
|