This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Generate a valid config.h even if stdarg.h and varargs.h are both missing.
[metaconfig.git] / U / dist_patches / dist-p70a
1
2 From Raphael_Manfredi@grenoble.hp.com Thu Feb 12 09:37:34 1998
3 Date: Thu, 12 Feb 98 10:37:17 +0100
4 From: Raphael Manfredi <Raphael_Manfredi@grenoble.hp.com>
5 To: Andy Dougherty <doughera@newton.phys.lafayette.edu>
6 Subject: Unofficial patch over dist-3.0PL70
7
8 Index: mcon/U/Extractall.U
9 *** /tmp/RCSAa22428     Thu Feb 12 10:33:08 1998
10 --- mcon/U/Extractall.U Fri Mar  7 15:07:56 1997
11 ***************
12 *** 17,23 ****
13   ?X:
14   ?MAKE:Extractall: Extract Options rsrc
15   ?MAKE:        -pick wipe $@ %<
16 - ?T:config
17   : extract files and exit if asked to do so
18   case "$extractsh" in
19   true)
20 --- 17,22 ----
21 ***************
22 *** 28,44 ****
23         *) exec 1>&4;;
24         esac
25         case "$config_sh" in
26 !       '') config_sh='config.sh'; config="$rsrc/config.sh";;
27 !       /*) config="$config_sh";;
28 !       *) config="$rsrc/$config_sh";;
29         esac
30         echo " "
31         echo "Fetching answers from $config_sh..."
32 !       . $config
33         test "$override" && . ./optdef.sh
34         echo " "
35   ?X: extract has to be run from the top directory, not within UU.
36 -       cd ..
37         . UU/extract
38         rm -rf UU
39         echo "Done."
40 --- 27,41 ----
41         *) exec 1>&4;;
42         esac
43         case "$config_sh" in
44 !       '') config_sh='config.sh';;
45         esac
46         echo " "
47         echo "Fetching answers from $config_sh..."
48 !       cd ..
49 !       . $config_sh
50         test "$override" && . ./optdef.sh
51         echo " "
52   ?X: extract has to be run from the top directory, not within UU.
53         . UU/extract
54         rm -rf UU
55         echo "Done."
56  
57 Index: mcon/U/Head.U
58 *** /tmp/RCSAa22431     Thu Feb 12 10:33:10 1998
59 --- mcon/U/Head.U       Tue May 13 09:15:46 1997
60 ***************
61 *** 194,200 ****
62   case "$inksh/$needksh" in
63   /[a-z]*)
64   ?X: Unset ENV to avoid any ~/.kshrc that could alias cd or whatever...
65 !               unset ENV
66                 changesh=true
67                 reason="$needksh"
68         ;;
69 --- 194,200 ----
70   case "$inksh/$needksh" in
71   /[a-z]*)
72   ?X: Unset ENV to avoid any ~/.kshrc that could alias cd or whatever...
73 !               ENV=''
74                 changesh=true
75                 reason="$needksh"
76         ;;
77 ***************
78 *** 235,240 ****
79   test -d UU || mkdir UU
80   ?X: Use ./* to avoid any confirmation prompts from enhanced shells -- WED
81   ?X: Unset CDPATH to avoid surprised when using cd under some shells
82 ! unset CDPATH
83   cd UU && rm -f ./*
84   
85 --- 235,240 ----
86   test -d UU || mkdir UU
87   ?X: Use ./* to avoid any confirmation prompts from enhanced shells -- WED
88   ?X: Unset CDPATH to avoid surprised when using cd under some shells
89 ! CDPATH=''
90   cd UU && rm -f ./*
91   
92  
93 Index: mcon/U/Oldconfig.U
94 *** /tmp/RCSAa22434     Thu Feb 12 10:33:11 1998
95 --- mcon/U/Oldconfig.U  Fri Mar  7 15:07:33 1997
96 ***************
97 *** 363,373 ****
98                         *)      if test -f /etc/systemid; then
99                                         osname=sco
100                                         set `echo $3 | $sed 's/\./ /g'` $4
101 !                                       if $test -f sco_$1_$2_$3.sh; then
102                                                 osvers=$1.$2.$3
103 !                                       elif $test -f sco_$1_$2.sh; then
104                                                 osvers=$1.$2
105 !                                       elif $test -f sco_$1.sh; then
106                                                 osvers=$1
107                                         fi
108                                 else
109 --- 363,373 ----
110                         *)      if test -f /etc/systemid; then
111                                         osname=sco
112                                         set `echo $3 | $sed 's/\./ /g'` $4
113 !                                       if $test -f $src/hints/sco_$1_$2_$3.sh; then
114                                                 osvers=$1.$2.$3
115 !                                       elif $test -f $src/hints/sco_$1_$2.sh; then
116                                                 osvers=$1.$2
117 !                                       elif $test -f $src/hints/sco_$1.sh; then
118                                                 osvers=$1
119                                         fi
120                                 else
121  
122 Index: mcon/U/Signal.U
123 *** /tmp/RCSAa22437     Thu Feb 12 10:33:11 1998
124 --- mcon/U/Signal.U     Mon Sep 29 13:05:31 1997
125 ***************
126 *** 165,171 ****
127   $cat >signal_cmd <<EOS
128   $startsh
129   $test -s signal.lst && exit 0
130 ! if $cc $ccflags signal.c -o signal $ldflags >/dev/null 2>&1; then
131         ./signal | $sort -n +1 | $uniq | $awk -f signal.awk >signal.lst
132   else
133         echo "(I can't seem be able to compile the test program -- Guessing)"
134 --- 165,171 ----
135   $cat >signal_cmd <<EOS
136   $startsh
137   $test -s signal.lst && exit 0
138 ! if $cc $ccflags $ldflags -o signal signal.c >/dev/null 2>&1; then
139         ./signal | $sort -n +1 | $uniq | $awk -f signal.awk >signal.lst
140   else
141         echo "(I can't seem be able to compile the test program -- Guessing)"
142  
143 Index: mcon/U/alignbytes.U
144 *** /tmp/RCSAa22440     Thu Feb 12 10:33:12 1998
145 --- mcon/U/alignbytes.U Mon Mar  3 14:25:43 1997
146 ***************
147 *** 45,51 ****
148                 dflt=`./try`
149         else
150                 dflt='8'
151 !               echo"(I can't seem to compile the test program...)"
152         fi
153         ;;
154   *) dflt="$alignbytes"
155 --- 45,51 ----
156                 dflt=`./try`
157         else
158                 dflt='8'
159 !               echo "(I can't seem to compile the test program...)"
160         fi
161         ;;
162   *) dflt="$alignbytes"
163  
164 Index: mcon/U/bitpbyte.U
165 *** /tmp/RCSAa22443     Thu Feb 12 10:33:12 1998
166 --- mcon/U/bitpbyte.U   Mon Sep 29 13:06:25 1997
167 ***************
168 *** 50,56 ****
169         printf("%d\n", BITSPERBYTE);
170   }
171   EOCP
172 !       if $cc $ccflags try.c -o try >/dev/null 2>&1 ; then
173                 dflt=`./try`
174         else
175                 dflt='8'
176 --- 50,56 ----
177         printf("%d\n", BITSPERBYTE);
178   }
179   EOCP
180 !       if $cc $ccflags -o try try.c >/dev/null 2>&1 ; then
181                 dflt=`./try`
182         else
183                 dflt='8'
184  
185 Index: mcon/U/byteorder.U
186 *** /tmp/RCSAa22446     Thu Feb 12 10:33:13 1998
187 --- mcon/U/byteorder.U  Mon Sep 29 13:06:33 1997
188 ***************
189 *** 61,67 ****
190   }
191   EOCP
192         xxx_prompt=y
193 !       if $cc $ccflags try.c -o try >/dev/null 2>&1 && ./try > /dev/null; then
194                 dflt=`./try`
195                 case "$dflt" in
196                 [1-4][1-4][1-4][1-4]|12345678|87654321)
197 --- 61,67 ----
198   }
199   EOCP
200         xxx_prompt=y
201 !       if $cc $ccflags -o try try.c >/dev/null 2>&1 && ./try > /dev/null; then
202                 dflt=`./try`
203                 case "$dflt" in
204                 [1-4][1-4][1-4][1-4]|12345678|87654321)
205  
206 Index: mcon/U/ccflags.U
207 *** /tmp/RCSAa22449     Thu Feb 12 10:33:14 1998
208 --- mcon/U/ccflags.U    Mon Sep 29 13:07:28 1997
209 ***************
210 *** 86,92 ****
211   ?INIT:
212   : determine optimize, if desired, or use for debug flag also
213   case "$optimize" in
214 ! ' ') dflt='none';;
215   '') dflt='-O';;
216   *) dflt="$optimize";;
217   esac
218 --- 86,92 ----
219   ?INIT:
220   : determine optimize, if desired, or use for debug flag also
221   case "$optimize" in
222 ! ' '|$undef) dflt='none';;
223   '') dflt='-O';;
224   *) dflt="$optimize";;
225   esac
226 ***************
227 *** 335,341 ****
228   echo " "
229   echo "Checking your choice of C compiler and flags for coherency..." >&4
230   ?X: Strip extra blanks in case some of the following variables are empty
231 ! set X $cc $optimize $ccflags $ldflags try.c -o try
232   shift
233   $cat >try.msg <<EOM
234   I've tried to compile and run a simple program with:
235 --- 335,341 ----
236   echo " "
237   echo "Checking your choice of C compiler and flags for coherency..." >&4
238   ?X: Strip extra blanks in case some of the following variables are empty
239 ! set X $cc $optimize $ccflags $ldflags -o try try.c
240   shift
241   $cat >try.msg <<EOM
242   I've tried to compile and run a simple program with:
243 ***************
244 *** 355,361 ****
245   ?X: We need to try the resulting executable, because cc might yield a 0 status
246   ?X: even when ld failed, in which case the executable will not run properly,
247   ?X: if its x bit is set at all...
248 ! if sh -c "$cc $optimize $ccflags try.c -o try $ldflags" >>try.msg 2>&1; then
249         if sh -c './try' >>try.msg 2>&1; then
250                 dflt=n
251         else
252 --- 355,361 ----
253   ?X: We need to try the resulting executable, because cc might yield a 0 status
254   ?X: even when ld failed, in which case the executable will not run properly,
255   ?X: if its x bit is set at all...
256 ! if sh -c "$cc $optimize $ccflags $ldflags -o try try.c" >>try.msg 2>&1; then
257         if sh -c './try' >>try.msg 2>&1; then
258                 dflt=n
259         else
260 ***************
261 *** 370,376 ****
262   fi
263   case "$dflt" in
264   y)
265 !       $cat try.msg
266   ?X: using -K will prevent default aborting--maybe they're cross compiling?
267         case "$knowitall" in
268         '')
269 --- 370,376 ----
270   fi
271   case "$dflt" in
272   y)
273 !       $cat try.msg >&4
274   ?X: using -K will prevent default aborting--maybe they're cross compiling?
275         case "$knowitall" in
276         '')
277  
278 Index: mcon/U/cf_who.U
279 *** /tmp/RCSAa22452     Thu Feb 12 10:33:14 1998
280 --- mcon/U/cf_who.U     Tue Aug 19 16:34:29 1997
281 ***************
282 *** 27,32 ****
283 --- 27,34 ----
284   ?S:   questions. This is used to tag both config.sh and config_h.SH.
285   ?S:.
286   : who configured the system
287 + ?X: Ensure English date -- Jarkko Hietaniemi
288 + LC_ALL=C; export LC_ALL
289   cf_time=`$date 2>&1`
290   ?X:
291   ?X: Leave a white space between first two '(' for ksh. The sub-shell is needed
292  
293 Index: mcon/U/charsize.U
294 *** /tmp/RCSAa22455     Thu Feb 12 10:33:15 1998
295 --- mcon/U/charsize.U   Mon Sep 29 13:07:51 1997
296 ***************
297 *** 34,40 ****
298         printf("%d\n", sizeof(char));
299   }
300   EOCP
301 !       if $cc $ccflags try.c -o try >/dev/null 2>&1 ; then
302                 dflt=`./try`
303         else
304                 dflt='1'
305 --- 34,40 ----
306         printf("%d\n", sizeof(char));
307   }
308   EOCP
309 !       if $cc $ccflags -o try try.c >/dev/null 2>&1 ; then
310                 dflt=`./try`
311         else
312                 dflt='1'
313  
314 Index: mcon/U/d_NOFILE.U
315 *** /tmp/RCSAa22458     Thu Feb 12 10:33:15 1998
316 --- mcon/U/d_NOFILE.U   Mon Sep 29 13:09:18 1997
317 ***************
318 *** 58,64 ****
319   }
320   EOCP
321         nofile=''
322 !       if $cc $ccflags nofile.c -o nofile $libs >/dev/null 2>&1; then
323                 nofile=`./nofile 2>/dev/null`
324         fi
325         if $test "$nofile"; then
326 --- 58,64 ----
327   }
328   EOCP
329         nofile=''
330 !       if $cc $ccflags -o nofile nofile.c $libs >/dev/null 2>&1; then
331                 nofile=`./nofile 2>/dev/null`
332         fi
333         if $test "$nofile"; then
334 ***************
335 *** 92,99 ****
336                 exit(0);
337   }
338   EOCP
339 !               if $cc $ccflags -DGETPARAM_H nofile.c -o nofile $libs >/dev/null 2>&1 \
340 !                       || $cc $ccflags nofile.c -o nofile $libs >/dev/null 2>&1 ; then
341                         set `./nofile`
342                         d_gettblsz=$1
343                         d_ulimit4=$2
344 --- 92,99 ----
345                 exit(0);
346   }
347   EOCP
348 !               if $cc $ccflags -DGETPARAM_H -o nofile nofile.c $libs >/dev/null 2>&1 \
349 !                       || $cc $ccflags -o nofile nofile.c $libs >/dev/null 2>&1 ; then
350                         set `./nofile`
351                         d_gettblsz=$1
352                         d_ulimit4=$2
353 ***************
354 *** 163,170 ****
355                 exit(0);
356   }
357   EOCP
358 !       if $cc $ccflags -DGETPARAM_H nofile.c -o nofile $libs >/dev/null 2>&1 \
359 !               || $cc $ccflags nofile.c -o nofile $libs >/dev/null 2>&1 ; then
360                 nofile=`./nofile 2>/dev/null`
361         fi
362         if $test "$nofile"; then
363 --- 163,170 ----
364                 exit(0);
365   }
366   EOCP
367 !       if $cc $ccflags -DGETPARAM_H -o nofile nofile.c $libs >/dev/null 2>&1 \
368 !               || $cc $ccflags -o nofile nofile.c $libs >/dev/null 2>&1 ; then
369                 nofile=`./nofile 2>/dev/null`
370         fi
371         if $test "$nofile"; then
372  
373 Index: mcon/U/d_PORTAR.U
374 *** /tmp/RCSAa22461     Thu Feb 12 10:33:15 1998
375 --- mcon/U/d_PORTAR.U   Mon Sep 29 13:09:39 1997
376 ***************
377 *** 45,52 ****
378   #endif
379         exit(0);}
380   EOCP
381 ! if $cc portar.c -o portar >/dev/null 2>&1 || \
382 !       $cc -DPORTAR=1 portar.c -o portar >/dev/null 2>&1 ; then
383         case "`./portar`" in
384         D)
385                 val="$define"
386 --- 45,52 ----
387   #endif
388         exit(0);}
389   EOCP
390 ! if $cc -o portar portar.c >/dev/null 2>&1 || \
391 !       $cc -DPORTAR=1 -o portar portar.c >/dev/null 2>&1 ; then
392         case "`./portar`" in
393         D)
394                 val="$define"
395  
396 Index: mcon/U/d_SHM_MAC.U
397 *** /tmp/RCSAa22464     Thu Feb 12 10:33:16 1998
398 --- mcon/U/d_SHM_MAC.U  Mon Sep 29 13:09:57 1997
399 ***************
400 *** 99,107 ****
401                         echo "Trying $D_sys_immu $D_sys_param $D_sys_sysmacros $D_sys_seg"
402                         ;;
403                         esac
404 !                       if $cc shm_mac.c $ccflags \
405                         $D_sys_immu $D_sys_param $D_sys_sysmacros $D_sys_seg \
406 !                       -o shm_mac >/dev/null 2>&1 ; then
407                                 set X $D_sys_immu $D_sys_param $D_sys_sysmacros $D_sys_seg
408                                 shift
409                                 flags="$*"
410 --- 99,107 ----
411                         echo "Trying $D_sys_immu $D_sys_param $D_sys_sysmacros $D_sys_seg"
412                         ;;
413                         esac
414 !                       if $cc $ccflags \
415                         $D_sys_immu $D_sys_param $D_sys_sysmacros $D_sys_seg \
416 !                       -o shm_mac shm_mac.c >/dev/null 2>&1 ; then
417                                 set X $D_sys_immu $D_sys_param $D_sys_sysmacros $D_sys_seg
418                                 shift
419                                 flags="$*"
420  
421 Index: mcon/U/d_access.U
422 *** /tmp/RCSAa22467     Thu Feb 12 10:33:16 1998
423 --- mcon/U/d_access.U   Mon Sep 29 13:10:19 1997
424 ***************
425 *** 47,62 ****
426   EOCP
427         : check sys/file.h first, no particular reason here
428         if $test `./findhdr sys/file.h` && \
429 !               $cc $cppflags -DI_SYS_FILE access.c -o access >/dev/null 2>&1 ; then
430                 h_sysfile=true;
431                 echo "<sys/file.h> defines the *_OK access constants." >&4
432         elif $test `./findhdr fcntl.h` && \
433 !               $cc $cppflags -DI_FCNTL access.c -o access >/dev/null 2>&1 ; then
434                 h_fcntl=true;
435                 echo "<fcntl.h> defines the *_OK access constants." >&4
436   @if I_UNISTD
437         elif $test `./findhdr unistd.h` && \
438 !               $cc $cppflags -DI_UNISTD access.c -o access >/dev/null 2>&1 ; then
439                 echo "<unistd.h> defines the *_OK access constants." >&4
440   @end
441         else
442 --- 47,62 ----
443   EOCP
444         : check sys/file.h first, no particular reason here
445         if $test `./findhdr sys/file.h` && \
446 !               $cc $cppflags -DI_SYS_FILE -o access access.c >/dev/null 2>&1 ; then
447                 h_sysfile=true;
448                 echo "<sys/file.h> defines the *_OK access constants." >&4
449         elif $test `./findhdr fcntl.h` && \
450 !               $cc $cppflags -DI_FCNTL -o access access.c >/dev/null 2>&1 ; then
451                 h_fcntl=true;
452                 echo "<fcntl.h> defines the *_OK access constants." >&4
453   @if I_UNISTD
454         elif $test `./findhdr unistd.h` && \
455 !               $cc $cppflags -DI_UNISTD -o access access.c >/dev/null 2>&1 ; then
456                 echo "<unistd.h> defines the *_OK access constants." >&4
457   @end
458         else
459  
460 Index: mcon/U/d_attribut.U
461 No differences encountered
462  
463 Index: mcon/U/d_bsdjmp.U
464 *** /tmp/RCSAa22473     Thu Feb 12 10:33:17 1998
465 --- mcon/U/d_bsdjmp.U   Mon Sep 29 13:10:47 1997
466 ***************
467 *** 46,52 ****
468         exit(1);
469   }
470   EOP
471 !       if $cc set.c -o set $libs >/dev/null 2>&1; then
472                 if ./set >/dev/null 2>&1; then
473                         echo "Good! You have BSD _setjmp and _longjmp routines." >&4
474                         val="$define"
475 --- 46,52 ----
476         exit(1);
477   }
478   EOP
479 !       if $cc -o set set.c $libs >/dev/null 2>&1; then
480                 if ./set >/dev/null 2>&1; then
481                         echo "Good! You have BSD _setjmp and _longjmp routines." >&4
482                         val="$define"
483  
484 Index: mcon/U/d_casti32.U
485 *** /tmp/RCSAa22476     Thu Feb 12 10:33:17 1998
486 --- mcon/U/d_casti32.U  Mon Sep 29 13:10:57 1997
487 ***************
488 *** 59,65 ****
489         exit(result);
490   }
491   EOCP
492 ! if $cc -o try $ccflags try.c >/dev/null 2>&1; then
493         ./try
494         yyy=$?
495   else
496 --- 59,65 ----
497         exit(result);
498   }
499   EOCP
500 ! if $cc $ccflags -o try try.c >/dev/null 2>&1; then
501         ./try
502         yyy=$?
503   else
504  
505 Index: mcon/U/d_castneg.U
506 *** /tmp/RCSAa22479     Thu Feb 12 10:33:18 1998
507 --- mcon/U/d_castneg.U  Mon Sep 29 13:11:03 1997
508 ***************
509 *** 115,121 ****
510   
511   }
512   EOCP
513 ! if $cc -o try $ccflags try.c >/dev/null 2>&1; then
514         ./try
515         castflags=$?
516   else
517 --- 115,121 ----
518   
519   }
520   EOCP
521 ! if $cc $ccflags -o try try.c >/dev/null 2>&1; then
522         ./try
523         castflags=$?
524   else
525  
526 Index: mcon/U/d_charsprf.U
527 *** /tmp/RCSAa22482     Thu Feb 12 10:33:18 1998
528 --- mcon/U/d_charsprf.U Mon Sep 29 13:11:25 1997
529 ***************
530 *** 32,38 ****
531         exit((unsigned long)sprintf(buf,"%s","foo") > 10L);
532   }
533   EOF
534 ! if $cc ucbsprf.c -o ucbsprf >/dev/null 2>&1 && ./ucbsprf; then
535         echo "Your sprintf() returns (int)." >&4
536         val="$undef"
537   else
538 --- 32,38 ----
539         exit((unsigned long)sprintf(buf,"%s","foo") > 10L);
540   }
541   EOF
542 ! if $cc -o ucbsprf ucbsprf.c >/dev/null 2>&1 && ./ucbsprf; then
543         echo "Your sprintf() returns (int)." >&4
544         val="$undef"
545   else
546  
547 Index: mcon/U/d_eofpipe.U
548 *** /tmp/RCSAa22485     Thu Feb 12 10:33:19 1998
549 --- mcon/U/d_eofpipe.U  Mon Sep 29 13:11:59 1997
550 ***************
551 *** 52,58 ****
552         exit(1);
553   }
554   EOP
555 !       if $cc $ccflags pipe.c -o pipe $libs >/dev/null 2>&1; then
556   ?X: Use a script to avoid the possible 'alarm call' message
557                 echo "./pipe || exit 1" > mpipe
558                 chmod +x mpipe
559 --- 52,58 ----
560         exit(1);
561   }
562   EOP
563 !       if $cc $ccflags -o pipe pipe.c $libs >/dev/null 2>&1; then
564   ?X: Use a script to avoid the possible 'alarm call' message
565                 echo "./pipe || exit 1" > mpipe
566                 chmod +x mpipe
567  
568 Index: mcon/U/d_fd_set.U
569 *** /tmp/RCSAa22488     Thu Feb 12 10:33:19 1998
570 --- mcon/U/d_fd_set.U   Mon Sep 29 13:12:18 1997
571 ***************
572 *** 90,96 ****
573   #endif
574   }
575   EOCP
576 ! if $cc $ccflags -DTRYBITS fd_set.c -o fd_set >fd_set.out 2>&1 ; then
577         d_fds_bits="$define"
578         d_fd_set="$define"
579         echo "Well, your system knows about the normal fd_set typedef..." >&4
580 --- 90,96 ----
581   #endif
582   }
583   EOCP
584 ! if $cc $ccflags -DTRYBITS -o fd_set fd_set.c >fd_set.out 2>&1 ; then
585         d_fds_bits="$define"
586         d_fd_set="$define"
587         echo "Well, your system knows about the normal fd_set typedef..." >&4
588 ***************
589 *** 107,113 ****
590         $cat <<'EOM'
591   Hmm, your compiler has some difficulty with fd_set.  Checking further...
592   EOM
593 !       if $cc $ccflags fd_set.c -o fd_set >fd_set.out 2>&1 ; then
594                 d_fds_bits="$undef"
595                 d_fd_set="$define"
596                 echo "Well, your system has some sort of fd_set available..." >&4
597 --- 107,113 ----
598         $cat <<'EOM'
599   Hmm, your compiler has some difficulty with fd_set.  Checking further...
600   EOM
601 !       if $cc $ccflags -o fd_set fd_set.c >fd_set.out 2>&1 ; then
602                 d_fds_bits="$undef"
603                 d_fd_set="$define"
604                 echo "Well, your system has some sort of fd_set available..." >&4
605  
606 Index: mcon/U/d_getpagsz.U
607 *** /tmp/RCSAa22491     Thu Feb 12 10:33:20 1998
608 --- mcon/U/d_getpagsz.U Mon Sep 29 13:12:48 1997
609 ***************
610 *** 57,63 ****
611         dflt='4096'
612         case "$d_getpagsz" in
613         "$define")
614 !               if $cc $ccflags page.c -o page $libs >/dev/null 2>&1; then
615                         dflt=`./page`
616                         guess=''
617                 else
618 --- 57,63 ----
619         dflt='4096'
620         case "$d_getpagsz" in
621         "$define")
622 !               if $cc $ccflags -o page page.c $libs >/dev/null 2>&1; then
623                         dflt=`./page`
624                         guess=''
625                 else
626 ***************
627 *** 65,71 ****
628                 fi
629                 ;;
630         *)
631 !               if $cc $ccflags page.c -o page $libs -lPW >/dev/null 2>&1; then
632                         dflt=`./page`
633                         guess=''
634                         echo "(For your eyes only: I used the getpagesize() from -lPW.)"
635 --- 65,71 ----
636                 fi
637                 ;;
638         *)
639 !               if $cc $ccflags -o page page.c $libs -lPW >/dev/null 2>&1; then
640                         dflt=`./page`
641                         guess=''
642                         echo "(For your eyes only: I used the getpagesize() from -lPW.)"
643 ***************
644 *** 78,84 ****
645         printf("%d\n", PAGESIZE);
646   }
647   EOP
648 !                               if $cc $ccflags page.c -o page $libs >/dev/null 2>&1; then
649                                         dflt=`./page`
650                                         guess=''
651                                         echo "(Using value of PAGESIZE found in <sys/param.h>.)"
652 --- 78,84 ----
653         printf("%d\n", PAGESIZE);
654   }
655   EOP
656 !                               if $cc $ccflags -o page page.c $libs >/dev/null 2>&1; then
657                                         dflt=`./page`
658                                         guess=''
659                                         echo "(Using value of PAGESIZE found in <sys/param.h>.)"
660  
661 Index: mcon/U/d_keepsig.U
662 *** /tmp/RCSAa22494     Thu Feb 12 10:33:20 1998
663 --- mcon/U/d_keepsig.U  Mon Sep 29 13:13:17 1997
664 ***************
665 *** 47,53 ****
666         printf("abc\n");
667   }
668   EOCP
669 ! if $cc -o try $ccflags try.c >/dev/null 2>&1; then
670   ?X: On AIX a single ./try will not work (with ksh)
671   ?X: Backquotes required on Linux and SGI (prevents "ambiguous output redirect")
672   ?X: (reported by Xavier LeVourch <xavierl@eiffel.com>)
673 --- 47,53 ----
674         printf("abc\n");
675   }
676   EOCP
677 ! if $cc $ccflags -o try try.c >/dev/null 2>&1; then
678   ?X: On AIX a single ./try will not work (with ksh)
679   ?X: Backquotes required on Linux and SGI (prevents "ambiguous output redirect")
680   ?X: (reported by Xavier LeVourch <xavierl@eiffel.com>)
681  
682 Index: mcon/U/d_msem.U
683  
684 Index: mcon/U/d_nolnbuf.U
685 *** /tmp/RCSAa22498     Thu Feb 12 10:33:21 1998
686 --- mcon/U/d_nolnbuf.U  Mon Sep 29 13:13:31 1997
687 ***************
688 *** 41,47 ****
689         putchar('\n');
690   }
691   EOT
692 !       $cc blurfl.c -o blurfl >/dev/null 2>&1;
693         $rm -f blurfl.c
694         $cat >&4 <<'EOM'
695   Checking for buffering of stdout to terminal.
696 --- 41,47 ----
697         putchar('\n');
698   }
699   EOT
700 !       $cc -o blurfl blurfl.c >/dev/null 2>&1;
701         $rm -f blurfl.c
702         $cat >&4 <<'EOM'
703   Checking for buffering of stdout to terminal.
704  
705 Index: mcon/U/d_open3.U
706 *** /tmp/RCSAa22501     Thu Feb 12 10:33:21 1998
707 --- mcon/U/d_open3.U    Mon Sep 29 13:13:48 1997
708 ***************
709 *** 53,59 ****
710   EOCP
711   : check sys/file.h first to get FREAD on Sun
712   if $test `./findhdr sys/file.h` && \
713 !               $cc $cppflags "-DI_SYS_FILE" open3.c -o open3 >/dev/null 2>&1 ; then
714         h_sysfile=true;
715         echo "<sys/file.h> defines the O_* constants..." >&4
716         if ./open3; then
717 --- 53,59 ----
718   EOCP
719   : check sys/file.h first to get FREAD on Sun
720   if $test `./findhdr sys/file.h` && \
721 !               $cc $cppflags "-DI_SYS_FILE" -o open3 open3.c >/dev/null 2>&1 ; then
722         h_sysfile=true;
723         echo "<sys/file.h> defines the O_* constants..." >&4
724         if ./open3; then
725 ***************
726 *** 64,70 ****
727                 val="$undef"
728         fi
729   elif $test `./findhdr fcntl.h` && \
730 !               $cc "-DI_FCNTL" open3.c -o open3 >/dev/null 2>&1 ; then
731         h_fcntl=true;
732         echo "<fcntl.h> defines the O_* constants..." >&4
733         if ./open3; then
734 --- 64,70 ----
735                 val="$undef"
736         fi
737   elif $test `./findhdr fcntl.h` && \
738 !               $cc "-DI_FCNTL" -o open3 open3.c >/dev/null 2>&1 ; then
739         h_fcntl=true;
740         echo "<fcntl.h> defines the O_* constants..." >&4
741         if ./open3; then
742  
743 Index: mcon/U/d_pidcheck.U
744 *** /tmp/RCSAa22504     Thu Feb 12 10:33:22 1998
745 --- mcon/U/d_pidcheck.U Mon Sep 29 13:13:57 1997
746 ***************
747 *** 50,56 ****
748         exit(status0 == status9);
749         }
750   EOCP
751 !       if $cc try.c -o try >/dev/null 2>&1 ; then
752                 if ./try >/dev/null 2>&1 ; then
753                         echo "Yes, it does marvels."
754                         d_pidcheck="$undef"
755 --- 50,56 ----
756         exit(status0 == status9);
757         }
758   EOCP
759 !       if $cc -o try try.c >/dev/null 2>&1 ; then
760                 if ./try >/dev/null 2>&1 ; then
761                         echo "Yes, it does marvels."
762                         d_pidcheck="$undef"
763  
764 Index: mcon/U/d_safebcpy.U
765 *** /tmp/RCSAa22507     Thu Feb 12 10:33:22 1998
766 --- mcon/U/d_safebcpy.U Mon Sep 29 13:14:09 1997
767 ***************
768 *** 93,100 ****
769   exit(0);
770   }
771   EOCP
772 !       if $cc $optimize $ccflags $ldflags foo.c \
773 !                   -o safebcpy $libs >/dev/null 2>&1; then
774                 if ./safebcpy 2>/dev/null; then
775                         echo "Yes, it can."
776                         val="$define"
777 --- 93,100 ----
778   exit(0);
779   }
780   EOCP
781 !       if $cc $optimize $ccflags $ldflags \
782 !                   -o safebcpy foo.c $libs >/dev/null 2>&1; then
783                 if ./safebcpy 2>/dev/null; then
784                         echo "Yes, it can."
785                         val="$define"
786  
787 Index: mcon/U/d_safemcpy.U
788 *** /tmp/RCSAa22510     Thu Feb 12 10:33:23 1998
789 --- mcon/U/d_safemcpy.U Mon Sep 29 13:14:20 1997
790 ***************
791 *** 96,103 ****
792   exit(0);
793   }
794   EOCP
795 !       if $cc $optimize $ccflags $ldflags foo.c \
796 !                   -o safemcpy $libs >/dev/null 2>&1; then
797                 if ./safemcpy 2>/dev/null; then
798                         echo "Yes, it can."
799                         val="$define"
800 --- 96,103 ----
801   exit(0);
802   }
803   EOCP
804 !       if $cc $optimize $ccflags $ldflags \
805 !                   -o safemcpy foo.c $libs >/dev/null 2>&1; then
806                 if ./safemcpy 2>/dev/null; then
807                         echo "Yes, it can."
808                         val="$define"
809  
810 Index: mcon/U/d_sanemcmp.U
811 *** /tmp/RCSAa22513     Thu Feb 12 10:33:23 1998
812 --- mcon/U/d_sanemcmp.U Mon Sep 29 13:14:28 1997
813 ***************
814 *** 63,70 ****
815   exit(0);
816   }
817   EOCP
818 !       if $cc $optimize $ccflags $ldflags foo.c \
819 !                   -o sanemcmp $libs >/dev/null 2>&1; then
820                 if ./sanemcmp 2>/dev/null; then
821                         echo "Yes, it can."
822                         val="$define"
823 --- 63,70 ----
824   exit(0);
825   }
826   EOCP
827 !       if $cc $optimize $ccflags $ldflags \
828 !                   -o sanemcmp foo.c $libs >/dev/null 2>&1; then
829                 if ./sanemcmp 2>/dev/null; then
830                         echo "Yes, it can."
831                         val="$define"
832  
833 Index: mcon/U/d_scannl.U
834 *** /tmp/RCSAa22516     Thu Feb 12 10:33:24 1998
835 --- mcon/U/d_scannl.U   Mon Sep 29 13:14:36 1997
836 ***************
837 *** 48,54 ****
838         exit(0);
839   }
840   EOCP
841 ! if $cc -o try $ccflags try.c >/dev/null 2>&1; then
842         if ./try <<'EOD'
843   2
844   3
845 --- 48,54 ----
846         exit(0);
847   }
848   EOCP
849 ! if $cc $ccflags -o try try.c >/dev/null 2>&1; then
850         if ./try <<'EOD'
851   2
852   3
853  
854 Index: mcon/U/d_vprintf.U
855 *** /tmp/RCSAa22519     Thu Feb 12 10:33:24 1998
856 --- mcon/U/d_vprintf.U  Mon Sep 29 13:15:27 1997
857 ***************
858 *** 54,60 ****
859         exit((unsigned long)vsprintf(buf,"%s",args) > 10L);
860   }
861   EOF
862 !       if $cc $ccflags vprintf.c -o vprintf >/dev/null 2>&1 && ./vprintf; then
863                 echo "Your vsprintf() returns (int)." >&4
864                 val2="$undef"
865         else
866 --- 54,60 ----
867         exit((unsigned long)vsprintf(buf,"%s",args) > 10L);
868   }
869   EOF
870 !       if $cc $ccflags -o vprintf vprintf.c >/dev/null 2>&1 && ./vprintf; then
871                 echo "Your vsprintf() returns (int)." >&4
872                 val2="$undef"
873         else
874  
875 Index: mcon/U/d_wifstat.U
876 *** /tmp/RCSAa22522     Thu Feb 12 10:33:24 1998
877 --- mcon/U/d_wifstat.U  Mon Sep 29 13:15:37 1997
878 ***************
879 *** 65,71 ****
880   }
881   EOCP
882         d_wifstat="$undef"
883 !       if $cc $ccflags $ldflags foo.c -o foo $libs >/dev/null 2>&1; then
884                 if ./foo >/dev/null; then
885                         echo "Great! Looks like we can use the WIFxxx macros." >&4
886                         d_wifstat="$define"
887 --- 65,71 ----
888   }
889   EOCP
890         d_wifstat="$undef"
891 !       if $cc $ccflags $ldflags -o foo foo.c $libs >/dev/null 2>&1; then
892                 if ./foo >/dev/null; then
893                         echo "Great! Looks like we can use the WIFxxx macros." >&4
894                         d_wifstat="$define"
895  
896 Index: mcon/U/doublesize.U
897 *** /tmp/RCSAa22525     Thu Feb 12 10:33:25 1998
898 --- mcon/U/doublesize.U Mon Sep 29 13:15:45 1997
899 ***************
900 *** 34,40 ****
901         printf("%d\n", sizeof(double));
902   }
903   EOCP
904 !       if $cc $ccflags try.c -o try >/dev/null 2>&1 ; then
905                 dflt=`./try`
906         else
907                 dflt='8'
908 --- 34,40 ----
909         printf("%d\n", sizeof(double));
910   }
911   EOCP
912 !       if $cc $ccflags -o try try.c >/dev/null 2>&1 ; then
913                 dflt=`./try`
914         else
915                 dflt='8'
916  
917 Index: mcon/U/floatsize.U
918 *** /tmp/RCSAa22528     Thu Feb 12 10:33:25 1998
919 --- mcon/U/floatsize.U  Mon Sep 29 13:16:01 1997
920 ***************
921 *** 34,40 ****
922         printf("%d\n", sizeof(float));
923   }
924   EOCP
925 !       if $cc $ccflags try.c -o try >/dev/null 2>&1 ; then
926                 dflt=`./try`
927         else
928                 dflt='4'
929 --- 34,40 ----
930         printf("%d\n", sizeof(float));
931   }
932   EOCP
933 !       if $cc $ccflags -o try try.c >/dev/null 2>&1 ; then
934                 dflt=`./try`
935         else
936                 dflt='4'
937  
938 Index: mcon/U/fpu.U
939 *** /tmp/RCSAa22531     Thu Feb 12 10:33:25 1998
940 --- mcon/U/fpu.U        Mon Sep 29 13:16:11 1997
941 ***************
942 *** 22,28 ****
943         $cat>fpa.c << GOOP
944         main(){return(1);}
945   GOOP
946 !       $cc -ffpa fpa.c -o fpa
947         fpa > fpa.out 2>&1
948         if $test ! -s fpa.out; then
949                 dflt='y'
950 --- 22,28 ----
951         $cat>fpa.c << GOOP
952         main(){return(1);}
953   GOOP
954 !       $cc -ffpa -o fpa fpa.c
955         fpa > fpa.out 2>&1
956         if $test ! -s fpa.out; then
957                 dflt='y'
958  
959 Index: mcon/U/i_time.U
960 *** /tmp/RCSAa22534     Thu Feb 12 10:33:26 1998
961 --- mcon/U/i_time.U     Mon Sep 29 13:16:37 1997
962 ***************
963 *** 112,118 ****
964         '') $echo $n ".$c"
965                 if $cc $ccflags \
966                 $i_time $i_systime $i_systimek $sysselect $s_timeval $s_timezone \
967 !               try.c -o try >/dev/null 2>&1 ; then
968                         set X $i_time $i_systime $i_systimek $sysselect $s_timeval
969                         shift
970                         flags="$*"
971 --- 112,118 ----
972         '') $echo $n ".$c"
973                 if $cc $ccflags \
974                 $i_time $i_systime $i_systimek $sysselect $s_timeval $s_timezone \
975 !               -o try try.c >/dev/null 2>&1 ; then
976                         set X $i_time $i_systime $i_systimek $sysselect $s_timeval
977                         shift
978                         flags="$*"
979  
980 Index: mcon/U/install.U
981 *** /tmp/RCSAa22537     Thu Feb 12 10:33:26 1998
982 --- mcon/U/install.U    Mon Sep 29 13:16:53 1997
983 ***************
984 *** 53,59 ****
985         exit(0);
986   }
987   EOC
988 !       if $cc try.c -o try >/dev/null 2>&1; then
989                 cp try try.ns
990                 strip try >/dev/null 2>&1
991         else
992 --- 53,59 ----
993         exit(0);
994   }
995   EOC
996 !       if $cc -o try try.c >/dev/null 2>&1; then
997                 cp try try.ns
998                 strip try >/dev/null 2>&1
999         else
1000  
1001 Index: mcon/U/mkdep.U
1002 *** /tmp/RCSAa22540     Thu Feb 12 10:33:27 1998
1003 --- mcon/U/mkdep.U      Mon Mar 17 14:45:52 1997
1004 ***************
1005 *** 61,67 ****
1006   '')
1007         ;;
1008   *)
1009 !       if test -x "$mkdep" &&
1010                 $mkdep dep.c >dep.out 2>/dev/null &&
1011                 $contains "dep$_o:.*dep\.h" dep.out >/dev/null 2>&1
1012         then
1013 --- 61,67 ----
1014   '')
1015         ;;
1016   *)
1017 !       if test -f "$mkdep" &&
1018                 $mkdep dep.c >dep.out 2>/dev/null &&
1019                 $contains "dep$_o:.*dep\.h" dep.out >/dev/null 2>&1
1020         then
1021  
1022 Index: mcon/U/nblock_io.U
1023 *** /tmp/RCSAa22543     Thu Feb 12 10:33:27 1998
1024 --- mcon/U/nblock_io.U  Mon Sep 29 13:17:30 1997
1025 ***************
1026 *** 103,109 ****
1027         exit(0);
1028   }
1029   EOCP
1030 !       if $cc $ccflags $ldflags try.c -o try >/dev/null 2>&1; then
1031                 o_nonblock=`./try`
1032                 case "$o_nonblock" in
1033                 '') echo "I can't figure it out, assuming O_NONBLOCK will do.";;
1034 --- 103,109 ----
1035         exit(0);
1036   }
1037   EOCP
1038 !       if $cc $ccflags $ldflags -o try try.c >/dev/null 2>&1; then
1039                 o_nonblock=`./try`
1040                 case "$o_nonblock" in
1041                 '') echo "I can't figure it out, assuming O_NONBLOCK will do.";;
1042 ***************
1043 *** 181,187 ****
1044         exit(0);                                /* Bye bye, thank you for playing! */
1045   }
1046   EOCP
1047 !       if $cc $ccflags $ldflags try.c -o try >/dev/null 2>&1; then
1048   ?X: Use script to avoid the possible 'alarm call' message
1049                 echo "$startsh" >mtry
1050                 echo "./try >try.out 2>try.ret 3>try.err || exit 4" >>mtry
1051 --- 181,187 ----
1052         exit(0);                                /* Bye bye, thank you for playing! */
1053   }
1054   EOCP
1055 !       if $cc $ccflags $ldflags -o try try.c >/dev/null 2>&1; then
1056   ?X: Use script to avoid the possible 'alarm call' message
1057                 echo "$startsh" >mtry
1058                 echo "./try >try.out 2>try.ret 3>try.err || exit 4" >>mtry
1059  
1060 Index: mcon/U/patchlevel.U
1061 *** /tmp/RCSAa22546     Thu Feb 12 10:33:28 1998
1062 --- mcon/U/patchlevel.U Tue May 20 10:17:36 1997
1063 ***************
1064 *** 19,25 ****
1065   echo " "
1066   echo "Getting the current patchlevel..." >&4
1067   if $test -r $rsrc/patchlevel.h;then
1068 !       patchlevel=`awk '/PATCHLEVEL/ {print $3}' < $rsrc/patchlevel.h`
1069   else
1070         patchlevel=0
1071   fi
1072 --- 19,27 ----
1073   echo " "
1074   echo "Getting the current patchlevel..." >&4
1075   if $test -r $rsrc/patchlevel.h;then
1076 !       patchlevel=`awk \
1077 !               '/^#[   ]*define[       ][      ]*PATCHLEVEL/ {print $3}' \
1078 !               < $rsrc/patchlevel.h`
1079   else
1080         patchlevel=0
1081   fi
1082  
1083 Index: mcon/U/ptrsize.U
1084 *** /tmp/RCSAa22549     Thu Feb 12 10:33:28 1998
1085 --- mcon/U/ptrsize.U    Mon Sep 29 13:18:02 1997
1086 ***************
1087 *** 34,40 ****
1088         printf("%d\n", sizeof(char *));
1089   }
1090   EOCP
1091 !       if $cc $ccflags try.c -o try >/dev/null 2>&1 ; then
1092                 dflt=`./try`
1093         else
1094                 dflt='4'
1095 --- 34,40 ----
1096         printf("%d\n", sizeof(char *));
1097   }
1098   EOCP
1099 !       if $cc $ccflags -o try try.c >/dev/null 2>&1 ; then
1100                 dflt=`./try`
1101         else
1102                 dflt='4'
1103  
1104 Index: mcon/U/randbits.U
1105 *** /tmp/RCSAa22552     Thu Feb 12 10:33:28 1998
1106 --- mcon/U/randbits.U   Mon Sep 29 13:18:10 1997
1107 ***************
1108 *** 59,65 ****
1109         printf("%d\n",i);
1110   }
1111   EOCP
1112 !       if $cc try.c -o try >/dev/null 2>&1 ; then
1113                 dflt=`try`
1114         else
1115                 dflt='?'
1116 --- 59,65 ----
1117         printf("%d\n",i);
1118   }
1119   EOCP
1120 !       if $cc -o try try.c >/dev/null 2>&1 ; then
1121                 dflt=`try`
1122         else
1123                 dflt='?'
1124  
1125 Index: mcon/U/randfunc.U
1126 *** /tmp/RCSAa22555     Thu Feb 12 10:33:29 1998
1127 --- mcon/U/randfunc.U   Mon Sep 29 13:18:16 1997
1128 ***************
1129 *** 117,123 ****
1130         printf("%d\n",i);
1131   }
1132   EOCP
1133 !                       if $cc try.c -o try >/dev/null 2>&1 ; then
1134                         dflt=`try`
1135                         else
1136                         dflt='?'
1137 --- 117,123 ----
1138         printf("%d\n",i);
1139   }
1140   EOCP
1141 !                       if $cc -o try try.c >/dev/null 2>&1 ; then
1142                         dflt=`try`
1143                         else
1144                         dflt='?'
1145  
1146 Index: mcon/U/sockopt.U
1147 *** /tmp/RCSAa22558     Thu Feb 12 10:33:29 1998
1148 --- mcon/U/sockopt.U    Mon Sep 29 13:18:39 1997
1149 ***************
1150 *** 47,53 ****
1151         exit(0);
1152   }
1153   EOP
1154 !               if $cc $ccflags $sockethdr socket.c -o socket $libs \
1155                         $socketlib >/dev/null 2>&1; then
1156                         ./socket >/dev/null 2>&1
1157                         case $? in
1158 --- 47,53 ----
1159         exit(0);
1160   }
1161   EOP
1162 !               if $cc $ccflags $sockethdr -o socket socket.c $libs \
1163                         $socketlib >/dev/null 2>&1; then
1164                         ./socket >/dev/null 2>&1
1165                         case $? in
1166  
1167 Index: mcon/U/src.U
1168 *** /tmp/RCSAa22561     Thu Feb 12 10:33:29 1998
1169 --- mcon/U/src.U        Fri Mar  7 15:08:15 1997
1170 ***************
1171 *** 9,15 ****
1172   ?RCS: Revision 3.0.1.1  1997/02/28  16:23:54  ram
1173   ?RCS: patch61: created
1174   ?RCS:
1175 ! ?MAKE:src +rsrc: Options Myread package contains
1176   ?MAKE:        -pick add $@ %<
1177   ?Y:TOP
1178   ?S:src (srcdir):
1179 --- 9,15 ----
1180   ?RCS: Revision 3.0.1.1  1997/02/28  16:23:54  ram
1181   ?RCS: patch61: created
1182   ?RCS:
1183 ! ?MAKE:src +rsrc: Options package contains
1184   ?MAKE:        -pick add $@ %<
1185   ?Y:TOP
1186   ?S:src (srcdir):
1187 ***************
1188 *** 18,39 ****
1189   ?S:   find the sources remotely.
1190   ?S:.
1191   ?S:rsrc (relsrcdir):
1192 ! ?S:   This variable holds the relative path to the package source.
1193 ! ?S:   The contents are correct for the configuration environment,
1194 ! ?S:   i.e. there is an extra .. either appended or prepended.
1195   ?S:   Configure units should use this, not the src variable.
1196   ?S:.
1197   ?LINT:change package
1198   : Find the path to the source tree
1199   case "$src" in
1200 ! '') src=`echo $0 | sed -e 's%/[^/][^/]*$%%'`;;
1201   esac
1202   case "$src" in
1203 ! '')
1204 !       src=.
1205 !       rsrc=..
1206         ;;
1207 ! /*) rsrc="$src/..";;
1208   *) rsrc="../$src";;
1209   esac
1210   ?X:
1211 --- 18,41 ----
1212   ?S:   find the sources remotely.
1213   ?S:.
1214   ?S:rsrc (relsrcdir):
1215 ! ?S:   This variable holds a potentially relative path to the package
1216 ! ?S:   source.  The contents are correct for the configuration environment,
1217 ! ?S:   i.e. there might be an extra .. prepended to get out of the UU dir.
1218   ?S:   Configure units should use this, not the src variable.
1219   ?S:.
1220   ?LINT:change package
1221   : Find the path to the source tree
1222   case "$src" in
1223 ! '') case "$0" in
1224 !     */*) src=`echo $0 | sed -e 's%/[^/][^/]*$%%'`;;
1225 !     *)   src='.';;
1226 !     esac;;
1227   esac
1228   case "$src" in
1229 ! '')   src=/
1230 !       rsrc=/
1231         ;;
1232 ! /*) rsrc="$src";;
1233   *) rsrc="../$src";;
1234   esac
1235   ?X:
1236 ***************
1237 *** 46,52 ****
1238   ?X: If it matches, we know we found the right source tree. -- RAM, 15/03/96
1239   ?X:
1240   if test -f $rsrc/Configure && \
1241 !       $contains "^package=$package" $rsrc/Configure >/dev/null 2>&1
1242   then
1243      : found it, so we are ok.
1244   else
1245 --- 48,54 ----
1246   ?X: If it matches, we know we found the right source tree. -- RAM, 15/03/96
1247   ?X:
1248   if test -f $rsrc/Configure && \
1249 !       $contains "^package=$package$" $rsrc/Configure >/dev/null 2>&1
1250   then
1251      : found it, so we are ok.
1252   else
1253 ***************
1254 *** 55,61 ****
1255         rsrc=''
1256         for src in . .. ../.. ../../.. ../../../..; do
1257                 if test -f ../$src/Configure && \
1258 !                       $contains "^package=$package" ../$src/Configure >/dev/null 2>&1
1259                 then
1260                         rsrc=../$src
1261                         break
1262 --- 57,63 ----
1263         rsrc=''
1264         for src in . .. ../.. ../../.. ../../../..; do
1265                 if test -f ../$src/Configure && \
1266 !                       $contains "^package=$package$" ../$src/Configure >/dev/null 2>&1
1267                 then
1268                         rsrc=../$src
1269                         break
1270 ***************
1271 *** 64,91 ****
1272   fi
1273   case "$rsrc" in
1274   '')
1275 ! ?X: It's too early to use Getfile.U (would stack too much units before this)
1276 !       echo " "
1277 !       dflt=
1278 !       rp="Directory where sources for $package are located?"
1279 !       . ./myread
1280 !       src="$ans"
1281 !       rsrc="$src"
1282 !       if test -f $rsrc/Configure && \
1283 !               $contains "^package=$package" $rsrc/Configure >/dev/null 2>&1
1284 !       then
1285 !               echo "Ok, I've found them under $src"
1286 !       else
1287 !               echo "Sorry, I can't seem to be able to locate $package sources." >&4
1288 !               exit 1
1289 !       fi
1290         ;;
1291   ?X: Don't echo anything if the sources are in . -- they should know already ;-)
1292   ?X: In that case, rsrc is ../. since we lookup from within UU
1293 ! ../.) ;;
1294   *)
1295         echo " "
1296 !       echo "Sources for $package found in $src" >&4
1297         ;;
1298   esac
1299   
1300 --- 66,85 ----
1301   fi
1302   case "$rsrc" in
1303   '')
1304 !       cat <<EOM >&4
1305
1306 ! Sorry, I can't seem to locate the source dir for $package.  Please start
1307 ! Configure with an explicit path -- i.e. /some/path/Configure.
1308
1309 ! EOM
1310 !       exit 1
1311         ;;
1312   ?X: Don't echo anything if the sources are in . -- they should know already ;-)
1313   ?X: In that case, rsrc is ../. since we lookup from within UU
1314 ! ../.) rsrc='..';;
1315   *)
1316         echo " "
1317 !       echo "Sources for $package found in \"$src\"." >&4
1318         ;;
1319   esac
1320   
1321  
1322 Index: mcon/U/sunscanf.U
1323 *** /tmp/RCSAa22564     Thu Feb 12 10:33:30 1998
1324 --- mcon/U/sunscanf.U   Mon Sep 29 13:18:52 1997
1325 ***************
1326 *** 31,37 ****
1327         printf("%d\n", value == 4.5);
1328   }
1329   EOCP
1330 ! if $cc $ccflags scanf.c -o scanf >/dev/null 2>&1 ; then
1331         if $test `scanf` = 0; then
1332                 echo "Hmm.. seems your not running the USG flavor.."
1333                 val="$undef"
1334 --- 31,37 ----
1335         printf("%d\n", value == 4.5);
1336   }
1337   EOCP
1338 ! if $cc $ccflags -o scanf scanf.c >/dev/null 2>&1 ; then
1339         if $test `scanf` = 0; then
1340                 echo "Hmm.. seems your not running the USG flavor.."
1341                 val="$undef"
1342  
1343 Index: mcon/U/usenm.U
1344 *** /tmp/RCSAa22567     Thu Feb 12 10:33:30 1998
1345 --- mcon/U/usenm.U      Fri Mar  7 15:07:34 1997
1346 ***************
1347 *** 11,17 ****
1348   ?RCS: Baseline for dist 3.0 netwide release.
1349   ?RCS:
1350   ?MAKE:usenm runnm nm_opt nm_so_opt: cat test Myread Oldconfig myuname grep \
1351 !       d_gnulibc
1352   ?MAKE:        -pick add $@ %<
1353   ?S:usenm:
1354   ?S:   This variable contains 'true' or 'false' depending whether the
1355 --- 11,17 ----
1356   ?RCS: Baseline for dist 3.0 netwide release.
1357   ?RCS:
1358   ?MAKE:usenm runnm nm_opt nm_so_opt: cat test Myread Oldconfig myuname grep \
1359 !       d_gnulibc egrep rsrc
1360   ?MAKE:        -pick add $@ %<
1361   ?S:usenm:
1362   ?S:   This variable contains 'true' or 'false' depending whether the
1363 ***************
1364 *** 45,51 ****
1365                 dflt=n
1366                 ;;
1367         *)
1368 !               dflt=`egrep 'inlibc|csym' ../Configure | wc -l 2>/dev/null`
1369                 if $test $dflt -gt 20; then
1370                         dflt=y
1371                 else
1372 --- 45,51 ----
1373                 dflt=n
1374                 ;;
1375         *)
1376 !               dflt=`$egrep 'inlibc|csym' $rsrc/Configure | wc -l 2>/dev/null`
1377                 if $test $dflt -gt 20; then
1378                         dflt=y
1379                 else
1380  
1381 Index: mcon/man/mconfig.SH
1382 *** /tmp/RCSAa22570     Thu Feb 12 10:33:38 1998
1383 --- mcon/man/mconfig.SH Mon Mar 17 14:48:30 1997
1384 ***************
1385 *** 366,371 ****
1386 --- 366,374 ----
1387   .IP *
1388   Always use echo " " (with a space) because of Eunice systems.
1389   .IP *
1390 + Only use \fBtest\fR with \-r, \-w, \-f or \-d since those are the only
1391 + portable switches. In particular, avoid "test -x".
1392 + .IP *
1393   Use only programs that came with V7, so that you know everyone has them.
1394   .IP *
1395   Use \$\&contains when you want to grep conditionally, since not all
1396  
1397 *** end of unofficial patch ***