CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
libcap: initial import (verified compilation)
[attic/ports/opt-cross.git] / screen / 100-cross_compile_fix.patch
1 --- configure.orig 2003-12-05 14:46:53.000000000 +0100
2 +++ configure 2007-07-28 12:45:19.000000000 +0200
3 @@ -124,7 +124,7 @@
4 fi
5 if test ! -f "$as_myself"; then
6 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
7 - { (exit 1); exit 1; }; }
8 + }
9 fi
10 case $CONFIG_SHELL in
11 '')
12 @@ -174,7 +174,7 @@
13 ' >$as_me.lineno &&
14 chmod +x $as_me.lineno ||
15 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
16 - { (exit 1); exit 1; }; }
17 + }
18
19 # Don't try to exec as it changes $[0], causing all sort of problems
20 # (the dirname of $[0] is not the place where we might find the
21 @@ -397,7 +397,7 @@
22 # Reject names that are not valid shell variable names.
23 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
24 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
25 - { (exit 1); exit 1; }; }
26 + }
27 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
28 eval "enable_$ac_feature=no" ;;
29
30 @@ -406,7 +406,7 @@
31 # Reject names that are not valid shell variable names.
32 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
33 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
34 - { (exit 1); exit 1; }; }
35 + }
36 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
37 case $ac_option in
38 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
39 @@ -588,7 +588,7 @@
40 # Reject names that are not valid shell variable names.
41 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
42 { echo "$as_me: error: invalid package name: $ac_package" >&2
43 - { (exit 1); exit 1; }; }
44 + }
45 ac_package=`echo $ac_package| sed 's/-/_/g'`
46 case $ac_option in
47 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
48 @@ -601,7 +601,7 @@
49 # Reject names that are not valid shell variable names.
50 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
51 { echo "$as_me: error: invalid package name: $ac_package" >&2
52 - { (exit 1); exit 1; }; }
53 + }
54 ac_package=`echo $ac_package | sed 's/-/_/g'`
55 eval "with_$ac_package=no" ;;
56
57 @@ -625,7 +625,7 @@
58
59 -*) { echo "$as_me: error: unrecognized option: $ac_option
60 Try \`$0 --help' for more information." >&2
61 - { (exit 1); exit 1; }; }
62 + }
63 ;;
64
65 *=*)
66 @@ -633,7 +633,7 @@
67 # Reject names that are not valid shell variable names.
68 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
69 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
70 - { (exit 1); exit 1; }; }
71 + }
72 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
73 eval "$ac_envvar='$ac_optarg'"
74 export $ac_envvar ;;
75 @@ -652,7 +652,7 @@
76 if test -n "$ac_prev"; then
77 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
78 { echo "$as_me: error: missing argument to $ac_option" >&2
79 - { (exit 1); exit 1; }; }
80 + }
81 fi
82
83 # Be sure to have absolute paths.
84 @@ -662,7 +662,7 @@
85 case $ac_val in
86 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
87 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
88 - { (exit 1); exit 1; }; };;
89 + };;
90 esac
91 done
92
93 @@ -674,7 +674,7 @@
94 case $ac_val in
95 [\\/$]* | ?:[\\/]* ) ;;
96 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
97 - { (exit 1); exit 1; }; };;
98 + };;
99 esac
100 done
101
102 @@ -728,15 +728,15 @@
103 if test ! -r $srcdir/$ac_unique_file; then
104 if test "$ac_srcdir_defaulted" = yes; then
105 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
106 - { (exit 1); exit 1; }; }
107 + }
108 else
109 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
110 - { (exit 1); exit 1; }; }
111 + }
112 fi
113 fi
114 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
115 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
116 - { (exit 1); exit 1; }; }
117 + }
118 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
119 ac_env_build_alias_set=${build_alias+set}
120 ac_env_build_alias_value=$build_alias
121 @@ -1243,7 +1243,7 @@
122 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
123 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
124 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
125 - { (exit 1); exit 1; }; }
126 + }
127 fi
128
129 ac_ext=c
130 @@ -1734,7 +1734,7 @@
131 See \`config.log' for more details." >&5
132 echo "$as_me: error: no acceptable C compiler found in \$PATH
133 See \`config.log' for more details." >&2;}
134 - { (exit 1); exit 1; }; }
135 + }
136
137 # Provide some information about the compiler.
138 echo "$as_me:$LINENO:" \
139 @@ -1856,7 +1856,7 @@
140 echo "$as_me: error: cannot run C compiled programs.
141 If you meant to cross compile, use \`--host'.
142 See \`config.log' for more details." >&2;}
143 - { (exit 1); exit 1; }; }
144 + }
145 fi
146 fi
147 fi
148 @@ -1898,7 +1898,7 @@
149 See \`config.log' for more details." >&5
150 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
151 See \`config.log' for more details." >&2;}
152 - { (exit 1); exit 1; }; }
153 + }
154 fi
155
156 rm -f conftest$ac_cv_exeext
157 @@ -1950,7 +1950,7 @@
158 See \`config.log' for more details." >&5
159 echo "$as_me: error: cannot compute suffix of object files: cannot compile
160 See \`config.log' for more details." >&2;}
161 - { (exit 1); exit 1; }; }
162 + }
163 fi
164
165 rm -f conftest.$ac_cv_objext conftest.$ac_ext
166 @@ -2514,7 +2514,7 @@
167 See \`config.log' for more details." >&5
168 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
169 See \`config.log' for more details." >&2;}
170 - { (exit 1); exit 1; }; }
171 + }
172 fi
173
174 ac_ext=c
175 @@ -2704,7 +2704,7 @@
176 See \`config.log' for more details." >&5
177 echo "$as_me: error: cannot run test program while cross compiling
178 See \`config.log' for more details." >&2;}
179 - { (exit 1); exit 1; }; }
180 + }
181 else
182 cat >conftest.$ac_ext <<_ACEOF
183 #line $LINENO "configure"
184 @@ -2753,7 +2753,7 @@
185 See \`config.log' for more details." >&5
186 echo "$as_me: error: cannot run test program while cross compiling
187 See \`config.log' for more details." >&2;}
188 - { (exit 1); exit 1; }; }
189 + }
190 else
191 cat >conftest.$ac_ext <<_ACEOF
192 #line $LINENO "configure"
193 @@ -2790,7 +2790,7 @@
194
195 { { echo "$as_me:$LINENO: error: Can't run the compiler - sorry" >&5
196 echo "$as_me: error: Can't run the compiler - sorry" >&2;}
197 - { (exit 1); exit 1; }; }
198 + }
199 fi
200 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
201 fi
202 @@ -2800,7 +2800,7 @@
203 See \`config.log' for more details." >&5
204 echo "$as_me: error: cannot run test program while cross compiling
205 See \`config.log' for more details." >&2;}
206 - { (exit 1); exit 1; }; }
207 + }
208 else
209 cat >conftest.$ac_ext <<_ACEOF
210 #line $LINENO "configure"
211 @@ -2830,7 +2830,7 @@
212 (exit $ac_status); }; }; then
213 { { echo "$as_me:$LINENO: error: Your compiler does not set the exit status - sorry" >&5
214 echo "$as_me: error: Your compiler does not set the exit status - sorry" >&2;}
215 - { (exit 1); exit 1; }; }
216 + }
217 else
218 echo "$as_me: program exited with status $ac_status" >&5
219 echo "$as_me: failed program was:" >&5
220 @@ -2900,7 +2900,7 @@
221 if test -z "$ac_aux_dir"; then
222 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
223 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
224 - { (exit 1); exit 1; }; }
225 + }
226 fi
227 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
228 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
229 @@ -4149,7 +4149,7 @@
230
231 { { echo "$as_me:$LINENO: error: !!! no select - no screen" >&5
232 echo "$as_me: error: !!! no select - no screen" >&2;}
233 - { (exit 1); exit 1; }; }
234 + }
235 fi
236 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
237
238 @@ -4163,7 +4163,7 @@
239 See \`config.log' for more details." >&5
240 echo "$as_me: error: cannot run test program while cross compiling
241 See \`config.log' for more details." >&2;}
242 - { (exit 1); exit 1; }; }
243 + }
244 else
245 cat >conftest.$ac_ext <<_ACEOF
246 #line $LINENO "configure"
247 @@ -4272,7 +4272,7 @@
248 See \`config.log' for more details." >&5
249 echo "$as_me: error: cannot run test program while cross compiling
250 See \`config.log' for more details." >&2;}
251 - { (exit 1); exit 1; }; }
252 + }
253 else
254 cat >conftest.$ac_ext <<_ACEOF
255 #line $LINENO "configure"
256 @@ -4365,7 +4365,7 @@
257 See \`config.log' for more details." >&5
258 echo "$as_me: error: cannot run test program while cross compiling
259 See \`config.log' for more details." >&2;}
260 - { (exit 1); exit 1; }; }
261 + }
262 else
263 cat >conftest.$ac_ext <<_ACEOF
264 #line $LINENO "configure"
265 @@ -4460,7 +4460,7 @@
266 See \`config.log' for more details." >&5
267 echo "$as_me: error: cannot run test program while cross compiling
268 See \`config.log' for more details." >&2;}
269 - { (exit 1); exit 1; }; }
270 + }
271 else
272 cat >conftest.$ac_ext <<_ACEOF
273 #line $LINENO "configure"
274 @@ -4562,7 +4562,7 @@
275 else
276 { { echo "$as_me:$LINENO: error: you have neither usable sockets nor usable pipes -> no screen" >&5
277 echo "$as_me: error: you have neither usable sockets nor usable pipes -> no screen" >&2;}
278 - { (exit 1); exit 1; }; }
279 + }
280 fi
281
282
283 @@ -4573,7 +4573,7 @@
284 See \`config.log' for more details." >&5
285 echo "$as_me: error: cannot run test program while cross compiling
286 See \`config.log' for more details." >&2;}
287 - { (exit 1); exit 1; }; }
288 + }
289 else
290 cat >conftest.$ac_ext <<_ACEOF
291 #line $LINENO "configure"
292 @@ -4898,7 +4898,7 @@
293
294 { { echo "$as_me:$LINENO: error: !!! no tgetent - no screen" >&5
295 echo "$as_me: error: !!! no tgetent - no screen" >&2;}
296 - { (exit 1); exit 1; }; }
297 + }
298 fi
299 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
300 fi
301 @@ -4915,7 +4915,7 @@
302 See \`config.log' for more details." >&5
303 echo "$as_me: error: cannot run test program while cross compiling
304 See \`config.log' for more details." >&2;}
305 - { (exit 1); exit 1; }; }
306 + }
307 else
308 cat >conftest.$ac_ext <<_ACEOF
309 #line $LINENO "configure"
310 @@ -5359,7 +5359,7 @@
311 See \`config.log' for more details." >&5
312 echo "$as_me: error: cannot run test program while cross compiling
313 See \`config.log' for more details." >&2;}
314 - { (exit 1); exit 1; }; }
315 + }
316 else
317 cat >conftest.$ac_ext <<_ACEOF
318 #line $LINENO "configure"
319 @@ -6206,7 +6206,7 @@
320 See \`config.log' for more details." >&5
321 echo "$as_me: error: cannot run test program while cross compiling
322 See \`config.log' for more details." >&2;}
323 - { (exit 1); exit 1; }; }
324 + }
325 else
326 cat >conftest.$ac_ext <<_ACEOF
327 #line $LINENO "configure"
328 @@ -6482,7 +6482,7 @@
329 See \`config.log' for more details." >&5
330 echo "$as_me: error: cannot run test program while cross compiling
331 See \`config.log' for more details." >&2;}
332 - { (exit 1); exit 1; }; }
333 + }
334 else
335 cat >conftest.$ac_ext <<_ACEOF
336 #line $LINENO "configure"
337 @@ -6598,8 +6598,6 @@
338 LIBS="$oldlibs"
339 fi
340 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
341 -test -f /lib/libsec.a || test -f /usr/lib/libsec.a && LIBS="$LIBS -lsec"
342 -test -f /lib/libshadow.a || test -f /usr/lib/libshadow.a && LIBS="$LIBS -lshadow"
343 oldlibs="$LIBS"
344 LIBS="$LIBS -lsun"
345 { echo "$as_me:$LINENO: checking IRIX sun library..." >&5
346 @@ -7004,7 +7002,7 @@
347 See \`config.log' for more details." >&5
348 echo "$as_me: error: cannot run test program while cross compiling
349 See \`config.log' for more details." >&2;}
350 - { (exit 1); exit 1; }; }
351 + }
352 else
353 cat >conftest.$ac_ext <<_ACEOF
354 #line $LINENO "configure"
355 @@ -7056,7 +7054,7 @@
356 See \`config.log' for more details." >&5
357 echo "$as_me: error: cannot run test program while cross compiling
358 See \`config.log' for more details." >&2;}
359 - { (exit 1); exit 1; }; }
360 + }
361 else
362 cat >conftest.$ac_ext <<_ACEOF
363 #line $LINENO "configure"
364 @@ -7110,7 +7108,7 @@
365 See \`config.log' for more details." >&5
366 echo "$as_me: error: cannot run test program while cross compiling
367 See \`config.log' for more details." >&2;}
368 - { (exit 1); exit 1; }; }
369 + }
370 else
371 cat >conftest.$ac_ext <<_ACEOF
372 #line $LINENO "configure"
373 @@ -7951,7 +7949,7 @@
374 See \`config.log' for more details." >&5
375 echo "$as_me: error: cannot run test program while cross compiling
376 See \`config.log' for more details." >&2;}
377 - { (exit 1); exit 1; }; }
378 + }
379 else
380 cat >conftest.$ac_ext <<_ACEOF
381 #line $LINENO "configure"
382 @@ -7982,7 +7980,7 @@
383 ( exit $ac_status )
384 { { echo "$as_me:$LINENO: error: Can't run the compiler - internal error. Sorry." >&5
385 echo "$as_me: error: Can't run the compiler - internal error. Sorry." >&2;}
386 - { (exit 1); exit 1; }; }
387 + }
388 fi
389 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
390 fi
391 @@ -8251,7 +8249,7 @@
392 if test ! -f "$as_myself"; then
393 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
394 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
395 - { (exit 1); exit 1; }; }
396 + }
397 fi
398 case $CONFIG_SHELL in
399 '')
400 @@ -8302,7 +8300,7 @@
401 chmod +x $as_me.lineno ||
402 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
403 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
404 - { (exit 1); exit 1; }; }
405 + }
406
407 # Don't try to exec as it changes $[0], causing all sort of problems
408 # (the dirname of $[0] is not the place where we might find the
409 @@ -8494,7 +8492,7 @@
410 Try \`$0 --help' for more information." >&5
411 echo "$as_me: error: ambiguous option: $1
412 Try \`$0 --help' for more information." >&2;}
413 - { (exit 1); exit 1; }; };;
414 + };;
415 --help | --hel | -h )
416 echo "$ac_cs_usage"; exit 0 ;;
417 --debug | --d* | -d )
418 @@ -8516,7 +8514,7 @@
419 Try \`$0 --help' for more information." >&5
420 echo "$as_me: error: unrecognized option: $1
421 Try \`$0 --help' for more information." >&2;}
422 - { (exit 1); exit 1; }; } ;;
423 + } ;;
424
425 *) ac_config_targets="$ac_config_targets $1" ;;
426
427 @@ -8555,7 +8553,7 @@
428 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
429 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
430 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
431 - { (exit 1); exit 1; }; };;
432 + };;
433 esac
434 done
435
436 @@ -8750,7 +8748,7 @@
437 test ! -n "$as_dirs" || mkdir $as_dirs
438 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
439 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
440 - { (exit 1); exit 1; }; }; }
441 + }; }
442
443 ac_builddir=.
444
445 @@ -8816,7 +8814,7 @@
446 # Absolute (can't be DOS-style, as IFS=:)
447 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
448 echo "$as_me: error: cannot find input file: $f" >&2;}
449 - { (exit 1); exit 1; }; }
450 + }
451 echo $f;;
452 *) # Relative
453 if test -f "$f"; then
454 @@ -8829,7 +8827,7 @@
455 # /dev/null tree
456 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
457 echo "$as_me: error: cannot find input file: $f" >&2;}
458 - { (exit 1); exit 1; }; }
459 + }
460 fi;;
461 esac
462 done` || { (exit 1); exit 1; }
463 @@ -8907,7 +8905,7 @@
464 # Absolute (can't be DOS-style, as IFS=:)
465 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
466 echo "$as_me: error: cannot find input file: $f" >&2;}
467 - { (exit 1); exit 1; }; }
468 + }
469 echo $f;;
470 *) # Relative
471 if test -f "$f"; then
472 @@ -8920,7 +8918,7 @@
473 # /dev/null tree
474 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
475 echo "$as_me: error: cannot find input file: $f" >&2;}
476 - { (exit 1); exit 1; }; }
477 + }
478 fi;;
479 esac
480 done` || { (exit 1); exit 1; }
481 @@ -9073,7 +9071,7 @@
482 test ! -n "$as_dirs" || mkdir $as_dirs
483 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
484 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
485 - { (exit 1); exit 1; }; }; }
486 + }; }
487
488 rm -f $ac_file
489 mv $tmp/config.h $ac_file
490 --- pty.c.orig 2003-09-08 16:26:18.000000000 +0200
491 +++ pty.c 2007-07-28 12:45:19.000000000 +0200
492 @@ -34,9 +34,9 @@
493 #endif
494
495 /* for solaris 2.1, Unixware (SVR4.2) and possibly others */
496 -#ifdef HAVE_SVR4_PTYS
497 -# include <sys/stropts.h>
498 -#endif
499 +//#ifdef HAVE_SVR4_PTYS
500 +//# include <sys/stropts.h>
501 +//#endif
502
503 #if defined(sun) && defined(LOCKPTY) && !defined(TIOCEXCL)
504 # include <sys/ttold.h>
505 --- sched.h.orig 2002-01-08 16:42:43.000000000 +0100
506 +++ sched.h 2007-07-28 12:45:19.000000000 +0200
507 @@ -22,6 +22,11 @@
508 * $Id: sched.h,v 1.1.1.1 1993/06/16 23:51:13 jnweiger Exp $ FAU
509 */
510
511 +#ifndef __SCHED_H
512 +#define __SCHED_H
513 +
514 +#include <sys/time.h>
515 +
516 struct event
517 {
518 struct event *next;
519 @@ -41,3 +46,5 @@
520 #define EV_READ 1
521 #define EV_WRITE 2
522 #define EV_ALWAYS 3
523 +
524 +#endif