]> git.pld-linux.org Git - packages/rp-pppoe.git/blob - rp-pppoe-ac.patch
- fix ac problems causing lockups on builder
[packages/rp-pppoe.git] / rp-pppoe-ac.patch
1 diff -urN rp-pppoe-3.5.org/src/configure.in rp-pppoe-3.5/src/configure.in
2 --- rp-pppoe-3.5.org/src/configure.in   Mon Aug 12 21:09:47 2002
3 +++ rp-pppoe-3.5/src/configure.in       Mon Aug 12 21:35:58 2002
4 @@ -26,17 +26,17 @@
5  AC_HEADER_TIME
6  AC_STRUCT_TM
7  
8 -dnl Check for an echo which supports -n -- another hack for Solaris
9 -AC_PATH_PROG(ECHO, echo, "", /usr/ucb/bin:$PATH)
10 -
11  dnl Check for sockaddr_ll
12  AC_MSG_CHECKING(for struct sockaddr_ll)
13  AC_TRY_COMPILE([#include <asm/types.h>
14  #include <linux/if_packet.h>
15  #include <linux/if_ether.h>
16  ], [struct sockaddr_ll sa;],
17 -ac_cv_struct_sockaddr_ll=yes, ac_cv_struct_sockaddr_ll=no)
18 -$ECHO $ac_cv_struct_sockaddr_ll
19 +[ac_cv_struct_sockaddr_ll=yes
20 + AC_MSG_RESULT(yes)],
21 +[ac_cv_struct_sockaddr_ll=no
22 + AC_MSG_RESULT(no)
23 +])
24  if test "$ac_cv_struct_sockaddr_ll" = yes ; then
25  AC_DEFINE(HAVE_STRUCT_SOCKADDR_LL)
26  fi
27 @@ -45,8 +45,10 @@
28  AC_MSG_CHECKING(for N_HDLC line discipline)
29  AC_TRY_COMPILE([#include <linux/termios.h>],
30         [int x = N_HDLC;],
31 -       ac_cv_n_hdlc=yes, ac_cv_n_hdlc=no)
32 -$ECHO $ac_cv_n_hdlc
33 +       [ac_cv_n_hdlc=yes
34 +        AC_MSG_RESULT(yes)],
35 +       [ac_cv_n_hdlc=no
36 +        AC_MSG_RESULT(no)])
37  if test "$ac_cv_n_hdlc" = yes ; then
38  AC_DEFINE(HAVE_N_HDLC)
39  fi
40 @@ -146,12 +148,15 @@
41  {
42         if (socket(AF_PPPOX, SOCK_DGRAM, PX_PROTO_OE) >= 0) return 0; else return 1;
43  }
44 -], ac_cv_linux_kernel_pppoe=yes, ac_cv_linux_kernel_pppoe=no)
45 +], [ac_cv_linux_kernel_pppoe=yes
46 +    AC_MSG_RESULT(yes)], 
47 +   [ac_cv_linux_kernel_pppoe=no
48 +    AC_MSG_RESULT(no)])
49  else
50         ac_cv_linux_kernel_pppoe=no
51 +       AC_MSG_RESULT(no)
52  fi
53  
54 -$ECHO $ac_cv_linux_kernel_pppoe
55  if test "$ac_cv_linux_kernel_pppoe" != yes ; then
56     if test "$LINUX_KERNELMODE_PLUGIN" = rp-pppoe.so; then
57        echo "*** Your kernel does not appear to have built-in PPPoE support,"
58 @@ -166,11 +171,9 @@
59  
60  dnl If we couldn't find pppd, die
61  if test "$PPPD" = "NOTFOUND"; then
62 -       $ECHO ""
63 -       $ECHO "*** Oops!  I couldn't find pppd, the PPP daemon anywhere."
64 -       $ECHO "*** You must install pppd, version 2.3.10 or later."
65 -       $ECHO "*** I will keep going, but it may not work."
66 -       $ECHO ""
67 +        AC_MSG_WARN(*** Oops!  I couldn't find pppd, the PPP daemon anywhere.)
68 +       AC_MSG_WARN(*** You must install pppd, version 2.3.10 or later.)
69 +       AC_MSG_WARN(*** I will keep going, but it may not work.)
70  fi
71  
72  dnl Figure out pppd version.  2.3.7 to 2.3.9 -- issue warning.  Less than
73 @@ -180,30 +183,24 @@
74  
75  case "$PPPD_VERSION" in
76  1.*|2.0.*|2.1.*|2.2.*|2.3.0|2.3.1|2.3.2|2.3.3|2.3.4|2.3.5|2.3.6)
77 -       $ECHO ""
78 -       $ECHO "*** Oops! Your version of pppd is $PPPD_VERSION, which is too old."
79 -       $ECHO "*** You need at least 2.3.7 (2.3.10 or newer recommended.)"
80 -       $ECHO "*** I will keep going, but it may not work."
81 -       $ECHO ""
82 +       AC_MSG_WARN(*** Oops! Your version of pppd is $PPPD_VERSION, which is too old.)
83 +       AC_MSG_WARN(*** You need at least 2.3.7 (2.3.10 or newer recommended.)
84 +       AC_MSG_WARN(*** I will keep going, but it may not work.)
85         ;;
86  
87  2.3.7|2.3.8|2.3.9)
88 -       $ECHO ""
89 -       $ECHO "*** Warning.  Your version of pppd is $PPPD_VERSION.  You will"
90 -       $ECHO "*** not be able to use connect-on-demand.  Upgrade to pppd"
91 -       $ECHO "*** 2.3.10 or newer if you need connect-on-demand."
92 -       $ECHO ""
93 +       AC_MSG_WARN(*** Warning.  Your version of pppd is $PPPD_VERSION.  You will)
94 +       AC_MSG_WARN(*** not be able to use connect-on-demand.  Upgrade to pppd)
95 +       AC_MSG_WARN(*** 2.3.10 or newer if you need connect-on-demand.)
96         ;;
97  
98  2*|3*|4*|5*|6*|7*|8*|9*)
99         ;;
100  
101  *)
102 -       $ECHO ""
103 -       $ECHO "*** Oops.  I cannot figure out what version of pppd you have."
104 -       $ECHO "*** All I got back was '$PPPD_VERSION'"
105 -       $ECHO "*** I will keep going, but it may not work."
106 -       $ECHO ""
107 +       AC_MSG_WARN(*** Oops.  I cannot figure out what version of pppd you have.)
108 +       AC_MSG_WARN(*** All I got back was '$PPPD_VERSION')
109 +       AC_MSG_WARN(*** I will keep going, but it may not work.)
110         ;;
111  esac
112  
113 @@ -234,10 +231,10 @@
114  }], PACK=normal, PACK=rev)
115  
116  if test "$PACK" = "rev" ; then
117 -       $ECHO "reversed"
118 +       AC_MSG_RESULT(reversed)
119         AC_DEFINE(PACK_BITFIELDS_REVERSED)
120  else
121 -       $ECHO "normal"
122 +       AC_MSG_RESULT(normal)
123  fi
124  
125  # Sigh... got to fix this up for tcl
126 @@ -304,8 +301,6 @@
127  
128  AC_OUTPUT(Makefile libevent/Makefile ../scripts/adsl-connect ../scripts/adsl-start ../scripts/adsl-stop ../scripts/adsl-init ../scripts/adsl-init-suse ../scripts/adsl-init-turbolinux ../scripts/adsl-setup ../gui/Makefile ../gui/tkpppoe $EXTRACONFIGS)
129  
130 -$ECHO ""
131 -$ECHO "On this platform, the following targets will be built:"
132 -$ECHO "        $TARGETS"
133 -$ECHO ""
134 -$ECHO "Type 'make' to compile the software."
135 +AC_MSG_WARN(On this platform, the following targets will be built:)
136 +AC_MSG_WARN(        $TARGETS)
137 +AC_MSG_WARN(Type 'make' to compile the software.)
This page took 0.100782 seconds and 3 git commands to generate.