[packages] glib2: fix autoreconf
[openwrt/svn-archive/archive.git] / net / ucspi-tcp / patches / 100-cross_compile.patch
1 --- a/Makefile
2 +++ b/Makefile
3 @@ -36,10 +36,6 @@ auto-str.o: \
4 compile auto-str.c buffer.h readwrite.h exit.h
5 ./compile auto-str.c
6
7 -auto_home.c: \
8 -auto-str conf-home
9 - ./auto-str auto_home `head -1 conf-home` > auto_home.c
10 -
11 auto_home.o: \
12 compile auto_home.c
13 ./compile auto_home.c
14 @@ -305,10 +301,6 @@ fmt_ulong.o: \
15 compile fmt_ulong.c fmt.h
16 ./compile fmt_ulong.c
17
18 -fork.h: \
19 -choose compile load tryvfork.c fork.h1 fork.h2
20 - ./choose cl tryvfork fork.h1 fork.h2 > fork.h
21 -
22 getln.o: \
23 compile getln.c byte.h getln.h buffer.h stralloc.h gen_alloc.h
24 ./compile getln.c
25 @@ -317,24 +309,6 @@ getln2.o: \
26 compile getln2.c byte.h getln.h buffer.h stralloc.h gen_alloc.h
27 ./compile getln2.c
28
29 -hassgact.h: \
30 -choose compile load trysgact.c hassgact.h1 hassgact.h2
31 - ./choose cl trysgact hassgact.h1 hassgact.h2 > hassgact.h
32 -
33 -hassgprm.h: \
34 -choose compile load trysgprm.c hassgprm.h1 hassgprm.h2
35 - ./choose cl trysgprm hassgprm.h1 hassgprm.h2 > hassgprm.h
36 -
37 -hasshsgr.h: \
38 -choose compile load tryshsgr.c hasshsgr.h1 hasshsgr.h2 chkshsgr \
39 -warn-shsgr
40 - ./chkshsgr || ( cat warn-shsgr; exit 1 )
41 - ./choose clr tryshsgr hasshsgr.h1 hasshsgr.h2 > hasshsgr.h
42 -
43 -haswaitp.h: \
44 -choose compile load trywaitp.c haswaitp.h1 haswaitp.h2
45 - ./choose cl trywaitp haswaitp.h1 haswaitp.h2 > haswaitp.h
46 -
47 hier.o: \
48 compile hier.c auto_home.h
49 ./compile hier.c
50 @@ -362,10 +336,6 @@ instcheck.o: \
51 compile instcheck.c strerr.h error.h readwrite.h exit.h
52 ./compile instcheck.c
53
54 -iopause.h: \
55 -choose compile trypoll.c iopause.h1 iopause.h2
56 - ./choose clr trypoll iopause.h1 iopause.h2 > iopause.h
57 -
58 iopause.o: \
59 compile iopause.c taia.h tai.h uint64.h select.h iopause.h taia.h
60 ./compile iopause.c
61 @@ -404,7 +374,7 @@ warn-auto.sh systype
62 dgux-*) ;; \
63 hp-ux-*) ;; \
64 sco*) ;; \
65 - *) echo 'ranlib "$$main"' ;; \
66 + *) echo '$(if $(TARGET_RANLIB),$(TARGET_RANLIB),ranlib) "$$main"' ;; \
67 esac \
68 ) > makelib
69 chmod 755 makelib
70 @@ -521,10 +491,6 @@ seek_set.o: \
71 compile seek_set.c seek.h
72 ./compile seek_set.c
73
74 -select.h: \
75 -choose compile trysysel.c select.h1 select.h2
76 - ./choose c trysysel select.h1 select.h2 > select.h
77 -
78 setup: \
79 it install
80 ./install
81 @@ -791,10 +757,6 @@ uint32_unpack.o: \
82 compile uint32_unpack.c uint32.h
83 ./compile uint32_unpack.c
84
85 -uint64.h: \
86 -choose compile load tryulong64.c uint64.h1 uint64.h2
87 - ./choose clr tryulong64 uint64.h1 uint64.h2 > uint64.h
88 -
89 unix.a: \
90 makelib alloc.o alloc_re.o buffer.o buffer_0.o buffer_1.o buffer_2.o \
91 buffer_copy.o buffer_get.o buffer_put.o env.o error.o error_str.o \
92 --- /dev/null
93 +++ b/auto_home.c
94 @@ -0,0 +1,3 @@
95 +const char auto_home[] = "\
96 +\057\165\163\162\
97 +";
98 --- a/conf-cc
99 +++ b/conf-cc
100 @@ -1,3 +1,3 @@
101 -gcc -O2
102 +$TARGET_CC $TARGET_CFLAGS -include errno.h
103
104 This will be used to compile .c files.
105 --- a/conf-home
106 +++ b/conf-home
107 @@ -1,4 +1,4 @@
108 -/usr/local
109 +/usr
110
111 This is the ucspi-tcp home directory. Programs will be installed in
112 .../bin.
113 --- a/conf-ld
114 +++ b/conf-ld
115 @@ -1,3 +1,3 @@
116 -gcc -s
117 +$TARGET_CC -s $TARGET_LDFLAGS
118
119 This will be used to link .o files into an executable.
120 --- /dev/null
121 +++ b/fork.h
122 @@ -0,0 +1,9 @@
123 +#ifndef FORK_H
124 +#define FORK_H
125 +
126 +/* sysdep: +vfork */
127 +
128 +extern int fork();
129 +extern int vfork();
130 +
131 +#endif
132 --- /dev/null
133 +++ b/hassgact.h
134 @@ -0,0 +1,2 @@
135 +/* sysdep: +sigaction */
136 +#define HASSIGACTION 1
137 --- /dev/null
138 +++ b/hassgprm.h
139 @@ -0,0 +1,2 @@
140 +/* sysdep: +sigprocmask */
141 +#define HASSIGPROCMASK 1
142 --- /dev/null
143 +++ b/hasshsgr.h
144 @@ -0,0 +1 @@
145 +/* sysdep: -shortsetgroups */
146 --- /dev/null
147 +++ b/haswaitp.h
148 @@ -0,0 +1,2 @@
149 +/* sysdep: +waitpid */
150 +#define HASWAITPID 1
151 --- /dev/null
152 +++ b/iopause.h
153 @@ -0,0 +1,18 @@
154 +#ifndef IOPAUSE_H
155 +#define IOPAUSE_H
156 +
157 +/* sysdep: +poll */
158 +#define IOPAUSE_POLL
159 +
160 +#include <sys/types.h>
161 +#include <poll.h>
162 +
163 +typedef struct pollfd iopause_fd;
164 +#define IOPAUSE_READ POLLIN
165 +#define IOPAUSE_WRITE POLLOUT
166 +
167 +#include "taia.h"
168 +
169 +extern void iopause(iopause_fd *,unsigned int,struct taia *,struct taia *);
170 +
171 +#endif
172 --- /dev/null
173 +++ b/select.h
174 @@ -0,0 +1,11 @@
175 +#ifndef SELECT_H
176 +#define SELECT_H
177 +
178 +/* sysdep: +sysselect */
179 +
180 +#include <sys/types.h>
181 +#include <sys/time.h>
182 +#include <sys/select.h>
183 +extern int select();
184 +
185 +#endif
186 --- /dev/null
187 +++ b/uint64.h
188 @@ -0,0 +1,8 @@
189 +#ifndef UINT64_H
190 +#define UINT64_H
191 +
192 +/* sysdep: -ulong64 */
193 +
194 +typedef unsigned long long uint64;
195 +
196 +#endif