Corrected bug #149
[openwrt.git] / openwrt / package / quagga / patches / quagga-cross.patch
1 --- quagga-0.98.4/configure.orig Mon Jun 27 19:05:31 2005
2 +++ quagga-0.98.4/configure Mon Jul 11 20:32:07 2005
3 @@ -12623,69 +12623,6 @@
4
5
6
7 -echo "$as_me:$LINENO: checking for broken CMSG_FIRSTHDR" >&5
8 -echo $ECHO_N "checking for broken CMSG_FIRSTHDR... $ECHO_C" >&6
9 -if test "$cross_compiling" = yes; then
10 - echo "$as_me:$LINENO: result: no" >&5
11 -echo "${ECHO_T}no" >&6
12 -else
13 - cat >conftest.$ac_ext <<_ACEOF
14 -/* confdefs.h. */
15 -_ACEOF
16 -cat confdefs.h >>conftest.$ac_ext
17 -cat >>conftest.$ac_ext <<_ACEOF
18 -/* end confdefs.h. */
19 -
20 -#ifdef SUNOS_5
21 -#define _XPG4_2
22 -#define __EXTENSIONS__
23 -#endif
24 -#include <stdlib.h>
25 -#include <sys/types.h>
26 -#include <sys/socket.h>
27 -
28 -main()
29 -{
30 - struct msghdr msg;
31 - char buf[4];
32 -
33 - msg.msg_control = buf;
34 - msg.msg_controllen = 0;
35 -
36 - if (CMSG_FIRSTHDR(&msg) != NULL)
37 - exit(0);
38 - exit (1);
39 -}
40 -_ACEOF
41 -rm -f conftest$ac_exeext
42 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43 - (eval $ac_link) 2>&5
44 - ac_status=$?
45 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
46 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
47 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48 - (eval $ac_try) 2>&5
49 - ac_status=$?
50 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
51 - (exit $ac_status); }; }; then
52 - echo "$as_me:$LINENO: result: yes - using workaround" >&5
53 -echo "${ECHO_T}yes - using workaround" >&6
54 -cat >>confdefs.h <<\_ACEOF
55 -#define HAVE_BROKEN_CMSG_FIRSTHDR
56 -_ACEOF
57 -
58 -else
59 - echo "$as_me: program exited with status $ac_status" >&5
60 -echo "$as_me: failed program was:" >&5
61 -sed 's/^/| /' conftest.$ac_ext >&5
62 -
63 -( exit $ac_status )
64 -echo "$as_me:$LINENO: result: no" >&5
65 -echo "${ECHO_T}no" >&6
66 -fi
67 -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
68 -fi
69 -
70 echo "$as_me:$LINENO: checking route read method check" >&5
71 echo $ECHO_N "checking route read method check... $ECHO_C" >&6
72 if test "${zebra_rtread+set}" = set; then
73 @@ -12783,10 +12720,7 @@
74 if test "${zebra_ipforward_path+set}" = set; then
75 echo $ECHO_N "(cached) $ECHO_C" >&6
76 else
77 - for zebra_ipforward_path in /proc/net/snmp /dev/ip /dev/null;
78 -do
79 - test x`ls $zebra_ipforward_path 2>/dev/null` = x"$zebra_ipforward_path" && break
80 -done
81 + zebra_ipforward_path="/proc/net/snmp"
82 case $zebra_ipforward_path in
83 "/proc/net/snmp") IPFORWARD=ipforward_proc.o
84 zebra_ipforward_path="proc";;
This page took 0.046785 seconds and 5 git commands to generate.